79756d878d
Sono stati aggiunti numerosi nuovi file JavaScript, CSS, SVG e PNG per migliorare la grafica, la responsività e le funzionalità delle pagine di aste, login, notifiche e player video. Introdotte nuove librerie (OneSignal, Bootstrap, Font Awesome, Vue.js, Slick Carousel, ProgressBar.js, CryptoJS, mCustomScrollbar, Switchery) e script per la gestione di notifiche push, tracciamento eventi (Facebook Pixel, TikTok Pixel, Google Ads, Smartech), pagamenti Ingenico, modali, banner promozionali, preferiti, auto-puntate, e gestione utente inattivo. Ampliata la logica del player embedded YouTube con nuovi hook, logging avanzato, gestione ciclo di vita, storage e challenge di attestation. Aggiunti nuovi stili CSS per layout responsive, componenti UI, modali, badge, bottoni, progress bar, e ottimizzazioni mobile. Integrate nuove immagini e icone per arricchire l’interfaccia grafica. Non sono state apportate modifiche al file `www-player.css` e ad altri file specificati. Queste modifiche migliorano la sicurezza, la tracciabilità, l’esperienza utente e la flessibilità dell’applicazione.
13976 lines
2.5 MiB
Plaintext
13976 lines
2.5 MiB
Plaintext
var _yt_player={};(function(g){var window=this;/*
|
|
|
|
Copyright The Closure Library Authors.
|
|
SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
/*
|
|
|
|
Copyright Google LLC
|
|
SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
/*
|
|
|
|
Copyright Google LLC All Rights Reserved.
|
|
|
|
Use of this source code is governed by an MIT-style license that can be
|
|
found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
/*
|
|
|
|
(The MIT License)
|
|
|
|
Copyright (C) 2014 by Vitaly Puzrin
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
|
|
-----------------------------------------------------------------------------
|
|
Ported from zlib, which is under the following license
|
|
https://github.com/madler/zlib/blob/master/zlib.h
|
|
|
|
zlib.h -- interface of the 'zlib' general purpose compression library
|
|
version 1.2.8, April 28th, 2013
|
|
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
|
This software is provided 'as-is', without any express or implied
|
|
warranty. In no event will the authors be held liable for any damages
|
|
arising from the use of this software.
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
including commercial applications, and to alter it and redistribute it
|
|
freely, subject to the following restrictions:
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
claim that you wrote the original software. If you use this software
|
|
in a product, an acknowledgment in the product documentation would be
|
|
appreciated but is not required.
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
misrepresented as being the original software.
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
Jean-loup Gailly Mark Adler
|
|
jloup@gzip.org madler@alumni.caltech.edu
|
|
The data format used by the zlib library is described by RFCs (Request for
|
|
Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
|
|
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
|
*/
|
|
/*
|
|
|
|
Copyright 2015-present Dan Abramov
|
|
SPDX-License-Identifier: MIT
|
|
*/
|
|
'use strict';var S='assign{/videoplayback{call{indexOf{www.youtube.com{youtube.player.web_20251202_20_RC00{://{U{prototype{length{N{url{splice{1970-01-01T03:59:58.000+04:00{reverse{push{get{path{set{&{fromCharCode{{slice{scheme{sc{1{s{pop{/{W{"},;;,;{local{cmo=td{startsWith{rr{clone{sp{V{join{match{split{);;/u{mn{/initplayback{?{1969-12-31T12:15:37.000-11:45{---{1970-01-01T05:45:07.000+05:45{/api/manifest{1970-01-01T10:15:13.000+10:15{unshift{rr?[1-9].*\\.c\\.youtube\\.com${toString{file{%3D{D{sG{1969-12-31T16:01:01.000-08:00{:{/file/index.m3u8{cmo=pf{B2ki9a{https://local{1969-12-31T15:30:27.000-08:30{\\.a1\\.googlevideo\\.com${q0{={\u22fd}/{signatureCipher{//{r{1969-12-31T23:00:08.000-01:00{n{cmo{fvip{redirector.googlevideo.com{MQ{http://local{forEach{1970-01-01T06:30:17.000+06:30{Ff{cmo={,{fallback_count{replace{index.m3u8{playerfallback{QXtv{\\.googlevideo\\.com${1969-12-31T13:00:00.000-11:00{undefined{1970-01-01T11:30:56.000+11:30{a1.googlevideo.com{1969-12-31T22:46:02.000-01:15{N-aH1AtMyoEyJ8Bt-D-_w8_{Untrusted URL'.split("{"),
|
|
Kw,J1,pw,jE,sD,By1,A1,h1,bL,k7,wy,fSS,OD,bw0,UD,W6,tEL,TyD,lS1,mCC,z8,Q0v,Af,Lf,Bw,Kf,CLC,iwv,dI,IO,$C1,wI,X6Q,yK,Owy,j5,E70,gI,GK,c10,tf,kW,YD6,UCw,Wvy,MX,v7E,qDv,Ww,PLy,xCL,qX,n7v,zQv,JO,ukk,Dw,aSQ,Afv,NV,LtD,oW7,BIe,fR7,go,sc,KtL,V5k,hO,ls,Jf8,Oc,Ec,ck,MV,Uc,Wk,ZfD,vk,qV,Pk,NIe,DX7,zk,dXQ,AF,oy,SS,Ry,Zi,Nw,IRS,wwv,FN,dt,Di,pw0,yfw,jO1,gWw,rfL,wt,pa,jS,gt,G$,sT,H5,bfL,bO,kj,T$,lO,mC,Ca,iO,t5C,XN,OT,c5,TIk,lR0,mX8,Mw,UT,W5,qw,P5,eS,na,cf0,M5C,YdD,UX6,z$,Wty,uO,ay,A8,vWS,LG,qd0,xX0,KG,J8,Zr,FF,Dr,
|
|
zwQ,nW7,og7,AOQ,pG,yl,H4,VZ1,Scw,JOD,bA,k9,RFQ,t8,iA,w_,EA,Zxe,Mo,c4,IC,No0,Y9,v4,UA,Fie,P4,DVC,er,nG,zO,uA,aC,AD,Lv,BX,fv,RR,Z4,IwL,D4,wkw,yO6,pkk,j87,Na,ggS,jV,gK,GV,rOk,rK,s8y,Hxy,HX,hFe,To1,hD,kkD,bxv,bI,mVv,tD,k$,Q8L,TV,Cs0,lI,$VQ,ixy,Xk8,iI,cOD,Ox8,MZS,$$,X6,YcS,UV0,Wi6,Oz,Ez,vgD,eFE,cX,ngk,zF1,ojD,WX,LCD,uc0,fiL,JF6,qa,x$,uI,eV,STy,aR,Ap,Ld,or,Kd,VT,ST,dww,Rr,Ii8,N4,d6,yF6,jT,Gy,s6,Hg,bi,r6,jy8,hp,tp,g6,k3,Ty,gjS,li,QT,rFw,Cd,ii,$3,hh8,vg,bav,Wg,U6,O6,syy,HaL,tS7,eT,k$8,li6,mwy,QyE,nd,zy,ui,
|
|
COe,Lu,BG,fu,Ku,iay,X5k,Jd,Oaw,Rg,S7,Uw8,ZZ,N$,WCS,qTv,xw7,da,F3,ehC,Ig,wa,pu,DZ,j7,yP,ra,Gw,lq,njS,sG,hd,mq,zh1,QP,uN8,Cu,iq,EG,cG,M$,$b,OG,X3,UG,aiQ,WG,vG,q$,Lk0,PG,o9e,xb,bq,e7,zw,fr0,uq,ag,LH,oK,BS,fH,KH,wi,pH,yI,gi,j1,GI,ri,s0,HS,hs,bW,Kk1,J8e,kE,SAS,RP1,ZG6,lW,mV,iW,Fke,Do7,do8,Xs,w4y,O0,y8D,E0,cS,Mh,jCk,YE,g91,U0,GO8,r8w,WS,sCk,vS,qh,PS,HGw,e1,nH,bG0,aK,T_0,hPe,AW,oF,BI,QCC,lr7,KC,JW,CA8,$ow,X46,SX,RF,ZX,Nl,FI,DX,dF,c8v,MrC,YAS,Wkw,qAw,PAQ,xov,wF,pC,ePC,yv,n9D,zPE,LnC,gF,o$E,BK0,f47,Knw,VVk,
|
|
rF,JDE,hW,Rl1,ks,Tr,NKL,lp,m2,Qv,Fn6,Day,$s,XI,Ew,cI,I4v,wXQ,pXy,ql,vI,WI,yDw,jR6,g$v,PI,xs,eX,rD6,Ag,L9,HvS,hl1,bve,ot,B2,tVQ,kVk,f9,TKD,l4e,maE,QRQ,Sq,V6,Rt,Zx,Ni,CI6,ivS,$ay,F_,Dx,XXk,It,Ove,E$Q,cDD,wH,MVk,p9,y6,YzC,Uak,WnD,v$k,qzk,PI0,GH,rH,sx,hg,n$Q,bC,tg,zly,ele,H2,u6v,k1,TH,lC,Q6,ml,a4e,Ape,LT8,C9,B6k,iC,KTC,VT0,JpE,S6E,R38,Zdy,N6D,FTw,Ox,Ex,c2,d4k,D41,I77,wgQ,Y1,pg0,Ux,yp8,jr7,W2,v2,qi,g3E,P2,x1,Gyw,eq,n9,zH,uC,at,A5,Lt,o3,rpw,sr7,HdL,h3e,Br,bde,kyE,tTD,Kt,VJ,l7y,T6S,Ci8,Xgk,$4C,J5,OdS,E3w,
|
|
cpw,Y67,MTL,U4L,SO,WTk,v31,Zk,q6L,PiS,x4e,e3y,Nn,n37,Fx,z3w,Dk,dV,a7w,I3,AdE,wV,pt,Lq0,obL,yJ,gV,fZ8,Gz,BaC,Kqy,V7v,Jd8,RKD,rV,Zuw,h5,bH,FqQ,D$y,wGS,pGS,t5,ke,Tz,$e,Xx,O3,E3,cr,Mn,Ye,U3,Wr,vr,GwE,gbE,rdy,Hu8,sgD,bue,jgk,hKy,yd8,qn,Pr,kwD,TaL,lZ1,zz,uH,a3,xe,QgC,A9,t7v,iu8,$$7,Cqk,Lc,ox,B3,fc,XGE,m$v,Ouy,Kc,Eb7,cdL,M7w,YG7,U$E,qGE,Pqk,x$6,eKQ,VU,J9,nbL,zK8,AsE,LVk,SW,Za,Biy,NO,Rx,KVe,fne,V1E,Jse,S0D,Da,dm,R4C,ZH8,Niv,FVE,DhL,dh6,In0,wSE,pSv,ysL,wm,pc,yU,jW,gm,G1,jKS,rsD,sK1,HH8,bH1,h4e,t1E,H3,h9,kIw,
|
|
Ti7,lnw,bm,t9,kZ,T1,lm,QU,Cc,mhD,$Z,CW1,Oa,iH1,$hk,Ea,c3,MO,Ua,YZ,XSk,EE6,W3,IF,v97,eW,csy,M18,nc,Y0E,xZ,WVy,Uhe,P3,z1,um,vEk,q08,PWS,xh8,ax,e4D,AU,GI0,gED,o$,BD,K8,VX,usv,JU,Sa,Zm,anC,AWk,NB,K2E,wb,os1,fX7,db,Dm,G9,rb,VX7,hU,JWC,bX,tU,Swk,ZCD,F26,C8,$A,wIS,pI7,yWQ,Xt,rWv,mN,dl6,HC7,GrS,jFQ,gsv,ht1,sFQ,EE,YA,tXE,kr6,TFy,lXy,mlC,WD,QFD,qB,CpQ,XI6,OCQ,PD,cWe,YwC,MXv,Ul0,ea,uX,oQ,f2,K2,Vq,Ju,SA,qww,PpS,xlQ,RQ,ZH,Bc,NW,Fm,DH,Fu,ds,et7,ws,uIk,p2,yq,Ag0,aX0,Ll7,o1e,BHk,jA,fxk,Kl1,VqQ,gs,GX,SxC,NH0,FlL,
|
|
rs,p2e,Ix7,ygD,jtC,g1S,sk,GHw,DiL,Hc,hu,rgE,w27,b0,stL,tu,hr7,b97,tqw,kHy,THS,TX,lxe,miS,Qt8,CCQ,X2y,i9L,l0,m7,Qq,C2,i0,$M,Xm,Ok,O9e,cc,Ek,E1e,YM,Yxy,MW,UiD,Wlw,erS,v1v,qxk,PC7,xiQ,Uk,n16,Wc,zrk,vc,qW,Pc,xM,eA,n2,oew,u_w,AX,Lsk,oa,Ke,A5L,aQ,zX,axe,u0,JX,fkD,Ra,SF,Ks8,VOy,J58,FO,Dt,Ia,Zt6,dl,pe,NVS,yy,S3S,dnv,Ik7,wrv,G7,rl,sB,prE,HM,hX,bN,tX,y5w,kw,T7,lN,j3y,Le,gek,mK,Gzk,Z9v,s3w,HtE,hNw,btv,kz1,r5L,TVk,Qy,Ce,lk7,mnk,itL,Xr0,OtC,$w,XO,Ee1,Y30,Wsv,OB,cM,veC,q36,PHe,eNw,nev,xne,Yw,A9v,aky,UB,vM,oZk,
|
|
WM,Bme,PM,fa1,xw,ne,z7,KQ7,VWL,fK,J98,Vd,SaQ,RjE,I1,Zcy,FQ8,w$,DOC,dOe,jxv,Ia7,g$,GF,r$,HC,hz,Hcw,hjw,bk,tz,kC,tWD,mo,k11,Tmy,Qd,mOw,ik,$C,Xq,On,QxQ,En,MH,YC,Un,WC,vC,CmC,icy,$O6,PC,xC,eR,nK,zF,uk,X3v,Oc8,EZe,c9Q,MWD,YaE,a1,UO1,V4,WQS,vZQ,qaE,Jl,Rw,Zl,Nv,dn,Iw,wn,xO1,s5,Ht,hl,ejD,nZk,b8,zjS,uu8,kR,VaL,JUQ,SED,TR,Rq7,Z8S,DBC,mc,ImC,dBk,wDC,pDe,i8,$R,yU8,XC,O5,E5,ct,Mv,YR,U5,Wt,vt,qv,Pt,xR,et,nX,j$L,gAC,aw,Lg,G9D,Kg,Vh,J_,I0,Sk,Zp,Ns,hqk,Fa,Dp,dW,ta0,b88,rUL,pg,wW,mB8,yh,t_,H7,kz,Tc,CXk,mM,O8Q,$B1,
|
|
XDC,cU8,vAe,MaD,UB8,WNE,Q$7,Cg,Qh,PXD,$z,Xa,OQ,xBk,W7,eqS,v7,qs,P7,ek,zc,ul,nAL,aM,AK,ut7,B9,Kn,Vz,JK,Sw,RX,ZG,NE,F$,DG,Auv,dL,pn,wL,oMk,VAv,fH8,K7C,JuL,Skw,Z2D,Ns8,Rv6,DW8,gL,GT,H9,dWQ,IH1,sS,hK,pcy,yu1,ruC,GXE,TT,lt,mu,Qz,Cn,H2y,hvy,Y_,US,b21,tA0,kX6,P9,x_,ew,Tsw,lHk,QQ1,i2k,ut,$WS,Ls,aX,fs,Ks,JR,Nx,F4,D3,d2,w2,ps,jd,MAQ,Ykv,GU,UWk,W7E,s_,vMv,qky,Hf,hR,P0w,xWC,nMD,tR,lc,umw,aHE,kL,AXL,LKE,BlS,owe,ic,zv7,KKw,VFv,Mx,E_,JXv,SB7,YL,U_,RM8,ZeD,qx,Nlk,FK0,DT7,dTL,al,ItC,wMv,pML,yXQ,jaS,gwE,G7E,rX0,L4,
|
|
sa1,Ba,hMC,bey,tFL,k7y,Tl1,f4,Zu,mT0,ieC,NJ,$T8,OeC,lt8,Ew8,cX0,MFL,QaL,CNL,K4,Vf,RI,XM1,S_,Jb,YBC,UTD,WKD,vwQ,qB1,PNE,uO7,xTy,II,wE,yf,Lov,f1v,B$L,p4,GP,KoE,by,VRe,Sne,Qf,Jz0,wC1,RRy,dHe,XY,pC8,gC1,Ou,$l,yz8,j11,GF0,ca,s1y,HK1,hRe,bK6,tR8,kFD,T$8,rzD,mHS,Q1D,CkL,$Hw,iKE,OKw,Wa,ECL,va,czL,qJ,MRw,YnQ,e_,n4,Wok,UHQ,zP,qn1,xHQ,Pk0,eR6,uqw,nCD,SP,NU,ZP,a1E,RW,Fy,DP,dT,IW,Al6,pV,Bn7,oRw,gT,jP,rT,sl,HQ,h0,fle,b_,k0,Kck,l_,Jl0,Q0,CV,S57,R2D,ZXk,Nn1,i_,Xy,Fc8,Ol,El,cQ,dvC,MU,Y0,Ile,WQ,PQ,qU,vQ,x0,eP,yl1,
|
|
HX7,bXw,swC,rl7,h2v,u_,LE,lly,ttD,kRv,TnC,pt7,cle,N2,ERv,Uv7,OX7,zx,FP,KE,R9,MtS,Bb,gR8,jwe,GR0,Av,XtE,w8,nRw,yH,g8,uCv,alL,GN,A_y,LMD,ozQ,fp1,KMD,Hb,J_7,hv,SQQ,RzD,NWk,FMD,Dse,tv,dse,w7y,kf,p77,TN,lf,QH,sM7,kck,EF,lp7,ClS,M2,$s0,X7v,Og7,uf,Ez1,c_6,nE,oC7,xf,zN,eB,Yf,K1,Jr,Vo,Ru,Nt,YQe,Fb,dq,Iu,Usv,WM6,yo,qQe,Pl8,xsk,ezD,rq,nz8,zz1,uaE,sW,apL,AKy,LuS,HP,o_k,BL6,hr,fGv,Kue,tr,VwQ,JKe,SSk,kr,TZ,la,Rme,ZnC,NLw,FuQ,DEL,dE7,IGD,ia,$r,Xb,w9e,OW,p9L,cP,jX0,yK0,Yr,UW,WP,vP,g_k,qt,PP,GTv,rKy,xr,eN,bn7,sXD,
|
|
hmv,Hny,n1,zZ,ua,twQ,kT8,TLD,au,mED,inD,Cte,AG,LL,oA,BH,fL,Vr,JG,Sm,RA,Zh,Nf,$Ew,X9E,Onw,Fo,Dh,IA,pL,Mwk,cKQ,jm,YS8,gk,Gh,rk,sN,HH,kI,Th,lV,mm,Qr,CL,iV,$I,v_S,Xo,ON,EN,qSD,xED,UN,emv,WH,vH,u$y,aGS,ARQ,oL0,f3D,zh,Kz0,aA,uV,S_6,RXy,Zsy,L0,ov,Fzy,f0,K0,Vm,JV,dxC,SG,Rv,Z8,I3y,ND,Dxv,FR,D8,pf0,wf7,dX,Iv,wX,p0,jG,jlw,gL6,GJ,rX,H8,hV,GUS,sC,Hsk,hXD,bsw,tde,kU1,T2y,l37,tV,bJ,sl7,Cck,kx,$xk,Xfv,C0,Os1,lJ,mF,ELk,iJ,Mde,Uxe,$x,OC,Wz8,EC,q_7,c8,zXk,Yx,nL1,Pcy,eX6,xxe,UC,W8,v8,qD,P8,xx,eG,zJ,Abv,BE8,Ah,fu7,oE1,
|
|
Lz,oL,KbD,SuL,fz,SU,Kz,Jh,NEy,VD,Fb8,Z4L,Ruw,DJD,RL,dJE,Iu0,jIe,ZF,FK,GPQ,DF,dZ,IL,wZ,rbC,sIQ,pz,yD,jU,H4w,huD,G3,hh,bD,th,kv,T3,lD,b4w,mE,QD,Cz,iD,$v,XK,OX,t_k,kPy,EX,cv,MA,Yv,UX,Wv,TE7,luS,vv,eU,Cy6,i4E,nz,z3,BT,Xav,VS,JQ,O40,Zs,El1,M_D,cb6,Yuk,UJC,WbQ,vly,que,Py0,eu7,xJ8,nlS,auE,LeE,uYL,o01,BTw,Ke0,Ff,Ds,J00,VPE,d5,Id,w5,R80,pO,yS,j8,NTw,FeL,g5,ZV1,GQ,IP7,r5,sj,HT,hQ,b5,tQ,kD,TQ,l5,m_,QS,CO,i5,$D,Xf,Oj,Ej,cT,MN,YD,Uj,WT,vT,qN,PT,xD,e8,nO,zQ,u5,ad,Aw,Lk,oJ,BF,fk,Kk,Vt,Jw,S6,RJ,Zo,N1,Fv,Do,dU,IJ,
|
|
wU,pk,j6,gU,Gb,rU,sg,HF,hw,bT,tw,kX,Tb,lT,mw,Qt,Ck,iT,$X,Xv,Og,Eg,cF,M1,Ug,WF,pQe,vF,n,q1,YX,PF,xX,e6,jWv,zb,Gxw,nk,r07,aJ,sW8,Ly,uT,o6,BR,fy,Jm,h8Q,bVC,tPE,kxk,TTy,lP0,DB,py,C_S,iV7,$UQ,XQL,HVL,OVL,VL,E0k,c08,gY,hm,Gi,R6,MPD,Si,yL,rY,bY,UU8,NR,FW,HR,sZ,WeS,tm,kG,Ti,lY,v0S,mO,QL,Cy,iY,$G,qlk,P_1,e8D,n0L,EZ,cR,uyC,dy,ofv,fO7,VBe,A1S,YG,SFS,Rk6,xG,ZES,ei,ny,zi,uY,a6,AE,N86,D26,d2k,FLE,IOD,wbv,fU,KU,JE,RE,ZT,NS,pbQ,Fw,yvv,DT,dj,Vc,pU,yc,j9,gj,j90,wj,GNk,GY,rvk,s90,rj,HEe,sb,H$,hk7,bES,hE,tBy,kNe,bd,
|
|
T8k,lOQ,m2C,tE,km,TY,Q98,CfS,ld,mD,Qc,iE0,CU,id,$m,Xw,$21,Ob,Eb,Xbk,c$,OEy,MS,EfD,cvk,MBD,YFE,U2C,WLy,Ym,vfw,qFC,Pf7,Ub,x2D,W$,ekw,v$,nfL,qS,zkE,uPy,P$,ud,aOS,aE,AT,L$,oT,Ar8,L18,f$,Vu,JT,ory,So,RT,Nb,Bqy,F2,D2,fEv,IT,JrD,RZk,Z1e,SWk,yu,gN,jo,Gv,Nq0,Dt0,F1D,wN,dtS,IEQ,wPS,pPe,p$,GZL,rr6,su0,gr0,juv,yrk,H10,rN,K1E,hZy,VN6,b18,tNe,lE8,kZe,s2,Tq6,mtL,i11,Que,CaE,XP1,$tQ,O11,Er1,hT,YW0,crk,UtQ,MNC,W11,vrv,qWE,PaL,xtQ,eZw,nr0,zZe,ub1,aED,AGk,LmQ,bQ,oIL,fh6,BkD,KmS,Vmw,SNL,Tv,tT,C$,iQ,RiE,$a,ZLy,Mb,Ya,
|
|
Nkv,Fmv,WV,Dfv,qb,PV,xa,mP,eo,n$,df7,zv,uQ,aT,Ihv,AA,LW,ok,Bi,fW,KW,JA,Se,Rk,ZL,NK,wH0,pHy,yG0,dz,Fi,Ik,wz,jAv,pW,yV,je,gI7,GhC,gz,rz,sJ,Hi,hA,b1,kF,Tu,ma,l1,sAS,HLD,hiy,bLv,tmQ,khv,CW,lhy,$F,mfv,Xi,ci,QAE,CV6,iLL,$f1,MK,YF,Wi,UJ,qK,XHD,OLw,vi,EID,cGQ,ee,Mm0,nW,Uf6,u1,ak,vI8,Wmv,qN6,PVD,xfv,Lp,o2,BW,eiw,nIE,zi0,uo6,ah7,AV8,LFC,oxk,BXw,f80,Kp,Vg,KFy,VGk,Jy,S$,JVD,R2,ZN,Fp,SCE,DN,df,I2,Rav,wf,Z0D,pp,NXk,yg,FFC,DD6,j$,dD8,I8e,w80,gf,GA,rf,s7,p8D,yVw,HW,hy,bh,jvQ,ty,kd,TA,lh,mU,gxw,GJC,Qg,Cp,rVD,ih,$d,
|
|
Xp,O7,xUe,sv7,H01,E7,haD,b0L,tGw,cW,Mr,Yd,U7,WW,vW,qr,PW,xd,e$,np,kJC,TXQ,By,fJ,mDk,KJ,FE,Je,IG,X87,UD7,O01,WFv,vxL,PJQ,xD6,qCy,eaE,nxC,za1,Tl,Ahe,BZk,ovw,KEk,VUv,Jhy,QQ,CJ,R5e,ZzC,dAk,iM,IFD,NZ1,$Y,XE,O4,E4,pvC,gvD,yh1,sL8,lFe,TZe,Hz1,mAv,M8D,Gb1,QL1,tUk,MF,nDe,m9,sJk,rw0,wvk,bO0,Hk0,Yj6,WEC,vv1,$Aw,sd1,GQ8,rhQ,jLe,DAS,FE6,SXD,pTk,k3y,XT7,ch1,MUC,oU,OOw,jdL,bk1,hL6,Yh,UM,VtC,W_,ji,ZB,mUD,Ky,t60,v_,qF,P_,kbw,nS,z0,u4,A2,LP,TUE,aU,o4,BZ,loe,fP,CTD,QJD,m1E,VG,$10,XFw,J2,SH,R4,ZD,Ny,FX,DD,dS,M6E,wS,
|
|
Yge,I4,U1C,WwS,EXk,cw6,vXe,pP,yG,qgD,PTL,jH,x1E,gS,nX0,eLk,uvQ,BYC,KO6,Vi8,fBE,RDe,NY7,FOw,h2,b6,DR6,dRe,t2,kQ,IBC,wRQ,pRw,ymC,l6,j6L,gGy,QG,CP,rmQ,s67,HyE,tiv,$Q,EO,My,kiD,YQ,UO,CY1,$R1,iyC,WOQ,xQ,Oy6,PYE,cm8,z4,lBy,vZ,XRv,Q6v,mRy,TY1,nP,qy,eH,AI,nGv,os,Bq,fq,Kq,Vj,JI,Sz,zD6,uWy,Rs,Zc,Fd,AEC,LD6,Nj,omQ,KDS,V91,Dc,JE8,wD,SbS,pq,jz,RsL,yj,gD,ZUy,rD,FD8,DSC,Hq,hI,ln,ITw,tI,md,Cq,w$8,Xd,T5,Qj,p$E,O9,yE7,E9,jEw,bn,kK,dSw,$K,cq,gm7,GYS,Mj,rEv,YK,U9,Wq,vq,sE6,Pq,qj,xK,ez,HU1,hsD,nq,z5,un,as,AL,L3,bUE,op,
|
|
Bp,t9k,kYe,f3,K3,Vs,lTe,Tj0,JL,mSC,QED,Cde,Sl,iUw,$S0,X$7,OUk,EmL,Rp,ZY,NP,FV,cEy,M98,Yb7,dR,USk,Ip,wR,WD0,vm1,p3,qb0,Pd6,zsS,uwQ,xSE,ese,nmk,jl,gR,GW,rR,aT7,AT6,oaw,LP6,KPD,hL,JTL,Rov,S28,l7,TW,NND,FP6,Dbe,mr,dbv,C3,i7,I26,pVQ,yT7,XV,MP,rTe,vGE,PZ,H$k,ho8,b$0,to6,kvQ,WZ,OI,Wp,vp,QTk,CQ0,i$v,qP,Eaw,$b6,XVS,MoQ,Y2v,Pp,cT7,Ubv,x6,el,n3,WP0,va7,zW,u7,q20,ap,PQy,A7,Y6,fM,nae,qZw,EG0,KM,VN,Sx,Rj,ZA,NM,F5,J7,Ij,u26,pM,AAv,yN,oF6,LaL,a27,Bz1,GM,JAD,fLQ,VeD,Ka7,re,sR,SJ6,RE1,Nzy,HL,eD8,h7,DKe,ILC,u6,wi7,
|
|
pi6,MiC,UR6,FaQ,t7,ki,l9,yAS,jkk,gFS,Gu6,rA8,skD,HWw,hEv,bW6,te6,lLk,Tzy,mKQ,Qk8,C16,mH,iWv,i9,$K7,Xi1,OWw,$i,EF8,MeE,cAE,Lo,aj,oo,fo,Ko,ge,V3,YJ8,eEC,I6,A$,Ro,aLv,LUy,UR,dd,Yi,Io,y3,Bf7,fN7,u9,jK,S7e,gd,Gd,RS0,Zpw,Nf1,FUe,rd,Dr6,drQ,se,INv,gdw,j26,wWe,yyL,pWQ,HN,GAv,h$,ry0,s2D,hSS,bpQ,t$8,kAy,ChS,lS,m$,XWe,Q3,Co,Ed1,cy6,Y7C,WU6,vd8,xrw,eSe,ndQ,zS7,Aew,L9L,B98,fJE,K9y,VLQ,S40,N90,D0y,X1,Oe,Ee,cN,d08,wyk,pyw,eK,bJe,Glw,rev,kl8,no,T9D,m0Q,lJ7,QG6,uS,Lr,CML,zd,oq,BK,iJ0,$08,EYS,Y40,Rq,W96,Ja,OJ7,Ane,
|
|
NG,wp,jC,LW7,oh8,B3L,sr,rp,ta,kT,fyE,VML,Jnv,Tp,bj,SMv,ZS8,N30,DFL,Q7,FW6,dFe,IyD,ij,p_y,$T,yny,V7,ha,q4y,XyE,nY0,Ur,HK,RpE,nr,pr,uj,aq,ly7,QU6,mFy,y7,gp,C4D,Lm,oh,$F7,Bh,fm,X_v,iS,VW,mX,KWE,Sg,sUv,Rh,ML8,JeS,M$6,ZI,EhQ,cn7,Fr,nhE,ep6,u88,ay6,Ih,pm,yW,wh,gh,Gg,A2y,rh,oQ7,sU,fDD,bz,BSS,tj,kn,SO7,NSQ,F6k,Cm,Dy1,IDk,qm,xn,eg,wZ0,uz,pZD,ah,AY,fh,Kh,VC,JY,S3,y28,Rf,Zq,r2L,N5,Fh,s4w,HP8,Dq,dC,hUC,bPv,tHk,yC,j3,GD,k47,Ho,myQ,Q4y,TSD,C6E,iPv,$yv,k5,bb,hY,XZL,tY,TD,OP7,lb,EQQ,mf,c2E,MH6,YOL,Ch,ib,Uy8,W6w,
|
|
$5,qOC,vQ0,Xh,Ot,Et,xy0,eUE,co,nQD,zUk,M5,aDE,uX8,Y5,AIQ,Ut,oKC,LdL,BDe,Wo,vo,fcw,Vzv,JI8,q5,Po,x5,S98,Zqv,e3,NDv,af,Fd6,zD,Ai,LT,o5,Ic1,pqw,Dj7,wqL,yIy,djy,js6,gKw,BO,G5k,ss0,bqE,k56,tzw,NI,Zb,I5,wM,ya,mjw,jb,gM,GC,iqw,sV,$j6,CnC,HO,EK0,hi,b$,cIe,ti,Mz1,gY6,h97,Y9v,Wd1,UjD,vK8,k2,TC,l$,m4,q9S,egS,i$,$2,XT,nKC,Qa,zg7,ud6,ac0,LrS,OV,Z31,wpS,UV,ppv,KT,jp1,g6E,GW8,rLD,vO,spE,qI,PO,H30,x2,hc8,zC,b3Q,tlS,u$,a5,kWS,TRw,lYk,mP7,A4,nT,QpE,L5,i36,$Py,Xpk,O3Q,oN,E61,cLC,Mlk,Bj,UP6,f5,v6v,Wrk,ece,RN,P7D,YIS,
|
|
K5,ZU,n6k,zcQ,uVy,aYL,NL,F0,DU,dP,IN,A7L,wP,LHy,p5,jj,Vx8,SRw,RGE,ZMe,sL,Ne7,KHv,FHD,gP,DMy,IAk,yi,GE,Bev,fAw,rP,wLE,pLe,J7C,oiL,bP,y71,t4,jjL,giw,kU,TE,lP,GMw,mx,HMw,r7k,sjv,Qi,hGD,C5,iP,$U,X0,bMy,txe,kMQ,OL,lAw,mM1,EL,Qj6,cj,ML,C9L,iML,$M8,XLv,OMe,Ei6,WHv,Mxv,Hqk,YU,qRy,YRD,UMD,c7y,vj,zG6,Wj,UL,viy,aAD,niw,eGL,xME,P9E,Pj,A$C,fT,xU,ej,n5,L$7,zE,ocE,uP,Bdw,Db,f_L,aN,Ji,R5,rIS,Bl,K6,VKy,V1,S2,f6,oP,RP,A6,K$e,L6,Zz,J$E,Sj,xP7,Va,Nq,J6,SeS,ROS,Zok,Fn,Ndv,F$L,Dg0,dgD,I_D,dMw,Y2,wv,p6,Dz,jo1,Xq7,OqL,y1,
|
|
j2,gcw,Gd6,r$L,gv,Hov,Gm,hOw,tKQ,rv,t6,kdE,h6,Q1,l_6,Tde,CSe,QoQ,mgk,C6,ioQ,iR,$g0,Oo0,XN1,$q,C7Q,EcQ,Xn,Oh,c$w,Eh,Ye1,Ug7,W$e,vcv,cl,MKe,Mq,xje,Yq,xg6,Uh,PS7,Wl,eOy,PnS,CT,nce,vl,Pl,Aa7,a_e,AB,oS,Li,fQk,Bm,fi,KX6,VC7,Ja1,Srv,Ry1,Zrv,Npe,V_,FX7,DGv,dGw,Sn,qq,wKe,pKy,Ki,jq6,IQS,JB,gT0,RS,sqE,raE,Zj,N8,hy1,Dj,Gp8,dg,Fg,Hre,pi,wg,mG6,lQk,QqQ,Tp8,Cj7,irE,brQ,tCk,$GS,XK7,y_,caw,MC8,ETe,OrL,jn,WXk,gg,vT6,Yry,UG0,qrD,GL,PjE,xGe,zyS,nTD,eye,rg,uZ8,aQv,si,AjQ,LY7,Bhk,Hm,hB,fIw,KYL,VgC,b3,Jj7,tB,SU0,RIQ,Zmk,
|
|
NhS,FY0,Dm0,dmk,II8,whE,yje,jhQ,mB,Q_,$k,rje,i3,sh6,Hmv,Xg,hIL,tgk,bmk,Th1,lI8,QhD,M8,mmE,Oi,Yk,cm,kg8,Wm,$mS,imy,vm,Xhv,Om7,En7,cjL,Vi,MgQ,YUe,UmL,WYk,qUL,IS,mZ,Pzv,ure,eIw,zIC,u5w,Ui,xm7,nnS,FT,Sb,o5D,fqD,BCS,KfQ,JY8,StQ,Cz6,lR,q8,bR,AYL,R0C,LfL,Zhw,Hl,NCw,Ff0,bok,kpC,kq,Pm,xk,en,D5E,ni,d5D,Iqe,woy,poC,yYS,jfD,GD8,rYy,bhS,sf7,h06,t30,u3,m5e,TCy,lqw,$5y,Xo8,Ohy,aS,E5E,zL,cYC,ih0,kDC,At,M3L,HhD,Yty,LR,Wfv,U56,qt8,PbE,x5y,v5C,oc,z0C,n5e,Aiy,aq7,uhk,L46,o2e,BY,BM6,fR,K41,Vbk,fbD,SVS,ZTE,NME,wO6,DIS,
|
|
dIL,Ibw,pOC,yiw,j5C,GC7,g2e,ri8,s5E,KR,HT6,hV0,tb6,bTD,kCL,TM0,mI8,Q5y,$IQ,C$D,XO8,OT8,E2E,lbv,ciE,iTL,Jt,MbE,YVv,UI6,W4E,Rc,P$0,qV6,xI6,eVE,n2D,abv,zVC,oUe,Z5,uT1,BPv,fU8,N9,KxE,D5,dw,Fz,Ic,Vjw,ww,RJ0,SLe,NP7,FxS,DL8,dL1,IUD,Z50,wjQ,pR,pj6,J4y,GgQ,Sv,jNe,gUy,GE7,r47,sN6,H5L,hJw,tjE,jv,kE1,b5w,TPE,lUy,mL7,QN0,$L0,i5k,CPD,XjL,Ga,rG7,O5w,EUv,rw,c4E,Mj6,HY,Wxk,vUS,bG,qLD,PPS,ht,UL7,tt,sP,YLe,lG,kH,xLw,mI,Ta,u0w,LZ8,Bvw,KZD,nUD,oqS,V2L,zJ8,J6y,ShE,RH1,$H,Qn,FZS,Dq0,Z6e,iG,Iz8,wlQ,A6e,aUQ,dqw,plC,fz0,
|
|
NvS,eJk,Xz,OP,EP,y66,cY,hHv,r6D,b66,sP7,gq6,t2k,jP0,lz8,kme,M9,mq7,Gme,CR1,$qE,O6L,Eqk,c66,Uq1,q9,WZQ,M2v,vY,PR8,xq1,uG,yae,YH,eHk,nqQ,az0,AB8,zH1,ok7,qhv,UP,ev,fjk,KBQ,VnC,JBw,vnQ,xH,Sik,ZiL,RTk,FBE,NgD,XlD,d81,D87,nR,PY,Ij1,Ak,wmy,pmk,yBe,jS6,gkQ,ac,YhC,GLw,aI6,CR,rBy,Ll,sSD,HiD,hTv,biE,tny,om,Be,ljk,fl,m8w,QSL,kL0,Tg1,Kl,Xmw,iiL,$8L,OiL,Ekw,Vp,cBC,Mnk,Yie,Jk,U86,vkD,qiL,P3S,Ss,WBe,Rm,ZW,x8e,eTk,nky,zTe,ugQ,ajQ,AtQ,DW,NQ,F7,LI0,dA,oH6,Bw0,f5L,KIS,Jte,Vvw,gA,R_Q,ZRL,SPQ,Nwe,Gt,FIS,rA,D9D,sq,d9w,
|
|
wY6,rtE,pY6,jc1,gHw,ytk,I57,GaE,sce,HRy,h_L,bRD,tv1,ka1,hk,TwC,k8,bu,l5E,Tt,lu,Qc8,CG8,Qp,Cl,iR6,mS,XYk,$9e,iu,EHk,ORE,X7,Oq,Eq,YPQ,ct6,Mvv,ce,U9v,PGL,vH8,WIQ,qPC,MQ,e_D,a5y,AkQ,Y8,LSS,nHL,o8L,Uq,z_w,KSS,We,ve,Vs0,Jk0,SqQ,R16,Zl1,Pe,FS7,IWS,weE,peE,es,DQQ,jmk,x8,nl,zt,NA7,dQ6,uu,g8E,rke,smL,h1L,Hl0,bl6,TAS,BB,Lj,Kj,o_,ktE,tsQ,fj,lWw,V2,mQv,QmQ,CuD,Jq,Sf,il1,$QL,Xee,OlQ,E88,cke,Ms0,WS0,Yqe,v86,qq6,n87,z1w,Bue,gu,Vf1,Rd8,GB,Sv6,Jq6,L5v,oSk,u7w,aWy,fKC,ru,HB,F51,EU,K6k,Dp8,bg,kS,dpe,IK7,jf,K5E,yqS,j_E,
|
|
gSD,lg,TB,Ov,rq6,s_7,Hj1,Ev,hdS,tfC,bjy,kBk,cB,Mp,TuS,Q_S,Cgw,Uv,mpe,ij0,$pL,lKy,qp,XBD,Oj1,vB,ESe,cqL,MfC,Yvw,W5S,Up6,PgL,xpD,vSw,nSy,zdE,qv0,ef,nj,uB1,BxE,zB,aKE,AP7,otw,L01,fd8,Id7,pJ8,wJL,yPe,jD7,gte,GoQ,rPk,HQD,AP,a_,DYy,LQ,hCL,bQC,sD1,Cr8,QDv,iQ7,$Ye,Ete,OQ0,XJ1,cP8,Mc0,oD,BJ,Yf1,UYk,W0S,vt0,Pr1,xY8,KQ,eCE,fQ,JP,qfv,Sc,nt7,zCD,uSw,adS,ASL,RD,LjE,ooL,KjC,Zd,VQ6,fCD,NY,FS,Dd,SYD,RWy,Zbk,JSy,Fje,N0v,Ddv,dx,ddv,ICk,pdD,gok,wdS,ySk,ID,GGL,s7y,Hbv,bb6,tQ1,wx,pQ,kGk,rSk,mdD,lCE,T0E,yF,jc,CEQ,Q77,gx,
|
|
Go,rx,ibE,sf,$d7,Xd7,ObS,EoC,HJ,cS7,hP,MQD,br,YYy,tP,kt,Wj6,Ud0,voe,To,PEw,lr,m0,eWD,uAw,aCe,xdk,AZ6,BcS,f$y,Kh7,oyk,Lhw,JZy,VhE,Spe,NcQ,ir,DzS,FhC,Rxe,ZZy,dz1,I$D,$t,XS,wuL,pue,yZk,jH1,gyS,GjS,sHk,HZk,QHk,thQ,kjQ,hxD,iZL,Uf,vJ,cZv,Mh0,xt,YpD,ec,UzL,$z7,Yt,qY,vyQ,qp0,zo,xzy,nyD,exL,ur,PJ,MY,PFk,nQ,Xue,Wh6,uM6,Of,aD,a$C,A3e,WJ,OZe,AS,Lb,LGS,o7,o4v,Bd,B17,f6k,Vp0,J31,KGw,fb,S$k,Kb,VA,Rn1,ZY0,N18,FGL,deL,I66,p1C,w1v,SQ,JS,De8,y3y,g4e,G2S,jYS,r36,R7,HYL,sYE,ZC,Nd,hnE,tp8,k2D,FA,bYy,T16,l60,QYQ,DC,meE,
|
|
CvL,iY6,$eE,I7,w0,E48,c3k,X1C,OYe,Mp0,pb,yA,Uee,Y$0,WG1,q$7,v4L,PvQ,g0,en1,xey,n4w,r0,znw,a6D,AN0,ul0,Hd,LR7,ou7,BQD,KR0,VyE,JNL,f91,Syy,R7E,ZI6,NQ1,FRC,DZ0,dZS,I97,w08,p08,jz6,gu0,Ge7,ko,rNL,szv,HIv,bIE,l9C,keL,mZ8,h77,mj,ty7,lE,TQQ,Cb,Co1,QzS,$o,iE,OIe,Euw,cN8,MyL,F48,WRL,UZ0,OY,cd,EY,YyC,Md,Yo,Wd,qye,vd,opE,Fg8,DcS,qd,Bgy,dcw,rM,lcy,Qsv,Pd,xo,nh,I0E,wEQ,ub,pT,sh,pE0,yCk,gpD,jVS,GSD,rCv,sV6,HF6,bFe,tDQ,kSe,TrD,hBv,OF0,EpQ,XE8,cCv,YHC,Wg7,vpe,qHS,a7,Uc1,MDe,l0k,AZ,eBw,np7,xc8,PZk,a0D,ujL,J4,Aow,
|
|
oV7,fVQ,LZ,KJL,iFE,zG,LJQ,V4C,JoS,SK0,mcy,CZk,qID,Tm,uE,Rek,Bu,N4k,FJD,D7C,oH,Z_0,B4E,IVD,jeL,KZ,gVk,GsE,pAw,JZ,roy,seS,d7L,H_E,yow,he0,Sh,V$,b_0,ksC,t4Q,fZ,lVD,RH,vqw,m70,i_8,C2S,XAQ,O_y,$7C,Nz,Z$,co6,M4v,YKe,U7v,FM,WJv,vV7,aVQ,ee0,nVy,P2w,qKD,IH,Kyy,B78,dc,y$,jh,JM7,Sov,rc,uUC,bF,Z7E,hZ,Gj,Fyk,Dk6,dkw,oBy,Tj,mh,wx6,zeL,Rf0,sp,wc,pxC,iF,N7v,yMv,jny,$y,XM,gBy,Hu,fg6,GqQ,rMS,lF,sn0,tZ,H7e,ky,hj,hf0,tJv,Op,Ep,kqQ,T78,lg8,CZ,Q$,mkk,QeC,Qnk,x7w,CU7,i70,$k8,Xxw,cu,Mz,cMS,Uky,vB7,EB0,ag7,AHv,L3L,oJE,BBw,
|
|
fe8,K3E,JHy,VIe,S8C,Yy,Up,Wu,R6L,ZBe,NBk,Pi,F38,vu,D6L,qz,d6y,Pu,eh,XW,IeD,SM,xNw,wn7,vy,pnL,OJ,EJ,yHy,EM,jiE,gJS,GfE,RU,LEy,rH1,siy,HBD,nZ,bBL,tIw,zj,aH,A3,kfD,m6D,Qi7,LY,CKE,TBL,iBv,lev,$6k,Xn0,OBQ,EJQ,oY,MIL,gf6,S9,zu,Y87,U60,Ay,cHe,IE,W36,vJ0,q80,B1,BV,x6D,fY,e6C,KY,VY,uF,nJ1,z6D,uG8,J3,Sp,aek,RY,Z6,Ac6,Ne,LA6,Fl,D6,oOL,BJw,YN6,d1,fv1,Vu8,KAC,IY,w1,Jc8,pY,SmQ,R$0,ZNE,NJ1,FAD,D3S,Ivk,jp,d3e,ws1,psy,yc7,jZe,sZL,gO0,GnD,rc7,h$v,tuS,kny,TJ8,bNE,g1,lvD,m3D,QZk,CxQ,iNL,r1,$3L,s$,H1,h3,XsC,ONE,cc6,Mu0,
|
|
Ym0,U3w,vO7,WA8,qme,bv,t3,e$L,Pxv,x38,k4,nOQ,z$v,T2,lv,uHQ,mG,av6,QY,AJ1,CY,iv,Lpe,$4,Xl,oPe,BOy,O$,E$,fMS,c1,Kp1,V0E,W1,v1,JJS,S1Q,RAv,Fpk,NO7,qe,Duk,duL,IM7,uRy,ZAk,pzk,yJv,gPL,hQL,k8C,qC,c6;Kw=function(A,L,B,f,K,V,J,R,Z,N){var F;(A&121)==A&&(F=L!==null);(A&46)==A&&(F=f(K,V,J,R,Z,N));if((A^57)>>3>=1&&(A|9)<18){A1(1,L);var D=decodeURIComponent(L[S[16]](S[42])||S[21])[S[40]](S[82]);F=L[S[17]]===S[1]&&D[S[9]]>1&&!!D[1]}return F};
|
|
J1=function(A,L,B,f){if((A^42)>>4<1&&((A^28)&5)>=0){for(var K=L[S[40]](S[19]),V={},J=0;J<K[S[9]];J++)var R=J1(72,K,J,V);var Z=V}if((A>>1&7)==2)if(B=B===void 0?!1:B,A1(34,L),L[S[17]]!==S[1])K=L[S[35]](),K[S[18]](S[86],S[25]),Z=K;else if(V=L[S[76]](),K=new g.ZS(V),J=L[S[16]](S[74]),R=decodeURIComponent(L[S[16]](S[42])||S[21])[S[40]](S[82]),J&&R&&R[S[9]]>1&&R[1]){V=K[S[10]];var N=V[S[84]](/^[^.]*/,S[21]);g.NC(K,(V[S[3]](S[34])===0?S[34]:S[70])+J+S[46]+R[1]+N);K=new g.Fk(K[S[52]]());K[S[18]](S[83],S[25]);
|
|
Z=K}else B?(K=L[S[35]](),K[S[18]](S[83],S[25]),Z=K):(J=K[S[10]][S[39]](S[64]),K[S[10]][S[39]](S[88])?(g.NC(K,S[75]),V=K[S[52]]()):K[S[10]][S[39]](S[51])?(g.NC(K,S[4]),V=K[S[52]]()):(K=A1S(V),dy(K)&&(V=K)),K=new g.Fk(V),K[S[18]](S[60],S[25]),J&&K[S[18]](S[32],S[92]),Z=K);(A+7&16)<10&&(A>>2&11)>=6&&(V=g.y(L,LvQ)||L[S[68]],K={sG:!1,Ff:S[21],q0:S[21],s:S[21]},V?(V=I0(V),K[S[56]]=!0,K[S[80]]=V[S[11]],K[S[65]]=V[S[36]],K[S[26]]=V[S[26]],Z=K):Z=K);(A|72)==A&&(K=L[B],V=K[S[3]](S[66]),V>0?wy(32,f,K[S[22]](0,
|
|
V),K[S[22]](V+1)):K&&(f[K]=S[21]),Z=[]);return Z};
|
|
pw=function(A,L,B,f,K,V){var J;(A+2&60)>=A&&(A+2&31)<A&&(J=B(f,K,V));if(A-5<<1<A&&(A+5&11)>=A){for(var R=64,Z=[];++R-Z[S[9]]-32;){switch(R){case 58:R-=14;case 91:case 92:case 93:continue;case 123:R=47;case 94:case 95:case 96:continue;case 46:R=95}Z[S[15]](String[S[20]](R))}J=Z}A-5>>3==2&&(this[S[29]]=L,this[S[7]]=B===void 0?!1:B,this[S[37]]=this[S[17]]=this[S[23]]=S[21],this[S[10]]={},this[S[11]]=S[21]);if(!(A+5&13)){R=64;for(Z=[];++R-Z[S[9]]-32;){switch(R){case 91:R=44;continue;case 123:R=65;break;
|
|
case 65:R-=18;continue;case 58:R=96;continue;case 46:R=95}Z[S[15]](String[S[20]](R))}J=Z}return J};
|
|
jE=function(A,L,B,f,K,V,J,R,Z,N,F){var D;(A|72)==A&&L[S[14]]();(A&100)==A&&B[S[9]]!=0&&(L=(L%B[S[9]]+B[S[9]])%B[S[9]],B[S[12]](0,1,B[S[12]](L,1,B[0])[0]));if((A<<1&13)>=7&&A>>1<15)throw L;((A|8)&5)==1&&(D=B(V,J,R,Z,N,F));return D};
|
|
sD=function(A,L){if(((A^3)&13)==1){A1(32,L);var B=g.gy(L[S[10]],o7k)}if((A-9^16)>=A&&(A+7^10)<A){var f=L[S[40]](S[21]);G8[S[24]](f,13);G8[S[24]](f,60);G8[S[24]](f,53);B=f[S[38]](S[21])}if((A|40)==A){f=64;for(var K=[];++f-K[S[9]]-32;)switch(f){case 46:f=95;default:K[S[15]](String[S[20]](f));case 94:case 95:case 96:break;case 123:f-=76;case 92:case 93:continue;case 58:f=44;case 91:}B=K}return B};
|
|
By1=function(A,L,B){if((A+7^29)<A&&(A-2^28)>=A){for(var f=64,K=[];++f-K[S[9]]-32;)switch(f){case 58:f=96;continue;case 91:f=44;break;case 65:f=47;continue;case 46:f=153;case 123:f-=58;default:K[S[15]](String[S[20]](f))}var V=K}(A|2)>>3>=0&&A+3<16&&(f=L[S[3]](S[28],12),K=L[S[3]](S[28],f+1),f>0&&K>0?(B[S[17]]=L[S[22]](0,K),L=L[S[22]](K+1)):(B[S[17]]=L,L=S[21]),V=[L]);return V};
|
|
A1=function(A,L,B){if((A>>1&12)<1&&A>>1>=-43&&L[S[29]])var f=fSS(5,L);if(!(A-5&6)){L=(L%B[S[9]]+B[S[9]])%B[S[9]];f=B[0];B[0]=B[L];B[L]=f;var K=[L]}(A^20)<15&&(A>>2&5)>=3&&(L[8]<4&&(L[6]>=-8?(0,L[15])((0,L[5])(L[23]),(0,L[5])(L[20]),L[36],(0,L[5])(L[23]),L[17],L[12]):(0,L[36])((0,L[26])(L[47],L[-7+new B(S[63])/1E3]),L[61],L[49],L[23])===((0,L[61])(L[57],L[27],(0,L[6])()),L[0])(L[57],L[23])),(0,L[68])(),(0,L[41])((0,L[31])(L[39],L[30]),L[61],L[25],L[27],(0,L[18])()),K=[]);return K};
|
|
h1=function(A,L,B){(A<<1&7)>=0&&(A+8&14)<3&&B[S[15]](L);if((A<<1&7)==2&&L[S[9]]!=0){var f=A1(13,B,L);B=f[0]}if((A^35)>>4<1&&A<<1>=-71){A1(3,L);f=L[S[23]]+(L[S[23]]?S[6]:S[69])+L[S[37]]+L[S[17]];if(sD(2,L)){var K=[];g.H6(L[S[10]],function(J,R){J!==null&&K[S[15]](R+S[66]+J)});
|
|
f+=S[44]+K[S[38]](S[19])}var V=f}return V};
|
|
bL=function(A,L,B,f,K,V,J,R,Z){(A^22)>>3==2&&L[S[14]]();if((A-9^28)<A&&(A-9|43)>=A){var N;A1(2,L);if(N=L[S[10]][S[72]]||null)N=KvL[0](N),L[S[18]](S[72],N);var F=[]}(A^31)>>3==1&&(F=B(f,K,V,J,R,Z));return F};
|
|
k7=function(A,L,B,f,K,V,J){var R;(A-8|19)<A&&(A-3^31)>=A&&(R=B(K,V,J));if((A&67)==A){var Z=L[S[40]](S[28]),N=0;Z[0]||N++;for(var F={};N<Z[S[9]];N+=2)Z[N]&&wy(4,F,Z[N],Z[N+1]);R=F}if(!(A-3>>4))a:if(Z=L[S[40]](S[21]),N=[VE7,null,J16,null,S[61],-225282824,Z,SDv,971282551,RQE,-88000248,Zw8,-1030189066,NyS,null,1624177671,-1258435329,FvL,-1884066279,-2081688527,-886630647,DCk,18061952,1416375861,S[67],dC0,243695351,584584133,1080626611,-1408508097,940927517,IS7,w6w,-1198777365,-1700657897,p6Q,667691795,
|
|
-1369354033,y1k,S[30],function(D,I,d){var w=d[S[9]];D[S[78]](function(r,h,Q){this[S[15]](Q[h]=d[(d[S[3]](r)-d[S[3]](this[h])+h+w--)%d[S[9]]])},I[S[40]](S[21]))},
|
|
1909008657,-747657128,189235419,function(D,I){D=(D%I[S[9]]+I[S[9]])%I[S[9]];I[S[12]](-D)[S[14]]()[S[78]](function(d){I[S[50]](d)})},
|
|
S[87],-2135883810,1770511103,Z,186904142,-1766894458,1472192630,j0L,-83527623,g7L,G8k,-1192265138,-405136233,-574383650,1976477660,1378036374,Z,425939485,-726016257,r1y,-1848270386,1298795749,S[41],-774036769,-574383650,-1094854843,-251903802,s0y,1671345774],N[1]=N,N[3]=N,N[14]=N,typeof Hw8===S[90])R=L;else{try{try{F=wy(11,N,Date)}catch(D){N[6]!=7&&(((0,N[2])((0,N[2])((0,N[67])(N[15],N[41]),N[41],N[27],N[72]),N[31],N[64],N[13]),(0,N[3])(N[2],N[36]),((0,N[32])(N[47],N[2]),N[61])(N[31],N[12]),(0,N[61])(N[36],
|
|
N[56]),(0,N[61])(N[4],N[40]),((0,N[8])(N[36]),N[0])(N[new Date(S[79])/1E3],N[1],(0,N[55])()),N[8])(N[31]),N[new Date(S[93])/1E3])(N[new Date(S[45])/1E3],N[23])<<((0,N[65])(N[29]),N[37])(N[21],N[44])}finally{N[72]<-5?(0,N[20])((0,N[20])((0,N[8])(N[31]),N[44],N[61],N[57]),N[63],N[41],N[3]):(0,N[36])(((0,N[17])(N[52]),N[5])(N[20]),N[new Date(S[91])/1E3],N[52],N[22],(0,N[24])())}try{F=A1(16,N,Date)}catch(D){(N[3]<5||((((0,N[31])(N[55],N[28]),(0,N[31])(N[47],N[44]),(0,N[17])(N[28],N[35]),N[31])(N[59],
|
|
N[44]),(0,N[41])((0,N[50])(N[32],N[16]),N[12],N[47],N[49]),N[63])((0,N[72])(N[54],N[26]),N[61],N[42],N[62]),0))&&(0,N[63])((0,N[71])((((((0,N[21])(N[45],N[60]),N[29])(N[55],N[70]),N[29])(N[12],N[39]),N[29])(N[55],N[49]),N[29])(N[12],N[33]),N[16],N[74],N[57],(0,N[59])()),N[71],(0,N[61])(N[38],N[74]),N[16],N[74],N[15],(0,N[59])()),N[56]<=new Date(S[47])/1E3?((0,N[63])((0,N[71])((0,N[new Date(S[57])/1E3])(N[11],N[12]),N[61],N[0],N[74]),N[44],(0,N[new Date(S[71])/1E3])(N[12]),N[47],(0,N[21])(N[25],N[12]),
|
|
N[74],N[28]),N[71])((0,N[29])(N[74],N[27]),N[5],N[55],N[64]):((0,N[26])((0,N[29])(N[74],N[43]),N[71],(0,N[71])((0,N[16])(N[74],N[15],(0,N[48])()),N[52],N[12]),(0,N[29])(N[74],N[67]),(0,N[16])(N[12],N[15],(0,N[36])()),N[29],N[60],N[19]),N[8])(N[12])}}catch(D){R=S[94]+L;break a}R=Z[S[38]](S[21])}(A^59)>>3==1&&(R=L[S[29]]?L[S[29]][S[33]](S[31]):L[S[23]]===S[31]);if((A|3)>>3==3)for(Z=L[S[9]];Z;)L[S[15]](L[S[12]](--Z,1)[0]);return R};
|
|
wy=function(A,L,B,f){if((A&52)==A){if(B===S[73]){var K;(K=f[S[3]](S[66]))>=0?(B=S[81]+f[S[22]](0,K),f=f[S[22]](K+1)):(K=f[S[3]](S[54]))>=0&&(B=S[81]+f[S[22]](0,K),f=f[S[22]](K+3))}L[B]=f}if((A|1)>>3==2){A1(7,L);var V=L[S[37]]}(A-9&15)==1&&(B=(B%L[S[9]]+L[S[9]])%L[S[9]],L[S[12]](B,1));(A+6&11)==1&&(L[37]<new B(S[13])/1E3&&(L[47]===-3||(0,L[64])((0,L[44])(L[63],L[6]),L[44],L[60],L[3])&&new B(S[89])/1E3)&&((0,L[52])(L[60],L[16],(0,L[66])()),L[12])(L[59],L[15]),(0,L[50])(L[26]),(0,L[56])(L[11],L[new B(S[49])/
|
|
1E3]),V=[]);return V};
|
|
fSS=function(A,L,B){if(!((A^37)&5)){if(!(dy(L[S[29]])||L[S[29]][S[33]](S[31])||L[S[29]][S[33]](S[62])||L[S[29]][S[33]](S[77])))throw new g.iL(S[95],L[S[29]]);var f=g.$7(L[S[29]]);L[S[23]]=f[S[55]];L[S[37]]=f[S[10]]+(f[S[37]]!=null?S[58]+f[S[37]]:S[21]);var K=f[S[29]];K[S[33]](S[1])?(L[S[17]]=S[1],K=K[S[22]](14)):K[S[33]](S[43])?(L[S[17]]=S[43],K=K[S[22]](13)):K[S[33]](S[48])?(K=By1(1,K,L),K=K[0]):(L[S[17]]=K,K=S[21]);var V=L[S[10]];L[S[10]]=k7(1,K);Object[S[0]](L[S[10]],J1(42,f[S[7]][S[52]]()));Object[S[0]](L[S[10]],
|
|
V);L[S[10]][S[53]]===S[85]&&(delete L[S[10]][S[53]],L[S[17]]+=S[59]);L[S[29]]=S[21];L[S[11]]=S[21];L[S[7]]&&(f=bL(24,L));var J=[]}if(((A|8)&5)==1)for(B=(B%L[S[9]]+L[S[9]])%L[S[9]];B--;)L[S[50]](L[S[27]]());return J};
|
|
OD=function(A){return function(){return hQL[A].apply(this,arguments)}};
|
|
g.ED=function(A,L){return hQL[A]=L};
|
|
bw0=function(A){A=["object"==typeof globalThis&&globalThis,A,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var L=0;L<A.length;++L){var B=A[L];if(B&&B.Math==Math)return B}throw Error("Cannot find global object");};
|
|
UD=function(A,L){if(L)for(var B=0;B<c6.length;B++)tEL(c6[B]+"Array.prototype."+A,L)};
|
|
W6=function(A,L){L&&tEL(A,L)};
|
|
tEL=function(A,L){var B=g.v6;A=A.split(".");for(var f=0;f<A.length-1;f++){var K=A[f];if(!(K in B))return;B=B[K]}A=A[A.length-1];f=B[A];L=L(f);L!=f&&L!=null&&qC(B,A,{configurable:!0,writable:!0,value:L})};
|
|
g.G=function(A,L){A.prototype=k8C(L.prototype);A.prototype.constructor=A;if(P6)P6(A,L);else for(var B in L)if(B!="prototype")if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(L,B);f&&Object.defineProperty(A,B,f)}else A[B]=L[B];A.oy=L.prototype};
|
|
TyD=function(A){var L=0;return function(){return L<A.length?{done:!1,value:A[L++]}:{done:!0}}};
|
|
g.m=function(A){var L=typeof Symbol!="undefined"&&Symbol.iterator&&A[Symbol.iterator];if(L)return L.call(A);if(typeof A.length=="number")return{next:TyD(A)};throw Error(String(A)+" is not an iterable or ArrayLike");};
|
|
lS1=function(A){for(var L,B=[];!(L=A.next()).done;)B.push(L.value);return B};
|
|
g.x7=function(A){return A instanceof Array?A:lS1(g.m(A))};
|
|
g.eE=function(A){return mCC(A,A)};
|
|
mCC=function(A,L){A.raw=L;Object.freeze&&(Object.freeze(A),Object.freeze(L));return A};
|
|
z8=function(A,L){return Object.prototype.hasOwnProperty.call(A,L)};
|
|
Q0v=function(A){if(!(A instanceof Object))throw new TypeError("Iterator result "+A+" is not an object");};
|
|
Af=function(){this.X=!1;this.U=null;this.W=void 0;this.N=1;this.D=this.T=0;this.yj=this.V=null};
|
|
Lf=function(A){if(A.X)throw new TypeError("Generator is already running");A.X=!0};
|
|
Bw=function(A,L){A.V={nk:L,RR:!0};A.N=A.T||A.D};
|
|
g.X=function(A,L,B){A.N=B;return{value:L}};
|
|
Kf=function(A,L,B){L=g.m(L);var f=L.next();Q0v(f);if(f.done)A.W=f.value,A.N=B;else return A.U=L,g.X(A,f.value,B)};
|
|
g.VK=function(A){A.N=0};
|
|
g.S5=function(A,L,B){A.T=L;B!=void 0&&(A.D=B)};
|
|
g.RO=function(A,L){A.T=0;A.D=L||0};
|
|
g.ZR=function(A,L,B){A.N=L;A.T=B||0};
|
|
g.NX=function(A,L){A.T=L||0;L=A.V.nk;A.V=null;return L};
|
|
g.F9=function(A,L,B,f){f?A.yj[f]=A.V:A.yj=[A.V];A.T=L||0;A.D=B||0};
|
|
g.DR=function(A,L,B){B=A.yj.splice(B||0)[0];(B=A.V=A.V||B)?B.RR?A.N=A.T||A.D:B.Ux!=void 0&&A.D<B.Ux?(A.N=B.Ux,A.V=null):A.N=A.D:A.N=L};
|
|
CLC=function(A){this.N=new Af;this.W=A};
|
|
iwv=function(A,L){Lf(A.N);var B=A.N.U;if(B)return dI(A,"return"in B?B["return"]:function(f){return{value:f,done:!0}},L,A.N.return);
|
|
A.N.return(L);return IO(A)};
|
|
dI=function(A,L,B,f){try{var K=L.call(A.N.U,B);Q0v(K);if(!K.done)return A.N.X=!1,K;var V=K.value}catch(J){return A.N.U=null,Bw(A.N,J),IO(A)}A.N.U=null;f.call(A.N,V);return IO(A)};
|
|
IO=function(A){for(;A.N.N;)try{var L=A.W(A.N);if(L)return A.N.X=!1,{value:L.value,done:!1}}catch(B){A.N.W=void 0,Bw(A.N,B)}A.N.X=!1;if(A.N.V){L=A.N.V;A.N.V=null;if(L.RR)throw L.nk;return{value:L.return,done:!0}}return{value:void 0,done:!0}};
|
|
$C1=function(A){this.next=function(L){Lf(A.N);A.N.U?L=dI(A,A.N.U.next,L,A.N.G):(A.N.G(L),L=IO(A));return L};
|
|
this.throw=function(L){Lf(A.N);A.N.U?L=dI(A,A.N.U["throw"],L,A.N.G):(Bw(A.N,L),L=IO(A));return L};
|
|
this.return=function(L){return iwv(A,L)};
|
|
this[Symbol.iterator]=function(){return this}};
|
|
wI=function(A,L){L=new $C1(new CLC(L));P6&&A.prototype&&P6(L,A.prototype);return L};
|
|
X6Q=function(A){function L(f){return A.next(f)}
|
|
function B(f){return A.throw(f)}
|
|
return new Promise(function(f,K){function V(J){J.done?f(J.value):Promise.resolve(J.value).then(L,B).then(V,K)}
|
|
V(A.next())})};
|
|
g.c=function(A){return X6Q(new $C1(new CLC(A)))};
|
|
g.pf=function(){for(var A=Number(this),L=[],B=A;B<arguments.length;B++)L[B-A]=arguments[B];return L};
|
|
yK=function(A){return A};
|
|
Owy=function(A){A={next:A};A[Symbol.iterator]=function(){return this};
|
|
return A};
|
|
j5=function(A,L,B){if(A==null)throw new TypeError("The 'this' value for String.prototype."+B+" must not be null or undefined");if(L instanceof RegExp)throw new TypeError("First argument to String.prototype."+B+" must not be a regular expression");return A+""};
|
|
E70=function(A,L,B){A instanceof String&&(A=String(A));for(var f=A.length,K=0;K<f;K++){var V=A[K];if(L.call(B,V,K,A))return{eC:K,MD:V}}return{eC:-1,MD:void 0}};
|
|
gI=function(A,L){A instanceof String&&(A+="");var B=0,f=!1,K={next:function(){if(!f&&B<A.length){var V=B++;return{value:L(V,A[V]),done:!1}}f=!0;return{done:!0,value:void 0}}};
|
|
K[Symbol.iterator]=function(){return K};
|
|
return K};
|
|
GK=function(A){A=Math.trunc(A)||0;A<0&&(A+=this.length);if(!(A<0||A>=this.length))return this[A]};
|
|
c10=function(A,L,B){A instanceof String&&(A=String(A));for(var f=A.length-1;f>=0;f--){var K=A[f];if(L.call(B,K,f,A))return{eC:f,MD:K}}return{eC:-1,MD:void 0}};
|
|
g.hf=function(A,L,B){A=A.split(".");B=B||g.rI;for(var f;A.length&&(f=A.shift());)A.length||L===void 0?B[f]&&B[f]!==Object.prototype[f]?B=B[f]:B=B[f]={}:B[f]=L};
|
|
tf=function(A,L){var B=g.bB("CLOSURE_FLAGS");A=B&&B[A];return A!=null?A:L};
|
|
g.bB=function(A,L){A=A.split(".");L=L||g.rI;for(var B=0;B<A.length;B++)if(L=L[A[B]],L==null)return null;return L};
|
|
kW=function(A){var L=typeof A;return L!="object"?L:A?Array.isArray(A)?"array":L:"null"};
|
|
g.lB=function(A){var L=kW(A);return L=="array"||L=="object"&&typeof A.length=="number"};
|
|
g.QK=function(A){var L=typeof A;return L=="object"&&A!=null||L=="function"};
|
|
g.$W=function(A){return Object.prototype.hasOwnProperty.call(A,Cf)&&A[Cf]||(A[Cf]=++MED)};
|
|
YD6=function(A,L,B){return A.call.apply(A.bind,arguments)};
|
|
UCw=function(A,L,B){if(!A)throw Error();if(arguments.length>2){var f=Array.prototype.slice.call(arguments,2);return function(){var K=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(K,f);return A.apply(L,K)}}return function(){return A.apply(L,arguments)}};
|
|
g.X9=function(A,L,B){g.X9=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?YD6:UCw;return g.X9.apply(null,arguments)};
|
|
g.Od=function(A,L){var B=Array.prototype.slice.call(arguments,1);return function(){var f=B.slice();f.push.apply(f,arguments);return A.apply(this,f)}};
|
|
g.Ed=function(){return Date.now()};
|
|
Wvy=function(A){g.hf("yt.abuse.playerAttLoaderRun",A)};
|
|
MX=function(A){return A};
|
|
g.Ud=function(A,L){function B(){}
|
|
B.prototype=L.prototype;A.oy=L.prototype;A.prototype=new B;A.prototype.constructor=A;A.QN=function(f,K,V){for(var J=Array(arguments.length-2),R=2;R<arguments.length;R++)J[R-2]=arguments[R];return L.prototype[K].apply(f,J)}};
|
|
v7E=function(A,L){if(L!==null&&L!==void 0){if(typeof L!=="object"&&typeof L!=="function")throw new TypeError("Object expected.");if(B===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var B=L[Symbol.dispose]}if(typeof B!=="function")throw new TypeError("Object not disposable.");A.stack.push({value:L,dispose:B,async:!1})}return L};
|
|
qDv=function(A){function L(V){A.error=A.hasError?new SuppressedError(V,A.error,"An error was suppressed during disposal."):V;A.hasError=!0}
|
|
function B(){for(;f=A.stack.pop();)try{if(!f.async&&K===1)return K=0,A.stack.push(f),Promise.resolve().then(B);if(f.dispose){var V=f.dispose.call(f.value);if(f.async)return K|=2,Promise.resolve(V).then(B,function(J){L(J);return B()})}else K|=1}catch(J){L(J)}if(K===1)return A.hasError?Promise.reject(A.error):Promise.resolve();
|
|
if(A.hasError)throw A.error;}
|
|
var f,K=0;B()};
|
|
Ww=function(A,L){if(Error.captureStackTrace)Error.captureStackTrace(this,Ww);else{var B=Error().stack;B&&(this.stack=B)}A&&(this.message=String(A));L!==void 0&&(this.cause=L)};
|
|
PLy=function(){};
|
|
g.vw=function(A){return A[A.length-1]};
|
|
xCL=function(A,L){var B=A.length,f=typeof A==="string"?A.split(""):A;for(--B;B>=0;--B)B in f&&L.call(void 0,f[B],B,A)};
|
|
g.Pw=function(A,L,B){L=qX(A,L,B);return L<0?null:typeof A==="string"?A.charAt(L):A[L]};
|
|
qX=function(A,L,B){for(var f=A.length,K=typeof A==="string"?A.split(""):A,V=0;V<f;V++)if(V in K&&L.call(B,K[V],V,A))return V;return-1};
|
|
g.xW=function(A,L,B){var f=A.length,K=typeof A==="string"?A.split(""):A;for(--f;f>=0;f--)if(f in K&&L.call(B,K[f],f,A))return f;return-1};
|
|
g.zK=function(A,L){return eQe(A,L)>=0};
|
|
n7v=function(A){if(!Array.isArray(A))for(var L=A.length-1;L>=0;L--)delete A[L];A.length=0};
|
|
g.Lx=function(A,L){L=eQe(A,L);var B;(B=L>=0)&&g.uB(A,L);return B};
|
|
g.uB=function(A,L){return Array.prototype.splice.call(A,L,1).length==1};
|
|
g.o8=function(A,L){L=qX(A,L);L>=0&&g.uB(A,L)};
|
|
zQv=function(A,L){var B=0;xCL(A,function(f,K){L.call(void 0,f,K,A)&&g.uB(A,K)&&B++})};
|
|
g.Bk=function(A){return Array.prototype.concat.apply([],arguments)};
|
|
g.Kx=function(A){var L=A.length;if(L>0){for(var B=Array(L),f=0;f<L;f++)B[f]=A[f];return B}return[]};
|
|
g.VB=function(A,L){for(var B=1;B<arguments.length;B++){var f=arguments[B];if(g.lB(f)){var K=A.length||0,V=f.length||0;A.length=K+V;for(var J=0;J<V;J++)A[K+J]=f[J]}else A.push(f)}};
|
|
g.Zw=function(A,L,B,f){Array.prototype.splice.apply(A,JO(arguments,1))};
|
|
JO=function(A,L,B){return arguments.length<=2?Array.prototype.slice.call(A,L):Array.prototype.slice.call(A,L,B)};
|
|
ukk=function(A){for(var L=0,B=0,f={};B<A.length;){var K=A[B++],V=g.QK(K)?"o"+g.$W(K):(typeof K).charAt(0)+K;Object.prototype.hasOwnProperty.call(f,V)||(f[V]=!0,A[L++]=K)}A.length=L};
|
|
g.Fc=function(A,L,B){return aSQ(A,B||NV,!1,L)};
|
|
Dw=function(A,L){return aSQ(A,L,!0)};
|
|
aSQ=function(A,L,B,f){for(var K=0,V=A.length,J;K<V;){var R=K+(V-K>>>1),Z=void 0;B?Z=L.call(void 0,A[R],R,A):Z=L(f,A[R]);Z>0?K=R+1:(V=R,J=!Z)}return J?K:-K-1};
|
|
g.I8=function(A,L){A.sort(L||NV)};
|
|
Afv=function(A,L){var B=NV;g.I8(A,function(f,K){return B(L(f),L(K))})};
|
|
g.wo=function(A,L,B){if(!g.lB(A)||!g.lB(L)||A.length!=L.length)return!1;var f=A.length;B=B||LtD;for(var K=0;K<f;K++)if(!B(A[K],L[K]))return!1;return!0};
|
|
NV=function(A,L){return A>L?1:A<L?-1:0};
|
|
LtD=function(A,L){return A===L};
|
|
g.px=function(A,L,B){B=g.Fc(A,L,B);B<0&&g.Zw(A,-(B+1),0,L)};
|
|
g.jZ=function(A,L,B){var f={};(0,g.yB)(A,function(K,V){f[L.call(B,K,V,A)]=K});
|
|
return f};
|
|
oW7=function(A){for(var L=[],B=0;B<A;B++)L[B]="";return L};
|
|
BIe=function(A,L){L=Array.prototype.splice.call(A,L,1);Array.prototype.splice.call(A,0,0,L[0])};
|
|
fR7=function(A){var L={};g.yB(A,function(B){var f=B.event,K=L[f];L.hasOwnProperty(f)?K!==null&&(B.equals(K)||(L[f]=null)):L[f]=B});
|
|
zQv(A,function(B){return L[B.event]===null})};
|
|
go=function(){this.Yb=0;this.N=!1;this.W=-1;this.X$=!1;this.s7=0};
|
|
g.H6=function(A,L,B){for(var f in A)L.call(B,A[f],f,A)};
|
|
var g7L=function(){return By1[S[2]](this,13)};
|
|
g.Gk=function(A,L,B){var f={},K;for(K in A)L.call(B,A[K],K,A)&&(f[K]=A[K]);return f};
|
|
sc=function(A,L){var B={},f;for(f in A)B[f]=L.call(void 0,A[f],f,A);return B};
|
|
g.gy=function(A,L,B){for(var f in A)if(L.call(B,A[f],f,A))return!0;return!1};
|
|
KtL=function(A,L){for(var B in A)if(!L.call(void 0,A[B],B,A))return!1;return!0};
|
|
g.Hk=function(A){for(var L in A)return L};
|
|
V5k=function(A){for(var L in A)return A[L]};
|
|
hO=function(A){var L=[],B=0,f;for(f in A)L[B++]=A[f];return L};
|
|
g.bs=function(A){var L=[],B=0,f;for(f in A)L[B++]=f;return L};
|
|
g.kg=function(A,L){return A!==null&&L in A};
|
|
g.Tk=function(A,L){for(var B in A)if(A[B]==L)return!0;return!1};
|
|
ls=function(A,L){for(var B in A)if(L.call(void 0,A[B],B,A))return B};
|
|
Jf8=function(A,L){return(L=ls(A,L))&&A[L]};
|
|
g.mi=function(A){for(var L in A)return!1;return!0};
|
|
g.Sdy=function(A){for(var L in A)delete A[L]};
|
|
g.QB=function(A,L,B){return A!==null&&L in A?A[L]:B};
|
|
g.Cx=function(A,L){for(var B in A)if(!(B in L)||A[B]!==L[B])return!1;for(var f in L)if(!(f in A))return!1;return!0};
|
|
g.is=function(A){var L={},B;for(B in A)L[B]=A[B];return L};
|
|
g.$g=function(A){if(!A||typeof A!=="object")return A;if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);if(A instanceof Date)return new Date(A.getTime());var L=Array.isArray(A)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(A)||A instanceof DataView?{}:new A.constructor(A.length),B;for(B in A)L[B]=g.$g(A[B]);return L};
|
|
g.Xc=function(A,L){for(var B,f,K=1;K<arguments.length;K++){f=arguments[K];for(B in f)A[B]=f[B];for(var V=0;V<RwC.length;V++)B=RwC[V],Object.prototype.hasOwnProperty.call(f,B)&&(A[B]=f[B])}};
|
|
Oc=function(){this.W=null;this.N=!1};
|
|
Ec=function(A){Oc.call(this);this.U=A};
|
|
ck=function(){Oc.call(this)};
|
|
MV=function(){Oc.call(this)};
|
|
Uc=function(){this.N={};this.W=!0;this.V={}};
|
|
Wk=function(A,L,B){A.N[L]||(A.N[L]=new Ec(B));return A.N[L]};
|
|
ZfD=function(A){A.N.queryid||(A.N.queryid=new MV)};
|
|
vk=function(A,L,B){(A=A.N[L])&&A.V(B)};
|
|
qV=function(A,L){if(g.kg(A.V,L))return A.V[L];if(A=A.N[L])return A.getValue()};
|
|
Pk=function(A){var L={},B=g.Gk(A.N,function(f){return f.N});
|
|
g.H6(B,function(f,K){f=A.V[K]!==void 0?String(A.V[K]):f.N&&f.W!==null?String(f.W):"";f.length>0&&(L[K]=f)},A);
|
|
return L};
|
|
NIe=function(A){A=Pk(A);var L=[];g.H6(A,function(B,f){f in Object.prototype||typeof B!="undefined"&&L.push([f,":",B].join(""))});
|
|
return L};
|
|
DX7=function(A){Wk(A,"od",Ftk);Wk(A,"opac",nx).N=!0;Wk(A,"sbeos",nx).N=!0;Wk(A,"prf",nx).N=!0;Wk(A,"mwt",nx).N=!0;Wk(A,"iogeo",nx)};
|
|
zk=function(A,L){return A.lastIndexOf(L,0)==0};
|
|
dXQ=function(A,L){var B=A.length-L.length;return B>=0&&A.indexOf(L,B)==B};
|
|
g.us=function(A){return/^[\s\xa0]*$/.test(A)};
|
|
g.a8=function(A,L){return A.indexOf(L)!=-1};
|
|
AF=function(A,L){return g.a8(A.toLowerCase(),L.toLowerCase())};
|
|
g.B5=function(A,L){var B=0;A=La(String(A)).split(".");L=La(String(L)).split(".");for(var f=Math.max(A.length,L.length),K=0;B==0&&K<f;K++){var V=A[K]||"",J=L[K]||"";do{V=/(\d*)(\D*)(.*)/.exec(V)||["","","",""];J=/(\d*)(\D*)(.*)/.exec(J)||["","","",""];if(V[0].length==0&&J[0].length==0)break;B=oy(V[1].length==0?0:parseInt(V[1],10),J[1].length==0?0:parseInt(J[1],10))||oy(V[2].length==0,J[2].length==0)||oy(V[2],J[2]);V=V[3];J=J[3]}while(B==0)}return B};
|
|
oy=function(A,L){return A<L?-1:A>L?1:0};
|
|
g.fa=function(){var A=g.rI.navigator;return A&&(A=A.userAgent)?A:""};
|
|
SS=function(A){if(!Ka&&!VR||!JF)return!1;for(var L=0;L<JF.brands.length;L++){var B=JF.brands[L].brand;if(B&&g.a8(B,A))return!0}return!1};
|
|
Ry=function(A){return g.a8(g.fa(),A)};
|
|
Zi=function(){return Ka||VR?!!JF&&JF.brands.length>0:!1};
|
|
Nw=function(){return Zi()?!1:Ry("Opera")};
|
|
IRS=function(){return Zi()?!1:Ry("Trident")||Ry("MSIE")};
|
|
wwv=function(){return Zi()?SS("Microsoft Edge"):Ry("Edg/")};
|
|
FN=function(){return Ry("Firefox")||Ry("FxiOS")};
|
|
dt=function(){return Ry("Safari")&&!(Di()||(Zi()?0:Ry("Coast"))||Nw()||(Zi()?0:Ry("Edge"))||wwv()||(Zi()?SS("Opera"):Ry("OPR"))||FN()||Ry("Silk")||Ry("Android"))};
|
|
Di=function(){return Zi()?SS("Chromium"):(Ry("Chrome")||Ry("CriOS"))&&!(Zi()?0:Ry("Edge"))||Ry("Silk")};
|
|
pw0=function(){return Ry("Android")&&!(Di()||FN()||Nw()||Ry("Silk"))};
|
|
yfw=function(A){var L={};A.forEach(function(B){L[B[0]]=B[1]});
|
|
return function(B){return L[B.find(function(f){return f in L})]||""}};
|
|
jO1=function(A){var L=g.fa();if(A==="Internet Explorer"){if(IRS())if((A=/rv: *([\d\.]*)/.exec(L))&&A[1])L=A[1];else{A="";var B=/MSIE +([\d\.]+)/.exec(L);if(B&&B[1])if(L=/Trident\/(\d.\d)/.exec(L),B[1]=="7.0")if(L&&L[1])switch(L[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=B[1];L=A}else L="";return L}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");B=[];for(var K;K=f.exec(L);)B.push([K[1],K[2],K[3]||void 0]);
|
|
L=yfw(B);switch(A){case "Opera":if(Nw())return L(["Version","Opera"]);if(Zi()?SS("Opera"):Ry("OPR"))return L(["OPR"]);break;case "Microsoft Edge":if(Zi()?0:Ry("Edge"))return L(["Edge"]);if(wwv())return L(["Edg"]);break;case "Chromium":if(Di())return L(["Chrome","CriOS","HeadlessChrome"])}return A==="Firefox"&&FN()||A==="Safari"&&dt()||A==="Android Browser"&&pw0()||A==="Silk"&&Ry("Silk")?(L=B[2])&&L[1]||"":""};
|
|
gWw=function(A){if(Zi()&&A!=="Silk"){var L=JF.brands.find(function(B){return B.brand===A});
|
|
if(!L||!L.version)return NaN;L=L.version.split(".")}else{L=jO1(A);if(L==="")return NaN;L=L.split(".")}return L.length===0?NaN:Number(L[0])};
|
|
rfL=function(){var A=null;if(!GKw)return A;try{var L=function(B){return B};
|
|
A=GKw.createPolicy("goog#html",{createHTML:L,createScript:L,createScriptURL:L})}catch(B){}return A};
|
|
wt=function(){Iy===void 0&&(Iy=rfL());return Iy};
|
|
pa=function(A){this.N=A};
|
|
jS=function(A){var L=wt();A=L?L.createScriptURL(A):A;return new pa(A)};
|
|
gt=function(A){if(A instanceof pa)return A.N;throw Error("");};
|
|
G$=function(A){this.N=A};
|
|
g.rt=function(A){if(A instanceof G$)return A.N;throw Error("");};
|
|
sT=function(A){this.gX=A};
|
|
H5=function(A){return new sT(function(L){return L.substr(0,A.length+1).toLowerCase()===A+":"})};
|
|
g.hF=function(A,L){L=L===void 0?sOQ:L;a:if(L=L===void 0?sOQ:L,!(A instanceof G$)){for(var B=0;B<L.length;++B){var f=L[B];if(f instanceof sT&&f.gX(A)){A=new G$(A);break a}}A=void 0}return A||HfL};
|
|
bfL=function(A){if(hwD.test(A))return A};
|
|
bO=function(A){return A instanceof G$?g.rt(A):bfL(A)};
|
|
g.tF=function(A,L){L=bO(L);L!==void 0&&(A.href=L)};
|
|
kj=function(A,L){throw Error(L===void 0?"unexpected value "+A+"!":L);};
|
|
T$=function(A){this.N=A};
|
|
lO=function(A){var L=wt();A=L?L.createHTML(A):A;return new T$(A)};
|
|
mC=function(A){if(A instanceof T$)return A.N;throw Error("");};
|
|
g.QR=function(A,L,B,f){L=bO(L);return L!==void 0?A.open(L,B,f):null};
|
|
Ca=function(A){A=A===void 0?document:A;var L,B;A=(B=(L=A).querySelector)==null?void 0:B.call(L,"script[nonce]");return A==null?"":A.nonce||A.getAttribute("nonce")||""};
|
|
iO=function(A){this.N=A};
|
|
t5C=function(A){var L=wt();A=L?L.createScript(A):A;return new iO(A)};
|
|
XN=function(A){if(A instanceof iO)return A.N;throw Error("");};
|
|
OT=function(A){var L=Ca(A.ownerDocument);L&&A.setAttribute("nonce",L)};
|
|
g.ET=function(A,L){A.src=gt(L);OT(A)};
|
|
c5=function(){this.N=kKL[0].toLowerCase()};
|
|
TIk=function(A){var L="true".toString(),B=[new c5];if(B.length===0)throw Error("");if(B.map(function(f){if(f instanceof c5)f=f.N;else throw Error("");return f}).every(function(f){return"data-loaded".indexOf(f)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
|
|
A.setAttribute("data-loaded",L)};
|
|
lR0=function(A,L){A.__closure__error__context__984382||(A.__closure__error__context__984382={});A.__closure__error__context__984382.severity=L};
|
|
mX8=function(A){var L=g.bB("window.location.href");A==null&&(A='Unknown Error of type "null/undefined"');if(typeof A==="string")return{message:A,name:"Unknown error",lineNumber:"Not available",fileName:L,stack:"Not available"};var B=!1;try{var f=A.lineNumber||A.line||"Not available"}catch(J){f="Not available",B=!0}try{var K=A.fileName||A.filename||A.sourceURL||g.rI.$googDebugFname||L}catch(J){K="Not available",B=!0}L=Mw(A);if(!(!B&&A.lineNumber&&A.fileName&&A.stack&&A.message&&A.name)){B=A.message;
|
|
if(B==null){if(A.constructor&&A.constructor instanceof Function){if(A.constructor.name)B=A.constructor.name;else if(B=A.constructor,Yj[B])B=Yj[B];else{B=String(B);if(!Yj[B]){var V=/function\s+([^\(]+)/m.exec(B);Yj[B]=V?V[1]:"[Anonymous]"}B=Yj[B]}B='Unknown Error of type "'+B+'"'}else B="Unknown Error of unknown type";typeof A.toString==="function"&&Object.prototype.toString!==A.toString&&(B+=": "+A.toString())}return{message:B,name:A.name||"UnknownError",lineNumber:f,fileName:K,stack:L||"Not available"}}return{message:A.message,
|
|
name:A.name,lineNumber:A.lineNumber,fileName:A.fileName,stack:L}};
|
|
Mw=function(A,L){L||(L={});L[UT(A)]=!0;var B=A.stack||"",f=A.cause;f&&!L[UT(f)]&&(B+="\nCaused by: ",f.stack&&f.stack.indexOf(f.toString())==0||(B+=typeof f==="string"?f:f.message+"\n"),B+=Mw(f,L));A=A.errors;if(Array.isArray(A)){f=1;var K;for(K=0;K<A.length&&!(f>4);K++)L[UT(A[K])]||(B+="\nInner error "+f++ +": ",A[K].stack&&A[K].stack.indexOf(A[K].toString())==0||(B+=typeof A[K]==="string"?A[K]:A[K].message+"\n"),B+=Mw(A[K],L));K<A.length&&(B+="\n... "+(A.length-K)+" more inner errors")}return B};
|
|
UT=function(A){var L="";typeof A.toString==="function"&&(L=""+A);return L+A.stack};
|
|
W5=function(A,L,B){return A.parseFromString(mC(L),B)};
|
|
g.v5=function(A){return encodeURIComponent(String(A))};
|
|
qw=function(A){return decodeURIComponent(A.replace(/\+/g," "))};
|
|
P5=function(A){QOL.test(A)&&(A.indexOf("&")!=-1&&(A=A.replace(CBv,"&")),A.indexOf("<")!=-1&&(A=A.replace(if0,"<")),A.indexOf(">")!=-1&&(A=A.replace($XS,">")),A.indexOf('"')!=-1&&(A=A.replace(XwE,""")),A.indexOf("'")!=-1&&(A=A.replace(Ofw,"'")),A.indexOf("\x00")!=-1&&(A=A.replace(EW6,"�")));return A};
|
|
g.xj=function(A){return A==null?"":String(A)};
|
|
eS=function(A){for(var L=0,B=0;B<A.length;++B)L=31*L+A.charCodeAt(B)>>>0;return L};
|
|
na=function(A){var L=Number(A);return L==0&&g.us(A)?NaN:L};
|
|
cf0=function(A){return String(A).replace(/\-([a-z])/g,function(L,B){return B.toUpperCase()})};
|
|
M5C=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
|
|
YdD=function(A){return A.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(L,B,f){return B+f.toUpperCase()})};
|
|
UX6=function(A){var L=1;A=A.split(":");for(var B=[];L>0&&A.length;)B.push(A.shift()),L--;A.length&&B.push(A.join(":"));return B};
|
|
z$=function(){return Ka||VR?!!JF&&!!JF.platform:!1};
|
|
Wty=function(){return z$()?JF.platform==="Android":Ry("Android")};
|
|
uO=function(){return Ry("iPhone")&&!Ry("iPod")&&!Ry("iPad")};
|
|
ay=function(){return uO()||Ry("iPad")||Ry("iPod")};
|
|
A8=function(){return z$()?JF.platform==="macOS":Ry("Macintosh")};
|
|
vWS=function(){return z$()?JF.platform==="Windows":Ry("Windows")};
|
|
LG=function(A){LG[" "](A);return A};
|
|
qd0=function(A,L){try{return LG(A[L]),!0}catch(B){}return!1};
|
|
xX0=function(A,L){var B=PBv;return Object.prototype.hasOwnProperty.call(B,A)?B[A]:B[A]=L(A)};
|
|
g.oC=function(A){return xX0(A,function(){return g.B5(eww,A)>=0})};
|
|
g.B4=function(A,L,B){return Math.min(Math.max(A,L),B)};
|
|
g.fG=function(A,L){A%=L;return A*L<0?A+L:A};
|
|
KG=function(A,L,B){return A+B*(L-A)};
|
|
g.Vl=function(A,L){this.x=A!==void 0?A:0;this.y=L!==void 0?L:0};
|
|
J8=function(A,L){return A==L?!0:A&&L?A.x==L.x&&A.y==L.y:!1};
|
|
g.Sr=function(A,L){this.width=A;this.height=L};
|
|
g.RC=function(A,L){return A==L?!0:A&&L?A.width==L.width&&A.height==L.height:!1};
|
|
Zr=function(A){return A.width*A.height};
|
|
FF=function(A,L){this.N=A===No&&L||""};
|
|
Dr=function(A){if(A instanceof T$)return A;A=String(A).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");return lO(A)};
|
|
zwQ=function(A){return nW7(A)};
|
|
nW7=function(A){var L=Dr("");return lO(A.map(function(B){return mC(Dr(B))}).join(mC(L).toString()))};
|
|
og7=function(A){var L;if(!u9E.test("div"))throw Error("");if(aRv.indexOf("DIV")!==-1)throw Error("");var B="<div";A&&(B+=AOQ(A));Array.isArray(L)||(L=L===void 0?[]:[L]);LiE.indexOf("DIV")!==-1?B+=">":(A=zwQ(L.map(function(f){return f instanceof T$?f:Dr(String(f))})),B+=">"+A.toString()+"</div>");
|
|
return lO(B)};
|
|
AOQ=function(A){for(var L="",B=Object.keys(A),f=0;f<B.length;f++){var K=B[f],V=A[K];if(!u9E.test(K))throw Error("");if(V!==void 0&&V!==null){if(/^on./i.test(K))throw Error("");Bow.indexOf(K.toLowerCase())!==-1&&(V=V instanceof G$?V.toString():bfL(String(V))||"about:invalid#zClosurez");V=K+'="'+Dr(String(V))+'"';L+=" "+V}}return L};
|
|
g.d_=function(A){var L=g.pf.apply(1,arguments);if(L.length===0)return jS(A[0]);for(var B=A[0],f=0;f<L.length;f++)B+=encodeURIComponent(L[f])+A[f+1];return jS(B)};
|
|
pG=function(A){return A?new IC(w_(A)):fwe||(fwe=new IC)};
|
|
yl=function(A,L){return typeof L==="string"?A.getElementById(L):L};
|
|
g.jr=function(A,L){return(L||document).getElementsByTagName(String(A))};
|
|
g.g_=function(A,L){return(L||document).querySelectorAll("."+A)};
|
|
g.sA=function(A,L){var B=L||document;B.getElementsByClassName?A=B.getElementsByClassName(A)[0]:(B=document,A=A?(L||B).querySelector(A?"."+A:""):g.r_(B,"*",A,L)[0]||null);return A||null};
|
|
g.r_=function(A,L,B,f){A=f||A;return(L=L&&L!="*"?String(L).toUpperCase():"")||B?A.querySelectorAll(L+(B?"."+B:"")):A.getElementsByTagName("*")};
|
|
H4=function(A,L){g.H6(L,function(B,f){f=="style"?A.style.cssText=B:f=="class"?A.className=B:f=="for"?A.htmlFor=B:Kie.hasOwnProperty(f)?A.setAttribute(Kie[f],B):zk(f,"aria-")||zk(f,"data-")?A.setAttribute(f,B):A[f]=B})};
|
|
VZ1=function(A){A=A.document;A=A.compatMode=="CSS1Compat"?A.documentElement:A.body;return new g.Sr(A.clientWidth,A.clientHeight)};
|
|
Scw=function(A){var L=JOD(A);A=A.defaultView;return new g.Vl((A==null?void 0:A.pageXOffset)||L.scrollLeft,(A==null?void 0:A.pageYOffset)||L.scrollTop)};
|
|
JOD=function(A){return A.scrollingElement?A.scrollingElement:g.h8||A.compatMode!="CSS1Compat"?A.body||A.documentElement:A.documentElement};
|
|
bA=function(A){return A?A.defaultView:window};
|
|
k9=function(A,L,B){var f=arguments,K=document,V=f[1],J=t8(K,String(f[0]));V&&(typeof V==="string"?J.className=V:Array.isArray(V)?J.className=V.join(" "):H4(J,V));f.length>2&&RFQ(K,J,f,2);return J};
|
|
RFQ=function(A,L,B,f){function K(R){R&&L.appendChild(typeof R==="string"?A.createTextNode(R):R)}
|
|
for(;f<B.length;f++){var V=B[f];if(!g.lB(V)||g.QK(V)&&V.nodeType>0)K(V);else{a:{if(V&&typeof V.length=="number"){if(g.QK(V)){var J=typeof V.item=="function"||typeof V.item=="string";break a}if(typeof V==="function"){J=typeof V.item=="function";break a}}J=!1}g.yB(J?g.Kx(V):V,K)}}};
|
|
g.TO=function(A){return t8(document,A)};
|
|
t8=function(A,L){L=String(L);A.contentType==="application/xhtml+xml"&&(L=L.toLowerCase());return A.createElement(L)};
|
|
g.lA=function(A){return document.createTextNode(String(A))};
|
|
g.mk=function(A,L){A.appendChild(L)};
|
|
g.Ql=function(A){for(var L;L=A.firstChild;)A.removeChild(L)};
|
|
iA=function(A,L,B){A.insertBefore(L,A.childNodes[B]||null)};
|
|
g.$9=function(A){return A&&A.parentNode?A.parentNode.removeChild(A):null};
|
|
g.XF=function(A,L){if(!A||!L)return!1;if(A.contains&&L.nodeType==1)return A==L||A.contains(L);if(typeof A.compareDocumentPosition!="undefined")return A==L||!!(A.compareDocumentPosition(L)&16);for(;L&&A!=L;)L=L.parentNode;return L==A};
|
|
w_=function(A){return A.nodeType==9?A:A.ownerDocument||A.document};
|
|
g.OA=function(A,L){if("textContent"in A)A.textContent=L;else if(A.nodeType==3)A.data=String(L);else if(A.firstChild&&A.firstChild.nodeType==3){for(;A.lastChild!=A.firstChild;)A.removeChild(A.lastChild);A.firstChild.data=String(L)}else g.Ql(A),A.appendChild(w_(A).createTextNode(String(L)))};
|
|
EA=function(A){return A.tagName=="A"&&A.hasAttribute("href")||A.tagName=="INPUT"||A.tagName=="TEXTAREA"||A.tagName=="SELECT"||A.tagName=="BUTTON"?!A.disabled&&(!A.hasAttribute("tabindex")||Zxe(A)):A.hasAttribute("tabindex")&&Zxe(A)};
|
|
Zxe=function(A){A=A.tabIndex;return typeof A==="number"&&A>=0&&A<32768};
|
|
Mo=function(A,L,B){if(!L&&!B)return null;var f=L?String(L).toUpperCase():null;return c4(A,function(K){return(!f||K.nodeName==f)&&(!B||typeof K.className==="string"&&g.zK(K.className.split(/\s+/),B))},!0)};
|
|
c4=function(A,L,B){A&&!B&&(A=A.parentNode);for(B=0;A;){if(L(A))return A;A=A.parentNode;B++}return null};
|
|
IC=function(A){this.N=A||g.rI.document||document};
|
|
No0=function(){this.N=this.G$=null};
|
|
Y9=function(){};
|
|
v4=function(){if(!UA())throw Error();};
|
|
UA=function(){return!(!qo||!qo.performance)};
|
|
Fie=function(A){return g.h8?"webkit"+A:A.toLowerCase()};
|
|
P4=function(A){return function(){return A}};
|
|
g.x9=function(){};
|
|
DVC=function(A){var L=L||0;return function(){return A.apply(this,Array.prototype.slice.call(arguments,0,L))}};
|
|
er=function(A){var L=!1,B;return function(){L||(B=A(),L=!0);return B}};
|
|
nG=function(A){var L=A;return function(){if(L){var B=L;L=null;B()}}};
|
|
zO=function(A,L,B){var f=0;return function(K){g.rI.clearTimeout(f);var V=arguments;f=g.rI.setTimeout(function(){A.apply(B,V)},L)}};
|
|
uA=function(A,L,B,f){this.top=A;this.right=L;this.bottom=B;this.left=f};
|
|
aC=function(A){return A.right-A.left};
|
|
AD=function(A,L){return A==L?!0:A&&L?A.top==L.top&&A.right==L.right&&A.bottom==L.bottom&&A.left==L.left:!1};
|
|
Lv=function(A,L,B){L instanceof g.Vl?(A.left+=L.x,A.right+=L.x,A.top+=L.y,A.bottom+=L.y):(A.left+=L,A.right+=L,typeof B==="number"&&(A.top+=B,A.bottom+=B));return A};
|
|
g.oR=function(A,L,B,f){this.left=A;this.top=L;this.width=B;this.height=f};
|
|
BX=function(A,L){return A==L?!0:A&&L?A.left==L.left&&A.width==L.width&&A.top==L.top&&A.height==L.height:!1};
|
|
g.Kv=function(A,L,B){if(typeof L==="string")(L=fv(A,L))&&(A.style[L]=B);else for(var f in L){B=A;var K=L[f],V=fv(B,f);V&&(B.style[V]=K)}};
|
|
fv=function(A,L){var B=dVv[L];if(!B){var f=cf0(L);B=f;A.style[f]===void 0&&(f=(g.h8?"Webkit":V9?"Moz":null)+YdD(f),A.style[f]!==void 0&&(B=f));dVv[L]=B}return B};
|
|
g.SV=function(A,L){var B=A.style[cf0(L)];return typeof B!=="undefined"?B:A.style[fv(A,L)]||""};
|
|
RR=function(A,L){var B=w_(A);return B.defaultView&&B.defaultView.getComputedStyle&&(A=B.defaultView.getComputedStyle(A,null))?A[L]||A.getPropertyValue(L)||"":""};
|
|
Z4=function(A,L){return RR(A,L)||(A.currentStyle?A.currentStyle[L]:null)||A.style&&A.style[L]};
|
|
g.F6=function(A,L,B){if(L instanceof g.Vl){var f=L.x;L=L.y}else f=L,L=B;A.style.left=Na(f,!1);A.style.top=Na(L,!1)};
|
|
IwL=function(A){return new g.Vl(A.offsetLeft,A.offsetTop)};
|
|
D4=function(A){try{return A.getBoundingClientRect()}catch(L){return{left:0,top:0,right:0,bottom:0}}};
|
|
wkw=function(A){var L=w_(A),B=Z4(A,"position"),f=B=="fixed"||B=="absolute";for(A=A.parentNode;A&&A!=L;A=A.parentNode)if(A.nodeType==11&&A.host&&(A=A.host),B=Z4(A,"position"),f=f&&B=="static"&&A!=L.documentElement&&A!=L.body,!f&&(A.scrollWidth>A.clientWidth||A.scrollHeight>A.clientHeight||B=="fixed"||B=="absolute"||B=="relative"))return A;return null};
|
|
g.dK=function(A){var L=w_(A),B=new g.Vl(0,0);if(A==(L?w_(L):document).documentElement)return B;A=D4(A);L=pG(L);L=Scw(L.N);B.x=A.left+L.x;B.y=A.top+L.y;return B};
|
|
yO6=function(A,L){var B=new g.Vl(0,0),f=bA(w_(A));if(!qd0(f,"parent"))return B;do{var K=f==L?g.dK(A):pkk(A);B.x+=K.x;B.y+=K.y}while(f&&f!=L&&f!=f.parent&&(A=f.frameElement)&&(f=f.parent));return B};
|
|
g.IR=function(A,L){A=j87(A);L=j87(L);return new g.Vl(A.x-L.x,A.y-L.y)};
|
|
pkk=function(A){A=D4(A);return new g.Vl(A.left,A.top)};
|
|
j87=function(A){if(A.nodeType==1)return pkk(A);A=A.changedTouches?A.changedTouches[0]:A;return new g.Vl(A.clientX,A.clientY)};
|
|
g.wK=function(A,L,B){if(L instanceof g.Sr)B=L.height,L=L.width;else if(B==void 0)throw Error("missing height argument");A.style.width=Na(L,!0);A.style.height=Na(B,!0)};
|
|
Na=function(A,L){typeof A=="number"&&(A=(L?Math.round(A):A)+"px");return A};
|
|
g.pv=function(A){var L=ggS;if(Z4(A,"display")!="none")return L(A);var B=A.style,f=B.display,K=B.visibility,V=B.position;B.visibility="hidden";B.position="absolute";B.display="inline";A=L(A);B.display=f;B.position=V;B.visibility=K;return A};
|
|
ggS=function(A){var L=A.offsetWidth,B=A.offsetHeight,f=g.h8&&!L&&!B;return(L===void 0||f)&&A.getBoundingClientRect?(A=D4(A),new g.Sr(A.right-A.left,A.bottom-A.top)):new g.Sr(L,B)};
|
|
g.y9=function(A,L){A.style.display=L?"":"none"};
|
|
jV=function(A){return A?A.passive&&GkC()?A:A.capture||!1:!1};
|
|
gK=function(A,L,B,f){return typeof A.addEventListener==="function"?(A.addEventListener(L,B,jV(f)),!0):!1};
|
|
GV=function(A){if(A.prerendering)return 3;var L;return(L={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[A.visibilityState||A.webkitVisibilityState||A.mozVisibilityState||""])!=null?L:0};
|
|
rOk=function(){};
|
|
rK=function(A){try{return!!A&&A.location.href!=null&&qd0(A,"foo")}catch(L){return!1}};
|
|
s8y=function(A){for(var L=A;A&&A!=A.parent;)A=A.parent,rK(A)&&(L=A);return L};
|
|
Hxy=function(){return(Ka||VR)&&JF?JF.mobile:!HX()&&(Ry("iPod")||Ry("iPhone")||Ry("Android")||Ry("IEMobile"))};
|
|
HX=function(){return(Ka||VR)&&JF?!JF.mobile&&(Ry("iPad")||Ry("Android")||Ry("Silk")):Ry("iPad")||Ry("Android")&&!Ry("Mobile")||Ry("Silk")};
|
|
hFe=function(A){var L,B;return(B=(L=/https?:\/\/[^\/]+/.exec(A))==null?void 0:L[0])!=null?B:""};
|
|
To1=function(A){A=A||hD();for(var L=new bxv(g.rI.location.href,!1),B=null,f=A.length-1,K=f;K>=0;--K){var V=A[K];!B&&tZQ.test(V.url)&&(B=V);if(V.url&&!V.N){L=V;break}}K=null;V=A.length&&A[f].url;L.depth!==0&&V&&(K=A[f]);return new kkD(L,K,B)};
|
|
hD=function(){var A=g.rI,L=[],B=null;do{var f=A;if(rK(f)){var K=f.location.href;B=f.document&&f.document.referrer||null}else K=B,B=null;L.push(new bxv(K||""));try{A=f.parent}catch(V){A=null}}while(A&&f!==A);f=0;for(A=L.length-1;f<=A;++f)L[f].depth=A-f;f=g.rI;if(f.location&&f.location.ancestorOrigins&&f.location.ancestorOrigins.length===L.length-1)for(A=1;A<L.length;++A)K=L[A],K.url||(K.url=f.location.ancestorOrigins[A-1]||"",K.N=!0);return L};
|
|
kkD=function(A,L,B){this.N=A;this.W=L;this.V=B};
|
|
bxv=function(A,L){this.url=A;this.N=!!L;this.depth=null};
|
|
bI=function(A,L){if(A)for(var B in A)Object.prototype.hasOwnProperty.call(A,B)&&L(A[B],B,A)};
|
|
mVv=function(){var A=[];bI(lw6,function(L){A.push(L)});
|
|
return A};
|
|
tD=function(){this.V="&";this.W={};this.U=0;this.N=[]};
|
|
k$=function(A,L){var B={};B[A]=L;return[B]};
|
|
Q8L=function(A,L,B,f,K){var V=[];bI(A,function(J,R){(J=TV(J,L,B,f,K))&&V.push(R+"="+J)});
|
|
return V.join(L)};
|
|
TV=function(A,L,B,f,K){if(A==null)return"";L=L||"&";B=B||",$";typeof B==="string"&&(B=B.split(""));if(A instanceof Array){if(f||(f=0),f<B.length){for(var V=[],J=0;J<A.length;J++)V.push(TV(A[J],L,B,f+1,K));return V.join(B[f])}}else if(typeof A==="object")return K||(K=0),K<2?encodeURIComponent(Q8L(A,L,B,f,K+1)):"...";return encodeURIComponent(String(A))};
|
|
Cs0=function(A){var L=1,B;for(B in A.W)B.length>L&&(L=B.length);return 3997-L-A.V.length-1};
|
|
lI=function(A,L){this.N=A;this.depth=L};
|
|
$VQ=function(){function A(R,Z){return R==null?Z:R}
|
|
var L=hD(),B=Math.max(L.length-1,0),f=To1(L);L=f.N;var K=f.W,V=f.V,J=[];V&&J.push(new lI([V.url,V.N?2:0],A(V.depth,1)));K&&K!=V&&J.push(new lI([K.url,2],0));L.url&&L!=V&&J.push(new lI([L.url,0],A(L.depth,B)));f=g.mn(J,function(R,Z){return J.slice(0,J.length-Z)});
|
|
!L.url||(V||K)&&L!=V||(K=hFe(L.url))&&f.push([new lI([K,1],A(L.depth,B))]);f.push([]);return g.mn(f,function(R){return ixy(B,R)})};
|
|
ixy=function(A,L){g.Q9(L,function(K){return K.depth>=0});
|
|
var B=Cv(L,function(K,V){return Math.max(K,V.depth)},-1),f=oW7(B+2);
|
|
f[0]=A;g.yB(L,function(K){return f[K.depth+1]=K.N});
|
|
return f};
|
|
Xk8=function(){var A=A===void 0?$VQ():A;return A.map(function(L){return TV(L)})};
|
|
iI=function(A){A.L54=!0;return A};
|
|
cOD=function(){var A=Ox8("IFRAME"),L={};g.yB(Eg8(),function(B){A.sandbox&&A.sandbox.supports&&A.sandbox.supports(B)&&(L[B]=!0)});
|
|
return L};
|
|
Ox8=function(A,L){L=L===void 0?document:L;return L.createElement(String(A).toLowerCase())};
|
|
MZS=function(A){var L=!1;L=L===void 0?!1:L;qo.google_image_requests||(qo.google_image_requests=[]);var B=Ox8("IMG",qo.document);L&&(B.attributionSrc="");B.src=A;qo.google_image_requests.push(B)};
|
|
$$=function(A){var L="Uf";if(A.Uf&&A.hasOwnProperty(L))return A.Uf;var B=new A;A.Uf=B;A.hasOwnProperty(L);return B};
|
|
X6=function(){this.W=new rOk;this.N=UA()?new v4:new Y9};
|
|
YcS=function(){Oz();var A=qo.document;return!!(A&&A.body&&A.body.getBoundingClientRect&&typeof qo.setInterval==="function"&&typeof qo.clearInterval==="function"&&typeof qo.setTimeout==="function"&&typeof qo.clearTimeout==="function")};
|
|
UV0=function(){Oz();return Xk8()};
|
|
Wi6=function(){};
|
|
Oz=function(){var A=$$(Wi6);if(!A.N){if(!qo)throw Error("Context has not been set and window is undefined.");A.N=$$(X6)}return A.N};
|
|
Ez=function(){throw Error("Invalid UTF8");};
|
|
vgD=function(A,L){L=String.fromCharCode.apply(null,L);return A==null?L:A+L};
|
|
eFE=function(A){var L=!1;L=L===void 0?!1:L;if(qcE){if(L&&(PsQ?!A.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(A)))throw Error("Found an unpaired surrogate");A=(xV1||(xV1=new TextEncoder)).encode(A)}else{for(var B=0,f=new Uint8Array(3*A.length),K=0;K<A.length;K++){var V=A.charCodeAt(K);if(V<128)f[B++]=V;else{if(V<2048)f[B++]=V>>6|192;else{if(V>=55296&&V<=57343){if(V<=56319&&K<A.length){var J=A.charCodeAt(++K);if(J>=56320&&J<=57343){V=(V-55296)*1024+
|
|
J-56320+65536;f[B++]=V>>18|240;f[B++]=V>>12&63|128;f[B++]=V>>6&63|128;f[B++]=V&63|128;continue}else K--}if(L)throw Error("Found an unpaired surrogate");V=65533}f[B++]=V>>12|224;f[B++]=V>>6&63|128}f[B++]=V&63|128}}A=B===f.length?f:f.subarray(0,B)}return A};
|
|
cX=function(A){g.rI.setTimeout(function(){throw A;},0)};
|
|
ngk=function(A){return Array.prototype.map.call(A,function(L){L=L.toString(16);return L.length>1?L:"0"+L}).join("")};
|
|
zF1=function(A){for(var L=[],B=0;B<A.length;B+=2)L.push(parseInt(A.substring(B,B+2),16));return L};
|
|
g.Ma=function(A){for(var L=[],B=0,f=0;f<A.length;f++){var K=A.charCodeAt(f);K<128?L[B++]=K:(K<2048?L[B++]=K>>6|192:((K&64512)==55296&&f+1<A.length&&(A.charCodeAt(f+1)&64512)==56320?(K=65536+((K&1023)<<10)+(A.charCodeAt(++f)&1023),L[B++]=K>>18|240,L[B++]=K>>12&63|128):L[B++]=K>>12|224,L[B++]=K>>6&63|128),L[B++]=K&63|128)}return L};
|
|
g.Y$=function(A,L){L===void 0&&(L=0);uc0();L=awv[L];for(var B=Array(Math.floor(A.length/3)),f=L[64]||"",K=0,V=0;K<A.length-2;K+=3){var J=A[K],R=A[K+1],Z=A[K+2],N=L[J>>2];J=L[(J&3)<<4|R>>4];R=L[(R&15)<<2|Z>>6];Z=L[Z&63];B[V++]=""+N+J+R+Z}N=0;Z=f;switch(A.length-K){case 2:N=A[K+1],Z=L[(N&15)<<2]||f;case 1:A=A[K],B[V]=""+L[A>>2]+L[(A&3)<<4|N>>4]+Z+f}return B.join("")};
|
|
g.Uz=function(A,L,B){if(AF6&&!L)A=g.rI.btoa(A);else{for(var f=[],K=0,V=0;V<A.length;V++){var J=A.charCodeAt(V);if(J>255){var R=Error("go/unicode-to-byte-error");if(B)throw R;f[K++]=J&255;J>>=8}f[K++]=J}A=g.Y$(f,L)}return A};
|
|
ojD=function(A){var L=[];LCD(A,function(B){L.push(B)});
|
|
return L};
|
|
WX=function(A){var L=A.length,B=L*3/4;B%3?B=Math.floor(B):g.a8("=.",A[L-1])&&(B=g.a8("=.",A[L-2])?B-2:B-1);var f=new Uint8Array(B),K=0;LCD(A,function(V){f[K++]=V});
|
|
return K!==B?f.subarray(0,K):f};
|
|
LCD=function(A,L){function B(Z){for(;f<A.length;){var N=A.charAt(f++),F=vX[N];if(F!=null)return F;if(!g.us(N))throw Error("Unknown base64 encoding at char: "+N);}return Z}
|
|
uc0();for(var f=0;;){var K=B(-1),V=B(0),J=B(64),R=B(64);if(R===64&&K===-1)break;L(K<<2|V>>4);J!=64&&(L(V<<4&240|J>>2),R!=64&&L(J<<6&192|R))}};
|
|
uc0=function(){if(!vX){vX={};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),L=["+/=","+/","-_=","-_.","-_"],B=0;B<5;B++){var f=A.concat(L[B].split(""));awv[B]=f;for(var K=0;K<f.length;K++){var V=f[K];vX[V]===void 0&&(vX[V]=K)}}}};
|
|
fiL=function(A){return BtC[A]||""};
|
|
JF6=function(A){if(!KCS)return WX(A);A=VSk.test(A)?A.replace(VSk,fiL):A;A=atob(A);for(var L=new Uint8Array(A.length),B=0;B<A.length;B++)L[B]=A.charCodeAt(B);return L};
|
|
qa=function(A,L){STy(L);this.N=A;if(A!=null&&A.length===0)throw Error("ByteString should be constructed with non-empty values");};
|
|
x$=function(){return RhQ||(RhQ=new qa(null,PX))};
|
|
uI=function(A){return new Uint8Array(eV(A)||0)};
|
|
eV=function(A){STy(PX);var L=A.N;L=L==null||Zay&&L!=null&&L instanceof Uint8Array?L:typeof L==="string"?JF6(L):null;return L==null?L:A.N=L};
|
|
STy=function(A){if(A!==PX)throw Error("illegal external caller");};
|
|
aR=function(A){A=Error(A);lR0(A,"warning");return A};
|
|
Ap=function(A,L){if(A!=null){var B;var f=(B=NtQ)!=null?B:NtQ={};B=f[A]||0;B>=L||(f[A]=B+1,A=Error(),lR0(A,"incident"),cX(A))}};
|
|
Ld=function(){return typeof BigInt==="function"};
|
|
or=function(A,L,B){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(B===void 0?0:B)&&Symbol.for&&A?Symbol.for(A):A!=null?Symbol(A):Symbol():L};
|
|
Kd=function(A,L){Bg||fd in A||FCC(A,DwE);A[fd]|=L};
|
|
VT=function(A,L){Bg||fd in A||FCC(A,DwE);A[fd]=L};
|
|
ST=function(A,L){return L===void 0?A.N!==Jp&&!!(2&(A.yf[fd]|0)):!!(2&L)&&A.N!==Jp};
|
|
dww=function(A,L){if(A!=null)if(typeof A==="string")A=A?new qa(A,PX):x$();else if(A.constructor!==qa)if(Zay&&A!=null&&A instanceof Uint8Array)A=A.length?new qa(new Uint8Array(A),PX):x$();else{if(!L)throw Error();A=void 0}return A};
|
|
Rr=function(A,L){if(typeof L!=="number"||L<0||L>=A.length)throw Error();};
|
|
Ii8=function(A,L,B){var f=L&128?0:-1,K=A.length,V;if(V=!!K)V=A[K-1],V=V!=null&&typeof V==="object"&&V.constructor===Object;var J=K+(V?-1:0);for(L=L&128?1:0;L<J;L++)B(L-f,A[L]);if(V){A=A[K-1];for(var R in A)!isNaN(R)&&B(+R,A[R])}};
|
|
N4=function(A){return A&128?Z7:void 0};
|
|
d6=function(A){var L=A;if(FL(L)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(L))throw Error(String(L));}else if(w5v(L)&&!Number.isSafeInteger(L))throw Error(String(L));return D7?BigInt(A):A=p5D(A)?A?"1":"0":FL(A)?A.trim()||"0":String(A)};
|
|
yF6=function(A,L){if(A.length>L.length)return!1;if(A.length<L.length||A===L)return!0;for(var B=0;B<A.length;B++){var f=A[B],K=L[B];if(f>K)return!1;if(f<K)return!0}};
|
|
jT=function(A){var L=A>>>0;pd=L;yT=(A-L)/4294967296>>>0};
|
|
Gy=function(A){if(A<0){jT(0-A);var L=g.m(g6(pd,yT));A=L.next().value;L=L.next().value;pd=A>>>0;yT=L>>>0}else jT(A)};
|
|
s6=function(A,L){var B=L*4294967296+(A>>>0);return Number.isSafeInteger(B)?B:r6(A,L)};
|
|
Hg=function(A,L){var B=L&2147483648;B&&(A=~A+1>>>0,L=~L>>>0,A==0&&(L=L+1>>>0));A=s6(A,L);return typeof A==="number"?B?-A:A:B?"-"+A:A};
|
|
bi=function(A,L){return Ld()?d6(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(L))<<BigInt(32))+BigInt.asUintN(32,BigInt(A)))):d6(hp(A,L))};
|
|
r6=function(A,L){L>>>=0;A>>>=0;if(L<=2097151)var B=""+(4294967296*L+A);else Ld()?B=""+(BigInt(L)<<BigInt(32)|BigInt(A)):(B=(A>>>24|L<<8)&16777215,L=L>>16&65535,A=(A&16777215)+B*6777216+L*6710656,B+=L*8147497,L*=2,A>=1E7&&(B+=A/1E7>>>0,A%=1E7),B>=1E7&&(L+=B/1E7>>>0,B%=1E7),B=L+jy8(B)+jy8(A));return B};
|
|
jy8=function(A){A=String(A);return"0000000".slice(A.length)+A};
|
|
hp=function(A,L){L&2147483648?Ld()?A=""+(BigInt(L|0)<<BigInt(32)|BigInt(A>>>0)):(L=g.m(g6(A,L)),A=L.next().value,L=L.next().value,A="-"+r6(A,L)):A=r6(A,L);return A};
|
|
tp=function(A){if(A.length<16)Gy(Number(A));else if(Ld())A=BigInt(A),pd=Number(A&BigInt(4294967295))>>>0,yT=Number(A>>BigInt(32)&BigInt(4294967295));else{var L=+(A[0]==="-");yT=pd=0;for(var B=A.length,f=0+L,K=(B-L)%6+L;K<=B;f=K,K+=6)f=Number(A.slice(f,K)),yT*=1E6,pd=pd*1E6+f,pd>=4294967296&&(yT+=Math.trunc(pd/4294967296),yT>>>=0,pd>>>=0);L&&(L=g.m(g6(pd,yT)),A=L.next().value,L=L.next().value,pd=A,yT=L)}};
|
|
g6=function(A,L){L=~L;A?A=~A+1:L+=1;return[A,L]};
|
|
k3=function(A){return Array.prototype.slice.call(A)};
|
|
Ty=function(A){if(A!=null&&typeof A!=="number")throw Error("Value of float/double field must be a number, found "+typeof A+": "+A);return A};
|
|
gjS=function(A){return A.displayName||A.name||"unknown type name"};
|
|
li=function(A){if(A!=null&&typeof A!=="boolean")throw Error("Expected boolean but got "+kW(A)+": "+A);return A};
|
|
QT=function(A){switch(typeof A){case "bigint":return!0;case "number":return mT(A);case "string":return G$e.test(A);default:return!1}};
|
|
rFw=function(A){if(typeof A!=="number")throw aR("int32");if(!mT(A))throw aR("int32");return A|0};
|
|
Cd=function(A){return A==null?A:rFw(A)};
|
|
ii=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return mT(A)?A|0:void 0};
|
|
$3=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return mT(A)?A>>>0:void 0};
|
|
hh8=function(A){var L=void 0;L!=null||(L=XL?1024:0);if(!QT(A))throw aR("int64");var B=typeof A;switch(L){case 512:switch(B){case "string":return O6(A);case "bigint":return String(Y3(64,A));default:return U6(A)}case 1024:switch(B){case "string":return syy(A);case "bigint":return d6(Y3(64,A));default:return HaL(A)}case 0:switch(B){case "string":return O6(A);case "bigint":return d6(Y3(64,A));default:return Wg(A)}default:return kj(L,"Unknown format requested type for int64")}};
|
|
vg=function(A){return A==null?A:hh8(A)};
|
|
bav=function(A){var L=A.length;if(A[0]==="-"?L<20||L===20&&A<="-9223372036854775808":L<19||L===19&&A<="9223372036854775807")return A;tp(A);return hp(pd,yT)};
|
|
Wg=function(A){QT(A);A=q4(A);Pg(A)||(Gy(A),A=Hg(pd,yT));return A};
|
|
U6=function(A){QT(A);A=q4(A);Pg(A)?A=String(A):(Gy(A),A=hp(pd,yT));return A};
|
|
O6=function(A){QT(A);var L=q4(Number(A));if(Pg(L))return String(L);L=A.indexOf(".");L!==-1&&(A=A.substring(0,L));return bav(A)};
|
|
syy=function(A){var L=q4(Number(A));if(Pg(L))return d6(L);L=A.indexOf(".");L!==-1&&(A=A.substring(0,L));return Ld()?d6(Y3(64,BigInt(A))):d6(bav(A))};
|
|
HaL=function(A){return Pg(A)?d6(Wg(A)):d6(U6(A))};
|
|
tS7=function(A){if(A==null)return A;if(typeof A==="bigint")return x3(A)?A=Number(A):(A=Y3(64,A),A=x3(A)?Number(A):String(A)),A;if(QT(A))return typeof A==="number"?Wg(A):O6(A)};
|
|
eT=function(A){var L=typeof A;if(A==null)return A;if(L==="bigint")return d6(Y3(64,A));if(QT(A))return L==="string"?syy(A):HaL(A)};
|
|
k$8=function(A){if(A==null)return A;var L=typeof A;if(L==="bigint")return String(Y3(64,A));if(QT(A)){if(L==="string")return O6(A);if(L==="number")return Wg(A)}};
|
|
li6=function(A){if(A==null)return A;var L=typeof A;if(L==="bigint")return String(Tt1(64,A));if(QT(A)){if(L==="string")return QT(A),L=q4(Number(A)),Pg(L)&&L>=0?A=String(L):(L=A.indexOf("."),L!==-1&&(A=A.substring(0,L)),A[0]==="-"?L=!1:(L=A.length,L=L<20?!0:L===20&&A<="18446744073709551615"),L||(tp(A),A=r6(pd,yT))),A;if(L==="number")return QT(A),A=q4(A),A>=0&&Pg(A)||(Gy(A),A=s6(pd,yT)),A}};
|
|
mwy=function(A){if(A==null||typeof A=="string"||A instanceof qa)return A};
|
|
QyE=function(A){if(typeof A!=="string")throw Error();return A};
|
|
nd=function(A){if(A!=null&&typeof A!=="string")throw Error();return A};
|
|
zy=function(A){return A==null||typeof A==="string"?A:void 0};
|
|
ui=function(A,L){if(!(A instanceof L))throw Error("Expected instanceof "+gjS(L)+" but got "+(A&&gjS(A.constructor)));return A};
|
|
COe=function(A,L,B){if(A!=null&&A[ar]===Ad)return A;if(Array.isArray(A)){var f=A[fd]|0;B=f|B&32|B&2;B!==f&&VT(A,B);return new L(A)}};
|
|
Lu=function(A){return A};
|
|
BG=function(A){var L=MX(og);return L?A[L]:void 0};
|
|
fu=function(){};
|
|
Ku=function(A,L){for(var B in A)!isNaN(B)&&L(A,+B,A[B])};
|
|
iay=function(A){var L=new fu;Ku(A,function(B,f,K){L[f]=k3(K)});
|
|
L.x8=A.x8;return L};
|
|
X5k=function(A,L){L<100||Ap($we,1)};
|
|
Jd=function(A,L,B,f){var K=f!==void 0;f=!!f;var V=MX(og),J;!K&&Bg&&V&&(J=A[V])&&Ku(J,X5k);V=[];var R=A.length;J=4294967295;var Z=!1,N=!!(L&64),F=N?L&128?0:-1:void 0;if(!(L&1)){var D=R&&A[R-1];D!=null&&typeof D==="object"&&D.constructor===Object?(R--,J=R):D=void 0;if(N&&!(L&128)&&!K){Z=!0;var I;J=((I=VP)!=null?I:Lu)(J-F,F,A,D,void 0)+F}}L=void 0;for(I=0;I<R;I++){var d=A[I];if(d!=null&&(d=B(d,f))!=null)if(N&&I>=J){var w=I-F,r=void 0;((r=L)!=null?r:L={})[w]=d}else V[I]=d}if(D)for(var h in D)R=D[h],R!=
|
|
null&&(R=B(R,f))!=null&&(I=+h,d=void 0,N&&!Number.isNaN(I)&&(d=I+F)<J?V[d]=R:(I=void 0,((I=L)!=null?I:L={})[h]=R));L&&(Z?V.push(L):V[J]=L);K&&MX(og)&&(A=BG(A))&&A instanceof fu&&(V[og]=iay(A));return V};
|
|
Oaw=function(A){switch(typeof A){case "number":return Number.isFinite(A)?A:""+A;case "bigint":return x3(A)?Number(A):""+A;case "boolean":return A?1:0;case "object":if(Array.isArray(A)){var L=A[fd]|0;return A.length===0&&L&1?void 0:Jd(A,L,Oaw)}if(A!=null&&A[ar]===Ad)return S7(A);if(A instanceof qa){L=A.N;if(L==null)A="";else if(typeof L==="string")A=L;else{if(KCS){for(var B="",f=0,K=L.length-10240;f<K;)B+=String.fromCharCode.apply(null,L.subarray(f,f+=10240));B+=String.fromCharCode.apply(null,f?L.subarray(f):
|
|
L);L=btoa(B)}else L=g.Y$(L);A=A.N=L}return A}return}return A};
|
|
Rg=function(A,L){if(L){VP=L==null||L===Lu||L[Ej6]!==cF6?Lu:L;try{return S7(A)}finally{VP=void 0}}return S7(A)};
|
|
S7=function(A){A=A.yf;return Jd(A,A[fd]|0,Oaw)};
|
|
Uw8=function(A){switch(typeof A){case "boolean":return MSQ||(MSQ=[0,void 0,!0]);case "number":return A>0?void 0:A===0?YTE||(YTE=[0,void 0]):[-A,void 0];case "string":return[0,A];case "object":return A}};
|
|
ZZ=function(A,L){return WCS(A,L[0],L[1])};
|
|
N$=function(A,L,B){return WCS(A,L,B,2048)};
|
|
WCS=function(A,L,B,f){f=f===void 0?0:f;if(A==null){var K=32;B?(A=[B],K|=128):A=[];L&&(K=K&-16760833|(L&1023)<<14)}else{if(!Array.isArray(A))throw Error("narr");K=A[fd]|0;if(vjD&&1&K)throw Error("rfarr");2048&K&&!(2&K)&&qTv();if(K&256)throw Error("farr");if(K&64)return(K|f)!==K&&VT(A,K|f),A;if(B&&(K|=128,B!==A[0]))throw Error("mid");a:{B=A;K|=64;var V=B.length;if(V){var J=V-1,R=B[J];if(R!=null&&typeof R==="object"&&R.constructor===Object){L=K&128?0:-1;J-=L;if(J>=1024)throw Error("pvtlmt");for(var Z in R)V=
|
|
+Z,V<J&&(B[V+L]=R[Z],delete R[Z]);K=K&-16760833|(J&1023)<<14;break a}}if(L){Z=Math.max(L,V-(K&128?0:-1));if(Z>1024)throw Error("spvt");K=K&-16760833|(Z&1023)<<14}}}VT(A,K|64|f);return A};
|
|
qTv=function(){if(vjD)throw Error("carr");Ap(POw,5)};
|
|
xw7=function(A,L){if(typeof A!=="object")return A;if(Array.isArray(A)){var B=A[fd]|0;A.length===0&&B&1?A=void 0:B&2||(!L||4096&B||16&B?A=F3(A,B,!1,L&&!(B&16)):(Kd(A,34),B&4&&Object.freeze(A)));return A}if(A!=null&&A[ar]===Ad)return L=A.yf,B=L[fd]|0,ST(A,B)?A:DZ(A,L,B)?da(A,L):F3(L,B);if(A instanceof qa)return A};
|
|
da=function(A,L,B){A=new A.constructor(L);B&&(A.N=Jp);A.W=Jp;return A};
|
|
F3=function(A,L,B,f){f!=null||(f=!!(34&L));A=Jd(A,L,xw7,f);f=32;B&&(f|=2);L=L&16769217|f;VT(A,L);return A};
|
|
ehC=function(A){var L=A.yf,B=L[fd]|0;return ST(A,B)?DZ(A,L,B)?da(A,L,!0):new A.constructor(F3(L,B,!1)):A};
|
|
Ig=function(A){if(A.N!==Jp)return!1;var L=A.yf;L=F3(L,L[fd]|0);Kd(L,2048);A.yf=L;A.N=void 0;A.W=void 0;return!0};
|
|
wa=function(A){if(!Ig(A)&&ST(A,A.yf[fd]|0))throw Error();};
|
|
pu=function(A,L){L===void 0&&(L=A[fd]|0);L&32&&!(L&4096)&&VT(A,L|4096)};
|
|
DZ=function(A,L,B){return B&2?!0:B&32&&!(B&4096)?(VT(L,B|2),A.N=Jp,!0):!1};
|
|
j7=function(A,L,B,f,K){Object.isExtensible(A);L=yP(A.yf,L,B,K);if(L!==null||f&&A.W!==Jp)return L};
|
|
yP=function(A,L,B,f){if(L===-1)return null;var K=L+(B?0:-1),V=A.length-1;if(!(V<1+(B?0:-1))){if(K>=V){var J=A[V];if(J!=null&&typeof J==="object"&&J.constructor===Object){B=J[L];var R=!0}else if(K===V)B=J;else return}else B=A[K];if(f&&B!=null){f=f(B);if(f==null)return f;if(!Object.is(f,B))return R?J[L]=f:A[K]=f,f}return B}};
|
|
ra=function(A,L,B,f){wa(A);var K=A.yf;Gw(K,K[fd]|0,L,B,f);return A};
|
|
Gw=function(A,L,B,f,K){var V=B+(K?0:-1),J=A.length-1;if(J>=1+(K?0:-1)&&V>=J){var R=A[J];if(R!=null&&typeof R==="object"&&R.constructor===Object)return R[B]=f,L}if(V<=J)return A[V]=f,L;if(f!==void 0){var Z;J=((Z=L)!=null?Z:L=A[fd]|0)>>14&1023||536870912;B>=J?f!=null&&(V={},A[J+(K?0:-1)]=(V[B]=f,V)):A[V]=f}return L};
|
|
lq=function(A,L,B,f,K){var V=A.yf,J=V[fd]|0;f=ST(A,J)?1:f;K=!!K||f===3;f===2&&Ig(A)&&(V=A.yf,J=V[fd]|0);A=sG(V,L);var R=A===HG?7:A[fd]|0,Z=hd(R,J);var N=4&Z?!1:!0;if(N){4&Z&&(A=k3(A),R=0,Z=bq(Z,J),J=Gw(V,J,L,A));for(var F=0,D=0;F<A.length;F++){var I=B(A[F]);I!=null&&(A[D++]=I)}D<F&&(A.length=D);B=(Z|4)&-513;Z=B&=-1025;Z&=-4097}Z!==R&&(VT(A,Z),2&Z&&Object.freeze(A));return A=njS(A,Z,V,J,L,void 0,f,N,K)};
|
|
njS=function(A,L,B,f,K,V,J,R,Z){var N=L;J===1||(J!==4?0:2&L||!(16&L)&&32&f)?mq(L)||(L|=!A.length||R&&!(4096&L)||32&f&&!(4096&L||16&L)?2:256,L!==N&&VT(A,L),Object.freeze(A)):(J===2&&mq(L)&&(A=k3(A),N=0,L=bq(L,f),f=Gw(B,f,K,A,V)),mq(L)||(Z||(L|=16),L!==N&&VT(A,L)));2&L||!(4096&L||16&L)||pu(B,f);return A};
|
|
sG=function(A,L,B){A=yP(A,L,B);return Array.isArray(A)?A:HG};
|
|
hd=function(A,L){2&L&&(A|=2);return A|1};
|
|
mq=function(A){return!!(2&A)&&!!(4&A)||!!(256&A)};
|
|
zh1=function(A){return dww(A,!0)};
|
|
QP=function(A,L){A=j7(A,L,void 0,void 0,zh1);return A==null?x$():A};
|
|
uN8=function(A,L,B){wa(A);var f=A.yf,K=f[fd]|0;if(L==null)return Gw(f,K,3),A;if(!Array.isArray(L))throw aR();var V=L===HG?7:L[fd]|0,J=V,R=mq(V),Z=R||Object.isFrozen(L);R||(V=0);Z||(L=k3(L),J=0,V=bq(V,K),Z=!1);V|=5;R=4&V?512&V?512:1024&V?1024:0:void 0;R=R!=null?R:XL?1024:0;V|=R;for(var N=0;N<L.length;N++){var F=L[N],D=B(F,R);Object.is(F,D)||(Z&&(L=k3(L),J=0,V=bq(V,K),Z=!1),L[N]=D)}V!==J&&(Z&&(L=k3(L),V=bq(V,K)),VT(L,V));Gw(f,K,3,L);return A};
|
|
Cu=function(A,L,B,f,K){wa(A);var V=A.yf;Gw(V,V[fd]|0,L,(f==="0"?Number(B)===0:B===f)?void 0:B,K);return A};
|
|
iq=function(A,L,B){if(L&2)throw Error();var f=N4(L),K=sG(A,B,f),V=K===HG?7:K[fd]|0,J=hd(V,L);if(2&J||mq(J)||16&J)J===V||mq(J)||VT(K,J),K=k3(K),V=0,J=bq(J,L),Gw(A,L,B,K,f);J&=-13;J!==V&&VT(K,J);return K};
|
|
EG=function(A,L,B,f){wa(A);var K=A.yf,V=K[fd]|0;if(f==null){var J=$b(K);if(X3(J,K,V,B)===L)J.set(B,0);else return A}else V=OG(K,V,B,L);Gw(K,V,L,f);return A};
|
|
cG=function(A,L,B,f){var K=A[fd]|0,V=N4(K);K=OG(A,K,B,L,V);Gw(A,K,L,f,V)};
|
|
M$=function(A,L,B){A=A.yf;return X3($b(A),A,void 0,L)===B?B:-1};
|
|
$b=function(A){if(Bg){var L;return(L=A[Yb])!=null?L:A[Yb]=new Map}if(Yb in A)return A[Yb];L=new Map;Object.defineProperty(A,Yb,{value:L});return L};
|
|
OG=function(A,L,B,f,K){f===0||B.includes(f);var V=$b(A),J=X3(V,A,L,B,K);J!==f&&(J&&(L=Gw(A,L,J,void 0,K)),V.set(B,f));return L};
|
|
X3=function(A,L,B,f,K){var V=A.get(f);if(V!=null)return V;for(var J=V=0;J<f.length;J++){var R=f[J];yP(L,R,K)!=null&&(V!==0&&(B=Gw(L,B,V,void 0,K)),V=R)}A.set(f,V);return V};
|
|
UG=function(A,L,B){var f=A[fd]|0,K=N4(f),V=yP(A,B,K);if(V!=null&&V[ar]===Ad){if(!ST(V))return Ig(V),V.yf;var J=V.yf}else Array.isArray(V)&&(J=V);if(J){var R=J[fd]|0;R&2&&(J=F3(J,R))}J=ZZ(J,L);J!==V&&Gw(A,f,B,J,K);return J};
|
|
aiQ=function(A,L,B,f,K){var V=!1;f=yP(A,f,K,function(J){var R=COe(J,B,L);V=R!==J&&R!=null;return R});
|
|
if(f!=null)return V&&!ST(f)&&pu(A,L),f};
|
|
WG=function(A,L,B,f){var K=A.yf,V=K[fd]|0;L=aiQ(K,V,L,B,f);if(L==null)return L;V=K[fd]|0;if(!ST(A,V)){var J=ehC(L);J!==L&&(Ig(A)&&(K=A.yf,V=K[fd]|0),L=J,V=Gw(K,V,B,L,f),pu(K,V))}return L};
|
|
vG=function(A,L,B,f,K,V,J,R,Z){var N=ST(A,B);V=N?1:V;R=!!R||V===3;N=Z&&!N;(V===2||N)&&Ig(A)&&(L=A.yf,B=L[fd]|0);A=sG(L,K,J);var F=A===HG?7:A[fd]|0,D=hd(F,B);if(Z=!(4&D)){var I=A,d=B,w=!!(2&D);w&&(d|=2);for(var r=!w,h=!0,Q=0,l=0;Q<I.length;Q++){var C=COe(I[Q],f,d);if(C instanceof f){if(!w){var O=ST(C);r&&(r=!O);h&&(h=O)}I[l++]=C}}l<Q&&(I.length=l);D|=4;D=h?D&-4097:D|4096;D=r?D|8:D&-9}D!==F&&(VT(A,D),2&D&&Object.freeze(A));if(N&&!(8&D||!A.length&&(V===1||(V!==4?0:2&D||!(16&D)&&32&B)))){mq(D)&&(A=k3(A),
|
|
D=bq(D,B),B=Gw(L,B,K,A,J));f=A;N=D;for(F=0;F<f.length;F++)I=f[F],D=ehC(I),I!==D&&(f[F]=D);N|=8;D=N=f.length?N|4096:N&-4097;VT(A,D)}return A=njS(A,D,L,B,K,J,V,Z,R)};
|
|
q$=function(A,L,B){var f=A.yf;return vG(A,f,f[fd]|0,L,B,void 0===A8E?2:4,void 0,!1,!0)};
|
|
Lk0=function(A,L){A!=null?ui(A,L):A=void 0;return A};
|
|
PG=function(A,L,B,f,K){f=Lk0(f,L);ra(A,B,f,K);f&&!ST(f)&&pu(A.yf);return A};
|
|
o9e=function(A,L,B,f,K){K=Lk0(K,L);EG(A,B,f,K);K&&!ST(K)&&pu(A.yf);return A};
|
|
xb=function(A,L,B,f){wa(A);var K=A.yf,V=K[fd]|0;if(f==null)return Gw(K,V,B),A;if(!Array.isArray(f))throw aR();for(var J=f===HG?7:f[fd]|0,R=J,Z=mq(J),N=Z||Object.isFrozen(f),F=!0,D=!0,I=0;I<f.length;I++){var d=f[I];ui(d,L);Z||(d=ST(d),F&&(F=!d),D&&(D=d))}Z||(J=F?13:5,J=D?J&-4097:J|4096);N&&J===R||(f=k3(f),R=0,J=bq(J,V));J!==R&&VT(f,J);V=Gw(K,V,B,f);2&J||!(4096&J||16&J)||pu(K,V);return A};
|
|
bq=function(A,L){return A=(2&L?A|2:A&-3)&-273};
|
|
e7=function(A,L,B,f){var K=f;wa(A);f=A.yf;A=vG(A,f,f[fd]|0,B,L,2,void 0,!0);K=K!=null?ui(K,B):new B;A.push(K);L=B=A===HG?7:A[fd]|0;(K=ST(K))?(B&=-9,A.length===1&&(B&=-4097)):B|=4096;B!==L&&VT(A,B);K||pu(f)};
|
|
g.nu=function(A,L,B){B=B===void 0?0:B;A=ii(j7(A,L));return A!=null?A:B};
|
|
zw=function(A,L){var B=B===void 0?0:B;var f;return(f=$3(j7(A,L)))!=null?f:B};
|
|
fr0=function(A,L,B){B=B===void 0?B_0:B;A=XL?j7(A,L,void 0,void 0,eT):eT(j7(A,L));return A!=null?A:B};
|
|
uq=function(A,L,B,f){B=B===void 0?"":B;var K;return(K=zy(j7(A,L,f)))!=null?K:B};
|
|
ag=function(A,L){var B=B===void 0?0:B;A=j7(A,L);A=A==null?A:mT(A)?A|0:void 0;return A!=null?A:B};
|
|
LH=function(A,L){return zy(j7(A,L,void 0,As))};
|
|
oK=function(A,L,B){return ra(A,L,vg(B))};
|
|
BS=function(A,L,B){return ra(A,L,nd(B))};
|
|
fH=function(A,L,B,f){return Cu(A,L,nd(B),"",f)};
|
|
KH=function(A,L,B){if(B!=null){if(!mT(B))throw aR("enum");B|=0}return ra(A,L,B)};
|
|
wi=function(A,L,B){this.buffer=A;if(B&&!L)throw Error();this.N=L};
|
|
pH=function(A,L){if(typeof A==="string")return new wi(JF6(A),L);if(Array.isArray(A))return new wi(new Uint8Array(A),L);if(A.constructor===Uint8Array)return new wi(A,!1);if(A.constructor===ArrayBuffer)return A=new Uint8Array(A),new wi(A,!1);if(A.constructor===qa)return L=eV(A)||new Uint8Array(0),new wi(L,!0,A);if(A instanceof Uint8Array)return A=A.constructor===Uint8Array?A:new Uint8Array(A.buffer,A.byteOffset,A.byteLength),new wi(A,!1);throw Error();};
|
|
yI=function(A,L,B,f){this.W=null;this.D=!1;this.N=this.V=this.U=0;this.init(A,L,B,f)};
|
|
gi=function(A,L){var B=0,f=0,K=0,V=A.W,J=A.N;do{var R=V[J++];B|=(R&127)<<K;K+=7}while(K<32&&R&128);if(K>32)for(f|=(R&127)>>4,K=3;K<32&&R&128;K+=7)R=V[J++],f|=(R&127)<<K;j1(A,J);if(!(R&128))return L(B>>>0,f>>>0);throw Error();};
|
|
j1=function(A,L){A.N=L;if(L>A.V)throw Error();};
|
|
GI=function(A){var L=A.W,B=A.N,f=L[B++],K=f&127;if(f&128&&(f=L[B++],K|=(f&127)<<7,f&128&&(f=L[B++],K|=(f&127)<<14,f&128&&(f=L[B++],K|=(f&127)<<21,f&128&&(f=L[B++],K|=f<<28,f&128&&L[B++]&128&&L[B++]&128&&L[B++]&128&&L[B++]&128&&L[B++]&128)))))throw Error();j1(A,B);return K};
|
|
ri=function(A){var L=A.W,B=A.N,f=L[B+0],K=L[B+1],V=L[B+2];L=L[B+3];j1(A,A.N+4);return(f<<0|K<<8|V<<16|L<<24)>>>0};
|
|
s0=function(A){var L=ri(A);A=ri(A);return s6(L,A)};
|
|
HS=function(A){var L=ri(A);A=ri(A);return d6(Ld()?BigInt.asUintN(64,(BigInt(A>>>0)<<BigInt(32))+BigInt(L>>>0)):r6(L,A))};
|
|
hs=function(A){var L=ri(A),B=ri(A);A=(B>>31)*2+1;var f=B>>>20&2047;L=4294967296*(B&1048575)+L;return f==2047?L?NaN:A*Infinity:f==0?A*4.9E-324*L:A*Math.pow(2,f-1075)*(L+4503599627370496)};
|
|
bW=function(A){for(var L=0,B=A.N,f=B+10,K=A.W;B<f;){var V=K[B++];L|=V;if((V&128)===0)return j1(A,B),!!(L&127)}throw Error();};
|
|
Kk1=function(A,L){if(L<0)throw Error();var B=A.N;L=B+L;if(L>A.V)throw Error();A.N=L;return B};
|
|
J8e=function(A,L){if(L==0)return x$();var B=Kk1(A,L);A.Gs&&A.D?B=A.W.subarray(B,B+L):(A=A.W,L=B+L,B=B===L?new Uint8Array(0):Vrv?A.slice(B,L):new Uint8Array(A.subarray(B,L)));return B.length==0?x$():new qa(B,PX)};
|
|
kE=function(A,L,B,f){if(ts.length){var K=ts.pop();K.init(A,L,B,f);A=K}else A=new yI(A,L,B,f);this.N=A;this.U=this.N.N;this.W=this.V=-1;SAS(this,f)};
|
|
SAS=function(A,L){L=L===void 0?{}:L;A.BH=L.BH===void 0?!1:L.BH};
|
|
RP1=function(A,L,B,f){if(TI.length){var K=TI.pop();SAS(K,f);K.N.init(A,L,B,f);return K}return new kE(A,L,B,f)};
|
|
ZG6=function(A){var L=A.N;if(L.N==L.V)return!1;A.U=A.N.N;var B=GI(A.N)>>>0;L=B>>>3;B&=7;if(!(B>=0&&B<=5))throw Error();if(L<1)throw Error();A.V=L;A.W=B;return!0};
|
|
lW=function(A){switch(A.W){case 0:A.W!=0?lW(A):bW(A.N);break;case 1:A=A.N;j1(A,A.N+8);break;case 2:if(A.W!=2)lW(A);else{var L=GI(A.N)>>>0;A=A.N;j1(A,A.N+L)}break;case 5:A=A.N;j1(A,A.N+4);break;case 3:L=A.V;do{if(!ZG6(A))throw Error();if(A.W==4){if(A.V!=L)throw Error();break}lW(A)}while(1);break;default:throw Error();}};
|
|
mV=function(A,L,B){var f=A.N.V,K=GI(A.N)>>>0;K=A.N.N+K;var V=K-f;V<=0&&(A.N.V=K,B(L,A,void 0,void 0,void 0),V=K-A.N.N);if(V)throw Error();A.N.N=K;A.N.V=f};
|
|
iW=function(A){var L=GI(A.N)>>>0;A=A.N;var B=Kk1(A,L);A=A.W;if(N_k){var f=A,K;(K=QI)||(K=QI=new TextDecoder("utf-8",{fatal:!0}));L=B+L;f=B===0&&L===f.length?f:f.subarray(B,L);try{var V=K.decode(f)}catch(N){if(CH===void 0){try{K.decode(new Uint8Array([128]))}catch(F){}try{K.decode(new Uint8Array([97])),CH=!0}catch(F){CH=!1}}!CH&&(QI=void 0);throw N;}}else{V=B;L=V+L;B=[];for(var J=null,R,Z;V<L;)R=A[V++],R<128?B.push(R):R<224?V>=L?Ez():(Z=A[V++],R<194||(Z&192)!==128?(V--,Ez()):B.push((R&31)<<6|Z&63)):
|
|
R<240?V>=L-1?Ez():(Z=A[V++],(Z&192)!==128||R===224&&Z<160||R===237&&Z>=160||((K=A[V++])&192)!==128?(V--,Ez()):B.push((R&15)<<12|(Z&63)<<6|K&63)):R<=244?V>=L-2?Ez():(Z=A[V++],(Z&192)!==128||(R<<28)+(Z-144)>>30!==0||((K=A[V++])&192)!==128||((f=A[V++])&192)!==128?(V--,Ez()):(R=(R&7)<<18|(Z&63)<<12|(K&63)<<6|f&63,R-=65536,B.push((R>>10&1023)+55296,(R&1023)+56320))):Ez(),B.length>=8192&&(J=vgD(J,B),B.length=0);V=vgD(J,B)}return V};
|
|
Fke=function(A){var L=GI(A.N)>>>0;return J8e(A.N,L)};
|
|
Do7=function(A,L,B){var f=GI(A.N)>>>0;for(f=A.N.N+f;A.N.N<f;)B.push(L(A.N))};
|
|
do8=function(A){if(A!==$E)throw Error();};
|
|
Xs=function(A,L){this.W=A>>>0;this.N=L>>>0};
|
|
w4y=function(A){if(!A)return Ir8||(Ir8=new Xs(0,0));if(!/^\d+$/.test(A))return null;tp(A);return new Xs(pd,yT)};
|
|
O0=function(A,L){this.W=A>>>0;this.N=L>>>0};
|
|
y8D=function(A){if(!A)return p41||(p41=new O0(0,0));if(!/^-?\d+$/.test(A))return null;tp(A);return new O0(pd,yT)};
|
|
E0=function(){this.N=[]};
|
|
cS=function(A,L,B){for(;B>0||L>127;)A.N.push(L&127|128),L=(L>>>7|B<<25)>>>0,B>>>=7;A.N.push(L)};
|
|
Mh=function(A,L){for(;L>127;)A.N.push(L&127|128),L>>>=7;A.N.push(L)};
|
|
jCk=function(A,L){if(L>=0)Mh(A,L);else{for(var B=0;B<9;B++)A.N.push(L&127|128),L>>=7;A.N.push(1)}};
|
|
YE=function(A,L){A.N.push(L>>>0&255);A.N.push(L>>>8&255);A.N.push(L>>>16&255);A.N.push(L>>>24&255)};
|
|
g91=function(){this.V=[];this.W=0;this.N=new E0};
|
|
U0=function(A,L){L.length!==0&&(A.V.push(L),A.W+=L.length)};
|
|
GO8=function(A,L){WS(A,L,2);L=A.N.end();U0(A,L);L.push(A.W);return L};
|
|
r8w=function(A,L){var B=L.pop();for(B=A.W+A.N.length()-B;B>127;)L.push(B&127|128),B>>>=7,A.W++;L.push(B);A.W++};
|
|
WS=function(A,L,B){Mh(A.N,L*8+B)};
|
|
sCk=function(A,L,B){if(B!=null){switch(typeof B){case "string":w4y(B)}WS(A,L,1);switch(typeof B){case "number":A=A.N;jT(B);YE(A,pd);YE(A,yT);break;case "bigint":B=BigInt.asUintN(64,B);B=new Xs(Number(B&BigInt(4294967295)),Number(B>>BigInt(32)));A=A.N;L=B.N;YE(A,B.W);YE(A,L);break;default:B=w4y(B),A=A.N,L=B.N,YE(A,B.W),YE(A,L)}}};
|
|
vS=function(A,L,B){WS(A,L,2);Mh(A.N,B.length);U0(A,A.N.end());U0(A,B)};
|
|
qh=function(){function A(){throw Error();}
|
|
Object.setPrototypeOf(A,A.prototype);return A};
|
|
PS=function(A,L,B){this.yf=N$(A,L,B)};
|
|
HGw=function(A,L){if(L==null||L=="")return new A;L=JSON.parse(L);if(!Array.isArray(L))throw Error("dnarr");Kd(L,32);return new A(L)};
|
|
e1=function(A,L,B){this.hv=A;this.f1=L;A=MX(xE);this.N=!!A&&B===A||!1};
|
|
nH=function(A,L){var B=B===void 0?xE:B;return new e1(A,L,B)};
|
|
bG0=function(A,L,B,f,K){L=hPe(L,f);L!=null&&(B=GO8(A,B),K(L,A),r8w(A,B))};
|
|
aK=function(A,L,B,f){var K=f[A];if(K)return K;K={};K.JX=f;K.Ds=Uw8(f[0]);var V=f[1],J=1;V&&V.constructor===Object&&(K.extensions=V,V=f[++J],typeof V==="function"&&(K.SN=!0,zI!=null||(zI=V),uW!=null||(uW=f[J+1]),V=f[J+=2]));for(var R={};V&&Array.isArray(V)&&V.length&&typeof V[0]==="number"&&V[0]>0;){for(var Z=0;Z<V.length;Z++)R[V[Z]]=V;V=f[++J]}for(Z=1;V!==void 0;){typeof V==="number"&&(Z+=V,V=f[++J]);var N=void 0;if(V instanceof e1)var F=V;else F=tr0,J--;V=void 0;if((V=F)==null?0:V.N){V=f[++J];N=
|
|
f;var D=J;typeof V==="function"&&(V=V(),N[D]=V);N=V}V=f[++J];D=Z+1;typeof V==="number"&&V<0&&(D-=V,V=f[++J]);for(;Z<D;Z++){var I=R[Z];N?B(K,Z,F,N,I):L(K,Z,F,I)}}return f[A]=K};
|
|
T_0=function(A){return Array.isArray(A)?A[0]instanceof e1?A:[kOC,A]:[A,void 0]};
|
|
hPe=function(A,L){if(A instanceof PS)return A.yf;if(Array.isArray(A))return ZZ(A,L)};
|
|
AW=function(A,L,B,f){var K=B.hv;A[L]=f?function(V,J,R){return K(V,J,R,f)}:K};
|
|
oF=function(A,L,B,f,K){var V=B.hv,J,R;A[L]=function(Z,N,F){return V(Z,N,F,R||(R=aK(LC,AW,oF,f).Ds),J||(J=BI(f)),K)}};
|
|
BI=function(A){var L=A[fC];if(L!=null)return L;var B=aK(LC,AW,oF,A);L=B.SN?function(f,K){return zI(f,K,B)}:function(f,K){for(;ZG6(K)&&K.W!=4;){var V=K.V,J=B[V];
|
|
if(J==null){var R=B.extensions;R&&(R=R[V])&&(R=lr7(R),R!=null&&(J=B[V]=R))}if(J==null||!J(K,f,V)){R=K;J=R.U;lW(R);if(R.BH)var Z=void 0;else{var N=R.N.N-J;R.N.N=J;Z=J8e(R.N,N)}N=R=J=void 0;var F=f;Z&&((J=(R=(N=F[og])!=null?N:F[og]=new fu)[V])!=null?J:R[V]=[]).push(Z)}}if(f=BG(f))f.x8=B.JX[mo0];return!0};
|
|
A[fC]=L;A[mo0]=QCC.bind(A);return L};
|
|
QCC=function(A,L,B,f){var K=this[LC],V=this[fC],J=ZZ(void 0,K.Ds),R=BG(A);if(R){var Z=!1,N=K.extensions;if(N){K=function(w,r,h){if(h.length!==0)if(N[r])for(w=g.m(h),r=w.next();!r.done;r=w.next()){r=RP1(r.value);try{Z=!0,V(J,r)}finally{r.free()}}else f==null||f(A,r,h)};
|
|
if(L==null)Ku(R,K);else if(R!=null){var F=R[L];F&&K(R,L,F)}if(Z){var D=A[fd]|0;if(D&2&&D&2048&&(B==null||!B.dFj))throw Error();var I=N4(D),d=function(w,r){if(yP(A,w,I)!=null)switch(B==null?void 0:B.OCF){case 1:return;default:throw Error();}r!=null&&(D=Gw(A,D,w,r,I));delete R[w]};
|
|
L==null?Ii8(J,J[fd]|0,function(w,r){d(w,r)}):d(L,yP(J,L,I))}}}};
|
|
lr7=function(A){A=T_0(A);var L=A[0].hv;if(A=A[1]){var B=BI(A),f=aK(LC,AW,oF,A).Ds;return function(K,V,J){return L(K,V,J,f,B)}}return L};
|
|
KC=function(A,L,B){A[L]=B.f1};
|
|
JW=function(A,L,B,f){var K,V,J=B.f1;A[L]=function(R,Z,N){return J(R,Z,N,V||(V=aK(Vv,KC,JW,f).Ds),K||(K=CA8(f)))}};
|
|
CA8=function(A){var L=A[iGe];if(!L){var B=aK(Vv,KC,JW,A);L=function(f,K){return $ow(f,K,B)};
|
|
A[iGe]=L}return L};
|
|
$ow=function(A,L,B){Ii8(A,A[fd]|0,function(f,K){if(K!=null){var V=X46(B,f);V?V(L,K,f):f<500||Ap(OGL,3)}});
|
|
(A=BG(A))&&Ku(A,function(f,K,V){U0(L,L.N.end());for(f=0;f<V.length;f++)U0(L,eV(V[f])||new Uint8Array(0))})};
|
|
X46=function(A,L){var B=A[L];if(B)return B;if(B=A.extensions)if(B=B[L]){B=T_0(B);var f=B[0].f1;if(B=B[1]){var K=CA8(B),V=aK(Vv,KC,JW,B).Ds;B=A.SN?uW(V,K):function(J,R,Z){return f(J,R,Z,V,K)}}else B=f;
|
|
return A[L]=B}};
|
|
SX=function(A,L,B){if(Array.isArray(L)){var f=L[fd]|0;if(f&4)return L;for(var K=0,V=0;K<L.length;K++){var J=A(L[K]);J!=null&&(L[V++]=J)}V<K&&(L.length=V);A=f|1;B&&(A=(A|4)&-1537);A!==f&&VT(L,A);B&&A&2&&Object.freeze(L);return L}};
|
|
RF=function(A,L,B){return new e1(A,L,B)};
|
|
ZX=function(A,L,B){return new e1(A,L,B)};
|
|
Nl=function(A,L,B){Gw(A,A[fd]|0,L,B,N4(A[fd]|0))};
|
|
FI=function(A,L,B){L=L==null||typeof L==="number"?L:L==="NaN"||L==="Infinity"||L==="-Infinity"?Number(L):void 0;L!=null&&(WS(A,B,1),A=A.N,B=E98||(E98=new DataView(new ArrayBuffer(8))),B.setFloat64(0,+L,!0),pd=B.getUint32(0,!0),yT=B.getUint32(4,!0),YE(A,pd),YE(A,yT))};
|
|
DX=function(A,L,B){L=k$8(L);if(L!=null){switch(typeof L){case "string":y8D(L)}if(L!=null)switch(WS(A,B,0),typeof L){case "number":A=A.N;Gy(L);cS(A,pd,yT);break;case "bigint":B=BigInt.asUintN(64,L);B=new O0(Number(B&BigInt(4294967295)),Number(B>>BigInt(32)));cS(A.N,B.W,B.N);break;default:B=y8D(L),cS(A.N,B.W,B.N)}}};
|
|
dF=function(A,L,B){L=ii(L);L!=null&&L!=null&&(WS(A,B,0),jCk(A.N,L))};
|
|
c8v=function(A,L,B){L=L==null||typeof L==="boolean"?L:typeof L==="number"?!!L:void 0;L!=null&&(WS(A,B,0),A.N.N.push(L?1:0))};
|
|
MrC=function(A,L,B){L=zy(L);L!=null&&vS(A,B,eFE(L))};
|
|
YAS=function(A,L,B,f,K){L=hPe(L,f);L!=null&&(B=GO8(A,B),K(L,A),r8w(A,B))};
|
|
Wkw=function(A,L,B){if(B!==$E)throw Error();this.typeName=A;this.N=L;if(B!==$E)throw Error();UoC.set(A,this)};
|
|
qAw=function(){var A=IF;this.N=v97;this.isRepeated=0;this.W=WG;this.defaultValue=void 0;this.V=A.messageId!=null?Z7:void 0};
|
|
PAQ=function(A,L){return function(B,f){var K={qD:!0};f&&Object.assign(K,f);B=RP1(B,void 0,void 0,K);try{var V=new A,J=V.yf;BI(L)(J,B);var R=V}finally{B.free()}return R}};
|
|
xov=function(A){return function(){var L=new g91;$ow(this.yf,L,aK(Vv,KC,JW,A));U0(L,L.N.end());for(var B=new Uint8Array(L.W),f=L.V,K=f.length,V=0,J=0;J<K;J++){var R=f[J];B.set(R,V);V+=R.length}L.V=[B];return B}};
|
|
wF=function(A){return function(L){return HGw(A,L)}};
|
|
pC=function(A){this.yf=N$(A)};
|
|
ePC=function(A){this.V=A;this.N=-1;this.W=this.U=0};
|
|
yv=function(A,L){return function(){var B=g.pf.apply(0,arguments);if(A.N>-1)return L.apply(null,g.x7(B));try{return A.N=A.V.N.now(),L.apply(null,g.x7(B))}finally{A.U+=A.V.N.now()-A.N,A.N=-1,A.W+=1}}};
|
|
n9D=function(A,L){this.W=A;this.V=L;this.N=new ePC(A)};
|
|
zPE=function(){this.N={}};
|
|
LnC=function(){this.V=void 0;this.W=this.T=0;this.D=-1;this.Zx=new Uc;Wk(this.Zx,"mv",uF7).N=!0;Wk(this.Zx,"omid",nx);Wk(this.Zx,"epoh",nx).N=!0;Wk(this.Zx,"epph",nx).N=!0;Wk(this.Zx,"umt",nx).N=!0;Wk(this.Zx,"phel",nx).N=!0;Wk(this.Zx,"phell",nx).N=!0;Wk(this.Zx,"oseid",arL).N=!0;var A=this.Zx;A.N.sloi||(A.N.sloi=new ck);A.N.sloi.N=!0;Wk(this.Zx,"mm",jX);Wk(this.Zx,"ovms",AD0).N=!0;Wk(this.Zx,"xdi",nx).N=!0;Wk(this.Zx,"amp",nx).N=!0;Wk(this.Zx,"prf",nx).N=!0;Wk(this.Zx,"gtx",nx).N=!0;Wk(this.Zx,
|
|
"mvp_lv",nx).N=!0;Wk(this.Zx,"ssmol",nx).N=!0;Wk(this.Zx,"fmd",nx).N=!0;Wk(this.Zx,"gen204simple",nx);this.N=new n9D(Oz(),this.Zx);this.U=!1;this.flags=new zPE};
|
|
gF=function(){return $$(LnC)};
|
|
o$E=function(A,L,B,f){if(Math.random()<(f||A.N))try{if(B instanceof tD)var K=B;else K=new tD,bI(B,function(J,R){var Z=K,N=Z.U++;J=k$(R,J);Z.N.push(N);Z.W[N]=J});
|
|
var V=K.MQ(A.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+L+"&");V&&(Oz(),MZS(V))}catch(J){}};
|
|
BK0=function(A,L,B){B=B===void 0?{}:B;this.error=A;this.meta=B;this.context=L.context;this.msg=L.message||"";this.id=L.id||"jserror"};
|
|
f47=function(){var A=A===void 0?g.rI:A;return(A=A.performance)&&A.now&&A.timing?Math.floor(A.now()+A.timing.navigationStart):g.Ed()};
|
|
Knw=function(){var A=A===void 0?g.rI:A;return(A=A.performance)&&A.now?A.now():null};
|
|
VVk=function(A,L,B){this.label=A;this.type=L;this.value=B;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
|
|
rF=function(){var A=window;this.events=[];this.W=A||g.rI;var L=null;A&&(A.google_js_reporting_queue=A.google_js_reporting_queue||[],this.events=A.google_js_reporting_queue,L=A.google_measure_js_timing);this.N=Gr()||(L!=null?L:Math.random()<1)};
|
|
JDE=function(A){A&&HI&&Gr()&&(HI.clearMarks("goog_"+A.label+"_"+A.uniqueId+"_start"),HI.clearMarks("goog_"+A.label+"_"+A.uniqueId+"_end"))};
|
|
hW=function(A,L,B,f,K,V,J){var R="";A&&(R+=A+":");B&&(R+="//",L&&(R+=L+"@"),R+=B,f&&(R+=":"+f));K&&(R+=K);V&&(R+="?"+V);J&&(R+="#"+J);return R};
|
|
g.bp=function(A){return A.match(SzQ)};
|
|
Rl1=function(A){return A?decodeURI(A):A};
|
|
g.tW=function(A){return Rl1(g.bp(A)[3]||null)};
|
|
ks=function(A){return Rl1(g.bp(A)[5]||null)};
|
|
g.Zvk=function(A){A=g.bp(A);return hW(A[1],A[2],A[3],A[4])};
|
|
Tr=function(A){A=g.bp(A);return hW(null,null,null,null,A[5],A[6],A[7])};
|
|
NKL=function(A){var L=A.indexOf("#");return L<0?A:A.slice(0,L)};
|
|
lp=function(A,L){if(A){A=A.split("&");for(var B=0;B<A.length;B++){var f=A[B].indexOf("="),K=null;if(f>=0){var V=A[B].substring(0,f);K=A[B].substring(f+1)}else V=A[B];L(V,K?qw(K):"")}}};
|
|
m2=function(A,L){if(!L)return A;var B=A.indexOf("#");B<0&&(B=A.length);var f=A.indexOf("?");if(f<0||f>B){f=B;var K=""}else K=A.substring(f+1,B);A=[A.slice(0,f),K,A.slice(B)];B=A[1];A[1]=L?B?B+"&"+L:L:B;return A[0]+(A[1]?"?"+A[1]:"")+A[2]};
|
|
Qv=function(A,L,B){if(Array.isArray(L))for(var f=0;f<L.length;f++)Qv(A,String(L[f]),B);else L!=null&&B.push(A+(L===""?"":"="+g.v5(L)))};
|
|
Fn6=function(A,L){var B=[];for(L=L||0;L<A.length;L+=2)Qv(A[L],A[L+1],B);return B.join("&")};
|
|
g.CC=function(A){var L=[],B;for(B in A)Qv(B,A[B],L);return L.join("&")};
|
|
Day=function(A,L){var B=arguments.length==2?Fn6(arguments[1],0):Fn6(arguments,1);return m2(A,B)};
|
|
g.ip=function(A,L){L=g.CC(L);return m2(A,L)};
|
|
$s=function(A,L,B){B=B!=null?"="+g.v5(B):"";return m2(A,L+B)};
|
|
XI=function(A,L,B,f){for(var K=B.length;(L=A.indexOf(B,L))>=0&&L<f;){var V=A.charCodeAt(L-1);if(V==38||V==63)if(V=A.charCodeAt(L+K),!V||V==61||V==38||V==35)return L;L+=K+1}return-1};
|
|
Ew=function(A,L){var B=A.search(Ow),f=XI(A,0,L,B);if(f<0)return null;var K=A.indexOf("&",f);if(K<0||K>B)K=B;f+=L.length+1;return qw(A.slice(f,K!==-1?K:0))};
|
|
cI=function(A,L){for(var B=A.search(Ow),f=0,K,V=[];(K=XI(A,f,L,B))>=0;)V.push(A.substring(f,K)),f=Math.min(A.indexOf("&",K)+1||B,B);V.push(A.slice(f));return V.join("").replace(daw,"$1")};
|
|
I4v=function(A,L,B){return $s(cI(A,L),L,B)};
|
|
wXQ=function(){var A=Ml;this.N=Ys;this.gU="jserror";this.RP=!0;this.v6=null;this.W=this.rP;this.x6=A===void 0?null:A};
|
|
pXy=function(A,L,B){var f=Uw;return yv(gF().N.N,function(){try{if(f.x6&&f.x6.N){var K=f.x6.start(A.toString(),3);var V=L();f.x6.end(K)}else V=L()}catch(R){var J=f.RP;try{JDE(K),J=f.W(A,new WI(vI(R)),void 0,B)}catch(Z){f.rP(217,Z)}if(!J)throw R;}return V})()};
|
|
ql=function(A,L,B,f){return yv(gF().N.N,function(){var K=g.pf.apply(0,arguments);return pXy(A,function(){return L.apply(B,K)},f)})};
|
|
vI=function(A){var L=A.toString();A.name&&L.indexOf(A.name)==-1&&(L+=": "+A.name);A.message&&L.indexOf(A.message)==-1&&(L+=": "+A.message);if(A.stack)a:{A=A.stack;var B=L;try{A.indexOf(B)==-1&&(A=B+"\n"+A);for(var f;A!=f;)f=A,A=A.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");L=A.replace(/\n */g,"\n");break a}catch(K){L=B;break a}L=void 0}return L};
|
|
WI=function(A){BK0.call(this,Error(A),{message:A})};
|
|
yDw=function(){qo&&typeof qo.google_measure_js_timing!="undefined"&&(qo.google_measure_js_timing||Ml.disable())};
|
|
jR6=function(A){Uw.v6=function(L){g.yB(A,function(B){B(L)})}};
|
|
g$v=function(A,L){return pXy(A,L)};
|
|
PI=function(A,L){return ql(A,L)};
|
|
xs=function(A,L,B,f){Uw.rP(A,L,B,f)};
|
|
eX=function(){return Date.now()-GVC};
|
|
rD6=function(){var A=gF().V,L=nC>=0?eX()-nC:-1,B=zr?eX()-up:-1,f=aF>=0?eX()-aF:-1;if(A==947190542)return 100;if(A==79463069)return 200;A=[2E3,4E3];var K=[250,500,1E3];xs(637,Error(),.001);var V=L;B!=-1&&B<L&&(V=B);for(L=0;L<A.length;++L)if(V<A[L]){var J=K[L];break}J===void 0&&(J=K[A.length]);return f!=-1&&f>1500&&f<4E3?500:J};
|
|
Ag=function(A,L,B){var f=new uA(0,0,0,0);this.time=A;this.volume=null;this.V=L;this.N=f;this.W=B};
|
|
L9=function(A,L,B,f,K,V,J,R){this.U=A;this.X=L;this.V=B;this.T=f;this.N=K;this.D=V;this.W=J;this.G=R};
|
|
HvS=function(A){var L=A!==A.top,B=A.top===s8y(A),f=-1,K=0;if(L&&B&&A.top.mraid){f=3;var V=A.top.mraid}else f=(V=A.mraid)?L?B?2:1:0:-1;V&&(V.IS_GMA_SDK||(K=2),KtL(sRE,function(J){return typeof V[J]==="function"})||(K=1));
|
|
return{t8:V,compatibility:K,A1M:f}};
|
|
hl1=function(){var A=window.document;return A&&typeof A.elementFromPoint==="function"};
|
|
bve=function(A,L,B){if(A&&L!==null&&L!=L.top){if(!L.top)return new g.Sr(-12245933,-12245933);L=L.top}try{return(B===void 0?0:B)?(new g.Sr(L.innerWidth,L.innerHeight)).round():VZ1(L||window).round()}catch(f){return new g.Sr(-12245933,-12245933)}};
|
|
ot=function(A,L,B){try{if(A){if(!L.top)return new uA(-12245933,-12245933,-12245933,-12245933);L=L.top}var f=bve(A,L,B),K=f.height,V=f.width;if(V===-12245933)return new uA(V,V,V,V);var J=pG(L.document);var R=Scw(J.N);var Z=R.x,N=R.y;return new uA(N,Z+V,N+K,Z)}catch(F){return new uA(-12245933,-12245933,-12245933,-12245933)}};
|
|
B2=function(A,L){L=Math.pow(10,L);return Math.floor(A*L)/L};
|
|
tVQ=function(A){return new uA(A.top,A.right,A.bottom,A.left)};
|
|
kVk=function(A){var L=A.top||0,B=A.left||0;return new uA(L,B+(A.width||0),L+(A.height||0),B)};
|
|
f9=function(A){return A!=null&&A>=0&&A<=1};
|
|
TKD=function(){var A=g.fa();return A?K9("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;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(L){return AF(A,L)})||AF(A,"OMI/")&&!AF(A,"XiaoMi/")?!0:AF(A,"Presto")&&AF(A,"Linux")&&!AF(A,"X11")&&!AF(A,"Android")&&!AF(A,"Mobi"):!1};
|
|
l4e=function(){this.V=!rK(qo.top);this.isMobileDevice=HX()||Hxy();var A=hD();this.domain=A.length>0&&A[A.length-1]!=null&&A[A.length-1].url!=null?g.tW(A[A.length-1].url)||"":"";this.N=new uA(0,0,0,0);this.U=new g.Sr(0,0);this.D=new g.Sr(0,0);this.X=new uA(0,0,0,0);this.frameOffset=new g.Vl(0,0);this.T=0;this.G=!1;this.W=!(!qo||!HvS(qo).t8);this.update(qo)};
|
|
maE=function(A,L){L&&L.screen&&(A.U=new g.Sr(L.screen.width,L.screen.height))};
|
|
QRQ=function(A,L){a:{var B=A.N?new g.Sr(aC(A.N),A.N.getHeight()):new g.Sr(0,0);L=L===void 0?qo:L;L!==null&&L!=L.top&&(L=L.top);var f=0,K=0;try{var V=L.document,J=V.body,R=V.documentElement;if(V.compatMode=="CSS1Compat"&&R.scrollHeight)f=R.scrollHeight!=B.height?R.scrollHeight:R.offsetHeight,K=R.scrollWidth!=B.width?R.scrollWidth:R.offsetWidth;else{var Z=R.scrollHeight,N=R.scrollWidth,F=R.offsetHeight,D=R.offsetWidth;R.clientHeight!=F&&(Z=J.scrollHeight,N=J.scrollWidth,F=J.offsetHeight,D=J.offsetWidth);
|
|
Z>B.height?Z>F?(f=Z,K=N):(f=F,K=D):Z<F?(f=Z,K=N):(f=F,K=D)}var I=new g.Sr(K,f);break a}catch(d){I=new g.Sr(-12245933,-12245933);break a}I=void 0}A.D=I};
|
|
Sq=function(){var A=V6();if(A.T>0||A.G)return!0;A=Oz().W.isVisible();var L=GV(Jg)===0;return A||L};
|
|
V6=function(){return $$(l4e)};
|
|
Rt=function(A){this.V=A;this.W=0;this.N=null};
|
|
Zx=function(A,L,B){this.V=A;this.Ys=B===void 0?"na":B;this.D=[];this.isInitialized=!1;this.U=new Ag(-1,!0,this);this.N=this;this.G=L;this.Wn=this.yj=!1;this.wT="uk";this.ZM=!1;this.T=!0};
|
|
Ni=function(A,L){g.zK(A.D,L)||(A.D.push(L),L.Cj(A.N),L.M2(A.U),L.cL()&&(A.yj=!0))};
|
|
CI6=function(A){A=A.N;A.Ri();A.ML();var L=V6();L.X=ot(!1,A.V,L.isMobileDevice);QRQ(V6(),A.V);A.U.N=A.Ju()};
|
|
ivS=function(A){A.yj=A.D.length?K9(A.D,function(L){return L.cL()}):!1};
|
|
$ay=function(A){var L=g.Kx(A.D);g.yB(L,function(B){B.M2(A.U)})};
|
|
F_=function(A){var L=g.Kx(A.D);g.yB(L,function(B){B.Cj(A.N)});
|
|
A.N!=A||$ay(A)};
|
|
Dx=function(A,L,B,f){this.element=A;this.N=new uA(0,0,0,0);this.V=null;this.T=new uA(0,0,0,0);this.W=L;this.Zx=B;this.ZM=f;this.Vj=!1;this.timestamp=-1;this.yj=new L9(L.U,this.element,this.N,new uA(0,0,0,0),0,0,eX(),0);this.D=void 0};
|
|
XXk=function(A,L){return A.D?new uA(Math.max(L.top+A.D.top,L.top),Math.min(L.left+A.D.right,L.right),Math.min(L.top+A.D.bottom,L.bottom),Math.max(L.left+A.D.left,L.left)):L.clone()};
|
|
It=function(A){this.D=!1;this.N=A;this.U=function(){}};
|
|
Ove=function(A,L,B){this.V=B===void 0?0:B;this.W=A;this.N=L==null?"":L};
|
|
E$Q=function(A){switch(Math.trunc(A.V)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
|
|
cDD=function(A,L){return A.V<L.V?!0:A.V>L.V?!1:A.W<L.W?!0:A.W>L.W?!1:typeof A.N<typeof L.N?!0:typeof A.N>typeof L.N?!1:A.N<L.N};
|
|
wH=function(){this.V=0;this.N=[];this.W=!1};
|
|
MVk=function(A,L){(0,g.yB)(L.N,function(B){A.add(B.W,B.N,E$Q(B))})};
|
|
p9=function(A,L){var B=B===void 0?0:B;var f=f===void 0?!0:f;bI(L,function(K,V){f&&K===void 0||A.add(V,K,B)});
|
|
return A};
|
|
y6=function(A){var L=YzC;A.W&&(g.I8(A.N,function(B,f){return cDD(f,B)?1:cDD(B,f)?-1:0}),A.W=!1);
|
|
return Cv(A.N,function(B,f){f=L(f);return""+B+(B!=""&&f!=""?"&":"")+f},"")};
|
|
YzC=function(A){var L=A.W;A=A.N;return A===""?L:typeof A==="boolean"?A?L:"":Array.isArray(A)?A.length===0?L:L+"="+A.join():L+"="+(g.zK(["mtos","tos","p"],L)?A:encodeURIComponent(A))};
|
|
Uak=function(A){var L=L===void 0?!0:L;this.N=new wH;A!==void 0&&MVk(this.N,A);L&&this.N.add("v","unreleased",-16)};
|
|
WnD=function(A){var L=[],B=[];g.H6(A,function(f,K){if(!(K in Object.prototype)&&typeof f!="undefined")switch(Array.isArray(f)&&(f=f.join(",")),f=[K,"=",f].join(""),K){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":L.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":B.push(f);break;default:L.push(f)}});
|
|
return L.concat(B)};
|
|
v$k=function(A){A=A.toString();Oz();MZS(A)};
|
|
qzk=function(){this.N=0};
|
|
g.jq=function(A){A&&typeof A.dispose=="function"&&A.dispose()};
|
|
g.gH=function(A){for(var L=0,B=arguments.length;L<B;++L){var f=arguments[L];g.lB(f)?g.gH.apply(null,f):g.jq(f)}};
|
|
g.Y=function(){this.o4=this.o4;this.WR=this.WR};
|
|
g.W=function(A,L){A.addOnDisposeCallback(g.Od(g.jq,L))};
|
|
PI0=function(A,L,B){(0,g.yB)(A.V,function(f){var K=A.N;if(!f.N&&(f.V(L,B),f.U())){f.N=!0;var V=f.W(),J=new wH;J.add("id","av-js");J.add("type","verif");J.add("vtype",f.D);f=$$(qzk);J.add("i",f.N++);J.add("adk",K);p9(J,V);K=new Uak(J);v$k(K)}})};
|
|
GH=function(){this.W=this.V=this.U=this.N=0};
|
|
rH=function(A){this.W=A=A===void 0?xa1:A;this.N=g.mn(this.W,function(){return new GH})};
|
|
sx=function(A,L){return ele(A,function(B){return B.N},L===void 0?!0:L)};
|
|
hg=function(A,L){return H2(A,L,function(B){return B.N})};
|
|
n$Q=function(A,L){return ele(A,function(B){return B.V},L===void 0?!0:L)};
|
|
bC=function(A,L){return H2(A,L,function(B){return B.V})};
|
|
tg=function(A,L){return H2(A,L,function(B){return B.W})};
|
|
zly=function(A){g.yB(A.N,function(L){L.W=0})};
|
|
ele=function(A,L,B){A=g.mn(A.N,function(f){return L(f)});
|
|
return B?A:u6v(A)};
|
|
H2=function(A,L,B){var f=g.xW(A.W,function(K){return L<=K});
|
|
return f==-1?0:B(A.N[f])};
|
|
u6v=function(A){return g.mn(A,function(L,B,f){return B>0?f[B]-f[B-1]:f[B]})};
|
|
k1=function(){this.W=new rH;this.Ys=this.S4=0;this.Cr=new GH;this.qp=this.X=-1;this.Ox=1E3;this.Nl=new rH([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.wT=this.Vj=-1};
|
|
TH=function(A,L){return n$Q(A.W,L===void 0?!0:L)};
|
|
lC=function(A,L,B,f){var K=K===void 0?!1:K;B=ql(f,B);gK(A,L,B,{capture:K})};
|
|
Q6=function(A,L){L=ml(L);return L===0?0:ml(A)/L};
|
|
ml=function(A){return Math.max(A.bottom-A.top,0)*Math.max(A.right-A.left,0)};
|
|
a4e=function(A,L){if(!A||!L)return!1;for(var B=0;A!==null&&B++<100;){if(A===L)return!0;try{if(A=A.parentElement||A){var f=w_(A),K=f&&bA(f),V=K&&K.frameElement;V&&(A=V)}}catch(J){break}}return!1};
|
|
Ape=function(A,L,B){if(!A||!L)return!1;L=Lv(A.clone(),-L.left,-L.top);A=(L.left+L.right)/2;L=(L.top+L.bottom)/2;rK(window.top)&&window.top&&window.top.document&&(window=window.top);if(!hl1())return!1;A=window.document.elementFromPoint(A,L);if(!A)return!1;L=(L=(L=w_(B))&&L.defaultView&&L.defaultView.frameElement)&&a4e(L,A);var f=A===B;A=!f&&A&&c4(A,function(K){return K===B});
|
|
return!(L||f||A)};
|
|
LT8=function(A,L,B,f){return V6().V?!1:aC(A)<=0||A.getHeight()<=0?!0:B&&f?g$v(208,function(){return Ape(A,L,B)}):!1};
|
|
C9=function(A,L,B){g.Y.call(this);this.position=o38.clone();this.fm=this.fU();this.XM=-2;this.timeCreated=Date.now();this.ZP=-1;this.gN=L;this.Sc=null;this.Ap=!1;this.N9=null;this.opacity=-1;this.requestSource=B;this.bVp=!1;this.nR=function(){};
|
|
this.uL=function(){};
|
|
this.q4=new No0;this.q4.G$=A;this.q4.N=A;this.g6=!1;this.v$={pR:null,uX:null};this.hJ=!0;this.VR=null;this.OV=this.aM4=!1;gF().T++;this.Ic=this.uI();this.V6=-1;this.rX=null;this.hasCompleted=this.eF4=!1;this.Zx=new Uc;DX7(this.Zx);B6k(this);this.requestSource==1?vk(this.Zx,"od",1):vk(this.Zx,"od",0)};
|
|
B6k=function(A){A=A.q4.G$;var L;if(L=A&&A.getAttribute)L=/-[a-z]/.test("googleAvInapp")?!1:f7L&&A.dataset?"googleAvInapp"in A.dataset:A.hasAttribute?A.hasAttribute("data-"+M5C()):!!A.getAttribute("data-"+M5C());L&&(V6().W=!0)};
|
|
iC=function(A,L){L!=A.OV&&(A.OV=L,A=V6(),L?A.T++:A.T>0&&A.T--)};
|
|
KTC=function(A,L){if(A.rX){if(L.getName()===A.rX.getName())return;A.rX.dispose();A.rX=null}L=L.create(A.q4.N,A.Zx,A.cL());if(L=L!=null&&L.observe()?L:null)A.rX=L};
|
|
VT0=function(A,L,B){if(!A.Sc||A.gN==-1||L.W===-1||A.Sc.W===-1)return 0;A=L.W-A.Sc.W;return A>B?0:A};
|
|
JpE=function(A,L,B){if(A.rX){A.rX.xr();var f=A.rX.yj,K=f.U,V=K.N;if(f.T!=null){var J=f.V;A.N9=new g.Vl(J.left-V.left,J.top-V.top)}V=A.e3()?Math.max(f.N,f.D):f.N;J={};K.volume!==null&&(J.volume=K.volume);K=A.kF(f);A.Sc=f;A.zL(V,L,B,!1,J,K,f.G)}};
|
|
S6E=function(A){if(A.Ap&&A.VR){var L=qV(A.Zx,"od")==1,B=V6().N,f=A.VR,K=A.rX?A.rX.getName():"ns",V=A.N9,J=new g.Sr(aC(B),B.getHeight());B=A.e3();A={KDM:K,N9:V,xVF:J,e3:B,Yb:A.Ic.Yb,hI1:L};if(L=f.W){L.xr();K=L.yj;V=K.U.N;var R=J=null;K.T!=null&&V&&(J=K.V,J=new g.Vl(J.left-V.left,J.top-V.top),R=new g.Sr(V.right-V.left,V.bottom-V.top));K=B?Math.max(K.N,K.D):K.N;B={KDM:L.getName(),N9:J,xVF:R,e3:B,hI1:!1,Yb:K}}else B=null;B&&PI0(f,A,B)}};
|
|
R38=function(A,L,B){L&&(A.nR=L);B&&(A.uL=B)};
|
|
g.$1=function(){};
|
|
g.X_=function(A){return{value:A,done:!1}};
|
|
Zdy=function(){this.U=this.N=this.V=this.W=this.D=0};
|
|
N6D=function(A){var L={};var B=g.Ed()-A.D;L=(L.ptlt=B,L);(B=A.W)&&(L.pnk=B);(B=A.V)&&(L.pnc=B);(B=A.U)&&(L.pnmm=B);(A=A.N)&&(L.pns=A);return L};
|
|
FTw=function(){go.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
|
|
Ox=function(A){return f9(A.volume)&&A.volume>0};
|
|
Ex=function(A,L,B,f){B=B===void 0?!0:B;f=f===void 0?function(){return!0}:f;
|
|
return function(K){var V=K[A];if(Array.isArray(V)&&f(K))return D41(V,L,B)}};
|
|
c2=function(A,L){return function(B){return L(B)?B[A]:void 0}};
|
|
d4k=function(A){return function(L){for(var B=0;B<A.length;B++)if(A[B]===L.e||A[B]===void 0&&!L.hasOwnProperty("e"))return!0;return!1}};
|
|
D41=function(A,L,B){return B===void 0||B?g.Mi(A,function(f,K){return g.zK(L,K)}):g.mn(L,function(f,K,V){return A.slice(K>0?V[K-1]+1:0,f+1).reduce(function(J,R){return J+R},0)})};
|
|
I77=function(){this.W=this.N=""};
|
|
wgQ=function(){};
|
|
Y1=function(A,L){var B={};if(A!==void 0)if(L!=null)for(var f in L){var K=L[f];f in Object.prototype||K!=null&&(B[f]=typeof K==="function"?K(A):A[K])}else g.Xc(B,A);return y6(p9(new wH,B))};
|
|
pg0=function(){var A={};this.W=(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.N={};for(var L in this.W)this.W[L][1]>0&&(this.N[L]=0);this.V=0};
|
|
Ux=function(A,L){var B=A.W[L],f=B[1];A.V+=B[0];f>0&&A.N[L]==0&&(A.N[L]=1)};
|
|
yp8=function(A){var L=g.bs(A.W),B=0,f;for(f in A.N)g.zK(L,f)&&A.N[f]==1&&(B+=A.W[f][1],A.N[f]=2);return B};
|
|
jr7=function(A){var L=0,B;for(B in A.N){var f=A.N[B];if(f==1||f==2)L+=A.W[B][1]}return L};
|
|
W2=function(){this.N=this.W=0};
|
|
v2=function(){k1.call(this);this.V=new GH;this.Ex=this.yj=this.ZM=0;this.G=-1;this.ql=new GH;this.D=new GH;this.N=new rH;this.T=this.U=-1;this.Wn=new GH;this.Ox=2E3;this.JF=new W2;this.cn=new W2;this.sx=new W2};
|
|
qi=function(A,L,B){var f=A.Ex;zr||B||A.G==-1||(f+=L-A.G);return f};
|
|
g3E=function(){this.V=!1};
|
|
P2=function(A,L){this.V=!1;this.U=A;this.yj=L;this.D=0};
|
|
x1=function(A,L){P2.call(this,A,L);this.X=[]};
|
|
Gyw=function(){};
|
|
eq=function(){};
|
|
n9=function(A,L,B,f){Dx.call(this,A,L,B,f)};
|
|
zH=function(A,L,B){Dx.call(this,null,A,L,B);this.G=A.isActive();this.X=0};
|
|
uC=function(A){return[A.top,A.left,A.bottom,A.right]};
|
|
at=function(A,L,B,f,K,V){V=V===void 0?new eq:V;C9.call(this,L,B,f);this.Lg=K;this.oJ=0;this.wB={};this.s6=new pg0;this.Ng={};this.Ve="";this.sx=null;this.Uv=!1;this.N=[];this.Zf=V.W();this.T=V.V();this.U=null;this.V=-1;this.Ys=this.yj=void 0;this.qp=this.Wn=0;this.wT=-1;this.Ox=this.cn=!1;this.ZM=this.G=this.W=this.Oo=this.mH=0;new rH;this.JF=this.Ex=0;this.Cr=-1;this.Rn=0;this.X=g.x9;this.Vj=[this.fU()];this.zV=2;this.Ik={};this.Ik.pause="p";this.Ik.resume="r";this.Ik.skip="s";this.Ik.mute="m";this.Ik.unmute=
|
|
"um";this.Ik.exitfullscreen="ef";this.D=null;this.Nl=this.ql=!1;this.jI=Math.floor(Date.now()/1E3-1704067200);this.S4=0};
|
|
A5=function(A){A.hasCompleted=!0;A.Rn!=0&&(A.Rn=3)};
|
|
Lt=function(A){return A===void 0?A:Number(A)?B2(A,3):0};
|
|
o3=function(A,L){return A.Vj[L!=null&&L<A.Vj.length?L:A.Vj.length-1]};
|
|
rpw=function(A){var L=!!qV(gF().Zx,"umt");return A.yj||!L&&!A.Ys?0:1};
|
|
sr7=function(A,L){A.l5()?L=0:A.gN==-1?L=0:(L-=A.gN,L=L>Math.max(1E4,A.V/3)?0:L);var B=A.X(A)||{};B=B.currentTime!==void 0?B.currentTime:A.Wn;var f=B-A.Wn,K=0;f>=0?(A.qp+=L,A.JF+=Math.max(L-f,0),K=Math.min(f,A.qp)):A.Ex+=Math.abs(f);f!=0&&(A.qp=0);A.Cr==-1&&f>0&&(A.Cr=aF>=0?eX()-aF:-1);A.Wn=B;return K};
|
|
HdL=function(A,L){K9(A.T,function(B){return B.U==L.U})||A.T.push(L)};
|
|
h3e=function(A){var L=hg(A.n9().N,1);return Br(A,L)};
|
|
Br=function(A,L,B){return L>=15E3?!0:A.cn?(B===void 0?0:B)?!0:A.V>0?L>=A.V/2:A.wT>0?L>=A.wT:!1:!1};
|
|
bde=function(A){var L=B2(A.Ic.Yb,2),B=A.s6.V,f=A.Ic,K=o3(A),V=Lt(K.U),J=Lt(K.T),R=Lt(f.volume),Z=B2(K.X,2),N=B2(K.qp,2),F=B2(f.Yb,2),D=B2(K.Vj,2),I=B2(K.wT,2);f=B2(f.s7,2);var d=A.Gf().clone().round();A=A.rX&&A.rX.V?(A.rX?A.rX.V:null).clone().round():null;K=TH(K,!1);return{scj:L,h7:B,xG:V,nm:J,HN:R,uy:Z,zO:N,Yb:F,Q3:D,EB:I,s7:f,position:d,RO:A,aZ:K}};
|
|
kyE=function(A,L){tTD(A.N,L,function(){return{scj:0,h7:void 0,xG:-1,nm:-1,HN:-1,uy:-1,zO:-1,Yb:-1,Q3:-1,EB:-1,s7:-1,position:void 0,RO:void 0,aZ:[]}});
|
|
A.N[L]=bde(A)};
|
|
tTD=function(A,L,B){for(var f=A.length;f<L+1;)A.push(B()),f++};
|
|
Kt=function(A,L,B){var f=A.Ng[L];if(f!=null)return f;f=T6S(A,L);var K=ls(ft,function(V){return V==L});
|
|
A=l7y(A,f,f,B,m46[ft[K]]);L=="fully_viewable_audible_half_duration_impression"&&(A.std="csm");return A};
|
|
VJ=function(A,L,B){var f=[L];if(A!=L||B!=L)f.unshift(A),f.push(B);return f};
|
|
l7y=function(A,L,B,f,K){if(A.g6)return{"if":0,vs:0};var V=A.Gf().clone().round(),J=A.rX?A.rX.V:null,R=V6(),Z=gF(),N=A.n9(),F=A.rX?A.rX.getName():"ns",D={};D["if"]=R.V?1:void 0;D.sdk=A.U?A.U:void 0;D.t=A.timeCreated;D.p=[V.top,V.left,V.bottom,V.right];V&&J&&!AD(J,V)&&(V=J.round(),D.cp=[V.top,V.left,V.bottom,V.right]);D.tos=sx(N.W,!1);D.mtos=TH(N);D.mcvt=N.Cr.V;D.ps=void 0;V=qi(N,eX(),A.l5());D.vht=V;D.mut=N.ql.V;D.a=Lt(A.Ic.volume);D.mv=Lt(N.T);D.fs=A.OV?1:0;D.ft=N.Wn.N;D.at=N.D.N;D.as=N.U>0?1:0;D.atos=
|
|
sx(N.N);D.ssb=sx(N.Nl,!1);D.amtos=n$Q(N.N,!1);D.uac=A.mH;D.vpt=N.V.N;F=="nio"&&(D.nio=1,D.avms="nio");D.gmm="4";D.gdr=Br(A,N.V.N,!0)?1:0;D.efpf=A.zV;if(F=="gsv"||F=="nis")F=A.rX,F.X>0&&(D.nnut=F.X);D.tcm=rpw(A);D.nmt=A.Ex;D.bt=A.JF;D.pst=A.Cr;D.vpaid=A.yj;D.dur=A.V;D.vmtime=A.Wn;D.is=A.s6.V;A.N.length>=1&&(D.i0=A.N[0].h7,D.a0=[A.N[0].HN],D.c0=[A.N[0].Yb],D.ss0=[A.N[0].s7],F=A.N[0].position,V=A.N[0].RO,D.p0=F?uC(F):void 0,F&&V&&!AD(V,F)&&(D.cp0=uC(V)));A.N.length>=2&&(D.i1=A.N[1].h7,D.a1=VJ(A.N[1].xG,
|
|
A.N[1].HN,A.N[1].nm),D.c1=VJ(A.N[1].uy,A.N[1].Yb,A.N[1].zO),D.ss1=VJ(A.N[1].Q3,A.N[1].s7,A.N[1].EB),F=A.N[1].position,V=A.N[1].RO,D.p1=F?uC(F):void 0,F&&V&&!AD(V,F)&&(D.cp1=uC(V)),D.mtos1=A.N[1].aZ);A.N.length>=3&&(D.i2=A.N[2].h7,D.a2=VJ(A.N[2].xG,A.N[2].HN,A.N[2].nm),D.c2=VJ(A.N[2].uy,A.N[2].Yb,A.N[2].zO),D.ss2=VJ(A.N[2].Q3,A.N[2].s7,A.N[2].EB),F=A.N[2].position,V=A.N[2].RO,D.p2=F?uC(F):void 0,F&&V&&!AD(V,F)&&(D.cp2=uC(V)),D.mtos2=A.N[2].aZ);A.N.length>=4&&(D.i3=A.N[3].h7,D.a3=VJ(A.N[3].xG,A.N[3].HN,
|
|
A.N[3].nm),D.c3=VJ(A.N[3].uy,A.N[3].Yb,A.N[3].zO),D.ss3=VJ(A.N[3].Q3,A.N[3].s7,A.N[3].EB),F=A.N[3].position,V=A.N[3].RO,D.p3=F?uC(F):void 0,F&&V&&!AD(V,F)&&(D.cp3=uC(V)),D.mtos3=A.N[3].aZ);D.cs=jr7(A.s6);L&&(D.ic=yp8(A.s6),D.dvpt=N.V.W,D.dvs=tg(N.W,.5),D.dfvs=tg(N.W,1),D.davs=tg(N.N,.5),D.dafvs=tg(N.N,1),B&&(N.V.W=0,zly(N.W),zly(N.N)),A.Ft()&&(D.dtos=N.ZM,D.dav=N.yj,D.dtoss=A.oJ+1,B&&(N.ZM=0,N.yj=0,A.oJ++)),D.dat=N.D.W,D.dft=N.Wn.W,B&&(N.D.W=0,N.Wn.W=0));D.ps=[R.D.width,R.D.height];D.bs=[aC(R.N),
|
|
R.N.getHeight()];D.scs=[R.U.width,R.U.height];D.dom=R.domain;A.Oo&&(D.vds=A.Oo);if(A.T.length>0||A.Zf)L=g.Kx(A.T),A.Zf&&L.push(A.Zf),D.pings=g.mn(L,function(I){return I.toString()});
|
|
L=g.mn(g.Mi(A.T,function(I){return I.T()}),function(I){return I.getId()});
|
|
ukk(L);D.ces=L;A.W&&(D.vmer=A.W);A.G&&(D.vmmk=A.G);A.ZM&&(D.vmiec=A.ZM);D.avms=A.rX?A.rX.getName():"ns";A.rX&&g.Xc(D,A.rX.q2());f?(D.c=B2(A.Ic.Yb,2),D.ss=B2(A.Ic.s7,2)):D.tth=eX()-Qrk;D.mc=B2(N.qp,2);D.nc=B2(N.X,2);D.mv=Lt(N.T);D.nv=Lt(N.U);D.lte=B2(A.XM,2);f=o3(A,K);TH(N);D.qmtos=TH(f);D.qnc=B2(f.X,2);D.qmv=Lt(f.T);D.qnv=Lt(f.U);D.qas=f.U>0?1:0;D.qi=A.Ve;D.avms||(D.avms="geo");D.psm=N.JF.N;D.psv=N.JF.getValue();D.psfv=N.cn.getValue();D.psa=N.sx.getValue();Z=NIe(Z.Zx);Z.length&&(D.veid=Z);A.D&&g.Xc(D,
|
|
N6D(A.D));D.avas=A.J5();D.vs=A.X8();D.co=Ci8(A);D.tm=N.S4;D.tu=N.Ys;return D};
|
|
T6S=function(A,L){if(g.zK(idw,L))return!0;var B=A.wB[L];return B!==void 0?(A.wB[L]=!0,!B):!1};
|
|
Ci8=function(A){var L=A.S4.toString(10).padStart(2,"0");L=""+A.jI+L;A.S4<99&&A.S4++;return L};
|
|
Xgk=function(){this.N={};var A=bA();J5(this,A,document);var L=$4C();try{if("1"==L){for(var B=A.parent;B!=A.top;B=B.parent)J5(this,B,B.document);J5(this,A.top,A.top.document)}}catch(f){}};
|
|
$4C=function(){var A=document.documentElement;try{if(!rK(bA().top))return"2";var L=[],B=bA(A.ownerDocument);for(A=B;A!=B.top;A=A.parent)if(A.frameElement)L.push(A.frameElement);else break;return L&&L.length!=0?"1":"0"}catch(f){return"2"}};
|
|
J5=function(A,L,B){lC(B,"mousedown",function(){return OdS(A)},301);
|
|
lC(L,"scroll",function(){return E3w(A)},302);
|
|
lC(B,"touchmove",function(){return cpw(A)},303);
|
|
lC(B,"mousemove",function(){return MTL(A)},304);
|
|
lC(B,"keydown",function(){return Y67(A)},305)};
|
|
OdS=function(A){g.H6(A.N,function(L){L.V>1E5||++L.V})};
|
|
E3w=function(A){g.H6(A.N,function(L){L.N>1E5||++L.N})};
|
|
cpw=function(A){g.H6(A.N,function(L){L.N>1E5||++L.N})};
|
|
Y67=function(A){g.H6(A.N,function(L){L.W>1E5||++L.W})};
|
|
MTL=function(A){g.H6(A.N,function(L){L.U>1E5||++L.U})};
|
|
U4L=function(){this.N=[];this.W=[]};
|
|
SO=function(A,L){return g.Pw(A.N,function(B){return B.Ve==L})};
|
|
WTk=function(A,L){return L?g.Pw(A.N,function(B){return B.q4.G$==L}):null};
|
|
v31=function(A,L){return g.Pw(A.W,function(B){return B.Mo()==2&&B.Ve==L})};
|
|
Zk=function(){var A=R3;return A.N.length==0?A.W:A.W.length==0?A.N:g.Bk(A.W,A.N)};
|
|
q6L=function(A,L){A=L.Mo()==1?A.N:A.W;var B=qX(A,function(f){return f==L});
|
|
return B!=-1?(A.splice(B,1),L.rX&&L.rX.unobserve(),L.dispose(),!0):!1};
|
|
PiS=function(A){var L=R3;if(q6L(L,A)){switch(A.Mo()){case 0:var B=function(){return null};
|
|
case 2:B=function(){return v31(L,A.Ve)};
|
|
break;case 1:B=function(){return SO(L,A.Ve)}}for(var f=B();f;f=B())q6L(L,f)}};
|
|
x4e=function(A){var L=R3;A=g.Mi(A,function(B){return!WTk(L,B.q4.G$)});
|
|
L.N.push.apply(L.N,g.x7(A))};
|
|
e3y=function(A){var L=[];g.yB(A,function(B){K9(R3.N,function(f){return f.q4.G$===B.q4.G$&&f.Ve===B.Ve})||(R3.N.push(B),L.push(B))})};
|
|
Nn=function(){this.N=this.W=null};
|
|
n37=function(A,L){function B(f,K){L(f,K)}
|
|
if(A.W==null)return!1;A.N=g.Pw(A.W,function(f){return f!=null&&f.SW()});
|
|
A.N&&(A.N.init(B)?CI6(A.N.N):L(A.N.N.TX(),A.N));return A.N!=null};
|
|
Fx=function(A){A=z3w(A);It.call(this,A.length?A[A.length-1]:new Zx(qo,0));this.V=A;this.W=null};
|
|
z3w=function(A){if(!A.length)return[];A=(0,g.Mi)(A,function(B){return B!=null&&B.j0()});
|
|
for(var L=1;L<A.length;L++)Ni(A[L-1],A[L]);return A};
|
|
Dk=function(A,L,B,f){Dx.call(this,A,L,B,f);this.qp=this.Wn=this.X=this.G=this.U=null};
|
|
dV=function(A){return A.U&&A.U.takeRecords?A.U.takeRecords():[]};
|
|
a7w=function(A){if(!A.element)return!1;var L=A.element,B=A.W.N.V,f=gF().N.N;A.U=new B.IntersectionObserver(yv(f,function(K){return I3(A,K)}),uL7);
|
|
f=yv(f,function(){A.U.unobserve(L);A.U.observe(L);I3(A,dV(A))});
|
|
B.ResizeObserver?(A.G=new B.ResizeObserver(f),A.G.observe(L)):B.MutationObserver&&(A.X=new g.rI.MutationObserver(f),A.X.observe(L,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));A.U.observe(L);I3(A,dV(A));return!0};
|
|
I3=function(A,L){try{if(L.length){A.Wn||(A.Wn=eX());var B=AdE(L),f=yO6(A.element,A.W.N.V),K=f.x,V=f.y;A.V=new uA(Math.round(V),Math.round(K)+B.boundingClientRect.width,Math.round(V)+B.boundingClientRect.height,Math.round(K));A.N=XXk(A,A.V);var J=tVQ(B.intersectionRect);A.T=Lv(J,A.V.left-J.left,A.V.top-J.top)}}catch(R){A.unobserve(),xs(299,R)}};
|
|
AdE=function(A){return Cv(A,function(L,B){return L.time>B.time?L:B},A[0])};
|
|
wV=function(A){A=A===void 0?qo:A;It.call(this,new Zx(A,2))};
|
|
pt=function(){var A=Lq0();Zx.call(this,qo.top,A,"geo")};
|
|
Lq0=function(){gF();var A=V6();return A.V||A.W?0:2};
|
|
obL=function(){};
|
|
yJ=function(){this.done=!1;this.N={yp:0,LB:0,PeF:0,Mf:0,hE:-1,K4:0,ao:0,Ga:0,vgx:0};this.D=null;this.T=!1;this.V=null;this.X=0;this.W=new Rt(this)};
|
|
gV=function(){var A=jO;A.T||(A.T=!0,BaC(A,function(){return A.U.apply(A,g.x7(g.pf.apply(0,arguments)))}),A.U())};
|
|
fZ8=function(){$$(obL);var A=$$(Nn);A.N!=null&&A.N.N?CI6(A.N.N):V6().update(qo)};
|
|
Gz=function(A,L,B){if(!A.done&&(A.W.cancel(),L.length!=0)){A.V=null;try{fZ8();var f=eX();gF().D=f;if($$(Nn).N!=null)for(var K=0;K<L.length;K++)JpE(L[K],f,B);for(f=0;f<L.length;f++)S6E(L[f]);++A.N.Mf}finally{B?g.yB(L,function(V){V.Ic.Yb=0}):A.W.schedule()}}};
|
|
BaC=function(A,L){if(!A.D){L=ql(142,L);Oz();var B;Jg.visibilityState?B="visibilitychange":Jg.mozVisibilityState?B="mozvisibilitychange":Jg.webkitVisibilityState&&(B="webkitvisibilitychange");B&&gK(Jg,B,L,{capture:!1})&&(A.D=L)}};
|
|
Kqy=function(){var A=$$(Nn);if(A.N!=null){var L=A.N;g.yB(Zk(),function(B){return KTC(B,L)})}};
|
|
V7v=function(A,L){A=A.X;zr&&(A+=L-up);return A};
|
|
Jd8=function(A){A=A===void 0?function(){return{}}:A;
|
|
Uw.gU="av-js";Ys.N=.01;jR6([function(L){var B=gF(),f={};f=(f.bin=B.W,f.type="error",f);B=Pk(B.Zx);if(!jO.V){var K=jO,V=qo.document,J=nC>=0?eX()-nC:-1,R=eX();K.N.hE==-1&&(J=R);var Z=V6(),N=gF(),F=Pk(N.Zx),D=Zk();try{if(D.length>0){var I=Z.N;I&&(F.bs=[aC(I),I.getHeight()]);var d=Z.D;d&&(F.ps=[d.width,d.height]);qo.screen&&(F.scs=[qo.screen.width,qo.screen.height])}else F.url=encodeURIComponent(qo.location.href.substring(0,512)),V.referrer&&(F.referrer=encodeURIComponent(V.referrer.substring(0,512)));
|
|
F.tt=J;F.pt=nC;F.bin=N.W;qo.google_osd_load_pub_page_exp!==void 0&&(F.olpp=qo.google_osd_load_pub_page_exp);F.deb=[1,K.N.yp,K.N.LB,K.N.Mf,K.N.hE,0,K.W.W,K.N.K4,K.N.ao,K.N.Ga,K.N.vgx,-1].join(";");F.tvt=V7v(K,R);Z.W&&(F.inapp=1);if(qo!==null&&qo!=qo.top){D.length>0&&(F.iframe_loc=encodeURIComponent(qo.location.href.substring(0,512)));var w=Z.X;F.is=[aC(w),w.getHeight()]}}catch(r){F.error=1}jO.V=F}I=g.is(jO.V);d=gF().N;qV(d.V,"prf")==1?(w=new pC,K=d.N,V=0,K.N>-1&&(V=K.V.N.now()-K.N),w=Cu(w,1,Ty(K.U+
|
|
V),0),K=d.N,w=Cu(w,5,Cd(K.N>-1?K.W+1:K.W),0),w=Cu(w,2,vg(d.W.N.V()),"0"),w=Cu(w,3,vg(d.W.N.W()),"0"),d=Cu(w,4,vg(d.W.N.N()),"0"),w={},d=(w.pf=g.Y$(d.V()),w)):d={};g.Xc(I,d);g.Xc(L,f,B,I,A())}])};
|
|
RKD=function(){var A=SGS||qo;if(!A)return"";var L=[];if(!A.location||!A.location.href)return"";L.push("url="+encodeURIComponent(A.location.href.substring(0,512)));A.document&&A.document.referrer&&L.push("referrer="+encodeURIComponent(A.document.referrer.substring(0,512)));return L.join("&")};
|
|
rV=function(){var A="youtube.player.web_20251202_20_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251202_20_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251202_20_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251202_20_RC00".match(/_(\d{8})_\d+_RC\d+$/),L;if(((L=A)==null?void 0:L.length)==2)return A[1];A="youtube.player.web_20251202_20_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var B;return((B=A)==null?void 0:B.length)==3?"20"+A[1]+A[2]:null};
|
|
Zuw=function(){return"av.default_js".includes("ima_html5_sdk")?{yz:"ima",HL:null}:"av.default_js".includes("ima_native_sdk")?{yz:"nima",HL:null}:"av.default_js".includes("admob-native-video-javascript")?{yz:"an",HL:null}:"youtube.player.web_20251202_20_RC00".includes("cast_js_sdk")?{yz:"cast",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("youtube.player.web")?{yz:"yw",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("outstream_web_client")?{yz:"out",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("drx_rewarded_web")?
|
|
{yz:"r",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("gam_native_web_video")?{yz:"n",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("admob_interstitial_video")?{yz:"int",HL:rV()}:{yz:"j",HL:null}};
|
|
h5=function(A,L){var B={sv:"968"};s3!==null&&(B.v=s3);B.cb=Na8;B.nas=R3.N.length;B.msg=A;L!==void 0&&(A=FqQ(L))&&(B.e=Hr[A]);return B};
|
|
bH=function(A){return zk(A,"custom_metric_viewable")};
|
|
FqQ=function(A){var L=bH(A)?"custom_metric_viewable":A.toLowerCase();return ls(ft,function(B){return B==L})};
|
|
D$y=function(){this.N=void 0;this.W=!1;this.V=0;this.U=-1;this.D="tos"};
|
|
wGS=function(A){try{var L=A.split(",");return L.length>g.bs(d$v).length?null:Cv(L,function(B,f){f=f.toLowerCase().split("=");if(f.length!=2||IZ8[f[0]]===void 0||!IZ8[f[0]](f[1]))throw Error("Entry ("+f[0]+", "+f[1]+") is invalid.");B[f[0]]=f[1];return B},{})}catch(B){return null}};
|
|
pGS=function(A,L){if(A.N==void 0)return 0;switch(A.D){case "mtos":return A.W?bC(L.N,A.N):bC(L.W,A.N);case "tos":return A.W?hg(L.N,A.N):hg(L.W,A.N)}return 0};
|
|
t5=function(A,L,B,f){P2.call(this,L,f);this.X=A;this.G=B};
|
|
ke=function(){};
|
|
Tz=function(A){P2.call(this,"fully_viewable_audible_half_duration_impression",A)};
|
|
$e=function(A){this.N=A};
|
|
Xx=function(A,L){P2.call(this,A,L)};
|
|
O3=function(A){x1.call(this,"measurable_impression",A)};
|
|
E3=function(){$e.apply(this,arguments)};
|
|
cr=function(A,L,B){zH.call(this,A,L,B)};
|
|
Mn=function(A){A=A===void 0?qo:A;It.call(this,new Zx(A,2))};
|
|
Ye=function(A,L,B){zH.call(this,A,L,B)};
|
|
U3=function(A){A=A===void 0?qo:A;It.call(this,new Zx(A,2))};
|
|
Wr=function(){Zx.call(this,qo,2,"mraid");this.JF=0;this.qp=this.Vj=!1;this.X=null;this.W=HvS(this.V);this.U.N=new uA(0,0,0,0);this.S4=!1};
|
|
vr=function(A,L,B){A.nC("addEventListener",L,B)};
|
|
GwE=function(A){gF().U=!!A.nC("isViewable");vr(A,"viewableChange",yd8);A.nC("getState")==="loading"?vr(A,"ready",jgk):gbE(A)};
|
|
gbE=function(A){typeof A.W.t8.AFMA_LIDAR==="string"?(A.Vj=!0,rdy(A)):(A.W.compatibility=3,A.X="nc",A.fail("w"))};
|
|
rdy=function(A){A.qp=!1;var L=qV(gF().Zx,"rmmt")==1,B=!!A.nC("isViewable");(L?!B:1)&&Oz().setTimeout(PI(524,function(){A.qp||(sgD(A),xs(540,Error()),A.X="mt",A.fail("w"))}),500);
|
|
Hu8(A);vr(A,A.W.t8.AFMA_LIDAR,hKy)};
|
|
Hu8=function(A){var L=qV(gF().Zx,"sneio")==1,B=A.W.t8.AFMA_LIDAR_EXP_1!==void 0,f=A.W.t8.AFMA_LIDAR_EXP_2!==void 0;(L=L&&f)&&(A.W.t8.AFMA_LIDAR_EXP_2=!0);B&&(A.W.t8.AFMA_LIDAR_EXP_1=!L)};
|
|
sgD=function(A){A.nC("removeEventListener",A.W.t8.AFMA_LIDAR,hKy);A.Vj=!1};
|
|
bue=function(A,L){if(A.nC("getState")==="loading")return new g.Sr(-1,-1);L=A.nC(L);if(!L)return new g.Sr(-1,-1);A=parseInt(L.width,10);L=parseInt(L.height,10);return isNaN(A)||isNaN(L)?new g.Sr(-1,-1):new g.Sr(A,L)};
|
|
jgk=function(){try{var A=$$(Wr);A.nC("removeEventListener","ready",jgk);gbE(A)}catch(L){xs(541,L)}};
|
|
hKy=function(A,L){try{var B=$$(Wr);B.qp=!0;var f=A?new uA(A.y,A.x+A.width,A.y+A.height,A.x):new uA(0,0,0,0);var K=eX(),V=Sq();var J=new Ag(K,V,B);J.N=f;J.volume=L;B.M2(J)}catch(R){xs(542,R)}};
|
|
yd8=function(A){var L=gF(),B=$$(Wr);A&&!L.U&&(L.U=!0,B.S4=!0,B.X&&B.fail("w",!0))};
|
|
qn=function(){this.isInitialized=!1;this.N=this.W=null;var A={};this.X=(A.start=this.TTT,A.firstquartile=this.DpL,A.midpoint=this.RFF,A.thirdquartile=this.jrs,A.complete=this.Upn,A.error=this.wns,A.pause=this.Pw,A.resume=this.tJ,A.skip=this.JFn,A.viewable_impression=this.R$,A.mute=this.G8,A.unmute=this.G8,A.fullscreen=this.M44,A.exitfullscreen=this.Zr4,A.fully_viewable_audible_half_duration_impression=this.R$,A.measurable_impression=this.R$,A.abandon=this.Pw,A.engagedview=this.R$,A.impression=this.R$,
|
|
A.creativeview=this.R$,A.progress=this.G8,A.custom_metric_viewable=this.R$,A.bufferstart=this.Pw,A.bufferfinish=this.tJ,A.audio_measurable=this.R$,A.audio_audible=this.R$,A);A={};this.G=(A.overlay_resize=this.Sxp,A.abandon=this.Rq,A.close=this.Rq,A.collapse=this.Rq,A.overlay_unmeasurable_impression=function(L){return Kt(L,"overlay_unmeasurable_impression",Sq())},A.overlay_viewable_immediate_impression=function(L){return Kt(L,"overlay_viewable_immediate_impression",Sq())},A.overlay_unviewable_impression=
|
|
function(L){return Kt(L,"overlay_unviewable_impression",Sq())},A.overlay_viewable_end_of_session_impression=function(L){return Kt(L,"overlay_viewable_end_of_session_impression",Sq())},A);
|
|
gF().W=3;t7v(this);this.V=null};
|
|
Pr=function(A,L,B,f){A=A.JG(null,f,!0,L);A.U=B;x4e([A]);return A};
|
|
kwD=function(A,L,B){fR7(L);var f=A.N;g.yB(L,function(K){var V=g.mn(K.criteria,function(J){var R=wGS(J);if(R==null)J=null;else if(J=new D$y,R.visible!=null&&(J.N=R.visible/100),R.audible!=null&&(J.W=R.audible==1),R.time!=null){var Z=R.timetype=="mtos"?"mtos":"tos",N=dXQ(R.time,"%")?"%":"ms";R=parseInt(R.time,10);N=="%"&&(R/=100);J.setTime(R,N,Z)}return J});
|
|
K9(V,function(J){return J==null})||HdL(B,new t5(K.id,K.event,V,f))})};
|
|
TaL=function(){var A=[],L=gF();A.push($$(pt));qV(L.Zx,"mvp_lv")&&A.push($$(Wr));L=[new Mn,new U3];L.push(new Fx(A));L.push(new wV(qo));return L};
|
|
lZ1=function(A){if(!A.isInitialized){A.isInitialized=!0;try{var L=eX(),B=gF(),f=V6();nC=L;B.V=79463069;A.W!=="o"&&(SGS=s8y(qo));if(YcS()){jO.N.LB=0;jO.N.hE=eX()-L;var K=TaL(),V=$$(Nn);V.W=K;n37(V,function(){xe()})?jO.done||(Kqy(),Ni(V.N.N,A),gV()):f.V?xe():gV()}else eO=!0}catch(J){throw R3.reset(),J;
|
|
}}};
|
|
zz=function(A){jO.W.cancel();nt=A;jO.done=!0};
|
|
uH=function(A){if(A.W)return A.W;var L=$$(Nn).N;if(L)switch(L.getName()){case "nis":A.W="n";break;case "gsv":A.W="m"}A.W||(A.W="h");return A.W};
|
|
a3=function(A,L,B){if(A.N==null)return L.Oo|=4,!1;A=m$v(A.N,B,L);L.Oo|=A;return A==0};
|
|
xe=function(){var A=[new wV(qo)],L=$$(Nn);L.W=A;n37(L,function(){zz("i")})?jO.done||(Kqy(),gV()):zz("i")};
|
|
QgC=function(A,L){if(!A.Uv){var B=Kt(A,"start",Sq());B=A.Lg.N(B).N;var f={id:"lidarv"};f.r=L;f.sv="968";s3!==null&&(f.v=s3);lp(B,function(K,V){return f[K]=K=="mtos"||K=="tos"?V:encodeURIComponent(V)});
|
|
L=RKD();lp(L,function(K,V){return f[K]=encodeURIComponent(V)});
|
|
L="//pagead2.googlesyndication.com/pagead/gen_204?"+y6(p9(new wH,f));v$k(L);A.Uv=!0}};
|
|
A9=function(A,L,B){Gz(jO,[A],!Sq());kyE(A,B);B!=4&&tTD(A.Vj,B,A.fU);return Kt(A,L,Sq())};
|
|
t7v=function(A){Jd8(function(){var L=Cqk();A.W!=null&&(L.sdk=A.W);var B=$$(Nn);B.N!=null&&(L.avms=B.N.getName());return L})};
|
|
iu8=function(A,L,B,f){var K=WTk(R3,B);K!==null&&K.Ve!==L&&(A.Q2(K),K=null);K||(L=A.JG(B,eX(),!1,L),R3.W.length==0&&(gF().V=79463069),e3y([L]),K=L,K.U=uH(A),f&&(K.sx=f));return K};
|
|
$$7=function(A,L){var B=A[L];B!==void 0&&B>0&&(A[L]=Math.floor(B*1E3))};
|
|
Cqk=function(){var A=V6(),L={},B={},f={};return Object.assign({},(L.sv="968",L),s3!==null&&(B.v=s3,B),(f["if"]=A.V?"1":"0",f.nas=String(R3.N.length),f))};
|
|
Lc=function(A){P2.call(this,"audio_audible",A)};
|
|
ox=function(A){x1.call(this,"audio_measurable",A)};
|
|
B3=function(){$e.apply(this,arguments)};
|
|
fc=function(){};
|
|
XGE=function(A){this.N=A};
|
|
m$v=function(A,L,B){A=A.W();if(typeof A==="function"){var f={};var K={};f=Object.assign({},s3!==null&&(f.v=s3,f),(K.sv="968",K.cb=Na8,K.e=Ouy(L),K));K=Kt(B,L,Sq());g.Xc(f,K);B.Ng[L]=K;f=B.Mo()==2?WnD(f).join("&"):B.Lg.N(f).N;try{return A(B.Ve,f,L),0}catch(V){return 2}}else return 1};
|
|
Ouy=function(A){var L=bH(A)?"custom_metric_viewable":A;A=ls(ft,function(B){return B==L});
|
|
return Hr[A]};
|
|
Kc=function(){qn.call(this);this.T=null;this.D=!1;this.U="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
|
|
Eb7=function(A,L,B){B=B.opt_configurable_tracking_events;A.N!=null&&Array.isArray(B)&&kwD(A,B,L)};
|
|
cdL=function(A,L,B){var f=SO(R3,L);f||(f=B.opt_nativeTime||-1,f=Pr(A,L,uH(A),f),B.opt_osdId&&(f.sx=B.opt_osdId));return f};
|
|
M7w=function(A,L,B){var f=SO(R3,L);f||(f=Pr(A,L,"n",B.opt_nativeTime||-1));return f};
|
|
YG7=function(A,L){var B=SO(R3,L);B||(B=Pr(A,L,"h",-1));return B};
|
|
U$E=function(A){gF();switch(uH(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};
|
|
qGE=function(A,L,B,f){B=B===void 0?{}:B;var K={};g.Xc(K,{opt_adElement:void 0,opt_fullscreen:void 0},B);var V=A.o9(L,B);B=V?V.Lg:A.fW();if(K.opt_bounds)return B.N(h5("ol",f));if(f!==void 0)if(FqQ(f)!==void 0)if(eO)A=h5("ue",f);else if(lZ1(A),nt=="i")A=h5("i",f),A["if"]=0;else if(L=A.o9(L,K)){b:{nt=="i"&&(L.g6=!0);V=K.opt_fullscreen;V!==void 0&&iC(L,!!V);var J;if(V=!V6().W)(V=AF(g.fa(),"CrKey")&&!(AF(g.fa(),"CrKey")&&AF(g.fa(),"SmartSpeaker"))||AF(g.fa(),"PlayStation")||AF(g.fa(),"Roku")||TKD()||AF(g.fa(),
|
|
"Xbox"))||(V=g.fa(),V=AF(V,"AppleTV")||AF(V,"Apple TV")||AF(V,"CFNetwork")||AF(V,"tvOS")),V||(V=g.fa(),V=AF(V,"sdk_google_atv_x86")||AF(V,"Android TV")),V=!V;V&&(Oz(),V=GV(Jg)===0);if(J=V){switch(L.Mo()){case 1:QgC(L,"pv");break;case 2:A.XQ(L)}zz("pv")}V=f.toLowerCase();if(J=!J)J=qV(gF().Zx,"ssmol")&&V==="loaded"?!1:g.zK(WqL,V);if(J&&L.Rn==0){nt!="i"&&(jO.done=!1);J=K!==void 0?K.opt_nativeTime:void 0;aF=J=typeof J==="number"?J:eX();L.Ap=!0;var R=Sq();L.Rn=1;L.wB={};L.wB.start=!1;L.wB.firstquartile=
|
|
!1;L.wB.midpoint=!1;L.wB.thirdquartile=!1;L.wB.complete=!1;L.wB.resume=!1;L.wB.pause=!1;L.wB.skip=!1;L.wB.mute=!1;L.wB.unmute=!1;L.wB.viewable_impression=!1;L.wB.measurable_impression=!1;L.wB.fully_viewable_audible_half_duration_impression=!1;L.wB.fullscreen=!1;L.wB.exitfullscreen=!1;L.oJ=0;R||(L.n9().G=J);Gz(jO,[L],!R)}(J=L.Ik[V])&&Ux(L.s6,J);qV(gF().Zx,"fmd")||g.zK(vb1,V)&&L.Zf&&L.Zf.W(L,null);switch(L.Mo()){case 1:var Z=bH(V)?A.X.custom_metric_viewable:A.X[V];break;case 2:Z=A.G[V]}if(Z&&(f=Z.call(A,
|
|
L,K,f),qV(gF().Zx,"fmd")&&g.zK(vb1,V)&&L.Zf&&L.Zf.W(L,null),f!==void 0)){K=h5(void 0,V);g.Xc(K,f);f=K;break b}f=void 0}L.Rn==3&&A.Q2(L);A=f}else A=h5("nf",f);else A=void 0;else eO?A=h5("ue"):V?(A=h5(),g.Xc(A,l7y(V,!0,!1,!1))):A=h5("nf");return typeof A==="string"?B.N():B.N(A)};
|
|
Pqk=function(A,L){L&&(A.U=L)};
|
|
x$6=function(A){var L={};return L.viewability=A.N,L.googleViewability=A.W,L};
|
|
eKQ=function(A,L,B){B=B===void 0?{}:B;A=qGE($$(Kc),L,B,A);return x$6(A)};
|
|
VU=function(A){var L=g.pf.apply(1,arguments).filter(Boolean).join("&");if(!L)return A;var B=A.match(/[?&]adurl=/);return B?A.slice(0,B.index+1)+L+"&"+A.slice(B.index+1):A+(A.indexOf("?")<0?"?":"&")+L};
|
|
J9=function(A,L){return L?"&"+A+"="+encodeURIComponent(L):""};
|
|
nbL=function(A){var L=A.url;A=A.zRs;this.W=L;this.U=A;this.V=(new Date).getTime()-17040672E5;this.N={};for(var B=/[?&]([^&=]+)=([^&]*)/g;A=B.exec(L);)this.N[A[1]]=A[2]};
|
|
zK8=function(A){A=A.U;if(!A)return"";var L=J9("uap",A.platform)+J9("uapv",A.platformVersion)+J9("uafv",A.uaFullVersion)+J9("uaa",A.architecture)+J9("uam",A.model)+J9("uab",A.bitness);A.fullVersionList&&(L+="&uafvl="+encodeURIComponent(A.fullVersionList.map(function(B){return encodeURIComponent(B.brand)+";"+encodeURIComponent(B.version)}).join("|")));
|
|
A.wow64!=null&&(L+="&uaw="+Number(A.wow64));return L.slice(1)};
|
|
AsE=function(A,L,B,f,K){var V=window;var J=J===void 0?!1:J;var R;B?R=(J===void 0?0:J)?"//ep1.adtrafficquality.google/bg/"+P5(B)+".js":"//pagead2.googlesyndication.com/bg/"+P5(B)+".js":R="";J=J===void 0?!1:J;B=V.document;var Z={};L&&(Z._scs_=L);Z._bgu_=R;Z._bgp_=f;Z._li_="v_h.3.0.0.0";K&&(Z._upb_=K);(L=V.GoogleTyFxhY)&&typeof L.push=="function"||(L=V.GoogleTyFxhY=[]);L.push(Z);L=pG(B).createElement("SCRIPT");L.type="text/javascript";L.async=!0;A=(J===void 0?0:J)?g.d_(u3L,P5(A)+".js"):g.d_(aZL,P5(A)+
|
|
".js");g.ET(L,A);(V=(V.GoogleTyFxhYEET||{})[L.src])?V():B.getElementsByTagName("head")[0].appendChild(L)};
|
|
LVk=function(){try{var A,L;return!!((A=window)==null?0:(L=A.top)==null?0:L.location.href)&&!1}catch(B){return!0}};
|
|
var j0L=function(A){return k7[S[2]](this,24,A)};
|
|
SW=function(A,L,B){B=B===void 0?Error():B;var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=A;L+=":";B instanceof Error?(this.message=L+B.message,this.stack=B.stack||""):(this.message=L+String(B),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
|
|
Za=function(){var A=oE1();A=A===void 0?"bevasrsg":A;return new Promise(function(L){var B=window===window.top?window:LVk()?window:window.top,f=B[A],K;((K=f)==null?0:K.bevasrs)?L(new Rx(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),B[A]=f),f.nqfbel.push(function(V){L(new Rx(V))}))})};
|
|
Biy=function(A){var L={c:A.WL,e:A.PH,mc:A.Ra,me:A.Sl};A.Ct&&(L.co={c:A.Ct.yT,a:A.Ct.m0,s:A.Ct.dC});return L};
|
|
NO=function(A){g.Y.call(this);this.wpc=A};
|
|
Rx=function(A){g.Y.call(this);var L=this;this.Bo=A;this.V="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.W=void 0;this.Bl=this.Bo.p;this.U=this.f7.bind(this);this.addOnDisposeCallback(function(){return void fne(L)})};
|
|
KVe=function(A){var L;return g.c(function(B){if(B.N==1){if(!A.Bo.wpc)throw new SW(30,"NWA");return A.N?B.return(A.N):g.X(B,A.Bo.wpc(),2)}L=B.W;A.N=new NO(L);return B.return(A.N)})};
|
|
fne=function(A){A.W!==void 0&&(A.V.forEach(function(L){var B;(B=A.W)==null||B.removeEventListener(L,A.U)}),A.W=void 0)};
|
|
V1E=function(A){var L=L===void 0?53:L;var B=[];q$(A,Fu,6).forEach(function(f){g.nu(f,2)<=L&&B.push(g.nu(f,1))});
|
|
return B};
|
|
Jse=function(A){var L=L===void 0?53:L;var B=[];q$(A,Fu,6).forEach(function(f){g.nu(f,2)>L&&B.push(g.nu(f,1))});
|
|
return B};
|
|
S0D=function(A){A.then(function(){},function(){})};
|
|
Da=function(){g.Y.apply(this,arguments);this.W=1};
|
|
dm=function(A){return{fieldType:2,fieldName:A}};
|
|
g.Ix=function(A){return{fieldType:3,fieldName:A}};
|
|
R4C=function(A){this.N=A;A.QQ("/client_streamz/bg/frs",g.Ix("mk"))};
|
|
ZH8=function(A){this.N=A;A.QQ("/client_streamz/bg/wrl",g.Ix("mn"),dm("ac"),dm("sc"),g.Ix("rk"),g.Ix("mk"))};
|
|
Niv=function(A){this.N=A;A.gR("/client_streamz/bg/ec",g.Ix("en"),g.Ix("mk"))};
|
|
FVE=function(A){this.N=A;A.QQ("/client_streamz/bg/el",g.Ix("en"),g.Ix("mk"))};
|
|
DhL=function(A){this.N=A;A.gR("/client_streamz/bg/cec",dm("ec"),g.Ix("mk"))};
|
|
dh6=function(A){this.N=A;A.gR("/client_streamz/bg/po/csc",dm("cs"),g.Ix("mk"))};
|
|
In0=function(A){this.N=A;A.gR("/client_streamz/bg/po/ctav",g.Ix("av"),g.Ix("mk"))};
|
|
wSE=function(A){this.N=A;A.gR("/client_streamz/bg/po/cwsc",g.Ix("su"),g.Ix("mk"))};
|
|
pSv=function(A){this.yf=N$(A)};
|
|
ysL=function(A,L){return uN8(A,L,rFw)};
|
|
wm=function(A){this.yf=N$(A)};
|
|
pc=function(A){this.yf=N$(A)};
|
|
yU=function(A){this.yf=N$(A)};
|
|
jW=function(A){this.yf=N$(A)};
|
|
gm=function(A){this.yf=N$(A)};
|
|
G1=function(A){this.yf=N$(A)};
|
|
jKS=function(A){this.yf=N$(A)};
|
|
rsD=function(A){var L=new G1;L=BS(L,1,A.W);var B=gED(A);L=uN8(L,B,QyE);B=[];for(var f=[],K=g.m(A.N.keys()),V=K.next();!V.done;V=K.next())f.push(V.value.split(","));for(K=0;K<f.length;K++){V=f[K];for(var J=A.U,R=A.JB(V)||[],Z=[],N=0;N<R.length;N++){var F=R[N],D=F&&F.N;F=new pc;switch(J){case 3:D=Number(D);Number.isFinite(D)&&EG(F,1,rm,vg(D));break;case 2:EG(F,2,rm,Ty(Number(D)))}Z.push(F)}J=Z;for(R=0;R<J.length;R++){Z=J[R];N=new yU;Z=PG(N,pc,2,Z);N=[];F=GI0(A);for(D=0;D<F.length;D++){var I=F[D],d=
|
|
V[D],w=new wm;switch(I){case 3:EG(w,1,sa,nd(String(d)));break;case 2:I=Number(d);Number.isFinite(I)&&EG(w,2,sa,Cd(I));break;case 1:EG(w,3,sa,li(d==="true"))}N.push(w)}xb(Z,wm,1,N);B.push(Z)}}xb(L,yU,4,B);return L};
|
|
sK1=function(A){if(!A)return"";if(/^about:(?:blank|srcdoc)$/.test(A))return window.origin||"";A.indexOf("blob:")===0&&(A=A.substring(5));A=A.split("#")[0].split("?")[0];A=A.toLowerCase();A.indexOf("//")==0&&(A=window.location.protocol+A);/^[\w\-]*:\/\//.test(A)||(A=window.location.href);var L=A.substring(A.indexOf("://")+3),B=L.indexOf("/");B!=-1&&(L=L.substring(0,B));B=A.substring(0,A.indexOf("://"));if(!B)throw Error("URI is missing protocol: "+A);if(B!=="http"&&B!=="https"&&B!=="chrome-extension"&&
|
|
B!=="moz-extension"&&B!=="file"&&B!=="android-app"&&B!=="chrome-search"&&B!=="chrome-untrusted"&&B!=="chrome"&&B!=="app"&&B!=="devtools")throw Error("Invalid URI scheme in origin: "+B);A="";var f=L.indexOf(":");if(f!=-1){var K=L.substring(f+1);L=L.substring(0,f);if(B==="http"&&K!=="80"||B==="https"&&K!=="443")A=":"+K}return B+"://"+L+A};
|
|
HH8=function(){function A(){K[0]=1732584193;K[1]=4023233417;K[2]=2562383102;K[3]=271733878;K[4]=3285377520;F=N=0}
|
|
function L(D){for(var I=J,d=0;d<64;d+=4)I[d/4]=D[d]<<24|D[d+1]<<16|D[d+2]<<8|D[d+3];for(d=16;d<80;d++)D=I[d-3]^I[d-8]^I[d-14]^I[d-16],I[d]=(D<<1|D>>>31)&4294967295;D=K[0];var w=K[1],r=K[2],h=K[3],Q=K[4];for(d=0;d<80;d++){if(d<40)if(d<20){var l=h^w&(r^h);var C=1518500249}else l=w^r^h,C=1859775393;else d<60?(l=w&r|h&(w|r),C=2400959708):(l=w^r^h,C=3395469782);l=((D<<5|D>>>27)&4294967295)+l+Q+C+I[d]&4294967295;Q=h;h=r;r=(w<<30|w>>>2)&4294967295;w=D;D=l}K[0]=K[0]+D&4294967295;K[1]=K[1]+w&4294967295;K[2]=
|
|
K[2]+r&4294967295;K[3]=K[3]+h&4294967295;K[4]=K[4]+Q&4294967295}
|
|
function B(D,I){if(typeof D==="string"){D=unescape(encodeURIComponent(D));for(var d=[],w=0,r=D.length;w<r;++w)d.push(D.charCodeAt(w));D=d}I||(I=D.length);d=0;if(N==0)for(;d+64<I;)L(D.slice(d,d+64)),d+=64,F+=64;for(;d<I;)if(V[N++]=D[d++],F++,N==64)for(N=0,L(V);d+64<I;)L(D.slice(d,d+64)),d+=64,F+=64}
|
|
function f(){var D=[],I=F*8;N<56?B(R,56-N):B(R,64-(N-56));for(var d=63;d>=56;d--)V[d]=I&255,I>>>=8;L(V);for(d=I=0;d<5;d++)for(var w=24;w>=0;w-=8)D[I++]=K[d]>>w&255;return D}
|
|
for(var K=[],V=[],J=[],R=[128],Z=1;Z<64;++Z)R[Z]=0;var N,F;A();return{reset:A,update:B,digest:f,Va:function(){for(var D=f(),I="",d=0;d<D.length;d++)I+="0123456789ABCDEF".charAt(Math.floor(D[d]/16))+"0123456789ABCDEF".charAt(D[d]%16);return I}}};
|
|
bH1=function(A,L,B){var f=String(g.rI.location.href);return f&&A&&L?[L,h4e(sK1(f),A,B||null)].join(" "):null};
|
|
h4e=function(A,L,B){var f=[],K=[];if((Array.isArray(B)?2:1)==1)return K=[L,A],g.yB(f,function(R){K.push(R)}),t1E(K.join(" "));
|
|
var V=[],J=[];g.yB(B,function(R){J.push(R.key);V.push(R.value)});
|
|
B=Math.floor((new Date).getTime()/1E3);K=V.length==0?[B,L,A]:[V.join(":"),B,L,A];g.yB(f,function(R){K.push(R)});
|
|
A=t1E(K.join(" "));A=[B,A];J.length==0||A.push(J.join(""));return A.join("_")};
|
|
t1E=function(A){var L=HH8();L.update(A);return L.Va().toLowerCase()};
|
|
H3=function(A){this.N=A||{cookie:""}};
|
|
h9=function(A){A=(A.N.cookie||"").split(";");for(var L=[],B=[],f,K,V=0;V<A.length;V++)K=La(A[V]),f=K.indexOf("="),f==-1?(L.push(""),B.push(K)):(L.push(K.substring(0,f)),B.push(K.substring(f+1)));return{keys:L,values:B}};
|
|
kIw=function(){var A=g.rI.__SAPISID||g.rI.__APISID||g.rI.__3PSAPISID||g.rI.__1PSAPISID||g.rI.__OVERRIDE_SID;if(A)return!0;typeof document!=="undefined"&&(A=new H3(document),A=A.get("SAPISID")||A.get("APISID")||A.get("__Secure-3PAPISID")||A.get("__Secure-1PAPISID"));return!!A};
|
|
Ti7=function(A,L,B,f){(A=g.rI[A])||typeof document==="undefined"||(A=(new H3(document)).get(L));return A?bH1(A,B,f):null};
|
|
lnw=function(A){var L=sK1(g.rI==null?void 0:g.rI.location.href),B=[];if(kIw()){L=L.indexOf("https:")==0||L.indexOf("chrome-extension:")==0||L.indexOf("chrome-untrusted://new-tab-page")==0||L.indexOf("moz-extension:")==0;var f=L?g.rI.__SAPISID:g.rI.__APISID;f||typeof document==="undefined"||(f=new H3(document),f=f.get(L?"SAPISID":"APISID")||f.get("__Secure-3PAPISID"));(f=f?bH1(f,L?"SAPISIDHASH":"APISIDHASH",A):null)&&B.push(f);L&&((L=Ti7("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",A))&&B.push(L),
|
|
(A=Ti7("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",A))&&B.push(A))}return B.length==0?null:B.join(" ")};
|
|
bm=function(){};
|
|
t9=function(A){this.yf=N$(A)};
|
|
kZ=function(A,L){this.intervalMs=A;this.callback=L;this.enabled=!1;this.N=function(){return g.Ed()};
|
|
this.W=this.N()};
|
|
T1=function(A){this.yf=N$(A)};
|
|
lm=function(A){this.yf=N$(A)};
|
|
g.mQ=function(A){this.yf=N$(A)};
|
|
QU=function(A){this.yf=N$(A)};
|
|
Cc=function(A){this.yf=N$(A)};
|
|
mhD=function(A){xb(im,QU,1,A)};
|
|
$Z=function(A){this.yf=N$(A)};
|
|
CW1=function(A,L){L=L===void 0?QKL:L;if(!Xu){var B;A=(B=A.navigator)==null?void 0:B.userAgentData;if(!A||typeof A.getHighEntropyValues!=="function"||A.brands&&typeof A.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));mhD((A.brands||[]).map(function(K){var V=new QU;V=BS(V,1,K.brand);return BS(V,2,K.version)}));
|
|
typeof A.mobile==="boolean"&&ra(im,2,li(A.mobile));Xu=A.getHighEntropyValues(L)}var f=new Set(L);return Xu.then(function(K){var V=im.clone();f.has("platform")&&BS(V,3,K.platform);f.has("platformVersion")&&BS(V,4,K.platformVersion);f.has("architecture")&&BS(V,5,K.architecture);f.has("model")&&BS(V,6,K.model);f.has("uaFullVersion")&&BS(V,7,K.uaFullVersion);return V.PV()}).catch(function(){return im.PV()})};
|
|
Oa=function(A){this.yf=N$(A)};
|
|
iH1=function(A){return KH(A,1,1)};
|
|
$hk=function(A){this.yf=N$(A)};
|
|
Ea=function(A){this.yf=N$(A,4)};
|
|
c3=function(A){this.yf=N$(A,36)};
|
|
MO=function(A){this.yf=N$(A,19)};
|
|
Ua=function(A,L){this.mf=L=L===void 0?!1:L;this.uach=this.locale=null;this.W=0;this.isFinal=!1;this.N=new MO;Number.isInteger(A)&&this.N.KK(A);L||(this.locale=document.documentElement.getAttribute("lang"));YZ(this,new Oa)};
|
|
YZ=function(A,L){PG(A.N,Oa,1,L);ag(L,1)||iH1(L);A.mf||(L=W3(A),uq(L,5)||BS(L,5,A.locale));A.uach&&(L=W3(A),WG(L,Cc,9)||PG(L,Cc,9,A.uach))};
|
|
XSk=function(A,L){A.W=L};
|
|
EE6=function(A){var L=L===void 0?QKL:L;var B=A.mf?void 0:bA();B?CW1(B,L).then(function(f){A.uach=OHD(f!=null?f:"[]");f=W3(A);PG(f,Cc,9,A.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
|
|
W3=function(A){var L=WG(A.N,Oa,1);L||(L=new Oa,YZ(A,L));A=L;L=WG(A,$Z,11);L||(L=new $Z,PG(A,$Z,11,L));return L};
|
|
g.v3=function(A,L,B,f){this.U=A;this.D=L;this.N=this.V=A;this.T=B||0;this.X=f||2};
|
|
g.qO=function(A){A.N=Math.min(A.D,A.N*A.X);A.V=Math.min(A.D,A.N+(A.T?Math.round(A.T*(Math.random()-.5)*2*A.N):0));A.W++};
|
|
IF=function(A){this.yf=N$(A,8)};
|
|
v97=function(A){this.yf=N$(A)};
|
|
eW=function(A){g.Y.call(this);var L=this;this.componentId="";this.N=[];this.Ys="";this.pageId=null;this.Ex=this.ZM=-1;this.X=this.experimentIds=null;this.T=this.U=0;this.yj=null;this.qp=this.Vj=0;this.Cr=1;this.timeoutMillis=0;this.wT=!1;this.logSource=A.logSource;this.DH=A.DH||function(){};
|
|
this.V=new Ua(A.logSource,A.mf);this.network=A.network||null;this.je=A.je||null;this.G=A.nuM||null;this.sessionIndex=A.sessionIndex||null;this.Yq=A.Yq||!1;this.logger=null;this.withCredentials=!A.cH;this.mf=A.mf||!1;this.Wn=!this.mf&&!!bA()&&!!bA().navigator&&bA().navigator.sendBeacon!==void 0;this.S4=typeof URLSearchParams!=="undefined"&&!!(new URL(P3())).searchParams&&!!(new URL(P3())).searchParams.set;var B=iH1(new Oa);YZ(this.V,B);this.D=new g.v3(1E4,3E5,.1);A=csy(this,A.Js);this.W=new kZ(this.D.getValue(),
|
|
A);this.JF=new kZ(6E5,A);this.Yq||this.JF.start();this.mf||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){xZ(L);var f;(f=L.yj)==null||f.flush()}}),document.addEventListener("pagehide",function(){xZ(L);
|
|
var f;(f=L.yj)==null||f.flush()}))};
|
|
csy=function(A,L){return A.S4?L?function(){L().then(function(){A.flush()})}:function(){A.flush()}:function(){}};
|
|
M18=function(A){A.G||(A.G=P3());try{return(new URL(A.G)).toString()}catch(L){return(new URL(A.G,bA().location.origin)).toString()}};
|
|
nc=function(A,L,B){A.yj&&A.yj.gI(L,B)};
|
|
Y0E=function(A,L,B){B=B===void 0?null:B;var f=f===void 0?A.withCredentials:f;var K={},V=new URL(M18(A));B&&(K.Authorization=B);A.sessionIndex&&(K["X-Goog-AuthUser"]=A.sessionIndex,V.searchParams.set("authuser",A.sessionIndex));A.pageId&&(Object.defineProperty(K,"X-Goog-PageId",{value:A.pageId}),V.searchParams.set("pageId",A.pageId));return{url:V.toString(),body:L,Ta:1,requestHeaders:K,requestType:"POST",withCredentials:f,timeoutMillis:A.timeoutMillis}};
|
|
xZ=function(A){A.V.isFinal=!0;A.flush();A.V.isFinal=!1};
|
|
WVy=function(A){Uhe(A,function(L,B){L=new URL(L);L.searchParams.set("format","json");var f=!1;try{f=bA().navigator.sendBeacon(L.toString(),B.PV())}catch(K){}f||(A.Wn=!1);return f})};
|
|
Uhe=function(A,L){if(A.N.length!==0){var B=new URL(M18(A));B.searchParams.delete("format");var f=A.DH();f&&B.searchParams.set("auth",f);B.searchParams.set("authuser",A.sessionIndex||"0");for(f=0;f<10&&A.N.length;++f){var K=A.N.slice(0,32),V=A.V.build(K,A.U,A.T,A.je,A.Vj,A.qp);if(!L(B.toString(),V)){++A.T;break}A.U=0;A.T=0;A.Vj=0;A.qp=0;A.N=A.N.slice(K.length)}A.W.enabled&&A.W.stop()}};
|
|
P3=function(){return"https://play.google.com/log?format=json&hasfast=true"};
|
|
z1=function(){this.P1=typeof AbortController!=="undefined"};
|
|
um=function(A,L){L=L===void 0?"0":L;g.Y.call(this);this.logSource=A;this.sessionIndex=L;this.Gg="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.V=!1;this.network=null;this.componentId="";this.N=this.je=null;this.W=!1;this.pageId=null};
|
|
vEk=function(A,L){A.buildLabel=L;return A};
|
|
q08=function(A,L){A.network=L;return A};
|
|
PWS=function(A,L){A.N=L};
|
|
xh8=function(A){A.W=!0;return A};
|
|
ax=function(A,L,B,f,K,V,J){A=A===void 0?-1:A;L=L===void 0?"":L;B=B===void 0?"":B;f=f===void 0?!1:f;K=K===void 0?"":K;g.Y.call(this);this.logSource=A;this.componentId=L;V?L=V:(A=new um(A,"0"),A.componentId=L,g.W(this,A),B!==""&&(A.Gg=B),f&&(A.V=!0),K&&vEk(A,K),J&&q08(A,J),L=A.build());this.N=L};
|
|
e4D=function(A){this.N=A};
|
|
AU=function(A,L,B){this.W=A;this.U=L;this.fields=B||[];this.N=new Map};
|
|
GI0=function(A){return A.fields.map(function(L){return L.fieldType})};
|
|
gED=function(A){return A.fields.map(function(L){return L.fieldName})};
|
|
o$=function(A,L){AU.call(this,A,3,L)};
|
|
BD=function(A,L){AU.call(this,A,2,L)};
|
|
g.f8=function(A,L){this.type=A;this.currentTarget=this.target=L;this.defaultPrevented=this.W=!1};
|
|
K8=function(A,L){g.f8.call(this,A?A.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.N=null;A&&this.init(A,L)};
|
|
VX=function(A){return!(!A||!A[nED])};
|
|
usv=function(A,L,B,f,K){this.listener=A;this.proxy=null;this.src=L;this.type=B;this.capture=!!f;this.handler=K;this.key=++z4D;this.removed=this.Ut=!1};
|
|
JU=function(A){A.removed=!0;A.listener=null;A.proxy=null;A.src=null;A.handler=null};
|
|
Sa=function(A){this.src=A;this.listeners={};this.N=0};
|
|
g.R$=function(A,L){var B=L.type;B in A.listeners&&g.Lx(A.listeners[B],L)&&(JU(L),A.listeners[B].length==0&&(delete A.listeners[B],A.N--))};
|
|
Zm=function(A,L,B,f){for(var K=0;K<A.length;++K){var V=A[K];if(!V.removed&&V.listener==L&&V.capture==!!B&&V.handler==f)return K}return-1};
|
|
g.Ft=function(A,L,B,f,K){if(f&&f.once)return NB(A,L,B,f,K);if(Array.isArray(L)){for(var V=0;V<L.length;V++)g.Ft(A,L[V],B,f,K);return null}B=Dm(B);return VX(A)?A.listen(L,B,g.QK(f)?!!f.capture:!!f,K):anC(A,L,B,!1,f,K)};
|
|
anC=function(A,L,B,f,K,V){if(!L)throw Error("Invalid event type");var J=g.QK(K)?!!K.capture:!!K,R=db(A);R||(A[I$]=R=new Sa(A));B=R.add(L,B,f,J,V);if(B.proxy)return B;f=AWk();B.proxy=f;f.src=A;f.listener=B;if(A.addEventListener)L2Q||(K=J),K===void 0&&(K=!1),A.addEventListener(L.toString(),f,K);else if(A.attachEvent)A.attachEvent(os1(L.toString()),f);else if(A.addListener&&A.removeListener)A.addListener(f);else throw Error("addEventListener and attachEvent are unavailable.");BFw++;return B};
|
|
AWk=function(){function A(B){return L.call(A.src,A.listener,B)}
|
|
var L=fX7;return A};
|
|
NB=function(A,L,B,f,K){if(Array.isArray(L)){for(var V=0;V<L.length;V++)NB(A,L[V],B,f,K);return null}B=Dm(B);return VX(A)?A.Hc(L,B,g.QK(f)?!!f.capture:!!f,K):anC(A,L,B,!0,f,K)};
|
|
K2E=function(A,L,B,f,K){if(Array.isArray(L))for(var V=0;V<L.length;V++)K2E(A,L[V],B,f,K);else f=g.QK(f)?!!f.capture:!!f,B=Dm(B),VX(A)?A.J$(L,B,f,K):A&&(A=db(A))&&(L=A.Iz(L,B,f,K))&&wb(L)};
|
|
wb=function(A){if(typeof A!=="number"&&A&&!A.removed){var L=A.src;if(VX(L))g.R$(L.CX,A);else{var B=A.type,f=A.proxy;L.removeEventListener?L.removeEventListener(B,f,A.capture):L.detachEvent?L.detachEvent(os1(B),f):L.addListener&&L.removeListener&&L.removeListener(f);BFw--;(B=db(L))?(g.R$(B,A),B.N==0&&(B.src=null,L[I$]=null)):JU(A)}}};
|
|
os1=function(A){return A in p8?p8[A]:p8[A]="on"+A};
|
|
fX7=function(A,L){if(A.removed)A=!0;else{L=new K8(L,this);var B=A.listener,f=A.handler||A.src;A.Ut&&wb(A);A=B.call(f,L)}return A};
|
|
db=function(A){A=A[I$];return A instanceof Sa?A:null};
|
|
Dm=function(A){if(typeof A==="function")return A;A[yX]||(A[yX]=function(L){return A.handleEvent(L)});
|
|
return A[yX]};
|
|
g.gb=function(){g.Y.call(this);this.CX=new Sa(this);this.Nc=this;this.OM=null};
|
|
G9=function(A,L,B,f){L=A.CX.listeners[String(L)];if(!L)return!0;L=L.concat();for(var K=!0,V=0;V<L.length;++V){var J=L[V];if(J&&!J.removed&&J.capture==B){var R=J.listener,Z=J.handler||J.src;J.Ut&&g.R$(A.CX,J);K=R.call(Z,f)!==!1&&K}}return K&&!f.defaultPrevented};
|
|
rb=function(A,L){this.V=A;this.U=L;this.W=0;this.N=null};
|
|
VX7=function(A,L){A.U(L);A.W<100&&(A.W++,L.next=A.N,A.N=L)};
|
|
hU=function(A){A=sE(A);HD||(HD=JWC());HD(A)};
|
|
JWC=function(){if(typeof MessageChannel!=="undefined"){var A=new MessageChannel,L={},B=L;A.port1.onmessage=function(){if(L.next!==void 0){L=L.next;var f=L.hs;L.hs=null;f()}};
|
|
return function(f){B.next={hs:f};B=B.next;A.port2.postMessage(0)}}return function(f){g.rI.setTimeout(f,0)}};
|
|
bX=function(){this.W=this.N=null};
|
|
tU=function(){this.next=this.scope=this.N=null};
|
|
g.lX=function(A,L){kA||Swk();T9||(kA(),T9=!0);Rtk.add(A,L)};
|
|
Swk=function(){var A=Promise.resolve(void 0);kA=function(){A.then(ZCD)}};
|
|
ZCD=function(){for(var A;A=Rtk.remove();){try{A.N.call(A.scope)}catch(L){cX(L)}VX7(NFE,A)}T9=!1};
|
|
g.QX=function(A){this.N=0;this.X=void 0;this.U=this.W=this.V=null;this.D=this.T=!1;if(A!=g.x9)try{var L=this;A.call(void 0,function(B){mN(L,2,B)},function(B){mN(L,3,B)})}catch(B){mN(this,3,B)}};
|
|
F26=function(){this.next=this.context=this.W=this.V=this.N=null;this.U=!1};
|
|
C8=function(A,L,B){var f=DlE.get();f.V=A;f.W=L;f.context=B;return f};
|
|
g.iX=function(A){if(A instanceof g.QX)return A;var L=new g.QX(g.x9);mN(L,2,A);return L};
|
|
$A=function(A){return new g.QX(function(L,B){B(A)})};
|
|
g.IXS=function(A,L,B){dl6(A,L,B,null)||g.lX(g.Od(L,A))};
|
|
wIS=function(A){return new g.QX(function(L,B){A.length||L(void 0);for(var f,K=0;K<A.length;K++)f=A[K],g.IXS(f,L,B)})};
|
|
pI7=function(A,L,B,f){Xt(A,C8(L||g.x9,B||null,f))};
|
|
g.OE=function(A,L){L=sE(L);L=C8(L,L);L.U=!0;Xt(A,L);return A};
|
|
yWQ=function(A,L){if(A.N==0)if(A.V){var B=A.V;if(B.W){for(var f=0,K=null,V=null,J=B.W;J&&(J.U||(f++,J.N==A&&(K=J),!(K&&f>1)));J=J.next)K||(V=J);K&&(B.N==0&&f==1?yWQ(B,L):(V?(f=V,f.next==B.U&&(B.U=f),f.next=f.next.next):jFQ(B),gsv(B,K,3,L)))}A.V=null}else mN(A,3,L)};
|
|
Xt=function(A,L){A.W||A.N!=2&&A.N!=3||GrS(A);A.U?A.U.next=L:A.W=L;A.U=L};
|
|
rWv=function(A,L,B,f){var K=C8(null,null,null);K.N=new g.QX(function(V,J){K.V=L?function(R){try{var Z=L.call(f,R);V(Z)}catch(N){J(N)}}:V;
|
|
K.W=B?function(R){try{var Z=B.call(f,R);Z===void 0&&R instanceof EE?J(R):V(Z)}catch(N){J(N)}}:J});
|
|
K.N.V=A;Xt(A,K);return K.N};
|
|
mN=function(A,L,B){A.N==0&&(A===B&&(L=3,B=new TypeError("Promise cannot resolve to itself")),A.N=1,dl6(B,A.DVp,A.MgF,A)||(A.X=B,A.N=L,A.V=null,GrS(A),L!=3||B instanceof EE||sFQ(A,B)))};
|
|
dl6=function(A,L,B,f){if(A instanceof g.QX)return pI7(A,L,B,f),!0;if(A)try{var K=!!A.$goog_Thenable}catch(J){K=!1}else K=!1;if(K)return A.then(L,B,f),!0;if(g.QK(A))try{var V=A.then;if(typeof V==="function")return HC7(A,V,L,B,f),!0}catch(J){return B.call(f,J),!0}return!1};
|
|
HC7=function(A,L,B,f,K){function V(Z){R||(R=!0,f.call(K,Z))}
|
|
function J(Z){R||(R=!0,B.call(K,Z))}
|
|
var R=!1;try{L.call(A,J,V)}catch(Z){V(Z)}};
|
|
GrS=function(A){A.T||(A.T=!0,g.lX(A.pG,A))};
|
|
jFQ=function(A){var L=null;A.W&&(L=A.W,A.W=L.next,L.next=null);A.W||(A.U=null);return L};
|
|
gsv=function(A,L,B,f){if(B==3&&L.W&&!L.U)for(;A&&A.D;A=A.V)A.D=!1;if(L.N)L.N.V=null,ht1(L,B,f);else try{L.U?L.V.call(L.context):ht1(L,B,f)}catch(K){bCC.call(null,K)}VX7(DlE,L)};
|
|
ht1=function(A,L,B){L==2?A.V.call(A.context,B):A.W&&A.W.call(A.context,B)};
|
|
sFQ=function(A,L){A.D=!0;g.lX(function(){A.D&&bCC.call(null,L)})};
|
|
EE=function(A){Ww.call(this,A)};
|
|
g.cD=function(A,L){g.gb.call(this);this.LV=A||1;this.Rs=L||g.rI;this.gj=(0,g.X9)(this.y2L,this);this.h3=g.Ed()};
|
|
g.MB=function(A,L,B){if(typeof A==="function")B&&(A=(0,g.X9)(A,B));else if(A&&typeof A.handleEvent=="function")A=(0,g.X9)(A.handleEvent,A);else throw Error("Invalid listener argument");return Number(L)>2147483647?-1:g.rI.setTimeout(A,L||0)};
|
|
YA=function(A,L){var B=null;return(new g.QX(function(f,K){B=g.MB(function(){f(L)},A);
|
|
B==-1&&K(Error("Failed to schedule timer."))})).c9(function(f){g.rI.clearTimeout(B);
|
|
throw f;})};
|
|
g.UE=function(A){g.Y.call(this);this.X=A;this.U=0;this.V=100;this.D=!1;this.W=new Map;this.T=new Set;this.flushInterval=3E4;this.N=new g.cD(this.flushInterval);this.N.listen("tick",this.Gc,!1,this);g.W(this,this.N)};
|
|
tXE=function(A){A.N.enabled||A.N.start();A.U++;A.U>=A.V&&A.Gc()};
|
|
kr6=function(A,L){return A.T.has(L)?void 0:A.W.get(L)};
|
|
TFy=function(A){for(var L=0;L<A.length;L++)A[L].clear()};
|
|
lXy=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}};
|
|
mlC=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""}};
|
|
WD=function(A,L,B){B=B===void 0?{}:B;L=Error.call(this,L);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=A;this.metadata=B;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
|
|
g.vD=function(A){return(new QFD).PV(A)};
|
|
QFD=function(){};
|
|
qB=function(A,L,B){if(L==null)B.push("null");else{if(typeof L=="object"){if(Array.isArray(L)){var f=L;L=f.length;B.push("[");for(var K="",V=0;V<L;V++)B.push(K),qB(A,f[V],B),K=",";B.push("]");return}if(L instanceof String||L instanceof Number||L instanceof Boolean)L=L.valueOf();else{B.push("{");K="";for(f in L)Object.prototype.hasOwnProperty.call(L,f)&&(V=L[f],typeof V!="function"&&(B.push(K),CpQ(f,B),B.push(":"),qB(A,V,B),K=","));B.push("}");return}}switch(typeof L){case "string":CpQ(L,B);break;case "number":B.push(isFinite(L)&&
|
|
!isNaN(L)?String(L):"null");break;case "boolean":B.push(String(L));break;case "function":B.push("null");break;default:throw Error("Unknown type: "+typeof L);}}};
|
|
CpQ=function(A,L){L.push('"',A.replace(iCy,function(B){var f=$le[B];f||(f="\\u"+(B.charCodeAt(0)|65536).toString(16).slice(1),$le[B]=f);return f}),'"')};
|
|
XI6=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"}};
|
|
OCQ=function(){};
|
|
PD=function(){};
|
|
g.xA=function(A){g.gb.call(this);this.headers=new Map;this.wT=A||null;this.V=!1;this.N=null;this.G="";this.W=0;this.U="";this.D=this.Vj=this.yj=this.qp=!1;this.Wn=0;this.T=null;this.ZM="";this.X=!1};
|
|
cWe=function(A,L,B,f,K,V,J){var R=new g.xA;Es6.push(R);L&&R.listen("complete",L);R.Hc("ready",R.hX);V&&(R.Wn=Math.max(0,V));J&&(R.X=J);R.send(A,B,f,K)};
|
|
YwC=function(A,L){A.V=!1;A.N&&(A.D=!0,A.N.abort(),A.D=!1);A.U=L;A.W=5;MXv(A);ea(A)};
|
|
MXv=function(A){A.qp||(A.qp=!0,A.dispatchEvent("complete"),A.dispatchEvent("error"))};
|
|
Ul0=function(A){if(A.V&&typeof n8!="undefined")if(A.yj&&g.z9(A)==4)setTimeout(A.lN.bind(A),0);else if(A.dispatchEvent("readystatechange"),A.isComplete()){A.getStatus();A.V=!1;try{if(uX(A))A.dispatchEvent("complete"),A.dispatchEvent("success");else{A.W=6;try{var L=g.z9(A)>2?A.N.statusText:""}catch(B){L=""}A.U=L+" ["+A.getStatus()+"]";MXv(A)}}finally{ea(A)}}};
|
|
ea=function(A,L){if(A.N){A.T&&(clearTimeout(A.T),A.T=null);var B=A.N;A.N=null;L||A.dispatchEvent("ready");try{B.onreadystatechange=null}catch(f){}}};
|
|
uX=function(A){var L=A.getStatus();a:switch(L){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var B=!0;break a;default:B=!1}if(!B){if(L=L===0)A=g.bp(String(A.G))[1]||null,!A&&g.rI.self&&g.rI.self.location&&(A=g.rI.self.location.protocol.slice(0,-1)),L=!W2D.test(A?A.toLowerCase():"");B=L}return B};
|
|
g.z9=function(A){return A.N?A.N.readyState:0};
|
|
g.a$=function(A){try{return A.N?A.N.responseText:""}catch(L){return""}};
|
|
g.Au=function(A){try{if(!A.N)return null;if("response"in A.N)return A.N.response;switch(A.ZM){case "":case "text":return A.N.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in A.N)return A.N.mozResponseArrayBuffer}return null}catch(L){return null}};
|
|
g.vse=function(A){var L={};A=(A.N&&g.z9(A)>=2?A.N.getAllResponseHeaders()||"":"").split("\r\n");for(var B=0;B<A.length;B++)if(!g.us(A[B])){var f=UX6(A[B]),K=f[0];f=f[1];if(typeof f==="string"){f=f.trim();var V=L[K]||[];L[K]=V;V.push(f)}}return sc(L,function(J){return J.join(", ")})};
|
|
g.L2=function(A,L){return A.N?A.N.getResponseHeader(L):null};
|
|
oQ=function(){};
|
|
f2=function(A,L){this.logger=A;this.event=L;this.startTime=Bc()};
|
|
K2=function(){Da.apply(this,arguments);this.GV={JY:function(){return[]}}};
|
|
Vq=function(A,L,B){var f=Bc();L=L();A.pZ(B,Bc()-f);return L};
|
|
Ju=function(){K2.apply(this,arguments)};
|
|
SA=function(A){K2.call(this);var L=this;this.logger=A;this.GV={orT:function(){return L.logger},
|
|
JY:function(){return L.logger.GV.JY()}};
|
|
this.addOnDisposeCallback(function(){return void L.logger.dispose()})};
|
|
qww=function(A,L,B,f){A=xh8(q08(vEk(new um(1828,"0"),A),new oQ)).cH();L.length&&PWS(A,ysL(new pSv,L));f!==void 0&&(A.Gg=f);var K=new ax(1828,"","",!1,"",A.build());g.W(K,A);var V=new g.UE({flush:function(J){try{K.flush(J)}catch(R){B(R)}}});
|
|
V.addOnDisposeCallback(function(){setTimeout(function(){try{V.Gc()}finally{K.dispose()}})});
|
|
V.V=1E5;V.flushInterval=3E4;V.N.setInterval(3E4);return V};
|
|
PpS=function(A,L){g.Y.call(this);var B=this;this.callback=A;this.W=L;this.N=-L;this.addOnDisposeCallback(function(){return void clearTimeout(B.timer)})};
|
|
var y1k=function(A){return jE[S[2]](this,5,A)};
|
|
xlQ=function(A){if(A.timer===void 0){var L=Math.max(0,A.N+A.W-Bc());A.timer=setTimeout(function(){try{A.callback()}finally{A.N=Bc(),A.timer=void 0}},L)}};
|
|
RQ=function(A,L){K2.call(this);this.metrics=A;this.NP=L};
|
|
ZH=function(A,L){L=L===void 0?[]:L;var B={NP:A.NP||"_",t5:A.t5||[],iX:A.iX|0,Gg:A.Gg,kK:A.kK||function(){},
|
|
CL:A.CL||function(V,J){return qww(V,J,B.kK,B.Gg)}},f=B.CL("53",B.t5.concat(L));
|
|
RQ.call(this,{C01:new R4C(f),errorCount:new DhL(f),eventCount:new Niv(f),ud:new FVE(f),pIs:new ZH8(f),QcL:new dh6(f),Xm:new In0(f),eIr:new wSE(f)},B.NP);var K=this;this.GV={JY:function(){return K.options.t5.concat(K.U).sort(function(V,J){return V-J})}};
|
|
this.options=B;this.service=f;this.V=!A.CL;this.N=new PpS(function(){return void K.service.Gc()},B.iX);
|
|
this.addOnDisposeCallback(function(){K.N.dispose();K.V&&K.service.dispose()});
|
|
g.I8(this.U=L.slice())};
|
|
Bc=function(){var A,L,B;return(B=(A=globalThis.performance)==null?void 0:(L=A.now)==null?void 0:L.call(A))!=null?B:Date.now()};
|
|
NW=function(A){this.yf=N$(A)};
|
|
Fm=function(A){this.yf=N$(A)};
|
|
DH=function(A){this.yf=N$(A,0,DH.messageId)};
|
|
Fu=function(A){this.yf=N$(A)};
|
|
ds=function(A){this.yf=N$(A)};
|
|
g.IQ=function(){var A=this;this.promise=new Promise(function(L,B){A.resolve=L;A.reject=B})};
|
|
et7=function(A,L){if(A.disable)return new Ju;L=L?V1E(L):[];A={NP:A.NP,t5:A.eB,iX:A.zTj,Gg:A.Gg,kK:A.kK,CL:A.CL};L=L===void 0?[]:L;return new ZH(A,L)};
|
|
ws=function(A){function L(w,r,h,Q){Promise.resolve().then(function(){Z.done();R.eL();R.dispose();J.resolve({w9:w,EgL:r,ky4:h,CiL:Q})})}
|
|
function B(w,r,h,Q){if(!f.logger.TL()){var l="k";r?l="h":h&&(l="u");l!=="k"?Q!==0&&(f.logger.zB(l),f.logger.pZ(l,w)):f.W<=0?(f.logger.zB(l),f.logger.pZ(l,w),f.W=Math.floor(Math.random()*200)):f.W--}}
|
|
g.Y.call(this);var f=this;this.W=Math.floor(Math.random()*200);this.N=new ds;if("challenge"in A&&ns8(A.challenge)){var K=uq(A.challenge,4,void 0,Z7);var V=uq(A.challenge,5,void 0,Z7);uq(A.challenge,7,void 0,Z7)&&(this.N=ztL(uq(A.challenge,7,void 0,Z7)))}else K=A.program,V=A.globalName;this.addOnDisposeCallback(function(){var w,r,h;return g.c(function(Q){if(Q.N==1)return g.X(Q,f.V,2);w=Q.W;r=w.EgL;(h=r)==null||h();g.VK(Q)})});
|
|
this.logger=et7(A.iz||{},this.N);g.W(this,this.logger);var J=new g.IQ;this.V=J.promise;this.logger.zB("t");var R=this.logger.share(),Z=new f2(R,"t");if(!g.rI[V])throw this.logger.M4(25),Error("EGOU");if(!g.rI[V].a)throw this.logger.M4(26),Error("ELIU");try{var N=g.rI[V].a;V=[];for(var F=[],D=V1E(this.N),I=0;I<D.length;I++)V.push(D[I]),F.push(1);var d=Jse(this.N);for(D=0;D<d.length;D++)V.push(d[D]),F.push(2);this.U=g.m(N(K,L,!0,A.BO,B,[V,F],uq(this.N,5),!1)).next().value;this.Bl=J.promise.then(function(){})}catch(w){throw this.logger.M4(28),
|
|
w;
|
|
}};
|
|
uIk=function(A){if(!A)return null;A=LH(A,4);return A===null||A===void 0?null:jS(A)};
|
|
p2=function(){this.W={};this.N=null};
|
|
yq=function(){p2.instance||(p2.instance=new p2);return p2.instance};
|
|
Ag0=function(A,L){return aX0(A,WG(L,NW,1,Z7),WG(L,Fm,2,Z7),uq(L,3,void 0,Z7))};
|
|
aX0=function(A,L,B,f){if(!L&&!B)return Promise.resolve();if(!f)return Ll7(L,B);var K;(K=A.W)[f]||(K[f]=new Promise(function(V,J){Ll7(L,B).then(function(){A.N=f;V()},function(R){delete A.W[f];
|
|
J(R)})}));
|
|
return A.W[f]};
|
|
Ll7=function(A,L){return L?o1e(L):A?BHk(A):Promise.resolve()};
|
|
o1e=function(A){return new Promise(function(L,B){var f=g.TO("SCRIPT"),K=uIk(A);g.ET(f,K);f.onload=function(){g.$9(f);L()};
|
|
f.onerror=function(){g.$9(f);B(Error("EWLS"))};
|
|
(g.jr("HEAD")[0]||document.documentElement).appendChild(f)})};
|
|
BHk=function(A){return new Promise(function(L){var B=g.TO("SCRIPT");if(A){var f=LH(A,6);f=f===null||f===void 0?null:t5C(f)}else f=null;B.textContent=XN(f);OT(B);(g.jr("HEAD")[0]||document.documentElement).appendChild(B);g.$9(B);L()})};
|
|
jA=function(A){this.yf=N$(A)};
|
|
fxk=function(A,L){return fH(A,1,L)};
|
|
Kl1=function(A,L){return fH(A,2,L)};
|
|
VqQ=function(A,L){return fH(A,3,L)};
|
|
gs=function(A){this.yf=N$(A)};
|
|
GX=function(A,L,B){this.client=A;this.requestKey=L;this.N=B};
|
|
SxC=function(A,L,B,f,K){var V,J,R,Z,N;return g.c(function(F){if(F.N==1)return V=VqQ(Kl1(fxk(new jA,A.requestKey),L),B),J=A.N(),g.X(F,f.VO("c",A.requestKey,K,A.client.create(V,J)),2);R=F.W;Z=uI(QP(R,2));if(Z.length)return F.return(Vq(f,function(){for(var D=new Uint8Array(Z.length),I=0;I<Z.length;I++)D[I]=Z[I]+97;if(g.rI.TextDecoder)D=(new TextDecoder).decode(D);else if(D.length<=8192)D=String.fromCharCode.apply(null,D);else{I="";for(var d=0;d<D.length;d+=8192)I+=String.fromCharCode.apply(null,Array.prototype.slice.call(D,
|
|
d,d+8192));D=I}return JgD(D)},"U"));
|
|
N=WG(R,DH,1);if(!N)throw Error("Missing field");return F.return(N)})};
|
|
NH0=function(A,L,B,f){var K,V;return g.c(function(J){K=A.N();var R=new gs;R=fH(R,1,A.requestKey);V=fH(R,2,L);R=J.return;var Z=B.VO,N=A.requestKey,F=A.client;var D=F.N;F=F.W+"/$rpc/google.internal.waa.v1.Waa/GenerateIT";var I=V,d=K||{},w=Rr1,r=void 0;r=r===void 0?{}:r;D=Z9v(D,F,I,d,w,r);return R.call(J,Z.call(B,"g",N,f,D))})};
|
|
FlL=function(A,L,B,f,K){return A instanceof GX?SxC(A,f,K,L,B):SxC(A,f,K,new Ju,0)};
|
|
rs=function(A){g.Y.call(this);var L=this;this.options=A;this.T=new g.IQ;this.Bl=this.T.promise;this.D=new g.IQ;this.G=1;this.V=new g.IQ;this.U=[];this.isPaused=!1;this.Z3=A.Z3||function(){};
|
|
this.logger=new SA(et7(A.iz||{}));DiL(this,A.Ni,A.oAr,A.BMn,A.Uhj,Object.assign({},diE,A.S7||{}));this.addOnDisposeCallback(function(){return void Ix7(L)})};
|
|
p2e=function(A){var L;return g.c(function(B){if(A.TL())throw Error("Already disposed");(L=A.N)==null||w27(L);return g.X(B,A.V.promise,0)})};
|
|
Ix7=function(A){A.X=Error("Cancelled by dispose");A.D.resolve();S0D(A.T.promise);A.T.reject(Error("Cancelled by dispose"));A.logger.dispose();Promise.all(A.U).then(function(){var B;return g.c(function(f){(B=A.W)==null||B.dispose();A.W=void 0;g.VK(f)})});
|
|
A.U=[];var L;(L=A.N)==null||w27(L);S0D(A.V.promise);A.V.reject(Error("Cancelled by dispose"))};
|
|
ygD=function(A,L){var B=A.Z3;A.Z3=function(){B();L()}};
|
|
jtC=function(A,L){A.TL()||(A.W=L,A.logger.update(L.xc()),A.D.resolve(),A.T.resolve(void 0),A.Z3())};
|
|
g1S=function(A,L){L&&(Promise.all(A.U).then(function(){return void L.dispose()}),A.U=[])};
|
|
sk=function(A,L){A.G=L;var B,f;(f=(B=A.options).nDj)==null||f.call(B,L)};
|
|
GHw=function(A){A.TL()||(A.V.resolve(),A.V=new g.IQ)};
|
|
DiL=function(A,L,B,f,K,V){f=f===void 0?yq():f;K=K===void 0?Promise.resolve(void 0):K;var J,R,Z,N,F,D,I,d,w,r,h,Q;g.c(function(l){switch(l.N){case 1:return g.X(l,0,3);case 3:R=null;if(!J){l.Ux(6);break}sk(A,7);g.S5(l,7);return g.X(l,Hc(J.snapshot({}),V.v7,function(){return Promise.resolve("E:CTO")}),9);
|
|
case 9:R=l.W;g.ZR(l,6);break;case 7:g.NX(l),R="E:UCE";case 6:Z=void 0,N=J?V.fG:V.CG,F=new g.v3(N,V.sD,V.xa,V.At),D=1;case 10:if(!(D<=V.maxAttempts)){l.Ux(12);break}if(D===1){l.Ux(13);break}sk(A,0);A.N=new hu(F.getValue(),V.dS,V.wu);return g.X(l,A.N.promise,14);case 14:I=l.W,A.N=void 0,I===1?(D=1,F.reset()):g.qO(F);case 13:g.S5(l,15);d=void 0;if(B){d=B;l.Ux(17);break}sk(A,5);w=f.N;return g.X(l,Hc(FlL(L,A.logger,D,w,R),V.OD,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
|
|
case 18:d=l.W;case 17:return sk(A,3),g.X(l,Hc(Ag0(f,d),V.lgL,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
|
|
case 19:return sk(A,8),g.X(l,K,20);case 20:return r=new ws({challenge:d,iz:A.options.iz,BO:A.options.BO}),g.X(l,Hc(r.Bl,V.r1T,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
|
|
case 21:Z=r;l.Ux(12);break;case 15:h=g.NX(l),A.handleError(h),GHw(A);case 11:D++;l.Ux(10);break;case 12:if(A.TL()){l.Ux(5);break}Z&&(B=void 0,g1S(A,J),J=Z,jtC(A,Z),GHw(A));sk(A,2);A.N=new hu(V.s0T,V.dS,V.wu);A.isPaused&&A.N.pause();return g.X(l,A.N.promise,22);case 22:A.N=void 0;if(A.TL()){l.Ux(5);break}l.Ux(3);break;case 5:(Q=J)==null||Q.dispose(),g.VK(l)}})};
|
|
Hc=function(A,L,B){var f,K=new Promise(function(V){f=setTimeout(V,L)});
|
|
return Promise.race([A.finally(function(){return void clearTimeout(f)}),
|
|
K.then(B)])};
|
|
hu=function(A,L,B){var f=this;this.endTimeMs=0;this.N=null;this.isPaused=!1;this.tick=function(){if(!f.isPaused){var K=f.endTimeMs-Date.now();K<=f.W?(f.N=null,f.xv(0)):f.N=setTimeout(f.tick,Math.min(K,f.dS))}};
|
|
this.dS=L;this.W=B;this.promise=new Promise(function(K){f.xv=K});
|
|
rgE(this,A)};
|
|
rgE=function(A,L){A.endTimeMs=Date.now()+L;A.tick()};
|
|
w27=function(A){b0(A);A.endTimeMs=0;A.isPaused=!1;A.xv(1)};
|
|
b0=function(A){A.N&&(clearTimeout(A.N),A.N=null)};
|
|
stL=function(A,L){try{return globalThis.sessionStorage.setItem(A,L),!0}catch(B){return!1}};
|
|
tu=function(A,L,B,f){L=L===void 0?0:L;B=B===void 0?A.length:B;var K=0;for(f&&(K=tu(f));L<B;L++)f=typeof A==="string"?A.charCodeAt(L):A[L],K=H90(31,K)+f|0;return K};
|
|
hr7=function(A,L){return[tu(A,0,A.length>>1,L),tu(A,A.length>>1)]};
|
|
b97=function(A){var L=g.m(hr7(A,kM));A=L.next().value;L=L.next().value;return A.toString(16)+L.toString(16)};
|
|
tqw=function(A,L){var B=hr7(L);A=new Uint32Array(A.buffer);L=A[0];var f=g.m(B);B=f.next().value;f=f.next().value;for(var K=1;K<A.length;K+=2){for(var V=L,J=K,R=B,Z=f,N=0;N<22;N++)J=J>>>8|J<<24,J+=V|0,J^=R+38293,V=V<<3|V>>>29,V^=J,Z=Z>>>8|Z<<24,Z+=R|0,Z^=N+38293,R=R<<3|R>>>29,R^=Z;V=[V,J];A[K]^=V[0];K+1<A.length&&(A[K+1]^=V[1])}};
|
|
kHy=function(A,L,B,f,K){var V=(4-(kM.length+B.length)%4)%4,J=new Uint8Array(4+V+kM.length+4+B.length),R=new DataView(J.buffer),Z=0;R.setUint32(Z,Math.random()*4294967295);Z=Z+4+V;J.set(kM,Z);Z+=kM.length;R.setUint32(Z,K);J.set(B,Z+4);tqw(J,f);return A.h1(L,function(N){return void globalThis.sessionStorage.removeItem(N)})?stL(L,g.Y$(J))?"s":"t":"i"};
|
|
THS=function(A,L){var B=globalThis.sessionStorage.getItem(A);if(!B)return["m"];try{var f=WX(B);tqw(f,L)}catch(K){return globalThis.sessionStorage.removeItem(A),["c"]}for(L=4;L<7&&f[L]===0;)L++;for(B=0;B<kM.length;B++)if(f[L++]!==kM[B])return globalThis.sessionStorage.removeItem(A),["d"];B=(new DataView(f.buffer)).getUint32(L);return Math.floor(Date.now()/1E3)>=B?(globalThis.sessionStorage.removeItem(A),["e"]):["a",new Uint8Array(f.buffer,L+4)]};
|
|
TX=function(A,L,B){B=B===void 0?[]:B;this.maxItems=A;this.N=L===void 0?0:L;this.W=B};
|
|
lxe=function(A){var L=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!L)return new TX(A);var B=L.split(",");if(B.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new TX(A);L=B.slice(1);L.length===1&&L[0]===""&&(L=[]);B=Number(B[0]);return isNaN(B)||B<0||B>L.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new TX(A)):new TX(A,B,L)};
|
|
miS=function(A,L){this.logger=L;try{var B=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){B=!1}B&&(this.index=lxe(A))};
|
|
Qt8=function(A,L,B,f,K){var V=A.index?Vq(A.logger,function(){return kHy(A.index,b97(L),B,f,K)},"W"):"u";
|
|
A.logger.iy(V)};
|
|
CCQ=function(A,L,B){var f=g.m(A.index?Vq(A.logger,function(){return THS(b97(L),B)},"R"):["u"]),K=f.next().value;
|
|
f=f.next().value;A.logger.jc(K);return f};
|
|
X2y=function(A){function L(){B-=f;B-=K;B^=K>>>13;f-=K;f-=B;f^=B<<8;K-=B;K-=f;K^=f>>>13;B-=f;B-=K;B^=K>>>12;f-=K;f-=B;f^=B<<16;K-=B;K-=f;K^=f>>>5;B-=f;B-=K;B^=K>>>3;f-=K;f-=B;f^=B<<10;K-=B;K-=f;K^=f>>>15}
|
|
A=i9L(A);for(var B=2654435769,f=2654435769,K=314159265,V=A.length,J=V,R=0;J>=12;J-=12,R+=12)B+=l0(A,R),f+=l0(A,R+4),K+=l0(A,R+8),L();K+=V;switch(J){case 11:K+=A[R+10]<<24;case 10:K+=A[R+9]<<16;case 9:K+=A[R+8]<<8;case 8:f+=A[R+7]<<24;case 7:f+=A[R+6]<<16;case 6:f+=A[R+5]<<8;case 5:f+=A[R+4];case 4:B+=A[R+3]<<24;case 3:B+=A[R+2]<<16;case 2:B+=A[R+1]<<8;case 1:B+=A[R+0]}L();return $iL.toString(K)};
|
|
i9L=function(A){for(var L=[],B=0;B<A.length;B++)L.push(A.charCodeAt(B));return L};
|
|
l0=function(A,L){return A[L+0]+(A[L+1]<<8)+(A[L+2]<<16)+(A[L+3]<<24)};
|
|
m7=function(A){g.Y.call(this);this.logger=A;this.V=new g.IQ};
|
|
Qq=function(A,L){var B=setTimeout(function(){A.V.resolve()},L);
|
|
A.addOnDisposeCallback(function(){return void clearTimeout(B)})};
|
|
C2=function(A,L,B,f){return Vq(A.logger,function(){return B?A.Mu(L,f):A.d6(L,f)},A.N)};
|
|
i0=function(A,L,B,f){m7.call(this,A);this.U=L;this.T=B;this.N="m";this.W="x";this.D=0;Qq(this,f)};
|
|
$M=function(A,L,B){m7.call(this,A);this.U=L;this.N="f";this.W="z";Qq(this,B)};
|
|
Xm=function(A,L,B){m7.call(this,A);this.U=L;this.N="w";this.W="z";Qq(this,B)};
|
|
Ok=function(A,L){m7.call(this,A);this.error=L;this.N="e";this.W="y"};
|
|
O9e=function(A,L){var B=(L(A.error.message)+":"+L(A.error.stack)).substring(0,2048);L=B.length+1;B=Ek(B);var f=new Uint8Array(4+B.length);f.set([42,L&127|128,L>>7,A.error.code]);f.set(B,4);return f};
|
|
cc=function(A,L,B){m7.call(this,A);this.U=L;this.clientState=B;this.N="S";this.W="q"};
|
|
Ek=function(A){return globalThis.TextEncoder?(new TextEncoder).encode(A):g.Ma(A)};
|
|
E1e=function(A,L,B){return A instanceof GX?NH0(A,B,L,1):A.Ix(B)};
|
|
YM=function(A){g.Y.call(this);var L=this;this.V=new g.IQ;this.U=0;this.W=void 0;this.state=2;this.Bo=A.Bo;this.Ni=A.Ni;this.S7=Object.assign({},cgk,A.S7||{});this.logger=A.Bo.xc();var B;this.onError=(B=A.onError)!=null?B:function(){};
|
|
this.bZ=A.bZ||!1;if(MqQ(A)){var f=this.Bo;this.D=function(){return p2e(f).catch(function(J){J=L.reportError(new SW(L.N?20:32,"TRG:Disposed",J));L.W=J;var R;(R=L.N)==null||R.dispose();L.N=void 0;L.V.reject(J)})};
|
|
ygD(f,function(){return void MW(L)});
|
|
f.G===2&&MW(this)}else this.D=A.ra4,MW(this);var K=this.logger.share();K.zB("o");var V=new f2(K,"o");this.V.promise.then(function(){V.done();K.eL();K.dispose()},function(){return void K.dispose()});
|
|
this.addOnDisposeCallback(function(){L.N?(L.N.dispose(),L.N=void 0):L.W?L.logger.eL():(L.W=L.reportError(new SW(32,"TNP:Disposed")),L.logger.eL(),L.V.reject(L.W))});
|
|
g.W(this,this.logger)};
|
|
Yxy=function(A,L){if(!(L instanceof SW))if(L instanceof WD){var B=Error(L.toString());B.stack=L.stack;L=new SW(11,"EBH:Error",B)}else L=new SW(12,"BSO:Unknown",L);return A.reportError(L)};
|
|
MW=function(A){var L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){switch(h.N){case 1:L=void 0;A.U++;B=new g.IQ;A.Bo instanceof rs&&A.Bo.U.push(B.promise);if(!A.bZ){h.Ux(2);break}f=new g.IQ;setTimeout(function(){return void f.resolve()});
|
|
return g.X(h,f.promise,2);case 2:return K=A.logger.share(),g.S5(h,4,5),A.state=5,V={},J=[],g.X(h,Hc(A.Bo.snapshot({WL:V,qg:J}),A.S7.s4r,function(){return Promise.reject(new SW(15,"MDA:Timeout"))}),7);
|
|
case 7:R=h.W;if(A.TL())throw new SW(A.N?20:32,"MDA:Disposed");Z=J[0];A.state=6;return g.X(h,Hc(E1e(A.Ni,K,R),A.S7.Bs,function(){return Promise.reject(new SW(10,"BWB:Timeout"))}),8);
|
|
case 8:N=h.W;if(A.TL())throw new SW(A.N?20:32,"BWB:Disposed");A.state=7;L=Vq(K,function(){var l=UiD(A,N,B,Z);l.V.promise.then(function(){return void A.D()});
|
|
return l},"i");
|
|
case 5:g.F9(h);K.dispose();g.DR(h,6);break;case 4:F=g.NX(h);(D=L)==null||D.dispose();if(!A.W){I=Yxy(A,F);B.resolve();var Q;if(Q=A.Bo instanceof rs&&A.U<2)a:if(F instanceof SW)Q=F.code!==32&&F.code!==20&&F.code!==10;else{if(F instanceof WD)switch(F.code){case 2:case 13:case 14:case 4:break;default:Q=!1;break a}Q=!0}if(Q)return d=(1+Math.random()*.25)*(A.N?6E4:1E3),w=setTimeout(function(){return void A.D()},d),A.addOnDisposeCallback(function(){return void clearTimeout(w)}),h.return();
|
|
A.W=I}K.M4(A.N?13:14);A.V.reject(A.W);return h.return();case 6:A.state=8,A.U=0,(r=A.N)==null||r.dispose(),A.N=L,A.V.resolve(),g.VK(h)}})};
|
|
UiD=function(A,L,B,f){var K=zw(L,2)*1E3;if(K<=0)throw new SW(31,"TTM:Invalid");if(uq(L,4))return new Xm(A.logger,uq(L,4),K);if(!zw(L,3))return new $M(A.logger,uI(QP(L,1)),K);if(!f)throw new SW(4,"PMD:Undefined");f=f(uI(QP(L,1)));if(typeof f!=="function")throw new SW(16,"APF:Failed");A.T=Math.floor((Date.now()+K)/1E3);A=new i0(A.logger,f,zw(L,3),K);A.addOnDisposeCallback(function(){return void B.resolve()});
|
|
return A};
|
|
Wlw=function(A,L){L=L instanceof SW?L:new SW(5,"TVD:error",L);return A.reportError(L)};
|
|
erS=function(A,L,B){try{if(A.TL())throw new SW(21,"BNT:disposed");if(!A.N&&A.W)throw A.W;var f,K;return(K=(f=v1v(A,L,B))!=null?f:qxk(A,L,B))!=null?K:PC7(A,L,B)}catch(V){if(!L.Sl)throw Wlw(A,V);return xiQ(A,B,V)}};
|
|
v1v=function(A,L,B){var f;return(f=A.N)==null?void 0:C2(f,function(){return Uk(A,L)},B,function(K){var V;
|
|
if(A.N instanceof i0&&((V=L.Ct)==null?0:V.dC))try{var J;(J=A.cache)==null||Qt8(J,Uk(A,L),K,L.Ct.yT,A.T-120)}catch(R){A.reportError(new SW(24,"ELX:write",R))}})};
|
|
qxk=function(A,L,B){var f;if((f=L.Ct)!=null&&f.m0)try{var K,V=(K=A.cache)==null?void 0:CCQ(K,Uk(A,L),L.Ct.yT);return V?B?Vq(A.logger,function(){return g.Y$(V,2)},"a"):V:void 0}catch(J){A.reportError(new SW(23,"RXO:read",J))}};
|
|
PC7=function(A,L,B){var f={stack:[],error:void 0,hasError:!1};try{if(!L.Ra)throw new SW(29,"SDF:notready");return C2(v7E(f,new cc(A.logger,0,A.state)),function(){return Uk(A,L)},B)}catch(K){f.error=K,f.hasError=!0}finally{qDv(f)}};
|
|
xiQ=function(A,L,B){var f={stack:[],error:void 0,hasError:!1};try{var K=Wlw(A,B);return C2(v7E(f,new Ok(A.logger,K)),function(){return[]},L)}catch(V){f.error=V,f.hasError=!0}finally{qDv(f)}};
|
|
Uk=function(A,L){return L.PH?L.PH:L.WL?Vq(A.logger,function(){return L.PH=Ek(L.WL)},"c"):[]};
|
|
n16=function(){var A=0,L;return function(B){L||(L=new Ju);var f=new cc(L,A,1),K=C2(f,function(){return Ek(B)},!0);
|
|
f.dispose();A++;return K}};
|
|
Wc=function(A){this.yf=N$(A)};
|
|
zrk=function(A,L,B){this.lO=A;this.wc=L;this.metadata=B};
|
|
vc=function(A,L){L=L===void 0?{}:L;this.P2r=A;this.metadata=L;this.status=null};
|
|
qW=function(A,L,B,f,K){this.name=A;this.methodType="unary";this.requestType=L;this.responseType=B;this.N=f;this.W=K};
|
|
Pc=function(A){this.yf=N$(A)};
|
|
xM=function(A){this.yf=N$(A)};
|
|
eA=function(A){this.yf=N$(A)};
|
|
n2=function(A,L){this.W=[];this.U=[];this.D=[];this.V=[];this.N=[];this.T=A.eTD;this.X=L;this.xhr=A.xhr;this.T&&u_w(this)};
|
|
oew=function(A,L){var B=new axe;g.Ft(A.xhr,"complete",function(){if(uX(A.xhr)){var f=g.a$(A.xhr);if(L&&A.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");f=atob(f)}try{var K=A.X(f)}catch(R){zX(A,u0(new WD(13,"Error when deserializing response data; error: "+R+(", response: "+f)),B));return}f=lXy(A.xhr.getStatus());aQ(A,AX(A));f===0?A5L(A,K):zX(A,u0(new WD(f,"Xhr succeeded but the status code is not 200"),B))}else{f=g.a$(A.xhr);K=AX(A);if(f){var V=
|
|
Lsk(A,f);f=V.code;var J=V.details;V=V.metadata}else f=2,J="Rpc failed due to xhr error. uri: "+String(A.xhr.G)+", error code: "+(A.xhr.W+", error: ")+A.xhr.getLastError(),V=K;aQ(A,K);zX(A,u0(new WD(f,J,V),B))}})};
|
|
u_w=function(A){Le(A.T,"data",function(L){if("1"in L){var B=L["1"];try{var f=A.X(B)}catch(K){zX(A,new WD(13,"Error when deserializing response data; error: "+K+(", response: "+B)))}f&&A5L(A,f)}if("2"in L)for(L=Lsk(A,L["2"]),B=0;B<A.D.length;B++)A.D[B](L)});
|
|
Le(A.T,"end",function(){aQ(A,AX(A));for(var L=0;L<A.V.length;L++)A.V[L]()});
|
|
Le(A.T,"error",function(){if(A.N.length!==0){var L=A.xhr.W;L!==0||uX(A.xhr)||(L=6);var B=-1;switch(L){case 0:var f=2;break;case 7:f=10;break;case 8:f=4;break;case 6:B=A.xhr.getStatus();f=lXy(B);break;default:f=14}aQ(A,AX(A));L=XI6(L)+", error: "+A.xhr.getLastError();B!==-1&&(L+=", http status code: "+B);zX(A,new WD(f,L))}})};
|
|
AX=function(A){var L={},B=g.vse(A.xhr);Object.keys(B).forEach(function(f){L[f]=B[f]});
|
|
return L};
|
|
Lsk=function(A,L){var B=2,f={};try{var K=BVE(L);B=g.nu(K,1);var V=K.getMessage();q$(K,xM,3).length&&(f["grpc-web-status-details-bin"]=L)}catch(J){A.xhr&&A.xhr.getStatus()===404?(B=5,V="Not Found: "+String(A.xhr.G)):(B=14,V="Unable to parse RpcStatus: "+J)}return{code:B,details:V,metadata:f}};
|
|
oa=function(A,L,B){L==="data"?A.W.push(B):L==="metadata"?A.U.push(B):L==="status"?A.D.push(B):L==="end"?A.V.push(B):L==="error"&&A.N.push(B)};
|
|
Ke=function(A,L){L=A.indexOf(L);L>-1&&A.splice(L,1)};
|
|
A5L=function(A,L){for(var B=0;B<A.W.length;B++)A.W[B](L)};
|
|
aQ=function(A,L){for(var B=0;B<A.U.length;B++)A.U[B](L)};
|
|
zX=function(A,L){for(var B=0;B<A.N.length;B++)A.N[B](L)};
|
|
axe=function(){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
|
|
u0=function(A,L){L.stack&&(A.stack+="\n"+L.stack);return A};
|
|
g.Vy=function(A){this.U=A.sN||null;this.V=A.NH||!1;this.W=void 0};
|
|
JX=function(A,L){g.gb.call(this);this.Vj=A;this.T=L;this.D=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.yj=new Headers;this.W=null;this.qp="GET";this.Wn="";this.N=!1;this.X=this.V=this.U=null;this.G=new AbortController};
|
|
fkD=function(A){A.V.read().then(A.NTr.bind(A)).catch(A.PS.bind(A))};
|
|
Ra=function(A){A.readyState=4;A.U=null;A.V=null;A.X=null;SF(A)};
|
|
SF=function(A){A.onreadystatechange&&A.onreadystatechange.call(A)};
|
|
Ks8=function(A){if(A.aU&&typeof A.aU=="function")return A.aU();if(typeof Map!=="undefined"&&A instanceof Map||typeof Set!=="undefined"&&A instanceof Set)return Array.from(A.values());if(typeof A==="string")return A.split("");if(g.lB(A)){for(var L=[],B=A.length,f=0;f<B;f++)L.push(A[f]);return L}return hO(A)};
|
|
VOy=function(A){if(A.F1&&typeof A.F1=="function")return A.F1();if(!A.aU||typeof A.aU!="function"){if(typeof Map!=="undefined"&&A instanceof Map)return Array.from(A.keys());if(!(typeof Set!=="undefined"&&A instanceof Set)){if(g.lB(A)||typeof A==="string"){var L=[];A=A.length;for(var B=0;B<A;B++)L.push(B);return L}return g.bs(A)}}};
|
|
J58=function(A,L,B){if(A.forEach&&typeof A.forEach=="function")A.forEach(L,B);else if(g.lB(A)||typeof A==="string")Array.prototype.forEach.call(A,L,B);else for(var f=VOy(A),K=Ks8(A),V=K.length,J=0;J<V;J++)L.call(B,K[J],f&&f[J],A)};
|
|
g.ZS=function(A){this.N=this.G=this.D="";this.V=null;this.T=this.W="";this.X=!1;var L;A instanceof g.ZS?(this.X=A.X,g.Zt(this,A.D),this.G=A.G,g.NC(this,A.N),g.NT(this,A.V),this.W=A.W,FO(this,A.U.clone()),this.T=A.T):A&&(L=g.bp(String(A)))?(this.X=!1,g.Zt(this,L[1]||"",!0),this.G=Dt(L[2]||""),g.NC(this,L[3]||"",!0),g.NT(this,L[4]),this.W=Dt(L[5]||"",!0),FO(this,L[6]||"",!0),this.T=Dt(L[7]||"")):(this.X=!1,this.U=new dl(null,this.X))};
|
|
g.Zt=function(A,L,B){A.D=B?Dt(L,!0):L;A.D&&(A.D=A.D.replace(/:$/,""))};
|
|
g.NC=function(A,L,B){A.N=B?Dt(L,!0):L};
|
|
g.NT=function(A,L){if(L){L=Number(L);if(isNaN(L)||L<0)throw Error("Bad port number "+L);A.V=L}else A.V=null};
|
|
FO=function(A,L,B){L instanceof dl?(A.U=L,S3S(A.U,A.X)):(B||(L=Ia(L,RN8)),A.U=new dl(L,A.X))};
|
|
g.wl=function(A,L,B){A.U.set(L,B)};
|
|
g.$7=function(A){return A instanceof g.ZS?A.clone():new g.ZS(A)};
|
|
Dt=function(A,L){return A?L?decodeURI(A.replace(/%25/g,"%2525")):decodeURIComponent(A):""};
|
|
Ia=function(A,L,B){return typeof A==="string"?(A=encodeURI(A).replace(L,Zt6),B&&(A=A.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),A):null};
|
|
Zt6=function(A){A=A.charCodeAt(0);return"%"+(A>>4&15).toString(16)+(A&15).toString(16)};
|
|
dl=function(A,L){this.W=this.N=null;this.V=A||null;this.U=!!L};
|
|
pe=function(A){A.N||(A.N=new Map,A.W=0,A.V&&lp(A.V,function(L,B){A.add(qw(L),B)}))};
|
|
NVS=function(A,L){pe(A);L=yy(A,L);return A.N.has(L)};
|
|
g.Fsk=function(A,L,B){A.remove(L);B.length>0&&(A.V=null,A.N.set(yy(A,L),g.Kx(B)),A.W=A.W+B.length)};
|
|
yy=function(A,L){L=String(L);A.U&&(L=L.toLowerCase());return L};
|
|
S3S=function(A,L){L&&!A.U&&(pe(A),A.V=null,A.N.forEach(function(B,f){var K=f.toLowerCase();f!=K&&(this.remove(f),g.Fsk(this,K,B))},A));
|
|
A.U=L};
|
|
g.DnQ=function(A){var L="";g.H6(A,function(B,f){L+=f;L+=":";L+=B;L+="\r\n"});
|
|
return L};
|
|
g.jF=function(A,L,B){if(g.mi(B))return A;B=g.DnQ(B);if(typeof A==="string")return $s(A,g.v5(L),B);g.wl(A,L,B);return A};
|
|
g.gl=function(A){g.Y.call(this);this.W=A;this.N={}};
|
|
dnv=function(A,L,B,f,K,V){if(Array.isArray(B))for(var J=0;J<B.length;J++)dnv(A,L,B[J],f,K,V);else{L=NB(L,B,f||A.handleEvent,K,V||A.W||A);if(!L)return A;A.N[L.key]=L}return A};
|
|
Ik7=function(){this.V=!0;this.W=0;this.N=""};
|
|
wrv=function(A,L,B){A.V=!1;throw Error("The stream is broken @"+A.W+". Error: "+B+". With input:\n"+L);};
|
|
G7=function(){this.T=null;this.X=[];this.U=this.W=this.V=this.N=this.yj=0;this.D=null;this.G=0};
|
|
rl=function(A,L,B,f){A.N=3;A.T="The stream is broken @"+A.yj+"/"+B+". Error: "+f+". With input:\n"+L;throw Error(A.T);};
|
|
sB=function(){this.N=null;this.W=0;this.V=new Ik7;this.U=new G7};
|
|
prE=function(A,L,B){A.N="The stream is broken @"+A.W+". Error: "+B+". With input:\n"+L;throw Error(A.N);};
|
|
HM=function(A){return A=="\r"||A=="\n"||A==" "||A=="\t"};
|
|
hX=function(A){this.yj=null;this.T=[];this.U="";this.qp=[];this.V=this.W=0;this.X=!1;this.G=0;this.Vj=/[\\"]/g;this.N=this.D=0;this.Wn=!(!A||!A.q6)};
|
|
bN=function(A,L,B){A.D=3;A.yj="The stream is broken @"+A.V+"/"+B+". With input:\n"+L;throw Error(A.yj);};
|
|
tX=function(){this.D=this.V=null;this.W=this.N=0;this.U=[];this.T=!1};
|
|
y5w=function(A){var L=g.L2(A,"Content-Type");if(!L)return null;L=L.toLowerCase();return L.startsWith("application/json")?L.startsWith("application/json+protobuf")?new tX:new hX:L.startsWith("application/x-protobuf")?(A=g.L2(A,"Content-Transfer-Encoding"))?A.toLowerCase()=="base64"?new sB:null:new G7:null};
|
|
kw=function(A){this.N=A;this.W=null;this.D=this.V=0;this.yj=!1;this.U=this.X=this.T=null;this.G=new g.gl(this);this.G.listen(this.N,"readystatechange",this.Wn)};
|
|
T7=function(A,L){A.D!=L&&(A.D=L,A.X&&A.X())};
|
|
lN=function(A){A.G.removeAll();if(A.N){var L=A.N;A.N=null;L.abort();L.dispose()}};
|
|
j3y=function(A){A=this.V=A;var L=(0,g.X9)(this.M$n,this);A.U=L;A=this.V;L=(0,g.X9)(this.Az4,this);A.X=L;this.W={};this.N={}};
|
|
Le=function(A,L,B){var f=A.W[L];f||(f=[],A.W[L]=f);f.push(B)};
|
|
gek=function(A,L){for(var B={},f=0;f<A.length;B={bJ:void 0},f++)B.bJ=A[f],L.forEach(function(K){return function(V){try{V(K.bJ)}catch(J){}}}(B))};
|
|
mK=function(A,L){var B=A.W[L];B&&B.forEach(function(f){try{f()}catch(K){}});
|
|
(B=A.N[L])&&B.forEach(function(f){f()});
|
|
A.N[L]=[]};
|
|
Gzk=function(){var A={format:"jspb"};A=A===void 0?{}:A;this.HO=A.HO||g.bB("suppressCorsPreflight",A)||!1;this.withCredentials=A.withCredentials||g.bB("withCredentials",A)||!1;this.y6=A.y6||[];this.fA=A.fA||[];this.FB=A.FB;this.N=A.E3r||!1};
|
|
Z9v=function(A,L,B,f,K,V){V=V===void 0?{}:V;var J=L.substring(0,L.length-K.name.length),R,Z=(R=V)==null?void 0:R.signal;return r5L(function(N){return new Promise(function(F,D){if(Z==null?0:Z.aborted){var I=new WD(1,"Aborted");I.cause=Z.reason;D(I)}else{var d={},w=s3w(A,N,J);oa(w,"error",function(r){return void D(r)});
|
|
oa(w,"metadata",function(r){d=r});
|
|
oa(w,"data",function(r){var h=d;h=h===void 0?{}:h;F(new vc(r,h))});
|
|
Z&&Z.addEventListener("abort",function(){w.cancel();var r=new WD(1,"Aborted");r.cause=Z.reason;D(r)})}})},A.fA).call(A,K.T(B,f)).then(function(N){return N.P2r})};
|
|
s3w=function(A,L,B){var f=L.wc,K=L.getMetadata(),V=HtE(A,!0);A=hNw(A,K,V,B+f.getName());B=btv(V,f.W,!1);oew(B,K["X-Goog-Encode-Response-If-Executable"]==="base64");L=f.N(L.lO);V.send(A,"POST",L);return B};
|
|
HtE=function(A,L){L=A.N&&!L;return A.FB||L?new g.xA(new g.Vy({sN:A.FB,NH:L})):new g.xA};
|
|
hNw=function(A,L,B,f){L["Content-Type"]="application/json+protobuf";L["X-User-Agent"]="grpc-web-javascript/0.1";var K=L.Authorization;if(K&&tO6.has(K.split(" ")[0])||A.withCredentials)B.X=!0;if(A.HO)f=g.jF(f,"$httpHeaders",L);else for(A=g.m(Object.keys(L)),K=A.next();!K.done;K=A.next())K=K.value,B.headers.set(K,L[K]);return f};
|
|
btv=function(A,L,B){if(B){A.isActive();B=new kw(A);var f=new j3y(B)}return new n2({xhr:A,eTD:f},L)};
|
|
kz1=function(A,L){return L.reduce(function(B,f){return function(K){return f.intercept(K,B)}},A)};
|
|
r5L=function(A,L){return L.reduce(function(B,f){return function(K){return f.intercept(K,B)}},A)};
|
|
TVk=function(){this.N=new Gzk;this.W="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
|
|
Qy=function(A,L){this.BD=3;this.Ha=A;this.defaultValue=L;this.fk="bool"};
|
|
Ce=function(A,L){this.BD=3;this.Ha=A;this.defaultValue=L;this.fk="double"};
|
|
lk7=function(A){this.N=A};
|
|
mnk=function(A){this.N=A};
|
|
itL=function(A){if(g.us(g.xj(A)))return!1;if(A.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var L=new g.ZS(A)}catch(B){return g.Pw(Q3S,function(f){return A.search(f)>0})!=null}return L.T.match(CHk)?!0:g.Pw(Q3S,function(B){return A.match(B)!=null})!=null};
|
|
g.iN=function(A,L){return A.replace($n8,function(B,f){try{var K=g.QB(L,f);if(K==null||K.toString()==null)return B;K=K.toString();if(K==""||!g.us(g.xj(K)))return encodeURIComponent(K).replace(/%2C/g,",")}catch(V){}return B})};
|
|
Xr0=function(A){this.yf=N$(A,500)};
|
|
OtC=function(A){this.yf=N$(A,500)};
|
|
$w=function(A){this.yf=N$(A)};
|
|
XO=function(A){this.yf=N$(A)};
|
|
Ee1=function(A){var L=A.yf;return vG(A,L,L[fd]|0,$w,2,1)};
|
|
Y30=function(A){var L;if((L=A[c56])!=null)A=L;else{if($E!==$E)throw Error();A=A[c56]=MOC(A.N)}return A};
|
|
Wsv=function(A){var L;return(L=A[Unk])!=null?L:A[Unk]=new Map(Ee1(Y30(A)).map(function(B){return[B.getName(),g.nu(B,2)]}))};
|
|
OB=function(A,L){return Object.is(A,L)};
|
|
cM=function(A){var L=EB;EB=A;return L};
|
|
veC=function(A){if(A.Mt!==void 0){var L=MT;MT=!0;try{for(var B=A.Mt;B!==void 0;B=B.Nb){var f=B.LF;f.I$||(A=void 0,f.I$=!0,veC(f),(A=f.dj)==null||A.call(f,f))}}finally{MT=L}}};
|
|
q36=function(){var A;return((A=EB)==null?void 0:A.XX)!==!1};
|
|
PHe=function(A){A&&(A.yy=void 0,A.M1=!0);return cM(A)};
|
|
eNw=function(A){A.M1=!1;var L=A.yy,B=L!==void 0?L.LZ:A.producers;if(B!==void 0){if(Yw(A)){do B=xne(B);while(B!==void 0)}L!==void 0?L.LZ=void 0:A.producers=void 0}};
|
|
nev=function(A,L){var B=A.Et,f=Yw(A);B!==void 0?(L.Nb=B.Nb,B.Nb=L):(L.Nb=void 0,A.Mt=L);L.GE=B;A.Et=L;if(!f)for(A=A.producers;A!==void 0;A=A.LZ)nev(A.P5,A)};
|
|
xne=function(A){var L=A.P5,B=A.LZ,f=A.Nb,K=A.GE;A.Nb=void 0;A.GE=void 0;f!==void 0?f.GE=K:L.Et=K;if(K!==void 0)K.Nb=f;else if(L.Mt=f,!Yw(L))for(A=L.producers;A!==void 0;)A=xne(A);return B};
|
|
Yw=function(A){return A.iS||A.Mt!==void 0};
|
|
A9v=function(A,L){function B(){a:{if(MT)throw Error("");if(EB!==null){var K=EB.yy;if(K===void 0||K.P5!==f){var V=void 0,J=EB.M1;if(J&&(V=K!==void 0?K.LZ:EB.producers,V!==void 0&&V.P5===f)){EB.yy=V;V.dpj=f.version;break a}var R=f.Et,Z;if(!(Z=R===void 0||R.LF!==EB)){if(J){b:{Z=EB;J=Z.yy;if(J!==void 0){Z=Z.producers;do{if(Z===R){J=!0;break b}if(Z===J)break;Z=Z.LZ}while(Z!==void 0)}J=!1}J=!J}Z=J}Z&&(J=Yw(EB),V={P5:f,LF:EB,LZ:V,GE:R,dpj:f.version,Nb:void 0},EB.yy=V,K!==void 0?K.LZ=V:EB.producers=V,J&&
|
|
nev(f,V))}}}return f.value}
|
|
var f=Object.create(zN8);f.value=A;L!==void 0&&(f.I3=L);B[ux0]=f;return[B,function(K){return aky(f,K)},
|
|
function(K){if(!q36())throw Error();aky(f,K(f.value))}]};
|
|
aky=function(A,L){if(!q36())throw Error();A.I3(A.value,L)||(A.value=L,A.version++,LQ7++,veC(A))};
|
|
UB=function(A,L){L=L===void 0?"":L;var B={};A=A9v(A,B.equals);B=B.debugName;var f;L=B&&L?B+"__"+L:(f=B!=null?B:L)!=null?f:"[signal]";A[0][ux0].debugName=L};
|
|
vM=function(A){g.gb.call(this);var L=this;this.D=this.W=0;this.kC=A!=null?A:{pV:function(K,V){return setTimeout(K,V)},
|
|
WF:function(K){clearTimeout(K)}};
|
|
var B,f;this.N=(f=(B=window.navigator)==null?void 0:B.onLine)!=null?f:!0;this.V=function(){return g.c(function(K){return g.X(K,WM(L),0)})};
|
|
window.addEventListener("offline",this.V);window.addEventListener("online",this.V);this.D||this.yG()};
|
|
oZk=function(){var A=g.qT;vM.instance||(vM.instance=new vM(A));return vM.instance};
|
|
WM=function(A,L){return A.U?A.U:A.U=new Promise(function(B){var f,K,V,J;return g.c(function(R){switch(R.N){case 1:return f=window.AbortController?new window.AbortController:void 0,V=(K=f)==null?void 0:K.signal,J=!1,g.S5(R,2,3),f&&(A.W=A.kC.pV(function(){f.abort()},L||2E4)),g.X(R,fetch("/generate_204",{method:"HEAD",
|
|
signal:V}),5);case 5:J=!0;case 3:g.F9(R);A.U=void 0;A.W&&(A.kC.WF(A.W),A.W=0);J!==A.N&&(A.N=J,A.N?A.dispatchEvent("networkstatus-online"):A.dispatchEvent("networkstatus-offline"));B(J);g.DR(R,0);break;case 2:g.NX(R),J=!1,R.Ux(3)}})})};
|
|
Bme=function(A){this.yf=N$(A)};
|
|
PM=function(){this.data=[];this.N=-1};
|
|
fa1=function(A){A.N===-1&&(A.N=A.data.reduce(function(L,B,f){return L+(B?Math.pow(2,f):0)},0));
|
|
return A.N};
|
|
xw=function(A){A.setAttribute("role","link")};
|
|
ne=function(A,L){Array.isArray(L)&&(L=L.join(" "));L===""||L==void 0?(eF||(L={},eF=(L.atomic=!1,L.autocomplete="none",L.dropeffect="none",L.haspopup=!1,L.live="off",L.multiline=!1,L.multiselectable=!1,L.orientation="vertical",L.readonly=!1,L.relevant="additions text",L.required=!1,L.sort="none",L.busy=!1,L.disabled=!1,L.hidden=!1,L.invalid="false",L)),L=eF,"label"in L?A.setAttribute("aria-label",L.label):A.removeAttribute("aria-label")):A.setAttribute("aria-label",L)};
|
|
z7=function(A){A=A.getAttribute("aria-label");return A==null||A==void 0?"":String(A)};
|
|
g.uN=function(A,L,B){g.Y.call(this);this.N=null;this.U=!1;this.T=A;this.D=B;this.W=L||window;this.V=(0,g.X9)(this.rZ,this)};
|
|
KQ7=function(A){A=A.W;return A.requestAnimationFrame||A.webkitRequestAnimationFrame||A.mozRequestAnimationFrame||A.oRequestAnimationFrame||A.msRequestAnimationFrame||null};
|
|
VWL=function(A){A=A.W;return A.cancelAnimationFrame||A.cancelRequestAnimationFrame||A.webkitCancelRequestAnimationFrame||A.mozCancelRequestAnimationFrame||A.oCancelRequestAnimationFrame||A.msCancelRequestAnimationFrame||null};
|
|
g.aa=function(A,L,B){g.Y.call(this);this.N=A;this.LV=L||0;this.W=B;this.V=(0,g.X9)(this.jW,this)};
|
|
g.Az=function(A,L){A.isActive()||A.start(L)};
|
|
g.LK=function(A){A.stop();A.jW()};
|
|
g.o1=function(A){A.isActive()&&g.LK(A)};
|
|
g.BC=function(A,L,B){g.Y.call(this);this.U=B!=null?A.bind(B):A;this.LV=L;this.V=null;this.N=!1;this.W=0;this.x6=null};
|
|
fK=function(A){A.x6=g.MB(function(){A.x6=null;A.N&&!A.W&&(A.N=!1,fK(A))},A.LV);
|
|
var L=A.V;A.V=null;A.U.apply(null,L)};
|
|
g.KK=function(A,L){this.N=A[g.rI.Symbol.iterator]();this.W=L};
|
|
J98=function(A){return typeof A.className=="string"?A.className:A.getAttribute&&A.getAttribute("class")||""};
|
|
Vd=function(A){return A.classList?A.classList:J98(A).match(/\S+/g)||[]};
|
|
g.Jz=function(A,L){typeof A.className=="string"?A.className=L:A.setAttribute&&A.setAttribute("class",L)};
|
|
g.SR=function(A,L){return A.classList?A.classList.contains(L):g.zK(Vd(A),L)};
|
|
g.R1=function(A,L){if(A.classList)A.classList.add(L);else if(!g.SR(A,L)){var B=J98(A);g.Jz(A,B+(B.length>0?" "+L:L))}};
|
|
g.Z1=function(A,L){if(A.classList)Array.prototype.forEach.call(L,function(K){g.R1(A,K)});
|
|
else{var B={};Array.prototype.forEach.call(Vd(A),function(K){B[K]=!0});
|
|
Array.prototype.forEach.call(L,function(K){B[K]=!0});
|
|
L="";for(var f in B)L+=L.length>0?" "+f:f;g.Jz(A,L)}};
|
|
g.NH=function(A,L){A.classList?A.classList.remove(L):g.SR(A,L)&&g.Jz(A,Array.prototype.filter.call(Vd(A),function(B){return B!=L}).join(" "))};
|
|
g.Fq=function(A,L){A.classList?Array.prototype.forEach.call(L,function(B){g.NH(A,B)}):g.Jz(A,Array.prototype.filter.call(Vd(A),function(B){return!g.zK(L,B)}).join(" "))};
|
|
g.D1=function(A,L,B){B?g.R1(A,L):g.NH(A,L)};
|
|
SaQ=function(A,L){var B=!g.SR(A,L);g.D1(A,L,B)};
|
|
g.d$=function(){g.gb.call(this);this.N=0;this.endTime=this.startTime=null};
|
|
RjE=function(A,L){Array.isArray(L)||(L=[L]);L=L.map(function(B){return typeof B==="string"?B:B.property+" "+B.duration+"s "+B.timing+" "+B.delay+"s"});
|
|
g.Kv(A,"transition",L.join(","))};
|
|
I1=function(A,L,B,f,K){g.d$.call(this);this.W=A;this.D=L;this.T=B;this.U=f;this.X=Array.isArray(K)?K:[K]};
|
|
Zcy=function(A,L,B,f){return new I1(A,L,{opacity:B},{opacity:f},{property:"opacity",duration:L,timing:"ease-in",delay:0})};
|
|
FQ8=function(A){A=La(A);if(A=="")return null;var L=String(A.slice(0,4)).toLowerCase();if(("url("<L?-1:"url("==L?0:1)==0)return!A.endsWith(")")||(A?A.split("(").length-1:0)>1||A&&A.split(")"),null;if(A.indexOf("(")>0){if(/"|'/.test(A))return null;L=/([\-\w]+)\(/g;for(var B;B=L.exec(A);)if(!(B[1].toLowerCase()in Nmw))return null}return A};
|
|
w$=function(A,L){A=g.rI[A];return A&&A.prototype?(L=Object.getOwnPropertyDescriptor(A.prototype,L))&&L.get||null:null};
|
|
DOC=function(A){var L=g.rI.CSSStyleDeclaration;return L&&L.prototype&&L.prototype[A]||null};
|
|
dOe=function(A,L,B,f){if(A)return A.apply(L,f);if(g.pK&&document.documentMode<10){if(!L[B].call)throw Error("IE Clobbering detected");}else if(typeof L[B]!="function")throw Error("Clobbering detected");return L[B].apply(L,f)};
|
|
jxv=function(A){if(!A)return"";var L=document.createElement("div").style;Ia7(A).forEach(function(B){var f=g.h8&&B in w3C?B:B.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");zk(f,"--")||zk(f,"var")||(B=dOe(p3Q,A,A.getPropertyValue?"getPropertyValue":"getAttribute",[B])||"",B=FQ8(B),B!=null&&dOe(y9w,L,L.setProperty?"setProperty":"setAttribute",[f,B]))});
|
|
return L.cssText||""};
|
|
Ia7=function(A){g.lB(A)?A=g.Kx(A):(A=g.bs(A),g.Lx(A,"cssText"));return A};
|
|
g.jR=function(A){var L,B=L=0,f=!1;A=A.split(gZy);for(var K=0;K<A.length;K++){var V=A[K];g.yd.test(V)?(L++,B++):G1v.test(V)?f=!0:r9v.test(V)?B++:sxy.test(V)&&(f=!0)}L=B==0?f?1:0:L/B>.4?-1:1;return(L==0?null:L)==-1?"rtl":"ltr"};
|
|
g.sn=function(A){if(A instanceof g$||A instanceof GF||A instanceof r$)return A;if(typeof A.next=="function")return new g$(function(){return A});
|
|
if(typeof A[Symbol.iterator]=="function")return new g$(function(){return A[Symbol.iterator]()});
|
|
if(typeof A.iM=="function")return new g$(function(){return A.iM()});
|
|
throw Error("Not an iterator or iterable.");};
|
|
g$=function(A){this.W=A};
|
|
GF=function(A){this.W=A};
|
|
r$=function(A){g$.call(this,function(){return A});
|
|
this.V=A};
|
|
HC=function(A,L,B,f,K,V,J,R){this.N=A;this.X=L;this.V=B;this.D=f;this.U=K;this.T=V;this.W=J;this.G=R};
|
|
hz=function(A,L){if(L==0)return A.N;if(L==1)return A.W;var B=KG(A.N,A.V,L),f=KG(A.V,A.U,L);A=KG(A.U,A.W,L);B=KG(B,f,L);f=KG(f,A,L);return KG(B,f,L)};
|
|
Hcw=function(A,L){if(L==0)return A.X;if(L==1)return A.G;var B=KG(A.X,A.D,L),f=KG(A.D,A.T,L);A=KG(A.T,A.G,L);B=KG(B,f,L);f=KG(f,A,L);return KG(B,f,L)};
|
|
hjw=function(A,L){var B=(L-A.N)/(A.W-A.N);if(B<=0)return 0;if(B>=1)return 1;for(var f=0,K=1,V=0,J=0;J<8;J++){V=hz(A,B);var R=(hz(A,B+1E-6)-V)/1E-6;if(Math.abs(V-L)<1E-6)return B;if(Math.abs(R)<1E-6)break;else V<L?f=B:K=B,B-=(V-L)/R}for(J=0;Math.abs(V-L)>1E-6&&J<8;J++)V<L?(f=B,B=(B+K)/2):(K=B,B=(B+f)/2),V=hz(A,B);return B};
|
|
bk=function(A,L){this.start=A<L?A:L;this.end=A<L?L:A};
|
|
tz=function(A){return(A=A.exec(g.fa()))?A[1]:""};
|
|
kC=function(A){return g.B5(bcv,A)>=0};
|
|
g.TF=function(A){g.Y.call(this);this.T=1;this.V=[];this.U=0;this.N=[];this.W={};this.X=!!A};
|
|
tWD=function(A,L,B){g.lX(function(){A.apply(L,B)})};
|
|
g.lk=function(A){this.cq=A};
|
|
mo=function(A){this.cq=A};
|
|
k11=function(A){this.data=A};
|
|
Tmy=function(A){return A===void 0||A instanceof k11?A:new k11(A)};
|
|
Qd=function(A){this.cq=A};
|
|
g.lav=function(A){var L=A.creation;A=A.expiration;return!!A&&A<g.Ed()||!!L&&L>g.Ed()};
|
|
g.CK=function(A){this.cq=A};
|
|
mOw=function(){};
|
|
ik=function(){};
|
|
$C=function(A){this.N=A;this.W=null};
|
|
Xq=function(A){if(A.N==null)throw Error("Storage mechanism: Storage unavailable");A.isAvailable()||cX(Error("Storage mechanism: Storage unavailable"))};
|
|
On=function(){var A=null;try{A=g.rI.localStorage||null}catch(L){}$C.call(this,A)};
|
|
QxQ=function(){var A=null;try{A=g.rI.sessionStorage||null}catch(L){}$C.call(this,A)};
|
|
En=function(A,L){this.W=A;this.N=L+"::"};
|
|
g.cC=function(A){var L=new On;return L.isAvailable()?A?new En(L,A):L:null};
|
|
MH=function(A,L){this.N=A;this.W=L};
|
|
YC=function(A){this.N=[];if(A)a:{if(A instanceof YC){var L=A.F1();A=A.aU();if(this.N.length<=0){for(var B=this.N,f=0;f<L.length;f++)B.push(new MH(L[f],A[f]));break a}}else L=g.bs(A),A=hO(A);for(B=0;B<L.length;B++)this.h1(L[B],A[B])}};
|
|
Un=function(A){return A.N[0]&&A.N[0].N};
|
|
WC=function(){YC.apply(this,arguments)};
|
|
vC=function(){};
|
|
CmC=function(){var A=Error();A.name="SecurityError";throw A;};
|
|
icy=function(){return{get opener(){return null},get closed(){return!0},get location(){CmC()},get document(){CmC()},postMessage:function(){},
|
|
close:function(){},
|
|
focus:function(){}}};
|
|
$O6=function(A){var L,B,f=A.length,K=0;for(L=0;L<f;L++){var V=A.charCodeAt(L);if((V&64512)===55296&&L+1<f){var J=A.charCodeAt(L+1);(J&64512)===56320&&(V=65536+(V-55296<<10)+(J-56320),L++)}K+=V<128?1:V<2048?2:V<65536?3:4}var R=new qH.Vc(K);for(L=B=0;B<K;L++)V=A.charCodeAt(L),(V&64512)===55296&&L+1<f&&(J=A.charCodeAt(L+1),(J&64512)===56320&&(V=65536+(V-55296<<10)+(J-56320),L++)),V<128?R[B++]=V:(V<2048?R[B++]=192|V>>>6:(V<65536?R[B++]=224|V>>>12:(R[B++]=240|V>>>18,R[B++]=128|V>>>12&63),R[B++]=128|V>>>
|
|
6&63),R[B++]=128|V&63);return R};
|
|
PC=function(A){for(var L=A.length;--L>=0;)A[L]=0};
|
|
xC=function(A,L,B,f,K){this.BX=A;this.KG=L;this.Qa=B;this.R1=f;this.Jwp=K;this.OG=A&&A.length};
|
|
eR=function(A,L){this.Sm=A;this.j9=0;this.Q_=L};
|
|
nK=function(A,L){A.D0[A.pending++]=L&255;A.D0[A.pending++]=L>>>8&255};
|
|
zF=function(A,L,B){A.jg>16-B?(A.X5|=L<<A.jg&65535,nK(A,A.X5),A.X5=L>>16-A.jg,A.jg+=B-16):(A.X5|=L<<A.jg&65535,A.jg+=B)};
|
|
uk=function(A,L,B){zF(A,B[L*2],B[L*2+1])};
|
|
X3v=function(A,L){var B=0;do B|=A&1,A>>>=1,B<<=1;while(--L>0);return B>>>1};
|
|
Oc8=function(A,L,B){var f=Array(16),K=0,V;for(V=1;V<=15;V++)f[V]=K=K+B[V-1]<<1;for(B=0;B<=L;B++)K=A[B*2+1],K!==0&&(A[B*2]=X3v(f[K]++,K))};
|
|
EZe=function(A){var L;for(L=0;L<286;L++)A.lH[L*2]=0;for(L=0;L<30;L++)A.P$[L*2]=0;for(L=0;L<19;L++)A.ac[L*2]=0;A.lH[512]=1;A.rK=A.fL=0;A.PB=A.matches=0};
|
|
c9Q=function(A){A.jg>8?nK(A,A.X5):A.jg>0&&(A.D0[A.pending++]=A.X5);A.X5=0;A.jg=0};
|
|
MWD=function(A,L,B){c9Q(A);nK(A,B);nK(A,~B);qH.CJ(A.D0,A.window,L,B,A.pending);A.pending+=B};
|
|
YaE=function(A,L,B,f){var K=L*2,V=B*2;return A[K]<A[V]||A[K]===A[V]&&f[L]<=f[B]};
|
|
a1=function(A,L,B){for(var f=A.nw[B],K=B<<1;K<=A.L5;){K<A.L5&&YaE(L,A.nw[K+1],A.nw[K],A.depth)&&K++;if(YaE(L,f,A.nw[K],A.depth))break;A.nw[B]=A.nw[K];B=K;K<<=1}A.nw[B]=f};
|
|
UO1=function(A,L,B){var f=0;if(A.PB!==0){do{var K=A.D0[A.Xf+f*2]<<8|A.D0[A.Xf+f*2+1];var V=A.D0[A.mS+f];f++;if(K===0)uk(A,V,L);else{var J=Al[V];uk(A,J+256+1,L);var R=LX[J];R!==0&&(V-=ow[J],zF(A,V,R));K--;J=K<256?Bt[K]:Bt[256+(K>>>7)];uk(A,J,B);R=fX[J];R!==0&&(K-=KX[J],zF(A,K,R))}}while(f<A.PB)}uk(A,256,L)};
|
|
V4=function(A,L){var B=L.Sm,f=L.Q_.BX,K=L.Q_.OG,V=L.Q_.R1,J,R=-1;A.L5=0;A.ub=573;for(J=0;J<V;J++)B[J*2]!==0?(A.nw[++A.L5]=R=J,A.depth[J]=0):B[J*2+1]=0;for(;A.L5<2;){var Z=A.nw[++A.L5]=R<2?++R:0;B[Z*2]=1;A.depth[Z]=0;A.rK--;K&&(A.fL-=f[Z*2+1])}L.j9=R;for(J=A.L5>>1;J>=1;J--)a1(A,B,J);Z=V;do J=A.nw[1],A.nw[1]=A.nw[A.L5--],a1(A,B,1),f=A.nw[1],A.nw[--A.ub]=J,A.nw[--A.ub]=f,B[Z*2]=B[J*2]+B[f*2],A.depth[Z]=(A.depth[J]>=A.depth[f]?A.depth[J]:A.depth[f])+1,B[J*2+1]=B[f*2+1]=Z,A.nw[1]=Z++,a1(A,B,1);while(A.L5>=
|
|
2);A.nw[--A.ub]=A.nw[1];J=L.Sm;Z=L.j9;f=L.Q_.BX;K=L.Q_.OG;V=L.Q_.KG;var N=L.Q_.Qa,F=L.Q_.Jwp,D,I=0;for(D=0;D<=15;D++)A.f5[D]=0;J[A.nw[A.ub]*2+1]=0;for(L=A.ub+1;L<573;L++){var d=A.nw[L];D=J[J[d*2+1]*2+1]+1;D>F&&(D=F,I++);J[d*2+1]=D;if(!(d>Z)){A.f5[D]++;var w=0;d>=N&&(w=V[d-N]);var r=J[d*2];A.rK+=r*(D+w);K&&(A.fL+=r*(f[d*2+1]+w))}}if(I!==0){do{for(D=F-1;A.f5[D]===0;)D--;A.f5[D]--;A.f5[D+1]+=2;A.f5[F]--;I-=2}while(I>0);for(D=F;D!==0;D--)for(d=A.f5[D];d!==0;)f=A.nw[--L],f>Z||(J[f*2+1]!==D&&(A.rK+=(D-
|
|
J[f*2+1])*J[f*2],J[f*2+1]=D),d--)}Oc8(B,R,A.f5)};
|
|
WQS=function(A,L,B){var f,K=-1,V=L[1],J=0,R=7,Z=4;V===0&&(R=138,Z=3);L[(B+1)*2+1]=65535;for(f=0;f<=B;f++){var N=V;V=L[(f+1)*2+1];++J<R&&N===V||(J<Z?A.ac[N*2]+=J:N!==0?(N!==K&&A.ac[N*2]++,A.ac[32]++):J<=10?A.ac[34]++:A.ac[36]++,J=0,K=N,V===0?(R=138,Z=3):N===V?(R=6,Z=3):(R=7,Z=4))}};
|
|
vZQ=function(A,L,B){var f,K=-1,V=L[1],J=0,R=7,Z=4;V===0&&(R=138,Z=3);for(f=0;f<=B;f++){var N=V;V=L[(f+1)*2+1];if(!(++J<R&&N===V)){if(J<Z){do uk(A,N,A.ac);while(--J!==0)}else N!==0?(N!==K&&(uk(A,N,A.ac),J--),uk(A,16,A.ac),zF(A,J-3,2)):J<=10?(uk(A,17,A.ac),zF(A,J-3,3)):(uk(A,18,A.ac),zF(A,J-11,7));J=0;K=N;V===0?(R=138,Z=3):N===V?(R=6,Z=3):(R=7,Z=4)}}};
|
|
qaE=function(A){var L=4093624447,B;for(B=0;B<=31;B++,L>>>=1)if(L&1&&A.lH[B*2]!==0)return 0;if(A.lH[18]!==0||A.lH[20]!==0||A.lH[26]!==0)return 1;for(B=32;B<256;B++)if(A.lH[B*2]!==0)return 1;return 0};
|
|
Jl=function(A,L,B){A.D0[A.Xf+A.PB*2]=L>>>8&255;A.D0[A.Xf+A.PB*2+1]=L&255;A.D0[A.mS+A.PB]=B&255;A.PB++;L===0?A.lH[B*2]++:(A.matches++,L--,A.lH[(Al[B]+256+1)*2]++,A.P$[(L<256?Bt[L]:Bt[256+(L>>>7)])*2]++);return A.PB===A.IF-1};
|
|
Rw=function(A,L){A.msg=St[L];return L};
|
|
Zl=function(A){for(var L=A.length;--L>=0;)A[L]=0};
|
|
Nv=function(A){var L=A.state,B=L.pending;B>A.Ke&&(B=A.Ke);B!==0&&(qH.CJ(A.output,L.D0,L.Pc,B,A.n_),A.n_+=B,L.Pc+=B,A.QS+=B,A.Ke-=B,L.pending-=B,L.pending===0&&(L.Pc=0))};
|
|
dn=function(A,L){var B=A.vF>=0?A.vF:-1,f=A.Dg-A.vF,K=0;if(A.level>0){A.E9.KW===2&&(A.E9.KW=qaE(A));V4(A,A.MJ);V4(A,A.p6);WQS(A,A.lH,A.MJ.j9);WQS(A,A.P$,A.p6.j9);V4(A,A.YO);for(K=18;K>=3&&A.ac[PmE[K]*2+1]===0;K--);A.rK+=3*(K+1)+5+5+4;var V=A.rK+3+7>>>3;var J=A.fL+3+7>>>3;J<=V&&(V=J)}else V=J=f+5;if(f+4<=V&&B!==-1)zF(A,L?1:0,3),MWD(A,B,f);else if(A.strategy===4||J===V)zF(A,2+(L?1:0),3),UO1(A,FC,Dl);else{zF(A,4+(L?1:0),3);B=A.MJ.j9+1;f=A.p6.j9+1;K+=1;zF(A,B-257,5);zF(A,f-1,5);zF(A,K-4,4);for(V=0;V<K;V++)zF(A,
|
|
A.ac[PmE[V]*2+1],3);vZQ(A,A.lH,B-1);vZQ(A,A.P$,f-1);UO1(A,A.lH,A.P$)}EZe(A);L&&c9Q(A);A.vF=A.Dg;Nv(A.E9)};
|
|
Iw=function(A,L){A.D0[A.pending++]=L};
|
|
wn=function(A,L){A.D0[A.pending++]=L>>>8&255;A.D0[A.pending++]=L&255};
|
|
xO1=function(A,L){var B=A.Ia,f=A.Dg,K=A.V4,V=A.nT,J=A.Dg>A.RC-262?A.Dg-(A.RC-262):0,R=A.window,Z=A.H$,N=A.a$,F=A.Dg+258,D=R[f+K-1],I=R[f+K];A.V4>=A.iB&&(B>>=2);V>A.cz&&(V=A.cz);do{var d=L;if(R[d+K]===I&&R[d+K-1]===D&&R[d]===R[f]&&R[++d]===R[f+1]){f+=2;for(d++;R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&f<F;);d=258-(F-f);f=F-258;if(d>K){A.Jl=L;K=d;if(d>=V)break;D=R[f+K-1];I=R[f+K]}}}while((L=N[L&Z])>J&&--B!==
|
|
0);return K<=A.cz?K:A.cz};
|
|
s5=function(A){var L=A.RC,B;do{var f=A.lZ-A.cz-A.Dg;if(A.Dg>=L+(L-262)){qH.CJ(A.window,A.window,L,L,0);A.Jl-=L;A.Dg-=L;A.vF-=L;var K=B=A.dV;do{var V=A.head[--K];A.head[K]=V>=L?V-L:0}while(--B);K=B=L;do V=A.a$[--K],A.a$[K]=V>=L?V-L:0;while(--B);f+=L}if(A.E9.j6===0)break;K=A.E9;B=A.window;V=A.Dg+A.cz;var J=K.j6;J>f&&(J=f);J===0?B=0:(K.j6-=J,qH.CJ(B,K.input,K.d2,J,V),K.state.wrap===1?K.FO=GR(K.FO,B,J,V):K.state.wrap===2&&(K.FO=rn(K.FO,B,J,V)),K.d2+=J,K.yc+=J,B=J);A.cz+=B;if(A.cz+A.h1>=3)for(f=A.Dg-A.h1,
|
|
A.s9=A.window[f],A.s9=(A.s9<<A.PY^A.window[f+1])&A.BY;A.h1&&!(A.s9=(A.s9<<A.PY^A.window[f+3-1])&A.BY,A.a$[f&A.H$]=A.head[A.s9],A.head[A.s9]=f,f++,A.h1--,A.cz+A.h1<3););}while(A.cz<262&&A.E9.j6!==0)};
|
|
Ht=function(A,L){for(var B;;){if(A.cz<262){s5(A);if(A.cz<262&&L===0)return 1;if(A.cz===0)break}B=0;A.cz>=3&&(A.s9=(A.s9<<A.PY^A.window[A.Dg+3-1])&A.BY,B=A.a$[A.Dg&A.H$]=A.head[A.s9],A.head[A.s9]=A.Dg);B!==0&&A.Dg-B<=A.RC-262&&(A.lQ=xO1(A,B));if(A.lQ>=3)if(B=Jl(A,A.Dg-A.Jl,A.lQ-3),A.cz-=A.lQ,A.lQ<=A.gP&&A.cz>=3){A.lQ--;do A.Dg++,A.s9=(A.s9<<A.PY^A.window[A.Dg+3-1])&A.BY,A.a$[A.Dg&A.H$]=A.head[A.s9],A.head[A.s9]=A.Dg;while(--A.lQ!==0);A.Dg++}else A.Dg+=A.lQ,A.lQ=0,A.s9=A.window[A.Dg],A.s9=(A.s9<<A.PY^
|
|
A.window[A.Dg+1])&A.BY;else B=Jl(A,0,A.window[A.Dg]),A.cz--,A.Dg++;if(B&&(dn(A,!1),A.E9.Ke===0))return 1}A.h1=A.Dg<2?A.Dg:2;return L===4?(dn(A,!0),A.E9.Ke===0?3:4):A.PB&&(dn(A,!1),A.E9.Ke===0)?1:2};
|
|
hl=function(A,L){for(var B,f;;){if(A.cz<262){s5(A);if(A.cz<262&&L===0)return 1;if(A.cz===0)break}B=0;A.cz>=3&&(A.s9=(A.s9<<A.PY^A.window[A.Dg+3-1])&A.BY,B=A.a$[A.Dg&A.H$]=A.head[A.s9],A.head[A.s9]=A.Dg);A.V4=A.lQ;A.vW=A.Jl;A.lQ=2;B!==0&&A.V4<A.gP&&A.Dg-B<=A.RC-262&&(A.lQ=xO1(A,B),A.lQ<=5&&(A.strategy===1||A.lQ===3&&A.Dg-A.Jl>4096)&&(A.lQ=2));if(A.V4>=3&&A.lQ<=A.V4){f=A.Dg+A.cz-3;B=Jl(A,A.Dg-1-A.vW,A.V4-3);A.cz-=A.V4-1;A.V4-=2;do++A.Dg<=f&&(A.s9=(A.s9<<A.PY^A.window[A.Dg+3-1])&A.BY,A.a$[A.Dg&A.H$]=
|
|
A.head[A.s9],A.head[A.s9]=A.Dg);while(--A.V4!==0);A.eR=0;A.lQ=2;A.Dg++;if(B&&(dn(A,!1),A.E9.Ke===0))return 1}else if(A.eR){if((B=Jl(A,0,A.window[A.Dg-1]))&&dn(A,!1),A.Dg++,A.cz--,A.E9.Ke===0)return 1}else A.eR=1,A.Dg++,A.cz--}A.eR&&(Jl(A,0,A.window[A.Dg-1]),A.eR=0);A.h1=A.Dg<2?A.Dg:2;return L===4?(dn(A,!0),A.E9.Ke===0?3:4):A.PB&&(dn(A,!1),A.E9.Ke===0)?1:2};
|
|
ejD=function(A,L){for(var B,f,K,V=A.window;;){if(A.cz<=258){s5(A);if(A.cz<=258&&L===0)return 1;if(A.cz===0)break}A.lQ=0;if(A.cz>=3&&A.Dg>0&&(f=A.Dg-1,B=V[f],B===V[++f]&&B===V[++f]&&B===V[++f])){for(K=A.Dg+258;B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&f<K;);A.lQ=258-(K-f);A.lQ>A.cz&&(A.lQ=A.cz)}A.lQ>=3?(B=Jl(A,1,A.lQ-3),A.cz-=A.lQ,A.Dg+=A.lQ,A.lQ=0):(B=Jl(A,0,A.window[A.Dg]),A.cz--,A.Dg++);if(B&&(dn(A,!1),A.E9.Ke===0))return 1}A.h1=0;return L===
|
|
4?(dn(A,!0),A.E9.Ke===0?3:4):A.PB&&(dn(A,!1),A.E9.Ke===0)?1:2};
|
|
nZk=function(A,L){for(var B;;){if(A.cz===0&&(s5(A),A.cz===0)){if(L===0)return 1;break}A.lQ=0;B=Jl(A,0,A.window[A.Dg]);A.cz--;A.Dg++;if(B&&(dn(A,!1),A.E9.Ke===0))return 1}A.h1=0;return L===4?(dn(A,!0),A.E9.Ke===0?3:4):A.PB&&(dn(A,!1),A.E9.Ke===0)?1:2};
|
|
b8=function(A,L,B,f,K){this.oY=A;this.Svn=L;this.pzD=B;this.RTD=f;this.func=K};
|
|
zjS=function(){this.E9=null;this.status=0;this.D0=null;this.wrap=this.pending=this.Pc=this.WA=0;this.lr=null;this.d$=0;this.method=8;this.Uu=-1;this.H$=this.VA=this.RC=0;this.window=null;this.lZ=0;this.head=this.a$=null;this.nT=this.iB=this.strategy=this.level=this.gP=this.Ia=this.V4=this.cz=this.Jl=this.Dg=this.eR=this.vW=this.lQ=this.vF=this.PY=this.BY=this.jt=this.dV=this.s9=0;this.lH=new qH.wg(1146);this.P$=new qH.wg(122);this.ac=new qH.wg(78);Zl(this.lH);Zl(this.P$);Zl(this.ac);this.YO=this.p6=
|
|
this.MJ=null;this.f5=new qH.wg(16);this.nw=new qH.wg(573);Zl(this.nw);this.ub=this.L5=0;this.depth=new qH.wg(573);Zl(this.depth);this.jg=this.X5=this.h1=this.matches=this.fL=this.rK=this.Xf=this.PB=this.IF=this.mS=0};
|
|
uu8=function(A,L){if(!A||!A.state||L>5||L<0)return A?Rw(A,-2):-2;var B=A.state;if(!A.output||!A.input&&A.j6!==0||B.status===666&&L!==4)return Rw(A,A.Ke===0?-5:-2);B.E9=A;var f=B.Uu;B.Uu=L;if(B.status===42)if(B.wrap===2)A.FO=0,Iw(B,31),Iw(B,139),Iw(B,8),B.lr?(Iw(B,(B.lr.text?1:0)+(B.lr.Jq?2:0)+(B.lr.extra?4:0)+(B.lr.name?8:0)+(B.lr.comment?16:0)),Iw(B,B.lr.time&255),Iw(B,B.lr.time>>8&255),Iw(B,B.lr.time>>16&255),Iw(B,B.lr.time>>24&255),Iw(B,B.level===9?2:B.strategy>=2||B.level<2?4:0),Iw(B,B.lr.os&
|
|
255),B.lr.extra&&B.lr.extra.length&&(Iw(B,B.lr.extra.length&255),Iw(B,B.lr.extra.length>>8&255)),B.lr.Jq&&(A.FO=rn(A.FO,B.D0,B.pending,0)),B.d$=0,B.status=69):(Iw(B,0),Iw(B,0),Iw(B,0),Iw(B,0),Iw(B,0),Iw(B,B.level===9?2:B.strategy>=2||B.level<2?4:0),Iw(B,3),B.status=113);else{var K=8+(B.VA-8<<4)<<8;K|=(B.strategy>=2||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6;B.Dg!==0&&(K|=32);B.status=113;wn(B,K+(31-K%31));B.Dg!==0&&(wn(B,A.FO>>>16),wn(B,A.FO&65535));A.FO=1}if(B.status===69)if(B.lr.extra){for(K=
|
|
B.pending;B.d$<(B.lr.extra.length&65535)&&(B.pending!==B.WA||(B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K)),Nv(A),K=B.pending,B.pending!==B.WA));)Iw(B,B.lr.extra[B.d$]&255),B.d$++;B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K));B.d$===B.lr.extra.length&&(B.d$=0,B.status=73)}else B.status=73;if(B.status===73)if(B.lr.name){K=B.pending;do{if(B.pending===B.WA&&(B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K)),Nv(A),K=B.pending,B.pending===B.WA)){var V=1;break}V=B.d$<B.lr.name.length?
|
|
B.lr.name.charCodeAt(B.d$++)&255:0;Iw(B,V)}while(V!==0);B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K));V===0&&(B.d$=0,B.status=91)}else B.status=91;if(B.status===91)if(B.lr.comment){K=B.pending;do{if(B.pending===B.WA&&(B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K)),Nv(A),K=B.pending,B.pending===B.WA)){V=1;break}V=B.d$<B.lr.comment.length?B.lr.comment.charCodeAt(B.d$++)&255:0;Iw(B,V)}while(V!==0);B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K));V===0&&(B.status=103)}else B.status=
|
|
103;B.status===103&&(B.lr.Jq?(B.pending+2>B.WA&&Nv(A),B.pending+2<=B.WA&&(Iw(B,A.FO&255),Iw(B,A.FO>>8&255),A.FO=0,B.status=113)):B.status=113);if(B.pending!==0){if(Nv(A),A.Ke===0)return B.Uu=-1,0}else if(A.j6===0&&(L<<1)-(L>4?9:0)<=(f<<1)-(f>4?9:0)&&L!==4)return Rw(A,-5);if(B.status===666&&A.j6!==0)return Rw(A,-5);if(A.j6!==0||B.cz!==0||L!==0&&B.status!==666){f=B.strategy===2?nZk(B,L):B.strategy===3?ejD(B,L):tl[B.level].func(B,L);if(f===3||f===4)B.status=666;if(f===1||f===3)return A.Ke===0&&(B.Uu=
|
|
-1),0;if(f===2&&(L===1?(zF(B,2,3),uk(B,256,FC),B.jg===16?(nK(B,B.X5),B.X5=0,B.jg=0):B.jg>=8&&(B.D0[B.pending++]=B.X5&255,B.X5>>=8,B.jg-=8)):L!==5&&(zF(B,0,3),MWD(B,0,0),L===3&&(Zl(B.head),B.cz===0&&(B.Dg=0,B.vF=0,B.h1=0))),Nv(A),A.Ke===0))return B.Uu=-1,0}if(L!==4)return 0;if(B.wrap<=0)return 1;B.wrap===2?(Iw(B,A.FO&255),Iw(B,A.FO>>8&255),Iw(B,A.FO>>16&255),Iw(B,A.FO>>24&255),Iw(B,A.yc&255),Iw(B,A.yc>>8&255),Iw(B,A.yc>>16&255),Iw(B,A.yc>>24&255)):(wn(B,A.FO>>>16),wn(B,A.FO&65535));Nv(A);B.wrap>0&&
|
|
(B.wrap=-B.wrap);return B.pending!==0?0:1};
|
|
kR=function(A){if(!(this instanceof kR))return new kR(A);A=this.options=qH.assign({level:-1,method:8,chunkSize:16384,l8:15,Yvr:8,strategy:0,to:""},A||{});A.raw&&A.l8>0?A.l8=-A.l8:A.O8&&A.l8>0&&A.l8<16&&(A.l8+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.E9=new aaL;this.E9.Ke=0;var L=this.E9;var B=A.level,f=A.method,K=A.l8,V=A.Yvr,J=A.strategy;if(L){var R=1;B===-1&&(B=6);K<0?(R=0,K=-K):K>15&&(R=2,K-=16);if(V<1||V>9||f!==8||K<8||K>15||B<0||B>9||J<0||J>4)L=Rw(L,-2);else{K===8&&(K=9);
|
|
var Z=new zjS;L.state=Z;Z.E9=L;Z.wrap=R;Z.lr=null;Z.VA=K;Z.RC=1<<Z.VA;Z.H$=Z.RC-1;Z.jt=V+7;Z.dV=1<<Z.jt;Z.BY=Z.dV-1;Z.PY=~~((Z.jt+3-1)/3);Z.window=new qH.Vc(Z.RC*2);Z.head=new qH.wg(Z.dV);Z.a$=new qH.wg(Z.RC);Z.IF=1<<V+6;Z.WA=Z.IF*4;Z.D0=new qH.Vc(Z.WA);Z.Xf=1*Z.IF;Z.mS=3*Z.IF;Z.level=B;Z.strategy=J;Z.method=f;if(L&&L.state){L.yc=L.QS=0;L.KW=2;B=L.state;B.pending=0;B.Pc=0;B.wrap<0&&(B.wrap=-B.wrap);B.status=B.wrap?42:113;L.FO=B.wrap===2?0:1;B.Uu=0;if(!AU7){f=Array(16);for(V=J=0;V<28;V++)for(ow[V]=
|
|
J,K=0;K<1<<LX[V];K++)Al[J++]=V;Al[J-1]=V;for(V=J=0;V<16;V++)for(KX[V]=J,K=0;K<1<<fX[V];K++)Bt[J++]=V;for(J>>=7;V<30;V++)for(KX[V]=J<<7,K=0;K<1<<fX[V]-7;K++)Bt[256+J++]=V;for(K=0;K<=15;K++)f[K]=0;for(K=0;K<=143;)FC[K*2+1]=8,K++,f[8]++;for(;K<=255;)FC[K*2+1]=9,K++,f[9]++;for(;K<=279;)FC[K*2+1]=7,K++,f[7]++;for(;K<=287;)FC[K*2+1]=8,K++,f[8]++;Oc8(FC,287,f);for(K=0;K<30;K++)Dl[K*2+1]=5,Dl[K*2]=X3v(K,5);LN0=new xC(FC,LX,257,286,15);oAw=new xC(Dl,fX,0,30,15);Bbk=new xC([],fmL,0,19,7);AU7=!0}B.MJ=new eR(B.lH,
|
|
LN0);B.p6=new eR(B.P$,oAw);B.YO=new eR(B.ac,Bbk);B.X5=0;B.jg=0;EZe(B);B=0}else B=Rw(L,-2);B===0&&(L=L.state,L.lZ=2*L.RC,Zl(L.head),L.gP=tl[L.level].Svn,L.iB=tl[L.level].oY,L.nT=tl[L.level].pzD,L.Ia=tl[L.level].RTD,L.Dg=0,L.vF=0,L.cz=0,L.h1=0,L.lQ=L.V4=2,L.eR=0,L.s9=0);L=B}}else L=-2;if(L!==0)throw Error(St[L]);A.header&&(L=this.E9)&&L.state&&L.state.wrap===2&&(L.state.lr=A.header);if(A.iR){var N;typeof A.iR==="string"?N=$O6(A.iR):KNw.call(A.iR)==="[object ArrayBuffer]"?N=new Uint8Array(A.iR):N=A.iR;
|
|
A=this.E9;V=N;J=V.length;if(A&&A.state)if(N=A.state,L=N.wrap,L===2||L===1&&N.status!==42||N.cz)L=-2;else{L===1&&(A.FO=GR(A.FO,V,J,0));N.wrap=0;J>=N.RC&&(L===0&&(Zl(N.head),N.Dg=0,N.vF=0,N.h1=0),B=new qH.Vc(N.RC),qH.CJ(B,V,J-N.RC,N.RC,0),V=B,J=N.RC);B=A.j6;f=A.d2;K=A.input;A.j6=J;A.d2=0;A.input=V;for(s5(N);N.cz>=3;){V=N.Dg;J=N.cz-2;do N.s9=(N.s9<<N.PY^N.window[V+3-1])&N.BY,N.a$[V&N.H$]=N.head[N.s9],N.head[N.s9]=V,V++;while(--J);N.Dg=V;N.cz=2;s5(N)}N.Dg+=N.cz;N.vF=N.Dg;N.h1=N.cz;N.cz=0;N.lQ=N.V4=2;
|
|
N.eR=0;A.d2=f;A.input=K;A.j6=B;N.wrap=L;L=0}else L=-2;if(L!==0)throw Error(St[L]);this.XgD=!0}};
|
|
VaL=function(A,L){L=L||{};L.O8=!0;L=new kR(L);L.push(A,!0);if(L.err)throw L.msg||St[L.err];return L.result};
|
|
JUQ=function(){var A=g.pf.apply(0,arguments);return A.length===0?function(L){return L}:A.length===1?A[0]:A.reduce(function(L,B){return function(){return L(B.apply(null,g.x7(g.pf.apply(0,arguments))))}})};
|
|
SED=function(){var A=g.pf.apply(0,arguments);return function(L){return function(B,f){function K(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
|
|
B=L(B,f);var V={getState:B.getState,dispatch:function(J){return K.apply(null,[J].concat(g.x7(g.pf.apply(1,arguments))))}};
|
|
f=A.map(function(J){return J(V)});
|
|
K=JUQ.apply(null,g.x7(f))(B.dispatch);return Object.assign({},B,{dispatch:K})}}};
|
|
TR=function(){return Math.random().toString(36).substring(7).split("").join(".")};
|
|
Rq7=function(A){Object.keys(A).forEach(function(L){var B=A[L];if(typeof B(void 0,{type:l8})==="undefined")throw Error('The slice reducer for key "'+L+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof B(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+TR()})==="undefined")throw Error('The slice reducer for key "'+
|
|
L+"\" returned undefined when probed with a random type. Don't try to handle '"+(l8+'\' 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.'));})};
|
|
Z8S=function(A,L,B){function f(){if(F)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 R}
|
|
function K(d){if(typeof d!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof d+"'");if(F)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 w=!0;N===Z&&(N=Z.slice());N.push(d);return function(){if(w){if(F)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.");
|
|
w=!1;N===Z&&(N=Z.slice());N.splice(N.indexOf(d),1);Z=null}}}
|
|
function V(d){if(typeof d!=="object"||d===null)var w=!1;else{for(w=d;Object.getPrototypeOf(w)!==null;)w=Object.getPrototypeOf(w);w=Object.getPrototypeOf(d)===w}if(!w)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof d+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
if(typeof d.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(F)throw Error("Reducers may not dispatch actions.");try{F=!0,R=J(R,d)}finally{F=!1}w=Z=N;for(var r=0;r<w.length;r++)(0,w[r])();return d}
|
|
if(typeof L==="function"&&typeof B==="function"||typeof B==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof L==="function"&&typeof B==="undefined"&&(B=L,L=void 0);if(typeof B!=="undefined"){if(typeof B!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
|
|
typeof B+"'");return B(Z8S)(A,L)}if(typeof A!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof A+"'");var J=A,R=L,Z=[],N=Z,F=!1;V({type:l8});var D={},I=(D.dispatch=V,D.subscribe=K,D.getState=f,D.replaceReducer=function(d){if(typeof d!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof d);J=d;V({type:Nb8});return I},D[FNL]=function(){var d={};
|
|
return d.subscribe=function(w){function r(){w.next&&w.next(f())}
|
|
if(typeof w!=="object"||w===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof w+"'");r();return{unsubscribe:K(r)}},d[FNL]=function(){return this},d},D);
|
|
return I};
|
|
DBC=function(A){return A?(A=A.privateDoNotAccessOrElseSafeScriptWrappedValue)?t5C(A):null:null};
|
|
mc=function(A){return A?(A=A.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?jS(A):null:null};
|
|
ImC=function(A){A=dBk(A);return lO(A)};
|
|
g.Q4=function(A){A=dBk(A);return jS(A)};
|
|
dBk=function(A){return A===null?"null":A===void 0?"undefined":A};
|
|
wDC=function(A){this.yf=N$(A)};
|
|
g.CX=function(A){this.name=A};
|
|
pDe=function(A){this.yf=N$(A)};
|
|
i8=function(A){this.yf=N$(A)};
|
|
$R=function(A){this.yf=N$(A)};
|
|
yU8=function(A){this.yf=N$(A)};
|
|
XC=function(A){this.yf=N$(A)};
|
|
O5=function(A){this.yf=N$(A)};
|
|
E5=function(A){this.yf=N$(A)};
|
|
ct=function(A){this.yf=N$(A)};
|
|
Mv=function(A){this.yf=N$(A)};
|
|
YR=function(A){this.yf=N$(A)};
|
|
U5=function(A){this.yf=N$(A)};
|
|
Wt=function(A){this.yf=N$(A)};
|
|
vt=function(A){this.yf=N$(A)};
|
|
var p6Q=function(A,L,B,f,K,V,J,R,Z,N){return jE[S[2]](this,1,A,L,B,f,K,V,J,R,Z,N)};
|
|
qv=function(A){this.yf=N$(A)};
|
|
Pt=function(A){this.yf=N$(A)};
|
|
xR=function(A){this.yf=N$(A,500)};
|
|
et=function(A){this.yf=N$(A)};
|
|
nX=function(A){this.yf=N$(A)};
|
|
g.zR=function(A){this.yf=N$(A)};
|
|
j$L=function(){return g.bB("yt.ads.biscotti.lastId_")||""};
|
|
gAC=function(A){g.hf("yt.ads.biscotti.lastId_",A)};
|
|
aw=function(){var A=arguments,L=u8;A.length>1?L[A[0]]=A[1]:A.length===1&&Object.assign(L,A[0])};
|
|
g.A_=function(A,L){return A in u8?u8[A]:L};
|
|
Lg=function(A){var L=u8.EXPERIMENT_FLAGS;return L?L[A]:void 0};
|
|
G9D=function(A){oM.forEach(function(L){return L(A)})};
|
|
g.fg=function(A){return A&&window.yterr?function(){try{return A.apply(this,arguments)}catch(L){g.B7(L)}}:A};
|
|
g.B7=function(A){var L=g.bB("yt.logging.errors.log");L?L(A,"ERROR",void 0,void 0,void 0,void 0,void 0):(L=g.A_("ERRORS",[]),L.push([A,"ERROR",void 0,void 0,void 0,void 0,void 0]),aw("ERRORS",L));G9D(A)};
|
|
Kg=function(A,L,B,f,K){var V=g.bB("yt.logging.errors.log");V?V(A,"WARNING",L,B,f,void 0,K):(V=g.A_("ERRORS",[]),V.push([A,"WARNING",L,B,f,void 0,K]),aw("ERRORS",V))};
|
|
Vh=function(A,L){L=A.split(L);for(var B={},f=0,K=L.length;f<K;f++){var V=L[f].split("=");if(V.length===1&&V[0]||V.length===2)try{var J=rUL(V[0]||""),R=rUL(V[1]||"");if(J in B){var Z=B[J];Array.isArray(Z)?g.VB(Z,R):B[J]=[Z,R]}else B[J]=R}catch(I){var N=I,F=V[0],D=String(Vh);N.args=[{key:F,value:V[1],query:A,method:s$7===D?"unchanged":D}];H8y.hasOwnProperty(F)||Kg(N)}}return B};
|
|
J_=function(A){var L=[];g.H6(A,function(B,f){var K=g.v5(f);g.yB(Array.isArray(B)?B:[B],function(V){V==""?L.push(K):L.push(K+"="+g.v5(V))})});
|
|
return L.join("&")};
|
|
I0=function(A){A.charAt(0)==="?"&&(A=A.substring(1));return Vh(A,"&")};
|
|
Sk=function(A){return A.split(",").map(function(L){return I0(L)})};
|
|
g.RM=function(A){return A.indexOf("?")!==-1?(A=(A||"").split("#")[0],A=A.split("?",2),I0(A.length>1?A[1]:A[0])):{}};
|
|
Zp=function(A,L){return hqk(A,L||{},!0)};
|
|
Ns=function(A,L){return hqk(A,L||{},!1)};
|
|
hqk=function(A,L,B){var f=A.split("#",2);A=f[0];f=f.length>1?"#"+f[1]:"";var K=A.split("?",2);A=K[0];K=I0(K[1]||"");for(var V in L)if(B||!g.kg(K,V))K[V]=L[V];return g.ip(A,K)+f};
|
|
Fa=function(A){if(!L)var L=window.location.href;var B=g.bp(A)[1]||null,f=g.tW(A);B&&f?(A=g.bp(A),L=g.bp(L),A=A[3]==L[3]&&A[1]==L[1]&&A[4]==L[4]):A=f?g.tW(L)===f&&(Number(g.bp(L)[4]||null)||null)===(Number(g.bp(A)[4]||null)||null):!0;return A};
|
|
Dp=function(A){A||(A=document.location.href);A=g.bp(A)[1]||null;return A!==null&&A==="https"};
|
|
dW=function(A){A=b88(A);return A===null?!1:A[0]==="com"&&A[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
|
|
ta0=function(A){A=b88(A);return A===null?!1:A[1]==="google"?!0:A[2]==="google"?A[0]==="au"&&A[1]==="com"?!0:A[0]==="uk"&&A[1]==="co"?!0:!1:!1};
|
|
b88=function(A){A=g.tW(A);return A!==null?A.split(".").reverse():null};
|
|
rUL=function(A){return A&&A.match(k91)?A:qw(A)};
|
|
pg=function(A){var L=IM;A=A===void 0?j$L():A;var B=Object,f=B.assign,K=wW(L);var V=L.N;try{var J=V.screenX;var R=V.screenY}catch(Q){}try{var Z=V.outerWidth;var N=V.outerHeight}catch(Q){}try{var F=V.innerWidth;var D=V.innerHeight}catch(Q){}try{var I=V.screenLeft;var d=V.screenTop}catch(Q){}try{F=V.innerWidth,D=V.innerHeight}catch(Q){}try{var w=V.screen.availWidth;var r=V.screen.availTop}catch(Q){}V=[I,d,J,R,w,r,Z,N,F,D];J=bve(!1,L.N.top);R={};var h=h===void 0?g.rI:h;Z=new PM;"SVGElement"in h&&"createElementNS"in
|
|
h.document&&Z.set(0);N=cOD();N["allow-top-navigation-by-user-activation"]&&Z.set(1);N["allow-popups-to-escape-sandbox"]&&Z.set(2);h.crypto&&h.crypto.subtle&&Z.set(3);"TextDecoder"in h&&"TextEncoder"in h&&Z.set(4);h=fa1(Z);L=(R.bc=h,R.bih=J.height,R.biw=J.width,R.brdim=V.join(),R.vis=GV(L.W),R.wgl=!!qo.WebGLRenderingContext,R);B=f.call(B,K,L);B.ca_type="image";A&&(B.bid=A);return B};
|
|
wW=function(A){var L={};L.dt=TbC;L.flash="0";a:{try{var B=A.N.top.location.href}catch(N){A=2;break a}A=B?B===A.W.location.href?0:1:2}L=(L.frm=A,L);try{L.u_tz=-(new Date).getTimezoneOffset();try{var f=qo.history.length}catch(N){f=0}L.u_his=f;var K;L.u_h=(K=qo.screen)==null?void 0:K.height;var V;L.u_w=(V=qo.screen)==null?void 0:V.width;var J;L.u_ah=(J=qo.screen)==null?void 0:J.availHeight;var R;L.u_aw=(R=qo.screen)==null?void 0:R.availWidth;var Z;L.u_cd=(Z=qo.screen)==null?void 0:Z.colorDepth}catch(N){}return L};
|
|
mB8=function(){if(!lmE)return null;var A=lmE();return"open"in A?A:null};
|
|
g.jk=function(A){switch(yh(A)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
|
|
yh=function(A){return A&&"status"in A?A.status:-1};
|
|
g.gW=function(A,L){typeof A==="function"&&(A=g.fg(A));return window.setTimeout(A,L)};
|
|
g.Gc=function(A,L){typeof A==="function"&&(A=g.fg(A));return window.setInterval(A,L)};
|
|
g.rW=function(A){window.clearTimeout(A)};
|
|
g.sQ=function(A){window.clearInterval(A)};
|
|
g.h_=function(A){A=H7(A);return typeof A==="string"&&A==="false"?!1:!!A};
|
|
g.bl=function(A,L){A=H7(A);return A===void 0&&L!==void 0?L:Number(A||0)};
|
|
t_=function(){return g.A_("EXPERIMENTS_TOKEN","")};
|
|
H7=function(A){return g.A_("EXPERIMENT_FLAGS",{})[A]};
|
|
kz=function(){for(var A=[],L=g.A_("EXPERIMENTS_FORCED_FLAGS",{}),B=g.m(Object.keys(L)),f=B.next();!f.done;f=B.next())f=f.value,A.push({key:f,value:String(L[f])});B=g.A_("EXPERIMENT_FLAGS",{});f=g.m(Object.keys(B));for(var K=f.next();!K.done;K=f.next())K=K.value,K.startsWith("force_")&&L[K]===void 0&&A.push({key:K,value:String(B[K])});return A};
|
|
Tc=function(A,L,B,f,K,V,J,R,Z){function N(){(F&&"readyState"in F?F.readyState:0)===4&&L&&g.fg(L)(F)}
|
|
B=B===void 0?"GET":B;f=f===void 0?"":f;R=R===void 0?!1:R;var F=mB8();if(!F)return null;"onloadend"in F?F.addEventListener("loadend",N,!1):F.onreadystatechange=N;g.h_("debug_forward_web_query_parameters")&&(A=Q$7(A));F.open(B,A,!0);V&&(F.responseType=V);J&&(F.withCredentials=!0);B=B==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(K=CXk(A,K))for(var D in K)F.setRequestHeader(D,K[D]),"content-type"===D.toLowerCase()&&(B=!1);B&&F.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
|
|
Z&&"onprogress"in F&&(F.onprogress=function(){Z(F.responseText)});
|
|
if(R&&"setAttributionReporting"in XMLHttpRequest.prototype){A={eventSourceEligible:!0,triggerEligible:!1};try{F.setAttributionReporting(A)}catch(I){Kg(I)}}F.send(f);return F};
|
|
CXk=function(A,L){L=L===void 0?{}:L;var B=Fa(A),f=g.A_("INNERTUBE_CLIENT_NAME"),K=g.h_("web_ajax_ignore_global_headers_if_set"),V;for(V in i8E){var J=g.A_(i8E[V]),R=V==="X-Goog-AuthUser"||V==="X-Goog-PageId";V!=="X-Goog-Visitor-Id"||J||(J=g.A_("VISITOR_DATA"));var Z;if(!(Z=!J)){if(!(Z=B||(g.tW(A)?!1:!0))){Z=A;var N;if(N=g.h_("add_auth_headers_to_remarketing_google_dot_com_ping")&&V==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY")&&ta0(Z))Z=ks(Z)||"",Z=Z.split("/"),
|
|
Z="/"+(Z.length>1?Z[1]:""),N=Z==="/pagead";Z=N?!0:!1}Z=!Z}Z||K&&L[V]!==void 0||f==="TVHTML5_UNPLUGGED"&&R||(L[V]=J)}"X-Goog-EOM-Visitor-Id"in L&&"X-Goog-Visitor-Id"in L&&delete L["X-Goog-Visitor-Id"];if(B||!g.tW(A))L["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(B||!g.tW(A)){try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(D){}F&&(L["X-YouTube-Time-Zone"]=F)}document.location.hostname.endsWith("youtubeeducation.com")||!B&&g.tW(A)||(L["X-YouTube-Ad-Signals"]=
|
|
J_(pg()));return L};
|
|
mM=function(A,L){L.method="POST";L.postParams||(L.postParams={});return g.ll(A,L)};
|
|
O8Q=function(A,L){if(window.fetch&&L.format!=="XML"){var B={method:L.method||"GET",credentials:"same-origin"};L.headers&&(B.headers=L.headers);L.priority&&(B.priority=L.priority);A=$B1(A,L);var f=XDC(A,L);f&&(B.body=f);L.withCredentials&&(B.credentials="include");var K=L.context||g.rI,V=!1,J;fetch(A,B).then(function(R){if(!V){V=!0;J&&g.rW(J);var Z=R.ok,N=function(F){F=F||{};Z?L.onSuccess&&L.onSuccess.call(K,F,R):L.onError&&L.onError.call(K,F,R);L.onFinish&&L.onFinish.call(K,F,R)};
|
|
(L.format||"JSON")==="JSON"&&(Z||R.status>=400&&R.status<500)?R.json().then(N,function(){N(null)}):N(null)}}).catch(function(){L.onError&&L.onError.call(K,{},{})});
|
|
A=L.timeout||0;L.onFetchTimeout&&A>0&&(J=g.gW(function(){V||(V=!0,g.rW(J),L.onFetchTimeout.call(L.context||g.rI))},A))}else g.ll(A,L)};
|
|
g.ll=function(A,L){var B=L.format||"JSON";A=$B1(A,L);var f=XDC(A,L),K=!1,V=EA0(A,function(Z){if(!K){K=!0;R&&g.rW(R);var N=g.jk(Z),F=null,D=400<=Z.status&&Z.status<500,I=500<=Z.status&&Z.status<600;if(N||D||I)F=cU8(A,B,Z,L.convertToSafeHtml);N&&(N=MaD(B,Z,F));F=F||{};D=L.context||g.rI;N?L.onSuccess&&L.onSuccess.call(D,Z,F):L.onError&&L.onError.call(D,Z,F);L.onFinish&&L.onFinish.call(D,Z,F)}},L.method,f,L.headers,L.responseType,L.withCredentials,!1,L.onProgress);
|
|
f=L.timeout||0;if(L.onTimeout&&f>0){var J=L.onTimeout;var R=g.gW(function(){K||(K=!0,V.abort(),g.rW(R),J.call(L.context||g.rI,V))},f)}return V};
|
|
$B1=function(A,L){L.includeDomain&&(A=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+A);var B=g.A_("XSRF_FIELD_NAME");if(L=L.urlParams)L[B]&&delete L[B],A=Zp(A,L);return A};
|
|
XDC=function(A,L){var B=g.A_("XSRF_FIELD_NAME"),f=g.A_("XSRF_TOKEN"),K=L.postBody||"",V=L.postParams,J=g.A_("XSRF_FIELD_NAME"),R;L.headers&&(R=L.headers["Content-Type"]);L.excludeXsrf||g.tW(A)&&!L.withCredentials&&g.tW(A)!==document.location.hostname||L.method!=="POST"||R&&R!=="application/x-www-form-urlencoded"||L.postParams&&L.postParams[J]||(V||(V={}),V[B]=f);(g.h_("ajax_parse_query_data_only_when_filled")&&V&&Object.keys(V).length>0||V)&&typeof K==="string"&&(K=I0(K),g.Xc(K,V),K=L.postBodyFormat&&
|
|
L.postBodyFormat==="JSON"?JSON.stringify(K):g.CC(K));V=K||V&&!g.mi(V);!YEe&&V&&L.method!=="POST"&&(YEe=!0,g.B7(Error("AJAX request with postData should use POST")));return K};
|
|
cU8=function(A,L,B,f){var K=null;switch(L){case "JSON":try{var V=B.responseText}catch(J){throw f=Error("Error reading responseText"),f.params=A,Kg(f),J;}A=B.getResponseHeader("Content-Type")||"";V&&A.indexOf("json")>=0&&(V.substring(0,5)===")]}'\n"&&(V=V.substring(5)),K=JSON.parse(V));break;case "XML":if(A=(A=B.responseXML)?UB8(A):null)K={},g.yB(A.getElementsByTagName("*"),function(J){K[J.tagName]=WNE(J)})}f&&vAe(K);
|
|
return K};
|
|
vAe=function(A){if(g.QK(A))for(var L in A)L==="html_content"||dXQ(L,"_html")?A[L]=lO(A[L]):vAe(A[L])};
|
|
MaD=function(A,L,B){if(L&&L.status===204)return!0;switch(A){case "JSON":return!!B;case "XML":return Number(B&&B.return_code)===0;case "RAW":return!0;default:return!!B}};
|
|
UB8=function(A){return A?(A=("responseXML"in A?A.responseXML:A).getElementsByTagName("root"))&&A.length>0?A[0]:null:null};
|
|
WNE=function(A){var L="";g.yB(A.childNodes,function(B){L+=B.nodeValue});
|
|
return L};
|
|
Q$7=function(A){var L=window.location.search,B=g.tW(A);g.h_("debug_handle_relative_url_for_query_forward_killswitch")||!B&&Fa(A)&&(B=document.location.hostname);var f=ks(A);f=(B=B&&(B.endsWith("youtube.com")||B.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!B||f)return A;var K=I0(L),V={};g.yB(qEL,function(J){K[J]&&(V[J]=K[J])});
|
|
return Ns(A,V)};
|
|
Cg=function(A,L){var B=g.is(L),f;return(new g.QX(function(K,V){B.onSuccess=function(J){g.jk(J)?K(new PXD(J)):V(new Qh("Request failed, status="+yh(J),"net.badstatus",J))};
|
|
B.onError=function(J){V(new Qh("Unknown request error","net.unknown",J))};
|
|
B.onTimeout=function(J){V(new Qh("Request timed out","net.timeout",J))};
|
|
f=g.ll(A,B)})).c9(function(K){if(K instanceof EE){var V;
|
|
(V=f)==null||V.abort()}return $A(K)})};
|
|
g.il=function(A,L,B,f,K,V){function J(Z,N,F){return Z.c9(function(D){if(N<=0||yh(D.xhr)===403)return $A(new Qh("Request retried too many times","net.retryexhausted",D.xhr,D));var I=Math.pow(2,B-N+1)*F,d=K>0?Math.min(K,I):I;return R(F).then(function(){V&&V(D,N-1);return J(Cg(A,L),N-1,d)})})}
|
|
function R(Z){return new g.QX(function(N){setTimeout(N,Z)})}
|
|
K=K===void 0?-1:K;return J(Cg(A,L),B-1,f)};
|
|
Qh=function(A,L,B){Ww.call(this,A+", errorCode="+L);this.errorCode=L;this.xhr=B;this.name="PromiseAjaxError"};
|
|
PXD=function(A){this.xhr=A};
|
|
$z=function(A){this.N=A===void 0?null:A;this.V=0;this.W=null};
|
|
Xa=function(A){var L=new $z;A=A===void 0?null:A;L.V=2;L.W=A===void 0?null:A;return L};
|
|
OQ=function(A){var L=new $z;A=A===void 0?null:A;L.V=1;L.W=A===void 0?null:A;return L};
|
|
g.Ms=function(A,L,B,f,K){EQ||c7.set(""+A,L,{rG:B,path:"/",domain:f===void 0?"youtube.com":f,secure:K===void 0?!1:K})};
|
|
g.Yz=function(A,L){if(!EQ)return c7.get(""+A,L)};
|
|
g.UQ=function(A,L,B){EQ||c7.remove(""+A,L===void 0?"/":L,B===void 0?"youtube.com":B)};
|
|
xBk=function(){if(!c7.isEnabled())return!1;if(!c7.isEmpty())return!0;c7.set("TESTCOOKIESENABLED","1",{rG:60});if(c7.get("TESTCOOKIESENABLED")!=="1")return!1;c7.remove("TESTCOOKIESENABLED");return!0};
|
|
g.y=function(A,L){if(A)return A[L.name]};
|
|
W7=function(A){var L=g.A_("INNERTUBE_HOST_OVERRIDE");L&&(A=String(L)+String(Tr(A)));return A};
|
|
eqS=function(A){var L={};g.h_("json_condensed_response")&&(L.prettyPrint="false");return A=Ns(A,L)};
|
|
v7=function(A,L){var B=B===void 0?{}:B;A={method:L===void 0?"POST":L,mode:Fa(A)?"same-origin":"cors",credentials:Fa(A)?"same-origin":"include"};L={};for(var f=g.m(Object.keys(B)),K=f.next();!K.done;K=f.next())K=K.value,B[K]&&(L[K]=B[K]);Object.keys(L).length>0&&(A.headers=L);return A};
|
|
qs=function(){var A=/Chrome\/(\d+)/.exec(g.fa());return A?parseFloat(A[1]):NaN};
|
|
P7=function(){var A=/\sCobalt\/(\S+)\s/.exec(g.fa());if(!A)return NaN;var L=[];A=g.m(A[1].split("."));for(var B=A.next();!B.done;B=A.next())B=parseInt(B.value,10),B>=0&&L.push(B);return parseFloat(L.join("."))};
|
|
ek=function(){return g.xz("android")&&g.xz("chrome")&&!(g.xz("trident/")||g.xz("edge/"))&&!g.xz("cobalt")};
|
|
g.ng=function(){return g.xz("cobalt")};
|
|
zc=function(){return g.xz("cobalt")&&g.xz("appletv")};
|
|
ul=function(){return g.xz("(ps3; leanback shell)")||g.xz("ps3")&&g.ng()};
|
|
nAL=function(){return g.xz("(ps4; leanback shell)")||g.xz("ps4")&&g.ng()};
|
|
g.zqD=function(){return g.ng()&&(g.xz("ps4 vr")||g.xz("ps4 pro vr"))};
|
|
aM=function(){var A=/WebKit\/([0-9]+)/.exec(g.fa());return!!(A&&parseInt(A[1],10)>=600)};
|
|
AK=function(){var A=/WebKit\/([0-9]+)/.exec(g.fa());return!!(A&&parseInt(A[1],10)>=602)};
|
|
ut7=function(){return g.xz("iemobile")||g.xz("windows phone")&&g.xz("edge")};
|
|
B9=function(){return(Ln||oX)&&g.xz("applewebkit")&&!g.xz("version")&&(!g.xz("safari")||g.xz("gsa/"))};
|
|
Kn=function(){return g.fn&&g.xz("version/")};
|
|
Vz=function(){return g.xz("smart-tv")&&g.xz("samsung")};
|
|
g.xz=function(A){var L=g.fa();return L?L.toLowerCase().indexOf(A)>=0:!1};
|
|
JK=function(){return kIw()||B9()||Kn()?!0:g.A_("EOM_VISITOR_DATA")?!1:!0};
|
|
Sw=function(A,L){return L===void 0||L===null?A:L==="1"||L===!0||L===1||L==="True"?!0:!1};
|
|
RX=function(A,L,B){for(var f in B)if(B[f]==L)return B[f];return A};
|
|
ZG=function(A,L){return L===void 0||L===null?A:Number(L)};
|
|
NE=function(A,L){return L===void 0||L===null?A:L.toString()};
|
|
F$=function(A,L){if(L){if(A==="fullwidth")return Infinity;if(A==="fullheight")return 0}return A&&(L=A.match(amy))&&(A=Number(L[2]),L=Number(L[1]),!isNaN(A)&&!isNaN(L)&&A>0)?L/A:NaN};
|
|
DG=function(A){var L=A.docid||A.video_id||A.videoId||A.id;if(L)return L;L=A.raw_player_response;L||(A=A.player_response)&&(L=JSON.parse(A));return L&&L.videoDetails&&L.videoDetails.videoId||null};
|
|
Auv=function(A){return dL(A,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
|
|
g.IX=function(A){return A==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||A==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
|
|
dL=function(A,L){L=(L===void 0?0:L)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(L="EMBEDDED_PLAYER_MODE_PFL");var B=A.raw_embedded_player_response;if(!B&&(A=A.embedded_player_response))try{B=JSON.parse(A)}catch(f){return L}return B?RX(L,B.embeddedPlayerMode,L71):L};
|
|
pn=function(A){Ww.call(this,A.message||A.description||A.name);this.isMissing=A instanceof wL;this.isTimeout=A instanceof Qh&&A.errorCode=="net.timeout";this.isCanceled=A instanceof EE};
|
|
wL=function(){Ww.call(this,"Biscotti ID is missing from server")};
|
|
oMk=function(){if(g.h_("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!JK())return Error("User has not consented - not fetching biscotti id.");var A=g.A_("PLAYER_VARS",{});if(g.QB(A,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Auv(A))return Error("Biscotti id fetching has been disabled for pfl.")};
|
|
VAv=function(){var A=oMk();if(A!==void 0)return $A(A);yz||(yz=Cg("//googleads.g.doubleclick.net/pagead/id",Bsw).then(fH8).c9(function(L){return K7C(2,L)}));
|
|
return yz};
|
|
fH8=function(A){A=A.xhr.responseText;if(!zk(A,")]}'"))throw new wL;A=JSON.parse(A.substr(4));if((A.type||1)>1)throw new wL;A=A.id;gAC(A);yz=OQ(A);JuL(18E5,2);return A};
|
|
K7C=function(A,L){L=new pn(L);gAC("");yz=Xa(L);A>0&&JuL(12E4,A-1);throw L;};
|
|
JuL=function(A,L){g.gW(function(){Cg("//googleads.g.doubleclick.net/pagead/id",Bsw).then(fH8,function(B){return K7C(L,B)}).c9(g.x9)},A)};
|
|
Skw=function(){try{var A=g.bB("yt.ads.biscotti.getId_");return A?A():VAv()}catch(L){return $A(L)}};
|
|
Z2D=function(A){A&&(A.dataset?A.dataset[Rv6()]="true":TIk(A))};
|
|
Ns8=function(A){return A?A.dataset?A.dataset[Rv6()]:A.getAttribute("data-loaded"):null};
|
|
Rv6=function(){return F7C.loaded||(F7C.loaded="loaded".replace(/\-([a-z])/g,function(A,L){return L.toUpperCase()}))};
|
|
DW8=function(){var A=document;if("visibilityState"in A)return A.visibilityState;var L=jw+"VisibilityState";if(L in A)return A[L]};
|
|
gL=function(A,L){var B;K9(A,function(f){B=L[f];return!!B});
|
|
return B};
|
|
GT=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()};
|
|
H9=function(A){var L;g.rL()?sS()==A&&(L=document):L=A;return L&&(A=gL(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],L))?(L=A.call(L),L instanceof Promise?L:Promise.resolve()):Promise.resolve()};
|
|
dWQ=function(A){return g.Pw(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(L){return"on"+L.toLowerCase()in A})};
|
|
IH1=function(){var A=document;return g.Pw(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(L){return"on"+L.toLowerCase()in A})};
|
|
g.rL=function(){return!!gL(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
|
|
sS=function(A){A=A===void 0?!1:A;var L=gL(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(A)for(;L&&L.shadowRoot;)L=L.shadowRoot.fullscreenElement;return L?L:null};
|
|
hK=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 L in A)L in wc0||(this[L]=A[L]);this.scale=A.scale;this.rotation=A.rotation;var B=A.target||A.srcElement;B&&B.nodeType==3&&(B=B.parentNode);this.target=B;var f=A.relatedTarget;
|
|
if(f)try{f=f.nodeName?f:null}catch(K){f=null}else this.type=="mouseover"?f=A.fromElement:this.type=="mouseout"&&(f=A.toElement);this.relatedTarget=f;this.clientX=A.clientX!=void 0?A.clientX:A.pageX;this.clientY=A.clientY!=void 0?A.clientY:A.pageY;this.keyCode=A.keyCode?A.keyCode:A.which;this.charCode=A.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=A.altKey;this.ctrlKey=A.ctrlKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.N=A.pageX;this.W=A.pageY}}catch(K){}};
|
|
pcy=function(A){if(document.body&&document.documentElement){var L=document.body.scrollTop+document.documentElement.scrollTop;A.N=A.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);A.W=A.clientY+L}};
|
|
yu1=function(A,L,B,f){f=f===void 0?{}:f;A.addEventListener&&(L!="mouseenter"||"onmouseenter"in document?L!="mouseleave"||"onmouseenter"in document?L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"):L="mouseout":L="mouseover");return ls(bt,function(K){var V=typeof K[4]==="boolean"&&K[4]==!!f,J=g.QK(K[4])&&g.QK(f)&&g.Cx(K[4],f);return!!K.length&&K[0]==A&&K[1]==L&&K[2]==B&&(V||J)})};
|
|
g.tK=function(A,L,B,f){f=f===void 0?{}:f;if(!A||!A.addEventListener&&!A.attachEvent)return"";var K=yu1(A,L,B,f);if(K)return K;K=++jQ8.count+"";var V=!(L!="mouseenter"&&L!="mouseleave"||!A.addEventListener||"onmouseenter"in document);var J=V?function(R){R=new hK(R);if(!c4(R.relatedTarget,function(Z){return Z==A},!0))return R.currentTarget=A,R.type=L,B.call(A,R)}:function(R){R=new hK(R);
|
|
R.currentTarget=A;return B.call(A,R)};
|
|
J=g.fg(J);A.addEventListener?(L=="mouseenter"&&V?L="mouseover":L=="mouseleave"&&V?L="mouseout":L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"),gML()||typeof f==="boolean"?A.addEventListener(L,J,f):A.addEventListener(L,J,!!f.capture)):A.attachEvent("on"+L,J);bt[K]=[A,L,B,J,f];return K};
|
|
ruC=function(A){return GXE(A,function(L){return g.SR(L,"ytp-ad-has-logging-urls")})};
|
|
GXE=function(A,L){var B=document.body||document;return g.tK(B,"click",function(f){var K=c4(f.target,function(V){return V===B||L(V)},!0);
|
|
K&&K!==B&&!K.disabled&&(f.currentTarget=K,A.call(K,f))})};
|
|
g.k_=function(A){A&&(typeof A=="string"&&(A=[A]),g.yB(A,function(L){if(L in bt){var B=bt[L],f=B[0],K=B[1],V=B[3];B=B[4];f.removeEventListener?gML()||typeof B==="boolean"?f.removeEventListener(K,V,B):f.removeEventListener(K,V,!!B.capture):f.detachEvent&&f.detachEvent("on"+K,V);delete bt[L]}}))};
|
|
TT=function(A){for(var L in bt)bt[L][0]==A&&g.k_(L)};
|
|
lt=function(A){A=A||window.event;var L;A.composedPath&&typeof A.composedPath==="function"?L=A.composedPath():L=A.path;L&&L.length?A=L[0]:(A=A||window.event,A=A.target||A.srcElement,A.nodeType==3&&(A=A.parentNode));return A};
|
|
mu=function(A){this.X=A;this.N=null;this.U=0;this.T=null;this.D=0;this.W=[];for(A=0;A<4;A++)this.W.push(0);this.V=0;this.qp=g.tK(window,"mousemove",(0,g.X9)(this.yj,this));this.G=g.Gc((0,g.X9)(this.Wn,this),25)};
|
|
Qz=function(A){g.Y.call(this);this.T=[];this.mH=A||this};
|
|
Cn=function(A,L,B,f){for(var K=0;K<B.length;K++)A.Y(L,B[K],f)};
|
|
g.$_=function(A,L){for(;A.T.length;){var B=A.T.pop(),f=void 0;L&&sQQ()&&(f={passive:!0});B.target.removeEventListener(B.name,B.callback,f)}};
|
|
g.OS=function(A,L,B){var f=B&&B>0?B:0;B=f?Date.now()+f*1E3:0;if((f=f?g.X$.lT():g.X$.Lo())&&window.JSON){typeof L!=="string"&&(L=JSON.stringify(L,void 0));try{f.set(A,L,B)}catch(K){f.remove(A)}}};
|
|
g.ES=function(A){var L=g.X$.Lo(),B=g.X$.lT();if(!L&&!B||!window.JSON)return null;try{var f=L.get(A)}catch(K){}if(typeof f!=="string")try{f=B.get(A)}catch(K){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(K){}return f};
|
|
H2y=function(){var A=g.X$.lT();if(A&&(A=A.hY("yt-player-quality")))return A.creation};
|
|
g.c9=function(A){try{var L=g.X$.Lo(),B=g.X$.lT();L&&L.remove(A);B&&B.remove(A)}catch(f){}};
|
|
g.ME=function(){return g.ES("yt-remote-session-screen-id")};
|
|
hvy=function(A){var L=this;this.W=void 0;this.N=!1;A.addEventListener("beforeinstallprompt",function(B){B.preventDefault();L.W=B});
|
|
A.addEventListener("appinstalled",function(){L.N=!0},{once:!0})};
|
|
Y_=function(){if(!g.rI.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.rI.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.rI.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.rI.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.rI.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(A){return"WEB_DISPLAY_MODE_UNKNOWN"}};
|
|
US=function(){this.qH=!0};
|
|
b21=function(){US.instance||(US.instance=new US);return US.instance};
|
|
tA0=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}};
|
|
kX6=function(){this.N=g.A_("ALT_PREF_COOKIE_NAME","PREF");this.W=g.A_("ALT_PREF_COOKIE_DOMAIN","youtube.com");var A=g.Yz(this.N);A&&this.parse(A)};
|
|
g.v9=function(){W9||(W9=new kX6);return W9};
|
|
P9=function(A,L){var B="f"+(Math.floor(A/31)+1);A=1<<A%31;var f=Tsw(B)||0;f=L?f|A:f&~A;f===0?delete qE[B]:(L=f.toString(16),qE[B]=L.toString())};
|
|
x_=function(A){if(/^f([1-9][0-9]*)$/.test(A))throw Error("ExpectedRegexMatch: "+A);};
|
|
ew=function(A){if(!/^\w+$/.test(A))throw Error("ExpectedRegexMismatch: "+A);};
|
|
Tsw=function(A){A=qE[A]!==void 0?qE[A].toString():null;return A!=null&&/^[A-Fa-f0-9]+$/.test(A)?parseInt(A,16):null};
|
|
lHk=function(){var A=g.rI.navigator;return A?A.connection:void 0};
|
|
QQ1=function(){var A=lHk();if(A){var L=mWe[A.type||"unknown"]||"CONN_UNKNOWN";A=mWe[A.effectiveType||"unknown"]||"CONN_UNKNOWN";L==="CONN_CELLULAR_UNKNOWN"&&A!=="CONN_UNKNOWN"&&(L=A);if(L!=="CONN_UNKNOWN")return L;if(A!=="CONN_UNKNOWN")return A}};
|
|
g.Fk=function(A,L){return pw[S[2]](this,21,A,L)};
|
|
i2k=function(){var A=lHk();if(A!=null&&A.effectiveType)return C0L.hasOwnProperty(A.effectiveType)?C0L[A.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
|
|
g.iL=function(A){var L=g.pf.apply(1,arguments);var B=Error.call(this,A);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.args=[].concat(g.x7(L));Object.setPrototypeOf(this,this.constructor.prototype)};
|
|
g.zT=function(){try{return g.nn(),!0}catch(A){return!1}};
|
|
g.nn=function(A){if(g.A_("DATASYNC_ID")!==void 0)return g.A_("DATASYNC_ID");throw new g.iL("Datasync ID not set",A===void 0?"unknown":A);};
|
|
ut=function(){this.N=new WeakMap};
|
|
g.AR=function(A,L,B){return aX(L,0,B)};
|
|
$WS=function(A){var L=g.bB("yt.scheduler.instance.addImmediateJob");L?L(A):A()};
|
|
Ls=function(){ut.apply(this,arguments)};
|
|
g.ol=function(){Ls.instance||(Ls.instance=new Ls);return Ls.instance};
|
|
g.Bf=function(){return!!g.bB("yt.scheduler.instance")};
|
|
aX=function(A,L,B){B!==void 0&&Number.isNaN(Number(B))&&(B=void 0);var f=g.bB("yt.scheduler.instance.addJob");return f?f(A,L,B):B===void 0?(A(),NaN):g.gW(A,B||0)};
|
|
fs=function(A){var L=g.bB("yt.scheduler.instance.setPriorityThreshold");L&&L(A)};
|
|
Ks=function(A){this.N=(A=g.cC(A))?new Qd(A):null;this.W=document.domain||window.location.hostname};
|
|
JR=function(){var A;return(A=Vw())==null?void 0:A.get("LAST_RESULT_ENTRY_KEY",!0)};
|
|
Nx=function(A){Sd||(Rl?Rl.M4(A):(Z3.push({type:"ERROR",payload:A}),Z3.length>10&&Z3.shift()))};
|
|
F4=function(A,L){Sd||(Rl?Rl.logEvent(A,L):(Z3.push({type:"EVENT",eventType:A,payload:L}),Z3.length>10&&Z3.shift()))};
|
|
D3=function(A){if(A.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
|
|
d2=function(A){return A.substr(0,A.indexOf(":"))||A};
|
|
g.Il=function(A,L,B,f,K){L=L===void 0?{}:L;B=B===void 0?XcQ[A]:B;f=f===void 0?O2w[A]:f;K=K===void 0?EMQ[A]:K;g.iL.call(this,B,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:A},L));this.type=A;this.message=B;this.level=f;this.N=K;Object.setPrototypeOf(this,g.Il.prototype)};
|
|
w2=function(A,L){g.Il.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:L,foundObjectStores:A},XcQ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,w2.prototype)};
|
|
ps=function(A,L){var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.index=A;this.objectStore=L;Object.setPrototypeOf(this,ps.prototype)};
|
|
jd=function(A,L,B,f){L=d2(L);var K=A instanceof Error?A:Error("Unexpected error: "+A);if(K instanceof g.Il)return K;A={objectStoreNames:B,dbName:L,dbVersion:f};if(K.name==="QuotaExceededError")return new g.Il("QUOTA_EXCEEDED",A);if(g.yw&&K.name==="UnknownError")return new g.Il("QUOTA_MAYBE_EXCEEDED",A);if(K instanceof ps)return new g.Il("MISSING_INDEX",Object.assign({},A,{objectStore:K.objectStore,index:K.index}));if(K.name==="InvalidStateError"&&cuL.some(function(V){return K.message.includes(V)}))return new g.Il("EXECUTE_TRANSACTION_ON_CLOSED_DB",
|
|
A);
|
|
if(K.name==="AbortError")return new g.Il("UNKNOWN_ABORT",A,K.message);K.args=[Object.assign({},A,{name:"IdbError",YK:K.name})];K.level="WARNING";return K};
|
|
g.g2=function(A,L,B){var f=JR();return new g.Il("IDB_NOT_SUPPORTED",{context:{caller:A,publicName:L,version:B,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})};
|
|
MAQ=function(A){if(!A)throw Error();throw A;};
|
|
Ykv=function(A){return A};
|
|
GU=function(A){this.N=A};
|
|
g.r2=function(A){function L(K){if(f.state.status==="PENDING"){f.state={status:"REJECTED",reason:K};K=g.m(f.W);for(var V=K.next();!V.done;V=K.next())V=V.value,V()}}
|
|
function B(K){if(f.state.status==="PENDING"){f.state={status:"FULFILLED",value:K};K=g.m(f.N);for(var V=K.next();!V.done;V=K.next())V=V.value,V()}}
|
|
var f=this;this.state={status:"PENDING"};this.N=[];this.W=[];A=A.N;try{A(B,L)}catch(K){L(K)}};
|
|
UWk=function(A,L,B,f,K){try{if(A.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var V=B(A.state.value);V instanceof g.r2?s_(A,L,V,f,K):f(V)}catch(J){K(J)}};
|
|
W7E=function(A,L,B,f,K){try{if(A.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var V=B(A.state.reason);V instanceof g.r2?s_(A,L,V,f,K):f(V)}catch(J){K(J)}};
|
|
s_=function(A,L,B,f,K){L===B?K(new TypeError("Circular promise chain detected.")):B.then(function(V){V instanceof g.r2?s_(A,L,V,f,K):f(V)},function(V){K(V)})};
|
|
vMv=function(A,L,B){function f(){B(A.error);V()}
|
|
function K(){L(A.result);V()}
|
|
function V(){try{A.removeEventListener("success",K),A.removeEventListener("error",f)}catch(J){}}
|
|
A.addEventListener("success",K);A.addEventListener("error",f)};
|
|
qky=function(A){return new Promise(function(L,B){vMv(A,L,B)})};
|
|
Hf=function(A){return new g.r2(new GU(function(L,B){vMv(A,L,B)}))};
|
|
hR=function(A,L){return new g.r2(new GU(function(B,f){function K(){var V=A?L(A):null;V?V.then(function(J){A=J;K()},f):B()}
|
|
K()}))};
|
|
P0w=function(A,L){this.request=A;this.cursor=L};
|
|
xWC=function(A){return Hf(A).then(function(L){return L?new P0w(A,L):null})};
|
|
g.evw=function(A){A.cursor.continue(void 0);return xWC(A.request)};
|
|
nMD=function(A,L){this.N=A;this.options=L;this.transactionCount=0;this.V=Math.round((0,g.bc)());this.W=!1};
|
|
tR=function(){return g.h_("idb_immediate_commit")};
|
|
g.TU=function(A,L,B){A=A.N.createObjectStore(L,B);return new kL(A)};
|
|
lc=function(A,L){A.N.objectStoreNames.contains(L)&&A.N.deleteObjectStore(L)};
|
|
g.Cs=function(A,L,B){return g.mz(A,[L],{mode:"readwrite",Ev:!0,commit:tR()},function(f){return g.Qw(f.objectStore(L),B)})};
|
|
g.mz=function(A,L,B,f){var K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){switch(h.N){case 1:var Q={mode:"readonly",Ev:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof B==="string"?Q.mode=B:Object.assign(Q,B);K=Q;A.transactionCount++;V=K.Ev?3:1;J=0;case 2:if(R){h.Ux(4);break}J++;Z=Math.round((0,g.bc)());g.S5(h,5);N=A.N.transaction(L,K.mode);Q=!!K.commit;var l=new ic(N);Q=zv7(l,f,Q);return g.X(h,Q,7);case 7:return F=h.W,D=Math.round((0,g.bc)()),umw(A,Z,D,J,void 0,L.join(),K),h.return(F);case 5:I=g.NX(h);
|
|
d=Math.round((0,g.bc)());w=jd(I,A.N.name,L.join(),A.N.version);if((r=w instanceof g.Il&&!w.N)||J>=V)umw(A,Z,d,J,w,L.join(),K),R=w;h.Ux(2);break;case 4:return h.return(Promise.reject(R))}})};
|
|
umw=function(A,L,B,f,K,V,J){L=B-L;K?(K instanceof g.Il&&(K.type==="QUOTA_EXCEEDED"||K.type==="QUOTA_MAYBE_EXCEEDED")&&F4("QUOTA_EXCEEDED",{dbName:d2(A.N.name),objectStoreNames:V,transactionCount:A.transactionCount,transactionMode:J.mode}),K instanceof g.Il&&K.type==="UNKNOWN_ABORT"&&(B-=A.V,B<0&&B>=2147483648&&(B=0),F4("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:V,transactionDuration:L,transactionCount:A.transactionCount,dbDuration:B}),A.W=!0),aHE(A,!1,f,V,L,J.tag),Nx(K)):aHE(A,!0,f,V,L,
|
|
J.tag)};
|
|
aHE=function(A,L,B,f,K,V){F4("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:A.W,duration:K,isSuccessful:L,tryCount:B,tag:V===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":V})};
|
|
kL=function(A){this.N=A};
|
|
g.$L=function(A,L,B){A.N.createIndex(L,B,{unique:!1})};
|
|
AXL=function(A,L){return g.X4(A,{query:L},function(B){return B.delete().then(function(){return g.O_(B)})}).then(function(){})};
|
|
LKE=function(A,L,B){var f=[];return g.X4(A,{query:L},function(K){if(!(B!==void 0&&f.length>=B))return f.push(K.getValue()),g.O_(K)}).then(function(){return f})};
|
|
BlS=function(A){return"getAllKeys"in IDBObjectStore.prototype?Hf(A.N.getAllKeys(void 0,void 0)):owe(A)};
|
|
owe=function(A){var L=[];return g.ft6(A,{query:void 0},function(B){L.push(B.cursor.primaryKey);return g.evw(B)}).then(function(){return L})};
|
|
g.Qw=function(A,L,B){return Hf(A.N.put(L,B))};
|
|
g.X4=function(A,L,B){A=A.N.openCursor(L.query,L.direction);return E_(A).then(function(f){return hR(f,B)})};
|
|
g.ft6=function(A,L,B){var f=L.query;L=L.direction;A="openKeyCursor"in IDBObjectStore.prototype?A.N.openKeyCursor(f,L):A.N.openCursor(f,L);return xWC(A).then(function(K){return hR(K,B)})};
|
|
ic=function(A){var L=this;this.N=A;this.W=new Map;this.aborted=!1;this.done=new Promise(function(B,f){L.N.addEventListener("complete",function(){B()});
|
|
L.N.addEventListener("error",function(K){K.currentTarget===K.target&&f(L.N.error)});
|
|
L.N.addEventListener("abort",function(){var K=L.N.error;if(K)f(K);else if(!L.aborted){K=g.Il;for(var V=L.N.objectStoreNames,J=[],R=0;R<V.length;R++){var Z=V.item(R);if(Z===null)throw Error("Invariant: item in DOMStringList is null");J.push(Z)}K=new K("UNKNOWN_ABORT",{objectStoreNames:J.join(),dbName:L.N.db.name,mode:L.N.mode});f(K)}})})};
|
|
zv7=function(A,L,B){var f=new Promise(function(K,V){try{var J=L(A);B&&A.commit();J.then(function(R){K(R)}).catch(V)}catch(R){V(R),A.abort()}});
|
|
return Promise.all([f,A.done]).then(function(K){return g.m(K).next().value})};
|
|
KKw=function(A){this.N=A};
|
|
VFv=function(A,L,B){var f=[];return g.cf(A,{query:L},function(K){if(!(B!==void 0&&f.length>=B))return f.push(K.getValue()),g.O_(K)}).then(function(){return f})};
|
|
g.cf=function(A,L,B){A=A.N.openCursor(L.query===void 0?null:L.query,L.direction===void 0?"next":L.direction);return E_(A).then(function(f){return hR(f,B)})};
|
|
Mx=function(A,L){this.request=A;this.cursor=L};
|
|
E_=function(A){return Hf(A).then(function(L){return L?new Mx(A,L):null})};
|
|
g.O_=function(A){A.cursor.continue(void 0);return E_(A.request)};
|
|
JXv=function(A,L,B){return new Promise(function(f,K){function V(){I||(I=new nMD(J.result,{closed:D}));return I}
|
|
var J=L!==void 0?self.indexedDB.open(A,L):self.indexedDB.open(A);var R=B.blocked,Z=B.blocking,N=B.P0r,F=B.upgrade,D=B.closed,I;J.addEventListener("upgradeneeded",function(d){try{if(d.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(J.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");d.dataLoss&&d.dataLoss!=="none"&&F4("IDB_DATA_CORRUPTED",{reason:d.dataLossMessage||"unknown reason",dbName:d2(A)});var w=V(),r=new ic(J.transaction);
|
|
F&&F(w,function(h){return d.oldVersion<h&&d.newVersion>=h},r);
|
|
r.done.catch(function(h){K(h)})}catch(h){K(h)}});
|
|
J.addEventListener("success",function(){var d=J.result;Z&&d.addEventListener("versionchange",function(){Z(V())});
|
|
d.addEventListener("close",function(){F4("IDB_UNEXPECTEDLY_CLOSED",{dbName:d2(A),dbVersion:d.version});N&&N()});
|
|
f(V())});
|
|
J.addEventListener("error",function(){K(J.error)});
|
|
R&&J.addEventListener("blocked",function(){R()})})};
|
|
SB7=function(A,L,B){B=B===void 0?{}:B;return JXv(A,L,B)};
|
|
YL=function(A,L){L=L===void 0?{}:L;var B,f,K,V;return g.c(function(J){if(J.N==1)return g.S5(J,2),B=self.indexedDB.deleteDatabase(A),f=L,(K=f.blocked)&&B.addEventListener("blocked",function(){K()}),g.X(J,qky(B),4);
|
|
if(J.N!=2)return g.ZR(J,0);V=g.NX(J);throw jd(V,A,"",-1);})};
|
|
U_=function(A,L){this.name=A;this.options=L;this.V=!0;this.D=this.U=0};
|
|
RM8=function(A,L){return new g.Il("INCOMPATIBLE_DB_VERSION",{dbName:A.name,oldVersion:A.options.version,newVersion:L})};
|
|
g.Wf=function(A,L){if(!L)throw g.g2("openWithToken",d2(A.name));return A.open()};
|
|
ZeD=function(A,L){var B;return g.c(function(f){if(f.N==1)return g.X(f,g.Wf(vf,L),2);B=f.W;return f.return(g.mz(B,["databases"],{Ev:!0,mode:"readwrite"},function(K){var V=K.objectStore("databases");return V.get(A.actualName).then(function(J){if(J?A.actualName!==J.actualName||A.publicName!==J.publicName||A.userIdentifier!==J.userIdentifier:1)return g.Qw(V,A).then(function(){})})}))})};
|
|
qx=function(A,L){var B;return g.c(function(f){if(f.N==1)return A?g.X(f,g.Wf(vf,L),2):f.return();B=f.W;return f.return(B.delete("databases",A))})};
|
|
Nlk=function(A,L){var B,f;return g.c(function(K){return K.N==1?(B=[],g.X(K,g.Wf(vf,L),2)):K.N!=3?(f=K.W,g.X(K,g.mz(f,["databases"],{Ev:!0,mode:"readonly"},function(V){B.length=0;return g.X4(V.objectStore("databases"),{},function(J){A(J.getValue())&&B.push(J.getValue());return g.O_(J)})}),3)):K.return(B)})};
|
|
FK0=function(A,L){return Nlk(function(B){return B.publicName===A&&B.userIdentifier!==void 0},L)};
|
|
DT7=function(){var A,L,B,f;return g.c(function(K){switch(K.N){case 1:A=JR();if((L=A)==null?0:L.hasSucceededOnce)return K.return(!0);if(ed&&aM()&&!AK()||g.ns)return K.return(!1);try{if(B=self,!(B.indexedDB&&B.IDBIndex&&B.IDBKeyRange&&B.IDBObjectStore))return K.return(!1)}catch(V){return K.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return K.return(!1);g.S5(K,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
|
|
return g.X(K,ZeD(f,zU),4);case 4:return g.X(K,qx("yt-idb-test-do-not-use",zU),5);case 5:return K.return(!0);case 2:return g.NX(K),K.return(!1)}})};
|
|
dTL=function(){if(uc!==void 0)return uc;Sd=!0;return uc=DT7().then(function(A){Sd=!1;var L;if((L=Vw())!=null&&L.N){var B;L={hasSucceededOnce:((B=JR())==null?void 0:B.hasSucceededOnce)||A};var f;(f=Vw())==null||f.set("LAST_RESULT_ENTRY_KEY",L,2592E3,!0)}return A})};
|
|
al=function(){return g.bB("ytglobal.idbToken_")||void 0};
|
|
g.Ab=function(){var A=al();return A?Promise.resolve(A):dTL().then(function(L){(L=L?zU:void 0)&&g.hf("ytglobal.idbToken_",L);return L})};
|
|
ItC=function(A){if(!g.zT())throw A=new g.Il("AUTH_INVALID",{dbName:A}),Nx(A),A;var L=g.nn();return{actualName:A+":"+L,publicName:A,userIdentifier:L}};
|
|
wMv=function(A,L,B,f){var K,V,J,R,Z,N;return g.c(function(F){switch(F.N){case 1:return V=(K=Error().stack)!=null?K:"",g.X(F,g.Ab(),2);case 2:J=F.W;if(!J)throw R=g.g2("openDbImpl",A,L),g.h_("ytidb_async_stack_killswitch")||(R.stack=R.stack+"\n"+V.substring(V.indexOf("\n")+1)),Nx(R),R;D3(A);Z=B?{actualName:A,publicName:A,userIdentifier:void 0}:ItC(A);g.S5(F,3);return g.X(F,ZeD(Z,J),5);case 5:return g.X(F,SB7(Z.actualName,L,f),6);case 6:return F.return(F.W);case 3:return N=g.NX(F),g.S5(F,7),g.X(F,qx(Z.actualName,
|
|
J),9);case 9:g.ZR(F,8);break;case 7:g.NX(F);case 8:throw N;}})};
|
|
pML=function(A,L,B){B=B===void 0?{}:B;return wMv(A,L,!1,B)};
|
|
yXQ=function(A,L,B){B=B===void 0?{}:B;return wMv(A,L,!0,B)};
|
|
jaS=function(A,L){L=L===void 0?{}:L;var B,f;return g.c(function(K){if(K.N==1)return g.X(K,g.Ab(),2);if(K.N!=3){B=K.W;if(!B)return K.return();D3(A);f=ItC(A);return g.X(K,YL(f.actualName,L),3)}return g.X(K,qx(f.actualName,B),0)})};
|
|
gwE=function(A,L,B){A=A.map(function(f){return g.c(function(K){return K.N==1?g.X(K,YL(f.actualName,L),2):g.X(K,qx(f.actualName,B),0)})});
|
|
return Promise.all(A).then(function(){})};
|
|
G7E=function(A){var L=L===void 0?{}:L;var B,f;return g.c(function(K){if(K.N==1)return g.X(K,g.Ab(),2);if(K.N!=3){B=K.W;if(!B)return K.return();D3(A);return g.X(K,FK0(A,B),3)}f=K.W;return g.X(K,gwE(f,L,B),0)})};
|
|
rX0=function(A,L){L=L===void 0?{}:L;var B;return g.c(function(f){if(f.N==1)return g.X(f,g.Ab(),2);if(f.N!=3){B=f.W;if(!B)return f.return();D3(A);return g.X(f,YL(A,L),3)}return g.X(f,qx(A,B),0)})};
|
|
L4=function(A,L){U_.call(this,A,L);this.options=L;D3(A)};
|
|
sa1=function(A,L){var B;return function(){B||(B=new L4(A,L));return B}};
|
|
g.oI=function(A,L){return sa1(A,L)};
|
|
Ba=function(A){return g.Wf(HeE(),A)};
|
|
hMC=function(A,L,B,f){var K,V,J;return g.c(function(R){switch(R.N){case 1:return K={config:A,hashData:L,timestamp:f!==void 0?f:(0,g.bc)()},g.X(R,Ba(B),2);case 2:return V=R.W,g.X(R,V.clear("hotConfigStore"),3);case 3:return g.X(R,g.Cs(V,"hotConfigStore",K),4);case 4:return J=R.W,R.return(J)}})};
|
|
bey=function(A,L,B,f,K){var V,J,R;return g.c(function(Z){switch(Z.N){case 1:return V={config:A,hashData:L,configData:B,timestamp:K!==void 0?K:(0,g.bc)()},g.X(Z,Ba(f),2);case 2:return J=Z.W,g.X(Z,J.clear("coldConfigStore"),3);case 3:return g.X(Z,g.Cs(J,"coldConfigStore",V),4);case 4:return R=Z.W,Z.return(R)}})};
|
|
tFL=function(A){var L,B;return g.c(function(f){return f.N==1?g.X(f,Ba(A),2):f.N!=3?(L=f.W,B=void 0,g.X(f,g.mz(L,["coldConfigStore"],{mode:"readwrite",Ev:!0},function(K){return g.cf(K.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(V){B=V.getValue()})}),3)):f.return(B)})};
|
|
k7y=function(A){var L,B;return g.c(function(f){return f.N==1?g.X(f,Ba(A),2):f.N!=3?(L=f.W,B=void 0,g.X(f,g.mz(L,["hotConfigStore"],{mode:"readwrite",Ev:!0},function(K){return g.cf(K.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(V){B=V.getValue()})}),3)):f.return(B)})};
|
|
Tl1=function(){return g.c(function(A){return g.X(A,G7E("ytGcfConfig"),0)})};
|
|
f4=function(){g.Y.call(this);this.W=[];this.N=[];var A=g.bB("yt.gcf.config.hotUpdateCallbacks");A?(this.W=[].concat(g.x7(A)),this.N=A):(this.N=[],g.hf("yt.gcf.config.hotUpdateCallbacks",this.N))};
|
|
Zu=function(){var A=this;this.D=!1;this.V=this.U=0;this.T=new f4;this.GV={OuT:function(){A.D=!0},
|
|
Quj:function(){return A.N},
|
|
VTr:function(L){K4(A,L)},
|
|
K3:function(L){A.K3(L)},
|
|
WMn:function(L){Vf(A,L)},
|
|
Fd:function(){return A.coldHashData},
|
|
J4:function(){return A.hotHashData},
|
|
l9p:function(){return A.W},
|
|
LLs:function(){return Jb()},
|
|
N6x:function(){return S_()},
|
|
dT1:function(){return g.bB("yt.gcf.config.coldHashData")},
|
|
yqM:function(){return g.bB("yt.gcf.config.hotHashData")},
|
|
rIM:function(){lt8(A)},
|
|
oDL:function(){A.K3(void 0);RI(A);delete Zu.instance},
|
|
Iur:function(L){A.V=L},
|
|
cVT:function(){return A.V}}};
|
|
mT0=function(){if(!Zu.instance){var A=new Zu;Zu.instance=A}return Zu.instance};
|
|
ieC=function(A){var L;g.c(function(B){if(B.N==1)return g.h_("start_client_gcf")||g.h_("delete_gcf_config_db")?g.h_("start_client_gcf")?g.X(B,g.Ab(),3):B.Ux(2):B.return();B.N!=2&&((L=B.W)&&g.zT()&&!g.h_("delete_gcf_config_db")?(A.D=!0,lt8(A)):(QaL(A),CNL(A)));return g.h_("delete_gcf_config_db")?g.X(B,Tl1(),0):B.Ux(0)})};
|
|
NJ=function(){var A;return(A=S_())!=null?A:g.A_("RAW_HOT_CONFIG_GROUP")};
|
|
$T8=function(A){var L,B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:if(A.W)return R.return(S_());if(!A.D)return L=g.g2("getHotConfig IDB not initialized"),Kg(L),R.return(Promise.reject(L));B=al();f=g.A_("TIME_CREATED_MS");if(!B){K=g.g2("getHotConfig token error");Kg(K);R.Ux(2);break}return g.X(R,k7y(B),3);case 3:if((V=R.W)&&V.timestamp>f)return K4(A,V.config),A.K3(V.hashData),R.return(S_());case 2:CNL(A);if(!(B&&A.W&&A.hotHashData)){R.Ux(4);break}return g.X(R,hMC(A.W,A.hotHashData,B,f),4);case 4:return A.W?
|
|
R.return(S_()):(J=new g.iL("Config not available in ytConfig"),Kg(J),R.return(Promise.reject(J)))}})};
|
|
OeC=function(A){var L,B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:if(A.N)return R.return(Jb());if(!A.D)return L=g.g2("getColdConfig IDB not initialized"),Kg(L),R.return(Promise.reject(L));B=al();f=g.A_("TIME_CREATED_MS");if(!B){K=g.g2("getColdConfig");Kg(K);R.Ux(2);break}return g.X(R,tFL(B),3);case 3:if((V=R.W)&&V.timestamp>f)return Vf(A,V.config),XM1(A,V.configData),RI(A,V.hashData),R.return(Jb());case 2:QaL(A);if(!(B&&A.N&&A.coldHashData&&A.configData)){R.Ux(4);break}return g.X(R,bey(A.N,
|
|
A.coldHashData,A.configData,B,f),4);case 4:return A.N?R.return(Jb()):(J=new g.iL("Config not available in ytConfig"),Kg(J),R.return(Promise.reject(J)))}})};
|
|
lt8=function(A){if(!A.W||!A.N){if(!al()){var L=g.g2("scheduleGetConfigs");Kg(L)}A.U||(A.U=g.qT.pV(function(){return g.c(function(B){switch(B.N){case 1:return g.S5(B,2),g.X(B,$T8(A),4);case 4:g.ZR(B,3);break;case 2:g.NX(B);case 3:return g.S5(B,5),g.X(B,OeC(A),7);case 7:g.ZR(B,6);break;case 5:g.NX(B);case 6:A.U&&(A.U=0),g.VK(B)}})},100))}};
|
|
Ew8=function(A,L,B){var f,K,V;return g.c(function(J){switch(J.N){case 1:if(!g.h_("start_client_gcf")){J.Ux(0);break}B&&K4(A,B);A.K3(L);f=al();if(!f){J.Ux(3);break}if(B){J.Ux(4);break}return g.X(J,k7y(f),5);case 5:K=J.W,B=(V=K)==null?void 0:V.config;case 4:return g.X(J,hMC(B,L,f),3);case 3:if(B)for(var R=B,Z=g.m(A.T.N),N=Z.next();!N.done;N=Z.next())N=N.value,N(R);g.VK(J)}})};
|
|
cX0=function(A,L,B){var f,K,V,J;return g.c(function(R){if(R.N==1){if(!g.h_("start_client_gcf"))return R.Ux(0);RI(A,L);return(f=al())?B?R.Ux(4):g.X(R,tFL(f),5):R.Ux(0)}R.N!=4&&(K=R.W,B=(V=K)==null?void 0:V.config);if(!B)return R.Ux(0);J=B.configData;return g.X(R,bey(B,L,J,f),0)})};
|
|
MFL=function(){var A=mT0(),L=(0,g.bc)()-A.V;if(!(A.V!==0&&L<g.bl("send_config_hash_timer"))){L=g.bB("yt.gcf.config.coldConfigData");var B=g.bB("yt.gcf.config.hotHashData"),f=g.bB("yt.gcf.config.coldHashData");L&&B&&f&&(A.V=(0,g.bc)());return{coldConfigData:L,hotHashData:B,coldHashData:f}}};
|
|
QaL=function(A){Vf(A,g.A_("RAW_COLD_CONFIG_GROUP"));RI(A,g.A_("SERIALIZED_COLD_HASH_DATA"));var L;XM1(A,(L=A.N)==null?void 0:L.configData)};
|
|
CNL=function(A){K4(A,g.A_("RAW_HOT_CONFIG_GROUP"));A.K3(g.A_("SERIALIZED_HOT_HASH_DATA"))};
|
|
K4=function(A,L){A.W=L;g.hf("yt.gcf.config.hotConfigGroup",A.W||null)};
|
|
Vf=function(A,L){A.N=L;g.hf("yt.gcf.config.coldConfigGroup",A.N||null)};
|
|
RI=function(A,L){A.coldHashData=L;g.hf("yt.gcf.config.coldHashData",A.coldHashData||null)};
|
|
XM1=function(A,L){A.configData=L;g.hf("yt.gcf.config.coldConfigData",A.configData||null)};
|
|
S_=function(){return g.bB("yt.gcf.config.hotConfigGroup")};
|
|
Jb=function(){return g.bB("yt.gcf.config.coldConfigGroup")};
|
|
YBC=function(){return"INNERTUBE_API_KEY"in u8&&"INNERTUBE_API_VERSION"in u8};
|
|
g.FY=function(){return{innertubeApiKey:g.A_("INNERTUBE_API_KEY"),innertubeApiVersion:g.A_("INNERTUBE_API_VERSION"),kG:g.A_("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),fE:g.A_("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),kd:g.A_("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.A_("INNERTUBE_CONTEXT_CLIENT_VERSION"),sS:g.A_("INNERTUBE_CONTEXT_HL"),CE:g.A_("INNERTUBE_CONTEXT_GL"),m9:g.A_("INNERTUBE_HOST_OVERRIDE")||"",Fw:!!g.A_("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),Esn:!!g.A_("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
|
|
!1),appInstallData:g.A_("SERIALIZED_CLIENT_CONFIG_DATA")}};
|
|
g.Du=function(A){var L={client:{hl:A.sS,gl:A.CE,clientName:A.fE,clientVersion:A.innertubeContextClientVersion,configInfo:A.kG}};navigator.userAgent&&(L.client.userAgent=String(navigator.userAgent));var B=g.rI.devicePixelRatio;B&&B!=1&&(L.client.screenDensityFloat=String(B));B=t_();B!==""&&(L.client.experimentsToken=B);B=kz();B.length>0&&(L.request={internalExperimentFlags:B});UTD(A,void 0,L);WKD(void 0,L);vwQ(void 0,L);qB1(A,void 0,L);PNE(void 0,L);g.h_("start_client_gcf")&&xTy(void 0,L);g.A_("DELEGATED_SESSION_ID")&&
|
|
!g.h_("pageid_as_header_web")&&(L.user={onBehalfOfUser:g.A_("DELEGATED_SESSION_ID")});!g.h_("fill_delegate_context_in_gel_killswitch")&&(A=g.A_("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L.user=Object.assign({},L.user,{serializedDelegationContext:A}));A=g.A_("INNERTUBE_CONTEXT");var f;if(g.h_("enable_persistent_device_token")&&(A==null?0:(f=A.client)==null?0:f.rolloutToken)){var K;L.client.rolloutToken=A==null?void 0:(K=A.client)==null?void 0:K.rolloutToken}f=Object;K=f.assign;A=L.client;
|
|
B={};for(var V=g.m(Object.entries(I0(g.A_("DEVICE","")))),J=V.next();!J.done;J=V.next()){var R=g.m(J.value);J=R.next().value;R=R.next().value;J==="cbrand"?B.deviceMake=R:J==="cmodel"?B.deviceModel=R:J==="cbr"?B.browserName=R:J==="cbrver"?B.browserVersion=R:J==="cos"?B.osName=R:J==="cosver"?B.osVersion=R:J==="cplatform"&&(B.platform=R)}L.client=K.call(f,A,B);return L};
|
|
UTD=function(A,L,B){A=A.fE;if(A==="WEB"||A==="MWEB"||A===1||A===2)if(L){B=WG(L,$R,96)||new $R;var f=Y_();f=Object.keys(eMy).indexOf(f);f=f===-1?null:f;f!==null&&KH(B,3,f);PG(L,$R,96,B)}else B&&(B.client.mainAppWebInfo=(f=B.client.mainAppWebInfo)!=null?f:{},B.client.mainAppWebInfo.webDisplayMode=Y_())};
|
|
WKD=function(A,L){var B=g.bB("yt.embedded_player.embed_url");B&&(A?(L=WG(A,Mv,7)||new Mv,BS(L,4,B),PG(A,Mv,7,L)):L&&(L.thirdParty={embedUrl:B}))};
|
|
vwQ=function(A,L){var B;if(g.h_("web_log_memory_total_kbytes")&&((B=g.rI.navigator)==null?0:B.deviceMemory)){var f;B=(f=g.rI.navigator)==null?void 0:f.deviceMemory;A?ra(A,95,vg(B*1E6)):L&&(L.client.memoryTotalKbytes=""+B*1E6)}};
|
|
qB1=function(A,L,B){if(A.appInstallData)if(L){var f;B=(f=WG(L,i8,62))!=null?f:new i8;BS(B,6,A.appInstallData);PG(L,i8,62,B)}else B&&(B.client.configInfo=B.client.configInfo||{},B.client.configInfo.appInstallData=A.appInstallData)};
|
|
PNE=function(A,L){var B=QQ1();B&&(A?KH(A,61,nwy[B]):L&&(L.client.connectionType=B));g.h_("web_log_effective_connection_type")&&(B=i2k())&&(A?KH(A,94,zM7[B]):L&&(L.client.effectiveConnectionType=B))};
|
|
uO7=function(A,L,B){B=B===void 0?{}:B;var f={};g.A_("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":g.A_("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":B.visitorData||g.A_("VISITOR_DATA","")};if(L&&L.includes("www.youtube-nocookie.com"))return f;L=B.U2||g.A_("AUTHORIZATION");L||(A?L="Bearer "+g.bB("gapi.auth.getToken")().access_token:(A=b21().oO(dE),g.h_("pageid_as_header_web")||delete A["X-Goog-PageId"],f=Object.assign({},f,A)));L&&(f.Authorization=L);return f};
|
|
xTy=function(A,L){var B=MFL();if(B){var f=B.coldConfigData,K=B.coldHashData;B=B.hotHashData;if(A){var V;L=(V=WG(A,i8,62))!=null?V:new i8;f=BS(L,1,f);BS(f,3,K).K3(B);PG(A,i8,62,L)}else L&&(L.client.configInfo=L.client.configInfo||{},f&&(L.client.configInfo.coldConfigData=f),K&&(L.client.configInfo.coldHashData=K),B&&(L.client.configInfo.hotHashData=B))}};
|
|
II=function(A,L){this.version=A;this.args=L};
|
|
wE=function(A,L){this.topic=A;this.N=L};
|
|
yf=function(A,L){var B=p4();B&&B.publish.call(B,A.toString(),A,L)};
|
|
Lov=function(A){var L=atw,B=p4();if(!B)return 0;var f=B.subscribe(L.toString(),function(K,V){var J=g.bB("ytPubsub2Pubsub2SkipSubKey");J&&J==f||(J=function(){if(j_[f])try{if(V&&L instanceof wE&&L!=K)try{var R=L.N,Z=V;if(!Z.args||!Z.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!R.W$){var N=new R;R.W$=N.version}var F=R.W$}catch(D){}if(!F||Z.version!=F)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{V=Reflect.construct(R,
|
|
g.Kx(Z.args))}catch(D){throw D.message="yt.pubsub2.Data.deserialize(): "+D.message,D;}}catch(D){throw D.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+L.toString()+": "+D.message,D;}A.call(window,V)}catch(D){g.B7(D)}},Azv[L.toString()]?g.Bf()?g.qT.pV(J):g.gW(J,0):J())});
|
|
j_[f]=!0;gE[L.toString()]||(gE[L.toString()]=[]);gE[L.toString()].push(f);return f};
|
|
f1v=function(){var A=oC7,L=Lov(function(B){A.apply(void 0,arguments);B$L(L)});
|
|
return L};
|
|
B$L=function(A){var L=p4();L&&(typeof A==="number"&&(A=[A]),g.yB(A,function(B){L.unsubscribeByKey(B);delete j_[B]}))};
|
|
p4=function(){return g.bB("ytPubsub2Pubsub2Instance")};
|
|
GP=function(A,L,B){B=B===void 0?{sampleRate:.1}:B;Math.random()<Math.min(.02,B.sampleRate/100)&&yf("meta_logging_csi_event",{timerName:A,Ymr:L})};
|
|
KoE=function(){rE||(rE=mc(g.A_("WORKER_SERIALIZATION_URL")));return rE||void 0};
|
|
by=function(){var A=KoE();Ha||A===void 0||(Ha=new Worker(gt(A),void 0));return Ha};
|
|
VRe=function(){return typeof Worker==="function"&&KoE()?!0:!1};
|
|
Sne=function(){if(VRe()&&!tb){var A=function(B){B=B.data;if(B.op==="gzippedGelBatch"){var f=kl.get(B.key);f&&(Jz0(B.gzippedBatch,f.latencyPayload,f.url,f.options,f.sendFn),kl.delete(B.key))}},L=by();
|
|
L&&(L.addEventListener("message",A),L.onerror=function(){kl.clear()},tb=!0)}};
|
|
Qf=function(A,L,B,f,K){K=K===void 0?!1:K;var V={startTime:(0,g.bc)(),ticks:{},infos:{}};if(TP)try{var J=RRy(L);if(J!=null&&(J>ZK6||J<N$D))f(A,B);else{if(g.h_("gzip_gel_with_worker")){tb||Sne();var R=by();if(R&&!K){kl.set(ly,{latencyPayload:V,url:A,options:B,sendFn:f});R.postMessage({op:"gelBatchToGzip",serializedBatch:L,key:ly});ly++;return}}var Z=VaL(FoL(L));Jz0(Z,V,A,B,f)}}catch(N){Kg(N),f(A,B)}else f(A,B)};
|
|
Jz0=function(A,L,B,f,K){var V=(0,g.bc)();L.ticks.gelc=V;C4++;g.h_("disable_compression_due_to_performance_degredation")&&V-L.startTime>=DHw&&(iy++,TP=!1);dHe(L);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=A;f.postParams=void 0;K(B,f)};
|
|
wC1=function(A){var L=L===void 0?!1:L;var B=B===void 0?!1:B;var f=(0,g.bc)(),K={startTime:f,ticks:{},infos:{}},V=L?g.bB("yt.logging.gzipForFetch",!1):!0;if(TP&&V){if(!A.body)return A;try{var J=B?A.body:typeof A.body==="string"?A.body:JSON.stringify(A.body);V=J;if(!B&&typeof J==="string"){var R=RRy(J);if(R!=null&&(R>ZK6||R<N$D))return A;B=L?{level:1}:void 0;V=VaL(FoL(J),B);var Z=(0,g.bc)();K.ticks.gelc=Z;if(L){C4++;if((g.h_("disable_compression_due_to_performance_degredation")||g.h_("disable_compression_due_to_performance_degradation_lr"))&&
|
|
Z-f>=DHw)if(iy++,g.h_("abandon_compression_after_N_slow_zips_lr")){L=iy/C4;var N=I11/g.bl("compression_disable_point");C4>0&&C4%g.bl("compression_disable_point")===0&&L>=N&&(TP=!1)}else TP=!1;dHe(K)}}A.headers=Object.assign({},{"Content-Encoding":"gzip"},A.headers||{});A.body=V;return A}catch(F){return Kg(F),A}}else return A};
|
|
RRy=function(A){try{return(new Blob(A.split(""))).size}catch(L){return Kg(L),null}};
|
|
dHe=function(A){g.h_("gel_compression_csi_killswitch")||!g.h_("log_gel_compression_latency")&&!g.h_("log_gel_compression_latency_lr")||GP("gel_compression",A,{sampleRate:.1})};
|
|
XY=function(A){var L=this;this.V2=this.N=!1;this.potentialEsfErrorCounter=this.W=0;this.handleError=function(){};
|
|
this.sV=function(){};
|
|
this.now=Date.now;this.gq=!1;this.GV={qmj:function(F){L.uQ=F},
|
|
n3s:function(){L.u_()},
|
|
Y1:function(){L.lS()},
|
|
z3:function(F){return g.c(function(D){return g.X(D,L.z3(F),0)})},
|
|
Fs:function(F,D){return L.Fs(F,D)},
|
|
Dh:function(){L.Dh()}};
|
|
var B;this.k7=(B=A.k7)!=null?B:100;var f;this.wC=(f=A.wC)!=null?f:1;var K;this.HX=(K=A.HX)!=null?K:2592E6;var V;this.BW=(V=A.BW)!=null?V:12E4;var J;this.UP=(J=A.UP)!=null?J:5E3;var R;this.uQ=(R=A.uQ)!=null?R:void 0;this.Pb=!!A.Pb;var Z;this.T9=(Z=A.T9)!=null?Z:.1;var N;this.aS=(N=A.aS)!=null?N:10;A.handleError&&(this.handleError=A.handleError);A.sV&&(this.sV=A.sV);A.gq&&(this.gq=A.gq);A.V2&&(this.V2=A.V2);this.GL=A.GL;this.kC=A.kC;this.fh=A.fh;this.Mq=A.Mq;this.sendFn=A.sendFn;this.Qg=A.Qg;this.GA=
|
|
A.GA;$l(this)&&(!this.GL||this.GL("networkless_logging"))&&pC8(this)};
|
|
pC8=function(A){$l(A)&&!A.gq&&(A.N=!0,A.Pb&&Math.random()<=A.T9&&A.fh.AX(A.uQ),A.Dh(),A.Mq.Dr()&&A.u_(),A.Mq.listen(A.Qg,A.u_.bind(A)),A.Mq.listen(A.GA,A.lS.bind(A)))};
|
|
gC1=function(A,L){if(!$l(A))throw Error("IndexedDB is not supported: updateRequestHandlers");var B=L.options.onError?L.options.onError:function(){};
|
|
L.options.onError=function(K,V){var J,R,Z,N;return g.c(function(F){switch(F.N){case 1:J=yz8(V);(R=j11(V))&&A.GL&&A.GL("web_enable_error_204")&&A.handleError(Error("Request failed due to compression"),L.url,V);if(!(A.GL&&A.GL("nwl_consider_error_code")&&J||A.GL&&!A.GL("nwl_consider_error_code")&&A.potentialEsfErrorCounter<=A.aS)){F.Ux(2);break}if(!A.Mq.Xs){F.Ux(3);break}return g.X(F,A.Mq.Xs(),3);case 3:if(A.Mq.Dr()){F.Ux(2);break}B(K,V);if(!A.GL||!A.GL("nwl_consider_error_code")||((Z=L)==null?void 0:
|
|
Z.id)===void 0){F.Ux(6);break}return g.X(F,A.fh.AM(L.id,A.uQ,!1),6);case 6:return F.return();case 2:if(A.GL&&A.GL("nwl_consider_error_code")&&!J&&A.potentialEsfErrorCounter>A.aS)return F.return();A.potentialEsfErrorCounter++;if(((N=L)==null?void 0:N.id)===void 0){F.Ux(8);break}return L.sendCount<A.wC?g.X(F,A.fh.AM(L.id,A.uQ,!0,R?!1:void 0),12):g.X(F,A.fh.NW(L.id,A.uQ),8);case 12:A.kC.pV(function(){A.Mq.Dr()&&A.u_()},A.UP);
|
|
case 8:B(K,V),g.VK(F)}})};
|
|
var f=L.options.onSuccess?L.options.onSuccess:function(){};
|
|
L.options.onSuccess=function(K,V){var J;return g.c(function(R){if(R.N==1)return((J=L)==null?void 0:J.id)===void 0?R.Ux(2):g.X(R,A.fh.NW(L.id,A.uQ),2);A.Mq.Ba&&A.GL&&A.GL("vss_network_hint")&&A.Mq.Ba(!0);f(K,V);g.VK(R)})};
|
|
return L};
|
|
Ou=function(A,L){A.kx&&!A.Mq.Dr()?A.kx(L):A.handleError(L)};
|
|
$l=function(A){return!!A.uQ||A.V2};
|
|
yz8=function(A){var L;return(A=A==null?void 0:(L=A.error)==null?void 0:L.code)&&A>=400&&A<=599?!1:!0};
|
|
j11=function(A){var L;A=A==null?void 0:(L=A.error)==null?void 0:L.code;return!(A!==400&&A!==415)};
|
|
GF0=function(){if(Eu)return Eu();var A={};Eu=g.oI("LogsDatabaseV2",{JU:(A.LogsRequestsStore={fO:2},A),shared:!1,upgrade:function(L,B,f){B(2)&&g.TU(L,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});B(3);B(5)&&(f=f.objectStore("LogsRequestsStore"),f.N.indexNames.contains("newRequest")&&f.N.deleteIndex("newRequest"),g.$L(f,"newRequestV2",["status","interface","timestamp"]));B(7)&&lc(L,"sapisid");B(9)&&lc(L,"SWHealthLog")},
|
|
version:9});return Eu()};
|
|
ca=function(A){return g.Wf(GF0(),A)};
|
|
s1y=function(A,L){var B,f,K,V;return g.c(function(J){if(J.N==1)return B={startTime:(0,g.bc)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.X(J,ca(L),2);if(J.N!=3)return f=J.W,K=Object.assign({},A,{options:JSON.parse(JSON.stringify(A.options)),interface:g.A_("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.X(J,g.Cs(f,"LogsRequestsStore",K),3);V=J.W;B.ticks.tc=(0,g.bc)();rzD(B);return J.return(V)})};
|
|
HK1=function(A,L){var B,f,K,V,J,R,Z,N,F;return g.c(function(D){if(D.N==1)return B={startTime:(0,g.bc)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.X(D,ca(L),2);if(D.N!=3)return f=D.W,K=g.A_("INNERTUBE_CONTEXT_CLIENT_NAME",0),V=[A,K,0],J=[A,K,(0,g.bc)()],R=IDBKeyRange.bound(V,J),Z="prev",g.h_("use_fifo_for_networkless")&&(Z="next"),N=void 0,F=A==="NEW"?"readwrite":"readonly",g.h_("use_readonly_for_get_most_recent_by_status_killswitch")&&(F="readwrite"),g.X(D,g.mz(f,["LogsRequestsStore"],
|
|
{mode:F,Ev:!0},function(I){return g.cf(I.objectStore("LogsRequestsStore").index("newRequestV2"),{query:R,direction:Z},function(d){d.getValue()&&(N=d.getValue(),A==="NEW"&&(N.status="QUEUED",d.update(N)))})}),3);
|
|
B.ticks.tc=(0,g.bc)();rzD(B);return D.return(N)})};
|
|
hRe=function(A,L){var B;return g.c(function(f){if(f.N==1)return g.X(f,ca(L),2);B=f.W;return f.return(g.mz(B,["LogsRequestsStore"],{mode:"readwrite",Ev:!0},function(K){var V=K.objectStore("LogsRequestsStore");return V.get(A).then(function(J){if(J)return J.status="QUEUED",g.Qw(V,J).then(function(){return J})})}))})};
|
|
bK6=function(A,L,B,f){B=B===void 0?!0:B;var K;return g.c(function(V){if(V.N==1)return g.X(V,ca(L),2);K=V.W;return V.return(g.mz(K,["LogsRequestsStore"],{mode:"readwrite",Ev:!0},function(J){var R=J.objectStore("LogsRequestsStore");return R.get(A).then(function(Z){return Z?(Z.status="NEW",B&&(Z.sendCount+=1),f!==void 0&&(Z.options.compress=f),g.Qw(R,Z).then(function(){return Z})):g.r2.resolve(void 0)})}))})};
|
|
tR8=function(A,L){var B;return g.c(function(f){if(f.N==1)return g.X(f,ca(L),2);B=f.W;return f.return(B.delete("LogsRequestsStore",A))})};
|
|
kFD=function(A){var L,B;return g.c(function(f){if(f.N==1)return g.X(f,ca(A),2);L=f.W;B=(0,g.bc)()-2592E6;return g.X(f,g.mz(L,["LogsRequestsStore"],{mode:"readwrite",Ev:!0},function(K){return g.X4(K.objectStore("LogsRequestsStore"),{},function(V){if(V.getValue().timestamp<=B)return V.delete().then(function(){return g.O_(V)})})}),0)})};
|
|
T$8=function(){g.c(function(A){return g.X(A,G7E("LogsDatabaseV2"),0)})};
|
|
rzD=function(A){g.h_("nwl_csi_killswitch")||GP("networkless_performance",A,{sampleRate:1})};
|
|
mHS=function(A){return g.Wf(l17(),A)};
|
|
Q1D=function(A){var L,B;g.c(function(f){if(f.N==1)return g.X(f,mHS(A),2);L=f.W;B=(0,g.bc)()-2592E6;return g.X(f,g.mz(L,["SWHealthLog"],{mode:"readwrite",Ev:!0},function(K){return g.X4(K.objectStore("SWHealthLog"),{},function(V){if(V.getValue().timestamp<=B)return V.delete().then(function(){return g.O_(V)})})}),0)})};
|
|
CkL=function(A){var L;return g.c(function(B){if(B.N==1)return g.X(B,mHS(A),2);L=B.W;return g.X(B,L.clear("SWHealthLog"),0)})};
|
|
g.MJ=function(A,L,B,f,K,V,J){K=K===void 0?"":K;V=V===void 0?!1:V;J=J===void 0?!1:J;if(A)if(B&&!g.ng())Kg(new g.iL("Legacy referrer-scrubbed ping detected")),A&&iKE(A,void 0,{scrubReferrer:!0});else if(K)Tc(A,L,"POST",K,f);else if(g.A_("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||J)Tc(A,L,"GET","",f,void 0,V,J);else{b:{try{c:{var R=new nbL({url:A});if(R.N.dsh==="1")var Z=null;else{var N=R.N.ae;if(N==="1"){var F=R.N.adurl;if(F)try{Z={version:3,mP:decodeURIComponent(F),Zm:VU(R.W,"act=1","ri=1",zK8(R))};
|
|
break c}catch(d){}}Z=N==="2"?{version:4,mP:VU(R.W,"dct=1","suid="+R.V,"ri=1"),Zm:VU(R.W,"act=1","ri=1","suid="+R.V)}:null}}if(Z){var D=ks(A);var I=!(!D||!D.endsWith("/aclk")||Ew(A,"ri")!=="1");break b}}catch(d){}I=!1}I?$Hw(A)?(L&&L(),B=!0):B=!1:B=!1;B||iKE(A,L)}};
|
|
$Hw=function(A,L){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(A,L===void 0?"":L))return!0}catch(B){}return!1};
|
|
iKE=function(A,L,B){B=B===void 0?{}:B;var f=new Image,K=""+XCv++;Yl[K]=f;f.onload=f.onerror=function(){L&&Yl[K]&&L();delete Yl[K]};
|
|
B.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=A};
|
|
OKw=function(A){var L;return((L=document.featurePolicy)==null?0:L.allowedFeatures().includes("attribution-reporting"))?A+"&nis=6":A+"&nis=5"};
|
|
Wa=function(){Uu||(Uu=new Ks("yt.offline"));return Uu};
|
|
ECL=function(A){if(g.h_("offline_error_handling")){var L=Wa().get("errors",!0)||{};L[A.message]={name:A.name,stack:A.stack};A.level&&(L[A.message].level=A.level);Wa().set("errors",L,2592E3,!0)}};
|
|
va=function(){this.N=new Map;this.W=!1};
|
|
czL=function(){if(!va.instance){var A=g.bB("yt.networkRequestMonitor.instance")||new va;g.hf("yt.networkRequestMonitor.instance",A);va.instance=A}return va.instance};
|
|
qJ=function(){g.gb.call(this);var A=this;this.W=!1;this.N=oZk();this.N.listen("networkstatus-online",function(){if(A.W&&g.h_("offline_error_handling")){var L=Wa().get("errors",!0);if(L){for(var B in L)if(L[B]){var f=new g.iL(B,"sent via offline_errors");f.name=L[B].name;f.stack=L[B].stack;f.level=L[B].level;g.B7(f)}Wa().set("errors",{},2592E3,!0)}}})};
|
|
MRw=function(){if(!qJ.instance){var A=g.bB("yt.networkStatusManager.instance")||new qJ;g.hf("yt.networkStatusManager.instance",A);qJ.instance=A}return qJ.instance};
|
|
g.Pa=function(A){A=A===void 0?{}:A;g.gb.call(this);var L=this;this.N=this.U=0;this.W=MRw();var B=g.bB("yt.networkStatusManager.instance.listen").bind(this.W);B&&(A.rateLimit?(this.rateLimit=A.rateLimit,B("networkstatus-online",function(){YnQ(L,"publicytnetworkstatus-online")}),B("networkstatus-offline",function(){YnQ(L,"publicytnetworkstatus-offline")})):(B("networkstatus-online",function(){L.dispatchEvent("publicytnetworkstatus-online")}),B("networkstatus-offline",function(){L.dispatchEvent("publicytnetworkstatus-offline")})))};
|
|
YnQ=function(A,L){A.rateLimit?A.N?(g.qT.WF(A.U),A.U=g.qT.pV(function(){A.V!==L&&(A.dispatchEvent(L),A.V=L,A.N=(0,g.bc)())},A.rateLimit-((0,g.bc)()-A.N))):(A.dispatchEvent(L),A.V=L,A.N=(0,g.bc)()):A.dispatchEvent(L)};
|
|
e_=function(){var A=XY.call;xl||(xl=new g.Pa({Vdr:!0,l_n:!0}));A.call(XY,this,{fh:{AX:kFD,NW:tR8,V0:HK1,ZYr:hRe,AM:bK6,set:s1y},Mq:xl,handleError:function(L,B,f){var K,V=f==null?void 0:(K=f.error)==null?void 0:K.code;if(V===400||V===415){var J;L=new g.iL(L.message,B,f==null?void 0:(J=f.error)==null?void 0:J.code);Kg(L,void 0,void 0,void 0,!0)}else g.B7(L)},
|
|
sV:Kg,sendFn:UHQ,now:g.bc,kx:ECL,kC:g.ol(),Qg:"publicytnetworkstatus-online",GA:"publicytnetworkstatus-offline",Pb:!0,T9:.1,aS:g.bl("potential_esf_error_limit",10),GL:g.h_,gq:!(g.zT()&&g.tW(document.location.toString())!=="www.youtube-nocookie.com")});this.V=new g.IQ;g.h_("networkless_immediately_drop_all_requests")&&T$8();rX0("LogsDatabaseV2")};
|
|
n4=function(){var A=g.bB("yt.networklessRequestController.instance");A||(A=new e_,g.hf("yt.networklessRequestController.instance",A),g.h_("networkless_logging")&&g.Ab().then(function(L){A.uQ=L;pC8(A);A.V.resolve();A.Pb&&Math.random()<=A.T9&&A.uQ&&Q1D(A.uQ);g.h_("networkless_immediately_drop_sw_health_store")&&Wok(A)}));
|
|
return A};
|
|
Wok=function(A){var L;g.c(function(B){if(!A.uQ)throw L=g.g2("clearSWHealthLogsDb"),L;return B.return(CkL(A.uQ).catch(function(f){A.handleError(f)}))})};
|
|
UHQ=function(A,L,B,f){f=f===void 0?!1:f;L=g.h_("web_fp_via_jspb")?Object.assign({},L):L;if(g.h_("use_request_time_ms_header"))L.headers&&Fa(A)&&(L.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.bc)())));else{var K;if((K=L.postParams)==null?0:K.requestTimeMs)L.postParams.requestTimeMs=Math.round((0,g.bc)())}B&&Object.keys(L).length===0?g.MJ(A):L.compress?L.postBody?(typeof L.postBody!=="string"&&(L.postBody=JSON.stringify(L.postBody)),Qf(A,L.postBody,L,g.ll,f)):Qf(A,JSON.stringify(L.postParams),
|
|
L,mM,f):g.ll(A,L)};
|
|
zP=function(A,L){g.h_("use_event_time_ms_header")&&Fa(A)&&(L.headers||(L.headers={}),L.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.bc)())));return L};
|
|
g.uy=function(A){this.config_=null;A?this.config_=A:YBC()&&(this.config_=g.FY())};
|
|
g.aI=function(A,L,B,f){function K(N){try{if((N===void 0?0:N)&&f.retry&&!f.networklessOptions.bypassNetworkless)V.method="POST",f.networklessOptions.writeThenSend?n4().writeThenSend(Z,V):n4().sendAndWrite(Z,V);else if(f.compress){var F=!f.networklessOptions.writeThenSend;if(V.postBody){var D=V.postBody;typeof D!=="string"&&(D=JSON.stringify(V.postBody));Qf(Z,D,V,g.ll,F)}else Qf(Z,JSON.stringify(V.postParams),V,mM,F)}else mM(Z,V)}catch(I){if(I.name==="InvalidAccessError")Kg(Error("An extension is blocking network request."));
|
|
else throw I;}}
|
|
!g.A_("VISITOR_DATA")&&L!=="visitor_id"&&Math.random()<.01&&Kg(new g.iL("Missing VISITOR_DATA when sending innertube request.",L,B,f));if(!A.isReady())throw A=new g.iL("innertube xhrclient not ready",L,B,f),g.B7(A),A;var V={headers:f.headers||{},method:"POST",postParams:B,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()},
|
|
onFetchTimeout:f.onTimeout,onSuccess:function(N,F){if(f.onSuccess)f.onSuccess(F)},
|
|
onFetchSuccess:function(N){if(f.onSuccess)f.onSuccess(N)},
|
|
onProgress:function(N){if(f.onProgress)f.onProgress(N)},
|
|
onError:function(N,F){if(f.onError)f.onError(F)},
|
|
onFetchError:function(N){if(f.onError)f.onError(N)},
|
|
timeout:f.timeout,withCredentials:!0,compress:f.compress};V.headers["Content-Type"]||(V.headers["Content-Type"]="application/json");B="";var J=A.config_.m9;J&&(B=J);J=A.config_.Fw||!1;var R=uO7(J,B,f);Object.assign(V.headers,R);V.headers.Authorization&&!B&&J&&(V.headers["x-origin"]=window.location.origin);var Z=Zp(""+B+("/youtubei/"+A.config_.innertubeApiVersion+"/"+L),{alt:"json"});g.bB("ytNetworklessLoggingInitializationOptions")&&vCv.isNwlInitialized?dTL().then(function(N){K(N)}):K(!1)};
|
|
g.fV=function(A,L,B){var f=g.A0();if(f&&L){var K=f.subscribe(A,function(){function V(){LV[K]&&L.apply&&typeof L.apply=="function"&&L.apply(B||window,J)}
|
|
var J=arguments;try{g.oW[A]?V():g.gW(V,0)}catch(R){g.B7(R)}},B);
|
|
LV[K]=!0;BQ[A]||(BQ[A]=[]);BQ[A].push(K);return K}return 0};
|
|
qn1=function(A){var L=g.fV("LOGGED_IN",function(B){A.apply(void 0,arguments);g.KV(L)})};
|
|
g.KV=function(A){var L=g.A0();L&&(typeof A==="number"?A=[A]:typeof A==="string"&&(A=[parseInt(A,10)]),g.yB(A,function(B){L.unsubscribeByKey(B);delete LV[B]}))};
|
|
g.V0=function(A,L){var B=g.A0();return B?B.publish.apply(B,arguments):!1};
|
|
xHQ=function(A){var L=g.A0();if(L)if(L.clear(A),A)Pk0(A);else for(var B in BQ)Pk0(B)};
|
|
g.A0=function(){return g.rI.ytPubsubPubsubInstance};
|
|
Pk0=function(A){BQ[A]&&(A=BQ[A],g.yB(A,function(L){LV[L]&&delete LV[L]}),A.length=0)};
|
|
g.J0=function(A,L,B){eR6(A,L,B===void 0?null:B)};
|
|
eR6=function(A,L,B){B=B===void 0?null:B;var f=nCD(typeof A==="string"?A:A.toString()),K=document.getElementById(f),V=K&&Ns8(K),J=K&&!V;V?L&&L():(L&&(V=g.fV(f,L),L=""+g.$W(L),zR7[L]=V),J||(K=uqw(A,f,function(){Ns8(K)||(Z2D(K),g.V0(f),g.gW(function(){xHQ(f)},0))},B)))};
|
|
uqw=function(A,L,B,f){f=f===void 0?null:f;var K=g.TO("SCRIPT");K.id=L;K.onload=function(){B&&setTimeout(B,0)};
|
|
K.onreadystatechange=function(){switch(K.readyState){case "loaded":case "complete":K.onload()}};
|
|
f&&K.setAttribute("nonce",f);g.ET(K,typeof A==="string"?g.Q4(A):A);A=document.getElementsByTagName("head")[0]||document.body;A.insertBefore(K,A.firstChild);return K};
|
|
nCD=function(A){var L=document.createElement("a");g.tF(L,A);A=L.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+eS(A)};
|
|
SP=function(A,L){if(A===L)A=!0;else if(Array.isArray(A)&&Array.isArray(L))A=g.wo(A,L,SP);else if(g.QK(A)&&g.QK(L))a:if(g.bs(A).length!=g.bs(L).length)A=!1;else{for(var B in A)if(!SP(A[B],L[B])){A=!1;break a}A=!0}else A=!1;return A};
|
|
NU=function(A){var L=g.pf.apply(1,arguments);if(!RW(A)||L.some(function(f){return!RW(f)}))throw Error("Only objects may be merged.");
|
|
L=g.m(L);for(var B=L.next();!B.done;B=L.next())ZP(A,B.value)};
|
|
ZP=function(A,L){for(var B in L)if(RW(L[B])){if(B in A&&!RW(A[B]))throw Error("Cannot merge an object into a non-object.");B in A||(A[B]={});ZP(A[B],L[B])}else if(Fy(L[B])){if(B in A&&!Fy(A[B]))throw Error("Cannot merge an array into a non-array.");B in A||(A[B]=[]);a1E(A[B],L[B])}else A[B]=L[B];return A};
|
|
a1E=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next())B=B.value,RW(B)?A.push(ZP({},B)):Fy(B)?A.push(a1E([],B)):A.push(B);return A};
|
|
RW=function(A){return typeof A==="object"&&!Array.isArray(A)};
|
|
Fy=function(A){return typeof A==="object"&&Array.isArray(A)};
|
|
DP=function(A){g.Y.call(this);this.W=A};
|
|
dT=function(A){DP.call(this,!0);this.N=A};
|
|
IW=function(A,L){g.Y.call(this);var B=this;this.V=[];this.X=!1;this.W=0;this.D=this.T=this.U=!1;this.Wn=null;var f=(0,g.X9)(A,L);this.N=new g.aa(function(){return f(B.Wn)},300);
|
|
g.W(this,this.N);this.yj=this.G=Infinity};
|
|
Al6=function(A,L){if(!L)return!1;for(var B=0;B<L.length;B++){var f=L.item(B);if(f&&A.V.includes(f.identifier))return!0}return!1};
|
|
pV=function(A){if(window.crypto&&window.crypto.getRandomValues)try{var L=Array(A),B=new Uint8Array(A);window.crypto.getRandomValues(B);for(var f=0;f<L.length;f++)L[f]=B[f];return L}catch(V){}L=Array(A);for(B=0;B<A;B++){f=Date.now();for(var K=0;K<f%23;K++)L[B]=Math.random();L[B]=Math.floor(Math.random()*256)}if(wT)for(B=1,f=0;f<wT.length;f++)L[B%A]^=L[(B-1)%A]/4^wT.charCodeAt(f),B++;return L};
|
|
g.y0=function(A){A=pV(A);for(var L=[],B=0;B<A.length;B++)L.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[B]&63));return L.join("")};
|
|
g.Lcw=function(){return g.mn(pV(16),function(A){return(A&15).toString(16)}).join("")};
|
|
Bn7=function(){var A={};var L=A.J_s===void 0?!1:A.J_s;A=A.Te===void 0?!0:A.Te;if(g.bB("_lact",window)==null){var B=parseInt(g.A_("LACT"),10);B=isFinite(B)?Date.now()-Math.max(B,0):-1;g.hf("_lact",B,window);g.hf("_fact",B,window);B==-1&&jP();oRw(L,A);new mu(function(){gT("mouse",100)})}};
|
|
oRw=function(A,L){var B=window;A=A===void 0?!1:A;L=L===void 0?!0:L;g.tK(B.document,"keydown",jP);g.tK(B.document,"keyup",jP);g.tK(B.document,"mousedown",jP);g.tK(B.document,"mouseup",jP);A?g.tK(B,"touchmove",function(){gT("touchmove",200)},{passive:!0}):(g.tK(B,"resize",function(){gT("resize",200)}),L&&g.tK(B,"scroll",function(){gT("scroll",200)}));
|
|
g.tK(B.document,"touchstart",jP,{passive:!0});g.tK(B.document,"touchend",jP,{passive:!0})};
|
|
gT=function(A,L){Gx[A]||(Gx[A]=!0,g.qT.pV(function(){jP();Gx[A]=!1},L))};
|
|
jP=function(){g.bB("_lact",window)==null&&(Bn7(),g.bB("_lact",window));var A=Date.now();g.hf("_lact",A,window);g.bB("_fact",window)==-1&&g.hf("_fact",A,window);(A=g.bB("ytglobal.ytUtilActivityCallback_"))&&A()};
|
|
rT=function(){var A=g.bB("_lact",window);return A==null?-1:Math.max(Date.now()-A,0)};
|
|
sl=function(A){this.name=A};
|
|
HQ=function(A){this.key=A};
|
|
h0=function(A){return new HQ(A)};
|
|
fle=function(){var A=this;this.N=new Map;this.V=new Map;this.W=new Map;this.GV={VM1:function(){return new Map(A.N)}}};
|
|
b_=function(A,L){A.N.set(L.iG,L);var B=A.V.get(L.iG);if(B)try{B.xv(A.resolve(L.iG))}catch(f){B.jV(f)}};
|
|
k0=function(A,L,B,f){f=f===void 0?!1:f;if(B.indexOf(L)>-1)throw Error("Deps cycle for: "+L);if(A.W.has(L))return A.W.get(L);if(!A.N.has(L)){if(f)return;throw Error("No provider for: "+L);}f=A.N.get(L);B.push(L);if(f.qK!==void 0)var K=f.qK;else if(f.Eur)K=f[t0]?Kck(A,f[t0],B):[],K=f.Eur.apply(f,g.x7(K));else if(f.ZN){K=f.ZN;var V=K[t0]?Kck(A,K[t0],B):[];K=new (Function.prototype.bind.apply(K,[null].concat(g.x7(V))))}else throw Error("Could not resolve providers for: "+L);B.pop();f.JIL||A.W.set(L,K);
|
|
return K};
|
|
Kck=function(A,L,B){return L?L.map(function(f){return f instanceof HQ?k0(A,f.key,B,!0):k0(A,f,B)}):[]};
|
|
l_=function(){Tx||(Tx=new fle);return Tx};
|
|
Jl0=function(){var A=VtC;return function(){var L=l_();if(!L.resolve(h0(A))){var B={};b_(L,(B.iG=A,B.ZN=A,B[t0]=void 0,B))}return L.resolve(A)}};
|
|
Q0=function(){var A,L;return"h5vcc"in me&&((A=me.h5vcc.traceEvent)==null?0:A.traceBegin)&&((L=me.h5vcc.traceEvent)==null?0:L.traceEnd)?1:"performance"in me&&me.performance.mark&&me.performance.measure?2:0};
|
|
CV=function(A){var L=Q0();switch(L){case 1:me.h5vcc.traceEvent.traceBegin("YTLR",A);break;case 2:me.performance.mark(A+"-start");break;case 0:break;default:kj(L,"unknown trace type")}};
|
|
S57=function(A){var L=Q0();switch(L){case 1:me.h5vcc.traceEvent.traceEnd("YTLR",A);break;case 2:L=A+"-start";var B=A+"-end";me.performance.mark(B);me.performance.measure(A,L,B);break;case 0:break;default:kj(L,"unknown trace type")}};
|
|
R2D=function(A){var L,B;(B=(L=window).onerror)==null||B.call(L,A.message,"",0,0,A)};
|
|
ZXk=function(A){var L=this;var B=B===void 0?0:B;var f=f===void 0?g.ol():f;this.V=B;this.scheduler=f;this.W=new g.IQ;this.N=A;for(A={w2:0};A.w2<this.N.length;A={sY:void 0,w2:A.w2},A.w2++)A.sY=this.N[A.w2],B=function(K){return function(){K.sY.lX();L.N[K.w2].B5=!0;L.N.every(function(V){return V.B5===!0})&&L.W.resolve()}}(A),f=aX(B,i_(this,A.sY)),this.N[A.w2]=Object.assign({},A.sY,{lX:B,
|
|
jobId:f})};
|
|
Nn1=function(A){var L=Array.from(A.N.keys()).sort(function(f,K){return i_(A,A.N[K])-i_(A,A.N[f])});
|
|
L=g.m(L);for(var B=L.next();!B.done;B=L.next())B=A.N[B.value],B.jobId===void 0||B.B5||(A.scheduler.WF(B.jobId),aX(B.lX,10))};
|
|
i_=function(A,L){var B;return(B=L.priority)!=null?B:A.V};
|
|
Xy=function(A){this.state=A;this.plugins=[];this.V=void 0;this.U={};$0&&CV(this.state)};
|
|
Fc8=function(A,L){var B=L.filter(function(K){return Ol(A,K)===10}),f=L.filter(function(K){return Ol(A,K)!==10});
|
|
return A.U.Znp?function(){var K=g.pf.apply(0,arguments);return g.c(function(V){if(V.N==1)return g.X(V,A.y1D.apply(A,[B].concat(g.x7(K))),2);A.gC.apply(A,[f].concat(g.x7(K)));g.VK(V)})}:function(){var K=g.pf.apply(0,arguments);
|
|
A.WDr.apply(A,[B].concat(g.x7(K)));A.gC.apply(A,[f].concat(g.x7(K)))}};
|
|
Ol=function(A,L){var B,f;return(f=(B=A.V)!=null?B:L.priority)!=null?f:0};
|
|
El=function(A){$0&&A&&CV(A)};
|
|
cQ=function(A){$0&&A&&S57(A)};
|
|
dvC=function(A,L,B){Dv1&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+A.constructor.name+"] '"+A.state+"' to '"+L+"'"),console.log("with message: ",B),console.groupEnd())};
|
|
MU=function(A){if(g.h_("web_lifecycle_error_handling_killswitch"))return A();try{return A()}catch(L){R2D(L)}};
|
|
Y0=function(A){Xy.call(this,A===void 0?"none":A);this.N=null;this.V=10;this.transitions=[{from:"none",to:"application_navigating",action:this.D},{from:"application_navigating",to:"none",action:this.T},{from:"application_navigating",to:"application_navigating",action:function(){}},
|
|
{from:"none",to:"none",action:function(){}}]};
|
|
Ile=function(){Ul||(Ul=new Y0);return Ul};
|
|
WQ=function(){var A=this;this.store={};this.N=0;this.W={};this.GV={ByF:function(){return A.N}}};
|
|
PQ=function(A,L){var B=vQ(L);if(A.W[B])return A.W[B];var f=Object.keys(A.store)||[];if(f.length<=1&&vQ(L)===f[0])return f;for(var K=[],V=0;V<f.length;V++){var J=f[V].split("/");if(qU(L.auth,J[0])){var R=L.isJspb;qU(R===void 0?"undefined":R?"true":"false",J[1])&&qU(L.cttAuthInfo,J[2])&&(R=L.tier,R=R===void 0?"undefined":JSON.stringify(R),qU(R,J[3])&&K.push(f[V]))}}return A.W[B]=K};
|
|
qU=function(A,L){return A===void 0||A==="undefined"?!0:A===L};
|
|
vQ=function(A){return[A.auth===void 0?"undefined":A.auth,A.isJspb===void 0?"undefined":A.isJspb,A.cttAuthInfo===void 0?"undefined":A.cttAuthInfo,A.tier===void 0?"undefined":A.tier].join("/")};
|
|
x0=function(){this.U=this.N=this.W=0;this.V=!1};
|
|
eP=function(){var A=g.bB("yt.logging.ims");A||(A=new WQ,g.hf("yt.logging.ims",A));return A};
|
|
yl1=function(){if(VRe()&&!wt8){var A=function(B){B=B.data;if(B.op==="serializedGelBatch"){var f=nV.get(B.key);f&&(pt7(B.serializedBatch,f.client,f.resolve,f.networklessOptions,f.isIsolated,f.useVSSEndpoint,f.dangerousLogToVisitorSession,f.requestsOutstanding),nV.delete(B.key))}},L=by();
|
|
L&&(L.addEventListener("message",A),L.onerror=function(){nV.clear()});
|
|
wt8=!0}};
|
|
HX7=function(A,L){if(A.endpoint==="log_event"){zx(A);var B=u_(A),f=jwe(A.payload)||"",K=gR8(f),V=200;if(K){if(K.enabled===!1&&!g.h_("web_payload_policy_disabled_killswitch"))return;V=GR0(K.tier);if(V===400){rl7(A,L);return}}aW[B]=!0;B={cttAuthInfo:B,isJspb:!1,tier:V};eP().storePayload(B,A.payload);swC(L,!1,B,Av(f))}};
|
|
bXw=function(A,L,B){if(L.endpoint==="log_event"){zx(void 0,L);var f=u_(L,!0),K=gR8(A),V=200;if(K){if(K.enabled===!1&&!g.h_("web_payload_policy_disabled_killswitch"))return;V=GR0(K.tier);if(V===400){h2v(A,L,B);return}}aW[f]=!0;f={cttAuthInfo:f,isJspb:!0,tier:V};eP().storePayload(f,Rg(L.payload));swC(B,!0,f,Av(A))}};
|
|
swC=function(A,L,B,f){function K(){LE({writeThenSend:!0},L,B.tier)}
|
|
L=L===void 0?!1:L;f=f===void 0?!1:f;A&&(o9=new A);A=g.bl("tvhtml5_logging_max_batch_ads_fork")||g.bl("tvhtml5_logging_max_batch")||g.bl("web_logging_max_batch")||100;var V=(0,g.bc)(),J=Bb(L,B.tier),R=J.U;f&&(J.V=!0);f=0;B&&(f=eP().getSequenceCount(B));f>=1E3?K():f>=A?fE||(fE=KE(function(){K();fE=void 0},0)):V-R>=10&&(ttD(L,B.tier),J.U=V)};
|
|
rl7=function(A,L){if(A.endpoint==="log_event"){g.h_("more_accurate_gel_parser")&&eP().storePayload({isJspb:!1},A.payload);zx(A);var B=u_(A),f=new Map;f.set(B,[A.payload]);var K=jwe(A.payload)||"";L&&(o9=new L);return new g.QX(function(V,J){o9&&o9.isReady()?kRv(f,o9,V,J,{bypassNetworkless:!0},!0,Av(K)):V()})}};
|
|
h2v=function(A,L,B){if(L.endpoint==="log_event"){zx(void 0,L);var f=u_(L,!0),K=new Map;K.set(f,[Rg(L.payload)]);B&&(o9=new B);return new g.QX(function(V){o9&&o9.isReady()?TnC(K,o9,V,{bypassNetworkless:!0},!0,Av(A)):V()})}};
|
|
u_=function(A,L){var B="";if(A.dangerousLogToVisitorSession)B="visitorOnlyApprovedKey";else if(A.cttAuthInfo){if(L===void 0?0:L){L=A.cttAuthInfo.token;B=A.cttAuthInfo;var f=new nX;B.videoId?f.setVideoId(B.videoId):B.playlistId&&EG(f,2,VH,nd(B.playlistId));Jv[L]=f}else L=A.cttAuthInfo,B={},L.videoId?B.videoId=L.videoId:L.playlistId&&(B.playlistId=L.playlistId),SB[A.cttAuthInfo.token]=B;B=A.cttAuthInfo.token}return B};
|
|
LE=function(A,L,B){A=A===void 0?{}:A;L=L===void 0?!1:L;new g.QX(function(f,K){var V=Bb(L,B),J=V.V;V.V=!1;R9(V.W);R9(V.N);V.N=0;o9&&o9.isReady()?B===void 0&&g.h_("enable_web_tiered_gel")?lly(f,K,A,L,300,J):lly(f,K,A,L,B,J):(ttD(L,B),f())})};
|
|
lly=function(A,L,B,f,K,V){var J=o9;B=B===void 0?{}:B;f=f===void 0?!1:f;K=K===void 0?200:K;V=V===void 0?!1:V;var R=new Map,Z=new Map,N={isJspb:f,cttAuthInfo:void 0,tier:K},F={isJspb:f,cttAuthInfo:void 0};if(f){L=g.m(Object.keys(aW));for(K=L.next();!K.done;K=L.next())K=K.value,Z=g.h_("enable_web_tiered_gel")?eP().smartExtractMatchingEntries({keys:[N,F],sizeLimit:1E3}):eP().extractMatchingEntries({isJspb:!0,cttAuthInfo:K}),Z.length>0&&R.set(K,Z),(g.h_("web_fp_via_jspb_and_json")&&B.writeThenSend||!g.h_("web_fp_via_jspb_and_json"))&&
|
|
delete aW[K];TnC(R,J,A,B,!1,V)}else{R=g.m(Object.keys(aW));for(N=R.next();!N.done;N=R.next())N=N.value,F=g.h_("enable_web_tiered_gel")?eP().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:N,tier:K},{isJspb:!1,cttAuthInfo:N}],sizeLimit:1E3}):eP().extractMatchingEntries({isJspb:!1,cttAuthInfo:N}),F.length>0&&Z.set(N,F),(g.h_("web_fp_via_jspb_and_json")&&B.writeThenSend||!g.h_("web_fp_via_jspb_and_json"))&&delete aW[N];kRv(Z,J,A,L,B,!1,V)}};
|
|
ttD=function(A,L){function B(){LE({writeThenSend:!0},A,L)}
|
|
A=A===void 0?!1:A;L=L===void 0?200:L;var f=Bb(A,L),K=f===mve||f===QwC?5E3:C88;g.h_("web_gel_timeout_cap")&&!f.N&&(K=KE(function(){B()},K),f.N=K);
|
|
R9(f.W);K=g.A_("LOGGING_BATCH_TIMEOUT",g.bl("web_gel_debounce_ms",1E4));g.h_("shorten_initial_gel_batch_timeout")&&ZO&&(K=iXv);K=KE(function(){g.bl("gel_min_batch_size")>0?eP().getSequenceCount({cttAuthInfo:void 0,isJspb:A,tier:L})>=$vS&&B():B()},K);
|
|
f.W=K};
|
|
kRv=function(A,L,B,f,K,V,J){K=K===void 0?{}:K;var R=Math.round((0,g.bc)()),Z=A.size,N=XtE(J);A=g.m(A);var F=A.next();for(J={};!F.done;J={Q1:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,x_:void 0,Hw:void 0},F=A.next()){var D=g.m(F.value);F=D.next().value;D=D.next().value;J.batchRequest=g.$g({context:g.Du(L.config_||g.FY())});if(!g.lB(D)&&!g.h_("throw_err_when_logevent_malformed_killswitch")){f();break}J.batchRequest.events=D;(D=SB[F])&&OX7(J.batchRequest,F,D);delete SB[F];J.dangerousLogToVisitorSession=
|
|
F==="visitorOnlyApprovedKey";ERv(J.batchRequest,R,J.dangerousLogToVisitorSession);cle(K);J.x_=function(I){g.h_("start_client_gcf")&&g.qT.pV(function(){return g.c(function(d){return g.X(d,MtS(I),0)})});
|
|
Z--;Z||B()};
|
|
J.Q1=0;J.Hw=function(I){return function(){I.Q1++;if(K.bypassNetworkless&&I.Q1===1)try{g.aI(L,N,I.batchRequest,N2({writeThenSend:!0},I.dangerousLogToVisitorSession,I.x_,I.Hw,V)),ZO=!1}catch(d){g.B7(d),f()}Z--;Z||B()}}(J);
|
|
try{g.aI(L,N,J.batchRequest,N2(K,J.dangerousLogToVisitorSession,J.x_,J.Hw,V)),ZO=!1}catch(I){g.B7(I),f()}}};
|
|
TnC=function(A,L,B,f,K,V){f=f===void 0?{}:f;var J=Math.round((0,g.bc)()),R={value:A.size},Z=new Map([].concat(g.x7(A)));Z=g.m(Z);for(var N=Z.next();!N.done;N=Z.next()){var F=g.m(N.value).next().value,D=A.get(F);N=new g.zR;var I=L.config_||g.FY(),d=new Wt,w=new XC;BS(w,1,I.sS);BS(w,2,I.CE);KH(w,16,I.kd);BS(w,17,I.innertubeContextClientVersion);if(I.kG){var r=I.kG,h=new i8;r.coldConfigData&&BS(h,1,r.coldConfigData);r.appInstallData&&BS(h,6,r.appInstallData);r.coldHashData&&BS(h,3,r.coldHashData);r.hotHashData&&
|
|
h.K3(r.hotHashData);PG(w,i8,62,h)}(r=g.rI.devicePixelRatio)&&r!=1&&ra(w,65,Ty(r));r=t_();r!==""&&BS(w,54,r);r=kz();if(r.length>0){h=new ct;for(var Q=0;Q<r.length;Q++){var l=new O5;BS(l,1,r[Q].key);EG(l,2,Y56,nd(r[Q].value));e7(h,15,O5,l)}PG(d,ct,5,h)}UTD(I,w);WKD(d);vwQ(w);qB1(I,w);PNE(w);g.h_("start_client_gcf")&&xTy(w);g.A_("DELEGATED_SESSION_ID")&&!g.h_("pageid_as_header_web")&&(I=new U5,BS(I,3,g.A_("DELEGATED_SESSION_ID")));!g.h_("fill_delegate_context_in_gel_killswitch")&&(r=g.A_("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
|
|
(h=WG(d,U5,3)||new U5,I=d,r=BS(h,18,r),PG(I,U5,3,r));I=w;r=g.m(Object.entries(I0(g.A_("DEVICE",""))));for(h=r.next();!h.done;h=r.next())Q=g.m(h.value),h=Q.next().value,Q=Q.next().value,h==="cbrand"?BS(I,12,Q):h==="cmodel"?BS(I,13,Q):h==="cbr"?BS(I,87,Q):h==="cbrver"?BS(I,88,Q):h==="cos"?BS(I,18,Q):h==="cosver"?BS(I,19,Q):h==="cplatform"&&KH(I,42,tA0(Q));d.Qs(w);PG(N,Wt,1,d);if(w=Jv[F])a:{if(w.TP())d=1;else if(w.getPlaylistId())d=2;else break a;PG(N,nX,4,w);w=WG(N,Wt,1)||new Wt;I=WG(w,U5,3)||new U5;
|
|
r=new YR;r.setToken(F);KH(r,1,d);e7(I,12,YR,r);PG(w,U5,3,I)}delete Jv[F];F=F==="visitorOnlyApprovedKey";FP()||oK(N,2,J);!F&&(d=g.A_("EVENT_ID"))&&(w=Uv7(),I=new et,BS(I,1,d),oK(I,2,w),PG(N,et,5,I));cle(f);if(g.h_("jspb_serialize_with_worker")&&(d=by())&&f.writeThenSend){nV.set(DO,{client:L,resolve:B,networklessOptions:f,isIsolated:K,useVSSEndpoint:V,dangerousLogToVisitorSession:F,requestsOutstanding:R});d.postMessage({op:"gelBatchToSerialize",batchRequest:Rg(N),clientEvents:D,key:DO});DO++;break}if(D){d=
|
|
[];for(w=0;w<D.length;w++)try{d.push(new xR(D[w]))}catch(C){g.B7(new g.iL("Transport failed to deserialize "+String(D[w])))}D=d}else D=[];D=g.m(D);for(d=D.next();!d.done;d=D.next())e7(N,3,xR,d.value);D={startTime:(0,g.bc)(),ticks:{},infos:{}};N=N.PV();D.ticks.geljspc=(0,g.bc)();g.h_("log_jspb_serialize_latency")&&GP("gel_jspb_serialize",D,{sampleRate:.1});pt7(N,L,B,f,K,V,F,R)}};
|
|
pt7=function(A,L,B,f,K,V,J,R){f=f===void 0?{}:f;R=R===void 0?{value:0}:R;V=XtE(V);f=N2(f,J,function(Z){g.h_("start_client_gcf")&&g.qT.pV(function(){return g.c(function(N){return g.X(N,MtS(Z),0)})});
|
|
R.value--;R.value||B()},function(){R.value--;
|
|
R.value||B()},K);
|
|
f.headers["Content-Type"]="application/json+protobuf";f.postBodyFormat="JSPB";f.postBody=A;g.aI(L,V,"",f);ZO=!1};
|
|
cle=function(A){g.h_("always_send_and_write")&&(A.writeThenSend=!1)};
|
|
N2=function(A,L,B,f,K){A={retry:!0,onSuccess:B,onError:f,networklessOptions:A,dangerousLogToVisitorSession:L,AUs:!!K,headers:{},postBodyFormat:"",postBody:"",compress:g.h_("compress_gel")||g.h_("compress_gel_lr")};FP()&&(A.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.bc)())));return A};
|
|
ERv=function(A,L,B){FP()||(A.requestTimeMs=String(L));g.h_("unsplit_gel_payloads_in_logs")&&(A.unsplitGelPayloadsInLogs=!0);!B&&(L=g.A_("EVENT_ID"))&&(B=Uv7(),A.serializedClientEventId={serializedEventId:L,clientCounter:String(B)})};
|
|
Uv7=function(){var A=g.A_("BATCH_CLIENT_COUNTER")||0;A||(A=Math.floor(Math.random()*65535/2));A++;A>65535&&(A=1);aw("BATCH_CLIENT_COUNTER",A);return A};
|
|
OX7=function(A,L,B){if(B.videoId)var f="VIDEO";else if(B.playlistId)f="PLAYLIST";else return;A.credentialTransferTokenTargetId=B;A.context=A.context||{};A.context.user=A.context.user||{};A.context.user.credentialTransferTokens=[{token:L,scope:f}]};
|
|
zx=function(A,L){var B=g.bB("yt.logging.transport.enableScrapingForTest"),f=H7("il_payload_scraping");f=(f!==void 0?String(f):"")==="enable_il_payload_scraping";if(!B)if(f)d8=[],g.hf("yt.logging.transport.enableScrapingForTest",!0),g.hf("yt.logging.transport.scrapedPayloadsForTesting",d8),g.hf("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.hf("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
|
|
g.hf("yt.logging.transport.scrapeClientEvent",!0);else return;B=g.bB("yt.logging.transport.scrapedPayloadsForTesting");f=g.bB("yt.logging.transport.payloadToScrape");L&&(L=L.payload,(L=g.bB("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(L)())&&B.push(L));L=g.bB("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var K=0;K<f.length;K++)if(A&&A.payload[f[K]])if(L)B.push(A.payload);else{var V=void 0;B.push(((V=A)==null?void 0:V.payload)[f[K]])}g.hf("yt.logging.transport.scrapedPayloadsForTesting",
|
|
B)};
|
|
FP=function(){return g.h_("use_request_time_ms_header")||g.h_("lr_use_request_time_ms_header")};
|
|
KE=function(A,L){return g.h_("transport_use_scheduler")===!1?g.gW(A,L):g.h_("logging_avoid_blocking_during_navigation")||g.h_("lr_logging_avoid_blocking_during_navigation")?g.AR(0,function(){if(Ile().currentState==="none")A();else{var B={};Ile().install((B.none={callback:A},B))}},L):aX(A,0,L)};
|
|
R9=function(A){g.h_("transport_use_scheduler")?g.qT.WF(A):g.rW(A)};
|
|
MtS=function(A){var L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){if(h.N==1)return f=(L=A)==null?void 0:(B=L.responseContext)==null?void 0:B.globalConfigGroup,K=g.y(f,Wcy),J=(V=f)==null?void 0:V.hotHashData,R=g.y(f,vRD),N=(Z=f)==null?void 0:Z.coldHashData,(F=l_().resolve(h0(Zu)))?J?K?g.X(h,Ew8(F,J,K),3):g.X(h,Ew8(F,J),3):h.Ux(3):h.Ux(2);if(h.N!=2)return N?R?g.X(h,cX0(F,N,R),2):g.X(h,cX0(F,N),2):h.Ux(2);I=(D=f)==null?void 0:D.rawFinchStaticConfigGroup;w=(d=f)==null?void 0:d.finchStaticHashData;
|
|
if(!w)return I&&Kg(new g.iL("Finch config data is present, but hash is missing.")),h.return();r=l_().resolve(h0(q5S));return r?g.X(h,r.QGn({config:I||{},vhL:w||""}),0):((I||w)&&Kg(new g.iL("FinchConfigManagerService is not present, but Finch config data is present.")),h.Ux(0))})};
|
|
Bb=function(A,L){L=L===void 0?200:L;return A?L===300?mve:P8D:L===300?QwC:xvE};
|
|
gR8=function(A){if(g.h_("enable_web_tiered_gel")){A=e2L[A||""];var L,B,f,K=l_().resolve(h0(Zu))==null?void 0:(L=NJ())==null?void 0:(B=L.loggingHotConfig)==null?void 0:(f=B.eventLoggingConfig)==null?void 0:f.payloadPolicies;if(K)for(L=0;L<K.length;L++)if(K[L].payloadNumber===A)return K[L]}};
|
|
jwe=function(A){A=Object.keys(A);A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,e2L[L])return L};
|
|
GR0=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}};
|
|
Av=function(A){return A==="gelDebuggingEvent"};
|
|
XtE=function(A){return(A===void 0?0:A)&&g.h_("vss_through_gel_video_stats")?"video_stats":"log_event"};
|
|
w8=function(A,L,B,f){f=f===void 0?{}:f;var K={},V=Math.round(f.timestamp||(0,g.bc)());K.eventTimeMs=V<Number.MAX_SAFE_INTEGER?V:0;K[A]=L;A=rT();K.context={lastActivityMs:String(f.timestamp||!isFinite(A)?-1:A)};f.sequenceGroup&&!g.h_("web_gel_sequence_info_killswitch")&&(A=K.context,L=f.sequenceGroup,L={index:nRw(L),groupKey:L},A.sequence=L,f.endOfSequence&&delete I9[f.sequenceGroup]);g.h_("web_tag_automated_log_events")&&(K.context.automatedLogEventSource=f.automatedLogEventSource);(f.sendIsolatedPayload?
|
|
rl7:HX7)({endpoint:"log_event",payload:K,cttAuthInfo:f.cttAuthInfo,dangerousLogToVisitorSession:f.dangerousLogToVisitorSession},B)};
|
|
nRw=function(A){I9[A]=A in I9?I9[A]+1:0;return I9[A]};
|
|
g.pE=function(A,L,B){B=B===void 0?{}:B;var f=g.uy;g.A_("ytLoggingEventsDefaultDisabled",!1)&&g.uy===g.uy&&(f=null);w8(A,L,f,B)};
|
|
yH=function(A){this.N=A};
|
|
g.jB=function(A){return new yH({trackingParams:A})};
|
|
g8=function(A,L,B,f,K,V){var J=z2Q++;return new yH({veType:A,veCounter:J,elementIndex:B,dataElement:L,youtubeData:f,jspbYoutubeData:K,loggingDirectives:V})};
|
|
uCv=function(A){return g.A_("client-screen-nonce-store",{})[A===void 0?0:A]};
|
|
alL=function(A,L){L=L===void 0?0:L;var B=g.A_("client-screen-nonce-store");B||(B={},aw("client-screen-nonce-store",B));B[L]=A};
|
|
GN=function(A){A=A===void 0?0:A;return A===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+A};
|
|
A_y=function(A){return g.A_(GN(A===void 0?0:A))};
|
|
g.r8=function(A){return(A=A_y(A===void 0?0:A))?new yH({veType:A,youtubeData:void 0,jspbYoutubeData:void 0}):null};
|
|
LMD=function(){var A=g.A_("csn-to-ctt-auth-info");A||(A={},aw("csn-to-ctt-auth-info",A));return A};
|
|
ozQ=function(){return Object.values(g.A_("client-screen-nonce-store",{})).filter(function(A){return A!==void 0})};
|
|
g.sF=function(A){A=uCv(A===void 0?0:A);if(!A&&!g.A_("USE_CSN_FALLBACK",!0))return null;A||(A="UNDEFINED_CSN");return A?A:null};
|
|
fp1=function(A){for(var L=g.m(Object.values(BWe)),B=L.next();!B.done;B=L.next())if(g.sF(B.value)===A)return!0;return!1};
|
|
KMD=function(A,L,B){var f=LMD();(B=g.sF(B))&&delete f[B];L&&(f[A]=L)};
|
|
Hb=function(A){return LMD()[A]};
|
|
J_7=function(A,L,B,f){B=B===void 0?0:B;if(A!==uCv(B)||L!==g.A_(GN(B)))if(KMD(A,f,B),alL(A,B),aw(GN(B),L),L=function(){setTimeout(function(){A&&g.pE("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:VkD,clientScreenNonce:A})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(L)}catch(K){L()}else L()};
|
|
hv=function(A,L){var B=B===void 0?!0:B;var f=g.A_("VALID_SESSION_TEMPDATA_DOMAINS",[]),K=g.tW(window.location.href);K&&f.push(K);K=g.tW(A);if(g.zK(f,K)||!K&&zk(A,"/"))if(f=document.createElement("a"),g.tF(f,A),A=f.href)if(A=Tr(A),A=NKL(A))if(B&&!L.csn&&(L.itct||L.ved)&&(L=Object.assign({csn:g.sF()},L)),V){var V=parseInt(V,10);isFinite(V)&&V>0&&SQQ(A,L,V)}else SQQ(A,L)};
|
|
SQQ=function(A,L,B){A=RzD(A);L=L?g.CC(L):"";B=B||5;JK()&&g.Ms(A,L,B)};
|
|
RzD=function(A){for(var L=g.m(ZgQ),B=L.next();!B.done;B=L.next())A=cI(A,B.value);return"ST-"+eS(A).toString(36)};
|
|
NWk=function(A){if(A.name==="JavaException")return!0;A=A.stack;return A.includes("chrome://")||A.includes("-extension://")||A.includes("webkit-masked-url://")};
|
|
FMD=function(A){if(!A.stack)return!0;var L=!A.stack.includes("\n");return L&&A.stack.includes("ErrorType: ")||L&&A.stack.includes("Anonymous function (Unknown script")||A.stack.toLowerCase()==="not available"||A.fileName==="user-script"||A.fileName.startsWith("user-script:")?!0:!1};
|
|
Dse=function(){this.C5=[];this.Df=[]};
|
|
tv=function(){if(!bf){var A=bf=new Dse;A.Df.length=0;A.C5.length=0;dse(A,Ip0)}return bf};
|
|
dse=function(A,L){L.Df&&A.Df.push.apply(A.Df,L.Df);L.C5&&A.C5.push.apply(A.C5,L.C5)};
|
|
w7y=function(A){function L(){return A.charCodeAt(f++)}
|
|
var B=A.length,f=0;do{var K=kf(L);if(K===Infinity)break;var V=K>>3;switch(K&7){case 0:K=kf(L);if(V===2)return K;break;case 1:if(V===2)return;f+=8;break;case 2:K=kf(L);if(V===2)return A.substr(f,K);f+=K;break;case 5:if(V===2)return;f+=4;break;default:return}}while(f<B)};
|
|
kf=function(A){var L=A(),B=L&127;if(L<128)return B;L=A();B|=(L&127)<<7;if(L<128)return B;L=A();B|=(L&127)<<14;if(L<128)return B;L=A();return L<128?B|(L&127)<<21:Infinity};
|
|
p77=function(A,L,B,f){if(A)if(Array.isArray(A)){var K=f;for(f=0;f<A.length&&!(A[f]&&(K+=TN(f,A[f],L,B),K>500));f++);f=K}else if(typeof A==="object")for(K in A){if(A[K]){var V=K;var J=A[K],R=L,Z=B;V=typeof J!=="string"||V!=="clickTrackingParams"&&V!=="trackingParams"?0:(J=w7y(atob(J.replace(/-/g,"+").replace(/_/g,"/"))))?TN(V+".ve",J,R,Z):0;f+=V;f+=TN(K,A[K],L,B);if(f>500)break}}else B[L]=lf(A),f+=B[L].length;else B[L]=lf(A),f+=B[L].length;return f};
|
|
TN=function(A,L,B,f){B+="."+A;A=lf(L);f[B]=A;return B.length+A.length};
|
|
lf=function(A){try{return(typeof A==="string"?A:String(JSON.stringify(A))).substr(0,500)}catch(L){return"unable to serialize "+typeof A+" ("+L.message+")"}};
|
|
QH=function(A){g.mL(A)};
|
|
g.CE=function(A){g.mL(A,"WARNING")};
|
|
g.mL=function(A,L){var B=B===void 0?{}:B;B.name=g.A_("INNERTUBE_CONTEXT_CLIENT_NAME",1);B.version=g.A_("INNERTUBE_CONTEXT_CLIENT_VERSION");L=L===void 0?"ERROR":L;var f=!1;L=L===void 0?"ERROR":L;f=f===void 0?!1:f;if(A){A.hasOwnProperty("level")&&A.level&&(L=A.level);if(g.h_("console_log_js_exceptions")){var K=[];K.push("Name: "+A.name);K.push("Message: "+A.message);A.hasOwnProperty("params")&&K.push("Error Params: "+JSON.stringify(A.params));A.hasOwnProperty("args")&&K.push("Error args: "+JSON.stringify(A.args));
|
|
K.push("File name: "+A.fileName);K.push("Stacktrace: "+A.stack);window.console.log(K.join("\n"),A)}if(!(y_y>=5)){K=[];for(var V=g.m(jMk),J=V.next();!J.done;J=V.next()){J=J.value;try{J()&&K.push(J())}catch(r){}}K=[].concat(g.x7(gzQ),g.x7(K));var R=mX8(A);V=R.message||"Unknown Error";J=R.name||"UnknownError";var Z=R.stack||A.W||"Not available";if(Z.startsWith(J+": "+V)){var N=Z.split("\n");N.shift();Z=N.join("\n")}N=R.lineNumber||"Not available";R=R.fileName||"Not available";var F=0;if(A.hasOwnProperty("args")&&
|
|
A.args&&A.args.length)for(var D=0;D<A.args.length&&!(F=p77(A.args[D],"params."+D,B,F),F>=500);D++);else if(A.hasOwnProperty("params")&&A.params){var I=A.params;if(typeof A.params==="object")for(D in I){if(I[D]){var d="params."+D,w=lf(I[D]);B[d]=w;F+=d.length+w.length;if(F>500)break}}else B.params=lf(I)}if(K.length)for(D=0;D<K.length&&!(F=p77(K[D],"params.context."+D,B,F),F>=500);D++);navigator.vendor&&!B.hasOwnProperty("vendor")&&(B["device.vendor"]=navigator.vendor);B={message:V,name:J,lineNumber:N,
|
|
fileName:R,stack:Z,params:B,sampleWeight:1};D=Number(A.columnNumber);isNaN(D)||(B.lineNumber=B.lineNumber+":"+D);if(A.level==="IGNORED")A=0;else a:{A=tv();D=g.m(A.Df);for(K=D.next();!K.done;K=D.next())if(K=K.value,B.message&&B.message.match(K.Aj)){A=K.weight;break a}A=g.m(A.C5);for(D=A.next();!D.done;D=A.next())if(D=D.value,D.callback(B)){A=D.weight;break a}A=1}B.sampleWeight=A;A=g.m(Gc0);for(D=A.next();!D.done;D=A.next())if(D=D.value,D.C7[B.name])for(V=g.m(D.C7[B.name]),K=V.next();!K.done;K=V.next())if(J=
|
|
K.value,K=B.message.match(J.v9)){B.params["params.error.original"]=K[0];V=J.groups;J={};for(N=0;N<V.length;N++)J[V[N]]=K[N+1],B.params["params.error."+V[N]]=K[N+1];B.message=D.Ac(J);break}B.params||(B.params={});A=tv();B.params["params.errorServiceSignature"]="msg="+A.Df.length+"&cb="+A.C5.length;B.params["params.serviceWorker"]="false";g.rI.document&&g.rI.document.querySelectorAll&&(B.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new FF(No,"sample")).constructor!==
|
|
FF&&(B.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(B);if(B.sampleWeight!==0&&!r_e.has(B.message)){if(f)sM7(L===void 0?"ERROR":L,B);else{L=L===void 0?"ERROR":L;L==="ERROR"?($f.publish("handleError",B),g.h_("record_app_crashed_web")&&Hg6===0&&B.sampleWeight===1&&(Hg6++,f={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.h_("report_client_error_with_app_crash_ks")||(f.systemHealth={crashData:{clientError:{logMessage:{message:B.message}}}}),g.pE("appCrashed",
|
|
f)),hze++):L==="WARNING"&&$f.publish("handleWarning",B);if(g.h_("kevlar_gel_error_routing")){f=L;A=void 0;A=A===void 0?{}:A;b:{D=g.m(bgC);for(K=D.next();!K.done;K=D.next())if(g.xz(K.value.toLowerCase())){D=!0;break b}D=!1}if(D)A=void 0;else{K={stackTrace:B.stack};B.fileName&&(K.filename=B.fileName);D=B.lineNumber&&B.lineNumber.split?B.lineNumber.split(":"):[];D.length!==0&&(D.length!==1||isNaN(Number(D[0]))?D.length!==2||isNaN(Number(D[0]))||isNaN(Number(D[1]))||(K.lineNumber=Number(D[0]),K.columnNumber=
|
|
Number(D[1])):K.lineNumber=Number(D[0]));D={level:"ERROR_LEVEL_UNKNOWN",message:B.message,errorClassName:B.name,sampleWeight:B.sampleWeight};f==="ERROR"?D.level="ERROR_LEVEL_ERROR":f==="WARNING"&&(D.level="ERROR_LEVEL_WARNNING");K={isObfuscated:!0,browserStackInfo:K};A.pageUrl=window.location.href;A.kvPairs=[];g.A_("FEXP_EXPERIMENTS")&&(A.experimentIds=g.A_("FEXP_EXPERIMENTS"));V=g.A_("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Lg("web_disable_gel_stp_ecatcher_killswitch")&&V)for(J=g.m(Object.keys(V)),
|
|
N=J.next();!N.done;N=J.next())N=N.value,A.kvPairs.push({key:N,value:String(V[N])});if(V=B.params)for(J=g.m(Object.keys(V)),N=J.next();!N.done;N=J.next())N=N.value,A.kvPairs.push({key:"client."+N,value:String(V[N])});V=g.A_("SERVER_NAME");J=g.A_("SERVER_VERSION");V&&J&&(A.kvPairs.push({key:"server.name",value:V}),A.kvPairs.push({key:"server.version",value:J}));(V=g.A_("PLAYER_CLIENT_VERSION"))&&A.kvPairs.push({key:"client.player.version",value:V});A={errorMetadata:A,stackTrace:K,logMessage:D}}if(A&&
|
|
(g.pE("clientError",A),f==="ERROR"||g.h_("errors_flush_gel_always_killswitch")))a:{if(g.h_("web_fp_via_jspb")){f=!0;f=f===void 0?!1:f;A=tkS;tkS=[];if(A)for(A=g.m(A),D=A.next();!D.done;D=A.next())D=D.value,f?w8(D.payloadName,D.payload,g.uy,D.options):g.pE(D.payloadName,D.payload,D.options);LE(void 0,!0);if(!g.h_("web_fp_via_jspb_and_json"))break a}LE(void 0,!1)}}g.h_("suppress_error_204_logging")||sM7(L,B)}try{r_e.add(B.message)}catch(r){}y_y++}}}};
|
|
sM7=function(A,L){var B=L.params||{};A={urlParams:{a:"logerror",t:"jserror",type:L.name,msg:L.message.substr(0,250),line:L.lineNumber,level:A,"client.name":B.name},postParams:{url:g.A_("PAGE_NAME",window.location.href),file:L.fileName},method:"POST"};B.version&&(A["client.version"]=B.version);if(A.postParams){L.stack&&(A.postParams.stack=L.stack);L=g.m(Object.keys(B));for(var f=L.next();!f.done;f=L.next())f=f.value,A.postParams["client."+f]=B[f];if(B=g.A_("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(L=
|
|
g.m(Object.keys(B)),f=L.next();!f.done;f=L.next())f=f.value,A.postParams[f]=B[f];(B=g.A_("LAVA_VERSION"))&&(A.postParams["lava.version"]=B);B=g.A_("SERVER_NAME");L=g.A_("SERVER_VERSION");B&&L&&(A.postParams["server.name"]=B,A.postParams["server.version"]=L);(B=g.A_("PLAYER_CLIENT_VERSION"))&&(A.postParams["client.player.version"]=B)}g.ll(g.A_("ECATCHER_REPORT_HOST","")+"/error_204",A)};
|
|
kck=function(A){var L=g.pf.apply(1,arguments);A.args||(A.args=[]);Array.isArray(A.args)&&A.args.push.apply(A.args,g.x7(L))};
|
|
EF=function(A){var L=g.y(A,XP);if(L)return L;if((L=g.y(A,TW7))&&L.commands)return lp7(L.commands);if((L=g.y(A,ms6))&&L.commands)return lp7(L.commands);if((A=g.y(A,QME))&&A.identifier&&A.command&&(OF||(OF=[]),!OF.includes(A.identifier)))return OF.push(A.identifier),g.y(A.command,XP)};
|
|
lp7=function(A){if(A.length!==0){var L=[];A=g.m(A);for(var B=A.next();!B.done;B=A.next())(B=EF(B.value))&&L.push(B);return{commandExecutorCommand:{commands:L}}}};
|
|
g.cb=function(A,L,B){B===void 0?delete A[L.name]:A[L.name]=B};
|
|
ClS=function(A){for(var L=0,B=0;B<A.length;B++)L=L*31+A.charCodeAt(B),B<A.length-1&&(L%=0x800000000000);return L%1E5};
|
|
M2=function(A){II.call(this,1,arguments);this.csn=A};
|
|
$s0=function(A,L,B,f,K,V,J,R,Z){var N=igw();V=new yH({veType:L,youtubeData:V,jspbYoutubeData:void 0});Z=Yf({automatedLogEventSource:Z},N);K&&(Z.cttAuthInfo=K);K={csn:N,pageVe:V.getAsJson()};g.h_("expectation_logging")&&R&&R.screenCreatedLoggingExpectations&&(K.screenCreatedLoggingExpectations=R.screenCreatedLoggingExpectations);B&&B.visualElement?(K.implicitGesture={parentCsn:B.clientScreenNonce,gesturedVe:B.visualElement.getAsJson()},J&&(K.implicitGesture.gestureType=J)):B&&g.CE(new g.iL("newScreen() parent element does not have a VE - rootVe",
|
|
L));f&&(K.cloneCsn=f);A?w8("screenCreated",K,A,Z):g.pE("screenCreated",K,Z);yf(atw,new M2(N));UF.clear();Wb.clear();vb.clear();return N};
|
|
g.Pb=function(A,L,B,f,K,V){V=V===void 0?{}:V;g.q2(A,L,B,[f],K===void 0?!1:K,V)};
|
|
g.q2=function(A,L,B,f,K,V){K=K===void 0?!1:K;V=V===void 0?{}:V;Object.assign(V,Yf({cttAuthInfo:Hb(L)||void 0},L));for(var J=g.m(f),R=J.next();!R.done;R=J.next()){R=R.value;var Z=R.getAsJson();(g.mi(Z)||!Z.trackingParams&&!Z.veType)&&g.CE(Error("Child VE logged with no data"));if(g.h_("no_client_ve_attach_unless_shown")){var N=xf(R,L);if(Z.veType&&!Wb.has(N)&&!vb.has(N)&&!K){if(!g.h_("il_attach_cache_limit")||UF.size<1E3){UF.set(N,[A,L,B,R]);return}g.h_("il_attach_cache_limit")&&UF.size>1E3&&g.CE(new g.iL("IL Attach cache exceeded limit"))}R=
|
|
xf(B,L);UF.has(R)?eB(B,L):vb.set(R,!0)}}f=f.filter(function(F){F.csn!==L?(F.csn=L,F=!0):F=!1;return F});
|
|
B={csn:L,parentVe:B.getAsJson(),childVes:g.mn(f,function(F){return F.getAsJson()})};
|
|
L==="UNDEFINED_CSN"?nE("visualElementAttached",V,B):A?w8("visualElementAttached",B,A,V):g.pE("visualElementAttached",B,V)};
|
|
X7v=function(A,L,B,f,K,V,J){zN(B,L);f=Yf({cttAuthInfo:Hb(L)||void 0,automatedLogEventSource:J},L);B={csn:L,ve:B.getAsJson(),eventType:1};K&&(B.clientData=K);L==="UNDEFINED_CSN"?nE("visualElementShown",f,B):A?w8("visualElementShown",B,A,f):g.pE("visualElementShown",B,f)};
|
|
Og7=function(A,L,B,f){var K=(f=f===void 0?!1:f)?16:8;f=Yf({cttAuthInfo:Hb(L)||void 0,endOfSequence:f,automatedLogEventSource:void 0},L);B={csn:L,ve:B.getAsJson(),eventType:K};L==="UNDEFINED_CSN"?nE("visualElementHidden",f,B):A?w8("visualElementHidden",B,A,f):g.pE("visualElementHidden",B,f)};
|
|
uf=function(A,L,B,f,K,V){Ez1(A,L,B,void 0,f,K,V)};
|
|
Ez1=function(A,L,B,f,K,V,J){zN(B,L);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";V=Yf({cttAuthInfo:Hb(L)||void 0,automatedLogEventSource:J},L);B={csn:L,ve:B.getAsJson(),gestureType:f};K&&(B.clientData=K);L==="UNDEFINED_CSN"?nE("visualElementGestured",V,B):A?w8("visualElementGestured",B,A,V):g.pE("visualElementGestured",B,V)};
|
|
c_6=function(){var A=pV(16);for(var L=[],B=0;B<A.length;B++)L.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[B]&63));return L.join("")};
|
|
nE=function(A,L,B){a9.push({payloadName:A,payload:B,WGF:void 0,options:L});Ar||(Ar=f1v())};
|
|
var dC0=function(){return pw[S[2]](this,11)};
|
|
oC7=function(A){if(a9){for(var L=g.m(a9),B=L.next();!B.done;B=L.next())B=B.value,B.payload&&(B.payload.csn=A.csn,g.pE(B.payloadName,B.payload,B.options));a9.length=0}Ar=0};
|
|
xf=function(A,L){return""+A.getAsJson().veType+A.getAsJson().veCounter+L};
|
|
zN=function(A,L){if(g.h_("no_client_ve_attach_unless_shown")){var B=xf(A,L);Wb.set(B,!0);eB(A,L)}};
|
|
eB=function(A,L){A=xf(A,L);UF.has(A)&&(L=UF.get(A)||[],g.Pb(L[0],L[1],L[2],L[3],!0),UF.delete(A))};
|
|
Yf=function(A,L){g.h_("log_sequence_info_on_gel_web")&&(A.sequenceGroup=L);return A};
|
|
g.L1=function(A,L,B,f){g.fg(X7v)(void 0,A,L,B,f,void 0)};
|
|
g.ou=function(A,L){g.fg(function(){g.yB(L,function(B){zN(B,A);var f=Yf({cttAuthInfo:Hb(A)||void 0,automatedLogEventSource:void 0},A);B={csn:A,ve:B.getAsJson(),eventType:4};A==="UNDEFINED_CSN"?nE("visualElementShown",f,B):g.pE("visualElementShown",B,f)})})()};
|
|
g.BP=function(A,L){g.fg(function(){g.yB(L,function(B){Og7(void 0,A,B)})})()};
|
|
g.f1=function(A,L,B){g.fg(uf)(void 0,A,L,B,void 0)};
|
|
K1=function(A,L,B,f){g.fg(Ez1)(void 0,A,L,B,f,void 0)};
|
|
Jr=function(A,L,B,f,K,V){B=B===void 0?{}:B;this.componentType=A;this.renderer=L===void 0?null:L;this.macros=B;this.layoutId=f;this.interactionLoggingClientData=K;this.N=V;this.id=Vo(A)};
|
|
Vo=function(A){var L=":"+(vC.getInstance().N++).toString(36);return A+L};
|
|
g.SN=function(A){A=A===void 0?!1:A;g.Y.call(this);this.m1=new g.TF(A);g.W(this,this.m1)};
|
|
Ru=function(){var A="ytp-id-"+MkQ.toString();MkQ++;return A};
|
|
g.ZE=function(A){g.Y.call(this);this.KY={};this.Of={};this.element=this.createElement(A)};
|
|
Nt=function(A,L,B,f){if(f.substring(0,2)==="{{")A.Of[f]=[L,B];else return f};
|
|
YQe=function(A,L){var B=[];if(!L)return B;L=g.m(L);for(var f=L.next();!f.done;f=L.next())if(f=f.value,f!=null){var K=f.nodeType;K===1||K===3?B.push(f):f&&typeof f.Z==="string"?B.push(A.createElement(f)):f.element?B.push(f.element):typeof f==="string"&&f.indexOf("\n")!==-1?f.split("\n").forEach(function(V,J){J>0&&B.push(g.TO("BR"));B.push(g.lA(V))}):B.push(g.lA(f))}return B};
|
|
Fb=function(A,L,B,f){if(B==="child"){g.Ql(L);var K;f===void 0?K=void 0:K=!Array.isArray(f)||f&&typeof f.Z==="string"?[f]:f;B=YQe(A,K);B=g.m(B);for(A=B.next();!A.done;A=B.next())L.appendChild(A.value)}else B==="style"?g.Kv(L,"cssText",f?f:""):f===null||f===void 0?L.removeAttribute(B):(A=f.toString(),B==="href"&&(A=g.rt(g.hF(A))),L.setAttribute(B,A))};
|
|
g.q=function(A){g.ZE.call(this,A);this.bC=!0;this.yj=!1;this.listeners=[]};
|
|
g.DE=function(A){g.q.call(this,A);this.cn=new g.SN;g.W(this,this.cn)};
|
|
dq=function(A,L,B,f,K,V,J){J=J===void 0?null:J;g.DE.call(this,L);this.api=A;this.macros={};this.componentType=B;this.T=this.X=null;this.ql=J;this.layoutId=f;this.interactionLoggingClientData=K;this.Qj=V;this.Cr=null;this.u9=new dT(this.element);g.W(this,this.u9);this.Nl=this.Y(this.element,"click",this.onClick);this.ZM=[];this.Vj=new IW(this.onClick,this);g.W(this,this.Vj);this.mH=!1;this.JF=this.Wn=null};
|
|
Iu=function(A,L){A=A===void 0?null:A;L=L===void 0?null:L;if(A==null)return g.CE(Error("Got null or undefined adText object")),"";var B=g.xj(A.text);if(!A.isTemplated)return B;if(L==null)return g.CE(Error("Missing required parameters for a templated message")),B;A=g.m(Object.entries(L));for(L=A.next();!L.done;L=A.next()){var f=g.m(L.value);L=f.next().value;f=f.next().value;B=B.replace("{"+L+"}",f)}return B};
|
|
Usv=function(A){A=A===void 0?null:A;return A!=null&&(A=A.thumbnail,A!=null&&A.thumbnails!=null&&A.thumbnails.length!=0&&A.thumbnails[0].url!=null)?g.xj(A.thumbnails[0].url):""};
|
|
WM6=function(A){A=A===void 0?null:A;return A!=null&&(A=A.thumbnail,A!=null&&A.thumbnails!=null&&A.thumbnails.length!=0&&A.thumbnails[0].width!=null&&A.thumbnails[0].height!=null)?new g.Sr(A.thumbnails[0].width||0,A.thumbnails[0].height||0):new g.Sr(0,0)};
|
|
g.wq=function(A){if(A.simpleText)return A.simpleText;if(A.runs){var L=[];A=g.m(A.runs);for(var B=A.next();!B.done;B=A.next())B=B.value,B.text&&L.push(B.text);return L.join("")}return""};
|
|
g.p1=function(A){if(A.simpleText)return A=document.createTextNode(A.simpleText),A;var L=[];if(A.runs)for(var B=0;B<A.runs.length;B++){var f=A.runs[B];if(f.text){var K=L,V=K.push,J=null;var R=f.text;f.bold&&(J=k9("B",null,J||R));f.italics&&(J=k9("I",null,J||R));f.strikethrough&&(J=k9("STRIKE",null,J||R));f.navigationEndpoint&&f.navigationEndpoint.urlEndpoint&&(f=f.navigationEndpoint.urlEndpoint,J=k9("A",null,J||R),g.tF(J,f.url),f.target=="TARGET_NEW_WINDOW"&&(J.target="_blank"));R=J||k9("SPAN",null,
|
|
R);V.call(K,R)}}return L.length==1?L[0]:k9("SPAN",null,L)};
|
|
g.vzL=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]}};
|
|
yo=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",C:{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.jN=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},B:[{Z:"path",C:{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"}}]}};
|
|
qQe=function(){return{Z:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",C:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}};
|
|
g.gq=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},B:[{Z:"path",C:{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"}}]}};
|
|
Pl8=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},B:[{Z:"path",C:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{Z:"path",C:{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"}}]}};
|
|
xsk=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},B:[{Z:"path",bq:!0,C:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
|
|
ezD=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},B:[{Z:"path",bq:!0,C:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
|
|
g.GZ=function(){return{Z:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",C:{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"}}]}};
|
|
rq=function(){return{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z",
|
|
fill:"white"}}]}};
|
|
nz8=function(){return{Z:"svg",C:{height:"100%",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",C:{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"}}]}};
|
|
zz1=function(){return{Z:"svg",C:{viewBox:"0 0 24 24"},B:[{Z:"path",C:{d:"M0 0h24v24H0z",fill:"none"}},{Z:"path",C:{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"}}]}};
|
|
uaE=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
|
|
sW=function(){return{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{"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"}}]}};
|
|
apL=function(){return{Z:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},B:[{Z:"path",C:{d:"M0 0h48v48H0z",fill:"none"}},{Z:"path",C:{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"}}]}};
|
|
AKy=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]}};
|
|
LuS=function(){return{Z:"svg",C:{viewBox:"0 0 24 24"},B:[{Z:"path",C:{d:"M0 0h24v24H0z",fill:"none"}},{Z:"path",C:{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"}}]}};
|
|
HP=function(){return{Z:"svg",C:{height:"100%",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",C:{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"}}]}};
|
|
o_k=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},B:[{Z:"path",bq:!0,C:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
|
|
BL6=function(){return{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z",
|
|
fill:"white"}}]}};
|
|
hr=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
|
|
fGv=function(){return{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z",
|
|
fill:"white"}}]}};
|
|
g.ba=function(){return{Z:"svg",C:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},B:[{Z:"path",C:{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"}}]}};
|
|
Kue=function(){return{Z:"svg",C:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M12 1c1.44 0 2.87.28 4.21.83a11 11 0 0 1 3.45 2.27l-1.81 1.05A9 9 0 0 0 3 12a9 9 0 0 0 18-.00l-.01-.44a8.99 8.99 0 0 0-.14-1.20l1.81-1.05A11.00 11.00 0 0 1 10.51 22.9 11 11 0 0 1 12 1Zm7.08 6.25-7.96 3.25a1.74 1.74 0 1 0 1.73 2.99l6.8-5.26a.57.57 0 0 0-.56-.98Z"}}]}};
|
|
tr=function(){return{Z:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},B:[{Z:"path",C:{d:"M0 0h48v48H0z",fill:"none"}},{Z:"path",C:{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"}}]}};
|
|
VwQ=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
|
|
JKe=function(){return{Z:"svg",C:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},B:[{Z:"path",C:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z",
|
|
fill:"white"}}]}};
|
|
SSk=function(){return{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:"ytp-svg-fill",C:{"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"}}]}};
|
|
kr=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]}};
|
|
TZ=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]}};
|
|
la=function(){return{Z:"svg",C:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},B:[{Z:"path",C:{d:"M 17 8.6 L 10.89 4.99 C 9.39 4.11 7.5 5.19 7.5 6.93 C 7.5 6.93 7.5 6.93 7.5 6.93 L 7.5 29.06 C 7.5 30.8 9.39 31.88 10.89 31 C 10.89 31 10.89 31 10.89 31 L 17 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z M 17 8.6 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 V 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 33 18 C 33 18 33 18 33 18 C 33 18 33 18 33 18 V 18 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z",
|
|
fill:"white"}}]}};
|
|
Rme=function(){return{Z:"svg",C:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},B:[{Z:"path",C:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",fill:"#c00"}},{Z:"path",C:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",
|
|
fill:"#fff","fill-rule":"nonzero"}}]}};
|
|
ZnC=function(){return{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"rect",C:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Z:"rect",C:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Z:"path",C:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z",
|
|
fill:"white"}},{Z:"defs",B:[{Z:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},B:[{Z:"stop",C:{offset:"0.3","stop-color":"#E1002D"}},{Z:"stop",C:{offset:"0.9","stop-color":"#E01378"}}]}]}]}};
|
|
NLw=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
|
|
FuQ=function(){return{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}};
|
|
g.m1=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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.Qo=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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.C1=function(){return{Z:"svg",C:{height:"100%",viewBox:"0 0 16 16",width:"100%"},B:[{Z:"path",C:{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"}}]}};
|
|
DEL=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
|
|
dE7=function(){return{Z:"svg",C:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},B:[{Z:"path",C:{d:"M 18 6 L 9 6 C 8.20 6 7.44 6.31 6.87 6.87 C 6.31 7.44 6 8.20 6 9 L 6 27 C 6 27.79 6.31 28.55 6.87 29.12 C 7.44 29.68 8.20 30 9 30 L 18 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 18 6 C 18 30 18 30 18 30 C 18 30 18 30 18 30 Z M 27 6 L 18 6 C 18 6 18 6 18 6 C 18 6 18 6 18 6 V 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 27 30 C 27.79 30 28.55 29.68 29.12 29.12 C 29.68 28.55 30 27.79 30 27 V 9 L 30 9 C 30 8.20 29.68 7.44 29.12 6.87 C 28.55 6.31 27.79 6 27 6 Z",
|
|
fill:"white"}}]}};
|
|
IGD=function(){return{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
|
|
fill:"white"}}]}};
|
|
ia=function(){return{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]}};
|
|
$r=function(A,L,B,f){L=L===void 0?!1:L;B=B===void 0?!1:B;f=f===void 0?!1:f;if(!A)return null;switch(A.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return B?{Z:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",C:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:tr();case "CHECK_BOX":return{Z:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",C:{d:"M0 0h24v24H0z",fill:"none"}},{Z:"path",C:{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{Z:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",C:{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"}},{Z:"path",C:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.GZ();case "INFO_OUTLINE":return L?{Z:"svg",C:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},B:[{Z:"path",C:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}:
|
|
apL();case "REMOVE_CIRCLE":return{Z:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",C:{d:"M0 0h24v24H0z",fill:"none"}},{Z:"path",C:{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 hr();case "SKIP_NEXT_NEW":return f?fGv():{Z:"svg",C:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},B:[{Z:"path",C:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return LuS();
|
|
case "DISLIKE":return zz1();default:return g.CE(new g.iL("Unexpected icon:",A)),null}};
|
|
Xb=function(A,L,B,f,K,V,J,R,Z){K=K===void 0?[]:K;J=J===void 0?!1:J;Z=Z===void 0?!1:Z;K={Z:"button",Rr:["ytp-ad-button"].concat(K)};R!=null&&(K.C={tabindex:R});dq.call(this,A,K,V===void 0?"button":V,L,B,f);this.N=this.W=this.V=null;this.D=J;this.U=Z;this.hide()};
|
|
w9e=function(A){var L=null;A.N!=null&&(L=[A.N.serviceEndpoint,A.N.navigationEndpoint].filter(function(B){return B!=null}),A.N.command&&(L=L.concat(A.N.command)));
|
|
return L||[]};
|
|
OW=function(){g.Y.call(this);var A=this;this.N=new Map;this.W=ruC(function(L){if(L.target&&(L=A.N.get(L.target))&&L)for(var B=0;B<L.length;B++)g.MJ(L[B])})};
|
|
p9L=function(){EW==null&&(EW=new OW);return EW};
|
|
cP=function(A,L){if(A.simpleText){a:{A=A.simpleText;if(L&&(L=yK0(A))){L=k9("SPAN",null,L);break a}L=g.lA(A)}return L}var B=[];if(A.runs)for(var f=0;f<A.runs.length;f++){var K=A.runs[f];K.text&&B.push(jX0(K,L))}return B.length==1?B[0]:k9("SPAN",null,B)};
|
|
jX0=function(A,L){var B=null,f=A.text;L&&(f=yK0(f)||f);A.bold&&(B=k9("B",null,B||f));A.italics&&(B=k9("I",null,B||f));A.strikethrough&&(B=k9("STRIKE",null,B||f));A.navigationEndpoint&&g.y(A.navigationEndpoint,g.Mt)&&(L=g.y(A.navigationEndpoint,g.Mt),B=k9("A",null,B||f),g.tF(B,L.url),L.target=="TARGET_NEW_WINDOW"&&(B.target="_blank"),A=A.navigationEndpoint.loggingUrls)&&(A=A.map(function(K){return K.baseUrl}),p9L().register(B,A),g.R1(B,"ytp-ad-has-logging-urls"));
|
|
return B||k9("SPAN",null,f)};
|
|
yK0=function(A){A=A.split(/(?:\r\n|\r|\n)/g);if(A.length>1){for(var L=[A[0]],B=1;B<A.length;B++)L.push(k9("BR")),L.push(A[B]);return L}return null};
|
|
Yr=function(A,L,B,f,K,V,J,R,Z){V=V===void 0?!1:V;J=J===void 0?[]:J;Z=Z===void 0?!1:Z;dq.call(this,A,{Z:"span",Rr:["ytp-ad-hover-text-button"].concat(J)},R===void 0?"ad-hover-text-button":R,L,B,f);this.button=this.W=null;this.G=V;this.D=K;this.V=Z;this.hide()};
|
|
UW=function(A){return A&&A.thumbnails&&(A.thumbnails||null).length!=0&&A.thumbnails[0].url?g.xj(A.thumbnails[0].url):""};
|
|
WP=function(A,L,B,f,K,V){V=V===void 0?!1:V;dq.call(this,A,{Z:"img",j:"ytp-ad-image"},"ad-image",L,B,f,K===void 0?null:K);this.N=V;this.hide()};
|
|
vP=function(A,L,B,f,K,V){K=K===void 0?[]:K;dq.call(this,A,{Z:"div",Rr:["ytp-ad-confirm-dialog-background"],B:[{Z:"div",j:"ytp-ad-confirm-dialog-container",B:[{Z:"div",Rr:["ytp-ad-confirm-dialog"].concat(K),C:{role:"dialog",tabindex:"-1"},B:[{Z:"div",j:"ytp-ad-confirm-dialog-title",Ir:"{{title}}"},{Z:"div",j:"ytp-ad-confirm-dialog-messages"},{Z:"div",j:"ytp-ad-confirm-dialog-confirm-container",B:[{Z:"button",j:"ytp-ad-confirm-dialog-cancel-button",Ir:"{{cancelLabel}}"},{Z:"button",j:"ytp-ad-confirm-dialog-confirm-button",
|
|
Ir:"{{confirmLabel}}"}]}]}]},{Z:"button",Rr:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],B:[{Z:"span",j:"ytp-ad-button-icon",B:[g.GZ()]}]}]},V===void 0?"confirm-dialog":V,L,B,f);this.G=this.m4("ytp-ad-confirm-dialog-close-overlay-button");this.U=this.m4("ytp-ad-confirm-dialog-cancel-button");this.D=this.m4("ytp-ad-confirm-dialog-confirm-button");this.qp=this.m4("ytp-ad-confirm-dialog-messages");this.V=null;this.N=new Qz;g.W(this,this.N);this.W=null;this.hide()};
|
|
g_k=function(A,L){if(L.title){var B=g.wq(L.title);A.updateValue("title",B)}if(L.dialogMessages){B=g.m(L.dialogMessages);for(var f=B.next();!f.done;f=B.next())f=cP(f.value),A.qp.appendChild(f)}L.cancelLabel&&(B=g.wq(L.cancelLabel),A.updateValue("cancelLabel",B),A.N.Y(A.U,"click",function(K){return A.FN(K)}));
|
|
L.confirmLabel&&(L=g.wq(L.confirmLabel),A.updateValue("confirmLabel",L),A.N.Y(A.D,"click",function(K){return A.dP(K)}));
|
|
A.N.Y(A.G,"click",function(K){return A.LR(K)})};
|
|
qt=function(A,L,B,f,K,V){K=K===void 0?[]:K;V=V===void 0?"toggle-button":V;var J=Vo("ytp-ad-toggle-button-input"),R={role:"button","aria-label":"{{tooltipText}}"};A.K().experiments.GL("fix_h5_toggle_button_a11y")&&(R.tabindex="0");R.role="checkbox";dq.call(this,A,{Z:"div",Rr:["ytp-ad-toggle-button"].concat(K),B:[{Z:"label",j:"ytp-ad-toggle-button-label",C:{"for":J},B:[{Z:"span",j:"ytp-ad-toggle-button-icon",C:R,B:[{Z:"span",j:"ytp-ad-toggle-button-untoggled-icon",Ir:"{{untoggledIconTemplateSpec}}"},
|
|
{Z:"span",j:"ytp-ad-toggle-button-toggled-icon",Ir:"{{toggledIconTemplateSpec}}"}]},{Z:"input",j:"ytp-ad-toggle-button-input",C:{id:J,type:"checkbox"}},{Z:"span",j:"ytp-ad-toggle-button-text",Ir:"{{buttonText}}"},{Z:"span",j:"ytp-ad-toggle-button-tooltip",Ir:"{{tooltipText}}"}]}]},V,L,B,f);this.U=this.m4("ytp-ad-toggle-button");this.N=this.m4("ytp-ad-toggle-button-input");this.W=this.m4("ytp-ad-toggle-button-icon");this.G=this.m4("ytp-ad-toggle-button-untoggled-icon");this.D=this.m4("ytp-ad-toggle-button-toggled-icon");
|
|
this.wT=this.m4("ytp-ad-toggle-button-text");this.V=null;this.qp=!1;this.hide()};
|
|
PP=function(A){A.qp&&(A.isToggled()?(g.y9(A.G,!1),g.y9(A.D,!0),A.W.setAttribute("aria-checked",!0)):(g.y9(A.G,!0),g.y9(A.D,!1),A.W.setAttribute("aria-checked",!1)))};
|
|
GTv=function(A,L){var B=null;A.V&&(B=(L?[A.V.defaultServiceEndpoint,A.V.defaultNavigationEndpoint]:[A.V.toggledServiceEndpoint]).filter(function(f){return f!=null}));
|
|
return B||[]};
|
|
rKy=function(A,L,B){this.actionType=L;this.id=B;this.content=A};
|
|
xr=function(A){Qz.call(this);this.N=A;this.Y(this.N,"onAdUxUpdate",this.D)};
|
|
eN=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-feedback-dialog-background",B:[{Z:"div",j:"ytp-ad-feedback-dialog-container",B:[{Z:"div",j:"ytp-ad-feedback-dialog-form",C:{role:"dialog",tabindex:"-1"},B:[{Z:"div",j:"ytp-ad-feedback-dialog-title",B:[{Z:"span",Ir:"{{title}}"}]},{Z:"span",j:"ytp-ad-info-dialog-feedback-options-title",Ir:"{{reasonsTitle}}"},{Z:"div",j:"ytp-ad-info-dialog-feedback-options"},{Z:"div",j:"ytp-ad-feedback-dialog-confirm-container",B:[{Z:"button",j:"ytp-ad-feedback-dialog-cancel-button",
|
|
Ir:"{{cancelLabel}}"},{Z:"button",j:"ytp-ad-feedback-dialog-confirm-button",Ir:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",L,B,f);this.U=[];this.N=null;this.D=this.m4("ytp-ad-feedback-dialog-cancel-button");this.G=this.m4("ytp-ad-feedback-dialog-confirm-button");this.qp=this.m4("ytp-ad-info-dialog-feedback-options");this.wT=this.m4("ytp-ad-feedback-dialog-title");this.V=this.W=null;this.hide()};
|
|
bn7=function(A,L){var B=L.cancelRenderer&&L.cancelRenderer.buttonRenderer||null;B&&(A.N=new Xb(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,["ytp-ad-feedback-dialog-close-button"],"button"),g.W(A,A.N),A.N.init(Vo("button"),B,A.macros),A.N.listen("click",A.pT,A),A.N.DM(A.element));L.title&&(B=g.wq(L.title),A.updateValue("title",B));L.reasonsTitle&&(B=g.wq(L.reasonsTitle),A.updateValue("reasonsTitle",B));L.reasons&&sXD(A,L.reasons);L.cancelLabel&&(B=g.wq(L.cancelLabel),A.updateValue("cancelLabel",
|
|
B),g.tK(A.D,"click",function(){return A.pT()}));
|
|
L.confirmLabel&&(B=g.wq(L.confirmLabel),A.updateValue("confirmLabel",B),g.tK(A.G,"click",function(){return Hny(A)}));
|
|
L.undoRenderer&&hmv(A,L.undoRenderer)};
|
|
sXD=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){var f=B.value;B=f.reason;if(B==null)g.CE(Error("AdFeedbackReason.reason was not set."));else if(f=f.endpoint,f==null)g.CE(Error("AdFeedbackReason.endpoint was not set."));else{B=new n1(B,f);g.W(A,B);f=A.qp;var K=B.Zg();f.appendChild(K);A.U.push(B)}}};
|
|
hmv=function(A,L){if(L=L&&L.buttonRenderer||null)L.serviceEndpoint?(A.W=new Xb(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.W(A,A.W),A.W.init(Vo("ad-feedback-undo-mute-button"),L,A.macros),A.W.listen("click",A.oJ4,A),A.W.DM(A.wT)):g.CE(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
|
|
Hny=function(A){var L=A.U.filter(function(B){return B.isChecked()});
|
|
L.length!==0&&(L=L[0].getCommand(),A.layoutId?A.Qj.executeCommand(L,A.layoutId):g.mL(Error("Missing layoutId for ad feedback dialog.")),A.api.onAdUxClicked("ad-feedback-dialog-confirm-button",A.layoutId),A.publish("a"),A.hide())};
|
|
n1=function(A,L){this.W=L;this.N=new g.DE({Z:"label",j:"ytp-ad-feedback-dialog-reason-label",B:[{Z:"input",j:"ytp-ad-feedback-dialog-reason-input",C:{type:"radio",name:"feedback-reason-group"}},{Z:"span",j:"ytp-ad-feedback-dialog-reason-text",Ir:g.wq(A)}]});this.V=this.N.m4("ytp-ad-feedback-dialog-reason-input")};
|
|
zZ=function(A,L,B,f){vP.call(this,A,L,B,f,[],"ad-mute-confirm-dialog")};
|
|
ua=function(A,L,B,f,K){dq.call(this,A,{Z:"div",j:"ytp-ad-info-dialog-background",B:[{Z:"div",j:"ytp-ad-info-dialog-container",B:[{Z:"div",j:"ytp-ad-info-dialog-form",C:{role:"dialog",tabindex:"-1"},B:[{Z:"div",j:"ytp-ad-info-dialog-title",Ir:"{{title}}"},{Z:"ul",j:"ytp-ad-info-dialog-ad-reasons"},{Z:"div",j:"ytp-ad-info-dialog-message"},{Z:"div",j:"ytp-ad-info-dialog-mute-container"},{Z:"div",j:"ytp-ad-info-dialog-confirm-container",B:[{Z:"button",j:"ytp-ad-info-dialog-confirm-button",Ir:"{{confirmLabel}}"}]}]}]}]},
|
|
"ad-info-dialog",L,B,f);this.N=this.W=null;this.G=this.m4("ytp-ad-info-dialog-confirm-button");this.sx=this.m4("ytp-ad-info-dialog-mute-container");this.Ex=this.m4("ytp-ad-info-dialog-message");this.S4=this.m4("ytp-ad-info-dialog-ad-reasons");this.U=this.V=null;this.wT=K;this.D=null;this.Ys=!1;this.qp=null;this.hide()};
|
|
twQ=function(A,L){if(L=L.content&&L.content.adFeedbackRenderer||null)A.W=new eN(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj),g.W(A,A.W),A.W.init(Vo("ad-feedback-dialog"),L,A.macros),A.W.DM(A.wT),A.W.subscribe("a",function(){return A.publish("c")})};
|
|
kT8=function(A,L){if(L=L.content&&L.content.confirmDialogRenderer||null)A.U=new zZ(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj),g.W(A,A.U),A.U.init(Vo("ad-mute-confirm-dialog"),L,A.macros),A.U.DM(A.wT),A.U.subscribe("b",function(){return A.publish("c")})};
|
|
var FvL=function(A,L,B,f,K,V){return k7[S[2]](this,35,A,L,B,f,K,V)};
|
|
TLD=function(A){A.N&&A.N.listen("click",A.Yl,A);g.tK(A.G,"click",function(){return A.Yl()})};
|
|
au=function(A,L,B,f,K,V,J){Yr.call(this,A,L,B,f,V===void 0?!0:V,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",J===void 0?!1:J);this.N=null;this.U=K;this.hide()};
|
|
mED=function(A,L,B){L=L.dialog&&g.y(L.dialog,lGD)||null;L==null?g.mL(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(A.N=new ua(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,A.U),g.W(A,A.N),A.N.init(Vo("ad-info-dialog"),L,B),A.N.DM(A.U),A.N.subscribe("d",function(){return A.publish("f")}),A.N.subscribe("c",function(){return A.publish("e")}))};
|
|
inD=function(A,L,B){A.button==null?g.mL(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(A.W&&g.R1(A.W.element,"ytp-ad-info-hover-text-short"),(L=L&&L.serviceEndpoint&&g.y(L.serviceEndpoint,QXv)||null)?(mED(A,L,B),A.button.listen("click",function(){A.N&&!A.N.bC&&(A.N.show(),Cte(A))})):A.button.listen("click",function(){return Cte(A)}))};
|
|
Cte=function(A){A.api.onAdUxClicked("ad-info-icon-button",A.layoutId)};
|
|
AG=function(A,L,B,f,K,V){dq.call(this,A,{Z:"div",j:"ytp-ad-text"},V===void 0?"ad-text":V,L,B,f,K===void 0?null:K);this.N=null;this.hide()};
|
|
LL=function(A,L){L&&g.OA(A.element,Iu(A.N,L))};
|
|
oA=function(A,L,B,f,K,V,J){dq.call(this,A,L,B,f,K,V);this.N=J;g.W(this,this.N);this.Ys=this.G=-1};
|
|
BH=function(A){A.N&&A.G===-1&&(A.G=A.N.subscribe("h",A.m3,A),A.Ys=A.N.subscribe("g",A.q7,A),A.m3())};
|
|
fL=function(A){A.N!=null&&A.G!==-1&&(A.N.vR(A.G),A.N.vR(A.Ys),A.Ys=-1,A.G=-1)};
|
|
g.KL=function(A,L,B,f,K,V){g.Y.call(this);this.element=A;this.state=null;B||A.hide();this.W=L;this.V=f===void 0?L:f;this.N=V;this.onHidden=K;this.delay=new g.aa(this.Da,0,this);g.W(this,this.delay)};
|
|
Vr=function(A,L){A=A.element.element;L?A.setAttribute("aria-hidden","true"):A.removeAttribute("aria-hidden")};
|
|
JG=function(A,L,B,f,K,V){oA.call(this,A,{Z:"div",j:"ytp-ad-preview-slot"},"ad-preview",L,B,f,K);var J=this;this.sx=-1;this.U=this.api.K().experiments.GL("enable_modern_skip_button_on_web");this.W=new g.DE({Z:"span",j:"ytp-ad-preview-container"});this.U&&this.W.element.classList.add("ytp-ad-preview-container-detached");g.W(this,this.W);this.V=this.U?new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-preview-text-modern"):new AG(this.api,this.layoutId,this.interactionLoggingClientData,
|
|
this.Qj,"ytp-ad-preview-text");g.W(this,this.V);this.V.DM(this.W.element);this.wT=this.U?new g.DE({Z:"span",j:"ytp-ad-preview-image-modern"}):new g.DE({Z:"span",j:"ytp-ad-preview-image"});g.W(this,this.wT);this.D=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.D);this.D.DM(this.wT.element);this.wT.DM(this.W.element);this.W.DM(this.element);this.qp=new g.KL(this.W,400,!1,100,function(){return J.hide()});
|
|
g.W(this,this.qp);this.S4=0;this.Ex=!1;this.Ox=V;this.hide()};
|
|
Sm=function(A,L,B,f,K,V){oA.call(this,A,{Z:"div",Rr:["ytp-flyout-cta","ytp-flyout-cta-inactive"],B:[{Z:"div",j:"ytp-flyout-cta-icon-container"},{Z:"div",j:"ytp-flyout-cta-body",B:[{Z:"div",j:"ytp-flyout-cta-text-container",B:[{Z:"div",j:"ytp-flyout-cta-headline-container"},{Z:"div",j:"ytp-flyout-cta-description-container"}]},{Z:"div",j:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",L,B,f,K);this.V=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-flyout-cta-icon");
|
|
g.W(this,this.V);this.V.DM(this.m4("ytp-flyout-cta-icon-container"));this.V.element.classList.add("ytp-flyout-cta-icon-rounded");this.D=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-flyout-cta-headline");g.W(this,this.D);this.D.DM(this.m4("ytp-flyout-cta-headline-container"));this.U=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-flyout-cta-description");g.W(this,this.U);this.U.DM(this.m4("ytp-flyout-cta-description-container"));this.W=new Xb(this.api,
|
|
this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-flyout-cta-action-button","ytp-flyout-cta-action-button-rounded"]);g.W(this,this.W);this.W.DM(this.m4("ytp-flyout-cta-action-button-container"));this.W.element.setAttribute("tabIndex","-1");xw(this.W.element);this.qp=null;this.wT=0;this.S4=V;this.hide()};
|
|
RA=function(A,L,B,f,K){dq.call(this,A,{Z:"div",j:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",L,B,f,K===void 0?null:K);var V=this;this.N=null;this.V=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-instream-user-sentiment-like-button"]);g.W(this,this.V);this.V.DM(this.element);this.W=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-instream-user-sentiment-dislike-button"]);g.W(this,this.W);this.W.DM(this.element);
|
|
this.U=new g.KL(this,400,!1,500,function(){return V.hide()});
|
|
g.W(this,this.U);this.hide()};
|
|
Zh=function(A,L,B,f,K,V){K=K===void 0?0:K;V=V===void 0?!1:V;g.Y.call(this);this.W=A;this.V=!1;this.yj=f;this.Wn=V;this.T=!1;this.N=null;L>0&&(this.N=new g.aa(this.Zv,L,this),g.W(this,this.N));this.D=new g.aa(this.Zv,B,this);g.W(this,this.D);this.G=Zcy(this.W,K,1,f);g.W(this,this.G);this.X=Zcy(this.W,0,f,1);g.W(this,this.X);this.U=new Qz;g.W(this,this.U)};
|
|
Nf=function(A,L){this.W=A;this.N=L};
|
|
$Ew=function(A){switch(A){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:kj(A,"unknown result type")}};
|
|
X9E=function(A,L){var B=1;A.isTrusted===!1&&(B=0);aw("ISDSTAT",B);Fo(B,"i.s_",{triggerContext:"sk",metadata:L});return B};
|
|
Onw=function(A,L){var B=[];L?L.isTrusted===!0?B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):L.isTrusted===!1?B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Fo(0,"a.s_",{metadata:A,states:B});aw("ASDSTAT",0)};
|
|
Fo=function(A,L,B){L=E_E[L];var f,K,V={detected:A===0,source:""+L.W+((f=B.triggerContext)!=null?f:"")+((K=B.qc)!=null?K:""),detectionStates:B.states,durationMs:B.H7};B.metadata&&(V.contentCpn=B.metadata.contentCpn,V.adCpn=B.metadata.adCpn);g.pE("biscottiBasedDetection",V);L.N!==void 0&&(B=Number(g.A_("CATSTAT",0)),L.N!==void 0?(L=L.N,A=$Ew(A),A=B&~(3<<L)|A<<L):A=B,aw("CATSTAT",A))};
|
|
Dh=function(A,L,B,f,K){f=f===void 0?{}:f;if(!K||Math.random()<5E-4){L=L||null;B=B||null;A=A instanceof Error?A:new g.iL(A);if(A.args)for(var V=g.m(A.args),J=V.next();!J.done;J=V.next())J=J.value,J instanceof Object&&(f=Object.assign({},J,f));f.category="H5 Ads Control Flow";L&&(f.slot=L?"slot: "+L.slotType:"");B&&(f.layout=B?"layout: "+B.layoutType:"",f.layoutId=B.layoutId);K&&(f.known_error_aggressively_sampled=!0);A.args=[f];g.CE(A)}};
|
|
g.dk=function(A,L){this.state=A;this.oldState=L};
|
|
IA=function(A,L){return g.x(A.state,L)&&!g.x(A.oldState,L)?1:!g.x(A.state,L)&&g.x(A.oldState,L)?-1:0};
|
|
g.wk=function(A,L){return IA(A,L)>0};
|
|
pL=function(A,L,B,f,K,V){oA.call(this,A,{Z:"div",j:"ytp-ad-skip-button-slot"},"skip-button",L,B,f,K);var J=this;this.qp=null;this.wT=!1;this.Ex=V;this.D=this.api.K().experiments.GL("enable_modern_skip_button_on_web");this.sx=!1;this.U=new g.DE({Z:"span",Rr:["ytp-ad-skip-button-container"]});this.D&&this.U.element.classList.add("ytp-ad-skip-button-container-detached");g.W(this,this.U);this.U.DM(this.element);this.W=this.V=null;this.Ox=new g.KL(this.U,500,!1,100,function(){return J.hide()});
|
|
g.W(this,this.Ox);this.S4=new Zh(this.U.element,15E3,5E3,.5,.5,this.D);g.W(this,this.S4);this.hide()};
|
|
Mwk=function(A){A=A.qp&&A.qp.adRendererCommands;return(A&&A.clickCommand&&g.y(A.clickCommand,g.yr)&&g.y(A.clickCommand,g.yr).commands||[]).some(function(L){return L.adLifecycleCommand?cKQ(L.adLifecycleCommand):!1})};
|
|
cKQ=function(A){return A.action==="END_LINEAR_AD"||A.action==="END_LINEAR_AD_PLACEMENT"};
|
|
jm=function(A,L,B,f,K,V){oA.call(this,A,{Z:"div",j:"ytp-ad-skip-ad-slot"},"skip-ad",L,B,f,K);this.qp=V;this.U=!1;this.D=0;this.V=this.W=null;this.hide()};
|
|
YS8=function(A,L){A.U||(A.U=!0,A.W&&(L?A.W.qp.hide():A.W.hide()),L?(A=A.V,A.Ox.show(),A.show()):A.V.show())};
|
|
gk=function(A,L,B,f){Xb.call(this,A,L,B,f,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
|
|
Gh=function(A,L,B,f,K,V,J){V=V===void 0?!1:V;J=J===void 0?!1:J;dq.call(this,A,{Z:"span",j:"ytp-ad-simple-ad-badge"},"simple-ad-badge",L,B,f);this.V=K;this.N=this.m4("ytp-ad-simple-ad-badge");(this.W=V)&&this.N.classList.add("ytp-ad-simple-ad-badge--clean-player");J&&this.N.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
|
|
rk=function(A,L,B,f,K){K=K===void 0?!1:K;Jr.call(this,"player-overlay",A,{},L,f);this.videoAdDurationSeconds=B;this.interactionLoggingClientData=f;this.uj=K};
|
|
sN=function(A,L){g.SN.call(this);this.api=A;this.durationMs=L;this.N=null;this.handler=new Qz(this);g.W(this,this.handler);this.W=UED;this.handler.Y(this.api,"presentingplayerstatechange",this.n0);this.N=this.handler.Y(this.api,"onAdPlaybackProgress",this.iq)};
|
|
HH=function(A){g.SN.call(this);this.N=!1;this.wQ=0;this.handler=new Qz(this);g.W(this,this.handler);this.durationMs=A;this.timer=new g.cD(100);g.W(this,this.timer);this.handler.Y(this.timer,"tick",this.iq);this.W={seekableStart:0,seekableEnd:A/1E3,current:0};this.start()};
|
|
g.hG=function(A,L){var B=Math.abs(Math.floor(A)),f=Math.floor(B/86400),K=Math.floor(B%86400/3600),V=Math.floor(B%3600/60);B=Math.floor(B%60);if(L){L="";f>0&&(L+=" "+f+" Giorni");if(f>0||K>0)L+=" "+K+" Ore";L+=" "+V+" Minuti";L+=" "+B+" Secondi";f=L.trim()}else{L="";f>0&&(L+=f+":",K<10&&(L+="0"));if(f>0||K>0)L+=K+":",V<10&&(L+="0");L+=V+":";B<10&&(L+="0");f=L+B}return A>=0?f:"-"+f};
|
|
g.bV=function(A){return(!("button"in A)||typeof A.button!=="number"||A.button===0)&&!("shiftKey"in A&&A.shiftKey)&&!("altKey"in A&&A.altKey)&&!("metaKey"in A&&A.metaKey)&&!("ctrlKey"in A&&A.ctrlKey)};
|
|
kI=function(A,L,B,f,K,V,J){oA.call(this,A,{Z:"span",j:J?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",L,B,f,K);this.videoAdDurationSeconds=V;this.W=null;J&&this.api.K().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),ed&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()};
|
|
Th=function(A,L,B,f){AG.call(this,A,L,B,f,"ytp-video-ad-top-bar-title","ad-title")};
|
|
lV=function(A){this.content=A.content;if(A.commandRuns){A=g.m(A.commandRuns);for(var L=A.next();!L.done;L=A.next())L=L.value,this.loggingDirectives=g.y(L,Wu6),L.onTap&&(this.interaction={onTap:L.onTap})}};
|
|
mm=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ad-simple-attributed-string"},"ad-simple-attributed-string",L,B,f);this.hide()};
|
|
Qr=function(A,L,B,f,K){dq.call(this,A,{Z:"span",j:K?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",L,B,f);this.W=K;this.adBadgeText=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);this.adBadgeText.DM(this.element);g.W(this,this.adBadgeText);K?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),ed&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
|
|
CL=function(A,L,B,f){dq.call(this,A,{Z:"span",j:"ytp-ad-pod-index"},"ad-pod-index",L,B,f);this.api.K().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),ed&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()};
|
|
iV=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",L,B,f);this.hide()};
|
|
$I=function(A,L){this.W=A;this.N=L};
|
|
v_S=function(A,L){return A.W+L*(A.N-A.W)};
|
|
Xo=function(A,L,B){return A.N-A.W?g.B4((L-A.W)/(A.N-A.W),0,1):B!=null?B:Infinity};
|
|
ON=function(A,L,B,f){f=f===void 0?!1:f;g.DE.call(this,{Z:"div",j:"ytp-ad-persistent-progress-bar-container",B:[{Z:"div",j:"ytp-ad-persistent-progress-bar"}]});this.api=A;this.W=L;this.V=B;f&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.W(this,this.W);this.progressBar=this.m4("ytp-ad-persistent-progress-bar");this.N=-1;this.Y(A,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
|
|
EN=function(A,L,B,f,K,V){dq.call(this,A,{Z:"div",j:"ytp-ad-player-overlay",B:[{Z:"div",j:"ytp-ad-player-overlay-flyout-cta"},{Z:"div",j:"ytp-ad-player-overlay-instream-info"},{Z:"div",j:"ytp-ad-player-overlay-skip-or-preview"},{Z:"div",j:"ytp-ad-player-overlay-progress-bar"},{Z:"div",j:"ytp-ad-player-overlay-instream-user-sentiment"},{Z:"div",j:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",L,B,f);this.G=V;this.D=this.m4("ytp-ad-player-overlay-flyout-cta");this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
|
|
this.N=this.m4("ytp-ad-player-overlay-instream-info");this.U=null;qSD(this)&&(A=k9("div"),g.R1(A,"ytp-ad-player-overlay-top-bar-gradients"),L=this.N,L.parentNode&&L.parentNode.insertBefore(A,L),(L=this.api.getVideoData(2))&&L.isListed&&L.title&&(B=new Th(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),B.DM(A),B.init(Vo("ad-title"),{text:L.title},this.macros),g.W(this,B)),this.U=A);this.V=null;this.Ys=this.m4("ytp-ad-player-overlay-skip-or-preview");this.S4=this.m4("ytp-ad-player-overlay-progress-bar");
|
|
this.wT=this.m4("ytp-ad-player-overlay-instream-user-sentiment");this.qp=this.m4("ytp-ad-player-overlay-ad-disclosure-banner");this.W=K;g.W(this,this.W);this.hide()};
|
|
qSD=function(A){A=A.api.K();return g.cH(A)&&A.W};
|
|
g.Mf=function(A){A&=16777215;var L=[(A&16711680)>>16,(A&65280)>>8,A&255];A=L[0];var B=L[1];L=L[2];A=Number(A);B=Number(B);L=Number(L);if(A!=(A&255)||B!=(B&255)||L!=(L&255))throw Error('"('+A+","+B+","+L+'") is not a valid RGB color');B=A<<16|B<<8|L;return A<16?"#"+(16777216|B).toString(16).slice(1):"#"+B.toString(16)};
|
|
g.YI=function(){};
|
|
xED=function(A){var L=new gm;var B=new jW;B=BS(B,1,"botguard");A=BS(B,2,A);this.N=o9e(L,jW,1,Ptv,A)};
|
|
UN=function(A){this.N=new Qd(A)};
|
|
emv=function(){var A=!1;try{A=!!window.sessionStorage.getItem("session_logininfo")}catch(L){A=!0}return(g.A_("INNERTUBE_CLIENT_NAME")==="WEB"||g.A_("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&A};
|
|
WH=function(){var A=A===void 0?!0:A;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");aw("LOGIN_INFO","");A&&window.sessionStorage.setItem("from_switch_account","1");A=!0;A=A===void 0?!1:A;var L,B=n_e;B||(B=document.querySelector("#persist_identity"));if(L=B){var f=L.src?(new URL(L.src)).origin:"*";if(A){var K;(K=L.contentWindow)==null||K.postMessage({action:"clear"},f)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
|
|
2)){var V=window.sessionStorage.getItem("session_logininfo");if(V){var J;(J=L.contentWindow)==null||J.postMessage({loginInfo:V},f)}}}}catch(R){}};
|
|
vH=function(A){A&&(A.startsWith("https://accounts.google.com/AddSession")?WH():A.startsWith("https://accounts.google.com/ServiceLogin")?WH():A.startsWith("https://myaccount.google.com")&&g.$7(A).W.endsWith("/youtubeoptions")&&WH());if(g.A_("LOGGED_IN",!0)&&emv()){var L=g.A_("VALID_SESSION_TEMPDATA_DOMAINS",[]);var B=g.tW(window.location.href);B&&L.push(B);B=g.tW(A);g.zK(L,B)||!B&&zk(A,"/")?(L=Tr(A),(L=NKL(L))?(L=RzD(L),L=(L=g.Yz(L)||null)?I0(L):{}):L=null):L=null;L==null&&(L={});B=L;var f=void 0;
|
|
emv()?(f||(f=g.A_("LOGIN_INFO")),f?(B.session_logininfo=f,B=!0):B=!1):B=!1;B&&hv(A,L)}};
|
|
g.zmy=function(A){var L=L===void 0?{}:L;var B=B===void 0?"":B;var f=f===void 0?window:f;A=g.ip(A,L);vH(A);B=g.hF(A+B);f=f.location;B=bO(B);B!==void 0&&(f.href=B)};
|
|
g.qf=function(A,L,B){L=L===void 0?{}:L;B=B===void 0?!1:B;var f=g.A_("EVENT_ID");f&&(L.ei||(L.ei=f));L&&hv(A,L);B||(vH(A),g.zmy(A))};
|
|
g.PH=function(A,L,B,f,K){K=K===void 0?!1:K;B&&hv(A,B);B=g.hF(A);var V=g.rt(B);A!=V&&Kg(Error("Unsafe window.open URL: "+A));A=V;L=L||eS(A).toString(36);try{if(K)return K=A,K=OKw(K),vH(K),g.QR(window,K,L,"attributionsrc")}catch(J){g.B7(J)}vH(A);return g.QR(window,B,L,f)};
|
|
u$y=function(A){xI=A};
|
|
aGS=function(A){em=A};
|
|
ARQ=function(A){nL=A};
|
|
oL0=function(){LzC=nL=em=xI=null};
|
|
f3D=function(){var A=A===void 0?window.location.href:A;if(g.h_("kevlar_disable_theme_param"))return null;var L=ks(A);if(g.h_("enable_dark_theme_only_on_shorts")&&L!=null&&L.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var B=g.RM(A).theme;return B2e.get(B)||null}catch(f){}return null};
|
|
zh=function(){this.N={};if(this.W=xBk()){var A=g.Yz("CONSISTENCY");A&&Kz0(this,{encryptedTokenJarContents:A})}};
|
|
Kz0=function(A,L){if(L.encryptedTokenJarContents&&(A.N[L.encryptedTokenJarContents]=L,typeof L.expirationSeconds==="string")){var B=Number(L.expirationSeconds);setTimeout(function(){delete A.N[L.encryptedTokenJarContents]},B*1E3);
|
|
A.W&&g.Ms("CONSISTENCY",L.encryptedTokenJarContents,B,void 0,!0)}};
|
|
aA=function(){this.W=-1;var A=g.A_("LOCATION_PLAYABILITY_TOKEN");g.A_("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=uV(this))&&(A=this.localStorage.get("yt-location-playability-token"));A&&(this.locationPlayabilityToken=A,this.N=void 0)};
|
|
uV=function(A){return A.localStorage===void 0?new Ks("yt-client-location"):A.localStorage};
|
|
g.AV=function(A,L,B){L=L===void 0?!1:L;B=B===void 0?!1:B;var f=g.A_("INNERTUBE_CONTEXT");if(!f)return g.mL(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};f=g.$g(f);g.h_("web_no_tracking_params_in_shell_killswitch")||delete f.clickTracking;f.client||(f.client={});var K=f.client;K.clientName==="MWEB"&&K.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(K.clientFormFactor=g.A_("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");K.screenWidthPoints=window.innerWidth;K.screenHeightPoints=
|
|
window.innerHeight;K.screenPixelDensity=Math.round(window.devicePixelRatio||1);K.screenDensityFloat=window.devicePixelRatio||1;K.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var V=V===void 0?!1:V;var J=g.v9(),R="USER_INTERFACE_THEME_LIGHT";J.Iv(165)?R="USER_INTERFACE_THEME_DARK":J.Iv(174)?R="USER_INTERFACE_THEME_LIGHT":!g.h_("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
|
|
(R="USER_INTERFACE_THEME_DARK");V=V?R:f3D()||R;K.userInterfaceTheme=V;if(!L){if(V=QQ1())K.connectionType=V;g.h_("web_log_effective_connection_type")&&(V=i2k())&&(f.client.effectiveConnectionType=V)}var Z;if(g.h_("web_log_memory_total_kbytes")&&((Z=g.rI.navigator)==null?0:Z.deviceMemory)){var N;Z=(N=g.rI.navigator)==null?void 0:N.deviceMemory;f.client.memoryTotalKbytes=""+Z*1E6}g.h_("web_gcf_hashes_innertube")&&(V=MFL())&&(N=V.coldConfigData,Z=V.coldHashData,V=V.hotHashData,f.client.configInfo=f.client.configInfo||
|
|
{},N&&(f.client.configInfo.coldConfigData=N),Z&&(f.client.configInfo.coldHashData=Z),V&&(f.client.configInfo.hotHashData=V));N=g.RM(g.rI.location.href);!g.h_("web_populate_internal_geo_killswitch")&&N.internalcountrycode&&(K.internalGeo=N.internalcountrycode);K.clientName==="MWEB"||K.clientName==="WEB"?(K.mainAppWebInfo||(K.mainAppWebInfo={}),K.mainAppWebInfo.graftUrl=g.rI.location.href,g.h_("kevlar_woffle")&&hvy.instance&&(N=hvy.instance,K.mainAppWebInfo.pwaInstallabilityStatus=!N.N&&N.W?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
|
|
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),K.mainAppWebInfo.webDisplayMode=Y_(),K.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):K.clientName==="TVHTML5"&&(!g.h_("web_lr_app_quality_killswitch")&&(N=g.A_("LIVING_ROOM_APP_QUALITY"))&&(K.tvAppInfo=Object.assign(K.tvAppInfo||{},{appQuality:N})),N=g.A_("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(K.tvAppInfo=Object.assign(K.tvAppInfo||{},{certificationScope:N}));if(!g.h_("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
|
|
"undefined")try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(v){}F=void 0}F&&(K.timeZone=F)}(F=t_())?K.experimentsToken=F:delete K.experimentsToken;F=kz();zh.instance||(zh.instance=new zh);f.request=Object.assign({},f.request,{internalExperimentFlags:F,consistencyTokenJars:hO(zh.instance.N)});!g.h_("web_prequest_context_killswitch")&&(F=g.A_("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(f.request.externalPrequestContext=F);K=g.v9();F=K.Iv(58);K=K.get("gsml","");f.user=Object.assign({},
|
|
f.user);F&&(f.user.enableSafetyMode=F);K&&(f.user.lockedSafetyMode=!0);g.h_("warm_op_csn_cleanup")?B&&(L=g.sF())&&(f.clientScreenNonce=L):!L&&(L=g.sF())&&(f.clientScreenNonce=L);A&&(f.clickTracking={clickTrackingParams:A});if(A=g.bB("yt.mdx.remote.remoteClient_"))f.remoteClient=A;aA.getInstance().setLocationOnInnerTubeContext(f);try{var D=pg(),I=D.bid;delete D.bid;f.adSignalsInfo={params:[],bid:I};for(var d=g.m(Object.entries(D)),w=d.next();!w.done;w=d.next()){var r=g.m(w.value),h=r.next().value,
|
|
Q=r.next().value;D=h;I=Q;A=void 0;(A=f.adSignalsInfo.params)==null||A.push({key:D,value:""+I})}var l,C;if(((l=f.client)==null?void 0:l.clientName)==="TVHTML5"||((C=f.client)==null?void 0:C.clientName)==="TVHTML5_UNPLUGGED"){var O=g.A_("INNERTUBE_CONTEXT");O.adSignalsInfo&&(f.adSignalsInfo.advertisingId=O.adSignalsInfo.advertisingId,f.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",f.adSignalsInfo.limitAdTracking=O.adSignalsInfo.limitAdTracking)}}catch(v){g.mL(v)}return f};
|
|
S_6=function(A,L){if(!A)return!1;var B,f=(B=g.y(A,Vdw))==null?void 0:B.signal;if(f&&L.GT)return!!L.GT[f];var K;if((B=(K=g.y(A,JRS))==null?void 0:K.request)&&L.gs)return!!L.gs[B];for(var V in A)if(L.Jx[V])return!0;return!1};
|
|
RXy=function(A){var L={"Content-Type":"application/json"};g.A_("EOM_VISITOR_DATA")?L["X-Goog-EOM-Visitor-Id"]=g.A_("EOM_VISITOR_DATA"):g.A_("VISITOR_DATA")&&(L["X-Goog-Visitor-Id"]=g.A_("VISITOR_DATA"));L["X-Youtube-Bootstrap-Logged-In"]=g.A_("LOGGED_IN",!1);g.A_("DEBUG_SETTINGS_METADATA")&&(L["X-Debug-Settings-Metadata"]=g.A_("DEBUG_SETTINGS_METADATA"));A!=="cors"&&((A=g.A_("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(L["X-Youtube-Client-Name"]=A),(A=g.A_("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(L["X-Youtube-Client-Version"]=
|
|
A),(A=g.A_("CHROME_CONNECTED_HEADER"))&&(L["X-Youtube-Chrome-Connected"]=A),(A=g.A_("DOMAIN_ADMIN_STATE"))&&(L["X-Youtube-Domain-Admin-State"]=A));(A=g.A_("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(L["X-YouTube-Lava-Device-Context"]=A);return L};
|
|
Zsy=function(){this.N={}};
|
|
L0=function(){this.mappings=new Zsy};
|
|
ov=function(A){return function(){return new A}};
|
|
Fzy=function(A){var L=L===void 0?"UNKNOWN_INTERFACE":L;if(A.length===1)return A[0];var B=N2v[L];if(B){B=new RegExp(B);for(var f=g.m(A),K=f.next();!K.done;K=f.next())if(K=K.value,B.exec(K))return K}var V=[];Object.entries(N2v).forEach(function(J){var R=g.m(J);J=R.next().value;R=R.next().value;L!==J&&V.push(R)});
|
|
B=new RegExp(V.join("|"));A.sort(function(J,R){return J.length-R.length});
|
|
f=g.m(A);for(K=f.next();!K.done;K=f.next())if(K=K.value,!B.exec(K))return K;return A[0]};
|
|
g.B8=function(A){return"/youtubei/v1/"+Fzy(A)};
|
|
f0=function(){};
|
|
K0=function(){};
|
|
Vm=function(){};
|
|
JV=function(A){return g.bB("ytcsi."+(A||"")+"data_")||Dxv(A)};
|
|
dxC=function(){var A=JV();A.info||(A.info={});return A.info};
|
|
SG=function(A){A=JV(A);A.metadata||(A.metadata={});return A.metadata};
|
|
Rv=function(A){A=JV(A);A.tick||(A.tick={});return A.tick};
|
|
Z8=function(A){A=JV(A);if(A.gel){var L=A.gel;L.gelInfos||(L.gelInfos={});L.gelTicks||(L.gelTicks={})}else A.gel={gelTicks:{},gelInfos:{}};return A.gel};
|
|
var G8k=function(A,L){return fSS[S[2]](this,1,A,L)};
|
|
I3y=function(A){A=Z8(A);A.gelInfos||(A.gelInfos={});return A.gelInfos};
|
|
ND=function(A){var L=JV(A).nonce;L||(L=g.y0(16),JV(A).nonce=L);return L};
|
|
Dxv=function(A){var L={tick:{},info:{}};g.hf("ytcsi."+(A||"")+"data_",L);return L};
|
|
FR=function(){var A=g.bB("ytcsi.debug");A||(A=[],g.hf("ytcsi.debug",A),g.hf("ytcsi.reference",{}));return A};
|
|
D8=function(A){A=A||"";var L=wf7();if(L[A])return L[A];var B=FR(),f={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};B.push(f);return L[A]=f};
|
|
pf0=function(A){A=A||"";var L=wf7();L[A]&&delete L[A];var B=FR(),f={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};B.push(f);L[A]=f};
|
|
wf7=function(){var A=g.bB("ytcsi.reference");if(A)return A;FR();return g.bB("ytcsi.reference")};
|
|
dX=function(A){return yRS[A]||"LATENCY_ACTION_UNKNOWN"};
|
|
Iv=function(A,L){II.call(this,1,arguments);this.timer=L};
|
|
wX=function(){this.N=0};
|
|
p0=function(){wX.instance||(wX.instance=new wX);return wX.instance};
|
|
jG=function(A,L){ym[L]=ym[L]||{count:0};var B=ym[L];B.count++;B.time=(0,g.bc)();A.N||(A.N=g.AR(0,function(){var f=(0,g.bc)(),K;for(K in ym)ym[K]&&f-ym[K].time>6E4&&delete ym[K];A&&(A.N=0)},5E3));
|
|
return B.count>5?(B.count===6&&Math.random()*1E5<1&&(B=new g.iL("CSI data exceeded logging limit with key",L.split("_")),L.indexOf("plev")>=0||g.CE(B)),!0):!1};
|
|
jlw=function(){this.timing={};this.clearResourceTimings=function(){};
|
|
this.webkitClearResourceTimings=function(){};
|
|
this.mozClearResourceTimings=function(){};
|
|
this.msClearResourceTimings=function(){};
|
|
this.oClearResourceTimings=function(){}};
|
|
gL6=function(){var A;if(g.h_("csi_use_performance_navigation_timing")){var L,B,f,K=gX==null?void 0:(A=gX.getEntriesByType)==null?void 0:(L=A.call(gX,"navigation"))==null?void 0:(B=L[0])==null?void 0:(f=B.toJSON)==null?void 0:f.call(B);K?(K.requestStart=GJ(K.requestStart),K.responseEnd=GJ(K.responseEnd),K.redirectStart=GJ(K.redirectStart),K.redirectEnd=GJ(K.redirectEnd),K.domainLookupEnd=GJ(K.domainLookupEnd),K.connectStart=GJ(K.connectStart),K.connectEnd=GJ(K.connectEnd),K.responseStart=GJ(K.responseStart),
|
|
K.secureConnectionStart=GJ(K.secureConnectionStart),K.domainLookupStart=GJ(K.domainLookupStart),K.isPerformanceNavigationTiming=!0,A=K):A=gX.timing}else A=g.h_("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(gX.timing)):gX.timing;return A};
|
|
GJ=function(A){return Math.round(rX()+A)};
|
|
rX=function(){return(g.h_("csi_use_time_origin")||g.h_("csi_use_time_origin_tvhtml5"))&&gX.timeOrigin?Math.floor(gX.timeOrigin):gX.timing.navigationStart};
|
|
H8=function(A,L){sC("_start",A,L)};
|
|
hV=function(A,L){if(!g.h_("web_csi_action_sampling_enabled")||!JV(L).actionDisabled){var B=D8(L||"");NU(B.info,A);A.loadType&&(B=A.loadType,SG(L).loadType=B);NU(I3y(L),A);B=ND(L);L=JV(L).cttAuthInfo;p0().info(A,B,L)}};
|
|
GUS=function(){var A,L,B,f;return((f=l_().resolve(h0(Zu))==null?void 0:(A=NJ())==null?void 0:(L=A.loggingHotConfig)==null?void 0:(B=L.csiConfig)==null?void 0:B.debugTicks)!=null?f:[]).map(function(K){return Object.values(K)[0]})};
|
|
sC=function(A,L,B){if(!g.h_("web_csi_action_sampling_enabled")||!JV(B).actionDisabled){var f=ND(B),K;if(K=g.h_("web_csi_debug_sample_enabled")&&f){(l_().resolve(h0(Zu))==null?0:NJ())&&!rR1&&(rR1=!0,sC("gcfl",(0,g.bc)(),B));var V,J,R;K=(l_().resolve(h0(Zu))==null?void 0:(V=NJ())==null?void 0:(J=V.loggingHotConfig)==null?void 0:(R=J.csiConfig)==null?void 0:R.debugSampleWeight)||0;if(V=K!==0)b:{V=GUS();if(V.length>0)for(J=0;J<V.length;J++)if(A===V[J]){V=!0;break b}V=!1}V?(K=ClS(f)%K!==0,JV(B).debugTicksExcludedLogged||
|
|
(V={},V.debugTicksExcluded=K,hV(V,B)),JV(B).debugTicksExcludedLogged=!0):K=!1}if(!K){if(A[0]!=="_"&&(K=A,V=L,gX.mark))if(K.startsWith("mark_")||(K="mark_"+K),B&&(K+=" ("+B+")"),V===void 0||g.h_("web_csi_disable_alt_time_performance_mark"))gX.mark(K);else{V=g.h_("csi_use_performance_navigation_timing")?V-gX.timeOrigin:V-(gX.timeOrigin||gX.timing.navigationStart);try{gX.mark(K,{startTime:V})}catch(Z){}}K=D8(B||"");K.tick[A]=L||(0,g.bc)();if(K.callback&&K.callback[A])for(K=g.m(K.callback[A]),V=K.next();!V.done;V=
|
|
K.next())V=V.value,V();K=Z8(B);K.gelTicks&&(K.gelTicks[A]=!0);V=Rv(B);K=L||(0,g.bc)();V[A]=K;V=JV(B).cttAuthInfo;A==="_start"?(A=p0(),jG(A,"baseline_"+f)||g.pE("latencyActionBaselined",{clientActionNonce:f},{timestamp:L,cttAuthInfo:V})):p0().tick(A,f,L,V);sl7(B);return K}}};
|
|
Hsk=function(){var A,L=(A=gX.getEntriesByType)==null?void 0:A.call(gX,"mark");L&&L.forEach(function(B){if(B.name.startsWith("mark_")){var f;(f=gX.clearMarks)==null||f.call(gX,B.name)}})};
|
|
hXD=function(){switch(DW8()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
|
|
bsw=function(A){function L(V,J,R){J=J.match("_rid")?J.split("_rid")[0]:J;typeof R==="number"&&(R=JSON.stringify(R));V.requestIds?V.requestIds.push({endpoint:J,id:R}):V.requestIds=[{endpoint:J,id:R}]}
|
|
var B={};A=g.m(Object.entries(A));for(var f=A.next();!f.done;f=A.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;switch(f){case "GetBrowse_rid":L(B,f,K);break;case "GetGuide_rid":L(B,f,K);break;case "GetHome_rid":L(B,f,K);break;case "GetPlayer_rid":L(B,f,K);break;case "GetSearch_rid":L(B,f,K);break;case "GetSettings_rid":L(B,f,K);break;case "GetTrending_rid":L(B,f,K);break;case "GetWatchNext_rid":L(B,f,K);break;case "yt_red":B.isRedSubscriber=!!K;break;case "yt_ad":B.isMonetized=!!K}}return B};
|
|
tde=function(A,L){A=document.querySelector(A);if(!A)return!1;var B="",f=A.nodeName;f==="SCRIPT"?(B=A.src,B||(B=A.getAttribute("data-timing-href"))&&(B=window.location.protocol+B)):f==="LINK"&&(B=A.href);Ca(document)&&A.setAttribute("nonce",Ca(document));return B?(A=gX.getEntriesByName(B))&&A[0]&&(A=A[0],B=rX(),sC("rsf_"+L,B+Math.round(A.fetchStart)),sC("rse_"+L,B+Math.round(A.responseEnd)),A.transferSize!==void 0&&A.transferSize===0)?!0:!1:!1};
|
|
kU1=function(){var A=window.location.protocol,L=gX.getEntriesByType("resource");L=g.Mi(L,function(B){return B.name.indexOf(A+"//fonts.gstatic.com/s/")===0});
|
|
(L=Cv(L,function(B,f){return f.duration>B.duration?f:B},{duration:0}))&&L.startTime>0&&L.responseEnd>0&&(sC("wffs",GJ(L.startTime)),sC("wffe",GJ(L.responseEnd)))};
|
|
T2y=function(A,L,B){gX&&gX.measure&&(A.startsWith("measure_")||(A="measure_"+A),B?gX.measure(A,L,B):L?gX.measure(A,L):gX.measure(A))};
|
|
l37=function(A){var L=bJ("aft",A);if(L)return L;L=g.A_((A||"")+"TIMING_AFT_KEYS",["ol"]);for(var B=L.length,f=0;f<B;f++){var K=bJ(L[f],A);if(K)return K}return NaN};
|
|
tV=function(A,L){g.hf("ytglobal.timing"+(L||"")+"ready_",A)};
|
|
bJ=function(A,L){if(A=Rv(L)[A])return typeof A==="number"?A:A[A.length-1]};
|
|
sl7=function(A){var L=bJ("_start",A),B=l37(A),f=!mxe;L&&B&&f&&(yf(QlD,new Iv(Math.round(B-L),A)),mxe=!0)};
|
|
Cck=function(){if(gX.getEntriesByType){var A=gX.getEntriesByType("paint");if(A=g.Pw(A,function(B){return B.name==="first-paint"}))return GJ(A.startTime)}var L;
|
|
g.h_("csi_use_performance_navigation_timing")?L=gX.getEntriesByType("first-paint")[0].startTime:L=gX.timing.TMr;return L?Math.max(0,L):0};
|
|
kx=function(A){Dxv(A);is6();Hsk();A||(g.A_("TIMING_ACTION")&&aw("PREVIOUS_ACTION",g.A_("TIMING_ACTION")),aw("TIMING_ACTION",""))};
|
|
$xk=function(){var A=["pbs","pbu"];g.fg(function(){D8("").info.actionType="watch";A&&aw("TIMING_AFT_KEYS",A);aw("TIMING_ACTION","watch");var L=bsw(g.A_("TIMING_INFO",{}));Object.keys(L).length>0&&hV(L);L={isNavigation:!0,actionType:dX(g.A_("TIMING_ACTION"))};var B=g.A_("PREVIOUS_ACTION");B&&(L.previousAction=dX(B));if(B=g.A_("CLIENT_PROTOCOL"))L.httpProtocol=B;if(B=g.A_("CLIENT_TRANSPORT"))L.transportProtocol=B;(B=g.sF())&&B!=="UNDEFINED_CSN"&&(L.clientScreenNonce=B);B=hXD();if(B===1||B===-1)L.isVisible=
|
|
!0;B=SG().loadType==="cold";var f=dxC();B||(B=f.yt_lt==="cold");if(B){L.loadType="cold";B=dxC();f=gL6();var K=rX(),V=g.A_("CSI_START_TIMESTAMP_MILLIS",0);V>0&&!g.h_("embeds_web_enable_csi_start_override_killswitch")&&(K=V);K&&(sC("srt",f.responseStart),B.prerender!==1&&H8(K));B=Cck();B>0&&sC("fpt",B);B=gL6();B.isPerformanceNavigationTiming&&hV({performanceNavigationTiming:!0},void 0);sC("nreqs",B.requestStart,void 0);sC("nress",B.responseStart,void 0);sC("nrese",B.responseEnd,void 0);B.redirectEnd-
|
|
B.redirectStart>0&&(sC("nrs",B.redirectStart,void 0),sC("nre",B.redirectEnd,void 0));B.domainLookupEnd-B.domainLookupStart>0&&(sC("ndnss",B.domainLookupStart,void 0),sC("ndnse",B.domainLookupEnd,void 0));B.connectEnd-B.connectStart>0&&(sC("ntcps",B.connectStart,void 0),sC("ntcpe",B.connectEnd,void 0));B.secureConnectionStart>=rX()&&B.connectEnd-B.secureConnectionStart>0&&(sC("nstcps",B.secureConnectionStart,void 0),sC("ntcpe",B.connectEnd,void 0));gX&&"getEntriesByType"in gX&&kU1();B=[];if(document.querySelector&&
|
|
gX&&gX.getEntriesByName)for(var J in TJ)TJ.hasOwnProperty(J)&&(f=TJ[J],tde(J,f)&&B.push(f));if(B.length>0)for(L.resourceInfo=[],J=g.m(B),B=J.next();!B.done;B=J.next())L.resourceInfo.push({resourceCache:B.value})}hV(L);L=Z8();L.preLoggedGelInfos||(L.preLoggedGelInfos=[]);J=L.preLoggedGelInfos;L=I3y();B=void 0;for(f=0;f<J.length;f++)if(K=J[f],K.loadType){B=K.loadType;break}if(SG().loadType==="cold"&&(L.loadType==="cold"||B==="cold")){B=Rv();f=Z8();f=f.gelTicks?f.gelTicks:f.gelTicks={};for(var R in B)R in
|
|
f||typeof B[R]==="number"&&sC(R,bJ(R));R={};B=!1;J=g.m(J);for(f=J.next();!f.done;f=J.next())B=f.value,NU(L,B),NU(R,B),B=!0;B&&hV(R)}tV(!0);R=g.A_("TIMING_ACTION");g.bB("ytglobal.timingready_")&&R&&lJ()&&l37()&&sl7()})()};
|
|
Xfv=function(){var A=A===void 0?{}:A;g.fg(function(){lJ()&&mF("aa",void 0,void 0);pf0();kx();tV(!1);A.cttAuthInfo&&(JV().cttAuthInfo=A.cttAuthInfo);aw("TIMING_AFT_KEYS",[]);A.d2D?g.Qm({loadType:"hot"}):g.Qm({loadType:"warm"});aw("TIMING_ACTION","");delete g.A_("TIMING_INFO",{}).yt_lt;g.fg(H8)(A.startTime,void 0)})()};
|
|
C0=function(A,L){L=L===void 0?{}:L;g.fg(function(){Os1(A);var B=L.sampleRate;if(!g.h_("web_csi_action_sampling_enabled")||B===void 0||B<=1)B=!1;else{var f=ND(A);B=ClS(f)%B!==0}B&&(JV(A).actionDisabled=!0);D8(A||"").info.actionType=A;L.cttAuthInfo&&(JV(A).cttAuthInfo=L.cttAuthInfo);aw(A+"TIMING_ACTION",A);g.fg(H8)(L.startTime,A);B={actionType:dX(A)};L.mbF&&(B.previousAction=dX(g.A_("TIMING_ACTION")));(f=g.sF())&&f!=="UNDEFINED_CSN"&&(B.clientScreenNonce=f);g.Qm(B,A);tV(!0,A)})()};
|
|
Os1=function(A){g.fg(function(){lJ(A)&&mF("aa",void 0,A);pf0(A);kx(A)})()};
|
|
lJ=function(A){return g.fg(function(){return iJ("_start",A)})()};
|
|
g.Qm=function(A,L,B){g.fg(hV)(A,L,B===void 0?!1:B)};
|
|
mF=function(A,L,B){return g.fg(sC)(A,L,B)};
|
|
ELk=function(A){g.fg(T2y)("action_finished",A,void 0)};
|
|
iJ=function(A,L){return g.fg(function(){var B=Rv(L);return A in B})()};
|
|
Mde=function(A){if(!g.h_("universal_csi_network_ticks"))return"";A=ks(A)||"";for(var L=Object.keys(cR8),B=0;B<L.length;B++){var f=L[B];if(A.includes(f))return f}return""};
|
|
Uxe=function(A){if(!g.h_("universal_csi_network_ticks"))return function(){};
|
|
var L=cR8[A];return L?($x(L),function(){var B=g.h_("universal_csi_network_ticks")?(B=Y_y[A])?$x(B):!1:!1;return B}):function(){}};
|
|
$x=function(A,L,B){return g.fg(function(){if(iJ(A,B))return!1;mF(A,L,B);return!0})()};
|
|
OC=function(A,L,B){g.fg(function(){if(!lJ(B)||iJ(A,B))return!1;mF(A,L,B);return!0})()};
|
|
Wz8=function(){g.fg(function(){var A=ND();requestAnimationFrame(function(){setTimeout(function(){A===ND()&&mF("ftl",void 0,void 0)},0)})})()};
|
|
EC=function(A,L,B,f){this.HS=A;this.Mq=L;this.N=B;this.U=f;this.V=void 0;this.W=new Map;A.GT||(A.GT={});A.GT=Object.assign({},vLv,A.GT)};
|
|
q_7=function(A,L,B,f){if(EC.instance!==void 0){if(f=EC.instance,A=[A!==f.HS,L!==f.Mq,B!==f.N,!1,!1,!1,void 0!==f.V],A.some(function(K){return K}))throw new g.iL("InnerTubeTransportService is already initialized",A);
|
|
}else EC.instance=new EC(A,L,B,f)};
|
|
c8=function(A,L,B){var f=f===void 0?dE:f;var K=Pcy(A,L);return K?new g.QX(function(V,J){var R,Z,N,F,D;return g.c(function(I){switch(I.N){case 1:return g.X(I,K,2);case 2:R=I.W;Z=R.D(L,B,f);if(!Z){J(new g.iL("Error: Failed to build request for command.",L));I.Ux(0);break}vH(Z.input);F=((N=Z.rM)==null?void 0:N.mode)==="cors"?"cors":void 0;if(A.N.qH){D=xxe(A,Z.config,F);I.Ux(4);break}return g.X(I,eX6(A,Z.config,F),5);case 5:D=I.W;case 4:V(nL1(A,Z,D)),g.VK(I)}})}):$A(new g.iL("Error: No request builder found for command.",
|
|
L))};
|
|
g.MD=function(A,L,B,f,K){function V(){}
|
|
K=K===void 0?{i8:{identity:dE}}:K;var J=J===void 0?!0:J;V=Uxe(Mde(B));L.context||(L.context=g.AV(f,J));return new g.QX(function(R){var Z,N,F,D,I;return g.c(function(d){if(d.N==1)return Z=W7(B),N=Fa(Z)?"same-origin":"cors",A.N.qH?(F=xxe(A,K,N),d.Ux(2)):g.X(d,eX6(A,K,N),3);d.N!=2&&(F=d.W);D=eqS(W7(B));I={input:D,rM:v7(D),jJ:L,config:K};R(nL1(A,I,F,V));g.VK(d)})})};
|
|
zXk=function(A){var L,B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:if(!((L=A)==null?0:(B=L.jJ)==null?0:B.context)){R.Ux(0);break}f=A.jJ.context;R.Ux(3);break;case 3:K=g.m([]),V=K.next();case 6:if(V.done){R.Ux(0);break}J=V.value;return g.X(R,J.vDM(f),7);case 7:V=K.next(),R.Ux(6)}})};
|
|
Yx=function(A,L,B){var f;if(L&&!(L==null?0:(f=L.sequenceMetaData)==null?0:f.skipProcessing)&&A.U){f=g.m(u48);for(var K=f.next();!K.done;K=f.next())K=K.value,A.U[K]&&A.U[K].handleResponse(L,B)}};
|
|
nL1=function(A,L,B,f){f=f===void 0?function(){}:f;
|
|
var K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0,B6,Ve,DS,fw,ry,uL,Jf;return g.c(function(MC){switch(MC.N){case 1:J=(K=L.config)==null?void 0:(V=K.inx)==null?void 0:V.X$s;MC.Ux(2);break;case 3:R=MC.W;if(!R||R.isExpired()){MC.Ux(2);break}Z=R.N();if(!g.h_("web_process_response_store_responses")||R.isProcessed()){MC.Ux(5);break}Yx(A,Z,L);return g.X(MC,(void 0).FG1(J),5);case 5:return MC.return(Promise.resolve(Z));case 2:if((N=A.V)==null||!N.w$L(L.input,L.jJ)){MC.Ux(7);break}return g.X(MC,A.V.kJp(L.input,
|
|
L.jJ),8);case 8:return F=MC.W,Yx(A,F,L),MC.return(F);case 7:return g.X(MC,zXk(L),9);case 9:return(d=(I=L.config)==null?void 0:I.requestKey)&&A.W.has(d)?D=A.W.get(d):(w=JSON.stringify(L.jJ),Q=(h=(r=L.rM)==null?void 0:r.headers)!=null?h:{},L.rM=Object.assign({},L.rM,{headers:Object.assign({},Q,B)}),l=Object.assign({},L.rM),L.rM.method==="POST"&&(l=Object.assign({},l,{body:w})),((C=L.config)==null?0:C.OwT)&&mF(L.config.OwT),O=function(){return A.Mq.fetch(L.input,l,L.config)},D=O(),d&&A.W.set(d,D)),g.X(MC,
|
|
D,10);
|
|
case 10:(v=MC.W)&&g.h_("web_streaming_player")&&Array.isArray(v)&&(v=v[0].playerResponse);if(v&&"error"in v&&((U=v)==null?0:(a=U.error)==null?0:a.details))for(o0=v.error.details,B6=g.m(o0),Ve=B6.next();!Ve.done;Ve=B6.next())DS=Ve.value,(fw=DS["@type"])&&a3D.indexOf(fw)>-1&&(delete DS["@type"],v=DS);d&&A.W.has(d)&&A.W.delete(d);((ry=L.config)==null?0:ry.LCx)&&mF(L.config.LCx);if(v||(uL=A.V)==null||!uL.hC1(L.input,L.jJ)){MC.Ux(11);break}return g.X(MC,A.V.lps(L.input,L.jJ),12);case 12:v=MC.W;case 11:return Yx(A,
|
|
v,L),((Jf=L.config)==null?0:Jf.zu1)&&mF(L.config.zu1),f(),MC.return(v||void 0)}})};
|
|
Pcy=function(A,L){a:{A=A.HS;var B,f=(B=g.y(L,Vdw))==null?void 0:B.signal;if(f&&A.GT&&(B=A.GT[f])){var K=B();break a}var V;if((B=(V=g.y(L,JRS))==null?void 0:V.request)&&A.gs&&(V=A.gs[B])){K=V();break a}for(K in L)if(A.Jx[K]&&(L=A.Jx[K])){K=L();break a}K=void 0}if(K!==void 0)return Promise.resolve(K)};
|
|
eX6=function(A,L,B){var f,K,V,J,R,Z,N;return g.c(function(F){if(F.N==1){V=((f=L)==null?void 0:(K=f.i8)==null?void 0:K.identity)||dE;Z=(J=L)==null?void 0:(R=J.i8)==null?void 0:R.sessionIndex;var D=g.iX(A.N.oO(V,{sessionIndex:Z}));return g.X(F,D,2)}N=F.W;return F.return(Promise.resolve(Object.assign({},RXy(B),N)))})};
|
|
xxe=function(A,L,B){var f,K=(L==null?void 0:(f=L.i8)==null?void 0:f.identity)||dE,V;L=L==null?void 0:(V=L.i8)==null?void 0:V.sessionIndex;A=A.N.oO(K,{sessionIndex:L});return Object.assign({},RXy(B),A)};
|
|
UC=function(){};
|
|
W8=function(){};
|
|
v8=function(A){this.T=A};
|
|
qD=function(){};
|
|
P8=function(){};
|
|
xx=function(){};
|
|
eG=function(){};
|
|
g.n0=function(A,L){var B=g.pf.apply(2,arguments);A=A===void 0?0:A;g.iL.call(this,L,B);this.errorType=A;Object.setPrototypeOf(this,this.constructor.prototype)};
|
|
zJ=function(A){this.N=A};
|
|
Abv=function(A,L,B){if(A.N){var f=ks(cI(L,"key"))||"/UNKNOWN_PATH";A.N.start(f)}A=B;g.h_("wug_networking_gzip_request")&&(A=wC1(B));return new window.Request(L,A)};
|
|
g.av=function(A,L){if(!uJ){var B=l_();b_(B,{iG:LbD,ZN:zJ});var f={Jx:{feedbackEndpoint:ov(qD),modifyChannelNotificationPreferenceEndpoint:ov(P8),playlistEditEndpoint:ov(xx),shareEntityEndpoint:ov(v8),subscribeEndpoint:ov(UC),unsubscribeEndpoint:ov(W8),webPlayerShareEntityServiceEndpoint:ov(eG)}},K=aA.getInstance(),V={};K&&(V.client_location=K);A===void 0&&(A=b21());L===void 0&&(L=B.resolve(LbD));q_7(f,L,A,V);b_(B,{iG:olD,qK:EC.instance});uJ=B.resolve(olD)}return uJ};
|
|
BE8=function(A){var L=new DH;if(A.interpreterJavascript){var B=DBC(A.interpreterJavascript);B=XN(B).toString();var f=new NW;BS(f,6,B);PG(L,NW,1,f,Z7)}else A.interpreterUrl&&(B=mc(A.interpreterUrl),B=gt(B).toString(),f=new Fm,BS(f,4,B),PG(L,Fm,2,f,Z7));A.interpreterHash&&fH(L,3,A.interpreterHash,Z7);A.program&&fH(L,4,A.program,Z7);A.globalName&&fH(L,5,A.globalName,Z7);A.clientExperimentsStateBlob&&fH(L,7,A.clientExperimentsStateBlob,Z7);return L};
|
|
Ah=function(A){var L={};A=A.split("&");A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=B.value.split("="),B.length===2&&(L[B[0]]=B[1]);return L};
|
|
fu7=function(){var A=A===void 0?window:A;var L,B;return g.c(function(f){if(f.N==1)return g.X(f,Za(),2);L=A;B=L.bgevmc;if(!B)throw Error("BGE Controls not exposed");return f.return({pause:function(){B.p()},
|
|
resume:function(){B.r()},
|
|
checkForRefresh:function(){return B.cr()}})})};
|
|
oE1=function(){if(g.h_("bg_st_hr"))return"havuokmhhs-0";var A,L=((A=globalThis.performance)==null?void 0:A.timeOrigin)||0;return"havuokmhhs-"+Math.floor(L)};
|
|
Lz=function(A){window.bgens=A};
|
|
oL=function(A){this.N=A};
|
|
KbD=function(){return new Promise(function(A){var L=window;L.ntpevasrs!==void 0?A(new oL(L.ntpevasrs)):(L.ntpqfbel===void 0&&(L.ntpqfbel=[]),L.ntpqfbel.push(function(B){A(new oL(B))}))})};
|
|
SuL=function(){if(JK()){var A=g.A_("PLAYER_VARS",{});if(g.QB(A,"privembed",!1)!="1"&&!Auv(A)){var L=function(){Bv=!0;"google_ad_status"in window?aw("DCLKSTAT",1):aw("DCLKSTAT",2)};
|
|
try{g.J0(V_7,L)}catch(B){}JbL.push(g.qT.pV(function(){if(!(Bv||"google_ad_status"in window)){try{if(V_7.toString()&&L){var B=""+g.$W(L),f=zR7[B];f&&g.KV(f)}}catch(K){}Bv=!0;aw("DCLKSTAT",3)}},5E3))}}};
|
|
fz=function(){var A=Number(g.A_("DCLKSTAT",0));return isNaN(A)?0:A};
|
|
SU=function(A,L,B){var f=this;this.network=A;this.options=L;this.W=B;this.N=null;if(L.zIp){var K=new g.IQ;this.N=K.promise;g.rI.ytAtRC&&aX(function(){var V,J;return g.c(function(R){if(R.N==1){if(!g.rI.ytAtRC)return R.return();V=Kz(null);return g.X(R,VD(f,V),2)}J=R.W;g.rI.ytAtRC&&g.rI.ytAtRC(JSON.stringify(J));g.VK(R)})},2);
|
|
KbD().then(function(V){var J,R,Z,N;return g.c(function(F){if(F.N==1)return V.bindInnertubeChallengeFetcher(function(D){return VD(f,Kz(D))}),g.X(F,Za(),2);
|
|
J=F.W;R=V.getLatestChallengeResponse();Z=R.challenge;if(!Z)throw Error("BGE_MACIL");N={challenge:Z,AO:Ah(Z),Bo:J,bgChallenge:new DH};K.resolve(N);V.registerChallengeFetchedCallback(function(D){D=D.challenge;if(!D)throw Error("BGE_MACR");D={challenge:D,AO:Ah(D),Bo:J,bgChallenge:new DH};f.N=Promise.resolve(D)});
|
|
g.VK(F)})})}else L.preload&&Ruw(this,new Promise(function(V){g.AR(0,function(){V(Jh(f))},0)}))};
|
|
Kz=function(A){var L={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};A&&(L.interpreterHash=A);return L};
|
|
Jh=function(A,L){L=L===void 0?0:L;var B,f,K,V,J,R,Z,N,F,D,I,d;return g.c(function(w){switch(w.N){case 1:B=Kz(yq().N);if(g.h_("att_fet_ks"))return g.S5(w,7),g.X(w,VD(A,B),9);g.S5(w,4);return g.X(w,Z4L(A,B),6);case 6:J=w.W;K=J.q61;V=J.I04;f=J;g.ZR(w,3);break;case 4:return g.NX(w),g.CE(Error("Failed to fetch attestation challenge after "+(L+" attempts; not retrying for 24h."))),RL(A,864E5),w.return({challenge:"",AO:{},Bo:void 0,bgChallenge:void 0});case 9:f=w.W;if(!f)throw Error("Fetching Attestation challenge returned falsy");
|
|
if(!f.challenge)throw Error("Missing Attestation challenge");K=f.challenge;V=Ah(K);if("c1a"in V&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.ZR(w,3);break;case 7:R=g.NX(w);g.CE(R);L++;if(L>=5)return g.CE(Error("Failed to fetch attestation challenge after "+(L+" attempts; not retrying for 24h."))),RL(A,864E5),w.return({challenge:"",AO:{},Bo:void 0,bgChallenge:void 0});Z=1E3*Math.pow(2,L-1)+Math.random()*1E3;return w.return(new Promise(function(r){g.AR(0,
|
|
function(){r(Jh(A,L))},Z)}));
|
|
case 3:N=Number(V.t)||7200;RL(A,N*1E3);F=void 0;if(!("c1a"in V&&f.bgChallenge)){w.Ux(10);break}D=BE8(f.bgChallenge);g.S5(w,11);return g.X(w,Ag0(yq(),D),13);case 13:g.ZR(w,12);break;case 11:return I=g.NX(w),g.CE(I),w.return({challenge:K,AO:V,Bo:F,bgChallenge:D});case 12:return g.S5(w,14),F=new ws({challenge:D,iz:{NP:"aGIf"}}),g.X(w,F.Bl,16);case 16:g.ZR(w,10);break;case 14:d=g.NX(w),g.CE(d),F=void 0;case 10:return w.return({challenge:K,AO:V,Bo:F,bgChallenge:D})}})};
|
|
NEy=function(A,L){var B;return g.c(function(f){if(f.N==1)return Lz(2),g.S5(f,2),g.X(f,VD(A.network,L),4);if(f.N!=2)return(B=f.W)?B.challenge&&!B.bgChallenge?Lz(1):Lz(4):Lz(3),f.return(B);g.NX(f);Lz(3);return f.return(void 0)})};
|
|
VD=function(A,L){var B;return g.c(function(f){B=A.W;if(!B||B.Dr())return f.return(NEy(A,L));OC("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(K){B.Hc("publicytnetworkstatus-online",function(){NEy(A,L).then(K)})}))})};
|
|
Fb8=function(A){if(!A)throw Error("Fetching Attestation challenge returned falsy");if(!A.challenge)throw Error("Missing Attestation challenge");var L=A.challenge,B=Ah(L);if("c1a"in B&&(!A.bgChallenge||!A.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},A,{q61:L,I04:B})};
|
|
Z4L=function(A,L){var B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:B=void 0,f=0,K={};case 2:if(!(f<5)){R.Ux(4);break}if(!(f>0)){R.Ux(5);break}K.Tw=1E3*Math.pow(2,f-1)+Math.random()*1E3;return g.X(R,new Promise(function(Z){return function(N){g.AR(0,function(){N(void 0)},Z.Tw)}}(K)),5);
|
|
case 5:return g.S5(R,7),g.X(R,VD(A,L),9);case 9:return V=R.W,R.return(Fb8(V));case 7:B=J=g.NX(R),J instanceof Error&&g.CE(J);case 8:f++;K={Tw:void 0};R.Ux(2);break;case 4:throw B;}})};
|
|
Ruw=function(A,L){A.N=L};
|
|
DJD=function(A){var L,B,f;return g.c(function(K){if(K.N==1)return g.X(K,Promise.race([A.N,null]),2);L=K.W;var V=Jh(A);A.N=V;(B=L)==null||(f=B.Bo)==null||f.dispose();g.VK(K)})};
|
|
RL=function(A,L){function B(){var K;return g.c(function(V){K=f-Date.now();return K<1E3?g.X(V,DJD(A),0):(aX(B,0,Math.min(K,6E4)),V.Ux(0))})}
|
|
var f=Date.now()+L;B()};
|
|
dJE=function(A,L){return new Promise(function(B){g.AR(0,function(){B(L())},A)})};
|
|
Iu0=function(){return new Promise(function(A){var L=window;L.attmp!==void 0?A(L.attmp):(L.attmq===void 0&&(L.attmq=[]),L.attmq.push(function(B){A(B)}))})};
|
|
g.wav=function(A,L){var B,f,K;return g.c(function(V){if(V.N==1){if(!g.h_("attmusi")||!g.h_("attmusi_ue"))return V.Ux(2);B=window;return B.attmp!==void 0?V.return(B.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",A,L)):g.X(V,Iu0(),3)}if(V.N!=2)return f=V.W,V.return(f.s("ENGAGEMENT_TYPE_PLAYBACK",A,L));var J=g.bB("yt.aba.att");return(K=J?J:SU.instance!==void 0?SU.instance.V.bind(SU.instance):null)?V.return(K("ENGAGEMENT_TYPE_PLAYBACK",A,L)):V.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
|
|
g.paQ=function(){var A,L,B;return g.c(function(f){if(f.N==1){if(!g.h_("attmusi")||!g.h_("attmusi_ue"))return f.Ux(2);A=window;return A.attmp===void 0?f.return(!1):g.X(f,Iu0(),3)}if(f.N!=2)return L=f.W,f.return(L.ir());var K=g.bB("yt.aba.att2");return(B=K?K:SU.instance!==void 0?SU.instance.U.bind(SU.instance):null)?f.return(B()):f.return(Promise.resolve(!1))})};
|
|
jIe=function(A,L){var B=g.bB("ytDebugData.callbacks");B||(B={},g.hf("ytDebugData.callbacks",B));if(g.h_("web_dd_iu")||ybD.includes(A))B[A]=L};
|
|
ZF=function(){var A=glk;var L=L===void 0?[]:L;var B=B===void 0?[]:B;L=JUQ.apply(null,[SED.apply(null,g.x7(L))].concat(g.x7(B)));this.store=Z8S(A,void 0,L)};
|
|
g.NA=function(A,L,B){for(var f=Object.assign({},A),K=g.m(Object.keys(L)),V=K.next();!V.done;V=K.next()){V=V.value;var J=A[V],R=L[V];if(R===void 0)delete f[V];else if(J===void 0)f[V]=R;else if(Array.isArray(R)&&Array.isArray(J))f[V]=B?[].concat(g.x7(J),g.x7(R)):R;else if(!Array.isArray(R)&&g.QK(R)&&!Array.isArray(J)&&g.QK(J))f[V]=g.NA(J,R,B);else if(typeof R===typeof J)f[V]=R;else return L=new g.iL("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:V,zgs:J,updateValue:R}),g.mL(L),
|
|
A}return f};
|
|
FK=function(A){var L=this;A=A===void 0?[]:A;this.N=[];this.V=this.W=0;this.U=void 0;this.totalLength=0;A.forEach(function(B){L.append(B)})};
|
|
GPQ=function(A,L){return A.N.length===0?!1:(A=A.N[A.N.length-1])&&A.buffer===L.buffer&&A.byteOffset+A.length===L.byteOffset};
|
|
DF=function(A,L){L=g.m(L.N);for(var B=L.next();!B.done;B=L.next())A.append(B.value)};
|
|
dZ=function(A,L,B){return A.split(L).Mz.split(B).NJ};
|
|
IL=function(A){A.U=void 0;A.W=0;A.V=0};
|
|
wZ=function(A,L,B){A.isFocused(L);return L-A.V+B<=A.N[A.W].length};
|
|
rbC=function(A){if(!A.U){var L=A.N[A.W];A.U=new DataView(L.buffer,L.byteOffset,L.length)}return A.U};
|
|
sIQ=function(A,L,B){L=L===void 0?0:L;B=B===void 0?-1:B;if(!A.totalLength||!B)return new DataView(new ArrayBuffer(0));B<0&&(B=A.totalLength-L);A.focus(L);if(!wZ(A,L,B)){var f=A.W,K=A.V;A.focus(L+B-1);K=new Uint8Array(A.V+A.N[A.W].length-K);for(var V=0,J=f;J<=A.W;J++)K.set(A.N[J],V),V+=A.N[J].length;A.N.splice(f,A.W-f+1,K);IL(A);A.focus(L)}f=A.N[A.W];return new DataView(f.buffer,f.byteOffset+L-A.V,B)};
|
|
pz=function(A,L,B){A=sIQ(A,L===void 0?0:L,B===void 0?-1:B);return new Uint8Array(A.buffer,A.byteOffset,A.byteLength)};
|
|
yD=function(A,L,B){A=pz(A,L===void 0?0:L,B===void 0?-1:B);L=new Uint8Array(A.length);try{L.set(A)}catch(f){for(B=0;B<A.length;B++)L[B]=A[B]}return L};
|
|
jU=function(A,L){A.focus(L);return A.N[A.W][L-A.V]};
|
|
var IS7=function(A,L){return h1[S[2]](this,1,A,L)};
|
|
H4w=function(A,L){A.focus(L);return wZ(A,L,4)?rbC(A).getUint32(L-A.V):256*(256*(256*jU(A,L)+jU(A,L+1))+jU(A,L+2))+jU(A,L+3)};
|
|
huD=function(A){for(var L=new Uint8Array(A.length),B=0;B<A.length;B++)L[B]=A.charCodeAt(B);return L};
|
|
G3=function(A){return A.length?gZ?gZ.decode(A):String.fromCharCode.apply(null,A):""};
|
|
g.sX=function(A){if(!A.length)return"";try{if(gZ)return gZ.decode(A);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(A)}catch(J){}for(var L=0,B=[],f=A.length;L<f;){for(var K=0;K<1024&&L<f;){var V=A[L++];if(V<128)rZ[K++]=V;else{if(V<224)V=(V&31)<<6|A[L++]&63;else if(V<240)V=(V&15)<<12|(A[L++]&63)<<6|A[L++]&63;else{if(K+1===1024){--L;break}V=(V&7)<<18|(A[L++]&63)<<12|(A[L++]&63)<<6|A[L++]&63;V-=65536;rZ[K++]=55296|V>>10;V=56320|V&1023}rZ[K++]=V}}V=String.fromCharCode.apply(String,rZ);
|
|
K<1024&&(V=V.substring(0,K));B.push(V)}return B.join("")};
|
|
hh=function(A,L){var B;if((B=Hv)==null?0:B.encodeInto)return L=Hv.encodeInto(A,L),L.read<A.length?A.length*4:L.written;for(var f=B=0;f<A.length;f++){var K=A.charCodeAt(f);K<128?L[B++]=K:(K<2048?L[B++]=K>>6|192:((K&64512)===55296&&f+1<A.length&&(A.charCodeAt(f+1)&64512)===56320?(K=65536+((K&1023)<<10)+(A.charCodeAt(++f)&1023),L[B++]=K>>18|240,L[B++]=K>>12&63|128):L[B++]=K>>12|224,L[B++]=K>>6&63|128),L[B++]=K&63|128)}return B};
|
|
bD=function(A){if(Hv)return Hv.encode(A);var L=new Uint8Array(Math.ceil(A.length*1.2)),B=hh(A,L);L.length<B&&(L=new Uint8Array(B),B=hh(A,L));L.length>B&&(L=L.subarray(0,B));return L};
|
|
th=function(A){this.N=A;this.pos=0;this.W=-1};
|
|
kv=function(A){var L=jU(A.N,A.pos);++A.pos;if(L<128)return L;for(var B=L&127,f=1;L>=128;)L=jU(A.N,A.pos),++A.pos,f*=128,B+=(L&127)*f;return B};
|
|
T3=function(A,L){var B=A.W;for(A.W=-1;A.pos+1<=A.N.totalLength;){B<0&&(B=kv(A));var f=B>>3,K=B&7;if(f===L)return!0;if(f>L){A.W=B;break}B=-1;switch(K){case 0:kv(A);break;case 1:A.pos+=8;break;case 2:f=kv(A);A.pos+=f;break;case 5:A.pos+=4}}return!1};
|
|
lD=function(A,L){if(T3(A,L))return kv(A)};
|
|
b4w=function(A,L){if(T3(A,L))return L=pz(A.N,A.pos,8),A.pos+=8,(new DataView(L.buffer,L.byteOffset,L.byteLength)).getFloat64(0,!0)};
|
|
mE=function(A,L){if(T3(A,L))return!!kv(A)};
|
|
QD=function(A,L){if(T3(A,L)){L=kv(A);var B=pz(A.N,A.pos,L);A.pos+=L;return B}};
|
|
Cz=function(A,L){if(A=QD(A,L))return g.sX(A)};
|
|
iD=function(A,L,B){if(A=QD(A,L))return B(new th(new FK([A])))};
|
|
$v=function(A,L){for(var B=[];T3(A,L);)B.push(kv(A));return B.length?B:void 0};
|
|
XK=function(A,L,B){for(var f=[],K;K=QD(A,L);)f.push(B(new th(new FK([K]))));return f.length?f:void 0};
|
|
OX=function(A,L){A=A instanceof Uint8Array?new FK([A]):A;return L(new th(A))};
|
|
t_k=function(A,L){A=new Uint8Array(A);L&&A.set(L);return A};
|
|
kPy=function(A){this.pos=0;this.W=[];this.N=t_k(A===void 0?4096:A);this.view=new DataView(this.N.buffer,this.N.byteOffset,this.N.byteLength)};
|
|
EX=function(A,L){L=A.pos+L;if(!(A.N.length>=L)){for(var B=A.N.length*2;B<L;)B*=2;A.N=t_k(B,A.N.subarray(0,A.pos));A.view=new DataView(A.N.buffer,A.N.byteOffset,A.N.byteLength)}};
|
|
cv=function(A,L){if(L>268435455){EX(A,4);for(var B=L&1073741823,f=0;f<4;f++)A.view.setUint8(A.pos,B&127|128),B>>=7,A.pos+=1;L=Math.floor(L/268435456)}for(EX(A,4);L>127;)A.view.setUint8(A.pos,L&127|128),L>>=7,A.pos+=1;A.view.setUint8(A.pos,L);A.pos+=1};
|
|
MA=function(A,L,B){B!==void 0&&(cv(A,L*8),cv(A,B))};
|
|
Yv=function(A,L,B){B!==void 0&&MA(A,L,B?1:0)};
|
|
UX=function(A,L,B){B!==void 0&&(cv(A,L*8+2),L=B.length,cv(A,L),EX(A,L),A.N.set(B,A.pos),A.pos+=L)};
|
|
Wv=function(A,L,B){B!==void 0&&(TE7(A,L,Math.ceil(Math.log2(B.length*4+2)/7)),EX(A,B.length*1.2),L=hh(B,A.N.subarray(A.pos)),A.pos+L>A.N.length&&(EX(A,L),L=hh(B,A.N.subarray(A.pos))),A.pos+=L,luS(A))};
|
|
TE7=function(A,L,B){B=B===void 0?2:B;cv(A,L*8+2);A.W.push(A.pos);A.W.push(B);A.pos+=B};
|
|
luS=function(A){for(var L=A.W.pop(),B=A.W.pop(),f=A.pos-B-L;L--;){var K=L?128:0;A.view.setUint8(B++,f&127|K);f>>=7}};
|
|
vv=function(A,L,B,f,K){B&&(TE7(A,L,K===void 0?3:K),f(A,B),luS(A))};
|
|
g.qA=function(A,L){var B=new kPy(4096);L(B,A);return new Uint8Array(B.N.buffer,B.N.byteOffset,B.pos)};
|
|
g.Pv=function(A){var L=new th(new FK([WX(decodeURIComponent(A))]));A=Cz(L,2);L=lD(L,4);var B=mJ8[L];if(typeof B==="undefined")throw A=new g.iL("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:L}),g.mL(A),A;return{ED:L,entityType:B,entityId:A}};
|
|
g.xv=function(A,L){var B=B===void 0?0:B;var f=new kPy;UX(f,2,bD(A));A=QIv[L];if(typeof A==="undefined")throw B=new g.iL("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:L}),g.mL(B),B;MA(f,4,A);MA(f,5,1);L=new Uint8Array(f.N.buffer,f.N.byteOffset,f.pos);return encodeURIComponent(g.Y$(L,B))};
|
|
eU=function(A,L,B,f){if(f===void 0)return f=Object.assign({},A[L]||{}),B=(delete f[B],f),f={},Object.assign({},A,(f[L]=B,f));var K={},V={};return Object.assign({},A,(V[L]=Object.assign({},A[L],(K[B]=f,K)),V))};
|
|
Cy6=function(A,L,B,f,K){var V=A[L];if(V==null||!V[B])return A;f=g.NA(V[B],f,K==="REPEATED_FIELDS_MERGE_OPTION_APPEND");K={};V={};return Object.assign({},A,(V[L]=Object.assign({},A[L],(K[B]=f,K)),V))};
|
|
i4E=function(A,L){A=A===void 0?{}:A;switch(L.type){case "ENTITY_LOADED":return L.payload.reduce(function(f,K){var V,J=(V=K.options)==null?void 0:V.persistenceOption;if(J&&J!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&J!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!K.entityKey)return g.mL(Error("Missing entity key")),f;if(K.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!K.payload)return K=new g.iL("REPLACE entity mutation is missing a payload",{entityKey:K.entityKey}),g.mL(K),f;var R=g.Hk(K.payload);
|
|
return eU(f,R,K.entityKey,K.payload[R])}if(K.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{K=K.entityKey;try{var Z=g.Pv(K).entityType;R=eU(f,Z,K);break a}catch(D){if(D instanceof Error){K=new g.iL("Failed to deserialize entity key",{entityKey:K,originalMessage:D.message});g.mL(K);R=f;break a}throw D;}R=void 0}return R}if(K.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!K.payload)return K=new g.iL("UPDATE entity mutation is missing a payload",{entityKey:K.entityKey}),g.mL(K),f;R=g.Hk(K.payload);var N,F;return Cy6(f,
|
|
R,K.entityKey,K.payload[R],(N=K.fieldMask)==null?void 0:(F=N.mergeOptions)==null?void 0:F.repeatedFieldsMergeOption)}return f},A);
|
|
case "REPLACE_ENTITY":var B=L.payload;return eU(A,B.entityType,B.key,B.ze);case "REPLACE_ENTITIES":return Object.keys(L.payload).reduce(function(f,K){var V=L.payload[K];return Object.keys(V).reduce(function(J,R){return eU(J,K,R,V[R])},f)},A);
|
|
case "UPDATE_ENTITY":return B=L.payload,Cy6(A,B.entityType,B.key,B.ze,B.Dbj);default:return A}};
|
|
nz=function(A,L,B){return A[L]?A[L][B]||null:null};
|
|
z3=function(A){return window.Int32Array?new Int32Array(A):Array(A)};
|
|
BT=function(A){g.Y.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.N=16;if(!$J1){var L,B=new Uint8Array(256),f=new Uint8Array(256);var K=1;for(L=0;L<256;L++)B[K]=L,f[L]=K,K^=K<<1^(K>>7&&283);uD=new Uint8Array(256);aL=z3(256);AQ=z3(256);LO=z3(256);od=z3(256);for(var V=0;V<256;V++){K=V?f[255^B[V]]:0;K^=K<<1^K<<2^K<<3^K<<4;K=K&255^K>>>8^99;uD[V]=K;L=K<<1^(K>>7&&283);var J=L^K;aL[V]=L<<24|K<<16|K<<8|J;AQ[V]=J<<24|aL[V]>>>8;LO[V]=K<<24|AQ[V]>>>8;od[V]=K<<24|LO[V]>>>8}$J1=!0}K=z3(44);for(B=
|
|
0;B<4;B++)K[B]=A[4*B]<<24|A[4*B+1]<<16|A[4*B+2]<<8|A[4*B+3];for(f=1;B<44;B++)A=K[B-1],B%4||(A=(uD[A>>16&255]^f)<<24|uD[A>>8&255]<<16|uD[A&255]<<8|uD[A>>>24],f=f<<1^(f>>7&&283)),K[B]=K[B-4]^A;this.key=K};
|
|
Xav=function(A){for(var L=A.key,B=A.counter[0]^L[0],f=A.counter[1]^L[1],K=A.counter[2]^L[2],V=A.counter[3]^L[3],J=3;J>=0&&!(A.counter[J]=-~A.counter[J]);J--);for(var R,Z,N=4;N<40;)J=aL[B>>>24]^AQ[f>>16&255]^LO[K>>8&255]^od[V&255]^L[N++],R=aL[f>>>24]^AQ[K>>16&255]^LO[V>>8&255]^od[B&255]^L[N++],Z=aL[K>>>24]^AQ[V>>16&255]^LO[B>>8&255]^od[f&255]^L[N++],V=aL[V>>>24]^AQ[B>>16&255]^LO[f>>8&255]^od[K&255]^L[N++],B=J,f=R,K=Z;A=A.W;J=L[40];A[0]=uD[B>>>24]^J>>>24;A[1]=uD[f>>16&255]^J>>16&255;A[2]=uD[K>>8&255]^
|
|
J>>8&255;A[3]=uD[V&255]^J&255;J=L[41];A[4]=uD[f>>>24]^J>>>24;A[5]=uD[K>>16&255]^J>>16&255;A[6]=uD[V>>8&255]^J>>8&255;A[7]=uD[B&255]^J&255;J=L[42];A[8]=uD[K>>>24]^J>>>24;A[9]=uD[V>>16&255]^J>>16&255;A[10]=uD[B>>8&255]^J>>8&255;A[11]=uD[f&255]^J&255;J=L[43];A[12]=uD[V>>>24]^J>>>24;A[13]=uD[B>>16&255]^J>>16&255;A[14]=uD[f>>8&255]^J>>8&255;A[15]=uD[K&255]^J&255};
|
|
VS=function(){if(!fO&&!g.ns){if(KO)return KO;var A;KO=(A=window.crypto)==null?void 0:A.subtle;var L,B,f;if(((L=KO)==null?0:L.importKey)&&((B=KO)==null?0:B.sign)&&((f=KO)==null?0:f.encrypt))return KO;KO=void 0}};
|
|
g.Rd=function(A){var L=VS();L&&(this.N=new JQ(A,L));this.W=new g.S8(A)};
|
|
JQ=function(A,L){this.W=A;this.subtleCrypto=L};
|
|
O40=function(A,L,B){var f,K;return g.c(function(V){switch(V.N){case 1:if(A.N){V.Ux(2);break}return g.X(V,A.subtleCrypto.importKey("raw",A.W,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:A.N=V.W;case 2:return f={name:"AES-CTR",counter:B,length:128},g.X(V,A.subtleCrypto.encrypt(f,A.N,L),4);case 4:return K=V.W,V.return(new Uint8Array(K))}})};
|
|
g.S8=function(A){this.W=A};
|
|
Zs=function(A){this.D=new Uint8Array(64);this.V=new Uint8Array(64);this.U=0;this.T=new Uint8Array(64);this.W=0;this.D.set(A);this.V.set(A);for(A=0;A<64;A++)this.D[A]^=92,this.V[A]^=54;this.reset()};
|
|
El1=function(A,L,B){for(var f=A.X,K=A.N[0],V=A.N[1],J=A.N[2],R=A.N[3],Z=A.N[4],N=A.N[5],F=A.N[6],D=A.N[7],I,d,w,r=0;r<64;)r<16?(f[r]=w=L[B]<<24|L[B+1]<<16|L[B+2]<<8|L[B+3],B+=4):(I=f[r-2],d=f[r-15],w=f[r-7]+f[r-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),f[r]=w),I=D+NN[r]+w+((Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&N^~Z&F),d=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&V^K&J^V&J),D=I+d,R+=I,r++,r<16?(f[r]=w=L[B]<<24|L[B+1]<<16|L[B+2]<<8|L[B+3],B+=4):(I=
|
|
f[r-2],d=f[r-15],w=f[r-7]+f[r-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),f[r]=w),I=F+NN[r]+w+((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&Z^~R&N),d=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&K^D&V^K&V),F=I+d,J+=I,r++,r<16?(f[r]=w=L[B]<<24|L[B+1]<<16|L[B+2]<<8|L[B+3],B+=4):(I=f[r-2],d=f[r-15],w=f[r-7]+f[r-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),f[r]=w),I=N+NN[r]+w+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&R^
|
|
~J&Z),d=((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+(F&D^F&K^D&K),N=I+d,V+=I,r++,r<16?(f[r]=w=L[B]<<24|L[B+1]<<16|L[B+2]<<8|L[B+3],B+=4):(I=f[r-2],d=f[r-15],w=f[r-7]+f[r-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),f[r]=w),I=Z+NN[r]+w+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&J^~V&R),d=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&F^N&D^F&D),w=D,D=R,R=w,w=F,F=J,J=w,w=N,N=V,V=w,Z=K+I,K=I+d,r++;A.N[0]=K+A.N[0]|0;A.N[1]=V+A.N[1]|0;A.N[2]=J+A.N[2]|0;A.N[3]=
|
|
R+A.N[3]|0;A.N[4]=Z+A.N[4]|0;A.N[5]=N+A.N[5]|0;A.N[6]=F+A.N[6]|0;A.N[7]=D+A.N[7]|0};
|
|
M_D=function(A){var L=new Uint8Array(32),B=64-A.W;A.W>55&&(B+=64);var f=new Uint8Array(B);f[0]=128;for(var K=A.U*8,V=1;V<9;V++){var J=K%256;f[B-V]=J;K=(K-J)/256}A.update(f);for(B=0;B<8;B++)L[B*4]=A.N[B]>>>24,L[B*4+1]=A.N[B]>>>16&255,L[B*4+2]=A.N[B]>>>8&255,L[B*4+3]=A.N[B]&255;cb6(A);return L};
|
|
cb6=function(A){A.N=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];A.X=[];A.X.length=64;A.U=0;A.W=0};
|
|
Yuk=function(A){this.N=A};
|
|
UJC=function(A,L,B){A=new Zs(A.N);A.update(L);A.update(B);L=M_D(A);A.update(A.D);A.update(L);L=M_D(A);A.reset();return L};
|
|
WbQ=function(A){this.W=A};
|
|
vly=function(A,L,B,f){var K,V,J;return g.c(function(R){switch(R.N){case 1:if(A.N){R.Ux(2);break}return g.X(R,f.importKey("raw",A.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:A.N=R.W;case 2:return K=new Uint8Array(L.length+B.length),K.set(L),K.set(B,L.length),V={name:"HMAC",hash:"SHA-256"},g.X(R,f.sign(V,A.N,K),4);case 4:return J=R.W,R.return(new Uint8Array(J))}})};
|
|
que=function(A,L,B){A.V||(A.V=new Yuk(A.W));return UJC(A.V,L,B)};
|
|
Py0=function(A,L,B){var f,K;return g.c(function(V){if(V.N==1){f=VS();if(!f)return V.return(que(A,L,B));g.S5(V,3);return g.X(V,vly(A,L,B,f),5)}if(V.N!=3)return V.return(V.W);K=g.NX(V);g.CE(K);fO=!0;return V.return(que(A,L,B))})};
|
|
eu7=function(A){for(var L="",B=0;B<A.length;B++){var f=A[B];if(B===0)f="M "+f.x.toFixed(1)+","+f.y.toFixed(1);else{var K=xJ8(A[B-1],A[B-2],f),V=xJ8(f,A[B-1],A[B+1],!0);f=" C "+(K.x.toFixed(1)+","+K.y.toFixed(1)+" "+V.x.toFixed(1)+","+V.y.toFixed(1)+" "+f.x.toFixed(1)+","+f.y.toFixed(1))}L+=f}return L};
|
|
xJ8=function(A,L,B,f){f=f===void 0?!1:f;L=new nlS(L||A,B||A);return{x:A.x+((f===void 0?0:f)?L.N*-1:L.N)*.2,y:A.y+((f===void 0?0:f)?L.W*-1:L.W)*.2}};
|
|
nlS=function(A,L){this.W=this.N=0;this.N=L.x-A.x;this.W=L.y-A.y};
|
|
auE=function(A,L){var B,f,K;return g.c(function(V){if(V.N==1)return B={context:g.AV(),settingItemIds:L},f=g.B8(zuL),g.X(V,g.MD(A,B,f),2);K=V.W;return!K||K.errorMetadata?(uYL("GetSettingValuesRequest",K),V.return(void 0)):V.return(K.settingValues)})};
|
|
LeE=function(A,L,B){var f,K,V;g.c(function(J){if(J.N==1)return f={context:g.AV(),settingItemId:L,newValue:B},K=g.B8(A0e),g.X(J,g.MD(A,f,K),2);V=J.W;if(!V||V.errorMetadata)return uYL("SetSettingRequest",V),J.return(void 0);g.VK(J)})};
|
|
uYL=function(A,L){L?L.errorMetadata&&g.CE(new g.iL(A+" failed with status "+L.errorMetadata.status)):g.CE(new g.iL(A+" failed with empty response"))};
|
|
o01=function(A){return XI(A,0,"gclid",A.search(Ow))>=0||XI(A,0,"gad_source",A.search(Ow))>=0};
|
|
BTw=function(){this.N=new Map};
|
|
Ke0=function(A,L){var B=l_().resolve(fPQ);if(o01(L)){var f=Ew(L,"gclid");L={handleEvent:function(R){A&&!A.closed&&typeof A.postMessage==="function"&&R&&R.origin&&R.source===A&&R.data&&R.data.action==="gcl_setup"&&A.postMessage(Object.assign({},{action:"gcl_transfer"},f&&{gclid:f},{gadSource:2}),R.origin)}};
|
|
for(var K=g.m(B.N),V=K.next();!V.done;V=K.next()){var J=g.m(V.value);V=J.next().value;J=J.next().value;if(V.closed)try{window.removeEventListener("message",J),B.N.delete(V)}catch(R){g.mL(R)}}A&&B.N.size<15&&(B.N.set(A,L),window.addEventListener("message",L))}};
|
|
Ff=function(A,L,B){if(!L)return A.length>=1?A[A.length-1]:null;for(var f=g.m(A),K=f.next();!K.done;K=f.next())if(K=K.value,K.width&&K.height&&(B&&K.width>=L||!B&&K.height>=L))return K;for(L=A.length-1;L>=0;L--)if(B&&A[L].width||!B&&A[L].height)return A[L];return A[0]};
|
|
Ds=function(){this.state=1;this.Bo=null;this.vI=void 0};
|
|
J00=function(A,L,B,f,K,V){var J=J===void 0?"trayride":J;B?(A.Y6(2),g.J0(g.Q4(B),function(){if(window[J])VPE(A,f,J,K);else{A.Y6(3);var R=nCD(B),Z=document.getElementById(R);Z&&(xHQ(R),Z.parentNode.removeChild(Z));g.CE(new g.iL("BL:ULB",""+B))}},V)):L?(V=g.TO("SCRIPT"),L instanceof iO?(V.textContent=XN(L),OT(V)):V.textContent=L,V.nonce=Ca(document),document.head.appendChild(V),document.head.removeChild(V),window[J]?VPE(A,f,J,K):(A.Y6(4),g.CE(new g.iL("BL:ULBJ")))):g.CE(new g.iL("BL:ULV"))};
|
|
VPE=function(A,L,B,f){A.Y6(5);var K=!!A.vI&&SlQ.includes(g.tW(A.vI)||"");try{var V=new ws({program:L,globalName:B,iz:{disable:!g.h_("att_web_record_metrics")||!g.h_("att_skip_metrics_for_cookieless_domains_ks")&&K,NP:"aGIf"}});V.Bl.then(function(){A.Y6(6);f&&f(L)});
|
|
A.VS(V)}catch(J){A.Y6(7),J instanceof Error&&g.CE(J)}};
|
|
d5=function(){var A=g.bB("yt.abuse.playerAttLoader");return A&&["bgvma","bgvmb","bgvmc"].every(function(L){return L in A})?A:null};
|
|
Id=function(){Ds.apply(this,arguments)};
|
|
w5=function(A){this.kX=A};
|
|
R80=function(A,L,B){for(var f=!1,K=g.m(A.F5.entries()),V=K.next();!V.done;V=K.next())V=g.m(V.value).next().value,V.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V.u1==="core"&&(f=!0);if(f){a:if(!B){A=g.m(A.F5.entries());for(B=A.next();!B.done;B=A.next())if(f=g.m(B.value),B=f.next().value,f=f.next().value,B.slotType==="SLOT_TYPE_IN_PLAYER"&&B.u1==="core"){B=f.layoutId;break a}B=void 0}B?L.Fj(B):Dh("No triggering layout ID available when attempting to mute.")}};
|
|
pO=function(A,L){this.y4=A;this.Fe=L};
|
|
yS=function(){};
|
|
j8=function(){};
|
|
NTw=function(A){g.Y.call(this);var L=this;this.QK=A;this.N=new Map;g5(this,"commandExecutorCommand",function(B,f,K){ZV1(L,B.commands,f,K)});
|
|
g5(this,"clickTrackingParams",function(){})};
|
|
FeL=function(A,L){g5(A,L.vY(),function(B,f,K){L.Z9(B,f,K)})};
|
|
g5=function(A,L,B){A.TL();A.N.get(L)&&g.mL(Error("Extension name "+L+" already registered"));A.N.set(L,B)};
|
|
ZV1=function(A,L,B,f){L=L===void 0?[]:L;A.TL();var K=[],V=[];L=g.m(L);for(var J=L.next();!J.done;J=L.next())J=J.value,g.y(J,DU1)||g.y(J,dUy)?K.push(J):V.push(J);K=g.m(K);for(L=K.next();!L.done;L=K.next())GQ(A,L.value,B,f);V=g.m(V);for(K=V.next();!K.done;K=V.next())GQ(A,K.value,B,f)};
|
|
GQ=function(A,L,B,f){A.TL();L.loggingUrls&&IP7(A,"loggingUrls",L.loggingUrls,B,f);L=g.m(Object.entries(L));for(var K=L.next();!K.done;K=L.next()){var V=g.m(K.value);K=V.next().value;V=V.next().value;K==="openPopupAction"?A.QK.get().Dp("innertubeCommand",{openPopupAction:V}):K==="confirmDialogEndpoint"?A.QK.get().Dp("innertubeCommand",{confirmDialogEndpoint:V}):wQy.hasOwnProperty(K)||IP7(A,K,V,B,f)}};
|
|
IP7=function(A,L,B,f,K){if((A=A.N.get(L))&&typeof A==="function")try{A(B,f,K)}catch(V){g.mL(V)}else L=new g.iL("Unhandled field",L),g.CE(L)};
|
|
r5=function(A,L,B){this.kf=A;this.N=L;this.j4=B;b_(l_(),{iG:fPQ,ZN:BTw})};
|
|
sj=function(A){this.value=A};
|
|
HT=function(A){this.value=A};
|
|
hQ=function(A){this.value=A};
|
|
b5=function(A){this.value=A};
|
|
tQ=function(A){this.value=A};
|
|
kD=function(A){this.value=A};
|
|
TQ=function(A){this.value=A};
|
|
l5=function(){sj.apply(this,arguments)};
|
|
m_=function(A){this.value=A};
|
|
QS=function(A){this.value=A};
|
|
CO=function(A){this.value=A};
|
|
i5=function(A){this.value=A};
|
|
$D=function(A){this.value=A};
|
|
Xf=function(A){this.value=A};
|
|
Oj=function(A){this.value=A};
|
|
Ej=function(A){this.value=A};
|
|
cT=function(A){this.value=A};
|
|
MN=function(A){this.value=A};
|
|
YD=function(){sj.apply(this,arguments)};
|
|
Uj=function(A){this.value=A};
|
|
WT=function(A){this.value=A};
|
|
vT=function(A){this.value=A};
|
|
qN=function(A){this.value=A};
|
|
PT=function(A){this.value=A};
|
|
xD=function(A){this.value=A};
|
|
e8=function(A){this.value=A};
|
|
nO=function(A){this.value=A};
|
|
zQ=function(A){this.value=A};
|
|
u5=function(A){this.value=A};
|
|
ad=function(A){this.value=A};
|
|
Aw=function(A){this.value=A};
|
|
Lk=function(A){this.value=A};
|
|
oJ=function(A){this.value=A};
|
|
BF=function(A){this.value=A};
|
|
fk=function(A){this.value=A};
|
|
Kk=function(A){this.value=A};
|
|
Vt=function(A){this.value=A};
|
|
Jw=function(A){this.value=A};
|
|
S6=function(A){this.value=A};
|
|
RJ=function(A){this.value=A};
|
|
Zo=function(A){this.value=A};
|
|
N1=function(A){this.value=A};
|
|
Fv=function(A){this.value=A};
|
|
Do=function(A){this.value=A};
|
|
dU=function(A){this.value=A};
|
|
IJ=function(A){this.value=A};
|
|
wU=function(A){this.value=A};
|
|
pk=function(A){this.value=A};
|
|
j6=function(A){this.value=A};
|
|
gU=function(A){this.value=A};
|
|
Gb=function(A){this.value=A};
|
|
rU=function(A){this.value=A};
|
|
sg=function(A){this.value=A};
|
|
HF=function(A){this.value=A};
|
|
hw=function(A){this.value=A};
|
|
bT=function(A){this.value=A};
|
|
tw=function(A){this.value=A};
|
|
kX=function(A){this.value=A};
|
|
Tb=function(A){this.value=A};
|
|
lT=function(){sj.apply(this,arguments)};
|
|
mw=function(A){this.value=A};
|
|
Qt=function(){sj.apply(this,arguments)};
|
|
Ck=function(){sj.apply(this,arguments)};
|
|
iT=function(){sj.apply(this,arguments)};
|
|
$X=function(){sj.apply(this,arguments)};
|
|
Xv=function(){sj.apply(this,arguments)};
|
|
Og=function(A){this.value=A};
|
|
Eg=function(A){this.value=A};
|
|
cF=function(A){this.value=A};
|
|
M1=function(A){this.value=A};
|
|
Ug=function(A,L,B){if(B&&!B.includes(A.layoutType))return!1;L=g.m(L);for(B=L.next();!B.done;B=L.next())if(!YX(A.clientMetadata,B.value))return!1;return!0};
|
|
WF=function(){return""};
|
|
pQe=function(A,L){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 L(A),8}};
|
|
vF=function(A,L,B,f){f=f===void 0?!1:f;Ww.call(this,A);this.Qq=B;this.jT=f;this.args=[];L&&this.args.push(L)};
|
|
n=function(A,L,B,f){f=f===void 0?!1:f;Ww.call(this,A);this.Qq=B;this.jT=f;this.args=[];L&&this.args.push(L)};
|
|
q1=function(A){var L=new Map;A.forEach(function(B){L.set(B.N(),B)});
|
|
this.N=L};
|
|
YX=function(A,L){return A.N.has(L)};
|
|
PF=function(A,L){A=A.N.get(L);if(A!==void 0)return A.get()};
|
|
xX=function(A){return Array.from(A.N.keys())};
|
|
e6=function(A,L,B){if(B&&B!==A.slotType)return!1;L=g.m(L);for(B=L.next();!B.done;B=L.next())if(!YX(A.clientMetadata,B.value))return!1;return!0};
|
|
jWv=function(A){var L;return((L=y0k.get(A))==null?void 0:L.cQ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
|
|
zb=function(A,L){var B={type:L.slotType,controlFlowManagerLayer:g0k.get(L.u1)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};L.slotEntryTrigger&&(B.entryTriggerType=L.slotEntryTrigger.triggerType);L.slotPhysicalPosition!==1&&(B.slotPhysicalPosition=L.slotPhysicalPosition);if(A){B.debugData={slotId:L.slotId};if(A=L.slotEntryTrigger)B.debugData.slotEntryTriggerData=nk(A);A=L.slotFulfillmentTriggers;B.debugData.fulfillmentTriggerData=[];A=g.m(A);for(var f=A.next();!f.done;f=A.next())B.debugData.fulfillmentTriggerData.push(nk(f.value));
|
|
L=L.slotExpirationTriggers;B.debugData.expirationTriggerData=[];L=g.m(L);for(A=L.next();!A.done;A=L.next())B.debugData.expirationTriggerData.push(nk(A.value))}return B};
|
|
Gxw=function(A,L){var B={type:L.layoutType,controlFlowManagerLayer:g0k.get(L.u1)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};A&&(B.debugData={layoutId:L.layoutId});return B};
|
|
nk=function(A,L){var B={type:A.triggerType};L!=null&&(B.category=L);A.triggeringSlotId!=null&&(B.triggerSourceData||(B.triggerSourceData={}),B.triggerSourceData.associatedSlotId=A.triggeringSlotId);A.triggeringLayoutId!=null&&(B.triggerSourceData||(B.triggerSourceData={}),B.triggerSourceData.associatedLayoutId=A.triggeringLayoutId);return B};
|
|
r07=function(A,L,B,f){L={opportunityType:L};A&&(f||B)&&(f=g.mn(f||[],function(K){return zb(A,K)}),L.debugData=Object.assign({},B&&B.length>0?{associatedSlotId:B}:{},f.length>0?{slots:f}:{}));
|
|
return L};
|
|
aJ=function(A,L){return function(B){return sW8(uT(A),L.slotId,L.slotType,L.slotPhysicalPosition,L.u1,L.slotEntryTrigger,L.slotFulfillmentTriggers,L.slotExpirationTriggers,B.layoutId,B.layoutType,B.u1)}};
|
|
sW8=function(A,L,B,f,K,V,J,R,Z,N,F){return{adClientDataEntry:{slotData:zb(A,{slotId:L,slotType:B,slotPhysicalPosition:f,u1:K,slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:R,clientMetadata:new q1([])}),layoutData:Gxw(A,{layoutId:Z,layoutType:N,u1:F,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Vf:new Map,clientMetadata:new q1([]),Aw:{}})}}};
|
|
Ly=function(A){this.FD=A;A=Math.random();var L=this.FD.get();L=g.Am(L.S.K().experiments,"html5_debug_data_log_probability");L=Number.isFinite(L)&&L>=0&&L<=1?L:0;this.N=A<L};
|
|
uT=function(A){return A.N||A.FD.get().S.K().J("html5_force_debug_data_for_client_tmp_logs")};
|
|
o6=function(A,L,B,f){g.Y.call(this);this.W=L;this.fY=B;this.FD=f;this.N=A(this,this,this,this,this);g.W(this,this.N);A=g.m(L);for(L=A.next();!L.done;L=A.next())g.W(this,L.value)};
|
|
BR=function(A,L){A.W.add(L)};
|
|
fy=function(A,L){A.W.delete(L)};
|
|
Jm=function(A,L,B,f){Dh(B,L,void 0,void 0,B.jT);B.Qq?Ky(A.fY,f,B.Qq,L):Dh("adsClientErrorMessage is missing.",L);VL(A,L,!0)};
|
|
h8Q=function(A,L,B){if(Si(A.N,L))if(R6(A.N,L).U=B?"filled":"not_filled",B===null){ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",L);B=g.m(A.W);for(var f=B.next();!f.done;f=B.next())f.value.sf(L);VL(A,L,!1)}else{ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",L,B);ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",L,B);var K,V=(K=B.YC)!=null?K:PF(B.clientMetadata,"metadata_type_sub_layouts");if(V)for(K=g.m(V),V=K.next();!V.done;V=K.next())ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
|
|
L,V.value);K=g.m(A.W);for(V=K.next();!V.done;V=K.next())V.value.xg(L);if(Si(A.N,L))if(R6(A.N,L).D)VL(A,L,!1);else{ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",L,B);try{f=A.N;if(!R6(f,L))throw new vF("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!f.TH.eM.get(L.slotType))throw new vF("No LayoutRenderingAdapterFactory registered for slot of type: "+L.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
|
|
if(B.layoutExitNormalTriggers.length==0&&B.layoutExitSkipTriggers.length==0&&B.layoutExitMuteTriggers.length==0&&B.layoutExitUserInputSubmittedTriggers.length==0&&B.layoutExitUserCancelledTriggers.length==0)throw new vF("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");NR(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",B.layoutExitNormalTriggers);NR(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",B.layoutExitSkipTriggers);NR(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",
|
|
B.layoutExitMuteTriggers);NR(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",B.layoutExitUserInputSubmittedTriggers);NR(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",B.layoutExitUserCancelledTriggers)}catch(N){N instanceof vF?A.o0(L,B,N,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):A.o0(L,B,new vF("Unexpected error: "+N,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");VL(A,L,!0);return}R6(A.N,L).T=!0;try{var J=A.N,R=R6(J,L),Z=J.TH.eM.get(L.slotType).get().build(J.U,
|
|
J.W,L,B);Z.init();R.layout=B;if(R.V)throw new vF("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");R.V=Z;FW(J,R,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",B.layoutExitNormalTriggers);FW(J,R,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",B.layoutExitSkipTriggers);FW(J,R,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",B.layoutExitMuteTriggers);FW(J,R,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",B.layoutExitUserInputSubmittedTriggers);
|
|
FW(J,R,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",B.layoutExitUserCancelledTriggers)}catch(N){DB(A,L);N instanceof vF?A.o0(L,B,N,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):A.o0(L,B,new vF("Unexpected error: "+N,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");VL(A,L,!0);return}ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",L,B);f=g.m(A.W);for(J=f.next();!J.done;J=f.next())J.value.R4(L,B);DB(A,L);HVL(A,L)}else A=A.FD.get(),g.dY(A.S.K())||
|
|
I6(A.S.K())||g.wY(A.S.K())?A=!0:(Dh("Composite VOD on legacy path."),A=!1),A&&Dh("slot is unscheduled after been fulfilled.",L,B)}};
|
|
bVC=function(A,L,B){L.u1!=="core"&&ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",L,B)};
|
|
tPE=function(A,L,B){ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",L,B);A=g.m(A.W);for(var f=A.next();!f.done;f=A.next())f.value.R4(L,B)};
|
|
kxk=function(A,L,B){A=g.m(A.W);for(var f=A.next();!f.done;f=A.next())f.value.Z0(L,B)};
|
|
TTy=function(A,L,B){ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",L,B);A=g.m(A.W);for(var f=A.next();!f.done;f=A.next())f.value.lq(L,B)};
|
|
lP0=function(A,L,B,f){ZB(A.fY,jWv(f),L,B);A=g.m(A.W);for(var K=A.next();!K.done;K=A.next())K.value.CD(L,B,f)};
|
|
DB=function(A,L){if(Si(A.N,L)){R6(A.N,L).T=!1;var B=py;L=R6(A.N,L);var f=[].concat(g.x7(L.G));n7v(L.G);B(A,f)}};
|
|
py=function(A,L){L.sort(function(V,J){function R(Z){Dh("TriggerCategoryOrder enum does not contain trigger category: "+Z)}
|
|
return V.category===J.category?V.trigger.triggerId.localeCompare(J.trigger.triggerId):pQe(V.category,R)-pQe(J.category,R)});
|
|
var B=new Map;L=g.m(L);for(var f=L.next();!f.done;f=L.next())if(f=f.value,Si(A.N,f.slot))if(R6(A.N,f.slot).T)R6(A.N,f.slot).G.push(f);else{mUD(A.fY,f.slot,f,f.layout);var K=B.get(f.category);K||(K=[]);K.push(f);B.set(f.category,K)}L=g.m(QWQ);for(f=L.next();!f.done;f=L.next())K=g.m(f.value),f=K.next().value,K=K.next().value,(f=B.get(f))&&C_S(A,f,K);(L=B.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&iV7(A,L);(L=B.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&$UQ(A,L);(B=B.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
|
|
XQL(A,B)};
|
|
C_S=function(A,L,B){L=g.m(L);for(var f=L.next();!f.done;f=L.next())f=f.value,f.layout&&yL(A.N,f.slot)&&OVL(A,f.slot,f.layout,B)};
|
|
iV7=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next())VL(A,B.value.slot,!1)};
|
|
$UQ=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;a:switch(R6(A.N,B.slot).U){case "not_filled":var f=!0;break a;default:f=!1}f&&(ji(A.fY,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",B.slot),A.N.ez(B.slot))}};
|
|
XQL=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;ji(A.fY,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",B.slot);for(var f=g.m(A.W),K=f.next();!K.done;K=f.next())K.value.Ch(B.slot);try{var V=A.N,J=B.slot,R=R6(V,J);if(!R)throw new n("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!R.W)throw new n("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(R.N!=="scheduled")throw new n("Tried to enter a slot from stage: "+
|
|
R.N,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(gY(R))throw new n("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var Z=g.m(Gi(V,J.slotType+"_"+J.slotPhysicalPosition).values()),N=Z.next();!N.done;N=Z.next()){var F=N.value,D;if(D=R!==F&&gY(F))K=f=void 0,D=!(((K=R.slot.fulfilledLayout)==null?void 0:K.layoutType)==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"&&((f=F.layout)==null?void 0:f.layoutType)==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY");
|
|
if(D)throw new n("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:F.N},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(I){I instanceof n&&I.Qq?(Ky(A.fY,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",I.Qq,B.slot),Dh(I,B.slot,rY(A.N,B.slot),void 0,I.jT)):(Ky(A.fY,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",B.slot),Dh(I,B.slot));VL(A,B.slot,!0);continue}B=R6(A.N,B.slot);B.N!=="scheduled"&&sZ(B.slot,B.N,"enterSlot");B.N="enter_requested";
|
|
B.W.I9()}};
|
|
HVL=function(A,L){if(Si(A.N,L)&&gY(R6(A.N,L))&&rY(A.N,L)&&!yL(A.N,L)){var B;ZB(A.fY,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",L,(B=rY(A.N,L))!=null?B:void 0);A=R6(A.N,L);A.N!=="entered"&&sZ(A.slot,A.N,"enterLayoutForSlot");A.N="rendering";A.V.startRendering(A.layout)}};
|
|
OVL=function(A,L,B,f){if(Si(A.N,L)){var K=A.fY,V;var J=((V=y0k.get(f))==null?void 0:V.sQ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";ZB(K,J,L,B);A=R6(A.N,L);A.N!=="rendering"&&sZ(A.slot,A.N,"exitLayout");A.N="rendering_stop_requested";A.V.D1(B,f)}};
|
|
VL=function(A,L,B){if(Si(A.N,L)){a:switch(R6(A.N,L).N){case "exit_requested":var f=!0;break a;default:f=!1}if(!f)a:switch(R6(A.N,L).N){case "rendering_stop_requested":f=!0;break a;default:f=!1}if(f&&(R6(A.N,L).D=!0,!B))return;if(gY(R6(A.N,L)))R6(A.N,L).D=!0,E0k(A,L,B);else{a:switch(R6(A.N,L).U){case "fill_requested":B=!0;break a;default:B=!1}if(B)R6(A.N,L).D=!0,Si(A.N,L)&&(ji(A.fY,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",L),L=R6(A.N,L),L.U="fill_cancel_requested",L.X.IJ());else{B=
|
|
rY(A.N,L);(f=A.FD.get().S.K().experiments.GL("h5_enable_layout_unscheduling_events"))&&(B?A.Z0(L,B):Dh(Error("Layout is null for LayoutUnscheduled event."),L,B,void 0,!1));ji(A.fY,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",L);var K=R6(A.N,L),V=L.slotEntryTrigger,J=K.Vj.get(V.triggerId);J&&(J.uH(V),K.Vj.delete(V.triggerId));V=g.m(L.slotFulfillmentTriggers);for(J=V.next();!J.done;J=V.next()){J=J.value;var R=K.Wn.get(J.triggerId);R&&(R.uH(J),K.Wn.delete(J.triggerId))}V=g.m(L.slotExpirationTriggers);
|
|
for(J=V.next();!J.done;J=V.next())if(J=J.value,R=K.yj.get(J.triggerId))R.uH(J),K.yj.delete(J.triggerId);K.layout!=null&&(V=K.layout,HR(K,V.layoutExitNormalTriggers),HR(K,V.layoutExitSkipTriggers),HR(K,V.layoutExitMuteTriggers),HR(K,V.layoutExitUserInputSubmittedTriggers),HR(K,V.layoutExitUserCancelledTriggers));K.X=void 0;K.W!=null&&(K.W.release(),K.W=void 0);K.V!=null&&(K.V.release(),K.V=void 0);K=A.N;R6(K,L)&&(K=Gi(K,L.slotType+"_"+L.slotPhysicalPosition))&&K.delete(L.slotId);ji(A.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
|
|
L);A=g.m(A.W);for(K=A.next();!K.done;K=A.next())K=K.value,K.u0(L),B&&!f&&K.Z0(L,B)}}}};
|
|
E0k=function(A,L,B){if(Si(A.N,L)&&gY(R6(A.N,L))){var f=rY(A.N,L);if(f&&yL(A.N,L))OVL(A,L,f,B?"error":"abandoned");else{ji(A.fY,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",L);try{var K=R6(A.N,L);if(!K)throw new n("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");K.N!=="enter_requested"&&K.N!=="entered"&&K.N!=="rendering"&&sZ(K.slot,K.N,"exitSlot");K.N="exit_requested";if(K.W===void 0)throw K.N="scheduled",new n("Cannot exit slot because adapter is not defined",
|
|
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");K.W.mp()}catch(V){V instanceof n&&V.Qq?(Ky(A.fY,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",V.Qq,L),Dh(V,L,void 0,void 0,V.jT)):(Ky(A.fY,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",L),Dh(V,L))}}}};
|
|
c08=function(A){this.slot=A;this.Vj=new Map;this.Wn=new Map;this.yj=new Map;this.qp=new Map;this.V=this.layout=this.W=this.X=void 0;this.T=this.D=!1;this.G=[];this.N="not_scheduled";this.U="not_filled"};
|
|
gY=function(A){return A.N==="enter_requested"||A.isActive()};
|
|
hm=function(A,L,B,f,K,V){g.Y.call(this);this.TH=A;this.V=L;this.D=B;this.U=f;this.W=K;this.FD=V;this.N=new Map};
|
|
Gi=function(A,L){return(A=A.N.get(L))?A:new Map};
|
|
R6=function(A,L){return Gi(A,L.slotType+"_"+L.slotPhysicalPosition).get(L.slotId)};
|
|
MPD=function(A){var L=[];A.N.forEach(function(B){B=g.m(B.values());for(var f=B.next();!f.done;f=B.next())L.push(f.value.slot)});
|
|
return L};
|
|
Si=function(A,L){return R6(A,L)!=null};
|
|
yL=function(A,L){A=R6(A,L);if(L=A.layout!=null)a:switch(A.N){case "rendering":case "rendering_stop_requested":L=!0;break a;default:L=!1}return L};
|
|
rY=function(A,L){(A=R6(A,L))?A.layout!=null&&!A.layout&&Dh("Unexpected empty layout",L):Dh("Unexpected undefined slotState",L);return(A==null?void 0:A.layout)||null};
|
|
bY=function(A,L,B){if(B.length==0)throw new n("No "+YlD.get(L)+" triggers found for slot.",void 0,UU8(L));B=g.m(B);for(var f=B.next();!f.done;f=B.next())if(f=f.value,!A.TH.UI.get(f.triggerType))throw new n("No trigger adapter registered for "+L+" trigger of type: "+f.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
|
|
UU8=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"}};
|
|
NR=function(A,L,B){B=g.m(B);for(var f=B.next();!f.done;f=B.next())if(f=f.value,!A.TH.UI.get(f.triggerType))throw new vF("No trigger adapter registered for "+YlD.get(L)+" trigger of type: "+f.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
|
|
FW=function(A,L,B,f){f=g.m(f);for(var K=f.next();!K.done;K=f.next()){K=K.value;var V=A.TH.UI.get(K.triggerType);V.fQ(B,K,L.slot,L.layout?L.layout:null);L.qp.set(K.triggerId,V)}};
|
|
HR=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=A.qp.get(B.triggerId);f&&(f.uH(B),A.qp.delete(B.triggerId))}};
|
|
sZ=function(A,L,B){Dh("Slot stage was "+L+" when calling method "+B,A)};
|
|
WeS=function(A){return tm(A.e9).concat(tm(A.UI)).concat(tm(A.N2)).concat(tm(A.xD)).concat(tm(A.eM))};
|
|
tm=function(A){var L=[];A=g.m(A.values());for(var B=A.next();!B.done;B=A.next())B=B.value,B.wh&&L.push(B);return L};
|
|
kG=function(A){g.Y.call(this);var L=this;this.N=A;this.instance=null;this.addOnDisposeCallback(function(){g.jq(L.instance);L.instance=null})};
|
|
Ti=function(A){return new kG(A)};
|
|
lY=function(A){g.Y.call(this);this.N=A;this.W=v0S(this)};
|
|
v0S=function(A){var L=new o6(function(B,f,K,V){return new hm(A.N.TH,B,f,K,V,A.N.FD)},new Set(WeS(A.N.TH).concat(A.N.listeners)),A.N.fY,A.N.FD);
|
|
g.W(A,L);return L};
|
|
mO=function(A){this.N=A};
|
|
QL=function(A,L,B){ZV1(A.N(),L,B)};
|
|
Cy=function(A,L,B,f){(A=A.N())||Dh("Could not initiate a command router instance.");GQ(A,L,B,f)};
|
|
iY=function(){this.listeners=new Set};
|
|
$G=function(A){this.FD=A};
|
|
qlk=function(A,L){var B=L.bgp&&L.bgub,f=!!L.upb;L.siub&&L.scs&&(B||f)&&(f&&XW(A.FD.get(),"html5_export_sodar_snapshot")&&Wvy(function(K){var V;return g.c(function(J){if(J.N==1)return g.X(J,Za(),2);V=J.W;return J.return(V.snapshot(K))})}),AsE(L.siub,L.scs,L.bgub,L.bgp,L.upb))};
|
|
P_1=function(A,L,B,f,K){this.callback=A;this.slot=L;this.W=B;this.Le=f;this.FD=K;this.N=null};
|
|
e8D=function(A,L,B,f){A.N&&Dh("Currently active request ongoing for slot. This should never happen",A.slot);A.N=L();A.N.then(function(K){A.N=null;f&&f(K);var V=K.xW?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",J=A.W.get(),R=A.slot.slotId,Z=aJ(A.Le.get(),{slotId:A.slot.slotId,slotType:A.slot.slotType,slotPhysicalPosition:A.slot.slotPhysicalPosition,u1:A.slot.u1,slotEntryTrigger:A.slot.slotEntryTrigger,slotFulfillmentTriggers:A.slot.slotFulfillmentTriggers,slotExpirationTriggers:A.slot.slotExpirationTriggers}),
|
|
N=OZ(J.W.get(),V,R),F={layoutId:N,layoutType:V,u1:"core"};K={layoutId:N,layoutType:V,Vf:new Map,layoutExitNormalTriggers:[new xUe(J.N,R)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new bT(K)]),Aw:Z(F)};h8Q(A.callback,A.slot,K)},function(K){A.N=null;
|
|
B&&B();K instanceof EE||Jm(A.callback,A.slot,new n(K,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
|
|
n0L=function(A){if(A.N==null)A.callback.M9(A.slot);else try{A.N.cancel(),A.N=null,A.callback.M9(A.slot)}catch(L){A.N=null,Jm(A.callback,A.slot,new n(L,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
|
|
EZ=function(A,L,B,f){!A&&(B===void 0?0:B)&&g.CE(Error("Player URL validator detects invalid url. "+(f===void 0?"":f)+": "+L));return A};
|
|
cR=function(A,L){return L&&L.test(A)?!0:!1};
|
|
uyC=function(A){return(A=z87&&z87.exec(A))?A[0]:""};
|
|
dy=function(A){var L=L===void 0?!1:L;return EZ(cR(A,aP1),A,L,"Trusted Stream URL")};
|
|
g.MR=function(A){var L=L===void 0?!1:L;return EZ(cR(A,Ave),A,L,"Trusted Image URL")};
|
|
ofv=function(A){var L=L===void 0?!1:L;return EZ(cR(A,LL7),A,L,"Trusted Promoted Video Domain URL")};
|
|
fO7=function(A){var L=L===void 0?!1:L;return EZ(cR(A,B8C),A,L,"Drm Licensor URL")};
|
|
VBe=function(A,L){L=L===void 0?!1:L;return EZ(cR(A,KL6),A,L,"Captions URL")};
|
|
A1S=function(A){A=new g.ZS(A);g.Zt(A,document.location.protocol);g.NC(A,document.location.hostname);document.location.port&&g.NT(A,document.location.port);return A.toString()};
|
|
YG=function(A){A=new g.ZS(A);g.Zt(A,document.location.protocol);return A.toString()};
|
|
g.WR=function(A,L,B){B=B===void 0?{}:B;this.start=A;this.end=L;this.active=!0;this.color="";this.W=Jv6++;this.id=B.id||"";this.priority=B.priority||9;this.visible=B.visible||!1;this.style=B.style||UZ.AD_MARKER;this.namespace=B.namespace||"";if(A=B.color)A=A.toString(16),this.color="#"+Array(7-A.length).join("0")+A;this.tooltip=B.tooltip;this.icons=B.icons?B.icons.filter(function(f){return g.Q9(f.thumbnails,function(K){return g.MR(K.url)})}):null;
|
|
this.associatedClipId=B.associatedClipId;this.markerPositionMs=B.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start};
|
|
SFS=function(A){return A===-0x8000000000000?"BEFORE_MEDIA_START":A===0?"MEDIA_START":A===0x7ffffffffffff?"MEDIA_END":A===0x8000000000000?"AFTER_MEDIA_END":A.toString()};
|
|
Rk6=function(A,L){switch(A.style){case UZ.CHAPTER_MARKER:return L?8:5;case UZ.AD_MARKER:return 6;case UZ.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
|
|
g.vR=function(A,L){return A.start-L.start||A.priority-L.priority||A.W-L.W};
|
|
g.qR=function(A){return"crn_"+A};
|
|
g.PR=function(A){return"crx_"+A};
|
|
xG=function(A,L,B,f,K,V,J,R,Z){this.slot=L;this.W=B;this.j4=J;this.Mp=R;this.sE=Z;this.N=new P_1(A,L,f,K,V)};
|
|
ZES=function(A){var L;(L=A.sE)==null||L.get().V_(PF(A.slot.clientMetadata,"metadata_type_cue_point").identifier)};
|
|
ei=function(A,L,B,f,K,V){this.slot=L;this.N=B;this.W=new P_1(A,L,f,K,V)};
|
|
ny=function(A,L){this.callback=A;this.slot=L};
|
|
zi=function(A,L){return e6(A,L.qQ,L.slotType)?!0:!1};
|
|
uY=function(){};
|
|
a6=function(A,L,B,f,K,V,J){this.N=A;this.W=L;this.Le=B;this.FD=f;this.j4=K;this.Mp=V;this.sE=J};
|
|
AE=function(){};
|
|
N86=function(A,L,B,f,K,V){this.callback=A;this.slot=L;this.layout=B;this.V=f;this.N=K;this.W=V};
|
|
D26=function(A){if(PF(A.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var L=FLE(A,A.slot);LU(A.N.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[L]})}};
|
|
d2k=function(A){if(PF(A.slot.clientMetadata,"metadata_type_prefetch_metadata")){var L=FLE(A,A.slot);LU(A.N.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[L]})}};
|
|
FLE=function(A,L){var B=oE(A.W.get(),A.slot.slotType),f=Object,K=f.assign;A=A.slot;if(L.slotEntryTrigger){var V=L.slotId;var J=L.slotEntryTrigger;V=J.triggeringSlotId!=null&&J.triggeringSlotId===V?J.clone(B):J}else V=void 0;return K.call(f,{},A,{slotId:B,slotEntryTrigger:V,slotFulfillmentTriggers:IOD(L.slotId,B,L.slotFulfillmentTriggers),slotExpirationTriggers:IOD(L.slotId,B,L.slotExpirationTriggers)})};
|
|
IOD=function(A,L,B){var f=[];B=g.m(B);for(var K=B.next();!K.done;K=B.next()){var V=f,J=V.push;var R=A;var Z=L;K=K.value;R=K.triggeringSlotId!=null&&K.triggeringSlotId===R?K.clone(Z):K;J.call(V,R)}return f};
|
|
g.B$=function(A,L){for(var B=g.m(Object.keys(L)),f=B.next(),K={};!f.done;K={placeholder:void 0},f=B.next())f=f.value,K.placeholder=L[f],A=A.replace(new RegExp("\\$"+f,"gi"),function(V){return function(){return V.placeholder}}(K));
|
|
return A};
|
|
wbv=function(A,L,B){this.N=A;this.slot=L;this.layout=B};
|
|
fU=function(A,L,B){L.layoutId!==A.layout.layoutId?A.N.o0(A.slot,L,new vF("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"):B()};
|
|
KU=function(A,L,B,f){g.SN.call(this);this.callback=A;this.V=f;this.N=[];this.W=new wbv(A,L,B)};
|
|
JE=function(A,L,B,f,K,V,J,R){f=f||PF(B.clientMetadata,V);A=Vc(A);var Z=nG(function(){K.lq(L,B)});
|
|
R.push(J(f,A,B.layoutId,{adsClientData:B.Aw},function(){Z()}))};
|
|
RE=function(A,L,B,f,K,V,J,R,Z){if(L===A)if(Z){if(Z===R.layoutId){a:{A=g.m(B.keys());for(L=A.next();!L.done;L=A.next())if(L=L.value,L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V===B.get(L).layoutId){B=!0;break a}B=!1}B?S9(f,1):K?K():Dh("Tried to call engagePingCallback but it is null",J,R)}}else Dh("Companion AdUxClick received without a layoutId",J,R)};
|
|
ZT=function(A){var L,B,f,K,V;return!((L=A.get("active_view_viewable"))==null||!L.length)||!((B=A.get("active_view_measurable"))==null||!B.length)||!((f=A.get("active_view_fully_viewable_audible_half_duration"))==null||!f.length)||!((K=A.get("audio_audible"))==null||!K.length)||!((V=A.get("audio_measurable"))==null||!V.length)};
|
|
NS=function(A){var L,B;return(B=A==null?void 0:(L=A.activeViewTracking)==null?void 0:L.trafficType)!=null?B:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
|
|
pbQ=function(A){var L;return A==null?void 0:(L=A.activeViewTracking)==null?void 0:L.identifier};
|
|
Fw=function(A){var L,B;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||[]],["swipe",A.swipePings||[]],["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",((L=A.activeViewTracking)==null?void 0:L.activeViewAudioAudiblePings)||[]],["audio_measurable",((B=A.activeViewTracking)==null?void 0:B.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||[]]])};
|
|
yvv=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 "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
|
|
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
|
|
default:return null}};
|
|
DT=function(A,L,B,f,K){K=K===void 0?null:K;this.V=A;this.j4=L;this.layoutId=f;this.U=0;this.T=null;this.D=void 0;this.N=new Set;this.W=Array.from(this.V.get("progress")||[]);this.W.sort(function(V,J){return(V.offsetMilliseconds||0)-(J.offsetMilliseconds||0)});
|
|
this.X={adPlacementConfig:B,m6:K}};
|
|
dj=function(){return["metadata_type_ad_placement_config"]};
|
|
Vc=function(A){var L=A.j4.get();return IE(L,A.X)};
|
|
pU=function(A,L,B){B=B===void 0?!1:B;A.N.has(L)?wj(A,L,[]):A.eI(L,B)};
|
|
yc=function(A,L,B){for(B=B===void 0?!1:B;A.U<A.W.length;){var f=A.W[A.U];if(f.offsetMilliseconds<=L||B)wj(A,"progress",[f]),A.U++;else break}};
|
|
j9=function(A,L){return A.N.has(L)};
|
|
gj=function(A){return A.W.every(function(L){return L.hasOwnProperty("offsetMilliseconds")})};
|
|
j90=function(A,L,B){A.T=L;A.D=B};
|
|
wj=function(A,L,B){var f;gf6(A.j4.get(),A.layoutId,L,B,(f=A.T)!=null?f:void 0,A.D)};
|
|
GNk=function(A,L,B,f,K){Jr.call(this,"ads-engagement-panel-layout",A,L,B,f,K)};
|
|
GY=function(A,L,B,f,K,V,J,R){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.T=R;this.wh=!0;this.U=null;this.D=PF(B.clientMetadata,"metadata_type_linked_player_bytes_layout_id");BR(this.wf(),this);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
rvk=function(){var A=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_PANEL"]}};
|
|
s90=function(A,L,B,f,K){Jr.call(this,"banner-image",A,L,B,f,K)};
|
|
rj=function(A,L,B,f,K,V,J,R){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.T=R;this.wh=!0;this.U=null;this.D=PF(B.clientMetadata,"metadata_type_linked_player_bytes_layout_id");BR(this.wf(),this);this.adPlacementConfig=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,this.adPlacementConfig,B.layoutId)};
|
|
HEe=function(){var A=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
|
|
sb=function(A,L,B,f,K){Jr.call(this,"action-companion",A,L,B,f,K)};
|
|
H$=function(A,L,B,f,K,V,J,R){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.T=R;this.wh=!0;this.U=null;this.D=PF(B.clientMetadata,"metadata_type_linked_player_bytes_layout_id");BR(this.wf(),this);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
hk7=function(){var A=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
|
|
bES=function(A,L,B,f,K){Jr.call(this,"image-companion",A,L,B,f,K)};
|
|
hE=function(A,L,B,f,K,V,J,R){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.T=R;this.wh=!0;this.U=null;this.D=PF(B.clientMetadata,"metadata_type_linked_player_bytes_layout_id");BR(this.wf(),this);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
tBy=function(){var A=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
|
|
kNe=function(A,L,B,f,K){Jr.call(this,"shopping-companion",A,L,B,f,K)};
|
|
bd=function(A,L,B,f,K,V,J,R){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.T=R;this.wh=!0;this.U=null;this.D=PF(B.clientMetadata,"metadata_type_linked_player_bytes_layout_id");BR(this.wf(),this);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
T8k=function(){var A=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
|
|
lOQ=function(A){var L;if(((L=A.adVideoOffset)==null?void 0:L.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var B;return((B=A.adVideoOffset)==null?void 0:B.percent)!=null};
|
|
m2C=function(A){var L;if(((L=A.adVideoOffset)==null?void 0:L.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var B;return((B=A.adVideoOffset)==null?void 0:B.milliseconds)!=null&&!isNaN(Number(A.adVideoOffset.milliseconds))};
|
|
tE=function(A,L,B,f){this.gi=A;this.layoutId=B;this.D=f;this.W=[];this.N=[];this.V=this.U=0;A=g.m(L);for(L=A.next();!L.done;L=A.next())switch(L=L.value,B=void 0,(B=L.adVideoOffset)==null?void 0:B.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":lOQ(L)?this.W.push(L):Dh("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":m2C(L)?this.N.push(L):Dh("Invalid AdVideoProgressMillisecondsCommand");break;default:Dh("Unknown or invalid AdVideoProgressOffSet kind")}this.W.sort(function(K,
|
|
V){return K.adVideoOffset.percent-V.adVideoOffset.percent});
|
|
this.N.sort(function(K,V){return Number(K.adVideoOffset.milliseconds)-Number(V.adVideoOffset.milliseconds)})};
|
|
km=function(A,L,B){B=B===void 0?!1:B;var f=A.D();if(f){for(;A.U<A.W.length;){var K=A.W[A.U];if(K.adVideoOffset.percent*f<=L||B)A.gi.get().executeCommand(K.command,A.layoutId),A.U++;else break}for(;A.V<A.N.length;)if(f=A.N[A.V],Number(f.adVideoOffset.milliseconds)<=L||B)A.gi.get().executeCommand(f.command,A.layoutId),A.V++;else break}};
|
|
TY=function(A,L,B,f,K,V){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.wh=!0;BR(this.wf(),this);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
Q98=function(){var A=["metadata_type_action_companion_ad_renderer"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
|
|
CfS=function(A,L,B,f,K,V,J,R){this.callback=A;this.slot=L;this.layout=B;this.Mp=f;this.j4=K;this.FD=J;this.Fr=R;this.N=!1;A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId);var Z;A=((Z=PF(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:Z.progressCommands)||[];var N=PF(B.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.W=new tE(V,A,B.layoutId,function(){return N*1E3})};
|
|
ld=function(A,L,B,f,K,V){KU.call(this,A,L,B,f);this.Mp=K;this.D=V;this.U=!1};
|
|
mD=function(A,L,B,f,K){Jr.call(this,"top-banner-image-text-icon-buttoned",A,L,B,f,K)};
|
|
Qc=function(A,L,B,f,K,V){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.wh=!0;BR(this.wf(),this);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
iE0=function(){var A=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
|
|
CU=function(A,L,B){Jr.call(this,"display-underlay-text-grid-cards",A,{},L,B);this.interactionLoggingClientData=B};
|
|
id=function(A,L,B,f,K,V){KU.call(this,A,L,B,f);this.j4=K;this.U=V;this.D=PF(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
|
|
$m=function(A,L,B,f,K,V){K=K===void 0?!1:K;V=V===void 0?!1:V;Jr.call(this,"ad-action-interstitial",A,L,B,f);this.interactionLoggingClientData=f;this.ZT=K;this.uj=V};
|
|
Xw=function(A,L,B,f,K){KU.call(this,A,L,B,f);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,K,A,B.layoutId)};
|
|
$21=function(){var A=["metadata_type_ad_action_interstitial_renderer"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_ENDCAP"]}};
|
|
Ob=function(A,L){return Ug(A,L.qQ,L.o8)?!0:!1};
|
|
Eb=function(A,L,B){this.W=A;this.V=L;this.N=B};
|
|
Xbk=function(A,L,B,f,K){Jr.call(this,"ads-engagement-panel",A,L,B,f,K)};
|
|
c$=function(A,L,B,f,K,V,J,R){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.T=R;this.wh=!0;this.U=null;this.D=PF(B.clientMetadata,"metadata_type_linked_player_bytes_layout_id");BR(this.wf(),this);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
OEy=function(){var A=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
|
|
MS=function(A,L,B,f,K,V,J,R){KU.call(this,A,L,B,f);this.j4=K;this.wf=V;this.T=R;this.wh=!0;this.U=null;this.D=PF(B.clientMetadata,"metadata_type_linked_player_bytes_layout_id");BR(this.wf(),this);this.adPlacementConfig=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,this.adPlacementConfig,B.layoutId)};
|
|
EfD=function(){var A=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
|
|
cvk=function(A,L,B,f,K){this.IA=A;this.j4=L;this.wf=B;this.N=f;this.Fr=K};
|
|
MBD=function(A,L,B){this.IA=A;this.j4=L;this.N=B};
|
|
YFE=function(A,L,B,f,K){this.callback=A;this.slot=L;this.layout=B;this.j4=f;this.Xy=K;A=PF(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
U2C=function(){var A=["metadata_type_client_forecasting_ad_renderer"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_FORECASTING"]}};
|
|
WLy=function(A,L,B,f,K){this.callback=A;this.slot=L;this.layout=B;this.j4=f;this.Xy=K;A=PF(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId)};
|
|
Ym=function(A,L,B,f){this.FD=A;this.j4=L;this.Xy=B;this.Fr=f};
|
|
vfw=function(A,L){return YX(A.clientMetadata,"metadata_type_ad_info_ad_metadata")?PF(A.clientMetadata,"metadata_type_ad_info_ad_metadata"):L?{channelId:L.JO,channelThumbnailUrl:L.profilePicture,channelTitle:L.author,videoTitle:L.title}:(Dh("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
|
|
qFC=function(A,L){return YX(A.clientMetadata,"metadata_ad_video_is_listed")?PF(A.clientMetadata,"metadata_ad_video_is_listed"):L?L.isListed:(Dh("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
|
|
Pf7=function(A,L,B,f){Jr.call(this,"player-overlay-layout",A,{},B,f);this.videoAdDurationSeconds=L;this.interactionLoggingClientData=f};
|
|
Ub=function(A,L,B,f,K,V,J,R,Z){KU.call(this,A,L,B,f);this.Mp=K;this.j4=V;this.T=J;this.D=R;this.FD=Z;this.U=!1;this.X=PF(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
|
|
x2D=function(A){if(A.layout.renderingContent){var L;return(L=PF(A.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:L.current}return PF(A.layout.clientMetadata,"metadata_type_player_bytes_callback")};
|
|
W$=function(A,L,B,f,K,V,J,R,Z){KU.call(this,A,L,B,f);this.Mp=K;this.j4=V;this.T=J;this.D=R;this.FD=Z;this.U=!1;this.X=PF(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
|
|
ekw=function(){return{qQ:["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"],o8:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
|
|
v$=function(A){if(A.layout.renderingContent){var L;return(L=PF(A.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:L.current}return PF(A.layout.clientMetadata,"metadata_type_player_bytes_callback")};
|
|
nfL=function(A,L,B){Jr.call(this,"ad-message",A,void 0,L,B)};
|
|
qS=function(A,L,B,f,K,V){KU.call(this,B,A,L,f);this.Mp=K;this.FD=V};
|
|
zkE=function(){return{qQ:["metadata_type_valid_ad_message_renderer"],o8:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
|
|
uPy=function(A,L,B,f){Jr.call(this,"video-interstitial-buttoned-centered",A,L,B,f);this.interactionLoggingClientData=f};
|
|
P$=function(A,L,B,f,K){KU.call(this,A,L,B,f);A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,K,A,B.layoutId)};
|
|
ud=function(A,L,B,f,K,V,J,R,Z){return Ob(B,ekw())||B.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.y(B.renderingContent,xm)!==void 0?new W$(A,L,B,f,K,V,J,R,Z):Ob(B,{qQ:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],o8:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||B.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.y(B.renderingContent,e9)!==void 0?
|
|
new Ub(A,L,B,f,K,V,J,R,Z):Ob(B,$21())||B.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.y(B.renderingContent,nU)!==void 0?new Xw(A,L,B,f,V):Ob(B,zkE())?new qS(L,B,A,f,K,Z):Ob(B,{qQ:["metadata_type_instream_ad_player_overlay_renderer"],o8:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new ld(A,L,B,f,K,R):B.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.y(B.renderingContent,zY)!==void 0?new P$(A,L,B,f,V):null};
|
|
aOS=function(A,L,B,f,K,V){this.IA=A;this.Mp=L;this.j4=B;this.W=f;this.N=K;this.FD=V};
|
|
aE=function(A){return!A.oldState.isPlaying()&&A.state.isPlaying()};
|
|
AT=function(A,L,B){return A<L?!1:B!=null?B<=L:A<=L+1};
|
|
L$=function(A,L,B,f,K,V,J,R,Z){var N=this;this.callback=A;this.slot=L;this.layout=B;this.Mp=f;this.j4=K;this.FD=J;this.Fr=R;this.hF=Z;this.N=!1;A=PF(B.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId);var F;A=((F=PF(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:F.progressCommands)||[];this.W=new tE(V,A,B.layoutId,function(){return Ar8(N)*1E3})};
|
|
oT=function(A,L){A.N||(A.vn.eI(L),A.N=!0)};
|
|
Ar8=function(A){A.layout.renderingContent?(A=A.hF.get(),A=BV(A,1).zY/1E3):A=PF(A.layout.clientMetadata,"metadata_type_video_length_seconds");return A};
|
|
L18=function(A,L,B,f,K,V){this.Mp=A;this.j4=L;this.gi=B;this.FD=f;this.Fr=K;this.hF=V};
|
|
f$=function(A){var L=[];if(A){A=g.m(Object.entries(A));for(var B=A.next();!B.done;B=A.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;f!==void 0&&(f=typeof f==="boolean"?""+ +f:(""+f).replace(/[:,=]/g,"_"),L.push(B+"."+f))}}return L.join(";")};
|
|
g.K$=function(A,L,B){L=L===void 0?{}:L;this.errorCode=A;this.details=L;this.severity=B===void 0?0:B};
|
|
Vu=function(A){return A===1||A===2};
|
|
JT=function(A,L){L=L===void 0?0:L;if(A instanceof g.K$)return A;A=A&&A instanceof Error?A:Error(""+A);Vu(L)?g.mL(A):g.CE(A);return new g.K$(L===1?"player.fatalexception":"player.exception",{name:""+A.name,message:""+A.message},L)};
|
|
ory=function(A,L){function B(){var f=g.pf.apply(0,arguments);A.removeEventListener("playing",B);L.apply(null,g.x7(f))}
|
|
A.addEventListener("playing",B)};
|
|
So=function(){var A=g.bB("yt.player.utils.videoElement_");A||(A=g.TO("VIDEO"),g.hf("yt.player.utils.videoElement_",A));return A};
|
|
RT=function(A){var L=So();return!!(L&&L.canPlayType&&L.canPlayType(A))};
|
|
Nb=function(A){if(/opus/.test(A)&&g.Z2&&!kC("38")&&!g.ng())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(A);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(A);if(/webm/.test(A)&&!nAL())return!1;A==='audio/mp4; codecs="mp4a.40.2"'&&(A='video/mp4; codecs="avc1.4d401f"');return!!RT(A)};
|
|
Bqy=function(A){try{var L=Nb('video/mp4; codecs="avc1.42001E"')||Nb('video/webm; codecs="vp9"');return(Nb('audio/mp4; codecs="mp4a.40.2"')||Nb('audio/webm; codecs="opus"'))&&(L||!A)||RT('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(B){return"html5.missingapi"}};
|
|
F2=function(){var A=So();return!(!A.webkitSupportsPresentationMode||typeof A.webkitSetPresentationMode!=="function")};
|
|
D2=function(){var A=So();try{var L=A.muted;A.muted=!L;return A.muted!==L}catch(B){}return!1};
|
|
fEv=function(){var A;return((A=navigator.connection)==null?void 0:A.type)||""};
|
|
g.dN=function(){Qz.apply(this,arguments)};
|
|
IT=function(A,L,B,f,K,V,J,R){this.sampleRate=A===void 0?0:A;this.numChannels=L===void 0?0:L;this.spatialAudioType=B===void 0?"SPATIAL_AUDIO_TYPE_NONE":B;this.N=f===void 0?!1:f;this.V=K;this.U=V;this.audioQuality=J===void 0?"AUDIO_QUALITY_UNKNOWN":J;this.W=R===void 0?!1:R};
|
|
JrD=function(A,L){vv(A,2,L.No,wN,3);vv(A,3,L.innertubeRequest,K1E,3);UX(A,4,L.onesieUstreamerConfig);UX(A,9,L.xC);vv(A,10,L.mZ,p$,3);vv(A,15,L.reloadPlaybackParams,VN6,3);Wv(A,18,L.CCF)};
|
|
RZk=function(A,L){vv(A,1,L.formatId,yu,3);MA(A,2,L.startTimeMs);MA(A,3,L.durationMs);MA(A,4,L.Uj);MA(A,5,L.L8);vv(A,9,L.rU1,SWk,3);vv(A,11,L.fpF,jo,1);vv(A,12,L.cw,jo,1)};
|
|
Z1e=function(A,L){Wv(A,1,L.videoId);MA(A,2,L.lmt)};
|
|
SWk=function(A,L){if(L.WD)for(var B=0;B<L.WD.length;B++)vv(A,1,L.WD[B],Z1e,3)};
|
|
yu=function(A,L){MA(A,1,L.itag);MA(A,2,L.lmt);Wv(A,3,L.xtags)};
|
|
gN=function(A){return{itag:lD(A,1),lmt:lD(A,2),xtags:Cz(A,3)}};
|
|
jo=function(A,L){MA(A,1,L.startTicks);MA(A,2,L.Ew);MA(A,3,L.timescale)};
|
|
Gv=function(A){return{startTicks:lD(A,1),Ew:lD(A,2),timescale:lD(A,3)}};
|
|
Nq0=function(A,L){MA(A,1,L.defaultPolicy);MA(A,2,L.smooth);MA(A,3,L.visibility);MA(A,4,L.nG);MA(A,5,L.performance);MA(A,6,L.speed)};
|
|
Dt0=function(A,L){if(L.authorizedFormats)for(var B=0;B<L.authorizedFormats.length;B++)vv(A,1,L.authorizedFormats[B],F1D,1);UX(A,2,L.sabrLicenseConstraint)};
|
|
F1D=function(A,L){MA(A,1,L.trackType);Yv(A,2,L.isHdr)};
|
|
wN=function(A,L){MA(A,13,L.timeSinceLastManualFormatSelectionMs);var B=L.lastManualDirection;B!==void 0&&(cv(A,112),cv(A,B<<1^B>>31));MA(A,16,L.L4n);MA(A,17,L.detailedNetworkType);MA(A,18,L.O2);MA(A,19,L.ot);MA(A,21,L.eyj);MA(A,23,L.Ro);MA(A,28,L.q1);MA(A,29,L.HV1);MA(A,34,L.visibility);B=L.playbackRate;if(B!==void 0){var f=new ArrayBuffer(4);(new Float32Array(f))[0]=B;B=(new Uint32Array(f))[0];if(B!==void 0)for(cv(A,285),EX(A,4),f=0;f<4;)A.view.setUint8(A.pos,B&255),B>>=8,A.pos+=1,f+=1}MA(A,36,L.M6);
|
|
vv(A,38,L.mediaCapabilities,dtS,3);MA(A,39,L.WF4);MA(A,40,L.C$);MA(A,44,L.playerState);Yv(A,46,L.UD);MA(A,48,L.PL);MA(A,50,L.AI);MA(A,51,L.LS);MA(A,54,L.O0);if(L.wj)for(B=0;B<L.wj.length;B++)MA(A,55,L.wj[B]);Yv(A,56,L.EPr);MA(A,57,L.Qp);Yv(A,58,L.DZ);MA(A,59,L.Tb);MA(A,60,L.Pa);Yv(A,61,L.isPrefetch);MA(A,62,L.KF);UX(A,63,L.sabrLicenseConstraint);MA(A,64,L.HY1);MA(A,66,L.WH4);MA(A,67,L.Rg4);MA(A,68,L.Dl4);Wv(A,69,L.audioTrackId);Yv(A,71,L.Cn);vv(A,72,L.hux,Nq0,1);MA(A,73,L.Ai);MA(A,74,L.F6);MA(A,75,
|
|
L.Un);MA(A,76,L.uLs);vv(A,79,L.vt,Dt0,3);MA(A,80,L.Ay)};
|
|
dtS=function(A,L){if(L.videoFormatCapabilities)for(var B=0;B<L.videoFormatCapabilities.length;B++)vv(A,1,L.videoFormatCapabilities[B],IEQ,1);if(L.audioFormatCapabilities)for(B=0;B<L.audioFormatCapabilities.length;B++)vv(A,2,L.audioFormatCapabilities[B],wPS,1);vv(A,4,L.perPlaybackAttributes,pPe,3);MA(A,5,L.hdrModeBitmask)};
|
|
IEQ=function(A,L){MA(A,1,L.videoCodec);Yv(A,2,L.efficient);MA(A,3,L.maxHeight);MA(A,4,L.maxWidth);MA(A,11,L.maxFramerate);MA(A,12,L.maxBitrateBps);Yv(A,15,L.is10BitSupported)};
|
|
wPS=function(A,L){MA(A,1,L.audioCodec);MA(A,2,L.numChannels);MA(A,3,L.maxBitrateBps);MA(A,6,L.spatialCapabilityBitmask)};
|
|
pPe=function(A,L){if(L.itagDenylist)for(var B=0;B<L.itagDenylist.length;B++)MA(A,1,L.itagDenylist[B])};
|
|
p$=function(A,L){vv(A,1,L.clientInfo,yrk,3);UX(A,2,L.Ih);UX(A,3,L.playbackCookie);UX(A,4,L.xC);if(L.pS)for(var B=0;B<L.pS.length;B++)vv(A,5,L.pS[B],juv,3);if(L.KL)for(B=0;B<L.KL.length;B++)MA(A,6,L.KL[B]);Wv(A,7,L.SmF);vv(A,8,L.K_,gr0,3)};
|
|
GZL=function(A,L){MA(A,1,L.q5M);MA(A,2,L.S5s)};
|
|
rr6=function(A,L){var B=L.code;B!==void 0&&(cv(A,8),cv(A,B<<1^B>>31));Wv(A,2,L.message)};
|
|
su0=function(A,L){MA(A,1,L.clientState);vv(A,2,L.JaF,GZL,1)};
|
|
gr0=function(A,L){UX(A,1,L.ton);vv(A,2,L.bwr,rr6,3);vv(A,3,L.coldStartInfo,su0,3)};
|
|
juv=function(A,L){MA(A,1,L.type);UX(A,2,L.value)};
|
|
yrk=function(A,L){Wv(A,1,L.hl);Wv(A,12,L.deviceMake);Wv(A,13,L.deviceModel);MA(A,16,L.clientName);Wv(A,17,L.clientVersion);Wv(A,18,L.osName);Wv(A,19,L.osVersion)};
|
|
H10=function(A,L){Wv(A,1,L.name);Wv(A,2,L.value)};
|
|
rN=function(A,L){Wv(A,1,L.url);if(L.rr)for(var B=0;B<L.rr.length;B++)vv(A,2,L.rr[B],H10,3);UX(A,3,L.postBody);Yv(A,4,L.Eys);Yv(A,6,L.oM)};
|
|
K1E=function(A,L){UX(A,2,L.Xa);UX(A,5,L.encryptedClientKey);UX(A,6,L.iv);UX(A,7,L.g7);Yv(A,10,L.UqF);Yv(A,13,L.SB);Yv(A,14,L.Ti);UX(A,16,L.RIF);Yv(A,17,L.A2T)};
|
|
hZy=function(A){return{SQ:lD(A,1),httpStatus:lD(A,2),body:QD(A,4)}};
|
|
VN6=function(A,L){Wv(A,1,L.token)};
|
|
b18=function(A){return{token:Cz(A,1)}};
|
|
tNe=function(A){return{qn:lD(A,1),ubF:lD(A,2)}};
|
|
lE8=function(A,L){vv(A,1,L.No,wN,3);if(L.Lj)for(var B=0;B<L.Lj.length;B++)vv(A,2,L.Lj[B],yu,3);if(L.VK)for(B=0;B<L.VK.length;B++)vv(A,3,L.VK[B],RZk,3);UX(A,5,L.videoPlaybackUstreamerConfig);if(L.lM)for(B=0;B<L.lM.length;B++)vv(A,6,L.lM[B],kZe,3);if(L.xe)for(B=0;B<L.xe.length;B++)vv(A,16,L.xe[B],yu,3);if(L.pK)for(B=0;B<L.pK.length;B++)vv(A,17,L.pK[B],yu,3);if(L.uE)for(B=0;B<L.uE.length;B++)vv(A,18,L.uE[B],yu,3);vv(A,19,L.mZ,p$,3);vv(A,21,L.xX,s2,3);MA(A,22,L.Ni4);MA(A,23,L.P11);if(L.zJ)for(B=0;B<L.zJ.length;B++)vv(A,
|
|
24,L.zJ[B],s2,3);if(L.Gn)for(B=0;B<L.Gn.length;B++)vv(A,1E3,L.Gn[B],Tq6,3)};
|
|
kZe=function(A,L){vv(A,1,L.formatId,yu,3);MA(A,2,L.Gb);MA(A,3,L.sequenceNumber);vv(A,4,L.DE,jo,1);MA(A,5,L.eN);MA(A,6,L.rU)};
|
|
s2=function(A,L){if(L.Ka)for(var B=0;B<L.Ka.length;B++)Wv(A,1,L.Ka[B]);UX(A,2,L.adsConfig);Wv(A,3,L.c$);MA(A,4,L.Eo);MA(A,5,L.LA);Wv(A,6,L.du);Wv(A,7,L.cuepointId);MA(A,8,L.uW)};
|
|
Tq6=function(A,L){if(L.Lj)for(var B=0;B<L.Lj.length;B++)vv(A,1,L.Lj[B],yu,3);if(L.VK)for(B=0;B<L.VK.length;B++)vv(A,2,L.VK[B],RZk,3);Wv(A,3,L.clipId)};
|
|
g.HV=function(A,L){vv(A,1,L.No,wN,3);UX(A,3,L.videoPlaybackUstreamerConfig);vv(A,5,L.mZ,p$,3);vv(A,6,L.xX,s2,3)};
|
|
mtL=function(A,L){Wv(A,1,L.clientPlaybackNonce);UX(A,2,L.serializedPlaybackPingContextData)};
|
|
i11=function(A,L){Wv(A,1,L.cpn);MA(A,2,L.sequenceNumber);Wv(A,3,L.serializedWatchEndpointLoggingContext);if(L.decoderInfo)for(var B=0;B<L.decoderInfo.length;B++)vv(A,6,L.decoderInfo[B],Que,3);Wv(A,9,L.playerResponseCpn);MA(A,10,L.transitionStitchType);Wv(A,11,L.qoePingUrl);MA(A,12,L.timestampOffsetMsecs);MA(A,15,L.remoteControlMode);if(L.remoteConnectedDevices)for(B=0;B<L.remoteConnectedDevices.length;B++)vv(A,16,L.remoteConnectedDevices[B],CaE,3);UX(A,17,L.serializedHouseBrandPlayerServiceLoggingContext);
|
|
if(L.serializedQoeContextData)for(B=0;B<L.serializedQoeContextData.length;B++)UX(A,19,L.serializedQoeContextData[B])};
|
|
Que=function(A,L){MA(A,1,L.elapsedTimeMs);Wv(A,3,L.videoDecoderName)};
|
|
CaE=function(A,L){MA(A,1,L.deviceInterface);Wv(A,2,L.deviceVersion);Yv(A,3,L.isSleeping)};
|
|
XP1=function(A){return{U9:iD(A,1,$tQ),trackType:lD(A,2),td:lD(A,3),timeRange:iD(A,4,Gv)}};
|
|
$tQ=function(A){return{type:lD(A,1),event:lD(A,2),l2j:b4w(A,3),CP:b4w(A,4),ya:Cz(A,5),identifier:Cz(A,6),Uj:lD(A,9)}};
|
|
O11=function(A){return{first:lD(A,1),Yd:lD(A,2)}};
|
|
Er1=function(A){return{bitrate:lD(A,6),width:lD(A,7),height:lD(A,8),fps:lD(A,25),averageBitrate:lD(A,31),audioSampleRate:lD(A,45),audioChannels:lD(A,46),qualityOrdinal:lD(A,56)}};
|
|
hT=function(A){return{itagDenylist:$v(A,1)}};
|
|
YW0=function(A){return{l0D:lD(A,1),itag:Cz(A,3),hQ:iD(A,4,crk),lmt:lD(A,5),Rfr:lD(A,7),xtags:Cz(A,15),iYn:iD(A,23,MNC),ZO:iD(A,34,hT)}};
|
|
crk=function(A){return{iv:QD(A,5),pn1:mE(A,7)}};
|
|
UtQ=function(A){return{Mc:$v(A,2),videoId:Cz(A,3),IL:lD(A,4)}};
|
|
MNC=function(A){return{videoId:Cz(A,2)}};
|
|
W11=function(A){return{YU:lD(A,3),xj:lD(A,4),md:lD(A,5),S64:mE(A,8),vAj:lD(A,10),DS:lD(A,12),M5:lD(A,13),H8:lD(A,14),q5:lD(A,15),TO:lD(A,16)}};
|
|
vrv=function(A){return{targetAudioReadaheadMs:lD(A,1),targetVideoReadaheadMs:lD(A,2),backoffTimeMs:lD(A,4),playbackCookie:QD(A,7),videoId:Cz(A,8)}};
|
|
qWE=function(A){return{minBandwidthBytesPerSec:lD(A,1),minReadaheadMs:lD(A,2)}};
|
|
PaL=function(A){return{startMinReadaheadPolicy:XK(A,1,qWE),resumeMinReadaheadPolicy:XK(A,2,qWE)}};
|
|
xtQ=function(A){return{label:Cz(A,1),text:Cz(A,2)}};
|
|
eZw=function(A){return{videoId:Cz(A,1),formatId:iD(A,2,gN),debugInfo:XK(A,3,xtQ)}};
|
|
nr0=function(A){return{Qw:XK(A,1,eZw)}};
|
|
zZe=function(A){return{CR:lD(A,1),pm:lD(A,2),minReadaheadMs:lD(A,3)}};
|
|
ub1=function(A){return{uN:lD(A,1),items:XK(A,2,zZe),hj:lD(A,3)}};
|
|
aED=function(A){return{token:Cz(A,1),videoId:Cz(A,2)}};
|
|
AGk=function(A){return{cZ:lD(A,1)}};
|
|
LmQ=function(A){return{bE:Cz(A,1),action:lD(A,2),ZX:iD(A,3,AGk)}};
|
|
bQ=function(A){return{S3:lD(A,1),v3:lD(A,2),seekSource:lD(A,3)}};
|
|
oIL=function(A){return{GJp:lD(A,1),x:lD(A,2),y:lD(A,3),width:lD(A,4),height:lD(A,5)}};
|
|
fh6=function(A){return{region:iD(A,1,oIL),KfF:iD(A,2,Gv),videoId:Cz(A,3),adMetadata:iD(A,4,BkD),cpn:Cz(A,5),loggingMetadata:QD(A,6),eC4:iD(A,7,Gv)}};
|
|
BkD=function(A){return{K54:lD(A,1)}};
|
|
KmS=function(A){return{uY1:XK(A,1,fh6)}};
|
|
Vmw=function(A){return{metadata:XK(A,1,KmS),trackType:lD(A,2),ZCx:lD(A,3)}};
|
|
SNL=function(A){return Object.values(JGL).includes(A)};
|
|
Tv=function(A,L,B,f,K,V,J,R,Z,N){this.width=A;this.height=L;this.W=R;this.quality=V||tT(A,L);this.qualityOrdinal=g.ka[this.quality];this.fps=B||0;this.stereoLayout=!K||f!=null&&f!=="UNKNOWN"&&f!=="RECTANGULAR"?0:K;this.projectionType=f?f==="EQUIRECTANGULAR"&&K===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":f:"UNKNOWN";(A=J)||(A=g.ka[this.quality],A===0?A="Automatica":(L=this.fps,B=this.projectionType,A=A.toString()+(B==="EQUIRECTANGULAR"||B==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||B==="MESH"?"s":"p")+(L>55?
|
|
"60":L>49?"50":L>39?"48":"")));this.qualityLabel=A;this.N=Z||"";this.primaries=N||""};
|
|
tT=function(A,L){var B=Math.max(A,L);A=Math.min(A,L);L=lQ[0];for(var f=0;f<lQ.length;f++){var K=lQ[f],V=g.ka[K];if(B>=Math.floor(V*16/9)*1.3||A>=V*1.3)return L;L=K}return"tiny"};
|
|
C$=function(A,L,B){B=B===void 0?{}:B;this.id=A;this.mimeType=L;B.lC>0||(B.lC=16E3);Object.assign(this,B);A=g.m(this.id.split(";"));this.itag=A.next().value;this.N=A.next().value;this.containerType=mP(L);this.Bn=Qu[this.itag]||""};
|
|
iQ=function(A){return A.Bn==="9"||A.Bn==="("||A.Bn==="9h"||A.Bn==="(h"};
|
|
RiE=function(A){return A.Bn==="H"||A.Bn==="h"};
|
|
$a=function(A){return A.Bn==="9h"||A.Bn==="(h"};
|
|
ZLy=function(A){return!!A.Zj&&!!A.Zj.fairplay&&(A.Bn==="("||A.Bn==="(h"||A.Bn==="A"||A.Bn==="MEAC3")||X2&&!!A.Zj&&A.Bn==="1e"};
|
|
Mb=function(A){return A.Bn==="1"||A.Bn==="1h"||X2&&A.Bn==="1e"};
|
|
Ya=function(A){return A.Bn==="mac3"||A.Bn==="meac3"||A.Bn==="m"||A.Bn==="i"||Nkv(A)};
|
|
Nkv=function(A){return A.Bn==="MAC3"||A.Bn==="MEAC3"||A.Bn==="M"||A.Bn==="I"};
|
|
g.U2=function(A){return A.containerType===1};
|
|
Fmv=function(A){return A.Bn==="("||A.Bn==="(h"||A.Bn==="H"||X2&&A.Bn==="1e"};
|
|
WV=function(A){return A.mimeType==="application/x-mpegURL"};
|
|
g.vV=function(A,L){return{itag:+A.itag,lmt:L?0:A.lastModified,xtags:A.N||""}};
|
|
Dfv=function(A){var L=navigator.mediaCapabilities;if(L==null||!L.decodingInfo||A.Bn==="f")return Promise.resolve();var B={type:A.audio&&A.video?"file":"media-source"};A.video&&(B.video={contentType:A.mimeType,width:A.video.width||640,height:A.video.height||360,bitrate:A.lC*8||1E6,framerate:A.video.fps||30});A.audio&&(B.audio={contentType:A.mimeType,channels:""+(A.audio.numChannels||2),bitrate:A.lC*8||128E3,samplerate:A.audio.sampleRate||44100});return L.decodingInfo(B).then(function(f){A.W=f})};
|
|
qb=function(A){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(A)};
|
|
PV=function(A){return/(vp9|vp09|vp8|avc1|av01)/.test(A)};
|
|
xa=function(A){return A.includes("vtt")||A.includes("text/mp4")};
|
|
mP=function(A){return A.indexOf("/mp4")>=0?1:A.indexOf("/webm")>=0?2:A.indexOf("/x-flv")>=0?3:A.indexOf("/vtt")>=0?4:0};
|
|
eo=function(A,L,B,f,K,V,J){var R=new IT;L in g.ka||(L="small");L==="light"&&(L="tiny");f&&K?(K=Number(K),f=Number(f)):(K=g.ka[L],f=Math.round(K*16/9));V=new Tv(f,K,0,null,void 0,L,V,J);A=unescape(A.replace(/"/g,'"'));return new C$(B,A,{audio:R,video:V})};
|
|
n$=function(A,L){return{start:function(B){return A[B]},
|
|
end:function(B){return L[B]},
|
|
length:A.length}};
|
|
df7=function(A,L,B){for(var f=[],K=[],V=0;V<A.length;V++)f.push(A.start(V)),K.push(A.end(V));f.push(L);K.push(B);f.sort(function(J,R){return J-R});
|
|
K.sort(function(J,R){return J-R});
|
|
return n$(f,K)};
|
|
zv=function(A,L,B){L=L===void 0?",":L;B=B===void 0?A?A.length:0:B;var f=[];if(A)for(B=Math.max(A.length-B,0);B<A.length;B++)f.push(A.start(B).toFixed(3)+"-"+A.end(B).toFixed(3));return f.join(L)};
|
|
uQ=function(A,L){if(!A)return-1;try{for(var B=0;B<A.length;B++)if(A.start(B)<=L&&A.end(B)>=L)return B}catch(f){}return-1};
|
|
aT=function(A,L){return uQ(A,L)>=0};
|
|
Ihv=function(A,L){if(!A)return NaN;L=uQ(A,L);return L>=0?A.start(L):NaN};
|
|
AA=function(A,L){if(!A)return NaN;L=uQ(A,L);return L>=0?A.end(L):NaN};
|
|
LW=function(A){return A&&A.length?A.end(A.length-1):NaN};
|
|
ok=function(A){return LW(A)>0};
|
|
Bi=function(A,L){A=AA(A,L);return A>=0?A-L:0};
|
|
fW=function(A,L,B){for(var f=[],K=[],V=0;V<A.length;V++)A.end(V)<L||A.start(V)>B||(f.push(Math.max(L,A.start(V))-L),K.push(Math.min(B,A.end(V))-L));return n$(f,K)};
|
|
KW=function(A,L,B,f){g.SN.call(this);var K=this;this.Py=A;this.start=L;this.end=B;this.isActive=f;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.fz={error:function(){!K.TL()&&K.isActive&&K.publish("error",K)},
|
|
updateend:function(){!K.TL()&&K.isActive&&K.publish("updateend",K)}};
|
|
this.Py.tA(this.fz);this.s1=this.isActive};
|
|
JA=function(A,L,B,f,K,V){g.SN.call(this);var J=this;this.uC=A;this.Sa=L;this.id=B;this.containerType=f;this.Bn=K;this.WV=V;this.Ul=this.BT=this.vk=null;this.Y5=!1;this.appendWindowStart=this.timestampOffset=0;this.WH=n$([],[]);this.bR=!1;this.cT=[];this.Vy=VV?[]:void 0;this.handler=function(Z){return J.publish(Z.type,J)};
|
|
var R;if((R=this.uC)==null?0:R.addEventListener)this.uC.addEventListener("updateend",this.handler),this.uC.addEventListener("error",this.handler)};
|
|
Se=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
|
|
Rk=function(A,L){this.wi=A;this.N=L===void 0?!1:L;this.W=!1};
|
|
ZL=function(A,L,B){B=B===void 0?!1:B;g.Y.call(this);this.mediaElement=A;this.AF=L;this.isView=B;this.U=0;this.D=!1;this.T=!0;this.yj=0;this.callback=null;this.G=!1;this.AF||(this.Sa=this.mediaElement.Zg());this.events=new g.dN(this);g.W(this,this.events);this.V=new Rk(this.AF?window.URL.createObjectURL(this.AF):this.Sa.webkitMediaSourceURL,!0);A=this.AF||this.Sa;Cn(this.events,A,["sourceopen","webkitsourceopen"],this.EJF);Cn(this.events,A,["sourceclose","webkitsourceclose"],this.zd4);this.X={updateend:this.Ey}};
|
|
NK=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
|
|
wH0=function(A){return window.MediaSource?new ZL(A,new window.MediaSource,!1):window.ManagedMediaSource?new ZL(A,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new ZL(A,new window.WebKitMediaSource,!1):new ZL(A,void 0,!1)};
|
|
pHy=function(A,L){Fi(A)?g.lX(function(){L(A)}):A.callback=L};
|
|
yG0=function(A,L,B){if(DL){var f;A.mediaElement.b5("rms",{l:"mswssb",sr:(f=A.mediaElement.Np)==null?void 0:f.R0()},!1);L.tA(A.X,A);B.tA(A.X,A)}A.N=L;A.W=B;g.W(A,L);g.W(A,B)};
|
|
dz=function(A){return!!A.N||!!A.W};
|
|
Fi=function(A){try{return Ik(A)==="open"}catch(L){return!1}};
|
|
Ik=function(A){if(A.AF)return A.AF.readyState;switch(A.Sa.webkitSourceState){case A.Sa.SOURCE_OPEN:return"open";case A.Sa.SOURCE_ENDED:return"ended";default:return"closed"}};
|
|
wz=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
|
|
jAv=function(A,L,B,f){if(!A.N||!A.W)return null;var K=A.N.isView()?A.N.Py:A.N,V=A.W.isView()?A.W.Py:A.W,J=new ZL(A.mediaElement,A.AF,!0);J.V=A.V;yG0(J,new KW(K,L,B,f),new KW(V,L,B,f));Fi(A)||A.N.j8(A.N.pY());return J};
|
|
pW=function(A){var L;(L=A.N)==null||L.vG();var B;(B=A.W)==null||B.vG();A.T=!1};
|
|
yV=function(){var A=this;this.jV=this.xv=PLy;this.promise=new g.QX(function(L,B){A.xv=L;A.jV=B})};
|
|
je=function(){g.Y.call(this);this.jM=!1;this.wi=null;this.ZM=this.Vj=!1;this.yj=new g.gb;this.Wn=this.Np=null;g.W(this,this.yj)};
|
|
gI7=function(A,L,B){A.isPaused()||A.getCurrentTime()>L||B>10||(A.play(),g.gW(function(){gI7(A,A.getCurrentTime(),B+1)},500))};
|
|
GhC=function(A,L){A.wi&&A.wi.equals(L)||(A.wi&&A.wi.dispose(),A.wi=L)};
|
|
gz=function(A){A.eE()&&(A.Np&&A.Np.WZ("rs_s"),ed&&A.getCurrentTime()>0&&A.seekTo(0),A.Hd(),A.load(),GhC(A,null));delete A.X};
|
|
g.Gu=function(A,L,B){this.nh=L===void 0?null:L;this.seekSource=B===void 0?null:B;this.state=A||64};
|
|
rz=function(A,L,B){B=B===void 0?!1:B;return rG7(A,L.getCurrentTime(),(0,g.bc)(),L.vu(),B)};
|
|
sJ=function(A,L,B,f){if(!(L===A.state&&B===A.nh&&f===A.seekSource||L!==void 0&&(L&128&&!B||L&2&&L&16))){var K;if(K=L)K=L||A.state,K=!!(K&16||K&32);A=new g.Gu(L,B,K?f?f:A.seekSource:null)}return A};
|
|
Hi=function(A,L,B){return sJ(A,A.state|L,null,B===void 0?null:B)};
|
|
hA=function(A,L){return sJ(A,A.state&~L,null,null)};
|
|
b1=function(A,L,B,f){return sJ(A,(A.state|L)&~B,null,f===void 0?null:f)};
|
|
g.x=function(A,L){return!!(A.state&L)};
|
|
g.tA=function(A,L){return L.state===A.state&&L.nh===A.nh};
|
|
kF=function(A){return A.isPlaying()&&!g.x(A,16)&&!g.x(A,32)};
|
|
Tu=function(A){return g.x(A,128)?-1:g.x(A,2)?0:g.x(A,2048)?3:g.x(A,64)?-1:g.x(A,1)&&!g.x(A,32)?3:g.x(A,8)?1:g.x(A,4)?2:-1};
|
|
ma=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r){g.Y.call(this);var h=this;this.qT=A;this.slot=L;this.layout=B;this.j4=f;this.Fr=K;this.hF=V;this.Mp=J;this.j$=R;this.gi=Z;this.Kl=N;this.position=D;this.U=I;this.FD=d;this.Dz=w;this.context=r;this.wh=!0;this.V=!1;this.Wy="not_rendering";this.N=!1;A=PF(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId);var Q;A=((Q=l1(this))==null?void 0:Q.progressCommands)||[];this.W=new tE(Z,A,B.layoutId,function(){return h.Xn()})};
|
|
l1=function(A){return PF(A.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
|
|
sAS=function(A){Dh("Received layout exit signal when not in layout exit flow.",A.slot,A.layout)};
|
|
HLD=function(A){var L;return((L=BV(A.hF.get(),2))==null?void 0:L.clientPlaybackNonce)||""};
|
|
hiy=function(A,L){switch(L){case "normal":A.eI("complete");break;case "skipped":A.eI("skip");break;case "abandoned":j9(A.vn,"impression")&&A.eI("abandon")}};
|
|
bLv=function(A,L){A.V||(L=new g.dk(L.state,new g.Gu),A.V=!0);return L};
|
|
tmQ=function(A,L){aE(L)?A.Kl(1):g.wk(L,4)&&!g.wk(L,2)&&A.iL();IA(L,4)<0&&!(IA(L,2)<0)&&A.Y7()};
|
|
khv=function(A){A.position===0&&(A.j$.get(),A=PF(A.layout.clientMetadata,"metadata_type_ad_placement_config").kind,A={adBreakType:QV(A)},mF("ad_bl"),g.Qm(A))};
|
|
CW=function(A,L){pU(A.vn,L,!A.N)};
|
|
lhy=function(A){var L;return(((L=l1(A))==null?void 0:L.progressCommands)||[]).findIndex(function(B){return!!g.y(B==null?void 0:B.command,TkD)})!==-1};
|
|
g.i1=function(A,L,B){iJ(A,B)||OC(A,L,B);iJ(A,"video_to_ad")||OC(A,L,"video_to_ad");iJ(A,"ad_to_video")||OC(A,L,"ad_to_video");iJ(A,"ad_to_ad")||OC(A,L,"ad_to_ad")};
|
|
$F=function(A){ma.call(this,A.qT,A.slot,A.d1,A.j4,A.Fr,A.hF,A.Mp,A.j$,A.gi,A.Kl,A.Ny,A.Ig,A.pM,A.FD,A.Dz,A.context);var L=this;this.UB=!0;this.RT=this.wQ=0;this.z9=nG(function(){L.qT.lq(L.slot,L.layout)});
|
|
this.QK=A.QK;this.Ny=A.Ny;this.Di=nG(function(){L.Wy!=="rendering_stop_requested"&&L.Ny(L);L.layoutExitReason?L.qT.CD(L.slot,L.layout,L.layoutExitReason):sAS(L)});
|
|
this.timer=new g.cD(200);this.timer.listen("tick",function(){L.iq()});
|
|
g.W(this,this.timer)};
|
|
mfv=function(A){A.RT=Date.now();Xi(A,A.wQ);A.timer.start()};
|
|
Xi=function(A,L){L={current:L/1E3,duration:A.Xn()/1E3};A.QK.get().Dp("onAdPlaybackProgress",L)};
|
|
ci=function(A){ma.call(this,A.callback,A.slot,A.d1,A.j4,A.Fr,A.hF,A.Mp,A.j$,A.gi,A.Kl,A.Ny,A.Ig,A.pM,A.FD,A.Dz,A.context);var L=this;this.adCpn="";this.gx=this.HD=0;this.z9=nG(function(){L.qT.lq(L.slot,L.layout)});
|
|
this.Di=nG(function(){L.Wy!=="rendering_stop_requested"&&L.Ny(L);L.layoutExitReason?L.qT.CD(L.slot,L.layout,L.layoutExitReason):sAS(L)});
|
|
this.Az=A.Az;this.h$=A.h$;this.FA=A.FA;this.QK=A.QK;this.E6=A.E6;this.Ny=A.Ny;XW(this.FD.get(),"html5_disable_media_load_timeout")||(this.sB=new g.aa(function(){L.Pp("load_timeout",new vF("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
|
|
A=OJ(this.FD.get());var B=EJ(this.FD.get());A&&B&&(this.X4=new g.aa(function(){var f=PF(L.layout.clientMetadata,"metadata_type_preload_player_vars");f&&L.h$.get().S.preloadVideoByPlayerVars(f,2,300)}))};
|
|
QAE=function(A){return new $F(Object.assign({},A,{qT:A.callback,Kl:function(){}}))};
|
|
CV6=function(A){return new ci(Object.assign({},A,{Kl:function(L){A.QK.get().Dp("onAdIntroStateChange",L)}}))};
|
|
iLL=function(A){return new ci(Object.assign({},A,{Kl:function(L){A.QK.get().lE(L)}}))};
|
|
$f1=function(A){for(var L=A.d1,B=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],f=g.m(dj()),K=f.next();!K.done;K=f.next())B.push(K.value);if(Ob(L,{qQ:B,o8:["LAYOUT_TYPE_MEDIA_BREAK"]}))return QAE(A);L=A.d1;B=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];f=g.m(dj());for(K=f.next();!K.done;K=f.next())B.push(K.value);if(Ob(L,{qQ:B,o8:["LAYOUT_TYPE_MEDIA"]}))return YX(A.d1.clientMetadata,"metadata_type_ad_intro")?CV6(A):iLL(A)};
|
|
MK=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){g.Y.call(this);this.callback=A;this.hF=L;this.sE=B;this.h$=f;this.Mp=K;this.MF=V;this.j$=J;this.OQ=R;this.slot=Z;this.layout=N;this.MU=F;this.Xy=D;this.wf=I;this.FD=d;this.wh=!0;this.Rb=!1;this.DJ=[];this.xu=-1;this.uc=!1};
|
|
YF=function(A){return A.DJ[A.xu]};
|
|
Wi=function(A,L,B){var f=YF(A);A.xu===A.DJ.length-1&&Dh("Unexpected skip with target requested during the last sublayout");if(B.renderingContent===void 0&&B.layoutId!==UJ(f,L,B)){Dh("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",f.LY(),f.dT(),{requestingSlot:L,requestingLayout:B});var K=!1}else K=!0;if(K){a:{if((K=PF(f.dT().clientMetadata,"metadata_type_ad_pod_skip_target"))&&K>0&&K<A.DJ.length){b:{for(var V=K;V<A.DJ.length;){if(K===PF(A.DJ[V].dT().clientMetadata,
|
|
"metadata_type_ad_pod_skip_index")){K=V;break b}V++}K=void 0}if(K===void 0)Dh("Skip-to-index was requested but target index was not found",f.LY(),f.dT(),{requestingSlot:L,requestingLayout:B});else{L=K;break a}}else Dh("Invalid ad pod skip target index",f.LY(),f.dT(),{requestingSlot:L,requestingLayout:B});L=void 0}L!==void 0&&XHD(A,f.LY(),f.dT(),L)}};
|
|
UJ=function(A,L,B){var f=PF(A.dT().clientMetadata,"metadata_type_linked_in_player_layout_id");return f?f:(Dh("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",A.LY(),A.dT(),{requestingSlot:L,requestingLayout:B}),null)};
|
|
qK=function(A,L,B,f){OLw(A,L,B,f,function(){vi(A,A.xu+1)})};
|
|
XHD=function(A,L,B,f){OLw(A,L,B,"skipped",function(){vi(A,f)})};
|
|
OLw=function(A,L,B,f,K){if(!A.uc){var V=YF(A);V?(V.dT().layoutId!==B.layoutId&&Dh("SubLayout mismatch in exitSubLayout",L,B,{exitingSubLayout:B.layoutId,activeSubLayout:V.dT().layoutId}),A.uc=!0,V.D1(V.dT(),f),lP0(A.OQ,L,B,f),A.uc=!1,A.Nd?(A.Nd(),Pi(A.j$.get())):K()):Dh("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",L,B)}};
|
|
vi=function(A,L){if(A.xu===A.DJ.length-1)A.xu++,xF(A.Xy,A.layout),Pi(A.j$.get());else a:{if(A.xu===-1&&(A.callback.lq(A.slot,A.layout),L>0)){Dh("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",A.slot,A.layout,{indexToPlay:L,layoutId:A.layout.layoutId});break a}A.xu=L;L=YF(A);if(A.xu>0){var B=A.j$.get();B.W=!1;var f={};B.N&&B.videoId&&(f.cttAuthInfo={token:B.N,videoId:B.videoId});C0("ad_to_ad",f)}B=g.y(L.dT().renderingContent,nU);if(B==null?0:B.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var K;
|
|
B=!((K=A.MF.get().ZwL.get(B.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&K)}else B=!1;B?vi(A,A.xu+1):L.startRendering(L.dT())}};
|
|
EID=function(A){(A=YF(A))&&A.Sk()};
|
|
cGQ=function(A){return new MK(A.qNn,A.hF,A.sE,A.h$,A.Mp,A.MF,A.j$,A.OQ,A.slot,A.layout,A.MU,A.Xy,A.wf,A.FD)};
|
|
ee=function(A,L,B,f,K,V,J){g.Y.call(this);this.callback=A;this.h$=L;this.Mp=B;this.j$=f;this.MV=K;this.wf=V;this.FD=J;this.wh=!0;this.Rb=!1};
|
|
Mm0=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v){function U(){var B6=$f1(Object.assign({},o0,{callback:{lq:A.lq.bind(A),CD:A.CD.bind(A),o0:A.o0.bind(A)},slot:B,d1:f,Ny:function(){xF(J,f)},
|
|
Ig:0,pM:1,Dz:!0}));return B6?new ee(A,F,I,r,B6,K,C):B6}
|
|
function a(){var B6,Ve=(B6=f.YC)!=null?B6:PF(f.clientMetadata,"metadata_type_sub_layouts");B6=cGQ({qNn:A,hF:D,sE:O,h$:F,Mp:I,MF:d,j$:r,OQ:L,slot:B,layout:f,MU:V,Xy:J,wf:K,FD:C});for(var DS=[],fw={ZQ:0};fw.ZQ<Ve.length;fw={ZQ:fw.ZQ},fw.ZQ++){var ry=$f1(Object.assign({},o0,{callback:{lq:B6.hdM.bind(B6),CD:B6.CQr.bind(B6),o0:B6.f14.bind(B6)},slot:B,d1:Ve[fw.ZQ],Ny:function(uL){return function(Jf){Jf.D1(Ve[uL.ZQ],"normal")}}(fw),
|
|
Ig:fw.ZQ,pM:Ve.length,Dz:!1}));if(!ry)return;DS.push(ry)}B6.DJ=DS;return B6}
|
|
var o0={j4:R,Fr:Z,Az:N,h$:F,hF:D,Mp:I,MF:d,FA:w,j$:r,QK:h,gi:Q,E6:l,FD:C,context:v};R=Ob(f,{qQ:["metadata_type_sub_layouts"],o8:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||f.YC!==void 0&&f.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";Z=Ob(f,{qQ:[],o8:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(R)return a();if(Z)return U()};
|
|
nW=function(A,L,B,f,K,V,J,R,Z,N){this.callback=A;this.slot=L;this.layout=B;this.hF=f;this.sE=K;this.hf=V;this.Mp=J;this.vn=R;this.j4=Z;this.D=N;this.driftRecoveryMs=PF(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.U=PF(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
|
|
Uf6=function(A){var L=PF(A.layout.clientMetadata,"metadata_type_layout_enter_ms"),B=PF(A.layout.clientMetadata,"metadata_type_layout_exit_ms");A=A.hf.get();L=YN6(A.V,L,B);return Math.min(B,L!==null?L:Infinity)};
|
|
u1=function(A,L){var B;zu(A.j4.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(B=A.hF.get().oV)==null?void 0:B.clientPlaybackNonce,adClientData:A.layout.Aw.adClientDataEntry},L)})};
|
|
ak=function(A,L,B,f,K,V,J,R,Z,N,F){nW.call(this,A,L,B,f,K,V,J,R,Z,N);this.V=F;this.W=this.N=null;A=g.m(this.V);for(L=A.next();!L.done;L=A.next())L=L.value,YX(L.dT().clientMetadata,"metadata_type_survey_overlay")&&(this.W=L.dT().layoutId)};
|
|
vI8=function(A,L){var B=Wmv(A,L);B||Dh("Expected subLRA found by layout ID",A.slot,A.layout,{layoutId:L});A.N={Yf:B};B?B.startRendering(B.dT()):L===A.W&&Dh("Failed to find rendering adapter for survey media layout",A.slot,A.layout,{surveyMediaLayoutId:L})};
|
|
Wmv=function(A,L){return L==null?null:A.V.find(function(B){return B.dT().layoutId===L})||null};
|
|
qN6=function(A,L,B,f,K,V,J,R,Z,N){var F=K-f,D,I=((D=A.fulfilledLayout||PF(A.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:PF(D.clientMetadata,"metadata_type_ssdai_ads_config"))||"",d,w;(D=(d=PF(A.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(w=d.current)==null?void 0:w.identifier)||Ay(N,"ads_cpu","slid."+L.layoutId);if(!F)return J.A7(B,I,2,V,f,K,A.slotId,D),Ay(N,"ads_iraot","slid."+L.layoutId+";enterMs."+f+";exitMs."+K+";vid."+B.video_id),null;F=J.Nt(B,I,2,V,
|
|
f,K,A.slotId,D);Ay(N,"ads_atct","slid."+L.layoutId+";enterMs."+f+";exitMs."+K+";vid."+B.video_id+";pid."+F+";cid."+D);if(!F)return Dh("Unexpected failure to add to playback timeline",A,L,Z()),null;A=A.slotId;L=L.layoutId;F?(R.N.has(F)&&Dh("Unexpected remap of timeline playback"),R.N.set(F,{slotId:A,layoutId:L})):Dh("Invalid timeline playback ID");f+V>K&&J.i4(F,K-f);return F};
|
|
PVD=function(A,L,B){var f=PF(L.clientMetadata,"metadata_type_sodar_extension_data");if(f)try{qlk(B,f)}catch(K){Dh("Unexpected error when loading Sodar",A,L,{error:K})}};
|
|
xfv=function(A,L,B,f,K,V,J){Lp(A,L,new g.dk(B,new g.Gu),f,K,J,!1,V)};
|
|
Lp=function(A,L,B,f,K,V,J,R){J=J===void 0?!0:J;aE(B)&&AT(K,0,null)&&(!j9(A,"impression")&&R&&R(),A.eI("impression"));j9(A,"impression")&&(g.wk(B,4)&&!g.wk(B,2)&&A.QF("pause"),IA(B,4)<0&&!(IA(B,2)<0)&&A.QF("resume"),g.wk(B,16)&&K>=.5&&A.QF("seek"),J&&g.wk(B,2)&&o2(A,B.state,L,f,K,V))};
|
|
o2=function(A,L,B,f,K,V,J,R,Z){j9(A,"impression")&&(V?(V=K-f,V=V>=-1&&V<=2):V=Math.abs(f-K)<=1,BW(A,L,V?f:K,B,f,J,R&&V),V&&!Z&&A.eI("complete"))};
|
|
BW=function(A,L,B,f,K,V,J){yc(A,B*1E3,J);K<=0||B<=0||(L==null?0:g.x(L,16))||(L==null?0:g.x(L,32))||(AT(B,K*.25,f)&&(V&&!j9(A,"first_quartile")&&V("first"),A.eI("first_quartile")),AT(B,K*.5,f)&&(V&&!j9(A,"midpoint")&&V("second"),A.eI("midpoint")),AT(B,K*.75,f)&&(V&&!j9(A,"third_quartile")&&V("third"),A.eI("third_quartile")))};
|
|
eiw=function(A,L){j9(A,"impression")&&A.QF(L?"fullscreen":"end_fullscreen")};
|
|
nIE=function(A){j9(A,"impression")&&A.QF("clickthrough")};
|
|
zi0=function(A){A.QF("active_view_measurable")};
|
|
uo6=function(A){j9(A,"impression")&&!j9(A,"seek")&&A.QF("active_view_fully_viewable_audible_half_duration")};
|
|
ah7=function(A){j9(A,"impression")&&!j9(A,"seek")&&A.QF("active_view_viewable")};
|
|
AV8=function(A){j9(A,"impression")&&!j9(A,"seek")&&A.QF("audio_audible")};
|
|
LFC=function(A){j9(A,"impression")&&!j9(A,"seek")&&A.QF("audio_measurable")};
|
|
oxk=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){this.callback=A;this.slot=L;this.layout=B;this.sE=f;this.vn=K;this.Mp=V;this.kH=J;this.Fr=R;this.Az=Z;this.FD=N;this.j4=F;this.hF=D;this.FA=I;this.UB=!0;this.XA=this.Wy=null;this.adCpn=void 0;this.N=!1};
|
|
BXw=function(A,L,B){var f;Ay(A.j4.get(),"ads_qua","cpn."+PF(A.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=BV(A.hF.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+L+";clr."+B)};
|
|
f80=function(A,L){var B,f;Ay(A.j4.get(),"ads_imp","cpn."+PF(A.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((B=BV(A.hF.get(),2))==null?void 0:B.clientPlaybackNonce)+";clr."+L+";skp."+!!g.y((f=PF(A.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:f.skipOrPreviewRenderer,fp))};
|
|
Kp=function(A){return{enterMs:PF(A.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:PF(A.clientMetadata,"metadata_type_layout_exit_ms")}};
|
|
Vg=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){nW.call(this,A,L,B,f,K,J,R,Z,N,D);this.kH=V;this.Az=F;this.Fr=I;this.FD=d;this.XA=this.Wy=null};
|
|
KFy=function(A,L){var B;Ay(A.j4.get(),"ads_imp","acpn."+((B=BV(A.hF.get(),2))==null?void 0:B.clientPlaybackNonce)+";clr."+L)};
|
|
VGk=function(A,L,B){var f;Ay(A.j4.get(),"ads_qua","cpn."+PF(A.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=BV(A.hF.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+L+";clr."+B)};
|
|
Jy=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O){this.wf=A;this.MU=L;this.Xy=B;this.hF=f;this.sE=K;this.Mp=V;this.MF=J;this.j4=R;this.kH=Z;this.hf=N;this.Fr=F;this.Az=D;this.h$=I;this.FA=d;this.j$=w;this.QK=r;this.gi=h;this.E6=Q;this.FD=l;this.N=C;this.context=O};
|
|
S$=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q){this.wf=A;this.MU=L;this.Xy=B;this.j4=f;this.Fr=K;this.Az=V;this.h$=J;this.hF=R;this.Mp=Z;this.MF=N;this.FA=F;this.j$=D;this.QK=I;this.gi=d;this.E6=w;this.FD=r;this.sE=h;this.context=Q};
|
|
JVD=function(A,L,B,f){Jr.call(this,"survey-interstitial",A,L,B,f)};
|
|
R2=function(A,L,B,f,K){KU.call(this,B,A,L,f);this.j4=K;A=PF(L.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(L.Vf,K,A,L.layoutId)};
|
|
ZN=function(A){return Math.round(A.width)+"x"+Math.round(A.height)};
|
|
Fp=function(A,L,B){B=B===void 0?Nr:B;B.width<Nr.width&&(B=Nr);if(A.width<B.width||A.height<B.height)return{Av:3,zm:501,errorMessage:"ad("+ZN(B)+") larger than container("+ZN(A)+")."};if(B.width*B.height>A.width*A.height*.2)return{Av:3,zm:501,errorMessage:"ad("+ZN(B)+") to container("+ZN(A)+") ratio exceeds limit."};if(B.height>A.height/3-L)return{Av:3,zm:501,errorMessage:"ad("+ZN(B)+") covers container("+ZN(A)+") center."}};
|
|
SCE=function(A,L){var B=PF(A.clientMetadata,"metadata_type_ad_placement_config");return new DT(A.Vf,L,B,A.layoutId)};
|
|
DN=function(A){return PF(A.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
|
|
df=function(A,L,B,f){Jr.call(this,"invideo-overlay",A,L,B,f);this.interactionLoggingClientData=f};
|
|
I2=function(A,L,B,f,K,V,J,R,Z,N,F,D){KU.call(this,V,A,L,K);this.j4=B;this.U=J;this.Mp=R;this.gi=Z;this.FD=N;this.T=F;this.D=D;this.vn=SCE(L,B)};
|
|
Rav=function(){var A=["metadata_type_invideo_overlay_ad_renderer"];dj().forEach(function(L){A.push(L)});
|
|
return{qQ:A,o8:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
|
|
wf=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){KU.call(this,V,A,L,K);this.j4=B;this.U=J;this.G=R;this.Mp=Z;this.gi=N;this.FD=F;this.T=D;this.D=I;this.vn=SCE(L,B)};
|
|
Z0D=function(){for(var A=["metadata_type_invideo_overlay_ad_renderer"],L=g.m(dj()),B=L.next();!B.done;B=L.next())A.push(B.value);return{qQ:A,o8:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
|
|
pp=function(A){this.Mp=A;this.N=!1};
|
|
NXk=function(A,L,B){Jr.call(this,"survey",A,{},L,B)};
|
|
yg=function(A,L,B,f,K,V,J){KU.call(this,B,A,L,f);this.U=K;this.Mp=V;this.FD=J};
|
|
FFC=function(A,L,B,f,K,V,J,R,Z,N){this.IA=A;this.Mp=L;this.j4=B;this.U=f;this.Fr=K;this.W=V;this.V=J;this.gi=R;this.FD=Z;this.N=N};
|
|
DD6=function(A,L,B,f,K,V,J,R,Z,N){this.IA=A;this.Mp=L;this.j4=B;this.U=f;this.Fr=K;this.W=V;this.V=J;this.gi=R;this.FD=Z;this.N=N};
|
|
j$=function(A,L,B,f,K,V,J,R,Z,N){W$.call(this,A,L,B,f,K,V,J,Z);this.AA=R;this.hF=N};
|
|
dD8=function(){var A=ekw();A.qQ.push("metadata_type_ad_info_ad_metadata");return A};
|
|
I8e=function(A,L,B,f,K,V,J){this.IA=A;this.Mp=L;this.j4=B;this.W=f;this.AA=K;this.N=V;this.hF=J};
|
|
w80=function(A,L,B,f,K,V,J,R){this.IA=A;this.Mp=L;this.j4=B;this.W=f;this.AA=K;this.N=V;this.FD=J;this.hF=R};
|
|
gf=function(A,L){this.adPodIndex=A;this.N=L.length;this.adBreakLengthSeconds=L.reduce(function(f,K){return f+K},0);
|
|
var B=0;for(A+=1;A<L.length;A++)B+=L[A];this.adBreakRemainingLengthSeconds=B};
|
|
GA=function(A,L,B){this.O5=L;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=B||A(this.triggerType)};
|
|
rf=function(A,L,B){this.N=L;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=B||A(this.triggerType)};
|
|
s7=function(A,L,B,f){this.O5=L;this.visible=B;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=f||A(this.triggerType)};
|
|
p8D=function(A){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=A(this.triggerType)};
|
|
yVw=function(A){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=A(this.triggerType)};
|
|
HW=function(A,L,B){this.triggeringLayoutId=L;this.slotId=B;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=A(this.triggerType)};
|
|
hy=function(A,L,B){this.triggeringLayoutId=L;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=B||A(this.triggerType)};
|
|
bh=function(A,L,B,f){this.triggeringLayoutId=L;this.N=B;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=f||A(this.triggerType)};
|
|
jvQ=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 n("Invalid layout exit reason: "+
|
|
A)}};
|
|
ty=function(A,L,B){this.triggeringLayoutId=L;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=B||A(this.triggerType)};
|
|
kd=function(A,L){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=L||A(this.triggerType)};
|
|
TA=function(A,L){this.breakDurationMs=A;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=L||""};
|
|
lh=function(A,L){this.breakDurationMs=A;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=L||""};
|
|
mU=function(A,L){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=L||A(this.triggerType)};
|
|
gxw=function(A){this.triggerId=A;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
|
|
GJC=function(A,L,B,f,K){this.O5=L;this.N=B;this.visible=f;this.layoutId=K;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=A(this.triggerType)};
|
|
Qg=function(A,L,B,f,K){this.O5=L;this.N=B;this.visible=f;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=K||A(this.triggerType)};
|
|
Cp=function(A,L){this.breakDurationMs=A;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=L||""};
|
|
rVD=function(A,L,B){this.O5=L;this.N=B;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=A(this.triggerType)};
|
|
ih=function(A,L,B,f,K){this.N=L;this.slotType=B;this.layoutType=f;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=K||A(this.triggerType)};
|
|
$d=function(A,L){this.N=L;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=A(this.triggerType)};
|
|
Xp=function(A,L,B){this.layoutId=L;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=B||A(this.triggerType)};
|
|
O7=function(A,L,B){this.N=L;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=B||A(this.triggerType)};
|
|
xUe=function(A,L){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=L;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=A(this.triggerType)};
|
|
sv7=function(A,L){this.N=A;this.index=L};
|
|
H01=function(A){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=A(this.triggerType)};
|
|
E7=function(A,L){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=L||A(this.triggerType)};
|
|
haD=function(A,L,B){this.layoutId=L;this.offsetMs=B;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=A(this.triggerType)};
|
|
b0L=function(A,L){this.layoutId=L;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=A(this.triggerType)};
|
|
tGw=function(A,L,B){this.layoutId=L;this.offsetMs=B;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=A(this.triggerType)};
|
|
cW=function(A,L,B){this.triggeringLayoutId=L;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=B||A(this.triggerType)};
|
|
Mr=function(A,L,B){this.triggeringSlotId=L;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=B||A(this.triggerType)};
|
|
Yd=function(A,L,B){this.triggeringSlotId=L;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=B||A(this.triggerType)};
|
|
U7=function(A,L){this.triggeringSlotId=L;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=A(this.triggerType)};
|
|
WW=function(A,L){this.triggeringSlotId=L;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=A(this.triggerType)};
|
|
vW=function(A,L,B){this.triggeringSlotId=L;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=B||A(this.triggerType)};
|
|
qr=function(A,L){this.triggeringSlotId=L;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=A(this.triggerType)};
|
|
PW=function(A,L,B){this.triggeringLayoutId=L;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=B||A(this.triggerType)};
|
|
xd=function(A,L,B,f){this.durationMs=L;this.triggeringLayoutId=B;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=f||A(this.triggerType)};
|
|
e$=function(A,L,B,f){this.category=A;this.trigger=L;this.slot=B;this.layout=f};
|
|
np=function(A){return(A==null?void 0:A.layoutId)!=null&&(A==null?void 0:A.layoutType)!=null};
|
|
kJC=function(A){if(!np(A.adLayoutMetadata))return!1;A=A.renderingContent;return g.y(A,zA)||g.y(A,uh)||g.y(A,a2)||g.y(A,Ae)||g.y(A,LJ)||g.y(A,oG)?!0:!1};
|
|
TXQ=function(A){return(A==null?void 0:A.durationMs)!=null&&(A==null?void 0:A.durationMs)>0};
|
|
By=function(A){return!!(A.srs&&A.slot&&A.layout)};
|
|
fJ=function(A){var L,B=(L=A.config)==null?void 0:L.adPlacementConfig;A=A.renderer;return!(!B||B.kind==null||!A)};
|
|
mDk=function(A){if(!np(A.adLayoutMetadata))return!1;A=A.renderingContent;return g.y(A,nU)||g.y(A,zY)||g.y(A,l8w)||g.y(A,xm)||g.y(A,e9)?!0:!1};
|
|
KJ=function(A){return A.playerVars!==void 0&&A.pings!==void 0&&A.externalVideoId!==void 0};
|
|
FE=function(A){if(!np(A.adLayoutMetadata))return!1;A=A.renderingContent;var L=g.y(A,VQ);return L?Je(L):(L=g.y(A,SL))?KJ(L):(L=g.y(A,RG))?L.playerVars!==void 0:(L=g.y(A,nU))?L.durationMilliseconds!==void 0:g.y(A,ZJ)||g.y(A,N0)?!0:!1};
|
|
Je=function(A){A=(A.sequentialLayouts||[]).map(function(L){return g.y(L,DJ)});
|
|
return A.length>0&&A.every(FE)};
|
|
IG=function(A){return np(A.adLayoutMetadata)?(A=g.y(A.renderingContent,d9))&&A.pings?!0:!1:!1};
|
|
X87=function(A){if(!np(A.adLayoutMetadata))return!1;if(g.y(A.renderingContent,Qv1)||g.y(A.renderingContent,w9))return!0;var L=g.y(A.renderingContent,pJ);return g.y(A.renderingContent,yQ)||g.y(L==null?void 0:L.sidePanel,CJ1)||g.y(L==null?void 0:L.sidePanel,i08)||g.y(L==null?void 0:L.sidePanel,$DS)?!0:!1};
|
|
UD7=function(A){var L;(L=!A)||(L=A.adSlotMetadata,L=!((L==null?void 0:L.slotId)!==void 0&&(L==null?void 0:L.slotType)!==void 0));if(L||!(O01(A)||A.slotEntryTrigger&&A.slotFulfillmentTriggers&&A.slotExpirationTriggers))return!1;var B;A=(B=A.fulfillmentContent)==null?void 0:B.fulfilledLayout;return(B=g.y(A,DJ))?FE(B):(B=g.y(A,jL))?X87(B):(B=g.y(A,Ex1))?mDk(B):(B=g.y(A,cVy))?kJC(B):(B=g.y(A,MGv))?np(B.adLayoutMetadata)?g.y(B.renderingContent,zA)?!0:!1:!1:(B=g.y(A,g9))?IG(B):(A=g.y(A,YCD))?np(A.adLayoutMetadata)?
|
|
g.y(A.renderingContent,w9)?!0:!1:!1:!1};
|
|
O01=function(A){var L;A=g.y((L=A.fulfillmentContent)==null?void 0:L.fulfilledLayout,jL);var B;return A&&((B=A.adLayoutMetadata)==null?void 0:B.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&A.layoutExitNormalTriggers===void 0};
|
|
WFv=function(A){var L;return(A==null?void 0:(L=A.adSlotMetadata)==null?void 0:L.slotType)==="SLOT_TYPE_IN_PLAYER"};
|
|
vxL=function(A){A=g.m(A||[]);for(var L=A.next();!L.done;L=A.next()){var B=g.y(L.value,Gl);if(B===void 0||!UD7(B))break;L=void 0;B=(L=B.fulfillmentContent)==null?void 0:L.fulfilledLayout;if((L=g.y(B,g9))&&IG(L))return!0}return!1};
|
|
PJQ=function(A,L){var B;if((B=A.questions)==null||!B.length||!A.playbackCommands||(L===void 0||!L)&&A.questions.length!==1)return!1;A=g.m(A.questions);for(L=A.next();!L.done;L=A.next()){L=L.value;var f=B=void 0,K=((B=g.y(L,r9))==null?void 0:B.surveyAdQuestionCommon)||((f=g.y(L,s4))==null?void 0:f.surveyAdQuestionCommon);if(!qCy(K))return!1}return!0};
|
|
xD6=function(A){A=((A==null?void 0:A.playerOverlay)||{}).instreamSurveyAdRenderer;var L;if(A)if(A.playbackCommands&&A.questions&&A.questions.length===1){var B,f=((L=g.y(A.questions[0],r9))==null?void 0:L.surveyAdQuestionCommon)||((B=g.y(A.questions[0],s4))==null?void 0:B.surveyAdQuestionCommon);L=qCy(f)}else L=!1;else L=!1;return L};
|
|
qCy=function(A){if(!A)return!1;A=g.y(A.instreamAdPlayerOverlay,Hy);var L=g.y(A==null?void 0:A.skipOrPreviewRenderer,fp),B=g.y(A==null?void 0:A.adInfoRenderer,he);return(g.y(A==null?void 0:A.skipOrPreviewRenderer,bM)||L)&&B?!0:!1};
|
|
eaE=function(A){return A.linearAds!=null&&np(A.adLayoutMetadata)};
|
|
nxC=function(A){return A.linearAd!=null&&A.adVideoStart!=null};
|
|
za1=function(A){if(isNaN(Number(A.timeoutSeconds))||!A.text||!A.ctaButton||!g.y(A.ctaButton,g.te)||!A.brandImage)return!1;var L;return A.backgroundImage&&g.y(A.backgroundImage,kY)&&((L=g.y(A.backgroundImage,kY))==null?0:L.landscape)?!0:!1};
|
|
Tl=function(A,L,B,f,K,V,J,R){g.Y.call(this);this.FD=A;this.N=L;this.W=f;this.hF=K;this.U=V;this.V=J;this.h$=R};
|
|
Ahe=function(A,L,B){var f,K=((f=B.adSlots)!=null?f:[]).map(function(R){return g.y(R,Gl)});
|
|
if(B.xW)if(PF(L.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId);
|
|
else{if(A.FD.get().S.K().J("h5_check_forecasting_renderer_for_throttled_midroll")){var V=B.To.filter(function(R){var Z;return((Z=R.renderer)==null?void 0:Z.clientForecastingAdRenderer)!=null});
|
|
V.length!==0?uRy(A.V,V,K,L.slotId,B.ssdaiAdsConfig):LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId)}else LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId);
|
|
a87(A.U,L)}else{var J;f={f3:Math.round(((V=PF(L.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:V.f3)||0),hU:(J=PF(L.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:J.hU};V=PF(L.clientMetadata,"metadata_type_cue_point");uRy(A.V,B.To,K,L.slotId,B.ssdaiAdsConfig,f,V)}};
|
|
BZk=function(A,L,B,f,K,V,J,R){var Z=BV(A.hF.get(),1);if(LEy(A.FD.get())){var N=lM(A.W.get(),B,f,K,Z.clientPlaybackNonce,Z.XL,Z.daiEnabled,Z,V,J);ovw(A,N);LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return N},L)}else LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return lM(A.W.get(),B,f,K,Z.clientPlaybackNonce,Z.XL,Z.daiEnabled,Z,V,J,R)},L)};
|
|
ovw=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){var f=B.value;if(f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.fulfilledLayout)if(B=void 0,f.fulfilledLayout.renderingContent)B=PF(f.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(f.fulfilledLayout.YC){f=g.m(f.fulfilledLayout.YC);for(var K=f.next();!K.done&&(K=K.value,!K.renderingContent||!(B=PF(K.clientMetadata,"metadata_type_player_vars")));K=f.next());}}else B=void 0;if(B){A.h$.get().S.preloadVideoByPlayerVars(B,
|
|
2,300);break}}};
|
|
KEk=function(A,L,B,f,K,V,J){L=fFC(L,V,Number(f.prefetchMilliseconds)||0,J);A=L instanceof n?L:m9(A,f,K,L,B);return A instanceof n?A:[A]};
|
|
VUv=function(A,L,B,f,K){var V=oE(A.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");f=[new hw({getAdBreakUrl:f.getAdBreakUrl,f3:0,hU:0}),new Eg(!0)];A=L.pauseDurationMs?L.lactThresholdMs?{slotId:V,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new vW(A.N,V),slotFulfillmentTriggers:[new yVw(A.N)],slotExpirationTriggers:[new O7(A.N,K),new Yd(A.N,V)],u1:"core",clientMetadata:new q1(f),adSlotLoggingData:B}:new n("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new n("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
|
|
return A instanceof n?A:[A]};
|
|
Jhy=function(A){var L,B;return((L=A.renderer)==null?void 0:(B=L.adBreakServiceRenderer)==null?void 0:B.getAdBreakUrl)!==void 0};
|
|
QQ=function(A,L,B){if(A.beforeContentVideoIdStartedTrigger)A=A.beforeContentVideoIdStartedTrigger?new GA(WF,L,A.id):new n("Not able to create BeforeContentVideoIdStartedTrigger");else{if(A.layoutIdExitedTrigger){var f;L=(f=A.layoutIdExitedTrigger)!=null&&f.triggeringLayoutId?new ty(WF,A.layoutIdExitedTrigger.triggeringLayoutId,A.id):new n("Not able to create LayoutIdExitedTrigger")}else{if(A.layoutExitedForReasonTrigger){var K,V;((K=A.layoutExitedForReasonTrigger)==null?0:K.triggeringLayoutId)&&((V=
|
|
A.layoutExitedForReasonTrigger)==null?0:V.layoutExitReason)?(L=jvQ(A.layoutExitedForReasonTrigger.layoutExitReason),A=L instanceof n?L:new bh(WF,A.layoutExitedForReasonTrigger.triggeringLayoutId,[L],A.id)):A=new n("Not able to create LayoutIdExitedForReasonTrigger")}else{if(A.onLayoutSelfExitRequestedTrigger){var J;L=(J=A.onLayoutSelfExitRequestedTrigger)!=null&&J.triggeringLayoutId?new Xp(WF,A.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,A.id):new n("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(A.onNewPlaybackAfterContentVideoIdTrigger)A=
|
|
A.onNewPlaybackAfterContentVideoIdTrigger?new O7(WF,L,A.id):new n("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(A.skipRequestedTrigger){var R;L=(R=A.skipRequestedTrigger)!=null&&R.triggeringLayoutId?new cW(WF,A.skipRequestedTrigger.triggeringLayoutId,A.id):new n("Not able to create SkipRequestedTrigger")}else if(A.slotIdEnteredTrigger){var Z;L=(Z=A.slotIdEnteredTrigger)!=null&&Z.triggeringSlotId?new Mr(WF,A.slotIdEnteredTrigger.triggeringSlotId,A.id):new n("Not able to create SlotIdEnteredTrigger")}else if(A.slotIdExitedTrigger){var N;
|
|
L=(N=A.slotIdExitedTrigger)!=null&&N.triggeringSlotId?new Yd(WF,A.slotIdExitedTrigger.triggeringSlotId,A.id):new n("Not able to create SkipRequestedTrigger")}else if(A.surveySubmittedTrigger){var F;L=(F=A.surveySubmittedTrigger)!=null&&F.triggeringLayoutId?new PW(WF,A.surveySubmittedTrigger.triggeringLayoutId,A.id):new n("Not able to create SurveySubmittedTrigger")}else{if(A.mediaResumedTrigger)A=A.mediaResumedTrigger&&A.id?new gxw(A.id):new n("Not able to create MediaResumedTrigger");else{if(A.closeRequestedTrigger){var D;
|
|
L=(D=A.closeRequestedTrigger)!=null&&D.triggeringLayoutId?new rf(WF,A.closeRequestedTrigger.triggeringLayoutId,A.id):new n("Not able to create CloseRequestedTrigger")}else if(A.slotIdScheduledTrigger){var I;L=(I=A.slotIdScheduledTrigger)!=null&&I.triggeringSlotId?new vW(WF,A.slotIdScheduledTrigger.triggeringSlotId,A.id):new n("Not able to create SlotIdScheduledTrigger")}else{if(A.mediaTimeRangeTrigger){var d;f=Number((d=A.mediaTimeRangeTrigger)==null?void 0:d.offsetStartMilliseconds);var w;J=Number((w=
|
|
A.mediaTimeRangeTrigger)==null?void 0:w.offsetEndMilliseconds);isFinite(f)&&isFinite(J)?(w=J,w===-1&&(w=B),B=f>w?new n("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:f,offsetEndMs:w},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",w===B&&f-500<=w):new bk(f,w),A=B instanceof n?B:new Qg(WF,L,B,!1,A.id)):A=new n("Not able to create MediaTimeRangeTrigger")}else if(A.contentVideoIdEndedTrigger)A=A.contentVideoIdEndedTrigger?new s7(WF,L,!1,A.id):new n("Not able to create ContentVideoIdEndedTrigger");
|
|
else{if(A.layoutIdEnteredTrigger){var r;L=(r=A.layoutIdEnteredTrigger)!=null&&r.triggeringLayoutId?new hy(WF,A.layoutIdEnteredTrigger.triggeringLayoutId,A.id):new n("Not able to create LayoutIdEnteredTrigger")}else if(A.timeRelativeToLayoutEnterTrigger){var h;L=(h=A.timeRelativeToLayoutEnterTrigger)!=null&&h.triggeringLayoutId?new xd(WF,Number(A.timeRelativeToLayoutEnterTrigger.durationMs),A.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,A.id):new n("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(A.onDifferentLayoutIdEnteredTrigger){var Q;
|
|
L=(Q=A.onDifferentLayoutIdEnteredTrigger)!=null&&Q.triggeringLayoutId&&A.onDifferentLayoutIdEnteredTrigger.slotType&&A.onDifferentLayoutIdEnteredTrigger.layoutType?new ih(WF,A.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,A.onDifferentLayoutIdEnteredTrigger.slotType,A.onDifferentLayoutIdEnteredTrigger.layoutType,A.id):new n("Not able to create CloseRequestedTrigger")}else{if(A.liveStreamBreakStartedTrigger)A=A.liveStreamBreakStartedTrigger&&A.id?new mU(WF,A.id):new n("Not able to create LiveStreamBreakStartedTrigger");
|
|
else if(A.liveStreamBreakEndedTrigger)A=A.liveStreamBreakEndedTrigger&&A.id?new kd(WF,A.id):new n("Not able to create LiveStreamBreakEndedTrigger");else{if(A.liveStreamBreakScheduledDurationMatchedTrigger){var l;L=(l=A.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&l.breakDurationMs?new TA(Number(A.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,A.id):new n("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(A.liveStreamBreakScheduledDurationNotMatchedTrigger){var C;
|
|
L=(C=A.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&C.breakDurationMs?new lh(Number(A.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,A.id):new n("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(A.newSlotScheduledWithBreakDurationTrigger){var O;L=(O=A.newSlotScheduledWithBreakDurationTrigger)!=null&&O.breakDurationMs?new Cp(Number(A.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,A.id):new n("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else L=
|
|
A.prefetchCacheExpiredTrigger?new E7(WF,A.id):new n("Not able to convert an AdsControlflowTrigger.");A=L}L=A}A=L}L=A}A=L}L=A}A=L}L=A}A=L}L=A}A=L}return A};
|
|
CJ=function(A,L){L.N>=2&&(A.slot_pos=L.adPodIndex);A.autoplay="1"};
|
|
R5e=function(A,L,B,f,K,V,J,R){return L===null?new n("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:L,ActionCompanionAdRenderer:f}):[SXD(A,L,J,V,function(Z){var N=Z.slotId;Z=R(Z);var F=f.adLayoutLoggingData,D=new q1([new HT(f),new Xf(K)]);N=OZ(B.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var I={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u1:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Vf:new Map,
|
|
layoutExitNormalTriggers:[new O7(B.N,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:D,Aw:Z(I),adLayoutLoggingData:F}})]};
|
|
ZzC=function(A,L,B,f,K,V,J,R){return L===null?new n("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:L,TopBannerImageTextIconButtonedLayoutViewModel:f}):[SXD(A,L,J,V,function(Z){var N=Z.slotId;Z=R(Z);var F=f.adLayoutLoggingData,D=new q1([new hQ(f),new Xf(K)]);N=OZ(B.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var I={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u1:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
|
|
Vf:new Map,layoutExitNormalTriggers:[new O7(B.N,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:D,Aw:Z(I),adLayoutLoggingData:F}})]};
|
|
dAk=function(A,L,B,f,K,V){if(!V)for(L=g.m(L),V=L.next();!V.done;V=L.next())V=V.value,iM(A,V.renderer,V.config.adPlacementConfig.kind);A=Array.from(A.values()).filter(function(F){return NZ1(F)});
|
|
L=[];V=g.m(A);for(var J=V.next(),R={};!J.done;R={x3:void 0},J=V.next()){R.x3=J.value;J=g.m(R.x3.CI);for(var Z=J.next(),N={};!Z.done;N={hA:void 0},Z=J.next())N.hA=Z.value,Z=function(F,D){return function(I){return F.hA.hx(I,D.x3.instreamVideoAdRenderer.elementId,F.hA.fI)}}(N,R),N.hA.isContentVideoCompanion?L.push(FE6(B,f,K,R.x3.instreamVideoAdRenderer.elementId,N.hA.associatedCompositePlayerBytesLayoutId,N.hA.adSlotLoggingData,Z)):A.length>1?L.push(DAS(B,f,K,R.x3.instreamVideoAdRenderer.elementId,N.hA.adSlotLoggingData,
|
|
function(F,D){return function(I){return F.hA.hx(I,D.x3.instreamVideoAdRenderer.elementId,F.hA.fI,F.hA.associatedCompositePlayerBytesLayoutId)}}(N,R))):L.push(DAS(B,f,K,R.x3.instreamVideoAdRenderer.elementId,N.hA.adSlotLoggingData,Z))}return L};
|
|
iM=function(A,L,B){if(L=IFD(L)){L=g.m(L);for(var f=L.next();!f.done;f=L.next())if((f=f.value)&&f.externalVideoId){var K=$Y(A,f.externalVideoId);K.instreamVideoAdRenderer||(K.instreamVideoAdRenderer=f,K.fd=B)}else Dh("InstreamVideoAdRenderer without externalVideoId")}};
|
|
IFD=function(A){var L=[],B=A.sandwichedLinearAdRenderer&&A.sandwichedLinearAdRenderer.linearAd&&g.y(A.sandwichedLinearAdRenderer.linearAd,SL);if(B)return L.push(B),L;if(A.instreamVideoAdRenderer)return L.push(A.instreamVideoAdRenderer),L;if(A.linearAdSequenceRenderer&&A.linearAdSequenceRenderer.linearAds){A=g.m(A.linearAdSequenceRenderer.linearAds);for(B=A.next();!B.done;B=A.next())B=B.value,g.y(B,SL)&&L.push(g.y(B,SL));return L}return null};
|
|
NZ1=function(A){if(A.instreamVideoAdRenderer===void 0)return Dh("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var L=g.m(A.CI),B=L.next();!B.done;B=L.next()){B=B.value;if(B.hx===void 0)return!1;if(B.fI===void 0)return Dh("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(A.fd===void 0||B.Qd===void 0||A.fd!==B.Qd&&B.Qd!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(A.instreamVideoAdRenderer.elementId===void 0)return Dh("InstreamVideoAdRenderer has no elementId",
|
|
void 0,void 0,{kind:A.fd,"matching APSR kind":B.Qd}),!1}return!0};
|
|
$Y=function(A,L){A.has(L)||A.set(L,{instreamVideoAdRenderer:void 0,fd:void 0,adVideoId:L,CI:[]});return A.get(L)};
|
|
XE=function(A,L,B,f,K,V,J,R,Z){K?$Y(A,K).CI.push({i3n:L,Qd:B,isContentVideoCompanion:f,fI:J,associatedCompositePlayerBytesLayoutId:V,adSlotLoggingData:R,hx:Z}):Dh("Companion AdPlacementSupportedRenderer without adVideoId")};
|
|
O4=function(A){var L=0;A=g.m(A.questions);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B=g.y(B,r9)||g.y(B,s4)){var f=void 0;L+=((f=B.surveyAdQuestionCommon)==null?void 0:f.durationMilliseconds)||0}return L};
|
|
E4=function(A){var L,B,f,K,V=((B=g.y((L=A.questions)==null?void 0:L[0],r9))==null?void 0:B.surveyAdQuestionCommon)||((K=g.y((f=A.questions)==null?void 0:f[0],s4))==null?void 0:K.surveyAdQuestionCommon),J;L=[].concat(g.x7(((J=A.playbackCommands)==null?void 0:J.instreamAdCompleteCommands)||[]),g.x7((V==null?void 0:V.timeoutCommands)||[]));var R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0,B6,Ve;return{impressionCommands:(R=A.playbackCommands)==null?void 0:R.impressionCommands,errorCommands:(Z=A.playbackCommands)==
|
|
null?void 0:Z.errorCommands,muteCommands:(N=A.playbackCommands)==null?void 0:N.muteCommands,unmuteCommands:(F=A.playbackCommands)==null?void 0:F.unmuteCommands,pauseCommands:(D=A.playbackCommands)==null?void 0:D.pauseCommands,rewindCommands:(I=A.playbackCommands)==null?void 0:I.rewindCommands,resumeCommands:(d=A.playbackCommands)==null?void 0:d.resumeCommands,skipCommands:(w=A.playbackCommands)==null?void 0:w.skipCommands,progressCommands:(r=A.playbackCommands)==null?void 0:r.progressCommands,uts:(h=
|
|
A.playbackCommands)==null?void 0:h.clickthroughCommands,fullscreenCommands:(Q=A.playbackCommands)==null?void 0:Q.fullscreenCommands,activeViewViewableCommands:(l=A.playbackCommands)==null?void 0:l.activeViewViewableCommands,activeViewMeasurableCommands:(C=A.playbackCommands)==null?void 0:C.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(O=A.playbackCommands)==null?void 0:O.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(v=A.playbackCommands)==
|
|
null?void 0:(U=v.activeViewTracking)==null?void 0:U.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(a=A.playbackCommands)==null?void 0:(o0=a.activeViewTracking)==null?void 0:o0.activeViewAudioMeasurableCommands,endFullscreenCommands:(B6=A.playbackCommands)==null?void 0:B6.endFullscreenCommands,abandonCommands:(Ve=A.playbackCommands)==null?void 0:Ve.abandonCommands,completeCommands:L}};
|
|
pvC=function(A,L,B,f,K,V,J){return function(R,Z){return wvk(A,Z.slotId,R,V,function(N,F){var D=Z.layoutId;N=J(N);return cy(L,D,F,K,N,"LAYOUT_TYPE_SURVEY",[new ad(B),f],B.adLayoutLoggingData)})}};
|
|
gvD=function(A,L,B,f,K,V,J){if(!yh1(A))return new n("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:A});var R=A.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[jLe(V,L,B,f,function(Z){var N=Z.slotId;Z=J(Z);N=OZ(K.W.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",N);var F={layoutId:N,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",u1:"core"},D=new ty(K.N,f);return{layoutId:N,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Vf:new Map,layoutExitNormalTriggers:[D],
|
|
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new Aw(R)]),Aw:Z(F)}})]};
|
|
yh1=function(A){A=g.y(A==null?void 0:A.additionalPlayerOverlay,G30);if(!A)return!1;var L=A.slidingMessages;return A.title&&L&&L.length!==0?!0:!1};
|
|
sL8=function(A,L,B,f,K){var V;if((V=A.playerOverlay)==null||!V.instreamSurveyAdRenderer)return function(){return[]};
|
|
if(!xD6(A))return function(){return new n("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:A})};
|
|
var J=A.playerOverlay.instreamSurveyAdRenderer,R=O4(J);return R<=0?function(){return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:J})}:function(Z,N){var F=rhQ(Z,B,f,function(D){var I=D.slotId;
|
|
D=N(D);var d=E4(J);I=OZ(K.W.get(),"LAYOUT_TYPE_SURVEY",I);var w={layoutId:I,layoutType:"LAYOUT_TYPE_SURVEY",u1:"core"},r=new ty(K.N,f),h=new cW(K.N,I),Q=new PW(K.N,I),l=new H01(K.N);return{layoutId:I,layoutType:"LAYOUT_TYPE_SURVEY",Vf:new Map,layoutExitNormalTriggers:[r,l],layoutExitSkipTriggers:[h],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[Q],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new u5(J),new Xf(L),new kX(R/1E3),new Qt(d)]),Aw:D(w),adLayoutLoggingData:J.adLayoutLoggingData}});
|
|
Z=gvD(A,B,F.slotId,f,K,Z,N);return Z instanceof n?Z:[F].concat(g.x7(Z))}};
|
|
lFe=function(A,L,B,f,K,V,J,R){J=J===void 0?!1:J;var Z=[];try{var N=[];if(B.renderer.linearAdSequenceRenderer)var F=function(h){h=Hz1(h.slotId,B,L,K(h),f,V,J);N=h.c1r;return h.Ws};
|
|
else if(B.renderer.instreamVideoAdRenderer)F=function(h){var Q=h.slotId;h=K(h);var l=J,C=B.config.adPlacementConfig,O=h5e(C),v=O.Yo,U=O.zi;O=B.renderer.instreamVideoAdRenderer;var a;if(O==null?0:(a=O.playerOverlay)==null?0:a.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var o0=M0(O,l);a=Math.min(v+o0.videoLengthSeconds*1E3,U);l=new gf(0,[o0.videoLengthSeconds]);U=o0.videoLengthSeconds;var B6=o0.playerVars,Ve=o0.instreamAdPlayerOverlayRenderer,DS=
|
|
o0.playerOverlayLayoutRenderer,fw=o0.adVideoId,ry=bzw(B),uL=o0.Vf;o0=o0.nt;var Jf=O==null?void 0:O.adLayoutLoggingData;O=O==null?void 0:O.sodarExtensionData;Q=OZ(L.W.get(),"LAYOUT_TYPE_MEDIA",Q);var MC={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",u1:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",Vf:uL,layoutExitNormalTriggers:[new kd(L.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new Uj(f),
|
|
new Fv(U),new Do(B6),new wU(v),new pk(a),Ve&&new WT(Ve),DS&&new vT(DS),new Xf(C),new YD(fw),new Oj(l),new sg(ry),O&&new IJ(O),new Jw({current:null}),new gU({}),new $X(o0)].filter(tUk)),Aw:h(MC),adLayoutLoggingData:Jf}};
|
|
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var D=k3y(A,f,B.adSlotLoggingData,F,R);Z.push(D);for(var I=g.m(N),d=I.next();!d.done;d=I.next()){var w=d.value,r=w(A,K);if(r instanceof n)return r;Z.push.apply(Z,g.x7(r))}}catch(h){return new n(h,{errorMessage:h.message,AdPlacementRenderer:B,numberOfSurveyRenderers:TZe(B)})}return Z};
|
|
TZe=function(A){A=(A.renderer.linearAdSequenceRenderer||{}).linearAds;return A!=null&&A.length?A.filter(function(L){var B,f;return((B=g.y(L,SL))==null?void 0:(f=B.playerOverlay)==null?void 0:f.instreamSurveyAdRenderer)!=null}).length:0};
|
|
Hz1=function(A,L,B,f,K,V,J){var R=L.config.adPlacementConfig,Z=h5e(R),N=Z.Yo,F=Z.zi;Z=(L.renderer.linearAdSequenceRenderer||{}).linearAds;if(Z==null||!Z.length)throw new TypeError("Expected linear ads");var D=[],I={Fg:N,Ig:0,GHr:D};Z=Z.map(function(w){return mAv(A,w,I,B,f,R,K,F,J)}).map(function(w,r){r=new gf(r,D);
|
|
return w(r)});
|
|
var d=Z.map(function(w){return w.Hs});
|
|
return{Ws:QL1(B,A,N,d,R,bzw(L),f,F,V),c1r:Z.map(function(w){return w.OhT})}};
|
|
mAv=function(A,L,B,f,K,V,J,R,Z){var N=M0(g.y(L,SL),Z),F=B.Fg,D=B.Ig,I=Math.min(F+N.videoLengthSeconds*1E3,R);B.Fg=I;B.Ig++;B.GHr.push(N.videoLengthSeconds);var d,w,r=(d=g.y(L,SL))==null?void 0:(w=d.playerOverlay)==null?void 0:w.instreamSurveyAdRenderer;if(N.adVideoId==="nPpU29QrbiU"&&r==null)throw new TypeError("Survey slate media has no survey overlay");return function(h){CJ(N.playerVars,h);var Q,l,C=N.videoLengthSeconds,O=N.playerVars,v=N.Vf,U=N.nt,a=N.instreamAdPlayerOverlayRenderer,o0=N.playerOverlayLayoutRenderer,
|
|
B6=N.adVideoId,Ve=(Q=g.y(L,SL))==null?void 0:Q.adLayoutLoggingData;Q=(l=g.y(L,SL))==null?void 0:l.sodarExtensionData;l=OZ(f.W.get(),"LAYOUT_TYPE_MEDIA",A);var DS={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",u1:"adapter"};h={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",Vf:v,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"adapter",clientMetadata:new q1([new Uj(J),new Fv(C),new Do(O),new wU(F),new pk(I),
|
|
new j6(D),new Jw({current:null}),a&&new WT(a),o0&&new vT(o0),new Xf(V),new YD(B6),new Oj(h),Q&&new IJ(Q),r&&new iT(r),new gU({}),new $X(U)].filter(tUk)),Aw:K(DS),adLayoutLoggingData:Ve};C=sL8(g.y(L,SL),V,J,h.layoutId,f);return{Hs:h,OhT:C}}};
|
|
var o7k=function(A){return Kw[S[2]](this,16,A)};
|
|
var M0=function(A,L){if(!A)throw new TypeError("Expected instream video ad renderer");if(!A.playerVars)throw new TypeError("Expected player vars in url encoded string");var B=I0(A.playerVars),f=Number(B.length_seconds);if(isNaN(f))throw new TypeError("Expected valid length seconds in player vars");var K=Number(A.trimmedMaxNonSkippableAdDurationMs);f=isNaN(K)?f:Math.min(f,K/1E3);K=A.playerOverlay||{};K=K.instreamAdPlayerOverlayRenderer===void 0?null:K.instreamAdPlayerOverlayRenderer;var V=A.playerOverlay||
|
|
{};V=V.playerOverlayLayoutRenderer===void 0?null:V.playerOverlayLayoutRenderer;var J=B.video_id;J||(J=(J=A.externalVideoId)?J:void 0);if(!J)throw new TypeError("Expected valid video id in IVAR");if(L&&f===0){var R;L=(R=CDy[J])!=null?R:f}else L=f;return{playerVars:B,videoLengthSeconds:L,instreamAdPlayerOverlayRenderer:K,playerOverlayLayoutRenderer:V,adVideoId:J,Vf:A.pings?Fw(A.pings):new Map,nt:NS(A.pings)}},bzw=function(A){A=Number(A.driftRecoveryMs);
|
|
return isNaN(A)||A<=0?null:A},h5e=function(A){var L=A.adTimeOffset||{};
|
|
A=L.offsetEndMilliseconds;L=Number(L.offsetStartMilliseconds);if(isNaN(L))throw new TypeError("Expected valid start offset");A=Number(A);if(isNaN(A))throw new TypeError("Expected valid end offset");return{Yo:L,zi:A}},izv=function(A){var L,B=(L=PF(A.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:L.current;
|
|
if(!B)return null;L=PF(A.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=A.layoutId,K=PF(A.clientMetadata,"metadata_type_content_cpn"),V=PF(A.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J=PF(A.clientMetadata,"metadata_type_player_underlay_renderer"),R=PF(A.clientMetadata,"metadata_type_ad_placement_config"),Z=PF(A.clientMetadata,"metadata_type_video_length_seconds");var N=YX(A.clientMetadata,"metadata_type_layout_enter_ms")&&YX(A.clientMetadata,"metadata_type_layout_exit_ms")?
|
|
(PF(A.clientMetadata,"metadata_type_layout_exit_ms")-PF(A.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{mI:f,contentCpn:K,W3:B,uo:L,instreamAdPlayerOverlayRenderer:V,instreamAdPlayerUnderlayRenderer:J,adPlacementConfig:R,videoLengthSeconds:Z,Cm:N,inPlayerLayoutId:PF(A.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PF(A.clientMetadata,"metadata_type_linked_in_player_slot_id")}},Oz1=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w){f=oE(f,"SLOT_TYPE_PLAYER_BYTES");
|
|
A=$Aw(K,A,J,B,f,Z,N);if(A instanceof n)return A;var r;N=(r=PF(A.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:r.layoutId;if(!N)return new n("Invalid adNotify layout");L=XvQ(N,K,V,B,R,L,Z,F,D,I,d,w,J);return L instanceof n?L:[A].concat(g.x7(L))},XvQ=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){B=Ev0(L,B,f,V,J,R,Z,N,F,D,I);
|
|
if(B instanceof n)return B;A=ch1(L,A,J,K,B);return A instanceof n?A:[].concat(g.x7(A.jE),[A.Se])},YXQ=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){L=Ev0(A,L,B,K,V,R,Z,N,F,D,I,d);
|
|
if(L instanceof n)return L;A=MUC(A,B,V,J,f,R.iC,L);return A instanceof n?A:A.jE.concat(A.Se)},Ev0=function(A,L,B,f,K,V,J,R,Z,N,F,D){var I=YY(f);
|
|
return I instanceof vF?new n(I):N.S.K().experiments.GL("html5_refactor_in_player_slot_generation")?function(d){var w=new gf(0,[I.o7]);d=UAk(L,I.layoutId,I.Ca,B,U4(I.playerVars,I.Wd,V,Z,w),I.o7,K,w,J(d),R.get(I.Ca.externalVideoId),D);w=[];if(I.Ca.playerOverlay.instreamAdPlayerOverlayRenderer){var r=izv(d);if(!r)return Dh("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,d),{layout:d,jE:[]};w=[WEC(A,r.contentCpn,r.mI,function(Q){return Wy(L,Q.slotId,
|
|
"core",r,aJ(F,Q))},r.inPlayerSlotId)].concat(g.x7(w));
|
|
if(r.instreamAdPlayerUnderlayRenderer&&vy(N)){var h=r.instreamAdPlayerUnderlayRenderer;w=[vv1(A,r.contentCpn,r.mI,function(Q){return qXv(L,Q.slotId,h,r.adPlacementConfig,r.mI,aJ(F,Q))})].concat(g.x7(w))}}return{layout:d,
|
|
jE:w}}:function(d){var w=new gf(0,[I.o7]);
|
|
return{layout:UAk(L,I.layoutId,I.Ca,B,U4(I.playerVars,I.Wd,V,Z,w),I.o7,K,w,J(d),R.get(I.Ca.externalVideoId),D),jE:[]}}},YY=function(A){if(!A.playerVars)return new vF("No playerVars available in InstreamVideoAdRenderer.");
|
|
var L,B;if(A.elementId==null||A.playerVars==null||A.playerOverlay==null||((L=A.playerOverlay)==null?void 0:L.instreamAdPlayerOverlayRenderer)==null&&((B=A.playerOverlay)==null?void 0:B.playerOverlayLayoutRenderer)==null||A.pings==null||A.externalVideoId==null)return new vF("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:A});L=I0(A.playerVars);B=Number(L.length_seconds);isNaN(B)&&(B=0,Dh("Expected valid length seconds in player vars but got NaN"));return{layoutId:A.elementId,
|
|
Ca:A,playerVars:L,Wd:A.playerVars,o7:B}},U4=function(A,L,B,f,K){A.iv_load_policy=f;
|
|
L=I0(L);if(L.cta_conversion_urls)try{A.cta_conversion_urls=JSON.parse(L.cta_conversion_urls)}catch(V){Dh(V)}B.bY&&(A.ctrl=B.bY);B.CQ&&(A.ytr=B.CQ);B.Zi&&(A.ytrcc=B.Zi);B.isMdxPlayback&&(A.mdx="1");A.vvt&&(A.vss_credentials_token=A.vvt,B.Zl&&(A.vss_credentials_token_type=B.Zl),B.mdxEnvironment&&(A.mdx_environment=B.mdxEnvironment));CJ(A,K);return A},PDC=function(A){var L=new Map;
|
|
A=g.m(A);for(var B=A.next();!B.done;B=A.next())(B=B.value.renderer.remoteSlotsRenderer)&&B.hostElementId&&L.set(B.hostElementId,B);return L},q0=function(A){return A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"},xA1=function(A){return A!=null},oD8=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w){for(var r=[],h=g.m(A),Q=h.next();!Q.done;Q=h.next())if(Q=Q.value,!O01(Q)&&!WFv(Q)){var l=e50(Q,f,B.XL);
|
|
if(l instanceof n)return l;var C=void 0,O={slotId:Q.adSlotMetadata.slotId,slotType:Q.adSlotMetadata.slotType,slotPhysicalPosition:(C=Q.adSlotMetadata.slotPhysicalPosition)!=null?C:1,u1:"core",slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:l.slotExpirationTriggers},v=g.y(Q.fulfillmentContent.fulfilledLayout,DJ);if(v){if(!FE(v))return new n("Invalid PlayerBytesAdLayoutRenderer");C=D&&!(q0(Q)&&Q.slotEntryTrigger.beforeContentVideoIdStartedTrigger);
|
|
l=l.slotFulfillmentTriggers.some(function(U){return U instanceof TA});
|
|
l=C?nv7(O,Q.adSlotMetadata.triggerEvent,v,B,f,V,A,I,l,d):z57(O,Q.adSlotMetadata.triggerEvent,v,L,B,f,K,V,J,R,Z,N,A,F,Q.adSlotMetadata.triggeringSourceLayoutId);if(l instanceof n)return l;v=[];w?v.push(new N1({current:w})):v.push(new N1({current:null}));q0(Q)&&v.push(new cF({z$:q0(Q)&&!!Q.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));C&&v.push(new gU({}));B.iC&&v.push(new Ck({}));Q=Object.assign({},O,{clientMetadata:new q1(v),fulfilledLayout:l.layout,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});
|
|
r.push.apply(r,g.x7(l.jE));r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,jL)){if(!X87(C))return new n("Invalid PlayerUnderlayAdLayoutRenderer");C=uK1(C,f,B.XL,V,O,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,YCD)){if(!np(C.adLayoutMetadata)||!g.y(C.renderingContent,
|
|
w9))return new n("Invalid InPlayerOrganicOverlayAdLayoutRenderer");C=C.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?aF8(C,f,B.XL,V,O):new n("LayoutType ["+C.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,cVy)){if(!kJC(C))return new n("Invalid AboveFeedAdLayoutRenderer");
|
|
C=AQ1(C,f,B.XL,V,O,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,MGv)){if(!np(C.adLayoutMetadata)||!g.y(C.renderingContent,zA))return new n("Invalid BelowPlayerAdLayoutRenderer");C=AQ1(C,f,B.XL,V,O,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId);
|
|
if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,g9)){if(!IG(C))return new n("Invalid PlayerBytesSequenceItemAdLayoutRenderer");C=L_C(C,f,B.XL,V,O,Q.adSlotMetadata.triggerEvent);if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else return new n("Unable to retrieve a client slot ["+
|
|
O.slotType+"] from a given AdSlotRenderer")}return r},L_C=function(A,L,B,f,K,V){var J={layoutId:A.adLayoutMetadata.layoutId,
|
|
layoutType:A.adLayoutMetadata.layoutType,u1:"core"};L=Py(A,L,B);return L instanceof n?L:(B=g.y(A.renderingContent,d9))&&B.pings?Object.assign({},J,{renderingContent:A.renderingContent,Vf:Fw(B.pings)},L,{Aw:aJ(f,K)(J),clientMetadata:new q1([new Xf(xY(V)),new Qt({progressCommands:B.progressCommands})]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData}):new n("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")},AQ1=function(A,L,B,f,K,V,J){var R={layoutId:A.adLayoutMetadata.layoutId,
|
|
layoutType:A.adLayoutMetadata.layoutType,u1:"core"};L=Py(A,L,B);if(L instanceof n)return L;B=[];B.push(new Xf(xY(V)));V==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&J!==void 0&&B.push(new Lk(J));return Object.assign({},R,{renderingContent:A.renderingContent,Vf:new Map([["impression",B5v(A)]])},L,{Aw:aJ(f,K)(R),clientMetadata:new q1(B),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})},uK1=function(A,L,B,f,K,V,J){if(A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var R=
|
|
g.y(A.renderingContent,pJ),Z=g.y(A.renderingContent,w9);
|
|
J=new Map;if(R){J=g.y(R.sidePanel,i08);if(!J){A=new n("DismissablePanelTextPortraitImageRenderer is missing");break a}J=new Map([["impression",J.impressionPings||[]],["resume",J.resumePings||[]]])}else if(!Z){A=new n("AdsEngagementPanelSectionListViewModel is missing");break a}R={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,u1:"core"};L=Py(A,L,B);A=L instanceof n?L:Object.assign({},R,{renderingContent:A.renderingContent,Vf:J},L,{Aw:aJ(f,K)(R),clientMetadata:new q1([new Xf(xY(V))]),
|
|
adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})}else A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.y(A.renderingContent,Qv1)?(J={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,u1:"core"},L=Py(A,L,B),A=L instanceof n?L:Object.assign({},J,{renderingContent:A.renderingContent,Vf:new Map},L,{Aw:aJ(f,K)(J),clientMetadata:new q1([new Xf(xY(V))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})):A=new n("CounterfactualRenderer is missing"):
|
|
A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?A=new n("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?A=new n("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.y(A.renderingContent,yQ)?(V={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,u1:"core"},L=Py(A,
|
|
L,B),A=L instanceof n?L:J?Object.assign({},V,{renderingContent:A.renderingContent,Vf:new Map},L,{Aw:aJ(f,K)(V),clientMetadata:new q1([new Lk(J)]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData}):new n("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):A=new n("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.y(A.renderingContent,w9)?(V={layoutId:A.adLayoutMetadata.layoutId,
|
|
layoutType:A.adLayoutMetadata.layoutType,u1:"core"},L=Py(A,L,B),A=L instanceof n?L:Object.assign({},V,{renderingContent:A.renderingContent,Vf:new Map([])},L,{Aw:aJ(f,K)(V),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new q1([])})):A=new n("AdsEngagementPanelSectionListViewModel is missing"):A=new n("LayoutType ["+A.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return A},aF8=function(A,L,B,f,K){if(!g.y(A.renderingContent,w9))return new n("AdsEngagementPanelSectionListViewModel is missing");
|
|
var V={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,u1:"core"};L=Py(A,L,B);return L instanceof n?L:Object.assign({},V,{renderingContent:A.renderingContent,Vf:new Map([])},L,{Aw:aJ(f,K)(V),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new q1([])})},nv7=function(A,L,B,f,K,V,J,R,Z,N){if((N==null?void 0:N.f3)===void 0||(N==null?void 0:N.hU)===void 0)return new n("Cached ad break range from cue point is missing");
|
|
var F=Py(B,K,f.XL);if(F instanceof n)return F;F={layoutExitMuteTriggers:[],layoutExitNormalTriggers:F.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.y(B.renderingContent,SL))return A=fsD(A,L,B,F,K,V,J,f.XL,N.f3,N.hU),A instanceof n?A:A.zq===void 0?new n("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:A.layout,jE:[A.zq]};var D=g.y(B.renderingContent,VQ);if(D){if(!np(B.adLayoutMetadata))return new n("Invalid ad layout metadata");
|
|
if(!Je(D))return new n("Invalid sequential layout");D=D.sequentialLayouts.map(function(I){return I.playerBytesAdLayoutRenderer});
|
|
A=K_7(A,L,B,F,D,K,f,V,J,R,N.f3,N.hU,Z);return A instanceof n?A:{layout:A.TC,jE:A.jE}}return new n("Not able to convert a sequential layout")},K_7=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){var d=V8v(K,F,D);
|
|
if(d instanceof n)return d;var w=[],r=[];d=g.m(d);for(var h=d.next();!h.done;h=d.next()){var Q=h.value;h=A;var l=K[Q.Ig],C=Q,O=L;Q=V;var v=J,U=R,a=Z,o0=eL(l);if(o0 instanceof n)h=o0;else{var B6={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,u1:"adapter"};C=JQS(O,l,C,Q);C instanceof n?h=C:(h=Object.assign({},B6,nJ,{Vf:o0,renderingContent:l.renderingContent,clientMetadata:new q1(C),Aw:aJ(U,h)(B6),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData}),h=(l=zl(a,
|
|
h,Q,v.XL,U,void 0,!0))?l instanceof n?l:{layout:h,zq:l}:new n("Expecting associatedInPlayerSlot"))}if(h instanceof n)return h;w.push(h.layout);r.push(h.zq)}K={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,u1:"core"};L=[new sg(Number(B.driftRecoveryMs)),new wU(F),new pk(D),new Xf(xY(L)),new Og(N),new gU({})];I&&L.push(new M1({}));return{TC:Object.assign({},K,f,{YC:w,Vf:new Map,clientMetadata:new q1(L),Aw:aJ(R,A)(K)}),jE:r}},fsD=function(A,L,B,f,K,V,J,R,Z,N){if(!FE(B))return new n("Invalid PlayerBytesAdLayoutRenderer");
|
|
var F=eL(B);if(F instanceof n)return F;var D={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,u1:"core"},I=g.y(B.renderingContent,SL);if(!I)return new n("Invalid rendering content for DAI media layout");I=M0(I,!1);Z={eP:I,Ig:0,Fg:Z,WO:Math.min(Z+I.videoLengthSeconds*1E3,N),G1:new gf(0,[I.videoLengthSeconds])};var d;N=(d=Number(B.driftRecoveryMs))!=null?d:void 0;L=JQS(L,B,Z,K,N);if(L instanceof n)return L;A=Object.assign({},D,f,{Vf:F,renderingContent:B.renderingContent,
|
|
clientMetadata:new q1(L),Aw:aJ(V,A)(D),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData});return(K=zl(J,A,K,R,V,void 0,!0))?K instanceof n?K:{layout:A,zq:K}:new n("Expecting associatedInPlayerSlot")},z57=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w){var r=Py(B,V,K.XL);
|
|
if(r instanceof n)return r;if(g.y(B.renderingContent,SL)){Z=SjE([B],K,Z);if(Z instanceof n)return Z;if(Z.length!==1)return new n("Only expected one media layout.");A=RYD(A,L,B,r,Z[0],void 0,"core",f,V,J,R,N,I,d,K.XL,void 0,w);return A instanceof n?A:{layout:A.layout,jE:A.zq?[A.zq]:[]}}var h=g.y(B.renderingContent,VQ);if(h){if(!np(B.adLayoutMetadata))return new n("Invalid ad layout metadata");if(!Je(h))return new n("Invalid sequential layout");h=h.sequentialLayouts.map(function(Q){return Q.playerBytesAdLayoutRenderer});
|
|
A=ZOS(A,L,B.adLayoutMetadata,r,h,f,V,K,Z,J,R,N,F,D,I,d,w);return A instanceof n?A:{layout:A.TC,jE:A.jE}}return new n("Not able to convert a sequential layout")},ZOS=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h){var Q=new MN({current:null}),l=SjE(K,R,Z);
|
|
if(l instanceof n)return l;Z=[];for(var C=[],O=void 0,v=0;v<K.length;v++){var U=K[v];if(g.y(U.renderingContent,SL)){O=OJ(I)&&EJ(I)?l[v+1]:void 0;O=RYD(A,L,U,nJ,l[v],O,"adapter",V,J,N,F,D,w,r,R.XL,Q,h);if(O instanceof n)return O;Z.push(O.layout);O.zq&&C.push(O.zq);O=l[v]}else if(g.y(U.renderingContent,RG)){var a=A,o0=F;if(FE(U)){var B6=g.y(U.renderingContent,RG);if(B6&&B6.playerVars!==void 0){var Ve={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,u1:"adapter"};B6=I0(B6.playerVars);
|
|
B6.autoplay="1";U=Object.assign({},Ve,nJ,{renderingContent:U.renderingContent,clientMetadata:new q1([new Gb({}),new Xf({kind:"AD_PLACEMENT_KIND_START"}),new Jw({current:null}),new Do(B6)]),Vf:new Map,Aw:aJ(o0,a)(Ve),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData})}else U=new n("Invalid ad intro renderer")}else U=new n("Invalid PlayerBytesAdLayoutRenderer");if(U instanceof n)return U;Z.push(U)}else if(g.y(U.renderingContent,nU))if(r){U=N50(A,U,F,xY(L),O);if(U instanceof n)return U;Z.push(U);
|
|
U=zl(w,U,J,R.XL,F,Q,!1);if(U instanceof n)return U;if(U)C.push(U);else return new n("Not able to retrieve InPlayer slot for endcap")}else{a:{a=U.adLayoutMetadata.layoutId;o0=g.m(V);for(Ve=o0.next();!Ve.done;Ve=o0.next()){Ve=Ve.value;var DS=B6=void 0,fw=((B6=Ve.renderer)==null?void 0:(DS=B6.linearAdSequenceRenderer)==null?void 0:DS.linearAds)||[];B6=g.m(fw);for(DS=B6.next();!DS.done;DS=B6.next())if((DS=g.y(DS.value,nU))&&DS.inPlayerSlotId!==void 0&&DS.inPlayerLayoutId!==void 0&&DS.associatedPlayerBytesLayoutId!==
|
|
void 0&&DS.associatedPlayerBytesLayoutId===a){a={WS:DS,adPlacementConfig:Ve.config.adPlacementConfig};break a}}a=new n("Not able to find associated InPlayer slot for endcap")}if(a instanceof n)return a;U=N50(A,U,F,a.adPlacementConfig,O);if(U instanceof n)return U;Z.push(U);U=F_E(U.layoutId,d,J,a,Q,F);if(U instanceof n)return U;C.push(U)}}L={layoutId:B.layoutId,layoutType:B.layoutType,u1:"core"};return{TC:Object.assign({},L,f,{YC:Z,Vf:new Map,clientMetadata:new q1([Q]),Aw:aJ(F,A)(L)}),jE:C}},RYD=function(A,
|
|
L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h){if(!FE(B))return new n("Invalid PlayerBytesAdLayoutRenderer");
|
|
var Q=eL(B);if(Q instanceof n)return Q;J={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,u1:J};a:{var l=B.adLayoutMetadata.layoutId,C=g.y(B.renderingContent,SL);if(C&&KJ(C)){var O=[];if(d)O.push(new Xf(xY(L)));else{b:{R=g.m(R);for(L=R.next();!L.done;L=R.next()){L=L.value;var v=IFD(L.renderer)||[],U=g.m(v);for(v=U.next();!v.done;v=U.next())if(v=v.value,v.associatedPlayerBytesLayoutId===l){v.associatedPlayerBytesLayoutId?(R=v.playerOverlay,U=R!==void 0&&R.playerOverlayLayoutRenderer!==
|
|
void 0&&R.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&R.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,R=R!==void 0&&R.instreamAdPlayerOverlayRenderer!==void 0&&R.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&R.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||U):R=!1;L=R?{instreamVideoAdRenderer:v,adPlacementConfig:L.config.adPlacementConfig}:new n("Invalid InPlayer shim");break b}}L=new n("Not able to find associated InPlayer slot")}if(L instanceof n){V=L;break a}R=
|
|
L.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;v=L.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var a;U=(a=R==null?void 0:R.inPlayerSlotId)!=null?a:v==null?void 0:v.inPlayerSlotId;var o0;a=(o0=R==null?void 0:R.inPlayerLayoutId)!=null?o0:v==null?void 0:v.inPlayerLayoutId;if(U===void 0){V=new n("InPlayer shim slot id is undefined");break a}if(a===void 0){V=new n("InPlayer shim layout id is undefined");break a}O.push(new BF(a),new Kk(U),new j6(K.G1.adPodIndex),
|
|
new Xf(L.adPlacementConfig));R&&O.push(new WT(R));v&&O.push(new vT(v))}O.push(new Oj(K.G1),new YD(C.externalVideoId),new Uj(Z),new Qt({impressionCommands:C.impressionCommands,abandonCommands:C.onAbandonCommands,completeCommands:C.completeCommands,progressCommands:C.adVideoProgressCommands}),new Do(K.qt),new Jw({current:null}),new Fv(K.DF1.o7),new $X(NS(C.pings)),new Ej(K.G1.adPodIndex));h&&O.push(new Lk(h));(K=DNS(l,I))&&O.push(new PT(K));V&&O.push(new dU(V.qt));C.adNextParams&&O.push(new kD(C.adNextParams));
|
|
C.clickthroughEndpoint&&O.push(new TQ(C.clickthroughEndpoint));C.legacyInfoCardVastExtension&&O.push(new lT(C.legacyInfoCardVastExtension));C.sodarExtensionData&&O.push(new IJ(C.sodarExtensionData));r&&C.adPodSkipTarget&&C.adPodSkipTarget>0&&(O.push(r),O.push(new cT(C.adPodSkipTarget)));(V=N.get(C.externalVideoId))&&O.push(new tw(V));V=O}else V=new n("Invalid vod media renderer")}if(V instanceof n)return V;A=Object.assign({},J,f,{Vf:Q,renderingContent:B.renderingContent,clientMetadata:new q1(V),Aw:aJ(F,
|
|
A)(J),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData});B=g.y(B.renderingContent,SL);if(!B||!KJ(B))return new n("Invalid meida renderer");D=$Y(D,B.externalVideoId);D.instreamVideoAdRenderer=B;D.fd="AD_PLACEMENT_KIND_START";return d?(Z=zl(I,A,Z,w,F,r,!1),Z instanceof n?Z:DNS(A.layoutId,I)&&Z?{layout:Object.assign({},A,{clientMetadata:new q1(V.concat(new xD(Z)))})}:{layout:A,zq:Z}):{layout:A}},N50=function(A,L,B,f,K){if(!FE(L))return new n("Invalid PlayerBytesAdLayoutRenderer");
|
|
var V=g.y(L.renderingContent,nU);if(!V||V.durationMilliseconds===void 0)return new n("Invalid endcap renderer");var J={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,u1:"adapter"};f=[new Tb(V.durationMilliseconds),new Qt({impressionCommands:void 0,abandonCommands:V.abandonCommands?[{commandExecutorCommand:V.abandonCommands}]:void 0,completeCommands:V.completionCommands}),new Xf(f),new fk("LAYOUT_TYPE_ENDCAP")];if(K){f.push(new Ej(K.G1.adPodIndex-1));f.push(new j6(K.G1.adPodIndex));
|
|
var R;f.push(new cT((R=K.adPodSkipTarget)!=null?R:-1))}return Object.assign({},J,nJ,{renderingContent:L.renderingContent,clientMetadata:new q1(f),Vf:V.skipPings?new Map([["skip",V.skipPings]]):new Map,Aw:aJ(B,A)(J),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData})},zl=function(A,L,B,f,K,V,J){A=A.filter(function(D){return D.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&D.adSlotMetadata.triggeringSourceLayoutId===L.layoutId});
|
|
if(A.length!==0){if(A.length!==1)return new n("Invalid InPlayer slot association for the given PlayerBytes layout");var R=A[0],Z=e50(R,B,f);if(Z instanceof n)return Z;var N;A={slotId:R.adSlotMetadata.slotId,slotType:R.adSlotMetadata.slotType,slotPhysicalPosition:(N=R.adSlotMetadata.slotPhysicalPosition)!=null?N:1,u1:"core",slotEntryTrigger:Z.slotEntryTrigger,slotFulfillmentTriggers:Z.slotFulfillmentTriggers,slotExpirationTriggers:Z.slotExpirationTriggers};N=g.y(R.fulfillmentContent.fulfilledLayout,
|
|
Ex1);if(!N||!mDk(N))return new n("Invalid InPlayerAdLayoutRenderer");Z={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,u1:"core"};B=Py(N,B,f);if(B instanceof n)return B;f=[];var F=N.adLayoutMetadata.layoutType;J&&f.push(new gU({}));if(F==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")f.push.apply(f,g.x7(dNk(R.adSlotMetadata.triggerEvent,L))),(V=Isy(B,L.layoutId))&&f.push(new oJ(V));else if(F==="LAYOUT_TYPE_ENDCAP"||F==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){f.push(new Xf(xY(R.adSlotMetadata.triggerEvent)));
|
|
if(F==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new n("Cannot parse endcap layout since AdUxReadyApi is not provided");V&&f.push(V)}else return new n("Not able to parse an SDF InPlayer layout");K=Object.assign({},Z,B,{renderingContent:N.renderingContent,Vf:new Map,Aw:aJ(K,A)(Z),clientMetadata:new q1(f),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},A,{fulfilledLayout:K,clientMetadata:new q1([])})}},dNk=function(A,L){var B=[];
|
|
B.push(new Xf(xY(A)));B.push(new Lk(L.layoutId));(A=PF(L.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&B.push(new Jw(A));(A=PF(L.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&B.push(new MN(A));(A=PF(L.clientMetadata,"metadata_type_remote_slots_data"))&&B.push(new tw(A));(A=PF(L.clientMetadata,"metadata_type_ad_next_params"))&&B.push(new kD(A));(A=PF(L.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&B.push(new TQ(A));(A=PF(L.clientMetadata,"metadata_type_ad_pod_info"))&&
|
|
B.push(new Oj(A));(L=PF(L.clientMetadata,"metadata_type_ad_video_id"))&&B.push(new YD(L));return B},F_E=function(A,L,B,f,K,V){function J(N){return uM(L,N)}
|
|
var R=f.WS.inPlayerSlotId,Z={layoutId:f.WS.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",u1:"core"};B={slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:new hy(J,A),slotFulfillmentTriggers:[new Mr(J,R)],slotExpirationTriggers:[new Yd(J,R),new O7(J,B)]};A=Object.assign({},Z,{layoutExitNormalTriggers:[new ty(J,A)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Vf:new Map,clientMetadata:new q1([new nO(f.WS),
|
|
new Xf(f.adPlacementConfig),K]),Aw:aJ(V,B)(Z),adLayoutLoggingData:f.WS.adLayoutLoggingData});return Object.assign({},B,{clientMetadata:new q1([new HF(A)])})},DNS=function(A,L){L=g.m(L);
|
|
for(var B=L.next();!B.done;B=L.next())if(B=B.value,B.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var f=g.y(B.fulfillmentContent.fulfilledLayout,jL);if(f&&(f=g.y(f.renderingContent,pJ))&&f.associatedPlayerBytesLayoutId===A)return B}},e50=function(A,L,B){var f=QQ(A.slotEntryTrigger,L,B);
|
|
if(f instanceof n)return f;for(var K=[],V=g.m(A.slotFulfillmentTriggers),J=V.next();!J.done;J=V.next()){J=QQ(J.value,L,B);if(J instanceof n)return J;K.push(J)}V=[];A=g.m(A.slotExpirationTriggers);for(J=A.next();!J.done;J=A.next()){J=QQ(J.value,L,B);if(J instanceof n)return J;V.push(J)}return{slotEntryTrigger:f,slotFulfillmentTriggers:K,slotExpirationTriggers:V}},Py=function(A,L,B){for(var f=[],K=g.m(A.layoutExitNormalTriggers||[]),V=K.next();!V.done;V=K.next()){V=QQ(V.value,L,B);
|
|
if(V instanceof n)return V;f.push(V)}K=[];V=g.m(A.layoutExitSkipTriggers||[]);for(var J=V.next();!J.done;J=V.next()){J=QQ(J.value,L,B);if(J instanceof n)return J;K.push(J)}V=[];J=g.m(A.layoutExitMuteTriggers||[]);for(var R=J.next();!R.done;R=J.next()){R=QQ(R.value,L,B);if(R instanceof n)return R;V.push(R)}J=[];A=g.m(A.layoutExitUserInputSubmittedTriggers||[]);for(R=A.next();!R.done;R=A.next()){R=QQ(R.value,L,B);if(R instanceof n)return R;J.push(R)}return{layoutExitNormalTriggers:f,layoutExitSkipTriggers:K,
|
|
layoutExitMuteTriggers:V,layoutExitUserInputSubmittedTriggers:J,layoutExitUserCancelledTriggers:[]}},eL=function(A){var L=g.y(A.renderingContent,SL);
|
|
if(L==null?0:L.pings)return Fw(L.pings);A=g.y(A.renderingContent,nU);return(A==null?0:A.skipPings)?new Map([["skip",A.skipPings]]):new Map},JQS=function(A,L,B,f,K){L=g.y(L.renderingContent,SL);
|
|
if(!L)return new n("Invalid rendering content for DAI media layout");A=[new Uj(f),new Fv(B.eP.videoLengthSeconds),new Do(B.eP.playerVars),new wU(B.Fg),new pk(B.WO),new j6(B.Ig),new Xf(xY(A)),new YD(B.eP.adVideoId),new Oj(B.G1),L.sodarExtensionData&&new IJ(L.sodarExtensionData),new Jw({current:null}),new gU({}),new $X(NS(L.pings))].filter(xA1);K!==void 0&&A.push(new sg(K));return A},V8v=function(A,L,B){A=A.map(function(Z){return M0(g.y(Z.renderingContent,SL),!1)});
|
|
var f=A.map(function(Z){return Z.videoLengthSeconds}),K=f.map(function(Z,N){return new gf(N,f)}),V=L,J=B,R=[];
|
|
A.forEach(function(Z,N){J=Math.min(V+Z.videoLengthSeconds*1E3,B);CJ(Z.playerVars,K[N]);R.push({eP:Z,Fg:V,WO:J,Ig:N,G1:K[N]});V=J});
|
|
return R},SjE=function(A,L,B){for(var f=[],K=g.m(A),V=K.next();!V.done;V=K.next())if(V=g.y(V.value.renderingContent,SL)){if(!KJ(V))return new n("Invalid vod media renderer");
|
|
f.push(wTL(V))}K=f.map(function(D){return D.o7});
|
|
V=[];for(var J=0,R=0;R<A.length;R++){var Z=g.y(A[R].renderingContent,SL);if(Z){var N=new gf(J,K),F=U4(f[J].playerVars,f[J].Wd,L,B,N);V[R]={G1:N,adPodSkipTarget:Z.adPodSkipTarget,DF1:f[J],qt:F};J++}}return V},wTL=function(A){var L=I0(A.playerVars),B=Number(L.length_seconds);
|
|
isNaN(B)&&(B=0,Dh("Expected valid length seconds in player vars but got NaN"));return{playerVars:L,Wd:A.playerVars,o7:B}},xY=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"}}},B5v=function(A){if(g.y(A.renderingContent,a2)){var L;
|
|
return((L=g.y(A.renderingContent,a2))==null?void 0:L.impressionPings)||[]}if(g.y(A.renderingContent,zA)){var B;return((B=g.y(A.renderingContent,zA))==null?void 0:B.impressionPings)||[]}if(g.y(A.renderingContent,uh)){var f;return((f=g.y(A.renderingContent,uh))==null?void 0:f.impressionPings)||[]}return[]},Isy=function(A,L){var B;
|
|
return(B=A.layoutExitNormalTriggers.find(function(f){return f instanceof ty&&(f==null?void 0:f.triggeringLayoutId)!==L}))==null?void 0:B.triggeringLayoutId},yQS=function(A,L,B,f,K,V,J,R,Z){var N=B.pings;
|
|
return N?[pTk(A,V,R,K,function(F){var D=F.slotId;F=Z(F);var I=B.adLayoutLoggingData,d=B.progressCommands;D=OZ(L.W.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",D);var w={layoutId:D,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",u1:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Vf:Fw(N),layoutExitNormalTriggers:[new O7(L.N,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",
|
|
clientMetadata:new q1([new Xf(f),new $X(NS(N)),new Xv(pbQ(N)),new Fv(J/1E3),new Qt({progressCommands:d}),new kX(J/1E3)]),Aw:F(w),adLayoutLoggingData:I}})]:new n("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:B})},gDL=function(A,L,B,f,K,V,J,R){A=jdL(A,B,V,J,f,function(Z){var N=Z.slotId;
|
|
Z=R(Z);N=OZ(L.W.get(),"LAYOUT_TYPE_FORECASTING",N);var F={layoutId:N,layoutType:"LAYOUT_TYPE_FORECASTING",u1:"core"},D=new Map,I=K.impressionUrls;I&&D.set("impression",I);return{layoutId:N,layoutType:"LAYOUT_TYPE_FORECASTING",Vf:D,layoutExitNormalTriggers:[new Xp(L.N,N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new rU(K),new Xf(B)]),Aw:Z(F)}});
|
|
return A instanceof n?A:[A]},rQE=function(A,L,B,f,K,V,J){return[GQ8(A,V,f,function(R){var Z=R.slotId;
|
|
R=J(R);Z=OZ(L.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Z);var N={layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",u1:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Vf:new Map,layoutExitNormalTriggers:[new O7(L.N,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new WT(K),new Xf(B)]),Aw:R(N),adLayoutLoggingData:K.adLayoutLoggingData}})]},
|
|
HOy=function(A,L,B,f,K,V,J,R){A=sd1(A,B,V,J,f,function(Z,N){var F=Z.slotId;
|
|
Z=R(Z);var D=K.contentSupportedRenderer;D?D.textOverlayAdContentRenderer?(D=OZ(L.W.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",F),N=aG(L,D,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",K,B,Z,An(L,N,F))):D.enhancedTextOverlayAdContentRenderer?(D=OZ(L.W.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",F),N=aG(L,D,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",K,B,Z,An(L,N,F))):D.imageOverlayAdContentRenderer?(D=OZ(L.W.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",F),N=An(L,N,F),N.push(new xd(L.N,45E3,D)),N=aG(L,D,
|
|
"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",K,B,Z,N)):N=new vF("InvideoOverlayAdRenderer without appropriate sub renderer"):N=new vF("InvideoOverlayAdRenderer without contentSupportedRenderer");return N});
|
|
return A instanceof n?A:[A]},t8k=function(A,L,B,f,K,V,J,R,Z){var N=Number(f.durationMilliseconds);
|
|
return isNaN(N)?new n("Expected valid duration for AdActionInterstitialRenderer."):function(F){return hY6(L,F.slotId,B,N,{impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands},f.skipPings?new Map([["skip",f.skipPings]]):new Map,J(F),function(D){return bO0(A,D,K,function(I,d){var w=I.slotId;I=J(I);w=OZ(L.W.get(),"LAYOUT_TYPE_ENDCAP",w);return cy(L,w,d,B,I,"LAYOUT_TYPE_ENDCAP",[new nO(f),R],f.adLayoutLoggingData)})},
|
|
Z,V-1,f.adLayoutLoggingData,V)}},kQD=function(A,L,B,f){if(!B.playerVars)return new n("No playerVars available in AdIntroRenderer.");
|
|
var K=I0(B.playerVars);K.autoplay="1";return function(V){var J=V.slotId;V=f(V);J=OZ(A.W.get(),"LAYOUT_TYPE_MEDIA",J);var R={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",u1:"adapter"};return{d1:{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",Vf:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"adapter",clientMetadata:new q1([new Gb({}),new Xf(L),new Jw({current:null}),new Do(K)]),Aw:V(R)},hO:[new bh(A.N,
|
|
J,["error"])],HF:[],cG:[],O$:[]}}},lsw=function(A,L,B,f,K,V,J,R,Z,N){N=N===void 0?!1:N;
|
|
var F=O4(K);if(!PJQ(K,N))return new n("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:K});if(F<=0)return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:K});var D=pvC(A,L,K,V,B,f,J);return D instanceof n?D:function(I){return T5e(L,I.slotId,B,F,E4(K),J(I),D,R,Z)}},mNy=function(A,L,B,f,K,V,J,R){function Z(D){return bO0(A,D,f,N)}
|
|
function N(D,I){var d=D.slotId;D=J(D);d=OZ(L.W.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",d);return cy(L,d,I,B,D,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new zQ(K),V],K.adLayoutLoggingData)}
|
|
if(!za1(K))return new n("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:K});var F=K.timeoutSeconds*1E3;return function(D){var I=D.slotId,d={impressionCommands:K.impressionCommands,completeCommands:K.timeoutCommands,skipCommands:K.dismissCommands};D=J(D);I=LS(L,I,B,F,d,new Map,D,Z);d=new BF(I.gw);D=new Ej(R);return{d1:{layoutId:I.layoutId,layoutType:I.layoutType,Vf:I.Vf,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
|
|
layoutExitUserCancelledTriggers:[],u1:I.u1,clientMetadata:new q1([].concat(g.x7(I.KJ),[d,D])),Aw:I.Aw,adLayoutLoggingData:I.adLayoutLoggingData},hO:[],HF:I.layoutExitMuteTriggers,cG:I.layoutExitUserInputSubmittedTriggers,O$:I.layoutExitUserCancelledTriggers,zq:I.zq}}},C5y=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r){A=oE(A,"SLOT_TYPE_PLAYER_BYTES");
|
|
f=$Aw(L,J,f,K,A,N,F);if(f instanceof n)return f;var h;J=(h=PF(f.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:h.layoutId;if(!J)return new n("Invalid adNotify layout");L=Qdv(J,L,B,K,V,Z,R,N,D,I,d,w,r);return L instanceof n?L:[f].concat(g.x7(L))},Qdv=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){B=iOS(L,B,f,V,J,R,Z,N,F,D,I);
|
|
$Ne(V)?(f=XT7(L,A),A=oE(L.W.get(),"SLOT_TYPE_IN_PLAYER"),V=OZ(L.W.get(),"LAYOUT_TYPE_SURVEY",A),R=oU(L,f,R),L=[].concat(g.x7(R.slotExpirationTriggers),[new rf(L.N,V)]),A=B({slotId:R.slotId,slotType:R.slotType,slotPhysicalPosition:R.slotPhysicalPosition,slotEntryTrigger:R.slotEntryTrigger,slotFulfillmentTriggers:R.slotFulfillmentTriggers,slotExpirationTriggers:L,u1:R.u1},{slotId:A,layoutId:V}),K=A instanceof n?A:{Se:Object.assign({},R,{slotExpirationTriggers:L,clientMetadata:new q1([new HF(A.layout)]),
|
|
adSlotLoggingData:K}),jE:A.jE}):K=ch1(L,A,R,K,B);return K instanceof n?K:[].concat(g.x7(K.jE),[K.Se])},EDe=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){L=iOS(A,L,B,K,V,J,Z,N,F,D,I,d);
|
|
$Ne(K)?(K=OOw(A,B,J,R),K instanceof n?A=K:(R=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER"),Z=OZ(A.W.get(),"LAYOUT_TYPE_SURVEY",R),J=[].concat(g.x7(K.slotExpirationTriggers),[new rf(A.N,Z)]),R=L({slotId:K.slotId,slotType:K.slotType,slotPhysicalPosition:K.slotPhysicalPosition,u1:K.u1,slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers,slotExpirationTriggers:J},{slotId:R,layoutId:Z}),A=R instanceof n?R:{Se:{slotId:K.slotId,slotType:K.slotType,slotPhysicalPosition:K.slotPhysicalPosition,
|
|
slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers,slotExpirationTriggers:J,u1:K.u1,clientMetadata:new q1([new HF(R.layout),new cF({z$:A.z$(B)})]),adSlotLoggingData:f},jE:R.jE})):A=MUC(A,B,J,R,f,Z.iC,L);return A instanceof n?A:A.jE.concat(A.Se)},$Ne=function(A){A=g.m(A);
|
|
for(var L=A.next();!L.done;L=A.next())if(g.y(L.value,ZJ))return!0;return!1},iOS=function(A,L,B,f,K,V,J,R,Z,N,F,D){return function(I,d){if(OJ(F)&&EJ(F))a:{var w=cQk(f);
|
|
if(w instanceof n)d=w;else{for(var r=0,h=[],Q=[],l=[],C=[],O=[],v=[],U=new S6({current:null}),a=new MN({current:null}),o0=!1,B6=[],Ve=0,DS=[],fw=0;fw<f.length;fw++){var ry=f[fw],uL=g.y(ry,SL);if(uL){uL=YY(uL);if(uL instanceof vF){d=new n(uL);break a}var Jf=new gf(Ve,w),MC=U4(uL.playerVars,uL.Wd,J,N,Jf);Ve++;DS[fw]={renderer:ry,data:uL,G1:Jf,qt:MC}}}Ve=-1;for(w=0;w<f.length;w++)if(fw=f[w],ry=g.y(fw,RG)){fw=kQD(L,B,ry,R);if(fw instanceof n){d=fw;break a}fw=fw(I);h.push(fw.d1);Q=[].concat(g.x7(fw.hO),
|
|
g.x7(Q));l=[].concat(g.x7(fw.HF),g.x7(l));fw.zq&&(B6=[fw.zq].concat(g.x7(B6)))}else if(g.y(fw,SL))ry=DS[w],Ve=ry.data,fw=ry.G1,ry=ry.qt,uL=DS[w+1],Jf=void 0,uL&&(Jf=uL.qt),fw=M8D(L,Ve.layoutId,Ve.Ca,B,ry,Ve.o7,V,fw,R(I),a,Z.get(Ve.Ca.externalVideoId),Jf,D),r++,h.push(fw.d1),Q=[].concat(g.x7(fw.hO),g.x7(Q)),l=[].concat(g.x7(fw.HF),g.x7(l)),o0||(v.push(a),o0=!0),Ve=(Ve=Ve.Ca.adPodSkipTarget)&&Ve>0?Ve:-1;else if(ry=g.y(fw,nU)){fw=t8k(A,L,B,ry,V,r,R,a,Ve);if(fw instanceof n){d=fw;break a}fw=fw(I);h.push(fw.d1);
|
|
Q=[].concat(g.x7(fw.hO),g.x7(Q));l=[].concat(g.x7(fw.HF),g.x7(l));fw.zq&&(B6=[fw.zq].concat(g.x7(B6)))}else if(ry=g.y(fw,ZJ)){if(d===void 0){d=new n("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:ry});break a}fw=lsw(A,L,B,V,ry,U,R,d,r,XW(F,"supports_multi_step_on_desktop"));if(fw instanceof n){d=fw;break a}fw=fw(I);h.push(fw.d1);fw.zq&&B6.push(fw.zq);Q=[].concat(g.x7(fw.hO),g.x7(Q));l=[].concat(g.x7(fw.HF),g.x7(l));C=[].concat(g.x7(fw.cG),g.x7(C));
|
|
O=[].concat(g.x7(fw.O$),g.x7(O));v=[U].concat(g.x7(v))}else if(fw=g.y(fw,N0)){fw=mNy(A,L,B,V,fw,U,R,r);if(fw instanceof n){d=fw;break a}fw=fw(I);h.push(fw.d1);fw.zq&&B6.push(fw.zq);l=[].concat(g.x7(fw.HF),g.x7(l))}else{d=new n("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}d={YC:h,layoutExitSkipTriggers:Q,layoutExitUserInputSubmittedTriggers:C,layoutExitUserCancelledTriggers:O,layoutExitMuteTriggers:l,KJ:v,jE:B6}}}else a:if(r=cQk(f),r instanceof n)d=r;else{h=0;Q=[];l=[];C=[];O=
|
|
[];v=[];U=[];a=new S6({current:null});o0=new MN({current:null});B6=!1;DS=[];Ve=-1;w=g.m(f);for(fw=w.next();!fw.done;fw=w.next())if(fw=fw.value,g.y(fw,RG)){fw=kQD(L,B,g.y(fw,RG),R);if(fw instanceof n){d=fw;break a}fw=fw(I);Q.push(fw.d1);l=[].concat(g.x7(fw.hO),g.x7(l));C=[].concat(g.x7(fw.HF),g.x7(C));fw.zq&&(DS=[fw.zq].concat(g.x7(DS)))}else if(g.y(fw,SL)){Ve=YY(g.y(fw,SL));if(Ve instanceof vF){d=new n(Ve);break a}fw=new gf(h,r);fw=M8D(L,Ve.layoutId,Ve.Ca,B,U4(Ve.playerVars,Ve.Wd,J,N,fw),Ve.o7,V,
|
|
fw,R(I),o0,Z.get(Ve.Ca.externalVideoId),void 0,D);h++;Q.push(fw.d1);l=[].concat(g.x7(fw.hO),g.x7(l));C=[].concat(g.x7(fw.HF),g.x7(C));B6||(U.push(o0),B6=!0);Ve=(Ve=Ve.Ca.adPodSkipTarget)&&Ve>0?Ve:-1}else if(g.y(fw,nU)){fw=t8k(A,L,B,g.y(fw,nU),V,h,R,o0,Ve);if(fw instanceof n){d=fw;break a}fw=fw(I);Q.push(fw.d1);l=[].concat(g.x7(fw.hO),g.x7(l));C=[].concat(g.x7(fw.HF),g.x7(C));fw.zq&&(DS=[fw.zq].concat(g.x7(DS)))}else if(g.y(fw,ZJ)){if(d===void 0){d=new n("Composite Survey must already have a Survey Bundle with required metadata.",
|
|
{instreamSurveyAdRenderer:g.y(fw,ZJ)});break a}fw=lsw(A,L,B,V,g.y(fw,ZJ),a,R,d,h,XW(F,"supports_multi_step_on_desktop"));if(fw instanceof n){d=fw;break a}fw=fw(I);Q.push(fw.d1);fw.zq&&DS.push(fw.zq);l=[].concat(g.x7(fw.hO),g.x7(l));C=[].concat(g.x7(fw.HF),g.x7(C));O=[].concat(g.x7(fw.cG),g.x7(O));v=[].concat(g.x7(fw.O$),g.x7(v));U=[a].concat(g.x7(U))}else if(g.y(fw,N0)){fw=mNy(A,L,B,V,g.y(fw,N0),a,R,h);if(fw instanceof n){d=fw;break a}fw=fw(I);Q.push(fw.d1);fw.zq&&DS.push(fw.zq);C=[].concat(g.x7(fw.HF),
|
|
g.x7(C))}else{d=new n("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}d={YC:Q,layoutExitSkipTriggers:l,layoutExitUserInputSubmittedTriggers:O,layoutExitUserCancelledTriggers:v,layoutExitMuteTriggers:C,KJ:U,jE:DS}}d instanceof n?I=d:(v=I.slotId,r=d.YC,h=d.layoutExitSkipTriggers,Q=d.layoutExitMuteTriggers,l=d.layoutExitUserInputSubmittedTriggers,C=d.KJ,I=R(I),O=K?K.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",v=K?K.layoutId:OZ(L.W.get(),O,v),U={layoutId:v,layoutType:O,u1:"core"},
|
|
I={layout:{layoutId:v,layoutType:O,Vf:new Map,layoutExitNormalTriggers:[new Xp(L.N,v)],layoutExitSkipTriggers:h,layoutExitMuteTriggers:Q,layoutExitUserInputSubmittedTriggers:l,layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new RJ(r)].concat(g.x7(C))),Aw:I(U)},jE:d.jE});return I}},cQk=function(A){var L=[];
|
|
A=g.m(A);for(var B=A.next();!B.done;B=A.next())if(B=B.value,g.y(B,SL)){B=YY(g.y(B,SL));if(B instanceof vF)return new n(B);L.push(B.o7)}return L},UNk=function(A,L,B,f,K,V,J,R){if(!PJQ(B,R===void 0?!1:R))return new n("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:B});
|
|
var Z=O4(B);if(Z<=0)return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:B});var N=new S6({current:null}),F=pvC(A,L,B,N,f,V,J);return Yj6(A,f,V,Z,K,function(D,I){var d=D.slotId,w=E4(B);D=J(D);d=OZ(L.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",d);var r={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",u1:"core"},h=F(d,I),Q=PF(h.clientMetadata,"metadata_type_fulfilled_layout");Q||Dh("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");
|
|
w=[new Xf(f),new Tb(Z),new Qt(w),N];Q&&w.push(new fk(Q.layoutType));return{XzD:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Vf:new Map,layoutExitNormalTriggers:[new Xp(L.N,d)],layoutExitSkipTriggers:[new cW(L.N,I.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new PW(L.N,I.layoutId)],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1(w),Aw:D(r)},nsL:h}})},W_0=function(A){if(!nxC(A))return!1;
|
|
var L=g.y(A.adVideoStart,B_);return L?g.y(A.linearAd,SL)&&By(L)?!0:(Dh("Invalid Sandwich with notify"),!1):!1},vDS=function(A){if(A.linearAds==null)return!1;
|
|
A=g.y(A.adStart,B_);return A?By(A)?!0:(Dh("Invalid LASR with notify"),!1):!1},qjk=function(A){if(!eaE(A))return!1;
|
|
A=g.y(A.adStart,B_);return A?By(A)?!0:(Dh("Invalid LASR with notify"),!1):!1},fS=function(A,L,B,f,K,V,J,R,Z,N){this.U=A;
|
|
this.W=L;this.N=B;this.FD=f;this.Le=K;this.V=V;this.Mp=J;this.gh=R;this.zP=Z;this.loadPolicy=N===void 0?1:N},lM=function(A,L,B,f,K,V,J,R,Z,N,F){var D=[];
|
|
if(L.length===0&&f.length===0&&B.length===0)return D;L=L.filter(fJ);var I=B.filter(UD7),d=f.filter(fJ),w=new Map,r=PDC(L),h=B.some(function(MC){var nw;return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),Q=B.some(function(MC){var nw;
|
|
return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),l=B.some(function(MC){var nw;
|
|
return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_IN_PLAYER"}),C=B.some(function(MC){var nw,Xk;
|
|
return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(MC==null?void 0:(Xk=MC.adSlotMetadata)==null?void 0:Xk.slotType)==="SLOT_TYPE_ABOVE_FEED"}),O=B.some(function(MC){var nw;
|
|
return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"});
|
|
B=B.some(function(MC){var nw;return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"});
|
|
if(h||Q||l||C||O||B)N=oD8(I,L,R,K,r,A.Le.get(),A.loadPolicy,w,A.FD.get(),A.U.get(),l,J,Z,N,F),N instanceof n?Dh(N,void 0,void 0,{contentCpn:K}):D.push.apply(D,g.x7(N));N=g.m(L);for(B=N.next();!B.done;B=N.next())B=B.value,Q=P5L(A,w,B,K,V,J,h,R,r,Z,I,A.FD.get().S.K().experiments.GL("html5_enable_triggering_cuepoint_for_slot")?F:void 0),Q instanceof n?Dh(Q,void 0,void 0,{renderer:B.renderer,config:B.config.adPlacementConfig,kind:B.config.adPlacementConfig.kind,contentCpn:K,daiEnabled:J}):D.push.apply(D,
|
|
g.x7(Q));xNw(A.FD.get())||(V=eYC(A,d,K,R,r,w),D.push.apply(D,g.x7(V)));if(A.V===null||J&&!R.Fh){var v,U,a;A=R.iC&&L.length===1&&((v=L[0].config)==null?void 0:(U=v.adPlacementConfig)==null?void 0:U.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((a=L[0].renderer)==null?void 0:a.adBreakServiceRenderer);if(!D.length&&!A){var o0,B6,Ve,DS;Dh("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":L.length,contentCpn:K,"first APR kind":(o0=L[0])==null?void 0:
|
|
(B6=o0.config)==null?void 0:(Ve=B6.adPlacementConfig)==null?void 0:Ve.kind,renderer:(DS=L[0])==null?void 0:DS.renderer})}return D}v=f.filter(fJ);D.push.apply(D,g.x7(dAk(w,v,A.W.get(),A.V,K,h)));if(!D.length){var fw,ry,uL,Jf;Dh("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":L.length,contentCpn:K,daiEnabled:J.toString(),"first APR kind":(fw=L[0])==null?void 0:(ry=fw.config)==null?void 0:(uL=ry.adPlacementConfig)==null?void 0:uL.kind,renderer:(Jf=L[0])==
|
|
null?void 0:Jf.renderer})}return D},eYC=function(A,L,B,f,K,V){function J(I){return aJ(A.Le.get(),I)}
|
|
var R=[];L=g.m(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=Z.renderer,F=N.sandwichedLinearAdRenderer,D=N.linearAdSequenceRenderer;F&&W_0(F)?(Dh("Found AdNotify with SandwichedLinearAdRenderer"),D=g.y(F.adVideoStart,B_),F=g.y(F.linearAd,SL),iM(V,N,Z.config.adPlacementConfig.kind),N=void 0,D=XvQ((N=D)==null?void 0:N.layout.layoutId,A.W.get(),A.N.get(),Z.config.adPlacementConfig,Z.adSlotLoggingData,F,B,f,J,K,A.loadPolicy,A.FD.get(),A.Le.get()),D instanceof n?Dh(D):R.push.apply(R,g.x7(D))):
|
|
D&&(!D.adLayoutMetadata&&vDS(D)||D.adLayoutMetadata&&qjk(D))&&(Dh("Found AdNotify with LinearAdSequenceRenderer"),iM(V,N,Z.config.adPlacementConfig.kind),N=void 0,F=Qdv((N=g.y(D.adStart,B_))==null?void 0:N.layout.layoutId,A.W.get(),A.N.get(),Z.config.adPlacementConfig,Z.adSlotLoggingData,D.linearAds,np(D.adLayoutMetadata)?D.adLayoutMetadata:void 0,B,f,J,K,A.loadPolicy,A.FD.get()),F instanceof n?Dh(F):R.push.apply(R,g.x7(F)))}return R},P5L=function(A,L,B,f,K,V,J,R,Z,N,F,D){function I(l){return aJ(A.Le.get(),
|
|
l)}
|
|
var d=B.renderer,w=B.config.adPlacementConfig,r=w.kind,h=B.adSlotLoggingData,Q=R.Fh&&r==="AD_PLACEMENT_KIND_START";Q=V&&!Q;if(d.adsEngagementPanelRenderer!=null)return XE(L,B.elementId,r,d.adsEngagementPanelRenderer.isContentVideoEngagementPanel,d.adsEngagementPanelRenderer.adVideoId,d.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.adsEngagementPanelRenderer;l=aJ(A.Le.get(),l);return KS(U,a,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
|
|
new b5(o0),C,O,o0.impressionPings,l,d.adsEngagementPanelRenderer.adLayoutLoggingData,v)}),[];
|
|
if(d.adsEngagementPanelLayoutViewModel)return XE(L,B.elementId,r,d.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,d.adsEngagementPanelLayoutViewModel.adVideoId,d.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.adsEngagementPanelLayoutViewModel;l=aJ(A.Le.get(),l);return Vx(U,a,"LAYOUT_TYPE_PANEL",new tQ(o0),C,O,l,d.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,v)}),[];
|
|
if(d.actionCompanionAdRenderer!=null){if(d.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return R5e(A.W.get(),A.V,A.N.get(),d.actionCompanionAdRenderer,w,h,f,I);XE(L,B.elementId,r,d.actionCompanionAdRenderer.isContentVideoCompanion,d.actionCompanionAdRenderer.adVideoId,d.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.actionCompanionAdRenderer;l=aJ(A.Le.get(),l);return KS(U,a,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
|
|
new HT(o0),C,O,o0.impressionPings,l,d.actionCompanionAdRenderer.adLayoutLoggingData,v)})}else if(d.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(d.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return ZzC(A.W.get(),A.V,A.N.get(),d.topBannerImageTextIconButtonedLayoutViewModel,w,h,f,I);
|
|
XE(L,B.elementId,r,d.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,d.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,d.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.topBannerImageTextIconButtonedLayoutViewModel;l=aJ(A.Le.get(),l);return Vx(U,a,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new hQ(o0),C,O,l,d.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,v)})}else if(d.imageCompanionAdRenderer)XE(L,
|
|
B.elementId,r,d.imageCompanionAdRenderer.isContentVideoCompanion,d.imageCompanionAdRenderer.adVideoId,d.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.imageCompanionAdRenderer;
|
|
l=aJ(A.Le.get(),l);return KS(U,a,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new m_(o0),C,O,o0.impressionPings,l,d.imageCompanionAdRenderer.adLayoutLoggingData,v)});
|
|
else if(d.bannerImageLayoutViewModel)XE(L,B.elementId,r,d.bannerImageLayoutViewModel.isContentVideoCompanion,d.bannerImageLayoutViewModel.adVideoId,d.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.bannerImageLayoutViewModel;l=aJ(A.Le.get(),l);return Vx(U,a,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new QS(o0),C,O,l,d.bannerImageLayoutViewModel.adLayoutLoggingData,v)});
|
|
else if(d.shoppingCompanionCarouselRenderer)XE(L,B.elementId,r,d.shoppingCompanionCarouselRenderer.isContentVideoCompanion,d.shoppingCompanionCarouselRenderer.adVideoId,d.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.shoppingCompanionCarouselRenderer;l=aJ(A.Le.get(),l);return KS(U,a,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new CO(o0),C,O,o0.impressionPings,l,d.shoppingCompanionCarouselRenderer.adLayoutLoggingData,v)});
|
|
else if(d.adBreakServiceRenderer){if(!Jhy(B))return[];if(r==="AD_PLACEMENT_KIND_PAUSE")return VUv(A.W.get(),w,h,B.renderer.adBreakServiceRenderer,f);if(r!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&r!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return KEk(A.W.get(),w,h,B.renderer.adBreakServiceRenderer,f,K,V);R.iC||Dh("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:r,adPlacementConfig:w,daiEnabledForContentVideo:String(V),isServedFromLiveInfra:String(R.iC),clientPlaybackNonce:R.clientPlaybackNonce});
|
|
if(r==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!A.Mp)return new n("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!A.zP)return new n("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");A.zP.IB({adPlacementRenderer:B,contentCpn:f,XL:K});K=A.Mp.get().getCurrentTimeSec(1,!1);return nDe(A.W.get(),B.renderer.adBreakServiceRenderer,w,K,f,h,V)}if(!A.gh)return new n("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
|
|
A.gh.IB({adPlacementRenderer:B,contentCpn:f,XL:K})}else{if(d.clientForecastingAdRenderer)return gDL(A.W.get(),A.N.get(),w,h,d.clientForecastingAdRenderer,f,K,I);if(d.invideoOverlayAdRenderer)return HOy(A.W.get(),A.N.get(),w,h,d.invideoOverlayAdRenderer,f,K,I);if(d.instreamAdPlayerOverlayRenderer)return rQE(A.W.get(),A.N.get(),w,h,d.instreamAdPlayerOverlayRenderer,f,I);if((d.linearAdSequenceRenderer||d.instreamVideoAdRenderer)&&Q)return lFe(A.W.get(),A.N.get(),B,f,I,N,!A.FD.get().S.K().J("html5_override_ad_video_length_killswitch"),
|
|
D);if(d.linearAdSequenceRenderer&&!Q){if(J)return[];iM(L,d,r);if(d.linearAdSequenceRenderer.adLayoutMetadata){if(!eaE(d.linearAdSequenceRenderer))return new n("Received invalid LinearAdSequenceRenderer.")}else if(d.linearAdSequenceRenderer.linearAds==null)return new n("Received invalid LinearAdSequenceRenderer.");if(g.y(d.linearAdSequenceRenderer.adStart,B_)){Dh("Found AdNotify in LinearAdSequenceRenderer");B=g.y(d.linearAdSequenceRenderer.adStart,B_);if(!TXQ(B))return new n("Invalid AdMessageRenderer.");
|
|
V=d.linearAdSequenceRenderer.linearAds;return C5y(A.U.get(),A.W.get(),A.N.get(),A.Le.get(),w,h,B,np(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,V,f,K,R,I,Z,A.loadPolicy,A.FD.get())}return EDe(A.W.get(),A.N.get(),w,h,d.linearAdSequenceRenderer.linearAds,np(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,K,R,I,Z,A.loadPolicy,A.FD.get(),F)}if(!d.remoteSlotsRenderer||V){if(d.instreamVideoAdRenderer&&
|
|
!Q){if(J)return[];iM(L,d,r);return YXQ(A.W.get(),A.N.get(),w,h,d.instreamVideoAdRenderer,f,K,R,I,Z,A.loadPolicy,A.FD.get(),A.Le.get(),F)}if(d.instreamSurveyAdRenderer)return UNk(A.W.get(),A.N.get(),d.instreamSurveyAdRenderer,w,h,f,I,XW(A.FD.get(),"supports_multi_step_on_desktop"));if(d.sandwichedLinearAdRenderer!=null)return nxC(d.sandwichedLinearAdRenderer)?g.y(d.sandwichedLinearAdRenderer.adVideoStart,B_)?(Dh("Found AdNotify in SandwichedLinearAdRenderer"),B=g.y(d.sandwichedLinearAdRenderer.adVideoStart,
|
|
B_),TXQ(B)?(V=g.y(d.sandwichedLinearAdRenderer.linearAd,SL))?Oz1(B,V,w,A.U.get(),A.W.get(),A.N.get(),A.Le.get(),h,f,K,R,I,Z,A.loadPolicy,A.FD.get()):new n("Missing IVAR from Sandwich"):new n("Invalid AdMessageRenderer.")):EDe(A.W.get(),A.N.get(),w,h,[d.sandwichedLinearAdRenderer.adVideoStart,d.sandwichedLinearAdRenderer.linearAd],void 0,f,K,R,I,Z,A.loadPolicy,A.FD.get()):new n("Received invalid SandwichedLinearAdRenderer.");if(d.videoAdTrackingRenderer!=null)return yQS(A.W.get(),A.N.get(),d.videoAdTrackingRenderer,
|
|
w,h,f,K,R.zt,I)}}return[]},Jn=function(A,L,B,f,K,V,J,R){g.Y.call(this);
|
|
var Z=this;this.W=A;this.V=L;this.hf=f;this.Mp=K;this.FD=V;this.j4=J;this.sE=R;this.N=null;B.get().addListener(this);this.addOnDisposeCallback(function(){B.TL()||B.get().removeListener(Z)});
|
|
f.get().addListener(this);this.addOnDisposeCallback(function(){f.TL()||f.get().removeListener(Z)})},Zy=function(A,L,B){var f=A.Mp.get().getCurrentTimeSec(1,!1);
|
|
A.FD.get().S.K().hw()&&Ay(A.j4.get(),"sdai","onopp.1;evt."+B.event+";start."+B.startSecs.toFixed(3)+";d."+B.Dj.toFixed(3));LU(A.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var K=A.V.get(),V=L.adPlacementRenderer.renderer.adBreakServiceRenderer,J=L.contentCpn,R=L.adPlacementRenderer.adSlotLoggingData;SM(A.FD.get());var Z=A.j4;var N=K.FD.get();N=g.Am(N.S.K().experiments,"max_prefetch_window_sec_for_livestream_optimization");var F=K.FD.get();var D=g.Am(F.S.K().experiments,"min_prefetch_offset_sec_for_livestream_optimization");
|
|
F=B.startSecs*1E3;F={R7:new bk(F,F+B.Dj*1E3),FS:!1,cueProcessedMs:f*1E3};var I=B.startSecs+B.Dj;if(f===0)F.Vz=new bk(0,I*1E3);else{D=B.startSecs-D;var d=D-f;F.Vz=d<=0?new bk(D*1E3,I*1E3):new bk(Math.floor(f+Math.random()*Math.min(d,N))*1E3,I*1E3)}V=m9(K,V,J,F,R,[new Zo(B)]);RU(K.FD.get())&&Ay(Z.get(),"abrsm","cpi."+B.identifier+";cps."+B.startSecs+";cpd."+B.Dj+";cts."+f+";rbf."+F.Vz.start);Z.get().S.TJ(B.startSecs-f,F.Vz.start/1E3-f);return[V]})},NF=function(A){var L,B=(L=PF(A.clientMetadata,"metadata_type_player_bytes_callback_ref"))==
|
|
null?void 0:L.current;
|
|
if(!B)return null;L=PF(A.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=A.layoutId,K=PF(A.clientMetadata,"metadata_type_content_cpn"),V=PF(A.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J=PF(A.clientMetadata,"metadata_type_player_overlay_layout_renderer"),R=PF(A.clientMetadata,"metadata_type_player_underlay_renderer"),Z=PF(A.clientMetadata,"metadata_type_ad_placement_config"),N=PF(A.clientMetadata,"metadata_type_video_length_seconds");var F=YX(A.clientMetadata,
|
|
"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?PF(A.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):YX(A.clientMetadata,"metadata_type_layout_enter_ms")&&YX(A.clientMetadata,"metadata_type_layout_exit_ms")?(PF(A.clientMetadata,"metadata_type_layout_exit_ms")-PF(A.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{mI:f,contentCpn:K,W3:B,uo:L,instreamAdPlayerOverlayRenderer:V,playerOverlayLayoutRenderer:J,instreamAdPlayerUnderlayRenderer:R,adPlacementConfig:Z,videoLengthSeconds:N,
|
|
Cm:F,inPlayerLayoutId:PF(A.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PF(A.clientMetadata,"metadata_type_linked_in_player_slot_id")}},ufQ=function(A,L){return zY1(A,L)},as6=function(A,L){L=zY1(A,L);
|
|
if(!L)return null;var B;L.Cm=(B=PF(A.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:B.adBreakRemainingLengthSeconds;return L},zY1=function(A,L){var B,f=(B=PF(A.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:B.current;
|
|
if(!f)return null;B=qFC(A,L);return{W7:vfw(A,L),adPlacementConfig:PF(A.clientMetadata,"metadata_type_ad_placement_config"),Io:B,contentCpn:PF(A.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:PF(A.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PF(A.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:PF(A.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,
|
|
Cm:void 0,W3:f,mI:A.layoutId,videoLengthSeconds:PF(A.clientMetadata,"metadata_type_video_length_seconds")}},F8=function(A,L,B,f,K,V,J,R,Z){g.Y.call(this);
|
|
this.U=A;this.T=L;this.D=B;this.V=f;this.N=K;this.W=V;this.Le=J;this.FD=R;this.hF=Z;this.wh=!0},AwE=function(A,L,B){return vv1(A.N.get(),L.contentCpn,L.mI,function(f){return qXv(A.W.get(),f.slotId,B,L.adPlacementConfig,L.mI,aJ(A.Le.get(),f))})},Dy=function(A,L,B,f,K,V,J){g.Y.call(this);
|
|
this.W=A;this.N=L;this.V=B;this.U=f;this.hF=K;this.Mp=V;this.j$=J},d3=function(A){g.Y.call(this);
|
|
this.N=A},LU=function(A,L,B,f){A.N().O6(L,f);
|
|
B=B();A=A.N();A.fY.N("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",L,f,B);L=g.m(B);for(B=L.next();!B.done;B=L.next())a:{f=A;B=B.value;ji(f.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",B);ji(f.fY,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",B);try{var K=f.N;if(g.us(B.slotId))throw new n("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(R6(K,B))throw new n("Duplicate registration for slot.",{slotId:B.slotId,slotEntryTriggerType:B.slotEntryTrigger.triggerType},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");
|
|
if(!K.TH.N2.has(B.slotType))throw new n("No fulfillment adapter factory registered for slot of type: "+B.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!K.TH.xD.has(B.slotType))throw new n("No SlotAdapterFactory registered for slot of type: "+B.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");bY(K,"TRIGGER_CATEGORY_SLOT_ENTRY",B.slotEntryTrigger?[B.slotEntryTrigger]:[]);bY(K,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",B.slotFulfillmentTriggers);bY(K,
|
|
"TRIGGER_CATEGORY_SLOT_EXPIRATION",B.slotExpirationTriggers);var V=f.N,J=B.slotType+"_"+B.slotPhysicalPosition,R=Gi(V,J);if(R6(V,B))throw new n("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");R.set(B.slotId,new c08(B));V.N.set(J,R)}catch(o0){o0 instanceof n&&o0.Qq?(Ky(f.fY,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",o0.Qq,B),Dh(o0,B,void 0,void 0,o0.jT)):(Ky(f.fY,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",B),Dh(o0,B));
|
|
break a}R6(f.N,B).T=!0;try{var Z=f.N,N=R6(Z,B),F=B.slotEntryTrigger,D=Z.TH.UI.get(F.triggerType);D&&(D.fQ("TRIGGER_CATEGORY_SLOT_ENTRY",F,B,null),N.Vj.set(F.triggerId,D));for(var I=g.m(B.slotFulfillmentTriggers),d=I.next();!d.done;d=I.next()){var w=d.value,r=Z.TH.UI.get(w.triggerType);r&&(r.fQ("TRIGGER_CATEGORY_SLOT_FULFILLMENT",w,B,null),N.Wn.set(w.triggerId,r))}for(var h=g.m(B.slotExpirationTriggers),Q=h.next();!Q.done;Q=h.next()){var l=Q.value,C=Z.TH.UI.get(l.triggerType);C&&(C.fQ("TRIGGER_CATEGORY_SLOT_EXPIRATION",
|
|
l,B,null),N.yj.set(l.triggerId,C))}var O=Z.TH.N2.get(B.slotType).get().build(Z.V,B);N.X=O;var v=Z.TH.xD.get(B.slotType).get().build(Z.D,B);v.init();N.W=v}catch(o0){o0 instanceof n&&o0.Qq?(Ky(f.fY,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",o0.Qq,B),Dh(o0,B,void 0,void 0,o0.jT)):(Ky(f.fY,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",B),Dh(o0,B));VL(f,B,!0);break a}ji(f.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",B);f.N.cV(B);for(var U=g.m(f.W),a=U.next();!a.done;a=
|
|
U.next())a.value.cV(B);DB(f,B)}},IU=function(A,L,B,f,K){g.Y.call(this);
|
|
var V=this;this.W=A;this.V=L;this.FA=B;this.context=K;this.N=new Map;f.get().addListener(this);this.addOnDisposeCallback(function(){f.TL()||f.get().removeListener(V)})},a87=function(A,L){var B=0x8000000000000,f=0,K=0x8000000000000;
|
|
var V=g.m(L.slotFulfillmentTriggers);for(var J=V.next();!J.done;J=V.next())if(J=J.value,J instanceof Qg){var R=J.N.start;B=Math.min(B,R);f=Math.max(f,J.N.end);J.visible&&(K=Math.min(K,R))}else Dh("Found unexpected fulfillment trigger for throttled slot.",L,null,{fulfillmentTrigger:J});V=B;K=K<0x8000000000000&&B<K?K:void 0;B="throttledadcuerange:"+L.slotId;A.N.set(B,L);L=XW(A.context.FD.get(),"use_cue_range_marker_position")?K:void 0;A.FA.get().addCueRange(B,V,f,!1,A,void 0,void 0,void 0,L)},w3=function(){g.Y.apply(this,
|
|
arguments);
|
|
this.wh=!0;this.F5=new Map;this.N=new Map},pS=function(A,L){A=g.m(A.F5.values());
|
|
for(var B=A.next();!B.done;B=A.next())if(B.value.layoutId===L)return!0;return!1},yx=function(A,L){A=g.m(A.N.values());
|
|
for(var B=A.next();!B.done;B=A.next()){B=g.m(B.value);for(var f=B.next();!f.done;f=B.next())if(f=f.value,f.layoutId===L)return f}Dh("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.us(L)),layoutId:L})},Lw6=function(A,L){this.callback=A;
|
|
this.slot=L},jM=function(){},oXk=function(A,L,B){this.callback=A;
|
|
this.slot=L;this.Mp=B},BUy=function(A,L,B){this.callback=A;
|
|
this.slot=L;this.Mp=B;this.W=!1;this.N=0},fo1=function(A,L,B){this.callback=A;
|
|
this.slot=L;this.Mp=B},g3=function(A){this.Mp=A},G0=function(A){g.Y.call(this);
|
|
this.Ua=A;this.nY=new Map},r3=function(A,L){for(var B=[],f=g.m(A.nY.values()),K=f.next();!K.done;K=f.next()){K=K.value;
|
|
var V=K.trigger;V instanceof PW&&V.triggeringLayoutId===L&&B.push(K)}B.length?py(A.Ua(),B):Dh("Survey is submitted but no registered triggers can be activated.")},sM=function(A,L,B){G0.call(this,A);
|
|
var f=this;this.FD=B;L.get().addListener(this);this.addOnDisposeCallback(function(){L.TL()||L.get().removeListener(f)})},H_=function(A){g.Y.call(this);
|
|
this.N=A;this.wh=!0;this.nY=new Map;this.D=new Set;this.V=new Set;this.U=new Set;this.T=new Set;this.W=new Set},hn=function(A){g.Y.call(this);
|
|
this.N=A;this.nY=new Map},b4=function(A,L){for(var B=[],f=g.m(A.nY.values()),K=f.next();!K.done;K=f.next())K=K.value,K.trigger.N===L.layoutId&&B.push(K);
|
|
B.length&&py(A.N(),B)},tn=function(A,L,B){g.Y.call(this);
|
|
var f=this;this.N=A;this.context=B;this.nY=new Map;L.get().addListener(this);this.addOnDisposeCallback(function(){L.TL()||L.get().removeListener(f)})},kh=function(A,L,B,f){g.Y.call(this);
|
|
var K=this;this.W=A;this.FA=L;this.Mp=B;this.hF=f;this.wh=!0;this.nY=new Map;this.N=new Set;B.get().addListener(this);this.addOnDisposeCallback(function(){B.TL()||B.get().removeListener(K)})},KwD=function(A,L,B,f,K,V,J,R,Z,N){if(BV(A.hF.get(),1).clientPlaybackNonce!==Z)throw new n("Cannot register CueRange-based trigger for different content CPN",{trigger:B});
|
|
A.nY.set(B.triggerId,{rj:new e$(L,B,f,K),cueRangeId:V});A.FA.get().addCueRange(V,J,R,N,A)},V6y=function(A,L){A=g.m(A.nY.entries());
|
|
for(var B=A.next();!B.done;B=A.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;if(L===f.cueRangeId)return B}return""},T0=function(A,L){g.Y.call(this);
|
|
var B=this;this.U=A;this.W=new Map;this.V=new Map;this.N=null;L.get().addListener(this);this.addOnDisposeCallback(function(){L.TL()||L.get().removeListener(B)});
|
|
var f;this.N=((f=L.get().oV)==null?void 0:f.slotId)||null},JwC=function(A,L){var B=[];
|
|
A=g.m(A.values());for(var f=A.next();!f.done;f=A.next())f=f.value,f.slot.slotId===L&&B.push(f);return B},l4=function(A){g.Y.call(this);
|
|
this.N=A;this.wh=!0;this.nY=new Map},xF=function(A,L){L=L.layoutId;
|
|
for(var B=[],f=g.m(A.nY.values()),K=f.next();!K.done;K=f.next())if(K=K.value,K.trigger instanceof Xp){var V;if(V=K.trigger.layoutId===L)V=(V=QWQ.get(K.category))?V==="normal":!1;V&&B.push(K)}B.length&&py(A.N(),B)},mW=function(A){g.Y.call(this);
|
|
this.N=A;this.wh=!0;this.nY=new Map},Qx=function(A,L,B,f,K,V){g.Y.call(this);
|
|
var J=this;this.T=A;this.hf=L;this.Mp=B;this.j4=f;this.gh=V;this.N=null;this.U=!1;this.wh=!0;this.nY=new Map;L.get().addListener(this);this.addOnDisposeCallback(function(){L.TL()||L.get().removeListener(J)});
|
|
K.get().addListener(this);this.addOnDisposeCallback(function(){K.TL()||K.get().removeListener(J)})},Zk8=function(A){Ay(A.j4.get(),"ads_ce","bdc."+Sg7(A).length+";fi."+!!A.N+";fet."+!!A.W);
|
|
A.N&&(A.U=!0,A.W&&(A.W.stop(),A.W.start()),RLw(A,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))},RLw=function(A,L){for(var B=[],f=g.m(A.nY.values()),K=f.next();!K.done;K=f.next())K=K.value,K.trigger.triggerType===L&&B.push(K);
|
|
B.length>0&&py(A.T(),B)},CS=function(A,L,B,f,K){for(var V=[],J=g.m(A.nY.values()),R=J.next();!R.done;R=J.next()){var Z=R=R.value,N=Z.trigger;
|
|
Z=Z.slot;if(N.triggerType===L){if(N instanceof TA||N instanceof lh||N instanceof Cp){if(K&&N.breakDurationMs!==B)continue;if(!K&&N.breakDurationMs===B)continue;if(f.has(Z.slotId))continue}V.push(R)}}V.length>0&&py(A.T(),V)},NUE=function(A,L){L=(L.Dj+1)*1E3;
|
|
var B=void 0;A=g.m(A.nY.values());for(var f=A.next();!f.done;f=A.next()){var K=f.value;f=K.trigger;K=K.slot;f instanceof TA&&f.breakDurationMs<=L&&(!B||f.breakDurationMs>B.trigger.breakDurationMs)&&(B={slot:K,trigger:f})}return B},FwE=function(A){A=A.adPlacementRenderer.config.adPlacementConfig;
|
|
if(!A.prefetchModeConfig||!A.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;A=Number(A.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(A)||A<=0?0:Math.floor(Math.random()*A)},D1w=function(A){A=A.adPlacementRenderer.config.adPlacementConfig;
|
|
if(A.prefetchModeConfig&&A.prefetchModeConfig.cacheFetchRefreshDurationMs&&(A=Number(A.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(A)||A<=0)))return A},i4=function(A){A.N=null;
|
|
A.nY.clear();A.W&&A.W.stop();A.D&&A.D.stop();var L;(L=A.V)==null||L.stop();delete A.V},Sg7=function(A){var L=[];
|
|
A=g.m(A.nY.values());for(var B=A.next();!B.done;B=A.next())B=B.value.trigger,B instanceof TA&&L.push(B.breakDurationMs);return L},$h=function(A){g.Y.call(this);
|
|
this.V=A;this.wh=!0;this.nY=new Map;this.N=new Map;this.W=new Map},d17=function(A,L){var B=[];
|
|
if(L=A.N.get(L.layoutId)){L=g.m(L);for(var f=L.next();!f.done;f=L.next())(f=A.W.get(f.value.triggerId))&&B.push(f)}return B},X8=function(){g.Y.call(this);
|
|
this.nY=new Map},QV=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"}},Io8=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"}},wF6=function(A,L){var B={slotId:oE(L,"SLOT_TYPE_IN_PLAYER"),
|
|
slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],u1:"surface",clientMetadata:new q1([])},f=Object,K=f.assign;L=OZ(L,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",B.slotId);L={layoutId:L,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Vf:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"surface",clientMetadata:new q1([]),
|
|
Aw:sW8(!1,B.slotId,B.slotType,B.slotPhysicalPosition,B.u1,B.slotEntryTrigger,B.slotFulfillmentTriggers,B.slotExpirationTriggers,L,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return K.call(f,{},A,{srs:!0,slot:B,layout:L})},fFC=function(A,L,B,f){var K=A.kind;
|
|
f=f?!1:!A.hideCueRangeMarker;switch(K){case "AD_PLACEMENT_KIND_START":return f={R7:new bk(-0x8000000000000,-0x8000000000000),FS:f},B!=null&&(f.Vz=new bk(-0x8000000000000,-0x8000000000000)),f;case "AD_PLACEMENT_KIND_END":return f={R7:new bk(0x7ffffffffffff,0x8000000000000),FS:f},B!=null&&(f.Vz=new bk(Math.max(0,L-B),0x8000000000000)),f;case "AD_PLACEMENT_KIND_MILLISECONDS":K=A.adTimeOffset;K.offsetStartMilliseconds||Dh("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");K.offsetEndMilliseconds||
|
|
Dh("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");A=Number(K.offsetStartMilliseconds);K=Number(K.offsetEndMilliseconds);K===-1&&(K=L);if(Number.isNaN(A)||Number.isNaN(K)||A>K)return new n("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:A,offsetEndMs:K},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",K===L&&A-500<=K);f={R7:new bk(A,K),FS:f};if(B!=null){A=Math.max(0,A-B);if(A===K)return f;f.Vz=new bk(A,K)}return f;default:return new n("AdPlacementKind not supported in convertToRange.",
|
|
{kind:K,adPlacementConfig:A})}},pF1=function(A){if(!A||!A.adPlacements&&!A.adSlots)return!1;
|
|
for(var L=g.m(A.adPlacements||[]),B=L.next();!B.done;B=L.next())if(B=B.value)if(B=B.adPlacementRenderer,B!=null&&(B.config&&B.config.adPlacementConfig&&B.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;A=g.m(A.adSlots||[]);for(L=A.next();!L.done;L=A.next()){var f=B=void 0;if(((B=g.y(L.value,Gl))==null?void 0:(f=B.adSlotMetadata)==null?void 0:f.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1},OM=function(A){this.FD=A;
|
|
this.W=new Map;this.N=new Map;this.V=new Map},oE=function(A,L){if(EM(A.FD.get())){var B=A.W.get(L)||0;
|
|
B++;A.W.set(L,B);return L+"_"+B}return g.y0(16)},OZ=function(A,L,B){if(EM(A.FD.get())){var f=A.N.get(L)||0;
|
|
f++;A.N.set(L,f);return B+"_"+L+"_"+f}return g.y0(16)},uM=function(A,L){if(EM(A.FD.get())){var B=A.V.get(L)||0;
|
|
B++;A.V.set(L,B);return L+"_"+B}return g.y0(16)},ywv=function(A){var L=[new Lk(A.mI),
|
|
new Vt(A.W3),new Xf(A.adPlacementConfig),new Fv(A.videoLengthSeconds),new kX(A.Cm)];A.instreamAdPlayerOverlayRenderer&&L.push(new WT(A.instreamAdPlayerOverlayRenderer));A.playerOverlayLayoutRenderer&&L.push(new vT(A.playerOverlayLayoutRenderer));A.uo&&L.push(new MN(A.uo));return L},jJ6=function(A,L,B,f,K,V){A=B.inPlayerLayoutId?B.inPlayerLayoutId:OZ(V,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",A);
|
|
var J,R,Z=B.instreamAdPlayerOverlayRenderer?(J=B.instreamAdPlayerOverlayRenderer)==null?void 0:J.adLayoutLoggingData:(R=B.playerOverlayLayoutRenderer)==null?void 0:R.adLayoutLoggingData;J={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",u1:L};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Vf:new Map,layoutExitNormalTriggers:[new ty(function(N){return uM(V,N)},B.mI)],
|
|
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:L,clientMetadata:f,Aw:K(J),adLayoutLoggingData:Z}},c_=function(A){var L=this;
|
|
this.W=A;this.N=function(B){return uM(L.W.get(),B)}},qXv=function(A,L,B,f,K,V){B=new q1([new qN(B),
|
|
new Xf(f)]);L=OZ(A.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",L);f={layoutId:L,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",u1:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Vf:new Map,layoutExitNormalTriggers:[new ty(function(J){return uM(A.W.get(),J)},K)],
|
|
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:B,Aw:V(f),adLayoutLoggingData:void 0}},Wy=function(A,L,B,f,K){var V=ywv(f);
|
|
return jJ6(L,B,f,new q1(V),K,A.W.get())},gXE=function(A,L,B,f,K){var V=ywv(f);
|
|
V.push(new i5(f.W7));V.push(new $D(f.Io));return jJ6(L,B,f,new q1(V),K,A.W.get())},KS=function(A,L,B,f,K,V,J,R,Z,N){L=OZ(A.W.get(),B,L);
|
|
var F={layoutId:L,layoutType:B,u1:"core"},D=new Map;J&&D.set("impression",J);J=[new ih(A.N,K,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];N&&J.push(new bh(A.N,N,["normal"]));return{layoutId:L,layoutType:B,Vf:D,layoutExitNormalTriggers:J,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([f,new Xf(V),new Lk(K)]),Aw:R(F),adLayoutLoggingData:Z}},Vx=function(A,L,B,f,K,V,J,R,Z){L=OZ(A.W.get(),
|
|
B,L);
|
|
var N={layoutId:L,layoutType:B,u1:"core"},F=[new ih(A.N,K,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Z&&F.push(new bh(A.N,Z,["normal"]));return{layoutId:L,layoutType:B,Vf:new Map,layoutExitNormalTriggers:F,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([f,new Xf(V),new Lk(K)]),Aw:J(N),adLayoutLoggingData:R}},An=function(A,L,B){var f=[];
|
|
f.push(new $d(A.N,B));L&&f.push(L);return f},aG=function(A,L,B,f,K,V,J){var R={layoutId:L,
|
|
layoutType:B,u1:"core"};return{layoutId:L,layoutType:B,Vf:new Map,layoutExitNormalTriggers:J,layoutExitSkipTriggers:[new rf(A.N,L)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new l5(f),new Xf(K)]),Aw:V(R),adLayoutLoggingData:f.adLayoutLoggingData}},cy=function(A,L,B,f,K,V,J,R){var Z={layoutId:L,
|
|
layoutType:V,u1:"core"};return{layoutId:L,layoutType:V,Vf:new Map,layoutExitNormalTriggers:[new ty(A.N,B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new Xf(f)].concat(g.x7(J))),Aw:K(Z),adLayoutLoggingData:R}},hY6=function(A,L,B,f,K,V,J,R,Z,N,F,D){A=LS(A,L,B,f,K,V,J,R,F,D);
|
|
L=A.KJ;B=new BF(A.gw);f=A.layoutExitSkipTriggers;Z>0&&(L.push(B),L.push(new cT(Z)),f=[]);L.push(new Ej(N));return{d1:{layoutId:A.layoutId,layoutType:A.layoutType,Vf:A.Vf,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:A.u1,clientMetadata:new q1(L),Aw:A.Aw,adLayoutLoggingData:A.adLayoutLoggingData},hO:f,HF:A.layoutExitMuteTriggers,cG:A.layoutExitUserInputSubmittedTriggers,O$:A.layoutExitUserCancelledTriggers,
|
|
zq:A.zq}},T5e=function(A,L,B,f,K,V,J,R,Z){L=LS(A,L,B,f,K,new Map,V,function(N){return J(N,R)});
|
|
A=new PW(A.N,L.gw);B=new BF(L.gw);Z=new Ej(Z);return{d1:{layoutId:L.layoutId,layoutType:L.layoutType,Vf:L.Vf,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:L.u1,clientMetadata:new q1([].concat(g.x7(L.KJ),[B,Z])),Aw:L.Aw,adLayoutLoggingData:L.adLayoutLoggingData},hO:L.layoutExitSkipTriggers,HF:L.layoutExitMuteTriggers,cG:[].concat(g.x7(L.layoutExitUserInputSubmittedTriggers),[A]),O$:L.layoutExitUserCancelledTriggers,
|
|
zq:L.zq}},LS=function(A,L,B,f,K,V,J,R,Z,N){L=OZ(A.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",L);
|
|
var F={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",u1:"adapter"};R=R(L);var D=PF(R.clientMetadata,"metadata_type_fulfilled_layout");D||Dh("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var I=D?D.layoutId:"";B=[new Xf(B),new Tb(f),new Qt(K)];D&&B.push(new fk(D.layoutType));N&&B.push(new j6(N));return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Vf:V,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new cW(A.N,I)],layoutExitMuteTriggers:[],
|
|
layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"adapter",KJ:B,Aw:J(F),adLayoutLoggingData:Z,zq:R,gw:I}},UAk=function(A,L,B,f,K,V,J,R,Z,N,F){A=Gb1(A,L,"core",B,f,K,V,J,R,Z,N,void 0,F);
|
|
return{layoutId:A.layoutId,layoutType:A.layoutType,Vf:A.Vf,layoutExitNormalTriggers:A.layoutExitNormalTriggers,layoutExitSkipTriggers:A.layoutExitSkipTriggers,layoutExitMuteTriggers:A.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:A.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:A.layoutExitUserCancelledTriggers,u1:A.u1,clientMetadata:new q1(A.vD),Aw:A.Aw,adLayoutLoggingData:A.adLayoutLoggingData}};
|
|
var NyS=function(){return pw[S[2]](this,1)};
|
|
M8D=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){L=Gb1(A,L,"adapter",B,f,K,V,J,R,Z,F,D,I);f=L.layoutExitSkipTriggers;K=L.vD;B.adPodSkipTarget&&B.adPodSkipTarget>0&&(K.push(N),K.push(new cT(B.adPodSkipTarget)),f=[]);K.push(new Ej(R.adPodIndex));B.isCritical&&(f=[new bh(A.N,L.layoutId,["error"])].concat(g.x7(f)));return{d1:{layoutId:L.layoutId,layoutType:L.layoutType,Vf:L.Vf,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
|
|
u1:L.u1,clientMetadata:new q1(K),Aw:L.Aw,adLayoutLoggingData:L.adLayoutLoggingData},hO:f,HF:L.layoutExitMuteTriggers,cG:L.layoutExitUserInputSubmittedTriggers,O$:L.layoutExitUserCancelledTriggers}};
|
|
Gb1=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){var d={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",u1:B};K=[new Xf(K),new Oj(Z),new YD(f.externalVideoId),new Uj(R),new Qt({impressionCommands:f.impressionCommands,abandonCommands:f.onAbandonCommands,completeCommands:f.completeCommands,progressCommands:f.adVideoProgressCommands}),new Do(V),new Jw({current:null}),new Fv(J)];(V=f.playerOverlay.instreamAdPlayerOverlayRenderer)&&K.push(new WT(V));(J=f.playerOverlay.playerOverlayLayoutRenderer)&&K.push(new vT(J));
|
|
D&&K.push(new dU(D));(D=f.playerUnderlay)&&K.push(new qN(D));R=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");D=(D=V?V.elementId:J==null?void 0:J.layoutId)?D:OZ(A.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",R);K.push(new BF(D));K.push(new Kk(R));K.push(new j6(Z.adPodIndex));f.adNextParams&&K.push(new kD(f.adNextParams));f.shrunkenPlayerBytesConfig&&K.push(new e8(f.shrunkenPlayerBytesConfig));f.clickthroughEndpoint&&K.push(new TQ(f.clickthroughEndpoint));f.legacyInfoCardVastExtension&&K.push(new lT(f.legacyInfoCardVastExtension));
|
|
f.sodarExtensionData&&K.push(new IJ(f.sodarExtensionData));F&&K.push(new tw(F));K.push(new $X(NS(f.pings)));Z=Fw(f.pings);if(I){a:{I=g.m(I);for(F=I.next();!F.done;F=I.next())if(F=F.value,F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(V=g.y(F.fulfillmentContent.fulfilledLayout,jL))&&(V=g.y(V.renderingContent,pJ))&&V.associatedPlayerBytesLayoutId===L){I=F;break a}I=void 0}I&&K.push(new PT(I))}return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Vf:Z,layoutExitNormalTriggers:[new Xp(A.N,L)],layoutExitSkipTriggers:f.skipOffsetMilliseconds?
|
|
[new cW(A.N,D)]:[],layoutExitMuteTriggers:[new cW(A.N,D)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:B,vD:K,Aw:N(d),adLayoutLoggingData:f.adLayoutLoggingData}};
|
|
QL1=function(A,L,B,f,K,V,J,R,Z){f.every(function(F){return Ug(F,[],["LAYOUT_TYPE_MEDIA"])})||Dh("Unexpect subLayout type for DAI composite layout");
|
|
L=OZ(A.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",L);var N={layoutId:L,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",u1:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Vf:new Map,layoutExitNormalTriggers:[new kd(A.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new wU(B),new pk(R),new RJ(f),new Xf(K),new sg(V),new gU({}),new Og(Z)]),Aw:J(N)}};
|
|
tUk=function(A){return A!=null};
|
|
MF=function(A,L,B){var f=this;this.W=A;this.V=L;this.FD=B;this.N=function(K){return uM(f.W.get(),K)}};
|
|
nDe=function(A,L,B,f,K,V,J){if(!B.prefetchModeConfig)return new n("AdPlacementConfig for Live Prefetch is missing prefetch_config");B=B.prefetchModeConfig;f*=1E3;var R=[];if(!B.breakLengthMs)return new n("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var Z=g.m(B.breakLengthMs),N=Z.next();!N.done;N=Z.next())if(N=N.value,Number(N)>0){var F=f+Number(B.startTimeOffsetMs),D=F+Number(B.cacheFetchSmearingDurationMs);N={R7:new bk(D,D+Number(N)),FS:!1,Vz:new bk(Math.floor(F+Math.random()*
|
|
Number(B.cacheFetchSmearingDurationMs)),D),cueProcessedMs:f?f:F};F=[];F.push(new M1({}));D=[];D.push(new E7(A.N));D.push(new p8D(A.N));J&&F.push(new gU({}));R.push(m9(A,L,K,N,V,F,D))}return R};
|
|
m9=function(A,L,B,f,K,V,J){V=V===void 0?[]:V;var R=oE(A.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");J||(J=[],f.Vz&&f.Vz.start!==f.R7.start&&J.push(new Qg(A.N,B,new bk(f.Vz.start,f.R7.start),!1)),J.push(new Qg(A.N,B,new bk(f.R7.start,f.R7.end),f.FS)));f={getAdBreakUrl:L.getAdBreakUrl,f3:f.R7.start,hU:f.R7.end,cueProcessedMs:f.cueProcessedMs};L=new WW(A.N,R);V=[new hw(f)].concat(g.x7(V));return{slotId:R,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:J,
|
|
slotExpirationTriggers:[new O7(A.N,B),new Yd(A.N,R),new U7(A.N,R)],u1:"core",clientMetadata:new q1(V),adSlotLoggingData:K}};
|
|
sJk=function(A,L,B){var f=[];B=g.m(B);for(var K=B.next();!K.done;K=B.next())f.push(rw0(A,L,K.value));return f};
|
|
rw0=function(A,L,B){return B.triggeringSlotId!=null&&B.triggeringSlotId===A?B.clone(L):B};
|
|
wvk=function(A,L,B,f,K){return Hk0(A,L,B,f,K)};
|
|
bO0=function(A,L,B,f){var K=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");return Hk0(A,K,L,B,f)};
|
|
Hk0=function(A,L,B,f,K){var V=new hy(A.N,B),J=[new Mr(A.N,L)];A=[new Yd(A.N,L),new O7(A.N,f)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(K({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:A},B))]),adSlotLoggingData:void 0}};
|
|
Yj6=function(A,L,B,f,K,V){var J=oE(A.W.get(),"SLOT_TYPE_PLAYER_BYTES"),R=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER"),Z=OZ(A.W.get(),"LAYOUT_TYPE_SURVEY",R);f=Yh(A,L,B,f);var N=[new Mr(A.N,J)];B=[new Yd(A.N,J),new O7(A.N,B),new rf(A.N,Z)];if(f instanceof n)return f;V=V({slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:f,slotFulfillmentTriggers:N,slotExpirationTriggers:B},{slotId:R,layoutId:Z});R=V.nsL;return[{slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
|
|
slotEntryTrigger:f,slotFulfillmentTriggers:N,slotExpirationTriggers:B,u1:"core",clientMetadata:new q1([new HF(V.XzD),new cF({z$:A.z$(L)})]),adSlotLoggingData:K},R]};
|
|
WEC=function(A,L,B,f,K){K=K?K:oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");B=new hy(A.N,B);var V=[new Mr(A.N,K)];A=[new O7(A.N,L),new Yd(A.N,K)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(f({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:A}))])}};
|
|
vv1=function(A,L,B,f){var K=oE(A.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");B=new hy(A.N,B);var V=[new Mr(A.N,K)];A=[new O7(A.N,L),new Yd(A.N,K)];return{slotId:K,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(f({slotId:K,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:A}))])}};
|
|
$Aw=function(A,L,B,f,K,V,J){var R=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER"),Z=OZ(A.W.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",R);f=hL6(A,f,V,J,Z);if(f instanceof n)return f;J=[new Mr(A.N,R)];K=[new O7(A.N,V),new Mr(A.N,K),new qr(A.N,K)];B=aJ(B,{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:f,slotFulfillmentTriggers:J,slotExpirationTriggers:K});A=A.V.get();V={layoutId:Z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",u1:"core"};L={layoutId:Z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
|
|
Vf:new Map,layoutExitNormalTriggers:[new haD(A.N,Z,L.durationMs)],layoutExitSkipTriggers:[new tGw(A.N,Z,L.durationMs)],layoutExitUserCancelledTriggers:[new b0L(A.N,Z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u1:"core",clientMetadata:new q1([new mw(L)]),Aw:B(V)};return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:f,slotFulfillmentTriggers:J,slotExpirationTriggers:K,clientMetadata:new q1([new HF(L)])}};
|
|
sd1=function(A,L,B,f,K,V){L=Yh(A,L,B,f);if(L instanceof n)return L;var J=L instanceof Qg?new rVD(A.N,B,L.N):null;f=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");var R=[new Mr(A.N,f)];A=[new O7(A.N,B),new Yd(A.N,f)];V=V({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:A},J);return V instanceof vF?new n(V):{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:A,
|
|
u1:"core",clientMetadata:new q1([new HF(V)]),adSlotLoggingData:K}};
|
|
GQ8=function(A,L,B,f){var K=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER"),V=new GA(A.N,L),J=[new vW(A.N,K)];A=[new O7(A.N,L),new Yd(A.N,K)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(f({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:A}))]),adSlotLoggingData:B}};
|
|
rhQ=function(A,L,B,f){var K=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");B=new hy(A.N,B);var V=[new Mr(A.N,K)],J=[new Yd(A.N,K),new O7(A.N,L)];V={slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:J};return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:[new Mr(A.N,K)],slotExpirationTriggers:[new O7(A.N,L),new Yd(A.N,K)],u1:"core",clientMetadata:new q1([new HF(f(V))])}};
|
|
jLe=function(A,L,B,f,K){var V=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");B=new HW(A.N,f,B);f=[new Mr(A.N,V)];A=[new O7(A.N,L)];return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:f,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(K({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:B,slotFulfillmentTriggers:f,slotExpirationTriggers:A}))])}};
|
|
DAS=function(A,L,B,f,K,V){var J=oE(A.W.get(),L);return UM(A,J,L,new hy(A.N,f),[new O7(A.N,B),new Yd(A.N,J),new bh(A.N,f,["error"])],K,V)};
|
|
FE6=function(A,L,B,f,K,V,J){var R=oE(A.W.get(),L);return UM(A,R,L,new bh(A.N,K,["normal"]),[new O7(A.N,B),new Yd(A.N,R),new bh(A.N,f,["error"])],V,J)};
|
|
SXD=function(A,L,B,f,K){var V=oE(A.W.get(),L);return UM(A,V,L,new GA(A.N,B),[new O7(A.N,B),new Yd(A.N,V)],f,K)};
|
|
pTk=function(A,L,B,f,K){B=B?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var V=oE(A.W.get(),B);L=new GA(A.N,L);var J=[new Mr(A.N,V)];A=[new Yd(A.N,V)];return{slotId:V,slotType:B,slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:J,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(K({slotId:V,slotType:B,slotPhysicalPosition:1,u1:"core",slotEntryTrigger:L,slotFulfillmentTriggers:J,slotExpirationTriggers:A}))]),adSlotLoggingData:f}};
|
|
k3y=function(A,L,B,f,K){var V=oE(A.W.get(),"SLOT_TYPE_PLAYER_BYTES"),J=new mU(A.N),R=[new vW(A.N,V)];A=[new O7(A.N,L)];L=[];L.push(new HF(f({slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:A})));L.push(new gU({}));K&&L.push(new N1({current:K}));return{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1(L),
|
|
adSlotLoggingData:B}};
|
|
XT7=function(A,L){return xNw(A.FD.get())?new bh(A.N,L,["normal","error","skipped"]):new bh(A.N,L,["normal"])};
|
|
ch1=function(A,L,B,f,K){L=XT7(A,L);A=oU(A,L,B);K=K({slotId:A.slotId,slotType:A.slotType,slotPhysicalPosition:A.slotPhysicalPosition,slotEntryTrigger:A.slotEntryTrigger,slotFulfillmentTriggers:A.slotFulfillmentTriggers,slotExpirationTriggers:A.slotExpirationTriggers,u1:A.u1});return K instanceof n?K:{Se:Object.assign({},A,{clientMetadata:new q1([new HF(K.layout)]),adSlotLoggingData:f}),jE:K.jE}};
|
|
MUC=function(A,L,B,f,K,V,J){B=OOw(A,L,B,f);if(B instanceof n)return B;J=J({slotId:B.slotId,slotType:B.slotType,slotPhysicalPosition:B.slotPhysicalPosition,slotEntryTrigger:B.slotEntryTrigger,slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers,u1:B.u1});if(J instanceof n)return J;A=[new HF(J.layout),new cF({z$:A.z$(L)})];V&&A.push(new Ck({}));return{Se:{slotId:B.slotId,slotType:B.slotType,slotPhysicalPosition:B.slotPhysicalPosition,slotEntryTrigger:B.slotEntryTrigger,
|
|
slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers,u1:B.u1,clientMetadata:new q1(A),adSlotLoggingData:K},jE:J.jE}};
|
|
oU=function(A,L,B){var f=oE(A.W.get(),"SLOT_TYPE_PLAYER_BYTES"),K=[new Mr(A.N,f)];A=[new Yd(A.N,f),new O7(A.N,B)];return{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:K,slotExpirationTriggers:A,u1:"core"}};
|
|
OOw=function(A,L,B,f){L=Yh(A,L,B,f);return L instanceof n?L:oU(A,L,B)};
|
|
jdL=function(A,L,B,f,K,V){var J=oE(A.W.get(),"SLOT_TYPE_FORECASTING");L=Yh(A,L,B,f);if(L instanceof n)return L;f=[new Mr(A.N,J)];A=[new Yd(A.N,J),new O7(A.N,B)];return{slotId:J,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:f,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(V({slotId:J,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:L,slotFulfillmentTriggers:f,slotExpirationTriggers:A}))]),adSlotLoggingData:K}};
|
|
bk1=function(A,L,B,f,K){var V=!L.hideCueRangeMarker;switch(L.kind){case "AD_PLACEMENT_KIND_START":return new GA(A.N,B);case "AD_PLACEMENT_KIND_MILLISECONDS":return A=fFC(L,f),A instanceof n?A:K(A.R7,V);case "AD_PLACEMENT_KIND_END":return new s7(A.N,B,V);default:return new n("Cannot construct entry trigger",{kind:L.kind})}};
|
|
hL6=function(A,L,B,f,K){return bk1(A,L,B,f,function(V,J){return new GJC(A.N,B,V,J,K)})};
|
|
Yh=function(A,L,B,f){return bk1(A,L,B,f,function(K,V){return new Qg(A.N,B,K,V)})};
|
|
UM=function(A,L,B,f,K,V,J){A=[new vW(A.N,L)];return{slotId:L,slotType:B,slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:A,slotExpirationTriggers:K,u1:"core",clientMetadata:new q1([new HF(J({slotId:L,slotType:B,slotPhysicalPosition:1,u1:"core",slotEntryTrigger:f,slotFulfillmentTriggers:A,slotExpirationTriggers:K}))]),adSlotLoggingData:V}};
|
|
VtC=function(){};
|
|
W_=function(A,L){g.Y.call(this);this.FD=A;this.W=L;this.eventCount=0;this.V=Jl0()()};
|
|
ji=function(A,L,B){A.N(L,void 0,void 0,void 0,B,void 0,void 0,void 0,B.adSlotLoggingData)};
|
|
ZB=function(A,L,B,f){A.N(L,void 0,void 0,void 0,B,f?f:void 0,void 0,void 0,B.adSlotLoggingData,f?f.adLayoutLoggingData:void 0);B=l_().resolve(h0(Zu))==null?void 0:NJ();L=B==null?void 0:B.adsSeenHotConfig;B=B==null?void 0:B.adsHotConfig;(L==null?0:L.logOnAdsSeen)&&(B==null?0:B.webEnablePremiumAdsSeenLogging)&&t60(A,f?f:void 0)};
|
|
mUD=function(A,L,B,f){XW(A.FD.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",B,"slot:",L,"layout:",f);uT(A.W.get())&&A.N("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,L,f?f:void 0,void 0,B,L.adSlotLoggingData,f?f.adLayoutLoggingData:void 0)};
|
|
Ky=function(A,L,B,f,K){A.N("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,f,K,void 0,void 0,f.adSlotLoggingData,K?K.adLayoutLoggingData:void 0,{errorType:L,errorMessage:B})};
|
|
t60=function(A,L){if(L){var B=L.adLayoutLoggingData;g.AR(g.ol(),function(){A.V!=null&&B&&g.pE("adsSeenClientLogging",{serializedAdServingDataEntry:B.serializedAdServingDataEntry})},0)}};
|
|
v_=function(A,L,B){W_.call(this,A,L);this.FD=A;this.hF=B};
|
|
qF=function(){this.N=new Map};
|
|
P_=function(A){this.N="pending";this.W=[];this.V=[];try{A(this.U.bind(this),this.reject.bind(this))}catch(L){this.reject(L)}};
|
|
kbw=function(){var A,L;return{Mm:new P_(function(B,f){A=B;L=f}),
|
|
resolve:A,reject:L}};
|
|
nS=function(A){return xh(A)?A:eM(A)?new P_(function(L,B){A.then(L,B)}):new P_(function(L){L(A)})};
|
|
z0=function(A){return new P_(function(L,B){B(A)})};
|
|
u4=function(A){try{return nS(A())}catch(L){return z0(L)}};
|
|
A2=function(A,L,B){var f=kbw(),K=f.Mm,V=f.resolve,J=f.reject;A.W.push(function(R){if(L)try{var Z=L(R);V(Z)}catch(N){J(N)}else V(R)});
|
|
A.V.push(function(R){if(B)try{var Z=B(R);V(Z)}catch(N){J(N)}else J(R)});
|
|
aU(A);return K};
|
|
LP=function(A,L){return A2(A,void 0,L)};
|
|
TUE=function(A,L){A2(A,function(B){return A2(nS(L()),function(){return B})},function(B){return A2(nS(L()),function(){return z0(B)})})};
|
|
aU=function(A){if(A.N==="fulfilled"){var L=A.W;A.W=[];A.V=[];L=g.m(L);for(var B=L.next();!B.done;B=L.next())B=B.value,B(A.result)}else if(A.N==="rejected")for(L=A.V,A.W=[],A.V=[],L=g.m(L),B=L.next();!B.done;B=L.next())B=B.value,B(A.error)};
|
|
o4=function(A,L){return loe(L.call(A))};
|
|
BZ=function(A){return function B(){return wI(B,function(f){if(f.N==1)return g.RO(f,2),g.X(f,{Mm:nS(A)},4);if(f.N!=2)return f.return(f.W);g.F9(f);return g.DR(f,0)})}()};
|
|
loe=function(A){return u4(function(){return fP(A,A.next())})};
|
|
fP=function(A,L){return L.done?nS(L.value):LP(A2(L.value.Mm,function(B){return fP(A,A.next(B))}),function(B){return fP(A,A.throw(B))})};
|
|
CTD=function(A){var L=m1E(A);return A2(QJD(L),function(){return L.map(function(B){return B.state()})})};
|
|
QJD=function(A){if(A.length===0)return nS(NaN);var L=kbw(),B=L.Mm,f=L.resolve,K=A.length;A=g.m(A.entries());var V=A.next();for(L={};!V.done;L={z6:void 0},V=A.next()){var J=g.m(V.value);V=J.next().value;J=J.next().value;L.z6=V;TUE(J,function(R){return function(){B.N==="pending"&&(ik6(void 0)&&(void 0)(R.z6)&&B.N==="pending"?f(R.z6):(--K,K===0&&f(NaN)))}}(L))}return B};
|
|
m1E=function(A){return A.map(function(L){return nS(L)})};
|
|
VG=function(A){var L=A.hours||0;var B=A.minutes||0,f=A.seconds||0;L=f+B*60+L*3600+(A.days||0)*86400+(A.weeks||0)*604800+(A.months||0)*2629800+(A.years||0)*31557600;L<=0?L={hours:0,minutes:0,seconds:0}:(A=L,L=Math.floor(A/3600),A%=3600,B=Math.floor(A/60),f=Math.floor(A%60),L={hours:L,minutes:B,seconds:f});var K=L.hours===void 0?0:L.hours;B=L.minutes===void 0?0:L.minutes;A=L.seconds===void 0?0:L.seconds;f=K>0;L=[];if(f){K=(new Intl.NumberFormat("en-u-nu-latn")).format(K);var V=["fr"],J="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
|
|
K="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(KP)?K.replace(",","\u00a0"):V.includes(KP)?K.replace(",","\u202f"):J.includes(KP)?K.replace(",","."):K;L.push(K)}f=f===void 0?!1:f;B=(["af","be","lt"].includes(KP)||f)&&B<10?$10().format(B):(new Intl.NumberFormat("en-u-nu-latn")).format(B);L.push(B);B=$10().format(A);L.push(B);B=":";"da fi id si sr sr-Latn".split(" ").includes(KP)&&(B=".");return L.join(B)};
|
|
$10=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
|
|
XFw=function(A,L){var B,f;A=((B=A.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=B.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(B=0;B<A.length;++B)if(A[B].scope===L)return A[B].token||void 0};
|
|
J2=function(A){if(A&&A.simpleText)return A.simpleText;var L="";if(A&&A.runs)for(var B=0;B<A.runs.length;B++)A.runs[B].text&&(L+=A.runs[B].text);return L};
|
|
SH=function(A){return A?function(){try{return A.apply(this,arguments)}catch(L){g.mL(L)}}:A};
|
|
R4=function(){this.V=new Set;this.W=new Set;this.U=new Map;this.client=void 0;this.csn=null};
|
|
ZD=function(){R4.instance||(R4.instance=new R4);return R4.instance};
|
|
Ny=function(){};
|
|
FX=function(){this.X=[];this.G=[];this.N=[];this.qp=[];this.D=[];this.yj=[];this.V=new Map;this.T=new Map;this.W=new Set;this.Vj=new Map};
|
|
DD=function(){FX.instance||(FX.instance=new FX);return FX.instance};
|
|
dS=function(A,L,B,f){f=f===void 0?{}:f;g.fg(function(){OkE.includes(L)||(g.CE(new g.iL("createClientScreen() called with a non-page VE",L)),L=83769);f.isHistoryNavigation||(A.qp=[],A.N.push({rootVe:L,key:f.key||""}));A.X=[];A.G=[];f.UL?EXk(A,L,B,f):cw6(A,L,B,f)})()};
|
|
M6E=function(A,L,B){B=B===void 0?0:B;g.fg(function(){L.then(function(f){A.W.has(B)&&A.U&&A.U();var K=g.sF(B),V=g.r8(B);if(K&&V){var J={automatedLogEventSource:3},R;(f==null?0:(R=f.response)==null?0:R.trackingParams)&&g.Pb(A.client,K,V,g.jB(f.response.trackingParams),!1,J);var Z;(f==null?0:(Z=f.playerResponse)==null?0:Z.trackingParams)&&g.Pb(A.client,K,V,g.jB(f.playerResponse.trackingParams),!1,J)}})})()};
|
|
wS=function(A){var L=DD();g.fg(function(){var B=g.jB(A);I4(L,B);return B})()};
|
|
Yge=function(A){var L={veType:253246};return g.fg(function(){if(!L.veType)return QH(new g.iL("Error: Trying to graft a client VE without a veType.")),null;if(L.visibilityTypes){var B=L.visibilityTypes.reduce(function(f,K){return f|K});
|
|
B={visibility:{types:String(B)}}}B=g8(L.veType,L.visualElement,L.elementIndex,L.clientYouTubeData,void 0,B);return I4(A,B)?B:null})()};
|
|
I4=function(A,L,B,f){f=f===void 0?0:f;return g.fg(function(){if(A.W.has(f))return A.X.push([L,B]),!0;var K=g.sF(f),V=B||g.r8(f);if(K&&V){if(g.h_("combine_ve_grafts")){var J=A.V.get(V.toString());J?J.push(L):(A.T.set(V.toString(),V),A.V.set(V.toString(),[L]));A.Wn||(A.Wn=g.AR(0,function(){pP(A,K)},1200))}else g.Pb(A.client,K,V,L);
|
|
return!0}return!1})()};
|
|
U1C=function(A,L){var B=g.sF(0);B&&uf(A.client,B,L,void 0)};
|
|
WwS=function(A,L,B,f){f=f===void 0?0:f;var K=g.sF(f);L=L||g.r8(f);K&&L&&(A=A.client,f=Yf({cttAuthInfo:Hb(K)||void 0},K),B={csn:K,ve:L.getAsJson(),clientData:B},K==="UNDEFINED_CSN"?nE("visualElementStateChanged",f,B):A?w8("visualElementStateChanged",B,A,f):g.pE("visualElementStateChanged",B,f))};
|
|
EXk=function(A,L,B,f){f=f===void 0?{}:f;A.W.add(f.layer||0);A.U=function(){cw6(A,L,B,f);var J=g.r8(f.layer);if(J){for(var R=g.m(A.X),Z=R.next();!Z.done;Z=R.next())Z=Z.value,I4(A,Z[0],Z[1]||J,f.layer);J=g.m(A.G);for(R=J.next();!R.done;R=J.next())R=R.value,WwS(A,R[0],R[1])}};
|
|
B||g.sF(f.layer)||A.U();if(f.UL)for(var K=g.m(f.UL),V=K.next();!V.done;V=K.next())M6E(A,V.value,f.layer);else g.mL(Error("Delayed screen needs a data promise."))};
|
|
cw6=function(A,L,B,f){f=f===void 0?{}:f;var K=void 0;f.layer||(f.layer=0);K=f.parentLayer!==void 0?f.parentLayer:f.layer;var V=g.sF(K);K=g.r8(K);var J=B||K,R;J&&(f.parentCsn!==void 0?R={clientScreenNonce:f.parentCsn,visualElement:J}:V&&V!=="UNDEFINED_CSN"&&(R={clientScreenNonce:V,visualElement:J}));var Z,N=g.A_("EVENT_ID");V==="UNDEFINED_CSN"&&N&&(Z={servletData:{serializedServletEventId:N}});g.h_("combine_ve_grafts")&&V&&pP(A,V);g.h_("no_client_ve_attach_unless_shown")&&J&&V&&eB(J,V);try{var F=$s0(A.client,
|
|
L,R,f.IH,f.cttAuthInfo,Z,f.implicitGestureType,f.loggingExpectations,f.automatedLogEventSource)}catch(d){kck(d,{hG:L,rootVe:K,hg4:B,ohL:V,Aas:R,IH:f.IH});g.mL(d);return}J_7(F,L,f.layer,f.cttAuthInfo);V&&V!=="UNDEFINED_CSN"&&K&&!fp1(V)&&Og7(A.client,V,K,!0);A.N[A.N.length-1]&&!A.N[A.N.length-1].csn&&(A.N[A.N.length-1].csn=F||"");g.Qm({clientScreenNonce:F});Ny.instance||(Ny.instance=new Ny);g.fg(ZD().N).bind(ZD())();var D=g.r8(f.layer);V&&V!=="UNDEFINED_CSN"&&D&&g.h_("music_web_mark_root_visible")&&
|
|
g.L1(F,D);A.W.delete(f.layer||0);A.U=void 0;var I;(I=A.Vj.get(f.layer))==null||I.forEach(function(d,w){d?I4(A,w,d,f.layer):D&&I4(A,w,D,f.layer)});
|
|
vXe(A)};
|
|
vXe=function(A){for(var L=0;L<A.D.length;L++){var B=A.D[L];try{B()}catch(f){g.mL(f)}}for(L=A.D.length=0;L<A.yj.length;L++){B=A.yj[L];try{B()}catch(f){g.mL(f)}}};
|
|
pP=function(A,L){if(L===void 0)for(var B=ozQ(),f=0;f<B.length;f++)B[f]!==void 0&&pP(A,B[f]);else A.V.forEach(function(K,V){(V=A.T.get(V))&&g.q2(A.client,L,V,K)}),A.V.clear(),A.T.clear(),A.Wn=void 0};
|
|
yG=function(){};
|
|
qgD=function(){yG.instance||(yG.instance=new yG);return yG.instance};
|
|
PTL=function(A,L,B){var f=new XMLHttpRequest;if(B==null?0:B.xQ)f.onreadystatechange=function(V){B.xQ(f,V)};
|
|
var K;f.open((K=L.method)!=null?K:"GET",A,!0);f.responseType="text";f.withCredentials=!0;if(L.headers)for(A=g.m(Object.entries(L.headers)),L=A.next();!L.done;L=A.next())K=g.m(L.value),L=K.next().value,K=K.next().value,f.setRequestHeader(L,K);return f};
|
|
jH=function(){};
|
|
x1E=function(){var A=navigator;return new Promise(function(L,B){var f;(f=A.webkitTemporaryStorage)!=null&&f.queryUsageAndQuota?A.webkitTemporaryStorage.queryUsageAndQuota(function(K,V){L({usage:K,quota:V})},function(K){B(K)}):B(Error("webkitTemporaryStorage is not supported."))})};
|
|
gS=function(A,L){var B=this;this.handleError=A;this.N=L;this.W=!1;self.document===void 0||self.addEventListener("beforeunload",function(){B.W=!0});
|
|
this.V=Math.random()<=.2};
|
|
nX0=function(A,L){jH.getInstance().estimate().then(function(B){B=Object.assign({},L,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:eLk(B==null?void 0:B.usage),deviceStorageQuotaMbytes:eLk(B==null?void 0:B.quota)});A.N("idbQuotaExceeded",B)})};
|
|
eLk=function(A){return typeof A==="undefined"?"-1":String(Math.ceil(A/1048576))};
|
|
uvQ=function(){var A=window.tectonicConfig;return A&&A.clientData||zL6};
|
|
BYC=function(){var A=g.v9();return A.Iv(192)?A.Iv(190):!(g.h_("web_watch_cinematics_disabled_by_default")||g.h_("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&aoE())};
|
|
KO6=function(A,L){fBE(A.program,L.xF1)&&(OC("bg_i",void 0,"player_att"),g.G4.initialize(A,function(){OC("bg_l",void 0,"player_att");rS=(0,g.bc)()},L.cspNonce,L.vI))};
|
|
Vi8=function(A){A=A===void 0?{}:A;return g.G4.invoke(A)};
|
|
fBE=function(A,L){if(A){var B;g.G4.isLoading()?B=!1:B=!rS||(0,g.bc)()-rS>L;A=B}else A=!1;return A};
|
|
g.sO=function(A,L){return A.vI+"timedtext_video?ref=player&v="+L.videoId};
|
|
g.JmL=function(A){var L=this;this.videoData=A;A={};this.N=(A.c1a=function(){var B=[];if(g.G4.isInitialized()){var f="";L.videoData&&L.videoData.EZ&&(f=L.videoData.EZ+("&r1b="+L.videoData.clientPlaybackNonce));var K={};f=(K.atr_challenge=f,K);OC("bg_v",void 0,"player_att");(f=Vi8(f))?(OC("bg_s",void 0,"player_att"),B.push("r1a="+f)):(OC("bg_e",void 0,"player_att"),B.push("r1c=2"))}else OC("bg_e",void 0,"player_att"),window.trayride||window.botguard?B.push("r1c=1"):B.push("r1c=4");B.push("r1d="+g.G4.getState());
|
|
return B.join("&")},A.c6a=function(B){return"r6a="+(Number(B.c)^fz())},A.c6b=function(B){return"r6b="+(Number(B.c)^Number(g.A_("CATSTAT",0)))},A);
|
|
this.videoData&&this.videoData.EZ?this.AO=I0(this.videoData.EZ):this.AO={}};
|
|
g.SZD=function(A){if(A.videoData&&A.videoData.EZ){for(var L=[A.videoData.EZ],B=g.m(Object.keys(A.N)),f=B.next();!f.done;f=B.next())f=f.value,A.AO[f]&&A.N[f]&&(f=A.N[f](A.AO))&&L.push(f);return L.join("&")}return null};
|
|
g.HZ=function(A,L){KO6(A,{xF1:g.Am(L.experiments,"bg_vm_reinit_threshold"),cspNonce:L.cspNonce,vI:L.vI||""})};
|
|
RDe=function(){var A=XMLHttpRequest.prototype.fetch;return!!A&&A.length===3};
|
|
NY7=function(A){Zyv=2592E3*(A||1)};
|
|
FOw=function(A){g.OS("yt-player-bandwidth",A,2592E3)};
|
|
h2=function(A){A=A===void 0?Zyv:A;if(A>0&&!(H2y()>(0,g.bc)()-A*1E3))return 0;A=g.ES("yt-player-quality");if(typeof A==="string"){if(A=g.ka[A],A>0)return A}else if(A instanceof Object)return A.quality;return 0};
|
|
b6=function(){var A=g.ES("yt-player-proxima-pref");return A==null?null:A};
|
|
DR6=function(){var A=g.ES("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};
|
|
dRe=function(){var A={values:{},Rz:{}};try{var L=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);A.values=L.values;A.halfLives=L.halfLives}catch(B){}return A};
|
|
t2=function(){return g.ES("yt-player-performance-cap")||{}};
|
|
kQ=function(){var A;return(A=g.ES("yt-player-performance-cap-active-set"))!=null?A:[]};
|
|
IBC=function(A){(A===void 0?0:A)?(A=kQ().filter(function(L){return L.startsWith("1")}),g.OS("yt-player-performance-cap-active-set",A,2592E3)):g.OS("yt-player-performance-cap-active-set",[],2592E3)};
|
|
wRQ=function(A){g.OS("yt-player-watch-later-pending",A)};
|
|
pRw=function(){return!!g.ES("yt-player-headers-readable")};
|
|
ymC=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(A){return 0}};
|
|
g.T4=function(){var A=g.ES("yt-player-caption-language-preferences");return A?A:[]};
|
|
l6=function(){var A=g.ES("yt-player-user-settings"),L=new Map;if(A){A=g.m(Object.entries(A));for(var B=A.next();!B.done;B=A.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;L.set(B,f)}}return L};
|
|
j6L=function(){var A;return(A=g.ES("yt-player-voice-boost"))!=null?A:void 0};
|
|
gGy=function(){var A;return(A=g.ES("yt-player-audio-quality-setting"))!=null?A:2};
|
|
QG=function(){try{var A=window.navigator;if(A.getAutoplayPolicy&&typeof A.getAutoplayPolicy==="function"){var L=document.getElementsByClassName(g.m6.vmF);var B=L.length>0&&L[0]?A.getAutoplayPolicy(L[0]):A.getAutoplayPolicy("mediaelement");if(GiQ[B])return GiQ[B]}}catch(f){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
|
|
CP=function(A){return A.N8||A.BV||A.mutedAutoplay};
|
|
var Zw8=function(A,L,B,f,K,V,J,R,Z){return Kw[S[2]](this,34,A,L,B,f,K,V,J,R,Z)};
|
|
rmQ=function(A,L){return CP(A)?L!==1&&L!==2&&L!==0?"AUTOPLAY_STATUS_UNAVAILABLE":A.e0?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
|
|
s67=function(A,L,B){var f=L.K();A.thirdParty||(A.thirdParty={});A.thirdParty=Object.assign({},A.thirdParty,{embedUrl:f.loaderUrl});f.ancestorOrigins&&(A.thirdParty.embeddedPlayerContext=Object.assign({},A.thirdParty.embeddedPlayerContext,{ancestorOrigins:f.ancestorOrigins}));f.jb!=null&&(A.thirdParty.embeddedPlayerContext=Object.assign({},A.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(f.jb)}));f.XT&&(A.thirdParty.embeddedPlayerContext=Object.assign({},A.thirdParty.embeddedPlayerContext,
|
|
{visibilityFractionSource:f.XT}));A.thirdParty.embeddedPlayerContext=Object.assign({},A.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:QG(),autoplayIntended:CP(L),autoplayStatus:rmQ(L,B)})};
|
|
HyE=function(A){var L=[];A=g.m(A.split(","));for(var B=A.next();!B.done;B=A.next()){var f=B.value;f&&((B=f.startsWith("!"))&&(f=f.substring(1)),f=f.split("-"),f.length<3||L.push({Qx:f[0],platform:f[1],deviceVersion:f[2],y$:B}))}return L};
|
|
tiv=function(A){return HyE(A).map(function(L){return{deviceInterface:hDS[by6[L.Qx]]||0,deviceVersion:L.deviceVersion||"",isSleeping:L.y$}})};
|
|
g.i6=function(A,L){this.id=A;this.ri=L;this.captionTracks=[];this.V=this.U=null;this.xtags="";this.T=this.D=!1;this.N=null;this.W="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";A=this.ri.id.split(".");A.length>1&&(this.D=A[1]==="2",this.T=A[1]==="4")};
|
|
$Q=function(A,L,B,f,K){this.W=A;this.N=L;this.V=B;this.reason=f;this.lC=K===void 0?0:K};
|
|
g.XX=function(A,L,B,f){return new $Q(g.ka[A]||0,g.ka[L]||0,B,f)};
|
|
EO=function(A){if(OO&&A.lC)return!1;var L=g.ka.auto;return A.W===L&&A.N===L};
|
|
My=function(A){return cZ[A.N||A.W]||"auto"};
|
|
kiD=function(A,L){L=g.ka[L];return A.W<=L&&(!A.N||A.N>=L)};
|
|
YQ=function(A,L,B,f){this.videoInfos=A;this.N=L;this.audioTracks=[];this.W=f||[];if(this.N){A=new Set;B==null||B({ainfolen:this.N.length});L=g.m(this.N);for(f=L.next();!f.done;f=L.next())if(f=f.value,!f.ri||A.has(f.ri.id)){var K=void 0,V=void 0,J=void 0;(J=B)==null||J({atkerr:!!f.ri,itag:f.itag,xtag:f.N,lang:((K=f.ri)==null?void 0:K.name)||"",langid:((V=f.ri)==null?void 0:V.id)||""})}else K=new g.i6(f.id,f.ri),A.add(f.ri.id),this.audioTracks.push(K);B==null||B({atklen:this.audioTracks.length})}};
|
|
UO=function(){g.Y.apply(this,arguments);this.W=null;this.N=new Map};
|
|
CY1=function(A,L,B,f,K,V,J){if(A.W)return A.W;var R={},Z=new Set,N={};if(WZ(f)){for(var F in f.N)f.N.hasOwnProperty(F)&&(A=f.N[F],N[A.info.Bn]=[A.info]);return N}F=TY1(L,f,R);V&&K({aftsrt:vZ(F)});for(var D={},I=g.m(Object.keys(F)),d=I.next();!d.done;d=I.next()){d=d.value;for(var w=g.m(F[d]),r=w.next();!r.done;r=w.next()){r=r.value;var h=r.itag,Q=lBy(d,r,L);if(D.hasOwnProperty(Q))D[Q]===!0?N[d].push(r):R[h]=D[Q];else{var l=qy(L,r,B,f.isLive,Z);l!==!0?(J.add(d),R[h]=l,l==="disablevp9hfr"&&(D[Q]="disablevp9hfr")):
|
|
(N[d]=N[d]||[],N[d].push(r),D[Q]=!0)}}}V&&K({bfflt:vZ(N)});for(var C in N)N.hasOwnProperty(C)&&(f=C,N[f]&&N[f][0].WV()&&(N[f]=N[f],N[f]=mRy(L,N[f],R),N[f]=Q6v(N[f],R)));V&&Object.keys(R).length>0&&K({rjr:f$(R)});L=g.m(Z.values());for(f=L.next();!f.done;f=L.next())(f=B.V.get(f.value))&&--f.FF;V&&K({aftflt:vZ(N)});A.W=g.Gk(N,function(O){return!!O.length});
|
|
return A.W};
|
|
$R1=function(A,L,B,f,K,V,J,R){R=R===void 0?!1:R;if(L.WR&&J&&J.length>1&&!(L.Tb>0||L.G)){for(var Z=L.N||!!K,N=Z&&L.Pz?V:void 0,F=TY1(L,f),D=[],I=[],d={},w=0;w<J.length;w++){var r=J[w],h=f.V.get(r);if(h&&h.info){var Q=h.info;h=Q.Bn;if(qy(L,Q,B,f.isLive)){r=Q.WV()?D:I;Q=g.m(F[h]);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;var C=lBy(h,l,L);d.hasOwnProperty(C)?d[C]===!0&&r.push(l):qy(L,l,B,f.isLive)&&(r.push(l),d[C]=!0)}}else Z&&V({opfu:r})}}if(D.length&&I.length)return Z&&V({opfm:D[0].itag+","+
|
|
I[0].itag}),OQ(new YQ(D,I,N))}return iyC(A,L,B,f,K,V,R)};
|
|
iyC=function(A,L,B,f,K,V,J){function R(v){return!!D[v]}
|
|
var Z=L.N||!!K,N=Z&&L.Pz?V:void 0,F=new Set,D=CY1(A,L,B,f,V,Z,F);PZ(f)&&(D=XRv(B,D,K,Z,V,L),Z&&V({enflt:vZ(D)}));L.ql=Oy6(D,L);var I=EG0(L);B=[];K=g.m(Object.values(D));for(var d=K.next();!d.done;d=K.next()){d=d.value;var w=void 0;((w=d)==null?0:w.length)&&d[0].NF()&&B.push.apply(B,g.x7(d))}if(WZ(f))return V=g.Pw(Object.values(D),function(v){return!!v.length&&!!v[0].audio}),Z=g.Pw(Object.values(D),function(v){return!!v.length&&!!v[0].video}),V&&Z||Xa(),OQ(new YQ(Z,V,N,B));
|
|
K=D.a;d=!1;L.ZM&&I[0]!=="a"&&cm8(K)&&(I.unshift("a"),d=!0);Z&&(V({audioPrefOrder:I.join("_")}),V({preferHighQualityAudio:L.ZM}),V({forcedAacForHqa:d}));K=[];if(L.k6){I=g.Mi(I,R);d=new Set;w=g.m(I);for(var r=w.next();!r.done;r=w.next()){var h=new Set;r=g.m(D[r.value]);for(var Q=r.next();!Q.done;Q=r.next()){Q=Q.value;var l=void 0,C=(l=Q.ri)==null?void 0:l.id;C&&(d.has(C)?h.has(C)&&K.push(Q):(h.add(C),d.add(C),K.push(Q)))}}if(K.length===0){if(I.length===0)return Z&&V({noaudio:1}),Xa();K=D[I[0]]}}else{K=
|
|
g.Pw(I,R);if(!K)return Z&&V({noaudio:1}),Xa();K=D[K]}D["9"]&&D.h&&f.iC&&!L.Cr&&(Z&&V({dltvp9:1}),delete D["9"]);if(J){Z&&V({bfsflt:vZ(D),bfsflta:xQ(A)});L.Ys&&(A.N=MiC(F,A.N));Z&&V({bfsfltb:xQ(A)});for(var O in D)if(D.hasOwnProperty(O)&&(J=O,!(J==="f"||L.JF===0&&YZS.has(J))))for(F=g.m(D[J]),I=F.next();!I.done;I=F.next())I=I.value,L.Ys?UR6(J,I,A.N):WOQ(A,J,I);Z&&V({aftsflt:xQ(A)})}J=D["1h"]?"1h":"1";A=D["9h"]?"9h":"9";I=D[J];d=D["2"];w=D[A];I&&I.length&&(L.W.highestAv1Resolution=I[I.length-1].video.qualityOrdinal);
|
|
w&&w.length&&(L.W.highestVp9Resolution=w[w.length-1].video.qualityOrdinal);O=[];F=[];if(L.Po&&d)O=d,F=["2"];else if(L.a8&&I)O=I,F=[J],V({forceAv1:J});else if(L.G&&!L.DZ)for(F=vGE(f)?D["1h"]||D["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],Z&&V({newhybpref:F.join(".")}),I=g.m(F),d=I.next();!d.done;d=I.next())O=O.concat(D[d.value]).filter(function(v){return v});
|
|
else L.Tb>0&&w&&I&&(F=[J,A],O=I.concat(w).filter(function(v){return v}));
|
|
if(O.length&&!L.DZ){eH(O,F);if(Z){Z=[];L=g.m(O);for(f=L.next();!f.done;f=L.next())Z.push(f.value.itag);V({hbdfmt:Z.join(".")})}return OQ(new YQ(O,K,N,B))}O=qZw(L);O=g.Pw(O,R);if(!O){if(D[J])return V=D[J],eH(V),OQ(new YQ(V,K,N,B));Z&&V({novideo:1});return Xa()}L.nD&&(O==="1"||O==="1h")&&D[A]&&(J=nP(D[O]),F=nP(D[A]),F>J?O=A:F===J&&PYE(D[A])&&(O=A));O==="9"&&D.h&&nP(D.h)>nP(D["9"])&&(O="h");L.Uv&&f.isLive&&O==="("&&D.H&&nP(D["("])<1440&&(O="H");Z&&V({vfmly:z4(O)});L=D[O];if(!L.length)return Z&&V({novfmly:z4(O)}),
|
|
Xa();eH(L);return OQ(new YQ(L,K,N,B))};
|
|
WOQ=function(A,L,B){var f,K=((f=B.video)==null?void 0:f.fps)||0;f=L+"_"+K;var V=!!B.audio,J=A.N.get(f);a:{var R=A.N.get(f),Z=!!B.audio;if(R){if(Z){var N=!1;break a}var F;if(!Z&&((N=B.video)==null?0:N.height)&&R.maxHeight&&R.maxHeight>=((F=B.video)==null?void 0:F.height)){N=!1;break a}}N=!0}N&&(N=B.itag,L=J?J:{itag:N,Bn:L,NF:V},V?L.numChannels=B.audio.numChannels:(V=B.video,L.maxWidth=V==null?void 0:V.width,L.maxHeight=V==null?void 0:V.height,L.maxFramerate=K,L.maxBitrateBps=B.lC*8,L.uT=V==null?void 0:
|
|
V.isHdr()),A.N.set(f,L))};
|
|
xQ=function(A){for(var L=[],B=g.m(A.N.keys()),f=B.next();!f.done;f=B.next()){f=f.value;var K=A.N.get(f);L.push(f+"_"+K.maxWidth+"_"+K.maxHeight)}return L.join(".")};
|
|
Oy6=function(A,L){var B=!(!A.m&&!A.M),f=!(!A.mac3&&!A.MAC3),K=!(!A.meac3&&!A.MEAC3);A=!(!A.i&&!A.I);L.LD=A;return B||f||K||A};
|
|
PYE=function(A){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.itag&&xRv.has(L.itag))return!0;return!1};
|
|
cm8=function(A){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1};
|
|
z4=function(A){switch(A){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return A}};
|
|
lBy=function(A,L,B){var f,K,V;return B.o4?A+"_"+Number((f=L.video)==null?void 0:f.fps)+"_"+!((K=L.audio)==null||!K.W):A+"_"+(((V=L.video)==null?void 0:V.fps)||0)};
|
|
vZ=function(A){var L=[],B;for(B in A)if(A.hasOwnProperty(B)){var f=B;L.push(z4(f));f=g.m(A[f]);for(var K=f.next();!K.done;K=f.next())L.push(K.value.itag)}return L.join(".")};
|
|
XRv=function(A,L,B,f,K,V){var J={},R={};g.H6(L,function(Z,N){Z=Z.filter(function(F){var D=F.itag;if(!F.Zj)return R[D]="noenc",!1;if(V.KY&&F.Bn==="(h"&&V.mH)return R[D]="lichdr",!1;if(!A.U&&F.Bn==="1e")return R[D]="noav1enc",!1;if(F.Bn==="("||F.Bn==="(h"){if(A.W&&B&&B.flavor==="widevine"){var I=F.mimeType+"; experimental=allowed";(I=!!F.Zj[B.flavor]&&!!B.N[I])||(R[D]=F.Zj[B.flavor]?"unspt":"noflv");return I}if(!u6(A,a4.CRYPTOBLOCKFORMAT)&&!A.ZM||A.qp)return R[D]=A.qp?"disvp":"vpsub",!1}return B&&F.Zj[B.flavor]&&
|
|
B.N[F.mimeType]?!0:(R[D]=B?F.Zj[B.flavor]?"unspt":"noflv":"nosys",!1)});
|
|
Z.length&&(J[N]=Z)});
|
|
f&&Object.entries(R).length&&K({rjr:f$(R)});return J};
|
|
Q6v=function(A,L){var B=Cv(A,function(f,K){return K.video.fps>32?Math.min(f,K.video.width):f},Infinity);
|
|
B<Infinity&&(A=A.filter(function(f){if(f.video.fps>32||f.video.width<B)return!0;L[f.itag]="hfrfirst";return!1}));
|
|
ul()&&(A=A.filter(function(f){if(f.itag!=="299")return!0;L[f.itag]="ps3hfr1080";return!1}));
|
|
return A};
|
|
mRy=function(A,L,B){return L=L.filter(function(f){if(f.video.qualityOrdinal<=A.N8)return!0;B[f.itag]="maxquality";return!1})};
|
|
TY1=function(A,L,B){var f={},K;for(K in L.N)if(L.N.hasOwnProperty(K)){var V=L.N[K].info;if(A.X&&V.video&&V.video.qualityOrdinal<A.X)B&&(B[V.itag]="min"+A.X);else{var J=V.Bn;f[J]=f[J]||[];f[J].push(V)}}A=g.m(Object.keys(f));for(L=A.next();!L.done;L=A.next())eH(f[L.value]);return f};
|
|
nP=function(A){return Cv(A,function(L,B){return Math.max(L,B.video.qualityOrdinal)},0)};
|
|
qy=function(A,L,B,f,K){K=K===void 0?new Set:K;if(L.Bn==="")return"unkn";if((L.itag==="304"||L.itag==="266")&&A.qp)return"blk2khfr";if(A.T&&L.video&&L.video.qualityOrdinal>A.T)return"max"+A.T;if(A.Nl&&L.Bn==="h"&&L.video&&L.video.qualityOrdinal>1080)return"blkhigh264";if(L.Bn==="(h"&&!B.T)return"enchdr";if((f===void 0?0:f)&&Nkv(L)&&!A.Ex)return"blk51live";if((L.Bn==="MAC3"||L.Bn==="mac3")&&!A.U)return"blkac3";if((L.Bn==="MEAC3"||L.Bn==="meac3")&&!A.D)return"blkeac3";if(L.Bn==="M"||L.Bn==="m")return"blkaac51";
|
|
if((L.Bn==="so"||L.Bn==="sa")&&!A.Wn)return"blkamb";if(!A.KY&&ZLy(L)&&(!B.U||L.Bn!=="1e"))return"cbc";if(!B.U&&ZLy(L)&&L.Bn==="1e")return"cbcav1";if((L.Bn==="i"||L.Bn==="I")&&!A.t$)return"blkiamf";var V;if(A.zV&&((V=L.audio)==null?void 0:V.W)===!0)return"blkvbcabr";var J,R;if(A.cn&&(L.Bn==="1"||L.Bn==="1h"||B.U&&L.Bn==="1e")&&((J=L.video)==null?0:J.qualityOrdinal)&&((R=L.video)==null?void 0:R.qualityOrdinal)>A.cn)return"av1cap";f=B.V.get(L.Bn);if(!A.jI&&f&&f.FF>0)return K.add(L.Bn),"byerr";var Z;
|
|
if((Z=L.video)==null?0:Z.fps>32){if(!B.Vj&&!u6(B,a4.FRAMERATE))return"capHfr";if(A.Ox&&L.video.qualityOrdinal>=4320)return"blk8khfr";if(iQ(L)&&A.jD&&L.Zj&&L.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(A.lC&&L.lC>A.lC)return"ratecap";if(A.Vj>0&&L.WV()&&L.video.height>A.Vj)return"mvhcap";A=eD8(B,L);return A!==!0?A:!0};
|
|
eH=function(A,L){L=L===void 0?[]:L;g.I8(A,function(B,f){var K=f.lC-B.lC;if(!B.WV()||!f.WV())return K;var V=f.video.height*f.video.width-B.video.height*B.video.width;!V&&L&&L.length>0&&(B=L.indexOf(B.Bn)+1,f=L.indexOf(f.Bn)+1,V=B===0||f===0?f||-1:B-f);V||(V=K);return V})};
|
|
AI=function(A,L,B,f,K,V,J,R,Z){this.XD=A;this.startTime=L;this.duration=B;this.ingestionTime=f;this.sourceURL=K;this.U9=Z;this.endTime=L+B;this.N=J||0;this.range=V||null;this.pending=R||!1;this.U9=Z||null};
|
|
g.Lq=function(){this.segments=[];this.N=null;this.W=!0;this.V=""};
|
|
nGv=function(A,L){if(L>A.uq())A.segments=[];else{var B=qX(A.segments,function(f){return f.XD>=L},A);
|
|
B>0&&A.segments.splice(0,B)}};
|
|
os=function(A,L,B,f,K){K=K===void 0?!1:K;this.data=A;this.offset=L;this.size=B;this.type=f;this.N=(this.W=K)?0:8;this.dataOffset=this.offset+this.N};
|
|
Bq=function(A){var L=A.data.getUint8(A.offset+A.N);A.N+=1;return L};
|
|
fq=function(A){var L=A.data.getUint16(A.offset+A.N);A.N+=2;return L};
|
|
Kq=function(A){var L=A.data.getInt32(A.offset+A.N);A.N+=4;return L};
|
|
Vj=function(A){var L=A.data.getUint32(A.offset+A.N);A.N+=4;return L};
|
|
JI=function(A){var L=A.data;var B=A.offset+A.N;L=L.getUint32(B)*4294967296+L.getUint32(B+4);A.N+=8;return L};
|
|
Sz=function(A,L){L=L===void 0?NaN:L;if(isNaN(L))var B=A.size;else for(B=A.N;B<A.size&&A.data.getUint8(A.offset+B)!==L;)++B;L=new Uint8Array(A.data.buffer,A.offset+A.N+A.data.byteOffset,B-A.N);A.N=Math.min(B+1,A.size);return G3(L)};
|
|
zD6=function(A){return new Uint8Array(A.data.buffer,A.offset+A.data.byteOffset,A.size)};
|
|
uWy=function(A){this.offset=0;this.data=new DataView(new ArrayBuffer(A))};
|
|
Rs=function(A,L,B,f){(new Uint8Array(A.data.buffer,A.offset,f)).set(new Uint8Array(L.buffer,B+L.byteOffset,f));A.offset+=f};
|
|
Zc=function(A,L,B,f,K,V){this.startSecs=A;this.Dj=L;this.context=B;this.identifier=f;this.event=K;this.N=V};
|
|
Fd=function(A,L){this.data=A;this.uri=L||"http://youtube.com/streaming/metadata/segment/102015";this.tO=Nj(this,"Sequence-Number");this.U=Nj(this,"Segment-Count");this.D=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=Nj(this,"Ingestion-Walltime-Us")/1E6;this.N=(Nj(this,"First-Frame-Time-Us")+Nj(this,"First-Frame-Uncertainty-Us"))/1E6;this.oC=Nj(this,"Target-Duration-Us")/1E6;this.Ad=this.data["Stream-Finished"]==="T";this.V=this.data.Streamable==="T";this.cryptoPeriodIndex=Nj(this,"Crypto-Period-Index");
|
|
this.W=Nj(this,"Crypto-Period-Seconds")};
|
|
AEC=function(A){return A.data["Cuepoint-Type"]?new Zc(-(Number(A.data["Cuepoint-Playhead-Time-Sec"])||0),Number(A.data["Cuepoint-Total-Duration-Sec"])||0,A.data["Cuepoint-Context"],A.data["Cuepoint-Identifier"]||"",aBv[A.data["Cuepoint-Event"]||""]||"unknown",(Number(A.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
|
|
LD6=function(A){return Number(A.data["Start-Media-Time-Us"])/1E6||0};
|
|
Nj=function(A,L){return Number(A.data[L])||0};
|
|
omQ=function(A){return A.data["Stitched-Video-Cpn"]?A.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
|
|
g.BjE=function(A){return A.data["Serialized-State"]?A.data["Serialized-State"]:""};
|
|
g.fTw=function(A){switch(A.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
|
|
KDS=function(A,L){this.N=A;this.duration=L};
|
|
V91=function(A,L,B,f,K){this.W=K;this.N=A||0;this.pitch=L||0;this.yaw=B||0;this.roll=f||0;this.crc=K.getUint32(4)};
|
|
Dc=function(A){var L={};A=A.split("\r\n");for(var B=0;B<A.length;B++){if(A[B].length===0)return L;var f=A[B].match(/([^:]+):\s+([\S\s]+)/);f!=null&&(L[f[1]]=f[2])}return null};
|
|
JE8=function(A,L){var B=g.dD(A,0,1952868452);A=g.dD(A,0,1953658222);if(B&&A){B.skip(1);var f=Bq(B)<<16|fq(B);B.skip(4);f&1&&B.skip(8);f&2&&B.skip(4);if(f&8){f=B.N;var K=Vj(B);B.data.setUint32(B.offset+f,L>1?Math.ceil(K*L):Math.floor(K*L))}A.skip(1);B=Bq(A)<<16|fq(A);if(B&256){f=B&1;K=B&4;var V=B&512,J=B&1024,R=B&2048;B=Vj(A);f&&A.skip(4);K&&A.skip(4);f=(V?4:0)+(J?4:0)+(R?4:0);for(K=0;K<B;K++)V=A.N,J=Vj(A),A.data.setUint32(A.offset+V,L>1?Math.ceil(J*L):Math.floor(J*L)),A.skip(f)}}};
|
|
wD=function(A){A=new DataView(A.buffer,A.byteOffset,A.byteLength);return(A=g.dD(A,0,1836476516))?g.Is(A):NaN};
|
|
SbS=function(A){var L=g.dD(A,0,1937011556);if(!L)return null;L=pq(A,L.dataOffset+8,1635148593)||pq(A,L.dataOffset+8,1635135537);if(!L)return null;var B=pq(A,L.dataOffset+78,1936995172),f=pq(A,L.dataOffset+78,1937126244);if(!f)return null;L=null;if(B)switch(B.skip(4),Bq(B)){default:L=0;break;case 1:L=2;break;case 2:L=1;break;case 3:L=255}var K=B=null,V=null;if(f=pq(A,f.dataOffset,1886547818)){var J=pq(A,f.dataOffset,1886546020),R=pq(A,f.dataOffset,2037673328);if(!R&&(R=pq(A,f.dataOffset,1836279920),
|
|
!R))return null;J&&(J.skip(4),B=Kq(J)/65536,V=Kq(J)/65536,K=Kq(J)/65536);A=zD6(R);A=new DataView(A.buffer,A.byteOffset+8,A.byteLength-8);return new V91(L,B,V,K,A)}return null};
|
|
pq=function(A,L,B){for(;yj(A,L);){var f=jz(A,L);if(f.type===B)return f;L+=f.size}return null};
|
|
g.dD=function(A,L,B){for(;yj(A,L);){var f=jz(A,L);if(f.type===B)return f;L=gD(f.type)?L+8:L+f.size}return null};
|
|
g.G5=function(A){if(A.data.getUint8(A.dataOffset)){var L=A.data;A=A.dataOffset+4;L=L.getUint32(A)*4294967296+L.getUint32(A+4)}else L=A.data.getUint32(A.dataOffset+4);return L};
|
|
jz=function(A,L){var B=A.getUint32(L),f=A.getUint32(L+4);return new os(A,L,B,f)};
|
|
g.Is=function(A){var L=A.data.getUint8(A.dataOffset)?20:12;return A.data.getUint32(A.dataOffset+L)};
|
|
RsL=function(A){A=new os(A.data,A.offset,A.size,A.type,A.W);var L=Bq(A);A.skip(7);var B=Vj(A);if(L===0){L=Vj(A);var f=Vj(A)}else L=JI(A),f=JI(A);A.skip(2);for(var K=fq(A),V=[],J=[],R=0;R<K;R++){var Z=Vj(A);V.push(Z);J.push(Vj(A));A.skip(4)}return{timescale:B,ZI:L,Ps:f,f0F:V,zl:J}};
|
|
yj=function(A,L){if(A.byteLength-L<8)return!1;var B=A.getUint32(L);if(B<8||A.byteLength-L<B)return!1;for(B=4;B<8;B++){var f=A.getInt8(L+B);if(f<48||f>122)return!1}return!0};
|
|
gD=function(A){return A===1701082227||A===1836019558||A===1836019574||A===1835297121||A===1835626086||A===1937007212||A===1953653094||A===1953653099||A===1836475768};
|
|
ZUy=function(A){A.skip(4);return{qf4:Sz(A,0),value:Sz(A,0),timescale:Vj(A),egM:Vj(A),eventDuration:Vj(A),id:Vj(A),F7:Sz(A),offset:A.offset}};
|
|
g.Njw=function(A){var L=pq(A,0,1701671783);if(!L)return null;var B=ZUy(L),f=B.qf4;B=Dc(B.F7);if(A=pq(A,L.offset+L.size,1701671783))if(A=ZUy(A),A=Dc(A.F7),B&&A){L=g.m(Object.keys(A));for(var K=L.next();!K.done;K=L.next())K=K.value,B[K]=A[K]}return B?new Fd(B,f):null};
|
|
rD=function(A,L){for(var B=pq(A,0,L);B;){var f=B;f.type=1936419184;f.data.setUint32(f.offset+4,1936419184);B=pq(A,B.offset+B.size,L)}};
|
|
g.s9=function(A,L){for(var B=0,f=[];yj(A,B);){var K=jz(A,B);K.type===L&&f.push(K);B=gD(K.type)?B+8:B+K.size}return f};
|
|
FD8=function(A,L){var B=g.dD(A,0,1937011556),f=g.dD(A,0,1953654136);if(!B||!f||A.getUint32(B.offset+12)>=2)return null;var K=new DataView(L.buffer,L.byteOffset,L.length),V=g.dD(K,0,1937011556);if(!V)return null;L=K.getUint32(V.dataOffset+8);f=K.getUint32(V.dataOffset+12);if(f!==1701733217&&f!==1701733238)return null;f=new uWy(A.byteLength+L);Rs(f,A,0,B.offset+12);f.data.setInt32(f.offset,2);f.offset+=4;Rs(f,A,B.offset+16,B.size-16);Rs(f,K,K.byteOffset+V.dataOffset+8,L);Rs(f,A,B.offset+B.size,A.byteLength-
|
|
(B.offset+B.size));B=g.m([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(K=B.next();!K.done;K=B.next())K=g.dD(A,0,K.value),f.data.setUint32(K.offset,K.size+L);A=g.dD(f.data,0,1953654136);f.data.setUint32(A.offset+16,2);return f.data};
|
|
DSC=function(A){var L=g.dD(A,0,1937011556);if(!L)return null;var B=A.getUint32(L.dataOffset+12);if(B!==1701733217&&B!==1701733238)return null;L=pq(A,L.offset+24+(B===1701733217?28:78),1936289382);if(!L)return null;B=pq(A,L.offset+8,1935894637);if(!B||A.getUint32(B.offset+12)!==1667392371)return null;L=pq(A,L.offset+8,1935894633);if(!L)return null;L=pq(A,L.offset+8,1952804451);if(!L)return null;B=new Uint8Array(16);for(var f=0;f<16;f++)B[f]=A.getInt8(L.offset+16+f);return B};
|
|
Hq=function(A,L){this.N=A;this.pos=0;this.start=L||0};
|
|
hI=function(A){return A.pos>=A.N.byteLength};
|
|
ln=function(A,L,B){var f=new Hq(B);if(!bn(f,A))return!1;f=tI(f);if(!kK(f,L))return!1;for(A=0;L;)L>>>=8,A++;L=f.start+f.pos;var K=T5(f,!0);f=A+(f.start+f.pos-L)+K;f=f>9?dSw(f-9,8):dSw(f-2,1);A=L-A;B.setUint8(A++,236);for(L=0;L<f.length;L++)B.setUint8(A++,f[L]);return!0};
|
|
ITw=function(A){var L=new Hq(A);L.qE();if(bn(L,[408125543,374648427,174,224]))L=tI(L);else return null;for(var B=A=null;!hI(L);){var f=T5(L,!1);if(f===21432)switch(md(L)){default:A=0;break;case 1:A=1;break;case 3:A=2;break;case 15:A=255}else f===30320?B=tI(L):Qj(L)}if(!B)return null;for(var K,V=f=L=null;!hI(B);)switch(T5(B,!1)){case 30321:if(md(B)!==3)return null;break;case 30324:L=Cq(B);break;case 30323:V=Cq(B);break;case 30325:f=Cq(B);break;case 30322:K=T5(B,!0);K=$K(B,K);K=new DataView(K.buffer,
|
|
K.byteOffset,K.byteLength);break;default:Qj(B)}return K?new V91(A,L,V,f,K):null};
|
|
tI=function(A){var L=T5(A,!0),B=A.N.byteOffset+A.pos;B=new DataView(A.N.buffer,B,Math.min(L,A.N.buffer.byteLength-B));B=new Hq(B,A.start+A.pos);A.pos+=L;return B};
|
|
md=function(A){for(var L=T5(A,!0),B=Xd(A),f=1;f<L;f++)B=B*256+Xd(A);return B};
|
|
Cq=function(A){var L=T5(A,!0),B=0;L===4?B=A.N.getFloat32(A.pos):L===8&&(B=A.N.getFloat64(A.pos));A.pos+=L;return B};
|
|
w$8=function(A){var L=T5(A,!0);return G3($K(A,L))};
|
|
Xd=function(A){return A.N.getUint8(A.pos++)};
|
|
T5=function(A,L){var B=Xd(A);if(B===1){for(L=B=0;L<7;L++)B=B*256+Xd(A);return B}for(var f=128,K=0;K<6&&f>B;K++)B=B*256+Xd(A),f*=128;return L?B-f:B};
|
|
Qj=function(A){var L=T5(A,!0);A.pos+=L};
|
|
p$E=function(A){if(!kK(A,440786851,!0))return null;var L=A.pos;T5(A,!1);var B=T5(A,!0)+A.pos-L;A.pos=L+B;if(!kK(A,408125543,!1))return null;T5(A,!0);if(!kK(A,357149030,!0))return null;var f=A.pos;T5(A,!1);var K=T5(A,!0)+A.pos-f;A.pos=f+K;if(!kK(A,374648427,!0))return null;var V=A.pos;T5(A,!1);var J=T5(A,!0)+A.pos-V,R=new Uint8Array(B+12+K+J),Z=new DataView(R.buffer);R.set(new Uint8Array(A.N.buffer,A.N.byteOffset+L,B));Z.setUint32(B,408125543);Z.setUint32(B+4,33554431);Z.setUint32(B+8,4294967295);
|
|
R.set(new Uint8Array(A.N.buffer,A.N.byteOffset+f,K),B+12);R.set(new Uint8Array(A.N.buffer,A.N.byteOffset+V,J),B+12+K);return R};
|
|
O9=function(A){var L=A.pos;A.pos=0;var B=1E6;bn(A,[408125543,357149030,2807729])&&(B=md(A));A.pos=L;return B};
|
|
yE7=function(A,L){var B=A.pos;A.pos=0;if(A.N.getUint8(A.pos)!==160&&!E9(A)||!kK(A,160))return A.pos=B,NaN;T5(A,!0);var f=A.pos;if(!kK(A,161))return A.pos=B,NaN;T5(A,!0);Xd(A);var K=Xd(A)<<8|Xd(A);A.pos=f;if(!kK(A,155))return A.pos=B,NaN;f=md(A);A.pos=B;return(K+f)*L/1E9};
|
|
E9=function(A){if(!jEw(A)||!kK(A,524531317))return!1;T5(A,!0);return!0};
|
|
jEw=function(A){if(A.qE()){if(!kK(A,408125543))return!1;T5(A,!0)}return!0};
|
|
bn=function(A,L){for(var B=0;B<L.length;B++){if(!kK(A,L[B]))return!1;B!==L.length-1&&T5(A,!0)}return!0};
|
|
kK=function(A,L,B){B=B===void 0?!1:B;if(hI(A))return!1;for(var f=A.pos;T5(A,!1)!==L;)if(Qj(A),f=A.pos,hI(A))return!1;B&&(A.pos=f);return!0};
|
|
dSw=function(A,L){L||(L=Math.ceil(Math.log(A+2)/Math.log(2)/7));for(var B=1<<8-L,f=[];f.length<L-1;)f.unshift(A%256),A=Math.floor(A/256);f.unshift(A|B);return f};
|
|
$K=function(A,L){var B=new Uint8Array(A.N.buffer,A.N.byteOffset+A.pos,L);A.pos+=L;return B};
|
|
cq=function(A){this.QN=A;this.N={};this.url=""};
|
|
gm7=function(A,L){var B=L.indexOf("?");if(B>0){var f=J1(41,L.substring(B+1));g.H6(f,function(K,V){this.set(V,K)},A);
|
|
L=L.substring(0,B)}L=k7(2,L);g.H6(L,function(K,V){this.set(V,K)},A)};
|
|
GYS=function(A){var L=A.QN.MQ(),B=[];g.H6(A.N,function(K,V){B.push(V+"="+K)});
|
|
if(!B.length)return L;var f=B.join("&");A=sD(16,A.QN)?"&":"?";return L+A+f};
|
|
Mj=function(A,L){var B=new g.Fk(L);(L=B.get("req_id"))&&A.set("req_id",L);g.H6(A.N,function(f,K){B["set"](K,null)});
|
|
return B};
|
|
rEv=function(){this.U=this.V=this.N=this.timedOut=this.started=this.D=this.W=0};
|
|
YK=function(A){A.D=(0,g.bc)();A.started=0;A.timedOut=0;A.N=0};
|
|
U9=function(A,L){var B=A.started+A.N*4;L&&(B+=A.V);B=Math.max(0,B-3);return Math.pow(1.6,B)};
|
|
Wq=function(A,L){A[L]||(A[L]=new rEv);return A[L]};
|
|
vq=function(A){this.yj=this.X=this.D=this.V=0;this.G=this.T=!1;this.N=A;this.W=A.clone()};
|
|
sE6=function(A,L,B){if(k7(51,A.N))return!1;var f=Wq(B,wy(17,A.N));if(f.timedOut<1&&f.N<1)return!1;f=f.timedOut+f.N;A=qj(A,L);B=Wq(B,wy(18,A));return B.timedOut+B.N+0<f};
|
|
Pq=function(A,L,B){A=L?qj(A,B):A.N;return new cq(A)};
|
|
qj=function(A,L){L=L?L.JV:!1;A.U||(A.U=J1(4,A.W,L));return A.U};
|
|
xK=function(A,L,B){return wy(18,L?qj(A,B):A.N)};
|
|
ez=function(A,L,B,f){(f===void 0?0:f)>1?L=L.Xnr:(B=Wq(B,xK(A,A.P9(L,B),L)),L=Math.max(A.D,B.timedOut)+L.OT*(A.V-A.D)+.25*A.X,L=L>3?1E3*Math.pow(1.6,L-3):0);return L===0?!0:A.yj+L<(0,g.bc)()};
|
|
HU1=function(A,L,B){A.N.set(L,B);A.W.set(L,B);A.U&&A.U.set(L,B)};
|
|
hsD=function(A,L,B,f,K){++A.V;L&&++A.D;wy(23,B.QN).startsWith("redirector.")&&(A.N=A.W.clone(),delete A.U,f.oE&&delete K[wy(18,A.N)])};
|
|
nq=function(A){return A?(A.itag||"")+";"+(A.lmt||0)+";"+(A.xtags||""):""};
|
|
z5=function(A,L,B,f){this.initRange=B;this.indexRange=f;this.N=null;this.V=!1;this.T=0;this.U=this.zd=this.W=null;this.info=L;this.wi=new vq(A)};
|
|
un=function(A,L){return nq(g.vV(A.info,L))};
|
|
as=function(A,L){this.start=A;this.end=L;this.length=L-A+1};
|
|
AL=function(A){A=A.split("-");var L=Number(A[0]),B=Number(A[1]);if(!isNaN(L)&&!isNaN(B)&&A.length===2&&(A=new as(L,B),!isNaN(A.start)&&!isNaN(A.end)&&!isNaN(A.length)&&A.length>0))return A};
|
|
L3=function(A,L){return new as(A,A+L-1)};
|
|
bUE=function(A){return A.end==null?{start:String(A.start)}:{start:String(A.start),end:String(A.end)}};
|
|
op=function(A){if(!A)return new as(0,0);var L=Number(A.start);A=Number(A.end);if(!isNaN(L)&&!isNaN(A)&&(L=new as(L,A),L.length>0))return L};
|
|
Bp=function(A,L,B,f,K,V,J,R,Z,N,F,D){f=f===void 0?"":f;this.type=A;this.b1=L;this.range=B;this.source=f;this.Gb=F;this.clipId=D===void 0?"":D;this.G=[];this.T="";this.XD=-1;this.yj=0;this.T=f;this.XD=K>=0?K:-1;this.startTime=V||0;this.duration=J||0;this.N=R||0;this.W=Z>=0?Z:this.range?this.range.length:NaN;this.V=this.range?this.N+this.W===this.range.length:N===void 0?!!this.W:N;this.range?(this.U=this.startTime+this.duration*this.N/this.range.length,this.X=this.duration*this.W/this.range.length,
|
|
this.D=this.U+this.X):t9k(this)};
|
|
t9k=function(A){A.U=A.startTime;A.X=A.duration;A.D=A.U+A.X};
|
|
kYe=function(A,L,B){var f=!(!L||L.b1!==A.b1||L.type!==A.type||L.XD!==A.XD);return B?f&&!!L&&(A.range&&L.range?L.range.end===A.range.end:L.range===A.range)&&L.N+L.W===A.N+A.W:f};
|
|
f3=function(A){return A.type===1||A.type===2};
|
|
K3=function(A){return A.type===3||A.type===6};
|
|
Vs=function(A,L){return A.b1===L.b1?A.range&&L.range?A.range.start+A.N+A.W===L.range.start+L.N:A.XD===L.XD?A.N+A.W===L.N:A.XD+1===L.XD&&L.N===0&&A.V:!1};
|
|
lTe=function(A,L){return A.XD!==L.XD&&L.XD!==A.XD+1||A.type!==L.type?!1:Vs(A,L)?!0:Math.abs(A.U-L.U)<=1E-6&&A.XD===L.XD?!1:Tj0(A,L)};
|
|
Tj0=function(A,L){return Vs(A,L)||Math.abs(A.D-L.U)<=1E-6||A.XD+1===L.XD&&L.N===0&&A.V?!0:!1};
|
|
JL=function(A){return A.XD+(A.V?1:0)};
|
|
mSC=function(A){A.length===1||g.Q9(A,function(B){return!!B.range});
|
|
for(var L=1;L<A.length;L++);L=A[A.length-1];return new as(A[0].range.start+A[0].N,L.range.start+L.N+L.W-1)};
|
|
QED=function(A){for(var L=1;L<A.length;L++)if(!Vs(A[L-1],A[L]))return!1;return!0};
|
|
Cde=function(A){var L=0;A=g.m(A);for(var B=A.next();!B.done;B=A.next())L+=B.value.range.length;return L};
|
|
Sl=function(A){var L={};L.itag=A.b1.info.itag;L.type=""+A.type;L.src=""+A.source;L.segsrc=A.T;L.seg=String(A.XD);A.range&&(L.range=A.range.start+A.N+"-"+(A.range.start+A.N+A.W-1));L.time=A.U.toFixed(1)+"-"+(A.U+A.X).toFixed(1);L.off=String(A.N);L.len=String(A.W);A.V&&(L.end="1");A.Ad()&&(L.eos="1");A.clipId&&(L.cid=A.clipId);return L};
|
|
iUw=function(A){return new Bp(A.type,A.b1,A.range,"getEmptyStubBefore"+A.T,A.XD,A.startTime,0,A.N,0)};
|
|
$S0=function(A){return new Bp(A.type,A.b1,A.range,"getEmptyStubAfter"+A.T,A.XD,A.startTime+A.duration,0,A.N+A.W,0)};
|
|
X$7=function(A,L,B,f){return new Bp(A.type,A.b1,A.range,"reslice"+A.T,A.XD,A.startTime,A.duration,L,B,f,A.Gb,A.clipId)};
|
|
OUk=function(A,L){return A.b1!==L.b1?!1:A.range&&L.range?A.range.start+A.N>=L.range.start+L.N&&A.range.start+A.N+A.W<=L.range.start+L.N+L.W:A.XD===L.XD&&A.N>=L.N&&(A.N+A.W<=L.N+L.W||L.V)};
|
|
EmL=function(A,L){return A.b1!==L.b1?!1:A.type===4&&L.type===3&&A.b1.w1()?(A=A.b1.kW(A),K9(A,function(B){return EmL(B,L)})):A.XD===L.XD&&!!L.W&&L.N+L.W>A.N&&L.N+L.W<=A.N+A.W};
|
|
Rp=function(A,L){var B=L.XD;A.T="updateWithSegmentInfo";A.XD=B;if(A.startTime!==L.startTime||A.duration!==L.duration)A.startTime=L.startTime,A.duration=L.duration,t9k(A)};
|
|
ZY=function(A,L){var B=this;this.Lr=A;this.U=this.N=null;this.D=this.FH=NaN;this.P9=this.requestId=null;this.GV={Xqs:function(){return B.range}};
|
|
this.wi=A[0].b1.wi;this.W=L||"";this.Lr[0].range&&this.Lr[0].W>0&&(QED(A)?(this.range=mSC(A),this.V=this.range.length):(this.range=this.Lr[this.Lr.length-1].range,this.V=Cde(A)))};
|
|
NP=function(A){return!f3(A.Lr[A.Lr.length-1])};
|
|
FV=function(A){return A.Lr[A.Lr.length-1].type===4};
|
|
g.DY=function(A,L,B){B=A.P9===null?A.wi.P9(L,B,A.Lr[0].type):A.P9;if(A.N){L=B?J1(20,A.N,L.JV):A.N;var f=new cq(L);f.get("alr")||f.set("alr","yes");A.W&&gm7(f,A.W)}else/http[s]?:\/\//.test(A.W)?f=new cq(new g.Fk(A.W)):(f=Pq(A.wi,B,L),A.W&&gm7(f,A.W));(L=A.range)?f.set("range",L.toString()):A.Lr[0].b1.g2()&&A.Lr.length===1&&A.Lr[0].N&&f.set("range",A.Lr[0].N+"-");A.requestId&&f.set("req_id",A.requestId);isNaN(A.FH)||f.set("headm",A.FH.toString());isNaN(A.D)||f.set("mffa",A.D+"ms");A.urlParams&&g.H6(A.urlParams,
|
|
function(K,V){f.set(V,K)});
|
|
return f};
|
|
cEy=function(A){if(A.range)return A.V;A=A.Lr[0];return Math.round(A.X*A.b1.info.lC)};
|
|
M98=function(A,L){return Math.max(0,A.Lr[0].U-L)};
|
|
Yb7=function(A,L){A=g.m(A.Lr);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.type===3&&L>=B.U&&L<=B.D)return!0;return!1};
|
|
dR=function(A,L,B,f,K,V){V=V===void 0?0:V;z5.call(this,A,L,f,void 0);this.D=B;this.oC=V;this.index=K||new g.Lq};
|
|
USk=function(A,L,B,f,K){this.XD=A;this.startSecs=L;this.Dj=B;this.N=f||NaN;this.W=K||NaN};
|
|
Ip=function(A,L,B){for(;A;A=A.parentNode)if(A.attributes&&(!B||A.nodeName===B)){var f=A.getAttribute(L);if(f)return f}return""};
|
|
wR=function(A,L){for(;A;A=A.parentNode){var B=A.getElementsByTagName(L);if(B.length>0)return B[0]}return null};
|
|
WD0=function(A){if(!A)return 0;var L=A.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return L?(Number(L[2])|0)*3600+(Number(L[4])|0)*60+(Number(L[6])|0):Number(A)|0};
|
|
vm1=function(A){return A.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?A+"Z":A};
|
|
p3=function(){this.N=[];this.W=null;this.T=0;this.V=[];this.D=!1;this.X="";this.U=-1};
|
|
qb0=function(A){var L=A.V;A.V=[];return L};
|
|
Pd6=function(){this.U=[];this.N=null;this.W={};this.V={}};
|
|
zsS=function(A,L){var B=[];L=Array.from(L.getElementsByTagName("SegmentTimeline"));L=g.m(L);for(var f=L.next();!f.done;f=L.next()){f=f.value;var K=f.parentNode.parentNode,V=null;K.nodeName==="Period"?V=xSE(A):K.nodeName==="AdaptationSet"?(K=K.getAttribute("id")||K.getAttribute("mimetype")||"",V=ese(A,K)):K.nodeName==="Representation"&&(K=K.getAttribute("id")||"",V=nmk(A,K));if(V==null)return;V.update(f);g.VB(B,qb0(V))}g.VB(A.U,B);Afv(A.U,function(J){return J.startSecs*1E3+J.N})};
|
|
uwQ=function(A){A.N&&(A.N.N=[]);g.H6(A.W,function(L){L.N=[]});
|
|
g.H6(A.V,function(L){L.N=[]})};
|
|
xSE=function(A){A.N||(A.N=new p3);return A.N};
|
|
ese=function(A,L){A.W[L]||(A.W[L]=new p3);return A.W[L]};
|
|
nmk=function(A,L){A.V[L]||(A.V[L]=new p3);return A.V[L]};
|
|
jl=function(A){var L=A===void 0?{}:A;A=L.oC===void 0?0:L.oC;var B=L.CO===void 0?!1:L.CO;var f=L.xH===void 0?0:L.xH;var K=L.F3===void 0?0:L.F3;var V=L.lW===void 0?Infinity:L.lW;var J=L.T2===void 0?0:L.T2;var R=L.SD===void 0?!1:L.SD;L=L.gF===void 0?!1:L.gF;g.Lq.call(this);this.Od=this.Jj=-1;this.So=A;this.xH=f;this.CO=B;this.F3=K;this.lW=V;this.T2=J;((this.SD=R)||isFinite(V)&&this.lW>0)&&B&&ys&&(this.W=!1,this.V="postLive");this.gF=L};
|
|
gR=function(A,L){return Dw(A.segments,function(B){return L-B.XD})};
|
|
GW=function(A,L,B){B=B===void 0?{}:B;dR.call(this,A,L,"",void 0,void 0,B.oC||0);this.index=new jl(B)};
|
|
rR=function(A,L,B){z5.call(this,A,L);this.D=B;A=this.index=new g.Lq;A.W=!1;A.V="d"};
|
|
aT7=function(A,L,B){var f=A.index.pU(L),K=A.index.getStartTime(L),V=A.index.getDuration(L);B?V=B=0:B=A.info.lC*V;return new ZY([new Bp(3,A,void 0,"otfCreateRequestInfoForSegment",L,K,V,0,B)],f)};
|
|
AT6=function(A,L){if(!A.index.isLoaded()){var B=[],f=L.U;L=L.D.split(",").filter(function(F){return F.length>0});
|
|
for(var K=0,V=0,J=0,R=/^(\d+)/,Z=/r=(\d+)/,N=0;N<f;N++){if(J<=0)if(J=L.shift(),V=(V=R.exec(J))?+V[1]/1E3:0)J=(J=Z.exec(J))?+J[1]:0,J+=1;else return;B.push(new AI(N,K,V,NaN,"sq/"+(N+1)));K+=V;J--}A.index.append(B)}};
|
|
g.sI=function(A){this.tag=A};
|
|
oaw=function(A,L){LP6.apply(null,[6,A instanceof g.sI?A.tag:A,L].concat(g.x7(g.pf.apply(2,arguments))))};
|
|
g.Hp=function(A,L){LP6.apply(null,[5,A instanceof g.sI?A.tag:A,L].concat(g.x7(g.pf.apply(2,arguments))))};
|
|
LP6=function(A,L,B){var f=g.pf.apply(3,arguments),K=A===6?"ERROR":"WARNING",V="b"+B;g.mL(new (Function.prototype.bind.apply(g.iL,[null,V].concat(g.x7(f)))),K);f.unshift(V);f=f.join(", ");K=BN8.get(L);if(!K){K="ytplog."+L;V=5;try{window.localStorage&&!isNaN(+window.localStorage[K])&&(V=+window.localStorage[K]),window.sessionStorage&&!isNaN(+window.sessionStorage[K])&&(V=+window.sessionStorage[K])}catch(Z){}BN8.set(L,V);K=V}if(!(A<K)){K=f2e;V=K.N.get(L);V||(V=new KPD,K.N.set(L,V));K=V;V=Date.now();
|
|
var J=Math.floor((V-K.W)*.01);J>0&&(K.N=Math.min(K.N+J,10),K.W=V);K.N>0?(K.N--,K=!0):K=!1;if(K)typeof f==="function"&&(f=f()),console.log("plyr."+L,f);else{var R;f=((R=Vov.get(L))!=null?R:0)+1;Vov.set(L,f);f%100===1&&console.warn("plyr","plyr."+L+" is chatty, dropping logs.")}}};
|
|
KPD=function(){this.N=10;this.W=Date.now()};
|
|
hL=function(A,L){this.info=A;this.W=L;this.N=null;this.U=this.V=-1;this.timestampOffset=0;this.isLocked=this.T=!1;this.D=this.info.b1.mE()&&!this.info.N};
|
|
g.b7=function(A){return sIQ(A.W)};
|
|
JTL=function(A,L){L=Math.min(L,A.info.W);var B=A.W.split(L),f=B.Mz;B=new hL(new Bp(A.info.type,A.info.b1,A.info.range,A.info.T,A.info.XD,A.info.startTime,A.info.duration,A.info.N,L,!1,A.info.Gb,A.info.clipId),B.NJ);B.U=A.U;B.V=A.V;L=new hL(new Bp(A.info.type,A.info.b1,A.info.range,A.info.T,A.info.XD,A.info.startTime,A.info.duration,A.info.N+L,A.info.W-L,A.info.V,A.info.Gb,A.info.clipId),f);L.U=A.U;L.V=A.V;return[B,L]};
|
|
g.tL=function(A,L,B,f){B=B===void 0?!1:B;f=f===void 0?0:f;if(A.isLocked||L.isLocked||!Vs(A.info,L.info)||A.info.V)return null;if(f){if(A.W.totalLength+L.W.totalLength>f)return null}else if(B&&(B=A.W,f=L.W,B=!(f.N.length?GPQ(B,f.N[0]):1)),B)return null;B=new Bp(A.info.type,A.info.b1,A.info.range,A.info.T,A.info.XD,A.info.startTime,A.info.duration,A.info.N,A.info.W,A.info.V,A.info.Gb,A.info.clipId);f=L.info;B.W+=f.W;B.range&&(B.X+=f.X);B.D=f.D;B.V=f.V;f=new FK;DF(f,A.W);DF(f,L.W);B=new hL(B,f);B.N!=
|
|
null&&L.N!=null&&g.Hp("dash",414627957,"merged slice emsg overridden; prev: "+B.N.UK()+" next: "+L.N.UK());B.N=L.N||A.N;B.V=A.V!==-1?A.V:L.V;B.U=A.U!==-1?A.U:L.U;return B};
|
|
g.k6=function(A){g.U2(A.info.b1.info)||A.info.b1.info.qU();if(A.V!==-1)return A.V;if(A.N&&LD6(A.N))return A.V=LD6(A.N),A.V;if(g.U2(A.info.b1.info)){var L=g.b7(A);for(var B=A.info.b1.N,f=NaN,K=NaN,V=0;yj(L,V);){var J=jz(L,V);J.type===1936286840?K=J.data.getUint32(J.dataOffset+8):J.type===1836476516?K=g.Is(J):J.type===1952867444&&isNaN(f)&&(f=g.G5(J));V=gD(J.type)?V+8:V+J.size}!K&&B&&(K=wD(B));L=f/K}else L=new Hq(g.b7(A)),B=A.D?L:new Hq(new DataView(A.info.b1.N.buffer)),f=O9(B),B=L.pos,L.pos=0,E9(L)?
|
|
kK(L,231)?(f=md(L)*f/1E9,L.pos=B,L=f):(L.pos=B,L=NaN):(L.pos=B,L=NaN);A.V=L||A.info.U;return A.V};
|
|
Rov=function(A,L){A.timestampOffset>0&&(L-=A.timestampOffset);var B=g.k6(A)+L;S28(A,B);A.timestampOffset=L};
|
|
S28=function(A,L){g.U2(A.info.b1.info)||A.info.b1.info.qU();A.V=L;if(g.U2(A.info.b1.info)){var B=g.b7(A);A=A.info.b1.N;for(var f=NaN,K=NaN,V=0;yj(B,V);){var J=jz(B,V);isNaN(f)&&(J.type===1936286840?f=J.data.getUint32(J.dataOffset+8):J.type===1836476516&&(f=g.Is(J)));if(J.type===1952867444){!f&&A&&(f=wD(A));var R=g.G5(J);isNaN(K)&&(K=Math.round(L*f)-R);var Z=J;R+=K;if(Z.data.getUint8(Z.dataOffset)){var N=Z.data;Z=Z.dataOffset+4;N.setUint32(Z,Math.floor(R/4294967296));N.setUint32(Z+4,R&4294967295)}else Z.data.setUint32(Z.dataOffset+
|
|
4,R)}V=gD(J.type)?V+8:V+J.size}return!0}B=new Hq(g.b7(A));A=A.D?B:new Hq(new DataView(A.info.b1.N.buffer));f=O9(A);A=B.pos;B.pos=0;if(E9(B)&&kK(B,231))if(K=T5(B,!0),L=Math.floor(L*1E9/f),Math.ceil(Math.log(L)/Math.log(2)/8)>K)L=!1;else{for(f=K-1;f>=0;f--)B.N.setUint8(B.pos+f,L&255),L>>>=8;B.pos=A;L=!0}else L=!1;return L};
|
|
l7=function(A,L){L=L===void 0?!1:L;var B=TW(A);A=L?0:A.info.X;return B||A};
|
|
TW=function(A){g.U2(A.info.b1.info)||A.info.b1.info.qU();if(A.N&&A.info.type===6)return A.N.oC;if(g.U2(A.info.b1.info)){var L=g.b7(A);var B=0;L=g.s9(L,1936286840);L=g.m(L);for(var f=L.next();!f.done;f=L.next())f=RsL(f.value),B+=f.zl[0]/f.timescale;B=B||NaN;if(!(B>=0))a:{B=g.b7(A);L=A.info.b1.N;for(var K=f=0,V=0;yj(B,f);){var J=jz(B,f);if(J.type===1836476516)K=g.Is(J);else if(J.type===1836019558){!K&&L&&(K=wD(L));if(!K){B=NaN;break a}var R=pq(J.data,J.dataOffset,1953653094),Z=R;R=K;var N=pq(Z.data,
|
|
Z.dataOffset,1952868452);Z=pq(Z.data,Z.dataOffset,1953658222);var F=Kq(N);Kq(N);F&2&&Kq(N);N=F&8?Kq(N):0;var D=Kq(Z),I=D&1;F=D&4;var d=D&256,w=D&512,r=D&1024;D&=2048;var h=Vj(Z);I&&Kq(Z);F&&Kq(Z);for(var Q=I=0;Q<h;Q++){var l=d?Kq(Z):N;w&&Kq(Z);F&&Q===0||!r||Kq(Z);D&&Kq(Z);I+=l}V+=I/R}f=gD(J.type)?f+8:f+J.size}B=V||NaN}B||g.CE(new g.iL("Missing duration while parsing bmff",A.info.Dx()))}else B=new Hq(g.b7(A)),A=A.D?B:new Hq(new DataView(A.info.b1.N.buffer)),B=yE7(B,O9(A));return B};
|
|
g.Z$1=function(A){if(A.info.b1.BB())return A.info.duration;A.U===-1&&(A.U=TW(A));return A.U||A.info.duration};
|
|
NND=function(A){var L=g.b7(A);var B=(B=g.dD(L,0,1936286840))?B.data.getUint32(B.dataOffset+8):NaN;isNaN(B)&&(A=A.info.b1.N,B=(L=g.dD(L,0,1836476516))?g.Is(L):A?wD(A):NaN);return B};
|
|
FP6=function(A){return A.info.b1.info.qU()&&jU(A.W,0)===160};
|
|
Dbe=function(A){if(!A.N){g.U2(A.info.b1.info)||A.info.b1.info.qU();if(g.U2(A.info.b1.info))var L=g.Njw(g.b7(A));else{L=new Hq(g.b7(A));var B=L.pos;L.pos=0;var f=null,K=null;if(bn(L,[408125543,307544935]))for(var V=L.pos+T5(L,!0);L.pos<V;)if(T5(L,!1)!==29555)Qj(L);else for(var J=L.pos+T5(L,!0);L.pos<J;)if(T5(L,!1)!==26568)Qj(L);else for(var R=L.pos+T5(L,!0);L.pos<R;){var Z=T5(L,!1);if(Z===17543){if(Z=w$8(L),Z=Dc(Z))if(K)for(var N=g.m(Object.keys(Z)),F=N.next();!F.done;F=N.next())F=F.value,K[F]=Z[F];
|
|
else K=Z}else Z===17827?(Z=w$8(L),f||(f=Z)):Qj(L)}L.pos=B;L=K?new Fd(K,f):null}A.N=L}};
|
|
mr=function(A){if(!A.T){if(g.U2(A.info.b1.info)){var L=g.b7(A);var B=pq(L,0,1836019574);if(B){B=B.offset+B.size;var f=new Uint8Array(B);f.set(new Uint8Array(L.buffer,L.byteOffset,B));L=f}else L=null}else L=p$E(new Hq(g.b7(A)));L&&(A.info.b1.N=L,A.T=!0)}};
|
|
g.Qs=function(){this.count=0;this.N=1;this.W=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
|
|
dbv=function(A,L){return L+1<A.count||A.W?A.offsets[L+1]-A.offsets[L]:-1};
|
|
C3=function(A){A.offsets.length<A.count+1&&A.resize(A.offsets.length*2)};
|
|
i7=function(A,L,B,f){z5.call(this,A,L,B,f);var K=this;this.D=null;this.GV={FI:function(V,J,R,Z){return K.FI(V,J,R,Z)}};
|
|
this.index=new g.Qs};
|
|
I26=function(A,L,B,f,K,V){this.displayName=A;this.vssId=L;this.languageCode=B;this.kind=f===void 0?"":f;this.xtags=K===void 0?"":K;this.id=V===void 0?"":V};
|
|
pVQ=function(A){if(A=A.colorInfo)if(A=A.transferCharacteristics)return wV6[A];return null};
|
|
g.$6=function(A,L,B,f){this.name=A;this.id=L;this.isDefault=B;this.isAutoDubbed=f===void 0?!1:f};
|
|
yT7=function(A){return XV(function(L,B){return g.il(L,B,4,1E3)},A,{format:"RAW",
|
|
method:"GET",withCredentials:!0})};
|
|
g.jTv=function(A){var L;A.responseType&&A.responseType!=="text"?A.responseType==="arraybuffer"&&(L=G3(new Uint8Array(A.response))):L=A.responseText;return!L||L.length>2048?"":L.indexOf("https://")===0?L:""};
|
|
XV=function(A,L,B){L.match(ga7);return A(L,B).then(function(f){var K=g.jTv(f.xhr);return K?XV(A,K,B):f.xhr})};
|
|
MP=function(A,L,B){A=A===void 0?"":A;L=L===void 0?null:L;B=B===void 0?!1:B;g.SN.call(this);var f=this;this.sourceUrl=A;this.isLivePlayback=B;this.Ex=this.duration=0;this.isPremiere=this.SD=this.U=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.lW=this.F3=0;this.isOtf=this.iC=!1;this.S4=(0,g.bc)();this.qp=Infinity;this.N={};this.V=new Map;this.state=this.zy=0;this.X=null;this.isManifestless=!1;this.ZM=[];this.D=null;this.wT=0;this.T="";this.JF=NaN;this.SO=this.E0=this.timestampOffset=this.G=0;this.F9=
|
|
this.CK=NaN;this.HY=0;this.Ys=this.Wn=!1;this.Cr=[];this.sx={};this.Vj=NaN;this.GV={Yk4:function(R){OI(f,R)}};
|
|
var K;this.cn=(K=L)==null?void 0:K.GL("html5_use_network_error_code_enums");GvE=!!L&&L.GL("html5_modern_vp9_mime_type");var V;EI=!((V=L)==null||!V.GL("html5_enable_flush_during_seek"))&&g.ng();var J;cp=!((J=L)==null||!J.GL("html5_enable_reset_audio_decoder"))&&g.ng()};
|
|
rTe=function(A){return g.gy(A.N,function(L){return!!L.info.video&&L.info.video.qualityOrdinal>=2160})};
|
|
vGE=function(A){return g.gy(A.N,function(L){return!!L.info.video&&L.info.video.isHdr()})};
|
|
PZ=function(A){return g.gy(A.N,function(L){return!!L.info.Zj})};
|
|
g.sT8=function(A){return g.gy(A.N,function(L){return xa(L.info.mimeType)})};
|
|
H$k=function(A){return g.gy(A.N,function(L){return L.info.video?L.info.video.projectionType==="EQUIRECTANGULAR":!1})};
|
|
ho8=function(A){return g.gy(A.N,function(L){return L.info.video?L.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
|
|
b$0=function(A){return g.gy(A.N,function(L){return L.info.video?L.info.video.projectionType==="MESH":!1})};
|
|
to6=function(A){return g.gy(A.N,function(L){return L.info.video?L.info.video.stereoLayout===1:!1})};
|
|
kvQ=function(A){return KtL(A.N,function(L){return L.info.video?L.dn():!0})};
|
|
WZ=function(A){return g.gy(A.N,function(L){return k7(50,L.wi.N)})};
|
|
OI=function(A,L){A.N[L.info.id]=L;A.V.set(un(L,A.iC),L)};
|
|
Wp=function(A,L,B){B=B===void 0?0:B;var f=A.mimeType||"",K=A.itag;var V=A.xtags;K=K?K.toString():"";V&&(K+=";"+V);V=K;if(PV(f)){var J=A.width||640;K=A.height||360;var R=A.fps,Z=A.qualityLabel,N=A.qualityOrdinal,F=A.colorInfo,D=A.projectionType,I;A.stereoLayout&&(I=TN0[A.stereoLayout]);var d=pVQ(A)||void 0;if(F==null?0:F.primaries)var w=l2e[F.primaries]||void 0;J=new Tv(J,K,R,D,I,void 0,Z,N&&mbQ[N],d,w);f=Y6(f,J,Qu[A.itag||""]);EI&&(f+="; enableflushduringseek=true");cp&&(f+="; enableresetaudiodecoder=true")}var r;
|
|
if(qb(f)){var h=A.audioSampleRate;I=A.audioTrack;h=new IT(h?+h:void 0,A.audioChannels,A.spatialAudioType,A.isDrc,A.loudnessDb,A.trackAbsoluteLoudnessLkfs,A.audioQuality||"AUDIO_QUALITY_UNKNOWN",A.isVb);I&&(w=I.displayName,K=I.id,R=I.audioIsDefault,I=I.isAutoDubbed,w&&(r=new g.$6(w,K||"",!!R,!!I)))}var Q;A.captionTrack&&(Z=A.captionTrack,I=Z.displayName,w=Z.vssId,K=Z.languageCode,R=Z.kind,Z=Z.id,I&&w&&K&&(Q=new I26(I,w,K,R,A.xtags,Z)));I=Number(A.bitrate)/8;w=Number(A.contentLength);K=Number(A.lastModified);
|
|
Z=A.drmFamilies;R=A.type;B=B&&w?w/B:0;A=Number(A.approxDurationMs);if(L&&Z){var l={};Z=g.m(Z);for(N=Z.next();!N.done;N=Z.next())(N=UI[N.value])&&(l[N]=L[N])}return new C$(V,f,{audio:h,video:J,ri:r,Zj:l,lC:I,xS:B,contentLength:w,lastModified:K,captionTrack:Q,streamType:R,approxDurationMs:A})};
|
|
vp=function(A,L,B){B=B===void 0?0:B;var f=A.type;var K=A.itag;var V=A.xtags;V&&(K=A.itag+";"+V);if(PV(f)){var J=(A.size||"640x360").split("x");J=new Tv(+J[0],+J[1],+A.fps,A.projection_type,+A.stereo_layout,void 0,A.quality_label,+A.quality_ordinal,A.eotf,A.primaries);f=Y6(f,J,Qu[A.itag]);EI&&(f+="; enableflushduringseek=true");cp&&(f+="; enableresetaudiodecoder=true")}var R;if(qb(f)){var Z=new IT(+A.audio_sample_rate||void 0,+A.audio_channels||0,A.spatial_audio_type,!!A.drc);A.name&&(R=new g.$6(A.name,
|
|
A.audio_track_id,A.isDefault==="1",A.isAutoDubbed==="1"))}var N;A.caption_display_name&&A.caption_vss_id&&A.caption_language_code&&(N=new I26(A.caption_display_name,A.caption_vss_id,A.caption_language_code,A.caption_kind,A.xtags,A.caption_id));V=Number(A.bitrate)/8;var F=Number(A.clen),D=Number(A.lmt);B=B&&F?F/B:0;if(L&&A.drm_families){var I={};for(var d=g.m(A.drm_families.split(",")),w=d.next();!w.done;w=d.next())w=w.value,I[w]=L[w]}return new C$(K,f,{audio:Z,video:J,ri:R,Zj:I,lC:V,xS:B,contentLength:F,
|
|
lastModified:D,captionTrack:N,streamType:A.stream_type,approxDurationMs:Number(A.approx_duration_ms)})};
|
|
QTk=function(A){return K9(A,function(L){return"FORMAT_STREAM_TYPE_OTF"===L.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
|
|
CQ0=function(A){return K9(A,function(L){return"FORMAT_STREAM_TYPE_OTF"===L.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
|
|
i$v=function(A,L){return A.X?JO(A.X.U,L):A.ZM.length?JO(A.ZM,L):[]};
|
|
qP=function(A,L,B){L=L===void 0?"":L;B=B===void 0?"":B;A=new g.Fk(A,!0);A.set("alr","yes");B&&(B=sD(20,decodeURIComponent(B)),A[S[18]](L,encodeURIComponent(B)));return A};
|
|
Eaw=function(A,L){var B=Ip(L,"id");B=B.replace(":",";");var f=Ip(L,"mimeType"),K=Ip(L,"codecs");f=K?f+'; codecs="'+K+'"':f;K=Number(Ip(L,"bandwidth"))/8;var V=Number(wR(L,"BaseURL").getAttribute(A.T+":contentLength")),J=A.duration&&V?V/A.duration:0;if(PV(f)){var R=Number(Ip(L,"width"));var Z=Number(Ip(L,"height")),N=Number(Ip(L,"frameRate")),F=$b6(Ip(L,A.T+":projectionType"));a:switch(Ip(L,A.T+":stereoLayout")){case "layout_left_right":var D=1;break a;case "layout_top_bottom":D=2;break a;default:D=
|
|
0}R=new Tv(R,Z,N,F,D)}if(qb(f)){var I=Number(Ip(L,"audioSamplingRate"));var d=Number(Ip(L.getElementsByTagName("AudioChannelConfiguration")[0],"value"));Z=XVS(Ip(L,A.T+":spatialAudioType"));I=new IT(I,d,Z);a:{d=Ip(L,"lang")||"und";if(Z=wR(L,"Role"))if(F=Ip(Z,"value")||"",g.kg(O$C,F)){Z=d+"."+O$C[F];N=F==="main";A=Ip(L,A.T+":langName")||d+" - "+F;d=new g.$6(A,Z,N);break a}d=void 0}}if(L=wR(L,"ContentProtection"))if(L.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var w={};for(L=
|
|
L.firstChild;L!=null;L=L.nextSibling)L instanceof Element&&/SystemURL/.test(L.nodeName)&&(A=L.getAttribute("type"),Z=L.textContent,A&&Z&&(w[A]=Z.trim()))}else w=void 0;return new C$(B,f,{audio:I,video:R,ri:d,Zj:w,lC:K,xS:J,contentLength:V})};
|
|
$b6=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"}};
|
|
XVS=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"}};
|
|
MoQ=function(A,L){L=L===void 0?"":L;A.state=1;A.S4=(0,g.bc)();return yT7(L||A.sourceUrl).then(function(B){if(!A.TL()){A.zy=B.status;B=B.responseText;var f=new DOMParser;B=W5(f,ImC(B),"text/xml").getElementsByTagName("MPD")[0];A.qp=WD0(Ip(B,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(B.attributes){f=g.m(B.attributes);for(var K=f.next();!K.done;K=f.next())if(K=K.value,K.value==="http://youtube.com/yt/2012/10/10"){f=K.name.split(":")[1];break b}}f=""}A.T=f;A.isLive=A.qp<Infinity&&A.isLivePlayback;A.Ex=
|
|
Number(Ip(B,A.T+":earliestMediaSequence"))||0;if(f=Date.parse(vm1(Ip(B,A.T+":mpdResponseTime"))))A.wT=((0,g.bc)()-f)/1E3;A.isLive&&B.getElementsByTagName("SegmentTimeline").length<=0||g.Q9(B.getElementsByTagName("Period"),A.HwL,A);A.state=2;A.publish("loaded");cT7(A)}return A}).c9(function(B){if(B instanceof Qh){var f=B.xhr;
|
|
A.zy=f.status}A.state=3;A.publish("loaderror");return $A(f)})};
|
|
Y2v=function(A,L,B){return MoQ(new MP(A,L,B),A)};
|
|
Pp=function(A){return A.isLive&&(0,g.bc)()-A.S4>=A.qp};
|
|
cT7=function(A){var L=A.qp;isFinite(L)&&(Pp(A)?A.refresh():(L=Math.max(0,A.S4+L-(0,g.bc)()),A.D||(A.D=new g.aa(A.refresh,L,A),g.W(A,A.D)),A.D.start(L)))};
|
|
Ubv=function(A){A=A.N;for(var L in A){var B=A[L].index;if(B.isLoaded())return B.uq()+1}return 0};
|
|
x6=function(A){return A.E0?A.E0-(A.G||A.timestampOffset):0};
|
|
el=function(A){return A.SO?A.SO-(A.G||A.timestampOffset):0};
|
|
n3=function(A){if(!isNaN(A.JF))return A.JF;var L=A.N,B;for(B in L){var f=L[B].index;if(f.isLoaded()&&!xa(L[B].info.mimeType)){L=0;for(B=f.OI();B<=f.uq();B++)L+=f.getDuration(B);L/=f.gW();L=Math.round(L/.5)*.5;f.gW()>10&&(A.JF=L);return L}if(A.isLive&&(f=L[B],f.oC))return f.oC}return NaN};
|
|
WP0=function(A,L){A=Jf8(A.N,function(f){return f.index.isLoaded()});
|
|
if(!A)return NaN;A=A.index;var B=A.NV(L);return A.getStartTime(B)===L?L:B<A.uq()?A.getStartTime(B+1):NaN};
|
|
va7=function(A,L){if(!A.N["0"]){var B=new C$("0","fakesb",{video:new Tv(0,0,0,void 0,void 0,"auto")});A.N["0"]=L?new dR(new g.Fk("http://www.youtube.com/videoplayback"),B,"fake"):new i7(new g.Fk("http://www.youtube.com/videoplayback"),B,new as(0,0),new as(0,0))}};
|
|
zW=function(A){if(A.isManifestless)for(var L in A.N)A.N[L].index.segments=[]};
|
|
u7=function(A,L,B){for(var f in A.N){var K=xa(A.N[f].info.mimeType)||A.N[f].info.WV();if(B===K&&(K=A.N[f].index)!=null){var V=gR(K,L);V>=0&&K.segments.splice(V,1)}}};
|
|
q20=function(A){for(var L in A.N)xa(A.N[L].info.mimeType)||nGv(A.N[L].index,Infinity)};
|
|
ap=function(A,L,B){for(var f in A.N){var K=A.N[f].index,V=L,J=B;K.CO&&(V&&(K.Jj=Math.max(K.Jj,V)),J&&(K.Od=Math.max(K.Od||0,J)))}B&&(A.Vj=B/1E3)};
|
|
PQy=function(A){A.SO=0;A.E0=0;A.HY=0};
|
|
A7=function(A){return A.Ys&&A.isManifestless?A.isLiveHeadPlayable:A.isLive};
|
|
Y6=function(A,L,B){LM===null&&(LM=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(GvE&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return LM||B!=="9"&&B!=="("?LM||B!=="9h"&&B!=="(h"||(A='video/webm; codecs="vp9.2"'):A='video/webm; codecs="vp9"',A;if(!LM&&!oj||A!=='video/webm; codecs="vp9"'&&A!=='video/webm; codecs="vp9.2"')return A;
|
|
B="00";var f="08",K="01",V="01",J="01";A==='video/webm; codecs="vp9.2"'&&(B="02",f="10",L.primaries==="bt2020"&&(J=K="09"),L.N==="smpte2084"&&(V="16"),L.N==="arib-std-b67"&&(V="18"));return'video/webm; codecs="'+["vp09",B,"51",f,"01",K,V,J,"00"].join(".")+'"'};
|
|
fM=function(A,L,B){A=""+A+(L>49?"p60":L>32?"p48":"");L=t2()[A];if(L!=null&&L>0)return L;L=BL.get(A);if(L!=null&&L>0)return L;B=B==null?void 0:B.get(A);return B!=null&&B>0?B:8192};
|
|
nae=function(A){this.tF=A;this.TZ=this.DZ=this.S4=this.D=this.U=this.ZM=this.sx=this.Wn=!1;this.X=this.T=0;this.Nl=!1;this.qp=!0;this.Ox=!1;this.Tb=0;this.Os=this.wT=!1;this.nD=!0;this.Cr=this.Ex=!1;this.W={};this.jI=this.zV=this.k6=this.disableAv1=this.mH=this.LD=this.ql=this.Uv=this.N=this.G=!1;this.Vj=0;this.m1=this.tF.J("html5_disable_aac_preference");this.N8=Infinity;this.JF=0;this.Pz=this.tF.hw();this.KY=this.tF.experiments.GL("html5_enable_vp9_fairplay");this.a8=this.tF.J("html5_force_av1_for_testing");
|
|
this.Po=this.tF.Qf().N.Iv(xbe);this.cn=g.Am(this.tF.experiments,"html5_av1_ordinal_cap");this.jD=this.tF.J("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.WR=this.tF.J("html5_account_onesie_format_selection_during_format_filter");this.lC=g.Am(this.tF.experiments,"html5_max_byterate");this.t$=this.tF.J("html5_enable_iamf_audio");this.Ys=this.tF.experiments.GL("html5_allow_capability_merge");this.o4=this.tF.Qf().N.Iv(eoS);this.GZ=this.tF.J("html5_enable_encrypted_av1")};
|
|
qZw=function(A){if(A.sx)return["f"];if(g.xz("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var L=["9h","9","h","8"];A.GZ&&L.push("1e");L=L.concat(["(h","(","H","*"]);A.wT&&(L.unshift("1"),L.unshift("1h"));A.DZ&&L.unshift("h");A.yj&&(L=(zoE[A.yj]||[A.yj]).concat(L));return L};
|
|
EG0=function(A){var L=["o","a","A"];A.JF===1&&(A.U&&(L=["mac3","MAC3"].concat(L)),A.D&&(L=["meac3","MEAC3"].concat(L)),A.t$&&(L=["i","I"].concat(L)));A.Wn&&(L=["so","sa"].concat(L));!A.TZ||A.S4||A.V||A.m1||L.unshift("a");A.V&&(L=(zoE[A.V]||[A.V]).concat(L));return L};
|
|
KM=function(A,L,B,f){L=L===void 0?{}:L;if(f===void 0?0:f)return L.disabled=1,0;if(u6(A.D,a4.AV1_CODECS)&&u6(A.D,a4.HEIGHT)&&u6(A.D,a4.BITRATE))return L.isCapabilityUsable=1,8192;try{var K=ymC();if(K&&!A.J("disable_av1_setting"))return L.localPref=K}catch(R){}f=1080;K=navigator.hardwareConcurrency;K<=2&&(f=480);L.coreCount=K;if(K=g.Am(A.experiments,"html5_default_av1_threshold"))f=L["default"]=K;if(A=A.D.Wn)L.mcap=A,f=Math.max(f,A);if(B){var V,J;if(A=(V=B.videoInfos.find(function(R){return Mb(R)}))==
|
|
null?void 0:(J=V.W)==null?void 0:J.powerEfficient)f=8192,L.isEfficient=1;
|
|
B=B.videoInfos[0].video;V=Math.min(fM("1",B.fps),fM("1",30));L.perfCap=V;f=Math.min(f,V);B.isHdr()&&!A&&(L.hdr=1,f*=.75)}else B=fM("1",30),L.perfCap30=B,f=Math.min(f,B),B=fM("1",60),L.perfCap60=B,f=Math.min(f,B);return L.av1Threshold=f};
|
|
VN=function(A,L,B,f){this.flavor=A;this.keySystem=L;this.W=B;this.experiments=f;this.N={};this.xf=this.keySystemAccess=null;this.Ub=this.wV=-1;this.LL=null;this.V=!!f&&f.GL("edge_nonprefixed_eme");f&&f.GL("html5_enable_vp9_fairplay")};
|
|
Sx=function(A){return A.V?!1:!A.keySystemAccess&&!!J7()&&A.keySystem==="com.microsoft.playready"};
|
|
Rj=function(A){return A.keySystem==="com.microsoft.playready"};
|
|
ZA=function(A){return!A.keySystemAccess&&!!J7()&&A.keySystem==="com.apple.fps.1_0"};
|
|
NM=function(A){return A.keySystem==="com.youtube.fairplay"};
|
|
F5=function(A){return A.keySystem==="com.youtube.fairplay.sbdl"};
|
|
g.DA=function(A){return A.flavor==="fairplay"};
|
|
J7=function(){var A=window,L=A.MSMediaKeys;aM()&&!L&&(L=A.WebKitMediaKeys);return L&&L.isTypeSupported?L:null};
|
|
Ij=function(A){return navigator.requestMediaKeySystemAccess?g.Z2&&!g.ng()?kC("45"):g.ns||g.pK?A.GL("edge_nonprefixed_eme"):g.de?kC("47"):g.yw&&A.GL("html5_enable_safari_fairplay")?!1:!0:!1};
|
|
u26=function(A,L,B,f){var K=zc(),V=(B=K||B&&aM())?["com.youtube.fairplay"]:["com.widevine.alpha"];L&&V.unshift("com.youtube.widevine.l3");K&&f&&V.unshift("com.youtube.fairplay.sbdl");return B?V:A?[].concat(g.x7(V),g.x7(we.playready)):[].concat(g.x7(we.playready),g.x7(V))};
|
|
pM=function(A,L,B,f,K){f=f===void 0?!1:f;g.Y.call(this);this.tF=L;this.useCobaltWidevine=f;this.Hn=K;this.W=[];this.V={};this.N={};this.callback=null;this.D=!1;this.U=[];this.initialize(A,!B)};
|
|
AAv=function(A,L){A.callback=L;A.U=[];Ij(A.tF.experiments)?yN(A):a27(A)};
|
|
yN=function(A){if(!A.TL())if(A.W.length===0)A.callback(A.U);else{var L=A.W[0],B=A.V[L],f=LaL(A,B);if(jx&&jx.keySystem===L&&jx.c_n===JSON.stringify(f))A.Hn("remksa",{re:!0}),oF6(A,B,jx.keySystemAccess);else{var K,V;A.Hn("remksa",{re:!1,ok:(V=(K=jx)==null?void 0:K.keySystem)!=null?V:""});jx=void 0;navigator.requestMediaKeySystemAccess(L,f).then(SH(function(J){oF6(A,B,J,f)}),SH(function(){A.D=!A.D&&A.V[A.W[0]].flavor==="widevine";
|
|
A.D||A.W.shift();yN(A)}))}}};
|
|
oF6=function(A,L,B,f){if(!A.TL()){f&&(jx={keySystem:L.keySystem,keySystemAccess:B,c_n:JSON.stringify(f)});L.keySystemAccess=B;if(Rj(L)){B=So();f=g.m(Object.keys(A.N[L.flavor]));for(var K=f.next();!K.done;K=f.next())K=K.value,L.N[K]=!!B.canPlayType(K)}else{B=L.keySystemAccess.getConfiguration();if(B.audioCapabilities)for(f=g.m(B.audioCapabilities),K=f.next();!K.done;K=f.next())L.N[K.value.contentType]=!0;if(B.videoCapabilities)for(B=g.m(B.videoCapabilities),f=B.next();!f.done;f=B.next())L.N[f.value.contentType]=
|
|
!0}A.U.push(L);A.useCobaltWidevine||A.J("html5_enable_vp9_fairplay")&&F5(L)?(A.W.shift(),yN(A)):A.callback(A.U)}};
|
|
LaL=function(A,L){var B={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(A.J("html5_enable_vp9_fairplay")&&NM(L))return B.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),B.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[B];Rj(L)&&(B.initDataTypes=["keyids","cenc"]);for(var f=g.m(Object.keys(A.N[L.flavor])),K=f.next();!K.done;K=f.next()){K=K.value;var V=K.indexOf("audio/")===0,J=V?B.audioCapabilities:B.videoCapabilities;L.flavor!==
|
|
"widevine"||A.D?J.push({contentType:K}):V?J.push({contentType:K,robustness:"SW_SECURE_CRYPTO"}):(g.Z2&&g.xz("windows nt")&&!A.J("html5_drm_enable_moho")||J.push({contentType:K,robustness:"HW_SECURE_ALL"}),V=K,A.tF.D.W&&K.includes("vp09")&&(V=K+"; experimental=allowed"),J.push({contentType:V,robustness:"SW_SECURE_DECODE"}),ge(A.tF)==="MWEB"&&(Kn()||ek())&&(A.Hn("swcrypto",{}),J.push({contentType:K,robustness:"SW_SECURE_CRYPTO"})))}return[B]};
|
|
a27=function(A){if(J7()&&(g.yw||Ln))A.U.push(new VN("fairplay","com.apple.fps.1_0","",A.tF.experiments));else{var L=Bz1(),B=g.Pw(A.W,function(f){var K=A.V[f],V=!1,J=!1,R;for(R in A.N[K.flavor])L(R,f)&&(K.N[R]=!0,V=V||R.indexOf("audio/")===0,J=J||R.indexOf("video/")===0);return V&&J});
|
|
B&&A.U.push(A.V[B]);A.W=[]}A.callback(A.U)};
|
|
Bz1=function(){var A=J7();if(A){var L=A.isTypeSupported;return function(f,K){return L(K,f)}}var B=So();
|
|
return B&&(B.addKey||B.webkitAddKey)?function(f,K){return!!B.canPlayType(f,K)}:function(){return!1}};
|
|
GM=function(A){var L;A=Vh((L=A.serializedClientExperimentFlags)!=null?L:"","&");this.flags=new Map(Object.entries(A).map(function(B){var f=g.m(B);B=f.next().value;f=f.next().value;return typeof f==="string"?[B,f]:[B,f[0]]}))};
|
|
JAD=function(A,L){switch(L.fk){case "bool":return A.GL(L.Ha);case "int":return A=fLQ(A,L.Ha),d6(A);case "double":return fLQ(A,L.Ha);case "string":return Ka7(A,L.Ha);case "int32_list":return VeD(A,L.Ha);case "int64_list":return VeD(A,L.Ha).map(function(B){return d6(B)});
|
|
case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}};
|
|
fLQ=function(A,L){A=A.flags.get(""+L);return Number(A)||0};
|
|
VeD=function(A,L){if(A=A.flags.get(""+L))if(A=A.replace(/\[ *(.*?) *\]/,"$1"))return A.split(",").map(Number);return[]};
|
|
Ka7=function(A,L){return(A=A.flags.get(""+L))?A.toString():""};
|
|
re=function(A,L,B){this.N=void 0;this.experimentIds=A?A.split(","):[];this.flags=Vh(L||"","&");A={};L=g.m(this.experimentIds);for(var f=L.next();!f.done;f=L.next())A[f.value]=!0;this.experiments=A;B=new GM(B);this.V=new mnk(B);this.W=new lk7(B)};
|
|
g.Am=function(A,L,B){B=B===void 0?0:B;A=A.Iv(L);JSON.stringify(A);return A===void 0?B:Number(A)};
|
|
var s0y=function(A,L,B,f,K,V,J,R){return bL[S[2]](this,16,A,L,B,f,K,V,J,R)};
|
|
sR=function(A,L){return(A=A.Iv(L))?A.toString():""};
|
|
SJ6=function(A){if(A=A.Iv("html5_web_po_experiment_ids"))if(A=A.replace(/\[ *(.*?) *\]/,"$1"))return A.split(",").map(Number);return[]};
|
|
RE1=function(A){if(A.N)return A.N;if(A.experimentIds.length<=1)return A.N=A.experimentIds,A.N;var L=[].concat(g.x7(A.experimentIds)).map(function(f){return Number(f)});
|
|
L.sort();for(var B=L.length-1;B>0;--B)L[B]-=L[B-1];A.N=L.map(function(f){return f.toString()});
|
|
A.N.unshift("v1");return A.N};
|
|
Nzy=function(A){return ZWv.then(A)};
|
|
HL=function(A,L,B){this.experiments=A;this.Vj=L;this.ZM=B===void 0?!1:B;this.G=!!g.bB("cast.receiver.platform.canDisplayType");this.X={};this.yj=!1;this.V=new Map;this.T=!0;this.N=this.W=!1;this.Wn=0;this.qp=this.experiments.GL("html5_disable_vp9_encrypted");this.U=this.experiments.GL("html5_enable_encrypted_av1");A=g.bB("cast.receiver.platform.getValue");this.D=!this.G&&A&&A("max-video-resolution-vpx")||null;FaQ(this);this.W=!!(zc()&&P7()>=21)};
|
|
eD8=function(A,L,B){B=B===void 0?1:B;var f=L.itag;if(f==="0")return!0;var K=L.mimeType;if(L.Bn==="1e"&&!A.U)return"dav1enc";if(Mb(L)&&A.yj)return"dav1";if(L.video&&(L.video.isHdr()||L.video.primaries==="bt2020")&&!(u6(A,a4.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(f==="338"&&!(g.Z2?kC(53):g.de&&kC(64)))return"dopus";var V=B;V=V===void 0?1:
|
|
V;B={};L.video&&(L.video.width&&(B[a4.WIDTH.name]=L.video.width),L.video.height&&(B[a4.HEIGHT.name]=L.video.height),L.video.fps&&(B[a4.FRAMERATE.name]=L.video.fps*V),L.video.N&&(B[a4.EOTF.name]=L.video.N),L.lC&&(B[a4.BITRATE.name]=L.lC*8*V),L.Bn==="("&&(B[a4.CRYPTOBLOCKFORMAT.name]="subsample"),L.video.projectionType==="EQUIRECTANGULAR"||L.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||L.video.projectionType==="MESH")&&(B[a4.DECODETOTEXTURE.name]="true");var J;((J=L.audio)==null?0:J.numChannels)&&
|
|
L.Bn!=="i"&&L.Bn!=="I"&&(B[a4.CHANNELS.name]=L.audio.numChannels);A.W&&iQ(L)&&(B[a4.EXPERIMENTAL.name]="allowed");J=g.m(Object.keys(a4));for(V=J.next();!V.done;V=J.next()){V=a4[V.value];var R;if(R=B[V.name])if(R=!(V===a4.EOTF&&L.mimeType.indexOf("vp09.02")>0)){R=V;var Z=L;R=!(A.experiments.GL("html5_ignore_h264_framerate_cap")&&R===a4.FRAMERATE&&RiE(Z))}if(R)if(u6(A,V))if(A.D){if(A.D[V.name]<B[V.name])return V.name}else K=K+"; "+V.name+"="+B[V.name];else if($a(L)&&V===a4.EOTF)return"dvp92"}A.G&&L.video&&
|
|
L.video.qualityOrdinal>1080&&L.Zj&&(K+="; hdcp=2.2");return f==="227"?"hqcenc":f!=="585"&&f!=="588"&&f!=="583"&&f!=="586"&&f!=="584"&&f!=="587"&&f!=="591"&&f!=="592"||A.experiments.GL("html5_enable_new_hvc_enc")?zc()&&P7()>=21&&g.xz("appletv5")&&(f==="410"||f==="845")?!0:A.isTypeSupported(K)?!0:"tpus":"newhvc"};
|
|
h7=function(){var A=ek()&&!kC(29),L=g.xz("google tv")&&g.xz("chrome")&&!kC(30);return A||L?!1:NK()};
|
|
DKe=function(A,L,B){var f=480;L=g.m(L);for(var K=L.next();!K.done;K=L.next()){K=K.value;var V=K.video.qualityOrdinal;V<=1080&&V>f&&eD8(A,K,B)===!0&&(f=V)}return f};
|
|
g.b9=function(A,L){L=L===void 0?!1:L;return h7()&&A.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!L&&A.canPlayType(So(),"application/x-mpegURL")?!0:!1};
|
|
ILC=function(A){dK8(function(){for(var L=g.m(Object.keys(a4)),B=L.next();!B.done;B=L.next())u6(A,a4[B.value])})};
|
|
u6=function(A,L){L.name in A.X||(A.X[L.name]=wi7(A,L));return A.X[L.name]};
|
|
wi7=function(A,L){if(A.D)return!!A.D[L.name];if(L===a4.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(L===a4.AV1_CODECS)return A.isTypeSupported("video/mp4; codecs="+L.valid)&&!A.isTypeSupported("video/mp4; codecs="+L.cB);if(L.video){var B='video/webm; codecs="vp9"';A.isTypeSupported(B)||(B='video/mp4; codecs="avc1.4d401e"')}else B='audio/webm; codecs="opus"',
|
|
A.isTypeSupported(B)||(B='audio/mp4; codecs="mp4a.40.2"');return A.isTypeSupported(B+"; "+L.name+"="+L.valid)&&!A.isTypeSupported(B+"; "+L.name+"="+L.cB)};
|
|
pi6=function(A,L){var B=0;A.V.has(L)&&(B=A.V.get(L).Ge);A.V.set(L,{Ge:B+1,FF:Math.pow(2,B+1)});A.N=!0};
|
|
MiC=function(A,L){for(var B=new Map,f=g.m(L.keys()),K=f.next();!K.done;K=f.next()){K=K.value;var V=K.split("_")[0];A.has(V)||B.set(K,L.get(K))}return B};
|
|
UR6=function(A,L,B){var f,K=((f=L.video)==null?void 0:f.fps)||0;f=A+"_"+K;var V=!!L.audio,J={itag:L.itag,Bn:A,NF:V};if(V)J.numChannels=L.audio.numChannels;else{var R=L.video;J.maxWidth=R==null?void 0:R.width;J.maxHeight=R==null?void 0:R.height;J.maxFramerate=K;J.maxBitrateBps=L.lC*8;J.uT=R==null?void 0:R.isHdr()}R=B.get(f);R?V||(L=Math.max(R.maxWidth||0,R.maxHeight||0)>Math.max(J.maxWidth||0,J.maxHeight||0)?R:J,A={itag:L.itag,Bn:A,NF:V,maxWidth:Math.max(R.maxWidth||0,J.maxWidth||0),maxHeight:Math.max(R.maxHeight||
|
|
0,J.maxHeight||0),maxFramerate:K,uT:L.uT},A.maxBitrateBps=L.maxBitrateBps,B.set(f,A)):B.set(f,J)};
|
|
FaQ=function(A){var L;(L=navigator.mediaCapabilities)!=null&&L.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(B){B.smooth&&B.powerEfficient&&(A.Wn=2160)})};
|
|
t7=function(){g.SN.call(this);this.items={}};
|
|
ki=function(A,L){this.N=A;this.cipher=this.N.exports.AES128CTRCipher_create(L.byteOffset)};
|
|
l9=function(){this.W=this.fn=0;this.N=Array.from({length:TM.length}).fill(0)};
|
|
yAS=function(){};
|
|
jkk=function(){this.startTimeMs=(0,g.bc)();this.N=!1};
|
|
gFS=function(){this.N=new yAS};
|
|
Gu6=function(A,L,B,f){f=f===void 0?1:f;B>=0&&(L in A.N||(A.N[L]=new l9),A.N[L].bM(B,f))};
|
|
rA8=function(A,L,B,f,K){var V=(0,g.bc)(),J=K?K(L):void 0,R;K=(R=J==null?void 0:J.fn)!=null?R:1;if(K!==0){var Z;R=(Z=J==null?void 0:J.profile)!=null?Z:B;Gu6(A,R,V-f,K)}return L};
|
|
skD=function(A,L,B,f,K){if(L&&typeof L==="object"){var V=function(J){return rA8(A,J,B,f,K)};
|
|
if(eM(L))return L.then(V);if(xh(L))return A2(L,V)}return rA8(A,L,B,f,K)};
|
|
HWw=function(){};
|
|
hEv=function(A){var L=window;L.ywc||(L.ywc={});var B=L.ywc[A];if(B)return B;B={};return L.ywc[A]=B};
|
|
bW6=function(A){var L=window;L.ywc&&delete L.ywc[A]};
|
|
te6=function(A){var L=hEv(A);if(L.binP)return L.binP;L.binP=Promise.resolve().then(function(){return fetch(A)}).then(function(B){if(!B.ok)throw Error("HTTP"+B.statusText);
|
|
return B.arrayBuffer()});
|
|
L.binP.then(function(B){L.bin=B},function(){bW6(A)});
|
|
return L.binP};
|
|
lLk=function(A,L){return o4(kuL,function(){var B=this;return function K(){var V,J,R;return wI(K,function(Z){switch(Z.N){case 1:g.RO(Z,2);if(!B.N)throw"wasm.ps.ns";V=A;J=yK;return Kf(Z,BZ(Tzy(B,L)),4);case 4:R=J(Z.W);if(!R)throw"wasm.ps.um";return Kf(Z,BZ(WebAssembly.instantiate(R,V)),5);case 5:return Z.return(Z.W);case 2:g.F9(Z),g.DR(Z,0)}})}()})};
|
|
Tzy=function(A,L){return o4(A,function(){var B=this;return function K(){var V,J,R,Z,N,F,D,I,d;return wI(K,function(w){switch(w.N){case 1:g.RO(w,2);V=[];J=function(){return"wasm.ps.c: ["+V.map(function(r){return'"'+r+'"'}).join(", ")+"]"};
|
|
R=hEv(L);if(R.mod)return w.return(R.mod);if(!R.modP){w.Ux(4);break}g.S5(w,5);Z=yK;return Kf(w,BZ(R.modP),7);case 7:return w.return(Z(w.W));case 5:g.NX(w),V.unshift("pcm");case 4:if((N=R.bin)||!R.binP){w.Ux(8);break}g.S5(w,9);F=yK;return Kf(w,BZ(R.binP),11);case 11:N=F(w.W);g.ZR(w,8);break;case 9:g.NX(w),V.unshift("pfb");case 8:if(N){w.Ux(12);break}g.S5(w,13);D=yK;return Kf(w,BZ(te6(L)),15);case 15:N=D(w.W);g.ZR(w,12);break;case 13:throw g.NX(w),B.N=!1,V.unshift("fb"),J();case 12:return g.S5(w,16),
|
|
I=yK,Kf(w,BZ(WebAssembly.compile(N)),18);case 18:return w.return(I(w.W));case 16:d=g.NX(w),bW6(L),V.unshift("ca: "+d);case 17:throw J();case 2:g.F9(w),g.DR(w,0)}})}()})};
|
|
mKQ=function(){};
|
|
Qk8=function(){var A=this;this.proc_exit=function(){};
|
|
this.fd_write=function(L,B,f){if(!A.exports)return 1;L=new Uint32Array(A.exports.memory.buffer,B,f*2);B=[];for(var K=0;K<f;++K){var V=new Uint8Array(A.exports.memory.buffer,L[K*2],L[K*2+1]);V=g.sX(V);B.push(V)}return B.reduce(function(J,R){return J+R.length},0)}};
|
|
C16=function(){this.env=new mKQ;this.wasi_snapshot_preview1=new Qk8};
|
|
mH=function(A,L,B){this.instance=A;this.N=B;this.exports=this.instance.exports;L.wasi_snapshot_preview1.exports=this.exports;A=Math.floor(Math.random()*256);L=Math.floor(Math.random()*256);B=0;try{B=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,B,16)).fill(A);if(this.exports.sentinel(B,16,L)!==L*16%256)throw"wasm.wm.vi";for(var f=new Uint8Array(this.exports.memory.buffer,B,16),K=0;K<16;K++)if(f[K]!==(A+L)%256)throw"wasm.wm.vi"+K;}finally{B!==0&&this.exports.free(B)}};
|
|
iWv=function(A,L,B){var f=f===void 0?!0:f;return o4(void 0,function(){return function V(){var J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0;return wI(V,function(B6){switch(B6.N){case 1:g.RO(B6,2);J=QN.l4();R=A&&CM;if(!R&&!L)return N={},(Z=B)==null||Z("wasmns",(N.p=A?"1":"0",N.a=L?"1":"0",N.s=CM?"1":"0",N)),B6.return(z0(Error("wasm.wm.ns")));F=new C16;if(!R){B6.Ux(4);break}g.S5(B6,5);D=yK;return Kf(B6,BZ(lLk(F,A)),7);case 7:return I=D(B6.W),d=new mH(I,F,!1,f),QN.UV("winit",J),(w=B)==null||w("wasmsw",{}),
|
|
B6.return(d);case 5:if(r=g.NX(B6),Q={},(h=B)==null||h("wasmerrw",(Q.e=""+r,Q)),!L)throw Error("wasm.wm.iw: "+r);case 4:if(!L)throw Error("wasm.wm.xx");g.S5(B6,8);l=yK;return Kf(B6,BZ(L(F)),10);case 10:return C=l(B6.W),O=new mH({exports:C},F,!0,f),QN.UV("winitjs",J),(v=B)==null||v("wasmsa",{}),B6.return(O);case 8:throw U=g.NX(B6),o0={},(a=B)==null||a("wasmerra",(o0.e=""+U,o0)),Error("wasm.wm.ia: "+U);case 2:g.F9(B6),g.DR(B6,0)}})}()})};
|
|
i9=function(A,L,B){this.N=A;this.V=!1;L=this.N.aV(L);this.W=new ki(A,L);this.N.free(L.byteOffset);this.U=this.N.aV(B)};
|
|
$K7=function(A,L,B){B=A.N.aV(B);var f=A.W;f.N.exports.AES128CTRCipher_setCounter(f.cipher,B.byteOffset);A.N.free(B.byteOffset);L=A.N.aV(L);A.W.encrypt(L);return L};
|
|
Xi1=function(A,L,B){g.Y.call(this);this.encryptedClientKey=L;this.T=B;this.W=new Uint8Array(A.buffer,0,16);this.V=new Uint8Array(A.buffer,16)};
|
|
OWw=function(A){A.U||(A.U=new g.Rd(A.W));return A.U};
|
|
$i=function(A){try{return WX(A)}catch(L){return null}};
|
|
EF8=function(A,L){g.Y.call(this);if(!L&&A)try{L=JSON.parse(A)}catch(K){}if(L){A=L.clientKey?$i(L.clientKey):null;var B=L.encryptedClientKey?$i(L.encryptedClientKey):null,f=L.keyExpiresInSeconds?Number(L.keyExpiresInSeconds)*1E3+(0,g.bc)():null;A&&B&&f&&(this.N=new Xi1(A,B,f),g.W(this,this.N));L.onesieUstreamerConfig&&(this.onesieUstreamerConfig=$i(L.onesieUstreamerConfig)||void 0);this.baseUrl=L.baseUrl}};
|
|
MeE=function(A,L){A=A===void 0?{}:A;L=L===void 0?{}:L;g.Y.call(this);var B=this;this.values=A;this.Rz=L;this.W={};this.V=this.N=0;this.U=new g.aa(function(){cAE(B)},1E4);
|
|
g.W(this,this.U)};
|
|
cAE=function(A){var L=dRe();if(L.values){L=L.values;for(var B={},f=g.m(Object.keys(A.values)),K=f.next();!K.done;K=f.next()){K=K.value;L[K]&&A.W[K]&&(A.values[K]+=L[K]-A.W[K]);var V=A,J=V;if(!J.values[K]){var R=dRe();J.values=R.values||{};J.Rz=R.halfLives||{};J.W=R.values?Object.assign({},R.values):{}}B[K]=V.values[K]&&V.Rz[K]?V.values[K]/Math.pow(2,V.N/V.Rz[K]):0}A.W=B}L=A.Rz;B={};B.values=A.W;B.halfLives=L;g.OS("yt-player-memory",B,2592E3)};
|
|
Lo=function(A,L,B,f){g.Y.call(this);this.webPlayerContextConfig=L;this.g$=f;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.cI=this.ql=this.m1=this.iW=this.userDisplayName=this.userDisplayImage=this.BR="";this.N={};this.Uv={};this.controlsType="0";this.dg=NaN;this.Ox=!1;this.Bk=(0,g.bc)();this.mH=0;this.r$=this.SH=!1;this.R_=!0;this.preferGapless=this.iF=this.Ry=this.V=this.Po=!1;this.AU=[];this.Pk=!1;this.rg=0;A=A?g.is(A):{};L&&L.csiPageType&&(this.csiPageType=L.csiPageType);L&&L.csiServiceName&&
|
|
(this.csiServiceName=L.csiServiceName);L&&L.preferGapless&&(this.preferGapless=L.preferGapless);this.experiments=new re(L?L.serializedExperimentIds:A.fexp,L?L.serializedExperimentFlags:A.fflags,L!=null?L:{});this.forcedExperiments=L?L.serializedForcedExperimentIds:NE("",A.forced_experiments)||void 0;this.cspNonce=(L==null?0:L.cspNonce)?L.cspNonce:NE("",A.csp_nonce);this.J("web_player_deprecated_uvr_killswitch");try{var K=document.location.toString()}catch(a){K=""}this.a8=K;this.ancestorOrigins=(f=
|
|
window.location.ancestorOrigins)?Array.from(f):[];this.U=Sw(!1,L?L.isEmbed:A.is_embed);if(L&&L.device){if(f=L.device,f.androidOsExperience&&(this.N.caoe=""+f.androidOsExperience),f.androidPlayServicesVersion&&(this.N.capsv=""+f.androidPlayServicesVersion),f.brand&&(this.N.cbrand=f.brand),f.browser&&(this.N.cbr=f.browser),f.browserVersion&&(this.N.cbrver=f.browserVersion),f.cobaltReleaseVehicle&&(this.N.ccrv=""+f.cobaltReleaseVehicle),this.N.c=f.interfaceName||"WEB",this.N.cver=f.interfaceVersion||
|
|
"html5",f.interfaceTheme&&(this.N.ctheme=f.interfaceTheme),this.N.cplayer=f.interfacePlayerType||"UNIPLAYER",f.model&&(this.N.cmodel=f.model),f.network&&(this.N.cnetwork=f.network),f.os&&(this.N.cos=f.os),f.osVersion&&(this.N.cosver=f.osVersion),f.platform&&(this.N.cplatform=f.platform),K=sR(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),K==="all"||K==="once")f.chipset&&(this.Uv.cchip=f.chipset),f.cobaltAppVersion&&(this.Uv.ccappver=f.cobaltAppVersion),f.firmwareVersion&&(this.Uv.cfrmver=
|
|
f.firmwareVersion),f.deviceYear&&(this.Uv.crqyear=f.deviceYear)}else this.N.c=A.c||"web",this.N.cver=A.cver||"html5",this.N.cplayer="UNIPLAYER";this.loaderUrl=L?this.U||YJ8(this)&&L.loaderUrl?L.loaderUrl||"":this.a8:this.U||YJ8(this)&&A.loaderUrl?NE("",A.loaderUrl):this.a8;this.U&&g.hf("yt.embedded_player.embed_url",this.loaderUrl);this.Ex=B9()||Kn();this.G=cR(this.loaderUrl,UKL)||!1;f=this.loaderUrl;var V=V===void 0?!1:V;this.hq=EZ(cR(f,WaD),f,V,"Trusted Ad Domain URL");this.KY=Sw(!1,A.privembed);
|
|
this.protocol=this.a8.indexOf("http:")===0?"http":"https";this.vI=uyC((L?L.customBaseYoutubeUrl:A.BASE_YT_URL)||"")||uyC(this.a8)||this.protocol+"://www.youtube.com/";V=L?L.eventLabel:A.el;f="detailpage";V==="adunit"?f=this.U?"embedded":"detailpage":V==="embedded"||this.G?f=RX(f,V,vFQ):V&&(f="embedded");this.Vj=f;Bn7();V=null;f=L?L.playerStyle:A.ps;K=g.zK(qJ7,f);!f||K&&!this.G||(V=f);this.playerStyle=V;this.T=g.zK(qJ7,this.playerStyle);this.houseBrandUserStatus=L==null?void 0:L.houseBrandUserStatus;
|
|
this.qp=this.T&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.SM=!this.qp;this.Ys=Sw(!1,A.disableplaybackui);this.disablePaidContentOverlay=Sw(!1,L==null?void 0:L.disablePaidContentOverlay);this.disableSeek=Sw(!1,L==null?void 0:L.disableSeek);this.enableSpeedOptions=(L==null?void 0:L.enableSpeedOptions)||(So().defaultPlaybackRate?X5||g.fn||OR?g.de&&kC("20")||g.Z2&&kC("4")||g.ER&&kC("11")||AK():!(g.ER&&!g.xz("chrome")||X5||g.xz("android")||g.xz("silk")):!1);this.Tg=Sw(!1,A.enable_faster_speeds);
|
|
var J;this.supportsVarispeedExtendedFeatures=(J=L==null?void 0:L.supportsVarispeedExtendedFeatures)!=null?J:!1;this.W=Sw(this.playerStyle==="blazer",A.is_html5_mobile_device||L&&L.isMobileDevice);this.Kt=this.J("mweb_allow_background_playback")?!1:this.W&&!this.T;this.JF=D2();this.V8=g.cL;var R;this.nO=!!(L==null?0:(R=L.embedsHostFlags)==null?0:R.optOutApiDeprecation);var Z;L?L.hideInfo!==void 0&&(Z=!L.hideInfo):Z=A.showinfo;this.jr=g.MM(this)&&!this.nO||Sw(!Yi(this)&&!UR(this)&&!this.T,Z);this.Ji=
|
|
L?!!L.mobileIphoneSupportsInlinePlayback:Sw(!1,A.playsinline);J=this.W&&WL&&vL!=null&&vL>0&&vL<=2.3;R=L?L.useNativeControls:A.use_native_controls;this.X=g.MM(this)&&this.W;Z=this.W&&!this.X;R=g.qM(this)||!J&&Sw(Z,R)?"3":"1";this.disableOrganicUi=!(L==null||!L.disableOrganicUi);Z=L?L.controlsType:A.controls;this.controlsType=this.disableOrganicUi||Z==="0"||Z===0?"0":R;this.Sb=this.W;this.color=RX("red",L?L.progressBarColor:A.color,P1L);this.Qu=this.controlsType==="3";this.zV=!this.U;this.Xp=(R=!this.zV&&
|
|
!UR(this)&&!this.qp&&!this.T&&!Yi(this))&&!this.Qu&&this.controlsType==="1";this.TZ=g.PL(this)&&R&&this.controlsType==="0"&&!this.Xp&&!(L==null?0:L.embedsEnableEmc3ds);this.bA=this.IV=J;this.N8=(this.controlsType==="3"||this.W||Sw(!1,A.use_media_volume))&&!this.X;this.iD=Ln&&!g.oC(601)?!1:!0;this.gy=this.U||!1;this.O_=UR(this)?"":(this.loaderUrl||A.post_message_origin||"").substring(0,128);this.widgetReferrer=NE("",L?L.widgetReferrer:A.widget_referrer);var N;L?L.disableCastApi&&(N=!1):N=A.enablecastapi;
|
|
N=!this.G||Sw(!0,N);J=!0;L&&L.disableMdxCast&&(J=!1);this.dB=this.J("enable_cast_for_web_unplugged")&&g.xi(this)&&J||g.cH(this)&&J||N&&J&&this.controlsType==="1"&&!this.W&&(UR(this)||g.PL(this)||g.ex(this));this.mL=!!window.document.pictureInPictureEnabled||F2();N=L?!!L.supportsAutoplayOverride:Sw(!1,A.autoplayoverride);this.Of=!(this.W&&!g.MM(this))&&!g.xz("nintendo wiiu")||N;this.cR=(L?!!L.enableMutedAutoplay:Sw(!1,A.mutedautoplay))&&!1;N=(UR(this)||Yi(this))&&this.playerStyle==="blazer";this.ye=
|
|
L?!!L.disableFullscreen:!Sw(!0,A.fs);J=g.IX(g.nM(this))&&g.MM(this);this.Nl=!this.ye&&(N||g.rL())&&!J;this.B4=this.J("html5_picture_in_picture_logging_onresize");var F;this.y8=(F=g.Am(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?F:.33;this.zK=this.J("html5_picture_in_picture_blocking_onresize");this.a7=this.J("html5_picture_in_picture_blocking_ontimeupdate");this.Mb=this.J("html5_picture_in_picture_blocking_document_fullscreen");this.Sr=this.J("html5_picture_in_picture_blocking_standard_api");
|
|
F=ek()&&kC(58)&&!Kn();N=ed||typeof MediaSource==="undefined";this.JA=this.J("uniplayer_block_pip")&&(F||N)||this.zK||this.a7||this.Sr;F=g.MM(this)&&!this.nO;var D;L?L.disableRelatedVideos!==void 0&&(D=!L.disableRelatedVideos):D=A.rel;this.k6=F||Sw(!this.T,D);this.tI=Sw(!1,L?L.enableContentOwnerRelatedVideos:A.co_rel);this.yj=Kn()&&vL>0&&vL<=4.4?"_top":"_blank";this.b2=g.ex(this);this.M7=Sw(this.playerStyle==="blazer",L?L.enableCsiLogging:A.enablecsi);switch(this.playerStyle){case "blogger":D="bl";
|
|
break;case "discover-ads":D="dd";break;case "gmail":D="gm";break;case "gac":D="ga";break;case "ads-preview":D="ap";break;case "ads-fe":D="adfe";break;case "books":D="gb";break;case "docs":case "flix":D="gd";break;case "duo":D="gu";break;case "google-live":D="gl";break;case "google-one":D="go";break;case "play":case "play-ads":D="gp";break;case "chat":D="hc";break;case "hangouts-meet":D="hm";break;case "photos-edu":case "picasaweb":D="pw";break;default:D="yt"}this.Wn=D;this.ZM=NE("",L?L.authorizedUserIndex:
|
|
A.authuser);this.jI=g.MM(this)&&(this.KY||!xBk()||this.Ex);var I;L?L.disableWatchLater!==void 0&&(I=!L.disableWatchLater):I=A.showwatchlater;this.t$=((D=!this.jI)||!!this.ZM&&D)&&Sw(!this.qp,this.G?I:void 0);this.jD=L?L.isMobileDevice||!!L.disableKeyboardControls:Sw(!1,A.disablekb);this.loop=Sw(!1,A.loop);this.pageId=NE("",L?L.initialDelegatedSessionId:A.pageid);this.mM=Sw(!0,A.canplaylive);this.Ai=this.experiments.GL("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.I7=Sw(!1,A.livemonitor);
|
|
this.disableSharing=Sw(this.T,L?L.disableSharing:A.ss);(I=L&&this.J("fill_video_container_size_override_from_wpcc")?L.videoContainerOverride:A.video_container_override)?(D=I.split("x"),D.length!==2?I=null:(I=Number(D[0]),D=Number(D[1]),I=isNaN(I)||isNaN(D)||I*D<=0?null:new g.Sr(I,D))):I=null;this.YH=I;this.mute=L?!!L.startMuted:Sw(!1,A.mute);this.storeUserVolume=!this.mute&&Sw(this.controlsType!=="0",L?L.storeUserVolume:A.store_user_volume);I=L?L.annotationsLoadPolicy:A.iv_load_policy;this.annotationsLoadPolicy=
|
|
this.controlsType==="3"?3:RX(void 0,I,zM);this.captionsLanguagePreference=L?L.captionsLanguagePreference||"":NE("",A.cc_lang_pref);I=RX(2,L?L.captionsLanguageLoadPolicy:A.cc_load_policy,zM);this.controlsType==="3"&&I===2&&(I=3);this.e8=I;this.nD=L?L.hl||"en_US":NE("en_US",A.hl);this.region=L?L.contentRegion||"US":NE("US",A.cr);this.hostLanguage=L?L.hostLanguage||"en":NE("en",A.host_language);this.JV=!this.KY&&Math.random()<g.Am(this.experiments,"web_player_api_logging_fraction");this.Cr=!this.KY;
|
|
this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(L==null||!L.deviceIsAudioOnly);this.dg=ZG(this.dg,A.ismb);this.SM?(I=A.vss_host||"s.youtube.com",I==="s.youtube.com"&&(I=u9(this.vI)||"www.youtube.com")):I="video.google.com";this.gg=I;aj(this,A,!0);this.S4=new t7;g.W(this,this.S4);D=L?L.innertubeApiKey:NE("",A.innertube_api_key);F=L?L.innertubeApiVersion:NE("",A.innertube_api_version);I=L?L.innertubeContextClientVersion:NE("",A.innertube_context_client_version);D=g.A_("INNERTUBE_API_KEY")||
|
|
D;F=g.A_("INNERTUBE_API_VERSION")||F;N=g.A_("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");J=ge(this);R=typeof this.N.c==="number"?Number(this.N.c):Object.keys(xKS).indexOf(this.N.c);this.e6={innertubeApiKey:D,innertubeApiVersion:F,kG:N,fE:J,kd:R,innertubeContextClientVersion:g.A_("INNERTUBE_CONTEXT_CLIENT_VERSION")||I,sS:this.hostLanguage,CE:this.region,m9:g.A_("INNERTUBE_HOST_OVERRIDE")||"",Fw:!!g.A_("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),Esn:!!g.A_("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};
|
|
this.Tf=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.D=new HL(this.experiments,this.J("html5_force_hfr_support")?!0:I6(this)||ul()||nAL()||eEC(this),g.Z2&&g.oC(56)||g.de&&g.oC(54)||this.J("html5_force_vp9_subsample_encryption_support")||eEC(this));var d;this.enableSafetyMode=(d=L==null?void 0:L.initialEnableSafetyMode)!=null?d:Sw(!1,A.enable_safety_mode);d=this.Ys?!1:UR(this)&&this.playerStyle!=="blazer";var w;L?L.disableAutonav!=null&&(w=!L.disableAutonav):w=A.allow_autonav;this.LD=Sw(d,
|
|
!this.qp&&w);this.sendVisitorIdHeader=L?!!L.sendVisitorIdHeader:Sw(!1,A.send_visitor_id_header);var r;this.playerStyle==="docs"&&(L?r=L.disableNativeContextMenu:r=A.disable_native_context_menu);this.disableNativeContextMenu=Sw(!1,r);this.iA=I6(this)&&this.J("enable_skip_intro_button");this.embedConfig=NE("",L?L.serializedEmbedConfig:A.embed_config);this.wT=dL(A,g.MM(this));this.V=this.wT==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(L==null||!L.embedsErrorLinks);this.kR=Sw(!1,A.full_window);
|
|
var h;this.sx=!((h=this.webPlayerContextConfig)==null?0:h.chromeless);var Q;this.livingRoomAppMode=RX("LIVING_ROOM_APP_MODE_UNSPECIFIED",A.living_room_app_mode||(L==null?void 0:(Q=L.device)==null?void 0:Q.livingRoomAppMode),nFv);var l;w=ZG(NaN,L==null?void 0:(l=L.device)==null?void 0:l.deviceYear);isNaN(w)||(this.deviceYear=w);this.transparentBackground=L?!!L.transparentBackground:Sw(!1,A.transparent_background);this.showMiniplayerButton=L?!!L.showMiniplayerButton:Sw(!1,A.show_miniplayer_button);
|
|
var C;g.MM(this)&&!(L==null?0:(C=L.embedsHostFlags)==null?0:C.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=L?!!L.externalFullscreen:Sw(!1,A.external_fullscreen);this.showMiniplayerUiWhenMinimized=L?!!L.showMiniplayerUiWhenMinimized:Sw(!1,A.use_miniplayer_ui);var O;this.R_=(O=A.show_loop_video_toggle)!=null?O:!0;this.fu=Math.random()<1E-4;if(A.onesie_hot_config||(L==null?0:L.onesieHotConfig))this.Pz=new EF8(A.onesie_hot_config,L==null?void 0:L.onesieHotConfig),g.W(this,
|
|
this.Pz);this.isTectonic=L?!!L.isTectonic:!!A.isTectonic;this.playerCanaryState=B;this.playerCanaryStage=L==null?void 0:L.canaryStage;this.Ym=new MeE;g.W(this,this.Ym);this.datasyncId=(L==null?void 0:L.datasyncId)||g.A_("DATASYNC_ID");this.I_=g.A_("LOGGED_IN",!1);this.Gt=(L==null?void 0:L.allowWoffleManagement)||!1;this.FT=Infinity;this.w$=NaN;this.livingRoomPoTokenId=L==null?void 0:L.livingRoomPoTokenId;this.J("html5_high_res_logging_always")?this.Ry=!0:this.Ry=Math.random()*100<g.Am(this.experiments,
|
|
"html5_high_res_logging_percent");var v;this.iF=!!(L==null?0:(v=L.embedsHostFlags)==null?0:v.allowRcat);this.jH=!g.xi(this)&&!A$(this);A=A.embedded_player_response?JSON.parse(A.embedded_player_response).trackingParams:void 0;A&&(this.TK=A);var U;this.XV=!((U=this.webPlayerContextConfig)==null||!U.embedsEnableEmc3ds)};
|
|
g.nM=function(A){var L,B;if(!((L=A.webPlayerContextConfig)==null?0:(B=L.embedsHostFlags)==null?0:B.enableLiteUx)||A.KY||A.T||A.V||A.wT==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";A=g.Am(A.experiments,"embeds_web_lite_mode");return A===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":A>=0&&A<zE8.length?zE8[A]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
|
|
aj=function(A,L,B){B=B===void 0?!1:B;A.ql=NE(A.ql,L.video_id);A.m1=NE(A.m1,L.eventid);A.m1&&(wT=A.m1);for(var f=[],K=g.m(Object.keys(uie)),V=K.next();!V.done;V=K.next()){V=uie[V.value];var J=L[V];J!=null&&(J!==A.N[V]&&f.push(V),A.N[V]=J)}!B&&f.length>0&&A.fu&&(f.sort(),g.CE(new g.iL("Player client parameters changed after startup",f)));A.userAge=ZG(A.userAge,L.user_age);A.BR=NE(A.BR,L.user_display_email);A.userDisplayImage=NE(A.userDisplayImage,L.user_display_image);g.MR(A.userDisplayImage)||(A.userDisplayImage=
|
|
"");A.userDisplayName=NE(A.userDisplayName,L.user_display_name);A.iW=NE(A.iW,L.user_gender);A.csiPageType=NE(A.csiPageType,L.csi_page_type);A.csiServiceName=NE(A.csiServiceName,L.csi_service_name);A.M7=Sw(A.M7,L.enablecsi);A.pageId=NE(A.pageId,L.pageid);if(B=L.enabled_engage_types)A.enabledEngageTypes=new Set(B.split(","));L.living_room_session_po_token&&(A.mC=L.living_room_session_po_token.toString())};
|
|
oo=function(A,L){return!A.T&&ek()&&kC(55)&&A.controlsType==="3"&&!L};
|
|
g.BN=function(A){A=u9(A.vI);return A==="www.youtube-nocookie.com"?"www.youtube.com":A};
|
|
fo=function(A,L,B){return A.protocol+"://i1.ytimg.com/vi/"+L+"/"+(B||"hqdefault.jpg")};
|
|
Ko=function(A){return UR(A)&&!g.xi(A)};
|
|
g.qM=function(A){return A.J("html5_local_playsinline")?Ln&&!g.oC(602)&&!("playsInline"in So()):Ln&&!A.Ji||g.xz("nintendo wiiu")?!0:!1};
|
|
ge=function(A){return A.N.c};
|
|
g.wY=function(A){return/^TVHTML5/.test(ge(A))};
|
|
V3=function(A){return ge(A)==="TVHTML5"};
|
|
YJ8=function(A){return ge(A)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
|
|
eEC=function(A){return A.N.cmodel==="CHROMECAST ULTRA/STEAK"||A.N.cmodel==="CHROMECAST/STEAK"};
|
|
g.J$=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
|
|
I6=function(A){return/web/i.test(ge(A))};
|
|
g.SK=function(A){return ge(A).toUpperCase()==="WEB"};
|
|
A$=function(A){return ge(A)==="WEB_KIDS"};
|
|
g.xi=function(A){return ge(A)==="WEB_UNPLUGGED"};
|
|
Ro=function(A){return ge(A)==="TVHTML5_UNPLUGGED"};
|
|
g.dY=function(A){return g.xi(A)||ge(A)==="TV_UNPLUGGED_CAST"||Ro(A)};
|
|
g.cH=function(A){return ge(A)==="WEB_REMIX"};
|
|
g.Z_=function(A){return ge(A)==="WEB_MUSIC_INTEGRATIONS"};
|
|
g.Ng=function(A){return ge(A)==="WEB_EMBEDDED_PLAYER"};
|
|
g.D_=function(A){return(A.deviceIsAudioOnly||!g.Z2||ed||A.controlsType==="3"?!1:g.fn?A.U&&g.oC(51):!0)||(A.deviceIsAudioOnly||!g.de||ed||A.controlsType==="3"?!1:g.fn?A.U&&g.oC(48):g.oC(38))||(A.deviceIsAudioOnly||!g.ER||ed||A.controlsType==="3"?!1:g.fn?A.U&&g.oC(37):g.oC(27))||!A.deviceIsAudioOnly&&g.F1&&!ut7()&&g.oC(11)||!A.deviceIsAudioOnly&&g.yw&&g.oC("604.4")};
|
|
aLv=function(A){if(g.PL(A)&&WL)return!1;if(g.de){if(!g.oC(47)||!g.oC(52)&&g.oC(51))return!1}else if(g.yw)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
|
|
LUy=function(A,L){return A.enabledEngageTypes.has(L.toString())||Ay6.includes(L)};
|
|
UR=function(A){return A.Vj==="detailpage"};
|
|
g.PL=function(A){return A.Vj==="embedded"};
|
|
dd=function(A){return A.Vj==="leanback"};
|
|
Yi=function(A){return A.Vj==="adunit"||A.playerStyle==="gvn"};
|
|
g.ex=function(A){return A.Vj==="profilepage"};
|
|
g.MM=function(A){return A.U&&g.PL(A)&&!Yi(A)&&!A.T};
|
|
Io=function(A){if(!A.userDisplayImage)return"";var L=A.userDisplayImage.split("/");if(L.length===5)return A=L[L.length-1].split("="),A[1]="s20-c",L[L.length-1]=A.join("="),L.join("/");if(L.length===8)return L.splice(7,0,"s20-c"),L.join("/");if(L.length===9)return L[7]+="-s20-c",L.join("/");g.CE(new g.iL("Profile image not a FIFE URL.",A.userDisplayImage));return A.userDisplayImage};
|
|
g.wd=function(A){var L=g.BN(A);od6.includes(L)&&(L="www.youtube.com");return A.protocol+"://"+L};
|
|
g.po=function(A,L){L=L===void 0?"":L;if(A.g$){var B=new yV,f,K=A.g$();K.signedOut?f="":K.token?f=K.token:K.pendingResult.then(function(V){K.signedOut?B.resolve(""):B.resolve(V.token)},function(V){g.CE(new g.iL("b189348328_oauth_callback_failed",{error:V}));
|
|
B.resolve(L)});
|
|
return f!==void 0?OQ(f):new $z(B)}return OQ(L)};
|
|
y3=function(A,L){L=L===void 0?"":L;return A.I_?nS(!0):LP(A2(nS(g.po(A,L)),function(B){return nS(!!B)}),function(){return nS(!1)})};
|
|
Bf7=function(A){var L;return!((L=A.webPlayerContextConfig)==null||!L.enableSelfProfilingLogging)};
|
|
fN7=function(A,L){A.GZ=L;var B,f;(B=A.Pz)!=null&&(f=B.N)!=null&&(f.N=new i9(L,f.W,f.V),g.W(f,f.N));L.N?A.AU.push("asmjs"):A.AU.push("wasm")};
|
|
u9=function(A){var L=g.tW(A);return(A=Number(g.bp(A)[4]||null)||null)?L+":"+A:L};
|
|
jK=function(A,L){L=L===void 0?!1:L;var B=Qu[A],f=KU0[B],K=V$e[A];if(!K||!f)return null;L=new Tv(L?K.height:K.width,L?K.width:K.height,K.fps);f=Y6(f,L,B);return new C$(A,f,{video:L,lC:K.bitrate/8})};
|
|
S7e=function(A){var L=KU0[Qu[A]],B=JyC[A];return B&&L?new C$(A,L,{audio:new IT(B.audioSampleRate,B.numChannels)}):null};
|
|
gd=function(A){this.N=A};
|
|
Gd=function(A,L,B,f){if(B)return Xa();B={};var K=So();L=g.m(L);for(var V=L.next();!V.done;V=L.next())if(V=V.value,A.canPlayType(K,V.getInfo().mimeType)||f){var J=V.N.video.quality;if(!B[J]||B[J].getInfo().qU())B[J]=V}A=[];B.auto&&A.push(B.auto);f=g.m(lQ);for(K=f.next();!K.done;K=f.next())(K=B[K.value])&&A.push(K);return A.length?OQ(A):Xa()};
|
|
RS0=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 L;this.W=((L=A.audioItag)==null?void 0:L.split(","))||[];this.Bd=A.Bd;this.Zj=A.Zj||"";this.ri=A.ri;this.audioChannels=A.audioChannels;this.N=""};
|
|
Zpw=function(A,L,B,f){L=L===void 0?!1:L;B=B===void 0?!0:B;f=f===void 0?{}:f;var K={};A=g.m(A);for(var V=A.next();!V.done;V=A.next()){V=V.value;if(L&&MediaSource&&MediaSource.isTypeSupported){var J=V.type;V.audio_channels&&(J=J+"; channels="+V.audio_channels);if(!MediaSource.isTypeSupported(J)){f[V.itag]="tpus";continue}}if(B||!V.drm_families||V.eotf!=="smpte2084"&&V.eotf!=="arib-std-b67"){J=void 0;var R={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},Z=V.type.match(/codecs="([^"]*)"/);
|
|
Z=Z?Z[1]:"";V.audio_track_id&&(J=new g.$6(V.name,V.audio_track_id,!!V.is_default));var N=V.eotf;V=new RS0({itag:V.itag,url:V.url,codecs:Z,width:Number(V.width),height:Number(V.height),fps:Number(V.fps),bitrate:Number(V.bitrate),audioItag:V.audio_itag,Bd:N?R[N]:void 0,Zj:V.drm_families,ri:J,audioChannels:Number(V.audio_channels)});K[V.itag]=K[V.itag]||[];K[V.itag].push(V)}else f[V.itag]="enchdr"}return K};
|
|
Nf1=function(A,L,B,f,K){this.V=A;this.W=L;this.D=B;this.cpn=f;this.T=K;this.U=0;this.N=""};
|
|
FUe=function(A,L){A.V.some(function(B){var f;return((f=B.ri)==null?void 0:f.getId())===L});
|
|
A.N=L};
|
|
rd=function(A,L,B){A.cpn&&(L=g.ip(L,{cpn:A.cpn}));B&&(L=g.ip(L,{paired:B}));return L};
|
|
Dr6=function(A,L){A=A.itag.toString();L!==null&&(A+=L.itag.toString());return A};
|
|
drQ=function(A){for(var L=[],B=[],f=g.m(A.W),K=f.next();!K.done;K=f.next())K=K.value,K.bitrate<=A.U?L.push(K):B.push(K);L.sort(function(V,J){return J.bitrate-V.bitrate});
|
|
B.sort(function(V,J){return V.bitrate-J.bitrate});
|
|
A.W=L.concat(B)};
|
|
se=function(A,L,B){this.N=A;this.W=L;this.expiration=B;this.wi=null};
|
|
INv=function(A,L){if(!(ed||aM()||zc()))return null;A=Zpw(L,A.J("html5_filter_fmp4_in_hls"));if(!A)return null;L=[];for(var B={},f=g.m(Object.keys(A)),K=f.next();!K.done;K=f.next()){K=g.m(A[K.value]);for(var V=K.next();!V.done;V=K.next()){var J=V.value;J.ri&&(V=J.ri.getId(),B[V]||(J=new g.i6(V,J.ri),B[V]=J,L.push(J)))}}return L.length>0?L:null};
|
|
gdw=function(A,L,B,f,K,V,J){if(!(ed||aM()||zc()))return Xa();var R={},Z=wWe(B),N=Zpw(B,A.J("html5_filter_fmp4_in_hls"),A.D.T,R);if(!N)return J({noplst:1}),Xa();pWQ(N);B={};var F=(B.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",B),D;B=[];var I=[],d=[],w=null,r="";f=f&&f.match(/hls_timedtext_playlist/)?new RS0({itag:"0",url:f,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,ri:new g.$6("English","en",!1)}):null;for(var h=g.m(Object.keys(N)),Q=h.next();!Q.done;Q=h.next())if(Q=Q.value,!A.J("html5_disable_drm_hfr_1080")||
|
|
Q!=="383"&&Q!=="373"){Q=g.m(N[Q]);for(var l=Q.next();!l.done;l=Q.next())if(l=l.value,l.width){for(var C=g.m(l.W),O=C.next();!O.done;O=C.next())if(O=O.value,N[O]){l.N=O;break}l.N||(l.N=yyL(N,l));if(C=N[l.N])if(B.push(l),l.Zj==="fairplay"&&(D=F),O="",l.Bd==="PQ"?O="smpte2084":l.Bd==="HLG"&&(O="arib-std-b67"),O&&(r=O),d.push(j26(C,[l],f,V,l.itag,l.width,l.height,l.fps,Z,void 0,void 0,D,O)),!w||l.width*l.height*l.fps>w.width*w.height*w.fps)w=l}else I.push(l)}else R[Q]="disdrmhfr";d.reduce(function(v,
|
|
U){return U.getInfo().isEncrypted()&&v},!0)&&(D=F);
|
|
K=Math.max(K,0);F=w||{};N=F.fps===void 0?0:F.fps;w=F.width===void 0?0:F.width;F=F.height===void 0?0:F.height;h=A.J("html5_native_audio_track_switching");d.push(j26(I,B,f,V,"93",w,F,N,Z,"auto",K,D,r,h));Object.entries(R).length&&J(R);return Gd(A.D,d,oo(A,L),!1)};
|
|
j26=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){for(var w=0,r="",h=g.m(A),Q=h.next();!Q.done;Q=h.next())Q=Q.value,r||(r=Q.itag),Q.audioChannels&&Q.audioChannels>w&&(w=Q.audioChannels,r=Q.itag);K=new C$(K,"application/x-mpegURL",{audio:new IT(0,w),video:new Tv(V,J,R,null,void 0,N,void 0,void 0,I),Zj:D,GO:r});A=new Nf1(A,L,B?[B]:[],f,!!d);A.U=F?F:1369843;return new se(K,A,Z)};
|
|
wWe=function(A){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.url&&(L=L.url.split("expire/"),!(L.length<=1)))return+L[1].split("/")[0];return NaN};
|
|
yyL=function(A,L){for(var B=g.m(Object.keys(A)),f=B.next();!f.done;f=B.next()){f=f.value;var K=A[f][0];if(!K.width&&K.Zj===L.Zj&&!K.audioChannels)return f}return""};
|
|
pWQ=function(A){for(var L=new Set,B=g.m(Object.values(A)),f=B.next();!f.done;f=B.next())f=f.value,f.length&&(f=f[0],f.height&&f.codecs.startsWith("vp09")&&L.add(f.height));B=[];if(L.size){f=g.m(Object.keys(A));for(var K=f.next();!K.done;K=f.next())if(K=K.value,A[K].length){var V=A[K][0];V.height&&L.has(V.height)&&!V.codecs.startsWith("vp09")&&B.push(K)}}L=g.m(B);for(B=L.next();!B.done;B=L.next())delete A[B.value]};
|
|
HN=function(A,L){this.N=A;this.W=L};
|
|
GAv=function(A,L,B,f){var K=[];B=g.m(B);for(var V=B.next();!V.done;V=B.next()){var J=V.value;if(J.url){V=new g.Fk(J.url,!0);if(J.s){var R=V,Z=J.sp,N=sD(19,decodeURIComponent(J.s));R[S[18]](Z,encodeURIComponent(N))}R=g.m(Object.keys(f));for(Z=R.next();!Z.done;Z=R.next())Z=Z.value,V.set(Z,f[Z]);J=eo(J.type,J.quality,J.itag,J.width,J.height);K.push(new HN(J,V))}}return Gd(A.D,K,oo(A,L),!1)};
|
|
h$=function(A,L){this.N=A;this.W=L};
|
|
ry0=function(A,L,B){var f=[];B=g.m(B);for(var K=B.next();!K.done;K=B.next())if((K=K.value)&&K.url){var V=eo(K.type,"medium","0");f.push(new h$(V,K.url))}return Gd(A.D,f,oo(A,L),!1)};
|
|
s2D=function(A,L){var B=[],f=eo(L.type,"auto",L.itag);B.push(new h$(f,L.url));return Gd(A.D,B,!1,!0)};
|
|
hSS=function(A){return A&&Hp1[A]?Hp1[A]:null};
|
|
bpQ=function(A){switch(A){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return A;default:return"sabr.config"}};
|
|
t$8=function(A){if(A=A.commonConfig)this.url=A.url,this.urlQueryOverride=A.urlQueryOverride,A.ustreamerConfig&&(this.xC=$i(A.ustreamerConfig)||void 0)};
|
|
kAy=function(A,L){var B;if(L=L==null?void 0:(B=L.watchEndpointSupportedOnesieConfig)==null?void 0:B.html5PlaybackOnesieConfig)A.jF=new t$8(L)};
|
|
g.bS=function(A){A=A===void 0?{}:A;this.languageCode=A.languageCode||"";this.languageName=A.languageName||null;this.kind=A.kind||"";this.name=A.name===void 0?null:A.name;this.displayName=A.displayName||null;this.id=A.id||null;this.N=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.kc=function(A){var L={languageCode:A.languageCode,languageName:A.languageName,displayName:g.t$(A),kind:A.kind,name:A.name,id:A.id,is_servable:A.N,is_default:A.isDefault,is_translateable:A.isTranslateable,vss_id:A.vssId};A.xtags&&(L.xtags=A.xtags);A.captionId&&(L.captionId=A.captionId);A.translationLanguage&&(L.translationLanguage=A.translationLanguage);return L};
|
|
g.Td=function(A){return A.translationLanguage?A.translationLanguage.languageCode:A.languageCode};
|
|
g.Tf0=function(A){var L=A.vssId;A.translationLanguage&&L&&(L="t"+L+"."+g.Td(A));return L};
|
|
g.t$=function(A){var L=[];if(A.displayName)L.push(A.displayName);else{var B=A.languageName||"";L.push(B);A.kind==="asr"&&B.indexOf("(")===-1&&L.push(" (Sottotitoli automatici)");A.name&&L.push(" - "+A.name)}A.translationLanguage&&L.push(" >> "+A.translationLanguage.languageName);return L.join("")};
|
|
ChS=function(A,L,B,f){A||(A=L&&lNL.hasOwnProperty(L)&&mre.hasOwnProperty(L)?mre[L]+"_"+lNL[L]:void 0);L=A;if(!L)return null;A=L.match(Q21);if(!A||A.length!==5)return null;if(A=L.match(Q21)){var K=Number(A[3]),V=[7,8,10,5,6];A=!(Number(A[1])===1&&K===8)&&V.indexOf(K)>=0}else A=!1;return B||f||A?L:null};
|
|
lS=function(A,L){for(var B={},f=g.m(Object.keys(ipy)),K=f.next();!K.done;K=f.next()){K=K.value;var V=L?L+K:K;V=A[V+"_webp"]||A[V];g.MR(V)&&(B[ipy[K]]=V)}return B};
|
|
m$=function(A){var L={};if(!A||!A.thumbnails)return L;A=A.thumbnails.filter(function(R){return!!R.url});
|
|
A.sort(function(R,Z){return R.width-Z.width||R.height-Z.height});
|
|
for(var B=g.m(Object.keys($rQ)),f=B.next();!f.done;f=B.next()){var K=Number(f.value);f=$rQ[K];for(var V=g.m(A),J=V.next();!J.done;J=V.next())if(J=J.value,J.width>=K){K=XWe(J.url);g.MR(K)&&(L[f]=K);break}}(A=A.pop())&&A.width>=1280&&(A=XWe(A.url),g.MR(A)&&(L["maxresdefault.jpg"]=A));return L};
|
|
XWe=function(A){return A.startsWith("//")?"https:"+A:A};
|
|
Q3=function(A){return A&&A.baseUrl||""};
|
|
Co=function(A){A=g.RM(A);for(var L=g.m(Object.keys(A)),B=L.next();!B.done;B=L.next()){B=B.value;var f=A[B];A[B]=Array.isArray(f)?f[0]:f}return A};
|
|
Ed1=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next())if(B=B.value.playerAnnotationsUrlsRenderer){B.adsOnly&&(A.Bf=!0);if(L=B.loadPolicy)A.annotationsLoadPolicy=OpC[L];if(L=B.invideoUrl)A.zM=YG(L);A.qw=!0;break}};
|
|
cy6=function(A,L){A.botguardData=L.playerAttestationRenderer.botguardData;L=L.playerAttestationRenderer.challenge;L!=null&&(A.EZ=L)};
|
|
Y7C=function(A,L){A.captionTracks=[];if(L.captionTracks)for(var B=g.m(L.captionTracks),f=B.next();!f.done;f=B.next()){f=f.value;var K=M$6(f.baseUrl);if(!K)return;K={is_translateable:!!f.isTranslatable,languageCode:f.languageCode,languageName:f.name&&g.wq(f.name),url:K,vss_id:f.vssId,kind:f.kind};K.name=f.trackName;K.displayName=f.name&&g.wq(f.name);A.captionTracks.push(new g.bS(K))}A.kL=L.audioTracks||[];A.As=L.defaultAudioTrackIndex||0;A.Rj=[];if(L.translationLanguages)for(B=g.m(L.translationLanguages),
|
|
f=B.next();!f.done;f=B.next()){K=f.value;f={};f.languageCode=K.languageCode;f.languageName=g.wq(K.languageName);if(K.translationSourceTrackIndices){f.translationSourceTrackIndices=[];for(var V=g.m(K.translationSourceTrackIndices),J=V.next();!J.done;J=V.next())f.translationSourceTrackIndices.push(J.value)}if(K.excludeAudioTrackIndices)for(f.excludeAudioTrackIndices=[],K=g.m(K.excludeAudioTrackIndices),V=K.next();!V.done;V=K.next())f.excludeAudioTrackIndices.push(V.value);A.Rj.push(f)}A.VT=[];if(L.defaultTranslationSourceTrackIndices)for(B=
|
|
g.m(L.defaultTranslationSourceTrackIndices),f=B.next();!f.done;f=B.next())A.VT.push(f.value);A.M$=!!L.contribute&&!!L.contribute.captionsMetadataRenderer};
|
|
WU6=function(A,L,B){var f=L.errorScreen;if(!(f&&(f.playerLegacyDesktopYpcOfferRenderer||f.playerLegacyDesktopYpcTrailerRenderer||f.ypcTrailerRenderer)||B&&B.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(L.status))){A.errorCode=hSS(L.errorCode)||"auth";if(B=f&&f.playerErrorMessageRenderer){A.playerErrorMessageRenderer=B;var K=B.reason;K&&(A.errorReason=g.wq(K));if(B=B.subreason)A.Qr=g.wq(B),A.ZE=B}else A.errorReason=L.reason||null;B=L.status;if(B==="LOGIN_REQUIRED")A.errorDetail=
|
|
"1";else if(B==="CONTENT_CHECK_REQUIRED")A.errorDetail="2";else if(B==="AGE_CHECK_REQUIRED")L=(L=L.errorScreen)&&L.playerKavRenderer,A.errorDetail=L&&L.kavUrl?"4":"3";else{var V,J,R;f=(R=f==null?void 0:(V=f.playerErrorMessageRenderer)==null?void 0:(J=V.proceedButton)==null?void 0:J.buttonRenderer)==null?void 0:R.command;if(L.isBlockedInRestrictedMode)A.errorDetail="5";else{var Z;((Z=g.y(f,UrD))==null?void 0:Z.signal)==="RELOAD_PAGE"?A.errorDetail="7":A.errorDetail="0"}}}};
|
|
vd8=function(A,L){A.Q0=!0;var B=L.heartbeatToken;B&&(A.drmSessionId=L.drmSessionId||"",A.heartbeatToken=B,A.y3=Number(L.intervalMilliseconds),A.cU=Number(L.maxRetries),A.BU=!!L.softFailOnError,A.V$=!!L.useInnertubeHeartbeatsForDrm);A.heartbeatServerData=L.heartbeatServerData;var f;A.l_=!((f=L.heartbeatAttestationConfig)==null||!f.requiresAttestation)};
|
|
xrw=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=B.interstitials.map(function(J){var R=g.y(J,q78);if(R)return{is_yto_interstitial:!0,raw_player_response:R};if(J=g.y(J,Phe))return Object.assign({is_yto_interstitial:!0},I0(J))});
|
|
f=g.m(f);for(var K=f.next();!K.done;K=f.next())switch(K=K.value,B.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":A.interstitials=A.interstitials.concat({time:0,playerVars:K,sU:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":A.interstitials=A.interstitials.concat({time:0x7ffffffffffff,playerVars:K,sU:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var V=Number(B.podConfig.timeToInsertAtMillis);A.interstitials=A.interstitials.concat({time:V,playerVars:K,
|
|
sU:V===0?5:7})}}};
|
|
eSe=function(A,L){if(L=L.find(function(B){return!(!B||!B.tooltipRenderer)}))A.tooltipRenderer=L.tooltipRenderer};
|
|
ndQ=function(A,L){L.subscribeCommand&&(A.subscribeCommand=L.subscribeCommand);L.unsubscribeCommand&&(A.unsubscribeCommand=L.unsubscribeCommand);L.addToWatchLaterCommand&&(A.addToWatchLaterCommand=L.addToWatchLaterCommand);L.removeFromWatchLaterCommand&&(A.removeFromWatchLaterCommand=L.removeFromWatchLaterCommand);L.getSharePanelCommand&&(A.getSharePanelCommand=L.getSharePanelCommand)};
|
|
zS7=function(A,L){L!=null?(A.kE=L,A.OE=!0):(A.kE="",A.OE=!1)};
|
|
Aew=function(A,L){if(L=L.playerControlsOverlayRenderer)zS7(A,L.controlBgHtml),L.mutedAutoplay?(L=g.y(L.mutedAutoplay,up7))&&L.endScreen&&(L=g.y(L.endScreen,aN6))&&L.text&&(A.Tz=g.wq(L.text)):A.mutedAutoplay=!1};
|
|
L9L=function(A,L){var B=L.backgroundability;B&&B.backgroundabilityRenderer.backgroundable&&(A.backgroundable=!0);var f,K;if((f=L.offlineability)==null?0:(K=f.offlineabilityRenderer)==null?0:K.offlineable)A.offlineable=!0;if(B=L.contextParams)A.contextParams=B;(B=L.pictureInPicture)&&B.pictureInPictureRenderer.playableInPip&&(A.pipable=!0);L.playableInEmbed&&(A.allowEmbed=!0);if(B=L.ypcClickwrap)L=B.playerLegacyDesktopYpcClickwrapRenderer,B=B.ypcRentalActivationRenderer,L?(A.QR=L.durationMessage||
|
|
"",A.b8=!0):B&&(L=B.durationMessage,A.QR=L?g.wq(L):"",A.b8=!0)};
|
|
B98=function(A,L,B){var f=Q3(L.googleRemarketingUrl);f&&(A.googleRemarketingUrl=f);if(f=Q3(L.youtubeRemarketingUrl))A.youtubeRemarketingUrl=f;if(f=L.heartbeatLoggingToken)A.heartbeatLoggingToken=f;f={};var K=Q3(L.ptrackingUrl);if(K){K=Co(K);var V=K.oid;V&&(A.gO=V);if(V=K.pltype)A.rO=V;if(V=K.ptchn)A.YZ=V;if(V=K.ptk)A.Ae=encodeURIComponent(V);if(K=K.m)A.y5=K}if(K=Q3(L.qoeUrl)){K=g.RM(K);V=g.m(Object.keys(K));for(var J=V.next();!J.done;J=V.next()){J=J.value;var R=K[J];K[J]=Array.isArray(R)?R.join(","):
|
|
R}A.XK=K;if(V=K.cat)A.J("html5_enable_qoe_cat_list")?A.Vs=A.Vs.concat(V.split(",")):A.AU=V;if(V=K.live)A.jj=V;if(K=K.drm_product)A.drmProduct=K}if(K=Q3(L.videostatsPlaybackUrl)){K=Co(K);if(V=K.adformat)if(B.adformat=V,J=A.K(),J=ChS(V,A.XR,J.U,J.G))A.adFormat=J;if(J=K.aqi)B.ad_query_id=J;if(B=K.autoplay)A.BV=B=="1",A.Ll=B=="1";if(B=K.autonav)A.isAutonav=B=="1";if(B=K.delay)A.qo=na(B);if(B=K.ei)A.eventId=B;if(B=$i(K.adcontext))try{var Z=oYQ(B);Z&&(A.NS=Z)}catch(N){g.CE(Error("Malformed adContext"))}if(B||
|
|
V)A.BV=!0;if(Z=K.feature)A.Sw=Z;if(Z=K.list)A.playlistId=Z;if(Z=K.of)A.oB=Z;if(Z=K.osid)A.osid=Z;if(Z=K.referrer)A.referrer=Z;if(Z=K.sdetail)A.kc=Z;if(Z=K.sourceid)A.KGr=Z;if(Z=K.ssrt)A.dY=Z=="1";if(Z=K.subscribed)A.subscribed=Z=="1";if(Z=K.uga)A.userGenderAge=Z;if(Z=K.upt)A.bK=Z;if(Z=K.vm)A.videoMetadata=Z;f.playback=K}if(Z=Q3(L.videostatsWatchtimeUrl)){Z=Co(Z);if(B=Z.ald)A.f2=B;f.watchtime=Z}if(Z=Q3(L.atrUrl))Z=Co(Z),f.atr=Z;if(Z=Q3(L.engageUrl))Z=Co(Z),f.engage=Z;A.Ly=f;L.promotedPlaybackTracking&&
|
|
(L=L.promotedPlaybackTracking,L.startUrls&&(A.dw=L.startUrls),L.firstQuartileUrls&&(A.FQ=L.firstQuartileUrls),L.secondQuartileUrls&&(A.UX=L.secondQuartileUrls),L.thirdQuartileUrls&&(A.wE=L.thirdQuartileUrls),L.completeUrls&&(A.tM=L.completeUrls),L.engagedViewUrls&&(L.engagedViewUrls.length>1&&g.CE(new g.iL("There are more than one engaged_view_urls.")),A.N3=L.engagedViewUrls[0]))};
|
|
fJE=function(A,L,B){L=g.m(L);for(var f=L.next();!f.done;f=L.next())if(f=f.value)if(f=f.playerLegacyDesktopWatchAdsRenderer)if(f=f.playerAdParams){f.autoplay=="1"&&(A.BV=!0,A.Ll=!0);A.aQ=f.encodedAdSafetyReason||null;f.showContentThumbnail!==void 0&&(A.nL=!!f.showContentThumbnail);B.enabled_engage_types=f.enabledEngageTypes;break}};
|
|
K9y=function(A,L){var B=L.manifestlessWindowedLiveConfig;if(B){var f=Number(B.minDvrSequence),K=Number(B.maxDvrSequence),V=Number(B.minDvrMediaTimeMs),J=Number(B.maxDvrMediaTimeMs);B=Number(B.startWalltimeMs);f&&(A.F3=f);V&&(A.SO=V/1E3,A.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(A)&&(A.CK=V/1E3));K&&(A.lW=K);J&&(A.E0=J/1E3,A.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(A)&&(A.F9=J/1E3));B&&(A.HY=B/1E3);(f||V)&&(K||J)&&(A.hd=!0,A.isLivePlayback=!0,A.allowLiveDvr=!0,
|
|
A.SD=!1)}if(f=L.daiConfig){if(f.enableDai){A.yC=!0;if(K=f.enableServerStitchedDai)A.enableServerStitchedDai=K;if(K=f.enablePreroll)A.dL=K}var R;if(f.daiType==="DAI_TYPE_SS_DISABLED"||((R=f.debugInfo)==null?0:R.isDisabledUnpluggedChannel))A.mA=!0;f.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(A.DC=!0);f.allowUstreamerRequestAdconfig&&(A.Is=!0);f.sendSsdaiMissingAdBreakReasons&&(A.uHF=!0)}if(R=L.audioConfig){f=R.loudnessDb;f!=null&&(A.EQ=f);f=R.trackAbsoluteLoudnessLkfs;f!=null&&(A.EL=f);f=R.loudnessTargetLkfs;
|
|
f!=null&&(A.loudnessTargetLkfs=f);R.audioMuted&&(A.s$=!0);R.muteOnStart&&(A.FK=!0);if(f=R.loudnessNormalizationConfig)f.applyStatefulNormalization&&(A.applyStatefulNormalization=!0),f.preserveStatefulLoudnessTarget&&(A.preserveStatefulLoudnessTarget=!0),K=f.minimumLoudnessTargetLkfs,K!=null&&(A.minimumLoudnessTargetLkfs=K),f=f.maxStatefulTimeThresholdSec,f!=null&&(A.maxStatefulTimeThresholdSec=f);R.playAudioOnly&&(A.qh=!0)}if(f=L.playbackEndConfig)R=f.endSeconds,f=f.limitedPlaybackDurationInSeconds,
|
|
A.mutedAutoplay&&(R&&(A.endSeconds=R),f&&(A.limitedPlaybackDurationInSeconds=f));if(R=L.fairPlayConfig){if(f=R.certificate)A.xf=$i(f);f=Number(R.keyRotationPeriodMs);f>0&&(A.wV=f);R=Number(R.keyPrefetchMarginMs);R>0&&(A.Ub=R)}if(R=L.playbackStartConfig){A.G2=Number(R.startSeconds);K=R.liveUtcStartSeconds;f=!!A.liveUtcStartSeconds&&A.liveUtcStartSeconds>0;K&&!f&&(A.liveUtcStartSeconds=Number(K));if(K=R.startPosition)if((V=K.utcTimeMillis)&&!f&&(A.liveUtcStartSeconds=Number(V)*.001),f=K.streamTimeMillis)A.NT=
|
|
Number(f)*.001;A.progressBarStartPosition=R.progressBarStartPosition;A.progressBarEndPosition=R.progressBarEndPosition}else if(R=L.skippableSegmentsConfig){if(f=R.introSkipDurationMs)A.dW=Number(f)/1E3;if(R=R.outroSkipDurationMs)A.aB=Number(R)/1E3}if(f=L.skippableIntroConfig)R=Number(f.startMs),f=Number(f.endMs),isNaN(R)||isNaN(f)||(A.SR=R,A.YA=f);if(R=L.streamSelectionConfig)A.dg=Number(R.maxBitrate);if(R=L.vrConfig)A.qY=R.partialSpherical=="1";if(R=L.webDrmConfig){R.skipWidevine&&(A.Ci=!0);if(f=
|
|
R.widevineServiceCert)A.LL=$i(f);R.useCobaltWidevine&&(A.useCobaltWidevine=!0);R.startWithNoQualityConstraint&&(A.B$=!0)}if(R=L.mediaCommonConfig){if(f=R.dynamicReadaheadConfig){A.maxReadAheadMediaTimeMs=f.maxReadAheadMediaTimeMs||NaN;A.minReadAheadMediaTimeMs=f.minReadAheadMediaTimeMs||NaN;A.readAheadGrowthRateMs=f.readAheadGrowthRateMs||NaN;var Z;if(f=R==null?void 0:(Z=R.mediaUstreamerRequestConfig)==null?void 0:Z.videoPlaybackUstreamerConfig)A.Sg=$i(f);if((Z=R==null?void 0:R.sabrContextUpdates)&&
|
|
Z.length>0)for(Z=g.m(Z),f=Z.next();!f.done;f=Z.next())f=f.value,f.type&&f.value&&(K={type:f.type,scope:f.scope,value:$i(f.value)||void 0,sendByDefault:f.sendByDefault},A.sabrContextUpdates.set(f.type,K))}if(Z=R.serverPlaybackStartConfig)A.serverPlaybackStartConfig=Z;R.useServerDrivenAbr&&(A.qI=!0);if(Z=R.requestPipeliningConfig)A.requestPipeliningConfig=Z}if(Z=L.inlinePlaybackConfig)A.jm=!!Z.showAudioControls;if(Z=L.embeddedPlayerConfig){A.embeddedPlayerConfig=Z;if(R=Z.embeddedPlayerMode)f=A.K(),
|
|
f.wT=R,f.V=R==="EMBEDDED_PLAYER_MODE_PFL";if(Z=Z.permissions)A.allowImaMonetization=!!Z.allowImaMonetization}if(L=L.webPlayerConfig)L.gatewayExperimentGroup&&(A.gatewayExperimentGroup=L.gatewayExperimentGroup),L.isProximaEligible&&(A.isProximaLatencyEligible=!0)};
|
|
VLQ=function(A,L,B){var f=L.formats;if(f){for(var K=[],V=g.m(f),J=V.next();!J.done;J=V.next())J=J.value,K.push(J.itag+"/"+J.width+"x"+J.height);A.bI=K.join(",");K=[];f=g.m(f);for(V=f.next();!V.done;V=f.next()){J=V.value;V={itag:J.itag,type:J.mimeType,quality:J.quality};var R=J.url;R&&(V.url=R);J=J1(60,J);R=J.Ff;var Z=J.q0,N=J.s;J.sG&&(V.url=R,V.sp=Z,V.s=N);K.push(g.CC(V))}A.Nh=K.join(",")}if(V=L.hlsFormats){K={};if(B&&(B=B.audioPairingConfig)&&B.pairs)for(B=g.m(B.pairs),f=B.next();!f.done;f=B.next())f=
|
|
f.value,J=f.videoItag,K[J]||(K[J]=[]),K[J].push(f.audioItag);B={};f=g.m(V);for(J=f.next();!J.done;J=f.next())J=J.value,B[J.itag]=J.bitrate;f=[];V=g.m(V);for(J=V.next();!J.done;J=V.next()){J=J.value;R={itag:J.itag,type:J.mimeType,url:J.url,bitrate:J.bitrate,width:J.width,height:J.height,fps:J.fps};if(Z=J.audioTrack)if(N=Z.displayName)R.name=N,R.audio_track_id=Z.id,Z.audioIsDefault&&(R.is_default="1");if(J.drmFamilies){Z=[];N=g.m(J.drmFamilies);for(var F=N.next();!F.done;F=N.next())Z.push(UI[F.value]);
|
|
R.drm_families=Z.join(",")}(Z=K[J.itag])&&Z.length&&(R.audio_itag=Z.join(","),(Z=B[Z[0]])&&(R.bitrate+=Z));(Z=pVQ(J))&&(R.eotf=Z);J.audioChannels&&(R.audio_channels=J.audioChannels);f.push(g.CC(R))}A.hlsFormats=f.join(",")}if((B=L.licenseInfos)&&B.length>0){K={};B=g.m(B);for(f=B.next();!f.done;f=B.next())V=f.value,f=V.drmFamily,V=V.url,f&&V&&(K[UI[f]]=V);A.Zj=K}if(K=L.drmParams)A.drmParams=K;if(K=L.dashManifestUrl)A.sZ=g.ip(K,{cpn:A.clientPlaybackNonce});if(K=L.hlsManifestUrl)A.hlsvp=K;if(K=L.probeUrl)A.probeUrl=
|
|
YG(g.ip(K,{cpn:A.clientPlaybackNonce}));if(L=L.serverAbrStreamingUrl)A.Qi=new g.Fk(L,!0)};
|
|
S40=function(A,L,B){var f=L.videoId;f&&(A.videoId=f,B.video_id||(B.video_id=f));if(f=L.title)A.title=f,B.title||(B.title=f);if(f=L.lengthSeconds)A.lengthSeconds=Number(f),B.length_seconds||(B.length_seconds=f);if(f=L.keywords)A.keywords=JeS(f);if(f=L.channelId)A.JO=f,B.ucid||(B.ucid=f);if(f=L.viewCount)A.rawViewCount=Number(f);if(f=L.author)A.author=f,B.author||(B.author=f);if(B=L.shortDescription)A.shortDescription=B;if(B=L.isCrawlable)A.isListed=B;if(B=L.musicVideoType)A.musicVideoType=B;B=L.isLive;
|
|
B!=null&&(A.isLivePlayback=B);if(B||L.isUpcoming)A.isPremiere=!L.isLiveContent;if(B=L.thumbnail)A.ea=m$(B);if(B=L.isExternallyHostedPodcast)A.isExternallyHostedPodcast=B;(B=L.stationType)&&B!=="STATION_TYPE_UNKNOWN"&&(A.K4F=!0);L=L.viewerLivestreamJoinPosition;if(L==null?0:L.utcTimeMillis)A.iK=na(L.utcTimeMillis)};
|
|
N90=function(A,L){if(L.playerLegacyDesktopYpcTrailerRenderer){var B=L.playerLegacyDesktopYpcTrailerRenderer;A.B0=B.trailerVideoId||"";var f=(f=L.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&f.ypcTrailerRenderer}else if(L.playerLegacyDesktopYpcOfferRenderer)B=L.playerLegacyDesktopYpcOfferRenderer;else if(L.ypcTrailerRenderer){f=L.ypcTrailerRenderer;L=f.fullVideoMessage;A.v0=L?g.wq(L):"";var K,V;A.B0=((K=g.y(f,R9w))==null?void 0:(V=K.videoDetails)==null?void 0:V.videoId)||""}B&&(A.Kf=B.itemTitle||
|
|
"",B.itemUrl&&(A.n1=B.itemUrl),B.itemBuyUrl&&(A.gD=B.itemBuyUrl),A.rD=B.itemThumbnail||"",A.EA=B.offerHeadline||"",A.Gm=B.offerDescription||"",A.yW=B.offerId||"",A.z0=B.offerButtonText||"",A.wH=B.offerButtonFormattedText||null,A.O1=B.overlayDurationMsec||NaN,A.v0=B.fullVideoMessage||"",A.kS=!0);f&&((B=g.y(f,R9w))?A.WC={raw_player_response:B}:(B=g.y(f,ZJC),A.WC=B?I0(B):null),A.kS=!0)};
|
|
D0y=function(A,L,B,f){L.isLiveDefaultBroadcast&&(A.isLiveDefaultBroadcast=!0);L.isUpcoming&&(A.isUpcoming=!0);if(L.isPostLiveDvr){A.SD=!0;if(f=L.latencyClass)A.latencyClass=F9E[f]||"UNKNOWN";L.isLowLatencyLiveStream&&(A.isLowLatencyLiveStream=!0)}else{var K=!1;A.I7?(A.allowLiveDvr=h7()?!0:oX&&$c<5?!1:!0,A.isLivePlayback=!0):L.isLive?(f.livestream="1",A.allowLiveDvr=L.isLiveDvrEnabled?h7()?!0:oX&&$c<5?!1:!0:!1,A.partnerId=27,K=!0):L.isUpcoming&&(K=!0);if(L.isLive||A.I7){L.isLowLatencyLiveStream&&(A.isLowLatencyLiveStream=
|
|
!0);var V=L.latencyClass;V&&(A.latencyClass=F9E[V]||"UNKNOWN");if(L=L.liveChunkReadahead)A.liveChunkReadahead=L;if(L=B&&B.livePlayerConfig){L.hasSubfragmentedFmp4&&(A.hasSubfragmentedFmp4=!0);L.hasSubfragmentedWebm&&(A.XI=!0);L.defraggedFromSubfragments&&(A.defraggedFromSubfragments=!0);if(B=L.liveExperimentalContentId)A.liveExperimentalContentId=Number(B);L=L.isLiveHeadPlayable;A.J("html5_live_head_playable")&&L!=null&&(A.isLiveHeadPlayable=L)}}K&&(A.isLivePlayback=!0,f.adformat&&f.adformat.split("_")[1]!==
|
|
"8"||A.p9.push("heartbeat"))}};
|
|
X1=function(A,L){this.type=A||"";this.id=L||""};
|
|
Oe=function(A){return new X1(A.substring(0,2),A.substring(2))};
|
|
Ee=function(A,L){this.tF=A;this.author="";this.xq=null;this.playlistLength=0;this.N=this.sessionData=null;this.ea={};this.title="";if(L){this.author=L.author||L.playlist_author||"";this.title=L.playlist_title||"";if(A=L.session_data)this.sessionData=Vh(A,"&");var B;this.N=((B=L.thumbnail_ids)==null?void 0:B.split(",")[0])||null;this.ea=lS(L,"playlist_");this.videoId=L.video_id||void 0;if(B=L.list)switch(L.listType){case "user_uploads":this.playlistId=(new X1("UU","PLAYER_"+B)).toString();break;default:if(A=
|
|
L.playlist_length)this.playlistLength=Number(A)||0;this.playlistId=Oe(B).toString();if(L=L.video)this.videoId=(L[0]||null).video_id||void 0}else L.playlist&&(this.playlistLength=L.playlist.toString().split(",").length)}};
|
|
cN=function(A,L){this.tF=A;this.Eh=this.author="";this.xq=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.CZ=this.lengthText="";this.sessionData=null;this.ea={};this.title="";if(L){this.ariaLabel=L.aria_label||void 0;this.author=L.author||"";this.Eh=L.Eh||"";if(A=L.endscreen_autoplay_session_data)this.xq=Vh(A,"&");this.qW=L.qW;this.isLivePlayback=L.live_playback==="1";this.isUpcoming=!!L.isUpcoming;if(A=L.length_seconds)this.lengthSeconds=typeof A==="string"?Number(A):A;this.lengthText=
|
|
L.lengthText||"";this.CZ=L.CZ||"";this.publishedTimeText=L.publishedTimeText||void 0;if(A=L.session_data)this.sessionData=Vh(A,"&");this.shortViewCount=L.short_view_count_text||void 0;this.ea=lS(L);this.title=L.title||"";this.videoId=L.docid||L.video_id||L.videoId||L.id||void 0;this.watchUrl=L.watchUrl||void 0}};
|
|
d08=function(A){var L,B,f=(L=A.getWatchNextResponse())==null?void 0:(B=L.contents)==null?void 0:B.twoColumnWatchNextResults,K,V,J,R,Z;A=(K=A.getWatchNextResponse())==null?void 0:(V=K.playerOverlays)==null?void 0:(J=V.playerOverlayRenderer)==null?void 0:(R=J.endScreen)==null?void 0:(Z=R.watchNextEndScreenRenderer)==null?void 0:Z.results;if(!A){var N,F;A=f==null?void 0:(N=f.endScreen)==null?void 0:(F=N.endScreen)==null?void 0:F.results}return A};
|
|
g.Yc=function(A){var L,B,f;A=g.y((L=A.getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,Mg);return g.y(A==null?void 0:A.playerBar,IJE)};
|
|
wyk=function(A){this.N=A.playback_progress_0s_url;this.V=A.playback_progress_2s_url;this.W=A.playback_progress_10s_url};
|
|
pyw=function(){if(Ue===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(L){}a:{try{var A=!!self.localStorage}catch(L){A=!1}if(A&&(A=g.cC(g.nn()+"::yt-player"))){Ue=new UN(A);break a}Ue=void 0}}return Ue};
|
|
g.WN=function(){var A=pyw();if(!A)return{};try{var L=A.get("yt-player-lv");return JSON.parse(L||"{}")}catch(B){return{}}};
|
|
g.ye1=function(A){var L=pyw();L&&(A=JSON.stringify(A),L.set("yt-player-lv",A))};
|
|
g.vN=function(A){return g.WN()[A]||0};
|
|
g.qg=function(A,L){var B=g.WN();L!==B[A]&&(L!==0?B[A]=L:delete B[A],g.ye1(B))};
|
|
g.PN=function(A){return g.c(function(L){return L.return(g.Wf(jG6(),A))})};
|
|
eK=function(A,L,B,f,K,V,J,R){var Z,N,F,D,I,d;return g.c(function(w){switch(w.N){case 1:return Z=g.vN(A),Z===4?w.return(4):g.X(w,g.Ab(),2);case 2:N=w.W;if(!N)throw g.g2("wiac");if(!R||J===void 0){w.Ux(3);break}return g.X(w,gY6(R,J),4);case 4:J=w.W;case 3:return F=B.lastModified||"0",g.X(w,g.PN(N),5);case 5:return D=w.W,g.S5(w,6),xc++,g.X(w,g.mz(D,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Ev:!0},function(r){if(V!==void 0&&J!==void 0){var h=""+A+"|"+L.id+"|"+F+"|"+String(V).padStart(10,
|
|
"0");h=g.Qw(r.objectStore("media"),J,h)}else h=g.r2.resolve(void 0);var Q=Glw(A,L.WV()),l=Glw(A,!L.WV()),C={fmts:rev(f),format:B||{}};Q=g.Qw(r.objectStore("index"),C,Q);var O=f.downloadedEndTime===-1;C=O?r.objectStore("index").get(l):g.r2.resolve(void 0);var v={fmts:"music",format:{}};r=O&&K&&!L.WV()?g.Qw(r.objectStore("index"),v,l):g.r2.resolve(void 0);return g.r2.all([r,C,h,Q]).then(function(U){U=g.m(U);U.next();U=U.next().value;xc--;var a=g.vN(A);if(a!==4&&O&&K||U!==void 0&&g.sG1(U.fmts))a=1,g.qg(A,
|
|
a);return a})}),8);
|
|
case 8:return w.return(w.W);case 6:I=g.NX(w);xc--;d=g.vN(A);if(d===4)return w.return(d);g.qg(A,4);throw I;}})};
|
|
g.HJ6=function(A){var L,B;return g.c(function(f){if(f.N==1)return g.X(f,g.Ab(),2);if(f.N!=3){L=f.W;if(!L)throw g.g2("ri");return g.X(f,g.PN(L),3)}B=f.W;return f.return(g.mz(B,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(K){var V=IDBKeyRange.bound(A+"|",A+"~");return K.objectStore("index").getAll(V).then(function(J){return J.map(function(R){return R?R.format:{}})})}))})};
|
|
bJe=function(A,L,B,f,K){var V,J,R;return g.c(function(Z){if(Z.N==1)return g.X(Z,g.Ab(),2);if(Z.N!=3){V=Z.W;if(!V)throw g.g2("rc");return g.X(Z,g.PN(V),3)}J=Z.W;R=g.mz(J,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(N){var F=""+A+"|"+L+"|"+B+"|"+String(f).padStart(10,"0");return N.objectStore("media").get(F)});
|
|
return K?Z.return(R.then(function(N){if(N===void 0)throw Error("No data from indexDb");return h97(K,N)}).catch(function(N){throw new g.iL("Error while reading chunk: "+N.name+", "+N.message);
|
|
})):Z.return(R)})};
|
|
g.sG1=function(A){return A?A==="music"?!0:A.includes("dlt=-1")||!A.includes("dlt="):!1};
|
|
Glw=function(A,L){return""+A+"|"+(L?"v":"a")};
|
|
rev=function(A){var L={};return J_((L.dlt=A.downloadedEndTime.toString(),L.mket=A.maxKnownEndTime.toString(),L.avbr=A.averageByteRate.toString(),L))};
|
|
kl8=function(A){var L={},B={};A=g.m(A);for(var f=A.next();!f.done;f=A.next()){var K=f.value,V=K.split("|");K.match(g.tLL)?(f=Number(V.pop()),isNaN(f)?B[K]="?":(V=V.join("|"),(K=L[V])?(V=K[K.length-1],f===V.end+1?V.end=f:K.push({start:f,end:f})):L[V]=[{start:f,end:f}])):B[K]="?"}A=g.m(Object.keys(L));for(f=A.next();!f.done;f=A.next())f=f.value,B[f]=L[f].map(function(J){return J.start+"-"+J.end}).join(",");
|
|
return B};
|
|
no=function(A){g.SN.call(this);this.N=null;this.V=new WC;this.N=null;this.T=new Set;this.crossOrigin=A||""};
|
|
T9D=function(A,L,B){for(B=zd(A,B);B>=0;){var f=A.levels[B];if(f.isLoaded(uS(f,L))&&(f=g.ao(f,L)))return f;B--}return g.ao(A.levels[0],L)};
|
|
m0Q=function(A,L,B){B=zd(A,B);for(var f,K;B>=0;B--)if(f=A.levels[B],K=uS(f,L),!f.isLoaded(K)){f=A;var V=B,J=V+"-"+K;f.T.has(J)||(f.T.add(J),f.V.enqueue(V,{Q$:V,Jb:K}))}lJ7(A)};
|
|
lJ7=function(A){if(!A.N&&!A.V.isEmpty()){var L=A.V.remove();A.N=QG6(A,L)}};
|
|
QG6=function(A,L){var B=document.createElement("img");A.crossOrigin&&(B.crossOrigin=A.crossOrigin);B.src=A.levels[L.Q$].MQ(L.Jb);B.onload=function(){var f=L.Q$,K=L.Jb;A.N!==null&&(A.N.onload=null,A.N=null);f=A.levels[f];f.loaded.add(K);lJ7(A);var V=f.columns*f.rows;K*=V;f=Math.min(K+V-1,f.rV()-1);K=[K,f];A.publish("l",K[0],K[1])};
|
|
return B};
|
|
g.Aa=function(A,L,B,f){this.level=A;this.U=L;this.loaded=new Set;this.level=A;this.U=L;A=B.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.N=Math.floor(Number(A[5]));this.V=A[6];this.signature=A[7];this.videoLength=f};
|
|
uS=function(A,L){return Math.floor(L/(A.columns*A.rows))};
|
|
g.ao=function(A,L){L>=A.w0()&&A.ih();var B=uS(A,L),f=A.columns*A.rows,K=L%f;L=K%A.columns;K=Math.floor(K/A.columns);var V=A.ih()+1-f*B;if(V<A.columns){var J=V;f=1}else J=A.columns,f=V<f?Math.ceil(V/A.columns):A.rows;return{url:A.MQ(B),column:L,columns:J,row:K,rows:f,RF:A.width*J,Gk:A.height*f}};
|
|
Lr=function(A,L,B,f,K){f=f===void 0?!1:f;K=K===void 0?!1:K;no.call(this,B);this.isLive=f;this.X=!!K;this.levels=this.W(A,L);this.U=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
|
|
var r1y=function(A,L,B,f,K){return pw[S[2]](this,30,A,L,B,f,K)};
|
|
CML=function(A,L,B){return(A=A.levels[L])?A.RQ(B):-1};
|
|
zd=function(A,L){var B=A.U.get(L);if(B)return B;B=A.levels.length;for(var f=0;f<B;f++)if(A.levels[f].width>=L)return A.U.set(L,f),f;A.U.set(L,B-1);return B-1};
|
|
oq=function(A,L,B,f){B=B.split("#");B=[B[1],B[2],0,B[3],B[4],-1,B[0],""].join("#");g.Aa.call(this,A,L,B,0);this.W=null;this.D=f?2:0};
|
|
BK=function(A,L,B,f){Lr.call(this,A,0,void 0,L,!(f===void 0||!f));for(A=0;A<this.levels.length;A++)this.levels[A].h6(B)};
|
|
iJ0=function(A,L,B){L={cpn:L};A.indexOf("/ibw/")===-1&&(L.ibw=B?String(B):"1369843");return{url:g.ip(A,L),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
|
|
$08=function(A){try{var L=(new g.Fk(A,!0)).get("n");if(L){var B=A.match(/\/n\/([^/]+)/);if(B&&B[1]&&B[1]!==L)return A.replace("/n/"+B[1],"/n/"+L)}}catch(f){g.CE(f)}return A};
|
|
g.Kr=function(A,L){g.SN.call(this);var B=this;this.tF=A;this.adaptiveFormats="";this.aQ=this.adQueryId=this.w$=null;this.iD={start:NaN,end:NaN};this.cueRanges=this.Zj=null;this.Ym=new Map;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.zM="";this.Bf=!1;this.x$=null;this.b8=this.kS=this.qw=!1;this.U=null;this.FK=this.s$=!1;this.EQ=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=
|
|
0;this.EL=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.cI=0;this.l_=!1;this.cycToken=null;this.author="";this.e0=!1;this.jI=0;this.cR=!1;this.a7=null;this.rp=[];this.hI=this.jH=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Ys=this.zV="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.qo=0;this.LL=this.xf=this.W=null;this.bI="";this.loading=!1;this.dg=this.Ji=0;this.xY=this.pipable=
|
|
this.Ll=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.BV=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.I7=this.isPrivate=this.isListed=this.Pz=!1;this.jj="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.y8=this.hd=this.SD=!1;this.latencyClass="UNKNOWN";this.p$=this.B4=this.mA=this.uu=this.OC=this.iA=this.dL=this.DC=this.uHF=this.Is=this.enableServerStitchedDai=this.yC=this.isMdxPlayback=
|
|
this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Cr=0;this.reloadReason="";this.Tm=this.N8=!1;this.keywords={};this.Ox="";this.IV=0;this.gp=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.JA=null;this.Tf=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.iT=this.paygated=!1;this.LX=[];this.Of=!1;this.p9=[];this.Sg=null;this.g4=this.racyCheckOk=!1;this.P0={};this.isProximaLatencyEligible=!1;this.hG=0;this.V=
|
|
null;this.autonavState=1;this.MS=null;this.shortDescription="";this.G=this.r4=!1;this.NT=this.Ex=this.startSeconds=0;this.nO=this.vC=this.zK=fr;this.M7=this.suggestions=null;this.I_=this.FT=void 0;this.isExternallyHostedPodcast=!1;this.b2=null;this.wp=this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.JF=[];this.k6=[];this.hlsFormats=this.Nh="";this.TK=this.r$=this.Po=this.Nl=this.wT=this.ye=this.fu=this.nD=null;this.Zl="vvt";this.a8=!1;this.wH=null;this.A9="";this.O1=NaN;this.B0=
|
|
this.n1=this.Kf=this.rD=this.gD=this.yW=this.v0=this.EA=this.Gm=this.z0="";this.WC=null;this.il=!1;this.clipStart=0;this.clipEnd=Infinity;this.Q0=!1;this.heartbeatToken="";this.cU=this.y3=NaN;this.bA=this.LD=this.Gt=this.TZ=this.V$=this.BU=!1;this.nL=!0;this.ea={};this.captionTracks=[];this.kL=[];this.As=0;this.VT=[];this.Rj=[];this.M$=!1;this.rg={};this.Ry=new g.i6("und",new g.$6("Default","und",!0));this.V8=0;this.D=null;this.BI=[];this.SM=!1;this.XR=this.ql="";this.slotPosition=-1;this.breakType=
|
|
0;this.embeddedPlayerConfig=this.reelItemWatchResponse=this.Vj=this.tI=this.hq=this.playerResponse=this.cC=this.XT=this.iW=this.Yu=null;this.gy=!1;this.Uv=null;this.isInlinePlaybackNoAd=this.B$=this.XV=this.useCobaltWidevine=this.Ci=this.qY=!1;this.jm=!0;this.YA=this.SR=NaN;this.defraggedFromSubfragments=this.XI=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.S4=new Set;this.sabrContextUpdates=new Map;this.gatewayExperimentGroup="";this.jr=this.ZM=this.qh=!1;this.interstitials=
|
|
[];this.OE=this.ke=!1;this.kE="";this.allowImaMonetization=!1;this.Tz="";this.U$=!1;this.AU="";this.Vs=[];this.mL=[];this.XA="";this.YS=this.X=this.wJ=!1;this.QR="";this.G2=this.aB=this.dW=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.kR=!1;this.mC=this.t$=!0;this.errorDetail=this.userGenderAge="";this.D$=this.MI=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=
|
|
this.contextParams=this.Qr=this.errorReason=this.errorCode=null;this.Sb=!1;this.e6=[];this.HY=this.SO=this.E0=this.lW=this.F3=0;this.fetchType=null;this.HC=!0;this.transitionEndpointAtEndOfStream=void 0;this.gg=this.QW=-1;this.Pk=this.mH=!1;this.cn=null;this.yj="";this.watchUrl=null;this.jb=[];this.visibleOnLoadKeys=[];this.sC=[];this.inlineMetricEnabled=this.Bk=!1;this.e8=this.embedsRctn=this.embedsRct="";this.Qu=NaN;this.authorizedFormats=[];this.IT=(0,g.bc)();this.iK=this.jD=0;this.xC=null;this.K4F=
|
|
this.Cx=this.qI=this.UO=!1;this.Ly={};this.e7=.25;this.mM=2;this.Es=this.GZ=!1;this.sx=this.tF.experiments.GL("html5_use_triple_equals");this.Yn=g.Am(this.tF.experiments,"html5_gapless_loop_seek_offset_in_milli");this.GV={setData:function(f){B.setData(f)},
|
|
C_:function(){B.C_()},
|
|
zc:function(f){B.zc(f)}};
|
|
this.mH=this.J("web_new_autonav_countdown");this.Pk=this.J("web_new_big_thumbnail_endscreen");this.tF.TK&&(this.Wn=this.tF.TK);this.setData(L);this.BR=new UO;g.W(this,this.BR)};
|
|
g.SC=function(A,L,B){L&&L.cpn&&g.CE(new g.iL("CPN provided in VideoData update",{X4n:L.cpn,l0:A.clientPlaybackNonce,Q5T:B}));B?(DG(L),A.setData(L),V7(A)&&A.C_()):(L=L||{},XyE(A,L),Ja(A,L),OJ7(A,L),EYS(A,L),A.publish("dataupdated"))};
|
|
EYS=function(A,L){A.fflags=NE(A.fflags,L.fflags);var B=L.iv_invideo_url;B&&(A.zM=YG(B));A.Bf=Sw(A.Bf,L.iv_ads_only);if(B=L.cta_conversion_urls)A.Y2=B;A.isPharma=Sw(A.isPharma,L.is_pharma);A.author=NE(A.author,L.author);A.zV=M$6(L.ttsurl)||A.zV;A.cR=Sw(A.cR,L.cc_asr);A.Ys=NE(A.Ys,L.channel_path);if(B=L.profile_picture)A.profilePicture=NE(A.profilePicture,B);A.videoCountText=NE(A.videoCountText,L.video_count_text);A.autonavState=RX(A.autonavState,L.autonav_state,ce8);A.clientPlaybackNonce=NE(A.clientPlaybackNonce,
|
|
L.cpn);A.subscribed=Sw(A.subscribed,L.subscribed);A.rawViewCount=ZG(A.rawViewCount,L.view_count);A.shortViewCount=NE(A.shortViewCount,L.short_view_count_text);A.publishedTimeText=NE(A.publishedTimeText||"",L.publishedTimeText);A.lengthText=NE(A.lengthText||"",L.lengthText);A.CZ=NE(A.CZ||"",L.CZ);A.Eh=NE(A.Eh||"",L.Eh);A.title=NE(A.title,L.title);A.subtitle=NE(A.subtitle,L.subtitle);A.expandedTitle=NE(A.expandedTitle,L.expanded_title);A.expandedSubtitle=NE(A.expandedSubtitle,L.expanded_subtitle);A.ypcPreview=
|
|
NE(A.ypcPreview,L.ypc_preview);A.nJ=NE(A.nJ,L.ypc_origin);A.a8=Sw(A.a8,L.ypc_is_premiere_trailer);A.QR=NE(A.QR,L.ypc_clickwrap_message);A.paygated=Sw(A.paygated,L.paygated);A.il=Sw(A.il,L.requires_purchase);A.showShareButton=!Sw(!A.showShareButton,L.ss);A.t$=Sw(A.t$,L.showwatchlater);A.mC=Sw(A.mC,L.shownotifybutton);A.kR=Sw(A.kR,L.copy_share);if(B=L.el)A.eventLabel=B;if(B=L.keywords)A.keywords=JeS(B.split(","));if(B=L.rvs)A.suggestions=Sk(B).map(function(f){return f.playlist||f.list||f.api?new Ee(A.tF,
|
|
f):new cN(A.tF,f)});
|
|
A.contentCheckOk=Sw(A.contentCheckOk,L.cco);A.racyCheckOk=Sw(A.racyCheckOk,L.rco);A.isLivingRoomDeeplink=Sw(A.isLivingRoomDeeplink,L.is_living_room_deeplink);A.oauthToken=NE(A.oauthToken,L.oauth_token);A.Ox=NE(A.Ox,L.kpt);A.visitorData=NE(A.visitorData,L.visitor_data);if(B=L.session_data)A.sessionData=Vh(B,"&");A.lR=NE(A.lR,L.endscreen_ad_tracking_data);A.zs=Sw(A.zs,L.wait_for_vast_info_cards_xml);A.Z$=Sw(A.Z$,L.suppress_creator_endscreen);A.wF=Sw(A.wF,L.is_trueview_action);A.n2=NE(A.n2,L.tracking_list);
|
|
ML8(A,L)};
|
|
Y40=function(A){A=g.RM(A);return Number(A.expire)||0};
|
|
Rq=function(A){var L=A.K();return A.tF.Wn==="hm"||A.tF.Wn==="gd"||L.experiments.Qf().N.Iv(U06)&&A.tF.T?!0:!1};
|
|
W96=function(A,L,B){switch(L){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":B>30?A.limitedPlaybackDurationInSeconds=30:B<30&&B>10&&(A.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":A.limitedPlaybackDurationInSeconds=B*.2}};
|
|
Ja=function(A,L){var B=L.raw_watch_next_response;if(!B){var f=L.watch_next_response;f&&(B=JSON.parse(f))}if(B){A.Vj=B;var K=A.Vj.playerCueRangeSet;K&&g.ZQ(A,K);var V=A.Vj.playerOverlays;if(V){var J=V.playerOverlayRenderer;if(J){var R=J.autonavToggle;R&&(A.autoplaySwitchButtonRenderer=g.y(R,vYe),A.J("web_player_autonav_use_server_provided_state")&&NG(A)&&(A.autonavState=A.autoplaySwitchButtonRenderer.enabled?2:1));var Z=J.videoDetails;if(Z){var N=Z.embeddedPlayerOverlayVideoDetailsRenderer;var F=Z.playerOverlayVideoDetailsRenderer;
|
|
F&&(F.title&&(L.title=g.wq(F.title)),F.subtitle&&(L.subtitle=g.wq(F.subtitle)))}g.PL(A.tF)&&(A.t$=!!J.addToMenu);q4y(A,J.shareButton);J.startPosition&&J.endPosition&&(A.progressBarStartPosition=J.startPosition,A.progressBarEndPosition=J.endPosition);var D=J.gatedActionsOverlayRenderer;D&&(A.XN=g.y(D,PMe));var I,d,w,r=g.y((I=A.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(w=d.playerOverlayRenderer)==null?void 0:w.infoPanel,x00);if(r){A.Qu=Number(r==null?void 0:r.durationMs)||
|
|
NaN;if(r==null?0:r.infoPanelOverviewViewModel)A.KY=r==null?void 0:r.infoPanelOverviewViewModel;if(r==null?0:r.infoPanelDetailsViewModel)A.O_=r==null?void 0:r.infoPanelDetailsViewModel}A.showSeekingControls=!!J.showSeekingControls}}var h,Q,l=(h=A.getWatchNextResponse())==null?void 0:(Q=h.contents)==null?void 0:Q.twoColumnWatchNextResults;if(l){var C=l.desktopOverlay&&g.y(l.desktopOverlay,e9w);C&&(C.suppressShareButton&&(A.showShareButton=!1),C.suppressWatchLaterButton&&(A.t$=!1))}N&&nY0(A,L,N);var O=
|
|
ZG(0,L.autoplay_count),v=A.getWatchNextResponse(),U,a=(U=v.contents)==null?void 0:U.twoColumnWatchNextResults,o0,B6,Ve,DS=(o0=v.playerOverlays)==null?void 0:(B6=o0.playerOverlayRenderer)==null?void 0:(Ve=B6.autoplay)==null?void 0:Ve.playerOverlayAutoplayRenderer,fw=d08(A),ry,uL=(ry=v.contents)==null?void 0:ry.singleColumnWatchNextResults;if(uL){var Jf;if(((Jf=uL.autoplay)==null?0:Jf.autoplay)&&!uL.playlist){var MC=uL.autoplay.autoplay.sets,nw={},Xk=new cN(A.K()),e5=null,mt;if(MC){for(var T=g.m(MC),
|
|
aO=T.next();!aO.done;aO=T.next()){var YW=aO.value.autoplayVideoRenderer;if(YW&&YW.compactVideoRenderer){e5=YW.compactVideoRenderer;break}}if(mt=MC[0].autoplayVideo){var R0=mt.clickTrackingParams;R0&&(nw.itct=R0);nw.autonav="1";nw.playnext=String(O)}}else nw.feature="related-auto";var TK=g.y(mt,g.FZ);if(e5){Xk.videoId=e5.videoId;var b=e5.shortBylineText;b&&(Xk.author=g.wq(b));var Lw=e5.title;Lw&&(Xk.title=g.wq(Lw))}else TK!=null&&TK.videoId&&(Xk.videoId=TK.videoId);Xk.xq=nw;A.suggestions=[];A.M7=Xk}}if(fw){for(var ro=
|
|
[],SZ=g.m(fw),xg=SZ.next();!xg.done;xg=SZ.next()){var R8=xg.value,a0=void 0,oO=null;if(R8.endScreenVideoRenderer){var tO=R8.endScreenVideoRenderer,k=tO.title;oO=new cN(A.K());oO.videoId=tO.videoId;oO.lengthSeconds=tO.lengthInSeconds||0;var H=tO.publishedTimeText;H&&(oO.publishedTimeText=g.wq(H));var t=tO.shortBylineText;t&&(oO.author=g.wq(t));var E=tO.shortViewCountText;E&&(oO.shortViewCount=g.wq(E));if(k){oO.title=g.wq(k);var e=k.accessibility;if(e){var SE=e.accessibilityData;SE&&SE.label&&(oO.ariaLabel=
|
|
SE.label)}}var z=tO.navigationEndpoint;if(z){a0=z.clickTrackingParams;var P=g.y(z,g.FZ),M=g.y(z,g.Mt);P?oO.qW=P:M!=null&&(oO.watchUrl=M.url)}var mv=tO.thumbnailOverlays;if(mv)for(var Qe=g.m(mv),ye=Qe.next();!ye.done;ye=Qe.next()){var T8=ye.value.thumbnailOverlayTimeStatusRenderer;if(T8)if(T8.style==="LIVE"){oO.isLivePlayback=!0;break}else if(T8.style==="UPCOMING"){oO.isUpcoming=!0;break}}oO.ea=m$(tO.thumbnail)}else if(R8.endScreenPlaylistRenderer){var ff=R8.endScreenPlaylistRenderer,t1=ff.navigationEndpoint;
|
|
if(!t1)continue;var Yg=g.y(t1,g.FZ);if(!Yg)continue;var eZ=Yg.videoId;oO=new Ee(A.K());oO.playlistId=ff.playlistId;oO.playlistLength=Number(ff.videoCount)||0;oO.N=eZ||null;oO.videoId=eZ;var nf=ff.title;nf&&(oO.title=g.wq(nf));var lL=ff.shortBylineText;lL&&(oO.author=g.wq(lL));a0=t1.clickTrackingParams;oO.ea=m$(ff.thumbnail)}oO&&(a0&&(oO.sessionData={itct:a0}),ro.push(oO))}A.suggestions=ro}if(DS){A.HC=!!DS.preferImmediateRedirect;A.mH=A.mH||!!DS.webShowNewAutonavCountdown;A.Pk=A.Pk||!!DS.webShowBigThumbnailEndscreen;
|
|
if(A.mH||A.Pk){var W4=a||null,Cw=new cN(A.K());Cw.videoId=DS.videoId;var sd=DS.videoTitle;if(sd){Cw.title=g.wq(sd);var Y7=sd.accessibility;if(Y7){var E6=Y7.accessibilityData;E6&&E6.label&&(Cw.ariaLabel=E6.label)}}var Hw=DS.byline;Hw&&(Cw.author=g.wq(Hw));var AO=DS.publishedTimeText;AO&&(Cw.publishedTimeText=g.wq(AO));var fx=DS.shortViewCountText;fx&&(Cw.shortViewCount=g.wq(fx));var cw=DS.thumbnailOverlays;if(cw)for(var iB=g.m(cw),yR=iB.next();!yR.done;yR=iB.next()){var CG=yR.value.thumbnailOverlayTimeStatusRenderer;
|
|
if(CG)if(CG.style==="LIVE"){Cw.isLivePlayback=!0;break}else if(CG.style==="UPCOMING"){Cw.isUpcoming=!0;break}else if(CG.style==="DEFAULT"&&CG.text){Cw.lengthText=g.wq(CG.text);var Ir=CG.text.accessibility;if(Ir){var w6=Ir.accessibilityData;w6&&w6.label&&(Cw.CZ=w6.label||"")}break}}Cw.ea=m$(DS.background);var VI=DS.nextButton;if(VI){var Js=VI.buttonRenderer;if(Js){var JD=Js.navigationEndpoint;if(JD){var GO=g.y(JD,g.FZ);GO&&(Cw.qW=GO)}}}if(DS.topBadges){var S1=DS.topBadges[0];if(S1){var RK=g.y(S1,z9k);
|
|
RK&&RK.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Cw.zyM=!0)}}var Zn=DS.alternativeTitle;Zn&&(Cw.Eh=g.wq(Zn));var nv={autonav:"1",playnext:String(O)};Cw.playlistId&&(nv.autoplay="1");if(W4){var cg,M4,Nh,td,kb=(cg=W4.autoplay)==null?void 0:(M4=cg.autoplay)==null?void 0:(Nh=M4.sets)==null?void 0:(td=Nh[0])==null?void 0:td.autoplayVideo;if(kb){var Fs=kb.clickTrackingParams;Fs&&(nv.itct=Fs);var Dn=g.y(kb,g.FZ);Dn&&(Cw.MS=Dn)}}else if(DS){var di,IK,sz,zV=(di=DS.nextButton)==null?void 0:(IK=di.buttonRenderer)==
|
|
null?void 0:(sz=IK.navigationEndpoint)==null?void 0:sz.clickTrackingParams;zV&&(nv.itct=zV)}nv.itct||(nv.feature="related-auto");Cw.xq=nv;A.suggestions||(A.suggestions=[]);A.M7=Cw}DS.countDownSecs!=null&&(A.QW=DS.countDownSecs*1E3);DS.countDownSecsForFullscreen!=null&&(A.gg=DS.countDownSecsForFullscreen>=0?DS.countDownSecsForFullscreen*1E3:-1);A.J("web_autonav_color_transition")&&DS.watchToWatchTransitionRenderer&&(A.watchToWatchTransitionRenderer=g.y(DS.watchToWatchTransitionRenderer,uED))}var Tw=
|
|
d08(A);if(Tw){var lH,L8,ms,dH=Tw==null?void 0:(lH=Tw[0])==null?void 0:(L8=lH.endScreenVideoRenderer)==null?void 0:(ms=L8.navigationEndpoint)==null?void 0:ms.clickTrackingParams,QJ=g.DQ(A);dH&&QJ&&(QJ.sessionData={itct:dH})}A.Vj.currentVideoThumbnail&&(A.ea=m$(A.Vj.currentVideoThumbnail));var Ct,pX,y4,jt,gn,iH=(Ct=A.Vj)==null?void 0:(pX=Ct.contents)==null?void 0:(y4=pX.twoColumnWatchNextResults)==null?void 0:(jt=y4.results)==null?void 0:(gn=jt.results)==null?void 0:gn.contents;if(iH&&iH[0]){var BM=
|
|
iH[0].videoPrimaryInfoRenderer;BM&&BM&&BM.subtitle&&(A.wp=g.wq(BM.subtitle))}if(iH&&iH[1]){var O2,Pf,E2,tG,fe=(O2=iH[1].videoSecondaryInfoRenderer)==null?void 0:(Pf=O2.owner)==null?void 0:(E2=Pf.videoOwnerRenderer)==null?void 0:(tG=E2.thumbnail)==null?void 0:tG.thumbnails;fe&&fe.length&&(A.profilePicture=fe[fe.length-1].url)}var Tg=DG(L),xL,Amw=(xL=A.getWatchNextResponse())==null?void 0:xL.onResponseReceivedEndpoints;if(Amw)for(var LOE=g.m(Amw),Um=LOE.next();!Um.done;Um=LOE.next()){var Ws=Um.value;
|
|
g.y(Ws,dp)&&(A.u4=g.y(Ws,dp));var mY=g.y(Ws,aJD),oGD=void 0;if((oGD=mY)==null?0:oGD.entityKeys)A.jb=mY.entityKeys||[],mY.visibleOnLoadKeys&&(A.visibleOnLoadKeys=mY.visibleOnLoadKeys)}if(A.J("web_key_moments_markers")){var w4I=g.Iq.getState().entities,p4f=g.xv("visibility_override","markersVisibilityOverrideEntity");var cV=nz(w4I,"markersVisibilityOverrideEntity",p4f);A.JF=(cV==null?void 0:cV.videoId)===(A.videoId||Tg)&&(cV==null?0:cV.visibilityOverrideMarkersKey)?cV.visibilityOverrideMarkersKey:A.visibleOnLoadKeys;
|
|
A.visibleOnLoadKeys=[].concat(g.x7(A.JF))}}};
|
|
OJ7=function(A,L){if(L=L.raw_reel_item_watch_response)A.reelItemWatchResponse=L};
|
|
Ane=function(A){return!!A&&isFinite(A)&&A>1E9};
|
|
NG=function(A){var L;return((L=A.autoplaySwitchButtonRenderer)==null?void 0:L.enabled)!==void 0};
|
|
wp=function(A){return!!(A.V&&A.V.videoInfos&&A.V.videoInfos.length)};
|
|
g.Gp=function(A){var L=A.X;A.J("html5_gapless_unlimit_format_selection")&&pr(A)&&(L=!1);var B=!!A.N&&A.N.iC,f=A.tF,K=A.QE(),V=y7(A),J=A.ZM,R=L,Z=A.isOtf();L=A.Os();var N=A.I7,F=A.getUserAudio51Preference(),D=jC(A),I=gp(A),d=new nae(f);if(f.hw()||f.J("html5_logging_format_selection"))d.N=!0;d.sx=V;d.ZM=J&&f.G;d.JF=F;g.xz("windows nt 5.1")&&!g.de&&(d.DZ=!0);if(V=K)V=g.D_(f)?aLv(f):!1;V&&(d.Wn=!0);R&&(d.DZ=!0,d.TZ=!0);Z&&!f.J("html5_otf_prefer_vp9")&&(d.DZ=!0);f.playerStyle==="picasaweb"&&(Z&&(d.DZ=
|
|
!1),d.qp=!1);N&&(d.DZ=!0);u6(f.D,a4.CHANNELS)&&(f.J("html5_enable_ac3")&&(d.U=!0),f.J("html5_enable_eac3")&&(d.D=!0),f.J("html5_enable_ac3_gapless")&&(d.S4=!0));f.J("html5_block_8k_hfr")&&(d.Ox=!0);d.T=g.Am(f.experiments,"html5_max_selectable_quality_ordinal");d.X=g.Am(f.experiments,"html5_min_selectable_quality_ordinal");OR&&(d.N8=480);if(B||K)d.qp=!1;d.Nl=!1;d.disableAv1=D;B=KM(f,d.W,void 0,d.disableAv1);B>0&&B<2160&&(Se()||f.J("html5_format_hybridization"))&&(d.W.supportsChangeType=+Se(),d.Tb=
|
|
B);B>=2160&&(d.wT=!0);ymC()&&!f.J("disable_av1_setting")&&(d.W.serveVp9OverAv1IfHigherRes=0,d.nD=!1);d.Os=L;d.Cr=g.ns||Vz()&&!L?!1:!0;d.G=f.J("html5_format_hybridization");d.Uv=f.J("html5_disable_encrypted_vp9_live_non_2k_4k");d.jI=I;iS(A)&&(d.k6=!0);zc()&&A.playerResponse&&A.playerResponse.playerConfig&&A.playerResponse.playerConfig.webPlayerConfig&&A.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(d.U=!0,d.D=!0);A.X&&A.isAd()&&(A.FT&&(d.yj=A.FT),A.I_&&(d.V=A.I_));A.zt()&&
|
|
(d.Vj=g.Am(A.tF.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));d.Ex=A.isLivePlayback&&A.U6()&&A.tF.J("html5_drm_live_audio_51");d.mH=A.XV;d.zV=!iS(A);return A.cn=d};
|
|
jC=function(A){return A.tF.J("html5_disable_av1")?!0:!1};
|
|
LW7=function(A){mF("drm_pb_s",void 0,A.yj);A.xf||A.N&&PZ(A.N);var L={};A.N&&(L=CY1(A.BR,g.Gp(A),A.tF.D,A.N,function(B){return A.publish("ctmp","fmtflt",B)},!0,new Set));
|
|
L=new pM(L,A.tF,A.Ci,A.useCobaltWidevine?zc()?rp(A):!1:!1,function(B,f){A.Hn(B,f)});
|
|
g.W(A,L);A.Gt=!1;A.loading=!0;AAv(L,function(B){mF("drm_pb_f",void 0,A.yj);for(var f=g.m(B),K=f.next();!K.done;K=f.next())switch(K=K.value,K.flavor){case "fairplay":K.xf=A.xf;K.wV=A.wV;K.Ub=A.Ub;break;case "widevine":K.LL=A.LL}A.BI=B;if(A.BI.length>0&&(A.D=A.BI[0],A.tF.hw())){B={};f=g.m(Object.entries(A.D.N));for(K=f.next();!K.done;K=f.next()){var V=g.m(K.value);K=V.next().value;V=V.next().value;var J="unk";(K=K.match(/(.*)codecs="(.*)"/))&&(J=K[2]);B[J]=V}A.Hn("drmProbe",B)}A.C_()})};
|
|
oh8=function(A,L){if(L.length===0||sr(A))return null;A.tF.D.W&&(oj=!0);var B=A.Zj;var f=A.lengthSeconds,K=A.isLivePlayback,V=A.SD,J=A.tF,R=CQ0(L);if(K||V){J=J.experiments;f=new MP("",J,!0);f.W=!V;f.iC=!0;f.isManifestless=!0;f.isLive=!V;f.SD=V;K=g.m(L);for(R=K.next();!R.done;R=K.next()){var Z=R.value;R=Wp(Z,B);var N=J1(59,Z);N=qP(N.Ff||Z.url||"",N.q0,N.s);var F=N.get("id");F&&F.includes("%7E")&&(f.Wn=!0);var D=void 0;F=(D=J)==null?void 0:D.GL("html5_max_known_end_time_rebase");D=Number(Z.targetDurationSec||
|
|
5);Z=Number(Z.maxDvrDurationSec||14400);var I=Number(N.get("mindsq")||N.get("min_sq")||"0"),d=Number(N.get("maxdsq")||N.get("max_sq")||"0")||Infinity;f.F3=f.F3||I;f.lW=f.lW||d;var w=!xa(R.mimeType);N&&OI(f,new GW(N,R,{oC:D,CO:w,xH:Z,F3:I,lW:d,T2:300,SD:V,gF:F}))}B=f}else if(R==="FORMAT_STREAM_TYPE_OTF"){f=f===void 0?0:f;V=new MP("",J.experiments,!1);V.duration=f||0;J=g.m(L);for(f=J.next();!f.done;f=J.next())f=f.value,K=Wp(f,B,V.duration),R=J1(57,f),(R=qP(R.Ff||f.url||"",R.q0,R.s))&&(K.streamType===
|
|
"FORMAT_STREAM_TYPE_OTF"?OI(V,new rR(R,K,"sq/0")):OI(V,new i7(R,K,op(f.initRange),op(f.indexRange))));V.isOtf=!0;B=V}else{f=f===void 0?0:f;V=new MP("",J.experiments,!1);V.duration=f||0;J=g.m(L);for(f=J.next();!f.done;f=J.next())N=f.value,f=Wp(N,B,V.duration),K=op(N.initRange),R=op(N.indexRange),F=J1(58,N),(N=qP(F.Ff||N.url||"",F.q0,F.s))&&OI(V,new i7(N,f,K,R));B=V}L.length>0&&(L=L[0],Rq(A)&&L.url&&(A.jD=A.jD||Y40(L.url)));L=A.isLivePlayback&&!A.SD&&!A.hd&&!A.isPremiere;A.J("html5_live_head_playable")&&
|
|
(!HK(A)&&L&&A.Hn("missingLiveHeadPlayable",{}),A.tF.Wn==="yt"&&(B.Ys=!0));return B};
|
|
B3L=function(A){var L,B,f=((L=A.playerResponse)==null?void 0:(B=L.streamingData)==null?void 0:B.adaptiveFormats)||[];L=null;if(f.length>0)L=oh8(A,f);else if(!A.J("html5_deprecate_adaptive_formats_string")){A.Hn("pafmtstr",{s:A.adaptiveFormats.substring(0,50)});if((f=A.adaptiveFormats)&&!sr(A)){A.tF.D.W&&(oj=!0);f=ha(f);L=A.Zj;var K=A.lengthSeconds,V=A.isLivePlayback;B=A.SD;var J=A.tF,R=QTk(f);if(V||B){J=J==null?void 0:J.experiments;K=new MP("",J,!0);K.iC=!0;K.isManifestless=!0;K.W=!B;K.isLive=!B;
|
|
K.SD=B;V=g.m(f);for(R=V.next();!R.done;R=V.next()){var Z=R.value;R=vp(Z,L);var N=qP(Z.url,Z.sp,Z.s),F=N.get("id");F&&F.includes("%7E")&&(K.Wn=!0);var D=void 0;F=(D=J)==null?void 0:D.GL("html5_max_known_end_time_rebase");D=Number(Z.target_duration_sec)||5;Z=Number(Z.max_dvr_duration_sec)||14400;var I=Number(N.get("mindsq")||N.get("min_sq")||"0"),d=Number(N.get("maxdsq")||N.get("max_sq")||"0")||Infinity;K.F3=K.F3||I;K.lW=K.lW||d;var w=!xa(R.mimeType);N&&OI(K,new GW(N,R,{oC:D,CO:w,xH:Z,F3:I,lW:d,T2:300,
|
|
SD:B,gF:F}))}L=K}else if(R==="FORMAT_STREAM_TYPE_OTF"){K=K===void 0?0:K;B=new MP("",J==null?void 0:J.experiments,!1);B.duration=K||0;J=g.m(f);for(K=J.next();!K.done;K=J.next())if(N=K.value,K=vp(N,L,B.duration),V=qP(N.url,N.sp,N.s))K.streamType==="FORMAT_STREAM_TYPE_OTF"?OI(B,new rR(V,K,"sq/0")):(R=AL(N.init),N=AL(N.index),OI(B,new i7(V,K,R,N)));B.isOtf=!0;L=B}else{K=K===void 0?0:K;B=new MP("",J==null?void 0:J.experiments,!1);B.duration=K||0;J=g.m(f);for(K=J.next();!K.done;K=J.next())N=K.value,K=vp(N,
|
|
L,B.duration),V=AL(N.init),R=AL(N.index),(N=qP(N.url,N.sp,N.s))&&OI(B,new i7(N,K,V,R));L=B}f.length>0&&(f=f[0],Rq(A)&&f.url&&(A.jD=A.jD||Y40(f.url)));f=A.isLivePlayback&&!A.SD&&!A.hd&&!A.isPremiere;A.J("html5_live_head_playable")&&(!HK(A)&&f&&A.Hn("missingLiveHeadPlayable",{}),A.tF.Wn==="yt"&&(L.Ys=!0))}else L=null;A.Hn("pafmts",{isManifestFilled:!!L})}if(!L)return!1;bj(A,L);return!0};
|
|
sr=function(A){return zc()?!rp(A):aM()?!(!A.xf||!A.J("html5_enable_safari_fairplay")&&h7()):!1};
|
|
rp=function(A){return A.J("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
|
|
g.ZQ=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next())if(B=B.value,B.cueRangeSetIdentifier){var f=void 0;A.Ym.set(B.cueRangeSetIdentifier,(f=B.playerCueRanges)!=null?f:[])}};
|
|
ta=function(A){return!(!A.N||!A.N.isManifestless)};
|
|
kT=function(A){return A.sx?A.isLowLatencyLiveStream&&A.N!=null&&n3(A.N)>=5:A.isLowLatencyLiveStream&&A.N!=void 0&&n3(A.N)>=5};
|
|
fyE=function(A){return zc()&&rp(A)?!1:sr(A)&&(g.dY(A.tF)?!A.isLivePlayback:A.hlsvp)||!h7()||A.jH?!0:!1};
|
|
VML=function(A){A.loading=!0;A.TZ=!1;if(KWE(A))g.HJ6(A.videoId).then(function(f){var K;if((K=A.playerResponse)!=null&&K.streamingData){K=[];f=g.m(f);for(var V=f.next();!V.done;V=f.next())V=Object.assign({},V.value),V.signatureCipher="",K.push(V);K.length<2&&A.Hn("offmlf",{len:K.length});K=oh8(A,K);y7(A)&&va7(K,!1);bj(A,K);A.Hn("dlr",{})}else A.Hn("offsdm",{cotn:A.tI?A.tI.cotn:"0",cpn:A.clientPlaybackNonce})}).then(function(){A.C_()});
|
|
else{dy(A.sZ)||g.CE(new g.iL("DASH MPD Origin invalid: ",A.sZ));var L=A.sZ,B=g.Am(A.tF.experiments,"dash_manifest_version")||4;L=g.ip(L,{mpd_version:B});A.isLowLatencyLiveStream&&A.latencyClass!=="NORMAL"||(L=g.ip(L,{pacing:0}));Y2v(L,A.tF.experiments,A.isLivePlayback).then(function(f){A.TL()||(bj(A,f,!0),mF("mrc",void 0,A.yj),A.C_())},function(f){A.TL()||(A.loading=!1,A.publish("dataloaderror",new g.K$("manifest.net.retryexhausted",{backend:"manifest",
|
|
rc:f.status},1)))});
|
|
mF("mrs",void 0,A.yj)}};
|
|
Jnv=function(A){var L;return!((L=A.tF.getWebPlayerContextConfig())==null||!L.enableProximaLowLatency)};
|
|
Tp=function(A){if(!A.isProximaLatencyEligible)return 0;var L=b6();return Jnv(A)?2:L===1?1:A.J("html5_enable_proxima")?2:0};
|
|
bj=function(A,L,B){B=B===void 0?!1:B;A.R_=void 0;A.N=L;g.W(A,L);L.F3=A.F3;L.lW=A.lW;L.SO=A.SO;L.E0=A.E0;L.HY=A.HY;A.Qi&&(L.yj=new vq(A.Qi));(A.QE()||g.lj(A))&&A.p9.push("webgl");A.N.isLive||(A.isLivePlayback=!1);var f=L.sourceUrl.split("/");if(A.sx?f.indexOf("manifest_duration")!==-1:f.indexOf("manifest_duration")!=-1)A.JA=Number(f[f.indexOf("manifest_duration")+1]);if(L.W||L.isManifestless)L.subscribe("clienttemp",A.Hn,A),B?L.subscribe("refresh",A.KT,A):L.subscribe("cuepointsadded",A.xO,A);PZ(L)?
|
|
A.Gt=!0:jx=void 0;A.hd&&(L.U=A.hd,L.isLive=!0,A.isLivePlayback=!0);L.isPremiere=A.isPremiere;L.isLiveHeadPlayable=A.isLiveHeadPlayable};
|
|
SMv=function(A,L){var B=L||fyE(A)||A.isExternallyHostedPodcast;if(!A.N||B)return A.Hn("skipDash",{dm:!!A.N,air:L,dd:A.jH,mss:h7(),"3pp":A.isExternallyHostedPodcast}),Xa();y7(A)&&va7(A.N,A.isLivePlayback);return OQ().then(function(){return $R1(A.BR,g.Gp(A),A.tF.D,A.N,A.D,function(f){return A.publish("ctmp","fmtflt",f)},A.mL,mX(A)).then(function(f){A.zc(f);
|
|
A.BR.W=null;/^av/.test(A.clientPlaybackNonce)&&A.cn&&A.Hn("av1",A.cn.W)})})};
|
|
ZS8=function(A,L){if(L&&A.hlsvp)return Xa();if(A.hlsFormats){if(L=ha(A.hlsFormats)){for(var B=[],f=g.m(L),K=f.next();!K.done;K=f.next()){K=K.value;K.url&&(K.url=$08(K.url));var V=void 0;((V=A.cn)==null?0:V.N)&&B.push(K.itag)}var J;((J=A.cn)==null?0:J.N)&&B.length>0&&A.Hn("hlsfmt",{itags:B.join(".")})}A.nD=INv(A.tF,L);A.nD&&RpE(A,A.nD);J=A.clientPlaybackNonce;var R,Z,N,F;return gdw(A.tF,A.isAd(),L,(F=(R=A.playerResponse)==null?void 0:(Z=R.captions)==null?void 0:(N=Z.playerCaptionsRenderer)==null?void 0:
|
|
N.baseUrl)!=null?F:null,A.dg,J,function(D){return A.publish("ctmp","hlsflt",D)}).then(function(D){for(var I=0,d=[],w=g.m(D),r=w.next();!r.done;r=w.next()){r=r.value;
|
|
var h=void 0;d.push((h=r.getInfo())==null?void 0:h.itag);var Q=h=void 0;((h=r.getInfo())==null?void 0:(Q=h.audio)==null?void 0:Q.numChannels)>I&&(I=r.getInfo().audio.numChannels)}I>2&&A.Hn("hlschl",{mn:I});var l;((l=A.cn)==null?0:l.N)&&A.Hn("hlsfmtaf",{itags:d.join(".")});var C;if(A.J("html5_enable_vp9_fairplay")&&((C=A.D)==null?0:F5(C)))for(A.Hn("drm",{sbdlfbk:1}),I=g.m(A.BI),d=I.next();!d.done;d=I.next())if(d=d.value,NM(d)){A.D=d;break}Q7(A,D)})}return Xa()};
|
|
N30=function(A){if(A.isExternallyHostedPodcast&&A.Nh){var L=ha(A.Nh);if(!L[0])return Xa();A.oP=L[0];return s2D(A.tF,L[0]).then(function(B){Q7(A,B)})}return A.b2&&A.Tm?ry0(A.tF,A.isAd(),A.b2).then(function(B){Q7(A,B)}):Xa()};
|
|
DFL=function(A){if(A.isExternallyHostedPodcast)return Xa();var L=ha(A.Nh,A.bI);if(A.hlsvp){var B=iJ0(A.hlsvp,A.clientPlaybackNonce,A.dg);L.push(B)}return GAv(A.tF,A.isAd(),L,FW6(A)).then(function(f){Q7(A,f)})};
|
|
Q7=function(A,L){A.Nl=L;A.zc(new YQ(g.mn(A.Nl,function(B){return B.getInfo()})))};
|
|
FW6=function(A){var L={cpn:A.clientPlaybackNonce,c:A.tF.N.c,cver:A.tF.N.cver};A.Ae&&(L.ptk=A.Ae,L.oid=A.gO,L.ptchn=A.YZ,L.pltype=A.rO,A.y5&&(L.m=A.y5));return L};
|
|
g.Cr=function(A){return sr(A)&&A.xf?(A={},A.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",A):A.W&&A.W.Zj||null};
|
|
dFe=function(A){var L=ij(A);return L&&L.text?g.wq(L.text):A.paidContentOverlayText};
|
|
IyD=function(A){var L=ij(A);return L&&L.durationMs?na(L.durationMs):A.paidContentOverlayDurationMs};
|
|
ij=function(A){var L,B,f;return A.playerResponse&&A.playerResponse.paidContentOverlay&&A.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.y((L=A.Vj)==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.playerDisclosure,w_Q)||null};
|
|
p_y=function(A){if(!A)return null;A=g.m(A);for(var L=A.next();!L.done;L=A.next()){var B=void 0,f=void 0;if(L=(B=L.value.adPlacementRenderer)==null?void 0:(f=B.renderer)==null?void 0:f.videoAdTrackingRenderer)return L}return null};
|
|
$T=function(A){var L="";if(A.jj)return A.jj;A.isLivePlayback&&(L=A.allowLiveDvr?"dvr":A.isPremiere?"lp":A.hd?"window":"live");A.SD&&(L="post");return L};
|
|
g.XZ=function(A,L){return typeof A.keywords[L]!=="string"?null:A.keywords[L]};
|
|
yny=function(A){return!!A.N3||!!A.mU||!!A.dw||!!A.iF||A.iT};
|
|
g.Or=function(A){return!!(A.sZ||A.Nh||A.b2||A.hlsvp||A.F$())};
|
|
V7=function(A){if(A.J("html5_onesie")&&A.errorCode)return!1;var L=g.zK(A.p9,"ypc");A.ypcPreview&&(L=!1);return A.gX()&&!A.loading&&(g.Or(A)||g.zK(A.p9,"heartbeat")||L)};
|
|
ha=function(A,L){A=Sk(A);var B={};if(L){L=g.m(L.split(","));for(var f=L.next();!f.done;f=L.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(B[f[1]]={width:f[2],height:f[3]})}L=g.m(A);for(f=L.next();!f.done;f=L.next()){f=f.value;var K=B[f.itag];K&&(f.width=K.width,f.height=K.height)}return A};
|
|
q4y=function(A,L){A.showShareButton=!!L;var B,f,K=((B=g.y(L,g.te))==null?void 0:B.navigationEndpoint)||((f=g.y(L,g.te))==null?void 0:f.command);K&&(A.kR=!!g.y(K,jUE))};
|
|
XyE=function(A,L){var B=L.raw_embedded_player_response;if(!B){var f=L.embedded_player_response;f&&(B=JSON.parse(f))}B&&(A.Yu=B);if(A.Yu){A.embeddedPlayerConfig=A.Yu.embeddedPlayerConfig||null;if(B=A.Yu.videoFlags)B.playableInEmbed&&(A.allowEmbed=!0),B.isPrivate&&(A.isPrivate=!0),B.userDisplayName&&(L.user_display_name=B.userDisplayName),B.userDisplayImage&&(L.user_display_image=B.userDisplayImage);if((B=A.Yu.embedPreview)&&B.thumbnailPreviewRenderer){B=B.thumbnailPreviewRenderer;zS7(A,B.controlBgHtml);
|
|
if(f=B.defaultThumbnail)A.ea=m$(f);A.J("embeds_web_enable_search_button")&&B.searchButton&&(f=g.y(B.searchButton,g.te))&&(A.KR=g.y(f.navigationEndpoint,g.Er));(f=g.y(B==null?void 0:B.videoDetails,gh6))&&nY0(A,L,f);f=g.y(B==null?void 0:B.videoDetails,G0e);A.t$=!!B.addToWatchLaterButton;q4y(A,B.shareButton);if(f==null?0:f.musicVideoType)A.musicVideoType=f.musicVideoType;var K,V,J,R,Z;if(f=g.y((K=A.getEmbeddedPlayerResponse())==null?void 0:(V=K.embedPreview)==null?void 0:(J=V.thumbnailPreviewRenderer)==
|
|
null?void 0:(R=J.playButton)==null?void 0:(Z=R.buttonRenderer)==null?void 0:Z.navigationEndpoint,g.FZ))kAy(A,f),A.videoId=f.videoId||A.videoId;B.videoDurationSeconds&&(A.lengthSeconds=na(B.videoDurationSeconds));B.webPlayerActionsPorting&&ndQ(A,B.webPlayerActionsPorting);if(K=g.y(B==null?void 0:B.playlist,rnD)){A.Of=!0;V=[];J=Number(K.currentIndex);if(K.contents)for(R=0,Z=K.contents.length;R<Z;R++)if(B=K.contents[R].playlistPanelVideoRenderer){f=B.shortBylineText?g.wq(B.shortBylineText):"";var N=
|
|
B.title?g.wq(B.title):"";V.push({author:f,encrypted_id:B.videoId,title:N,channel_path:R===J?L.channel_path:"",profile_picture:R===J?L.profile_picture:"",is_private:R===J?A.isPrivate:!0,is_dni:R===J?A.OE:!1,dni_color:R===J?A.kE:""})}L={index:K.currentIndex,list:K.playlistId,playlist_length:K.totalVideos,video:V};K.titleText&&(L.title=g.wq(K.titleText));K.shortBylineText&&(L.author=g.wq(K.shortBylineText));A.cC=L}var F,D,I;if(L=g.y((F=A.getEmbeddedPlayerResponse())==null?void 0:(D=F.embedPreview)==
|
|
null?void 0:(I=D.thumbnailPreviewRenderer)==null?void 0:I.infoPanel,x00)){A.Qu=Number(L==null?void 0:L.durationMs)||NaN;if(L==null?0:L.infoPanelOverviewViewModel)A.KY=L==null?void 0:L.infoPanelOverviewViewModel;if(L==null?0:L.infoPanelDetailsViewModel)A.O_=L==null?void 0:L.infoPanelDetailsViewModel}}if(A.Yu.previewPlayabilityStatus){if(A.XT=A.Yu.previewPlayabilityStatus,F=A.XT,!["OK","LIVE_STREAM_OFFLINE"].includes(F.status)){A.errorCode=hSS(F.errorCode);D=F.errorScreen;if(I=D==null?void 0:D.playerErrorMessageRenderer){A.Kt=
|
|
I;if(L=I.reason)A.errorReason=g.wq(L);if(I=I.subreason)A.Qr=g.wq(I)}else A.errorReason=F.reason||null;switch(F.status){case "LOGIN_REQUIRED":A.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":A.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var d;(D==null?0:(d=D.playerKavRenderer)==null?0:d.kavUrl)?A.errorDetail="4":A.errorDetail="3";break;default:A.errorDetail=F.isBlockedInRestrictedMode?"5":"0"}}}else A.Yu.playabilityStatus&&(A.iW=A.Yu.playabilityStatus,sUv(A)&&(A.errorDetail="0",A.iW&&((d=
|
|
A.iW.embeddedPlayerErrorMessageRenderer)?A.Kt=g.y(d,HS0):A.errorReason=A.iW.reason||null)));(d=A.Yu.attestation)&&cy6(A,d);(d=A.Yu.permissions)&&d.allowImaMonetization&&(A.allowImaMonetization=!0)}};
|
|
nY0=function(A,L,B){var f=B.channelThumbnail;f&&(f=f.thumbnails)&&(f=f[0])&&(L.profile_picture=f.url);var K;if(f=g.y((K=g.y(B==null?void 0:B.channelThumbnailEndpoint,hpv))==null?void 0:K.urlEndpoint,g.Mt))L.channel_path=f.url;if(K=B.collapsedRenderer)if(K=g.y(K,bSv)){if(f=K.title)L.title=g.wq(f);if(K=K.subtitle)L.subtitle=g.wq(K)}if(B=B.expandedRenderer)if(B=g.y(B,tMk)){if(K=B.title)L.expanded_title=g.wq(K);if(K=B.subtitle)L.expanded_subtitle=g.wq(K);if(B=B.subscribeButton)A.subscribeButtonRenderer=
|
|
g.y(B,g.cK),A.subscribeButtonRenderer&&(L.ucid=A.subscribeButtonRenderer.channelId,L.subscribed=A.subscribeButtonRenderer.subscribed,A.mC=!!A.subscribeButtonRenderer.notificationPreferenceToggleButton,A.subscribeButtonRenderer.notificationPreferenceToggleButton&&A.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(L=A.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,L.isToggled?(A.MI=L.toggledServiceEndpoint||null,A.D$=L.defaultServiceEndpoint||
|
|
null):(A.MI=L.defaultServiceEndpoint||null,A.D$=L.toggledServiceEndpoint||null)))}};
|
|
g.MG=function(A){return HK(A)&&!A.allowLiveDvr};
|
|
Ur=function(A){return HK(A)&&A.allowLiveDvr};
|
|
HK=function(A){return A.J("html5_live_head_playable")&&ta(A)&&A.tF.Wn==="yt"?A.isLiveHeadPlayable:A.isLivePlayback};
|
|
RpE=function(A,L){L.sort(function(B,f){return B.toString().localeCompare(f.toString(),A.tF.hostLanguage)})};
|
|
g.WK=function(A){return!!A.N&&H$k(A.N)};
|
|
var SDv=function(A,L){return h1[S[2]](this,8,A,L)};
|
|
g.vK=function(A){return!!A.N&&ho8(A.N)};
|
|
g.qG=function(A){return!!A.N&&b$0(A.N)};
|
|
g.lj=function(A){return!!A.N&&to6(A.N)};
|
|
g.k0e=function(A){if(A.Z$)return null;var L=A.x$;L||(L=A.playerResponse&&A.playerResponse.endscreen&&A.playerResponse.endscreen.endscreenUrlRenderer&&A.playerResponse.endscreen.endscreenUrlRenderer.url);return L||null};
|
|
g.T3k=function(A){return A.Z$?null:A.playerResponse&&A.playerResponse.endscreen&&A.playerResponse.endscreen.endscreenRenderer||null};
|
|
g.PK=function(A){return A.J("enable_wn_infocards")};
|
|
g.xT=function(A){var L,B,f,K;return(g.PK(A)?(L=A.Vj)==null?void 0:(B=L.cards)==null?void 0:B.cardCollectionRenderer:(f=A.playerResponse)==null?void 0:(K=f.cards)==null?void 0:K.cardCollectionRenderer)||null};
|
|
g.eC=function(A){if(!A.playerResponse||!A.playerResponse.annotations)return null;A=g.m(A.playerResponse.annotations);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.playerAnnotationsExpandedRenderer&&L.playerAnnotationsExpandedRenderer.featuredChannel)return L.playerAnnotationsExpandedRenderer;return null};
|
|
nr=function(A){return A.adFormat&&(A.sx?A.adFormat!=="1_5":A.adFormat!="1_5")?"adunit":A.eventLabel||A.tF.Vj};
|
|
g.zp=function(A){return nr(A)==="shortspage"};
|
|
pr=function(A){return A.zt()&&A.K().supportsGaplessShorts()};
|
|
uj=function(A){if(A.isAd()&&(A.sx?A.videoId!==A.tF.ql:A.videoId!=A.tF.ql))return A.tF.ql};
|
|
aq=function(A){return A.BV||nr(A)==="detailpage"||nr(A)==="shortspage"||A.mutedAutoplay};
|
|
ly7=function(A){var L=nr(A)==="adunit"?A.Ll:aq(A)?nr(A)==="detailpage"||nr(A)==="shortspage"?A.isAutonav||A.Cr>0:A.Pz?!1:A.tF.Of||A.tF.cR||!g.MM(A.tF)?!0:!1:(A.Pz?0:A.N8)&&g.MM(A.tF)?!0:!1;A.J("html5_log_detailpage_autoplay")&&nr(A)==="detailpage"&&A.Hn("autoplay_info",{autoplay:A.BV,autonav:A.isAutonav,wasDompaused:A.Pz,result:L});return L};
|
|
g.Aj=function(A){return A.oauthToken||A.tF.cI};
|
|
QU6=function(A){if(A.J("html5_stateful_audio_normalization")){var L=1,B=g.Am(A.tF.experiments,"html5_default_ad_gain");B&&A.isAd()&&(L=B);var f,K;B=(K=(f=A.U)==null?void 0:f.audio.U)!=null?K:A.EL;if(B==null||isNaN(B))A=mFy(A);else{f=(0,g.bc)();A.cI=1;K=f-A.tF.w$<=A.maxStatefulTimeThresholdSec*1E3;A.applyStatefulNormalization&&K?A.cI=2:K||(A.tF.FT=Infinity,A.tF.w$=NaN);K=(A.cI===2?g.B4(A.tF.FT,A.minimumLoudnessTargetLkfs,A.loudnessTargetLkfs):A.loudnessTargetLkfs)-B;if(A.cI!==2){var V,J,R,Z,N=((V=
|
|
A.playerResponse)==null?void 0:(J=V.playerConfig)==null?void 0:(R=J.audioConfig)==null?void 0:(Z=R.loudnessNormalizationConfig)==null?void 0:Z.statelessLoudnessAdjustmentGain)||0;K+=N}K=Math.min(K,0);A.preserveStatefulLoudnessTarget&&(A.tF.FT=B+K,A.tF.w$=f);A=Math.min(1,Math.pow(10,K/20))||L}}else A=mFy(A);return A};
|
|
mFy=function(A){var L=1,B=g.Am(A.tF.experiments,"html5_default_ad_gain");B&&A.isAd()&&(L=B);var f,K;B=((f=A.U)==null?void 0:f.audio.V)!=null?(K=A.U)==null?void 0:K.audio.V:A.EQ;isNaN(B)||(A.cI=4);return Math.min(1,Math.pow(10,-B/20))||L};
|
|
y7=function(A){var L=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],B=ge(A.tF)==="TVHTML5_SIMPLY"&&A.tF.N.ctheme==="MUSIC";!A.qh&&(g.cH(A.tF)||g.Z_(A.tF)||B)&&(L.includes(A.musicVideoType)||A.isExternallyHostedPodcast)&&(A.qh=!0);if(L=g.ng())L=/Starboard\/([0-9]+)/.exec(g.fa()),L=(L?parseInt(L[1],10):NaN)<10;B=A.tF;B=(ge(B)==="TVHTML5_CAST"||ge(B)==="TVHTML5"&&(B.N.cver.startsWith("6.20130725")||B.N.cver.startsWith("6.20130726")))&&A.tF.N.ctheme==="MUSIC";var f;if(f=!A.qh)B||(B=
|
|
A.tF,B=ge(B)==="TVHTML5"&&B.N.cver.startsWith("7")),f=B;f&&!L&&(L=A.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",B=(A.J("cast_prefer_audio_only_for_atv_and_uploads")||A.J("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&A.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",L||B||A.isExternallyHostedPodcast)&&(A.qh=!0);return A.tF.deviceIsAudioOnly||A.qh&&A.tF.G};
|
|
gp=function(A){var L,B,f;return((L=A.playerResponse)==null?void 0:(B=L.playerConfig)==null?void 0:(f=B.compositeVideoConfig)==null?void 0:f.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"};
|
|
C4D=function(A){var L,B,f,K=(L=A.playerResponse)==null?void 0:(B=L.playerConfig)==null?void 0:(f=B.compositeVideoConfig)==null?void 0:f.sourceConfigs,V,J,R;A=(V=A.playerResponse)==null?void 0:(J=V.playerConfig)==null?void 0:(R=J.compositeVideoConfig)==null?void 0:R.defaultActiveSourceVideoId;if(!K||!K.length)return"";A||(A=K[0].videoId||"");K=g.m(K);for(V=K.next();!V.done;V=K.next())if(V=V.value,V.videoId===A&&V.audioTracks)for(V=g.m(V.audioTracks),J=V.next();!J.done;J=V.next())if(J=J.value,J.isDefaultForSource)return J.id||
|
|
"";return""};
|
|
g.iS1=function(A){return A.iC()&&iS(A)};
|
|
Lm=function(A){var L,B,f;return!!((L=A.playerResponse)==null?0:(B=L.playerConfig)==null?0:(f=B.mediaCommonConfig)==null?0:f.splitScreenEligible)};
|
|
oh=function(A){var L;return!((L=A.playerResponse)==null||!L.compositePlayabilityStatus)};
|
|
$F7=function(A){return isNaN(A)?0:Math.max((Date.now()-A)/1E3-30,0)};
|
|
Bh=function(A){return!(!A.Sb||!A.tF.G)&&A.F$()};
|
|
fm=function(A){return A.dL&&A.enableServerStitchedDai};
|
|
X_v=function(A){return A.qI&&!A.Qi};
|
|
iS=function(A){var L=A.J("html5_enable_sabr_on_drive")&&A.tF.Wn==="gd";if(A.p$)return A.qI&&A.Hn("fds",{fds:!0},!0),!1;if(A.tF.Wn!=="yt"&&!L)return A.qI&&A.Hn("dsvn",{ns:A.tF.Wn},!0),!1;if(A.cotn||!A.N||A.N.isOtf&&!A.J("html5_enable_sabr_otf_in_client")||A.V&&!A.V.N||A.DC&&!A.J("html5_enable_sabr_csdai"))return!1;if(A.J("html5_use_sabr_requests_for_debugging"))return!0;A.qI&&A.Hn("esfw",{usbc:A.qI,hsu:!!A.Qi},!0);if(A.qI&&A.Qi)return!0;if(A.J("html5_remove_client_sabr_determination"))return!1;var B=
|
|
!A.N.iC&&!A.U6();L=B&&Km&&A.J("html5_enable_sabr_vod_streaming_xhr");B=B&&!Km&&A.J("html5_enable_sabr_vod_non_streaming_xhr");var f=VW(A),K=A.J("html5_enable_sabr_drm_vod_streaming_xhr")&&Km&&A.U6()&&!A.N.iC&&(A.drmProduct==="1"?!1:!0);(L=L||B||f||K)&&!A.Qi&&A.Hn("sabr",{loc:"m"},!0);return L&&!!A.Qi};
|
|
VW=function(A){var L;if(!(L=Km&&A.iC()&&A.U6()&&(A.drmProduct==="1"?!1:!0)&&A.J("html5_sabr_live_drm_streaming_xhr"))){L=A.iC()&&!A.U6()&&Km;var B=A.iC()&&A.latencyClass!=="ULTRALOW"&&!A.isLowLatencyLiveStream&&A.J("html5_sabr_live_normal_latency_streaming_xhr"),f=A.isLowLatencyLiveStream&&A.J("html5_sabr_live_low_latency_streaming_xhr"),K=A.latencyClass==="ULTRALOW"&&A.J("html5_sabr_live_ultra_low_latency_streaming_xhr");L=L&&(B||f||K)}B=L;L=A.enableServerStitchedDai&&B&&A.J("html5_enable_sabr_ssdai_streaming_xhr");
|
|
B=!A.enableServerStitchedDai&&B;f=A.iC()&&!Km&&A.J("html5_enable_sabr_live_non_streaming_xhr");A=Km&&(A.aA()||Lm(A)&&A.J("html5_enable_sabr_for_lifa_eligible_streams"));return L||B||f||A};
|
|
mX=function(A){var L=A.J("html5_enable_server_format_filter")&&!A.U6(),B=A.J("html5_enable_server_format_filter_for_drm")&&A.U6();return iS(A)&&(L||B)};
|
|
KWE=function(A){var L;if(L=!!A.cotn)L=A.videoId,L=!!L&&g.vN(L)===1;return L&&!A.Sb};
|
|
g.Jj=function(A){if(!A.N||!A.W||!A.U)return!1;var L=A.N.N,B=!!L[A.W.id]&&k7(48,L[A.W.id].wi.N);L=!!L[A.U.id]&&k7(50,L[A.U.id].wi.N);return(A.W.itag==="0"||B)&&L};
|
|
Sg=function(A){return A.XT?["OK","LIVE_STREAM_OFFLINE"].includes(A.XT.status):!0};
|
|
sUv=function(A){return(A=A.iW)&&A.showError?A.showError:!1};
|
|
Rh=function(A,L){return A.J(L)?!0:(A.fflags||"").includes(L+"=true")};
|
|
ML8=function(A,L){L.inlineMetricEnabled&&(A.inlineMetricEnabled=!0);L.playback_progress_0s_url&&(A.iF=new wyk(L));if(L=L.video_masthead_ad_quartile_urls)A.mU=L.quartile_0_url,A.Ip=L.quartile_25_url,A.kY=L.quartile_50_url,A.Lf=L.quartile_75_url,A.qM=L.quartile_100_url,A.dw=L.quartile_0_urls,A.FQ=L.quartile_25_urls,A.UX=L.quartile_50_urls,A.wE=L.quartile_75_urls,A.tM=L.quartile_100_urls};
|
|
JeS=function(A){var L={};A=g.m(A);for(var B=A.next();!B.done;B=A.next()){B=B.value;var f=B.split("=");f.length===2?L[f[0]]=f[1]:L[B]=!0}return L};
|
|
M$6=function(A){if(A){if(VBe(A))return A;A=A1S(A);if(VBe(A,!0))return A}return""};
|
|
g.OSD=function(A){return A.captionsLanguagePreference||A.tF.captionsLanguagePreference||g.XZ(A,"yt:cc_default_lang")||A.tF.nD};
|
|
ZI=function(A){return!(!A.isLivePlayback||!A.hasProgressBarBoundaries())};
|
|
g.DQ=function(A){var L;return A.M7||((L=A.suggestions)==null?void 0:L[0])||null};
|
|
EhQ=function(A,L){return L!=null?Sw(A.X,L):A.X?A.X:A.tF.preferGapless&&A.tF.supportsGaplessShorts()};
|
|
g.Nm=function(A){var L,B;return!!((L=A.embeddedPlayerConfig)==null?0:(B=L.embeddedPlayerFlags)==null?0:B.enableMusicUx)};
|
|
cn7=function(A){return A.X||A.J("web_player_media_session_infinity")&&A.isLivePlayback};
|
|
Fr=function(A){return A.tF.U&&A.isPrivate};
|
|
g.dh=function(A){var L=A.K(),B=g.DI(L),f=L.O_;g.PL(L)&&(f&&(B.thirdParty=Object.assign({},B.thirdParty,{embedUrl:f})),s67(B,A));if(f=A.Wn)B.clickTracking={clickTrackingParams:f};else if(g.PL(A.K())&&g.A_("EVENT_ID"))B.clickTracking={clickTrackingParams:g.A_("EVENT_ID")};else if(L.J("html5_log_missing_itct")){var K;f=new g.iL("Missing ITCT in InnerTubeContext",{isAd:A.isAd(),GWL:(K=L.getWebPlayerContextConfig())==null?void 0:K.contextId});g.mL(f)}K=B.client||{};f="EMBED";var V=nr(A);V==="leanback"?
|
|
f="WATCH":L.J("gvi_channel_client_screen")&&V==="profilepage"?f="CHANNEL":A.I7?f="LIVE_MONITOR":V==="detailpage"?f="WATCH_FULL_SCREEN":V==="adunit"?f="ADUNIT":V==="sponsorshipsoffer"&&(f="UNKNOWN");K.clientScreen=f;if(f=A.kidsAppInfo)K.kidsAppInfo=JSON.parse(f);(V=A.IV)&&!f&&(K.kidsAppInfo={contentSettings:{ageUpMode:MMy[V]}});if(f=A.gp)K.unpluggedAppInfo={enableFilterMode:!0};(V=A.unpluggedFilterModeType)&&!f&&(K.unpluggedAppInfo={filterModeType:YML[V]});if(f=A.Uv)K.unpluggedLocationInfo=f;B.client=
|
|
K;K=B.request||{};A.LD&&(K.isPrefetch=!0);if(f=A.mdxEnvironment)K.mdxEnvironment=f;if(f=A.mdxControlMode)K.mdxControlMode=UFk[f];B.request=K;K=B.user||{};if(f=A.qp)K.credentialTransferTokens=[{token:f,scope:"VIDEO"}];if(f=A.Ox)K.delegatePurchases={oauthToken:f},K.kidsParent={oauthToken:f};var J;f=(J=L.getWebPlayerContextConfig())==null?void 0:J.userContentRating;L.Qf().N.Iv(WWy)&&f&&(K.serializedUserContentRating=f);B.user=K;if(L=A.contextParams)B.activePlayers=[{playerContextParams:L}];if(A=A.clientScreenNonce)B.clientScreenNonce=
|
|
A;return B};
|
|
g.DI=function(A){var L=g.AV(),B=L.client||{};if(A.forcedExperiments){var f=A.forcedExperiments.split(","),K=[];f=g.m(f);for(var V=f.next();!V.done;V=f.next())K.push(Number(V.value));B.experimentIds=K}if(K=A.homeGroupInfo)B.homeGroupInfo=JSON.parse(K);if(K=A.getPlayerType())B.playerType=K;if(K=A.N.ctheme)B.theme=K;if(K=A.livingRoomAppMode)B.tvAppInfo=Object.assign({},B.tvAppInfo,{livingRoomAppMode:K});K=A.deviceYear;A.J("html5_propagate_device_year")&&K&&(B.tvAppInfo=Object.assign({},B.tvAppInfo,{deviceYear:K}));
|
|
if(K=A.livingRoomPoTokenId)B.tvAppInfo=Object.assign({},B.tvAppInfo,{livingRoomPoTokenId:K});L.client=B;K=L.user||{};A.enableSafetyMode&&(K=Object.assign({},K,{enableSafetyMode:!0}));var J;((J=B.tvAppInfo)==null?0:J.usePageidAsHeader)||!A.pageId||(K=Object.assign({},K,{onBehalfOfUser:A.pageId}));L.user=K;return L};
|
|
nhE=function(A,L,B){var f=A.videoId,K=g.dh(A),V=A.K(),J={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(rT()),referer:document.location.toString(),signatureTimestamp:20424},R=g.v9();A.isAutonav&&(J.autonav=!0);R.Iv(141)&&(J.autonavState=R.Iv(140)?"STATE_OFF":"STATE_ON");J.autoCaptionsDefaultOn=R.Iv(66);ly7(A)&&(J.autoplay=!0);V.G&&A.cycToken&&(J.cycToken=A.cycToken);V.enablePrivacyFilter&&(J.enablePrivacyFilter=!0);A.isFling&&(J.fling=!0);var Z=A.forceAdsUrl;if(Z){R={};var N=[];Z=Z.split(",");
|
|
Z=g.m(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var D=F.split("|");D.length!==3||F.includes("=")||(D[0]="breaktype="+D[0],D[1]="offset="+D[1],D[2]="url="+D[2]);F={adtype:"video_ad"};D=g.m(D);for(var I=D.next();!I.done;I=D.next()){var d=g.m(I.value.split("="));I=d.next().value;d=lS1(d);F[I]=d.join("=")}D=F.url;I=F.presetad;d=F.viralresponseurl;var w=Number(F.campaignid);if(F.adtype==="in_display_ad")D&&(R.url=D),I&&(R.presetAd=I),d&&(R.viralAdResponseUrl=d),w&&(R.viralCampaignId=String(w));
|
|
else if(F.adtype==="video_ad"){var r={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(F.offset)||0)}};if(F=vh8[F.breaktype])r.breakType=F;D&&(r.url=D);I&&(r.presetAd=I);d&&(r.viralAdResponseUrl=d);w&&(r.viralCampaignId=String(w));N.push(r)}}J.forceAdParameters={videoAds:N,inDisplayAd:R}}A.isInlinePlaybackNoAd&&(J.isInlinePlaybackNoAd=!0);A.isLivingRoomDeeplink&&(J.isLivingRoomDeeplink=!0);R=A.r0;if(R!=null){R={startWalltime:String(R)};if(N=A.JA)R.manifestDuration=String(N||14400);J.liveContext=
|
|
R}if(A.mutedAutoplay){J.mutedAutoplay=!0;R=V.getWebPlayerContextConfig();var h,Q;(R==null?0:(h=R.embedsHostFlags)==null?0:h.allowMutedAutoplayDurationMode)&&(R==null?0:(Q=R.embedsHostFlags)==null?0:Q.allowMutedAutoplayDurationMode.includes(qMQ[A.mutedAutoplayDurationMode]))&&(J.mutedAutoplayDurationMode=qMQ[A.mutedAutoplayDurationMode])}if(A.Pz?0:A.N8)J.splay=!0;h=A.vnd;h===5&&(J.vnd=h);h={};if(Q=A.isMdxPlayback)h.triggeredByMdx=Q;if(Q=A.Zi)h.skippableAdsSupported=Q.split(",").includes("ska");if(N=
|
|
A.CQ){Q=A.F0;R=[];N=g.m(HyE(N));for(Z=N.next();!Z.done;Z=N.next()){Z=Z.value;F=Z.platform;Z={applicationState:Z.y$?"INACTIVE":"ACTIVE",clientFormFactor:P4Q[F]||"UNKNOWN_FORM_FACTOR",clientName:by6[Z.Qx]||"UNKNOWN_INTERFACE",clientVersion:Z.deviceVersion||"",platform:xFL[F]||"UNKNOWN_PLATFORM"};F={};if(Q){D=void 0;try{D=JSON.parse(Q)}catch(C){g.CE(C)}D&&(F={params:[{key:"ms",value:D.ms}]},D.advertising_id&&(F.advertisingId=D.advertising_id),D.limit_ad_tracking!==void 0&&D.limit_ad_tracking!==null&&
|
|
(F.limitAdTracking=D.limit_ad_tracking),Z.osName=D.os_name,Z.userAgent=D.user_agent,Z.windowHeightPoints=D.window_height_points,Z.windowWidthPoints=D.window_width_points)}R.push({adSignalsInfo:F,remoteClient:Z})}h.remoteContexts=R}Q=A.sourceContainerPlaylistId;R=A.serializedMdxMetadata;if(Q||R)N={},Q&&(N.mdxPlaybackContainerInfo={sourceContainerPlaylistId:Q}),R&&(N.serializedMdxMetadata=R),h.mdxPlaybackSourceContext=N;J.mdxContext=h;h=L.width;h>0&&(J.playerWidthPixels=Math.round(h));if(L=L.height)J.playerHeightPixels=
|
|
Math.round(L);B!==0&&(J.vis=B);if(B=V.widgetReferrer)J.widgetReferrer=B.substring(0,128);g.MM(V)&&J&&(J.ancestorOrigins=V.ancestorOrigins);A.defaultActiveSourceVideoId&&(J.compositeVideoContext={defaultActiveSourceVideoId:A.defaultActiveSourceVideoId});if(V=V.getWebPlayerContextConfig())J.encryptedHostFlags=V.encryptedHostFlags;f={videoId:f,context:K,playbackContext:{contentPlaybackContext:J}};if(A.dB){var l;f.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(l=A.dB)==null?void 0:l.reloadPlaybackParams}}A.contentCheckOk&&
|
|
(f.contentCheckOk=!0);if(l=A.clientPlaybackNonce)f.cpn=l;if(l=A.playerParams)f.params=l;if(l=A.playlistId)f.playlistId=l;A.racyCheckOk&&(f.racyCheckOk=!0);l=A.K();K=l.embedConfig;A.e8&&l.J("embeds_enable_per_video_embed_config")?f.serializedThirdPartyEmbedConfig=A.e8:K&&(f.serializedThirdPartyEmbedConfig=K);f.captionParams={};K=g.v9().Iv(65);A.deviceCaptionsOn!=null?f.captionParams.deviceCaptionsOn=A.deviceCaptionsOn:g.SK(l)&&(f.captionParams.deviceCaptionsOn=K!=null?!K:!1);A.Gx&&(f.captionParams.deviceCaptionsLangPref=
|
|
A.Gx);A.rp.length?f.captionParams.viewerSelectedCaptionLangs=A.rp:g.SK(l)&&(K=g.T4(),K==null?0:K.length)&&(f.captionParams.viewerSelectedCaptionLangs=K);K=A.fetchType==="onesie"&&A.J("html5_onesie_attach_po_token");J=A.fetchType!=="onesie"&&A.J("html5_non_onesie_attach_po_token");if(K||J)K=A.K(),K.mC&&(f.serviceIntegrityDimensions={},f.serviceIntegrityDimensions.poToken=K.mC);l.J("fetch_att_independently")&&(f.attestationRequest={omitBotguardData:!0});f.playbackContext||(f.playbackContext={});f.playbackContext.devicePlaybackCapabilities=
|
|
ep6(A);f.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&A.Hn("noVp9",{});return f};
|
|
ep6=function(A){var L=!(A==null?0:A.Os())&&(A==null?void 0:A.iC())&&Vz(),B;if(!(B=A==null)){B=g.Gp(A);A=A.K().D;var f=jK("243");B=!(f&&qy(B,f,A,!0)===!0)}return{supportsVp9Encoding:!(B||L),supportXhr:Km}};
|
|
u88=function(A,L){var B,f,K;return g.c(function(V){if(V.N==1)return B={context:g.DI(A.K()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:A.videoId,cpn:A.clientPlaybackNonce}}]},f=g.B8(zp1),g.X(V,g.MD(L,B,f),2);K=V.W;return V.return(K)})};
|
|
ay6=function(A,L,B){var f=g.Am(L.experiments,"bg_vm_reinit_threshold");(!rS||(0,g.bc)()-rS>f)&&u88(A,B).then(function(K){K&&(K=K.botguardData)&&g.HZ(K,L)},function(K){A.TL()||(K=JT(K),A.Hn("attf",K.details))})};
|
|
Ih=function(A,L){g.Y.call(this);this.app=A;this.state=L};
|
|
pm=function(A,L,B){A.state.N.hasOwnProperty(L)||wh(A,L,B);A.state.T[L]=function(){return B.apply(A,g.pf.apply(0,arguments))};
|
|
A.state.G.add(L)};
|
|
yW=function(A,L,B){A.state.N.hasOwnProperty(L)||wh(A,L,B);A.app.K().G&&(A.state.X[L]=function(){return B.apply(A,g.pf.apply(0,arguments))},A.state.G.add(L))};
|
|
wh=function(A,L,B){A.state.N[L]=function(){return B.apply(A,g.pf.apply(0,arguments))}};
|
|
g.jg=function(A,L,B){return A.state.N[L].apply(A.state.N,g.x7(B))};
|
|
gh=function(){g.TF.call(this);this.D=new Map};
|
|
Gg=function(){g.Y.apply(this,arguments);this.element=null;this.G=new Set;this.T={};this.X={};this.N={};this.yj=new Set;this.V=new gh;this.W=new gh;this.U=new gh;this.D=new gh};
|
|
A2y=function(A,L,B){typeof A==="string"&&(A={mediaContentUrl:A,startSeconds:L,suggestedQuality:B});a:{if((L=A.mediaContentUrl)&&(L=/\/([ve]|embed)\/([^#?]+)/.exec(L))&&L[2]){L=L[2];break a}L=null}A.videoId=L;return rh(A)};
|
|
rh=function(A,L,B){if(typeof A==="string")return{videoId:A,startSeconds:L,suggestedQuality:B};L={};B=g.m(L6Q);for(var f=B.next();!f.done;f=B.next())f=f.value,A[f]&&(L[f]=A[f]);if(A=A.embedConfig||A.embed_config)if(typeof A==="string")L.embed_config=A;else if(g.QK(A))try{var K=JSON.stringify(A);L.embed_config=K}catch(V){console.error("Invalid embedConfig JSON",V)}return L};
|
|
oQ7=function(A,L,B,f){if(g.QK(A)&&!Array.isArray(A)){L="playlist list listType index startSeconds suggestedQuality".split(" ");B={};for(f=0;f<L.length;f++){var K=L[f];A[K]&&(B[K]=A[K])}return B}L={index:L,startSeconds:B,suggestedQuality:f};typeof A==="string"&&A.length===16?L.list="PL"+A:L.playlist=A;return L};
|
|
sU=function(){Ih.apply(this,arguments)};
|
|
fDD=function(A){pm(A,"cueVideoById",A.P7);pm(A,"loadVideoById",A.kVD);pm(A,"cueVideoByUrl",A.N6);pm(A,"loadVideoByUrl",A.bYT);pm(A,"playVideo",A.UFD);pm(A,"pauseVideo",A.pauseVideo);pm(A,"stopVideo",A.ar1);pm(A,"clearVideo",A.clearVideo);pm(A,"getVideoBytesLoaded",A.fv);pm(A,"getVideoBytesTotal",A.Cv);pm(A,"getVideoLoadedFraction",A.jn);pm(A,"getVideoStartBytes",A.eq);pm(A,"cuePlaylist",A.cuePlaylist);pm(A,"loadPlaylist",A.IgM);pm(A,"nextVideo",A.xlF);pm(A,"previousVideo",A.Y6s);pm(A,"playVideoAt",
|
|
A.FCp);pm(A,"setShuffle",A.setShuffle);pm(A,"setLoop",A.setLoop);pm(A,"getPlaylist",A.E8);pm(A,"getPlaylistIndex",A.getPlaylistIndex);pm(A,"getPlaylistId",A.getPlaylistId);pm(A,"loadModule",A.GG);pm(A,"unloadModule",A.x7);pm(A,"setOption",A.HP);pm(A,"getOption",A.jq);pm(A,"getOptions",A.po);pm(A,"mute",A.svs);pm(A,"unMute",A.ZVF);pm(A,"isMuted",A.isMuted);pm(A,"setVolume",A.ggM);pm(A,"getVolume",A.getVolume);pm(A,"seekTo",A.Va1);pm(A,"getPlayerMode",A.getPlayerMode);pm(A,"getPlayerState",A.gz);pm(A,
|
|
"getAvailablePlaybackRates",A.getAvailablePlaybackRates);pm(A,"getPlaybackQuality",function(){return A.getPlaybackQuality(1)});
|
|
pm(A,"setPlaybackQuality",A.J1n);pm(A,"getAvailableQualityLevels",A.Vo);pm(A,"getCurrentTime",A.wz);pm(A,"getDuration",A.RY);pm(A,"addEventListener",A.tX);pm(A,"removeEventListener",A.Q04);pm(A,"getDebugText",A.Mj);pm(A,"getVideoData",function(){return BSS(A)});
|
|
pm(A,"addCueRange",A.Vp);pm(A,"removeCueRange",A.removeCueRange);pm(A,"setSize",A.setSize);pm(A,"getApiInterface",A.getApiInterface);pm(A,"destroy",A.destroy);pm(A,"mutedAutoplay",A.mutedAutoplay);var L=A.app.K();L.T||(pm(A,"getVideoEmbedCode",A.getVideoEmbedCode),pm(A,"getVideoUrl",A.vJ));pm(A,"getMediaReferenceTime",A.Tu);pm(A,"getSize",A.getSize);pm(A,"setFauxFullscreen",A.Dqr);L.J("embeds_enable_move_set_center_crop_to_public")&&pm(A,"setCenterCrop",A.setCenterCrop);L.T||pm(A,"logImaAdEvent",
|
|
A.logImaAdEvent);pm(A,"preloadVideoById",A.T1n);pm(A,"wakeUpControls",A.wakeUpControls)};
|
|
g.Hh=function(A){return(A=K6k(A.app.SI()))?A.YR():null};
|
|
bz=function(A){var L=g.nM(A.app.K()),B,f=(B=A.app.getVideoData())==null?void 0:B.Of;A=hj(A.app);return g.IX(L)&&!f||A?!1:!0};
|
|
BSS=function(A,L){var B={};if(L=A.app.Jz(L===void 0?1:L)){L=L.getVideoData();if(Fr(L))return{};B.video_id=L.videoId;B.author=L.author;B.title=L.title;B.isPlayable=Sg(L);B.errorCode=L.errorCode;if(L.W&&L.W.video){B.video_quality=L.W.video.quality;L=L.W.video;var f=[];L.fps>32&&f.push("hfr");L.isHdr()&&f.push("hdr");L.primaries==="bt2020"&&f.push("wcg");B.video_quality_features=f}}if(A=A.getPlaylistId())B.list=A;return B};
|
|
tj=function(){sU.apply(this,arguments)};
|
|
kn=function(A,L){var B={};if(A.app.K().qp){A=g.m(VHL);for(var f=A.next();!f.done;f=A.next())f=f.value,L.hasOwnProperty(f)&&(B[f]=L[f]);if(L=B.qoe_cat)A="",typeof L==="string"&&L.length>0&&(A=L.split(",").filter(function(K){return J2D.includes(K)}).join(",")),B.qoe_cat=A;
|
|
SO7(B)}else for(A=g.m(RU1),f=A.next();!f.done;f=A.next())f=f.value,L.hasOwnProperty(f)&&(B[f]=L[f]);return B};
|
|
SO7=function(A){var L=A.raw_player_response;if(!L){var B=A.player_response;B&&(L=JSON.parse(B))}delete A.player_response;delete A.raw_player_response;if(L){A.raw_player_response={streamingData:L.streamingData,playerConfig:L.playerConfig};var f;if((f=L.playbackTracking)==null?0:f.qoeUrl)A.raw_player_response=Object.assign({},A.raw_player_response,{playbackTracking:{qoeUrl:L.playbackTracking.qoeUrl}});L.videoDetails&&(L.videoDetails.videoId||L.videoDetails.lengthSeconds)&&(B={},L.videoDetails.videoId&&
|
|
(B.videoId=L.videoDetails.videoId),L.videoDetails.lengthSeconds&&(B.lengthSeconds=L.videoDetails.lengthSeconds),A.raw_player_response=Object.assign({},A.raw_player_response,{videoDetails:B}))}};
|
|
NSQ=function(A){var L=L===void 0?5:L;return A?ZPe[A]||L:L};
|
|
g.lz=function(){tj.apply(this,arguments)};
|
|
F6k=function(A){wh(A,"getInternalApiInterface",A.getInternalApiInterface);wh(A,"getTrustedApi",A.getTrustedApi);wh(A,"addEventListener",A.b7);wh(A,"removeEventListener",A.eus);wh(A,"cueVideoByPlayerVars",A.L4);wh(A,"loadVideoByPlayerVars",A.VIj);wh(A,"preloadVideoByPlayerVars",A.j01);wh(A,"getAdState",A.getAdState);wh(A,"sendAbandonmentPing",A.sendAbandonmentPing);wh(A,"setLoopRange",A.setLoopRange);wh(A,"getLoopRange",A.getLoopRange);wh(A,"setAutonavState",A.setAutonavState);wh(A,"seekTo",A.kHT);
|
|
wh(A,"seekBy",A.IrL);wh(A,"seekToLiveHead",A.seekToLiveHead);wh(A,"requestSeekToWallTimeSeconds",A.requestSeekToWallTimeSeconds);wh(A,"seekToStreamTime",A.seekToStreamTime);wh(A,"prefetchKeyPlay",A.prefetchKeyPlay);wh(A,"startSeekCsiAction",A.startSeekCsiAction);wh(A,"getStreamTimeOffset",A.getStreamTimeOffset);wh(A,"getVideoData",A.s8);wh(A,"setInlinePreview",A.setInlinePreview);wh(A,"getAppState",A.getAppState);wh(A,"updateLastActiveTime",A.updateLastActiveTime);wh(A,"setBlackout",A.setBlackout);
|
|
wh(A,"setUserEngagement",A.setUserEngagement);wh(A,"updateSubtitlesUserSettings",A.updateSubtitlesUserSettings);wh(A,"getPresentingPlayerType",A.DB);wh(A,"canPlayType",A.canPlayType);wh(A,"updatePlaylist",A.updatePlaylist);wh(A,"updateVideoData",A.updateVideoData);wh(A,"updateEnvironmentData",A.updateEnvironmentData);wh(A,"sendVideoStatsEngageEvent",A.FDL);wh(A,"productsInVideoVisibilityUpdated",A.productsInVideoVisibilityUpdated);wh(A,"setSafetyMode",A.setSafetyMode);wh(A,"isAtLiveHead",function(L){return A.isAtLiveHead(void 0,
|
|
L)});
|
|
wh(A,"getVideoAspectRatio",A.getVideoAspectRatio);wh(A,"getPreferredQuality",A.getPreferredQuality);wh(A,"getPlaybackQualityLabel",A.getPlaybackQualityLabel);wh(A,"setPlaybackQualityRange",A.ThF);wh(A,"onAdUxClicked",A.onAdUxClicked);wh(A,"getFeedbackProductData",A.getFeedbackProductData);wh(A,"getStoryboardFrame",A.getStoryboardFrame);wh(A,"getStoryboardFrameIndex",A.getStoryboardFrameIndex);wh(A,"getStoryboardLevel",A.getStoryboardLevel);wh(A,"getNumberOfStoryboardLevels",A.getNumberOfStoryboardLevels);
|
|
wh(A,"getCaptionWindowContainerId",A.getCaptionWindowContainerId);wh(A,"getAvailableQualityLabels",A.getAvailableQualityLabels);wh(A,"addCueRange",A.addCueRange);wh(A,"addUtcCueRange",A.addUtcCueRange);wh(A,"showAirplayPicker",A.showAirplayPicker);wh(A,"dispatchReduxAction",A.dispatchReduxAction);wh(A,"getPlayerResponse",A.im);wh(A,"getWatchNextResponse",A.aY);wh(A,"getHeartbeatResponse",A.Sq);wh(A,"getCurrentTime",A.U8);wh(A,"getDuration",A.Pv);wh(A,"getPlayerState",A.getPlayerState);wh(A,"getPlayerStateObject",
|
|
A.Y9);wh(A,"getVideoLoadedFraction",A.getVideoLoadedFraction);wh(A,"getProgressState",A.getProgressState);wh(A,"getVolume",A.getVolume);wh(A,"setVolume",A.CH);wh(A,"isMuted",A.isMuted);wh(A,"mute",A.Km);wh(A,"unMute",A.VX);wh(A,"loadModule",A.loadModule);wh(A,"unloadModule",A.unloadModule);wh(A,"getOption",A.F8);wh(A,"getOptions",A.getOptions);wh(A,"setOption",A.setOption);wh(A,"loadVideoById",A.OW);wh(A,"loadVideoByUrl",A.Bt);wh(A,"playVideo",A.N1);wh(A,"loadPlaylist",A.loadPlaylist);wh(A,"nextVideo",
|
|
A.nextVideo);wh(A,"previousVideo",A.previousVideo);wh(A,"playVideoAt",A.playVideoAt);wh(A,"getDebugText",A.getDebugText);wh(A,"getWebPlayerContextConfig",A.getWebPlayerContextConfig);wh(A,"notifyShortsAdSwipeEvent",A.notifyShortsAdSwipeEvent);wh(A,"getVideoContentRect",A.getVideoContentRect);wh(A,"setSqueezeback",A.setSqueezeback);wh(A,"toggleSubtitlesOn",A.toggleSubtitlesOn);wh(A,"isSubtitlesOn",A.isSubtitlesOn);wh(A,"getAudioTrack",A.qj);wh(A,"setAudioTrack",A.wRF);wh(A,"getAvailableAudioTracks",
|
|
A.k9);wh(A,"reportPlaybackIssue",A.reportPlaybackIssue);wh(A,"setAutonav",A.setAutonav);wh(A,"isNotServable",A.isNotServable);wh(A,"channelSubscribed",A.channelSubscribed);wh(A,"channelUnsubscribed",A.channelUnsubscribed);wh(A,"togglePictureInPicture",A.togglePictureInPicture);wh(A,"supportsGaplessAudio",A.supportsGaplessAudio);wh(A,"supportsGaplessShorts",A.supportsGaplessShorts);wh(A,"enqueueVideoByPlayerVars",function(L){return void A.enqueueVideoByPlayerVars(L)});
|
|
wh(A,"clearQueue",A.clearQueue);wh(A,"getMaxPlaybackQuality",A.getMaxPlaybackQuality);wh(A,"getUserPlaybackQualityPreference",A.getUserPlaybackQualityPreference);wh(A,"getSubtitlesUserSettings",A.getSubtitlesUserSettings);wh(A,"resetSubtitlesUserSettings",A.resetSubtitlesUserSettings);wh(A,"setMinimized",A.setMinimized);wh(A,"setOverlayVisibility",A.setOverlayVisibility);wh(A,"confirmYpcRental",A.confirmYpcRental);wh(A,"queueNextVideo",A.queueNextVideo);wh(A,"handleExternalCall",A.handleExternalCall);
|
|
wh(A,"logApiCall",A.logApiCall);wh(A,"isExternalMethodAvailable",A.isExternalMethodAvailable);wh(A,"setScreenLayer",A.setScreenLayer);wh(A,"getCurrentPlaylistSequence",A.getCurrentPlaylistSequence);wh(A,"getPlaylistSequenceForTime",A.getPlaylistSequenceForTime);wh(A,"shouldSendVisibilityState",A.shouldSendVisibilityState);wh(A,"syncVolume",A.syncVolume);wh(A,"highlightSettingsMenuItem",A.highlightSettingsMenuItem);wh(A,"openSettingsMenuItem",A.openSettingsMenuItem);wh(A,"getEmbeddedPlayerResponse",
|
|
A.getEmbeddedPlayerResponse);wh(A,"getVisibilityState",A.getVisibilityState);wh(A,"isMutedByMutedAutoplay",A.isMutedByMutedAutoplay);wh(A,"isMutedByEmbedsMutedAutoplay",A.isMutedByEmbedsMutedAutoplay);wh(A,"setGlobalCrop",A.setGlobalCrop);wh(A,"setInternalSize",A.setInternalSize);wh(A,"setFauxFullscreen",A.setFauxFullscreen);wh(A,"setAppFullscreen",A.setAppFullscreen)};
|
|
Cm=function(A,L,B){A=g.QW(A.Ce(),L);return B?(B.addOnDisposeCallback(A),null):A};
|
|
g.iz=function(A,L,B){return A.app.K().jD?L:g.B$("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:L,SHORTCUT:B})};
|
|
Dy1=function(A){A.Ce().element.setAttribute("aria-live","polite")};
|
|
g.$n=function(A,L){g.lz.call(this,A,L);F6k(this);yW(this,"addEventListener",this.Fm);yW(this,"removeEventListener",this.vyF);yW(this,"cueVideoByPlayerVars",this.d9);yW(this,"loadVideoByPlayerVars",this.mlp);yW(this,"preloadVideoByPlayerVars",this.XVM);yW(this,"loadVideoById",this.OW);yW(this,"loadVideoByUrl",this.Bt);yW(this,"playVideo",this.N1);yW(this,"loadPlaylist",this.loadPlaylist);yW(this,"nextVideo",this.nextVideo);yW(this,"previousVideo",this.previousVideo);yW(this,"playVideoAt",this.playVideoAt);
|
|
yW(this,"getVideoData",this.Tp);yW(this,"seekBy",this.lrs);yW(this,"seekTo",this.mqs);yW(this,"showControls",this.showControls);yW(this,"hideControls",this.hideControls);yW(this,"cancelPlayback",this.cancelPlayback);yW(this,"getProgressState",this.getProgressState);yW(this,"isInline",this.isInline);yW(this,"setInline",this.setInline);yW(this,"setLoopVideo",this.setLoopVideo);yW(this,"getLoopVideo",this.getLoopVideo);yW(this,"getVideoContentRect",this.getVideoContentRect);yW(this,"getVideoStats",this.Qo);
|
|
yW(this,"getCurrentTime",this.ZV);yW(this,"getDuration",this.Pv);yW(this,"getPlayerState",this.rz);yW(this,"getVideoLoadedFraction",this.x9);yW(this,"mute",this.Km);yW(this,"unMute",this.VX);yW(this,"setVolume",this.CH);yW(this,"loadModule",this.loadModule);yW(this,"unloadModule",this.unloadModule);yW(this,"getOption",this.F8);yW(this,"getOptions",this.getOptions);yW(this,"setOption",this.setOption);yW(this,"addCueRange",this.addCueRange);yW(this,"getDebugText",this.getDebugText);yW(this,"getStoryboardFormat",
|
|
this.getStoryboardFormat);yW(this,"toggleFullscreen",this.toggleFullscreen);yW(this,"isFullscreen",this.isFullscreen);yW(this,"getPlayerSize",this.getPlayerSize);yW(this,"toggleSubtitles",this.toggleSubtitles);yW(this,"setCenterCrop",this.setCenterCrop);yW(this,"setFauxFullscreen",this.setFauxFullscreen);yW(this,"setSizeStyle",this.setSizeStyle);yW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);yW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);fDD(this)};
|
|
g.Xr=function(A){A=A.SI();var L=A.U_.get("endscreen");return L&&L.wR()?!0:A.LK()};
|
|
g.OU=function(A,L){A.getPresentingPlayerType()===3?A.publish("mdxautoplaycancel"):A.Kr("onAutonavCancelled",L)};
|
|
g.ch=function(A){var L=EU(A.SI());return A.app.iY&&!A.isFullscreen()||A.getPresentingPlayerType()===3&&L&&L.hasNext()&&L.hasPrevious()||!!A.getPlaylist()};
|
|
g.Mm=function(A,L){g.jg(A,"addEmbedsConversionTrackingParams",[L])};
|
|
g.UU=function(A){return(A=g.Yn(A.SI()))?A.Q5():{}};
|
|
g.dyC=function(A){A=(A=A.getVideoData())&&A.W;return!!A&&!(!A.audio||!A.video)&&A.mimeType!=="application/x-mpegURL"};
|
|
g.Wh=function(A,L,B){A=A.Pn().element;var f=Dw(A.children,function(K){K=Number(K.getAttribute("data-layer"));return B-K||1});
|
|
f<0&&(f=-(f+1));iA(A,L,f);L.setAttribute("data-layer",String(B))};
|
|
g.vh=function(A){var L=A.K();if(!L.LD)return!1;var B=A.getVideoData();if(!B||A.getPresentingPlayerType()===3)return!1;var f=(!B.isLiveDefaultBroadcast||L.J("allow_poltergust_autoplay"))&&!ZI(B);f=B.isLivePlayback&&(!L.J("allow_live_autoplay")||!f);var K=B.isLivePlayback&&L.J("allow_live_autoplay_on_mweb");A=A.getPlaylist();A=!!A&&A.hasNext();var V=B.Vj&&B.Vj.playerOverlays||null;V=!!(V&&V.playerOverlayRenderer&&V.playerOverlayRenderer.autoplay);V=B.OE&&V;return!B.ypcPreview&&(!f||K)&&!g.zK(B.p9,"ypc")&&
|
|
!A&&(!g.MM(L)||V)};
|
|
IDk=function(A,L){A=A.app.mD().T.R9();A=g.m(A);for(var B=A.next();!B.done;B=A.next()){B=B.value;var f=B.getAvailableAudioTracks(),K=null;f=g.m(f);for(var V=f.next();!V.done;V=f.next())if(V=V.value,V.getLanguageInfo().getId()===L){K=V;break}K&&B.WG(K,!0)}};
|
|
qm=function(){US.apply(this,arguments);this.requestHeaders={}};
|
|
xn=function(){Ph||(Ph=new qm);return Ph};
|
|
eg=function(A,L){L?A.requestHeaders.Authorization="Bearer "+L:delete A.requestHeaders.Authorization};
|
|
wZ0=function(A){this.experiments=A;this.N=2048;this.U=0;this.Wn=(this.X=this.J("html5_streaming_resilience"))?.5:.25;var L=L===void 0?0:L;this.V=g.Am(this.experiments,"html5_media_time_weight_prop")||L;this.yj=(this.D=this.experiments.GL("html5_consider_end_stall"))&&Km;this.W=this.experiments.GL("html5_measure_max_progress_handling");this.G=this.J("html5_treat_requests_pre_elbow_as_metadata");this.T=this.J("html5_media_time_weight")||!!this.V;this.J("html5_sabr_live_audio_early_return_fix")&&Km&&
|
|
(this.N=65536)};
|
|
g.nm=function(A){g.Y.call(this);var L=this;this.Np=A;this.GV={WM:function(){return L.Np}}};
|
|
g.zg=function(A,L,B,f){f=f===void 0?!1:f;g.DE.call(this,L);var K=this;this.S=A;this.Wn=f;this.D=new g.dN(this);this.fade=new g.KL(this,B,!0,void 0,void 0,function(){K.pk()});
|
|
g.W(this,this.D);g.W(this,this.fade)};
|
|
uz=function(A){var L=A.S.getRootNode();return A.S.J("web_watch_pip")||A.S.J("web_shorts_pip")?w_(L):document};
|
|
pZD=function(A){A.sourceElement&&(document.activeElement&&g.XF(A.element,document.activeElement)&&A.sourceElement.focus(),A.sourceElement.setAttribute("aria-expanded","false"),A.sourceElement=void 0);g.$_(A.D);A.T=void 0};
|
|
ah=function(A,L,B){A.U7()?A.YP():A.fD(L,B)};
|
|
AY=function(A,L,B,f){f=new g.q({Z:"div",Rr:["ytp-linked-account-popup-button"],Ir:f,C:{role:"button",tabindex:"0"}});L=new g.q({Z:"div",j:"ytp-linked-account-popup",C:{role:"dialog","aria-modal":"true",tabindex:"-1"},B:[{Z:"div",j:"ytp-linked-account-popup-title",Ir:L},{Z:"div",j:"ytp-linked-account-popup-description",Ir:B},{Z:"div",j:"ytp-linked-account-popup-buttons",B:[f]}]});g.zg.call(this,A,{Z:"div",j:"ytp-linked-account-popup-container",B:[L]},100);var K=this;this.dialog=L;g.W(this,this.dialog);
|
|
f.listen("click",function(){K.YP()});
|
|
g.W(this,f);g.Wh(this.S,this.element,4);this.hide()};
|
|
g.of=function(A,L,B,f){g.DE.call(this,A);this.priority=L;B&&g.Lh(this,B);f&&this.setContent(f)};
|
|
g.Bo=function(A,L,B,f){A=A===void 0?{}:A;L=L===void 0?[]:L;B=B===void 0?!1:B;f=f===void 0?!1:f;L.push("ytp-menuitem");var K=A;"role"in K||(K.role="menuitem");B||(K=A,"tabindex"in K||(K.tabindex="0"));A={Z:B?"a":"div",Rr:L,C:A,B:[{Z:"div",j:"ytp-menuitem-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-menuitem-label",Ir:"{{label}}"},{Z:"div",j:"ytp-menuitem-content",Ir:"{{content}}"}]};f&&A.B.push({Z:"div",j:"ytp-menuitem-secondary-icon",Ir:"{{secondaryIcon}}"});return A};
|
|
g.Lh=function(A,L){A.updateValue("label",L)};
|
|
fh=function(A){g.of.call(this,g.Bo({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var L=this;this.S=A;this.W=this.N=!1;this.Wz=A.gB();A.createServerVe(this.element,this,!0);this.Y(this.S,"settingsMenuVisibilityChanged",function(B){L.Hy(B)});
|
|
this.Y(this.S,"videodatachange",this.U);this.listen("click",this.onClick);this.U()};
|
|
Kh=function(A){return A?g.wq(A):""};
|
|
VC=function(A){g.Y.call(this);this.api=A};
|
|
JY=function(A){VC.call(this,A);var L=this;wh(A,"setAccountLinkState",function(B){L.setAccountLinkState(B)});
|
|
wh(A,"updateAccountLinkingConfig",function(B){L.updateAccountLinkingConfig(B)});
|
|
A.addEventListener("videodatachange",function(B,f){L.onVideoDataChange(f)});
|
|
A.addEventListener("settingsMenuInitialized",function(){L.menuItem=new fh(L.api);g.W(L,L.menuItem)})};
|
|
S3=function(A){VC.call(this,A);var L=this;this.N=null;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"applicationvideodatachange",function(){L.Be()})};
|
|
y28=function(A){this.api=A;this.N={}};
|
|
Rf=function(A,L,B,f){L in A.N||(B=new g.WR(B,f,{id:L,priority:2,namespace:"appad"}),A.api.dX([B],1),A.N[L]=B)};
|
|
Zq=function(A){VC.call(this,A);var L=this;this.events=new g.dN(this);g.W(this,this.events);this.N=new y28(this.api);this.events.Y(this.api,"legacyadtrackingpingreset",function(){L.N.N={}});
|
|
this.events.Y(this.api,"legacyadtrackingpingchange",function(B){var f=L.N;Rf(f,"part2viewed",1,0x8000000000000);Rf(f,"engagedview",Math.max(1,B.qo*1E3),0x8000000000000);if(!B.isLivePlayback){var K=B.lengthSeconds*1E3;pr(B)&&f.api.J("html5_shorts_gapless_ads_duration_fix")&&(K=f.api.getProgressState().seekableEnd*1E3-B.Yn);Rf(f,"videoplaytime25",K*.25,K);Rf(f,"videoplaytime50",K*.5,K);Rf(f,"videoplaytime75",K*.75,K);Rf(f,"videoplaytime100",K,0x8000000000000);Rf(f,"conversionview",K,0x8000000000000);
|
|
Rf(f,"videoplaybackstart",1,K);Rf(f,"videoplayback2s",2E3,K);Rf(f,"videoplayback10s",1E4,K)}});
|
|
this.events.Y(this.api,g.qR("appad"),this.W);this.events.Y(this.api,g.PR("appad"),this.W)};
|
|
r2L=function(A,L,B){if(!(B in L))return!1;L=L[B];Array.isArray(L)||(L=[L]);L=g.m(L);for(B=L.next();!B.done;B=L.next()){B=B.value;var f={CPN:A.api.getVideoData().clientPlaybackNonce};B=g.iN(B,f);f=void 0;f=f===void 0?!1:f;(f=EZ(cR(B,j46),B,f,"Active View 3rd Party Integration URL"))||(f=void 0,f=f===void 0?!1:f,f=EZ(cR(B,gQD),B,f,"Google/YouTube Brand Lift URL"));f||(f=void 0,f=f===void 0?!1:f,f=EZ(cR(B,G4v),B,f,"Nielsen OCR URL"));g.MJ(B,void 0,f)}return!0};
|
|
N5=function(A,L){s4w(A,L).then(function(B){g.MJ(L,void 0,void 0,B)})};
|
|
Fh=function(A,L){L.forEach(function(B){N5(A,B)})};
|
|
s4w=function(A,L){return g.wY(A.api.K())&&dW(L)&&Dp(L)?g.po(A.api.K(),g.Aj(A.api.getVideoData())).then(function(B){var f;B&&(f={Authorization:"Bearer "+B});return f},void 0):OQ()};
|
|
HP8=function(A){VC.call(this,A);this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"videoready",function(L){if(A.getPresentingPlayerType()===1){var B,f,K={playerDebugData:{pmlSignal:!!((B=L.getPlayerResponse())==null?0:(f=B.adPlacements)==null?0:f.some(function(V){var J;return V==null?void 0:(J=V.adPlacementRenderer)==null?void 0:J.renderer})),
|
|
contentCpn:L.clientPlaybackNonce}};g.pE("adsClientStateChange",K)}})};
|
|
Dq=function(A,L){g.of.call(this,g.Bo({role:"menuitemcheckbox","aria-checked":"false"}),L,A,{Z:"div",j:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
|
|
dC=function(A,L){A.checked=L;A.element.setAttribute("aria-checked",String(A.checked))};
|
|
hUC=function(A){var L=!A.K().ye&&A.getPresentingPlayerType()!==3;return A.isFullscreen()||L};
|
|
g.If=function(A,L,B,f){var K=A.currentTarget;if((B===void 0||!B)&&g.bV(A))return A.preventDefault(),!0;L.pauseVideo();A=K.getAttribute("href");g.qf(A,f,!0);return!1};
|
|
g.wC=function(A,L,B){if(Ko(L.K())&&L.getPresentingPlayerType()!==2){if(g.bV(B))return L.isFullscreen()&&!L.K().externalFullscreen&&L.toggleFullscreen(),B.preventDefault(),!0}else{var f=g.bV(B);f&&L.pauseVideo();g.qf(A,void 0,!0);f&&(g.PH(A),B.preventDefault())}return!1};
|
|
bPv=function(A){A=ph.includes("it")?A.J("delhi_modern_web_player_icons")?rq():{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]}:A.J("delhi_modern_web_player_icons")?IGD():{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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.j="ytp-subtitles-button-icon";
|
|
return A};
|
|
tHk=function(A){return ph.includes("it")?A?rq():{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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"}}]}:A?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",
|
|
width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}};
|
|
yC=function(){return{Z:"div",j:"ytp-spinner-container",B:[{Z:"div",j:"ytp-spinner-rotator",B:[{Z:"div",j:"ytp-spinner-left",B:[{Z:"div",j:"ytp-spinner-circle"}]},{Z:"div",j:"ytp-spinner-right",B:[{Z:"div",j:"ytp-spinner-circle"}]}]}]}};
|
|
j3=function(A){if(document.createRange){var L=document.createRange();L&&(L.selectNodeContents(A),A=window.getSelection())&&(A.removeAllRanges(),A.addRange(L))}};
|
|
GD=function(A,L){var B=A.J("web_fix_annotations")?"Overlay con annotazioni":"Annotazioni";Dq.call(this,B,g.gC.Uc);this.S=A;this.Wz=L;this.N=!1;A.J("web_settings_menu_icons")&&(L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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.setIcon(L));this.Y(A,"videodatachange",this.zL);this.Y(A,"onApiChange",this.zL);this.subscribe("select",this.onSelect,this);this.zL()};
|
|
k47=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);A.addEventListener("settingsMenuInitialized",function(){var B=new GD(L.api,L.api.gB());g.W(L,B)})};
|
|
Ho=function(A){var L=this;this.N={};this.V={};this.GV={hfr:function(){return L.N}};
|
|
this.videoData=A;var B,f=(B=A.V)==null?void 0:B.W;f&&f.length>0?this.W=f:(A=A.getAvailableAudioTracks(),this.W=A.length>0?TSD(A):[]);A=g.m(rC);for(B=A.next();!B.done;B=A.next())B=B.value,this.N[B]=lDL[B](this.W);this.VF()};
|
|
myQ=function(A,L){var B=L.getAudioTrack();return B.id!=="und"?g.Mi(A,function(f){var K;return((K=f.ri)==null?void 0:K.name)===B.getLanguageInfo().name}):A};
|
|
Q4y=function(A,L){return L.getUserAudio51Preference()?g.Mi(A,hY):A};
|
|
TSD=function(A){return A.map(function(L){return new C$(L.id,"application/x-mpegURL",{ri:L.ri})})};
|
|
C6E=function(A){return g.ES("yt-player-drc-pref")?g.Mi(A,bb):A};
|
|
iPv=function(A){return j6L()===2?g.Mi(A,tY):A};
|
|
$yv=function(A){return gGy()===1?g.Mi(A,k5):A};
|
|
k5=function(A){var L;return((L=A.audio)==null?void 0:L.audioQuality)==="AUDIO_QUALITY_HIGH"&&!Ya(A)};
|
|
bb=function(A){var L;return((L=A.audio)==null?void 0:L.N)===!0};
|
|
hY=function(A){return Ya(A)};
|
|
XZL=function(A){return A.ri!==void 0};
|
|
tY=function(A){var L;return((L=A.audio)==null?void 0:L.W)===!0};
|
|
TD=function(A,L){if(A.length<2)return!1;var B=L(A[0]);return A.some(function(f){return L(f)!==B})};
|
|
OP7=function(A,L){A=new Set(A.map(L));A.delete(void 0);return A.size>=2};
|
|
lb=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);var B=this.api.J("html5_enable_audio_quality_setting_feature");wh(this.api,"getUserAudioQualitySetting",function(){return B?L.getUserAudioQualitySetting():2});
|
|
wh(this.api,"setUserAudioQualitySetting",function(f){B&&L.setUserAudioQualitySetting(f)});
|
|
wh(this.api,"hasHqaAudioTrack",function(){return B?L.hasHqaAudioTrack():!1});
|
|
wh(this.api,"getAudioQualitySettingState",function(){return B?L.api.a_(4):1});
|
|
this.Ai=gGy();this.updateEnvironmentData()};
|
|
EQQ=function(A){VC.call(this,A);var L=this;wh(this.api,"getAudioTrackState",function(){return L.api.a_(0)})};
|
|
var RQE=function(A){return bL[S[2]](this,1,A)};
|
|
mf=function(A){g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-autonav-toggle"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},B:[{Z:"div",j:"ytp-autonav-toggle-button-container",B:[{Z:"div",j:"ytp-autonav-toggle-button",C:{"aria-checked":"true"}}]}]});this.S=A;this.W=[];this.N=!1;this.isChecked=!0;A.createClientVe(this.element,this,
|
|
113681);this.Y(A,"presentingplayerstatechange",this.EC);this.listen("click",this.onClick);this.W.push(this.Y(this.S,"videodatachange",this.EC));this.W.push(this.Y(this.S,"videoplayerreset",this.EC));this.W.push(this.Y(this.S,"onPlaylistUpdate",this.EC));this.W.push(this.Y(this.S,"autonavchange",this.fB));Cm(A,this.element,this);this.EC()};
|
|
c2E=function(A){A.isChecked=A.isChecked;A.m4("ytp-autonav-toggle-button").setAttribute("aria-checked",String(A.isChecked));var L=A.isChecked?"Riproduzione automatica attiva":"Riproduzione automatica disattivata";A.S.K().J("player_tooltip_data_title_killswitch")?A.update({title:L,label:L}):A.update({"data-tooltip-title":L,label:L});A.S.qq()};
|
|
MH6=function(A){return A.S.K().J("web_player_autonav_use_server_provided_state")&&NG(A.df())};
|
|
YOL=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"standardControlsInitialized",function(){var B=new mf(A);g.W(L,B);A.fJ(B,"RIGHT_CONTROLS_LEFT")})};
|
|
Ch=function(A){var L=A.J("web_player_use_cinematic_label_2")?"Modalit\u00e0 Ambient":"Illuminazione cinematografica";Dq.call(this,L,g.gC.g3);var B=this;this.S=A;this.N=!1;this.W=new g.aa(function(){g.NH(B.element,"ytp-menuitem-highlighted")},0);
|
|
this.Wz=A.gB();A=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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.setIcon(A);this.subscribe("select",this.V,this);this.listen(QC,this.U);g.W(this,this.W)};
|
|
ib=function(A){VC.call(this,A);var L=this;this.N=!1;A.addEventListener("settingsMenuInitialized",function(){Uy8(L)});
|
|
A.addEventListener("highlightSettingsMenu",function(B){Uy8(L);var f=L.menuItem;B==="menu_item_cinematic_lighting"&&(g.R1(f.element,"ytp-menuitem-highlighted"),g.R1(f.element,"ytp-menuitem-highlight-transition-enabled"),f.W.start())});
|
|
wh(A,"updateCinematicSettings",function(B){L.updateCinematicSettings(B)})};
|
|
Uy8=function(A){A.menuItem||(A.menuItem=new Ch(A.api),g.W(A,A.menuItem),A.menuItem.zL(A.N))};
|
|
W6w=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"applicationvideodatachange",function(B,f){f=f.clipConfig;B==="dataloaded"&&f&&f.startTimeMs!=null&&f.endTimeMs!=null&&L.api.setLoopRange({startTimeMs:Math.floor(Number(f.startTimeMs)),endTimeMs:Math.floor(Number(f.endTimeMs)),postId:f.postId,type:"clips"})})};
|
|
$5=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(A,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));wh(A,"setCreatorEndscreenHideButton",this.N.bind(this));this.J("web_fix_annotations")&&this.events.Y(A,"annotationvisibility",function(B){L.setCreatorEndscreenVisibility(!B);L.hideButton&&g.y9(L.hideButton,B)})};
|
|
qOC=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"videodatachange",function(){var B=L.api.getRootNode(),f=L.api.K();g.R1(B,"ytp-delhi-modern");f.J("delhi_modern_web_player_icons")&&g.R1(B,"ytp-delhi-modern-icons");f.J("delhi_modern_web_player_horizontal_volume_controls")&&g.R1(B,"ytp-delhi-horizontal-volume-controls");f.J("delhi_modern_web_player_compact_controls")&&g.R1(B,"ytp-delhi-modern-compact-controls");f.J("delhi_modern_web_player_big_mode_consistent_pill_height")&&
|
|
g.R1(B,"ytp-big-mode-consistent-pill-height");switch(sR(f.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.R1(B,"ytp-delhi-modern-with-luminosity");break;case "difference":g.R1(B,"ytp-delhi-modern-with-difference");break;case "exclusion":g.R1(B,"ytp-delhi-modern-with-exclusion")}B=L.api.isHdr()||L.api.J("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";L.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",B);vQ0(L)});
|
|
this.events.Y(A,"resize",function(){vQ0(L)})};
|
|
vQ0=function(A){var L=A.api.J("delhi_modern_web_player_compact_controls"),B=g.Am(A.api.K().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),f=L||B>0&&A.api.getPlayerSize().width<=B;L=A.api.getRootNode();L.classList.toggle("ytp-delhi-modern-compact-controls",f);B=f?"40px":"48px";var K=f?"8px":"12px",V=f?"56px":"72px",J=f?"56px":"64px",R=f?"48px":"56px",Z=f?"12px":"20px";f=f?"72px":"96px";A.api.J("delhi_modern_web_player_big_mode_consistent_pill_height")&&(R="56px",Z="12px",
|
|
f="80px");L.style.setProperty("--yt-delhi-pill-height",B);L.style.setProperty("--yt-delhi-pill-top-height",K);L.style.setProperty("--yt-delhi-bottom-controls-height",V);L.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",J);L.style.setProperty("--yt-delhi-big-mode-pill-height",R);L.style.setProperty("--yt-delhi-big-mode-pill-top-height",Z);L.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",f)};
|
|
Xh=function(A,L,B,f,K){var V=A.J("html5_enable_new_audio_settings_menu");Dq.call(this,"Volume stabile",V?P6v.JR:g.gC.JR);this.S=A;this.U=L;this.W=B;this.hasDrcAudioTrack=f;this.getDrcState=K;this.V=this.enableNewAudioSettingsMenu=this.N=!1;g.R1(this.element,"ytp-drc-menu-item");this.Wz=(this.enableNewAudioSettingsMenu=V)?A.gB().Wb:A.gB();A.J("html5_enable_voice_boost")?(this.V=!0,this.Y(A,"onFilterAudioFeatures",this.f8)):A.addEventListener("videodatachange",this.f8.bind(this));A.J("mta_drc_mutual_exclusion_removal")&&
|
|
this.Y(A,"onPlaybackAudioChange",this.f8);A.createClientVe(this.element,this,273317);this.listen("click",this.T);L=this.W()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(A=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(A));this.subscribe("select",this.D,this);this.enableNewAudioSettingsMenu||this.V?this.f8():(this.setEnabled(this.hasDrcAudioTrack()),dC(this,L),this.Wz.ov(this))};
|
|
Ot=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);A.J("html5_show_drc_toggle")&&A.addEventListener("settingsMenuInitialized",function(){L.menuItem||(L.menuItem=new Xh(L.api,L.setDrcUserPreference.bind(L),L.getDrcUserPreference.bind(L),L.JE.bind(L),L.getDrcState.bind(L)),g.W(L,L.menuItem))});
|
|
wh(this.api,"setDrcUserPreference",function(f){L.setDrcUserPreference(f)});
|
|
wh(this.api,"getDrcUserPreference",function(){return L.getDrcUserPreference()});
|
|
wh(this.api,"hasDrcAudioTrack",function(){return L.JE()});
|
|
wh(this.api,"getDrcState",function(){return L.getDrcState()});
|
|
var B;this.N=(B=g.ES("yt-player-drc-pref"))!=null?B:1;this.updateEnvironmentData()};
|
|
Et=function(A){VC.call(this,A);var L=this;this.N={};this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"videodatachange",function(){L.onVideoDataChange()});
|
|
this.events.Y(A,g.qR("embargo"),function(B){L.api.Qe(!0);var f,K=(f=L.N[B.id])!=null?f:[];f=g.m(K);for(K=f.next();!K.done;K=f.next()){var V=K.value;L.api.hideControls();L.api.O9("auth",2,"This video isn't available in your current playback area",f$({embargoed:1,id:B.id,idx:B.W,start:B.start}));K=void 0;(V=(K=V.embargo)==null?void 0:K.onTrigger)&&L.api.Kr("innertubeCommand",V)}})};
|
|
xy0=function(A,L){var B;return(B=L.onEnter)==null?void 0:B.some(A.W)};
|
|
eUE=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=void 0,K=Number((f=B.playbackPosition)==null?void 0:f.utcTimeMillis)/1E3,V=void 0;f=K+Number((V=B.duration)==null?void 0:V.seconds);V="embargo_"+K;A.api.addUtcCueRange(V,K,f,"embargo",!1);B.onEnter&&(A.N[V]=B.onEnter.filter(A.W))}};
|
|
co=function(A){VC.call(this,A);var L=this;this.N=[];this.events=new g.dN(A);g.W(this,this.events);wh(A,"addEmbedsConversionTrackingParams",function(B){L.addEmbedsConversionTrackingParams(B)});
|
|
this.events.Y(A,"veClickLogged",function(B){L.api.hasVe(B)&&(B=B.visualElement.getAsJspb(),B=g.nu(B,2),L.N.push(B))})};
|
|
nQD=function(A){VC.call(this,A);wh(A,"isEmbedsShortsMode",function(){return A.isEmbedsShortsMode()});
|
|
wh(A,"getReelItemWatchResponse",function(){var L,B;return(B=(L=A.getVideoData(1))==null?void 0:L.getReelItemWatchResponse())!=null?B:null})};
|
|
zUk=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"initialvideodatacreated",function(B){dS(DD(),16623);L.N=g.sF();var f=A.K().Of&&!B.Pz;if(aq(B)&&f){dS(DD(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(B.getWatchNextResponse()){var K,V=(K=B.getWatchNextResponse())==null?void 0:K.trackingParams;V&&wS(V)}if(B.getPlayerResponse()){var J;(B=(J=B.getPlayerResponse())==null?void 0:J.trackingParams)&&wS(B)}}else dS(DD(),
|
|
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),B.getEmbeddedPlayerResponse()&&(J=(V=B.getEmbeddedPlayerResponse())==null?void 0:V.trackingParams)&&wS(J)});
|
|
this.events.Y(A,"loadvideo",function(){dS(DD(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:L.N})});
|
|
this.events.Y(A,"cuevideo",function(B){B===1&&dS(DD(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:L.N})});
|
|
this.events.Y(A,"largeplaybuttonclicked",function(B){dS(DD(),27240,B.visualElement)});
|
|
this.events.Y(A,"playlistnextbuttonclicked",function(B){dS(DD(),27240,B.visualElement)});
|
|
this.events.Y(A,"playlistprevbuttonclicked",function(B){dS(DD(),27240,B.visualElement)});
|
|
this.events.Y(A,"playlistautonextvideo",function(){dS(DD(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
|
|
M5=function(A,L){g.Y.call(this);var B=this;this.N=null;this.V=L;L=[];for(var f=0;f<=100;f++)L.push(f/100);L={threshold:L,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(K){K=K[K.length-1];var V=null;typeof K.isVisible==="undefined"?document.visibilityState==="visible"&&K.isIntersecting&&K.intersectionRatio>0?V=K.intersectionRatio:document.visibilityState==="hidden"?V=0:V=null:V=K.isVisible?K.intersectionRatio:0;V!=null&&(V=Math.max(V,0),V=Math.min(V,
|
|
1));B.N=V;typeof B.V==="function"&&B.V(B.N)},L):null)&&this.W.observe(A)};
|
|
aDE=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"applicationInitialized",function(){uX8(L)})};
|
|
uX8=function(A){var L=A.api.getRootNode(),B,f=A.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((B=L.parentElement)==null?void 0:B.parentElement)||L:L;A.N=new M5(f,function(K){K!=null&&(A.api.K().jb=K,A.api.K().XT="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
|
|
g.W(A,A.N);A.events.Y(A.api,"videoStatsPingCreated",function(K){var V=A.N;V=V.N==null?null:Math.round(V.N*100)/100;K.inview=V!=null?V:void 0;V=A.api.getPlayerSize();if(V.height>0&&V.width>0){V=[Math.round(V.width),Math.round(V.height)];var J=g.J$();J>1&&V.push(J);V=V.join(":")}else V=void 0;K.size=V})};
|
|
Y5=function(A){VC.call(this,A);var L=this;wh(this.api,"dismissFeaturedProductOverlay",function(){L.dismissFeaturedProductOverlay()})};
|
|
AIQ=function(A){var L;return((L=((A==null?void 0:A.messageRenderers)||[]).find(function(B){return!!B.timeCounterRenderer}))==null?void 0:L.timeCounterRenderer)||null};
|
|
Ut=function(A){g.q.call(this,{Z:"div",Rr:["ytp-player-content","ytp-iv-player-content"],B:[{Z:"div",j:"ytp-free-preview-countdown-timer",B:[{Z:"span",Ir:"{{label}}"},{Z:"span",j:"ytp-free-preview-countdown-timer-separator",Ir:"\u2022"},{Z:"span",Ir:"{{duration}}"}]}]});this.api=A;this.N=null;this.V=this.W=0;this.Y(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
|
|
oKC=function(A,L){A.N||(A.W=L,A.V=(0,g.bc)(),A.N=new g.uN(function(){LdL(A)},null),LdL(A))};
|
|
LdL=function(A){var L=Math,B=L.round,f=Math.min((0,g.bc)()-A.V,A.W);L=B.call(L,(A.W-f)/1E3);A.updateValue("duration",VG({seconds:L}));L<=0&&A.N?A.stopTimer():A.N&&A.N.start()};
|
|
BDe=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"basechromeinitialized",function(){L.N=new Ut(A);g.W(L,L.N);g.Wh(A,L.N.element,4);L.N.hide()})};
|
|
Wo=function(A){g.q.call(this,{Z:"button",Rr:["ytp-fullerscreen-edu-button","ytp-button"],B:[{Z:"div",Rr:["ytp-fullerscreen-edu-text"],Ir:"Scorri per i dettagli"},{Z:"div",Rr:["ytp-fullerscreen-edu-chevron"],B:[qQe()]}],C:{"data-priority":"2"}});this.rT=A;this.fade=new g.KL(this,250,void 0,100);this.W=this.N=!1;A.createClientVe(this.element,this,61214);g.W(this,this.fade);this.Y(A,"fullscreentoggled",this.zL);this.Y(A,"presentingplayerstatechange",this.zL);this.listen("click",this.onClick);this.zL()};
|
|
vo=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(this.api,"updateFullerscreenEduButtonSubtleModeState",function(f){L.updateFullerscreenEduButtonSubtleModeState(f)});
|
|
wh(this.api,"updateFullerscreenEduButtonVisibility",function(f){L.updateFullerscreenEduButtonVisibility(f)});
|
|
var B=A.K();A.J("external_fullscreen_with_edu")&&B.externalFullscreen&&Ko(B)&&B.controlsType==="1"&&this.events.Y(A,"standardControlsInitialized",function(){L.N=new Wo(A);g.W(L,L.N);A.fJ(L.N)})};
|
|
fcw=function(A){g.q.call(this,{Z:"div",j:"ytp-gated-actions-overlay",B:[{Z:"div",j:"ytp-gated-actions-overlay-background",B:[{Z:"div",j:"ytp-gated-actions-overlay-background-overlay"}]},{Z:"button",Rr:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],C:{"aria-label":"Chiudi"},B:[g.GZ()]},{Z:"div",j:"ytp-gated-actions-overlay-bar",B:[{Z:"div",j:"ytp-gated-actions-overlay-text-container",B:[{Z:"div",j:"ytp-gated-actions-overlay-title",Ir:"{{title}}"},{Z:"div",j:"ytp-gated-actions-overlay-subtitle",
|
|
Ir:"{{subtitle}}"}]},{Z:"div",j:"ytp-gated-actions-overlay-button-container"}]}]});var L=this;this.api=A;this.background=this.m4("ytp-gated-actions-overlay-background");this.W=this.m4("ytp-gated-actions-overlay-button-container");this.N=[];this.Y(this.m4("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){L.api.Kr("onCloseMiniplayer")});
|
|
this.hide()};
|
|
Vzv=function(A,L){var B=0;B=0;for(var f={};B<L.length;f={k5:void 0},B++){var K=A.N[B],V=void 0,J=(V=K)==null?void 0:V.element;J||(J=new g.q({Z:"button",j:"ytp-gated-actions-overlay-button",C:{tabindex:"0"},B:[{Z:"div",j:"ytp-gated-actions-overlay-button-title",Ir:"{{buttonText}}"}]}),g.W(A,J),J.DM(A.W),K={element:J});f.k5=g.y(L[B],Kd7);var R=V=void 0,Z=void 0,N=((V=f.k5)==null?void 0:V.title)||((R=f.k5)==null?void 0:(Z=R.titleFormatted)==null?void 0:Z.content)||"";J.update({buttonText:N});K.listener&&
|
|
J.J$(K.listener);K.listener=J.listen("click",function(F){return function(){var D,I=g.y((D=F.k5)==null?void 0:D.onTap,XP);I&&A.api.Kr("innertubeCommand",I)}}(f));
|
|
A.N[B]=K}for(;B<A.N.length;)A.N.pop().element.dispose()};
|
|
JI8=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.N=new fcw(this.api);g.W(this,this.N);this.events.Y(A,"videodatachange",function(){var B,f=(B=L.api.getVideoData())==null?void 0:B.XN;B=L.N;if(f){var K,V,J=((K=f.title)==null?void 0:K.content)||"";K=((V=f.subtitle)==null?void 0:V.content)||"";B.update({title:J,subtitle:K});J=f.thumbnail;V="none";if(J==null?0:J.sources){K=0;J=g.m(J.sources);for(var R=J.next();!R.done;R=J.next())R=R.value,R.width&&R.url&&R.width>
|
|
K&&(K=R.width,V="url("+R.url+")")}B.background.style.backgroundImage=V;Vzv(B,f.actionButtons||[]);B.show()}else B.hide()});
|
|
g.Wh(this.api,this.N.element,4)};
|
|
q5=function(A){VC.call(this,A);var L=this;yW(this.api,"getSphericalProperties",function(){return L.getSphericalProperties()});
|
|
yW(this.api,"setSphericalProperties",function(){L.setSphericalProperties.apply(L,g.x7(g.pf.apply(0,arguments)))});
|
|
pm(this.api,"getSphericalProperties",function(){return L.api.getPresentingPlayerType()===2?{}:L.getSphericalProperties()});
|
|
pm(this.api,"setSphericalProperties",function(){var B=g.pf.apply(0,arguments);L.api.getPresentingPlayerType()!==2&&L.setSphericalProperties.apply(L,g.x7(B))})};
|
|
Po=function(A){VC.call(this,A);wh(A,"createClientVe",this.createClientVe.bind(this));wh(A,"createServerVe",this.createServerVe.bind(this));wh(A,"destroyVe",this.destroyVe.bind(this));wh(A,"hasVe",this.hasVe.bind(this));wh(A,"logClick",this.logClick.bind(this));wh(A,"logVisibility",this.logVisibility.bind(this));wh(A,"setTrackingParams",this.setTrackingParams.bind(this))};
|
|
x5=function(A,L,B,f){function K(J){var R=!(J.status!==204&&J.status!==200&&!J.response),Z;J={succ:""+ +R,rc:J.status,lb:((Z=J.response)==null?void 0:Z.byteLength)||0,rt:((0,g.bc)()-V).toFixed(),shost:g.tW(A),trigger:L};S98(J,A);B&&B(J);f&&!R&&f(new g.K$("pathprobe.net",J))}
|
|
var V=(0,g.bc)();g.ll(A,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:K,onTimeout:K})};
|
|
S98=function(A,L){var B;((B=window.performance)==null?0:B.getEntriesByName)&&(L=performance.getEntriesByName(L))&&L.length&&(L=L[0],A.pedns=(L.domainLookupEnd-L.startTime).toFixed(),A.pecon=(L.connectEnd-L.domainLookupEnd).toFixed(),A.perqs=(L.requestStart-L.connectEnd).toFixed(),RgE&&(A.perqsa=L.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
|
|
Zqv=function(A){RgE=A};
|
|
e3=function(A,L){this.Ml=A;this.policy=L;this.playbackRate=1};
|
|
NDv=function(A,L){var B=Math.min(2.5,nh(A.Ml));A=zD(A);return L-B*A};
|
|
af=function(A,L,B,f,K){K=K===void 0?!1:K;if(A.policy.mM)return Math.ceil(A.policy.mM*L);A.policy.jr&&(f=Math.abs(f));f/=A.playbackRate;var V=1/ub(A.Ml);B=Math.max(.9*(f-3),nh(A.Ml)+A.Ml.W.N*V)/V*.8/(L+B);B=Math.min(B,f);A.policy.FT>0&&K&&(B=Math.max(B,A.policy.FT));return Fd6(A,B,L)};
|
|
Fd6=function(A,L,B){return Math.ceil(Math.max(Math.max(A.policy.TK,A.policy.iT*B),Math.min(Math.min(A.policy.Cr,31*B),Math.ceil(L*B))))||A.policy.TK};
|
|
zD=function(A){return ub(A.Ml,!A.policy.w$,A.policy.p$)};
|
|
Ai=function(A){return zD(A)/A.playbackRate};
|
|
LT=function(A,L,B){var f=A.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],K=A.policy.playbackStartPolicy.startMinReadaheadPolicy||[];A=Infinity;L=g.m(L&&f.length>0?f:K);for(f=L.next();!f.done;f=L.next())f=f.value,K=f.minReadaheadMs||0,B<(f.minBandwidthBytesPerSec||0)||A>K&&(A=K);return A<Infinity?A/1E3:A};
|
|
o5=function(A,L,B,f){var K=this;this.X=A;this.gT=L;this.policy=B;this.logger=f;this.yr=[];this.VK=[];this.N=-1;this.uC=null;this.T=this.timestampOffset=0;this.W=10;this.D=new Set;this.GV={kU:function(V){return K.kU(V)}};
|
|
this.U=L.iC?0:1;B.rp>0&&(this.W=B.rp)};
|
|
Ic1=function(A,L,B,f,K){if(!f.info.V){if(B.length===0)B.push(f);else{var V;(A=(V=B.pop())==null?void 0:g.tL(V,f))?B.push(A):B.push(f)}return K}var J;(B=(J=B.pop())==null?void 0:g.tL(J,f))||(B=f);if(B.info.N)return A.logger&&A.logger({incompleteSegment:B.info.Dx()}),K;f=A.kU(B);K=f.XD;f={clipId:f.clipId,formatId:f.formatId,startTimeMs:f.startTimeMs,durationMs:f.wv,Uj:K,L8:K};K=Dj7(L,f.startTimeMs);if(V=B=K>=0?L[K]:null){V=f;var R=K;J=B.startTimeMs+B.durationMs;var Z=V.startTimeMs+V.durationMs;if(V.startTimeMs-
|
|
J>A.W)V=!1;else if(djy(A,B.formatId,V.formatId))B.durationMs=Math.max(J,Z)-B.startTimeMs,B.L8=Math.max(B.L8,V.L8),V=!0;else if(Math.abs(B.startTimeMs-V.startTimeMs)<=A.W)if(B.durationMs>V.durationMs+A.W){var N=B.formatId,F=B.Uj;R=B.L8;B.formatId=V.formatId;B.durationMs=V.durationMs;B.Uj=V.Uj;B.L8=V.L8;V.formatId=N;V.startTimeMs=Z;V.durationMs=J-Z;V.Uj=F;V.L8=R;V=!1}else B.formatId=V.formatId,V=!0;else J>V.startTimeMs&&(J>Z&&(L.splice(R+1,0,{formatId:B.formatId,startTimeMs:Z,durationMs:J-Z,Uj:V.L8+
|
|
1,L8:B.L8}),A.logger&&A.logger({splitOldStart:(N=B.startTimeMs)==null?void 0:N.toFixed(3),splitOldEnd:J==null?void 0:J.toFixed(3),splitNewStart:(F=V.startTimeMs)==null?void 0:F.toFixed(3),splitNewEnd:Z==null?void 0:Z.toFixed(3)})),B.durationMs=V.startTimeMs-B.startTimeMs,B.L8=V.Uj-1),V=!1}V?f=B:(K+=1,L.splice(K,0,f));N=0;for(F=K+1;F<L.length;F++){B=A;V=L[F];J=f;Z=V.startTimeMs+V.durationMs;R=J.startTimeMs+J.durationMs;R>=Z+B.W?B=!0:R+B.W<V.startTimeMs?B=!1:djy(B,V.formatId,J.formatId)?(J.durationMs=
|
|
Z-J.startTimeMs,J.L8=V.L8,B=!0):(V.startTimeMs=R,V.Uj=J.L8+1,B=!1);if(!B)break;N++}N&&L.splice(K+1,N);return K};
|
|
pqw=function(A,L,B){B!=null&&B.Cu||(A.yr=[]);A.policy.r$?(L=g.Fc(A.VK,{startTimeMs:L*1E3},function(f,K){return f.startTimeMs-K.startTimeMs}),A.N!==L&&(A.N=-1,A.V=void 0)):(wqL(A,!0),A.N=Dj7(A.VK,L*1E3))};
|
|
Dj7=function(A,L){A=g.Fc(A,{startTimeMs:L},function(B,f){return B.startTimeMs-f.startTimeMs});
|
|
return A>=0?A:-A-2};
|
|
wqL=function(A,L){if(A.uC){var B=A.uC.Hk();if(B.length!==0){if(A.V&&L){var f=A.V,K=f.info.U;!aT(B,K)&&f.info.X>0&&(0,g.bc)()-A.T<5E3&&(A.logger&&A.logger({dend:f.info.Dx()}),B=df7(B,K,K+.01))}A.policy.r$&&A.logger&&A.logger({cbri:""+A.N});f=[];for(var V=K=0;K<B.length&&V<A.VK.length;){var J=B.start(K),R=B.end(K),Z=A.VK[V].startTimeMs/1E3,N=(A.VK[V].startTimeMs+A.VK[V].durationMs)/1E3;if(Z<=R&&N>=J){var F=Object.assign({},A.VK[V]),D=A.gT.V.get(nq(A.VK[V].formatId)),I=Math.max(Z,J);J=D.index.NV(I+A.W/
|
|
1E3);Z=D.index.getStartTime(J);var d=J+ +(Math.abs(Z-I)>A.W/1E3);I=d+A.U;d=D.index.getStartTime(d)*1E3;V!==A.N||L?(F.Uj=I,F.startTimeMs=d):(A.logger&&A.logger({pEvict:"1",og:F.startTimeMs,adj:Z*1E3}),F.Uj=J+A.U,F.startTimeMs=Z*1E3);J=void 0;Z=((J=A.V)==null?void 0:J.info.duration)||11;V===A.N&&R<N&&N-R<=Z*1.01&&(R=N);J=Math.min(N,R);Z=D.index.NV(J-A.W/1E3);I=D.index.zU(Z);Z-=+(Math.abs(I-J)>A.W/1E3);J=Z+A.U;D=D.index.zU(Z)*1E3;F.L8=J;F.durationMs=D-F.startTimeMs;F.Uj<=F.L8&&f.push(F)}N<R?V+=1:K+=
|
|
1}A.VK=f}}};
|
|
yIy=function(A){var L=[],B=[].concat(g.x7(A.yr));A.VK.forEach(function(J){L.push(Object.assign({},J))});
|
|
for(var f=A.N,K=g.m(A.X.w5()),V=K.next();!V.done;V=K.next())f=Ic1(A,L,B,V.value,f);L.forEach(function(J){J.startTimeMs&&(J.startTimeMs+=A.timestampOffset*1E3)});
|
|
return{VK:L,yr:B}};
|
|
djy=function(A,L,B){return L.itag!==B.itag||L.xtags!==B.xtags?!1:A.gT.iC||L.lmt===B.lmt};
|
|
js6=function(A,L,B){if(A.logger){for(var f=[],K=0;K<L.length;K++){var V=L[K],J=void 0;if((J=V.cw)==null?0:J.startTicks){var R=J=void 0,Z=void 0;f.push("i."+((J=V.formatId)==null?void 0:J.itag)+"_st."+(V.startTimeMs+"_psst.")+(((R=V.cw)==null?void 0:R.startTicks)+"_psd.")+((Z=V.cw)==null?void 0:Z.Ew))}J=void 0;f.push("i."+((J=V.formatId)==null?void 0:J.itag)+"_st."+(V.startTimeMs+"_e."+(V.startTimeMs+V.durationMs)+"_d."+V.durationMs)+("_sn."+V.Uj)+("_en."+V.L8))}A.logger({p:""+B,br:f.join(";")})}};
|
|
gKw=function(A){A.VK=[];A.yr=[];A.D.clear();A.N=-1;A.V=void 0};
|
|
BO=function(A,L,B,f,K){this.loader=A;this.gT=L;this.videoTrack=B;this.audioTrack=f;this.policy=K;this.seekCount=this.targetTime=0;this.U=!1;this.V=null;this.W=0;this.N=this.gT.isManifestless&&!this.gT.SD};
|
|
G5k=function(A,L,B){if(!A.policy.D){A=L.b1.index;var f=L.N.XD;A.NE(f)||B&&B.XD===f?(L.U=!A.NE(f),L.qp=!A.NE(f)):(L.U=!0,L.qp=!0)}};
|
|
ss0=function(A){var L=Math.max(A.videoTrack.V.V||0,A.audioTrack.V.V||0);rIS(A.videoTrack);rIS(A.audioTrack);A.policy.D||q20(A.gT);A.gT.isManifestless&&!A.policy.D&&(A.N=!0,A.W=0);var B=A.loader;if(!B.policy.S4||B.policy.zV)B.currentTime=L;A.U=!0;A.V=new yV;return A.V};
|
|
bqE=function(A,L,B,f,K){if(!L.b1.w1()){if(!(K=B===0||!!L.W.length&&L.W[0]instanceof fT))a:{if(L.W.length&&(K=L.W[0],K instanceof KT&&K.XH&&K.Sg)){K=!0;break a}K=!1}K||A.policy.N||Va(L);return B}var V=Ji(L,B);if(!isNaN(V))return V;if(A.loader.G6(B*1E3))return B;K.Cu?A.policy.Gx&&(A=Sb(A.loader,L),Hqk(L.V,B+A,!0)):(L.KV(),A.loader.BL(!1,"sta_"+ +L.b1.info.NF()));return f&&(A=AA(f.Hk(),B),!isNaN(A))?(R5(L,A+hgv,K),B):R5(L,B,K)};
|
|
k56=function(A,L,B,f){if(A.policy.D)!f||!A.N&&A.policy.ql||g.lX(function(){Zb(A)});
|
|
else{if(A.isSeeking()&&A.targetTime){var K=tzw(A,L,B);if(K!==-1){A.videoTrack.U=!1;A.audioTrack.U=!1;A.N=!0;A.W=0;g.lX(function(){A.loader.Hn("seekreason",{reason:"behindMinSq",tgt:K});NI(A,K)});
|
|
return}}B?A.videoTrack.qp=!1:A.audioTrack.qp=!1;var V=!A.N;Ji(A.videoTrack,A.targetTime)>=0&&Ji(A.audioTrack,A.targetTime)>=0&&V?((A.videoTrack.U||A.audioTrack.U)&&A.loader.Hn("iterativeSeeking",{status:"done",count:A.seekCount}),A.videoTrack.U=!1,A.audioTrack.U=!1):f&&g.lX(function(){if(A.N||!A.policy.ql)Zb(A);else{var J=L.startTime,R=L.duration;if(!A.policy.D){var Z=A.videoTrack.D!==-1&&A.audioTrack.D!==-1,N=!A.videoTrack.qp&&!A.audioTrack.qp;(B?A.videoTrack.U:A.audioTrack.U)&&Z&&N&&(A.targetTime>=
|
|
J&&A.targetTime<J+R+.1?((B?A.videoTrack:A.audioTrack).U=!1,A.videoTrack.U||A.audioTrack.U||(A.loader.Hn("iterativeSeeking",{status:"done",target:J,originalTime:J+A.loader.pY(),count:A.seekCount}),A.seekCount=0)):A.seekCount<8?(A.seekCount++,A.loader.Hn("iterativeSeeking",{status:"inprogress",count:A.seekCount,target:A.targetTime,actual:J,duration:R,isVideo:B}),A.seek(A.targetTime,{})):(A.loader.Hn("iterativeSeeking",{status:"incomplete",count:A.seekCount,target:A.targetTime,actual:J}),A.seekCount=
|
|
0,A.videoTrack.U=!1,A.audioTrack.U=!1,FT(A.loader,J+.1,{Mi:!0,zZ:"chunkSelectorSynchronizeMedia",OU:!0})))}}})}};
|
|
tzw=function(A,L,B){if(!A.isSeeking())return-1;B=(B?A.videoTrack:A.audioTrack).b1.index;var f=B.NV(A.targetTime);return(B.NE(A.gT.F3)||L.XD===A.gT.F3)&&f<A.gT.F3?A.gT.vy():-1};
|
|
NI=function(A,L,B){A.N&&A.videoTrack.D!==-1&&A.audioTrack.D!==-1&&(A.N=!1,A.targetTime=L,FT(A.loader,L+.1,{Mi:!0,zZ:"chunkSelectorSynchronize",OU:!0,seekSource:B}))};
|
|
Zb=function(A){var L=A.videoTrack.D!==-1,B=A.audioTrack.D!==-1;if(!L||!B)if(L=!L&&Db(A.videoTrack),B=!B&&Db(A.audioTrack),L||B){B=L?A.videoTrack:A.audioTrack;L=L?A.audioTrack:A.videoTrack;B.D=Db(B).info.XD;if(A.policy.D){var f;L.D=((f=Db(L))==null?void 0:f.info.XD)||L.D}if(L.D!==-1){var K=Math.max(L.b1.index.getStartTime(L.D),B.b1.index.getStartTime(B.D));el(A.gT)&&Math.abs(K-el(A.gT))>432E3&&PQy(A.gT);A.W&&(K=A.W,A.W=0);g.lX(function(){A.policy.D||NI(A,K,102)});
|
|
A.loader.Hn("initManifestlessSync",{st:K,ost:K+A.loader.pY(),a:A.audioTrack.D,v:A.videoTrack.D});A.V&&(A.V.resolve(K+.1),A.V=null);A.policy.D&&NI(A,K,102)}}};
|
|
I5=function(){this.data=new Uint8Array(2048);this.pos=0;dM||(dM=bD("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
|
|
wM=function(A,L){A.add(L==null||isNaN(L)?0:L+1)};
|
|
ya=function(A,L){var B=this;this.xs=A;this.requestNumber=++TDS;this.N=this.now();this.G=this.yj=NaN;this.X=this.N;this.V=this.KY=this.D=0;this.T=this.N;this.Ox=this.qp=this.JF=this.N8=this.Pz=this.ZM=this.W=this.U=0;this.Wn=this.isActive=!1;this.Uv=this.Nl=0;this.GV={yaj:function(){return B.xm}};
|
|
this.Ml=L.Ml;this.snapshot=pT(this.Ml);this.policy=this.Ml.W;this.lf=!!L.lf;this.YD=L.YD;this.qz=L.qz||0;this.So=L.So||0;L.L6&&(this.wT=new I5);var f;this.xm=(f=L.xm)!=null?f:!1;this.lf||lcy(this.Ml)};
|
|
mjw=function(A){A.JF=Math.max(A.JF,A.D-A.Pz);A.qp=Math.max(A.qp,A.X-A.N8);A.ZM=0};
|
|
jb=function(A,L,B){Qsv(A.Ml,L);A.wT&&(A.wT.add(Math.ceil(L)-Math.ceil(A.X)),A.wT.add(Math.max(0,Math.ceil(B/1024)-Math.ceil(A.D/1024))));var f=L-A.X,K=B-A.D;A.KY=K;A.Ox=Math.max(A.Ox,K/(f+.01)*1E3);A.X=L;A.D=B;A.ZM&&B>A.ZM&&mjw(A)};
|
|
gM=function(A,L){A.url=L;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
|
|
GC=function(A,L){ya.call(this,A,L);this.ql=this.jI=!1;this.S4=this.Vj=Infinity;this.Ys=NaN;this.mH=!1;this.cn=NaN;this.t$=this.Ex=this.Cr=0;this.bb=L.bb||1;this.Kg=L.Kg||this.bb;this.HB=L.HB;this.XD=L.XD;this.FH=L.FH;CnC(this);this.i9(this.N);this.zV=(this.cn-this.N)/1E3};
|
|
iqw=function(A){var L=A.Ex||A.Cr;return L?A.snapshot.delay+Math.min(A.So,(A.G-A.yj)/1E3)+L:A.zV};
|
|
sV=function(A,L,B){if(!A.lf){L=Math.max(L,.01);var f=A.qz?Math.max(L,B/A.qz):L,K=A.Ml.W.V;K&&(f=L,A.qz&&(f=Math.max(L,B/A.qz*K)));rM(A.Ml,L,B,f)}};
|
|
$j6=function(A){return(A.T-A.N)/1E3};
|
|
CnC=function(A){A.Ys=A.N+A.snapshot.delay*1E3;A.mH=!1};
|
|
HO=function(A,L){if(A.HB&&A.XD!==void 0&&A.FH!==void 0){var B=Math,f=B.min,K=A.Vj;var V=A.HB;var J=A.N;if(Xq7(V,A.XD))V=L;else{var R=0;V.D5&&(R=.2);V=J+(V.So+R)*1E3}A.Vj=f.call(B,K,V);B=Math;f=B.min;K=A.S4;V=A.HB;J=A.N;R=OqL(V,A.XD,A.FH);R!==2&&(L=R?L:J+V.So*1E3,V.D5&&(L+=V.So*1E3));A.S4=f.call(B,K,L);A.Vj<=A.N?CnC(A):(A.Ys=A.Vj,A.mH=!0)}};
|
|
EK0=function(A,L){if(L+1<=A.totalLength){var B=jU(A,L);B=B<128?1:B<192?2:B<224?3:B<240?4:5}else B=0;if(B<1||!(L+B<=A.totalLength))return[-1,L];if(B===1)A=jU(A,L++);else if(B===2)B=jU(A,L++),A=jU(A,L++),A=(B&63)+64*A;else if(B===3){B=jU(A,L++);var f=jU(A,L++);A=jU(A,L++);A=(B&31)+32*(f+256*A)}else if(B===4){B=jU(A,L++);f=jU(A,L++);var K=jU(A,L++);A=jU(A,L++);A=(B&15)+16*(f+256*(K+256*A))}else B=L+1,A.focus(B),wZ(A,B,4)?A=rbC(A).getUint32(B-A.V,!0):(f=jU(A,B+2)+256*jU(A,B+3),A=jU(A,B)+256*(jU(A,B+1)+
|
|
256*f)),L+=5;return[A,L]};
|
|
hi=function(A){this.xs=A;this.N=new FK};
|
|
b$=function(A,L){this.info=A;this.callback=L;this.state=1;this.QZ=this.T6=!1;this.I0=null};
|
|
cIe=function(A){return g.Q9(A.info.Lr,function(L){return L.type===3})};
|
|
ti=function(A,L,B,f){var K=this;f=f===void 0?{}:f;this.policy=L;this.xs=B;this.status=0;this.N=new FK;this.W=0;this.TL=this.U=this.V=!1;this.xhr=new XMLHttpRequest;this.xhr.open(f.method||"GET",A);if(f.headers)for(A=f.headers,L=g.m(Object.keys(A)),B=L.next();!B.done;B=L.next())B=B.value,this.xhr.setRequestHeader(B,A[B]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return K.xQ()};
|
|
this.xhr.onload=function(){return K.onDone()};
|
|
this.xhr.onerror=function(){return K.onError()};
|
|
this.xhr.fetch(function(V){K.N.append(V);K.W+=V.length;V=(0,g.bc)();K.xs.gK(V,K.W)},function(){},f.body||null)};
|
|
Mz1=function(A,L){this.W=(new TextEncoder).encode(A);this.N=(new TextEncoder).encode(L)};
|
|
gY6=function(A,L){var B;return g.c(function(f){if(!L)return f.return(L);B=new g.Rd(A.W);return f.return(B.encrypt(L,A.N))})};
|
|
h97=function(A,L){var B;return g.c(function(f){if(f.N==1){if(!L)return f.return(L);B=new g.Rd(A.W);return g.X(f,B.decrypt(L,A.N),2)}return f.return(f.W)})};
|
|
Y9v=function(A,L){var B=this;this.N=A;this.xs=L;this.loaded=this.status=0;this.error="";A=AL(this.N.get("range")||"");if(!A)throw Error("bad range");this.range=A;this.W=new FK;this.run().then(function(){B.xs.ZZ()},function(f){B.error=""+f||"unknown_err";
|
|
B.xs.ZZ()})};
|
|
Wd1=function(A,L,B,f){var K=this;f=f===void 0?{}:f;this.policy=L;this.xs=B;this.T=f;this.status=0;this.response=void 0;this.W=0;this.aborted=this.D=!1;this.errorMessage="";this.G=function(V){if(V)if(K.status=V.status,V.ok&&V.body&&K.status!==204)K.status=K.status||242,K.V=V.body.getReader(),K.TL()?K.V.cancel().catch(function(){}):(K.responseHeaders=V.headers,K.xs.U5(),UjD(K));
|
|
else K.onDone();else K.onError(Error("null_response"))};
|
|
this.X=function(V){var J=(0,g.bc)();K.TL()||(V.done?(K.V=void 0,K.onDone()):(V=V.value,K.W+=V.length,K.N.append(V),UjD(K),K.xs.gK(J,K.W)))};
|
|
this.onError=function(V){K.errorMessage=String(V);K.D=!0;K.onDone()};
|
|
this.N=new FK;this.U=window.AbortController?new AbortController:void 0;this.start(A)};
|
|
UjD=function(A){A.V.read().then(A.X,A.onError).then(void 0,QH)};
|
|
vK8=function(A,L,B){var f=this;B=B===void 0?{}:B;this.xs=L;this.W=this.status=0;this.TL=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(B.method||"GET",A);if(B.headers){A=B.headers;L=g.m(Object.keys(A));for(var K=L.next();!K.done;K=L.next())K=K.value,this.xhr.setRequestHeader(K,A[K])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(V){f.xQ(V)};
|
|
A=SH(function(V){f.onDone(V)});
|
|
this.xhr.addEventListener("load",A,!1);this.xhr.addEventListener("error",A,!1);B.body?this.xhr.send(B.body):this.xhr.send();this.xhr.addEventListener("progress",SH(function(V){f.onProgress(V)}),!1)};
|
|
k2=function(A,L,B,f,K){if(k7(54,A.QN))return new Y9v(A,B);A=A.MQ();return f?RDe()?new ti(A,L,B,K):new Wd1(A,L,B,K):new vK8(A,B,K)};
|
|
TC=function(A,L){g.Y.call(this);var B=this;this.policy=A;this.Lr=L;this.W=0;this.N=null;this.E_=[];this.V=null;this.GV={PA:function(){return B.Lr}};
|
|
this.Lr.length===1||g.Q9(this.Lr,function(f){return!!f.range})};
|
|
l$=function(A,L,B){A.N&&(DF(A.N,L),L=A.N,A.N=null);for(var f=0,K=0,V=g.m(A.Lr),J=V.next();!J.done;J=V.next())if(J=J.value,J.range&&f+J.W<=A.W)f+=J.W;else{if(f3(J)&&!B&&A.W+L.totalLength-K<f+J.W){A.N=L.split(K).Mz;break}a:{var R=A;var Z=J,N=A.W-f,F=L.totalLength-K;Z.range&&(F=Math.min(Z.W-N,F));Z=X$7(Z,Z.N+N,F,Z.range?Z.N+N+F===Z.range.length:!!B);N=dZ(L,K,F);Z=new hL(Z,N);if(R.policy.useUmp&&R.E_.length&&(N=g.tL(R.E_[R.E_.length-1],Z))){R.E_[R.E_.length-1]=N;R=F;break a}R.E_.push(Z);R=F}A.W+=R;K+=
|
|
R;f+=J.W;if(K===L.totalLength)break}};
|
|
m4=function(A,L,B,f,K,V,J,R,Z){Z=Z===void 0?!1:Z;g.Y.call(this);this.xs=A;this.policy=L;this.Tq=B;this.wi=f;this.timing=K;this.logger=V;this.U=J;this.DA=R;this.T=Z;this.lastError=null;this.N=0;this.D=!1;this.V=0;this.W=new g.aa(this.oyD,this.policy.Ry,this)};
|
|
q9S=function(A){A.wi.yj=(0,g.bc)();A=Qa(A);A.W=(0,g.bc)();A.started+=1};
|
|
egS=function(A,L,B,f){A.timing.aT((0,g.bc)(),L,B);L=A.wi;L.V=0;L.D=0;L.X=0;YK(Qa(A));f&&(f=Qa(A),f.V+=1);if((f=A.DA)!=null&&(A=A.Tq.QN,!((0,g.bc)()<f.T+3E5||k7(53,A))&&(L=wy(19,A))&&PnS(L)&&f.W===CT(L))){var K;Kw(5,A)&&(K=wy(23,J1(21,A)));g.OS("yt-player-bandaid-host",{primary:L,secondary:K},864E3);f.T=(0,g.bc)();xje(f,{primary:L,secondary:K})}};
|
|
i$=function(A){if(A.lastError==="ump.spsrejectfailure")A.timing.Wn||hsD(A.wi,!1,A.Tq,A.policy,A.U);else{if(A.lastError==="net.timeout")A.timing.Lm((0,g.bc)());else{var L=A.timing;jb(L,(0,g.bc)(),L.D)}if(A.lastError==="net.nocontent")++A.wi.X;else{if((L=A.lastError==="net.timeout"||A.lastError==="net.connect"||A.lastError==="net.closed")&&!k7(48,A.Tq.QN)){var B=Qa(A);B.timedOut+=1}else B=Qa(A),B.N+=1;A.timing.Wn||hsD(A.wi,L,A.Tq,A.policy,A.U)}}A.xs.Y6(5)};
|
|
$2=function(A,L,B,f,K){return L>=400?(A.lastError="net.badstatus",!0):(K===void 0?0:K)?(A.lastError="ump.spsrejectfailure",!0):B||f!==void 0&&f?!1:(A.lastError=L===204?"net.nocontent":"net.connect",!0)};
|
|
XT=function(A,L){if(A.policy.XE)return!1;var B=L.getResponseHeader("content-type"),f=L.cN();A=!f||f<=A.policy.Z$;return(!L.v4()||!B||B.indexOf("text/plain")!==-1)&&A};
|
|
nKC=function(A,L){var B="";L=L.xK();L.totalLength<=A.policy.Z$&&(A=pz(L),A=G3(A),B=dy(A)?A:"");return B};
|
|
Qa=function(A){return Wq(A.U,wy(21,A.Tq.QN))};
|
|
zg7=function(A){var L=A.timing.Rg();L.shost=wy(17,A.Tq.QN);A.policy.O_&&A.policy.zK&&(L.csrc=1);return L};
|
|
ud6=function(A,L){return(A==null?void 0:A.maxWidth)>(L==null?void 0:L.maxWidth)||(A==null?void 0:A.maxHeight)>(L==null?void 0:L.maxHeight)};
|
|
ac0=function(A,L){for(var B=g.m(L.keys()),f=B.next();!f.done;f=B.next())if(f=L.get(f.value),f.length!==0){g.I8(f,function(R,Z){return Z.maxFramerate-R.maxFramerate});
|
|
for(var K=[f[0]],V=0,J=1;J<f.length;J++)ud6(f[J],K[V])&&(K.push(f[J]),V++);A=A.concat(K)}return A};
|
|
LrS=function(A,L){var B=[];L=g.m(L);for(var f=L.next();!f.done;f=L.next()){f=f.value;var K=AL0[f]||0;A.N&&K>A.N||B.push(f)}return B};
|
|
OV=function(A,L,B){var f=o6D[A]||[];B.J("html5_shorts_onesie_mismatched_fix")&&(f=BRC[A]||[]);L.push.apply(L,g.x7(f));B.J("html5_early_media_for_drm")&&L.push.apply(L,g.x7(fYk[A]||[]))};
|
|
Z31=function(A,L){var B=g.Gp(A),f=A.K(),K=f.D;f=f.J("html5_shorts_onesie_mismatched_fix");var V=A.zt();if(f){if(!K.N){if(V&&EV)return EV;if(cO)return cO}}else if(cO&&!K.N)return cO;var J=[],R=[],Z={},N=MI.concat(Kr8);f&&(N=MI.concat(VlE));A.J("html5_early_media_for_drm")&&(N=N.concat(JLD),A.J("allow_vp9_1080p_mq_enc")&&N.push(SI6));var F=[].concat(g.x7(Rc1));A.J("html5_iamf_audio_onesie_fmt")&&F.push(["773"]);N=g.m(N);for(var D=N.next();!D.done;D=N.next()){var I=!1;D=g.m(D.value);for(var d=D.next();!d.done;d=
|
|
D.next()){d=d.value;var w=jK(d,V&&f);if(w&&w.video&&!(Mb(w)&&!B.wT&&w.video.qualityOrdinal>B.Tb)){var r=g.Am(A.K().experiments,"html5_drm_byterate_soft_cap");r>0&&Fmv(w)&&w.lC>r||(I?(J.push(d),OV(d,J,A)):(w=qy(B,w,K),w===!0?(I=!0,J.push(d),OV(d,J,A)):Z[d]=w))}}}F=g.m(F);for(N=F.next();!N.done;N=F.next())for(N=g.m(N.value),I=N.next();!I.done;I=N.next())if(I=I.value,(D=S7e(I))&&D.audio&&(A.J("html5_onesie_51_audio")||!Ya(D)))if(D=qy(B,D,K),D===!0){R.push(I);OV(I,R,A);break}else Z[I]=D;if(!A.J("html5_enable_audio_quality_setting"))for(A=
|
|
g.m(["141","774"]),F=A.next();!F.done;F=A.next())F=F.value,R.includes(F)&&(g.Lx(R,F),Z[F]="blkhqa");B.N&&L("orfmts",Z);if(f)return K.N&&(K.N=!1,EV=cO=void 0),V?EV={video:J,audio:R}:cO={video:J,audio:R};cO={video:J,audio:R};K.N=!1;return cO};
|
|
g.DPS=function(A,L,B){var f=B.D,K=[],V=[],J=B.J("html5_shorts_onesie_mismatched_fix");A=A.zt();var R=MI.concat(Kr8);J&&(R=MI.concat(VlE));B.J("html5_early_media_for_drm")&&(R=R.concat(JLD),B.J("allow_vp9_1080p_mq_enc")&&R.push(SI6));var Z=[].concat(g.x7(Rc1));B.J("html5_iamf_audio_onesie_fmt")&&Z.push(["773"]);R=g.m(R);for(var N=R.next();!N.done;N=R.next()){N=g.m(N.value);for(var F=N.next();!F.done;F=N.next()){F=F.value;var D=jK(F,A&&J);if(D&&D.video){var I=g.Am(B.experiments,"html5_drm_byterate_soft_cap");
|
|
if(!(I>0&&Fmv(D)&&D.lC>I)&&qy(L,D,f)===!0){K.push({videoCodec:NRS[Qu[F]],maxWidth:D.video.width,maxHeight:D.video.height,maxFramerate:D.video.fps});break}}}}J=g.m(Z);for(A=J.next();!A.done;A=J.next())for(A=g.m(A.value),Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,(R=S7e(Z))&&R.audio&&(B.J("html5_onesie_51_audio")||!Ya(R))&&qy(L,R,f)===!0){V.push({audioCodec:FrQ[Qu[Z]],numChannels:R.audio.numChannels});break}return{videoFormatCapabilities:K,audioFormatCapabilities:V}};
|
|
wpS=function(A){var L,B={},f=A.Np,K=A.tF,V=A.Ml,J=f.getVideoData(),R=h2(0),Z=f.getVisibilityState();K.J("html5_enable_audio_quality_setting")&&(B.Ai=K.Ai);R&&(B.L4n=R,B.lastManualDirection=DR6(),R=H2y()||0,R>0&&(R=(K.J("html5_use_date_now_for_local_storage")?Date.now():(0,g.bc)())-R,K.J("html5_use_date_now_for_local_storage")?R>0&&(B.timeSinceLastManualFormatSelectionMs=R):B.timeSinceLastManualFormatSelectionMs=R));R=K.J("html5_use_streamer_bandwidth_for_low_latency_live")&&J.isLowLatencyLiveStream;
|
|
if(V.Wn&&!R){var N;R=K.J("html5_disable_bandwidth_cofactors_for_sabr_live")?!((N=A.Iy)==null||!N.w$):!1;B.Ro=ub(V,!R)}R=g.ka.medium;var F=Math.floor(R*16/9);(N=J.zt())||(J.N&&J.V&&J.V.videoInfos.length!==0?(N=J.V.videoInfos[0],N=!!N.video&&N.video.width<N.video.height):N=!1);var D=N;N=D?R:F;F=D?F:R;D=f.T4();R=D.width;D=D.height;B.O2=Math.max(R,N);B.ot=Math.max(D,F);K.J("html5_enable_client_viewport_size_logging")&&K.hw()&&(N=f.Ms(),f.Hn("cvw",{w:R,h:D,cvw:B.O2,cvh:B.ot,cvu:N.N}));B.visibility=Z;B.WF4=
|
|
rT();B.M6=f.G_()*1E3;Z=A.Np.M_();var I,d,w,r,h;B.hux={defaultPolicy:(Z==null?void 0:(L=Z.wU)==null?void 0:L.N)||0,smooth:(Z==null?void 0:(I=Z.uO)==null?void 0:I.N)||0,visibility:(Z==null?void 0:(d=Z.yH)==null?void 0:d.N)||0,nG:(Z==null?void 0:(w=Z.iU)==null?void 0:w.N)||0,performance:(Z==null?void 0:(r=Z.nP)==null?void 0:r.N)||0,speed:(Z==null?void 0:(h=Z.vX)==null?void 0:h.N)||0};var Q;B.eyj=(Z==null?void 0:(Q=Z.PX)==null?void 0:Q.N)||0;L=J.fetchType==="onesie"||J.B$?[{trackType:1,isHdr:!1},{trackType:2,
|
|
isHdr:!1},{trackType:2,isHdr:!0},{trackType:3,isHdr:!1},{trackType:3,isHdr:!0},{trackType:4,isHdr:!1},{trackType:4,isHdr:!0},{trackType:5,isHdr:!1},{trackType:5,isHdr:!0}]:[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},{trackType:2,isHdr:!0}];B.vt=A.authorizedFormats&&A.authorizedFormats.length>0?{authorizedFormats:A.authorizedFormats}:{authorizedFormats:L};A.sabrLicenseConstraint&&(B.vt.sabrLicenseConstraint=A.sabrLicenseConstraint);if(K.J("html5_onesie_media_capabilities")||mX(J))B.C$=3;K.J("html5_onesie_audio_only_playback")&&
|
|
y7(J)&&(B.C$=1);var l;((l=A.Iy)==null?0:l.WR)&&A.uD1&&(B.C$=B.C$===void 0?7:B.C$|4);l=J.cn?J.cn:g.Gp(J);K.J("html5_onesie_media_capabilities")&&(B.mediaCapabilities=g.DPS(J,l,K));var C;if((C=A.Iy)==null?0:Y2(C)){C=[];L=[];I=new Map;d=g.m(J.BR.N.values());for(w=d.next();!w.done;w=d.next())if(r=w.value,r.NF)L.push({audioCodec:FrQ[r.Bn],numChannels:r.numChannels,spatialCapabilityBitmask:dPL[r.Bn]});else{h=NRS[r.Bn];w={videoCodec:h,maxWidth:r.maxWidth||0,maxHeight:r.maxHeight||0,maxFramerate:r.maxFramerate||
|
|
0,is10BitSupported:r.uT||!1,maxBitrateBps:r.maxBitrateBps||0};if(r.Bn==="1"||r.Bn==="9")w.efficient=!0;r=h+"_"+r.uT;h=I.get(r)||[];h.push(w);I.set(r,h)}C=ac0(C,I);I={};J.J("html5_ssff_denylist_opus_low")&&(I={itagDenylist:[249,350]});B.mediaCapabilities={videoFormatCapabilities:C,audioFormatCapabilities:L,hdrModeBitmask:3,perPlaybackAttributes:I}}var O;if((O=A.Iy)==null?0:O.N){B.DZ=l.DZ;var v;B.Tb=(v=A.Iy)==null?void 0:v.Tb}K.Pk&&(B.UD=K.Pk);B.q1=A.ut;B.F6=A.F6;B.Un=A.Un;B.PL=A.PL;A.JH&&(B.HV1=(0,g.bc)()-
|
|
A.JH);A.Ay&&K.J("html5_report_prefetch_requests")&&(B.Ay=A.Ay);Km||(B.EPr=!0);O=nh(V)*1E3;O>0&&(B.Qp=O);var U;((U=A.Iy)==null?0:U.lR)&&A.Pa&&A.Pa<Infinity&&(B.Pa=A.Pa);f=f.getPlaybackRate();f!==1&&(B.playbackRate=f);var a;((a=A.Iy)==null?0:a.k6)&&A.O0&&(B.AI=A.AI,B.LS=A.LS,B.O0=A.O0);b6()===1&&(B.HY1=1);K.J("html5_sabr_force_proxima")&&(B.WH4=1);a=g.Am(K.experiments,"html5_sabr_force_max_network_interruption_duration_ms");B.Dl4=a>0?a:V.interruptions[0]||0;var o0;if((o0=A.Iy)==null?0:o0.jI)B.Cn=A.Cn;
|
|
K.cn&&(B.audioTrackId=K.cn);oh(J)&&!B.audioTrackId&&(K.J("html5_fill_default_mosaic_audio_track_id")||(A=C4D(J),B.audioTrackId=A),J==null||J.Hn("misstrkchg",{"default":B.audioTrackId}));if(A=fEv())B.detailedNetworkType=IY1[A]||IY1.other;!K.J("html5_enable_voice_boost")||J.zt()||J.isAd()||(B.uLs=K.rg);return B};
|
|
UV=function(A,L,B,f,K,V,J){var R={};L&&(R.K_=L);if(!A)return R;R.playbackCookie=B==null?void 0:B.playbackCookie;K&&(R.Ih=K);R.KL=[];R.pS=[];if(J==null?0:J.size)for(L=g.m(J.values()),B=L.next();!B.done;B=L.next())R.pS.push(B.value);if(A.sabrContextUpdates.size>0)for(L=g.m(A.sabrContextUpdates.values()),B=L.next();!B.done;B=L.next())ppv(R,B.value,f);iS(A)&&V&&ppv(R,V,f);f=A.K().N;R.clientInfo={clientName:yLS[f.c.toUpperCase()]||0};f.cbrand&&(R.clientInfo.deviceMake=f.cbrand);f.cmodel&&(R.clientInfo.deviceModel=
|
|
f.cmodel);f.cver&&(R.clientInfo.clientVersion=f.cver);f.cos&&(R.clientInfo.osName=f.cos);f.cosver&&(R.clientInfo.osVersion=f.cosver);f=A.K();f.J("html5_sabr_enable_server_xtag_selection")&&f.nD&&(R.clientInfo.hl=f.nD);A.xC&&(R.xC=A.xC);return R};
|
|
ppv=function(A,L,B){var f=L.type||0;(B==null?0:B.has(f))?A.pS.push(L):A.KL.push(f)};
|
|
KT=function(A,L,B,f,K,V){var J=V===void 0?{}:V;var R=J.dJ===void 0?[]:J.dJ;var Z=J.b4===void 0?!1:J.b4;var N=J.zo===void 0?0:J.zo;var F=J.poToken===void 0?"":J.poToken;var D=J.DA===void 0?void 0:J.DA;var I=J.tG===void 0?"":J.tG;var d=J.XH===void 0?0:J.XH;var w=J.Sg===void 0?new Uint8Array(0):J.Sg;var r=J.Op===void 0?!1:J.Op;V=J.hj===void 0?0:J.hj;J=J.K_===void 0?void 0:J.K_;b$.call(this,L,K);var h=this;this.policy=A;this.logger=new g.sI("dash/request");this.Gv=this.zy=0;this.JJ=!1;this.Od=this.Jj=
|
|
null;this.aI=!1;this.Sg=this.XH=null;this.kV=this.hn=!1;this.tL=null;this.hj=this.cZ=0;this.EK=!1;this.GV={Y6:function(l){h.Y6(l)},
|
|
gAp:function(){return h.I0},
|
|
tTx:function(l){h.I0=l},
|
|
bns:function(l){h.zy=l},
|
|
mhx:function(l){h.RA.lastError=l},
|
|
HM:function(){return h.xhr}};
|
|
this.timing=new GC(this,B);this.b4=Z;this.XH=d;this.Sg=w;this.Tq=g.DY(this.info,this.policy,f);this.Tq.set("rn",this.zb().toString());this.Tq.set("rbuf",(N*1E3).toFixed().toString());this.b4&&this.Tq.set("smb","1");this.policy.iD&&F&&this.Tq.set("pot",F);I&&this.Tq.set("bbs",I);this.policy.useUmp&&!k7(49,this.Tq.QN)&&(this.S5=new hi(this),this.Tq.set("ump","1"),this.Tq.set("srfvp","1"));if(A=this.policy.h8?this.policy.B1&&!isNaN(this.info.FH)&&this.info.FH>this.policy.uZ?!1:!0:!1)L=null,this.policy.oP&&
|
|
this.policy.In?L=[1]:r&&(L=[]),L!=null&&(this.policy.Kb&&L.push(2),this.Tq.set("defsel",L.join(",")));this.RA=new m4(this,this.policy,this.Tq,this.info.wi,this.timing,this.logger,f,D);this.dJ=R||null;this.QZ=jp1(this);q9S(this.RA);f=void 0;if(this.policy.ngD||this.S5||this.policy.Ys)f={method:"POST"},R=(0,g.WO)([120,0]),D={},this.policy.A9&&J&&(J=UV(void 0,J),D.mZ=J),this.policy.ke&&this.Sg&&(D.videoPlaybackUstreamerConfig=this.Sg),this.policy.Ys&&(J=this.info.U)&&Object.assign(D,J),Object.keys(D).length>
|
|
0?f.body=g.qA(D,g.HV):f.body=R;if(this.XH&&this.Sg){this.Tq.set("iwts","1");f={method:"POST"};J={PL:this.XH*1E3};var Q;R=(Q=this.info.U)==null?void 0:Q.xX;Q=g.qA({No:J,xX:R||void 0,videoPlaybackUstreamerConfig:this.Sg},g.HV);f.body=Q}try{this.xhr=k2(this.Tq,this.policy.G,this.timing,A,f),this.RA.W.start(),V&&(this.y_=new g.aa(this.VM,V,this),this.y_.start(V+(this.timing.Ml.G.pw()||0)*1E3)),this.policy.QW&&gM(this.timing,this.MQ()),g.lX(function(){})}catch(l){g6E(this,l,!0)}};
|
|
jp1=function(A){if(!(FV(A.info)&&A.info.xm()&&A.policy.Po&&A.dJ)||A.info.wi.V>=2||h2()>0||!pRw())return!1;var L=A.Tq.get("aitags");if(!L)return!1;L=qw(L).split(",");for(var B=[],f=g.m(A.dJ),K=f.next();!K.done;K=f.next())K=K.value,g.zK(L,K)&&B.push(K);if(!B.length)return!1;A.Tq.set("altitags",g.v5(B.join(",")));return!0};
|
|
g6E=function(A,L,B){B=B===void 0?!1:B;g.mL(L);A.RA.lastError="player.exception";A.errorMessage=L.name+"_"+L.message;B?g.lX(function(){i$(A.RA)}):i$(A.RA)};
|
|
GW8=function(A,L){A.timing.Wn=!0;A.xhr.v4()&&A.timing.Ja();if(A.policy.nD){var B;(B=A.y_)==null||B.stop()}l$(A.I0,L,!1)};
|
|
rLD=function(A){A.cZ&&(A.xhr.status=A.cZ,A.zy=A.cZ)};
|
|
vO=function(A,L){ya.call(this,A,L);this.S4=!0;this.Vj=!1;this.Ex=this.Ys=0;this.Cr=NaN};
|
|
spE=function(A,L,B){var f=A.qz?Math.max(L,B/A.qz):L,K=A.Ml.W.V;K&&(f=L,A.qz&&(f=Math.max(L,B/A.qz*K)));rM(A.Ml,L,B,f)};
|
|
qI=function(A,L){this.xs=L;this.W={};this.logger=new g.sI(A)};
|
|
PO=function(A){qI.call(this,"sabr",A);this.xs=A;this.N=[]};
|
|
H30=function(A,L,B){switch(L){case 35:A.xE(B);break;case 44:A.x0(B);break;case 43:A.hZ(B);break;case 53:A.z7(B);break;case 56:A.hK();break;case 57:A.UQ(B);break;case 42:A.Vg(B);break;case 45:A.eJ(B);break;case 59:A.Cy(B);break;case 51:A.QO(B);break;case 49:A.aF(B);break;case 50:A.z5(B);break;case 47:A.us(B);break;case 58:A.mG(B);break;case 61:A.xs.By.LP((0,g.bc)());break;case 66:A.Yh(B);break;case 46:A.En(B);break;case 67:A.onSnackbarMessage(B);break;case 71:OX(B,Vmw)}};
|
|
x2=function(A){g.Y.call(this);this.U=A;this.logger=new g.sI("onesie");this.EE=new Map;this.W=this.N=!1;this.Iy=this.gT=null;this.V=!1};
|
|
hc8=function(A,L,B){A.EE.get(L).onProgress=B};
|
|
zC=function(A,L){A.EE.has(L)&&(eb?A.EE.get(L).f9.clear():A.EE.get(L).E_=new FK,nT(A,L),A.W=!0)};
|
|
b3Q=function(A){for(var L=g.m(A.EE),B=L.next();!B.done;B=L.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;f.PC||zC(A,B)}};
|
|
tlS=function(A,L){L=A.EE.get(L);if(!L)return 0;A=0;if(L.Lr.length>0){L=g.m(L.Lr);for(var B=L.next();!B.done;B=L.next()){var f=void 0;A+=((f=B.value.range)==null?void 0:f.length)||0}return A}if(L.Zs.length>0)for(B=g.m(L.Zs),f=B.next();!f.done;f=B.next())A+=f.value.a6||0;return A+L.qd};
|
|
u$=function(A,L){if(eb){var B=0;A=A.EE.get(L);if(A==null||!A.f9)return 0;A=g.m(A.f9.values());for(L=A.next();!L.done;L=A.next())B+=L.value.data.totalLength;return B}return((B=A.EE.get(L))==null?void 0:B.E_.totalLength)||0};
|
|
a5=function(A,L){A=A.EE.get(L);if(eb){if(A==null||!A.PC)return!1;L=A.f9.size>0;return A.KZ.length>0||L}return!(A==null||!A.PC)&&!(A==null||!A.E_.totalLength)};
|
|
kWS=function(A,L){var B=A.EE.get(L),f=tlS(A,L),K=!f&&!!B.bytesReceived;if(eb){var V;if((V=A.gT)==null?0:V.iC){A=g.m(B.f9.values());for(L=A.next();!L.done;L=A.next())if(!L.value.YN)return!1;return K}}else if(V=A.JT(L),K&&A.N&&V!==void 0)return V;return(K||B.bytesReceived===f)&&B.eY+u$(A,L)===B.bytesReceived};
|
|
TRw=function(A,L,B,f){B.Lr.push.apply(B.Lr,g.x7(f));if(eb){B.H0.has(L)||B.H0.set(L,[]);var K;(K=B.H0.get(L)).push.apply(K,g.x7(f))}else if(B.I0)for(A=g.m(f),L=A.next();!L.done;L=A.next())B.I0.Lr.push(L.value);else{B.I0=new TC(A.Iy,[].concat(g.x7(B.Lr)));var V;((V=A.Iy)==null?0:V.XT)&&g.W(A,B.I0)}};
|
|
lYk=function(A,L,B){var f,K=(f=A.gT)==null?void 0:f.V.get(L);if(!K)return[];if(B.qE){var V;return((V=K.bv(0,B.clipId))==null?void 0:V.Lr)||[]}if(K.BB()){var J=B.startMs,R=B.durationMs;f=1E3;var Z;if(((Z=A.Iy)==null?0:Z.N)&&B.timeRange){var N;J=(N=B.timeRange.startTicks)!=null?N:-1;var F;R=(F=B.timeRange.Ew)!=null?F:-1;var D;f=(D=B.timeRange.timescale)!=null?D:-1}if(B.Uo<0||B.td<0||R<0||J<0||B.a6<0||f<0)return zC(A,L),[];A=L3(B.Uo,B.a6);L=B.dG||0;return[new Bp(3,K,A,"makeSliceInfosMediaBytes",B.td-
|
|
1,J/f,R/f,L,A.length-L,void 0,B.Gb,B.clipId)]}if(B.td<0)return zC(A,L),[];var I;return((I=A.gT)==null?0:I.iC)?(L=K.oC,Z=L*K.info.lC,N=B.dG,((J=A.Iy)==null?0:J.N)&&A.U.GU()!=="ONESIE"&&B.timeRange&&!N&&(R=B.timeRange.startTicks/B.timeRange.timescale),[new Bp(3,K,void 0,"makeSliceInfosMediaBytes",B.td,R,L,N,Z,!0,B.Gb,B.clipId)]):[]};
|
|
mP7=function(A,L,B){A.gT=L;A.Iy=B;L=g.m(A.EE);for(B=L.next();!B.done;B=L.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;for(var K=g.m(f.GN),V=K.next();!V.done;V=K.next()){V=V.value;var J=lYk(A,B,V);TRw(A,V.TB,f,J)}}};
|
|
A4=function(A,L,B,f){(A=A.EE.get(B))&&!A.vV&&(eb?(A.f9.has(L)||A.f9.set(L,{data:new FK,m_:0,YN:!1}),DF(A.f9.get(L).data,f)):DF(A.E_,f),A.bytesReceived+=f.totalLength,A.mN=!0)};
|
|
nT=function(A,L){if((L=A.EE.get(L))&&!L.vV){L.vV=!0;if(L.onProgress)L.onProgress();a:{L=g.m(A.EE.values());for(var B=L.next();!B.done;B=L.next())if(!B.value.vV){L=!1;break a}L=!0}L&&A.U.Ei()}};
|
|
QpE=function(A){eb=A};
|
|
L5=function(A,L,B,f,K,V,J){g.Y.call(this);this.policy=A;this.info=L;this.gT=B;this.xs=K;this.logger=new g.sI("sabr");this.S5=new hi(this);this.Qk=new PO(this);this.K8=new x2(this);this.state=1;this.DX=!1;this.gE=0;this.clipId="";this.tO=-1;this.qO=0;this.vH=-1;this.aq=this.Xh=this.EK=this.kO=!1;this.policy.jy?this.By=new vO(this,V):this.By=new GC(this,V);this.Tq=this.policy.jI?L.Tc:C7Q(L,this.policy,f);this.Tq.set("rn",""+this.zb());this.Tq.set("alr","yes");mP7(this.K8,B,A);this.RA=new m4(this,this.policy,
|
|
this.Tq,L.wi,this.By,this.logger,f,J,this.policy.enableServerDrivenRequestCancellation);q9S(this.RA);var R;if((R=this.policy)==null?0:R.XT)g.W(this,this.K8),g.W(this,this.RA);A=L.W;L={method:"POST",body:A};A&&(this.qO=A.length);try{this.xhr=k2(this.Tq,this.policy.G,this.By,Km,L),this.policy.QW&&gM(this.By,this.MQ()),this.RA.W.start()}catch(Z){g.CE(Z)}};
|
|
i36=function(A){A.policy.wJ&&A.M3&&!A.Xh?A.Xh=!0:A.By.Ja()};
|
|
$Py=function(A,L){var B=-1,f=-1,K=-1,V;if((V=A.Y8)==null?0:V.items)for(A=g.m(A.Y8.items),V=A.next();!V.done;V=A.next())V=V.value,L<V.CR||V.CR<B||(B=V.CR,f=V.pm,K=V.minReadaheadMs);return{BTr:B,pm:f,xI:K}};
|
|
Xpk=function(A){return A.KE()&&!A.aq};
|
|
O3Q=function(A){this.N=A;this.yj=this.Ys=this.X=this.JF=this.U=this.D=this.Wn=this.T=this.wT=this.G=this.S4=this.Vj=this.ZM=this.qp=0;this.ticks={}};
|
|
oN=function(A){A.qp||(A.qp=(0,g.bc)(),g.i1("mb_s",A.qp,A.N))};
|
|
E61=function(A){A.ZM||(A.ZM=(0,g.bc)(),g.i1("ovfs_rp",A.ZM,A.N))};
|
|
cLC=function(A){A.Vj||(A.Vj=(0,g.bc)(),g.i1("oafs_rp",A.Vj,A.N))};
|
|
Mlk=function(A,L,B){var f=L instanceof L5&&!A.V&&!A.W,K=!A.V&&(B==null?void 0:B.info.video);B=!A.W&&(B==null?void 0:B.info.audio);L.state===3?((K||f)&&A.tick("vrr"),(B||f)&&A.tick("arr")):L.state===4?K?(A.V=L.MQ(),g.ol(),fs(4)):B&&(A.W=L.MQ()):L instanceof KT&&L.nZ()&&K&&(g.ol(),fs(4))};
|
|
Bj=function(A,L,B,f,K,V){g.SN.call(this);var J=this;this.loader=A;this.gT=L;this.policy=B;this.videoTrack=f;this.audioTrack=K;this.yj=this.N=null;this.D=this.T=NaN;this.X=0;this.G=NaN;this.TV=null;this.Vj=this.qp=NaN;this.ZM=new Map;this.Wn=this.V=this.U=NaN;this.GV={AqM:function(){return J.W}};
|
|
this.W=V?1:0};
|
|
UP6=function(A,L,B,f){f=f===void 0?!0:f;if(B&&!A.ZM.has(L.XD)){for(var K=L.startTime,V=[],J=0;J<B.N.length;J++){var R=B.N[J],Z=K;K=Z+B.W[J];V.push({startTime:Z,endTime:K,adCpn:R})}A.ZM.set(L.XD,V)}if(A.policy.Pk)if(K=A.yj&&L.XD===A.yj.XD+1,A.yj=L,V=A.N&&L.XD===A.N.XD+1,V=A.N&&K&&V&&A.N.U9.event!=="stop"&&A.N.U9.event!=="predictStart",J=L.U9||null,R=A.videoTrack.b1.index.uq(),R=L.XD>=R,Z=A.gT.isManifestless,J){var N;if(((N=A.N)==null?void 0:N.U9.event)==="predictStart"&&A.N.XD<L.XD&&J.event==="stop"){var F;
|
|
A.loader.handleError("ssdai.missingstartcueevent",{lastpredict:((F=A.N)==null?void 0:F.XD)||0,csq:L.XD},0)}A.N={U9:J,XD:L.XD,UK:!!B,WV:f};R?f5(A,J,L.XD):Z&&(K?V?f5(A,J,L.XD):J.event==="continue"||J.event==="stop"?YIS(A,L):f5(A,J,L.XD):f5(A,J,L.XD))}else V&&YIS(A,L),A.W===4&&K5(A,5,"qend")};
|
|
f5=function(A,L,B){L.startSecs+=isNaN(A.X)?0:A.X;A=A.gT;A.ZM.push(L);A.publish("cuepointsadded",B)};
|
|
v6v=function(A,L,B){if(A.W!==0&&B&&L.Lr[0].WV()){var f=L.Lr[0].XD,K=L.Lr[0].U;L=L.isDecorated();Wrk(A,f,K,L,B)}};
|
|
Wrk=function(A,L,B,f,K){var V;L!==((V=A.N)==null?void 0:V.XD)||A.W===1||f||A.N.U9.event==="predictStart"||A.Hn("sdai",{undecevt:1,sq:L,mt:B,evt:A.N.U9.event},!0);L>A.D&&(A.D=NaN,A.T=NaN);if(A.N&&A.N.XD===L){if(f=A.N,!A.policy.T||!A.policy.W)if(K&&f){var J=f.U9;V=K.IG(J);J.event==="predictStart"&&(A.Wn=L);A.Hn("sdai",{onqevt:J.event,sq:L,mt:B,gab:V,cst:J.startSecs,cueid:A.policy.Ts&&(V||J.event==="start")?J.identifier:void 0},!0);if(V)if(J.event!=="predictStart")J.event==="start"&&A.Wn===L-1&&A.Hn("sdai",
|
|
{gabonstart:L}),f.UK?K5(A,4,"cue"):(A.D=L,A.T=B,A.Hn("sdai",{joinad:A.W,sg:A.D,st:A.T.toFixed(3)}),A.G=Date.now(),K5(A,2,A.W===3?"staftpred":"join"),qID(K,f.U9));else{var R=P7D(A);L+=Math.max(Math.ceil(-J.N/R),1);J=Math.floor(B-J.N/1E3);A.policy.W?A.V=J:A.U=L;A.Hn("sdai",{onpred:B,estsq:L,estmt:J.toFixed(3)});Vi(A.loader,J,J,L,R);A.G=Date.now();K5(A,3,"predict");qID(K,f.U9)}else A.W===1?((R=A.TV)==null?0:R.fX?0:J4(R,B))?(Vi(A.loader,B,B,L),K5(A,4,"sk2head")):K5(A,5,"nogab"):J.event==="predictStart"&&
|
|
(A.policy.W&&A.V>0?(B=Math.floor(B-J.N/1E3),A.V!==B&&A.Hn("sdai",{updateSt:B,old:A.V}),A.V=B):A.U>0&&(B=L+Math.max(Math.ceil(-J.N/P7D(A)),1),A.U!==B&&(A.Hn("sdai",{updateSt:B,old:A.U}),A.U=B)))}else A.Hn("sdai",{nulldec:1,sq:L,mt:B.toFixed(3),evt:(f==null?void 0:(J=f.U9)==null?void 0:J.event)||"none"})}else A.W===1&&K5(A,5,"noad")};
|
|
ece=function(A,L,B){if(A.W===1||A.W===2)return!1;if(A.W!==0&&L===A.audioTrack){if(A.policy.W)return xP7(A.videoTrack,B)||xP7(A.videoTrack,B+1);A=Sj(A.videoTrack);if(B>(A?A.XD:-1))return!1}return!0};
|
|
RN=function(A,L,B){return(B<0||B===A.D)&&!isNaN(A.T)?A.T:L};
|
|
P7D=function(A){switch(A.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}};
|
|
YIS=function(A,L){if(A.N){var B=A.N.U9.Dj-(L.startTime+A.X-A.N.U9.startSecs);B<=0||(B=new Zc(A.N.U9.startSecs-(isNaN(A.X)?0:A.X),B,A.N.U9.context,A.N.U9.identifier,"stop",A.N.U9.N+L.duration*1E3),A.Hn("cuepointdiscontinuity",{segNum:L.XD}),f5(A,B,L.XD))}};
|
|
K5=function(A,L,B){A.W!==L&&(A.Hn("sdai",{setsst:L,old:A.W,r:B}),A.W=L)};
|
|
ZU=function(A,L,B,f){(f===void 0?0:f)?K5(A,1,"seek"):L>0&&Math.abs(L-B)>=5&&A.W===4&&K5(A,5,"sk2t")};
|
|
n6k=function(A,L,B,f){var K=this;this.U=A;this.Hn=L;this.G=B;this.N=f;this.D="";this.W=new Set;this.X=-1;this.V=0;this.T=!1;this.GV={KLn:function(){return K.W}}};
|
|
zcQ=function(A,L){for(var B="",f=[],K=g.m(A.N.entries()),V=K.next();!V.done;V=K.next()){var J=g.m(V.value);V=J.next().value;J=J.next().value;var R=void 0,Z=void 0,N=void 0;((R=J)==null?void 0:R.startTimeSecs)<=L&&L<=((Z=J)==null?void 0:Z.startTimeSecs)+((N=J)==null?void 0:N.Dj)&&f.push(V);Z=R=void 0;B+=V+":"+((R=J)==null?void 0:R.startTimeSecs.toFixed(3))+":"+((Z=J)==null?void 0:Z.Dj.toFixed(3))+";"}f.length===0&&A.Hn("clsdai",{no_cid:1,mt:L.toFixed(3),adConfigMap:B.substring(0,1024)});return f};
|
|
uVy=function(A){if(!A)return"unknown";switch(A){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}};
|
|
aYL=function(A){switch(A){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}};
|
|
NL=function(A,L,B){this.audio=A;this.video=L;this.reason=B};
|
|
F0=function(A,L,B){this.N=A;this.reason=L;this.token=B;this.videoId=void 0};
|
|
DU=function(A,L,B){g.Y.call(this);this.policy=A;this.U=L;this.Hn=B;this.V=new Map;this.D=0;this.T=!1;this.N="";this.W=!1};
|
|
dP=function(A,L,B){if(B===void 0?0:B)A.T=!0;++A.D;B=6E4*Math.pow(2,A.D);B=(0,g.bc)()+B;A.V.set(L.info.id,B)};
|
|
IN=function(A){for(var L=g.m(A.V.entries()),B=L.next();!B.done;B=L.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;f<(0,g.bc)()&&A.V.delete(B)}return A.V};
|
|
A7L=function(A){return A.T&&IN(A).size>0};
|
|
wP=function(A,L){A.N!==L&&(A.N=L,A.W=!0)};
|
|
LHy=function(A,L){var B;L&&(B=g.Pw(A.U.N,function(K){return K.id===L}));
|
|
if(!B&&(B=g.Pw(A.U.N,function(K){var V;return!((V=K.ri)==null||!V.isDefault)}),L)){var f;
|
|
A.Hn("iaf",{id:L,sid:(f=B)==null?void 0:f.id})}return B};
|
|
p5=function(A){this.N=this.W=0;this.alpha=Math.exp(Math.log(.5)/A)};
|
|
jj=function(A,L,B,f,K,V){var J=this;V=V===void 0?[]:V;this.loader=A;this.Vj=L;this.policy=B;this.gT=f;this.T=K;this.Ox=V;this.logger=new g.sI("dash/abr");this.N=fr;this.V=this.X=null;this.yj=-1;this.S4=!1;this.nextVideo=this.W=null;this.U=[];this.Ex=new Set;this.JF={};this.cn=new p5(1);this.G=0;this.Cr=this.qp=this.Wn=!1;this.ZM=0;this.sx=!1;this.wT=new Set;this.Ys=!1;this.GV={R2:function(){yi(J)}};
|
|
this.D=new DU(this.policy,K,function(R,Z){J.loader.Hn(R,Z)})};
|
|
Vx8=function(A,L,B){gP(A,L);L=LHy(A.D,B);B||L||(L=oiL(A));L=L||A.T.N[0];A.W=A.gT.N[L.id];yi(A);A.X=A.W;Bev(A);fAw(A);A.V=A.nextVideo;A.X=A.W;return KHv(A)};
|
|
SRw=function(A,L){if(J7C(A,L))return null;if(L.reason==="m"&&L.isLocked())return gP(A,L),A.G=A.U.length-1,yi(A),GE(A),A.qp=A.qp||A.V!==A.nextVideo,A.V=A.nextVideo,new NL(A.W,A.V,L.reason);L.reason==="r"&&(A.yj=-1);gP(A,L);GE(A);if(L.reason==="r"&&A.nextVideo===A.V)return new NL(A.W,A.nextVideo,L.reason);A.V&&A.nextVideo&&rP(A,A.V.info)<rP(A,A.nextVideo.info)&&(L=A.N.reason,A.Wn=A.Wn||L==="r"||L==="u"||L==="v");return null};
|
|
RGE=function(A,L){if(L.info.video){if(A.V!==L)return A.V=L,KHv(A)}else A.Cr=A.X!==L,A.X=L;return null};
|
|
ZMe=function(A,L){if(L.b1.info.video&&L.V){var B=(L.N+L.W)/L.duration,f=L.b1.info.lC;B&&f&&(A.cn.eg(1,B/f),A.policy.V&&B/f>1.5&&A.loader.Hn("overshoot",{sq:L.XD,br:B,max:f}))}};
|
|
sL=function(A,L,B){dP(A.D,L,B===void 0?!1:B);A.yj=-1;gP(A,A.N)};
|
|
Ne7=function(A,L){return new NL(A.X,A.V,L||A.N.reason)};
|
|
KHv=function(A){A.S4?A.S4=!1:A.yj=(0,g.bc)();A.Wn=!1;A.Ys=!1;return new NL(A.X,A.V,A.N.reason)};
|
|
FHD=function(A,L){var B={};L=g.m(L);for(var f=L.next();!f.done;f=L.next())if((f=f.value)&&f.video){var K=f.video.qualityOrdinal,V=B[K],J=V&&Mb(V)&&V.video.qualityOrdinal>A.policy.Tb,R=K<=A.policy.Tb?Mb(f):iQ(f);if(!V||J||R)B[K]=f}return B};
|
|
gP=function(A,L){A.N=L;var B=A.T.videoInfos;if(!A.N.isLocked()){var f=(0,g.bc)();B=g.Mi(B,function(J){if(J.lC>this.policy.lC)return!1;var R=this.gT.N[J.id];return IN(this.D).get(J.id)>f||R.wi.V>4||R.T>4?!1:this.wT.has(+J.itag)?!1:!0},A);
|
|
A7L(A.D)&&(B=g.Mi(B,function(J){return J.video.width<=854&&J.video.height<=480}))}B.length||(B=A.T.videoInfos);
|
|
var K=B;A.policy.tI&&(K=DMy(A,K,L));K=g.Mi(K,L.U,L);if(A.N.isLocked()&&A.D.N){var V=g.Pw(B,function(J){return J.id===A.D.N});
|
|
V?K=[V]:wP(A.D,"")}A.policy.tI||(K=DMy(A,K,L));K.length||(K=[B[0]]);K.sort(function(J,R){return rP(A,J)-rP(A,R)});
|
|
L={};for(B=1;B<K.length;L={B6:void 0,nI:void 0},B++)L.nI=K[B-1],L.B6=K[B],L.nI.video.width>L.B6.video.width?(g.uB(K,B),B--):rP(A,L.nI)*A.policy.yj>rP(A,L.B6)&&(g.uB(K,B-1),B--);L=K[K.length-1];A.sx=!!A.V&&!!A.V.info&&A.V.info.Bn!==L.Bn;A.U=K;A.Ex.clear();B=!1;for(V=0;V<K.length;V++)B?A.Ex.add(K[V].itag):K[V].video.qualityOrdinal>=1080&&(B=!0);dMw(A.policy,L,A.gT.iC)};
|
|
DMy=function(A,L,B){var f=B.reason==="m"||B.reason==="s";A.policy.r0&&Hj&&g.yw&&(!f||B.N<1080)&&(L=L.filter(function(N){return N.video&&(!N.W||N.W.powerEfficient)}));
|
|
if(L.length>0)if(Se()){var K=FHD(A,L);L=L.filter(function(N){return!!N&&!!N.video&&N.Bn===K[N.video.qualityOrdinal].Bn})}else{var V,J,R=(V=L[0])==null?void 0:(J=V.video)==null?void 0:J.qualityOrdinal;
|
|
if(R){B=L.filter(function(N){return!!N&&!!N.video&&N.video.qualityOrdinal===R});
|
|
var Z=FHD(A,B)[R].Bn;L=L.filter(function(N){return!!N&&!!N.video&&N.Bn===Z})}}return L};
|
|
IAk=function(A,L){for(var B=0;B+1<A.U.length&&A.U[B].video.quality==="tiny";)B++;var f=Ai(A.Vj)/A.policy.yj;return rP(A,L.info)+rP(A,A.U[B])>f};
|
|
yi=function(A){if(!A.W||!A.policy.U&&!A.W.info.ri){var L=A.T.N;A.W&&(L=L.filter(function(f){return f.audio.N===A.W.info.audio.N}),L.length||(L=A.T.N));
|
|
A.W=A.gT.N[L[0].id];if(L.length>1&&!A.policy.ZM){if(!A.policy.hq){var B=g.Pw(L,function(f){return f.audio.audioQuality!=="AUDIO_QUALITY_HIGH"});
|
|
B&&(A.W=A.gT.N[B.id])}B=!1;if(B=A.policy.GZ?!0:A.N.isLocked()?A.N.N<240:IAk(A,A.W))A.W=A.gT.N[g.vw(L).id]}}};
|
|
GE=function(A){if(!A.nextVideo||!A.policy.U)if(A.N.isLocked())A.nextVideo=A.N.N<=360?A.gT.N[A.U[0].id]:A.gT.N[g.vw(A.U).id];else{for(var L=Math.min(A.G,A.U.length-1),B=Ai(A.Vj),f=rP(A,A.W.info),K=B/A.policy.qp-f;L>0&&!(rP(A,A.U[L])<=K);L--);for(B=B/A.policy.yj-f;L<A.U.length-1&&!(rP(A,A.U[L+1])>=B);L++);A.nextVideo=A.gT.N[A.U[L].id];A.G=L}};
|
|
Bev=function(A){var L=A.policy.qp,B=Ai(A.Vj)/L-rP(A,A.W.info);L=g.xW(A.U,function(f){return rP(this,f)<B},A);
|
|
L<0&&(L=0);A.G=L;A.nextVideo=A.gT.N[A.U[L].id]};
|
|
fAw=function(A){if(A.Ox.length){var L=A.Ox,B=function(f,K){if(f.info.Bn==="f"||L.includes(un(f,A.gT.iC)))return f;for(var V={},J=0;J<K.length;V={aH:void 0,DP:void 0},J++){var R=A.gT.N[K[J].id];if(L.includes(un(R,A.gT.iC))){var Z=f.info.Bn,N=R.info.Bn;if(Z===N||Se()){Z=J=void 0;K=f.info.video?f.info.N!==R.info.N:f.info.audio.N!==R.info.audio.N||((Z=f.info.ri)==null?void 0:Z.id)!==((J=R.info.ri)==null?void 0:J.id);if(K)return A.loader.Hn("ombifa",{mismatch:"xtag",f:f.info.id,t:R.info.id}),f;V.aH=f.info.itag;
|
|
V.DP=R.info.itag;A.loader.Hn("ombifa",{f:V.aH,t:V.DP});A.S4=!0;return R}A.loader.Hn("ombifa",{mismatch:"efficient",fc:Z,tc:N})}}A.loader.Hn("ombifa",{mismatch:"unselectable",fmts:L.join(".")});return f};
|
|
A.nextVideo=B(A.nextVideo,A.T.videoInfos);A.W=B(A.W,A.T.N)}};
|
|
rP=function(A,L){if(!A.JF[L.id]){var B=A.gT.N[L.id].index.qe(A.ZM,15);B=L.xS&&A.V&&A.V.index.isLoaded()?B||L.xS:B||L.lC;A.JF[L.id]=B}B=A.JF[L.id];A.Ex.has(L.itag)&&(B*=1.5);return B*=Math.max(1,A.cn.pw()||0)};
|
|
wLE=function(A,L){A=Jf8(A.gT.N,function(B){return B.info.itag===L});
|
|
if(!A)throw Error("Itag "+L+" from server not known.");return A};
|
|
pLe=function(A){var L=[];if(A.N.reason==="m"||A.N.reason==="s")return L;if(kvQ(A.gT)){for(var B=Math.max(0,A.G-2);B<A.G&&B<A.U.length;B++)L.push(A.U[B].itag);L.reverse()}return L};
|
|
J7C=function(A,L){var B;return A.N.equals(L)&&(!A.D.N||!A.N.isLocked()||((B=A.nextVideo)==null?void 0:B.info.id)===A.D.N)};
|
|
oiL=function(A){var L=g.Pw(A.T.N,function(f){return f.audio.N}),B=g.Pw(A.T.N,function(f){return!f.audio.N});
|
|
return L?A.policy.fb?L:B:null};
|
|
bP=function(A){g.Y.call(this);this.S$=A;this.N=null;this.W=h4;this.S$("ismp_i")};
|
|
y71=function(A,L){A.S$("ismp_p");A.W=L};
|
|
t4=function(A,L){(L===void 0||L)&&jjL(A);A.N=null};
|
|
jjL=function(A){A.N&&(A.N.dispose(),A.S$("ismp_d"))};
|
|
giw=function(A){var L=A===void 0?{}:A;A=L.D5===void 0?!1:L.D5;var B=L.In===void 0?!1:L.In;L=L.h8===void 0?!1:L.h8;return A?L?3:2:B?-1:1};
|
|
kU=function(A){this.track=A;this.buffered=[];this.V=this.U=0;this.T={};this.D=0;this.N=new I5};
|
|
TE=function(A,L,B){var f=[],K=A.track.uC;if(K){K=K.Hk();for(var V=0;V<K.length;V++)f.push(Math.round(K.start(V)*1E3)),f.push(Math.round(K.end(V)*1E3))}K=1;V=f.length;if(V===A.buffered.length){for(var J=0;J<=V&&f[J]===A.buffered[J];J++);J>V?K=0:f[J]>A.buffered[J]&&(J===V-1?K=2:J===V-2&&f[J+1]>A.buffered[J+1]&&(K=3))}A.N.add(L<<3|(B&&4)|K);L=Math.ceil(A.track.G_()*1E3);A.N.add(L-A.D);A.D=L;if(K===1)for(A.N.add(V),J=L=0;J<V;J++)A.N.add(f[J]-L),L=f[J];K===3&&A.N.add(f[V-2]-A.buffered[V-2]);K>=2&&A.N.add(f[V-
|
|
1]-A.buffered[V-1]);B&&A.N.add(B);A.buffered=f};
|
|
lP=function(A,L,B){var f=this;this.policy=A;this.N=L;this.ZM=B;this.U=this.W=0;this.vk=null;this.Wn=new Set;this.yj=[];this.indexRange=this.initRange=null;this.G=new yV;this.qp=this.Vj=!1;this.GV={Jqn:function(){return f.V},
|
|
efF:function(){return f.chunkSize},
|
|
zfF:function(){return f.X},
|
|
nrr:function(){return f.T}};
|
|
(L=GMw(this))?(this.chunkSize=L.csz,this.V=Math.floor(L.clen/L.csz),this.X=L.ck,this.T=L.civ):(this.chunkSize=A.n2,this.V=0,this.X=g.y0(16),this.T=g.y0(16));this.D=new Uint8Array(this.chunkSize);this.X&&this.T&&(this.crypto=new Mz1(this.X,this.T))};
|
|
GMw=function(A){if(A.policy.mC&&A.policy.zs)for(var L=g.m(A.policy.mC),B=L.next(),f={};!B.done;f={RJ:void 0,uS:void 0},B=L.next())if(B=g.RM(B.value),f.RJ=+B.clen,f.uS=+B.csz,f.RJ>0&&f.uS>0&&A.policy.U===B.docid&&A.N.info.id===B.fmtid&&A.N.info.lastModified===+B.lmt)return A={},A.clen=f.RJ,A.csz=f.uS,A.ck=B.ck,A.civ=B.civ,A};
|
|
mx=function(A){return!!A.vk&&A.vk.Ad()};
|
|
HMw=function(A,L){if(!mx(A)&&!A.TL()){if(!(A.Vj||(A.Vj=!0,A.V>0))){var B=Qi(A);B=eK(A.policy.U,A.N.info,C5(A),B,A.policy.Ox);iP(A,B)}if(L.info.type===1){if(A.vk){$U(A,Error("Woffle: Expect INIT slices to always start us off"));return}A.initRange=L3(0,L.W.totalLength)}else if(L.info.type===2)A.vk&&A.vk.type===1||$U(A,Error("Woffle: Index before init")),A.indexRange=L3(A.initRange.end+1,L.W.totalLength);else if(L.info.type===3){if(!A.vk){$U(A,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
|
|
return}if(A.vk.type===3&&!Vs(A.vk,L.info)&&(A.yj=[],L.info.XD!==JL(A.vk)||L.info.N!==0))return;if(L.info.V){B=g.m(A.yj);for(var f=B.next();!f.done;f=B.next())r7k(A,f.value);A.yj=[]}else{A.yj.push(L);A.vk=L.info;return}}else{$U(A,Error("Woffle: Unexpected slice type"));return}A.vk=L.info;r7k(A,L);sjv(A)}};
|
|
r7k=function(A,L){var B=0,f=pz(L.W);if(A.U<A.V){B=A.V*A.chunkSize;var K,V=(((K=L.info.range)==null?void 0:K.start)||0)+L.info.N;B-=V;if(B>=f.length)return;if(B<0)throw Error("Missing data");A.U=A.V;A.W=0}for(K={};B<f.length;K={YV:void 0})if(K.YV=Math.min(f.length-B,A.D.byteLength-A.W),V=new Uint8Array(f.buffer,f.byteOffset+B,K.YV),A.D.set(V,A.W),A.W+=K.YV,B+=K.YV,A.W===A.D.length){if(L.info===A.vk&&mx(A)&&B===f.length)break;K=Qi(A);K=eK(A.policy.U,A.N.info,C5(A),K,A.policy.Ox,A.U,A.D,A.crypto);A.Wn.add(K);
|
|
iP(A,K);A.TL()||(K=Qi(A),A.ZM(C5(A),K!==void 0?(K.downloadedEndTime||0)*K.averageByteRate:K.maxKnownEndTime*K.averageByteRate,K.maxKnownEndTime*K.averageByteRate));A.D=new Uint8Array(A.chunkSize);A.W=0;A.U+=1}};
|
|
sjv=function(A){if(mx(A))if(A.vk&&A.indexRange)if(A.W){var L=new Uint8Array(A.D.buffer,0,A.W),B=hGD(A),f=A.policy.U;Promise.all(A.Wn).then(function(){var K=eK(f,A.vk.b1.info,C5(A,!0),B,A.policy.Ox,A.U,L,A.crypto);iP(A,K,!0)})}else $U(A,new X0("Woffle: Expect always re-mark currentChunkOffset at EOS"));
|
|
else $U(A,new X0("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
|
|
Qi=function(A){return{downloadedEndTime:Math.round(A.vk?A.vk.D:0),maxKnownEndTime:Math.round(A.N.index.ag()),averageByteRate:Math.round(A.N.info.xS)}};
|
|
hGD=function(A){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(A.N.index.ag()),averageByteRate:Math.round(A.N.info.xS)}};
|
|
C5=function(A,L){L===void 0||!L||A.indexRange&&A.initRange&&A.vk||$U(A,new X0("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));L={lmt:A.N.info.lastModified,docid:A.policy.U,fmtid:A.N.info.id,type:A.N.info.mimeType.split(";")[0],csz:A.chunkSize,clen:A.U*A.chunkSize+A.W};A.crypto&&(L.ck=A.X,L.civ=A.T);var B="local://localhost/videoplayback?"+J_(L),f,K;L={itag:+A.N.info.itag,mimeType:A.N.info.mimeType,bitrate:A.N.info.lC*8,lastModified:String(A.N.info.lastModified),initRange:(f=
|
|
A.initRange)==null?void 0:bUE(f),indexRange:(K=A.indexRange)==null?void 0:bUE(K),url:B};if(f=A.N.info.N)L.xtags=f;if(f=A.N.info.video)if(L.quality=f.quality,L.qualityLabel=f.qualityLabel,L.width=f.width,L.height=f.height,f=f.fps)L.fps=f;if(A=A.N.info.audio){if(f=A.sampleRate)L.audioSampleRate=String(f);if(A=A.numChannels)L.audioChannels=A}return L};
|
|
iP=function(A,L,B){B=B===void 0?!1:B;L.then(function(f){A.Wn.delete(L);(B||f===4)&&A.G.resolve(f)},function(f){A.G.reject(f)})};
|
|
$U=function(A,L){g.vN(A.policy.U)!==4&&(g.qg(A.policy.U,4),g.CE(L),A.G.reject(new X0(L.message)))};
|
|
X0=function(A,L){A=Error.call(this,A);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.N=L===void 0?!1:L};
|
|
bMy=function(A){A=g.s9(A,1886614376);for(var L=g.m(A),B=L.next();!B.done;B=L.next());return g.mn(A,function(f){return zD6(f)})};
|
|
txe=function(A){var L=Cv(A,function(K,V){return K+V.length},0);
|
|
L=new Uint8Array(L);var B=0;A=g.m(A);for(var f=A.next();!f.done;f=A.next())f=f.value,L.set(f,B),B+=f.length;return L};
|
|
kMQ=function(A,L,B,f,K,V){this.ids=A;this.N=L;this.W=B;this.U=f;this.V=K;this.Lx=V};
|
|
OL=function(A,L,B){this.initData=A;this.contentType=L;this.isPrefetch=B;this.N=this.cryptoPeriodIndex=NaN;this.V=[];this.qU=!1;this.W=null;if((L==null?void 0:L.toLowerCase())==="webm"||A.length===16)this.qU=!0};
|
|
lAw=function(A){a:{var L=A.initData;try{for(var B=0,f=new DataView(L.buffer);B<f.byteLength-8;){var K=f.getUint32(B);if(K<=1)break;if(f.getUint32(B+4)===1886614376){var V=32;if(f.getUint8(B+8)>0){var J=f.getUint32(B+28);V+=J*16+4}var R=f.getUint32(B+V-4);try{var Z=Te8(L.subarray(B+V,B+V+R));if(Z!==null){var N=Z;break a}}catch(F){}}B+=K}N=null;break a}catch(F){N=null;break a}N=void 0}if(N!=null)for(L=$3(j7(N,7,void 0,As)),L==null||A.qU||(A.cryptoPeriodIndex=L),L=$3(j7(N,10,void 0,As)),L!=null&&L>0&&
|
|
!A.qU&&(A.N=L),N=lq(N,2,zh1,void 0===A8E?2:4),N=g.m(N),f=N.next();!f.done;f=N.next())L=A.V,B=L.push,f=uI(f.value),f=g.Y$(f,4),B.call(L,f)};
|
|
mM1=function(A){return isNaN(A.cryptoPeriodIndex)?g.Y$(A.initData):""+A.cryptoPeriodIndex};
|
|
EL=function(A,L,B){var f=B===void 0?{}:B;B=f.videoDuration===void 0?0:f.videoDuration;var K=f.Hl===void 0?void 0:f.Hl;f=f.Hp===void 0?!1:f.Hp;this.videoId=A;this.status=L;this.videoDuration=B;this.Hl=K;this.Hp=f};
|
|
Qj6=function(A,L,B,f,K){this.videoId=A;this.UF=L;this.W=B;this.bytesDownloaded=f;this.N=K};
|
|
cj=function(A){this.N=A;this.offset=0};
|
|
ML=function(A){if(A.offset>=A.N.totalLength)throw Error();return jU(A.N,A.offset++)};
|
|
C9L=function(A,L){L=L===void 0?!1:L;var B=ML(A);if(B===1){L=-1;for(B=0;B<7;B++){var f=ML(A);L===-1&&f!==255&&(L=0);L>-1&&(L=L*256+f)}return L}f=128;for(var K=0;K<6&&f>B;K++)B=B*256+ML(A),f*=128;return L?B:B-f};
|
|
iML=function(A){try{var L=C9L(A,!0),B=C9L(A,!1);return{id:L,size:B}}catch(f){return{id:-1,size:-1}}};
|
|
$M8=function(A){for(var L=new cj(A),B=-1,f=0,K=0;!f||!K;){var V=iML(L),J=V.id;V=V.size;if(J<0)return;if(J===176){if(V!==2)return;f=L.vB()}else if(J===186){if(V!==2)return;K=L.vB()}J===374648427?B=L.vB()+V:J!==408125543&&J!==174&&J!==224&&L.skip(V)}L=yD(A,0,B);B=new DataView(L.buffer);B.setUint16(f,3840);B.setUint16(K,2160);f=new FK([L]);DF(f,A);return f};
|
|
XLv=function(A,L,B){var f=this;this.loader=A;this.policy=L;this.b1=B;this.logger=new g.sI("dash");this.W=[];this.N=null;this.qp=-1;this.G=0;this.ZM=NaN;this.yj=0;this.V=NaN;this.X=this.JF=0;this.Cr=-1;this.wT=this.U=this.D=this.Vj=null;this.sx=this.Ex=NaN;this.T=this.Wn=this.Ys=this.cn=null;this.Ox=!1;this.S4=this.timestampOffset=0;this.GV={w5:function(){return f.W}};
|
|
if(this.policy.U){var K=this.b1,V=this.policy.U;this.policy.Ox&&A.Hn("atv",{ap:this.policy.Ox});this.T=new lP(this.policy,K,function(J,R,Z){A.Np.FG(new EL(f.policy.U,2,{Hl:new Qj6(V,J,K.info,R,Z)}))});
|
|
this.T.G.promise.then(function(J){f.T=null;J===1?A.Np.FG(new EL(f.policy.U,J)):f.loader.Hn("offlineerr",{status:J.toString()})},function(J){var R=(J.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
|
|
J instanceof X0&&!J.N?(f.loader.Hn("offlinenwerr",{em:R}),YU(f),A.Np.FG(new EL(f.policy.U,4))):(f.loader.Hn("dldbwerr",{em:R}),YU(f),A.Np.FG(new EL(f.policy.U,4,{Hp:!0})))})}};
|
|
OMe=function(A){return A.W.length?A.W[0]:null};
|
|
Ei6=function(A,L){return A.W.some(function(B){return B.info.XD===L})};
|
|
WHv=function(A,L,B,f){f=f===void 0?0:f;if(A.U){var K=A.U.N+A.U.W;if(B.info.N>0)if(B.info.XD===A.U.XD&&B.info.N<K){if(B.info.N+B.info.W<=K)return;B=JTL(B,K-B.info.N)[1]}else if(B.info.XD>=0&&A.U.XD>=0&&!Vs(A.U,B.info))throw new g.iL("improper_continuation",A.U.Dx(),B.info.Dx());lTe(A.U,B.info)||UL(A,"d")}else if(B.info.N>0)throw new g.iL("continuation_of_null",B.info.Dx());A.U=B.info;A.b1=B.info.b1;if(B.info.N===0){if(A.N)if(!A.loader.isOffline()||A.policy.e8)A.loader.Hn("slice_not_fully_processed",
|
|
{buffered:A.N.info.Dx(),push:B.info.Dx()});else throw new g.iL("slice_not_fully_processed",A.N.info.Dx(),B.info.Dx());Wj(A);A.JF=f}else{if(A.JF&&f&&A.JF!==f)throw A=new g.iL("lmt_mismatch",B.info.XD,A.JF,f),A.level="WARNING",A;!B.info.b1.BB()&&A.D&&(f=B.info,K=A.D.tO,f.T="updateWithEmsg",f.XD=K)}if(A.N){f=g.tL(A.N,B);if(!f)throw new g.iL("failed_to_merge",A.N.info.Dx(),B.info.Dx());A.N=f}else A.N=B;a:{B=g.U2(A.N.info.b1.info);if(A.N.info.type!==3){if(!A.N.info.V)break a;A.N.info.type===6?c7y(A,L,
|
|
A.N):Mxv(A,A.N);A.N=null}for(;A.N;){f=A.N.W.totalLength;if(A.qp<=0&&A.G===0){var V=A.N.W,J=-1;K=-1;if(B){for(var R=0;R+8<V.totalLength;){var Z=H4w(V,R),N=H4w(V,R+4);R+=Z||1;if(N===1836019558)J=R;else if(N===1835295092){K=R;break}}K<0&&(J=-1)}else{V=new cj(V);for(Z=R=!1;;){N=V.vB();var F=iML(V),D=F.id;F=F.size;if(!(D>0))break;if(D!==408125543)if(D===524531317)R=!0,F>=0&&(K=V.vB()+F,Z=!0);else{if(R&&(D===160||D===163)&&(J<0&&(J=N),Z))break;D===163&&(J=Math.max(0,J),K=V.vB()+F);if(D===160){J<0&&(K=J=
|
|
V.vB()+F);break}V.skip(F)}}J<0&&(K=-1)}if(J<0)break;A.qp=J;A.G=K-J}if(A.qp>f)break;A.qp?(f=YRD(A,A.qp),f.D&&UMD(A,f),c7y(A,L,f),vj(A,f),A.qp=0):A.G&&(f=YRD(A,A.G<0?Infinity:A.G),A.G-=f.W.totalLength,vj(A,f))}}A.N&&A.N.info.V&&(vj(A,A.N),A.N=null)};
|
|
Mxv=function(A,L){!L.info.b1.BB()&&L.info.N===0&&(g.U2(L.info.b1.info)||L.info.b1.info.qU())&&Dbe(L);if(L.info.type===1)try{UMD(A,L),viy(A,L)}catch(K){g.mL(K);var B=Sl(L.info);B.hms="1";A.loader.handleError("fmt.unparseable",B||{},1)}B=L.info.b1;B.tE(L);A.T&&HMw(A.T,L);if(B.w1()&&A.policy.N)a:{A=A.loader.gT;L=L.info.clipId;B=g.vV(B.info,A.iC);if(L){var f=nq({itag:B.itag,lmt:A.iC?0:B.lmt||0,xtags:B.xtags});if(A.sx[f])break a;A.sx[f]=L}A.Cr.push(B)}};
|
|
Hqk=function(A,L,B){if(A.W.length!==0&&(B||A.W.some(function(V){return V.info.U<L}))){B=0;
|
|
for(var f=g.m(A.W),K=f.next();!K.done;K=f.next()){K=K.value;if(K.info.U<L)break;A.loader.Hn("cmat",{max:L,s:K.info.Dx()});B+=1}A.W.splice(0,B)}};
|
|
YU=function(A){var L;(L=A.T)==null||L.dispose();A.T=null};
|
|
qRy=function(A){var L=A.W.reduce(function(B,f){return B+f.W.totalLength},0);
|
|
A.N&&(L+=A.N.W.totalLength);return L};
|
|
YRD=function(A,L){var B=A.N;L=Math.min(L,B.W.totalLength);if(L===B.W.totalLength)return A.N=null,B;B=JTL(B,L);A.N=B[1];return B[0]};
|
|
UMD=function(A,L){var B=g.b7(L);if($a(L.info.b1.info)&&L.info.b1.info.video.primaries==="bt2020"){var f=new Hq(B);bn(f,[408125543,374648427,174,224,21936,21937])&&(f=f.start+f.pos,B.getUint8(f)===129&&B.getUint8(f+1)===1&&B.setUint8(f+1,9))}f=L.info.b1.info;iQ(f)&&!$a(f)&&(f=g.b7(L),(new Hq(f)).qE(),ln([408125543,374648427,174,224],21936,f));L.info.b1.info.WV()&&(f=L.info.b1,f.info&&f.info.video&&f.info.video.projectionType==="MESH"&&!f.W&&(g.U2(f.info)?f.W=SbS(B):f.info.qU()&&(f.W=ITw(B))));L.info.b1.info.qU()&&
|
|
L.info.WV()&&(B=g.b7(L),(new Hq(B)).qE(),ln([408125543,374648427,174,224],30320,B)&&ln([408125543,374648427,174,224],21432,B));if(A.policy.S1&&L.info.b1.info.qU()){B=g.b7(L);var K=new Hq(B);if(bn(K,[408125543,374648427,174,29637])){f=T5(K,!0);K=K.start+K.pos;for(var V=0;V<f-1;V++)B.setUint8(K+V,0);B.setUint8(K+f-1,1)}}if(A.NF()&&g.U2(L.info.b1.info)){f=g.b7(L);B=g.dD(f,0,1701606260);V=g.dD(f,0,1836476516);if(B&&V){B.skip(2);var J=fq(B),R=Vj(B);f=[];K=[];var Z=[],N=[];if(J)for(J=0;J<R;++J)f.push(JI(B)),
|
|
K.push(JI(B)),Z.push(fq(B)),N.push(fq(B));else for(J=0;J<R;++J)f.push(Kq(B)),K.push(Kq(B)),Z.push(fq(B)),N.push(fq(B));B=g.Is(V);B=new KDS(K[0]/B,f[0]/B)}else B=null;if(B){if(g.U2(L.info.b1.info))for(f=g.b7(L),K=g.dD(f,0,1701082227);K;)V=K,V.type=1936419184,V.data.setUint32(V.offset+4,1936419184),K=g.dD(f,K.offset+K.size,1701082227);A.Ox=!0;L.info.b1.U=B}}L.info.b1.BB()||L.info.b1.N||L.info.b1.indexRange||mr(L)};
|
|
c7y=function(A,L,B){if(B.info.b1.BB()){if(A.Ox&&P9E(B)&&(L=g.b7(B),L=g.dD(L,0,1953658222))){L.skip(1);var f=Bq(L)<<16|fq(L),K=f&1,V=f&4;if(f&256){var J=f&512,R=f&1024;f&=2048;var Z=Vj(L);Z<2||(K&&L.skip(4),V&&L.skip(4),K=Vj(L),L.skip((Z-1)*(4+(J?4:0)+(R?4:0)+(f?4:0))-4),L.data.setUint32(L.offset+L.N,K))}}if(L=A.Vj&&!!A.Vj.b1.U)if(L=B.info.WV())L=NND(B),J=A.Vj,qL?(R=1/L,L=Pj(A,L)>=Pj(J)+R):L=A.getDuration()>=J.getDuration(),L=!L;L&&P9E(B)&&(L=A.Vj,qL?(R=NND(B),J=1/R,R=Pj(A,R),L=Pj(L)+J-R):L=L.getDuration()-
|
|
A.getDuration(),L=1+L/B.info.duration,JE8(g.b7(B),L))}else{J=!1;A.D||(Dbe(B),B.N&&(A.D=B.N,J=!0,K=B.info,V=B.N.tO,K.T="updateWithEmsg",K.XD=V,K=B.N,K.Ad&&(V=A.b1.index,V.W=!K.Ad,V.V="emsg"),K=B.info.b1.info,V=g.b7(B),g.U2(K)?rD(V,1701671783):K.qU()&&ln([408125543],307544935,V)));a:if((K=l7(B,A.policy.t$))&&FP6(B))R=xME(A,B),A.X+=R,K-=R,A.yj+=K,A.V=A.policy.jb?A.V+K:NaN;else{if(A.policy.wF){if(V=Z=A.loader.OU(g.k6(B),1),A.V>=0&&B.info.type!==6){if(A.policy.jb&&isNaN(A.Ex)){g.CE(new g.iL("Missing duration while processing previous chunk",
|
|
B.info.Dx()));A.loader.isOffline()&&!A.policy.e8||eGL(A,B,V);UL(A,"m");break a}f=Z-A.V;var N=f-A.X,F=B.info.XD,D=A.wT?A.wT.XD:-1,I=A.sx,d=A.Ex,w=A.policy.U$&&f>A.policy.U$,r=Math.abs(N)>10,h=Math.abs(A.V-V)<1E-7;if(Math.abs(N)>1E-4){A.S4+=1;var Q=(R=A.D)==null?void 0:omQ(R);R={audio:""+ +A.NF(),sq:F.toFixed(),sliceStart:Z,lastSq:D.toFixed(),lastSliceStart:I,lastSliceDuration:d,totalDrift:(f*1E3).toFixed(),segDrift:(N*1E3).toFixed(),skipRewrite:""+ +(w||r)};if(Q==null?0:Q.length)R.adCpn=Q[0];A.loader.handleError("qoe.avsync",
|
|
R);A.Cr=F}w||r||h||(V=A.V);R=xME(A,B,Z);K-=R;A.X=f+R}}else V=isNaN(A.V)?B.info.startTime:A.V;eGL(A,B,V)&&(A.yj+=K,A.V=V+K,A.policy.F0&&A.S4>=A.policy.F0&&(A.S4=0,A.loader.J8({resetForRewrites:"count"})))}A.wT=B.info;A.Ex=TW(B);B.V>=0&&(A.sx=B.V);if(J&&A.D){J=niw(A,!0);Rp(B.info,J);A.N&&Rp(A.N.info,J);L=g.m(L);for(R=L.next();!R.done;R=L.next())R=R.value,K=void 0,A.policy.D&&R.XD!==((K=A.D)==null?void 0:K.tO)||Rp(R,J);(B.info.V||A.N&&A.N.info.V)&&B.info.type!==6||(A.Wn=J,A.policy.W?(L=zG6(A.D),A.loader.ww(A.b1,
|
|
J,L)):(L=A.loader,L.gT.isManifestless&&u5w(L,J,null,!!A.b1.info.video)),A.policy.Pk||aAD(A))}}viy(A,B);A.timestampOffset&&Rov(B,A.timestampOffset)};
|
|
vj=function(A,L){if(L.info.V){A.cn=L.info;if(A.D){var B=A.D,f=niw(A,!1);B=zG6(B);A.loader.ww(A.b1,f,B);A.Wn||A.policy.Pk||aAD(A);A.Wn=null}Wj(A)}A.T&&HMw(A.T,L);if(f=A.vL())if(f=g.tL(f,L,A.policy.yd,A.policy.a8)){A.W.pop();A.W.push(f);return}A.W.push(L)};
|
|
zG6=function(A){if(A.UK()){var L=A.data["Stitched-Video-Id"]?A.data["Stitched-Video-Id"].split(",").slice(0,-1):[],B=omQ(A),f=[];if(A.data["Stitched-Video-Duration-Us"])for(var K=g.m(A.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),V=K.next();!V.done;V=K.next())f.push((Number(V.value)||0)/1E6);K=[];if(A.data["Stitched-Video-Start-Frame-Index"]){V=g.m(A.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var J=V.next();!J.done;J=V.next())K.push(Number(J.value)||0)}K=[];
|
|
if(A.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(V=g.m(A.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),J=V.next();!J.done;J=V.next())K.push((Number(J.value)||0)/1E6);A=new kMQ(L,B,f,K,g.BjE(A),g.fTw(A))}else A=null;return A};
|
|
Wj=function(A){A.N=null;A.qp=-1;A.G=0;A.D=null;A.ZM=NaN;A.yj=0;A.Wn=null};
|
|
UL=function(A,L){L={rst4disc:L,cd:A.X.toFixed(3),sq:A.wT?A.wT.XD:-1};A.V=NaN;A.X=0;A.Cr=-1;A.wT=null;A.sx=NaN;A.Ex=NaN;A.Ys=null;A.loader.Hn("mdstm",L)};
|
|
viy=function(A,L){if(A.isDrm()){if(L.info.b1.info.qU()){var B=new Hq(g.b7(L));if(bn(B,[408125543,374648427,174,28032,25152,20533,18402])){var f=T5(B,!0);B=f!==16?null:$K(B,f)}else B=null;f="webm"}else L.info.G=bMy(g.b7(L)),B=txe(L.info.G),f="cenc";B&&B.length&&(B=new OL(B,f),A.policy.J0&&g.U2(L.info.b1.info)&&(f=DSC(g.b7(L)))&&(B.W=f),B.qU=L.info.b1.info.qU(),L.N&&L.N.cryptoPeriodIndex&&(B.cryptoPeriodIndex=L.N.cryptoPeriodIndex),L.N&&L.N.W&&(B.N=L.N.W),A.loader.kD(B))}};
|
|
aAD=function(A){var L=A.D,B=AEC(L);B&&(B.startSecs+=A.ZM,A.loader.RB(A.b1,B,L.tO,L.UK()))};
|
|
niw=function(A,L){var B,f=A.D;if(B=AEC(f))B.startSecs+=A.ZM;var K=A.ZM,V=0;A.b1 instanceof dR&&(V=A.b1.oC);return new AI(f.tO,K,L?V:A.yj,f.ingestionTime,"sq/"+f.tO,void 0,void 0,L,B)};
|
|
eGL=function(A,L,B){if(!S28(L,B))return L=Sl(L.info),L.smst="1",A.loader.handleError("fmt.unparseable",L||{},1),!1;isNaN(A.ZM)&&(A.ZM=B);return!0};
|
|
xME=function(A,L,B){var f=0;if(L.info.b1.info.qU()&&!FP6(L))return 0;if(A.Vj&&!A.NF()){var K=0;B&&g.U2(L.info.b1.info)?K=B-A.V:L.info.b1.info.qU()&&(K=A.X);var V=L.info.XD;B=l7(L,A.policy.t$);var J=A.Vj;var R=J.Cr;J=J.X;var Z=Math.abs(J-K)>.02;if((V===R||V>R&&V>A.Cr)&&Z){f=Math.max(.95,Math.min(1.05,(B-(J-K))/B));if(g.U2(L.info.b1.info))JE8(g.b7(L),f);else if(L.info.b1.info.qU()&&(V=K-J,!g.U2(L.info.b1.info)&&(L.info.b1.info.qU(),f=new Hq(g.b7(L)),R=L.D?f:new Hq(new DataView(L.info.b1.N.buffer)),
|
|
l7(L,!0)))){var N=V*1E3,F=O9(R);R=f.pos;f.pos=0;if(f.N.getUint8(f.pos)===160||E9(f))if(kK(f,160))if(T5(f,!0),kK(f,155)){if(V=f.pos,Z=T5(f,!0),f.pos=V,N=N*1E9/F,F=md(f),N=F+Math.max(-F*.7,Math.min(F,N)),N=Math.sign(N)*Math.floor(Math.abs(N)),!(Math.ceil(Math.log(N)/Math.log(2)/8)>Z)){f.pos=V+1;for(V=Z-1;V>=0;V--)f.N.setUint8(f.pos+V,N&255),N>>>=8;f.pos=R}}else f.pos=R;else f.pos=R;else f.pos=R}f=l7(L,A.policy.t$);f=B-f}f&&L.info.b1.info.qU()&&A.loader.Hn("webmDurationAdjustment",{durationAdjustment:f,
|
|
videoDrift:K+f,audioDrift:J})}return f};
|
|
P9E=function(A){return A.info.b1.BB()&&A.info.XD===A.info.b1.index.uq()};
|
|
Pj=function(A,L){L=(L=L===void 0?0:L)?Math.round(A.timestampOffset*L)/L:A.timestampOffset;A.b1.U&&L&&(L+=A.b1.U.N);return L+A.getDuration()};
|
|
A$C=function(A,L){L<0||(A.W.forEach(function(B){Rov(B,L)}),A.timestampOffset=L)};
|
|
fT=function(A,L,B,f,K){b$.call(this,B,K);var V=this;this.policy=A;this.formatId=L;this.K8=f;this.lastError=null;this.onProgress=function(){V.TL()||(V.K8.EE.has(V.formatId)?(V.isComplete()||V.N.start(),a5(V.K8,V.formatId)&&V.z2(2),V.K8.vV(V.formatId)&&(kWS(V.K8,V.formatId)?V.Y6(4):(V.lastError="net.closed",V.Y6(5)))):(V.lastError="player.exception",V.Y6(5)))};
|
|
this.N=new g.aa(function(){V.isComplete()||(V.lastError="net.timeout",V.Y6(5))},1E3);
|
|
this.N.start();hc8(this.K8,this.formatId,this.onProgress);g.lX(this.onProgress)};
|
|
xU=function(A,L,B,f){g.Y.call(this);var K=this;this.loader=A;this.policy=L;this.b1=B;this.timing=f;this.logger=new g.sI("dash");this.W=[];this.Vj=[];this.N=this.uC=null;this.Ys=!1;this.JF=this.S4=0;this.D=-1;this.qp=!1;this.ZM=-1;this.wT=null;this.Wn=NaN;this.yj=[];this.GV={sF:function(){return K.V},
|
|
MMT:function(){return K.W},
|
|
CAL:function(){return K.X}};
|
|
this.V=new XLv(A,L,B);this.policy.N&&(this.X=new o5(this.V,this.loader.getManifest(),this.policy,function(V){K.policy.bA&&K.Hn("buftl",V)}));
|
|
this.policy.KY&&(this.G=new kU(this));this.lC=B.info.lC;this.T=this.policy.Vj?!1:B.HE();this.isManifestless=B.HE();this.U=this.T;g.W(this,this.wT)};
|
|
ej=function(A,L,B){B=B===void 0?!1:B;L&&qL&&A$C(A.V,L.Nk());if(!B){var f;(f=A.X)==null||gKw(f)}A.uC=L;(L=A.X)!=null&&(L.uC=A.uC)};
|
|
n5=function(A){var L=A.uC&&A.uC.A5();if(A.policy.nO){if((A=A.X)==null)A=void 0;else{var B;A=(B=A.V)==null?void 0:B.info}return A||null}return L};
|
|
L$7=function(A){for(var L={},B=0;B<A.Vj.length;B++)L["r"+B]=A.Vj[B];return L};
|
|
zE=function(A,L){isNaN(A.Wn)||A.Hn("aswr",{sq:L.info.Lr[0].XD,id:L.info.Lr[0].b1.info.itag,xtag:L.info.Lr[0].b1.info.N,ep:Date.now()-A.Wn});A.W.push(L);A.N=g.vw(L.info.Lr);A.Vj.push(L.Dx());A.Vj.length>4&&A.Vj.shift()};
|
|
ocE=function(A,L){if(L.HA()){var B=L.Ud();B=g.m(B);for(var f=B.next();!f.done;f=B.next())f=f.value,A.policy.V&&L instanceof fT&&A.Hn("omblss",{s:f.info.Dx()}),uP(A,L.info.Lr,f,L.Pr())}};
|
|
uP=function(A,L,B,f){f=f===void 0?0:f;isNaN(A.Wn)||(A.Hn("aswm",{sq:L[0].XD,id:L[0].b1.info.itag,xtag:L[0].b1.info.N,ep:Date.now()-A.Wn}),A.Wn=NaN);switch(B.info.type){case 1:case 2:Bdw(A,B);break;case 4:var K=B.info.b1,V=K.A6(B),J;((J=A.N)==null?0:J.type===4)&&OUk(B.info,A.N)&&(A.N=K.kW(A.N).pop());B=g.m(V);for(K=B.next();!K.done;K=B.next())uP(A,L,K.value,f);break;case 3:B.info.b1.info.video?(K=A.timing,K.wT||(K.wT=(0,g.bc)(),g.i1("fvb_r",K.wT,K.N))):(K=A.timing,K.T||(K.T=(0,g.bc)(),g.i1("fab_r",
|
|
K.T,K.N)));WHv(A.V,L,B,f);A.policy.N&&f_L(A);break;case 6:WHv(A.V,L,B,f),A.N=B.info}};
|
|
Bdw=function(A,L){if(L.info.type===1)if(L.info.b1.info.video){var B=A.timing;B.S4||(B.S4=(0,g.bc)(),g.i1("vis_r",B.S4,B.N))}else B=A.timing,B.G||(B.G=(0,g.bc)(),g.i1("ais_r",B.G,B.N));Mxv(A.V,L);A=A.loader;A.videoTrack.b1.w1()&&A.audioTrack.b1.w1()&&A.policy.N&&!A.gT.iC&&(L=A.audioTrack.getDuration(),B=A.videoTrack.getDuration(),Math.abs(L-B)>1&&A.Hn("trBug",{af:""+g.vV(A.audioTrack.b1.info,!1),vf:""+g.vV(A.videoTrack.b1.info,!1),a:""+L,v:""+B}))};
|
|
Db=function(A){return OMe(A.V)};
|
|
f_L=function(A){A.W.length?A.N=g.vw(g.vw(A.W).info.Lr):A.V.W.length?A.N=A.V.vL().info:A.N=n5(A)};
|
|
aN=function(A,L){var B={VK:[],lM:[]},f;if((A=A.X)==null)A=void 0;else{js6(A,A.VK,"og");wqL(A,L);js6(A,A.VK,"trim");var K=yIy(A);L=K.VK;K=K.yr;for(var V=[],J=0;J<K.length;J++){var R=K[J],Z=A.policy.cn&&R.V!==-1?R.V:R.info.startTime,N={startTicks:(Z+A.timestampOffset)*1E3,Ew:(A.policy.cn&&R.U!==-1?R.U:R.info.duration)*1E3,timescale:1E3},F=void 0,D=(F=A.uC)==null?void 0:F.Hk();F=void 0;if(A.policy.cC&&D&&D.length>0){var I=uQ(D,Z);I>=0&&(F=(D.end(I)-Z+.1)*1E3)}V.push({formatId:g.vV(R.info.b1.info,A.gT.iC),
|
|
Gb:R.info.Gb,sequenceNumber:R.info.XD+A.U,DE:N,eN:R.info.W,rU:F})}A={VK:L,lM:V}}return(f=A)!=null?f:B};
|
|
Ji=function(A,L,B){B=B===void 0?!1:B;if(A.uC){var f=A.uC.Hk(),K=AA(f,L),V=NaN,J=n5(A);J&&(V=AA(f,J.b1.index.getStartTime(J.XD)));if(K===V&&A.N&&A.N.W&&K$e(A6(A),0))return L}A=L6(A,L,B);return A>=0?A:NaN};
|
|
R5=function(A,L,B){A.b1.w1();var f=L6(A,L);if(f>=0)return f;var K;(K=A.X)==null||pqw(K,L,B);f=Math;K=f.min;var V=A.V;if(V.T)if(V=V.T,V.vk&&V.vk.type===3)V=V.vk.startTime;else if(V.V>0){var J=V.N.index;J=g.Fc(J.offsets.subarray(0,J.count),V.V*V.chunkSize);V=V.N.index.getStartTime(J>=0?J:Math.max(0,-J-2))}else V=0;else V=Infinity;L=K.call(f,L,V);A.N=A.policy.Vj?null:A.b1.tq(L).Lr[0];oP(A)&&(A.policy.Tm&&(B==null?void 0:B.seekSource)===60||A.uC&&A.uC.abort(),A.policy.oz&&(B=A.X)!=null&&(B.V=void 0));
|
|
A.JF=0;return A.N?A.N.startTime:L};
|
|
rIS=function(A){A.T=!0;A.U=!0;A.D=-1;R5(A,Infinity)};
|
|
Bl=function(A){for(var L=0,B=g.m(A.W),f=B.next();!f.done;f=B.next())L+=cEy(f.value.info);return L+=qRy(A.V)};
|
|
K6=function(A,L){L=L===void 0?!1:L;var B=A.loader.getCurrentTime(),f=A.V.vL(),K=(f==null?void 0:f.info.D)||0;if((f==null?0:f.info.b1.HE())&&!f.info.V)if(A.policy.M7)K=f.info.U;else if(A.policy.IV){var V=f.info;K=V.range?V.D:Math.min(V.startTime+Math.min(V.duration*V.N/V.b1.info.lC,V.duration)+(V.range?V.X:Math.min(V.duration,V.duration*V.W/V.b1.info.lC)),V.startTime+V.duration)}if(!A.uC){if((A.policy.N||A.policy.cI)&&L&&!isNaN(B)){if(f)return K-B;if(A.policy.cI&&A.b1.info.Bn==="f")return Infinity}return 0}if((V=
|
|
n5(A))&&f6(V))return V.D;var J=A.uC.Hk(!0);if(L&&f)return V=0,A.policy.N&&(V=Bi(J,K+.02)),V+K-B;L=Bi(J,B);A.policy.J9&&V&&(f=uQ(J,B),J=uQ(J,V.U-.02),f===J&&(B=V.D-B,A.policy.V&&B>L+.02&&A.Hn("abh",{bh:L,bhtls:B}),L=Math.max(L,B)));return L};
|
|
VKy=function(A){var L=n5(A);return L?L.D-A.loader.getCurrentTime():0};
|
|
V1=function(A,L,B,f){if(!A.b1.index.NE(L,!0))return!1;try{Va(A);for(var K=A.V,V=null,J=K.W.length-1;J>=0;J--){var R=K.W[J];R.info.XD>=L&&(K.W.pop(),K.V-=l7(R,K.policy.t$),V=R.info)}V&&(K.U=K.W.length>0?K.W[K.W.length-1].info:K.Ys,K.W.length!==0||K.U||UL(K,"r"));K.loader.Hn("mdstm",{rollbk:1,itag:V?V.b1.info.itag:"",popped:V?V.XD:-1,sq:L,lastslc:K.U?K.U.XD:-1,lastfraget:K.V.toFixed(3)});if(A.policy.N)return A.N=null,!0;f>B?R5(A,f):A.N=A.b1.D_(L-1,!1).Lr[0]}catch(Z){return L=JT(Z),L.details.reason=
|
|
"rollbkerr",A.loader.handleError(L.errorCode,L.details,L.severity),!1}return!0};
|
|
S2=function(A,L){var B;for(B=0;B<A.W.length&&L!==A.W[B];B++);if(B===A.W.length)J6(A,L);else{for(;B<A.W.length;)J6(A,A.W.pop());var f=Sj(A);f&&f.b1.g2()&&K9(L.info.Lr,function(K){return EmL(K,f)})?(A.N=f,A.policy.V&&A.Hn("cer",{lsr:"lsp",
|
|
lsp:f.Dx()})):(K3(L.info.Lr[0])?(A.N=L.I0&&L.I0.V?$S0(L.I0.V):iUw(L.info.Lr[0]),A.policy.V&&A.Hn("cer",{lsr:A.N.Dx(),lsp:f==null?void 0:f.Dx()})):(A.N=null,A.policy.V&&A.Hn("cer",{lsr:"null",lsp:f==null?void 0:f.Dx()})),A.loader.isOffline()&&!A.policy.e8||J6(A,L,!0))}};
|
|
f6=function(A){return A?A.Ad():!1};
|
|
oP=function(A){var L;!(L=A.b1.info.Bn==="f")&&(L=A.policy.U)&&(L=A.V,L=!!L.T&&mx(L.T));if(L)return!0;L=n5(A);if(!L)return!1;var B=f6(L)&&L.V;return A.isManifestless&&A.ZM>0?B||L.XD>=A.ZM:B};
|
|
RP=function(A){var L;return oP(A)||f6((L=A.V.vL())==null?void 0:L.info)};
|
|
A6=function(A){var L=[],B=n5(A);B&&L.push(B);L=g.Bk(L,A.V.PA());B=g.m(A.W);for(var f=B.next();!f.done;f=B.next()){f=f.value;for(var K=g.m(f.info.Lr),V=K.next(),J={};!V.done;J={rY:void 0},V=K.next())J.rY=V.value,f.T6&&(L=g.Mi(L,function(R){return function(Z){return!OUk(Z,R.rY)}}(J))),(K3(J.rY)||J.rY.type===4)&&L.push(J.rY)}A.N&&!kYe(A.N,g.vw(L),A.N.b1.BB())&&L.push(A.N);
|
|
return L};
|
|
K$e=function(A,L){if(!A.length)return!1;for(L+=1;L<A.length;L++)if(!Tj0(A[L-1],A[L]))return!1;return!0};
|
|
L6=function(A,L,B){B=B===void 0?!1:B;if(!A.N||!A.N.W)return NaN;A=A6(A);a:{L+=.02;var f=B;f=f===void 0?!1:f;for(var K=-1,V=0;V<A.length;++V){var J=A[V];if(J.U<=L)if(f)K=V;else if(J.startTime+J.duration>=L){L=V;break a}}L=K}return L<0?NaN:K$e(A,B?L:0)?A[L].startTime:NaN};
|
|
Zz=function(A){return!(!A.N||A.N.b1===A.b1)};
|
|
J$E=function(A,L,B){return A.policy.N?K6(A,!0)<B:(A=Sj(A))&&!f6(A)?A.D>L&&A.D<L+B:!1};
|
|
Sj=function(A){var L=A.V.vL();return L?L.info:n5(A)};
|
|
xP7=function(A,L){var B;return!((B=A.X)==null||!B.D.has(L))||Ei6(A.V,L)};
|
|
Va=function(A){for(var L=g.m(A.W),B=L.next();!B.done;B=L.next())J6(A,B.value);A.W=[];A.N=null};
|
|
Nq=function(A){var L;(L=A.X)==null||gKw(L);A.yj=[]};
|
|
J6=function(A,L,B){B=B===void 0?!1:B;L.T6&&((B===void 0?0:B)||!L.info.Lr[0].b1.g2())&&(A=A.V,A.Wn&&!A.policy.YS&&(B=A.loader,B.gT.isManifestless&&u7(B.gT,A.Wn.XD,!!A.b1.info.video)),A.Wn=null,A.D=null,A.U=A.cn,A.V=A.U?A.V-A.yj:NaN,Wj(A));L.dispose()};
|
|
SeS=function(A){return!!A.N&&A.N.XD!==-1&&A.N.XD<A.b1.index.OI()};
|
|
ROS=function(A){var L=A.N;L&&L.XD===-1&&(A=A.V.vL())&&K3(A.info)&&(A=A.info.XD,L.T="updateLastSliceRequested",L.XD=A)};
|
|
Zok=function(A){return K9(A.W,function(L){return L.QZ})};
|
|
Fn=function(A){var L;return!((L=Db(A))==null||!L.isLocked)};
|
|
Ndv=function(A,L){var B=Db(A);return B&&B.info.type!==6?!ece(L,A,B.info.XD):!1};
|
|
F$L=function(A){if((A=A.X)==null)A=void 0;else if(A.VK.length===0||A.policy.r$&&A.N<0)A=null;else{var L=A.VK[A.N]?A.VK[A.N].formatId:null;A=L?(A=A.gT.V.get(nq(L)))?A.info:null:null}return A||null};
|
|
Dg0=function(A,L){A=g.m(A.yj);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.tO===L)return B.Q4T?2:1;return 0};
|
|
dgD=function(){this.D5=!1};
|
|
I_D=function(A){var L=A===void 0?{}:A;A=L.hasSubfragmentedFmp4===void 0?!1:L.hasSubfragmentedFmp4;L=L.XI===void 0?!1:L.XI;var B=new dgD;B.D5=A||L;return B};
|
|
g.y$e=function(A){this.tF=A;this.G=new dgD;this.hS=this.AS=!1;this.wp=2;this.Ex=20971520;this.Nl=8388608;this.wT=120;this.iT=this.YH=this.kY=2;this.O_=this.Tg=!1;this.mL=1E3;this.Uv=15;this.Gt=1;this.yj=1.15;this.qp=1.05;this.gg=1;this.w$=this.Of=!1;this.R_=6;this.V=!1;this.HC=100;this.e6=10;this.mj=6;this.ye=!1;this.mU=1;this.In=this.Po=!1;this.JA=2;this.Sr=this.wF=this.cR=!1;this.ql=!0;this.LD=this.hq=this.ZM=this.GZ=!1;this.fu=!0;this.G3=!1;this.U="";this.mC=[];this.rg=this.KY=!1;this.Tb=0;this.kR=
|
|
"";this.jH=this.e7=this.bA=this.lR=this.b2=this.BI=this.D=this.vC=this.dB=this.N=this.Ox=this.JF=this.oz=this.nO=this.Wn=this.Pk=this.Tm=!1;this.jD=!0;this.uu=this.IV=this.M7=this.gy=this.nJ=this.W=this.cn=!1;this.sx=!0;this.zK=this.Gx=this.m1=this.N8=this.Kx=this.cC=this.B4=this.Ip=this.WR=this.UO=this.Vj=this.BR=this.qM=this.zV=this.S4=!1;this.SH=0;this.T=this.Mb=this.o4=this.y8=this.OC=!1;this.latencyClass="UNKNOWN";this.iA=this.xY=this.sC=!1;this.MI=g.Am(this.tF.experiments,"html5_min_readbehind_secs");
|
|
this.GI=g.Am(this.tF.experiments,"html5_min_readbehind_cap_secs");this.e8=this.tF.J("html5_offline_reset_media_stream_on_unresumable_slices");this.lC=NaN;this.TK=Dz(this,"html5_request_size_min_kb",64)*1024;this.Cr=2097152;this.Wf=Dz(this,"html5_bypass_contention_secs");this.p$=1048576;this.Ry=Dz(this,"html5_repredict_interval_ms",1800);this.hN=Dz(this,"html5_head_miss_secs",5);this.VL=Dz(this,"html5_min_upgrade_health_secs",10);this.Oc=Dz(this,"html5_min_seconds_between_format_selections",8);this.Ec=
|
|
Dz(this,"html5_max_buffer_health_for_downgrade_secs",15);this.h8=Km;this.Sb=g.Am(this.tF.experiments,"html5_min_startup_buffered_media_duration_secs");this.Cx=g.Am(this.tF.experiments,"html5_post_interrupt_readahead");this.XE=this.tF.J("html5_disable_classic_alr");this.e0=g.Am(this.tF.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.u4=Dz(this,"html5_ssdai_failure_retry_limit",3);this.JV=this.tF.experiments.GL("html5_clone_original_for_fallback_location");this.TZ=g.Am(this.tF.experiments,
|
|
"html5_subsegment_readahead_target_buffer_health_secs");this.g$=g.Am(this.tF.experiments,"html5_subsegment_readahead_timeout_secs");this.nP4=g.Am(this.tF.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Ym=g.Am(this.tF.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.urj=g.Am(this.tF.experiments,"html5_subsegment_readahead_min_load_speed");this.P0=g.Am(this.tF.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.A_T=g.Am(this.tF.experiments,
|
|
"html5_subsegment_readahead_seek_latency_fudge");this.FT=Dz(this,"html5_hopeless_secs",15);this.B1=this.tF.J("html5_restrict_streaming_xhr_on_sqless_requests");this.uZ=g.Am(this.tF.experiments,"html5_max_headm_for_streaming_xhr");this.XW=this.tF.J("html5_pipeline_manifestless_allow_nonstreaming");this.xw=this.tF.J("html5_prefer_server_bwe3");this.Zt=this.tF.J("html5_last_slice_transition");this.cFn=this.tF.J("html5_store_xhr_headers_readable");this.U$=g.Am(this.tF.experiments,"html5_max_drift_per_track_secs");
|
|
this.YS=this.tF.J("html5_no_placeholder_rollbacks");this.yw4=this.tF.J("html5_subsegment_readahead_enable_mffa");this.mH=this.tF.J("html5_allow_video_keyframe_without_audio");this.Sr=g.wY(this.tF)&&!g.ng()&&this.tF.J("html5_adjust_media_time_for_non_cobalt_tv");this.J0=this.tF.J("html5_enable_vp9_fairplay");this.n2=1048576;this.zs=this.tF.J("html5_woffle_resume");this.jr=this.tF.J("html5_abs_buffer_health");this.Jc=this.tF.J("html5_interruption_resets_seeked_time");this.aD=g.Am(this.tF.experiments,
|
|
"html5_max_live_dvr_window_plus_margin_secs")||46800;this.KFT=this.tF.J("html5_report_captions_ctmp_qoe");this.V8=this.tF.J("html5_explicitly_dispose_xhr");this.yd=!this.tF.J("html5_encourage_array_coalescing");this.tF.J("html5_limit_media_merge_size")?Km?P7()<21?this.a8=786432:this.a8=8388608:this.a8=262144:this.a8=0;this.r0=this.tF.J("html5_filter_non_efficient_formats_for_safari");this.tF.J("html5_format_hybridization");this.dF=this.tF.J("html5_abort_before_separate_init");this.S1=AK();this.g9=
|
|
this.tF.J("html5_serialize_server_stitched_ad_request");this.iD=this.tF.J("html5_attach_po_token_to_bandaid");this.Z$=g.Am(this.tF.experiments,"html5_max_redirect_response_length")||8192;this.jb=this.tF.J("html5_rewrite_timestamps_for_webm");this.t$=this.tF.J("html5_only_media_duration_for_discontinuities");this.OT=g.Am(this.tF.experiments,"html5_resource_bad_status_delay_scaling")||1;this.tF.J("html5_onesie_live");this.t0=g.Am(this.tF.experiments,"html5_onesie_live_ttl_secs")||8;this.gp=g.Am(this.tF.experiments,
|
|
"html5_attach_num_random_bytes_to_bandaid");this.NhM=this.tF.J("html5_update_container_type_on_codec_family_change");this.jI=this.tF.J("html5_enable_sabr_host_fallback");this.Ze=this.tF.J("html5_gapless_fallback_on_append_error");this.I1=this.tF.J("html5_shorts_stop_request_when_buffer_to_end");this.NBD=this.tF.J("html5_vod_stop_request_when_buffer_to_end");this.Ys=this.tF.J("html5_ssdai_use_post_for_media")&&this.tF.J("gab_return_sabr_ssdai_config");this.ngD=this.tF.J("html5_use_post_for_media");
|
|
this.nD=this.tF.J("html5_use_live_ump_heartbeat");this.useUmp=this.tF.J("html5_use_ump");this.fb=this.tF.Pk;this.oE=this.tF.J("html5_reset_primary_stats_on_redirector_failure");this.QL=this.tF.J("html5_remap_to_original_host_when_redirected");this.Ji=this.tF.J("html5_use_network_error_code_enums");this.il=this.tF.J("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.tF.J("html5_enable_server_driven_request_cancellation");this.jy=this.tF.J("html5_enable_sabr_request_timing");
|
|
this.Es=this.tF.J("html5_enable_lawnmower");this.iW=this.tF.hw()?g.Am(this.tF.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.KR=g.Am(this.tF.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.U3=this.tF.J("html5_live_defrag_only_h264_playbacks");this.oP=this.tF.J("html5_live_defrag_only_h264_formats");this.QW=this.tF.J("html5_record_now");this.Kt=g.Am(this.tF.experiments,"html5_drm_byterate_soft_cap");this.SM=g.Am(this.tF.experiments,"html5_drm_live_byterate_soft_cap");
|
|
this.X=this.tF.J("html5_sabr_log_request_creation");this.Bk=this.tF.J("html5_use_buffer_timeline_for_sabr_request_creation");this.k6=this.tF.J("html5_sabr_report_request_cancellation_info");this.x$=this.tF.J("html5_spoof_4k");this.D$=Dz(this,"html5_min_media_duration_for_cabr_slice");this.Kc=Dz(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.Kb=this.tF.J("html5_remove_defrag_without_frame_level_streaming");this.Ss=this.tF.J("html5_consume_all_buffered_bytes_one_poll");this.g4=
|
|
this.tF.J("html5_disable_urgent_adaptation");this.NB=this.tF.J("html5_apply_constraints_in_client_for_sabr");this.ke=this.tF.J("html5_send_video_playback_ustreamer_config");this.F0=Dz(this,"html5_max_discontinuity_rewrite_count");this.mM=Dz(this,"html5_fixed_media_duration_for_request");this.Xp=this.tF.J("html5_apply_fix_for_missing_seg_info_without_logger");this.hq=this.tF.J("html5_enable_audio_quality_setting");this.tF.J("html5_enable_audio_quality_setting_feature");this.Tf=Dz(this,"html5_sabr_request_limit_per_period");
|
|
this.XT=this.tF.J("html5_sabr_dispose_media_objects");this.I_=this.tF.J("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.A9=this.tF.J("html5_enable_d6de4");this.tF.J("html5_high_res_seek_logging");this.XV=this.tF.J("html5_disable_chunk_synchronization_sabr_seek");this.rp=g.Am(this.tF.experiments,"html5_override_micro_discontinuities_threshold_ms");this.tI=this.tF.J("html5_byterate_constraints");this.IT=this.tF.J("html5_refactor_sabr_audio_format_selection_logging");this.XN=this.tF.J("enable_sabr_snackbar_message");
|
|
this.tF.J("html5_reinit_source_buffer_by_new_element");this.kI=this.tF.J("html5_refactor_sabr_video_format_selection_logging");this.iZ=this.tF.J("html5_log_slice_info_in_sbu");this.Pz=Dz(this,"html5_paced_poll_ms");this.MZ=Dz(this,"html5_paced_poll_min_health_ms");this.Yn=this.tF.J("html5_disable_sabr_fallback");this.r$=this.tF.J("html5_track_current_buffered_range_at_sync");this.Xnr=g.wY(this.tF)?500:2E3;this.iF=this.tF.J("html5_sabr_live_timing");this.J9=this.tF.J("html5_count_updating_slice_for_buffer_health");
|
|
this.GR=this.tF.J("html5_report_max_buffer_bytes_limit_to_sabr");this.wJ=this.tF.J("html5_sabr_live_audio_early_return_fix");this.iP=g.Am(this.tF.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.Ts=this.tF.J("html5_cuepoint_identifier_logging");this.JN=this.tF.J("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.Gu=this.tF.J("html5_skip_client_drm_license_constraint");this.Tm=this.tF.J("html5_pseudogapless_shorts_skip_abort_on_transition");this.B4=this.tF.J("html5_sabr_request_on_constraint");
|
|
this.VH=this.tF.J("html5_live_metadata_resets_timeout");this.Mb=this.tF.J("html5_sabr_log_invalid_sabr_current_time");this.a7=this.tF.J("html5_ssdai_new_decoration_logic");this.Y2=this.tF.J("html5_enable_smooth_audio_offset");this.Lf=this.tF.J("html5_cuepoint_list_clear_on_seek");this.cI=this.tF.Qf().N.Iv(dv);this.Qu=this.tF.Qf().N.Iv(IP);this.g0=this.tF.Qf().N.Iv(wN7);this.r4=this.tF.Qf().N.Iv(pNw);this.GLr=this.tF.J("html5_ssdai_clear_backoff_on_cuepoint_list_resolved")};
|
|
dMw=function(A,L,B){B=B===void 0?!1:B;L.video.qualityOrdinal>1080&&!A.AS&&(A.Ex=36700160,A.Nl=5242880,A.Cr=Math.max(4194304,A.Cr),A.AS=!0);L.video.qualityOrdinal>2160&&!A.hS&&(A.Ex=104857600,A.lC=13107200,A.hS=!0);g.Am(A.tF.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?L.isEncrypted()&&g.ng()&&g.xz("samsung")&&(g.xz("kant")||g.xz("muse"))&&(A.lC=g.Am(A.tF.experiments,"html5_samsung_kant_limit_max_bitrate")):L.isEncrypted()&&g.ng()&&g.xz("kant")&&(A.lC=1310720);A.Kt!==0&&L.isEncrypted()&&
|
|
(A.lC=A.Kt);A.SM!==0&&L.isEncrypted()&&B&&(A.lC=A.SM);L.lC&&(A.p$=Math.max(A.TK,Math.min(A.Cr,5*L.lC)))};
|
|
Y2=function(A){return A.N&&A.BI};
|
|
wv=function(A){return A.N&&A.dB&&A.playbackStartPolicy};
|
|
p6=function(A,L,B,f){A.dB&&(A.playbackStartPolicy=L,A.ET=B,A.rd=f)};
|
|
Dz=function(A,L,B){B=B===void 0?0:B;return g.Am(A.tF.experiments,L)||B};
|
|
jo1=function(A){var L=A===void 0?{}:A;A=L.In;var B=L.D5;var f=L.So;var K=L.uq;L=L.kN;this.In=A;this.D5=B;this.So=f;this.uq=K;this.kN=L};
|
|
Xq7=function(A,L){if(L<0)return!0;var B=A.uq();return L<B||L===B&&!A.In||L===B&&(A=A.kN())&&L===A.XD?!0:!1};
|
|
OqL=function(A,L,B){if(!Xq7(A,L))return 0;if(!A.D5||!isNaN(B)&&B>0)return 2;if(L<0)return 1;B=A.uq();return L<B||L===B&&(A=A.kN())&&L===A.XD&&!A.pending?2:1};
|
|
y1=function(A,L,B){g.Y.call(this);this.loader=A;this.policy=L;this.Ml=B;this.W=0;this.N=!1;this.delay=new g.aa(this.V,this.policy.iW,this);g.W(this,this.delay)};
|
|
j2=function(A,L){k7(49,L.N)||(A.wi=L,A.W=0,g.Az(A.delay))};
|
|
gcw=function(A,L,B,f,K){var V=this;this.loader=A;this.policy=L;this.Ml=B;this.wi=f;this.P9=K;this.done=!1;this.onTimeout=function(){V.done||(V.done=!0,V.onError("net.timeout"))};
|
|
this.size=Math.ceil(Math.min(1E5,.1*ub(this.Ml)));this.timing=new GC(this,{Ml:this.Ml,bb:this.size,lf:!0,YD:function(){},
|
|
L6:this.policy.V});A=Pq(this.wi,this.P9,this.policy).QN.clone();A1(33,A);A[S[17]]!=="/videogoodput"&&(A[S[17]]="/videogoodput",A[S[11]]=S[21]);this.location=new cq(A);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=k2(this.location,this.policy.G,this.timing,this.policy.h8,{});setTimeout(this.onTimeout,1E4)};
|
|
Gd6=function(A,L,B){var f=A.K5();if(A.isComplete()||!f||A.info.wi.P9(L,B))return 0;var K=L.JA;if(!K||f<K)return 0;A=Wq(B,xK(A.info.wi,!0,L));return A.N||A.timedOut||A.started?0:2};
|
|
r$L=function(A,L,B){if(!(L.e0&&A.isComplete()&&A.canRetry()&&A.info.wi.P9(L,B))||A.info.wi.G)return 0;A=Wq(B,xK(A.info.wi,!1,L));return A.W+L.e0*U9(A,!0)>(0,g.bc)()?0:1};
|
|
gv=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){d=d===void 0?null:d;g.Y.call(this);var w=this;this.loader=A;this.policy=L;this.videoTrack=B;this.audioTrack=f;this.V=K;this.N=V;this.timing=J;this.U=R;this.schedule=Z;this.gT=N;this.W=F;this.yj=D;this.Op=I;this.Sg=d;this.Wn=!1;this.tG="";this.HB=null;this.FH=NaN;this.qp=!1;this.TV=null;this.XH=this.G=NaN;this.hj=this.D=0;this.logger=new g.sI("dash");this.GV={cM:function(r,h){return w.cM(r,h)}};
|
|
this.policy.gp>0&&(this.tG=g.y0(this.policy.gp));this.policy.iW&&(this.X=new y1(this.loader,this.policy,this.schedule),g.W(this,this.X))};
|
|
Hov=function(A,L,B){var f=L.N?L.N.b1.wi:L.b1.wi;var K=A.V,V;(V=!A.policy.QL)||(V=wy(17,f.N)===wy(21,f.W));V?f=!1:(K=Wq(K,wy(22,f.W)),V=6E4*Math.pow(K.U,1.6),(0,g.bc)()<K.W+V?f=!1:(K.W=(0,g.bc)(),K.U+=1,f.N=f.W.clone(),f=!0));f&&A.loader.Hn("hostch",{},!0);if(Gm(A,L,B)){B=A.T(L,B);if(A.TV){var J=B.Lr[0].b1.info.id;f=A.N;K=B.Lr[0].XD;f=K<0&&!isNaN(f.D)?f.D:K;K=RN(A.N,B.Lr[0].U,f);var R=L===A.audioTrack?1:2,Z=B.Lr[0].b1.info.Bn;V=J.split(";")[0];a:{var N=A.N;if(N.N){var F=N.N.U9.event;if(N.N.XD===f){N=
|
|
F==="predictStart"?void 0:N.N.U9.event;break a}if(N.N.XD===f-1){N=F==="start"||F==="continue"?F:void 0;break a}}N=void 0}if(A.policy.Ys&&A.N.W!==0){var D=g.so8(A.TV,K,f,J,R,Z,N);f<0&&R===2&&ZU(A.N,0,0,!0);if(D){var I;J=((I=D.xX)==null?void 0:I.c$)||"";var d;I=((d=D.xX)==null?void 0:d.Eo)||-1;A.loader.Hn("sdai",{ssdaiinfo:"1",ds:J,skipsq:I,itag:V,f:Z,sg:f,st:K.toFixed(3)});B.U=D}}else if(d=A.TV.j2(K,f,J,R,Z,N),f<0&&R===2&&ZU(A.N,0,0,!0),d){I={dec_sq:f,itag:V,st:K.toFixed(3)};if(A.policy.g9&&L.isRequestPending(f-
|
|
1)){A.loader.Hn("sdai",{wt_daistate_on_sg:f-1});return}A.loader.Hn("sdai",I);d&&(B.N=new g.Fk(d));A.policy.V&&(d=B.wi.CU("id")||"",I=((D=B.N)==null?void 0:D.get("id"))||"",d!==I&&A.loader.Hn("stmidmismatch",{cid:d,aid:I}))}else A.N.W!==5&&A.loader.Hn("sdai",{nodec_sq:f,itag:V,st:K.toFixed(3)})}A.policy.rg&&B.Lr[0].XD!==-1&&B.Lr[0].XD<A.gT.F3&&(B=L.b1.D_(A.gT.F3,!1));zE(L,rv(A,B));oN(A.timing);var w;(w=A.X)==null||j2(w,B.wi)}};
|
|
Gm=function(A,L,B){if(A.policy.b2)return!1;var f;var K=A.N,V=((f=L.N)==null?void 0:f.XD)||-1;K.W===3&&V+1>=K.U?(K.Hn("sdai",{haltrq:V+1,est:K.U}),f=!1):f=K.W!==2;if(!f||!ez(L.N?L.N.b1.wi:L.b1.wi,A.policy,A.V,A.loader.ue)||A.loader.isSuspended&&(!sh(A.schedule)||A.loader.K6))return!1;if(A.policy.U&&xc>=5)return g.Az(A.loader.Rm),!1;if(A.gT.isManifestless){if(L.W.length>0&&L.N&&L.N.XD===-1||L.W.length>=A.policy.mU||!A.policy.XW&&L.W.length>0&&!A.policy.G.D5)return!1;if(L.T)return!A.gT.isLive||!isNaN(A.FH)}if(Zok(L))return!1;
|
|
if(!L.N){if(!L.b1.w1())return!1;R5(L,A.loader.getCurrentTime())}if(Db(L)&&(L.vL()!==Db(L)||A.loader.isSuspended))return!1;K=(f=A.policy.Wf)&&!L.W.length&&K6(L,!0)<Math.min(f,K6(B));f=L.W.length+B.W.length;V=!A.policy.il&&((L.W.length?L.W[0].nZ():!1)||(B.W.length?B.W[0].nZ():!1)||A.gT.isLive);(K||V)&&--f;if(f+1>=A.policy.wp)return!1;f=L.N;if(!f)return!0;f.type===4&&f.b1.w1()&&(L.N=g.vw(f.b1.kW(f)),f=L.N);if(!f.Ad()&&!f.b1.Z_(f))return!1;V=A.gT.SD||A.gT.U;if(A.gT.isManifestless&&V){V=L.b1.index.uq();
|
|
var J=B.b1.index.uq();V=Math.min(V,J);if(L.b1.index.Ns()>0&&V>0&&f.XD>=V)return L.ZM=V,B.ZM=V,!1}if(f.b1.info.audio&&f.type===4||f.Ad())return!1;V=!L.U&&!B.U;if(K=!K)K=f.D,K=!!(B.N&&!f6(B.N)&&B.N.D<K);J=L===A.videoTrack&&A.policy.JF;return K&&(!A.gT.isManifestless||B.N&&B.N.D&&f.D)&&V&&!J||A.policy.ql&&!L.U&&B.U?!1:K3(f)&&f.D>hOw(A,L)?(hOw(A,L),!1):(A=L.uC)&&A.isLocked()?!1:!0};
|
|
hOw=function(A,L){var B=A.N;B=B.N?B.N.U9:null;if(A.policy.JF&&B)return B.startSecs+B.Dj+15;L=Sb(A.loader,L);A.policy.Uv>0&&(B=((0,g.bc)()-A.loader.DU)/1E3,L=Math.min(L,A.policy.Uv+A.policy.Gt*B));L=A.loader.getCurrentTime()+L;return A.policy.Cx&&(B=bok(A.loader)+A.policy.Cx,B<L)?(A.loader.Hn("mrl",{ori:L,mod:B},!0),A.policy.Jc&&Hl(A.loader),B):L};
|
|
tKQ=function(A,L,B){if(B!==0){a:if(L=L.info,B=B===2,L.N)L=null;else{var f=L.Lr[0];if(L.range)var K=L3(L.range.start,Math.min(4096,L.V));else{if(L.W&&L.W.indexOf("/range/")>=0||L.wi.CU("defrag")==="1"||L.wi.CU("otf")==="1"){L=null;break a}K=L3(0,4096)}K=new ZY([new Bp(5,f.b1,K,"createProbeRequestInfo"+f.T,f.XD)],L.W);K.P9=B;K.N=L.N;L=K}L&&rv(A,L)}};
|
|
rv=function(A,L){A.loader.YF(L);var B=cEy(L),f=A.loader.sb();B={Ml:A.schedule,bb:B,Kg:NDv(A.U,B),xm:f3(L.Lr[0]),lf:k7(55,L.wi.N),L6:A.policy.V,YD:function(J,R){A.loader.MX(J,R)}};
|
|
if(A.schedule.W.T){var K,V;B.qz=(((K=A.videoTrack.b1)==null?void 0:K.info.lC)||0)+(((V=A.audioTrack.b1)==null?void 0:V.info.lC)||0)}A.HB&&(B.XD=L.Lr[0].XD,B.FH=L.FH,B.HB=A.HB);f={zo:M98(L,A.loader.getCurrentTime()),dJ:A.policy.Po&&FV(L)&&L.Lr[0].b1.info.video?pLe(A.W):void 0,b4:A.policy.JF,poToken:A.loader.BA(),DA:A.loader.rW(),tG:A.tG,XH:isNaN(A.XH)?null:A.XH,Sg:A.Sg,Op:A.Op,hj:A.hj,K_:f};return new KT(A.policy,L,B,A.V,function(J,R){try{a:{var Z=J.info.Lr[0].b1,N=Z.info.video?A.videoTrack:A.audioTrack;
|
|
if(!(J.state>=2)||J.isComplete()||J.K5()||!(!A.loader.AF||A.loader.isSuspended||K6(N)>3)){var F=Gd6(J,A.policy,A.V);F===1&&(A.qp=!0);tKQ(A,J,F);if(J.isComplete()||J.TL()&&R<3){if(A.policy.V){var D=J.timing.Rg();D.rst=J.state;D.strm=J.xhr.v4();D.cncl=J.xhr&&J.RA.D?1:0;A.loader.Hn("rqs",D)}J.JJ&&A.loader.Hn("sbwe3",{},!0)}if(!A.TL()&&J.state>=2){Mlk(A.timing,J,Z);var I=A.loader;A.XH&&J.tL&&I&&(A.XH=NaN,A.loader.kz(J.tL),A.loader.Uw(),A.loader.Hn("cabrUtcSeek",{mediaTimeSeconds:J.tL}));J.b_&&A.XH&&J.b_&&
|
|
!J.b_.action&&(A.loader.o5(A.XH),A.XH=NaN,A.loader.Hn("cabrUtcSeekFallback",{targetUtcTimeSeconds:A.XH}));J.qn&&A.loader.mG(J.qn);A.policy.nD&&(A.hj=J.hj);if(J.state===3){S2(N,J);FV(J.info)&&h6(A,N,Z,!0);if(A.TV){var d=J.info.j2();d&&A.TV.GM(J.info.Lr[0].XD,Z.info.id,d)}A.loader.yG()}else if(J.isComplete()&&J.info.Lr[0].type===5){if(J.state!==4)J.LQ()&&A.loader.handleError(J.p8(),J.tj());else{var w=(J.info.Lr[0].b1.info.video?A.videoTrack:A.audioTrack).W[0]||null;w&&w instanceof KT&&w.K5()&&w.oG()}J.dispose()}else{if(!J.LQ()&&
|
|
J.QZ&&J.state>=2&&J.state!==3){var r=J.xhr.getResponseHeader("X-Response-Itag");if(r){var h=wLE(A.W,r),Q=J.info.V;if(Q){var l=Q-h.xi();h.V=!0;J.info.Lr[0].b1.V=!1;var C=h.bv(l);J.info=C;if(J.I0){var O=J.I0,v=C.Lr;(v.length!==O.Lr.length||v.length<O.E_.length)&&g.Hp("dash/request",260511119,""+v.length,""+O.Lr.length,""+O.E_.length);O.Lr=v;var U=v[0].range,a=new FK;for(R=0;R<O.E_.length;R++)DF(a,O.E_[R].W);for(R=0;R<O.E_.length;R++){O.E_[R].info=v[R];var o0=v[R].range;O.E_[R].W=dZ(a,o0.start-U.start,
|
|
o0.length)}}J.QZ=!1;bR(A.loader,A.videoTrack,h);var B6=A.videoTrack;B6.N&&(B6.N.b1=h);A.loader.pg(h.info.video.quality);var Ve=J.Pr();Ve&&h.info.lastModified&&h.info.lastModified!==+Ve&&S2(A.videoTrack,J)}}else J.QZ=!1}var DS;((DS=J.ZO)==null?0:DS.itagDenylist)&&A.loader.mQ(J.ZO.itagDenylist);if(J.state===4)t6(A,J),A.N&&v6v(A.N,J.info,A.TV);else if(A.policy.h8&&J.HA()&&!J.isComplete()&&!t6(A,J)&&!J.LQ())break a;if(J.LQ()){var fw=J.info.Lr[0].b1,ry=J.p8();if(k7(52,fw.wi.N)){var uL=g.Uz(J.SE(),3);A.loader.Hn("dldbrerr",
|
|
{em:uL||"none"})}var Jf=J.info.Lr[0].XD,MC=RN(A.N,J.info.Lr[0].U,Jf);ry==="net.badstatus"&&(A.D+=1);if(J.canRetry()&&kq(A.loader)){if(!(J.info.wi.V>=A.policy.u4&&A.TV&&J.info.isDecorated()&&ry==="net.badstatus"&&Tm(A.TV,MC,Jf))){var nw=(fw.info.video&&fw.wi.V>1||J.zy===410||J.zy===500||J.zy===503)&&!(IN(A.W.D).size>0)&&!k7(51,fw.wi.N),Xk=J.tj(),e5=fw.info.video?A.videoTrack:A.audioTrack;nw&&(Xk.stun="1");A.loader.handleError(ry,Xk);A.TL()||(nw&&sL(A.W,fw),S2(e5,J),A.loader.yG())}}else h=1,A.TV&&J.info.isDecorated()&&
|
|
ry==="net.badstatus"&&Tm(A.TV,MC,Jf)&&(h=0),A.gT.isLive&&J.p8()==="net.badstatus"&&A.D<=A.policy.e6*2?(q20(A.gT),A.gT.SD||A.gT.isPremiere?FT(A.loader,0,{zZ:"badStatusWorkaround"}):A.gT.U?FT(A.loader,A.gT.SO,{zZ:"badStatusWorkaround",OU:!0}):lR(A.loader)):A.loader.handleError(ry,J.tj(),h);isNaN(A.XH)||(A.loader.o5(A.XH),A.XH=NaN)}A.policy.Pz&&!J.isComplete()?mZ(A.loader):A.loader.yG();var mt=r$L(J,A.policy,A.V);tKQ(A,J,mt)}}}}}catch(T){ry=A.Wn?1:0,A.Wn=!0,J=Vu(ry),ry=JT(T,ry),A.loader.handleError(ry.errorCode,
|
|
ry.details,ry.severity),J||A.loader.KV()}},f)};
|
|
t6=function(A,L){if(A.policy.useUmp&&L.TL())return!1;try{var B=L.info.Lr[0].b1,f=B.info.video?A.videoTrack:A.audioTrack;if(A.gT.isManifestless&&f){A.D=0;f.T&&(L.TL(),L.isComplete()||L.HA(),f.T=!1);L.TU()&&A.loader.wq.eg(1,L.TU());var K=L.Ns(),V=L.y0();ap(A.gT,K,V)}if(L.info.xm()&&!NP(L.info))for(var J=g.m(L.Ud()),R=J.next();!R.done;R=J.next())Bdw(f,R.value);for(A.loader.getCurrentTime();f.W.length&&f.W[0].state===4;){var Z=f.W.shift();ocE(f,Z);f.S4=Z.OL()}f.W.length&&ocE(f,f.W[0]);var N=!!Db(f);N&&
|
|
L instanceof fT&&(B.info.NF()?cLC(A.timing):E61(A.timing));return N}catch(F){L=L.tj();L.origin="hrhs";a:{A=A.loader;B=F;if(B instanceof Error){L.msg||(L.msg=""+B.message);L.name||(L.name=""+B.name);if(B instanceof g.iL&&B.args)for(f=g.m(Object.entries(B.args)),K=f.next();!K.done;K=f.next())V=g.m(K.value),K=V.next().value,V=V.next().value,L["arg"+K]=""+V;g.CE(B);if(B.level==="WARNING"){A.Np.J8(L);break a}}A.handleError("fmt.unplayable",L,1)}return!1}};
|
|
kdE=function(A){var L=A.videoTrack.b1.index;A.HB=new jo1({In:A.policy.In,D5:A.policy.G.D5,So:L.w7(),uq:function(){return L.uq()},
|
|
kN:function(){return L.kN()}})};
|
|
h6=function(A,L,B,f){if(!(B.w1()||B.mE()||B.V||!ez(B.wi,A.policy,A.V,A.loader.ue)||B.info.Bn==="f"||A.policy.N)){if(f){f=A.U;var K=B.info;f=Fd6(f,K.video?f.policy.kY:f.policy.YH,K.lC)}else f=0;f=B.bv(f);A=rv(A,f);NP(f)&&zE(L,A);B.V=!0}};
|
|
Q1=function(A,L,B,f,K,V,J,R){g.Y.call(this);var Z=this;this.loader=A;this.Iy=L;this.videoTrack=B;this.audioTrack=f;this.gT=K;this.Wn=V;this.isAudioOnly=J;this.G=R;this.W=fr;this.ZM=!1;this.logger=new g.sI("sabr");this.yj=this.X=this.Vj=this.qp=!1;this.videoInfos=this.T=this.Wn.videoInfos;this.V=this.wT=this.Wn.N;this.N=new DU(L,V,function(N,F){Z.loader.Hn(N,F)});
|
|
this.isAudioOnly&&Tde(this,this.gT.N["0"])};
|
|
l_6=function(A,L){var B=[];L=g.m(L);for(var f=L.next();!f.done;f=L.next())B.push(g.vV(f.value,A.gT.iC));return B};
|
|
Tde=function(A,L,B){L!==A.U&&(A.U&&(A.ZM=!0),A.U=L,A.VP(L,A.videoTrack,B))};
|
|
CSe=function(A,L){Y2(A.Iy)&&(A.Vj=L.reason==="m"||L.reason==="l"?!0:!1);L.reason==="m"?L.isLocked()&&mgk(A,L.N):QoQ(A,L)?C6(A,L.W,L.N):A.videoInfos=A.T;A.yj=!0;A.W=L};
|
|
QoQ=function(A,L){return A.Iy.Gu&&L.reason==="l"||A.Iy.vC?!1:A.Iy.NB?!0:L.reason==="l"||L.reason==="b"||L.reason==="o"};
|
|
mgk=function(A,L){var B=A.N.N;if(B){A.videoInfos=A.T;var f=g.Pw(A.videoInfos,function(K){return K.id===B});
|
|
f&&f.video.qualityOrdinal===L?A.videoInfos=[f]:(f=A.videoInfos.map(function(K){return K.id}),A.loader.Hn("sabrpf",{pfid:""+B,
|
|
vfids:""+f.join(".")}),C6(A,L,L),wP(A.N,""))}else C6(A,L,L)};
|
|
C6=function(A,L,B){A.videoInfos=A.T;A.videoInfos=g.Mi(A.videoInfos,function(f){return f.video.qualityOrdinal>=L&&f.video.qualityOrdinal<=B})};
|
|
ioQ=function(A,L,B){if(A.G){var f=g.Mi(A.V,function(K){return K.id===A.G});
|
|
return iR(f,B).includes(L)}f=g.Mi(A.V,function(K){var V;return!((V=K.ri)==null||!V.isDefault)});
|
|
return f.length>0?iR(f,B).includes(L):iR(A.V,B).includes(L)};
|
|
iR=function(A,L){return A.map(function(B){return nq(g.vV(B,L))})};
|
|
$g0=function(A){var L;if((L=A.W)==null?0:L.isLocked())return A.videoInfos;var B=IN(A.N);L=g.Mi(A.videoInfos,function(f){return f.lC>A.Iy.lC?!1:!B.has(f.id)});
|
|
A7L(A.N)&&(L=g.Mi(L,function(f){return f.video.width<=854&&f.video.height<=480}));
|
|
return L};
|
|
Oo0=function(A,L,B,f){var K=A.gT,V=A.Np.getVideoData(),J=A.uE,R=wpS({Ml:A.Ml,tF:V.K(),Np:A.Np,ut:A.ut,Iy:A.Iy,JH:A.JH,Pa:A.Pa,AI:A.AI,LS:A.LS,O0:A.O0,Ay:A.Ay,KF:A.KF,sabrLicenseConstraint:V.sabrLicenseConstraint,PL:A.PL,Cn:A.Cn,F6:A.F6,Un:A.Un,uD1:!!J,authorizedFormats:V.authorizedFormats}),Z=UV(V,A.K_,A.nextRequestPolicy,A.ES,A.Ih,A.rE,A.oo);B&&L&&(B=Z.pS?Z.pS.map(function(I){return I.type}):[],L("sabr",{stmctxt:B.join("_"),
|
|
unsntctxt:Z.KL?Z.KL.join("_"):""}));L=A.xe;B=A.pK;if(B===void 0&&L===void 0){var N;B=XN1(K.iC,(N=A.j1)==null?void 0:N.video);var F;L=XN1(K.iC,(F=A.j1)==null?void 0:F.audio)}if(V.Sg)var D=V.Sg;V={No:R,lM:A.lM,xe:L,pK:B,uE:J,videoPlaybackUstreamerConfig:D,mZ:Z};f&&A.zJ?A.zJ.length>0&&(V.zJ=A.zJ):A.xX&&(V.xX=A.xX);V.VK=A.VK;V.Lj=K.Cr;return V};
|
|
XN1=function(A,L){return L?[g.vV(L.info,A)]:[]};
|
|
$q=function(A,L,B){var f=this;this.requestType=A;this.wi=L;this.xs=B;this.W=null;this.GV={Ay:function(){var K;return(K=f.data)==null?void 0:K.Ay},
|
|
Ih:function(){var K;return(K=f.data)==null?void 0:K.Ih},
|
|
PL:function(){var K;return(K=f.data)==null?void 0:K.PL}}};
|
|
C7Q=function(A,L,B){L=Pq(A.wi,EcQ(A,L,B),L);A.kh()&&L.set("probe","1");return L};
|
|
EcQ=function(A,L,B){A.P9===void 0&&(A.P9=A.wi.P9(L,B));return A.P9};
|
|
Xn=function(A){var L,B;return((L=A.N)==null?void 0:(B=L.No)==null?void 0:B.q1)||0};
|
|
Oh=function(A){var L,B;return!!((L=A.N)==null?0:(B=L.No)==null?0:B.PL)};
|
|
c$w=function(A){var L={},B=[],f=[];if(!A.data)return L;for(var K=0;K<A.data.VK.length;K++){var V=A.data.VK[K],J=void 0;B.push("i."+((J=V.formatId)==null?void 0:J.itag)+"_st."+(V.startTimeMs+"_e."+(V.startTimeMs+V.durationMs)+"_d."+V.durationMs)+("_sn."+V.Uj)+("_en."+V.L8))}for(K=0;K<A.data.lM.length;K++){V=A.data.lM[K];var R=J=void 0,Z=void 0,N=void 0;f.push("i."+((J=V.formatId)==null?void 0:J.itag)+"_sn."+V.sequenceNumber+"_sl."+(V.Gb||NaN)+"_lb."+V.eN+"_tr.s_"+((R=V.DE)==null?void 0:R.startTicks)+
|
|
"_d_"+((Z=V.DE)==null?void 0:Z.Ew)+"_t_"+((N=V.DE)==null?void 0:N.timescale)+"_ed_"+V.rU)}L.ptime=Xn(A);L.rtype=A.requestType;L.brl=B.join(";");L.ps=f.join(";");return L};
|
|
Eh=function(A){this.N=A;this.iv=(0,g.WO)(pV(16))};
|
|
Ye1=function(A,L){var B;return g.c(function(f){(0,g.bc)();if(A.N.N)return f.return(MKe(A,L,A.iv));B=OWw(A.N);return f.return(B.encrypt(L,A.iv))})};
|
|
Ug7=function(A,L){(0,g.bc)();var B;if((B=A.N.N)==null)var f=void 0;else a:{A=A.iv;try{var K=$K7(B,L,A),V=B.N.aV(A),J=B.N,R=B.U,Z=new Uint8Array(J.exports.memory.buffer,J.malloc(32),32);J.exports.Sha256Hmac(R.byteOffset,R.byteLength,V.byteOffset,V.byteLength,K.byteOffset,K.byteLength,Z.byteOffset);B.N.free(V.byteOffset);f={Qn:B.N.Sx(K),signature:B.N.Sx(Z)};break a}catch(N){g.CE(Error("ocwceas: wasm encryptAndSign failed: "+N))}f=void 0}return f};
|
|
W$e=function(A,L){var B;return g.c(function(f){(0,g.bc)();var K=A.N;K.D||(K.D=new WbQ(K.V));B=K.D;return f.return(Py0(B,L,A.iv))})};
|
|
vcv=function(A,L,B){var f;return g.c(function(K){(0,g.bc)();if(A.N.N)return K.return(MKe(A,L,B));f=OWw(A.N);return K.return(f.decrypt(L,B))})};
|
|
cl=function(A,L,B){var f,K=(f=A.N.N)==null?void 0:f.encrypt(L,B);return K?K:(new g.S8(A.N.W)).encrypt(L,B)};
|
|
MKe=function(A,L,B){var f;return g.c(function(K){switch(K.N){case 1:var V=A.N;var J=VS();V=J?new JQ(V.W,J):void 0;f=V;if(!f){K.Ux(2);break}g.S5(K,3);return g.X(K,f.encrypt(L,B),5);case 5:return K.return(K.W);case 3:g.NX(K);case 2:return K.return(cl(A,L,B))}})};
|
|
Mq=function(A){g.Y.call(this);var L=this;this.L=A;this.N=new Map;this.U=[];this.W=!VS();this.yj=g.Am(this.L.experiments,"html5_onesie_prewarm_interval_ms");this.G=new g.aa(this.X,this.yj,this);this.T=-1;this.GV={qrx:function(){return L.N},
|
|
buj:function(){return L.D},
|
|
I9s:function(){return qeC}};
|
|
g.W(this,this.G);xje(this,g.ES("yt-player-bandaid-host"));this.D=this.load();this.yj&&this.D.then(function(){L.X()})};
|
|
xje=function(A,L){var B=L==null?void 0:L.primary;A.V(0,B);B=B?PS7(B):void 0;A.V(2,B);A.V(1,L==null?void 0:L.secondary)};
|
|
Yq=function(A,L,B){return new g.Fk(((B===void 0?0:B)?"http":"https")+"://"+L+A.L.Pz.baseUrl)};
|
|
xg6=function(A,L){A="https://"+wy(18,L.location)+"/initplayback?c="+ge(A.L)+"&owc=1";x5(A,"pw",function(B){B.ht=L.N})};
|
|
Uh=function(A,L,B,f){x5("https://"+L+"/videoplayback?probe=1",B,function(K){!f.J("html5_onesie_host_racing")||f.videoData.isLivePlayback||f.J("html5_onesie_probe_ec_hosts")||f.tH||f.Mk();A.U.push(K)},function(K){A.U.push(K.details)})};
|
|
PS7=function(A){return A.replace(/(\d+)---/g,function(L,B){L=Number(B);return(L===1?2:L-1)+"---"})};
|
|
var J16=function(){return sD[S[2]](this,40)};
|
|
Wl=function(A,L){var B,f,K,V,J,R,Z,N;return g.c(function(F){if(F.N==1){B=Yq(A,"redirector.googlevideo.com");B.set("alr","yes");B.set("id",""+Math.round(Math.random()*1E5));if(L===1||L===2)B.set("cmo=sensitive_content","yes"),B.set("sc","yes");L===2&&B.set("cmo=td","c.youtube.com");f={format:"RAW",timeout:5E3};return g.X(F,Cg(B.MQ(),f),2)}K=F.W;if(K.xhr.status!==200||!K.xhr.responseText)return F.return(Promise.reject(new g.iL("b204258371_no_host",B.MQ(),K.xhr.status)));V=new g.Fk(K.xhr.responseText);
|
|
J=wy(19,V);R=V.get("ms");Z=Yq(A,J);N=V.get("mm");Z.set("ms",R);Z.set("mm",N);return J&&PnS(J)?L!==2||CT(J)?F.return(Z):F.return(Promise.reject(new g.iL("b204258371_untrusted",J,R))):F.return(Promise.reject(new g.iL("b204258371_invalid",J,R)))})};
|
|
eOy=function(A){var L=A.U;A.U=[];return L};
|
|
PnS=function(A){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(A)};
|
|
CT=function(A){var L=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(A)&&!L.test(A)};
|
|
nce=function(A,L){this.location=A;this.N=L};
|
|
vl=function(A){this.N7=A;this.W=!1;this.N=[]};
|
|
Pl=function(A){for(;A.N.length&&!A.N[0].isEncrypted;){var L=A.N.shift(),B=L.videoId,f=L.TB,K=L.formatId,V=L.buffer;L=L.HJ;if(V)L=void 0,(L=qq(A.N7.xs,B))==null||A4(L,f,K,V);else if(L)A.N7.xs.s0(B,f,K);else if(f=A.N7,f.N[K].xF=!0,B=qq(f.xs,B),B==null?0:B.EE.has(K))B==null||nT(B,K)}};
|
|
g.zOD=function(A){this.data=A;this.N=0;this.U=!1;this.V=0;this.error=!1;this.register=this.W=0;if(xq.length===0){xq.length=288;xq.fill(8);for(A=144;A<280;A++)xq[A]=A<=255?9:7;e2.length=32;e2.fill(5);n6.length=286;n6.fill(0);for(A=261;A<285;A++)n6[A]=Math.floor((A-261)/4);zm[257]=3;for(A=258;A<285;A++){var L=zm[A-1];L+=1<<n6[A-1];zm[A]=L}zm[285]=258;for(A=0;A<30;A++)uR[A]=A<=3?0:Math.floor((A-2)/2);for(A=aP[0]=1;A<30;A++)L=aP[A-1],L+=1<<uR[A-1],aP[A]=L}A=100+7*this.data.length;this.data[0]===31&&this.data[1]===
|
|
139&&(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.LXy=function(A){for(;!A.U&&!A.error;){var L=A;L.U=!!AB(L,1);switch(AB(L,2)){case 2:var B=[],f=[];f.length=19;f.fill(0);var K=AB(L,5)+257;var V=AB(L,5)+1;for(var J=AB(L,4)+4,R=0;R<J;R++)f[u1y[R]]=AB(L,3);f=Li(f);for(J=K+V;B.length<J;){R=a_e(L,f);switch(R){case 16:R=B[B.length-1];var Z=AB(L,2)+3;break;case 17:R=0;Z=AB(L,3)+3;break;case 18:R=0;Z=AB(L,7)+11;break;default:Z=1}for(;Z>0;Z--)B.push(R)}B.length!==J?L.error=!0:(V=B.slice(-V),B.length=K,Aa7(L,B,V));break;case 1:Aa7(L,xq,e2);break;case 0:oS(L,
|
|
L.N&7);B=AB(L,16);K=AB(L,16);(B^K)!==65535&&(L.error=!0);L.output.set(L.data.subarray(L.W,L.W+B),L.V);L.W+=B;L.V+=B;break;default:L.error=!0}A.V>A.output.length&&(A.output=new Uint8Array(A.V*2),A.V=0,A.W=0,A.U=!1,A.N=0,A.register=0)}A.output.length!==A.V&&(A.output=A.output.subarray(0,A.V));return A.error?new Uint8Array(0):A.output};
|
|
Aa7=function(A,L,B){L=Li(L);B=Li(B);for(var f=A.data,K=A.output,V=A.V,J=A.register,R=A.N,Z=A.W;;){if(R<15){if(Z>f.length){A.error=!0;break}J|=(f[Z+1]<<8)+f[Z]<<R;Z+=2;R+=16}var N=L[J&127];if(N<0)for(J>>=7;N<0;)N=L[(J&1)-N],J>>=1;else J>>=N&15;R-=N&15;N>>=4;if(N<256)K[V++]=N;else if(A.register=J,A.N=R,A.W=Z,N>256){J=zm[N];J+=AB(A,n6[N]);Z=a_e(A,B);R=aP[Z];R+=AB(A,uR[Z]);if(oTe&&J<R)R=V-R,K.copyWithin(V,R,R+J);else for(Z=V+J,N=V;N<Z;N+=4)K[N]=K[N-R],K[N+1]=K[N-R+1],K[N+2]=K[N-R+2],K[N+3]=K[N-R+3];V+=
|
|
J;J=A.register;R=A.N;Z=A.W}else break}A.V=V};
|
|
a_e=function(A,L){if(A.N<7){var B=A.data,f=A.W;f>B.length&&(A.error=!0);A.register|=(B[f+1]<<8)+B[f]<<A.N;A.W+=2;A.N+=16}B=L[A.register&127];if(B>=0)return oS(A,B&15),B>>4;for(oS(A,7);B<0;)B=L[AB(A,1)-B];return B>>4};
|
|
AB=function(A,L){for(;A.N<L;){if(A.W>=A.data.length)return A.error=!0,0;A.register|=A.data[A.W++]<<A.N;A.N+=8}var B=A.register&(1<<L)-1;A.register>>=L;A.N-=L;return B};
|
|
oS=function(A,L){A.N-=L;A.register>>=L};
|
|
Li=function(A){for(var L=[],B=g.m(A),f=B.next();!f.done;f=B.next())f=f.value,L[f]||(L[f]=0),L[f]++;var K=L[0]=0;B=[];var V=0;f=0;for(var J=1;J<L.length;J++)L[J]?f=J:L[J]=0,K=K+L[J-1]<<1,B[J]=K,J>7&&(V+=L[J]);for(K=1;K<V;)K<<=1;L=128;f=new Int16Array(128+(K+f)*2);for(V=0;V<A.length;V++)if(J=A[V]){for(var R=B[J]++,Z=K=0;Z<J;Z++)K=K<<1|R>>Z&1;R=V<<4|J;if(J<=7)for(Z=1<<7-J;Z--;)f[Z<<J|K]=R;else{Z=K&127;J-=7;for(K>>=7;J--;){f[Z]||(f[Z]=-L,L+=2);var N=K&1;K>>=1;Z=N-f[Z]}f[Z]=R}}return f};
|
|
fQk=function(A){var L,B,f,K,V,J,R,Z,N;return g.c(function(F){switch(F.N){case 1:if(!Bpw)throw Error("DecompressionStream is not supported");L=QN.l4();B=new DecompressionStream("gzip");f=B.writable.getWriter();f.write(A);f.close();K=B.readable.getReader();V=new FK([]);case 2:return g.X(F,K.read(),5);case 5:J=F.W;R=J.value;if(Z=J.done){F.Ux(4);break}V.append(R);F.Ux(2);break;case 4:return N=pz(V),QN.UV("gznb",L,Math.ceil(N.byteLength/16)),F.return(N)}})};
|
|
Bm=function(A){qI.call(this,"onesie",A);this.xs=A;this.N={};this.U=!0;this.V=null;this.queue=new vl(this);this.D={}};
|
|
fi=function(A){var L=A.queue;L.N.length&&L.N[0].isEncrypted&&!L.W&&(L.N.length=0);L=g.m(Object.keys(A.N));for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=A.N[B];if(!f.xF){var K=A.queue;K.N.push({videoId:f.videoId,formatId:B,isEncrypted:!1});K.W||Pl(K)}}};
|
|
KX6=function(A,L){var B=L.totalLength,f=!1;switch(A.V){case 0:A.iV(L,A.U).then(function(K){var V=A.xs;V.S$("oprr");V.playerResponse=K;V.zA||(V.zr=!1);Ki(V)},function(K){A.xs.fail(K)});
|
|
break;case 2:A.S$("ormk");L=pz(L);A.queue.decrypt(L);break;default:f=!0}A.xs.oU&&A.xs.Hn("ombup","id.11;pt."+A.V+";len."+B+(f?";ignored.1":""));A.V=null};
|
|
VC7=function(A,L){var B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:A.xs.S$("oprgz_s");if(!Bpw){R.Ux(2);break}g.S5(R,3);return g.X(R,fQk(L),5);case 5:return B=R.W,A.xs.S$("oprgz_n"),A.xs.Hn("oprsgz",{i:"n"}),R.return(B);case 3:f=g.NX(R),A.xs.Hn("gzerr",{impl:"native",err:""+f});case 2:if(K=A.xs.K().GZ)try{var Z=QN.l4(),N=K.aV(L),F=K,D=N!=null?N:L,I=D.byteOffset,d=D.byteLength,w=F.exports.getInflatedSize(I,d);if(w===0)throw Error("wasm_gz: bad input");var r=F.malloc(w),h=F.exports.inflateGzip(I,
|
|
d,r);if(h)throw F.free(r),Error("wasm_gz: fail"+h);var Q=new Uint8Array(F.exports.memory.buffer,r,w);N&&K.free(N.byteOffset);var l=K.Sx(Q);QN.UV("gzwb",Z,Math.ceil(l.byteLength/16));V=l;A.xs.S$("oprgz_w");A.xs.Hn("oprsgz",{i:"w"});return R.return(V)}catch(C){A.xs.Hn("gzerr",{impl:"wasm",err:""+C})}Z=QN.l4();N=g.LXy(new g.zOD(L));QN.UV("gzjb",Z,Math.ceil(N.byteLength/16));J=N;A.xs.S$("oprgz_p");A.xs.Hn("oprsgz",{i:"j"});return R.return(J)}})};
|
|
Ja1=function(A){return new Promise(function(L){setTimeout(L,A)})};
|
|
Srv=function(A,L){var B=A.K();var f=A.LD&&B.J("html5_onesie_preload_use_content_owner"),K=A.jF;f=f===void 0?!1:f;if(B=sR(L.L.experiments,"debug_bandaid_hostname")){var V=g.Am(L.L.experiments,"debug_bandaid_port");V=V>0?B+":"+V:B;B=L.L.experiments.GL("debug_bandaid_insecure_scheme");L=Yq(L,V,B)}else f&&(K==null?0:K.url)&&!L.W?(V=wy(17,new g.Fk(K.url)),L=Yq(L,V)):L=(V=L.N.get(0))==null?void 0:V.location.clone();if(L&&A.videoId){V=$i(A.videoId);A=[];if(V)for(V=g.m(V),B=V.next();!B.done;B=V.next())A.push(B.value.toString(16).padStart(2,
|
|
"0"));L.set("id",A.join(""));return L}};
|
|
Ry1=function(A,L,B){B=B===void 0?0:B;var f,K;return g.c(function(V){if(V.N==1)return f=[],f.push(L.load()),B>0&&f.push(Ja1(B)),g.X(V,Promise.race(f),2);K=Srv(A,L);return V.return(K)})};
|
|
Zrv=function(A,L,B,f){f=f===void 0?!1:f;A.set("cpn",L.clientPlaybackNonce);A.set("opr","1");var K=L.K();A.set("por","1");VS()||A.set("onem","1");L.startSeconds>0&&A.set("osts",""+L.startSeconds);f||(K.J("html5_onesie_disable_partial_segments")&&A.set("oses","1"),L=K.J("html5_gapless_onesie_no_media_bytes")&&pr(L)&&L.LD,B&&!L?(L=B.audio,A.set("pvi",B.video.join(",")),K.J("html5_onesie_disable_audio_bytes")||A.set("pai",L.join(",")),Km||A.set("osh","1")):(A.set("oad","0"),A.set("ovd","0"),A.set("oaad",
|
|
"0"),A.set("oavd","0")))};
|
|
Npe=function(A,L,B,f,K){K=K===void 0?!1:K;var V="https://youtubei.googleapis.com/youtubei/"+L.e6.innertubeApiVersion+"/player",J=[{name:"Content-Type",value:"application/json"}];f&&J.push({name:"Authorization",value:"Bearer "+f});J.push({name:"User-Agent",value:g.fa()});g.A_("EOM_VISITOR_DATA")?J.push({name:"X-Goog-EOM-Visitor-Id",value:g.A_("EOM_VISITOR_DATA")}):(B=B.visitorData||g.A_("VISITOR_DATA"))&&J.push({name:"X-Goog-Visitor-Id",value:B});(B=g.A_("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&J.push({name:"X-YouTube-Lava-Device-Context",
|
|
value:B});(L=sR(L.experiments,"debug_sherlog_username"))&&J.push({name:"X-Youtube-Sherlog-Username",value:L});A=bD(JSON.stringify(A));return{url:V,rr:J,postBody:A,Eys:K,oM:K}};
|
|
V_=function(A,L,B,f,K,V,J,R,Z){var N=A.LW,F=A.g7;A=A.SN1;var D=N!==void 0&&F!==void 0,I=f.getVideoData(),d,w=L.N.encryptedClientKey;L=D?L.iv:void 0;D=ub(V,!0);K=K||!!VS()&&D>1572864;return{innertubeRequest:{RIF:A,Xa:N,g7:F,encryptedClientKey:w,iv:L,UqF:!0,SB:!0,Ti:"DecompressionStream"in window||!K,A2T:B.experiments.GL("html5_use_jsonformatter_to_parse_player_response")},No:wpS({Ml:V,tF:B,Np:f,ut:I.startSeconds*1E3}),onesieUstreamerConfig:J,xC:R,mZ:UV(I),reloadPlaybackParams:(d=I.dB)==null?void 0:
|
|
d.reloadPlaybackParams,CCF:Z}};
|
|
FX7=function(A,L,B,f,K,V,J,R){var Z=g.qA(A,rN),N;if(!A.oM)if(N=Ug7(L,Z)){var F=N.Qn;N=N.signature}else N=F=L.encrypt(Z),(0,g.bc)(),N=UJC(new Yuk(L.N.V),N,L.iv);return V_(F&&N?{LW:F,g7:N}:{SN1:Z},L,B,f,!!A.oM,K,V,J,R)};
|
|
DGv=function(A,L,B,f,K,V,J,R){var Z,N,F;return g.c(function(D){if(D.N==1)return Z=g.qA(A,rN),g.X(D,Ye1(L,Z),2);if(D.N!=3)return N=D.W,g.X(D,W$e(L,N),3);F=D.W;return D.return(V_({LW:N,g7:F},L,B,f,!!A.oM,K,V,J,R))})};
|
|
dGw=function(A,L,B,f,K,V,J,R){var Z=g.qA(A,rN);if(Z=Ug7(L,Z))return V_({LW:Z.Qn,g7:Z.signature},L,B,f,!!A.oM,K,V,J,R)};
|
|
Sn=function(A,L,B){g.Y.call(this);var f=this;this.Np=A;this.playerRequest=L;this.Ml=B;this.logger=new g.sI("onesie");this.C6=[];this.xhr=null;this.state=1;this.lD=new yV;this.vU=!1;this.playerResponse="";this.S5=new hi(this);this.N7=new Bm(this);this.Zp="";this.tH=this.wx=!1;this.eU="";this.enableCompression=this.zA=this.yZ=!1;this.U1=[];this.tO=-1;this.kt=0;this.L=this.Np.K();this.videoData=this.Np.getVideoData();this.oU=this.L.hw();this.f6=this.L.Pz;this.Ky=new Eh(this.f6.N);this.Y$=this.L.J("html5_onesie_check_timeout");
|
|
this.FX=new g.aa(this.E4,500,this);this.G5=new g.aa(this.Mk,1E4,this);this.TE=new g.aa(function(){if(!f.isComplete()){var K=JB(f);f.fail(new g.K$("net.timeout",K))}},1E3);
|
|
this.Re=new g.aa(this.Tis,2E3,this);this.pj=this.Np.rW();this.zr=this.J("html5_onesie_wait_for_media_availability");g.W(this.videoData,this);g.W(this,this.FX);g.W(this,this.G5);g.W(this,this.Re);A=h7();Km&&A&&(this.HV=new Map);this.vv=new Map;this.iJ=new Map;this.I2=new Map;this.FJ=new Map};
|
|
qq=function(A,L){var B;return(B=A.HV)==null?void 0:B.get(L)};
|
|
wKe=function(A,L,B){var f;return g.c(function(K){if(K.N==1)return A.S$("oprd_s"),IQS(A)?g.X(K,vcv(A.Ky,L,B),3):(f=A.Ky.decrypt(L,B),K.Ux(2));K.N!=2&&(f=K.W);A.S$("oprd_c");return K.return(f)})};
|
|
pKy=function(A){return A.J("html5_onesie_host_probing")||A.oU?Km:!1};
|
|
Ki=function(A){if(!A.playerResponse)return!1;if(A.yZ)return!0;var L=A.videoData.J("html5_onesie_audio_only_playback")&&y7(A.videoData);if(A.HV&&A.zr){if(!A.HV.has(A.Zp))return!1;var B=A.HV.get(A.Zp),f;if(f=B){f=!1;for(var K=g.m(B.EE.keys()),V=K.next();!V.done;V=K.next())if(V=B.EE.get(V.value))for(var J=g.m(V.Zs),R=J.next();!R.done;R=J.next())R.value.a6>0&&(V.NF?f=!0:L=!0);f=!(L&&f)}if(f)return!1}A.S$("ofr");A.lD.resolve(A.playerResponse);if(!A.Y$){var Z;(Z=A.TE)==null||Z.start();A.G5.start()}return A.yZ=
|
|
!0};
|
|
jq6=function(A){if(A.HV&&!A.J("html5_onesie_media_capabilities")){A.S$("ogsf_s");var L=Z31(A.Np.getVideoData(),function(f,K){A.Hn(f,K)}),B=yae(A.Np);
|
|
L.video=LrS(B,L.video);A.S$("ogsf_c");if(L.video.length)return L;A.Hn("ombspf","l."+B.W+";u."+B.N+";o."+B.V+";r."+B.reason)}};
|
|
IQS=function(A,L){return A.J("html5_onesie_sync_request_encryption")||(L==null?0:L.oM)||g.Ng(A.L)&&A.J("html5_embed_onesie_use_sync_encryption")?!1:!!VS()};
|
|
JB=function(A){if(!A.By)return{};var L=A.By.Rg(),B;L.d=(B=A.By.wT)==null?void 0:B.PV();L.shost=A.Tc;L.ty="o";return L};
|
|
gT0=function(A,L){var B,f;(f=(A=(B=A.HV)==null?void 0:B.get(L))==null)||(L=A.V?!1:A.V=!0,f=!L);return!f};
|
|
RS=function(A,L,B,f,K,V,J,R,Z,N,F,D){g.Y.call(this);var I=this;this.Np=A;this.loader=L;this.policy=B;this.audioTrack=f;this.videoTrack=K;this.gT=V;this.Ml=J;this.ql=R;this.W=Z;this.timing=N;this.Vj=F;this.G=D;this.N=[];this.U={};this.Cr=this.Nl=!1;this.Wn=this.cn=this.O0=0;this.qp={aJ:0,S8:0};this.Ox={aJ:0,S8:0};this.TV=null;this.wT={VK:[],lM:[]};this.JF={VK:[],lM:[]};this.T=null;this.D=[];this.S4=0;this.sx=!1;this.GV={YrT:function(){return I.N},
|
|
GgF:function(){return I.U},
|
|
xyr:function(){I.N.length=0},
|
|
k$L:function(){return I.videoData.S4},
|
|
HuL:function(){return I.Wn},
|
|
koT:function(d){I.Wn=d},
|
|
FMx:function(d){I.qp.S8=d},
|
|
rC:function(d){I.T=d},
|
|
dE:function(d){I.D=d},
|
|
NG:function(){return I.NG()}};
|
|
this.videoData=this.Np.getVideoData();this.yj=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.Tf;this.policy.iW&&(this.ZM=new y1(this.loader,this.policy,this.Ml),g.W(this,this.ZM))};
|
|
sqE=function(A,L){if(Gp8(A)){L=raE(A,L);A.N.push(L);var B;(B=A.ZM)==null||j2(B,A.gT.yj);A.yj>0&&A.qp.S8++}};
|
|
raE=function(A,L){A.policy.X&&A.loader.Hn("sabrcrq",{create:1});var B=new $q(0,A.gT.yj,A);A.W.yj=!1;return Hre(A,B,L)};
|
|
Zj=function(A){var L,B=A.policy.D&&((L=A.loader)==null?void 0:L.vT());L=A.loader.getCurrentTime()||0;L=hy1(A,L);if(A.policy.Sr&&A.loader.isSeeking()){var f=L6(A.videoTrack,L);A.loader.Hn("asmtfnctv",{b:L,a:f});isNaN(f)||(L=f)}f=A.loader.pY()||0;L+=f;f=Ur(A.videoData)||g.MG(A.videoData);var K=0;B?(f&&(K=Number.MAX_SAFE_INTEGER),A.videoData.hd&&(K=Math.ceil(A.videoData.SO*1E3))):K=Math.ceil(L*1E3);return Math.min(Number.MAX_SAFE_INTEGER,K)};
|
|
N8=function(A){return A.policy.WR&&!!A.T};
|
|
hy1=function(A,L){if(A.loader.isSeeking())return L;var B=A.Np.pD();if(!B)return L;B=B.YJ();if(B.length===0||aT(B,L))return L;if(!A.videoTrack.qy(L)&&!A.audioTrack.qy(L))return A.loader.Hn("sundrn",{b:0,lt:L}),L;for(var f=L,K=Infinity,V=0;V<B.length;V++)if(!(B.start(V)>L)){var J=L-B.end(V);J<K&&(K=J,f=B.end(V))}return f!==L&&(A.loader.Hn("sundrn",{bre:f,lt:L}),K>=20)?(A.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),L):f};
|
|
Dj=function(A,L,B){A=A.loader.pY()||0;return Fg(L,(B+A)*1E3)/1E3+B};
|
|
Gp8=function(A){if(!brQ(A,A.qp)||RP(A.audioTrack)&&RP(A.videoTrack))return!1;if(A.policy.W)if(A.policy.T){var L;if((L=A.G)==null)var B=0;else{B=!1;L=g.m(L.N.entries());for(var f=L.next();!f.done;f=L.next())if(f=g.m(f.value),f.next(),f=f.next().value,f.event!=="predictStart"&&f.uW===5){var K=void 0,V=void 0;((K=f)==null?0:K.n6)&&Date.now()-((V=f)==null?NaN:V.n6)>1E4?f.uW=1:B=!0}}if(B)return!1}else if(B=!1,A.Vj.W===2?B=!0:A.Vj.W===3&&(Zj(A),A.loader.pY(),K=aN(A.audioTrack,A.loader.isSeeking()).VK,L=
|
|
aN(A.videoTrack,A.loader.isSeeking()).VK,f=A.loader.getCurrentTime()||0,K=Dj(A,K,f),L=Dj(A,L,f),L=Math.min(K,L),f=A.Vj,L>=f.V?(f.Hn("sdai",{haltrq:L,est:f.V}),L=!0):L=!1,L&&(B=!0)),B&&A.policy.X&&A.loader.Hn("sabrcrq",{waitad:1}),B)return!1;A.policy.Bk&&(A.wT=dg(A,A.audioTrack),A.JF=dg(A,A.videoTrack));if(!A.V)return A.policy.X&&A.loader.Hn("sabrcrq",{nopolicy:1}),!0;if(A.Np.kA())return A.policy.X&&A.loader.Hn("sabrcrq",{utc:1}),!0;if(A.W.X)return A.policy.X&&A.loader.Hn("sabrcrq",{audio:1}),!0;if(A.policy.B4&&
|
|
A.W.yj)return A.policy.X&&A.loader.Hn("sabrcrq",{constraint:1}),!0;if(!A.V.targetAudioReadaheadMs||!A.V.targetVideoReadaheadMs)return A.policy.X&&A.loader.Hn("sabrcrq",{noreadahead:1}),!0;if(A.policy.D&&A.loader.vT())return A.policy.X&&A.loader.Hn("sabrcrq",{seekToHead:1}),!0;B=Math.min(Sb(A.loader,A.audioTrack)*1E3,A.V.targetAudioReadaheadMs);L=Math.min(Sb(A.loader,A.videoTrack)*1E3,A.V.targetVideoReadaheadMs);var J=Math.min(B,L),R=A.Np.getCurrentTime()*1E3,Z=tCk(A,R);f=Z.lU;K=Z.tP;V=Z.Hb;Z=Z.jS;
|
|
var N=f<J;var F=K<J;if(N8(A)){R=Fg(A.D,R);var D=R<J;A.Np.hw()&&D&&!N&&!F&&A.loader.Hn("sabrcrnm",{cra:R,mpra:J,cbrl:A.D.length})}if(!(N||F||N8(A)&&D))return A.policy.Bk&&A.Np.hw()&&(V<J||Z<J)&&A.loader.Hn("sabrncrq",{car:f,vac:K,abh:V,vbh:Z,mar:B,mvr:L}),!1;if(A.policy.I1&&kpC(A.loader)&&A.videoData.zt()||A.policy.NBD&&kpC(A.loader))return!1;if(A.policy.X){D=A.loader.Ov();D.car=f;D.vac=K;D.mar=B;D.mvr=L;D.tar=A.V.targetAudioReadaheadMs;D.tvr=A.V.targetVideoReadaheadMs;var I;D.pcl=((I=A.V.playbackCookie)==
|
|
null?void 0:I.length)||0;var d;D.vbu=zv(((d=A.Np.pD())==null?void 0:d.YJ())||null);D.abh=V;D.vbh=Z;A.loader.Hn("sabrcrq",D)}return!0};
|
|
dg=function(A,L){Zj(A);A.loader.pY();return aN(L,A.loader.isSeeking())};
|
|
Fg=function(A,L){var B=0,f=-1;A=g.m(A);for(var K=A.next();!K.done;K=A.next())if(K=K.value,!(K.startTimeMs+K.durationMs<L)){if(f<0&&K.startTimeMs>L||f>=0&&K.Uj>f+1)break;B=Math.max(B,K.startTimeMs+K.durationMs);f=Math.max(f,K.L8)}return Math.max(0,B-L)};
|
|
Hre=function(A,L,B){var f={Ml:A.Ml,YD:function(Z,N){A.Np.MX(Z,N)},
|
|
xm:A.policy.gy,L6:A.policy.V};A.Ml.W.T&&(f.qz=(A.videoTrack.b1.info.lC||0)+(A.audioTrack.b1.info.lC||0));A.policy.iF&&(f.So=A.audioTrack.b1.index.w7(),f.xm=!1);var K=EcQ(L,A.policy,A.U)?2:1;K!==A.Wn&&(A.Wn=K,Tp8(A));B=A.NG(B);if(A.policy.Wn&&A.policy.V&&B.ES){for(var V=K="",J=g.m(B.ES),R=J.next();!R.done;R=J.next())R=R.value,A.videoData.sabrContextUpdates.has(R)||A.policy.Wn&&B.rE&&B.rE.type===R?K+="_"+R:V+="_"+R;A.loader.Hn("sabrbldrqs",{ctxts:K,misctxts:V})}!L.setData(B,A.policy,A.U)&&A.policy.Wn&&
|
|
A.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);f=new L5(A.policy,L,A.gT,A.U,A,f,A.loader.rW());oN(A.timing);A.policy.X&&A.loader.Hn("sabrcrq",{rn:f.zb(),probe:L.kh()});return f};
|
|
pi=function(A,L){if(L.TL()||A.TL())A.policy.XV||(A.policy.D?IS(A.loader):A.loader.yG());else{if(A.policy.V&&L.isComplete()&&L instanceof L5){var B=A.loader,f=B.Hn,K,V,J=Object.assign(L.By.Rg(),{rst:L.state,strm:L.xhr.v4(),d:(K=L.By.wT)==null?void 0:K.PV(),cncl:L.xhr&&L.RA.D?1:0,rqb:L.qO,cwt:L.RA.V,swt:(V=L.M3)==null?void 0:V.md});K=Object.assign(c$w(L.info),J);f.call(B,"rqs",K)}if(L.isComplete()&&L.kh()&&L instanceof L5)A.policy.N8?L.Xw()?(L.dispose(),A.N.length===0?A.loader.yG():(A=A.N[0],A instanceof
|
|
L5&&A.K5()&&A.oG())):L.LQ()&&A.loader.handleError(L.p8(),L.tj()):(L.dispose(),A.loader.yG());else{if(L.TG())L instanceof L5&&Mlk(A.timing,L),Tp8(A),wg(A);else if(L.LQ())if(B=A.Np.kA(),L instanceof L5&&Oh(L.info)&&B&&A.loader.o5(B),L instanceof L5&&Xpk(L)){var R;(R=A.loader.yh)==null||t4(R)}else L instanceof Sn?A.N.pop():(R=1,L.canRetry()&&kq(A.loader)&&(lQk(A,L),R=0),A.loader.handleError(L.p8(),L.tj(),R));else{if(A.loader.isSuspended&&!L.isComplete())return;wg(A)}L.TL()||L instanceof Sn||(L.isComplete()?
|
|
R=r$L(L,A.policy,A.U):(R=Gd6(L,A.policy,A.U),R===1&&(A.Nl=!0)),R!==0&&(B=new $q(1,L.info.wi),B.P9=R===2,Hre(A,B)));A.policy.Pz&&!L.isComplete()?mZ(A.loader):A.loader.yG()}}};
|
|
wg=function(A){for(;A.N.length&&A.N[0].Gp(A.TP());){var L=A.N.shift();mG6(A,L)}A.N.length&&mG6(A,A.N[0])};
|
|
mG6=function(A,L){L instanceof L5&&(A.Ex=L);var B=new Set(L.Wq(A.TP()));B=g.m(B);for(var f=B.next();!f.done;f=B.next()){var K=f.value;if(!(f=!(L instanceof Sn))){f=A.W;var V=f.gT.iC,J=iR(f.videoInfos,V);V=ioQ(f,K,V);var R=J.includes(K);!f.Iy.JN||V||R||f.loader.Hn("sabrcpf",{fid:""+K,vfids:""+J.join("."),said:f.G||""});f=V||J.includes(K)}if(f&&(f=L.PA(K,A.TP()),J=A.policy.WR&&xa(f[0].b1.info.mimeType),L.HA(K,A.TP())))for(K=L.Ud(K,A.TP()),K=g.m(K),V=K.next();!V.done;V=K.next())if(V=V.value,A.policy.V&&
|
|
L instanceof Sn&&A.loader.Hn("omblss",{s:V.info.Dx()}),J)R=A.timing,R.Wn||(R.Wn=(0,g.bc)(),g.i1("fcb_r",R.Wn,R.N)),R=A,R.videoData.iC()&&R.T&&nq(R.T)===nq(g.vV(V.info.b1.info,R.gT.iC))&&R.Np.publish("sabrCaptionsDataLoaded",V,R.dE.bind(R));else{R=V.info.b1.info.NF();var Z=V.info.b1;if(R){var N=void 0;var F=A.W,D=(N=L.Ko(A.TP()))==null?void 0:N.token;F.X&&Z!==F.D?N=!0:(F.X=!1,Z!==F.D&&(F.D=Z,F.VP(Z,F.audioTrack,D)),N=!1);if(N)continue}else N=void 0,Tde(A.W,Z,(N=L.Ko(A.TP()))==null?void 0:N.token);
|
|
N=R?A.audioTrack:A.videoTrack;L instanceof Sn&&(N.T=!1,L instanceof Sn&&(R?cLC(A.timing):E61(A.timing)));try{uP(N,f,V)}catch(I){V=JT(I),A.loader.handleError(V.errorCode,V.details,V.severity),N.KV(),A.BL(!1,"pushSlice"),IS(A.loader)}}}};
|
|
lQk=function(A,L){A.policy.Wn?A.N.splice(A.N.indexOf(L)).forEach(function(B){B.dispose()}):(A.N.pop(),L==null||L.dispose())};
|
|
QqQ=function(A,L,B){for(var f=[],K=0;K<A.N.length;K++)L&&A.N[K]instanceof Sn?f.push(A.N[K]):(A.policy.X&&A.loader.Hn("sabrcrq",{d:A.N[K].zb(),src:B}),A.N[K].dispose());A.N=f};
|
|
Tp8=function(A){A.videoData.S4.clear();if(A.videoData.sabrContextUpdates.size>0)for(var L=g.m(A.videoData.sabrContextUpdates.keys()),B=L.next();!B.done;B=L.next()){B=B.value;var f=void 0;((f=A.videoData.sabrContextUpdates.get(B))==null?0:f.sendByDefault)&&A.videoData.S4.add(B)}if(A.policy.Wn&&A.N.length)for(L=g.m(A.N),B=L.next();!B.done;B=L.next())(B=B.value.OF())&&B.type&&B.sendByDefault&&A.videoData.S4.add(B.type)};
|
|
Cj7=function(A){A.policy.k6&&(A.Ys=void 0,A.O0=0)};
|
|
irE=function(A,L){if(L.LQ()||L.TL()){var B=A.loader,f=B.Hn,K=L.state;A=A.TP();var V,J;if((L=(V=L.HV)==null?void 0:V.get(A))==null)L=void 0;else{V=0;A=L.Wq();for(var R=0;R<A.length;R++){var Z=void 0;V+=((Z=L.EE.get(A[R]))==null?void 0:Z.bytesReceived)||0}L=V}L=(J=L)!=null?J:-1;f.call(B,"sabromb",{s:K,tbytes:L})}else A.N.push(L),L.U1.push(A),oN(A.timing),A.policy.BR&&L.JQ&&A.eJ(L.JQ,L.zb())};
|
|
brQ=function(A,L){a:{if(A.yj>0){var B=Math.floor((0,g.bc)()/1E4);if(B===L.aJ){if(L.S8>=A.yj){L.S8===A.yj&&(B={reason:"toomanyrequests"},B.limit=L.S8,A.loader.handleError("player.exception",B),L.S8+=1);L=!1;break a}}else L.aJ=B,L.S8=0}L=!0}if(!L||A.loader.isSuspended&&A.loader.K6)return!1;if(A.X&&(0,g.bc)()<A.X)return g.Az(A.loader.Rm),!1;if(L=!(A.N.length>0)||A.policy.Wn&&A.N.length===1&&A.N[0].qG()?!0:!1){var f;L=(f=A.gT.yj)!=null&&ez(f,A.policy,A.U,A.loader.ue)?!0:!1}return L&&!A.sx?!0:!1};
|
|
tCk=function(A,L){var B=$GS(A),f=B.Hb;B=B.jS;if(A.policy.Bk){var K=Fg(A.wT.VK,L);A=Fg(A.JF.VK,L)}else K=f,A=B;return{lU:K,tP:A,Hb:f,jS:B}};
|
|
$GS=function(A){var L=K6(A.audioTrack,!0)*1E3;A=K6(A.videoTrack,!0)*1E3;return{Hb:L,jS:A}};
|
|
XK7=function(A){this.Np=A;this.N=new Map;this.delay=null};
|
|
y_=function(A,L){if(kF(A.Np.getPlayerState())&&A.N.size!==0){var B=L!=null?L:Array.from(A.N.values()).sort(function(K,V){return K.mediaTime-V.mediaTime});
|
|
L=A.getCurrentTime();var f=(B[0].mediaTime-L)*1E3/A.Np.getPlaybackRate();if(f<500)for(L=f>0?OrL(A):L,B=g.m(B),f=B.next();!f.done;f=B.next())if(f=f.value,L>=f.mediaTime)f.resolve([f.mediaTime,f.id]),A.N.delete(f.id);else break;ETe(A,L)}};
|
|
caw=function(A,L,B){A.N.delete(B);return new Promise(function(f){A.N.set(B,{id:B,mediaTime:L,resolve:f});f=Array.from(A.N.values()).sort(function(K,V){return K.mediaTime-V.mediaTime});
|
|
B===f[0].id&&y_(A,f)})};
|
|
MC8=function(A){var L;(L=A.delay)==null||L.dispose();A.N.clear()};
|
|
ETe=function(A,L){var B;(B=A.delay)==null||B.dispose();A.delay=null;B=Array.from(A.N.values()).sort(function(f,K){return f.mediaTime-K.mediaTime});
|
|
B.length!==0&&(L=(B[0].mediaTime-L)*1E3/A.Np.getPlaybackRate(),A.delay=new g.aa(function(){y_(A)},L>500?L-500:L),A.delay.start())};
|
|
OrL=function(A){var L,B;return(B=(L=A.Np.pD())==null?void 0:L.getCurrentTime())!=null?B:A.Np.getCurrentTime()};
|
|
jn=function(A,L,B){var f=this;this.V=A;this.cpn=L;this.Np=B;this.N=new Map;this.W=new Map;this.T=NaN;this.X=!1;this.U=this.l0="";this.isSeeking=!1;this.D=new XK7(B);this.I4=B.I4;this.Np.subscribe("statechange",this.G,this);this.Np.subscribe("SEEK_TO",function(){f.py()});
|
|
this.Np.subscribe("SEEK_COMPLETE",function(){Yry(f)});
|
|
this.l0=this.U=this.cpn};
|
|
WXk=function(A,L,B){var f=!0;f=f===void 0?!1:f;var K=A.N.get(L),V=A.V.getStartTime(L),J=A.V.getDuration(L);A.X=!1;var R=V,Z;((Z=K==null?void 0:K.N)!=null?Z:[A.cpn]).forEach(function(N,F){var D,I=(D=K==null?void 0:K.W[F])!=null?D:J;if(B>=R&&B<R+I){var d;F=N!==A.cpn?R-((d=K==null?void 0:K.U[F])!=null?d:0):R;UG0(A,N,F,f)}else B<R&&(A.X=!0);R+=I})};
|
|
gg=function(A,L,B,f){f=f===void 0?0:f;var K;if(L!==A.T||((K=A.N.get(L))==null?void 0:K.V)!==(B==null?void 0:B.V))if(B?A.N.set(L,B):A.N.delete(L),!A.isSeeking){var V=A.V.getStartTime(L);A.T=L;vT6(A,L);if(B){var J=V;B.N.forEach(function(R,Z){J<V+f||(R!==A.U&&qrD(A,L,R,R!==A.cpn?J-B.U[Z]:J),J+=B.W[Z])})}else A.U!==A.cpn&&qrD(A,L,A.cpn,V+f)}};
|
|
vT6=function(A,L){var B;((B=A.W.get(L))!=null?B:[]).forEach(function(f){A.D.N.delete(f)});
|
|
A.W.delete(L)};
|
|
Yry=function(A){var L,B,f=(B=(L=A.Np.pD())==null?void 0:L.getCurrentTime())!=null?B:A.Np.getCurrentTime(),K=A.V.NV(f);WXk(A,K,f);A.isSeeking=!1;Array.from(A.N.keys()).sort(function(V,J){return V-J}).forEach(function(V){V>K?gg(A,V,A.N.get(V)):V===K&&gg(A,V,A.N.get(V),f-A.V.getStartTime(V))})};
|
|
UG0=function(A,L,B,f){f=f===void 0?!1:f;L!==A.l0&&(A.l0=L,A.Np.publish("playbackstarted",L,B+A.Np.pY(),f))};
|
|
qrD=function(A,L,B,f){A.U=B;B=L+"."+B;A.W.has(L)?A.W.get(L).push(B):A.W.set(L,[B]);caw(A.D,f,B).then(function(K){var V=g.m(K);K=V.next().value;V=V.next().value;var J=g.m(V.split("."));V=J.next().value;J=J.next().value;V=g.m([Number(V),J]);V.next();V=V.next().value;UG0(A,V,K)})};
|
|
GL=function(A,L,B,f,K){this.loader=A;this.policy=L;this.schedule=B;this.Gv=f;this.yj=K;this.Wn=NaN;this.W=this.X=this.U=null;this.N=this.D=this.T=this.startTimeSecs=NaN;this.V=!1;this.G=NaN};
|
|
PjE=function(A,L,B,f,K,V){return L.ye&&L.mH&&B===3?new GL(A,L,f,K,V):null};
|
|
xGe=function(A,L){if(A.policy.yw4){var B=L.info.lC,f=ub(A.schedule);L=L.index.w7();B=Math.max(1,f/B);A.G=Math.round(Math.max(((B-1)*L+A.policy.TZ)/B,L-A.policy.g$)*1E3)}};
|
|
zyS=function(A,L){var B=Date.now()/1E3,f=B-A.startTimeSecs,K=B-A.T,V=K>=A.policy.P0,J=!1;if(V){var R=0;!isNaN(L)&&L>A.D&&(R=L-A.D,A.D=L);R/K<A.policy.urj&&(J=!0);A.T=B}B=f>=A.policy.g$&&!A.V;if(!V&&!B&&eye(A,L))return NaN;B&&(A.V=!0);a:{f=J;B=(0,g.bc)()/1E3-(A.Gv.pw()||0)-A.X.N-A.policy.TZ;V=A.W.startTime;B=V+B;if(f){if(isNaN(L)){rg(A,NaN,"n",L);V=NaN;break a}f=L-A.policy.Ym;f<B&&(B=f)}else A.V&&(f=B+A.policy.TZ-A.Wn+A.policy.A_T,isNaN(L)||(f=Math.max(f,Math.min(B,L-A.policy.Ym))),B=f);V=B=Math.max(B,
|
|
V)}A.N=V;if(isNaN(A.N))return A.clear(),NaN;if(!J&&eye(A,L))return nTD(A,L),NaN;if(A.N<=A.W.startTime)return rg(A,NaN,"y",L),A.clear(),NaN;if(!A.yj(A.N,!1))return!nTD(A,L)&&J&&(rg(A,NaN,"t",L),A.clear()),NaN;J=A.N;rg(A,J,"s",L);A.clear();return J};
|
|
nTD=function(A,L){return A.yj(A.N,!0)?!1:(rg(A,NaN,"ns",L),A.clear(),!0)};
|
|
eye=function(A,L){return isNaN(L)?!0:isNaN(A.N)?!1:L<A.N+(A.V?A.policy.Ym:A.policy.nP4)};
|
|
rg=function(A,L,B,f){var K=A.U.tj();K.ssr_sk=(L*1E3).toFixed(0);K.ssr_t=(A.N*1E3).toFixed(0);K.ssr_r=B;K.ssr_st=(A.startTimeSecs*1E3).toFixed(0);K.ssr_n=(0,g.bc)().toFixed(0);K.ssr_f=(A.X.N*1E3).toFixed(0);K.ssr_fa=A.V?"1":"0";K.ssr_o=(A.Gv.pw()*1E3||0).toFixed(0);K.ssr_v=(f*1E3).toFixed(0);L=A.W.b1.index;L.NE(A.W.XD,!0)&&(K.ssr_ist=(L.getStartTime(A.W.XD)*1E3).toFixed(0),K.ssr_id=(L.getDuration(A.W.XD)*1E3).toFixed(0));A.loader.Hn("ssr",K)};
|
|
uZ8=function(){var A={},L=window.performance;if(L){var B=L.memory;if(B){A.jsTotal=B.totalJSHeapSize;A.jsUsed=B.usedJSHeapSize;A.jsLimit=B.jsHeapSizeLimit;var f,K;A.msTotal=(K=(f=B.getMediaSourceTotalAllocatedMemory)==null?void 0:f.call(B))!=null?K:B.totalMediaSourceSize;var V,J;A.msLimit=(J=(V=B.getMediaSourceMaximumMemoryCapacity)==null?void 0:V.call(B))!=null?J:B.mediaSourceSizeLimit;var R,Z;A.msUsed=(Z=(R=B.getMediaSourceCurrentMemoryCapacity)==null?void 0:R.call(B))!=null?Z:B.usedMediaSourceMemorySize}L.measureAvailableCpuMemory&&
|
|
(A.cbFree=L.measureAvailableCpuMemory());L.measureUsedCpuMemory&&(A.cbUsed=L.measureUsedCpuMemory())}var N;if((N=window.h5vcc)==null?0:N.cVal)A.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),A.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),A.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return A};
|
|
aQv=function(A){return window.PressureObserver&&new window.PressureObserver(A)};
|
|
si=function(A){A=A===void 0?aQv:A;g.Y.call(this);var L=this;try{this.V=A(function(f){L.W=f.at(-1)});
|
|
var B;this.U=(B=this.V)==null?void 0:B.observe("cpu",{sampleInterval:2E3}).catch(function(f){f instanceof DOMException&&(L.N=f)})}catch(f){f instanceof DOMException&&(this.N=f)}};
|
|
AjQ=function(A){var L={},B=window.h5vcc;L.hwConcurrency=navigator.hardwareConcurrency;A.N&&(L.cpe=A.N.message);A.W&&(L.cpt=A.W.time,L.cps=A.W.state);if(B==null?0:B.cVal)L.cb2s=B.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),L.cb5s=B.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),L.cb30s=B.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return L};
|
|
LY7=function(A){var L;g.c(function(B){switch(B.N){case 1:return g.S5(B,2),g.X(B,A.U,4);case 4:g.ZR(B,3);break;case 2:g.NX(B);case 3:(L=A.V)==null||L.disconnect(),g.VK(B)}})};
|
|
Bhk=function(A,L){L?ony.test(A):(A=g.RM(A),Object.keys(A).includes("cpn"))};
|
|
Hm=function(A,L,B,f,K,V){var J={format:"RAW"},R={};if(Fa(A)&&Dp()){var Z=g.A_("EOM_VISITOR_DATA");Z?R["X-Goog-EOM-Visitor-Id"]=Z:f?R["X-Goog-Visitor-Id"]=f:g.A_("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=g.A_("VISITOR_DATA"));B&&(R["X-Goog-PageId"]=B);(f=L.ZM)&&!Ro(L)&&(R["X-Goog-AuthUser"]=f);K&&(R.Authorization="Bearer "+K);L.J("enable_datasync_id_header_in_web_vss_pings")&&L.I_&&L.datasyncId&&(R["X-YouTube-DataSync-Id"]=L.datasyncId);if(L.J("enable_rollout_token_header")){var N,F,D=(N=g.A_("INNERTUBE_CONTEXT"))==
|
|
null?void 0:(F=N.client)==null?void 0:F.rolloutToken;D&&(R["X-YouTube-Rollout-Token"]=D)}Z||R["X-Goog-Visitor-Id"]||K||B||f?J.withCredentials=!0:L.J("html5_send_cpn_with_options")&&ony.test(A)&&(J.withCredentials=!0)}Object.keys(R).length>0&&(J.headers=R);V&&(J.onFinish=V);return Object.keys(J).length>1?J:null};
|
|
hB=function(A,L,B,f,K,V,J,R){Dp()&&B.token&&(A=Zp(A,{ctt:B.token,cttype:B.sR,mdx_environment:B.mdxEnvironment}));f.J("net_pings_low_priority")&&(L||(L={}),L.priority="low");V||R&&f.J("nwl_skip_retry")?(L==null?L={}:Bhk(A,f.J("html5_assert_cpn_with_regex")),J?n4().sendAndWrite(A,L):n4().sendThenWrite(A,L,R)):L?(Bhk(A,f.J("html5_assert_cpn_with_regex")),O8Q(A,L)):g.MJ(A,K)};
|
|
fIw=function(A){for(var L=[],B=0;B<A;B++){for(var f={},K=Math.floor(Math.random()*9*1E8)+1E8,V="",J=0;J<9;J++)V+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];f.videoDecoderName=V;f.elapsedTimeMs=K;L.push(f)}return L};
|
|
KYL=function(A){return window.Profiler&&new window.Profiler(A)};
|
|
VgC=function(A){/[^a-zA-Z0-9;.!_-]/.test(A)&&(A=A.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return A};
|
|
b3=function(A,L,B){A=A===void 0?100:A;L=L===void 0?100:L;B=B===void 0?KYL:B;g.Y.call(this);this.sampleInterval=A;this.maxBufferSize=L;this.D=B;this.encoder=new I5;this.N=[];this.V=0;Jj7(this)};
|
|
Jj7=function(A){var L=A.sampleInterval,B=A.maxBufferSize;if(L>0&&B>0&&!A.W&&A.V<1E7)try{A.U=A.D({sampleInterval:L,maxBufferSize:B});var f;(f=A.U)==null||f.addEventListener("samplebufferfull",function(){return g.c(function(K){if(K.N==1)return g.X(K,A.stop(),2);Jj7(A);g.VK(K)})})}catch(K){A.W=VgC(K.message)}};
|
|
tB=function(A,L){var B,f,K=(B=window.h5vcc)==null?void 0:(f=B.settings)==null?void 0:f.set(A,L);return eM(K)?A2(nS(K),function(){return!0},function(){return!1}):nS(!!K)};
|
|
SU0=function(A){return tB("MediaSource.EnableUsingMediaSourceBufferedRange",A?1:0)};
|
|
RIQ=function(A){return tB("HTTP3",A?1:0)};
|
|
Zmk=function(A){return tB("MediaSource.EnableUsingMediaSourceAttachmentMethods",A?1:0)};
|
|
NhS=function(A){return tB("QUIC",A?1:0)};
|
|
FY0=function(A){return tB("Media.AudioWriteDurationLocal",A)};
|
|
Dm0=function(A){return tB("Media.PlayerConfiguration.DecodeToTexturePreferred",A?1:0)};
|
|
dmk=function(A){return tB("Media.DisableExternalAllocator",A?1:0)};
|
|
II8=function(A){return tB("Media.VideoBufferSizeClampMb",A)};
|
|
whE=function(A){return tB("Media.EnableAllocateOnDemand",A?1:0)};
|
|
yje=function(){var A,L,B,f=(A=window.h5vcc)==null?void 0:(L=A.settings)==null?void 0:(B=L.getPersistentSettingAsString)==null?void 0:B.call(L,"cpu_usage_tracker_intervals");if(f!=null){var K;A=(K=JSON.parse(f))!=null?K:[];K=A.filter(function(N){return N.type==="total"}).map(function(N){return N.seconds});
|
|
L=g.m(phw);for(B=L.next();!B.done;B=L.next())B=B.value,K.indexOf(B)===-1&&A.push({type:"total",seconds:B});var V,J;(V=window.h5vcc)==null||(J=V.settings)==null||J.set("cpu_usage_tracker_intervals_enabled",1);var R,Z;(R=window.h5vcc)==null||(Z=R.settings)==null||Z.set("cpu_usage_tracker_intervals",JSON.stringify(A))}};
|
|
jhQ=function(){var A=window.H5vccPlatformService,L="";if(A&&A.has("dev.cobalt.coat.clientloginfo")&&(A=A.open("dev.cobalt.coat.clientloginfo",function(){}))){var B=A.send(new ArrayBuffer(0));
|
|
B&&(L=String.fromCharCode.apply(String,g.x7(new Uint8Array(B))));A.close()}return L};
|
|
g.l3=function(A){g.Y.call(this);var L=this;this.provider=A;this.logger=new g.sI("qoe");this.N=new Map;this.sequenceNumber=1;this.qp=NaN;this.xb="N";this.G=this.dA=this.L_=this.Wn=this.W=0;this.zV=this.S4=this.T=this.Ex="";this.t$=this.Ys=NaN;this.KY=0;this.N8=-1;this.Pz=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Nl=this.isEmbargoed=this.wT=this.isOffline=this.isBuffering=!1;this.TZ=[];this.yj=null;this.Ox=this.U=this.ZM=this.X=!1;this.V=-1;this.sx=!1;this.k6=new g.aa(this.kLr,750,this);this.Ak=
|
|
this.adCpn="";this.mR=this.d_=this.hk=this.E$=this.adFormat=void 0;this.m1=0;this.GZ=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.LD=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.ql=!1;this.jI=NaN;this.JF=0;this.mH=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Uv=!1;this.nD=new Set;this.GV={ZW:function(V){L.ZW(V)},
|
|
m2p:function(){return L.D},
|
|
reportStats:function(){L.reportStats()},
|
|
xTT:function(){return L.N.get("cat")||[]},
|
|
CU:function(V){return L.N.get(V)||[]},
|
|
s54:function(){return L.N},
|
|
Yhp:function(){return{adCpn:L.adCpn,Ak:L.Ak,adFormat:L.adFormat}},
|
|
it1:function(){return{E$:L.E$,hk:L.hk,d_:L.d_,mR:L.mR}}};
|
|
this.Vj=this.provider.L.J("html5_qoe_relaxed_reporting");var B=g.Am(this.provider.L.experiments,"html5_qoe_proto_mock_length");B&&!kk.length&&(kk=fIw(B));g.W(this,this.k6);try{var f,K;(K=(f=navigator).getBattery)==null||K.call(f).then(function(V){L.yj=V})}catch(V){}g.TL(this,0,"vps",["N"]);
|
|
A.L.hw()&&(this.JF=(0,g.bc)(),this.jI=g.Gc(function(){var V=(0,g.bc)(),J=V-L.JF;J>500&&L.Hn("vmlock",{diff:J.toFixed()});L.JF=V},250));
|
|
this.provider.videoData.bY&&(this.remoteControlMode=gn6[this.provider.videoData.bY]||0);this.provider.videoData.CQ&&(B=tiv(this.provider.videoData.CQ),B==null?0:B.length)&&(this.remoteConnectedDevices=B);A.L.hw()&&(this.cn=new si,g.W(this,this.cn));Bf7(A.L)&&(this.Cr=new b3,g.W(this,this.Cr))};
|
|
mB=function(A,L,B){var f=A.N.get(L);f?f.push(B):A.N.set(L,[B])};
|
|
g.TL=function(A,L,B,f){mB(A,B,L.toFixed(3)+":"+f.join(":"))};
|
|
Q_=function(A,L){var B=A.provider.getCurrentTime();g.TL(A,L,"cmt",[B.toFixed(3)]);var f=B=A.provider.Fb();if((!A.D||A.provider.L.J("html5_shorts_gapless_no_gllat")&&pr(A.provider.videoData)?0:f*1E3>A.D.Y4+100)&&A.D){var K=A.D;f=K.isAd;B=B*1E3-K.Y4;A.F4=L*1E3-K.Hhx-B-K.pVF;K=(0,g.bc)()-B;L=A.F4;B=A.provider.videoData;var V=B.isAd();if(f||V){V=(f?"ad":"video")+"_to_"+(V?"ad":"video");var J={};B.T&&(J.cttAuthInfo={token:B.T,videoId:B.videoId});J.startTime=K-L;C0(V,J);g.Qm({targetVideoId:B.videoId,targetCpn:B.clientPlaybackNonce},
|
|
V);mF("pbs",K,V)}else K=A.provider.Np.zH(),K.T!==B.clientPlaybackNonce?(K.D=B.clientPlaybackNonce,K.W=L):B.zt()||g.CE(new g.iL("CSI timing logged before gllat",{cpn:B.clientPlaybackNonce}));A.Hn("gllat",{l:A.F4.toFixed(),prev_ad:+f});delete A.D}};
|
|
$k=function(A,L){L=L===void 0?NaN:L;L=L>=0?L:g.Ci(A.provider);var B=A.provider.Np.Uq(),f=B.lA-(A.Ys||0);f>0&&g.TL(A,L,"bwm",[f,(B.KC-(A.t$||0)).toFixed(3)]);isNaN(A.Ys)&&B.lA&&A.isOffline&&A.ZW(!1);A.Ys=B.lA;A.t$=B.KC;isNaN(B.bandwidthEstimate)||g.TL(A,L,"bwe",[B.bandwidthEstimate.toFixed(0)]);A.provider.L.hw()&&Object.keys(B.N).length!==0&&A.Hn("bwinfo",B.N);if(A.provider.L.hw()||A.provider.L.J("html5_log_meminfo"))f=uZ8(),Object.values(f).some(function(V){return V!==void 0})&&A.Hn("meminfo",f);
|
|
if(A.provider.L.hw()){var K;(f=(K=A.cn)==null?void 0:AjQ(K))&&Object.values(f).some(function(V){return V!=null})&&A.Hn("cpuinfo",f)}A.Cr&&A.Hn("jsprof",A.Cr.flush());
|
|
A.yj&&g.TL(A,L,"bat",[A.yj.level,A.yj.charging?"1":"0"]);K=A.provider.Np.getVisibilityState();A.N8!==K&&(g.TL(A,L,"vis",[K]),A.N8=K);Q_(A,L);(K=GgQ(A.provider))&&K!==A.KY&&(g.TL(A,L,"conn",[K]),A.KY=K);i3(A,L,B)};
|
|
rje=function(A){var L=A.provider.Np.Uq(),B=g.Ci(A.provider);i3(A,B,L);var f=L.V;L=L.U;isNaN(f)||(A.provider.L.J("html5_unified_live_latency_reporting")&&!isNaN(L)&&L?g.TL(A,B,"e2el",[f.toFixed(3),L.toFixed(3)]):g.TL(A,B,"e2el",[f.toFixed(3)]))};
|
|
i3=function(A,L,B){if(!isNaN(B.zo)){var f=B.zo;B.W<f&&(f=B.W);g.TL(A,L,"bh",[f.toFixed(3)])}};
|
|
sh6=function(A,L){L={cpn:A.provider.videoData.clientPlaybackNonce,sequenceNumber:L,serializedWatchEndpointLoggingContext:A.provider.videoData.Zt};A.serializedHouseBrandPlayerServiceLoggingContext&&(L.serializedHouseBrandPlayerServiceLoggingContext=WX(A.serializedHouseBrandPlayerServiceLoggingContext)||void 0);A.provider.videoData.playerResponseCpn&&(L.playerResponseCpn=A.provider.videoData.playerResponseCpn);kk.length&&(L.decoderInfo=kk);A.remoteControlMode&&(L.remoteControlMode=A.remoteControlMode);
|
|
A.remoteConnectedDevices.length&&(L.remoteConnectedDevices=A.remoteConnectedDevices);var B;if((B=A.mR)==null?0:B.length)L.serializedQoeContextData=A.mR.map(function(f){return bD(f)});
|
|
return L};
|
|
Hmv=function(A,L,B){g.po(A.provider.L,g.Aj(A.provider.videoData)).then(function(f){var K=!1;L.includes("&dt=")||L.includes("&cotn=")?K=!0:A.provider.L.J("qoe_with_networkless")&&(K=!0);var V=A.provider.L.J("qoe_send_and_write"),J=A.provider.L;f=Hm(L,J,A.provider.L.pageId,A.provider.L.sendVisitorIdHeader?A.provider.videoData.visitorData:void 0,f);J.J("html5_simplify_pings")&&(f=f||{});f?(f.method="POST",f.postBody=B,hB(L,f,{token:A.provider.videoData.T,sR:A.provider.videoData.Zl,mdxEnvironment:A.provider.videoData.mdxEnvironment},
|
|
J,void 0,K,V&&A.wT)):K?(K=A.provider.L.J("networkless_ajax"),J={method:"POST",postBody:B},V&&A.wT?n4().sendAndWrite(L,J):K?g.ll(L,{method:"POST",postBody:B}):n4().sendThenWrite(L,J)):(V=B,V=V===void 0?"":V,$Hw(L,V)||g.MJ(L,void 0,void 0,void 0,V))})};
|
|
Xg=function(A){if(!A.provider.L.J("html5_qoe_no_len_check")){for(var L=0,B=g.m(A.N.entries()),f=B.next();!f.done;f=B.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;L+=f.length+Number(Cv(K,function(V,J){return V+J.length},0))}L>96E3&&(new g.aa(A.reportStats,0,A)).start()}};
|
|
hIL=function(A){A.provider.videoData.LD&&Oi(A,"prefetch");A.provider.videoData.Cr&&A.Hn("reload",{r:A.provider.videoData.reloadReason,ct:A.provider.videoData.Cr});A.provider.videoData.I7&&Oi(A,"monitor");A.provider.videoData.isLivePlayback&&Oi(A,"live");Km&&Oi(A,"streaming");A.provider.videoData.bY&&A.Hn("ctrl",{mode:A.provider.videoData.bY},!0);if(A.provider.videoData.CQ){var L=A.provider.videoData.CQ.replace(/,/g,"_");A.Hn("ytp",{type:L},!0)}A.provider.videoData.XE&&(L=A.provider.videoData.XE.replace(/,/g,
|
|
"."),A.Hn("ytrexp",{ids:L},!0));L=A.provider.videoData;var B=A.provider.L.J("enable_white_noise")||A.provider.L.J("enable_webgl_noop"),f=g.lj(L)||g.WK(L)||g.vK(L)||g.qG(L);(B||f)&&(B=(0,g.Ei)())&&A.N.set("gpu",[B]);Bh(A.provider.videoData)&&g.TL(A,g.Ci(A.provider),"dt",["1"]);L.cotn&&!Bh(L)&&A.ZW(!0);A.provider.L.hw()&&(L=(0,g.bc)()-A.provider.L.Bk,A.Hn("playerage",{secs:Math.pow(1.6,Math.round(Math.log(L/1E3)/Math.log(1.6))).toFixed()}));A.U=!0;A.qp=g.Gc(function(){A.reportStats()},1E4)};
|
|
tgk=function(A,L,B){var f=g.Ci(A.provider);bmk(A,f,L,0,B);$k(A,f);Xg(A)};
|
|
bmk=function(A,L,B,f,K){var V=A.provider.L.N.cbrver;A.provider.L.N.cbr==="Chrome"&&/^96[.]/.test(V)&&B==="net.badstatus"&&/rc\.500/.test(K)&&cm(A,3);A.provider.L.J("html5_use_ump")&&/b248180278/.test(K)&&cm(A,4);V=A.provider.getCurrentTime();f=f===1?"fatal":"";B=[B,f,V.toFixed(3)];f&&(K+=";a6s."+fz());K&&B.push(kg8(K));g.TL(A,L,"error",B);A.U=!0};
|
|
Th1=function(A,L){var B=g.Ci(A.provider);if(!A.provider.L.experiments.GL("html5_refactor_sabr_video_format_selection_logging")||L.N.id!==A.Ex){var f=A.provider.L.Qf().N.Iv(dv);f&&!A.ZM&&L.reason!=="m"&&(L.reason="i");var K=[L.N.id,L.W,A.Ex,L.reason];f&&L.reason==="i"&&K.push(M8(A,L));L.token&&K.push(L.token);g.TL(A,B,"vfs",K);A.Ex=L.N.id;f=A.provider.Np.getPlayerSize();f.width>0&&f.height>0&&(f=[Math.round(f.width),Math.round(f.height)],K=g.J$(),K>1&&f.push(K),g.TL(A,B,"view",f));A.ZM||(A.provider.L.hw()&&
|
|
Oi(A,"rqs2"),A.provider.videoData.N&&WZ(A.provider.videoData.N)&&A.N.set("preload",["1"]));A.ZM=!0;A.U=!0}L.reason==="m"&&++A.m1===100&&cm(A,2);g.TL(A,B,"vps",[A.xb]);A.Vj||A.reportStats(B)};
|
|
lI8=function(A){A.V>=0||(A.provider.L.Po||A.provider.Np.getVisibilityState()!==3?A.V=g.Ci(A.provider):A.sx=!0)};
|
|
QhD=function(A,L,B){var f=A.provider.L,K=f.Qf(),V=[];f.experiments.GL("html5_refactor_sabr_audio_format_selection_logging")?(L=B.N,f=[L.audio&&L.video?L.GO?L.GO:"":L.id],L.ri&&L.ri.id&&f.push(L.ri.id),L=f.join(";"),L!==A.T&&(f=[L,A.T,B.reason],V.push.apply(V,g.x7(mmE(B))),K.N.Iv(dv)&&B.reason==="i"&&V.push(M8(A,B)),V.length>0&&f.push(V.join(";")),B.token&&f.push(B.token),g.TL(A,g.Ci(A.provider),"afs",f),A.T=L)):B.N.id!==A.T&&(f=[B.N.id,A.T,B.reason],V.push.apply(V,g.x7(mmE(B))),K.N.Iv(dv)&&B.reason===
|
|
"i"&&V.push(M8(A,B)),V.length>0&&f.push(V.join(";")),B.token&&f.push(B.token),g.TL(A,L,"afs",f),A.T=B.N.id)};
|
|
M8=function(A,L){A=A.provider.videoData;g.Jj(A)?L=4:A.bA?L=3:(L=L.N.NF()?A.G3:A.oz,L=L!=null?L:0);A="sms."+L;if(L===3||L===4)A+="_1";return A};
|
|
mmE=function(A){var L=[];if(A=A.N.audio){var B=A==null?void 0:A.U;B!==void 0&&L.push("fl."+B);A=A==null?void 0:A.V;A!==void 0&&(A=Math.min(-A,0),L.push("vg."+A),L.push("nm.4"))}return L};
|
|
Oi=function(A,L){mB(A,"cat",L)};
|
|
Yk=function(A,L,B,f,K){var V=g.Ci(A.provider);L!==1&&L!==3&&L!==5||g.TL(A,V,"vps",[A.xb]);mB(A,"xvt","t."+V.toFixed(3)+";m."+K.toFixed(3)+";g.2;tt."+L+";np.0;c."+B+";d."+f)};
|
|
cm=function(A,L){A.Ox||(mB(A,"fcnz",""+L),A.Ox=!0)};
|
|
kg8=function(A){/[^a-zA-Z0-9;.!_-]/.test(A)&&(A=A.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return A};
|
|
Wm=function(A,L,B,f,K,V,J,R,Z,N){R=R===void 0?!1:R;g.Y.call(this);var F=this;this.Np=A;this.schedule=L;this.policy=B;this.gT=f;this.Wn=Z;this.GZ=N;this.yh=this.AF=null;this.S4=this.Ys=this.JF=this.qp=0;this.Vb=this.K6=this.isSuspended=!1;this.cn="";this.LD={};this.mH=NaN;this.ql=this.Uv=this.ue=0;this.TV=null;this.jI=this.Ex=!1;this.DU=0;this.Ox=!1;this.wT=this.Nl=0;this.t$=null;this.tU=!1;this.G_=function(){return F.Np.G_()};
|
|
this.timing=new O3Q(this.GZ);this.yj=new e3(this.schedule,this.policy);this.KY=new g.aa(this.yG,0,this);this.zV=new g.aa(this.yG,this.policy.Pz,this);this.Rm=new g.aa(this.yG,1E3,this);this.TZ=new g.aa(this.yG,void 0,this);this.sx=new g.aa(function(){F.isSuspended||F.yG()},1E4,this);
|
|
this.N8=new g.aa(this.Rur,250,this);this.X=this.currentTime=NaN;this.wq=new p5(5);this.ZM=this.timestampOffset=NaN;this.logger=new g.sI("dash");this.k6=Infinity;this.GV={pZx:function(){return F.Ty},
|
|
a_j:function(){return F.V},
|
|
getAudioTrack:function(){return F.audioTrack},
|
|
pqr:function(){return F.videoTrack},
|
|
Otp:function(){return F.Vj},
|
|
getManifest:function(){return F.gT},
|
|
zwF:function(){return F.W},
|
|
yG:function(){F.yG()},
|
|
cE:function(){F.qp=0;F.cE()},
|
|
p4F:function(d){return Ui(F,F.videoTrack,F.AF.W,d)}};
|
|
A=Z&&Z.Wq();Z&&(mP7(Z,this.gT,this.policy),this.ZM=Date.now());this.N=new jj(this,this.yj,B,this.gT,K,A);B=Vx8(this.N,V,J&&J.id);this.audioTrack=new xU(this,this.policy,B.audio,this.timing);this.videoTrack=new xU(this,this.policy,B.video,this.timing);this.videoTrack.V.Vj=this.audioTrack.sF();this.Cr={updateend:this.hD,error:this.PCs};g.W(this,this.KY);g.W(this,this.zV);g.W(this,this.Rm);g.W(this,this.TZ);g.W(this,this.sx);B=this.policy.U3&&this.policy.In?!RiE(this.videoTrack.b1.info):!1;this.Pz=giw({D5:this.policy.G.D5||
|
|
B,In:this.policy.In&&!B,h8:this.policy.h8});this.G=PjE(this,this.policy,this.Pz,this.schedule,this.wq,function(d,w){return Cz6(F,d,w)});
|
|
this.V=new Bj(this,this.gT,this.policy,this.videoTrack,this.audioTrack,R);if(this.policy.T){R=this.Np.getVideoData();var D;this.Hn("clsdai",{initld:1,admapsz:(D=R.g$)==null?void 0:D.size});R.g$||(R.g$=new Map);this.Vj=new n6k(this.policy.T,function(d,w){F.Hn(d,w)},this.policy.Lf,R.g$)}this.Ty=new BO(this,this.gT,this.videoTrack,this.audioTrack,this.policy);
|
|
D=this.policy.ke?this.Np.getVideoData().Sg:null;this.T=new gv(this,this.policy,this.videoTrack,this.audioTrack,this.LD,this.V,this.timing,this.yj,this.schedule,this.gT,this.N,this.G,B,D);g.W(this,this.T);this.U=new Q1(this,this.policy,this.videoTrack,this.audioTrack,this.gT,K,y7(this.Np.getVideoData()),J==null?void 0:J.id);g.W(this,this.U);CSe(this.U,V);this.W=new RS(this.Np,this,this.policy,this.audioTrack,this.videoTrack,this.gT,this.schedule,this.N,this.U,this.timing,this.V,this.Vj);g.W(this,this.W);
|
|
this.D=this.Np.gf.Pq.Ni;this.policy.D||imy(this);if(this.policy.o4){var I;this.nD=new jn(this.videoTrack.b1.index,(I=this.Np.getVideoData().clientPlaybackNonce)!=null?I:"",this.Np)}};
|
|
$mS=function(A){A.policy.T&&A.D&&(A.D.C6.forEach(function(L){A.TW(L,-1)}),A.D.C6=[])};
|
|
imy=function(A){var L,B;if((L=A.D)==null?0:(B=L.ZO)==null?0:B.itagDenylist){var f;A.mQ((f=A.D)==null?void 0:f.ZO.itagDenylist)}var K;if((K=A.D)==null?0:K.playbackStartPolicy){var V,J;p6(A.policy,(V=A.D)==null?void 0:V.playbackStartPolicy,3,(J=A.D)==null?void 0:J.zb())}if(A.policy.jH){L=A.TP();var R;(B=L?(R=A.D)==null?void 0:R.iJ.get(L):void 0)&&A.W.xE(B,-1)}if(!A.gT.Wn){var Z;R=(Z=A.D)==null?void 0:Z.Kp;(R==null?0:R.YU)&&(R==null?0:R.xj)&&A.gT.iC&&ap(A.gT,R.YU,R.xj)}var N;((N=A.D)==null?0:N.FJ)&&
|
|
(Z=A.D.FJ.get(A.TP()||""))&&A.gT&&Z.formatId&&(A=A.gT.V.get(nq(Z.formatId)))&&(A.info.debugInfo=Z.debugInfo)};
|
|
vm=function(A,L){var B=un(L.b1,A.gT.iC),f,K=((f=A.Wn)==null?void 0:f.PA(B))||[];if(K.length===0)return A.Hn("ombmsi",{}),!1;f=new ZY(K);if((!A.policy.Vj||isFinite(A.getCurrentTime())||A.Np.kA())&&!Yb7(f,A.getCurrentTime()))return A.Hn("ostmf",{ct:A.getCurrentTime(),a:L.b1.info.NF()}),!1;(A=A.Wn)!=null&&(A.EE.get(B).PC=!0);return!0};
|
|
Xhv=function(A){if(!A.gT.iC)return!0;var L=A.Np.getVideoData();if(A.Np.Hu())return A.Hn("ombpa",{}),!1;var B,f;if(!!((B=A.D)==null?0:(f=B.Kp)==null?0:f.S64)!==A.gT.SD)return A.Hn("ombplmm",{}),!1;B=L.Ex||L.liveUtcStartSeconds||L.NT;if(A.gT.SD&&B)return A.Hn("ombplst",{}),!1;if(A.gT.Wn)return A.Hn("ombab",{}),!1;B=Date.now();return A7(A.gT)&&!isNaN(A.ZM)&&B-A.ZM>A.policy.t0*1E3?(A.Hn("ombttl",{}),!1):A.gT.F3&&A.gT.U||Tp(L)!==0&&!A.policy.N||L.J("html5_disable_onesie_media_for_mosaic")&&oh(L)||L.J("html5_disable_onesie_media_for_lifa_eligible")&&
|
|
Lm(L)?!1:!0};
|
|
Om7=function(A,L){var B=L.b1,f=A.gT.iC;if(Xhv(A))if(A.Wn&&A.Wn.EE.has(un(B,f))){if(f=un(B,f),vm(A,L)){var K=new ZY(A.Wn.PA(f)),V=function(J){try{if(J.LQ())A.handleError(J.p8(),J.tj()),S2(L,J),FV(J.info)&&h6(A.T,L,B,!0),A.yG();else if(t6(A.T,J)){var R;(R=A.V)==null||v6v(R,J.info,A.TV);A.yG()}}catch(Z){J=JT(Z),A.handleError(J.errorCode,J.details,J.severity),A.KV()}};
|
|
B.V=!0;NP(K)&&(zE(L,new fT(A.policy,f,K,A.Wn,V)),oN(A.timing))}}else A.Hn("ombfmt",{})};
|
|
En7=function(A,L){L=L||A.videoTrack&&A.videoTrack.N&&A.videoTrack.N.startTime||A.getCurrentTime();var B=A.videoTrack,f=A.N;L=f.nextVideo&&f.nextVideo.index.NV(L)||0;f.ZM!==L&&(f.JF={},f.ZM=L,gP(f,f.N));L=!f.N.isLocked()&&f.yj>-1&&(0,g.bc)()-f.yj<f.policy.Oc*1E3;var K=f.nextVideo&&rP(f,f.nextVideo.info)*3<Ai(f.Vj);if(!L||K)yi(f),GE(f),f.qp=f.qp||f.nextVideo!==f.V;f.nextVideo&&!f.nextVideo.index.isLoaded()&&(f.ZM=-1);bR(A,B,f.nextVideo);bR(A,A.audioTrack,A.N.W)};
|
|
cjL=function(A,L){A.K6=L||A.Np.K().J("html5_allow_multiview_tile_preload")&&A.Np.getVideoData().GZ;A.policy.JF||(A.isSuspended=!0,A.policy.e7&&(A.Rm.stop(),A.zV.stop(),A.KY.stop()),A.sx.stop())};
|
|
Vi=function(A,L,B,f,K){A.Np.getVideoData().aA()?K&&A.W.S4+K/1E3>B&&(A.Hn("sdai",{seg:f,rbt:B.toFixed(3),end:A.W.S4.toFixed(3),sd:K.toFixed(3)}),A.BL(!1,"rollback")):A.policy.W&&A.BL(!1,"rollback");if(A.gT.isManifestless){K=V1(A.audioTrack,f,B,L);var V=V1(A.videoTrack,f,B,L);A.policy.m1||(V&&u7(A.gT,f,!0),K&&u7(A.gT,f,!1));V&&(A.videoTrack.yj=[]);K&&(A.audioTrack.yj=[]);A.Hn("sdai",{rollbk2_seg:f,rbt:B.toFixed(3),lt:L.toFixed(3),a:K,v:V});(K||V)&&A.policy.W&&IS(A)}};
|
|
MgQ=function(A,L){if(!isNaN(A.mH)){var B=Date.now()-A.mH;B<1E4&&A.Hn("bfaswtch",{ep:B,sk:L!==void 0?"1":"0",sr:L||""})}};
|
|
YUe=function(A){A.policy.LD=!1;try{A.cE()}catch(L){g.mL(L)}};
|
|
UmL=function(A,L){L=L===void 0?!1:L;A.AF&&A.AF.N&&A.AF.W&&(A.AF.N.P4(A.Cr,A),A.AF.W.P4(A.Cr,A));ej(A.audioTrack,null,L);ej(A.videoTrack,null,L);A.AF&&(A.AF.D=!1);A.AF=null};
|
|
WYk=function(A){A.AF&&A.AF.vV()&&A.yJ()};
|
|
qUL=function(A,L){L&&vnQ(A.Np,new F0(L.video,L.reason));A.N.Cr&&(L=Ne7(A.N,"a"),A.Np.bG(new F0(L.audio,L.reason)))};
|
|
IS=function(A){g.Az(A.KY)};
|
|
mZ=function(A){A.policy.Pz&&A.policy.h8&&Math.min(VKy(A.videoTrack),VKy(A.audioTrack))*1E3>A.policy.MZ?g.Az(A.zV):A.yG()};
|
|
Pzv=function(A){if(Zok(A.videoTrack))return"ssf";if(A.policy.sx&&Fn(A.videoTrack)&&Fn(A.audioTrack))return"updateEnd";if(RP(A.audioTrack)||RP(A.videoTrack)&&A.videoTrack.b1.info.Bn!=="f")return"";if(A.Ty.isSeeking()){var L=A.yj;var B=A.videoTrack;var f=A.audioTrack;if(L.policy.N){var K=L.policy.Sb;wv(L.policy)&&(K=LT(L,!1,Ai(L)));L=K;B=K6(f,!0)>=L&&K6(B,!0)>=L}else B.W.length||f.W.length?(K=B.b1.info.lC+f.b1.info.lC,K=10*(1-Ai(L)/K),L=Math.max(K,L.policy.Sb),B=K6(f,!0)>=L&&K6(B,!0)>=L):B=!0;if(!B)return"abr";
|
|
B=A.videoTrack;if(B.W.length>0&&B.V.W.length===1&&OMe(B.V).info.X<B.S4)return"seek"}if(A.policy.W&&Ndv(A.videoTrack,A.V)&&Ndv(A.audioTrack,A.V))return"ssdai";B=!A.policy.R_||A.getCurrentTime()<10;A.policy.N||(B=B||A.videoTrack.b1.info.video.qualityOrdinal>360);if(!A.Vb||B)return"";B=A.policy.R_;wv(A.policy)&&(B=LT(A.yj,A.Vb,Ai(A.yj)));B=J$E(A.videoTrack,A.getCurrentTime(),B)||J$E(A.audioTrack,A.getCurrentTime(),B);return wv(A.policy)?B?"mbnm":"":(A.videoTrack.W.length>0||A.audioTrack.W.length>0||
|
|
Gm(A.T,A.videoTrack,A.audioTrack)||Gm(A.T,A.audioTrack,A.videoTrack))&&B?"nord":""};
|
|
ure=function(A,L,B){if(A.policy.sx&&Fn(L))return!1;if(B.pE())return!0;if(!B.Zn())return!1;var f=Db(L);if(!f||f.info.type===6)return!1;var K;if(A.policy.Kx||((K=A.V)==null?0:ece(K,L,f.info.XD)))A.S4=0;else return A.Ty.isSeeking()&&IS(A),A.S4=A.S4||(0,g.bc)(),!1;if(!Ui(A,L,B,f.info))return!1;if(A.gT.W&&f.info.N===0){if(B.Ib()==null){K=n5(L);var V;if(!(V=!K||K.b1!==f.info.b1)){b:if(K=K.G,V=f.info.G,K.length!==V.length)K=!1;else{for(var J=0;J<K.length;J++)if(!g.wo(K[J],V[J])){K=!1;break b}K=!0}V=!K}K=
|
|
V}else K=B.Ib(),f.info.b1.mE()&&mr(f),V=f.info.b1.N,K=K!==V&&!g.wo(K,V);K&&(V=n5(L),A.Hn("initchg",{it:f.info.b1.info.id,sr:!!V&&V.b1===f.info.b1,ty:f.info.type,seg:f.info.XD}));V=g.U2(f.info.b1.info);A.policy.Of&&V&&!K&&(g.U2(f.info.b1.info)?(rD(g.b7(f),1836019574),rD(g.b7(f),1718909296)):(K=new Hq(g.b7(f)),jEw(K),kK(K,524531317,!0),f.W=f.W.split(K.start+K.pos).Mz),f.D=!1)}V=A.G&&!!A.G.U&&L.b1.info.audio;K=A.gT.isManifestless||f.D;if(!(A.gT.W&&f.info.N!==0||K&&!V)&&xm7(A,L,B,f))return!0;if(V)return!1;
|
|
V=Sb(A,L);V=A.getCurrentTime()+V;if(f.info.U>V)return A.policy.N&&(L===A.videoTrack?A.Ys=A.Ys||(0,g.bc)():A.JF=A.JF||(0,g.bc)()),A.policy.OC&&Hqk(L.V,V,!1),!1;L===A.videoTrack?A.Ys=0:A.JF=0;var R;A.policy.jD&&B===((R=A.AF)==null?void 0:R.N)&&A.Ox&&(B.Ob()===0?(A.Ox=!1,A.policy.jD=!1):A.Nl=B.Ob());a:{R=A.policy.KY?(0,g.bc)():0;J=f.D&&f.info.b1.N||void 0;V=f.W;f.D&&(V=eIw(A,f,V)||V);var Z=pz(V);V=A.policy.KY?(0,g.bc)():0;B=nnS(A,B,Z,f.info,J);(J=L.G)!=null&&(Z=f.info,R=V-R,V=(0,g.bc)()-V,!J.W||lTe(J.W,
|
|
Z)&&J.W.XD===Z.XD||J.flush(),J.U+=R,J.V+=V,R=1,!J.W&&Z.N&&(R=2),TE(J,R,B),V=Math.ceil(Z.N/1024),R===2&&J.N.add(V),J.N.add(Math.ceil((Z.N+Z.W)/1024)-V),J.W=Z);A.wT=0;if(B===0)A.Ex&&(A.Ex=!1,A.jI=!1),A.ql=0,B=!0;else{if(B===2||B===5)zIC(A,"checked",B,f.info);else{if(B===1){if(!A.Ex){A.Ex=!0;B=!1;break a}if(!A.jI){A.jI=!0;A.Np.seekTo(A.getCurrentTime(),{zZ:"quotaExceeded",OU:!0});B=!1;break a}f.info.WV()?(R=A.policy,R.Ex=Math.floor(R.Ex*.8),R.wT=Math.floor(R.wT*.8)):(R=A.policy,R.Nl=Math.floor(R.Nl*
|
|
.8),R.wT=Math.floor(R.wT*.8));A.policy.N?dP(A.U.N,f.info.b1,!1):sL(A.N,f.info.b1)}A.Np.J8({reattachOnAppend:B})}B=!1}}if(!B)return!1;A.policy.sx&&f.info.Ad()?(A.Np.K().hw()&&A.Hn("eosl",{ls:f.info.Dx()}),f.isLocked=!0):(L.Bg(f),ZMe(A.N,f.info));K&&(L=f.info.b1.zd)&&A.Np.kD(new OL(L.key,L.type));return!0};
|
|
eIw=function(A,L,B){var f;if(f=A.policy.x$&&A.AF&&!A.AF.G&&!A.Np.Nm())L=L.info.b1.info,f=L.qU()&&iQ(L)&&L.video&&L.video.width<3840&&L.video.width>L.video.height;if(f&&(A.AF.G=!0,Nb('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return B=$M8(B),A.policy.V&&A.Hn("sp4k",{s:!!B}),B};
|
|
zIC=function(A,L,B,f){var K="fmt.unplayable",V=1;B===5||B===3?(K="fmt.unparseable",A.policy.N?!f.b1.info.video||IN(A.U.N).size>0||dP(A.U.N,f.b1,!1):!f.b1.info.video||IN(A.N.D).size>0||sL(A.N,f.b1)):B===2&&(A.ql<15?(A.ql++,K="html5.invalidstate",V=0):K="fmt.unplayable");f=Sl(f);var J;f.mrs=(J=A.AF)==null?void 0:Ik(J);f.origin=L;f.reason=B;f.trg="appenderr";A.handleError(K,f,V)};
|
|
u5w=function(A,L,B,f,K){var V=A.gT;var J=A.policy.N,R=!1,Z=-1,N;for(N in V.N){var F=xa(V.N[N].info.mimeType)||V.N[N].info.WV();if(f===F)if(F=V.N[N].index,F.NE(L.XD)){R=F;var D=L,I=R.vA(D.XD);I&&I.startTime!==D.startTime?(R.segments=[],R.MB(D),R=!0):R=!1;R?Z=L.XD:!L.pending&&J&&(D=F.getDuration(L.XD),D!==L.duration&&(V.publish("clienttemp","mfldurUpdate",{itag:V.N[N].info.itag,seg:L.XD,od:D,nd:L.duration},!1),F.MB(L),R=!0))}else F.MB(L),R=!0}Z>=0&&(J={},V.publish("clienttemp","resetMflIndex",(J[f?
|
|
"v":"a"]=Z,J),!1));V=R;k56(A.Ty,L,f,V);A.policy.g0||A.V.ww(L,B,f,K);L.XD===A.gT.F3&&V&&el(A.gT)&&L.startTime>el(A.gT)&&(A.gT.SO=L.startTime+(isNaN(A.timestampOffset)?0:A.timestampOffset),A.Ty.isSeeking()&&A.Ty.targetTime<A.gT.vy()&&A.Ty.seek(A.gT.vy(),{}))};
|
|
Ui=function(A,L,B,f){var K=n5(L);!K||K.V||Vs(K,f)||(B.abort(),A.policy.nO&&(K=L.X)!=null&&(K.V=void 0),(L=L.G)!=null&&(TE(L,4),L.flush()));if(!B.yD()||Se())try{A.policy.NhM?B.nK(f.b1.info.containerType,f.b1.info.Bn)&&B.PP(f.b1.info.containerType,f.b1.info.Bn,f.b1.info.mimeType):B.BP(f.b1.info.containerType,f.b1.info.mimeType)}catch(V){return B=V,g.CE(B),A.Hn("ctexp",{name:B.name,msg:B.message}),!1}else f.b1.info.containerType!==B.yD()&&A.Hn("ctu",{ct:Se(),prev_c:B.yD(),curr_c:f.b1.info.containerType});
|
|
L=f.b1.U;A.policy.fu&&L&&(f=0+L.duration,L=-L.N,0===B.Gd()&&f===B.S2()||B.LN(0,f),L!==B.pY()&&(B.j8(L),qL&&A$C(A.audioTrack.sF(),B.Nk())));return!0};
|
|
xm7=function(A,L,B,f){f.info.b1.w1();var K=f.info.b1.N;if(!K||!B.Zn()||B.Ib()===K)return!1;var V=K,J=B.z4();if(A.policy.G3&&J&&B.isView()&&g.U2(f.info.b1.info)){var R=new DataView(K.buffer,K.byteOffset,K.byteLength);(J=FD8(R,J))?V=new Uint8Array(J.buffer,J.byteOffset,J.byteLength):A.Hn("fenc",{})}A.policy.x$&&(J=eIw(A,f,new FK([V])))&&(V=pz(J));var Z;(J=f.info.b1.bv(0,f.info.clipId))&&(Z=J.Lr[0]);if(f===A.t$){if(A.wT+=1,A.Np.getVideoData().J("html5_shorts_gapless_restart_on_init_seg_retries")&&A.wT>
|
|
5)return A.wT=0,A.Np.J8({initSegStuck:1,as:f.info.Dx()}),!0}else A.wT=0,A.t$=f;A.policy.dF&&(B.abort(),(J=L.G)!=null&&(TE(J,4),J.flush()));K=nnS(A,B,V,Z,K);(L=L.G)!=null&&(L.flush(),L.W=Z,TE(L,3,K));if(K!==0)return A.policy.Ze&&pr(A.Np.getVideoData())?(A.Np.OS()||zIC(A,"sepInit",K,f.info),aI6(A.Np,"sie")):zIC(A,"sepInit",K,f.info),!0;f.info.WV()?(Z=A.timing,Z.JF||(Z.JF=(0,g.bc)(),g.i1("vis_a",Z.JF,Z.N))):(Z=A.timing,Z.X||(Z.X=(0,g.bc)(),g.i1("ais_a",Z.X,Z.N)));(f=f.info.b1.zd)&&A.Np.kD(new OL(f.key,
|
|
f.type));return B.Nz()};
|
|
nnS=function(A,L,B,f,K){try{var V,J=L===((V=A.AF)==null?void 0:V.N)?A.audioTrack:A.videoTrack;if(A.policy.sx&&(f==null?0:f.Ad())){if((f==null?void 0:f.yj)>1)return 6;J.wT=new g.aa(function(){var R=Db(J);A.TL()||R==null||!R.isLocked?A.Np.K().hw()&&A.Hn("eosl",{delayA:R==null?void 0:R.info.Dx()}):AYL(J)?(A.Np.K().hw()&&A.Hn("eosl",{dunlock:R==null?void 0:R.info.Dx()}),LfL(A,J===A.audioTrack)):(A.Hn("nue",{ls:R.info.Dx()}),R.info.yj+=1,A.AF&&A.cE())},1E4,A);
|
|
A.Np.K().hw()&&A.Hn("eosl",{delayS:f.Dx()});J.wT.start()}A.policy.Ip&&(f==null?void 0:f.b1)instanceof dR&&f.Ad()&&A.Hn("poseos",{itag:f.b1.info.itag,seg:f.XD,lseg:f.b1.index.uq(),es:f.b1.index.V});L.appendBuffer(B,f,K)}catch(R){if(R instanceof DOMException){if(R.code===11)return 2;if(R.code===12)return 5;if(R.code===22||R.message.indexOf("Not enough storage")===0)return L=Object.assign({name:"QuotaExceededError",buffered:zv(L.Hk()).replace(/,/g,"_"),vheap:Bl(A.videoTrack),aheap:Bl(A.audioTrack),message:g.Uz(R.message,
|
|
3),track:A.AF?L===A.AF.W?"v":"a":"u"},uZ8()),A.handleError("player.exception",L),1;g.mL(R)}return 4}return A.AF.vV()?3:0};
|
|
FT=function(A,L,B){MgQ(A,B.zZ||"unknown");A.Np.seekTo(L,B)};
|
|
Sb=function(A,L){if(A.Ex&&!A.Vb)return 3;if(A.isSuspended)return 1;var B;if((B=A.AF)==null?0:B.AF&&B.AF.streaming===!1)return 4;B=(L.b1.info.audio?A.policy.Nl:A.policy.Ex)/(L.lC*A.policy.gg);if(A.policy.MI>0&&A.AF&&Fi(A.AF)&&(L=L.b1.info.video?A.AF.W:A.AF.N)&&!L.Nz()){L=L.Hk();var f=uQ(L,A.getCurrentTime());f>=0&&(L=A.getCurrentTime()-L.start(f),B+=Math.max(0,Math.min(L-A.policy.MI,A.policy.GI)))}A.policy.wT>0&&(B=Math.min(B,A.policy.wT));return B};
|
|
o5D=function(A,L){return(Sb(A,L)+A.policy.iP)*L.lC};
|
|
fqD=function(A){A.cn&&!A.isSuspended&&sh(A.schedule)&&(BCS(A,A.cn),A.cn="")};
|
|
BCS=function(A,L){x5(L,"cms",function(B){A.policy.V&&A.Hn("pathprobe",B)},function(B){A.Np.handleError(B)})};
|
|
KfQ=function(A,L){A.TV=L;A.V&&(A.V.TV=L);L=A.TV;var B=A.videoTrack.b1.info.qU();L.Pz=B;L.Xr({swebm:B});A.T.TV=A.TV;A.policy.W&&(A.W.TV=A.TV,$mS(A))};
|
|
JY8=function(A,L){if(A.AF&&A.AF.W){if(A.policy.IT){var B=F$L(A.audioTrack);if(B&&B.NF()){var f=A.Np;if(f.N$&&(f.N$.N=B,B=f.CY,B.qoe)){B=B.qoe;f=f.N$;var K=g.Ci(B.provider);QhD(B,K,f)}}}A.policy.kI&&(B=F$L(A.videoTrack))&&B.WV()&&(f=A.Np,f.Jv&&(f.Jv.N=B,B=f.CY,B.qoe&&Th1(B.qoe,f.Jv)));L-=isNaN(A.timestampOffset)?0:A.timestampOffset;A.getCurrentTime()!==L&&A.resume();A.Ty.isSeeking()&&A.AF&&!A.AF.vV()&&(f=A.getCurrentTime()<=L&&L<A.getCurrentTime()+10,B=aT(A.AF.W.Hk(),A.getCurrentTime()+V3e),f&&B&&
|
|
(A.Ty.U=!1));A.Ty.isSeeking()||A.policy.S4&&!A.policy.zV||(A.currentTime=L);g.Az(A.Rm)}};
|
|
StQ=function(A,L){var B=A6(A.videoTrack).find(function(f){return f.startTime>=L&&Cz6(A,f.startTime,!1)});
|
|
return B&&B.startTime<L+B.duration*1.5?B.startTime+.1:0};
|
|
Cz6=function(A,L,B){if(!(A.videoTrack.b1.w1()&&A.audioTrack.b1.w1()&&A.AF&&A.AF.W&&A.AF.N))return!1;if(B&&A.gT.isManifestless&&(A.videoTrack.D===-1||A.audioTrack.D===-1))return!0;var f=Ji(A.videoTrack,L,B);if(isNaN(f))return!1;A=Ji(A.audioTrack,A.policy.mH?L:f,B);return isNaN(A)?!1:!0};
|
|
lR=function(A){A.KV();A.Ty.isSeeking();A.G&&xGe(A.G,A.videoTrack.b1);IS(A);return ss0(A.Ty)};
|
|
q8=function(A){return A.currentTime+A.timestampOffset};
|
|
bR=function(A,L,B,f){(f===void 0?0:f)&&!L.Ys&&(Se()||(f=L.uC)&&!f.Aq(B.info)&&A.Np.A1(),L.Ys=!0);L.b1!==B&&(L.b1=B)};
|
|
AYL=function(A){var L,B=(L=Db(A))==null?void 0:L.info;return!B||A.qy(Math.min(B.U+V3e,B.D))};
|
|
R0C=function(A,L){var B;if((B=Db(L))!=null&&B.isLocked&&AYL(L)){if(A.Np.K().hw()){var f;A.Hn("eosl",{munlock:(f=Db(L))==null?void 0:f.info.Dx()})}LfL(A,L===A.audioTrack)}};
|
|
LfL=function(A,L){if(A.policy.sx&&A.AF){var B,f,K=L?(B=A.AF)==null?void 0:B.N:(f=A.AF)==null?void 0:f.W;B=L?A.audioTrack:A.videoTrack;L=Db(B);if(L==null?0:L.isLocked){A.Np.K().hw()&&A.Hn("eosl",{unlock:L.info.Dx()});var V;(V=B.wT)==null||V.stop();L.isLocked=!1;B.Bg(L);ZMe(A.N,L.info);K=K==null?void 0:K.A5();(K==null?void 0:K.Dx())!==L.info.Dx()&&A.Hn("oue",{bls:K==null?void 0:K.Dx(),tls:L.info.Dx()})}}};
|
|
Zhw=function(A,L){A.timestampOffset!==L&&(A.timestampOffset=L,A.policy.m1&&zW(A.gT),A.V.X=A.timestampOffset,A.Np.uV(A.timestampOffset),A.gT.isManifestless&&(A.gT.timestampOffset=A.timestampOffset),A.videoTrack.j8(A.timestampOffset),A.audioTrack.j8(A.timestampOffset))};
|
|
Hl=function(A){var L=(0,g.bc)();A.DU=L};
|
|
NCw=function(A){A.audioTrack.yj=[];A.videoTrack.yj=[]};
|
|
Ff0=function(A,L,B,f){Pm(A)&&A.yh&&f&&f===96&&(f=B?A.Np.cA(L):L,A.qy(f)||A.yh.N||A.Hn("prebuffer",{miss:1,t:L.toFixed(3),isUtc:B}))};
|
|
bok=function(A){var L=A.Ef().filter(function(f){return f.namespace==="ad"});
|
|
L=g.m(L);for(var B=L.next();!B.done;B=L.next())if(B=B.value,B.start/1E3>A.getCurrentTime())return B.start/1E3;return Infinity};
|
|
kpC=function(A){if(A.Np.getVideoData().isLivePlayback)return!1;var L=A.Np.pD();if(!L)return!1;L=L.getDuration();if(A.AF&&A.AF.N&&A.AF.W){var B=A.getCurrentTime(),f=A.AF.N.Hk();A=A.AF.W.Hk();f=f?AA(f,B):B;B=A?AA(A,B):B;B=Math.min(f,B);L=isNaN(B)?!1:B>=L-.01}else L=!1;return L};
|
|
kq=function(A){return A.ue<A.k6};
|
|
Pm=function(A){return A.policy.sC||A.policy.xY};
|
|
xk=function(){g.SN.apply(this,arguments)};
|
|
en=function(A,L,B,f){xk.call(this);var K=this;this.V=-1;this.N={};this.U=new g.aa(this.D,0,this);g.W(this,this.U);this.W=new g.aa(function(){K.TL()||(K.U.start(Math.random()*B),K.W.start(L))},A,this);
|
|
g.W(this,this.W);f.subscribe("fairplay_next_need_key_info",this.T,this)};
|
|
D5E=function(A){if(!(A.length<=28))for(var L=(0,g.WO)([60,0,75,0,73,0,68,0,62,0]),B=28;B<A.length;){a:if(A.length-B<L.length)var f=!1;else{for(f=0;f<L.length;++f)if(A[B+f]!==L[f]){f=!1;break a}f=!0}if(f){B+=L.length;if(A.length<=B+48)break;L=new Uint8Array(24);for(f=0;f<24;++f)L[f]=A[B+f*2];A=G3(L);A=WX(A);if(!A)break;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;return A}B++}};
|
|
ni=function(A,L){xk.call(this);var B=this;this.V=A;this.N=[];this.W=new g.aa(function(){B.publish("log_qoe",{wvagt:"timer",reqlen:B.N?B.N.length:-1});if(B.N){if(B.N.length>0){var f=B.N.shift();d5D(B,f.info)}B.N.length>0&&(f=B.N[0].time-(0,g.bc)(),B.W.start(Math.max(0,f)))}},0);
|
|
g.W(this,this.W);L.subscribe("widevine_set_need_key_info",this.U,this)};
|
|
d5D=function(A,L){a:{var B=L.cryptoPeriodIndex;if(isNaN(B)&&A.V.size>0)B=!0;else{for(var f=g.m(A.V.values()),K=f.next();!K.done;K=f.next())if(K.value.cryptoPeriodIndex===B){B=!0;break a}B=!1}}A.publish("log_qoe",{wvagt:"reqnews",canskip:B});B||A.publish("rotated_need_key_info_ready",L)};
|
|
Iqe=function(){var A={};var L=A.url;var B=A.interval;A=A.retries;this.url=L;this.interval=B;this.retries=A};
|
|
woy=function(A,L){this.statusCode=A;this.message=L;this.V=this.heartbeatParams=this.errorMessage=null;this.W=[];this.N={};this.nextFairplayKeyId=null};
|
|
poC=function(A){switch(A){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}};
|
|
yYS=function(A,L,B,f){B=B===void 0?"":B;f=f===void 0?!1:f;g.Y.call(this);this.message=A;this.requestNumber=L;this.timer=B;this.W=f;this.onError=this.onSuccess=null;this.N=new g.v3(5E3,2E4,.2)};
|
|
jfD=function(A,L,B){A.onSuccess=L;A.onError=B};
|
|
GD8=function(A,L,B,f){var K={timeout:3E4,onSuccess:function(V){if(!A.TL()){mF("drm_net_r",void 0,A.timer);var J=A.W;J=J===void 0?!1:J;var R=V.status==="LICENSE_STATUS_OK"?0:9999,Z=null;if(V.license)try{Z=WX(V.license)}catch(r){g.mL(r)}if(R!==0||Z){Z=new woy(R,Z);R!==0&&V.reason&&(Z.errorMessage=V.reason);if(V.authorizedFormats){R={};for(var N=[],F={},D=g.m(V.authorizedFormats),I=D.next();!I.done;I=D.next())if(I=I.value,I.trackType&&I.keyId){J&&Z.W.push({trackType:poC(I.trackType),isHdr:!!I.isHdr});
|
|
var d=g5k[I.trackType];if(d){d==="HD"&&V.isHd720&&(d="HD720");I.isHdr&&(d+="HDR");R[d]||(N.push(d),R[d]=!0);var w=null;try{w=WX(I.keyId)}catch(r){g.mL(r)}w&&(F[g.Y$(w,4)]=d)}}Z.V=N;Z.N=F}V.nextFairplayKeyId&&(Z.nextFairplayKeyId=V.nextFairplayKeyId);V.sabrLicenseConstraint&&(Z.sabrLicenseConstraint=WX(V.sabrLicenseConstraint));V=Z}else V=null;if(V)A.onSuccess(V,A.requestNumber);else A.onError(A,"drm.net","t.p;p.i")}},
|
|
onError:function(V){if(!A.TL())if(V&&V.error)V=V.error,A.onError(A,"drm.net.badstatus","t.r;p.i;c."+V.code+";s."+V.status,V.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)}};
|
|
f&&(K.U2="Bearer "+f);g.aI(B,"player/get_drm_license",L,K)};
|
|
rYy=function(A,L,B,f){g.SN.call(this);this.videoData=A;this.L=L;this.G=B;this.sessionId=f;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.qp=this.Vj=!1;this.V=null;this.ZM=[];this.U=[];this.authorizedFormats=[];this.yj=[];this.X=!1;this.N={};this.status="";this.T=NaN;this.W=A.D;this.cryptoPeriodIndex=B.cryptoPeriodIndex;A={};Object.assign(A,this.L.N);A.cpn=this.videoData.clientPlaybackNonce;this.videoData.qp&&(A.vvt=this.videoData.qp,this.videoData.mdxEnvironment&&(A.mdx_environment=
|
|
this.videoData.mdxEnvironment));this.L.ZM&&(A.authuser=this.L.ZM);this.L.pageId&&(A.pageid=this.L.pageId);isNaN(this.cryptoPeriodIndex)||(A.cpi=this.cryptoPeriodIndex.toString());var K=(K=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.fa()))?K[1]:"";K==="ATV"&&(A.cdt=K);this.D=A;this.D.session_id=f;this.Wn=!0;this.W.flavor==="widevine"&&(this.D.hdr="1");this.W.flavor==="playready"&&(L=Number(sR(L.experiments,"playready_first_play_expiration")),!isNaN(L)&&L>=0&&(this.D.mfpe=""+L),this.Wn=!1);L="";g.DA(this.W)?
|
|
F5(this.W)?(f=B.W)&&(L="https://www.youtube.com/api/drm/fps?ek="+ngk(f)):(L=B.initData.subarray(4),L=new Uint16Array(L.buffer,L.byteOffset,L.byteLength/2),L=String.fromCharCode.apply(null,L).replace("skd://","https://")):L=this.W.W;this.baseUrl=L;this.fairplayKeyId=Ew(this.baseUrl,"ek")||"";if(L=Ew(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(L);this.ZM=B.qU?[g.Y$(B.initData,4)]:B.V;zL(this,{sessioninit:B.cryptoPeriodIndex});this.status="in"};
|
|
bhS=function(A,L){zL(A,{createkeysession:1});A.status="gr";mF("drm_gk_s",void 0,A.videoData.yj);A.url=sf7(A);try{A.V=L.createSession(A.G,function(B){zL(A,{m:B})})}catch(B){L="t.g";
|
|
B instanceof DOMException&&(L+=";c."+B.code);A.publish("licenseerror","drm.unavailable",1,L,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}A.V&&(HhD(A.V,function(B,f){h06(A,B,f)},function(B,f,K){if(!A.TL()){f=void 0;
|
|
var V=1;g.DA(A.W)&&g.xi(A.L)&&A.L.J("html5_enable_safari_fairplay")&&K===1212433232&&(f="ERROR_HDCP",V=A.L.J("html5_safari_fairplay_ignore_hdcp")?0:V);A.error("drm.keyerror",V,B,f)}},function(){A.TL()||(zL(A,{onkyadd:1}),A.qp||(A.publish("sessionready"),A.qp=!0))},function(B){A.Cl(B)}),g.W(A,A.V))};
|
|
sf7=function(A){var L=A.baseUrl;fO7(L)||A.error("drm.net",2,"t.x");if(!Ew(L,"fexp")){var B=["23898307","23914062","23916106","23883098"].filter(function(K){return A.L.experiments.experiments[K]});
|
|
B.length>0&&(A.D.fexp=B.join())}B=g.m(Object.keys(A.D));for(var f=B.next();!f.done;f=B.next())f=f.value,L=I4v(L,f,A.D[f]);return L};
|
|
h06=function(A,L,B){if(!A.TL())if(L){zL(A,{onkmtyp:B});A.status="km";switch(B){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":t30(A,L);return;default:A.publish("ctmp","message_type",{t:B,l:L.byteLength})}A.Vj||(mF("drm_gk_f",void 0,A.videoData.yj),A.Vj=!0,A.publish("newsession",A));if(Rj(A.W)&&(L=kDC(L),!L))return;L=new yYS(L,++A.requestNumber,A.videoData.yj,A.L.J("html5_enable_vp9_fairplay"));jfD(L,function(f){TCy(A,f)},function(f,K,V){if(!A.TL()){var J=
|
|
0;
|
|
f.N.W>=3&&(J=1,K="drm.net.retryexhausted");zL(A,{onlcsrqerr:K,info:V});A.error(K,J,V);A.shouldRetry(Vu(J),f)&&lqw(A,f)}});
|
|
g.W(A,L);m5e(A,L)}else A.error("drm.unavailable",1,"km.empty")};
|
|
t30=function(A,L){zL(A,{sdpvrq:1});A.T=Date.now();if(A.W.flavor!=="widevine")A.error("drm.provision",1,"e.flavor;f."+A.W.flavor+";l."+L.byteLength);else{var B={cpn:A.videoData.clientPlaybackNonce};Object.assign(B,A.L.N);B=g.ip("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",B);L={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,L)}),
|
|
responseType:"arraybuffer"};g.il(B,L,3,500).then(SH(function(f){f=f.xhr;if(!A.TL()){f=new Uint8Array(f.response);var K=String.fromCharCode.apply(null,f);try{var V=JSON.parse(K)}catch(J){}V&&V.signedResponse?(A.publish("ctmp","drminfo",{provisioning:1}),V=(Date.now()-A.T)/1E3,A.T=NaN,A.publish("ctmp","provs",{et:V.toFixed(3)}),A.V&&A.V.update(f)):(V=V&&V.error&&V.error.message,f="e.parse",V&&(f+=";m."+V),A.error("drm.provision",1,f))}}),SH(function(f){A.TL()||A.error("drm.provision",1,"e."+f.errorCode+
|
|
";c."+(f.xhr&&f.xhr.status))}))}};
|
|
u3=function(A){var L;if(L=A.Wn&&A.V!=null)A=A.V,L=!(!A.N||!A.N.keyStatuses);return L};
|
|
m5e=function(A,L){A.status="km";mF("drm_net_s",void 0,A.videoData.yj);var B=new g.uy(A.L.e6),f={context:g.Du(B.config_||g.FY())};f.drmSystem=QfS[A.W.flavor];f.videoId=A.videoData.videoId;f.cpn=A.videoData.clientPlaybackNonce;f.sessionId=A.sessionId;f.licenseRequest=g.Y$(L.message);f.drmParams=A.videoData.drmParams;isNaN(A.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=A.cryptoPeriodIndex);var K,V,J=!!((K=A.videoData.W)==null?0:(V=K.video)==null?0:V.isHdr());f.drmVideoFeature=J?"DRM_VIDEO_FEATURE_PREFER_HDR":
|
|
"DRM_VIDEO_FEATURE_SDR";A.L.experiments.Qf().N.Iv(Cbw)&&(f.context=g.dh(A.videoData));if(f.context&&f.context.client){if(K=A.L.N)f.context.client.deviceMake=K.cbrand,f.context.client.deviceModel=K.cmodel,f.context.client.browserName=K.cbr,f.context.client.browserVersion=K.cbrver,f.context.client.osName=K.cos,f.context.client.osVersion=K.cosver;A.L.experiments.Qf().N.Iv(Cbw)||(f.context.user=f.context.user||{},A.videoData.qp&&(f.context.user.credentialTransferTokens=[{token:A.videoData.qp,scope:"VIDEO"}]),
|
|
A.videoData.Ox&&(f.context.user.kidsParent={oauthToken:A.videoData.Ox}));f.context.request=f.context.request||{};f.context.request.mdxEnvironment=A.videoData.mdxEnvironment||f.context.request.mdxEnvironment;g.DA(A.W)&&(f.fairplayKeyId=g.Y$(zF1(A.fairplayKeyId)));g.po(A.L,g.Aj(A.videoData)).then(function(R){GD8(L,f,B,R);A.status="rs"})}else A.error("drm.net",2,"t.r;ic.0")};
|
|
TCy=function(A,L){if(!A.TL())if(zL(A,{onlcsrsp:1}),A.status="rr",L.statusCode!==0)A.error("drm.auth",1,"t.f;c."+L.statusCode,L.errorMessage||void 0);else{mF("drm_kr_s",void 0,A.videoData.yj);if(L.heartbeatParams&&L.heartbeatParams.url&&A.videoData.J("outertube_streaming_data_always_use_staging_license_service")){var B=A.W.W.match(/(.*)youtube.com/g);B&&(L.heartbeatParams.url=B[0]+L.heartbeatParams.url)}L.heartbeatParams&&A.publish("newlicense",L.heartbeatParams);L.V&&(A.U=L.V,A.videoData.SM||A.publish("newlicense",
|
|
new Iqe),A.videoData.SM=!0,A.X=K9(A.U,function(f){return f.includes("HDR")}));
|
|
L.W&&(A.yj=L.W);L.N&&(A.L.J("html5_enable_vp9_fairplay")&&F5(A.W)?(B=g.Y$(zF1(A.fairplayKeyId),4),A.N[B]={type:L.N[B],status:"unknown"}):A.N=sc(L.N,function(f){return{type:f,status:"unknown"}}));
|
|
NM(A.W)&&(L.message=huD(g.Y$(L.message)));A.V&&(zL(A,{updtks:1}),A.status="ku",A.V.update(L.message).then(function(){mF("drm_kr_f",void 0,A.videoData.yj);u3(A)||(zL(A,{ksApiUnsup:1}),A.publish("keystatuseschange",A))},function(f){f="msuf.req."+A.requestNumber+";msg."+g.Uz(f.message,3);
|
|
A.error("drm.keyerror",1,f)}));
|
|
g.DA(A.W)&&A.publish("fairplay_next_need_key_info",A.baseUrl,L.nextFairplayKeyId);A.L.J("html5_enable_vp9_fairplay")&&F5(A.W)&&A.publish("qualitychange",ih0(A.U));L.sabrLicenseConstraint&&A.publish("sabrlicenseconstraint",L.sabrLicenseConstraint)}};
|
|
lqw=function(A,L){var B=L.N.getValue();B=new g.aa(function(){m5e(A,L)},B);
|
|
g.W(A,B);B.start();g.qO(L.N);zL(A,{rtyrq:1})};
|
|
$5y=function(A,L){for(var B=[],f=g.m(Object.keys(A.N)),K=f.next();!K.done;K=f.next())K=K.value,B.push(K+"_"+A.N[K].type+"_"+A.N[K].status);return B.join(L)};
|
|
Xo8=function(A){var L={};L[A.status]=u3(A)?$5y(A,"."):A.U.join(".");return L};
|
|
Ohy=function(A,L,B){var f={};f.isHdr=L.includes("HDR");switch(L.replace("HDR","").replace("720","")){case "AUDIO":f.trackType=1;break;case "SD":f.trackType=2;break;case "HD":f.trackType=3;break;case "UHD1":f.trackType=4;break;case "UHD2":f.trackType=5;break;default:f.trackType=0}!f.trackType||B[L]||u3(A)&&!aS(A,L)||(A.authorizedFormats.push(f),B[L]=!0)};
|
|
aS=function(A,L){for(var B in A.N)if(A.N[B].status==="usable"&&A.N[B].type===L)return!0;return!1};
|
|
E5E=function(A,L){for(var B in A.N)if(A.N[B].type===L)return A.N[B].status};
|
|
zL=function(A,L){var B=B===void 0?!1:B;f$(L);(B||A.L.hw())&&A.publish("ctmp","drmlog",L)};
|
|
cYC=function(A){var L=A[0];A[0]=A[3];A[3]=L;L=A[1];A[1]=A[2];A[2]=L;L=A[4];A[4]=A[5];A[5]=L;L=A[6];A[6]=A[7];A[7]=L};
|
|
ih0=function(A){return g.zK(A,"UHD2")||g.zK(A,"UHD2HDR")?"highres":g.zK(A,"UHD1")||g.zK(A,"UHD1HDR")?"hd2160":g.zK(A,"HD")||g.zK(A,"HDHDR")?"hd1080":g.zK(A,"HD720")||g.zK(A,"HD720HDR")?"hd720":"large"};
|
|
kDC=function(A){for(var L="",B=0;B<A.length;B+=2)L+=String.fromCharCode(A[B]);A=W5(new DOMParser,lO(L),"text/xml");if(!A)return null;(L=A.querySelector("Challenge"))&&L.childNodes&&L.childNodes.length!==0?(A=Uint8Array,L=ojD(L.childNodes[0].nodeValue),L=(0,g.WO)(L).buffer,A=new A(L)):A=null;return A};
|
|
At=function(A,L,B,f,K,V){V=V===void 0?!1:V;g.Y.call(this);this.element=A;this.G=L;this.initData=B;this.N=f;this.W=K;this.yj=V;this.sessionId="";this.X=this.T=this.V=this.D=null;this.U=new g.dN(this);g.W(this,this.U);M3L(this)};
|
|
M3L=function(A){A.N?(A.U.Y(A.N,"message",A.f0),A.U.Y(A.N,"keystatuseschange",A.Cl),A.N.closed&&A.N.closed.then(SH(function(){A.onClosed()}),null)):A.W&&(Cn(A.U,A.W,["mskeymessage",
|
|
"webkitkeymessage"],A.y7),Cn(A.U,A.W,["mskeyerror","webkitkeyerror"],A.Na),Cn(A.U,A.W,["mskeyadded","webkitkeyadded"],A.dc))};
|
|
HhD=function(A,L,B,f,K){A.D=L;A.V=B;A.T=f;A.X=K};
|
|
Yty=function(A,L,B){g.mL(B);A.V&&(B instanceof DOMException&&(L+=";n."+B.name+";m."+B.message),A.V(L))};
|
|
LR=function(A,L,B){B=B===void 0?!1:B;g.Y.call(this);this.element=A;this.N=L;this.X=B;this.T={};this.U=null;this.D=new g.dN(this);this.V=this.W=null;g.W(this,this.D)};
|
|
Wfv=function(A,L){L=L===void 0?null:L;if(A.N.keySystemAccess){var B,f;if(((B=L)==null?0:B.Wn)&&((f=L.Np)==null?0:f.R0())){var K;A.W=(K=L)==null?void 0:K.Wn;return Promise.resolve()}return A.N.keySystemAccess.createMediaKeys().then(function(J){if(!A.TL()){A.W=J;var R;(R=A.element)==null||R.setMediaKeys(J);var Z;L&&((Z=L.Np)==null?0:Z.R0())&&(L.Wn=J)}})}if(Sx(A.N))A.V=new (J7())(A.N.keySystem);
|
|
else if(ZA(A.N)){A.V=new (J7())(A.N.keySystem);var V;(V=A.element)==null||V.webkitSetMediaKeys(A.V)}else U56(A);return null};
|
|
U56=function(A){Cn(A.D,A.element,["keymessage","webkitkeymessage"],A.xM);Cn(A.D,A.element,["keyerror","webkitkeyerror"],A.sy);Cn(A.D,A.element,["keyadded","webkitkeyadded"],A.C0)};
|
|
qt8=function(A,L){L=v5C(L,A.N.xf);L=A.V.createSession("video/mp4",L);return new At(null,null,null,null,L,A.X)};
|
|
PbE=function(A,L){for(var B=new Uint8Array(270),f=0;f<135;f++)B[f*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(f);A=A.V.createSession("video/mp4",L,B);return new At(null,null,null,null,A)};
|
|
x5y=function(A,L){var B=A.T[L.sessionId];!B&&A.U&&(B=A.U,A.U=null,B.sessionId=L.sessionId,A.T[L.sessionId]=B);return B};
|
|
v5C=function(A,L){var B=A.subarray(4);B=new Uint16Array(B.buffer,B.byteOffset,B.byteLength/2);B=String.fromCharCode.apply(null,B).match(/ek=([0-9a-f]+)/)[1];for(var f="",K=0;K<B.length;K+=2)f+=String.fromCharCode(parseInt(B.substring(K,K+2),16));B=f;f=new ArrayBuffer(B.length*2);K=new Uint16Array(f);for(var V=0;V<B.length;V++)K[V]=B.charCodeAt(V);B=new Uint8Array(f);f=0;V=new ArrayBuffer(A.byteLength+4+B.byteLength+4+L.byteLength);K=new Uint8Array(V);V=new DataView(V);K.set(A);f+=A.byteLength;V.setUint32(f,
|
|
B.length,!0);f+=4;K.set(B,f);f+=B.length;V.setUint32(f,L.byteLength,!0);K.set(L,f+4);return K};
|
|
oc=function(){this.keys=[];this.values=[]};
|
|
z0C=function(A,L,B,f){f=f===void 0?null:f;g.SN.call(this);this.element=A;this.videoData=L;this.L=B;this.mediaElement=f;this.V=[];this.S4=2;this.Ys=this.wT=!1;this.heartbeatParams=null;this.ZM=this.yj=!1;this.D=null;this.JF=!1;this.N=this.videoData.D;this.drmSessionId=this.videoData.drmSessionId||g.Lcw();this.W=new Map;this.T=new oc;this.X=new oc;this.qp=new g.dN(this);this.Vj=this.L.J("html5_eme_ignore_teardown_errors");(A=this.element)&&(A.addKey||A.webkitAddKey)||J7()||Ij(B.experiments);this.L.J("html5_enable_vp9_fairplay")&&
|
|
F5(this.N)?B=e00:(B=this.videoData.B$,B=this.N.flavor==="fairplay"||B?fr:e00);this.G=B;this.U=new LR(this.element,this.N,this.Vj);g.W(this,this.U);Sx(this.N)&&(this.Wn=new LR(this.element,this.N,this.Vj),g.W(this,this.Wn));g.W(this,this.qp);B=this.element;this.N.keySystemAccess?this.qp.Y(B,"encrypted",this.YEj):Cn(this.qp,B,Sx(this.N)?["msneedkey"]:["needkey","webkitneedkey"],this.d8F);n5e(this);a:switch(B=this.N,A=this.L.experiments,L=this.W,B.flavor){case "fairplay":P7()>19.2999?(A=B.wV,B=B.Ub,
|
|
B>=A&&(B=A*.75),L=(A-B)*.5,B=new en(L,A,A-L-B,this)):B=null;break a;case "widevine":B=new ni(L,this,A);break a;default:B=null}if(this.D=B)g.W(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.It,this),this.D.subscribe("log_qoe",this.Jd,this);Ij(this.L.experiments);this.Jd({cks:this.N.getInfo()})};
|
|
n5e=function(A){var L=Wfv(A.U,A.mediaElement);L?L.then(SH(function(){uhk(A)}),SH(function(B){if(!A.TL()){g.mL(B);
|
|
var f="t.a";B instanceof DOMException&&(f+=";n."+B.name+";m."+B.message);A.publish("licenseerror","drm.unavailable",1,f,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(A.Jd({mdkrdy:1}),A.yj=!0);
|
|
A.Wn&&(L=Wfv(A.Wn,A.mediaElement))};
|
|
Aiy=function(A,L,B){A.Ys=!0;B=new OL(L,B);A.L.J("html5_eme_loader_sync")&&(A.T.get(L)||A.T.set(L,B));aq7(A,B)};
|
|
aq7=function(A,L){if(!A.TL()){A.Jd({onInitData:1});if(A.L.J("html5_eme_loader_sync")&&A.videoData.V&&A.videoData.V.N){var B=A.X.get(L.initData);L=A.T.get(L.initData);if(!B||!L)return;L=B;B=L.initData;A.T.remove(B);A.X.remove(B)}A.Jd({initd:L.initData.length,ct:L.contentType});if(A.N.flavor==="widevine")if(A.wT&&!A.videoData.isLivePlayback)BY(A);else{if(!(A.L.J("vp9_drm_live")&&A.videoData.isLivePlayback&&L.qU)){A.wT=!0;B=L.cryptoPeriodIndex;var f=L.N;lAw(L);L.qU||(f&&L.N!==f?A.publish("ctmp","cpsmm",
|
|
{emsg:f,pssh:L.N}):B&&L.cryptoPeriodIndex!==B&&A.publish("ctmp","cpimm",{emsg:B,pssh:L.cryptoPeriodIndex}));A.publish("widevine_set_need_key_info",L)}}else A.It(L)}};
|
|
uhk=function(A){if(!A.TL())if(A.L.J("html5_drm_set_server_cert")||F5(A.N)){var L=A.U.setServerCertificate();L?L.then(SH(function(B){A.L.hw()&&A.publish("ctmp","ssc",{success:B})}),SH(function(B){A.publish("ctmp","ssce",{n:B.name,
|
|
m:B.message})})).then(SH(function(){L46(A)})):L46(A)}else L46(A)};
|
|
L46=function(A){A.TL()||(A.yj=!0,A.Jd({onmdkrdy:1}),BY(A))};
|
|
o2e=function(A){return A.N.flavor==="widevine"&&A.videoData.J("html5_drm_cpi_license_key")};
|
|
BY=function(A){if(A.Ys&&A.yj&&!A.ZM){for(;A.V.length;){var L=A.V[0],B=o2e(A)?mM1(L):g.Y$(L.initData);if(F5(A.N)&&!L.W)A.V.shift();else{if(A.W.get(B))if(A.N.flavor!=="fairplay"||F5(A.N)){A.V.shift();continue}else A.W.delete(B);lAw(L);break}}A.V.length&&A.createSession(A.V[0])}};
|
|
BM6=function(A){var L,B;g.c(function(f){if(f.N==1){var K;if(K=g.ng()){var V;K=!((V=A.U.W)==null||!V.getMetrics)}return K?g.X(f,A.U.getMetrics(),2):f.return()}L=f.W;if(!L)return f.return();FL(L)||(L=g.sX(L));B=/^[A-Za-z0-9_-]+={0,3}$/;B.test(L)||(L=g.Uz(L,void 0,!0));A.publish("ctmp","drm",{metrics:L});g.VK(f)})};
|
|
fR=function(){var A=DW8();return!(!A||A==="visible")};
|
|
K41=function(A){var L=fbD();L&&document.addEventListener(L,A,!1)};
|
|
Vbk=function(A){var L=fbD();L&&document.removeEventListener(L,A,!1)};
|
|
fbD=function(){if(document.visibilityState)var A="visibilitychange";else{if(!document[jw+"VisibilityState"])return"";A=jw+"visibilitychange"}return A};
|
|
SVS=function(A){Ji6=A};
|
|
ZTE=function(A){RVv=A};
|
|
NME=function(A){g.Y.call(this);var L=this;this.Np=A;this.Ld=0;this.T=this.W=this.D=!1;this.U=0;this.tF=this.Np.K();this.videoData=this.Np.getVideoData();this.V=g.Am(this.tF.experiments,"html5_delayed_retry_count");this.N=new g.aa(function(){L.Np.A1()},g.Am(this.tF.experiments,"html5_delayed_retry_delay_ms"));
|
|
g.W(this,this.N)};
|
|
wO6=function(A,L,B){var f=A.videoData.W,K=A.videoData.U,V=A.tF.J("html5_disable_codec_fallback_for_drm")&&A.videoData.U6();pr(A.Np.getVideoData())&&A.tF.J("html5_gapless_fallback_on_qoe_restart")&&aI6(A.Np,"pe");if((L==="progressive.net.retryexhausted"||L==="fmt.unplayable"||L==="fmt.decode")&&!A.Np.IC.D&&f&&f.itag==="22")return A.Np.IC.D=!0,A.Ho("qoe.restart",{reason:"fmt.unplayable.22"}),A.Np.A8(),!0;var J=!1;if(A.videoData.isExternallyHostedPodcast){if(J=A.videoData.oP)B.mimeType=J.type,A.Hn("3pp",
|
|
{url:J.url});B.ns="3pp";A.Np.O9(L,1,"VIDEO_UNAVAILABLE",f$((new g.K$(L,B,1)).details));return!0}var R=A.Ld+3E4<(0,g.bc)()||A.N.isActive();if(A.tF.J("html5_empty_src")&&A.videoData.isAd()&&L==="fmt.unplayable"&&/Empty src/.test(""+B.msg))return B.origin="emptysrc",A.Ho("auth",B),!0;R||F48(A.Np.WI())||(B.nonfg="paused",R=!0,A.Np.pauseVideo());(L==="fmt.decode"||L==="fmt.unplayable")&&(K==null?0:Ya(K))&&(pi6(A.tF.D,K.Bn),B.acfallexp=K.Bn,J=R=!0);!R&&A.V>0&&(A.N.start(),R=!0,B.delayed="1",--A.V);K=A.Np.loader;
|
|
R||!((f==null?0:Mb(f))||(f==null?0:iQ(f)))||V||(pi6(A.tF.D,f.Bn),J=R=!0,B.cfallexp=f.Bn);if(!R)return DIS(A,B);V=!1;A.D?A.Ld=(0,g.bc)():V=A.D=!0;R=A.videoData;if(R.wT){R=R.wT.Lk();var Z=Date.now()/1E3+1800;R=R<Z}else R=!1;B.e=L;B.bkg=fR();R&&(B.staleprog="1");A.Ho("qoe.restart",B);if(R&&dIL(A))return Ibw(A),!0;if(!(!g.xz("philips")||L==="fmt.unplayable"&&K&&K.ZM||A.tF.N.cplatform==="GAME_CONSOLE"))try{window.close()}catch(N){}f&&Mb(f)&&!A.tF.J("html5_allow_av1_retry_in_session")?(J=A.tF.D,J.yj=!0,
|
|
J=J.N=!0):K?V||(L=(L=n5(K.videoTrack)||K.videoTrack.N)?L.b1:K.videoTrack.b1,L.T+=1,K.policy.N?dP(K.U.N,L,!0):sL(K.N,L,!0)):A.videoData.wT&&A.videoData.wT.B3();A.N.isActive()||A.Np.A1(J);return!0};
|
|
DIS=function(A,L){if(A.videoData.G)return!1;A.tF.mH+=1;if(A.tF.mH<=10)return!1;L.exiled=""+A.tF.mH;A.Ho("qoe.start15s",L);A.Np.publish("playbackstalledatstart");return!0};
|
|
dIL=function(A){if(A.W)return!0;if(A.tF.Wn!=="yt")return!1;if(A.tF.experiments.Qf().N.Iv(IP)&&iS(A.videoData)){var L;return(L=A.Np.loader)==null?void 0:L.Np.getVideoData().G?(0,g.bc)()-L.schedule.Ys>3E5&&L.Uv>=3:!L.schedule.Ys}return A.videoData.G?A.videoData.Cr<25:!A.videoData.Cr};
|
|
Ibw=function(A){if(!A.W){A.W=!0;var L=A.Np.getPlayerState();L=L.isPaused()||L.isSuspended();A.Np.aC();L&&!Bh(A.videoData)||A.Np.publish("signatureexpired")}};
|
|
pOC=function(A,L){if((A=A.Np.pD())&&(L.errorCode==="fmt.unplayable"||L.errorCode==="html5.invalidstate")){var B=A.p8();L.details.merr=B?B.toString():"0";L.details.mmsg=A.SE()}};
|
|
yiw=function(A){return A.errorCode==="net.badstatus"&&(A.severity===1||!!A.details.fmt_unav)};
|
|
j5C=function(A,L){return A.tF.J("html5_use_network_error_code_enums")&&L.details.rc===403||L.details.rc==="403"?(A=L.errorCode,A==="net.badstatus"||A==="manifest.net.retryexhausted"):!1};
|
|
GC7=function(A,L){if(!j5C(A,L)&&!A.W)return!1;L.details.sts="20424";if(dIL(A))return Vu(L.severity)&&(L=Object.assign({e:L.errorCode},L.details),L=new g.K$("qoe.restart",L)),A.Ho(L.errorCode,L.details),Ibw(A),!0;(0,g.bc)()-A.tF.Bk>6048E5&&g2e(A,"signature");return!1};
|
|
g2e=function(A,L){try{L={detail:"pr."+L},(V3(A.tF)||ge(A.tF)==="TVHTML5_FOR_KIDS")&&A.tF.J("html5_reload_by_kabuki_app")?A.Np.O9("qoe.restart",1,void 0,f$(L),"7"):(A.Ho("qoe.restart",L),window.location.reload())}catch(B){}};
|
|
ri8=function(A,L){var B=A.tF.D;B.T=!1;B.N=!0;A.Ho("qoe.restart",{e:L===void 0?"fmt.noneavailable":L,detail:"hdr"});A.Np.A1(!0)};
|
|
s5E=function(A,L,B,f,K,V){this.videoData=A;this.N=L;this.reason=B;this.W=f;this.token=K;this.videoId=V};
|
|
KR=function(A,L,B,f){this.L=A;this.z8=L;this.Np=B;this.Ml=f;this.G=this.T=this.N=this.U=this.X=this.W=0;this.D=!1;this.yj=g.Am(this.L.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.V=new Map};
|
|
HT6=function(A,L,B){!A.L.J("html5_tv_ignore_capable_constraint")&&g.wY(A.L)&&(B=B.compose(A.Ms(L)));return B};
|
|
hV0=function(A){if(A.Np.WI().isInline())return fr;A=cZ[h2()];return g.XX("auto",A,!1,"s")};
|
|
tb6=function(A,L){var B,f=bTD(A,(B=L.N)==null?void 0:B.videoInfos);B=A.Np.getPlaybackRate();return B>1&&f?(A=DKe(A.L.D,L.N.videoInfos,B),new $Q(0,A,!0,"o")):new $Q(0,0,!1,"o")};
|
|
bTD=function(A,L){return L&&g.wY(A.L)?L.some(function(B){return B.video.fps>32}):!1};
|
|
kCL=function(A,L){if(A.J("html5_disable_ustreamer_constraint_for_sabr")&&iS(L.videoData))return fr;var B=A.Np.gV();A.J("html5_use_video_quality_cap_for_ustreamer_constraint")&&B&&B.IL>0&&EO(L.videoData.zK)&&(A=B.IL,L.videoData.zK=new $Q(0,A,!1,"u"));return L.videoData.zK};
|
|
TM0=function(A,L){var B;a:if((B=L.N)&&B.videoInfos.length){for(var f=g.m(B.videoInfos),K=f.next();!K.done;K=f.next()){K=K.value;var V=void 0;if((V=K.W)==null?0:V.smooth){B=K.video.qualityOrdinal;break a}}B=B.videoInfos[0].video.qualityOrdinal}else B=0;(g.xz("armv7")||g.xz("aarch64")||g.xz("android"))&&!g.wY(A.L)&&iQ(L.N.videoInfos[0])&&(B=Math.min(B,g.ka.large));f=g.Am(A.L.experiments,"html5_chipset_soft_cap");f>0&&(B=Math.min(B,f));if(f=g.Am(A.L.experiments,"html5_max_vertical_resolution")){K=4320;
|
|
for(V=0;V<L.N.videoInfos.length;V++){var J=L.N.videoInfos[V];J.video.height>f&&(K=Math.min(K,J.video.qualityOrdinal))}if(K<4320){for(J=V=0;J<L.N.videoInfos.length;J++){var R=L.N.videoInfos[J].video.qualityOrdinal;R<K&&(V=Math.max(V,R))}V&&(B=Math.min(V,B))}A.Np.Hn("mvr",{h:f,cp:B})}return new $Q(0,B,!1,"o")};
|
|
mI8=function(A,L){var B=4320;!A.L.W||g.PL(A.L)||A.L.J("hls_for_vod")||A.L.J("mweb_remove_360p_cap")||(B=g.ka.medium);var f=g.Am(A.L.experiments,"html5_default_quality_cap");f&&L.N.N&&(A.L.J("html5_always_apply_default_quality_cap")||!L.videoData.bY&&!L.videoData.Zj)&&(B=Math.min(B,f));f=g.Am(A.L.experiments,"html5_random_playback_cap");var K=/[a-h]$/;f&&K.test(L.videoData.clientPlaybackNonce)&&(B=Math.min(B,f));if(K=f=g.Am(A.L.experiments,"html5_hfr_quality_cap"))a:{K=L.N;if(K.N){K=g.m(K.videoInfos);
|
|
for(var V=K.next();!V.done;V=K.next())if(V.value.video.fps>32){K=!0;break a}}K=!1}K&&(B=Math.min(B,f));(f=g.Am(A.L.experiments,"html5_live_quality_cap"))&&L.videoData.isLivePlayback&&(B=Math.min(B,f));B=lbv(A,L,B);A=g.Am(A.L.experiments,"html5_byterate_soft_cap");return new $Q(0,B===4320?0:B,!1,"d",A)};
|
|
Q5y=function(A){var L,B,f,K;return g.c(function(V){switch(V.N){case 1:return A.N.N&&typeof((L=navigator.mediaCapabilities)==null?void 0:L.decodingInfo)==="function"?g.X(V,Promise.resolve(),2):V.return(Promise.resolve());case 2:B=g.m(A.N.videoInfos),f=B.next();case 3:if(f.done){V.Ux(0);break}K=f.value;return g.X(V,Dfv(K),4);case 4:f=B.next(),V.Ux(3)}})};
|
|
$IQ=function(A,L,B,f){if(!L||!B||!L.videoData.W)return!1;var K=g.Am(A.L.experiments,"html5_df_downgrade_thresh"),V=A.J("html5_log_media_perf_info");if(!((0,g.bc)()-A.U<5E3?0:V||K>0))return!1;var J=((0,g.bc)()-A.U)/1E3;A.U=(0,g.bc)();B=B.getVideoPlaybackQuality();if(!B)return!1;var R=B.droppedVideoFrames-A.T,Z=B.totalVideoFrames-A.G;A.T=B.droppedVideoFrames;A.G=B.totalVideoFrames;var N=B.displayCompositedVideoFrames===0?0:B.displayCompositedVideoFrames||-1;V&&A.L.hw()&&A.Np.Hn("ddf",{dr:B.droppedVideoFrames,
|
|
de:B.totalVideoFrames,comp:N});if(f)return A.N=0,!1;if((Z-R)/J>A.yj||!K||g.wY(A.L))return!1;A.N=(Z>60?R/Z:0)>K?A.N+1:0;if(A.N!==3)return!1;C$D(A,L.videoData.W);A.Np.Hn("dfd",Object.assign({dr:B.droppedVideoFrames,de:B.totalVideoFrames},iTL()));return!0};
|
|
C$D=function(A,L){var B=L.Bn,f=L.video.fps,K=L.video.qualityOrdinal-1,V=A.V;L=""+B+(f>49?"p60":f>32?"p48":"");B=fM(B,f,V);K>0&&(B=Math.min(B,K));if(!Vn.has(L)&&kQ().includes(L)){var J=B;B=t2();+B[L]>0&&(J=Math.min(+B[L],J));B[L]!==J&&(B[L]=J,g.OS("yt-player-performance-cap",B,2592E3))}else if(Vn.has(L)||V==null){a:{J=J===void 0?!0:J;f=kQ().slice();if(J){if(f.includes(L))break a;f.push(L)}else{if(!f.includes(L))break a;f.splice(f.indexOf(L),1)}g.OS("yt-player-performance-cap-active-set",f,2592E3)}BL.set(L,
|
|
B)}else Vn.add(L),V==null||V.set(L,B);A.Np.EU()};
|
|
XO8=function(A,L){if(!L.N.N)return A.D?new $Q(0,360,!1,"b"):fr;for(var B=!1,f=!1,K=g.m(L.N.videoInfos),V=K.next();!V.done;V=K.next())Mb(V.value)?B=!0:f=!0;B=B&&f;f=0;K=g.Am(A.L.experiments,"html5_performance_cap_floor");K=A.L.W?240:K;L=g.m(L.N.videoInfos);for(V=L.next();!V.done;V=L.next()){var J=V.value;if(!B||!Mb(J))if(V=fM(J.Bn,J.video.fps,A.V),J=J.video.qualityOrdinal,Math.max(V,K)>=J){f=J;break}}return new $Q(0,f,!1,"b")};
|
|
OT8=function(A,L){var B=A.Np.WI();return B.isInline()&&!L.YS?new $Q(0,480,!1,"v"):iS(L)?fr:B.isBackground()&&rT()/1E3>60&&!g.wY(A.L)?new $Q(0,360,!1,"v"):fr};
|
|
E2E=function(A,L,B){if(A.L.experiments.GL("html5_disable_client_autonav_cap_for_onesie")&&L.fetchType==="onesie"||g.wY(A.L)&&(h2(-1)>=1080||L.osid))return fr;var f=g.Am(A.L.experiments,"html5_autonav_quality_cap"),K=g.Am(A.L.experiments,"html5_autonav_cap_idle_secs");return f&&L.isAutonav&&rT()/1E3>K?(B&&(f=lbv(A,B,f)),new $Q(0,f,!1,"e")):fr};
|
|
lbv=function(A,L,B){if(A.J("html5_optimality_defaults_chooses_next_higher")&&B)for(A=L.N.videoInfos,L=1;L<A.length;L++)if(A[L].video.qualityOrdinal<B)return A[L-1].video.qualityOrdinal;return B};
|
|
ciE=function(A,L){A.J("html5_log_media_perf_info")&&(A.Np.Hn("perfdb",iTL()),A.Np.Hn("sessionperfdb",Object.fromEntries(BL.entries())),A.Np.Hn("playbackperfdb",Object.fromEntries(A.V.entries())),A.Np.Hn("hwc",{nch:navigator.hardwareConcurrency},!0),L&&A.Np.Hn("mcdb",{itags:L.N.videoInfos.filter(function(B){var f;return((f=B.W)==null?void 0:f.smooth)===!1}).map(function(B){return B.itag}).join("-")}))};
|
|
iTL=function(){return sc(t2(),function(A){return""+A})};
|
|
Jt=function(A){g.Y.call(this);var L=this;this.provider=A;this.N=-1;this.D=!1;this.W=-1;this.playerState=new g.Gu;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.U=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.aa(this.send,6E4,this);this.V=!1;this.jsErrorCount=0;this.GV={f_:function(){L.f_()}};
|
|
this.f_=function(){L.jsErrorCount++};
|
|
g.W(this,this.delay);window.addEventListener("error",this.f_);window.addEventListener("unhandledrejection",this.f_)};
|
|
MbE=function(A){A.N>=0||(A.provider.Np.getVisibilityState()===3?A.D=!0:(A.N=g.Ci(A.provider),A.delay.start()))};
|
|
YVv=function(A){if(!(A.W<0)){var L=g.Ci(A.provider),B=L-A.U;A.U=L;A.playerState.state===8?A.playTimeSecs+=B:A.playerState.isBuffering()&&!g.x(A.playerState,16)&&(A.rebufferTimeSecs+=B)}};
|
|
UI6=function(A){var L;switch((L=A.L.playerCanaryStage)==null?void 0:L.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";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
|
|
W4E=function(A){var L=this;this.provider=A;this.G=!1;this.N=0;this.U=-1;this.gN=NaN;this.V=0;this.segments=[];this.X=this.T=0;this.previouslyEnded=!1;this.D=0;this.serializedPlaybackPingContextLoggingData=void 0;this.GV={EAr:function(){return L.serializedPlaybackPingContextLoggingData}};
|
|
this.Wn=this.provider.Np.getVolume();this.yj=this.provider.Np.isMuted()?1:0;this.W=Sv(this.provider)};
|
|
Rc=function(A){A.W.startTime=A.V;A.W.endTime=A.N;var L;if((L=A.serializedPlaybackPingContextLoggingData)==null?0:L.length)A.W.serializedPlaybackPingContextLoggingData=A.serializedPlaybackPingContextLoggingData;L=!1;A.segments.length&&g.vw(A.segments).isEmpty()?(A.segments[A.segments.length-1].previouslyEnded&&(A.W.previouslyEnded=!0),A.segments[A.segments.length-1]=A.W,L=!0):A.segments.length&&A.W.isEmpty()||(A.segments.push(A.W),L=!0);L?A.W.endTime===0&&(A.previouslyEnded=!1):A.W.previouslyEnded&&
|
|
(A.previouslyEnded=!0);A.T+=A.N-A.V;A.W=Sv(A.provider);A.W.previouslyEnded=A.previouslyEnded;A.provider.L.Qf().N.Iv(v20)&&(A.D+=JSON.stringify(A.W).length);A.previouslyEnded=!1;A.V=A.N};
|
|
P$0=function(A){qV6(A);A.X=g.Gc(function(){A.update()},100);
|
|
A.gN=g.Ci(A.provider);A.W=Sv(A.provider)};
|
|
qV6=function(A){g.sQ(A.X);A.X=NaN};
|
|
xI6=function(A,L,B){B-=A.gN;return L===A.N&&B>.5};
|
|
eVE=function(A,L,B,f){this.L=L;this.KY=B;this.segments=[];this.experimentIds=[];this.sx=this.zV=this.isFinal=this.delayThresholdMet=this.Uv=this.k6=this.autoplay=this.autonav=!1;this.t$="yt";this.T=[];this.X=this.yj=null;this.sendVisitorIdHeader=this.cn=!1;this.G=this.pageId="";this.nD=!1;this.D=B==="watchtime";this.V=B==="playback";this.ZM=B==="atr";this.Ry=B==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ZM?"/api/stats/"+B:"//"+L.gg+"/api/stats/"+B;f&&(this.zV=f.fs,f.rtn&&(this.X=f.rtn),this.D?
|
|
(this.playerState=f.state,f.rti>0&&(this.yj=f.rti)):(this.O_=f.mos,this.b2=f.volume,f.at&&(this.adType=f.at)),f.autonav&&(this.autonav=f.autonav),f.inview!=null&&(this.N8=f.inview),f.size&&(this.Pz=f.size),f.playerwidth&&(this.a8=f.playerwidth),f.playerheight&&(this.o4=f.playerheight));this.LD=g.is(L.N);this.G=sR(L.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.G==="all"||this.G==="once")this.jI=g.is(L.Uv);this.Po=L.O_;this.experimentIds=RE1(L.experiments);this.Cr=L.nD;this.t$=L.Wn;this.region=
|
|
L.region;this.userAge=L.userAge;this.Nl=L.iW;this.GZ=rT();this.sendVisitorIdHeader=L.sendVisitorIdHeader;this.wT=L.J("vss_pings_using_networkless")||L.J("kevlar_woffle");this.Bk=L.J("vss_final_ping_send_and_write");this.JF=L.J("vss_use_send_and_write");this.pageId=L.pageId;this.Pk=L.J("vss_playback_use_send_and_write");L.livingRoomAppMode&&(this.livingRoomAppMode=L.livingRoomAppMode);g.MM(L)&&(this.Ys=L.wT);g.IX(g.nM(L))&&this.T.push(1);this.accessToken=g.Aj(A);A.Ly[this.KY]?this.U=A.Ly[this.KY]:
|
|
A.Ly.playback&&(this.U=A.Ly.playback);this.adFormat=A.adFormat;this.adQueryId=A.adQueryId;this.autoplay=ly7(A);this.V&&(this.k6=A.Ll&&nr(A)==="adunit"?!0:!1);this.autonav=A.isAutonav||this.autonav;this.contentVideoId=uj(A);this.clientPlaybackNonce=A.clientPlaybackNonce;this.Uv=A.OE;A.T&&(this.qp=A.T,this.mH=A.Zl);A.mdxEnvironment&&(this.mdxEnvironment=A.mdxEnvironment);this.N=A.jI;this.qo=A.qo;A.W&&(this.WR=A.W.itag,A.U&&A.U.itag!==this.WR&&(this.ql=A.U.itag));A.N&&WZ(A.N)&&(this.offlineDownloadUserChoice=
|
|
"1");this.eventLabel=nr(A);this.sx=A.Pz?!1:A.N8;this.m1=A.Ji;if(L=$T(A))this.mC=L;this.jD=A.Tf;this.partnerId=A.partnerId;this.eventId=A.eventId;this.playlistId=A.n2||A.playlistId;this.kc=A.kc;this.bY=A.bY;this.CQ=A.CQ;this.dY=A.dY;this.subscribed=A.subscribed;this.videoId=A.videoId;this.videoMetadata=A.videoMetadata;this.visitorData=A.visitorData;this.osid=A.osid;this.oB=A.oB;this.referrer=A.referrer;this.Sw=A.Ts||A.Sw;this.Ox=A.Xp;this.bK=A.bK;this.userGenderAge=A.userGenderAge;this.f2=A.f2;this.embedsRct=
|
|
A.embedsRct;this.embedsRctn=A.embedsRctn;g.MM(this.L)&&A.mutedAutoplay&&(A.mutedAutoplayDurationMode===2&&A.limitedPlaybackDurationInSeconds===0&&A.endSeconds===0?this.T.push(7):this.T.push(2));A.isEmbedsShortsMode(new g.Sr(this.a8,this.o4),!!this.playlistId)&&this.T.push(3);g.Nm(A)&&this.T.push(4);this.Ex=A.hS;A.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=A.compositeLiveIngestionOffsetToken);A=A.getPlayerResponse();var K,V;this.nD=this.L.J("html5_switch_vss_to_post")||
|
|
!!(A==null?0:(K=A.playerConfig)==null?0:(V=K.vssClientConfig)==null?0:V.vssUsePostRequest)};
|
|
n2D=function(A,L){var B=A.sendVisitorIdHeader?A.visitorData:void 0;return g.po(A.L,A.accessToken).then(function(f){return Hm(A.uri,A.L,A.pageId,B,f,L)})};
|
|
abv=function(A,L){return function(){A.L.J("html5_simplify_pings")?(A.N=A.S4,A.TZ=L(),A.GZ=0,A.send()):n2D(A).then(function(B){var f=zVC(A);f.cmt=f.len;f.lact="0";var K=L().toFixed(3);f.rt=Number(K).toString();f=g.ip(A.uri,f);A.L.J("vss_through_gel_double")&&uT1(f);A.wT?(B==null&&(B={}),A.JF?n4().sendAndWrite(f,B):n4().sendThenWrite(f,B)):B?g.ll(f,B):g.MJ(f)})}};
|
|
zVC=function(A){var L={ns:A.t$,el:A.eventLabel,cpn:A.clientPlaybackNonce,ver:2,cmt:A.W(A.N),fmt:A.WR,fs:A.zV?"1":"0",rt:A.W(A.TZ),adformat:A.adFormat,content_v:A.contentVideoId,euri:A.Po,lact:A.GZ,live:A.mC,cl:(839483937).toString(),mos:A.O_,state:A.playerState,volume:A.b2};A.subscribed&&(L.subscribed="1");Object.assign(L,A.LD);A.G==="all"?Object.assign(L,A.jI):A.G==="once"&&A.V&&Object.assign(L,A.jI);A.autoplay&&(L.autoplay="1");A.k6&&(L.sautoplay="1");A.Uv&&(L.dni="1");!A.D&&A.Ys&&(L.epm=A4L[A.Ys]);
|
|
A.isFinal&&(L["final"]="1");A.sx&&(L.splay="1");A.qo&&(L.delay=A.qo);A.Cr&&(L.hl=A.Cr);A.region&&(L.cr=A.region);A.userGenderAge&&(L.uga=A.userGenderAge);A.userAge!==void 0&&A.Nl&&(L.uga=A.Nl+A.userAge);A.S4!==void 0&&(L.len=A.W(A.S4));!A.D&&A.experimentIds.length>0&&(L.fexp=A.experimentIds.toString());A.X!==null&&(L.rtn=A.W(A.X));A.Sw&&(L.feature=A.Sw);A.bY&&(L.ctrl=A.bY);A.CQ&&(L.ytr=A.CQ);A.ql&&(L.afmt=A.ql);A.offlineDownloadUserChoice&&(L.ODUC=A.offlineDownloadUserChoice);A.Wn&&(L.lio=A.W(A.Wn));
|
|
A.D?(L.idpj=A.m1,L.ldpj=A.jD,A.delayThresholdMet&&(L.dtm="1"),A.yj!=null&&(L.rti=A.W(A.yj)),A.f2&&(L.ald=A.f2),A.compositeLiveIngestionOffsetToken&&(L.clio=A.compositeLiveIngestionOffsetToken)):A.adType!==void 0&&(L.at=A.adType);A.Pz&&(A.V||A.D)&&(L.size=A.Pz);A.V&&A.T.length&&(L.pbstyle=A.T.join(","));A.N8!=null&&(A.V||A.D)&&(L.inview=A.W(A.N8));A.D&&(L.volume=Z5(A,g.mn(A.segments,function(f){return f.volume})),L.st=Z5(A,g.mn(A.segments,function(f){return f.startTime})),L.et=Z5(A,g.mn(A.segments,
|
|
function(f){return f.endTime})),K9(A.segments,function(f){return f.playbackRate!==1})&&(L.rate=Z5(A,g.mn(A.segments,function(f){return f.playbackRate}))),K9(A.segments,function(f){return f.N!=="-"})&&(L.als=g.mn(A.segments,function(f){return f.N}).join(",")),K9(A.segments,function(f){return f.previouslyEnded})&&(L.pe=g.mn(A.segments,function(f){return""+ +f.previouslyEnded}).join(",")));
|
|
L.muted=Z5(A,g.mn(A.segments,function(f){return f.muted?1:0}));
|
|
K9(A.segments,function(f){return f.visibilityState!==0})&&(L.vis=Z5(A,g.mn(A.segments,function(f){return f.visibilityState})));
|
|
K9(A.segments,function(f){return f.connectionType!==0})&&(L.conn=Z5(A,g.mn(A.segments,function(f){return f.connectionType})));
|
|
K9(A.segments,function(f){return f.W!==0})&&(L.blo=Z5(A,g.mn(A.segments,function(f){return f.W})));
|
|
K9(A.segments,function(f){return!!f.U})&&(L.blo=g.mn(A.segments,function(f){return f.U}).join(","));
|
|
K9(A.segments,function(f){return!!f.compositeLiveStatusToken})&&(L.cbs=g.mn(A.segments,function(f){return f.compositeLiveStatusToken}).join(","));
|
|
K9(A.segments,function(f){return!!f.heartbeatLoggingToken})&&(L.hb_data=g.mn(A.segments,function(f){return f.heartbeatLoggingToken}).join(","));
|
|
K9(A.segments,function(f){return f.V!=="-"})&&(L.cc=g.mn(A.segments,function(f){return f.V}).join(","));
|
|
K9(A.segments,function(f){return f.clipId!=="-"})&&(L.clipid=g.mn(A.segments,function(f){return f.clipId}).join(","));
|
|
if(K9(A.segments,function(f){return!!f.audioId})){var B="au";
|
|
A.V&&(B="au_d");L[B]=g.mn(A.segments,function(f){return f.audioId}).join(",")}Dp()&&A.qp&&(L.ctt=A.qp,L.cttype=A.mH,L.mdx_environment=A.mdxEnvironment);
|
|
A.Ry&&(L.etype=A.Vj!==void 0?A.Vj:0);A.Ox&&(L.uoo=A.Ox);A.livingRoomAppMode&&A.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(L.clram=LxC[A.livingRoomAppMode]||A.livingRoomAppMode);A.U?oUe(A,L):(L.docid=A.videoId,L.referrer=A.referrer,L.ei=A.eventId,L.of=A.oB,L.osid=A.osid,L.vm=A.videoMetadata,A.adQueryId&&(L.aqi=A.adQueryId),A.autonav&&(L.autonav="1"),A.playlistId&&(L.list=A.playlistId),A.dY&&(L.ssrt="1"),A.bK&&(L.upt=A.bK));A.V&&(A.embedsRct&&(L.rct=A.embedsRct),A.embedsRctn&&(L.rctn=
|
|
A.embedsRctn),A.compositeLiveIngestionOffsetToken&&(L.clio=A.compositeLiveIngestionOffsetToken));A.Ex&&(L.host_cpn=A.Ex);return L};
|
|
oUe=function(A,L){if(L&&A.U){var B=new Set(["q","feature","mos"]),f=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),K=new Set(["aqi","autonav","list","ssrt","upt"]);A.U.ns==="3pp"&&(L.ns="3pp");for(var V=g.m(Object.keys(A.U)),J=V.next();!J.done;J=V.next())J=J.value,f.has(J)||B.has(J)||K.has(J)&&!A.U[J]||(L[J]=A.U[J])}};
|
|
Z5=function(A,L){return g.mn(L,A.W).join(",")};
|
|
uT1=function(A){A.indexOf("watchtime")!==-1&&g.pE("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:A}})};
|
|
BPv=function(A,L){A.attestationResponse&&n2D(A).then(function(B){B=B||{};B.method="POST";B.postParams={atr:A.attestationResponse};A.wT?A.JF?n4().sendAndWrite(L,B):n4().sendThenWrite(L,B):g.ll(L,B)})};
|
|
fU8=function(A){var L={vssSegmentMetadata:[]};if(K9(A.segments,function(f){return!!f.serializedPlaybackPingContextLoggingData})){A=g.m(A.segments);
|
|
for(var B=A.next();!B.done;B=A.next())L.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:B.value.serializedPlaybackPingContextLoggingData||[""]});return L}};
|
|
N9=function(A){g.Y.call(this);var L=this;this.provider=A;this.T="paused";this.D=NaN;this.G=[10,10,10,40];this.yj=this.X=0;this.qp=this.ZM=this.Vj=this.Wn=this.V=!1;this.W=this.U=NaN;this.logger=new g.sI("vss");this.GV={Sr4:function(){return L.N}};
|
|
this.N=new W4E(A)};
|
|
KxE=function(A){var L=A.provider.videoData.Ji,B=A.provider.videoData.Tf,f=[10+L,10,10,40+B-L,40],K,V=(K=A.provider.videoData.getPlayerResponse())==null?void 0:K.playbackTracking,J=V==null?void 0:V.videostatsScheduledFlushWalltimeSeconds;K=V==null?void 0:V.videostatsDefaultFlushIntervalSeconds;if(!(J&&J.length>0&&K))return f;L=[J[0]+L].concat(g.x7(J.slice(1).map(function(R,Z){return R-J[Z]})),[K+B-L,
|
|
K]);return L.some(function(R){return R<0})?(g.Hp(A.logger,347111855,"Neg vss scheduled pings "+J+" "+K),f):L};
|
|
D5=function(A,L){L=L===void 0?NaN:L;var B=g.Ci(A.provider);L=isNaN(L)?B:L;L=Math.ceil(L);var f=A.G[A.X];A.X+1<A.G.length&&A.X++;var K=L+f;A.D=g.gW(function(){if(!A.TL()){A.D=NaN;var V=Fz(A),J=Vjw(A,V);J.yj=K;var R=A.yj>1E3;!(V.length>1)&&V[0].isEmpty()||R||(J.X=D5(A,K));J.send();A.yj++}},(K-B)*1E3);
|
|
return A.U=K};
|
|
dw=function(A){g.rW(A.D);A.D=NaN};
|
|
Fz=function(A){A.N.update();A=A.N;A.segments.length&&A.N===A.V||Rc(A);var L=A.segments;A.segments=[];A.D=0;return L};
|
|
Ic=function(A,L){var B=J4y(A.provider);Object.assign(B,{state:A.T});L=new eVE(A.provider.videoData,A.provider.L,L,B);L.N=A.provider.Np.Fb();B=A.provider.videoData.clientPlaybackNonce;L.N=A.provider.Np.Yi(B);A.provider.videoData.isLivePlayback||(L.S4=A.provider.Np.getDuration(B));A.provider.videoData.N&&(B=A.provider.videoData.N.wX(L.N))&&(L.Wn=B-L.N,gp(A.provider.videoData)&&(L.N+=A.provider.Np.pY(),L.Wn-=A.provider.Np.pY()));L.TZ=g.Ci(A.provider);L.segments=[Sv(A.provider)];return L};
|
|
Vjw=function(A,L){var B=Ic(A,"watchtime");SLe(A)&&(B.delayThresholdMet=!0,A.Vj=!0);if(A.W>0){for(var f=g.m(L),K=f.next();!K.done;K=f.next())K=K.value,K.startTime-=A.W,K.endTime-=A.W;B.N-=A.W}else B.N=A.N.N;B.segments=L;return B};
|
|
ww=function(A,L){var B=RJ0(A,!isNaN(A.U));L&&(A.U=NaN);return B};
|
|
RJ0=function(A,L){var B=Vjw(A,Fz(A));!isNaN(A.U)&&L&&(B.yj=A.U);return B};
|
|
SLe=function(A){var L;if(L=A.provider.videoData.isLoaded()&&A.provider.videoData.qo&&A.V&&!A.Vj)L=A.N,L=L.T+L.Fb()-L.V>=A.provider.videoData.qo;return!!L};
|
|
NP7=function(A){A.provider.videoData.youtubeRemarketingUrl&&!A.ZM&&(Z50(A,A.provider.videoData.youtubeRemarketingUrl),A.ZM=!0)};
|
|
FxS=function(A){A.provider.videoData.googleRemarketingUrl&&!A.qp&&(Z50(A,A.provider.videoData.googleRemarketingUrl),A.qp=!0)};
|
|
DL8=function(A){if(!A.TL()&&A.V){A.T="paused";var L=ww(A);L.isFinal=!0;L.send();A.dispose()}};
|
|
dL1=function(A,L){if(!A.TL())if(g.x(L.state,2)||g.x(L.state,512)){if(A.T="paused",g.wk(L,2)||g.wk(L,512))g.wk(L,2)&&(A.N.previouslyEnded=!0),A.V&&(dw(A),ww(A).send(),A.U=NaN)}else if(g.x(L.state,8)){A.T="playing";var B=A.V&&isNaN(A.D)?D5(A):NaN;if(!isNaN(B)&&(IA(L,64)<0||IA(L,512)<0)){var f=RJ0(A,!1);f.X=B;f.send()}g.wk(L,16)&&L.state.seekSource===58&&(A.N.previouslyEnded=!0)}else A.T="paused"};
|
|
IUD=function(A,L,B){if(!A.Wn){B||(B=Ic(A,"atr"));B.attestationResponse=L;try{B.send()}catch(f){if(f.message!=="Unknown Error")throw f;}A.Wn=!0}};
|
|
Z50=function(A,L){var B=A.provider.L;g.po(A.provider.L,g.Aj(A.provider.videoData)).then(function(f){var K=A.provider.L.pageId,V=A.provider.L.sendVisitorIdHeader?A.provider.videoData.visitorData:void 0,J=A.provider.L.J("vss_pings_using_networkless")||A.provider.L.J("kevlar_woffle"),R=A.provider.L.J("allow_skip_networkless");f=Hm(L,B,K,V,f);hB(L,f,{token:A.provider.videoData.T,sR:A.provider.videoData.Zl,mdxEnvironment:A.provider.videoData.mdxEnvironment},B,void 0,J&&!R,!1,!0)})};
|
|
wjQ=function(){this.endTime=this.startTime=-1;this.V="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.W=0;this.muted=!1;this.N=this.clipId="-";this.previouslyEnded=!1};
|
|
pR=function(A,L,B){this.videoData=A;this.L=L;this.Np=B;this.N=void 0};
|
|
g.Ci=function(A){return pj6(A)()};
|
|
pj6=function(A){if(!A.N){var L=g.Od(function(f){var K=(0,g.bc)();f&&K<=631152E6&&(A.Np.Hn("ytnerror",{issue:28799967,value:""+K}),K=(new Date).getTime()+2);return K},A.L.J("html5_validate_yt_now")),B=L();
|
|
A.N=function(){return Math.round(L()-B)/1E3};
|
|
A.Np.AZ()}return A.N};
|
|
J4y=function(A){var L=A.Np.OZ()||{};L.fs=A.Np.X1();L.volume=A.Np.getVolume();L.muted=A.Np.isMuted()?1:0;L.mos=L.muted;L.clipid=A.Np.MW();var B;L.playerheight=((B=A.Np.getPlayerSize())==null?void 0:B.height)||0;var f;L.playerwidth=((f=A.Np.getPlayerSize())==null?void 0:f.width)||0;A=A.videoData;B={};A.W&&(B.fmt=A.W.itag,A.U&&(A.sx?A.U.itag!==A.W.itag:A.U.itag!=A.W.itag)&&(B.afmt=A.U.itag));B.ei=A.eventId;B.list=A.playlistId;B.cpn=A.clientPlaybackNonce;A.videoId&&(B.v=A.videoId);A.s$&&(B.infringe=1);
|
|
(A.Pz?0:A.N8)&&(B.splay=1);(f=$T(A))&&(B.live=f);A.Ll&&(B.sautoplay=1);A.BV&&(B.autoplay=1);A.kc&&(B.sdetail=A.kc);A.partnerId&&(B.partnerid=A.partnerId);A.osid&&(B.osid=A.osid);A.JV&&(B.cc=g.Tf0(A.JV));return Object.assign(L,B)};
|
|
GgQ=function(A){var L=fEv();if(L)return y47[L]||y47.other;if(g.wY(A.L)){A=navigator.userAgent;if(/[Ww]ireless[)]/.test(A))return 3;if(/[Ww]ired[)]/.test(A))return 30}return 0};
|
|
Sv=function(A){var L=new wjQ,B;L.V=((B=J4y(A).cc)==null?void 0:B.toString())||"-";L.playbackRate=A.Np.getPlaybackRate();B=A.Np.getVisibilityState();B!==0&&(L.visibilityState=B);A.L.Ox&&(L.W=1);L.U=A.videoData.Sr;L.compositeLiveStatusToken=A.videoData.compositeLiveStatusToken;L.heartbeatLoggingToken=A.videoData.heartbeatLoggingToken;B=A.Np.getAudioTrack();B.ri&&B.ri.id&&B.ri.id!=="und"&&(L.audioId=B.ri.id);L.connectionType=GgQ(A);L.volume=A.Np.getVolume();L.muted=A.Np.isMuted();L.clipId=A.Np.MW()||
|
|
"-";L.N=A.videoData.AS||"-";return L};
|
|
g.yn=function(A,L){g.Y.call(this);var B=this;this.provider=A;this.V=new Map;this.xb=new g.Gu;this.GV={T6M:function(){return B.qoe},
|
|
ewr:function(){return B.N},
|
|
W5M:function(){return B.W}};
|
|
this.provider.videoData.gX()&&!this.provider.videoData.b2&&(this.N=new N9(this.provider),this.N.W=0,g.W(this,this.N),this.qoe=new g.l3(this.provider,L),g.W(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.l0=this.provider.videoData.clientPlaybackNonce)&&this.V.set(this.l0,this.N));if(A.L.playerCanaryState==="canary"||A.L.playerCanaryState==="holdback")this.W=new Jt(this.provider),g.W(this,this.W)};
|
|
jNe=function(A){A.W&&MbE(A.W);A.qoe&&lI8(A.qoe)};
|
|
gUy=function(A){A.W&&A.W.send();if(A.qoe){var L=A.qoe;if(L.U){L.xb==="PL"&&(L.xb="N");var B=g.Ci(L.provider);g.TL(L,B,"vps",[L.xb]);L.X||(L.V>=0&&L.N.set("user_intent",[L.V.toString()]),L.X=!0);L.provider.L.hw()&&L.Hn("finalized",{});L.wT=!0;L.reportStats(B)}}if(A.provider.videoData.enableServerStitchedDai)for(L=g.m(A.V.values()),B=L.next();!B.done;B=L.next())DL8(B.value);else A.N&&DL8(A.N);A.dispose()};
|
|
GE7=function(A,L){A.N&&IUD(A.N,L)};
|
|
r47=function(A){if(!A.N)return null;var L=Ic(A.N,"atr");return function(B){A.N&&IUD(A.N,B,L)}};
|
|
sN6=function(A,L,B,f){B.adFormat=B.ql;var K=L.Np;L=new N9(new pR(B,L.L,{getDuration:function(){return B.lengthSeconds},
|
|
getCurrentTime:function(){return K.getCurrentTime()},
|
|
Fb:function(){return K.Fb()},
|
|
Yi:function(){return K.Yi()},
|
|
Uq:function(){return K.Uq()},
|
|
getPlayerSize:function(){return K.getPlayerSize()},
|
|
getAudioTrack:function(){return B.getAudioTrack()},
|
|
getPlaybackRate:function(){return K.getPlaybackRate()},
|
|
Db:function(){return K.Db()},
|
|
getVisibilityState:function(){return K.getVisibilityState()},
|
|
zH:function(){return K.zH()},
|
|
OZ:function(){return K.OZ()},
|
|
getVolume:function(){return K.getVolume()},
|
|
isMuted:function(){return K.isMuted()},
|
|
X1:function(){return K.X1()},
|
|
MW:function(){return K.MW()},
|
|
getProximaLatencyPreference:function(){return K.getProximaLatencyPreference()},
|
|
AZ:function(){K.AZ()},
|
|
Hn:function(V,J){K.Hn(V,J)},
|
|
Rx:function(){return K.Rx()},
|
|
pY:function(){return K.pY()}}));
|
|
L.W=f;g.W(A,L);return L};
|
|
H5L=function(){this.zo=0;this.U=this.V=this.KC=this.lA=this.W=NaN;this.N={};this.bandwidthEstimate=NaN};
|
|
hJw=function(){this.N=g.vR;this.array=[]};
|
|
tjE=function(A,L,B){var f=[];for(L=b5w(A,L);L<A.array.length;++L){var K=A.array[L];(K.end<=B||K.contains(B))&&f.push(K);if(K.start>B)break}return f};
|
|
jv=function(A,L){var B=[];A=g.m(A.array);for(var f=A.next();!f.done&&!(f=f.value,f.contains(L)&&B.push(f),f.start>L);f=A.next());return B};
|
|
kE1=function(A){return A.array.slice(b5w(A,0x7ffffffffffff),A.array.length)};
|
|
b5w=function(A,L){A=Dw(A.array,function(B){return L-B.start||1});
|
|
return A<0?-(A+1):A};
|
|
TPE=function(A,L){var B=NaN;A=g.m(A.array);for(var f=A.next();!f.done;f=A.next())if(f=f.value,f.contains(L)&&(isNaN(B)||f.end<B)&&(B=f.end),f.start>L&&(isNaN(B)||f.start<B)){B=f.start;break}return B};
|
|
lUy=function(A,L){A.array=A.array.filter(function(B){return!L.has(B)})};
|
|
g.gw=function(A,L){g.Y.call(this);this.Np=A;this.X=L;this.V=NaN;this.D=this.T=this.started=!1;this.W=[];this.G=new g.aa(this.sync,250,this);g.W(this,this.G);this.U=new g.aa(this.sync,0,this);g.W(this,this.U);this.N=new hJw};
|
|
mL7=function(A,L){var B=[];if(!L.length)return B;for(var f=0;f<L.length;f++){var K=L[f];K.active&&A.W.indexOf(K)===-1&&(A.W.push(K),B.push([1,K]))}return B};
|
|
QN0=function(A,L){var B=[];if(!L.length)return B;L.sort(g.vR);L=g.m(L);for(var f=L.next();!f.done;f=L.next())f=f.value,A.W.splice(A.W.indexOf(f),1),B.push([2,f]);return B};
|
|
$L0=function(A){if(A.started&&!A.TL()){A.U.stop();var L=A.Np.getPlayerState();g.x(L,32)&&A.G.start();for(var B=CPD(A),f=A.isEnded(L,B),K=[],V=[],J=g.m(A.W),R=J.next();!R.done;R=J.next())R=R.value,R.active&&(f?R.end<0x8000000000000:!R.contains(B))&&V.push(R);K=K.concat(QN0(A,V));J=V=null;f?(L=jv(A.N,0x7ffffffffffff),V=L.filter(function(Z){return Z.end<0x8000000000000}),J=kE1(A.N)):L=A.V<=B&&kF(L)?tjE(A.N,A.V,B):jv(A.N,B);
|
|
K=K.concat(mL7(A,L));V&&(K=K.concat(QN0(A,V)));J&&(K=K.concat(mL7(A,J)));A.V=B;i5k(A,K)}};
|
|
i5k=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=B[1];B[0]===1?A.X(g.qR(f.namespace),f):A.X(g.PR(f.namespace),f)}};
|
|
CPD=function(A){return g.x(A.Np.getPlayerState(),2)?0x8000000000000:A.Np.getCurrentTime()*1E3};
|
|
XjL=function(A){this.L=A;this.V=this.W=this.mediaTime=NaN;this.U=this.N=!1;this.D=.001;g.wY(A)&&(this.D=.01)};
|
|
Ga=function(A,L){return L>A.mediaTime+A.D&&L<A.mediaTime+5};
|
|
rG7=function(A,L,B,f,K){if(f=f>1)A.U=!0;if((K===void 0?0:K)||isNaN(A.W))A.W=L;if(A.N)L!==A.mediaTime&&(A.N=!1);else if(L>0&&A.mediaTime===L){K=1500;if(A.L.J("html5_buffer_underrun_transition_fix")){K=g.Am(A.L.experiments,"html5_min_playback_advance_for_steady_state_secs");var V=g.Am(A.L.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");K=K>0&&V>0&&Math.abs(L-A.W)<K?V:1500}return B-A.V>(f||!A.U?K:400)}A.mediaTime=L;A.V=B;return!1};
|
|
O5w=function(A,L){this.videoData=A;this.N=L};
|
|
EUv=function(A,L,B){return L.Ij(B).then(function(){return OQ(new O5w(L,L.V))},function(f){f instanceof Error&&g.CE(f);
|
|
var K=RT('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),V=Nb('audio/mp4; codecs="mp4a.40.2"'),J=K||V,R=L.isLivePlayback&&!g.b9(A.D,!0);f="fmt.noneavailable";R?f="html5.unsupportedlive":J||(f="html5.missingapi");J=R||!J?2:1;K={buildRej:"1",a:L.F$(),d:!!L.sZ,drm:L.U6(),f18:L.Nh.indexOf("itag=18")>=0,c18:K};L.N&&(L.U6()?(K.f142=!!L.N.N["142"],K.f149=!!L.N.N["149"],K.f279=!!L.N.N["279"]):(K.f133=!!L.N.N["133"],K.f140=!!L.N.N["140"],K.f242=!!L.N.N["242"]),K.cAAC=V,K.cAVC=Nb('video/mp4; codecs="avc1.42001E"'),
|
|
K.cVP9=Nb('video/webm; codecs="vp9"'));L.D&&(K.drmsys=L.D.keySystem,V=0,L.D.N&&(V=Object.keys(L.D.N).length),K.drmst=V);return new g.K$(f,K,J)})};
|
|
rw=function(A){this.data=window.Float32Array?new Float32Array(A):Array(A);this.W=this.N=A-1};
|
|
c4E=function(A){return A.data[A.N]||0};
|
|
Mj6=function(A){this.D=A;this.V=this.W=0;this.U=new rw(50)};
|
|
HY=function(A,L,B){g.SN.call(this);this.videoData=A;this.experiments=L;this.D=B;this.W=[];this.pJ=0;this.V=!0;this.U=!1;this.T=0;B=new YLe;A.latencyClass==="ULTRALOW"&&(B.G=!1);A.I7?B.V=3:g.MG(A)&&(B.V=2);A.latencyClass==="NORMAL"&&(B.D=!0);B.Wn=iS(A);if(A.latencyClass==="LOW"||A.latencyClass==="ULTRALOW")B.D=!0;var f=g.Am(L,"html5_liveness_drift_proxima_override");if(Tp(A)!==0&&f){B.N=f;var K;((K=A.N)==null?0:rTe(K))&&B.N--}iS(A)&&L.GL("html5_sabr_parse_live_metadata_playback_boundaries")&&(B.qp=
|
|
!0);if(g.xz("trident/")||g.xz("edge/"))K=g.Am(L,"html5_platform_minimum_readahead_seconds")||3,B.U=Math.max(B.U,K);g.Am(L,"html5_minimum_readahead_seconds")&&(B.U=g.Am(L,"html5_minimum_readahead_seconds"));g.Am(L,"html5_maximum_readahead_seconds")&&(B.yj=g.Am(L,"html5_maximum_readahead_seconds"));if(L=g.Am(L,"html5_liveness_drift_chunk_override"))B.N=L;kT(A)&&(B.N=(B.N+1)/5,A.latencyClass==="LOW"&&(B.N*=2));!iS(A)||A.latencyClass!=="ULTRALOW"&&A.latencyClass!=="LOW"||(B.X=3,B.T=25);this.policy=B;
|
|
this.X=this.policy.V!==1;this.N=sP(this,UL7(this,isNaN(A.liveChunkReadahead)?3:A.liveChunkReadahead,A))};
|
|
Wxk=function(A,L){if(L)return L=A.videoData,L=UL7(A,isNaN(L.liveChunkReadahead)?3:L.liveChunkReadahead,L),sP(A,L);if(A.W.length){if(Math.min.apply(null,A.W)>1)return sP(A,A.N-1);if(A.policy.G)return sP(A,A.N+1)}return A.N};
|
|
vUS=function(A,L){if(!A.W.length)return!1;var B=A.N;A.N=Wxk(A,L===void 0?!1:L);if(L=B!==A.N)A.W=[],A.pJ=0;return L};
|
|
bG=function(A,L){return L>=A.gQ()-ht(A)};
|
|
qLD=function(A,L,B){L=bG(A,L);B||L?L&&(A.V=!0):A.V=!1;A.X=A.policy.V===2||A.policy.V===3&&A.V};
|
|
PPS=function(A,L){L=bG(A,L);A.U!==L&&A.publish("livestatusshift",L);A.U=L};
|
|
ht=function(A){var L=A.policy.N;A.U||(L=Math.max(L-1,0));return L*tt(A)};
|
|
UL7=function(A,L,B){B.I7&&L--;kT(B)&&(L=1);if(Tp(B)!==0&&(A=g.Am(A.experiments,"html5_live_chunk_readahead_proxima_override"))){L=A;var f;((f=B.N)==null?0:rTe(f))&&L++}return L};
|
|
tt=function(A){return A.videoData.N?n3(A.videoData.N)||5:5};
|
|
sP=function(A,L){L=Math.max(Math.max(1,Math.ceil(A.policy.U/tt(A))),L);return Math.min(Math.min(8,Math.floor(A.policy.yj/tt(A))),L)};
|
|
YLe=function(){this.U=0;this.yj=Infinity;this.G=!0;this.W=this.N=2;this.V=1;this.D=!1;this.T=10;this.qp=!1;this.X=1;this.Wn=!1};
|
|
lG=function(A){g.Y.call(this);this.Np=A;this.N=0;this.W=null;this.T=this.U=0;this.V={};this.L=this.Np.K();this.D=new g.aa(this.yG,1E3,this);this.sx=kH(this,"html5_seek_timeout_delay_ms");this.Vj=kH(this,"html5_long_rebuffer_threshold_ms");this.cn=kH(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.JF=kH(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Ys=kH(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.jI=kH(this,"html5_unreported_seek_reseek_delay_ms",
|
|
"html5_unreported_seek_reseek_cfl");this.Wn=kH(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.qp=new Ta(2E4);this.S4=kH(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.Cr=kH(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Ex=kH(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.wT=kH(this,"html5_reseek_after_time_jump_delay_ms",
|
|
"html5_reseek_after_time_jump_cfl");this.G=kH(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.yj=kH(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Ox=kH(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Nl=kH(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.X=kH(this,"html5_ads_preroll_lock_timeout_delay_ms",
|
|
"html5_ads_preroll_lock_timeout_cfl");this.ql=new Ta(g.Am(this.L.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.L.J("html5_report_slow_ads_as_error"));this.mH=new Ta(g.Am(this.L.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.L.J("html5_skip_slow_buffering_ad"));this.Uv=kH(this,"html5_slow_start_timeout_delay_ms");this.ZM=kH(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.W(this,this.D)};
|
|
kH=function(A,L,B){B=B===void 0?null:B;var f=f===void 0?0:f;return new Ta(g.Am(A.L.experiments,L)||f,B?A.L.J(B):!1)};
|
|
xLw=function(A,L){A.N=L};
|
|
mI=function(A,L,B,f,K,V,J,R){L?L.test(B)?(A.Ho(K,L,J),L.T||V()):(!L.W||L.U?B=!1:(B=(0,g.bc)(),f?L.N||(L.N=B):L.N=0,V=!f&&B-L.W>3E4,B=L.N&&B-L.N>1E3||V?L.U=!0:!1),B&&(R=Object.assign({},A.Ov(L),R),R.wn=J,R.we=K,R.wsuc=f,A.Np.Hn("workaroundReport",R),f&&(L.reset(),A.V[K]=!1))):A.Np.O9("auth",2,"BROWSER_OR_EXTENSION_ERROR",f$({source:"watchdog",name:J}))};
|
|
Ta=function(A,L){this.T=L===void 0?!1:L;this.N=this.W=this.V=this.startTimestamp=0;this.U=!1;this.D=Math.ceil(A/1E3)};
|
|
u0w=function(A){g.Y.call(this);var L=this;this.Np=A;this.G=this.N=this.loader=this.mediaElement=this.playbackData=null;this.V=0;this.D=this.Vj=this.U=null;this.wT=!1;this.jI=0;this.qp=!1;this.timestampOffset=0;this.yj=!0;this.Cr=0;this.cn=this.KY=!1;this.X=0;this.Nl=!1;this.Ys=this.ZM=0;this.L=this.Np.K();this.videoData=this.Np.getVideoData();this.policy=new eJk;this.Wn=new lG(this.Np);this.mH=this.Ex=this.S4=this.T=this.W=NaN;this.JF=new g.aa(function(){nUD(L,!1)},2E3);
|
|
this.zV=new g.aa(function(){Qn(L)});
|
|
this.sx=new g.aa(function(){zJ8(L,{})});
|
|
this.Uv=NaN;this.ql=new g.aa(function(){var B=L.L.Ym;B.N+=1E4/36E5;B.N-B.V>1/6&&(cAE(B),B.V=B.N);L.ql.start()},1E4);
|
|
g.W(this,this.Wn);g.W(this,this.JF);g.W(this,this.sx);g.W(this,this.zV);g.W(this,this.ql)};
|
|
LZ8=function(A,L){A.playbackData=L;A.videoData.isLivePlayback&&(A.G=new Mj6(function(){a:{if(A.playbackData&&A.playbackData.N.N){if(ta(A.videoData)&&A.loader){var f=A.loader.wq.pw()||0;break a}if(A.videoData.N){f=A.videoData.N.wT;break a}}f=0}return f}),A.N=new HY(A.videoData,A.L.experiments,function(){return A.oA(!0)}));
|
|
if(CR(A.Np)){var B;(B=A.videoData.dB)!=null&&B.cO||(L=aUQ(A),L.DN?(iS(A.videoData)&&A.Qb(L.DN,L.startSeconds),A.V=L.startSeconds):L.startSeconds>0&&A.seekTo(L.startSeconds,{zZ:"seektimeline_startPlayback",seekSource:15}));A.yj=!1}else A6e(A)||(A.V=A.V||A.videoData.startSeconds||0,A.videoData.isLivePlayback||(L=A.Np.videoData.oA(),A.V>L&&(A.J("html5_sabr_log_invalid_sabr_current_time")&&A.Np.Hn("invalidSabrCmtStart",{rt:A.V,mst:L}),A.J("html5_sabr_vod_invalid_start_time_fallback")&&(A.V=0))))};
|
|
Bvw=function(A,L){(A.loader=L)?oqS(A,!0):iG(A)};
|
|
KZD=function(A,L){var B=A.getCurrentTime(),f=A.isAtLiveHead(B);if(A.G&&f){var K=A.G;if(K.N&&!(B>=K.W&&B<K.V)){var V=K.N.NV(B);V!==-1&&(K.W=K.N.getStartTime(V),K.V=K.W+K.N.getDuration(V),V=(0,g.bc)()/1E3-K.N.wX(V),V-=K.D(),K.U.add(V))}}A.N&&(f&&(K=A.N,V=fz0(A),K.pJ++,K.pJ<3||Date.now()-K.T<3E3||(K.T=Date.now(),K.W.push(V),K.W.length>50&&K.W.shift())),K=A.N,qLD(K,B,L===void 0?!0:L),PPS(K,B),L&&nUD(A,!0));f!==A.KY&&(L=A.getCurrentTime()-A.mH<=500,B=A.jI>=1E3,L||B||(L=A.Np.CY,L.qoe&&(L=L.qoe,B=g.Ci(L.provider),
|
|
g.TL(L,B,"lh",[f?"1":"0"])),A.KY=f,A.jI++,A.mH=A.getCurrentTime()))};
|
|
nUD=function(A,L){if(A.N){var B=A.N;var f=A.getCurrentTime(),K=B.gQ();var V=B.policy.W;B.U||(V=Math.max(V-1,0));V*=tt(B);f>=K-V||!B.YE()?B=f<B.videoData.vy()?Math.min(B.videoData.vy()+10,B.gQ()):NaN:(B.policy.D&&(B.policy.Wn?(B.policy.W=Math.min(B.policy.W+B.policy.X,B.policy.T),B.policy.N=Math.min(B.policy.N+1,10)):(B.policy.W=Math.max(B.policy.W+1,B.policy.T),B.policy.N=Math.max(B.policy.N+1,10))),B=Infinity);if(!isNaN(B)){if(A.loader&&L&&(L=A.JF.isActive(),f=A.N.gQ(),(f=StQ(A.loader,f-A.pY()))&&
|
|
!L)){A.JF.start();A.Np.Hn("inBufferPtl",{cmt:A.getCurrentTime(),seekTo:f+A.pY()});A.seekTo(f+A.pY(),{zZ:"seektimeline_inBufferSeek",seekSource:34});return}A.seekTo(B,{zZ:"seektimeline_pegToLive",seekSource:34})}}};
|
|
oqS=function(A,L){if(A.N&&A.loader){var B=!1;L?B=!0:A.videoData.isLowLatencyLiveStream||A.videoData.latencyClass==="LOW"||A.videoData.latencyClass==="ULTRALOW"?B=vUS(A.N):A.Nl&&(A.Nl=!1,B=vUS(A.N,!0));B&&(L=A.Np.CY,B=A.N,B=tt(B)*B.N,L.qoe&&(L=L.qoe,g.TL(L,g.Ci(L.provider),"lra",[B]),L.Hn("live-readahead-seconds",{v:B})));L=A.loader;B=A.N.N;A=A.N;A=(A.N-1+A.policy.N)*tt(A);var f=NaN,K=L.Pz;K===2||K===-1?kT(L.Np.getVideoData())&&(f=L.policy.KR):--B;B=Math.max(B,0);K=L.T;K.FH=B;K.G=f;L.G&&(L.G.Wn=A)}};
|
|
V2L=function(A,L){A.V=L};
|
|
zJ8=function(A,L){A.wT=!0;A.J("html5_use_centralized_player_time")&&(A.W=A.T,A.V=A.W,A.T=NaN);J6y(A,L)};
|
|
J6y=function(A,L){ShE(A,L).then(void 0,function(){iG(A)});
|
|
RH1(A,L).then(function(B){Z6e(A,B)},function(){iG(A)});
|
|
A.Np.py(L);if(A.L.hw()||NvS(A))L=A.Ov(),L["native"]=""+ +A.qp,L.tgt=""+A.W,L.otgt=""+(A.W+A.timestampOffset),L.maxst=""+A.oA(),A.N&&A.J("html5_high_res_seek_logging")&&(L.tht=""+A.N.D(),L.ht=""+A.N.gQ(),L.adft=""+ht(A.N)),A.J("html5_sabr_parse_live_metadata_playback_boundaries")&&A.videoData.N&&iS(A.videoData)&&(L.minst=""+A.videoData.N.CK,L.cminst=""+(A.videoData.N.vy()+A.timestampOffset),L.maxst=""+A.videoData.N.F9,L.hts=""+A.videoData.N.Vj,L.cmaxst=""+(A.videoData.N.oA()+A.timestampOffset)),A.Np.Hn("startSeek",
|
|
L)};
|
|
ShE=function(A,L){A.Vj||(A.loader?isFinite(A.W)?A.Vj=A.loader.seek(A.W-A.timestampOffset,L):(HK(A.videoData),A.J("html5_unified_live_latency_reporting")&&(A.Np.wP=0),A.Vj=lR(A.loader),VW(A.videoData)||(A.W=A.loader.getCurrentTime()+A.timestampOffset)):A.Vj=g.iX(A.W-A.timestampOffset));return A.Vj};
|
|
RH1=function(A,L){var B=A.U;B||(A.U=new yV,B=A.U,Qn(A,L));return B};
|
|
$H=function(A,L,B){if(isNaN(L))return NaN;var f=A.vy();B=A.oA(B);return A.J("html5_clamp_invalid_seek_to_min_seekable_time")&&!A.videoData.isLivePlayback&&L>B+1&&L<Infinity?(A.L.hw()&&A.Np.Hn("clampInvalidSeek",{tgt:""+L,maxst:""+B}),f):g.B4(L,f,B)};
|
|
Qn=function(A,L){if(A.U)if(A.videoData.isLivePlayback&&A.videoData.V&&!A.videoData.V.N&&A.mediaElement&&A.mediaElement.J2()>0&&A.mediaElement.KU()>0&&(A.W=$H(A,A.W,!1)),L=A.J("html5_pseudogapless_shorts_seek_to_next_start")&&(L==null?void 0:L.seekSource)===60,!A.mediaElement||!FZS(A,L))A.zV.start(750);else if(!isNaN(A.W)&&isFinite(A.W)&&(L=A.Ex-(A.W-A.timestampOffset),!(L===0||Math.abs(L)<.005)))if(L=A.mediaElement.getCurrentTime()-A.W,Math.abs(L)<=A.Cr||Math.abs(L)<.005)Dq0(A);else{if(A.videoData.iA)A.videoData.iA=
|
|
!1;else if(!HK(A.videoData)&&A.W>=A.oA()-.1){A.W=A.oA();A.U.resolve(A.oA());A.L.hw()&&A.Np.Hn("setEndedInSeek",{tgt:""+A.W,maxst:""+A.oA()});A.Np.E5();return}try{var B=A.W-A.timestampOffset;A.mediaElement.seekTo(B);A.Wn.N=B;A.Ex=B;A.V=A.W;A.qp=!1}catch(f){}}};
|
|
FZS=function(A,L){L=L===void 0?!1:L;if(!A.mediaElement||A.mediaElement.J2()===0||A.mediaElement.hasError())return!1;var B=A.mediaElement.getCurrentTime()>0;return A.videoData.V&&A.videoData.V.N||A.videoData.isLivePlayback||!A.videoData.U6()?A.W>=0&&!L&&(L=A.mediaElement.Zk(),L.length||!B)?aT(L,A.W-A.timestampOffset):B:B};
|
|
Dq0=function(A){A.U&&(A.U.resolve(A.mediaElement.getCurrentTime()),A.Wn.W=null)};
|
|
Z6e=function(A,L){A.D&&(A.D.resolve(L),A.Np.fg(),A.L.hw()||NvS(A))&&(L=A.Ov(),L["native"]=""+ +A.qp,L.otgt=""+(A.W+A.timestampOffset),A.Np.Hn("seekEnd",L));iG(A)};
|
|
iG=function(A){A.W=NaN;A.T=NaN;A.Ex=NaN;A.U=null;A.Vj=null;A.D=null;A.wT=!1;A.qp=!1;A.Cr=0;A.JF.stop();A.sx.stop()};
|
|
Iz8=function(A,L){var B=A.mediaElement,f=L.type;switch(f){case "seeking":var K=B.getCurrentTime()+A.timestampOffset;if(!A.U||A.qp&&K!==A.W){A.U=new yV;A.U.then(function(J){Z6e(A,J)},function(){iG(A)});
|
|
if(A.videoData.isAd()){var V;Onw({adCpn:A.videoData.clientPlaybackNonce,contentCpn:(V=A.videoData.hS)!=null?V:""},L.N)}A.Ex=K;xLw(A.Wn,B.getCurrentTime());A.seekTo(K,{seekSource:104,zZ:"seektimeline_mediaElementEvent"});A.qp=!0}break;case "seeked":Dq0(A);break;case "loadedmetadata":CR(A.Np)||dqw(A);Qn(A);break;case "progress":Qn(A);break;case "pause":A.X=A.getCurrentTime()}A.X&&((f==="play"||f==="playing"||f==="timeupdate"||f==="progress")&&A.getCurrentTime()-A.X>10&&(A.J("html5_sky_skip_pause_jump")?
|
|
A.Np.Hn("skipPauseJump",{evt:f,cmt:A.getCurrentTime(),lpt:A.X}):A.seekTo(A.X,{zZ:"pauseJump"})),f!=="pause"&&f!=="play"&&f!=="playing"&&f!=="progress"&&(A.X=0))};
|
|
wlQ=function(A){return(Ur(A.videoData)||!!A.videoData.liveUtcStartSeconds)&&(!!A.videoData.liveUtcStartSeconds||A6e(A))&&!!A.videoData.N};
|
|
A6e=function(A){return!!A.videoData.startSeconds&&isFinite(A.videoData.startSeconds)&&A.videoData.startSeconds>1E9};
|
|
aUQ=function(A){var L=0,B=NaN,f="";if(!A.yj)return{startSeconds:L,DN:B,source:f};A.videoData.hd?L=A.videoData.SO:HK(A.videoData)&&(L=Infinity);if(g.MG(A.videoData))return{startSeconds:L,DN:B,source:f};A.videoData.startSeconds?(f="ss",L=A.videoData.startSeconds):A.videoData.NT&&(f="stss",L=A.videoData.NT);A.videoData.liveUtcStartSeconds&&(B=A.videoData.liveUtcStartSeconds);if(isFinite(L)&&(L>A.oA()||L<A.vy())){var K={};K.minSeekableTime=A.vy();K.maxSeekableTime=A.oA();K.cmt=A.getCurrentTime();K.ss=
|
|
L;K.utc=B;K.src=f;A.Np.Hn("startSecondsOutOfBounds",K);A.videoData.iC()&&(L=$H(A,L,!1))}return{startSeconds:L,DN:B,source:f}};
|
|
dqw=function(A){if(A.yj){var L;if((L=A.videoData.dB)==null?0:L.cO)A.yj=!1;else if(g.MG(A.videoData))A.yj=!1;else{L="ss";var B=0,f;((f=A.videoData.N)==null?0:f.isManifestless)&&A.videoData.Ex&&!A6e(A)&&(L="mss",B=A.videoData.Ex);(A.videoData.hd?A.J("html5_prioritize_windowed_st_start_seconds"):A.J("html5_prioritize_st_start_seconds"))&&!B&&A.videoData.NT&&(L="stss",B=A.videoData.NT);!B&&wlQ(A)&&(B=A.videoData.liveUtcStartSeconds||A.videoData.Ex,L="utc",B=A.oA()-A.wX(A.oA())+B);!B&&A.videoData.iC()&&
|
|
A.videoData.NT&&(L="stss",B=A.videoData.NT);f={};if(B){if(B>A.oA()||B<A.vy())f.minSeekableTime=A.vy(),f.maxSeekableTime=A.oA(),f.cmt=A.getCurrentTime(),f.it=A.wX(A.getCurrentTime()),f.ss=B,f.utc=wlQ(A)?A.videoData.liveUtcStartSeconds||A.videoData.Ex:0,A.Np.Hn("startSecondsOutOfBounds",f),A.videoData.iC()&&(B=$H(A,B,!1));A.seekTo(B,{zZ:"seektimeline_startSeconds"});f[L]=B;A.Np.Hn("startSeconds",f);A.yj=!1}else A.videoData.Ex&&(f[L]=A.videoData.Ex+A.pY(),A.Np.Hn("startSeconds",f))}}};
|
|
plC=function(A,L){A.Np.Hn("sdai",{adj4t:L.toFixed(3)});A.S4=L;L+=1;A.W=L;A.V=L;RH1(A).then(function(B){Z6e(A,B)},function(){iG(A)})};
|
|
fz0=function(A){return A.mediaElement?A.mediaElement.vu():0};
|
|
NvS=function(A){return A.videoData.zt()&&A.J("html5_enable_shorts_seek_details_logging")};
|
|
eJk=function(){};
|
|
Xz=function(A){g.Y.call(this);this.V=A;this.N=new Map;this.W=new g.aa(this.sample,250,this);g.W(this,this.W);this.start()};
|
|
OP=function(A,L){if((A=A.N.get(L))==null)A=void 0;else{A=A.buffer;for(L=[];A.W!==A.N;)A.W=(A.W+1)%A.data.length,L.push(A.data[A.W]);A=L}return A||[]};
|
|
EP=function(A,L){var B;return((B=A.N.get(L))==null?void 0:c4E(B.buffer))||0};
|
|
y66=function(A){this.W=A;this.N=NaN;this.buffer=new rw(100)};
|
|
cY=function(){this.finished=this.started=!1};
|
|
hHv=function(A,L){function B(V){return f.Wn!=="yt"&&(K.partnerId===38&&f.playerStyle==="books"||K.partnerId===30&&f.playerStyle==="docs"||K.partnerId===33&&f.playerStyle==="google-live")?jP0(A,K,V):gq6(A,K).then(function(){f.J("embeds_enable_shorts")&&A.K().XV&&K.isEmbedsShortsMode(new g.Sr(0,0),!!K.playlistId)?Gme(A,K):M9(A,K)},function(J){M9(A,K,!0);
|
|
throw J;})}
|
|
var f=A.K(),K=A.getVideoData();K.TL();K.loading=!0;return r6D(A)?sP7(A,K,L).then(function(){M9(A,K)},function(V){V=JT(V);
|
|
if(Vu(V.severity))return M9(A,K,!0),Promise.reject(V);V.errorCode==="onesie.response.badproxystatus"&&""+V.details.st==="3"&&(H6w=!0);A.handleError(V);return B("onesie")}):B("gvi")};
|
|
r6D=function(A){var L=A.K();if(L.J("html5_disable_onesie")||!L.J("html5_onesie")||!L.J("html5_onesie_inline")&&A.getVisibilityState()===5||L.Wn!=="yt")return!1;var B=L.Pz;if(!B||!B.N)return A.handleError(new g.K$("onesie.unavailable.hotconfig",{key:"0"})),!1;if(B.N.T<(0,g.bc)()&&(A.Hn("okexp","1"),(B=A.rW())&&L.J("html5_prefer_trusted_host_on_key_expiration"))){B.W=!0;var f;(L=(f=B.N.get(0))==null?void 0:wy(19,f.location))&&!CT(L)&&B.N.delete(0)}if(H6w)return A.Hn("ost3","1"),!1;f={};return Object.keys(f).length>
|
|
0?(f.onesie="0",A.handleError(new g.K$("html5.missingapi",f)),!1):!0};
|
|
b66=function(A){var L=xn();eg(L,A);return g.av(L,qgD())};
|
|
sP7=function(A,L,B){var f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0,B6,Ve,DS,fw;return g.c(function(ry){if(ry.N==1)return L.fetchType="onesie",f=nhE(L,A.getPlayerSize(),A.getVisibilityState()),K=new Sn(A,f,B),g.X(ry,K.fetch(),2);V=ry.W;J={player_response:V};L.loading=!1;R=A.gf.Pq;if(K.HV){Z=g.m(K.HV.entries());for(N=Z.next();!N.done;N=Z.next())F=N.value,D=g.m(F),I=D.next().value,d=D.next().value,w=I,r=d,R.N.set(w,r,180),w===L.videoId&&(h=r.Wq(),L.mL=h);R.Ni=K}Q=g.m(K.vv.entries());for(l=Q.next();!l.done;l=
|
|
Q.next())C=l.value,O=g.m(C),v=O.next().value,U=O.next().value,a=v,o0=U,R.W.set(a,o0,180);g.SC(L,J,!0);if(L.loading||V7(L))return ry.return(Promise.resolve());R.N.removeAll();R.W.removeAll();L.mL=[];B6={};Ve="onesie.response";DS=0;L.errorCode?(Ve="auth",B6.ec=L.errorCode,B6.ed=L.errorDetail,B6.es=L.Qr||"",DS=2):(B6.successButUnplayable="1",B6.disposed=""+ +L.TL(),B6.afmts=""+ +/adaptiveFormats/.test(V),B6.cpn=L.clientPlaybackNonce);fw=new g.K$(Ve,B6,DS);return ry.return(Promise.reject(fw))})};
|
|
gq6=function(A,L){var B,f,K,V,J,R,Z,N,F,D,I;return g.c(function(d){switch(d.N){case 1:B=L.isAd(),f=!B,K=B?1:3,V=0;case 2:if(!(V<K)){d.Ux(4);break}if(!(V>0)){d.Ux(5);break}return g.X(d,YA(5E3),6);case 6:J=new g.iL("Retrying OnePlatform request",{attempt:V}),g.CE(J);case 5:return g.S5(d,7),g.X(d,t2k(A,L),9);case 9:return d.return();case 7:R=g.NX(d);Z=JT(R);N=Z.errorCode;F=A.K();D=F.J("html5_use_network_error_code_enums")?401:"401";f&&N==="manifest.net.badstatus"&&Z.details.rc===D&&(f=!1,V===K-1&&(K+=
|
|
1));if(V===K-1)return I=kme(B,Z.details),I.details.backend="op",I.details.originec=N,d.return(Promise.reject(I));if(N==="auth"||N==="manifest.net.retryexhausted")return d.return(Promise.reject(Z));A.handleError(Z);if(Vu(Z.severity)){d.Ux(4);break}case 3:V++;d.Ux(2);break;case 4:return d.return(Promise.reject(kme(B,{backend:"op"})))}})};
|
|
t2k=function(A,L){function B(B6){B6.readyState===2&&A.S$("ps_c")}
|
|
var f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0;return g.c(function(B6){switch(B6.N){case 1:L.fetchType="gp";f=A.K();K=g.po(f,g.Aj(L));if(!K.N){V=K.getValue();B6.Ux(2);break}return g.X(B6,K.N,3);case 3:V=B6.W;case 2:return J=V,R=b66(J),Z=nhE(L,A.getPlayerSize(),A.getVisibilityState()),N=g.B8(TvL),F=g.Aj(L),D=(0,g.bc)(),I=!1,d="empty",w=0,A.S$("psns"),r={xQ:B},g.X(B6,g.MD(R,Z,N,void 0,r),4);case 4:h=B6.W;A.S$("psnr");if(L.TL())return B6.return();h?"error"in h&&h.error?(I=!0,d="esf:"+h.error.message,
|
|
w=h.error.code):h.errorMetadata&&(I=!0,d="its",w=h.errorMetadata.status):I=!0;if(I)return Q=0,l=((0,g.bc)()-D).toFixed(),C={},C=f.J("html5_use_network_error_code_enums")?{backend:"op",rc:w,rt:l,reason:d,has_kpt:L.Ox?"1":"0",has_mdx_env:L.mdxEnvironment?"1":"0",has_omit_key_flag:g.A_("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:F?"1":"0",has_vvt:L.qp?"1":"0",is_mdx:L.isMdxPlayback?"1":"0",mdx_ctrl:L.bY||"",token_eq:F===g.Aj(L)?"1":"0"}:{backend:"op",
|
|
rc:""+w,rt:l,reason:d,has_kpt:L.Ox?"1":"0",has_mdx_env:L.mdxEnvironment?"1":"0",has_omit_key_flag:g.A_("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:F?"1":"0",has_vvt:L.qp?"1":"0",is_mdx:L.isMdxPlayback?"1":"0",mdx_ctrl:L.bY||"",token_eq:F===g.Aj(L)?"1":"0"},O="manifest.net.connect",w===429?(O="auth",Q=2):w>200&&(O="manifest.net.badstatus",w===400&&(Q=2)),B6.return(Promise.reject(new g.K$(O,C,Q)));L.loading=!1;g.SC(L,{raw_player_response:h},!0);
|
|
v=h;g.PL(L.K())&&v&&v.trackingParams&&wS(v.trackingParams);if(L.errorCode)return U={ec:L.errorCode,ed:L.errorDetail,es:L.Qr||""},B6.return(Promise.reject(new g.K$("auth",U,2)));if(!L.loading&&!V7(L))return a=L.isAd()?"auth":"manifest.net.retryexhausted",o0=L.isAd()?2:1,B6.return(Promise.reject(new g.K$(a,{successButUnplayable:"1",hasMedia:g.Or(L)?"1":"0"},o0)));g.VK(B6)}})};
|
|
jP0=function(A,L,B){function f(w){w=JT(w);if(Vu(w.severity))return Promise.reject(w);A.handleError(w);return!1}
|
|
function K(){return!0}
|
|
var V,J,R,Z,N,F,D,I,d;return g.c(function(w){switch(w.N){case 1:var r=A.K();A.getPlayerSize();A.getVisibilityState();A.isFullscreen();if(L.partnerId===38&&r.playerStyle==="books")r=L.videoId.indexOf(":"),r=g.ip("//play.google.com/books/volumes/"+L.videoId.slice(0,r)+"/content/media",{aid:L.videoId.slice(r+1),sig:L.Ze});else if(L.partnerId===30&&r.playerStyle==="docs")r=g.ip("https://docs.google.com/get_video_info",{docid:L.videoId,authuser:L.jy,authkey:L.g0,eurl:r.O_});else if(L.partnerId===33&&r.playerStyle===
|
|
"google-live")r=g.ip("//google-liveplayer.appspot.com/get_video_info",{key:L.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+r.Wn);V=r;R=(J=L.isAd())?1:3;Z=0;case 2:if(!(Z<R)){w.Ux(4);break}N=V;if(!(Z>0)){w.Ux(5);break}return g.X(w,YA(5E3),6);case 6:F={playerretry:Z,playerretrysrc:B},J||(F.recover="embedded"),N=Ns(V,F);case 5:return g.X(w,lz8(L,N).then(K,f),7);case 7:if(D=w.W)return w.return();Z++;w.Ux(2);break;case 4:I=J?"auth":"manifest.net.retryexhausted";d=J?2:1;if(!J&&Math.random()<
|
|
1E-4)try{g.CE(new g.iL("b/152131571",btoa(V)))}catch(h){}return w.return(Promise.reject(new g.K$(I,{backend:"gvi"},d)))}})};
|
|
lz8=function(A,L){function B(h){return f(h.xhr)}
|
|
function f(h){if(!A.TL()){h=h?h.status:-1;var Q=0,l=((0,g.bc)()-F).toFixed();l=K.J("html5_use_network_error_code_enums")?{backend:"gvi",rc:h,rt:l}:{backend:"gvi",rc:""+h,rt:l};var C="manifest.net.connect";h===429?(C="auth",Q=2):h>200&&(C="manifest.net.badstatus",h===400&&(Q=2));return Promise.reject(new g.K$(C,l,Q))}}
|
|
var K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){if(h.N==1){A.fetchType="gvi";K=A.K();var Q={};A.F0&&(Q.ytrext=A.F0);(R=g.mi(Q)?void 0:Q)?(V={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:R},J=Ns(L,{action_display_post:1})):(V={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},J=L);Z={};K.sendVisitorIdHeader&&A.visitorData&&(Z["X-Goog-Visitor-Id"]=A.visitorData);(N=sR(K.experiments,"debug_sherlog_username"))&&(Z["X-Youtube-Sherlog-Username"]=N);Object.keys(Z).length>
|
|
0&&(V.headers=Z);F=(0,g.bc)();return g.X(h,XV(Cg,J,V).then(void 0,B),2)}D=h.W;if(!D||!D.responseText)return h.return(f(D));A.loading=!1;I=I0(D.responseText);g.SC(A,I,!0);if(A.errorCode)return d={ec:A.errorCode,ed:A.errorDetail,es:A.Qr||""},h.return(Promise.reject(new g.K$("auth",d,2)));if(!A.loading&&!V7(A))return w=A.isAd()?"auth":"manifest.net.retryexhausted",r=A.isAd()?2:1,h.return(Promise.reject(new g.K$(w,{successButUnplayable:"1"},r)));g.VK(h)})};
|
|
kme=function(A,L){return new g.K$(A?"auth":"manifest.net.retryexhausted",L,A?2:1)};
|
|
M9=function(A,L,B){B=B===void 0?!1:B;var f,K,V,J;g.c(function(R){if(R.N==1){f=A.K();if(B&&(!g.Ng(f)||nr(L)!=="embedded")||L.gy||nr(L)!=="adunit"&&(g.wY(f)||A$(f)||g.cH(f)||g.Z_(f)||g.xi(f)||ge(f)==="WEB_CREATOR"))return R.return();K=g.po(f,g.Aj(L));return K.N?g.X(R,K.N,3):(V=K.getValue(),R.Ux(2))}R.N!=2&&(V=R.W);J=V;return R.return(mq7(A,L,J))})};
|
|
mq7=function(A,L,B){var f,K,V,J,R;return g.c(function(Z){if(Z.N==1){g.S5(Z,2);f=b66(B);var N=L.K(),F=g.v9(),D={context:g.dh(L),videoId:L.videoId,racyCheckOk:L.racyCheckOk,contentCheckOk:L.contentCheckOk,autonavState:"STATE_NONE"};nr(L)==="adunit"&&(D.isAdPlayback=!0);N.embedConfig&&(D.serializedThirdPartyEmbedConfig=N.embedConfig);N.tI&&(D.showContentOwnerOnly=!0);L.g4&&(D.showShortsOnly=!0);F.Iv(141)&&(D.autonavState=F.Iv(140)?"STATE_OFF":"STATE_ON");if(g.SK(N)){F=F.Iv(65);F=F!=null?!F:!1;var I=
|
|
!!g.ES("yt-player-sticky-caption");D.captionsRequested=F&&I}var d;if(N=(d=N.getWebPlayerContextConfig())==null?void 0:d.encryptedHostFlags)D.playbackContext={encryptedHostFlags:N};K=D;V=g.B8(QPv);A.S$("wn_s");return g.X(Z,g.MD(f,K,V),4)}if(Z.N!=2)return J=Z.W,A.S$("wn_r"),!J||"error"in J&&J.error||(R=J,g.PL(L.K())&&R.trackingParams&&wS(R.trackingParams),g.SC(L,{raw_watch_next_response:J},!1)),g.ZR(Z,0);g.NX(Z);g.VK(Z)})};
|
|
Gme=function(A,L){var B,f,K,V;g.c(function(J){if(J.N==1)return B=A.K(),f=g.po(B,g.Aj(L)),f.N?g.X(J,f.N,3):(K=f.getValue(),J.Ux(2));J.N!=2&&(K=J.W);V=K;return J.return(CR1(L,V))})};
|
|
CR1=function(A,L){var B,f,K,V;return g.c(function(J){if(J.N==1)return g.S5(J,2),B=b66(L),f={context:g.dh(A),playerRequest:{videoId:A.videoId},disablePlayerResponse:!0},K=g.B8(i6k),g.X(J,g.MD(B,f,K),4);if(J.N!=2)return V=J.W,!V||"error"in V&&V.error||g.SC(A,{raw_reel_item_watch_response:V}),g.ZR(J,0);g.NX(J);g.VK(J)})};
|
|
$qE=function(A,L){A.S$("vir");A.S$("ps_s");OC("vir",void 0,"video_to_ad");L=hHv(A,L);L.then(function(){A.S$("virc");OC("virc",void 0,"video_to_ad");A.S$("ps_r");OC("ps_r",void 0,"video_to_ad")},function(){A.S$("virc");
|
|
OC("virc",void 0,"video_to_ad")});
|
|
return L};
|
|
g.WY=function(A,L,B,f,K,V,J,R,Z,N,F){N=N===void 0?new g.Kr(A):N;F=F===void 0?!0:F;g.SN.call(this);var D=this;this.L=A;this.playerType=L;this.Rv=B;this.z8=f;this.getVisibilityState=V;this.visibility=J;this.gf=R;this.Ml=Z;this.videoData=N;this.i7=F;this.logger=new g.sI("VideoPlayer");this.Gq=null;this.vE=new oc;this.uD=null;this.Cz=!0;this.AF=this.loader=null;this.n3=[];this.zW=new cY;this.kJ=this.On=null;this.Ek=new cY;this.un=null;this.Kz=this.nu=!1;this.p7=NaN;this.Ez=!1;this.playerState=new g.Gu;
|
|
this.QP=[];this.E1=new g.dN;this.mediaElement=null;this.KN=this.OB=!1;this.XG=NaN;this.d4=!1;this.GS=0;this.V3=!1;this.RZ=NaN;this.Ld=0;this.loop=!1;this.playbackRate=1;this.wP=0;this.Rt=!1;this.eF=[];this.FM=this.AQ=0;this.sX=this.aX=!1;this.KC=this.lA=0;this.cX=!1;this.WN=this.Jv=this.N$=this.TV=null;this.wI=function(){var I=D.CY;I.provider.L.Po||I.provider.Np.getVisibilityState()===3||(I.provider.L.Po=!0);I.Om();if(I.W){var d=I.W;d.D&&d.N<0&&d.provider.Np.getVisibilityState()!==3&&MbE(d)}I.qoe&&
|
|
(I=I.qoe,I.sx&&I.V<0&&I.provider.L.Po&&lI8(I),I.U&&$k(I));D.loader&&YH(D);UP(D)};
|
|
this.GV={Cl:function(I){D.Cl(I)},
|
|
luM:function(I){D.Gq=I},
|
|
tMD:function(){return D.CY},
|
|
Fy:function(){return D.AF},
|
|
ErF:function(){return D.ol},
|
|
AVL:function(){return D.Oa},
|
|
Y5n:function(){},
|
|
K:function(){return D.L},
|
|
pD:function(){return D.mediaElement},
|
|
gD1:function(I){D.Ma(I)},
|
|
hwx:function(){return D.z8}};
|
|
this.KQ=new NME(this);this.uv=new g.aa(this.eSj,15E3,this);this.Yz=new Xz(new Map([["bufferhealth",function(){return fz0(D.M8)}],
|
|
["bandwidth",function(){return D.Su()}],
|
|
["networkactivity",function(){return D.Ml.Vj}],
|
|
["livelatency",function(){return D.isAtLiveHead()&&D.isPlaying()?XlD(D):NaN}],
|
|
["rawlivelatency",function(){return XlD(D)}]]));
|
|
this.M8=new u0w(this);this.AR=new g.aa(this.cJ,0,this);this.QvF=[this.E1,this.AR,this.uv,this.Yz];this.Vl=new XjL(this.L);this.IC=new KR(this.L,this.z8,this,this.Ml);this.I4=new g.gw(this,function(I,d){I!==g.qR("endcr")||g.x(D.playerState,32)||D.E5();K(I,d,D.playerType)});
|
|
g.W(this,this.I4);g.W(this,this.M8);O6L(this,N);this.videoData.subscribe("dataupdated",this.cz1,this);this.videoData.subscribe("dataloaded",this.Ue,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Hn,this);this.videoData.subscribe("ctmpstr",this.SV,this);!this.CY||this.CY.TL();this.CY=new g.yn(new pR(this.videoData,this.L,this));K41(this.wI);this.visibility.subscribe("visibilitystatechange",this.wI);this.ol=new g.aa(this.j3,g.Am(this.L.experiments,
|
|
"html5_player_att_initial_delay_ms")||4500,this);this.Oa=new g.aa(this.j3,g.Am(this.L.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Ie=new g.BC(this.Oep,350,this);g.W(this,this.Ie)};
|
|
O6L=function(A,L){if(A.playerType===2||A.L.hq)L.Tm=!0;var B=ChS(L.ql,L.XR,A.L.U,A.L.G);B&&(L.adFormat=B);A.playerType===2&&(L.BV=!0);if(A.isFullscreen()||A.L.U)B=g.ES("yt-player-autonavstate"),L.autonavState=B||(A.L.U?2:A.videoData.autonavState);L.endSeconds&&L.endSeconds>L.startSeconds&&vY(A,L.endSeconds)};
|
|
Eqk=function(A){return g.wY(A.L)&&A.videoData.isLivePlayback&&(!A.L.J("html5_allow_multiview_tile_preload")||!A.videoData.GZ)};
|
|
c66=function(A){var L=A.videoData;$qE(A,A.Ml).then(void 0,function(B){A.videoData!==L||L.TL()||(B=JT(B),B.errorCode==="auth"&&A.videoData.errorDetail&&A.videoData.errorDetail!=="7"?A.O9(B.errorCode,2,unescape(A.videoData.errorReason),f$(B.details),A.videoData.errorDetail,A.videoData.Qr||void 0):A.handleError(B))})};
|
|
Uq1=function(A){if(!g.x(A.playerState,128))if(A.videoData.isLoaded(),A.n3=g.Kx(A.videoData.p9),g.Or(A.videoData)){A.Rv.tick("bpd_s");q9(A).then(function(){A.Rv.tick("bpd_c");if(!A.TL()){A.nu&&(A.q8(Hi(Hi(A.playerState,512),1)),PY(A));var f=A.videoData;f.endSeconds&&f.endSeconds>f.startSeconds&&vY(A,f.endSeconds);A.zW.finished=!0;xH(A,"dataloaded");A.Ek.Er()&&M2v(A);ciE(A.IC,A.kJ)}});
|
|
A.J("html5_log_media_perf_info")&&A.Hn("loudness",{v:A.videoData.EQ.toFixed(3)},!0);var L,B=(L=A.mediaElement)==null?void 0:L.Zg();if(B&&"disablePictureInPicture"in B&&A.L.Sr)try{B.disablePictureInPicture=A.L.JA&&!A.videoData.backgroundable}catch(f){g.CE(f)}YhC(A);A.WN=new Ho(A.videoData)}else xH(A,"dataloaded")};
|
|
q9=function(A){ev(A);A.kJ=null;var L=EUv(A.L,A.videoData,A.QC());A.On=L;A.On.then(function(B){WZQ(A,B)},function(B){A.TL()||(B=JT(B),A.visibility.isBackground()?(nR(A,"vp_none_avail"),A.On=null,A.zW.reset()):(A.zW.finished=!0,A.O9(B.errorCode,B.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",f$(B.details))))});
|
|
return L};
|
|
WZQ=function(A,L){if(!A.TL()&&!L.videoData.TL()){A.kJ=L;LZ8(A.M8,A.kJ);if(A.videoData.isLivePlayback){var B=vqw(A.gf.Pq,A.videoData.videoId)||A.loader&&!isNaN(A.loader.ZM);B=A.J("html5_onesie_live")&&B;CR(A)||A.videoData.Ex>0&&!ta(A.videoData)||B||A.seekTo(A.oA(),{zZ:"videoplayer_playbackData",seekSource:18})}if(A.videoData.V.N){if(X_v(A.videoData)){A.O9("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",f$({missabrurl:1}));return}A.loader?g.CE(Error("Duplicated Loader")):(B=g.Am(A.L.experiments,"html5_onesie_defer_content_loader_ms"))&&
|
|
A.Hu()&&vqw(A.gf.Pq,A.videoData.kI)?g.gW(function(){A.TL()||A.loader||qhv(A)},B):qhv(A)}else!A.videoData.V.N&&Bh(A.videoData)&&A.FG(new EL(A.videoData.videoId||"",4));
|
|
A.bD();Q5y(L).then(function(){var f={};A.EU(f);A.L.hw()&&A.J("html5_log_media_perf_info")&&A.Hn("av1Info",f);YH(A)})}};
|
|
M2v=function(A){A.TL();if(!A.Ek.finished&&A.zW.finished&&!g.x(A.playerState,128)&&!A.n3.length){if(!A.I4.started){var L=A.I4;L.started=!0;L.sync()}if(!A.BF()){if(A.loader){if(A.Qf().N.Iv(dv)){L=A.loader;var B=!0;B=B===void 0?!1:B;L=Math.min(K6(L.audioTrack,B),K6(L.videoTrack,B))>0}else L=A.loader.timing,L=!!L.W&&!!L.V;A.Kz=L}A.Ek.finished||(A.Ek.finished=!0);L=A.J("html5_onesie_live")&&A.loader&&!isNaN(A.loader.ZM);!A.videoData.isLivePlayback||A.videoData.Ex>0&&!ta(A.videoData)||L||CR(A)||(A.seekTo(Infinity,
|
|
{zZ:"videoplayer_readying",seekSource:18}),A.isBackground()&&(A.KN=!0));L=A.CY;if(L.qoe){L=L.qoe;var f=L.provider.videoData;B=L.provider.L;for(var K=g.m(B.AU),V=K.next();!V.done;V=K.next())Oi(L,V.value);if(L.provider.J("html5_enable_qoe_cat_list"))for(K=g.m(f.Vs),V=K.next();!V.done;V=K.next())Oi(L,V.value);else f.AU&&Oi(L,L.provider.videoData.AU);f.iC()&&(K=f.N,ta(f)&&Oi(L,"manifestless"),K&&n3(K)&&Oi(L,"live-segment-"+n3(K).toFixed(1)));iS(f)?Oi(L,"sabr"):L.nS(Tp(f));if(Lm(f)||f.aA())f.aA()&&Oi(L,
|
|
"ssa"),Oi(L,"lifa");gp(f)&&Oi(L,"cdm");f.gatewayExperimentGroup&&(K=f.gatewayExperimentGroup,K==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?K="spkadtrt":K==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(K="spkadctrl"),Oi(L,K));B.Wn!=="yt"&&L.N.set("len",[f.lengthSeconds.toFixed(2)]);f.cotn&&!Bh(f)&&L.ZW(!0);B.hw()&&(f=jhQ())&&L.Hn("cblt",{m:f});if(B.J("html5_log_screen_diagonal")){B=L.Hn;var J;f=((J=window.H5vccScreen)==null?0:J.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;B.call(L,"cbltdiag",
|
|
{v:f})}}A.publish("playbackready");iJ("pl_c",A.Rv.timerName)||(A.Rv.tick("pl_c"),OC("pl_c",void 0,"video_to_ad"));iJ("pbr",A.Rv.timerName)||(A.Rv.tick("pbr"),OC("pbr",void 0,"video_to_ad"))}}};
|
|
vY=function(A,L){A.uD&&PR8(A);A.uD=new g.WR(L*1E3,0x7ffffffffffff);A.uD.namespace="endcr";A.addCueRange(A.uD)};
|
|
PR8=function(A){A.removeCueRange(A.uD);A.uD=null};
|
|
xq1=function(A,L,B,f,K){var V=A.CY,J=A.videoData;J.W=B;var R=g.za(A);B=new s5E(J,B,L,R?R.itag:"",f);A.L.experiments.GL("html5_refactor_sabr_video_format_selection_logging")?(B.videoId=K,A.Jv=B):V.qoe&&Th1(V.qoe,B);K=A.IC;K.W=0;K.N=0;A.publish("internalvideoformatchange",J,L==="m")};
|
|
g.za=function(A){var L=uG(A);return EO(L)||!A.kJ?null:g.Pw(A.kJ.N.videoInfos,function(B){return L.U(B)})};
|
|
uG=function(A){if(A.kJ){var L=A.IC;var B=A.kJ;A=A.Vt();var f=hV0(L);if(EO(f)){if(f=L.Ms(B).compose(TM0(L,B)).compose(mI8(L,B)).compose(OT8(L,B.videoData)).compose(E2E(L,B.videoData,B)).compose(XO8(L,B)).compose(tb6(L,B)),EO(A)||L.J("html5_apply_pbr_cap_for_drm"))f=f.compose(kCL(L,B))}else L.J("html5_perf_cap_override_sticky")&&(f=f.compose(XO8(L,B))),L.J("html5_ustreamer_cap_override_sticky")&&(f=f.compose(kCL(L,B)));f=f.compose(tb6(L,B));L=B.videoData.nO.compose(f).compose(B.videoData.vC).compose(A)}else L=
|
|
fr;return L};
|
|
yae=function(A){var L=A.IC;A=A.videoData;var B=OT8(L,A);L.J("html5_disable_client_autonav_cap_for_onesie")||B.compose(E2E(L,A));return B};
|
|
YH=function(A){if(A.videoData.V&&A.videoData.V.N){var L=uG(A);if(A.loader&&(A=A.loader,!A.TL()))if(A.policy.N){var B=A.U;if(L.isLocked()&&B.N.W||B.W===void 0||!L.equals(B.W)){B=A.U.W;CSe(A.U,L);var f,K;if(K=L.isLocked()&&L.reason==="m"){K=A.U;var V=(f=K.U)==null?void 0:f.info.video.qualityOrdinal;K=K.ZM?!0:K.U?L.N!==V?!0:!K.N.W||K.Iy.I_&&K.N.N===K.U.info.itag?!1:!0:!1}f=K;K=A.policy.cR&&L.reason==="l";B=B.N>L.N&&L.reason==="b";f||K||B?(A.Np.J8({reattachOnConstraint:f?"u":K?"drm":"perf",lo:L.W,up:L.N}),
|
|
A.policy.I_||(A.U.N.W=!1)):(A.policy.I_&&(A.U.N.W=!1),IS(A))}}else!J7C(A.N,L)&&A.videoTrack&&(K=A.N.N,qUL(A,SRw(A.N,L)),En7(A),B=L.isLocked()&&L.reason==="m"&&A.N.qp,f=A.policy.cR&&L.reason==="l"&&Zz(A.videoTrack),L=K.N>L.N&&L.reason==="b",K=A.N.sx&&!Se(),B||f||L||K?A.Np.J8({reattachOnConstraint:B?"u":f?"drm":K?"codec":"perf"}):IS(A))}};
|
|
eHk=function(A){var L;return!!(A.J("html5_native_audio_track_switching")&&g.yw&&((L=A.videoData.W)==null?0:WV(L)))};
|
|
nqQ=function(A){if(!eHk(A))return!1;var L;A=(L=A.mediaElement)==null?void 0:L.audioTracks();return!!(A&&A.length>1)};
|
|
az0=function(A){var L=zH1(A);if(L){var B=unE[L]||L;return A.videoData.getAvailableAudioTracks().find(function(f){return f.ri.getName()===B})}};
|
|
AB8=function(A){var L,B=(L=A.mediaElement)==null?void 0:L.audioTracks();if(B){L=[];for(var f=0;f<B.length;++f){var K=B[f];K=new g.i6(K.label,new g.$6(unE[K.label]||K.label,K.label,!1));L.push(K)}A.videoData.fu=L}};
|
|
zH1=function(A){var L;if(A=(L=A.mediaElement)==null?void 0:L.audioTracks())for(L=0;L<A.length;++L){var B=A[L];if(B.enabled)return B.label}};
|
|
ok7=function(A){var L,B=A.videoData.getAvailableAudioTracks(),f=A.L.cn;f&&(L=B.find(function(J){return J.getLanguageInfo().id===f}));
|
|
if(A.L.experiments.GL("enable_audio_description_setting")&&g.v9().Iv(198))for(var K=g.m(B),V=K.next();!V.done;V=K.next())if(V=V.value,V.D){L=V;break}A.Qf().N.Iv(LBE)&&A.videoData.cotn&&(L=B.find(function(J){return!!J.T}));
|
|
L||(A=A.getAudioTrack(),L=A.ri.isDefault?void 0:A);return L};
|
|
qhv=function(A){for(var L=A.videoData.N,B=g.m(Object.entries({cpn:A.videoData.clientPlaybackNonce,c:A.L.N.c,cver:A.L.N.cver})),f=B.next();!f.done;f=B.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;for(var V=g.m(Object.values(L.N)),J=V.next();!J.done;J=V.next())HU1(J.value.wi,f,K);V=void 0;(V=L.yj)==null||HU1(V,f,K)}f=A.L;B=A.videoData;V=A.Ml;L=new g.y$e(f);K=I_D({hasSubfragmentedFmp4:B.hasSubfragmentedFmp4,XI:B.XI});L.G=K;L.wT=B.maxReadAheadMediaTimeMs/1E3||L.wT;V.V.pw()===V.policy.V?
|
|
L.Uv=10:L.Uv=B.minReadAheadMediaTimeMs/1E3||L.Uv;L.Gt=B.readAheadGrowthRateMs/1E3||L.Gt;B.Is&&(L.T=!0,L.a7=!0);L.Tg=!wz();g.wY(f)||!wz()?(L.Ex=8388608,L.Nl=524288,L.YH=5,L.Cr=1048576,L.iT=1.5,L.lC=4587520,ul()&&(L.lC=786432),L.yj*=1.1,L.qp*=1.1,L.Of=!0):f.W&&(L.yj*=1.3,L.qp*=1.3);g.Z2&&g.xz("crkey")&&(K=f.N.cmodel==="CHROMECAST/ANCHOVY",L.Ex=20971520,L.Nl=1572864,K&&(L.lC=812500,L.Ry=1E3,L.kY=5,L.Cr=2097152));g.de&&(L.Of=!0);f.supportsGaplessAudio()||(L.fu=!1);OR&&(L.GZ=!0);L.Po=f.J("html5_peak_shave");
|
|
B.fetchType==="onesie"&&f.J("html5_disable_peak_shave_for_onesie")&&(L.Po=!1);var R;K=(R=B.N)==null?void 0:PZ(R);if(ta(B)){L.Pk=!0;L.iF||(L.w$=!0);L.t$=!0;L.jb=!0;L.wF=!0;if(B.latencyClass==="ULTRALOW"||B.latencyClass==="LOW"&&!f.J("html5_disable_low_pipeline"))L.mU=2,L.wp=4;L.In=B.defraggedFromSubfragments;g.MG(B)&&(L.ql=!1);L.rg=g.dY(f)}B.isAd()&&(L.R_=0,L.FT=0);L.ye=f.J("html5_ultra_low_latency_subsegment_readahead")&&B.latencyClass==="ULTRALOW";L.V=f.hw();R=0;f.J("html5_live_use_alternate_bandwidth_window_sizes")&&
|
|
(R=V.policy.N,B.isLivePlayback&&(R=g.Am(f.experiments,B.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":B.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||R));J=R;V.W.U=ta(B)?.5:0;if(!V.policy.W&&J&&(R=V.V,V=Math.round(J*R.resolution),V!==R.N)){J=Array(V);var Z=Math.min(V,R.V?R.N:R.W),N=R.W-Z;N<0&&(N+=R.N);for(var F=0;F<Z;++F)J[F]=R.values[(N+F)%R.N];for(;F<V;++F)J[F]=Infinity;R.N=V;R.values=J;R.W=Z%V;R.V=Z===
|
|
V;R.I$=!0;R.D=Bgy(R)}B.isLivePlayback&&(L.Sb=g.Am(f.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,L.sx=!1);B.U6()&&(L.sx=!1);R=!f.J("html5_sabr_keep_all_quality_constraints")&&!B.U6();V=f.J("html5_sabr_remove_all_quality_constraints_for_drm_traffic")&&B.U6();L.vC=R||V;L.BI=mX(B);kT(B)&&(L.ye=!0,B.latencyClass==="LOW"?L.TZ=g.Am(f.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):B.latencyClass==="ULTRALOW"&&(L.TZ=g.Am(f.experiments,"html5_jumbo_ull_subsegment_readahead_target")),
|
|
L.YS=!0);B.iC()&&(L.gg=1.3);L.GZ=L.GZ||B.jr;L.ZM=(L.ZM||B.ZM)&&f.G;L.LD=B.X;f.hw()&&(L.KY=!0);B.X&&!K&&(L.G3=!0);B.X&&B.isAd()&&(L.yj*=1.6,L.qp*=1.6);Bh(B)&&(L.U=B.videoId,L.jr=!0,L.HC=100,B.e6&&B.e6.length>0&&(L.mC=B.e6));L.cR=B.B$;L.Tb=KM(f,{},B.V||void 0,jC(B));L.Ox=y7(B)&&(g.cH(f)||g.Z_(f));iS(B)&&(L.D=!0,L.IV=f.J("html5_estimate_live_partial_slice_duration"),g.wY(f)&&!g.ng()&&f.J("html5_force_audio_to_cover_video_keyframe")?L.mH=!1:L.mH=!0,L.h8||B.isLivePlayback||!f.J("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||
|
|
(L.zK=!0,L.SH=g.Am(f.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),f.J("html5_sabr_report_partial_segment_estimated_duration")&&(L.cC=!0),L.N=!0,L.e7=f.J("html5_trigger_loader_when_idle_network"),L.nJ=f.J("html5_sabr_parse_live_metadata_playback_boundaries"),L.jH=f.J("html5_consume_onesie_next_request_policy_for_sabr"),L.lR=f.J("html5_sabr_report_next_ad_break_time"),L.bA=f.J("html5_log_high_res_buffer_timeline")&&f.hw(),L.OC=f.J("html5_remove_stuck_slices_beyond_max_buffer_limits"),
|
|
L.nO=f.J("html5_gapless_sabr_btl_last_slice")&&pr(B),L.oz=f.J("html5_reset_last_appended_slice_on_seek")&&pr(B),ta(B)?(L.Gx=!0,L.gy=f.J("html5_disable_variability_tracker_for_live"),L.cn=!0,f.J("html5_simplified_backup_timeout_sabr_live")&&(L.O_=!0,L.Ry=L.mL)):L.N8=f.J("html5_probe_request_on_sabr_request_progress"),L.uu=f.J("html5_serve_start_seconds_seek_for_post_live_sabr"),L.m1=f.J("html5_flush_index_on_updated_timestamp_offset"),L.Wn=iS(B),L.M7=f.J("html5_ignore_partial_segment_from_live_readahead"),
|
|
f.J("html5_include_partial_segment_for_jumbo_ll")&&kT(B)&&(L.M7=!1),L.Ip=f.J("html5_use_non_active_broadcast_for_post_live"),L.S4=f.J("html5_use_centralized_player_time"),L.zV=f.J("html5_log_centralized_player_time"),L.qM=f.J("html5_use_loader_check_duration"),L.BR=f.J("html5_consume_onesie_sabr_seek"),L.Vj=f.J("html5_enable_sabr_seek_loader_refactor"),B.enableServerStitchedDai&&(L.W=!0,L.UO=f.J("html5_reset_server_stitch_state_for_non_sabr_seek"),L.Kx=f.J("html5_remove_ssdai_append_pause")&&!B.aA(),
|
|
L.o4=f.J("html5_ssdai_log_ssevt_in_loader_timers")),L.y8=f.hw(),L.latencyClass=B.latencyClass,L.sC=B.iC()&&f.J("html5_prebuffer_instream_media_live")&&f.J("html5_report_prefetch_requests"),L.xY=!B.iC()&&f.J("html5_prebuffer_instream_media_vod")&&f.J("html5_report_prefetch_requests"),L.iA=f.J("html5_disable_prebuffer_for_limited_memory_devices"));L.WR=g.iS1(B);u6(f.D,a4.BITRATE)&&(L.lC=NaN);if(R=g.Am(f.experiments,"html5_request_size_max_kb"))L.Cr=R*1024;f.D.W?L.kR="; "+a4.EXPERIMENTAL.name+"=allowed":
|
|
f.J("html5_enable_cobalt_tunnel_mode")&&g.ng()&&(f=a4.TUNNELMODE,L.kR="; "+f.name+"="+f.valid);B=B.serverPlaybackStartConfig;(B==null?0:B.enable)&&(B==null?0:B.playbackStartPolicy)&&(L.dB=!0,p6(L,B.playbackStartPolicy,2));B=ok7(A);A.vE.removeAll();a:{f=A.gf.Pq;if(R=A.videoData.videoId)if(K=f.N.get(R)){f.N.remove(R);f=K;break a}f=void 0}A.loader=new Wm(A,A.Ml,L,A.videoData.N,A.videoData.V,uG(A),B,A.videoData.enableServerStitchedDai,f,A.videoData.yj);L=A.videoData.J("html5_disable_preload_for_ssdai_with_preroll")&&
|
|
A.videoData.isLivePlayback&&A.Hu()?!0:A.nu&&Eqk(A);A.loader.initialize(A.getCurrentTime(),uG(A),L);A.videoData.probeUrl&&(A.loader.cn=A.videoData.probeUrl);if(A.n3.length||A.nu)A.videoData.cotn||ac(A,!1);Bvw(A.M8,A.loader);A.TV&&(KfQ(A.loader,A.TV),A.Hn("sdai",{sdl:1}));g.Jj(A.videoData)&&(A=A.loader,A.policy.e6=A.policy.mj)};
|
|
UP=function(A,L){L=L===void 0?!0:L;A.L.Kt&&!A.videoData.backgroundable&&A.mediaElement&&!A.QC()&&(A.isBackground()&&A.mediaElement.g_()?(A.Hn("bgmobile",{suspend:1}),A.aC(!0,!0)):!A.isBackground()&&L&&PY(A)&&A.Hn("bgmobile",{resume:1}))};
|
|
ev=function(A){A.loader&&(A.loader.dispose(),A.loader=null,Bvw(A.M8,null));A.R0()?fjk(A):A.GB()};
|
|
fjk=function(A){if(A.AF)if(A.yJ(),A.AF.T)try{A.L.hw()&&A.Hn("rms",{l:"vprms",sr:A.R0(),rs:Ik(A.AF)});A.AF.clear();var L;(L=A.mediaElement)==null||L.nH(A.AF);A.AF=null}catch(B){L=new g.iL("Error while clearing Media Source in VideoPlayer: "+B.name+", "+B.message),L=JT(L),A.handleError(L),A.GB()}else A.GB()};
|
|
KBQ=function(A,L){if(A.AF)return A.AF.V;a:{L=L===void 0?!1:L;L=L===void 0?!1:L;try{g.ng()&&A.videoData.QE()&&A.mediaElement.Xv();var B=A.mediaElement.Fy(A.bf(),A.iI())}catch(K){if(wO6(A.KQ,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",K);A.O9("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}A.Mv(B,!1,!1,L)}var f;return((f=A.Fy())==null?void 0:f.V)||null};
|
|
VnC=function(A,L){L=L===void 0?!1:L;if(A.loader){A.videoData.enableServerStitchedDai&&NCw(A.loader);var B=A.getCurrentTime()-A.pY();A.loader.seek(B,{Cu:L}).c9(function(){})}else qhv(A)};
|
|
JBw=function(A,L){if(A.AF){A.AF.Vr(L);var B;(B=A.loader)!=null&&B.policy.S4&&(B.X=L)}};
|
|
vnQ=function(A,L){xq1(A,L.reason,L.N.info,L.token,L.videoId)};
|
|
xH=function(A,L){A.publish("internalvideodatachange",L===void 0?"dataupdated":L,A.videoData)};
|
|
Sik=function(A){for(var L=g.m("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),B=L.next();!B.done;B=L.next())A.E1.Y(A.mediaElement,B.value,A.Ma,A);A.L.Tf&&A.mediaElement.wy()&&(A.E1.Y(A.mediaElement,"webkitplaybacktargetavailabilitychanged",A.oPj,A),A.E1.Y(A.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",A.OYj,A))};
|
|
ZiL=function(A){g.sQ(A.p7);RTk(A)||(A.p7=g.Gc(function(){return RTk(A)},100))};
|
|
RTk=function(A){var L=A.mediaElement;L&&A.OB&&!A.videoData.G&&!iJ("vfp",A.Rv.timerName)&&L.J2()>=2&&!L.isEnded()&&ok(L.YJ())&&A.Rv.tick("vfp");return(L=A.mediaElement)&&!A.videoData.G&&L.getDuration()>0&&(L.isPaused()&&L.J2()>=2&&ok(L.YJ())&&(iJ("pbp",A.Rv.timerName)||A.Rv.tick("pbp"),!A.videoData.Bk||A.Ez||L.isSeeking()||(A.Ez=!0,A.publish("onPlaybackPauseAtStart"))),L=L.getCurrentTime(),Ga(A.Vl,L))?(A.X6(),!0):!1};
|
|
FBE=function(A){A.CY.onProgress();if(HK(A.videoData)&&Date.now()>A.wP+6283){if(A.J("html5_unified_live_latency_reporting")){var L=A.CY;L.qoe&&rje(L.qoe)}else!A.isAtLiveHead()||A.videoData.N&&Pp(A.videoData.N)||(L=A.CY,L.qoe&&rje(L.qoe));L=g.dY(A.L);var B=A.J("html5_always_log_rawlat");(L||B)&&A.Hn("rawlat",{l:EP(A.Yz,"rawlivelatency").toFixed(3)});A.wP=Date.now()}A.videoData.W&&WV(A.videoData.W)&&(L=A.Ur())&&L.videoHeight!==A.FM&&(A.FM=L.videoHeight,xq1(A,"a",NgD(A,A.videoData.wT)))};
|
|
NgD=function(A,L){if(L.N.video.quality==="auto"&&WV(L.getInfo())&&A.videoData.Nl)for(var B=g.m(A.videoData.Nl),f=B.next();!f.done;f=B.next())if(f=f.value,f.getHeight()===A.FM&&f.N.video.quality!=="auto")return f.getInfo();return L.getInfo()};
|
|
XlD=function(A){if(!HK(A.videoData))return NaN;var L=0;A.loader&&A.videoData.N&&(L=ta(A.videoData)?A.loader.wq.pw()||0:A.videoData.N.wT);return(0,g.bc)()/1E3-A.wX()-L};
|
|
d81=function(A){A.mediaElement&&A.mediaElement.QC()&&(A.RZ=(0,g.bc)());A.L.V8?g.gW(function(){D87(A)},0):D87(A)};
|
|
D87=function(A){var L;if((L=A.AF)==null||!L.PF()){if(A.mediaElement)try{A.un=A.mediaElement.playVideo()}catch(f){nR(A,"err."+f)}if(A.un){var B=A.un;B.then(void 0,function(f){if(!(g.x(A.playerState,4)||g.x(A.playerState,256)||A.un!==B||f&&f.name==="AbortError"&&f.message&&f.message.includes("load"))){var K="promise";f&&f.name&&(K+=";m."+f.name);nR(A,K);A.Rt=!0;A.videoData.Pz=!0}})}}};
|
|
nR=function(A,L){g.x(A.playerState,128)||(A.q8(b1(A.playerState,1028,9)),A.Hn("dompaused",{r:L}),A.publish("onAutoplayBlocked"))};
|
|
PY=function(A,L){L=L===void 0?!1:L;if(!A.mediaElement||!A.videoData.V)return!1;var B=L;B=B===void 0?!1:B;var f=null;var K;if((K=A.videoData.V)==null?0:K.N){f=KBQ(A,B);var V;(V=A.loader)==null||V.resume()}else ev(A),A.videoData.wT&&(f=A.videoData.wT.zx());K=A.mediaElement.g_();B=!1;K&&K.equals(f)||(Ij1(A,f),B=!0);g.x(A.playerState,2)||(f=A.M8,L=L===void 0?!1:L,f.D||!(f.V>0)||f.mediaElement&&f.mediaElement.getCurrentTime()>0||(L={zZ:"seektimeline_resumeTime",Cu:L},f.videoData.G||(L.seekSource=15),f.seekTo(f.V,
|
|
L)));a:{L=B;if(iS(A.videoData)){if(!A.videoData.U6())break a}else if(!g.Cr(A.videoData))break a;if(A.mediaElement)if((f=A.videoData.D)&&A.mediaElement.wy()){K=A.mediaElement.Zg();if(A.Gq)if(K!==A.Gq.element)Ak(A);else if(L&&f.flavor==="fairplay"&&!zc())Ak(A);else break a;if(A.J("html5_report_error_for_unsupported_tvos_widevine")&&zc()&&f.flavor==="widevine")A.O9("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{A.Gq=new z0C(K,A.videoData,A.L,A.mediaElement);A.Gq.subscribe("licenseerror",
|
|
A.FU,A);A.Gq.subscribe("qualitychange",A.pyr,A);A.Gq.subscribe("heartbeatparams",A.bV,A);A.Gq.subscribe("keystatuseschange",A.Cl,A);A.Gq.subscribe("ctmp",A.Hn,A);L=g.m(A.vE.keys);for(f=L.next();!f.done;f=L.next())f=A.vE.get(f.value),A.Gq.kD(f);A.J("html5_eme_loader_sync")||A.vE.removeAll()}}else A.O9("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return B};
|
|
Ij1=function(A,L){A.Rv.tick("vta");OC("vta",void 0,"video_to_ad");A.getCurrentTime()>0&&V2L(A.M8,A.getCurrentTime());A.mediaElement.activate(L);A.AF&&fs(4);!A.videoData.G&&A.playerState.isOrWillBePlaying()&&A.uv.start();if(eHk(A)){var B;if(L=(B=A.mediaElement)==null?void 0:B.audioTracks())L.onaddtrack=function(){AB8(A)},L.onremovetrack=function(){AB8(A)},L.onchange=function(){A.publish("internalaudioformatchange",A.videoData,!0)}}};
|
|
Ak=function(A){A.Gq&&(A.Gq.dispose(),A.Gq=null)};
|
|
wmy=function(A){var L=L===void 0?!1:L;A.mediaElement&&(A.AF?(Ak(A),A.GB(),KBQ(A,L)):(A.videoData.wT&&A.videoData.wT.B3(),A.mediaElement.stopVideo()),A.playVideo())};
|
|
pmk=function(A,L){A.L.J("html5_log_rebuffer_reason")&&(L={r:L,lact:rT()},A.mediaElement&&(L.bh=A.mediaElement.vu()),A.Hn("bufreason",L))};
|
|
yBe=function(A,L){if(A.L.hw()&&A.mediaElement){var B=A.mediaElement.Ov();B.omt=(A.mediaElement.getCurrentTime()+A.pY()).toFixed(3);B.ps=A.playerState.state.toString(16);B.rt=(g.Ci(A.CY.provider)*1E3).toFixed();B.e=L;A.eF[A.AQ++%5]=B}};
|
|
jS6=function(A){if(A.L.hw()){A.eF.sort(function(f,K){return+f.rt-+K.rt});
|
|
for(var L=g.m(A.eF),B=L.next();!B.done;B=L.next())B=B.value,A.Hn("vpe",Object.assign({t:B.rt},B));A.eF=[];A.AQ=0}};
|
|
gkQ=function(A){if(g.xz("cobalt")&&g.xz("nintendo switch")){var L=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;A.Hn("nxdock",{d:L})}};
|
|
ac=function(A,L){var B;(B=A.loader)==null||cjL(B,L)};
|
|
YhC=function(A){Rh(A.videoData,"html5_set_debugging_opt_in")&&(A=g.v9(),A.Iv(183)||(P9(183,!0),A.save()))};
|
|
GLw=function(A){return A.J("html5_remove_ios_7_hack_force_play")};
|
|
aI6=function(A,L){A.gf.qV()||(A.Hn("sgap",{f:L}),A.gf.clearQueue(!1,L==="pe"))};
|
|
CR=function(A){return A.J("html5_disable_video_player_initiated_seeks")&&iS(A.videoData)};
|
|
rBy=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(this.api,"isLifaAdPlaying",function(){return L.api.isLifaAdPlaying()});
|
|
this.events.Y(A,"serverstitchedvideochange",function(){var B;(B=L.api.getVideoData())!=null&&B.aA()&&(L.api.isLifaAdPlaying()?(L.playbackRate=L.api.getPlaybackRate(),L.api.setPlaybackRate(1)):L.api.setPlaybackRate(L.playbackRate))});
|
|
this.playbackRate=1};
|
|
Ll=function(A){Dq.call(this,"Loop",g.gC.bP);this.S=A;var L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z",
|
|
fill:"white"}}]}:FuQ();this.setIcon(L);this.subscribe("select",this.W,this);A.createClientVe(this.element,this,28661);this.Y(A,"settingsMenuVisibilityChanged",this.N);this.listen("click",this.logClick);this.Y(A,"onLoopChange",this.onLoopChange);dC(this,A.getLoopVideo());A.gB().ov(this)};
|
|
sSD=function(A){VC.call(this,A);var L=this;A.addEventListener("settingsMenuInitialized",function(){L.menuItem||(L.menuItem=new Ll(L.api),g.W(L,L.menuItem))});
|
|
A.addEventListener("videodatachange",function(B,f){B=L.api.getPresentingPlayerType()===2;var K;(K=L.menuItem)==null||K.xP(!f.isLivePlayback&&!B)})};
|
|
HiD=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(this.api,"seekToChapterWithAnimation",function(B){L.seekToChapterWithAnimation(B)});
|
|
wh(this.api,"seekToTimeWithAnimation",function(B,f){L.seekToTimeWithAnimation(B,f)});
|
|
wh(this.api,"renderChapterSeekingAnimation",function(B,f,K){L.api.renderChapterSeekingAnimation(B,f,K)});
|
|
wh(this.api,"setMacroMarkers",function(B){L.setMacroMarkers(A,B)});
|
|
wh(this.api,"changeMarkerVisibility",function(B,f,K){L.changeMarkerVisibility(B,f,K)});
|
|
wh(this.api,"isSameMarkerTypeVisible",function(B){return L.isSameMarkerTypeVisible(B)})};
|
|
hTv=function(A,L,B){var f=A.api.getCurrentTime()*1E3<L?1:-1;A.api.renderChapterSeekingAnimation(f,B);A.api.seekTo(L/1E3,void 0,void 0,void 0,3)};
|
|
biE=function(A,L){var B,f;return(B=nz(A,"macroMarkersListEntity",L))==null?void 0:(f=B.markersList)==null?void 0:f.markerType};
|
|
tny=function(A,L){var B=g.Iq.getState().entities;A=biE(B,A);L=g.m(L.JF);for(var f=L.next();!f.done;f=L.next())if(A===biE(B,f.value))return!0;return!1};
|
|
om=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"videodatachange",function(){L.updateMetadata()});
|
|
this.events.Y(A,"presentingplayerstatechange",function(){kL0(L)});
|
|
this.events.Y(A,"SEEK_COMPLETE",function(){Tg1(L)})};
|
|
Be=function(A,L){try{navigator.mediaSession.setActionHandler(A,L)}catch(B){}};
|
|
ljk=function(A){Be("play",function(){A.api.playVideo();fl(A)});
|
|
Be("pause",function(){A.api.pauseVideo();fl(A)});
|
|
Be("seekbackward",function(){A.api.seekBy(-5*A.api.getPlaybackRate());fl(A)});
|
|
Be("seekforward",function(){A.api.seekBy(5*A.api.getPlaybackRate());fl(A)});
|
|
Be("seekto",function(L){L=L.seekTime;L!=null&&A.api.seekTo(L);fl(A)})};
|
|
fl=function(A){A.api.J("web_reset_lact_on_media_actions")&&A.api.updateLastActiveTime()};
|
|
m8w=function(A){var L,B,f,K;return(L=A.api.getVideoData().getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:(K=f.browserMediaSession)==null?void 0:K.browserMediaSessionRenderer};
|
|
QSL=function(A){var L=[];if(!A||!A.thumbnails)return L;A=g.m(A.thumbnails);for(var B=A.next();!B.done;B=A.next())B=B.value,B.url&&(!B.width||B.width<=0||!B.height||B.height<=0||g.MR(B.url)&&L.push({src:B.url||"",sizes:B.width+"x"+B.height,type:"image/jpeg"}));return L};
|
|
kL0=function(A){A=A.api.getPlayerStateObject();A=A.isCued()||A.isError()?"none":A.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=A};
|
|
Tg1=function(A){if(navigator.mediaSession.setPositionState)if(A.api.J("web_player_media_session_infinity")&&A.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(f){}else{var L=A.api.getProgressState().seekableEnd,B=Math.min(A.api.getCurrentTime(),L);L&&Number.isFinite(B)&&navigator.mediaSession.setPositionState({duration:L,playbackRate:A.api.getPlaybackRate(),position:B})}};
|
|
Kl=function(A){VC.call(this,A);var L=this;this.W=new Map;this.U=this.N=void 0;this.compositeVideoState=null;this.V=void 0;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"modulecreated",function(B){var f;a:{var K,V,J,R=(K=L.api.getVideoData())==null?void 0:(V=K.getPlayerResponse())==null?void 0:(J=V.overlay)==null?void 0:J.playerControlsOverlayRenderer;if(R&&(K=g.y(R.compositeVideoOverlay,C3y),K==null?0:(f=K.sources)==null?0:f.length))for(f=g.m(K==null?void 0:K.sources),K=f.next();!K.done;K=
|
|
f.next())if(K=K.value,K.isActive){f=K;break a}f=void 0}B==="captions"&&(f==null?void 0:f.topLeftCornerX)!==void 0&&(f==null?void 0:f.topLeftCornerY)!==void 0&&(f==null?void 0:f.width)!==void 0&&(f==null?void 0:f.height)!==void 0&&L.api.tv({top:f.topLeftCornerY,right:1-f.topLeftCornerX-f.width,bottom:1-f.topLeftCornerY-f.height,left:f.topLeftCornerX})});
|
|
this.events.Y(A,"videodatachange",function(B){var f=L.api.getVideoData();L.N=void 0;L.W.clear();L.api.Jf("compositeembargo",1);var K=f==null?void 0:f.Ym.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(K==null?0:K.length)?iiL(L,K.filter(function(V){return $8L(L,V)})):(f==null?0:f.cueRanges)&&iiL(L,f.cueRanges.filter(function(V){return $8L(L,V)}));
|
|
B==="dataupdated"&&(f==null?void 0:f.compositeLiveStatusToken)!==L.U&&(L.U=f==null?void 0:f.compositeLiveStatusToken,L.api.VI())});
|
|
this.events.Y(A,g.qR("compositeembargo"),function(B){var f;if(((f=L.N)==null?void 0:f.id)!==B.id&&(L.api.Qe(!0),L.W.has(B.id))){var K=L.W.get(B.id);f=L.api.getVideoData();K=g.m(K);for(var V=K.next();!V.done;V=K.next()){var J=void 0;V=(J=V.value.compositeEmbargo)==null?void 0:J.embargoStatusToken;f.Sr!==V&&(f.Sr=V,L.api.VI());Xmw(L,B)}}});
|
|
this.events.Y(A,g.PR("compositeembargo"),function(B){var f;if(((f=L.N)==null?void 0:f.id)===B.id&&(L.api.Qe(!1),L.W.has(B.id))){if(B=L.api.getVideoData())B.Sr=void 0;L.api.VI();Xmw(L)}});
|
|
this.events.Y(A,"heartbeatRequest",function(B){L.compositeVideoState!==null&&(B.playbackState||(B.playbackState={}),B.playbackState.compositeVideoState=L.compositeVideoState)});
|
|
this.events.Y(A,"internalaudioformatchange",function(B,f){var K=L.api.getVideoData(void 0,!0);K==null||K.Hn("atrkchg",{id:B,m:f});if(K&&oh(K))for(f=L.api.getAvailableAudioTracks(),f=g.m(f),K=f.next();!K.done;K=f.next())if(K.value.getLanguageInfo().getId()===B){L.api.K().cn=B;break}});
|
|
this.events.Y(A,"onPlaybackAudioChange",function(){L.api.VI();var B;((B=A.getVideoData())==null?0:B.K().J("html5_preload_on_mosaic_audio_track_change"))&&(B=L.api.getSourceConfigForActiveAudioTrack())&&A.preloadVideoByPlayerVars({videoId:B.videoId,live_preload:!0},1)});
|
|
wh(A,"setCompositeParam",function(B){L.compositeVideoState=B});
|
|
this.api.J("web_watch_enable_multiview_manager")&&wh(A,"setCompositeVideoOverlayRendererComponent",function(B){L.setCompositeVideoOverlayRendererComponent(B)})};
|
|
Xmw=function(A,L){var B;((B=A.N)==null?void 0:B.id)!==(L==null?void 0:L.id)&&(A.N&&(A.W.delete(A.N.id),A.api.K9([A.N],1)),A.N=L)};
|
|
iiL=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){var f=B.value,K=void 0;B=Number((K=f.playbackRelativePosition)==null?void 0:K.utcTimeMs)/1E3;var V=void 0;K=B+Number((V=f.duration)==null?void 0:V.seconds);V="composite_embargo_"+B;f.onEnter&&(f=f.onEnter.filter(A.D),f.length&&(A.W.set(V,f),A.api.addUtcCueRange(V,B,K,"compositeembargo",!1)))}};
|
|
$8L=function(A,L){var B;return(B=L.onEnter)==null?void 0:B.some(A.D)};
|
|
OiL=function(A){VC.call(this,A);this.events=new g.dN;g.W(this,this.events);this.events.Y(A,"applicationInitialized",function(){var L={};for(Rl=new gS(L.handleError===void 0?QH:L.handleError,L.logEvent===void 0?g.pE:L.logEvent);Z3.length>0;)switch(L=Z3.shift(),L.type){case "ERROR":Rl.M4(L.payload);break;case "EVENT":Rl.logEvent(L.eventType,L.payload)}});
|
|
wh(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));wh(this.api,"updateDownloadState",this.updateDownloadState.bind(this));wh(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));wh(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));wh(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));wh(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));wh(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))};
|
|
Ekw=function(A){VC.call(this,A);var L=this;this.loaded=!1;this.overlay=null;this.events=new g.dN(A);g.W(this,this.events);this.N=new g.dN(A);g.W(this,this.N);this.events.Y(A,"modulesCreated",function(){L.wR()&&L.load()});
|
|
this.events.Y(A,"modulesDestroyed",function(B){var f=!0;switch(B){case 2:case 3:f=!1;break;case 4:f=L.api.getPresentingPlayerType()===1}f&&L.unload()})};
|
|
Vp=function(A){VC.call(this,A);var L=this;wh(A,"getAvailableQualityData",function(){return L.getAvailableQualityData()});
|
|
wh(A,"getAvailableQualityDataAndMessaging",function(){return L.getAvailableQualityDataAndMessaging()})};
|
|
cBC=function(A,L,B){var f=[],K=L?156595:151874;A=g.m(A);for(var V=A.next();!V.done;V=A.next()){var J=V.value;V=J.video;J={formatId:J.id,qualityLabel:V.qualityLabel,quality:V.quality,isPlayable:L};if(V=B.get(V.qualityLabel))J.paygatedQualityDetails={paygatedIndicatorText:V.paygatedIndicatorText,endpoint:V.endpoint,veType:K,trackingParams:V.trackingParams};f.push(J)}return f};
|
|
Mnk=function(A){for(var L=0,B=0;B<A.length;B++)if(A[B].paygatedQualityDetails){var f=A[B];A.splice(B,1);A.splice(L,0,f);L++}};
|
|
Yie=function(A){var L=new Set,B=new Map,f={};A=g.m(A);for(var K=A.next();!K.done;K=A.next()){K=K.value;var V=K.quality,J=K.isPlayable,R=K.qualityLabel;R&&V&&(J&&B.has(V)&&B.get(V)!==R?L.add(V):J&&B.set(V,R),f[R]||(f[R]=K))}B=[];f=g.m(Object.values(f));for(A=f.next();!A.done;A=f.next())K=A.value,(A=K.quality)&&!L.has(A)&&(K.formatId=void 0),B.push(K);return B};
|
|
Jk=function(A){VC.call(this,A);var L=this;this.V=1;this.Rv=null;this.GV={Rwp:function(){return L.V}};
|
|
this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"d6de4videobindingchange",function(B){L.Xg(B)});
|
|
this.events.Y(A,"csiinitialized",function(){U86(L)})};
|
|
U86=function(A){if(WBe()){A.Rv=A.api.zH();A.N=new yV;A.V=2;var L=g.Am(A.api.K().experiments,"html5_d6de4_defer_timeout_ms");A.Rv.Nq("pt_pish");L?g.gW(function(){vkD(A)},L):A.api.J("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){vkD(A)}):vkD(A)}};
|
|
vkD=function(A){if(WBe()){A.Rv=A.api.zH();var L=g.Am(A.api.K().experiments,"html5_d6de4_cloud_project_number");A.Rv.Nq("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:L}).then(function(f){A.W=f;var K;(K=A.N)==null||K.resolve();A.Rv.Nq("pt_pif")}).catch(function(f){Ss(f,"player_start");
|
|
A.Rv.Nq("pt_pie");var K;(K=A.N)==null||K.reject(f)})}catch(f){Ss(f,"player_start_catch");
|
|
A.api.Hn("pfes",{});var B;(B=A.N)==null||B.reject(f)}}};
|
|
qiL=function(A,L){if(A.W&&!A.J("html5_disable_d6de4_mint_debug")){var B=L.videoId;A.V=3;A.Rv.Nq("pt_ms");try{A.W.requestToken(B).then(function(f){A.Rv.Nq("pt_mf");if(f=$i(f))L.SH={ton:f}}).catch(function(f){A.Rv.Nq("pt_me");
|
|
Ss(f,"player_generate");A.handleError(f,L)})}catch(f){Ss(f,"player_generate_catch"),A.handleError(f,L)}}};
|
|
P3S=function(A,L){A.api.J("html5_enable_d6de4_cold_start_and_error")&&(L.SH={coldStartInfo:{clientState:A.V}})};
|
|
Ss=function(A,L){A.message&&g.CE(Error(L+"_"+A.message))};
|
|
WBe=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
|
|
Rm=function(A){g.q.call(this,{Z:"button",Rr:["ytp-pip-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},B:[kr()]});var L=this;this.api=A;this.listen("click",this.onClick);var B=this.api.WI(),f=B.subscribe("visibilitystatechange",function(){L.zL(B.nV())});
|
|
this.addOnDisposeCallback(function(){B.vR(f)});
|
|
Cm(A,this.element,this);this.zL(B.nV())};
|
|
ZW=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"standardControlsInitialized",function(){L.createButton()});
|
|
g.SK(this.api.K())&&(this.J("web_watch_pip")||this.J("web_shorts_pip"))&&wh(this.api,"setDocumentPictureInPicture",function(B){L.setDocumentPictureInPicture(B)})};
|
|
x8e=function(A){var L=A.api.getVideoData();A.button.xP(L.r4)};
|
|
eTk=function(A){VC.call(this,A);var L=this;this.loaded=!1;this.G=0;this.N=!1;this.X={};this.V=[];this.U=0;this.T=!1;this.events=new g.dN(A);g.W(this,this.events);this.W=new g.dN(A);g.W(this,this.W);this.events.Y(A,"modulesCreated",function(){L.wR()&&L.load()});
|
|
this.events.Y(A,"modulesDestroyed",function(B){var f=L.api.getPresentingPlayerType();switch(B){case 2:case 3:B=f!==1&&!(f===5||f===6||f===7);break;case 4:B=!L.N;break;default:B=!0}B&&L.unload()})};
|
|
nky=function(A,L){V3(A.api.K())&&(L?A.D.show():A.D.hide())};
|
|
zTe=function(A){var L=A.api.getVideoData().interstitials,B=[];L=g.m(L);for(var f=L.next();!f.done;f=L.next()){f=f.value;var K=B,V=K.push,J=A,R=f.playerVars,Z=f.sU,N=f.time,F="yto-"+J.G++;N=new g.WR(N,N,{id:F,priority:7,namespace:"yto"});J.X[F]={playerVars:R,playerType:Z};V.call(K,N);K=A.api.getVideoData(1);K=Object.assign({oauth_token:K.oauthToken},f.playerVars);A.api.preloadVideoByPlayerVars(K,f.sU)}A.api.dX(B,1)};
|
|
ugQ=function(A){var L=A.V[A.U];if(L){var B=A.X[L];L=B.playerVars;B=B.playerType;A.N=!0;A.U++;var f=A.api.getVideoData(1);L=Object.assign({oauth_token:f.oauthToken},L);A.api.loadVideoByPlayerVars(L,!0,B,!0);A.N=!1}};
|
|
ajQ=function(A){A.U<A.V.length?ugQ(A):(g.x(A.api.getPlayerStateObject(1),2)&&(A.T=!0),A.N=!0,A.U=0,A.V.length=0,A.api.hh(),A.N=!1)};
|
|
AtQ=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(this.api,"musicDisableUi",function(){g.R1(L.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
|
|
wh(this.api,"musicEnableUi",function(){g.NH(L.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
|
|
DW=function(A,L,B){L=L===void 0?!0:L;B=B===void 0?!1:B;g.q.call(this,{Z:"div",j:"ytp-suggested-action"});var f=this;this.S=A;this.jI=this.qp=this.Vj=this.Wn=this.W=this.X=this.expanded=this.enabled=this.sx=!1;this.ql=new g.aa(function(){f.badge.element.style.width=""},200,this);
|
|
this.Ys=new g.aa(function(){NQ(f);F7(f)},200,this);
|
|
this.Ex=this.S.J("delhi_modern_web_player")?40:34;this.dismissButton=new g.q({Z:"button",Rr:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.W(this,this.dismissButton);this.U=new g.q({Z:"div",j:"ytp-suggested-action-badge-expanded-content-container",B:[{Z:"label",j:"ytp-suggested-action-badge-title",Ir:"{{badgeLabel}}"},this.dismissButton]});g.W(this,this.U);this.JF=new g.q({Z:"div",j:"ytp-suggested-action-badge-icon-container",B:[L?{Z:"div",j:"ytp-suggested-action-badge-icon"}:
|
|
""]});g.W(this,this.JF);this.badge=new g.q({Z:B?"div":"button",Rr:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],B:[this.JF,this.U]});g.W(this,this.badge);this.badge.DM(this.element);this.G=new g.KL(this.badge,250,!1,100,function(){f.S.J("web_player_overlay_positioned_layout")&&f.hide()});
|
|
g.W(this,this.G);A.J("web_player_overlay_positioned_layout")&&this.hide();this.Nl=new g.KL(this.U,250,!1,100);g.W(this,this.Nl);this.mH=new g.uN(this.pRr,null,this);g.W(this,this.mH);this.Ox=new g.uN(this.Ya,null,this);g.W(this,this.Ox);g.W(this,this.ql);g.W(this,this.Ys);this.S.createServerVe(this.badge.element,this.badge,!0);this.S.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.Y(this.S,"onHideControls",function(){f.H5(!1)});
|
|
this.Y(this.S,"onShowControls",function(){f.H5(!0)});
|
|
this.Y(this.badge.element,"click",this.gJ);this.Y(this.dismissButton.element,"click",this.qb);this.Y(this.S,"pageTransition",this.CB);this.Y(this.S,"appresize",this.B9);this.Y(this.S,"fullscreentoggled",this.A$p);this.Y(this.S,"cardstatechange",this.kZj);this.Y(this.S,"annotationvisibility",this.jcF,this);this.Y(this.S,"offlineslatestatechange",this.XIn,this)};
|
|
NQ=function(A){g.D1(A.badge.element,"ytp-suggested-action-badge-with-controls",A.Vj||!A.X)};
|
|
F7=function(A,L){var B=A.pH();A.expanded!==B&&(A.expanded=B,L===void 0||L?(A.mH.stop(),A.Ox.stop(),A.ql.stop(),A.mH.start()):(A.U.xP(A.expanded),g.D1(A.badge.element,"ytp-suggested-action-badge-expanded",A.expanded)),A.hH())};
|
|
LI0=function(A){var L=A.text||"",B=g.sA("ytp-suggested-action-badge-title",A.element);B&&g.OA(B,L);A.badge.element.setAttribute("aria-label",L);A.dismissButton.element.setAttribute("aria-label",A.Cr?A.Cr:"")};
|
|
dA=function(A,L,B,f,K,V){var J={Z:"div",j:"ytp-panel"};if(B){var R="ytp-panel-back-button";var Z="ytp-panel-title";var N={Z:"div",j:"ytp-panel-header",B:[{Z:"div",Rr:["ytp-panel-back-button-container"],B:[{C:{"aria-label":"Torna al menu precedente"},Z:"button",Rr:["ytp-button",R]}]},{Z:"span",Rr:[Z],C:A.J("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,B:[B]}]};if(K){var F="ytp-panel-options";N.B.push({Z:"button",Rr:["ytp-button",F],B:[f]})}J.B=[N]}f=!1;V&&(V={Z:"div",
|
|
j:"ytp-panel-footer",B:[V]},f=!0,J.B?J.B.push(V):J.B=[V]);g.DE.call(this,J);this.content=L;f&&J.B?L.DM(this.element,J.B.length-1):L.DM(this.element);this.pz=!1;this.uB=f;B&&(this.backButton=this.m4(R),B=this.m4(Z),this.Y(this.backButton,"click",this.fT),this.Y(B,"click",this.fT),this.pz=!0,K&&this.Y(this.m4(F),"click",K));L.subscribe("size-change",this.QM,this);this.Y(A,"fullscreentoggled",this.QM);this.S=A};
|
|
oH6=function(A){return A.backButton?(A.backButton.focus(),!0):!1};
|
|
g.Im=function(A,L,B,f,K,V){L=L===void 0?null:L;var J={role:"menu"};L&&(J.id=L);L=new g.DE({Z:"div",j:"ytp-panel-menu",C:J});dA.call(this,A,L,B,f,K,V);this.menuItems=L;this.items=[];g.W(this,this.menuItems)};
|
|
g.wA=function(A){for(var L=g.m(A.items),B=L.next();!B.done;B=L.next())B.value.unsubscribe("size-change",A.SU,A);A.items=[];try{g.Ql(A.menuItems.element)}catch(V){var f,K;g.CE(new g.iL("Failed to remove menu items from panel menu.",{error:V.message,originalStack:V.stack,childToBeRemoved:(K=(f=A.menuItems.element.firstChild)==null?void 0:f.textContent)!=null?K:"child element not found"}))}A.menuItems.publish("size-change")};
|
|
Bw0=function(A,L){return L.priority-A.priority};
|
|
g.pl=function(A,L){g.zg.call(this,A,{Z:"div",Rr:["ytp-popup",L||""],B:[{Z:"div",j:"ytp-focus-trap-before",C:{tabindex:"0"}},{Z:"div",j:"ytp-popup-content"},{Z:"div",j:"ytp-focus-trap-after",C:{tabindex:"0"}}]},100,!0);this.N=[];this.U=this.V=null;this.maxHeight=this.maxWidth=0;this.size=new g.Sr(0,0);this.content=this.m4("ytp-popup-content");this.listen("keydown",this.A2);this.Y(this.m4("ytp-focus-trap-before"),"focus",this.E6F);this.Y(this.m4("ytp-focus-trap-after"),"focus",this.zSs)};
|
|
f5L=function(A){var L=A.N[A.N.length-1];if(L){g.wK(A.element,A.maxWidth||"100%",A.maxHeight||"100%");g.Kv(L.element,"width","");g.Kv(L.element,"height","");g.Kv(L.element,"maxWidth","100%");g.Kv(L.element,"maxHeight","100%");g.Kv(L.content.element,"height","");var B=g.pv(L.element);B.width+=1;B.height+=1;g.Kv(L.element,"width",B.width+"px");g.Kv(L.element,"height",B.height+"px");g.Kv(L.element,"maxWidth","");g.Kv(L.element,"maxHeight","");var f=0;L.pz&&(f=g.pv(L.m4("ytp-panel-header")).height);var K=
|
|
0;L.uB&&(K=L.m4("ytp-panel-footer"),g.Kv(K,"width",B.width+"px"),K=g.pv(K).height);g.Kv(L.content.element,"height",B.height-f-K+"px");L.element instanceof HTMLElement&&(f=L.element,K=f.scrollWidth-f.clientWidth,f.offsetWidth-f.clientWidth>0&&K>0&&(B.width+=K,g.Kv(L.element,"width",B.width+"px")));A.size=B}};
|
|
g.yp=function(A,L){var B=A.N[A.N.length-1];B!==L&&(A.N.push(L),KIS(A,B,L))};
|
|
g.js=function(A){if(!(A.N.length<=1)){var L=A.N.pop(),B=A.N[0];A.N=[B];KIS(A,L,B,!0)}};
|
|
KIS=function(A,L,B,f){Vvw(A);L&&(L.unsubscribe("size-change",A.oN,A),L.unsubscribe("back",A.h2,A));B.subscribe("size-change",A.oN,A);B.subscribe("back",A.h2,A);if(A.bC){g.R1(B.element,f?"ytp-panel-animate-back":"ytp-panel-animate-forward");B.DM(A.content);B.focus();A.element.scrollLeft=0;A.element.scrollTop=0;var K=A.size;f5L(A);g.wK(A.element,K);A.V=new g.aa(function(){Jte(A,L,B,f)},20,A);
|
|
A.V.start()}else B.DM(A.content),L&&L.detach()};
|
|
Jte=function(A,L,B,f){A.V.dispose();A.V=null;g.R1(A.element,"ytp-popup-animating");f?(g.R1(L.element,"ytp-panel-animate-forward"),g.NH(B.element,"ytp-panel-animate-back")):(g.R1(L.element,"ytp-panel-animate-back"),g.NH(B.element,"ytp-panel-animate-forward"));g.wK(A.element,A.size);A.U=new g.aa(function(){g.NH(A.element,"ytp-popup-animating");L.detach();g.Fq(L.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);A.U.dispose();A.U=null},250,A);
|
|
A.U.start()};
|
|
Vvw=function(A){A.V&&g.LK(A.V);A.U&&g.LK(A.U)};
|
|
gA=function(A){g.pl.call(this,A,"ytp-shopping-product-menu");this.NU=new g.Im(this.S);g.W(this,this.NU);this.hide();g.yp(this,this.NU);g.Wh(this.S,this.element,4)};
|
|
R_Q=function(A,L,B){var f,K=L==null?void 0:(f=L.text)==null?void 0:f.simpleText;K&&(B=SPQ(A,B,K,L==null?void 0:L.icon,L==null?void 0:L.secondaryIcon),L.navigationEndpoint&&B.listen("click",function(){A.S.Kr("innertubeCommand",L.navigationEndpoint);A.hide()},A))};
|
|
ZRL=function(A,L,B){var f,K=L==null?void 0:(f=L.text)==null?void 0:f.simpleText;K&&SPQ(A,B,K,L==null?void 0:L.icon).listen("click",function(){var V;(L==null?void 0:(V=L.icon)==null?void 0:V.iconType)==="HIDE"?A.S.publish("featuredproductdismissed"):L.serviceEndpoint&&A.S.Kr("innertubeCommand",L.serviceEndpoint);A.hide()},A)};
|
|
SPQ=function(A,L,B,f,K){L=new g.of(g.Bo({},[],!1,!!K),L,B);K&&L.updateValue("secondaryIcon",Nwe(K));L.setIcon(Nwe(f));g.W(A,L);A.NU.ov(L,!0);return L};
|
|
Nwe=function(A){if(!A)return null;switch(A.iconType){case "ACCOUNT_CIRCLE":return{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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 sW();case "HIDE":return{Z:"svg",C:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"g",B:[{Z:"path",C:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]};
|
|
case "OPEN_IN_NEW":return tr()}};
|
|
Gt=function(A){DW.call(this,A,!1,!0);this.isCounterfactual=this.V=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.q({Z:"button",Rr:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.q({Z:"img",j:"ytp-suggested-action-badge-img",C:{src:"{{url}}"}});
|
|
this.thumbnailImage.hide();g.W(this,this.thumbnailImage);this.thumbnailIcon=new g.q({Z:"div",j:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.W(this,this.thumbnailIcon);this.banner=new g.q({Z:"a",j:"ytp-suggested-action-container",B:[this.thumbnailImage,this.thumbnailIcon,{Z:"div",j:"ytp-suggested-action-details",B:[{Z:"text",j:"ytp-suggested-action-title",Ir:"{{title}}"},{Z:"text",j:"ytp-suggested-action-subtitle",Ir:"{{subtitle}}"},{Z:"text",j:"ytp-suggested-action-metadata-text",
|
|
Ir:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.W(this,this.banner);this.banner.DM(this.U.element);this.Y(this.S,"videodatachange",this.onVideoDataChange);this.Y(this.S,g.qR("suggested_action_view_model"),this.g64);this.Y(this.S,g.PR("suggested_action_view_model"),this.n6D);this.Y(this.overflowButton.element,"click",this.u6);this.Y(A,"featuredproductdismissed",this.qb);this.S.createServerVe(this.banner.element,this.banner,!0)};
|
|
FIS=function(A){A.isInitialized&&(A.enabled=A.isVisible,A.qp=A.isVisible,F7(A),A.B9(),A.thumbnailImage.xP(A.isVisible),A.shouldHideDismissButton||A.dismissButton.xP(A.isVisible),A.shouldShowOverflowButton&&A.overflowButton.xP(A.isVisible))};
|
|
rA=function(){Gt.apply(this,arguments)};
|
|
D9D=function(A){VC.call(this,A);this.N=new rA(this.api);g.W(this,this.N);g.Wh(this.api,this.N.element,4)};
|
|
sq=function(A){VC.call(this,A);var L=this;this.N=!0;var B=new g.dN(A);g.W(this,B);B.Y(A,"internalaudioformatchange",function(f,K){d9w(L,f,K)});
|
|
B.Y(A,"annotationvisibility",function(f){L.api.J("web_fix_annotations")&&I57(L,(294).toString(),{boolValue:f})});
|
|
B.Y(A,"videoplayerreset",function(){wY6(L)});
|
|
B.Y(A,"videodatachange",function(f,K){L.onVideoDataChange(f,K)})};
|
|
d9w=function(A,L,B){if(B){var f="";pY6(A,L)&&(f=L,A.api.K().cn=L);if(f&&ytk(A,f)){IDk(A.api,f);var K;A2(y3(A.api.K(),(K=A.api.getVideoData())==null?void 0:g.Aj(K)),function(V){var J=f;jc1(V)!==J&&I57(A,gHw(V),{stringValue:J})})}}};
|
|
wY6=function(A){var L;if((L=l6())==null?0:L.size){var B;A2(y3(A.api.K(),(B=A.api.getVideoData())==null?void 0:g.Aj(B)),function(f){(f=jc1(f))&&ytk(A,f)&&(A.api.K().cn=f)})}};
|
|
rtE=function(A,L){LP(A2(A2(A.dh(),function(B){return auE(B,[gHw(L)])}),function(B){if(B){B=g.m(B);
|
|
for(var f=B.next();!f.done;f=B.next()){var K=f.value;f=K.key;K=K.value;f&&K&&(GaE([{settingItemId:f,settingOptionValue:K}]),wY6(A))}}}),function(){A.N=!0})};
|
|
pY6=function(A,L){A=A.api.getAvailableAudioTracks();A=g.m(A);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.getLanguageInfo().getId()===L)return B;return null};
|
|
jc1=function(A){A=gHw(A);var L=l6();A=L?L.get(A):void 0;return A&&A.stringValue?A.stringValue:""};
|
|
gHw=function(A){var L=(484).toString();A&&(L=(483).toString());return L};
|
|
ytk=function(A,L){var B;return L.split(".")[0]!==""&&((B=A.api.getVideoData())==null?void 0:!oh(B))};
|
|
I57=function(A,L,B){GaE([{settingItemId:L,settingOptionValue:B}]);A2(A.dh(),function(f){LeE(f,L,B)})};
|
|
GaE=function(A){var L=l6();L||(L=new Map);A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=B.value,L.set(B.settingItemId,B.settingOptionValue);L=JSON.stringify(Object.fromEntries(L));g.OS("yt-player-user-settings",L,2592E3)};
|
|
sce=function(){this.label="Doppiaggio automatico"};
|
|
g.He=function(A,L,B,f,K,V,J){g.of.call(this,g.Bo({"aria-haspopup":"true"}),L,A);this.Wz=f;this.D=!1;this.GP=null;this.options={};this.rf=new g.Im(B,void 0,A,K,V,J);g.W(this,this.rf);this.listen("keydown",this.A2);this.listen("click",this.open)};
|
|
HRy=function(A){if(A.GP){var L=A.options[A.GP];L.element.getAttribute("aria-checked");L.element.setAttribute("aria-checked","false");A.GP=null}};
|
|
h_L=function(A,L){g.wA(A.rf);for(var B={},f=!1,K=0;K<L.length;K++){var V=L[K];if(V instanceof sce)V=new g.of({Z:"div",Rr:["ytp-menuitem","ytp-menuitem-section-header"],C:{"aria-disabled":"true"},B:[{Z:"div",Rr:["ytp-menuitem-label"],Ir:"{{label}}"}]},-K,V.label),A.rf.ov(V,!0);else{var J=A.options[V],R=V===A.GP;R&&(f=!0);J&&J.priority===-K?(g.Lh(A.options[V],A.I8(V,!0)),delete A.options[V]):J=A.Em(V,-K,R);B[V]=J;A.rf.ov(J,!0)}}f||(A.GP=null);L=g.m(Object.keys(A.options));for(f=L.next();!f.done;f=L.next())A.options[f.value].dispose();
|
|
A.options=B};
|
|
bRD=function(A,L){g.He.call(this,"Timer di sospensione",g.gC.SLEEP_TIMER,A,L);this.S=A;this.T={};this.V=this.jC("Off");this.U=this.N="";A.J("web_settings_menu_icons")&&(L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(L));
|
|
this.W=new g.q({Z:"div",Rr:["ytp-menuitem-label-wrapper"],B:[{Z:"div",Ir:"Fine del video"},{Z:"div",Rr:["ytp-menuitem-sublabel"],Ir:"{{content}}"}]});g.W(this,this.W);this.listen("click",this.onClick);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"presentingplayerstatechange",this.zL);this.Y(A,"settingsMenuVisibilityChanged",this.QY);A.createClientVe(this.element,this,218889);this.zL();this.S.Kr("onSleepTimerFeatureAvailable")};
|
|
tv1=function(A){var L="Off 10 15 20 30 45 60".split(" "),B;((B=A.S.getVideoData())==null?0:B.isLivePlayback)||L.push("End of video");B=A.S.getPlaylist();var f;B&&((f=B.listId)==null?void 0:f.type)!=="RD"&&L.push("End of playlist");A.eO(g.mn(L,A.jC));A.T=g.jZ(L,A.jC,A);L=A.jC("End of video");A.options[L]&&g.Lh(A.options[L],A.W)};
|
|
ka1=function(A,L){var B=A.T[L],f=B==="End of video"||B==="End of playlist";B==="Off"&&(A.N="");A.S.getPlayerState()!==0&&A.S.getPlayerState()!==5||!f?(A.V=L,g.He.prototype.A$.call(A,L),A.GH(L),A.S.Kr("onSleepTimerSettingsChanged",B)):A.S.Kr("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Il video \u00e8 gi\u00e0 terminato"}}}}})};
|
|
hk=function(A){VC.call(this,A);var L=this;A.addEventListener("settingsMenuInitialized",function(){L.menuItem||(L.menuItem=new bRD(L.api,L.api.gB()),g.W(L,L.menuItem))});
|
|
A.addEventListener("openSettingsMenuItem",function(B){if(B==="menu_item_sleep_timer"){if(!L.menuItem){var f;(f=L.api.gB())==null||f.fD()}L.menuItem.open()}});
|
|
wh(A,"resetSleepTimerMenuSettings",function(){L.resetSleepTimerMenuSettings()});
|
|
wh(A,"setSleepTimerTimeLeft",function(B){L.setSleepTimerTimeLeft(B)});
|
|
wh(A,"setVideoTimeLeft",function(B){L.setVideoTimeLeft(B)})};
|
|
TwC=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"onSnackbarMessage",function(B){switch(B){case 1:L.api.getPlayerStateObject().isBuffering()&&L.api.Kr("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Hai riscontrato interruzioni?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Scopri perch\u00e9"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",
|
|
webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})};
|
|
g.tk=function(A,L,B,f,K){L=L===void 0?!1:L;f=f===void 0?!1:f;K=K===void 0?!1:K;g.SN.call(this);this.yj=K;this.X=!1;this.U=new Qz(this);this.D=this.T=null;this.V=this.W=!1;g.W(this,this.U);this.target=A;this.N=L;this.G=B||A;this.X=f;L&&(g.h8&&this.target.setAttribute("draggable","true"),K||(this.target.style.touchAction="none"));bu(this)};
|
|
k8=function(A){g.$_(A.U,!A.N)};
|
|
bu=function(A){A.D=null;A.T=null;A.Y(Tt("over"),A.ob);A.Y("touchstart",A.Dq);A.N&&A.Y(Tt("down"),A.hT4)};
|
|
l5E=function(A,L){for(var B=0;B<L.changedTouches.length;B++){var f=L.changedTouches[B];if(f.identifier===A.T)return f}return null};
|
|
Tt=function(A){return window.navigator.msPointerEnabled?"MSPointer"+A.charAt(0).toUpperCase()+A.substring(1):"mouse"+A};
|
|
lu=function(A){return A&&m9L?w_(A)||document:document};
|
|
Qc8=function(A){m9L=A};
|
|
CG8=function(A,L){g.q.call(this,{Z:"div",Rr:["ytp-overlay","ytp-speedmaster-overlay"],B:[{Z:"div",j:"ytp-speedmaster-user-edu",B:[{Z:"div",j:"ytp-speedmaster-label",Ir:L},{Z:"div",j:"ytp-speedmaster-icon",Ir:"{{icon}}"}]}]});this.S=A;this.N=this.m4("ytp-speedmaster-user-edu");this.updateValue("icon",uaE());g.R1(this.N,"ytp-speedmaster-has-icon");this.S.createClientVe(this.N,this,173040,!0);this.HI()};
|
|
Qp=function(A){VC.call(this,A);var L=this;this.U=this.V=!1;this.W=new g.dN(A);g.W(this,this.W);this.yj="2x";this.speedmasterUserEdu=new CG8(A,this.yj);g.W(this,this.speedmasterUserEdu);g.Wh(this.api,this.speedmasterUserEdu.element,4);this.N=new g.tk(this.api.Pn().Q8,!0,null,!1,!0);g.W(this,this.N);this.delay=new g.aa(this.ZM,500,this);g.W(this,this.delay);this.W.Y(A,"videodatachange",function(){mS(L)},this);
|
|
this.W.Y(A,"presentingplayerstatechange",function(){mS(L)},this);
|
|
this.W.Y(A,"autonavvisibility",function(){mS(L)},this);
|
|
this.api.WI().subscribe("visibilitystatechange",function(){mS(L)});
|
|
this.W.Y(A,"rootnodemousedown",function(B){L.X=B});
|
|
this.J("web_speedmaster_spacebar_control")&&(this.W.Y(A,"keyboardserviceglobalkeydown",function(B,f){L.Wn=f;iR6(L,B,f.V1,!0)},this),this.W.Y(A,"keyboardserviceglobalkeyup",function(B){iR6(L,B,!1,!1)},this))};
|
|
Cl=function(A){A.delay.stop();A.N.unsubscribe("dragmove",A.T,A);A.N.unsubscribe("dragend",A.D,A);A.V&&(A.V=!1,A.speedmasterUserEdu.HI(),A.api.setPlaybackRate(A.Vj),A.api.showControls(),A.wT&&A.api.pauseVideo(),A.J("enable_smart_skip_speedmaster_on_web")&&A.api.publish("speedmasterchanged",!1))};
|
|
iR6=function(A,L,B,f){B||(f?L.keyCode!==32||L.repeat||A.V||!A.U||g.Az(A.delay):Cl(A))};
|
|
mS=function(A){var L,B;var f=!!A.yj&&!((L=A.api.getVideoData())==null?0:L.isLivePlayback)&&!A.api.bQ()&&A.api.getPresentingPlayerType()!==2&&!g.x(A.api.getPlayerStateObject(),2)&&!((B=g.Hh(A.api))==null?0:B.Gy())&&!A.api.isEmbedsShortsMode()&&F48(A.api.WI());A.U!==f&&(A.U=f,A.U?A.N.subscribe("dragstart",A.qp,A):(A.N.unsubscribe("dragstart",A.qp,A),A.N.unsubscribe("dragmove",A.T,A),A.N.unsubscribe("dragend",A.D,A),Cl(A)))};
|
|
XYk=function(A){VC.call(this,A);var L=this;this.W=new Set;this.N={};this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"videodatachange",function(B){B==="newdata"&&(L.api.Jf("stationsEmbargo"),L.api.Jf("stationsMetadataUpdate"),L.N={},L.W.clear());B=L.api.getVideoData().Ym;var f=B.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");f&&$9e(L,f,"stationsEmbargo");(B=B.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&$9e(L,B,"stationsMetadataUpdate")});
|
|
this.events.Y(A,g.qR("stationsEmbargo"),function(B){L.api.Qe(!0);var f,K=(f=L.N[B.id])!=null?f:[];f=g.m(K);for(K=f.next();!K.done;K=f.next())if(K=K.value.embargo)L.api.hideControls(),L.api.O9("auth",2,J2(K.errorRenderer.reason),f$({embargoed:1,id:B.id,idx:B.W,start:B.start})),(K=K.onTrigger)&&L.api.Kr("innertubeCommand",K)});
|
|
this.events.Y(A,g.qR("stationsMetadataUpdate"),function(B){var f;B=(f=L.N[B.id])!=null?f:[];f=g.m(B);for(B=f.next();!B.done;B=f.next())(B=B.value.command)&&L.api.Kr("innertubeCommand",B)})};
|
|
$9e=function(A,L,B){L=g.m(L);for(var f=L.next();!f.done;f=L.next()){f=f.value;var K=void 0,V=Number((K=f.playbackRelativePosition)==null?void 0:K.utcTimeMs)/1E3,J=void 0;K=V+Number((J=f.duration)==null?void 0:J.seconds);J="stations:"+B+":"+V;A.W.has(J)||(A.W.add(J),f.onEnter&&(A.N[J]=f.onEnter),A.api.addUtcCueRange(J,V,K,B,!1))}};
|
|
iu=function(A,L,B){g.f8.call(this,L,A);this.N=B};
|
|
g.$8=function(A){je.call(this);var L=this;this.N=A;this.W={};this.listener=function(B){L.dispatchEvent(new iu(L,B.type,B))}};
|
|
EHk=function(A){var L=A.getVideoData(),B=A.pD(),f=B.Zg(),K=A.K(),V=A.EV(),J=V.fp*8/1024,R=V.uw/1024,Z=V.Cp,N=V.zd,F=V.fP,D=B.getCurrentTime().toFixed(2),I=zv(B.YJ(),",",3),d="";if(L.isDaiEnabled()){L.enableServerStitchedDai&&(d+=L.mA?"DS":"SS");d=L.aA()?d+"LIFA, ":d+"DAI, ";var w=V.Fi;w&&(d+=w)}Lm(L)&&!L.aA()&&(d+="LIFAE, ");iS(L)&&(d+="SABR, ");if(L.fetchType){switch(L.fetchType){case "onesie":w="o";break;case "gp":w="gp";break;default:w="gvi"}d+="vd:"+w+", "}(K=K.GZ)&&(d=K.N?d+"wa, ":d+"w, ");d+=
|
|
"s:"+F+" t:"+D+" b:"+I+" ";B.isSeeking()&&(d+="S");B.isPaused()&&(d+="P");B.isEnded()&&(d+="E");A.isOrchestrationLeader()&&(d+=" L");(B=V.F4)&&(d+=" l:"+B.toFixed());B=V.currentTime;F=L.iD;B&&B>F.start&&B<F.end&&(d+=" as");B=d;d=g.fg(bJ)("_start",void 0);F=[];D=g.m(["pl_i","vir","or_p","orfb","pbs"]);for(I=D.next();!I.done;I=D.next())I=I.value,(K=g.fg(bJ)(I,void 0))&&d&&(K-=d,F.push(I+":"+Math.round(K)));d=F.join(" ");F=g.J$();D=g.UU(A).zFF;I=L.V&&!L.V.N?"display:none":"";if((K=L.clientPlaybackNonce)&&
|
|
K.length==16){K+="AAAA";w=0;for(var r="",h=0;h<20;h++)if(w=(w<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(K.charAt(h)),h%5==4){for(var Q="",l=0;l<6;l++)Q="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(w&31)+Q,w>>=5;r+=Q}K=r.substr(0,4)+" "+r.substr(4,4)+" "+r.substr(8,4)+" "+(r.substr(12,4)+" "+r.substr(16,4))}else K="";J={video_id_and_cpn:String(L.videoId)+" / "+K,codecs:"",dims_and_frames:"",bandwidth_kbps:J.toFixed(0)+" Kbps",buffer_health_seconds:Z.toFixed(2)+" s",
|
|
date:""+(new Date).toString(),drm_style:N?"":"display:none",drm:N,debug_info:B,extra_debug_info:"",bandwidth_style:I,network_activity_style:I,network_activity_bytes:R.toFixed(0)+" KB",shader_info:D,shader_info_style:D?"":"display:none",playback_categories:""};R=f.clientWidth+"x"+f.clientHeight+(F>1?"*"+F.toFixed(2):"");Z="-";V.totalVideoFrames&&(Z=(V.droppedVideoFrames||0)+" dropped of "+V.totalVideoFrames);J.dims_and_frames=R+" / "+Z;A=A.getVolume();R=QU6(L);var C;if((C=L.U)==null?0:C.audio.W)C=
|
|
"VB";else{var O;C=((O=L.U)==null?0:O.audio.N)?"DRC":Math.round(A*R)+"%"}O=Math.round(A)+"% / "+C;C=L.EQ.toFixed(1);isFinite(Number(C))&&(O+=" (content loudness "+C+"dB)");J.volume=O;J.resolution=f.videoWidth+"x"+f.videoHeight;if(f=L.W){if(O=f.video)C=O.fps,C>1&&(J.resolution+="@"+C),(C=V.TY)&&C.video&&(J.resolution+=" / "+C.video.width+"x"+C.video.height,C.video.fps>1&&(J.resolution+="@"+C.video.fps)),J.codecs=ORE(f),!L.U||f.audio&&f.video?f.GO&&(J.codecs+=" / "+f.GO+"A"):J.codecs+=" / "+ORE(L.U),
|
|
O.N||O.primaries?(C=O.N||"unknown",C==="smpte2084"?C+=" (PQ)":C==="arib-std-b67"&&(C+=" (HLG)"),J.color=C+" / "+(O.primaries||"unknown"),J.color_style=""):J.color_style="display:none";if(f.debugInfo)for(J.fmt_debug_info="",f=g.m(f.debugInfo),O=f.next();!O.done;O=f.next())O=O.value,J.fmt_debug_info+=O.label+":"+O.text+" ";J.fmt_debug_info_style=J.fmt_debug_info&&J.fmt_debug_info.length>0?"":"display:none"}f=L.isLivePlayback;O=L.SD;J.live_mode_style=f||O?"":"display:none";J.live_latency_style=f?"":
|
|
"display:none";if(O)J.live_mode="Post-Live"+(ta(L)?" Manifestless":"");else if(f){O=V.xd;J.live_latency_secs=O.toFixed(2)+"s";f=ta(L)?"Manifestless, ":"";L.hd&&(f+="Windowed, ");C="Uncertain";if(O>=0&&O<120)if(L.latencyClass&&L.latencyClass!=="UNKNOWN")switch(L.latencyClass){case "NORMAL":C="Optimized for Normal Latency";break;case "LOW":C="Optimized for Low Latency";break;case "ULTRALOW":C="Optimized for Ultra Low Latency";break;default:C="Unknown Latency Setting"}else C=L.isLowLatencyLiveStream?
|
|
"Optimized for Low Latency":"Optimized for Smooth Streaming";f+=C;(O=V.sz)&&(f+=", seq "+O.sequence);J.live_mode=f}!V.isGapless||pr(L)&&V.qV||(J.playback_categories+="Gapless ");J.playback_categories_style=J.playback_categories?"":"display:none";J.bandwidth_samples=V.jp;J.network_activity_samples=V.jl;J.live_latency_samples=V.aR;J.buffer_health_samples=V.pJ;V=g.Jj(L);if(L.cotn||V)J.cotn_and_local_media=(L.cotn?L.cotn:"null")+" / "+V;J.cotn_and_local_media_style=J.cotn_and_local_media?"":"display:none";
|
|
Rh(L,"web_player_release_debug")?(J.release_name=S[5],J.release_style=""):J.release_style="display:none";J.debug_info&&d.length>0&&J.debug_info.length+d.length<=60?J.debug_info+=" "+d:J.extra_debug_info=d;J.extra_debug_info_style=J.extra_debug_info&&J.extra_debug_info.length>0?"":"display:none";return J};
|
|
ORE=function(A){var L=/codecs="([^"]*)"/.exec(A.mimeType);return L&&L[1]?L[1]+" ("+A.itag+")":A.itag};
|
|
X7=function(A,L,B,f,K){g.q.call(this,{Z:"div",j:"ytp-horizonchart"});this.T=L;this.sampleCount=B;this.U=f;this.D=K;this.index=0;this.heightPx=-1;this.V=this.W=null;this.N=Math.round(A/B);this.element.style.width=this.N*this.sampleCount+"px";this.element.style.height=this.T+"em"};
|
|
Oq=function(A,L){if(A.heightPx===-1){var B=null;try{B=g.TO("CANVAS"),A.W=B.getContext("2d")}catch(R){}if(A.W){var f=A.N*A.sampleCount;A.V=B;A.V.width=f;A.V.style.width=f+"px";A.element.appendChild(A.V)}else for(A.sampleCount=Math.floor(A.sampleCount/4),A.N*=4,B=0;B<A.sampleCount;B++)f=g.TO("SPAN"),f.style.width=A.N+"px",f.style.left=A.N*B+"px",A.element.appendChild(f)}B=A.element.clientHeight||24;B!==A.heightPx&&(A.heightPx=B,A.W&&(B=(window.devicePixelRatio||1)>1?2:1,A.V.height=A.heightPx*B,A.V.style.height=
|
|
A.heightPx+"px",A.W.scale(1,B)));L=g.m(L);for(f=L.next();!f.done;f=L.next()){B=A;var K=A.index,V=f.value;for(f=0;f+2<B.U.length&&B.U[f+1]<V;)f++;V=Math.min(1,(V-B.U[f])/(B.U[f+1]-B.U[f]));if(B.W)B.W.fillStyle=B.D[f],B.W.fillRect(K*B.N,0,B.N,B.heightPx),B.W.fillStyle=B.D[f+1],B.W.fillRect(K*B.N,B.heightPx*(1-V),B.N,B.heightPx);else{K=B.element.children[K];var J=window.devicePixelRatio||1;V=Math.min(B.heightPx,Math.round(B.heightPx*V*J)/J)||0;K.style.height=V+"px";K.style.backgroundColor=B.D[f+1];K.style.borderTop=
|
|
"solid "+(B.heightPx-V)+"px "+B.D[f]}A.index=(A.index+1)%A.sampleCount}L=A.index;A.W?A.W.clearRect(L*A.N,0,A.N,A.heightPx):(A=A.element.children[L],A.style.height="0px",A.style.borderTop="")};
|
|
Eq=function(A){var L=null;L={Z:"button",Rr:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],C:{title:"close"},Ir:"[X]"};g.q.call(this,{Z:"div",Rr:["html5-video-info-panel","ytp-sfn"],B:[L,{Z:"div",Rr:["html5-video-info-panel-content","ytp-sfn-content"],B:[{Z:"div",B:[{Z:"div",Ir:"Video ID / sCPN"},{Z:"span",Ir:"{{video_id_and_cpn}}",j:"ytp-sfn-cpn"}]},{Z:"div",B:[{Z:"div",Ir:"Viewport / Frames"},{Z:"span",Ir:"{{dims_and_frames}}"}]},{Z:"div",B:[{Z:"div",Ir:"Current / Optimal Res"},{Z:"span",
|
|
Ir:"{{resolution}}"}]},{Z:"div",B:[{Z:"div",Ir:"Volume / Normalized"},{Z:"span",Ir:"{{volume}}"}]},{Z:"div",B:[{Z:"div",Ir:"Codecs"},{Z:"span",Ir:"{{codecs}}"}]},{Z:"div",C:{style:"{{shader_info_style}}"},B:[{Z:"div",Ir:"Shader Info"},{Z:"span",Ir:"{{shader_info}}"}]},{Z:"div",C:{style:"{{color_style}}"},B:[{Z:"div",Ir:"Color"},{Z:"span",Ir:"{{color}}"}]},{Z:"div",C:{style:"{{drm_style}}"},B:[{Z:"div",Ir:"Protected"},{Z:"span",Ir:"{{drm}}"}]},{Z:"div",C:{style:"{{bandwidth_style}}"},B:[{Z:"div",Ir:"Connection Speed"},
|
|
{Z:"span",B:[{Z:"span",Ir:"{{bandwidth_chart}}"},{Z:"span",Ir:"{{bandwidth_kbps}}"}]}]},{Z:"div",C:{style:"{{network_activity_style}}"},B:[{Z:"div",Ir:"Network Activity"},{Z:"span",B:[{Z:"span",Ir:"{{network_activity_chart}}"},{Z:"span",Ir:"{{network_activity_bytes}}"}]}]},{Z:"div",B:[{Z:"div",Ir:"Buffer Health"},{Z:"span",B:[{Z:"span",Ir:"{{buffer_health_chart}}"},{Z:"span",Ir:"{{buffer_health_seconds}}"}]}]},{Z:"div",C:{style:"{{live_latency_style}}"},B:[{Z:"div",Ir:"Live Latency"},{Z:"span",B:[{Z:"span",
|
|
Ir:"{{live_latency_chart}}"},{Z:"span",Ir:"{{live_latency_secs}}"}]}]},{Z:"div",C:{style:"{{live_mode_style}}"},B:[{Z:"div",Ir:"Live Mode"},{Z:"span",Ir:"{{live_mode}}"}]},{Z:"div",C:{style:"{{playback_categories_style}}"},B:[{Z:"div",Ir:"Playback Categories"},{Z:"span",Ir:"{{playback_categories}}"}]},{Z:"div",C:{style:"{{fmt_debug_info_style}}"},B:[{Z:"div",Ir:"Format Debug Info"},{Z:"span",Ir:"{{fmt_debug_info}}"}]},{Z:"div",B:[{Z:"div",Ir:"Mystery Text"},{Z:"span",Ir:"{{debug_info}}"}]},{Z:"div",
|
|
C:{style:"{{extra_debug_info_style}}"},B:[{Z:"div",Ir:""},{Z:"span",B:[{Z:"span",Ir:"{{extra_debug_info}}"}]}]},{Z:"div",B:[{Z:"div",Ir:"Date"},{Z:"span",Ir:"{{date}}"}]},{Z:"div",C:{style:"{{cotn_and_local_media_style}}"},B:[{Z:"div",Ir:"COTN / Local Media"},{Z:"span",Ir:"{{cotn_and_local_media}}"}]},{Z:"div",C:{style:"{{release_style}}"},B:[{Z:"div",Ir:"Player Release"},{Z:"span",Ir:"{{release_name}}"}]}]}]});this.rT=A;this.position=0;this.D=!0;L?this.Y(this.m4("ytp-sfn-close"),"click",this.hide):
|
|
this.Y(this.element,"click",this.hide);A=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];L="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var B=A.map(function(f){return f/4});
|
|
this.X={};this.N=new X7(300,1,150,A,L);g.W(this,this.N);this.updateValue("bandwidth_chart",this.N);this.V=new X7(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.W(this,this.V);this.updateValue("live_latency_chart",this.V);this.W=new X7(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.W(this,this.W);this.updateValue("buffer_health_chart",this.W);this.T=new X7(300,1,150,B,L);g.W(this,this.T);this.updateValue("network_activity_chart",
|
|
this.T);this.delay=new g.aa(this.zL,500,this);g.W(this,this.delay);this.U=new g.aa(this.G,2E4,this);g.W(this,this.U)};
|
|
YPQ=function(A){VC.call(this,A);var L=this;wh(A,"getStatsForNerds",function(){return EHk(L.api)});
|
|
pm(A,"showVideoInfo",function(){ct6(L,!0)});
|
|
pm(A,"hideVideoInfo",function(){ct6(L,!1)});
|
|
pm(A,"isVideoInfoVisible",function(){return Mvv(L)})};
|
|
ct6=function(A,L){var B=Mvv(A);A.rf||(A.rf=new Eq(A.api),g.W(A,A.rf),g.Wh(A.api,A.rf.element,4));A.rf.xP(L);var f=EU(A.api.SI());f&&f.loaded&&B!==L&&f.CM();L&&A.api.Hn("sfn",{},!0)};
|
|
Mvv=function(A){var L;return!((L=A.rf)==null||!L.bC)};
|
|
ce=function(){g.Y.call(this);this.W=null;this.startTime=this.duration=0;this.delay=new g.uN(this.N,null,this);g.W(this,this.delay)};
|
|
U9v=function(A,L){if(L.Z==="path")return L.C.d;if(L.B)for(var B=0;B<L.B.length;B++){var f=L.B[B];if(f&&typeof f!=="string"&&(f=U9v(A,f)))return f}};
|
|
PGL=function(A,L,B){B=U9v(A,B);var f=L.getElementsByTagName("path")[0],K=f.getAttribute("d");if(f.getAttribute("id")){var V=Ru();L=L.getElementsByTagName("use");for(var J=0;J<L.length;J++)L[J].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+V);f.setAttribute("id",V)}var R=WIQ(K),Z=WIQ(B);vH8(A,function(N){f.setAttribute("d",qPC(R,Z,N))},200)};
|
|
vH8=function(A,L,B){A.W=L;A.startTime=(0,g.bc)();A.duration=B;A.N()};
|
|
WIQ=function(A){var L=[];A=A.match(x9e);for(var B=0;B<A.length;B++){var f=A[B]===" "?NaN:Number(A[B]);L.push(isNaN(f)?A[B]:f)}return L};
|
|
qPC=function(A,L,B){for(var f="",K=0;K<A.length;K++){var V=A[K];f=typeof V==="number"?f+(V+(L[K]-V)*B):f+V}return f};
|
|
MQ=function(A){g.q.call(this,{Z:"button",Rr:["ytp-size-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"t","data-priority":"9","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ir:"{{icon}}"});this.api=A;this.EN=null;this.transition=new ce;g.W(this,this.transition);this.Y(A,"sizestylechange",this.zL);this.Y(A,"fullscreentoggled",this.zL);this.Y(A,"presentingplayerstatechange",this.zL);A.createClientVe(this.element,
|
|
this,139116);this.zL();this.listen("click",this.onClick);Cm(A,this.element,this)};
|
|
e_D=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"standardControlsInitialized",function(){L.button=new MQ(A);g.W(L,L.button);A.fJ(L.button,"RIGHT_CONTROLS_RIGHT")})};
|
|
a5y=function(A){VC.call(this,A);var L=this,B={};this.ZM=(B.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},B.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(f){return nHL(L,f)},B.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(f){return nHL(L,f)},B.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return L.api.K().experiments.GL("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?L.D&&L.G:L.D&&L.X},B.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER=
|
|
function(){return L.Vj},B);
|
|
this.Vj=this.G=this.X=this.D=!1;this.U={};this.events=new g.dN(A);g.W(this,this.events);this.T=new g.tk(this.api.Pn().Q8);g.W(this,this.T);this.api.J("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.Am(this.api.K().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(B=g.Am(this.api.K().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.Wn=new g.aa(this.va,B,this),g.W(this,this.Wn));this.events.Y(A,"videodatachange",function(f,K){if(f!=="dataupdated"||
|
|
K.videoId!==L.videoId||!SP(L.timelyActions,z_w(K)))L.onVideoDataChange(K)});
|
|
this.events.Y(A,"presentingplayerstatechange",function(f){L.qP(f)});
|
|
A.J("enable_smart_skip_player_controls_shown_on_web")&&(this.events.Y(A,"onShowControls",function(){L.D=!0;L.va()}),this.events.Y(A,"onHideControls",function(){L.D=!1}),this.T.subscribe("hoverstart",function(){L.X=!0;
|
|
L.va()},this),this.T.subscribe("hoverend",function(){L.X=!1},this),A.J("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.Y(A,"progressBarHoverStart",function(){L.G=!0;
|
|
if(L.api.J("enable_smart_skip_web_player_bar_hover_length_threshold")){var f;(f=L.Wn)==null||g.Az(f)}else L.va()}),this.events.Y(A,"progressBarHoverEnd",function(){L.G=!1;
|
|
if(L.api.J("enable_smart_skip_web_player_bar_hover_length_threshold")){var f;(f=L.Wn)==null||f.stop()}})));
|
|
A.J("enable_smart_skip_speedmaster_on_web")&&this.events.Y(A,"speedmasterchanged",function(f){(L.Vj=f)&&L.va()});
|
|
this.events.Y(A,g.qR("timelyAction"),function(f){L.onCueRangeEnter(f.getId())});
|
|
this.events.Y(A,g.PR("timelyAction"),function(f){L.onCueRangeExit(f.getId())});
|
|
A.J("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.Y(A,"keyboardserviceglobalkeydown",function(f,K){if((Hj?f.altKey:f.ctrlKey)&&f.keyCode===39&&L.yj&&L.N){var V;f=g.y((V=Y8(L,L.N))==null?void 0:V.rendererContext,uzL);if(V=EF(f==null?void 0:f.onTap))L.api.Kr("innertubeCommand",V),K&&(K.r7=!0),K=DD(),(V=Yge(K))&&U1C(K,V)}},this);
|
|
this.W=new g.q({Z:"div",Rr:["ytp-player-content","ytp-timely-actions-content"]});this.W.hide();wh(A,"insertTimelyActionUi",function(f){L.W.element.children.length>0&&g.Ql(L.W.element);f.classList.add("ytp-timely-actions-overlay");L.W.element.appendChild(f)});
|
|
g.W(this,this.W);this.J("web_player_overlay_positioned_layout")?this.events.Y(A,"basechromeinitialized",function(){L.api.Tt(L.W.element,4,!0);L.W.element.setAttribute("data-overlay-order","10")}):g.Wh(this.api,this.W.element,4)};
|
|
AkQ=function(A){A.timelyActions&&(A.U=A.timelyActions.reduce(function(L,B){if(B.cueRangeId===void 0)return L;L[B.cueRangeId]=0;return L},{}))};
|
|
Y8=function(A,L){if(A.timelyActions){A=g.m(A.timelyActions);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.cueRangeId===L)return B}};
|
|
LSS=function(A,L){if((A=Y8(A,L))&&A.onCueRangeExit)return EF(A.onCueRangeExit)};
|
|
nHL=function(A,L){return A.V===void 0?!1:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(L.seekLengthMilliseconds)===5E3?A.V===72:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(L.seekLengthMilliseconds)===1E4?A.V===74:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(L.seekLengthMilliseconds)===5E3?A.V===71:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(L.seekLengthMilliseconds)===1E4?A.V===73:!1};
|
|
o8L=function(A,L){var B=Number(L==null?void 0:L.maxVisibleDurationMilliseconds);B&&(Uq(A),A.qp=setTimeout(function(){if(A.N!==void 0&&(L==null?void 0:L.cueRangeId)===A.N){A.yj=!1;var f=LSS(A,A.N);f&&A.api.Kr("innertubeCommand",f)}},B))};
|
|
Uq=function(A){A.qp&&clearTimeout(A.qp);A.qp=void 0;A.yj=!1};
|
|
z_w=function(A){if(A=A.getWatchNextResponse()){var L,B;A=(L=A.playerOverlays)==null?void 0:(B=L.playerOverlayRenderer)==null?void 0:B.timelyActionsOverlayViewModel;L=g.y(A,BAE);if(L!=null&&L.timelyActions)return L==null?void 0:L.timelyActions.map(function(f){return g.y(f,fWQ)}).filter(function(f){return!!f})}};
|
|
KSS=function(A){VC.call(this,A);var L=this;pm(this.api,"getPlaybackRate",function(){return L.api.getPlaybackRate()});
|
|
pm(this.api,"setPlaybackRate",function(B){typeof B==="number"&&L.api.setPlaybackRate(B)})};
|
|
We=function(A,L,B,f){Dq.call(this,"Amplifica la voce",g.gC.oi);this.S=A;this.V=L;this.W=B;this.getVoiceBoostState=f;this.N=!1;this.Wz=this.S.J("html5_enable_new_audio_settings_menu")?A.gB().Wb:A.gB();this.Y(A,"onFilterAudioFeatures",this.f8);this.setIcon({Z:"svg",C:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]});
|
|
this.subscribe("select",this.U,this);this.f8()};
|
|
ve=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);var B=this.api.J("html5_enable_voice_boost");B&&this.events.Y(A,"settingsMenuInitialized",function(){Vs0(L)});
|
|
wh(this.api,"getVoiceBoostUserPreference",function(){return B?L.getVoiceBoostUserPreference():0});
|
|
wh(this.api,"setVoiceBoostUserPreference",function(K){B&&L.setVoiceBoostUserPreference(K)});
|
|
wh(this.api,"getVoiceBoostState",function(){return B?L.getVoiceBoostState():1});
|
|
var f;this.N=(f=j6L())!=null?f:0;this.updateEnvironmentData()};
|
|
Vs0=function(A){A.menuItem||(A.menuItem=new We(A.api,function(L){A.setVoiceBoostUserPreference(L)},function(){return A.getVoiceBoostUserPreference()},function(){return A.getVoiceBoostState()}),g.W(A,A.menuItem))};
|
|
Jk0=function(A){A=A.MQ();if(!A)return!1;A=g.RM(A).exp||"";return A.includes("xpv")||A.includes("xpe")};
|
|
SqQ=function(A){A=g.m(g.qQ(A,!0));for(var L=A.next();!L.done;L=A.next())if(Jk0(L.value))return!0;return!1};
|
|
R16=function(A,L){A=g.m(g.qQ(A,!0));for(var B=A.next();!B.done;B=A.next())if(B=B.value,Jk0(B)){var f={potc:"1",pot:L};B.url&&(B.url=Zp(B.url,f))}};
|
|
Zl1=function(A){return g.c(function(L){if(L.N==1)return g.S5(L,2),g.X(L,A,4);if(L.N!=2)return g.ZR(L,0);g.NX(L);g.VK(L)})};
|
|
Pe=function(A){VC.call(this,A);var L=this;this.useLivingRoomPoToken=!1;this.D=new g.IQ;this.N=!1;this.Rv=null;this.X=!1;this.U=null;this.T=!1;var B=A.K().getWebPlayerContextConfig();this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"spsumpreject",function(K,V,J){L.T=V;K&&L.X&&!L.U&&(L.J("html5_generate_content_po_token")&&J?L.HG(J):L.J("html5_generate_session_po_token")&&NA7(L));L.U||L.api.Hn("stp",{s:+L.X,b:+L.T})});
|
|
this.events.Y(A,"poTokenVideoBindingChange",function(K){L.HG(K)});
|
|
if(this.J("html5_web_po_on_demand_init"))var f=this.events.Y(A,"videodatachange",function(K,V){V.Es&&!L.X&&(FS7(L),L.events.J$(f))});
|
|
this.useLivingRoomPoToken=!(B==null||!B.useLivingRoomPoToken);A.addEventListener("csiinitialized",function(){L.Rv=A.zH();L.J("html5_web_po_on_demand_init")?L.V=n16():FS7(L)});
|
|
A.addEventListener("trackListLoaded",this.bW.bind(this));A.qC(this)};
|
|
FS7=function(A){var L=(A.J("html5_generate_session_po_token")||A.J("html5_generate_content_po_token"))&&!A.useLivingRoomPoToken;try{if(A.J("html5_use_shared_owl_instance"))DQQ(A);else if(L){A.Rv.Nq("pot_isc");var B=g.Am(A.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");B?(dQ6(A),g.gW(function(){x8(A)},B)):A.J("html5_webpo_idle_priority_job")?(dQ6(A),g.AR(g.ol(),function(){x8(A)})):x8(A)}}catch(f){f instanceof Error&&g.CE(f)}};
|
|
IWS=function(A){var L=sR(A.experiments,"html5_web_po_request_key");return L?L:g.wY(A)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
|
|
weE=function(A){var L=new TVk,B={},f=(B["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",B);return new GX(L,A,function(){return f})};
|
|
peE=function(A){return new rs(A)};
|
|
es=function(A,L){A.J("html5_webpo_bge_ctmp")&&A.api.Hn(L,{hwpo:!!A.W,hwpor:A.N})};
|
|
DQQ=function(A){var L,B;g.c(function(f){if(f.N==1)return es(A,"swpo_i"),dQ6(A),nl(A),g.X(f,Za(),2);if(f.N!=3)return L=f.W,es(A,"swpo_co"),g.X(f,KVe(L),3);B=f.W;A.J("html5_web_po_token_disable_caching")||B.Ax(150);A.W=B;es(A,"swpo_cc");Zl1(B.Vm()).then(function(){A.N=!0;A.D.resolve();es(A,"swpo_re")});
|
|
g.gW(function(){x8(A);es(A,"swpo_si")},0);
|
|
g.VK(f)})};
|
|
jmk=function(A){var L=A.api.K(),B=IWS(L);B=weE(B);var f=B.Ix.bind(B);B.Ix=function(R){var Z;return g.c(function(N){if(N.N==1)return g.X(N,f(R),2);Z=N.W;A.api.Hn("itr",{});return N.return(Z)})};
|
|
try{var K=peE({Ni:B,S7:{maxAttempts:5},iz:{NP:"CLEn",disable:L.experiments.GL("html5_web_po_disable_remote_logging"),eB:SJ6(L.experiments),CL:function(R){var Z=yky.get(R);Z||(Z=new xED(R),Z=new g.UE(Z),yky.set(R,Z));return Z},
|
|
zTj:A.J("wpo_dis_lfdms")?0:1E3},r$1:g.CE});var V=new YM({Bo:K,Ni:B,onError:g.CE});Zl1(V.Vm()).then(function(){A.N=!0;A.D.resolve()});
|
|
A.J("html5_web_po_token_disable_caching")||V.Ax(150);g.W(A,K);g.W(A,V);A.W=V}catch(R){g.CE(R);var J;(J=K)==null||J.dispose()}};
|
|
x8=function(A){var L=A.api.K();A.Rv.Nq("pot_ist");A.W||jmk(A);A.J("html5_bandaid_attach_content_po_token")||(A.J("html5_generate_session_po_token")&&(nl(A),NA7(A)),L=g.Am(L.experiments,"html5_session_po_token_interval_time_ms")||0,L>0&&(A.G=g.Gc(function(){nl(A)},L)),A.X=!0)};
|
|
nl=function(A){var L,B,f,K;g.c(function(V){if(!A.J("html5_generate_session_po_token")||A.useLivingRoomPoToken)return V.return();L=A.api.K();B=g.A_("EOM_VISITOR_DATA")||g.A_("VISITOR_DATA");f=L.I_?L.datasyncId:B;K=sR(L.experiments,"html5_mock_content_binding_for_session_token")||L.livingRoomPoTokenId||f;L.mC=zt(A,K);g.VK(V)})};
|
|
zt=function(A,L){if(!A.W){if(A.V)try{return A.V(L)}catch(V){g.CE(V)}return""}try{A.Rv.Nq(A.N?"pot_cms":"pot_csms");var B={Ra:!0,Sl:!0,WL:L};A.J("html5_web_po_token_disable_caching")||(B.Ct={yT:L,m0:!0,dC:!0});var f=A.W.Mu(B);A.Rv.Nq(A.N?"pot_cmf":"pot_csmf");if(A.N){var K;(K=A.U)==null||K.resolve();A.U=null;A.T&&(A.T=!1,A.api.app.e4().Qt(!1))}return f}catch(V){return g.CE(V),""}};
|
|
NA7=function(A){A.W&&(A.U=new yV,A.D.promise.then(function(){A.Rv.Nq("pot_if");nl(A)}))};
|
|
dQ6=function(A){A.V||(A.V=n16())};
|
|
uu=function(A){g.q.call(this,{Z:"div",Rr:["ytp-more-videos-button","ytp-button"],C:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},B:[{Z:"div",j:"ytp-more-videos-button-thumbnail"},{Z:"span",j:"ytp-more-videos-button-title",Ir:"{{title}}"}]});this.S=A;this.W=this.m4("ytp-more-videos-button-thumbnail");this.V=this.m4("ytp-more-videos-button-title");this.N=new g.dN(this);g.W(this,this.N);this.N.Y(this.S,"videodatachange",this.Mx);this.Mx();this.listen("click",this.onClick);g8E(this,
|
|
0);this.hide()};
|
|
g8E=function(A,L){switch(L){case 2:L="Nascondi i video";var B="Hide recommendations grid";break;default:L="Altri video",B="Show recommendations grid"}A.updateValue("title",L);A.element.ariaLabel=B;A.V.textContent=L};
|
|
g.am=function(A,L,B){g.D1(A.element,"ytp-suggestion-set",!!L.videoId);var f=L.playlistId;B=L.g1(B?B:"mqdefault.jpg");var K=null,V=null;L instanceof cN&&(L.lengthText?(K=L.lengthText||null,V=L.CZ||null):L.lengthSeconds&&(K=g.hG(L.lengthSeconds),V=g.hG(L.lengthSeconds,!0)));var J=!!f;f=J&&Oe(f).type==="RD";var R=L instanceof cN?L.isLivePlayback:null,Z=L instanceof cN?L.isUpcoming:null,N=L.author,F=L.shortViewCount,D=L.publishedTimeText,I=[],d=[];N&&I.push(N);F&&(I.push(F),d.push(F));D&&d.push(D);B=
|
|
{title:L.title,author:N,author_and_views:I.join(" \u2022 "),aria_label:L.ariaLabel||g.B$("Guarda $TITLE",{TITLE:L.title}),duration:K,timestamp:V,url:L.Ej(),is_live:R,is_upcoming:Z,is_list:J,is_mix:f,background:B?"background-image: url("+B+")":"",views_and_publish_time:d.join(" \u2022 "),autoplayAlternativeHeader:L.Eh};L instanceof Ee&&(B.playlist_length=L.playlistLength);A.update(B)};
|
|
g.Aq=function(A){var L=A.K(),B=g.Z2||g.ER?{style:"will-change: opacity"}:void 0,f=L.U,K=["ytp-modern-videowall-still"];L.W&&K.push("ytp-videowall-show-text");g.q.call(this,{Z:"a",Rr:K,C:{href:"{{url}}",target:f?L.yj:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},B:[{Z:"div",j:"ytp-modern-videowall-still-image",C:{style:"{{background}}"},B:[{Z:"span",j:"ytp-modern-videowall-still-info-duration",Ir:"{{duration}}"}]},{Z:"span",j:"ytp-modern-videowall-still-info",
|
|
C:{"aria-hidden":"true"},B:[{Z:"span",j:"ytp-modern-videowall-still-info-bg",B:[{Z:"span",j:"ytp-modern-videowall-still-info-content",C:B,B:[{Z:"span",j:"ytp-modern-videowall-still-info-title",Ir:"{{title}}"},{Z:"span",j:"ytp-modern-videowall-still-info-author",Ir:"{{author}}"},{Z:"span",j:"ytp-modern-videowall-still-view-count-and-date-info",Ir:"{{views_and_publish_time}}"},{Z:"span",j:"ytp-modern-videowall-still-info-live",Ir:"Dal vivo"}]}]}]},{Z:"span",Rr:["ytp-modern-videowall-still-listlabel-regular",
|
|
"ytp-modern-videowall-still-listlabel"],C:{"aria-hidden":"true"},B:[{Z:"span",j:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{Z:"span",j:"ytp-modern-videowall-still-listlabel-length",B:[" (",{Z:"span",Ir:"{{playlist_length}}"},")"]}]},{Z:"span",Rr:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],C:{"aria-hidden":"true"},B:[{Z:"span",j:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{Z:"span",j:"ytp-modern-videowall-still-listlabel-length",Ir:" (50+)"}]}]});
|
|
this.suggestion=null;this.W=f;this.api=A;this.N=new g.dN(this);g.W(this,this.N);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.N.Y(A,"videodatachange",this.onVideoDataChange);A.createServerVe(this.element,this);this.onVideoDataChange()};
|
|
g.GtC=function(A,L){if(A.suggestion!==L){A.suggestion=L;var B=A.api.K(),f="hqdefault.jpg";L.g1("sddefault.jpg")&&(f="sddefault.jpg");g.am(A,L,f);g.MM(B)&&!A.api.J("web_player_log_click_before_generating_ve_conversion_params")&&(B=L.Ej(),f={},g.jg(A.api,"addEmbedsConversionTrackingParams",[f]),B=g.ip(B,f),A.updateValue("url",B));(L=(L=L.sessionData)&&L.itct)&&A.api.setTrackingParams(A.element,L)}};
|
|
rke=function(A,L){var B=A.J("web_player_use_more_videos_button");g.q.call(this,{Z:"div",Rr:["ytp-fullscreen-grid"],B:[{Z:"div",j:"ytp-fullscreen-grid-hover-overlay",C:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{Z:"div",j:"ytp-fullscreen-grid-buttons-container",B:B?[]:[{Z:"button",Rr:["ytp-fullscreen-grid-expand-button","ytp-button"],C:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}",
|
|
"data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},B:["{{icon}}"]}]},{Z:"div",j:"ytp-fullscreen-grid-main-content",B:[{Z:"div",j:"ytp-fullscreen-grid-stills-container"}]}]});this.player=A;this.stills=[];this.videoData=null;this.currentState=0;this.T=B;this.qp=this.player.J("web_player_use_external_grid_component");(this.ZM=this.player.J("web_player_enable_horizontal_endscreen_shelf"))&&g.R1(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf");
|
|
this.U=this.m4("ytp-fullscreen-grid-main-content");this.Wn=this.m4("ytp-fullscreen-grid-stills-container");this.G=this.m4("ytp-fullscreen-grid-buttons-container");this.T&&(this.D=new uu(this.player),this.G.appendChild(this.D.element),g.W(this,this.D),this.Y(this.D.element,"click",this.US));this.qp&&(this.Wn.style.display="none");this.X=new g.dN(this);g.W(this,this.X);this.Vj=L;if(this.U&&this.Wn){if(A=this.m4("ytp-fullscreen-grid-hover-overlay"))this.Y(A,"click",this.US),Cm(this.player,A,this);!this.T&&
|
|
(A=this.m4("ytp-fullscreen-grid-expand-button"))&&(this.Y(A,"click",this.US),Cm(this.player,A,this));if(A=this.player.getVideoData(1))this.videoData=A;this.player.createClientVe(this.U,this,223051);this.X.Y(this.player,"videodatachange",this.onVideoDataChange)}};
|
|
smL=function(A,L){var B="",f=g.iz(A.player,"Altri video","v");L===2?B="Nascondi i video":L===1&&(B="Altri video");A.element.setAttribute("title",f);A.element.setAttribute("data-title-no-tooltip",B);A.element.setAttribute("aria-label",B);if(L=A.m4("ytp-fullscreen-grid-hover-overlay"))L.setAttribute("title",f),L.setAttribute("data-title-no-tooltip",B),L.setAttribute("aria-label",B);!A.T&&(L=A.m4("ytp-fullscreen-grid-expand-button"))&&(L.setAttribute("title",f),L.setAttribute("data-title-no-tooltip",
|
|
B),L.setAttribute("aria-label",B));A.player.qq()};
|
|
h1L=function(A){VC.call(this,A);var L=this;this.T=this.N=this.V=0;this.G=null;this.X=this.D=0;this.isEnded=!1;this.Wn=null;var B=new g.dN(A);g.W(this,B);this.Vj=g.Am(this.api.K().experiments,"web_player_default_peeking_px");this.JF=this.api.J("delhi_modern_player_enable_pause_peeking");this.S4=g.Am(this.api.K().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.Ys=this.api.J("web_player_imax_theater_mode");this.U=this.api.J("web_player_enable_fullscreen_grid_components");this.wT=this.api.J("web_player_enable_more_videos_button");
|
|
this.ZM=this.api.J("web_player_use_external_grid_component");g.R1(this.api.getRootNode(),"ytp-grid-scrollable");B.Y(A,"fullscreentoggled",function(){Lj(L)});
|
|
B.Y(A,"videodatachange",function(){if(L.U){var f=L.api.getVideoData(1);L.videoData!==f&&L.V===2&&(g.NH(L.api.getRootNode(),"ytp-grid-scrolling"),o_(L,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));L.videoData=f}},this);
|
|
B.Y(A,"sizestylechange",function(){L.U&&Lj(L)});
|
|
wh(this.api,"setFullscreenQuickActions",function(f){L.setFullscreenQuickActions(f)});
|
|
wh(this.api,"setPlayerOverlayVideoDetailsRenderer",function(f){L.setPlayerOverlayVideoDetailsRenderer(f)});
|
|
this.ZM&&wh(this.api,"setFullscreenGrid",function(f){L.setFullscreenGrid(f)});
|
|
wh(this.api,"setCommentsButton",function(f){L.setCommentsButton(f)});
|
|
wh(this.api,"setDescriptionButton",function(f){L.setDescriptionButton(f)});
|
|
this.U&&Hl0(this,B,A)};
|
|
Hl0=function(A,L,B){L.Y(B,"keyboardserviceglobalkeydown",function(f,K){A.U&&f.keyCode===86&&!f.repeat&&A.V!==0&&(K&&(K.u$=!0),A.LU("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))});
|
|
L.Y(A.api.getRootNode(),"wheel",function(f){if(!A.Wn){var K;if(A.U&&(K=A.W)!=null&&K.element&&!g.x(A.api.getPlayerStateObject(),2)&&A.V!==0&&BB(A))if(g.R1(A.api.getRootNode(),"ytp-grid-scrolling"),A.D===0&&(A.D=window.innerHeight),A.V===1)A.D!==0&&(A.N+=f.deltaY/A.D,A.N=g.B4(A.N,0,.7),fj(A),bl6(A,A.X/A.D+A.N>=.7,2));else if(A.V===2){K=f.deltaY<0;var V,J,R=((J=(V=A.W)==null?void 0:V.U)==null?void 0:J.scrollTop)===0;V=A.N!==0;K&&R||V&&!K?A.D!==0&&(A.N=Math.max(0,A.N-f.deltaY/A.D),fj(A),bl6(A,A.X/A.D+
|
|
Math.abs(A.N)>=.7,1)):A.N!==0&&(A.N=0,fj(A))}}},A,!0);
|
|
L.Y(B,"standardControlsInitialized",function(){if(!A.W){A.W=new rke(A.api,A.yFn.bind(A));A.wT&&(A.yj=new uu(A.api),g.W(A,A.yj),A.yj.element.setAttribute("data-overlay-order","12"),A.api.Tt(A.yj.element,4),A.yj.listen("click",A.LU,A));g.W(A,A.W);var f=A.api.getRootNode().querySelector(".ytp-chrome-bottom");f&&f.parentNode&&f.parentNode.insertBefore(A.W.element,f.nextSibling);tsQ(A)}});
|
|
L.Y(B,"presentingplayerstatechange",function(){Kj(A)});
|
|
L.Y(B,"autonavvisibility",function(){Kj(A)});
|
|
A.api.WI().subscribe("visibilitystatechange",function(){Kj(A)});
|
|
ktE(A,A.V)};
|
|
bl6=function(A,L,B){A.G&&clearTimeout(A.G);A.N===0&&g.NH(A.api.getRootNode(),"ytp-grid-scrolling");L?TAS(A,B):A.N<.1&&(A.G=window.setTimeout(function(){TAS(A)},1E3))};
|
|
TAS=function(A,L){A.G&&(clearTimeout(A.G),A.G=null);A.D=0;A.U&&A.V!==0&&(L?o_(A,L):Math.abs(A.N)>=.15&&A.LU("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),A.N=0,fj(A),g.NH(A.api.getRootNode(),"ytp-grid-scrolling"))};
|
|
BB=function(A){return A.api.isFullscreen()||A.Ys&&A.api.EN()};
|
|
Lj=function(A){var L=BB(A);g.D1(A.api.getRootNode(),"ytp-full-bleed-player",L);A.qp&&g.y9(A.qp,L);A.playerOverlayVideoDetailsRenderer&&g.y9(A.playerOverlayVideoDetailsRenderer,L);A.U&&Kj(A)};
|
|
Kj=function(A){if(A.U)if(g.NH(A.api.getRootNode(),"ytp-grid-scrolling"),A.api.getPresentingPlayerType()===2||A.api.bQ()||A.api.isMinimized())o_(A,0);else{var L=g.x(A.api.getPlayerStateObject(),2);if(L)o_(A,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(A.isEnded&&!L){var B=BB(A)?1:0;A.isEnded=L;o_(A,B)}else BB(A)?A.V!==2&&o_(A,1):o_(A,0);A.isEnded=L}};
|
|
o_=function(A,L,B){A.V=L;var f;(f=A.W)==null||f.Y6(L,B);var K;(K=A.yj)==null||K.Y6(L);A.N=0;fj(A);ktE(A,L)};
|
|
ktE=function(A,L){var B=A.api.getRootNode();g.D1(B,"ytp-fullscreen-grid-peeking",L===1);g.D1(B,"ytp-fullscreen-grid-active",L===2);L===1&&tsQ(A)};
|
|
tsQ=function(A){var L=A.api.getRootNode();if(g.x(A.api.getPlayerStateObject(),256)||g.x(A.api.getPlayerStateObject(),32)||g.x(A.api.getPlayerStateObject(),16))var B=A.X;else if(A.JF&&A.api.getPlayerStateObject().isPaused()){var f;B=(((f=A.W)==null?void 0:f.element.clientWidth)||0)*.5625/3*A.S4||A.Vj}else B=A.Vj;A.X=B;L.style.setProperty("--ytp-grid-peek-height",A.X+"px");g.D1(L,"ytp-disable-bottom-gradient",A.X<=12&&A.T===0)};
|
|
fj=function(A){A.N===0&&A.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var L=A.N-A.T,B=L;A.N!==0&&(B=g.B4(L,-.01,.01));A.T+=B;A.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+A.T.toString());A.T!==A.N&&fj(A)})};
|
|
lWw=function(A){VC.call(this,A);var L=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"heartbeatRequest",function(B){if(L.freePreviewUsageDetails.length||L.freePreviewWatchedDuration!==null)B.heartbeatRequestParams||(B.heartbeatRequestParams={}),B.heartbeatRequestParams.unpluggedParams||(B.heartbeatRequestParams.unpluggedParams={}),L.freePreviewUsageDetails.length>0?B.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
|
|
L.freePreviewUsageDetails:B.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+L.freePreviewWatchedDuration}});
|
|
wh(A,"setFreePreviewWatchedDuration",function(B){L.freePreviewWatchedDuration=B});
|
|
wh(A,"setFreePreviewUsageDetails",function(B){L.freePreviewUsageDetails=B})};
|
|
V2=function(A){g.Y.call(this);this.features=[];var L=this.N,B=new Po(A),f=new JY(A),K=new Vp(A),V=new Pe(A);var J=g.dY(A.K())?void 0:new Et(A);var R=new Kl(A),Z=new YPQ(A),N=new KSS(A),F=new q5(A);var D=g.dY(A.K())?new lWw(A):void 0;var I;var d=(I=A.K().getWebPlayerContextConfig())!=null&&I.cinematicSettingsAvailable?new ib(A):void 0;I=new vo(A);var w=A.J("enable_courses_player_overlay_purchase")?new JI8(A):void 0;var r=g.SK(A.K())?new BDe(A):void 0;var h=new co(A);var Q=A.K().U?new zUk(A):void 0;
|
|
var l=g.MM(A.K())?new nQD(A):void 0;var C=A.J("web_player_move_autonav_toggle")&&A.K().LD?new YOL(A):void 0;var O=g.SK(A.K())?new HiD(A):void 0;var v=A.J("web_enable_speedmaster")&&g.SK(A.K())?new Qp(A):void 0;var U=A.K().kR?void 0:new e_D(A);var a=A.J("report_pml_debug_signal")?new HP8(A):void 0;var o0=new OiL(A),B6=new ZW(A);var Ve=g.cH(A.K())?new AtQ(A):void 0;var DS=navigator.mediaSession&&window.MediaMetadata&&A.K().jH?new om(A):void 0;var fw=A.J("html5_enable_drc")&&!A.K().T?new Ot(A):void 0;
|
|
var ry=new Zq(A);var uL=g.SK(A.K())?new D9D(A):void 0;var Jf=A.J("html5_enable_d6de4")?new Jk(A):void 0;var MC=g.SK(A.K())&&A.J("web_sleep_timer")?new hk(A):void 0;var nw=g.MM(A.K())?new aDE(A):void 0;A.J("web_shorts_audio_track_picker")||A.J("mweb_debug_sticky_settings");var Xk=new sq(A);var e5=new W6w(A),mt=new rBy(A);var T=A.J("enable_sabr_snackbar_message")?new TwC(A):void 0;var aO=A.J("web_enable_timely_actions")?new a5y(A):void 0;var YW=new $5(A);var R0,TK;var b=((R0=A.K())==null?0:(TK=R0.getWebPlayerContextConfig())==
|
|
null?0:TK.enableFullscreenComponentsFeature)?new h1L(A):void 0;R0=new ve(A);TK=A.J("web_player_loop_settings_menu")&&A.K().R_?new sSD(A):void 0;var Lw=g.dY(A.K())?void 0:new S3(A);var ro=new eTk(A),SZ=new lb(A),xg=new Ekw(A),R8=new EQQ(A);var a0=g.SK(A.K())&&A.K().J("delhi_modern_web_player")?new qOC(A):void 0;var oO=A.K().V?void 0:new k47(A);L.call(this,B,f,K,V,J,R,Z,N,F,D,d,I,w,r,h,Q,l,C,O,v,U,a,o0,B6,Ve,void 0,DS,fw,ry,void 0,uL,Jf,MC,nw,void 0,Xk,e5,mt,void 0,T,aO,YW,b,R0,void 0,TK,void 0,Lw,
|
|
ro,SZ,xg,R8,a0,oO,new XYk(A),new Y5(A))};
|
|
mQv=function(){this.W=this.N=NaN};
|
|
QmQ=function(A,L){this.L=A;this.timerName="";this.V=!1;this.W=NaN;this.U=new mQv;this.N=L||null;this.V=!1};
|
|
CuD=function(A,L,B){var f=g.PL(L.tF)&&!L.tF.T;if(L.tF.M7&&(UR(L.tF)||L.tF.Vj==="shortspage"||dd(L.tF)||f)&&!A.V){A.V=!0;A.T=L.clientPlaybackNonce;g.A_("TIMING_ACTION")||aw("TIMING_ACTION",A.L.csiPageType);A.L.csiServiceName&&aw("CSI_SERVICE_NAME",A.L.csiServiceName);if(A.N){f=A.N.zH();for(var K=g.m(Object.keys(f)),V=K.next();!V.done;V=K.next())V=V.value,mF(V,f[V],A.timerName);f=g.fg(bsw)(A.N.hL);g.Qm(f,A.timerName);f=A.N;f.N={};f.hL={}}g.Qm({playerInfo:{visibilityState:g.fg(hXD)()},playerType:"LATENCY_PLAYER_HTML5"},
|
|
A.timerName);A.D!==L.clientPlaybackNonce||Number.isNaN(A.W)||(iJ("_start",A.timerName)?B=g.fg(bJ)("_start",A.timerName)+A.W:g.CE(new g.iL("attempted to log gapless pbs before CSI timeline started",{cpn:L.clientPlaybackNonce})));!B||iJ("pbs",A.timerName)||L.OC||Jq(A,B)}};
|
|
Jq=function(A,L,B){mF("pbs",L!=null?L:(0,g.bc)(),B!=null?B:A.timerName)};
|
|
Sf=function(A){Xfv();$xk();A.timerName=""};
|
|
il1=function(A){if(A.N){var L=A.N;L.N={};L.hL={}}A.V=!1;A.D=void 0;A.W=NaN};
|
|
$QL=function(A,L){g.SN.call(this);this.tF=A;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.N=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.ea={};this.W=0;if(A=L.session_data)this.sessionData=Vh(A,"&");this.index=Math.max(0,Number(L.index)||0);this.loop=!!L.loop;this.startSeconds=Number(L.startSeconds)||0;this.title=L.playlist_title||"";this.description=L.playlist_description||"";this.author=
|
|
L.author||L.playlist_author||"";L.video_id&&(this.items[this.index]=L);if(A=L.api)typeof A==="string"&&A.length===16?L.list="PL"+A:L.playlist=A;if(A=L.list)switch(L.listType){case "user_uploads":this.listId=new X1("UU","PLAYER_"+A);break;default:var B=L.playlist_length;B&&(this.length=Number(B)||0);this.listId=Oe(A);if(A=L.video)this.items=A.slice(0),this.loaded=!0}else if(L.playlist){A=L.playlist.toString().split(",");this.index>0&&(this.items=[]);A=g.m(A);for(B=A.next();!B.done;B=A.next())(B=B.value)&&
|
|
this.items.push({video_id:B});this.length=this.items.length;if(A=L.video)this.items=A.slice(0),this.loaded=!0}this.setShuffle(!!L.shuffle);if(A=L.suggestedQuality)this.quality=A;this.ea=lS(L,"playlist_");this.V=(L=L.thumbnail_ids)?L.split(","):[]};
|
|
Xee=function(A){return!!(A.playlist||A.list||A.api)};
|
|
OlQ=function(A){var L=A.index+1;return L>=A.length?0:L};
|
|
E88=function(A){var L=A.index-1;return L<0?A.length-1:L};
|
|
g.R_=function(A,L,B,f){L=L!==void 0?L:A.index;L=A.items&&L in A.items?A.items[A.order[L]]:null;var K=null;L&&(B&&(L.autoplay="1"),f&&(L.autonav="1"),K=new g.Kr(A.tF,L),g.W(A,K),K.Of=!0,K.startSeconds=A.startSeconds||K.clipStart||0,A.listId&&(K.playlistId=A.listId.toString()));return K};
|
|
cke=function(A,L){A.index=g.B4(L,0,A.length-1);A.startSeconds=0};
|
|
Ms0=function(A,L){if(L.video&&L.video.length){A.title=L.title||"";A.description=L.description;A.views=L.views;A.likes=L.likes;A.dislikes=L.dislikes;A.author=L.author||"";var B=L.loop;B&&(A.loop=B);B=g.R_(A);A.items=[];for(var f=g.m(L.video),K=f.next();!K.done;K=f.next())if(K=K.value)K.video_id=K.encrypted_id,A.items.push(K);A.length=A.items.length;(L=L.index)?A.index=L:A.findIndex(B);A.setShuffle(!1);A.loaded=!0;A.W++;A.N&&A.N()}};
|
|
WS0=function(A,L){var B,f,K,V,J,R,Z;return g.c(function(N){if(N.N==1){B=g.av();var F=A.K(),D={context:g.dh(A),playbackContext:{contentPlaybackContext:{ancestorOrigins:F.ancestorOrigins}}},I=F.getWebPlayerContextConfig();if(I==null?0:I.encryptedHostFlags)D.playbackContext.contentPlaybackContext.encryptedHostFlags=I.encryptedHostFlags;if(I==null?0:I.hideInfo)D.playerParams={showinfo:!1};I=F.embedConfig;var d=A.e8;var w=L.docid||L.video_id||L.videoId||L.id;if(!w){w=L.raw_embedded_player_response;if(!w){var r=
|
|
L.embedded_player_response;r&&(w=JSON.parse(r))}if(w){var h,Q,l,C,O,v;w=((v=g.y((h=w)==null?void 0:(Q=h.embedPreview)==null?void 0:(l=Q.thumbnailPreviewRenderer)==null?void 0:(C=l.playButton)==null?void 0:(O=C.buttonRenderer)==null?void 0:O.navigationEndpoint,g.FZ))==null?void 0:v.videoId)||null}else w=null}h=(h=w)?h:void 0;Q=A.playlistId?A.playlistId:L.list;l=L.listType;if(Q){var U;l==="user_uploads"?U={username:Q}:U={playlistId:Q};Yqe(I,d,h,L,U,F.experiments);D.playlistRequest=U}else L.playlist?
|
|
(U={templistVideoIds:L.playlist.toString().split(",")},Yqe(I,d,h,L,U,F.experiments),D.playlistRequest=U):h&&(U={videoId:h},d&&F.J("embeds_enable_per_video_embed_config")?U.serializedThirdPartyEmbedConfig=d:I&&(U.serializedThirdPartyEmbedConfig=I),D.singleVideoRequest=U);f=D;K=g.B8(UQC);g.S5(N,2);return g.X(N,g.MD(B,f,K),4)}if(N.N!=2)return V=N.W,J=A.K(),L.raw_embedded_player_response=V,J.wT=dL(L,g.MM(J)),J.V=J.wT==="EMBEDDED_PLAYER_MODE_PFL",V&&(R=V,R.trackingParams&&wS(R.trackingParams)),N.return(new g.Kr(J,
|
|
L));Z=g.NX(N);Z instanceof Error||(Z=Error("b259802748"));g.mL(Z);return N.return(A)})};
|
|
Yqe=function(A,L,B,f,K,V){f.index&&(K.playlistIndex=String(Number(f.index)+1));K.videoId=B?B:"";L&&V.GL("embeds_enable_per_video_embed_config")?K.serializedThirdPartyEmbedConfig=L:A&&(K.serializedThirdPartyEmbedConfig=A)};
|
|
g.Np=function(A,L){ZK.get(A);ZK.set(A,L)};
|
|
g.FB=function(A){g.SN.call(this);this.loaded=!1;this.player=A};
|
|
v86=function(){this.W=[];this.N=[]};
|
|
g.qQ=function(A,L){return L?A.N.concat(A.W):A.N};
|
|
g.DK=function(A,L){switch(L.kind){case "asr":qq6(L,A.W);break;default:qq6(L,A.N)}};
|
|
qq6=function(A,L){g.Pw(L,function(B){return A.equals(B)})||L.push(A)};
|
|
g.du=function(A){g.Y.call(this);this.rT=A;this.N=new v86;this.V=null;this.D=[];this.G=[]};
|
|
g.Pu0=function(A,L){var B;return L.K().J("html5_use_hls_native_captions")&&g.yw&&A.iC()&&!((B=A.W)==null||!WV(B))};
|
|
g.I_=function(A,L,B){g.du.call(this,A);this.videoData=L;this.audioTrack=B;this.W=null;this.U=!1;this.D=L.Rj;this.G=L.VT;this.U=g.zp(L)};
|
|
g.xQD=function(A,L){var B;return A.K().J("safari_live_drm_captions_fix")&&((B=A.getVideoData())==null?0:B.U6())?!1:g.dY(A.K())&&!L.isManifestless};
|
|
g.wu=function(A,L){return xa(A.info.mimeType)?L?A.info.itag===L:!0:!1};
|
|
g.e10=function(A,L){if(A.N!=null&&g.xQD(L,A.N)&&A.N.N.rawcc!=null)return!0;if(!A.iC())return!1;L=!!A.N&&A.N.isManifestless&&Object.values(A.N.N).some(function(B){return g.wu(B,"386")});
|
|
A=!!A.N&&!A.N.isManifestless&&g.sT8(A.N);return L||A};
|
|
g.pj=function(A,L,B,f,K,V){g.du.call(this,A);this.videoId=B;this.Wt=K;this.eventId=V;this.T={};this.W=null;A=f||g.RM(L).hl||"";A=A.split("_").join("-");this.U=Zp(L,{hl:A})};
|
|
n87=function(A,L,B){B=B===void 0?"":B;g.Y.call(this);var f=this;this.S=A;this.D=L;this.V=B;this.hL={};this.N={};this.W=null;this.U=new Set;this.T=new g.dN(this);this.GV={nA1:function(){return f.D},
|
|
sur:function(){return f.V}};
|
|
this.X=this.S.J("web_player_defer_modules");this.U_=new Map;g.W(this,this.T);this.T.Y(A,"videodatachange",this.onVideoDataChange)};
|
|
z1w=function(A,L){A.W=L};
|
|
g.y2=function(A){return A.U_.get("captions")};
|
|
Bue=function(A,L){switch(L){case "ad":return u7w(A);case "annotations_module":return A.S.isEmbedsShortsMode()?A=!1:(L=A.S,A=L.K(),L=L.getVideoData(),A=A.V||L.wF||A.controlsType==="3"?!1:A.S4.isEmpty()&&A.playerStyle!=="annotation-editor"&&A.playerStyle!=="live-dashboard"?!!L.zM||!!g.xT(L)||!!g.eC(L):!0),A;case "asmjs":return jf(A);case "creatorendscreen":return aWy(A);case "embed":return g.MM(A.S.K());case "endscreen":return g.AqS(A);case "heartbeat":return A.Fl();case "kids":return A$(A.S.K());case "remote":return A.S.K().dB;
|
|
case "miniplayer":return A.S.K().showMiniplayerUiWhenMinimized;case "offline":return A.S.K().Gt;case "captions":return L5v(A);case "unplugged":return g.xi(A.S.K());case "ux":return A.S.K().sx;case "webgl":return oSk(A);case "ypc":return A.LK();default:return g.mL(Error("Module descriptor "+L+" does not match")),!1}};
|
|
gu=function(A,L,B,f,K){var V;B=B===void 0?!1:B;f=f===void 0?!1:f;var J=A.U_.get(L);if(!J||f)if(K||(K=function(){gu(A,L,B,f)}),V||(V=function(){GB(A,L)}),J=J||fKC(A,L,Bue(A,L),K,V))A.U_.set(L,J),J.create(),A.S.publish("modulecreated",L),B&&A.S.X3("onApiChange")};
|
|
Vf1=function(A){var L=L===void 0?!1:L;var B,f,K,V,J;return g.c(function(R){if(R.N==1)return(B=A.U_.get("asmjs"))&&!L?R.return(B):(f=ZK.get("asmjs"))!=null?(K=f,R.Ux(2)):g.X(R,new Promise(function(Z,N){K5E(A,"asmjs",function(){var F=ZK.get("asmjs");F?Z(F):N("cannot load module asmjs")},N)}),3);
|
|
R.N!=2&&(K=R.W);V=K;if(!V)return R.return(Promise.reject("cannot load module asmjs"));J=new V(A.S);A.U_.set("asmjs",J);J.create();return R.return(J)})};
|
|
Rd8=function(A){Jq6(A)&&A.Ee();Sv6(A)&&(gu(A,"captions",!0),gu(A,"endscreen"),A.AL(),gu(A,"creatorendscreen",!0))};
|
|
GB=function(A,L){L=g.m(Zjk[L]);for(var B=L.next();!B.done;B=L.next())A.S.Z2(B.value)};
|
|
Sv6=function(A){var L=A.S.getVideoData(),B=A.X&&!L.isInlinePlaybackNoAd;A.S.J("html5_defer_modules_on_ads_only")&&!L.isAd()&&(B=!1);return B};
|
|
Jq6=function(A){A=A.S.getVideoData();var L;if(L=A.J("web_player_defer_ad")){if(g.zK(A.p9,"ad")||yny(A)||A.enableServerStitchedDai)A=!1;else{L=A.playerResponse;A=A.startSeconds;var B=L==null?void 0:L.adPlacements;if(L=B){L=Number.MAX_VALUE;B=g.m(B);for(var f=B.next();!f.done;f=B.next())if(f=f.value.adPlacementRenderer){var K=void 0,V=(K=f.config)==null?void 0:K.adPlacementConfig;K=void 0;if(((K=V)==null?void 0:K.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var J=K=void 0;V=Number((K=V)==null?void 0:(J=
|
|
K.adTimeOffset)==null?void 0:J.offsetStartMilliseconds)||0;J=K=void 0;f=Number(((K=f.renderer)==null?void 0:(J=K.adBreakServiceRenderer)==null?void 0:J.prefetchMilliseconds)||0);f=V-f;f<L&&(L=f)}}L=L-5E3<=A*1E3}A=L?!1:!0}L=A}return L};
|
|
L5v=function(A){var L=A.S.getVideoData();return g.Pu0(L,A.S)||!!L.zV||!!L.captionTracks.length||g.e10(L,A.S)};
|
|
g.AqS=function(A){var L=A.S.K();if(L.V||dd(L)||L.T||!L.k6&&!L.b2)return!1;var B=A.S.getPresentingPlayerType();if(B===2||B===3)return!1;A=A.S.getVideoData();if(!A)return!1;B=!A.isLiveDefaultBroadcast||L.J("allow_poltergust_autoplay");B=A.isLivePlayback&&(!L.J("allow_live_autoplay")||!B);L=A.isLivePlayback&&L.J("allow_live_autoplay_on_mweb");return!B||L};
|
|
g.Yn=function(A){return A.U_.get("webgl")};
|
|
oSk=function(A){var L=A.S.getVideoData();A=A.S.K();var B=g.zqD(),f=A.J("enable_spherical_kabuki"),K=g.D_(A);if(g.qG(L))return B||f||K;if(g.WK(L))return K||B||f;if(g.vK(L))return K||B||!1;if(g.lj(L))return K||!1;B=L.W&&L.W.video&&L.W.video.isHdr();return K&&!g.Cr(L)&&!B&&A.J("enable_webgl_noop")};
|
|
u7w=function(A){if(A.S.K().V)return!1;if(A=A.S.getVideoData(1).getPlayerResponse()){var L=A.adPlacements;if(L)for(var B=0;B<L.length;B++)if(L[B].adPlacementRenderer)return!0;if(A.adSlots)return!0}return!1};
|
|
aWy=function(A){if(A.S.isEmbedsShortsMode())return!1;A=A.S;var L=A.K();if(L.V)return!1;var B;if(((B=L.getWebPlayerContextConfig())==null?0:B.embedsEnableEmc3ds)||L.controlsType==="3")return!1;if(L.playerStyle==="creator-endscreen-editor")return!0;B=A.getVideoData();return!!B&&(!!g.k0e(B)||!!g.T3k(B))};
|
|
fKC=function(A,L,B,f,K){try{if(B){var V=ZK.get(L);if(V)return new V(A.S);K5E(A,L,f,K)}else GB(A,L)}catch(J){GB(A,L),g.mL(J)}return null};
|
|
ru=function(A,L,B){for(var f=g.m(Nu0),K=f.next();!K.done;K=f.next()){K=K.value;var V=A.U_.get(K);V&&(B||V.Pg(L))&&(g.jq(V),A.U_.delete(K))}A.S.publish("modulesDestroyed",L)};
|
|
HB=function(A){return A.U_.get("ad")};
|
|
F51=function(A){if(A$(A.S.K()))return A.U_.get("kids")};
|
|
EU=function(A){if(A.S.K().dB)return A.U_.get("remote")};
|
|
g.hq=function(A){if(g.xi(A.S.K()))return A.U_.get("unplugged")};
|
|
K6k=function(A){if(A.S.K().sx)return A.U_.get("ux")};
|
|
Dp8=function(A){if(A.S.K().showMiniplayerUiWhenMinimized)return A.U_.get("miniplayer")};
|
|
bg=function(A){if(A.S.K().Gt)return A.U_.get("offline")};
|
|
g.tq=function(A){return A.U_.get("annotations_module")};
|
|
kS=function(A){return A.U_.get("creatorendscreen")};
|
|
dpe=function(A){var L,B;return g.c(function(f){if(f.N==1)return g.X(f,Vf1(A),2);B=L=f.W;return f.return(B)})};
|
|
IK7=function(A){return u4(function(){var L;return(L=A.U_.get("asmjs"))!=null?L:dpe(A)})};
|
|
jf=function(A){return A.S.K().J("html5_allow_asmjs")||A.S.K().Qf().N.Iv(wBL)};
|
|
K5E=function(A,L,B,f){if(A.D){var K=pBL[L];L=A.D+K;A.V&&(L+="?cb="+A.V);yqS(A,L,function(){A.U.add(K);B.call(A)},f)}};
|
|
yqS=function(A,L,B,f){function K(){A.TL()||f.call(A)}
|
|
function V(){A.TL()||B.call(A)}
|
|
for(var J=g.jr("SCRIPT"),R=!1,Z,N=0;N<J.length;N++){var F=J[N];if(F.src===L||F.getAttribute("data-original-src")===L)Z=F}Z||(Z=g.TO("SCRIPT"),Z.setAttribute("data-original-src",L),R=!0);var D=Z.onload;Z.onload=function(r){hU(V);D&&D.apply(window,[r])};
|
|
var I=Z.onerror;Z.onerror=function(r){if(Math.random()<.01){var h=new g.iL("Unable to load player module",L,document.location&&document.location.origin);g.mL(h)}hU(K);I&&I(r)};
|
|
var d=Z,w=d.onreadystatechange;d.onreadystatechange=function(r){switch(d.readyState){case "loaded":case "complete":hU(V)}w&&w(r)};
|
|
R&&((J=A.S.K().cspNonce)&&Z.setAttribute("nonce",J),g.ET(Z,g.Q4(L)),J=g.jr("HEAD")[0]||document.body,J.insertBefore(Z,J.firstChild),A.addOnDisposeCallback(function(){Z.parentNode&&Z.parentNode.removeChild(Z)}))};
|
|
j_E=function(A,L,B,f,K,V){g.SN.call(this);var J=this;this.target=A;this.api=L;this.Dn=B;this.W=0;this.T=!1;this.U=new g.Vl(NaN,NaN);this.N=new g.dN(this);this.ZM=this.V=this.X=null;g.W(this,this.N);L=K||V?g.Am(this.api.K().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.Am(this.api.K().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.yj=new g.aa(function(){TB(J,1,!1)},L,this);
|
|
g.W(this,this.yj);this.Wn=new g.aa(function(){TB(J,2,!1)},L,this);
|
|
g.W(this,this.Wn);this.qp=new g.aa(function(){TB(J,2048,!1)},L,this);
|
|
g.W(this,this.qp);this.Vj=new g.aa(function(){TB(J,512,!1)},L,this);
|
|
g.W(this,this.Vj);this.wT=3E3;K||(this.V=this.N.Y(A,"mouseover",this.ob),this.N.Y(A,"mousemove",this.aW),this.N.Y(A,"mouseleave",this.fgn));this.api.J("web_player_enable_fullscreen_grid_components")&&this.N.Y(A,"wheel",this.vuF,this,!0);V9?this.N.Y(A,"keypress",this.Or1):this.N.Y(A,"focusin",this.LG);this.D=this.N.Y(A,"mousedown",this.eW);this.G=this.N.Y(A,"touchstart",this.Qv,void 0,!0);TB(this,640,!0)};
|
|
gSD=function(A){TB(A,4,!1);A.X&&(A.N.J$(A.X),A.X=null,A.V=A.N.Y(A.target,"mouseover",A.ob));A.V&&(A.N.J$(A.V),A.V=A.N.Y(A.target,"mouseover",A.ob))};
|
|
lg=function(A){return A.api.J("allow_autohide_on_paused_videos")?!(A.W&-129):!A.W};
|
|
TB=function(A,L,B){A.TL();var f=lg(A);B?(A.W|=L,L&1&&A.yj.start(),L&2&&A.Wn.start(),L&2048&&A.qp.start()):(A.W&=~L,L&1&&A.yj.stop(),L&2&&A.Wn.stop(),L&2048&&A.qp.stop(),L&512&&A.Vj.stop());A.W&512&&!(A.W&128)&&g.Az(A.Vj,A.wT);L=lg(A);f!==L&&A.publish("autohideupdate",L)};
|
|
g.Q2=function(A){g.q.call(this,{Z:"button",Rr:["ytp-large-play-button","ytp-button"],C:{"aria-label":"Riproduci",title:"Riproduci"},B:["{{largePlayButtonChildren}}"]});this.api=A;this.Y(A,"videodatachange",this.zL);this.Y(A,"basechromeinitialized",this.TB1);A=this.api.K();A.X&&m5&&(this.listen("click",this.BJ,this),this.listen("touchstart",this.iw4,this));g.PL(A)&&g.R1(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.zL()};
|
|
g.Cj=function(A){var L=["ytp-cued-thumbnail-overlay"];A.K().T&&L.push("ytp-exp-contain-thumbnail");g.q.call(this,{Z:"div",Rr:L,B:[{Z:"div",j:"ytp-cued-thumbnail-overlay-image"}]});L=this.m4("ytp-cued-thumbnail-overlay");var B=new g.Q2(A);g.W(this,B);B.DM(L);this.W=new g.dN(this);g.W(this,this.W);this.api=A;this.U=this.m4("ytp-cued-thumbnail-overlay-image");this.V=B;this.fade=new g.KL(this,250);g.W(this,this.fade);this.N=new g.aa(this.zL,0,this);g.W(this,this.N);this.zL();this.Y(A,"appresize",this.Bz);
|
|
this.Y(A,"presentingplayerstatechange",this.onStateChange);this.Y(A,"ypcStateChanged",this.y_T);UR(A.K())&&this.Y(A,"videoplayerreset",this.onReset)};
|
|
g.ig=function(A){g.q.call(this,{Z:"div",Rr:["ytp-error"],C:{role:"alert"},B:[{Z:"div",j:"ytp-error-content",B:[{Z:"div",j:"ytp-error-icon-container",B:[{Z:"svg",C:{fill:"#fff",viewBox:"0 0 48 48"},B:[{Z:"path",C:{d:"M0 0h48v48H0V0z",fill:"none"}},{Z:"path",C:{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"}}]}]},{Z:"div",j:"ytp-error-content-wrap",
|
|
B:[{Z:"div",j:"ytp-error-content-wrap-reason",Ir:"{{content}}"},{Z:"div",j:"ytp-error-content-wrap-subreason",Ir:"{{subreason}}"}]}]}]});this.api=A;this.keys=[];this.V=!1;A.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.bC)};
|
|
g.$S=function(A){A=A.split(GB8);for(var L=[],B=0;B<A.length;B+=3){var f=A[B++].split("\n");L.push(f[0]);for(var K=1;K<f.length;K++)L.push({Z:"br"}),L.push(f[K]);B<A.length&&L.push({Z:"a",C:{href:A[B],target:A[B+1]},Ir:A[B+2]})}return{Z:"span",B:L}};
|
|
Ov=function(A,L,B,f,K,V,J){f=f===void 0?!1:f;K=K===void 0?!1:K;J=J===void 0?!0:J;K||(K=A.api.K().U);var R=A.api.getVideoData();L=g.B$(g.XB[L]||"",f?{CPN:R.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);f=[];V&&f.push({Z:"h2",Ir:V});f.push(L[0]);J&&f.push({Z:"br"});f.push({Z:"a",C:{href:B,target:K?"_blank":null},j:"ytp-error-link",Ir:L[2]});A.V=!0;f.push(L[4]);return{Z:"span",B:f}};
|
|
rq6=function(A,L){for(var B=A.element.getElementsByTagName("a"),f=0;f<B.length;f++){var K=A.Y(B[f],"click",L);A.keys.push(K)}};
|
|
s_7=function(A){for(var L=0;L<A.keys.length;L++)A.J$(A.keys[L]);A.keys=[]};
|
|
Hj1=function(A){g.q.call(this,{Z:"div",Rr:["ytp-overlays-container"],B:[{Z:"div",j:"ytp-overlay-top-left"},{Z:"div",j:"ytp-overlay-top-right"},{Z:"div",j:"ytp-overlay-bottom-left"},{Z:"div",j:"ytp-overlay-bottom-right"}]});this.V=this.m4("ytp-overlay-top-left");this.U=this.m4("ytp-overlay-top-right");this.N=this.m4("ytp-overlay-bottom-left");this.W=this.m4("ytp-overlay-bottom-right");g.Wh(A,this.element,4)};
|
|
Ev=function(A,L,B,f){for(var K=Number(L.getAttribute("data-overlay-order"))||0,V=0,J=null,R=g.m(B.children),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;if(f&&Z.classList.contains("ytp-overlay-inline-container")){J=Z;break}if(K<(Number(Z.getAttribute("data-overlay-order"))||0))break;V++}J?Ev(A,L,J,!1):f?(A=document.createElement("div"),A.classList.add("ytp-overlay-inline-container"),A.setAttribute("data-overlay-order",""+K),J=A,J.appendChild(L),iA(B,J,V)):iA(B,L,V)};
|
|
hdS=function(A){var L={};g.q.call(this,{Z:"div",j:"ytp-paid-content-overlay",C:(L["aria-live"]="assertive",L["aria-atomic"]="true",L["data-overlay-order"]="5",L)});this.S=A;this.videoId=null;this.V=!1;this.innertubeCommand=this.xb=this.N=null;L=A.K();A.J("enable_new_paid_product_placement")&&!g.Ng(L)?(this.W=new g.q({Z:"a",j:"ytp-paid-content-overlay-link",C:{href:"{{href}}",target:"_blank"},B:[{Z:"div",j:"ytp-paid-content-overlay-indicator"},{Z:"div",j:"ytp-paid-content-overlay-icon",Ir:"{{icon}}"},
|
|
{Z:"div",j:"ytp-paid-content-overlay-text",Ir:"{{text}}"},{Z:"div",j:"ytp-paid-content-overlay-chevron",Ir:"{{chevron}}"}]}),this.Y(this.W.element,"click",this.onClick)):this.W=new g.q({Z:"div",Rr:["ytp-button","ytp-paid-content-overlay-text"],Ir:"{{text}}"});this.fade=new g.KL(this.W,250,!1,100);g.W(this,this.W);this.W.DM(this.element);g.W(this,this.fade);this.S.createServerVe(this.element,this);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"presentingplayerstatechange",this.oW)};
|
|
tfC=function(A,L){var B=dFe(L),f=IyD(L);if(!L.b8||!A.S.BF())if(A.N||A.S.J("enable_paid_content_overlay_bugfix")){if(L.videoId&&L.videoId!==A.videoId){var K;(K=A.N)==null||g.o1(K);!A.S.J("enable_paid_content_overlay_bugfix")||B&&f?(A.videoId=L.videoId,A.V=!!f,A.V&&B&&bjy(A,f,B,L)):A.V=!1}}else B&&f&&!A.S.J("enable_paid_content_overlay_bugfix")&&bjy(A,f,B,L)};
|
|
bjy=function(A,L,B,f){A.N&&A.N.dispose();A.N=new g.aa(A.YP,L,A);g.W(A,A.N);f=ij(f);L=f==null?void 0:f.navigationEndpoint;var K;f=f==null?void 0:(K=f.icon)==null?void 0:K.iconType;var V;K=(V=g.y(L,g.Mt))==null?void 0:V.url;A.S.setTrackingParams(A.element,(L==null?void 0:L.clickTrackingParams)||null);L&&!K?(A.innertubeCommand=L,K="#!"):A.innertubeCommand=null;var J;A.W.update({href:(J=K)!=null?J:"#",text:B,icon:f==="MONEY_HAND"?{Z:"svg",C:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
|
|
B:[{Z:"path",C:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
|
|
fill:"white"}}]}:null,chevron:K||A.innertubeCommand?g.gq():null})};
|
|
kBk=function(A,L){A.N&&(g.x(L,8)&&A.V?(A.V=!1,A.fD(),A.N.start()):(g.x(L,2)||g.x(L,64))&&A.videoId&&(A.videoId=null))};
|
|
cB=function(A){g.q.call(this,{Z:"div",j:"ytp-spinner",B:[yC(),{Z:"div",j:"ytp-spinner-message",Ir:"Se la riproduzione non inizia a breve, prova a riavviare il dispositivo."}]});this.api=A;this.message=this.m4("ytp-spinner-message");this.N=new g.aa(this.show,500,this);g.W(this,this.N);this.Y(A,"presentingplayerstatechange",this.onStateChange);this.Y(A,"playbackstalledatstart",this.W);this.Y6(A.getPlayerStateObject())};
|
|
Mp=function(A){var L=[{Z:"div",Rr:["ytp-unmute-icon"],B:[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]}]},
|
|
{Z:"div",Rr:["ytp-unmute-text"],Ir:"Riattiva l'audio"}];L.push({Z:"div",Rr:["ytp-unmute-box"],B:[]});g.zg.call(this,A,{Z:"button",Rr:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],B:[{Z:"div",j:"ytp-unmute-inner",B:L}]},100);this.N=this.clicked=!1;this.api=A;this.api.createClientVe(this.element,this,51663);this.Y(A,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.Y(A,"presentingplayerstatechange",this.qP);this.listen("click",this.onClick,this);A=A.isMutedByMutedAutoplay()&&
|
|
!g.MM(this.api.K());this.xP(A);A&&TuS(this);this.W=A};
|
|
TuS=function(A){A.N||(A.N=!0,A.api.logVisibility(A.element,!0))};
|
|
g.YS=function(A){g.dN.call(this);var L=this;this.api=A;this.El=!1;this.Wu=null;this.nW=!1;this.Xb=null;this.zC=this.Hx=!1;this.aP=this.KM=null;this.EW=NaN;this.vP=this.n$=!1;this.Y0=0;this.Ea=[];this.G7=!1;this.IZ={height:0,width:0};this.xt=480;this.a2s=["ytp-player-content","html5-endscreen","ytp-overlay"];this.vp={o3:!1};this.uY=null;var B=A.K(),f=A.Pn();this.IZ=A.getPlayerSize();this.Dv=new g.aa(this.Pe,0,this);g.W(this,this.Dv);B.disableOrganicUi||(this.uF=new g.Cj(A),g.W(this,this.uF),g.Wh(A,
|
|
this.uF.element,4));this.api.J("web_player_overlay_positioned_layout")&&(this.uY=new Hj1(this.api),g.W(this,this.uY));if(lKy(this)){var K=new cB(A);g.W(this,K);K=K.element;g.Wh(A,K,4)}var V=A.getVideoData();this.C8=new j_E(f,A,function(R){return L.Dn(R)},V,B.Sb,!1);
|
|
g.W(this,this.C8);this.C8.subscribe("autohideupdate",this.Al,this);lg(this.C8);if(!B.disablePaidContentOverlay){var J=new hdS(A);g.W(this,J);this.uY?this.uY.Tt(J.element,g.Ng(B)?3:1):g.Wh(A,J.element,4)}this.cP=new Mp(A);g.W(this,this.cP);g.Wh(this.api,this.cP.element,2);this.Xj=this.api.isMutedByMutedAutoplay();this.Y(A,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.ND=new g.aa(this.Iu,200,this);g.W(this,this.ND);this.PT=V.videoId;this.m7=new g.aa(function(){L.Y0=0},350);
|
|
g.W(this,this.m7);this.Ot=new g.aa(function(){L.vP||mpe(L)},350,this);
|
|
g.W(this,this.Ot);V=A.getRootNode();V.setAttribute("aria-label","Video player di YouTube");switch(B.color){case "white":g.R1(V,"ytp-color-white")}this.Y(A,"appresize",this.Bz);this.Y(A,"presentingplayerstatechange",this.qP);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"videoplayerreset",this.kqF);this.Y(A,"autonavvisibility",function(){L.Fp()});
|
|
this.Y(A,"sizestylechange",function(){L.Fp()});
|
|
this.Y(f,"click",this.mUx,this);this.Y(f,"dblclick",this.b8L,this);this.Y(f,"mousedown",this.UUL,this);B.Nl&&(this.Y(f,"gesturechange",this.tE1,this),this.Y(f,"gestureend",this.FTr,this));this.jx=[f.Q8];this.uF&&this.jx.push(this.uF.element);K&&this.jx.push(K);this.api.J("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(f.element,this,247482),this.api.logVisibility(f.element,!0))};
|
|
Q_S=function(A,L){if(!L)return!1;var B=A.api.pD();if(B.wy()&&(B=B.Zg())&&g.XF(B,L))return B.controls;for(B=0;B<A.jx.length;B++)if(g.XF(A.jx[B],L))return!1;B=g.m(A.a2s);for(var f=B.next();!f.done;f=B.next())if(g.SR(L,f.value))return!1;return L===A.api.getRootNode()?!1:!0};
|
|
Cgw=function(A){var L=A.api.getPresentingPlayerType()===2&&(A.api.Pn().Wp||A.api.K().disableOrganicUi)&&A.api.K().W&&m5&&$c>=11;A=A.api.K().X&&m5;return!(!L&&!A)};
|
|
Uv=function(A,L){return!A.api.isInline()&&!Q_S(A,lt(L))&&g.bV(L)};
|
|
mpe=function(A){A.C8.V9();if(A.Hx&&A.zC)A.zC=!1;else if(!A.api.K().Ys&&!A.p5()){var L=A.api.getPlayerStateObject();g.x(L,2)&&g.Xr(A.api)||A.N0(L);!A.api.K().Nl||L.isCued()||g.x(L,1024)?A.Iu():A.ND.isActive()?(A.Yp(),A.ND.stop()):A.ND.start()}};
|
|
ij0=function(A,L){var B;if((B=A.api.getVideoData())==null?0:B.mutedAutoplay){var f,K;if((f=L.target)==null?0:(K=f.className)==null?0:K.includes("ytp-info-panel"))return!1}return g.bV(L)&&A.api.isMutedByMutedAutoplay()?(A.api.unMute(),A.api.getPresentingPlayerType()===2&&A.api.playVideo(),L=A.api.getPlayerStateObject(),!g.x(L,4)||g.x(L,8)||g.x(L,2)||A.Iu(),!0):!1};
|
|
$pL=function(A,L,B){A.api.isFullscreen()?B<1-L&&A.api.toggleFullscreen():B>1+L&&A.api.toggleFullscreen()};
|
|
lKy=function(A){var L=ek()&&qs()>=67&&!A.api.K().X;A=A.api.K().disableOrganicUi;return!g.xz("tizen")&&!OR&&!L&&!A};
|
|
g.WB=function(A){g.q.call(this,{Z:"div",B:[{Z:"div",j:"ytp-bezel-text-wrapper",B:[{Z:"div",j:"ytp-bezel-text",Ir:"{{title}}"}]},{Z:"div",j:"ytp-bezel",C:{role:"status","aria-label":"{{label}}"},B:[{Z:"div",j:"ytp-bezel-icon",Ir:"{{icon}}"}]}]});this.S=A;this.W=new g.aa(this.show,10,this);A=this.S.J("delhi_modern_web_player")?1E3:500;this.N=new g.aa(this.hide,A,this);g.W(this,this.W);g.W(this,this.N);this.hide()};
|
|
qp=function(A,L,B){if(L<=0){B=ia();L="audio disattivato";var f=0}else B=B?{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]},f=Math.floor(L),L=f+"volume";vB(A,B,L,f+"%")};
|
|
XBD=function(A,L){L=L?{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]}:uaE();var B=A.S.getPlaybackRate(),f=g.B$("La velocit\u00e0 \u00e8 $RATE",{RATE:String(B)});vB(A,L,f,B+"x")};
|
|
Oj1=function(A,L){L=L?"Sottotitoli/sottotitoli codificati attivati":"Sottotitoli/sottotitoli codificati disattivati";vB(A,bPv(A.S),L)};
|
|
vB=function(A,L,B,f){f=f===void 0?"":f;A.updateValue("label",B===void 0?"":B);A.updateValue("icon",L);g.o1(A.N);A.W.start();A.updateValue("title",f);g.D1(A.element,"ytp-bezel-text-hide",!f)};
|
|
ESe=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-cards-button"],C:{"aria-label":"Mostra schede","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"span",j:"ytp-cards-button-icon-default",B:[{Z:"div",j:"ytp-cards-button-icon",B:[A.K().J("player_new_info_card_format")?AKy():{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]}]},
|
|
{Z:"div",j:"ytp-cards-button-title",Ir:"Informazioni"}]},{Z:"span",j:"ytp-cards-button-icon-shopping",B:[{Z:"div",j:"ytp-cards-button-icon",B:[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",j:"ytp-svg-shadow",C:{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"}},{Z:"path",j:"ytp-svg-fill",C:{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"}},{Z:"path",j:"ytp-svg-shadow-fill",C:{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"}}]}]},{Z:"div",
|
|
j:"ytp-cards-button-title",Ir:"Shopping"}]}]});this.S=A;this.W=L;this.N=null;this.fade=new g.KL(this,250,!0,100);g.W(this,this.fade);g.D1(this.W,"ytp-show-cards-title",g.MM(A.K()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.oh(!0)};
|
|
cqL=function(A,L){g.q.call(this,{Z:"div",j:"ytp-cards-teaser",B:[{Z:"div",j:"ytp-cards-teaser-box"},{Z:"div",j:"ytp-cards-teaser-text",B:A.K().J("player_new_info_card_format")?[{Z:"button",j:"ytp-cards-teaser-info-icon",C:{"aria-label":"Mostra schede","aria-haspopup":"true"},B:[AKy()]},{Z:"img",j:"ytp-cards-teaser-channel-avatar",C:{alt:"","aria-hidden":"true"}},{Z:"span",j:"ytp-cards-teaser-label",Ir:"{{text}}"},{Z:"button",j:"ytp-cards-teaser-close-button",C:{"aria-label":"Chiudi"},B:[g.GZ()]}]:
|
|
[{Z:"span",j:"ytp-cards-teaser-label",Ir:"{{text}}"}]}]});var B=this;this.S=A;this.u2=L;this.fade=new g.KL(this,250,!1,250);this.N=null;this.T=new g.aa(this.PqD,300,this);this.D=new g.aa(this.Bfs,2E3,this);this.U=[];this.V=null;this.X=new g.aa(function(){B.element.style.margin="0"},250);
|
|
this.onClickCommand=this.W=null;g.W(this,this.fade);g.W(this,this.T);g.W(this,this.D);g.W(this,this.X);A.K().J("player_new_info_card_format")?(g.R1(A.getRootNode(),"ytp-cards-teaser-dismissible"),this.Y(this.m4("ytp-cards-teaser-close-button"),"click",this.Oy),this.Y(this.m4("ytp-cards-teaser-info-icon"),"click",this.AC),this.Y(this.m4("ytp-cards-teaser-label"),"click",this.AC)):this.listen("click",this.AC);this.Y(L.element,"mouseover",this.KB);this.Y(L.element,"mouseout",this.ai);this.Y(A,"cardsteasershow",
|
|
this.xUj);this.Y(A,"cardsteaserhide",this.YP);this.Y(A,"cardstatechange",this.eA);this.Y(A,"presentingplayerstatechange",this.eA);this.Y(A,"appresize",this.Rl);this.Y(A,"onShowControls",this.Rl);this.Y(A,"onHideControls",this.f4);this.listen("mouseenter",this.c_)};
|
|
MfC=function(A){g.q.call(this,{Z:"button",Rr:[PB.BUTTON,PB.TITLE_NOTIFICATIONS],C:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},B:[{Z:"div",j:PB.TITLE_NOTIFICATIONS_ON,C:{title:"Interrompi la ricezione delle notifiche sui nuovi video","aria-label":"Notifica iscrizioni"},B:[g.ba()]},{Z:"div",j:PB.TITLE_NOTIFICATIONS_OFF,C:{title:"Ricevi le notifiche sui nuovi video","aria-label":"Notifica iscrizioni"},B:[{Z:"svg",C:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},B:[{Z:"path",
|
|
C:{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.N=!1;A.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Ricevi le notifiche sui nuovi video")};
|
|
Yvw=function(A,L){A.N=L;A.element.classList.toggle(PB.NOTIFICATIONS_ENABLED,A.N);var B=A.api.getVideoData();B?(L=L?B.MI:B.D$)?(A=A.api.dh())?c8(A,L):g.mL(Error("No innertube service available when updating notification preferences.")):g.mL(Error("No update preferences command available.")):g.mL(Error("No video data when updating notification preferences."))};
|
|
W5S=function(A,L,B){var f=f===void 0?800:f;var K=K===void 0?600:K;var V=document.location.protocol;A=Day(V+"//"+A+"/signin?context=popup","feature",L,"next",V+"//"+location.hostname+"/post_login");Up6(A,B,f,K)};
|
|
Up6=function(A,L,B,f){B=B===void 0?800:B;f=f===void 0?600:f;if(A=g.QR(window,A,"loginPopup","width="+B+",height="+f+",resizable=yes,scrollbars=yes"))qn1(function(){L()}),A.moveTo((screen.width-B)/2,(screen.height-f)/2)};
|
|
g.xS=function(A,L,B,f,K,V,J,R,Z,N,F,D){A=A.charAt(0)+A.substring(1).toLowerCase();B=B.charAt(0)+B.substring(1).toLowerCase();if(L==="0"||L==="-1")L=null;if(f==="0"||f==="-1")f=null;var I=F.K(),d=I.userDisplayName&&g.PL(I);g.q.call(this,{Z:"div",Rr:["ytp-button","ytp-sb"],B:[{Z:"div",j:"ytp-sb-subscribe",C:d?{title:F.K().J("player_tooltip_data_title_killswitch")?g.B$("Iscriviti come $USER_NAME",{USER_NAME:I.userDisplayName}):"","data-tooltip-title":g.B$("Iscriviti come $USER_NAME",{USER_NAME:I.userDisplayName}),
|
|
"aria-label":"Iscriviti al canale","data-tooltip-image":Io(I),"data-tooltip-opaque":String(g.MM(I)),tabindex:"0",role:"button"}:{"aria-label":"Iscriviti al canale"},B:[{Z:"div",j:"ytp-sb-text",B:[{Z:"div",j:"ytp-sb-icon"},A]},L?{Z:"div",j:"ytp-sb-count",Ir:L}:""]},{Z:"div",j:"ytp-sb-unsubscribe",C:d?{title:F.J("player_tooltip_data_title_killswitch")?g.B$("Iscritto come $USER_NAME",{USER_NAME:I.userDisplayName}):"","data-tooltip-title":g.B$("Iscritto come $USER_NAME",{USER_NAME:I.userDisplayName}),
|
|
"aria-label":"Annulla l'iscrizione al canale","data-tooltip-image":Io(I),"data-tooltip-opaque":String(g.MM(I)),tabindex:"0",role:"button"}:{"aria-label":"Annulla l'iscrizione al canale"},B:[{Z:"div",j:"ytp-sb-text",B:[{Z:"div",j:"ytp-sb-icon"},B]},f?{Z:"div",j:"ytp-sb-count",Ir:f}:""]}],C:{"aria-live":"polite"}});var w=this;this.channelId=J;this.S=F;this.V=D;var r=this.m4("ytp-sb-subscribe"),h=this.m4("ytp-sb-unsubscribe");V&&g.R1(this.element,"ytp-sb-classic");if(K){R?this.N():this.W();var Q=function(){if(I.ZM){var C=
|
|
w.channelId;if(Z||N){var O={c:C};var v;g.G4.isInitialized()&&(v=Vi8(O));O=v||"";if(v=F.getVideoData())if(v=v.subscribeCommand){var U=F.dh();U?(c8(U,v,{botguardResponse:O,feature:Z}),F.Kr("SUBSCRIBE",C)):g.mL(Error("No innertube service available when updating subscriptions."))}else g.mL(Error("No subscribe command in videoData."));else g.mL(Error("No video data available when updating subscription."))}h.focus();h.removeAttribute("aria-hidden");r.setAttribute("aria-hidden","true")}else W5S(g.BN(w.S.K()),
|
|
"sb_button",w.U)},l=function(){var C=w.channelId;
|
|
if(Z||N){var O=F.getVideoData();c8(F.dh(),O.unsubscribeCommand,{feature:Z});F.Kr("UNSUBSCRIBE",C)}r.focus();r.removeAttribute("aria-hidden");h.setAttribute("aria-hidden","true")};
|
|
this.Y(r,"click",Q);this.Y(h,"click",l);this.Y(r,"keypress",function(C){C.keyCode===13&&Q(C)});
|
|
this.Y(h,"keypress",function(C){C.keyCode===13&&l(C)});
|
|
this.Y(F,"SUBSCRIBE",this.N);this.Y(F,"UNSUBSCRIBE",this.W);this.V&&d&&(Dy1(F),Cm(F,r,this),Cm(F,h,this))}else g.R1(r,"ytp-sb-disabled"),g.R1(h,"ytp-sb-disabled")};
|
|
PgL=function(A){g.q.call(this,{Z:"div",j:"ytp-title-channel",B:[{Z:"div",j:"ytp-title-beacon"},{Z:"a",j:"ytp-title-channel-logo",C:{href:"{{channelLink}}",target:A.K().yj,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Z:"div",j:"ytp-title-expanded-overlay",C:{"aria-hidden":"{{flyoutUnfocusable}}"},B:[{Z:"div",j:"ytp-title-expanded-heading",B:[{Z:"div",j:"ytp-title-expanded-title",B:[{Z:"a",Ir:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:A.K().yj,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
|
|
tabIndex:"{{channelTitleFocusable}}"}}]},{Z:"div",j:"ytp-title-expanded-subtitle",Ir:"{{expandedSubtitle}}",C:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var L=this;this.api=A;this.channel=this.m4("ytp-title-channel");this.W=this.m4("ytp-title-channel-logo");this.channelName=this.m4("ytp-title-expanded-title");this.D=this.m4("ytp-title-expanded-overlay");this.V=this.N=this.subscribeButton=null;this.U=!1;A.createClientVe(this.W,this,36925);A.createClientVe(this.channelName,this,
|
|
37220);g.MM(this.api.K())&&vSw(this);this.Y(A,"videodatachange",this.zL);this.Y(A,"videoplayerreset",this.zL);this.Y(this.channelName,"click",function(B){L.api.logClick(L.channelName);g.QR(window,qv0(L));B.preventDefault()});
|
|
this.Y(this.W,"click",this.bDr);this.zL()};
|
|
xpD=function(A){if(!A.api.K().jI){var L=A.api.getVideoData(),B=new g.xS("Iscriviti",null,"Iscritto",null,!0,!1,L.JO,L.subscribed,"channel_avatar",null,A.api,!0);A.api.createServerVe(B.element,A);var f;A.api.setTrackingParams(B.element,((f=L.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);A.Y(B.element,"click",function(){A.api.logClick(B.element)});
|
|
A.subscribeButton=B;g.W(A,A.subscribeButton);A.subscribeButton.DM(A.D);A.subscribeButton.hide();var K=new MfC(A.api);A.N=K;g.W(A,K);K.DM(A.D);K.hide();A.Y(A.api,"SUBSCRIBE",function(){L.mC&&(K.show(),A.api.logVisibility(K.element,!0))});
|
|
A.Y(A.api,"UNSUBSCRIBE",function(){L.mC&&(K.hide(),A.api.logVisibility(K.element,!1),Yvw(K,!1))})}};
|
|
vSw=function(A){var L=A.api.K();xpD(A);A.updateValue("flyoutUnfocusable","true");A.updateValue("channelTitleFocusable","-1");A.updateValue("shouldHideExpandedTitleForA11y","true");A.updateValue("shouldHideExpandedSubtitleForA11y","true");L.W||L.Ex||(A.Y(A.channel,"mouseenter",A.Wr),A.Y(A.channel,"mouseleave",A.SG),A.Y(A.channel,"focusin",A.Wr),A.Y(A.channel,"focusout",function(B){A.channel.contains(B.relatedTarget)||A.SG()}));
|
|
A.V=new g.aa(function(){A.isExpanded()&&(A.api.logVisibility(A.channelName,!1),A.subscribeButton&&(A.subscribeButton.hide(),A.api.logVisibility(A.subscribeButton.element,!1)),A.N&&(A.N.hide(),A.api.logVisibility(A.N.element,!1)),A.channel.classList.remove("ytp-title-expanded"),A.channel.classList.add("ytp-title-show-collapsed"))},500);
|
|
g.W(A,A.V);A.Y(A.channel,edv,function(){nSy(A)});
|
|
A.Y(A.api,"onHideControls",A.zN);A.Y(A.api,"appresize",A.zN);A.Y(A.api,"fullscreentoggled",A.zN)};
|
|
nSy=function(A){A.channel.classList.remove("ytp-title-show-collapsed");A.channel.classList.remove("ytp-title-show-expanded")};
|
|
zdE=function(A){var L=A.api.getPlayerSize();return g.MM(A.api.K())&&L.width>=524};
|
|
qv0=function(A){var L=A.api.K(),B=A.api.getVideoData(),f=g.wd(L)+B.Ys;g.Nm(B)&&(f="https://music.youtube.com"+B.Ys);if(!g.MM(L))return f;L={};g.jg(A.api,"addEmbedsConversionTrackingParams",[L]);return g.ip(f,L)};
|
|
ef=function(A){var L=g.Bo({"aria-haspopup":"true"});g.of.call(this,L,A);this.listen("keydown",this.A2)};
|
|
nj=function(A,L){A.element.setAttribute("aria-haspopup",String(L))};
|
|
uB1=function(A,L){g.q.call(this,{Z:"div",j:"ytp-user-info-panel",C:{"aria-label":"Informazioni utente"},B:A.K().ZM?[{Z:"div",j:"ytp-user-info-panel-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-user-info-panel-content",B:[{Z:"div",j:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ir:"{{watchingAsUsername}}"},{Z:"div",j:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ir:"{{watchingAsEmail}}"}]}]:[{Z:"div",j:"ytp-user-info-panel-icon",Ir:"{{icon}}"},{Z:"div",
|
|
j:"ytp-user-info-panel-content",B:[{Z:"div",B:[{Z:"text",C:{tabIndex:"{{userInfoFocusable}}"},Ir:"Disconnessione effettuata"}]},{Z:"div",j:"ytp-user-info-panel-login",B:[{Z:"a",C:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ir:A.K().jI?"":"Accedi a YouTube"}]}]}]});this.rT=A;this.sourceElement=L;A.K().ZM||A.K().jI||this.Y(this.m4("ytp-user-info-panel-login"),"click",this.P_);this.closeButton=new g.q({Z:"button",Rr:["ytp-collapse","ytp-button"],C:{title:"Chiudi"},B:[g.C1()]});this.closeButton.DM(this.element);
|
|
g.W(this,this.closeButton);this.Y(window,"blur",this.hide);this.Y(document,"click",this.B_);this.zL()};
|
|
BxE=function(A,L,B){g.Im.call(this,A);var f=this;this.Wz=L;this.XO=B;this.getVideoUrl=new ef(6);this.LO=new ef(5);this.o_=new ef(4);this.Ov=new ef(3);this.Ye=new g.of(g.Bo({href:"{{href}}",target:this.S.K().yj},void 0,!0),2,"Risoluzione dei problemi di riproduzione");this.showVideoInfo=new g.of(g.Bo(),1,"Statistiche per nerd");this.PG=new g.DE({Z:"div",Rr:["ytp-copytext","ytp-no-contextmenu"],C:{draggable:"false",tabindex:"1"},Ir:"{{text}}"});this.yw=new dA(this.S,this.PG);this.rF=this.T$=null;g.MM(this.S.K())&&
|
|
(this.closeButton=new g.q({Z:"button",Rr:["ytp-collapse","ytp-button"],C:{title:"Chiudi"},B:[g.C1()]}),g.W(this,this.closeButton),this.closeButton.DM(this.element),this.closeButton.listen("click",this.C4,this));g.MM(this.S.K())&&(this.ZJ=new g.of(g.Bo(),10,"Account"),g.W(this,this.ZJ),this.ov(this.ZJ,!0),this.ZJ.listen("click",this.Y_T,this),A.createClientVe(this.ZJ.element,this.ZJ,137682));this.S.K().R_&&(this.WB=new Dq("Loop",9),g.W(this,this.WB),this.ov(this.WB,!0),this.WB.listen("click",this.v64,
|
|
this),A.createClientVe(this.WB.element,this.WB,28661));this.S.J("web_player_miniplayer_in_context_menu")&&(this.R6=new g.of(g.Bo(),8,"Mini player"),g.W(this,this.R6),this.ov(this.R6,!0),this.R6.listen("click",this.c$r,this),A.createClientVe(this.R6.element,this.R6,62946));this.S.J("web_watch_pip_context_menu_button")&&this.S.K().showMiniplayerButton&&(this.RM=new g.of(g.Bo(),7,"Picture in picture"),g.W(this,this.RM),this.ov(this.RM,!0),this.RM.listen("click",this.ljD,this),A.createClientVe(this.RM.element,
|
|
this.RM,194442));g.W(this,this.getVideoUrl);this.ov(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.CqD,this);A.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.W(this,this.LO);this.ov(this.LO,!0);this.LO.listen("click",this.sAM,this);A.createClientVe(this.LO.element,this.LO,28660);g.W(this,this.o_);this.ov(this.o_,!0);this.o_.listen("click",this.fxD,this);A.createClientVe(this.o_.element,this.o_,28658);g.W(this,this.Ov);this.ov(this.Ov,!0);this.Ov.listen("click",this.hSM,
|
|
this);g.W(this,this.Ye);this.ov(this.Ye,!0);this.Ye.listen("click",this.I1F,this);g.W(this,this.showVideoInfo);this.ov(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.gJM,this);g.W(this,this.PG);this.PG.listen("click",this.ZDF,this);g.W(this,this.yw);aKE()&&(this.T$=new g.q({Z:"textarea",j:"ytp-html5-clipboard",C:{readonly:"",tabindex:"-1"}}),g.W(this,this.T$),this.T$.DM(this.element));var K;(K=this.ZJ)==null||K.setIcon(SSk());var V;(V=this.WB)==null||V.setIcon(FuQ());var J;(J=this.R6)==
|
|
null||J.setIcon(this.S.J("delhi_modern_web_player_icons")?BL6():kr());var R;(R=this.RM)==null||R.setIcon(kr());this.Ov.setIcon({Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
|
|
fill:"white","fill-rule":"evenodd"}}]});this.Ye.setIcon(sW());this.showVideoInfo.setIcon(apL());this.Y(A,"onLoopChange",this.onLoopChange);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"fullscreentoggled",function(){AP7(f)});
|
|
this.Y(A,"minimized",function(){AP7(f);var Z;(Z=f.RM)==null||Z.xP(!f.S.isMinimized()&&f.S.K().showMiniplayerButton)});
|
|
L01(this);otw(this,this.S.getVideoData())};
|
|
zB=function(A,L){var B=!1;if(A.T$){var f=A.T$.element;f.value=L;f.select();try{B=document.execCommand("copy")}catch(K){}}B?A.Wz.YP():(A.PG.setContent(L,"text"),g.yp(A.Wz,A.yw),j3(A.PG.element),A.T$&&(A.T$=null,L01(A)));return B};
|
|
aKE=function(){var A=document.queryCommandSupported&&document.queryCommandSupported("copy");gWw("Chromium")>=43&&(A=!0);gWw("Firefox")<=40&&(A=!1);return A};
|
|
AP7=function(A){var L;(L=A.R6)==null||L.xP(!A.S.isFullscreen()&&!A.S.isMinimized()&&A.S.getPresentingPlayerType()!==2&&A.S.K().showMiniplayerButton)};
|
|
otw=function(A,L){var B=A.S.K(),f=A.S.getPresentingPlayerType()===2,K=!f||L.isListed;K=!B.qp&&!!L.videoId&&K;B.playerStyle!=="play"?B="https://support.google.com/youtube/?p=report_playback":(B={contact_type:"playbackissue",html5:1,ei:L.eventId,v:L.videoId,p:"movies_playback"},L.W&&(B.fmt=L.W.itag),L.clientPlaybackNonce&&(B.cpn=L.clientPlaybackNonce),L.partnerId&&(B.partnerid=L.partnerId),B=g.ip("//support.google.com/googleplay/",B));A.o_.xP(K&&L.allowEmbed);A.getVideoUrl.xP(K);A.LO.xP(K&&!L.isLivePlayback);
|
|
A.Ye.setContent(B,"href");var V;(V=A.WB)==null||V.xP(!L.isLivePlayback&&!f);AP7(A);var J;(J=A.ZJ)==null||J.xP(!f)};
|
|
L01=function(A){var L=!!A.T$;g.Lh(A.Ov,L?"Copia info di debug":"Informazioni di debug");nj(A.Ov,!L);g.Lh(A.o_,L?"Copia codice per l'incorporamento":"Visualizza il codice di incorporamento");nj(A.o_,!L);g.Lh(A.getVideoUrl,L?"Copia URL video":"Visualizza l'URL del video");nj(A.getVideoUrl,!L);g.Lh(A.LO,L?"Copia l'URL del video in corrispondenza del minuto corrente":"Visualizza l'URL del video al minuto corrente");nj(A.LO,!L);A.o_.setIcon(L?nz8():null);A.getVideoUrl.setIcon(L?HP():null);A.LO.setIcon(L?
|
|
HP():null)};
|
|
fd8=function(A){return g.MM(A.S.K())?A.ZJ:A.WB};
|
|
var w6w=function(A,L){return wy[S[2]](this,10,A,L)};
|
|
var VcS=function(A,L){g.pl.call(this,A);this.XO=L;this.W=new g.dN(this);this.X=new g.aa(this.a14,1E3,this);this.G=this.rf=null;g.W(this,this.W);g.W(this,this.X);L=this.S.K();A.createClientVe(this.element,this,28656);g.R1(this.element,"ytp-contextmenu");this.S.K().experiments.GL("delhi_modern_web_player")&&g.SK(L)&&g.R1(this.element,"ytp-delhi-modern-contextmenu");K0y(this);this.hide()},K0y=function(A){g.$_(A.W);
|
|
var L=A.S.K();L.playerStyle==="gvn"||L.W||L.Ex||(L=A.S.Pn(),A.W.Y(L,"contextmenu",A.U8n),A.W.Y(L,"touchstart",A.onTouchStart,null,!0),A.W.Y(L,"touchmove",A.Z8,null,!0),A.W.Y(L,"touchend",A.Z8,null,!0))},JPQ=function(A){A.S.isFullscreen()?g.Wh(A.S,A.element,10):A.DM(uz(A).body)},ug=function(A,L,B){B=B===void 0?240:B;
|
|
g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-copylink-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-copylink-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-copylink-title",Ir:"Copia link",C:{"aria-hidden":"true"}}]});this.api=A;this.N=L;this.W=B;this.visible=!1;this.tooltip=this.N.Ce();L=A.K();this.tooltip.element.setAttribute("aria-live","polite");g.D1(this.element,
|
|
"ytp-show-copylink-title",g.MM(L));A.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.Y(A,"videodatachange",this.zL);this.Y(A,"videoplayerreset",this.zL);this.Y(A,"appresize",this.zL);this.zL();this.addOnDisposeCallback(g.QW(this.tooltip,this.element))},Sfe=function(A){var L=A.api.K(),B=A.api.getVideoData(),f=A.api.Pn().getPlayerSize().width;
|
|
L=L.V;return!!B.videoId&&f>=A.W&&B.kR&&!B.OE&&!A.api.isEmbedsShortsMode()&&!L},RCE=function(A){A.updateValue("icon",yo());
|
|
if(A.api.K().W)A.tooltip.yR(A.element,"Link copiato negli appunti");else{A.updateValue("title-attr","Link copiato negli appunti");A.updateValue("tooltip-title","Link copiato negli appunti");A.tooltip.qq();A.tooltip.yR(A.element);var L=A.listen("mouseleave",function(){A.J$(L);A.zL();A.tooltip.Ed()})}},ZQw=function(A,L){return g.c(function(B){if(B.N==1)return g.S5(B,2),g.X(B,navigator.clipboard.writeText(L),4);
|
|
if(B.N!=2)return B.return(!0);g.NX(B);var f=B.return,K=!1,V=g.TO("TEXTAREA");V.value=L;V.setAttribute("readonly","");var J=A.api.getRootNode();J.appendChild(V);if(ed){var R=window.getSelection();R.removeAllRanges();var Z=document.createRange();Z.selectNodeContents(V);R.addRange(Z);V.setSelectionRange(0,L.length)}else V.select();try{K=document.execCommand("copy")}catch(N){}J.removeChild(V);return f.call(B,K)})},NxL=function(A){g.q.call(this,{Z:"div",
|
|
j:"ytp-doubletap-ui-legacy",B:[{Z:"div",j:"ytp-doubletap-fast-forward-ve"},{Z:"div",j:"ytp-doubletap-rewind-ve"},{Z:"div",j:"ytp-doubletap-static-circle",B:[{Z:"div",j:"ytp-doubletap-ripple"}]},{Z:"div",j:"ytp-doubletap-overlay-a11y"},{Z:"div",j:"ytp-doubletap-seek-info-container",B:[{Z:"div",j:"ytp-doubletap-arrows-container",B:[{Z:"span",j:"ytp-doubletap-base-arrow"},{Z:"span",j:"ytp-doubletap-base-arrow"},{Z:"span",j:"ytp-doubletap-base-arrow"}]},{Z:"div",j:"ytp-doubletap-tooltip",B:[{Z:"div",
|
|
j:"ytp-seek-icon-text-container",B:[{Z:"div",j:"ytp-seek-icon",Ir:"{{seekIcon}}"},{Z:"div",j:"ytp-chapter-seek-text-legacy",Ir:"{{seekText}}"}]},{Z:"div",j:"ytp-doubletap-tooltip-label",Ir:"{{seekTime}}"}]}]}]});this.S=A;this.U=new g.aa(this.show,10,this);this.W=new g.aa(this.hide,700,this);this.T=this.V=0;this.Wn=this.D=!1;this.N=this.m4("ytp-doubletap-static-circle");g.W(this,this.U);g.W(this,this.W);this.hide();this.X=this.m4("ytp-doubletap-fast-forward-ve");this.G=this.m4("ytp-doubletap-rewind-ve");
|
|
this.S.createClientVe(this.X,this,28240);this.S.createClientVe(this.G,this,28239);this.S.logVisibility(this.X,!0);this.S.logVisibility(this.G,!0);this.D=A.J("web_show_cumulative_seek_time");this.Wn=A.J("web_center_static_circles")},F0Q=function(A,L){L=g.B$("$TOTAL_SEEK_TIME secondi",{TOTAL_SEEK_TIME:L.toString()});
|
|
A.updateValue("seekTime",L)},dYQ=function(A){DW.call(this,A,!1,!0);
|
|
this.ZM=[];this.cn=[];this.element.setAttribute("data-overlay-order","9");DYy(this,this.S.getVideoData());this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.wT=new g.q({Z:"div",j:"ytp-featured-product-open-in-new"});g.W(this,this.wT);this.countdownTimer=new g.q({Z:"text",j:"ytp-featured-product-countdown",Ir:"{{content}}"});this.countdownTimer.hide();g.W(this,this.countdownTimer);this.V=new g.q({Z:"div",j:"ytp-featured-product-trending",B:[{Z:"div",j:"ytp-featured-product-trending-icon"},
|
|
{Z:"text",j:"ytp-featured-product-trending-text",Ir:"{{trendingOffer}}"}]});this.V.hide();g.W(this,this.V);this.overflowButton=new g.q({Z:"button",Rr:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.T=new g.q({Z:"text",j:"ytp-featured-product-exclusive-countdown",Ir:"{{content}}",C:{id:"exclusiveCountdown","aria-hidden":"true"}});this.T.hide();g.W(this,this.T);this.D=new g.q({Z:"div",j:"ytp-featured-product-exclusive-container",
|
|
C:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},B:[{Z:"div",j:"ytp-featured-product-exclusive-badge-container",B:[{Z:"div",j:"ytp-featured-product-exclusive-badge",B:[{Z:"text",j:"ytp-featured-product-exclusive-badge-text",Ir:"{{exclusive}}",C:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.T]});this.D.hide();g.W(this,this.D);this.banner=new g.q({Z:"a",j:"ytp-featured-product-container",B:[{Z:"div",j:"ytp-featured-product-thumbnail",B:[{Z:"img",C:{src:"{{thumbnail}}"}},this.wT]},{Z:"div",
|
|
j:"ytp-featured-product-details",B:[{Z:"text",j:"ytp-featured-product-title",Ir:"{{title}}"},this.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",j:"ytp-featured-product-price-container",C:{"aria-label":"{{priceA11yText}}"},B:[{Z:"text",j:"ytp-featured-product-price-when-promotion-text-enabled",Ir:"{{price}}",C:{"aria-hidden":"true"}},{Z:"text",j:"ytp-featured-product-promotion-text",Ir:"{{promotionText}}",C:{"aria-hidden":"true"}}]}:{Z:"div",C:{"aria-label":"{{priceA11yText}}"},
|
|
B:[{Z:"text",j:"ytp-featured-product-price",Ir:"{{price}}",C:{"aria-hidden":"true"}},{Z:"text",j:"ytp-featured-product-sales-original-price",Ir:"{{salesOriginalPrice}}",C:{"aria-hidden":"true"}},{Z:"text",j:"ytp-featured-product-price-drop-reference-price",Ir:"{{priceDropReferencePrice}}",C:{"aria-hidden":"true"}}]},this.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",j:"ytp-featured-product-when-promotion-text-enabled",B:[{Z:"text",j:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",
|
|
Ir:"{{affiliateDisclaimer}}"},this.V,{Z:"text",j:"ytp-featured-product-vendor-when-promotion-text-enabled",Ir:"{{vendor}}"}]}:{Z:"div",B:[{Z:"text",j:"ytp-featured-product-affiliate-disclaimer",Ir:"{{affiliateDisclaimer}}"},this.S.J("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.V,{Z:"text",j:"ytp-featured-product-vendor",Ir:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.W(this,this.banner);this.banner.DM(this.U.element);this.Y(this.S,g.qR("featured_product"),
|
|
this.Max);this.Y(this.S,g.PR("featured_product"),this.Tr);this.Y(this.S,"videodatachange",this.onVideoDataChange);this.Y(this.overflowButton.element,"click",this.dZ);this.Y(A,"featuredproductdismissed",this.qb)};
|
|
var DCk=function(A){return jE[S[2]](this,72,A)};
|
|
Id7=function(A){var L,B;A=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData;var f,K,V;return(A==null||!A.affiliateDisclaimer)&&(A==null?0:(f=A.exclusivesData)==null?0:f.exclusiveOfferLabelText)&&(A==null?0:(K=A.exclusivesData)==null?0:K.expirationTimestampMs)&&(A==null?0:(V=A.exclusivesData)==null?0:V.exclusiveOfferCountdownText)?!0:!1};
|
|
pJ8=function(A){var L,B,f,K,V=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:(f=B.itemData)==null?void 0:(K=f.exclusivesData)==null?void 0:K.expirationTimestampMs;L=(Number(V)-Date.now())/1E3;if(L>0){if(L<604800){var J,R,Z,N;B=(J=A.N)==null?void 0:(R=J.bannerData)==null?void 0:(Z=R.itemData)==null?void 0:(N=Z.exclusivesData)==null?void 0:N.exclusiveOfferCountdownText;if(B!==void 0)for(J=Date.now(),R=g.m(B),Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z!==void 0&&Z.text!==void 0&&(N=Number(Z.textDisplayStartTimestampMs),
|
|
!isNaN(N)&&J>=N)){Z.insertCountdown?(L=Z.text.replace(/\$0/,String(VG({seconds:L}))),A.T.setContent(L)):A.T.setContent(Z.text);A.T.show();break}}var F,D,I,d;A.D.update({exclusive:(F=A.N)==null?void 0:(D=F.bannerData)==null?void 0:(I=D.itemData)==null?void 0:(d=I.exclusivesData)==null?void 0:d.exclusiveOfferLabelText});A.D.show();a_(A);var w;(w=A.t$)==null||w.start()}else wJL(A)};
|
|
wJL=function(A){var L;(L=A.t$)==null||L.stop();A.T.hide();A.D.hide();AP(A)};
|
|
yPe=function(A){var L,B,f=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData;return A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(f==null||!f.priceReplacementText)&&(f==null?0:f.promotionText)?f==null?void 0:f.promotionText.content:null};
|
|
jD7=function(A){var L,B,f=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData,K,V;if(!(f!=null&&f.priceReplacementText||A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(f==null?0:(K=f.dealsData)==null?0:(V=K.sales)==null?0:V.originalPrice)){var J,R;return f==null?void 0:(J=f.dealsData)==null?void 0:(R=J.sales)==null?void 0:R.originalPrice}return null};
|
|
gte=function(A){var L,B,f=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData,K,V,J,R;if(!((f==null?0:f.priceReplacementText)||A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(f==null?0:(K=f.dealsData)==null?0:(V=K.sales)==null?0:V.originalPrice))&&(f==null?0:(J=f.dealsData)==null?0:(R=J.priceDrop)==null?0:R.referencePrice)){var Z,N;return f==null?void 0:(Z=f.dealsData)==null?void 0:(N=Z.priceDrop)==null?void 0:N.referencePrice}return null};
|
|
GoQ=function(A){var L,B,f=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData;if(f==null?0:f.priceReplacementText)return f==null?void 0:f.priceReplacementText;if((f==null?0:f.promotionText)&&A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var K;return(f==null?void 0:f.price)+" "+(f==null?void 0:(K=f.promotionText)==null?void 0:K.content)}var V,J;if(f==null?0:(V=f.dealsData)==null?0:(J=V.sales)==null?0:J.originalPrice){var R,Z;return f==null?void 0:(R=f.dealsData)==
|
|
null?void 0:(Z=R.sales)==null?void 0:Z.salesPriceAccessibilityLabel}var N,F;if(f==null?0:(N=f.dealsData)==null?0:(F=N.priceDrop)==null?0:F.referencePrice){var D,I;return(f==null?void 0:f.price)+" "+(f==null?void 0:(D=f.dealsData)==null?void 0:(I=D.priceDrop)==null?void 0:I.referencePrice)}return f==null?void 0:f.price};
|
|
rPk=function(A){if(A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var L,B,f;return A.V.bC?null:(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:(f=B.itemData)==null?void 0:f.vendorName}var K,V,J,R,Z,N;return A.V.bC||A.D.bC||((K=A.N)==null?0:(V=K.bannerData)==null?0:(J=V.itemData)==null?0:J.affiliateDisclaimer)?null:(R=A.N)==null?void 0:(Z=R.bannerData)==null?void 0:(N=Z.itemData)==null?void 0:N.vendorName};
|
|
HQD=function(A,L){LQ(A);if(L){var B=g.Iq.getState().entities;B=nz(B,"featuredProductsEntity",L);if(B!=null&&B.productsData){L=[];B=g.m(B.productsData);for(var f=B.next();!f.done;f=B.next()){f=f.value;var K=void 0;if((K=f)!=null&&K.identifier&&f.featuredSegments){A.ZM.push(f);var V=void 0;K=g.m((V=f)==null?void 0:V.featuredSegments);for(V=K.next();!V.done;V=K.next()){var J=V.value;V=sD1(J.startTimeSec);V!==void 0&&(J=sD1(J.endTimeSec),L.push(new g.WR(V*1E3,J===void 0?0x7ffffffffffff:J*1E3,{id:f.identifier,
|
|
namespace:"featured_product"})))}}}A.S.dX(L)}}};
|
|
AP=function(A){if(A.trendingOfferEntityKey){var L=g.Iq.getState().entities;if(L=nz(L,"trendingOfferEntity",A.trendingOfferEntityKey)){var B,f,K;L.encodedSkuId!==((B=A.N)==null?void 0:(f=B.bannerData)==null?void 0:(K=f.itemData)==null?void 0:K.encodedOfferSkuId)?a_(A):(A.V.update({trendingOffer:L.shortLabel+" \u2022 "+L.countLabel}),A.V.show(),A.banner.update({vendor:rPk(A)}))}else a_(A)}else a_(A)};
|
|
a_=function(A){A.V.hide();A.banner.update({vendor:rPk(A)})};
|
|
DYy=function(A,L){!A.S.J("web_enable_shopping_timely_shelf_client")||A.S.J("web_force_featured_product_banner_with_timely_shelf")||!L||L.isLivePlayback||L.isPremiere?A.badge.element.classList.remove("ytp-timely-shelf-present"):A.badge.element.classList.add("ytp-timely-shelf-present")};
|
|
LQ=function(A){A.ZM=[];A.Tr();A.S.Jf("featured_product")};
|
|
hCL=function(A){var L,B,f,K,V=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:(f=B.itemData)==null?void 0:(K=f.hiddenProductOptions)==null?void 0:K.dropTimestampMs;L=(Number(V)-Date.now())/1E3;A.countdownTimer.setContent(VG({seconds:L}));if(L>0){var J;(J=A.zV)==null||J.start()}};
|
|
bQC=function(A){var L;(L=A.zV)==null||L.stop();A.countdownTimer.hide()};
|
|
sD1=function(A){if(A!==void 0&&A.trim()!==""&&(A=Math.trunc(Number(A.trim())),!(isNaN(A)||A<0)))return A};
|
|
Cr8=function(A,L,B){g.q.call(this,{Z:"div",Rr:["ytp-info-panel-action-item"],B:[{Z:"div",j:"ytp-info-panel-action-item-disclaimer",Ir:"{{disclaimer}}"},{Z:"a",Rr:["ytp-info-panel-action-item-button","ytp-button"],C:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},B:[{Z:"div",j:"ytp-info-panel-action-item-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-info-panel-action-item-label",Ir:"{{label}}"}]}]});this.S=A;this.W=B;this.disclaimer=this.m4("ytp-info-panel-action-item-disclaimer");this.button=
|
|
this.m4("ytp-info-panel-action-item-button");this.gX=!1;this.S.createServerVe(this.element,this,!0);this.listen("click",this.onClick);A="";B=g.y(L==null?void 0:L.onTap,XP);var f=g.y(B,g.Mt);this.gX=!1;f?(A=f.url||"",A.startsWith("//")&&(A="https:"+A),this.gX=!0,g.tF(this.button,g.hF(A))):(f=g.y(B,tc1))&&!this.W?((A=f.phoneNumbers)&&A.length>0?(A="sms:"+A[0],f.messageText&&(A+="?&body="+encodeURI(f.messageText))):A="",this.gX=!0,g.tF(this.button,g.hF(A,[koy]))):(B=g.y(B,Txw))&&!this.W&&(A=B.phoneNumber?
|
|
"tel:"+B.phoneNumber:"",this.gX=!0,g.tF(this.button,g.hF(A,[ld8])));this.S.J("embeds_enable_info_panel_dismissal")&&!A&&(B=g.y(L==null?void 0:L.onTap,XP),f=g.y(B,mYD))&&(this.gX=!0,this.N=B,this.feedbackToken=f.feedbackToken);var K;if(B=(K=L.disclaimerText)==null?void 0:K.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var V,J;this.update({label:(V=L.bodyText)==null?void 0:V.content,icon:this.S.J("embeds_enable_info_panel_dismissal")?QDv((J=L.icon)==
|
|
null?void 0:J.iconType):tr(),disclaimer:B})}else{this.disclaimer.style.display="none";var R,Z;this.update({label:(R=L.bodyText)==null?void 0:R.content,icon:this.S.J("embeds_enable_info_panel_dismissal")?QDv((Z=L.icon)==null?void 0:Z.iconType):tr()})}this.S.setTrackingParams(this.element,L.trackingParams||null);this.gX&&(this.V={externalLinkData:{url:A}})};
|
|
QDv=function(A){switch(A){case "OPEN_IN_NEW":return tr();case "NOT_INTERESTED":return{Z:"svg",C:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return sW();default:return tr()}};
|
|
iQ7=function(A,L){var B=Ru();g.zg.call(this,A,{Z:"div",j:"ytp-info-panel-detail-skrim",B:[{Z:"div",j:"ytp-info-panel-detail",C:{role:"dialog",id:B},B:[{Z:"div",j:"ytp-info-panel-detail-header",B:[{Z:"div",j:"ytp-info-panel-detail-title",Ir:"{{title}}"},{Z:"button",Rr:["ytp-info-panel-detail-close","ytp-button"],C:{"aria-label":"Chiudi"},B:[g.GZ()]}]},{Z:"div",j:"ytp-info-panel-detail-body",Ir:"{{body}}"},{Z:"div",j:"ytp-info-panel-detail-items"}]}]},250);var f=this;this.N=L;this.items=this.m4("ytp-info-panel-detail-items");
|
|
this.W=new g.dN(this);this.itemData=[];this.V=B;this.Y(this.m4("ytp-info-panel-detail-close"),"click",this.YP);this.Y(this.m4("ytp-info-panel-detail-skrim"),"click",this.YP);this.Y(this.m4("ytp-info-panel-detail"),"click",function(K){K.stopPropagation()});
|
|
this.Y(this.S,"infopaneldetaildismissed",function(){A.J("embeds_enable_info_panel_dismissal")&&f.YP()});
|
|
g.W(this,this.W);this.S.createServerVe(this.element,this,!0);this.Y(A,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",A.getVideoData());this.hide()};
|
|
$Ye=function(A,L){A=g.m(A.itemData);for(var B=A.next();!B.done;B=A.next())B=B.value,B.S.logVisibility(B.element,L)};
|
|
Ete=function(A,L){g.q.call(this,{Z:"button",j:"ytp-info-panel-preview",C:{"aria-live":"assertive","aria-atomic":"true","aria-owns":L.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-info-panel-preview-text",Ir:"{{text}}"},{Z:"div",j:"ytp-info-panel-preview-chevron",Ir:"{{chevron}}"}]});var B=this;this.S=A;this.xb=this.N=this.videoId=null;this.isDismissed=this.V=this.showControls=this.W=!1;this.Y(this.element,"click",function(){A.logClick(B.element);A.p5();
|
|
ah(L)});
|
|
this.fade=new g.KL(this,250,!1,100);g.W(this,this.fade);this.S.createServerVe(this.element,this,!0);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"presentingplayerstatechange",this.W1);this.Y(this.S,"paidcontentoverlayvisibilitychange",this.v8);this.Y(this.S,"infopaneldetailvisibilitychange",this.v8);var f=A.getVideoData()||{};XJ1(f)&&OQ0(this,f);this.Y(A,"onShowControls",this.yL);this.Y(A,"onHideControls",this.NZ);this.Y(this.S,"infopaneldetaildismissed",function(){A.J("embeds_enable_info_panel_dismissal")&&
|
|
(B.isDismissed=!0,B.hide())})};
|
|
OQ0=function(A,L){if(!L.b8||!A.S.BF()){var B=L.Qu||1E4,f=XJ1(L);A.N?L.videoId&&L.videoId!==A.videoId&&(g.o1(A.N),A.videoId=L.videoId,f?(cP8(A,B,L),A.fD()):(A.YP(),A.N.dispose(),A.N=null)):f&&(L.videoId&&(A.videoId=L.videoId),cP8(A,B,L),A.fD())}};
|
|
XJ1=function(A){var L,B,f,K;return!!((L=A.KY)==null?0:(B=L.title)==null?0:B.content)||!!((f=A.KY)==null?0:(K=f.bodyText)==null?0:K.content)};
|
|
cP8=function(A,L,B){A.N&&A.N.dispose();A.N=new g.aa(A.XR4,L,A);g.W(A,A.N);var f;L=((f=B.KY)==null?void 0:f.trackingParams)||null;A.S.setTrackingParams(A.element,L);var K;var V,J;if(B==null?0:(V=B.KY)==null?0:(J=V.title)==null?0:J.content){var R;f=(K=B.KY)==null?void 0:(R=K.title)==null?void 0:R.content;var Z,N;if((Z=B.KY)==null?0:(N=Z.bodyText)==null?0:N.content)f+=" \u2022 ";K=f}else K="";var F,D;B=((F=B.KY)==null?void 0:(D=F.bodyText)==null?void 0:D.content)||"";A.update({text:K+B,chevron:g.gq()})};
|
|
Mc0=function(A,L){A.N&&(g.x(L,8)?(A.W=!0,A.fD(),A.N.start()):(g.x(L,2)||g.x(L,64))&&A.videoId&&(A.videoId=null))};
|
|
oD=function(A){var L=null;try{L=A.toLocaleString("it",{style:"percent"})}catch(B){L=A.toLocaleString(void 0,{style:"percent"})}return L};
|
|
BJ=function(A,L){var B=0;A=g.m(A);for(var f=A.next();!(f.done||f.value.startTime>L);f=A.next())B++;return B===0?B:B-1};
|
|
Yf1=function(A,L){for(var B=0,f=g.m(A),K=f.next();!K.done;K=f.next()){K=K.value;if(L<K.timeRangeStartMillis)return null;if(L>=K.timeRangeStartMillis&&L<K.timeRangeStartMillis+K.N)break;B++}B+1<A.length&&A[B+1].timeRangeStartMillis<=L&&B++;return B<A.length?B:null};
|
|
UYk=function(A,L){L=BJ(A,L)+1;return L<A.length?L:-1};
|
|
W0S=function(A,L){return BJ(A,L)-1};
|
|
vt0=function(A,L){return new g.WR(A,L,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+A})};
|
|
Pr1=function(A,L,B,f,K,V,J,R){g.dN.call(this);var Z=this;this.api=A;this.D=L;this.contextMenu=B;this.C8=f;this.XO=K;this.N=V;this.X=J;this.progressBar=R;this.U=new g.aa(function(){qfv(Z,!1)},1E3);
|
|
this.W="";this.V={r7:!1,V1:!1,u$:!1};g.W(this,this.U);this.Y(L,"mousedown",function(){fQ(Z,!1)});
|
|
this.Y(B.element,"mousedown",function(){fQ(Z,!1)});
|
|
this.Y(L,"keydown",this.zp);this.Y(B.element,"keydown",this.zp);this.Y(L,"keyup",this.EG);this.Y(B.element,"keyup",this.EG)};
|
|
xY8=function(A,L){if(L<0)return"0";A=Math.floor(Math.min(L,A.api.getDuration())*1E3);return A>2147483647?"0":String(A)};
|
|
KQ=function(A,L,B){var f=A.api.getCurrentTime(),K=xY8(A,f);A=xY8(A,f+L);return{startMediaTimeMs:K,endMediaTimeMs:A,seekSource:B}};
|
|
eCE=function(A){var L,B=(L=A.api.getVideoData())==null?void 0:L.aA();return A.api.getPresentingPlayerType(B)!==2};
|
|
fQ=function(A,L){A.V.V1=L;g.D1(A.api.getRootNode(),"ytp-probably-keyboard-focus",L);g.D1(A.contextMenu.element,"ytp-probably-keyboard-focus",L)};
|
|
JP=function(A,L,B,f){var K=g.y2(A.api.SI());if(K&&K.loaded){var V=A.api.getSubtitlesUserSettings();K=void 0;for(var J=0;J<g.VF.length;J++){var R=g.VF[J];if(R.option===L){K=R.options;break}}J=void 0;for(R=0;R<K.length;R++)K[R].option===V[L]&&(J=R);if(f)if(B){if(J===0)return}else if(J===K.length-1)return;f={};f[L]=K[(J+(B?K.length-1:1))%K.length].option;A.api.updateSubtitlesUserSettings(f);qfv(A,!0);A.U.start()}};
|
|
qfv=function(A,L){g.y2(A.api.SI())&&A.api.setOption("captions","sampleSubtitles",L)};
|
|
Sc=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-overflow-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Altro":"","data-tooltip-title":"Altro","aria-haspopup":"true","aria-owns":L.element.id},B:[{Z:"div",j:"ytp-overflow-icon",B:[{Z:"svg",C:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},B:[{Z:"path",C:{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 B=this;this.S=A;this.FL=L;this.visible=!1;A.createClientVe(this.element,this,16499);this.Y(A,"videoplayerreset",this.zL);this.Y(A,"appresize",this.zL);this.Y(A,"fullscreentoggled",this.zL);this.Y(A,"presentingplayerstatechange",this.zL);this.zL();Cm(A,this.element,this);this.listen("click",function(){A.logClick(B.element);ah(L,B.element,!1)});
|
|
this.Y(L.closeButton,"click",function(){B.focus()})};
|
|
nt7=function(A){g.zg.call(this,A,{Z:"div",j:"ytp-overflow-panel",C:{id:Ru(),role:"dialog"},B:[{Z:"div",j:"ytp-overflow-panel-content",B:[{Z:"div",j:"ytp-overflow-panel-action-buttons",Ir:"{{buttons}}"}]},{Z:"button",Rr:["ytp-overflow-panel-close","ytp-button"],C:{"data-tooltip-title":"Chiudi",title:A.K().J("player_tooltip_data_title_killswitch")?"Chiudi":""},B:[g.GZ()]}]},250);this.actionButtons=[];this.N=this.m4("ytp-overflow-panel-content");this.closeButton=this.m4("ytp-overflow-panel-close");this.Y(this.closeButton,
|
|
"click",this.YP);Cm(A,this.closeButton,this);this.listen("click",this.H1);this.Y(A,"videoplayerreset",this.hide);this.Y(A,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
|
|
zCD=function(A,L){A.actionButtons.includes(L)||(A.actionButtons.push(L),A.updateValue("buttons",A.actionButtons))};
|
|
uSw=function(A,L){A=g.m(A.actionButtons);for(var B=A.next();!B.done;B=A.next())B.value.Hy(L)};
|
|
adS=function(A,L,B){var f=g.R_(L,B),K=f.g1("default.jpg");g.q.call(this,{Z:"a",Rr:["ytp-video-menu-item","ytp-button"],C:{role:"menuitemradio","aria-label":f.title,href:A.K().getVideoUrl(f.videoId,L.listId?L.listId.toString():null)},B:[{Z:"div",j:"ytp-video-menu-item-index",Ir:String(B+1)},{Z:"div",j:"ytp-video-menu-item-now-playing",Ir:"\u25b6"},{Z:"div",j:"ytp-video-menu-item-thumbnail",C:{style:K?"background-image: url("+K+");":void 0}},{Z:"div",j:"ytp-video-menu-item-title",Ir:f.title},{Z:"div",
|
|
j:"ytp-video-menu-item-author",Ir:f.author}]});this.api=A;this.index=B;this.listen("click",this.onClick)};
|
|
ASL=function(A){g.zg.call(this,A,{Z:"div",j:"ytp-playlist-menu",C:{role:"dialog",id:Ru()},B:[{Z:"div",j:"ytp-playlist-menu-header",B:[{Z:"div",j:"ytp-playlist-menu-title",B:[A.K().V?{Z:"span",j:"ytp-playlist-menu-title-name",Ir:"{{title}}"}:{Z:"a",j:"ytp-playlist-menu-title-name",C:{href:"{{playlisturl}}"},Ir:"{{title}}"},{Z:"button",Rr:["ytp-playlist-menu-close","ytp-button"],C:{"aria-label":"Chiudi"},B:[g.GZ()]}]},{Z:"div",j:"ytp-playlist-menu-subtitle",Ir:"{{subtitle}}"}]},{Z:"div",j:"ytp-playlist-menu-items",
|
|
C:{role:"menu"}}]},250);this.api=A;this.W=this.selected=this.V=this.playlist=null;this.items=this.m4("ytp-playlist-menu-items");this.N=new g.dN(this);this.playlistData=[];this.Y(this.m4("ytp-playlist-menu-close"),"click",this.YP);var L=this.m4("ytp-playlist-menu-title-name");A.K().V||(this.W=this.Y(L,"click",this.Qy4));g.W(this,this.N);this.hide()};
|
|
RD=function(A,L){var B={};g.q.call(this,{Z:"button",Rr:["ytp-playlist-menu-button","ytp-button"],C:(B.title=A.J("player_tooltip_data_title_killswitch")?"{{title}}":"",B["data-tooltip-title"]="{{tooltip-title}}",B["aria-owns"]=String(L.element.id),B["aria-haspopup"]="true",B["aria-label"]="Playlist",B["data-overlay-order"]="3",B),B:[{Z:"div",j:"ytp-playlist-menu-button-icon",B:[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]}]},{Z:"div",j:"ytp-playlist-menu-button-title",Ir:"{{playlistTitle}}"},{Z:"div",j:"ytp-playlist-menu-button-text",Ir:"{{text}}"}]});var f=this;this.api=A;this.playlist=null;this.visible=!1;A.createClientVe(this.element,this,70344);this.Y(A,"videodatachange",this.N);this.Y(A,"videoplayerreset",this.N);this.Y(A,"onPlaylistUpdate",this.N);this.Y(A,"presentingplayerstatechange",this.zL);this.Y(A,"appresize",this.zL);this.hide();this.N();Cm(A,this.element,this);this.listen("click",function(){A.logClick(f.element);
|
|
A.J("delhi_web_player_use_external_playlist_panel")?A.Kr("onToggleExternalPlaylistPanel"):ah(L,f.element,!1)})};
|
|
LjE=function(A,L){g.q.call(this,{Z:"div",j:"ytp-promotooltip-wrapper",B:[{Z:"div",j:"ytp-promotooltip-container",B:[{Z:"div",j:"ytp-promotooltip-content",B:[{Z:"div",j:"ytp-promotooltip-title",Ir:"{{title}}"},{Z:"div",j:"ytp-promotooltip-details",Ir:"{{details}}"}]},{Z:"div",j:"ytp-promotooltip-buttons",B:[{Z:"div",j:"ytp-promotooltip-dismiss-button",Ir:"{{dismissButtonText}}",C:{tabindex:"0"}},{Z:"div",j:"ytp-promotooltip-accept-button",Ir:"{{acceptButtonText}}",C:{tabindex:"0","aria-haspopup":"true"}}]}]},
|
|
{Z:"div",j:"ytp-promotooltip-pointer"}]});var B=this;this.tooltipRenderer=A;this.S=L;this.N=this.sourceElement=null;this.title=this.m4("ytp-promotooltip-title");this.details=this.m4("ytp-promotooltip-details");this.acceptButton=this.m4("ytp-promotooltip-accept-button");this.dismissButton=this.m4("ytp-promotooltip-dismiss-button");this.W=this.U=!1;this.V=!0;this.G=this.D=this.X=this.T=!1;this.GV={ew:function(f){B.ew(f)}};
|
|
this.xP(!1);A=this.tooltipRenderer.trackingParams||null;if(this.W=!!A)this.S.createServerVe(this.element,this,!0),this.S.setTrackingParams(this.element,A);this.Y(L,"onShowControls",this.IE);this.Y(L,"onHideControls",this.qZ);this.Y(L,"resize",this.Bz);this.Y(this.acceptButton,"click",this.vPj);this.Y(this.dismissButton,"click",this.J$4);this.Y(document,"click",this.lP)};
|
|
ooL=function(A){var L=document.querySelectorAll('[data-tooltip-target-id="'+A.tooltipRenderer.targetId+'"]');L=L.length>0?L[0]:null;var B=g.sA("ytp-chrome-bottom"),f=g.sA("ytp-ad-module");A.V=!(B==null||!B.contains(L));A.T=!(f==null||!f.contains(L));A.X=!(L==null||!L.hasAttribute("data-tooltip-target-fixed"));return L};
|
|
KjC=function(A,L,B){if(!A.U){if(L){A.tooltipRenderer=L;L=A.tooltipRenderer.text;var f=!1,K;(L==null?0:(K=L.runs)==null?0:K.length)&&L.runs[0].text&&(A.update({title:L.runs[0].text.toString()}),f=!0);g.y9(A.title,f);L=A.tooltipRenderer.detailsText;K=!1;var V;if((L==null?0:(V=L.runs)==null?0:V.length)&&L.runs[0].text){f=L.runs[0].text.toString();V=f.indexOf("$TARGET_ICON");if(V>-1)if(A.tooltipRenderer.targetId){L=[];f=f.split("$TARGET_ICON");var J=new g.ZE({Z:"span",j:"ytp-promotooltip-details-icon",
|
|
B:[B0e[A.tooltipRenderer.targetId]]});g.W(A,J);for(var R=[],Z=g.m(f),N=Z.next();!N.done;N=Z.next())N=new g.ZE({Z:"span",j:"ytp-promotooltip-details-component",Ir:N.value}),g.W(A,N),R.push(N);f.length===2?(L.push(R[0].element),L.push(J.element),L.push(R[1].element)):f.length===1&&(V===0?(L.push(J.element),L.push(R[0].element)):(L.push(R[0].element),L.push(J.element)));V=L.length?L:null}else V=null;else V=f;if(V){if(typeof V!=="string")for(g.Ql(A.details),K=g.m(V),V=K.next();!V.done;V=K.next())A.details.appendChild(V.value);
|
|
else A.update({details:V});K=!0}}g.y9(A.details,K);K=A.tooltipRenderer.acceptButton;V=!1;var F,D,I;((F=g.y(K,g.te))==null?0:(D=F.text)==null?0:(I=D.runs)==null?0:I.length)&&g.y(K,g.te).text.runs[0].text&&(A.update({acceptButtonText:g.y(K,g.te).text.runs[0].text.toString()}),V=!0);g.y9(A.acceptButton,V);F=A.tooltipRenderer.dismissButton;D=!1;var d,w,r;((d=g.y(F,g.te))==null?0:(w=d.text)==null?0:(r=w.runs)==null?0:r.length)&&g.y(F,g.te).text.runs[0].text&&(A.update({dismissButtonText:g.y(F,g.te).text.runs[0].text.toString()}),
|
|
D=!0);g.y9(A.dismissButton,D)}B&&(A.sourceElement=B);A.N=ooL(A);A.D=!1;A.S.K().J("web_player_hide_nitrate_promo_tooltip")||A.xP(!0);fCD(A);A.bC&&!A.G&&(A.G=!0,A.GV.ew(0));A.W&&A.S.logVisibility(A.element,A.bC)}};
|
|
Zd=function(A){A.xP(!1);A.W&&A.S.logVisibility(A.element,A.bC)};
|
|
VQ6=function(A){var L,B,f,K=((L=g.y(A.acceptButton,g.te))==null?void 0:(B=L.text)==null?void 0:(f=B.runs)==null?void 0:f.length)&&!!g.y(A.acceptButton,g.te).text.runs[0].text,V,J,R;L=((V=g.y(A.dismissButton,g.te))==null?void 0:(J=V.text)==null?void 0:(R=J.runs)==null?void 0:R.length)&&!!g.y(A.dismissButton,g.te).text.runs[0].text;return K||L};
|
|
fCD=function(A){var L;if(!(L=!A.N)){L=A.N;var B=window.getComputedStyle(L);L=B.display==="none"||B.visibility==="hidden"||L.getAttribute("aria-hidden")==="true"}if(L||A.S.isMinimized())A.xP(!1);else if(L=g.pv(A.N),L.width&&L.height){A.S.TT(A.element,A.N);var f=A.S.Pn().getPlayerSize().height;B=g.pv(A.m4("ytp-promotooltip-container")).height;A.V?A.element.style.top=f-B-L.height-12+"px":A.X||(f=A.S.O7().height-B-L.height-12,A.element.style.top=f+"px");f=A.m4("ytp-promotooltip-pointer");var K=g.IR(A.N,
|
|
A.S.getRootNode()),V=Number(A.element.style.left.replace(/[^\d\.]/g,""));A=A.S.isFullscreen()?18:12;f.style.left=K.x-V+L.width/2-A+"px";f.style.top=B+"px"}else A.xP(!1)};
|
|
NY=function(A){g.q.call(this,{Z:"button",Rr:["ytp-replay-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Rivedi":"","data-tooltip-title":"Rivedi"},B:[g.m1()]});this.S=A;this.Y(A,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Y6(A.getPlayerStateObject());Cm(this.S,this.element,this)};
|
|
FS=function(A,L){L=L===void 0?240:L;g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-search-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Cerca":"","data-tooltip-title":"Cerca","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-search-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-search-title",Ir:"Cerca"}]});this.api=A;this.W=L;this.visible=!1;this.updateValue("icon",{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",j:"ytp-svg-fill",C:{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.listen("click",this.onClick);this.N();this.Y(A,"appresize",this.N);this.Y(A,"videodatachange",this.N);Cm(A,this.element,this)};
|
|
Dd=function(A){g.q.call(this,{Z:"div",j:"ytp-seek-overlay",B:[{Z:"div",Rr:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],B:[{Z:"div",Rr:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],B:[{Z:"svg",C:{viewBox:"0 0 22 32",width:"22",height:"24"},B:[{Z:"path",C:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{Z:"div",j:"ytp-seek-overlay-duration",Ir:"{{durationBack}}"}]},{Z:"div",Rr:["ytp-seek-overlay-animation",
|
|
"ytp-seek-overlay-animation-forward"],B:[{Z:"div",j:"ytp-seek-overlay-duration",Ir:"{{durationForward}}"},{Z:"div",Rr:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],B:[{Z:"svg",C:{viewBox:"0 0 22 32",width:"22",height:"24"},B:[{Z:"path",C:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{Z:"div",j:"ytp-seek-overlay-message",B:[{Z:"div",j:"ytp-seek-overlay-message-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-seek-overlay-message-text",
|
|
Ir:"{{text}}"}]}]});var L=this;this.S=A;this.D=0;this.N="hidden";this.X=this.m4("ytp-seek-overlay-animation-back");this.G=this.m4("ytp-seek-overlay-animation-forward");this.Wn=this.m4("ytp-seek-overlay-message");this.T=new g.aa(function(){JSy(L)},g.Am(this.S.K().experiments,"web_player_seek_overlay_linger_duration")||1E3);
|
|
g.W(this,this.T);this.S.createClientVe(this.G,this,28240);this.S.createClientVe(this.X,this,28239);this.S.logVisibility(this.G,!0);this.S.logVisibility(this.X,!0);this.hide()};
|
|
SYD=function(A,L){A.V=A.U.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:L},{offset:1,opacity:1}],{duration:200,fill:"forwards"});A.V.addEventListener("finish",function(){A.V=void 0;A.T.start();A.N="lingering"})};
|
|
RWy=function(A,L,B,f){B=B===void 0?!1:B;f=f===void 0?!1:f;var K=[];K.push({offset:0,transform:"translateX("+(A.W===-1?20:-20)+"px)",opacity:B?"0":"1"});B&&K.push({offset:.5,opacity:"1"});K.push({offset:1,transform:"translateX(0)",opacity:"1"});B=L.animate(K,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});L=L.querySelector("path");K=[];var V={offset:0,d:A.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};f&&(V.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");K.push(V);
|
|
f&&K.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});A={offset:1,d:A.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};f&&(A.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");K.push(A);L.animate(K,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return B};
|
|
Zbk=function(A){var L=A.U.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);L.classList.add("ytp-seek-overlay-arrow-additional");L.classList.remove("ytp-seek-overlay-arrow-persistent");A.U.appendChild(L);RWy(A,L,!0,!0).addEventListener("finish",function(){L.remove()})};
|
|
JSy=function(A,L,B){B=B===void 0?!0:B;A.V=A.U.animate([{offset:0,opacity:L===void 0?1:L},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});B&&(A.V.addEventListener("finish",function(){A.V=void 0;N0v(A);A.hide()}),A.N="fading-out")};
|
|
Fje=function(A){var L=Number(getComputedStyle(A.U).opacity),B;(B=A.V)==null||B.cancel();A.V=void 0;return L};
|
|
N0v=function(A){A.D=0;A.N="hidden";A.W=void 0;A.U=void 0;A.T.stop();A.V=void 0};
|
|
Ddv=function(A,L,B){A.updateValue("text",L);if(B){a:{switch(B){case "PREMIUM_STANDALONE":L=Rme();break a;case "PREMIUM_STANDALONE_CAIRO":L=ZnC();break a}L=void 0}A.updateValue("icon",L)}L=g.m(A.Wn.getAnimations());for(B=L.next();!B.done;B=L.next())B.value.cancel();A.Wn.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){A.updateValue("text","");A.updateValue("icon","")})};
|
|
dx=function(A,L,B,f){f=f===void 0?240:f;g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-share-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Condividi":"","data-tooltip-title":"Condividi","aria-haspopup":"true","aria-owns":B.element.id,"data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-share-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-share-title",Ir:"Condividi"}]});this.api=A;this.N=L;this.W=B;this.V=f;this.visible=!1;this.tooltip=this.N.Ce();A.createClientVe(this.element,this,
|
|
28664);this.listen("click",this.onClick);this.Y(A,"videodatachange",this.zL);this.Y(A,"videoplayerreset",this.zL);this.Y(A,"appresize",this.zL);this.Y(A,"presentingplayerstatechange",this.zL);this.zL();this.addOnDisposeCallback(g.QW(this.tooltip,this.element))};
|
|
ddv=function(A){var L=A.api.K(),B=A.api.getVideoData(),f=g.MM(L)&&g.ch(A.api)&&g.x(A.api.getPlayerStateObject(),128);L=L.V||L.disableSharing&&A.api.getPresentingPlayerType()!==2||!B.showShareButton||B.kR||f||B.OE||!1;f=A.api.Pn().getPlayerSize().width;return!!B.videoId&&f>=A.V&&!L};
|
|
ICk=function(A,L){L.name!=="InvalidStateError"&&L.name!=="AbortError"&&(L.name==="NotAllowedError"?(A.N.p5(),ah(A.W,A.element,!1)):g.mL(L))};
|
|
pdD=function(A,L){var B=Ru(),f=A.K();B={Z:"div",j:"ytp-share-panel",C:{id:Ru(),role:"dialog","aria-labelledby":B},B:[{Z:"div",j:"ytp-share-panel-inner-content",B:[{Z:"div",j:"ytp-share-panel-title",C:{id:B},Ir:"Condividi"},{Z:"a",Rr:["ytp-share-panel-link","ytp-no-contextmenu"],C:{href:"{{link}}",target:f.yj,title:"Condividi link","aria-label":"{{shareLinkWithUrl}}"},Ir:"{{linkText}}"},{Z:"label",j:"ytp-share-panel-include-playlist",B:[{Z:"input",j:"ytp-share-panel-include-playlist-checkbox",C:{type:"checkbox",
|
|
checked:"true"}},"Includi playlist"]},{Z:"div",j:"ytp-share-panel-loading-spinner",B:[yC()]},{Z:"div",j:"ytp-share-panel-service-buttons",Ir:"{{buttons}}"},{Z:"div",j:"ytp-share-panel-error",Ir:"Si \u00e8 verificato un errore durante il recupero delle informazioni di condivisione. Riprova pi\u00f9 tardi."}]},{Z:"button",Rr:["ytp-share-panel-close","ytp-button"],C:{title:"Chiudi"},B:[g.GZ()]}]};g.zg.call(this,A,B,250);var K=this;this.moreButton=null;this.api=A;this.tooltip=L.Ce();this.W=[];this.U=
|
|
this.m4("ytp-share-panel-inner-content");this.closeButton=this.m4("ytp-share-panel-close");this.Y(this.closeButton,"click",this.YP);this.addOnDisposeCallback(g.QW(this.tooltip,this.closeButton));this.V=this.m4("ytp-share-panel-include-playlist-checkbox");this.Y(this.V,"click",this.zL);this.N=this.m4("ytp-share-panel-link");this.addOnDisposeCallback(g.QW(this.tooltip,this.N));this.api.createClientVe(this.N,this,164503);this.Y(this.N,"click",function(V){V.preventDefault();K.api.logClick(K.N);var J=
|
|
K.api.getVideoUrl(!0,!0,!1,!1);J=wdS(K,J);g.wC(J,K.api,V)&&K.api.Kr("SHARE_CLICKED")});
|
|
this.listen("click",this.cj);this.Y(A,"videoplayerreset",this.hide);this.Y(A,"fullscreentoggled",this.onFullscreenToggled);this.Y(A,"onLoopRangeChange",this.wzT);this.hide()};
|
|
gok=function(A,L){ySk(A);for(var B=L.links||L.shareTargets,f=0,K={},V=0;V<B.length&&f<2;K={sK:void 0,lF:void 0},V++){K.sK=B[V];a:switch(K.sK.img||K.sK.iconId){case "facebook":var J={Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},B:[{Z:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Z:"path",C:{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":J={Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},B:[{Z:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Z:"path",C:{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:J=null}if(J){var R=K.sK.sname||K.sK.serviceName;K.lF=new g.q({Z:"a",Rr:["ytp-share-panel-service-button","ytp-button"],C:{href:K.sK.url,target:"_blank",title:R},B:[J]});K.lF.listen("click",function(F){return function(D){var I=F.sK.url;if(g.bV(D)){var d=d===void 0?{}:d;d.target=d.target||"YouTube";d.width=d.width||"600";d.height=d.height||"600";var w=d;w||(w={});d=window;var r=I instanceof G$?I:g.hF(typeof I.href!="undefined"?I.href:String(I));var h=self.crossOriginIsolated!==
|
|
void 0,Q="strict-origin-when-cross-origin";window.Request&&(Q=(new Request("/")).referrerPolicy);var l=w.noreferrer;if(h&&l&&Q==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");Q=l&&!h;I=w.target||I.target;l=[];var C=[],O=!1;for(U in w){var v=w[U];switch(U){case "width":case "height":case "top":case "left":l.push(U+"="+v);break;case "target":break;case "noopener":case "noreferrer":v?C.push(U):(O=!0,C.push(U+"=false"));
|
|
break;case "attributionsrc":l.push(U+(v?"="+v:""));break;default:l.push(U+"="+(v?1:0))}}var U=I!==void 0&&!["_blank","_self","_top","_parent",""].includes(I);U=FN()&&U;j7e&&h&&l.length===0&&C.length>0&&!U&&!O?(C.length===2&&(C=["noreferrer"]),g.QR(d,r,I,C[0]),d=icy()):(h=l.join(","),ay()&&d.navigator&&d.navigator.standalone&&I&&I!="_self"?(h=g.TO("A"),g.tF(h,r),h.target=I,Q&&(h.rel="noreferrer"),((w=w.attributionsrc)||w==="")&&h.setAttribute("attributionsrc",w),w=document.createEvent("MouseEvent"),
|
|
w.initMouseEvent("click",!0,!0,d,1),h.dispatchEvent(w),d=icy()):Q?(d=g.QR(d,"",I,h),w=g.rt(r),d&&(d.opener=null,w===""&&(w="javascript:''"),w='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+P5(w)+'">',w=lO(w),(r=d.document)&&r.write&&(r.write(mC(w)),r.close()))):((d=g.QR(d,r,I,h))&&w.noopener&&(d.opener=null),d&&w.noreferrer&&(d.opener=null)));d&&(d.opener||(d.opener=window),d.focus());D.preventDefault()}}}(K));
|
|
K.lF.addOnDisposeCallback(g.QW(A.tooltip,K.lF.element));R==="Facebook"?A.api.createClientVe(K.lF.element,K.lF,164504):R==="Twitter"&&A.api.createClientVe(K.lF.element,K.lF,164505);A.Y(K.lF.element,"click",function(F){return function(){A.api.logClick(F.lF.element)}}(K));
|
|
A.api.logVisibility(K.lF.element,!0);A.W.push(K.lF);f++}}var Z=L.more||L.moreLink,N=new g.q({Z:"a",Rr:["ytp-share-panel-service-button","ytp-button"],B:[{Z:"span",j:"ytp-share-panel-service-button-more",B:[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},B:[{Z:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Z:"path",C:{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"}}]}]}],C:{href:Z,target:"_blank",title:"Altro"}});N.listen("click",function(F){var D=Z;A.api.logClick(A.moreButton.element);D=wdS(A,D);g.wC(D,A.api,F)&&A.api.Kr("SHARE_CLICKED")});
|
|
N.addOnDisposeCallback(g.QW(A.tooltip,N.element));A.api.createClientVe(N.element,N,164506);A.Y(N.element,"click",function(){A.api.logClick(N.element)});
|
|
A.api.logVisibility(N.element,!0);A.W.push(N);A.moreButton=N;A.updateValue("buttons",A.W)};
|
|
wdS=function(A,L){var B={};g.MM(A.api.K())&&(g.jg(A.api,"addEmbedsConversionTrackingParams",[B]),L=g.ip(L,B));return L};
|
|
ySk=function(A){for(var L=g.m(A.W),B=L.next();!B.done;B=L.next())B=B.value,B.detach(),g.jq(B);A.W=[]};
|
|
ID=function(A){return A===void 0||A.startSec===void 0||A.endSec===void 0?!1:!0};
|
|
GGL=function(A,L){A.startSec+=L;A.endSec+=L};
|
|
s7y=function(A){DW.call(this,A);this.V=this.N=this.isContentForward=this.T=!1;this.element.setAttribute("data-overlay-order","8");rSk(this);this.Y(this.S,"changeProductsInVideoVisibility",this.uOs);this.Y(this.S,"videodatachange",this.onVideoDataChange)};
|
|
Hbv=function(A){A.D&&A.JF.element.removeChild(A.D.element);A.D=void 0};
|
|
bb6=function(A,L){return L.map(function(B){var f,K;if((B=(f=g.y(B,hW8))==null?void 0:(K=f.thumbnail)==null?void 0:K.thumbnails)&&B.length!==0)return B[0].url}).filter(function(B){return B!==void 0}).map(function(B){B=new g.q({Z:"img",
|
|
j:"ytp-suggested-action-product-thumbnail",C:{alt:"",src:B}});g.W(A,B);return B})};
|
|
tQ1=function(A,L){A.isContentForward=L;g.D1(A.badge.element,"ytp-suggested-action-badge-content-forward",L)};
|
|
wx=function(A){var L=A.isContentForward&&!A.pH();g.D1(A.badge.element,"ytp-suggested-action-badge-preview-collapsed",L&&A.N);g.D1(A.badge.element,"ytp-suggested-action-badge-preview-expanded",L&&A.V)};
|
|
pQ=function(A,L,B){return new g.WR(A*1E3,L*1E3,{priority:9,namespace:B})};
|
|
kGk=function(A){A.S.Jf("shopping_overlay_visible");A.S.Jf("shopping_overlay_preview_collapsed");A.S.Jf("shopping_overlay_preview_expanded");A.S.Jf("shopping_overlay_expanded")};
|
|
rSk=function(A){A.Y(A.S,g.qR("shopping_overlay_visible"),function(){A.wI(!0)});
|
|
A.Y(A.S,g.PR("shopping_overlay_visible"),function(){A.wI(!1)});
|
|
A.Y(A.S,g.qR("shopping_overlay_expanded"),function(){A.qp=!0;F7(A)});
|
|
A.Y(A.S,g.PR("shopping_overlay_expanded"),function(){A.qp=!1;F7(A)});
|
|
A.Y(A.S,g.qR("shopping_overlay_preview_collapsed"),function(){A.N=!0;wx(A)});
|
|
A.Y(A.S,g.PR("shopping_overlay_preview_collapsed"),function(){A.N=!1;wx(A)});
|
|
A.Y(A.S,g.qR("shopping_overlay_preview_expanded"),function(){A.V=!0;wx(A)});
|
|
A.Y(A.S,g.PR("shopping_overlay_preview_expanded"),function(){A.V=!1;wx(A)})};
|
|
mdD=function(A){g.q.call(this,{Z:"div",j:"ytp-shorts-title-channel",B:[{Z:"a",j:"ytp-shorts-title-channel-logo",C:{href:"{{channelLink}}",target:A.K().yj,"aria-label":"{{channelLogoLabel}}"}},{Z:"div",j:"ytp-shorts-title-expanded-heading",B:[{Z:"div",j:"ytp-shorts-title-expanded-title",B:[{Z:"a",Ir:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:A.K().yj,tabIndex:"0"}}]}]}]});var L=this;this.api=A;this.N=this.m4("ytp-shorts-title-channel-logo");this.channelName=this.m4("ytp-shorts-title-expanded-title");
|
|
this.subscribeButton=null;A.createClientVe(this.N,this,36925);this.Y(this.N,"click",function(B){L.api.logClick(L.N);g.QR(window,T0E(L));B.preventDefault()});
|
|
A.createClientVe(this.channelName,this,37220);this.Y(this.channelName,"click",function(B){L.api.logClick(L.channelName);g.QR(window,T0E(L));B.preventDefault()});
|
|
lCE(this);this.Y(A,"videodatachange",this.zL);this.Y(A,"videoplayerreset",this.zL);this.zL()};
|
|
lCE=function(A){if(!A.api.K().jI){var L=A.api.getVideoData(),B=new g.xS("Iscriviti",null,"Iscritto",null,!0,!1,L.JO,L.subscribed,"channel_avatar",null,A.api,!0);A.api.createServerVe(B.element,A);var f;A.api.setTrackingParams(B.element,((f=L.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);A.Y(B.element,"click",function(){A.api.logClick(B.element)});
|
|
A.subscribeButton=B;g.W(A,A.subscribeButton);A.subscribeButton.DM(A.element)}};
|
|
T0E=function(A){var L=A.api.K(),B=A.api.getVideoData();B=g.wd(L)+B.Ys;if(!g.MM(L))return B;L={};g.jg(A.api,"addEmbedsConversionTrackingParams",[L]);return g.ip(B,L)};
|
|
yF=function(A){g.zg.call(this,A,{Z:"button",Rr:["ytp-skip-intro-button","ytp-popup","ytp-button"],B:[{Z:"div",j:"ytp-skip-intro-button-text",Ir:"Salta intro"}]},100);var L=this;this.W=!1;this.N=new g.aa(function(){L.hide()},5E3);
|
|
this.YA=this.SR=NaN;g.W(this,this.N);this.X=function(){L.show()};
|
|
this.U=function(){L.hide()};
|
|
this.V=function(){var B=L.S.getCurrentTime();B>L.SR/1E3&&B<L.YA/1E3&&L.show()};
|
|
this.Y(this.S,"videodatachange",function(B,f){L.cF(B,f)});
|
|
this.Y(this.element,"click",function(){L.S.seekTo(L.YA/1E3)});
|
|
this.hide()};
|
|
jc=function(A){g.q.call(this,{Z:"button",Rr:["ytp-airplay-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},Ir:"{{icon}}"});this.S=A;this.listen("click",this.onClick);this.Y(A,"airplayactivechange",this.zL);this.Y(A,"airplayavailabilitychange",this.zL);this.zL();Cm(A,this.element,this)};
|
|
CEQ=function(A){g.q.call(this,{Z:"div",j:"ytp-gradient-bottom"});this.W=g.TO("CANVAS");this.N=this.W.getContext("2d",{willReadFrequently:!0});this.V=NaN;this.W.width=1;Q77(this,A.Pn().getPlayerSize().height)};
|
|
Q77=function(A,L){if(A.N){L=Math.floor(L*.4);L=Math.max(L,47);var B=L+2;if(A.V!==B){A.V=B;A.W.height=B;A.N.clearRect(0,0,1,B);var f=A.N.createLinearGradient(0,2,0,2+L),K=L-42;f.addColorStop(0,"rgba(0, 0, 0, 0)");f.addColorStop(K/L,"rgba(0, 0, 0, 0.3)");f.addColorStop(1,"rgba(0, 0, 0, 0.68)");A.N.fillStyle=f;A.N.fillRect(0,2,1,L);A.element.style.height=B+"px";try{A.element.style.backgroundImage="url("+A.W.toDataURL()+")"}catch(V){}}}};
|
|
gx=function(A,L,B,f){g.q.call(this,{Z:"div",j:"ytp-chapter-container",B:[{Z:"button",Rr:["ytp-chapter-title","ytp-button"],B:[{Z:"span",C:{"aria-hidden":"true"},j:"ytp-chapter-title-prefix",Ir:"\u2022"},{Z:"div",j:"ytp-chapter-title-content",Ir:"{{chapterTitle}}",C:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:A.J("player_tooltip_data_title_killswitch")?f:"","data-tooltip-title":f}},{Z:"div",j:"ytp-chapter-title-chevron",B:[{Z:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",
|
|
C:{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.S=A;this.U=L;this.T="";this.currentIndex=0;this.W=void 0;this.V=!0;this.Vj=this.m4("ytp-chapter-container");this.N=this.m4("ytp-chapter-title");this.D=this.m4("ytp-chapter-title-content");this.G();this.updateVideoData("newdata",this.S.getVideoData());this.Y(A,"videodatachange",this.updateVideoData);this.Y(A,"resize",this.G);this.Y(this.Vj,"click",this.onClick);this.Y(A,g.qR(B),this.iq);this.Y(A,"onLoopRangeChange",
|
|
this.iq);this.Y(A,"innertubeCommand",this.onClickCommand);(A=g.ex(this.S.K()))&&g.D1(this.N,"ytp-profile-page",!0);g.MM(this.S.K())||A||Cm(this.S,this.D,this)};
|
|
Go=function(A,L){gx.call(this,A,L,"chapterCueRange","Visualizza capitolo");this.X=""};
|
|
rx=function(A){g.DE.call(this,{Z:"button",Rr:["ytp-expand-right-bottom-section-button","ytp-button"],C:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},B:[g.gq()]});this.N=!1;this.listen("click",this.W);A.createClientVe(this.element,this,276954)};
|
|
ibE=function(A,L,B,f,K){var V=L.Gk/L.rows,J=Math.min(B/(L.RF/L.columns),f/V),R=L.RF*J,Z=L.Gk*J;R=Math.floor(R/L.columns)*L.columns;Z=Math.floor(Z/L.rows)*L.rows;var N=R/L.columns,F=Z/L.rows,D=-L.column*N,I=-L.row*F;K&&V<=45&&(F-=1/J);N-=2/J;A=A.style;A.width=N+"px";A.height=F+"px";K||(f=(f-F)/2,B=(B-N)/2,A.marginTop=Math.floor(f)+"px",A.marginBottom=Math.ceil(f)+"px",A.marginLeft=Math.floor(B)+"px",A.marginRight=Math.ceil(B)+"px");A.background="url("+L.url+") "+D+"px "+I+"px/"+R+"px "+Z+"px"};
|
|
sf=function(A,L){g.q.call(this,{Z:"div",j:"ytp-storyboard-framepreview",B:[{Z:"div",j:"ytp-storyboard-framepreview-timestamp",Ir:"{{timestamp}}"},{Z:"div",j:"ytp-storyboard-framepreview-img"}]});this.api=A;this.W=this.m4("ytp-storyboard-framepreview-img");this.N=null;this.frameIndex=NaN;this.events=new g.dN(this);this.fade=new g.KL(this,100);g.W(this,this.events);g.W(this,this.fade);this.Y(this.api,"presentingplayerstatechange",this.V);L&&this.Y(this.element,"click",function(){L.Wa()})};
|
|
$d7=function(A,L){var B=!!A.N;A.N=L;A.N?(B||(A.events.Y(A.api,"videodatachange",function(){$d7(A,A.api.rB())}),A.events.Y(A.api,"progresssync",A.onProgress),A.events.Y(A.api,"appresize",A.U)),A.frameIndex=NaN,Xd7(A),A.fade.show(200)):(B&&g.$_(A.events),A.fade.hide(),A.fade.stop())};
|
|
Xd7=function(A){var L=A.N,B=A.api.getCurrentTime(),f=A.api.Pn().getPlayerSize(),K=zd(L,f.width);K=CML(L,K,B);A.update({timestamp:g.hG(B)});K!==A.frameIndex&&(A.frameIndex=K,m0Q(L,K,f.width),L=T9D(L,K,f.width),ibE(A.W,L,f.width,f.height))};
|
|
ObS=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-fullscreen-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ir:"{{icon}}"});this.S=A;this.W=L;this.message=null;this.N=g.QW(this.W.Ce(),this.element);this.V=new g.aa(this.n4,2E3,this);g.W(this,this.V);this.Y(A,"fullscreentoggled",this.Fc);
|
|
this.Y(A,"presentingplayerstatechange",this.zL);this.Y(A,"resize",this.zL);this.listen("click",this.onClick);g.rL()&&(L=this.S.Pn(),this.Y(L,IH1(),this.mz),this.Y(L,dWQ(document),this.Vi));A.K().Nl||A.K().X||this.disable();A.createClientVe(this.element,this,139117);this.zL();this.Fc(A.isFullscreen())};
|
|
EoC=function(A,L){return A.S.J("delhi_modern_web_player_icons")?L?{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z",
|
|
fill:"white"}}]}:L?{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"g",j:"ytp-fullscreen-button-corner-2",B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{Z:"g",j:"ytp-fullscreen-button-corner-3",B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{Z:"g",j:"ytp-fullscreen-button-corner-0",B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{Z:"g",j:"ytp-fullscreen-button-corner-1",
|
|
B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"g",j:"ytp-fullscreen-button-corner-0",B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{Z:"g",j:"ytp-fullscreen-button-corner-1",B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{Z:"g",j:"ytp-fullscreen-button-corner-2",B:[{Z:"path",bq:!0,j:"ytp-svg-fill",
|
|
C:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{Z:"g",j:"ytp-fullscreen-button-corner-3",B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}};
|
|
HJ=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-jump-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},B:[L>0?{Z:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",Rr:["ytp-circle-arrow","ytp-svg-fill"],C:{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"}},
|
|
{Z:"text",Rr:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"7.05",y:"15.05"}}]}:{Z:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",Rr:["ytp-circle-arrow","ytp-svg-fill"],C:{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"}},
|
|
{Z:"text",Rr:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"6.5",y:"15"}}]}]});var B=this;this.S=A;this.N=L;this.W=new g.aa(function(){B.V?(B.V=!1,B.W.start()):B.element.classList.remove("ytp-jump-spin","backwards")},250);
|
|
this.V=!1;(L=L>0)?this.S.createClientVe(this.element,this,36843):this.S.createClientVe(this.element,this,36844);var f=g.B$(L?"Vai avanti di $SECONDS secondi. (\u2192)":"Vai indietro di $SECONDS secondi. (\u2190)",{SECONDS:Math.abs(this.N).toString()});this.S.J("player_tooltip_data_title_killswitch")?this.update({title:f,"data-title-no-tooltip":f,"aria-keyshortcuts":L?"\u2192":"\u2190"}):this.update({"tooltip-title":f,"data-title-no-tooltip":f,"aria-keyshortcuts":L?"\u2192":"\u2190"});this.U=this.element.querySelector(".ytp-jump-button-text");
|
|
this.U.textContent=Math.abs(this.N).toString();this.listen("click",this.onClick,this);Cm(A,this.element,this)};
|
|
cS7=function(A,L){L?A.element.classList.add("ytp-jump-button-enabled"):A.element.classList.remove("ytp-jump-button-enabled");A.S.logVisibility(A.element,L);A.S.qq()};
|
|
hP=function(A,L){gx.call(this,A,L,"timedMarkerCueRange","Visualizza momenti chiave");this.Y(A,g.PR("timedMarkerCueRange"),this.iq);this.Y(A,"updatemarkervisibility",this.updateVideoData)};
|
|
MQD=function(A){var L,B=(L=A.S.getVideoData())==null?void 0:L.JF;if(B)for(A=A.U.sx,B=g.m(B),L=B.next();!L.done;L=B.next())if(L=A[L.value]){var f=void 0,K=void 0,V=void 0;if(((f=L.onTap)==null?void 0:(K=f.innertubeCommand)==null?void 0:(V=K.changeEngagementPanelVisibilityAction)==null?void 0:V.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return L}};
|
|
br=function(A){g.q.call(this,{Z:"button",Rr:["ytp-miniplayer-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},B:["{{icon}}"]});this.S=A;this.visible=!1;this.listen("click",this.onClick);this.Y(A,"fullscreentoggled",this.zL);this.S.J("player_tooltip_data_title_killswitch")?
|
|
this.update({title:g.iz(A,"Mini player","i"),"data-title-no-tooltip":"Mini player",icon:YYy(this)}):this.update({"tooltip-title":g.iz(A,"Mini player","i"),"data-title-no-tooltip":"Mini player",icon:YYy(this)});Cm(A,this.element,this);A.createClientVe(this.element,this,62946);this.zL()};
|
|
YYy=function(A){return A.S.J("delhi_modern_web_player_icons")?BL6():kr()};
|
|
tP=function(A,L,B,f,K,V,J){V=V===void 0?!1:V;J=J===void 0?!1:J;var R={Z:"div",Rr:["ytp-input-slider-section"],B:[{Z:"input",j:"ytp-input-slider",C:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};K&&R.B.unshift(K);V&&R.Rr.push("ytp-vertical-slider");g.q.call(this,R);this.V=A;this.T=L;this.G=B;this.initialValue=f;this.header=
|
|
K;this.JF=J;this.U=0;this.W=this.m4("ytp-input-slider");this.N=f?f:A;this.init();this.Y(this.W,"input",this.D);this.Y(this.W,"keydown",this.X)};
|
|
kt=function(A,L){A.JF?(A.U&&(cancelAnimationFrame(A.U),A.U=0),Ud0(A,A.N,L)):Wj6(A,L)};
|
|
Wj6=function(A,L){A.N=L;A.update({slidervalue:A.N,ariaValueNow:A.N});A.W.valueAsNumber=A.N;voe(A,L)};
|
|
Ud0=function(A,L,B){var f=performance.now(),K=B-L;if(K!==0){var V=function(J){J=(J-f)/400;J>1&&(J=1);Wj6(A,L+K*Hcw(qYv,hjw(qYv,J)));A.U=J<1?requestAnimationFrame(V):0};
|
|
A.U=requestAnimationFrame(V)}};
|
|
voe=function(A,L){A.W.style.setProperty("--yt-slider-shape-gradient-percent",(L-A.V)/(A.T-A.V)*100+"%")};
|
|
To=function(A){var L=A.isMuted()?0:A.getVolume();tP.call(this,0,100,1,L,void 0,!0);this.S=A;this.qp=zO(this.ZM,10,this);this.Wn=!1;this.Y(A,"onVolumeChange",this.onVolumeChange);this.Y(this.element,"wheel",this.Vj)};
|
|
PEw=function(A,L){g.q.call(this,{Z:"div",C:{tabindex:"0",title:A.J("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},Rr:["ytp-volume-popover"]});var B=this;this.isVisible=!1;this.tooltip=L.Ce();this.W=new To(A);g.W(this,this.W);this.W.DM(this.element);this.N=new g.aa(function(){lr(B,!1)},300);
|
|
this.listen("mouseenter",function(){B.N.stop()});
|
|
this.listen("mouseleave",function(){B.N.start()});
|
|
this.listen("focus",function(){B.N.stop()});
|
|
this.Y(this.W.W,"focus",function(){B.N.stop()});
|
|
this.listen("focusout",function(){B.N.start();B.element.dispatchEvent(new Event("blur"))});
|
|
this.addOnDisposeCallback(g.QW(L.Ce(),this.element));g.W(this,this.N)};
|
|
lr=function(A,L){A.element.classList.toggle("ytp-volume-popover-hovering",L);A.isVisible=L;(A=A.element.closest(".ytp-chrome-bottom"))&&A.classList.toggle("ytp-volume-popover-showing",L)};
|
|
m0=function(A,L,B){B=B===void 0?!1:B;var f=A.K().JF?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};f=A.J("delhi_modern_web_player")?{Z:"div",j:"ytp-mute-button",B:[{Z:"button",C:f,Rr:["ytp-volume-icon",
|
|
"ytp-button"],Ir:"{{icon}}"}]}:{Z:"button",Rr:["ytp-mute-button","ytp-button"],C:f,B:[{Z:"div",j:"ytp-volume-icon",Ir:"{{icon}}"}]};g.q.call(this,f);this.S=A;this.S4=B;this.W=null;this.T=this.Vj=this.G=this.X=NaN;this.wT=this.Wn=null;this.D=[];this.U=[];this.visible=!1;this.V=this.N=this.qp=null;A.J("delhi_modern_web_player")&&this.update({"data-priority":4});B=this.S.K();this.updateValue("icon",ia());this.tooltip=L.Ce();this.updateValue("dataTooltipOffsetY",0);this.V=g.sA("ytp-volume-icon",this.element);
|
|
f=this.S.J("delhi_modern_web_player_icons")?{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",Rr:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],C:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z",
|
|
fill:"#fff"}},{Z:"path",j:"ytp-svg-volume-animation-small-ripple",C:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05",
|
|
fill:"#fff"}},{Z:"path",j:"ytp-svg-volume-animation-big-ripple",C:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z",
|
|
fill:"#fff"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"defs",B:[{Z:"clipPath",C:{id:"ytp-svg-volume-animation-mask"},B:[{Z:"path",C:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Z:"path",C:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Z:"path",j:"ytp-svg-volume-animation-mover",C:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Z:"clipPath",C:{id:"ytp-svg-volume-animation-slash-mask"},B:[{Z:"path",j:"ytp-svg-volume-animation-mover",
|
|
C:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Z:"path",bq:!0,Rr:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],C:{"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"}},{Z:"path",bq:!0,Rr:["ytp-svg-fill","ytp-svg-volume-animation-hider"],C:{"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"}}]};this.W=new g.ZE(f);g.W(this,this.W);this.Wn=this.W.m4("ytp-svg-volume-animation-speaker");this.wT=this.Wn.getAttribute("d");this.D=g.g_("ytp-svg-volume-animation-mover",this.W.element);this.S.J("delhi_modern_web_player_icons");this.U=g.g_("ytp-svg-volume-animation-hider",this.W.element);this.S.J("delhi_modern_web_player_icons");this.JF=new ce;g.W(this,this.JF);this.ZM=new ce;g.W(this,this.ZM);this.Y(A,"appresize",this.DG);this.Y(A,"onVolumeChange",this.onVolumeChange);A.J("delhi_modern_web_player")?
|
|
this.listen("click",this.BIj):this.listen("click",this.T7);B.JF?(A.J("delhi_modern_web_player")&&!A.J("delhi_modern_web_player_horizontal_volume_controls")&&(this.N=new PEw(A,L),this.N.DM(this.element),g.W(this,this.N),this.Y(this.V,"mouseover",this.ZG),this.Y(this.V,"focus",this.ZG),this.Y(this.V,"mouseout",this.PU),this.Y(this.V,"blur",this.PU)),B=A.J("delhi_modern_web_player")?this.V:this.element,this.addOnDisposeCallback(g.QW(L.Ce(),B))):xdk(this);this.message=null;A.createClientVe(this.element,
|
|
this,28662);this.DG(A.Pn().getPlayerSize());this.setVolume(A.getVolume(),A.isMuted())};
|
|
eWD=function(A,L){if(A.S.K().JF){var B=g.iz(A.S,"Disattiva audio","m"),f=g.iz(A.S,"Riattiva audio","m");B=L?f:B;A.S.K().J("player_tooltip_data_title_killswitch")?A.updateValue("title",B):A.update({"tooltip-title":B,"aria-label":B});A.update({"data-title-no-tooltip":L?"Riattiva audio":"Disattiva audio"});A.tooltip.qq()}};
|
|
uAw=function(A,L){A.X=L;var B=A.wT;A.S.J("delhi_modern_web_player_icons")?A.W.m4("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(L+") translate(-22,-12)")):L&&(B+=qPC(noy,zWS,L));A.Wn.setAttribute("d",B)};
|
|
aCe=function(A,L){var B;L===1?B=A.S.J("delhi_modern_web_player_icons")?{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z",
|
|
fill:"white"}}]}:ia():B=A.W;A.Vj=L;if(A.S.J("delhi_modern_web_player_icons"))A.W.m4("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-L+") translate(-18,-12)")),A.W.m4("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(A.X-L+") translate(-22, -12)"));else{for(var f=20*L,K=0;K<A.D.length;K++)A.D[K].setAttribute("transform","translate("+f+", "+f+")");for(f=0;f<A.U.length;f++){K=A.U[f];var V=void 0;if((V=K)==null?
|
|
0:V.style)K.style.display=L===0?"none":""}}B!==A.qp&&(A.updateValue("icon",B),A.qp=B)};
|
|
xdk=function(A){var L=null,B="Il tuo browser non supporta la modifica di volume. $BEGIN_LINKUlteriori informazioni$END_LINK".split(/\$(BEGIN|END)_LINK/);L=new g.zg(A.S,{Z:"span",Rr:["ytp-popup","ytp-generic-popup"],C:{tabindex:"0"},B:[B[0],{Z:"a",C:{href:"https://support.google.com/youtube/?p=noaudio",target:A.S.K().yj},Ir:B[2]},B[4]]},100,!0);g.W(A,L);L.hide();L.subscribe("show",function(f){A.S.f$(L,f)});
|
|
g.Wh(A.S,L.element,4)};
|
|
g.QF=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-play-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ir:"{{icon}}"});this.S=A;this.N=null;this.transition=new ce;this.tooltip=L.Ce();g.W(this,this.transition);A.createClientVe(this.element,this,36842);A.logVisibility(this.element,!0);this.Y(A,"fullscreentoggled",this.onVideoDataChange);
|
|
this.Y(A,"presentingplayerstatechange",this.onStateChange);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y6(A.getPlayerStateObject());this.listen("click",this.Iu,this);this.addOnDisposeCallback(g.QW(L.Ce(),this.element))};
|
|
AZ6=function(A,L){A=A.S.J("delhi_modern_web_player_icons");switch(L){case 1:return A?la():TZ();case 2:return A?JKe():VwQ();case 3:return A?{Z:"svg",C:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},B:[{Z:"path",C:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z",
|
|
fill:"white"}}]}:g.m1();case 4:return A?dE7():DEL();default:return null}};
|
|
g.CQ=function(A,L,B){g.q.call(this,{Z:"a",Rr:[B?"ytp-next-button":"ytp-prev-button","ytp-button"],C:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-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}}",tabindex:"0"},B:[Lhw(B,A.J("delhi_modern_web_player_icons"))]});
|
|
var f=this;this.S=A;this.N=B;this.playlist=this.videoData=null;this.T=!1;this.U=this.D=this.W=null;this.V=!1;this.tooltip=L.Ce();B?A.createClientVe(this.element,this,6193):A.createClientVe(this.element,this,6194);this.Y(A,"fullscreentoggled",this.onVideoDataChange);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"onPlaylistUpdate",this.onVideoDataChange);this.Y(A,"onLoopRangeChange",this.onVideoDataChange);this.N||this.Y(A,"appresize",this.C1);this.Y(A,"mdxpreviousnextchange",function(){oyk(f);
|
|
f.C1()});
|
|
this.onVideoDataChange()};
|
|
BcS=function(A){A.playlist&&A.playlist.unsubscribe("shuffle",A.onVideoDataChange,A)};
|
|
f$y=function(A){return!!A.playlist&&!A.N&&!!A.videoData&&!A.videoData.isLivePlayback&&A.S.getCurrentTime()>=3&&A.S.getPresentingPlayerType()!==2};
|
|
Kh7=function(A){var L=EU(A.S.SI());return L?A.N?L.hasNext():L.hasPrevious():!1};
|
|
oyk=function(A){var L={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},B=A.playlist!=null&&A.playlist.hasNext();B=g.ch(A.S)&&(!A.N||B);var f=A.N&&g.vh(A.S),K=Kh7(A),V=A.N&&A.S.getPresentingPlayerType()===5,J=g.iz(A.S,"Avanti","SHIFT+n"),R=g.iz(A.S,"Indietro","SHIFT+p");if(V)L.title="Avvia video",L["tooltip-title"]="Avvia video";else if(A.V)L.title="Rivedi",L["tooltip-title"]="Rivedi";else if(B){var Z=null;A.playlist&&
|
|
(Z=g.R_(A.playlist,A.N?OlQ(A.playlist):E88(A.playlist)));if(Z){if(Z.videoId){var N=A.playlist.listId;L.url=A.S.K().getVideoUrl(Z.videoId,N?N.toString():void 0)}L.text=Z.title;L.duration=Z.lengthText?Z.lengthText:Z.lengthSeconds?g.hG(Z.lengthSeconds):null;L.preview=Z.g1("mqdefault.jpg")}A.N?(L.title=J,L["tooltip-title"]=J,L["data-title-no-tooltip"]="Avanti",L["aria-keyshortcuts"]="SHIFT+n"):(L.title=R,L["tooltip-title"]=R,L["data-title-no-tooltip"]="Indietro",L["aria-keyshortcuts"]="SHIFT+p")}else if(f){if(R=
|
|
(Z=A.videoData)==null?void 0:g.DQ(Z))L.url=R.Ej(),L.text=R.title,L.duration=R.lengthText?R.lengthText:R.lengthSeconds?g.hG(R.lengthSeconds):null,L.preview=R.g1("mqdefault.jpg");L.title=J;L["tooltip-title"]=J;L["data-title-no-tooltip"]="Avanti";L["aria-keyshortcuts"]="SHIFT+n"}L.disabled=!f&&!B&&!K&&!V;A.update(L);A.T=!!L.url;f||B||A.V||K||V?A.W||(A.W=g.QW(A.tooltip,A.element),A.D=A.listen("click",A.onClick,A)):A.W&&(A.W(),A.W=null,A.J$(A.D),A.D=null);A.tooltip.qq();g.D1(A.element,"ytp-playlist-ui",
|
|
A.N&&(B||A.S.J("web_hide_next_button")))};
|
|
Lhw=function(A,L){return A?L?fGv():hr():L?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z",
|
|
fill:"white"}}]}:NLw()};
|
|
JZy=function(A,L){g.q.call(this,{Z:"div",j:"ytp-fine-scrubbing",B:[{Z:"div",j:"ytp-fine-scrubbing-draggable",B:[{Z:"div",j:"ytp-fine-scrubbing-thumbnails",C:{tabindex:"0",role:"slider",type:"range","aria-label":"Fai clic sul riquadro o scorri lungo la barra di avanzamento per una ricerca pi\u00f9 precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{Z:"div",C:{"aria-hidden":"true"},j:"ytp-fine-scrubbing-cursor"},
|
|
{Z:"div",j:"ytp-fine-scrubbing-seek-time",C:{"aria-hidden":"true"},Ir:"{{seekTime}}"},{Z:"div",j:"ytp-fine-scrubbing-play",B:[A.J("delhi_modern_web_player_icons")?la():TZ()],C:{title:"Riproduci da questo punto",role:"button"}},{Z:"div",j:"ytp-fine-scrubbing-dismiss",B:[g.GZ()],C:{title:"Esci dalla ricerca precisa",role:"button"}}]});var B=this;this.api=A;this.D=this.m4("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.m4("ytp-fine-scrubbing-dismiss");this.Vj=this.m4("ytp-fine-scrubbing-draggable");
|
|
this.playButton=this.m4("ytp-fine-scrubbing-play");this.thumbnails=[];this.W=[];this.S4=this.N=0;this.JF=void 0;this.Wn=NaN;this.Ys=this.G=this.V=this.X=0;this.U=[];this.interval=this.frameCount=0;this.T=160;this.scale=1;this.Ex=0;this.isEnabled=this.wT=!1;VhE(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.QW(L,this.dismissButton));this.addOnDisposeCallback(g.QW(L,this.playButton));this.ZM=new g.tk(this.Vj,!0);this.ZM.subscribe("dragstart",this.xV,this);this.ZM.subscribe("dragmove",this.sA,
|
|
this);this.ZM.subscribe("dragend",this.Pj,this);this.Y(A,"SEEK_COMPLETE",this.d3);A.J("web_fix_fine_scrubbing_false_play")&&this.Y(A,"rootnodemousedown",function(f){B.qp=f});
|
|
this.D.addEventListener("keydown",function(){});
|
|
g.W(this,this.ZM);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.D,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
|
|
VhE=function(A,L){var B=g.hG(L),f=g.B$("Vai a $PROGRESS",{PROGRESS:g.hG(L,!0)});A.update({ariamin:0,ariamax:Math.floor(A.api.getDuration()),arianow:Math.floor(L),arianowtext:f,seekTime:B})};
|
|
Spe=function(A){A.Wn=NaN;A.G=0;A.X=A.V};
|
|
NcQ=function(A){var L=A.api.rB();if(L){var B=90*A.scale,f=zd(L,160*A.scale);if(L=L.levels[f]){A.T=L.width;if(!A.U.length){f=[];for(var K=uS(L,L.ih()),V=L.columns*L.rows,J=L.frameCount,R=0;R<=K;R++)for(var Z=J<V?Math.ceil(J/L.columns):L.rows,N=0;N<L.rows;N++){var F=J<L.columns?J:L.columns,D={url:L.MQ(R),column:0,columns:F,row:N,rows:Z,RF:L.width*F,Gk:L.height*Z};f.push(D);J-=F;if(J<=1)break}A.U=f;A.frameCount=L.rV();A.interval=L.N/1E3||A.api.getDuration()/A.frameCount}for(;A.thumbnails.length>A.U.length;)f=
|
|
void 0,(f=A.thumbnails.pop())==null||f.dispose();for(;A.thumbnails.length<A.U.length;)f=new Rxe,A.thumbnails.push(f),f.DM(A.D),g.W(A,f);for(f=0;f<A.U.length;f++)K=A.thumbnails[f].element,V=A.U[f],J=A.T*A.scale,R=V.Gk/V.rows,Z=B/R,K.style.background="url("+V.url+") 0 "+-V.row*V.Gk/V.rows*Z+"px/"+J*L.columns+"px "+R*V.rows*Z+"px",K.style.width=J*V.columns+"px",K.style.height=B+"px";ir(A,A.api.getCurrentTime());for(B=A.api.getVideoData().k6;A.W.length>B.length;)f=void 0,(f=A.W.pop())==null||f.dispose();
|
|
for(;A.W.length<B.length;)f=new ZZy,A.W.push(new ZZy),g.W(A,f);for(f=0;f<B.length;f++)K=B[f],A.W[f].update({chapterTitle:K.title}),K=Math.round(K.startTime/L.N),V=Math.floor(K/L.rows),g.Kv(A.W[f].element,"transform","translateX("+K%L.rows*A.T*A.scale+"px)"),V<A.thumbnails.length&&A.thumbnails[V]&&A.W[f].DM(A.thumbnails[V].element);A.wT=!0}}};
|
|
ir=function(A,L){A.qp&&(A.qp.o3=!0);A.update({seekTime:g.hG(L)});var B=A.T*A.scale;L=L<A.interval/2?-L*B/A.interval*2+A.N/2:-L*B/A.interval-B/2+A.N/2;L=g.B4(L,FhC(A),A.N/2);A.X=L;A.V=A.X;g.Kv(A.Vj,"transform","translateX("+(A.X-A.N/2)+"px)");g.Kv(A.Vj,"padding","0px "+A.N/2+"px");g.Kv(A.D,"position","relative")};
|
|
DzS=function(A,L){var B=A.T*A.scale;L-=A.N/2;return L>-B?-L/B*A.interval*.5:-(L+B/2)/B*A.interval};
|
|
FhC=function(A){return-((A.D.offsetWidth||(A.frameCount-1)*A.T*A.scale)-A.N/2)};
|
|
Rxe=function(){g.q.call(this,{Z:"div",j:"ytp-fine-scrubbing-thumbnail"})};
|
|
ZZy=function(){g.q.call(this,{Z:"div",j:"ytp-fine-scrubbing-chapter-title",B:[{Z:"div",j:"ytp-fine-scrubbing-chapter-title-content",Ir:"{{chapterTitle}}"}]})};
|
|
dz1=function(A){g.q.call(this,{Z:"div",j:"ytp-heat-map-chapter",B:[{Z:"svg",j:"ytp-heat-map-svg",C:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},B:[{Z:"defs",B:[{Z:"clipPath",C:{id:"{{id}}"},B:[{Z:"path",j:"ytp-heat-map-path",C:{d:"",fill:"white"}}]},{Z:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},B:[{Z:"stop",C:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Z:"stop",C:{offset:"100%",
|
|
"stop-color":"white","stop-opacity":"0"}}]}]},{Z:"rect",j:"ytp-heat-map-graph",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Z:"rect",j:"ytp-heat-map-hover",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Z:"rect",j:"ytp-heat-map-play",C:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Z:"path",j:"ytp-modern-heat-map",C:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%",
|
|
stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=A;this.X=this.m4("ytp-heat-map-svg");this.D=this.m4("ytp-heat-map-path");this.U=this.m4("ytp-heat-map-graph");this.T=this.m4("ytp-heat-map-play");this.N=this.m4("ytp-heat-map-hover");this.V=this.m4("ytp-modern-heat-map");this.gX=!1;this.W=60;A=""+g.$W(this);this.update({id:A});A="url(#"+A+")";this.U.setAttribute("clip-path",A);this.T.setAttribute("clip-path",A);this.N.setAttribute("clip-path",A)};
|
|
I$D=function(A,L){L>0&&(A.W=L,A.X.style.height=A.W+"px")};
|
|
$t=function(){g.q.call(this,{Z:"div",j:"ytp-chapter-hover-container",B:[{Z:"div",j:"ytp-progress-bar-padding"},{Z:"div",j:"ytp-progress-list",B:[{Z:"div",Rr:["ytp-play-progress","ytp-swatch-background-color"]},{Z:"div",j:"ytp-progress-linear-live-buffer"},{Z:"div",j:"ytp-load-progress"},{Z:"div",j:"ytp-hover-progress"},{Z:"div",j:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.W=this.m4("ytp-progress-list");this.D=this.m4("ytp-progress-linear-live-buffer");
|
|
this.U=this.m4("ytp-ad-progress-list");this.T=this.m4("ytp-load-progress");this.X=this.m4("ytp-play-progress");this.V=this.m4("ytp-hover-progress");this.N=this.m4("ytp-chapter-hover-container")};
|
|
XS=function(A,L){g.Kv(A.N,"width",L)};
|
|
wuL=function(A,L){g.Kv(A.N,"margin-right",L+"px")};
|
|
pue=function(){this.W=this.position=this.V=this.N=this.U=this.width=NaN};
|
|
yZk=function(){g.q.call(this,{Z:"div",j:"ytp-timed-marker"});this.N=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
|
|
g.Ef=function(A,L){g.DE.call(this,{Z:"div",j:"ytp-progress-bar-container",C:{"aria-disabled":"true"},B:[{Z:"div",Rr:["ytp-heat-map-container"],B:[{Z:"div",j:"ytp-heat-map-edu"}]},{Z:"div",Rr:["ytp-progress-bar"],C:{tabindex:"0",role:"slider","aria-label":"Cursore","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},B:[{Z:"div",j:"ytp-chapters-container"},{Z:"div",j:"ytp-timed-markers-container"},{Z:"div",j:"ytp-clip-start-exclude"},
|
|
{Z:"div",j:"ytp-clip-end-exclude"},{Z:"div",j:"ytp-scrubber-container",B:[{Z:"div",Rr:["ytp-scrubber-button","ytp-swatch-background-color"],B:[{Z:"div",j:"ytp-scrubber-pull-indicator"},{Z:"img",Rr:["ytp-decorated-scrubber-button"]}]}]}]},{Z:"div",Rr:["ytp-fine-scrubbing-container"],B:[{Z:"div",j:"ytp-fine-scrubbing-edu"}]},{Z:"div",j:"ytp-bound-time-left",Ir:"{{boundTimeLeft}}"},{Z:"div",j:"ytp-bound-time-right",Ir:"{{boundTimeRight}}"},{Z:"div",j:"ytp-clip-start",C:{title:"{{clipstarttitle}}"},Ir:"{{clipstarticon}}"},
|
|
{Z:"div",j:"ytp-clip-end",C:{title:"{{clipendtitle}}"},Ir:"{{clipendicon}}"}]});this.api=A;this.iW=!1;this.Pk=this.kR=this.Ox=this.Vj=this.T=this.ye=0;this.mC=null;this.Bk=!1;this.Cr={};this.N8={};this.clipEnd=Infinity;this.t$=this.m4("ytp-clip-end");this.LD=new g.tk(this.t$,!0);this.GZ=this.m4("ytp-clip-end-exclude");this.m1=this.m4("ytp-clip-start-exclude");this.clipStart=0;this.Pz=this.m4("ytp-clip-start");this.jD=new g.tk(this.Pz,!0);this.Wn=this.Uv=0;this.progressBar=this.m4("ytp-progress-bar");
|
|
this.zV={};this.sx={};this.Nl=this.m4("ytp-chapters-container");this.dB=this.m4("ytp-timed-markers-container");this.N=[];this.X=[];this.cR={};this.Gt=null;this.JF=-1;this.jI=this.S4=0;this.Ry=this.G=null;this.b2=this.m4("ytp-scrubber-button");this.ZM=this.m4("ytp-decorated-scrubber-button");this.e6=this.m4("ytp-scrubber-container");this.mH=new g.Vl;this.nD=0;this.cI=new pue;this.V=new $I(0,0);this.Jw=null;this.D=this.BR=!1;this.BI=null;this.qp=this.m4("ytp-heat-map-container");this.Po=this.m4("ytp-heat-map-edu");
|
|
this.U=[];this.heatMarkersDecorations=[];this.ql=this.m4("ytp-fine-scrubbing-container");this.a8=this.m4("ytp-fine-scrubbing-edu");this.W=void 0;this.Ys=this.O_=this.Ex=!1;this.tooltip=L.Ce();this.addOnDisposeCallback(g.QW(this.tooltip,this.t$));g.W(this,this.LD);this.LD.subscribe("hoverstart",this.uJ,this);this.LD.subscribe("hoverend",this.x4,this);this.Y(this.t$,"click",this.mu);this.addOnDisposeCallback(g.QW(this.tooltip,this.Pz));g.W(this,this.jD);this.jD.subscribe("hoverstart",this.uJ,this);
|
|
this.jD.subscribe("hoverend",this.x4,this);this.Y(this.Pz,"click",this.mu);jH1(this);this.Y(A,"resize",this.Bz);this.Y(A,"presentingplayerstatechange",this.wr);this.Y(A,"videodatachange",this.cF);this.Y(A,"videoplayerreset",this.lM4);this.Y(A,"cuerangesadded",this.YNn);this.Y(A,"cuerangesremoved",this.a0x);this.Y(A,"onLoopRangeChange",this.MK);this.Y(A,"innertubeCommand",this.onClickCommand);this.Y(A,"onRetroModeChanged",this.VEs);this.Y(A,g.qR("timedMarkerCueRange"),this.ed4);this.Y(A,"updatemarkervisibility",
|
|
this.vO);this.Y(A,"serverstitchedvideochange",this.gur);this.updateVideoData(A.getVideoData(),!0);this.MK(A.getLoopRange());Of(this)&&!this.W&&(this.W=new JZy(this.api,this.tooltip),A=g.dK(this.element).x||0,this.W.Bz(A,this.T),this.W.DM(this.ql),g.W(this,this.W),this.Y(this.W.dismissButton,"click",this.Wa),this.Y(this.W.playButton,"click",this.lI),this.Y(this.W.element,"dblclick",this.lI));this.api.createClientVe(this.qp,this,139609,!0);this.api.createClientVe(this.Po,this,140127,!0);this.api.createClientVe(this.a8,
|
|
this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)};
|
|
jH1=function(A){if(A.N.length===0){var L=new $t;A.N.push(L);g.W(A,L);L.DM(A.Nl,0)}for(;A.N.length>1;)A.N.pop().dispose();XS(A.N[0],"100%");A.N[0].startTime=0;A.N[0].title=""};
|
|
gyS=function(A){var L=L===void 0?NaN:L;var B=new dz1(A.api);A.U.push(B);g.W(A,B);B.DM(A.qp);L>=0&&(B.element.style.width=L+"px")};
|
|
GjS=function(A){for(;A.X.length;)A.X.pop().dispose()};
|
|
sHk=function(A){var L,B,f,K,V;return(V=g.y((K=g.y((L=A.getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,Mg))==null?void 0:K.playerBar,rZk))==null?void 0:V.chapters};
|
|
HZk=function(A){for(var L=A.N,B=[],f=0;f<L.length;f++)if(!isNaN(L[f].startTime)){var K=L[f].startTime;K=new g.WR(K,f===L.length-1?Infinity:L[f+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+K});B.push(K)}A.api.Jf("chapterCueRange");A.api.dX(B)};
|
|
QHk=function(A,L){var B,f=(B=A.zV[L])==null?void 0:B.chapters;f&&(hxD(A,f),A.api.getVideoData().k6=A.N,HZk(A));var K;if((B=(K=A.zV[L])==null?void 0:K.markers)&&L!=="HEATSEEKER"){GjS(A);K=g.m(B);for(B=K.next();!B.done;B=K.next())if(f=B.value,B=new yZk,f=g.y(f,g.bZD)){var V=void 0;B.title=((V=f.title)==null?void 0:V.simpleText)||"";V=void 0;B.timeRangeStartMillis=(V=f.timeRangeStartMillis)!=null?V:NaN;var J=V=void 0;B.onActiveCommand=(J=(V=f)==null?void 0:V.onActiveCommand)!=null?J:void 0;thQ(A,B)}kjQ(A,
|
|
A.X);K=A.X;B=A.cR;f=[];for(V=0;V<K.length;V++)!isNaN(K[V].timeRangeStartMillis)&&K[V].onActiveCommand&&(J=vt0(K[V].timeRangeStartMillis,V===K.length-1?Infinity:K[V+1].timeRangeStartMillis),f.push(J),B[J.id]=K[V].onActiveCommand);A.api.dX(f)}var R;if(L=g.y((R=A.zV[L])==null?void 0:R.heatmap,Tc1)){R=L.heatMarkers||[];var Z;K=(Z=L.minHeightDp)!=null?Z:0;var N;Z=(N=L.maxHeightDp)!=null?N:60;N=A.N.length;B=null;for(f=0;f<N;f++){J=A.N[f].startTime;var F=f===N-1?Infinity:A.N[f+1].startTime;f===A.U.length&&
|
|
gyS(A);V=[];B&&V.push(B);for(var D=g.m(R),I=D.next();!I.done;I=D.next()){I=I.value;var d=void 0,w=void 0,r=(w=(d=g.y(I,l$E))==null?void 0:d.timeRangeStartMillis)!=null?w:-1;r>=J&&r<=F&&V.push(I)}Z>0&&(A.qp.style.height=Z+"px");J=A.U[f];F=V;I=K;w=Z;r=f===0;r=r===void 0?!1:r;I$D(J,w);D=F;d=J.W;r=r===void 0?!1:r;var h=1E3/D.length,Q=[];Q.push({x:0,y:100});for(var l=0;l<D.length;l++){var C=void 0,O=((C=g.y(D[l],l$E))==null?void 0:C.heatMarkerIntensityScoreNormalized)||0;C=(l+.5)*h;O=100-g.B4(O*100,I/
|
|
d*100,w/d*100);l!==0||r||Q.push({x:0,y:O});Q.push({x:C,y:O});l===D.length-1&&Q.push({x:1E3,y:O})}Q.push({x:1E3,y:100});D=Q;F=F.length===0?"":eu7(D);J.api.J("delhi_modern_web_player")?J.V.setAttribute("d",F):J.D.setAttribute("d",F);J.gX=F!=="";g.D1(J.api.getRootNode(),"ytp-heat-map",J.gX);g.D1(J.api.getRootNode(),"ytp-heat-map-played_bar",J.api.J("web_player_heat_map_played_bar")&&F!=="");J.api.J("delhi_modern_web_player")?(J.U.style.display="none",J.N.style.display="none"):J.V.style.display="none";
|
|
V.length>0&&(B=V[V.length-1])}g.cJ(A);R=[];L=g.m(L.heatMarkersDecorations||[]);for(K=L.next();!K.done;K=L.next())if(K=g.y(K.value,mz8))Z=K.label,f=B=N=void 0,R.push({visibleTimeRangeStartMillis:(N=K.visibleTimeRangeStartMillis)!=null?N:-1,visibleTimeRangeEndMillis:(B=K.visibleTimeRangeEndMillis)!=null?B:-1,decorationTimeMillis:(f=K.decorationTimeMillis)!=null?f:NaN,label:Z?g.wq(Z):""});A.heatMarkersDecorations=R}};
|
|
thQ=function(A,L){A.X.push(L);g.W(A,L);L.DM(A.dB,A.dB.children.length)};
|
|
kjQ=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=MY(A,B.timeRangeStartMillis/(A.V.N*1E3),Yt(A)),K=A.api.J("delhi_modern_web_player")?.667:.6;g.Kv(B.element,"transform","translateX("+f+"px) scaleX("+K+")")}};
|
|
hxD=function(A,L){var B=0,f=!1;L=g.m(L);for(var K=L.next();!K.done;K=L.next()){K=K.value;if(g.y(K,CF6)){K=g.y(K,CF6);var V={startTime:NaN,title:null,onActiveCommand:void 0},J=K.title;V.title=J?g.wq(J):"";J=K.timeRangeStartMillis;J!=null&&(V.startTime=J);V.onActiveCommand=K.onActiveCommand;K=V;B===0&&K.startTime!==0&&(A.N[B].startTime=0,A.N[B].title="",A.N[B].onActiveCommand=K.onActiveCommand,B++,f=!0);A.N.length<=B&&(V=new $t,A.N.push(V),g.W(A,V),V.DM(A.Nl,A.Nl.children.length));A.N[B].startTime=
|
|
K.startTime;A.N[B].title=K.title?K.title:"";A.N[B].onActiveCommand=K.onActiveCommand;A.N[B].index=f?B-1:B}B++}for(;B<A.N.length;)A.N.pop().dispose();g.cJ(A);Uf(A)};
|
|
g.cJ=function(A){A.S4=A.N.length-1;A.jI=0;iZL(A,!0)&&iZL(A,!1);for(var L=0,B=0;B<A.N.length;B++)if(A.N[B].width===0){if(B===A.N.length-1)for(var f=A.N.length-1;f>=0;f--)if(A.N[f].width>0){wuL(A.N[f],0);var K=Math.floor(A.N[f].width);A.N[f].width=K;XS(A.N[f],K+"px");break}A.N[B].width=0;XS(A.N[B],"0")}else B===A.N.length-1?(f=Math.floor(A.N[B].width+L),A.N[B].width=f,XS(A.N[B],f+"px")):(L=A.N[B].width+L,f=Math.round(L),L-=f,A.N[B].width=f,XS(A.N[B],f+"px"));B=0;if(A.U.length===A.N.length)for(L=0;L<
|
|
A.U.length;L++)f=A.N[L].width,A.U[L].element.style.width=f+"px",A.U[L].element.style.left=B+"px",B+=f+WJ(A);A.api.J("delhi_modern_web_player")&&(A.N.length===1?A.N[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(A.N[0].W.classList.remove("ytp-progress-bar-end"),A.N[0].W.classList.add("ytp-progress-bar-start"),A.N[A.N.length-1].W.classList.add("ytp-progress-bar-end")))};
|
|
iZL=function(A,L){var B=0,f=!1,K=A.N.length,V=A.V.N*1E3;V===0&&(V=A.api.getProgressState().seekableEnd*1E3);if(V>0&&A.T>0){for(var J=A.T-WJ(A)*A.S4,R=A.jI===0?3:J*A.jI,Z=g.m(A.N),N=Z.next();!N.done;N=Z.next())N.value.width=0;for(;B<K;){Z=V-A.N[B].startTime;B<K-1&&(Z=A.N[B+1].startTime-A.N[B].startTime,wuL(A.N[B],WJ(A)));g.D1(A.N[B].N,"ytp-exp-chapter-hover-container",A.N.length>1);N=(V===0?0:Z/V*J)+A.N[B].width;if(N>R)A.N[B].width=N;else{A.N[B].width=0;var F=A,D=B,I=F.N[D-1];I!==void 0&&I.width>0?
|
|
I.width+=N:D<F.N.length-1&&(F.N[D+1].width+=N);wuL(F.N[D],0);L&&(A.S4--,Z/V>A.jI&&(A.jI=Z/V),f=!0)}B++}}return f};
|
|
Uf=function(A){if(A.T){var L=A.api.getProgressState(),B=A.api.getVideoData();if(!(B&&B.enableServerStitchedDai&&B.dL)||isFinite(L.current)){var f;if(((f=A.api.getVideoData())==null?0:ZI(f))&&L.airingStart&&L.airingEnd)var K=vJ(A,L.airingStart,L.airingEnd);else if(A.api.getPresentingPlayerType()===2){var V,J,R;K=(B=(K=A.api.getVideoData())==null?void 0:(V=K.getPlayerResponse())==null?void 0:(J=V.playerConfig)==null?void 0:(R=J.webPlayerConfig)==null?void 0:R.skippableAdProgressBarDuration)?vJ(A,L.seekableStart,
|
|
B/1E3):vJ(A,L.seekableStart,L.seekableEnd)}else K=vJ(A,L.seekableStart,L.seekableEnd);V=Xo(K,L.loaded,0);L=Xo(K,L.current,0);J=A.V.W!==K.W||A.V.N!==K.N;A.V=K;qY(A,L,V);J&&$z7(A);Xue(A);L=48;K=A.api.K();V=g.Am(A.api.K().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");V=A.api.J("delhi_modern_web_player_compact_controls")||V>0&&A.api.getPlayerSize().width<=V;A.api.J("delhi_modern_web_player")?L=A.api.getPlayerSize().width<=528?V?56:64:A.D?V?72:96:V?56:72:A.D?L=54:g.MM(K)&&
|
|
!K.W&&(L=40);A.Vj=L}}};
|
|
vJ=function(A,L,B){return OZe(A)?new $I(Math.max(L,A.Jw.startTimeMs/1E3),Math.min(B,A.Jw.endTimeMs/1E3)):new $I(L,B)};
|
|
cZv=function(A,L){var B,f,K;L=g.y((B=L.getWatchNextResponse())==null?void 0:(f=B.playerOverlays)==null?void 0:(K=f.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,Mg);if(L==null?0:L.progressColor)for(B=0;B<A.N.length;B++)A.N[B].Zg("PLAY_PROGRESS").style.background=g.Mf(L.progressColor);B=g.y(L==null?void 0:L.playhead,Ey7);var V,J;A.wT=(B==null?void 0:(V=B.playheadImage)==null?void 0:V.thumbnails)&&(B==null?void 0:(J=B.playheadImage)==null?void 0:J.thumbnails[0].url);var R,Z;A.k6=
|
|
(B==null?void 0:(R=B.playheadFastForwardImage)==null?void 0:R.thumbnails)&&(B==null?void 0:(Z=B.playheadFastForwardImage)==null?void 0:Z.thumbnails[0].url);var N,F;A.TZ=(B==null?void 0:(N=B.playheadRewindImage)==null?void 0:N.thumbnails)&&(B==null?void 0:(F=B.playheadRewindImage)==null?void 0:F.thumbnails[0].url);g.D1(A.e6,"ytp-decorated-scrubber-container",!!A.wT&&!A.api.Pn().T1);var D;if(B==null?0:(D=B.loggingDirectives)==null?0:D.trackingParams){var I;A.api.setTrackingParams(A.ZM,B==null?void 0:
|
|
(I=B.loggingDirectives)==null?void 0:I.trackingParams);A.api.createServerVe(A.ZM,A)}A.wT&&!A.api.Pn().T1&&(A.ZM.src=A.wT);A.k6&&fetch(A.k6,{cache:"force-cache"});A.TZ&&fetch(A.TZ,{cache:"force-cache"})};
|
|
Mh0=function(A,L){var B;if(((B=A.Jw)==null?void 0:B.type)==="repeatChapter"||(L==null?void 0:L.type)==="repeatChapter")L&&(L=A.N[BJ(A.N,L.startTimeMs)],g.D1(L.N,"ytp-repeating-chapter",!1)),A.Jw&&(L=A.N[BJ(A.N,A.Jw.startTimeMs)],g.D1(L.N,"ytp-repeating-chapter",!0)),A.N.forEach(function(f){g.D1(f.N,"ytp-exp-chapter-hover-container",!A.Jw)})};
|
|
xt=function(A,L){var B=v_S(A.V,L.W);if(A.N.length>1){B=PJ(A,L.V,!0);for(var f=0,K=0;K<B;K++)A.N[K].width>0&&(f+=A.N[K].width,f+=WJ(A));B=(A.N[B].startTime+(L.V-f)/A.N[B].width*((B===A.N.length-1?A.V.N*1E3:A.N[B+1].startTime)-A.N[B].startTime))/1E3||0}return B};
|
|
YpD=function(A,L){if(L<0)return"0";A=Math.floor(Math.min(L,A.api.getDuration())*1E3);return A>2147483647?"0":String(A)};
|
|
ec=function(A,L,B,f,K){L=YpD(A,L);B=YpD(A,B);A=A.progressBar.visualElement;f={seekData:{startMediaTimeMs:L,endMediaTimeMs:B,seekSource:f}};(L=g.sF())&&K1(L,A,K,f)};
|
|
UzL=function(A,L,B){if(B>=A.N.length)return!1;var f=A.T-WJ(A)*A.S4;return Math.abs(L-A.N[B].startTime/1E3)/A.V.N*f<4};
|
|
$z7=function(A){A.b2.style.removeProperty("height");for(var L=g.m(Object.keys(A.Cr)),B=L.next();!B.done;B=L.next())Wh6(A,B.value);nQ(A);qY(A,A.Wn,A.Uv)};
|
|
Yt=function(A){var L=A.mH.x;L=g.B4(L,0,A.T);A.cI.update(L,A.T);return A.cI};
|
|
qY=function(A,L,B){A.Wn=L;A.Uv=B;var f=Yt(A),K=A.V.N,V=v_S(A.V,A.Wn),J=g.B$("$PLAY_PROGRESS di $DURATION",{PLAY_PROGRESS:g.hG(V,!0),DURATION:g.hG(K,!0)}),R=BJ(A.N,V*1E3);R=A.N[R].title;A.update({ariamin:Math.floor(A.V.W),ariamax:Math.floor(K),arianow:Math.floor(V),arianowtext:R?R+" "+J:J});K=A.clipStart;V=A.clipEnd;A.Jw&&A.api.getPresentingPlayerType()!==2&&(K=A.Jw.startTimeMs/1E3,V=A.Jw.endTimeMs/1E3);K=Xo(A.V,K,0);R=Xo(A.V,V,1);J=A.api.getVideoData();V=g.B4(L,K,R);B=(J==null?0:g.Jj(J))?1:g.B4(B,
|
|
K,R);L=MY(A,L,f);g.Kv(A.e6,"transform","translateX("+L+"px)");A.api.J("delhi_modern_web_player")&&A.api.J("delhi_modern_web_player_cutout")&&vyQ(A,L);zo(A,f,K,V,"PLAY_PROGRESS");(J==null?0:ZI(J))?(L=A.api.getProgressState().seekableEnd)&&zo(A,f,V,Xo(A.V,L),"LIVE_BUFFER"):zo(A,f,K,B,"LOAD_PROGRESS");if(A.api.J("web_player_heat_map_played_bar")){var Z;(Z=A.U[0])!=null&&Z.T.setAttribute("width",(V*100).toFixed(2)+"%")}};
|
|
vyQ=function(A,L){A.api.getPresentingPlayerType()!==1?A.Nl.style.removeProperty("clip-path"):(L||(L=MY(A,A.Wn,Yt(A))),A.Nl.style.clipPath='path("'+(A.Bk?qp0(A,8,L,A.D?50:36,0,6):qp0(A,4,L,A.D?34:24,2,3))+'")')};
|
|
qp0=function(A,L,B,f,K,V){var J=B-f/2;B+=f/2;L+=K;return"M 0 "+K+" L 0 "+(L+" L ")+(J+" "+L+" C ")+(J+V+" "+L+" "+(J+V)+" "+K+" "+J+" "+K+" L 0 ")+(K+" M ")+(B+" "+K+" L ")+(A.T+" "+K+" L ")+(A.T+" "+L+" L ")+(B+" "+L+" C ")+(B-V+" "+L+" "+(B-V)+" "+K+" "+B+" "+K)};
|
|
zo=function(A,L,B,f,K){var V=A.N.length,J=L.N-A.S4*WJ(A),R=B*J;B=PJ(A,R);var Z=f*J;J=PJ(A,Z);K==="HOVER_PROGRESS"&&(J=PJ(A,L.N*f,!0),Z=L.N*f-PFk(A,L.N*f)*WJ(A));f=Math.max(R-xzy(A,B),0);for(R=B;R<V;R++)A.N[R].Zg(K).style.left=B===R?f+"px":"0";L=MY(A,A.Wn,L);for(V=B;V<J;V++){R=A.N[V].Zg(K);var N=A.N[V].width,F=V===B?N-f:N;ur(A,R,F,N);exL(A,R,F,N,V,L,K)}V=A.N[J].width;Z=g.B4(Z-xzy(A,J),0,V);B===J&&(Z-=f);f=A.N[J].Zg(K);ur(A,f,Z,V);exL(A,f,Z,V,J,L,K);Z=A.N.length;for(J+=1;J<Z;J++)nyD(A,J,K);for(J=0;J<
|
|
B;J++)nyD(A,J,K)};
|
|
xzy=function(A,L){if(L>=A.N.length)return A.T;for(var B=0,f=0;f<L;)B+=A.N[f].width,f++;return B};
|
|
nyD=function(A,L,B){B=A.N[L].Zg(B);ur(A,B,0,A.N[L].width)};
|
|
exL=function(A,L,B,f,K,V,J){J==="PLAY_PROGRESS"&&(B=!f||A.api.K().W?1:B/f,A.m1.clientWidth>0||A.GZ.clientWidth>0?(V=L.clientWidth/B,A=-1*A.m1.clientWidth/B):(V/=B,A=-1*A.N[K].element.offsetLeft/B),g.Kv(L,"background-size",V+"px"),g.Kv(L,"background-position-x",A+"px"))};
|
|
ur=function(A,L,B,f,K){K||A.api.K().W?L.style.width=B+"px":g.Kv(L,"transform","scalex("+(f?B/f:0)+")")};
|
|
PJ=function(A,L,B){var f=0;(B===void 0?0:B)&&(L-=PFk(A,L)*WJ(A));B=g.m(A.N);for(var K=B.next();!K.done;K=B.next()){K=K.value;if(L>K.width)L-=K.width;else break;f++}return f===A.N.length?f-1:f};
|
|
MY=function(A,L,B){var f=L*A.V.N*1E3;for(var K=-1,V=g.m(A.N),J=V.next();!J.done;J=V.next())J=J.value,f>J.startTime&&J.width>0&&K++;f=K<0?0:K;K=B.N-WJ(A)*A.S4;return L*K+WJ(A)*f+B.U};
|
|
PFk=function(A,L){for(var B=A.N.length,f=0,K=g.m(A.N),V=K.next();!V.done;V=K.next())if(V=V.value,V.width!==0)if(L>V.width)L-=V.width,L-=WJ(A),f++;else break;return f===B?B-1:f};
|
|
g.zxv=function(A,L,B,f){var K=A.T!==B,V=A.D!==f;A.ye=L;A.T=B;A.D=f;Of(A)&&(L=A.W)!=null&&(L.scale=f?1.5:1);$z7(A);A.N.length===1&&(A.N[0].width=B||0);K&&g.cJ(A);A.W&&V&&Of(A)&&(A.W.isEnabled&&(B=A.D?135:90,f=B-A.Vj,A.ql.style.height=B+"px",g.Kv(A.qp,"transform","translateY("+-f+"px)"),g.Kv(A.progressBar,"transform","translateY("+-f+"px)")),NcQ(A.W))};
|
|
nQ=function(A){var L=!!A.Jw&&A.api.getPresentingPlayerType()!==2,B=A.clipStart,f=A.clipEnd,K=!0,V=!0;L&&A.Jw?(B=A.Jw.startTimeMs/1E3,f=A.Jw.endTimeMs/1E3):(K=B>A.V.W,V=A.V.N>0&&f<A.V.N);var J,R;if(((J=A.Jw)==null?0:J.postId)||((R=A.Jw)==null?void 0:R.type)==="repeatChapter")V=K=!1;g.D1(A.element,"ytp-loop-range-enabled",L);g.D1(A.element,"ytp-clip-start-enabled",K);g.D1(A.element,"ytp-clip-end-enabled",V);L=K?Xo(A.V,B,0):0;f=V?Xo(A.V,f,1):1;A.Pz.style.left=Math.round(L*1E3)/10+"%";A.t$.style.left=
|
|
Math.round(f*1E3)/10+"%";A.m1.style.width=Math.round(L*1E3)/10+"%";A.GZ.style.left=Math.round(f*1E3)/10+"%";A.GZ.style.width=Math.round((1-f)*1E3)/10+"%"};
|
|
Xue=function(A){var L;if((L=A.api.getVideoData())==null||!ZI(L)){L=Yt(A);zo(A,L,A.Wn,Math.max(L.W,A.Wn),"HOVER_PROGRESS");for(var B=PJ(A,L.N*A.Wn,!0),f=PJ(A,L.V,!0),K=B;K<=f;K++)g.D1(A.N[K].V,"ytp-hover-progress-light",L.W>A.Wn);g.D1(A.b2,"ytp-scrubber-button-hover",B===f&&A.N.length>1);if(A.api.J("web_player_heat_map_played_bar")){var V;(V=A.U[0])!=null&&V.N.setAttribute("width",(L.W*100).toFixed(2)+"%")}}};
|
|
Wh6=function(A,L){var B=A.Cr[L];L=A.N8[L];var f=Yt(A),K=Xo(A.V,B.start/1E3,0),V=Rk6(B,A.D)/f.width;var J=Xo(A.V,B.end/1E3,1);V!==Number.POSITIVE_INFINITY&&(K=g.B4(K,0,J-V));J=Math.min(J,K+V);B.color&&(L.style.background=B.color);B=K;L.style.left=Math.max(B*f.N+f.U,0)+"px";ur(A,L,g.B4((J-B)*f.N+f.U,0,f.width),f.width,!0)};
|
|
uM6=function(A,L){var B=L.getId();A.Cr[B]===L&&(g.$9(A.N8[B]),delete A.Cr[B],delete A.N8[B])};
|
|
Of=function(A){var L=g.SK(A.api.K())&&(A.api.J("web_shorts_pip")||A.api.J("web_watch_pip")),B;return!((B=A.api.getVideoData())==null?0:B.isLivePlayback)&&!A.api.isMinimized()&&!A.api.isInline()&&(!A.api.nV()||!L)};
|
|
aD=function(A){A.W&&(A.W.disable(),A.Ox=0,A.qp.style.removeProperty("transform"),A.progressBar.style.removeProperty("transform"),A.ql.style.removeProperty("height"),A.element.parentElement&&A.element.parentElement.style.removeProperty("height"))};
|
|
a$C=function(A,L){var B=L/((A.D?135:90)-A.Vj)*A.Vj;g.Kv(A.progressBar,"transform","translateY("+-L+"px)");g.Kv(A.qp,"transform","translateY("+-L+"px)");g.Kv(A.ql,"transform","translateY("+B+"px)");A.ql.style.height=L+B+"px";A.element.parentElement&&(A.element.parentElement.style.height=A.Vj-B+"px")};
|
|
A3e=function(A,L){L?A.G||(A.element.removeAttribute("aria-disabled"),A.G=new g.tk(A.progressBar,!0),A.api.J("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&A.G.subscribe("hoverstart",A.Q81,A),A.G.subscribe("hovermove",A.ajF,A),A.G.subscribe("hoverend",A.vbF,A),A.G.subscribe("dragstart",A.eV4,A),A.G.subscribe("dragmove",A.GqF,A),A.G.subscribe("dragend",A.K14,A),A.api&&A.api.J("delhi_modern_web_player")&&A.api.J("delhi_modern_web_player_cutout")&&(A.Ry=new g.tk(A.progressBar,
|
|
!0),A.Ry.subscribe("hoverstart",function(){A.Bk=!0;vyQ(A)},A),A.Ry.subscribe("hoverend",function(){A.Bk=!1;
|
|
vyQ(A)},A)),A.BI=A.listen("keydown",A.A2)):A.G&&(A.element.setAttribute("aria-disabled","true"),A.J$(A.BI),A.G.cancel(),A.G.dispose(),A.G=null)};
|
|
WJ=function(A){return A.api.J("delhi_modern_web_player")?4:A.D?3:2};
|
|
OZe=function(A){var L;return!((L=A.Jw)==null||!L.postId)&&A.api.getPresentingPlayerType()!==2};
|
|
AS=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-remote-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Riproduci sulla TV":"","data-tooltip-title":"Riproduci sulla TV","aria-haspopup":"true","data-priority":"10"},Ir:"{{icon}}"});this.S=A;this.Wz=L;this.N=null;this.Y(A,"onMdxReceiversChange",this.zL);this.Y(A,"presentingplayerstatechange",this.zL);this.Y(A,"appresize",this.zL);A.createClientVe(this.element,this,139118);this.zL();this.listen("click",this.W,this);Cm(A,
|
|
this.element,this)};
|
|
Lb=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-settings-button"],C:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Ru(),title:A.J("player_tooltip_data_title_killswitch")?"Impostazioni":"","data-tooltip-title":"Impostazioni","data-tooltip-target-id":"ytp-settings-button"},B:[A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10",
|
|
fill:"white"}}]}:g.Qo()]});this.S=A;this.Wz=L;this.W=!0;this.listen("click",this.V);this.Y(A,"onPlaybackQualityChange",this.updateBadge);this.Y(A,"videodatachange",this.updateBadge);this.Y(A,"webglsettingschanged",this.updateBadge);this.Y(A,"appresize",this.N);Cm(A,this.element,this);this.S.createClientVe(this.element,this,28663);this.updateBadge();this.N(A.Pn().getPlayerSize())};
|
|
LGS=function(A,L){A.W=!!L;A.N(A.S.Pn().getPlayerSize())};
|
|
o7=function(A,L,B){if(A.J("web_add_footer_template_to_audio_track")){var f="Modifica le $BEGIN_LINKlingue preferite$END_LINK nelle impostazioni".split(/\$(BEGIN|END)_LINK/);f={Z:"div",j:"ytp-panel-footer-content",B:[f[0],{Z:"a",j:"ytp-panel-footer-content-link",C:{href:"/account_playback"},Ir:f[2]},f[4]]}}g.He.call(this,"Traccia audio",g.gC.AUDIO,A,L,void 0,void 0,f);this.S=A;this.N=B;this.tracks={};g.R1(this.element,"ytp-audio-menu-item");this.countLabel=new g.q({Z:"div",B:[{Z:"span",Ir:"Traccia audio"},
|
|
{Z:"span",j:"ytp-menuitem-label-count",Ir:"{{content}}"}]});A.J("web_settings_menu_icons")&&!this.S.J("html5_enable_new_audio_settings_menu")&&(L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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"}}]},this.setIcon(L));g.W(this,this.countLabel);g.Lh(this,this.countLabel);A.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.Y(A,"videodatachange",this.zL);this.Y(A,"onPlaybackAudioChange",this.zL);this.zL()};
|
|
o4v=function(A,L){g.of.call(this,g.Bo({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.gC.RD);this.S=A;this.Wz=L;g.R1(this.element,"ytp-audio-settings-menu-item");this.rf=new g.Im(A,void 0,"Audio");this.countLabel=new g.q({Z:"div",B:[{Z:"span",Ir:"Audio"},{Z:"span",j:"ytp-menuitem-label-count",Ir:"{{content}}"}]});A.J("web_settings_menu_icons")&&this.setIcon({Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z",
|
|
fill:"white"}}]});this.Dm=new o7(A,this.Wz,this);g.W(this,this.Dm);this.Y(A,"settingsMenuInitialized",this.f8.bind(this));this.Y(A,"videodatachange",this.f8.bind(this));g.W(this,this.countLabel);g.Lh(this,this.countLabel);this.Wz.ov(this);this.Y(A,"onPlaybackAudioChange",this.VF);this.listen("keydown",this.A2);this.listen("click",this.open)};
|
|
Bd=function(A,L){Dq.call(this,"Riproduzione automatica",g.gC.S_);this.S=A;this.Wz=L;this.N=!1;this.W=[];this.Y(A,"presentingplayerstatechange",this.f8);this.subscribe("select",this.onSelect,this);A.createClientVe(this.element,this,113682);this.f8()};
|
|
B17=function(A,L){g.of.call(this,g.Bo({"aria-haspopup":"false"}),0,"Altre opzioni");this.S=A;this.Wz=L;this.Y(this.element,"click",this.onClick);this.Wz.ov(this)};
|
|
f6k=function(A,L){var B;g.SK(A.K())&&(B={Z:"div",j:"ytp-panel-footer-content",B:[{Z:"span",Ir:"Modifica la qualit\u00e0 di download dalle "},{Z:"a",j:"ytp-panel-footer-content-link",Ir:"Impostazioni",C:{href:"/account_downloads"}}]});g.He.call(this,"Qualit\u00e0",g.gC.Yw,A,L,void 0,void 0,B);this.S=A;this.Wn={};this.T={};this.W={};this.qp=new Set;this.N=this.V=!1;this.U="unknown";this.X="";this.G=new g.Pa;g.W(this,this.G);this.V=this.S.J("web_player_use_new_api_for_quality_pullback");this.N=this.S.J("web_player_enable_premium_hbr_playback_cap");
|
|
A.J("web_settings_menu_icons")&&(L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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"}}]},this.setIcon(L));g.R1(this.rf.element,"ytp-quality-menu");this.Y(A,"videodatachange",this.f8);this.Y(A,"videoplayerreset",this.f8);this.Y(A,"onPlaybackQualityChange",this.RL);this.f8();A.createClientVe(this.element,this,137721)};
|
|
Vp0=function(A,L,B){var f=A.Wn[L],K=g.ka[L];return KGw(A,f?f.qualityLabel:K?K+"p":"Automatica",L,B)};
|
|
J31=function(A,L,B,f,K){var V=(L=A.N?A.W[L]:A.T[L])&&L.quality,J=L&&L.qualityLabel;J=J?J:"Automatica";f&&(J="("+J);A=KGw(A,J,V||"",K);f&&A.B.push(")");(f=(f=L&&L.paygatedQualityDetails)&&f.paygatedIndicatorText)&&B&&A.B.push({Z:"div",j:"ytp-premium-label",Ir:f});return A};
|
|
KGw=function(A,L,B,f){L={Z:"span",Rr:f,B:[L]};var K;f="ytp-swatch-color";if(A.V||A.N)f="ytp-swatch-color-white";B==="highres"?K="8K":B==="hd2880"?K="5K":B==="hd2160"?K="4K":B.indexOf("hd")===0&&B!=="hd720"&&(K="HD");K&&(L.B.push(" "),L.B.push({Z:"sup",j:f,Ir:K}));return L};
|
|
fb=function(A){tP.call(this,A.getAvailablePlaybackRates()[0],A.getAvailablePlaybackRates()[A.getAvailablePlaybackRates().length-1],.05,A.getPlaybackRate(),{Z:"div",j:"ytp-speedslider-indicator-container",B:[{Z:"div",j:"ytp-speedslider-badge"},{Z:"p",j:"ytp-speedslider-text"}]},!1,A.J("web_enable_varispeed_panel"));this.S=A;this.qp=zO(this.ZM,50,this);g.R1(this.W,"ytp-speedslider");this.Wn=this.m4("ytp-speedslider-text");this.Vj=this.m4("ytp-speedslider-badge");S$k(this);this.Y(this.W,"change",this.wT)};
|
|
S$k=function(A){A.Wn.textContent=A.N.toFixed(2)+"x";var L=A.N>2&&A.S.J("enable_web_premium_varispeed");A.Vj.classList.toggle("ytp-speedslider-premium-badge",L);A.Vj.setAttribute("aria-label",L?"Premium":"")};
|
|
Kb=function(A,L,B,f,K,V,J){g.q.call(this,{Z:"div",j:"ytp-slider-section",C:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},B:[{Z:"div",j:"ytp-slider",B:[{Z:"div",j:"ytp-slider-handle"}]}]});this.X=A;this.G=L;this.W=B;this.V=f;this.Wn=K;this.wT=V;this.range=this.V-this.W;this.JF=this.m4("ytp-slider-section");this.U=this.m4("ytp-slider");this.qp=this.m4("ytp-slider-handle");this.T=new g.tk(this.U,
|
|
!0);this.N=J?J:B;g.W(this,this.T);this.T.subscribe("dragmove",this.yU,this);this.Y(this.element,"keydown",this.Wi);this.Y(this.element,"wheel",this.NR);this.init()};
|
|
VA=function(A){Kb.call(this,.05,.05,A.getAvailablePlaybackRates()[0],A.getAvailablePlaybackRates()[A.getAvailablePlaybackRates().length-1],150,20,A.getPlaybackRate());this.S=A;this.D=g.TO("P");this.ZM=zO(this.Vj,50,this);g.R1(this.U,"ytp-speedslider");g.R1(this.D,"ytp-speedslider-text");A=this.D;var L=this.U;L.parentNode&&L.parentNode.insertBefore(A,L.nextSibling);Rn1(this);this.Y(this.S,"onPlaybackRateChange",this.updateValues)};
|
|
Rn1=function(A){A.D.textContent=ZY0(A,A.N)+"x"};
|
|
ZY0=function(A,L){A=Number(g.B4(L,A.W,A.V).toFixed(2));L=Math.floor((A+.001)*100%5+2E-15);var B=A;L!==0&&(B=A-L*.01);return Number(B.toFixed(2))};
|
|
N18=function(A){g.DE.call(this,{Z:"div",j:"ytp-speedslider-component"});A.J("web_settings_use_input_slider")?this.N=new fb(A):this.N=new VA(A);g.W(this,this.N);this.element.appendChild(this.N.element)};
|
|
FGL=function(A){var L=new N18(A);dA.call(this,A,L,"Personalizzato");g.W(this,L)};
|
|
deL=function(A,L){var B=new FGL(A);g.He.call(this,"Velocit\u00e0 di riproduzione",g.gC.GQ,A,L,JS(A)?void 0:"Personalizzato",JS(A)?void 0:function(){g.yp(L,B)});
|
|
var f=this;this.ME=new g.q({Z:"div",j:"ytp-menuitem-premium-badge",C:{"aria-label":"Premium"}});this.W=!1;this.GV={x2x:function(){return f.yI}};
|
|
g.W(this,B);this.WY=new fb(A);g.W(this,this.WY);if(A.J("web_settings_menu_icons")){var K=A.J("delhi_modern_web_player_icons")?Kue():{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
|
|
fill:"white"}}]};this.setIcon(K)}this.S=A;this.W=!1;this.U=null;JS(A)?(this.N=g.B$("($CURRENT_CUSTOM_SPEED) personalizzato",{CURRENT_CUSTOM_SPEED:this.S.getPlaybackRate().toString()}),this.V=this.S.getPlaybackRate()):this.V=this.N=null;g.W(this,this.ME);var V,J,R,Z;this.BE=(V=this.S.getVideoData())==null?void 0:(J=V.getWatchNextResponse())==null?void 0:(R=J.playerOverlays)==null?void 0:(Z=R.playerOverlayRenderer)==null?void 0:Z.showPlaybackRateUpsellPanelCommand;De8(A,this.BE)?(this.lY=SQ(4),this.S.createClientVe(this.ME.element,
|
|
this,273508)):this.lY=null;this.S.J("enable_web_premium_varispeed_upsell")&&this.S.createClientVe(this.element,this,278479);this.yI=this.S.getAvailablePlaybackRates();this.Y(A,"presentingplayerstatechange",this.zL);var N;((N=this.S.getVideoData())==null?0:N.aA())&&this.Y(A,"serverstitchedvideochange",this.zL);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(this.WY.W,"change",function(){f.W=!0;f.zL()});
|
|
this.zL()};
|
|
I66=function(A,L){var B=SQ(L);A.N&&(A.W||L===A.V)?(A.GH(A.N),A.setContent(L.toString())):A.GH(B)};
|
|
p1C=function(A){var L=A.yI.map(SQ);A.lY&&L.push(A.lY);A.eO(L);A.N=null;A.V=null;L=A.S.getPlaybackRate();JS(A.S)&&w1v(A,L);!A.yI.includes(L)||A.W?A.GH(A.N):A.GH(SQ(L))};
|
|
w1v=function(A,L){A.V=L;A.N=g.B$("($CURRENT_CUSTOM_SPEED) personalizzato",{CURRENT_CUSTOM_SPEED:L.toString()});L=A.yI.map(SQ);L.unshift(A.N);A.lY&&L.push(A.lY);A.eO(L)};
|
|
SQ=function(A){return A.toString()};
|
|
JS=function(A){return A.J("web_settings_menu_surface_custom_playback")};
|
|
De8=function(A,L){return!!L&&A.getAvailablePlaybackRates()[A.getAvailablePlaybackRates().length-1]<=2};
|
|
y3y=function(A){return A.J("web_settings_menu_surface_custom_playback")&&A.J("web_settings_use_input_slider")};
|
|
g4e=function(A,L){g.Im.call(this,A,void 0,"Velocit\u00e0 di riproduzione");this.Wz=L;this.GP=null;this.ME=new g.q({Z:"div",j:"ytp-menuitem-premium-badge",C:{"aria-label":"Premium"}});this.yI=this.S.getAvailablePlaybackRates();g.W(this,this.ME);var B,f,K,V;this.BE=(B=this.S.getVideoData())==null?void 0:(f=B.getWatchNextResponse())==null?void 0:(K=f.playerOverlays)==null?void 0:(V=K.playerOverlayRenderer)==null?void 0:V.showPlaybackRateUpsellPanelCommand;L=this.S;this.BE&&L.getAvailablePlaybackRates()[L.getAvailablePlaybackRates().length-
|
|
1]<=2?(this.lY=jYS(4),this.S.createClientVe(this.ME.element,this,273508)):this.lY=null;this.Y(A,"presentingplayerstatechange",this.zL);var J;((J=this.S.getVideoData())==null?0:J.aA())&&this.Y(A,"serverstitchedvideochange",this.zL);this.zL()};
|
|
G2S=function(A,L,B,f){if(L===A.lY)return A.d0(L,B,f);B=new g.of({Z:"div",Rr:["ytp-menuitem"],C:{tabindex:"0",role:"menuitemradio","aria-checked":f?"true":"false"},B:[{Z:"div",j:"ytp-menuitem-label",Ir:"{{label}}"}]},B,A.I8(L));B.listen("click",function(){A.wk(L)});
|
|
return B};
|
|
jYS=function(A){return A.toString()};
|
|
r36=function(A){var L=new fb(A),B=new g.q({Z:"div",j:"ytp-variable-speed-panel-button-container"}),f=new g.q({Z:"button",Rr:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],C:{"aria-label":"Diminuisci la velocit\u00e0 di riproduzione"},B:[{Z:"span",Ir:"-"}]});f.listen("click",function(){var d=L.W;d.stepDown(1);d.dispatchEvent(new Event("input"));d.dispatchEvent(new Event("change"))});
|
|
var K=new g.q({Z:"button",Rr:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],C:{"aria-label":"Aumenta la velocit\u00e0 di riproduzione"},B:[{Z:"span",Ir:"+"}]});K.listen("click",function(){var d=L.W;d.stepUp(1);d.dispatchEvent(new Event("input"));d.dispatchEvent(new Event("change"))});
|
|
var V=new g.q({Z:"div",j:"ytp-variable-speed-panel-slider-container",B:[f,L,K]}),J=new g.q({Z:"div",j:"ytp-variable-speed-panel-content",B:[V,B]}),R=new g.DE({Z:"div",C:{tabindex:"0"},B:[J]});dA.call(this,A,R,"Velocit\u00e0 di riproduzione");var Z=this;this.WY=L;g.W(this,this.WY);g.W(this,f);g.W(this,K);g.W(this,B);g.W(this,V);g.W(this,J);g.W(this,R);var N,F,D,I;if((f=(N=A.getVideoData())==null?void 0:(F=N.getPlayerResponse())==null?void 0:(D=F.playerConfig)==null?void 0:(I=D.granularVariableSpeedConfig)==
|
|
null?void 0:I.defaultPlaybackRateOptions)&&f.length>0)for(N=g.m(f),D=N.next(),F={};!D.done;F={XU:void 0},D=N.next())F.XU=D.value,D=new g.q({Z:"button",Rr:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],B:[{Z:"span",Ir:""+F.XU.label}]}),g.W(this,D),B.element.appendChild(D.element),D.listen("click",function(d){return function(){d.XU.value&&Z.S.setPlaybackRate(d.XU.value/100)}}(F));
|
|
this.Y(A,"onPlaybackRateChange",this.onPlaybackRateChange);this.onPlaybackRateChange(A.getPlaybackRate())};
|
|
R7=function(A,L){g.He.call(this,"Velocit\u00e0 di riproduzione",g.gC.GQ,A,L);this.S=A;A.J("web_settings_menu_icons")&&this.setIcon(Kue());this.W(A.getPlaybackRate());this.Y(A,"onPlaybackRateChange",this.W);this.Y(A,"presentingplayerstatechange",this.N);var B;((B=this.S.getVideoData())==null?0:B.aA())&&this.Y(A,"serverstitchedvideochange",this.N);this.N()};
|
|
HYL=function(A,L,B,f){var K=new g.Im(L,void 0,"Sostituisci opzioni video");g.He.call(this,f.text||"",A,L,B,"Sostituisci opzioni video",function(){g.yp(B,K)});
|
|
var V=this;g.R1(this.element,"ytp-subtitles-options-menu-item");this.setting=f.option.toString();A=f.options;this.settings=g.jZ(A,this.Sh,this);this.V=K;g.W(this,this.V);L=new g.of({Z:"div",j:"ytp-menuitemtitle",Ir:"Consenti l'uso di uno stile diverso per i sottotitoli se specificato dal video."},0);g.W(this,L);this.V.ov(L,!0);this.W=new g.of({Z:"div",j:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},B:[{Z:"div",j:"ytp-menuitem-label",Ir:"On"}]},-1);g.W(this,this.W);this.V.ov(this.W,!0);this.Y(this.W.element,
|
|
"click",function(){sYE(V,!0)});
|
|
this.N=new g.of({Z:"div",j:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},B:[{Z:"div",j:"ytp-menuitem-label",Ir:"Off"}]},-2);g.W(this,this.N);this.V.ov(this.N,!0);this.Y(this.N.element,"click",function(){sYE(V,!1)});
|
|
this.eO(g.mn(A,this.Sh))};
|
|
sYE=function(A,L){A.publish("settingChange",A.setting+"Override",!L);A.Wz.h2()};
|
|
ZC=function(A,L){g.Im.call(this,A,void 0,"Opzioni");var B=this;this.Lu={};for(var f=0;f<g.VF.length;f++){var K=g.VF[f],V=new HYL(-f,A,L,K);g.W(this,V);V.subscribe("settingChange",this.YX,this);this.Lu[K.option.toString()]=V;this.ov(V,!0)}A=new g.of(g.Bo(),-g.VF.length,"Reimposta");g.W(this,A);A.listen("click",function(){B.YX("reset",!0)});
|
|
this.ov(A,!0)};
|
|
Nd=function(A,L){g.He.call(this,"Traduzione automatica",0,A,L);this.S=A;this.languages={};A.createClientVe(this.element,this,127301);A.logVisibility(this.element,!0)};
|
|
hnE=function(A,L){A.languages=g.jZ(L,A.N,A);A.eO(g.mn(L,A.N))};
|
|
tp8=function(A,L){var B=new ZC(A,L),f=["Impostazione valida solo per questo video. Modifica la visibilit\u00e0 dei sottotitoli nelle "," per tutti i video."],K;g.SK(A.K())&&(K={Z:"div",j:"ytp-panel-footer-content",B:[{Z:"span",Ir:f[0]},{Z:"a",j:"ytp-panel-footer-content-link",Ir:"Impostazioni",C:{href:"/account_playback"}},{Z:"span",Ir:f[1]}]});g.He.call(this,"Sottotitoli",g.gC.SUBTITLES,A,L,"Opzioni",function(){g.yp(L,B)},K);
|
|
var V=this;this.S=A;this.Wz=L;this.tracks={};this.U=new g.aa(function(){bYy(V,!1)},3E3);
|
|
g.W(this,this.U);this.countLabel=new g.q({Z:"div",B:[{Z:"span",Ir:"Sottotitoli"},{Z:"span",j:"ytp-menuitem-label-count",Ir:"{{content}}"}]});g.W(this,this.countLabel);g.Lh(this,this.countLabel);A.J("web_settings_menu_icons")&&this.setIcon(tHk(A.J("delhi_modern_web_player_icons")));this.N=new Nd(A,L);g.W(this,this.N);this.N.subscribe("select",this.Hi,this);this.V=B;g.W(this,this.V);this.V.subscribe("settingChange",this.YX,this);L.subscribe("show",this.i84,this);this.Y(A,"videodatachange",this.zL);
|
|
this.Y(A,"onApiChange",this.zL);this.Y(A,"onCaptionsTrackListChanged",this.zL);this.Y(A,"captionschanged",this.zL);A.createClientVe(this.element,this,127300);this.zL()};
|
|
k2D=function(A){return Object.values(A.tracks).find(function(L){return L.languageCode==="en"&&L.kind==="asr"})};
|
|
FA=function(A,L){A.S.setOption("captions","track",L)};
|
|
bYy=function(A,L){A.S.setOption("captions","sampleSubtitles",L)};
|
|
T16=function(A){g.pl.call(this,A,"ytp-settings-menu");var L=this;this.NU=new g.Im(this.S);this.Wb=this.Dt=this.settingsButton=null;this.isInitialized=this.zE=!1;g.W(this,this.NU);this.hide();g.yp(this,this.NU);A.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(K){L.wI(K)});
|
|
this.Y(A,"highlightSettingsMenu",function(){L.zE=!0;L.fD()});
|
|
this.Y(A,"openSettingsMenuItem",function(K){if(K&&(L.zE=!0,L.fD(),K==="menu_item_video_quality_advanced")){var V;(V=L.Dt)==null||V.open()}});
|
|
A.J("html5_enable_voice_boost")&&(this.Y(A,"onPlaybackAudioChange",this.VF),this.Y(A,"videodatachange",this.VF));var B,f;((B=this.S.K())==null?0:(f=B.getWebPlayerContextConfig())==null?0:f.enableFullscreenComponentsFeature)&&this.Y(this.element,"wheel",function(K){K.stopPropagation()})};
|
|
l60=function(A,L){A.settingsButton=L;A.element.id=L.element.getAttribute("aria-controls")};
|
|
QYQ=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-subtitles-button","ytp-button"],C:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},B:[A.J("delhi_modern_web_player_icons")?{Z:"div",j:"ytp-subtitles-button-icon",Ir:"{{icon}}"}:bPv(A)]});this.S=A;this.tooltip=L.Ce();A.J("delhi_modern_web_player_icons")&&this.updateValue("icon",
|
|
meE(this));this.Y(A,"videodatachange",this.zL);this.Y(A,"appresize",this.zL);this.Y(A,"promotooltipacceptbuttonclicked",this.vJr);this.Y(A,"onApiChange",this.zL);this.Y(A,"onCaptionsTrackListChanged",this.zL);this.Y(A,"captionschanged",this.zL);this.S.createClientVe(this.element,this,127299);this.zL();this.listen("click",this.onClick);this.addOnDisposeCallback(g.QW(L.Ce(),this.element))};
|
|
DC=function(A){return g.y2(A.S.SI())!=null?g.y2(A.S.SI()).wl()?!!A.S.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
|
|
meE=function(A){if(A.S.J("delhi_modern_web_player_icons"))return A=ph.includes("it")?DC(A)&&A.isEnabled()?{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z",
|
|
fill:"white"}}]}:rq():DC(A)&&A.isEnabled()?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z",
|
|
fill:"white"}}]}:IGD()};
|
|
g.d0=function(A,L,B){B=B===void 0?350:B;g.q.call(this,{Z:"div",Rr:["ytp-time-display","notranslate"],B:[{Z:"div",j:"ytp-time-wrapper",B:[{Z:"div",j:"ytp-time-contents",C:A.J("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},B:[{Z:"span",j:"ytp-time-clip-icon",Ir:"{{clipicon}}",C:{"aria-label":"Clip"}},{Z:"span",j:"ytp-time-current",Ir:"{{currenttime}}"},{Z:"span",j:"ytp-time-separator",Ir:" / "},{Z:"span",j:"ytp-time-duration",
|
|
Ir:"{{duration}}"}]}]},{Z:"span",j:"ytp-clip-watch-full-video-button-separator",Ir:"\u2022"},{Z:"span",j:"ytp-clip-watch-full-video-button",Ir:"{{watchfullvideo}}"}]});var f=this;this.api=A;this.Wn=B;this.liveBadge=new g.q({Z:"button",Rr:["ytp-live-badge","ytp-button"],C:{disabled:"true"},Ir:"{{content}}"});this.N=null;this.ek=this.W=!1;this.G=this.X=this.T=null;this.isPremiere=!1;this.D=this.U=null;this.V=!1;this.Jw=this.liveIndicatorText=null;this.qp=this.m4("ytp-clip-watch-full-video-button");
|
|
this.liveBadge.setContent("Dal vivo");g.W(this,this.liveBadge);this.api.J("web_player_updated_entrypoint")||this.api.J("delhi_modern_web_player")?this.liveBadge.DM(this.m4("ytp-time-wrapper")):this.liveBadge.DM(this.element);this.tooltip=L.Ce();this.liveBadge.listen("click",this.onClick.bind(this));this.api.J("delhi_modern_web_player")&&(L=this.m4("ytp-time-wrapper"),this.Y(L,"click",this.D8s),L.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.Y(this.qp,"click",this.PQT);this.Y(this.api,
|
|
"serverstitchedvideochange",function(){CvL(f,f.api.getProgressState().isAtLiveHead)});
|
|
this.Y(A,"presentingplayerstatechange",this.iq);this.Y(A,"appresize",this.iq);this.Y(A,"onLoopRangeChange",this.onLoopRangeChange);this.Y(A,"videodatachange",this.onVideoDataChange);(L=A.getVideoData())&&this.updateVideoData(L);this.iq();iY6(this,A.getLoopRange())};
|
|
CvL=function(A,L){var B=A.liveBadge.element,f=A.api.isLifaAdPlaying();B.disabled=f||L;!I7(A)||A.G===L&&A.X===A.liveIndicatorText&&A.T===A.isPremiere||(A.G=L,A.X=A.liveIndicatorText,A.T=A.isPremiere,A.iq(),L?B.classList.add("ytp-live-badge-is-livehead"):B.classList.remove("ytp-live-badge-is-livehead"),A.liveIndicatorText?A.liveBadge.setContent(A.liveIndicatorText):A.liveBadge.setContent(A.isPremiere?"Premi\u00e8re":"Dal vivo"),L?A.N&&(A.N(),A.N=null,B.removeAttribute("data-tooltip-title")):(B.setAttribute("data-tooltip-title",
|
|
"Passa alla trasmissione dal vivo."),A.N=g.QW(A.tooltip,A.liveBadge.element)))};
|
|
iY6=function(A,L){var B=A.Jw!==L;A.Jw=L;B&&$eE(A)};
|
|
$eE=function(A){A.updateValue("clipicon",{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",C:{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.ek&&!A.W?A.updateValue("watchfullvideo","Guarda in live streaming"):A.updateValue("watchfullvideo","Guarda video completo");g.D1(A.element,"ytp-clip",w0(A));g.D1(A.element,"ytp-live",I7(A))};
|
|
I7=function(A){var L=A.api.K().J("enable_linear_program_progress"),B=A.api.getPresentingPlayerType()===2;return A.ek&&!w0(A)&&(!L||!A.W)&&!B};
|
|
w0=function(A){return!!A.Jw&&!!A.Jw.postId&&A.api.getPresentingPlayerType()!==2&&(!A.Jw.type||A.Jw.type==="clips")};
|
|
E48=function(A,L){g.q.call(this,{Z:"div",j:"ytp-volume-panel",C:{title:A.J("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},B:[{Z:"div",j:"ytp-volume-slider",B:[{Z:"div",j:"ytp-volume-slider-handle"}]}]});var B=this;this.api=A;this.T=L;this.ZF=!1;this.Wn=this.volume=0;this.D=null;this.W=this.N=this.isDragging=!1;this.T=L;this.V=A.Zr();
|
|
this.G=A.J("web_player_use_screen_width_for_big_mode");this.X=this.m4("ytp-volume-slider");this.qp=this.m4("ytp-volume-slider-handle");this.U=new g.tk(this.X,!0);g.W(this,this.U);this.U.subscribe("dragstart",this.nJF,this);this.U.subscribe("dragmove",this.IK,this);this.U.subscribe("dragend",this.rzx,this);this.Y(A,"onVolumeChange",this.onVolumeChange);this.Y(A,"appresize",this.y$j);this.Y(A,"fullscreentoggled",this.Vi);this.Y(A,"onShowControls",this.u3);this.Y(A,"onHideControls",this.u3);this.Y(this.element,
|
|
"keydown",this.lk);this.Y(this.element,"focus",function(){pb(B,B.N,B.isDragging,!0,B.api.ZF())});
|
|
this.Y(this.element,"blur",function(){pb(B,B.N,B.isDragging,!1,B.api.ZF())});
|
|
X1C(this,A.Pn().getPlayerSize());OYe(this,A.getVolume(),A.isMuted());Cm(A,this.element,this)};
|
|
c3k=function(A){var L=A.api.Zr();A.V!==L&&(A.V=L,OYe(A,A.api.getVolume(),A.api.isMuted()))};
|
|
X1C=function(A,L){A.xP(L.width>=350)};
|
|
OYe=function(A,L,B){var f=Math.floor(L),K=f+"% volume"+(B?" audio disattivato":"");B=B?0:L/100;A.updateValue("valuenow",f);A.updateValue("valuetext",K);f=A.V?78:52;K=!A.api.J("delhi_modern_web_player")&&A.V?18:12;A.qp.style.left=(f-K)*B+"px";A.volume=L};
|
|
Mp0=function(A,L){g.D1(A.element,"ytp-volume-control-hover",L);pb(A,L,A.isDragging,A.W,A.api.ZF())};
|
|
pb=function(A,L,B,f,K){var V=A.N||A.isDragging||A.W||A.ZF;A.N=L;A.isDragging=B;A.W=f;A.ZF=K;L=A.N||A.isDragging||A.W||A.ZF;V!==L&&(L?A.D=A.Y(A.element,"wheel",A.qR):(A.J$(A.D),A.D=null),g.D1(A.T,"ytp-volume-slider-active",L))};
|
|
yA=function(A,L){var B=A.K(),f=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];B.V&&f.push("no-link");var K={title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:B.yj,"data-priority":"6","data-sessionlink":"feature=player-button"};B.V||(K.href="{{url}}");g.q.call(this,{Z:"a",Rr:f,C:K,Ir:"{{logoSvg}}"});this.N=null;this.api=A;this.visible=!1;B.V||(this.N=this.listen("click",this.onClick));this.Y(A,"videodatachange",this.onVideoDataChange);
|
|
this.Y(A,"videoplayerreset",this.onVideoDataChange);this.Y(A,"onLoopRangeChange",this.onVideoDataChange);this.Y(A,"appresize",this.Bz);this.onVideoDataChange();B.V||this.addOnDisposeCallback(g.QW(L.Ce(),this.element));this.Bz()};
|
|
Uee=function(A,L,B){g.dN.call(this);var f=this;this.S=A;this.Vj=L;this.C8=B;this.Ox=NaN;this.qp=this.Ex=this.playButton=this.U=this.D=this.Ys=this.JF=this.Wn=this.yj=this.muteButton=this.X=this.Cr=this.d7=this.cn=null;this.N=new T16(this.S);this.progressBar=new g.Ef(this.S,this.Vj);this.HZ=new g.d0(this.S,this.Vj);this.sx=new ObS(this.S,this.Vj);this.G=new g.uN(this.VU,null,this);B=A.K();this.C8.subscribe("autohideupdate",this.Al,this);var K=!A.getPlayerStateObject().isCued(),V;(this.ql=!A.J("delhi_modern_web_player")&&
|
|
A.K().J("html5_player_dynamic_bottom_gradient"))?this.Cr=V=new CEQ(A):V=new g.q({Z:"div",j:"ytp-gradient-bottom"});g.W(this,V);g.Wh(A,V.element,9);this.wT=new g.KL(V,250,K,100);g.W(this,this.wT);this.W=new g.q({Z:"div",j:"ytp-chrome-bottom",B:[{Z:"div",j:"ytp-chrome-controls"}]});g.W(this,this.W);g.Wh(A,this.W.element,9);this.ZM=new g.KL(this.W,250,K,100);g.W(this,this.ZM);this.S4=this.W.element.children[0];g.W(this,this.N);g.Wh(A,this.N.element,6);this.N.subscribe("show",function(N){f.S.oh(!N);A.WP(f.N,
|
|
N)});
|
|
g.W(this,this.progressBar);this.progressBar.DM(this.W.element,0);K=new sf(A,L);g.W(this,K);g.Wh(A,K.element,4);K=new g.ZE({Z:"div",j:"ytp-left-controls"});g.W(this,K);K.DM(this.S4);A.J("delhi_modern_web_player")||(V=new g.CQ(A,L,!1),g.W(this,V),V.DM(K.element));A.J("web_render_jump_buttons")&&(this.yj=new HJ(A,-10),g.W(this,this.yj),this.yj.DM(K.element));B.Ys||(this.playButton=new g.QF(A,L),g.W(this,this.playButton),this.playButton.DM(K.element));A.J("web_render_jump_buttons")&&(this.Wn=new HJ(A,
|
|
10),g.W(this,this.Wn),this.Wn.DM(K.element));A.J("delhi_modern_web_player_remove_nav_buttons")||(A.J("delhi_modern_web_player")&&(V=new g.CQ(A,L,!1),g.W(this,V),V.DM(K.element)),V=new g.CQ(A,L,!0),g.W(this,V),V.DM(K.element));if(!A.J("delhi_modern_web_player")||A.J("delhi_modern_web_player_horizontal_volume_controls"))if(V=new g.q({Z:"span",j:"ytp-volume-area"}),g.W(this,V),V.DM(K.element),!B.N8&&(this.muteButton=new m0(A,L),g.W(this,this.muteButton),this.muteButton.DM(V.element),B.JF&&!B.X)){var J=
|
|
new E48(A,this.W.element);this.Ex=J;g.W(this,J);J.DM(V.element);V=new g.tk(V.element);g.W(this,V);V.subscribe("hoverstart",function(){var N;(N=f.Ex)==null||Mp0(N,!0)});
|
|
V=new g.tk(K.element);g.W(this,V);V.subscribe("hoverend",function(){var N;(N=f.Ex)==null||Mp0(N,!1)})}A.J("delhi_modern_web_player_lhs_volume_controls")&&!A.J("delhi_modern_web_player_horizontal_volume_controls")&&(K.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new m0(A,L),g.W(this,this.muteButton),this.muteButton.DM(K.element),this.muteButton.element.classList.add("ytp-standalone-mute-button"));
|
|
g.W(this,this.HZ);this.HZ.DM(K.element);this.JF=new Go(A,this.progressBar);g.W(this,this.JF);this.JF.DM(K.element);B.J("web_key_moments_markers")&&(this.Ys=new hP(A,this.progressBar),g.W(this,this.Ys),this.Ys.DM(K.element));A.J("delhi_modern_web_player")?this.V=new g.ZE({Z:"div",j:"ytp-right-controls",B:[{Z:"div",j:jQ.RIGHT_CONTROLS_LEFT},{Z:"div",j:jQ.RIGHT_CONTROLS_RIGHT}]}):this.V=new g.ZE({Z:"div",j:"ytp-right-controls"});g.W(this,this.V);this.V.DM(this.S4);A.J("delhi_modern_web_player")&&(this.X=
|
|
new rx(A),g.W(this,this.X),this.X.DM(this.V.m4(jQ.RIGHT_CONTROLS_LEFT)),A.J("delhi_modern_web_player_lhs_volume_controls")||A.J("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new m0(A,L),g.W(this,this.muteButton),this.muteButton.DM(this.V.m4(jQ.RIGHT_CONTROLS_LEFT))));this.Nl=new QYQ(A,L);g.W(this,this.Nl);g0(this,this.Nl,"RIGHT_CONTROLS_LEFT");this.settingsButton=new Lb(A,this.N);g.W(this,this.settingsButton);l60(this.N,this.settingsButton);g0(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");
|
|
K=A.getVideoData();if(B.Xp||K.OE&&B.controlsType==="1")this.D=new yA(A,L),g.W(this,this.D),this.D.DM(this.V.element);B.showMiniplayerButton&&!A.J("web_player_miniplayer_in_context_menu")&&(this.U=new br(A),g.W(this,this.U),g0(this,this.U,"RIGHT_CONTROLS_RIGHT"));B.showMiniplayerButton&&this.Y(A,"minimized",function(){f.N.hide()});
|
|
B.dB&&(L=new AS(A,this.N),g.W(this,L),g0(this,L,"RIGHT_CONTROLS_RIGHT"));B.Tf&&(L=new jc(A),g.W(this,L),g0(this,L,"RIGHT_CONTROLS_RIGHT"));g.W(this,this.sx);g0(this,this.sx,"RIGHT_CONTROLS_RIGHT");g.W(this,this.G);this.Y(A,"appresize",this.Bz);this.Y(A,"fullscreentoggled",this.Bz);var R;(R=this.X)==null||R.subscribe("small-mode-expand-right-bottom-controls",function(){Y$0(f)});
|
|
var Z;(Z=this.X)==null||Z.subscribe("small-mode-collapse-right-bottom-controls",function(){Y$0(f)});
|
|
this.Y(A,"presentingplayerstatechange",this.yA);this.Y(A,"videodatachange",this.onVideoDataChange);this.Bz()};
|
|
Y$0=function(A){A.W.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",A.X.isExpanded())};
|
|
WG1=function(A,L){A.S.getPlayerStateObject().isCued()||L?L&&(A.ZM.hide(),A.wT.hide(),A.muteButton&&A.muteButton.Hy(!1),A.D&&A.D.Hy(!1),A.U&&A.U.Hy(!1),A.S.Ed(A.Zg())):L||(A.ZM.show(),A.wT.show(),A.muteButton&&A.muteButton.Hy(!0),A.D&&A.D.Hy(!0),A.U&&A.U.Hy(!0),A.Al())};
|
|
q$7=function(A){var L=A.S.Pn().getPlayerSize().width;return Math.max(L-v4L(A)*2,100)};
|
|
v4L=function(A){if(A.S.J("web_player_rtr_ctrls")&&A.S.Pn().T1)return 0;var L=A.S.Zr(),B=A.S.getVideoData().OE,f=0;A.S.Zr()&&A.S.isEmbedsShortsMode()&&(f=(A.S.Pn().getPlayerSize().width-A.S.getVideoContentRect().width)/2);return 12*(B?0:L?2:1)+f};
|
|
PvQ=function(A){var L=A.S.Zr()?72:50,B=A.S.K();g.SK(B)&&(B.J("delhi_modern_web_player")?(L=g.Am(B.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),L=A.S.J("delhi_modern_web_player_compact_controls")||L>0&&A.S.getPlayerSize().width<=L,L=A.S.Zr()?B.J("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:L?70:78,A.S.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(A=getComputedStyle(A.S.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||
|
|
"36px",L+=Number(A.replace("px","")))):L=62,g.PL(B)&&(L=54));return L};
|
|
g0=function(A,L,B){A.S.J("delhi_modern_web_player")?L.DM(A.V.m4(jQ[B])):L.DM(A.V.element)};
|
|
en1=function(A){DW.call(this,A,!1);var L=this;this.suggestedActions={};this.N=null;this.V=!1;this.element.setAttribute("data-overlay-order","7");this.Y(this.S,"videodatachange",this.onVideoDataChange);this.Y(this.S,g.qR("suggested_action_button_visible"),function(B){xey(L,B.id);L.enabled=!0;L.wI()});
|
|
this.Y(this.S,g.PR("suggested_action_button_visible"),function(B){L.enabled=!1;L.wI();L.S.removeCueRange(B.id)});
|
|
this.Y(A,"presentingplayerstatechange",this.onStateChange)};
|
|
xey=function(A,L){A.text=L;LI0(A);var B;A.onClickCommand=(B=A.suggestedActions[L])==null?void 0:B.tapCommand};
|
|
n4w=function(A){A.suggestedActions={};A.S.Jf("suggested_action_button_visible");A.V=!1};
|
|
r0=function(A){g.q.call(this,{Z:"div",j:GG.TITLE,B:[{Z:"div",Rr:[GG.TEXT,A.J("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],B:[{Z:"a",Rr:[GG.LINK,GG.SESSIONLINK],C:{target:A.K().yj,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Ir:"{{title}}"},{Z:"div",j:GG.SUBTEXT,B:["{{subtextElement}}"]}]}]});this.api=A;this.N=null;this.link=this.m4(GG.LINK);A.createClientVe(this.element,this,23851);this.Y(A,"videodatachange",this.zL);
|
|
this.Y(A,"videoplayerreset",this.zL);this.zL()};
|
|
znw=function(A){A.updateValue("channelLink","");A.updateValue("channelName","");g.PL(A.api.K())||A.api.J("enable_channel_title_always_focusable")?A.updateValue("channelTitleFocusable","0"):A.updateValue("channelTitleFocusable","-1")};
|
|
g.sY=function(A,L){g.q.call(this,{Z:"div",B:[{Z:"div",j:"ytp-tooltip-text-wrapper",C:{"aria-hidden":"{{ariaHidden}}"},B:[{Z:"div",j:"ytp-tooltip-edu",B:[{Z:"svg",C:{height:"100%",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",C:{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"}}]},{Z:"span",Ir:"{{eduText}}"}]},{Z:"div",j:"ytp-tooltip-image"},{Z:"div",j:"ytp-tooltip-title",B:[{Z:"span",Ir:"{{title}}"},{Z:"div",j:"ytp-tooltip-keyboard-shortcut",
|
|
Ir:"{{keyBoardShortcutTitle}}"}]},{Z:"div",j:"ytp-tooltip-bottom-text",B:[{Z:"span",j:"ytp-tooltip-text",Ir:"{{text}}"},{Z:"div",j:"ytp-tooltip-keyboard-shortcut",Ir:"{{keyBoardShortcut}}"}]},{Z:"div",j:"ytp-tooltip-progress-bar-pill",B:[{Z:"div",j:"ytp-tooltip-progress-bar-pill-time-stamp",Ir:"{{pillTimeStamp}}"},{Z:"div",j:"ytp-tooltip-progress-bar-pill-title",Ir:"{{pillTitle}}"}]}]},{Z:"div",j:"ytp-tooltip-bg",B:[{Z:"div",j:"ytp-tooltip-duration",Ir:"{{duration}}"}]}]});var B=this;this.api=A;this.JF=
|
|
L;this.G=function(f){(f=f.relatedTarget)&&g.XF(B.N,f)||B.HI()};
|
|
this.D=function(f){B.type===3&&B.HI();(f=f.currentTarget)&&f.nodeType===1&&!B.type&&(f.removeEventListener("mouseover",B.D),f.addEventListener("mouseout",B.G),f.removeEventListener("focus",B.D),f.addEventListener("blur",B.G),ul0(B,f,2))};
|
|
this.Wn=function(){B.HI()};
|
|
this.type=this.N=null;this.X=!1;this.W=null;this.V="";this.T=!0;this.scale=1;this.env=this.api.K();this.ZM=this.env.W;this.wrapper=this.m4("ytp-tooltip-text-wrapper");this.bg=this.m4("ytp-tooltip-bg");this.wT=this.m4("ytp-tooltip-edu");this.image=this.m4("ytp-tooltip-image");this.text=this.m4("ytp-tooltip-text");this.bottomText=this.m4("ytp-tooltip-bottom-text");this.title=this.m4("ytp-tooltip-title");this.fade=new g.KL(this,100);this.U=NaN;this.Jr=this.api.Pn().getPlayerSize().width;this.qp=new g.aa(this.qvr,
|
|
250,this);this.Vj=new g.aa(this.HI,5E3,this);g.W(this,this.fade);g.W(this,this.qp);g.W(this,this.Vj);X5&&(A=this.m4("ytp-tooltip-text"),A.setAttribute("role","text"),A.setAttribute("aria-live","polite"))};
|
|
a6D=function(A,L){A.env.J("delhi_modern_web_player")&&A.scale!==.6&&(A.scale=L?.8:1)};
|
|
AN0=function(A){return k7[S[2]](this,8,A)};
|
|
g.QW=function(A,L){if(A.ZM)return function(){};
|
|
L.addEventListener("mouseover",A.D);L.addEventListener("focus",A.D);var B=A.env.J("player_tooltip_data_title_killswitch")?L.getAttribute("title"):L.getAttribute("data-tooltip-title");B&&!L.hasAttribute("aria-label")&&L.setAttribute("aria-label",B);return function(){A.N===L&&A.HI();L.removeEventListener("mouseover",A.D);L.removeEventListener("focus",A.D)}};
|
|
ul0=function(A,L,B,f){if(L&&!L.hasAttribute)A=new g.iL("showElementTooltip called with non-element.",L.toString()),g.mL(A);else{isNaN(A.U)||(A.U=NaN,A.bg.style.background="");g.NH(A.element,"ytp-tooltip-progress-bar-style");A.N=L;A.X=!!f;f?A.V=f:(A.env.J("player_tooltip_data_title_killswitch")?A.V=L.getAttribute("title"):A.V=L.getAttribute("data-tooltip-title"),A.env.J("player_tooltip_data_title_killswitch")?L.removeAttribute("title"):L.removeAttribute("data-tooltip-title"));g.Jz(A.element,"ytp-tooltip");
|
|
var K=L.getAttribute("data-tooltip-image");K&&(A.image.style.backgroundImage="url("+K+")");f?A.update({ariaHidden:"false"}):A.update({ariaHidden:"true"});g.D1(A.element,"ytp-tooltip-image-enabled",!!K);L=L.getAttribute("data-tooltip-opaque");g.D1(A.element,"ytp-tooltip-opaque",!!L);A.type=B;A.api.addEventListener("appresize",A.Wn);A.T&&(Hd(A),A.fade.show(0))}};
|
|
Hd=function(A){if(A.N){var L=A.N.getAttribute("data-tooltip-text");if(A.V&&A.N.getAttribute("aria-label")!==A.V)var B=A.V;var f=A.N.getAttribute("aria-keyshortcuts"),K=A.N.getAttribute("data-title-no-tooltip");f&&K&&(B=g.B$("$BUTTON_TITLE scorciatoia da tastiera $SHORTCUT_KEY",{BUTTON_TITLE:K,SHORTCUT_KEY:f}));B&&A.N.setAttribute("aria-label",B);if(L&&!A.X){a6D(A,!0);var V=A.N;A.updateValue("text",L);B=V.getAttribute("data-duration");A.update({title:A.V,duration:B});V=V.getAttribute("data-preview");
|
|
A.env.J("delhi_modern_web_player")?(A.updateValue("title",K),A.updateValue("keyBoardShortcutTitle",f.toUpperCase())):a6D(A,!1);f=243*A.scale;K=141*A.scale;A.bg.style.width=f+"px";A.bg.style.height=K+"px";A.bg.style.backgroundImage=V?"url("+V+")":"";A.bg.style.backgroundSize=f+"px "+K+"px";A.wrapper.style.width=f+"px";g.Z1(A.element,["ytp-text-detail","ytp-preview"]);g.D1(A.element,"ytp-has-duration",!!B)}else K&&f&&A.env.J("delhi_modern_web_player")?(A.updateValue("text",K),A.updateValue("keyBoardShortcut",
|
|
f.toUpperCase())):A.updateValue("text",A.V),g.Fq(A.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);B=A.N;B.hasAttribute("data-tooltip-offset-y")?(B=Number(B.getAttribute("data-tooltip-offset-y")),B=isNaN(B)?0:B):B=0;LR7(A,!!L,void 0,B)}};
|
|
LR7=function(A,L,B,f){var K=Math.min(A.Jr,300*A.scale);A.element.style.maxWidth=L?"":K+"px";A.JF.TT(A.element,A.N,B,A.type===1,f);A.element.style.top?g.R1(A.element,"ytp-bottom"):A.element.style.bottom&&g.R1(A.element,"ytp-top");A.type===3&&A.Vj.start()};
|
|
ou7=function(A,L){g.D1(A.element,"ytp-preview",L>=0);if(!(L<0||L===A.U)){A.U=L;L=243*A.scale;var B=141*A.scale,f=T9D(A.W,A.U,L);ibE(A.bg,f,L,B,!0);A.qp.start()}};
|
|
BQD=function(A){var L=A.N;A.type===3&&A.Vj.stop();A.api.removeEventListener("appresize",A.Wn);A.X||(A.env.J("player_tooltip_data_title_killswitch")?L.setAttribute("title",A.V):L.setAttribute("data-tooltip-title",A.V));A.V="";A.N=null;A.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});A.wrapper.style.width=""};
|
|
KR0=function(A){g.q.call(this,{Z:"button",Rr:["ytp-watch-later-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-watch-later-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-watch-later-title",Ir:"Guarda pi\u00f9 tardi"}]});this.S=A;this.icon=null;this.visible=this.isRequestPending=this.N=!1;Dy1(A);A.createClientVe(this.element,this,28665);
|
|
this.listen("click",this.onClick,this);this.Y(A,"videoplayerreset",this.onReset);this.Y(A,"appresize",this.Fz);this.Y(A,"videodatachange",this.Fz);this.Y(A,"presentingplayerstatechange",this.Fz);this.Fz();A=this.S.K();var L=g.ES("yt-player-watch-later-pending");A.U&&L?(wRQ(),f91(this)):this.zL(2);g.D1(this.element,"ytp-show-watch-later-title",g.MM(A));Cm(this.S,this.element,this)};
|
|
VyE=function(A){var L=A.S.getPlayerSize(),B=A.S.K(),f=A.S.getVideoData(),K=g.MM(B)&&g.ch(A.S)&&g.x(A.S.getPlayerStateObject(),128),V=B.V;return B.t$&&L.width>=240&&!f.isAd()&&f.t$&&!K&&!f.OE&&!A.S.isEmbedsShortsMode()&&!V};
|
|
JNL=function(A,L){W5S(g.BN(A.S.K()),"wl_button",function(){wRQ({videoId:L});window.location.reload()})};
|
|
f91=function(A){if(!A.isRequestPending){A.isRequestPending=!0;A.zL(3);var L=A.S.getVideoData();L=A.N?L.removeFromWatchLaterCommand:L.addToWatchLaterCommand;var B=A.S.dh(),f=A.N?function(){A.N=!1;A.isRequestPending=!1;A.zL(2);A.S.K().G&&A.S.Kr("WATCH_LATER_VIDEO_REMOVED")}:function(){A.N=!0;
|
|
A.isRequestPending=!1;A.zL(1);A.S.K().W&&A.S.yR(A.element);A.S.K().G&&A.S.Kr("WATCH_LATER_VIDEO_ADDED")};
|
|
c8(B,L).then(f,function(){A.isRequestPending=!1;A.zL(4,"Si \u00e8 verificato un errore. Riprova pi\u00f9 tardi.");A.S.K().G&&A.S.Kr("WATCH_LATER_ERROR","Si \u00e8 verificato un errore. Riprova pi\u00f9 tardi.")})}};
|
|
Syy=function(A,L){if(L!==A.icon){switch(L){case 3:var B=yC();break;case 1:B=yo();break;case 2:B={Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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:B={Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",
|
|
bq:!0,C:{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",B);A.icon=L}};
|
|
R7E=function(){g.YS.apply(this,arguments);this.by=(this.Hg=g.MM(this.api.K()))&&(this.api.K().W||Kn()||B9());this.ws=48;this.Zw=69;this.Td=this.Yu=null;this.W4=[];this.yX=this.Rc=this.Wx=this.ou=this.XO=null;this.Jg=[];this.contextMenu=this.A_=this.overflowButton=this.FL=this.u2=this.searchButton=this.copyLinkButton=this.shareButton=this.u5=this.J_=this.title=this.channelAvatar=this.Jh=this.tooltip=null;this.c6=!1;this.qX=this.hT=this.aO=this.K$=null;this.WCM=this.El=this.nW=!1};
|
|
ZI6=function(A){var L=A.api.K(),B=g.x(A.api.getPlayerStateObject(),128);return L.U&&B&&!A.api.isFullscreen()};
|
|
NQ1=function(A){if(A.Gy()&&!A.api.isEmbedsShortsMode()&&A.FL){var L=A.api.J("web_player_hide_overflow_button_if_empty_menu");!A.u5||L&&!VyE(A.u5)||zCD(A.FL,A.u5);!A.shareButton||L&&!ddv(A.shareButton)||zCD(A.FL,A.shareButton);!A.copyLinkButton||L&&!Sfe(A.copyLinkButton)||zCD(A.FL,A.copyLinkButton)}else{L=A.api.K().getWebPlayerContextConfig();if(A.FL){for(var B=A.FL,f=g.m(B.actionButtons),K=f.next();!K.done;K=f.next())K.value.detach();B.actionButtons=[]}A.searchButton&&!g.XF(A.J_.element,A.searchButton.element)&&
|
|
A.searchButton.DM(A.J_.element);!A.u5||(L==null?0:L.hideTopWatchNextButton)||g.XF(A.J_.element,A.u5.element)||A.u5.DM(A.J_.element);!A.shareButton||(L==null?0:L.hideTopShareButton)||g.XF(A.J_.element,A.shareButton.element)||A.shareButton.DM(A.J_.element);A.copyLinkButton&&!g.XF(A.J_.element,A.copyLinkButton.element)&&A.copyLinkButton.DM(A.J_.element)}};
|
|
FRC=function(A,L,B){L=B?L.lastElementChild:L.firstElementChild;for(var f=null;L;){if(RR(L,"display")!=="none"&&L.getAttribute("aria-hidden")!=="true"){var K=void 0;L.tabIndex>=0?K=L:K=FRC(A,L,B);K&&(f?B?K.tabIndex>f.tabIndex&&(f=K):K.tabIndex<f.tabIndex&&(f=K):f=K)}L=B?L.previousElementSibling:L.nextElementSibling}return f};
|
|
DZ0=function(A,L,B){if(A.api.J("web_player_nitrate_promo_tooltip")&&A.api.getPresentingPlayerType(!0)!==2){var f=A.api.getVideoData(1);if(f==null?0:f.tooltipRenderer){f=f.tooltipRenderer;var K;if(K=!A.qX){if(!(L=!L)){var V,J,R;L=((V=f.tooltipDisplayStrategy)==null?void 0:V.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((J=f.promoConfig)==null?void 0:J.promoId)!=="dtip-edu-player-iseecaptions"&&((R=f.promoConfig)==null?void 0:R.promoId)!=="dtip-edu-player-tc-m2"}K=L}K&&(A.qX=new LjE(f,A.api),
|
|
g.W(A,A.qX),g.Wh(A.api,A.qX.element,9));var Z;(Z=A.qX)==null||KjC(Z,f,B)}}};
|
|
g.hS=function(A){g.FB.call(this,A);this.chrome=null;this.load()};
|
|
g.bE=function(A){je.call(this);var L=this;this.N=A;this.jM=!1;this.D=null;this.JF=this.wT=!1;this.qp=new g.gb;this.view=this.Wn=this.Np=null;this.G={};this.listener=function(B){L.dispatchEvent(new iu(L,B.type,B))};
|
|
g.W(this,this.qp)};
|
|
dZS=function(A,L,B){A.isPaused()||A.getCurrentTime()>L||B>10||(A.play(),g.gW(function(){dZS(A,A.getCurrentTime(),B+1)},500))};
|
|
I97=function(A,L){A.D&&A.D.equals(L)||(A.D&&A.D.dispose(),A.D=L)};
|
|
w08=function(A){A.eE()&&(A.Np&&A.Np.WZ("rs_s"),ed&&A.getCurrentTime()>0&&A.seekTo(0),A.Hd(),A.load(),I97(A,null));delete A.T};
|
|
p08=function(A,L){return A.view?fW(L,A.view.start,A.view.end):L};
|
|
jz6=function(A){A=A===void 0?!1:A;yNE||(window.addEventListener(X5?"touchstart":"click",function(){var L=A;L=L===void 0?!1:L;for(var B=tS.length;B<4;B++){var f=g.TO("VIDEO");f.load();tS.push(L?new g.bE(f):new g.$8(f))}},{capture:!0,
|
|
passive:!0}),yNE=!0)};
|
|
gu0=function(A,L,B,f,K){K=K===void 0?!1:K;var V=B.getVideoData(),J=L.getVideoData();if(B.getPlayerState().isError())return{msg:"player-error"};var R=J.V;if(L.Fb()>f/1E3+1)return{msg:"in-the-past"};if(J.isLivePlayback&&!isFinite(f))return{msg:"live-infinite"};f=L.pD();var Z=null;f&&(Z=K?f.N.played||n$([],[]):f.isView()?f.mediaElement.wN():f.wN());if(Z&&Z.length>12&&g.Cr(V))return{msg:"played-ranges"};if(!V.V)return null;if(!R)return{msg:"no-pvd-formats"};if(!V.V.N||!R.N)return{msg:"non-dash"};K=R.videoInfos[0];
|
|
f=V.V.videoInfos[0];A.Wn&&pr(J)&&(K=L.bf(),f=B.bf());if(!K||!f)return{msg:"no-video-info"};if(A.T&&(Mb(K)||Mb(f)))return{msg:"av1"};L=A.U&&J.zt()&&Se();if(f.containerType!==K.containerType)if(L)J.Hn("sgap",{ierr:"container"});else return{msg:"container"};if(A.D&&!L&&(f.Bn!==K.Bn||f.Bn===""||K.Bn===""))return{msg:"codec"};if(A.X&&f.video&&K.video&&Math.abs(f.video.width/f.video.height-K.video.width/K.video.height)>.01)return{msg:"ratio"};if(g.Cr(J)&&g.Cr(V))return{msg:"content-protection"};R=R.N[0];
|
|
V=V.V.N[0];B=R.audio;Z=V.audio;if(B.sampleRate!==Z.sampleRate&&!g.Z2)if(L)J.Hn("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:R.itag,cr:B.sampleRate,ni:V.itag,nr:Z.sampleRate};return(B.numChannels||2)!==(Z.numChannels||2)?{msg:"channel-count"}:A.G&&J.zt()&&K.video.fps!==f.video.fps?{msg:"fps"}:null};
|
|
Ge7=function(A,L,B,f){f=f===void 0?!1:f;var K=A.getVideoData(),V=L.getVideoData();if(!K.K().supportsGaplessShorts())return{nq:"env"};if((!B.yj||K.BV&&!K.isAd()||V.BV&&!V.isAd())&&(!B.W||K.BV&&!K.isAd()||V.BV)&&(!B.V||V.BV&&!V.isAd()||K.BV)&&(K.BV||V.BV))return{nq:"autoplay"};if(K.endSeconds>0)return{nq:"endcr"};if(!K.X)return{nq:"client"};if(!A.qV())return{nq:"no-empty"};A=gu0(B,A,L,Infinity,f);return A!=null?{nq:A.msg}:null};
|
|
ko=function(A){g.Y.call(this);this.app=A;this.D=this.U=this.W=this.N=null;this.V=1;this.events=new g.dN(this);this.events.Y(this.app.rT,g.PR("gaplessshortslooprange"),this.G);g.W(this,this.events)};
|
|
rNL=function(){this.N=this.X=this.V=this.W=this.yj=this.T=this.Wn=this.G=this.D=this.U=!1};
|
|
szv=function(A){var L=new rNL;L.U=A.J("h5_gapless_support_types_diff");L.G=!1;L.Wn=A.J("html5_gapless_use_format_info_fix");L.T=A.J("html5_gapless_disable_on_av1")&&!A.J("html5_gapless_enable_on_av1");L.D=A.J("html5_gapless_check_codec_diff_strictly");L.yj=A.J("html5_gapless_on_ad_autoplay");L.X=A.J("html5_gapless_disable_diff_aspect_radio");L.W=A.J("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!A.J("html5_disable_loop_range_for_shorts_ads");L.N=A.J("html5_pseudogapless_shorts_seek_to_next_start");
|
|
L.V=A.J("html5_gapless_ad_autoplay_on_video_to_ad_only");return L};
|
|
g.TG=function(A,L,B,f){f=f===void 0?!1:f;je.call(this);this.mediaElement=A;this.start=L;this.end=B;this.oQ=f};
|
|
HIv=function(A,L,B,f,K,V){V=V===void 0?0:V;g.Y.call(this);var J=this;this.policy=A;this.N=L;this.W=B;this.gf=K;this.D=V;this.U=this.V=null;this.currentVideoDuration=this.T=-1;this.X=!1;this.lD=new yV;this.rk=f-L.pY()*1E3;this.lD.then(void 0,function(){});
|
|
this.timeout=new g.aa(function(){J.Lw("timeout")},1E4);
|
|
g.W(this,this.timeout);this.G=isFinite(f)||this.gf.K().experiments.GL("html5_pseudogapless_shorts")&&pr(L.getVideoData());this.status={status:0,error:null}};
|
|
bIE=function(A){var L,B,f,K,V,J,R,Z,N;return g.c(function(F){if(F.N==1){if(A.TL())return F.return(Promise.reject(Error(A.status.error||"disposed")));A.timeout.start();return g.X(F,A.lD,2)}L=A.N.pD();if(L.isEnded())return A.Lw("ended_in_finishTransition"),F.return(Promise.reject(Error(A.status.error||"")));if(!A.U||!Fi(A.U))return A.Lw("next_mse_closed"),F.return(Promise.reject(Error(A.status.error||"")));if(A.W.Fy()!==A.U)return A.Lw("next_mse_mismatch"),F.return(Promise.reject(Error(A.status.error||
|
|
"")));B=lE(A);f=B.oZ;K=B.Vw;V=B.X7;A.N.UN(!1,!0);J=h77(A,L,f,V,!A.W.getVideoData().isAd());A.W.setMediaElement(J);(R=A.N.Vu())&&A.W.fC(R.L_,R.dA);A.G&&(A.policy.N||A.W.seekTo(A.W.getCurrentTime()+.001,{Mi:!0,xz:3,zZ:"gapless_pseudo"}),J.play());Z=L.Ov();Z.cpn=A.N.getVideoData().clientPlaybackNonce;Z.st=""+f;Z.et=""+V;A.W.Hn("gapless",Z);A.N.Hn("gaplessTo",{cpn:A.W.getVideoData().clientPlaybackNonce});N=A.N.getPlayerType()===A.W.getPlayerType();A.N.wY(K,!0,!1,N,A.W.getVideoData().clientPlaybackNonce);
|
|
A.W.wY(A.W.getCurrentTime(),!0,!0,N,A.N.getVideoData().clientPlaybackNonce);A.W.RS();g.lX(function(){!A.W.getVideoData().G&&A.W.getPlayerState().isOrWillBePlaying()&&A.W.X6()});
|
|
mj(A,6);A.dispose();return F.return(Promise.resolve())})};
|
|
l9C=function(A){if(A.W.getVideoData().V){var L=A.gf.K().J("html5_gapless_suspend_next_loader")&&A.D===1;A.W.Mv(A.U,L,ty7(A));mj(A,3);keL(A);var B=TQQ(A);L=B.b$;B=B.EP;L.subscribe("updateend",A.Rk,A);B.subscribe("updateend",A.Rk,A);A.Rk(L);A.Rk(B)}};
|
|
keL=function(A){A.N.unsubscribe("internalvideodatachange",A.sI,A);A.W.unsubscribe("internalvideodatachange",A.sI,A);A.gf.K().J("html5_gapless_use_format_info_fix")&&(A.N.unsubscribe("internalvideoformatchange",A.sI,A),A.W.unsubscribe("internalvideoformatchange",A.sI,A));A.N.unsubscribe("mediasourceattached",A.sI,A);A.W.unsubscribe("statechange",A.TD,A)};
|
|
mZ8=function(A){var L=A.gf.K().experiments.Qf().N.Iv(QA);return gu0(A.policy,A.N,A.W,A.rk,L)};
|
|
h77=function(A,L,B,f,K){if(A.gf.K().experiments.Qf().N.Iv(QA))return L.view={start:B,end:f,oQ:K===void 0?!1:K},L;A=L.isView()?L.mediaElement:L;return new g.TG(A,B,f,K)};
|
|
mj=function(A,L){L<=A.status.status||(A.status={status:L,error:null},L===5&&A.lD.resolve())};
|
|
ty7=function(A){return A.gf.K().J("html5_gapless_no_clear_buffer_timeline")&&A.D===1&&iS(A.N.getVideoData())};
|
|
lE=function(A){var L=A.N.pD();L=L.isView()?L.start:0;var B=A.N.getVideoData().isLivePlayback?Infinity:A.N.bH(!0);B=Math.min(A.rk/1E3,B)+L;var f=A.G?100:0;A=B-A.W.Fb()+f;return{bU:L,oZ:A,Vw:B,X7:Infinity}};
|
|
TQQ=function(A){return{b$:A.V.N.Py,EP:A.V.W.Py}};
|
|
Cb=function(A){g.Y.call(this);var L=this;this.app=A;this.X=this.W=this.N=null;this.Wn=!1;this.yj=this.T=this.V=this.U=null;this.D=szv(this.app.K());this.G=function(){g.lX(function(){QzS(L)})}};
|
|
Co1=function(A,L,B,f,K){f=f===void 0?0:f;K=K===void 0?0:K;A.qV()||(iE(A),$o(A));A.U=new yV;A.N=L;var V=B,J=K===0;J=J===void 0?!0:J;var R=A.app.e4(),Z=R.getVideoData().isLivePlayback?Infinity:R.bH(!0)*1E3;V>Z&&(V=Z-200,A.Wn=!0);J&&R.getCurrentTime()>=V/1E3?A.G():(A.W=R,J&&(J=V,V=A.W,A.app.rT.addEventListener(g.qR("vqueued"),A.G),J=isFinite(J)||J/1E3>V.getDuration()?J:0x8000000000000,A.X=new g.WR(J,0x8000000000000,{namespace:"vqueued"}),V.addCueRange(A.X)));J=f/=1E3;V=L.getVideoData().N;f&&V&&A.W&&
|
|
(R=f,Z=0,L.getVideoData().isLivePlayback&&(J=Math.min(B/1E3,A.W.bH(!0)),Z=Math.max(0,J-A.W.getCurrentTime()),R=Math.min(f,L.bH()+Z)),J=WP0(V,R)||f,J!==f&&A.N.Hn("qvaln",{st:f,at:J,rm:Z,ct:R}));L=J;f=A.N;f.getVideoData().LD=!0;f.getVideoData().X=!0;f.dK(!0);V={};A.W&&(V=A.W.G_(),J=A.W.getVideoData().clientPlaybackNonce,V={crt:(V*1E3).toFixed(),cpn:J});f.Hn("queued",V);L!==0&&f.seekTo(L+.01,{Mi:!0,xz:3,zZ:"videoqueuer_queued"});A.V=new HIv(A.D,A.app.e4(),A.N,B,A.app,K);B=A.V;B.status.status!==Infinity&&
|
|
(mj(B,1),B.N.subscribe("internalvideodatachange",B.sI,B),B.W.subscribe("internalvideodatachange",B.sI,B),B.gf.K().J("html5_gapless_use_format_info_fix")&&(B.N.subscribe("internalvideoformatchange",B.sI,B),B.W.subscribe("internalvideoformatchange",B.sI,B)),B.N.subscribe("mediasourceattached",B.sI,B),B.W.subscribe("statechange",B.TD,B),B.N.subscribe("newelementrequired",B.c8,B),B.sI());return A.U};
|
|
QzS=function(A){var L,B,f,K,V,J,R;g.c(function(Z){switch(Z.N){case 1:if(A.TL()||!A.U||!A.N)return Z.return();A.Wn&&A.app.e4().E5(!0,!1);L=null;if(!A.V){Z.Ux(2);break}g.S5(Z,3);return g.X(Z,bIE(A.V),5);case 5:g.ZR(Z,2);break;case 3:L=B=g.NX(Z);case 2:if(!A.N)return Z.return();iIw.Rf("vqsp",function(){A.app.Ok(A.N)});
|
|
if(!A.N)return Z.return();f=A.N.pD();A.app.K().J("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&A.N.seekTo(0);iIw.Rf("vqpv",function(){A.app.playVideo()});
|
|
L&&(A.N?(K=L?L.message:"forced",(V=A.W)==null||V.Hn("gapfulfbk",{r:K}),A.N.BS(K)):(J=A.W)==null||J.Hn("gapsp",{}));R=A.U;$o(A);R&&R.resolve();return Z.return(Promise.resolve())}})};
|
|
$o=function(A,L){L=L===void 0?!1:L;if(A.W){if(A.X){var B=A.W;A.app.rT.removeEventListener(g.qR("vqueued"),A.G);B.removeCueRange(A.X)}A.W=null;A.X=null}A.V&&(A.V.status.status!==6&&(B=A.V,B.status.status!==Infinity&&B.D!==1&&B.Lw("Canceled")),A.V=null);A.U=null;A.N&&!L&&A.N!==A.app.kP()&&A.N!==A.app.e4()&&A.N.dispose();A.N&&L&&A.N.GB();A.N=null;A.Wn=!1};
|
|
iE=function(A){A.yj&&A.T&&A.yj.removeEventListener("timeupdate",A.T);A.T=null;A.yj=null};
|
|
OIe=function(A,L){if(A.app.K().Qf().N.Iv($ZQ)){var B=A.app.K().Qf().N.Iv(X0w);if(!(B<=0)){iE(A);var f,K=(f=A.app.e4())==null?void 0:f.pD();K&&A.N&&(A.N.getVideoData().OC=!0,A.T=function(){var V=K.getCurrentTime();V>=L+B/1E3&&(V=Date.now()-(V-L)*1E3,A.app.zH().tick("pbs",V),iE(A))},A.yj=K,K.addEventListener("timeupdate",A.T))}}};
|
|
Euw=function(A){var L;return((L=A.V)==null?void 0:L.currentVideoDuration)||-1};
|
|
cN8=function(A,L,B){if(A.qV())return"qie";if(A.N==null||A.N.TL()||A.N.getVideoData()==null)return"qpd";if(L.videoId!==A.N.TP())return"vinm";if(Euw(A)<=0)return"ivd";if(B!==1)return"upt";if((B=A.V)==null)A=void 0;else if(B.getStatus().status!==5)A="niss";else if(mZ8(B)!=null)A="pge";else{L=TQQ(B);A=L.b$;var f=L.EP;L=g.Am(B.gf.K().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var K=B.T+L;B.gf.K().experiments.GL("html5_pseudogapless_shorts")&&(K=lE(B).oZ+L);B=aT(f.Hk(),K);A=aT(A.Hk(),K);
|
|
A=!(L>0)||B&&A?null:"neb"}return A!=null?A:null};
|
|
MyL=function(){g.SN.call(this);var A=this;this.fullscreen=0;this.U=this.V=this.pictureInPicture=this.N=this.W=this.inline=!1;this.D=function(){A.wI()};
|
|
K41(this.D);this.T=this.getVisibilityState(this.QC(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.nV(),this.WE(),this.bz(),this.EN())};
|
|
F48=function(A){return!(A.isMinimized()||A.isInline()||A.isBackground()||A.nV()||A.WE()||A.bz()||A.EN())};
|
|
g.XA=function(A){g.Y.call(this);this.L=A;this.videoData=this.playerState=null};
|
|
WRL=function(A,L,B){return(B===void 0?0:B)?new YyC(A,L):new UZ0(A,L)};
|
|
UZ0=function(A,L){g.Y.call(this);var B=this;this.data=[];this.V=A||NaN;this.W=L||null;this.N=new g.aa(function(){OY(B);EY(B)});
|
|
g.W(this,this.N)};
|
|
OY=function(A){var L=(0,g.bc)();A.data.forEach(function(B){B.expire<L&&cd(A,B,!0)});
|
|
A.data=g.Mi(A.data,function(B){return!(B.expire<L)})};
|
|
cd=function(A,L,B){B&&A.W&&A.W(L.value)};
|
|
EY=function(A){A.N.stop();var L=Infinity;for(var B=g.m(A.data),f=B.next();!f.done;f=B.next())f=f.value,f.expire<L&&(L=f.expire);L&&isFinite(L)&&(L=Math.max(L-Date.now(),100),A.N.start(L))};
|
|
YyC=function(A,L){A=A===void 0?NaN:A;L=L===void 0?null:L;g.Y.call(this);var B=this;this.U=A;this.W=L;this.V=new g.aa(function(){for(var f=(0,g.bc)();!B.N.isEmpty();){var K=Un(B.N);if(K===void 0||K>f)break;var V=B.N.remove(),J=B.map.get(V);J&&J.tY===K&&Md(B,V,!0)}Yo(B)});
|
|
this.map=new Map;this.N=new WC;Number.isNaN(A);g.W(this,this.V)};
|
|
Md=function(A,L,B){var f=A.map.get(L);if(!f)return!1;A.map.delete(L);B&&A.W&&A.W(f.value);if(A.N.N.length>A.map.size*2)for(A.N.clear(),L=g.m(A.map.entries()),B=L.next();!B.done;B=L.next())f=g.m(B.value),B=f.next().value,f=f.next().value,isFinite(f.tY)&&A.N.enqueue(f.tY,B);return!0};
|
|
Yo=function(A){A.V.stop();for(var L;!A.N.isEmpty();){var B=Un(A.N);var f=A.N.N;f=f.length!=0?f[0].getValue():void 0;if(B===void 0||f===void 0)break;if((f=A.map.get(f))&&f.tY===B){L=B;break}else A.N.remove()}L!==void 0&&(B=(0,g.bc)(),A.V.start(Math.max(L-B,100)))};
|
|
g.UY=function(A,L){g.Y.call(this);var B=this;this.api=A;this.V={};this.VN=null;this.U={};this.N=null;this.X=new Map;this.D=null;L=WRL(L,function(f){f!==B.Yy({playerType:f.getPlayerType()})&&f.dispose()},A.K().Qf().N.Iv(vuQ));
|
|
g.W(this,L);this.W=this.yj=this.G=new g.XA(A.K());this.T=L};
|
|
Wd=function(A){var L=[{cpn:A.W.t_()}];A.N&&L.push({cpn:A.N.t_()});A.api.publish("playbackChange",{Ce4:L})};
|
|
qye=function(A){for(var L=g.m(Object.values(A.U)),B=L.next();!B.done;B=L.next())B.value.dispose();A.U={};A.N=null;A.D=null;A.X.clear();Wd(A)};
|
|
vd=function(A,L,B){var f=f===void 0?"":f;A.U[L.t_()]=L;A.N=L;B&&(A.D=L);A.X.set(f,L);Wd(A)};
|
|
opE=function(A){var L=A.experiments,B=L.GL.bind(L);Pok=xZe=B("html5_use_async_stopVideo");e78=nuS=B("html5_pause_for_async_stopVideo");z7E=uQk=B("html5_not_reset_media_source");B("html5_listen_for_audio_output_changed")&&(a9y=ACE=!0);DL=B("html5_not_reset_media_source");LgD=B("html5_not_reset_media_source");VV=B("html5_retain_source_buffer_appends_for_debugging");Qc8(B("web_watch_pip")||B("web_shorts_pip"));SVS(B("log_foreground_not_focused_as_background"));ZTE(B("web_player_pip_logging_fix"));B("html5_mediastream_applies_timestamp_offset")&&
|
|
(qL=!0);A.hw()&&yje();Error.stackTraceLimit=50;var f=g.Am(L,"html5_idle_rate_limit_ms");f&&Object.defineProperty(window,"requestIdleCallback",{value:function(K){return window.setTimeout(K,f)}});
|
|
ILC(A.D);QpE(B("html5_use_ump_request_slicer"));Zqv(B("html5_record_now"));B("html5_disable_streaming_xhr")&&(Km=!1);B("html5_byterate_constraints")&&(OO=!0);B("html5_use_non_active_broadcast_for_post_live")&&(ys=!0);B("html5_enable_encrypted_av1")&&(X2=!0);NY7(g.Am(A.experiments,"html5_sticky_duration_mos"))};
|
|
Fg8=function(A){function L(V,J,R){f.push(A2(J(R),function(Z){B[V]=Z}))}
|
|
var B={};A=A.experiments.mw();var f=[],K=A.N.Iv(Brk);K&&L("MediaSource.EnableUsingMediaSourceBufferedRange",SU0,K===1);(K=A.N.Iv(f0Q))&&L("HTTP3",RIQ,K===1);(K=A.N.Iv(KgL))&&L("MediaSource.EnableUsingMediaSourceAttachmentMethods",Zmk,K===1);(K=A.N.Iv(VDQ))&&L("QUIC",NhS,K===1);(K=A.N.Iv(JCk))&&L("Media.PlayerConfiguration.DecodeToTexturePreferred",Dm0,K===1);(K=A.N.Iv(SHC))&&L("Media.AudioWriteDurationLocal",FY0,Number(K));(K=A.N.Iv(RB8))&&L("Media.DisableExternalAllocator",dmk,Number(K)===1);(K=
|
|
A.N.Iv(ZFw))&&L("Media.VideoBufferSizeClampMb",II8,K);(A=A.N.Iv(Nrk))&&L("Media.EnableAllocateOnDemand",whE,Number(A)===1);return A2(CTD(f),function(){return B})};
|
|
DcS=function(A){this.W=A===void 0?15:A;this.values=new Float64Array(176);this.N=new Float64Array(11);this.V=new Float64Array(16)};
|
|
qd=function(A,L,B,f){B=B===void 0?.5:B;f=f===void 0?0:f;this.resolution=L;this.W=0;this.V=!1;this.I$=!0;this.N=Math.round(A*this.resolution);this.values=Array(this.N);for(A=0;A<this.N;A++)this.values[A]=Infinity;this.D=Bgy(this);this.U=B;this.T=f};
|
|
Bgy=function(A){for(var L=Array(A.N),B=0;B<A.N;B++)L[B]=B;return L};
|
|
dcw=function(A,L,B){g.Y.call(this);this.policy=A;this.W=L;this.cn=B;this.Vj=this.Cr=0;this.qp=-1;this.ZM=this.D=0;this.Wn=!1;this.interruptions=[];this.U=[{stamp:0,net:0,max:0}];this.Ys=0;this.S4=this.T=(0,g.bc)();this.G=new qd(4,1,.6,.4);this.wT=new qd(4,1,.6,.4);this.X=new qd(20,1,.5,.4);A.qp?this.V=new DcS(A.N):A.W?this.V=new p5(A.N):this.V=new qd(A.N,20,.5,.4);this.JF=new qd(5,1,.25);this.yj=new qd(30,1,.5);A=g.ES("yt-player-bandwidth")||{};L=this.policy.V;if(A.byterate>0)L=A.byterate,this.Wn=
|
|
!0;else{var f;B=(((f=navigator.connection)==null?void 0:f.downlink)||0)*64*1024;B>0&&(L=B,this.Wn=!0)}this.V.eg(this.policy.T,L);A.delay>0&&this.G.eg(1,Math.min(A.delay,2));A.stall>0&&this.X.eg(1,A.stall);A.init>0&&(this.S4=Math.min(A.init,this.S4));A.interruptions&&(this.U=this.U.concat(A.interruptions),this.U.length>16&&this.U.pop());this.qp=(0,g.bc)();this.policy.X>0&&(this.Ex=new g.aa(this.sx,this.policy.X,this),g.W(this,this.Ex),this.Ex.start())};
|
|
rM=function(A,L,B,f){A.V.eg(f===void 0?L:f,B/L);A.T=(0,g.bc)()};
|
|
lcy=function(A){A.D||(A.D=(0,g.bc)());A.policy.yj&&(A.T=(0,g.bc)())};
|
|
Qsv=function(A,L){if(A.D){var B=L-A.D;if(B<6E4){if(B>1E3){var f=A.interruptions;f.push(Math.ceil(B));f.sort(function(K,V){return V-K});
|
|
f.length>16&&f.pop()}A.ZM+=B}}A.D=L};
|
|
Pd=function(A,L,B,f,K,V){V=V===void 0?!1:V;A.JF.eg(L,B/L);A.T=(0,g.bc)();K||A.yj.eg(1,L-f);V||(A.D=0);A.qp>-1&&(0,g.bc)()-A.qp>3E4&&(FOw(pT(A)),A.qp=(0,g.bc)(),A.Wn=!0)};
|
|
xo=function(A,L,B){L=Math.max(L,A.W.N);A.X.eg(1,B/L)};
|
|
nh=function(A){A=A.G.pw()+A.wT.pw()||0;A=isNaN(A)?.5:A;return A=Math.min(A,5)};
|
|
I0E=function(A,L,B){isNaN(B)||(A.Vj+=B);isNaN(L)||(A.Cr+=L)};
|
|
wEQ=function(A){A=A.V.pw();return A>0?A:1};
|
|
ub=function(A,L,B){L=L===void 0?!1:L;B=B===void 0?1048576:B;var f=wEQ(A);f=1/((A.X.pw()||0)*A.policy.Wn+1/f);var K=A.JF.pw();K=K>0?K:1;var V=Math.max(f,K);A.policy.D>0&&K<f&&(V=Math.min(A.policy.D,1),V=(1-V)*f+V*K);if(!L)return V;L=1E-9+nh(A);B=V*Math.min(1,B/(V*L));A.policy.U||(A=((A.yj.percentile(.98)||0)-1)/2,A=Math.max(0,Math.min(1,A)),B*=1-.5*A);return B};
|
|
pT=function(A){var L={delay:nh(A),stall:A.X.pw()||0,byterate:wEQ(A),init:A.S4},B=A.U[0];B.stamp=Math.round(A.T/36E5)*36E5;B.net=Math.ceil(A.ZM);B.max=A.interruptions[0]||0;L.interruptions=A.U;return L};
|
|
sh=function(A){return(0,g.bc)()-A.T>=4E3};
|
|
pE0=function(A){this.experiments=A;this.N=17;this.V=13E4;this.T=.5;this.U=this.W=!1;this.qp=this.J("html5_use_histogram_for_bandwidth");this.D=g.Am(this.experiments,"html5_auxiliary_estimate_weight");this.Wn=g.Am(this.experiments,"html5_stall_factor")||1;this.X=g.Am(this.experiments,"html5_check_for_idle_network_interval_ms");this.G=this.experiments.GL("html5_trigger_loader_when_idle_network");this.yj=this.experiments.GL("html5_sabr_fetch_on_idle_network_preloaded_players")};
|
|
yCk=function(A,L,B){var f=new pE0(B);A&&(f.W=!0,f.T=.1);B.GL("html5_media_time_weight")&&(f.W=!1);L&&(f.V=L/8);f.U=h2()>=480;return f};
|
|
gpD=function(A,L,B,f){f=f===void 0?0:f;g.nm.call(this,B.WM());var K=this;this.TV=A;this.videoData=L;this.duration=f;this.N=this.startTimeSecs=0;this.W=this.V=!0;this.U=new jVS(function(V,J){return void K.Hn(V,J)})};
|
|
jVS=function(A){this.Hn=A;this.N={}};
|
|
GSD=function(A,L,B){A.N[L]||(A.Hn("huli-sdai-err",B),A.N[L]=!0)};
|
|
rCv=function(A){this.end=this.start=A};
|
|
g.eQ=function(){this.N=new Map;this.V=new Map;this.W=new Map};
|
|
sV6=function(A){var L=this;this.L=A;this.W=[];this.V=new Map;this.U=new Map;this.N=new Map;this.GV={Gi:function(){return L.V},
|
|
rVx:function(){return L.U},
|
|
Kk:function(){return L.W}};
|
|
this.D=this.L.J("html5_huli_ssdai_deprecate_playback_timeline_id")};
|
|
HF6=function(A,L,B){A=A.W;var f=g.Fc(A,{UE:L},function(J,R){return J.UE-R.UE});
|
|
f=f<0?(f+2)*-1:f;if(f>=0)for(var K=f;K<=f+1&&K<A.length;K++){var V=A[K];if(L>=V.UE-B&&L<=V.NQ+B)return V}};
|
|
bFe=function(A,L){g.px(A.W,L,function(B,f){return B.UE===f.UE?B.durationMs-f.durationMs:B.UE-f.UE});
|
|
A.V.set(L.cpn,L);L.XA&&!A.D&&A.U.set(L.XA,L);L.L9&&hBv(A,L.L9,L)};
|
|
tDQ=function(A,L){for(var B=[],f=g.m(A.W),K=f.next();!K.done;K=f.next())K=K.value,L(K)||B.push(K);if(A.L.J("html5_sstm_fixes"))for(f=g.m(A.W),K=f.next();!K.done;K=f.next())K=K.value,L(K)&&(A.V.delete(K.cpn),K.XA&&A.U.delete(K.XA));A.W=B};
|
|
kSe=function(A,L){L=g.Fc(A.W,{NQ:L},function(B,f){return B.NQ-f.NQ});
|
|
return L>=0?A.W[L]:null};
|
|
TrD=function(A,L){var B=A.W.indexOf(L);B>=0&&A.W.splice(B,1);A.V.delete(L.cpn);L.XA&&A.U.delete(L.XA)};
|
|
hBv=function(A,L,B){var f=A.N.get(L);f?(f.push(B),g.I8(f,function(K,V){return K.UE-V.UE})):A.N.set(L,[B])};
|
|
g.nb=function(A,L,B,f){g.Y.call(this);var K=this;this.api=A;this.L=L;this.playback=B;this.app=f;this.Wn=new g.eQ;this.W=new Map;this.zV=new Map;this.Vj=new Map;this.wT=null;this.Uv=NaN;this.Nl=this.mH=null;this.ql=new g.aa(function(){l0k(K,K.Uv,K.mH||void 0)});
|
|
this.events=new g.dN(this);this.cn=15E3;this.T=new g.aa(function(){K.X=!0;K.playback.q3(K.cn);mcy(K);if(K.playback.getVideoData().aA()){var V;K.Xr({togab:(V=K.D)==null?void 0:V.identifier})}K.w6(!1)},this.cn);
|
|
this.X=!1;this.pO=new Map;this.Cr=[];this.D=null;this.m1=new Set;this.G=[];this.S4=[];this.nD=[];this.k6=[];this.Ys=new Set;this.wM=0;this.yj=!1;this.TZ=new Set;this.LD=new Set;this.GZ=new Set;this.Ox=new Set;this.N8=this.Go=0;this.fX=this.Pz=!1;this.xJ=this.V="";this.qp=null;this.logger=new g.sI("dai");this.Po="";this.Ex=!0;this.JF=new Map;this.jI=new Map;this.GV={XZ1:function(){return K.W},
|
|
Gi:function(){return K.N.GV.Gi()},
|
|
Ca4:function(){return K.V},
|
|
tHD:function(V){K.onCueRangeEnter(K.W.get(V))},
|
|
MHn:function(V){K.onCueRangeExit(K.W.get(V))},
|
|
yIT:function(V,J){K.W.set(V,J)},
|
|
HnT:function(V){K.xJ=V},
|
|
GK:function(){return K.GK()},
|
|
grr:function(V){return K.N.N.get(V)},
|
|
f9F:function(){return K.qp},
|
|
Kk:function(){return K.N.GV.Kk()},
|
|
uf:function(V,J){K.uf(V,J)},
|
|
vr4:function(){return K.zV},
|
|
L2:function(V){K.L2(V)}};
|
|
this.playback.getPlayerType();this.N=new sV6(this.L);this.playback.hW(this);this.sx=this.L.hw();g.W(this,this.ql);g.W(this,this.events);g.W(this,this.T);this.Ry=this.L.J("html5_use_new_ssdai_transition_detector");this.t$=this.L.Qf().N.Iv(v20);this.KY=this.L.Qf().N.Iv(QVk);this.a8=this.playback.getVideoData().Is;this.Ry?this.playback.subscribe("playbackstarted",this.uf,this):(this.events.Y(this.api,g.qR("serverstitchedcuerange"),this.onCueRangeEnter),this.events.Y(this.api,g.PR("serverstitchedcuerange"),
|
|
this.onCueRangeExit));this.jD=this.L.J("html5_ssdai_report_stitch_error_after_skip_ad");vd(this.app.mD(),this.playback,!1)};
|
|
OF0=function(A,L,B,f,K,V,J,R,Z){var N=CZk(A,V,V+K);A.X&&A.Xr({adaftto:1});B||A.Xr({missadcon:1,enter:V,len:K,aid:R});A.U&&!A.U.C2&&(A.U.C2=R);A.fX&&A.Xr({adfbk:1,enter:V,len:K,aid:R});var F=A.playback;V>J&&zG(A,{reason:"enterTime_greater_than_return",UE:V,NQ:J});var D=F.vy()*1E3;V<D&&zG(A,{reason:"enterTime_less_than_minSeekableTime",enterMs:V,minSkMs:D},!1);F=F.getDuration()*1E3;J>F&&zG(A,{reason:"parent_return_greater_than_content_duration",NQ:J,EDj:F});(F=kSe(A.N,V))&&F.NQ>V&&iFE(A,L.video_id||
|
|
"",V,J,F);if(N&&F)for(D=0;D<A.G.length;D++){if(A.G[D].identifier===N.identifier){A.G.splice(D,1);break}}else if(N){A.Xr({rejectAttl:1});R&&!K9(A.k6,function(w){return w===R})&&(A.Xr({rejectAdBreakAttl:R},!0),A.k6.push(R));
|
|
uE(A);return}L.cpn||(L.cpn=g.y0(16));N=L.cpn;L=new g.Kr(A.L,L);L.UO=!0;D=A.L.J("html5_huli_ssdai_deprecate_playback_timeline_id")?N:"ss_childplayback_"+$cL++;L.XA=D;F=R?R:F?F.L9:N;B={XA:D,playerType:f,durationMs:K,UE:V,NQ:J,cpn:N,videoData:L,errorCount:0,ssdaiAdsConfig:B,L9:F};var I;f=(I=L.getPlayerResponse())==null?void 0:I.playbackTracking;A.KY&&(B.serializedQoeContextData=f==null?void 0:f.serializedQoeContextData);if(A.t$){var d;I=bD((d=f==null?void 0:f.serializedPlaybackPingContextData)!=null?
|
|
d:"");B.serializedPlaybackPingContextLoggingData=g.Y$(g.qA({clientPlaybackNonce:N,serializedPlaybackPingContextData:I},mtL),4)}bFe(A.N,B);Z&&A.a8&&A.zV.set(F,Z);XE8(A,L,K);A.Xr({attlDone:J-V,acpn:N,et:V,prt:J});A.T.isActive()&&(A.X=!1,A.T.stop(),mcy(A),A.w6(!0));R&&A.Ry&&(A.JF.has(R)?A.JF.get(R).add(N):A.JF.set(R,new Set([N])),A.jI.set(N,R));return L};
|
|
EpQ=function(A,L,B){return{ssvc:L,cpn:(B==null?void 0:B.cpn)||"",vid:(B==null?void 0:B.videoData.videoId)||"",ct:(A.playback.getCurrentTime()||0).toFixed(3),cmt:(A.playback.Fb()||0).toFixed(3)}};
|
|
XE8=function(A,L,B){var f;(f=A.app.mD().U[L.clientPlaybackNonce]||null)==null||f.dispose();L=new gpD(A,L,A.playback,B/1E3);A.Vj.set(L.t_(),L);A.app.mD().U[L.t_()]=L};
|
|
cCv=function(A,L){var B=A.app;fm(B.df())&&B.e$.V[2]&&g.Hp(A.logger,360717806,"SSTM lingering playback");A.api.jP();A.api.publish("serverstitchedvideochange",L.XA,L.n5)};
|
|
YHC=function(A,L){return(A=MDe(A,L*1E3))?L-A.start/1E3:L};
|
|
Wg7=function(A,L){return(A=Uc1(A,L*1E3))?A.durationMs/1E3:0};
|
|
vpe=function(A){if(A.fX)return!1;var L=void 0;A.xJ&&(L=A.N.Yy({cpn:A.xJ}));return A.playback.getVideoData().aA()?!!L&&!L.jN:!!L};
|
|
qHS=function(A,L){if(!A.fX){var B=void 0;A.xJ&&(B=A.N.Yy({cpn:A.xJ}));if(!B){B=Uc1(A,L*1E3);var f,K=(f=B)==null?void 0:f.cpn;A.xJ?K&&A.xJ!==K&&A.Xr({cpcnm:K+"_"+A.xJ,cmt:L.toFixed(3)}):A.Xr({cpcna:K,cmt:L.toFixed(3)})}var V;return(V=B)==null?void 0:V.videoData}};
|
|
a7=function(A,L,B){return{dk:HF6(A.N,L*1E3,(B===void 0?0:B)*1E3),Eu:L}};
|
|
Uc1=function(A,L){var B="";(L=MDe(A,L))&&(B=L.getId());return B?A.N.Yy({cpn:B}):void 0};
|
|
MDe=function(A,L){if(A.xJ){var B=A.W.get(A.xJ);if(B&&B.start-200<=L&&B.end+200>=L)return B}A=g.m(A.W.values());for(B=A.next();!B.done;B=A.next())if(B=B.value,B.start<=L&&B.end>=L)return B};
|
|
l0k=function(A,L,B){var f=A.Nl||A.app.e4().getPlayerState();AZ(A,!0);A.playback.seekTo(L,B);A=A.app.e4();L=A.getPlayerState();f.isOrWillBePlaying()&&!L.isOrWillBePlaying()?A.playVideo():f.isPaused()&&!L.isPaused()&&A.pauseVideo()};
|
|
AZ=function(A,L){A.Uv=NaN;A.mH=null;A.ql.stop();A.wT&&L&&A.wT.wW();A.Nl=null;A.wT=null};
|
|
eBw=function(A){var L=L===void 0?-1:L;var B=B===void 0?Infinity:B;PZk(A,L,B);for(var f=g.m(A.W.values()),K=f.next();!K.done;K=f.next())K=K.value,K.start>=L&&K.end<=B&&(A.playback.removeCueRange(K),A.W.delete(K.getId()),A.Xr({rmAdCR:1}));f=a7(A,L/1E3);L=f.dk;f=f.Eu;L&&(f=f*1E3-L.UE,xc8(A,L,f,L.UE+f),f=A.W.get(L.cpn))&&(f.start=L.UE,f.end=L.UE+L.durationMs);if(L=a7(A,B/1E3).dk){var V;f="playback_timelinePlaybackId_"+L.XA+"_video_id_"+((V=L.videoData)==null?void 0:V.videoId)+"_durationMs_"+L.durationMs+
|
|
"_enterTimeMs_"+L.UE+"_parentReturnTimeMs_"+L.NQ;A.M4("Invalid_clearEndTimeMs_"+B+"_that_falls_during_"+f+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
|
|
np7=function(A){A.Wn.clearAll();A.W.clear();A.N.clear();A.pO.clear();A.Cr=[];A.D=null;A.m1.clear();A.Ys.clear();A.G=[];A.S4=[];A.nD=[];A.k6=[];A.TZ.clear();A.LD.clear();A.GZ.clear();A.Ox.clear();A.X=!1;A.wM=0;A.yj=!1;A.Ex=!1;A.Go=0;A.N8=0;A.Pz=!1;A.fX=!1;A.V="";qye(A.app.mD());vd(A.app.mD(),A.playback,!1);A.Vj.clear();A.T.isActive()&&uE(A)};
|
|
xc8=function(A,L,B,f){L.durationMs=B;L.NQ=f;(f=A.Vj.get(L.cpn))?f.Vr(B/1E3):A.Xr({nop_d:L.cpn})};
|
|
PZk=function(A,L,B){tDQ(A.N,function(f){return f.UE>=L&&f.NQ<=B})};
|
|
a0D=function(A,L,B,f,K,V){if(!A.fX)if(g.zBw(A,B))A.Xr({gdu:"undec",seg:B,itag:K});else if(L=ujL(A,L,B,f,V),!(A.playback.getVideoData().aA()&&(L==null?0:L.jN)))return L};
|
|
ujL=function(A,L,B,f,K){var V=A.pO.get(B);if(!V){if(V=J4(A,L))return V;L=A.zX(B-1,f!=null?f:2);if(K)return A.Xr({misscue:K,sq:B,type:f,prevsstate:L==null?void 0:L.Lx,prevrecord:A.pO.has(B-1)}),A.pO.get(B-1);if((L==null?void 0:L.Lx)===2)return A.Xr({adnf:1,sq:B,type:f,prevrecord:A.pO.has(B-1)}),A.pO.get(B-1)}return V};
|
|
J4=function(A,L){L+=A.Dk();var B;if(A.playback.getVideoData().aA()){a:{var f=L*1E3;A=g.m(A.N.W);for(B=A.next();!B.done;B=A.next()){B=B.value;var K=B.n5?B.n5*1E3:B.UE;if(f>=B.UE-1E3&&f<=K+B.durationMs+1E3){f=B;break a}}f=void 0}B={dk:f,Eu:L}}else B=a7(A,L),((f=B)==null?0:f.dk)||(B=a7(A,L,1));var V;return(V=B)==null?void 0:V.dk};
|
|
g.so8=function(A,L,B,f,K,V,J){var R=K===3,Z=a0D(A,L,B,K,f,J);if(!Z){LZ(A,B,R);var N=g.zBw(A,B)?"undec":"ncp";A.Xr({gvprp:N,mt:L,seg:B,tt:K,itag:f,ce:J});return null}R||A.pO.set(B,Z);J=Z.L9;var F;K=((F=A.zX(B-1,K,V))==null?void 0:F.c$)||"";K===""&&A.Xr({eds:1});F=Aow(A,Z.ssdaiAdsConfig);V=A.playback.getVideoData();var D;R=((D=V.W)==null?void 0:D.containerType)||0;D=V.rg[R];Z=Z.Xe&&B>=Z.Xe?Z.Xe:void 0;D={Ka:J?LJQ(A,J):[],adsConfig:F,c$:K,Eo:Z,LA:na(D.split(";")[0]),du:D.split(";")[1]||""};Z={xX:D};
|
|
A.sx&&(L={gvprpro:"v",sq:B,mt:L.toFixed(3),itag:f,acpns:((N=D.Ka)==null?void 0:N.join("_"))||"none",abid:J},A.Xr(L));return Z};
|
|
Aow=function(A,L){L=L===void 0?"":L;var B=$i(L)||void 0;if(!L||!B){var f;A.Xr({adcfg:(f=L)==null?void 0:f.length,dcfg:B==null?void 0:B.length})}return B};
|
|
oV7=function(A){for(var L=g.m(A.W.values()),B=L.next();!B.done;B=L.next())A.playback.removeCueRange(B.value);A.W.clear();A.Wn.clearAll()};
|
|
fVQ=function(A,L,B,f,K,V,J){if(L&&B){A.xJ=B.cpn;A.D9(B.cpn,B.startTimeSecs||K);cCv(A,B);var R=EpQ(A,"a2a",B);A.Xr(R);A.Go++;R=B4E(A);A.playback.Rh(L,B,f||0,K||0,!!V,!!J,void 0,R)}else A.Xr({misspbkonadtrans:1,enter:(B==null?void 0:B.cpn)||"",exit:(L==null?void 0:L.cpn)||"",seek:V,skip:J})};
|
|
LZ=function(A,L,B){if(B===void 0||!B){B=g.m(A.Cr);for(var f=B.next();!f.done;f=B.next()){f=f.value;if(L>=f.start&&L<=f.end)return;if(L===f.end+1){f.end+=1;return}}A.Cr.push(new rCv(L))}};
|
|
g.zBw=function(A,L){A=g.m(A.Cr);for(var B=A.next();!B.done;B=A.next())if(B=B.value,L>=B.start&&L<=B.end)return!0;return!1};
|
|
KJL=function(A,L,B){var f;if(f=A.playback.getVideoData().aA())f=(f=A.N.Yy({cpn:L}))&&f.L9?(A=A.N.N.get(f==null?void 0:f.L9))&&A.slice(-1)[0].cpn===L:!1;return f&&B===2?1E3:0};
|
|
iFE=function(A,L,B,f,K){var V;L={reason:"overlapping_playbacks",iCT:L,UE:B,NQ:f,Ztn:K.XA,DTs:((V=K.videoData)==null?void 0:V.videoId)||"",FL4:K.durationMs,UTx:K.UE,wZr:K.NQ};zG(A,L)};
|
|
zG=function(A,L,B){A.playback.Iw(L,B)};
|
|
LJQ=function(A,L){var B=[];A=A.N.N.get(L);if(!A)return[];A=g.m(A);for(L=A.next();!L.done;L=A.next())L=L.value,L.cpn&&B.push(L.cpn);return B};
|
|
V4C=function(A,L,B){var f=0;A=A.N.N.get(B);if(!A)return-1;A=g.m(A);for(B=A.next();!B.done;B=A.next()){if(B.value.cpn===L)return f;f++}return-1};
|
|
JoS=function(A,L){var B=0;A=A.N.N.get(L);if(!A)return 0;A=g.m(A);for(L=A.next();!L.done;L=A.next())L=L.value,L.durationMs!==0&&L.NQ!==L.UE&&B++;return B};
|
|
SK0=function(A,L,B){var f=!1;if(B=A.N.N.get(B)){B=g.m(B);for(var K=B.next();!K.done;K=B.next())K=K.value,K.durationMs!==0&&K.NQ!==K.UE&&(K=K.cpn,L===K&&(f=!0),f&&!A.LD.has(K)&&(A.Xr({decoratedAd:K}),A.LD.add(K)))}};
|
|
mcy=function(A){A.sx&&A.Xr({adf:"0_"+((new Date).getTime()/1E3-A.N8)+"_isTimeout_"+A.X})};
|
|
CZk=function(A,L,B){if(A.G.length)for(var f=g.m(A.G),K=f.next(),V={};!K.done;V={LJ:void 0},K=f.next()){V.LJ=K.value;K=V.LJ.startSecs*1E3;var J=V.LJ.Dj*1E3+K;if(L>K&&L<J||B>K&&B<J)return K9(A.nD,function(R){return function(Z){return Z.identifier===R.LJ.identifier}}(V))||(A.Xr({adskip:L}),A.nD.push(V.LJ)),V.LJ}};
|
|
qID=function(A,L){if(A.fX||L.identifier&&A.m1.has(L.identifier))A.Xr({startnoad:L.identifier}),uE(A);else if(K9(A.G,function(f){return f.identifier===L.identifier}))A.Xr({timedoutcp:1}),A.T.start(0);
|
|
else if(K9(A.S4,function(f){return f.identifier===L.identifier}))A.Xr({fetchedcp:1}),uE(A);
|
|
else if(A.T.isActive()){var B;A.Xr({racingcp:((B=A.D)==null?void 0:B.identifier)+"_"+L.identifier})}else A.N8=(new Date).getTime()/1E3,A.Xr({adf:1}),(B=5E3,L.event==="predictStart")&&(B-=L.N),A.cn=Math.max(B,15E3),A.X=!1,A.T.start(A.cn),A.D=L,A.Wn.clearAll(),A.Cr=[]};
|
|
Tm=function(A,L,B,f,K){f=f||{reason:"disablessdai"};if(L&&B){if(!ujL(A,L,B))return!1;f.sq=B}if(A.fX)return!1;A.fX=!0;A.Go>0&&(A.Go=0,A.xJ="",A.L.J("html5_huli_ssdai_use_playback_state")&&A.D9(A.playback.t_(),0),A.api.publish("serverstitchedvideochange"));A.playback.G9(f,K);return!0};
|
|
uE=function(A){A.X=!1;A.T.isActive()&&mcy(A);A.T.stop();A.w6(!1)};
|
|
Rek=function(A,L){var B="";L?L.event==="unknown"?B="unknown":A.Ys.has(L.identifier)?A.U&&A.U.pW===L.identifier?A.U.pW===L.identifier?B=K9(A.S4,function(f){return f.identifier===L.identifier})?"shortad":"pending":K9(A.S4,function(f){return f.identifier===L.identifier})||(B="noAdsAdded"):B="wrongAdBreakInfo":B="unscheduled":B="noCuepoint";
|
|
return B};
|
|
Bu=function(A,L){A.V||A.yj||oH(A,A.xJ);var B=L.bx,f=L.lx;if(f.cpn===A.xJ)A.Xr({igtranssame:1,enter:f.cpn,exit:B.cpn});else{var K=A.yj,V=!!A.V;A.V="";var J=L.kT,R=B.playerType===2?B.UE/1E3+B.videoData.jI:A.GK().videoData.jI;A.api.J("html5_ssdai_enable_media_end_cue_range")&&(V||K||B.playerType!==2?(K||V)&&A.Xr({mecr:0,seek:K,skip:V}):A.api.GJ(B.cpn));if(B.playerType===2&&f.playerType===2)V?A.Xr({igtransskip:1,enter:f.cpn,exit:B.cpn,seek:K,skip:A.V}):fVQ(A,B,f,R,J,K,V);else{A.xJ=f.cpn;A.D9(f.cpn,f.startTimeSecs||
|
|
J);L=L.hyF;if(B.playerType===1&&f.playerType===2){A.wM=0;cCv(A,f);var Z=EpQ(A,"c2a",f);A.Xr(Z);A.Go++}else if(B.playerType===2&&f.playerType===1){A.api.publish("serverstitchedvideochange");Z=EpQ(A,"a2c");A.Xr(Z);A.Go=0;A.wM=R;Z=B.cpn;var N=A.wM;if(Z!==A.playback.t_()){var F=A.Vj.get(Z);F?F.N=N:A.Xr({nop_e:Z})}A.L2(B.L9)}Z=B4E(A);A.playback.Rh(B,f,R,J,K,V,L,Z)}Z_0(A)}};
|
|
N4k=function(A,L,B,f){A.L.J("html5_ssdai_log_ssevt_in_loader_timers")&&(f=A.yj?0:Math.round((f-B)*1E3),A.playback.Hn("ssevt",{tag:"sstme",ad:L!==A.playback.t_(),cpn:L,st:(B-A.playback.Dk()).toFixed(3),late:f}))};
|
|
FJD=function(A,L,B){A.playback.A1();A.playback.seekTo(L,B);A.playback.playVideo()};
|
|
D7C=function(A,L,B,f){L={bx:L,lx:B,kT:A.playback.getCurrentTime(),hyF:f};Bu(A,L)};
|
|
oH=function(A,L){var B=L||A.xJ,f=A.N.Yy({cpn:B});if(f){L=f.videoData;var K,V;B=f.n5||((V=(K=A.W.get(B))==null?void 0:K.start)!=null?V:0)/1E3;A=A.playback.getCurrentTime()-B;L.jI=A>0?A:0}else A.GK().videoData.jI=A.playback.getCurrentTime()};
|
|
Z_0=function(A){A.Ox.add(A.V);A.V="";A.yj=!1};
|
|
B4E=function(A){if(A.t$||A.KY){var L=Array.from(A.app.mD().X.values()),B=[],f=[],K=[],V=[],J=[];L=g.m(L);for(var R=L.next();!R.done;R=L.next())if(R=A.N.Yy({cpn:R.value.t_()}))R.serializedPlaybackPingContextLoggingData&&B.push(R.serializedPlaybackPingContextLoggingData),K.push(R.cpn),V.push(R.videoData.videoId||""),J.push(R.videoData.adFormat||R.videoData.ql),R.serializedQoeContextData&&f.push(R.serializedQoeContextData);R=L=void 0;A.t$&&(R={serializedPlaybackPingContextLoggingData:B});A.KY&&(L={Ka:K,
|
|
yn:V,adFormats:J,serializedQoeContextData:f});return{Hj:R,Oz:L}}};
|
|
IVD=function(A,L,B,f){g.Y.call(this);var K=this;this.api=A;this.L=L;this.N=B;this.app=f;this.D=new Map;this.W=[];this.V=this.X=null;this.Wn=NaN;this.T=this.U=this.yj=null;this.G=new g.aa(function(){d7L(K,K.Wn,K.yj||void 0)});
|
|
this.qp=[];this.Vj=new g.aa(function(){var V=K.qp.pop();if(V){var J=V.XA,R=V.playerVars;V=V.playerType;R&&(R.prefer_gapless=!0,K.api.preloadVideoByPlayerVars(R,V,NaN,"",J),K.qp.length&&g.Az(K.Vj,4500))}});
|
|
this.events=new g.dN(this);this.GV={uVT:function(){return K.W}};
|
|
this.N.getPlayerType();g.W(this,this.G);g.W(this,this.Vj);g.W(this,this.events);this.events.Y(this.api,g.qR("childplayback"),this.onCueRangeEnter);this.events.Y(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Y(this.api,"presentingplayerstatechange",this.qP)};
|
|
jeL=function(A,L,B,f,K,V){var J=L.cpn,R=L.docid||L.video_id||L.videoId||L.id,Z=A.N;V=V===void 0?K+f:V;if(K>V)return fZ(A,"enterAfterReturn enterTimeMs="+K+" is greater than parentReturnTimeMs="+V.toFixed(3),J,R),"";var N=Z.vy()*1E3;if(K<N)return fZ(A,"enterBeforeMinSeekable enterTimeMs="+K+" is less than parentMinSeekableTimeMs="+N,J,R),"";N=Z.getDuration()*1E3;if(V>N)return Z="returnAfterDuration parentReturnTimeMs="+V.toFixed(3)+" is greater than parentDurationMs="+N+". And timestampOffset in seconds is "+
|
|
Z.pY(),fZ(A,Z,J,R),"";N=null;for(var F=g.m(A.W),D=F.next();!D.done;D=F.next()){D=D.value;if(K>=D.UE&&K<D.NQ)return fZ(A,"overlappingEnter",J,R),"";if(V<=D.NQ&&V>D.UE)return fZ(A,"overlappingReturn",J,R),"";if(V===D.UE)return fZ(A,"outOfOrder",J,R),"";K===D.NQ&&(N=D)}J="cs_childplayback_"+wAC++;R={rh:KZ(f,!0),rk:Infinity,target:null};var I={XA:J,playerVars:L,playerType:B,durationMs:f,UE:K,NQ:V,BZ:R};A.W=A.W.concat(I).sort(function(r,h){return r.UE-h.UE});
|
|
N?pAw(A,N,{rh:KZ(N.durationMs,!0),rk:N.BZ.rk,target:I}):(L={rh:KZ(K,!1),rk:K,target:I},A.D.set(L.rh,L),Z.addCueRange(L.rh));L=!0;if(A.N===A.app.e4()&&(Z=Z.getCurrentTime()*1E3,Z>=I.UE&&Z<I.NQ)){var d=A.app.e4().getPlayerState(),w=Z-I.UE;hU(function(){yow(A,I,w/1E3,{},d)});
|
|
L=!1}L&&(A.qp.unshift(I),g.Az(A.Vj,0));return J};
|
|
KZ=function(A,L){return new g.WR(Math.max(0,A-5E3),L?0x8000000000000:A-1,{namespace:"childplayback",priority:9})};
|
|
gVk=function(A,L,B,f){A.V=f;A.api.qm(A.N,B,L)};
|
|
GsE=function(A,L,B,f){A.V=f;f=L.XA;var K=L.playerVars,V=L.playerType;A.X=L;K&&A.api.enqueueVideoByPlayerVars(K,V,B,f)};
|
|
pAw=function(A,L,B){var f=L.BZ;L.BZ=B;V$(A,L)&&(B=A.app.e4(),f.rh===A.V&&JZ(A),B.removeCueRange(f.rh),B.addCueRange(L.BZ.rh))};
|
|
JZ=function(A){A.X=null;A.V=null;A.api.qV()||A.api.clearQueue()};
|
|
roy=function(A,L){V$(A,L)||fZ(A,"childPlaybackIsNotPresenting");return L.NQ===L.UE+L.durationMs?L.UE+A.app.e4().getCurrentTime()*1E3:L.NQ};
|
|
seS=function(A,L){var B=0;A=g.m(A.W);for(var f=A.next();!f.done;f=A.next()){f=f.value;var K=f.UE/1E3+B,V=K+f.durationMs/1E3;if(K>L)break;if(V>L)return{dk:f,Eu:L-K};B=V-f.NQ/1E3}return{dk:null,Eu:L-B}};
|
|
d7L=function(A,L,B){B=B===void 0?{}:B;var f=A.T||A.app.e4().getPlayerState();Sh(A,!0);L=isFinite(L)?L:A.N.gQ();var K=seS(A,L);L=K.Eu;var V=(K=K.dk)&&!V$(A,K)||!K&&A.N!==A.app.e4(),J=L*1E3;J=A.V&&A.V.start<=J&&J<=A.V.end;!V&&J||JZ(A);K?yow(A,K,L,B,f):H_E(A,L,B,f,"_execute")};
|
|
H_E=function(A,L,B,f,K){var V=A.N;V!==A.app.e4()&&A.app.hh();A.L.J("html5_sabr_csdai_seek_log")||(K="");var J;V.seekTo(L,Object.assign({},{zZ:"application_timelinemanager"+((J=K)!=null?J:"")},B));he0(A,f)};
|
|
yow=function(A,L,B,f,K){var V=V$(A,L);if(!V){L.playerVars.prefer_gapless=!0;var J=new g.Kr(A.L,L.playerVars);J.XA=L.XA;A.api.Ku(J,L.playerType)}J=A.app.e4();V||J.addCueRange(L.BZ.rh);J.seekTo(B,Object.assign({},{zZ:"application_timelinemanager"},f));he0(A,K)};
|
|
he0=function(A,L){A=A.app.e4();var B=A.getPlayerState();L.isOrWillBePlaying()&&!B.isOrWillBePlaying()?A.playVideo():L.isPaused()&&!B.isPaused()&&A.pauseVideo()};
|
|
Sh=function(A,L){A.Wn=NaN;A.yj=null;A.G.stop();A.U&&L&&A.U.wW();A.T=null;A.U=null};
|
|
V$=function(A,L){A=A.app.e4();return!!A&&A.getVideoData().XA===L.XA};
|
|
b_0=function(A){var L=A.W.find(function(K){return V$(A,K)});
|
|
if(L){var B=A.app.e4();JZ(A);var f=new g.Gu(8);L=roy(A,L)/1E3;H_E(A,L,{},f,"_force");B.Hn("forceParentTransition",{childPlayback:1});A.N.Hn("forceParentTransition",{parentPlayback:1})}};
|
|
ksC=function(A,L,B){L=L===void 0?-1:L;B=B===void 0?Infinity:B;for(var f=L,K=B,V=g.m(A.D),J=V.next();!J.done;J=V.next()){var R=g.m(J.value);J=R.next().value;R=R.next().value;R.rk>=f&&R.target&&R.target.NQ<=K&&(A.N.removeCueRange(J),A.D.delete(J))}f=L;K=B;V=[];J=g.m(A.W);for(R=J.next();!R.done;R=J.next())if(R=R.value,R.UE>=f&&R.NQ<=K){var Z=A;Z.X===R&&JZ(Z);V$(Z,R)&&Z.app.hh()}else V.push(R);A.W=V;f=seS(A,L/1E3);L=f.dk;f=f.Eu;L&&(f*=1E3,t4Q(A,L,f,L.NQ===L.UE+L.durationMs?L.UE+f:L.NQ));(L=seS(A,B/1E3).dk)&&
|
|
fZ(A,"Invalid clearEndTimeMs="+B+" that falls during playback={timelinePlaybackId="+(L.XA+" video_id="+L.playerVars.video_id+" durationMs="+L.durationMs+" enterTimeMs="+L.UE+" parentReturnTimeMs="+L.NQ+"}.Child playbacks can only have duration updated not their start."))};
|
|
t4Q=function(A,L,B,f){L.durationMs=B;L.NQ=f;f={rh:KZ(B,!0),rk:B,target:null};pAw(A,L,f);V$(A,L)&&A.app.e4().getCurrentTime()*1E3>B&&(L=roy(A,L)/1E3,B=A.app.e4().getPlayerState(),H_E(A,L,{},B,"_update"))};
|
|
fZ=function(A,L,B,f){A.N.Hn("timelineerror",{e:L,cpn:B?B:void 0,videoId:f?f:void 0})};
|
|
lVD=function(A){A&&A!=="web"&&T47.includes(A)};
|
|
RH=function(A){A=A===void 0?!1:A;g.Y.call(this);this.N=WRL(5,null,A);g.W(this,this.N);this.W=WRL(15,null,A);g.W(this,this.W)};
|
|
vqw=function(A,L){return L?!!A.N.get(L):!1};
|
|
m70=function(A,L){A.dataset.version=L};
|
|
i_8=function(A){g.q.call(this,{Z:"div",Rr:["html5-video-player"],C:{tabindex:A.K().disableOrganicUi?"":"-1",id:A.webPlayerContextConfig.rootElementId},B:[{Z:"div",j:g.m6.VIDEO_CONTAINER,C:{"data-layer":"0"}}]});var L=this;this.app=A;this.Q8=this.m4(g.m6.VIDEO_CONTAINER);this.PE=new g.oR(0,0,0,0);this.yK=null;this.OY=new g.oR(0,0,0,0);this.qk=this.fR=this.hc=NaN;this.Wp=this.v5=this.If=this.s2=!1;this.YL=NaN;this.He=!1;this.tK=null;this.Vn=new g.aa(function(){L.app.K().J("web_enable_smart_zoom")&&
|
|
L.app.rT.getInternalApi().isAutocropEnabled()||L.resize()},100);
|
|
this.k_=function(){L.element.focus({preventScroll:!0})};
|
|
this.SF=function(){L.app.rT.publish("playerUnderlayVisibilityChange","visible");L.yK.classList.remove(g.m6.VIDEO_CONTAINER_TRANSITIONING);L.yK.removeEventListener(QC,L.SF);L.yK.removeEventListener("transitioncancel",L.SF)};
|
|
this.fN=this.T1=!1;var B=this.element.addEventListener,f=this.element.removeEventListener;this.addEventListener=function(V,J,R){B.apply(L.element,[V,J,R])};
|
|
this.removeEventListener=function(V,J,R){f.apply(L.element,[V,J,R])};
|
|
var K=A.K();K.transparentBackground&&this.zf("ytp-transparent");K.controlsType==="0"&&this.zf("ytp-hide-controls");g.R1(this.element,"ytp-exp-bottom-control-flexbox");g.R1(this.element,"ytp-modern-caption");K.J("enable_new_paid_product_placement")&&!g.Ng(K)&&g.R1(this.element,"ytp-exp-ppp-update");g.R1(this.element,"ytp-livebadge-color");m70(this.element,QeC(A));this.AJ=!1;this.vN=new g.Sr(NaN,NaN);C2S(this);this.Y(A.rT,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.W(this,this.Vn)};
|
|
C2S=function(A){function L(J){A.yK&&Z$(A);Nz(A)!==A.He&&A.resize();A.app.K().J("web_enable_smart_zoom")&&A.QT&&(J.state.isPaused()?A.QT.pause():g.wk(J,8)&&A.QT.playState==="paused"&&A.QT.play())}
|
|
function B(J,R){A.cF(J,R)}
|
|
function f(J){J.getVideoData()&&A.updateVideoData(J.getVideoData())}
|
|
function K(){A.OY=new g.oR(0,0,0,0);A.PE=new g.oR(0,0,0,0)}
|
|
var V=A.app.rT;V.addEventListener("initializingmode",K);V.addEventListener("videoplayerreset",f);V.addEventListener("videodatachange",B);V.addEventListener("presentingplayerstatechange",L);A.addOnDisposeCallback(function(){V.removeEventListener("initializingmode",K);V.removeEventListener("videoplayerreset",f);V.removeEventListener("videodatachange",B);V.removeEventListener("presentingplayerstatechange",L)})};
|
|
XAQ=function(A){var L=A.app.e4();if(L=L?L.getVideoData():null){if(g.WK(L)||g.vK(L)||g.qG(L))return 16/9;if(wp(L)&&L.V.N)return A=L.V.videoInfos[0].video,$7C(A.width,A.height)}return(A=A.yK)?$7C(A.videoWidth,A.videoHeight):16/9};
|
|
O_y=function(A,L,B,f){var K=B,V=$7C(L.width,L.height);A.s2?K=B<V?Infinity:0:isNaN(A.qk)?isNaN(A.fR)||(K=A.fR):K=A.qk;isFinite(K)||(K=Math.max(B,V));A=K>V?{width:L.width,height:L.width/K,aspectRatio:K}:K<V?{width:L.height*K,height:L.height,aspectRatio:K}:{width:L.width,height:L.height,aspectRatio:V};f||isNaN(B)||(B>K?A.width=A.height*B:B<K&&(A.height=A.width/B),A.aspectRatio=B);return A};
|
|
$7C=function(A,L){return Math.abs(EV8*L-A)<1||Math.abs(EV8/A-L)<1?EV8:A/L};
|
|
Nz=function(A){if(A.app.getAppState()===1)return!1;if(A.app.getAppState()===6)return!0;var L=A.app.e4();if(!L||L.BF())return!1;A=A.app.rT.getPlayerStateObject();L=!g.x(A,2)||L&&L.getVideoData().X;var B=g.x(A,1024);return A&&L&&!B&&!A.isCued()};
|
|
Z$=function(A){var L=A.app.K().controlsType==="3"&&!A.Wp&&Nz(A)&&!A.app.rA||!1;A.yK.controls=L;A.yK.tabIndex=L?0:-1;A.app.K().U&&(A.yK.ariaHidden="true");L?A.yK.removeEventListener("focus",A.k_):A.yK.addEventListener("focus",A.k_)};
|
|
co6=function(A){var L=A.yN(),B=1,f=!1,K=O_y(A,L,A.getVideoAspectRatio()),V=A.app.K(),J=V.J("enable_desktop_player_underlay"),R=ut7(),Z=g.Am(V.experiments,"player_underlay_min_player_width");Z=J&&A.If&&A.getPlayerSize().width>Z;if(Nz(A)){var N=XAQ(A);var F=isNaN(N)||g.ns||Hj&&g.yw||Z;ed&&!g.oC(601)?N=K.aspectRatio:F=F||V.controlsType==="3";F?Z?(F=V.J("place_shrunken_video_on_left_of_player")?16:A.getPlayerSize().width-L.width-16,N=Math.max((A.getPlayerSize().height-L.height)/2,0),F=new g.oR(F,N,L.width,
|
|
L.height),A.yK.style.setProperty("border-radius","12px")):F=new g.oR(0,0,L.width,L.height):(B=K.aspectRatio/N,F=new g.oR((L.width-K.width/B)/2,(L.height-K.height)/2,K.width/B,K.height),B===1&&g.yw&&(N=F.width-L.height*N,N>0&&(F.width+=N,F.height+=N)));g.D1(A.element,"ytp-fit-cover-video",Math.max(F.width-K.width,F.height-K.height)<1);if(R||A.AJ)A.yK.style.display="";A.He=!0}else{F=-L.height;ed?F*=window.devicePixelRatio:g.F1&&(F-=window.screen.height);F=new g.oR(0,F,L.width,L.height);if(R||A.AJ)A.yK.style.display=
|
|
"none";A.He=!1}BX(A.OY,F)||(A.OY=F,g.xi(V)?(A.yK.style.setProperty("width",F.width+"px","important"),A.yK.style.setProperty("height",F.height+"px","important")):g.wK(A.yK,F.getSize()),f=new g.Vl(F.left,F.top),g.F6(A.yK,Math.round(f.x),Math.round(f.y)),f=!0);L=new g.oR((L.width-K.width)/2,(L.height-K.height)/2,K.width,K.height);BX(A.PE,L)||(A.PE=L,f=!0);g.Kv(A.yK,"transform",B===1?"":"scaleX("+B+")");J&&Z!==A.v5&&(Z&&(A.yK.addEventListener(QC,A.SF),A.yK.addEventListener("transitioncancel",A.SF),A.yK.classList.add(g.m6.VIDEO_CONTAINER_TRANSITIONING)),
|
|
A.v5=Z,A.app.rT.publish("playerUnderlayVisibilityChange",A.v5?"transitioning":"hidden"));return f};
|
|
M4v=function(A){A.T1=!A.T1;A.fN=!0;A.element.classList.toggle("ytp-retro-player",A.T1);A.resize();A.fN=!1;A.app.rT.Kr("onRetroModeChanged",A.T1)};
|
|
YKe=function(){this.csn=g.sF();this.clientPlaybackNonce=null;this.elements=new Set;this.V=new Set;this.N=new Set;this.W=new Set};
|
|
U7v=function(A){if(A.csn!==g.sF())if(A.csn==="UNDEFINED_CSN")A.csn=g.sF();else{var L=g.sF(),B=g.r8();if(L&&B){A.csn=L;for(var f=g.m(A.elements),K=f.next();!K.done;K=f.next())(K=K.value.visualElement)&&K.isClientVe()&&L&&B&&(g.h_("combine_ve_grafts")?I4(DD(),K,B):g.fg(g.Pb)(void 0,L,B,K))}if(L)for(A=g.m(A.N),B=A.next();!B.done;B=A.next())(B=B.value.visualElement)&&B.isClientVe()&&g.L1(L,B)}};
|
|
FM=function(A,L){g.Y.call(this);this.D=A;this.Hn=L;this.U=0;this.V=!1};
|
|
WJv=function(A){var L,B,f,K;return g.c(function(V){if(V.N==1){if(A.sN)return V.return();A.sN=new Worker(gt(A.D),void 0);g.S5(V,2);B=Promise.withResolvers();L=setTimeout(function(){B.reject("timeout")},1E3);
|
|
A.sN.onerror=function(){B.reject("error")};
|
|
A.sN.onmessage=function(){B.resolve();clearTimeout(L)};
|
|
return g.X(V,B.promise,4)}if(V.N!=2)return A.sN.onmessage=null,A.sN.onerror=null,A.sN.addEventListener("message",function(J){return void A.onMessage(J)}),A.Hn("workerCtor",{}),g.ZR(V,0);
|
|
f=g.NX(V);clearTimeout(L);(K=A.sN)==null||K.terminate();A.sN.onmessage=null;A.sN.onerror=null;A.sN=void 0;A.Hn("workerErr",{e:""+f});g.VK(V)})};
|
|
vV7=function(A,L,B){g.c(function(f){if(f.N==1){if(A.W!==void 0||A.V)return f.return();A.V=!0;return g.X(f,WJv(A),2)}A.V=!1;if(!A.sN)return f.return();A.W=setInterval(function(){A.sendMessage(B)},L);
|
|
g.VK(f)})};
|
|
g.D$=function(A,L,B,f){g.Y.call(this);var K=this;this.logger=new g.sI("App");this.rA=this.iY=!1;this.L7={};this.mY=[];this.lw=!1;this.xp=null;this.intentionalPlayback=!1;this.zk=!0;this.UR=!1;this.d7=this.A3=this.ZU=null;this.Pt=!0;this.mediaElement=this.Jw=null;this.ej=NaN;this.oF=!1;this.Af=this.Pd=this.QG=this.screenLayer=this.playlist=null;this.P3=[];this.YI=0;this.GV={mD:function(){return K.e$},
|
|
e2:function(){return K.QG}};
|
|
if(!B)throw Error("b/179532961");this.ly=(L==null?void 0:L.args)||{};this.webPlayerContextConfig=B;L=this.ly;this.L=new Lo(L,B,B.canaryState,f);g.W(this,this.L);opE(this.L);f=Fg8(this.L);this.L.hw()&&A2(f,function(J){K.JM("h5vcc",J)});
|
|
this.L.experiments.GL("jspb_serialize_with_worker")&&yl1();this.L.experiments.GL("gzip_gel_with_worker")&&Sne();this.L.W&&(f=this.L.experiments.Qf().N.Iv(QA),jz6(f));this.J("html5_onesie")&&(this.DA=new Mq(this.L),g.W(this,this.DA));this.Ml=new dcw(yCk(g.wY(this.L),this.L.dg,this.L.experiments),new wZ0(this.L.experiments),function(){return void K.H4()});
|
|
g.W(this,this.Ml);this.sP=Sw(UR(this.L)&&!0,L.enablesizebutton);this.Nw=Sw(!1,L.player_wide);this.visibility=new MyL;g.W(this,this.visibility);this.J("web_log_theater_mode_visibility")&&this.X9(Sw(!1,L.player_wide));this.iY=Sw(!1,L.external_list);this.events=new g.dN(this);g.W(this,this.events);this.J("start_client_gcf")&&(b_(l_(),{iG:Zu,qK:mT0()}),this.e1=l_().resolve(Zu),ieC(this.e1));this.nyx=new gh;g.W(this,this.nyx);this.yb=new YKe;L=new Gg;this.rT=new g.$n(this,L);g.W(this,this.rT);this.template=
|
|
new i_8(this);g.W(this,this.template);this.appState=1;this.CV=qKD(this);g.W(this,L);L={};this.KI=(L.internalvideodatachange=this.Be,L.playbackready=this.LHT,L.playbackstarted=this.dln,L.statechange=this.NfF,L);this.o1=new V2(this.rT);this.eD=P2w(this);L=this.L.T;!1!==L&&this.JM("badps",{hbp:L,hostname:window.location.hostname,ps:this.L.playerStyle});this.Rv=new QmQ(this.L,this.eD);this.rT.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||jf(this.eD))&&x7w(this);L=10;g.wY(this.L)&&
|
|
(L=3);Ro(this.L)&&(L=g.Am(this.L.experiments,"tvhtml5_unplugged_preload_cache_size"));this.e$=new g.UY(this.rT,L);L=ee0(this);this.e$.ij(L);nVy(this);L={};this.eQ=(L.airplayactivechange=this.mQ4,L.airplayavailabilitychange=this.beT,L.beginseeking=this.UQp,L.sabrCaptionsDataLoaded=this.rf1,L.endseeking=this.Zex,L.internalAbandon=this.MDj,L.internalaudioformatchange=this.tDF,L.internalvideodatachange=this.fjD,L.internalvideoformatchange=this.s8T,L.liveviewshift=this.RV4,L.playbackstalledatstart=this.hVr,
|
|
L.progresssync=this.Y94,L.onAbnormalityDetected=this.VDF,L.onSnackbarMessage=this.Af4,L.onLoadProgress=this.S9L,L.SEEK_COMPLETE=this.nb1,L.SEEK_TO=this.zVp,L.onVideoProgress=this.xQx,L.onLoadedMetadata=this.JfL,L.onAutoplayBlocked=this.F1x,L.onPlaybackPauseAtStart=this.j8s,L.playbackready=this.XoL,L.statechange=this.HW,L.newelementrequired=this.WW,L.heartbeatparams=this.DQF,L.videoelementevent=this.CrL,L.drmoutputrestricted=this.woT,L.signatureexpired=this.Ebs,L.nonfatalerror=this.TXF,L.reloadplayer=
|
|
this.gb4,L);this.Bq=new g.dN(this);g.W(this,this.Bq);this.Pq=new RH(this.L.Qf().N.Iv(vuQ));g.W(this,this.Pq);this.Hr=this.FZ=-1;this.wS=new g.aa(this.template.resize,16,this.template);g.W(this,this.wS);this.TV=new IVD(this.rT,this.L,this.kP(),this);this.MP=new Cb(this);g.W(this,this.MP);this.T0=new ko(this);g.W(this,this.T0);lVD(this.L.N.c);this.events.Y(this.rT,g.qR("appapi"),this.cwn);this.events.Y(this.rT,g.PR("appapi"),this.BiT);this.events.Y(this.rT,g.qR("appprogressboundary"),this.ob1);this.events.Y(this.rT,
|
|
g.PR("applooprange"),this.JW);this.events.Y(this.rT,"presentingplayerstatechange",this.qP);this.events.Y(this.rT,"resize",this.l1s);this.template.DM(yl(document,A));this.events.Y(this.rT,"offlineslatestatechange",this.yfr);this.events.Y(this.rT,"sabrCaptionsTrackChanged",this.MEx);this.events.Y(this.rT,"sabrCaptionsBufferedRangesUpdated",this.DUF);this.eD.S.K().Gt&&gu(this.eD,"offline");this.L.sx&&g.Np("ux",g.hS);A=g.Am(this.L.experiments,"html5_defer_fetch_att_ms");this.b3=new g.aa(this.C2M,A,this);
|
|
g.W(this,this.b3);this.df().gX()&&(g.ME()&&this.df().p9.push("mdx"),zeL(this));this.Rv.tick("fs");uUC(this);this.L.sx&&gu(this.eD,"ux",!0);g.MM(this.eD.S.K())&&gu(this.eD,"embed");this.J("web_player_sentinel_is_uniplayer")||g.CE(new g.iL("Player experiment flags missing","web_player_sentinel_is_uniplayer"));A=this.J("web_player_sentinel_yt_experiments_sync");L=g.h_("web_player_sentinel_yt_experiments_sync");A!==L&&g.CE(new g.iL("b/195699950",{yt:A,player:L}));this.CA=aVQ(this);if(A=g.Am(this.L.experiments,
|
|
"html5_block_pip_safari_delay"))this.w8=new g.aa(this.E2,A,this),g.W(this,this.w8);var V;B=mc((V=B==null?void 0:B.trustedEchoWorkerUrl)!=null?V:null);V=this.L.Qf().N.Iv(AML);A=this.L.Qf().N.Iv(Ly1);B&&V>0&&A>0&&(this.JP=new FM(B,function(J,R){K.kP().Hn(J,R)}),g.W(this,this.JP),vV7(this.JP,V,A));
|
|
EQ=this.L.KY;this.rT.publish("applicationInitialized")};
|
|
aVQ=function(A){function L(B){B.stack&&B.stack.indexOf("player")!==-1&&A.e4().IS(B)}
|
|
$f.subscribe("handleError",L);oM.push(L);return function(){$f.unsubscribe("handleError",L);var B=oM.indexOf(L);B!==-1&&oM.splice(B,1)}};
|
|
ee0=function(A){var L=new g.Kr(A.L,A.ly);A.rT.publish("initialvideodatacreated",L);return dc(A,1,L,!1)};
|
|
nVy=function(A){var L=A.kP();L.setPlaybackRate(A.L.U?1:oBy(A,Number(g.ES("yt-player-playback-rate"))||1));L.tA(A.KI,A);L.i_()};
|
|
P2w=function(A){var L="",B="",f=QeC(A),K=Ew(f,"cb");K&&/^[\w-]+$/.test(K)&&(B=K);f.indexOf("//")===0&&(f=A.L.protocol+":"+f);K=f.lastIndexOf("/base.js");K!==-1&&(L=f.substring(0,K+1));if(f=Error().stack)if(f=f.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))f=f[1],f.includes(L)||g.CE(Error("Player module URL mismatch: "+(f+" vs "+L+".")));L=new n87(A.rT,L,B);B={};z1w(L,(B.destroyed=function(){A.onApiChange()},B));
|
|
return L};
|
|
qKD=function(A){if(A.L.storeUserVolume){A=g.ES("yt-player-volume")||{};var L=A.volume;A={volume:isNaN(L)?100:g.B4(Math.floor(L),0,100),muted:!!A.muted}}else A={volume:100,muted:A.L.mute};return A};
|
|
IH=function(A){var L=A.L.experiments.Qf().N.Iv(QA);var B=A.L.deviceIsAudioOnly;L=L===void 0?!1:L;B=B?L?new g.bE(g.TO("AUDIO")):new g.$8(g.TO("AUDIO")):tS.pop()||(L?new g.bE(g.TO("VIDEO")):new g.$8(g.TO("VIDEO")));A.mediaElement=B;g.W(A,A.mediaElement);A.e4().setMediaElement(A.mediaElement);try{A.L.N8?(A.Pd&&A.events.J$(A.Pd),A.Pd=A.events.Y(A.mediaElement,"volumechange",A.OD1)):(A.mediaElement.o6(A.CV.muted),A.mediaElement.setVolume(A.CV.volume/100))}catch(K){A.Lw("html5.missingapi",2,"UNSUPPORTED_DEVICE",
|
|
"setvolume.1;emsg."+(K&&typeof K==="object"&&"message"in K&&typeof K.message==="string"&&K.message.replace(/[;:,]/g,"_")));return}g.$_(A.Bq);B78(A);B=A.template;L=A.mediaElement.Zg();B.yK=L;B.Wp=!1;B.yK.parentNode||iA(B.Q8,B.yK,0);B.OY=new g.oR(0,0,0,0);co6(B);Z$(B);L=B.yK;g.R1(L,"video-stream");g.R1(L,g.m6.MAIN_VIDEO);var f=B.app.K();f.ye&&L.setAttribute("data-no-fullscreen","true");f.J("html5_local_playsinline")?"playsInline"in So()&&(L.playsInline=!0):f.Ji&&(L.setAttribute("webkit-playsinline",
|
|
""),L.setAttribute("playsinline",""));f.IV&&B.yK&&B.Y(L,"click",L.play,L);try{A.mediaElement.activate()}catch(K){A.Lw("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(K&&typeof K==="object"&&"message"in K&&typeof K.message==="string"&&K.message.replace(/[;:,]/g,"_")))}};
|
|
Kyy=function(A){if(!fg6(A)){var L=A.kP().pD();L&&(L=L.VJ(),L instanceof Promise&&L.catch(function(){}));
|
|
wc(A,Tu(A.getPlayerStateObject()))}};
|
|
B78=function(A){var L=A.mediaElement;F2()?A.Bq.Y(L,"webkitpresentationmodechanged",A.S_n):window.document.pictureInPictureEnabled&&(A.Bq.Y(L,"enterpictureinpicture",function(){A.Aa(!0)}),A.Bq.Y(L,"leavepictureinpicture",function(){A.Aa(!1)}));
|
|
Ln&&(A.Bq.Y(L,"webkitbeginfullscreen",function(){A.Fc(3)}),A.Bq.Y(L,"webkitendfullscreen",function(){A.Fc(0)}))};
|
|
g.pZ=function(A,L){return A.e$.Yy(L)||A.e$.G};
|
|
g.VJC=function(A,L,B,f){var K=A.Rv;L===2&&(K=new QmQ(A.L));return new g.WY(A.L,L,K,A.template,function(V,J,R){A.rT.publish(V,J,R)},function(){return A.rT.getVisibilityState()},A.visibility,A,A.Ml,B,f)};
|
|
dc=function(A,L,B,f,K){A=g.VJC(A,L,B,K);A=new g.nm(A);f&&A.i_();return A};
|
|
y$=function(A,L){return A.yC(L)?A.kP():L};
|
|
jh=function(A,L){var B=A.e4();return L===A.kP()&&A.yC(L)&&A.yC(B)?B:L};
|
|
JM7=function(A){if(!Gj(A)){var L=HB(A.eD);L&&!L.created&&u7w(A.eD)&&L.create()}};
|
|
Sov=function(A){var L=A.getVideoData(),B=A.eD;Jq6(B)||B.Ee();!CM&&jf(B)&&dpe(B);gu(B,"embed");gu(B,"kids");gu(B,"remote");gu(B,"miniplayer");gu(B,"offline");gu(B,"unplugged");gu(B,"ypc",!1,!0);gu(B,"webgl",!1,!0);Sv6(B)||(gu(B,"captions",!0),gu(B,"endscreen"),B.AL(),gu(B,"creatorendscreen",!0));B.Wv();B.S.publish("modulesCreated");A.rT.publish("videoready",L)};
|
|
rc=function(A){A=A.df();A.gX();return aq(A)};
|
|
uUC=function(A){A.GC();var L=A.ly;IH(A);A.events.Y(window,"resize",A.kPT);var B=A.df();A.rT.X3("onVolumeChange",A.CV);if(L&&Xee(L)){var f=Ko(A.L);f&&!A.iY&&(L.fetch=0);var K=g.MM(A.L);K&&!A.iY&&(L.fetch=0);sp(A,L);g.MM(A.L)&&A.Rv.tick("ep_pr_s");if(!f||A.iY)if(K&&!A.iY)Rf0(A);else if(!B.gX())A.playlist.onReady(function(){Hu(A)})}A.Ok(A.kP(),!1,!0);
|
|
g.x(A.kP().getPlayerState(),128)||(L=Bqy(!A.L.deviceIsAudioOnly),L==="fmt.noneavailable"?A.Lw("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):L==="html5.missingapi"?A.Lw(L,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):B&&B.gX()&&rc(A)&&(A.L.Of||A.L.cR)?hZ(A):B.U$?A.rT.mutedAutoplay({durationMode:B.mutedAutoplayDurationMode}):g.ES("yt-player-playback-on-reload")?(g.pE("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!A.L.ZM}),g.OS("yt-player-playback-on-reload",!1),hZ(A)):
|
|
dd(A.L)||Z7E(A),g.SK(A.L)||ge(A.L)==="MWEB"?(g.AR(g.ol(),function(){bF(A)}),g.AR(g.ol(),function(){SuL()})):(bF(A),SuL()))};
|
|
bF=function(A){if(!A.J("use_rta_for_player"))if(A.J("fetch_att_independently"))g.Az(A.b3);else{var L=A.getVideoData().botguardData;L&&g.HZ(L,A.L,A.getVideoData().EZ||"")}};
|
|
Z7E=function(A){A.rT.publish("initializingmode");A.dN(2);gu(A.eD,"remote");gu(A.eD,"miniplayer")};
|
|
hZ=function(A){var L=A.kP();if(g.x(L.getPlayerState(),128))return!1;L=L.getVideoData();rc(A)&&A.L.cR&&(tS.length&&A.rA?(tZ(A,{muted:!1,volume:A.CV.volume},!1),ky(A,!1)):tS.length||A.CV.muted||(tZ(A,{muted:!0,volume:A.CV.volume},!1),ky(A,!0)));rc(A)&&g.MM(A.L)&&L.mutedAutoplay&&(tZ(A,{muted:!0,volume:A.CV.volume},!1),ky(A,!0));L.FK&&tZ(A,{muted:!0,volume:A.CV.volume},!1);N7v(A,1,L,!1);var B=A.kP();A.rT.publish("initializingmode");A.Ok(B);A.dN(3);var f;if(!(f=!A.L.iD)){if(f=A.Af){f=A.Af;var K=A.mediaElement;
|
|
f=!!K&&K===f.mediaElement}f=f&&A.lw}f&&(A.UN(),IH(A),B.setMediaElement(A.mediaElement));B.Am();if(g.x(B.getPlayerState(),128))return!1;L.Bk||wc(A,3);return A.lw=!0};
|
|
Gj=function(A){A=EU(A.eD);return!!A&&A.loaded};
|
|
Fyk=function(A,L){if(!A.Jw)return!1;var B=A.Jw.startTimeMs*.001-1,f=A.Jw.endTimeMs*.001;A.Jw.type==="repeatChapter"&&f--;return Math.abs(L-B)<=1E-6||Math.abs(L-f)<=1E-6||L>=B&&L<=f};
|
|
Dk6=function(A){var L=A.e4();if(A.J("html5_disable_loop_range_for_shorts_ads")&&L.getVideoData().isAd()?0:pr(L.getVideoData())&&!L.jR())L=Tj(A)*1E3-A.getVideoData().Yn,A.J("html5_gapless_new_slr")?(A=A.T0,lF(A.app,"gaplessshortslooprange"),L=new g.WR(0,L,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(A=A.app.e4())&&A.addCueRange(L)):A.setLoopRange({startTimeMs:0,endTimeMs:L,type:"shortsLoop"})};
|
|
dkw=function(A){var L=A.kP();if(!(g.x(L.getPlayerState(),64)&&A.df().isLivePlayback&&A.Jw.startTimeMs<5E3)){if(A.Jw.type==="repeatChapter"){var B,f=(B=K6k(A.SI()))==null?void 0:B.YR(),K;B=(K=A.getVideoData())==null?void 0:K.k6;f instanceof g.YS&&B&&(K=B[BJ(B,A.Jw.startTimeMs)],f.renderChapterSeekingAnimation(0,K.title));isNaN(Number(A.Jw.loopCount))?A.Jw.loopCount=0:A.Jw.loopCount++;A.Jw.loopCount===1&&A.rT.Kr("innertubeCommand",A.getVideoData().Jc)}f={zZ:"application_loopRangeStart"};if(A.Jw.type===
|
|
"clips"||A.Jw.type==="shortsLoop")f.seekSource=58;L.seekTo(A.Jw.startTimeMs*.001,f)}};
|
|
oBy=function(A,L){var B=A.rT.getAvailablePlaybackRates();L=Number(L.toFixed(2));A=B[0];B=B[B.length-1];L<=A?L=A:L>=B?L=B:(A=Math.floor(L*100+.001)%5,L=A===0?L:Math.floor((L-A*.01)*100+.001)/100);return L};
|
|
Tj=function(A,L){L=g.pZ(A,{playerType:L});L=y$(A,L);return mh(A,L.bH(),L)};
|
|
mh=function(A,L,B){if(A.yC(B)&&(B=B.getVideoData(),!Q$(A))){A=A.TV;for(var f=g.m(A.W),K=f.next();!K.done;K=f.next())if(K=K.value,B.XA===K.XA){L+=K.UE/1E3;break}f=L;A=g.m(A.W);for(K=A.next();!K.done;K=A.next()){K=K.value;if(B.XA===K.XA)break;var V=K.UE/1E3;if(V<L)f+=K.durationMs/1E3+V-K.NQ/1E3;else break}return f}return L};
|
|
wx6=function(A,L){var B=A.e$.VN;if(B)return Tu(B.getPlayerState());if(A.getVideoData().enableServerStitchedDai&&L===2){var f,K,V;return(A.L.Qf().N.Iv(IgS)?(V=(f=A.e$.N)==null?void 0:f.isAd())!=null&&V:(K=A.QG)==null?0:vpe(K,A.getCurrentTime()))?A.FZ:-1}return L!==2||A.yC()?A.FZ:A.Hr};
|
|
zeL=function(A){CZ(A);A.setLoopVideo(!1);A.setLoopRange(null);A.rT.publish("legacyadtrackingpingreset");A.L7={};A.mY=[];il1(A.Rv);if(A.QG){var L=A.QG,B=A.kP();B.getPlayerType();AZ(L,!1);eBw(L);np7(L);L.playback=B}L=A.TV;A=A.kP();A.getPlayerType()!==1&&fZ(L,"invalidParentVideoPlayerType");Sh(L,!1);ksC(L);L.N=A};
|
|
Rf0=function(A,L){var B=(L?L:A.df()).cC;A.Rv.tick("ep_pr_r");if(B!=null&&(Ms0(A.playlist,B),A.UR))A.playlist.onReady(function(){Hu(A,L)})};
|
|
sp=function(A,L){A.playlist&&(g.jq(A.playlist),A.playlist=null);L&&(A.iY&&(L.fetch=0),A.playlist=new $QL(A.L,L))};
|
|
wc=function(A,L){var B=A.e4(),f=B.getPlayerType();if(f!==2||A.yC()){if(f===2&&A.yC()||f===5||f===6||f===7)if(L===-1||L===0||L===5)return;if(L===0){if(A.Jw)return;if(B.e5()&&g.wY(A.L)){A.playVideo();return}}A.FZ!==L&&(A.FZ=L,A.rT.X3("onStateChange",L))}else A.Hr!==L&&(A.Hr=L,A.rT.X3("onAdStateChange",L))};
|
|
pxC=function(A,L,B,f,K){f=f===void 0?Infinity:f;K=K===void 0?0:K;var V=A.e4();B=B||V.getPlayerType();(V=N7v(A,B,L,!0))||(V=dc(A,B,L,!0));L=A.kP();B===2&&L&&(B=V.getVideoData(),L.C3(B.clientPlaybackNonce,B.ql||"",B.breakType||0,B.EQ,B.videoId||""));A.qm(V,f,0,K)};
|
|
iF=function(A,L){return A+"_"+L.videoId+"_"+L.XA+"_"+ +L.isAutonav+ +L.Ll};
|
|
N7v=function(A,L,B,f){var K=iF(L,B),V=A.e$.T.get(K)||null;if(!V)return null;A.e$.T.remove(K);V.getVideoData().bA=!1;if(V.TL())return null;if(g.x(V.getPlayerState(),128))return V.dispose(),null;if(V===A.Yy({playerType:L}))return A.Rv.infoGel({isCacheHit:!0}),V;if((V.getVideoData().oauthToken||B.oauthToken)&&V.getVideoData().oauthToken!==B.oauthToken)return null;L===1&&(L=A.e4().getVideoData(),pr(L)&&L.isAd()&&f||CZ(A));f||A.Ok(V,!0);A.Rv.infoGel({isCacheHit:!0});return V};
|
|
yMv=function(A,L){var B;return L&&A.L.JA&&!((B=A.getVideoData())==null?0:B.backgroundable)};
|
|
jny=function(A,L){return yMv(A,L)?(A.w8?A.w8.start():A.E2(),!0):!1};
|
|
$y=function(A,L,B){L&&(L=g.pZ(A,{playerType:B}),L===A.kP()&&(L.getVideoData().N8=!0))};
|
|
XM=function(A,L,B){B=B===void 0?1:B;if(L.gX()){var f=dc(A,B,L,!1);A.cancelPlayback(4,B);A.Ok(f);f.i_();B===1&&(A.dN(1),g.MM(A.L)&&!Sg(L)?(L.dispose(),A.kP().dispose()):Z7E(A))}else L.dispose(),(L=A.Yy({playerType:B}))&&L.dispose(),fm(A.df())&&B===2&&A.jP()};
|
|
gBy=function(A,L,B,f,K){L=oQ7(L,B,f,K);(B=g.MM(A.L)&&!A.L.qp)&&!A.iY&&(L.fetch=0);sp(A,L);g.MM(A.L)&&A.Rv.tick("ep_a_pr_s");if(B&&!A.iY)B=A.df(),WS0(B,L).then(function(V){A.UR=!0;Rf0(A,V)});
|
|
else A.playlist.onReady(function(){Hu(A)});
|
|
g.MM(A.L)&&A.Rv.tick("ep_a_pr_r")};
|
|
Hu=function(A,L){var B=g.MM(A.L)&&!A.L.qp,f=B&&L?L:g.R_(A.playlist);L=B&&L?L:A.getVideoData();f&&(L.BV&&(A.L.Of||A.L.cR)||!A.zk?(L=L.N8,f=A.Ku(f,1),L&&$y(A,f)):XM(A,f,1));g.MM(A.L)&&A.Rv.tick("ep_p_l");A.UR=!1;A.rT.Wo("onPlaylistUpdate")};
|
|
fg6=function(A){if(A.playlist&&(g.PL(A.L)||A.L.Vj==="background_audio_playback")&&A.Ow()){var L=A.L.J("html5_player_autonav_logging");A.nextVideo(!1,L);return!0}return!1};
|
|
GqQ=function(A,L,B,f,K,V,J){L={id:L,namespace:J!=null?J:"appapi"};V==="chapter"?(L.style=UZ.CHAPTER_MARKER,L.visible=!0):isNaN(K)||(V==="ad"?L.style=UZ.AD_MARKER:(L.style=UZ.TIME_MARKER,L.color=K),L.visible=!0);A.zg([new g.WR(B*1E3,f*1E3,L)],1);return!0};
|
|
rMS=function(A,L,B,f,K,V){V=V===void 0?!0:V;var J=A.wX();if(!J)return V&&A.getVideoData().isLivePlayback&&A.mY.push({id:L,CWF:B,f2j:f}),!1;V=J-A.getCurrentTime();return GqQ(A,L,B-V,f-V,void 0,void 0,K)};
|
|
lF=function(A,L,B){L=g.pZ(A,{playerType:B}).Jf(L);B&&A.getPresentingPlayerType()!==B||Op(A,"cuerangesremoved",L)};
|
|
sn0=function(A){var L=(0,g.bc)(),B=A.getCurrentTime();A=A.getVideoData();B=1E3*(B-A.startSeconds);A.isLivePlayback&&(B=0);return L-Math.max(B,0)};
|
|
tZ=function(A,L,B){A.L.JF&&(A.CV=L,L.muted||ky(A,!1),B&&A.L.storeUserVolume&&!A.L.N8&&(B={volume:Math.floor(L.volume),muted:L.muted},B.unstorable||(g.OS("yt-player-volume",B),g.OS("yt-player-volume",B,2592E3))),H7e(A),B=g.Z2&&A.mediaElement&&!A.mediaElement.eE(),A.L.N8&&!B||A.rT.X3("onVolumeChange",{muted:L.muted,volume:L.volume,unstorable:!A.L.storeUserVolume}))};
|
|
H7e=function(A){var L=A.getVideoData();if(!L.s$){L=A.L.N8?1:QU6(L);var B=A.mediaElement;B.o6(A.CV.muted);try{B.setVolume(A.CV.volume*L/100)}catch(f){g.CE(new g.iL("b183742307","multiplier: "+L+", volume: "+A.CV.volume))}}};
|
|
ky=function(A,L){L!==A.rA&&(A.rA=L,A.rT.Wo("onMutedAutoplayChange",L))};
|
|
hj=function(A){return A.rA&&A.getVideoData().mutedAutoplay};
|
|
hf0=function(A){var L=sS(!0);return L&&(L===A.template.element||A.mediaElement&&L===A.mediaElement.Zg())?L:null};
|
|
tJv=function(A,L){var B,f=(B=window.screen)==null?void 0:B.orientation;if(A.L.X&&f&&f.lock&&(!g.Z2||!b7C))if(L){L=f.type.indexOf("portrait")===0;B=A.template.getVideoAspectRatio();var K=L;B<1?K=!0:B>1&&(K=!1);A.oF&&K===L||(f=f.lock(K?"portrait":"landscape"),f!=null&&f.catch(function(){}),A.oF=!0)}else A.oF&&(A.oF=!1,f.unlock())};
|
|
Op=function(A,L,B){A.rT.publish(L,B);var f=g.wY(A.L)||g.xi(A.L)||g.cH(A.L);if(B&&f){switch(L){case "cuerangemarkersupdated":var K="onCueRangeMarkersUpdated";break;case "cuerangesadded":K="onCueRangesAdded";break;case "cuerangesremoved":K="onCueRangesRemoved"}K&&A.rT.Kr(K,B.map(function(V){return{getId:function(){return this.id},
|
|
end:V.end,id:V.getId(),namespace:V.namespace==="ad"?"ad":"",start:V.start,style:V.style,visible:V.visible,markerPositionMs:V.markerPositionMs}}))}};
|
|
Ep=function(A,L,B,f,K,V){B=B===void 0?!0:B;var J=g.pZ(A,{playerType:K});if((J.getPlayerType()!==2||A.yC(J))&&!g.MG(J.getVideoData())){var R=A.e$.VN;R?R.seekTo(L,{aN:!B,OR:f,zZ:"application",seekSource:V}):(J&&J===A.kP()&&A.Jw&&!Fyk(A,L)&&A.setLoopRange(null),A.seekTo(L,B,f,K,V,"_request"))}};
|
|
kqQ=function(A,L,B,f){B&&(A.UN(),IH(A));B=A.e4();B.lj(L);var K=A.getVideoData(),V={};V.video_id=K.videoId;V.adformat=K.adFormat;K.isLivePlayback||(V.start=B.getCurrentTime(),V.resume="1");K.isLivePlayback&&ta(K)&&g.dY(A.L)&&(V.live_utc_start=B.wX(),V.resume="1");K.qp&&(V.vvt=K.qp);K.T&&(V.vss_credentials_token=K.T,V.vss_credentials_token_type=K.Zl);K.oauthToken&&(V.oauth_token=K.oauthToken);V.autoplay=1;V.reload_count=K.Cr+1;V.reload_reason=L;K.Xp&&(V.unplugged_partner_opt_out=K.Xp);K.a8&&(V.ypc_is_premiere_trailer=
|
|
K.a8);K.playerParams&&(V.player_params=K.playerParams);K.Wn&&(V.itct=K.Wn);A.loadVideoByPlayerVars(V,void 0,!0,void 0,void 0,f);L==="signature"&&A.QG&&JM7(A)};
|
|
T78=function(A,L){A.df().autonavState=L;g.OS("yt-player-autonavstate",L);A.rT.publish("autonavchange",L)};
|
|
lg8=function(A){var L=A.getVideoData().s$,B=A.L.Ox,f=A.isInline()&&!A.getVideoData().jm,K=A.mediaElement;L||B||f?K.aj():(K.Bb(),tZ(A,A.CV))};
|
|
CZ=function(A){(A=HB(A.SI()))&&A.created&&A.destroy()};
|
|
Q$=function(A){return A.getVideoData().enableServerStitchedDai&&!!A.QG};
|
|
mkk=function(A,L){L.bounds=A.getBoundingClientRect();for(var B=g.m(["display","opacity","visibility","zIndex"]),f=B.next();!f.done;f=B.next())f=f.value,L[f]=RR(A,f);L.hidden=!!A.hidden};
|
|
QeC=function(A){var L=A.webPlayerContextConfig.trustedJsUrl;return L?mc(L).toString():A.webPlayerContextConfig.jsUrl};
|
|
Qnk=function(A,L){var B=A.Yy({playerType:1});if(B){if(B.getVideoData().clientPlaybackNonce===L)return B;if((A=A.MP.N)&&A.getVideoData().clientPlaybackNonce===L)return A}return null};
|
|
x7w=function(A){o4(A,function(){var L=this;return function f(){var K,V,J,R;return wI(f,function(Z){switch(Z.N){case 1:return g.RO(Z,2),L.Rv.tick("wasm_s"),K=jf(L.eD)?function(N){return A2(IK7(L.eD),function(F){return F.AFn(N)})}:void 0,g.S5(Z,4),V=iWv(L.webPlayerContextConfig.wasmModuleUrl,K,L.JM.bind(L)),J=yK,Kf(Z,BZ(V),6);
|
|
case 6:R=J(Z.W);L.Rv.tick(R.N?"wasm_fa":"wasm_fw");fN7(L.L,R);g.ZR(Z,2);break;case 4:g.NX(Z),L.Rv.tick("wasm_ferr");case 2:g.F9(Z),g.DR(Z,0)}})}()})};
|
|
CU7=function(A){return A.name==="TypeError"&&A.stack.includes("/s/player/")&&qs()<=105};
|
|
i70=function(A){return A.isTimeout?"NO_BID":"ERR_BID"};
|
|
$k8=function(){var A=null;Skw().then(function(L){return A=L},function(L){return A=i70(L)});
|
|
return A};
|
|
Xxw=function(){var A=YA(1E3,"NO_BID");return g.OE(wIS([Skw(),A]).c9(i70),function(){A.cancel()})};
|
|
cu=function(A){return A.LD?g.v9().Iv(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
|
|
Mz=function(A){this.player=A;this.V=this.N=1};
|
|
cMS=function(A,L,B,f,K,V){L.client||(L.client={});A.player.K().J("h5_remove_url_for_get_ad_break")||(L.client.originalUrl=B);var J=Fa(B),R=g.tW(B)?!1:!0;(J||R)&&typeof Intl!=="undefined"&&(L.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);R=g.tW(B)?!1:!0;if(J||R||f!==""){var Z={};B=J_(pg(f)).split("&");var N=new Map;B.forEach(function(F){F=F.split("=");F.length>1&&N.set(F[0].toString(),decodeURIComponent(F[1].toString()))});
|
|
N.has("bid")&&(Z.bid=N.get("bid"));Z.params=[];O7S.forEach(function(F){N.has(F)&&(F={key:F,value:N.get(F)},Z.params.push(F))});
|
|
EB0(A,Z);L.adSignalsInfo=Z}L.client.unpluggedAppInfo||(L.client.unpluggedAppInfo={});L.client.unpluggedAppInfo.enableFilterMode=!1;B=K.N.cosver;B!=null&&B!=="cosver"&&(L.client.osVersion=B);B=K.N.cplatform;B!=null&&B!=="cplatform"&&B!==""&&(L.client.platform=B);B=K.N.cmodel;B!=null&&B!=="cmodel"&&(L.client.deviceModel=B);B=K.N.cplayer;B!=null&&B!=="cplayer"&&(L.client.playerType=B);B=K.N.cbrand;B!=null&&B!=="cbrand"&&(L.client.deviceMake=B);L.user||(L.user={});L.user.lockedSafetyMode=!1;g.PL(K)&&
|
|
s67(L,V,A.player.getPlayerState(1));if(A=K.livingRoomPoTokenId)L.client.tvAppInfo=Object.assign({},L.client.tvAppInfo,{livingRoomPoTokenId:A})};
|
|
Uky=function(A,L){var B=!1;if(L==="")return B;L.split(",").forEach(function(f){var K={},V={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},J="ACTIVE";f[0]==="!"&&(f=f.substring(1),J="INACTIVE");f=f.split("-");f.length<3||(f[0]in MJC&&(V.clientName=MJC[f[0]]),f[1]in Yo0&&(V.platform=Yo0[f[1]]),V.applicationState=J,V.clientVersion=f.length>2?f[2]:"",K.remoteClient=V,A.remoteContexts?A.remoteContexts.push(K):A.remoteContexts=[K],B=!0)});
|
|
return B};
|
|
vB7=function(A){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Wye))return!1;A=A.split(RegExp("[:&]"));var L=Wye.FLAG_AUTO_CAPTIONS_DEFAULT_ON,B="f"+(1+Math.floor(L/31)).toString();L=1<<Math.floor(L%31);for(var f=0,K=A.length;f<K;f++){var V=A[f].split("=");if(V[0]===B&&parseInt("0x"+V[1],16)&L)return!0}return!1};
|
|
EB0=function(A,L){A=A.player.K();if(V3(A)||Ro(A)){A=g.A_("INNERTUBE_CONTEXT");var B,f;(A==null?0:(B=A.adSignalsInfo)==null?0:B.advertisingId)&&typeof(A==null?void 0:(f=A.adSignalsInfo)==null?void 0:f.limitAdTracking)!=="undefined"&&(L.advertisingId=A.adSignalsInfo.advertisingId,L.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",L.limitAdTracking=A.adSignalsInfo.limitAdTracking)}};
|
|
ag7=function(A,L,B,f,K){var V=B.DRIFT_FROM_HEAD_MS&&!Number.isNaN(B.DRIFT_FROM_HEAD_MS)?Math.trunc(B.DRIFT_FROM_HEAD_MS):0,J=qo7.exec(L);J=J!=null&&J.length>=2?J[1]:"";var R=PU1.test(L),Z=xkw.exec(L);Z=Z!=null&&Z.length>=2?Z[1]:"";var N=ef1.exec(L);N=N!=null&&N.length>=2&&!Number.isNaN(Number(N[1]))?Number(N[1]):1;var F=nB0.exec(L);F=F!=null&&F.length>=2?F[1]:"0";var D=u9(A.player.K().vI),I=A.player.getVideoData(1),d=g.AV(I.Wn,!0),w="BISCOTTI_ID"in B?B.BISCOTTI_ID:"";cMS(A,d,L,w.toString(),A.player.K(),
|
|
I);I={splay:!1,lactMilliseconds:B.LACT.toString(),playerHeightPixels:Math.trunc(B.P_H),playerWidthPixels:Math.trunc(B.P_W),vis:Math.trunc(B.VIS),signatureTimestamp:20424,autonavState:cu(A.player.K())};f&&(f={},Uky(f,B.YT_REMOTE)&&(I.mdxContext=f));if(f=zf1.includes(D)?void 0:g.Yz("PREF")){for(var r=f.split(RegExp("[:&]")),h=0,Q=r.length;h<Q;h++){var l=r[h].split("=");if((l[0].toUpperCase()==="SML"||l[0].toUpperCase()==="GSML")&&l.length>1&&l[1].toUpperCase()==="TRUE"){d.user.lockedSafetyMode=!0;break}}I.autoCaptionsDefaultOn=
|
|
vB7(f)}L=uDL.exec(L);(L=L!=null&&L.length>=2?L[1]:"")&&Z&&(d.user.credentialTransferTokens=[{token:L,scope:"VIDEO"}]);L={contentPlaybackContext:I};J={adBlock:Math.trunc(B.AD_BLOCK),params:J,breakIndex:N,breakPositionMs:F,clientPlaybackNonce:B.CPN,topLevelDomain:D,isProxyAdTagRequest:R,context:d,adSignalsInfoString:J_(pg(w.toString())),overridePlaybackContext:L};K!==void 0&&(J.cueProcessedMs=Math.round(K).toString());Z&&(J.videoId=Z);B.LIVE_TARGETING_CONTEXT&&(J.liveTargetingParams=B.LIVE_TARGETING_CONTEXT);
|
|
B.AD_BREAK_LENGTH&&(J.breakLengthMs=Math.trunc(B.AD_BREAK_LENGTH*1E3).toString());V&&(J.driftFromHeadMs=V.toString());J.currentMediaTimeMs=Math.round(A.player.getCurrentTime(1)*1E3);(A=A.player.getGetAdBreakContext())&&(J.getAdBreakContext=A);return J};
|
|
AHv=function(){Mz.apply(this,arguments)};
|
|
L3L=function(A,L,B,f,K){var V=B.Kn;var J=B.rh;var R=A.player.K().BI,Z=0;B.cueProcessedMs&&J&&!V&&(B=J.end-J.start,B>0&&(Z=Math.floor(B/1E3)));var N={AD_BLOCK:K,AD_BREAK_LENGTH:V?V.Dj:Z,AUTONAV_STATE:cu(A.player.K()),CA_TYPE:"image",CPN:A.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:A.player.pX()*1E3,LACT:rT(),LIVE_INDEX:V?A.V++:1,LIVE_TARGETING_CONTEXT:V&&V.context?V.context:"",MIDROLL_POS:J?Math.round(J.start/1E3):0,MIDROLL_POS_MS:J?Math.round(J.start):0,VIS:A.player.getVisibilityState(),
|
|
P_H:A.player.Pn().yN().height,P_W:A.player.Pn().yN().width,YT_REMOTE:R?R.join(","):""},F=wW(IM);Object.keys(F).forEach(function(D){F[D]!=null&&(N[D.toUpperCase()]=F[D].toString())});
|
|
f!==""&&(N.BISCOTTI_ID=f);f={};dW(L)&&(f.sts="20424",(A=A.player.K().forcedExperiments)&&(f.forced_experiments=A));return Ns(g.iN(L,N),f)};
|
|
oJE=function(A,L){var B=A.player.K(),f,K=(f=A.player.getVideoData(1))==null?void 0:f.oauthToken;return g.po(B,K).then(function(V){if(V&&Dp()){var J=xn();eg(J,V)}return g.MD(A.player.dh(J),L,"/youtubei/v1/player/ad_break").then(function(R){return R})})};
|
|
BBw=function(A){this.j4=A};
|
|
fe8=function(A){this.S=A};
|
|
K3E=function(A){this.j4=A};
|
|
JHy=function(A){g.Y.call(this);this.N=A;this.m8=VIe(this)};
|
|
VIe=function(A){var L=new NTw(A.N.QK);g.W(A,L);A=[new BBw(A.N.j4),new fe8(A.N.S),new K3E(A.N.j4),new pO(A.N.y4,A.N.Fe),new j8,new r5(A.N.kf,A.N.kX,A.N.j4),new yS,new w5(A.N.kX)];A=g.m(A);for(var B=A.next();!B.done;B=A.next())FeL(L,B.value);A=g.m(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(B=A.next();!B.done;B=A.next())g5(L,B.value,function(){});
|
|
return L};
|
|
S8C=function(A,L){this.kf=A;this.FD=L};
|
|
Yy=function(A){var L=A.hF,B=A.FD;A=A.Le;var f={cUL:new S8C(L.get(),B),FD:B};return{fY:new v_(B,A,L),context:f}};
|
|
Up=function(A,L,B,f,K){g.Y.call(this);this.W=L;this.Mp=B;this.hF=f;this.hf=K;this.listeners=[];var V=new Qz(this);g.W(this,V);V.Y(A,"internalAbandon",this.x8j);this.addOnDisposeCallback(function(){g.$_(V)})};
|
|
Wu=function(A){this.S=A;this.adVideoId=this.N=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.W=this.V=!1;this.adFormat=null;this.U="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
|
|
R6L=function(A){A.contentCpn=null;A.adCpn=null;A.videoId=null;A.adVideoId=null;A.adFormat=null;A.U="AD_PLACEMENT_KIND_UNKNOWN";A.actionType="unknown_type";A.V=!1;A.W=!1};
|
|
ZBe=function(A,L){A=g.m(L);for(L=A.next();!L.done;L=A.next())if((L=L.value.renderer)&&(L.instreamVideoAdRenderer||L.linearAdSequenceRenderer||L.sandwichedLinearAdRenderer||L.instreamSurveyAdRenderer)){mF("ad_i");g.Qm({isMonetized:!0});break}};
|
|
NBk=function(A){var L;(L=A.S.getVideoData(1))!=null&&L.G&&(A.W=!1,L={},A.N&&A.videoId&&(L.cttAuthInfo={token:A.N,videoId:A.videoId}),C0("video_to_ad",L))};
|
|
Pi=function(A){A.W=!1;var L={};A.N&&A.videoId&&(L.cttAuthInfo={token:A.N,videoId:A.videoId});C0("ad_to_video",L);F38(A)};
|
|
F38=function(A){if(A.V)if(A.U==="AD_PLACEMENT_KIND_START"&&A.actionType==="video_to_ad")kx("video_to_ad");else{var L={adBreakType:QV(A.U),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:A.videoStreamType};A.actionType==="ad_to_video"?(A.contentCpn&&(L.targetCpn=A.contentCpn),A.videoId&&(L.targetVideoId=A.videoId)):(A.adCpn&&(L.targetCpn=A.adCpn),A.adVideoId&&(L.targetVideoId=A.adVideoId));A.adFormat&&(L.adType=A.adFormat);A.contentCpn&&
|
|
(L.clientPlaybackNonce=A.contentCpn);A.videoId&&(L.videoId=A.videoId);A.adCpn&&(L.adClientPlaybackNonce=A.adCpn);A.adVideoId&&(L.adVideoId=A.adVideoId);g.Qm(L,A.actionType);A.S.K().experiments.GL("html5_ads_csi_qoes")&&(L=A.S.G_(A.actionType==="ad_to_video"?1:2),L=(0,g.bc)()-1E3*L,$x("qoes",L,A.actionType))}};
|
|
vu=function(A){g.Y.call(this);this.S=A;this.N=new Map;this.W=new Qz(this);g.W(this,this.W);this.W.Y(this.S,g.qR("ad"),this.onCueRangeEnter,this);this.W.Y(this.S,g.PR("ad"),this.onCueRangeExit,this)};
|
|
D6L=function(A,L,B,f,K,V,J){g.WR.call(this,L,B,{id:A,namespace:"ad",priority:K,visible:f,associatedClipId:V,markerPositionMs:J})};
|
|
qz=function(A){this.S=A};
|
|
d6y=function(A,L){A.S.cueVideoByPlayerVars(L,2)};
|
|
Pu=function(A){this.S=A};
|
|
eh=function(A){this.S=A};
|
|
XW=function(A,L){return A.S.K().J(L)};
|
|
IeD=function(A){return A.S.K().J("substitute_ad_cpn_macro_in_ssdai")};
|
|
SM=function(A){var L,B,f;return((L=A.S.getVideoData(1).getPlayerResponse())==null?void 0:(B=L.playerConfig)==null?void 0:(f=B.daiConfig)==null?void 0:f.enableServerStitchedDai)||!1};
|
|
xNw=function(A){return A.S.K().J("html5_enable_vod_slar_with_notify_pacf")};
|
|
wn7=function(A){return A.S.K().J("html5_recognize_predict_start_cue_point")};
|
|
vy=function(A){return A.S.K().experiments.GL("enable_desktop_player_underlay")};
|
|
pnL=function(A){return A.S.K().experiments.GL("html5_load_empty_player_in_media_break_sub_lra")};
|
|
OJ=function(A,L){return A.S.K().J("html5_cue_video_for_preroll")&&(L==null?void 0:L.kind)==="AD_PLACEMENT_KIND_START"?!1:A.S.K().experiments.GL("html5_load_ads_instead_of_cue")};
|
|
EJ=function(A){return A.S.K().experiments.GL("html5_preload_ads")};
|
|
yHy=function(A){return A.S.K().experiments.GL("should_ignore_cuepoints_during_lifa_preroll")};
|
|
EM=function(A){return A.S.K().experiments.GL("enable_ads_control_flow_deterministic_id_generation")};
|
|
jiE=function(A){return A.S.K().experiments.GL("enable_desktop_discovery_video_abandon_pings")||V3(A.S.K())};
|
|
gJS=function(A){return A.S.K().experiments.GL("enable_progres_commands_lr_feeds")};
|
|
GfE=function(A){return A.S.K().experiments.GL("enable_progress_commands_lr_shorts")};
|
|
RU=function(A){return A.S.K().experiments.GL("html5_cuepoint_identifier_logging")};
|
|
LEy=function(A){A=A.S.getVideoData(1);return!!A&&A.J("html5_preload_first_vod_video_ad")&&!A.isDaiEnabled()&&!A.isLivePlayback};
|
|
rH1=function(A){return A.S.K().experiments.GL("html5_ssdai_enable_media_end_cue_range")};
|
|
siy=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}};
|
|
HBD=function(){g.SN.call(this);var A=this;this.N={};this.addOnDisposeCallback(function(){for(var L=g.m(Object.keys(A.N)),B=L.next();!B.done;B=L.next())delete A.N[B.value]})};
|
|
nZ=function(){if(h6L===null){h6L=new HBD;$$(Kc).W="b";var A=$$(Kc),L=uH(A)=="h"||uH(A)=="b",B=!(gF(),!1);L&&B&&(A.D=!0,A.T=new Xgk)}return h6L};
|
|
bBL=function(A,L,B){A.N[L]=B};
|
|
tIw=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 "swipe":case "skip":case "unmuted_skip":return"skip";
|
|
case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
|
|
zj=function(A,L,B){this.Mp=A;this.S=L;this.FD=B;this.W=new Set;this.N=new Map;nZ().subscribe("adactiveviewmeasurable",this.qN,this);nZ().subscribe("adfullyviewableaudiblehalfdurationimpression",this.HQ,this);nZ().subscribe("adviewableimpression",this.IM,this);nZ().subscribe("adaudioaudible",this.NN,this);nZ().subscribe("adaudiomeasurable",this.WQ,this)};
|
|
aH=function(A,L,B){var f=B.nt,K=B.Ag,V=B.listener;B=B.Lb;if(A.N.has(L))Dh("Unexpected registration of layout in LidarApi");else{if(B){if(A.W.has(B))return;A.W.add(B)}A.N.set(L,V);vk(gF().Zx,"fmd",1);Pqk($$(Kc),f);bBL(nZ(),L,{EF:function(){if(!K)return{};var J=A.S.getPresentingPlayerType(!0),R;return(R=A.S.getVideoData(J))!=null&&R.isAd()?{currentTime:A.Mp.get().getCurrentTimeSec(J,!1,void 0),duration:K,isPlaying:uF(A.Mp.get(),J).isPlaying(),isVpaid:!1,isYouTube:!0,volume:A.Mp.get().isMuted()?0:A.Mp.get().getVolume()/
|
|
100}:{}}})}};
|
|
A3=function(A,L){A.N.has(L)?(A.N.delete(L),delete nZ().N[L]):Dh("Unexpected unregistration of layout in LidarApi")};
|
|
kfD=function(A,L){if(A.S.isLifaAdPlaying()){var B=A.S.O7(!0,!0);A.dM(L,B.width*.5*1.1,B.height*.25*1.1,B.width*.5*.9,B.height*.5*.9)}};
|
|
m6D=function(A,L){var B={};TBL(A,B,L);lev(B);B.LACT=LY(function(){return rT().toString()});
|
|
B.VIS=LY(function(){return A.getVisibilityState().toString()});
|
|
B.SDKV="h.3.0";B.VOL=LY(function(){return A.isMuted()?"0":Math.round(A.getVolume()).toString()});
|
|
B.VED="";return B};
|
|
Qi7=function(A,L){var B={};if(L||!A||!A.kind)return B;if(A.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||A.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!A.adTimeOffset||!A.adTimeOffset.offsetStartMilliseconds)return g.mL(Error("malformed AdPlacementConfig")),B;B.MIDROLL_POS=LY(P4(Math.round(na(A.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else B.MIDROLL_POS=LY(P4("0"));return B};
|
|
LY=function(A){return{toString:function(){return A()}}};
|
|
CKE=function(A,L,B){function f(R,Z){(Z=B[Z])&&(V[R]=Z)}
|
|
function K(R,Z){(Z=B[Z])&&(V[R]=J(Z))}
|
|
if(!B||g.mi(B))return A;var V=Object.assign({},A),J=L?encodeURIComponent:function(R){return R};
|
|
K("DV_VIEWABILITY","doubleVerifyViewability");K("IAS_VIEWABILITY","integralAdsViewability");K("MOAT_INIT","moatInit");K("MOAT_VIEWABILITY","moatViewability");f("GOOGLE_VIEWABILITY","googleViewability");f("VIEWABILITY","viewability");return V};
|
|
TBL=function(A,L,B){L.CPN=LY(function(){var f;(f=A.getVideoData(1))?f=f.clientPlaybackNonce:(g.CE(Error("Video data is null.")),f=null);return f});
|
|
L.AD_MT=LY(function(){if(B!=null)var f=B;else if(A.K().J("enable_h5_shorts_ad_fill_ad_mt_macro")||A.K().J("enable_desktop_discovery_pings_ad_mt_macro")||V3(A.K())){var K=A.getPresentingPlayerType(!0),V;f=((V=A.getVideoData(K))==null?0:V.isAd())?A.getCurrentTime(K,!1):0}else f=A.getCurrentTime(2,!1);return iBv(f)});
|
|
L.MT=LY(function(){return iBv(A.getCurrentTime(1,!1))});
|
|
L.P_H=LY(function(){return A.Pn().yN().height.toString()});
|
|
L.P_W=LY(function(){return A.Pn().yN().width.toString()});
|
|
L.PV_H=LY(function(){return A.Pn().getVideoContentRect().height.toString()});
|
|
L.PV_W=LY(function(){return A.Pn().getVideoContentRect().width.toString()})};
|
|
iBv=function(A){return Math.round(Math.max(0,A*1E3)).toString()};
|
|
lev=function(A){A.CONN=LY(P4("0"));A.WT=LY(function(){return Date.now().toString()})};
|
|
$6k=function(){};
|
|
Xn0=function(A,L,B,f,K){var V,J,R,Z,N,F,D,I,d,w,r,h,Q;g.c(function(l){switch(l.N){case 1:V=!!L.scrubReferrer;J=g.iN(L.baseUrl,CKE(B,V,f));R={};if(!L.headers){l.Ux(2);break}Z=A.U();if(!Z.N){N=Z.getValue();l.Ux(3);break}return g.X(l,Z.N,4);case 4:N=l.W;case 3:F=N;D=g.m(L.headers);for(I=D.next();!I.done;I=D.next())switch(d=I.value,d.headerType){case "VISITOR_ID":g.A_("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=g.A_("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.A_("EOM_VISITOR_DATA")&&(R["X-Goog-EOM-Visitor-Id"]=
|
|
g.A_("EOM_VISITOR_DATA"));break;case "USER_AUTH":F&&(R.Authorization="Bearer "+F);break;case "PLUS_PAGE_ID":(w=A.D())&&(R["X-Goog-PageId"]=w);break;case "AUTH_USER":r=A.N();!F&&r&&(R["X-Goog-AuthUser"]=r);break;case "DATASYNC_ID":if(h=void 0,(h=A.V())==null?0:h.GL("enable_datasync_id_header_in_web_vss_pings"))Q=A.W(),Fa(J)&&g.A_("LOGGED_IN")&&Q&&(R["X-YouTube-DataSync-Id"]=Q)}"X-Goog-EOM-Visitor-Id"in R&&"X-Goog-Visitor-Id"in R&&delete R["X-Goog-Visitor-Id"];case 2:g.MJ(J,void 0,V,Object.keys(R).length!==
|
|
0?R:void 0,"",!0,K),g.VK(l)}})};
|
|
OBQ=function(A,L,B,f,K){this.U=A;this.D=L;this.N=B;this.W=f;this.V=K};
|
|
EJQ=function(A,L){this.N=A;this.FD=L};
|
|
oY=function(A,L,B,f,K,V){var J=J===void 0?new OBQ(function(){var R=A.K(),Z=A.getVideoData(1);return g.po(R,Z?g.Aj(Z):"")},function(){return A.K().pageId},function(){return A.K().ZM},function(){var R;
|
|
return(R=A.K().datasyncId)!=null?R:""},function(){return A.K().experiments}):J;
|
|
this.S=A;this.W=L;this.Fr=B;this.hF=f;this.fY=K;this.FD=V;this.U=J;this.Bm=null;this.N=new Map;this.V=new EJQ(J,this.FD)};
|
|
MIL=function(A,L,B,f,K){var V=yx(A.W.get(),B);V?(B=IE(A,cHe(V),V,void 0,void 0,f),L.hasOwnProperty("baseUrl")?A.U.send(L,B):A.V.send(L,B,{},K)):Dh("Trying to ping from an unknown layout",void 0,void 0,{layoutId:B})};
|
|
gf6=function(A,L,B,f,K,V){f=f===void 0?[]:f;var J=yx(A.W.get(),L);if(J){var R=A.Fr.get().QF(L,B),Z=IE(A,cHe(J),J,K,V);f.forEach(function(N,F){N.baseUrl&&(A.V.send(N.baseUrl,Z,R,N.attributionSrcMode),N.serializedAdPingMetadata&&A.fY.N("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,J,new sv7(N,F),void 0,void 0,J.adLayoutLoggingData))})}else Dh("Trying to track from an unknown layout.",void 0,void 0,{layoutId:L,
|
|
trackingType:B})};
|
|
S9=function(A,L){A.S.sendVideoStatsEngageEvent(L,void 0,2)};
|
|
zu=function(A,L){g.pE("adsClientStateChange",L)};
|
|
Y87=function(A,L){A.N.has(L.qs())?Dh("Trying to register an existing AdErrorInfoSupplier."):A.N.set(L.qs(),L)};
|
|
U60=function(A,L){A.N.delete(L.qs())||Dh("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
|
|
Ay=function(A,L,B){typeof B==="string"?A.S.getVideoData(1).SV(L,B):A.S.getVideoData(1).Hn(L,B)};
|
|
cHe=function(A){var L=PF(A.clientMetadata,"metadata_type_ad_placement_config");A=PF(A.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:L,m6:A}};
|
|
IE=function(A,L,B,f,K,V){var J=B?W36(A):{},R=B?vJ0(A,B.layoutId):{},Z=q80(A),N,F=K!=null?K:(N=BV(A.hF.get(),2))==null?void 0:N.clientPlaybackNonce;K={};A=Object.assign({},m6D(A.S,f),Qi7(L.adPlacementConfig,(B==null?void 0:B.renderingContent)!==void 0),R,J,Z,(K.FINAL=LY(function(){return"1"}),K.AD_CPN=LY(function(){return F||""}),K));
|
|
(B==null?void 0:B.renderingContent)!==void 0||(A.SLOT_POS=LY(function(){return(L.m6||0).toString()}));
|
|
B={};V=Object.assign({},A,V);A=g.m(Object.values(PK7));for(f=A.next();!f.done;f=A.next())f=f.value,J=V[f],J!=null&&J.toString()!=null&&(B[f]=J.toString());return B};
|
|
W36=function(A){var L={},B,f=(B=A.Bm)==null?void 0:B.wQ/1E3;f!=null&&(L.SURVEY_ELAPSED_MS=LY(function(){return Math.round(f*1E3).toString()}));
|
|
L.SURVEY_LOCAL_TIME_EPOCH_S=LY(function(){return Math.round(Date.now()/1E3).toString()});
|
|
return L};
|
|
var VE7=function(A,L){return jE[S[2]](this,32,A,L)};
|
|
vJ0=function(A,L){A=A.N.get(L);if(!A)return{};A=A.De();if(!A)return{};L={};return L.YT_ERROR_CODE=A.Av.toString(),L.ERRORCODE=A.zm.toString(),L.ERROR_MSG=A.errorMessage,L};
|
|
q80=function(A){var L={},B=A.S.getVideoData(1);L.ASR=LY(function(){var f;return(f=B==null?void 0:B.aQ)!=null?f:null});
|
|
L.EI=LY(function(){var f;return(f=B==null?void 0:B.eventId)!=null?f:null});
|
|
return L};
|
|
B1=function(A,L,B){g.Y.call(this);this.S=A;this.kH=L;this.FD=B;this.listeners=[];this.Sj=null;this.pI=new Map;L=new g.dN(this);g.W(this,L);L.Y(A,"videodatachange",this.O8F);L.Y(A,"serverstitchedvideochange",this.jyL);this.oV=BV(this)};
|
|
BV=function(A,L){var B=A.S.getVideoData(L);return B?A.Ij(B,L||A.S.getPresentingPlayerType(!0)):null};
|
|
x6D=function(A,L,B){var f=A.Ij(L,B);A.oV=f;A.listeners.forEach(function(K){K.Y_(f)})};
|
|
fY=function(A,L){g.Y.call(this);this.S=A;this.hF=L;this.listeners=[];this.Sz=[];this.rq=function(){Dh("Called 'doUnlockPreroll' before it's initialized.")};
|
|
L=new Qz(this);var B=new g.dN(this);g.W(this,B);g.W(this,L);L.Y(A,"progresssync",this.cfr);L.Y(A,"presentingplayerstatechange",this.iep);L.Y(A,"fullscreentoggled",this.onFullscreenToggled);L.Y(A,"onVolumeChange",this.onVolumeChange);L.Y(A,"minimized",this.mF);L.Y(A,"overlayvisibilitychange",this.iH);L.Y(A,"shortsadswipe",this.gb);L.Y(A,"resize",this.Bz);B.Y(A,g.qR("appad"),this.jO)};
|
|
e6C=function(A,L){A.Sz=A.Sz.filter(function(B){return B!==L})};
|
|
KY=function(A,L,B){return A.getCurrentTimeSec(L,B)};
|
|
VY=function(A,L){var B;L=(B=A.hF.get().pI.get(L))!=null?B:null;if(L===null)return Dh("Expected ad video start time on playback timeline"),0;A=A.S.getCurrentTime(2,!0);return A<L?0:A-L};
|
|
uF=function(A,L){return A.S.getPlayerStateObject(L)};
|
|
nJ1=function(A){var L=A.S.Pn().yN();A=A.S.O7(!0,!0);return L.height-(A.height+A.top)};
|
|
z6D=function(A){A.S.cueVideoByPlayerVars({videoId:"empty_video"},2)};
|
|
uG8=function(A,L){var B=A.S.K();g.qM(B)||B.controlsType!=="3"||A.S.Pn().Yc(L)};
|
|
J3=function(A,L){g.R1(A.S.getRootNode(),L)};
|
|
Sp=function(A,L){g.NH(A.S.getRootNode(),L)};
|
|
aek=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)});
|
|
g.W(this,J);var R=Ti(function(){return new c_(J)});
|
|
g.W(this,R);var Z=Ti(function(){return new w3});
|
|
g.W(this,Z);f=Ti(function(){return new d3(A)});
|
|
g.W(this,f);var N=Ti(function(){return new MF(J,R,V.FD)});
|
|
g.W(this,N);var F=Ti(function(){return new qF});
|
|
g.W(this,F);this.gi=Ti(function(){return new mO(K)});
|
|
g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)});
|
|
g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)});
|
|
g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)});
|
|
g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)});
|
|
g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)});
|
|
g.W(this,this.FD);var D=Ti(function(){return new Ly(V.FD)});
|
|
g.W(this,D);var I=Ti(function(){return new fS(J,N,R,V.FD,D,null,null,null,null)});
|
|
g.W(this,I);this.hF=Ti(function(){return new B1(L,F,V.FD)});
|
|
g.W(this,this.hF);var d=Yy({hF:this.hF,FD:this.FD,Le:D}),w=d.context;this.fY=d.fY;this.Mp=Ti(function(){return new fY(L,V.hF)});
|
|
g.W(this,this.Mp);this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)});
|
|
g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)});
|
|
g.W(this,this.j4);this.VG=new Dy(f,I,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var r=new Up(L,this.VG,this.Mp,this.hF);this.jo=Ti(function(){return r});
|
|
this.lG=r;this.h_=new IU(f,N,this.FA,this.jo,w);g.W(this,this.h_);this.tf=new Tl(this.FD,f,N,I,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.TH={e9:new Map,N2:new Map,UI:new Map,xD:new Map,eM:new Map};this.listeners=[];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:null,Fe:{Fj:function(){}},
|
|
y4:Z.get(),kf:this.hF.get()}};
|
|
RY=function(A,L){g.Y.call(this);this.mJ=L;this.mJ.get().addListener(this)};
|
|
Z6=function(A){this.N=A};
|
|
Ac6=function(A,L){if(!A)return{To:[],adSlots:[],xW:!0,ssdaiAdsConfig:void 0};A.trackingParams&&wS(A.trackingParams);if(A.adThrottled)return{To:[],adSlots:[],xW:!0,ssdaiAdsConfig:void 0};var B,f=(B=A.adSlots)!=null?B:[],K;B=(K=A.playerAds)!=null?K:[];if(!(B&&B.length||f.length))return{To:[],adSlots:f,xW:!1,ssdaiAdsConfig:void 0};K=B.map(function(J){return J.adPlacementRenderer}).filter(function(J){return!(!J||!J.renderer)});
|
|
if(!K.length&&!f.length)return{To:[],adSlots:f,xW:!1,ssdaiAdsConfig:void 0};if(L.end>0){var V=L.end.toString();K.forEach(function(J){(J=J.config&&J.config.adPlacementConfig)&&J.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&J.adTimeOffset&&J.adTimeOffset.offsetEndMilliseconds==="-1"&&J.adTimeOffset.offsetEndMilliseconds!==V&&(J.adTimeOffset.offsetEndMilliseconds=V)});
|
|
f.map(function(J){return g.y(J,Gl)}).forEach(function(J){var R;
|
|
(J=J==null?void 0:(R=J.slotEntryTrigger)==null?void 0:R.mediaTimeRangeTrigger)&&J.offsetEndMilliseconds==="-1"&&(J.offsetEndMilliseconds=V)})}return{To:K,
|
|
adSlots:f,xW:!1,ssdaiAdsConfig:A.ssdaiAdsConfig}};
|
|
Ne=function(A){g.Y.call(this);this.S=A;this.listeners=[];this.N=new Qz(this);g.W(this,this.N);this.N.Y(this.S,"aduxclicked",this.onAdUxClicked);this.N.Y(this.S,"aduxmouseover",this.Ol);this.N.Y(this.S,"aduxmouseout",this.oT);this.N.Y(this.S,"muteadaccepted",this.GVp)};
|
|
LA6=function(A,L,B){L=g.mn(L,function(f){return new rKy(f,B,f.id)});
|
|
A.S.Kr("onAdUxUpdate",L)};
|
|
Fl=function(A,L){A=g.m(A.listeners);for(var B=A.next();!B.done;B=A.next())L(B.value)};
|
|
D6=function(A,L){this.W=A;this.V=L===void 0?!1:L;this.N={}};
|
|
oOL=function(A,L){var B=A.startSecs+A.Dj;B=B<=0?null:B;if(B===null)return null;switch(A.event){case "start":case "continue":case "stop":break;case "predictStart":if(L)break;return null;default:return null}L=Math.max(A.startSecs,0);return{c7:new bk(L,B),C1n:new Zc(L,B-L,A.context,A.identifier,A.event,A.N)}};
|
|
BJw=function(){this.N=[]};
|
|
YN6=function(A,L,B){var f=g.Fc(A.N,L);if(f>=0)return L;L=-f-1;return L>=A.N.length||A.N[L]>B?null:A.N[L]};
|
|
d1=function(A,L,B){g.Y.call(this);this.S=A;this.FD=L;this.j4=B;this.listeners=[];this.U=!1;this.Qy=[];this.N=null;this.D=new D6(this,wn7(L.get()));this.V=new BJw;this.W=null};
|
|
fv1=function(A,L){A.Qy.push(L);for(var B=!1,f=g.m(A.listeners),K=f.next();!K.done;K=f.next())B=K.value.Xx(L)||B;A.U=B;RU(A.FD.get())&&Ay(A.j4.get(),"onci","cpi."+L.identifier+";cpe."+L.event+";cps."+L.startSecs+";cbi."+B)};
|
|
Vu8=function(A,L){zu(A.j4.get(),{cuepointTrigger:{event:KAC(L.event),cuepointId:L.identifier,totalCueDurationMs:L.Dj*1E3,playheadTimeMs:L.N,cueStartTimeMs:L.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:A.S.getVideoData(1).clientPlaybackNonce}})};
|
|
KAC=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 kj(A,"Unexpected cuepoint event")}};
|
|
IY=function(A){this.S=A};
|
|
w1=function(A){this.S=A};
|
|
Jc8=function(A){switch(A){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:kj(A,"unknown transitionReason")}};
|
|
pY=function(){g.Y.apply(this,arguments);this.ZwL=new Map};
|
|
SmQ=function(A){this.S=A};
|
|
R$0=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)});
|
|
g.W(this,J);var R=Ti(function(){return new c_(J)});
|
|
g.W(this,R);var Z=Ti(function(){return new w3});
|
|
g.W(this,Z);var N=Ti(function(){return new d3(A)});
|
|
g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)});
|
|
g.W(this,F);var D=Ti(function(){return new qF});
|
|
g.W(this,D);this.IA=Ti(function(){return new Ne(L)});
|
|
g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)});
|
|
g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)});
|
|
g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)});
|
|
g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)});
|
|
g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)});
|
|
g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)});
|
|
g.W(this,this.FD);var I=Ti(function(){return new Z6(f)});
|
|
g.W(this,I);var d=Ti(function(){return new Ly(V.FD)});
|
|
g.W(this,d);this.E6=Ti(function(){return new IY(L)});
|
|
g.W(this,this.E6);this.mJ=Ti(function(){return new iY});
|
|
g.W(this,this.mJ);this.hF=Ti(function(){return new B1(L,D,V.FD)});
|
|
g.W(this,this.hF);var w=Yy({hF:this.hF,FD:this.FD,Le:d}),r=w.context;this.fY=w.fY;this.hf=Ti(function(){return new d1(L,V.FD,V.j4)});
|
|
g.W(this,this.hf);this.sE=Ti(function(){return new w1(L)});
|
|
g.W(this,this.sE);this.Mp=Ti(function(){return new fY(L,V.hF)});
|
|
g.W(this,this.Mp);this.MF=Ti(function(){return new pY});
|
|
g.W(this,this.MF);w=Ti(function(){return new fS(J,F,R,V.FD,d,"SLOT_TYPE_ABOVE_FEED",V.Mp,V.gh,V.zP)});
|
|
g.W(this,w);this.Az=Ti(function(){return new $G(V.FD)});
|
|
this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)});
|
|
g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)});
|
|
g.W(this,this.j4);this.z_=new F8(NF,yY,function(Q,l,C,O){return Wy(R.get(),Q,l,C,O)},N,F,R,d,this.FD,this.hF);
|
|
g.W(this,this.z_);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var h=new Up(L,this.VG,this.Mp,this.hF,this.hf);this.jo=Ti(function(){return h});
|
|
this.lG=h;this.gh=new Jn(N,F,this.jo,this.hf,this.Mp,this.FD,this.j4,this.sE);g.W(this,this.gh);this.h_=new IU(N,F,this.FA,this.jo,r);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp,V.sE)});
|
|
g.W(this,this.N4);this.VB=Ti(function(){return new AE});
|
|
g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.eT=new hn(A);g.W(this,this.eT);this.Yg=new tn(A,this.jo,r);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.xN=new T0(A,this.hF);g.W(this,this.xN);this.zP=new Qx(A,this.hf,this.Mp,this.j4,this.jo,this.gh);g.W(this,this.zP);this.qF=new l4(A);g.W(this,this.qF);this.MU=new X8(A);g.W(this,this.MU);this.rb=new mW(A);g.W(this,this.rb);this.NI=new $h(A);g.W(this,
|
|
this.NI);this.MU=new X8(A);g.W(this,this.MU);this.Wk=Ti(function(){return new jM});
|
|
g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)});
|
|
g.W(this,this.E7);this.Ph=Ti(function(){return new cvk(V.IA,V.j4,A,Z,V.Fr)});
|
|
g.W(this,this.Ph);this.dQ=Ti(function(){return new Eb(V.tf,N,J)});
|
|
g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)});
|
|
g.W(this,this.Vq);this.nQ=Ti(function(){return new Jy(A,V.MU,V.qF,V.hF,V.sE,V.Mp,V.MF,V.j4,D,V.hf,V.Fr,V.Az,V.h$,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,Z,r)});
|
|
g.W(this,this.nQ);this.yk=Ti(function(){return new L18(V.Mp,V.j4,V.gi,V.FD,V.Fr,V.hF)});
|
|
g.W(this,this.yk);this.XC=Ti(function(){return new FFC(V.IA,V.Mp,V.j4,Z,V.Fr,V.eT,V.NI,V.gi,V.FD,B)});
|
|
g.W(this,this.XC);this.sJ=Ti(function(){return new MBD(V.IA,V.j4,Z)});
|
|
g.W(this,this.sJ);this.hR=new RY(A,this.mJ,J);g.W(this,this.hR);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_ABOVE_FEED",this.VB],["SLOT_TYPE_FORECASTING",this.VB],
|
|
["SLOT_TYPE_IN_PLAYER",this.VB],["SLOT_TYPE_PLAYER_BYTES",this.VB],["SLOT_TYPE_PLAYER_UNDERLAY",this.VB],["SLOT_TYPE_PLAYBACK_TRACKING",this.VB],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.HR],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",
|
|
this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vz],["TRIGGER_TYPE_CLOSE_REQUESTED",this.eT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.s_],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
|
|
this.s_],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.s_],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.s_],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xN],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
|
|
this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.NI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.zP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.zP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.zP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.zP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.zP]]),xD:new Map([["SLOT_TYPE_ABOVE_FEED",this.Wk],
|
|
["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7],["SLOT_TYPE_PLAYER_UNDERLAY",this.Wk],["SLOT_TYPE_PLAYBACK_TRACKING",this.Wk],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Wk]]),eM:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ph],["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_PLAYER_BYTES",this.nQ],["SLOT_TYPE_PLAYBACK_TRACKING",this.yk],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
|
|
this.yk],["SLOT_TYPE_IN_PLAYER",this.XC],["SLOT_TYPE_PLAYER_UNDERLAY",this.sJ]])};this.listeners=[Z.get()];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:this.mJ.get(),Fe:this.HR,y4:Z.get(),kf:this.hF.get()}};
|
|
ZNE=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)});
|
|
g.W(this,J);var R=Ti(function(){return new c_(J)});
|
|
g.W(this,R);var Z=Ti(function(){return new w3});
|
|
g.W(this,Z);var N=Ti(function(){return new d3(A)});
|
|
g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)});
|
|
g.W(this,F);var D=Ti(function(){return new qF});
|
|
g.W(this,D);this.IA=Ti(function(){return new Ne(L)});
|
|
g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)});
|
|
g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)});
|
|
g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)});
|
|
g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)});
|
|
g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)});
|
|
g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)});
|
|
g.W(this,this.FD);var I=Ti(function(){return new Z6(f)});
|
|
g.W(this,I);var d=Ti(function(){return new Ly(V.FD)});
|
|
g.W(this,d);var w=Ti(function(){return new fS(J,F,R,V.FD,d,null,null,V.gh,V.zP)});
|
|
g.W(this,w);this.E6=Ti(function(){return new IY(L)});
|
|
g.W(this,this.E6);this.mJ=Ti(function(){return new iY});
|
|
g.W(this,this.mJ);this.hF=Ti(function(){return new B1(L,D,V.FD)});
|
|
g.W(this,this.hF);var r=Yy({hF:this.hF,FD:this.FD,Le:d}),h=r.context;this.fY=r.fY;this.hf=Ti(function(){return new d1(L,V.FD,V.j4)});
|
|
this.Mp=Ti(function(){return new fY(L,V.hF)});
|
|
g.W(this,this.Mp);this.MF=Ti(function(){return new pY});
|
|
g.W(this,this.MF);this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)});
|
|
g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)});
|
|
g.W(this,this.j4);this.Az=Ti(function(){return new $G(V.FD)});
|
|
g.W(this,this.Az);this.z_=new F8(NF,yY,function(l,C,O,v){return Wy(R.get(),l,C,O,v)},N,F,R,d,this.FD,this.hF);
|
|
g.W(this,this.z_);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var Q=new Up(L,this.VG,this.Mp,this.hF,this.hf);this.jo=Ti(function(){return Q});
|
|
this.lG=Q;this.gh=new Jn(N,F,this.jo,this.hf,this.Mp,this.FD,this.j4);g.W(this,this.gh);this.h_=new IU(N,F,this.FA,this.jo,h);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp)});
|
|
g.W(this,this.N4);this.VB=Ti(function(){return new AE});
|
|
g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.eT=new hn(A);g.W(this,this.eT);this.Yg=new tn(A,this.jo,h);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.qF=new l4(A);g.W(this,this.qF);this.rb=new mW(A);g.W(this,this.rb);this.NI=new $h(A);g.W(this,this.NI);this.sE=Ti(function(){return new w1(L)});
|
|
g.W(this,this.sE);this.MU=new X8(A);g.W(this,this.MU);this.zP=new Qx(A,this.hf,this.Mp,this.j4,this.jo,this.gh);g.W(this,this.zP);this.Wk=Ti(function(){return new jM});
|
|
g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)});
|
|
g.W(this,this.E7);this.dQ=Ti(function(){return new Eb(V.tf,N,J)});
|
|
g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)});
|
|
g.W(this,this.Vq);this.XC=Ti(function(){return new DD6(V.IA,V.Mp,V.j4,Z,V.Fr,V.eT,V.NI,V.gi,V.FD,B)});
|
|
g.W(this,this.XC);this.nQ=Ti(function(){return new S$(A,V.MU,V.qF,V.j4,V.Fr,V.Az,V.h$,V.hF,V.Mp,V.MF,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,V.sE,h)});
|
|
g.W(this,this.nQ);this.hR=new RY(A,this.mJ,J);g.W(this,this.hR);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_FORECASTING",this.VB],["SLOT_TYPE_IN_PLAYER",this.VB],
|
|
["SLOT_TYPE_PLAYER_BYTES",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],
|
|
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vz],["TRIGGER_TYPE_CLOSE_REQUESTED",this.eT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
|
|
this.NI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.zP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.zP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.zP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.zP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.zP]]),xD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7]]),
|
|
eM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_IN_PLAYER",this.XC],["SLOT_TYPE_PLAYER_BYTES",this.nQ]])};this.listeners=[Z.get()];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:this.mJ.get(),Fe:this.HR,y4:Z.get(),kf:this.hF.get()}};
|
|
NJ1=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)});
|
|
g.W(this,J);var R=Ti(function(){return new c_(J)});
|
|
g.W(this,R);var Z=Ti(function(){return new w3});
|
|
g.W(this,Z);var N=Ti(function(){return new d3(A)});
|
|
g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)});
|
|
g.W(this,F);var D=Ti(function(){return new qF});
|
|
g.W(this,D);this.IA=Ti(function(){return new Ne(L)});
|
|
g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)});
|
|
g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)});
|
|
g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)});
|
|
g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)});
|
|
g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)});
|
|
g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)});
|
|
g.W(this,this.FD);var I=Ti(function(){return new Z6(f)});
|
|
g.W(this,I);var d=Ti(function(){return new Ly(V.FD)});
|
|
g.W(this,d);var w=Ti(function(){return new fS(J,F,R,V.FD,d,null,null,null,null)});
|
|
g.W(this,w);this.E6=Ti(function(){return new IY(L)});
|
|
g.W(this,this.E6);this.hF=Ti(function(){return new B1(L,D,V.FD)});
|
|
g.W(this,this.hF);var r=Yy({hF:this.hF,FD:this.FD,Le:d}),h=r.context;this.fY=r.fY;this.Mp=Ti(function(){return new fY(L,V.hF)});
|
|
g.W(this,this.Mp);this.MF=Ti(function(){return new pY});
|
|
g.W(this,this.MF);this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)});
|
|
g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)});
|
|
g.W(this,this.j4);this.Az=Ti(function(){return new $G(V.FD)});
|
|
g.W(this,this.Az);this.z_=new F8(NF,yY,function(l,C,O,v){return Wy(R.get(),l,C,O,v)},N,F,R,d,this.FD,this.hF);
|
|
g.W(this,this.z_);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var Q=new Up(L,this.VG,this.Mp,this.hF);this.jo=Ti(function(){return Q});
|
|
this.lG=Q;this.h_=new IU(N,F,this.FA,this.jo,h);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp)});
|
|
g.W(this,this.N4);this.VB=Ti(function(){return new AE});
|
|
g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.Yg=new tn(A,this.jo,h);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.qF=new l4(A);g.W(this,this.qF);this.rb=new mW(A);g.W(this,this.rb);this.sE=Ti(function(){return new w1(L)});
|
|
g.W(this,this.sE);this.MU=new X8(A);g.W(this,this.MU);this.Wk=Ti(function(){return new jM});
|
|
g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)});
|
|
g.W(this,this.E7);this.dQ=Ti(function(){return new Eb(V.tf,N,J)});
|
|
g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)});
|
|
g.W(this,this.Vq);this.X_=Ti(function(){return new aOS(V.IA,V.Mp,V.j4,Z,B,V.FD)});
|
|
g.W(this,this.X_);this.nQ=Ti(function(){return new S$(A,V.MU,V.qF,V.j4,V.Fr,V.Az,V.h$,V.hF,V.Mp,V.MF,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,V.sE,h)});
|
|
g.W(this,this.nQ);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_FORECASTING",this.VB],["SLOT_TYPE_IN_PLAYER",this.VB],["SLOT_TYPE_PLAYER_BYTES",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
|
|
this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
|
|
this.s_],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU]]),xD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_ABOVE_FEED",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7]]),eM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_IN_PLAYER",
|
|
this.X_],["SLOT_TYPE_PLAYER_BYTES",this.nQ]])};this.listeners=[Z.get()];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:null,Fe:this.HR,y4:Z.get(),kf:this.hF.get()}};
|
|
FAD=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)});
|
|
g.W(this,J);var R=Ti(function(){return new c_(J)});
|
|
g.W(this,R);var Z=Ti(function(){return new w3});
|
|
g.W(this,Z);var N=Ti(function(){return new d3(A)});
|
|
g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)});
|
|
g.W(this,F);var D=Ti(function(){return new qF});
|
|
g.W(this,D);this.AA=Ti(function(){return new SmQ(L)});
|
|
g.W(this,this.AA);this.IA=Ti(function(){return new Ne(L)});
|
|
g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)});
|
|
g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)});
|
|
g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)});
|
|
g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)});
|
|
g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)});
|
|
g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)});
|
|
g.W(this,this.FD);var I=Ti(function(){return new Z6(f)});
|
|
g.W(this,I);var d=Ti(function(){return new Ly(V.FD)});
|
|
g.W(this,d);var w=Ti(function(){return new fS(J,F,R,V.FD,d,null,null,null,null)});
|
|
g.W(this,w);this.E6=Ti(function(){return new IY(L)});
|
|
g.W(this,this.E6);this.hF=Ti(function(){return new B1(L,D,V.FD)});
|
|
g.W(this,this.hF);var r=Yy({hF:this.hF,FD:this.FD,Le:d}),h=r.context;this.fY=r.fY;this.Mp=Ti(function(){return new fY(L,V.hF)});
|
|
g.W(this,this.Mp);this.MF=Ti(function(){return new pY});
|
|
g.W(this,this.MF);this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)});
|
|
g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)});
|
|
g.W(this,this.j4);this.Az=Ti(function(){return new $G(V.FD)});
|
|
g.W(this,this.Az);this.z_=new F8(ufQ,yY,function(l,C,O,v){return gXE(R.get(),l,C,O,v)},N,F,R,d,this.FD,this.hF);
|
|
g.W(this,this.z_);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var Q=new Up(L,this.VG,this.Mp,this.hF);this.jo=Ti(function(){return Q});
|
|
this.lG=Q;this.h_=new IU(N,F,this.FA,this.jo,h);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp)});
|
|
g.W(this,this.N4);this.VB=Ti(function(){return new AE});
|
|
g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.Yg=new tn(A,this.jo,h);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.qF=new l4(A);g.W(this,this.qF);this.rb=new mW(A);g.W(this,this.rb);this.sE=Ti(function(){return new w1(L)});
|
|
g.W(this,this.sE);this.MU=new X8(A);g.W(this,this.MU);this.Wk=Ti(function(){return new jM});
|
|
g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)});
|
|
g.W(this,this.E7);this.dQ=Ti(function(){return new Eb(V.tf,N,J)});
|
|
g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)});
|
|
g.W(this,this.Vq);this.nQ=Ti(function(){return new S$(A,V.MU,V.qF,V.j4,V.Fr,V.Az,V.h$,V.hF,V.Mp,V.MF,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,V.sE,h)});
|
|
g.W(this,this.nQ);this.ID=Ti(function(){return new I8e(V.IA,V.Mp,V.j4,Z,V.AA,B,V.hF)});
|
|
g.W(this,this.ID);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_FORECASTING",this.VB],["SLOT_TYPE_IN_PLAYER",this.VB],["SLOT_TYPE_PLAYER_BYTES",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
|
|
this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
|
|
this.s_],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU]]),xD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7]]),eM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_IN_PLAYER",this.ID],["SLOT_TYPE_PLAYER_BYTES",
|
|
this.nQ]])};this.listeners=[Z.get()];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:null,Fe:this.HR,y4:Z.get(),kf:this.hF.get()}};
|
|
D3S=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)});
|
|
g.W(this,J);var R=Ti(function(){return new c_(J)});
|
|
g.W(this,R);var Z=Ti(function(){return new w3});
|
|
g.W(this,Z);var N=Ti(function(){return new d3(A)});
|
|
g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)});
|
|
g.W(this,F);var D=Ti(function(){return new qF});
|
|
g.W(this,D);this.AA=Ti(function(){return new SmQ(L)});
|
|
g.W(this,this.AA);this.IA=Ti(function(){return new Ne(L)});
|
|
g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)});
|
|
g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)});
|
|
g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)});
|
|
g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)});
|
|
g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)});
|
|
g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)});
|
|
g.W(this,this.FD);var I=Ti(function(){return new Z6(f)});
|
|
g.W(this,I);var d=Ti(function(){return new Ly(V.FD)});
|
|
g.W(this,d);this.E6=Ti(function(){return new IY(L)});
|
|
g.W(this,this.E6);this.hF=Ti(function(){return new B1(L,D,V.FD)});
|
|
g.W(this,this.hF);var w=Yy({hF:this.hF,FD:this.FD,Le:d}),r=w.context;this.fY=w.fY;this.hf=Ti(function(){return new d1(L,V.FD,V.j4)});
|
|
g.W(this,this.hf);this.sE=Ti(function(){return new w1(L)});
|
|
g.W(this,this.sE);this.Mp=Ti(function(){return new fY(L,V.hF)});
|
|
g.W(this,this.Mp);this.MF=Ti(function(){return new pY});
|
|
g.W(this,this.MF);w=Ti(function(){return new fS(J,F,R,V.FD,d,null,V.Mp,V.gh,V.zP,3)});
|
|
g.W(this,w);this.Az=Ti(function(){return new $G(V.FD)});
|
|
this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)});
|
|
g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)});
|
|
g.W(this,this.j4);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var h=new Up(L,this.VG,this.Mp,this.hF,this.hf);this.jo=Ti(function(){return h});
|
|
this.lG=h;this.z_=new F8(as6,yY,function(Q,l,C,O){return gXE(R.get(),Q,l,C,O)},N,F,R,d,this.FD,this.hF);
|
|
g.W(this,this.z_);this.gh=new Jn(N,F,this.jo,this.hf,this.Mp,this.FD,this.j4,this.sE);g.W(this,this.gh);this.h_=new IU(N,F,this.FA,this.jo,r);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp,V.sE)});
|
|
g.W(this,this.N4);this.VB=Ti(function(){return new AE});
|
|
g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.Yg=new tn(A,this.jo,r);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.xN=new T0(A,this.hF);g.W(this,this.xN);this.zP=new Qx(A,this.hf,this.Mp,this.j4,this.jo,this.gh);g.W(this,this.zP);this.qF=new l4(A);g.W(this,this.qF);this.rb=new mW(A);g.W(this,this.rb);this.MU=new X8(A);g.W(this,this.MU);this.Wk=Ti(function(){return new jM});
|
|
g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)});
|
|
g.W(this,this.E7);this.dQ=Ti(function(){return new Eb(V.tf,N,J)});
|
|
g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)});
|
|
g.W(this,this.Vq);this.nQ=Ti(function(){return new Jy(A,V.MU,V.qF,V.hF,V.sE,V.Mp,V.MF,V.j4,D,V.hf,V.Fr,V.Az,V.h$,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,Z,r)});
|
|
g.W(this,this.nQ);this.XC=Ti(function(){return new w80(V.IA,V.Mp,V.j4,Z,V.AA,B,V.FD,V.hF)});
|
|
g.W(this,this.XC);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_FORECASTING",this.VB],["SLOT_TYPE_IN_PLAYER",this.VB],["SLOT_TYPE_PLAYER_BYTES",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
|
|
this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
|
|
this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xN],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.zP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
|
|
this.zP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.zP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.zP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.zP]]),xD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7]]),eM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_PLAYER_BYTES",this.nQ],["SLOT_TYPE_IN_PLAYER",this.XC]])};this.listeners=[Z.get()];
|
|
this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:null,Fe:this.HR,y4:Z.get(),kf:this.hF.get()}};
|
|
Ivk=function(A,L,B,f){function K(){return V.W}
|
|
g.Y.call(this);var V=this;A.K().experiments.GL("html5_dispose_of_manager_before_dependency")?(this.N=d3e(K,A,L,B,f),this.W=(new lY(this.N)).V(),g.W(this,this.W),g.W(this,this.N)):(this.N=d3e(K,A,L,B,f),g.W(this,this.N),this.W=(new lY(this.N)).V(),g.W(this,this.W))};
|
|
jp=function(A){return A.N.DO};
|
|
d3e=function(A,L,B,f,K){try{var V=L.K();if(g.SK(V))var J=new R$0(A,L,B,f,K);else if(g.Ng(V))J=new ZNE(A,L,B,f,K);else if(A$(V))J=new NJ1(A,L,B,f,K);else if(g.cH(V))J=new FAD(A,L,B,f,K);else if(g.xi(V))J=new D3S(A,L,B,f,K);else throw new TypeError("Unknown web interface");return J}catch(R){return J=L.K(),Dh("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:J.N.cplatform,interface:J.N.c,Pa1:J.N.cver,B6D:J.N.ctheme,cq1:J.N.cplayer,sGF:J.playerStyle}),new aek(A,L,B,f,K)}};
|
|
ws1=function(A){xr.call(this,A)};
|
|
psy=function(A,L,B,f,K){oA.call(this,A,{Z:"div",j:"ytp-ad-timed-pie-countdown-container",B:[{Z:"svg",j:"ytp-ad-timed-pie-countdown",C:{viewBox:"0 0 20 20"},B:[{Z:"circle",j:"ytp-ad-timed-pie-countdown-background",C:{r:"10",cx:"10",cy:"10"}},{Z:"circle",j:"ytp-ad-timed-pie-countdown-inner",C:{r:"5",cx:"10",cy:"10"}},{Z:"circle",j:"ytp-ad-timed-pie-countdown-outer",C:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",L,B,f,K);this.U=this.m4("ytp-ad-timed-pie-countdown-container");this.V=this.m4("ytp-ad-timed-pie-countdown-inner");
|
|
this.D=this.m4("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()};
|
|
yc7=function(A,L,B,f,K,V){dq.call(this,A,{Z:"div",j:"ytp-ad-action-interstitial",C:{tabindex:"0"},B:[{Z:"div",j:"ytp-ad-action-interstitial-background-container"},{Z:"div",j:"ytp-ad-action-interstitial-slot",B:[{Z:"div",j:"ytp-ad-action-interstitial-instream-info"},{Z:"div",j:"ytp-ad-action-interstitial-card",B:[{Z:"div",j:"ytp-ad-action-interstitial-image-container"},{Z:"div",j:"ytp-ad-action-interstitial-headline-container"},{Z:"div",j:"ytp-ad-action-interstitial-description-container"},{Z:"div",
|
|
j:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",L,B,f);this.ZT=K;this.uj=V;this.navigationEndpoint=this.N=this.skipButton=this.W=this.actionButton=null;this.Ys=this.m4("ytp-ad-action-interstitial-instream-info");this.S4=this.m4("ytp-ad-action-interstitial-image-container");this.G=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-action-interstitial-image");g.W(this,this.G);this.G.DM(this.S4);this.wT=this.m4("ytp-ad-action-interstitial-headline-container");
|
|
this.D=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-action-interstitial-headline");g.W(this,this.D);this.D.DM(this.wT);this.qp=this.m4("ytp-ad-action-interstitial-description-container");this.V=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-action-interstitial-description");g.W(this,this.V);this.V.DM(this.qp);this.Ox=this.m4("ytp-ad-action-interstitial-background-container");this.Ex=new WP(this.api,this.layoutId,this.interactionLoggingClientData,
|
|
this.Qj,"ytp-ad-action-interstitial-background",!0);g.W(this,this.Ex);this.Ex.DM(this.Ox);this.sx=this.m4("ytp-ad-action-interstitial-action-button-container");this.slot=this.m4("ytp-ad-action-interstitial-slot");this.iQ=this.m4("ytp-ad-action-interstitial-card");this.U=new Qz;g.W(this,this.U);this.hide()};
|
|
jZe=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)};
|
|
sZL=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-overlay-slot",B:[{Z:"div",j:"ytp-ad-overlay-container"}]},"invideo-overlay",L,B,f);this.G=[];this.Ox=this.wT=this.U=this.sx=this.Ys=null;this.Ex=!1;this.D=null;this.qp=0;A=this.m4("ytp-ad-overlay-container");this.S4=new Zh(A,45E3,6E3,.3,.4);g.W(this,this.S4);this.V=gO0(this);g.W(this,this.V);this.V.DM(A);this.W=GnD(this);g.W(this,this.W);this.W.DM(A);this.N=rc7(this);g.W(this,this.N);this.N.DM(A);this.hide()};
|
|
gO0=function(A){var L=new g.DE({Z:"div",j:"ytp-ad-text-overlay",B:[{Z:"div",j:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",j:"ytp-ad-overlay-close-container",B:[{Z:"button",j:"ytp-ad-overlay-close-button",B:[$r(HN6)]}]},{Z:"div",j:"ytp-ad-overlay-title",Ir:"{{title}}"},{Z:"div",j:"ytp-ad-overlay-desc",Ir:"{{description}}"},{Z:"div",Rr:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ir:"{{displayUrl}}"}]});A.Y(L.m4("ytp-ad-overlay-title"),"click",function(B){g1(A,L.element,B)});
|
|
A.Y(L.m4("ytp-ad-overlay-link"),"click",function(B){g1(A,L.element,B)});
|
|
A.Y(L.m4("ytp-ad-overlay-close-container"),"click",A.uK);L.hide();return L};
|
|
GnD=function(A){var L=new g.DE({Z:"div",Rr:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],B:[{Z:"div",j:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",j:"ytp-ad-overlay-close-container",B:[{Z:"button",j:"ytp-ad-overlay-close-button",B:[$r(HN6)]}]},{Z:"div",j:"ytp-ad-overlay-text-image",B:[{Z:"img",C:{src:"{{imageUrl}}"}}]},{Z:"div",j:"ytp-ad-overlay-title",Ir:"{{title}}"},{Z:"div",j:"ytp-ad-overlay-desc",Ir:"{{description}}"},{Z:"div",Rr:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
|
|
Ir:"{{displayUrl}}"}]});A.Y(L.m4("ytp-ad-overlay-title"),"click",function(B){g1(A,L.element,B)});
|
|
A.Y(L.m4("ytp-ad-overlay-link"),"click",function(B){g1(A,L.element,B)});
|
|
A.Y(L.m4("ytp-ad-overlay-close-container"),"click",A.uK);A.Y(L.m4("ytp-ad-overlay-text-image"),"click",A.u31);L.hide();return L};
|
|
rc7=function(A){var L=new g.DE({Z:"div",j:"ytp-ad-image-overlay",B:[{Z:"div",j:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",j:"ytp-ad-overlay-close-container",B:[{Z:"button",j:"ytp-ad-overlay-close-button",B:[$r(HN6)]}]},{Z:"div",j:"ytp-ad-overlay-image",B:[{Z:"img",C:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});A.Y(L.m4("ytp-ad-overlay-image"),"click",function(B){g1(A,L.element,B)});
|
|
A.Y(L.m4("ytp-ad-overlay-close-container"),"click",A.uK);L.hide();return L};
|
|
h$v=function(A,L){if(L){var B=g.y(L,he)||null;B==null?g.mL(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(L=g.sA("video-ads ytp-ad-module")||null,L==null?g.mL(Error("Could not locate the root ads container element to attach the ad info dialog.")):(A.wT=new g.DE({Z:"div",j:"ytp-ad-overlay-ad-info-dialog-container"}),g.W(A,A.wT),A.wT.DM(L),L=new au(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,A.wT.element,!1),g.W(A,L),L.init(Vo("ad-info-hover-text-button"),B,A.macros),
|
|
A.D?(L.DM(A.D,0),L.subscribe("f",A.ags,A),L.subscribe("e",A.JZ,A),A.Y(A.D,"click",A.KH4),A.Y(g.sA("ytp-ad-button",L.element),"click",function(){var f;if(g.y((f=g.y(B.button,g.te))==null?void 0:f.serviceEndpoint,QXv))A.Ex=A.api.getPlayerState(1)===2,A.api.pauseVideo();else A.api.onAdUxClicked("ad-info-hover-text-button",A.layoutId)}),A.Ox=L):g.mL(Error("Ad info button container within overlay ad was not present."))))}else g.CE(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
|
|
tuS=function(A,L){if(bNE(A,G2)||A.api.isMinimized())return!1;var B=Iu(L.title),f=Iu(L.description);if(g.us(B)||g.us(f))return!1;A.createServerVe(A.V.element,L.trackingParams||null);A.V.updateValue("title",Iu(L.title));A.V.updateValue("description",Iu(L.description));A.V.updateValue("displayUrl",Iu(L.displayUrl));L.navigationEndpoint&&g.VB(A.G,L.navigationEndpoint);A.V.show();A.S4.start();A.logVisibility(A.V.element,!0);A.Y(A.V.element,"mouseover",function(){A.qp++});
|
|
return!0};
|
|
kny=function(A,L){if(bNE(A,G2)||A.api.isMinimized())return!1;var B=Iu(L.title),f=Iu(L.description);if(g.us(B)||g.us(f))return!1;A.createServerVe(A.W.element,L.trackingParams||null);A.W.updateValue("title",Iu(L.title));A.W.updateValue("description",Iu(L.description));A.W.updateValue("displayUrl",Iu(L.displayUrl));A.W.updateValue("imageUrl",Usv(L.image));L.navigationEndpoint&&g.VB(A.G,L.navigationEndpoint);A.sx=L.imageNavigationEndpoint||null;A.W.show();A.S4.start();A.logVisibility(A.W.element,!0);
|
|
A.Y(A.W.element,"mouseover",function(){A.qp++});
|
|
return!0};
|
|
TJ8=function(A,L){if(A.api.isMinimized())return!1;var B=WM6(L.image),f=B;B.width<G2.width&&(f=G2);if(B.width===0||B.height===0||bNE(A,f))return!1;A.createServerVe(A.N.element,L.trackingParams||null);A.N.updateValue("imageUrl",Usv(L.image));A.N.updateValue("width",B.width);A.N.updateValue("height",B.height);L.navigationEndpoint&&g.VB(A.G,L.navigationEndpoint);g.Kv(A.N.m4("ytp-ad-image-overlay"),"max-width",B.width+"px");A.N.show();A.logVisibility(A.N.element,!0);A.Y(A.N.element,"mouseover",function(){A.qp++;
|
|
A.api.Ol("invideo-overlay",A.layoutId)});
|
|
A.Y(A.N.element,"mouseout",function(){A.api.oT("invideo-overlay",A.layoutId)});
|
|
return!0};
|
|
bNE=function(A,L){var B=A.api.Pn().yN(),f=A.api.O7(!0,!1);return(L=Fp(B,B.height-(f.height+f.top),L))?(A.Ys&&L&&(B=g.is(A.macros),B.ERRORCODE=L.zm.toString(),B.ERROR_MSG=L.errorMessage,A.layoutId?Cy(A.Qj,A.Ys,A.layoutId,B):g.mL(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
|
|
g1=function(A,L,B){var f=g.is(A.macros),K=g.pv(L);f.AW={toString:function(){return K.width.toString()}};
|
|
f.AH={toString:function(){return K.height.toString()}};
|
|
var V=g.IR(B,L).floor();f.I_X={toString:function(){return V.x.toString()}};
|
|
f.NX={toString:function(){return V.x.toString()}};
|
|
f.I_Y={toString:function(){return V.y.toString()}};
|
|
f.NY={toString:function(){return V.y.toString()}};
|
|
f.NM={toString:function(){return A.qp.toString()}};
|
|
L=g.m(A.G);for(B=L.next();!B.done;B=L.next())B=B.value,A.layoutId?Cy(A.Qj,B,A.layoutId,f):g.mL(Error("Missing layoutId for invideo_overlay_ad."));A.api.pauseVideo()};
|
|
lvD=function(A,L){A=A.api.getRootNode();g.D1(A,"ytp-ad-overlay-open",L);g.D1(A,"ytp-ad-overlay-closed",!L)};
|
|
m3D=function(A,L,B,f,K){oA.call(this,A,{Z:"div",j:"ytp-ad-message-overlay",B:[{Z:"div",j:"ytp-ad-message-slot"}]},"ad-message",L,B,f,K);var V=this;this.D=-1;this.V=0;this.qp=!1;this.wT=this.m4("ytp-ad-message-slot");this.W=new g.DE({Z:"span",j:"ytp-ad-message-container"});this.W.DM(this.wT);g.W(this,this.W);this.messageText=new AG(this.api,this.layoutId,this.interactionLoggingClientData,f,"ytp-ad-message-text");g.W(this,this.messageText);this.messageText.DM(this.W.element);this.U=new g.KL(this.W,
|
|
400,!1,100,function(){V.hide()});
|
|
g.W(this,this.U);this.hide()};
|
|
QZk=function(A,L){A=A.api.getRootNode();g.D1(A,"ytp-ad-overlay-open",L);g.D1(A,"ytp-ad-overlay-closed",!L)};
|
|
CxQ=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-underlay-companion",B:[{Z:"div",j:"ytp-ad-underlay-side-container",B:[{Z:"div",j:"ytp-ad-underlay-image-container"},{Z:"div",j:"ytp-ad-underlay-description-container"},{Z:"div",j:"ytp-ad-underlay-headline-container"},{Z:"div",j:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",L,B,f);this.actionButton=null;this.wT=this.m4("ytp-ad-underlay-image-container");this.V=new WP(this.api,this.layoutId,this.interactionLoggingClientData,
|
|
this.Qj,"ytp-ad-underlay-image");g.W(this,this.V);this.V.DM(this.wT);this.qp=this.m4("ytp-ad-underlay-headline-container");this.W=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-underlay-headline");g.W(this,this.W);this.W.DM(this.qp);this.G=this.m4("ytp-ad-underlay-description-container");this.U=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-underlay-description");g.W(this,this.U);this.U.DM(this.G);this.D=this.m4("ytp-ad-underlay-action-button-container");
|
|
this.N=this.m4("ytp-ad-underlay-side-container");this.hide()};
|
|
iNL=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)};
|
|
r1=function(A,L,B,f,K,V){V=V===void 0?function(){}:V;
|
|
dq.call(this,A,{Z:"div",j:"ytp-ad-survey-answer"},"survey-answer",L,B,f);this.index=K;this.onSelected=V;this.N=null;this.toggledLoggingParams="";this.answer=this.m4("ytp-ad-survey-answer");this.hide()};
|
|
$3L=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",L,B,f);this.button=null;this.N=this.m4("ytp-ad-survey-none-of-the-above");this.hide()};
|
|
s$=function(A,L,B,f){var K=["ytp-ad-survey-submit-button"];K.push("ytp-ad-survey-submit-button-rounded");Xb.call(this,A,L,B,f,K,"survey-submit")};
|
|
H1=function(A,L,B,f,K){dq.call(this,A,{Z:"div",j:"ytp-ad-survey-player-overlay",B:[{Z:"div",j:"ytp-ad-survey-player-overlay-instream-info"},{Z:"div",j:"ytp-ad-survey-player-overlay-skip-preview-submit",B:[{Z:"div",j:"ytp-ad-survey-player-overlay-skip-or-preview"},{Z:"div",j:"ytp-ad-survey-player-overlay-submit"}]},{Z:"div",j:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",L,B,f);this.U=K;this.W=this.N=null;this.V=this.m4("ytp-ad-survey-player-overlay-instream-info");
|
|
this.skipOrPreview=this.m4("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.m4("ytp-ad-survey-player-overlay-submit");g.W(this,this.U);this.hide()};
|
|
h3=function(A,L,B,f,K,V){V=V===void 0?function(){}:V;
|
|
dq.call(this,A,{Z:"div",j:"ytp-ad-survey-question",B:[{Z:"div",Rr:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{Z:"div",Rr:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{Z:"div",Rr:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{Z:"div",j:"ytp-ad-survey-question-background"}]},K,L,B,f);this.wT=V;this.U=null;this.W=[];this.N=null;this.G=this.api.K().experiments.GL("a11y_h5_associate_survey_question");this.question=this.m4("ytp-ad-survey-question");
|
|
this.S4=this.m4("ytp-ad-survey-question-background");this.questionText=this.m4("ytp-ad-survey-question-text");this.answers=this.m4("ytp-ad-survey-answers");this.playerOverlay=this.m4("ytp-ad-survey-question-player-overlay");this.V=Date.now()};
|
|
XsC=function(A,L){L=g.wq(L);g.OA(A.questionText,L);A.G&&A.questionText.setAttribute("id",Vo("survey-question-text"))};
|
|
ONE=function(A,L,B,f){f=new r1(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,f,A.wT);f.DM(A.answers);f.init(Vo("survey-answer"),L,B);A.G&&(L=A.questionText.getAttribute("id"),L!=null&&(f.N!==null?f.N.W.setAttribute("aria-describedby",L):f.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",L)));A.W.push(f)};
|
|
cc6=function(A,L){if(L){var B=L.background;B&&g.y(B,EOk)&&(B=(B=g.y(B,EOk).image)&&UW(B)||"",g.us(B)?g.CE(Error("Found ThumbnailDetails without valid image URL")):g.Kv(A.S4,"backgroundImage","url("+B+")"));if(L.durationMilliseconds==null||L.durationMilliseconds===void 0||L.durationMilliseconds===0)A=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(L)),g.mL(A);else{A.V=g.Ed();A.N=new sN(A.api,L.durationMilliseconds);g.W(A,A.N);if(A.N&&L.instreamAdPlayerOverlay&&g.y(L.instreamAdPlayerOverlay,
|
|
Hy))try{var f=new H1(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,A.N);f.DM(A.playerOverlay);f.init(Vo("survey-player-overlay"),g.y(L.instreamAdPlayerOverlay,Hy),A.macros);A.U=f;g.W(A,f);A.NO()}catch(K){f=Error("ISAPOR had an error when initializing. Error: "+(K+" SurveyAdQuestionCommon: "+JSON.stringify(L))),g.mL(f)}else f=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(L)),g.mL(f);A.N&&L.durationMilliseconds&&L.durationMilliseconds>0?(L=new ON(A.api,A.N),
|
|
L.DM(A.playerOverlay),g.W(A,L)):(A=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(L)),g.mL(A))}}else g.mL(Error("addCommonComponents() needs to be called before starting countdown."))};
|
|
Mu0=function(A){function L(B){return{toString:function(){return B()}}}
|
|
A.macros.SURVEY_LOCAL_TIME_EPOCH_S=L(function(){var B=new Date;return(Math.round(B.valueOf()/1E3)+-1*B.getTimezoneOffset()*60).toString()});
|
|
A.macros.SURVEY_ELAPSED_MS=L(function(){return(Date.now()-A.V).toString()})};
|
|
Ym0=function(A,L,B,f,K){h3.call(this,A,L,B,f,"survey-question-multi-select");this.qp=K;this.noneOfTheAbove=null;this.submitEndpoints=[];this.D=null;this.hide()};
|
|
U3w=function(A,L,B){A.noneOfTheAbove=new $3L(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj);A.noneOfTheAbove.DM(A.answers);A.noneOfTheAbove.init(Vo("survey-none-of-the-above"),L,B)};
|
|
vO7=function(A){A.W.forEach(function(L){L.N.toggleButton(!1)});
|
|
WA8(A,!0)};
|
|
WA8=function(A,L){var B=A.U;A=qme(A);L=L===void 0?!1:L;B.N&&(A?B.N.hide():B.N.show(),L&&B.N instanceof jm&&!B.N.U&&YS8(B.N,!1));B.W&&(A?B.W.show():B.W.hide())};
|
|
qme=function(A){return A.W.some(function(L){return L.N.isToggled()})||A.noneOfTheAbove.button.isToggled()};
|
|
bv=function(A,L,B,f,K){h3.call(this,A,L,B,f,"survey-question-single-select",function(J){V.api.K().J("supports_multi_step_on_desktop")&&K([J])});
|
|
var V=this;this.hide()};
|
|
t3=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-survey",B:[{Z:"div",j:"ytp-ad-survey-questions"}]},"survey",L,B,f);this.questions=[];this.W=[];this.conditioningRules=[];this.N=0;this.D=this.m4("ytp-ad-survey-questions");this.api.K().J("fix_survey_color_contrast_on_destop")&&this.m4("ytp-ad-survey").classList.add("color-contrast-fix");this.api.K().J("web_enable_speedmaster")&&this.m4("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
|
|
e$L=function(A,L){var B=A.W[L],f;(f=A.V)==null||f.dispose();g.y(B,s4)?Pxv(A,g.y(B,s4),A.macros):g.y(B,r9)&&x38(A,g.y(B,r9),A.macros);A.N=L};
|
|
Pxv=function(A,L,B){var f=new bv(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,A.U.bind(A));f.DM(A.D);f.init(Vo("survey-question-single-select"),L,B);A.api.K().J("supports_multi_step_on_desktop")?A.V=f:A.questions.push(f);g.W(A,f)};
|
|
x38=function(A,L,B){var f=new Ym0(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,A.U.bind(A));f.DM(A.D);f.init(Vo("survey-question-multi-select"),L,B);A.api.K().J("supports_multi_step_on_desktop")?A.V=f:A.questions.push(f);g.W(A,f)};
|
|
k4=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-survey-interstitial",B:[{Z:"div",j:"ytp-ad-survey-interstitial-contents",B:[{Z:"div",j:"ytp-ad-survey-interstitial-logo",B:[{Z:"div",j:"ytp-ad-survey-interstitial-logo-image"}]},{Z:"div",j:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",L,B,f);this.N=this.actionButton=null;this.interstitial=this.m4("ytp-ad-survey-interstitial");this.W=this.m4("ytp-ad-survey-interstitial-contents");this.text=this.m4("ytp-ad-survey-interstitial-text");
|
|
this.logoImage=this.m4("ytp-ad-survey-interstitial-logo-image");this.transition=new g.KL(this,500,!1,300);g.W(this,this.transition)};
|
|
nOQ=function(A,L){L=L&&UW(L)||"";if(g.us(L))g.CE(Error("Found ThumbnailDetails without valid image URL"));else{var B=A.style;A=A.style.cssText;var f=document.implementation.createHTMLDocument("").createElement("DIV");f.style.cssText=A;A=jxv(f.style);B.cssText=[A,'background-image:url("'+L+'");'].join("")}};
|
|
z$v=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)};
|
|
T2=function(A,L,B,f,K,V){V=V===void 0?0:V;oA.call(this,A,{Z:"div",j:"ytp-preview-ad",B:[{Z:"div",j:"ytp-preview-ad__text"}]},"preview-ad",L,B,f,K);var J=this;this.qp=V;this.W=0;this.U=-1;this.V=this.m4("ytp-preview-ad__text");switch(this.qp){case 1:this.V.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.KL(this,400,!1,100,function(){J.hide()});
|
|
g.W(this,this.transition);this.hide()};
|
|
lv=function(A,L,B,f){dq.call(this,A,{Z:"img",j:"ytp-ad-avatar"},"ad-avatar",L,B,f);this.hide()};
|
|
uHQ=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}};
|
|
mG=function(A,L,B,f,K,V){K=K===void 0?!1:K;V=V===void 0?!1:V;dq.call(this,A,{Z:"button",j:"ytp-ad-button-vm"},"ad-button",L,B,f);this.buttonText=this.buttonIcon=null;this.hide();this.N=K;this.W=V};
|
|
av6=function(A,L,B,f,K){oA.call(this,A,{Z:"div",Rr:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],B:[{Z:"div",j:"ytp-ad-avatar-lockup-card__avatar_and_text_container",B:[{Z:"div",j:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",L,B,f,K);this.startMilliseconds=0;this.adAvatar=new lv(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adAvatar);iA(this.element,this.adAvatar.element,0);this.headline=new mm(this.api,this.layoutId,
|
|
this.interactionLoggingClientData,this.Qj);g.W(this,this.headline);this.headline.DM(this.m4("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.description);this.description.DM(this.m4("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new mG(this.api,
|
|
this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adButton);this.adButton.DM(this.element);this.hide()};
|
|
QY=function(A,L,B,f){dq.call(this,A,{Z:"button",j:"ytp-skip-ad-button",B:[{Z:"div",j:"ytp-skip-ad-button__text"}]},"skip-button",L,B,f);var K=this;this.W=!1;this.U=this.m4("ytp-skip-ad-button__text");this.transition=new g.KL(this,500,!1,100,function(){K.hide()});
|
|
g.W(this,this.transition);this.N=new Zh(this.element,15E3,5E3,.5,.5,!0);g.W(this,this.N);this.hide()};
|
|
AJ1=function(A,L,B,f,K){oA.call(this,A,{Z:"div",j:"ytp-skip-ad"},"skip-ad",L,B,f,K);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.V=new QY(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.V);this.V.DM(this.element);this.hide()};
|
|
CY=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-visit-advertiser-link"},"visit-advertiser-link",L,B,f);this.hide()};
|
|
iv=function(A,L,B,f,K){dq.call(this,A,{Z:"div",j:"ytp-ad-player-overlay-layout",B:[{Z:"div",j:"ytp-ad-player-overlay-layout__player-card-container"},{Z:"div",j:"ytp-ad-player-overlay-layout__ad-info-container"},{Z:"div",j:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Z:"div",j:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",L,B,f);this.W=K;this.wT=this.m4("ytp-ad-player-overlay-layout__player-card-container");this.N=this.m4("ytp-ad-player-overlay-layout__ad-info-container");
|
|
this.G=this.m4("ytp-ad-player-overlay-layout__skip-or-preview-container");this.qp=this.m4("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
|
|
Lpe=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-grid-card-text",B:[{Z:"div",j:"ytp-ad-grid-card-text__metadata",B:[{Z:"div",j:"ytp-ad-grid-card-text__metadata__headline"},{Z:"div",j:"ytp-ad-grid-card-text__metadata__description",B:[{Z:"div",j:"ytp-ad-grid-card-text__metadata__description__line"},{Z:"div",j:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Z:"div",j:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",L,B,f);this.headline=new mm(this.api,this.layoutId,this.interactionLoggingClientData,
|
|
this.Qj);g.W(this,this.headline);this.headline.DM(this.m4("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new mG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0);g.W(this,this.moreInfoButton);this.moreInfoButton.DM(this.m4("ytp-ad-grid-card-text__button"))};
|
|
$4=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",L,B,f);this.N=[]};
|
|
Xl=function(A,L,B,f,K,V,J){oA.call(this,A,V,J,L,B,f,K);this.playerProgressOffsetMs=0;this.W=!1};
|
|
oPe=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)};
|
|
BOy=function(A,L,B,f,K){Xl.call(this,A,L,B,f,K,{Z:"div",j:"ytp-display-underlay-text-grid-cards",B:[{Z:"div",j:"ytp-display-underlay-text-grid-cards__content_container",B:[{Z:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header",B:[{Z:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Z:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Z:"div",j:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
|
|
{Z:"div",j:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new $4(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adGridCardCollection);this.adGridCardCollection.DM(this.m4("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new mG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adButton);this.adButton.DM(this.m4("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
|
|
this.V=this.m4("ytp-display-underlay-text-grid-cards__content_container");this.U=this.m4("ytp-display-underlay-text-grid-cards__content_container__header")};
|
|
O$=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-details-line"},"ad-details-line",L,B,f);this.N=[];this.hide()};
|
|
E$=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-image-background",B:[{Z:"img",j:"ytp-image-background-image"}]},"image-background",L,B,f);this.hide()};
|
|
fMS=function(A,L,B,f,K){oA.call(this,A,{Z:"svg",j:"ytp-timed-pie-countdown",C:{viewBox:"0 0 20 20"},B:[{Z:"circle",j:"ytp-timed-pie-countdown__background",C:{r:"10",cx:"10",cy:"10"}},{Z:"circle",j:"ytp-timed-pie-countdown__inner",C:{r:"5",cx:"10",cy:"10"}},{Z:"circle",j:"ytp-timed-pie-countdown__outer",C:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",L,B,f,K);this.V=this.m4("ytp-timed-pie-countdown__inner");this.W=Math.ceil(2*Math.PI*5);this.hide()};
|
|
c1=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout",C:{tabindex:"0"},B:[{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content",B:[{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",B:[{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
|
|
{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",L,B,f);this.W=null;this.U=this.m4("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.V=new Qz;g.W(this,this.V);this.hide()};
|
|
Kp1=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)};
|
|
V0E=function(A){if(!A.adAvatar||!g.y(A.adAvatar,Me))return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!A.headline)return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!A.adBadge||!g.y(A.adBadge,Y4))return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!A.adButton||!g.y(A.adButton,U$))return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!A.adInfoRenderer||
|
|
!g.y(A.adInfoRenderer,he))return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;A=A.durationMilliseconds||0;return typeof A!=="number"||A<=0?(g.mL(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+A)),!1):!0};
|
|
W1=function(A,L){L=L===void 0?2:L;g.SN.call(this);this.api=A;this.N=null;this.handler=new Qz(this);g.W(this,this.handler);this.W=UED;this.handler.Y(this.api,"presentingplayerstatechange",this.bk);this.N=this.handler.Y(this.api,"progresssync",this.iq);this.sU=L;this.sU===1&&this.iq()};
|
|
v1=function(A,L,B){xr.call(this,A);this.api=A;this.Qj=L;this.components={};A=new g.q({Z:"div",Rr:["video-ads","ytp-ad-module"]});g.W(this,A);OR&&g.R1(A.element,"ytp-ads-tiny-mode");this.U=new dT(A.element);g.W(this,this.U);g.Wh(this.api,A.element,4);vy(B)&&(B=new g.q({Z:"div",Rr:["ytp-ad-underlay"]}),g.W(this,B),this.W=new dT(B.element),g.W(this,this.W),g.Wh(this.api,B.element,0));g.W(this,p9L())};
|
|
JJS=function(A,L){A=g.QB(A.components,L.id,null);A==null&&g.CE(Error("Component not found for element id: "+L.id));return A||null};
|
|
S1Q=function(A){g.FB.call(this,A);var L=this;this.W=null;this.created=!1;this.V=A.K().J("h5_use_refactored_get_ad_break")?new AHv(this.player):new Mz(this.player);this.U=function(){if(L.W!=null)return L.W;var f=new JHy({Fe:jp(L.N).Fe,kf:jp(L.N).kf,S:L.player,kX:jp(L.N).kX,j4:L.N.N.j4,y4:jp(L.N).y4,QK:L.N.N.QK});L.W=f.m8;return L.W};
|
|
this.N=new Ivk(this.player,this,this.V,this.U);g.W(this,this.N);var B=A.K();!I6(B)||g.xi(B)||A$(B)||(g.W(this,new v1(A,jp(this.N).Qj,jp(this.N).kX)),g.W(this,new ws1(A)))};
|
|
RAv=function(A){A.created!==A.loaded&&Dh("Created and loaded are out of sync")};
|
|
Fpk=function(A){g.FB.prototype.load.call(A);var L=jp(A.N).kX;try{A.player.getRootNode().classList.add("ad-created")}catch(R){Dh(R instanceof Error?R:String(R))}var B=A.player.getVideoData(1),f=B&&B.videoId||"",K=B&&B.getPlayerResponse()||{},V=(K&&K.adPlacements||[]).map(function(R){return R.adPlacementRenderer}),J=((K==null?void 0:K.adSlots)||[]).map(function(R){return g.y(R,Gl)});
|
|
K=K.playerConfig&&K.playerConfig.daiConfig&&K.playerConfig.daiConfig.enableDai||!1;B&&B.iC();L=ZAk(V,J,L,jp(A.N).DQ);V=B&&B.clientPlaybackNonce||"";B=B&&B.hI||!1;J=1E3*A.player.getDuration(1);NO7(A);A.N.N.lG.sj(V,J,B,L.EY,L.qS,L.EY,K,f)};
|
|
NO7=function(A){var L,B;if(B=(L=A.player.getVideoData(1))==null||!L.hI)L=A.player.K(),B=I6(L)&&!g.dY(L)&&L.playerStyle==="desktop-polymer";B&&(A=A.player.getInternalApi(),A.addEventListener("updateKevlarOrC3Companion",u$y),A.addEventListener("updateEngagementPanelAction",aGS),A.addEventListener("changeEngagementPanelVisibility",ARQ),window.addEventListener("yt-navigate-start",oL0))};
|
|
qe=function(A,L){L===A.Yr&&(A.Yr=void 0)};
|
|
Duk=function(A){var L=jp(A.N).VG,B=L.U().Br("SLOT_TYPE_PLAYER_BYTES",1);L=BV(L.hF.get(),1).clientPlaybackNonce;var f=!1;B=g.m(B);for(var K=B.next();!K.done;K=B.next()){K=K.value;var V=K.slotType==="SLOT_TYPE_PLAYER_BYTES"&&K.slotEntryTrigger instanceof GA?K.slotEntryTrigger.O5:void 0;V&&V===L&&(f&&Dh("More than 1 preroll playerBytes slot detected",K),f=!0)}f||jp(A.N).Ou.rq()};
|
|
duL=function(A){var L="";A=g.m(jp(A.N).y4.F5.keys());for(var B=A.next();!B.done;B=A.next()){B=B.value;if(B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B.u1==="core")return!0;L+=B.slotType+" "}Math.random()<.01&&Dh("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:L});return!1};
|
|
IM7=function(A){A=g.m(jp(A.N).y4.F5.values());for(var L=A.next();!L.done;L=A.next())if(L.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
|
|
uRy=function(A,L,B,f,K,V,J){B=B===void 0?[]:B;f=f===void 0?"":f;K=K===void 0?"":K;var R=jp(A.N).kX,Z=A.player.getVideoData(1);Z&&Z.getPlayerResponse();Z&&Z.iC();B=ZAk(L,B,R,jp(A.N).DQ);BZk(jp(A.N).tf,f,B.EY,B.qS,L,K,V,J)};
|
|
ZAk=function(A,L,B,f){L={EY:[],qS:L};A=g.m(A);for(var K=A.next();!K.done;K=A.next())if((K=K.value)&&K.renderer!=null){var V=K.renderer;if(!B.S.K().J("html5_enable_vod_lasr_with_notify_pacf")){var J=void 0,R=void 0,Z=void 0,N=void 0,F=f;g.y((N=V.sandwichedLinearAdRenderer)==null?void 0:N.adVideoStart,B_)?(J=g.y((Z=V.sandwichedLinearAdRenderer)==null?void 0:Z.adVideoStart,B_),J=wF6(J,F),g.cb(V.sandwichedLinearAdRenderer.adVideoStart,B_,J)):g.y((R=V.linearAdSequenceRenderer)==null?void 0:R.adStart,B_)&&
|
|
(Z=g.y((J=V.linearAdSequenceRenderer)==null?void 0:J.adStart,B_),J=wF6(Z,F),g.cb(V.linearAdSequenceRenderer.adStart,B_,J))}L.EY.push(K)}return L};
|
|
g.P1=function(A){if(typeof DOMParser!="undefined")return W5(new DOMParser,ImC(A),"application/xml");throw Error("Your browser does not support loading xml documents");};
|
|
g.x4=function(A){g.Y.call(this);this.callback=A;this.N=new HC(0,0,.4,0,.2,1,1,1);this.delay=new g.uN(this.next,window,this);g.W(this,this.delay)};
|
|
g.wzy=function(A){var L=A.K();return L.k6&&!L.V&&g.MM(L)?A.isEmbedsShortsMode()?(A=A.O7(),Math.min(A.width,A.height)>=315):!A.Gy():!1};
|
|
g.ep=function(A){g.q.call(this,{Z:"div",j:"ytp-more-videos-view",C:{tabIndex:"-1"}});var L=this;this.api=A;this.W=!0;this.V=new g.dN(this);this.N=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.U=this.scrollPosition=0;this.title=new g.q({Z:"h2",j:"ytp-related-title",Ir:"{{title}}"});this.previous=new g.q({Z:"button",Rr:["ytp-button","ytp-previous"],C:{"aria-label":"Mostra i video consigliati in precedenza"},B:[g.jN()]});this.T=new g.x4(function(B){L.suggestions.element.scrollLeft=
|
|
-B});
|
|
this.next=new g.q({Z:"button",Rr:["ytp-button","ytp-next"],C:{"aria-label":"Mostra altri video consigliati"},B:[g.gq()]});g.W(this,this.V);this.D=A.K().U;g.W(this,this.title);this.title.DM(this.element);this.suggestions=new g.q({Z:"div",j:"ytp-suggestions"});g.W(this,this.suggestions);this.suggestions.DM(this.element);g.W(this,this.previous);this.previous.DM(this.element);this.previous.listen("click",this.Ug,this);g.W(this,this.T);pzk(this);g.W(this,this.next);this.next.DM(this.element);this.next.listen("click",
|
|
this.F2,this);this.V.Y(this.api,"appresize",this.Bz);this.V.Y(this.api,"fullscreentoggled",this.Vi);this.V.Y(this.api,"videodatachange",this.onVideoDataChange);this.Bz(this.api.Pn().getPlayerSize());this.onVideoDataChange()};
|
|
pzk=function(A){for(var L={v2:0};L.v2<16;L={v2:L.v2},++L.v2){var B=new g.q({Z:"a",j:"ytp-suggestion-link",C:{href:"{{link}}",target:A.api.K().yj,"aria-label":"{{aria_label}}"},B:[{Z:"div",j:"ytp-suggestion-image"},{Z:"div",j:"ytp-suggestion-overlay",C:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},B:[{Z:"div",j:"ytp-suggestion-title",Ir:"{{title}}"},{Z:"div",j:"ytp-suggestion-author",Ir:"{{author_and_views}}"},{Z:"div",C:{"data-is-live":"{{is_live}}"},j:"ytp-suggestion-duration",
|
|
Ir:"{{duration}}"}]}]});g.W(A,B);var f=B.m4("ytp-suggestion-link");g.Kv(f,"transitionDelay",L.v2/20+"s");A.V.Y(f,"click",function(K){return function(V){var J=K.v2;if(A.W){var R=A.suggestionData[J],Z=R.sessionData;A.D&&A.api.J("web_player_log_click_before_generating_ve_conversion_params")?(A.api.logClick(A.N[J].element),J=R.Ej(),R={},g.Mm(A.api,R),J=g.ip(J,R),g.wC(J,A.api,V)):g.If(V,A.api,A.D,Z||void 0)&&A.api.Dl(R.videoId,Z,R.playlistId)}else V.preventDefault(),document.activeElement.blur()}}(L));
|
|
B.DM(A.suggestions.element);A.N.push(B);A.api.createServerVe(B.element,B)}};
|
|
yJv=function(A){if(A.api.K().J("web_player_log_click_before_generating_ve_conversion_params"))for(var L=Math.floor(-A.scrollPosition/(A.U+8)),B=Math.min(L+A.columns,A.suggestionData.length)-1;L<=B;L++)A.api.logVisibility(A.N[L].element,!0)};
|
|
g.nY=function(A){var L=A.api.Zr()?32:16;L=A.X/2+L;A.next.element.style.bottom=L+"px";A.previous.element.style.bottom=L+"px";L=A.scrollPosition;var B=A.containerWidth-A.suggestionData.length*(A.U+8);g.D1(A.element,"ytp-scroll-min",L>=0);g.D1(A.element,"ytp-scroll-max",L<=B)};
|
|
gPL=function(A){for(var L=A.suggestionData.length,B=0;B<L;++B){var f=void 0,K=void 0,V=void 0;f=A;var J=f.api.K(),R=f.suggestionData[B],Z=f.N[B];V=f.api.isEmbedsShortsMode()?R.shortViewCount||"":R.shortViewCount?R.author+" \u2022 "+R.shortViewCount:R.author;Z.element.style.display="";g.Kv(Z.m4("ytp-suggestion-link"),"display","inline-block");jb7.test(R.title)&&(Z.m4("ytp-suggestion-title").dir="rtl");jb7.test(V)&&(Z.m4("ytp-suggestion-author").dir="rtl");K=R.isLivePlayback?"Dal vivo":R.lengthSeconds?
|
|
g.hG(R.lengthSeconds):"";var N=R.Ej(f.api.isEmbedsShortsMode());if(g.MM(J)&&!J.J("web_player_log_click_before_generating_ve_conversion_params")){var F={};g.jg(f.api,"addEmbedsConversionTrackingParams",[F]);N=g.ip(N,F)}J.J("web_player_log_click_before_generating_ve_conversion_params")&&(J=(J=R.sessionData)&&J.itct)&&f.api.setTrackingParams(Z.element,J);Z.update({author_and_views:V,duration:K,link:N,title:R.title,aria_label:R.ariaLabel||R.title,is_live:R.isLivePlayback,aria_hidden:!!R.ariaLabel,blink_rendering_hack:g.Z2||
|
|
g.ER?"will-change: opacity":void 0});K=Z.m4("ytp-suggestion-image");f=f.api.isEmbedsShortsMode()?R.g1("hq2.jpg"):R.g1();K.style.backgroundImage=f?"url("+f+")":""}if(L<16)for(;L<16;++L)g.Kv(A.N[L].m4("ytp-suggestion-link"),"display","none");g.nY(A)};
|
|
hQL=[];k8C=typeof Object.create=="function"?Object.create:function(A){function L(){}
|
|
L.prototype=A;return new L};
|
|
qC=typeof Object.defineProperties=="function"?Object.defineProperty:function(A,L,B){if(A==Array.prototype||A==Object.prototype)return A;A[L]=B.value;return A};
|
|
g.v6=bw0(this);c6="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");g.v6.BigInt64Array&&(c6.push("BigInt64"),c6.push("BigUint64"));var G_y=function(){function A(){function B(){}
|
|
new B;Reflect.construct(B,[],function(){});
|
|
return new B instanceof B}
|
|
if(typeof Reflect!="undefined"&&Reflect.construct){if(A())return Reflect.construct;var L=Reflect.construct;return function(B,f,K){B=L(B,f);K&&Reflect.setPrototypeOf(B,K.prototype);return B}}return function(B,f,K){K===void 0&&(K=B);
|
|
K=k8C(K.prototype||Object.prototype);return Function.prototype.apply.call(B,K,f)||K}}(),rJ8;
|
|
if(typeof Object.setPrototypeOf=="function")rJ8=Object.setPrototypeOf;else{var sby;a:{var HAw={a:!0},hAC={};try{hAC.__proto__=HAw;sby=hAC.a;break a}catch(A){}sby=!1}rJ8=sby?function(A,L){A.__proto__=L;if(A.__proto__!==L)throw new TypeError(A+" is not extensible");return A}:null}var P6=rJ8,bA0=typeof Object.assign=="function"?Object.assign:function(A,L){if(A==null)throw new TypeError("No nullish arg");
|
|
A=Object(A);for(var B=1;B<arguments.length;B++){var f=arguments[B];if(f)for(var K in f)z8(f,K)&&(A[K]=f[K])}return A};
|
|
W6("Object.assign",function(A){return A||bA0});
|
|
Af.prototype.G=function(A){this.W=A};
|
|
Af.prototype.return=function(A){this.V={return:A};this.N=this.D};
|
|
Af.prototype.Ux=function(A){this.N=A};
|
|
W6("globalThis",function(A){return A||g.v6});
|
|
W6("Reflect",function(A){return A?A:{}});
|
|
W6("Reflect.construct",function(){return G_y});
|
|
W6("Reflect.setPrototypeOf",function(A){return A?A:P6?function(L,B){try{return P6(L,B),!0}catch(f){return!1}}:null});
|
|
W6("Symbol",function(A){function L(V){if(this instanceof L)throw new TypeError("Symbol is not a constructor");return new B(f+(V||"")+"_"+K++,V)}
|
|
function B(V,J){this.N=V;qC(this,"description",{configurable:!0,writable:!0,value:J})}
|
|
if(A)return A;B.prototype.toString=function(){return this.N};
|
|
var f="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",K=0;return L});
|
|
W6("Symbol.iterator",function(A){if(A)return A;A=Symbol("Symbol.iterator");qC(Array.prototype,A,{configurable:!0,writable:!0,value:function(){return Owy(TyD(this))}});
|
|
return A});
|
|
W6("Promise",function(A){function L(J){this.N=0;this.V=void 0;this.W=[];this.X=!1;var R=this.U();try{J(R.resolve,R.reject)}catch(Z){R.reject(Z)}}
|
|
function B(){this.N=null}
|
|
function f(J){return J instanceof L?J:new L(function(R){R(J)})}
|
|
if(A)return A;B.prototype.W=function(J){if(this.N==null){this.N=[];var R=this;this.V(function(){R.D()})}this.N.push(J)};
|
|
var K=g.v6.setTimeout;B.prototype.V=function(J){K(J,0)};
|
|
B.prototype.D=function(){for(;this.N&&this.N.length;){var J=this.N;this.N=[];for(var R=0;R<J.length;++R){var Z=J[R];J[R]=null;try{Z()}catch(N){this.U(N)}}}this.N=null};
|
|
B.prototype.U=function(J){this.V(function(){throw J;})};
|
|
L.prototype.U=function(){function J(N){return function(F){Z||(Z=!0,N.call(R,F))}}
|
|
var R=this,Z=!1;return{resolve:J(this.Vj),reject:J(this.D)}};
|
|
L.prototype.Vj=function(J){if(J===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(J instanceof L)this.wT(J);else{a:switch(typeof J){case "object":var R=J!=null;break a;case "function":R=!0;break a;default:R=!1}R?this.qp(J):this.T(J)}};
|
|
L.prototype.qp=function(J){var R=void 0;try{R=J.then}catch(Z){this.D(Z);return}typeof R=="function"?this.JF(R,J):this.T(J)};
|
|
L.prototype.D=function(J){this.G(2,J)};
|
|
L.prototype.T=function(J){this.G(1,J)};
|
|
L.prototype.G=function(J,R){if(this.N!=0)throw Error("Cannot settle("+J+", "+R+"): Promise already settled in state"+this.N);this.N=J;this.V=R;this.N===2&&this.ZM();this.yj()};
|
|
L.prototype.ZM=function(){var J=this;K(function(){if(J.Wn()){var R=g.v6.console;typeof R!=="undefined"&&R.error(J.V)}},1)};
|
|
L.prototype.Wn=function(){if(this.X)return!1;var J=g.v6.CustomEvent,R=g.v6.Event,Z=g.v6.dispatchEvent;if(typeof Z==="undefined")return!0;typeof J==="function"?J=new J("unhandledrejection",{cancelable:!0}):typeof R==="function"?J=new R("unhandledrejection",{cancelable:!0}):(J=g.v6.document.createEvent("CustomEvent"),J.initCustomEvent("unhandledrejection",!1,!0,J));J.promise=this;J.reason=this.V;return Z(J)};
|
|
L.prototype.yj=function(){if(this.W!=null){for(var J=0;J<this.W.length;++J)V.W(this.W[J]);this.W=null}};
|
|
var V=new B;L.prototype.wT=function(J){var R=this.U();J.wL(R.resolve,R.reject)};
|
|
L.prototype.JF=function(J,R){var Z=this.U();try{J.call(R,Z.resolve,Z.reject)}catch(N){Z.reject(N)}};
|
|
L.prototype.then=function(J,R){function Z(I,d){return typeof I=="function"?function(w){try{N(I(w))}catch(r){F(r)}}:d}
|
|
var N,F,D=new L(function(I,d){N=I;F=d});
|
|
this.wL(Z(J,N),Z(R,F));return D};
|
|
L.prototype.catch=function(J){return this.then(void 0,J)};
|
|
L.prototype.wL=function(J,R){function Z(){switch(N.N){case 1:J(N.V);break;case 2:R(N.V);break;default:throw Error("Unexpected state: "+N.N);}}
|
|
var N=this;this.W==null?V.W(Z):this.W.push(Z);this.X=!0};
|
|
L.resolve=f;L.reject=function(J){return new L(function(R,Z){Z(J)})};
|
|
L.race=function(J){return new L(function(R,Z){for(var N=g.m(J),F=N.next();!F.done;F=N.next())f(F.value).wL(R,Z)})};
|
|
L.all=function(J){var R=g.m(J),Z=R.next();return Z.done?f([]):new L(function(N,F){function D(w){return function(r){I[w]=r;d--;d==0&&N(I)}}
|
|
var I=[],d=0;do I.push(void 0),d++,f(Z.value).wL(D(I.length-1),F),Z=R.next();while(!Z.done)})};
|
|
return L});
|
|
W6("Object.setPrototypeOf",function(A){return A||P6});
|
|
W6("Symbol.dispose",function(A){return A?A:Symbol("Symbol.dispose")});
|
|
W6("SuppressedError",function(A){function L(B,f,K){if(!(this instanceof L))return new L(B,f,K);K=Error(K);"stack"in K&&(this.stack=K.stack);this.message=K.message;this.error=B;this.suppressed=f}
|
|
if(A)return A;g.G(L,Error);L.prototype.name="SuppressedError";return L});
|
|
W6("WeakMap",function(A){function L(Z){this.N=(R+=Math.random()+1).toString();if(Z){Z=g.m(Z);for(var N;!(N=Z.next()).done;)N=N.value,this.set(N[0],N[1])}}
|
|
function B(){}
|
|
function f(Z){var N=typeof Z;return N==="object"&&Z!==null||N==="function"}
|
|
function K(Z){if(!z8(Z,J)){var N=new B;qC(Z,J,{value:N})}}
|
|
function V(Z){var N=Object[Z];N&&(Object[Z]=function(F){if(F instanceof B)return F;Object.isExtensible(F)&&K(F);return N(F)})}
|
|
if(function(){if(!A||!Object.seal)return!1;try{var Z=Object.seal({}),N=Object.seal({}),F=new A([[Z,2],[N,3]]);if(F.get(Z)!=2||F.get(N)!=3)return!1;F.delete(Z);F.set(N,4);return!F.has(Z)&&F.get(N)==4}catch(D){return!1}}())return A;
|
|
var J="$jscomp_hidden_"+Math.random();V("freeze");V("preventExtensions");V("seal");var R=0;L.prototype.set=function(Z,N){if(!f(Z))throw Error("Invalid WeakMap key");K(Z);if(!z8(Z,J))throw Error("WeakMap key fail: "+Z);Z[J][this.N]=N;return this};
|
|
L.prototype.get=function(Z){return f(Z)&&z8(Z,J)?Z[J][this.N]:void 0};
|
|
L.prototype.has=function(Z){return f(Z)&&z8(Z,J)&&z8(Z[J],this.N)};
|
|
L.prototype.delete=function(Z){return f(Z)&&z8(Z,J)&&z8(Z[J],this.N)?delete Z[J][this.N]:!1};
|
|
return L});
|
|
W6("Map",function(A){function L(){var R={};return R.previous=R.next=R.head=R}
|
|
function B(R,Z){var N=R[1];return Owy(function(){if(N){for(;N.head!=R[1];)N=N.previous;for(;N.next!=N.head;)return N=N.next,{done:!1,value:Z(N)};N=null}return{done:!0,value:void 0}})}
|
|
function f(R,Z){var N=Z&&typeof Z;N=="object"||N=="function"?V.has(Z)?N=V.get(Z):(N=""+ ++J,V.set(Z,N)):N="p_"+Z;var F=R[0][N];if(F&&z8(R[0],N))for(R=0;R<F.length;R++){var D=F[R];if(Z!==Z&&D.key!==D.key||Z===D.key)return{id:N,list:F,index:R,entry:D}}return{id:N,list:F,index:-1,entry:void 0}}
|
|
function K(R){this[0]={};this[1]=L();this.size=0;if(R){R=g.m(R);for(var Z;!(Z=R.next()).done;)Z=Z.value,this.set(Z[0],Z[1])}}
|
|
if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var R=Object.seal({x:4}),Z=new A(g.m([[R,"s"]]));if(Z.get(R)!="s"||Z.size!=1||Z.get({x:4})||Z.set({x:4},"t")!=Z||Z.size!=2)return!1;var N=Z.entries(),F=N.next();if(F.done||F.value[0]!=R||F.value[1]!="s")return!1;F=N.next();return F.done||F.value[0].x!=4||F.value[1]!="t"||!N.next().done?!1:!0}catch(D){return!1}}())return A;
|
|
var V=new WeakMap;K.prototype.set=function(R,Z){R=R===0?0:R;var N=f(this,R);N.list||(N.list=this[0][N.id]=[]);N.entry?N.entry.value=Z:(N.entry={next:this[1],previous:this[1].previous,head:this[1],key:R,value:Z},N.list.push(N.entry),this[1].previous.next=N.entry,this[1].previous=N.entry,this.size++);return this};
|
|
K.prototype.delete=function(R){R=f(this,R);return R.entry&&R.list?(R.list.splice(R.index,1),R.list.length||delete this[0][R.id],R.entry.previous.next=R.entry.next,R.entry.next.previous=R.entry.previous,R.entry.head=null,this.size--,!0):!1};
|
|
K.prototype.clear=function(){this[0]={};this[1]=this[1].previous=L();this.size=0};
|
|
K.prototype.has=function(R){return!!f(this,R).entry};
|
|
K.prototype.get=function(R){return(R=f(this,R).entry)&&R.value};
|
|
K.prototype.entries=function(){return B(this,function(R){return[R.key,R.value]})};
|
|
K.prototype.keys=function(){return B(this,function(R){return R.key})};
|
|
K.prototype.values=function(){return B(this,function(R){return R.value})};
|
|
K.prototype.forEach=function(R,Z){for(var N=this.entries(),F;!(F=N.next()).done;)F=F.value,R.call(Z,F[1],F[0],this)};
|
|
K.prototype[Symbol.iterator]=K.prototype.entries;var J=0;return K});
|
|
W6("Set",function(A){function L(B){this.N=new Map;if(B){B=g.m(B);for(var f;!(f=B.next()).done;)this.add(f.value)}this.size=this.N.size}
|
|
if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var B=Object.seal({x:4}),f=new A(g.m([B]));if(!f.has(B)||f.size!=1||f.add(B)!=f||f.size!=1||f.add({x:4})!=f||f.size!=2)return!1;var K=f.entries(),V=K.next();if(V.done||V.value[0]!=B||V.value[1]!=B)return!1;V=K.next();return V.done||V.value[0]==B||V.value[0].x!=4||V.value[1]!=V.value[0]?!1:K.next().done}catch(J){return!1}}())return A;
|
|
L.prototype.add=function(B){B=B===0?0:B;this.N.set(B,B);this.size=this.N.size;return this};
|
|
L.prototype.delete=function(B){B=this.N.delete(B);this.size=this.N.size;return B};
|
|
L.prototype.clear=function(){this.N.clear();this.size=0};
|
|
L.prototype.has=function(B){return this.N.has(B)};
|
|
L.prototype.entries=function(){return this.N.entries()};
|
|
L.prototype.values=function(){return this.N.values()};
|
|
L.prototype.keys=L.prototype.values;L.prototype[Symbol.iterator]=L.prototype.values;L.prototype.forEach=function(B,f){var K=this;this.N.forEach(function(V){return B.call(f,V,V,K)})};
|
|
return L});
|
|
W6("String.prototype.endsWith",function(A){return A?A:function(L,B){var f=j5(this,L,"endsWith");L+="";B===void 0&&(B=f.length);B=Math.max(0,Math.min(B|0,f.length));for(var K=L.length;K>0&&B>0;)if(f[--B]!=L[--K])return!1;return K<=0}});
|
|
W6("Array.prototype.find",function(A){return A?A:function(L,B){return E70(this,L,B).MD}});
|
|
W6("Array.prototype.entries",function(A){return A?A:function(){return gI(this,function(L,B){return[L,B]})}});
|
|
W6("Array.prototype.keys",function(A){return A?A:function(){return gI(this,function(L){return L})}});
|
|
W6("String.prototype.startsWith",function(A){return A?A:function(L,B){var f=j5(this,L,"startsWith");L+="";var K=f.length,V=L.length;B=Math.max(0,Math.min(B|0,f.length));for(var J=0;J<V&&B<K;)if(f[B++]!=L[J++])return!1;return J>=V}});
|
|
W6("Number.isFinite",function(A){return A?A:function(L){return typeof L!=="number"?!1:!isNaN(L)&&L!==Infinity&&L!==-Infinity}});
|
|
W6("String.prototype.repeat",function(A){return A?A:function(L){var B=j5(this,null,"repeat");if(L<0||L>1342177279)throw new RangeError("Invalid count value");L|=0;for(var f="";L;)if(L&1&&(f+=B),L>>>=1)B+=B;return f}});
|
|
W6("Object.entries",function(A){return A?A:function(L){var B=[],f;for(f in L)z8(L,f)&&B.push([f,L[f]]);return B}});
|
|
W6("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
|
|
W6("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
|
|
W6("Array.from",function(A){return A?A:function(L,B,f){B=B!=null?B:function(R){return R};
|
|
var K=[],V=typeof Symbol!="undefined"&&Symbol.iterator&&L[Symbol.iterator];if(typeof V=="function"){L=V.call(L);for(var J=0;!(V=L.next()).done;)K.push(B.call(f,V.value,J++))}else for(V=L.length,J=0;J<V;J++)K.push(B.call(f,L[J],J));return K}});
|
|
W6("Number.isInteger",function(A){return A?A:function(L){return Number.isFinite(L)?L===Math.floor(L):!1}});
|
|
W6("Number.isSafeInteger",function(A){return A?A:function(L){return Number.isInteger(L)&&Math.abs(L)<=Number.MAX_SAFE_INTEGER}});
|
|
W6("Object.is",function(A){return A?A:function(L,B){return L===B?L!==0||1/L===1/B:L!==L&&B!==B}});
|
|
W6("Array.prototype.includes",function(A){return A?A:function(L,B){var f=this;f instanceof String&&(f=String(f));var K=f.length;B=B||0;for(B<0&&(B=Math.max(B+K,0));B<K;B++){var V=f[B];if(V===L||Object.is(V,L))return!0}return!1}});
|
|
W6("String.prototype.includes",function(A){return A?A:function(L,B){return j5(this,L,"includes").indexOf(L,B||0)!==-1}});
|
|
W6("Math.log2",function(A){return A?A:function(L){return Math.log(L)/Math.LN2}});
|
|
W6("Object.values",function(A){return A?A:function(L){var B=[],f;for(f in L)z8(L,f)&&B.push(L[f]);return B}});
|
|
W6("Math.trunc",function(A){return A?A:function(L){L=Number(L);if(isNaN(L)||L===Infinity||L===-Infinity||L===0)return L;var B=Math.floor(Math.abs(L));return L<0?-B:B}});
|
|
W6("Math.clz32",function(A){return A?A:function(L){L=Number(L)>>>0;if(L===0)return 32;var B=0;(L&4294901760)===0&&(L<<=16,B+=16);(L&4278190080)===0&&(L<<=8,B+=8);(L&4026531840)===0&&(L<<=4,B+=4);(L&3221225472)===0&&(L<<=2,B+=2);(L&2147483648)===0&&B++;return B}});
|
|
W6("Number.isNaN",function(A){return A?A:function(L){return typeof L==="number"&&isNaN(L)}});
|
|
W6("Array.prototype.values",function(A){return A?A:function(){return gI(this,function(L,B){return B})}});
|
|
W6("Array.prototype.fill",function(A){return A?A:function(L,B,f){var K=this.length||0;B<0&&(B=Math.max(0,K+B));if(f==null||f>K)f=K;f=Number(f);f<0&&(f=Math.max(0,K+f));for(B=Number(B||0);B<f;B++)this[B]=L;return this}});
|
|
UD("fill",function(A){return A?A:Array.prototype.fill});
|
|
W6("Object.fromEntries",function(A){return A?A:function(L){var B={};if(!(Symbol.iterator in L))throw new TypeError(""+L+" is not iterable");L=L[Symbol.iterator].call(L);for(var f=L.next();!f.done;f=L.next()){f=f.value;if(Object(f)!==f)throw new TypeError("iterable for fromEntries should yield objects");B[f[0]]=f[1]}return B}});
|
|
W6("String.prototype.replaceAll",function(A){return A?A:function(L,B){if(L instanceof RegExp&&!L.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return L instanceof RegExp?this.replace(L,B):this.replace(new RegExp(String(L).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),B)}});
|
|
W6("String.prototype.padStart",function(A){return A?A:function(L,B){var f=j5(this,null,"padStart");L-=f.length;B=B!==void 0?String(B):" ";return(L>0&&B?B.repeat(Math.ceil(L/B.length)).substring(0,L):"")+f}});
|
|
W6("Array.prototype.findIndex",function(A){return A?A:function(L,B){return E70(this,L,B).eC}});
|
|
W6("Promise.prototype.finally",function(A){return A?A:function(L){return this.then(function(B){return Promise.resolve(L()).then(function(){return B})},function(B){return Promise.resolve(L()).then(function(){throw B;
|
|
})})}});
|
|
W6("Math.imul",function(A){return A?A:function(L,B){L=Number(L);B=Number(B);var f=L&65535,K=B&65535;return f*K+((L>>>16&65535)*K+f*(B>>>16&65535)<<16>>>0)|0}});
|
|
W6("Math.sign",function(A){return A?A:function(L){L=Number(L);return L===0||isNaN(L)?L:L>0?1:-1}});
|
|
W6("WeakSet",function(A){function L(B){this.N=new WeakMap;if(B){B=g.m(B);for(var f;!(f=B.next()).done;)this.add(f.value)}}
|
|
if(function(){if(!A||!Object.seal)return!1;try{var B=Object.seal({}),f=Object.seal({}),K=new A([B]);if(!K.has(B)||K.has(f))return!1;K.delete(B);K.add(f);return!K.has(B)&&K.has(f)}catch(V){return!1}}())return A;
|
|
L.prototype.add=function(B){this.N.set(B,!0);return this};
|
|
L.prototype.has=function(B){return this.N.has(B)};
|
|
L.prototype.delete=function(B){return this.N.delete(B)};
|
|
return L});
|
|
W6("Array.prototype.copyWithin",function(A){function L(B){B=Number(B);return B===Infinity||B===-Infinity?B:B|0}
|
|
return A?A:function(B,f,K){var V=this.length;B=L(B);f=L(f);K=K===void 0?V:L(K);B=B<0?Math.max(V+B,0):Math.min(B,V);f=f<0?Math.max(V+f,0):Math.min(f,V);K=K<0?Math.max(V+K,0):Math.min(K,V);if(B<f)for(;f<K;)f in this?this[B++]=this[f++]:(delete this[B++],f++);else for(K=Math.min(K,V+f-B),B+=K-f;K>f;)--K in this?this[--B]=this[K]:delete this[--B];return this}});
|
|
UD("copyWithin",function(A){return A?A:Array.prototype.copyWithin});
|
|
W6("Array.prototype.at",function(A){return A?A:GK});
|
|
UD("at",function(A){return A?A:GK});
|
|
W6("String.prototype.at",function(A){return A?A:GK});
|
|
W6("Promise.withResolvers",function(A){return A?A:function(){var L,B;return{promise:new Promise(function(f,K){L=f;B=K}),
|
|
resolve:L,reject:B}}});
|
|
W6("Array.prototype.findLastIndex",function(A){return A?A:function(L,B){return c10(this,L,B).eC}});
|
|
UD("findLastIndex",function(A){return A?A:function(L,B){return c10(this,L,B).eC}});
|
|
W6("Number.parseInt",function(A){return A||parseInt});var n8,Cf,MED;n8=n8||{};g.rI=this||self;Cf="closure_uid_"+(Math.random()*1E9>>>0);MED=0;g.Ud(Ww,Error);Ww.prototype.name="CustomError";var fwe;var eQe,Cv,K9;eQe=Array.prototype.indexOf?function(A,L){return Array.prototype.indexOf.call(A,L,void 0)}:function(A,L){if(typeof A==="string")return typeof L!=="string"||L.length!=1?-1:A.indexOf(L,0);
|
|
for(var B=0;B<A.length;B++)if(B in A&&A[B]===L)return B;return-1};
|
|
g.t0v=Array.prototype.lastIndexOf?function(A,L){return Array.prototype.lastIndexOf.call(A,L,A.length-1)}:function(A,L){var B=A.length-1;
|
|
B<0&&(B=Math.max(0,A.length+B));if(typeof A==="string")return typeof L!=="string"||L.length!=1?-1:A.lastIndexOf(L,B);for(;B>=0;B--)if(B in A&&A[B]===L)return B;return-1};
|
|
g.yB=Array.prototype.forEach?function(A,L,B){Array.prototype.forEach.call(A,L,B)}:function(A,L,B){for(var f=A.length,K=typeof A==="string"?A.split(""):A,V=0;V<f;V++)V in K&&L.call(B,K[V],V,A)};
|
|
g.Mi=Array.prototype.filter?function(A,L,B){return Array.prototype.filter.call(A,L,B)}:function(A,L,B){for(var f=A.length,K=[],V=0,J=typeof A==="string"?A.split(""):A,R=0;R<f;R++)if(R in J){var Z=J[R];
|
|
L.call(B,Z,R,A)&&(K[V++]=Z)}return K};
|
|
g.mn=Array.prototype.map?function(A,L,B){return Array.prototype.map.call(A,L,B)}:function(A,L,B){for(var f=A.length,K=Array(f),V=typeof A==="string"?A.split(""):A,J=0;J<f;J++)J in V&&(K[J]=L.call(B,V[J],J,A));
|
|
return K};
|
|
Cv=Array.prototype.reduce?function(A,L,B){return Array.prototype.reduce.call(A,L,B)}:function(A,L,B){var f=B;
|
|
(0,g.yB)(A,function(K,V){f=L.call(void 0,f,K,V,A)});
|
|
return f};
|
|
K9=Array.prototype.some?function(A,L){return Array.prototype.some.call(A,L,void 0)}:function(A,L){for(var B=A.length,f=typeof A==="string"?A.split(""):A,K=0;K<B;K++)if(K in f&&L.call(void 0,f[K],K,A))return!0;
|
|
return!1};
|
|
g.Q9=Array.prototype.every?function(A,L,B){return Array.prototype.every.call(A,L,B)}:function(A,L,B){for(var f=A.length,K=typeof A==="string"?A.split(""):A,V=0;V<f;V++)if(V in K&&!L.call(B,K[V],V,A))return!1;
|
|
return!0};var Ftk={NONE:0,cyn:1},AD0={AN:0,Jjs:1,S0x:2,TNr:3},jX={w3:"a",vXj:"d",VIDEO:"v"};go.prototype.isVisible=function(){return this.X$?this.Yb>=.3:this.Yb>=.5};var nx={Y7p:0,F3L:1},uF7={NONE:0,dzF:1,SdT:2};var RwC="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Oc.prototype.getValue=function(){return this.W};
|
|
g.G(Ec,Oc);Ec.prototype.V=function(A){this.W===null&&g.Tk(this.U,A)&&(this.W=A)};
|
|
g.G(ck,Oc);ck.prototype.V=function(A){this.W===null&&typeof A==="number"&&(this.W=A)};
|
|
g.G(MV,Oc);MV.prototype.V=function(A){this.W===null&&typeof A==="string"&&(this.W=A)};Uc.prototype.disable=function(){this.W=!1};
|
|
Uc.prototype.enable=function(){this.W=!0};
|
|
Uc.prototype.isEnabled=function(){return this.W};
|
|
Uc.prototype.reset=function(){this.N={};this.W=!0;this.V={}};var Jg=document,qo=window;var k_1=tf(1,!0),Ka=tf(610401301,!1);tf(899588437,!1);var TOD=tf(772657768,!0),lME=tf(513659523,!1),mu0=tf(568333945,!0),j7e=tf(1331761403,!1);tf(651175828,!1);tf(722764542,!1);tf(748402145,!1);tf(748402146,!1);var vjD=tf(748402147,!0),z2=tf(824648567,!0),XL=tf(824656860,k_1);tf(333098724,!1);tf(2147483644,!1);tf(2147483645,!1);tf(2147483646,k_1);tf(2147483647,!0);var VR=!!g.bB("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var La=String.prototype.trim?function(A){return A.trim()}:function(A){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(A)[1]},CBv=/&/g,if0=/</g,$XS=/>/g,XwE=/"/g,Ofw=/'/g,EW6=/\x00/g,QOL=/[\x00&<>"']/;var JF,QbD=g.rI.navigator;JF=QbD?QbD.userAgentData||null:null;var GKw=globalThis.trustedTypes,Iy;pa.prototype.toString=function(){return this.N+""};G$.prototype.toString=function(){return this.N};
|
|
var HfL=new G$("about:invalid#zClosurez");var ld8=H5("tel"),koy=H5("sms"),sOQ=[H5("data"),H5("http"),H5("https"),H5("mailto"),H5("ftp"),new sT(function(A){return/^[^:]*([/?#]|$)/.test(A)})],hwD=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;T$.prototype.toString=function(){return this.N+""};iO.prototype.toString=function(){return this.N+""};c5.prototype.toString=function(){return this.N};var Yj={};g.CeE=String.prototype.repeat?function(A,L){return A.repeat(L)}:function(A,L){return Array(L+1).join(A)};LG[" "]=function(){};var V9,Hj,b7C,iAD,$uk,Xzk,X5,OR,OAe;g.ER=Nw();g.pK=IRS();g.ns=Ry("Edge");g.F1=g.ns||g.pK;V9=Ry("Gecko")&&!(AF(g.fa(),"WebKit")&&!Ry("Edge"))&&!(Ry("Trident")||Ry("MSIE"))&&!Ry("Edge");g.h8=AF(g.fa(),"WebKit")&&!Ry("Edge");Hj=A8();b7C=vWS();g.fn=Wty();iAD=uO();$uk=Ry("iPad");Xzk=Ry("iPod");X5=ay();OR=AF(g.fa(),"KaiOS");
|
|
a:{var EP0="",cJ6=function(){var A=g.fa();if(V9)return/rv:([^\);]+)(\)|;)/.exec(A);if(g.ns)return/Edge\/([\d\.]+)/.exec(A);if(g.pK)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(A);if(g.h8)return/WebKit\/(\S+)/.exec(A);if(g.ER)return/(?:Version)[ \/]?(\S+)/.exec(A)}();
|
|
cJ6&&(EP0=cJ6?cJ6[1]:"");if(g.pK){var uv,M0S=g.rI.document;uv=M0S?M0S.documentMode:void 0;if(uv!=null&&uv>parseFloat(EP0)){OAe=String(uv);break a}}OAe=EP0}var eww=OAe,PBv={};var Ln,oX;g.de=FN();Ln=uO()||Ry("iPod");oX=Ry("iPad");g.cL=pw0();g.Z2=Di();g.yw=dt()&&!ay();var f7L=!g.pK&&!dt();g.p=g.Vl.prototype;g.p.clone=function(){return new g.Vl(this.x,this.y)};
|
|
g.p.equals=function(A){return A instanceof g.Vl&&J8(this,A)};
|
|
g.p.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
|
|
g.p.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
|
|
g.p.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
|
|
g.p.scale=function(A,L){this.x*=A;this.y*=typeof L==="number"?L:A;return this};g.p=g.Sr.prototype;g.p.clone=function(){return new g.Sr(this.width,this.height)};
|
|
g.p.aspectRatio=function(){return this.width/this.height};
|
|
g.p.isEmpty=function(){return!Zr(this)};
|
|
g.p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
|
|
g.p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
|
|
g.p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
|
|
g.p.scale=function(A,L){this.width*=A;this.height*=typeof L==="number"?L:A;return this};FF.prototype.toString=function(){return this.N};
|
|
var No={};new FF(No,"");var u9E=/^[a-z][a-z\d-]*$/i,aRv="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),LiE="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Bow=["action","formaction","href"];var Kie={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.p=IC.prototype;g.p.Zg=function(A){return yl(this.N,A)};
|
|
g.p.getElementsByTagName=function(A,L){return(L||this.N).getElementsByTagName(String(A))};
|
|
g.p.m4=function(A){return g.sA(A,this.N)};
|
|
g.p.setProperties=H4;g.p.createElement=function(A){return t8(this.N,A)};
|
|
g.p.appendChild=g.mk;g.p.append=function(A,L){RFQ(w_(A),A,arguments,1)};
|
|
g.p.canHaveChildren=function(A){if(A.nodeType!=1)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.p.removeNode=g.$9;g.p.getChildren=function(A){return A.children!=void 0?A.children:Array.prototype.filter.call(A.childNodes,function(L){return L.nodeType==1})};
|
|
g.p.contains=g.XF;g.p.isFocusable=EA;Y9.prototype.now=function(){return 0};
|
|
Y9.prototype.W=function(){return 0};
|
|
Y9.prototype.V=function(){return 0};
|
|
Y9.prototype.N=function(){return 0};g.G(v4,Y9);v4.prototype.now=function(){return UA()&&qo.performance.now?qo.performance.now():Y9.prototype.now.call(this)};
|
|
v4.prototype.W=function(){return UA()&&qo.performance.memory?qo.performance.memory.totalJSHeapSize||0:Y9.prototype.W.call(this)};
|
|
v4.prototype.V=function(){return UA()&&qo.performance.memory?qo.performance.memory.usedJSHeapSize||0:Y9.prototype.V.call(this)};
|
|
v4.prototype.N=function(){return UA()&&qo.performance.memory?qo.performance.memory.jsHeapSizeLimit||0:Y9.prototype.N.call(this)};var L2Q=function(){if(!g.rI.addEventListener||!Object.defineProperty)return!1;var A=!1,L=Object.defineProperty({},"passive",{get:function(){A=!0}});
|
|
try{var B=function(){};
|
|
g.rI.addEventListener("test",B,L);g.rI.removeEventListener("test",B,L)}catch(f){}return A}();var edv=Fie("AnimationEnd"),QC=Fie("TransitionEnd");g.p=uA.prototype;g.p.getHeight=function(){return this.bottom-this.top};
|
|
g.p.clone=function(){return new uA(this.top,this.right,this.bottom,this.left)};
|
|
g.p.contains=function(A){return this&&A?A instanceof uA?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.p.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.p.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.p.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.p.scale=function(A,L){L=typeof L==="number"?L:A;this.left*=A;this.right*=A;this.top*=L;this.bottom*=L;return this};g.p=g.oR.prototype;g.p.clone=function(){return new g.oR(this.left,this.top,this.width,this.height)};
|
|
g.p.contains=function(A){return A instanceof g.Vl?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.p.getSize=function(){return new g.Sr(this.width,this.height)};
|
|
g.p.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.p.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.p.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.p.scale=function(A,L){L=typeof L==="number"?L:A;this.left*=A;this.width*=A;this.top*=L;this.height*=L;return this};var dVv={};var GkC=er(function(){var A=!1;try{var L=Object.defineProperty({},"passive",{get:function(){A=!0}});
|
|
g.rI.addEventListener("test",null,L)}catch(B){}return A});rOk.prototype.isVisible=function(){return GV(Jg)===1};var tZQ=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");tD.prototype.MQ=function(A,L,B){A=A+"//"+L+B;var f=Cs0(this)-B.length;if(f<0)return"";this.N.sort(function(N,F){return N-F});
|
|
B=null;L="";for(var K=0;K<this.N.length;K++)for(var V=this.N[K],J=this.W[V],R=0;R<J.length;R++){if(!f){B=B==null?V:B;break}var Z=Q8L(J[R],this.V,",$");if(Z){Z=L+Z;if(f>=Z.length){f-=Z.length;A+=Z;L=this.V;break}B=B==null?V:B}}f="";B!=null&&(f=""+L+"trn="+B);return A+f};var w5v=iI(function(A){return typeof A==="number"}),FL=iI(function(A){return typeof A==="string"}),p5D=iI(function(A){return typeof A==="boolean"}),eM=iI(function(A){return A!=null&&typeof A==="object"&&typeof A.then==="function"}),ik6=iI(function(A){return typeof A==="function"}),Y1E=iI(function(A){return!!A&&(typeof A==="object"||typeof A==="function")});var lw6={kbr:"allow-forms",V6T:"allow-modals",mPs:"allow-orientation-lock",b9s:"allow-pointer-lock",t6r:"allow-popups",Fo1:"allow-popups-to-escape-sandbox",UPn:"allow-presentation",w9j:"allow-same-origin",Z94:"allow-scripts",DPM:"allow-top-navigation",M64:"allow-top-navigation-by-user-activation"},Eg8=er(function(){return mVv()});X6.prototype.setInterval=function(A,L){return qo.setInterval(A,L)};
|
|
X6.prototype.clearInterval=function(A){qo.clearInterval(A)};
|
|
X6.prototype.setTimeout=function(A,L){return qo.setTimeout(A,L)};
|
|
X6.prototype.clearTimeout=function(A){qo.clearTimeout(A)};var CH=void 0,QI,N_k=typeof TextDecoder!=="undefined",xV1,PsQ=typeof String.prototype.isWellFormed==="function",qcE=typeof TextEncoder!=="undefined";var awv={},vX=null,AF6=V9||g.h8||typeof g.rI.btoa=="function";var Zay=typeof Uint8Array!=="undefined",KCS=!g.pK&&typeof btoa==="function",VSk=/[-_.]/g,BtC={"-":"+",_:"/",".":"="},PX={};qa.prototype.isEmpty=function(){return this.N==null};
|
|
qa.prototype.sizeBytes=function(){var A=eV(this);return A?A.length:0};
|
|
var RhQ;var NtQ=void 0;var Bg=typeof Symbol==="function"&&typeof Symbol()==="symbol",Uuk=or("jas",void 0,!0),Yb=or(void 0,"1oa"),og=or(void 0,Symbol()),WpL=or(void 0,"0ub"),$we=or(void 0,"0ubs"),OGL=or(void 0,"0ubsb"),POw=or(void 0,"0actk"),ar=or("m_m","Mdj",!0),Ej6=or(void 0,"vps"),vPe=or();Math.max.apply(Math,g.x7(Object.values({JAx:1,SIn:2,Ri4:4,ZaT:8,YZM:16,lZF:32,jnT:64,AOF:128,DzM:256,Ngx:512,RPF:1024,hPj:2048,k1F:4096,XAF:8192})));var DwE={hFj:{value:0,configurable:!0,writable:!0,enumerable:!1}},FCC=Object.defineProperties,fd=Bg?Uuk:"hFj",HG,q1E=[];VT(q1E,7);HG=Object.freeze(q1E);var Ad={},Jp={},A8E=Object.freeze({}),$E={},Z7={};var D7=typeof g.rI.BigInt==="function"&&typeof g.rI.BigInt(0)==="bigint";var x3=iI(function(A){return D7?A>=PeQ&&A<=xuC:A[0]==="-"?yF6(A,eA6):yF6(A,nPE)}),eA6=Number.MIN_SAFE_INTEGER.toString(),PeQ=D7?BigInt(Number.MIN_SAFE_INTEGER):void 0,nPE=Number.MAX_SAFE_INTEGER.toString(),xuC=D7?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Vrv=typeof Uint8Array.prototype.slice==="function",pd=0,yT=0,E98;var Y3=typeof BigInt==="function"?BigInt.asIntN:void 0,Tt1=typeof BigInt==="function"?BigInt.asUintN:void 0,Pg=Number.isSafeInteger,mT=Number.isFinite,q4=Math.trunc,G$e=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var cF6={};var zA7={dFj:!0};var VP;var MSQ,YTE;var B_0=d6(0),As={};yI.prototype.init=function(A,L,B,f){var K=f===void 0?{}:f;f=K.Gs===void 0?!1:K.Gs;K=K.qD===void 0?!1:K.qD;this.Gs=f;this.qD=K;A&&(A=pH(A,this.qD),this.W=A.buffer,this.D=A.N,this.U=L||0,this.V=B!==void 0?this.U+B:this.W.length,this.N=this.U)};
|
|
yI.prototype.free=function(){this.clear();ts.length<100&&ts.push(this)};
|
|
yI.prototype.clear=function(){this.W=null;this.D=!1;this.N=this.V=this.U=0;this.Gs=!1};
|
|
yI.prototype.reset=function(){this.N=this.U};
|
|
var ts=[];kE.prototype.free=function(){this.N.clear();this.W=this.V=-1;TI.length<100&&TI.push(this)};
|
|
kE.prototype.reset=function(){this.N.reset();this.U=this.N.N;this.W=this.V=-1};
|
|
var TI=[];var Ir8,p41;E0.prototype.length=function(){return this.N.length};
|
|
E0.prototype.end=function(){var A=this.N;this.N=[];return A};var xE=qh(),uJy=qh(),aME=qh(),AxE=qh(),L87=qh(),oNC=qh(),BGQ=qh(),ffE=qh(),K8D=qh(),VYL=qh(),Jx8=qh();PS.prototype.toJSON=function(){return Rg(this)};
|
|
PS.prototype.PV=function(A){return JSON.stringify(Rg(this,A))};
|
|
PS.prototype.clone=function(){var A=this.yf,L=A[fd]|0;return DZ(this,A,L)?da(this,A,!0):new this.constructor(F3(A,L,!1))};
|
|
PS.prototype[ar]=Ad;PS.prototype.toString=function(){return this.yf.toString()};var tr0=nH(function(A,L,B,f,K){if(A.W!==2)return!1;mV(A,UG(L,f,B),K);return!0},bG0),kOC=nH(function(A,L,B,f,K){if(A.W!==2)return!1;
|
|
mV(A,UG(L,f,B),K);return!0},bG0),Vv=Symbol(),LC=Symbol(),fC=Symbol(),iGe=Symbol(),mo0=Symbol(),zI,uW;var Ss6=d6(0),RbL=RF(function(A,L,B){if(A.W!==1)return!1;Nl(L,B,hs(A.N));return!0},FI,K8D),ZDQ=RF(function(A,L,B){if(A.W!==1)return!1;
|
|
A=hs(A.N);Nl(L,B,A===0?void 0:A);return!0},FI,K8D),NGD=RF(function(A,L,B,f){if(A.W!==1)return!1;
|
|
cG(L,B,f,hs(A.N));return!0},FI,K8D),F8E=RF(function(A,L,B){if(z2)return A.W!==0?A=!1:(Nl(L,B,gi(A.N,bi)),A=!0),A;
|
|
if(A.W!==0)return!1;Nl(L,B,gi(A.N,Hg));return!0},DX,BGQ),D_D=RF(function(A,L,B){if(z2)return A.W!==0?L=!1:(A=gi(A.N,bi),Nl(L,B,A===Ss6?void 0:A),L=!0),L;
|
|
if(A.W!==0)return!1;A=gi(A.N,Hg);Nl(L,B,A===0?void 0:A);return!0},DX,BGQ),d_Q=RF(function(A,L,B,f){if(z2)return A.W!==0?A=!1:(cG(L,B,f,gi(A.N,bi)),A=!0),A;
|
|
if(A.W!==0)return!1;cG(L,B,f,gi(A.N,Hg));return!0},DX,BGQ),IfE=RF(function(A,L,B){if(A.W!==0)return!1;
|
|
Nl(L,B,GI(A.N));return!0},dF,AxE),wUQ=RF(function(A,L,B){if(A.W!==0)return!1;
|
|
A=GI(A.N);Nl(L,B,A===0?void 0:A);return!0},dF,AxE),pUe=RF(function(A,L,B,f){if(A.W!==0)return!1;
|
|
cG(L,B,f,GI(A.N));return!0},dF,AxE),yxk=RF(function(A,L,B){if(z2)return A.W!==1?A=!1:(Nl(L,B,HS(A.N)),A=!0),A;
|
|
if(A.W!==1)return!1;Nl(L,B,s0(A.N));return!0},function(A,L,B){sCk(A,B,li6(L))},ffE),jB1=ZX(function(A,L,B){if(z2)return A.W!==1&&A.W!==2?A=!1:(L=iq(L,L[fd]|0,B),A.W==2?Do7(A,HS,L):L.push(HS(A.N)),A=!0),A;
|
|
if(A.W!==1&&A.W!==2)return!1;L=iq(L,L[fd]|0,B);A.W==2?Do7(A,s0,L):L.push(s0(A.N));return!0},function(A,L,B){L=SX(li6,L,!1);
|
|
if(L!=null)for(var f=0;f<L.length;f++)sCk(A,B,L[f])},ffE),gNy=RF(function(A,L,B){if(A.W!==5)return!1;
|
|
Nl(L,B,ri(A.N));return!0},function(A,L,B){L=$3(L);
|
|
L!=null&&(WS(A,B,5),YE(A.N,L))},oNC),G67=RF(function(A,L,B){if(A.W!==0)return!1;
|
|
Nl(L,B,bW(A.N));return!0},c8v,uJy),rx7=RF(function(A,L,B,f){if(A.W!==0)return!1;
|
|
cG(L,B,f,bW(A.N));return!0},c8v,uJy),aY=RF(function(A,L,B){if(A.W!==2)return!1;
|
|
Nl(L,B,iW(A));return!0},MrC,aME),sBL=ZX(function(A,L,B){if(A.W!==2)return!1;
|
|
A=iW(A);iq(L,L[fd]|0,B).push(A);return!0},function(A,L,B){L=SX(zy,L,!0);
|
|
if(L!=null)for(var f=0;f<L.length;f++){var K=A,V=B,J=L[f];J!=null&&vS(K,V,eFE(J))}},aME),HDk=RF(function(A,L,B,f){if(A.W!==2)return!1;
|
|
cG(L,B,f,iW(A));return!0},MrC,aME),AN,LI=void 0;
|
|
LI=LI===void 0?xE:LI;AN=new e1(function(A,L,B,f,K){if(A.W!==2)return!1;f=ZZ(void 0,f);iq(L,L[fd]|0,B).push(f);mV(A,f,K);return!0},function(A,L,B,f,K){if(Array.isArray(L)){for(var V=0;V<L.length;V++)YAS(A,L[V],B,f,K);
|
|
A=L[fd]|0;A&1||VT(L,A|1)}},LI);
|
|
var oz=nH(function(A,L,B,f,K,V){if(A.W!==2)return!1;var J=L[fd]|0;OG(L,J,V,B,N4(J));L=UG(L,f,B);mV(A,L,K);return!0},YAS),hbe=RF(function(A,L,B){if(A.W!==2)return!1;
|
|
Nl(L,B,Fke(A));return!0},function(A,L,B){L=mwy(L);
|
|
L!=null&&vS(A,B,pH(L,!0).buffer)},VYL),bD0=ZX(function(A,L,B){if(A.W!==2)return!1;
|
|
A=Fke(A);iq(L,L[fd]|0,B).push(A);return!0},function(A,L,B){L=SX(mwy,L,!1);
|
|
if(L!=null)for(var f=0;f<L.length;f++){var K=A,V=B,J=L[f];J!=null&&vS(K,V,pH(J,!0).buffer)}},VYL),B0=RF(function(A,L,B){if(A.W!==0)return!1;
|
|
Nl(L,B,GI(A.N)>>>0);return!0},function(A,L,B){L=$3(L);
|
|
L!=null&&L!=null&&(WS(A,B,0),Mh(A.N,L))},L87),fI=RF(function(A,L,B){if(A.W!==0)return!1;
|
|
Nl(L,B,GI(A.N));return!0},function(A,L,B){L=ii(L);
|
|
L!=null&&(L=parseInt(L,10),WS(A,B,0),jCk(A.N,L))},Jx8);var UoC=new Map;g.G(Wkw,do8);qAw.prototype.register=function(){LG(this)};g.G(pC,PS);pC.prototype.V=xov([0,ZDQ,D_D,-2,wUQ]);zPE.prototype.Iv=function(A){var L=this.N[A.key];if(A.valueType==="proto"){try{var B=JSON.parse(L);if(Array.isArray(B))return B}catch(f){}return A.defaultValue}return typeof L===typeof A.defaultValue?L:A.defaultValue};var arL={s7T:1,aE:2,d71:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};LnC.prototype.k8=function(A){if(typeof A==="string"&&A.length!=0){var L=this.Zx;if(L.W){A=A.split("&");for(var B=A.length-1;B>=0;B--){var f=A[B].split("="),K=decodeURIComponent(f[0]);f.length>1?(f=decodeURIComponent(f[1]),f=/^[0-9]+$/g.exec(f)?parseInt(f,10):f):f=1;(K=L.N[K])&&K.V(f)}}}};var KI=null;var HI=g.rI.performance,tY1=!!(HI&&HI.mark&&HI.measure&&HI.clearMarks),Gr=er(function(){var A;if(A=tY1){var L=L===void 0?window:L;if(KI===null){KI="";try{A="";try{A=L.top.location.hash}catch(f){A=L.location.hash}if(A){var B=A.match(/\bdeid=([\d,]+)/);KI=B?B[1]:""}}catch(f){}}L=KI;A=!!L.indexOf&&L.indexOf("1337")>=0}return A});
|
|
rF.prototype.disable=function(){this.N=!1;this.events!==this.W.google_js_reporting_queue&&(Gr()&&g.yB(this.events,JDE),this.events.length=0)};
|
|
rF.prototype.start=function(A,L){if(!this.N)return null;var B=Knw()||f47();A=new VVk(A,L,B);L="goog_"+A.label+"_"+A.uniqueId+"_start";HI&&Gr()&&HI.mark(L);return A};
|
|
rF.prototype.end=function(A){if(this.N&&typeof A.value==="number"){var L=Knw()||f47();A.duration=L-A.value;L="goog_"+A.label+"_"+A.uniqueId+"_end";HI&&Gr()&&HI.mark(L);!this.N||this.events.length>2048||this.events.push(A)}};var SzQ=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Ow=/#|$/,daw=/[?&]($|#)/;wXQ.prototype.rP=function(A,L,B,f,K){K=K||this.gU;try{var V=new tD;V.N.push(1);V.W[1]=k$("context",A);L.error&&L.meta&&L.id||(L=new WI(vI(L)));if(L.msg){var J=L.msg.substring(0,512);V.N.push(2);V.W[2]=k$("msg",J)}var R=L.meta||{};if(this.v6)try{this.v6(R)}catch(d){}if(f)try{f(R)}catch(d){}f=[R];V.N.push(3);V.W[3]=f;var Z=To1();if(Z.W){var N=Z.W.url||"";V.N.push(4);V.W[4]=k$("top",N)}var F={url:Z.N.url||""};if(Z.N.url){var D=g.bp(Z.N.url);var I=hW(D[1],null,D[3],D[4])}else I="";N=[F,{url:I}];V.N.push(5);
|
|
V.W[5]=N;o$E(this.N,K,V,B)}catch(d){try{o$E(this.N,K,{context:"ecmserr",rctx:A,msg:vI(d),url:Z&&Z.N.url},B)}catch(w){}}return this.RP};
|
|
g.G(WI,BK0);var Ys,Uw,Ml=new rF;Ys=new function(){var A="https:";qo&&qo.location&&qo.location.protocol==="http:"&&(A="http:");this.W=A;this.N=.01};
|
|
Uw=new wXQ;qo&&qo.document&&(qo.document.readyState=="complete"?yDw():Ml.N&&gK(qo,"load",function(){yDw()}));var GVC=Date.now(),up=-1,nC=-1,Qrk,aF=-1,zr=!1;Ag.prototype.equals=function(A,L){return!!A&&(!(L===void 0?0:L)||this.volume==A.volume)&&this.V==A.V&&AD(this.N,A.N)&&!0};L9.prototype.Zg=function(){return this.X};
|
|
L9.prototype.equals=function(A,L){return this.U.equals(A.U,L===void 0?!1:L)&&this.X==A.X&&AD(this.V,A.V)&&AD(this.T,A.T)&&this.N==A.N&&this.D==A.D&&this.W==A.W&&this.G==A.G};var k6D={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},ft={h0:"start",e_:"firstquartile",wd:"midpoint",Cb:"thirdquartile",COMPLETE:"complete",ERROR:"error",UT:"metric",PAUSE:"pause",zR:"resume",A0:"skip",v1:"viewable_impression",D4:"mute",uP:"unmute",QH:"fullscreen",xx:"exitfullscreen",Xo:"bufferstart",j_:"bufferfinish",vj:"fully_viewable_audible_half_duration_impression",FW:"measurable_impression",tN:"abandon",Cc:"engagedview",oD:"impression",r3:"creativeview",LOADED:"loaded",
|
|
ecj:"progress",CLOSE:"close",S7j:"collapse",Tkx:"overlay_resize",j7j:"overlay_unmeasurable_impression",Xuj:"overlay_unviewable_impression",YUj:"overlay_viewable_immediate_impression",iaT:"overlay_viewable_end_of_session_impression",zI:"custom_metric_viewable",Zy:"audio_audible",Mg:"audio_measurable",Dy:"audio_impression"},WqL="start firstquartile midpoint thirdquartile resume loaded".split(" "),vb1=["start","firstquartile","midpoint","thirdquartile"],idw=["abandon"],Hr={UNKNOWN:-1,h0:0,e_:1,wd:2,
|
|
Cb:3,COMPLETE:4,UT:5,PAUSE:6,zR:7,A0:8,v1:9,D4:10,uP:11,QH:12,xx:13,vj:14,FW:15,tN:16,Cc:17,oD:18,r3:19,LOADED:20,zI:21,Xo:22,j_:23,Dy:27,Mg:28,Zy:29};var sRE={LFp:"addEventListener",TRr:"getMaxSize",jU4:"getScreenSize",XBx:"getState",iX4:"getVersion",wL4:"removeEventListener",T$L:"isViewable"};l4e.prototype.update=function(A){A&&A.document&&(this.X=ot(!1,A,this.isMobileDevice),this.N=ot(!0,A,this.isMobileDevice),QRQ(this,A),maE(this,A))};Rt.prototype.cancel=function(){Oz().clearTimeout(this.N);this.N=null};
|
|
Rt.prototype.schedule=function(){var A=this,L=Oz(),B=gF().N.N;this.N=L.setTimeout(yv(B,PI(143,function(){A.W++;A.V.sample()})),rD6())};g.p=Zx.prototype;g.p.j0=function(){return!1};
|
|
g.p.initialize=function(){return this.isInitialized=!0};
|
|
g.p.TX=function(){return this.N.wT};
|
|
g.p.jk=function(){return this.N.Wn};
|
|
g.p.fail=function(A,L){if(!this.Wn||(L===void 0?0:L))this.Wn=!0,this.wT=A,this.G=0,this.N!=this||F_(this)};
|
|
g.p.getName=function(){return this.N.Ys};
|
|
g.p.q2=function(){return this.N.WU()};
|
|
g.p.WU=function(){return{}};
|
|
g.p.cY=function(){return this.N.G};
|
|
g.p.ML=function(){var A=V6();A.N=ot(!0,this.V,A.isMobileDevice)};
|
|
g.p.Ri=function(){maE(V6(),this.V)};
|
|
g.p.Ju=function(){return this.U.N};
|
|
g.p.sample=function(){};
|
|
g.p.isActive=function(){return this.N.T};
|
|
g.p.Cj=function(A){var L=this.N;this.N=A.cY()>=this.G?A:this;L!==this.N?(this.T=this.N.T,F_(this)):this.T!==this.N.T&&(this.T=this.N.T,F_(this))};
|
|
g.p.M2=function(A){if(A.W===this.N){var L=!this.U.equals(A,this.yj);this.U=A;L&&$ay(this)}};
|
|
g.p.cL=function(){return this.yj};
|
|
g.p.dispose=function(){this.ZM=!0};
|
|
g.p.TL=function(){return this.ZM};g.p=Dx.prototype;g.p.observe=function(){return!0};
|
|
g.p.unobserve=function(){};
|
|
g.p.dM=function(A){this.D=A};
|
|
g.p.dispose=function(){if(!this.TL()){var A=this.W;g.Lx(A.D,this);A.yj&&this.cL()&&ivS(A);this.unobserve();this.Vj=!0}};
|
|
g.p.TL=function(){return this.Vj};
|
|
g.p.q2=function(){return this.W.q2()};
|
|
g.p.cY=function(){return this.W.cY()};
|
|
g.p.TX=function(){return this.W.TX()};
|
|
g.p.jk=function(){return this.W.jk()};
|
|
g.p.Cj=function(){};
|
|
g.p.M2=function(){this.xr()};
|
|
g.p.cL=function(){return this.ZM};g.p=It.prototype;g.p.cY=function(){return this.N.cY()};
|
|
g.p.TX=function(){return this.N.TX()};
|
|
g.p.jk=function(){return this.N.jk()};
|
|
g.p.create=function(A,L,B){var f=null;this.N&&(f=this.w4(A,L,B),Ni(this.N,f));return f};
|
|
g.p.SW=function(){return this.Xz()};
|
|
g.p.Xz=function(){return!1};
|
|
g.p.init=function(A){return this.N.initialize()?(Ni(this.N,this),this.U=A,!0):!1};
|
|
g.p.Cj=function(A){A.cY()==0&&this.U(A.TX(),this)};
|
|
g.p.M2=function(){};
|
|
g.p.cL=function(){return!1};
|
|
g.p.dispose=function(){this.D=!0};
|
|
g.p.TL=function(){return this.D};
|
|
g.p.q2=function(){return{}};wH.prototype.add=function(A,L,B){++this.V;A=new Ove(A,L,B);this.N.push(new Ove(A.W,A.N,A.V+this.V/4096));this.W=!0;return this};Uak.prototype.toString=function(){var A="//pagead2.googlesyndication.com//pagead/gen_204",L=y6(this.N);L.length>0&&(A+="?"+L);return A};g.Y.prototype.o4=!1;g.Y.prototype.TL=function(){return this.o4};
|
|
g.Y.prototype.dispose=function(){this.o4||(this.o4=!0,this.l1())};
|
|
g.Y.prototype[Symbol.dispose]=function(){this.dispose()};
|
|
g.Y.prototype.addOnDisposeCallback=function(A,L){this.o4?L!==void 0?A.call(L):A():(this.WR||(this.WR=[]),L&&(A=A.bind(L)),this.WR.push(A))};
|
|
g.Y.prototype.l1=function(){if(this.WR)for(;this.WR.length;)this.WR.shift()()};var TGk=[0,F8E,gNy,-1];GH.prototype.update=function(A,L,B){A&&(this.N+=L,this.W+=L,this.U+=L,this.V=Math.max(this.V,this.U));if(B===void 0?!A:B)this.U=0};var xa1=[1,.75,.5,.3,0];rH.prototype.update=function(A,L,B,f,K,V){V=V===void 0?!0:V;L=K?Math.min(A,L):L;for(K=0;K<this.W.length;K++){var J=this.W[K],R=L>0&&L>=J;J=!(A>0&&A>=J)||B;this.N[K].update(V&&R,f,!V||J)}};k1.prototype.update=function(A,L,B,f){this.X=this.X!=-1?Math.min(this.X,L.Yb):L.Yb;this.qp=Math.max(this.qp,L.Yb);this.Vj=this.Vj!=-1?Math.min(this.Vj,L.s7):L.s7;this.wT=Math.max(this.wT,L.s7);this.Nl.update(L.s7,B.s7,L.N,A,f);this.S4+=A;L.Yb===0&&(this.Ys+=A);this.W.update(L.Yb,B.Yb,L.N,A,f);B=f||B.X$!=L.X$?B.isVisible()&&L.isVisible():B.isVisible();L=!L.isVisible()||L.N;this.Cr.update(B,A,L)};
|
|
k1.prototype.Ft=function(){return this.Cr.V>=this.Ox};if(Jg&&Jg.URL){var lf7=Jg.URL,m_1;a:{if(lf7){var QBy=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Vb=QBy.exec(decodeURIComponent(lf7));if(Vb){m_1=Vb[1]&&Vb[1].length>1?Vb[1].substring(1):"true";break a}}catch(A){}}m_1=""}Uw.RP=!(m_1.length>0)};var CwE=new uA(0,0,0,0);var o38=new uA(0,0,0,0);g.G(C9,g.Y);g.p=C9.prototype;
|
|
g.p.l1=function(){if(this.q4.N){if(this.v$.pR){var A=this.q4.N;typeof A.removeEventListener==="function"&&A.removeEventListener("mouseover",this.v$.pR,jV());this.v$.pR=null}this.v$.uX&&(A=this.q4.N,typeof A.removeEventListener==="function"&&A.removeEventListener("mouseout",this.v$.uX,jV()),this.v$.uX=null)}this.VR&&this.VR.dispose();this.rX&&this.rX.dispose();delete this.fm;delete this.nR;delete this.uL;delete this.q4.G$;delete this.q4.N;delete this.v$;delete this.VR;delete this.rX;delete this.Zx;
|
|
g.Y.prototype.l1.call(this)};
|
|
g.p.Gf=function(){return this.rX?this.rX.N:this.position};
|
|
g.p.k8=function(A){gF().k8(A)};
|
|
g.p.cL=function(){return!1};
|
|
g.p.fU=function(){return new k1};
|
|
g.p.n9=function(){return this.fm};
|
|
g.p.kF=function(A){return VT0(this,A,1E4)};
|
|
g.p.zL=function(A,L,B,f,K,V,J){this.g6||(this.Ap&&(A=this.LI(A,B,K,J),f=f&&this.Ic.Yb>=(this.X$()?.3:.5),this.dl(V,A,f),this.gN=L,A.Yb>0&&-1===this.V6&&(this.V6=L),this.ZP==-1&&this.Ft()&&(this.ZP=L),this.XM==-2&&(this.XM=ml(this.Gf())?A.Yb:-1),this.Ic=A),this.nR(this))};
|
|
g.p.dl=function(A,L,B){this.n9().update(A,L,this.Ic,B)};
|
|
g.p.uI=function(){return new go};
|
|
g.p.LI=function(A,L,B,f){B=this.uI();B.N=L;L=Oz().W;L=GV(Jg)===0?-1:L.isVisible()?0:1;B.W=L;B.Yb=this.jG(A);B.X$=this.X$();B.s7=f;return B};
|
|
g.p.jG=function(A){return this.opacity===0&&qV(this.Zx,"opac")===1?0:A};
|
|
g.p.X$=function(){return!1};
|
|
g.p.e3=function(){return this.eF4||this.aM4};
|
|
g.p.ob=function(){eX()};
|
|
g.p.gA=function(){eX()};
|
|
g.p.GU=function(){return this.requestSource};
|
|
g.p.Mo=function(){return 0};
|
|
g.p.Ft=function(){return this.fm.Ft()};
|
|
g.p.X8=function(){var A=this.Ap;A=(this.hasCompleted||this.TL())&&!A;var L=gF().W!==2||this.bVp;return this.g6||L&&A?2:this.Ft()?4:3};
|
|
g.p.J5=function(){return 0};g.$1.prototype.next=function(){return g.JN};
|
|
g.JN={done:!0,value:void 0};g.$1.prototype.iM=function(){return this};g.G(FTw,go);var Sy=d4k([void 0,1,2,3,4,8,16]),Rz=d4k([void 0,4,8,16]),iDv={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:c2("p0",Rz),p1:c2("p1",Rz),p2:c2("p2",Rz),p3:c2("p3",Rz),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ex("mtos1",[0,2,4],!1,Rz),mtos2:Ex("mtos2",[0,2,4],!1,Rz),mtos3:Ex("mtos3",[0,2,4],!1,Rz),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:c2("a0",Rz),a1:c2("a1",Rz),a2:c2("a2",Rz),a3:c2("a3",Rz),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:c2("c0",Rz),c1:c2("c1",Rz),c2:c2("c2",Rz),c3:c2("c3",Rz),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:c2("qmtos",Sy),qnc:c2("qnc",Sy),qmv:c2("qmv",Sy),qnv:c2("qnv",Sy),
|
|
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:c2("ss0",Rz),ss1:c2("ss1",Rz),ss2:c2("ss2",Rz),ss3:c2("ss3",Rz),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
|
|
omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},$_Q=Object.assign({},iDv,{avid:P4("audio"),avas:"avas",vs:"vs"}),XUv={atos:"atos",avt:Ex("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(A,L){return function(B){return B[A]===void 0&&L!==void 0?L:B[A]}}("ss",0),
|
|
t:"t"};W2.prototype.getValue=function(){return this.W};
|
|
W2.prototype.update=function(A,L){A>=32||(this.N&1<<A&&!L?this.W&=~(1<<A):this.N&1<<A||!L||(this.W|=1<<A),this.N|=1<<A)};g.G(v2,k1);
|
|
v2.prototype.update=function(A,L,B,f){if(!L.paused){k1.prototype.update.call(this,A,L,B,f);var K=Ox(L)&&Ox(B),V=(f?Math.min(L.Yb,B.Yb):B.Yb)>=.5;f9(L.volume)&&(this.U=this.U!=-1?Math.min(this.U,L.volume):L.volume,this.T=Math.max(this.T,L.volume));V&&(this.ZM+=A,this.yj+=K?A:0);this.N.update(L.Yb,B.Yb,L.N,A,f,K);this.V.update(!0,A);this.D.update(K,A);this.Wn.update(B.fullscreen,A);this.ql.update(K&&!V,A);A=Math.floor(L.mediaTime/1E3);this.JF.update(A,L.isVisible());this.cn.update(A,L.Yb>=1);this.sx.update(A,
|
|
Ox(L))}};g3E.prototype.W=function(A){this.V||(this.N(A)?(A=m$v(this.yj,this.U,A),this.D|=A,A=A==0):A=!1,this.V=A)};g.G(P2,g3E);P2.prototype.N=function(){return!0};
|
|
P2.prototype.T=function(){return!1};
|
|
P2.prototype.getId=function(){var A=this,L=ls(ft,function(B){return B==A.U});
|
|
return Hr[L].toString()};
|
|
P2.prototype.toString=function(){var A="";this.T()&&(A+="c");this.V&&(A+="s");this.D>0&&(A+=":"+this.D);return this.getId()+A};g.G(x1,P2);x1.prototype.W=function(A,L){L=L===void 0?null:L;L!=null&&this.X.push(L);P2.prototype.W.call(this,A)};g.G(eq,Gyw);eq.prototype.W=function(){return null};
|
|
eq.prototype.V=function(){return[]};g.G(n9,Dx);g.p=n9.prototype;g.p.HH=function(){if(this.element){var A=this.element,L=this.W.N.V;try{try{var B=tVQ(A.getBoundingClientRect())}catch(N){B=new uA(0,0,0,0)}var f=B.right-B.left,K=B.bottom-B.top,V=yO6(A,L),J=V.x,R=V.y;var Z=new uA(Math.round(R),Math.round(J+f),Math.round(R+K),Math.round(J))}catch(N){Z=CwE.clone()}this.V=Z;this.N=XXk(this,this.V)}};
|
|
g.p.nF=function(){this.T=this.W.U.N};
|
|
g.p.Md=function(A){var L=qV(this.Zx,"od")==1;return LT8(A,this.T,this.element,L)};
|
|
g.p.zw=function(){this.timestamp=eX()};
|
|
g.p.xr=function(){this.zw();this.HH();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var A=this.element;var L=new g.Sr(A.videoWidth,A.videoHeight);A=this.N;var B=aC(A),f=A.getHeight(),K=L.width;L=L.height;K<=0||L<=0||B<=0||f<=0||(K/=L,L=B/f,A=A.clone(),K>L?(B/=K,f=(f-B)/2,f>0&&(f=A.top+f,A.top=Math.round(f),A.bottom=Math.round(f+B))):(f*=K,B=Math.round((B-f)/2),B>0&&(B=A.left+B,A.left=Math.round(B),A.right=Math.round(B+f))));this.N=A}this.nF();
|
|
A=this.N;B=this.T;A=A.left<=B.right&&B.left<=A.right&&A.top<=B.bottom&&B.top<=A.bottom?new uA(Math.max(A.top,B.top),Math.min(A.right,B.right),Math.min(A.bottom,B.bottom),Math.max(A.left,B.left)):new uA(0,0,0,0);B=A.top>=A.bottom||A.left>=A.right?new uA(0,0,0,0):A;A=this.W.U;L=K=f=0;if((this.N.bottom-this.N.top)*(this.N.right-this.N.left)>0)if(this.Md(B))B=new uA(0,0,0,0);else{f=V6().U;L=new uA(0,f.height,f.width,0);var V;f=Q6(B,(V=this.D)!=null?V:this.N);K=Q6(B,V6().N);L=Q6(B,L)}V=B.top>=B.bottom||
|
|
B.left>=B.right?new uA(0,0,0,0):Lv(B,-this.N.left,-this.N.top);Sq()||(K=f=0);this.yj=new L9(A,this.element,this.N,V,f,K,this.timestamp,L)};
|
|
g.p.getName=function(){return this.W.getName()};var ODL=new uA(0,0,0,0);g.G(zH,n9);g.p=zH.prototype;g.p.observe=function(){this.U();return!0};
|
|
g.p.M2=function(){n9.prototype.xr.call(this)};
|
|
g.p.zw=function(){};
|
|
g.p.HH=function(){};
|
|
g.p.xr=function(){this.U();n9.prototype.xr.call(this)};
|
|
g.p.Cj=function(A){A=A.isActive();A!==this.G&&(A?this.U():(V6().N=new uA(0,0,0,0),this.N=new uA(0,0,0,0),this.T=new uA(0,0,0,0),this.timestamp=-1));this.G=A};var Z9={},m46=(Z9.firstquartile=0,Z9.midpoint=1,Z9.thirdquartile=2,Z9.complete=3,Z9);g.G(at,C9);g.p=at.prototype;g.p.cL=function(){return!0};
|
|
g.p.l5=function(){return this.Rn==2};
|
|
g.p.kF=function(A){return VT0(this,A,Math.max(1E4,this.V/3))};
|
|
g.p.zL=function(A,L,B,f,K,V,J){var R=this,Z=this.X(this)||{};g.Xc(Z,K);this.V=Z.duration||this.V;this.yj=Z.isVpaid||this.yj;this.Ys=Z.isYouTube||this.Ys;Oz();this.Nl=!1;K=sr7(this,L);rpw(this)===1&&(V=K);C9.prototype.zL.call(this,A,L,B,f,Z,V,J);this.Zf&&this.Zf.V&&g.yB(this.T,function(N){N.W(R)})};
|
|
g.p.dl=function(A,L,B){C9.prototype.dl.call(this,A,L,B);o3(this).update(A,L,this.Ic,B);this.Ox=Ox(this.Ic)&&Ox(L);this.wT==-1&&this.cn&&(this.wT=this.n9().V.N);this.s6.V=0;A=this.Ft();L.isVisible()&&Ux(this.s6,"vs");A&&Ux(this.s6,"vw");f9(L.volume)&&Ux(this.s6,"am");Ox(L)?Ux(this.s6,"a"):Ux(this.s6,"mut");this.OV&&Ux(this.s6,"f");L.W!=-1&&(Ux(this.s6,"bm"),L.W==1&&(Ux(this.s6,"b"),Ox(L)&&Ux(this.s6,"umutb")));Ox(L)&&L.isVisible()&&Ux(this.s6,"avs");this.Ox&&A&&Ux(this.s6,"avw");L.Yb>0&&Ux(this.s6,
|
|
"pv");Br(this,this.n9().V.N,!0)&&Ux(this.s6,"gdr");bC(this.n9().W,1)>=2E3&&Ux(this.s6,"pmx");this.Nl&&Ux(this.s6,"tvoff")};
|
|
g.p.fU=function(){return new v2};
|
|
g.p.n9=function(){return this.fm};
|
|
g.p.uI=function(){return new FTw};
|
|
g.p.LI=function(A,L,B,f){A=C9.prototype.LI.call(this,A,L,B,f===void 0?-1:f);A.fullscreen=this.OV;A.paused=this.l5();A.volume=B.volume;f9(A.volume)||(this.mH++,L=this.Ic,f9(L.volume)&&(A.volume=L.volume));B=B.currentTime;A.mediaTime=B!==void 0&&B>=0?B:-1;return A};
|
|
g.p.jG=function(A){return V6(),this.OV?1:C9.prototype.jG.call(this,A)};
|
|
g.p.Mo=function(){return 1};
|
|
g.p.getDuration=function(){return this.V};
|
|
g.p.X8=function(){return this.g6?2:h3e(this)?5:this.Ft()?4:3};
|
|
g.p.J5=function(){return this.ql?this.n9().D.V>=2E3?4:3:2};
|
|
g.p.dM=function(A){this.rX&&this.rX.dM(A)};var ENL=g.Ed();U4L.prototype.reset=function(){this.N=[];this.W=[]};
|
|
var R3=$$(U4L);g.G(Fx,It);g.p=Fx.prototype;g.p.getName=function(){return(this.W?this.W:this.N).getName()};
|
|
g.p.q2=function(){return(this.W?this.W:this.N).q2()};
|
|
g.p.cY=function(){return(this.W?this.W:this.N).cY()};
|
|
g.p.init=function(A){var L=!1;(0,g.yB)(this.V,function(B){B.initialize()&&(L=!0)});
|
|
L&&(this.U=A,Ni(this.N,this));return L};
|
|
g.p.dispose=function(){(0,g.yB)(this.V,function(A){A.dispose()});
|
|
It.prototype.dispose.call(this)};
|
|
g.p.SW=function(){return K9(this.V,function(A){return A.j0()})};
|
|
g.p.Xz=function(){return K9(this.V,function(A){return A.j0()})};
|
|
g.p.w4=function(A,L,B){return new n9(A,this.N,L,B)};
|
|
g.p.M2=function(A){this.W=A.W};var uL7={threshold:[0,.3,.5,.75,1]};g.G(Dk,n9);g.p=Dk.prototype;g.p.observe=function(){var A=this;this.qp||(this.qp=eX());if(g$v(298,function(){return a7w(A)}))return!0;
|
|
this.W.fail("msf");return!1};
|
|
g.p.unobserve=function(){if(this.U&&this.element)try{this.U.unobserve(this.element),this.G?(this.G.unobserve(this.element),this.G=null):this.X&&(this.X.disconnect(),this.X=null)}catch(A){}};
|
|
g.p.xr=function(){var A=dV(this);A.length>0&&I3(this,A);n9.prototype.xr.call(this)};
|
|
g.p.HH=function(){};
|
|
g.p.Md=function(){return!1};
|
|
g.p.nF=function(){};
|
|
g.p.q2=function(){var A={};return Object.assign(this.W.q2(),(A.niot_obs=this.qp,A.niot_cbk=this.Wn,A))};
|
|
g.p.getName=function(){return"nio"};g.G(wV,It);wV.prototype.getName=function(){return"nio"};
|
|
wV.prototype.Xz=function(){return!V6().W&&this.N.N.V.IntersectionObserver!=null};
|
|
wV.prototype.w4=function(A,L,B){return new Dk(A,this.N,L,B)};g.G(pt,Zx);pt.prototype.Ju=function(){return V6().N};
|
|
pt.prototype.j0=function(){var A=Lq0();this.G!==A&&(this.N!=this&&A>this.N.G&&(this.N=this,F_(this)),this.G=A);return A==2};yJ.prototype.sample=function(){Gz(this,Zk(),!1)};
|
|
yJ.prototype.U=function(){var A=Sq(),L=eX();A?(zr||(up=L,g.yB(R3.N,function(B){var f=B.n9();f.Ex=qi(f,L,B.Rn!=1)})),zr=!0):(this.X=V7v(this,L),zr=!1,Qrk=L,g.yB(R3.N,function(B){B.Ap&&(B.n9().G=L)}));
|
|
Gz(this,Zk(),!A)};
|
|
var jO=$$(yJ);var SGS=null,nt="",eO=!1;var Na8=Zuw().yz,s3=Zuw().HL;var d$v={Uz1:"visible",eEp:"audible",H51:"time",qZr:"timetype"},IZ8={visible:function(A){return/^(100|[0-9]{1,2})$/.test(A)},
|
|
audible:function(A){return A=="0"||A=="1"},
|
|
timetype:function(A){return A=="mtos"||A=="tos"},
|
|
time:function(A){return/^(100|[0-9]{1,2})%$/.test(A)||/^([0-9])+ms$/.test(A)}};
|
|
D$y.prototype.setTime=function(A,L,B){L=="ms"?(this.V=A,this.U=-1):(this.V=-1,this.U=A);this.D=B===void 0?"tos":B;return this};g.G(t5,P2);t5.prototype.getId=function(){return this.X};
|
|
t5.prototype.T=function(){return!0};
|
|
t5.prototype.N=function(A){var L=A.n9(),B=A.getDuration();return K9(this.G,function(f){if(f.N!=void 0)var K=pGS(f,L);else b:{switch(f.D){case "mtos":K=f.W?L.D.V:L.V.N;break b;case "tos":K=f.W?L.D.N:L.V.N;break b}K=0}K==0?f=!1:(f=f.V!=-1?f.V:B!==void 0&&B>0?f.U*B:-1,f=f!=-1&&K>=f);return f})};g.G(ke,wgQ);ke.prototype.N=function(A){var L=new I77;L.N=Y1(A,iDv);L.W=Y1(A,XUv);return L};g.G(Tz,P2);Tz.prototype.N=function(A){return h3e(A)};g.G($e,Gyw);g.G(Xx,P2);Xx.prototype.N=function(A){return A.n9().Ft()};g.G(O3,x1);O3.prototype.N=function(A){var L=g.zK(this.X,qV(gF().Zx,"ovms"));return!A.g6&&(A.Rn!=0||L)};g.G(E3,$e);E3.prototype.W=function(){return new O3(this.N)};
|
|
E3.prototype.V=function(){return[new Xx("viewable_impression",this.N),new Tz(this.N)]};g.G(cr,zH);cr.prototype.U=function(){var A=g.bB("ima.admob.getViewability"),L=qV(this.Zx,"queryid");typeof A==="function"&&L&&A(L)};
|
|
cr.prototype.getName=function(){return"gsv"};g.G(Mn,It);Mn.prototype.getName=function(){return"gsv"};
|
|
Mn.prototype.Xz=function(){var A=V6();gF();return A.W&&!1};
|
|
Mn.prototype.w4=function(A,L,B){return new cr(this.N,L,B)};g.G(Ye,zH);Ye.prototype.U=function(){var A=this,L=g.bB("ima.bridge.getNativeViewability"),B=qV(this.Zx,"queryid");typeof L==="function"&&B&&L(B,function(f){g.mi(f)&&A.X++;var K=f.opt_nativeViewVisibleBounds||{},V=f.opt_nativeViewHidden;A.N=kVk(f.opt_nativeViewBounds||{});var J=A.W.U;J.N=V?ODL.clone():kVk(K);A.timestamp=f.opt_nativeTime||-1;V6().N=J.N;f=f.opt_nativeVolume;f!==void 0&&(J.volume=f)})};
|
|
Ye.prototype.getName=function(){return"nis"};g.G(U3,It);U3.prototype.getName=function(){return"nis"};
|
|
U3.prototype.Xz=function(){var A=V6();gF();return A.W&&!1};
|
|
U3.prototype.w4=function(A,L,B){return new Ye(this.N,L,B)};g.G(Wr,Zx);g.p=Wr.prototype;g.p.j0=function(){return this.W.t8!=null};
|
|
g.p.WU=function(){var A={};this.JF&&(A.mraid=this.JF);this.Vj&&(A.mlc=1);A.mtop=this.W.A1M;this.X&&(A.mse=this.X);this.S4&&(A.msc=1);A.mcp=this.W.compatibility;return A};
|
|
g.p.nC=function(A){var L=g.pf.apply(1,arguments);try{return this.W.t8[A].apply(this.W.t8,L)}catch(B){xs(538,B,.01,function(f){f.method=A})}};
|
|
g.p.initialize=function(){var A=this;if(this.isInitialized)return!this.jk();this.isInitialized=!0;if(this.W.compatibility===2)return this.X="ng",this.fail("w"),!1;if(this.W.compatibility===1)return this.X="mm",this.fail("w"),!1;V6().G=!0;this.V.document.readyState&&this.V.document.readyState=="complete"?GwE(this):lC(this.V,"load",function(){Oz().setTimeout(PI(292,function(){return GwE(A)}),100)},292);
|
|
return!0};
|
|
g.p.ML=function(){var A=V6(),L=bue(this,"getMaxSize");A.N=new uA(0,L.width,L.height,0)};
|
|
g.p.Ri=function(){V6().U=bue(this,"getScreenSize")};
|
|
g.p.dispose=function(){sgD(this);Zx.prototype.dispose.call(this)};var cxQ=new function(A,L){this.key=A;this.defaultValue=L===void 0?!1:L;this.valueType="boolean"}("45378663");g.p=qn.prototype;g.p.Q2=function(A){iC(A,!1);PiS(A)};
|
|
g.p.o9=function(){};
|
|
g.p.JG=function(A,L,B,f){var K=this;A=new at(qo,A,B?L:-1,7,this.fW(),this.Hv());A.Ve=f;ZfD(A.Zx);vk(A.Zx,"queryid",A.Ve);A.k8("");R38(A,function(){return K.nz.apply(K,g.x7(g.pf.apply(0,arguments)))},function(){return K.F4L.apply(K,g.x7(g.pf.apply(0,arguments)))});
|
|
(f=$$(Nn).N)&&KTC(A,f);this.V&&(A.dM(this.V),this.V=null);A.q4.G$&&$$(obL);return A};
|
|
g.p.Cj=function(A){switch(A.cY()){case 0:if(A=$$(Nn).N)A=A.N,g.Lx(A.D,this),A.yj&&this.cL()&&ivS(A);xe();break;case 2:gV()}};
|
|
g.p.M2=function(){};
|
|
g.p.cL=function(){return!1};
|
|
g.p.F4L=function(A,L){A.g6=!0;switch(A.Mo()){case 1:QgC(A,L);break;case 2:this.XQ(A)}};
|
|
g.p.TTT=function(A){var L=A.X(A);L&&(L=L.volume,A.ql=f9(L)&&L>0);kyE(A,0);return Kt(A,"start",Sq())};
|
|
g.p.G8=function(A,L,B){Gz(jO,[A],!Sq());return this.R$(A,L,B)};
|
|
g.p.R$=function(A,L,B){return Kt(A,B,Sq())};
|
|
g.p.DpL=function(A){return A9(A,"firstquartile",1)};
|
|
g.p.RFF=function(A){A.cn=!0;return A9(A,"midpoint",2)};
|
|
g.p.jrs=function(A){return A9(A,"thirdquartile",3)};
|
|
g.p.Upn=function(A){var L=A9(A,"complete",4);A5(A);return L};
|
|
g.p.wns=function(A){A.Rn=3;return Kt(A,"error",Sq())};
|
|
g.p.tJ=function(A,L,B){L=Sq();if(A.l5()&&!L){var f=A.n9(),K=eX();f.G=K}Gz(jO,[A],!L);A.l5()&&(A.Rn=1);return Kt(A,B,L)};
|
|
g.p.JFn=function(A,L){L=this.G8(A,L||{},"skip");A5(A);return L};
|
|
g.p.M44=function(A,L){iC(A,!0);return this.G8(A,L||{},"fullscreen")};
|
|
g.p.Zr4=function(A,L){iC(A,!1);return this.G8(A,L||{},"exitfullscreen")};
|
|
g.p.Pw=function(A,L,B){L=A.n9();var f=eX();L.Ex=qi(L,f,A.Rn!=1);Gz(jO,[A],!Sq());A.Rn==1&&(A.Rn=2);return Kt(A,B,Sq())};
|
|
g.p.Sxp=function(A){Gz(jO,[A],!Sq());return A.W()};
|
|
g.p.Rq=function(A){Gz(jO,[A],!Sq());this.WX(A);A5(A);return A.W()};
|
|
g.p.nz=function(){};
|
|
g.p.XQ=function(){};
|
|
g.p.WX=function(){};
|
|
g.p.J6=function(){};
|
|
g.p.xL=function(){};
|
|
g.p.Hv=function(){this.N||(this.N=this.xL());return this.N==null?new eq:new E3(this.N)};
|
|
g.p.fW=function(){return new ke};g.G(Lc,P2);Lc.prototype.N=function(A){return A.J5()==4};g.G(ox,x1);ox.prototype.N=function(A){A=A.J5();return A==3||A==4};g.G(B3,$e);B3.prototype.W=function(){return new ox(this.N)};
|
|
B3.prototype.V=function(){return[new Lc(this.N)]};g.G(fc,wgQ);fc.prototype.N=function(A){A&&(A.e===28&&(A=Object.assign({},A,{avas:3})),A.vs===4||A.vs===5)&&(A=Object.assign({},A,{vs:3}));var L=new I77;L.N=Y1(A,$_Q);L.W=Y1(A,XUv);return L};XGE.prototype.W=function(){return g.bB(this.N)};g.G(Kc,qn);g.p=Kc.prototype;g.p.o9=function(A,L){var B=this,f=$$(Nn);if(f.N!=null)switch(f.N.getName()){case "nis":var K=M7w(this,A,L);break;case "gsv":K=cdL(this,A,L);break;case "exc":K=YG7(this,A)}K||(L.opt_overlayAdElement?K=void 0:L.opt_adElement&&(K=iu8(this,A,L.opt_adElement,L.opt_osdId)));K&&K.Mo()==1&&(K.X==g.x9&&(K.X=function(V){return B.J6(V)}),Eb7(this,K,L));
|
|
return K};
|
|
g.p.J6=function(A){A.W=0;A.ZM=0;if(A.U=="h"||A.U=="n"){gF();A.sx&&(gF(),uH(this)!="h"&&uH(this));var L=g.bB("ima.common.getVideoMetadata");if(typeof L==="function")try{var B=L(A.Ve)}catch(K){A.W|=4}else A.W|=2}else if(A.U=="b")if(L=g.bB("ytads.bulleit.getVideoMetadata"),typeof L==="function")try{B=L(A.Ve)}catch(K){A.W|=4}else A.W|=2;else if(A.U=="ml")if(L=g.bB("ima.common.getVideoMetadata"),typeof L==="function")try{B=L(A.Ve)}catch(K){A.W|=4}else A.W|=2;else A.W|=1;A.W||(B===void 0?A.W|=8:B===null?
|
|
A.W|=16:g.mi(B)?A.W|=32:B.errorCode!=null&&(A.ZM=B.errorCode,A.W|=64));B==null&&(B={});L=B;A.G=0;for(var f in k6D)L[f]==null&&(A.G|=k6D[f]);$$7(L,"currentTime");$$7(L,"duration");f9(B.volume)&&f9()&&(B.volume*=NaN);return B};
|
|
g.p.xL=function(){gF();uH(this)!="h"&&uH(this);var A=U$E(this);return A!=null?new XGE(A):null};
|
|
g.p.XQ=function(A){!A.N&&A.g6&&a3(this,A,"overlay_unmeasurable_impression")&&(A.N=!0)};
|
|
g.p.WX=function(A){A.hJ&&(A.Ft()?a3(this,A,"overlay_viewable_end_of_session_impression"):a3(this,A,"overlay_unviewable_impression"),A.hJ=!1)};
|
|
g.p.nz=function(){};
|
|
g.p.JG=function(A,L,B,f){if(gF().flags.Iv(cxQ)){var K=qV(gF().Zx,"mm"),V={};(K=(V[jX.w3]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",V[jX.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",V)[K])&&Pqk(this,K);this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&xs(1044,Error())}A=qn.prototype.JG.call(this,A,L,B,f);this.D&&(L=this.T,A.D==null&&(A.D=new Zdy),L.N[A.Ve]=A.D,A.D.D=ENL);return A};
|
|
g.p.Q2=function(A){A&&A.Mo()==1&&this.D&&delete this.T.N[A.Ve];return qn.prototype.Q2.call(this,A)};
|
|
g.p.Hv=function(){this.N||(this.N=this.xL());return this.N==null?new eq:this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new B3(this.N):new E3(this.N)};
|
|
g.p.fW=function(){return this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new fc:new ke};
|
|
g.p.dM=function(A,L,B,f,K){L=new uA(B,L+f,B+K,L);(A=SO(R3,A))?A.dM(L):this.V=L};
|
|
var MYQ=ql(193,eKQ,void 0,Cqk);g.hf("Goog_AdSense_Lidar_sendVastEvent",MYQ);var YsQ=PI(194,function(A,L){L=L===void 0?{}:L;A=qGE($$(Kc),A,L);return x$6(A)});
|
|
g.hf("Goog_AdSense_Lidar_getViewability",YsQ);var U_L=ql(195,function(){return UV0()});
|
|
g.hf("Goog_AdSense_Lidar_getUrlSignalsArray",U_L);var W8y=PI(196,function(){return JSON.stringify(UV0())});
|
|
g.hf("Goog_AdSense_Lidar_getUrlSignalsList",W8y);var u3L=g.eE(["//ep2.adtrafficquality.google/sodar/",""]),aZL=g.eE(["//tpc.googlesyndication.com/sodar/",""]);g.G(SW,Error);g.G(NO,g.Y);NO.prototype.Vm=function(){return this.wpc.f()};
|
|
NO.prototype.Ax=function(A){this.wpc.c(A)};
|
|
NO.prototype.d6=function(A){return this.wpc.m(Biy(A))};
|
|
NO.prototype.Mu=function(A){return this.wpc.mws(Biy(A))};
|
|
g.G(Rx,g.Y);Rx.prototype.snapshot=function(A){return this.Bo.s(Object.assign({},A.WL&&{c:A.WL},A.MC&&{s:A.MC},A.JC!==void 0&&{p:A.JC}))};
|
|
Rx.prototype.f7=function(A){this.Bo.e(A)};
|
|
Rx.prototype.xc=function(){return this.Bo.l()};g.G(Da,g.Y);Da.prototype.share=function(){if(this.TL())throw Error("E:AD");this.W++;return this};
|
|
Da.prototype.dispose=function(){--this.W||g.Y.prototype.dispose.call(this)};R4C.prototype.bM=function(A,L){this.N.bM("/client_streamz/bg/frs",A,L)};
|
|
ZH8.prototype.bM=function(A,L,B,f,K,V){this.N.bM("/client_streamz/bg/wrl",A,L,B,f,K,V)};
|
|
Niv.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/ec",A,L)};
|
|
FVE.prototype.bM=function(A,L,B){this.N.bM("/client_streamz/bg/el",A,L,B)};
|
|
DhL.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/cec",A,L)};
|
|
dh6.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/po/csc",A,L)};
|
|
In0.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/po/ctav",A,L)};
|
|
wSE.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/po/cwsc",A,L)};g.G(pSv,PS);g.G(wm,PS);var sa=[1,2,3];var vNw=[0,sa,HDk,pUe,rx7];var qsE=[0,AN,[0,RbL,F8E]];g.G(pc,PS);var rm=[1,2,3];var PwL=[0,rm,d_Q,NGD,oz,qsE];g.G(yU,PS);var x_0=[0,AN,vNw,PwL];var eby=[0,aY];g.G(jW,PS);var nN7=[0,aY,-1,G67];var zby=[0,aY,-1,IfE,G67];g.G(gm,PS);var Ptv=[1,2,3];var ue0=[0,Ptv,oz,nN7,oz,zby,oz,eby];g.G(G1,PS);G1.prototype.vY=function(){var A=lq(this,3,zy,3,!0);Rr(A);return A[void 0]};G1.prototype.V=xov([0,aY,ue0,sBL,AN,x_0,yxk,jB1]);g.G(jKS,PS);g.p=H3.prototype;g.p.isEnabled=function(){if(!g.rI.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{rG:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
|
|
g.p.set=function(A,L,B){var f=!1;if(typeof B==="object"){var K=B.sameSite;f=B.secure||!1;var V=B.domain||void 0;var J=B.path||void 0;var R=B.rG}if(/[;=\s]/.test(A))throw Error('Invalid cookie name "'+A+'"');if(/[;\r\n]/.test(L))throw Error('Invalid cookie value "'+L+'"');R===void 0&&(R=-1);B=V?";domain="+V:"";J=J?";path="+J:"";f=f?";secure":"";R=R<0?"":R==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+R*1E3)).toUTCString();this.N.cookie=A+"="+L+B+J+R+f+(K!=null?
|
|
";samesite="+K:"")};
|
|
g.p.get=function(A,L){for(var B=A+"=",f=(this.N.cookie||"").split(";"),K=0,V;K<f.length;K++){V=La(f[K]);if(V.lastIndexOf(B,0)==0)return V.slice(B.length);if(V==A)return""}return L};
|
|
g.p.remove=function(A,L,B){var f=this.get(A)!==void 0;this.set(A,"",{rG:0,path:L,domain:B});return f};
|
|
g.p.F1=function(){return h9(this).keys};
|
|
g.p.aU=function(){return h9(this).values};
|
|
g.p.isEmpty=function(){return!this.N.cookie};
|
|
g.p.clear=function(){for(var A=h9(this).keys,L=A.length-1;L>=0;L--)this.remove(A[L])};
|
|
var c7=new H3(typeof document=="undefined"?null:document);bm.prototype.compress=function(A){var L,B,f,K;return g.c(function(V){switch(V.N){case 1:return L=new CompressionStream("gzip"),B=(new Response(L.readable)).arrayBuffer(),f=L.writable.getWriter(),g.X(V,f.write((new TextEncoder).encode(A)),2);case 2:return g.X(V,f.close(),3);case 3:return K=Uint8Array,g.X(V,B,4);case 4:return V.return(new K(V.W))}})};
|
|
bm.prototype.isSupported=function(A){return A<1024?!1:typeof CompressionStream!=="undefined"};g.G(t9,PS);kZ.prototype.setInterval=function(A){this.intervalMs=A;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
|
|
kZ.prototype.start=function(){var A=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){A.tick()},this.intervalMs),this.W=this.N())};
|
|
kZ.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
|
|
kZ.prototype.tick=function(){var A=this;if(this.enabled){var L=Math.max(this.N()-this.W,0);L<this.intervalMs*.8?this.timer=setTimeout(function(){A.tick()},this.intervalMs-L):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};g.G(T1,PS);g.G(lm,PS);g.G(g.mQ,PS);g.mQ.prototype.G4=function(){return ag(this,1)};
|
|
g.mQ.prototype.nj=OD(1);g.G(QU,PS);g.G(Cc,PS);var OHD=wF(Cc);g.G($Z,PS);var QKL=["platform","platformVersion","architecture","model","uaFullVersion"],im=new Cc,Xu=null;g.G(Oa,PS);g.G($hk,PS);g.G(Ea,PS);g.G(c3,PS);c3.prototype.J=function(){var A=this.yf;return aiQ(A,A[fd]|0,$hk,7)!==void 0};
|
|
c3.prototype.JY=function(){return WG(this,t9,16)};g.G(MO,PS);MO.prototype.KK=function(A){return KH(this,2,A)};Ua.prototype.KK=function(A){this.N.KK(A);return this};
|
|
Ua.prototype.build=function(A,L,B,f,K,V){L=L===void 0?0:L;B=B===void 0?0:B;f=f===void 0?null:f;K=K===void 0?0:K;V=V===void 0?0:V;if(!this.mf){var J=W3(this);var R=new g.mQ;R=KH(R,1,this.W);R=ra(R,2,li(this.isFinal));B=ra(R,3,Cd(B>0?B:void 0));B=ra(B,4,Cd(K>0?K:void 0));B=ra(B,5,Cd(V>0?V:void 0));K=B.yf;V=K[fd]|0;B=ST(B,V)?B:DZ(B,K,V)?da(B,K):new B.constructor(F3(K,V,!0));PG(J,g.mQ,10,B)}J=this.N.clone();B=Date.now().toString();J=ra(J,4,vg(B));A=xb(J,c3,3,A.slice());f&&(J=new T1,f=ra(J,13,Cd(f)),J=
|
|
new lm,f=PG(J,T1,2,f),J=new Ea,f=PG(J,lm,1,f),f=KH(f,2,9),PG(A,Ea,18,f));L&&oK(A,14,L);return A};g.v3.prototype.W=0;g.v3.prototype.reset=function(){this.N=this.V=this.U;this.W=0};
|
|
g.v3.prototype.getValue=function(){return this.V};g.G(IF,PS);var afw=wF(IF);g.G(v97,PS);var NZ;NZ=new qAw;g.G(eW,g.Y);g.p=eW.prototype;g.p.l1=function(){xZ(this);this.W.stop();this.JF.stop();g.Y.prototype.l1.call(this)};
|
|
g.p.dispatch=function(A){if(A instanceof c3)this.log(A);else try{var L=new c3,B=A.PV();var f=BS(L,8,B);this.log(f)}catch(K){nc(this,4,1)}};
|
|
g.p.log=function(A){nc(this,2,1);if(this.S4){A=A.clone();var L=this.Cr++;A=oK(A,21,L);this.componentId&&BS(A,26,this.componentId);L=A;var B=j7(L,1);var f=f===void 0?!1:f;var K=typeof B;f=B==null?B:K==="bigint"?String(Y3(64,B)):QT(B)?K==="string"?O6(B):f?U6(B):Wg(B):void 0;f==null&&(f=Date.now(),f=Number.isFinite(f)?f.toString():"0",ra(L,1,vg(f)));(XL?tS7(j7(L,15,void 0,void 0,eT)):tS7(j7(L,15)))!=null||oK(L,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(f=this.experimentIds.clone(),PG(L,
|
|
t9,16,f));nc(this,1,1);L=this.N.length-1E3+1;L>0&&(this.N.splice(0,L),this.U+=L,nc(this,3,L));this.N.push(A);this.Yq||this.W.enabled||this.W.start()}};
|
|
g.p.flush=function(A,L){var B=this;if(this.N.length===0)A&&A();else if(this.wT&&this.Wn)this.V.W=3,WVy(this);else{var f=Date.now();if(this.Ex>f&&this.ZM<f)L&&L("throttled");else{this.network&&(typeof this.network.G4==="function"?XSk(this.V,this.network.G4()):this.V.W=0);var K=this.N.length,V=this.V.build(this.N,this.U,this.T,this.je,this.Vj,this.qp),J=this.DH();if(J&&this.Ys===J)L&&L("stale-auth-token");else{this.N=[];this.W.enabled&&this.W.stop();this.U=0;f=V.PV();var R;this.X&&this.X.isSupported(f.length)&&
|
|
(R=this.X.compress(f));var Z=Y0E(this,f,J),N=function(I){B.D.reset();B.W.setInterval(B.D.getValue());if(I){var d=null;try{var w=JSON.stringify(JSON.parse(I.replace(")]}'\n","")));d=afw(w)}catch(Q){}if(d){I=Number(fr0(d,1,d6("-1")));I>0&&(B.ZM=Date.now(),B.Ex=B.ZM+I);I=MX(og);var r;Bg&&I&&((r=d.yf[I])==null?void 0:r[175237375])!=null&&Ap(WpL,3);a:{var h=h===void 0?!1:h;if(MX(vPe)&&MX(og)&&void 0===vPe){r=d.yf;I=r[og];if(!I)break a;if(I=I.x8)try{I(r,175237375,zA7);break a}catch(Q){cX(Q)}}h&&(h=d.yf,
|
|
(r=MX(og))&&r in h&&(h=h[r])&&delete h[175237375])}h=NZ.N?NZ.W(d,NZ.N,175237375,NZ.V):NZ.W(d,175237375,null,NZ.V);if(h=h===null?void 0:h)h=g.nu(h,1,-1),h!==-1&&(B.D=new g.v3(h<1?1:h,3E5,.1),B.W.setInterval(B.D.getValue()))}}A&&A();B.T=0},F=function(I,d){var w=q$(V,c3,3);
|
|
var r=Number(fr0(V,14));g.qO(B.D);B.W.setInterval(B.D.getValue());I===401&&J&&(B.Ys=J);r&&(B.U+=r);d===void 0&&(d=B.isRetryable(I));d&&(B.N=w.concat(B.N),B.Yq||B.W.enabled||B.W.start());nc(B,7,1);L&&L("net-send-failed",I);++B.T},D=function(){B.network&&B.network.send(Z,N,F)};
|
|
R?R.then(function(I){nc(B,5,K);Z.requestHeaders["Content-Encoding"]="gzip";Z.requestHeaders["Content-Type"]="application/binary";Z.body=I;Z.Ta=2;D()},function(){nc(B,6,K);
|
|
D()}):D()}}}};
|
|
g.p.isRetryable=function(A){return 500<=A&&A<600||A===401||A===0};z1.prototype.send=function(A,L,B){var f=this,K,V,J,R,Z,N,F,D,I,d;return g.c(function(w){switch(w.N){case 1:return V=(K=f.P1?new AbortController:void 0)?setTimeout(function(){K.abort()},A.timeoutMillis):void 0,g.S5(w,2,3),J=Object.assign({},{method:A.requestType,
|
|
headers:Object.assign({},A.requestHeaders)},A.body&&{body:A.body},A.withCredentials&&{credentials:"include"},{signal:A.timeoutMillis&&K?K.signal:null}),g.X(w,fetch(A.url,J),5);case 5:R=w.W;if(R.status!==200){(Z=B)==null||Z(R.status);w.Ux(3);break}if((N=L)==null){w.Ux(7);break}return g.X(w,R.text(),8);case 8:N(w.W);case 7:case 3:g.F9(w);clearTimeout(V);g.DR(w,0);break;case 2:F=g.NX(w);switch((D=F)==null?void 0:D.name){case "AbortError":(I=B)==null||I(408);break;default:(d=B)==null||d(400)}w.Ux(3)}})};
|
|
z1.prototype.G4=function(){return 4};g.G(um,g.Y);um.prototype.cH=function(){this.U=!0;return this};
|
|
um.prototype.build=function(){this.network||(this.network=new z1);var A=new eW({logSource:this.logSource,DH:this.DH?this.DH:lnw,sessionIndex:this.sessionIndex,nuM:this.Gg,mf:this.V,Yq:!1,cH:this.U,Js:this.Js,network:this.network});g.W(this,A);if(this.buildLabel){var L=this.buildLabel,B=W3(A.V);BS(B,7,L)}A.X=new bm;this.componentId&&(A.componentId=this.componentId);this.je&&(A.je=this.je);this.pageId&&(A.pageId=this.pageId);this.N&&((B=this.N)?(A.experimentIds||(A.experimentIds=new t9),L=A.experimentIds,
|
|
B=B.PV(),BS(L,4,B)):A.experimentIds&&ra(A.experimentIds,4));this.W&&(A.wT=A.Wn);EE6(A.V);this.network.KK&&this.network.KK(this.logSource);this.network.ihr&&this.network.ihr(A);return A};g.G(ax,g.Y);ax.prototype.flush=function(A){A=A||[];if(A.length){for(var L=new jKS,B=[],f=0;f<A.length;f++){var K=A[f],V=rsD(K);B.push(V);K.clear()}xb(L,G1,1,B);this.N.dispatch(L);this.N.flush()}};g.p=AU.prototype;g.p.l7=function(A){var L=g.pf.apply(1,arguments),B=this.JB(L);B?B.push(new e4D(A)):this.XF(A,L)};
|
|
g.p.XF=function(A){this.N.set(this.TQ(g.pf.apply(1,arguments)),[new e4D(A)])};
|
|
g.p.JB=function(){var A=this.TQ(g.pf.apply(0,arguments));return this.N.has(A)?this.N.get(A):void 0};
|
|
g.p.mO=function(){var A=this.JB(g.pf.apply(0,arguments));return A&&A.length?A[0]:void 0};
|
|
g.p.clear=function(){this.N.clear()};
|
|
g.p.TQ=function(){var A=g.pf.apply(0,arguments);return A?A.join(","):"key"};g.G(o$,AU);o$.prototype.V=function(A){var L=g.pf.apply(1,arguments),B=0,f=this.mO(L);f&&(B=f.N);this.XF(B+A,L)};g.G(BD,AU);BD.prototype.bM=function(A){this.l7(A,g.pf.apply(1,arguments))};g.f8.prototype.stopPropagation=function(){this.W=!0};
|
|
g.f8.prototype.preventDefault=function(){this.defaultPrevented=!0};g.Ud(K8,g.f8);
|
|
K8.prototype.init=function(A,L){var B=this.type=A.type,f=A.changedTouches&&A.changedTouches.length?A.changedTouches[0]:null;this.target=A.target||A.srcElement;this.currentTarget=L;L=A.relatedTarget;L||(B=="mouseover"?L=A.fromElement:B=="mouseout"&&(L=A.toElement));this.relatedTarget=L;f?(this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0):(this.clientX=A.clientX!==void 0?A.clientX:A.pageX,this.clientY=
|
|
A.clientY!==void 0?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||(B=="keypress"?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=A.pointerType;this.state=A.state;this.N=A;A.defaultPrevented&&K8.oy.preventDefault.call(this)};
|
|
K8.prototype.stopPropagation=function(){K8.oy.stopPropagation.call(this);this.N.stopPropagation?this.N.stopPropagation():this.N.cancelBubble=!0};
|
|
K8.prototype.preventDefault=function(){K8.oy.preventDefault.call(this);var A=this.N;A.preventDefault?A.preventDefault():A.returnValue=!1};var nED="closure_listenable_"+(Math.random()*1E6|0);var z4D=0;g.p=Sa.prototype;g.p.add=function(A,L,B,f,K){var V=A.toString();A=this.listeners[V];A||(A=this.listeners[V]=[],this.N++);var J=Zm(A,L,f,K);J>-1?(L=A[J],B||(L.Ut=!1)):(L=new usv(L,this.src,V,!!f,K),L.Ut=B,A.push(L));return L};
|
|
g.p.remove=function(A,L,B,f){A=A.toString();if(!(A in this.listeners))return!1;var K=this.listeners[A];L=Zm(K,L,B,f);return L>-1?(JU(K[L]),g.uB(K,L),K.length==0&&(delete this.listeners[A],this.N--),!0):!1};
|
|
g.p.removeAll=function(A){A=A&&A.toString();var L=0,B;for(B in this.listeners)if(!A||B==A){for(var f=this.listeners[B],K=0;K<f.length;K++)++L,JU(f[K]);delete this.listeners[B];this.N--}return L};
|
|
g.p.Iz=function(A,L,B,f){A=this.listeners[A.toString()];var K=-1;A&&(K=Zm(A,L,B,f));return K>-1?A[K]:null};
|
|
g.p.hasListener=function(A,L){var B=A!==void 0,f=B?A.toString():"",K=L!==void 0;return g.gy(this.listeners,function(V){for(var J=0;J<V.length;++J)if(!(B&&V[J].type!=f||K&&V[J].capture!=L))return!0;return!1})};var I$="closure_lm_"+(Math.random()*1E6|0),p8={},BFw=0,yX="__closure_events_fn_"+(Math.random()*1E9>>>0);g.Ud(g.gb,g.Y);g.gb.prototype[nED]=!0;g.p=g.gb.prototype;g.p.addEventListener=function(A,L,B,f){g.Ft(this,A,L,B,f)};
|
|
g.p.removeEventListener=function(A,L,B,f){K2E(this,A,L,B,f)};
|
|
g.p.dispatchEvent=function(A){var L=this.OM;if(L){var B=[];for(var f=1;L;L=L.OM)B.push(L),++f}L=this.Nc;f=A.type||A;if(typeof A==="string")A=new g.f8(A,L);else if(A instanceof g.f8)A.target=A.target||L;else{var K=A;A=new g.f8(f,L);g.Xc(A,K)}K=!0;var V;if(B)for(V=B.length-1;!A.W&&V>=0;V--){var J=A.currentTarget=B[V];K=G9(J,f,!0,A)&&K}A.W||(J=A.currentTarget=L,K=G9(J,f,!0,A)&&K,A.W||(K=G9(J,f,!1,A)&&K));if(B)for(V=0;!A.W&&V<B.length;V++)J=A.currentTarget=B[V],K=G9(J,f,!1,A)&&K;return K};
|
|
g.p.l1=function(){g.gb.oy.l1.call(this);this.CX&&this.CX.removeAll(void 0);this.OM=null};
|
|
g.p.listen=function(A,L,B,f){return this.CX.add(String(A),L,!1,B,f)};
|
|
g.p.Hc=function(A,L,B,f){return this.CX.add(String(A),L,!0,B,f)};
|
|
g.p.J$=function(A,L,B,f){this.CX.remove(String(A),L,B,f)};
|
|
g.p.Iz=function(A,L,B,f){return this.CX.Iz(String(A),L,B,f)};
|
|
g.p.hasListener=function(A,L){return this.CX.hasListener(A!==void 0?String(A):void 0,L)};var sE=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(A){return A&&AsyncContext.Snapshot.wrap(A)}:function(A){return A};rb.prototype.get=function(){if(this.W>0){this.W--;var A=this.N;this.N=A.next;A.next=null}else A=this.V();return A};var HD;bX.prototype.add=function(A,L){var B=NFE.get();B.set(A,L);this.W?this.W.next=B:this.N=B;this.W=B};
|
|
bX.prototype.remove=function(){var A=null;this.N&&(A=this.N,this.N=this.N.next,this.N||(this.W=null),A.next=null);return A};
|
|
var NFE=new rb(function(){return new tU},function(A){return A.reset()});
|
|
tU.prototype.set=function(A,L){this.N=A;this.scope=L;this.next=null};
|
|
tU.prototype.reset=function(){this.next=this.scope=this.N=null};var kA,T9=!1,Rtk=new bX;F26.prototype.reset=function(){this.context=this.W=this.V=this.N=null;this.U=!1};
|
|
var DlE=new rb(function(){return new F26},function(A){A.reset()});
|
|
g.QX.prototype.then=function(A,L,B){return rWv(this,sE(typeof A==="function"?A:null),sE(typeof L==="function"?L:null),B)};
|
|
g.QX.prototype.$goog_Thenable=!0;g.p=g.QX.prototype;g.p.finally=function(A){var L=this;A=sE(A);return new g.QX(function(B,f){pI7(L,function(K){A();B(K)},function(K){A();
|
|
f(K)})})};
|
|
g.p.c9=function(A,L){return rWv(this,null,sE(A),L)};
|
|
g.p.catch=g.QX.prototype.c9;g.p.cancel=function(A){if(this.N==0){var L=new EE(A);g.lX(function(){yWQ(this,L)},this)}};
|
|
g.p.DVp=function(A){this.N=0;mN(this,2,A)};
|
|
g.p.MgF=function(A){this.N=0;mN(this,3,A)};
|
|
g.p.pG=function(){for(var A;A=jFQ(this);)gsv(this,A,this.N,this.X);this.T=!1};
|
|
var bCC=cX;g.Ud(EE,Ww);EE.prototype.name="cancel";g.Ud(g.cD,g.gb);g.p=g.cD.prototype;g.p.enabled=!1;g.p.x6=null;g.p.setInterval=function(A){this.LV=A;this.x6&&this.enabled?(this.stop(),this.start()):this.x6&&this.stop()};
|
|
g.p.y2L=function(){if(this.enabled){var A=g.Ed()-this.h3;A>0&&A<this.LV*.8?this.x6=this.Rs.setTimeout(this.gj,this.LV-A):(this.x6&&(this.Rs.clearTimeout(this.x6),this.x6=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
|
|
g.p.start=function(){this.enabled=!0;this.x6||(this.x6=this.Rs.setTimeout(this.gj,this.LV),this.h3=g.Ed())};
|
|
g.p.stop=function(){this.enabled=!1;this.x6&&(this.Rs.clearTimeout(this.x6),this.x6=null)};
|
|
g.p.l1=function(){g.cD.oy.l1.call(this);this.stop();delete this.Rs};g.G(g.UE,g.Y);g.p=g.UE.prototype;g.p.sendIsolatedPayload=function(A){this.D=A;this.V=1};
|
|
g.p.Gc=function(){var A=this.W.values();A=[].concat(g.x7(A)).filter(function(L){return L.N.size});
|
|
A.length&&this.X.flush(A,this.D);TFy(A);this.U=0;this.N.enabled&&this.N.stop()};
|
|
g.p.gR=function(A){var L=g.pf.apply(1,arguments);this.W.has(A)||this.W.set(A,new o$(A,L))};
|
|
g.p.QQ=function(A){var L=g.pf.apply(1,arguments);this.W.has(A)||this.W.set(A,new BD(A,L))};
|
|
g.p.Xc=function(A){this.mB(A,1,g.pf.apply(1,arguments))};
|
|
g.p.mB=function(A,L){var B=g.pf.apply(2,arguments),f=kr6(this,A);f&&f instanceof o$&&(f.V(L,B),tXE(this))};
|
|
g.p.bM=function(A,L){var B=g.pf.apply(2,arguments),f=kr6(this,A);f&&f instanceof BD&&(f.bM(L,B),tXE(this))};g.G(WD,Error);WD.prototype.toString=function(){var A="RpcError("+(mlC(this.code)||String(this.code))+")";this.message&&(A+=": "+this.message);return A};QFD.prototype.PV=function(A){var L=[];qB(this,A,L);return L.join("")};
|
|
var $le={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},iCy=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var A1R;g.Ud(PD,OCQ);PD.prototype.N=function(){return new XMLHttpRequest};
|
|
A1R=new PD;g.Ud(g.xA,g.gb);var W2D=/^https?$/i,Lvw=["POST","PUT"],Es6=[];g.p=g.xA.prototype;g.p.hX=function(){this.dispose();g.Lx(Es6,this)};
|
|
g.p.send=function(A,L,B,f){if(this.N)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+A);L=L?L.toUpperCase():"GET";this.G=A;this.U="";this.W=0;this.qp=!1;this.V=!0;this.N=this.wT?this.wT.N():A1R.N();this.N.onreadystatechange=sE((0,g.X9)(this.lN,this));try{this.getStatus(),this.Vj=!0,this.N.open(L,String(A),!0),this.Vj=!1}catch(J){this.getStatus();YwC(this,J);return}A=B||"";B=new Map(this.headers);if(f)if(Object.getPrototypeOf(f)===Object.prototype)for(var K in f)B.set(K,
|
|
f[K]);else if(typeof f.keys==="function"&&typeof f.get==="function"){K=g.m(f.keys());for(var V=K.next();!V.done;V=K.next())V=V.value,B.set(V,f.get(V))}else throw Error("Unknown input type for opt_headers: "+String(f));f=Array.from(B.keys()).find(function(J){return"content-type"==J.toLowerCase()});
|
|
K=g.rI.FormData&&A instanceof g.rI.FormData;!g.zK(Lvw,L)||f||K||B.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");L=g.m(B);for(f=L.next();!f.done;f=L.next())B=g.m(f.value),f=B.next().value,B=B.next().value,this.N.setRequestHeader(f,B);this.ZM&&(this.N.responseType=this.ZM);"withCredentials"in this.N&&this.N.withCredentials!==this.X&&(this.N.withCredentials=this.X);try{this.T&&(clearTimeout(this.T),this.T=null),this.Wn>0&&(this.getStatus(),this.T=setTimeout(this.gZ.bind(this),
|
|
this.Wn)),this.getStatus(),this.yj=!0,this.N.send(A),this.yj=!1}catch(J){this.getStatus(),YwC(this,J)}};
|
|
g.p.gZ=function(){typeof n8!="undefined"&&this.N&&(this.U="Timed out after "+this.Wn+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
|
|
g.p.abort=function(A){this.N&&this.V&&(this.getStatus(),this.V=!1,this.D=!0,this.N.abort(),this.D=!1,this.W=A||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ea(this))};
|
|
g.p.l1=function(){this.N&&(this.V&&(this.V=!1,this.D=!0,this.N.abort(),this.D=!1),ea(this,!0));g.xA.oy.l1.call(this)};
|
|
g.p.lN=function(){this.TL()||(this.Vj||this.yj||this.D?Ul0(this):this.L1L())};
|
|
g.p.L1L=function(){Ul0(this)};
|
|
g.p.isActive=function(){return!!this.N};
|
|
g.p.isComplete=function(){return g.z9(this)==4};
|
|
g.p.getStatus=function(){try{return g.z9(this)>2?this.N.status:-1}catch(A){return-1}};
|
|
g.p.getResponseHeader=function(A){if(this.N&&this.isComplete())return A=this.N.getResponseHeader(A),A===null?void 0:A};
|
|
g.p.getLastError=function(){return typeof this.U==="string"?this.U:String(this.U)};oQ.prototype.send=function(A,L,B){L=L===void 0?function(){}:L;
|
|
B=B===void 0?function(){}:B;
|
|
cWe(A.url,function(f){f=f.target;uX(f)?L(g.a$(f)):B(f.getStatus())},A.requestType,A.body,A.requestHeaders,A.timeoutMillis,A.withCredentials)};
|
|
oQ.prototype.G4=function(){return 1};f2.prototype.done=function(){this.logger.pZ(this.event,Bc()-this.startTime)};
|
|
g.G(K2,Da);g.G(Ju,K2);g.p=Ju.prototype;g.p.k0=function(){};
|
|
g.p.zB=function(){};
|
|
g.p.pZ=function(){};
|
|
g.p.M4=function(){};
|
|
g.p.eL=function(){};
|
|
g.p.VO=function(A,L,B,f){return f};
|
|
g.p.YG=function(){};
|
|
g.p.jc=function(){};
|
|
g.p.iy=function(){};
|
|
g.G(SA,K2);g.p=SA.prototype;g.p.update=function(A){this.logger.dispose();this.logger=A};
|
|
g.p.zB=function(A){this.logger.zB(A)};
|
|
g.p.pZ=function(A,L){this.logger.pZ(A,L)};
|
|
g.p.M4=function(A){this.logger.M4(A)};
|
|
g.p.eL=function(){this.logger.eL()};
|
|
g.p.VO=function(A,L,B,f){return this.logger.VO(A,L,B,f)};
|
|
g.p.YG=function(A){this.logger.YG(A)};
|
|
g.p.jc=function(A){this.logger.jc(A)};
|
|
g.p.iy=function(A){this.logger.iy(A)};
|
|
g.p.k0=function(A){this.logger.k0(A)};
|
|
g.G(PpS,g.Y);g.G(RQ,K2);g.p=RQ.prototype;g.p.k0=function(A){this.metrics.C01.bM(A,this.NP)};
|
|
g.p.zB=function(A){this.metrics.eventCount.gI(A,this.NP)};
|
|
g.p.pZ=function(A,L){this.metrics.ud.bM(L,A,this.NP)};
|
|
g.p.M4=function(A){this.metrics.errorCount.gI(A,this.NP)};
|
|
g.p.VO=function(A,L,B,f){function K(R){if(!V.TL()){var Z=Bc()-J;V.metrics.pIs.bM(Z,A,B,R,L,V.NP)}}
|
|
var V=this,J=Bc();f.then(function(){return void K(0)},function(R){return void K(R instanceof WD?R.code:-1)});
|
|
return f};
|
|
g.p.YG=function(A){this.metrics.QcL.gI(A,this.NP)};
|
|
g.p.jc=function(A){this.metrics.Xm.gI(A,this.NP)};
|
|
g.p.iy=function(A){this.metrics.eIr.gI(A,this.NP)};
|
|
g.G(ZH,RQ);ZH.prototype.eL=function(){xlQ(this.N)};g.G(NW,PS);g.G(Fm,PS);g.G(DH,PS);var JgD=wF(DH),ns8=function(A){return iI(function(L){return L instanceof A&&!ST(L)})}(DH);
|
|
DH.messageId="bfkj";g.G(Fu,PS);g.G(ds,PS);var ztL=wF(ds);g.G(ws,g.Y);ws.prototype.snapshot=function(A){if(this.TL())throw Error("Already disposed");this.logger.zB("n");var L=this.logger.share();return this.V.then(function(B){var f=B.w9;return new Promise(function(K){var V=new f2(L,"n");f(function(J){V.done();L.k0(J.length);L.eL();L.dispose();K(J)},[A.WL,
|
|
A.MC,A.qg,A.JC])})})};
|
|
ws.prototype.ev=function(A){var L=this;if(this.TL())throw Error("Already disposed");this.logger.zB("n");var B=Vq(this.logger,function(){return L.U([A.WL,A.MC,A.qg,A.JC])},"n");
|
|
this.logger.k0(B.length);this.logger.eL();return B};
|
|
ws.prototype.f7=function(A){this.V.then(function(L){var B;(B=L.ky4)==null||B(A)})};
|
|
ws.prototype.xc=function(){return this.logger.share()};g.G(jA,PS);g.G(gs,PS);GX.prototype.Ix=function(A){return NH0(this,A,new Ju,0)};g.G(rs,g.Y);g.p=rs.prototype;g.p.snapshot=function(A){var L=this;return g.c(function(B){switch(B.N){case 1:if(L.TL())throw Error("Already disposed");if(L.W||L.X){B.Ux(2);break}return g.X(B,L.D.promise,2);case 2:if(!L.W){B.Ux(4);break}return g.X(B,L.W.snapshot(A),5);case 5:return B.return(B.W);case 4:throw L.X;}})};
|
|
g.p.pause=function(){this.TL()||this.isPaused||(this.isPaused=!0,this.N&&this.N.pause())};
|
|
g.p.resume=function(){!this.TL()&&this.isPaused&&(this.isPaused=!1,this.N&&this.N.resume())};
|
|
g.p.checkForRefresh=function(){var A=this;return g.c(function(L){if(A.TL())throw Error("Already disposed");var B;if(B=A.N)B=A.N,B.isExpired()?(b0(B),B.xv(0),B=!0):B=!1,B=!B;return B?L.Ux(0):g.X(L,A.V.promise,0)})};
|
|
g.p.f7=function(A){var L,B;(L=this.W)==null||(B=L.f7)==null||B.call(L,A)};
|
|
g.p.handleError=function(A){if(!this.TL()){this.X=A;this.D.resolve();var L,B;(B=(L=this.options).r$1)==null||B.call(L,A)}};
|
|
g.p.xc=function(){return this.logger.share()};
|
|
var diE={s0T:432E5,dS:3E5,wu:10,v7:1E4,OD:3E4,lgL:3E4,r1T:6E4,CG:1E3,fG:6E4,sD:6E5,xa:.25,At:2,maxAttempts:10};hu.prototype.pause=function(){this.isPaused||(this.isPaused=!0,b0(this))};
|
|
hu.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
|
|
hu.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var o79,H90=(o79=Math.imul)!=null?o79:function(A,L){return A*L|0},kM=[196,
|
|
200,224,18];TX.prototype.PV=function(){return String(this.N)+","+this.W.join()};
|
|
TX.prototype.h1=function(A,L){var B=void 0;if(this.W[this.N]!==A){var f=this.W.indexOf(A);f!==-1?(this.W.splice(f,1),f<this.N&&this.N--,this.W.splice(this.N,0,A)):(B=this.W[this.N],this.W[this.N]=A)}this.N=(this.N+1)%this.maxItems;A=stL("iU5q-!O9@$",this.PV());B&&A&&L(B);return A};var $iL={toString:function(A){var L=[],B=0;A-=-2147483648;L[B++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(A%52);for(A=Math.floor(A/52);A>0;)L[B++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(A%62),A=Math.floor(A/62);return L.join("")}};g.G(m7,g.Y);m7.prototype.Mu=function(A,L){var B=this.d6(A);L==null||L(B);return Vq(this.logger,function(){return g.Y$(B,2)},this.W)};
|
|
g.G(i0,m7);i0.prototype.d6=function(A,L){var B=this;this.logger.zB(this.N);++this.D>=this.T&&this.V.resolve();var f=A();A=Vq(this.logger,function(){return B.U(f)},"C");
|
|
if(A===void 0)throw new SW(17,"YNJ:Undefined");if(!(A instanceof Uint8Array))throw new SW(18,"ODM:Invalid");L==null||L(A);return A};
|
|
g.G($M,m7);$M.prototype.d6=function(){return this.U};
|
|
g.G(Xm,m7);Xm.prototype.d6=function(){var A=this;return Vq(this.logger,function(){return WX(A.U)},"d")};
|
|
Xm.prototype.Mu=function(){return this.U};
|
|
g.G(Ok,m7);Ok.prototype.d6=function(){if(this.U)return this.U;this.U=O9e(this,function(A){return"_"+X2y(A)});
|
|
return O9e(this,function(A){return A})};
|
|
g.G(cc,m7);cc.prototype.d6=function(){var A=Math.floor(Date.now()/1E3),L=[Math.random()*255,Math.random()*255],B=L.concat([this.U&255,this.clientState],[A>>24&255,A>>16&255,A>>8&255,A&255]);A=new Uint8Array(2+B.length);A[0]=34;A[1]=B.length;A.set(B,2);B=A.subarray(2);for(var f=L=L.length;f<B.length;++f)B[f]^=B[f%L];this.logger.YG(this.clientState);return A};var cgk={Bs:3E4,s4r:2E4};g.G(YM,g.Y);g.p=YM.prototype;g.p.Vm=function(){return this.V.promise};
|
|
g.p.d6=function(A){return erS(this,Object.assign({},A),!1)};
|
|
g.p.Mu=function(A){return erS(this,Object.assign({},A),!0)};
|
|
g.p.Ax=function(A){if(!(A>150))try{this.cache=new miS(A,this.logger)}catch(L){this.reportError(new SW(22,"GBJ:init",L))}};
|
|
g.p.reportError=function(A){this.logger.M4(A.code);this.onError(A);return A};
|
|
var MqQ=function(A){return iI(function(L){if(!Y1E(L))return!1;for(var B=g.m(Object.entries(A)),f=B.next();!f.done;f=B.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;if(!(f in L)){if(K.NM4===!0)continue;return!1}if(!K(L[f]))return!1}return!0})}({Bo:function(A){return iI(function(L){return L instanceof A})}(rs)},"");var TbC=(new Date).getTime();g.G(Wc,PS);var Byf=wF(Wc);zrk.prototype.getMetadata=function(){return this.metadata};vc.prototype.getMetadata=function(){return this.metadata};
|
|
vc.prototype.getStatus=function(){return this.status};qW.prototype.T=function(A,L){L=L===void 0?{}:L;return new zrk(A,this,L)};
|
|
qW.prototype.getName=function(){return this.name};var fSR=new qW("/google.internal.waa.v1.Waa/Create",jA,Wc,function(A){return A.PV()},Byf);g.G(Pc,PS);var Rr1=new qW("/google.internal.waa.v1.Waa/GenerateIT",gs,Pc,function(A){return A.PV()},wF(Pc));var tO6=new Set(["SAPISIDHASH","APISIDHASH"]);g.G(xM,PS);xM.prototype.getValue=function(){var A=j7(this,2);if(Array.isArray(A)||A instanceof PS)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return QP(this,2)};g.G(eA,PS);eA.prototype.getMessage=function(){return uq(this,2)};
|
|
var BVE=wF(eA);n2.prototype.removeListener=function(A,L){A==="data"?Ke(this.W,L):A==="metadata"?Ke(this.U,L):A==="status"?Ke(this.D,L):A==="end"?Ke(this.V,L):A==="error"&&Ke(this.N,L);return this};
|
|
n2.prototype.cancel=function(){this.xhr.abort()};
|
|
g.G(axe,Error);g.Ud(g.Vy,OCQ);g.Vy.prototype.N=function(){var A=new JX(this.U,this.V);this.W&&A.setCredentialsMode(this.W);return A};
|
|
g.Vy.prototype.setCredentialsMode=function(A){this.W=A};
|
|
g.Ud(JX,g.gb);g.p=JX.prototype;g.p.open=function(A,L){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.qp=A;this.Wn=L;this.readyState=1;SF(this)};
|
|
g.p.send=function(A){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.G.signal.aborted)throw this.abort(),Error("Request was aborted.");this.N=!0;var L={headers:this.yj,method:this.qp,credentials:this.D,cache:void 0,signal:this.G.signal};A&&(L.body=A);(this.Vj||g.rI).fetch(new Request(this.Wn,L)).then(this.brF.bind(this),this.PS.bind(this))};
|
|
g.p.abort=function(){this.response=this.responseText="";this.yj=new Headers;this.status=0;this.G.abort("Request was aborted.");this.V&&this.V.cancel("Request was aborted.").catch(function(){});
|
|
this.readyState>=1&&this.N&&this.readyState!=4&&(this.N=!1,Ra(this));this.readyState=0};
|
|
g.p.brF=function(A){if(this.N&&(this.U=A,this.W||(this.status=this.U.status,this.statusText=this.U.statusText,this.W=A.headers,this.readyState=2,SF(this)),this.N&&(this.readyState=3,SF(this),this.N)))if(this.responseType==="arraybuffer")A.arrayBuffer().then(this.V4p.bind(this),this.PS.bind(this));else if(typeof g.rI.ReadableStream!=="undefined"&&"body"in A){this.V=A.body.getReader();if(this.T){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
|
|
this.response=[]}else this.response=this.responseText="",this.X=new TextDecoder;fkD(this)}else A.text().then(this.mpj.bind(this),this.PS.bind(this))};
|
|
g.p.NTr=function(A){if(this.N){if(this.T&&A.value)this.response.push(A.value);else if(!this.T){var L=A.value?A.value:new Uint8Array(0);if(L=this.X.decode(L,{stream:!A.done}))this.response=this.responseText+=L}A.done?Ra(this):SF(this);this.readyState==3&&fkD(this)}};
|
|
g.p.mpj=function(A){this.N&&(this.response=this.responseText=A,Ra(this))};
|
|
g.p.V4p=function(A){this.N&&(this.response=A,Ra(this))};
|
|
g.p.PS=function(){this.N&&Ra(this)};
|
|
g.p.setRequestHeader=function(A,L){this.yj.append(A,L)};
|
|
g.p.getResponseHeader=function(A){return this.W?this.W.get(A.toLowerCase())||"":""};
|
|
g.p.getAllResponseHeaders=function(){if(!this.W)return"";for(var A=[],L=this.W.entries(),B=L.next();!B.done;)B=B.value,A.push(B[0]+": "+B[1]),B=L.next();return A.join("\r\n")};
|
|
g.p.setCredentialsMode=function(A){this.D=A};
|
|
Object.defineProperty(JX.prototype,"withCredentials",{get:function(){return this.D==="include"},
|
|
set:function(A){this.setCredentialsMode(A?"include":"same-origin")}});g.ZS.prototype.toString=function(){var A=[],L=this.D;L&&A.push(Ia(L,KvB,!0),":");var B=this.N;if(B||L=="file")A.push("//"),(L=this.G)&&A.push(Ia(L,KvB,!0),"@"),A.push(g.v5(B).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),B=this.V,B!=null&&A.push(":",String(B));if(B=this.W)this.N&&B.charAt(0)!="/"&&A.push("/"),A.push(Ia(B,B.charAt(0)=="/"?VEW:J1w,!0));(B=this.U.toString())&&A.push("?",B);(B=this.T)&&A.push("#",Ia(B,SDt));return A.join("")};
|
|
g.ZS.prototype.resolve=function(A){var L=this.clone(),B=!!A.D;B?g.Zt(L,A.D):B=!!A.G;B?L.G=A.G:B=!!A.N;B?g.NC(L,A.N):B=A.V!=null;var f=A.W;if(B)g.NT(L,A.V);else if(B=!!A.W){if(f.charAt(0)!="/")if(this.N&&!this.W)f="/"+f;else{var K=L.W.lastIndexOf("/");K!=-1&&(f=L.W.slice(0,K+1)+f)}K=f;if(K==".."||K==".")f="";else if(g.a8(K,"./")||g.a8(K,"/.")){f=zk(K,"/");K=K.split("/");for(var V=[],J=0;J<K.length;){var R=K[J++];R=="."?f&&J==K.length&&V.push(""):R==".."?((V.length>1||V.length==1&&V[0]!="")&&V.pop(),
|
|
f&&J==K.length&&V.push("")):(V.push(R),f=!0)}f=V.join("/")}else f=K}B?L.W=f:B=A.U.toString()!=="";B?FO(L,A.U.clone()):B=!!A.T;B&&(L.T=A.T);return L};
|
|
g.ZS.prototype.clone=function(){return new g.ZS(this)};
|
|
var KvB=/[#\/\?@]/g,J1w=/[#\?:]/g,VEW=/[#\?]/g,RN8=/[#\?@]/g,SDt=/#/g;g.p=dl.prototype;g.p.add=function(A,L){pe(this);this.V=null;A=yy(this,A);var B=this.N.get(A);B||this.N.set(A,B=[]);B.push(L);this.W=this.W+1;return this};
|
|
g.p.remove=function(A){pe(this);A=yy(this,A);return this.N.has(A)?(this.V=null,this.W=this.W-this.N.get(A).length,this.N.delete(A)):!1};
|
|
g.p.clear=function(){this.N=this.V=null;this.W=0};
|
|
g.p.isEmpty=function(){pe(this);return this.W==0};
|
|
g.p.forEach=function(A,L){pe(this);this.N.forEach(function(B,f){B.forEach(function(K){A.call(L,K,f,this)},this)},this)};
|
|
g.p.F1=function(){pe(this);for(var A=Array.from(this.N.values()),L=Array.from(this.N.keys()),B=[],f=0;f<L.length;f++)for(var K=A[f],V=0;V<K.length;V++)B.push(L[f]);return B};
|
|
g.p.aU=function(A){pe(this);var L=[];if(typeof A==="string")NVS(this,A)&&(L=L.concat(this.N.get(yy(this,A))));else{A=Array.from(this.N.values());for(var B=0;B<A.length;B++)L=L.concat(A[B])}return L};
|
|
g.p.set=function(A,L){pe(this);this.V=null;A=yy(this,A);NVS(this,A)&&(this.W=this.W-this.N.get(A).length);this.N.set(A,[L]);this.W=this.W+1;return this};
|
|
g.p.get=function(A,L){if(!A)return L;A=this.aU(A);return A.length>0?String(A[0]):L};
|
|
g.p.toString=function(){if(this.V)return this.V;if(!this.N)return"";for(var A=[],L=Array.from(this.N.keys()),B=0;B<L.length;B++){var f=L[B],K=g.v5(f);f=this.aU(f);for(var V=0;V<f.length;V++){var J=K;f[V]!==""&&(J+="="+g.v5(f[V]));A.push(J)}}return this.V=A.join("&")};
|
|
g.p.clone=function(){var A=new dl;A.V=this.V;this.N&&(A.N=new Map(this.N),A.W=this.W);return A};
|
|
g.p.extend=function(A){for(var L=0;L<arguments.length;L++)J58(arguments[L],function(B,f){this.add(f,B)},this)};g.Ud(g.gl,g.Y);var RQ5=[];g.p=g.gl.prototype;g.p.listen=function(A,L,B,f){Array.isArray(L)||(L&&(RQ5[0]=L.toString()),L=RQ5);for(var K=0;K<L.length;K++){var V=g.Ft(A,L[K],B||this.handleEvent,f||!1,this.W||this);if(!V)break;this.N[V.key]=V}return this};
|
|
g.p.Hc=function(A,L,B,f){return dnv(this,A,L,B,f)};
|
|
g.p.J$=function(A,L,B,f,K){if(Array.isArray(L))for(var V=0;V<L.length;V++)this.J$(A,L[V],B,f,K);else B=B||this.handleEvent,f=g.QK(f)?!!f.capture:!!f,K=K||this.W||this,B=Dm(B),f=!!f,L=VX(A)?A.Iz(L,B,f,K):A?(A=db(A))?A.Iz(L,B,f,K):null:null,L&&(wb(L),delete this.N[L.key])};
|
|
g.p.removeAll=function(){g.H6(this.N,function(A,L){this.N.hasOwnProperty(L)&&wb(A)},this);
|
|
this.N={}};
|
|
g.p.l1=function(){g.gl.oy.l1.call(this);this.removeAll()};
|
|
g.p.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Ik7.prototype.isInputValid=function(){return this.V};G7.prototype.isInputValid=function(){return this.N!=3};
|
|
G7.prototype.SE=function(){return this.T};
|
|
G7.prototype.h9=function(){return!0};
|
|
G7.prototype.parse=function(A){function L(Z){Z&128&&rl(V,J,R,"invalid tag");(Z&7)!=2&&rl(V,J,R,"invalid wire type");V.V=Z>>>3;V.V!=1&&V.V!=2&&V.V!=15&&rl(V,J,R,"unexpected tag");V.N=1;V.W=0;V.U=0}
|
|
function B(Z){V.U++;V.U==5&&Z&240&&rl(V,J,R,"message length too long");V.W|=(Z&127)<<(V.U-1)*7;Z&128||(V.N=2,V.G=0,typeof Uint8Array!=="undefined"?V.D=new Uint8Array(V.W):V.D=Array(V.W),V.W==0&&K())}
|
|
function f(Z){V.D[V.G++]=Z;V.G==V.W&&K()}
|
|
function K(){if(V.V<15){var Z={};Z[V.V]=V.D;V.X.push(Z)}V.N=0}
|
|
for(var V=this,J=A instanceof Array?A:new Uint8Array(A),R=0;R<J.length;){switch(V.N){case 3:rl(V,J,R,"stream already broken");break;case 0:L(J[R]);break;case 1:B(J[R]);break;case 2:f(J[R]);break;default:throw Error("unexpected parser state: "+V.N);}V.yj++;R++}A=V.X;V.X=[];return A.length>0?A:null};sB.prototype.isInputValid=function(){return this.N===null};
|
|
sB.prototype.SE=function(){return this.N};
|
|
sB.prototype.h9=function(){return!1};
|
|
sB.prototype.parse=function(A){this.N!==null&&prE(this,A,"stream already broken");var L=null;try{var B=this.V;B.V||wrv(B,A,"stream already broken");B.N+=A;var f=Math.floor(B.N.length/4);if(f==0)var K=null;else{try{var V=ojD(B.N.slice(0,f*4))}catch(J){wrv(B,B.N,J.message)}B.W+=f*4;B.N=B.N.slice(f*4);K=V}L=K===null?null:this.U.parse(K)}catch(J){prE(this,A,J.message)}this.W+=A.length;return L};g.p=hX.prototype;g.p.isInputValid=function(){return this.D!=3};
|
|
g.p.SE=function(){return this.yj};
|
|
g.p.done=function(){return this.D===2};
|
|
g.p.h9=function(){return!1};
|
|
g.p.parse=function(A){function L(){for(;D<A.length;)if(HM(A[D]))D++,V.V++;else break;return D<Z}
|
|
function B(){for(var d;;){d=A[D++];if(!d)break;V.V++;switch(V.N){case 0:d==="{"?V.N=2:d==="["?V.N=4:HM(d)||bN(V,A,D);continue;case 7:case 2:if(HM(d))continue;if(V.N===7)J.push(8);else if(d==="}"){K("{}");V.N=f();continue}else J.push(3);d==='"'?V.N=6:bN(V,A,D);continue;case 8:case 3:if(HM(d))continue;d===":"?(V.N===3&&(J.push(3),V.W++),V.N=1):d==="}"?(V.W--,K(),V.N=f()):d===","?(V.N===3&&J.push(3),V.N=7):bN(V,A,D);continue;case 4:case 1:if(HM(d))continue;if(V.N===4)if(V.W++,V.N=1,d==="]"){V.W--;if(V.W===
|
|
0){V.N=5;return}K("[]");V.N=f();continue}else J.push(5);d==='"'?V.N=6:d==="{"?V.N=2:d==="["?V.N=4:d==="t"?V.N=9:d==="f"?V.N=12:d==="n"?V.N=16:d!=="-"&&("0123456789".indexOf(d)!==-1?V.N=20:bN(V,A,D));continue;case 5:if(d===",")J.push(5),V.N=1,V.W===1&&(F=D);else if(d==="]"){V.W--;if(V.W===0)return;K();V.N=f()}else if(HM(d))continue;else bN(V,A,D);continue;case 6:var w=D;a:for(;;){for(;V.G>0;)if(d=A[D++],V.G===4?V.G=0:V.G++,!d)break a;if(d==='"'&&!V.X){V.N=f();break}if(d==="\\"&&!V.X&&(V.X=!0,d=A[D++],
|
|
!d))break;if(V.X)if(V.X=!1,d==="u"&&(V.G=1),d=A[D++])continue;else break;R.lastIndex=D;d=R.exec(A);if(!d){D=A.length+1;break}D=d.index+1;d=A[d.index];if(!d)break}V.V+=D-w;continue;case 9:if(!d)continue;d==="r"?V.N=10:bN(V,A,D);continue;case 10:if(!d)continue;d==="u"?V.N=11:bN(V,A,D);continue;case 11:if(!d)continue;d==="e"?V.N=f():bN(V,A,D);continue;case 12:if(!d)continue;d==="a"?V.N=13:bN(V,A,D);continue;case 13:if(!d)continue;d==="l"?V.N=14:bN(V,A,D);continue;case 14:if(!d)continue;d==="s"?V.N=15:
|
|
bN(V,A,D);continue;case 15:if(!d)continue;d==="e"?V.N=f():bN(V,A,D);continue;case 16:if(!d)continue;d==="u"?V.N=17:bN(V,A,D);continue;case 17:if(!d)continue;d==="l"?V.N=18:bN(V,A,D);continue;case 18:if(!d)continue;d==="l"?V.N=f():bN(V,A,D);continue;case 19:d==="."?V.N=20:bN(V,A,D);continue;case 20:if("0123456789.eE+-".indexOf(d)!==-1)continue;else D--,V.V--,V.N=f();continue;default:bN(V,A,D)}}}
|
|
function f(){var d=J.pop();return d!=null?d:1}
|
|
function K(d){V.W>1||(d||(d=F===-1?V.U+A.substring(N,D):A.substring(F,D)),V.Wn?V.T.push(d):V.T.push(JSON.parse(d)),F=D)}
|
|
for(var V=this,J=V.qp,R=V.Vj,Z=A.length,N=0,F=-1,D=0;D<Z;)switch(V.D){case 3:return bN(V,A,D),null;case 2:return L()&&bN(V,A,D),null;case 0:if(L()){var I=A[D++];V.V++;if(I==="["){V.D=1;N=D;V.N=4;continue}else bN(V,A,D)}return null;case 1:return B(),V.W===0&&V.N==5?(V.D=2,V.U=A.substring(D)):V.U=F===-1?V.U+A.substring(N):A.substring(F),V.T.length>0?(I=V.T,V.T=[],I):null}return null};tX.prototype.isInputValid=function(){return this.D===null};
|
|
tX.prototype.SE=function(){return this.D};
|
|
tX.prototype.h9=function(){return!1};
|
|
tX.prototype.parse=function(A){function L(Z){V.W=6;V.D="The stream is broken @"+V.N+"/"+J+". Error: "+Z+". With input:\n";throw Error(V.D);}
|
|
function B(){V.V=new hX({nh4:!0,q6:!0})}
|
|
function f(Z){if(Z)for(var N=0;N<Z.length;N++){var F={};F[1]=Z[N];V.U.push(F)}}
|
|
function K(Z){if(Z){(V.T||Z.length>1)&&L("extra status: "+Z);V.T=!0;var N={};N[2]=Z[0];V.U.push(N)}}
|
|
for(var V=this,J=0;J<A.length;){var R;if(R=V.W!==2){a:{for(;J<A.length;){if(!HM(A[J])){R=!0;break a}J++;V.N++}R=!1}R=!R}if(R)return null;switch(V.W){case 6:L("stream already broken");break;case 0:A[J]==="["?(V.W=1,J++,V.N++):L("unexpected input token");break;case 1:A[J]==="["?(V.W=2,B()):A[J]===","||A.slice(J,J+5)=="null,"?V.W=3:A[J]==="]"?(V.W=5,J++,V.N++):L("unexpected input token");break;case 2:R=V.V.parse(A.substring(J));f(R);V.V.done()?(V.W=3,R=V.V.U,V.N+=A.length-J-R.length,A=R,J=0):(V.N+=A.length-
|
|
J,J=A.length);break;case 3:A[J]===","||A.slice(J,J+5)=="null,"?(V.W=4,B(),V.V.parse("["),J+=A[J]===","?1:5,V.N++):A[J]==="]"&&(V.W=5,J++,V.N++);break;case 4:R=V.V.parse(A.substring(J));K(R);V.V.done()?(V.W=5,R=V.V.U,V.N+=A.length-J-R.length,A=R,J=0):(V.N+=A.length-J,J=A.length);break;case 5:L("extra input after stream end")}}return V.U.length>0?(A=V.U,V.U=[],A):null};kw.prototype.HM=function(){return this.N};
|
|
kw.prototype.getStatus=function(){return this.D};
|
|
kw.prototype.Wn=function(A){A=A.target;try{if(A==this.N)a:{var L=g.z9(this.N),B=this.N.W,f=this.N.getStatus(),K=g.a$(this.N);A=[];if(g.Au(this.N)instanceof Array){var V=g.Au(this.N);V.length>0&&V[0]instanceof Uint8Array&&(this.yj=!0,A=V)}if(!(L<3||L==3&&!K&&A.length==0))if(f=f==200||f==206,L==4&&(B==8?T7(this,7):B==7?T7(this,8):f||T7(this,3)),this.W||(this.W=y5w(this.N),this.W==null&&T7(this,5)),this.D>2)lN(this);else{if(A.length>this.V){var J=A.length;B=[];try{if(this.W.h9())for(var R=0;R<J;R++){var Z=
|
|
this.W.parse(Array.from(A[R]));Z&&(B=B.concat(Z))}else{Z="";if(!this.T){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.T=new TextDecoder}for(R=0;R<J;R++)Z+=this.T.decode(A[R],{stream:L==4&&R==J-1});B=this.W.parse(Z)}A.splice(0,J);B&&this.U(B)}catch(F){T7(this,5);lN(this);break a}}else if(K.length>this.V){R=K.slice(this.V);this.V=K.length;try{var N=this.W.parse(R);N!=null&&this.U&&this.U(N)}catch(F){T7(this,5);lN(this);break a}}L==4?(K.length!=
|
|
0||this.yj?T7(this,2):T7(this,4),lN(this)):T7(this,1)}}}catch(F){T7(this,6),lN(this)}};g.p=j3y.prototype;g.p.addListener=function(A,L){Le(this,A,L);return this};
|
|
g.p.removeListener=function(A,L){var B=this.W[A];B&&g.Lx(B,L);(A=this.N[A])&&g.Lx(A,L);return this};
|
|
g.p.once=function(A,L){var B=this.N[A];B||(B=[],this.N[A]=B);B.push(L);return this};
|
|
g.p.M$n=function(A){var L=this.W.data;L&&gek(A,L);(L=this.N.data)&&gek(A,L);this.N.data=[]};
|
|
g.p.Az4=function(){switch(this.V.getStatus()){case 1:mK(this,"readable");break;case 5:case 6:case 4:case 7:case 3:mK(this,"error");break;case 8:mK(this,"close");break;case 2:mK(this,"end")}};Gzk.prototype.serverStreaming=function(A,L,B,f){var K=this,V=A.substring(0,A.length-f.name.length);return kz1(function(J){var R=J.wc,Z=J.getMetadata(),N=HtE(K,!1);Z=hNw(K,Z,N,V+R.getName());var F=btv(N,R.W,!0);J=R.N(J.lO);N.send(Z,"POST",J);return F},this.y6).call(this,f.T(L,B))};TVk.prototype.create=function(A,L,B){var f=this.N,K=this.W+"/$rpc/google.internal.waa.v1.Waa/Create";L=L||{};B=B===void 0?{}:B;return Z9v(f,K,A,L,fSR,B)};var QVk,v20,pNw,ZwK,NyR,FvB,AML,Ly1,DC9,IP,LBE,dv,eoS,$ZQ,X0w,WWy,xbe,Cbw,ISW,U06,w6f,p6w,y19,IgS,wN7,vuQ,QA,wBL,g7B;QVk=new Qy(45742118,!1);v20=new Qy(45742119,!1);pNw=new Qy(45738185,!1);ZwK=new Qy(45739196,!1);NyR=new Qy(45739198,!1);FvB=new Qy(45739197,!1);AML=new Ce(45737488,0);Ly1=new Ce(45737489,0);DC9=new Qy(45736776,!1);IP=new Qy(45738227,!1);LBE=new Qy(45732791,!1);dv=new Qy(45728572,!1);g.dCO=new Qy(45742954,!1);eoS=new Qy(45742469,!1);$ZQ=new Qy(45737482,!1);X0w=new Ce(45741773,0);
|
|
WWy=new Qy(45732704,!0);xbe=new Qy(45731083,!1);Cbw=new Qy(45728553,!1);ISW=new Qy(45734191,!1);U06=new Qy(45735523,!1);w6f=new Ce(45735428,4E3);p6w=new Qy(45735462,!1);y19=new Qy(45727949,!1);IgS=new Qy(45728181,!1);wN7=new Qy(45740357,!1);vuQ=new Qy(45733155,!1);QA=new Qy(45732481,!1);wBL=new Qy(45732775,!1);g.j0B=new Qy(45734776,!1);g7B=new Qy(45739595,!1);var SHC=new Ce(45725542,0),RB8=new Ce(45739023,0),Nrk=new Ce(45743228,0),JCk=new Ce(45725543,0),f0Q=new Ce(45725539,0),VDQ=new Ce(45725541,0),KgL=new Ce(45725540,0),Brk=new Ce(45725538,0),ZFw=new Ce(45741339,0);var Q3S="://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(" "),CHk=/\bocr\b/;var $n8=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.G(Xr0,PS);g.G(OtC,PS);g.G($w,PS);$w.prototype.getName=function(){return uq(this,1)};
|
|
$w.prototype.getOptions=function(){return WG(this,OtC,3)};
|
|
$w.prototype.clearOptions=function(){return ra(this,3)};g.G(XO,PS);g.p=XO.prototype;g.p.getName=function(){return uq(this,1)};
|
|
g.p.getOptions=function(){return WG(this,Xr0,3)};
|
|
g.p.clearOptions=function(){return ra(this,3)};
|
|
g.p.WI=function(){return ag(this,6)};
|
|
g.p.xP=function(A){KH(this,6,A)};var MOC=function(A){return function(L){L=JSON.parse(L);if(!Array.isArray(L))throw Error("Expected jspb data to be an array, got "+kW(L)+": "+L);Kd(L,34);return new A(L)}}(XO);var c56=Symbol();var Unk=Symbol();Object.assign({},{attributes:{},handleError:function(A){throw A;}},{Lf1:!0,
|
|
NyM:!0,yVr:lME,WLT:lME,Ht4:mu0,qh4:!1,I_x:!1,zCx:!1,dyp:!0,kgL:TOD,PiM:!1,Tyx:!1,Ipr:!1});var EB=null,MT=!1,LQ7=1,ux0=Symbol("SIGNAL"),FQ={version:0,HCs:0,I$:!1,producers:void 0,yy:void 0,Mt:void 0,Et:void 0,M1:!1,XX:!1,iS:!1,kind:"unknown",KP:function(){return!1},
|
|
GY:function(){},
|
|
dj:function(){},
|
|
afr:function(){}};var D9=Symbol("UNSET"),dQ=Symbol("COMPUTING"),Iz=Symbol("ERRORED");Object.assign({},FQ,{value:D9,I$:!0,error:null,I3:OB,kind:"computed",KP:function(A){return A.value===D9||A.value===dQ},
|
|
GY:function(A){if(A.value===dQ)throw Error("");var L=A.value;A.value=dQ;var B=PHe(A),f=!1;try{var K=A.u7();cM(null);f=L!==D9&&L!==Iz&&K!==Iz&&A.I3(L,K)}catch(V){K=Iz,A.error=V}finally{cM(B),A&&eNw(A)}f?A.value=L:(A.value=K,A.version++)}});Object.assign({},FQ,{iS:!0,XX:!0,I$:!0,kind:"effect"});var zN8=Object.assign({},FQ,{I3:OB,value:void 0,kind:"signal"});Object.assign({},FQ,{value:D9,I$:!0,error:null,I3:OB,kind:"linkedSignal",KP:function(A){return A.value===D9||A.value===dQ},
|
|
GY:function(A){if(A.value===dQ)throw Error("");var L=A.value;A.value=dQ;var B=PHe(A);try{var f=A.source();var K=A.u7(f,L===D9||L===Iz?void 0:{source:A.xqF,value:L});A.xqF=f}catch(V){K=Iz,A.error=V}finally{cM(B),A&&eNw(A)}L!==D9&&K!==Iz&&A.I3(L,K)?A.value=L:(A.value=K,A.version++)}});Object.assign({},FQ,{iS:!0,XX:!1,dj:function(A){A.schedule!==null&&A.schedule(A.ap1)},
|
|
s6s:function(){}});g.G(vM,g.gb);vM.prototype.dispose=function(){window.removeEventListener("offline",this.V);window.removeEventListener("online",this.V);this.kC.WF(this.D);delete vM.instance};
|
|
vM.prototype.Dr=function(){return this.N};
|
|
vM.prototype.yG=function(){var A=this;this.D=this.kC.pV(function(){var L;return g.c(function(B){if(B.N==1)return A.N?((L=window.navigator)==null?0:L.onLine)?B.Ux(3):g.X(B,WM(A),3):g.X(B,WM(A),3);A.yG();g.VK(B)})},3E4)};g.G(Bme,PS);var oYQ=PAQ(Bme,[0,fI,TGk,IfE,fI,-2,IfE,F8E]);PM.prototype.set=function(A,L){L=L===void 0?!0:L;0<=A&&A<52&&Number.isInteger(A)&&this.data[A]!==L&&(this.data[A]=L,this.N=-1)};
|
|
PM.prototype.get=function(A){return!!this.data[A]};var eF;g.Ud(g.uN,g.Y);g.p=g.uN.prototype;g.p.start=function(){this.stop();this.U=!1;var A=KQ7(this),L=VWL(this);A&&!L&&this.W.mozRequestAnimationFrame?(this.N=g.Ft(this.W,"MozBeforePaint",this.V),this.W.mozRequestAnimationFrame(null),this.U=!0):this.N=A&&L?A.call(this.W,this.V):this.W.setTimeout(DVC(this.V),20)};
|
|
g.p.stop=function(){if(this.isActive()){var A=KQ7(this),L=VWL(this);A&&!L&&this.W.mozRequestAnimationFrame?wb(this.N):A&&L?L.call(this.W,this.N):this.W.clearTimeout(this.N)}this.N=null};
|
|
g.p.isActive=function(){return this.N!=null};
|
|
g.p.rZ=function(){this.U&&this.N&&wb(this.N);this.N=null;this.T.call(this.D,g.Ed())};
|
|
g.p.l1=function(){this.stop();g.uN.oy.l1.call(this)};g.Ud(g.aa,g.Y);g.p=g.aa.prototype;g.p.YY=0;g.p.l1=function(){g.aa.oy.l1.call(this);this.stop();delete this.N;delete this.W};
|
|
g.p.start=function(A){this.stop();this.YY=g.MB(this.V,A!==void 0?A:this.LV)};
|
|
g.p.stop=function(){this.isActive()&&g.rI.clearTimeout(this.YY);this.YY=0};
|
|
g.p.isActive=function(){return this.YY!=0};
|
|
g.p.jW=function(){this.YY=0;this.N&&this.N.call(this.W)};g.G(g.BC,g.Y);g.p=g.BC.prototype;g.p.Za=function(A){this.V=arguments;this.x6||this.W?this.N=!0:fK(this)};
|
|
g.p.stop=function(){this.x6&&(g.rI.clearTimeout(this.x6),this.x6=null,this.N=!1,this.V=null)};
|
|
g.p.pause=function(){this.W++};
|
|
g.p.resume=function(){this.W--;this.W||!this.N||this.x6||(this.N=!1,fK(this))};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);this.stop()};g.KK.prototype[Symbol.iterator]=function(){return this};
|
|
g.KK.prototype.next=function(){var A=this.N.next();return{value:A.done?void 0:this.W.call(void 0,A.value),done:A.done}};g.Ud(g.d$,g.gb);g.p=g.d$.prototype;g.p.isPlaying=function(){return this.N==1};
|
|
g.p.isPaused=function(){return this.N==-1};
|
|
g.p.yP=function(){this.eb("begin")};
|
|
g.p.jL=function(){this.eb("end")};
|
|
g.p.onFinish=function(){this.eb("finish")};
|
|
g.p.onStop=function(){this.eb("stop")};
|
|
g.p.eb=function(A){this.dispatchEvent(A)};var G89=er(function(){var A=g.TO("DIV"),L=g.h8?"-webkit":V9?"-moz":null,B="transition:opacity 1s linear;";L&&(B+=L+"-transition:opacity 1s linear;");L=og7({style:B});if(A.nodeType===1&&/^(script|style)$/i.test(A.tagName))throw Error("");A.innerHTML=mC(L);return g.SV(A.firstChild,"transition")!=""});g.Ud(I1,g.d$);g.p=I1.prototype;g.p.play=function(){if(this.isPlaying())return!1;this.yP();this.eb("play");this.startTime=g.Ed();this.N=1;if(G89())return g.Kv(this.W,this.T),this.V=g.MB(this.wVn,void 0,this),!0;this.tR(!1);return!1};
|
|
g.p.wVn=function(){g.pv(this.W);RjE(this.W,this.X);g.Kv(this.W,this.U);this.V=g.MB((0,g.X9)(this.tR,this,!1),this.D*1E3)};
|
|
g.p.stop=function(){this.isPlaying()&&this.tR(!0)};
|
|
g.p.tR=function(A){g.Kv(this.W,"transition","");g.rI.clearTimeout(this.V);g.Kv(this.W,this.U);this.endTime=g.Ed();this.N=0;if(A)this.onStop();else this.onFinish();this.jL()};
|
|
g.p.l1=function(){this.stop();I1.oy.l1.call(this)};
|
|
g.p.pause=function(){};var Nmw={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,"var":!0};w$("Element","attributes")||w$("Node","attributes");w$("Element","innerHTML")||w$("HTMLElement","innerHTML");w$("Node","nodeName");w$("Node","nodeType");w$("Node","parentNode");w$("Node","childNodes");w$("HTMLElement","style")||w$("Element","style");w$("HTMLStyleElement","sheet");var p3Q=DOC("getPropertyValue"),y9w=DOC("setProperty");w$("Element","namespaceURI")||w$("Node","namespaceURI");var w3C={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var r9v,jb7,G1v,gZy,sxy;r9v=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]");jb7=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.r1I=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.yd=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]");G1v=/^http:\/\/.*/;g.s0I=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");gZy=/\s+/;sxy=/[\d\u06f0-\u06f9]/;g$.prototype.iM=function(){return new GF(this.W())};
|
|
g$.prototype[Symbol.iterator]=function(){return new r$(this.W())};
|
|
g$.prototype.N=function(){return new r$(this.W())};
|
|
g.G(GF,g.$1);GF.prototype.next=function(){return this.W.next()};
|
|
GF.prototype[Symbol.iterator]=function(){return new r$(this.W)};
|
|
GF.prototype.N=function(){return new r$(this.W)};
|
|
g.G(r$,g$);r$.prototype.next=function(){return this.V.next()};HC.prototype.clone=function(){return new HC(this.N,this.X,this.V,this.D,this.U,this.T,this.W,this.G)};
|
|
HC.prototype.equals=function(A){return this.N==A.N&&this.X==A.X&&this.V==A.V&&this.D==A.D&&this.U==A.U&&this.T==A.T&&this.W==A.W&&this.G==A.G};bk.prototype.clone=function(){return new bk(this.start,this.end)};(function(){if(b7C){var A=/Windows NT ([0-9.]+)/;return(A=A.exec(g.fa()))?A[1]:"0"}return Hj?(A=/1[0|1][_.][0-9_.]+/,(A=A.exec(g.fa()))?A[0].replace(/_/g,"."):"10"):g.fn?(A=/Android\s+([^\);]+)(\)|;)/,(A=A.exec(g.fa()))?A[1]:""):iAD||$uk||Xzk?(A=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(A=A.exec(g.fa()))?A[1].replace(/_/g,"."):""):""})();var bcv=function(){if(g.de)return tz(/Firefox\/([0-9.]+)/);if(g.pK||g.ns||g.ER)return eww;if(g.Z2){if(ay()||A8()){var A=tz(/CriOS\/([0-9.]+)/);if(A)return A}return tz(/Chrome\/([0-9.]+)/)}if(g.yw&&!ay())return tz(/Version\/([0-9.]+)/);if(Ln||oX){if(A=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.fa()))return A[1]+"."+A[2]}else if(g.cL)return(A=tz(/Android\s+([0-9.]+)/))?A:tz(/Version\/([0-9.]+)/);return""}();g.Ud(g.TF,g.Y);g.p=g.TF.prototype;g.p.subscribe=function(A,L,B){var f=this.W[A];f||(f=this.W[A]=[]);var K=this.T;this.N[K]=A;this.N[K+1]=L;this.N[K+2]=B;this.T=K+3;f.push(K);return K};
|
|
g.p.unsubscribe=function(A,L,B){if(A=this.W[A]){var f=this.N;if(A=A.find(function(K){return f[K+1]==L&&f[K+2]==B}))return this.vR(A)}return!1};
|
|
g.p.vR=function(A){var L=this.N[A];if(L){var B=this.W[L];this.U!=0?(this.V.push(A),this.N[A+1]=function(){}):(B&&g.Lx(B,A),delete this.N[A],delete this.N[A+1],delete this.N[A+2])}return!!L};
|
|
g.p.publish=function(A,L){var B=this.W[A];if(B){var f=Array(arguments.length-1),K=arguments.length,V;for(V=1;V<K;V++)f[V-1]=arguments[V];if(this.X)for(V=0;V<B.length;V++)K=B[V],tWD(this.N[K+1],this.N[K+2],f);else{this.U++;try{for(V=0,K=B.length;V<K&&!this.TL();V++){var J=B[V];this.N[J+1].apply(this.N[J+2],f)}}finally{if(this.U--,this.V.length>0&&this.U==0)for(;B=this.V.pop();)this.vR(B)}}return V!=0}return!1};
|
|
g.p.clear=function(A){if(A){var L=this.W[A];L&&(L.forEach(this.vR,this),delete this.W[A])}else this.N.length=0,this.W={}};
|
|
g.p.l1=function(){g.TF.oy.l1.call(this);this.clear();this.V.length=0};g.lk.prototype.set=function(A,L){L===void 0?this.cq.remove(A):this.cq.set(A,g.vD(L))};
|
|
g.lk.prototype.get=function(A){try{var L=this.cq.get(A)}catch(B){return}if(L!==null)try{return JSON.parse(L)}catch(B){throw"Storage: Invalid value was encountered";}};
|
|
g.lk.prototype.remove=function(A){this.cq.remove(A)};g.Ud(mo,g.lk);mo.prototype.set=function(A,L){mo.oy.set.call(this,A,Tmy(L))};
|
|
mo.prototype.hY=function(A){A=mo.oy.get.call(this,A);if(A===void 0||A instanceof Object)return A;throw"Storage: Invalid value was encountered";};
|
|
mo.prototype.get=function(A){if(A=this.hY(A)){if(A=A.data,A===void 0)throw"Storage: Invalid value was encountered";}else A=void 0;return A};g.Ud(Qd,mo);Qd.prototype.set=function(A,L,B){if(L=Tmy(L)){if(B){if(B<g.Ed()){Qd.prototype.remove.call(this,A);return}L.expiration=B}L.creation=g.Ed()}Qd.oy.set.call(this,A,L)};
|
|
Qd.prototype.hY=function(A,L){var B=Qd.oy.hY.call(this,A);if(B)if(!L&&g.lav(B))Qd.prototype.remove.call(this,A);else return B};g.Ud(g.CK,Qd);g.Ud(ik,mOw);ik.prototype[Symbol.iterator]=function(){return g.sn(this.iM(!0)).N()};
|
|
ik.prototype.clear=function(){var A=Array.from(this);A=g.m(A);for(var L=A.next();!L.done;L=A.next())this.remove(L.value)};g.Ud($C,ik);g.p=$C.prototype;g.p.isAvailable=function(){if(this.W===null){var A=this.N;if(A)try{A.setItem("__sak","1");A.removeItem("__sak");var L=!0}catch(B){L=B instanceof DOMException&&(B.name==="QuotaExceededError"||B.code===22||B.code===1014||B.name==="NS_ERROR_DOM_QUOTA_REACHED")&&A&&A.length!==0}else L=!1;this.W=L}return this.W};
|
|
g.p.set=function(A,L){Xq(this);try{this.N.setItem(A,L)}catch(B){if(this.N.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
|
|
g.p.get=function(A){Xq(this);A=this.N.getItem(A);if(typeof A!=="string"&&A!==null)throw"Storage mechanism: Invalid value was encountered";return A};
|
|
g.p.remove=function(A){Xq(this);this.N.removeItem(A)};
|
|
g.p.iM=function(A){Xq(this);var L=0,B=this.N,f=new g.$1;f.next=function(){if(L>=B.length)return g.JN;var K=B.key(L++);if(A)return g.X_(K);K=B.getItem(K);if(typeof K!=="string")throw"Storage mechanism: Invalid value was encountered";return g.X_(K)};
|
|
return f};
|
|
g.p.clear=function(){Xq(this);this.N.clear()};
|
|
g.p.key=function(A){Xq(this);return this.N.key(A)};g.Ud(On,$C);g.Ud(QxQ,$C);g.Ud(En,ik);En.prototype.set=function(A,L){this.W.set(this.N+A,L)};
|
|
En.prototype.get=function(A){return this.W.get(this.N+A)};
|
|
En.prototype.remove=function(A){this.W.remove(this.N+A)};
|
|
En.prototype.iM=function(A){var L=this.W[Symbol.iterator](),B=this,f=new g.$1;f.next=function(){var K=L.next();if(K.done)return K;for(K=K.value;K.slice(0,B.N.length)!=B.N;){K=L.next();if(K.done)return K;K=K.value}return g.X_(A?K.slice(B.N.length):B.W.get(K))};
|
|
return f};MH.prototype.getValue=function(){return this.W};
|
|
MH.prototype.clone=function(){return new MH(this.N,this.W)};g.p=YC.prototype;g.p.h1=function(A,L){var B=this.N;B.push(new MH(A,L));A=B.length-1;L=this.N;for(B=L[A];A>0;){var f=A-1>>1;if(L[f].N>B.N)L[A]=L[f],A=f;else break}L[A]=B};
|
|
g.p.remove=function(){var A=this.N,L=A.length,B=A[0];if(!(L<=0)){if(L==1)A.length=0;else{A[0]=A.pop();A=0;L=this.N;for(var f=L.length,K=L[A];A<f>>1;){var V=A*2+1,J=A*2+2;V=J<f&&L[J].N<L[V].N?J:V;if(L[V].N>K.N)break;L[A]=L[V];A=V}L[A]=K}return B.getValue()}};
|
|
g.p.aU=function(){for(var A=this.N,L=[],B=A.length,f=0;f<B;f++)L.push(A[f].getValue());return L};
|
|
g.p.F1=function(){for(var A=this.N,L=[],B=A.length,f=0;f<B;f++)L.push(A[f].N);return L};
|
|
g.p.clone=function(){return new YC(this)};
|
|
g.p.isEmpty=function(){return this.N.length===0};
|
|
g.p.clear=function(){this.N.length=0};g.G(WC,YC);WC.prototype.enqueue=function(A,L){this.h1(A,L)};vC.Uf=void 0;vC.getInstance=function(){return vC.Uf?vC.Uf:vC.Uf=new vC};
|
|
vC.prototype.N=0;var qH={},HwK=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";qH.assign=function(A){for(var L=Array.prototype.slice.call(arguments,1);L.length;){var B=L.shift();if(B){if(typeof B!=="object")throw new TypeError(B+"must be non-object");for(var f in B)Object.prototype.hasOwnProperty.call(B,f)&&(A[f]=B[f])}}return A};
|
|
qH.DT=function(A,L){if(A.length===L)return A;if(A.subarray)return A.subarray(0,L);A.length=L;return A};
|
|
var hQB={CJ:function(A,L,B,f,K){if(L.subarray&&A.subarray)A.set(L.subarray(B,B+f),K);else for(var V=0;V<f;V++)A[K+V]=L[B+V]},
|
|
Ck:function(A){var L,B;var f=B=0;for(L=A.length;f<L;f++)B+=A[f].length;var K=new Uint8Array(B);f=B=0;for(L=A.length;f<L;f++){var V=A[f];K.set(V,B);B+=V.length}return K}},bwO={CJ:function(A,L,B,f,K){for(var V=0;V<f;V++)A[K+V]=L[B+V]},
|
|
Ck:function(A){return[].concat.apply([],A)}};
|
|
qH.YfF=function(){HwK?(qH.Vc=Uint8Array,qH.wg=Uint16Array,qH.Yx=Int32Array,qH.assign(qH,hQB)):(qH.Vc=Array,qH.wg=Array,qH.Yx=Array,qH.assign(qH,bwO))};
|
|
qH.YfF();var tEB=!0;try{new Uint8Array(1)}catch(A){tEB=!1};var GR={};GR=function(A,L,B,f){var K=A&65535|0;A=A>>>16&65535|0;for(var V;B!==0;){V=B>2E3?2E3:B;B-=V;do K=K+L[f++]|0,A=A+K|0;while(--V);K%=65521;A%=65521}return K|A<<16|0};for(var rn={},wQ,k8X=[],pI=0;pI<256;pI++){wQ=pI;for(var Tyd=0;Tyd<8;Tyd++)wQ=wQ&1?3988292384^wQ>>>1:wQ>>>1;k8X[pI]=wQ}rn=function(A,L,B,f){B=f+B;for(A^=-1;f<B;f++)A=A>>>8^k8X[(A^L[f])&255];return A^-1};var St={};St={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 LX=[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],fX=[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],fmL=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],PmE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],FC=Array(576);PC(FC);var Dl=Array(60);PC(Dl);var Bt=Array(512);PC(Bt);var Al=Array(256);PC(Al);var ow=Array(29);PC(ow);var KX=Array(30);PC(KX);var LN0,oAw,Bbk,AU7=!1;var tl;tl=[new b8(0,0,0,0,function(A,L){var B=65535;for(B>A.WA-5&&(B=A.WA-5);;){if(A.cz<=1){s5(A);if(A.cz===0&&L===0)return 1;if(A.cz===0)break}A.Dg+=A.cz;A.cz=0;var f=A.vF+B;if(A.Dg===0||A.Dg>=f)if(A.cz=A.Dg-f,A.Dg=f,dn(A,!1),A.E9.Ke===0)return 1;if(A.Dg-A.vF>=A.RC-262&&(dn(A,!1),A.E9.Ke===0))return 1}A.h1=0;if(L===4)return dn(A,!0),A.E9.Ke===0?3:4;A.Dg>A.vF&&dn(A,!1);return 1}),
|
|
new b8(4,4,8,4,Ht),new b8(4,5,16,8,Ht),new b8(4,6,32,32,Ht),new b8(4,4,16,16,hl),new b8(8,16,32,32,hl),new b8(8,16,128,128,hl),new b8(8,32,128,256,hl),new b8(32,128,258,1024,hl),new b8(32,258,258,4096,hl)];var aaL={};aaL=function(){this.input=null;this.yc=this.j6=this.d2=0;this.output=null;this.QS=this.Ke=this.n_=0;this.msg="";this.state=null;this.KW=2;this.FO=0};var KNw=Object.prototype.toString;
|
|
kR.prototype.push=function(A,L){var B=this.E9,f=this.options.chunkSize;if(this.ended)return!1;var K=L===~~L?L:L===!0?4:0;typeof A==="string"?B.input=$O6(A):KNw.call(A)==="[object ArrayBuffer]"?B.input=new Uint8Array(A):B.input=A;B.d2=0;B.j6=B.input.length;do{B.Ke===0&&(B.output=new qH.Vc(f),B.n_=0,B.Ke=f);A=uu8(B,K);if(A!==1&&A!==0)return this.jL(A),this.ended=!0,!1;if(B.Ke===0||B.j6===0&&(K===4||K===2))if(this.options.to==="string"){var V=qH.DT(B.output,B.n_);L=V;V=V.length;if(V<65537&&(L.subarray&&
|
|
tEB||!L.subarray))L=String.fromCharCode.apply(null,qH.DT(L,V));else{for(var J="",R=0;R<V;R++)J+=String.fromCharCode(L[R]);L=J}this.chunks.push(L)}else L=qH.DT(B.output,B.n_),this.chunks.push(L)}while((B.j6>0||B.Ke===0)&&A!==1);if(K===4)return(B=this.E9)&&B.state?(f=B.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?A=Rw(B,-2):(B.state=null,A=f===113?Rw(B,-3):0)):A=-2,this.jL(A),this.ended=!0,A===0;K===2&&(this.jL(0),B.Ke=0);return!0};
|
|
kR.prototype.jL=function(A){A===0&&(this.result=this.options.to==="string"?this.chunks.join(""):qH.Ck(this.chunks));this.chunks=[];this.err=A;this.msg=this.E9.msg};var l8="@@redux/INIT"+TR(),Nb8="@@redux/REPLACE"+TR();var FNL=typeof Symbol==="function"&&Symbol.observable||"@@observable";var lSf=[0,hbe,-3,B0];g.G(wDC,PS);var Te8=PAQ(wDC,[0,fI,bD0,aY,hbe,aY,-1,B0,hbe,B0,-1,fI,B0,bD0,AN,lSf,aY,-1,B0]);var Hw8=340491746;var mCX=function(A,L){return function(){var B=new Wkw(A,L,$E);return function(){return B}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var QXv=new g.CX("adInfoDialogEndpoint");var dUy=new g.CX("adPingingEndpoint");var TkD=new g.CX("crossDeviceProgressCommand");var zA=new g.CX("actionCompanionAdRenderer");var nU=new g.CX("adActionInterstitialRenderer");var Q0t=new g.CX("adDurationRemainingRenderer");var he=new g.CX("adHoverTextButtonRenderer");var lGD=new g.CX("adInfoDialogRenderer");var B_=new g.CX("adMessageRenderer");var bM=new g.CX("adPreviewRenderer");var a2=new g.CX("adsEngagementPanelRenderer");var i08=new g.CX("dismissablePanelTextPortraitImageRenderer");var w9=new g.CX("adsEngagementPanelSectionListViewModel");var CLX=new g.CX("flyoutCtaRenderer");var uh=new g.CX("imageCompanionAdRenderer");var xm=new g.CX("instreamAdPlayerOverlayRenderer");var EOk=new g.CX("instreamSurveyAdBackgroundImageRenderer");var Hy=new g.CX("instreamSurveyAdPlayerOverlayRenderer");var ZJ=new g.CX("instreamSurveyAdRenderer"),s4=new g.CX("instreamSurveyAdSingleSelectQuestionRenderer"),r9=new g.CX("instreamSurveyAdMultiSelectQuestionRenderer"),yb=new g.CX("instreamSurveyAdAnswerRenderer"),iwt=new g.CX("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var SL=new g.CX("instreamVideoAdRenderer");var $Cf=new g.CX("textOverlayAdContentRenderer"),X6w=new g.CX("enhancedTextOverlayAdContentRenderer"),OwI=new g.CX("imageOverlayAdContentRenderer");var e9=new g.CX("playerOverlayLayoutRenderer");var zY=new g.CX("videoInterstitialButtonedCenteredLayoutRenderer");var cVy=new g.CX("aboveFeedAdLayoutRenderer");var MGv=new g.CX("belowPlayerAdLayoutRenderer");var Ex1=new g.CX("inPlayerAdLayoutRenderer");var YCD=new g.CX("inPlayerOrganicOverlayAdLayoutRenderer");var DJ=new g.CX("playerBytesAdLayoutRenderer");var g9=new g.CX("playerBytesSequenceItemAdLayoutRenderer");var jL=new g.CX("playerUnderlayAdLayoutRenderer");var RG=new g.CX("adIntroRenderer");var VQ=new g.CX("playerBytesSequentialLayoutRenderer");var G30=new g.CX("slidingTextPlayerOverlayRenderer");var N0=new g.CX("surveyTextInterstitialRenderer");var d9=new g.CX("videoAdTrackingRenderer");var l8w=new g.CX("videoInterstitialCenteredLayoutViewModel");var E7O=new g.CX("simpleAdBadgeRenderer");var fp=new g.CX("skipAdRenderer"),c1O=new g.CX("skipButtonRenderer");var Gl=new g.CX("adSlotRenderer");var pJ=new g.CX("squeezebackPlayerSidePanelRenderer");var MEd=new g.CX("timedPieCountdownRenderer");var Me=new g.CX("adAvatarViewModel");var Y4=new g.CX("adBadgeViewModel");var U$=new g.CX("adButtonViewModel");var YDw=new g.CX("adDetailsLineViewModel");var UCf=new g.CX("adDisclosureBannerViewModel");var WvI=new g.CX("adPodIndexViewModel");var v75=new g.CX("imageBackgroundViewModel");var qDt=new g.CX("adGridCardCollectionViewModel");var PLI=new g.CX("adGridCardTextViewModel");var xCB=new g.CX("adPreviewViewModel");var eQK=new g.CX("playerAdAvatarLockupCardButtonedViewModel");var n7t=new g.CX("skipAdButtonViewModel");var zQt=new g.CX("skipAdViewModel");var uk9=new g.CX("timedPieCountdownViewModel");var aSw=new g.CX("visitAdvertiserLinkViewModel");var Ae=new g.CX("bannerImageLayoutViewModel");var LJ=new g.CX("topBannerImageTextIconButtonedLayoutViewModel");var oG=new g.CX("adsEngagementPanelLayoutViewModel");var yQ=new g.CX("displayUnderlayTextGridCardsLayoutViewModel");g.Er=new g.CX("browseEndpoint");var Aft=new g.CX("confirmDialogEndpoint");var uzL=new g.CX("commandContext");var vRD=new g.CX("rawColdConfigGroup");var Wcy=new g.CX("rawHotConfigGroup");g.yr=new g.CX("commandExecutorCommand");g.G(pDe,PS);var xKS={gHr:0,eQj:1,LIr:32,qkT:61,tL1:67,kWM:103,lfs:86,PDp:42,dn4:60,vHL:62,H3r:73,yUL:76,VLF:88,myF:90,Ffr:99,ci4:98,b3F:100,Wf4:102,UyL:41,wgF:69,Z3F:70,DyF:71,V84:2,mEx:27,ANDROID:3,JdL:54,TQF:14,Ad4:91,jCD:55,X94:24,i91:20,Yjn:18,rdT:21,nRr:104,f51:30,xPs:29,u5r:28,CDT:101,p91:34,hE4:36,gRL:38,IOS:5,yAM:15,tbn:92,W2x:40,qIx:25,Ilj:17,llT:19,kK1:64,VbD:66,m7r:26,U74:22,wAp:33,ZOM:68,D7p:35,bOr:53,F2n:37,HOT:39,FIM:7,UnD:57,wYn:43,DnF:59,Z5r:93,sCD:74,Mrp:75,RQ4:85,SZx:65,TgF:80,jgD:8,b5r:10,
|
|
i5D:58,XYD:63,Jin:72,CYF:23,Skr:11,JUF:13,D4F:12,trr:16,BgT:56,If4:31,qU1:77,Ydx:84,NK1:87,rOD:89,gfn:94,K24:95};g.G(i8,PS);i8.prototype.Fd=function(){return uq(this,3)};
|
|
i8.prototype.J4=function(){return uq(this,5)};
|
|
i8.prototype.K3=function(A){return BS(this,5,A)};g.G($R,PS);g.G(yU8,PS);g.G(XC,PS);g.p=XC.prototype;g.p.getDeviceId=function(){return uq(this,6)};
|
|
g.p.JY=function(A){var L=lq(this,9,ii,3,!0);Rr(L,A);return L[A]};
|
|
g.p.getPlayerType=function(){return ag(this,36)};
|
|
g.p.setHomeGroupInfo=function(A){return PG(this,yU8,81,A)};
|
|
g.p.clearLocationPlayabilityToken=function(){return ra(this,89)};g.G(O5,PS);O5.prototype.getValue=function(){return uq(this,M$(this,Y56,2))};
|
|
var Y56=[2,3,4,5,6];g.G(E5,PS);E5.prototype.setTrackingParams=function(A){return ra(this,1,dww(A,!1))};g.G(ct,PS);g.G(Mv,PS);Mv.prototype.JY=function(A){var L=lq(this,5,$3,3,!0);Rr(L,A);return L[A]};g.G(YR,PS);YR.prototype.getToken=function(){return LH(this,2)};
|
|
YR.prototype.setToken=function(A){return BS(this,2,A)};g.G(U5,PS);U5.prototype.setSafetyMode=function(A){return KH(this,5,A)};g.G(Wt,PS);Wt.prototype.Qs=function(A){return PG(this,XC,1,A)};var kY=new g.CX("thumbnailLandscapePortraitRenderer");g.Ltd=new g.CX("changeEngagementPanelVisibilityAction");var JRS=new g.CX("continuationCommand");g.oWW=new g.CX("openPopupAction");var UrD=new g.CX("signalAction");g.jy=new g.CX("webCommandMetadata");var z9k=new g.CX("metadataBadgeRenderer");var Vdw=new g.CX("signalServiceEndpoint");var XP=new g.CX("innertubeCommand");var Wu6=new g.CX("loggingDirectives");var L71={NRM:"EMBEDDED_PLAYER_MODE_UNKNOWN",PHj:"EMBEDDED_PLAYER_MODE_DEFAULT",d4D:"EMBEDDED_PLAYER_MODE_PFP",LXT:"EMBEDDED_PLAYER_MODE_PFL"};var hpv=new g.CX("channelThumbnailEndpoint");var HS0=new g.CX("embeddedPlayerErrorMessageRenderer");var gh6=new g.CX("embeddedPlayerOverlayVideoDetailsRenderer"),bSv=new g.CX("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),tMk=new g.CX("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var x00=new g.CX("embedsInfoPanelRenderer");var mYD=new g.CX("feedbackEndpoint");var BIK=new g.CX("callToActionButtonViewModel");var fRW=new g.CX("interactionLoggingCommandMetadata");var eMy={O5r:"WEB_DISPLAY_MODE_UNKNOWN",ao4:"WEB_DISPLAY_MODE_BROWSER",Gf4:"WEB_DISPLAY_MODE_MINIMAL_UI",oHn:"WEB_DISPLAY_MODE_STANDALONE",KIM:"WEB_DISPLAY_MODE_FULLSCREEN"};g.G(vt,PS);vt.prototype.getPlayerType=function(){return ag(this,7)};
|
|
vt.prototype.TP=function(){return uq(this,19)};
|
|
vt.prototype.setVideoId=function(A){return BS(this,19,A)};g.G(qv,PS);g.G(Pt,PS);g.G(xR,PS);
|
|
var KtB=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
|
|
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var V59=new g.CX("loggingContext");g.G(et,PS);g.G(nX,PS);nX.prototype.TP=function(){return LH(this,M$(this,VH,1))};
|
|
nX.prototype.setVideoId=function(A){return EG(this,1,VH,nd(A))};
|
|
nX.prototype.getPlaylistId=function(){return LH(this,M$(this,VH,2))};
|
|
var VH=[1,2];g.G(g.zR,PS);g.zR.prototype.nj=OD(0);var JfK=new g.CX("dismissPlayerOverlayCommand");var dp=new g.CX("changeKeyedMarkersVisibilityCommand");var SdI=new g.CX("changeMarkersVisibilityCommand");var aJD=new g.CX("loadMarkersCommand");var RwX=new g.CX("suggestedActionDataViewModel");var fWQ=new g.CX("timelyActionViewModel");var BAE=new g.CX("timelyActionsOverlayViewModel");var hW8=new g.CX("productListItemRenderer");var Zfd=new g.CX("shoppingOverlayRenderer");var G0e=new g.CX("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var NIK=new g.CX("adFeedbackEndpoint");var Ft9=new g.CX("menuEndpoint");var Txw=new g.CX("phoneDialerEndpoint");var tc1=new g.CX("sendSmsEndpoint");var jUE=new g.CX("copyTextEndpoint");var DXW=new g.CX("shareEndpoint"),dXw=new g.CX("shareEntityEndpoint"),IRR=new g.CX("shareEntityServiceEndpoint"),wwt=new g.CX("webPlayerShareEntityServiceEndpoint");g.Mt=new g.CX("urlEndpoint");g.FZ=new g.CX("watchEndpoint");var pwO=new g.CX("watchPlaylistEndpoint");g.yff=new g.CX("offlineOrchestrationActionCommand");var C3y=new g.CX("compositeVideoOverlayRenderer");var jOf=new g.CX("miniplayerRenderer");var w_Q=new g.CX("paidContentOverlayRenderer");var up7=new g.CX("playerMutedAutoplayOverlayRenderer"),aN6=new g.CX("playerMutedAutoplayEndScreenRenderer");var q78=new g.CX("unserializedPlayerResponse"),R9w=new g.CX("unserializedPlayerResponse");var gWf=new g.CX("playlistEditEndpoint");var gQ;g.te=new g.CX("buttonRenderer");gQ=new g.CX("toggleButtonRenderer");var Qv1=new g.CX("counterfactualRenderer");var GKf=new g.CX("resolveUrlCommandMetadata");var rfB=new g.CX("modifyChannelNotificationPreferenceEndpoint");var DU1=new g.CX("pingingEndpoint");var sOw=new g.CX("unsubscribeEndpoint");g.cK=new g.CX("subscribeButtonRenderer");var HfB=new g.CX("subscribeEndpoint");var Kd7=new g.CX("buttonViewModel");var CJ1=new g.CX("qrCodeRenderer");var nFv={CFn:"LIVING_ROOM_APP_MODE_UNSPECIFIED",AA4:"LIVING_ROOM_APP_MODE_MAIN",Em1:"LIVING_ROOM_APP_MODE_KIDS",hiT:"LIVING_ROOM_APP_MODE_MUSIC",flj:"LIVING_ROOM_APP_MODE_UNPLUGGED",zir:"LIVING_ROOM_APP_MODE_GAMING"};var vYe=new g.CX("autoplaySwitchButtonRenderer");var Mg,rZk,IJE,CF6;Mg=new g.CX("decoratedPlayerBarRenderer");rZk=new g.CX("chapteredPlayerBarRenderer");IJE=new g.CX("multiMarkersPlayerBarRenderer");CF6=new g.CX("chapterRenderer");g.bZD=new g.CX("markerRenderer");var Ey7=new g.CX("decoratedPlayheadRenderer");var e9w=new g.CX("desktopOverlayConfigRenderer");var $DS=new g.CX("engagementPanelSectionListRenderer");var PMe=new g.CX("gatedActionsOverlayViewModel");var l$E=new g.CX("heatMarkerRenderer");var Tc1=new g.CX("heatmapRenderer");var uED=new g.CX("watchToWatchTransitionRenderer");var rnD=new g.CX("playlistPanelRenderer");var hwd=new g.CX("productUpsellSuggestedActionViewModel");var bfB=new g.CX("suggestedActionTimeRangeTrigger"),t5X=new g.CX("suggestedActionsRenderer"),kKB=new g.CX("suggestedActionRenderer");var mz8=new g.CX("timedMarkerDecorationRenderer");var LvQ=new g.CX("cipher");var Phe=new g.CX("playerVars");var ZJC=new g.CX("playerVars");var Ge=g.rI.window,TI9,lRO,u8=(Ge==null?void 0:(TI9=Ge.yt)==null?void 0:TI9.config_)||(Ge==null?void 0:(lRO=Ge.ytcfg)==null?void 0:lRO.data_)||{};g.hf("yt.config_",u8);var oM=[];var k91=/^[\w.]*$/,H8y={q:!0,search_query:!0},s$7=String(Vh);var IM=new function(){var A=window.document;this.N=window;this.W=A};
|
|
g.hf("yt.ads_.signals_.getAdSignalsString",function(A){return J_(pg(A))});g.Ed();var lmE="XMLHttpRequest"in g.rI?function(){return new XMLHttpRequest}:null;var mXK="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.x7(mXK);var i8E={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
|
|
"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},qEL="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.x7(mXK)),YEe=!1,EA0=Tc;g.G(Qh,Ww);$z.prototype.then=function(A,L,B){return this.N?this.N.then(A,L,B):this.V===1&&A?(A=A.call(B,this.W))&&typeof A.then==="function"?A:OQ(A):this.V===2&&L?(A=L.call(B,this.W))&&typeof A.then==="function"?A:Xa(A):this};
|
|
$z.prototype.getValue=function(){return this.W};
|
|
$z.prototype.$goog_Thenable=!0;var EQ=!1;var ed=Ln||oX;var amy=/^([0-9\.]+):([0-9\.]+)$/;g.G(pn,Ww);pn.prototype.name="BiscottiError";g.G(wL,Ww);wL.prototype.name="BiscottiMissingError";var Bsw={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},yz=null;var kKL=g.eE(["data-"]),F7C={};var QOB=0,jw=g.h8?"webkit":V9?"moz":g.pK?"ms":g.ER?"o":"",CBt=g.bB("ytDomDomGetNextId")||function(){return++QOB};
|
|
g.hf("ytDomDomGetNextId",CBt);var wc0={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};hK.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
|
|
hK.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
|
|
hK.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var bt=g.rI.ytEventsEventsListeners||{};g.hf("ytEventsEventsListeners",bt);var jQ8=g.rI.ytEventsEventsCounter||{count:0};g.hf("ytEventsEventsCounter",jQ8);var sQQ=er(function(){var A=!1;try{var L=Object.defineProperty({},"passive",{get:function(){A=!0}});
|
|
window.addEventListener("test",null,L)}catch(B){}return A}),gML=er(function(){var A=!1;
|
|
try{var L=Object.defineProperty({},"capture",{get:function(){A=!0}});
|
|
window.addEventListener("test",null,L)}catch(B){}return A});var rQ;rQ=window;g.bc=rQ.ytcsi&&rQ.ytcsi.now?rQ.ytcsi.now:rQ.performance&&rQ.performance.timing&&rQ.performance.now&&rQ.performance.timing.navigationStart?function(){return rQ.performance.timing.navigationStart+rQ.performance.now()}:function(){return(new Date).getTime()};g.Ud(mu,g.Y);mu.prototype.yj=function(A){A.N===void 0&&pcy(A);var L=A.N;A.W===void 0&&pcy(A);this.N=new g.Vl(L,A.W)};
|
|
mu.prototype.Gf=function(){return this.N||new g.Vl};
|
|
mu.prototype.Wn=function(){if(this.N){var A=(0,g.bc)();if(this.U!=0){var L=this.T,B=this.N,f=L.x-B.x;L=L.y-B.y;f=Math.sqrt(f*f+L*L)/(A-this.U);this.W[this.V]=Math.abs((f-this.D)/this.D)>.5?1:0;for(B=L=0;B<4;B++)L+=this.W[B]||0;L>=3&&this.X();this.D=f}this.U=A;this.T=this.N;this.V=(this.V+1)%4}};
|
|
mu.prototype.l1=function(){g.sQ(this.G);g.k_(this.qp)};g.G(Qz,g.Y);Qz.prototype.Y=function(A,L,B,f,K){B=g.fg((0,g.X9)(B,f||this.mH));B={target:A,name:L,callback:B};var V;K&&sQQ()&&(V={passive:!0});A.addEventListener(L,B.callback,V);this.T.push(B);return B};
|
|
Qz.prototype.J$=function(A){for(var L=0;L<this.T.length;L++)if(this.T[L]==A){this.T.splice(L,1);A.target.removeEventListener(A.name,A.callback);break}};
|
|
Qz.prototype.l1=function(){g.$_(this);g.Y.prototype.l1.call(this)};var zp1=["att/get"],UQC=["embedded_player"],zuL=["account/get_setting_values"],ifO=["share/get_share_panel"],$XR=["share/get_web_player_share_panel"],Xw5=["feedback"],Off=["notification/modify_channel_preference"],TvL=["player"],EWw=["browse/edit_playlist"],i6k=["reel/reel_item_watch"],A0e=["account/set_setting"],cfO=["subscription/subscribe"],M5X=["subscription/unsubscribe"],QPv=["next","unplugged/watch_next"];g.X$={lT:er(function(){try{var A=new On;var L=A.isAvailable()?A:null}catch(B){return null}return L?new g.CK(L):null}),
|
|
Lo:er(function(){var A=new QxQ;return A.isAvailable()?new g.CK(A):null})};g.Ydd=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.hf("yt.msgs_",g.Ydd);US.prototype.oO=function(A,L){A={};var B=[];"USER_SESSION_ID"in u8&&B.push({key:"u",value:g.A_("USER_SESSION_ID")});if(B=lnw(B))A.Authorization=B,B=L=L==null?void 0:L.sessionIndex,B===void 0&&(B=Number(g.A_("SESSION_INDEX",0)),B=isNaN(B)?0:B),g.h_("voice_search_auth_header_removal")||(A["X-Goog-AuthUser"]=B.toString()),"INNERTUBE_HOST_OVERRIDE"in u8||(A["X-Origin"]=window.location.origin),L===void 0&&"DELEGATED_SESSION_ID"in u8&&(A["X-Goog-PageId"]=g.A_("DELEGATED_SESSION_ID"));return A};var dE={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var qE=g.bB("ytglobal.prefsUserPrefsPrefs_")||{};g.hf("ytglobal.prefsUserPrefsPrefs_",qE);var W9;g.p=kX6.prototype;g.p.get=function(A,L){ew(A);x_(A);A=qE[A]!==void 0?qE[A].toString():null;return A!=null?A:L?L:""};
|
|
g.p.set=function(A,L){ew(A);x_(A);if(L==null)throw Error("ExpectedNotNull");qE[A]=L.toString()};
|
|
g.p.Iv=function(A){return!!((Tsw("f"+(Math.floor(A/31)+1))||0)&1<<A%31)};
|
|
g.p.remove=function(A){ew(A);x_(A);delete qE[A]};
|
|
g.p.save=function(){var A=!0;g.h_("web_secure_pref_cookie_killswitch")&&(A=!1);g.Ms(this.N,this.dump(),63072E3,this.W,A)};
|
|
g.p.clear=function(){g.Sdy(qE)};
|
|
g.p.dump=function(){var A=[],L;for(L in qE)qE.hasOwnProperty(L)&&A.push(L+"="+encodeURIComponent(String(qE[L])));return A.join("&")};
|
|
g.p.parse=function(A){A=decodeURIComponent(A).split("&");for(var L=0;L<A.length;L++){var B=A[L].split("="),f=B[0];(B=B[1])&&(qE[f]=B.toString())}};var mWe={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"},nwy={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},zM7={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},C0L={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.G(g.iL,Error);ut.prototype.pV=function(A,L){return aX(A,1,L)};
|
|
ut.prototype.Y1=function(A){(A=this.N.get(A))&&A()};g.bB("yt.scheduler.instance.timerIdMap_");g.G(Ls,ut);Ls.prototype.WF=function(A){if(A===void 0||!Number.isNaN(Number(A))){var L=g.bB("yt.scheduler.instance.cancelJob");L?L(A):g.rW(A)}};
|
|
Ls.prototype.start=function(){var A=g.bB("yt.scheduler.instance.start");A&&A()};
|
|
Ls.prototype.pause=function(){var A=g.bB("yt.scheduler.instance.pause");A&&A()};
|
|
g.qT=g.ol();Ks.prototype.set=function(A,L,B,f){B=B||31104E3;this.remove(A);if(this.N)try{this.N.set(A,L,Date.now()+B*1E3);return}catch(V){}var K="";if(f)try{K=escape(g.vD(L))}catch(V){return}else K=escape(L);g.Ms(A,K,B,this.W)};
|
|
Ks.prototype.get=function(A,L){var B=void 0,f=!this.N;if(!f)try{B=this.N.get(A)}catch(K){f=!0}if(f&&(B=g.Yz(A))&&(B=unescape(B),L))try{B=JSON.parse(B)}catch(K){this.remove(A),B=void 0}return B};
|
|
Ks.prototype.remove=function(A){this.N&&this.N.remove(A);g.UQ(A,"/",this.W)};
|
|
Ks.prototype.getCreationTime=function(A){return this.N&&(A=(this.N.hY(A)||{}).creation,typeof A==="number")?A:null};var Vw=function(){var A;return function(){A||(A=new Ks("ytidb"));return A}}();var Z3=[],Rl,Sd=!1;var sy={},XcQ=(sy.AUTH_INVALID="No user identifier specified.",sy.EXPLICIT_ABORT="Transaction was explicitly aborted.",sy.IDB_NOT_SUPPORTED="IndexedDB is not supported.",sy.MISSING_INDEX="Index not created.",sy.MISSING_OBJECT_STORES="Object stores not created.",sy.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",sy.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",sy.UNKNOWN_ABORT=
|
|
"Transaction was aborted for unknown reasons.",sy.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",sy.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",sy.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",sy.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",sy),H0={},O2w=(H0.AUTH_INVALID="ERROR",H0.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",H0.EXPLICIT_ABORT="IGNORED",
|
|
H0.IDB_NOT_SUPPORTED="ERROR",H0.MISSING_INDEX="WARNING",H0.MISSING_OBJECT_STORES="ERROR",H0.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",H0.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",H0.QUOTA_EXCEEDED="WARNING",H0.QUOTA_MAYBE_EXCEEDED="WARNING",H0.UNKNOWN_ABORT="WARNING",H0.INCOMPATIBLE_DB_VERSION="WARNING",H0),hN={},EMQ=(hN.AUTH_INVALID=!1,hN.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,hN.EXPLICIT_ABORT=!1,hN.IDB_NOT_SUPPORTED=!1,hN.MISSING_INDEX=!1,hN.MISSING_OBJECT_STORES=!1,hN.DB_DELETED_BY_MISSING_OBJECT_STORES=
|
|
!1,hN.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,hN.QUOTA_EXCEEDED=!1,hN.QUOTA_MAYBE_EXCEEDED=!0,hN.UNKNOWN_ABORT=!0,hN.INCOMPATIBLE_DB_VERSION=!1,hN);g.G(g.Il,g.iL);g.G(w2,g.Il);g.G(ps,Error);var cuL=["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.r2.all=function(A){return new g.r2(new GU(function(L,B){var f=[],K=A.length;K===0&&L(f);for(var V={QJ:0};V.QJ<A.length;V={QJ:V.QJ},++V.QJ)g.r2.resolve(A[V.QJ]).then(function(J){return function(R){f[J.QJ]=R;K--;K===0&&L(f)}}(V)).catch(function(J){B(J)})}))};
|
|
g.r2.resolve=function(A){return new g.r2(new GU(function(L,B){A instanceof g.r2?A.then(L,B):L(A)}))};
|
|
g.r2.reject=function(A){return new g.r2(new GU(function(L,B){B(A)}))};
|
|
g.r2.prototype.then=function(A,L){var B=this,f=A!=null?A:Ykv,K=L!=null?L:MAQ;return new g.r2(new GU(function(V,J){B.state.status==="PENDING"?(B.N.push(function(){UWk(B,B,f,V,J)}),B.W.push(function(){W7E(B,B,K,V,J)})):B.state.status==="FULFILLED"?UWk(B,B,f,V,J):B.state.status==="REJECTED"&&W7E(B,B,K,V,J)}))};
|
|
g.r2.prototype.catch=function(A){return this.then(void 0,A)};g.p=nMD.prototype;g.p.add=function(A,L,B){return g.mz(this,[A],{mode:"readwrite",Ev:!0,commit:tR()},function(f){return f.objectStore(A).add(L,B)})};
|
|
g.p.clear=function(A){return g.mz(this,[A],{mode:"readwrite",Ev:!0},function(L){return L.objectStore(A).clear()})};
|
|
g.p.close=function(){this.N.close();var A;((A=this.options)==null?0:A.closed)&&this.options.closed()};
|
|
g.p.count=function(A,L){return g.mz(this,[A],{mode:"readonly",Ev:!0,commit:tR()},function(B){return B.objectStore(A).count(L)})};
|
|
g.p.delete=function(A,L){return g.mz(this,[A],{mode:"readwrite",Ev:!0,commit:tR()&&!(L instanceof IDBKeyRange)},function(B){return B.objectStore(A).delete(L)})};
|
|
g.p.get=function(A,L){return g.mz(this,[A],{mode:"readonly",Ev:!0,commit:tR()},function(B){return B.objectStore(A).get(L)})};
|
|
g.p.getAll=function(A,L,B){return g.mz(this,[A],{mode:"readonly",Ev:!0},function(f){return f.objectStore(A).getAll(L,B)})};
|
|
g.p.objectStoreNames=function(){return Array.from(this.N.objectStoreNames)};
|
|
g.p.getName=function(){return this.N.name};
|
|
g.p=kL.prototype;g.p.add=function(A,L){return Hf(this.N.add(A,L))};
|
|
g.p.autoIncrement=function(){return this.N.autoIncrement};
|
|
g.p.clear=function(){return Hf(this.N.clear()).then(function(){})};
|
|
g.p.count=function(A){return Hf(this.N.count(A))};
|
|
g.p.delete=function(A){return A instanceof IDBKeyRange?AXL(this,A):Hf(this.N.delete(A))};
|
|
g.p.get=function(A){return Hf(this.N.get(A))};
|
|
g.p.getAll=function(A,L){return"getAll"in IDBObjectStore.prototype?Hf(this.N.getAll(A,L)):LKE(this,A,L)};
|
|
g.p.index=function(A){try{return new KKw(this.N.index(A))}catch(L){if(L instanceof Error&&L.name==="NotFoundError")throw new ps(A,this.N.name);throw L;}};
|
|
g.p.getName=function(){return this.N.name};
|
|
g.p.keyPath=function(){return this.N.keyPath};
|
|
ic.prototype.abort=function(){this.N.abort();this.aborted=!0;throw new g.Il("EXPLICIT_ABORT");};
|
|
ic.prototype.commit=function(){if(!this.aborted){var A,L;(L=(A=this.N).commit)==null||L.call(A)}};
|
|
ic.prototype.objectStore=function(A){A=this.N.objectStore(A);var L=this.W.get(A);L||(L=new kL(A),this.W.set(A,L));return L};
|
|
g.p=KKw.prototype;g.p.count=function(A){return Hf(this.N.count(A))};
|
|
g.p.delete=function(A){return g.cf(this,{query:A},function(L){return L.delete().then(function(){return g.O_(L)})})};
|
|
g.p.get=function(A){return Hf(this.N.get(A))};
|
|
g.p.getAll=function(A,L){return"getAll"in IDBIndex.prototype?Hf(this.N.getAll(A,L)):VFv(this,A,L)};
|
|
g.p.keyPath=function(){return this.N.keyPath};
|
|
g.p.unique=function(){return this.N.unique};
|
|
Mx.prototype.delete=function(){return Hf(this.cursor.delete()).then(function(){})};
|
|
Mx.prototype.getValue=function(){return this.cursor.value};
|
|
Mx.prototype.update=function(A){return Hf(this.cursor.update(A))};U_.prototype.W=function(A,L,B){B=B===void 0?{}:B;return SB7(A,L,B)};
|
|
U_.prototype.delete=function(A){A=A===void 0?{}:A;return YL(this.name,A)};
|
|
U_.prototype.open=function(){function A(){var V,J,R,Z,N,F,D,I,d,w;return g.c(function(r){switch(r.N){case 1:return J=(V=Error().stack)!=null?V:"",g.S5(r,2),g.X(r,B.W(B.name,B.options.version,K),4);case 4:for(var h=R=r.W,Q=B.options,l=[],C=g.m(Object.keys(Q.JU)),O=C.next();!O.done;O=C.next()){O=O.value;var v=Q.JU[O],U=v.Gyr===void 0?Number.MAX_VALUE:v.Gyr;!(h.N.version>=v.fO)||h.N.version>=U||h.N.objectStoreNames.contains(O)||l.push(O)}Z=l;if(Z.length===0){r.Ux(5);break}N=Object.keys(B.options.JU);
|
|
F=R.objectStoreNames();if(B.D<g.bl("ytidb_reopen_db_retries",0))return B.D++,R.close(),Nx(new g.Il("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:B.name,expectedObjectStores:N,foundObjectStores:F})),r.return(A());if(!(B.U<g.bl("ytidb_remake_db_retries",1))){r.Ux(6);break}B.U++;return g.X(r,B.delete(),7);case 7:return Nx(new g.Il("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:B.name,expectedObjectStores:N,foundObjectStores:F})),r.return(A());case 6:throw new w2(F,N);case 5:return r.return(R);case 2:D=
|
|
g.NX(r);if(D instanceof DOMException?D.name!=="VersionError":"DOMError"in self&&D instanceof DOMError?D.name!=="VersionError":!(D instanceof Object&&"message"in D)||D.message!=="An attempt was made to open a database using a lower version than the existing version."){r.Ux(8);break}return g.X(r,B.W(B.name,void 0,Object.assign({},K,{upgrade:void 0})),9);case 9:I=r.W;d=I.N.version;if(B.options.version!==void 0&&d>B.options.version+1)throw I.close(),B.V=!1,RM8(B,d);return r.return(I);case 8:throw L(),
|
|
D instanceof Error&&!g.h_("ytidb_async_stack_killswitch")&&(D.stack=D.stack+"\n"+J.substring(J.indexOf("\n")+1)),jd(D,B.name,"",(w=B.options.version)!=null?w:-1);}})}
|
|
function L(){B.N===f&&(B.N=void 0)}
|
|
var B=this;if(!this.V)throw RM8(this);if(this.N)return this.N;var f,K={blocking:function(V){V.close()},
|
|
closed:L,P0r:L,upgrade:this.options.upgrade};return this.N=f=A()};var vf=new U_("YtIdbMeta",{JU:{databases:{fO:1}},upgrade:function(A,L){L(1)&&g.TU(A,"databases",{keyPath:"actualName"})}});var uc,zU=new function(){}(new function(){});new g.IQ;g.G(L4,U_);L4.prototype.W=function(A,L,B){B=B===void 0?{}:B;return(this.options.shared?yXQ:pML)(A,L,Object.assign({},B))};
|
|
L4.prototype.delete=function(A){A=A===void 0?{}:A;return(this.options.shared?rX0:jaS)(this.name,A)};var UXw={},HeE=g.oI("ytGcfConfig",{JU:(UXw.coldConfigStore={fO:1},UXw.hotConfigStore={fO:1},UXw),shared:!1,upgrade:function(A,L){L(1)&&(g.$L(g.TU(A,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.$L(g.TU(A,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
|
|
version:1});g.G(f4,g.Y);f4.prototype.l1=function(){for(var A=g.m(this.W),L=A.next();!L.done;L=A.next()){var B=this.N;L=B.indexOf(L.value);L>=0&&B.splice(L,1)}this.W.length=0;g.Y.prototype.l1.call(this)};Zu.prototype.K3=function(A){this.hotHashData=A;g.hf("yt.gcf.config.hotHashData",this.hotHashData||null)};var WtI=typeof TextEncoder!=="undefined"?new TextEncoder:null,FoL=WtI?function(A){return WtI.encode(A)}:function(A){A=g.Ma(A);
|
|
for(var L=new Uint8Array(A.length),B=0;B<L.length;B++)L[B]=A[B];return L};var cR8={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Y_y={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};II.prototype.PV=function(){return{version:this.version,args:this.args}};wE.prototype.toString=function(){return this.topic};var vWR=g.bB("ytPubsub2Pubsub2Instance")||new g.TF;g.TF.prototype.subscribe=g.TF.prototype.subscribe;g.TF.prototype.unsubscribeByKey=g.TF.prototype.vR;g.TF.prototype.publish=g.TF.prototype.publish;g.TF.prototype.clear=g.TF.prototype.clear;g.hf("ytPubsub2Pubsub2Instance",vWR);var j_=g.bB("ytPubsub2Pubsub2SubscribedKeys")||{};g.hf("ytPubsub2Pubsub2SubscribedKeys",j_);var gE=g.bB("ytPubsub2Pubsub2TopicToKeys")||{};g.hf("ytPubsub2Pubsub2TopicToKeys",gE);var Azv=g.bB("ytPubsub2Pubsub2IsAsync")||{};
|
|
g.hf("ytPubsub2Pubsub2IsAsync",Azv);g.hf("ytPubsub2Pubsub2SkipSubKey",null);var Ha=void 0,rE=void 0;var ZK6=g.bl("max_body_size_to_compress",5E5),N$D=g.bl("min_body_size_to_compress",500),TP=!0,iy=0,C4=0,DHw=g.bl("compression_performance_threshold_lr",250),I11=g.bl("slow_compressions_before_abandon_count",4),tb=!1,kl=new Map,ly=1;g.p=XY.prototype;g.p.writeThenSend=function(A,L){var B=this;L=L===void 0?{}:L;if($l(this)&&this.N){var f={url:A,options:L,timestamp:this.now(),status:"NEW",sendCount:0};this.fh.set(f,this.uQ).then(function(K){f.id=K;B.Mq.Dr()&&B.z3(f)}).catch(function(K){B.z3(f);
|
|
Ou(B,K)})}else this.sendFn(A,L)};
|
|
g.p.sendThenWrite=function(A,L,B){var f=this;L=L===void 0?{}:L;if($l(this)&&this.N){var K={url:A,options:L,timestamp:this.now(),status:"NEW",sendCount:0};this.GL&&this.GL("nwl_skip_retry")&&(K.skipRetry=B);if(this.Mq.Dr()||this.GL&&this.GL("nwl_aggressive_send_then_write")&&!K.skipRetry){if(!K.skipRetry){var V=L.onError?L.onError:function(){};
|
|
L.onError=function(J,R){return g.c(function(Z){if(Z.N==1)return g.X(Z,f.fh.set(K,f.uQ).catch(function(N){Ou(f,N)}),2);
|
|
V(J,R);g.VK(Z)})}}this.sendFn(A,L,K.skipRetry)}else this.fh.set(K,this.uQ).catch(function(J){f.sendFn(A,L,K.skipRetry);
|
|
Ou(f,J)})}else B=this.GL&&this.GL("nwl_skip_retry")&&B,this.sendFn(A,L,B)};
|
|
g.p.sendAndWrite=function(A,L){var B=this;L=L===void 0?{}:L;if($l(this)&&this.N){var f={url:A,options:L,timestamp:this.now(),status:"NEW",sendCount:0},K=!1,V=L.onSuccess?L.onSuccess:function(){};
|
|
f.options.onSuccess=function(J,R){f.id!==void 0?B.fh.NW(f.id,B.uQ):K=!0;B.Mq.Ba&&B.GL&&B.GL("vss_network_hint")&&B.Mq.Ba(!0);V(J,R)};
|
|
this.sendFn(f.url,f.options,void 0,!0);this.fh.set(f,this.uQ).then(function(J){f.id=J;K&&B.fh.NW(f.id,B.uQ)}).catch(function(J){Ou(B,J)})}else this.sendFn(A,L,void 0,!0)};
|
|
g.p.u_=function(){var A=this;if(!$l(this))throw Error("IndexedDB is not supported: throttleSend");this.W||(this.W=this.kC.pV(function(){var L;return g.c(function(B){if(B.N==1)return g.X(B,A.fh.V0("NEW",A.uQ),2);if(B.N!=3)return L=B.W,L?g.X(B,A.z3(L),3):(A.lS(),B.return());A.W&&(A.W=0,A.u_());g.VK(B)})},this.k7))};
|
|
g.p.lS=function(){this.kC.WF(this.W);this.W=0};
|
|
g.p.z3=function(A){var L=this,B;return g.c(function(f){switch(f.N){case 1:if(!$l(L))throw Error("IndexedDB is not supported: immediateSend");if(A.id===void 0){f.Ux(2);break}return g.X(f,L.fh.ZYr(A.id,L.uQ),3);case 3:(B=f.W)||L.sV(Error("The request cannot be found in the database."));case 2:if(L.Fs(A,L.HX)){f.Ux(4);break}L.sV(Error("Networkless Logging: Stored logs request expired age limit"));if(A.id===void 0){f.Ux(5);break}return g.X(f,L.fh.NW(A.id,L.uQ),5);case 5:return f.return();case 4:A.skipRetry||
|
|
(A=gC1(L,A));if(!A){f.Ux(0);break}if(!A.skipRetry||A.id===void 0){f.Ux(8);break}return g.X(f,L.fh.NW(A.id,L.uQ),8);case 8:L.sendFn(A.url,A.options,!!A.skipRetry),g.VK(f)}})};
|
|
g.p.Fs=function(A,L){A=A.timestamp;return this.now()-A>=L?!1:!0};
|
|
g.p.Dh=function(){var A=this;if(!$l(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.fh.V0("QUEUED",this.uQ).then(function(L){L&&!A.Fs(L,A.BW)?A.kC.pV(function(){return g.c(function(B){if(B.N==1)return L.id===void 0?B.Ux(2):g.X(B,A.fh.AM(L.id,A.uQ),2);A.Dh();g.VK(B)})}):A.Mq.Dr()&&A.u_()})};var Eu;var e2L={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
|
|
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
|
|
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
|
|
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
|
|
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
|
|
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
|
|
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
|
|
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
|
|
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
|
|
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
|
|
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
|
|
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
|
|
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
|
|
tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,
|
|
appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,
|
|
webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,
|
|
parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,
|
|
prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,
|
|
sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,
|
|
parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,
|
|
biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,
|
|
youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,
|
|
crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,
|
|
embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534,
|
|
mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539};var qdO={},l17=g.oI("ServiceWorkerLogsDatabase",{JU:(qdO.SWHealthLog={fO:1},qdO),shared:!0,upgrade:function(A,L){L(1)&&g.$L(g.TU(A,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
|
|
version:1});var Yl={},XCv=0;var Uu;va.prototype.requestComplete=function(A,L){L&&(this.W=!0);A=this.removeParams(A);this.N.get(A)||this.N.set(A,L)};
|
|
va.prototype.isEndpointCFR=function(A){A=this.removeParams(A);return(A=this.N.get(A))?!1:A===!1&&this.W?!0:null};
|
|
va.prototype.removeParams=function(A){return A.split("?")[0]};
|
|
va.prototype.removeParams=va.prototype.removeParams;va.prototype.isEndpointCFR=va.prototype.isEndpointCFR;va.prototype.requestComplete=va.prototype.requestComplete;va.getInstance=czL;g.G(qJ,g.gb);g.p=qJ.prototype;g.p.Dr=function(){return this.N.Dr()};
|
|
g.p.Ba=function(A){this.N.N=A};
|
|
g.p.Kv=function(){var A=window.navigator.onLine;return A===void 0?!0:A};
|
|
g.p.Jt=function(){this.W=!0};
|
|
g.p.listen=function(A,L){return this.N.listen(A,L)};
|
|
g.p.Xs=function(A){return WM(this.N,A)};
|
|
qJ.prototype.sendNetworkCheckRequest=qJ.prototype.Xs;qJ.prototype.listen=qJ.prototype.listen;qJ.prototype.enableErrorFlushing=qJ.prototype.Jt;qJ.prototype.getWindowStatus=qJ.prototype.Kv;qJ.prototype.networkStatusHint=qJ.prototype.Ba;qJ.prototype.isNetworkAvailable=qJ.prototype.Dr;qJ.getInstance=MRw;g.G(g.Pa,g.gb);g.Pa.prototype.Dr=function(){var A=g.bB("yt.networkStatusManager.instance.isNetworkAvailable");return A?A.bind(this.W)():!0};
|
|
g.Pa.prototype.Ba=function(A){var L=g.bB("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);L&&L(A)};
|
|
g.Pa.prototype.Xs=function(A){var L=this,B;return g.c(function(f){B=g.bB("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(L.W);return g.h_("skip_network_check_if_cfr")&&czL().isEndpointCFR("generate_204")?f.return(new Promise(function(K){var V;L.Ba(((V=window.navigator)==null?void 0:V.onLine)||!0);K(L.Dr())})):B?f.return(B(A)):f.return(!0)})};var xl;g.G(e_,XY);e_.prototype.writeThenSend=function(A,L){L||(L={});L=zP(A,L);g.zT()||(this.N=!1);XY.prototype.writeThenSend.call(this,A,L)};
|
|
e_.prototype.sendThenWrite=function(A,L,B){L||(L={});L=zP(A,L);g.zT()||(this.N=!1);XY.prototype.sendThenWrite.call(this,A,L,B)};
|
|
e_.prototype.sendAndWrite=function(A,L){L||(L={});L=zP(A,L);g.zT()||(this.N=!1);XY.prototype.sendAndWrite.call(this,A,L)};
|
|
e_.prototype.awaitInitialization=function(){return this.V.promise};var vCv=g.rI.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.hf("ytNetworklessLoggingInitializationOptions",vCv);g.uy.prototype.isReady=function(){!this.config_&&YBC()&&(this.config_=g.FY());return!!this.config_};var PBt,LV,BQ;PBt=g.rI.ytPubsubPubsubInstance||new g.TF;LV=g.rI.ytPubsubPubsubSubscribedKeys||{};BQ=g.rI.ytPubsubPubsubTopicToKeys||{};g.oW=g.rI.ytPubsubPubsubIsSynchronous||{};g.TF.prototype.subscribe=g.TF.prototype.subscribe;g.TF.prototype.unsubscribeByKey=g.TF.prototype.vR;g.TF.prototype.publish=g.TF.prototype.publish;g.TF.prototype.clear=g.TF.prototype.clear;g.hf("ytPubsubPubsubInstance",PBt);g.hf("ytPubsubPubsubTopicToKeys",BQ);g.hf("ytPubsubPubsubIsSynchronous",g.oW);
|
|
g.hf("ytPubsubPubsubSubscribedKeys",LV);var zR7={};g.G(DP,g.Y);DP.prototype.append=function(A){if(!this.W)throw Error("This does not support the append operation");A=A.Zg();this.Zg().appendChild(A)};
|
|
g.G(dT,DP);dT.prototype.Zg=function(){return this.N};g.G(IW,g.Y);IW.prototype.onTouchStart=function(A){this.X=!0;this.W=A.touches.length;this.N.isActive()&&(this.N.stop(),this.D=!0);A=A.touches;this.T=Al6(this,A)||A.length!=1;var L=A.item(0);this.T||!L?this.yj=this.G=Infinity:(this.G=L.clientX,this.yj=L.clientY);for(L=this.V.length=0;L<A.length;L++){var B=A.item(L);this.V.push(B.identifier)}};
|
|
IW.prototype.onTouchMove=function(A){A=A.changedTouches.item(0);var L;if(L=ay()){L=g.fa();var B="";if(vWS())B=/Windows (?:NT|Phone) ([0-9.]+)/,B=(L=B.exec(L))?L[1]:"0.0";else if(ay())B=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,B=(L=B.exec(L))&&L[1].replace(/_/g,".");else if(A8())B=/Mac OS X ([0-9_.]+)/,B=(L=B.exec(L))?L[1].replace(/_/g,"."):"10";else if(AF(g.fa(),"KaiOS"))B=/(?:KaiOS)\/(\S+)/i,B=(L=B.exec(L))&&L[1];else if(Wty())B=/Android\s+([^\);]+)(\)|;)/,B=(L=B.exec(L))&&L[1];else if(z$()?JF.platform===
|
|
"Chrome OS":Ry("CrOS"))B=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,B=(L=B.exec(L))&&L[1];L=!(g.B5(B||"",8)>=0)}if(L||A&&Math.pow(A.clientX-this.G,2)+Math.pow(A.clientY-this.yj,2)>25)this.U=!0};
|
|
IW.prototype.onTouchEnd=function(A){var L=A.changedTouches;L&&this.X&&this.W==1&&!this.U&&!this.D&&!this.T&&Al6(this,L)&&(this.Wn=A,this.N.start());this.W=A.touches.length;this.W===0&&(this.U=this.X=!1,this.V.length=0);this.D=!1};var wT=Date.now().toString();var Gx={};var t0=Symbol("injectionDeps");sl.prototype.toString=function(){return"InjectionToken("+this.name+")"};
|
|
fle.prototype.resolve=function(A){return A instanceof HQ?k0(this,A.key,[],!0):k0(this,A,[])};var Tx;var me=window;var $0=g.h_("web_enable_lifecycle_monitoring")&&Q0()!==0,Dv1=g.h_("web_enable_lifecycle_monitoring");ZXk.prototype.cancel=function(){for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L=L.value,L.jobId===void 0||L.B5||this.scheduler.WF(L.jobId),L.B5=!0;this.W.resolve()};g.p=Xy.prototype;g.p.install=function(A){this.plugins.push(A);return this};
|
|
g.p.uninstall=function(){var A=this;g.pf.apply(0,arguments).forEach(function(L){L=A.plugins.indexOf(L);L>-1&&A.plugins.splice(L,1)})};
|
|
g.p.transition=function(A,L){var B=this;$0&&S57(this.state);var f=this.transitions.find(function(V){return Array.isArray(V.from)?V.from.find(function(J){return J===B.state&&V.to===A}):V.from===B.state&&V.to===A});
|
|
if(f){this.W&&(Nn1(this.W),this.W=void 0);dvC(this,A,L);this.state=A;$0&&CV(this.state);f=f.action.bind(this);var K=this.plugins.filter(function(V){return V[A]}).map(function(V){return V[A]});
|
|
f(Fc8(this,K),L)}else throw Error("no transition specified from "+this.state+" to "+A);};
|
|
g.p.WDr=function(A){var L=g.pf.apply(1,arguments);g.ol();for(var B=g.m(A),f=B.next(),K={};!f.done;K={Wc:void 0},f=B.next())K.Wc=f.value,$WS(function(V){return function(){El(V.Wc.name);MU(function(){return V.Wc.callback.apply(V.Wc,g.x7(L))});
|
|
cQ(V.Wc.name)}}(K))};
|
|
g.p.y1D=function(A){var L=g.pf.apply(1,arguments),B,f,K,V;return g.c(function(J){J.N==1&&(g.ol(),B=g.m(A),f=B.next(),K={});if(J.N!=3){if(f.done)return J.Ux(0);K.a5=f.value;K.Pf=void 0;V=function(R){return function(){El(R.a5.name);var Z=MU(function(){return R.a5.callback.apply(R.a5,g.x7(L))});
|
|
eM(Z)?R.Pf=g.h_("web_lifecycle_error_handling_killswitch")?Z.then(function(){cQ(R.a5.name)}):Z.then(function(){cQ(R.a5.name)},function(N){R2D(N);
|
|
cQ(R.a5.name)}):cQ(R.a5.name)}}(K);
|
|
$WS(V);return K.Pf?g.X(J,K.Pf,3):J.Ux(3)}K={a5:void 0,Pf:void 0};f=B.next();return J.Ux(2)})};
|
|
g.p.gC=function(A){var L=g.pf.apply(1,arguments),B=this,f=A.map(function(K){return{lX:function(){El(K.name);MU(function(){return K.callback.apply(K,g.x7(L))});
|
|
cQ(K.name)},
|
|
priority:Ol(B,K)}});
|
|
f.length&&(this.W=new ZXk(f))};
|
|
g.v6.Object.defineProperties(Xy.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Ul;g.G(Y0,Xy);Y0.prototype.D=function(A,L){var B=this;this.N=g.AR(0,function(){B.currentState==="application_navigating"&&B.transition("none")},5E3);
|
|
A(L==null?void 0:L.event)};
|
|
Y0.prototype.T=function(A,L){this.N&&(g.qT.WF(this.N),this.N=null);A(L==null?void 0:L.event)};var d8=[];g.hf("yt.logging.transport.getScrapedGelPayloads",function(){return d8});WQ.prototype.storePayload=function(A,L){A=vQ(A);this.store[A]?this.store[A].push(L):(this.W={},this.store[A]=[L]);this.N++;g.h_("more_accurate_gel_parser")&&(L=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(L));return A};
|
|
WQ.prototype.smartExtractMatchingEntries=function(A){if(!A.keys.length)return[];for(var L=PQ(this,A.keys.splice(0,1)[0]),B=[],f=0;f<L.length;f++)this.store[L[f]]&&A.sizeLimit&&(this.store[L[f]].length<=A.sizeLimit?(B.push.apply(B,g.x7(this.store[L[f]])),delete this.store[L[f]]):B.push.apply(B,g.x7(this.store[L[f]].splice(0,A.sizeLimit))));this.N-=B.length;(A==null?0:A.sizeLimit)&&B.length<(A==null?void 0:A.sizeLimit)&&(A.sizeLimit-=B.length,B.push.apply(B,g.x7(this.smartExtractMatchingEntries(A))));
|
|
return B};
|
|
WQ.prototype.extractMatchingEntries=function(A){A=PQ(this,A);for(var L=[],B=0;B<A.length;B++)this.store[A[B]]&&(L.push.apply(L,g.x7(this.store[A[B]])),delete this.store[A[B]]);this.N-=L.length;return L};
|
|
WQ.prototype.getSequenceCount=function(A){A=PQ(this,A);for(var L=0,B=0;B<A.length;B++){var f=void 0;L+=((f=this.store[A[B]])==null?void 0:f.length)||0}return L};
|
|
WQ.prototype.getSequenceCount=WQ.prototype.getSequenceCount;WQ.prototype.extractMatchingEntries=WQ.prototype.extractMatchingEntries;WQ.prototype.smartExtractMatchingEntries=WQ.prototype.smartExtractMatchingEntries;WQ.prototype.storePayload=WQ.prototype.storePayload;var q5S=new sl("FinchConfigManagerService");var iXv=g.bl("initial_gel_batch_timeout",2E3),C88=g.bl("gel_queue_timeout_max_ms",6E4),$vS=g.bl("gel_min_batch_size",5),o9=void 0,xvE=new x0,P8D=new x0,QwC=new x0,mve=new x0,fE,ZO=!0,DO=1,nV=new Map,SB=g.rI.ytLoggingTransportTokensToCttTargetIds_||{};g.hf("ytLoggingTransportTokensToCttTargetIds_",SB);var Jv=g.rI.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.hf("ytLoggingTransportTokensToJspbCttTargetIds_",Jv);var aW={},wt8=!1;var I9=g.rI.ytLoggingGelSequenceIdObj_||{};g.hf("ytLoggingGelSequenceIdObj_",I9);var tkS=[];var VkD,bo=g.rI.ytLoggingDocDocumentNonce_;bo||(bo=g.y0(16),g.hf("ytLoggingDocDocumentNonce_",bo));VkD=bo;var BWe={AN:0,m4n:1,gX4:2,Z4:3,snr:4,ups:5,IZL:6,SHARE:7,G14:8,XL4:9,zQ4:10,r8r:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var z2Q=1;g.p=yH.prototype;g.p.getAsJson=function(){var A={};this.N.trackingParams!==void 0?A.trackingParams=this.N.trackingParams:(A.veType=this.N.veType,this.N.veCounter!==void 0&&(A.veCounter=this.N.veCounter),this.N.elementIndex!==void 0&&(A.elementIndex=this.N.elementIndex));this.N.dataElement!==void 0&&(A.dataElement=this.N.dataElement.getAsJson());this.N.youtubeData!==void 0&&(A.youtubeData=this.N.youtubeData);this.N.isCounterfactual&&(A.isCounterfactual=!0);return A};
|
|
g.p.getAsJspb=function(){var A=new E5;this.N.trackingParams!==void 0?A.setTrackingParams(this.N.trackingParams):(this.N.veType!==void 0&&ra(A,2,Cd(this.N.veType)),this.N.veCounter!==void 0&&ra(A,6,Cd(this.N.veCounter)),this.N.elementIndex!==void 0&&ra(A,3,Cd(this.N.elementIndex)),this.N.isCounterfactual&&ra(A,5,li(!0)));if(this.N.dataElement!==void 0){var L=this.N.dataElement.getAsJspb();PG(A,E5,7,L)}this.N.youtubeData!==void 0&&PG(A,pDe,8,this.N.jspbYoutubeData);return A};
|
|
g.p.toString=function(){return JSON.stringify(this.getAsJson())};
|
|
g.p.isClientVe=function(){return!this.N.trackingParams&&!!this.N.veType};
|
|
g.p.getLoggingDirectives=function(){return this.N.loggingDirectives};g.hf("yt_logging_screen.getRootVeType",A_y);g.hf("yt_logging_screen.getCurrentCsn",g.sF);g.hf("yt_logging_screen.getCttAuthInfo",Hb);g.hf("yt_logging_screen.setCurrentScreen",J_7);var ZgQ="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Gc0=[{Ac:function(A){return"Cannot read property '"+A.key+"'"},
|
|
C7:{Error:[{v9:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{v9:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{v9:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{v9:/\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"]},{v9:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{v9:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{v9:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Ac:function(A){return"Cannot call '"+A.key+"'"},
|
|
C7:{TypeError:[{v9:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{v9:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{v9:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{v9:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{v9:/\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"]},
|
|
{v9:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Ac:function(A){return A.key+" is not defined"},
|
|
C7:{ReferenceError:[{v9:/(.*) is not defined/,groups:["key"]},{v9:/Can't find variable: (.*)/,groups:["key"]}]}}];var Ip0={Df:[],C5:[{callback:NWk,weight:500},{callback:FMD,weight:500}]};var bf;var $f=new g.TF;var r_e=new Set,y_y=0,hze=0,Hg6=0,gzQ=[],jMk=[],bgC=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var TW7=new g.CX("parallelCommand");var QME=new g.CX("performOnceCommand");var ms6=new g.CX("serialCommand");var OF=void 0;UB({},"sgPmTd");UB(null,"jypsq");UB(null,"mWiOof");g.G(M2,II);var atw=new wE("screen-created",M2),a9=[],igw=c_6,Ar=0,UF=new Map,Wb=new Map,vb=new Map;g.Ud(g.SN,g.Y);g.p=g.SN.prototype;g.p.subscribe=function(A,L,B){return this.TL()?0:this.m1.subscribe(A,L,B)};
|
|
g.p.unsubscribe=function(A,L,B){return this.TL()?!1:this.m1.unsubscribe(A,L,B)};
|
|
g.p.vR=function(A){return this.TL()?!1:this.m1.vR(A)};
|
|
g.p.publish=function(A,L){return this.TL()?!1:this.m1.publish.apply(this.m1,arguments)};
|
|
g.p.tA=function(A,L){for(var B in A)this.subscribe(B,A[B],L)};
|
|
g.p.P4=function(A,L){for(var B in A)this.unsubscribe(B,A[B],L)};var EV8=16/9,xXO=[.25,.5,.75,1,1.25,1.5,1.75,2],ewf=xXO.concat([3,4,5,6,7,8,9,10,15]),nWW=xXO.concat([2.5,3,3.5,4]);var MkQ=1;g.G(g.ZE,g.Y);g.p=g.ZE.prototype;
|
|
g.p.createElement=function(A,L){L=L||A.Z==="svg";var B=A.j,f=A.Rr;if(L){var K=document.createElementNS("http://www.w3.org/2000/svg",A.Z);g.F1&&(A.C||(A.C={}),A.C.focusable="false")}else K=g.TO(A.Z);if(B){if(B=Nt(this,K,"class",B))Fb(this,K,"class",B),this.KY[B]=K}else if(f){B=g.m(f);for(var V=B.next();!V.done;V=B.next())this.KY[V.value]=K;Fb(this,K,"class",f.join(" "))}f=A.Ir;B=A.B;if(f)L=Nt(this,K,"child",f),L!==void 0&&K.appendChild(g.lA(L));else if(B)for(f=0,B=g.m(B),V=B.next();!V.done;V=B.next())if(V=
|
|
V.value)if(typeof V==="string")V=Nt(this,K,"child",V),V!=null&&K.appendChild(g.lA(V));else if(V.element)K.appendChild(V.element);else{var J=V;V=this.createElement(J,L);K.appendChild(V);J.bq&&(J=Ru(),V.id=J,V=document.createElementNS("http://www.w3.org/2000/svg","use"),V.setAttribute("class","ytp-svg-shadow"),V.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+J),iA(K,V,f++))}if(A=A.C)for(L=K,f=g.m(Object.keys(A)),B=f.next();!B.done;B=f.next())B=B.value,V=A[B],Fb(this,L,B,typeof V==="string"?
|
|
Nt(this,L,B,V):V);return K};
|
|
g.p.m4=function(A){return this.KY[A]};
|
|
g.p.DM=function(A,L){typeof L==="number"?iA(A,this.element,L):A.appendChild(this.element)};
|
|
g.p.detach=function(){g.$9(this.element)};
|
|
g.p.update=function(A){for(var L=g.m(Object.keys(A)),B=L.next();!B.done;B=L.next())B=B.value,this.updateValue(B,A[B])};
|
|
g.p.updateValue=function(A,L){(A=this.Of["{{"+A+"}}"])&&Fb(this,A[0],A[1],L)};
|
|
g.p.l1=function(){this.KY={};this.Of={};this.detach();g.Y.prototype.l1.call(this)};g.G(g.q,g.ZE);g.p=g.q.prototype;g.p.setContent=function(A,L){this.updateValue(L||"content",A)};
|
|
g.p.show=function(){this.bC||(g.Kv(this.element,"display",""),this.bC=!0)};
|
|
g.p.hide=function(){this.bC&&(g.Kv(this.element,"display","none"),this.bC=!1)};
|
|
g.p.xP=function(A){A?this.show():this.hide()};
|
|
g.p.Hy=function(A){this.yj=A};
|
|
g.p.listen=function(A,L,B){return this.Y(this.element,A,L,B)};
|
|
g.p.Y=function(A,L,B,f){B=(0,g.X9)(B,f||this);f={target:A,type:L,listener:B};this.listeners.push(f);A.addEventListener(L,B);return f};
|
|
g.p.J$=function(A){var L=this;this.listeners.forEach(function(B,f){B===A&&(B=L.listeners.splice(f,1)[0],B.target.removeEventListener(B.type,B.listener))})};
|
|
g.p.focus=function(){this.element.focus()};
|
|
g.p.l1=function(){for(;this.listeners.length;){var A=this.listeners.pop();A&&A.target.removeEventListener(A.type,A.listener)}g.ZE.prototype.l1.call(this)};g.G(g.DE,g.q);g.DE.prototype.subscribe=function(A,L,B){return this.cn.subscribe(A,L,B)};
|
|
g.DE.prototype.unsubscribe=function(A,L,B){return this.cn.unsubscribe(A,L,B)};
|
|
g.DE.prototype.vR=function(A){return this.cn.vR(A)};
|
|
g.DE.prototype.publish=function(A){return this.cn.publish.apply(this.cn,[A].concat(g.x7(g.pf.apply(1,arguments))))};var zww=new WeakSet;g.G(dq,g.DE);g.p=dq.prototype;g.p.bind=function(A){this.Cr||A.renderer&&this.init(A.id,A.renderer,{},A);return Promise.resolve()};
|
|
g.p.init=function(A,L,B){this.Cr=A;this.element.setAttribute("id",this.Cr);this.ql&&g.R1(this.element,this.ql);this.Wn=L&&L.adRendererCommands;this.JF=L.interaction;var f;((f=this.JF)==null?0:f.onTap)&&g.R1(this.element,"ytp-ad-component--clickable");this.macros=B;this.X=L.trackingParams||null;var K,V;this.T=(V=(K=g.y(L.rendererContext,V59))==null?void 0:K.loggingDirectives)!=null?V:L.loggingDirectives;this.X!=null?this.createServerVe(this.element,this.X):this.T&&(A=this.element,L=this.T,this.api.createServerVe(A,
|
|
this,!0),this.api.setTrackingParams(A,L.trackingParams||null))};
|
|
g.p.clear=function(){};
|
|
g.p.hide=function(){g.DE.prototype.hide.call(this);(this.X!=null||this.T)&&this.logVisibility(this.element,!1)};
|
|
g.p.show=function(){g.DE.prototype.show.call(this);if(!this.mH){this.mH=!0;var A=this.Wn&&this.Wn.impressionCommand,L,B=(L=this.JF)==null?void 0:L.onFirstVisible;A?this.fK(A):B&&(A=EF(B))&&this.fK(A)}(this.X!=null||this.T)&&this.logVisibility(this.element,!0)};
|
|
g.p.onClick=function(A){if((this.X||this.T)&&!zww.has(A)){var L=this.element;this.api.hasVe(L)&&this.bC&&this.api.logClick(L,this.interactionLoggingClientData);zww.add(A)}var B=this.Wn&&this.Wn.clickCommand,f;L=(f=this.JF)==null?void 0:f.onTap;if(B)L=this.oe(B),this.fK(L);else{if(f=L)a:{f=this.element;A=A.composedPath();A=g.m(A);for(B=A.next();!B.done;B=A.next()){B=B.value;if(B===f)break;if(B.className.indexOf("ytp-ad-component--clickable")>=0){f=!1;break a}}f=!0}f&&(L=EF(L))&&this.fK(L)}};
|
|
g.p.oe=function(A){return A};
|
|
g.p.onTouchStart=function(A){this.Vj.onTouchStart(A)};
|
|
g.p.onTouchMove=function(A){this.Vj.onTouchMove(A)};
|
|
g.p.onTouchEnd=function(A){if(this.Vj)this.Vj.onTouchEnd(A)};
|
|
g.p.fK=function(A){this.layoutId?this.Qj.executeCommand(A,this.layoutId):(A=new g.iL("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.mL(A))};
|
|
g.p.createServerVe=function(A,L){this.api.createServerVe(A,this);this.api.setTrackingParams(A,L)};
|
|
g.p.logVisibility=function(A,L){this.api.hasVe(A)&&this.api.logVisibility(A,L,this.interactionLoggingClientData)};
|
|
g.p.l1=function(){this.clear(null);this.J$(this.Nl);for(var A=g.m(this.ZM),L=A.next();!L.done;L=A.next())this.J$(L.value);g.DE.prototype.l1.call(this)};g.G(Xb,dq);
|
|
Xb.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.N=L;if(L.text==null&&L.icon==null)g.CE(Error("ButtonRenderer did not have text or an icon set."));else{switch(L.style||null){case "STYLE_UNKNOWN":A="ytp-ad-button-link";break;default:A=null}A!=null&&g.R1(this.element,A);L.text!=null&&(A=g.wq(L.text),g.us(A)||(this.element.setAttribute("aria-label",A),this.V=new g.DE({Z:"span",j:"ytp-ad-button-text",Ir:A}),g.W(this,this.V),this.V.DM(this.element)));L.accessibilityData&&L.accessibilityData.accessibilityData&&
|
|
L.accessibilityData.accessibilityData.label&&!g.us(L.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",L.accessibilityData.accessibilityData.label);L.icon!=null&&(L=$r(L.icon,this.U),L!=null&&(this.W=new g.DE({Z:"span",j:"ytp-ad-button-icon",B:[L]}),g.W(this,this.W)),this.D?iA(this.element,this.W.element,0):this.W.DM(this.element))}};
|
|
Xb.prototype.clear=function(){this.hide()};
|
|
Xb.prototype.onClick=function(A){dq.prototype.onClick.call(this,A);A=g.m(w9e(this));for(var L=A.next();!L.done;L=A.next())L=L.value,this.layoutId?this.Qj.executeCommand(L,this.layoutId):g.mL(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.G(OW,g.Y);OW.prototype.l1=function(){this.W&&g.k_(this.W);this.N.clear();EW=null;g.Y.prototype.l1.call(this)};
|
|
OW.prototype.register=function(A,L){L&&this.N.set(A,L)};
|
|
var EW=null;g.G(Yr,dq);
|
|
Yr.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);A=L.hoverText||null;L=L.button&&g.y(L.button,g.te)||null;L==null?g.mL(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,void 0,void 0,void 0,void 0,this.V),g.W(this,this.button),this.button.init(Vo("button"),L,this.macros),A&&this.button.element.setAttribute("aria-label",g.wq(A)),this.button.DM(this.element),this.G&&!g.SR(this.button.element,
|
|
"ytp-ad-clickable")&&g.R1(this.button.element,"ytp-ad-clickable"),this.V&&g.R1(this.button.element,"ytp-ad-hover-text-button--clean-player"),A&&(this.W=new g.DE({Z:"div",j:"ytp-ad-hover-text-container"}),this.D&&(L=new g.DE({Z:"div",j:"ytp-ad-hover-text-callout"}),L.DM(this.W.element),g.W(this,L)),g.W(this,this.W),this.W.DM(this.element),L=cP(A),iA(this.W.element,L,0)),this.show())};
|
|
Yr.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();dq.prototype.hide.call(this)};
|
|
Yr.prototype.show=function(){this.button&&this.button.show();dq.prototype.show.call(this)};g.G(WP,dq);
|
|
WP.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);B=(A=L.thumbnail)&&UW(A)||"";g.us(B)?Math.random()<.01&&g.CE(Error("Found AdImage without valid image URL")):(this.N?g.Kv(this.element,"backgroundImage","url("+B+")"):H4(this.element,{src:B}),H4(this.element,{alt:A&&A.accessibility&&A.accessibility.label||""}),L&&L.adRendererCommands&&L.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
|
|
WP.prototype.clear=function(){this.hide()};g.G(vP,dq);g.p=vP.prototype;g.p.hide=function(){dq.prototype.hide.call(this);this.V&&this.V.focus()};
|
|
g.p.show=function(){this.V=document.activeElement;dq.prototype.show.call(this);this.U.focus()};
|
|
g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.W=L;L.dialogMessages||L.title!=null?L.confirmLabel==null?g.mL(Error("ConfirmDialogRenderer.confirmLabel was not set.")):L.cancelLabel==null?g.mL(Error("ConfirmDialogRenderer.cancelLabel was not set.")):g_k(this,L):g.mL(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
|
|
g.p.clear=function(){g.$_(this.N);this.hide()};
|
|
g.p.LR=function(){this.hide()};
|
|
g.p.FN=function(){var A=this.W.cancelEndpoint;A&&(this.layoutId?this.Qj.executeCommand(A,this.layoutId):g.mL(Error("Missing layoutId for confirm dialog.")));this.hide()};
|
|
g.p.dP=function(){var A=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;A&&(this.layoutId?this.Qj.executeCommand(A,this.layoutId):g.mL(Error("Missing layoutId for confirm dialog.")));this.hide()};g.G(qt,dq);g.p=qt.prototype;
|
|
g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.V=L;if(L.defaultText==null&&L.defaultIcon==null)g.mL(Error("ToggleButtonRenderer must have either text or icon set."));else if(L.defaultIcon==null&&L.toggledIcon!=null)g.mL(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(L.style){switch(L.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":A="ytp-ad-toggle-button-default-style";break;default:A=null}A!=null&&g.R1(this.U,A)}A={};L.defaultText?
|
|
(B=g.wq(L.defaultText),g.us(B)||(A.buttonText=B,this.api.K().experiments.GL("a11y_h5_associate_survey_question")||this.N.setAttribute("aria-label",B),this.api.K().experiments.GL("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",B))):g.y9(this.wT,!1);L.defaultTooltip&&(A.tooltipText=L.defaultTooltip,this.N.hasAttribute("aria-label")||this.W.setAttribute("aria-label",L.defaultTooltip));L.defaultIcon?(B=$r(L.defaultIcon),this.updateValue("untoggledIconTemplateSpec",B),L.toggledIcon?(this.qp=
|
|
!0,B=$r(L.toggledIcon),this.updateValue("toggledIconTemplateSpec",B)):(g.y9(this.G,!0),g.y9(this.D,!1)),g.y9(this.N,!1)):g.y9(this.W,!1);g.mi(A)||this.update(A);L.isToggled&&(g.R1(this.U,"ytp-ad-toggle-button-toggled"),this.toggleButton(L.isToggled));PP(this);this.Y(this.element,"change",this.XP);this.show()}};
|
|
g.p.onClick=function(A){this.ZM.length>0&&(this.toggleButton(!this.isToggled()),this.XP());dq.prototype.onClick.call(this,A)};
|
|
g.p.XP=function(){g.D1(this.U,"ytp-ad-toggle-button-toggled",this.isToggled());for(var A=g.m(GTv(this,this.isToggled())),L=A.next();!L.done;L=A.next())L=L.value,this.layoutId?this.Qj.executeCommand(L,this.layoutId):g.mL(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);PP(this)};
|
|
g.p.clear=function(){this.hide()};
|
|
g.p.toggleButton=function(A){g.D1(this.U,"ytp-ad-toggle-button-toggled",A);this.N.checked=A;PP(this)};
|
|
g.p.isToggled=function(){return this.N.checked};g.G(xr,Qz);xr.prototype.D=function(A){if(Array.isArray(A)){A=g.m(A);for(var L=A.next();!L.done;L=A.next())L=L.value,L instanceof rKy&&this.V(L)}};g.G(eN,dq);g.p=eN.prototype;g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);L.reasons?L.confirmLabel==null?g.mL(Error("AdFeedbackRenderer.confirmLabel was not set.")):(L.cancelLabel==null&&g.CE(Error("AdFeedbackRenderer.cancelLabel was not set.")),L.title==null&&g.CE(Error("AdFeedbackRenderer.title was not set.")),bn7(this,L)):g.mL(Error("AdFeedbackRenderer.reasons were not set."))};
|
|
g.p.clear=function(){TT(this.D);TT(this.G);this.U.length=0;this.hide()};
|
|
g.p.hide=function(){this.N&&this.N.hide();this.W&&this.W.hide();dq.prototype.hide.call(this);this.V&&this.V.focus()};
|
|
g.p.show=function(){this.N&&this.N.show();this.W&&this.W.show();this.V=document.activeElement;dq.prototype.show.call(this);this.D.focus()};
|
|
g.p.pT=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
|
|
g.p.oJ4=function(){this.hide()};
|
|
n1.prototype.Zg=function(){return this.N.element};
|
|
n1.prototype.getCommand=function(){return this.W};
|
|
n1.prototype.isChecked=function(){return this.V.checked};g.G(zZ,vP);zZ.prototype.LR=function(A){vP.prototype.LR.call(this,A);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
|
|
zZ.prototype.FN=function(A){vP.prototype.FN.call(this,A);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
|
|
zZ.prototype.dP=function(A){vP.prototype.dP.call(this,A);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.G(ua,dq);g.p=ua.prototype;
|
|
g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.D=L;if(L.dialogMessage==null&&L.title==null)g.mL(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{L.confirmLabel==null&&g.CE(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(A=L.closeOverlayRenderer&&g.y(L.closeOverlayRenderer,g.te)||null)this.N=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
|
|
g.W(this,this.N),this.N.init(Vo("button"),A,this.macros),this.N.DM(this.element);L.title&&(A=g.wq(L.title),this.updateValue("title",A));if(L.adReasons)for(A=L.adReasons,B=0;B<A.length;B++){var f=cP(A[B]);if(!g.us(f.textContent)){var K=k9("LI");K.appendChild(f);this.S4.appendChild(K)}}else g.y9(this.S4,!1);L.dialogMessage&&(A=cP(L.dialogMessage,!0),this.Ex.appendChild(A));L.confirmLabel&&(A=g.wq(L.confirmLabel),this.updateValue("confirmLabel",A));L.muteAdRenderer&&(L=g.y(L.muteAdRenderer,g.te)||null)&&
|
|
(A=L.navigationEndpoint&&g.y(L.navigationEndpoint,NIK)||null,B=L.navigationEndpoint&&g.y(L.navigationEndpoint,Aft)||null,A==null&&B==null?g.CE(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(A?twQ(this,A):B&&kT8(this,B),this.V=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-info-dialog-mute-button"],"button",!0),g.W(this,this.V),this.V.init(Vo("button"),L,this.macros),this.V.listen("click",
|
|
this.LsD,this),this.V.DM(this.sx)));TLD(this)}};
|
|
g.p.clear=function(){TT(this.G);this.hide()};
|
|
g.p.hide=function(){this.W?this.W.hide():this.U&&this.U.hide();this.N&&this.N.hide();this.V&&this.V.hide();dq.prototype.hide.call(this);this.qp&&this.qp.focus()};
|
|
g.p.show=function(){this.N&&this.N.show();this.V&&this.V.show();if(!this.Ys){for(var A=g.m(this.D&&this.D.impressionEndpoints||[]),L=A.next();!L.done;L=A.next())L=L.value,this.layoutId?this.Qj.executeCommand(L,this.layoutId):g.mL(Error("Missing layoutId for ad info dialog."));this.Ys=!0}this.qp=document.activeElement;dq.prototype.show.call(this);this.G.focus()};
|
|
g.p.Yl=function(){if(this.D&&this.D.confirmServiceEndpoint){var A=this.D.confirmServiceEndpoint;this.layoutId?this.Qj.executeCommand(A,this.layoutId):g.mL(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
|
|
g.p.LsD=function(){var A=this.W?this.W:this.U;A&&!A.bC&&(this.hide(),A.show())};g.G(au,Yr);au.prototype.init=function(A,L,B){Yr.prototype.init.call(this,A,L,B);A=L.button&&g.y(L.button,g.te)||null;A!=null&&(inD(this,A,B),this.show())};
|
|
au.prototype.hide=function(){this.button&&this.button.hide();this.N&&this.N.hide();Yr.prototype.hide.call(this)};
|
|
au.prototype.show=function(){this.button&&this.button.show();Yr.prototype.show.call(this)};
|
|
au.prototype.clear=function(){this.hide()};g.G(AG,dq);
|
|
AG.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.N=L;this.isTemplated()||g.OA(this.element,Iu(this.N));if(L.backgroundImage&&(A=(A=L.backgroundImage.thumbnail)?UW(A):"",B=(B=this.api.getVideoData(1))&&B.nL,A&&B&&(this.element.style.backgroundImage="url("+A+")",this.element.style.backgroundSize="100%"),L.style&&L.style.adTextStyle))switch(L.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(A=g.xj(L.targetId))&&this.element.setAttribute("data-tooltip-target-id",A);
|
|
L&&L.adRendererCommands&&L.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
|
|
AG.prototype.isTemplated=function(){return this.N.isTemplated||!1};
|
|
AG.prototype.clear=function(){this.hide()};var UED={seekableStart:0,seekableEnd:1,current:0};g.G(oA,dq);oA.prototype.clear=function(){this.dispose()};g.G(g.KL,g.Y);g.p=g.KL.prototype;g.p.show=function(A){this.state!==1&&this.state!==2&&(this.state===4&&this.Da(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.N&&this.N()):this.element.bC||(Vr(this,!0),this.state=1,A?this.delay.start(A):this.Da()))};
|
|
g.p.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.bC&&(Vr(this,!0),this.state=4,this.delay.start(this.V)))};
|
|
g.p.Da=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:Vr(this,!1);this.state=3;this.delay.start(this.W);break;case 3:this.state=null;this.N&&this.N();break;case 4:this.element.hide();Vr(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
|
|
g.p.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.Da()};
|
|
g.p.l1=function(){this.element.TL()||this.element.element.removeAttribute("aria-hidden");g.Y.prototype.l1.call(this)};g.G(JG,oA);g.p=JG.prototype;
|
|
g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);A=L.durationMilliseconds;typeof A==="number"&&A<0&&g.mL(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+A));this.Ox&&(this.U?g.R1(this.W.element,"modern-countdown-next-to-thumbnail"):g.R1(this.W.element,"countdown-next-to-thumbnail"));A=L.durationMilliseconds;this.S4=A==null||A===0?this.N.XZ():A;if(L.templatedCountdown)var f=L.templatedCountdown.templatedAdText;else L.staticPreview&&(f=L.staticPreview);
|
|
this.V.init(Vo("ad-text"),f,B);(f=this.api.getVideoData(1))&&f.nL&&L.thumbnail?this.D.init(Vo("ad-image"),L.thumbnail,B):(this.wT.hide(),this.U&&this.Ox&&g.R1(this.V.element,"ytp-ad-preview-text-modern-postroll"))};
|
|
g.p.clear=function(){this.hide()};
|
|
g.p.hide=function(){this.W.hide();this.V.hide();this.D.hide();fL(this);oA.prototype.hide.call(this)};
|
|
g.p.show=function(){BH(this);this.W.show();this.V.show();this.D.show();oA.prototype.show.call(this)};
|
|
g.p.q7=function(){this.hide()};
|
|
g.p.m3=function(){if(this.N!=null){var A=this.N.getProgressState();A!=null&&A.current!=null&&(A=1E3*A.current,!this.Ex&&A>=this.S4?(this.qp.hide(),this.Ex=!0,this.publish("i")):this.V&&this.V.isTemplated()&&(A=Math.max(0,Math.ceil((this.S4-A)/1E3)),A!=this.sx&&(LL(this.V,{TIME_REMAINING:String(A)}),this.sx=A)))}};g.G(Sm,oA);g.p=Sm.prototype;
|
|
g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);if(L.image&&L.image.thumbnail)if(L.headline)if(L.description)if((A=L.actionButton&&g.y(L.actionButton,g.te))&&A.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null)if(L.image&&L.image.thumbnail){var K=L.image.thumbnail.thumbnails;K!=null&&K.length>0&&g.us(g.xj(K[0].url))&&(K[0].url=f.profilePicture)}else g.CE(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.V.init(Vo("ad-image"),L.image,B);this.D.init(Vo("ad-text"),
|
|
L.headline,B);this.U.init(Vo("ad-text"),L.description,B);this.W.init(Vo("button"),A,B);B=z7(this.W.element);ne(this.W.element,B+" This link opens in new tab");this.qp=A.navigationEndpoint;this.api.kQ()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.gm.bind(this));this.wT=L.startMs||0;BH(this)}else g.mL(Error("FlyoutCtaRenderer has no valid action button."));else g.mL(Error("FlyoutCtaRenderer has no description AdText."));else g.mL(Error("FlyoutCtaRenderer has no headline AdText."));
|
|
else g.CE(Error("FlyoutCtaRenderer has no image."))};
|
|
g.p.onClick=function(A){oA.prototype.onClick.call(this,A);this.api.pauseVideo();!g.XF(this.W.element,A.target)&&this.qp&&(this.layoutId?this.Qj.executeCommand(this.qp,this.layoutId):g.mL(Error("Missing layoutId for flyout cta.")))};
|
|
g.p.m3=function(){if(this.N){var A=this.N.getProgressState();(A&&A.current||this.S4)&&1E3*A.current>=this.wT&&(fL(this),g.NH(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}};
|
|
g.p.q7=function(){this.clear()};
|
|
g.p.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.gm.bind(this))};
|
|
g.p.show=function(){this.W&&this.W.show();oA.prototype.show.call(this)};
|
|
g.p.hide=function(){this.W&&this.W.hide();oA.prototype.hide.call(this)};
|
|
g.p.gm=function(A){A=="hidden"?this.show():this.hide()};g.G(RA,dq);g.p=RA.prototype;
|
|
g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.N=L;if(this.N.rectangle)for(A=this.N.likeButton&&g.y(this.N.likeButton,gQ),L=this.N.dislikeButton&&g.y(this.N.dislikeButton,gQ),this.V.init(Vo("toggle-button"),A,B),this.W.init(Vo("toggle-button"),L,B),this.Y(this.element,"change",this.nB),this.U.show(100),this.show(),B=g.m(this.N&&this.N.impressionCommands||[]),A=B.next();!A.done;A=B.next())A=A.value,this.layoutId?this.Qj.executeCommand(A,this.layoutId):g.mL(Error("Missing layoutId for instream user sentiment."))};
|
|
g.p.clear=function(){this.hide()};
|
|
g.p.hide=function(){this.V.hide();this.W.hide();dq.prototype.hide.call(this)};
|
|
g.p.show=function(){this.V.show();this.W.show();dq.prototype.show.call(this)};
|
|
g.p.nB=function(){SaQ(this.element,"ytp-ad-instream-user-sentiment-selected");this.N.postMessageAction&&this.api.Kr("onYtShowToast",this.N.postMessageAction);this.U.hide()};
|
|
g.p.onClick=function(A){this.ZM.length>0&&this.nB();dq.prototype.onClick.call(this,A)};g.G(Zh,g.Y);g.p=Zh.prototype;g.p.l1=function(){this.reset();g.Y.prototype.l1.call(this)};
|
|
g.p.reset=function(){g.$_(this.U);this.T=!1;this.N&&this.N.stop();this.D.stop();this.V&&(this.V=!1,this.X.play())};
|
|
g.p.start=function(){this.reset();this.U.Y(this.W,"mouseover",this.EH,this);this.U.Y(this.W,"mouseout",this.zQ,this);this.Wn&&(this.U.Y(this.W,"focusin",this.EH,this),this.U.Y(this.W,"focusout",this.zQ,this));this.N?this.N.start():(this.T=this.V=!0,g.Kv(this.W,{opacity:this.yj}))};
|
|
g.p.EH=function(){this.V&&(this.V=!1,this.X.play());this.D.stop();this.N&&this.N.stop()};
|
|
g.p.zQ=function(){this.T?this.D.start():this.N&&this.N.start()};
|
|
g.p.Zv=function(){this.V||(this.V=!0,this.G.play(),this.T=!0)};var E_E=[new Nf("b.f_",0),new Nf("j.s_",2),new Nf("r.s_",4),new Nf("e.h_",6),new Nf("i.s_",8),new Nf("s.t_",10),new Nf("p.h_",12),new Nf("s.i_",14),new Nf("f.i_",16),new Nf("a.b_",18),new Nf("a.o_"),new Nf("g.o_",22),new Nf("p.i_",24),new Nf("p.m_"),new Nf("n.k_",20),new Nf("i.f_"),new Nf("a.s_"),new Nf("m.c_"),new Nf("n.h_",26),new Nf("o.p_"),new Nf("m.p_",28),new Nf("o.a_"),new Nf("d.p_"),new Nf("e.i_")].reduce(function(A,L){A[L.W]=L;return A},{});g.G(pL,oA);g.p=pL.prototype;
|
|
g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);this.qp=L;(this.wT=Mwk(this))&&g.CE(Error("hasAdControlInClickCommands_ is true."));if(!L||g.mi(L))g.mL(Error("SkipButtonRenderer was not specified or empty."));else if(!L.message||g.mi(L.message))g.mL(Error("SkipButtonRenderer.message was not specified or empty."));else if(A=this.D?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},L=this.api.K().J("delhi_modern_web_player_icons"),L=$r(A,!1,!1,L),L==null?g.mL(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+A.iconType+
|
|
".")):(this.api.K().J("disable_touch_events_on_skip_button")&&(L.C=Object.assign({},L.C,{"aria-hidden":"true",focusable:"false"})),this.V=new g.DE({Z:"button",Rr:[this.D?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],B:[{Z:"span",j:this.D?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",B:[L]}]}),g.W(this,this.V),this.V.DM(this.U.element),this.W=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-skip-button-text"),this.D&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"),
|
|
this.W.init(Vo("ad-text"),this.qp.message,B),g.W(this,this.W),iA(this.V.element,this.W.element,0)),!this.api.K().J("disable_touch_events_on_skip_button")){var f=f===void 0?null:f;B=this.api.K();!(this.ZM.length>0)&&B.W&&(OR?0:"ontouchstart"in document.documentElement&&(Hxy()||HX()))&&(this.J$(this.Nl),f&&this.J$(f),this.ZM=[this.Y(this.element,"touchstart",this.onTouchStart,this),this.Y(this.element,"touchmove",this.onTouchMove,this),this.Y(this.element,"touchend",this.onTouchEnd,this)])}};
|
|
g.p.clear=function(){this.S4.reset();this.hide()};
|
|
g.p.hide=function(){this.U.hide();this.W&&this.W.hide();fL(this);oA.prototype.hide.call(this)};
|
|
g.p.onClick=function(A){if(this.V!=null){if(A){var L=A||window.event;L.returnValue=!1;L.preventDefault&&L.preventDefault()}var B;if(X9E(A,{contentCpn:((B=this.api.getVideoData(1))==null?void 0:B.clientPlaybackNonce)||""})===0)this.api.Kr("onAbnormalityDetected");else if(oA.prototype.onClick.call(this,A),this.publish("j"),this.api.Kr("onAdSkip"),this.Ex||!this.wT)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
|
|
g.p.oe=function(A){if(!this.Ex)return this.wT&&Dh("SkipButton click commands not pruned while ALC exist"),A;var L,B=(L=g.y(A,g.yr))==null?void 0:L.commands;if(!B)return A;A=[];for(L=0;L<B.length;L++){var f=B[L];f.adLifecycleCommand&&cKQ(f.adLifecycleCommand)||f.pingingEndpoint||f.adPingingEndpoint||A.push(f)}return{commandExecutorCommand:{commands:A}}};
|
|
g.p.show=function(){this.S4.start();this.U.show();this.W&&this.W.show();BH(this);oA.prototype.show.call(this);this.sx&&this.api.K().J("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
|
|
g.p.q7=function(){this.publish("k")};
|
|
g.p.m3=function(){};g.G(jm,oA);g.p=jm.prototype;
|
|
g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);A=L&&L.preskipRenderer&&g.y(L.preskipRenderer,bM)||{};if(A=g.mi(A)?null:A){this.D=A.durationMilliseconds!=null&&A.durationMilliseconds!==void 0?A.durationMilliseconds:5E3;var f=sR(this.api.K().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&I6(this.api.K());this.W=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N,f);this.W.init(Vo("preskip-component"),A,B);A=this.W;A.qp.show(100);
|
|
A.show();g.W(this,this.W);this.W.DM(this.element)}else L.skipOffsetMilliseconds&&(this.D=L.skipOffsetMilliseconds);A=L&&L.skippableRenderer&&g.y(L.skippableRenderer,c1O)||{};A=g.mi(A)?null:A;A==null?g.mL(Error("SkipButtonRenderer was not set in player response.")):(this.V=new pL(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N,this.qp),this.V.init(Vo("skip-button"),A,B),g.W(this,this.V),this.V.DM(this.element),this.api.K().experiments.GL("enable_skip_to_next_messaging")&&(L=
|
|
g.xj(L.targetId))&&(B=this.V,B.V!=null&&(B.sx=!0,B.V.element.setAttribute("data-tooltip-target-id",L),B.V.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
|
|
g.p.show=function(){this.U&&this.V?this.V.show():this.W&&this.W.show();BH(this);oA.prototype.show.call(this)};
|
|
g.p.q7=function(){};
|
|
g.p.clear=function(){this.W&&this.W.clear();this.V&&this.V.clear();fL(this);oA.prototype.hide.call(this)};
|
|
g.p.hide=function(){this.W&&this.W.hide();this.V&&this.V.hide();fL(this);oA.prototype.hide.call(this)};
|
|
g.p.m3=function(){1E3*this.N.getProgressState().current>=this.D&&YS8(this,!0)};g.G(gk,Xb);gk.prototype.init=function(A,L,B){Xb.prototype.init.call(this,A,L,B);A=!1;L.text!=null&&(A=g.wq(L.text),A=!g.us(A));A?L.navigationEndpoint==null?g.CE(Error("No visit advertiser clickthrough provided in renderer,")):L.style!=="STYLE_UNKNOWN"?g.CE(Error("Button style was not a link-style type in renderer,")):this.show():g.CE(Error("No visit advertiser text was present in the renderer."))};g.G(Gh,dq);
|
|
Gh.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);A=L.text;g.us(Iu(A))?g.CE(Error("SimpleAdBadgeRenderer has invalid or empty text")):(A&&A.text&&(L=A.text,this.V&&!this.W&&(L=this.api.K(),L=A.text+" "+(L&&L.W?"\u2022":"\u00b7")),L={text:L,isTemplated:A.isTemplated},A.style&&(L.style=A.style),A.targetId&&(L.targetId=A.targetId),A=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),A.init(Vo("simple-ad-badge"),L,B),A.DM(this.element),g.W(this,A)),this.show())};
|
|
Gh.prototype.clear=function(){this.hide()};g.G(rk,Jr);g.G(sN,g.SN);g.p=sN.prototype;g.p.XZ=function(){return this.durationMs};
|
|
g.p.stop=function(){this.N&&this.handler.J$(this.N)};
|
|
g.p.iq=function(A){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:A.current};this.publish("h")};
|
|
g.p.getProgressState=function(){return this.W};
|
|
g.p.n0=function(A){g.wk(A,2)&&this.publish("g")};g.G(HH,g.SN);g.p=HH.prototype;g.p.XZ=function(){return this.durationMs};
|
|
g.p.start=function(){this.N||(this.N=!0,this.timer.start())};
|
|
g.p.stop=function(){this.N&&(this.N=!1,this.timer.stop())};
|
|
g.p.iq=function(){this.wQ+=100;var A=!1;this.wQ>this.durationMs&&(this.wQ=this.durationMs,this.timer.stop(),A=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.wQ/1E3};this.publish("h");A&&this.publish("g")};
|
|
g.p.getProgressState=function(){return this.W};g.G(kI,oA);g.p=kI.prototype;g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);var f;if(L==null?0:(f=L.templatedCountdown)==null?0:f.templatedAdText){A=L.templatedCountdown.templatedAdText;if(!A.isTemplated){g.CE(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);this.W.init(Vo("ad-text"),A,{});this.W.DM(this.element);g.W(this,this.W)}this.show()};
|
|
g.p.clear=function(){this.hide()};
|
|
g.p.hide=function(){fL(this);oA.prototype.hide.call(this)};
|
|
g.p.q7=function(){this.hide()};
|
|
g.p.m3=function(){if(this.N!=null){var A=this.N.getProgressState();if(A!=null&&A.current!=null&&this.W){var L=this.N instanceof sN?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:A.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.N instanceof HH?A.seekableEnd:this.api.getDuration(2,!1);A=A.current;var B,f,K=((B=this.api.getVideoData())==null?0:(f=B.aA)==null?0:f.call(B))?Math.max(L-A,0):L-A;LL(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.hG(K)),
|
|
TIME_REMAINING:String(Math.ceil(K))})}}};
|
|
g.p.show=function(){BH(this);oA.prototype.show.call(this)};g.G(Th,AG);Th.prototype.onClick=function(A){AG.prototype.onClick.call(this,A);this.api.onAdUxClicked(this.componentType)};g.G(mm,dq);mm.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(A=L.content){g.OA(this.element,A);var B,f;L=((B=L.interaction)==null?void 0:(f=B.accessibility)==null?void 0:f.label)||A;this.element.setAttribute("aria-label",L)}else g.mL(Error("AdSimpleAttributedString does not have text content"))};
|
|
mm.prototype.clear=function(){this.hide()};
|
|
mm.prototype.onClick=function(A){dq.prototype.onClick.call(this,A)};g.G(Qr,dq);
|
|
Qr.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});(A=L.label)&&A.content&&!g.us(A.content)?(this.adBadgeText.init(Vo("ad-simple-attributed-string"),new lV(A)),(L=L.adPodIndex)&&L.content&&!g.us(L.content)&&(this.N=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),this.N.DM(this.element),g.W(this,this.N),this.N.element.classList.add("ytp-ad-badge__pod-index"),this.N.init(Vo("ad-simple-attributed-string"),new lV(L))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player":
|
|
"ytp-ad-badge--stark"),this.show()):g.mL(Error("No label is returned in AdBadgeViewModel."))};
|
|
Qr.prototype.show=function(){this.adBadgeText.show();var A;(A=this.N)==null||A.show();dq.prototype.show.call(this)};
|
|
Qr.prototype.hide=function(){this.adBadgeText.hide();var A;(A=this.N)==null||A.hide();dq.prototype.hide.call(this)};g.G(CL,dq);CL.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});(A=L.adPodIndex)&&A.content&&!g.us(A.content)&&(this.N=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),this.N.DM(this.element),g.W(this,this.N),this.N.init(Vo("ad-simple-attributed-string"),new lV(A)),L.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()};
|
|
CL.prototype.show=function(){var A;(A=this.N)==null||A.show();dq.prototype.show.call(this)};
|
|
CL.prototype.hide=function(){var A;(A=this.N)==null||A.hide();dq.prototype.hide.call(this)};g.G(iV,dq);
|
|
iV.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L!=null&&L.text){var B;if(((B=L.text)==null?0:B.content)&&!g.us(L.text.content)){this.N=new g.DE({Z:"div",j:"ytp-ad-disclosure-banner__text",Ir:L.text.content});g.W(this,this.N);this.N.DM(this.element);if(this.api.K().J("enable_ad_disclosure_banner_a11y_fix")){var f,K,V=(f=L.interaction)==null?void 0:(K=f.accessibility)==null?void 0:K.label;V||(V=L.text.content+" This link opens in new tab");ne(this.element,V)}else{var J;f=((V=
|
|
L.interaction)==null?void 0:(J=V.accessibility)==null?void 0:J.label)||L.text.content;this.element.setAttribute("aria-label",f)}var R;if((R=L.interaction)==null?0:R.onTap)this.api.K().J("remove_chevron_from_ad_disclosure_banner_h5")||(this.W=new g.DE({Z:"div",j:"ytp-ad-disclosure-banner__chevron",B:[g.gq()]}),g.W(this,this.W),this.W.DM(this.element)),this.api.K().J("enable_ad_disclosure_banner_a11y_fix")&&(xw(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.A2));
|
|
this.show()}}else g.mL(Error("No banner text found in AdDisclosureBanner."))};
|
|
iV.prototype.A2=function(A){if(A.key==="Enter"||A.key===" ")A.preventDefault(),this.element.click()};
|
|
iV.prototype.clear=function(){this.hide()};g.G(ON,g.DE);ON.prototype.iq=function(){var A=this.W.getProgressState(),L=A.seekableEnd;this.api.getPresentingPlayerType()===2&&(L=this.V?this.V/1E3:A.seekableEnd);this.progressBar.style.width=Xo(new $I(A.seekableStart,L),A.current,0)*100+"%"};
|
|
ON.prototype.onStateChange=function(){g.xi(this.api.K())||(this.api.getPresentingPlayerType()===2?this.N===-1&&(this.show(),this.N=this.W.subscribe("h",this.iq,this),this.iq()):this.N!==-1&&(this.hide(),this.W.vR(this.N),this.N=-1))};g.G(EN,dq);
|
|
EN.prototype.init=function(A,L,B,f){dq.prototype.init.call(this,A,L,B);if(L.skipOrPreviewRenderer){if(A=g.y(L.skipOrPreviewRenderer,fp))B=new jm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W,this.G),B.DM(this.Ys),B.init(Vo("skip-button"),A,this.macros),g.W(this,B);if(A=g.y(L.skipOrPreviewRenderer,fp))var K=A.skipOffsetMilliseconds}L.brandInteractionRenderer&&(A=L.brandInteractionRenderer.brandInteractionRenderer,B=new RA(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),
|
|
B.DM(this.wT),B.init(Vo("instream-user-sentiment"),A,this.macros),g.W(this,B));if(A=g.y(L,CLX))if(A=g.y(A,CLX))B=new Sm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W,!!L.showWithoutLinkedMediaLayout),g.W(this,B),B.DM(this.D),B.init(Vo("flyout-cta"),A,this.macros);f=f&&f.videoAdDurationSeconds;L.adBadgeRenderer&&(B=L.adBadgeRenderer,A=g.y(B,Y4),A!=null?(B=new Qr(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!1),g.W(this,B),B.DM(this.N),B.init(Vo("ad-badge"),
|
|
A,this.macros),this.V=B.element):(A=B.simpleAdBadgeRenderer,A==null&&(A={text:{text:"Annuncio",isTemplated:!1}}),B=new Gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0),g.W(this,B),B.DM(this.N),B.init(Vo("simple-ad-badge"),A,this.macros)));L.adPodIndex&&(A=g.y(L.adPodIndex,WvI),A!=null&&(B=new CL(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,B),B.DM(this.N),B.init(Vo("ad-pod-index"),A)));L.adDurationRemaining&&!L.showWithoutLinkedMediaLayout&&(A=
|
|
L.adDurationRemaining.adDurationRemainingRenderer,A==null&&(A={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),f=new kI(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W,f,!1),g.W(this,f),f.DM(this.N),f.init(Vo("ad-duration-remaining"),A,this.macros));L.adInfoRenderer&&(f=g.y(L.adInfoRenderer,he))&&(A=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,void 0,!1),g.W(this,A),this.V!==null?this.N.insertBefore(A.element,
|
|
this.V.nextSibling):A.DM(this.N),A.init(Vo("ad-info-hover-text-button"),f,this.macros));L.visitAdvertiserRenderer&&(A=g.y(L.visitAdvertiserRenderer,g.te))&&(B=qSD(this)&&this.U?this.U:this.N)&&(f=new gk(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,f),f.DM(B),f.init(Vo("visit-advertiser"),A,this.macros),xw(f.element),A=z7(f.element),ne(f.element,A+" This link opens in new tab"));!(f=this.api.K())||g.qM(f)||g.MM(f)||f.controlsType!="3"&&!f.disableOrganicUi||(K=new ON(this.api,
|
|
this.W,K,!1),K.DM(this.S4),g.W(this,K));L.adDisclosureBannerRenderer&&(L=g.y(L.adDisclosureBannerRenderer,UCf))&&(K=new iV(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),K.DM(this.qp),K.init(Vo("ad-disclosure-banner"),L),g.W(this,K));this.api.K().J("enable_updated_html5_player_focus_style")&&g.R1(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
|
|
EN.prototype.clear=function(){this.hide()};g.YI.prototype.flush=function(A,L){A=A===void 0?[]:A;L=L===void 0?!1:L;if(g.h_("enable_client_streamz_web")){A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=rsD(B.value),this.N&&PG(B,gm,2,this.N),B={serializedIncrementBatch:g.Y$(B.V())},g.pE("streamzIncremented",B,{sendIsolatedPayload:L})}};
|
|
g.G(xED,g.YI);var yky=new Map;UN.prototype.set=function(A,L,B){B=B!==void 0?Date.now()+B:void 0;this.N.set(A,L,B)};
|
|
UN.prototype.get=function(A){return this.N.get(A)};
|
|
UN.prototype.remove=function(A){this.N.remove(A)};var n_e=null;var xI=null,em=null,nL=null,LzC=null;g.hf("yt.www.ads.eventcache.getLastCompanionData",function(){return xI});
|
|
g.hf("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
|
|
g.hf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return em});
|
|
g.hf("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return nL});
|
|
g.hf("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return LzC});var B2e=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);zh.prototype.handleResponse=function(A,L){if(!L)throw Error("request needs to be passed into ConsistencyService");var B,f;L=((B=L.jJ.context)==null?void 0:(f=B.request)==null?void 0:f.consistencyTokenJars)||[];var K;(A=(K=A.responseContext)==null?void 0:K.consistencyTokenJar)&&this.replace(L,A)};
|
|
zh.prototype.replace=function(A,L){A=g.m(A);for(var B=A.next();!B.done;B=A.next())delete this.N[B.value.encryptedTokenJarContents];Kz0(this,L)};var u95=window.location.hostname.split(".").slice(-2).join("."),tN;aA.getInstance=function(){tN=g.bB("yt.clientLocationService.instance");tN||(tN=new aA,g.hf("yt.clientLocationService.instance",tN));return tN};
|
|
g.p=aA.prototype;
|
|
g.p.setLocationOnInnerTubeContext=function(A){A.client||(A.client={});if(this.N)A.client.locationInfo||(A.client.locationInfo={}),A.client.locationInfo.latitudeE7=Math.floor(this.N.coords.latitude*1E7),A.client.locationInfo.longitudeE7=Math.floor(this.N.coords.longitude*1E7),A.client.locationInfo.horizontalAccuracyMeters=Math.round(this.N.coords.accuracy),A.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.V||this.locationPlayabilityToken)A.client.locationPlayabilityToken=this.V||
|
|
this.locationPlayabilityToken};
|
|
g.p.handleResponse=function(A){var L;A=(L=A.responseContext)==null?void 0:L.locationPlayabilityToken;A!==void 0&&(this.locationPlayabilityToken=A,this.N=void 0,g.A_("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=uV(this))&&this.localStorage.set("yt-location-playability-token",A,15552E3):g.Ms("YT_CL",JSON.stringify({loctok:A}),15552E3,u95,!0))};
|
|
g.p.clearLocationPlayabilityToken=function(A){A==="TVHTML5"?(this.localStorage=uV(this))&&this.localStorage.remove("yt-location-playability-token"):g.UQ("YT_CL");this.V=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)};
|
|
g.p.getCurrentPositionFromGeolocation=function(){var A=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var L=!1,B=1E4;g.A_("INNERTUBE_CLIENT_NAME")==="MWEB"&&(L=!0,B=15E3);return new Promise(function(f,K){navigator.geolocation.getCurrentPosition(function(V){A.N=V;f(V)},function(V){K(V)},{enableHighAccuracy:L,
|
|
maximumAge:0,timeout:B})})};
|
|
g.p.createUnpluggedLocationInfo=function(A){var L={};A=A.coords;if(A==null?0:A.latitude)L.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)L.longitudeE7=Math.floor(A.longitude*1E7);if(A==null?0:A.accuracy)L.locationRadiusMeters=Math.round(A.accuracy);return L};
|
|
g.p.createLocationInfo=function(A){var L={};A=A.coords;if(A==null?0:A.latitude)L.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)L.longitudeE7=Math.floor(A.longitude*1E7);return L};g.p=Zsy.prototype;g.p.contains=function(A){return Object.prototype.hasOwnProperty.call(this.N,A)};
|
|
g.p.get=function(A){if(this.contains(A))return this.N[A]};
|
|
g.p.set=function(A,L){this.N[A]=L};
|
|
g.p.F1=function(){return Object.keys(this.N)};
|
|
g.p.remove=function(A){delete this.N[A]};L0.prototype.getModuleId=function(A){return A.serviceId.getModuleId()};
|
|
L0.prototype.get=function(A){a:{var L=this.mappings.get(A.toString());switch(L.type){case "mapping":A=L.value;break a;case "factory":L=L.value();this.mappings.set(A.toString(),{type:"mapping",value:L});A=L;break a;default:A=kj(L)}}return A};
|
|
L0.prototype.registerService=function(A,L){this.mappings.set(A.toString(),{type:"mapping",value:L});return A};
|
|
new L0;var ku={},N2v=(ku.WEB_UNPLUGGED="^unplugged/",ku.WEB_UNPLUGGED_ONBOARDING="^unplugged/",ku.WEB_UNPLUGGED_OPS="^unplugged/",ku.WEB_UNPLUGGED_PUBLIC="^unplugged/",ku.WEB_CREATOR="^creator/",ku.WEB_KIDS="^kids/",ku.WEB_EXPERIMENTS="^experiments/",ku.WEB_MUSIC="^music/",ku.WEB_REMIX="^music/",ku.WEB_MUSIC_EMBEDDED_PLAYER="^music/",ku.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",ku);f0.prototype.D=function(A,L,B){L=L===void 0?{}:L;B=B===void 0?dE:B;var f={context:g.AV(A.clickTrackingParams,!1,this.U)};var K=this.W(A);if(K){this.N(f,K,L);var V;L=g.B8(this.V());(K=(V=g.y(A.commandMetadata,g.jy))==null?void 0:V.apiUrl)&&(L=K);V=eqS(W7(L));A=Object.assign({},{command:A},void 0);f={input:V,rM:v7(V),jJ:f,config:A};f.config.i8?f.config.i8.identity=B:f.config.i8={identity:B};return f}B=new g.iL("Error: Failed to create Request from Command.",A);g.mL(B)};
|
|
g.v6.Object.defineProperties(f0.prototype,{U:{configurable:!0,enumerable:!0,get:function(){return!1}}});
|
|
g.G(K0,f0);g.G(Vm,K0);Vm.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",rM:v7("/getDatasyncIdsEndpoint","GET"),jJ:{}}};
|
|
Vm.prototype.V=function(){return[]};
|
|
Vm.prototype.W=function(){};
|
|
Vm.prototype.N=function(){};var aRt={},vLv=(aRt.GET_DATASYNC_IDS=ov(Vm),aRt);var Te={},AOw=(Te["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Te["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Te["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Te["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Te["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Te["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Te["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
|
|
Te["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Te["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Te["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Te["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Te["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Te["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Te["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Te["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
|
|
Te["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Te["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Te["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Te["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Te["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Te["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Te["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
|
|
Te["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Te.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Te["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Te["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Te["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Te["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Te["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Te["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
|
|
Te["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Te["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Te["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Te["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Te["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Te["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Te["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Te["dialog.copyright_strikes"]=
|
|
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Te["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Te["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Te.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Te["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Te["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Te["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Te["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Te["owner.asset_groups"]=
|
|
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Te["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Te["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Te["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Te["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Te["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Te["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Te["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Te["owner.delivery"]=
|
|
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Te["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Te["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Te["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Te["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Te["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Te["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Te["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Te["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
|
|
Te["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Te["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Te["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Te["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Te["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Te["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Te["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Te["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Te["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
|
|
Te["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Te["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Te["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Te["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Te["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Te["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Te["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Te["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
|
|
Te),lo={},yRS=(lo.auto_search="LATENCY_ACTION_AUTO_SEARCH",lo.ad_to_ad="LATENCY_ACTION_AD_TO_AD",lo.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",lo.app_startup="LATENCY_ACTION_APP_STARTUP",lo.browse="LATENCY_ACTION_BROWSE",lo.cast_splash="LATENCY_ACTION_CAST_SPLASH",lo.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",lo.channels="LATENCY_ACTION_CHANNELS",lo.chips="LATENCY_ACTION_CHIPS",lo.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",lo.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
|
|
lo.editor="LATENCY_ACTION_EDITOR",lo.embed="LATENCY_ACTION_EMBED",lo.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",lo.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",lo.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",lo.explore="LATENCY_ACTION_EXPLORE",lo.favorites="LATENCY_ACTION_FAVORITES",lo.home="LATENCY_ACTION_HOME",lo.inboarding="LATENCY_ACTION_INBOARDING",lo.landing="LATENCY_ACTION_LANDING",lo.learning="LATENCY_ACTION_LEARNING",
|
|
lo.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",lo.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",lo.library="LATENCY_ACTION_LIBRARY",lo.live="LATENCY_ACTION_LIVE",lo.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",lo.management="LATENCY_ACTION_MANAGEMENT",lo.mini_app="LATENCY_ACTION_MINI_APP_PLAY",lo.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",lo.onboarding="LATENCY_ACTION_ONBOARDING",lo.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
|
|
lo.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",lo.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",lo.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",lo.prebuffer="LATENCY_ACTION_PREBUFFER",lo.prefetch="LATENCY_ACTION_PREFETCH",lo.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",lo.profile_switcher="LATENCY_ACTION_LOGIN",lo.projects="LATENCY_ACTION_PROJECTS",lo.reel_watch="LATENCY_ACTION_REEL_WATCH",lo.results="LATENCY_ACTION_RESULTS",lo.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
|
|
lo.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",lo.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",lo.review="LATENCY_ACTION_REVIEW",lo.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",lo.search_ui="LATENCY_ACTION_SEARCH_UI",lo.search_suggest="LATENCY_ACTION_SUGGEST",lo.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",lo.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",lo.seek="LATENCY_ACTION_PLAYER_SEEK",lo.settings="LATENCY_ACTION_SETTINGS",lo.store="LATENCY_ACTION_STORE",
|
|
lo.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",lo.tenx="LATENCY_ACTION_TENX",lo.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",lo.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",lo.watch="LATENCY_ACTION_WATCH",lo.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",lo["watch,watch7"]="LATENCY_ACTION_WATCH",lo["watch,watch7_html5"]="LATENCY_ACTION_WATCH",lo["watch,watch7ad"]="LATENCY_ACTION_WATCH",lo["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",lo.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
|
|
lo.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",lo.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",lo.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",lo.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",lo.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",lo.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",lo.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",lo);Object.assign(yRS,AOw);g.G(Iv,II);var QlD=new wE("aft-recorded",Iv);var Li5=g.rI.ytLoggingGelSequenceIdObj_||{};g.hf("ytLoggingGelSequenceIdObj_",Li5);var ym=g.rI.ytLoggingLatencyUsageStats_||{};g.hf("ytLoggingLatencyUsageStats_",ym);wX.prototype.tick=function(A,L,B,f){jG(this,"tick_"+A+"_"+L)||g.pE("latencyActionTicked",{tickName:A,clientActionNonce:L},{timestamp:B,cttAuthInfo:f})};
|
|
wX.prototype.info=function(A,L,B){var f=Object.keys(A).join("");jG(this,"info_"+f+"_"+L)||(A=Object.assign({},A),A.clientActionNonce=L,g.pE("latencyActionInfo",A,{cttAuthInfo:B}))};
|
|
wX.prototype.jspbInfo=function(A,L,B){for(var f="",K=0;K<Rg(A).length;K++)Rg(A)[K]!==void 0&&(f=K===0?f.concat(""+K):f.concat("_"+K));if(!jG(this,"info_"+f+"_"+L)){BS(A,2,L);B={cttAuthInfo:B};L=g.h_("jspb_sparse_encoded_pivot")?new xR([{}]):new xR;o9e(L,vt,7,KtB,A);B=B===void 0?{}:B;A=!1;g.A_("ytLoggingEventsDefaultDisabled",!1)&&(A=!0);A=A?null:g.uy;B=B===void 0?{}:B;f=Math.round(B.timestamp||(0,g.bc)());oK(L,1,f<Number.MAX_SAFE_INTEGER?f:0);f=new Pt;B.lact?oK(f,1,isFinite(B.lact)?B.lact:-1):B.timestamp?
|
|
oK(f,1,-1):(K=rT(),oK(f,1,isFinite(K)?K:-1));if(B.sequenceGroup&&!g.h_("web_gel_sequence_info_killswitch")){K=B.sequenceGroup;var V=nRw(K),J=new qv;oK(J,2,V);BS(J,1,K);PG(f,qv,3,J);B.endOfSequence&&delete Li5[B.sequenceGroup]}PG(L,Pt,33,f);(B.sendIsolatedPayload?h2v:bXw)("latencyActionInfo",{endpoint:"log_event",payload:L,cttAuthInfo:B.cttAuthInfo,dangerousLogToVisitorSession:B.dangerousLogToVisitorSession},A)}};
|
|
wX.prototype.span=function(A,L,B){var f=Object.keys(A).join("");jG(this,"span_"+f+"_"+L)||(A.clientActionNonce=L,g.pE("latencyActionSpan",A,{cttAuthInfo:B}))};var mR=window,gX=mR.performance||mR.mozPerformance||mR.msPerformance||mR.webkitPerformance||new jlw;var mxe=!1,rR1=!1,TJ={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
|
|
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
|
|
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},is6=(0,g.X9)(gX.clearResourceTimings||gX.webkitClearResourceTimings||gX.mozClearResourceTimings||gX.msClearResourceTimings||gX.oClearResourceTimings||g.x9,gX);var ogW=window;ogW.ytcsi&&(ogW.ytcsi.infoGel=g.Qm,ogW.ytcsi.tick=mF);var u48="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" "),a3D=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];var olD=new sl("INNERTUBE_TRANSPORT_TOKEN");g.G(UC,K0);UC.prototype.V=function(){return cfO};
|
|
UC.prototype.W=function(A){return g.y(A,HfB)||void 0};
|
|
UC.prototype.N=function(A,L,B){B=B===void 0?{}:B;L.channelIds&&(A.channelIds=L.channelIds);L.siloName&&(A.siloName=L.siloName);L.params&&(A.params=L.params);B.botguardResponse&&(A.botguardResponse=B.botguardResponse);B.feature&&(A.clientFeature=B.feature)};
|
|
g.v6.Object.defineProperties(UC.prototype,{U:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.G(W8,K0);W8.prototype.V=function(){return M5X};
|
|
W8.prototype.W=function(A){return g.y(A,sOw)||void 0};
|
|
W8.prototype.N=function(A,L){L.channelIds&&(A.channelIds=L.channelIds);L.siloName&&(A.siloName=L.siloName);L.params&&(A.params=L.params)};
|
|
g.v6.Object.defineProperties(W8.prototype,{U:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bof=new sl("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.G(v8,K0);v8.prototype.V=function(){return ifO};
|
|
v8.prototype.W=function(A){return g.y(A,dXw)||g.y(A,IRR)||g.y(A,DXW)};
|
|
v8.prototype.N=function(A,L){L.serializedShareEntity&&(A.serializedSharedEntity=L.serializedShareEntity);if(L.clientParamIdentifier){var B;if((B=this.T)==null?0:B.N(L.clientParamIdentifier))A.clientParams=this.T.W(L.clientParamIdentifier)}};
|
|
v8[t0]=[Bof];g.G(qD,K0);qD.prototype.V=function(){return Xw5};
|
|
qD.prototype.W=function(A){return g.y(A,mYD)||void 0};
|
|
qD.prototype.N=function(A,L,B){A.feedbackTokens=[];L.feedbackToken&&A.feedbackTokens.push(L.feedbackToken);if(L=L.cpn||B.cpn)A.feedbackContext={cpn:L};A.isFeedbackTokenUnencrypted=!!B.is_feedback_token_unencrypted;A.shouldMerge=!1;B.extra_feedback_tokens&&(A.shouldMerge=!0,A.feedbackTokens=A.feedbackTokens.concat(B.extra_feedback_tokens))};
|
|
g.v6.Object.defineProperties(qD.prototype,{U:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.G(P8,K0);P8.prototype.V=function(){return Off};
|
|
P8.prototype.W=function(A){return g.y(A,rfB)||void 0};
|
|
P8.prototype.N=function(A,L){L.params&&(A.params=L.params);L.secondaryParams&&(A.secondaryParams=L.secondaryParams)};g.G(xx,K0);xx.prototype.V=function(){return EWw};
|
|
xx.prototype.W=function(A){return g.y(A,gWf)||void 0};
|
|
xx.prototype.N=function(A,L){L.actions&&(A.actions=L.actions);L.params&&(A.params=L.params);L.playlistId&&(A.playlistId=L.playlistId)};g.G(eG,K0);eG.prototype.V=function(){return $XR};
|
|
eG.prototype.W=function(A){return g.y(A,wwt)};
|
|
eG.prototype.N=function(A,L,B){B=B===void 0?{}:B;L.serializedShareEntity&&(A.serializedSharedEntity=L.serializedShareEntity);B.includeListId&&(A.includeListId=!0)};g.G(g.n0,g.iL);var fwK=new sl("NETWORK_SLI_TOKEN");zJ.prototype.fetch=function(A,L,B){var f=this,K;return g.c(function(V){K=Abv(f,A,L);return V.return(fetch(K).then(function(J){return f.handleResponse(J,B)}).catch(function(J){g.CE(J);
|
|
if((B==null?0:B.er)&&J instanceof g.n0&&J.errorType===1)return Promise.reject(J)}))})};
|
|
zJ.prototype.handleResponse=function(A,L){var B=A.text().then(function(f){if((L==null?0:L.osF)&&A.ok)return HGw(L.osF,f);f=f.replace(")]}'","");if((L==null?0:L.er)&&f)try{var K=JSON.parse(f)}catch(J){throw new g.n0(1,"JSON parsing failed after fetch");}var V;return(V=K)!=null?V:JSON.parse(f)});
|
|
A.redirected||A.ok?this.N&&this.N.success():(this.N&&this.N.Sh4(),B=B.then(function(f){g.CE(new g.iL("Error: API fetch failed",A.status,A.url,f));return Object.assign({},f,{errorMetadata:{status:A.status}})}));
|
|
return B};
|
|
zJ[t0]=[h0(fwK)];var LbD=new sl("NETWORK_MANAGER_TOKEN");var uJ;oL.prototype.bindInnertubeChallengeFetcher=function(A){this.N.bicf(A)};
|
|
oL.prototype.registerChallengeFetchedCallback=function(A){this.N.bcr(A)};
|
|
oL.prototype.getLatestChallengeResponse=function(){return this.N.blc()};var KiK=g.eE(["https://static.doubleclick.net/instream/ad_status.js"]),JbL=[],V_7=g.d_(KiK),Bv=!1;SU.prototype.U=function(){var A=this;return g.c(function(L){return L.N==1?g.X(L,Promise.race([A.N,null]),2):L.return(!!L.W)})};
|
|
SU.prototype.V=function(A,L,B){var f=this,K,V,J;return g.c(function(R){f.N===null&&Ruw(f,Jh(f));K=!1;V={};J=function(){var Z,N,F,D,I;return g.c(function(d){switch(d.N){case 1:if(!f.options.bt4||!f.options.zIp){d.Ux(2);break}return g.X(d,fu7(),3);case 3:return Z=d.W,g.X(d,(N=Z)==null?void 0:N.checkForRefresh(),2);case 2:return g.X(d,f.N,5);case 5:F=d.W;V.challenge=F.challenge;if(!F.Bo){"c1a"in F.AO&&(V.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");d.Ux(6);break}D=Object.assign({},{c:F.challenge,e:A},
|
|
L);g.S5(d,7);K=!0;return g.X(d,F.Bo.snapshot({WL:D}),9);case 9:(I=d.W)?V.webResponse=I:V.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.ZR(d,6);break;case 7:g.NX(d),V.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(A==="ENGAGEMENT_TYPE_PLAYBACK"){var w=F.AO,r={};w.c6a&&(r.reportingStatus=String(Number(w.c)^fz()));w.c6b&&(r.broadSpectrumDetectionResult=String(Number(w.c)^Number(g.A_("CATSTAT",0))));V.adblockReporting=r}return d.return(V)}})};
|
|
return R.return(Promise.race([J(),dJE(B,function(){var Z=Object.assign({},V);K&&(Z.error="ATTESTATION_ERROR_VM_TIMEOUT");return Z})]))})};var ybD=["APP_STATE","PI"];var OkE=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
|
|
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
|
|
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
|
|
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
|
|
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
|
|
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,297045,275198,271884,222932,279119,271886,213915,275199,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,
|
|
3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,
|
|
264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,
|
|
37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,297672,160598,57929,226736,74723,44098,
|
|
173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,
|
|
158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,249827,194E3,141121,164502,31571,
|
|
195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,296316,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,
|
|
155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,296813,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,
|
|
237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,
|
|
267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];ZF.prototype.getState=function(){return this.store.getState()};
|
|
ZF.prototype.dispatch=function(A){return this.store.dispatch(A)};
|
|
ZF.prototype.subscribe=function(A){return this.store.subscribe(A)};
|
|
ZF.prototype.replaceReducer=function(A){return this.store.replaceReducer(A)};
|
|
ZF.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};FK.prototype.append=function(A){if(GPQ(this,A)){var L=this.N[this.N.length-1];this.N[this.N.length-1]=new Uint8Array(L.buffer,L.byteOffset,L.length+A.length);IL(this)}else this.N.push(A);this.totalLength+=A.length};
|
|
FK.prototype.split=function(A){for(var L=new FK,B=new FK,f=g.m(this.N),K=f.next();!K.done;K=f.next())K=K.value,A>=K.length?(L.append(K),A-=K.length):A?(L.append(new Uint8Array(K.buffer,K.byteOffset,A)),B.append(new Uint8Array(K.buffer,K.byteOffset+A,K.length-A)),A=0):B.append(K);return{NJ:L,Mz:B}};
|
|
FK.prototype.isFocused=function(A){return A>=this.V&&A<this.V+this.N[this.W].length};
|
|
FK.prototype.focus=function(A){if(!this.isFocused(A)){for(A<this.V&&IL(this);this.V+this.N[this.W].length<=A&&this.W<this.N.length;)this.V+=this.N[this.W].length,this.W+=1;this.U=void 0}};var rZ,gZ,Hv;g.WO=function(){function A(f){for(var K=new Uint8Array(f.length),V=0;V<f.length;V++)K[V]=f[V];return K}
|
|
function L(f){return new Uint8Array(f)}
|
|
var B=new Uint8Array([1]);return B.length===1&&B[0]===1?L:A}();
|
|
rZ=Array(1024);gZ=window.TextDecoder?new TextDecoder:void 0;Hv=window.TextEncoder?new TextEncoder:void 0;for(var QIv={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
|
|
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
|
|
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
|
|
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
|
|
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},mJ8={},VZf=g.m(Object.entries(QIv)),JOd=VZf.next();!JOd.done;JOd=VZf.next()){var Scf=g.m(JOd.value),RFw=Scf.next().value,ZxK=Scf.next().value,NoO=RFw,FiK=ZxK;FiK&&(mJ8[FiK]=NoO)};var $J1=!1,uD,aL,AQ,LO,od;g.G(BT,g.Y);
|
|
BT.prototype.encrypt=function(A){var L=A.length;A=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+L));for(var B=this.W,f=0;f<L&&this.N<16;)A[f++]^=B[this.N++];for(var K=L-(L-f)%16;f<K;)Xav(this),A[f++]^=B[0],A[f++]^=B[1],A[f++]^=B[2],A[f++]^=B[3],A[f++]^=B[4],A[f++]^=B[5],A[f++]^=B[6],A[f++]^=B[7],A[f++]^=B[8],A[f++]^=B[9],A[f++]^=B[10],A[f++]^=B[11],A[f++]^=B[12],A[f++]^=B[13],A[f++]^=B[14],A[f++]^=B[15];if(f<L)for(Xav(this),this.N=0;f<L;)A[f++]^=B[this.N++];return A};var fO=!1;(function(){function A(f){for(var K=new Uint8Array(f.length),V=0;V<f.length;V++)K[V]=f[V];return K}
|
|
function L(f){return new Uint8Array(f)}
|
|
var B=new Uint8Array([1]);return B.length===1&&B[0]===1?L:A})();
|
|
var KO;g.Rd.prototype.encrypt=function(A,L){var B=this,f;return g.c(function(K){switch(K.N){case 1:if(!B.N){K.Ux(2);break}g.S5(K,3);return g.X(K,B.N.encrypt(A,L),5);case 5:return K.return(K.W);case 3:f=g.NX(K),g.CE(f),fO=!0,B.N=void 0;case 2:return K.return(B.W.encrypt(A,L))}})};
|
|
g.Rd.prototype.decrypt=function(A,L){return this.encrypt(A,L)};
|
|
JQ.prototype.encrypt=function(A,L){var B=this,f;return g.c(function(K){if(K.N==1)return g.S5(K,2),g.X(K,O40(B,A,L),4);if(K.N!=2)return K.return(K.W);f=g.NX(K);g.CE(f);fO=!0;throw f;})};
|
|
g.S8.prototype.encrypt=function(A,L){this.N||(this.N=new BT(this.W));for(var B=this.N,f=0;f<4;f++)B.counter[f]=L[f*4]<<24|L[f*4+1]<<16|L[f*4+2]<<8|L[f*4+3];B.N=16;return this.N.encrypt(A)};
|
|
g.S8.prototype.decrypt=function(A,L){return this.encrypt(A,L)};Zs.prototype.reset=function(){cb6(this);this.update(this.V)};
|
|
Zs.prototype.update=function(A){var L=0,B=A.length;this.U+=B;this.W&&this.W+B>=64&&(this.T.set(A.subarray(0,64-this.W),this.W),L=64-this.W,this.W=0,El1(this,this.T,0));for(;L+64<=B;L+=64)El1(this,A,L);L<B&&(A=A.subarray(L),this.T.set(A,this.W),this.W+=A.length)};
|
|
var NN=[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 DVX;DVX={};g.dVt=g.oI("yt-idb-pref-storage",{JU:(DVX.prefs={fO:1},DVX),shared:!1,upgrade:function(A,L){L(1)&&g.$L(g.TU(A,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
|
|
version:1});var Qb;Qb={};g.IwB=(Qb.INVALID_ENCODER_VERSION="Invalid encoder version",Qb.KEY_CREATION_FAILED="Failed to create encoder key",Qb.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Qb.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Qb.WRONG_DATA_TYPE="Encoder cannot process the data type",Qb);g.xv("","downloadsPageViewConfigurationEntity");g.xv("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.CI=g.xv("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.xv("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.xv("SMART_DOWNLOADS_ENABLED","settingEntity");g.xv("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var fPQ=new sl("POSTMESSAGE_TUNNEL_TOKEN");var SlQ=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.p=Ds.prototype;g.p.initialize=function(A,L,B,f){this.vI=f;if(A.program){var K;f=(K=A.interpreterUrl)!=null?K:null;if(A.interpreterSafeScript)K=DBC(A.interpreterSafeScript);else{var V;K=(V=A.interpreterScript)!=null?V:null}A.interpreterSafeUrl&&(f=mc(A.interpreterSafeUrl).toString());J00(this,K,f,A.program,L,B)}else g.CE(Error("BL:CIP"))};
|
|
g.p.isInitialized=function(){return this.kB()};
|
|
g.p.getState=function(){return this.state};
|
|
g.p.isLoading=function(){return this.state===2};
|
|
g.p.invoke=function(A){A=A===void 0?{}:A;return this.kB()?this.Wj({WL:A}):null};
|
|
g.p.dispose=function(){this.VS(null);this.Y6(8)};
|
|
g.p.kB=function(){return!!this.Bo};
|
|
g.p.Wj=function(A){return this.Bo.ev(A)};
|
|
g.p.VS=function(A){g.jq(this.Bo);this.Bo=A};
|
|
g.p.Y6=function(A){this.state=A};g.G(Id,Ds);Id.prototype.VS=function(A){var L;(L=d5())==null||L.bgvma();A?(L={bgvma:A.dispose.bind(A),bgvmb:A.snapshot.bind(A),bgvmc:A.ev.bind(A)},g.hf("yt.abuse.playerAttLoader",L),Wvy(function(B){return A.snapshot(B)})):(g.hf("yt.abuse.playerAttLoader",null),g.hf("yt.abuse.playerAttLoaderRun",null))};
|
|
Id.prototype.kB=function(){return!!d5()};
|
|
Id.prototype.Wj=function(A){return d5().bgvmc(A)};w5.prototype.vY=function(){return"crossDeviceProgressCommand"};
|
|
w5.prototype.Z9=function(A){if(A.crossDevicePings){var L=[];A=g.m(A.crossDevicePings);for(var B=A.next();!B.done;B=A.next())L.push({baseUrl:B.value.baseUrl});L={crossDevicePings:L};this.kX.S.K().experiments.GL("enable_batched_cross_device_pings_in_gel_fanout")&&(L.enableBatchedCrossDevicePings=!0);g.pE("crossDeviceNotificationTransfer",L)}};pO.prototype.vY=function(){return"muteAdEndpoint"};
|
|
pO.prototype.Z9=function(A,L){switch(A.type){case "SKIP":R80(this.y4,this.Fe,L)}};yS.prototype.vY=function(){return"openPopupAction"};
|
|
yS.prototype.Z9=function(){};j8.prototype.vY=function(){return"pingingEndpoint"};
|
|
j8.prototype.Z9=function(){};var wQy={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.G(NTw,g.Y);var PK7={Gtp:"FINAL",NQF:"AD_BREAK_LENGTH",ydL:"AD_CPN",WoD:"AH",H9r:"AD_MT",qjD:"ASR",l54:"AW",U41:"NM",wFn:"NX",ZQr:"NY",Jyp:"CONN",ryr:"CPN",oXD:"DV_VIEWABILITY",qdr:"ERRORCODE",V5D:"ERROR_MSG",bXr:"EI",nf1:"GOOGLE_VIEWABILITY",K34:"IAS_VIEWABILITY",YIM:"LACT",nmD:"LIVE_TARGETING_CONTEXT",eir:"I_X",Q_M:"I_Y",GKr:"MT",OOr:"MIDROLL_POS",cA4:"MIDROLL_POS_MS",B$1:"MOAT_INIT",PFD:"MOAT_VIEWABILITY",zcF:"P_H",EC1:"PV_H",A84:"PV_W",hcL:"P_W",C5T:"TRIGGER_TYPE",rjj:"SDKV",GBL:"SLOT_POS",WIF:"SURVEY_LOCAL_TIME_EPOCH_S",
|
|
yir:"SURVEY_ELAPSED_MS",aE:"VIS",foF:"VIEWABILITY",sgx:"VED",xnj:"VOL",pYn:"WT",TKx:"YT_ERROR_CODE"};r5.prototype.vY=function(){return"urlEndpoint"};
|
|
r5.prototype.Z9=function(A,L,B){var f=this.j4.get(),K=yx(f.W.get(),L);K?L=IE(f,cHe(K),K,void 0,void 0,B):(Dh("Trying to ping from an unknown layout",void 0,void 0,{layoutId:L}),L={});L=Object.assign({},L);XW(this.N,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(B=BV(this.kf,2))&&(L.AD_CPN=B.clientPlaybackNonce);L=g.iN(A.url,L);A=g.PH(L,void 0,void 0,void 0,A.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME");Ke0(A,L)};sj.prototype.get=function(){return this.value};
|
|
g.G(HT,sj);HT.prototype.N=function(){return"metadata_type_action_companion_ad_renderer"};
|
|
g.G(hQ,sj);hQ.prototype.N=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
|
|
g.G(b5,sj);b5.prototype.N=function(){return"metadata_type_ads_engagement_panel_renderer"};
|
|
g.G(tQ,sj);tQ.prototype.N=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
|
|
g.G(kD,sj);kD.prototype.N=function(){return"metadata_type_ad_next_params"};
|
|
g.G(TQ,sj);TQ.prototype.N=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
|
|
g.G(l5,sj);l5.prototype.N=function(){return"metadata_type_invideo_overlay_ad_renderer"};
|
|
g.G(m_,sj);m_.prototype.N=function(){return"metadata_type_image_companion_ad_renderer"};
|
|
g.G(QS,sj);QS.prototype.N=function(){return"metadata_type_banner_image_layout_view_model"};
|
|
g.G(CO,sj);CO.prototype.N=function(){return"metadata_type_shopping_companion_carousel_renderer"};
|
|
g.G(i5,sj);i5.prototype.N=function(){return"metadata_type_ad_info_ad_metadata"};
|
|
g.G($D,sj);$D.prototype.N=function(){return"metadata_ad_video_is_listed"};
|
|
g.G(Xf,sj);Xf.prototype.N=function(){return"metadata_type_ad_placement_config"};
|
|
g.G(Oj,sj);Oj.prototype.N=function(){return"metadata_type_ad_pod_info"};
|
|
g.G(Ej,sj);Ej.prototype.N=function(){return"metadata_type_ad_pod_skip_index"};
|
|
g.G(cT,sj);cT.prototype.N=function(){return"metadata_type_ad_pod_skip_target"};
|
|
g.G(MN,sj);MN.prototype.N=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
|
|
g.G(YD,sj);YD.prototype.N=function(){return"metadata_type_ad_video_id"};
|
|
g.G(Uj,sj);Uj.prototype.N=function(){return"metadata_type_content_cpn"};
|
|
g.G(WT,sj);WT.prototype.N=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
|
|
g.G(vT,sj);vT.prototype.N=function(){return"metadata_type_player_overlay_layout_renderer"};
|
|
g.G(qN,sj);qN.prototype.N=function(){return"metadata_type_player_underlay_renderer"};
|
|
g.G(PT,sj);PT.prototype.N=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
|
|
g.G(xD,sj);xD.prototype.N=function(){return"metadata_type_media_associated_in_player_slot"};
|
|
g.G(e8,sj);e8.prototype.N=function(){return"metadata_type_shrunken_player_bytes_config"};
|
|
g.G(nO,sj);nO.prototype.N=function(){return"metadata_type_ad_action_interstitial_renderer"};
|
|
g.G(zQ,sj);zQ.prototype.N=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
|
|
g.G(u5,sj);u5.prototype.N=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
|
|
g.G(ad,sj);ad.prototype.N=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
|
|
g.G(Aw,sj);Aw.prototype.N=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
|
|
g.G(Lk,sj);Lk.prototype.N=function(){return"metadata_type_linked_player_bytes_layout_id"};
|
|
g.G(oJ,sj);oJ.prototype.N=function(){return"metadata_type_linked_second_player_bytes_layout_id"};
|
|
g.G(BF,sj);BF.prototype.N=function(){return"metadata_type_linked_in_player_layout_id"};
|
|
g.G(fk,sj);fk.prototype.N=function(){return"metadata_type_linked_in_player_layout_type"};
|
|
g.G(Kk,sj);Kk.prototype.N=function(){return"metadata_type_linked_in_player_slot_id"};
|
|
g.G(Vt,sj);Vt.prototype.N=function(){return"metadata_type_player_bytes_callback"};
|
|
g.G(Jw,sj);Jw.prototype.N=function(){return"metadata_type_player_bytes_callback_ref"};
|
|
g.G(S6,sj);S6.prototype.N=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
|
|
g.G(RJ,sj);RJ.prototype.N=function(){return"metadata_type_sub_layouts"};
|
|
g.G(Zo,sj);Zo.prototype.N=function(){return"metadata_type_cue_point"};
|
|
g.G(N1,sj);N1.prototype.N=function(){return"metadata_type_triggering_cue_point"};
|
|
g.G(Fv,sj);Fv.prototype.N=function(){return"metadata_type_video_length_seconds"};
|
|
g.G(Do,sj);Do.prototype.N=function(){return"metadata_type_player_vars"};
|
|
g.G(dU,sj);dU.prototype.N=function(){return"metadata_type_preload_player_vars"};
|
|
g.G(IJ,sj);IJ.prototype.N=function(){return"metadata_type_sodar_extension_data"};
|
|
g.G(wU,sj);wU.prototype.N=function(){return"metadata_type_layout_enter_ms"};
|
|
g.G(pk,sj);pk.prototype.N=function(){return"metadata_type_layout_exit_ms"};
|
|
g.G(j6,sj);j6.prototype.N=function(){return"metadata_type_media_sub_layout_index"};
|
|
g.G(gU,sj);gU.prototype.N=function(){return"metadata_type_dai"};
|
|
g.G(Gb,sj);Gb.prototype.N=function(){return"metadata_type_ad_intro"};
|
|
g.G(rU,sj);rU.prototype.N=function(){return"metadata_type_client_forecasting_ad_renderer"};
|
|
g.G(sg,sj);sg.prototype.N=function(){return"metadata_type_drift_recovery_ms"};
|
|
g.G(HF,sj);HF.prototype.N=function(){return"metadata_type_fulfilled_layout"};
|
|
g.G(hw,sj);hw.prototype.N=function(){return"metadata_type_ad_break_request_data"};
|
|
g.G(bT,sj);bT.prototype.N=function(){return"metadata_type_ad_break_response_data"};
|
|
g.G(tw,sj);tw.prototype.N=function(){return"metadata_type_remote_slots_data"};
|
|
g.G(kX,sj);kX.prototype.N=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
|
|
g.G(Tb,sj);Tb.prototype.N=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
|
|
g.G(lT,sj);lT.prototype.N=function(){return"metadata_type_legacy_info_card_vast_extension"};
|
|
g.G(mw,sj);mw.prototype.N=function(){return"metadata_type_valid_ad_message_renderer"};
|
|
g.G(Qt,sj);Qt.prototype.N=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
|
|
g.G(Ck,sj);Ck.prototype.N=function(){return"metadata_type_served_from_live_infra"};
|
|
g.G(iT,sj);iT.prototype.N=function(){return"metadata_type_survey_overlay"};
|
|
g.G($X,sj);$X.prototype.N=function(){return"metadata_type_active_view_traffic_type"};
|
|
g.G(Xv,sj);Xv.prototype.N=function(){return"metadata_type_active_view_identifier"};
|
|
g.G(Og,sj);Og.prototype.N=function(){return"metadata_type_ssdai_ads_config"};
|
|
g.G(Eg,sj);Eg.prototype.N=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
|
|
g.G(cF,sj);cF.prototype.N=function(){return"metadata_type_player_bytes_slot_metadata"};
|
|
g.G(M1,sj);M1.prototype.N=function(){return"metadata_type_prefetch_metadata"};var QWQ=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 YlD=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.G(vF,Ww);g.G(n,Ww);new Promise(function(){});var g0k=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"]]),y0k=new Map([["normal",{sQ:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",cQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{sQ:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",cQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
|
|
["muted",{sQ:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",cQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{sQ:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",cQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{sQ:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",cQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{sQ:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",cQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
|
|
["error",{sQ:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",cQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.G(o6,g.Y);g.p=o6.prototype;g.p.Br=function(A,L){return this.N.Br(A,L)};
|
|
g.p.O6=function(A,L){this.fY.N("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",A,L);for(var B=g.m(this.W),f=B.next();!f.done;f=B.next())f.value.O6(A,L)};
|
|
g.p.rI=function(A){if(Si(this.N,A)){ji(this.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",A);this.N.rI(A);for(var L=g.m(this.W),B=L.next();!B.done;B=L.next())B.value.rI(A);HVL(this,A)}};
|
|
g.p.n8=function(A){if(Si(this.N,A)){ji(this.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",A);this.N.n8(A);for(var L=g.m(this.W),B=L.next();!B.done;B=L.next())B.value.n8(A);Si(this.N,A)&&R6(this.N,A).D&&VL(this,A,!1)}};
|
|
g.p.M9=function(A){ji(this.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",A);Si(this.N,A)&&(this.N.M9(A),VL(this,A,!1))};
|
|
g.p.lq=function(A,L){if(Si(this.N,A)){ZB(this.fY,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",A,L);for(var B=g.m(this.W),f=B.next();!f.done;f=B.next())f.value.lq(A,L)}};
|
|
g.p.CD=function(A,L,B){if(Si(this.N,A)){ZB(this.fY,jWv(B),A,L);this.N.CD(A,L);for(var f=g.m(this.W),K=f.next();!K.done;K=f.next())K.value.CD(A,L,B);(B=rY(this.N,A))&&L.layoutId===B.layoutId&&E0k(this,A,!1)}};
|
|
g.p.o0=function(A,L,B,f){B.Qq&&f?(Dh(B,A,L,void 0,B.jT),Ky(this.fY,f,B.Qq,A,L)):Dh("adsClientErrorMessage is missing.",A,L);VL(this,A,!0)};
|
|
g.p.l1=function(){var A=MPD(this.N);A=g.m(A);for(var L=A.next();!L.done;L=A.next())VL(this,L.value,!1);g.Y.prototype.l1.call(this)};
|
|
g.p.Z0=function(A,L){ZB(this.fY,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",A,L);ZB(this.fY,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",A,L);for(var B=g.m(this.W),f=B.next();!f.done;f=B.next())f=f.value,L&&f.Z0(A,L)};c08.prototype.isActive=function(){switch(this.N){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.G(hm,g.Y);g.p=hm.prototype;g.p.Br=function(A,L){L=Gi(this,A+"_"+L);A=[];L=g.m(L.values());for(var B=L.next();!B.done;B=L.next())A.push(B.value.slot);return A};
|
|
g.p.cV=function(A){A=R6(this,A);A.N!=="not_scheduled"&&sZ(A.slot,A.N,"onSlotScheduled");A.N="scheduled"};
|
|
g.p.ez=function(A){A=R6(this,A);A.U="fill_requested";A.X.ez()};
|
|
g.p.rI=function(A){A=R6(this,A);A.N!=="enter_requested"&&sZ(A.slot,A.N,"onSlotEntered");A.N="entered"};
|
|
g.p.M9=function(A){R6(this,A).U="fill_canceled"};
|
|
g.p.n8=function(A){A=R6(this,A);A.N!=="exit_requested"&&sZ(A.slot,A.N,"onSlotExited");A.N="scheduled"};
|
|
g.p.CD=function(A,L){A=R6(this,A);A.layout!=null&&A.layout.layoutId===L.layoutId&&(A.N!=="rendering_stop_requested"&&sZ(A.slot,A.N,"onLayoutExited"),A.N="entered")};g.G(kG,g.Y);kG.prototype.get=function(){Math.random()<.001&&this.TL()&&Dh("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.N());return this.instance};g.G(lY,g.Y);lY.prototype.V=function(){return this.W};mO.prototype.executeCommand=function(A,L){GQ(this.N(),A,L)};iY.prototype.addListener=function(A){this.listeners.add(A)};
|
|
iY.prototype.removeListener=function(A){this.listeners.delete(A)};var io={},UZ=(io.AD_MARKER="ytp-ad-progress",io.CHAPTER_MARKER="ytp-chapter-marker",io.TIME_MARKER="ytp-time-marker",io);var j46=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/)"),z87=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
|
|
gQD=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),KL6=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)|$))"),
|
|
B8C=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)|$))"),Ave=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(docs|sheets|slides|drawings|forms|videos)\\-images\\-(rt|qw)))\\/|^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/)"),
|
|
G4v=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),LL7=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)"),aP1=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(docs|sheets|slides|drawings|forms|videos)\\-images\\-(rt|qw)))\\/|^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/.*$)"),
|
|
WaD=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)"),
|
|
UKL=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
|
|
wkf=RegExp("^(https://play\\.google\\.com|https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com|https://adstransparency\\.google\\.com|https://ads\\.google\\.com|https://adwords\\.corp\\.google\\.com|https://ads\\-external\\-prod\\.qa\\.adz\\.google\\.com|https://ads\\-prod\\.qa\\.adz\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.WR.prototype.getId=function(){return this.id};
|
|
g.WR.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+SFS(this.start)+", "+SFS(this.end)+"]"};
|
|
g.WR.prototype.contains=function(A,L){return A>=this.start&&(A<this.end||A===this.end&&this.start===this.end)&&(L==null||A<L&&L<=this.end)};
|
|
var Jv6=1;g.WR.prototype.getId=g.WR.prototype.getId;xG.prototype.ez=function(){var A=this,L=0;e8D(this.N,function(){var B=PF(A.slot.clientMetadata,"metadata_type_ad_break_request_data");L=Date.now();Ay(A.j4.get(),"abrs","ct."+L+";cmt."+A.Mp.get().getCurrentTimeSec(1,!1)+";sid."+A.slot.slotId+";");return A.W.get().fetch({HK:B.getAdBreakUrl,eG:new g.WR(B.f3,B.hU),Kn:PF(A.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:B.cueProcessedMs})},function(){ZES(A)},function(B){var f=Date.now()-L;
|
|
Ay(A.j4.get(),"abrr","ct."+(new Date).getTime()+";cmt."+A.Mp.get().getCurrentTimeSec(1,!1)+";l."+f.toString()+";sid."+A.slot.slotId+";");f=B.To;f.length>=2&&B.ssdaiAdsConfig&&Dh("Unexpected ad placement renderers length",A.slot,null,{length:f.length});var K;((K=B.adSlots)==null?0:K.some(function(V){var J,R;return((J=g.y(V,Gl))==null?void 0:(R=J.adSlotMetadata)==null?void 0:R.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||f.some(function(V){var J,R,Z,N;
|
|
return!!((J=V.renderer)==null?0:(R=J.linearAdSequenceRenderer)==null?0:(Z=R.linearAds)==null?0:Z.length)||!((N=V.renderer)==null||!N.instreamVideoAdRenderer)})||ZES(A)})};
|
|
xG.prototype.IJ=function(){n0L(this.N)};ei.prototype.ez=function(){var A=this;e8D(this.W,function(){var L=PF(A.slot.clientMetadata,"metadata_type_ad_break_request_data");return L.cueProcessedMs?A.N.get().fetch({HK:L.getAdBreakUrl,eG:new g.WR(L.f3,L.hU),cueProcessedMs:L.cueProcessedMs}):A.N.get().fetch({HK:L.getAdBreakUrl,eG:new g.WR(L.f3,L.hU)})})};
|
|
ei.prototype.IJ=function(){n0L(this.W)};ny.prototype.ez=function(){var A=this.slot.clientMetadata,L,B=(L=this.slot.fulfilledLayout)!=null?L:PF(A,"metadata_type_fulfilled_layout");h8Q(this.callback,this.slot,B)};
|
|
ny.prototype.IJ=function(){Jm(this.callback,this.slot,new n("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")};uY.prototype.build=function(A,L){return L.fulfilledLayout||zi(L,{qQ:["metadata_type_fulfilled_layout"]})?new ny(A,L):this.V(A,L)};g.G(a6,uY);
|
|
a6.prototype.V=function(A,L){if(zi(L,{qQ:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new xG(A,L,this.N,this.W,this.Le,this.FD,this.j4,this.Mp,this.sE);if(zi(L,{qQ:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ei(A,L,this.N,this.W,this.Le,this.FD);throw new n("Unsupported slot with type: "+L.slotType+" and client metadata: "+xX(L.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.G(AE,uY);AE.prototype.V=function(A,L){throw new n("Unsupported slot with type: "+L.slotType+" and client metadata: "+xX(L.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.p=N86.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.init=function(){};
|
|
g.p.release=function(){};
|
|
g.p.startRendering=function(A){if(A.layoutId!==this.layout.layoutId)this.callback.o0(this.slot,A,new vF("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 L=PF(A.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.lq(this.slot,A),Ahe(this.V,
|
|
this.slot,L)):Dh("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,A)}};
|
|
g.p.D1=function(A,L){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.CD(this.slot,A,L),D26(this),d2k(this))};g.G(KU,g.SN);g.p=KU.prototype;g.p.LY=function(){return this.W.slot};
|
|
g.p.dT=function(){return this.W.layout};
|
|
g.p.init=function(){this.V.get().addListener(this)};
|
|
g.p.release=function(){this.V.get().removeListener(this);this.dispose()};
|
|
g.p.Fj=function(){};
|
|
g.p.kp=function(){};
|
|
g.p.lc=function(){};
|
|
g.p.cS=function(){};
|
|
g.p.startRendering=function(A){var L=this;fU(this.W,A,function(){return void L.QV()})};
|
|
g.p.QV=function(){this.V.get().QV(this.N)};
|
|
g.p.D1=function(A,L){var B=this;fU(this.W,A,function(){var f=B.V.get();LA6(f,B.N,3);B.N=[];B.callback.CD(B.slot,A,L)})};
|
|
g.p.l1=function(){this.V.TL()||this.V.get().removeListener(this);g.SN.prototype.l1.call(this)};
|
|
g.v6.Object.defineProperties(KU.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}},
|
|
layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});DT.prototype.QF=function(A,L){L=L===void 0?!1:L;var B=(this.V.get(A)||[]).concat();if(L=L&&yvv(A)){var f=this.V.get(L);f&&B.push.apply(B,g.x7(f))}wj(this,A,B);this.N.add(A);L&&this.N.add(L)};
|
|
DT.prototype.eI=function(A,L){L=L===void 0?!1:L;if(!this.N.has(A)){var B=L&&yvv(A);B&&(L=!this.N.has(B));this.QF(A,L)}};g.G(GNk,Jr);g.G(GY,KU);g.p=GY.prototype;g.p.dI=function(A,L){RE("ads-engagement-panel-layout",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)};
|
|
g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,oG),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(L,B,f,K,V){return new GNk(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(A,L){this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(s90,Jr);g.G(rj,KU);g.p=rj.prototype;g.p.dI=function(A,L){RE("banner-image",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)};
|
|
g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,Ae),this.callback,"metadata_type_banner_image_layout_view_model",function(L,B,f,K,V){return new s90(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(A,L){this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(sb,Jr);g.G(H$,KU);g.p=H$.prototype;g.p.dI=function(A,L){RE("action-companion",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)};
|
|
g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,zA),this.callback,"metadata_type_action_companion_ad_renderer",function(L,B,f,K,V){return new sb(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(A,L){L.layoutId===this.layout.layoutId?this.vn.eI("impression"):this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(bES,Jr);g.G(hE,KU);g.p=hE.prototype;g.p.dI=function(A,L){RE("image-companion",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)};
|
|
g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,uh),this.callback,"metadata_type_image_companion_ad_renderer",function(L,B,f,K,V){return new bES(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(A,L){L.layoutId===this.layout.layoutId?this.vn.eI("impression"):this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(kNe,Jr);g.G(bd,KU);g.p=bd.prototype;g.p.dI=function(A,L){RE("shopping-companion",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)};
|
|
g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(L,B,f,K,V){return new kNe(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(A,L){L.layoutId===this.layout.layoutId?this.vn.eI("impression"):this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(TY,KU);g.p=TY.prototype;g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(L,B,f,K,V){return new sb(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(){};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};
|
|
g.p.dI=function(){};g.p=CfS.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.init=function(){this.Mp.get().addListener(this);this.Mp.get().Sz.push(this);var A=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=PF(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZT(this.layout.Vf)&&aH(this.Fr.get(),this.layout.layoutId,{nt:L,Ag:A,listener:this})};
|
|
g.p.release=function(){this.Mp.get().removeListener(this);e6C(this.Mp.get(),this);ZT(this.layout.Vf)&&A3(this.Fr.get(),this.layout.layoutId)};
|
|
g.p.startRendering=function(A){this.callback.lq(this.slot,A)};
|
|
g.p.D1=function(A,L){jiE(this.FD.get())&&!this.N&&(this.vn.eI("abandon"),this.N=!0);this.callback.CD(this.slot,A,L)};
|
|
g.p.jO=function(A){switch(A.id){case "part2viewed":this.vn.eI("start");this.vn.eI("impression");break;case "videoplaytime25":this.vn.eI("first_quartile");break;case "videoplaytime50":this.vn.eI("midpoint");break;case "videoplaytime75":this.vn.eI("third_quartile");break;case "videoplaytime100":jiE(this.FD.get())?this.N||(this.vn.eI("complete"),this.N=!0):this.vn.eI("complete");gj(this.vn)&&yc(this.vn,Infinity,!0);gJS(this.FD.get())&&km(this.W,Infinity,!0);break;case "engagedview":gj(this.vn)||this.vn.eI("progress");
|
|
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Dh("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.T_=function(){};
|
|
g.p.mF=function(){};
|
|
g.p.iH=function(){};
|
|
g.p.onFullscreenToggled=function(){};
|
|
g.p.H9=function(){};
|
|
g.p.C9=function(){};
|
|
g.p.NA=function(A){gJS(this.FD.get())&&km(this.W,A*1E3,!1);gj(this.vn)&&yc(this.vn,A*1E3,!1)};
|
|
g.p.gb=function(){};
|
|
g.p.qN=function(){this.vn.eI("active_view_measurable")};
|
|
g.p.IM=function(){this.vn.eI("active_view_viewable")};
|
|
g.p.HQ=function(){this.vn.eI("active_view_fully_viewable_audible_half_duration")};
|
|
g.p.WQ=function(){this.vn.eI("audio_measurable")};
|
|
g.p.NN=function(){this.vn.eI("audio_audible")};g.G(ld,KU);g.p=ld.prototype;g.p.init=function(){KU.prototype.init.call(this);var A=PF(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),L={adsClientData:this.layout.Aw};this.N.push(new rk(A,this.layout.layoutId,PF(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),L,!0))};
|
|
g.p.fl=function(){this.U||this.Mp.get().resumeVideo(1)};
|
|
g.p.startRendering=function(A){KU.prototype.startRendering.call(this,A);J3(this.Mp.get(),"ad-showing");this.callback.lq(this.slot,A);this.D.Yr=this};
|
|
g.p.D1=function(A,L){KU.prototype.D1.call(this,A,L);Sp(this.Mp.get(),"ad-showing");qe(this.D,this)};
|
|
g.p.dI=function(A){switch(A){case "ad-info-icon-button":(this.U=this.Mp.get().l5(1))||this.Mp.get().pauseVideo();break;case "visit-advertiser":this.Mp.get().pauseVideo()}};
|
|
g.p.l1=function(){KU.prototype.l1.call(this)};g.G(mD,Jr);g.G(Qc,KU);g.p=Qc.prototype;g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(L,B,f,K,V){return new mD(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(){};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};
|
|
g.p.dI=function(){};g.G(CU,Jr);g.G(id,KU);id.prototype.init=function(){KU.prototype.init.call(this);this.N.push(new CU(g.y(this.layout.renderingContent,yQ),this.layout.layoutId,{adsClientData:this.layout.Aw}))};
|
|
id.prototype.dI=function(){pS(this.U.get(),this.D)&&S9(this.j4.get(),3)};
|
|
id.prototype.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A)};
|
|
id.prototype.l1=function(){KU.prototype.l1.call(this)};g.G($m,Jr);g.G(Xw,KU);Xw.prototype.init=function(){KU.prototype.init.call(this);var A=g.y(this.layout.renderingContent,nU)||PF(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),L=Vc(this.vn);this.N.push(new $m(A,L,this.layout.layoutId,{adsClientData:this.layout.Aw},!0,!0))};
|
|
Xw.prototype.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A)};
|
|
Xw.prototype.dI=function(A,L){if(L===this.layout.layoutId)switch(A){case "skip-button":var B;(A=(B=PF(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&Wi(A,this.LY(),this.layout)}};
|
|
Xw.prototype.l1=function(){KU.prototype.l1.call(this)};Eb.prototype.build=function(A,L,B,f){if(Ob(f,{qQ:["metadata_type_ad_break_response_data"],o8:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new N86(A,B,f,this.W,this.V,this.N);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.G(Xbk,Jr);g.G(c$,KU);g.p=c$.prototype;g.p.dI=function(A,L){RE("ads-engagement-panel",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)};
|
|
g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,a2),this.callback,"metadata_type_ads_engagement_panel_renderer",function(L,B,f,K,V){return new Xbk(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(A,L){L.layoutId===this.layout.layoutId?this.vn.eI("impression"):this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(MS,KU);g.p=MS.prototype;g.p.dI=function(A,L){RE("top-banner-image-text-icon-buttoned",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)};
|
|
g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,LJ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(L,B,f,K,V){return new mD(L,B,f,K,V)},this.N);
|
|
KU.prototype.startRendering.call(this,A)};
|
|
g.p.lq=function(A,L){this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};cvk.prototype.build=function(A,L,B,f){if(Ob(f,OEy())||g.y(f.renderingContent,a2)!==void 0)return new c$(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,hk7())||g.y(f.renderingContent,zA)!==void 0)return new H$(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,tBy())||g.y(f.renderingContent,uh)!==void 0)return new hE(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,T8k()))return new bd(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,Q98()))return new TY(A,B,f,this.IA,this.j4,this.wf,
|
|
this.Fr,this.N);if(Ob(f,HEe())||g.y(f.renderingContent,Ae)!==void 0)return new rj(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,EfD())||g.y(f.renderingContent,LJ)!==void 0)return new MS(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,iE0()))return new Qc(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,rvk())||g.y(f.renderingContent,oG)!==void 0)return new GY(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+
|
|
xX(f.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};MBD.prototype.build=function(A,L,B,f){if(Ob(f,{qQ:["metadata_type_linked_player_bytes_layout_id"],o8:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new id(A,B,f,this.IA,this.j4,this.N);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.p=YFE.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.init=function(){};
|
|
g.p.release=function(){};
|
|
g.p.startRendering=function(A){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.lq(this.slot,A),this.vn.eI("impression"),xF(this.Xy,A))};
|
|
g.p.D1=function(A,L){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.CD(this.slot,A,L)};g.p=WLy.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.init=function(){};
|
|
g.p.release=function(){};
|
|
g.p.startRendering=function(A){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.lq(this.slot,A),this.vn.eI("impression"),xF(this.Xy,A))};
|
|
g.p.D1=function(A,L){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.CD(this.slot,A,L)};Ym.prototype.build=function(A,L,B,f){if(!this.FD.get().S.K().J("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Ob(f,U2C()))return new YFE(A,B,f,this.j4,this.Xy)}else if(Ob(f,{qQ:[],o8:["LAYOUT_TYPE_FORECASTING"]}))return new WLy(A,B,f,this.j4,this.Xy);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.G(Pf7,Jr);g.G(Ub,KU);g.p=Ub.prototype;g.p.init=function(){KU.prototype.init.call(this);var A=g.y(this.layout.renderingContent,e9)||PF(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),L={adsClientData:this.layout.Aw};this.N.push(new Pf7(A,PF(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,L))};
|
|
g.p.fl=function(){this.U||this.Mp.get().resumeVideo(2)};
|
|
g.p.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A);this.D.Yr=this};
|
|
g.p.D1=function(A,L){KU.prototype.D1.call(this,A,L);qe(this.D,this)};
|
|
g.p.dI=function(A,L){if(!XW(this.FD.get(),"stop_handling_click_for_non_rendering_overlay_layout")||L===this.layout.layoutId){if(pS(this.T.get(),this.X))switch(A){case "visit-advertiser-link":S9(this.j4.get(),3)}switch(A){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.Mp.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.Mp.get().l5(2))||this.Mp.get().pauseVideo();break;
|
|
case "visit-advertiser-link":this.Mp.get().pauseVideo();x2D(this).bj();break;case "skip-button":if(A=x2D(this),this.layout.renderingContent&&!YX(this.layout.clientMetadata,"metadata_type_dai")||!A||!A.UB){var B;(A=(B=PF(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&Wi(A,this.LY(),this.layout)}else Dh("Requesting to skip by LegacyPlayerBytes when components enabled"),A.vc(this.LY(),this.layout)}}};
|
|
g.p.l1=function(){KU.prototype.l1.call(this)};g.G(W$,KU);g.p=W$.prototype;g.p.init=function(){KU.prototype.init.call(this);var A=g.y(this.layout.renderingContent,xm)||PF(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),L={adsClientData:this.layout.Aw},B;(B=!!this.layout.renderingContent)||(B=v$(this),B=!(B&&B.UB));this.N.push(new rk(A,this.layout.layoutId,PF(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),L,B))};
|
|
g.p.fl=function(){this.U||this.Mp.get().resumeVideo(2)};
|
|
g.p.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A);this.D.Yr=this};
|
|
g.p.D1=function(A,L){KU.prototype.D1.call(this,A,L);qe(this.D,this)};
|
|
g.p.dI=function(A,L){if(!this.FD||!XW(this.FD.get(),"stop_handling_click_for_non_rendering_overlay_layout")||L===this.layout.layoutId){if(pS(this.T.get(),this.X))switch(A){case "visit-advertiser":S9(this.j4.get(),3)}switch(A){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.Mp.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.Mp.get().l5(2))||this.Mp.get().pauseVideo();break;
|
|
case "visit-advertiser":this.Mp.get().pauseVideo();v$(this).bj();break;case "skip-button":if(A=v$(this),this.layout.renderingContent&&!YX(this.layout.clientMetadata,"metadata_type_dai")||!A||!A.UB){var B;(A=(B=PF(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&Wi(A,this.LY(),this.layout)}else Dh("Requesting to skip by LegacyPlayerBytes"),A.vc(this.LY(),this.layout)}}};
|
|
g.p.l1=function(){KU.prototype.l1.call(this)};g.G(nfL,Jr);g.G(qS,KU);g.p=qS.prototype;g.p.startRendering=function(A){var L=this;fU(this.W,A,function(){L.N.push(new nfL(PF(L.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),A.layoutId,A.Aw));L.QV();L.callback.lq(L.slot,A);g.x(uF(L.Mp.get(),1),512)&&L.callback.o0(L.LY(),L.dT(),new vF("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
|
|
g.p.C9=function(){};
|
|
g.p.H9=function(A){if(A.state.isError()){var L;this.callback.o0(this.LY(),this.dT(),new vF("A player error happened during adNotify",{playerErrorCode:(L=A.state.nh)==null?void 0:L.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
|
|
g.p.onFullscreenToggled=function(){};
|
|
g.p.mF=function(){};
|
|
g.p.iH=function(){};
|
|
g.p.T_=function(){};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};
|
|
g.p.dI=function(){};g.G(uPy,Jr);g.G(P$,KU);P$.prototype.init=function(){KU.prototype.init.call(this);var A=g.y(this.layout.renderingContent,zY),L=Vc(this.vn);this.N.push(new uPy(A,L,this.layout.layoutId,{adsClientData:this.layout.Aw}))};
|
|
P$.prototype.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A)};
|
|
P$.prototype.dI=function(A,L){if(L===this.layout.layoutId)switch(A){case "skip-button":var B;(A=(B=PF(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&Wi(A,this.LY(),this.layout)}};
|
|
P$.prototype.l1=function(){KU.prototype.l1.call(this)};aOS.prototype.build=function(A,L,B,f){if(A=ud(A,B,f,this.IA,this.Mp,this.j4,this.W,this.N,this.FD))return A;throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.p=L$.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.init=function(){this.Mp.get().addListener(this);this.Mp.get().Sz.push(this);var A=Ar8(this),L=g.y(this.layout.renderingContent,d9),B=L?NS(L.pings):PF(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");L=L?pbQ(L.pings):PF(this.layout.clientMetadata,"metadata_type_active_view_identifier");ZT(this.layout.Vf)&&aH(this.Fr.get(),this.layout.layoutId,{nt:B,Ag:A,listener:this,Lb:L})};
|
|
g.p.release=function(){this.Mp.get().removeListener(this);e6C(this.Mp.get(),this);ZT(this.layout.Vf)&&A3(this.Fr.get(),this.layout.layoutId)};
|
|
g.p.startRendering=function(A){this.callback.lq(this.slot,A)};
|
|
g.p.D1=function(A,L){oT(this,"abandon");this.callback.CD(this.slot,A,L)};
|
|
g.p.jO=function(A){switch(A.id){case "part2viewed":this.vn.eI("start");this.vn.eI("impression");break;case "videoplaytime25":this.vn.eI("first_quartile");break;case "videoplaytime50":this.vn.eI("midpoint");break;case "videoplaytime75":this.vn.eI("third_quartile");break;case "videoplaytime100":oT(this,"complete");gj(this.vn)&&yc(this.vn,Infinity,!0);GfE(this.FD.get())&&km(this.W,Infinity,!0);break;case "engagedview":gj(this.vn)||this.vn.eI("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
|
|
default:Dh("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.T_=function(){};
|
|
g.p.mF=function(){};
|
|
g.p.iH=function(){};
|
|
g.p.onFullscreenToggled=function(){};
|
|
g.p.H9=function(A){this.N||(g.wk(A,4)&&!g.wk(A,2)?pU(this.vn,"pause"):IA(A,4)<0&&!(IA(A,2)<0)&&pU(this.vn,"resume"))};
|
|
g.p.C9=function(){};
|
|
g.p.NA=function(A){GfE(this.FD.get())&&km(this.W,A*1E3,!1);gj(this.vn)&&yc(this.vn,A*1E3,!1)};
|
|
g.p.gb=function(){oT(this,"swipe")};
|
|
g.p.qN=function(){this.vn.eI("active_view_measurable")};
|
|
g.p.IM=function(){this.vn.eI("active_view_viewable")};
|
|
g.p.HQ=function(){this.vn.eI("active_view_fully_viewable_audible_half_duration")};
|
|
g.p.WQ=function(){this.vn.eI("audio_measurable")};
|
|
g.p.NN=function(){this.vn.eI("audio_audible")};L18.prototype.build=function(A,L,B,f){if(B.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.y(f.renderingContent,d9)!==void 0)return new L$(A,B,f,this.Mp,this.j4,this.gi,this.FD,this.Fr,this.hF);L=["metadata_type_ad_placement_config"];for(var K=g.m(dj()),V=K.next();!V.done;V=K.next())L.push(V.value);if(Ob(f,{qQ:L,o8:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return B.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new L$(A,B,f,this.Mp,this.j4,this.gi,this.FD,this.Fr,this.hF):new CfS(A,B,f,
|
|
this.Mp,this.j4,this.gi,this.FD,this.Fr);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var pk9,$u;
|
|
pk9={REF:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",vRx:"AUTHENTICATION_MALFORMED",a5T:"AUTHENTICATION_MISSING",O9j:"BAD_REQUEST",WXD:"CAST_SESSION_DEVICE_MISMATCHED",HQx:"CAST_SESSION_VIDEO_MISMATCHED",q7L:"CAST_TOKEN_EXPIRED",IFx:"CAST_TOKEN_FAILED",lFj:"CAST_TOKEN_MALFORMED",k_F:"CGI_PARAMS_MALFORMED",VOT:"CGI_PARAMS_MISSING",CHD:"DEVICE_FALLBACK",IJ4:"GENERIC_WITH_LINK_AND_CPN",lJs:"ERROR_HDCP",kMF:"LICENSE",mzL:"VIDEO_UNAVAILABLE",ZXD:"FORMAT_UNAVAILABLE",JOx:"GEO_FAILURE",
|
|
ucr:"HTML5_AUDIO_RENDERER_ERROR",pB1:"GENERIC_WITHOUT_LINK",ePp:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",QUn:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",vfr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",aJx:"HTML5_SPS_UMP_STATUS_REJECTED",N$x:"INVALID_DRM_MESSAGE",aZ1:"PURCHASE_NOT_FOUND",KJ1:"PURCHASE_REFUNDED",ZlF:"RENTAL_EXPIRED",j$1:"RETRYABLE_ERROR",EEn:"SERVER_ERROR",Q$s:"SIGNATURE_EXPIRED",cj1:"STOPPED_BY_ANOTHER_PLAYBACK",BNL:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Pfs:"STREAMING_NOT_ALLOWED",
|
|
LWs:"STREAM_LICENSE_NOT_FOUND",loj:"TOO_MANY_REQUESTS",kfx:"TOO_MANY_REQUESTS_WITH_LINK",Vr4:"TOO_MANY_STREAMS_PER_ENTITLEMENT",mnD:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",AiT:"VIDEO_FORBIDDEN",hQ1:"VIDEO_NOT_FOUND",dP1:"BROWSER_OR_EXTENSION_ERROR"};$u={};
|
|
g.XB=($u.ALREADY_PINNED_ON_A_DEVICE="Questo video \u00e8 gi\u00e0 stato scaricato sul numero massimo di dispositivi consentito dal titolare del copyright. Prima di poter riprodurre il video qui, devi svincolarlo da un altro dispositivo.",$u.DEVICE_FALLBACK="Spiacenti, il video non \u00e8 disponibile su questo dispositivo.",$u.GENERIC_WITH_LINK_AND_CPN="Si \u00e8 verificato un errore. Riprova pi\u00f9 tardi. (ID riproduzione: $CPN) $BEGIN_LINKUlteriori informazioni$END_LINK",$u.LICENSE="Spiacenti, si \u00e8 verificato un errore per la licenza di questo video.\n",
|
|
$u.VIDEO_UNAVAILABLE="Video non disponibile",$u.FORMAT_UNAVAILABLE="Questo video non \u00e8 disponibile nella qualit\u00e0 selezionata. Riprova pi\u00f9 tardi.",$u.GEO_FAILURE="Questo video non \u00e8 disponibile nel tuo Paese.",$u.HTML5_AUDIO_RENDERER_ERROR="Errore di rendering dell'audio. Riavvia il computer.",$u.GENERIC_WITHOUT_LINK="Si \u00e8 verificato un errore. Riprova pi\u00f9 tardi.",$u.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="Questo formato video non \u00e8 supportato.",$u.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK=
|
|
"Il browser attualmente non riconosce nessuno dei formati video disponibili. $BEGIN_LINKFai clic qui per consultare le nostre domande frequenti sul video HTML5.$END_LINK",$u.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Il tuo browser non pu\u00f2 riprodurre questo video. $BEGIN_LINKScopri di pi\u00f9$END_LINK",$u.HTML5_SPS_UMP_STATUS_REJECTED="Si \u00e8 verificato un problema. Aggiorna o riprova pi\u00f9 tardi. $BEGIN_LINKScopri di pi\u00f9$END_LINK",$u.INVALID_DRM_MESSAGE="Il messaggio specifico del sistema DRM non \u00e8 valido.",
|
|
$u.PURCHASE_NOT_FOUND="Questo video richiede il pagamento.",$u.PURCHASE_REFUNDED="L'acquisto di questo video \u00e8 stato rimborsato.",$u.RENTAL_EXPIRED="Il noleggio di questo video \u00e8 scaduto.",$u.CAST_SESSION_DEVICE_MISMATCHED="Il dispositivo della sessione di trasmissione non corrisponde a quello richiesto.",$u.CAST_SESSION_VIDEO_MISMATCHED="Il video della sessione di trasmissione non corrisponde a quello richiesto.",$u.CAST_TOKEN_FAILED="Sessione di trasmissione non disponibile. Aggiorna o riprova pi\u00f9 tardi.",
|
|
$u.CAST_TOKEN_EXPIRED="La sessione di trasmissione \u00e8 scaduta. Aggiorna.",$u.CAST_TOKEN_MALFORMED="Sessione di trasmissione non valida. Aggiorna o riprova pi\u00f9 tardi.",$u.SERVER_ERROR="Si \u00e8 verificato un errore interno del server. Riprova pi\u00f9 tardi.",$u.STOPPED_BY_ANOTHER_PLAYBACK="Il tuo account sta riproducendo questo video in un'altra posizione. Ricarica questa pagina per riprendere la visione.",$u.STREAM_LICENSE_NOT_FOUND="Riproduzione video interrotta. Riprova.",$u.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED=
|
|
"Sono stati utilizzati troppi dispositivi/indirizzi IP in 24 ore.",$u.STREAMING_NOT_ALLOWED="Riproduzione non consentita perch\u00e9 il video \u00e8 vincolato a un altro dispositivo.",$u.RETRYABLE_ERROR="Si \u00e8 verificato un errore temporaneo del server. Riprova pi\u00f9 tardi.",$u.TOO_MANY_REQUESTS="Accedi per guardare questo video.",$u.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKFai clic qui$END_LINK per guardare questo video su YouTube.",$u.TOO_MANY_STREAMS_PER_USER="Riproduzione interrotta perch\u00e9 sono in riproduzione troppi video appartenenti allo stesso account.",
|
|
$u.TOO_MANY_STREAMS_PER_ENTITLEMENT="Riproduzione interrotta perch\u00e9 il video \u00e8 stato riprodotto su troppi dispositivi.",$u.UNSUPPORTED_DEVICE="Riproduzione non supportata su questo dispositivo.",$u.VIDEO_FORBIDDEN="L'accesso a questo video non \u00e8 consentito.",$u.VIDEO_NOT_FOUND="Impossibile trovare questo video.",$u.BROWSER_OR_EXTENSION_ERROR="Si \u00e8 verificato un problema. Aggiorna o riprova pi\u00f9 tardi. $BEGIN_LINKScopri di pi\u00f9$END_LINK",$u);var yOw;var j8W=g.fa(),ggR=j8W.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!ggR||ggR.length<2)yOw=void 0;else{var GkX=j8W.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);yOw=GkX&&GkX.length===6?Number(GkX[5].replace("_",".")):0}var $c=yOw,m5=$c>=0;g.G(g.dN,Qz);g.dN.prototype.Y=function(A,L,B,f,K){return Qz.prototype.Y.call(this,A,L,B,f,K)};var XQ={},UI=(XQ.FAIRPLAY="fairplay",XQ.PLAYREADY="playready",XQ.WIDEVINE="widevine",XQ.CLEARKEY=null,XQ.FLASHACCESS=null,XQ.UNKNOWN=null,XQ.WIDEVINE_CLASSIC=null,XQ);IT.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Oy={},a4=(Oy.WIDTH={name:"width",video:!0,valid:640,cB:99999},Oy.HEIGHT={name:"height",video:!0,valid:360,cB:99999},Oy.FRAMERATE={name:"framerate",video:!0,valid:30,cB:9999},Oy.BITRATE={name:"bitrate",video:!0,valid:3E5,cB:2E9},Oy.EOTF={name:"eotf",video:!0,valid:"bt709",cB:"catavision"},Oy.CHANNELS={name:"channels",video:!1,valid:2,cB:99},Oy.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",cB:"invalidformat"},Oy.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
|
|
cB:"nope"},Oy.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",cB:"av99.0.05M.08"},Oy.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",cB:"invalid"},Oy.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",cB:"false"},Oy);var rO9=["h","H"],s8I=["9","("],HxI=["9h","(h"],hFK=["8","*"],bxt=["a","A"],tZw=["o","O"],kkd=["m","M"],Tof=["mac3","MAC3"],lww=["meac3","MEAC3"],Ey={},zoE=(Ey.h=rO9,Ey.H=rO9,Ey["9"]=s8I,Ey["("]=s8I,Ey["9h"]=HxI,Ey["(h"]=HxI,Ey["8"]=hFK,Ey["*"]=hFK,Ey.a=bxt,Ey.A=bxt,Ey.o=tZw,Ey.O=tZw,Ey.m=kkd,Ey.M=kkd,Ey.mac3=Tof,Ey.MAC3=Tof,Ey.meac3=lww,Ey.MEAC3=lww,Ey),mVt=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),YZS=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var u={},Qu=(u["0"]="f",u["160"]="h",u["133"]="h",u["134"]="h",u["135"]="h",u["136"]="h",u["137"]="h",u["264"]="h",u["266"]="h",u["138"]="h",u["298"]="h",u["299"]="h",u["304"]="h",u["305"]="h",u["214"]="h",u["216"]="h",u["374"]="h",u["375"]="h",u["140"]="a",u["141"]="a",u["327"]="sa",u["258"]="m",u["380"]="mac3",u["328"]="meac3",u["161"]="H",u["142"]="H",u["143"]="H",u["144"]="H",u["222"]="H",u["223"]="H",u["145"]="H",u["224"]="H",u["225"]="H",u["146"]="H",u["226"]="H",u["227"]="H",u["147"]="H",u["384"]=
|
|
"H",u["376"]="H",u["385"]="H",u["377"]="H",u["149"]="A",u["261"]="M",u["381"]="MAC3",u["329"]="MEAC3",u["598"]="9",u["278"]="9",u["242"]="9",u["243"]="9",u["244"]="9",u["775"]="9",u["776"]="9",u["777"]="9",u["778"]="9",u["779"]="9",u["780"]="9",u["781"]="9",u["782"]="9",u["783"]="9",u["247"]="9",u["248"]="9",u["353"]="9",u["355"]="9",u["356"]="9",u["271"]="9",u["577"]="9",u["313"]="9",u["579"]="9",u["272"]="9",u["302"]="9",u["303"]="9",u["407"]="9",u["408"]="9",u["308"]="9",u["315"]="9",u["330"]=
|
|
"9h",u["331"]="9h",u["332"]="9h",u["333"]="9h",u["334"]="9h",u["335"]="9h",u["336"]="9h",u["337"]="9h",u["338"]="so",u["600"]="o",u["250"]="o",u["251"]="o",u["774"]="o",u["194"]="*",u["195"]="*",u["220"]="*",u["221"]="*",u["196"]="*",u["197"]="*",u["279"]="(",u["280"]="(",u["317"]="(",u["318"]="(",u["273"]="(",u["274"]="(",u["357"]="(",u["358"]="(",u["275"]="(",u["359"]="(",u["360"]="(",u["276"]="(",u["583"]="(",u["584"]="(",u["314"]="(",u["585"]="(",u["561"]="(",u["277"]="(",u["361"]="(h",u["362"]=
|
|
"(h",u["363"]="(h",u["364"]="(h",u["365"]="(h",u["366"]="(h",u["591"]="(h",u["592"]="(h",u["367"]="(h",u["586"]="(h",u["587"]="(h",u["368"]="(h",u["588"]="(h",u["562"]="(h",u["409"]="(",u["410"]="(",u["411"]="(",u["412"]="(",u["557"]="(",u["558"]="(",u["394"]="1",u["395"]="1",u["396"]="1",u["397"]="1",u["398"]="1",u["399"]="1",u["720"]="1",u["721"]="1",u["400"]="1",u["401"]="1",u["571"]="1",u["402"]="1",u["694"]="1h",u["695"]="1h",u["696"]="1h",u["697"]="1h",u["698"]="1h",u["699"]="1h",u["700"]="1h",
|
|
u["701"]="1h",u["702"]="1h",u["703"]="1h",u["386"]="3",u["387"]="w",u["406"]="6",u["787"]="1",u["788"]="1",u["548"]="1e",u["549"]="1e",u["550"]="1e",u["551"]="1e",u["809"]="1e",u["810"]="1e",u["552"]="1e",u["811"]="1e",u["812"]="1e",u["553"]="1e",u["813"]="1e",u["814"]="1e",u["554"]="1e",u["815"]="1e",u["816"]="1e",u["555"]="1e",u["817"]="1e",u["818"]="1e",u["572"]="1e",u["556"]="1e",u["645"]="(",u["646"]="(",u["647"]="(",u["648"]="(",u["649"]="(",u["650"]="(",u["651"]="(",u["652"]="(",u["653"]="(",
|
|
u["654"]="(",u["655"]="(",u["656"]="(",u["657"]="(",u["658"]="(",u["659"]="(",u["660"]="(",u["661"]="(",u["662"]="(",u["663"]="(",u["664"]="(",u["665"]="(",u["666"]="(",u["667"]="(",u["668"]="(",u["669"]="(",u["670"]="(",u["671"]="(",u["672"]="(",u["673"]="(",u["674"]="(h",u["675"]="(h",u["676"]="(h",u["677"]="(h",u["678"]="(h",u["679"]="(h",u["680"]="(h",u["681"]="(h",u["682"]="(h",u["683"]="(h",u["684"]="(h",u["685"]="(h",u["686"]="(h",u["687"]="(h",u["688"]="A",u["689"]="A",u["690"]="A",u["691"]=
|
|
"MEAC3",u["773"]="i",u["806"]="I",u["805"]="I",u["829"]="9",u["830"]="9",u["831"]="9",u["832"]="9",u["833"]="9",u["834"]="9",u["835"]="9",u["836"]="9",u["892"]="9",u["893"]="9",u["837"]="9",u["838"]="9",u["839"]="9",u["840"]="9",u["841"]="(",u["842"]="(",u["843"]="(",u["844"]="(",u["845"]="(",u["846"]="(",u["847"]="(",u["848"]="(",u["894"]="(",u["895"]="(",u["849"]="(",u["850"]="(",u["851"]="(",u["852"]="(",u["865"]="9",u["866"]="9",u["867"]="9",u["868"]="9",u["869"]="9",u["870"]="9",u["871"]="9",
|
|
u["872"]="9",u["896"]="9",u["897"]="9",u["873"]="9",u["874"]="9",u["875"]="9",u["876"]="9",u["877"]="(",u["878"]="(",u["879"]="(",u["880"]="(",u["881"]="(",u["882"]="(",u["883"]="(",u["884"]="(",u["898"]="(",u["899"]="(",u["885"]="(",u["886"]="(",u["887"]="(",u["888"]="(",u["900"]="2",u["901"]="2",u["902"]="2",u["903"]="2",u["904"]="2",u["905"]="2",u["906"]="2",u["907"]="2",u["908"]="2",u);var c0={},TN0=(c0.STEREO_LAYOUT_UNKNOWN=0,c0.STEREO_LAYOUT_LEFT_RIGHT=1,c0.STEREO_LAYOUT_TOP_BOTTOM=2,c0);var JGL={mor:0,P51:124,Bkx:144,NNx:220,dEs:240,WWT:340,yjj:360,Hlr:480,Iks:588,q0L:608,lks:720,kBD:740,oCs:1080,Oar:1100,c84:1440,LJF:2160,VJp:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED",
|
|
1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var MZ,cZ,Yu,mbQ;MZ={};g.ka=(MZ.auto=0,MZ.tiny=144,MZ.light=144,MZ.small=240,MZ.medium=360,MZ.large=480,MZ.hd720=720,MZ.hd1080=1080,MZ.hd1440=1440,MZ.hd2160=2160,MZ.hd2880=2880,MZ.highres=4320,MZ);cZ={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Yu={};
|
|
mbQ=(Yu.QUALITY_ORDINAL_UNKNOWN=0,Yu.QUALITY_ORDINAL_144P_SAVER=124,Yu.QUALITY_ORDINAL_144P=144,Yu.QUALITY_ORDINAL_240P_SAVER=220,Yu.QUALITY_ORDINAL_240P=240,Yu.QUALITY_ORDINAL_360P_SAVER=340,Yu.QUALITY_ORDINAL_360P=360,Yu.QUALITY_ORDINAL_480P=480,Yu.QUALITY_ORDINAL_608P_SAVER=588,Yu.QUALITY_ORDINAL_608P=608,Yu.QUALITY_ORDINAL_720P=720,Yu.QUALITY_ORDINAL_720P_ENHANCED=740,Yu.QUALITY_ORDINAL_1080P=1080,Yu.QUALITY_ORDINAL_1080P_ENHANCED=1100,Yu.QUALITY_ORDINAL_1440P=1440,Yu.QUALITY_ORDINAL_2160P=2160,
|
|
Yu.QUALITY_ORDINAL_HIGHRES=9999,Yu);var lQ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Tv.prototype.isHdr=function(){return this.N==="smpte2084"||this.N==="arib-std-b67"};C$.prototype.qU=function(){return this.containerType===2};
|
|
C$.prototype.isEncrypted=function(){return!!this.Zj};
|
|
C$.prototype.NF=function(){return!!this.audio};
|
|
C$.prototype.WV=function(){return!!this.video};
|
|
var X2=!1;g.G(KW,g.SN);g.p=KW.prototype;g.p.appendBuffer=function(A,L,B){if(this.Py.Gd()!==this.appendWindowStart+this.start||this.Py.S2()!==this.appendWindowEnd+this.start||this.Py.pY()!==this.timestampOffset+this.start)this.Py.supports(1),this.Py.LN(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Py.j8(this.timestampOffset+this.start);this.Py.appendBuffer(A,L,B)};
|
|
g.p.abort=function(){this.Py.abort()};
|
|
g.p.remove=function(A,L){this.Py.remove(A+this.start,L+this.start)};
|
|
g.p.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
|
|
g.p.clear=function(){this.Py.clear()};
|
|
g.p.LN=function(A,L){this.appendWindowStart=A;this.appendWindowEnd=L};
|
|
g.p.Nk=function(){return this.timestampOffset+this.start};
|
|
g.p.Gd=function(){return this.appendWindowStart};
|
|
g.p.S2=function(){return this.appendWindowEnd};
|
|
g.p.j8=function(A){this.timestampOffset=A};
|
|
g.p.pY=function(){return this.timestampOffset};
|
|
g.p.Hk=function(A){A=this.Py.Hk(A===void 0?!1:A);return fW(A,this.start,this.end)};
|
|
g.p.Nz=function(){return this.Py.Nz()};
|
|
g.p.Ob=function(){return this.Py.Ob()};
|
|
g.p.PF=function(){return this.Py.PF()};
|
|
g.p.pE=function(){return this.Py.pE()};
|
|
g.p.vG=function(){this.Py.vG()};
|
|
g.p.Aq=function(A){return this.Py.Aq(A)};
|
|
g.p.Ib=function(){return this.Py.Ib()};
|
|
g.p.z4=function(){return this.Py.z4()};
|
|
g.p.BP=function(A,L,B){this.Py.BP(A,L,B)};
|
|
g.p.PP=function(A,L,B){this.Py.PP(A,L,B)};
|
|
g.p.nK=function(A,L){return this.Py.nK(A,L)};
|
|
g.p.supports=function(A){return this.Py.supports(A)};
|
|
g.p.A5=function(){return this.Py.A5()};
|
|
g.p.isView=function(){return!0};
|
|
g.p.Zn=function(){return this.Py.Zn()?this.isActive:!1};
|
|
g.p.isLocked=function(){return this.s1&&!this.isActive};
|
|
g.p.Ov=function(A){A=this.Py.Ov(A);A.vw=this.start+"-"+this.end;return A};
|
|
g.p.Eb=function(){return this.Py.Eb()};
|
|
g.p.yD=function(){return this.Py.yD()};
|
|
g.p.ox=function(){return this.Py.ox()};
|
|
g.p.l1=function(){this.Py.P4(this.fz);g.SN.prototype.l1.call(this)};var qL=!1;g.G(JA,g.SN);g.p=JA.prototype;g.p.appendBuffer=function(A,L,B){this.bR=!1;B&&(this.BT=B);if(A.length){var f;((f=this.uC)==null?0:f.appendBuffer)?this.uC.appendBuffer(A):this.uC?this.uC.append(A):this.Sa&&this.Sa.webkitSourceAppend(this.id,A)}L&&(L.isEncrypted()&&(this.Ul=this.BT),L.type===3&&(this.vk=L),this.cT.push(L.Dx()),this.cT.length>4&&this.cT.shift());this.Vy&&(this.Vy.length>=2||A.length>1048576?delete this.Vy:this.Vy.push(A))};
|
|
g.p.abort=function(){try{this.uC?this.uC.abort():this.Sa&&this.Sa.webkitSourceAbort(this.id)}catch(L){if(LgD){var A=new g.iL("Error while abort the source buffer: "+L.name+", "+L.message);g.mL(A)}}this.BT=this.vk=null};
|
|
g.p.remove=function(A,L,B){this.bR=!1;var f;if((f=this.uC)==null?0:f.remove)B&&B({b:zv(this.Hk()),s:A,e:L}),this.uC.remove(A,L)};
|
|
g.p.removeAll=function(){this.remove(this.Gd(),this.S2())};
|
|
g.p.clear=function(){this.PF()||(this.abort(),this.removeAll(),this.Ul=this.BT=this.vk=null,this.appendWindowStart=this.timestampOffset=0,this.WH=n$([],[]),this.bR=!1,this.Vy=VV?[]:void 0,this.Y5=!0)};
|
|
g.p.Gd=function(){if(qL&&this.WV)return this.appendWindowStart;var A;return((A=this.uC)==null?void 0:A.appendWindowStart)||0};
|
|
g.p.S2=function(){var A;return((A=this.uC)==null?void 0:A.appendWindowEnd)||0};
|
|
g.p.LN=function(A,L){this.uC&&(qL&&this.WV?(this.appendWindowStart=A,this.uC.appendWindowEnd=L):A>this.Gd()?(this.uC.appendWindowEnd=L,this.uC.appendWindowStart=A):(this.uC.appendWindowStart=A,this.uC.appendWindowEnd=L))};
|
|
g.p.Nk=function(){return this.timestampOffset};
|
|
g.p.j8=function(A){qL?this.timestampOffset=A:this.supports(1)&&(this.uC.timestampOffset=A)};
|
|
g.p.pY=function(){return qL?this.timestampOffset:this.supports(1)?this.uC.timestampOffset:0};
|
|
g.p.Hk=function(A){if(A===void 0?0:A)return this.bR||this.Nz()||(this.WH=this.Hk(!1),this.bR=!0),this.WH;try{return this.uC?this.uC.buffered:this.Sa?this.Sa.webkitSourceBuffered(this.id):n$([0],[Infinity])}catch(L){return n$([],[])}};
|
|
g.p.Nz=function(){var A;return((A=this.uC)==null?void 0:A.updating)||!1};
|
|
g.p.PF=function(){return this.Y5};
|
|
g.p.pE=function(){return!this.Y5&&this.Nz()};
|
|
g.p.vG=function(){this.Y5=!1};
|
|
g.p.Aq=function(A){var L=A==null?void 0:A.Bn;A=A==null?void 0:A.containerType;return!L&&!A||L===this.Bn&&A===this.containerType};
|
|
g.p.Ib=function(){return this.BT};
|
|
g.p.z4=function(){return this.Ul};
|
|
g.p.nK=function(A,L){return this.containerType!==A||this.Bn!==L};
|
|
g.p.BP=function(A,L,B){if(this.containerType!==A||B&&this.nK(A,B))this.supports(4),Se()&&this.uC.changeType(L),B&&(this.Bn=B);this.containerType=A};
|
|
g.p.PP=function(A,L,B){this.containerType&&this.nK(A,L)&&Se()&&this.uC.changeType(B);this.containerType=A;this.Bn=L};
|
|
g.p.A5=function(){return this.vk};
|
|
g.p.isView=function(){return!1};
|
|
g.p.supports=function(A){switch(A){case 1:var L;return((L=this.uC)==null?void 0:L.timestampOffset)!==void 0;case 0:var B;return!((B=this.uC)==null||!B.appendBuffer);case 2:var f;return!((f=this.uC)==null||!f.remove);case 3:var K,V;return!!(((K=this.uC)==null?0:K.addEventListener)&&((V=this.uC)==null?0:V.removeEventListener));case 4:return!(!this.uC||!this.uC.changeType);default:return!1}};
|
|
g.p.Zn=function(){return!this.Nz()};
|
|
g.p.isLocked=function(){return!1};
|
|
g.p.Ov=function(A){A.to=this.pY();A.up=this.Nz();var L,B=((L=this.uC)==null?void 0:L.appendWindowStart)||0,f;L=((f=this.uC)==null?void 0:f.appendWindowEnd)||Infinity;A.aw=B.toFixed(3)+"-"+L.toFixed(3);return A};
|
|
g.p.Ob=function(){var A;return((A=this.uC)==null?void 0:A.writeHead)||0};
|
|
g.p.Eb=function(){for(var A={},L=0;L<this.cT.length;L++)A["s"+L]=this.cT[L];return A};
|
|
g.p.l1=function(){this.supports(3)&&(this.uC.removeEventListener("updateend",this.handler),this.uC.removeEventListener("error",this.handler));g.SN.prototype.l1.call(this)};
|
|
g.p.yD=function(){return this.containerType};
|
|
g.p.ox=function(){return this.Vy};
|
|
var VV=!1,LgD=!1;Rk.prototype.dispose=function(){if(!this.TL()){if(this.N)try{URL.revokeObjectURL(this.wi)}catch(A){}this.W=!0}};
|
|
Rk.prototype.TL=function(){return this.W};
|
|
Rk.prototype.equals=function(A){return A!==null&&A.wi===this.wi};
|
|
Rk.prototype.toString=function(){return"MediaResource {"+this.wi+"}"};g.G(ZL,g.Y);g.p=ZL.prototype;g.p.getDuration=function(){var A;return((A=this.AF)==null?void 0:A.duration)||this.yj};
|
|
g.p.Vr=function(A){try{this.AF?this.AF.duration=A:(this.yj=A,this.Sa.webkitSourceSetDuration(A))}catch(L){}};
|
|
g.p.vV=function(){try{return Ik(this)==="closed"}catch(A){return!0}};
|
|
g.p.Nz=function(){return!!(this.N&&this.N.Nz()||this.W&&this.W.Nz())};
|
|
g.p.EJF=function(){!this.TL()&&Fi(this)&&this.callback&&(this.callback(this),this.callback=null)};
|
|
g.p.zd4=function(){this.dispose()};
|
|
g.p.Ey=function(A){if(DL&&!this.D&&A.PF()&&A.Hk().length===0){var L;this.mediaElement.b5("rms",{l:"mswoue",sr:(L=this.mediaElement.Np)==null?void 0:L.R0()},!1);A.vG();this.PF()||(this.mediaElement.jM=!0,this.mediaElement.setCurrentTime(0))}};
|
|
g.p.clear=function(){pHy(this,function(){});
|
|
var A;(A=this.N)==null||A.clear();var L;(L=this.W)==null||L.clear()};
|
|
g.p.PF=function(){var A,L;return((A=this.W)==null?void 0:A.PF())||((L=this.N)==null?void 0:L.PF())};
|
|
g.p.Aq=function(A,L){return!!this.N&&!!this.W&&this.N.Aq(L)&&this.W.Aq(A)};
|
|
var DL=!1;yV.prototype.then=function(A,L){return this.promise.then(A,L)};
|
|
yV.prototype.resolve=function(A){this.xv(A)};
|
|
yV.prototype.reject=function(A){this.jV(A)};g.G(je,g.Y);g.p=je.prototype;g.p.KU=function(){var A=this.Zk();return A.length<1?NaN:A.end(A.length-1)};
|
|
g.p.g_=function(){return this.wi};
|
|
g.p.activate=function(A){var L="";A&&(GhC(this,A),L=A.wi);if(!this.eE()||L)L&&this.eE()!==L&&(this.aM(L),delete this.V,this.X&&(this.X.reject(),delete this.X),!window.MediaSource&&window.ManagedMediaSource&&this.vl(!(A==null||!A.N))),A&&A.N||this.load(),this.ZM||(this.addEventListener("volumechange",this.pF),this.ZM=!0)};
|
|
g.p.c5=function(){var A=this;!this.V&&NK()&&(this.X?this.X.then(function(){return A.c5()}):this.eE()||(this.V=this.Fy()))};
|
|
g.p.Xv=function(){this.V&&(this.V.dispose(),this.V=void 0)};
|
|
g.p.Fy=function(A,L){if(this.V)if(uQk&&dz(this.V)&&!this.V.Aq(A,L)){var B;this.b5("rms",{l:"megms",sr:(B=this.Np)==null?void 0:B.R0()});this.Xv();this.stopVideo()}else return this.AF=this.V,this.V=void 0,this.AF;A=wH0(this);this.activate(A.V);this.AF=A;this.jM=!1;return A};
|
|
g.p.nH=function(A){this.V=A};
|
|
g.p.playVideo=function(){var A=this;this.isEnded()&&this.seekTo(0);!this.eE()&&this.wi&&(g.mL(Error("playVideo without src")),this.aM(this.wi.wi),this.wi.N||this.load());var L=this.play(),B;if((B=this.Np)==null||!GLw(B)){var f;m5&&($c||0)>=7&&(!L||((f=this.Np)==null?0:f.J("mweb_ios_allow_playback_workaround_when_ready")))&&ory(this,function(){g.gW(function(){gI7(A,A.getCurrentTime(),0)},500)})}return L};
|
|
g.p.b5=function(A,L,B){var f;((f=this.Np)==null?0:f.hw())&&this.Np.Hn(A,L,B===void 0?!1:B)};
|
|
g.p.fH=function(A){this.Np=A};
|
|
g.p.vu=function(){return Bi(this.YJ(),this.getCurrentTime())};
|
|
g.p.seekTo=function(A){this.J2()>0&&(m5&&$c<4&&(A=Math.max(.1,A)),this.setCurrentTime(A))};
|
|
g.p.J3=function(A){if(this.J2()===0||this.hasError())return!1;var L=this.getCurrentTime()>0;if(A>=0){var B=this.Zk();if(B.length||!L)return aT(B,A)}return L};
|
|
g.p.aC=function(){if(!this.V&&this.AF)if(this.AF.T)try{var A;this.b5("rms",{l:"mer",sr:(A=this.Np)==null?void 0:A.R0(),rs:Ik(this.AF)});this.AF.clear();this.nH(this.AF);this.AF=void 0}catch(L){A=new g.iL("Error while clearing Media Source in MediaElement: "+L.name+", "+L.message),g.mL(A),this.stopVideo()}else this.stopVideo()};
|
|
g.p.stopVideo=function(){var A=this;if(!this.V){var L;(L=this.AF)==null||pW(L);if(xZe){if(!this.X){var B=new yV;B.then(void 0,function(){});
|
|
this.X=B;nuS&&this.pause();g.gW(function(){A.X===B&&(gz(A),B.resolve())},200)}}else gz(this)}};
|
|
g.p.rQ=function(){var A=this.YJ();return ok(A)&&this.getDuration()?AA(A,this.getCurrentTime()):0};
|
|
g.p.lB=function(){var A=this.YJ();return ok(A)&&this.getDuration()?A.end(A.length-1):0};
|
|
g.p.Hq=function(){var A=this.getDuration();return A===Infinity?1:A?this.rQ()/A:0};
|
|
g.p.Ov=function(){try{var A=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:zv(this.wN(),",",3),vbu:zv(this.YJ()),vbs:zv(this.Zk()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.J2(),vns:""+this.Yj(),vec:""+this.p8(),vemsg:this.SE(),vvol:""+this.getVolume(),vdom:""+ +this.xU(),vsrc:""+ +!!this.eE(),vw:""+A.width,vh:""+A.height}}catch(L){return{}}};
|
|
g.p.oI=function(){return this.p8()===4};
|
|
g.p.hasError=function(){return this.p8()>0};
|
|
g.p.xT=function(){switch(this.p8()){case 2:return"progressive.net.retryexhausted";case 3:var A=this.SE();return(A==null?0:A.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||ACE&&(A==null?0:A.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
|
|
g.p.addEventListener=function(A,L){this.yj.listen(A,L,!1,this);this.uR(A)};
|
|
g.p.removeEventListener=function(A,L){this.yj.J$(A,L,!1,this)};
|
|
g.p.dispatchEvent=function(A){if(this.X&&A.type==="pause")return!1;if(uQk){var L,B=((L=A.N)==null?void 0:L.timeStamp)||Infinity;L=B>performance.now()?B-Date.now()+performance.now():B;B=this.V||this.AF;if((B==null?0:B.PF())||L<=((B==null?void 0:B.U)||0)){var f;this.b5("rms",{l:"mede",sr:(f=this.Np)==null?void 0:f.R0(),et:A.type});return!1}if(this.jM)return this.b5("rms",{l:"medes",et:A.type}),B&&A.type==="seeking"&&(B.U=performance.now(),this.jM=!1),!1}return this.yj.dispatchEvent(A)};
|
|
g.p.Bb=function(){this.Vj=!1};
|
|
g.p.aj=function(){this.Vj=!0;this.o6(!0)};
|
|
g.p.pF=function(){this.Vj&&!this.ib()&&this.o6(!0)};
|
|
g.p.equals=function(A){return!!A&&A.Zg()===this.Zg()};
|
|
g.p.l1=function(){this.ZM&&this.removeEventListener("volumechange",this.pF);xZe&&gz(this);g.Y.prototype.l1.call(this)};
|
|
var xZe=!1,nuS=!1,uQk=!1,ACE=!1;g.p=g.Gu.prototype;g.p.isPaused=function(){return g.x(this,4)};
|
|
g.p.isPlaying=function(){return g.x(this,8)&&!g.x(this,512)&&!g.x(this,64)&&!g.x(this,2)};
|
|
g.p.isOrWillBePlaying=function(){return g.x(this,8)&&!g.x(this,2)&&!g.x(this,1024)};
|
|
g.p.isCued=function(){return g.x(this,64)&&!g.x(this,8)&&!g.x(this,4)};
|
|
g.p.isBuffering=function(){return g.x(this,1)&&!g.x(this,2)};
|
|
g.p.isError=function(){return g.x(this,128)};
|
|
g.p.isSuspended=function(){return g.x(this,512)};
|
|
g.p.r6=function(){return g.x(this,64)&&g.x(this,4)};
|
|
g.p.toString=function(){return"PSt."+this.state.toString(16)};
|
|
var Uy={},W0=(Uy.BUFFERING="buffering-mode",Uy.CUED="cued-mode",Uy.ENDED="ended-mode",Uy.PAUSED="paused-mode",Uy.PLAYING="playing-mode",Uy.SEEKING="seeking-mode",Uy.UNSTARTED="unstarted-mode",Uy);g.G(ma,g.Y);g.p=ma.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.init=function(){var A=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=PF(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZT(this.layout.Vf)&&aH(this.Fr.get(),this.layout.layoutId,{nt:L,Ag:A,listener:this});Y87(this.j4.get(),this);this.qJ()};
|
|
g.p.P2=function(){};
|
|
g.p.release=function(){ZT(this.layout.Vf)&&A3(this.Fr.get(),this.layout.layoutId);U60(this.j4.get(),this);this.Ah()};
|
|
g.p.MN=function(){};
|
|
g.p.uG=function(){};
|
|
g.p.startRendering=function(A){if(A.layoutId!==this.layout.layoutId){this.qT.o0(this.slot,A,new vF("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");var L=!1}else L=!0;L&&(this.Wy="rendering_start_requested",this.Kl(-1),this.k$(A),this.q$(!1))};
|
|
g.p.lq=function(A,L){if(L.layoutId===this.layout.layoutId){this.Wy="rendering";this.N=this.Mp.get().isMuted()||this.Mp.get().getVolume()===0;this.eI("impression");this.eI("start");if(this.Mp.get().isMuted()){CW(this,"mute");var B;A=((B=l1(this))==null?void 0:B.muteCommands)||[];QL(this.gi.get(),A,this.layout.layoutId)}if(this.Mp.get().isFullscreen()){this.QF("fullscreen");var f;B=((f=l1(this))==null?void 0:f.fullscreenCommands)||[];QL(this.gi.get(),B,this.layout.layoutId)}f=this.j$.get();f.V&&!f.W&&
|
|
(f.D=!1,f.W=!0,f.actionType!=="ad_to_video"&&(OC("pbs",void 0,f.actionType),g.h_("finalize_all_timelines")&&Os1(f.actionType)));this.Kl(1);this.Oi(L);var K;L=((K=l1(this))==null?void 0:K.impressionCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}};
|
|
g.p.Pp=function(A,L,B){this.D={Av:3,zm:A==="load_timeout"?402:400,errorMessage:L.message};this.eI("error");var f;A=((f=l1(this))==null?void 0:f.errorCommands)||[];QL(this.gi.get(),A,this.layout.layoutId);this.qT.o0(this.slot,this.layout,L,B)};
|
|
g.p.iL=function(){if(this.Wy==="rendering"){CW(this,"pause");var A,L=((A=l1(this))==null?void 0:A.pauseCommands)||[];QL(this.gi.get(),L,this.layout.layoutId);this.Kl(2)}};
|
|
g.p.Y7=function(){if(this.Wy==="rendering"){CW(this,"resume");var A,L=((A=l1(this))==null?void 0:A.resumeCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}};
|
|
g.p.eZ=function(A,L){L=L===void 0?!1:L;if(this.Wy==="rendering"){yc(this.vn,A*1E3,L);this.N||yc(this.vn,A*1E3,L===void 0?!1:L);var B=this.Xn();B&&(B/=1E3,(A>=B*.25||L)&&this.eI("first_quartile"),(A>=B*.5||L)&&this.eI("midpoint"),(A>=B*.75||L)&&this.eI("third_quartile"),this.FD.get().S.K().experiments.GL("enable_progress_command_flush_on_kabuki")?km(this.W,A*1E3,L):km(this.W,A*1E3,lhy(this)?L:!1))}};
|
|
g.p.ju=function(){var A;return((A=BV(this.hF.get(),1))==null?void 0:A.clientPlaybackNonce)||""};
|
|
g.p.Rd=function(A,L){A.layoutId!==this.layout.layoutId?this.qT.o0(this.slot,A,new vF("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"):L()};
|
|
g.p.CD=function(A,L,B){if(L.layoutId===this.layout.layoutId)switch(this.Wy="not_rendering",this.layoutExitReason=void 0,(A=B!=="normal"||this.position+1===this.U)&&this.q$(A),this.Xi(B),this.Kl(0),B){case "abandoned":if(j9(this.vn,"impression")){var f,K=((f=l1(this))==null?void 0:f.abandonCommands)||[];QL(this.gi.get(),K,this.layout.layoutId)}break;case "normal":f=((K=l1(this))==null?void 0:K.completeCommands)||[];QL(this.gi.get(),f,this.layout.layoutId);break;case "skipped":var V;f=((V=l1(this))==
|
|
null?void 0:V.skipCommands)||[];QL(this.gi.get(),f,this.layout.layoutId)}};
|
|
g.p.qs=function(){return this.layout.layoutId};
|
|
g.p.De=function(){return this.D};
|
|
g.p.qN=function(){if(this.Wy==="rendering"){this.vn.eI("active_view_measurable");var A,L=((A=l1(this))==null?void 0:A.activeViewMeasurableCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}};
|
|
g.p.HQ=function(){if(this.Wy==="rendering"){this.vn.eI("active_view_fully_viewable_audible_half_duration");var A,L=((A=l1(this))==null?void 0:A.activeViewFullyViewableAudibleHalfDurationCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}};
|
|
g.p.IM=function(){if(this.Wy==="rendering"){this.vn.eI("active_view_viewable");var A,L=((A=l1(this))==null?void 0:A.activeViewViewableCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}};
|
|
g.p.NN=function(){if(this.Wy==="rendering"){this.vn.eI("audio_audible");var A,L=((A=l1(this))==null?void 0:A.activeViewAudioAudibleCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}};
|
|
g.p.WQ=function(){if(this.Wy==="rendering"){this.vn.eI("audio_measurable");var A,L=((A=l1(this))==null?void 0:A.activeViewAudioMeasurableCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}};
|
|
g.p.q$=function(A){this.j$.get().q$(PF(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,A,this.position,this.U,!1)};
|
|
g.p.onFullscreenToggled=function(A){if(this.Wy==="rendering")if(A){this.QF("fullscreen");var L,B=((L=l1(this))==null?void 0:L.fullscreenCommands)||[];QL(this.gi.get(),B,this.layout.layoutId)}else this.QF("end_fullscreen"),L=((B=l1(this))==null?void 0:B.endFullscreenCommands)||[],QL(this.gi.get(),L,this.layout.layoutId)};
|
|
g.p.onVolumeChange=function(){if(this.Wy==="rendering")if(this.Mp.get().isMuted()){CW(this,"mute");var A,L=((A=l1(this))==null?void 0:A.muteCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}else CW(this,"unmute"),A=((L=l1(this))==null?void 0:L.unmuteCommands)||[],QL(this.gi.get(),A,this.layout.layoutId)};
|
|
g.p.mF=function(){};
|
|
g.p.iH=function(){};
|
|
g.p.T_=function(){};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};
|
|
g.p.QF=function(A){this.vn.QF(A,!this.N)};
|
|
g.p.eI=function(A){this.vn.eI(A,!this.N)};g.G($F,ma);g.p=$F.prototype;g.p.qJ=function(){};
|
|
g.p.Ah=function(){var A=this.j4.get();A.Bm===this&&(A.Bm=null);this.timer.stop()};
|
|
g.p.MN=function(){this.timer.stop();ma.prototype.iL.call(this)};
|
|
g.p.uG=function(){mfv(this);ma.prototype.Y7.call(this)};
|
|
g.p.Xn=function(){return PF(this.dT().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
|
|
g.p.D1=function(A,L){var B=this;this.Rd(A,function(){B.Wy!=="rendering_stop_requested"&&(B.Wy="rendering_stop_requested",B.layoutExitReason=L,hiy(B,L),B.timer.stop())})};
|
|
g.p.iq=function(){var A=Date.now(),L=A-this.RT;this.RT=A;this.wQ+=L;this.wQ>=this.Xn()?(this.wQ=this.Xn(),this.eZ(this.wQ/1E3,!0),Xi(this,this.wQ),this.Di()):(this.eZ(this.wQ/1E3),Xi(this,this.wQ))};
|
|
g.p.H9=function(A){if(this.Wy!=="not_rendering"){A=bLv(this,A);var L=this.Mp.get().getPresentingPlayerType()===2;this.Wy==="rendering_start_requested"?L&&aE(A)&&this.z9():L?g.wk(A,2)?Dh("Receive player ended event during MediaBreak",this.LY(),this.dT()):tmQ(this,A):this.Sk()}};
|
|
g.p.k$=function(){khv(this);z6D(this.Mp.get());this.j4.get().Bm=this;iJ("pbp")||iJ("pbs")||OC("pbp");iJ("pbp","watch")||iJ("pbs","watch")||OC("pbp",void 0,"watch");this.z9()};
|
|
g.p.Oi=function(A){this.j$.get();var L=PF(A.clientMetadata,"metadata_type_ad_placement_config").kind,B=this.position===0;A=PF(A.clientMetadata,"metadata_type_linked_in_player_layout_type");A={adBreakType:QV(L),adType:Io8(A)};var f=void 0;B?L!=="AD_PLACEMENT_KIND_START"&&(f="video_to_ad"):f="ad_to_ad";mF("ad_mbs",void 0,f);g.Qm(A,f);mfv(this)};
|
|
g.p.Sk=function(){this.Di()};
|
|
g.p.Xi=function(){};
|
|
g.p.C9=function(){};g.G(ci,ma);g.p=ci.prototype;g.p.Sk=function(){this.Di()};
|
|
g.p.H9=function(A){this.wr(A)};
|
|
g.p.qJ=function(){PF(this.dT().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=PF(this.dT().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
|
|
g.p.Ah=function(){PF(this.dT().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.Lh&&this.FA.get().removeCueRange(this.Lh);this.Lh=void 0;var A;(A=this.sB)==null||A.dispose();this.X4&&this.X4.dispose()};
|
|
g.p.k$=function(A){var L=PF(A.clientMetadata,"metadata_type_ad_placement_config");L=OJ(this.FD.get(),L);var B=EJ(this.FD.get());if(L&&B){B=PF(A.clientMetadata,"metadata_type_preload_player_vars");var f=this.FD.get();f=g.Am(f.S.K().experiments,"html5_preload_wait_time_secs");B&&this.X4&&this.X4.start(f*1E3)}B=PF(A.clientMetadata,"metadata_type_ad_video_id");f=PF(A.clientMetadata,"metadata_type_legacy_info_card_vast_extension");B&&f&&this.E6.get().S.K().S4.add(B,{SP:f});(B=PF(A.clientMetadata,"metadata_type_sodar_extension_data"))&&
|
|
qlk(this.Az.get(),B);uG8(this.Mp.get(),!1);khv(this);L?(B=this.h$.get(),A=PF(A.clientMetadata,"metadata_type_player_vars"),B.S.loadVideoByPlayerVars(A,!1,2)):d6y(this.h$.get(),PF(A.clientMetadata,"metadata_type_player_vars"));var K;(K=this.sB)==null||K.start();L||this.h$.get().S.playVideo(2)};
|
|
g.p.Oi=function(){var A;(A=this.sB)==null||A.stop();this.TA();(this.adCpn=HLD(this))||Dh("Media layout confirmed started, but ad CPN not set.");this.QK.get().Dp("onAdStart",this.adCpn);this.HD=Date.now()};
|
|
g.p.Xn=function(){var A;return(A=BV(this.hF.get(),2))==null?void 0:A.zY};
|
|
g.p.bj=function(){this.vn.QF("clickthrough")};
|
|
g.p.D1=function(A,L){var B=this;this.Rd(A,function(){if(B.Wy!=="rendering_stop_requested"){B.Wy="rendering_stop_requested";B.layoutExitReason=L;hiy(B,L);var f;(f=B.sB)==null||f.stop();B.X4&&B.X4.stop();uG8(B.Mp.get(),!0);var K;((K=B.shrunkenPlayerBytesConfig)==null?0:K.shouldRequestShrunkenPlayerBytes)&&B.Mp.get().Nn(!1)}})};
|
|
g.p.onCueRangeEnter=function(A){A!==this.Lh?Dh("Received CueRangeEnter signal for unknown layout.",this.LY(),this.dT(),{cueRangeId:A}):(this.FA.get().removeCueRange(this.Lh),this.Lh=void 0,A=PF(this.dT().clientMetadata,"metadata_type_video_length_seconds"),this.eZ(A,!0),this.eI("complete"))};
|
|
g.p.Xi=function(A){A!=="abandoned"&&this.QK.get().Dp("onAdComplete");this.QK.get().Dp("onAdEnd",this.adCpn)};
|
|
g.p.TA=function(){this.Lh="adcompletioncuerange:"+this.dT().layoutId;this.FA.get().addCueRange(this.Lh,0x7ffffffffffff,0x8000000000000,!1,this,2,2)};
|
|
g.p.onCueRangeExit=function(){};
|
|
g.p.C9=function(A){this.Wy==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&A>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Mp.get().Nn(!0),this.eZ(A))};
|
|
g.p.eZ=function(A,L){ma.prototype.eZ.call(this,A,L===void 0?!1:L);L=Date.now()-this.HD;var B=A*1E3,f={contentCpn:this.ju(),adCpn:HLD(this)};if(A-this.gx>=5){var K=L<B*.4?0:1;Fo(K,"n.k_",{metadata:f,H7:L,qc:Math.floor(B/1E3)});aw("NKDSTAT",K);if(L=K===0)L=PF(this.LY().clientMetadata,"metadata_type_player_bytes_slot_metadata"),L===void 0&&Dh("PlayerBytesSlotMetadata is not filled",this.LY(),this.dT()),L=(L==null?void 0:L.z$)===!0;L&&this.QK.get().Dp("onAbnormalityDetected");this.gx=A}};
|
|
g.p.wr=function(A){if(this.Wy!=="not_rendering"){A=bLv(this,A);var L=this.Mp.get().getPresentingPlayerType()===2;this.Wy==="rendering_start_requested"?L&&aE(A)&&this.z9():!L||g.wk(A,2)?this.Di():tmQ(this,A)}};g.G(MK,g.Y);g.p=MK.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.Y_=function(){};
|
|
g.p.MN=function(A,L){var B=YF(this);L.layoutId!==UJ(B,A,L)?Dh("pauseLayout for a PlayerBytes layout that is not currently active",A,L):B.MN()};
|
|
g.p.uG=function(A,L){var B=YF(this);L.layoutId!==UJ(B,A,L)?Dh("resumeLayout for a PlayerBytes layout that is not currently active",A,L):B.uG()};
|
|
g.p.vc=function(A,L){var B=YF(this);if(this.xu===this.DJ.length-1){var f,K;Dh("Unexpected skip requested during the last sublayout",(f=YF(this))==null?void 0:f.LY(),(K=YF(this))==null?void 0:K.dT(),{requestingSlot:A,requestingLayout:L})}L.layoutId!==UJ(B,A,L)?(Dh("onSkipRequested for a PlayerBytes layout that is not currently active",B.LY(),B.dT()),A=!1):A=!0;A&&qK(this,B.LY(),B.dT(),"skipped")};
|
|
g.p.hdM=function(A,L){TTy(this.OQ,A,L)};
|
|
g.p.lq=function(A,L){var B;(B=YF(this))==null||B.lq(A,L)};
|
|
g.p.CD=function(A,L,B){L.layoutId===this.dT().layoutId&&(this.Rb=!1,fy(this.wf(),this));var f;(f=YF(this))==null||f.CD(A,L,B)};
|
|
g.p.C9=function(A){var L;(L=YF(this))==null||L.C9(A)};
|
|
g.p.VE=function(A,L,B){this.xu===-1&&(this.callback.lq(this.slot,this.layout),this.xu++);var f=YF(this);f?f.Pp(A,L,B):Dh("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.xu),layoutId:this.dT().layoutId})};
|
|
g.p.onFullscreenToggled=function(A){var L;(L=YF(this))==null||L.onFullscreenToggled(A)};
|
|
g.p.mF=function(A){var L;(L=YF(this))==null||L.mF(A)};
|
|
g.p.T_=function(A){var L;(L=YF(this))==null||L.T_(A)};
|
|
g.p.onVolumeChange=function(){var A;(A=YF(this))==null||A.onVolumeChange()};
|
|
g.p.init=function(){var A=PF(this.dT().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");A&&(A.current=this);if(this.DJ.length<1)throw new n("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.DJ.length)});if(A=PF(this.dT().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))A.current=this;A=g.m(this.DJ);for(var L=A.next();!L.done;L=A.next())L=L.value,L.init(),bVC(this.OQ,this.slot,L.dT()),tPE(this.OQ,this.slot,L.dT())};
|
|
g.p.release=function(){var A=PF(this.dT().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");A&&(A.current=null);if(A=PF(this.dT().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))A.current=null;A=g.m(this.DJ);for(var L=A.next();!L.done;L=A.next())L=L.value,kxk(this.OQ,this.slot,L.dT()),L.release()};
|
|
g.p.Rd=function(A){return A.layoutId!==this.dT().layoutId?(this.callback.o0(this.LY(),A,new vF("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.dT().layoutId+("and LayoutType: "+this.dT().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
|
|
g.p.ey=function(){this.Mp.get().addListener(this);BR(this.wf(),this)};
|
|
g.p.startRendering=function(A){this.Rd(A)&&(this.ey(),NBk(this.j$.get()),pnL(this.FD.get())||z6D(this.Mp.get()),this.xu===-1&&vi(this,this.xu+1))};
|
|
g.p.D1=function(A,L){var B=this;this.Rb=!0;this.xu===this.DJ.length?this.callback.CD(this.slot,this.layout,L):(A=YF(this),A.D1(A.dT(),L),this.Nd=function(){B.callback.CD(B.slot,B.layout,L)});
|
|
this.Mp.get().S.hh();d6y(this.h$.get(),{});A=uF(this.Mp.get(),1);A.isPaused()&&!g.x(A,2)&&this.Mp.get().playVideo();this.Mp.get().removeListener(this);this.Rb&&EID(this)};
|
|
g.p.H9=function(A){if(A.state.isError()){var L,B;this.VE((L=A.state.nh)==null?void 0:L.errorCode,new vF("There was a player error during this media layout.",{playerErrorCode:(B=A.state.nh)==null?void 0:B.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(L=YF(this))&&L.H9(A)};
|
|
g.p.iH=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};
|
|
g.p.CQr=function(A,L,B){qK(this,A,L,B)};
|
|
g.p.f14=function(A,L){qK(this,A,L,"error")};g.G(ee,g.Y);g.p=ee.prototype;g.p.LY=function(){return this.MV.LY()};
|
|
g.p.dT=function(){return this.MV.dT()};
|
|
g.p.init=function(){var A=PF(this.dT().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");A&&(A.current=this);this.qJ()};
|
|
g.p.qJ=function(){this.MV.init()};
|
|
g.p.release=function(){var A=PF(this.dT().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");A&&(A.current=null);this.Ah()};
|
|
g.p.Ah=function(){this.MV.release()};
|
|
g.p.MN=function(){this.MV.MN()};
|
|
g.p.uG=function(){this.MV.uG()};
|
|
g.p.vc=function(A,L){Dh("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.LY(),this.dT(),{requestingSlot:A,requestingLayout:L})};
|
|
g.p.startRendering=function(A){A.layoutId!==this.dT().layoutId?this.callback.o0(this.LY(),A,new vF("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.dT().layoutId+("and LayoutType: "+this.dT().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Mp.get().addListener(this),BR(this.wf(),this),NBk(this.j$.get()),pnL(this.FD.get())||z6D(this.Mp.get()),this.MV.startRendering(A))};
|
|
g.p.D1=function(A,L){this.Rb=!0;this.MV.D1(A,L);this.Mp.get().S.hh();d6y(this.h$.get(),{});A=uF(this.Mp.get(),1);A.isPaused()&&!g.x(A,2)&&this.Mp.get().playVideo();this.Mp.get().removeListener(this);this.Rb&&this.MV.Sk()};
|
|
g.p.lq=function(A,L){this.MV.lq(A,L)};
|
|
g.p.CD=function(A,L,B){L.layoutId===this.dT().layoutId&&(this.Rb=!1,fy(this.wf(),this));this.MV.CD(A,L,B);L.layoutId===this.dT().layoutId&&Pi(this.j$.get())};
|
|
g.p.C9=function(A){this.MV.C9(A)};
|
|
g.p.H9=function(A){if(A.state.isError()){var L,B;this.VE((L=A.state.nh)==null?void 0:L.errorCode,new vF("There was a player error during this media layout.",{playerErrorCode:(B=A.state.nh)==null?void 0:B.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.MV.H9(A)};
|
|
g.p.VE=function(A,L,B){this.MV.Pp(A,L,B)};
|
|
g.p.onFullscreenToggled=function(A){this.MV.onFullscreenToggled(A)};
|
|
g.p.mF=function(A){this.MV.mF(A)};
|
|
g.p.T_=function(A){this.MV.T_(A)};
|
|
g.p.onVolumeChange=function(){this.MV.onVolumeChange()};
|
|
g.p.iH=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};g.p=nW.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.init=function(){this.hf.get().addListener(this);this.Mp.get().addListener(this);var A=PF(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var L=PF(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.U){var B=this.hf.get().Qy.slice(-1)[0];B!==void 0&&(A=B.startSecs*1E3,L=(B.startSecs+B.Dj)*1E3)}this.P2(A,L);var f;B=(f=this.hF.get().oV)==null?void 0:f.clientPlaybackNonce;f=this.layout.Aw.adClientDataEntry;zu(this.j4.get(),{daiStateTrigger:{filledAdsDurationMs:L-A,contentCpn:B,
|
|
adClientData:f}});var K=this.hf.get();K=YN6(K.V,A,L);K!==null&&(zu(this.j4.get(),{daiStateTrigger:{filledAdsDurationMs:K-A,contentCpn:B,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:f}}),this.sE.get().Qc(K,L))};
|
|
g.p.release=function(){this.Ah();this.hf.get().removeListener(this);this.Mp.get().removeListener(this)};
|
|
g.p.startRendering=function(){this.k$();this.callback.lq(this.slot,this.layout)};
|
|
g.p.D1=function(A,L){this.Li(L);this.driftRecoveryMs!==null&&(u1(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Uf6(this)-PF(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Mp.get().S.pX()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.CD(this.slot,this.layout,L)};
|
|
g.p.Xx=function(){return!1};
|
|
g.p.yg=function(A){var L=PF(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),B=PF(this.layout.clientMetadata,"metadata_type_layout_exit_ms");A*=1E3;if(L<=A&&A<B){var f;zu(this.j4.get(),{daiStateTrigger:{filledAdsDurationMs:A-L,contentCpn:(f=this.hF.get().oV)==null?void 0:f.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Aw.adClientDataEntry}});this.sE.get().Qc(A,B)}};
|
|
g.p.C9=function(A){this.zz(A);A=KY(this.Mp.get(),2,!0);if(pS(this.D.get(),this.layout.layoutId)){var L=PF(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),B=this.driftRecoveryMs;if(!(B===null||A*1E3<L+B)){this.driftRecoveryMs=null;var f=Uf6(this),K=this.Mp.get().S.pX(),V=Math.min(A+K,f/1E3);V<=A?u1(this,{driftRecoveryMs:B.toString(),breakDurationMs:Math.round(f-L).toString(),driftFromHeadMs:Math.round(K*1E3).toString()}):(u1(this,{driftRecoveryMs:B.toString(),breakDurationMs:Math.round(f-
|
|
L).toString(),driftFromHeadMs:Math.round(K*1E3).toString(),appliedDriftRecoveryMs:Math.round(A*1E3-L).toString(),destinationMs:Math.round(V*1E3-L).toString()}),this.Mp.get().S.seekTo(V,void 0,void 0,1))}}};
|
|
g.p.mF=function(){};
|
|
g.p.iH=function(){};
|
|
g.p.T_=function(){};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};g.G(ak,nW);g.p=ak.prototype;g.p.P2=function(A,L){this.hF.get().addListener(this);if(this.U){var B=A,f=0,K=[];A=this.V.slice();A.sort(function(V,J){return PF(V.dT().clientMetadata,"metadata_type_media_sub_layout_index")-PF(J.dT().clientMetadata,"metadata_type_media_sub_layout_index")});
|
|
A.forEach(function(V){var J=B,R=PF(V.dT().clientMetadata,"metadata_type_video_length_seconds"),Z=Math.min(J+R*1E3,L);B=Z;f++;K.push(R);V.P2(J,Z)})}else this.V.forEach(function(V){V.init()});
|
|
this.W!=null&&Ay(this.j4.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.W)};
|
|
g.p.Ah=function(){this.hF.get().removeListener(this);this.N=null;this.V.forEach(function(A){A.release()})};
|
|
g.p.k$=function(){if(this.N)Dh("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.W)});else{var A,L=(A=this.hF.get().oV)==null?void 0:A.layoutId;vI8(this,L)}};
|
|
g.p.Li=function(A){var L,B,f,K;(f=this.N)==null||(K=f.Yf)==null||K.D1((L=this.N)==null?void 0:(B=L.Yf)==null?void 0:B.dT(),A);this.N=null};
|
|
g.p.Y_=function(A){var L=A.videoId;A=A.layoutId;if(L==="nPpU29QrbiU"){var B,f;Ay(this.j4.get(),"ads_ssmplra_opdcs","vid."+L+";lid."+this.layout.layoutId+";smlid."+this.W+";slrs."+!!this.N+";slrslid."+((B=this.N)==null?void 0:(f=B.Yf)==null?void 0:f.dT().layoutId))}if(this.N){var K;if(((K=this.N.Yf)==null?void 0:K.dT().layoutId)===A)Dh("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:A});else{var V,J;(J=this.N.Yf)==null||J.D1((V=this.N.Yf)==null?void 0:V.dT(),"normal");
|
|
vI8(this,A)}}};
|
|
g.p.zz=function(){};
|
|
g.p.H9=function(){};
|
|
g.p.onFullscreenToggled=function(){};g.p=oxk.prototype;g.p.LY=function(){return this.slot};
|
|
g.p.dT=function(){return this.layout};
|
|
g.p.P2=function(A,L){var B=this;PF(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.XA=qN6(this.slot,this.layout,PF(this.layout.clientMetadata,"metadata_type_player_vars"),A,L,PF(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.sE.get(),this.kH.get(),function(){var f=Object,K=f.assign,V=Kp(B.layout);var J=PF(B.slot.clientMetadata,"metadata_type_fulfilled_layout")||B.slot.fulfilledLayout;var R=PF(J.clientMetadata,"metadata_type_sub_layouts")||
|
|
J.YC;J=Object.assign({},Kp(J),{adPlacementConfig:PF(J.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(R||[]).map(Kp)});return K.call(f,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},V,{compositeLayout:J,hasSurveyOverlay:YX(B.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:PF(B.layout.clientMetadata,"metadata_type_survey_overlay")})},this.j4.get());
|
|
this.Mp.get().addListener(this);A=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds");L=PF(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZT(this.layout.Vf)&&aH(this.Fr.get(),this.layout.layoutId,{nt:L,Ag:A,listener:this});bVC(this.callback,this.slot,this.layout);tPE(this.callback,this.slot,this.layout)};
|
|
g.p.init=function(){var A=PF(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),L=PF(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.P2(A,L)};
|
|
g.p.release=function(){this.Mp.get().removeListener(this);ZT(this.layout.Vf)&&A3(this.Fr.get(),this.layout.layoutId);this.FD.get();kxk(this.callback,this.slot,this.layout);if(rH1(this.FD.get())){if(this.Lh){var A;Ay(this.j4.get(),"ads_ccru","acpn."+((A=BV(this.hF.get(),2))==null?void 0:A.clientPlaybackNonce)+";cr."+this.Lh);this.FA.get().removeCueRange(this.Lh)}this.Lh=void 0}};
|
|
g.p.startRendering=function(){var A=this;YX(this.layout.clientMetadata,"metadata_type_survey_overlay")&&Ay(this.j4.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Wy)Dh("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:YX(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:PF(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.Wy={Vh:null,sO:!1};this.N=!1;if(IeD(this.FD.get())){var L;this.adCpn=
|
|
(L=BV(this.hF.get(),2))==null?void 0:L.clientPlaybackNonce}this.FD.get().S.K().experiments.GL("html5_disable_sodar_for_tvhtml5")||PVD(this.slot,this.layout,this.Az.get());ZT(this.layout.Vf)&&kfD(this.Fr.get(),this.layout.layoutId);this.vn.eI("start");if(SM(this.FD.get())){L=uF(this.Mp.get());var B=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),f=KY(this.Mp.get(),2,!1);xfv(this.vn,this.Wy.Vh,L,B,f,function(){return void f80(A,"teois")},BV(this.hF.get(),1).aA)}TTy(this.callback,
|
|
this.slot,this.layout);
|
|
rH1(this.FD.get())&&(this.adCpn||Dh("Media layout confirmed started, but ad CPN not set."),this.TA());YX(this.layout.clientMetadata,"metadata_type_survey_overlay")&&Ay(this.j4.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
|
|
g.p.D1=function(A,L){var B=this;if(this.Wy){if(SM(this.FD.get()))if(this.XA===null)Dh("Unexpected media sub layout exited without a timeline playback ID");else{A=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds");var f=VY(this.Mp.get(),this.XA);IeD(this.FD.get())&&this.adCpn===void 0&&Dh("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:PF(this.layout.clientMetadata,"metadata_type_content_cpn")});j90(this.vn,f,this.adCpn);o2(this.vn,null,this.Wy.Vh,A,f,BV(this.hF.get(),
|
|
1).aA,function(K){return void BXw(B,K,"fue")},IeD(this.FD.get()),rH1(this.FD.get()))}this.Wy=null;
|
|
lP0(this.callback,this.slot,this.layout,this.N&&this.FD.get().S.K().J("dai_layout_log_skip_exit_reason")?"skipped":L)}else Dh("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
|
|
g.p.onCueRangeEnter=function(A){if(A!==this.Lh)Dh("Received CueRangeEnter signal for unknown layout.",this.LY(),this.dT(),{cueRangeId:A});else if(this.adCpn===void 0&&Dh("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:PF(this.layout.clientMetadata,"metadata_type_content_cpn")}),j9(this.vn,"impression")&&SM(this.FD.get()))if(this.XA===null)Dh("Unexpected cue range enter without a timeline playback ID");else{var L=VY(this.Mp.get(),this.XA),B;Ay(this.j4.get(),"ads_ccre","cpn."+
|
|
PF(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((B=BV(this.hF.get(),2))==null?void 0:B.clientPlaybackNonce)+";cr."+A+";cts."+L);this.FA.get().removeCueRange(this.Lh);this.Lh=void 0;this.vn.eI("complete")}};
|
|
g.p.onCueRangeExit=function(){};
|
|
g.p.Pp=function(){};
|
|
g.p.Sk=function(){};
|
|
g.p.C9=function(A){var L=this;if(this.Wy){if(j9(this.vn,"impression")){var B=uF(this.Mp.get()),f=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds");BW(this.vn,B,A,this.Wy.Vh,f,function(K){return void BXw(L,K,"tpaqe")})}this.Wy.Vh=A}};
|
|
g.p.H9=function(A){var L=this;if(this.Wy){SM(this.FD.get())||this.Wy.sO||(this.Wy.sO=!0,A=new g.dk(A.state,new g.Gu));var B=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),f=KY(this.Mp.get(),2,!1);Lp(this.vn,this.Wy.Vh,A,B,f,BV(this.hF.get(),1).aA,!SM(this.FD.get()),function(){return void f80(L,"teosc")})}};
|
|
g.p.onFullscreenToggled=function(A){eiw(this.vn,A)};
|
|
g.p.mF=function(){};
|
|
g.p.iH=function(){};
|
|
g.p.T_=function(){};
|
|
g.p.vc=function(A,L){var B;A=this.j4.get();var f="ti."+j9(this.vn,"impression")+";ts."+j9(this.vn,"skip")+";hp.",K;var V=!((K=this.vn.V.get("skip"))==null||!K.length);Ay(A,"ads_dsr",f+V+";cpn."+PF(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((B=BV(this.hF.get(),2))==null?void 0:B.clientPlaybackNonce)+";sl."+(PF(L.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));j9(this.vn,"impression")&&this.vn.eI("skip");L=BV(this.hF.get(),1).aA;this.N=!0;
|
|
this.sE.get().bF(L)||(this.N=!1,Dh("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.lq=function(){};
|
|
g.p.CD=function(){};
|
|
g.p.MN=function(){};
|
|
g.p.uG=function(){};
|
|
g.p.bj=function(){nIE(this.vn)};
|
|
g.p.qN=function(){zi0(this.vn)};
|
|
g.p.HQ=function(){uo6(this.vn)};
|
|
g.p.IM=function(){ah7(this.vn)};
|
|
g.p.NN=function(){AV8(this.vn)};
|
|
g.p.WQ=function(){LFC(this.vn)};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};
|
|
g.p.TA=function(){if(!this.Lh){this.Lh="adcompletioncuerange:"+this.dT().layoutId;this.FA.get().addCueRange(this.Lh,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn);var A;Ay(this.j4.get(),"ads_ccr","acpn."+((A=BV(this.hF.get(),2))==null?void 0:A.clientPlaybackNonce)+";cr."+this.Lh)}};g.G(Vg,nW);g.p=Vg.prototype;
|
|
g.p.P2=function(){var A=this;PF(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var L=PF(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),B=PF(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.XA=qN6(this.slot,this.layout,PF(this.layout.clientMetadata,"metadata_type_player_vars"),L,B,PF(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.sE.get(),this.kH.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:L,
|
|
exitMs:B,adPlacementConfig:PF(A.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.j4.get());
|
|
var f=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=PF(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZT(this.layout.Vf)&&aH(this.Fr.get(),this.layout.layoutId,{nt:K,Ag:f,listener:this})};
|
|
g.p.Ah=function(){ZT(this.layout.Vf)&&A3(this.Fr.get(),this.layout.layoutId)};
|
|
g.p.k$=function(){var A=this;if(this.Wy)Dh("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Wy={Vh:null,sO:!1},PVD(this.slot,this.layout,this.Az.get()),this.vn.eI("start"),SM(this.FD.get())){var L=uF(this.Mp.get()),B=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),f=KY(this.Mp.get(),2,!1);xfv(this.vn,this.Wy.Vh,L,B,f,function(){return void KFy(A,"teois")},!1)}};
|
|
g.p.Li=function(){var A=this;if(this.Wy){if(SM(this.FD.get()))if(this.XA===null)Dh("Unexpected single media layout exited without a timeline playback ID");else{var L=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),B=VY(this.Mp.get(),this.XA);j90(this.vn,B);o2(this.vn,null,this.Wy.Vh,L,B,!1,function(f){return void VGk(A,f,"fue")})}this.Wy=null}else Dh("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
|
|
g.p.zz=function(A){var L=this;if(this.Wy){if(j9(this.vn,"impression")){var B=uF(this.Mp.get()),f=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds");BW(this.vn,B,A,this.Wy.Vh,f,function(K){return void VGk(L,K,"tpaqe")})}this.Wy.Vh=A}};
|
|
g.p.H9=function(A){var L=this;if(this.Wy){SM(this.FD.get())||this.Wy.sO||(this.Wy.sO=!0,A=new g.dk(A.state,new g.Gu));var B=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),f=KY(this.Mp.get(),2,!1);Lp(this.vn,this.Wy.Vh,A,B,f,!1,!SM(this.FD.get()),function(){return void KFy(L,"teosc")})}};
|
|
g.p.onFullscreenToggled=function(A){eiw(this.vn,A)};
|
|
g.p.bj=function(){nIE(this.vn)};
|
|
g.p.qN=function(){zi0(this.vn)};
|
|
g.p.HQ=function(){uo6(this.vn)};
|
|
g.p.IM=function(){ah7(this.vn)};
|
|
g.p.NN=function(){AV8(this.vn)};
|
|
g.p.WQ=function(){LFC(this.vn)};Jy.prototype.build=function(A,L,B,f){if(YX(B.clientMetadata,"metadata_type_dai")){var K=PF(f.clientMetadata,"metadata_type_ad_placement_config");Ob(f,{qQ:"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(" "),o8:["LAYOUT_TYPE_MEDIA"]})&&K!==void 0?(K=new DT(f.Vf,this.j4,K,f.layoutId,null),K=new Vg(A,B,f,this.hF,this.sE,this.kH,this.hf,this.Mp,K,this.j4,this.Az,
|
|
this.N,this.Fr,this.FD)):K=null;if(K)return K;a:{var V,J=(V=f.YC)!=null?V:PF(f.clientMetadata,"metadata_type_sub_layouts");K=PF(f.clientMetadata,"metadata_type_ad_placement_config");if(Ob(f,{qQ:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],o8:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&J!==void 0&&K!==void 0){V=[];J=g.m(J);for(var R=J.next();!R.done;R=J.next()){R=R.value;var Z=PF(R.clientMetadata,"metadata_type_media_sub_layout_index");if(!Ob(R,{qQ:"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(" "),
|
|
o8:["LAYOUT_TYPE_MEDIA"]})||Z===void 0){A=null;break a}Z=new DT(R.Vf,this.j4,K,R.layoutId,Z);V.push(new oxk(L,B,R,this.sE,Z,this.Mp,this.kH,this.Fr,this.Az,this.FD,this.j4,this.hF,this.FA))}L=new DT(f.Vf,this.j4,K,f.layoutId);A=new ak(A,B,f,this.hF,this.sE,this.hf,this.Mp,L,this.j4,this.N,V)}else A=null}if(A)return A}else if(A=Mm0(A,L,B,f,this.wf,this.MU,this.Xy,this.j4,this.Fr,this.Az,this.h$,this.hF,this.Mp,this.MF,this.FA,this.j$,this.QK,this.gi,this.E6,this.FD,this.sE,this.context))return A;throw new vF("Unsupported layout with type: "+
|
|
f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};S$.prototype.build=function(A,L,B,f){if(A=Mm0(A,L,B,f,this.wf,this.MU,this.Xy,this.j4,this.Fr,this.Az,this.h$,this.hF,this.Mp,this.MF,this.FA,this.j$,this.QK,this.gi,this.E6,this.FD,this.sE,this.context))return A;throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.G(JVD,Jr);g.G(R2,KU);R2.prototype.startRendering=function(A){var L=Vc(this.vn),B={adsClientData:this.layout.Aw};this.N.push(new JVD(PF(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),L,this.dT().layoutId,B));KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A)};
|
|
R2.prototype.dI=function(A,L){L!==this.layout.layoutId||A!=="survey-interstitial"&&A!=="button"||((A=PF(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?A.vc(this.slot,this.layout):Dh("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
|
|
R2.prototype.l1=function(){KU.prototype.l1.call(this)};var Nr=new g.Sr(320,63);g.G(df,Jr);g.G(I2,KU);g.p=I2.prototype;g.p.C9=function(){};
|
|
g.p.H9=function(){};
|
|
g.p.onFullscreenToggled=function(){};
|
|
g.p.mF=function(A){A&&b4(this.U,this.layout)};
|
|
g.p.iH=function(){};
|
|
g.p.T_=function(A){var L=DN(this.layout);if(this.X=Fp(A,nJ1(this.Mp.get())))L.onErrorCommand&&this.gi.get().executeCommand(L.onErrorCommand,this.layout.layoutId),b4(this.U,this.layout)};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.qs=function(){return this.dT().layoutId};
|
|
g.p.De=function(){return this.X};
|
|
g.p.dI=function(A){this.D.dI(A);A==="in_video_overlay_close_button"&&b4(this.U,this.layout)};
|
|
g.p.cS=function(A){A==="invideo-overlay"&&b4(this.U,this.layout)};
|
|
g.p.fl=function(){this.D.fl()};
|
|
g.p.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A);this.T.Yr=this};
|
|
g.p.D1=function(A,L){KU.prototype.D1.call(this,A,L);qe(this.T,this)};
|
|
g.p.init=function(){KU.prototype.init.call(this);Y87(this.j4.get(),this);this.Mp.get().addListener(this);this.N.push(new df(DN(this.layout),Vc(this.vn),this.layout.layoutId,{adsClientData:this.layout.Aw}))};
|
|
g.p.release=function(){KU.prototype.release.call(this);this.Mp.get().removeListener(this);U60(this.j4.get(),this)};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};g.G(wf,KU);g.p=wf.prototype;g.p.init=function(){KU.prototype.init.call(this);Y87(this.j4.get(),this);this.Mp.get().addListener(this);this.N.push(new df(DN(this.layout),Vc(this.vn),this.layout.layoutId,{adsClientData:this.layout.Aw}))};
|
|
g.p.fl=function(){this.D.fl()};
|
|
g.p.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A);this.T.Yr=this};
|
|
g.p.D1=function(A,L){KU.prototype.D1.call(this,A,L);qe(this.T,this)};
|
|
g.p.dI=function(A){this.D.dI(A);A==="in_video_overlay_close_button"&&b4(this.U,this.layout)};
|
|
g.p.kp=function(A){if(A==="invideo-overlay"){A=d17(this.G,this.layout);A=g.m(A);for(var L=A.next();!L.done;L=A.next())L.value.stop()}};
|
|
g.p.cS=function(A){A==="invideo-overlay"&&b4(this.U,this.layout)};
|
|
g.p.lc=function(A){if(A==="invideo-overlay"){A=d17(this.G,this.layout);A=g.m(A);for(var L=A.next();!L.done;L=A.next())L.value.start()}};
|
|
g.p.C9=function(){};
|
|
g.p.H9=function(){};
|
|
g.p.onFullscreenToggled=function(){};
|
|
g.p.mF=function(A){A&&b4(this.U,this.layout)};
|
|
g.p.iH=function(){};
|
|
g.p.T_=function(A){var L=DN(this.layout),B=L.contentSupportedRenderer.imageOverlayAdContentRenderer,f=nJ1(this.Mp.get());a:{B=B.image;B=B===void 0?null:B;if(B!=null&&(B=B.thumbnail,B!=null&&B.thumbnails!=null&&B.thumbnails.length!=0&&B.thumbnails[0].width!=null&&B.thumbnails[0].height!=null)){B=new g.Sr(B.thumbnails[0].width||0,B.thumbnails[0].height||0);break a}B=new g.Sr(0,0)}if(this.X=Fp(A,f,B))L.onErrorCommand&&this.gi.get().executeCommand(L.onErrorCommand,this.layout.layoutId),b4(this.U,this.layout)};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.qs=function(){return this.dT().layoutId};
|
|
g.p.De=function(){return this.X};
|
|
g.p.release=function(){KU.prototype.release.call(this);this.Mp.get().removeListener(this);U60(this.j4.get(),this)};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};pp.prototype.dI=function(A){A==="ad-info-hover-text-button"&&((this.N=this.Mp.get().l5(1))||this.Mp.get().pauseVideo())};
|
|
pp.prototype.fl=function(){this.N||this.Mp.get().resumeVideo(1)};g.G(NXk,Jr);g.G(yg,KU);g.p=yg.prototype;g.p.init=function(){KU.prototype.init.call(this);this.Mp.get().addListener(this)};
|
|
g.p.startRendering=function(A){var L=PF(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.N.push(new NXk(L,this.layout.layoutId,{adsClientData:this.layout.Aw}));KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A)};
|
|
g.p.lq=function(){};
|
|
g.p.dI=function(A,L){L!==this.layout.layoutId||A!=="ad-info-icon-button"&&A!=="ad-info-dialog-close-button"||((L=PF(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?A==="ad-info-icon-button"?L.MN(this.slot,this.layout):A==="ad-info-dialog-close-button"&&L.uG(this.slot,this.layout):Dh("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:A}))};
|
|
g.p.T_=function(A){A.width<450&&b4(this.U,this.layout)};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.C9=function(){};
|
|
g.p.onFullscreenToggled=function(){};
|
|
g.p.mF=function(){};
|
|
g.p.iH=function(){};
|
|
g.p.H9=function(){};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};
|
|
g.p.l1=function(){KU.prototype.l1.call(this)};
|
|
g.p.release=function(){KU.prototype.release.call(this);this.Mp.get().removeListener(this)};FFC.prototype.build=function(A,L,B,f){if(L=ud(A,B,f,this.IA,this.Mp,this.j4,this.U,this.N,this.FD))return L;if(Ob(f,Z0D()))return new wf(B,f,this.j4,this.Fr,this.IA,A,this.W,this.V,this.Mp,this.gi,this.FD,this.N,new pp(this.Mp));if(Ob(f,Rav()))return new I2(B,f,this.j4,this.Fr,this.IA,A,this.W,this.Mp,this.gi,this.FD,this.N,new pp(this.Mp));if(Ob(f,{qQ:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],o8:["LAYOUT_TYPE_SURVEY"]}))return new yg(B,f,A,this.IA,this.W,this.Mp,this.FD);if(Ob(f,
|
|
{qQ:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],o8:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new R2(B,f,A,this.IA,this.j4);if(Ob(f,zkE()))return new qS(B,f,A,this.IA,this.Mp,this.FD);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};DD6.prototype.build=function(A,L,B,f){if(L=ud(A,B,f,this.IA,this.Mp,this.j4,this.U,this.N,this.FD))return L;if(Ob(f,Z0D()))return new wf(B,f,this.j4,this.Fr,this.IA,A,this.W,this.V,this.Mp,this.gi,this.FD,this.N,new pp(this.Mp));if(Ob(f,Rav()))return new I2(B,f,this.j4,this.Fr,this.IA,A,this.W,this.Mp,this.gi,this.FD,this.N,new pp(this.Mp));throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
|
|
};g.G(j$,W$);j$.prototype.startRendering=function(A){W$.prototype.startRendering.call(this,A);if(A.renderingContent?qFC(A,BV(this.hF.get(),2)||void 0):PF(this.layout.clientMetadata,"metadata_ad_video_is_listed"))A=A.renderingContent?vfw(A,BV(this.hF.get(),2)||void 0):PF(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.AA.get().S.Kr("onAdMetadataAvailable",A)};I8e.prototype.build=function(A,L,B,f){if(Ob(f,dD8())||f.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.y(f.renderingContent,xm)!==void 0)return new j$(A,B,f,this.IA,this.Mp,this.j4,this.W,this.AA,this.N,this.hF);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};w80.prototype.build=function(A,L,B,f){if(Ob(f,dD8()))return new j$(A,B,f,this.IA,this.Mp,this.j4,this.W,this.AA,this.N,this.hF);if(A=ud(A,B,f,this.IA,this.Mp,this.j4,this.W,this.N,this.FD))return A;throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};Mr.prototype.clone=function(A){var L=this;return new Mr(function(){return L.triggerId},A)};Yd.prototype.clone=function(A){var L=this;return new Yd(function(){return L.triggerId},A)};U7.prototype.clone=function(A){var L=this;return new U7(function(){return L.triggerId},A)};WW.prototype.clone=function(A){var L=this;return new WW(function(){return L.triggerId},A)};vW.prototype.clone=function(A){var L=this;return new vW(function(){return L.triggerId},A)};qr.prototype.clone=function(A){var L=this;return new qr(function(){return L.triggerId},A)};g.G(Tl,g.Y);var CDy={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 nJ={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};var zM={s_s:1,x7r:2,uTF:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.G(Jn,g.Y);g.p=Jn.prototype;g.p.IB=function(A){if(this.N)Dh("Unexpected multiple fetch instructions for the current content");else{this.N=A;A=g.m(this.hf.get().Qy);for(var L=A.next();!L.done;L=A.next())Zy(this,this.N,L.value)}};
|
|
g.p.Xx=function(A){if(!this.N){if(!this.FD.get().S.K().J("high_ccv_client_side_caching_h5")){var L;(L=this.sE)==null||L.get().V_(A.identifier)}Ay(this.j4.get(),"ads_nfi","a.cpoa;cid."+A.identifier);return!1}Zy(this,this.N,A);return!0};
|
|
g.p.yg=function(){};
|
|
g.p.sj=function(A){this.N&&this.N.contentCpn!==A&&(Dh("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:A,fetchInstructionsCpn:this.N.contentCpn}),this.N=null)};
|
|
g.p.dR=function(A){this.N&&this.N.contentCpn!==A&&Dh("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:A,fetchInstructionsCpn:this.N.contentCpn},!0);this.N=null};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);this.N=null};var yY=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Q8B=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.G(F8,g.Y);g.p=F8.prototype;g.p.lq=function(A,L){var B=this;if(L.layoutType==="LAYOUT_TYPE_MEDIA"&&(Ug(L,this.T)||Ug(L,Q8B))){var f=BV(this.hF.get(),2),K=this.U(L,f||void 0);K?LU(this.V.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var V=[WEC(B.N.get(),K.contentCpn,K.mI,function(J){return B.D(J.slotId,"core",K,aJ(B.Le.get(),J))},K.inPlayerSlotId)];
|
|
K.instreamAdPlayerUnderlayRenderer&&vy(B.FD.get())&&V.push(AwE(B,K,K.instreamAdPlayerUnderlayRenderer));return V}):Dh("Expected MediaLayout to carry valid opportunity on entered",A,L)}};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.CD=function(){};g.G(Dy,g.Y);Dy.prototype.sj=function(A,L,B,f,K,V,J){var R=this,Z=BV(this.hF.get(),1);Z.hI?this.Mp.get().rq():(ZBe(this.j$.get(),f),LU(this.W.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return lM(R.N.get(),f,K,V,A,L,J,Z,"")}),Duk(this.V))};
|
|
Dy.prototype.dR=function(){};g.G(d3,g.Y);g.G(IU,g.Y);IU.prototype.onCueRangeEnter=function(){};
|
|
IU.prototype.onCueRangeExit=function(A){var L=this,B=this.N.get(A);B&&(this.N.delete(A),this.FA.get().removeCueRange(A),LU(this.W.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var f=L.V.get();f=oE(f.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},B,{slotId:f,slotEntryTrigger:B.slotEntryTrigger?rw0(B.slotId,f,B.slotEntryTrigger):void 0,slotFulfillmentTriggers:sJk(B.slotId,f,B.slotFulfillmentTriggers),slotExpirationTriggers:sJk(B.slotId,f,B.slotExpirationTriggers)})]},
|
|
B.slotId))};
|
|
IU.prototype.sj=function(){for(var A=g.m(this.N.keys()),L=A.next();!L.done;L=A.next())L=L.value,this.FA.get().removeCueRange(L);this.N.clear()};
|
|
IU.prototype.dR=function(){};g.G(w3,g.Y);g.p=w3.prototype;g.p.cV=function(){};
|
|
g.p.u0=function(A){var L=this;g.AR(g.ol(),function(){var B=L.N.get(A);B&&Dh("Expected layouts to be properly unscheduled",A,void 0,{slotType:A.slotType,layoutTypes:[].concat(g.x7(B)).map(function(f){return f.layoutType})})},0)};
|
|
g.p.rI=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(A,L){this.N.has(A)||this.N.set(A,new Set);this.N.get(A).add(L)};
|
|
g.p.Z0=function(A,L){this.F5.has(A)&&this.F5.get(A)===L&&Dh("Unscheduled a Layout that is currently entered.",A,L);if(this.N.has(A)){var B=this.N.get(A);B.has(L)?(B.delete(L),B.size===0&&this.N.delete(A)):Dh("Trying to unscheduled a Layout that was not scheduled.",A,L)}else Dh("Trying to unscheduled a Layout that was not scheduled.",A,L)};
|
|
g.p.lq=function(A,L){this.F5.set(A,L)};
|
|
g.p.CD=function(A){this.F5.delete(A)};
|
|
g.p.O6=function(){};g.p=Lw6.prototype;g.p.init=function(){};
|
|
g.p.LY=function(){return this.slot};
|
|
g.p.I9=function(){this.callback.rI(this.slot)};
|
|
g.p.mp=function(){this.callback.n8(this.slot)};
|
|
g.p.release=function(){};jM.prototype.build=function(A,L){return new Lw6(A,L)};g.p=oXk.prototype;g.p.init=function(){};
|
|
g.p.LY=function(){return this.slot};
|
|
g.p.I9=function(){J3(this.Mp.get(),"ad-showing");this.callback.rI(this.slot)};
|
|
g.p.mp=function(){this.callback.n8(this.slot);Sp(this.Mp.get(),"ad-showing")};
|
|
g.p.release=function(){};g.p=BUy.prototype;g.p.init=function(){};
|
|
g.p.LY=function(){return this.slot};
|
|
g.p.I9=function(){J3(this.Mp.get(),"ad-showing");J3(this.Mp.get(),"ad-interrupting");this.W=this.Mp.get().isAtLiveHead();this.N=Math.ceil(Date.now()/1E3);this.callback.rI(this.slot)};
|
|
g.p.mp=function(){Sp(this.Mp.get(),"ad-showing");Sp(this.Mp.get(),"ad-interrupting");var A=this.W?Infinity:KY(this.Mp.get(),1,!0)+Math.floor(Date.now()/1E3)-this.N;this.Mp.get().S.seekTo(A,void 0,void 0,1);this.callback.n8(this.slot)};
|
|
g.p.release=function(){};g.p=fo1.prototype;g.p.init=function(){};
|
|
g.p.LY=function(){return this.slot};
|
|
g.p.I9=function(){J3(this.Mp.get(),"ad-showing");J3(this.Mp.get(),"ad-interrupting");this.callback.rI(this.slot)};
|
|
g.p.mp=function(){this.Mp.get().rq();Sp(this.Mp.get(),"ad-showing");Sp(this.Mp.get(),"ad-interrupting");this.callback.n8(this.slot)};
|
|
g.p.release=function(){this.Mp.get().rq()};g3.prototype.build=function(A,L){if(e6(L,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new oXk(A,L,this.Mp);if(L.slotEntryTrigger instanceof Qg&&e6(L,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new BUy(A,L,this.Mp);if(e6(L,[],"SLOT_TYPE_PLAYER_BYTES"))return new fo1(A,L,this.Mp);throw new n("Unsupported slot with type "+L.slotType+" and client metadata: "+(xX(L.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.G(G0,g.Y);G0.prototype.N=function(A){for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next()){f=f.value;var K=f.trigger;K instanceof cW&&f.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&K.triggeringLayoutId===A&&L.push(f)}L.length?py(this.Ua(),L):Dh("Mute requested but no registered triggers can be activated.")};g.G(sM,G0);g.p=sM.prototype;g.p.dI=function(A,L){if(L)if(A==="skip-button"){A=[];for(var B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next()){f=f.value;var K=f.trigger;K instanceof cW&&f.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&K.triggeringLayoutId===L&&A.push(f)}A.length&&py(this.Ua(),A)}else XW(this.FD.get(),"supports_multi_step_on_desktop")?A==="ad-action-submit-survey"&&r3(this,L):A==="survey-submit"?r3(this,L):A==="survey-single-select-answer-button"&&r3(this,L)};
|
|
g.p.Fj=function(A){G0.prototype.N.call(this,A)};
|
|
g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof PW||L instanceof cW))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in AdUxUpdateTriggerAdapter.");this.nY.set(L.triggerId,new e$(A,L,B,f))};
|
|
g.p.uH=function(A){this.nY.delete(A.triggerId)};
|
|
g.p.kp=function(){};
|
|
g.p.lc=function(){};
|
|
g.p.cS=function(){};g.G(H_,g.Y);g.p=H_.prototype;
|
|
g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof Mr||L instanceof Yd||L instanceof U7||L instanceof WW||L instanceof vW||L instanceof qr||L instanceof $d||L instanceof hy||L instanceof ty||L instanceof bh||L instanceof ih||L instanceof HW))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in AdsControlFlowEventTriggerAdapter");A=new e$(A,L,B,f);this.nY.set(L.triggerId,A);L instanceof
|
|
vW&&this.D.has(L.triggeringSlotId)&&py(this.N(),[A]);L instanceof Mr&&this.V.has(L.triggeringSlotId)&&py(this.N(),[A]);L instanceof hy&&this.W.has(L.triggeringLayoutId)&&py(this.N(),[A])};
|
|
g.p.uH=function(A){this.nY.delete(A.triggerId)};
|
|
g.p.cV=function(A){this.D.add(A.slotId);for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger instanceof vW&&A.slotId===f.trigger.triggeringSlotId&&L.push(f);L.length>0&&py(this.N(),L)};
|
|
g.p.u0=function(A){this.D.delete(A.slotId);for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next()){f=f.value;var K=f.trigger;K instanceof qr&&K.triggeringSlotId===A.slotId&&L.push(f)}L.length>0&&py(this.N(),L)};
|
|
g.p.Ch=function(A){for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next()){f=f.value;var K=f.trigger;K instanceof $d&&K.slotType===A.slotType&&K.N!==A.slotId&&L.push(f)}L.length>0&&py(this.N(),L)};
|
|
g.p.rI=function(A){this.V.add(A.slotId);for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger instanceof Mr&&A.slotId===f.trigger.triggeringSlotId&&L.push(f);L.length>0&&py(this.N(),L)};
|
|
g.p.n8=function(A){this.V.delete(A.slotId);this.U.add(A.slotId);for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())if(f=f.value,f.trigger instanceof Yd)A.slotId===f.trigger.triggeringSlotId&&L.push(f);else if(f.trigger instanceof HW){var K=f.trigger;A.slotId===K.slotId&&this.W.has(K.triggeringLayoutId)&&L.push(f)}L.length>0&&py(this.N(),L)};
|
|
g.p.sf=function(A){for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger instanceof U7&&A.slotId===f.trigger.triggeringSlotId&&L.push(f);L.length>0&&py(this.N(),L)};
|
|
g.p.xg=function(A){for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger instanceof WW&&A.slotId===f.trigger.triggeringSlotId&&L.push(f);L.length>0&&py(this.N(),L)};
|
|
g.p.R4=function(A,L){this.T.add(L.layoutId)};
|
|
g.p.Z0=function(A,L){this.T.delete(L.layoutId)};
|
|
g.p.lq=function(A,L){this.W.add(L.layoutId);for(var B=[],f=g.m(this.nY.values()),K=f.next();!K.done;K=f.next())if(K=K.value,K.trigger instanceof hy)L.layoutId===K.trigger.triggeringLayoutId&&B.push(K);else if(K.trigger instanceof ih){var V=K.trigger;A.slotType===V.slotType&&L.layoutType===V.layoutType&&L.layoutId!==V.N&&B.push(K)}else K.trigger instanceof HW&&(V=K.trigger,L.layoutId===V.triggeringLayoutId&&this.U.has(V.slotId)&&B.push(K));B.length>0&&py(this.N(),B)};
|
|
g.p.CD=function(A,L,B){this.W.delete(L.layoutId);A=[];for(var f=g.m(this.nY.values()),K=f.next();!K.done;K=f.next())if(K=K.value,K.trigger instanceof ty&&L.layoutId===K.trigger.triggeringLayoutId&&A.push(K),K.trigger instanceof bh){var V=K.trigger;L.layoutId===V.triggeringLayoutId&&V.N.includes(B)&&A.push(K)}A.length>0&&py(this.N(),A)};
|
|
g.p.O6=function(){};
|
|
g.p.sj=function(){this.U.clear()};
|
|
g.p.dR=function(){};g.G(hn,g.Y);hn.prototype.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof rf))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in CloseRequestedTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f))};
|
|
hn.prototype.uH=function(A){this.nY.delete(A.triggerId)};g.G(tn,g.Y);tn.prototype.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof GA||L instanceof O7))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f))};
|
|
tn.prototype.uH=function(A){this.nY.delete(A.triggerId)};
|
|
tn.prototype.sj=function(A){for(var L=[],B=L.push,f=B.apply,K=[],V=g.m(this.nY.values()),J=V.next();!J.done;J=V.next())J=J.value,J.trigger instanceof GA&&J.trigger.O5===A&&K.push(J);f.call(B,L,g.x7(K));B=L.push;f=B.apply;K=[];V=g.m(this.nY.values());for(J=V.next();!J.done;J=V.next())J=J.value,J.trigger instanceof O7&&J.trigger.N!==A&&K.push(J);f.call(B,L,g.x7(K));L.length&&py(this.N(),L)};
|
|
tn.prototype.dR=function(A){for(var L=[],B=L.push,f=B.apply,K=[],V=g.m(this.nY.values()),J=V.next();!J.done;J=V.next()){J=J.value;var R=J.trigger;R instanceof O7&&R.N===A&&K.push(J)}f.call(B,L,g.x7(K));L.length&&py(this.N(),L)};g.G(kh,g.Y);g.p=kh.prototype;g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");var K="adtriggercuerange:"+L.triggerId;if(L instanceof Qg)KwD(this,A,L,B,f,K,L.N.start,L.N.end,L.O5,L.visible);else if(L instanceof s7)KwD(this,A,L,B,f,K,0x7ffffffffffff,0x8000000000000,L.O5,L.visible);else throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in CueRangeTriggerAdapter");};
|
|
g.p.uH=function(A){var L=this.nY.get(A.triggerId);L&&this.FA.get().removeCueRange(L.cueRangeId);this.nY.delete(A.triggerId)};
|
|
g.p.onCueRangeEnter=function(A){if(A=V6y(this,A))if(A=this.nY.get(A))if(g.x(uF(this.Mp.get()),32))this.N.add(A.cueRangeId);else{var L=A==null?void 0:A.rj.trigger;(L instanceof Qg||L instanceof s7)&&py(this.W(),[A.rj])}};
|
|
g.p.onCueRangeExit=function(A){(A=V6y(this,A))&&(A=this.nY.get(A))&&this.N.delete(A.cueRangeId)};
|
|
g.p.H9=function(A){if(IA(A,16)<0){A=g.m(this.N);for(var L=A.next();!L.done;L=A.next())this.onCueRangeEnter(L.value,!0);this.N.clear()}};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.lq=function(){};
|
|
g.p.CD=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.C9=function(){};
|
|
g.p.onFullscreenToggled=function(){};
|
|
g.p.mF=function(){};
|
|
g.p.iH=function(){};
|
|
g.p.T_=function(){};
|
|
g.p.onVolumeChange=function(){};
|
|
g.p.jO=function(){};
|
|
g.p.gb=function(){};g.G(T0,g.Y);
|
|
T0.prototype.fQ=function(A,L,B,f){if(this.W.has(L.triggerId)||this.V.has(L.triggerId))throw new n("Tried to re-register the trigger.");A=new e$(A,L,B,f);if(A.trigger instanceof mU)this.W.set(A.trigger.triggerId,A);else if(A.trigger instanceof kd)this.V.set(A.trigger.triggerId,A);else throw new n("Incorrect TriggerType: Tried to register trigger of type "+A.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(A.trigger.triggerId)&&A.slot.slotId===this.N&&py(this.U(),[A])};
|
|
T0.prototype.uH=function(A){this.W.delete(A.triggerId);this.V.delete(A.triggerId)};
|
|
T0.prototype.Y_=function(A){A=A.slotId;if(this.N!==A){var L=[];this.N!=null&&L.push.apply(L,g.x7(JwC(this.V,this.N)));A!=null&&L.push.apply(L,g.x7(JwC(this.W,A)));this.N=A;L.length&&py(this.U(),L)}};g.G(l4,g.Y);g.p=l4.prototype;g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof Xp))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f))};
|
|
g.p.uH=function(A){this.nY.delete(A.triggerId)};
|
|
g.p.lq=function(){};
|
|
g.p.CD=function(){};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};g.G(mW,g.Y);g.p=mW.prototype;g.p.O6=function(A,L){for(var B=[],f=g.m(this.nY.values()),K=f.next();!K.done;K=f.next()){K=K.value;var V=K.trigger;V.opportunityType===A&&(V.associatedSlotId&&V.associatedSlotId!==L||B.push(K))}B.length&&py(this.N(),B)};
|
|
g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof xUe))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in OpportunityEventTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f))};
|
|
g.p.uH=function(A){this.nY.delete(A.triggerId)};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.lq=function(){};
|
|
g.p.CD=function(){};g.G(Qx,g.Y);g.p=Qx.prototype;g.p.fQ=function(A,L,B,f){A=new e$(A,L,B,f);if(L instanceof TA||L instanceof Cp||L instanceof lh||L instanceof E7||L instanceof p8D){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");this.nY.set(L.triggerId,A)}else throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in PrefetchTriggerAdapter");};
|
|
g.p.uH=function(A){this.nY.delete(A.triggerId)};
|
|
g.p.cV=function(A){var L=A.slotFulfillmentTriggers.find(function(B){return B instanceof TA});
|
|
L&&(CS(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",L.breakDurationMs,new Set([A.slotId]),!0),Ay(this.j4.get(),"ads_css","sid."+A.slotId+";bd."+L.breakDurationMs))};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.lq=function(){};
|
|
g.p.CD=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.Xx=function(A){var L=this;if(!this.N)return Ay(this.j4.get(),"ads_nfi","a.pta;cid."+A.identifier),!1;this.W&&this.W.stop();this.D&&g.Az(this.D);var B=NUE(this,A);if(!B){var f=Sg7(this),K=this.X!==void 0&&Date.now()<=this.X+1E4;Ay(this.j4.get(),"ads_ncfs","cid."+A.identifier+";cd."+A.Dj.toFixed(3)+";ccs."+K+";cfa."+this.U+";bdc."+f.length+";"+f.slice(0,6).map(function(V){return";bd."+V}).join(""));
|
|
return K?(Zy(this.gh,this.N,A),!0):!1}(f=PF(B.slot.clientMetadata,"metadata_type_triggering_cue_point"))?f.current=A:Dh("Expected triggering cue point ref to be available",B.slot);(new g.aa(function(){var V=B.trigger,J=B.slot;CS(L,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",V.breakDurationMs,new Set,!0);CS(L,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",V.breakDurationMs,new Set,!1);for(var R=0,Z=g.m(L.nY.values()),N=Z.next();!N.done;N=Z.next()){N=N.value;var F=N.trigger;
|
|
N.slot.slotId===J.slotId&&(L.nY.delete(F.triggerId),R++)}Ay(L.j4.get(),"ads_csf","sid."+J.slotId+";bd."+V.breakDurationMs+";dt."+R)},10)).start();
|
|
return!0};
|
|
g.p.yg=function(){};
|
|
g.p.sj=function(A){var L=this;this.U=!1;this.X=Date.now();if(this.N&&this.N.contentCpn!==A)Dh("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:A,fetchInstructionsCpn:this.N.contentCpn}),i4(this);else{this.V=new g.aa(function(){if(L.U)delete L.V;else{var f=L.Mp.get().getGetAdBreakContext(),K;if(Number(f==null?void 0:(K=f.livePlaybackPosition)==null?void 0:K.utcTimeMillis)>0)delete L.V,Zk8(L);else{var V;(V=L.V)==null||V.start()}}},200);
|
|
var B;(B=this.V)==null||B.start()}};
|
|
g.p.dR=function(A){this.N&&this.N.contentCpn!==A&&Dh("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:A,fetchInstructionsCpn:this.N.contentCpn},!0);i4(this)};
|
|
g.p.IB=function(A){var L=this;if(this.N)Dh("Unexpected multiple fetch instructions for the current content");else{this.N=A;A=D1w(A);this.W=new g.aa(function(){Zk8(L)},A?A:6E5);
|
|
this.W.start();this.D=new g.aa(function(){L.N&&(L.W&&(L.W.stop(),L.W.start()),RLw(L,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},FwE(this.N));
|
|
A=this.Mp.get().getCurrentTimeSec(1,!1);for(var B=g.m(this.hf.get().Qy),f=B.next();!f.done;f=B.next())f=f.value,Ay(this.j4.get(),"nocache","ct."+Date.now()+";cmt."+A+";d."+f.Dj.toFixed(3)+";tw."+(f.startSecs-A)+";cid."+f.identifier+";")}};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);i4(this)};g.G($h,g.Y);g.p=$h.prototype;g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof xd))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f));A=this.N.has(L.triggeringLayoutId)?this.N.get(L.triggeringLayoutId):new Set;A.add(L);this.N.set(L.triggeringLayoutId,A)};
|
|
g.p.uH=function(A){this.nY.delete(A.triggerId);if(!(A instanceof xd))throw new n("Incorrect TriggerType: Tried to unregister trigger of type "+A.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var L=this.W.get(A.triggerId);L&&(L.dispose(),this.W.delete(A.triggerId));if(L=this.N.get(A.triggeringLayoutId))L.delete(A),L.size===0&&this.N.delete(A.triggeringLayoutId)};
|
|
g.p.cV=function(){};
|
|
g.p.u0=function(){};
|
|
g.p.Ch=function(){};
|
|
g.p.rI=function(){};
|
|
g.p.n8=function(){};
|
|
g.p.sf=function(){};
|
|
g.p.xg=function(){};
|
|
g.p.R4=function(){};
|
|
g.p.Z0=function(){};
|
|
g.p.O6=function(){};
|
|
g.p.lq=function(A,L){var B=this;if(this.N.has(L.layoutId)){A=this.N.get(L.layoutId);A=g.m(A);var f=A.next();for(L={};!f.done;L={Id:void 0},f=A.next())L.Id=f.value,f=new g.aa(function(K){return function(){var V=B.nY.get(K.Id.triggerId);py(B.V(),[V])}}(L),L.Id.durationMs),f.start(),this.W.set(L.Id.triggerId,f)}};
|
|
g.p.CD=function(){};g.G(X8,g.Y);X8.prototype.fQ=function(A,L){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in VideoTransitionTriggerAdapter.");};
|
|
X8.prototype.uH=function(A){this.nY.delete(A.triggerId)};MF.prototype.z$=function(A){return A.kind==="AD_PLACEMENT_KIND_START"};g.G(W_,g.Y);W_.prototype.logEvent=function(A){this.N(A)};
|
|
W_.prototype.N=function(A,L,B,f,K,V,J,R,Z,N,F,D){var I=this;D=D===void 0?0:D;XW(this.FD.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+A,"slot:",K,"layout:",V,"ping:",J,"Opportunity:",{opportunityType:L,associatedSlotId:B,Ta1:f,g34:R,adSlotLoggingData:Z,adLayoutLoggingData:N});try{var d=function(){if(!I.FD.get().S.K().J("html5_disable_client_tmp_logs")&&A!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){A||Dh("Empty PACF event type",K,V);var w=uT(I.W.get()),r={eventType:A,eventOrder:++I.eventCount},
|
|
h={};K&&(h.slotData=zb(w,K));V&&(h.layoutData=Gxw(w,V));J&&(h.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:J.N.serializedAdPingMetadata,pingIndex:J.index});R&&(h.triggerData=nk(R.trigger,R.category));L&&(h.opportunityData=r07(w,L,B,f));w={organicPlaybackContext:{contentCpn:BV(I.hF.get(),1).clientPlaybackNonce}};w.organicPlaybackContext.isLivePlayback=BV(I.hF.get(),1).iC;var Q;w.organicPlaybackContext.isMdxPlayback=(Q=BV(I.hF.get(),1))==null?void 0:
|
|
Q.isMdxPlayback;var l;if((l=BV(I.hF.get(),1))==null?0:l.daiEnabled)w.organicPlaybackContext.isDaiContent=!0;var C;if(Q=(C=BV(I.hF.get(),2))==null?void 0:C.clientPlaybackNonce)w.adVideoPlaybackContext={adVideoCpn:Q};w&&(h.externalContext=w);r.adClientData=h;Z&&(r.serializedSlotAdServingData=Z.serializedSlotAdServingDataEntry);N&&(r.serializedAdServingData=N.serializedAdServingDataEntry);F&&(r.errorInfo=F);g.pE("adsClientStateChange",{adsClientEvent:r})}};
|
|
D&&D>0?g.AR(g.ol(),function(){return d()},D):d()}catch(w){XW(this.FD.get(),"html5_log_pacf_logging_errors")&&g.AR(g.ol(),function(){Dh(w instanceof Error?w:String(w),K,V,{pacf_message:"exception during pacf logging"})})}};g.G(v_,W_);v_.prototype.N=function(A,L,B,f,K,V,J,R,Z,N,F){var D=this.FD.get();g.wY(D.S.K())?(D=this.FD.get(),D=g.Am(D.S.K().experiments,"H5_async_logging_delay_ms")):D=void 0;W_.prototype.N.call(this,A,L,B,f,K,V,J,R,Z,N,F,D)};qF.prototype.clear=function(){this.N.clear()};P_.prototype.state=function(){return this.N==="fulfilled"?{state:"fulfilled",value:this.result}:this.N==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}};
|
|
P_.prototype.U=function(A){eM(A)||xh(A)?A2(nS(A),this.U.bind(this),this.reject.bind(this)):(this.N="fulfilled",this.result=A,aU(this))};
|
|
P_.prototype.reject=function(A){this.N="rejected";this.error=A;aU(this)};
|
|
var xh=iI(function(A){return Y1E(A)?A instanceof P_:!1});var KP=window.j61||"it";R4.prototype.Qs=function(A){this.client=A};
|
|
R4.prototype.N=function(){this.clear();this.csn=g.sF()};
|
|
R4.prototype.clear=function(){this.V.clear();this.W.clear();this.U.clear();this.csn=null};Ny.prototype.Qs=function(A){g.fg(ZD().Qs).bind(ZD())(A)};
|
|
Ny.prototype.clear=function(){g.fg(ZD().clear).bind(ZD())()};g.p=FX.prototype;g.p.Qs=function(A){this.client=A};
|
|
g.p.qf=function(A,L){var B=this;L=L===void 0?{}:L;g.fg(function(){var f,K,V,J=((f=g.y(A==null?void 0:A.commandMetadata,g.jy))==null?void 0:f.rootVe)||((K=g.y(A==null?void 0:A.commandMetadata,fRW))==null?void 0:(V=K.screenVisualElement)==null?void 0:V.uiType);if(J){f=g.y(A==null?void 0:A.commandMetadata,GKf);if(f==null?0:f.parentTrackingParams){var R=g.jB(f.parentTrackingParams);if(f.parentCsn)var Z=f.parentCsn}else L.clickedVisualElement?R=L.clickedVisualElement:A.clickTrackingParams&&(R=g.jB(A.clickTrackingParams));
|
|
a:{f=g.y(A,g.FZ);K=g.y(A,pwO);if(f){if(K=XFw(f,"VIDEO")){f={token:K,videoId:f.videoId};break a}}else if(K&&(f=XFw(K,"PLAYLIST"))){f={token:f,playlistId:K.playlistId};break a}f=void 0}L=Object.assign({},{cttAuthInfo:f,parentCsn:Z},L);if(g.h_("expectation_logging")){var N;L.loggingExpectations=((N=g.y(A==null?void 0:A.commandMetadata,fRW))==null?void 0:N.loggingExpectations)||void 0}dS(B,J,R,L)}else g.CE(new g.iL("Error: Trying to create a new screen without a rootVeType",A))})()};
|
|
g.p.clickCommand=function(A,L,B){A=A.clickTrackingParams;B=B===void 0?0:B;A?(B=g.sF(B===void 0?0:B))?(uf(this.client,B,g.jB(A),L),L=!0):L=!1:L=!1;return L};
|
|
g.p.stateChanged=function(A,L,B){this.visualElementStateChanged(g.jB(A),L,B===void 0?0:B)};
|
|
g.p.visualElementStateChanged=function(A,L,B){B=B===void 0?0:B;B===0&&this.W.has(B)?this.G.push([A,L]):WwS(this,A,L,B)};yG.prototype.fetch=function(A,L,B){var f=this,K=PTL(A,L,B);return new Promise(function(V,J){function R(){if(B==null?0:B.er)try{var N=f.handleResponse(A,K.status,K.response,B);V(N)}catch(F){J(F)}else V(f.handleResponse(A,K.status,K.response,B))}
|
|
K.onerror=R;K.onload=R;var Z;K.send((Z=L.body)!=null?Z:null)})};
|
|
yG.prototype.handleResponse=function(A,L,B,f){B=B.replace(")]}'","");try{var K=JSON.parse(B)}catch(V){g.CE(new g.iL("JSON parsing failed after XHR fetch",A,L,B));if((f==null?0:f.er)&&B)throw new g.n0(1,"JSON parsing failed after XHR fetch");K={}}L!==200&&(g.CE(new g.iL("XHR API fetch failed",A,L,B)),K=Object.assign({},K,{errorMetadata:{status:L}}));return K};jH.getInstance=function(){var A=g.bB("ytglobal.storage_");A||(A=new jH,g.hf("ytglobal.storage_",A));return A};
|
|
jH.prototype.estimate=function(){var A,L,B;return g.c(function(f){A=navigator;return((L=A.storage)==null?0:L.estimate)?f.return(A.storage.estimate()):((B=A.webkitTemporaryStorage)==null?0:B.queryUsageAndQuota)?f.return(x1E()):f.return()})};
|
|
g.hf("ytglobal.storageClass_",jH);gS.prototype.M4=function(A){this.handleError(A)};
|
|
gS.prototype.logEvent=function(A,L){switch(A){case "IDB_DATA_CORRUPTED":g.h_("idb_data_corrupted_killswitch")||this.N("idbDataCorrupted",L);break;case "IDB_UNEXPECTEDLY_CLOSED":this.N("idbUnexpectedlyClosed",L);break;case "IS_SUPPORTED_COMPLETED":g.h_("idb_is_supported_completed_killswitch")||this.N("idbIsSupportedCompleted",L);break;case "QUOTA_EXCEEDED":nX0(this,L);break;case "TRANSACTION_ENDED":this.V&&Math.random()<=.1&&this.N("idbTransactionEnded",L);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":A=
|
|
Object.assign({},L,{hasWindowUnloaded:this.W}),this.N("idbTransactionAborted",A)}};var v0={},jG6=g.oI("yt-player-local-media",{JU:(v0.index={fO:2},v0.media={fO:2},v0.captions={fO:5},v0),shared:!1,upgrade:function(A,L){L(2)&&(g.TU(A,"index"),g.TU(A,"media"));L(5)&&g.TU(A,"captions");L(6)&&(lc(A,"metadata"),lc(A,"playerdata"))},
|
|
version:5});var CsO={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},qZ;a:{var P0=g.fa();P0=P0.toLowerCase();if(g.a8(P0,"android")){var ixI=P0.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(ixI){var $Vw=parseFloat(ixI[1]);if($Vw<100){qZ=$Vw;break a}}var XkK=P0.match("("+Object.keys(CsO).join("|")+")");qZ=XkK?CsO[XkK[0]]:0}else qZ=void 0}var vL=qZ,WL=vL>=0;var zL6={clientName:"UNKNOWN_INTERFACE",clientVersion:"unknown",clientTheme:"UNKNOWN_THEME",clientLanguage:"en",clientLocation:"US",clientLabel:"",cssPrefix:"",hasDisplay:!0,webpSupport:!1,forcedExperiments:"",requestVideoQuality:"",forceAdsUrl:"",forceHomeAdsUrl:"",internalExperimentFlags:[],oAuthClientProfiles:{},payments:{url:"https://payments.youtube.com"},xsrfToken:"",creditsUrl:"",startTime:0,authConfig:{accessTokenDiscountedExpirationMinutes:5,accessTokenServerExpirationMinutes:5,backgroundRefreshMinRemainingTokenTimeSec:0,
|
|
defaultPlayerAccessTokenExpirationMs:-1,accountManagerTokenRefreshRetryDelayMs:0,accountManagerTokenRefreshMaxDelayMs:0,enableBackgroundTokenRefresh:!1,enableBackgroundTokenRefreshOauthCallback:!1,enableAuthenticationFailClosed:!1,enableAccountManagerAccountPropagation:!1,supexSignOutDisabled:!1,enableSwitchAccountsButton:!1,enableTectonicPlayerOauthCallback:!1,enableOAuthCredShare:!1},settings:{defaultValues:new Map([["AUTONAV",!0],["AUTONAV_KIDS",!1],["ENABLE_SOUND",!0],["ENABLE_PREVIEWS_WITH_SOUND",
|
|
!0],["MDX_AUTOPLAY_ENABLED",!0],["SAFETY_MODE",!1],["HOME_ENABLE_PERSONAL_RESULTS",!0],["PRE_APP_USER_SETTING_FOR_LIVING_ROOM",!0]])}};var aoE=er(function(){var A,L;return(L=(A=window).matchMedia)==null?void 0:L.call(A,"(prefers-reduced-motion: reduce)").matches});var rS;g.G4=new Id;rS=0;var Km=RDe()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.ns?!0:!1;var G8={c4:function(A){A[S[14]]()},
|
|
AV:function(A,L){A[S[12]](0,L)},
|
|
sc:function(A,L){var B=A[0];A[0]=A[L%A[S[9]]];A[L%A[S[9]]]=B}};var vFQ={I5s:"adunit",fFp:"detailpage",OQr:"editpage",BbD:"embedded",gms:"leanback",xEx:"previewpage",puj:"profilepage",eK:"unplugged",fZL:"playlistoverview",OlF:"sponsorshipsoffer",xo4:"shortspage",zP4:"handlesclaiming",GMr:"immersivelivepage",zXD:"creatormusic",of4:"immersivelivepreviewpage",dV4:"admintoolyurt",s$s:"shortsaudiopivot",XFr:"consumption",GbF:"background_audio_playback"};var Zyv=2592E3;var xu,OxK,jQ;xu={};g.m6=(xu.STOP_EVENT_PROPAGATION="html5-stop-propagation",xu.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",xu.IV_DRAWER_OPEN="ytp-iv-drawer-open",xu.MAIN_VIDEO="html5-main-video",xu.VIDEO_CONTAINER="html5-video-container",xu.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",xu.HOUSE_BRAND="house-brand",xu);OxK={};jQ=(OxK.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",OxK.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",OxK);var GiQ={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var hDS={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},by6={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"},gn6={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var ce8={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Fk[S[8]][S[18]]=function(A,L){this[S[10]][A]!==L&&(this[S[10]][A]=L,this[S[11]]=S[21])};
|
|
g.Fk[S[8]][S[16]]=function(A){A1(4,this);return this[S[10]][A]||null};
|
|
g.Fk[S[8]][S[76]]=function(){this[S[11]]||(this[S[11]]=h1(32,this));return this[S[11]]};
|
|
g.Fk[S[8]][S[35]]=function(){var A=new g.Fk(this[S[29]],this[S[7]]);A[S[23]]=this[S[23]];A[S[17]]=this[S[17]];A[S[37]]=this[S[37]];A[S[10]]=g.is(this[S[10]]);A[S[11]]=this[S[11]];return A};
|
|
var KvL=[AN0];g.i6.prototype.getLanguageInfo=function(){return this.ri};
|
|
g.i6.prototype.getXtags=function(){if(!this.xtags){var A=this.id.split(";");A.length>1&&(this.xtags=A[1])}return this.xtags};
|
|
g.i6.prototype.toString=function(){return this.ri.name};
|
|
g.i6.prototype.isAutoDubbed=function(){return this.ri.getIsAutoDubbed()};
|
|
g.i6.prototype.getLanguageInfo=g.i6.prototype.getLanguageInfo;g.i6.prototype.isAutoDubbed=g.i6.prototype.isAutoDubbed;$Q.prototype.equals=function(A){return this.W===A.W&&this.N===A.N&&this.V===A.V&&this.reason===A.reason&&(!OO||this.lC===A.lC)};
|
|
$Q.prototype.isLocked=function(){return this.V&&!!this.W&&this.W===this.N};
|
|
$Q.prototype.compose=function(A){if(A.V&&EO(A))return fr;if(A.V||EO(this))return A;if(this.V||EO(A))return this;var L=this.W&&A.W?Math.max(this.W,A.W):this.W||A.W,B=this.N&&A.N?Math.min(this.N,A.N):this.N||A.N;L=Math.min(L,B);var f=0;OO&&(f=this.lC!==0&&A.lC!==0?Math.min(this.lC,A.lC):this.lC===0?A.lC:this.lC);return OO&&L===this.W&&B===this.N&&f===this.lC||!OO&&L===this.W&&B===this.N?this:OO?new $Q(L,B,!1,B===this.N&&f===this.lC?this.reason:A.reason,f):new $Q(L,B,!1,B===this.N?this.reason:A.reason)};
|
|
$Q.prototype.U=function(A){return!A.video||OO&&this.lC!==0&&this.lC<A.lC?!1:kiD(this,A.video.quality)};
|
|
var EgK=g.XX("auto","hd1080",!1,"l"),e00=g.XX("auto","large",!1,"l"),fr=g.XX("auto","auto",!1,"p"),OO=!1;YQ.prototype.KO=function(A){A=A||fr;for(var L=g.Mi(this.videoInfos,function(J){return A.U(J)}),B=[],f={},K=0;K<L.length;K++){var V=L[K].video;
|
|
f[V.quality]||(B.push(V),f[V.quality]=!0)}return B};
|
|
YQ.prototype.Q9=function(A){A=A||fr;return g.Mi(this.videoInfos,function(L){return A.U(L)})};
|
|
YQ.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var xRv=new Set(["356"]);g.G(UO,g.Y);UO.prototype.l1=function(){g.Y.prototype.l1.call(this)};g.p=g.Lq.prototype;g.p.MB=function(A){this.segments.push(A)};
|
|
g.p.NE=function(A){return!!this.vA(A)};
|
|
g.p.getDuration=function(A){return(A=this.vA(A))?A.duration:0};
|
|
g.p.Bv=function(A){return this.getDuration(A)};
|
|
g.p.w7=function(){return 0};
|
|
g.p.OI=function(){return this.segments.length?this.segments[0].XD:-1};
|
|
g.p.wX=function(A){return(A=this.vA(A))?A.ingestionTime:NaN};
|
|
g.p.uq=function(){return this.segments.length?this.segments[this.segments.length-1].XD:-1};
|
|
g.p.Kd=function(A){return this.uq()===A&&!this.W&&A>=0};
|
|
g.p.ag=function(){var A=this.segments[this.segments.length-1];return A?A.endTime:NaN};
|
|
g.p.vy=function(){return this.segments[0].startTime};
|
|
g.p.gW=function(){return this.segments.length};
|
|
g.p.vB=function(){return 0};
|
|
g.p.NV=function(A){return(A=this.Fn(A))?A.XD:-1};
|
|
g.p.pU=function(A){return(A=this.vA(A))?A.sourceURL:""};
|
|
g.p.getStartTime=function(A){return(A=this.vA(A))?A.startTime:0};
|
|
g.p.zU=function(A){return this.getStartTime(A)+this.getDuration(A)};
|
|
g.p.a9=OD(3);g.p.isLoaded=function(){return this.segments.length>0};
|
|
g.p.vA=function(A){if(this.N&&this.N.XD===A)return this.N;A=g.Fc(this.segments,new AI(A,0,0,0,""),function(L,B){return L.XD-B.XD});
|
|
return this.N=A>=0?this.segments[A]:null};
|
|
g.p.Fn=function(A){if(this.N&&this.N.startTime<=A&&A<this.N.startTime+this.N.duration)return this.N;A=g.Fc(this.segments,{startTime:A},function(L,B){return L.startTime-B.startTime});
|
|
return this.N=A>=0?this.segments[A]:this.segments[Math.max(0,-A-2)]};
|
|
g.p.append=function(A){if(A.length)if(A=g.Kx(A),this.segments.length){var L=this.segments.length?g.vw(this.segments).endTime:0,B=A[0].XD-this.uq();B>1&&n7v(this.segments);for(B=B>0?0:-B+1;B<A.length;B++){var f=A[B];f.startTime=L;f.endTime=f.startTime+f.duration;L+=A[B].duration;this.segments.push(A[B])}}else this.segments=A};
|
|
g.p.qe=function(){return 0};os.prototype.skip=function(A){this.N+=A};var ey={},cOd=(ey.predictStart="predictStart",ey.start="start",ey["continue"]="continue",ey.stop="stop",ey),aBv={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Fd.prototype.UK=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"])};
|
|
Fd.prototype.toString=function(){for(var A="",L=g.m(Object.keys(this.data)),B=L.next();!B.done;B=L.next())B=B.value,A+=B+":"+this.data[B]+";";return A};Hq.prototype.qE=function(){var A=this.pos;this.pos=0;var L=!1;try{kK(this,440786851)&&(this.pos=0,kK(this,408125543)&&(L=!0))}catch(B){if(B instanceof RangeError)this.pos=0,L=!1,g.CE(B);else throw B;}this.pos=A;return L};cq.prototype.set=function(A,L){this.QN.get(A);this.N[A]=L;this.url=""};
|
|
cq.prototype.get=function(A){return this.N[A]||this.QN.get(A)};
|
|
cq.prototype.MQ=function(){this.url||(this.url=GYS(this));return this.url};g.p=vq.prototype;g.p.P9=function(A,L){return A.jI?this.G?this.T=!0:this.T=sE6(this,A,L):sE6(this,A,L)};
|
|
g.p.CU=function(A){return this.W.get(A)};
|
|
g.p.t_=function(){return this.W.get("cpn")||""};
|
|
g.p.GM=function(A,L){A.QN===this.N&&(this.N=Mj(A,L));A.QN===this.U&&(this.U=Mj(A,L))};
|
|
g.p.Cn=function(){return this.N!==this.U&&!this.T};z5.prototype.w1=function(){return!!this.N&&this.index.isLoaded()};
|
|
z5.prototype.mE=function(){return!1};
|
|
z5.prototype.A6=function(A){return[A]};
|
|
z5.prototype.kW=function(A){return[A]};as.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.p=Bp.prototype;g.p.Ad=function(){return this.V&&this.b1.index.Kd(this.XD)};
|
|
g.p.isEncrypted=function(){return this.b1.info.isEncrypted()};
|
|
g.p.equals=function(A){return!(!A||A.b1!==this.b1||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.XD!==this.XD||A.N!==this.N||A.W!==this.W)};
|
|
g.p.WV=function(){return!!this.b1.info.video};
|
|
g.p.Dx=function(){var A=Sl(this),L="";g.H6(A,function(B,f){L+=f+"_"+B+"_"});
|
|
return L.slice(0,-1)};ZY.prototype.j2=function(){return this.N?this.N.MQ():""};
|
|
ZY.prototype.isDecorated=function(){return!!(this.N||this.U&&this.U.xX)};
|
|
ZY.prototype.xm=function(){return f3(this.Lr[0])};
|
|
ZY.prototype.GM=function(A,L){this.wi.GM(A,L);if(this.N){this.N=Mj(A,L);L=g.m(["acpns","cpn","daistate","skipsq"]);for(var B=L.next();!B.done;B=L.next())this.N[S[18]](B.value,null)}this.requestId=A.get("req_id")};g.G(dR,z5);g.p=dR.prototype;g.p.BB=function(){return!1};
|
|
g.p.g2=function(){return!0};
|
|
g.p.HE=function(){return!1};
|
|
g.p.mE=function(){return!this.D};
|
|
g.p.bv=function(){return new ZY([new Bp(1,this,this.initRange,"getMetadataRequestInfo")],this.D)};
|
|
g.p.X0=function(){return null};
|
|
g.p.nx=function(A){this.Z_(A);return this.g2()&&A.W&&!A.V?new ZY([new Bp(A.type,A.b1,A.range,"liveGetNextRequestInfoBySegment",A.XD,A.startTime,A.duration,A.N+A.W,NaN,!0)],this.index.pU(A.XD)):this.D_(JL(A),!1)};
|
|
g.p.tq=function(A,L){L=L===void 0?!1:L;A=this.index.NV(A);L&&(A=Math.min(this.index.uq(),A+1));return this.D_(A,!0)};
|
|
g.p.tE=function(A){mr(A)};
|
|
g.p.Z_=function(A){return A.W===0?!0:this.index.uq()>A.XD&&this.index.OI()<=A.XD+1};
|
|
g.p.update=function(A,L,B){this.index.append(A);nGv(this.index,B);A=this.index;A.W=L;A.V="update"};
|
|
g.p.w1=function(){return this.mE()?!0:z5.prototype.w1.call(this)};
|
|
g.p.D_=function(A,L){var B=this.index.pU(A),f=this.index.getStartTime(A),K=this.index.getDuration(A),V;L?K=V=0:V=this.info.lC>0?this.info.lC*K:1E3;return new ZY([new Bp(3,this,void 0,"liveCreateRequestInfoForSegment",A,f,K,0,V,!L)],B)};
|
|
g.p.xi=function(){return this.mE()?0:this.initRange.length};
|
|
g.p.dn=function(){return!1};p3.prototype.update=function(A){var L=void 0;this.W&&(L=this.W);var B=new p3,f=Array.from(A.getElementsByTagName("S"));if(f.length){var K=+Ip(A,"timescale")||1,V=(+f[0].getAttribute("t")||0)/K,J=+Ip(A,"startNumber")||0;B.U=V;var R=L?L.startSecs+L.Dj:0,Z=Date.parse(vm1(Ip(A,"yt:segmentIngestTime")))/1E3;B.D=A.parentElement.tagName==="SegmentTemplate";B.D&&(B.X=Ip(A,"media"));A=L?J-L.XD:1;B.T=A>0?0:-A+1;A=g.m(f);for(f=A.next();!f.done;f=A.next()){f=f.value;for(var N=+f.getAttribute("d")/K,F=(+f.getAttribute("yt:sid")||
|
|
0)/K,D=+f.getAttribute("r")||0,I=0;I<=D;I++)if(L&&J<=L.XD)J++;else{var d=new USk(J,R,N,Z+F,V);B.N.push(d);var w=f;var r=K,h=d.startSecs;d=w.getAttribute("yt:cuepointTimeOffset");var Q=w.getAttribute("yt:cuepointDuration");if(d&&Q){d=Number(d);h=-d/r+h;r=Number(Q)/r;Q=w.getAttribute("yt:cuepointContext")||null;var l=w.getAttribute("yt:cuepointIdentifier")||"";w=w.getAttribute("yt:cuepointEvent")||"";w=new Zc(h,r,Q,l,cOd[w]||"unknown",d)}else w=null;w&&B.V.push(w);J++;R+=N;V+=N;Z+=N+F}}B.N.length&&
|
|
(B.W=g.vw(B.N))}this.T=B.T;this.W=B.W||this.W;g.VB(this.N,B.N);g.VB(this.V,B.V);this.D=B.D;this.X=B.X;this.U===-1&&(this.U=B.getStreamTimeOffset())};
|
|
p3.prototype.getStreamTimeOffset=function(){return this.U===-1?0:this.U};g.G(jl,g.Lq);g.p=jl.prototype;g.p.w7=function(){return this.So};
|
|
g.p.NE=function(A,L){A=gR(this,A);return A>=0&&(L||!this.segments[A].pending)};
|
|
g.p.OI=function(){return this.CO?this.segments.length?this.Fn(this.vy()).XD:-1:g.Lq.prototype.OI.call(this)};
|
|
g.p.vy=function(){if(this.SD)return 0;if(!this.CO)return g.Lq.prototype.vy.call(this);if(!this.segments.length)return 0;var A=Math.max(g.vw(this.segments).endTime-this.xH,0);return this.F3>0&&this.Fn(A).XD<this.F3?this.vA(this.F3).startTime:A};
|
|
g.p.ag=function(){if(this.gF&&this.Od&&this.Od>0)return this.Od/1E3;if(!this.segments.length)return g.Lq.prototype.ag.call(this);var A=this.uq();if(!this.CO||A<=this.segments[this.segments.length-1].XD)A=this.segments[this.segments.length-1];else{var L=this.segments[this.segments.length-1];A=new AI(A,Math.max(0,L.startTime-(L.XD-A)*this.So),this.So,0,"sq/"+A,void 0,void 0,!0)}return this.SD?Math.min(this.xH,A.endTime):A.endTime};
|
|
g.p.gW=function(){return this.CO?this.segments.length?this.uq()-this.OI()+1:0:g.Lq.prototype.gW.call(this)};
|
|
g.p.uq=function(){var A=Math.min(this.lW,Math.max(g.Lq.prototype.uq.call(this),this.Jj)),L=this.xH*1E3;L=this.Od>0&&this.Od<L;this.SD&&this.xH>0&&this.Jj>0&&!L&&(L=this.Fn(this.xH))&&(A=Math.min(L.XD-1,A));return A};
|
|
g.p.kN=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
|
|
g.p.MB=function(A){var L=gR(this,A.XD);if(L>=0)this.segments[L]=A;else if(this.segments.splice(-(L+1),0,A),this.T2&&A.XD%(300/this.So)===0){var B=this.segments[0].XD,f=Math.floor(this.T2/this.So);A=A.XD-f;L=-(L+1)-f;L>0&&A>B&&(this.segments=this.segments.slice(L))}};
|
|
g.p.Ns=function(){return this.Jj};
|
|
g.p.Kd=function(A){return ys?!this.W&&A>=0&&this.uq()<=A:g.Lq.prototype.Kd.call(this,A)};
|
|
g.p.Fn=function(A){if(!this.CO)return g.Lq.prototype.Fn.call(this,A);if(!this.segments.length)return null;var L=this.segments[this.segments.length-1];if(A<this.segments[0].startTime)L=Math.max(0,this.segments[0].XD-Math.ceil((this.segments[0].startTime-A)/this.So));else if(A>=L.endTime)L=L.XD+Math.floor((A-L.endTime)/this.So+1);else{L=Dw(this.segments,function(f){return A<f.startTime?-1:A>=f.endTime?1:0});
|
|
if(L>=0)return this.segments[L];var B=-(L+1);L=this.segments[B-1];B=this.segments[B];L=Math.floor((A-L.endTime)/((B.startTime-L.endTime)/(B.XD-L.XD-1))+1)+L.XD}return this.vA(L)};
|
|
g.p.vA=function(A){if(!this.CO)return g.Lq.prototype.vA.call(this,A);if(!this.segments.length)return null;var L=gR(this,A);if(L>=0)return this.segments[L];var B=-(L+1);L=this.So;if(B===0)var f=Math.max(0,this.segments[0].startTime-(this.segments[0].XD-A)*L);else B===this.segments.length?(f=this.segments[this.segments.length-1],f=f.endTime+(A-f.XD-1)*L):(f=this.segments[B-1],L=this.segments[B],L=(L.startTime-f.endTime)/(L.XD-f.XD-1),f=f.endTime+(A-f.XD-1)*L);return new AI(A,f,L,0,"sq/"+A,void 0,void 0,
|
|
!0)};
|
|
var ys=!1;g.G(GW,dR);g.p=GW.prototype;g.p.HE=function(){return!0};
|
|
g.p.w1=function(){return!0};
|
|
g.p.Z_=function(A){return this.g2()&&A.W&&!A.V||!A.b1.index.Kd(A.XD)};
|
|
g.p.bv=function(){};
|
|
g.p.tq=function(A,L){return typeof A!=="number"||isFinite(A)?dR.prototype.tq.call(this,A,L===void 0?!1:L):new ZY([new Bp(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.oC,void 0,this.oC*this.info.lC)],"")};
|
|
g.p.D_=function(A,L){var B=B===void 0?!1:B;if(this.index.NE(A))return dR.prototype.D_.call(this,A,L);var f=this.index.getStartTime(A),K=Math.round(this.oC*this.info.lC),V=this.oC;L&&(V=K=0);return new ZY([new Bp(B?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",A,f,V,void 0,K,!L)],A>=0?"sq/"+A:"")};g.G(rR,z5);g.p=rR.prototype;g.p.BB=function(){return!1};
|
|
g.p.g2=function(){return!1};
|
|
g.p.HE=function(){return!1};
|
|
g.p.bv=function(){return new ZY([new Bp(1,this,void 0,"otfInit")],this.D)};
|
|
g.p.X0=function(){return null};
|
|
g.p.nx=function(A){this.Z_(A);return aT7(this,JL(A),!1)};
|
|
g.p.tq=function(A,L){L=L===void 0?!1:L;A=this.index.NV(A);L&&(A=Math.min(this.index.uq(),A+1));return aT7(this,A,!0)};
|
|
g.p.tE=function(A){A.info.type===1&&(this.N||(this.N=yD(A.W)),A.N&&A.N.uri==="http://youtube.com/streaming/otf/durations/112015"&&AT6(this,A.N))};
|
|
g.p.Z_=function(A){return A.W===0?!0:this.index.uq()>A.XD&&this.index.OI()<=A.XD+1};
|
|
g.p.xi=function(){return 0};
|
|
g.p.dn=function(){return!1};var BN8=new Map,Vov=new Map,f2e=new function(){var A=this;this.N=new Map;this.GV={f_1:function(){return A.N}}};g.p=g.Qs.prototype;g.p.NE=function(A){return A<=this.uq()};
|
|
g.p.vB=function(A){return this.offsets[A]};
|
|
g.p.getStartTime=function(A){return this.startTicks[A]/this.N};
|
|
g.p.zU=function(A){return this.getStartTime(A)+this.getDuration(A)};
|
|
g.p.a9=OD(2);g.p.wX=function(){return NaN};
|
|
g.p.getDuration=function(A){A=this.Bv(A);return A>=0?A/this.N:-1};
|
|
g.p.Bv=function(A){return A+1<this.count||this.W?this.startTicks[A+1]-this.startTicks[A]:-1};
|
|
g.p.w7=function(){return 0};
|
|
g.p.OI=function(){return 0};
|
|
g.p.uq=function(){return this.count-1};
|
|
g.p.Kd=function(A){return this.uq()===A&&A>=0};
|
|
g.p.ag=function(){return this.W?this.startTicks[this.count]/this.N:NaN};
|
|
g.p.vy=function(){return 0};
|
|
g.p.gW=function(){return this.count};
|
|
g.p.pU=function(){return""};
|
|
g.p.NV=function(A){A=g.Fc(this.startTicks.subarray(0,this.count),A*this.N);return A>=0?A:Math.max(0,-A-2)};
|
|
g.p.isLoaded=function(){return this.uq()>=0};
|
|
g.p.qe=function(A,L){if(A>=this.uq())return 0;var B=0;for(L=this.getStartTime(A)+L;A<this.uq()&&L>this.getStartTime(A);A++)B=Math.max(B,dbv(this,A)/this.getDuration(A));return B};
|
|
g.p.resize=function(A){A+=2;var L=this.offsets;this.offsets=new Float64Array(A+1);var B=this.startTicks;this.startTicks=new Float64Array(A+1);for(A=0;A<this.count+1;A++)this.offsets[A]=L[A],this.startTicks[A]=B[A]};
|
|
g.p.cap=function(A,L){C3(this);this.W=!0;this.startTicks[this.count]=L;this.offsets[this.count]=A};g.G(i7,z5);g.p=i7.prototype;g.p.bv=function(A,L){var B=new Bp(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,L),f=[new Bp(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,L),B];this.info.contentLength>0&&A&&(B=B.range.end+1,A=Math.min(A,this.info.contentLength-B),A>0&&f.push(new Bp(4,this,L3(B,A),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,L)));return new ZY(f)};
|
|
g.p.tE=function(A){if(A.info.type===1){if(this.N)return;this.N=yD(A.W)}else if(A.info.type===2){if(this.D||this.index.uq()>=0)return;if(g.U2(this.info)){var L=this.index,B=g.b7(A);A=A.info.range.start;var f=g.dD(B,0,1936286840);B=RsL(f);L.N=B.timescale;var K=B.ZI;L.offsets[0]=B.Ps+A+f.size;L.startTicks[0]=K;L.W=!0;A=B.zl.length;for(f=0;f<A;f++){K=L;var V=B.f0F[f],J=B.zl[f];K.count++;C3(K);K.offsets[K.count]=K.offsets[K.count-1]+V;K.startTicks[K.count]=K.startTicks[K.count-1]+J}}else this.D=g.b7(A)}if(this.info.qU()&&
|
|
this.N&&this.D){B=new DataView(this.N.buffer);L=this.index;f=this.D;A=this.indexRange.end;K=new Hq(B);B=K;K=B.pos;V={ma:1E6,bL:1E9,duration:0,MO:0,OX:0};if(kK(B,408125543))if(V.MO=T5(B,!0),V.OX=B.start+B.pos,kK(B,357149030)){for(J=tI(B);!hI(J);){var R=T5(J,!1);R===2807729?V.ma=md(J):R===2807730?V.bL=md(J):R===17545?V.duration=Cq(J):Qj(J)}B.pos=K;B=V}else B.pos=K,B=null;else B.pos=K,B=null;if(B!==null){L.N=B.bL/B.ma;K=new Hq(f);f=K;J=B.OX;K=f.pos;V=[];if(kK(f,475249515)){for(R=tI(f);kK(R,187);){var Z=
|
|
tI(R);if(kK(Z,179)){var N=md(Z);if(kK(Z,183)){Z=tI(Z);for(var F=J;kK(Z,241);)F=md(Z)+J;V.push({rL:F,B7:N})}}}if(V.length>0&&A===V[0].rL)for(A=0;A<V.length;A++)V[A].rL+=1;f.pos=K;A=V}else f.pos=K,A=null;if(A!==null){A=g.m(A);for(f=A.next();!f.done;f=A.next())V=f.value,f=L,K=V.rL,V=V.B7,C3(f),f.offsets[f.count]=K,f.startTicks[f.count]=V,f.count++;L.cap(B.MO+B.OX,B.duration)}}this.D=null}};
|
|
g.p.FI=function(A,L,B,f){for(var K=[],V=A;V<=this.index.uq();V++){var J=L3(this.index.vB(V),dbv(this.index,V)),R=this.index.getStartTime(V),Z=this.index.getDuration(V),N=Math.max(0,L-J.start),F=Math.min(J.end+1,L+B)-(J.start+N);K.push(new Bp(3,this,J,"getRequestInfoForRange",V,R,Z,N,F,void 0,void 0,f));if(J.start+N+F>=L+B)break}K.length||(A=new g.iL("b189619593",""+A,""+L,""+B),g.mL(A));return new ZY(K)};
|
|
g.p.A6=function(A){for(var L=this.kW(A.info),B=A.info.range.start+A.info.N,f=[],K=0;K<L.length;K++){var V=dZ(A.W,L[K].range.start+L[K].N-B,L[K].W);f.push(new hL(L[K],V))}return f};
|
|
g.p.kW=function(A){for(var L=A.range.start+A.N,B=0;B<this.index.uq()&&L>=this.index.vB(B+1);)B++;return this.FI(B,L,A.W).Lr};
|
|
g.p.Z_=function(A){A.Ad();return this.w1()?!0:A.range.end+1<this.info.contentLength};
|
|
g.p.X0=function(A,L){this.Z_(A);if(!this.w1())return L=L3(A.range.end+1,L),L.end+1>this.info.contentLength&&(L=new as(L.start,this.info.contentLength-1)),new ZY([new Bp(4,A.b1,L,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,A.clipId)]);A.type===4&&(A=this.kW(A),A=A[A.length-1]);var B=0,f=A.range.start+A.N+A.W;A.type===3&&(A.Ad(),B=A.XD,f===A.range.end+1&&(B+=1));return this.FI(B,f,L)};
|
|
g.p.nx=function(){return null};
|
|
g.p.tq=function(A,L){L=L===void 0?!1:L;A=this.index.NV(A);L&&(A=Math.min(this.index.uq(),A+1));return this.FI(A,this.index.vB(A),0,void 0)};
|
|
g.p.BB=function(){return!0};
|
|
g.p.g2=function(){return!0};
|
|
g.p.HE=function(){return!1};
|
|
g.p.xi=function(){return this.indexRange.length+this.initRange.length};
|
|
g.p.dn=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var nI={},l2e=(nI.COLOR_PRIMARIES_BT709="bt709",nI.COLOR_PRIMARIES_BT2020="bt2020",nI.COLOR_PRIMARIES_UNKNOWN=null,nI.COLOR_PRIMARIES_UNSPECIFIED=null,nI),ze={},wV6=(ze.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",ze.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",ze.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",ze.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",ze.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,ze.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,ze);g.p=g.$6.prototype;g.p.getName=function(){return this.name};
|
|
g.p.getId=function(){return this.id};
|
|
g.p.getIsDefault=function(){return this.isDefault};
|
|
g.p.getIsAutoDubbed=function(){return this.isAutoDubbed};
|
|
g.p.toString=function(){return this.name};
|
|
g.$6.prototype.getName=g.$6.prototype.getName;g.$6.prototype.getId=g.$6.prototype.getId;g.$6.prototype.getIsDefault=g.$6.prototype.getIsDefault;g.$6.prototype.getIsAutoDubbed=g.$6.prototype.getIsAutoDubbed;var ga7=/action_display_post/;var GvE,EI,cp;g.G(MP,g.SN);g.p=MP.prototype;g.p.isLoading=function(){return this.state===1};
|
|
g.p.LQ=function(){return this.state===3};
|
|
g.p.HwL=function(A){var L=A.getElementsByTagName("Representation");if(A.getElementsByTagName("SegmentList").length>0||A.getElementsByTagName("SegmentTemplate").length>0){this.iC=this.W=!0;this.X||(this.X=new Pd6);zsS(this.X,A);this.publish("refresh");for(A=0;A<L.length;A++){var B=Eaw(this,L[A]);if(!this.N[B.id]){var f=qP(wR(L[A],"BaseURL").textContent),K=wR(L[A],"Initialization"),V=Ip(K,"sourceURL");K=AL(Ip(K,"range"));this.N[B.id]=new dR(f,B,V,K)}B=this.N[B.id];f=Ip(L[A],"id","AdaptationSet");f=
|
|
f!==""?f:Ip(L[A],"mimetype","AdaptationSet");V=this.X;V=V.V[B.info.id]||V.W[f]||V.N||null;f=V.N;!this.G&&V.getStreamTimeOffset()&&(this.G=V.getStreamTimeOffset());if(V.D){K=[];f=g.m(f);for(var J=f.next();!J.done;J=f.next()){J=J.value;var R=B.info.id,Z=B.info.lC*8,N=J.XD;var F=J.startSecs;var D=V.X.split("$$");for(var I=0;I<D.length;I++)D[I]=D[I].replace("$RepresentationID$",R),D[I]=D[I].replace("$Number$",N.toString()),D[I]=D[I].replace("$Bandwidth$",Z.toString()),D[I]=D[I].replace("$Time$",F.toString());
|
|
K.push(new AI(J.XD,J.startSecs,J.Dj,J.N,D.join("$"),null,J.W))}f=K}else{V=JO(wR(L[A],"SegmentList").getElementsByTagName("SegmentURL"),V.T);K=[];for(J=0;J<V.length;J++){R=K;Z=R.push;N=f[J];F=void 0;I=V[J];D=I.getAttribute("media");if(I=I.getAttribute("mediaRange")){var d=I.split("-");d[1]&&Number(d[1])>=0?F=AL(I):D=D+"?range="+I}Z.call(R,new AI(N.XD,N.startSecs,N.Dj,N.N,D,F,N.W))}f=K}B.update(f,this.isLive,this.Ex)}uwQ(this.X);return!0}this.duration=WD0(Ip(A,"mediaPresentationDuration"));a:{for(A=
|
|
0;A<L.length;A++){V=L[A];B=Eaw(this,V);f=qP(wR(V,"BaseURL").textContent);K=wR(V,"SegmentBase");V=AL(K.attributes.getNamedItem("indexRange").value);K=AL(K.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);B=new i7(f,B,K,V);if(!B){L=!1;break a}OI(this,B)}L=!0}return L};
|
|
g.p.refresh=function(){if(!this.isLoading()&&!this.TL()){var A=g.ip(this.sourceUrl,{start_seq:Ubv(this).toString()});MoQ(this,A).c9(function(){})}};
|
|
g.p.resume=function(){cT7(this)};
|
|
g.p.oA=function(){if(this.isManifestless&&this.U&&x6(this))return x6(this);var A=this.N,L=!1,B=NaN,f=NaN,K;for(K in A){var V=A[K],J=V.index;J.isLoaded()&&!xa(V.info.mimeType)&&(V.U&&(L=!0),J=J.ag(),V.info.NF()&&(isNaN(B)||J<B)?B=J:V.info.WV()&&(isNaN(f)||J<f)&&(f=J))}return L||isNaN(f)?B:Math.min(B,f)};
|
|
g.p.vy=function(){if(this.isManifestless){if(el(this))return el(this);if(this.HY){var A=this.wX(this.oA());if(A&&(A-=this.HY,A>0))return this.oA()-A}}A=this.N;for(var L in A){var B=A[L].index;if(B.isLoaded()&&!xa(A[L].info.mimeType))return B.vy()}return 0};
|
|
g.p.getStreamTimeOffset=function(){return this.G};
|
|
g.p.wX=function(A){for(var L in this.N){var B=this.N[L].index;if(B.isLoaded()){var f=B.NV(A),K=B.wX(f);if(K)return K+A-B.getStartTime(f)}}return NaN};
|
|
var LM=null,MZR,oj=!((MZR=navigator.mediaCapabilities)==null||!MZR.decodingInfo),O$C={commentary:1,alternate:2,dub:3,main:4};var Vn=new Set,BL=new Map;VN.prototype.clone=function(A){return new VN(this.flavor,A,this.W,this.experiments)};
|
|
VN.prototype.Ov=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
|
|
VN.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
|
|
var YcR={},we=(YcR.playready=["com.youtube.playready","com.microsoft.playready"],YcR.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],YcR),uo={},QfS=(uo.widevine="DRM_SYSTEM_WIDEVINE",uo.fairplay="DRM_SYSTEM_FAIRPLAY",uo.playready="DRM_SYSTEM_PLAYREADY",uo),az={},UVO=(az.widevine=1,az.fairplay=2,az.playready=3,az);var jx;g.G(pM,g.Y);
|
|
pM.prototype.initialize=function(A,L){for(var B=this,f=g.m(Object.keys(A)),K=f.next();!K.done;K=f.next()){K=g.m(A[K.value]);for(var V=K.next();!V.done;V=K.next())if(V=V.value,V.Zj)for(var J=g.m(Object.keys(V.Zj)),R=J.next();!R.done;R=J.next()){var Z=R.value;R=Z;Z=we[Z];!Z&&this.J("html5_enable_vp9_fairplay")&&R==="fairplay"&&(Z=["com.youtube.fairplay.sbdl"]);if(Z){Z=g.m(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,this.V[N]=this.V[N]||new VN(R,N,V.Zj[R],this.tF.experiments),this.N[R]=this.N[R]||
|
|
{},this.N[R][V.mimeType]=!0}}}zc()&&(this.V["com.youtube.fairplay"]=new VN("fairplay","com.youtube.fairplay","",this.tF.experiments),this.J("html5_enable_vp9_fairplay")||(this.N.fairplay=this.N.fairplay||{},this.N.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.N.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.W=u26(L,this.useCobaltWidevine,this.J("html5_enable_safari_fairplay")&&!0,this.J("html5_enable_vp9_fairplay")).filter(function(F){return!!B.V[F]})};
|
|
pM.prototype.J=function(A){return this.tF.experiments.GL(A)};var Wiw={"":"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 P1L={RED:"red",MLL:"white"};GM.prototype.Iv=function(A){if(A.BD!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return JAD(this,A)};
|
|
GM.prototype.GL=function(A){return this.flags.get(""+A)==="true"};re.prototype.Qf=function(){return this.V};
|
|
re.prototype.mw=function(){return this.W};
|
|
re.prototype.GL=function(A){A=this.Iv(A);JSON.stringify(A);return A==="true"};
|
|
re.prototype.Iv=function(A){return this.flags[A]};var ZWv=Promise.resolve(),dK8=window.queueMicrotask?window.queueMicrotask.bind(window):Nzy;HL.prototype.canPlayType=function(A,L){A=A.canPlayType?A.canPlayType(L):!1;ed?A=A||vgd[L]:vL===2.2?A=A||qc5[L]:ek()&&(A=A||Psw[L]);return!!A};
|
|
HL.prototype.isTypeSupported=function(A){return this.G?window.cast.receiver.platform.canDisplayType(A):Nb(A)};
|
|
var qc5={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Psw={"application/x-mpegURL":"maybe"},vgd={"application/x-mpegURL":"maybe"};g.G(t7,g.SN);t7.prototype.add=function(A,L){if(!this.items[A]&&(L.SP||L.JL||L.Tj)){var B=this.items,f=L;Object.isFrozen&&!Object.isFrozen(L)&&(f=Object.create(L),Object.freeze(f));B[A]=f;this.publish("vast_info_card_add",A)}};
|
|
t7.prototype.remove=function(A){var L=this.get(A);delete this.items[A];return L};
|
|
t7.prototype.get=function(A){return this.items[A]||null};
|
|
t7.prototype.isEmpty=function(){return g.mi(this.items)};ki.prototype.encrypt=function(A){this.N.exports.AES128CTRCipher_encrypt(this.cipher,A.byteOffset,A.byteLength);return A};
|
|
ki.prototype.TL=function(){return this.cipher===0};
|
|
ki.prototype.dispose=function(){this.N.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};l9.prototype.bM=function(A,L){L=L===void 0?1:L;this.fn+=L;this.W+=A;A/=L;for(var B=0;B<TM.length&&!(A<TM[B]);++B)this.N[B]+=L};
|
|
l9.prototype.toString=function(){return""};
|
|
var TM=[20,100,500,2E3];g.p=gFS.prototype;g.p.isActive=function(){return!0};
|
|
g.p.UW=function(A,L){if(L){var B=this,f={},K;for(K in L)f={cD:void 0,Ui:void 0},L.hasOwnProperty(K)&&(f.Ui=A.prototype[K],f.cD=L[K],A.prototype[K]=function(V){return function(){var J=g.pf.apply(0,arguments),R=this,Z=(0,g.bc)(),N=V.Ui.apply(R,J);return skD(B,N,null,Z,function(F){return V.cD.apply(R,[F].concat(J))})}}(f))}};
|
|
g.p.l4=function(){return new jkk};
|
|
g.p.UV=function(A,L,B){B=B===void 0?1:B;L instanceof jkk&&(Gu6(this,A,(0,g.bc)()-L.startTimeMs,B),L.N=!0)};
|
|
g.p.Rf=function(A,L){var B=(0,g.bc)();L=L();skD(this,L,A,B)};
|
|
g.p.sL=function(){var A={},L;for(L in this.N)if(this.N.hasOwnProperty(L)){var B=this.N[L];if(B.fn===0)B=null;else{for(var f=Math.ceil(B.fn).toFixed(0)+"."+B.W.toFixed(0),K=0;K<TM.length;++K)if(B.N[K]>0)f+="."+TM[K].toFixed(0)+"_"+B.N[K].toFixed(0);else break;B=f}B&&(A[L]=B)}this.N=new yAS;return A};
|
|
g.p.toString=function(){return""};g.p=HWw.prototype;g.p.isActive=function(){return!1};
|
|
g.p.UW=function(){};
|
|
g.p.l4=function(){};
|
|
g.p.UV=function(){};
|
|
g.p.Rf=function(A,L){L()};
|
|
g.p.sL=function(){return{}};
|
|
g.p.toString=function(){return""};var xVf=new HWw,eF5=!!+Lg("html5_enable_profiler"),ng9=!!+Lg("html5_onesie_enable_profiler"),AC=eF5||ng9?new gFS:xVf,iIw=eF5?AC:xVf,QN=ng9?AC:xVf;mKQ.prototype.emscripten_notify_memory_growth=function(){};g.p=mH.prototype;g.p.malloc=function(A){return this.exports.malloc(A)};
|
|
g.p.free=function(A){this.exports.free(A)};
|
|
g.p.realloc=function(A,L){return this.exports.realloc(A,L)};
|
|
g.p.aV=function(A){if(A.buffer!==this.exports.memory.buffer){var L=this.malloc(A.byteLength);L=new Uint8Array(this.exports.memory.buffer,L,A.byteLength);L.set(A);return L}};
|
|
g.p.Sx=function(A){if(A.buffer===this.exports.memory.buffer){var L=A.slice();this.free(A.byteOffset);return L}};
|
|
var kuL=new function(){this.N="WebAssembly"in window},CM="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);
|
|
QN.UW(mH,{aV:function(A){return{profile:"copyj2w",fn:A===void 0?0:Math.ceil(A.byteLength/16)}},
|
|
Sx:function(A){return{profile:"copyw2j",fn:A===void 0?0:Math.ceil(A.byteLength/16)}}});i9.prototype.encrypt=function(A,L){try{return this.N.Sx($K7(this,A,L))}catch(B){g.CE(Error("ocwce: wasm encrypt failed: "+B))}};
|
|
i9.prototype.TL=function(){return this.V};
|
|
i9.prototype.dispose=function(){this.TL()||(g.jq(this.W),this.N.free(this.U.byteOffset),this.V=!0)};g.G(Xi1,g.Y);g.G(EF8,g.Y);g.G(MeE,g.Y);var qJ7="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),uie={zEL:"caoe",ER4:"capsv",PY4:"cbrand",Lo4:"cbr",NbL:"cbrver",bQp:"cchip",MOp:"ccappver",RXT:"ccrv",wB1:"cfrmver",cOx:"c",L31:"cver",PMj:"ctheme",BRp:"cplayer",L2F:"cmodel",RE:"cnetwork",J8j:"cos",OS_VERSION:"cosver",nCx:"cplatform",R8r:"crqyear"};g.G(Lo,g.Y);g.p=Lo.prototype;g.p.J=function(A){return this.experiments.GL(A)};
|
|
g.p.Qf=function(){return this.experiments.Qf()};
|
|
g.p.mw=function(){return this.experiments.mw()};
|
|
g.p.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
|
|
g.p.getVideoUrl=function(A,L,B,f,K,V,J){L={list:L};B&&(K?L.time_continue=B:L.t=B);B=J?"music.youtube.com":g.BN(this);K=B==="www.youtube.com";!V&&f&&K?V="https://youtu.be/"+A:g.xi(this)?(V="https://"+B+"/fire",L.v=A):(V&&K?(V=this.protocol+"://"+B+"/shorts/"+A,f&&(L.feature="share")):(V=this.protocol+"://"+B+"/watch",L.v=A),ed&&(A=j$L())&&(L.ebc=A));return g.ip(V,L)};
|
|
g.p.getVideoEmbedCode=function(A,L,B,f){L="https://"+g.BN(this)+"/embed/"+L;f&&(L=g.ip(L,{list:f}));f=B.width;B=B.height;L=P5(L);A=P5(A!=null?A:"YouTube video player");return'<iframe width="'+f+'" height="'+B+'" src="'+L+'" title="'+(A+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
|
|
g.p.supportsGaplessAudio=function(){return g.Z2&&!ed&&qs()>=74||g.de&&g.oC(68)?!0:!1};
|
|
g.p.supportsGaplessShorts=function(){return!this.J("html5_enable_short_gapless")||this.Ex||g.yw?!1:!0};
|
|
g.p.getPlayerType=function(){return this.N.cplayer};
|
|
g.p.hw=function(){return this.Ry};
|
|
var od6=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],zE8=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Ay6=[19];var LF={},JyC=(LF["140"]={numChannels:2},LF["141"]={numChannels:2},LF["251"]={audioSampleRate:48E3,numChannels:2},LF["774"]={audioSampleRate:48E3,numChannels:2},LF["380"]={numChannels:6},LF["328"]={numChannels:6},LF["773"]={},LF),oV={},KU0=(oV["1"]='video/mp4; codecs="av01.0.08M.08"',oV["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',oV["1e"]='video/mp4; codecs="av01.0.08M.08"',oV["9"]='video/webm; codecs="vp9"',oV["("]='video/webm; codecs="vp9"',oV["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',
|
|
oV.h='video/mp4; codecs="avc1.64001e"',oV.H='video/mp4; codecs="avc1.64001e"',oV.o='audio/webm; codecs="opus"',oV.a='audio/mp4; codecs="mp4a.40.2"',oV.ah='audio/mp4; codecs="mp4a.40.2"',oV.mac3='audio/mp4; codecs="ac-3"; channels=6',oV.meac3='audio/mp4; codecs="ec-3"; channels=6',oV.i='audio/mp4; codecs="iamf.001.001.Opus"',oV),BE={},V$e=(BE["337"]={width:3840,height:2160,bitrate:3E7,fps:30},BE["336"]={width:2560,height:1440,bitrate:15E6,fps:30},BE["335"]={width:1920,height:1080,bitrate:75E5,fps:30},
|
|
BE["702"]={width:7680,height:4320,bitrate:4E7,fps:60},BE["701"]={width:3840,height:2160,bitrate:2E7,fps:60},BE["700"]={width:2560,height:1440,bitrate:1E7,fps:60},BE["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},BE["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},BE["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},BE["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},
|
|
BE["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},BE["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},BE["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},BE["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},BE["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},BE["315"]={width:3840,height:2160,bitrate:2E7,fps:60},BE["308"]={width:2560,
|
|
height:1440,bitrate:1E7,fps:60},BE["303"]={width:1920,height:1080,bitrate:5E6,fps:60},BE["302"]={width:1280,height:720,bitrate:25E5,fps:60},BE["299"]={width:1920,height:1080,bitrate:75E5,fps:60},BE["298"]={width:1280,height:720,bitrate:35E5,fps:60},BE["571"]={width:7680,height:4320,bitrate:3E7,fps:60},BE["401"]={width:3840,height:2160,bitrate:15E6,fps:60},BE["400"]={width:2560,height:1440,bitrate:75E5,fps:60},BE["399"]={width:1920,height:1080,bitrate:2E6,fps:60},BE["398"]={width:1280,height:720,bitrate:1E6,
|
|
fps:60},BE["397"]={width:854,height:480,bitrate:4E5,fps:30},BE["396"]={width:640,height:360,bitrate:25E4,fps:30},BE["787"]={width:1080,height:608,bitrate:2E5,fps:30},BE["788"]={width:1080,height:608,bitrate:4E5,fps:30},BE["572"]={width:7680,height:4320,bitrate:3E7,fps:60},BE["555"]={width:3840,height:2160,bitrate:15E6,fps:60},BE["554"]={width:2560,height:1440,bitrate:75E5,fps:60},BE["553"]={width:1920,height:1080,bitrate:2E6,fps:60},BE["552"]={width:1280,height:720,bitrate:1E6,fps:60},BE["551"]={width:854,
|
|
height:480,bitrate:4E5,fps:30},BE["550"]={width:640,height:360,bitrate:25E4,fps:30},BE["313"]={width:3840,height:2160,bitrate:8E6,fps:30},BE["271"]={width:2560,height:1440,bitrate:4E6,fps:30},BE["248"]={width:1920,height:1080,bitrate:2E6,fps:30},BE["247"]={width:1280,height:720,bitrate:15E5,fps:30},BE["244"]={width:854,height:480,bitrate:52E4,fps:30},BE["243"]={width:640,height:360,bitrate:28E4,fps:30},BE["137"]={width:1920,height:1080,bitrate:4E6,fps:30},BE["136"]={width:1280,height:720,bitrate:3E6,
|
|
fps:30},BE["135"]={width:854,height:480,bitrate:1E6,fps:30},BE["385"]={width:1920,height:1080,bitrate:6503313,fps:60},BE["376"]={width:1280,height:720,bitrate:5706960,fps:60},BE["384"]={width:1280,height:720,bitrate:3660979,fps:60},BE["225"]={width:1280,height:720,bitrate:5805E3,fps:30},BE["224"]={width:1280,height:720,bitrate:453E4,fps:30},BE["145"]={width:1280,height:720,bitrate:2682052,fps:30},BE);g.p=gd.prototype;g.p.getInfo=function(){return this.N};
|
|
g.p.zx=function(){return null};
|
|
g.p.Lk=function(){var A=this.zx();return A?(A=g.RM(A.wi),Number(A.expire)):NaN};
|
|
g.p.B3=function(){};
|
|
g.p.getHeight=function(){return this.N.video.height};Nf1.prototype.build=function(){drQ(this);var A=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],L={};a:if(this.N)var B=this.N;else{B="";for(var f=g.m(this.V),K=f.next();!K.done;K=f.next())if(K=K.value,K.ri){if(K.ri.getIsDefault()){B=K.ri.getId();break a}B||(B=K.ri.getId())}}f=g.m(this.V);for(K=f.next();!K.done;K=f.next())if(K=K.value,this.T||!K.ri||K.ri.getId()===B)L[K.itag]||(L[K.itag]=[]),L[K.itag].push(K);B=g.m(this.W);for(f=B.next();!f.done;f=B.next())if(f=f.value,K=L[f.N]){K=g.m(K);for(var V=K.next();!V.done;V=
|
|
K.next()){var J=A,R=J.push;V=V.value;var Z="#EXT-X-MEDIA:TYPE=AUDIO,",N="YES",F="audio";if(V.ri){F=V.ri;var D=F.getId().split(".")[0];D&&(Z+='LANGUAGE="'+D+'",');(this.N?this.N===F.getId():F.getIsDefault())||(N="NO");F=F.getName()}D="";f!==null&&(D=f.itag.toString());D=rd(this,V.url,D);Z=Z+('NAME="'+F+'",DEFAULT='+(N+',AUTOSELECT=YES,GROUP-ID="'))+(Dr6(V,f)+'",URI="'+(D+'"'));R.call(J,Z)}}B=g.m(this.D);for(f=B.next();!f.done;f=B.next())f=f.value,K=zFf,f=(J=f.ri)?'#EXT-X-MEDIA:URI="'+rd(this,f.url)+
|
|
'",TYPE=SUBTITLES,GROUP-ID="'+K+'",LANGUAGE="'+J.getId()+'",NAME="'+J.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,f&&A.push(f);B=this.D.length>0?zFf:void 0;f=g.m(this.W);for(K=f.next();!K.done;K=f.next())K=K.value,R=L[K.N],J=void 0,((J=R)==null?void 0:J.length)>0&&(J=K,R=R[0],R="#EXT-X-STREAM-INF:BANDWIDTH="+(J.bitrate+R.bitrate)+',CODECS="'+(J.codecs+","+R.codecs+'",RESOLUTION=')+(J.width+"x"+J.height+',AUDIO="')+(Dr6(R,J)+'",')+(B?'SUBTITLES="'+B+'",':"")+"CLOSED-CAPTIONS=NONE",J.fps>1&&(R+=
|
|
",FRAME-RATE="+J.fps),J.Bd&&(R+=",VIDEO-RANGE="+J.Bd),A.push(R),A.push(rd(this,K.url,"")));return A.join("\n")};
|
|
var zFf="text";g.G(se,gd);se.prototype.Lk=function(){return this.expiration};
|
|
se.prototype.zx=function(){if(!this.wi||this.wi.TL()){var A=this.W.build();A="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(A);this.wi=new Rk(A)}return this.wi};g.G(HN,gd);HN.prototype.zx=function(){return new Rk(this.W.MQ())};
|
|
HN.prototype.B3=function(){this.W=J1(5,this.W)};g.G(h$,gd);h$.prototype.zx=function(){return new Rk(this.W)};var fF={},Hp1=(fF.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",fF.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",fF.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",fF.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",fF);g.p=g.bS.prototype;g.p.getId=function(){return this.id};
|
|
g.p.getName=function(){return this.name};
|
|
g.p.isServable=function(){return this.N};
|
|
g.p.MQ=function(){return this.url};
|
|
g.p.getXtags=function(){return this.xtags};
|
|
g.p.toString=function(){return this.languageCode+": "+g.t$(this)+" - "+this.vssId+" - "+(this.captionId||"")};
|
|
g.p.equals=function(A){return A?this.toString()===A.toString():!1};
|
|
g.p.gX=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var lNL={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},mre={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Q21=/^(\d*)_((\d*)_?(\d*))$/;var ipy={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},$rQ={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var KF={},OpC=(KF.ALWAYS=1,KF.BY_REQUEST=3,KF.UNKNOWN=void 0,KF),V8={},F9E=(V8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",V8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",V8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",V8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",V8);var glk;
|
|
glk=function(A){for(var L=Object.keys(A),B={},f=0;f<L.length;f++){var K=L[f];typeof A[K]==="function"&&(B[K]=A[K])}var V=Object.keys(B);try{Rq7(B)}catch(R){var J=R}return function(R,Z){R=R===void 0?{}:R;if(J)throw J;for(var N=!1,F={},D=0;D<V.length;D++){var I=V[D],d=R[I],w=(0,B[I])(d,Z);if(typeof w==="undefined")throw R=Z&&Z.type,Error("When called with an action of type "+(R?'"'+String(R)+'"':"(unknown type)")+', the slice reducer for key "'+I+'" 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.');F[I]=
|
|
w;N=N||w!==d}return(N=N||V.length!==Object.keys(R).length)?F:R}}({entities:function(A,L){A=A===void 0?{}:A;
|
|
return i4E(A,L)}});
|
|
g.Iq=new ZF;X1.prototype.toString=function(){return this.type+this.id};Ee.prototype.g1=function(A){A=A||"hqdefault.jpg";var L=this.ea[A];if(L)return L;if(A==="sddefault.jpg"||A==="hq720.jpg"||A==="maxresdefault.jpg")return L;if(this.N)return fo(this.tF,this.N,A)};
|
|
Ee.prototype.Ej=function(){return this.tF.getVideoUrl(this.videoId,this.playlistId)};cN.prototype.g1=function(A){A||(A="hqdefault.jpg");var L=this.ea[A];return L?L:A==="pop1.jpg"||A==="pop2.jpg"||A==="sddefault.jpg"||A==="hq720.jpg"||A==="maxresdefault.jpg"?L:fo(this.tF,this.videoId,A)};
|
|
cN.prototype.Ej=function(A){return this.watchUrl||this.tF.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,A)};var Ue=void 0;jIe("LMS",function(){return g.c(function(A){return A.return(g.WN())})});var xc;xc=0;g.tLL=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;jIe("LMDB",function(){var A,L;return g.c(function(B){if(B.N==1)return g.X(B,g.Ab(),2);if(B.N!=3){A=B.W;if(!A)throw g.g2("edd");return g.X(B,g.PN(A),3)}L=B.W;return B.return(g.mz(L,["index","media","captions"],{mode:"readonly",Ev:!0},function(f){var K={};f=[g.X4(f.objectStore("index"),{},function(V){K[V.cursor.key]=V.getValue();return g.O_(V)}),
|
|
BlS(f.objectStore("media")),BlS(f.objectStore("captions"))];return g.r2.all(f).then(function(V){var J=g.m(V);J.next();V=J.next().value;J=J.next().value;return{index:K,media:kl8(V||[]),captions:J}})}))})});g.G(no,g.SN);no.prototype.l1=function(){this.N&&(this.N=this.N.onload=null);g.SN.prototype.l1.call(this)};g.p=g.Aa.prototype;g.p.getHeight=function(){return this.height};
|
|
g.p.HU=OD(4);g.p.rV=function(){return this.frameCount};
|
|
g.p.isDefault=function(){return this.V.indexOf("default")!==-1};
|
|
g.p.isLoaded=function(A){return this.loaded.has(A)};
|
|
g.p.MQ=function(A){var L=this.U;L=L.replace("$N",this.V);L=L.replace("$L",this.level.toString());L=L.replace("$M",A.toString());this.signature&&(L=g.ip(L,{sigh:this.signature}));return YG(L)};
|
|
g.p.RQ=function(A){var L=this.rV()-1;return g.B4(this.N===0?Math.round(A*this.frameCount/this.videoLength):Math.round(A*1E3/this.N),0,L)};
|
|
g.p.ih=function(){return this.frameCount-1};
|
|
g.p.w0=function(){return this.frameCount?0:-1};
|
|
g.p.h6=function(){};g.G(Lr,no);Lr.prototype.W=function(A,L){var B=[];A=A.split("|");for(var f=A[0],K=1;K<A.length;K++){var V=this.D(K-1,f,A[K],L);(this.X||V.getHeight()<180)&&B.push(V)}return B};
|
|
Lr.prototype.D=function(A,L,B,f){return new g.Aa(A,L,B,f)};g.G(oq,g.Aa);g.p=oq.prototype;g.p.rV=function(){return this.W.gW()};
|
|
g.p.RQ=function(A){var L=this.rows*this.columns*this.D,B=this.W,f=B.uq();A=B.NV(A);return A>f-L?-1:A};
|
|
g.p.ih=function(){return this.W.uq()};
|
|
g.p.w0=function(){return this.W.OI()};
|
|
g.p.h6=function(A){this.W=A};g.G(BK,Lr);BK.prototype.W=function(A,L){return Lr.prototype.W.call(this,"$N|"+A,L)};
|
|
BK.prototype.D=function(A,L,B){return new oq(A,L,B,this.isLive)};g.G(g.Kr,g.SN);g.p=g.Kr.prototype;
|
|
g.p.setData=function(A){var L=this;A=A||{};var B=A.errordetail;B!=null&&(this.errorDetail=B);var f=A.errorcode;f!=null?this.errorCode=f:A.status==="fail"&&(this.errorCode="auth");var K=A.reason;K!=null&&(this.errorReason=K);var V=A.subreason;V!=null&&(this.Qr=V);if(!this.clientPlaybackNonce){this.clientPlaybackNonce=A.cpn||(this.tF.hw()?"r"+g.y0(15):g.y0(16));var J;(J=this.g$)==null||J.clear()}this.I7=Sw(this.tF.I7,A.livemonitor);XyE(this,A);var R=A.raw_player_response;if(R)this.tI=R;else{var Z=A.player_response;
|
|
Z&&(R=JSON.parse(Z))}R&&(this.playerResponse=R);if(this.playerResponse){var N=this.playerResponse.annotations;N&&Ed1(this,N);var F=this.playerResponse.attestation;F&&cy6(this,F);var D=this.playerResponse.cotn;D&&(this.cotn=D);var I=this.playerResponse.heartbeatParams;I&&vd8(this,I);var d=this.playerResponse.messages;d&&eSe(this,d);var w=this.playerResponse.overlay;w&&Aew(this,w);var r=this.playerResponse.playabilityStatus;if(r){L9L(this,r);var h=r.errorScreen;h&&N90(this,h)}var Q=this.playerResponse.playbackTracking;
|
|
Q&&B98(this,Q,A);var l=this.playerResponse.playerCueRanges;l&&l.length>0&&(this.cueRanges=l);var C=this.playerResponse.playerCueRangeSet;C&&g.ZQ(this,C);var O=p_y(this.playerResponse.adPlacements);Q&&Q.promotedPlaybackTracking&&O&&g.CE(new g.iL("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(O||vxL(this.playerResponse.adSlots))this.iT=!0;var v=this.playerResponse.playerAds;v&&fJE(this,v,A);var U=this.playerResponse.playerConfig;U&&K9y(this,U);var a=this.playerResponse.streamingData;
|
|
a&&VLQ(this,a,U||null);var o0=this.playerResponse.trackingParams;o0&&(this.Wn=o0);var B6=this.playerResponse.videoDetails;if(B6){S40(this,B6,A);D0y(this,B6,U||null,A);var Ve=B6.isPrivate;Ve!==void 0&&(this.isPrivate=Sw(this.isPrivate,Ve))}r&&WU6(this,r,B6||null);var DS=this.playerResponse.interstitialPods;DS&&xrw(this,DS);this.zM&&this.eventId&&(this.zM=Ns(this.zM,{ei:this.eventId}));var fw=this.playerResponse.captions;fw&&fw.playerCaptionsTracklistRenderer&&Y7C(this,fw.playerCaptionsTracklistRenderer);
|
|
(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.G2=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&ndQ(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var ry;this.compositeLiveIngestionOffsetToken=(ry=this.playerResponse.playbackTracking)==null?void 0:ry.compositeLiveIngestionOffsetToken;
|
|
var uL;this.compositeLiveStatusToken=(uL=this.playerResponse.playbackTracking)==null?void 0:uL.compositeLiveStatusToken;this.J("html5_fill_default_mosaic_audio_track_id")&&oh(this)&&(this.tF.cn=C4D(this));var Jf,MC,nw=(Jf=this.playerResponse.playerConfig)==null?void 0:(MC=Jf.granularVariableSpeedConfig)==null?void 0:MC.minimumPlaybackRate,Xk,e5,mt=(Xk=this.playerResponse.playerConfig)==null?void 0:(e5=Xk.granularVariableSpeedConfig)==null?void 0:e5.maximumPlaybackRate;nw&&mt&&(this.e7=nw/100,this.mM=
|
|
mt/100);this.J("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(L8){var ms;((ms=g.y(L8,UrD))==null?void 0:ms.signal)==="INIT_ATT_SERVICE"&&(L.Es=!0)})}Ja(this,A);
|
|
OJ7(this,A);A.queue_info&&(this.queueInfo=A.queue_info);var T=A.hlsdvr;T!=null&&(this.allowLiveDvr=Number(T)===1?h7()?!0:oX&&$c<5?!1:!0:!1);this.adQueryId=A.ad_query_id||null;this.aQ||(this.aQ=A.encoded_ad_safety_reason||null);this.s$=Sw(this.s$,A.infringe||A.muted);this.g0=A.authkey;this.jy=A.authuser;this.mutedAutoplay=Sw(this.mutedAutoplay,A&&A.playmuted);this.mutedAutoplayDurationMode=ZG(this.mutedAutoplayDurationMode,A&&A.muted_autoplay_duration_mode);this.U$=Sw(this.U$,A&&A.mutedautoplay);var aO=
|
|
A.length_seconds;aO&&(this.lengthSeconds=typeof aO==="string"?na(aO):aO);this.isAd()||this.Of||!g.IX(g.nM(this.tF))?this.endSeconds=ZG(this.endSeconds,this.aB||A.end||A.endSeconds):W96(this,g.nM(this.tF),this.lengthSeconds);this.Wn=NE(this.Wn,A.itct);this.y8=Sw(this.y8,A.is_live_destination);this.isLivePlayback=Sw(this.isLivePlayback,A.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.iC();A.isUpcoming&&(this.isUpcoming=Sw(this.isUpcoming,A.isUpcoming));this.SD=Sw(this.SD,
|
|
A.post_live_playback);this.hd&&(this.SD=!1);this.isMdxPlayback=Sw(this.isMdxPlayback,A.mdx);var YW=A.mdx_control_mode;YW&&(this.mdxControlMode=typeof YW==="number"?YW:na(YW));this.isInlinePlaybackNoAd=Sw(this.isInlinePlaybackNoAd,A.is_inline_playback_no_ad);this.Cr=ZG(this.Cr,A.reload_count);this.reloadReason=NE(this.reloadReason,A.reload_reason);this.nL=Sw(this.nL,A.show_content_thumbnail);this.cycToken=A.cyc||null;var R0=lS(A);Object.keys(R0).length>0&&(this.ea=R0);this.qp=NE(this.qp,A.vvt);this.mdxEnvironment=
|
|
NE(this.mdxEnvironment,A.mdx_environment);A.source_container_playlist_id&&(this.sourceContainerPlaylistId=A.source_container_playlist_id);A.serialized_mdx_metadata&&(this.serializedMdxMetadata=A.serialized_mdx_metadata);this.Ze=A.osig;this.eventId||(this.eventId=A.eventid);this.osid||(this.osid=A.osid);this.playlistId=NE(this.playlistId,A.list);A.index&&(this.playlistIndex=this.playlistIndex===void 0?ZG(0,A.index):ZG(this.playlistIndex,A.index));this.dF=A.pyv_view_beacon_url;this.Wf=A.pyv_quartile25_beacon_url;
|
|
this.Ss=A.pyv_quartile50_beacon_url;this.J9=A.pyv_quartile75_beacon_url;this.yd=A.pyv_quartile100_beacon_url;var TK=A.session_data;!this.Ts&&TK&&(this.Ts=Vh(TK,"&").feature);this.isFling=ZG(this.isFling?1:0,A.is_fling)===1;this.vnd=ZG(this.vnd,A.vnd);this.forceAdsUrl=NE(this.forceAdsUrl,A.force_ads_url);this.bY=NE(this.bY,A.ctrl);this.CQ=NE(this.CQ,A.ytr);this.Zi=A.ytrcc;this.XE=A.ytrexp;this.F0=A.ytrext;this.ql=NE(this.ql,A.adformat);this.XR=NE(this.XR,A.attrib);this.slotPosition=ZG(this.slotPosition,
|
|
A.slot_pos);this.breakType=A.break_type;this.dY=Sw(this.dY,A.ssrt);this.videoId=DG(A)||this.videoId;this.T=NE(this.T,A.vss_credentials_token);this.Zl=NE(this.Zl,A.vss_credentials_token_type);this.qh=Sw(this.qh,A.audio_only);this.ZM=Sw(this.ZM,A.aac_high);this.jr=Sw(this.jr,A.prefer_low_quality_audio);this.YS=Sw(this.YS,A.uncap_inline_quality);this.J("html5_enable_qoe_cat_list")?A.qoe_cat&&(this.Vs=this.Vs.concat(A.qoe_cat.split(","))):this.AU=NE(this.AU,A.qoe_cat);this.Sb=Sw(this.Sb,A.download_media);
|
|
this.X=EhQ(this,A.prefer_gapless);pF1(this.playerResponse)&&this.p9.push("ad");var b=A.adaptive_fmts;b&&(this.adaptiveFormats=b,this.Hn("adpfmts",{},!0));var Lw=A.allow_embed;Lw&&(this.allowEmbed=Number(Lw)===1);var ro=A.backgroundable;ro&&(this.backgroundable=Number(ro)===1);var SZ=A.autonav;SZ&&(this.isAutonav=Number(SZ)===1);var xg=A.autoplay;xg&&(this.BV=this.Ll=Number(xg)===1);var R8=A.iv_load_policy;R8&&(this.annotationsLoadPolicy=RX(this.annotationsLoadPolicy,R8,zM));var a0=A.cc_lang_pref;
|
|
a0&&(this.captionsLanguagePreference=NE(a0,this.captionsLanguagePreference));var oO=A.cc_load_policy;oO&&(this.a7=RX(this.a7,oO,zM));var tO;this.deviceCaptionsOn=(tO=A.device_captions_on)!=null?tO:void 0;var k;this.Gx=(k=A.device_captions_lang_pref)!=null?k:"";var H;this.rp=(H=A.viewer_selected_caption_langs)!=null?H:[];var t=A.cached_load;t&&(this.hI=Sw(this.hI,t));if(A.dash==="0"||A.dash===0||A.dash===!1)this.jH=!0;var E=A.dashmpd;E&&(this.sZ=g.ip(E,{cpn:this.clientPlaybackNonce}));var e=A.delay;
|
|
e&&(this.qo=na(e));var SE=this.aB||A.end;if(this.sx?SE!=null:SE!=void 0)this.clipEnd=ZG(this.clipEnd,SE);var z=A.fmt_list;z&&(this.bI=z);A.heartbeat_preroll&&this.p9.push("heartbeat");ucO&&(this.Ji=-Math.floor(Math.random()*10),this.Tf=-Math.floor(Math.random()*40));var P=A.is_listed;P&&(this.isListed=Sw(this.isListed,P));var M=A.is_private;M&&(this.isPrivate=Sw(this.isPrivate,M));var mv=A.is_dni;mv&&(this.OE=Sw(this.OE,mv));var Qe=A.dni_color;Qe&&(this.kE=NE(this.kE,Qe));var ye=A.pipable;ye&&(this.pipable=
|
|
Sw(this.pipable,ye));this.r4=(this.xY=this.pipable&&this.tF.mL)&&!this.tF.showMiniplayerButton;var T8=A.paid_content_overlay_duration_ms;T8&&(this.paidContentOverlayDurationMs=na(T8));var ff=A.paid_content_overlay_text;ff&&(this.paidContentOverlayText=ff);var t1=A.url_encoded_fmt_stream_map;t1&&(this.Nh=t1);var Yg=A.hls_formats;Yg&&(this.hlsFormats=Yg);var eZ=A.hlsvp;eZ&&(this.hlsvp=eZ);var nf=A.live_start_walltime;nf&&(this.r0=typeof nf==="number"?nf:na(nf));var lL=A.live_manifest_duration;lL&&(this.JA=
|
|
typeof lL==="number"?lL:na(lL));var W4=A.player_params;W4&&(this.playerParams=W4);var Cw=A.partnerid;Cw&&(this.partnerId=ZG(this.partnerId,Cw));var sd=A.probe_url;sd&&(this.probeUrl=YG(g.ip(sd,{cpn:this.clientPlaybackNonce})));var Y7=A.pyv_billable_url;Y7&&ofv(Y7)&&(this.N3=Y7);var E6=A.pyv_conv_url;E6&&ofv(E6)&&(this.NB=E6);ML8(this,A);this.startSeconds>0?this.J("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.G2||this.dW||A.start||A.startSeconds)&&this.Hn("lss",{css:this.startSeconds,
|
|
pcss:this.G2,iss:this.dW,ps:A.start||void 0,pss:A.startSeconds||void 0}):(this.startSeconds=ZG(this.startSeconds,this.G2||this.dW||A.start||A.startSeconds),this.J("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.Hn("lsss",{css:this.startSeconds,pcss:this.G2,iss:this.dW,ps:A.start||void 0,pss:A.startSeconds||void 0}),this.Ex=this.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Hw=A.live_utc_start;Hw!=null?this.liveUtcStartSeconds=Number(Hw):Ane(this.startSeconds)&&
|
|
(this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var AO=A.utc_start_millis;AO&&(this.liveUtcStartSeconds=Number(AO)*.001)}var fx=A.stream_time_start_millis;fx&&(this.NT=Number(fx)*.001);var cw=this.dW||A.start;(this.sx?cw==null||Number(A.resume)===1:cw==void 0||A.resume=="1")||this.isLivePlayback||(this.clipStart=ZG(this.clipStart,cw));var iB=A.url_encoded_third_party_media;iB&&(this.b2=Sk(iB));var yR=A.ypc_offer_button_formatted_text;if(yR){var CG=
|
|
JSON.parse(yR);this.wH=CG!=null?CG:null;this.A9=yR}var Ir=A.ypc_offer_button_text;Ir&&(this.z0=Ir);var w6=A.ypc_offer_description;w6&&(this.Gm=w6);var VI=A.ypc_offer_headline;VI&&(this.EA=VI);var Js=A.ypc_full_video_message;Js&&(this.v0=Js);var JD=A.ypc_offer_id;JD&&(this.yW=JD);var GO=A.ypc_buy_url;GO&&(this.gD=GO);var S1=A.ypc_item_thumbnail;S1&&(this.rD=S1);var RK=A.ypc_item_title;RK&&(this.Kf=RK);var Zn=A.ypc_item_url;Zn&&(this.n1=Zn);var nv=A.ypc_vid;nv&&(this.B0=nv);A.ypc_overlay_timeout&&(this.O1=
|
|
Number(A.ypc_overlay_timeout));var cg=A.ypc_trailer_player_vars;cg&&(this.WC=I0(cg));var M4=A.ypc_original_itct;M4&&(this.U3=M4);this.JO=NE(this.JO,A.ucid);this.r$=A.storyboard_spec||null;this.TK=A.live_storyboard_spec||null;this.x$=A.iv_endscreen_url||null;this.qw=Sw(this.qw,A.iv3_module);this.kS=Sw(this.kS,A.ypc_module);this.b8=Sw(this.b8,A.ypc_clickwrap_module);this.kS&&this.p9.push("ypc");this.b8&&this.p9.push("ypcRentalActivation");this.P0={video_id:A.video_id,eventid:A.eventid,cbrand:A.cbrand,
|
|
cbr:A.cbr,cbrver:A.cbrver,c:A.c,cver:A.cver,ctheme:A.ctheme,cplayer:A.cplayer,cmodel:A.cmodel,cnetwork:A.cnetwork,cos:A.cos,cosver:A.cosver,cplatform:A.cplatform,user_age:A.user_age,user_display_image:A.user_display_image,user_display_name:A.user_display_name,user_gender:A.user_gender,csi_page_type:A.csi_page_type,csi_service_name:A.csi_service_name,enablecsi:A.enablecsi,enabled_engage_types:A.enabled_engage_types};EYS(this,A);var Nh=A.cotn;Nh&&(this.cotn=Nh);fyE(this)?sr(this)&&(this.isLivePlayback&&
|
|
this.sZ&&(this.TZ=!0),this.xf&&(this.Gt=!0)):KWE(this)?this.TZ=!0:B3L(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&ta(this):this.sZ&&(this.tF.Wn==="yt"&&this.iC()&&this.J("drm_manifestless_unplugged")&&this.J("html5_deprecate_manifestful_fallback")?this.Hn("deprecateMflFallback",{}):this.TZ=!0);var td=A.adpings;td&&(this.w$=td?I0(td):null);var kb=A.feature;kb&&(this.Sw=kb);var Fs=A.referrer;Fs&&(this.referrer=Fs);this.clientScreenNonce=NE(this.clientScreenNonce,A.csn);this.hG=
|
|
ZG(this.hG,A.root_ve_type);this.IV=ZG(this.IV,A.kids_age_up_mode);this.sx||A.kids_app_info==void 0||(this.kidsAppInfo=A.kids_app_info);this.sx&&A.kids_app_info!=null&&(this.kidsAppInfo=A.kids_app_info);this.gp=Sw(this.gp,A.upg_content_filter_mode);this.unpluggedFilterModeType=ZG(this.unpluggedFilterModeType,A.unplugged_filter_mode_type);var Dn=A.unplugged_location_info;Dn&&(this.Uv=Dn);var di=A.unplugged_partner_opt_out;di&&(this.Xp=NE("",di));this.gy=Sw(this.gy,A.disable_watch_next);this.Mb=NE(this.Mb,
|
|
A.internal_ip_override);this.ke=!!A.is_yto_interstitial;this.interstitials.length&&this.p9.push("playableSequences");var IK=A.LX;IK&&(this.LX=IK);this.yj=NE(this.yj,A.csi_timer);A.watchUrl&&(this.watchUrl=A.watchUrl);var sz=A.watch_endpoint;this.J("html5_attach_watch_endpoint_ustreamer_config")&&sz&&kAy(this,sz);if(sz==null?0:sz.ustreamerConfig)this.xC=$i(sz.ustreamerConfig);var zV,Tw,lH=sz==null?void 0:(zV=sz.loggingContext)==null?void 0:(Tw=zV.qoeLoggingContext)==null?void 0:Tw.serializedContextData;
|
|
lH&&(this.Zt=lH);g.MM(this.tF)&&this.tF.iF&&(this.embedsRct=NE(this.embedsRct,A.rct),this.embedsRctn=NE(this.embedsRctn,A.rctn));A.embed_config&&(this.e8=A.embed_config);this.Bk=this.Bk||!!A.pause_at_start;A.default_active_source_video_id&&(this.defaultActiveSourceVideoId=A.default_active_source_video_id);this.GZ=this.GZ||!!A.live_preload};
|
|
g.p.K=function(){return this.tF};
|
|
g.p.J=function(A){return this.tF.J(A)};
|
|
g.p.Kw=function(){return!this.isLivePlayback||this.allowLiveDvr};
|
|
g.p.hasSupportedAudio51Tracks=function(){var A;return!((A=this.cn)==null||!A.ql)};
|
|
g.p.getUserAudio51Preference=function(){var A=1;Ro(this.tF)&&this.J("html5_ytv_surround_toggle_default_off")?A=0:V3(this.tF)&&this.isLivePlayback&&this.U6()&&(A=0);var L;return(L=g.ES("yt-player-audio51"))!=null?L:A};
|
|
g.p.KT=function(){this.TL()||(this.N.W||this.N.unsubscribe("refresh",this.KT,this),this.xO(-1))};
|
|
g.p.xO=function(A){if(!this.isLivePlayback||!this.D||this.D.flavor!=="fairplay"){var L=i$v(this.N,this.V8);if(L.length>0){for(var B=g.m(L),f=B.next();!f.done;f=B.next())f=f.value,f.startSecs=Math.max(f.startSecs,this.vy()),this.J("html5_cuepoint_identifier_logging")&&f.event==="start"&&this.Hn("cuepoint",{pubCue:f.identifier,segNum:A});this.publish("cuepointupdated",L,A);this.V8+=L.length;if(ta(this)&&this.tF.hw())for(L=g.m(L),B=L.next();!B.done;B=L.next())B=B.value,this.Hn("cuepoint",{segNum:A,event:B.event,
|
|
startSecs:B.startSecs,id:B.identifier.slice(-16)}),B.event==="start"&&(B=B.startSecs,this.iD.start=this.jI,this.iD.end=B+3)}}};
|
|
g.p.C_=function(){this.TL()||(this.loading=!1,this.publish("dataloaded"))};
|
|
g.p.U6=function(){return this.R_!==void 0?this.R_:this.R_=!!this.Zj||!!this.N&&PZ(this.N)};
|
|
g.p.Ij=function(A){var L=this;if(this.TL())return Xa();this.Nl=this.wT=this.V=null;Rh(this,"html5_high_res_logging_always")&&(this.tF.Ry=!0);return SMv(this,A).then(void 0,function(){return ZS8(L,A)}).then(void 0,function(){return N30(L)}).then(void 0,function(){return DFL(L)})};
|
|
g.p.zc=function(A){this.V=A;RpE(this,this.V.getAvailableAudioTracks());if(this.V){A=g.m(this.V.videoInfos);for(var L=A.next();!L.done;L=A.next()){L=L.value;var B=L.containerType;B!==0&&(this.rg[B]=L.id)}}A=this.getAvailableAudioTracks();A=A.concat(this.Ry);for(L=0;L<this.kL.length;L++){B=this.kL[L];for(var f=0;f<A.length;f++){var K=A[f],V=K.ri.id===B.audioTrackId;if(K.ri.isDefault&&L===this.As||V){if(B.captionTrackIndices)for(V=0;V<B.captionTrackIndices.length;V++)K.captionTracks[V]=this.captionTracks[B.captionTrackIndices[V]];
|
|
B.defaultCaptionTrackIndex!==void 0&&(K.V=this.captionTracks[B.defaultCaptionTrackIndex]);B.forcedCaptionTrackIndex!==void 0&&(K.N=this.captionTracks[B.forcedCaptionTrackIndex]);K.W=B.visibility||"UNKNOWN";K.captionsInitialState=B.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(this.D&&this.V&&this.V.videoInfos&&!(this.V.videoInfos.length<=0)&&(A=WV(this.V.videoInfos[0]),this.D.flavor==="fairplay"!==A))for(L=g.m(this.BI),B=L.next();!B.done;B=L.next())if(B=B.value,A===(B.flavor==="fairplay")){this.D=
|
|
B;break}};
|
|
g.p.rB=function(){if(this.cotn)return null;var A=g.dY(this.tF)||this.J("web_l3_storyboard");if(!this.Po)if(this.playerResponse&&this.playerResponse.storyboards){var L=this.playerResponse.storyboards,B=L.playerStoryboardSpecRenderer;B&&B.spec?this.Po=new Lr(B.spec,this.lengthSeconds,void 0,!1,A):(L=L.playerLiveStoryboardSpecRenderer)&&L.spec&&this.N&&(B=V5k(this.N.N).index)&&(this.Po=new BK(L.spec,this.N.isLive,B,A))}else this.r$?this.Po=new Lr(this.r$,this.lengthSeconds,void 0,!1,A):this.TK&&this.N&&
|
|
(L=V5k(this.N.N).index)&&(this.Po=new BK(this.TK,this.N.isLive,L,A));return this.Po};
|
|
g.p.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.r$||this.TK};
|
|
g.p.oA=function(){return this.N&&!isNaN(this.N.oA())?this.N.oA():ta(this)?0:this.lengthSeconds};
|
|
g.p.vy=function(){return this.N&&!isNaN(this.N.vy())?this.N.vy():0};
|
|
g.p.getPlaylistSequenceForTime=function(A){if(this.N&&this.W){var L=this.N.N[this.W.id];if(!L)return null;var B=L.index.NV(A);L=L.index.getStartTime(B);return{sequence:B,elapsed:Math.floor((A-L)*1E3)}}return null};
|
|
g.p.gX=function(){return!this.TL()&&!(!this.videoId&&!this.b2)};
|
|
g.p.F$=function(){var A,L,B;return!!this.adaptiveFormats||!!((A=this.playerResponse)==null?0:(L=A.streamingData)==null?0:(B=L.adaptiveFormats)==null?0:B.length)};
|
|
g.p.isLoaded=function(){return V7(this)&&!this.TZ&&!this.Gt};
|
|
g.p.g1=function(A){A||(A="hqdefault.jpg");var L=this.ea[A];return L||this.tF.qp||A==="pop1.jpg"||A==="pop2.jpg"||A==="sddefault.jpg"||A==="hq720.jpg"||A==="maxresdefault.jpg"?L:fo(this.tF,this.videoId,A)};
|
|
g.p.iC=function(){return this.isLivePlayback||this.SD||this.hd||!(!this.liveUtcStartSeconds||!this.JA)};
|
|
g.p.isOtf=function(){return!!this.N&&(this.N.isOtf||!this.SD&&!this.isLivePlayback&&this.N.W)};
|
|
g.p.getAvailableAudioTracks=function(){if(this.V){if(this.V.getAvailableAudioTracks().length>0)return this.V.getAvailableAudioTracks();if(this.nD)return this.nD;if(this.fu)return this.fu}return[]};
|
|
g.p.getAudioTrack=function(){var A=this;if(this.U&&!WV(this.U)){var L=g.Pw(this.getAvailableAudioTracks(),function(K){return K.id===A.U.id}),B;
|
|
if(!L&&((B=this.U.ri)==null?0:B.id)){var f=this.U.ri.id;L=g.Pw(this.getAvailableAudioTracks(),function(K){return K.ri.id===f});
|
|
this.Hn("nat",{id:this.U.id,track:!!L})}return L||this.Ry}if(this.nD){if(!this.ye)for(L=g.m(this.nD),B=L.next();!B.done;B=L.next())if(B=B.value,B.ri.getIsDefault()){this.ye=B;break}return this.ye||this.Ry}return this.Ry};
|
|
g.p.getPlayerResponse=function(){return this.playerResponse};
|
|
g.p.getWatchNextResponse=function(){return this.Vj};
|
|
g.p.getReelItemWatchResponse=function(){return this.reelItemWatchResponse};
|
|
g.p.getHeartbeatResponse=function(){return this.hq};
|
|
g.p.Ej=function(){return this.watchUrl?this.watchUrl:this.tF.getVideoUrl(this.videoId)};
|
|
g.p.QE=function(){return!!this.N&&(H$k(this.N)||ho8(this.N)||b$0(this.N))};
|
|
g.p.getEmbeddedPlayerResponse=function(){return this.Yu};
|
|
g.p.zt=function(){return(this.eventLabel||this.tF.Vj)==="shortspage"};
|
|
g.p.isAd=function(){return this.UO||!!this.adFormat};
|
|
g.p.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
|
|
g.p.aA=function(){var A,L,B;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((A=this.playerResponse)==null?0:(L=A.playerConfig)==null?0:(B=L.daiConfig)==null?0:B.ssaEnabledPlayback)};
|
|
g.p.Fl=function(){return this.Q0};
|
|
g.p.LK=function(){return this.kS||this.a8};
|
|
g.p.Os=function(){return Rh(this,"html5_samsung_vp9_live")};
|
|
g.p.Hn=function(A,L,B){this.publish("ctmp",A,L,B)};
|
|
g.p.SV=function(A,L,B){this.publish("ctmpstr",A,L,B)};
|
|
g.p.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
|
|
g.p.getGetAdBreakContext=function(A,L){A=A===void 0?NaN:A;L=L===void 0?NaN:L;var B={isSabr:iS(this)},f,K=(f=this.getHeartbeatResponse())==null?void 0:f.adBreakHeartbeatParams;K&&(B.adBreakHeartbeatParams=K);if(this.J("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.N&&!isNaN(A)&&!isNaN(L)){L=A-L;for(var V in this.N.N)if(f=this.N.N[V],f.info.WV()||f.info.NF())if(f=f.index,f.isLoaded()){V=f.NV(L);f=f.wX(V)+L-f.getStartTime(V);this.Hn("gabc",{t:A.toFixed(3),mt:L.toFixed(3),sg:V,igt:f.toFixed(3)});
|
|
B.livePlaybackPosition={utcTimeMillis:""+(f*1E3).toFixed(0)};break}}return B};
|
|
g.p.isEmbedsShortsMode=function(A,L){if(!g.MM(this.tF)||(this.tF.wT||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||L)return!1;if(this.J("embeds_enable_shorts")){var B,f;return!!((B=this.embeddedPlayerConfig)==null?0:(f=B.embeddedPlayerFlags)==null?0:f.isShortsExperienceEligible)}var K,V;return!!(((K=this.embeddedPlayerConfig)==null?0:(V=K.embeddedPlayerFlags)==null?0:V.isShortsExperienceEligible)&&A.width<=A.height)};
|
|
g.p.gS=function(A,L){L?this.G3||(this.G3=A):this.oz||(this.oz=A)};
|
|
g.p.l1=function(){g.SN.prototype.l1.call(this);this.w$=null;delete this.Y2;delete this.accountLinkingConfig;delete this.N;this.V=this.hq=this.playerResponse=this.Vj=null;this.Nh=this.adaptiveFormats="";delete this.botguardData;this.JF=this.suggestions=this.M7=null;this.sabrContextUpdates.clear()};
|
|
var ucO=!0;var P4Q={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},xFL={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},vh8={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},MMy={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"},UFk={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},YML={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG",
|
|
3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},qMQ={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.G(Ih,g.Y);g.p=Ih.prototype;g.p.handleExternalCall=function(A,L,B){var f=this.state.T[A],K=this.state.X[A],V=f;if(K)if(B&&cR(B,wkf))V=K;else if(!f)throw Error('API call from an untrusted origin: "'+B+'"');this.logApiCall(A,B);if(V){a:{B=g.m(L);for(f=B.next();!f.done;f=B.next())if(String(f.value).includes("javascript:")){B=!0;break a}B=!1}B&&g.CE(Error('Dangerous call to "'+A+'" with ['+L+"]."));return V.apply(this,L)}throw Error('Unknown API method: "'+A+'".');};
|
|
g.p.logApiCall=function(A,L,B){var f=this.app.K();f.JV&&!this.state.yj.has(A)&&(this.state.yj.add(A),g.pE("webPlayerApiCalled",{callerUrl:f.loaderUrl,methodName:A,origin:L||void 0,playerStyle:f.playerStyle||void 0,embeddedPlayerMode:f.wT,errorCode:B}))};
|
|
g.p.publish=function(A){var L=g.pf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[A].concat(g.x7(L)));if(A==="videodatachange"||A==="resize"||A==="cardstatechange")this.state.W.publish.apply(this.state.W,[A].concat(g.x7(L))),this.state.U.publish.apply(this.state.U,[A].concat(g.x7(L)))};
|
|
g.p.Kr=function(A){var L=g.pf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[A].concat(g.x7(L)));this.state.W.publish.apply(this.state.W,[A].concat(g.x7(L)))};
|
|
g.p.Wo=function(A){var L=g.pf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[A].concat(g.x7(L)));this.state.W.publish.apply(this.state.W,[A].concat(g.x7(L)));this.state.U.publish.apply(this.state.U,[A].concat(g.x7(L)))};
|
|
g.p.X3=function(A){var L=g.pf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[A].concat(g.x7(L)));this.state.W.publish.apply(this.state.W,[A].concat(g.x7(L)));this.state.U.publish.apply(this.state.U,[A].concat(g.x7(L)));this.state.D.publish.apply(this.state.D,[A].concat(g.x7(L)))};
|
|
g.p.J=function(A){return this.app.K().J(A)};
|
|
g.p.l1=function(){if(this.state.element){var A=this.state.element,L;for(L in this.state.N)this.state.N.hasOwnProperty(L)&&(A[L]=null);this.state.element=null}g.Y.prototype.l1.call(this)};g.G(gh,g.TF);gh.prototype.publish=function(A){var L=g.pf.apply(1,arguments);if(this.D.has(A))return this.D.get(A).push(L),!0;var B=!1;try{for(L=[L],this.D.set(A,L);L.length;)B=g.TF.prototype.publish.call.apply(g.TF.prototype.publish,[this,A].concat(g.x7(L.shift())))}finally{this.D.delete(A)}return B};g.G(Gg,g.Y);Gg.prototype.l1=function(){this.D.dispose();this.U.dispose();this.W.dispose();this.V.dispose();this.yj=this.N=this.X=this.T=this.G=void 0};var L6Q=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.G(sU,Ih);g.p=sU.prototype;g.p.getApiInterface=function(){return Array.from(this.state.G)};
|
|
g.p.tX=function(A,L){this.state.D.subscribe(A,L)};
|
|
g.p.Q04=function(A,L){this.state.D.unsubscribe(A,L)};
|
|
g.p.getPlayerState=function(A){return wx6(this.app,A)};
|
|
g.p.gz=function(){return wx6(this.app)};
|
|
g.p.Va1=function(A,L,B){bz(this)&&($y(this.app,!0,1),Ep(this.app,A,L,B,1))};
|
|
g.p.getCurrentTime=function(A,L,B){var f=this.getPlayerState(A);if(this.app.getAppState()===2&&f===5){var K;return((K=this.app.getVideoData())==null?void 0:K.startSeconds)||0}return this.J("web_player_max_seekable_on_ended")&&f===0?Tj(this.app,A):A?this.app.getCurrentTime(A,L,B):this.app.getCurrentTime(A)};
|
|
g.p.wz=function(){return this.app.getCurrentTime(1)};
|
|
g.p.Tu=function(){var A=this.app.wX(1);return isNaN(A)?this.getCurrentTime(1):A};
|
|
g.p.RY=function(){return this.app.getDuration(1)};
|
|
g.p.CH=function(A,L){A=g.B4(Math.floor(A),0,100);isFinite(A)&&tZ(this.app,{volume:A,muted:this.isMuted()},L)};
|
|
g.p.ggM=function(A){this.CH(A,!1)};
|
|
g.p.Km=function(A){tZ(this.app,{muted:!0,volume:this.getVolume()},A)};
|
|
g.p.svs=function(){this.Km(!1)};
|
|
g.p.VX=function(A){tZ(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},A)};
|
|
g.p.ZVF=function(){hj(this.app)||this.VX(!1)};
|
|
g.p.getPlayerMode=function(){var A={};this.app.getVideoData().OE&&(A.pfp={enableIma:this.app.df().allowImaMonetization,autoplay:aq(this.app.df()),mutedAutoplay:this.app.df().mutedAutoplay});return A};
|
|
g.p.N1=function(){var A=this.app.getPresentingPlayerType();if(A===2&&!this.app.yC()){var L=HB(this.app.SI());if(!(duL(L)||g.MM(this.app.K())&&g.x(this.app.e4().getPlayerState(),1024))||IM7(L))return}(L=this.app.mD().VN)?L.playVideo():this.app.playVideo(A)};
|
|
g.p.UFD=function(){$y(this.app,!0,1);this.N1()};
|
|
g.p.pauseVideo=function(A){var L=this.app.getPresentingPlayerType();if(L!==2||this.app.yC()||duL(HB(this.app.SI()))){var B=this.app.mD().VN;B?B.pauseVideo():this.app.pauseVideo(L,A)}};
|
|
g.p.ar1=function(){var A=this.app,L=!1;A.L.zV&&(A.rT.publish("pageTransition"),L=!0);A.stopVideo(L)};
|
|
g.p.clearVideo=function(){};
|
|
g.p.getAvailablePlaybackRates=function(){var A=this.app.K();if(A.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(A.U?A.ancestorOrigins[0]:window.location.origin)||A.Tg)return ewf;A=this.app.getVideoData();var L=A.e7,B=A.mM;return nWW.filter(function(f){return f>=L&&f<=B})}return[1]};
|
|
g.p.getPlaybackQuality=function(A){return(A=this.app.Jz(A))?A.getPlaybackQuality():"unknown"};
|
|
g.p.J1n=function(){};
|
|
g.p.getAvailableQualityLevels=function(A){return(A=this.app.Jz(A))?(A=g.mn(A.KO(),function(L){return L.quality}),A.length&&(A[0]==="auto"&&A.shift(),A=A.concat(["auto"])),A):[]};
|
|
g.p.Vo=function(){return this.getAvailableQualityLevels(1)};
|
|
g.p.fv=function(){return this.jn()};
|
|
g.p.Cv=function(){return 1};
|
|
g.p.getVideoLoadedFraction=function(A){return this.app.getVideoLoadedFraction(A)};
|
|
g.p.jn=function(){return this.getVideoLoadedFraction()};
|
|
g.p.eq=function(){return 0};
|
|
g.p.getSize=function(){var A=this.app.Pn().getPlayerSize();return{width:A.width,height:A.height}};
|
|
g.p.setSize=function(){this.app.Pn().resize()};
|
|
g.p.loadVideoById=function(A,L,B,f){if(!A)return!1;A=rh(A,L,B);return this.app.loadVideoByPlayerVars(A,f)};
|
|
g.p.kVD=function(A,L,B){A=this.loadVideoById(A,L,B,1);$y(this.app,A,1)};
|
|
g.p.cueVideoById=function(A,L,B,f){A=rh(A,L,B);this.app.cueVideoByPlayerVars(A,f)};
|
|
g.p.P7=function(A,L,B){this.cueVideoById(A,L,B,1)};
|
|
g.p.loadVideoByUrl=function(A,L,B,f){A=A2y(A,L,B);return this.app.loadVideoByPlayerVars(A,f)};
|
|
g.p.bYT=function(A,L,B){A=this.loadVideoByUrl(A,L,B,1);$y(this.app,A,1)};
|
|
g.p.cueVideoByUrl=function(A,L,B,f){A=A2y(A,L,B);this.app.cueVideoByPlayerVars(A,f)};
|
|
g.p.N6=function(A,L,B){this.cueVideoByUrl(A,L,B,1)};
|
|
g.p.vJ=function(){var A=this.app.K();if(A.qp)return"";var L=this.app.df(),B=void 0;L.isLivePlayback||(B=Math.floor(this.app.getCurrentTime(1)));return A.getVideoUrl(L.videoId,this.getPlaylistId()||void 0,B)};
|
|
g.p.Mj=function(){return this.app.getDebugText()};
|
|
g.p.getVideoEmbedCode=function(){var A=this.app.K();if(A.qp)return"";var L=this.app.df();return A.getVideoEmbedCode(L.isPrivate?"":L.title,this.app.df().videoId,this.app.Pn().getPlayerSize(),this.getPlaylistId()||void 0)};
|
|
g.p.Vp=function(A,L,B){return GqQ(this.app,A,L,B)};
|
|
g.p.removeCueRange=function(A){return this.app.yx(A)};
|
|
g.p.loadPlaylist=function(A,L,B,f){this.app.loadPlaylist(A,L,B,f)};
|
|
g.p.IgM=function(A,L,B,f){this.loadPlaylist(A,L,B,f);$y(this.app,!0,1)};
|
|
g.p.cuePlaylist=function(A,L,B,f){this.app.cuePlaylist(A,L,B,f)};
|
|
g.p.nextVideo=function(A,L){this.app.nextVideo(A,L)};
|
|
g.p.xlF=function(){this.nextVideo();$y(this.app,!0,1)};
|
|
g.p.previousVideo=function(A){this.app.previousVideo(A)};
|
|
g.p.Y6s=function(){this.previousVideo();$y(this.app,!0,1)};
|
|
g.p.playVideoAt=function(A){this.app.playVideoAt(A)};
|
|
g.p.FCp=function(A){this.playVideoAt(A);$y(this.app,!0,1)};
|
|
g.p.setShuffle=function(A){var L=this.app.getPlaylist();L&&L.setShuffle(A)};
|
|
g.p.setLoop=function(A){var L=this.app.getPlaylist();L&&(L.loop=A)};
|
|
g.p.E8=function(){var A=this.app.getPlaylist();if(!A)return null;for(var L=[],B=0;B<A.length;B++){var f=g.R_(A,B);f&&L.push(f.videoId)}return L};
|
|
g.p.getPlaylistIndex=function(){var A=this.app.getPlaylist();return A?A.index:-1};
|
|
g.p.getPlaylistId=function(){var A=this.app.getPlaylist();return A&&A.listId?A.listId.toString():null};
|
|
g.p.GG=function(A){A==="captions"&&(A=g.y2(this.app.SI()))&&!A.loaded&&A.load()};
|
|
g.p.x7=function(A){A==="captions"&&(A=g.y2(this.app.SI()))&&A.loaded&&A.J2x()};
|
|
g.p.HP=function(A,L,B){if(!L)return null;var f=this.app.SI();return A==="captions"?(A=g.y2(f))&&A.PR(L,B):null};
|
|
g.p.jq=function(A,L,B){return Fr(this.app.kP().getVideoData())?{}:this.HP(A,L,B)};
|
|
g.p.po=function(A){var L=this.app.SI();if(A==="captions"){var B;return((B=g.y2(L))==null?void 0:B.getOptions())||null}return A?null:(A=[],g.y2(L)&&A.push("captions"),A)};
|
|
g.p.getVolume=function(){return this.app.CV.volume};
|
|
g.p.isMuted=function(){return this.app.CV.muted};
|
|
g.p.destroy=function(){this.app.dispose()};
|
|
g.p.logImaAdEvent=function(A,L){var B=this.app.K();this.app.df().allowImaMonetization&&(A={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:L,embedUrl:g.Zvk(this.app.K().loaderUrl),eventType:A,youtubeHost:g.tW(this.app.K().vI)||""},A.embeddedPlayerMode=B.wT,g.pE("embedsAdEvent",A))};
|
|
g.p.mutedAutoplay=function(A){var L=this.app.K(),B,f,K;((B=L.getWebPlayerContextConfig())==null?0:(f=B.embedsHostFlags)==null?0:(K=f.allowMutedAutoplayDurationMode)==null?0:K.length)&&!L.V&&this.app.mutedAutoplay(A)};
|
|
g.p.preloadVideoById=function(A,L,B,f){var K,V;((K=this.app.K().getWebPlayerContextConfig())==null?0:(V=K.embedsHostFlags)==null?0:V.allowPreloadVideoById)&&A&&(A=rh(A,L,B),this.app.preloadVideoByPlayerVars(A,f))};
|
|
g.p.T1n=function(A,L,B){this.preloadVideoById(A,L,B,1)};
|
|
g.p.setFauxFullscreen=function(A){g.rL();this.app.Fc(A?2:0)};
|
|
g.p.Dqr=function(A){var L,B;((L=this.app.K().getWebPlayerContextConfig())==null?0:(B=L.embedsHostFlags)==null?0:B.allowSetFauxFullscreen)&&this.setFauxFullscreen(A)};
|
|
g.p.setCenterCrop=function(A){var L,B;((L=this.app.K().getWebPlayerContextConfig())==null?0:(B=L.embedsHostFlags)==null?0:B.allowSetCenterCrop)&&this.app.Pn().setCenterCrop(A)};
|
|
g.p.wakeUpControls=function(){var A=g.Hh(this);A&&A.V9()};var J2D="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.G(tj,sU);g.p=tj.prototype;g.p.Fm=function(A,L){this.state.U.subscribe(A,L)};
|
|
g.p.vyF=function(A,L){this.state.U.unsubscribe(A,L)};
|
|
g.p.cueVideoByPlayerVars=function(A,L){this.app.cueVideoByPlayerVars(A,L)};
|
|
g.p.d9=function(A,L){L=L===void 0?1:L;this.cueVideoByPlayerVars(kn(this,A),L)};
|
|
g.p.loadVideoByPlayerVars=function(A,L,B,f,K){this.app.loadVideoByPlayerVars(A,B,L,f,K)};
|
|
g.p.mlp=function(A,L,B,f){B=B===void 0?1:B;this.loadVideoByPlayerVars(kn(this,A),L,B,f)};
|
|
g.p.preloadVideoByPlayerVars=function(A,L,B,f,K){B=B===void 0?NaN:B;this.app.preloadVideoByPlayerVars(A,L,B,f===void 0?"":f,K===void 0?"":K)};
|
|
g.p.XVM=function(A,L,B,f){L=L===void 0?1:L;this.preloadVideoByPlayerVars(kn(this,A),L,B,f)};
|
|
g.p.OW=function(A,L,B){this.loadVideoById(A,L,B,1)};
|
|
g.p.Bt=function(A,L,B){this.loadVideoByUrl(A,L,B,1)};
|
|
g.p.rz=function(A){return this.getPlayerState(A)};
|
|
g.p.Tp=function(A){A=A===void 0?1:A;var L=BSS(this,A);if(A=this.app.Jz(A)){A=A.getVideoData();L.backgroundable=A.backgroundable;L.eventId=A.eventId;L.cpn=A.clientPlaybackNonce;L.isLive=A.isLivePlayback;L.isWindowedLive=A.hd;L.isManifestless=ta(A);L.allowLiveDvr=A.allowLiveDvr;L.isListed=A.isListed;A.liveUtcStartSeconds!=null&&(L.liveUtcStartSeconds=A.liveUtcStartSeconds);A.U6()&&(L.isEncrypted=!0);if(A.V)for(var B=g.m(A.V.videoInfos),f=B.next();!f.done;f=B.next()){var K=void 0;if((K=f.value.video)==
|
|
null?0:K.isHdr()){L.isHdr=!0;break}}var V,J;L.isMultiChannelAudio=!!((V=A.U)==null?0:(J=V.audio)==null?0:J.isMultiChannelAudio())}return L};
|
|
g.p.seekBy=function(A,L,B,f,K){bz(this)&&Ep(this.app,this.app.getCurrentTime()+A,L,B,K,f)};
|
|
g.p.lrs=function(A,L,B){this.seekBy(A,L,B,void 0,1)};
|
|
g.p.seekTo=function(A,L,B,f,K){bz(this)&&Ep(this.app,A,L,B,f,K)};
|
|
g.p.mqs=function(A,L,B,f){this.seekTo(A,L,B,f===void 0?1:f)};
|
|
g.p.getStoryboardFormat=function(){return Fr(this.app.getVideoData())?null:this.app.getStoryboardFormat()};
|
|
g.p.ZV=function(A,L){return this.getCurrentTime(A===void 0?1:A,L)};
|
|
g.p.DB=function(){var A=this.app.getPresentingPlayerType(!0);A===2&&this.app.yC()&&(A=1);return A};
|
|
g.p.getDuration=function(A,L){return A?this.app.getDuration(A,L):this.app.getDuration(A)};
|
|
g.p.Pv=function(A,L){return this.getDuration(A===void 0?1:A,L)};
|
|
g.p.x9=function(A){return this.getVideoLoadedFraction(A)};
|
|
g.p.loadModule=function(A){if(A==="annotations_module"){var L=g.tq(this.app.SI());L&&!L.loaded&&L.load()}this.GG(A)};
|
|
g.p.unloadModule=function(A){if(A==="annotations_module"){var L=g.tq(this.app.SI());L&&L.loaded&&L.unload()}this.x7(A)};
|
|
g.p.getOption=function(A,L,B,f){return(f=this.app.Jz(f))&&Fr(f.getVideoData())?{}:this.setOption(A,L,B)};
|
|
g.p.F8=function(A,L,B){return this.getOption(A,L,B,1)};
|
|
g.p.getOptions=function(A){var L=this.app.SI();switch(A){case "ad":var B,f;return((B=HB(L))==null?void 0:(f=B.getOptions)==null?void 0:f.call(B))||null;case "remote":var K,V;return((K=EU(L))==null?void 0:(V=K.getOptions)==null?void 0:V.call(K))||null;case "annotations_module":var J,R;return((J=g.tq(L))==null?void 0:(R=J.getOptions)==null?void 0:R.call(J))||null;case "creatorendscreen":var Z,N;return((Z=kS(L))==null?void 0:(N=Z.getOptions)==null?void 0:N.call(Z))||null;case "unplugged":var F,D;return((F=
|
|
g.hq(L))==null?void 0:(D=F.getOptions)==null?void 0:D.call(F))||null;case "kids":var I,d;return((I=F51(L))==null?void 0:(d=I.getOptions)==null?void 0:d.call(I))||null}if(!A){A=this.po();if(!A)return A;HB(L)&&A.push("ad");EU(L)&&A.push("remote");g.tq(L)&&A.push("annotations_module");kS(L)&&A.push("creatorendscreen");g.hq(L)&&A.push("unplugged");F51(L)&&A.push("kids");return A}return this.po(A)};
|
|
g.p.setOption=function(A,L,B){if(!L)return null;var f=this.app.SI();switch(A){case "ad":return(A=HB(f))&&A.PR&&A.PR(L,B);case "kids":return(A=F51(f))&&A.PR(L,B);case "remote":return(A=EU(f))&&A.PR(L,B);case "unplugged":return(A=g.hq(f))&&A.PR(L,B);case "annotations_module":return(A=g.tq(f))&&A.PR(L,B);case "creatorendscreen":return(A=kS(f))&&A.PR(L,B)}return this.HP(A,L,B)};
|
|
g.p.addCueRange=function(A,L,B,f,K){return GqQ(this.app,A,L,B,f,K)};
|
|
g.p.getDebugText=function(A){return this.app.getDebugText(A)};
|
|
g.p.getCurrentBroadcastId=function(){return null};
|
|
g.p.handleGlobalKeyDown=function(A,L,B,f,K,V,J,R){L=L===void 0?!1:L;B=B===void 0?!1:B;f=f===void 0?!1:f;K=K===void 0?!1:K;var Z=g.Hh(this);Z&&Z.handleGlobalKeyDown(A,L,B,f,K,V,J,R)};
|
|
g.p.handleGlobalKeyUp=function(A,L,B,f,K,V,J){L=L===void 0?!1:L;B=B===void 0?!1:B;f=f===void 0?!1:f;K=K===void 0?!1:K;var R=g.Hh(this);R&&R.handleGlobalKeyUp(A,L,B,f,K,V,J)};
|
|
g.p.setSizeStyle=function(A,L){this.app.setSizeStyle(A,L)};
|
|
g.p.showControls=function(){var A=g.Hh(this);A&&A.showControls(!0)};
|
|
g.p.hideControls=function(){var A=g.Hh(this);A&&A.showControls(!1)};
|
|
g.p.getVideoContentRect=function(A){A=this.app.Pn().getVideoContentRect(A);return{left:A.left,top:A.top,width:A.width,height:A.height}};
|
|
g.p.toggleFullscreen=function(){function A(B){g.CE(B)}
|
|
var L=this.app.K();if(L.externalFullscreen){if(!g.Ng(L))return this.isFullscreen()?H9(window.document.documentElement):GT(window.document.documentElement).catch(A)}else if(g.rL()||L.X)return this.isFullscreen()?H9(sS()):L.controlsType!=="3"&&g.rL()?GT(this.app.Pn().element).catch(A):(L=this.app.pD().Zg())?GT(L).catch(A):Promise.reject(Error("Media element missing"));this.X3("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
|
|
g.p.isFullscreen=function(){return this.app.isFullscreen()};
|
|
g.p.X1=function(){return this.app.X1()};
|
|
g.p.cancelPlayback=function(){var A=HB(this.app.SI());A&&A.created&&A.destroy();this.app.e4().stopVideo();(A=this.app.SI().U_.get("endscreen"))&&A.xpx()&&g.OU(this.app.rT,!0)};
|
|
g.p.getProgressState=function(A){if(this.DB()===3)return EU(this.app.SI()).getProgressState();var L=this.app.getVideoData(),B=this.app.Jz(A)||this.app.e4(),f=B.getPlayerType();a:{var K=this.app.getVideoData();var V;if((V=K.progressBarStartPosition)==null?0:V.utcTimeMillis)if(K=Number(K.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(K)){K=this.cA(K,A);break a}K=0}var J;a:{V=this.app.getVideoData();if((J=V.progressBarEndPosition)==null?0:J.utcTimeMillis)if(J=Number(V.progressBarEndPosition.utcTimeMillis)/
|
|
1E3,!isNaN(J)){J=this.cA(J,A);break a}J=0}V=this.getCurrentTime(A);A=this.getDuration(A);var R=this.app.wX(f),Z=this.app.isAtLiveHead(f),N=this.app.rQ();var F=this.app;var D=g.pZ(F,{playerType:f});D=y$(F,D);F=mh(F,D.I5(),D);D=Tj(this.app,f);B=B.pY();var I=this.app.getVideoData().iK;f=!I||isNaN(I)?0:this.cA(I,f);return{airingStart:K,airingEnd:J,allowSeeking:this.app.Kw(),clipEnd:L.clipEnd,clipStart:L.clipStart,current:V,displayedStart:-1,duration:A,ingestionTime:R,isAtLiveHead:Z,loaded:N,seekableStart:F,
|
|
seekableEnd:D,offset:B,viewerLivestreamJoinMediaTime:f}};
|
|
g.p.cA=function(A,L){var B=this.app.wX(L);if(!B)return 0;L=B-this.app.getCurrentTime(L);return A-L};
|
|
g.p.isInline=function(){return this.app.isInline()};
|
|
g.p.setInline=function(A){this.app.setInline(A)};
|
|
g.p.Qo=function(){return this.app.kP().Ov(!0)};
|
|
g.p.toggleSubtitles=function(){var A=g.y2(this.app.SI());A&&A.I2n()};
|
|
g.p.getPlayerSize=function(){var A=this.app.Pn().getPlayerSize();return{width:A.width,height:A.height}};
|
|
g.p.setCenterCrop=function(A){this.app.Pn().setCenterCrop(A)};
|
|
g.p.getLoopVideo=function(){return this.app.getLoopVideo()};
|
|
g.p.setLoopVideo=function(A){this.app.setLoopVideo(A)};
|
|
var VHL="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
|
|
RU1="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 JC={},ZPe=(JC["api.invalidparam"]=2,JC.auth=150,JC["drm.auth"]=150,JC["heartbeat.net"]=150,JC["heartbeat.servererror"]=150,JC["heartbeat.stop"]=150,JC["html5.unsupportedads"]=5,JC["fmt.noneavailable"]=5,JC["fmt.decode"]=5,JC["fmt.unplayable"]=5,JC["html5.missingapi"]=5,JC["html5.unsupportedlive"]=5,JC["drm.unavailable"]=5,JC["mrm.blocked"]=151,JC["embedder.identity.denied"]=152,JC["embedder.identity.missing.referrer"]=153,JC);g.G(g.lz,tj);g.p=g.lz.prototype;g.p.isExternalMethodAvailable=function(A,L){return this.state.T[A]?!0:!!(this.state.X[A]&&L&&cR(L,wkf))};
|
|
g.p.getBandwidthEstimate=function(){return ub(this.app.Ml)};
|
|
g.p.reportPlaybackIssue=function(A){A=A===void 0?"":A;var L=this.app.e4();A={gpu:(0,g.Ei)(),d:A};L.handleError(new g.K$("feedback",A))};
|
|
g.p.getInternalApi=function(){return Object.assign({},this.state.N)};
|
|
g.p.getTrustedApi=function(){return Object.assign({},this.state.T,this.state.X)};
|
|
g.p.getInternalApiInterface=function(){return g.bs(this.state.N)};
|
|
g.p.queueNextVideo=function(A,L,B,f,K){B=B===void 0?NaN:B;this.app.queueNextVideo(A,L,B,f===void 0?"":f,K===void 0?"":K)};
|
|
g.p.Y9=function(A){A=this.app.getPlayerStateObject(A);return{isBuffering:g.x(A,1),isCued:A.isCued(),isDomPaused:g.x(A,1024),isEnded:g.x(A,2),isError:g.x(A,128),isOrWillBePlaying:A.isOrWillBePlaying(),isPaused:A.isPaused(),isPlaying:A.isPlaying(),isSeeking:g.x(A,16),isUiSeeking:g.x(A,32),isUnstarted:g.x(A,64)}};
|
|
g.p.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
|
|
g.p.startSeekCsiAction=function(){this.app.zH().U.N=(0,g.bc)()};
|
|
g.p.U8=function(A,L,B){return this.getCurrentTime(A===void 0?1:A,L,B)};
|
|
g.p.seekToStreamTime=function(A,L,B,f){var K=this.app;L=L===void 0?!0:L;var V=g.pZ(K,{playerType:1}),J=0;V.getStreamTimeOffset()&&!V.pY()&&(J=V.getStreamTimeOffset());Ep(K,A-J,L,B,1,f)};
|
|
g.p.getStreamTimeOffset=function(){return this.app.kP().getStreamTimeOffset()};
|
|
g.p.seekToLiveHead=function(A,L){var B=this.app.kP().getVideoData();B&&B.isLivePlayback&&Ep(this.app,Infinity,A,L,1)};
|
|
g.p.requestSeekToWallTimeSeconds=function(A,L,B){this.app.kP().Qb(A,L,B)};
|
|
g.p.kHT=function(A,L,B,f,K){this.seekTo(A,L,B,f===void 0?1:f,K)};
|
|
g.p.IrL=function(A,L,B,f){this.seekBy(A,L,B,f,1)};
|
|
g.p.prefetchKeyPlay=function(A,L){this.app.kP().prefetchKeyPlay(A,L)};
|
|
g.p.setVolume=function(A,L){this.CH(A,L===void 0?!0:L)};
|
|
g.p.mute=function(A){this.Km(A===void 0?!0:A)};
|
|
g.p.unMute=function(A){this.VX(A===void 0?!0:A)};
|
|
g.p.syncVolume=function(){var A=qKD(this.app);tZ(this.app,{volume:A.volume,muted:A.muted},!1)};
|
|
g.p.getAvailableQualityLabels=function(){return g.mn(this.app.kP().KO(),function(A){return A.qualityLabel})};
|
|
g.p.channelSubscribed=function(){this.Kr("SUBSCRIBE",this.app.df().JO)};
|
|
g.p.channelUnsubscribed=function(){this.Kr("UNSUBSCRIBE",this.app.df().JO)};
|
|
g.p.setScreenLayer=function(A){this.app.setScreenLayer(A)};
|
|
g.p.getCurrentPlaylistSequence=function(){return this.app.e4().getPlaylistSequenceForTime(this.app.getCurrentTime())};
|
|
g.p.getPlaylistSequenceForTime=function(A){return this.app.e4().getPlaylistSequenceForTime(A)};
|
|
g.p.shouldSendVisibilityState=function(){return!0};
|
|
g.p.confirmYpcRental=function(){this.app.kP().Z2("ypcRentalActivation")};
|
|
g.p.setHomeGroupInfo=function(A){this.app.K().homeGroupInfo=A};
|
|
g.p.setConnectedRemoteApps=function(A){this.app.K().BI=A};
|
|
g.p.setLivingRoomAppMode=function(A){this.app.K().livingRoomAppMode=RX("LIVING_ROOM_APP_MODE_UNSPECIFIED",A,nFv)};
|
|
g.p.setEnablePrivacyFilter=function(A){this.app.K().enablePrivacyFilter=A===void 0?!1:A};
|
|
g.p.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
|
|
g.p.addUtcCueRange=function(A,L,B,f,K){return rMS(this.app,A,L,B,f,K)};
|
|
g.p.s8=function(A){A=A===void 0?1:A;var L=this.Tp(A);if(A=this.app.Jz(A)){A=A.getVideoData();L.hasProgressBarBoundaries=A.hasProgressBarBoundaries();L.isPremiere=A.isPremiere;L.itct=A.Wn;L.playerResponseCpn=A.playerResponseCpn;var B;var f=A.hasProgressBarBoundaries()&&((B=A.progressBarStartPosition)==null?0:B.utcTimeMillis)?na(A.progressBarStartPosition.utcTimeMillis):null;L.progressBarStartPositionUtcTimeMillis=f;var K;B=A.hasProgressBarBoundaries()&&((K=A.progressBarEndPosition)==null?0:K.utcTimeMillis)?
|
|
na(A.progressBarEndPosition.utcTimeMillis):null;L.progressBarEndPositionUtcTimeMillis=B;L.ypcOriginalItct=A.U3;L.ypcPreview=A.ypcPreview;L.paidContentOverlayText=dFe(A);L.paidContentOverlayDurationMs=IyD(A);A.N&&WZ(A.N)&&(L.usingLocalMedia="true");L.transitionEndpointAtEndOfStream=A.transitionEndpointAtEndOfStream}return L};
|
|
g.p.getAdState=function(){return this.app.getAdState()};
|
|
g.p.isNotServable=function(A){if(A!==this.app.ly.video_id)return!1;var L=(A=this.app.kP().getPlayerState())?A.nh:null;return!!(A&&L&&g.x(A,128)&&NSQ(L.errorCode)===5)};
|
|
g.p.supportsGaplessAudio=function(){return this.app.K().supportsGaplessAudio()};
|
|
g.p.supportsGaplessShorts=function(){return this.app.K().supportsGaplessShorts()};
|
|
g.p.enqueueVideoByPlayerVars=function(A,L,B,f){B=B===void 0?Infinity:B;this.app.enqueueVideoByPlayerVars(A,L,B,f===void 0?"":f)};
|
|
g.p.clearQueue=function(){this.app.clearQueue()};
|
|
g.p.YR=function(){return g.Hh(this)};
|
|
g.p.sendAbandonmentPing=function(){this.app.e4().sendAbandonmentPing()};
|
|
g.p.setAutonavState=function(A,L){L=L===void 0?!1:L;if(this.J("web_player_autonav_use_server_provided_state")&&!L&&(L=this.app.df(),L==null?0:NG(L)))if(A===3)L.autonavState!==3&&(L.YH=L.autonavState);else if(L.YH!==void 0)A=L.YH,L.YH=void 0;else return;T78(this.app,A)};
|
|
g.p.setAutonav=function(A,L){this.setAutonavState(A?2:1,L===void 0?!1:L)};
|
|
g.p.setLoopRange=function(A){this.app.setLoopRange(A)};
|
|
g.p.getLoopRange=function(){return this.app.getLoopRange()};
|
|
g.p.hasSupportedAudio51Tracks=function(){return this.app.kP().hasSupportedAudio51Tracks()};
|
|
g.p.setUserAudio51Preference=function(A,L){this.app.kP().setUserAudio51Preference(A,L===void 0?!1:L)};
|
|
g.p.getUserAudio51Preference=function(){return this.app.kP().getUserAudio51Preference()};
|
|
g.p.setProximaLatencyPreference=function(A){this.app.kP().setProximaLatencyPreference(A)};
|
|
g.p.getProximaLatencyPreference=function(){return this.app.kP().getProximaLatencyPreference()};
|
|
g.p.isProximaLatencyEligible=function(){return this.app.kP().isProximaLatencyEligible()};
|
|
g.p.getAppState=function(){return this.app.getAppState()};
|
|
g.p.updateLastActiveTime=function(){jP()};
|
|
g.p.setBlackout=function(A){this.app.setBlackout(A)};
|
|
g.p.setUserEngagement=function(A){this.app.K().r$!==A&&(this.app.K().r$=A,this.app.kP().bD())};
|
|
g.p.updateSubtitlesUserSettings=function(A,L){L=L===void 0?!0:L;g.y2(this.app.SI()).Gj(A,L)};
|
|
g.p.getCaptionWindowContainerId=function(){var A=g.y2(this.app.SI());return A?A.getCaptionWindowContainerId():""};
|
|
g.p.toggleSubtitlesOn=function(){var A=g.y2(this.app.SI());A&&A.MH()};
|
|
g.p.isSubtitlesOn=function(){var A=g.y2(this.app.SI());return A?A.isSubtitlesOn():!1};
|
|
g.p.getPlayerResponse=function(A){return(A=this.app.Jz(A))?A.getVideoData().getPlayerResponse():null};
|
|
g.p.im=function(){return this.getPlayerResponse(1)};
|
|
g.p.getEmbeddedPlayerResponse=function(){return this.app.kP().getVideoData().getEmbeddedPlayerResponse()};
|
|
g.p.getWatchNextResponse=function(A){return(A=this.app.Jz(A))?A.getVideoData().getWatchNextResponse():null};
|
|
g.p.aY=function(){return this.getWatchNextResponse(1)};
|
|
g.p.getHeartbeatResponse=function(A){return(A=this.app.Jz(A))?A.getVideoData().getHeartbeatResponse():null};
|
|
g.p.Sq=function(){return this.getHeartbeatResponse(1)};
|
|
g.p.getStoryboardFrame=function(A,L){var B=this.app.rB();if(!B)return null;L=B.levels[L];return L?(A=g.ao(L,A))?{column:A.column,columns:A.columns,height:A.Gk,row:A.row,rows:A.rows,url:A.url,width:A.RF}:null:null};
|
|
g.p.getStoryboardFrameIndex=function(A,L){var B=this.app.rB();if(!B)return-1;L=B.levels[L];if(!L)return-1;A-=this.pY();return L.RQ(A)};
|
|
g.p.getStoryboardLevel=function(A){var L=this.app.rB();return L?(L=L.levels[A])?{index:A,intervalMs:L.N,maxFrameIndex:L.ih(),minFrameIndex:L.w0()}:null:null};
|
|
g.p.getNumberOfStoryboardLevels=function(){var A=this.app.rB();return A?A.levels.length:0};
|
|
g.p.a_=function(A){return this.app.e4().a_(A)};
|
|
g.p.VF=function(){this.app.e4().VF();this.publish("onFilterAudioFeatures")};
|
|
g.p.qj=function(){return this.getAudioTrack(1)};
|
|
g.p.getAudioTrack=function(A){return(A=this.app.Jz(A))?A.getAudioTrack():this.app.getVideoData().Ry};
|
|
g.p.ZH=function(){var A=this.app.Jz();return A?A.ZH():null};
|
|
g.p.setAudioTrack=function(A,L,B){var f=this.app.mD().VN;f&&f.WG(A);B=this.app.Jz(B);if(!B)return!1;(A=B.WG(A,L))&&this.VF();return A};
|
|
g.p.wRF=function(A,L){return this.setAudioTrack(A,L,1)};
|
|
g.p.k9=function(){return this.getAvailableAudioTracks(1)};
|
|
g.p.getAvailableAudioTracks=function(A){return this.app.Jz(A).getAvailableAudioTracks()};
|
|
g.p.getMaxPlaybackQuality=function(){var A=this.app.kP();return A.getVideoData().W?My(A.vS()):"unknown"};
|
|
g.p.getUserPlaybackQualityPreference=function(){return this.app.kP().getUserPlaybackQualityPreference()};
|
|
g.p.getSubtitlesUserSettings=function(){var A=g.y2(this.app.SI());return A?A.h4():null};
|
|
g.p.resetSubtitlesUserSettings=function(){g.y2(this.app.SI()).B1s()};
|
|
g.p.setMinimized=function(A){this.app.setMinimized(A)};
|
|
g.p.setOverlayVisibility=function(A){this.publish("overlayvisibilitychange",A)};
|
|
g.p.setInlinePreview=function(A){this.app.setInlinePreview(A)};
|
|
g.p.setSqueezeback=function(A){this.app.setSqueezeback(A)};
|
|
g.p.setGlobalCrop=function(A){this.app.Pn().setGlobalCrop(A)};
|
|
g.p.setAppFullscreen=function(A){this.app.Fc(A?4:0)};
|
|
g.p.WI=function(){return this.app.WI()};
|
|
g.p.getVisibilityState=function(){return this.WI().getVisibilityState(this.QC(),this.X1()||g.qM(this.app.K()),this.isMinimized(),this.isInline(),this.app.nV(),this.app.WE(),this.app.bz(),this.app.EN())};
|
|
g.p.isMutedByMutedAutoplay=function(){return this.app.rA};
|
|
g.p.isMutedByEmbedsMutedAutoplay=function(){return hj(this.app)};
|
|
g.p.setInternalSize=function(A,L){this.app.Pn().setInternalSize(new g.Sr(A,L))};
|
|
g.p.pY=function(A){return(A=this.app.Jz(A))?A.pY():0};
|
|
g.p.isMinimized=function(){return this.app.isMinimized()};
|
|
g.p.nV=function(){return this.app.nV()};
|
|
g.p.QC=function(){return this.app.e4().QC()};
|
|
g.p.setSafetyMode=function(A){this.app.K().enableSafetyMode=A};
|
|
g.p.canPlayType=function(A){return this.app.canPlayType(A)};
|
|
g.p.updatePlaylist=function(A){if(A){var L=this.getPlaylistId(),B=!1;L&&L!==A.list&&(B=!0);A.external_list!==void 0&&(this.app.iY=Sw(!1,A.external_list));var f=A.video;(L=this.app.getPlaylist())&&!B?this.isFullscreen()&&((B=f[L.index])&&B.encrypted_id!==g.R_(L).videoId||(A.index=L.index)):sp(this.app,{list:A.list,index:A.index,playlist_length:f.length});Ms0(this.app.getPlaylist(),A);this.Wo("onPlaylistUpdate")}else this.app.updatePlaylist()};
|
|
g.p.updateVideoData=function(A,L){g.SC(this.app.kP().getVideoData(),A,L)};
|
|
g.p.updateEnvironmentData=function(A){aj(this.app.K(),A,!1)};
|
|
g.p.FDL=function(A){this.app.sendVideoStatsEngageEvent(A,1)};
|
|
g.p.productsInVideoVisibilityUpdated=function(A){this.publish("changeProductsInVideoVisibility",A)};
|
|
g.p.isAtLiveHead=function(A,L){return this.app.isAtLiveHead(A,L===void 0?!0:L)};
|
|
g.p.getVideoAspectRatio=function(){return this.app.Pn().getVideoAspectRatio()};
|
|
g.p.getPreferredQuality=function(){return this.app.e4().getPreferredQuality()};
|
|
g.p.getPlaybackQualityLabel=function(A){if(A=this.app.Jz(A)){var L,B;return((B=(L=A.getVideoData().W)==null?void 0:L.video)==null?void 0:B.qualityLabel)||""}return""};
|
|
g.p.setPlaybackQualityRange=function(A,L,B,f){(f=this.app.Jz(f))&&f.OO(g.XX(A,L||A,!0,"m"),!0,B)};
|
|
g.p.ThF=function(A,L,B){this.setPlaybackQualityRange(A,L,B,1)};
|
|
g.p.onAdUxClicked=function(A,L){this.publish("aduxclicked",A,L)};
|
|
g.p.showAirplayPicker=function(){this.app.showAirplayPicker()};
|
|
g.p.dispatchReduxAction=function(A){g.Iq.dispatch(A)};
|
|
g.p.highlightSettingsMenuItem=function(A){this.publish("highlightSettingsMenu",A)};
|
|
g.p.openSettingsMenuItem=function(A){this.publish("openSettingsMenuItem",A)};
|
|
g.p.b7=function(A,L){this.state.W.subscribe(A,L)};
|
|
g.p.eus=function(A,L){this.state.W.unsubscribe(A,L)};
|
|
g.p.L4=function(A,L){this.cueVideoByPlayerVars(A,L===void 0?1:L)};
|
|
g.p.VIj=function(A,L,B,f){this.loadVideoByPlayerVars(A,L,B===void 0?1:B,f)};
|
|
g.p.j01=function(A,L,B,f){this.preloadVideoByPlayerVars(A,L===void 0?1:L,B,f)};
|
|
g.p.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
|
|
g.p.Zr=function(){return g.Hh(this).Zr()};
|
|
g.p.Gy=function(){return g.Hh(this).Gy()};
|
|
g.p.ZF=function(){return g.Hh(this).ZF()};
|
|
g.p.Ce=function(){return this.YR().Ce()};
|
|
g.p.Ed=function(){var A=g.pf.apply(0,arguments),L;(L=this.Ce()).Ed.apply(L,g.x7(A))};
|
|
g.p.qq=function(){this.Ce().qq()};
|
|
g.p.gr=function(){this.Ce().gr()};
|
|
g.p.HI=function(){this.Ce().hide()};
|
|
g.p.KH=function(A,L,B,f,K,V,J,R){this.Ce().KH(A,L,B,f,K,V,J,R)};
|
|
g.p.yR=function(A,L){this.Ce().yR(A,L)};
|
|
g.p.TT=function(A,L,B,f,K){this.YR().TT(A,L,B,f,K)};
|
|
g.p.oh=function(A){this.Ce().setEnabled(A)};
|
|
g.p.fJ=function(A,L){this.YR().fJ(A,L)};
|
|
g.p.f$=function(A,L){this.YR().f$(A,L)};
|
|
g.p.H2=function(A,L){this.YR().H2(A,L)};
|
|
g.p.p5=function(){this.YR().p5()};
|
|
g.p.WP=function(A,L){this.YR().WP(A,L)};
|
|
g.p.RN=OD(6);g.p.renderChapterSeekingAnimation=function(A,L,B){this.YR().renderChapterSeekingAnimation(A,L,B)};
|
|
g.p.Wa=function(){this.YR().Wa()};
|
|
g.p.getWebPlayerContextConfig=function(){return this.app.K().getWebPlayerContextConfig()};
|
|
g.p.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
|
|
g.p.BA=function(){return this.app.e4().BA()};
|
|
g.p.Tt=function(A,L,B){B=B===void 0?!1:B;var f;(f=this.YR())==null||f.Tt(A,L,B)};g.G(g.$n,g.lz);g.p=g.$n.prototype;g.p.Dl=function(A,L,B,f,K,V,J){return this.app.Dl(A,L,B,f,K,V,J)};
|
|
g.p.Ow=function(){return this.app.Ow()};
|
|
g.p.yu=OD(8);g.p.SI=function(){return this.app.SI()};
|
|
g.p.bQ=function(){var A=this.SI().U_.get("endscreen");return!!A&&A.bQ()};
|
|
g.p.getRootNode=function(){return this.Pn().element};
|
|
g.p.K=function(){return this.app.K()};
|
|
g.p.m$=function(){return this.app.e2()};
|
|
g.p.dh=function(A){return this.app.dh(A)};
|
|
g.p.gB=function(){var A;return((A=g.Hh(this))==null?void 0:A.gB())||null};
|
|
g.p.getSourceConfigForActiveAudioTrack=function(){var A;if((A=this.getVideoData())==null)A=void 0;else{var L,B,f,K;A=(K=(L=A.playerResponse)==null?void 0:(B=L.playerConfig)==null?void 0:(f=B.compositeVideoConfig)==null?void 0:f.sourceConfigs)!=null?K:[]}if(B=A)for(L=this.getAudioTrack().getLanguageInfo().getId(),B=g.m(B),f=B.next();!f.done;f=B.next())for(f=f.value,A=void 0,K=g.m((A=f.audioTracks)!=null?A:[]),A=K.next();!A.done;A=K.next())if(A.value.id===L)return f};
|
|
g.p.EV=function(){return this.app.e4().EV()};
|
|
g.p.getPlayerStateObject=function(A){return this.app.getPlayerStateObject(A)};
|
|
g.p.Pn=function(){return this.app.Pn()};
|
|
g.p.getPlaylist=function(){return this.app.getPlaylist()};
|
|
g.p.getVideoData=function(A,L){L=L===void 0?!1:L;var B=this.app.Jz(A);if(!B)return null;B=B.getVideoData();if(L)var f=B;else B.enableServerStitchedDai&&A===2?(L=this.app,A=L.QG?((f=L.e$.N)==null?void 0:f.getVideoData())||L.getVideoData():L.getVideoData()):A=B,f=A;return f};
|
|
g.p.Ur=function(){return this.app.e4().Ur()};
|
|
g.p.rB=function(A){return this.app.rB(A)};
|
|
g.p.EN=function(){return this.app.EN()};
|
|
g.p.isHdr=function(){return this.app.e4().isHdr()};
|
|
g.p.BM=function(){return this.app.BM()};
|
|
g.p.isEmbedsShortsMode=function(){var A=g.Hh(this),L=this.getVideoData();A=A?A.IZ:this.getPlayerSize();var B=!!this.getPlaylist();return!(!L||!L.isEmbedsShortsMode(new g.Sr(A.width,A.height),B))};
|
|
g.p.SZ=function(A,L){this.app.SZ(A,1,L)};
|
|
g.p.O9=function(A,L,B,f,K){this.app.Lw(A,L,B,f,K)};
|
|
g.p.y9=OD(10);g.p.playVideo=function(A,L){try{var B=this.app.mD().VN;if(B){B.playVideo();return}if(!A&&this.getPresentingPlayerType()===2){var f=HB(this.app.SI());if(f&&IM7(f))return}}catch(K){g.mL(K)}this.app.playVideo(A,L)};
|
|
g.p.stopVideo=function(A){this.app.Jz(A).stopVideo()};
|
|
g.p.aC=function(A){this.app.Jz(A).aC()};
|
|
g.p.addEventListener=function(A,L){this.state.V.subscribe(A,L)};
|
|
g.p.removeEventListener=function(A,L){this.state.V.unsubscribe(A,L)};
|
|
g.p.lE=function(A){this.app.lE(A)};
|
|
g.p.setPlaybackQuality=function(A,L){this.setPlaybackQualityRange(A,A,L)};
|
|
g.p.KO=function(){var A={},L=this.app.e4().KO();L=g.m(L);for(var B=L.next();!B.done;B=L.next())B=B.value,A[B.quality]=B;return A};
|
|
g.p.Q9=function(){return this.app.e4().Q9()};
|
|
g.p.U0=OD(14);g.p.tW=function(A){this.app.tW(A);A&&T78(this.app,A)};
|
|
g.p.getVideoUrl=function(A,L,B,f){var K=this.getPresentingPlayerType(),V=K===2;if(f&&V||K===3)V=!1,K=1;f=this.getVideoData(K);if(!f)return"";var J;A||f.isLivePlayback||(J=Math.floor(this.getCurrentTime(K)));A=V?void 0:this.getPlaylistId()||void 0;L&&A==="WL"&&(A=void 0);return this.app.getVideoUrl(f.videoId,A,J,L,B)};
|
|
g.p.VD=OD(16);g.p.W9=OD(22);g.p.Qe=function(A){this.app.e4().Qe(A)};
|
|
g.p.J1=OD(28);g.p.ph=OD(34);g.p.MY=function(A,L){this.SI().MY(A,L)};
|
|
g.p.yq=function(){var A=g.tq(this.SI());return!!A&&A.yq()};
|
|
g.p.Bu=function(){var A=g.tq(this.SI());return!!A&&A.Bu()};
|
|
g.p.DD=function(A,L,B){var f=g.tq(this.SI());f&&f.DD(A,L,B)};
|
|
g.p.ZD=OD(35);g.p.VI=function(){this.app.e4().Om()};
|
|
g.p.Yc=function(A){this.Wo("onVideoAreaChange");this.Wo(A?"onShowControls":"onHideControls")};
|
|
g.p.O7=function(A,L){var B=g.Hh(this);if(B)return B.O7(A,L);A=this.app.Pn().yN();return new g.oR(0,0,A.width,A.height)};
|
|
g.p.QD=function(){var A=this.SI().U_.get("heartbeat");return!!A&&A.QD()};
|
|
g.p.Kw=function(){var A=this.K();if(A.Ys||A.disableSeek)return!1;var L=this.app.e4(),B=L.getVideoData();if(!B.gX()||g.MG(B)||this.getPresentingPlayerType()===2&&!this.app.yC()||B.aA()&&this.getPresentingPlayerType(!0)===2||L.BF()&&this.getPresentingPlayerType()!==3)return!1;A=g.nM(A);return g.IX(A)&&!B.Of||hj(this.app)?!1:!0};
|
|
g.p.V3=function(){return this.app.e4().nU()};
|
|
g.p.isLifaAdPlaying=function(){var A,L=(A=this.getVideoData())==null?void 0:A.aA();return L?this.getPresentingPlayerType(L)===2:!1};
|
|
g.p.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
|
|
g.p.m2=function(){this.app.e4().m2()};
|
|
g.p.sendVideoStatsEngageEvent=function(A,L,B){this.app.sendVideoStatsEngageEvent(A,B,L)};
|
|
g.p.dX=function(A,L,B){this.app.zg(A,L,B)};
|
|
g.p.K9=function(A,L){this.app.fS(A,L)};
|
|
g.p.Jf=function(A,L){lF(this.app,A,L)};
|
|
g.p.SJ=OD(39);g.p.GJ=function(A){return this.app.GJ(A)};
|
|
g.p.Z2=function(A,L){var B;(B=this.app.Jz(L))==null||B.Z2(A)};
|
|
g.p.BF=function(){var A=this.app.Jz();return A?A.BF():!0};
|
|
g.p.F$=function(){var A=this.getVideoData();return!!A&&(A.F$()||!!A.hlsFormats||!!A.sZ)};
|
|
g.p.getPlaybackRate=function(){return this.app.kP().getPlaybackRate()};
|
|
g.p.setPlaybackRate=function(A,L){this.app.setPlaybackRate(A,L)};
|
|
g.p.pD=function(){return this.app.pD()};
|
|
g.p.zH=function(){return this.app.zH()};
|
|
g.p.b0=function(A){return this.app.b0(A)};
|
|
g.p.createClientVe=function(A,L,B,f){this.K().Cr&&this.app.yb.createClientVe(A,L,B,f===void 0?!1:f)};
|
|
g.p.createServerVe=function(A,L,B){this.K().Cr&&this.app.yb.createServerVe(A,L,B===void 0?!1:B)};
|
|
g.p.setTrackingParams=function(A,L){this.K().Cr&&this.app.yb.setTrackingParams(A,L)};
|
|
g.p.logClick=function(A,L){this.K().Cr&&(this.app.yb.click(A,L),this.publish("veClickLogged",A))};
|
|
g.p.logVisibility=function(A,L,B){this.K().Cr&&this.app.yb.xP(A,L,B)};
|
|
g.p.hasVe=function(A){return this.K().Cr?this.app.yb.hasVe(A):!1};
|
|
g.p.destroyVe=function(A){this.K().Cr&&this.app.yb.destroyVe(A)};
|
|
g.p.getPresentingPlayerType=function(A){return this.app.getPresentingPlayerType(A)};
|
|
g.p.hh=function(){this.app.hh()};
|
|
g.p.Jp=OD(41);g.p.dN=function(A){this.app.dN(A)};
|
|
g.p.S9=function(){this.app.S9()};
|
|
g.p.addPlayerResponseForAssociation=function(){};
|
|
g.p.finishSegmentByCpn=function(A,L,B){return this.app.finishSegmentByCpn(A,L,B)};
|
|
g.p.Nt=function(A,L,B,f,K,V,J,R){return this.app.Nt(A,L,B,f,K,V,J,R)};
|
|
g.p.A7=function(A,L,B,f,K,V,J,R){this.app.A7(A,L,B,f,K,V,J,R)};
|
|
g.p.wG=function(){return this.app.wG()};
|
|
g.p.V_=function(A){this.app.V_(A)};
|
|
g.p.Qc=function(A,L){L=L===void 0?Infinity:L;this.app.Qc(A===void 0?-1:A,L)};
|
|
g.p.tv=function(A){var L;(L=g.y2(this.SI()))==null||L.tv(A)};
|
|
g.p.i4=function(A,L,B){this.app.i4(A,L,B)};
|
|
g.p.pX=function(){return this.app.pX()};
|
|
g.p.qm=function(A,L,B){this.app.qm(A,L,B===void 0?0:B)};
|
|
g.p.qV=function(){return this.app.qV()};
|
|
g.p.yC=function(){return this.app.yC()};
|
|
g.p.Ku=function(A,L,B){return this.app.Ku(A,L,B)};
|
|
g.p.Hn=function(A,L,B,f){B=B===void 0?!1:B;var K;(K=this.app.Jz(f))==null||K.Hn(A,L,B)};
|
|
g.p.Ol=function(A,L){this.publish("aduxmouseover",A,L)};
|
|
g.p.oT=function(A,L){this.publish("aduxmouseout",A,L)};
|
|
g.p.JZ=function(A,L){this.publish("muteadaccepted",A,L)};
|
|
g.p.kQ=function(){return this.app.Pn().kQ()};
|
|
g.p.Nn=function(A){this.app.Pn().Nn(A)};
|
|
g.p.bF=function(A){return A?this.app.Tl():this.app.e4().bF()};
|
|
g.p.qC=function(A){this.app.qC(A)};
|
|
g.p.A8=function(){this.app.e4().A8()};
|
|
g.p.jP=function(){this.app.jP()};
|
|
g.p.getGetAdBreakContext=function(){var A=this.app.kP();return A.getVideoData().getGetAdBreakContext(A.getCurrentTime(),A.pY())};
|
|
g.p.TJ=function(A,L){this.app.e4().TJ(A,L)};
|
|
g.p.lz=function(){return this.app.e4().lz()};
|
|
g.p.Gr=OD(43);g.p.jw=OD(45);g.p.G_=function(A){var L;return((L=this.app.Jz(A))==null?void 0:L.G_())||0};var Ph;g.G(qm,US);qm.prototype.oO=function(A,L){A=US.prototype.oO.call(this,A,L);return Object.assign({},A,this.requestHeaders)};wZ0.prototype.J=function(A){return this.experiments.GL(A)};g.G(g.nm,g.Y);g.p=g.nm.prototype;g.p.l1=function(){this.RH();g.Y.prototype.l1.call(this)};
|
|
g.p.RH=function(){this.Np.dispose()};
|
|
g.p.addCueRange=function(A){this.Np.addCueRange(A)};
|
|
g.p.zg=function(A,L){this.Np.zg(A,L)};
|
|
g.p.tp=function(){this.Np.tp()};
|
|
g.p.pn=function(){return this.Np.pn()};
|
|
g.p.Nf=function(A){return this.Np===A};
|
|
g.p.Om=function(){this.Np.VI()};
|
|
g.p.G9=function(A,L){this.Np.G9(A,L)};
|
|
g.p.Ln=function(A,L){return this.Np.Ln(A,L)};
|
|
g.p.wW=function(A){this.Np.wW(A)};
|
|
g.p.VF=function(){this.Np.VF()};
|
|
g.p.a_=function(A){return this.Np.a_(A)};
|
|
g.p.getAudioTrack=function(){return this.Np.getAudioTrack()};
|
|
g.p.ZH=function(){return this.Np.ZH()};
|
|
g.p.getAvailableAudioTracks=function(){return this.Np.getAvailableAudioTracks()};
|
|
g.p.KO=function(){return this.Np.KO()};
|
|
g.p.Q9=function(){return this.Np.Q9()};
|
|
g.p.t_=function(){return this.getVideoData().clientPlaybackNonce};
|
|
g.p.Ef=function(){return this.Np.Ef()};
|
|
g.p.R3=function(){return this.Np.R3()};
|
|
g.p.Fb=function(){return this.Np.Fb()};
|
|
g.p.getCurrentTime=function(){return this.Np.getCurrentTime()};
|
|
g.p.SC=function(){return this.Np.SC()};
|
|
g.p.bf=function(){return this.Np.bf()};
|
|
g.p.Ov=function(A){return this.Np.Ov(A)};
|
|
g.p.getDuration=function(A){return this.Np.getDuration(A)};
|
|
g.p.gQ=function(){return this.Np.gQ()};
|
|
g.p.wX=function(){return this.Np.wX()};
|
|
g.p.nU=function(){return this.Np.nU()};
|
|
g.p.pX=function(){return this.Np.pX()};
|
|
g.p.rQ=function(){return this.Np.rQ()};
|
|
g.p.m$=function(){return this.Np.m$()};
|
|
g.p.G_=function(){return this.Np.G_()};
|
|
g.p.e5=function(){return this.Np.e5()};
|
|
g.p.bH=function(A){return this.Np.bH(A)};
|
|
g.p.pD=function(){return this.Np.pD()};
|
|
g.p.Fy=function(){return this.Np.Fy()};
|
|
g.p.vy=function(){return this.Np.vy()};
|
|
g.p.I5=function(){return this.Np.I5()};
|
|
g.p.A1=function(A,L,B){return this.Np.A1(A,L,B)};
|
|
g.p.U0=OD(13);g.p.getPlaybackQuality=function(){return this.Np.getPlaybackQuality()};
|
|
g.p.getPlaybackRate=function(){return this.Np.getPlaybackRate()};
|
|
g.p.getPlayerState=function(){return this.Np.getPlayerState()};
|
|
g.p.getPlayerType=function(){return this.Np.getPlayerType()};
|
|
g.p.getPlaylistSequenceForTime=function(A){return this.Np.getPlaylistSequenceForTime(A)};
|
|
g.p.b0=function(A){return this.Np.b0(A)};
|
|
g.p.BA=function(){return this.Np.BA()};
|
|
g.p.getPreferredQuality=function(){return this.Np.getPreferredQuality()};
|
|
g.p.Vu=function(){return this.Np.Vu()};
|
|
g.p.getProximaLatencyPreference=function(){return this.Np.getProximaLatencyPreference()};
|
|
g.p.vS=function(){return this.Np.vS()};
|
|
g.p.rB=function(){return this.getVideoData().rB()};
|
|
g.p.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()};
|
|
g.p.getStreamTimeOffset=function(){return this.Np.getStreamTimeOffset()};
|
|
g.p.Dk=function(){return this.Np.Dk()};
|
|
g.p.pY=function(){return this.Np.pY()};
|
|
g.p.EV=function(){return this.Np.EV()};
|
|
g.p.getUserAudio51Preference=function(){return this.Np.getUserAudio51Preference()};
|
|
g.p.getUserPlaybackQualityPreference=function(){return this.Np.getUserPlaybackQualityPreference()};
|
|
g.p.getVideoData=function(){return this.Np.getVideoData()};
|
|
g.p.Ur=function(){return this.Np.Ur()};
|
|
g.p.TP=function(){return this.Np.TP()};
|
|
g.p.getVideoLoadedFraction=function(){if(g.Jj(this.getVideoData()))return 1;var A=this.Np.pD();return A?A.Hq():0};
|
|
g.p.WM=function(){return this.Np};
|
|
g.p.w6=function(A){this.Np.w6(A)};
|
|
g.p.handleError=function(A){this.Np.handleError(A)};
|
|
g.p.tT=function(A){this.Np.tT(A)};
|
|
g.p.BS=function(A){this.Np.BS(A)};
|
|
g.p.SJ=OD(38);g.p.BF=function(){return this.Np.BF()};
|
|
g.p.hasSupportedAudio51Tracks=function(){return this.Np.hasSupportedAudio51Tracks()};
|
|
g.p.isAd=function(){return this.getVideoData().isAd()};
|
|
g.p.Hu=function(){return this.Np.Hu()};
|
|
g.p.QC=function(){return this.Np.QC()};
|
|
g.p.isAtLiveHead=function(A,L){return this.Np.isAtLiveHead(A,L)};
|
|
g.p.jR=function(){return this.Np.jR()};
|
|
g.p.isGapless=function(){return this.Np.isGapless()};
|
|
g.p.isHdr=function(){return this.Np.isHdr()};
|
|
g.p.r6=function(){return this.Np.r6()};
|
|
g.p.Im=function(){return this.Np.Im()};
|
|
g.p.lz=function(){return this.Np.lz()};
|
|
g.p.isProximaLatencyEligible=function(){return this.Np.isProximaLatencyEligible()};
|
|
g.p.qV=function(){return this.Np.qV()};
|
|
g.p.VZ=function(A){var L;return!((L=this.Np.loader)==null||!L.VZ(A))};
|
|
g.p.AT=function(){return this.Np.AT()};
|
|
g.p.gG=function(){this.Np.gG()};
|
|
g.p.Qt=function(A){this.Np.Qt(A)};
|
|
g.p.Bp=function(){this.Np.Bp()};
|
|
g.p.H4=function(){this.Np.H4()};
|
|
g.p.X6=function(){this.Np.X6()};
|
|
g.p.q9=function(){this.Np.q9()};
|
|
g.p.IS=function(A){this.Np.IS(A)};
|
|
g.p.IU=OD(50);g.p.W9=OD(21);g.p.RS=function(){this.Np.RS()};
|
|
g.p.pauseVideo=function(A){this.Np.pauseVideo(A)};
|
|
g.p.prefetchKeyPlay=function(A,L){this.Np.prefetchKeyPlay(A,L)};
|
|
g.p.T8=function(A){this.Np.T8(A)};
|
|
g.p.Jm=function(A){this.Np.Jm(A)};
|
|
g.p.playVideo=function(A,L){return this.Np.playVideo(A,L)};
|
|
g.p.C3=function(A,L,B,f,K){this.Np.C3(A,L,B,f,K)};
|
|
g.p.J1=OD(27);g.p.ph=OD(33);g.p.wY=function(A,L,B,f,K){this.Np.wY(A,L,B,f,K)};
|
|
g.p.Hn=function(A,L,B){this.Np.Hn(A,L,B)};
|
|
g.p.Qe=function(A){this.Np.Qe(A)};
|
|
g.p.TJ=function(A,L){this.Np.CY.TJ(A,L)};
|
|
g.p.jd=function(A,L,B){this.Np.jd(A,L,B)};
|
|
g.p.Ho=function(A){this.Np.Ho(A)};
|
|
g.p.q3=function(A){this.Np.q3(A)};
|
|
g.p.Iw=function(A,L){this.Np.Iw(A,L)};
|
|
g.p.Rh=function(A,L,B,f,K,V,J,R){this.Np.Rh(A,L,B,f,K,V,J,R)};
|
|
g.p.dO=function(){jNe(this.Np.CY)};
|
|
g.p.lj=function(A){this.Np.lj(A)};
|
|
g.p.aC=function(A,L){this.Np.aC(A,L)};
|
|
g.p.removeCueRange=function(A){this.Np.removeCueRange(A)};
|
|
g.p.fS=function(A){this.Np.fS(A)};
|
|
g.p.Jf=function(A){return this.Np.I4.Jf(A)};
|
|
g.p.GB=function(A){this.Np.GB(A)};
|
|
g.p.UN=function(A,L,B){this.Np.UN(A,L,B)};
|
|
g.p.qv=function(){this.Np.qv()};
|
|
g.p.Vx=function(){this.Np.I4.reset()};
|
|
g.p.Zh=function(){this.Np.Zh()};
|
|
g.p.Qb=function(A,L,B){this.Np.Qb(A,L,B)};
|
|
g.p.seekTo=function(A,L){this.Np.seekTo(A,L)};
|
|
g.p.sendAbandonmentPing=function(){this.Np.sendAbandonmentPing()};
|
|
g.p.sendVideoStatsEngageEvent=function(A,L){this.Np.sendVideoStatsEngageEvent(A,L)};
|
|
g.p.E5=function(A,L,B){this.Np.E5(A,L,B)};
|
|
g.p.setLoop=function(A){this.Np.setLoop(A)};
|
|
g.p.rS=function(){this.Np.rS()};
|
|
g.p.setMediaElement=function(A){this.Np.setMediaElement(A)};
|
|
g.p.Mv=function(A,L,B,f){this.Np.Mv(A,L,B,f)};
|
|
g.p.setPlaybackRate=function(A){this.Np.setPlaybackRate(A)};
|
|
g.p.O9=function(A,L,B,f,K,V){this.Np.O9(A,L,B,f,K,V)};
|
|
g.p.fC=function(A,L){this.Np.fC(A,L)};
|
|
g.p.Z2=function(A){this.Np.Z2(A)};
|
|
g.p.setProximaLatencyPreference=function(A){this.Np.setProximaLatencyPreference(A)};
|
|
g.p.cg=function(A,L,B){this.Np.cg(A,L,B)};
|
|
g.p.gM=function(A){this.Np.gM(A)};
|
|
g.p.i_=function(){this.Np.i_()};
|
|
g.p.hW=function(A){this.Np.hW(A)};
|
|
g.p.setUserAudio51Preference=function(A,L){this.Np.setUserAudio51Preference(A,L)};
|
|
g.p.OO=function(A,L,B){this.Np.OO(A,L,B)};
|
|
g.p.R0=function(){return this.Np.R0()};
|
|
g.p.m2=function(){this.Np.m2()};
|
|
g.p.bF=function(){return this.Np.bF()};
|
|
g.p.dK=function(A){this.Np.dK(A)};
|
|
g.p.Am=function(){this.Np.Am()};
|
|
g.p.hm=function(A){this.Np.hm(A)};
|
|
g.p.stopVideo=function(){this.Np.stopVideo()};
|
|
g.p.subscribe=function(A,L,B){return this.Np.subscribe(A,L,B)};
|
|
g.p.tA=function(A,L){this.Np.tA(A,L)};
|
|
g.p.togglePictureInPicture=function(){this.Np.togglePictureInPicture()};
|
|
g.p.GJ=function(A){return this.Np.I4.GJ(A)};
|
|
g.p.XS=function(A){this.Np.I4.XS(A)};
|
|
g.p.unsubscribe=function(A,L,B){return this.Np.unsubscribe(A,L,B)};
|
|
g.p.P4=function(A,L){this.Np.P4(A,L)};
|
|
g.p.WG=function(A,L){return this.Np.WG(A,L)};
|
|
g.p.bD=function(){this.Np.bD()};
|
|
g.p.UA=function(A){this.Np.UA(A)};
|
|
g.p.A8=function(){this.Np.A8()};g.G(g.zg,g.DE);g.p=g.zg.prototype;g.p.show=function(){var A=this.U7();g.DE.prototype.show.call(this);this.Wn&&(this.D.Y(window,"blur",this.YP),this.D.Y(uz(this),"click",this.AD));A||this.publish("show",!0)};
|
|
g.p.hide=function(){var A=this.U7();g.DE.prototype.hide.call(this);pZD(this);A&&this.publish("show",!1)};
|
|
g.p.fD=function(A,L){this.sourceElement=A;this.fade.show();L?(this.T||(this.T=this.D.Y(this.S,"appresize",this.l3)),this.l3()):this.T&&(this.D.J$(this.T),this.T=void 0)};
|
|
g.p.pk=function(){this.sourceElement&&this.element&&(this.sourceElement.getAttribute("aria-haspopup"),this.sourceElement.setAttribute("aria-expanded","true"),this.focus())};
|
|
g.p.l3=function(){var A=g.Hh(this.S);this.sourceElement&&A.TT(this.element,this.sourceElement)};
|
|
g.p.YP=function(){var A=this.U7();pZD(this);this.fade.hide();A&&this.publish("show",!1)};
|
|
g.p.AD=function(A){var L=lt(A);L&&(g.XF(this.element,L)||this.sourceElement&&g.XF(this.sourceElement,L)||!g.bV(A))||this.YP()};
|
|
g.p.U7=function(){return this.bC&&this.fade.state!==4};g.G(AY,g.zg);AY.prototype.fD=function(){g.zg.prototype.fD.call(this);this.dialog.focus()};g.G(g.of,g.DE);g.of.prototype.setIcon=function(A){this.updateValue("icon",A)};
|
|
g.of.prototype.updateValue=function(A,L){g.DE.prototype.updateValue.call(this,A,L);this.publish("size-change")};g.gC={bP:18,JR:17,oi:16,Uop:15,akT:14,Z4:13,sT:12,S_:11,g3:10,Uc:9,AUDIO:8,SUBTITLES:7,SLEEP_TIMER:6,GQ:5,RD:4,Yw:3,rAL:2,REMOTE:1,iQs:0,18:"LOOP",17:"STABLE_VOLUME",16:"VOICE_BOOST",15:"REMOTE_SELECT",14:"SIZE",13:"MINIPLAYER",12:"THREED",11:"AUTONAV",10:"CINEMATIC",9:"ANNOTATIONS",8:"AUDIO",7:"SUBTITLES",6:"SLEEP_TIMER",5:"SPEED",4:"AUDIO_SETTINGS",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.G(fh,g.of);fh.prototype.Hy=function(A){this.W&&this.S.logVisibility(this.element,this.N&&A)};
|
|
fh.prototype.U=function(){var A,L,B=(A=this.S.getVideoData())==null?void 0:(L=A.accountLinkingConfig)==null?void 0:L.linked;if(B&&!this.N){var f;A=(f=this.S.getVideoData())==null?void 0:f.accountLinkingConfig;this.setIcon(HP());var K;g.Lh(this,Kh(A==null?void 0:(K=A.menuData)==null?void 0:K.connectedMenuLabel));var V,J,R;this.V=new AY(this.S,Kh(A==null?void 0:(V=A.menuData)==null?void 0:V.connectedDialogTitle),Kh(A==null?void 0:(J=A.menuData)==null?void 0:J.connectedDialogMessage),Kh(A==null?void 0:
|
|
(R=A.menuData)==null?void 0:R.confirmButtonText));g.W(this,this.V);var Z;f=(A==null?void 0:(Z=A.menuData)==null?void 0:Z.trackingParams)||null;(this.W=!!f)&&this.S.setTrackingParams(this.element,f);this.Wz.ov(this);this.N=!0}else!B&&this.N&&(this.Wz.Z1(this),this.N=!1)};
|
|
fh.prototype.onClick=function(){this.W&&this.S.logClick(this.element);this.Wz.YP();this.V&&this.V.fD()};g.G(VC,g.Y);VC.prototype.J=function(A){return this.api.J(A)};g.G(JY,VC);JY.prototype.onVideoDataChange=function(A){if(!A.accountLinkingConfig){var L,B=(L=A.getPlayerResponse())==null?void 0:L.accountLinkingConfig;A.accountLinkingConfig=B}var f;if(L=(f=A.accountLinkingConfig)==null?void 0:f.alsParam)A.AS=L};
|
|
JY.prototype.setAccountLinkState=function(A){this.api.getVideoData().AS=A;this.api.VI()};
|
|
JY.prototype.updateAccountLinkingConfig=function(A){var L=this.api.getVideoData(),B=L.accountLinkingConfig;B&&(B.linked=A);this.api.publish("videodatachange","dataupdated",L,this.api.getPresentingPlayerType())};g.G(S3,VC);S3.prototype.Be=function(){var A=this.api.getPlaybackRate(),L;if(L=this.api.getVideoData()){var B=L.adFormat==="17_8",f,K=((f=L.NS)==null?void 0:ag(f,5))===8;L=L.isAd()&&(B||K)}else L=!1;if(!L)if(L=this.api.getVideoData()){B=L.adFormat==="15_6";var V;f=((V=L.NS)==null?void 0:ag(V,5))===7;L=L.isAd()&&(B||f)}else L=!1;L?(A!==1&&(this.N=A),this.api.setPlaybackRate(1)):this.N!==null&&(this.api.setPlaybackRate(this.N),this.N=null)};g.G(Zq,VC);
|
|
Zq.prototype.W=function(A){var L=A.getId(),B=this.api.getVideoData(1),f=!this.api.isInline();if(!B.inlineMetricEnabled||f){if(L==="part2viewed"){if(B.dF&&g.MJ(B.dF),B.mU&&N5(this,B.mU),B.dw)for(var K={CPN:this.api.getVideoData().clientPlaybackNonce},V=g.m(B.dw),J=V.next();!J.done;J=V.next())N5(this,g.iN(J.value,K))}else L==="engagedview"&&B.N3&&(K={CPN:this.api.getVideoData().clientPlaybackNonce},g.MJ(g.iN(B.N3,K)));B.NB&&(K=B.NB,V=A.getId(),K=Zp(K,{label:V}),g.MJ(K));switch(L){case "videoplaytime25":B.Ip&&N5(this,
|
|
B.Ip);B.FQ&&Fh(this,B.FQ);B.Wf&&g.MJ(B.Wf);break;case "videoplaytime50":B.kY&&N5(this,B.kY);B.UX&&Fh(this,B.UX);B.Ss&&g.MJ(B.Ss);break;case "videoplaytime75":B.Lf&&N5(this,B.Lf);B.wE&&Fh(this,B.wE);B.J9&&g.MJ(B.J9);break;case "videoplaytime100":B.qM&&N5(this,B.qM),B.tM&&Fh(this,B.tM),B.yd&&g.MJ(B.yd)}(K=this.api.getVideoData().w$)&&r2L(this,K,A.getId())&&r2L(this,K,A.getId()+"gaia")}if(B.inlineMetricEnabled&&!f)switch(L){case "videoplaybackstart":var R,Z=(R=B.iF)==null?void 0:R.N;Z&&N5(this,Z);break;
|
|
case "videoplayback2s":(R=(Z=B.iF)==null?void 0:Z.V)&&N5(this,R);break;case "videoplayback10s":var N;(R=(N=B.iF)==null?void 0:N.W)&&N5(this,R)}this.api.K9([A],1)};g.G(HP8,VC);g.G(Dq,g.of);Dq.prototype.onClick=function(){this.enabled&&(dC(this,!this.checked),this.publish("select",this.checked))};
|
|
Dq.prototype.getValue=function(){return this.checked};
|
|
Dq.prototype.setEnabled=function(A){(this.enabled=A)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var P6v={QCp:2,oi:1,JR:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var ph=["en-CA","en","es-MX","fr-CA"];g.G(GD,Dq);GD.prototype.isLoaded=function(){var A=g.tq(this.S.SI());return A!==void 0&&A.loaded};
|
|
GD.prototype.zL=function(){!this.S.J("web_fix_annotations")&&g.tq(this.S.SI())===void 0||this.S.getPresentingPlayerType()===3?this.N&&(this.Wz.Z1(this),this.N=!1):this.N||(this.Wz.ov(this),this.N=!0);if(this.S.J("web_fix_annotations")){var A,L,B;var f=this.S.J("web_fix_annotations")&&!!((A=this.S.getWatchNextResponse())==null?0:(L=A.playerOverlays)==null?0:(B=L.playerOverlayRenderer)==null?0:B.isAnnotationsEnabled);dC(this,f)}else dC(this,this.isLoaded())};
|
|
GD.prototype.onSelect=function(A){this.S.J("web_fix_annotations")||this.isLoaded();A?this.S.loadModule("annotations_module"):this.S.unloadModule("annotations_module");this.S.publish("annotationvisibility",A)};
|
|
GD.prototype.l1=function(){this.N&&this.Wz.Z1(this);Dq.prototype.l1.call(this)};g.G(k47,VC);var SD={},lDL=(SD[0]=function(A){return OP7(A,function(L){var B;return(B=L.ri)==null?void 0:B.id})},SD[2]=function(A){return TD(A,hY)},SD[3]=function(A){return TD(A,bb)},SD[4]=function(A){return TD(A,k5)},SD[1]=function(A){return TD(A,tY)},SD);
|
|
Ho.prototype.a_=function(A){return this.V[A]};
|
|
Ho.prototype.VF=function(){for(var A=this.W,L={},B=g.m(rC),f=B.next();!f.done;f=B.next())if(f=f.value,this.N[f]){A=awt[f].Ql(A,this.videoData);for(var K=g.m(rC),V=K.next();!V.done;V=K.next())V=V.value,L[V]!==void 0||K9(A,awt[V].nf)||(L[V]=awt[f].Eq);L[f]===void 0&&(L[f]=0)}else L[f]=1;this.V=L};
|
|
var rC=[0,1,2,3,4],RV={},awt=(RV[0]={Eq:2,nf:XZL,Ql:myQ},RV[2]={Eq:4,nf:hY,Ql:Q4y},RV[3]={Eq:5,nf:bb,Ql:C6E},RV[1]={Eq:3,nf:tY,Ql:iPv},RV[4]={Eq:6,nf:k5,Ql:$yv},RV);g.G(lb,VC);lb.prototype.getUserAudioQualitySetting=function(){return this.Ai};
|
|
lb.prototype.setUserAudioQualitySetting=function(A){this.api.Hn("aqs_set",{setting:A});g.OS("yt-player-audio-quality-setting",A);A!==this.Ai&&(this.Ai=A,this.updateEnvironmentData(),this.hasHqaAudioTrack()&&this.api.A8(),this.api.VF())};
|
|
lb.prototype.hasHqaAudioTrack=function(){var A,L,B=(A=this.api.getVideoData())==null?void 0:(L=A.V)==null?void 0:L.N;return B?K9(B,function(f){return k5(f)}):!1};
|
|
lb.prototype.updateEnvironmentData=function(){this.api.K().Ai=this.Ai};g.G(EQQ,VC);g.G(mf,g.q);g.p=mf.prototype;
|
|
g.p.EC=function(){var A;if(A=this.S.getPresentingPlayerType()!==3&&g.vh(this.S)&&this.S.Pn().getPlayerSize().width>=400)if(A=this.df(),this.S.K().J("client_respect_autoplay_switch_button_renderer"))A=!!A.autoplaySwitchButtonRenderer;else{var L,B,f,K;A=!!((L=A.getWatchNextResponse())==null?0:(B=L.contents)==null?0:(f=B.twoColumnWatchNextResults)==null?0:(K=f.autoplay)==null?0:K.autoplay)!==!1}A?this.N||(this.N=!0,this.xP(this.N),L=this.df(),this.fB(L.autonavState),this.S.logVisibility(this.element,this.N)):
|
|
(this.N=!1,this.xP(this.N))};
|
|
g.p.fB=function(A){MH6(this)?this.isChecked=A!==1:((A=A!==1)||(A=g.v9(),A=g.h_("web_autonav_allow_off_by_default")&&!A.Iv(141)&&g.A_("AUTONAV_OFF_BY_DEFAULT")?!1:!A.Iv(140)),this.isChecked=A);c2E(this)};
|
|
g.p.onClick=function(){this.isChecked=!this.isChecked;this.S.tW(this.isChecked?2:1);c2E(this);if(MH6(this)){var A=this.df().autoplaySwitchButtonRenderer;this.isChecked&&(A==null?0:A.onEnabledCommand)?this.S.Kr("innertubeCommand",A.onEnabledCommand):!this.isChecked&&(A==null?0:A.onDisabledCommand)&&this.S.Kr("innertubeCommand",A.onDisabledCommand)}this.S.logClick(this.element)};
|
|
g.p.getValue=function(){return this.isChecked};
|
|
g.p.df=function(){return this.S.getVideoData(1)};g.G(YOL,VC);g.G(Ch,Dq);Ch.prototype.zL=function(A){A?this.N||(this.Wz.ov(this),this.N=!0):this.N&&(this.Wz.Z1(this),this.N=!1);this.N&&dC(this,BYC())};
|
|
Ch.prototype.U=function(){g.NH(this.element,"ytp-menuitem-highlight-transition-enabled")};
|
|
Ch.prototype.V=function(A){var L=BYC();A!==L&&(L=g.v9(),P9(190,A),P9(192,!0),L.save(),this.S.Kr("cinematicSettingsToggleChange",A))};
|
|
Ch.prototype.l1=function(){this.N&&this.Wz.Z1(this);Dq.prototype.l1.call(this)};g.G(ib,VC);ib.prototype.updateCinematicSettings=function(A){this.N=A;var L;(L=this.menuItem)==null||L.zL(A);this.api.publish("onCinematicSettingsVisibilityChange",A)};g.G(W6w,VC);g.G($5,VC);$5.prototype.setCreatorEndscreenVisibility=function(A){var L;(L=kS(this.api.SI()))==null||L.xP(A)};
|
|
$5.prototype.N=function(A){function L(f){f==="creatorendscreen"&&(f=kS(B.api.SI()))&&f.RyF(B.hideButton)}
|
|
var B=this;this.hideButton=A;this.events.Y(this.api,"modulecreated",L);L("creatorendscreen")};g.G(qOC,VC);g.G(Xh,Dq);Xh.prototype.D=function(A){this.U(A?1:0)};
|
|
Xh.prototype.f8=function(){if(this.enableNewAudioSettingsMenu||this.V){var A=this.S.getPresentingPlayerType();A===2||A===3?this.N&&(this.N=!1,this.Wz.Z1(this)):(A=this.getDrcState(),A!==1?(A===0?(dC(this,this.W()===1),this.setEnabled(!0)):(dC(this,!1),this.setEnabled(!1)),this.N||(this.Wz.ov(this),this.N=!0)):this.N&&(this.Wz.Z1(this),this.N=!1))}else{A=this.hasDrcAudioTrack();var L=this.W()===1&&A;dC(this,L);this.setEnabled(A)}};
|
|
Xh.prototype.l1=function(){this.Wz.Z1(this);Dq.prototype.l1.call(this)};
|
|
Xh.prototype.T=function(){this.S.logClick(this.element)};g.G(Ot,VC);g.p=Ot.prototype;g.p.getDrcUserPreference=function(){return this.N};
|
|
g.p.setDrcUserPreference=function(A){this.api.Hn("drc_set",{pref:A});g.OS("yt-player-drc-pref",A,31536E3);A!==this.N&&(this.N=A,this.updateEnvironmentData(),this.JE()&&this.api.A8(),this.api.VF())};
|
|
g.p.updateEnvironmentData=function(){this.api.K().Pk=this.N===1};
|
|
g.p.JE=function(){var A,L,B=(A=this.api.getVideoData())==null?void 0:(L=A.V)==null?void 0:L.N;if(!B)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.J("mta_drc_mutual_exclusion_removal")){var f,K,V=(f=this.api.ZH())==null?void 0:(K=f.ri)==null?void 0:K.id;return K9(B,function(J){var R;return J.audio.N&&((R=J.ri)==null?void 0:R.id)===V})}return K9(B,function(J){var R;
|
|
return((R=J.audio)==null?void 0:R.N)===!0})};
|
|
g.p.getDrcState=function(){return this.api.a_(3)};g.G(Et,VC);Et.prototype.onVideoDataChange=function(){var A=this,L=this.api.getVideoData();this.api.Jf("embargo",1);var B=L==null?void 0:L.Ym.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(B==null?0:B.length)?eUE(this,B.filter(function(f){return xy0(A,f)})):(L==null?0:L.cueRanges)&&eUE(this,L.cueRanges.filter(function(f){return xy0(A,f)}))};
|
|
Et.prototype.W=function(A){return A.embargo!==void 0};
|
|
Et.prototype.l1=function(){VC.prototype.l1.call(this);this.N={}};g.G(co,VC);
|
|
co.prototype.addEmbedsConversionTrackingParams=function(A){var L=this.api.K(),B=L.widgetReferrer,f=L.O_,K=this.N,V="",J=L.getWebPlayerContextConfig();J&&(V=J.embedsIframeOriginParam||"");B.length>0&&(A.embeds_widget_referrer=B);f.length>0&&(A.embeds_referring_euri=f);L.U&&V.length>0&&(A.embeds_referring_origin=V);J&&J.embedsFeature&&(A.feature=J.embedsFeature);K.length>0&&(L.J("embeds_web_enable_lite_experiment_control_arm_logging")?K.unshift(28572):g.IX(g.nM(L))&&K.unshift(159628),L=K.join(","),L=
|
|
g.ng()?L:g.Uz(L,4),A.source_ve_path=L);this.N.length=0};g.G(nQD,VC);g.G(zUk,VC);g.G(M5,g.Y);M5.prototype.l1=function(){g.Y.prototype.l1.call(this);this.N=null;this.W&&this.W.disconnect()};g.G(aDE,VC);g.G(Y5,VC);Y5.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.G(Ut,g.q);Ut.prototype.show=function(){g.q.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
|
|
Ut.prototype.stopTimer=function(){this.N&&(this.N.dispose(),this.N=null)};
|
|
Ut.prototype.onVideoDataChange=function(A){var L,B,f=(L=this.api.getVideoData())==null?void 0:(B=L.getPlayerResponse())==null?void 0:B.playabilityStatus;f&&(L=AIQ(f),g.x(this.api.getPlayerStateObject(),128)||A==="dataloaderror"||!L?(this.W=0,this.stopTimer(),this.hide()):(A=(L.remainingTimeSecs||0)*1E3,A>0&&(this.show(),this.updateValue("label",J2(L.label)),oKC(this,A))))};
|
|
Ut.prototype.l1=function(){this.stopTimer();g.q.prototype.l1.call(this)};g.G(BDe,VC);g.G(Wo,g.q);Wo.prototype.onClick=function(){this.rT.logClick(this.element);this.rT.Kr("onFullerscreenEduClicked")};
|
|
Wo.prototype.zL=function(){this.rT.isFullscreen()?this.N?this.fade.hide():this.fade.show():this.hide();this.rT.logVisibility(this.element,this.rT.isFullscreen()&&!this.N)};g.G(vo,VC);vo.prototype.updateFullerscreenEduButtonSubtleModeState=function(A){var L;(L=this.N)!=null&&(g.D1(L.element,"ytp-fullerscreen-edu-button-subtle",A),A&&!L.W&&(L.rT.J("player_tooltip_data_title_killswitch")?L.element.setAttribute("title","Scorri per i dettagli"):L.element.setAttribute("data-tooltip-title","Scorri per i dettagli"),Cm(L.rT,L.element,L),L.W=!0))};
|
|
vo.prototype.updateFullerscreenEduButtonVisibility=function(A){var L;(L=this.N)!=null&&(L.N=A,L.zL())};g.G(fcw,g.q);g.G(JI8,VC);g.G(q5,VC);q5.prototype.getSphericalProperties=function(){var A=g.Yn(this.api.SI());return A?A.getSphericalProperties():{}};
|
|
q5.prototype.setSphericalProperties=function(A){if(A){var L=g.Yn(this.api.SI());L&&L.setSphericalProperties(A,!0)}};g.G(Po,VC);g.p=Po.prototype;g.p.createClientVe=function(A,L,B,f){this.api.createClientVe(A,L,B,f===void 0?!1:f)};
|
|
g.p.createServerVe=function(A,L,B){this.api.createServerVe(A,L,B===void 0?!1:B)};
|
|
g.p.setTrackingParams=function(A,L){this.api.setTrackingParams(A,L)};
|
|
g.p.logClick=function(A,L){this.api.logClick(A,L)};
|
|
g.p.logVisibility=function(A,L,B){this.api.logVisibility(A,L,B)};
|
|
g.p.hasVe=function(A){return this.api.hasVe(A)};
|
|
g.p.destroyVe=function(A){this.api.destroyVe(A)};var RgE=!1;e3.prototype.setPlaybackRate=function(A){this.playbackRate=Math.max(1,A)};
|
|
e3.prototype.getPlaybackRate=function(){return this.playbackRate};o5.prototype.kU=function(A){var L=g.vV(A.info.b1.info,this.gT.iC),B=A.info.XD+this.U,f=A.info.startTime*1E3;if(this.policy.cn)try{f=this.policy.cn?g.k6(A)*1E3:A.info.startTime*1E3}catch(J){Math.random()>.99&&this.logger&&(f=yD(A.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:A.info.Dx(),encodedDataView:g.Y$(f,4)})),f=A.info.startTime*1E3}var K=A.info.clipId,V=this.policy.cn?g.Z$1(A)*1E3:A.info.duration*1E3;this.policy.cn&&(f<0||V<0)&&(this.logger&&(this.logger({missingSegInfo:A.info.Dx(),
|
|
startTimeMs:f,durationMs:V}),this.policy.Xp||(f<0&&(f=A.info.startTime*1E3),V<0&&(V=A.info.duration*1E3))),this.policy.Xp&&(f<0&&(f=A.info.startTime*1E3),V<0&&(V=A.info.duration*1E3)));return{formatId:L,XD:B,startTimeMs:f,clipId:K,wv:V}};
|
|
o5.prototype.j8=function(A){this.timestampOffset=A};BO.prototype.seek=function(A,L){A!==this.targetTime&&(this.seekCount=0);this.targetTime=A;var B=this.videoTrack.N,f=this.audioTrack.N,K=this.audioTrack.uC,V=bqE(this,this.videoTrack,A,this.videoTrack.uC,L);L=bqE(this,this.audioTrack,this.policy.mH?A:V,K,L);A=Math.max(A,V,L);this.U=!0;this.gT.isManifestless&&(G5k(this,this.videoTrack,B),G5k(this,this.audioTrack,f));return A};
|
|
BO.prototype.isSeeking=function(){return this.U};
|
|
BO.prototype.kz=function(A){this.W=A};
|
|
var hgv=2/24;var TDS=0;var dM;I5.prototype.add=function(A){if(this.pos+20>this.data.length){var L=new Uint8Array(this.data.length*2);L.set(this.data);this.data=L}for(;A>31;)this.data[this.pos++]=dM[(A&31)+32],A>>=5;this.data[this.pos++]=dM[A|0]};
|
|
I5.prototype.PV=function(){return g.sX(this.data.subarray(0,this.pos))};
|
|
I5.prototype.reset=function(){this.pos=0};g.p=ya.prototype;g.p.U5=function(){this.yj=this.now();Qsv(this.Ml,this.yj);this.xs.U5()};
|
|
g.p.gK=function(A,L){var B=this.policy.W?(0,g.bc)():0;jb(this,A,L);A-this.T<10&&this.W>0||this.JI(A,L);this.xs.gK(A,L);this.policy.W&&(A=(0,g.bc)()-B,this.Uv+=A,this.Nl=Math.max(A,this.Nl))};
|
|
g.p.JI=function(A,L){var B=(A-this.T)/1E3,f=L-this.V;this.lf||(I0E(this.Ml,B,f),this.YD(B,f));this.T=A;this.V=L};
|
|
g.p.ZZ=function(){this.ZM&&mjw(this);this.xs.ZZ()};
|
|
g.p.Xt=function(A){this.ZM||(this.ZM=this.D-this.KY+A,this.Pz=this.D,this.N8=this.X)};
|
|
g.p.Ja=function(A,L){A=A===void 0?this.X:A;L=L===void 0?this.D:L;this.W>0||(this.G=A,this.W=L,this.Wn=this.isActive=!0)};
|
|
g.p.h5=function(){return this.So||2};
|
|
g.p.LP=function(){};
|
|
g.p.Rg=function(){var A,L={rn:this.requestNumber,rt:(this.X-this.N).toFixed(),lb:this.D,stall:(1E3*this.U).toFixed(),ht:(this.yj-this.N).toFixed(),elt:(this.G-this.N).toFixed(),elb:this.W,d:(A=this.wT)==null?void 0:A.PV()};this.url&&S98(L,this.url);this.policy.W&&(L.mph=this.Nl.toFixed(),L.tph=this.Uv.toFixed());L.ulb=this.JF;L.ult=this.qp;return L};
|
|
g.p.now=function(){return(0,g.bc)()};
|
|
g.p.deactivate=function(){this.isActive&&(this.isActive=!1)};g.G(GC,ya);g.p=GC.prototype;g.p.Rg=function(){var A=ya.prototype.Rg.call(this);A.pb=this.bb;A.pt=(1E3*this.zV).toFixed();A.se=this.t$;return A};
|
|
g.p.mW=function(){var A=this.xs;this.sx||(this.sx=A.mW?A.mW():1);return this.sx};
|
|
g.p.PM=function(){return this.HB?this.mW()!==1:!1};
|
|
g.p.aT=function(A,L,B){if(!this.jI){this.jI=!0;if(!this.lf){jb(this,A,L);this.JI(A,L);var f=this.mW();this.t$=B;if(!this.lf)if(f===2){f=A-this.G<this.h5()*1E3+50;B=this.qp?this.JF/(this.qp/1E3):B||this.Ox;var K=this.qz*1.3;f&&B<K||(this.qp?rM(this.Ml,this.qp/1E3,this.JF,this.Ex||this.policy.Wn):rM(this.Ml,L/B,L,.01));xo(this.Ml,L,f?0:this.U)}else f===1&&(f=(A-this.N)/1E3,!(f<=this.policy.U)&&this.policy.U||this.ql||this.policy.yj||!(this.W>0)||sV(this,f,L),this.W>0&&xo(this.Ml,L,this.U));A=(A-this.N)/
|
|
1E3||.01;this.policy.G&&!(this.W>0)||Pd(this.Ml,A,this.V,iqw(this),this.xm)}this.deactivate()}};
|
|
g.p.le=function(A,L,B){B&&(this.sx=2);A<0&&this.So&&(A=this.So);L?this.Cr+=A:this.Ex+=A};
|
|
g.p.h5=function(){return this.Ex||this.Cr||ya.prototype.h5.call(this)};
|
|
g.p.JI=function(A,L){var B=(A-this.T)/1E3,f=L-this.V,K=this.mW();this.isActive?K===1&&((f>0||this.policy.D)&&(B>.2||f<1024)?(this.U+=B,f>0&&B>.2&&sV(this,this.qz?B:.05,f),this.ql=!0):f>0&&(sV(this,B,f),this.ql=!0)):L&&L>=this.policy.N&&this.Ja(A,L);ya.prototype.JI.call(this,A,L)};
|
|
g.p.Lm=function(A){if(!this.lf){jb(this,A,this.D);var L=(A-this.N)/1E3;this.mW()!==2&&this.W>0&&(this.U+=(A-this.T)/1E3,xo(this.Ml,this.V,this.U));Pd(this.Ml,L,this.V,iqw(this),this.xm,!0);A=(A-this.T)/1E3;I0E(this.Ml,A,0);this.YD(A,0)}};
|
|
g.p.Ja=function(A,L){A=A===void 0?this.X:A;L=L===void 0?this.D:L;if(!(this.W>0)&&(ya.prototype.Ja.call(this,A,L),this.mW()===1)){L=(this.yj-this.N)/1E3;var B=(A-this.yj)/1E3;this.HB&&HO(this,this.now());this.mH||this.lf||(this.So&&(B=Math.max(0,B-this.So)),A=this.Ml,A.G.eg(1,L),A.wT.eg(1,B))}};
|
|
g.p.ZB=function(){this.HB&&HO(this,this.now());return this.Ys};
|
|
g.p.nZ=function(){var A;if(A=this.V>this.Kg)A=(A=this.V)?A>=this.policy.N:!1;return A};
|
|
g.p.Qm=function(){return this.cn};
|
|
g.p.i9=function(A){A=A===void 0?this.now():A;if(this.HB){HO(this,A);if(this.sx?this.PM():this.Vj!==this.S4){var L=this.S4;if(A<L){this.cn=this.S4;return}}else L=this.Vj;L=Math.max(L,this.Ys)}else L=this.Ys;var B=this.bb-this.V;B<0&&(B=0);B=(B*this.snapshot.stall+B/this.snapshot.byterate)*1E3;this.cn=B=this.W>0?B+A:B+Math.max(A,L)};
|
|
g.p.ix=function(){return this.now()-this.G};
|
|
g.p.vr=function(){return(this.V-this.W)*1E3/this.ix()||0};
|
|
g.p.Me=function(){return this.G};hi.prototype.feed=function(A){DF(this.N,A);this.yG()};
|
|
hi.prototype.yG=function(){if(this.U){if(!this.N.totalLength)return;var A=this.N.split(this.V-this.W),L=A.NJ;A=A.Mz;if(!this.xs.Xt(this.U,L,this.W,this.V))return;this.W+=L.totalLength;this.N=A;this.W===this.V&&(this.U=this.V=this.W=void 0)}for(;;){var B=0;A=g.m(EK0(this.N,B));L=A.next().value;B=A.next().value;B=g.m(EK0(this.N,B));A=B.next().value;B=B.next().value;if(L<0||A<0)break;if(!(B+A<=this.N.totalLength)){if(!(this.xs.Xt&&B+1<=this.N.totalLength))break;B=this.N.split(B).Mz;this.xs.Xt(L,B,0,
|
|
A)&&(this.U=L,this.W=B.totalLength,this.V=A,this.N=new FK([]));break}A=this.N.split(B).Mz.split(A);B=A.Mz;this.xs.p_(L,A.NJ);this.N=B}};
|
|
hi.prototype.dispose=function(){this.N=new FK};g.p=b$.prototype;g.p.TU=function(){return 0};
|
|
g.p.Ns=function(){return null};
|
|
g.p.y0=function(){return null};
|
|
g.p.Er=function(){return this.state>=1};
|
|
g.p.isComplete=function(){return this.state>=3};
|
|
g.p.LQ=function(){return this.state===5};
|
|
g.p.onStateChange=function(){};
|
|
g.p.Y6=function(A){var L=this.state;this.state=A;this.onStateChange(L);this.callback&&this.callback(this,L)};
|
|
g.p.z2=function(A){A&&this.state<A?this.Y6(A):this.callback&&this.callback(this,this.state)};
|
|
g.p.TL=function(){return this.state===-1};
|
|
g.p.Dx=function(){var A="";this.info.Lr.forEach(function(L){A+=L.Dx()+"."});
|
|
return A.slice(0,-1)};
|
|
g.p.dispose=function(){this.TL()||(this.info.Lr[0].b1.V=!1,this.Y6(-1))};
|
|
g.p.Pr=function(){return 0};g.p=ti.prototype;g.p.xQ=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.xs.U5()};
|
|
g.p.onError=function(){this.V=!0;this.onDone()};
|
|
g.p.onDone=function(){this.TL||(this.U=!0,this.xs.ZZ())};
|
|
g.p.R5=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
|
|
g.p.getResponseHeader=function(A){try{return this.xhr.getResponseHeader(A)}catch(L){return""}};
|
|
g.p.cN=function(){return+this.getResponseHeader("content-length")};
|
|
g.p.Q4=function(){return this.W};
|
|
g.p.Yv=function(){return this.status>=200&&this.status<300&&!!this.W};
|
|
g.p.Wg=function(){return this.N.totalLength>0};
|
|
g.p.KS=function(){var A=this.N;this.N=new FK;return A};
|
|
g.p.xK=function(){return this.N};
|
|
g.p.abort=function(){this.TL=!0;this.xhr.abort()};
|
|
g.p.v4=function(){return!0};
|
|
g.p.Wm=function(){return this.V};
|
|
g.p.SE=function(){return""};g.p=Y9v.prototype;
|
|
g.p.run=function(){var A=this,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){if(h.N==1){A.status=200;L=A.N.get("docid");B=qw(A.N.get("fmtid")||"");f=A.N.get("lmt")||"0";K=+(A.N.get("csz")||0);if(!L||!B||!K)throw Error("Invalid local URL");A.N.get("ck")&&A.N.get("civ")&&(V=new Mz1(A.N.get("ck"),A.N.get("civ")));J=A.range;R=Math.floor(J.start/K);Z=Math.floor(J.end/K);N=R}if(h.N!=5)return N<=Z?g.X(h,bJe(L,B,f,N,V),5):h.Ux(0);F=h.W;if(F===void 0)throw Error("invariant: data is undefined");D=N*K;
|
|
I=(N+1)*K;d=Math.max(0,J.start-D);w=Math.min(J.end+1,I)-(d+D);r=new Uint8Array(F.buffer,d,w);A.W.append(r);A.loaded+=w;A.loaded<J.length&&A.xs.gK((0,g.bc)(),A.loaded);N++;return h.Ux(2)})};
|
|
g.p.getResponseHeader=function(A){return A==="content-type"?this.N.get("type"):""};
|
|
g.p.abort=function(){};
|
|
g.p.R5=function(){return!0};
|
|
g.p.cN=function(){return this.range.length};
|
|
g.p.Q4=function(){return this.loaded};
|
|
g.p.Yv=function(){return!!this.loaded};
|
|
g.p.Wg=function(){return!!this.W.totalLength};
|
|
g.p.KS=function(){var A=this.W;this.W=new FK;return A};
|
|
g.p.xK=function(){return this.W};
|
|
g.p.v4=function(){return!0};
|
|
g.p.Wm=function(){return!!this.error};
|
|
g.p.SE=function(){return this.error};g.p=Wd1.prototype;g.p.start=function(A){var L={credentials:"include",cache:"no-store"};Object.assign(L,this.T);this.U&&(L.signal=this.U.signal);A=new Request(A,L);fetch(A).then(this.G,this.onError).then(void 0,QH)};
|
|
g.p.onDone=function(){this.TL()||this.xs.ZZ()};
|
|
g.p.getResponseHeader=function(A){return this.responseHeaders?this.responseHeaders.get(A):null};
|
|
g.p.R5=function(){return!!this.responseHeaders};
|
|
g.p.Q4=function(){return this.W};
|
|
g.p.cN=function(){return+this.getResponseHeader("content-length")};
|
|
g.p.Yv=function(){return this.status>=200&&this.status<300&&!!this.W};
|
|
g.p.Wg=function(){return!!this.N.totalLength};
|
|
g.p.KS=function(){var A=this.N;this.N=new FK;return A};
|
|
g.p.xK=function(){return this.N};
|
|
g.p.TL=function(){return this.aborted};
|
|
g.p.abort=function(){this.V&&this.V.cancel().catch(function(){});
|
|
this.U&&this.U.abort();this.aborted=!0};
|
|
g.p.v4=function(){return!0};
|
|
g.p.Wm=function(){return this.D};
|
|
g.p.SE=function(){return this.errorMessage};g.p=vK8.prototype;g.p.onDone=function(){if(!this.TL){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(A){}this.N=!0;this.xs.ZZ()}};
|
|
g.p.xQ=function(){this.xhr.readyState===2&&this.xs.U5()};
|
|
g.p.onProgress=function(A){this.TL||(this.status=this.xhr.status,this.N||(this.W=A.loaded),this.xs.gK((0,g.bc)(),A.loaded))};
|
|
g.p.R5=function(){return this.xhr.readyState>=2};
|
|
g.p.getResponseHeader=function(A){try{return this.xhr.getResponseHeader(A)}catch(L){return g.CE(Error("Could not read XHR header "+A)),""}};
|
|
g.p.cN=function(){return+this.getResponseHeader("content-length")};
|
|
g.p.Q4=function(){return this.W};
|
|
g.p.Yv=function(){return this.status>=200&&this.status<300&&this.N&&!!this.W};
|
|
g.p.Wg=function(){return this.N&&!!this.response&&!!this.response.byteLength};
|
|
g.p.KS=function(){var A=this.response;this.response=void 0;return new FK([new Uint8Array(A)])};
|
|
g.p.xK=function(){return new FK([new Uint8Array(this.response)])};
|
|
g.p.abort=function(){this.TL=!0;this.xhr.abort()};
|
|
g.p.v4=function(){return!1};
|
|
g.p.Wm=function(){return!1};
|
|
g.p.SE=function(){return""};g.G(TC,g.Y);TC.prototype.Ud=function(){if(!this.E_.length)return[];var A=this.E_;this.E_=[];this.V=g.vw(A).info;return A};
|
|
TC.prototype.Bc=function(){return this.E_};
|
|
TC.prototype.l1=function(){g.Y.prototype.l1.call(this);this.N=null;this.E_.length=0;this.Lr.length=0;this.V=null};g.G(m4,g.Y);g.p=m4.prototype;
|
|
g.p.oyD=function(){if(!this.TL()){var A=(0,g.bc)(),L=!1;if(this.policy.O_){var B=this.timing.W>0?this.timing.G:this.timing.N;this.policy.VH&&this.V&&(B=this.V);A=A-B-(this.policy.zK?this.policy.SH:this.timing.h5()*1E3);B=U9(Qa(this),!1);A>=2E3*B?L=!0:A>=this.policy.mL*B&&(this.N=this.policy.JA)}else if(this.timing.W>0){if(this.T){this.policy.N8&&(this.N=0);return}A=this.timing.Qm();this.timing.i9();this.timing.Qm()-A>=this.policy.Ry*.8?(this.N++,L=this.N>=5):this.N=0}else L=A-this.timing.ZB(),this.policy.JA&&
|
|
L>0&&(this.N+=1),A=U9(Qa(this),!1)*this.policy.hN,L=L>A*1E3;this.N>0&&this.xs.ZK();L?this.oG():this.W.start()}};
|
|
g.p.oG=function(){this.D=!0;this.xs.zv();this.lastError="net.timeout";i$(this)};
|
|
g.p.canRetry=function(A){var L=Qa(this);A=A?this.policy.u4:this.policy.e6;return L.timedOut<this.policy.HC&&L.N<A};
|
|
g.p.p8=function(){return this.lastError};
|
|
g.p.K5=function(){return this.N};
|
|
g.p.dispose=function(){this.W.dispose();g.Y.prototype.dispose.call(this)};var Z0={},NRS=(Z0["1h"]=8,Z0["9h"]=4,Z0["1"]=8,Z0["9"]=4,Z0["("]=4,Z0.h=2,Z0.H=2,Z0),Nc={},FrQ=(Nc.o=3,Nc.O=3,Nc.so=3,Nc.a=1,Nc.ah=1,Nc.A=1,Nc.m=1,Nc.M=1,Nc.sa=1,Nc.mac3=7,Nc.MAC3=7,Nc.meac3=5,Nc.MEAC3=5,Nc),Fj={},dPL=(Fj.o=0,Fj.O=0,Fj.a=0,Fj.ah=0,Fj.A=0,Fj.m=1,Fj.M=1,Fj.mac3=1,Fj.MAC3=1,Fj.meac3=1,Fj.MEAC3=1,Fj.so=4,Fj.sa=4,Fj);var yLS={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var cO,EV,MI=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],Kr8=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],VlE=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],JLD=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],SI6=["412","359"],Rc1=[["141"],["774"],["380"],["328"]],D0={},o6D=(D0["398"]="397 396 395 394 788 787".split(" "),
|
|
D0["247"]=["780","779","244","243","242"],D0["136"]=["135","134","133","160"],D0["141"]=["140"],D0["774"]=["251","250"],D0),dr={},BRC=(dr["135"]=["134","133","160"],dr["243"]=["242"],dr["781"]=["780","779"],dr["777"]=["776","775"],dr["396"]=["395","394"],dr["141"]=["140"],dr["774"]=["251","250"],dr),IV={},fYk=(IV["274"]=["317","273","318","280","279"],IV["145"]=["144","222","223","143","142"],IV["141"]=["149"],IV["140"]=["149"],IV["380"]=["381"],IV["328"]=["329"],IV),wr={},AL0=(wr["133"]=240,wr["134"]=
|
|
360,wr["135"]=480,wr["136"]=720,wr["137"]=1080,wr["242"]=240,wr["243"]=360,wr["244"]=480,wr["247"]=720,wr["248"]=1080,wr["298"]=720,wr["299"]=1080,wr["302"]=720,wr["303"]=1080,wr["395"]=240,wr["396"]=360,wr["397"]=480,wr["398"]=720,wr["399"]=1080,wr);var IY1={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.G(KT,b$);g.p=KT.prototype;g.p.zb=function(){return this.timing.requestNumber};
|
|
g.p.MQ=function(){return this.Tq.MQ()};
|
|
g.p.tj=function(){var A=zg7(this.RA);if(this.S5){var L=this.S5,B=L.N.totalLength;A.ulen=B;B>0&&(L=jU(L.N,0),A.ubyte=L,B===1&&L===0&&(A.b248180278=!0))}this.zy&&(A.rc=this.policy.Ji?this.zy:this.zy.toString());this.policy.nD&&this.UJ&&(A.tr=this.UJ);A.itag=this.info.Lr[0].b1.info.itag;A.ml=""+ +this.info.Lr[0].b1.w1();A.sq=""+this.info.Lr[0].XD;this.Tq&&(A.ifi=""+ +Kw(3,this.info.wi.W));this.zy!==410&&this.zy!==500&&this.zy!==503||(A.fmt_unav="true");var f;(B=this.errorMessage||((f=this.xhr)==null?
|
|
void 0:f.SE()))&&(A.msg=B);this.b4&&(A.smb="1");this.info.isDecorated()&&(A.sdai="1");return A};
|
|
g.p.OL=function(){return $j6(this.timing)};
|
|
g.p.SE=function(){return this.xhr.SE()||""};
|
|
g.p.nZ=function(){return this.isComplete()||this.timing.nZ()};
|
|
g.p.gK=function(){!this.TL()&&this.xhr&&(this.zy=this.xhr.status,this.policy.D$&&this.I0&&this.KX(!1),this.HA()?this.z2(2):!this.aI&&this.nZ()&&(this.z2(),this.aI=!0))};
|
|
g.p.U5=function(){if(!this.TL()&&this.xhr){if(!this.Gv&&this.xhr.R5()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var A=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Gv=((0,g.bc)()-A)/1E3}this.xhr.R5()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.cFn&&!pRw()&&g.OS("yt-player-headers-readable",!0,2592E3);A=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var L=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),B;(B=this.y_)==null||B.stop();this.Jj=A||this.Jj;
|
|
this.Od=L||this.Od}};
|
|
g.p.ZZ=function(){var A=this.xhr;if(!this.TL()&&A){this.zy=A.status;A=this.St(A);if(this.policy.nD){var L;(L=this.y_)==null||L.stop()}A===5?i$(this.RA):this.Y6(A);this.RA.W.stop()}};
|
|
g.p.St=function(A){rLD(this);if($2(this.RA,this.xhr.status,this.cZ?this.timing.Wn||this.kV:this.xhr.Yv(),!1,this.EK))return 5;var L="";XT(this.RA,this.xhr)&&(L=nKC(this.RA,this.xhr));if(L)return YK(Qa(this.RA)),this.info.GM(this.Tq,L),3;L=A.Q4();if(this.S5){this.KX(!0);rLD(this);if($2(this.RA,this.xhr.status,this.timing.Wn||this.kV,!1,this.EK))return 5;if(!this.hn){if(this.kV)return YK(Qa(this.RA)),3;this.RA.lastError="net.closed";return 5}}else{if($2(this.RA,this.xhr.status,this.xhr.Yv(),!1,this.EK))return 5;
|
|
var B=this.info.V;if(B&&B!==L||A.Wm())return this.RA.lastError="net.closed",5;this.KX(!0)}B=cIe(this)?A.getResponseHeader("X-Bandwidth-Est"):0;if(A=cIe(this)?A.getResponseHeader("X-Bandwidth-Est3"):0)this.JJ=!0,this.policy.xw&&(B=A);egS(this.RA,L,B?Number(B):0,this.info.Lr[0].type===5);return 4};
|
|
g.p.canRetry=function(){this.TL();var A=this.info.isDecorated();return this.RA.canRetry(A)};
|
|
g.p.onStateChange=function(){this.isComplete()&&(this.policy.V8?this.zv():this.timing.deactivate())};
|
|
g.p.oG=function(){this.RA.oG()};
|
|
g.p.ZK=function(){this.callback&&this.callback(this,this.state)};
|
|
g.p.K5=function(){return this.RA.K5()};
|
|
g.p.dispose=function(){b$.prototype.dispose.call(this);this.RA.dispose();var A;(A=this.y_)==null||A.dispose();this.policy.V8||this.zv()};
|
|
g.p.zv=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()};
|
|
g.p.Ud=function(){if(!this.Bc().length)return[];this.T6=!0;return this.I0.Ud()};
|
|
g.p.HA=function(){if(this.state<1)return!1;if(this.I0&&this.I0.E_.length)return!0;var A;return((A=this.xhr)==null?0:A.Wg())?!0:!1};
|
|
g.p.Bc=function(){this.KX(!1);return this.I0?this.I0.Bc():[]};
|
|
g.p.KX=function(A){try{if(A||this.xhr.R5()&&this.xhr.Wg()&&!XT(this.RA,this.xhr)&&!this.QZ)this.I0||(this.I0=new TC(this.policy,this.info.Lr)),this.xhr.Wg()&&(this.S5?this.S5.feed(this.xhr.KS()):l$(this.I0,this.xhr.KS(),A&&!this.xhr.Wg()))}catch(L){this.S5?g6E(this,L):g.CE(L)}};
|
|
g.p.p_=function(A,L){switch(A){case 21:A=L.split(1).Mz;GW8(this,A);break;case 22:this.hn=!0;l$(this.I0,new FK([]),!0);break;case 43:if(A=Cz(new th(L),1))this.info.GM(this.Tq,A),this.kV=!0;break;case 45:L=bQ(new th(L));A=L.S3;L=L.v3;A&&L&&(this.tL=A/L);break;case 44:this.b_=LmQ(new th(L));var B,f,K;!this.timing.Wn&&((B=this.b_)==null?void 0:B.action)===4&&((f=this.b_)==null?0:(K=f.ZX)==null?0:K.cZ)&&(this.cZ=this.b_.ZX.cZ);break;case 53:this.policy.nD&&(A=ub1(new th(L)).hj)&&(this.y_||(this.hj=A,this.y_=
|
|
new g.aa(this.VM,A,this)),this.y_.start());break;case 60:this.ZO=hT(new th(L));break;case 58:if(A=tNe(new th(L)))this.qn=A,A.qn===3&&(this.EK=!0)}};
|
|
g.p.Xt=function(A,L,B,f){B||this.timing.Xt(f);if(A!==21)return!1;if(A=this.policy.D$)if(A*=this.info.Lr[0].b1.info.lC,L.totalLength+B!==f&&L.totalLength<A)return!1;if(!B){if(L.totalLength===1)return!0;L=L.split(1).Mz}GW8(this,L);return!0};
|
|
g.p.Q4=function(){return this.xhr.Q4()};
|
|
g.p.TU=function(){return this.Gv};
|
|
g.p.mW=function(){return this.PM()?2:1};
|
|
g.p.PM=function(){if(!this.policy.G.D5||!isNaN(this.info.FH)&&this.info.FH>0)return!1;if(!this.xhr.R5())return!0;if(this.S5)var A=!this.info.V;else this.xhr.cN()?A=!1:(A=this.xhr.getResponseHeader("content-type"),A=A==="audio/mp4"||A==="video/mp4"||A==="video/webm");if(!A)return!1;if(isNaN(this.info.FH)){A=this.xhr.getResponseHeader("x-head-seqnum");var L=this.timing.policy.X?1:0;if(A&&Number(A)>this.info.Lr[0].XD+L)return!1}return!0};
|
|
g.p.Pr=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
|
|
g.p.Ns=function(){this.xhr&&(this.Jj=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Jj};
|
|
g.p.y0=function(){this.xhr&&(this.Od=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Od};
|
|
g.p.p8=function(){return this.RA.p8()};
|
|
g.p.VM=function(){if(!this.TL()&&this.xhr){this.UJ="heartbeat";var A=this.RA;A.N+=2;this.ZK()}};g.G(vO,ya);g.p=vO.prototype;g.p.JI=function(A,L){var B=(A-this.T)/1E3,f=L-this.V;this.W>0?f>0&&(this.Vj&&(B>.2||f<1024?(this.U+=B,B>.2&&spE(this,.05,f)):spE(this,B,f)),this.S4&&(this.Ys+=f,this.Ex+=B)):L>this.policy.N&&this.Ja(A,L);ya.prototype.JI.call(this,A,L)};
|
|
g.p.aT=function(A,L){jb(this,A,L);this.JI(A,L);this.Vj&&(L=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.W>0&&xo(this.Ml,this.Ys,this.U),A=(A-this.N)/1E3||.01,this.policy.G&&!(this.W>0)||Pd(this.Ml,A,this.V,L,!1))};
|
|
g.p.Lm=function(A){jb(this,A,this.D);var L=(A-this.T)/1E3;I0E(this.Ml,L,0);this.YD(L,0);!this.Vj&&this.W>0||(L=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.W>0&&(this.U+=(A-this.T)/1E3,xo(this.Ml,this.Ys,this.U)),Pd(this.Ml,(A-this.N)/1E3||.01,this.V,L,!1,!0))};
|
|
g.p.aF=function(A){A=A.P6||2147483647;(A&2)!==2&&(this.S4=!1);(A&1)===1&&(this.Vj=!0)};
|
|
g.p.z5=function(A){A=A.P6||2147483647;(A&2)===2&&(this.S4=!1);(A&1)===1&&(this.Vj=!1)};
|
|
g.p.Me=function(){return this.G};
|
|
g.p.ix=function(){var A=this.S4?this.now()-this.T:0;return Math.max(this.Ex*1E3+A,1)};
|
|
g.p.vr=function(){return this.Ys*1E3/this.ix()};
|
|
g.p.Ja=function(A,L){A=A===void 0?this.X:A;L=L===void 0?this.D:L;this.W>0||(ya.prototype.Ja.call(this,A,L),L=this.Ml,A=(A-this.yj)/1E3,L.G.eg(1,(this.yj-this.N)/1E3),L.wT.eg(1,A))};
|
|
g.p.LP=function(A){this.Cr=A};
|
|
g.p.Rg=function(){var A=ya.prototype.Rg.call(this);A.rbw=this.vr();A.rbe=+this.S4;A.gbe=+this.Vj;A.ackt=(this.Cr-this.N).toFixed();return A};
|
|
g.p.i9=function(){};
|
|
g.p.Qm=function(){return NaN};
|
|
g.p.ZB=function(){return this.N+this.snapshot.delay*1E3};qI.prototype.p_=function(A,L){switch(A){case 20:A=new th(L);A={TB:lD(A,1),videoId:Cz(A,2),itag:lD(A,3),lmt:lD(A,4),xtags:Cz(A,5),Uo:lD(A,6),qE:mE(A,8),td:lD(A,9),O3F:lD(A,10),startMs:lD(A,11),durationMs:lD(A,12),a6:lD(A,14),timeRange:iD(A,15,Gv),Gb:lD(A,16),dG:lD(A,17),DI:lD(A,20),clipId:Cz(A,1E3)};this.MA(A);break;case 21:this.ZY(L,!1);break;case 22:this.s0(L);break;case 31:A=OX(L,W11);this.xs.UY(A);break;case 52:A=OX(L,aED);this.xs.bN(A);break;case 69:A={x5:XK(new th(L),1,XP1)};this.xs.TW(A);break;
|
|
default:this.qA(A,L)}};
|
|
qI.prototype.MA=function(){};
|
|
qI.prototype.qA=function(){};var AFw=new Set([53,49,50]);g.G(PO,qI);g.p=PO.prototype;g.p.qA=function(A,L){Xpk(this.xs)&&!AFw.has(A)?this.N.push({id:A,data:L}):H30(this,A,L)};
|
|
g.p.QO=function(A){A=new th(A);A={db4:XK(A,1,gN),LGM:XK(A,2,gN)};this.xs.QO(A)};
|
|
g.p.Cy=function(A){var L=new th(A);A=$v(L,1);var B=$v(L,2);L=$v(L,3);this.xs.Cy(A,B,L)};
|
|
g.p.eJ=function(A){A=bQ(new th(A));this.xs.eJ(A)};
|
|
g.p.us=function(A){A=OX(A,PaL);this.xs.us(A)};
|
|
g.p.Vg=function(A){A=new th(A);A={videoId:Cz(A,1),formatId:iD(A,2,gN),endTimeMs:lD(A,3),mTr:lD(A,4),mimeType:Cz(A,5),IR:iD(A,6,O11),indexRange:iD(A,7,O11),UF:iD(A,8,Er1)};this.xs.Vg(A)};
|
|
g.p.UQ=function(A){A=new th(A);A={type:lD(A,1),scope:lD(A,2),value:QD(A,3),sendByDefault:mE(A,4),writePolicy:lD(A,5)};this.xs.UQ(A)};
|
|
g.p.hK=function(){this.xs.hK()};
|
|
g.p.xE=function(A){A=vrv(new th(A));this.xs.xE(A)};
|
|
g.p.z7=function(A){A=ub1(new th(A));this.xs.z7(A)};
|
|
g.p.x0=function(A){A=LmQ(new th(A));this.xs.x0(A)};
|
|
g.p.hZ=function(A){A={redirectUrl:Cz(new th(A),1)};this.xs.hZ(A)};
|
|
g.p.ZY=function(A){var L=jU(A,0);if(A.totalLength!==1){A=A.split(1).Mz;var B=this.W[L]||null;B&&A4(this.xs.K8,L,B,A)}};
|
|
g.p.s0=function(A){A=jU(A,0);var L=this.W[A]||null;L&&this.xs.s0(A,L)};
|
|
g.p.MA=function(A){var L=A.TB,B=A.qE,f=A.Uo,K=A.dG,V=A.Gb,J=A.td,R=A.startMs,Z=A.durationMs,N=A.timeRange,F=A.a6,D=A.DI,I=A.clipId,d=nq(A);A=mVt.has(Qu[""+A.itag]);this.W[L]=d;var w=-1;D&&(N==null?0:N.timescale)&&(w=D/N.timescale);this.xs.le(d,A,w,{TB:L,qE:!!B,Uo:f!=null?f:-1,td:J!=null?J:-1,startMs:R!=null?R:-1,durationMs:Z!=null?Z:-1,a6:F,dG:K,Gb:V,clipId:I,timeRange:N})};
|
|
g.p.aF=function(A){A={P6:lD(new th(A),1)};this.xs.aF(A)};
|
|
g.p.z5=function(A){A={P6:lD(new th(A),1)};this.xs.z5(A)};
|
|
g.p.mG=function(A){A=tNe(new th(A));this.xs.mG(A)};
|
|
g.p.Yh=function(A){A={Cd:iD(new th(A),1,nr0)};this.xs.Yh(A)};
|
|
g.p.onSnackbarMessage=function(A){A=lD(new th(A),1);this.xs.onSnackbarMessage(A)};
|
|
g.p.En=function(A){A=new th(A);A={reloadPlaybackParams:iD(A,1,b18),cO:mE(A,2)};this.xs.En(A)};
|
|
g.p.Vk=function(){for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L=L.value,H30(this,L.id,L.data);this.N=[]};g.G(x2,g.Y);g.p=x2.prototype;g.p.Wq=function(){return Array.from(this.EE.keys())};
|
|
g.p.Bg=function(A){A=this.EE.get(A);var L=A.E_;A.eY+=L.totalLength;A.E_=new FK;return L};
|
|
g.p.vV=function(A){return this.EE.get(A).vV};
|
|
g.p.JT=function(A){return this.EE.get(A).JT};
|
|
g.p.le=function(A,L,B){this.EE.get(A)||this.EE.set(A,{E_:new FK,eY:0,bytesReceived:0,qd:0,mN:!1,vV:!1,JT:!1,NF:L,GN:[],Lr:[],Zs:[],PC:!1,f9:new Map,H0:new Map,KZ:[]});L=this.EE.get(A);this.gT?(A=lYk(this,A,B),TRw(this,B.TB,L,A)):(B.qE?L.qd=B.a6:L.Zs.push(B),L.GN.push(B))};
|
|
g.p.PA=function(A){var L;return((L=this.EE.get(A))==null?void 0:L.Lr)||[]};
|
|
g.p.z2=function(){for(var A=g.m(this.EE.values()),L=A.next();!L.done;L=A.next())if(L=L.value,L.mN){if(L.onProgress)L.onProgress();L.mN=!1}};
|
|
g.p.s0=function(A,L){L=this.EE.get(L);eb?L&&!L.vV&&(L.f9.get(A)?L.f9.get(A).YN=!0:L.f9.set(A,{data:new FK,m_:0,YN:!0}),L.JT=!0):L&&!L.JT&&(L.JT=!0)};
|
|
g.p.Ud=function(A){if(eb){var L=this.EE.get(A);if(L)for(var B=g.m(L.f9),f=B.next();!f.done;f=B.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;var V=L.H0.get(f);if(f3(V[0])){if(!K.YN)continue;var J=K.data,R=0,Z=[];V=g.m(V);for(var N=V.next();!N.done;N=V.next()){N=N.value;var F=N.W,D=dZ(J,R,F);R+=F;Z.push(new hL(N,D))}L.KZ.push.apply(L.KZ,g.x7(Z))}else if(K.data.totalLength>0||!V[0].range&&K.YN)J=void 0,R=V[0],Z=K.m_,V=K.data,R.range||(J=K.YN),J=new hL(X$7(R,R.N+Z,V.totalLength,J),V),
|
|
K.m_+=J.info.W,L.KZ.push(J);L.f9.get(f).data=new FK;K.YN&&L.f9.delete(f)}A=this.EE.get(A);if(!A)return[];L=A.KZ;A.KZ=[];B=g.m(L);for(f=B.next();!f.done;f=B.next())A.eY+=f.value.info.W;return L||[]}B=(L=this.EE.get(A))==null?void 0:L.I0;if(!B)return[];this.KX(A,B);return B.Ud()};
|
|
g.p.HA=function(A){if(eb)return a5(this,A);var L,B,f;return!!((B=(L=this.EE.get(A))==null?void 0:L.I0)==null?0:(f=B.Bc())==null?0:f.length)||a5(this,A)};
|
|
g.p.KX=function(A,L){for(;a5(this,A);){var B=this.Bg(A);var f=A;f=this.EE.get(f).vV&&!u$(this,f);l$(L,B,f&&kWS(this,A))}};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);for(var A=g.m(this.EE.keys()),L=A.next();!L.done;L=A.next())nT(this,L.value);var B;if((B=this.Iy)==null?0:B.XT)for(A=g.m(this.EE.values()),L=A.next();!L.done;L=A.next())L=L.value,L.f9.clear(),L.H0.clear(),L.KZ.length=0,L.Lr.length=0,L.GN.length=0,L.Zs.length=0;this.EE.clear()};
|
|
var eb=!1;var LCd=new Set([2]);g.G(L5,g.Y);g.p=L5.prototype;g.p.gK=function(){!this.TL()&&this.xhr&&(this.KX(!1),pi(this.xs,this))};
|
|
g.p.U5=function(){};
|
|
g.p.ZZ=function(){if(!this.TL()&&this.xhr){var A=this.St();A===5?(this.policy.Qu&&this.p8()==="net.badstatus"&&this.xs.jU(),i$(this.RA)):(this.policy.Qu&&this.xs.EX(),this.Y6(A));this.RA.W.stop();var L;(L=this.gY)==null||L.stop()}};
|
|
g.p.St=function(){var A="";XT(this.RA,this.xhr)&&(A=nKC(this.RA,this.xhr));if(A)return this.info.wi.GM(this.Tq,A),3;this.KX(!0);if($2(this.RA,this.xhr.status,this.xhr.Yv(),this.info.kh(),this.EK))return 5;if(this.DX)return 3;egS(this.RA,this.xhr.Q4(),0,this.kh());this.policy.k6&&Cj7(this.xs);return 4};
|
|
g.p.KX=function(A){var L=this.xhr;!A&&XT(this.RA,this.xhr)||!L.Wg()||(A=L.KS(),this.S5.feed(A))};
|
|
g.p.p_=function(A,L){this.xhr.v4()&&A===21&&i36(this);this.Qk.p_(A,L)};
|
|
g.p.Xt=function(A,L,B,f){B||(this.By.Xt(f),this.policy.wJ&&A===21&&i36(this));if(A!==21)return!1;this.By.Wn=!0;A=L.totalLength;B||(this.vH=jU(L,0),L=L.split(1).Mz);var K=this.policy.Kc,V=this.Qk.W[this.vH],J=this.gT.V.get(V);if(K&&J&&(K*=J.info.lC,A+B!==f&&A<K))return!1;A4(this.K8,this.vH,V,L);return!0};
|
|
g.p.xE=function(A){this.xs.xE(A,this.zb())};
|
|
g.p.z7=function(A){if(this.policy.enableServerDrivenRequestCancellation){var L;(L=this.gY)==null||L.dispose();this.Y8=A;A.uN&&(this.gY=new g.aa(this.lJ,A.uN,this));this.lJ()}};
|
|
g.p.lJ=function(){var A;if((A=this.Y8)!=null&&A.items){var L;(L=this.gY)==null||L.start();if(this.By.W>0){this.policy.O_&&this.RA.W.stop();A=this.By.ix();L=this.By.vr();var B=$Py(this,A);if(!(L>B.pm||B.xI>0&&this.info.g8()>B.xI)){this.gE=(0,g.bc)();var f;(f=this.gY)==null||f.stop();this.policy.k6&&(f=this.xs,A={AI:Math.round(L*A/1E3),LS:A},f.policy.k6&&(f.Ys=A,f.O0++));this.oG()}}}};
|
|
g.p.oG=function(){this.RA.oG()};
|
|
g.p.x0=function(A){this.xs.x0(A,this.zb())};
|
|
g.p.hZ=function(A){this.DX=!0;this.info.wi.GM(this.Tq,A.redirectUrl)};
|
|
g.p.aF=function(A){this.By instanceof vO&&this.By.aF(A)};
|
|
g.p.z5=function(A){this.By instanceof vO&&this.By.z5(A)};
|
|
g.p.Vg=function(A){var L=A.formatId,B=nq({itag:L.itag,lmt:L.lmt,xtags:L.xtags}),f,K,V=new as(((f=A.IR)==null?void 0:f.first)||0,((K=A.IR)==null?void 0:K.Yd)||0),J,R;f=new as(((J=A.indexRange)==null?void 0:J.first)||0,((R=A.indexRange)==null?void 0:R.Yd)||0);this.gT.V.get(B)||(B=A.UF||{},B.mimeType=A.mimeType,B.itag=L.itag,B.lastModified=""+(L.lmt||0),B.xtags=L.xtags,A=this.gT,L=qP(""),B=Wp(B,null),OI(A,new i7(L,B,V,f)))};
|
|
g.p.eJ=function(A){this.xs.eJ(A,this.zb())};
|
|
g.p.onSnackbarMessage=function(A){if(this.policy.XN)this.xs.onSnackbarMessage(A)};
|
|
g.p.TW=function(A){this.policy.T&&this.xs.TW(A,this.zb())};
|
|
g.p.UY=function(A){this.M3=A;this.RA.V=(0,g.bc)();this.xs.UY(A)};
|
|
g.p.Cy=function(A,L,B){this.xs.Cy(A,L,B)};
|
|
g.p.UQ=function(A){A.scope===2&&(this.eV=A);this.xs.UQ(A)};
|
|
g.p.hK=function(){this.kO=!0;this.xs.hK()};
|
|
g.p.QO=function(A){this.policy.BI&&this.xs.QO(A)};
|
|
g.p.us=function(A){this.xs.us(A,this.zb())};
|
|
g.p.mG=function(A){A.qn===3&&(this.EK=!0);this.xs.mG(A)};
|
|
g.p.Yh=function(A){this.xs.Yh(A)};
|
|
g.p.En=function(A){this.xs.En(A)};
|
|
g.p.canRetry=function(){this.TL();return this.RA.canRetry(!1)};
|
|
g.p.dispose=function(){if(!this.TL()){g.Y.prototype.dispose.call(this);this.RA.dispose();var A;(A=this.gY)==null||A.dispose();this.Y6(-1);this.zv()}};
|
|
g.p.Y6=function(A){this.state=A;pi(this.xs,this)};
|
|
g.p.kh=function(){return this.info.kh()};
|
|
g.p.qG=function(){return this.kO};
|
|
g.p.OF=function(){return this.eV};
|
|
g.p.le=function(A,L,B,f){this.policy.cI&&this.xs.gS(2,L);B>=0&&this.xs.yl(B);f.clipId&&(this.clipId=f.clipId);this.policy.W&&!L&&(this.tO=f.td);if(this.info.isDecorated()){var K=this.info,V,J;B=((V=K.data)==null?0:(J=V.xX)==null?0:J.Eo)?K.data.xX.Eo:-1;B>=0&&B>f.td&&this.xs.loader.Hn("sdai",{skpsqmismatch:"1",stsq:B,rcvsq:f.td,a:L})}this.K8.le(A,L,f);this.policy.iF&&this.M3&&this.By instanceof GC&&(V=this.M3.YU,this.By.le(f.durationMs/1E3,L,V>0&&f.td+1>=V));this.K8.EE.get(A).PC=!0};
|
|
g.p.s0=function(A,L){this.K8.s0(A,L)};
|
|
g.p.bN=function(A){this.requestIdentifier=A};
|
|
g.p.Ud=function(A){return this.K8.Ud(A)};
|
|
g.p.PA=function(A){return this.K8.PA(A)};
|
|
g.p.HA=function(A){return this.K8.HA(A)};
|
|
g.p.Wq=function(){return this.K8.Wq()};
|
|
g.p.mW=function(){return 1};
|
|
g.p.zb=function(){return this.By.requestNumber};
|
|
g.p.Ko=function(){return this.requestIdentifier};
|
|
g.p.MQ=function(){return this.Tq.MQ()};
|
|
g.p.Ei=function(){this.zv()};
|
|
g.p.zv=function(){this.By.deactivate();var A;(A=this.xhr)==null||A.abort()};
|
|
g.p.isComplete=function(){return this.state>=3};
|
|
g.p.TG=function(){return this.state===3};
|
|
g.p.LQ=function(){return this.state===5};
|
|
g.p.Xw=function(){return this.state===4};
|
|
g.p.Gp=function(){return this.isComplete()};
|
|
g.p.Er=function(){return this.state>=1};
|
|
g.p.K5=function(){return this.policy.N8?this.RA.K5():0};
|
|
g.p.ZK=function(){this.policy.N8&&pi(this.xs,this)};
|
|
g.p.RI=function(){return Xn(this.info)};
|
|
g.p.Vk=function(){this.KE()&&!this.aq&&(this.aq=!0,this.Qk.Vk())};
|
|
g.p.KE=function(){var A,L;var B=(A=this.info.N)==null?void 0:(L=A.No)==null?void 0:L.Ay;return!!B&&LCd.has(B)};
|
|
g.p.GU=function(){return"SABR"};
|
|
g.p.p8=function(){return this.RA.p8()};
|
|
g.p.tj=function(){var A=zg7(this.RA);Object.assign(A,c$w(this.info));A.req="sabr";A.rn=this.zb();var L;if((L=this.xhr)==null?0:L.status)A.rc=this.policy.Ji?this.xhr.status:this.xhr.status.toString();var B;(L=(B=this.xhr)==null?void 0:B.SE())&&(A.msg=L);this.gE&&(B=$Py(this,this.gE-this.By.Me()),A.letm=B.BTr,A.mrbps=B.pm,A.mram=B.xI);return A};O3Q.prototype.tick=function(A,L){this.ticks[A]=L?window.performance.timing.navigationStart+L:(0,g.bc)()};g.G(Bj,g.SN);g.p=Bj.prototype;
|
|
g.p.ww=function(A,L,B,f){var K=!1;this.policy.W&&(K=B?this.Vj===A.XD:this.qp===A.XD);if(this.TV&&f&&!K){f=[];K=[];var V=[],J=void 0,R=0;L&&(f=L.N,K=L.W,V=L.U,J=L.V,R=L.Lx,this.Hn("sdai",{sq:A.XD,ssvicpns:f.join("."),ssvid:K.join(".")}));this.policy.W&&(B?this.Vj=A.XD:this.qp=A.XD);this.TV.Cg(A.XD,A.startTime,f,K,V,B,R,J)}if(this.policy.W){if(B){this.W===1&&K5(this,5,"noad");var Z;A.XD!==((Z=this.N)==null?void 0:Z.XD)&&(UP6(this,A,L,B),isNaN(A.startTime)||Wrk(this,A.XD,RN(this,A.startTime,A.XD),!!L,
|
|
this.TV))}}else B&&UP6(this,A,L)};
|
|
g.p.RB=function(A,L,B){var f=this.videoTrack.b1.index.uq()<=L;this.N={U9:A,XD:L,UK:B};f&&f5(this,A,L)};
|
|
g.p.T3=function(){this.TV&&this.TV.T3()};
|
|
g.p.Hn=function(A,L,B){(A!=="sdai"||this.policy.y8||(B===void 0?0:B))&&this.loader.Hn(A,L)};
|
|
g.p.bF=function(A,L){var B=this.videoTrack.b1.index.NV(A);if(B>=0){var f;var K=((f=L.zX(B,2))==null?void 0:f.c$)||"";if(this.policy.W||K)return L.s5(A,B),Vi(this.loader,A,A,B),this.Hn("sdai",{cmskpad:1,t:A.toFixed(3),sq:B}),!0}this.Hn("sdai",{cmskpad:0,t:A.toFixed(3),sq:B});return!1};g.p=n6k.prototype;g.p.cg=function(A,L,B){var f=A||this.D;this.Hn("clsdai",{setadcfg:A||"misscid",cid:f,acpn:B,acfglen:(L==null?void 0:L.length)||0});this.N.has(f)||(this.Hn("clsdai",{setadcfg:"noentry",cid:f}),this.N.set(f,{event:"unknown",startTimeSecs:0,Dj:0,K2:[],n6:Date.now(),Nu:-1,uW:6}));(A=this.N.get(f))?L?(A.uW=6,A.K2.push(B),A.ul=L):A.uW=2:this.Hn("clsdai",{setadcfg:"notfound",cid:f})};
|
|
g.p.gM=function(A){var L=A||this.D;this.Hn("clsdai",{rmvadcfg:A||"misscid",lastcid:this.D});(A=this.N.get(L))?(A.ul="",A.uW=4):this.Hn("clsdai",{rmadcfg:"notfound",cid:L})};
|
|
g.p.TW=function(A,L,B,f){this.X=L;var K;if(!((((K=A.x5)==null?void 0:K.length)||0)<=0))if(f)this.V=f,this.Hn("clsdai",{oncldisabled:f,rn:L});else for(A=g.m(A.x5),f=A.next();!f.done;f=A.next())if(K=f.value,K.U9){var V=void 0;f=-(((V=K.U9)==null?void 0:V.CP)||0);K.timeRange&&(f+=(K.timeRange.startTicks||0)/(K.timeRange.timescale||1));var J=V=void 0,R=void 0,Z=void 0,N=void 0;f=new Zc(f,((V=K.U9)==null?void 0:V.l2j)||0,((J=K.U9)==null?void 0:J.ya)||"",((R=K.U9)==null?void 0:R.identifier)||"",uVy((Z=
|
|
K.U9)==null?void 0:Z.event),(((N=K.U9)==null?void 0:N.CP)||0)*1E3);V=L;J=K.td||0;R=B;this.N.has(f.identifier)?(K=this.N.get(f.identifier),J>K.Nu&&(K.startTimeSecs=f.startSecs,K.Dj=f.Dj,K.event==="predictStart"&&K.uW===5&&f.event!=="predictStart"&&(K.n6=Date.now()),K.event=f.event)):(K={event:f.event,startTimeSecs:f.startSecs,Dj:f.Dj,K2:[],Nu:J,uW:0},this.N.set(f.identifier,K),this.U&&this.Hn("clsdai",{newcid:1,cid:f.identifier,evt:f.event,sn:J,rn:V,st:aYL(K.uW)}));Z=!1;K.uW===0&&((R==null?0:R.IG(f))?
|
|
K.uW=5:(K.uW=R?11:3,K.ul="",Z=!0),K.n6=Date.now(),K.Nu=J,this.U&&this.Hn("clsdai",{onqpnt:1,cid:f.identifier,evt:f.event,sn:J,rn:V,st:aYL(K.uW)}));J>K.Nu&&(R==null||R.IG(f),K.Nu=J);this.D=f.identifier;this.U&&this.W.add(f.identifier);Z&&(this.T=!0)}};
|
|
g.p.s5=function(A,L,B){var f=A;this.U&&(f+=B);var K,V="";f=zcQ(this,f);f.length>0&&(V=f[0])&&(K=this.N.get(V));if(!K||K.W0){var J;this.Hn("clsdai",{skipadfail:1,cid:V,sn:L,mt:A.toFixed(3),of:B.toFixed(3),skipsq:((J=K)==null?void 0:J.W0)||-1});return!1}this.Hn("clsdai",{skipadsuc:1,cid:V,sn:L,mt:A.toFixed(3),of:B.toFixed(3)});K.W0=L;this.W.clear();this.W.add(V);return!0};
|
|
g.p.hM=function(){this.Hn("clsdai",{rstskipad:1});for(var A=g.m(this.N.values()),L=A.next();!L.done;L=A.next())L.value.W0=NaN};g.G(DU,g.Y);DU.prototype.EU=function(A,L,B){B=B===void 0?{}:B;this.policy.Tb=KM(A,B,this.U,L===void 0?!1:L)};p5.prototype.eg=function(A,L){var B=Math.pow(this.alpha,A);this.N=L*(1-B)+B*this.N;this.W+=A};
|
|
p5.prototype.pw=function(){return this.N/(1-Math.pow(this.alpha,this.W))};jj.prototype.mQ=function(A){var L=this;if(this.policy.Es){var B=new Set(A);B.size===this.wT.size&&[].concat(g.x7(B)).every(function(f){return L.wT.has(f)})||(this.loader.Hn("lwnmow",{itagDenylist:[].concat(g.x7(A)).join(",")}),this.loader.CS(!!B.size),this.yj=-1,this.wT=B,gP(this,this.N),this.Ys=!0)}};
|
|
jj.prototype.EU=function(A,L,B){B=B===void 0?{}:B;var f=this.policy.Tb;this.D.EU(A,L===void 0?!1:L,B);if(f!==this.policy.Tb){gP(this,this.N);GE(this);var K,V;f>this.policy.Tb&&((K=this.V)==null?0:Mb(K.info))&&((V=this.nextVideo)==null||!Mb(V.info))&&(this.Wn=!0)}};var h4={pL:-1,Fu:!1,Ay:0};g.G(bP,g.Y);bP.prototype.l1=function(){this.W=h4;t4(this);g.Y.prototype.l1.call(this)};kU.prototype.j8=function(A){this.timestampOffset=A;this.flush()};
|
|
kU.prototype.flush=function(){if(this.N.pos>0){var A={a:this.track.NF(),u:this.N.PV(),pd:Math.round(this.U),ad:Math.round(this.V)},L=this.W;if(L){var B=L.b1.info;A.itag=B.itag;B.N&&(A.xtags=B.N);A.sq=L.XD;A.st=L.startTime;A.sd=L.duration;this.track.policy.iZ&&(A.si=L.Dx());L.V&&(A.esl=L.N+L.W);L.Ad()&&(A.eos=1)}isNaN(this.timestampOffset)||(A.to=this.timestampOffset);var f;if(L=(f=this.track.uC)==null?void 0:f.Ov({})){for(var K in L)this.T[K]!==L[K]&&(A["sb_"+K]=L[K]);this.T=L}this.track.Hn("sbu",
|
|
A);this.N.reset();this.buffered=[];this.D=this.V=this.U=0;this.timestampOffset=this.W=void 0}};lP.prototype.dispose=function(){this.qp=!0};
|
|
lP.prototype.TL=function(){return this.qp};
|
|
g.G(X0,Error);cj.prototype.skip=function(A){this.offset+=A};
|
|
cj.prototype.vB=function(){return this.offset};g.p=XLv.prototype;g.p.w5=function(){return this.W};
|
|
g.p.vL=function(){return this.W.length?this.W[this.W.length-1]:null};
|
|
g.p.KV=function(){this.W=[];Wj(this);YU(this)};
|
|
g.p.Bg=function(A){this.Ys=this.W.shift().info;A.info.equals(this.Ys)};
|
|
g.p.PA=function(){return g.mn(this.W,function(A){return A.info})};
|
|
g.p.NF=function(){return!!this.b1.info.audio};
|
|
g.p.isDrm=function(){return!!this.b1.info.Zj};
|
|
g.p.getDuration=function(){return this.b1.index.ag()};g.G(fT,b$);g.p=fT.prototype;g.p.onStateChange=function(){this.TL()&&(zC(this.K8,this.formatId),this.N.dispose())};
|
|
g.p.tj=function(){var A=tlS(this.K8,this.formatId),L;var B=((L=this.K8.EE.get(this.formatId))==null?void 0:L.bytesReceived)||0;var f;L=((f=this.K8.EE.get(this.formatId))==null?void 0:f.eY)||0;return{expected:A,received:B,bytesShifted:L,sliceLength:u$(this.K8,this.formatId),isAnyMediaEndReceived:this.K8.JT(this.formatId)}};
|
|
g.p.OL=function(){return 0};
|
|
g.p.nZ=function(){return!0};
|
|
g.p.Ud=function(){return this.K8.Ud(this.formatId)};
|
|
g.p.Bc=function(){return[]};
|
|
g.p.HA=function(){return this.K8.HA(this.formatId)};
|
|
g.p.p8=function(){return this.lastError};
|
|
g.p.K5=function(){return 0};g.G(xU,g.Y);g.p=xU.prototype;g.p.NF=function(){return!!this.b1.info.audio};
|
|
g.p.vL=function(){return this.V.vL()};
|
|
g.p.Bg=function(A){this.V.Bg(A);var L;(L=this.X)!=null&&(L.D.add(A.info.XD),L.N=Ic1(L,L.VK,L.yr,A,L.N),L.V=A,L.T=(0,g.bc)());this.lC=Math.max(this.lC,A.info.b1.info.lC||0)};
|
|
g.p.getDuration=function(){return this.b1.index.ag()};
|
|
g.p.KV=function(){Va(this);this.V.KV()};
|
|
g.p.sF=function(){return this.V};
|
|
g.p.qy=function(A){return this.uC?aT(this.uC.Hk(),A):!0};
|
|
g.p.isRequestPending=function(A){return this.W.length?A===this.W[this.W.length-1].info.Lr[0].XD:!1};
|
|
g.p.j8=function(A){var L;(L=this.X)==null||L.j8(A);var B;(B=this.G)==null||B.j8(A)};
|
|
g.p.Hn=function(A,L){this.loader.Hn(A,L)};
|
|
g.p.G_=function(){return this.loader.G_()};
|
|
g.p.dispose=function(){var A;(A=this.G)==null||A.flush();g.Y.prototype.dispose.call(this)};g.G(y1,g.Y);y1.prototype.V=function(){this.W++>15||(this.N=!this.N,new gcw(this.loader,this.policy,this.Ml,this.wi,this.N),this.delay.start())};
|
|
g.p=gcw.prototype;g.p.U5=function(){};
|
|
g.p.gK=function(){};
|
|
g.p.ZZ=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Q4()===this.size)this.loader.Hn("rqs",this.getInfo());else{var A="net.connect";this.xhr.status>200?A="net.badstatus":this.xhr.R5()&&(A="net.closed");this.onError(A)}};
|
|
g.p.onError=function(A){var L=this;this.loader.handleError(A,this.getInfo());x5("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(B){L.loader.Hn("pathprobe",B)},function(B){L.loader.handleError(B.errorCode,B.details)})};
|
|
g.p.getInfo=function(){var A=this.timing.Rg();A.shost=wy(22,this.location.QN);A.pb=this.size;return A};g.G(gv,g.Y);
|
|
gv.prototype.T=function(A,L){if(A.T){this.gT.isLive?(A=this.gT.F3&&this.gT.U?A.b1.D_(this.gT.F3,!1):A.b1.tq(Infinity),A.FH=this.FH):A=A.b1.D_(0,!1);if(this.yj){var B=this.yj;A.FH===0&&(A.D=B.G)}else A.D=this.G;return A}B=A.N;if(!B.b1.w1())return B.b1.BB()?(A=af(this.U,A.b1.info.lC,L.b1.info.lC,0),A=B.b1.X0(B,A)):A=B.b1.nx(B),A;var f=B.D-this.loader.getCurrentTime(),K=!B.range||B.W===0&&B.N===0?0:B.range.length-(B.N+B.W),V=B.b1;this.cM(A,f)&&K===0&&(this.gT.isManifestless?V=A.b1:(V=B.startTime+V3e,
|
|
B.W&&(V+=B.duration),R5(A,V),B=A.N,V=B.b1));V.BB()?(K=this.W,L=af(this.U,V.info.lC,L.b1.info.lC,f,K.U.length>0&&K.G===0&&this.loader.Vb),f=Zz(A),A=B.b1.X0(B,L),(L=A.V)&&A.Lr.length>1&&(f||A.wi.V||A.Lr[0].b1!==B.b1?A=B.b1.X0(B,A.Lr[0].W):(f=A.Lr[A.Lr.length-1],V=f.W/L,!f.V&&V<.4&&(A=B.b1.X0(B,L-f.W))))):(B.XD<0&&(L=Sl(B),L.pr=""+A.W.length,this.loader.isSeeking()&&(L.sk="1"),L.snss=B.T,this.loader.Hn("nosq",L)),A=V.nx(B));if(this.policy.JF)for(B=g.m(A.Lr),L=B.next();!L.done;L=B.next())L.value.type=
|
|
6;return A};
|
|
gv.prototype.cM=function(A,L){if(!Zz(A)||!A.b1.w1())return!1;var B;(B=this.W.Ys)||(B=Zz(A)&&A.b1.w1()&&A.N.b1.info.lC<A.b1.info.lC);return B||L<=this.policy.Ec||this.W.Wn};
|
|
gv.prototype.l1=function(){g.Y.prototype.l1.call(this)};
|
|
var V3e=2/24;g.G(Q1,g.Y);Q1.prototype.VP=function(A,L,B){var f;if(((f=this.W)==null?void 0:f.reason)==="m")f="m";else{var K;f=((K=this.W)==null?void 0:K.reason)==="s"?"s":this.W&&QoQ(this,this.W)?this.W.reason:"a"}this.loader.VP(new F0(A,f,B));bR(this.loader,L,A,!0)};
|
|
Q1.prototype.R2=function(A,L){for(var B=g.m(this.wT),f=B.next();!f.done;f=B.next())if(f.value.id===A)return this.D=this.gT.N[A],Y2(this.Iy)&&(this.qp=!0),A=new F0(this.D,L?"t":"m"),L&&(this.X=!0),A;this.V=[];return null};
|
|
Q1.prototype.EU=function(A,L,B){B=B===void 0?{}:B;this.N.EU(A,L===void 0?!1:L,B)};$q.prototype.setData=function(A,L,B){var f=this;B=B===void 0?{}:B;if(L==null?0:L.jI)this.Tc=C7Q(this,L,B),A.Cn=this.wi.Cn();if(this.kh())return!0;this.data=A;this.N=Oo0(A,function(K,V){var J;(J=f.xs)==null||J.Xr(K,V)},L==null?void 0:L.V,L==null?void 0:L.T);
|
|
if(!this.N)return!1;this.W=g.qA(this.N,lE8);return!0};
|
|
$q.prototype.kh=function(){return this.requestType===1};
|
|
$q.prototype.g8=function(){var A;return((A=this.xs)==null?void 0:A.g8())||0};
|
|
$q.prototype.isDecorated=function(){var A,L,B;return!!(((A=this.data)==null?0:A.xX)||((L=this.data)==null?0:(B=L.zJ)==null?0:B.length))};Eh.prototype.encrypt=function(A){(0,g.bc)();return this.N.N?cl(this,A,this.iv):(new g.S8(this.N.W)).encrypt(A,this.iv)};
|
|
Eh.prototype.decrypt=function(A,L){(0,g.bc)();return this.N.N?cl(this,A,L):(new g.S8(this.N.W)).decrypt(A,L)};g.G(Mq,g.Y);Mq.prototype.V=function(A,L){if(L){L=L instanceof g.Fk?L:Yq(this,L);var B;((B=this.N.get(A))==null?void 0:wy(17,B.location))!==wy(23,L)&&this.N.set(A,new nce(L,A))}else this.N.delete(A)};
|
|
Mq.prototype.load=function(){var A=this,L,B,f,K,V,J,R,Z,N,F;return g.c(function(D){switch(D.N){case 1:L=A.N.get(0);g.S5(D,2);var I;if(I=L&&!A.W)I=wy(22,L.location),I=A.W===CT(I);if(I){D.Ux(4);break}return g.X(D,Wl(A,A.W?2:0),5);case 5:if(B=D.W)A.V(0,B),Kw(7,B)&&A.V(1,J1(52,B));case 4:g.ZR(D,3);break;case 2:f=g.NX(D);g.CE(f);if(!A.W){D.Ux(3);break}A.W=!1;return g.X(D,A.load(),7);case 7:return D.return();case 3:if(!A.L.experiments.GL("html5_onesie_probe_ec_hosts")){D.Ux(0);break}g.S5(D,9);K=A;V=K.V;
|
|
J=3;return g.X(D,Wl(A,1),11);case 11:return V.call(K,J,D.W),R=A,Z=R.V,N=4,g.X(D,Wl(A,2),12);case 12:Z.call(R,N,D.W);g.ZR(D,0);break;case 9:F=g.NX(D),g.CE(F),g.VK(D)}})};
|
|
Mq.prototype.X=function(){var A=this,L,B;return g.c(function(f){g.Az(A.G);L=g.Am(A.L.experiments,"html5_onesie_prewarm_max_lact_ms");if(rT()>=L)return f.return();(B=A.N.get(0))&&xg6(A,B);g.VK(f)})};
|
|
var qeC={uer:0,nEx:1,tJ4:2,z8s:3,hXx:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};vl.prototype.decrypt=function(A){var L=this,B,f,K,V,J,R;return g.c(function(Z){switch(Z.N){case 1:if(L.N.length&&!L.N[0].isEncrypted)return Z.return();L.W=!0;L.N7.S$("omd_s");B=new Uint8Array(16);VS()?f=new g.Rd(A):K=new g.S8(A);case 2:if(!L.N.length||!L.N[0].isEncrypted){Z.Ux(4);break}V=L.N.shift();if(!f){J=K.decrypt(pz(V.buffer),B);Z.Ux(5);break}return g.X(Z,f.decrypt(pz(V.buffer),B),6);case 6:J=Z.W;case 5:R=J;for(var N=0;N<B.length;N++)if(B[N]===255)B[N]=0;else{B[N]+=1;break}N=L.N7;var F=V.videoId,
|
|
D=V.TB,I=V.formatId,d=new FK([R]),w;(w=qq(N.xs,F))==null||A4(w,D,I,d);Z.Ux(2);break;case 4:L.N7.S$("omd_c"),Pl(L),L.W=!1,L.N7.DY(),g.VK(Z)}})};
|
|
vl.prototype.enqueue=function(A,L,B,f,K){this.N.push({videoId:A,TB:L,formatId:B,buffer:f,isEncrypted:K});this.W||Pl(this)};var oTe=!!Uint8Array.prototype.copyWithin,xq=[],e2=[],u1y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],zm=[],n6=[],aP=[],uR=[];var Bpw="DecompressionStream"in window;g.G(Bm,qI);g.p=Bm.prototype;g.p.DY=function(){this.xs.DY()};
|
|
g.p.qA=function(A,L){switch(A){case 10:var B=OX(L,YW0);A=B.l0D;var f=!1;switch(A){case 0:this.U=!B.hQ.pn1;this.iv=B.hQ.iv;break;case 2:break;case 23:var K=this.xs;B=B.iYn;K.S$("omp_r");B.videoId&&(K.Zp=B.videoId);K.Zp!==K.videoData.videoId&&(K.videoData.kI=K.Zp,K.Hn("ompp","vid."+K.Zp));K.zA=!0;break;case 24:B=this.xs;B.S$("omp_c");B.zA=!1;B.zr=!1;var V=(K=B.HV)==null?void 0:K.get(B.Zp);B.notifySubscribers(B.Zp);V!=null&&(V.N=!0);Ki(B);break;default:f=!0}this.xs.oU&&this.xs.Hn("ombup","id.10;pt."+
|
|
A+";len."+L.totalLength+(f?";ignored.1":""));this.V=A;break;case 11:KX6(this,L);break;case 12:this.ZY(L,!0);break;case 37:L=OX(L,UtQ);(L.Mc||L.IL)&&L.videoId&&this.xs.vv.set(L.videoId,L);break;case 60:this.Fx(L);break;case 47:this.J("html5_server_playback_start_policy")&&(L=OX(L,PaL),this.xs.playbackStartPolicy=L);break;case 35:this.xE(L);break;case 45:this.eJ(L);break;case 66:this.Yh(L);break;default:this.xs.oU&&this.xs.Hn("ombup","id."+A+";len."+L.totalLength+";ignored.1")}};
|
|
g.p.Fx=function(A){A=OX(A,hT);this.xs.Fx(A)};
|
|
g.p.eJ=function(A){A=OX(A,bQ);this.xs.eJ(A)};
|
|
g.p.MA=function(A){var L=A.TB,B=A.qE,f=A.Uo,K=A.Gb,V=A.td,J=A.startMs,R=A.durationMs,Z=A.timeRange,N=A.a6,F=nq(A),D=mVt.has(Qu[""+A.itag]);B&&this.S$(D?"oais_r":"ovis_r");var I=this.N[F]!==void 0;this.xs.oU&&this.xs.Hn("ombup","id.20;hid."+L+";fid."+F);var d=A.videoId||"";this.W[L]=F;this.D[L]=d;I||(this.N[F]={videoId:d,xF:!1,NF:D,headers:[]});this.N[F].headers.push(A);this.xs.le(d,F,D,{TB:L,qE:!!B,Uo:f!=null?f:-1,td:V!=null?V:-1,startMs:J!=null?J:-1,durationMs:R!=null?R:-1,a6:N!=null?N:0,Gb:K,timeRange:Z})};
|
|
g.p.ZY=function(A,L){var B=jU(A,0);this.xs.oU&&this.xs.Hn("ombup","id."+(L?12:21)+";len."+A.totalLength+";hid."+B);if(A.totalLength!==1){A=A.split(1).Mz;var f=this.W[B]||null,K=this.D[B]||"";f&&(this.Nq(this.N[f].NF?"oafs_r":"ovfs_r"),this.queue.enqueue(K,B,f,A,L))}};
|
|
g.p.s0=function(A){var L=jU(A,0);this.xs.oU&&this.xs.Hn("ombup","id.22;len."+A.totalLength+";hid."+L);A=this.W[L]||null;var B=this.D[L]||"";if(A)if(this.J("html5_use_ump_request_slicer")){var f=this.queue;f.N.push({videoId:B,TB:L,formatId:A,isEncrypted:!1,HJ:!0});f.W||Pl(f)}else this.xs.s0(B,L,A)};
|
|
g.p.iV=function(A,L){var B=this,f,K,V,J,R,Z,N;return g.c(function(F){switch(F.N){case 1:B.xs.iV();f=pz(A);if(!L){V=f;F.Ux(2);break}return g.X(F,wKe(B.xs,f,B.iv),3);case 3:V=F.W;case 2:K=V;if(!B.xs.enableCompression){F.Ux(4);break}return g.X(F,VC7(B,K),5);case 5:K=F.W;case 4:try{J=OX(K,hZy)}catch(I){return R=I instanceof Error?{name:I.name,message:I.message}:{},R.webcrypto=""+ +!!VS(),R.enc=""+ +B.U,Z=new g.K$("onesie.response.parse",R),F.return(Promise.reject(Z))}var D=J;if(D.SQ!==1)throw new g.K$("onesie.response.badproxystatus",
|
|
{st:D.SQ,webcrypto:!!VS(),textencoder:!!g.rI.TextEncoder});if(D.httpStatus!==200)throw new g.K$("onesie.response.badstatus",{st:D.httpStatus});N=g.sX(J.body);return F.return(N)}})};
|
|
g.p.xE=function(A){this.J("html5_consume_onesie_next_request_policy_for_sabr")&&(A=OX(A,vrv),this.xs.xE(A))};
|
|
g.p.Yh=function(A){A={Cd:iD(new th(A),1,nr0)};this.xs.Yh(A)};
|
|
g.p.S$=function(A){this.xs.S$(A)};
|
|
g.p.Nq=function(A){return this.xs.Nq(A)};
|
|
g.p.J=function(A){return this.xs.J(A)};g.G(Sn,g.Y);g.p=Sn.prototype;g.p.Wq=function(A){var L,B;return((B=(L=this.HV)==null?void 0:L.get(A))==null?void 0:B.Wq())||[]};
|
|
g.p.HA=function(A,L){var B;return!((B=qq(this,L))==null||!B.HA(A))};
|
|
g.p.Ud=function(A,L){var B;return((B=qq(this,L))==null?void 0:B.Ud(A))||[]};
|
|
g.p.PA=function(A,L){var B;return((B=qq(this,L))==null?void 0:B.PA(A))||[]};
|
|
g.p.Y6=function(A){this.state=A;this.notifySubscribers()};
|
|
g.p.kh=function(){return!1};
|
|
g.p.qG=function(){return!1};
|
|
g.p.OF=function(){};
|
|
g.p.S$=function(A){this.Np.S$(A)};
|
|
g.p.Nq=function(A){return this.Np.Nq(A)};
|
|
g.p.Xt=function(A,L,B,f){B||this.By.Xt(f);return!1};
|
|
g.p.p_=function(A,L){this.N7.p_(A,L)};
|
|
g.p.lV=function(){this.S$("orfb");this.tH=!0;if(pKy(this)&&this.xhr){var A={rc:this.xhr.status,lb:this.xhr.Q4(),rt:(1E3*$j6(this.By)).toFixed(),shost:g.tW(this.eU),trigger:"o1"};this.Hn("pathprobe",f$(A))}};
|
|
g.p.iV=function(){this.S$("opr_r");this.vU=!0};
|
|
g.p.le=function(A,L,B,f){this.L.Qf().N.Iv(dv)&&this.videoData.gS(1,B);if(this.HV){if(!this.HV.has(A)){var K=new x2(this);this.HV.set(A,K);g.W(this,K)}var V;(V=this.HV.get(A))==null||V.le(L,B,f);Ki(this);B||(this.tO=f.td)}else Ki(this)};
|
|
g.p.UY=function(A){this.Kp=A;A.TO!=null&&this.Np.nS(A.TO)};
|
|
g.p.Fx=function(A){this.ZO=A};
|
|
g.p.xE=function(A){A.videoId&&this.iJ.set(A.videoId,A)};
|
|
g.p.DY=function(){if(this.HV)for(var A=g.m(this.HV.keys()),L=A.next();!L.done;L=A.next()){var B=void 0;(B=this.HV.get(L.value))==null||B.z2()}};
|
|
g.p.eJ=function(A){this.JQ=A};
|
|
g.p.Yh=function(A){if(A==null?0:A.Cd)if(A=A.Cd.Qw){A=g.m(A);for(var L=A.next();!L.done;L=A.next())L=L.value,L.videoId&&this.FJ.set(L.videoId,L)}};
|
|
g.p.TW=function(A){this.C6.push(A)};
|
|
g.p.Hn=function(A,L,B){this.Np.Hn(A,L,B===void 0?!1:B)};
|
|
g.p.s0=function(A,L,B){var f;(f=qq(this,A))==null||f.s0(L,B)};
|
|
g.p.bN=function(A){this.I2.set(A.videoId,A)};
|
|
g.p.fetch=function(){var A=this,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0,B6,Ve,DS,fw,ry,uL,Jf,MC,nw;return g.c(function(Xk){switch(Xk.N){case 1:A.Y$?A.FX.start():A.G5.start();A.S$("or_i");B=(L=A.L.experiments.GL("html5_onesie_verbose_timing")||A.L.Qf().N.Iv(p6w))?A.S$.bind(A):function(){};
|
|
B("oloc_ss");if(f=Srv(A.videoData,A.pj)){Xk.Ux(2);break}B("oloc_sa");K=g.Am(A.L.experiments,"html5_onesie_redirector_timeout_ms");return g.X(Xk,Ry1(A.videoData,A.pj,K),3);case 3:f=Xk.W;case 2:if(!f)return V={url:"0"},J=new g.K$("onesie.unavailable.hotconfig",V),A.fail(J),Xk.return(A.lD);A.Tc=wy(18,f);B("oloc_e");R=g.po(A.L,g.Aj(A.videoData));Z=!!R.N;if(!Z){N=R.getValue();Xk.Ux(4);break}return g.X(Xk,R.N,5);case 5:N=Xk.W;case 4:F=N;A.J("html5_log_onesie_empty_oauth")&&!F&&A.Hn("no_token",{async:Z});
|
|
D=Npe(A.playerRequest,A.L,A.videoData,F,CT(A.Tc));g.S5(Xk,6);!A.L.GZ||(d=A.L.GZ)!=null&&d.N||(w=D)!=null&&w.oM||(B("orqb_w"),(I=dGw(D,A.Ky,A.L,A.Np,A.Ml,A.f6.onesieUstreamerConfig,(r=A.videoData.jF)==null?void 0:r.xC,A.J("onesie_cdm_mosaic_send_audio_tracks_from_client")?(h=A.playerRequest.playbackContext)==null?void 0:(Q=h.contentPlaybackContext)==null?void 0:(l=Q.compositeVideoContext)==null?void 0:l.defaultActiveSourceVideoId:void 0))&&A.Hn("orpqenc",{i:"w"}));if(I){Xk.Ux(8);break}if(!IQS(A,D)){B("orqb_s");
|
|
I=FX7(D,A.Ky,A.L,A.Np,A.Ml,A.f6.onesieUstreamerConfig,(C=A.videoData.jF)==null?void 0:C.xC,A.J("onesie_cdm_mosaic_send_audio_tracks_from_client")?(O=A.playerRequest.playbackContext)==null?void 0:(v=O.contentPlaybackContext)==null?void 0:(U=v.compositeVideoContext)==null?void 0:U.defaultActiveSourceVideoId:void 0);A.Hn("orpqenc",{i:"j"});Xk.Ux(8);break}B("orqb_a");return g.X(Xk,DGv(D,A.Ky,A.L,A.Np,A.Ml,A.f6.onesieUstreamerConfig,(a=A.videoData.jF)==null?void 0:a.xC,A.J("onesie_cdm_mosaic_send_audio_tracks_from_client")?
|
|
(o0=A.playerRequest.playbackContext)==null?void 0:(B6=o0.contentPlaybackContext)==null?void 0:(Ve=B6.compositeVideoContext)==null?void 0:Ve.defaultActiveSourceVideoId:void 0),10);case 10:I=Xk.W,A.Hn("orpqenc",{i:"a"});case 8:g.ZR(Xk,7);break;case 6:return DS=g.NX(Xk),A.fail(DS),Xk.return(A.lD);case 7:return B("orqb_e"),A.enableCompression=I.innertubeRequest.Ti,A.kt=((fw=I)==null?void 0:(ry=fw.No)==null?void 0:ry.q1)||0,A.S$("osor"),uL=I_D(),Jf=g.qA(I,JrD),MC={method:"POST",body:Jf,headers:{"Content-Type":"text/plain",
|
|
Referer:location.origin}},nw=A.J("html5_onesie_media_capabilities"),Zrv(f,A.videoData,jq6(A),nw),A.oU&&A.Hn("ombrs","1"),A.By=new GC(A,{Ml:A.Ml,L6:A.oU,YD:function(e5,mt){A.Np.MX(e5,mt)},
|
|
xm:!0}),f.set("rn",""+A.By.requestNumber),A.eU=f.MQ(),gM(A.By,A.eU),A.S$("or_p"),A.xhr=k2(new cq(f),uL,A.By,Km,MC),A.Re.start(),A.Np.onPlayerRequestSent(A.videoData.videoId),Xk.return(A.lD)}})};
|
|
g.p.mW=function(){return 2};
|
|
g.p.U5=function(){this.S$("orh_r")};
|
|
g.p.gK=function(){!this.tH&&this.xhr.Q4()&&this.lV();if(this.yZ&&!this.Y$){var A;(A=this.TE)==null||A.start()}this.KX()};
|
|
g.p.ZZ=function(A){A=A===void 0?!1:A;this.KX();if(!(this.TL()||this.state>=4)){var L=JB(this),B=this.xhr;L.rc=B.status;A&&(L.ab=!0);if(B.SE()){var f="onesie.net";L.msg=B.SE()}else B.status>=400?f="onesie.net.badstatus":B.Yv()?this.vU||(f="onesie.response.noplayerresponse"):f=B.status===204?"onesie.net.nocontent":"onesie.net.connect";f?this.fail(new g.K$(f,L)):(this.S$("or_fs"),this.By.aT((0,g.bc)(),B.Q4(),0),this.Y6(4),this.oU&&this.Hn("rqs",L));this.oU&&this.Hn("ombre","ok."+ +!f);this.zr=!1;Ki(this);
|
|
fi(this.N7);if(!this.Y$){this.G5.stop();var K;(K=this.TE)==null||K.stop()}var V;if(A=(V=this.pj)==null?void 0:eOy(V))for(V=0;V<A.length;V++)this.Hn("pathprobe",A[V])}};
|
|
g.p.Ei=function(){if(this.playerResponse&&this.xhr&&this.HV)for(var A=g.m(this.HV.entries()),L=A.next();!L.done;L=A.next())if(L=g.m(L.value),L.next(),L.next().value.W){this.xhr.abort();this.ZZ(!0);break}};
|
|
g.p.K=function(){return this.L};
|
|
g.p.J=function(A){return this.L.J(A)};
|
|
g.p.Tis=function(){if(pKy(this)&&this.pj&&(!this.tH||this.J("html5_onesie_probe_ec_hosts"))){var A=this.pj;if(A.L.experiments.GL("html5_onesie_probe_ec_hosts")){var L,B=(L=A.N.get(3))==null?void 0:wy(19,L.location);B&&Uh(A,B,"osc",this);var f;(B=(f=A.N.get(4))==null?void 0:wy(22,f.location))&&Uh(A,B,"ocy",this)}else{var K;(f=(K=A.N.get(1))==null?void 0:wy(21,K.location))&&Uh(A,f,"o2",this);(f=(B=A.N.get(2))==null?void 0:wy(23,B.location))&&Uh(A,f,"o3",this)}}};
|
|
g.p.E4=function(){if(!this.TL()&&!this.isComplete()){if(this.yZ){if((0,g.bc)()-this.By.X>1E3){var A;(A=this.By)==null||A.Lm((0,g.bc)());A=JB(this);if(this.L.hw()&&this.xhr instanceof ti){var L=this.xhr;A.xrs=L.xhr.readyState;A.xpb=L.N.totalLength;A.xdc=L.U}this.fail(new g.K$("net.timeout",A))}}else(0,g.bc)()-this.By.N>1E4&&((L=this.By)==null||L.Lm((0,g.bc)()),this.Mk());this.isComplete()||this.FX.start()}};
|
|
g.p.Mk=function(){this.zr=!1;if(!Ki(this)){var A=JB(this);A.timeout="1";this.fail(new g.K$("onesie.request",A))}};
|
|
g.p.fail=function(A){var L=this;A=JT(A);this.yZ?this.Np.Ho(A):(this.lD.reject(A),this.yZ=!0);fi(this.N7);this.Y$||this.G5.stop();this.S$("or_fe");var B,f;(B=this.pj)==null||(f=eOy(B))==null||f.forEach(function(K){L.Hn("pathprobe",K)});
|
|
this.Y6(5);this.dispose()};
|
|
g.p.isComplete=function(){return this.state>=3};
|
|
g.p.Xw=function(){return this.state===4};
|
|
g.p.Gp=function(A){var L,B;return this.isComplete()||!!((L=this.HV)==null?0:(B=L.get(A))==null?0:B.N)};
|
|
g.p.TG=function(){return!1};
|
|
g.p.LQ=function(){return this.state===5};
|
|
g.p.notifySubscribers=function(A){for(var L=0;L<this.U1.length;L++)A&&this.U1[L].TP()!==A||pi(this.U1[L],this)};
|
|
g.p.RI=function(){return this.kt};
|
|
g.p.l1=function(){this.playerResponse="";var A;(A=this.xhr)==null||A.abort();fi(this.N7);this.S5.dispose();var L;(L=this.TE)==null||L.dispose();this.Y6(-1);this.U1=[];this.C6=[];g.Y.prototype.l1.call(this)};
|
|
g.p.KX=function(){try{var A=this.xhr;A.Q4()>102400&&!this.wx&&(this.S$("or100k"),this.wx=!0);if(A.Wg()){var L=A.KS(),B=L.totalLength;this.oU&&this.Hn("ombrss","len."+B);this.S5.feed(L)}if(this.HV)for(var f=g.m(this.HV.keys()),K=f.next();!K.done;K=f.next()){var V=K.value;A=void 0;(A=this.HV.get(V))==null||A.z2();this.notifySubscribers(V)}}catch(J){this.fail(J)}};
|
|
g.p.zb=function(){return this.By.requestNumber};
|
|
g.p.Ko=function(A){return this.I2.get(A)};
|
|
g.p.KE=function(){return!1};
|
|
g.p.GU=function(){return"ONESIE"};g.G(RS,g.Y);g.p=RS.prototype;
|
|
g.p.NG=function(A){var L=Pm(this.loader)&&A&&A.pL!==void 0&&!A.Fu?A.pL*1E3+(this.loader.pY()||0):Zj(this);if(this.policy.Bk){var B=this.wT;var f=this.JF}else B=dg(this,this.audioTrack),f=dg(this,this.videoTrack);var K=[].concat(g.x7(B.VK),g.x7(f.VK));N8(this)&&K.push.apply(K,g.x7(this.D));var V=[].concat(g.x7(B.lM),g.x7(f.lM)),J=this.loader.sb();if(this.policy.Mb&&!this.videoData.isLivePlayback){var R=this.videoData.lengthSeconds*1E3;L>=R&&this.loader.Hn("invalidSabrCmt",{cmt:L,vd:R})}var Z,N;R=this.Ml;
|
|
var F=this.Np,D=this.gT,I=this.V,d=this.videoData.S4,w=this.policy,r=this.loader.DU,h=bok(this.loader)*1E3,Q=(Z=this.Ys)==null?void 0:Z.AI;Z=(N=this.Ys)==null?void 0:N.LS;var l;N=Number((l=this.W.U)==null?void 0:l.info.itag)||0;var C;l=Number((C=this.W.D)==null?void 0:C.info.itag)||0;C=this.O0;var O=this.Np.XJ();var v=(A==null?0:A.Ay)?A.Ay:this.loader.isSuspended?4:void 0;L={Ml:R,Np:F,gT:D,VK:K,lM:V,ut:L,nextRequestPolicy:I,ES:d,Iy:w,JH:r,Pa:h,AI:Q,LS:Z,O0:C,Ni4:N,P11:l,K_:J,oo:O,Ay:v};K=this.loader.BA();
|
|
V=$i(K);K&&(L.Ih=V);if(A=Pm(this.loader)&&(A==null?0:A.Fu)?A.pL:this.Np.kA())L.PL=A*1E3;var U;A=this.W;K=A.qp;if(((U=A.Iy)==null?0:Y2(U))&&!K)for(U=g.m(A.V),V=U.next();!V.done;V=U.next())if(V.value.ri){K=!0;break}U=Y2(A.Iy)&&!K?[]:l_6(A,A.V);L.xe=U;U=this.W;Y2(U.Iy)&&!U.Vj?U=[]:(A=$g0(U),A.length===0&&(A=U.T),U=l_6(U,A));L.pK=U;L.uE=N8(this)?[this.T]:void 0;this.policy.GR&&(L.F6=o5D(this.loader,this.audioTrack),L.Un=o5D(this.loader,this.videoTrack));U=this.loader.getCurrentTime();B=Dj(this,B.VK,U);
|
|
f=Dj(this,f.VK,U);this.S4=f=Math.min(B,f);if(this.policy.W&&(N8(this)&&(B=Dj(this,this.D,U),this.Np.hw()&&B<f&&this.loader.Hn("sabrcfb",{met:f,cet:B,cbrl:this.D.length}),f=Math.min(f,B)),!this.policy.T)){if((B=this.TV)==null)var a=void 0;else{U=f;b:{if(!(B.fX||(A=J4(B,U),B.playback.getVideoData().aA()&&(A==null?0:A.jN))))break b;A=void 0}(V=A)?(A=V.L9,K=Aow(B,V.ssdaiAdsConfig),V=V.Xe&&V.jf&&U>=V.jf?V.Xe:void 0,K={Ka:A?LJQ(B,A):[],adsConfig:K,Eo:V},U={gvprpro:"v",mt:U.toFixed(3),acpns:((a=K.Ka)==null?
|
|
void 0:a.join("_"))||"none",abid:A},B.Xr(U),a=K):(B.Xr({gvprp:"ncp",mt:U}),a=null)}a&&(L.xX=a)}if(this.policy.T){var o0;a=((o0=this.videoData.W)==null?void 0:o0.containerType)||0;o0=this.videoData.rg[a];B=this.loader.isSeeking()&&!this.loader.tU?f+this.loader.pY():NaN;if((a=this.G)==null)o0=void 0;else if(a.V!==0){a.Hn("clsdai",{gssinfodisabled:a.V});o0=7;switch(a.V){case 1:o0=7;break;case 2:o0=9;break;case 3:o0=10;break;default:a.Hn("clsdai",{unknowndisr:a.V})}o0=[{uW:o0}]}else{f=[];if(!isNaN(B))if(U=
|
|
zcQ(a,B),A=a.X+1,U.length>0)for(a.Hn("clsdai",{updcids:1,mt:B.toFixed(3),cid:U.join(","),rn:A}),a.W.clear(),B=g.m(U),U=B.next();!U.done;U=B.next())a.W.add(U.value);else a.G&&(a.Hn("clsdai",{updcids:0,mt:B.toFixed(3),rn:A}),a.W.clear());B=g.m(a.W);for(A=B.next();!A.done;A=B.next()){U=a;if(A=A.value){U=U.N.get(A);A={cuepointId:A};if(U==null?0:U.ul)A.adsConfig=$i(U.ul)||void 0;if(U==null?0:U.K2)A.Ka=U.K2;if(U==null?0:U.W0)A.Eo=U.W0;o0&&(A.LA=na(o0.split(";")[0]),A.du=o0.split(";")[1]||"");A.uW=(U==null?
|
|
void 0:U.uW)||0;U=A}else U=void 0;U&&f.push(U)}o0=f}L.zJ=o0;(o0=this.G)!=null&&(o0.W.clear(),o0.V=0,o0.T=!1)}this.policy.Wn&&this.N.length>0&&this.N[0].qG()&&(L.rE=this.N[0].OF());return L};
|
|
g.p.BL=function(A,L){this.X=void 0;Cj7(this);QqQ(this,A,L)};
|
|
g.p.G6=function(A){if(this.N.length===0)return!1;var L=this.N[0];return L instanceof Sn?A===this.loader.getCurrentTime()*1E3:!(L instanceof L5&&Oh(L.info))&&Math.abs(L.RI()-A)<50};
|
|
g.p.xE=function(A,L){this.V=A;this.policy.W&&!A.playbackCookie&&this.loader.Hn("sbrnocookie",{rn:L!=null?L:-1});var B;if(this.policy.GLr&&((B=this.G)==null?0:B.T)){var f;this.loader.Hn("clsdai",{ignbckoff:L!=null?L:-1,backoff:(f=A.backoffTimeMs)!=null?f:-1})}else this.X=(0,g.bc)()+(A.backoffTimeMs||0)};
|
|
g.p.x0=function(A,L){if(A.action===void 0){var B=this.Np.kA();B!==void 0&&this.loader.o5(B)}else if(A.action!==0||!this.Cr)if(A.action===0&&this.policy.Yn&&(A.action=2),A.bE==="sabr.malformed_config"&&this.cn++<3)this.loader.handleError("sabr.malformed_config",{action:A.action,rn:L,retry:this.cn},0);else switch(this.policy.r4||A.bE!=="sabr.malformed_config"||(A.action=2),B={},B.reason=A.bE,B.action=A.action,B.rn=L,A.action){case 1:this.policy.W&&this.TV&&Tm(this.TV,void 0,void 0,B);break;case 0:this.Cr=
|
|
!0;this.videoData.aA()&&this.policy.W&&this.TV&&Tm(this.TV,void 0,void 0,B,!1);this.loader.Oe(B);break;case 2:bpQ(A.bE)!=="sabr.config"&&delete B.reason;this.loader.handleError(bpQ(A.bE),B,1);break;case 3:this.policy.jI&&((A=this.gT.yj)!=null&&(A.G=!0),this.loader.handleError("sabr.hostfallback",B))}};
|
|
g.p.UQ=function(A){A&&(this.loader.Hn("sabrctxt",{onsbrctxt:A.type,scp:A.scope,dflt:A.sendByDefault}),A.type&&A.sendByDefault&&this.videoData.S4.add(A.type),A.scope!==2&&(A.type&&this.videoData.sabrContextUpdates.set(A.type,A),this.Np.UQ(A)))};
|
|
g.p.hK=function(){};
|
|
g.p.eJ=function(A,L){if(this.loader.tU)this.loader.Hn("sdai",{ignSabrSeek:1,smt:A==null?void 0:A.S3,rn:L});else if(A.S3!==void 0&&A.v3){L=A.S3/A.v3;this.audioTrack.T=!1;this.videoTrack.T=!1;if(this.policy.Vj||this.policy.BR||this.policy.XV)this.loader.Ty.N=!1;if(this.Np.getCurrentTime()!==L){var B={zZ:"sabr_seek",Cu:!0,Sf:!0};A.seekSource&&(B.seekSource=A.seekSource);FT(this.loader,L+.1,B)}}};
|
|
g.p.onSnackbarMessage=function(A){this.Np.publish("onSnackbarMessage",A)};
|
|
g.p.TW=function(A,L){this.policy.T&&this.loader.TW(A,L)};
|
|
g.p.UY=function(A){A.YU&&A.xj&&ap(this.gT,A.YU,A.xj);this.policy.nJ&&(A.DS&&A.M5&&(this.gT.CK=A.DS/A.M5),A.H8&&A.q5&&(this.gT.F9=A.H8/A.q5));Ur(this.videoData)&&!this.videoData.hd&&A.xj&&this.loader.OU(A.xj,1E3);A.TO!=null&&this.Np.nS(A.TO);A.md&&(A=((0,g.bc)()-A.md)/1E3,this.loader.wq.eg(1,A))};
|
|
g.p.mG=function(A){this.loader.mG(A)};
|
|
g.p.VZ=function(A){return this.videoData.S4.has(A)};
|
|
g.p.Cy=function(A,L,B){this.policy.V&&this.loader.Hn("sabrctxtplc",{start:A?A.join("_"):"",stop:L?L.join("_"):"",discard:B?B.join("_"):""});if(A){A=g.m(A);for(var f=A.next();!f.done;f=A.next())this.videoData.S4.add(f.value)}if(L)for(L=g.m(L),A=L.next();!A.done;A=L.next())A=A.value,this.videoData.S4.has(A)&&this.videoData.S4.delete(A);if(B)for(B=g.m(B),L=B.next();!L.done;L=B.next())if(L=L.value,this.videoData.sabrContextUpdates.has(L)&&this.videoData.sabrContextUpdates.delete(L),this.policy.Wn&&this.N.length)for(A=
|
|
g.m(this.N),f=A.next();!f.done;f=A.next())if(f=f.value,!(f instanceof Sn)){var K=void 0;((K=f.eV)==null?void 0:K.type)===L&&(f.eV=void 0)}};
|
|
g.p.QO=function(){};
|
|
g.p.rC=function(A){this.T=A};
|
|
g.p.dE=function(A){this.D=A};
|
|
g.p.us=function(A,L){p6(this.policy,A,4,L)};
|
|
g.p.Yh=function(A){if(A==null?0:A.Cd)if(A=A.Cd.Qw){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.formatId){var B=this.gT.V.get(nq(L.formatId));B&&B.info&&(B.info.debugInfo=L.debugInfo)}}};
|
|
g.p.En=function(A){this.sx=!0;this.Np.publish("reloadplayer",A)};
|
|
g.p.TP=function(){return this.Np.TP()||""};
|
|
g.p.g8=function(){var A=$GS(this);return Math.min(A.Hb,A.jS)};
|
|
g.p.Xr=function(A,L){this.loader.Hn(A,L)};
|
|
g.p.YF=function(A){qUL(this.loader,RGE(this.ql,A))};
|
|
g.p.gS=function(A,L){this.videoData.gS(A,L)};
|
|
g.p.yl=function(A){this.Np.yl(A)};
|
|
g.p.EX=function(){this.loader.EX()};
|
|
g.p.jU=function(){this.loader.jU()};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);this.V=void 0;QqQ(this,!0,"i");this.N=[]};XK7.prototype.getCurrentTime=function(){return this.Np.getCurrentTime()-this.Np.pY()};
|
|
jn.prototype.G=function(A){kF(A.state)&&y_(this.D)};
|
|
jn.prototype.clear=function(){MC8(this.D);this.W.clear();this.N.clear();this.T=NaN;this.X=!1};
|
|
jn.prototype.py=function(){this.isSeeking=!0;MC8(this.D);this.X=!1;this.T=NaN;this.U=this.l0};GL.prototype.yG=function(A,L){if(this.U)return zyS(this,L);if(L=Db(A)){var B=L.N;B&&B.V&&B.N&&(A=A.W.length?A.W[0]:null)&&A.state>=2&&!A.LQ()&&A.info.FH===0&&(this.U=A,this.X=B,this.W=L.info,this.T=this.startTimeSecs=Date.now()/1E3,this.D=this.W.startTime)}return NaN};
|
|
GL.prototype.clear=function(){this.W=this.X=this.U=null;this.N=this.D=this.T=this.startTimeSecs=NaN;this.V=!1};g.G(si,g.Y);si.prototype.l1=function(){LY7(this);g.Y.prototype.l1.call(this)};var ony=/[?&]cpn=/;g.G(b3,g.Y);b3.prototype.flush=function(){var A={};this.W&&(A.pe=this.W);this.N.length>0&&(A.pt=this.N.join("."));this.N=[];return A};
|
|
b3.prototype.stop=function(){var A=this,L,B,f;return g.c(function(K){if(K.N==1)return g.S5(K,2),g.X(K,(L=A.U)==null?void 0:L.stop(),4);if(K.N!=2)return(B=K.W)&&A.logTrace(B),g.ZR(K,0);f=g.NX(K);A.W=VgC(f.message);g.VK(K)})};
|
|
b3.prototype.logTrace=function(A){this.encoder.reset();this.encoder.add(1);var L=Array.from(A.resources),B=Array.from(A.frames),f=Array.from(A.stacks);A=Array.from(A.samples);this.encoder.add(L.length);L=g.m(L);for(var K=L.next();!K.done;K=L.next()){K=K.value.replace("https://www.youtube.com/s/","");this.encoder.add(K.length);for(var V=0;V<K.length;V++)this.encoder.add(K.charCodeAt(V))}this.encoder.add(B.length);B=g.m(B);for(L=B.next();!L.done;L=B.next()){L=L.value;this.encoder.add(L.name.length);
|
|
for(K=0;K<L.name.length;K++)this.encoder.add(L.name.charCodeAt(K));wM(this.encoder,L.resourceId);wM(this.encoder,L.line);wM(this.encoder,L.column)}this.encoder.add(A.length);A=g.m(A);for(B=A.next();!B.done;B=A.next())B=B.value,this.encoder.add(Math.trunc(B.timestamp)),wM(this.encoder,B.stackId);this.encoder.add(f.length);f=g.m(f);for(A=f.next();!A.done;A=f.next())A=A.value,this.encoder.add(A.frameId),wM(this.encoder,A.parentId);f=this.encoder.PV();this.V+=f.length;this.V<1E7&&this.N.push(f)};
|
|
b3.prototype.l1=function(){this.stop();g.Y.prototype.l1.call(this)};var phw=[2,5,30];g.Ei=er(function(){var A="";try{var L=g.TO("CANVAS").getContext("webgl");L&&(L.getExtension("WEBGL_debug_renderer_info"),A=L.getParameter(37446),A=A.replace(/[ :]/g,"_"))}catch(B){}return A});g.G(g.l3,g.Y);g.p=g.l3.prototype;g.p.kLr=function(){var A=g.Ci(this.provider);Q_(this,A)};
|
|
g.p.HT=function(){return this.F4};
|
|
g.p.Vu=function(){return{L_:this.L_,dA:this.dA}};
|
|
g.p.fC=function(A,L){this.L_=A;this.dA=L};
|
|
g.p.nS=function(A){if(!this.Uv){this.Uv=!0;var L="";switch(A){case 1:L="proximaui";break;case 2:L=Jnv(this.provider.videoData)?"proximawpcc":this.provider.videoData.J("html5_enable_proxima")||this.provider.videoData.J("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:L="proximaauto"}L!==""&&Oi(this,L)}};
|
|
g.p.XY=function(A,L,B,f){if(!this.nD.has(A)){this.nD.add(A);var K=g.Ci(this.provider);g.TL(this,K,"lse",[A,L,B,f.toFixed(3)])}};
|
|
g.p.DW=function(A){mB(this,"lwc",[A.F3?A.F3.toFixed():"",A.lW?A.lW.toFixed():"",A.SO?(A.SO*1E3).toFixed():"",A.E0?(A.E0*1E3).toFixed():"",A.HY?(A.HY*1E3).toFixed():""].join(":"))};
|
|
g.p.reportStats=function(A){A=A===void 0?NaN:A;if(!this.TL()&&(A=A>=0?A:g.Ci(this.provider),this.Vj?ojd.has(this.xb)&&(this.N.size||(this.xb==="PL"?A>=this.W+30:A<=this.Wn+30||A>=this.W+1200&&A<=this.Wn+86400))&&(g.TL(this,A,"vps",[this.xb]),this.W=A):["PL","B","S"].indexOf(this.xb)>-1&&(this.N.size||A>=this.W+30)&&(g.TL(this,A,"vps",[this.xb]),this.W=A),this.N.size)){this.sequenceNumber===7E3&&g.CE(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){$k(this,A);var L=this.provider.Np.Rx();
|
|
L=g.m(L);for(var B=L.next();!B.done;B=L.next())B=B.value,this.Hn(B.key,B.value);L=A;B=this.provider.Np.Db();var f=B.droppedVideoFrames||0,K=B.totalVideoFrames||0,V=f-this.L_,J=K&&!this.dA;f>B.totalVideoFrames||V>5E3?tgk(this,"html5.badframedropcount","df."+f+";tf."+B.totalVideoFrames):(V>0||J)&&g.TL(this,L,"df",[V]);this.L_=f;this.dA=K;this.G>0&&(g.TL(this,A,"glf",[this.G]),this.G=0);AC.isActive()&&(A=AC.sL(),Object.keys(A).length>0&&this.Hn("profile",A));this.mH&&Oi(this,"lwnmow");this.provider.L.hw()&&
|
|
this.provider.J("html5_record_now")&&this.Hn("now",{wt:(0,g.bc)()});A={};this.provider.videoData.W&&(A.fmt=this.provider.videoData.W.itag,(L=this.provider.videoData.U)&&L.itag!==A.fmt&&(A.afmt=L.itag));A.cpn=this.provider.videoData.clientPlaybackNonce;var R;((R=this.E$)==null?0:R.length)?A.adcpn=this.E$.join(","):this.adCpn&&(A.adcpn=this.adCpn);var Z;((Z=this.hk)==null?0:Z.length)?A.addocid=this.hk.join(","):this.Ak.length&&(A.addocid=this.Ak);Z=this.provider.videoData;R=Z.aA();Z=Z.latencyClass;
|
|
(this.provider.L.Qf().N.Iv(FvB)&&R&&Z==="NORMAL"||this.provider.L.Qf().N.Iv(NyR)&&R&&Z==="LOW"||this.provider.L.Qf().N.Iv(ZwK)&&this.provider.videoData.isDaiEnabled()&&gp(this.provider.videoData))&&(A.adc=1);this.provider.videoData.cotn&&(A.cotn=this.provider.videoData.cotn);A.el=nr(this.provider.videoData);A.content_v=uj(this.provider.videoData);A.ns=this.provider.L.Wn;A.fexp=RE1(this.provider.L.experiments).toString();A.cl=(839483937).toString();R=this.provider.videoData.adFormat||this.adFormat;
|
|
var N;((N=this.d_)==null?0:N.length)?A.adformat=this.d_.join(","):R&&(A.adformat=R);(N=$T(this.provider.videoData))&&(A.live=N);this.provider.videoData.U6()&&(A.drm=1,this.provider.videoData.D&&(A.drm_system=UVO[this.provider.videoData.D.flavor]||0),this.provider.videoData.drmProduct&&(A.drm_product=this.provider.videoData.drmProduct));Dp()&&this.provider.videoData.T&&(A.ctt=this.provider.videoData.T,A.cttype=this.provider.videoData.Zl,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.B4&&(A.dai_fallback="1"),gp(this.provider.videoData)&&(A.dai="mv")):this.provider.videoData.XA?A.dai="cs":this.provider.videoData.mA&&(A.dai="disabled");A.seq=this.sequenceNumber++;if(this.provider.videoData.XK){if(N=this.provider.videoData.XK,A&&N)for(N.ns==="3pp"&&(A.ns="3pp"),this.LD.has(N.ns)&&Oi(this,"hbps"),N.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=
|
|
N.shbpslc),R=g.m(Object.keys(N)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,this.GZ.has(Z)||(A[Z]=N[Z])}else A.event="streamingstats",A.docid=this.provider.videoData.videoId,A.ei=this.provider.videoData.eventId;this.isEmbargoed&&(A.embargoed="1");Object.assign(A,this.provider.L.N);(N=A.seq)&&!this.provider.L.experiments.Qf().N.Iv(ISW)&&(R=sh6(this,+N),R=g.qA(R,i11),R=g.Y$(R,4),this.N.set("qclc",[R]));A=g.ip("//"+this.provider.L.gg+"/api/stats/qoe",A);Z=R="";L=g.m(this.N.entries());for(B=L.next();!B.done;B=
|
|
L.next())f=g.m(B.value),B=f.next().value,f=f.next().value,K=void 0,(K=f)!=null&&K.join&&(B="&"+B+"="+f.join(","),B.length>100?Z+=B:R+=B);this.provider.L.experiments.Qf().N.Iv(ISW)&&(N=sh6(this,+(N||0)),N.qoePingUrl=A+R+Z,g.pE("qoeClientLoggingContext",N),R+="&dl=1");Hmv(this,A+R,Z.replace(/ /g,"%20"))}this.N.clear()}};
|
|
g.p.CS=function(A){this.mH=A};
|
|
g.p.Yt=function(){if(this.provider.videoData.D){var A=this.provider.videoData.D;Oi(this,"eme-"+(A.keySystemAccess?"final":Sx(A)?"ms":NM(A)?"ytfp":ZA(A)?"safarifp":"nonfinal"))}};
|
|
g.p.IU=OD(49);g.p.Qe=function(A){this.isEmbargoed=A};
|
|
g.p.J1=OD(26);g.p.ph=OD(32);g.p.onPlaybackRateChange=function(A){var L=g.Ci(this.provider);A&&A!==this.Pz&&(g.TL(this,L,"rate",[A]),this.Pz=A);this.Vj||this.reportStats(L)};
|
|
g.p.W9=OD(20);g.p.getPlayerState=function(A){if(g.x(A,128))return"ER";if(g.x(A,2048))return"B";if(g.x(A,512))return"SU";if(g.x(A,16)||g.x(A,32))return"S";if(A.isOrWillBePlaying()&&g.x(A,64))return"B";var L=BtX[Tu(A)];g.wY(this.provider.L)&&L==="B"&&this.provider.Np.getVisibilityState()===3&&(L="SU");L==="B"&&g.x(A,4)&&(L="PB");return L};
|
|
g.p.zT=function(A,L){var B=g.Ci(this.provider);g.TL(this,B,"vfi",[A==="A"?"":""+(L!=null?L:0),A])};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);g.sQ(this.qp);g.sQ(this.jI)};
|
|
g.p.ZW=function(A){this.isOffline=A;g.TL(this,g.Ci(this.provider),"is_offline",[this.isOffline?"1":"0"])};
|
|
g.p.Hn=function(A,L,B){var f=this.TZ.indexOf(A)!==-1;f||this.TZ.push(A);if(!B||!f){L=typeof L!=="string"?f$(L):L;L=kg8(L);if(!B&&!/^t[.]/.test(L)){var K=g.Ci(this.provider)*1E3;L="t."+K.toFixed()+";"+L}mB(this,"ctmp",A+":"+L);Xg(this);return K}};
|
|
g.p.jd=function(A,L,B){this.D={Hhx:Number(this.Hn("glrem",{nst:A.toFixed(),rem:L.toFixed(),ca:+B})),Y4:A,pVF:L,isAd:B}};
|
|
g.p.C3=function(A,L,B){g.TL(this,g.Ci(this.provider),"ad_playback",[A,L,B])};
|
|
g.p.TJ=function(A,L){var B=g.Ci(this.provider)*1E3;mB(this,"daism","t."+B.toFixed(0)+";smw."+(A*1E3).toFixed(0)+";smo."+(L*1E3).toFixed(0))};
|
|
g.p.resume=function(){var A=this;isNaN(this.qp)?hIL(this):this.qp=g.Gc(function(){A.reportStats()},1E4)};
|
|
var pF={},BtX=(pF[5]="N",pF[-1]="N",pF[3]="B",pF[0]="EN",pF[2]="PA",pF[1]="PL",pF[-1E3]="ER",pF[1E3]="N",pF),ojd=new Set(["PL","B","S"]),kk=[];g.G(Wm,g.Y);g.p=Wm.prototype;g.p.initialize=function(A,L,B){A=A||0;this.policy.N||(L=Ne7(this.N),vnQ(this.Np,new F0(L.video,L.reason)),this.Np.bG(new F0(L.audio,L.reason)));this.policy.N&&Hl(this);this.gT.isManifestless&&kdE(this.T);this.G&&xGe(this.G,this.videoTrack.b1);L=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var f=!this.gT.isManifestless;this.policy.uu&&(f=f||this.gT.SD);if(!this.policy.S4||this.policy.zV)this.currentTime=f?A:L;this.policy.Vj&&this.seek(this.getCurrentTime(),{}).c9(function(){});
|
|
if(this.policy.N){var K;((K=this.D)==null?0:gT0(K,this.TP()||""))&&Xhv(this)&&vm(this,this.videoTrack)&&vm(this,this.audioTrack)&&(irE(this.W,this.D),this.policy.D&&imy(this))}else this.Wn&&(Om7(this,this.videoTrack),Om7(this,this.audioTrack),b3Q(this.Wn),delete this.Wn);B?(cjL(this,!1),g.Az(this.Rm)):(A=this.getCurrentTime()===0,h6(this.T,this.videoTrack,this.videoTrack.b1,A),h6(this.T,this.audioTrack,this.audioTrack.b1,A),this.policy.N&&sqE(this.W,{Ay:1}),this.policy.Vj||this.seek(this.getCurrentTime(),
|
|
{}).c9(function(){}),this.timing.tick("gv"));
|
|
(this.gT.F3||this.gT.lW||this.gT.SO||this.gT.E0||this.gT.HY)&&this.Np.DW(this.gT)};
|
|
g.p.resume=function(){if(this.isSuspended||this.Vb){this.K6=this.Vb=this.isSuspended=!1;try{this.yG()}catch(A){g.mL(A)}}};
|
|
g.p.jR=function(){return!this.policy.LD};
|
|
g.p.yJ=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;UmL(this);this.Np.R0()&&(this.X=NaN);A?(this.policy.Ys&&this.Hn("loader",{setsmb:1}),this.policy.JF=!0,this.KV()):(cjL(this,!1),L||this.KV())};
|
|
g.p.setAudioTrack=function(A,L,B){B=B===void 0?!1:B;if(!this.TL()){var f=!isNaN(L);B&&f&&(this.audioTrack.Wn=Date.now(),this.policy.jD&&(this.Ox=!0));B=this.Np.R0()&&!this.Np.getVideoData().G;if(this.policy.N){var K=this.U.R2(A.id,f);this.Np.bG(K)}else K=this.N,K.W=K.gT.N[A.id],K.X=K.W,K=new NL(K.X,K.V,f?"t":"m"),this.Np.bG(new F0(K.audio,K.reason));f?(this.mH=Date.now(),f=this.audioTrack.b1.index.NV(L),this.Hn("setAudio",{id:A.id,cmt:L,sq:f}),f>=0&&(A=this.policy.Y2?f+1:f,this.policy.N&&this.BL(!0,
|
|
"mosaic"),V1(this.audioTrack,A,NaN,NaN),!this.policy.m1&&this.gT.isLive&&u7(this.gT,A,!1))):B||this.Np.J8()}};
|
|
g.p.setPlaybackRate=function(A){A!==this.yj.getPlaybackRate()&&this.yj.setPlaybackRate(A)};
|
|
g.p.T8=function(A){var L=this.W.T;this.W.rC(A);this.Hn("scfidc",{curr:nq(L),"new":nq(A)});A&&nq(A)!==nq(L)&&(this.BL(!0,"caption change"),this.yG())};
|
|
g.p.Jm=function(A){this.W.dE(A)};
|
|
g.p.VP=function(A){A.N.info.NF()?this.Np.bG(A):vnQ(this.Np,A)};
|
|
g.p.YF=function(A){K3(A.Lr[A.Lr.length-1])&&qUL(this,RGE(this.N,A.Lr[0].b1))};
|
|
g.p.BA=function(){return this.Np.BA()};
|
|
g.p.sb=function(){return this.Np.sb()};
|
|
g.p.mG=function(A){this.Np.K().hw()&&this.Hn("sps",{status:A.qn||""});if(A.qn===1)this.ue=0;else if(A.qn===2||A.qn===3){var L=!1;if(A.qn===3){var B;this.k6=(B=A.ubF)!=null?B:Infinity;this.ue+=1;(L=kq(this))&&this.Qt(!0)}this.Np.sM(!0,L)}};
|
|
g.p.rW=function(){return this.Np.rW()};
|
|
g.p.Ef=function(){return this.Np.Ef()};
|
|
g.p.pg=function(A){this.Np.pg(A)};
|
|
g.p.Rur=function(){var A,L=(A=this.Np.pD())==null?void 0:A.getCurrentTime();L?this.Np.Hn("rms",{cta:L}):g.Az(this.N8)};
|
|
g.p.yG=function(){WYk(this);if(this.AF&&Fi(this.AF)&&!this.AF.Nz()&&(!this.policy.S4||isFinite(this.getCurrentTime()))){var A=n5(this.videoTrack);A=this.policy.Zt&&A&&A.Ad();this.gT.isManifestless&&this.gT.U&&x6(this.gT)?(this.X=x6(this.gT),this.AF.Vr(this.X)):A7(this.gT)&&!A?(A=this.policy.qM?q8(this)-this.timestampOffset:this.getCurrentTime(),isNaN(this.X)?(this.X=A+3600,this.AF.Vr(this.X)):this.X<=A+1800&&(this.X=Math.max(this.X+1800,A+3600),this.AF.Vr(this.X))):this.AF.isView||(A=Math.max(this.audioTrack.getDuration(),
|
|
this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==A)&&A>0&&(this.AF.Vr(A),this.X=A))}if(!this.TL())if(Pp(this.gT)&&this.gT.LQ()){var L=this.gT;this.handleError("manifest.net.retryexhausted",L.cn?{rc:L.zy}:{rc:L.zy.toString()},1)}else if(this.policy.N)a:{try{if(Pm(this)&&this.yh){var B=this.W,f=this.yh,K=f.N;if(K){var V=B.Np.kA(),J=!0;V||(V=B.loader.getCurrentTime(),J=!1);L=V;var R=J?B.Np.cA(L):L;if(B.loader.qy(R))var Z=!1;else{var N={t:L.toFixed(3),isUtc:J};c:{var F=B.Np.TP();if(F){for(var D=
|
|
g.m([B.audioTrack,B.videoTrack]),I=D.next();!I.done;I=D.next()){var d=un(I.value.b1,B.gT.iC);V=void 0;var w=((V=K)==null?void 0:V.PA(d,F))||[];if(w.length===0||!Yb7(new ZY(w),R)){var r=!1;break c}}r=!0}else r=!1}if(r)B.loader.Hn("prebuffer",Object.assign(N,{inrange:1})),Z=!0;else{if(Oh(K.info)){var h;if(h=J){var Q,l;h=(((Q=K.info.N)==null?void 0:(l=Q.No)==null?void 0:l.PL)||0)===L*1E3}var C=h}else C=!J&&Xn(K.info)===L*1E3;C?(B.loader.Hn("prebuffer",Object.assign(N,{match:1})),Z=!0):Z=!1}}if(Z){B.Np.S$("ismp_c");
|
|
B.N.push(K);var O;(O=B.ZM)==null||j2(O,K.info.wi);K.Vk();t4(f,!1)}}}wg(this.W);this.gT.isManifestless&&this.policy.D&&Zb(this.Ty);var v;((v=this.AF)==null?0:dz(v))&&this.cE();sqE(this.W);if(Pm(this)&&this.yh){var U=this.W,a=this.yh,o0=a.W.pL;if(o0!==void 0&&o0>=0){U.Np.S$("ismp_a");var B6=a.W;var Ve=B6.pL;if(Ve===void 0)var DS=!1;else{var fw=B6.Fu?U.Np.cA(Ve):Ve,ry;if(ry=!U.loader.qy(fw)&&brQ(U,U.Ox)){var uL=U.Np.getCurrentTime()*1E3,Jf=tCk(U,uL),MC=Jf.tP;ry=Jf.lU>=7E3&&MC>=7E3}DS=ry}if(DS){var nw=
|
|
raE(U,B6);U.policy.Tf>0&&U.Ox.S8++;nw&&(a.N!==nw&&(jjL(a),a.N=nw,a.W=h4),U.Np.S$("ismp_rc"))}}}}catch(Xk){g.CE(Xk);L=Xk;if(L.message.includes("changeType")){this.Hn("ctype",{exp:L.name,msg:L.message,s:L.stack});break a}this.handleError("fmt.unplayable",{exp:L.name,msg:L.message,s:L.stack,trg:"sabrslicerqt"},1)}fqD(this);g.Az(this.sx)}else if(!this.gT.W||!SeS(this.videoTrack)&&!SeS(this.audioTrack)||(this.videoTrack.U||this.audioTrack.U)&&this.policy.ql?B=!1:(this.KV(),this.Np.seekTo(Infinity,{zZ:"checkLoaderTracksSync",
|
|
OU:!0}),B=!0),!B){WYk(this);this.gT.isManifestless&&(ROS(this.videoTrack),ROS(this.audioTrack),Zb(this.Ty),(B=Db(this.videoTrack))&&B.N&&(B=B.N.V&&!this.policy.In,this.Hn(B===this.policy.G.D5?"strm":"strmbug",{strm:B,sfmp4:this.policy.G.D5,dfs:this.policy.In},!0)));if(this.AF)this.cE();else if(this.policy.U){B=!1;if(this.policy.Ss)for(f=g.m([this.videoTrack,this.audioTrack]),K=f.next();!K.done;K=f.next()){Z=K.value;for(K=Db(Z);K&&Z.vL()!==n5(Z);K=Db(Z))Z.Bg(K);B=B||!!K}else(L=Db(this.videoTrack))&&
|
|
this.videoTrack.Bg(L),(J=Db(this.audioTrack))&&this.audioTrack.Bg(J);oP(this.videoTrack)&&oP(this.audioTrack)||(L||J||B)&&IS(this)}En7(this);h6(this.T,this.videoTrack,this.videoTrack.b1,!1);h6(this.T,this.audioTrack,this.audioTrack.b1,!1);if(!this.policy.g4&&(L=this.videoTrack,f=this.audioTrack,(!this.AF||Fi(this.AF)&&!this.policy.Tg)&&!this.Ty.isSeeking()&&(this.policy.N||Zz(L)&&L.b1.w1()&&this.N.Wn)))a:{if(J=this.getCurrentTime(),B=this.yj,f=af(B,L.b1.info.lC,f.b1.info.lC,0),K=nh(B.Ml)+f/ub(B.Ml),
|
|
J+=Math.max(K,K+B.policy.VL-f/L.b1.info.lC),L.W.length){if(L.W[0].info.Lr[0].startTime<=J)break a;Va(L)}B=L.V;for(f=B.W.length-1;f>=0;f--)B.W[f].info.startTime>J&&B.W.pop();f_L(L);L.N&&J<L.N.startTime&&(L.JF=0,L.b1.w1()?L.N=L.b1.tq(J,!0).Lr[0]:L.N=null)}Hov(this.T,this.videoTrack,this.audioTrack);Hov(this.T,this.audioTrack,this.videoTrack);fqD(this);this.G&&(L=this.G,L.U?(J=L.T+L.policy.P0,L.V||(J=Math.min(J,L.startTimeSecs+L.policy.g$)),L=Math.max(0,J*1E3-Date.now())):L=NaN,isNaN(L)||g.Az(this.TZ,
|
|
L));g.Az(this.sx)}};
|
|
g.p.Oe=function(A){this.Np.Oe(A)};
|
|
g.p.cE=function(){if(this.AF){var A=this.AF.N,L=this.AF.W;R0C(this,this.audioTrack);R0C(this,this.videoTrack);var B=Pzv(this);if(B){if(this.policy.h8){if(!A.Ib()){var f=Db(this.audioTrack);if(f){if(!Ui(this,this.audioTrack,A,f.info))return;xm7(this,this.audioTrack,A,f)}}if(!L.Ib()&&(A=Db(this.videoTrack))){if(!Ui(this,this.videoTrack,L,A.info))return;xm7(this,this.videoTrack,L,A)}}this.qp||(this.qp=(0,g.bc)(),this.policy.V&&this.Hn("apdps",{r:B}))}else{if(this.qp){B=this.qp;var K=(0,g.bc)()-B;f=K6(this.audioTrack,
|
|
!0)*1E3;var V=K6(this.videoTrack,!0)*1E3;this.policy.V&&(this.Hn("apdpe",{dur:K.toFixed(),abuf:f.toFixed(),vbuf:V.toFixed()}),wv(this.policy)&&(K=Ai(this.yj),this.Hn("sdps",{ct:B,ah:f.toFixed(),vh:V.toFixed(),mr:LT(this.yj,this.Vb,K),bw:K.toFixed(),js:this.isSeeking(),re:+this.Vb,ps:(this.policy.ET||"").toString(),rn:(this.policy.rd||"").toString()})));this.qp=0}this.G&&(B=this.G.yG(this.audioTrack,LW(this.AF.W.Hk())))&&this.Np.seekTo(B,{Mi:!0,zZ:"pollSubsegmentReadahead",OU:!0});B=!1;ure(this,this.videoTrack,
|
|
L)&&(B=!0,L=this.timing,L.D||(L.D=(0,g.bc)(),g.i1("vda",L.D,L.N),L.U&&(g.ol(),fs(4))),L=this.timing,L.Ys||(L.Ys=(0,g.bc)(),g.i1("vrb_f",L.Ys,L.N)));if(this.AF&&!this.AF.vV()&&(ure(this,this.audioTrack,A)&&(B=!0,A=this.timing,A.U||(A.U=(0,g.bc)(),g.i1("ada",A.U,A.N),A.D&&(g.ol(),fs(4))),A=this.timing,A.yj||(A.yj=(0,g.bc)(),g.i1("arb_f",A.yj,A.N))),!this.TL()&&this.AF)){!this.policy.LD&&oP(this.videoTrack)&&oP(this.audioTrack)&&Fi(this.AF)&&!this.AF.Nz()&&(A=n5(this.audioTrack).b1,A===this.gT.N[A.info.id]&&
|
|
(A=this.AF,Fi(A)&&(A.AF?A.AF.endOfStream():A.Sa.webkitSourceEndOfStream(A.Sa.EOS_NO_ERROR)),A=this.schedule,FOw(pT(A)),A.qp=(0,g.bc)(),A.Wn=!0,this.XY("e")));if(A=B)A=this.AF,A=!(A.N?A.N.supports(0):wz());A&&IS(this)}}}};
|
|
g.p.XY=function(A){if(this.gT.isManifestless){var L=this.videoTrack.b1;if(L){var B=L.index.uq(),f=-1,K=-1;L.index instanceof jl&&(f=L.index.Ns(),K=L.index.ag());this.Np.XY(A,B,f,K)}}};
|
|
g.p.hD=function(A){var L,B=A===((L=this.AF)==null?void 0:L.N)?this.audioTrack:this.videoTrack,f;if((f=Db(B))==null?0:f.isLocked){if(this.Np.K().hw()){var K;this.Hn("eosl",{ounlock:(K=Db(B))==null?void 0:K.info.Dx()})}var V;LfL(this,A===((V=this.AF)==null?void 0:V.N))}var J;if(this.policy.jD&&A===((J=this.AF)==null?void 0:J.N)&&this.Nl){L=this.Nl-this.getCurrentTime();var R;this.Np.Hn("asl",{l:L,xtag:(R=n5(this.audioTrack))==null?void 0:R.b1.info.N});this.Ox=!1;this.Nl=0}A.PF()&&A.Hk().length===0&&
|
|
(A.vG(),this.AF&&!this.AF.PF()&&(this.Np.K().hw()&&this.Np.Hn("rms",{ld:"seek"}),this.AF.U=performance.now(),this.Np.tB(),this.Np.K().hw()&&g.Az(this.N8)));var Z;(Z=B.G)!=null&&TE(Z,0);this.policy.Pz?mZ(this):this.yG()};
|
|
g.p.PCs=function(A){if(this.AF){var L=n5(A===this.AF.N?this.audioTrack:this.videoTrack);if(A=A.ox())for(var B=0;B<A.length;B++)this.Hn("appendedbuffer",{i:B,b:g.Y$(A[B].subarray(0,4096),3)});A={};L&&(A=Sl(L));A.trg="onappenderr";this.handleError("fmt.unplayable",A,1)}};
|
|
g.p.kD=function(A){this.Np.kD(A)};
|
|
g.p.ww=function(A,L,B){B&&this.tU&&this.Hn("sdai",{skipadsvi:1,rep:A.info.itag,sq:L.XD,acpn:B.N.join("-"),avids:B.ids.join("-")});if(this.gT.isManifestless){A=!!A.info.video;u5w(this,L,B,A,!0);if(this.policy.o4&&A){var f;(f=this.nD)==null||gg(f,L.XD,B)}if(this.policy.W&&L.U9){f=!!B;var K=L.U9||null;if((K==null?void 0:K.event)!=="predictStart"){var V;if((V=this.W)==null)var J=void 0;else{var R,Z;J={requestNumber:((R=V.Ex)==null?void 0:R.zb())||-1,isDecorated:(Z=V.Ex)==null?void 0:Z.info.isDecorated()}}Z=
|
|
J;R=Z.requestNumber;Z=Z.isDecorated;if(A&&!Z){var N;this.Hn("sdai",{underdec:(N=this.TV)==null?void 0:Rek(N,K),evt:K==null?void 0:K.event,id:K==null?void 0:K.identifier,sq:L.XD,mt:L.startTime.toFixed(3),stif:f,rn:R})}}}N=A?this.videoTrack:this.audioTrack;N.yj.push({tO:L.XD,Q4T:B});N.yj.length>5&&N.yj.shift();L=L.XD;var F;if((F=this.Np.getVideoData())==null?0:F.enableServerStitchedDai)F=Dg0(this.audioTrack,L),B=Dg0(this.videoTrack,L),F!==0&&B!==0&&F!==B&&this.handleError("ssdai.avsync",{sq:L,a:F,v:B},
|
|
0)}};
|
|
g.p.RB=function(A,L,B,f){A.info.video&&this.V.RB(L,B,f)};
|
|
g.p.mQ=function(A){this.N.mQ(A)};
|
|
g.p.e2=function(){return this.TV};
|
|
g.p.vT=function(){return this.videoTrack.T||this.audioTrack.T};
|
|
g.p.seek=function(A,L){if(this.TL())return $A();if(this.vT())return $A("seeking to head");if(this.policy.Vj&&!isFinite(A))return ss0(this.Ty),g.iX(Infinity);WYk(this);Ff0(this,A,!1,L.seekSource);Hl(this);this.policy.N||En7(this,A);this.AF&&this.AF.N&&this.AF.W&&!this.Np.getVideoData().uu&&(this.AF.N.isLocked()||this.AF.W.isLocked())&&this.Np.J8({reattachOnLockedBuffer:1,vsb:""+this.AF.W.isLocked(),asb:""+this.AF.N.isLocked()});var B=this.getCurrentTime(),f=this.Ty.seek(A,L);if(!this.policy.S4||this.policy.zV)this.currentTime=
|
|
f;ZU(this.V,A,B,this.policy.UO&&!L.Cu);IS(this);return g.iX(f)};
|
|
g.p.G6=function(A){return this.policy.N&&this.W.G6(A)};
|
|
g.p.VZ=function(A){return this.W.VZ(A)};
|
|
g.p.BL=function(A,L){this.W.BL(A,L)};
|
|
g.p.getCurrentTime=function(){if(this.policy.S4){var A=this.pY()||0;return this.Np.getCurrentTime(!0)-A}return this.currentTime};
|
|
g.p.iI=function(){return this.audioTrack.b1.info};
|
|
g.p.bf=function(){return this.videoTrack.b1.info};
|
|
g.p.R3=function(){return this.audioTrack.b1.info.Bn};
|
|
g.p.SC=function(){return this.videoTrack.b1.info.Bn};
|
|
g.p.l1=function(){try{this.yJ(),Va(this.audioTrack),Va(this.videoTrack),Nq(this.audioTrack),Nq(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.Y.prototype.l1.call(this)}catch(A){g.mL(A)}};
|
|
g.p.handleError=function(A,L,B){B=B===void 0?0:B;var f=Vu(B);A==="fmt.unplayable"&&this.gT.isLive&&(this.policy.h8=!1,zW(this.gT));L=new g.K$(A,L,B);g.$W(this);f$(L.details);this.Np.handleError(L);A!=="html5.invalidstate"&&L.errorCode!=="fmt.unplayable"&&A!=="fmt.unparseable"&&f&&this.dispose()};
|
|
g.p.Ov=function(){var A=n5(this.audioTrack),L=n5(this.videoTrack);A={lct:this.getCurrentTime().toFixed(3),lsk:this.Ty.isSeeking(),lmf:this.N.N.isLocked(),lbw:wEQ(this.schedule).toFixed(3),lhd:nh(this.schedule).toFixed(3),lst:((this.schedule.X.pw()||0)*1E9).toFixed(3),laa:A?A.Dx():"",lva:L?L.Dx():"",lar:this.audioTrack.N?this.audioTrack.N.Dx():"",lvr:this.videoTrack.N?this.videoTrack.N.Dx():"",laq:""+Bl(this.audioTrack),lvq:""+Bl(this.videoTrack)};this.AF&&!this.AF.vV()&&this.AF.N&&this.AF.W&&(A.lab=
|
|
zv(this.AF.N.Hk()),A.lvb=zv(this.AF.W.Hk()));this.qp&&(A.lapt=((0,g.bc)()-this.qp).toFixed(0),A.lapr=Pzv(this));this.JF&&(A.lapmabht=((0,g.bc)()-this.JF).toFixed(0),A.lapmabh=Sb(this,this.audioTrack).toFixed(0));this.Ys&&(A.lapmvbht=((0,g.bc)()-this.Ys).toFixed(0),A.lapmvbh=Sb(this,this.videoTrack).toFixed(0));this.S4&&(A.lapsdai=((0,g.bc)()-this.S4).toFixed(0));return A};
|
|
g.p.KV=function(){try{this.policy.N&&this.W.BL(!1,"pending"),this.audioTrack.KV(),this.videoTrack.KV()}catch(A){g.mL(A)}this.policy.U=""};
|
|
g.p.qy=function(A){return this.videoTrack&&this.audioTrack?this.videoTrack.qy(A)&&this.audioTrack.qy(A):!0};
|
|
g.p.Su=function(){return zD(this.yj)};
|
|
g.p.Hn=function(A,L,B){this.Np.Hn(A,L,B===void 0?!1:B)};
|
|
g.p.TP=function(){return this.Np.TP()};
|
|
g.p.OU=function(A,L){A/=L;isNaN(this.timestampOffset)&&Zhw(this,A-Math.min(A,this.policy.aD));return(A-this.timestampOffset)*L};
|
|
g.p.pY=function(){return this.timestampOffset};
|
|
g.p.isSeeking=function(){return this.Ty.isSeeking()};
|
|
g.p.T3=function(){this.V.T3()};
|
|
g.p.EU=function(A,L,B){L=L===void 0?!1:L;B=B===void 0?{}:B;this.policy.N?this.U.EU(A,L,B):this.N.EU(A,L,B)};
|
|
g.p.bF=function(A,L){if(this.policy.W&&(this.tU||this.isSeeking()))return this.Hn("sdai",{ignoreSkip:"1",isSkip:this.tU,isSeek:this.isSeeking(),t:A.toFixed(3)}),!1;var B=this.policy.W&&(this.policy.T||this.policy.a7),f=this.videoTrack.b1.index.NV(A),K=!1;if(B){var V;if(K=!((V=this.Vj)==null||!V.s5(A,f,this.timestampOffset)))if(Vi(this,A,A,f),this.TV){var J;(J=this.TV)==null||J.s5(A,f)}}else this.TV&&(K=!!this.V.bF(A,this.TV));if(!K)return this.handleError("ad.skipfailed",{dec:!!this.TV,t:A.toFixed(3),
|
|
sq:f}),!1;this.policy.W&&(this.Hn("sdai",{skipAdStd:"1"}),this.tU=!0);if(this.policy.o4){var R;(R=this.nD)==null||R.clear()}Zhw(this,this.timestampOffset-L);IS(this);this.policy.W&&(zW(this.gT),Nq(this.audioTrack),Nq(this.videoTrack),this.KV());return!0};
|
|
g.p.getManifest=function(){return this.gT};
|
|
g.p.isOffline=function(){return!!this.Np.getVideoData().cotn};
|
|
g.p.MX=function(A,L){this.Np.MX(A,L)};
|
|
g.p.Qb=function(A,L){if(this.policy.N)Ff0(this,A,!0,L),this.W.BL(!0,"utc"),this.yG();else if(L=this.Np.getVideoData().Sg){var B=this.T;B.XH=A;B.Sg=L;lR(this)}};
|
|
g.p.o5=function(A){this.videoTrack.T=!1;this.audioTrack.T=!1;this.Ty.N=!1;this.Np.o5(A)};
|
|
g.p.kz=function(A){this.Ty.kz(A-this.pY())};
|
|
g.p.Uw=function(){this.Np.Uw()};
|
|
g.p.Qt=function(A){A!==this.policy.b2&&((this.policy.b2=A)||this.yG())};
|
|
g.p.J8=function(A){this.Np.J8(A)};
|
|
g.p.CS=function(A){this.Np.CS(A)};
|
|
g.p.cg=function(A,L,B){var f;(f=this.Vj)==null||f.cg(A,L,B);this.policy.T&&(this.W.X=void 0,this.yG())};
|
|
g.p.gM=function(A){var L;(L=this.Vj)==null||L.gM(A)};
|
|
g.p.TW=function(A,L){if(this.policy.T){var B,f=(B=A.x5)==null?void 0:B[0],K=this.Np.getVideoData(),V,J;B=((V=K.playerResponse)==null?0:(J=V.playerConfig)==null?0:J.daiConfig)?K.mA?1:K.B4?2:0:3;var R;(R=this.Vj)==null||R.TW(A,L,this.TV||void 0,B);var Z,N,F;this.Hn("clidai",{onqlst:1,len:((Z=A.x5)==null?void 0:Z.length)||0,rn:L,evt:uVy(f==null?void 0:(N=f.U9)==null?void 0:N.event),cid:(f==null?void 0:(F=f.U9)==null?void 0:F.identifier)||"null",sq:(f==null?void 0:f.td)||-1,trk:(f==null?void 0:f.trackType)||
|
|
"null",disr:B})}};
|
|
g.p.prefetchKeyPlay=function(A,L){var B=this;if(Pm(this)){var f=uvQ().legacyApplicationQuality==="limited-memory";this.policy.iA&&f||(this.yh||(this.yh=new bP(function(K){B.Np.S$(K)}),g.W(this,this.yh)),y71(this.yh,{pL:A,
|
|
Fu:L,Ay:2}),this.yG())}};
|
|
g.p.jU=function(){this.Uv++};
|
|
g.p.EX=function(){this.Uv=0};g.G(xk,g.SN);g.G(en,xk);en.prototype.T=function(A,L){if(A&&L){var B=Number(Ew(A,"cpi"))*1+1;isNaN(B)||B<=0||B<this.V?(this.U.stop(),this.W.stop(),this.V=-1,this.N={}):(B>this.V&&(this.V=B,g.mi(this.N)||(this.N={},this.U.stop(),this.W.stop())),this.N[L]=A,g.Az(this.W))}};
|
|
en.prototype.D=function(){for(var A=g.m(Object.keys(this.N)),L=A.next();!L.done;L=A.next()){var B=L.value;L=this.publish;for(var f=this.V,K=g.bp(this.N[B]),V=[],J=g.m(K[6].split("&")),R=J.next();!R.done;R=J.next())R=R.value,R.indexOf("cpi=")===0?V.push("cpi="+f.toString()):R.indexOf("ek=")===0?V.push("ek="+g.v5(B)):V.push(R);K[6]="?"+V.join("&");B="skd://"+K.slice(2).join("");K=B.length*2;f=new Uint8Array(K+4);f[0]=K%256;f[1]=(K-f[0])/256;for(K=0;K<B.length;++K)f[K*2+4]=B.charCodeAt(K);L.call(this,
|
|
"rotated_need_key_info_ready",new OL(f,"fairplay",!0))}this.N={}};
|
|
en.prototype.l1=function(){this.N={};xk.prototype.l1.call(this)};g.G(ni,xk);
|
|
ni.prototype.U=function(A){var L;a:{if((L=A.cryptoPeriodIndex)&&this.N.length>0)for(var B=g.m(this.N),f=B.next();!f.done;f=B.next())if(L===f.value.info.cryptoPeriodIndex){L=!0;break a}L=!1}if(!L){L=(0,g.bc)();a:{B=A.cryptoPeriodIndex;if(!isNaN(B)){f=g.m(this.V.values());for(var K=f.next();!K.done;K=f.next())if(Math.abs(K.value.cryptoPeriodIndex-B)<=1){B=!0;break a}}B=!1}B?(B=A.N,B=Math.max(0,Math.random()*((isNaN(B)?120:B)-30))*1E3):B=0;this.publish("log_qoe",{wvagt:"delay."+B,cpi:A.cryptoPeriodIndex,reqlen:this.N.length});
|
|
B<=0?d5D(this,A):(this.N.push({time:L+B,info:A}),g.Az(this.W,B))}};
|
|
ni.prototype.l1=function(){this.N=[];xk.prototype.l1.call(this)};var y8={},g5k=(y8.DRM_TRACK_TYPE_AUDIO="AUDIO",y8.DRM_TRACK_TYPE_SD="SD",y8.DRM_TRACK_TYPE_HD="HD",y8.DRM_TRACK_TYPE_UHD1="UHD1",y8);g.G(yYS,g.Y);g.G(rYy,g.SN);g.p=rYy.prototype;g.p.Cl=function(A){var L=this;if(!(this.TL()||A.size<=0)){var B={};A.forEach(function(f,K){var V=Rj(L.W)?K:f;K=new Uint8Array(Rj(L.W)?f:K);Rj(L.W)&&cYC(K);f=g.Y$(K,4);cYC(K);K=g.Y$(K,4);L.N[f]?L.N[f].status=V:L.N[K]?L.N[K].status=V:L.N[f]={type:"",status:V};Ohy(L,L.N[f].type,B)});
|
|
$5y(this,",");zL(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}};
|
|
g.p.error=function(A,L,B,f){this.TL()||(this.publish("licenseerror",A,L,B,f),A==="drm.provision"&&(A=(Date.now()-this.T)/1E3,this.T=NaN,this.publish("ctmp","provf",{et:A.toFixed(3)})));Vu(L)&&this.dispose()};
|
|
g.p.shouldRetry=function(A,L){return!A&&this.requestNumber===L.requestNumber};
|
|
g.p.l1=function(){this.N={};g.SN.prototype.l1.call(this)};
|
|
g.p.Ov=function(){var A={ctype:this.G.contentType||"",length:this.G.initData.length,requestedKeyIds:this.ZM,cryptoPeriodIndex:this.cryptoPeriodIndex};this.V&&(A.keyStatuses=this.N);return A};
|
|
g.p.getInfo=function(){var A=this.U.join();if(u3(this)){var L=new Set,B;for(B in this.N)this.N[B].status!=="usable"&&L.add(this.N[B].type);A+="/UKS."+Array.from(L)}return A+="/"+this.cryptoPeriodIndex};
|
|
g.p.MQ=function(){return this.url};g.G(At,g.Y);g.p=At.prototype;g.p.f0=function(A){if(this.D){var L=A.messageType||"license-request";this.D(new Uint8Array(A.message),L)}};
|
|
g.p.Cl=function(){this.X&&this.X(this.N.keyStatuses)};
|
|
g.p.onClosed=function(){this.TL()||g.xz("xboxone")&&this.V&&this.V("closedShouldNotRetry")};
|
|
g.p.y7=function(A){this.D&&this.D(A.message,"license-request")};
|
|
g.p.Na=function(A){if(this.V){if(this.W){var L=this.W.error.code;A=this.W.error.systemCode}else L=A.errorCode,A=A.systemCode;this.V("t.prefixedKeyError;c."+L+";sc."+A,L,A)}};
|
|
g.p.dc=function(){this.T&&this.T()};
|
|
g.p.update=function(A){var L=this;if(this.N)return this.N.update(A).then(null,SH(function(B){Yty(L,"t.update",B)}));
|
|
this.W?this.W.update(A):this.element.addKey?this.element.addKey(this.G.keySystem,A,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.G.keySystem,A,this.initData,this.sessionId);return OQ()};
|
|
g.p.l1=function(){this.N&&(this.yj?this.N.close().catch(g.CE):this.N.close());this.element=null;g.Y.prototype.l1.call(this)};g.G(LR,g.Y);g.p=LR.prototype;g.p.setServerCertificate=function(){return this.W.setServerCertificate?this.N.flavor==="widevine"&&this.N.LL?this.W.setServerCertificate(this.N.LL):F5(this.N)&&this.N.xf?this.W.setServerCertificate(this.N.xf):null:null};
|
|
g.p.createSession=function(A,L){var B=A.initData;if(this.N.keySystemAccess){L&&L("createsession");var f=this.W.createSession();NM(this.N)?B=v5C(B,this.N.xf):F5(this.N)&&(B=D5E(B)||new Uint8Array(0));L&&L("genreq");A=f.generateRequest(A.contentType,B);var K=new At(null,null,null,f,null,this.X);A.then(function(){L&&L("genreqsuccess")},SH(function(J){Yty(K,"t.generateRequest",J)}));
|
|
return K}if(Sx(this.N))return PbE(this,B);if(ZA(this.N))return qt8(this,B);if((f=this.element)==null?0:f.generateKeyRequest)this.element.generateKeyRequest(this.N.keySystem,B);else{var V;(V=this.element)==null||V.webkitGenerateKeyRequest(this.N.keySystem,B)}return this.U=new At(this.element,this.N,B,null,null,this.X)};
|
|
g.p.xM=function(A){var L=x5y(this,A);L&&L.y7(A)};
|
|
g.p.sy=function(A){var L=x5y(this,A);L&&L.Na(A)};
|
|
g.p.C0=function(A){var L=x5y(this,A);L&&L.dc(A)};
|
|
g.p.getMetrics=function(){var A=null;if(this.W&&this.W.getMetrics)try{A=this.W.getMetrics()}catch(L){}return A};
|
|
g.p.l1=function(){this.V=this.W=null;var A;(A=this.U)==null||A.dispose();A=g.m(Object.values(this.T));for(var L=A.next();!L.done;L=A.next())L.value.dispose();this.T={};g.Y.prototype.l1.call(this);delete this.element};g.p=oc.prototype;g.p.get=function(A){A=this.findIndex(A);return A!==-1?this.values[A]:null};
|
|
g.p.remove=function(A){A=this.findIndex(A);A!==-1&&(this.keys.splice(A,1),this.values.splice(A,1))};
|
|
g.p.removeAll=function(){this.keys=[];this.values=[]};
|
|
g.p.set=function(A,L){var B=this.findIndex(A);B!==-1?this.values[B]=L:(this.keys.push(A),this.values.push(L))};
|
|
g.p.findIndex=function(A){return g.xW(this.keys,function(L){return g.wo(A,L)})};g.G(z0C,g.SN);g.p=z0C.prototype;g.p.YEj=function(A){this.Jd({onecpt:1});A.initData&&Aiy(this,new Uint8Array(A.initData),A.initDataType)};
|
|
g.p.d8F=function(A){this.Jd({onndky:1});Aiy(this,A.initData,A.contentType)};
|
|
g.p.kD=function(A){this.Jd({onneedkeyinfo:1});this.L.J("html5_eme_loader_sync")&&(this.X.get(A.initData)||this.X.set(A.initData,A));aq7(this,A)};
|
|
g.p.It=function(A){this.V.push(A);BY(this)};
|
|
g.p.createSession=function(A){var L=o2e(this)?mM1(A):g.Y$(A.initData);this.W.get(L);this.ZM=!0;A=new rYy(this.videoData,this.L,A,this.drmSessionId);this.W.set(L,A);A.subscribe("ctmp",this.CT,this);A.subscribe("keystatuseschange",this.Cl,this);A.subscribe("licenseerror",this.FU,this);A.subscribe("newlicense",this.B8,this);A.subscribe("newsession",this.P8,this);A.subscribe("sessionready",this.Uz,this);A.subscribe("fairplay_next_need_key_info",this.Gz,this);this.L.J("html5_enable_vp9_fairplay")&&A.subscribe("qualitychange",
|
|
this.WK,this);A.subscribe("sabrlicenseconstraint",this.RdL,this);bhS(A,this.U)};
|
|
g.p.B8=function(A){this.TL()||(this.Jd({onnelcswhb:1}),A&&!this.heartbeatParams&&(this.heartbeatParams=A,this.publish("heartbeatparams",A)))};
|
|
g.p.P8=function(){this.TL()||(this.Jd({newlcssn:1}),this.V.shift(),this.ZM=!1,BY(this))};
|
|
g.p.Uz=function(){if(Sx(this.N)&&(this.Jd({onsnrdy:1}),this.S4--,this.S4===0)){var A=this.Wn,L,B;(L=A.element)==null||(B=L.msSetMediaKeys)==null||B.call(L,A.V)}};
|
|
g.p.Cl=function(A){if(!this.TL()){this.JF||(this.JF=!0,this.L.hw()&&BM6(this));this.Jd({onksch:1});var L=this.WK;if(!u3(A)&&g.ns&&A.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var B="large";else{B=[];var f=!0;if(u3(A))for(var K=g.m(Object.keys(A.N)),V=K.next();!V.done;V=K.next())V=V.value,A.N[V].status==="usable"&&B.push(A.N[V].type),A.N[V].status!=="unknown"&&(f=!1);if(!u3(A)||f)B=A.U;B=ih0(B)}L.call(this,B);if(A.L.J("html5_enable_vp9_fairplay")&&F5(A.W))L=A.yj;
|
|
else{if(!u3(A))for(L={},B=g.m(A.U),f=B.next();!f.done;f=B.next())Ohy(A,f.value,L);L=A.authorizedFormats}this.videoData.authorizedFormats=L;this.publish("keystatuseschange",A)}};
|
|
g.p.CT=function(A,L){this.TL()||this.publish("ctmp",A,L)};
|
|
g.p.Gz=function(A,L){this.TL()||this.publish("fairplay_next_need_key_info",A,L)};
|
|
g.p.FU=function(A,L,B,f){this.TL()||(this.videoData.J("html5_log_drm_metrics_on_error")&&BM6(this),this.publish("licenseerror",A,L,B,f))};
|
|
g.p.Vt=function(){return this.G};
|
|
g.p.WK=function(A){var L=g.XX("auto",A,!1,"l");if(this.videoData.B$){if(this.G.equals(L))return}else if(kiD(this.G,A))return;this.G=L;this.publish("qualitychange");this.Jd({updtlq:A})};
|
|
g.p.RdL=function(A){this.videoData.sabrLicenseConstraint=A};
|
|
g.p.l1=function(){var A,L;this.N.keySystemAccess&&this.element&&!((A=this.mediaElement)==null?0:(L=A.Np)==null?0:L.R0())&&(this.Vj?this.element.setMediaKeys(null).catch(g.CE):this.element.setMediaKeys(null));this.element=null;this.V=[];A=g.m(this.W.values());for(L=A.next();!L.done;L=A.next())L=L.value,L.unsubscribe("ctmp",this.CT,this),L.unsubscribe("keystatuseschange",this.Cl,this),L.unsubscribe("licenseerror",this.FU,this),L.unsubscribe("newlicense",this.B8,this),L.unsubscribe("newsession",this.P8,
|
|
this),L.unsubscribe("sessionready",this.Uz,this),L.unsubscribe("fairplay_next_need_key_info",this.Gz,this),this.L.J("html5_enable_vp9_fairplay")&&L.unsubscribe("qualitychange",this.WK,this),L.dispose();this.W.clear();this.T.removeAll();this.X.removeAll();this.heartbeatParams=null;g.SN.prototype.l1.call(this)};
|
|
g.p.Ov=function(){for(var A={systemInfo:this.N.Ov(),sessions:[]},L=g.m(this.W.values()),B=L.next();!B.done;B=L.next())A.sessions.push(B.value.Ov());return A};
|
|
g.p.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.D?"/KR":"")};
|
|
g.p.Jd=function(A,L){L=L===void 0?!1:L;this.TL()||(f$(A),(this.L.hw()||L)&&this.publish("ctmp","drmlog",A))};var Ji6=!1,RVv=!1;g.G(NME,g.Y);g.p=NME.prototype;g.p.Nm=function(){return!!this.Ld};
|
|
g.p.AT=function(){return this.W};
|
|
g.p.handleError=function(A){var L=this;pOC(this,A);var B;if(B=!((A.errorCode==="html5.invalidstate"||A.errorCode==="fmt.unplayable"||A.errorCode==="fmt.unparseable")&&wO6(this,A.errorCode,A.details)))if(B=!GC7(this,A))this.videoData.errorDetail==="7"&&g.wY(this.tF)?(g2e(this,"innertube_player_reload_required"),B=!0):B=!1,B=!B;if(B)if(this.tF.Wn!=="yt"&&j5C(this,A)&&this.videoData.jD&&(0,g.bc)()/1E3>this.videoData.jD&&Rq(this.videoData)&&(B=Object.assign({e:A.errorCode},A.details),B.stalesigexp="1",
|
|
B.expire=Math.round(this.videoData.jD*1E3),B.init=Math.round(this.videoData.IT),B.now=Math.round((0,g.bc)()),A=new g.K$(A.errorCode,B,2),this.Np.O9(A.errorCode,2,"SIGNATURE_EXPIRED",f$(A.details))),Vu(A.severity)){var f;B=(f=this.Np.loader)==null?void 0:f.N.N;if(this.tF.J("html5_use_network_error_code_enums"))if(yiw(A)&&B&&B.isLocked())var K="FORMAT_UNAVAILABLE";else if(this.tF.T||A.errorCode!=="auth"||A.details.rc!==429)A.errorCode==="ump.spsrejectfailure"&&(K="HTML5_SPS_UMP_STATUS_REJECTED");else{K=
|
|
"TOO_MANY_REQUESTS";var V="6"}else yiw(A)&&B&&B.isLocked()?K="FORMAT_UNAVAILABLE":this.tF.T||A.errorCode!=="auth"||A.details.rc!=="429"?A.errorCode==="ump.spsrejectfailure"&&(K="HTML5_SPS_UMP_STATUS_REJECTED"):(K="TOO_MANY_REQUESTS",V="6");this.Np.O9(A.errorCode,A.severity,K,f$(A.details),V)}else this.Np.publish("nonfatalerror",A),f=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ho(A.errorCode,A.details),f&&A.errorCode==="manifest.net.connect"&&(A="https://www.youtube.com/generate_204?cpn="+
|
|
this.videoData.clientPlaybackNonce+"&t="+(0,g.bc)(),x5(A,"manifest",function(J){L.T=!0;L.Hn("pathprobe",J)},function(J){L.Ho(J.errorCode,J.details)}))};
|
|
g.p.Hn=function(A,L){this.Np.CY.Hn(A,L)};
|
|
g.p.Ho=function(A,L){L=f$(L);this.Np.CY.Ho(A,L)};KR.prototype.M_=function(A){var L=hV0(this);if(!A)return{nP:fr,wU:fr,uO:fr,yH:fr,iU:fr,vX:fr,PX:L};var B=fr;if(EO(L)||this.J("html5_perf_cap_override_sticky"))B=XO8(this,A);return{nP:B,wU:mI8(this,A),uO:TM0(this,A),yH:OT8(this,A.videoData),iU:E2E(this,A.videoData,A),vX:tb6(this,A),PX:L}};
|
|
KR.prototype.Ms=function(A){if(g.wY(this.L)&&u6(this.L.D,a4.HEIGHT))var L=A.N.videoInfos[0].video.qualityOrdinal;else{var B=this.T4(!!A.N.N);y7(A.videoData)||Bh(A.videoData);A=A.N.videoInfos;if(A.length){var f=.85,K=A[0].video;K.projectionType!=="MESH"&&K.projectionType!=="EQUIRECTANGULAR"&&K.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||WL||(f=.45);K=g.Am(this.L.experiments,"html5_viewport_undersend_maximum");for(var V=0;V<A.length;V++){L=A[V];var J=L.video;if(B===null||J.width*f<B.width&&
|
|
J.height*f<B.height){K&&V&&J.width<B.width*K&&J.height<B.height*K&&(L=A[V-1]);break}}B=L.video;L=new $Q(0,L.itag==="93"?g.ka[tT(B.width,B.height)]:B.qualityOrdinal,!1,"r")}else L=fr;L=L.N}L&&(L=Math.max(L,360));return new $Q(0,L,!1,"r")};
|
|
KR.prototype.T4=function(A){var L;g.qM(this.L)&&(L=window.screen&&window.screen.width?new g.Sr(window.screen.width,window.screen.height):null);L||(L=this.L.YH?this.L.YH.clone():this.z8.yN());(Ln||Hj||A)&&L.scale(g.J$());return L};
|
|
KR.prototype.J=function(A){return this.L.J(A)};g.G(Jt,g.Y);Jt.prototype.uf=function(){var A=g.Ci(this.provider);this.N<0&&(this.N=A,this.delay.start());this.U=this.W=A};
|
|
Jt.prototype.onError=function(A){if(A!=="player.fatalexception"||this.provider.J("html5_exception_to_health"))A==="sabr.fallback"&&(this.encounteredSabrFallback=!0),A.match(fiB)?this.networkErrorCount++:this.nonNetworkErrorCount++};
|
|
Jt.prototype.send=function(){if(!(this.V||this.N<0)){YVv(this);var A=g.Ci(this.provider)-this.N,L="PLAYER_PLAYBACK_STATE_UNKNOWN",B=this.playerState.nh;this.playerState.isError()?L=B&&B.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.x(this.playerState,2)?L="PLAYER_PLAYBACK_STATE_ENDED":g.x(this.playerState,64)?L="PLAYER_PLAYBACK_STATE_UNSTARTED":g.x(this.playerState,16)||g.x(this.playerState,32)?L="PLAYER_PLAYBACK_STATE_SEEKING":g.x(this.playerState,1)&&g.x(this.playerState,
|
|
4)?L="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.x(this.playerState,1)?L="PLAYER_PLAYBACK_STATE_BUFFERING":g.x(this.playerState,4)?L="PLAYER_PLAYBACK_STATE_PAUSED":g.x(this.playerState,8)&&(L="PLAYER_PLAYBACK_STATE_PLAYING");B=Wiw[$T(this.provider.videoData)];a:switch(this.provider.L.playerCanaryState){case "canary":var f="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":f="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:f="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var K=UI6(this.provider),
|
|
V=this.W<0?A:this.W-this.N;A=this.provider.L.Bk+36E5<(0,g.bc)();L={started:this.W>=0,stateAtSend:L,joinLatencySecs:V,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:f,playerCanaryStage:K,isAd:this.provider.videoData.isAd(),liveMode:B,hasDrm:!!g.Cr(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
|
|
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:iS(this.provider.videoData)};A||g.pE("html5PlayerHealthEvent",L);this.V=!0;this.dispose()}};
|
|
Jt.prototype.l1=function(){this.V||this.send();window.removeEventListener("error",this.f_);window.removeEventListener("unhandledrejection",this.f_);g.Y.prototype.l1.call(this)};
|
|
var fiB=/\bnet\b/;W4E.prototype.update=function(){if(this.G){var A=this.Fb()||0,L=g.Ci(this.provider);A>=this.provider.Np.getDuration()-.1&&(this.previouslyEnded=!0);if(A!==this.N||xI6(this,A,L)){var B;if(!(B=A<this.N||A-this.N>L-this.gN+2||xI6(this,A,L))){B=this.provider.Np.getVolume();var f=B!==this.Wn,K=this.provider.Np.isMuted()?1:0;K!==this.yj?(this.yj=K,B=!0):(!f||this.U>=0||(this.Wn=B,this.U=L),B=L-this.U,this.U>=0&&B>2?(this.U=-1,B=!0):B=!1)}B&&(Rc(this),this.V=A);this.gN=L;this.N=A}}};
|
|
W4E.prototype.Fb=function(){var A=this.provider.Np.Fb();return gp(this.provider.videoData)?A+this.provider.Np.pY():A};eVE.prototype.send=function(A){var L=this;if(!this.cn){var B=zVC(this),f=g.ip(this.uri,B);this.L.J("vss_through_gel_double")&&uT1(f);this.ZM&&!this.L.J("html5_simplify_pings")?BPv(this,f):n2D(this,A).then(function(K){if(L.nD){K=K||{};K.method="POST";var V=fU8(L);V&&(K.postBody=V)}L.ZM&&(K=K||{},K.method="POST",K.postParams={atr:L.attestationResponse});hB(f,K,{token:L.qp,sR:L.mH,mdxEnvironment:L.mdxEnvironment},L.L,A,L.wT,L.isFinal&&L.Bk||L.JF||L.V&&L.Pk)});
|
|
this.cn=!0}};
|
|
eVE.prototype.W=function(A){A===void 0&&(A=NaN);return Number(A.toFixed(3)).toString()};
|
|
var jD={},LxC=(jD.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,jD.LIVING_ROOM_APP_MODE_MAIN=1,jD.LIVING_ROOM_APP_MODE_KIDS=2,jD.LIVING_ROOM_APP_MODE_MUSIC=3,jD.LIVING_ROOM_APP_MODE_UNPLUGGED=4,jD.LIVING_ROOM_APP_MODE_GAMING=5,jD),gr={},A4L=(gr.EMBEDDED_PLAYER_MODE_UNKNOWN=0,gr.EMBEDDED_PLAYER_MODE_DEFAULT=1,gr.EMBEDDED_PLAYER_MODE_PFP=2,gr.EMBEDDED_PLAYER_MODE_PFL=3,gr);g.G(N9,g.Y);g.p=N9.prototype;
|
|
g.p.uf=function(){if(!this.V){this.provider.videoData.hG===16623&&g.CE(Error("Playback for EmbedPage"));var A=Ic(this,"playback");this.G=KxE(this);P$0(this.N);A.X=D5(this);this.W>0&&(A.N-=this.W);A.send();if(this.provider.videoData.Ae){A=this.provider.L;var L=this.provider.videoData,B={html5:"1",video_id:L.videoId,cpn:L.clientPlaybackNonce,ei:L.eventId,ptk:L.Ae,oid:L.gO,ptchn:L.YZ,pltype:L.rO,content_v:uj(L)};L.y5&&Object.assign(B,{m:L.y5});A=g.ip(A.vI+"ptracking",B);Z50(this,A)}this.provider.videoData.qo||
|
|
(NP7(this),FxS(this));this.V=!0;A=this.N;A.N=A.Fb();A.gN=g.Ci(A.provider);!(A.V===0&&A.N<5)&&A.N-A.V>2&&(A.V=A.N);A.G=!0}};
|
|
g.p.onProgress=function(){this.N.update();SLe(this)&&(NP7(this),FxS(this))};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);dw(this);qV6(this.N)};
|
|
g.p.Ov=function(){return zVC(Ic(this,"playback"))};
|
|
g.p.b0=function(A){var L=Ic(this,"engage");L.Vj=A;return abv(L,pj6(this.provider))};wjQ.prototype.isEmpty=function(){return this.endTime===this.startTime};pR.prototype.J=function(A){return this.L.J(A)};
|
|
pR.prototype.getCurrentTime=function(){return this.Np.getCurrentTime()};
|
|
pR.prototype.Fb=function(){return this.Np.Fb()};
|
|
var y47={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.G(g.yn,g.Y);g.p=g.yn.prototype;g.p.uf=function(){this.N&&this.N.uf();this.W&&this.W.uf()};
|
|
g.p.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l0){var A;(A=this.V.get(this.l0))==null||A.onProgress()}else if(this.N)this.N.onProgress()};
|
|
g.p.Qe=function(A){this.qoe&&this.qoe.Qe(A)};
|
|
g.p.J1=OD(25);g.p.ph=OD(31);g.p.TJ=function(A,L){this.qoe&&this.qoe.TJ(A,L)};
|
|
g.p.Om=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l0){var A;(A=this.V.get(this.l0))!=null&&Rc(A.N)}else this.N&&Rc(this.N.N)};
|
|
g.p.Ho=function(A,L){this.qoe&&tgk(this.qoe,A,L);if(this.W)this.W.onError(A)};
|
|
g.p.zT=function(A,L){switch(A){case "M":var B;(B=this.qoe)==null||B.zT(A,L);break;case "A":var f;(f=this.qoe)==null||f.zT(A)}};
|
|
g.p.onPlaybackRateChange=function(A){if(this.qoe)this.qoe.onPlaybackRateChange(A);this.N&&Rc(this.N.N)};
|
|
g.p.IU=OD(48);g.p.Hn=function(A,L,B){this.qoe&&this.qoe.Hn(A,L,B)};
|
|
g.p.jd=function(A,L,B){this.qoe&&this.qoe.jd(A,L,B)};
|
|
g.p.nS=function(A){var L;(L=this.qoe)==null||L.nS(A)};
|
|
g.p.DW=function(A){var L;(L=this.qoe)==null||L.DW(A)};
|
|
g.p.XY=function(A,L,B,f){var K;(K=this.qoe)==null||K.XY(A,L,B,f)};
|
|
g.p.CS=function(A){this.qoe&&this.qoe.CS(A)};
|
|
g.p.C3=function(A,L,B){this.qoe&&this.qoe.C3(A,L,B)};
|
|
g.p.W9=OD(19);g.p.HT=function(){if(this.qoe)return this.qoe.HT()};
|
|
g.p.Ov=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l0){var A,L;return(L=(A=this.V.get(this.l0))==null?void 0:A.Ov())!=null?L:{}}return this.N?this.N.Ov():{}};
|
|
g.p.Vu=function(){var A;return(A=this.qoe)==null?void 0:A.Vu()};
|
|
g.p.fC=function(A,L){var B;(B=this.qoe)==null||B.fC(A,L)};
|
|
g.p.b0=function(A){return this.N?this.N.b0(A):function(){}};
|
|
g.p.getVideoData=function(){return this.provider.videoData};
|
|
g.p.resume=function(){this.qoe&&this.qoe.resume()};g.G(g.gw,g.Y);g.p=g.gw.prototype;g.p.dX=function(A,L){this.sync();L&&this.N.array.length>=2E3&&this.Ln("captions",1E4);L=this.N;if(A.length>1&&A.length>L.array.length)L.array=L.array.concat(A),L.array.sort(L.N);else{A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=B.value,!L.array.length||L.N(B,L.array[L.array.length-1])>0?L.array.push(B):g.px(L.array,B,L.N)}this.V=NaN;this.sync()};
|
|
g.p.K9=function(A){A.length>1E4&&g.CE(new g.iL("Over 10k cueRanges removal occurs with a sample: ",A[0]));if(!this.TL()){var L=new Set(A);this.W=this.W.filter(function(B){return!L.has(B)});
|
|
lUy(this.N,L);this.sync()}};
|
|
g.p.yx=function(A){if(!this.TL()){var L=this.Ef().find(function(B){return B.id===void 0&&B.namespace===A});
|
|
L&&this.K9([L])}};
|
|
g.p.Ln=function(A,L){var B=(isNaN(this.V)?CPD(this):this.V)-L;L=this.Ef().filter(function(f){return f.namespace===A&&f.end<B});
|
|
this.K9(L);return L};
|
|
g.p.Ef=function(){return this.TL()?[]:this.N.array};
|
|
g.p.reset=function(){this.started=!1;this.U.stop();this.N.array=[];this.W=[];this.sync()};
|
|
g.p.Jf=function(A){var L=this.Ef().filter(function(B){return B.namespace===A});
|
|
this.K9(L);return L};
|
|
g.p.SJ=OD(37);g.p.GJ=function(A){var L=[],B=jv(this.N,0x7ffffffffffff),f=[];B=g.m(B);for(var K=B.next();!K.done;K=B.next())K=K.value,K.active&&A===K.associatedClipId&&f.push(K);L=L.concat(mL7(this,f));i5k(this,L);L=[];B=[];K=g.m(this.W);for(var V=K.next();!V.done;V=K.next())V=V.value,V.active&&V.associatedClipId===A&&V.start===0x7ffffffffffff&&B.push(V);L=L.concat(QN0(this,B));i5k(this,L);return f.length};
|
|
g.p.XS=function(A){var L=jv(this.N,0x7ffffffffffff),B=[];L=g.m(L);for(var f=L.next();!f.done;f=L.next())f=f.value,f.active&&A===f.associatedClipId&&B.push(f);this.K9(B)};
|
|
g.p.sync=function(){this.D=!0;if(!this.T){for(var A=3;this.D&&A;)this.D=!1,this.T=!0,$L0(this),this.T=!1,A--;this.Np.getPlayerState().isPlaying()&&(A=TPE(this.N,this.V),!isNaN(A)&&A<0x7ffffffffffff&&(A=(A-this.V)/this.Np.getPlaybackRate(),this.U.start(A)))}};
|
|
g.p.isEnded=function(A,L){L=this.Np.bH()*1E3-L;L=this.Np.I6()&&g.x(A,1)&&L<500;return g.x(A,2)||this.Np.K().J("html5_pseudogapless_shorts")&&L};
|
|
g.p.l1=function(){this.W=[];this.N.array=[];g.Y.prototype.l1.call(this)};rw.prototype.add=function(A){this.N=(this.N+1)%this.data.length;this.data[this.N]=A};
|
|
rw.prototype.forEach=function(A){for(var L=this.N+1;L<this.data.length;L++)A(this.data[L]||0);for(L=0;L<=this.N;L++)A(this.data[L]||0)};
|
|
rw.prototype.R9=function(){var A=[];this.forEach(function(L){A.push(L)});
|
|
return A};
|
|
rw.prototype.clear=function(){for(var A=this.data.length,L=0;L<A;L++)this.data[L]=0;this.W=this.N=this.data.length-1};g.G(HY,g.SN);HY.prototype.YE=function(){return this.X};
|
|
HY.prototype.gQ=function(){return this.policy.qp&&this.videoData.N?this.videoData.N.F9:Math.max(this.D()-tt(this)*this.N,this.videoData.vy())};g.G(lG,g.Y);lG.prototype.yG=function(){var A=this,L=this.Np.pD(),B=this.Np.getPlayerState();if(L&&!B.isError()){var f=L.getCurrentTime(),K=B.state===8&&f>this.N,V=g.x(B,8)&&g.x(B,16),J=this.Np.WI().isBackground()||B.isSuspended();mI(this,this.sx,V&&!J,K,"qoe.slowseek",function(){},"timeout");
|
|
var R=isFinite(this.N);R=V&&R&&L.J3(this.N);var Z=!f||Math.abs(f-this.N)>10,N=this.L.J("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),F=f===0&&this.W&&[11,10].includes(this.W);mI(this,this.cn,R&&Z&&!J&&(!N||!F),K,"qoe.slowseek",function(){L.seekTo(A.N)},"set_cmt");
|
|
Z=R&&aT(L.YJ(),this.N);var D=this.Np.loader;R=!D||D.jR();var I=function(){L.seekTo(A.N+.001)};
|
|
mI(this,this.JF,Z&&R&&!J,K,"qoe.slowseek",I,"jiggle_cmt");R=function(){return A.Np.A1()};
|
|
mI(this,this.Ys,Z&&!J,K,"qoe.slowseek",R,"new_elem");var d=kF(B);F=B.isBuffering();var w=L.YJ(),r=uQ(w,f),h=r>=0&&w.end(r)>f+5;Z=d&&F&&h;N=this.Np.getVideoData();mI(this,this.S4,f<.002&&this.N<.002&&V&&g.wY(this.L)&&g.zp(N)&&!J,K,"qoe.slowseek",R,"slow_seek_shorts");mI(this,this.yj,N.zt()&&V&&!J&&!N.G,K,"qoe.slowseek",R,"slow_seek_gapless_shorts");mI(this,this.Wn,Z&&!J,d&&!F,"qoe.longrebuffer",I,"jiggle_cmt");mI(this,this.qp,Z&&!J,d&&!F,"qoe.longrebuffer",R,"new_elem_nnr");if(D){var Q=D.getCurrentTime();
|
|
V=L.wN();V=Ihv(V,Q);V=!D.isSeeking()&&f===V;mI(this,this.jI,d&&F&&V&&!J,d&&!F&&!V,"qoe.longrebuffer",function(){L.seekTo(Q)},"seek_to_loader")}V={};
|
|
I=uQ(w,Math.max(f-3.5,0));var l=I>=0&&f>w.end(I)-1.1,C=I>=0&&I+1<w.length?w.start(I+1)-w.end(I):9999;V.mindex=r;V.disIndex=I;V.isdisc=I>=0&&l&&C<11;V.close2edge=l;V.gapsize=C;V.buflen=w.length;this.W&&(V.seekSour=this.W);mI(this,this.Vj,d&&F&&!J,d&&!F,"qoe.longrebuffer",function(){},"timeout",V);
|
|
V=B.isSuspended();V=this.Np.Hu()&&!V;mI(this,this.X,V,!V,"qoe.start15s",function(){A.Np.Z2("ad")},"ads_preroll_timeout");
|
|
V=this.L.experiments.GL("html5_use_playback_rate_in_skip_slow_ad")?this.Np.getPlaybackRate()*1E3:1E3;r=f-this.U<V/1E3/2;l=(I=N.isAd())&&d&&!F&&r;V=function(){var O=A.Np,v=O.gf.getVideoData();(!v||!O.videoData.isAd()||v.XA!==O.getVideoData().XA)&&O.videoData.yC||O.O9("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+O.videoData.videoId)};
|
|
mI(this,this.ql,l,!l,"ad.rebuftimeout",V,"skip_slow_ad");r=I&&F&&aT(L.YJ(),f+5)&&r;mI(this,this.mH,r&&!J,!r,"ad.rebuftimeout",V,"skip_slow_ad_buf");V=B.isOrWillBePlaying()&&g.x(B,64)&&!J;mI(this,this.Uv,V,K,"qoe.start15s",function(){},"timeout");
|
|
D=!!D&&!D.AF&&B.isOrWillBePlaying();mI(this,this.ZM,D,K,"qoe.start15s",R,"newElemMse");D=Bi(w,0);w=g.x(B,16)||g.x(B,32);D=!J&&B.isOrWillBePlaying()&&F&&!w&&(g.x(B,64)||f===0)&&D>5;mI(this,this.Cr,D,d&&!F,"qoe.longrebuffer",function(){A.Np.J8()},"reset_media_source");
|
|
mI(this,this.Ex,D,d&&!F,"qoe.longrebuffer",R,"reset_media_element");this.U===0&&(this.T=f);D=F&&this.N===0&&f>1&&f===this.T;mI(this,this.wT,g.zp(N)&&D,d&&!F,"qoe.slowseek",function(){L.seekTo(0)},"reseek_after_time_jump");
|
|
J=B.isOrWillBePlaying()&&!J;h=this.Np.bH()-f<6&&!h&&this.Np.I6();mI(this,this.G,N.zt()&&J&&F&&h,d&&!F,"qoe.longrebuffer",function(){A.Np.A1(!1,!0)},"handoff_end_long_buffer_reload");
|
|
J=this.W===104||this.Np.cX;B=pr(N)&&N.isAd()&&!N.G&&J&&(F||g.x(B,8)&&g.x(B,16));mI(this,this.Ox,B,K,"qoe.start15s",R,"gapless_ad_slow_start");B=pr(N)&&!N.G&&J&&Z;mI(this,this.Nl,B,K,"qoe.longrebuffer",R,"gapless_slow_start");this.U=f;this.D.start()}};
|
|
lG.prototype.Ho=function(A,L,B){L=this.Ov(L);L.wn=B;L.wdup=this.V[A]?"1":"0";this.Np.Ho(new g.K$(A,L));this.V[A]=!0};
|
|
lG.prototype.Ov=function(A){A=Object.assign(this.Np.Ov(!0),A.Ov());this.N&&(A.stt=this.N.toFixed(3));this.Np.getVideoData().isLivePlayback&&(A.ct=this.Np.getCurrentTime().toFixed(3),A.to=this.Np.pY().toFixed(3));delete A.uga;delete A.euri;delete A.referrer;delete A.fexp;delete A.vm;return A};
|
|
Ta.prototype.reset=function(){this.N=this.W=this.V=this.startTimestamp=0;this.U=!1};
|
|
Ta.prototype.test=function(A){if(!this.D||this.W)return!1;if(!A)return this.reset(),!1;A=(0,g.bc)();if(!this.startTimestamp)this.startTimestamp=A,this.V=0;else if(this.V>=this.D)return this.W=A,!0;this.V+=1;return!1};
|
|
Ta.prototype.Ov=function(){var A={},L=(0,g.bc)();this.startTimestamp&&(A.wsd=(L-this.startTimestamp).toFixed());this.W&&(A.wtd=(L-this.W).toFixed());this.N&&(A.wssd=(L-this.N).toFixed());return A};g.G(u0w,g.Y);g.p=u0w.prototype;g.p.setMediaElement=function(A){(this.mediaElement=A)?(this.mediaElement&&(this.D||this.V||!this.mediaElement.EO()||this.seekTo(.01,{zZ:"seektimeline_setupMediaElement"})),Qn(this)):iG(this)};
|
|
g.p.getCurrentTime=function(A){A=A===void 0?!1:A;if(CR(this.Np)){if(this.J("html5_use_centralized_player_time")&&!A&&!isNaN(this.T))return this.T;if(!isNaN(this.W))return this.W}else{if(this.J("html5_use_centralized_player_time")&&!A&&!isNaN(this.T)&&isFinite(this.T))return this.T;if(!isNaN(this.W)&&isFinite(this.W))return this.W}return this.mediaElement&&FZS(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.V||0};
|
|
g.p.kA=function(){return this.Ox};
|
|
g.p.Fb=function(){return this.getCurrentTime()-this.pY()};
|
|
g.p.gQ=function(){return this.N?this.N.gQ():Infinity};
|
|
g.p.isAtLiveHead=function(A){if(!this.N)return!1;A===void 0&&(A=this.getCurrentTime());return bG(this.N,A)};
|
|
g.p.YE=function(){return!!this.N&&this.N.YE()};
|
|
g.p.seekTo=function(A,L){var B=L===void 0?{}:L;L=B.aN===void 0?!1:B.aN;var f=B.OR===void 0?0:B.OR;var K=B.Mi===void 0?!1:B.Mi;var V=B.xz===void 0?0:B.xz;var J=B.zZ===void 0?"":B.zZ;var R=B.seekSource===void 0?void 0:B.seekSource;var Z=B.OU===void 0?!1:B.OU;var N=B.Cu===void 0?!1:B.Cu;B=B.Sf===void 0?!1:B.Sf;Z&&(A+=this.pY());iS(this.videoData)&&R===29&&(this.Ox=void 0);Z=A<this.S4&&!!this.loader;var F=iS(this.videoData)&&N;if(Z&&!F&&(this.Np.Hn("sdai",{sk2bk:A.toFixed(3),mt:(A-this.timestampOffset).toFixed(3),
|
|
lstadj:this.S4.toFixed(3)}),this.S4=NaN,this.timestampOffset-=1E3,(F=this.loader)!=null)){Zhw(F,F.timestampOffset-1E3);var D=F.gT,I=new Set;for(h in D.N){var d=D.N[h].index,w=d.kN();w&&!I.has(w)&&(w.startTime+=1E3,w.endTime=w.startTime+w.duration,I.add(w));d.segments.length&&(w=d.segments[d.segments.length-1],d.segments=[],d.segments.push(w))}F.TV&&F.TV.hM();if(F.policy.a7&&F.policy.W){var r;(r=F.Vj)==null||r.hM()}ZU(F.V,0,0,!0);F.tU=!1}var h=A;(r=iS(this.videoData))&&N?h=!0:(F=this.J("html5_always_allow_sqless_sync")&&
|
|
this.videoData.iC(),(r||F)&&J==="chunkSelectorSynchronize"?h=!0:(r=!isFinite(h)||(this.N?bG(this.N,h):h>=this.oA())||!g.MG(this.videoData),r||(h={st:h,mst:this.oA()},this.N&&this.J("html5_high_res_seek_logging")&&(h.ht=this.N.gQ(),h.adft=ht(this.N)),this.Np.Hn("seeknotallowed",h)),h=r));if(!h)return this.U&&(this.U=null,RH1(this)),g.iX(this.getCurrentTime());h=.005;N&&this.J("html5_sabr_seek_no_shift_tolerance")&&(h=0);if(Math.abs(A-this.W)<=h&&this.wT)return this.D;this.J("html5_reset_rate_limiter_on_user_seek")&&
|
|
(h=this.loader)!=null&&(h.W.qp.S8=0);this.J("html5_reset_backoff_on_user_seek")&&(h=this.loader)!=null&&(h.W.X=void 0);J&&(h=A,this.L.hw()||this.J("html5_log_seek_reasons"))&&(J={reason:J,tgt:h},this.J("html5_sabr_csdai_seek_log")&&(J.source=R),this.Np.Hn("seekreason",J));R&&(this.Wn.W=R);this.wT&&iG(this);this.D||(this.D=new yV);A&&!isFinite(A)&&oqS(this,!1);(J=B||Z)||(J=A,J=!(this.videoData.isLivePlayback&&this.videoData.V&&!this.videoData.V.N&&!(this.mediaElement&&this.mediaElement.J2()>0&&this.mediaElement.KU()>
|
|
0)||ta(this.videoData)&&this.vy()===this.oA(!1)?0:isFinite(J)||!ta(this.videoData)));J||(A=$H(this,A,K));A&&!isFinite(A)&&oqS(this,!1);this.J("html5_use_centralized_player_time")?this.T=A:this.W=this.V=A;this.Cr=V;this.X=0;this.N&&(K=this.N,V=A,qLD(K,V,!1),PPS(K,V));K=this.Np;V=A;J={aN:L,seekSource:R};K.M8.V=V;B=K.Vl;B.mediaTime=V;B.N=!0;J.aN&&K.hm(J);J=V>K.videoData.endSeconds&&V>K.videoData.limitedPlaybackDurationInSeconds;K.uD&&J&&isFinite(V)&&PR8(K);V<K.oA()-.01&&(J=hA(K.playerState,2),g.x(J,
|
|
8)&&(J=hA(J,4)),K.q8(J));K.publish("SEEK_TO",V);this.Ys>0&&A<this.Ys&&(this.Ys=0,this.Np.A1());this.D&&(L?f&&this.sx.start(f):zJ8(this,{Cu:N,seekSource:R}));(L=this.Np.uD)&&A>L.start&&PR8(this.Np);return this.D};
|
|
g.p.oA=function(A){if(!this.videoData.isLivePlayback)return this.Np.videoData.oA();var L;return ZI(this.videoData)&&((L=this.mediaElement)==null?0:L.isPaused())&&this.videoData.N?(A=this.getCurrentTime(),$F7(this.wX(A)*1E3)+A):this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(this.videoData)&&this.videoData.N?A?this.videoData.N.Vj||0:this.videoData.N.F9||0:ta(this.videoData)&&this.videoData.hd&&this.videoData.N?this.videoData.N.oA()+this.timestampOffset:this.videoData.V&&this.videoData.V.N?
|
|
!A&&this.N?this.N.gQ():this.Np.videoData.oA()+this.timestampOffset:this.mediaElement?zc()?$F7(this.mediaElement.r_().getTime()):this.mediaElement.KU()+this.timestampOffset||this.timestampOffset:this.timestampOffset};
|
|
g.p.vy=function(){if(this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(this.videoData)){var A;return((A=this.videoData.N)==null?void 0:A.CK)||0}A=this.videoData?this.videoData.vy()+this.timestampOffset:this.timestampOffset;if(ZI(this.videoData)&&this.videoData.N){var L,B=Number((L=this.videoData.progressBarStartPosition)==null?void 0:L.utcTimeMillis)/1E3;if(!isNaN(B)&&(L=this.cA(B),!isNaN(L)))return Math.max(A,L)}return A};
|
|
g.p.tB=function(){this.D||this.seekTo(this.V,{zZ:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
|
|
g.p.vT=function(){return this.wT&&!isFinite(this.W)};
|
|
g.p.l1=function(){Bvw(this,null);this.Wn.dispose();g.Y.prototype.l1.call(this)};
|
|
g.p.Ov=function(){var A={};this.loader&&Object.assign(A,this.loader.Ov());this.mediaElement&&Object.assign(A,this.mediaElement.Ov());return A};
|
|
g.p.uV=function(A){this.timestampOffset=A};
|
|
g.p.getStreamTimeOffset=function(){return ta(this.videoData)?0:this.videoData.N?this.videoData.N.getStreamTimeOffset():0};
|
|
g.p.pY=function(){return this.timestampOffset};
|
|
g.p.wX=function(A){return this.videoData&&this.videoData.N?this.videoData.N.wX(A-this.timestampOffset):NaN};
|
|
g.p.Hq=function(){if(!this.mediaElement)return 0;if(Ur(this.videoData)){var A=this.mediaElement.lB()+this.timestampOffset-this.vy(),L=this.oA()-this.vy();return Math.max(0,Math.min(1,A/L))}return this.mediaElement.Hq()};
|
|
g.p.bG=function(A){this.G&&(this.G.N=A)};
|
|
g.p.Qb=function(A,L,B){this.Np.Hn("requestUtcSeek",{time:A});iS(this.videoData)&&(this.Ox=A);var f;(f=this.loader)==null||f.Qb(A,B);L&&(this.ZM=L)};
|
|
g.p.o5=function(A){iS(this.videoData)&&(this.Ox=void 0);this.ZM?(this.Np.Hn("utcSeekingFallback",{source:"streamTime",timeSeconds:this.ZM}),this.Np.seekTo(this.ZM,{zZ:"utcSeekingFallback_streamTime"}),this.ZM=0):(A=this.cA(A),isNaN(A)||(this.Np.Hn("utcSeekingFallback",{source:"estimate",timeSeconds:A}),this.Np.seekTo(A,{zZ:"utcSeekingFallback_estimate"})))};
|
|
g.p.Uw=function(){this.ZM=0};
|
|
g.p.yl=function(A){this.Ys=A};
|
|
g.p.cA=function(A){var L=this.getCurrentTime();if(isNaN(L))return NaN;var B=this.wX(L);return isNaN(B)?NaN:A-(B-L)};
|
|
g.p.J=function(A){return this.L&&this.L.J(A)};g.G(Xz,g.Y);Xz.prototype.start=function(){this.W.start()};
|
|
Xz.prototype.stop=function(){this.W.stop()};
|
|
Xz.prototype.clear=function(){for(var A=g.m(this.N.values()),L=A.next();!L.done;L=A.next())L.value.clear()};
|
|
Xz.prototype.sample=function(){for(var A=g.m(this.V),L=A.next();!L.done;L=A.next()){var B=g.m(L.value);L=B.next().value;B=B.next().value;this.N.has(L)||this.N.set(L,new y66(KCR.has(L)));this.N.get(L).update(B())}this.W.start()};
|
|
var KCR=new Set(["networkactivity"]);y66.prototype.update=function(A){this.W?(this.buffer.add(A-this.N||0),this.N=A):this.buffer.add(A)};
|
|
y66.prototype.clear=function(){this.buffer.clear();this.N=0};cY.prototype.Er=function(){return this.started};
|
|
cY.prototype.start=function(){this.started=!0};
|
|
cY.prototype.reset=function(){this.finished=this.started=!1};var H6w=!1;g.G(g.WY,g.SN);g.p=g.WY.prototype;g.p.l1=function(){g.sQ(this.p7);Vbk(this.wI);this.visibility.unsubscribe("visibilitystatechange",this.wI);gUy(this.CY);g.jq(this.CY);ev(this);g.qT.WF(this.XG);this.UN();this.kJ=null;g.jq(this.videoData);g.jq(this.KQ);g.jq(this.ol);g.jq(this.Oa);g.gH(this.QvF);this.uD=null;g.SN.prototype.l1.call(this)};
|
|
g.p.C3=function(A,L,B,f,K){if(this.L.J("html5_log_ad_playback_docid")){var V=this.CY;if(V.qoe){V=V.qoe;var J=this.L.Wn||"yt";g.TL(V,g.Ci(V.provider),"ad_playback",[A,L,B,K,J])}}else this.CY.C3(A,L,B);this.J("html5_log_media_perf_info")&&this.Hn("adloudness",{ld:f.toFixed(3),cpn:A})};
|
|
g.p.R3=function(){var A;return(A=this.loader)==null?void 0:A.R3()};
|
|
g.p.SC=function(){var A;return(A=this.loader)==null?void 0:A.SC()};
|
|
g.p.bf=function(){var A;return(A=this.loader)==null?void 0:A.bf()};
|
|
g.p.iI=function(){var A;return(A=this.loader)==null?void 0:A.iI()};
|
|
g.p.U6=function(){return this.videoData.U6()};
|
|
g.p.R0=function(){return this.J("html5_not_reset_media_source")&&this.videoData.isLivePlayback};
|
|
g.p.i_=function(){this.videoData.X&&(this.videoData.I_=this.videoData.I_||this.gf.e4().R3(),this.videoData.FT=this.videoData.FT||this.gf.e4().SC());if(sUv(this.videoData)||!Sg(this.videoData)){var A=this.videoData.errorDetail;this.O9(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),A,A,this.videoData.Qr||void 0)}this.J("html5_generate_content_po_token")&&this.HG();this.J("html5_enable_d6de4")&&this.Xg()};
|
|
g.p.getVideoData=function(){return this.videoData};
|
|
g.p.K=function(){return this.L};
|
|
g.p.M_=function(){return this.IC.M_(this.kJ)};
|
|
g.p.WI=function(){return this.visibility};
|
|
g.p.Ur=function(){return this.mediaElement&&this.mediaElement.wy()?this.mediaElement.Zg():null};
|
|
g.p.pD=function(){return this.mediaElement};
|
|
g.p.pn=function(){if(this.videoData.errorCode)return!1;this.K().T&&this.K().houseBrandUserStatus&&this.Hn("hbut",{status:this.K().houseBrandUserStatus},!0);if(this.videoData.gX())return!0;this.O9("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
|
|
g.p.dK=function(A){(A=A===void 0?!1:A)||jNe(this.CY);this.nu=A;!this.pn()||this.zW.Er()?Eqk(this)&&this.zW.Er()&&!this.zW.finished&&!this.nu&&this.Ue():(this.zW.start(),A=this.CY,g.Ci(A.provider),A.qoe&&hIL(A.qoe),this.Ue())};
|
|
g.p.Ue=function(){if(this.videoData.isLoaded()){var A=this.KQ;g.Am(A.tF.experiments,"html5_player_min_build_cl")>0&&g.Am(A.tF.experiments,"html5_player_min_build_cl")>839483937&&g2e(A,"oldplayer");Uq1(this)}else this.videoData.TZ||this.videoData.Gt?this.nu&&Eqk(this)||(this.videoData.TZ?VML(this.videoData):(A=this.CY,A.qoe&&(A=A.qoe,Oi(A,"protected"),A.provider.videoData.D?A.Yt():A.provider.videoData.subscribe("dataloaded",A.Yt,A)),LW7(this.videoData))):!this.videoData.loading&&this.i7&&c66(this)};
|
|
g.p.hW=function(A){this.TV=A;this.loader&&(KfQ(this.loader,A),this.Hn("sdai",{sdsstm:1}))};
|
|
g.p.cg=function(A,L,B){var f;(f=this.loader)==null||f.cg(A,L,B)};
|
|
g.p.gM=function(A){var L;(L=this.loader)==null||L.gM(A)};
|
|
g.p.m$=function(){var A;return((A=this.loader)==null?void 0:A.e2())||null};
|
|
g.p.isFullscreen=function(){return this.visibility.isFullscreen()};
|
|
g.p.isBackground=function(){return this.visibility.isBackground()};
|
|
g.p.A8=function(){var A=this;q9(this).then(function(){return PY(A)});
|
|
this.playerState.isOrWillBePlaying()&&this.playVideo()};
|
|
g.p.Am=function(){this.mediaElement&&this.mediaElement.activate();this.dK();this.pn()&&!g.x(this.playerState,128)&&(this.Ek.Er()||(this.Ek.start(),this.videoData.Bk?this.q8(Hi(this.playerState,4)):this.q8(Hi(Hi(this.playerState,8),1))),M2v(this))};
|
|
g.p.Im=function(){return this.zW.finished};
|
|
g.p.sendAbandonmentPing=function(){g.x(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.j3(!0),gUy(this.CY),g.jq(this.CY),g.qT.WF(this.XG))};
|
|
g.p.E5=function(A,L,B){A=A===void 0?!0:A;(L===void 0||L)&&this.mediaElement&&this.mediaElement.pause();A&&B&&this.loader&&ta(this.videoData)&&this.loader.XY(B);this.q8(A?new g.Gu(14):new g.Gu)};
|
|
g.p.VI=function(){this.CY.Om()};
|
|
g.p.O9=function(A,L,B,f,K,V){var J,R;g.Tk(pk9,B)?J=B:B?R=B:J="GENERIC_WITHOUT_LINK";f=(f||"")+(";a6s."+fz());if(A==="auth"||A==="drm.auth"||A==="heartbeat.stop")B&&(f+=";r."+B.replaceAll(" ","_")),V&&(f+="sr."+V.replaceAll(" ","_"));L={errorCode:A,errorDetail:K,errorMessage:R||g.XB[J]||"",N_:J,Qr:V||"",yV:f,V5:L,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=A;xH(this,"dataloaderror");this.q8(sJ(this.playerState,128,L));g.qT.WF(this.XG);ev(this);this.aC()};
|
|
g.p.Z2=function(A){this.n3=this.n3.filter(function(L){return A!==L});
|
|
this.Ek.Er()&&M2v(this)};
|
|
g.p.BF=function(){var A;(A=!!this.n3.length)||(A=this.I4.N.array[0],A=!!A&&A.start<=-0x8000000000000);return A};
|
|
g.p.YE=function(){return this.M8.YE()};
|
|
g.p.isPlaying=function(){return this.playerState.isPlaying()};
|
|
g.p.r6=function(){return this.playerState.r6()&&this.videoData.Bk};
|
|
g.p.getPlayerState=function(){return this.playerState};
|
|
g.p.T8=function(A){var L;(L=this.loader)==null||L.T8(A)};
|
|
g.p.Jm=function(A){var L;(L=this.loader)==null||L.Jm(A)};
|
|
g.p.getPlayerType=function(){return this.playerType};
|
|
g.p.getPreferredQuality=function(){if(this.kJ){var A=this.kJ;A=A.videoData.nO.compose(A.videoData.vC);A=My(A)}else A="auto";return A};
|
|
g.p.U0=OD(12);g.p.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
|
|
g.p.setMediaElement=function(A){if(this.mediaElement&&A.Zg()===this.mediaElement.Zg()&&(A.isView()||this.mediaElement.isView())){if(A.isView()||!this.mediaElement.isView())this.qv(),this.mediaElement=A,this.mediaElement.fH(this),Sik(this),this.M8.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.UN();if(!this.playerState.isError()){var L=hA(this.playerState,512);g.x(L,8)&&!g.x(L,2)&&(L=Hi(L,1));A.isView()&&(L=hA(L,64));this.q8(L)}this.mediaElement=A;this.mediaElement.fH(this);!g.wY(this.L)&&
|
|
this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Sik(this);this.M8.setMediaElement(this.mediaElement);this.J("html5_prewarm_media_source")&&!this.KQ.Nm()&&this.mediaElement.c5()}};
|
|
g.p.UN=function(A,L,B){A=A===void 0?!1:A;L=L===void 0?!1:L;B=B===void 0?!1:B;if(this.mediaElement){var f=this.getCurrentTime();f>0&&(this.M8.V=f);this.M8.setMediaElement(null);!A&&this.R0()?fjk(this):this.GB(B);this.loader&&(IS(this.loader),ac(this,L));this.uv.stop();if(this.mediaElement&&(!this.Ek.Er()&&!this.Hu()||this.playerState.isError()||g.x(this.playerState,2)||this.q8(Hi(this.playerState,512)),this.mediaElement)){this.qv();if(A||!this.mediaElement.isView())this.Rv.WZ("mesv_s"),this.mediaElement.stopVideo(),
|
|
Ak(this);this.mediaElement.fH(null);this.mediaElement=null}}};
|
|
g.p.playVideo=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;var B=this,f,K,V,J,R,Z;return g.c(function(N){if(N.N==1){var F=window.google_image_requests;F&&F.length>10&&(window.google_image_requests=F.slice(-10));if(g.x(B.playerState,128))return N.return();if(B.KQ.AT())return B.publish("signatureexpired"),N.return();B.mediaElement&&jNe(B.CY);B.Am();(g.x(B.playerState,64)||A)&&B.q8(Hi(B.playerState,8));return B.Ek.finished&&B.mediaElement?B.kJ||!B.On?N.Ux(2):g.X(N,B.On,3):N.return()}if(N.N!=2&&
|
|
g.x(B.playerState,128))return N.return();if(!B.videoData.V)return B.videoData.isLivePlayback&&!g.b9(B.L.D,!0)?(f="html5.unsupportedlive",K=2):(f=B.videoData.U6()?"fmt.unplayable":"fmt.noneavailable",K=1),g.CE(Error("selectableFormats")),B.O9(f,K,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),N.return();if(B.QC()&&B.videoData.V.N)return N.return(q9(B));if(CR(B))F=B.M8,HK(F.videoData)&&!F.isAtLiveHead(F.getCurrentTime())&&F.YE()&&F.Np.seekTo(Infinity,{zZ:"seektimeline_peggedToLive",
|
|
seekSource:34});else if(HK(B.videoData)&&(V=B.getCurrentTime()<B.vy()-15,J=g.MG(B.videoData)&&B.playerState.isPaused(),R=g.x(B.playerState,1024),F=B.M8,F.videoData.iC()&&VW(F.videoData)||R||!V&&!J||(J?B.seekTo(Infinity,{zZ:"videoplayer_unpauseLiveOnly",seekSource:102}):B.seekTo(B.vy(),{zZ:"videoplayer_outOfWindow",seekSource:102})),!B.isAtLiveHead(void 0,!0)&&B.YE()&&(Z={zZ:"videoplayer_peggedToLive",seekSource:34},B.seekTo(Infinity,Z)),g.x(B.playerState,256)&&B.videoData.G&&B.M8.vT()))return B.q8(b1(B.playerState,
|
|
8,4)),N.return();g.x(B.playerState,4)&&g.x(B.playerState,16)&&B.q8(b1(B.playerState,9,4));if(PY(B,L))return d81(B),N.return();D87(B);g.VK(N)})};
|
|
g.p.J8=function(A){A&&this.Ho(new g.K$("qoe.restart",A));this.q8(Hi(this.playerState,2048));this.GB();A=this.videoData.N&&PZ(this.videoData.N);var L=this.mediaElement&&this.mediaElement.isView();A||L?(this.loader&&YUe(this.loader),this.A1()):(PY(this),this.playerState.isOrWillBePlaying()&&this.playVideo());this.playerState.isOrWillBePlaying()||this.q8(hA(this.playerState,2048))};
|
|
g.p.KO=function(){if(!this.kJ)return[];var A=HT6(this.IC,this.kJ,this.Vt());return this.kJ.N.KO(A)};
|
|
g.p.Q9=function(){if(!this.kJ)return[];var A=HT6(this.IC,this.kJ,this.Vt());return this.kJ.N.Q9(A)};
|
|
g.p.T4=function(){var A,L;return this.IC.T4(!!((A=this.kJ)==null?0:(L=A.N)==null?0:L.N))};
|
|
g.p.Ms=function(){return this.kJ?this.IC.Ms(this.kJ):fr};
|
|
g.p.Vt=function(){var A=this.Gq?this.Gq.Vt():wp(this.videoData)&&this.videoData.N&&PZ(this.videoData.N)?this.videoData.B$?fr:e00:fr;this.sX&&(A=A.compose(EgK));return A};
|
|
g.p.vS=function(){return this.kJ?HT6(this.IC,this.kJ,this.Vt()):fr};
|
|
g.p.gV=function(){var A=this.TP(),L=this.gf.df().videoId;return this.gf.Pq.gV(A)||this.gf.Pq.gV(L)};
|
|
g.p.zT=function(A){if(A.N===fr.N)this.CY.zT("A");else{var L,B,f,K,V=(L=this.kJ)==null?void 0:(B=L.N)==null?void 0:(f=B.Q9(A))==null?void 0:(K=f.map(function(Z){return Z.video}))==null?void 0:K.sort(function(Z,N){var F,D;
|
|
return((F=N.W)!=null?F:0)-((D=Z.W)!=null?D:0)}),J,R;
|
|
this.CY.zT("M",(R=V==null?void 0:(J=V[0])==null?void 0:J.W)!=null?R:SNL(A.N)?A.N:0)}};
|
|
g.p.OO=function(A,L,B){this.zT(A);this.videoData.nO=A;if(this.kJ&&L){L=this.IC;var f=this.kJ;if(f.N.N){var K=g.Am(L.L.experiments,"html5_max_quality_sel_upgrade"),V=K?A.N:g.ka[My(A)],J=f.N.videoInfos[0].video.qualityOrdinal,R=J!==0&&A.N===J;J=h2()>J;if(!R||!J){K&&R&&(V=Math.max(V,K));var Z;K=bTD(L,(Z=f.N)==null?void 0:Z.videoInfos);Z=L.Np.getPlaybackRate();Z>1&&K&&(Z=DKe(L.L.D,f.N.videoInfos,Z),A.N!==0&&Z<A.N&&L.Np.setPlaybackRate(1));var N,F;A=((N=f.videoData.W)==null?void 0:(F=N.video)==null?void 0:
|
|
F.qualityOrdinal)||0;g.OS("yt-player-quality",{quality:V,previousQuality:A},31104E3);L.Ml.policy.U=h2()>=480;if(L.J("html5_perf_cap_override_sticky")){N=L.V;L=L.J("html5_perserve_av1_perf_cap");L=L===void 0?!1:L;if(L===void 0?0:L){F=t2();A=g.m(Object.keys(F));for(V=A.next();!V.done;V=A.next())V=V.value,V.indexOf("1")!==0&&delete F[V];g.OS("yt-player-performance-cap",F,2592E3)}else g.c9("yt-player-performance-cap");IBC(L);if(L){L=g.m(BL.keys());for(F=L.next();!F.done;F=L.next())F=F.value,F.startsWith("1")||
|
|
BL.delete(F);L=g.m(Vn.values());for(F=L.next();!F.done;F=L.next())F=F.value,F.startsWith("1")||Vn.delete(F);L=g.m(N.keys());for(F=L.next();!F.done;F=L.next())F=F.value,F.startsWith("1")||N.delete(F)}else BL.clear(),Vn.clear(),N.clear()}}}}this.loader&&(L=this.loader,B=B||"",L.policy.N?wP(L.U.N,B):wP(L.N.D,B));this.bD()};
|
|
g.p.getUserPlaybackQualityPreference=function(){return this.videoData.V&&!this.videoData.V.N?My(this.videoData.nO):cZ[h2()]};
|
|
g.p.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
|
|
g.p.setUserAudio51Preference=function(A,L){this.getUserAudio51Preference()!==A&&(this.Hn("toggle51",{pref:A}),g.OS("yt-player-audio51",A,L?31536E3:2592E3),this.A8())};
|
|
g.p.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
|
|
g.p.setProximaLatencyPreference=function(A){var L=this.getProximaLatencyPreference();this.Hn("proxima",{pref:A});g.OS("yt-player-proxima-pref",A,31536E3);L!==A&&(A=this.M8,A.Nl=!0,A.Np.seekTo(Infinity,{zZ:"seektimeline_proximaSeekToHead",seekSource:34}))};
|
|
g.p.getProximaLatencyPreference=function(){var A;return(A=b6())!=null?A:0};
|
|
g.p.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
|
|
g.p.HG=function(){this.videoData.videoId?this.gf.HG(this.videoData):this.Hn("povid",{})};
|
|
g.p.Xg=function(){this.videoData.videoId?this.gf.Xg(this.videoData):this.Hn("piavid",{})};
|
|
g.p.bD=function(){if(!this.TL()&&!g.x(this.playerState,128)&&this.videoData.V){if(this.videoData.V.N)YH(this);else{var A=uG(this),L=this.videoData;a:{var B=this.videoData.Nl;if(A.N){for(var f=g.m(B),K=f.next();!K.done;K=f.next()){K=K.value;var V=K.getInfo(),J=g.ka[V.video.quality];if((!A.V||V.video.quality!=="auto")&&J<=A.N){B=K;break a}}B=B[B.length-1]}else B=B[0]}L.wT=B;xq1(this,A.reason,NgD(this,this.videoData.wT))}if(this.J("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.M8.yj=
|
|
!1,this.playVideo()}};
|
|
g.p.WG=function(A,L){if(this.TL()||g.x(this.playerState,128))return!1;var B,f=!((B=this.videoData.V)==null||!B.N);B=f&&L?this.getCurrentTime()-this.pY():NaN;if(A.ri&&A.ri.id){var K=this.CY;if(K.qoe){K=K.qoe;var V=[A.ri.id,isNaN(B)?"m":"t"];g.TL(K,g.Ci(K.provider),"afi",V)}}if(f)return L&&(f=fz0(this.M8),this.Hn("aswh",{id:A.id,xtags:A.xtags,bh:f.toFixed(3)})),this.loader.setAudioTrack(A,B,L),!0;if(nqQ(this)){a:{L=this.mediaElement.audioTracks();f=!1;for(B=0;B<L.length;++B)if(K=L[B],(unE[K.label]||
|
|
K.label)===A.ri.getName()){if(K.enabled){L=!1;break a}f=K.enabled=!0}else K.enabled&&(K.enabled=!1);L=f?!0:void 0}L&&this.Hn("hlsaudio",{id:A.id})}else{a:if(L=this.videoData,L.U&&!WV(L.U)||A===L.ye||!L.Nl||L.Nl.length<=0)L=!1;else{f=g.m(L.Nl);for(B=f.next();!B.done;B=f.next()){B=B.value;if(!(B instanceof se)){L=!1;break a}K=A.ri.getId();B.W&&(FUe(B.W,K),B.wi=null)}L.ye=A;L=!0}L&&PY(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.Hn("hlsaudio",{id:A.id}))}return!0};
|
|
g.p.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
|
|
g.p.getAudioTrack=function(){if(nqQ(this)){var A=az0(this);if(A)return A}return this.videoData.getAudioTrack()};
|
|
g.p.ZH=function(){return this.videoData.U};
|
|
g.p.a_=function(A){return this.WN?this.WN.a_(A):1};
|
|
g.p.VF=function(){this.WN&&this.WN.VF()};
|
|
g.p.H4=function(){if(this.videoData.J("html5_trigger_loader_when_idle_network")&&!this.videoData.iC()&&iS(this.videoData)){var A;(A=this.loader)!=null&&A.yG()}};
|
|
g.p.Bp=function(){if(pr(this.videoData)&&this.videoData.J("html5_gapless_append_early")){var A;(A=this.loader)!=null&&A.yG()}};
|
|
g.p.onPlayerRequestSent=function(A){this.gf.onPlayerRequestSent(A)};
|
|
g.p.yJ=function(A){A=A===void 0?!1:A;if(this.loader){var L=this.loader,B=L.yJ;var f=this.videoData;f=f.J("html5_ssdai_use_post_for_media")&&f.enableServerStitchedDai?!1:ta(f)&&f.yC&&!f.isAd();B.call(L,f,A)}};
|
|
g.p.GB=function(A){A=A===void 0?!1:A;this.AF&&(pW(this.AF),this.yJ(A),this.AF.dispose(),this.AF=null)};
|
|
g.p.Fy=function(){return this.AF};
|
|
g.p.Mv=function(A,L,B,f){function K(J){try{var R=L,Z=B;R=R===void 0?!1:R;Z=Z===void 0?!1:Z;if(V.AF&&(!J||V.AF===J)){var N=V.getDuration();!N&&ta(V.videoData)&&(N=25200,V.J("html5_use_centralized_player_time")&&(N=46800));V.AF.isView?(J=N,J>V.AF.getDuration()&&JBw(V,J)):JBw(V,N);var F=V.loader,D=V.AF;R=R===void 0?!1:R;Z=Z===void 0?!1:Z;F.policy.JF&&(F.policy.Ys&&F.Hn("loader",{setsmb:0}),F.KV(),F.policy.JF=!1);UmL(F,Z);if(!dz(D)){var I=Db(F.videoTrack),d=Db(F.audioTrack),w=(I?I.info.b1:F.videoTrack.b1).info,
|
|
r=(d?d.info.b1:F.audioTrack.b1).info,h=F.policy.kR,Q=w.mimeType+(h===void 0?"":h),l=r.mimeType,C=w.Bn,O=r.Bn,v;D.Wn=(v=D.AF)==null?void 0:v.addSourceBuffer(l);var U;D.qp=Q.split(";")[0]==="fakesb"?void 0:(U=D.AF)==null?void 0:U.addSourceBuffer(Q);D.Sa&&(D.Sa.webkitSourceAddId("0",l),D.Sa.webkitSourceAddId("1",Q));var a=new JA(D.Wn,D.Sa,"0",mP(l),O,!1),o0=new JA(D.qp,D.Sa,"1",mP(Q),C,!0);yG0(D,a,o0)}I=R;d=Z;I=I===void 0?!1:I;d=d===void 0?!1:d;ej(F.videoTrack,D.W||null,d);ej(F.audioTrack,D.N||null,
|
|
d);F.AF=D;F.AF.D=!0;I||F.resume();D.N.tA(F.Cr,F);D.W.tA(F.Cr,F);try{F.yG()}catch(B6){g.mL(B6)}V.publish("mediasourceattached")}}catch(B6){g.CE(B6),V.handleError(new g.K$("fmt.unplayable",{msi:"1",ename:B6&&typeof B6==="object"&&"name"in B6?String(B6.name):void 0,trg:"setmediasrc"},1))}}
|
|
var V=this;L=L===void 0?!1:L;B=B===void 0?!1:B;VnC(this,f===void 0?!1:f);this.AF=A;this.R0()&&Ik(this.AF)==="open"?K(this.AF):pHy(this.AF,K)};
|
|
g.p.kD=function(A){this.vE.set(A.initData,A);this.Gq&&(this.Gq.kD(A),this.J("html5_eme_loader_sync")||this.vE.remove(A.initData))};
|
|
g.p.pg=function(A){this.videoData.zK=g.XX("auto",A,!1,"u");YH(this)};
|
|
g.p.bG=function(A){var L=A.reason,B=A.N.info,f=A.token,K=A.videoId,V=this.CY,J=this.videoData;if(B!==J.U){var R=!J.U;J.U=B;var Z=L==="m"||L==="t";Z||(L=R?"i":"a");this.L.experiments.GL("html5_refactor_sabr_audio_format_selection_logging")?this.N$=new s5E(J,B,L,"",f,K):(L=new s5E(J,B,L,"",f),V.qoe&&(V=V.qoe,B=g.Ci(V.provider),QhD(V,B,L)));this.publish("internalaudioformatchange",J,!R&&Z)}this.VF();this.M8.bG(A.N.index)};
|
|
g.p.FG=function(A){this.publish("localmediachange",A)};
|
|
g.p.EU=function(A){A=A===void 0?{}:A;var L;(L=this.loader)==null||L.EU(this.L,jC(this.videoData),A)};
|
|
g.p.AT=function(){return this.KQ.AT()};
|
|
g.p.lj=function(A){this.Ho(new g.K$("staleconfig",{reason:A}))};
|
|
g.p.handleError=function(A){this.KQ.handleError(A)};
|
|
g.p.Nm=function(){return this.KQ.Nm()};
|
|
g.p.o5=function(A){this.M8.o5(A)};
|
|
g.p.A1=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;var B=this,f,K,V;return g.c(function(J){if(J.N==1){B.loader&&B.loader.T3();B.loader&&B.loader.TL()&&ev(B);if(B.J("html5_enable_vp9_fairplay")&&B.U6()&&(f=B.videoData.N)!=null)for(var R in f.N)f.N.hasOwnProperty(R)&&(f.N[R].N=null,f.N[R].V=!1);B.q8(Hi(B.playerState,2048));B.publish("newelementrequired");return A?g.X(J,q9(B),2):J.Ux(2)}B.videoData.iC()&&((K=B.loader)==null?0:K.ZM)&&!CR(B)&&((V=B.isAtLiveHead())&&HK(B.videoData)?B.seekTo(Infinity,
|
|
{zZ:"videoPlayer_getNewElement"}):B.videoData.SD&&B.loader&&(R=B.loader,R.gT.iC&&(R.gT.SD||R.gT.U||R.gT.isPremiere?(R.seek(0,{zZ:"loader_resetSqless"}),R.videoTrack.T=!0,R.audioTrack.T=!0,R.videoTrack.U=!0,R.audioTrack.U=!0):A7(R.gT)&&lR(R))));L&&B.seekTo(0,{seekSource:105});g.x(B.playerState,8)&&B.playVideo();g.VK(J)})};
|
|
g.p.tT=function(A){this.Hn("hgte",{ne:+A});this.videoData.X=!1;A&&this.A1();this.loader&&YUe(this.loader)};
|
|
g.p.BS=function(A){this.Hn("newelem",{r:A});this.A1()};
|
|
g.p.pauseVideo=function(A){A=A===void 0?!1:A;if((g.x(this.playerState,64)||g.x(this.playerState,2))&&!A)if(g.x(this.playerState,8))this.q8(b1(this.playerState,4,8));else if(this.r6())PY(this);else return;g.x(this.playerState,128)||(A?this.q8(Hi(this.playerState,256)):this.q8(b1(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.MG(this.videoData)&&this.loader&&ac(this,!1)};
|
|
g.p.stopVideo=function(){this.pauseVideo();this.loader&&(ac(this,!1),this.loader.KV())};
|
|
g.p.aC=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;if(this.R0()&&L){var B;(B=this.mediaElement)==null||B.aC()}else{var f;(f=this.mediaElement)==null||f.stopVideo()}Ak(this);ev(this);g.x(this.playerState,128)||(A?this.q8(hA(hA(Hi(this.playerState,4),8),16)):this.q8(sJ(this.playerState)));this.videoData.videoId&&this.L.S4.remove(this.videoData.videoId)};
|
|
g.p.seekTo=function(A,L){L=L===void 0?{}:L;g.x(this.playerState,2)&&PY(this);L.Ub4&&this.q8(Hi(this.playerState,2048));if((L.seekSource===58||L.seekSource===60)&&this.J("html5_update_vss_during_gapless_seeking")){var B=this.CY;B.N&&(B=B.N,L.seekSource===58?B.N.update():B.V&&(dw(B),ww(B).send(),B.U=NaN))}this.M8.seekTo(A,L);this.I4.sync()};
|
|
g.p.hm=function(A){this.Rv.U.W=(0,g.bc)();g.x(this.playerState,32)||(this.q8(Hi(this.playerState,32,A==null?void 0:A.seekSource)),g.x(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.iq()};
|
|
g.p.wW=function(A){A=A==null?void 0:A.seekSource;g.x(this.playerState,32)?(this.q8(b1(this.playerState,16,32,A)),this.publish("endseeking")):g.x(this.playerState,2)||this.q8(Hi(this.playerState,16,A));A=this.Rv.U;var L=this.videoData,B=this.playerState.isPaused();if(L.clientPlaybackNonce&&!isNaN(A.N)){if(Math.random()<.01){B=B?"pbp":"pbs";var f={startTime:A.N};L.T&&(f.cttAuthInfo={token:L.T,videoId:L.videoId});C0("seek",f);g.Qm({clientPlaybackNonce:L.clientPlaybackNonce},"seek");isNaN(A.W)||mF("pl_ss",
|
|
A.W,"seek");mF(B,(0,g.bc)(),"seek")}A.reset()}};
|
|
g.p.py=function(A){this.wW(A)};
|
|
g.p.fg=function(){this.publish("SEEK_COMPLETE")};
|
|
g.p.UQ=function(A){var L=this.gf,B=this.videoData.clientPlaybackNonce,f=this.playerType;if(A.scope===4){var K=A.type;if(K){var V=L.kP(),J=V.getVideoData().clientPlaybackNonce;f===1&&(J=B);if(f=Qnk(L,J)){if(B=f.getVideoData())A.writePolicy===2&&B.sabrContextUpdates.has(K)||(A.sendByDefault&&B.S4.add(K),B.sabrContextUpdates.set(K,A)),L.J("html5_enable_t1_enf_on_sabr")&&(A=K===5,K=pF1(B.playerResponse),A?(A=K?1:0,Fo(A,"m.p_",{}),aw("MBSTAT",A)):A=1,A===0&&L.rT.Kr("onAbnormalityDetected"))}else V.Hn("scuset",
|
|
{ncpf:"1",ccpn:J,crcpn:B})}else g.CE(Error("b/380308491: contextUpdateType is undefined"))}};
|
|
g.p.XJ=function(){if(this.playerType===2)return this.gf.XJ("")};
|
|
g.p.getCurrentTime=function(A){return this.M8.getCurrentTime(A===void 0?!1:A)};
|
|
g.p.kA=function(){return this.M8.kA()};
|
|
g.p.Fb=function(){return this.M8.Fb()};
|
|
g.p.Yi=function(){return this.Fb()};
|
|
g.p.gQ=function(){return this.M8.gQ()};
|
|
g.p.getPlaylistSequenceForTime=function(A){return this.videoData.getPlaylistSequenceForTime(A-this.pY())};
|
|
g.p.rQ=function(){var A=NaN;this.mediaElement&&(A=this.mediaElement.rQ());return A>=0?A:this.getCurrentTime()};
|
|
g.p.wX=function(){var A;return((A=this.videoData.N)==null?0:A.wX)?this.videoData.N.wX(this.getCurrentTime()-this.pY()):this.mediaElement&&(A=this.mediaElement.r_())&&(A=A.getTime(),!isNaN(A))?A/1E3+this.getCurrentTime():NaN};
|
|
g.p.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.pY():this.oA()?this.oA():0};
|
|
g.p.Uq=function(){var A=new H5L;if(this.loader){var L=this.Ml,B=this.L.hw();B=B===void 0?!1:B;A.lA=L.Vj;A.KC=L.Cr;A.bandwidthEstimate=ub(L);if(B){B=(L.G.pw()*1E3).toFixed();var f=(L.wT.pw()*1E3).toFixed(),K=nh(L).toFixed(2),V=((L.X.pw()||0)*1E9).toFixed(2),J=L.V.pw().toFixed(0),R=L.JF.pw().toFixed(0),Z=L.yj.percentile(.5).toFixed(2),N=L.yj.percentile(.92).toFixed(2),F=L.yj.percentile(.96).toFixed(2),D=L.yj.percentile(.98).toFixed(2);L.N?L.N.reset():L.N=new I5;L.N.add(L.ZM);L.N.add(L.interruptions.length);
|
|
for(var I=0,d=L.interruptions.length-1;d>=0;d--){var w=L.interruptions[d];L.N.add(w-I);I=w}I=0;for(d=L.U.length-1;d>=0;d--){w=L.U[d];var r=w.stamp/36E5;L.N.add(r-I);I=r;L.N.add(w.net/1E3);L.N.add(w.max)}L=L.N.PV();A.N={ttr:B,ttm:f,d:K,st:V,bw:J,abw:R,v50:Z,v92:N,v96:F,v98:D,"int":L}}L=this.loader;L.AF&&L.AF.D&&!L.AF.vV()&&(A.zo=K6(L.videoTrack),A.W=K6(L.audioTrack),L.policy.V&&(B=Bl(L.videoTrack),f=Bl(L.audioTrack),K=zv(L.AF.W.Hk(),"_",5),V=zv(L.AF.N.Hk(),"_",5),Object.assign(A.N,{lvq:B,laq:f,lvb:K,
|
|
lab:V})));A.bandwidthEstimate=zD(L.yj);var h;(h=L.audioTrack.G)==null||h.flush();var Q;(Q=L.videoTrack.G)==null||Q.flush()}else this.mediaElement&&(A.zo=this.mediaElement.vu());A.lA=this.lA;A.KC=this.KC;A.V=this.isAtLiveHead()&&this.isPlaying()?XlD(this):NaN;h=this.M8;h=h.N?ht(h.N):0;A.U=h;return A};
|
|
g.p.MX=function(A,L){this.KC+=A;this.lA+=L};
|
|
g.p.Hq=function(){return this.mediaElement?g.MG(this.videoData)?1:Ur(this.videoData)?this.isAtLiveHead()||this.YE()?1:this.M8.Hq():this.mediaElement.Hq():0};
|
|
g.p.EV=function(){var A=this.Yz,L=EP(A,"bandwidth"),B=EP(A,"bufferhealth"),f=EP(A,"livelatency"),K=EP(A,"networkactivity"),V=OP(A,"bandwidth"),J=OP(A,"bufferhealth"),R=OP(A,"livelatency");A=OP(A,"networkactivity");var Z=this.Db(),N=Z.droppedVideoFrames;Z=Z.totalVideoFrames;var F=this.getCurrentTime();if(this.Gq){var D="IT/"+(this.Gq.N.getInfo()+"/"+My(this.Vt()));D+="/"+this.Gq.getInfo()}else D="";var I=this.isGapless(),d=this.qV(),w=this.HT(),r=g.za(this),h=this.getPlayerState().state.toString(16),
|
|
Q=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var l=0;var C="";if(this.TV){if(this.TV.fX){C="D,";break a}l=this.TV.Go;C=this.TV.xJ.substring(0,4)}l>0?(l="AD"+l+", ",C&&(l+=C+", "),C=l):C=""}return{jp:V,pJ:J,currentTime:F,zd:D,droppedVideoFrames:N,isGapless:I,qV:d,F4:w,fp:L,Cp:B,xd:f,uw:K,aR:R,jl:A,TY:r,fP:h,sz:Q,Fi:C,totalVideoFrames:Z}};
|
|
g.p.Ov=function(A){var L={};if(A===void 0?0:A){Object.assign(L,this.CY.Ov());this.mediaElement&&(Object.assign(L,this.mediaElement.Ov()),A=this.Db(),L.dvf=A.droppedVideoFrames,L.tvf=A.totalVideoFrames);this.loader&&Object.assign(L,this.loader.Ov());this.Gq&&(L.drm=JSON.stringify(this.Gq.Ov()));L.state=this.playerState.state.toString(16);g.x(this.playerState,128)&&(L.debug_error=JSON.stringify(this.playerState.nh));this.BF()&&(L.prerolls=this.n3.join(","));this.videoData.dg&&(L.ismb=this.videoData.dg);
|
|
this.videoData.latencyClass!=="UNKNOWN"&&(L.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(L.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)L.is_mosaic=1;this.videoData.cotn&&(L.is_offline=1,L.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(L.playerResponseCpn=this.videoData.playerResponseCpn);this.gf.isOrchestrationLeader()&&(L.leader=1);this.videoData.isLivePlayback&&
|
|
(this.videoData.N&&n3(this.videoData.N)&&(L.segduration=n3(this.videoData.N)),A=this.M8,L.lat=A.G?c4E(A.G.U):0,L.liveutcstart=this.videoData.liveUtcStartSeconds);L.relative_loudness=this.videoData.EQ.toFixed(3);if(A=g.za(this))L.optimal_format=A.video.qualityLabel;L.user_qual=h2();L.release_version=S[5]}L.debug_videoId=this.videoData.videoId;return L};
|
|
g.p.addCueRange=function(A){this.zg([A])};
|
|
g.p.removeCueRange=function(A){this.I4.K9([A])};
|
|
g.p.q9=function(){var A=this.I4;if(A.Np.K().J("html5_sort_cueranges_on_update")&&!(A.Ef().length<=0||A.TL())){var L=A.N;L.array.sort(L.N)}A.sync()};
|
|
g.p.Ln=function(A,L){return this.I4.Ln(A,L)};
|
|
g.p.zg=function(A,L){this.I4.dX(A,L)};
|
|
g.p.fS=function(A){this.I4.K9(A)};
|
|
g.p.Ef=function(){return this.I4.Ef()||[]};
|
|
g.p.nU=function(){return this.V3};
|
|
g.p.QC=function(){return this.visibility.QC()};
|
|
g.p.m2=function(){this.mediaElement&&this.mediaElement.m2()};
|
|
g.p.cz1=function(){xH(this)};
|
|
g.p.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
|
|
g.p.qv=function(){g.$_(this.E1)};
|
|
g.p.Oep=function(){this.iq();this.publish("onLoadProgress",this.Hq())};
|
|
g.p.Ma=function(A){var L=A.target.eE();if(this.mediaElement&&this.mediaElement.eE()&&this.mediaElement.eE()===L){yBe(this,A.type);switch(A.type){case "error":var B=this.mediaElement.xT()||"",f=this.mediaElement.SE();if(B==="capability.changed"){this.J("html5_restart_on_capability_change")?(this.Hn("capchg",{msg:f}),this.A1(!0)):q9(this);return}if(this.mediaElement.hasError()&&wO6(this.KQ,B,{msg:f,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.oI()){this.aC();nR(this,"unplayable");
|
|
return}break;case "durationchange":B=this.mediaElement.getDuration();isFinite(B)&&(!this.AF||B>0)&&B!==1&&this.Vr(B);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());B=this.I4;B.started=!0;B.sync();this.CY.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.Qf().N.Iv(y19)||this.J("html5_prevent_mobile_background_play_on_event_shared"))&&UP(this,!1);gkQ(this);this.publish("onLoadedMetadata");ZiL(this);B=this.wX();this.videoData.iK&&
|
|
(this.videoData.iK=B);break;case "loadstart":ZiL(this);break;case "progress":case "suspend":this.Ie.Za();break;case "seeked":(B=this.loader)!=null&&B.policy.W&&B.tU&&(B.Hn("sdai",{skipAdSked:"1"}),B.tU=!1);break;case "playing":(this.Qf().N.Iv(y19)||this.J("html5_prevent_mobile_background_play_on_event_shared"))&&UP(this,!1);this.Rv.WZ("plev");this.KN&&!CR(this)&&(this.KN=!1,this.isAtLiveHead()||this.seekTo(Infinity,{zZ:"videoplayer_onPlaying"}));break;case "timeupdate":(this.Qf().N.Iv(y19)||this.J("html5_prevent_mobile_background_play_on_event_shared"))&&
|
|
UP(this,!1);B=this.mediaElement&&!this.mediaElement.getCurrentTime();f=this.mediaElement&&this.mediaElement.J2()===0;if(B&&(!this.OB||f))return;this.OB=this.OB||!!this.mediaElement.getCurrentTime();RTk(this);this.iq();if(!this.mediaElement||this.mediaElement.eE()!==L)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.wN().length>0&&this.mediaElement.YJ().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;
|
|
this.J("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.J2()>2||!this.mediaElement.isSeeking()&&aT(this.mediaElement.YJ(),this.mediaElement.getCurrentTime()))&&(B=this.mediaElement.Ov(),B.bh=this.mediaElement.vu().toFixed(3),this.Hn("uwe",B));break;case "resize":gkQ(this);this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Rt&&g.x(this.playerState,8)&&!g.x(this.playerState,
|
|
1024)&&this.getCurrentTime()===0&&g.yw){nR(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.eE()===L){Iz8(this.M8,A);this.publish("videoelementevent",A);L=this.playerState;f=this.Vl;var K=this.mediaElement;B=this.videoData.clientPlaybackNonce;if(!g.x(L,128)){var V=L.state;K=K?K:A.target;var J=K.getCurrentTime();if(!g.x(L,64)||A.type!=="ended"&&A.type!=="pause"){var R=K.getDuration();R=K.isEnded()||J>1&&Math.abs(J-R)<1.1;var Z=A.type==="pause"&&K.isEnded();J=A.type===
|
|
"ended"||A.type==="waiting"||A.type==="timeupdate"&&!g.x(L,4)&&!Ga(f,J);if(Z||R&&J)K.Yj()>0&&K.eE()&&(V=14);else switch(A.type){case "error":K.xT()&&(V|=128);break;case "pause":g.x(L,256)?(V^=256)||(V=64):g.x(L,32)||g.x(L,2)||g.x(L,4)||(V=4,g.x(L,1)&&g.x(L,8)&&(V|=1));break;case "playing":J=V;V=(V|8)&-1093;J&4?(V|=1,rz(f,K,!0)):Ga(f,K.getCurrentTime())&&(V&=-2);g.x(L,1)&&rz(f,K)&&(V|=1);break;case "seeking":V|=16;g.x(L,8)&&(V|=1);V&=-3;break;case "seeked":V&=-17;rz(f,K,!0);break;case "waiting":g.x(L,
|
|
2)||(V|=1);rz(f,K);break;case "timeupdate":J=g.x(L,16),R=g.x(L,4),(g.x(L,8)||J)&&!R&&Ga(f,K.getCurrentTime())&&(V=8),rz(f,K)&&(V|=1)}}f=V;V=null;f&128&&(V=A.target,K=V.xT(),J=1,K?(K==="capability.changed"&&(J=2),R="GENERIC_WITHOUT_LINK",Z=V.Ov(),Z.mediaElem="1",Z.trg="melem",/AUDIO_RENDERER/.test(V.SE())&&(R="HTML5_AUDIO_RENDERER_ERROR"),V={errorCode:K,errorMessage:g.XB[R]||"",N_:R,yV:f$(Z),V5:J,cpn:L.nh?L.nh.cpn:""}):V=null,V&&(V.cpn=B));L=sJ(L,f,V)}!g.x(this.playerState,1)&&g.x(L,1)&&pmk(this,"evt"+
|
|
A.type);this.q8(L)}}};
|
|
g.p.oPj=function(A){A=A.N.availability==="available";A!==this.V3&&(this.V3=A,this.publish("airplayavailabilitychange"))};
|
|
g.p.OYj=function(){var A=(0,g.bc)(),L=this.mediaElement.QC();this.Hn("airplay",{ia:L});!L&&!isNaN(this.RZ)&&A-this.RZ<2E3||(this.RZ=A,L!==this.QC()&&(A=this.visibility,A.N!==L&&(A.N=L,A.wI()),this.Hn("airplay",{rbld:L}),this.A8()),this.publish("airplayactivechange"))};
|
|
g.p.w6=function(A){if(this.loader){var L=this.loader,B=L.V,f=L.getCurrentTime(),K=Date.now()-B.G;B.G=NaN;B.Hn("sdai",{adfetchdone:A,d:K});A&&!isNaN(B.T)&&B.W!==3&&Vi(B.loader,f,B.T,B.D);B.policy.W?B.V=NaN:B.U=NaN;K5(B,4,B.W===3?"adfps":"adf");IS(L)}};
|
|
g.p.X6=function(){g.sQ(this.p7);this.uv.stop();this.videoData.G=!0;this.L.SH=!0;this.L.mH=0;var A=this.KQ;if(A.videoData.W){var L=A.tF.D,B=A.videoData.W.Bn;L.V.has(B)&&(L.V.delete(B),L.N=!0)}A.N.stop();this.tp();g.x(this.playerState,8)&&this.q8(hA(this.playerState,65));this.nu=!1;this.CY.uf();g.Az(this.ol);this.publish("playbackstarted");(A=g.bB("yt.scheduler.instance.clearPriorityThreshold"))?A():fs(0)};
|
|
g.p.tp=function(){var A=this.gf.df(),L={},B={};!iJ("pbs",this.Rv.timerName)&&gX.measure&&gX.getEntriesByName&&(gX.getEntriesByName("mark_nr")[0]?ELk("mark_nr"):ELk());A.videoId&&(L.videoId=A.videoId);A.clientPlaybackNonce&&!this.J("web_player_early_cpn")&&(L.clientPlaybackNonce=A.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(B.isPausedOnLoad=!0);B.itag=A.W?Number(A.W.itag):-1;A.LD&&(B.preloadType=String(this.Kz?2:1));L.liveStreamMode=Wiw[$T(A)];L.playerInfo=B;this.Rv.infoGel(L);
|
|
if(this.loader){A=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(A.V&&(L=window.performance.getEntriesByName(A.V),L.length&&(L=L[0],A.tick("vri",L.fetchStart),A.tick("vdns",L.domainLookupEnd),A.tick("vreq",L.requestStart),A.tick("vrc",L.responseEnd))),A.W&&(L=window.performance.getEntriesByName(A.W),L.length&&(L=L[0],A.tick("ari",L.fetchStart),A.tick("adns",L.domainLookupEnd),A.tick("areq",L.requestStart),A.tick("arc",L.responseEnd))));A=A.ticks;for(var f in A)A.hasOwnProperty(f)&&
|
|
this.Rv.tick(f,A[f])}};
|
|
g.p.iq=function(A){var L=this;A=A===void 0?!1:A;if(this.mediaElement&&this.videoData){KZD(this.M8,this.isPlaying());var B=this.getCurrentTime();if(this.loader&&(g.x(this.playerState,4)&&g.MG(this.videoData)||g.x(this.playerState,32)&&iS(this.videoData)||JY8(this.loader,B),this.J("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-q8(this.loader))>10)){var f;this.Hn("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(f=this.loader)==null?void 0:q8(f)},!0)}B>5&&(this.M8.V=B);
|
|
(f=g.Bf())?g.qT.WF(this.XG):g.rW(this.XG);var K=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!K||ZI(this.videoData))&&!g.x(this.playerState,128)){var V=function(){if(L.mediaElement&&!g.x(L.playerState,128)){L.L.hw()&&yBe(L,"pfx");var J=L.getCurrentTime();L.J("html5_buffer_underrun_transition_fix")&&(J-=L.pY());var R=L.mediaElement.vu(),Z=g.x(L.playerState,8),N=Ga(L.Vl,J),F=rG7(L.Vl,J,(0,g.bc)(),R);Z&&N?L.q8(hA(L.playerState,1)):Z&&F?(Z=L.getDuration(),N=HK(L.videoData),Z&&Math.abs(Z-
|
|
J)<1.1?(L.Hn("setended",{ct:J,bh:R,dur:Z,live:N}),L.mediaElement.e5()?L.seekTo(0,{zZ:"videoplayer_loop",seekSource:37}):L.E5()):(L.playerState.isBuffering()||pmk(L,"progress_fix"),L.q8(Hi(L.playerState,1)))):(Z&&!N&&!F&&J>0&&(Z=(Date.now()-L.Ld)/1E3,N=L.getDuration(),J>N-1&&L.Hn("misspg",{t:J.toFixed(2),d:N.toFixed(2),r:Z.toFixed(2),bh:R.toFixed(2)})),L.playerState.isPaused()&&L.playerState.isBuffering()&&L.mediaElement.vu()>5&&L.q8(hA(L.playerState,1)));L.iq()}};
|
|
this.mediaElement.wN().length===0?this.XG=f?g.qT.pV(V,100):g.gW(V,100):this.XG=f?g.qT.pV(V,500):g.gW(V,500)}this.videoData.jI=B;!A&&this.isPlaying()&&FBE(this);$IQ(this.IC,this.kJ,this.pD(),this.isBackground())&&YH(this);this.publish("progresssync",A);K&&ZI(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}};
|
|
g.p.cJ=function(){this.O9("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
|
|
g.p.HT=function(){return this.CY.HT()};
|
|
g.p.Su=function(){return this.loader?this.loader.Su():ub(this.Ml,!0)};
|
|
g.p.q8=function(A){if(!g.tA(this.playerState,A)){var L=new g.dk(A,this.playerState);this.playerState=A;jS6(this);var B=!this.QP.length;this.QP.push(L);var f=this.mediaElement&&this.mediaElement.isSeeking();g.wk(L,1)&&this.loader&&MgQ(this.loader);f=L.oldState.state===8&&!f;if(g.wk(L,1)&&f&&g.x(this.playerState,8)&&!g.x(this.playerState,64)&&this.loader){f=this.loader;f.Vb=!0;if(f.policy.KY&&f.AF){var K,V,J,R;f.Hn("lr_rb",{c:f.getCurrentTime(),s:f.isSeeking(),ab:zv(f.AF.N.Hk()),ala:(K=n5(f.audioTrack))==
|
|
null?void 0:K.Dx(),alr:(V=f.audioTrack.N)==null?void 0:V.Dx(),vb:zv(f.AF.W.Hk()),vla:(J=n5(f.videoTrack))==null?void 0:J.Dx(),vlr:(R=f.videoTrack.N)==null?void 0:R.Dx()})}f.ue!==0&&f.Hn("sps_rebuffer",{c:f.getCurrentTime()});this.mediaElement&&this.mediaElement.vu()>=5&&(K=this.IC,V=this.kJ,!V.videoData.W||K.J("html5_disable_performance_downgrade")?K=!1:(Date.now()-K.X>6E4&&(K.W=0),K.W++,K.X=Date.now(),K.W!==4?K=!1:(C$D(K,V.videoData.W),K=!0)),K&&YH(this))}(K=g.Am(this.L.experiments,"html5_ad_timeout_ms"))&&
|
|
this.videoData.isAd()&&g.x(A,1)&&(g.x(A,8)||g.x(A,16))?this.AR.start(K):this.AR.stop();(IA(L,8)<0||g.wk(L,1024))&&this.uv.stop();!g.wk(L,8)||this.videoData.G||g.x(L.state,1024)||this.uv.start();g.x(L.state,8)&&IA(L,16)<0&&!g.x(L.state,32)&&!g.x(L.state,2)&&this.playVideo();g.x(L.state,2)&&Ur(this.videoData)&&(this.Vr(this.getCurrentTime()),this.iq(!0));g.wk(L,2)&&(this.j3(!0),this.L.hw()&&this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(this.videoData)&&this.videoData.N&&(A={minst:""+
|
|
this.videoData.N.CK,cminst:""+(this.videoData.N.vy()+this.pY()),maxst:""+this.videoData.N.F9,hts:""+this.videoData.N.Vj,cmaxst:""+(this.videoData.N.oA()+this.pY())},this.Hn("sabrSeekableBoundaries",A)));g.wk(L,128)&&this.aC();this.videoData.N&&this.videoData.isLivePlayback&&!this.aX&&(IA(L,8)<0?(A=this.videoData.N,A.D&&A.D.stop()):g.wk(L,8)&&this.videoData.N.resume());A=this.M8;g.Az(A.Wn.D);if(A.mediaElement)if(L.oldState.state===8&&kF(L.state)&&L.state.isBuffering()){var Z=A.mediaElement.getCurrentTime();
|
|
K=A.mediaElement.YJ();V=A.J("manifestless_post_live_ufph")||A.J("manifestless_post_live")?uQ(K,Math.max(Z-3.5,0)):uQ(K,Z-3.5);V>=0&&Z>K.end(V)-1.1&&V+1<K.length&&K.start(V+1)-K.end(V)<11&&(V=K.start(V+1)+.2+A.pY(),Math.abs(A.Uv-V)<.2||(A.Np.Hn("seekover",{b:zv(K,"_"),cmt:Z}),A.Uv=V,A.seekTo(V,{Mi:!0,zZ:"seektimeline_postLiveDisc"})))}else((Z=L.state)==null?0:Z.state===8)&&!A.cn&&(A.videoData.limitedPlaybackDurationInSeconds>0?(vY(A.Np,A.getCurrentTime()+A.videoData.limitedPlaybackDurationInSeconds),
|
|
A.cn=!0):A.videoData.isLivePlayback&&A.videoData.endSeconds>0&&(vY(A.Np,A.getCurrentTime()+A.videoData.endSeconds),A.cn=!0));Z=this.CY;if(g.wk(L,1024)||g.wk(L,512)||g.wk(L,4))Z.W&&(A=Z.W,A.W>=0||(A.N=-1,A.delay.stop())),Z.qoe&&(A=Z.qoe,A.X||(A.V=-1));if(Z.provider.videoData.enableServerStitchedDai&&Z.l0){var N;(N=Z.V.get(Z.l0))==null||dL1(N,L)}else Z.N&&dL1(Z.N,L);Z.qoe&&(N=Z.qoe,A=L.state,K=g.Ci(N.provider),V=N.getPlayerState(A),J=A.seekSource||void 0,V!==N.xb&&(N.Vj||K<N.W||(N.xb==="PL"?N.playTimeSecs+=
|
|
K-N.W:N.xb==="B"&&N.isBuffering&&(N.isBuffering=!1,N.rebufferTimeSecs+=K-N.Wn,!N.Nl&&N.rebufferTimeSecs>=10&&N.playTimeSecs<=180&&(N.N.set("qoealert",["1"]),N.Nl=!0)),V!=="B"||N.xb!=="PL"&&N.xb!=="PB"||(N.isBuffering=!0),N.W=K),N.xb==="PL"&&(V==="B"||V==="S")||N.provider.L.hw()?$k(N,K):(N.ql||V!=="PL"||(N.ql=!0,i3(N,K,N.provider.Np.Uq())),Q_(N,K)),V==="PL"&&g.Az(N.k6),R=[V],V==="S"&&J&&R.push("ss."+J),g.TL(N,K,"vps",R),N.xb=V,N.Wn=K,N.W=K,N.U=!0),V=A.nh,g.x(A,128)&&V&&(V.yV=V.yV||"",bmk(N,K,V.errorCode,
|
|
V.V5,V.yV)),(g.x(A,2)||g.x(A,128))&&N.reportStats(K),A.isPlaying()&&!N.X&&(N.V>=0&&N.N.set("user_intent",[N.V.toString()]),N.X=!0),Xg(N));Z.W&&(N=Z.W,YVv(N),N.playerState=L.state,N.W>=0&&g.wk(L,16)&&N.seekCount++,L.state.isError()&&N.send());if(B&&!this.TL())try{for(var F=g.m(this.QP),D=F.next();!D.done;D=F.next()){var I=D.value,d=this.I4;if(d.started&&(d.sync(),g.x(I.oldState,16))){L=d;var w=TPE(L.N,Math.max(L.V-2E3,0));!isNaN(w)&&w<0x7ffffffffffff&&L.U.start()}this.publish("statechange",I)}}finally{this.QP.length=
|
|
0}}};
|
|
g.p.AZ=function(){this.Rv.tick("qoes")};
|
|
g.p.tB=function(){this.M8.tB()};
|
|
g.p.FU=function(A,L,B,f){a:{var K=this.KQ;f=f===void 0?"LICENSE":f;B=B.substring(0,256);var V=Vu(L);A==="drm.keyerror"&&this.Gq&&this.Gq.W.keys.length>1&&K.U<96&&(A="drm.sessionlimitexhausted",V=!1);var J=K.tF.experiments.GL("html5_retry_on_drm_unavailable"),R=K.tF.experiments.GL("html5_retry_on_drm_key_error"),Z=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(J&&A==="drm.unavailable"||R&&A==="drm.keyerror"&&!B.match(Z))K.Ho("qoe.restart",{retryOnDrmError:1,e:A,detail:B}),K.Np.A1(!0);else{if(V)if(K.videoData.W&&
|
|
K.videoData.W.video.isHdr())ri8(K,A);else{if(K.Np.O9(A,L,f,B),DIS(K,{detail:B}))break a}else K.Ho(A,{detail:B});A==="drm.sessionlimitexhausted"&&(K.Hn("retrydrm",{sessionLimitExhausted:1}),K.U++,wmy(K.Np))}}};
|
|
g.p.pyr=function(){var A=this,L=g.Am(this.L.experiments,"html5_license_constraint_delay"),B=Vz();L&&B?(L=new g.aa(function(){A.bD();xH(A)},L),g.W(this,L),L.start()):(this.bD(),xH(this))};
|
|
g.p.bV=function(A){this.publish("heartbeatparams",A)};
|
|
g.p.Cl=function(A){this.Hn("keystatuses",Xo8(A));var L="auto",B=!1;this.videoData.W&&(L=this.videoData.W.video.quality,B=this.videoData.W.video.isHdr());a:{switch(L){case "highres":case "hd2880":L="UHD2";break;case "hd2160":case "hd1440":L="UHD1";break;case "hd1080":case "hd720":L="HD";break;case "large":case "medium":case "small":case "light":case "tiny":L="SD";break;default:L="";break a}B&&(L+="HDR")}L=u3(A)?aS(A,L):A.U.includes(L);if(this.J("html5_enable_vp9_fairplay")){if(B)if(A.X){var f;if((f=
|
|
this.Gq)==null?0:F5(f.N))if((B=this.Gq)==null)B=0;else{for(var K=f=void 0,V=g.m(B.W.values()),J=V.next();!J.done;J=V.next())J=J.value,f||(f=E5E(J,"SD")),K||(K=E5E(J,"AUDIO"));B.Jd({sd:f,audio:K});B=f==="output-restricted"||K==="output-restricted"}else B=!L;if(B){this.Hn("drm",{dshdr:1});ri8(this.KQ);return}}else{this.videoData.XV||(this.videoData.XV=!0,this.Hn("drm",{dphdr:1}),this.A1(!0));return}var R;if((R=this.Gq)==null?0:F5(R.N))return}else if(R=A.X&&L,B&&!R){ri8(this.KQ);return}L||aS(A,"AUDIO")&&
|
|
aS(A,"SD")||(A=Xo8(A),this.sX?(this.publish("drmoutputrestricted"),this.J("html5_report_fatal_drm_restricted_error_killswitch")||this.O9("drm.keyerror",2,void 0,"info."+A)):(this.sX=!0,this.Ho(new g.K$("qoe.restart",Object.assign({},{retrydrm:1},A))),YH(this),wmy(this)))};
|
|
g.p.eSj=function(){if(!this.videoData.G&&this.mediaElement&&!this.isBackground()){var A="0";this.mediaElement.J2()>0&&this.mediaElement.vu()>=5&&this.videoData.V&&this.videoData.V.N&&(this.q8(Hi(this.playerState,1)),pmk(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),A="1");jS6(this);var L=this.videoData.V;A={restartmsg:A,mfmt:!wp(this.videoData),mdrm:!(!(L&&L.videoInfos&&L.videoInfos.length&&L.videoInfos[0].Zj)||this.Gq),mfmtinfo:!this.videoData.W,prerolls:this.BF()?this.n3.join(","):
|
|
"0"};if(this.Gq){L=this.Gq;if(L.W.size<=0){var B="ns;";L.yj||(B+="nr;");L=B+="ql."+L.V.length}else L=Xo8(L.W.values().next().value),L=f$(L);A.drmp=L}var f;Object.assign(A,((f=this.loader)==null?void 0:f.Ov())||{});var K;Object.assign(A,((K=this.mediaElement)==null?void 0:K.Ov())||{});this.CY.Ho("qoe.start15s",f$(A));this.publish("loadsofttimeout")}};
|
|
g.p.Vr=function(A){this.videoData.lengthSeconds!==A&&(this.videoData.lengthSeconds=A,xH(this))};
|
|
g.p.j3=function(A,L){var B=this;A=A===void 0?!1:A;if(!this.d4)if(iJ("att_s","player_att")||OC("att_s",void 0,"player_att"),this.J("use_rta_for_player"))(function(){var K,V,J,R,Z;return g.c(function(N){switch(N.N){case 1:if(!(K=A)){N.Ux(2);break}return g.X(N,g.paQ(),3);case 3:K=!N.W;case 2:if(K)return N.return();g.S5(N,4);V=r47(B.CY);if(!V)throw Error();J={};return g.X(N,g.wav((J.cpn=B.videoData.clientPlaybackNonce,J.encryptedVideoId=B.videoData.videoId||"",J),g.Am(B.L.experiments,"html5_att_playback_timeout_ms")||
|
|
3E4),6);case 6:R=N.W;if(B.d4)throw Error();if(!R.challenge)throw Z=R.error?"; error: "+R.error:"",g.CE(Error("Not sending atr ping; missing challenge string"+Z)),Error();B.d4=!0;var F=[R.challenge];if(R.error){var D=mCX();D=Wsv(D).get(R.error)||0;F.push("r1c="+D)}else R.webResponse&&F.push("r1a="+R.webResponse);var I;((I=R.adblockReporting)==null?void 0:I.reportingStatus)!==void 0&&F.push("r6a="+R.adblockReporting.reportingStatus);var d;((d=R.adblockReporting)==null?void 0:d.broadSpectrumDetectionResult)!==
|
|
void 0&&F.push("r6b="+R.adblockReporting.broadSpectrumDetectionResult);V(F.join("&"));OC("att_f",void 0,"player_att");g.ZR(N,0);break;case 4:g.NX(N),OC("att_e",void 0,"player_att"),g.VK(N)}})})().then(function(){L==null||L()});
|
|
else{var f=new g.JmL(this.videoData);if("c1a"in f.AO&&!g.G4.isInitialized()){OC("att_wb",void 0,"player_att");this.GS===2&&Math.random()<.01&&g.CE(Error("Botguard not available after 2 attempts"));if(A)return;if(this.GS<5){g.Az(this.Oa);this.GS++;return}}(f=g.SZD(f))?(OC("att_f",void 0,"player_att"),GE7(this.CY,f),this.d4=!0):OC("att_e",void 0,"player_att")}};
|
|
g.p.bH=function(A){A=A===void 0?!1:A;return HK(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.YE()||g.MG(this.videoData))?this.getCurrentTime():this.oA(A)};
|
|
g.p.I5=function(){return this.vy()};
|
|
g.p.oA=function(A){return this.M8.oA(A===void 0?!1:A)};
|
|
g.p.vy=function(){return this.M8.vy()};
|
|
g.p.pY=function(){return this.M8?this.M8.pY():0};
|
|
g.p.getStreamTimeOffset=function(){return this.M8?this.M8.getStreamTimeOffset():0};
|
|
g.p.Dk=function(){return this.getStreamTimeOffset()===0?this.pY():this.getStreamTimeOffset()};
|
|
g.p.setPlaybackRate=function(A){var L;this.playbackRate!==A&&bTD(this.IC,(L=this.videoData.V)==null?void 0:L.videoInfos)&&(this.playbackRate=A,YH(this));this.playbackRate=A;this.mediaElement&&this.mediaElement.setPlaybackRate(A)};
|
|
g.p.getPlaybackRate=function(){return this.playbackRate};
|
|
g.p.getPlaybackQuality=function(){var A="unknown";if(this.videoData.W&&(A=this.videoData.W.video.quality,A==="auto"&&this.mediaElement)){var L=this.Ur();L&&L.videoHeight>0&&(A=tT(L.videoWidth,L.videoHeight))}return A};
|
|
g.p.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())};
|
|
g.p.sendVideoStatsEngageEvent=function(A,L){var B=this.CY;B.N?(B=Ic(B.N,"engage"),B.Vj=A,B.send(L)):L&&L()};
|
|
g.p.b0=function(A){return this.CY.b0(A)};
|
|
g.p.isAtLiveHead=function(A,L){L=L===void 0?!1:L;return HK(this.videoData)&&(this.Cz||L)?this.M8.isAtLiveHead(A):!1};
|
|
g.p.pX=function(){var A=this.oA(),L=this.getCurrentTime(),B;(B=!HK(this.videoData))||(B=this.M8,B=!(B.N&&B.N.V));return B||this.YE()||isNaN(A)||isNaN(L)?0:Math.max(0,A-L)};
|
|
g.p.UA=function(A){(this.Cz=A)||this.uv.stop();if(this.videoData.N)if(A)this.videoData.N.resume();else{var L=this.videoData.N;L.D&&L.D.stop()}this.loader&&(L=this.videoData.J("html5_disable_preload_for_ssdai_with_preroll")&&this.Hu()&&this.videoData.isLivePlayback,A&&!L?this.loader.resume():ac(this,!0));g.x(this.playerState,2)||A?g.x(this.playerState,512)&&A&&this.q8(hA(this.playerState,512)):this.q8(Hi(this.playerState,512));L=this.CY;L.qoe&&(L=L.qoe,g.TL(L,g.Ci(L.provider),"stream",[A?"A":"I"]))};
|
|
g.p.IS=function(A){this.CY.Ho("player.exception",f$({n:A.name,m:A.message}))};
|
|
g.p.W9=OD(18);g.p.IU=OD(47);g.p.Qe=function(A){this.CY.Qe(A)};
|
|
g.p.nS=function(A){this.CY.nS(A)};
|
|
g.p.CS=function(A){this.CY.CS(A)};
|
|
g.p.J1=OD(24);g.p.ph=OD(30);g.p.DW=function(A){this.CY.DW(A)};
|
|
g.p.XY=function(A,L,B,f){this.CY.XY(A,L,B,f)};
|
|
g.p.gG=function(){this.Hn("hidden",{},!0)};
|
|
g.p.Db=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
|
|
g.p.jR=function(){return this.loader?this.loader.jR():!0};
|
|
g.p.setLoop=function(A){this.loop=A;this.mediaElement&&!g.wY(this.L)&&this.mediaElement.setLoop(A)};
|
|
g.p.e5=function(){return this.mediaElement&&!g.wY(this.L)?this.mediaElement.e5():this.loop};
|
|
g.p.uV=function(A){this.Hn("timestamp",{o:A.toString()});this.M8.uV(A)};
|
|
g.p.S$=function(A){this.Rv.tick(A)};
|
|
g.p.Nq=function(A){return this.Rv.Nq(A)};
|
|
g.p.WZ=function(A){this.Rv.WZ(A)};
|
|
g.p.Hn=function(A,L,B){this.CY.Hn(A,L,B===void 0?!1:B)};
|
|
g.p.SV=function(A,L,B){this.CY.Hn(A,L,B===void 0?!1:B)};
|
|
g.p.Ho=function(A){this.CY.Ho(A.errorCode,f$(A.details));A=A.errorCode;if(this.videoData.isLivePlayback&&(A==="qoe.longrebuffer"||A==="qoe.slowseek")||A==="qoe.restart"){A=this.loader?L$7(this.loader.videoTrack):{};var L,B;this.Hn("lasoe",Object.assign(this.loader?L$7(this.loader.audioTrack):{},(L=this.AF)==null?void 0:(B=L.N)==null?void 0:B.Eb()));var f,K;this.Hn("lvsoe",Object.assign(A,(f=this.AF)==null?void 0:(K=f.W)==null?void 0:K.Eb()))}if(this.J("html5_log_centralized_player_time")){var V;this.Hn("sabrSeekRefactorCmt",
|
|
{cmt:this.getCurrentTime(),loaderCmt:(V=this.loader)==null?void 0:q8(V)})}};
|
|
g.p.jd=function(A,L,B){this.CY.jd(A,L,B)};
|
|
g.p.Rh=function(A,L,B,f,K,V,J,R){var Z;if((Z=this.videoData.N)!=null&&Z.isLive){var N=L.playerType===2?L:A,F=A.videoData.videoId,D=L.videoData.videoId;if(F&&D){Z=this.CY;if(R==null?0:R.Oz){if(Z.qoe){F=Z.qoe;D=R.Oz;F.reportStats();var I=F.provider.videoData.clientPlaybackNonce,d=F.provider.videoData.videoId||"",w,r=((w=F.E$)==null?void 0:w.join("."))||I,h;w=((h=F.hk)==null?void 0:h.join("."))||d;Yk(F,V?4:K?2:0,D.Ka.join(".")||I,D.yn.join(".")||d,f);F.reportStats();F.E$=D.Ka;F.hk=D.yn;F.d_=D.adFormats;
|
|
F.mR=D.serializedQoeContextData;Yk(F,V?5:K?3:1,r,w,B);F.reportStats()}}else if(Z.qoe){h=Z.qoe;w=A.cpn;I=L.cpn;d=N.videoData.ql;var Q=h.provider.videoData.clientPlaybackNonce,l=h.provider.videoData.videoId;r=I!==Q&&D!==l;Q=w!==Q&&F!==l;h.reportStats();h.adCpn&&h.adCpn!==w||(h.adCpn=Q?w:"",h.Ak=Q?F:"",h.adFormat=Q?d:void 0,Yk(h,V?4:K?2:0,I,D,f),h.reportStats(),h.adCpn=r?I:"",h.Ak=r?D:"",h.adFormat=r?d:void 0,Yk(h,V?5:K?3:1,w,F,B),h.reportStats())}if(R==null?0:R.Hj){var C=R.Hj.serializedPlaybackPingContextLoggingData;
|
|
if((f=Z.N)!=null){N=f.N.D;var O=f.provider.L.Qf().N.Iv(w6f)||4E3;N>O&&Fz(f)}var v;(v=Z.N)!=null&&Rc(v.N);(f=Z.N)!=null&&(f.N.serializedPlaybackPingContextLoggingData=C);var U;(U=Z.N)!=null&&Rc(U.N);var a;(a=Z.N)==null||Fz(a);(Z=Z.N)!=null&&(Z.X=0)}else U=A.cpn,Z.V.has(U)?(a=Z.V.get(U),ww(a,!0).send(),dw(a),U!==Z.provider.videoData.clientPlaybackNonce&&(DL8(a),(O=Z.N)==null||Fz(O),Z.V.delete(U))):(Z.l0=Z.provider.videoData.clientPlaybackNonce,Z.l0&&Z.N&&(Z.V.set(Z.l0,Z.N),ww(Z.N).send(),dw(Z.N))),
|
|
U=L.cpn,a=N.videoData,f-=this.Dk(),Z.V.has(U)?(a=Z.V.get(U),C=a.V&&isNaN(a.D)?D5(a):NaN,a=RJ0(a,!1),isNaN(C)||(a.X=C),a.send()):(a=sN6(Z,Z.provider,a,f),Z.V.set(U,a),dL1(a,new g.dk(Hi(new g.Gu,8),new g.Gu)),a.uf(),(C=Z.N)==null||dw(C)),Z.l0=U;if(this.J("html5_unify_csi_server_stitched_transition_logging")){if(Z=this.Rv,U=A.cpn,A=L.cpn,a=this.videoData.clientPlaybackNonce,C=L.videoData,L=(0,g.bc)(),U=(U===a?"video":"ad")+"_to_"+(A===a?"video":"ad"),U!=="video_to_ad"){a=U==="ad_to_video"?void 0:C;f=
|
|
a==null?void 0:a.VH;v={};if(C==null?0:C.T)v.cttAuthInfo={token:C.T,videoId:C.videoId};J&&(v.startTime=J);C0(U,v);var o0,B6,Ve;J={targetVideoId:(o0=C==null?void 0:C.videoId)!=null?o0:"empty_video",targetCpn:A,adVideoId:(B6=a==null?void 0:a.videoId)!=null?B6:"empty_video",adClientPlaybackNonce:(Ve=f==null?void 0:f.cpn)!=null?Ve:a==null?void 0:a.clientPlaybackNonce};f&&(J.adBreakType=f.adBreakType,J.adType=f.adType);g.Qm(J,U);Jq(Z,L,U)}}else o0=this.Rv,Z=this.videoData.clientPlaybackNonce,B6=(0,g.bc)(),
|
|
Ve=L.videoData,A=(A.cpn===Z?"video":"ad")+"_to_"+(L.cpn===Z?"video":"ad"),Z={},Ve.T&&(Z.cttAuthInfo={token:Ve.T,videoId:Ve.videoId}),J&&(Z.startTime=J),C0(A,Z),g.Qm({targetVideoId:Ve.videoId,targetCpn:L.cpn,isSsdai:!0},A),J||Jq(o0,B6,A)}}else g.Hp(this.logger,360717806,"SSTEvent for nonSS")};
|
|
g.p.Rx=function(){var A=this.gf,L=A.P3;A.P3=[];return L};
|
|
g.p.Oe=function(A){this.videoData.p$=!0;this.Ho(new g.K$("sabr.fallback",A));this.A1(!0)};
|
|
g.p.G9=function(A,L){this.videoData.B4=!0;if(L===void 0||L)this.Ho(new g.K$("qoe.restart",A)),this.A1(!0)};
|
|
g.p.q3=function(A){this.Hn("sdai",{aftimeout:A});this.Ho(new g.K$("ad.fetchtimeout",{timeout:A}))};
|
|
g.p.Iw=function(A,L){this.Hn("timelineerror",A);A=new g.K$("dai.timelineerror",A);L?this.O9("dai.timelineerror",1,"RETRYABLE_ERROR",f$(A.details)):this.Ho(A)};
|
|
g.p.G_=function(){return g.Ci(this.CY.provider)};
|
|
g.p.getPlayerSize=function(){return this.z8.getPlayerSize()};
|
|
g.p.yN=function(){return this.z8.yN()};
|
|
g.p.zH=function(){return this.Rv};
|
|
g.p.OZ=function(){return this.gf.OZ()};
|
|
g.p.getVolume=function(){return this.gf.getVolume()};
|
|
g.p.X1=function(){return this.gf.X1()};
|
|
g.p.isMuted=function(){return this.gf.isMuted()};
|
|
g.p.MW=function(){return this.gf.MW()};
|
|
g.p.rS=function(){this.aX=!0};
|
|
g.p.J=function(A){return this.L.J(A)};
|
|
g.p.Qf=function(){return this.L.Qf()};
|
|
g.p.wY=function(A,L,B,f,K){this.Hn("xvt",{m:A,g:L?1:0,tt:B?1:0,np:f?1:0,c:K})};
|
|
g.p.Zh=function(){var A;(A=this.loader)==null||A.resume()};
|
|
g.p.Hu=function(){return g.zK(this.n3,"ad")};
|
|
g.p.bF=function(){var A=this.getCurrentTime(),L=A-this.pY();var B=this.mediaElement?LW(this.mediaElement.YJ()):0;B=Math.floor(Math.max(B-L,0))+100;var f;return((f=this.loader)==null?0:f.bF(L,B))?(this.Hn("sdai",{skipad:1,ct:L.toFixed(3),adj:B.toFixed(3)}),iS(this.videoData)&&this.loader.seek(L+B,{seekSource:89,zZ:"videoplayer_skipServerStitchedAd"}),plC(this.M8,A),!0):!1};
|
|
g.p.hw=function(){return this.L.hw()};
|
|
g.p.BA=function(){if(this.J("html5_generate_content_po_token"))return this.videoData.Kx||"";this.gf.NK();return this.L.mC||""};
|
|
g.p.sb=function(){if(this.videoData.videoId)return this.videoData.SH};
|
|
g.p.TP=function(){return this.videoData.videoId};
|
|
g.p.rW=function(){return this.gf.DA};
|
|
g.p.lz=function(){return this.nu};
|
|
g.p.I6=function(){return this.gf.I6()};
|
|
g.p.Qb=function(A,L,B){this.q8(Hi(this.playerState,16,B));this.M8.Qb(A,L,B)};
|
|
g.p.prefetchKeyPlay=function(A,L){var B;(B=this.loader)==null||B.prefetchKeyPlay(A,L)};
|
|
g.p.cA=function(A){return this.M8.cA(A)};
|
|
g.p.Uw=function(){this.M8.Uw()};
|
|
g.p.sM=function(A,L){var B=this.J("html5_generate_content_po_token")?this.videoData:void 0;this.gf.sM(A,L,B)};
|
|
g.p.fC=function(A,L){this.CY.fC(A,L)};
|
|
g.p.Vu=function(){return this.CY.Vu()};
|
|
g.p.qV=function(){return this.gf.qV()};
|
|
g.p.OS=function(){return this.gf.OS(this)};
|
|
g.p.RS=function(){this.cX=!0};
|
|
g.p.Qt=function(A){var L;(L=this.loader)==null||L.Qt(A)};
|
|
g.p.yl=function(A){this.M8.yl(A)};
|
|
var unE={primary:"Primary",secondary:"Secondary"};g.G(rBy,VC);g.G(Ll,Dq);Ll.prototype.N=function(A){A&&dC(this,this.S.getLoopVideo());this.S.logVisibility(this.element,A)};
|
|
Ll.prototype.logClick=function(){this.S.logClick(this.element)};
|
|
Ll.prototype.onLoopChange=function(A){dC(this,A)};
|
|
Ll.prototype.W=function(A){this.S.setLoopVideo(A)};g.G(sSD,VC);g.G(HiD,VC);g.p=HiD.prototype;g.p.seekToChapterWithAnimation=function(A){var L=this;if(g.Hh(this.api)&&!(A<0)){var B=this.api.getVideoData(),f=B.k6;if(f&&A<f.length){f=g.m(f);for(var K=f.next();!K.done;K=f.next())if(K=K.value,K.index===A){hTv(this,K.startTime,K.title);return}}this.J("web_key_moments_markers")&&(B=B.sC)&&A<B.length&&B.forEach(function(V,J){J===A&&hTv(L,V.timeRangeStartMillis,V.title)})}};
|
|
g.p.seekToTimeWithAnimation=function(A,L){g.Hh(this.api)&&hTv(this,A,L)};
|
|
g.p.setMacroMarkers=function(A,L){L={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:L}}}}}};A=A.getVideoData();A.getWatchNextResponse();A&&A.getWatchNextResponse()==null&&(Ja(A,{raw_watch_next_response:L}),A.publish("dataupdated"))};
|
|
g.p.changeMarkerVisibility=function(A,L,B){var f=this.api.getVideoData();if(f){var K=!1;if(A)for(A=g.m(L),L=A.next();!L.done;L=A.next()){L=L.value;var V=f.JF;if(V&&!V.includes(L))switch(B){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":tny(L,f)||(K=!0,V=void 0,(V=f.JF)==null||V.push(L));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":V.length===0&&(K=!0,V=void 0,(V=f.JF)==null||V.push(L));break;default:K=!0,V=void 0,(V=f.JF)==null||V.push(L)}}else for(B=
|
|
g.m(L),A=B.next();!A.done;A=B.next())A=A.value,f.visibleOnLoadKeys.includes(A)||g.Lx(f.JF,A)&&(K=!0);K&&this.api.publish("updatemarkervisibility")}};
|
|
g.p.isSameMarkerTypeVisible=function(A){var L=this.api.getVideoData();return L?tny(A,L):!1};g.G(om,VC);
|
|
om.prototype.updateMetadata=function(){var A=this,L=this.api.getVideoData();if(L!=null&&L.gX()){var B=this.api.K(),f=[],K="";if(!B.qp){var V=m8w(this);g.cH(B)&&V?(f=QSL(V.thumbnailDetails),V.album&&(K=J2(V.album))):f=[{src:L.g1("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var J;((J=this.api.getVideoData())==null?0:cn7(J))&&Tg1(this);kL0(this);ljk(this);navigator.mediaSession.metadata=new MediaMetadata({title:L.title,artist:L.author,artwork:f,album:K});B=L=null;g.ch(this.api)&&(L=function(){A.api.nextVideo()},
|
|
B=function(){A.api.previousVideo()});
|
|
Be("nexttrack",L);Be("previoustrack",B)}};
|
|
om.prototype.l1=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var A=g.m("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),L=A.next();!L.done;L=A.next())Be(L.value,null);var B;((B=this.api.getVideoData())==null?0:cn7(B))&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});VC.prototype.l1.call(this)};g.G(Kl,VC);Kl.prototype.setCompositeVideoOverlayRendererComponent=function(A){this.V&&(this.V.remove(),g.NH(this.V,"ytp-composite-video-overlay-renderer"),this.V=void 0);A&&(g.R1(A,"ytp-composite-video-overlay-renderer"),g.Wh(this.api,A,4),this.V=A)};
|
|
Kl.prototype.D=function(A){return A.compositeEmbargo!==void 0};
|
|
Kl.prototype.l1=function(){VC.prototype.l1.call(this);this.W.clear()};g.G(OiL,VC);g.p=OiL.prototype;g.p.queueOfflineAction=function(A,L,B,f){var K=this,V,J;return g.c(function(R){return R.N==1?(V=bg(K.api.SI()))?g.X(R,V.cW([A],L,B,f),3):R.Ux(2):R.N!=2&&(J=R.W,J.length)?R.return(J[0]):R.return(Promise.reject())})};
|
|
g.p.updateDownloadState=function(A,L){var B=bg(this.api.SI());return B?B.updateDownloadState(A,L):Promise.reject()};
|
|
g.p.pauseVideoDownload=function(A){var L=bg(this.api.SI());L&&L.Bw(A)};
|
|
g.p.resumeVideoDownload=function(A){var L=this,B;return g.c(function(f){return(B=bg(L.api.SI()))?f.return(B.AG(A)):f.return(Promise.reject())})};
|
|
g.p.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
|
|
g.p.refreshAllStaleEntities=function(A){A===void 0&&(A=14400);var L=bg(this.api.SI());return L?L.refreshAllStaleEntities(A):Promise.reject()};
|
|
g.p.setUpPositionSyncInterval=function(A){var L=bg(this.api.SI());L&&L.setUpPositionSyncInterval(A)};g.G(Ekw,VC);g.p=Ekw.prototype;g.p.wR=function(){var A=this.api.getVideoData();return A.b8&&!A.ke};
|
|
g.p.load=function(){var A=this;this.loaded||g.xi(this.api.K())||(this.overlay=new g.q({Z:"div",Rr:["ytp-ypc-clickwrap-overlay","ytp-player-content"],B:[{Z:"h2",j:"ytp-ypc-clickwrap-header",Ir:"Vuoi iniziare questo noleggio?"},{Z:"div",j:"ytp-ypc-clickwrap-description",Ir:this.api.getVideoData().QR},{Z:"button",Rr:["ytp-ypc-clickwrap-confirm","ytp-button"],Ir:"Inizia il noleggio"}]}),g.W(this,this.overlay),g.Wh(this.api,this.overlay.element,4),this.overlay.Y(this.overlay.m4("ytp-ypc-clickwrap-confirm"),
|
|
"click",function(){A.onConfirm()}),this.loaded=!0)};
|
|
g.p.onConfirm=function(){var A=this;this.overlay&&this.overlay.hide();this.N.Y(this.api,"videodatachange",function(){A.api.Z2("ypcRentalActivation")});
|
|
this.api.Z2("ypcRentalActivation")};
|
|
g.p.unload=function(){this.loaded&&(this.overlay&&(this.overlay.dispose(),this.overlay=null),g.$_(this.N),this.loaded=!1)};
|
|
g.p.l1=function(){this.unload();VC.prototype.l1.call(this)};g.G(Vp,VC);Vp.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
|
|
Vp.prototype.getAvailableQualityData=function(){var A=this.api.getVideoData();if(!A)return[];var L=[],B,f,K=(B=A.getPlayerResponse())==null?void 0:(f=B.playabilityStatus)==null?void 0:f.paygatedQualitiesMetadata;f=(K==null?void 0:K.qualityDetails)||[];B=new Map;B=g.QK(f)&&!Array.isArray(f)?new Map(Object.entries(f)):new Map(f.map(function(J){return[J.key,J.value]}));
|
|
if(f=K==null?void 0:K.restrictedAdaptiveFormats){K=[];f=g.m(f);for(var V=f.next();!V.done;V=f.next())V=V.value,V=eo(V.mimeType,V.quality,V.itag.toString(),V.width.toString(),V.height.toString(),V.qualityLabel,V.qualityOrdinal&&mbQ[V.qualityOrdinal]),K.push(V);A=g.Gp(A);eH(K);f=[];K=g.m(K);for(V=K.next();!V.done;V=K.next())V=V.value,qy(A,V,this.api.K().D)===!0&&f.push(V);L=L.concat(cBC(f,!1,B))}A=this.api.Q9();L=L.concat(cBC(A,!0,B));B=[];if(this.api.J("web_player_enable_premium_hbr_in_h5_api"))return L=
|
|
Yie(L),Mnk(L),L;A={};L=g.m(L);for(K=L.next();!K.done;K=L.next())K=K.value,f=K.quality,A[f]||(K.formatId=void 0,B.push(K),A[f]=!0);return B};var GS={},VS9=(GS["internal-error"]=-1,GS["non-recoverable-error"]=-2,GS["api-disabled-by-application"]=-3,GS["invalid-argument"]=-4,GS["token-provider-invalid"]=-5,GS);g.G(Jk,VC);Jk.prototype.Xg=function(A){var L=this;if(WBe())if(!this.W&&this.N){P3S(this,A);try{this.N.then(function(){qiL(L,A)},function(B){Ss(B,"player_update");
|
|
L.handleError(B,A)})}catch(B){Ss(B,"player_update_catch"),this.handleError(B,A)}}else this.W?qiL(this,A):this.api.Hn("pf",{m:this.W?1:0,
|
|
p:this.N?1:0})};
|
|
Jk.prototype.handleError=function(A,L){g.CE(A);if(this.api.J("html5_enable_d6de4_cold_start_and_error")){var B=0;A.mediaIntegrityErrorName?B||(B=VS9[A.mediaIntegrityErrorName]):A.code&&(B=A.code());L.SH={bwr:{code:B}}}};g.G(Rm,g.q);Rm.prototype.zL=function(A){A=A?"Esci da Picture in picture":"Picture in picture";this.api.K().J("player_tooltip_data_title_killswitch")?this.update({title:A,"data-title-no-tooltip":A}):this.update({"data-tooltip-title":A,"data-title-no-tooltip":A});this.api.qq()};
|
|
Rm.prototype.onClick=function(){this.api.togglePictureInPicture()};g.G(ZW,VC);ZW.prototype.createButton=function(){var A=this;this.button=new Rm(this.api);g.W(this,this.button);this.api.fJ(this.button);this.events.Y(this.api,"videodatachange",function(){x8e(A)});
|
|
x8e(this)};
|
|
ZW.prototype.setDocumentPictureInPicture=function(A){this.api.WI().Aa(A);A=this.api.nV();var L=Dp8(this.api.SI());L&&(A?L.load():L.unload());this.api.publish("documentpictureinpicturechange")};g.G(eTk,VC);g.p=eTk.prototype;g.p.wR=function(){return this.api.getVideoData().p9.includes("playableSequences")};
|
|
g.p.load=function(){var A=this;if(!this.loaded){this.D||(this.D=new g.q({Z:"div",Rr:["ytp-player-content","ytp-yto-overlay"],B:[{Z:"div",Rr:["ytp-yto-preroll-message"],Ir:"Il video inizier\u00e0 a breve"}]}),g.W(this,this.D),nky(this,!1),g.Wh(this.api,this.D.element,4));var L=this.api.getPresentingPlayerType();this.W.Y(this.api,"playbackChange",function(){var B=A.api.getPresentingPlayerType()===5;g.D1(A.api.getRootNode(),"ytp-yto-preroll",B);nky(A,B)});
|
|
this.W.Y(this.api,"presentingplayerstatechange",function(B){A.onStateChange(B)});
|
|
this.W.Y(this.api,g.qR("yto"),function(B,f){A.onCueRangeEnter(B,f)});
|
|
this.W.Y(this.api,"ytoprerollinternstitialnext",function(){ajQ(A)});
|
|
zTe(this);this.loaded=!0;this.api.Z2("playableSequences",L)}};
|
|
g.p.onCueRangeEnter=function(A){A=A.getId();if(!this.N){if(g.x(this.api.getPlayerStateObject(1),2)){if(this.T)return}else this.T=!1;this.V.includes(A)||this.V.push(A);this.api.getPresentingPlayerType()===1&&ugQ(this)}};
|
|
g.p.onStateChange=function(A){var L=this.api.getPresentingPlayerType();A=A.state;this.N||L!==5&&L!==6&&L!==7||g.x(A,1)||g.x(A,16)||g.x(A,32)||(L=g.x(A,128),(g.x(A,2)||L)&&ajQ(this))};
|
|
g.p.unload=function(){this.loaded&&(this.G=0,this.T=this.N=!1,this.X={},this.U=0,this.V.length=0,g.$_(this.W),this.loaded=!1)};
|
|
g.p.l1=function(){this.unload();VC.prototype.l1.call(this)};g.G(AtQ,VC);g.G(DW,g.q);g.p=DW.prototype;g.p.gJ=function(){};
|
|
g.p.qb=function(){};
|
|
g.p.CC=function(){return!0};
|
|
g.p.pRr=function(){if(this.expanded){this.Nl.show();var A=this.U.element.scrollWidth}else A=this.U.element.scrollWidth,this.Nl.hide();this.Pz=this.Ex+A;g.D1(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.Ex:this.Pz)+"px";this.Ox.start()};
|
|
g.p.Ya=function(){this.badge.element.style.width=(this.expanded?this.Pz:this.Ex)+"px";this.ql.start()};
|
|
g.p.hH=function(){this.W&&this.S.logVisibility(this.badge.element,this.CC());this.Wn&&this.S.logVisibility(this.dismissButton.element,this.CC()&&this.pH())};
|
|
g.p.H5=function(A){this.Vj=A;F7(this);NQ(this);this.B9()};
|
|
g.p.XIn=function(){g.D1(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
|
|
g.p.pH=function(){return this.qp||this.Vj||!this.X};
|
|
g.p.B9=function(){this.CC()?(this.show(),this.G.show()):this.G.hide();this.hH()};
|
|
g.p.CB=function(){this.enabled=!1;this.B9()};
|
|
g.p.Or=function(A){A?this.Wn&&this.S.logClick(this.dismissButton.element):this.W&&this.S.logClick(this.badge.element)};
|
|
g.p.jcF=function(){this.B9()};
|
|
g.p.kZj=function(A){this.jI=A===1;this.B9();g.D1(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
|
|
g.p.A$p=function(){g.D1(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.S.isFullscreen());this.B9()};g.G(dA,g.DE);g.p=dA.prototype;g.p.QM=function(){this.publish("size-change")};
|
|
g.p.xo=function(){return oH6(this)};
|
|
g.p.uU=function(){return oH6(this)};
|
|
g.p.focus=function(){this.content.focus()};
|
|
g.p.fT=function(){this.publish("back")};g.G(g.Im,dA);g.p=g.Im.prototype;g.p.ov=function(A,L){if(L===void 0?0:L)this.items.push(A),this.menuItems.element.appendChild(A.element);else{L=g.Fc(this.items,A,Bw0);if(L>=0)return;L=~L;g.Zw(this.items,L,0,A);iA(this.menuItems.element,A.element,L)}A.subscribe("size-change",this.SU,this);this.menuItems.publish("size-change")};
|
|
g.p.xo=function(){oH6(this)||this.items[0].focus();return!0};
|
|
g.p.uU=function(){this.items[this.items.length-1].focus();return!0};
|
|
g.p.Z1=function(A){A.unsubscribe("size-change",this.SU,this);this.TL()||(g.Lx(this.items,A),this.menuItems.element.removeChild(A.element),this.menuItems.publish("size-change"))};
|
|
g.p.SU=function(){this.menuItems.publish("size-change")};
|
|
g.p.focus=function(){for(var A=0,L=0;L<this.items.length;L++){var B=this.items[L].element;if(B.getAttribute("role")==="menuitemradio"){if(B.getAttribute("aria-checked")==="true"){A=L;break}}else break}this.items[A].focus()};
|
|
g.p.uM=function(){return this.items.length};g.G(g.pl,g.zg);g.p=g.pl.prototype;g.p.E6F=function(A){this.N[this.N.length-1].uU()||A.preventDefault()};
|
|
g.p.zSs=function(A){this.N[this.N.length-1].xo()||A.preventDefault()};
|
|
g.p.show=function(){g.zg.prototype.show.call(this);this.oN()};
|
|
g.p.hide=function(){g.zg.prototype.hide.call(this);this.N.length>1&&g.js(this)};
|
|
g.p.oN=function(){Vvw(this);this.bC&&(f5L(this),g.wK(this.element,this.size))};
|
|
g.p.h2=function(){var A=this.N.pop();KIS(this,A,this.N[this.N.length-1],!0)};
|
|
g.p.A2=function(A){if(!A.defaultPrevented)switch(A.keyCode){case 27:this.YP();A.preventDefault();break;case 37:this.N.length>1&&this.h2();A.preventDefault();break;case 39:A.preventDefault()}};
|
|
g.p.focus=function(){this.N.length&&this.N[this.N.length-1].focus()};
|
|
g.p.l1=function(){g.zg.prototype.l1.call(this);this.V&&this.V.dispose();this.U&&this.U.dispose()};g.G(gA,g.pl);gA.prototype.open=function(A,L){this.initialize(A.items)&&this.fD(L,!!L)};
|
|
gA.prototype.initialize=function(A){g.wA(this.NU);if(A===void 0||A.length===0)return!1;var L=A.length;A=g.m(A);for(var B=A.next();!B.done;B=A.next())this.ov(B.value,L--);return!0};
|
|
gA.prototype.ov=function(A,L){A.menuNavigationItemRenderer?R_Q(this,A.menuNavigationItemRenderer,L):A.menuServiceItemRenderer&&ZRL(this,A.menuServiceItemRenderer,L)};g.G(Gt,DW);g.p=Gt.prototype;g.p.gJ=function(A){A.target!==this.dismissButton.element&&A.target!==this.overflowButton.element&&(this.Or(),this.onClickCommand&&this.S.Kr("innertubeCommand",this.onClickCommand))};
|
|
g.p.qb=function(){this.enabled=!1;this.G.hide()};
|
|
g.p.CC=function(){return!!this.N&&this.enabled};
|
|
g.p.onVideoDataChange=function(A,L){this.Tn(L);if(this.N){this.iO();a:if(!this.isCounterfactual){var B,f,K;this.banner.update({title:(B=this.N)==null?void 0:B.title,subtitle:(f=this.N)==null?void 0:f.subtitle,metadata:(K=this.N)==null?void 0:K.metadataText});var V;this.onClickCommand=g.y((V=this.N)==null?void 0:V.onTap,XP);var J;if(A=g.y((J=this.N)==null?void 0:J.onOverflow,XP))this.T=g.y(A,Ft9);var R;if((R=this.N)==null?0:R.thumbnailImage){var Z,N;J=((Z=this.N)==null?void 0:(N=Z.thumbnailImage)==
|
|
null?void 0:N.sources)||[];if(J.length===0)break a;this.thumbnailImage.update({url:J[0].url})}else{var F;if((F=this.N)==null?0:F.thumbnailIconName){var D;this.thumbnailIcon.update({icon:(D=this.N)==null?void 0:D.thumbnailIconName})}}var I;this.shouldShowOverflowButton=!((I=this.N)==null||!I.shouldShowOverflowButton);var d;this.shouldHideDismissButton=!((d=this.N)==null||!d.shouldHideDismissButton)}var w;this.banner.element.setAttribute("aria-label",((w=this.N)==null?void 0:w.a11yLabel)||"");var r;
|
|
this.Cr=(r=this.N)==null?void 0:r.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;FIS(this)}};
|
|
g.p.g64=function(){this.isVisible=!0;FIS(this)};
|
|
g.p.n6D=function(){this.isVisible=!1;FIS(this)};
|
|
g.p.hH=function(){DW.prototype.hH.call(this);this.V&&this.S.logVisibility(this.banner.element,this.isVisible)};
|
|
g.p.Or=function(){DW.prototype.Or.call(this,!1);this.V&&this.S.logClick(this.banner.element)};
|
|
g.p.u6=function(A){this.D||(this.D=new gA(this.S),g.W(this,this.D));var L,B;if((L=this.T)==null?0:(B=L.menu)==null?0:B.menuRenderer)this.D.open(this.T.menu.menuRenderer,A.target),A.preventDefault()};
|
|
g.p.Tn=function(){};
|
|
g.p.iO=function(){};
|
|
g.p.l1=function(){this.S.Jf("suggested_action_view_model");DW.prototype.l1.call(this)};g.G(rA,Gt);
|
|
rA.prototype.Tn=function(A){var L,B,f;this.productUpsellSuggestedActionViewModel=g.y((L=A.getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.suggestedActionViewModel,hwd);var K;if((K=this.productUpsellSuggestedActionViewModel)==null?0:K.content){var V;this.N=g.y((V=this.productUpsellSuggestedActionViewModel)==null?void 0:V.content,RwX)}var J,R;if(this.V=!!((J=this.productUpsellSuggestedActionViewModel)==null?0:(R=J.loggingDirectives)==null?
|
|
0:R.trackingParams)){var Z,N;this.S.setTrackingParams(this.banner.element,((Z=this.productUpsellSuggestedActionViewModel)==null?void 0:(N=Z.loggingDirectives)==null?void 0:N.trackingParams)||null)}var F;this.isCounterfactual=!((F=this.productUpsellSuggestedActionViewModel)==null||!F.isCounterfactualServing)};
|
|
rA.prototype.iO=function(){var A=[],L,B=g.m(((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.ranges)||[]);for(L=B.next();!L.done;L=B.next()){var f=L.value;f&&(L=Number(f.startTimeMilliseconds),f=Number(f.endTimeMilliseconds),isNaN(L)||isNaN(f)||A.push(new g.WR(L,f,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.S.dX(A)};g.G(D9D,VC);g.G(sq,VC);sq.prototype.onVideoDataChange=function(A,L){var B=this;if(!oh(L)&&(A==="newdata"&&wY6(this),this.N&&A==="dataloaded")){this.N=!1;var f;LP(A2(y3(this.api.K(),(f=this.api.getVideoData())==null?void 0:g.Aj(f)),function(K){rtE(B,K)}),function(){B.N=!0})}};
|
|
sq.prototype.dh=function(){var A=this;if(g.wY(this.api.K())){var L,B=g.po(this.api.K(),(L=this.api.getVideoData())==null?void 0:g.Aj(L));return A2(nS(B),function(f){var K=xn();eg(K,f);return A.api.dh(K)})}return nS(this.api.dh())};g.G(g.He,g.of);g.p=g.He.prototype;g.p.open=function(){g.yp(this.Wz,this.rf)};
|
|
g.p.GH=function(A){HRy(this);var L=this.options[A];L&&(L.element.setAttribute("aria-checked","true"),this.setContent(this.I8(A)),this.GP=A)};
|
|
g.p.eO=function(A){g.wA(this.rf);for(var L={},B=!1,f=0;f<A.length;f++){var K=A[f],V=this.options[K],J=K===this.GP;J&&(B=!0);V&&V.priority===-f?(g.Lh(this.options[K],this.I8(K,!0)),delete this.options[K]):V=this.Em(K,-f,J);L[K]=V;this.rf.ov(V,!0)}B||(this.GP=null);A=g.m(Object.keys(this.options));for(B=A.next();!B.done;B=A.next())this.options[B.value].dispose();this.options=L};
|
|
g.p.Em=function(A,L,B,f){var K=this;B={Z:"div",Rr:["ytp-menuitem",f?"ytp-menuitem-with-footer":""],C:{tabindex:"0",role:"menuitemradio","aria-checked":B?"true":"false"},B:[{Z:"div",Rr:["ytp-menuitem-label"],Ir:"{{label}}"}]};f&&(f={Z:"div",j:"ytp-menuitem-footer",B:[f]},B.B?B.B.push(f):B.B=[f]);L=new g.of(B,L,this.I8(A,!0));L.listen("click",function(){K.wk(A)});
|
|
return L};
|
|
g.p.enable=function(A){this.D?A||(this.D=!1,this.Ru(!1)):A&&(this.D=!0,this.Ru(!0))};
|
|
g.p.Ru=function(A){A?this.Wz.ov(this):this.Wz.Z1(this)};
|
|
g.p.A$=function(A){this.publish("select",A)};
|
|
g.p.wk=function(A){this.A$(A)};
|
|
g.p.I8=function(A){return A.toString()};
|
|
g.p.A2=function(A){A.defaultPrevented||A.keyCode!==39||(this.open(),A.preventDefault())};
|
|
g.p.l1=function(){this.D&&this.Wz.Z1(this);g.of.prototype.l1.call(this);for(var A=g.m(Object.keys(this.options)),L=A.next();!L.done;L=A.next())this.options[L.value].dispose()};g.G(bRD,g.He);g.p=bRD.prototype;g.p.zL=function(){var A=this.jC("Off");this.S.getPresentingPlayerType()!==2?(tv1(this),this.GH(this.V),this.N&&(this.V===A?this.N="":this.setSleepTimerTimeLeft(this.N)),this.U&&this.setVideoTimeLeft(this.U),this.enable(!0)):(this.eO([]),this.enable(!1))};
|
|
g.p.A$=function(A){ka1(this,A);this.Wz.h2()};
|
|
g.p.jC=function(A){switch(A){case "Off":return"Off";case "End of video":return"Fine del video";case "End of playlist":return"Fine della playlist";default:return(A.toString()+" Minuti").toLowerCase()}};
|
|
g.p.onVideoDataChange=function(A){A==="dataloaded"&&tv1(this)};
|
|
g.p.QY=function(A){this.S.logVisibility(this.element,A)};
|
|
g.p.onClick=function(){this.S.logClick(this.element)};
|
|
g.p.resetSleepTimerMenuSettings=function(){ka1(this,this.jC("Off"))};
|
|
g.p.setSleepTimerTimeLeft=function(A){this.N=A;this.setContent(A)};
|
|
g.p.setVideoTimeLeft=function(A){this.U=A;this.W.setContent(A)};g.G(hk,VC);hk.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
|
|
hk.prototype.setSleepTimerTimeLeft=function(A){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(A)};
|
|
hk.prototype.setVideoTimeLeft=function(A){this.menuItem&&this.menuItem.setVideoTimeLeft(A)};g.G(TwC,VC);g.G(g.tk,g.SN);g.p=g.tk.prototype;g.p.Y=function(A,L){this.U.Y(this.G,A,L,void 0,!this.N)};
|
|
g.p.cancel=function(){this.V&&(this.V=!1,this.publish("dragend",0,0,null));this.W&&(this.W=!1,this.publish("hoverend",0,0,null),k8(this),bu(this))};
|
|
g.p.ob=function(A){k8(this);this.Y(Tt("move"),this.sH);this.Y(Tt("out"),this.gA);this.Y("touchstart",this.Dq);this.N&&this.Y(Tt("down"),this.Zq);var L=A.target;A=new g.Vl(A.pageX,A.pageY);this.W=!0;this.publish("hoverstart",A.x,A.y,L);this.publish("hovermove",A.x,A.y,L)};
|
|
g.p.sH=function(A){var L=A.target;A=new g.Vl(A.pageX,A.pageY);if(this.D){var B=this.D;this.D=null;if(B.relatedTarget===L&&J8(new g.Vl(B.pageX,B.pageY),A))return}this.publish("hovermove",A.x,A.y,L)};
|
|
g.p.gA=function(A){var L=new g.Vl(A.pageX,A.pageY),B=A.relatedTarget;try{if(B&&g.XF(this.target,B)){this.D=A;this.publish("hovermove",L.x,L.y,B);return}}catch(f){}k8(this);bu(this);this.W=!1;this.publish("hoverend",L.x,L.y,B)};
|
|
g.p.hT4=function(A){this.ob(A);this.Zq(A)};
|
|
g.p.Zq=function(A){if(typeof A.button!=="number"||A.button===0){k8(this);this.U.Y(lu(A.target),Tt("move"),this.Aw4);this.U.Y(lu(A.target),Tt("up"),this.v_);var L=A.target;if(g.h8)this.Y("dragstart",this.bd);else if(A.preventDefault(),(g.F1||V9)&&L)a:{for(var B=L;B;){if(EA(B)||B.getAttribute("tabindex")==="-1"){B.focus();break a}B=B.parentElement}lu(L).activeElement.blur()}this.V=!0;A=new g.Vl(A.pageX,A.pageY);this.publish("dragstart",A.x,A.y,L);this.publish("dragmove",A.x,A.y,L)}};
|
|
g.p.bd=function(A){A.preventDefault()};
|
|
g.p.Aw4=function(A){var L=A.target;L===lu(A.target)&&(L=null);A=new g.Vl(A.pageX,A.pageY);this.publish("hovermove",A.x,A.y,L);this.publish("dragmove",A.x,A.y,L)};
|
|
g.p.v_=function(A){k8(this);this.V=!1;var L=lt(A),B=A.target;A=new g.Vl(A.pageX,A.pageY);L&&g.XF(this.target,L)?(this.Y(Tt("move"),this.sH),this.Y(Tt("out"),this.gA),this.Y(Tt("down"),this.Zq),this.Y("touchstart",this.Dq),this.publish("dragend",A.x,A.y,B)):(bu(this),this.W=!1,this.publish("dragend",A.x,A.y,B),this.publish("hoverend",A.x,A.y,B))};
|
|
g.p.Dq=function(A){var L=A.changedTouches[0];L&&(k8(this),this.yj||(this.Y("touchmove",this.kt4),this.Y("touchend",this.xl),this.Y("touchcancel",this.xl),this.T=L.identifier,A=A.target,this.W||(this.W=!0,this.publish("hoverstart",L.pageX,L.pageY,A)),this.publish("hovermove",L.pageX,L.pageY,A),this.N&&(this.V=!0,this.publish("dragstart",L.pageX,L.pageY,A),this.publish("dragmove",L.pageX,L.pageY,A))))};
|
|
g.p.kt4=function(A){var L=l5E(this,A);L&&(this.N&&A.preventDefault(),A=A.target,this.publish("hovermove",L.pageX,L.pageY,A),this.N&&this.publish("dragmove",L.pageX,L.pageY,A))};
|
|
g.p.xl=function(A){var L=l5E(this,A);if(L){k8(this);bu(this);this.W=!1;var B=A.target;this.N&&(this.X||A.preventDefault(),this.V=!1,this.publish("dragend",L.pageX,L.pageY,B));this.publish("hoverend",L.pageX,L.pageY,B)}};
|
|
g.p.l1=function(){this.N&&(g.h8&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");k8(this);g.SN.prototype.l1.call(this)};
|
|
var m9L=!1;g.G(CG8,g.q);CG8.prototype.HI=function(){g.Kv(this.element,"display","none");this.S.logVisibility(this.N,!1)};g.G(Qp,VC);Qp.prototype.qp=function(A,L){this.TL()||(this.G=[A,L],this.N.subscribe("dragmove",this.T,this),this.N.subscribe("dragend",this.D,this),this.V||g.Az(this.delay))};
|
|
Qp.prototype.ZM=function(){if(this.U){this.V=!0;this.Vj=this.api.getPlaybackRate();this.wT=this.api.getPlayerStateObject().isPaused();var A=this.speedmasterUserEdu;g.Kv(A.element,"display","");A.S.logVisibility(A.N,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.X&&(this.X.o3=!0);this.Wn&&(this.Wn.r7=!0);this.J("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged",!0)}};
|
|
Qp.prototype.T=function(A,L){if(!this.V){A=[A,L];var B=this.G;B&&A&&B.length===2&&A.length===2?(L=Math.abs(B[0]-A[0]),B=Math.abs(B[1]-A[1]),L=Math.sqrt(L*L+B*B)):L=-1;L<10?this.G=A:Cl(this)}};
|
|
Qp.prototype.D=function(){Cl(this)};g.G(XYk,VC);g.G(iu,g.f8);iu.prototype.preventDefault=function(){g.f8.prototype.preventDefault.call(this);this.N&&this.N.preventDefault()};
|
|
iu.prototype.stopPropagation=function(){g.f8.prototype.stopPropagation.call(this);this.N&&this.N.stopPropagation()};g.G(g.$8,je);g.p=g.$8.prototype;g.p.wy=function(){return!0};
|
|
g.p.isView=function(){return!1};
|
|
g.p.EO=function(){return!1};
|
|
g.p.Zg=function(){return this.N};
|
|
g.p.eE=function(){return this.N.src};
|
|
g.p.aM=function(A){var L=this.getPlaybackRate();this.N.src=A;this.setPlaybackRate(L)};
|
|
g.p.Hd=function(){this.N.removeAttribute("src")};
|
|
g.p.getPlaybackRate=function(){try{return this.N.playbackRate>=0?this.N.playbackRate:1}catch(A){return 1}};
|
|
g.p.setPlaybackRate=function(A){this.getPlaybackRate()!==A&&(this.N.playbackRate=A);return A};
|
|
g.p.e5=function(){return this.N.loop};
|
|
g.p.setLoop=function(A){this.N.loop=A};
|
|
g.p.canPlayType=function(A,L){return this.N.canPlayType(A,L)};
|
|
g.p.isPaused=function(){return this.N.paused};
|
|
g.p.isSeeking=function(){return this.N.seeking};
|
|
g.p.isEnded=function(){return this.N.ended};
|
|
g.p.ib=function(){return this.N.muted};
|
|
g.p.o6=function(A){D2();this.N.muted=A};
|
|
g.p.wN=function(){return this.N.played||n$([],[])};
|
|
g.p.YJ=function(){try{var A=this.N.buffered}catch(L){}return A||n$([],[])};
|
|
g.p.Zk=function(){return this.N.seekable||n$([],[])};
|
|
g.p.r_=function(){var A=this.N;return A.getStartDate?A.getStartDate():null};
|
|
g.p.getCurrentTime=function(){return this.N.currentTime};
|
|
g.p.setCurrentTime=function(A){this.N.currentTime=A};
|
|
g.p.getDuration=function(){return this.N.duration};
|
|
g.p.load=function(){var A=this.N.playbackRate;try{this.N.load()}catch(L){}this.N.playbackRate=A};
|
|
g.p.pause=function(){this.N.pause()};
|
|
g.p.play=function(){var A=this.N.play();if(!A||!A.then)return null;A.then(void 0,function(){});
|
|
return A};
|
|
g.p.J2=function(){return this.N.readyState};
|
|
g.p.Yj=function(){return this.N.networkState};
|
|
g.p.p8=function(){return this.N.error?this.N.error.code:null};
|
|
g.p.SE=function(){return this.N.error?this.N.error.message:""};
|
|
g.p.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.N instanceof window.HTMLVideoElement&&this.N.getVideoPlaybackQuality)return this.N.getVideoPlaybackQuality();if(this.N){var A=this.N,L=A.webkitDroppedFrameCount;if(A=A.webkitDecodedFrameCount)return{droppedVideoFrames:L||0,totalVideoFrames:A}}return{}};
|
|
g.p.QC=function(){return!!this.N.webkitCurrentPlaybackTargetIsWireless};
|
|
g.p.m2=function(){return!!this.N.webkitShowPlaybackTargetPicker()};
|
|
g.p.togglePictureInPicture=function(){var A=this.N,L=window.document;window.document.pictureInPictureEnabled?this.N!==L.pictureInPictureElement?A.requestPictureInPicture():L.exitPictureInPicture():F2()&&A.webkitSetPresentationMode(A.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
|
|
g.p.Gf=function(){return IwL(this.N)};
|
|
g.p.getSize=function(){return g.pv(this.N)};
|
|
g.p.setSize=function(A){g.wK(this.N,A)};
|
|
g.p.getVolume=function(){return this.N.volume};
|
|
g.p.setVolume=function(A){D2();this.N.volume=A};
|
|
g.p.uR=function(A){this.W[A]||(this.N.addEventListener(A,this.listener),this.W[A]=this.listener)};
|
|
g.p.setAttribute=function(A,L){this.N.setAttribute(A,L)};
|
|
g.p.removeAttribute=function(A){this.N.removeAttribute(A)};
|
|
g.p.hasAttribute=function(A){return this.N.hasAttribute(A)};
|
|
g.p.Xk=OD(53);g.p.BQ=OD(56);g.p.PQ=OD(59);g.p.uA=OD(62);g.p.VJ=function(){return H9(this.N)};
|
|
g.p.zf=function(A){g.R1(this.N,A)};
|
|
g.p.AY=function(A){return g.SV(this.N,A)};
|
|
g.p.xU=function(){return g.XF(document.body,this.N)};
|
|
g.p.audioTracks=function(){var A=this.N;if("audioTracks"in A)return A.audioTracks};
|
|
g.p.l1=function(){for(var A=g.m(Object.keys(this.W)),L=A.next();!L.done;L=A.next())L=L.value,this.N.removeEventListener(L,this.W[L]);je.prototype.l1.call(this)};
|
|
g.p.vl=function(A){this.N.disableRemotePlayback=A};g.G(X7,g.q);g.G(Eq,g.q);Eq.prototype.show=function(){g.q.prototype.show.call(this);this.zL()};
|
|
Eq.prototype.hide=function(){g.q.prototype.hide.call(this);this.delay.stop();this.U.stop()};
|
|
Eq.prototype.zL=function(){var A=(0,g.bc)(),L=EHk(this.rT);Oq(this.N,L.bandwidth_samples);Oq(this.T,L.network_activity_samples);Oq(this.V,L.live_latency_samples);Oq(this.W,L.buffer_health_samples);var B={};L=g.m(Object.entries(L));for(var f=L.next();!f.done;f=L.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;this.X[f]!==K&&(B[f]=" "+String(K));this.X[f]=K}this.update(B);A=(0,g.bc)()-A>25?5E3:500;this.delay.start(A)};
|
|
Eq.prototype.G=function(){this.D?(this.position+=1,this.position>15&&(this.D=!1)):(--this.position,this.position<=0&&(this.D=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.U.start(2E4)};g.G(YPQ,VC);g.G(ce,g.Y);ce.prototype.N=function(){var A=(0,g.bc)()-this.startTime;A=A<this.duration?A/this.duration:1;this.W(hz(JFw,A));A<1&&this.delay.start()};
|
|
var JFw=new HC(0,0,.4,0,.2,1,1,1),x9e=/[0-9.-]+|[^0-9.-]+/g;g.G(MQ,g.q);MQ.prototype.onClick=function(){var A=this.api.app;var L=A.J("web_log_theater_mode_visibility")?!A.EN():!A.Nw;A.rT.Kr("SIZE_CLICKED",L);this.api.logClick(this.element)};
|
|
MQ.prototype.zL=function(){this.xP(this.api.BM()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.bC){var A=this.api.EN();this.EN!==A&&this.X9(A)}this.api.logVisibility(this.element,this.bC)};
|
|
MQ.prototype.X9=function(A){var L=this.api.J("delhi_modern_web_player_icons")?this.api.J("web_player_imax_theater_mode")?A?{Z:"svg",C:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M3 19h11v2H3l-.20-.01a2 2 0 0 1-1.78-1.78L1 19v-7h2v7Zm19.00-5a1 1 0 1 1 0 2h-4v4a1 1 0 1 1-2 0v-6h6ZM21 3a2 2 0 0 1 2 2v7h-2V5H10V3h11ZM7.00 3a1 1 0 0 1 1 1v6h-6a1 1 0 0 1 0-2h4V4a1 1 0 0 1 1-1Z"}}]}:{Z:"svg",C:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",
|
|
C:{d:"M21 3a2 2 0 0 1 2 2v14a2 2 0 0 1-1.79 1.99L21 21H3l-.20-.01a2 2 0 0 1-1.78-1.78L1 19V5a2 2 0 0 1 2-2h18ZM3 19h18V5H3v14Zm15-8a1 1 0 0 1 1 1v5h-5a1 1 0 1 1 0-2h3v-3a1 1 0 0 1 1-1Zm-8-4a1 1 0 1 1 0 2H7v3a1 1 0 1 1-2 0V7h5Z"}}]}:A?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 15V5H21V15H3ZM16.87 6.72H16.86L16.79 6.79L13.58 10L16.79 13.20C16.88 13.30 16.99 13.37 17.11 13.43C17.23 13.48 17.37 13.51 17.50 13.51C17.63 13.51 17.76 13.48 17.89 13.43C18.01 13.38 18.12 13.31 18.21 13.21C18.31 13.12 18.38 13.01 18.43 12.89C18.48 12.76 18.51 12.63 18.51 12.50C18.51 12.37 18.48 12.23 18.43 12.11C18.37 11.99 18.30 11.88 18.20 11.79L16.41 10L18.20 8.20L18.27 8.13C18.42 7.93 18.50 7.69 18.49 7.45C18.47 7.20 18.37 6.97 18.20 6.79C18.02 6.62 17.79 6.52 17.55 6.50C17.30 6.49 17.06 6.57 16.87 6.72ZM5.79 6.79C5.60 6.98 5.50 7.23 5.50 7.5C5.50 7.76 5.60 8.01 5.79 8.20L7.58 10L5.79 11.79L5.72 11.86C5.57 12.06 5.49 12.30 5.50 12.54C5.51 12.79 5.62 13.02 5.79 13.20C5.97 13.37 6.20 13.48 6.45 13.49C6.69 13.50 6.93 13.42 7.13 13.27L7.20 13.20L10.41 10L7.20 6.79C7.01 6.60 6.76 6.50 6.5 6.50C6.23 6.50 5.98 6.60 5.79 6.79ZM3 19V17H21V19H3Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 15V5H21V15H3ZM7.87 6.72L7.79 6.79L4.58 10L7.79 13.20C7.88 13.30 7.99 13.37 8.11 13.43C8.23 13.48 8.37 13.51 8.50 13.51C8.63 13.51 8.76 13.48 8.89 13.43C9.01 13.38 9.12 13.31 9.21 13.21C9.31 13.12 9.38 13.01 9.43 12.89C9.48 12.76 9.51 12.63 9.51 12.50C9.51 12.37 9.48 12.23 9.43 12.11C9.37 11.99 9.30 11.88 9.20 11.79L7.41 10L9.20 8.20L9.27 8.13C9.42 7.93 9.50 7.69 9.48 7.45C9.47 7.20 9.36 6.97 9.19 6.80C9.02 6.63 8.79 6.52 8.54 6.51C8.30 6.49 8.06 6.57 7.87 6.72ZM14.79 6.79C14.60 6.98 14.50 7.23 14.50 7.5C14.50 7.76 14.60 8.01 14.79 8.20L16.58 10L14.79 11.79L14.72 11.86C14.57 12.06 14.49 12.30 14.50 12.54C14.51 12.79 14.62 13.02 14.79 13.20C14.97 13.37 15.20 13.48 15.45 13.49C15.69 13.50 15.93 13.42 16.13 13.27L16.20 13.20L19.41 10L16.20 6.79C16.01 6.60 15.76 6.50 15.5 6.50C15.23 6.50 14.98 6.60 14.79 6.79ZM3 19V17H21V19H3Z",
|
|
fill:"white"}}]}:A?{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.EN==null||this.api.J("delhi_modern_web_player_icons")?this.updateValue("icon",L):PGL(this.transition,
|
|
this.element,L);A=(this.EN=A)?"Visualizzazione predefinita":"Modalit\u00e0 cinema";this.api.J("player_tooltip_data_title_killswitch")?this.update({title:g.iz(this.api,A,"t"),"data-title-no-tooltip":A}):this.update({"tooltip-title":g.iz(this.api,A,"t"),"data-title-no-tooltip":A});this.api.qq()};g.G(e_D,VC);g.G(a5y,VC);g.p=a5y.prototype;g.p.onVideoDataChange=function(A){this.K9();this.videoId=A.videoId;this.V=this.N=void 0;this.timelyActions=z_w(A);AkQ(this);Uq(this);this.dX()};
|
|
g.p.qP=function(A){var L=A.oldState,B=A.state,f=B.seekSource;!g.x(L,16)&&g.x(B,16)?this.py(f!=null?f:void 0):g.x(L,16)&&!g.x(B,16)&&this.fg();A=A.state;A=!A.isCued()&&!g.x(A,1024);this.W.xP(A)};
|
|
g.p.dX=function(){var A=this.Ef();A&&this.api.dX(A)};
|
|
g.p.K9=function(){this.api.Jf("timelyAction",1);if(this.N!==void 0)this.onCueRangeExit(this.N)};
|
|
g.p.Ef=function(){if(this.timelyActions){for(var A=[],L=g.m(this.timelyActions),B=L.next();!B.done;B=L.next())B=B.value,B=B.startTimeMilliseconds!=null&&B.endTimeMilliseconds!=null&&B.cueRangeId!=null?new g.WR(Number(B.startTimeMilliseconds),Number(B.endTimeMilliseconds),{id:B.cueRangeId,namespace:"timelyAction"}):void 0,B&&A.push(B);return A}};
|
|
g.p.onCueRangeEnter=function(A){var L=Y8(this,A);L&&this.U[A]!==void 0&&(L.maxShowCount===void 0||(L==null?void 0:L.maxShowCount)>this.U[A])&&(this.N=A,this.va())};
|
|
g.p.onCueRangeExit=function(A){var L=LSS(this,A);L&&this.N===A&&this.api.Kr("innertubeCommand",L);Uq(this);this.N=void 0};
|
|
g.p.py=function(A){this.V=A};
|
|
g.p.fg=function(){this.va();this.V=void 0};
|
|
g.p.va=function(){if(this.N!==void 0){var A=(A=Y8(this,this.N))&&A.onCueRangeEnter?EF(A.onCueRangeEnter):void 0;var L=Y8(this,this.N);a:if(L&&L.additionalTrigger){var B=g.m(L.additionalTrigger);for(var f=B.next();!f.done;f=B.next())if(f=f.value,f.type){var K=void 0,V=void 0;if((K=this.ZM[f.type])==null?0:K((V=f.args)!=null?V:{})){B=!0;break a}}B=!1}else B=!0;A&&B&&(this.api.Kr("innertubeCommand",A),o8L(this,L),this.U[this.N]!==void 0&&this.U[this.N]++,this.yj=!0)}};
|
|
g.p.l1=function(){this.timelyActions=this.V=this.N=this.videoId=void 0;this.U={};this.K9();Uq(this);VC.prototype.l1.call(this)};g.G(KSS,VC);g.G(We,Dq);We.prototype.U=function(A){this.V(A?2:1)};
|
|
We.prototype.f8=function(){var A=this.S.getPresentingPlayerType();A===2||A===3?this.N&&(this.N=!1,this.Wz.Z1(this)):(A=this.getVoiceBoostState(),A!==1?(A===0?(dC(this,this.W()===2),this.setEnabled(!0)):(dC(this,!1),this.setEnabled(!1)),this.N||(this.Wz.ov(this),this.N=!0)):this.N&&(this.Wz.Z1(this),this.N=!1))};
|
|
We.prototype.l1=function(){this.Wz.Z1(this);Dq.prototype.l1.call(this)};g.G(ve,VC);ve.prototype.getVoiceBoostUserPreference=function(){return this.N};
|
|
ve.prototype.setVoiceBoostUserPreference=function(A){this.api.Hn("vb_set",{pref:A});g.OS("yt-player-voice-boost",A);A!==this.N&&(this.N=A,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.A8(),this.api.VF())};
|
|
ve.prototype.getVoiceBoostState=function(){return this.api.a_(1)};
|
|
ve.prototype.updateEnvironmentData=function(){this.api.K().rg=this.N};g.G(Pe,VC);Pe.prototype.l1=function(){this.G&&(g.sQ(this.G),this.G=void 0);VC.prototype.l1.call(this)};
|
|
Pe.prototype.NK=function(){(this.W?!this.N:this.V)&&nl(this)};
|
|
Pe.prototype.bW=function(A,L,B){var f=this;if(SqQ(A)){var K=B||"";if(this.N)L=zt(this,K),R16(A,L);else{var V=new g.IQ;L.push(V.promise);this.D.promise.then(function(){var J=zt(f,K);R16(A,J);V.resolve()})}}};
|
|
Pe.prototype.HG=function(A){var L=this;if(this.W||this.V)A.Kx=zt(this,A.videoId),this.N||(this.U=new yV,this.D.promise.then(function(){L.Rv.Nq("pot_if");A.Kx=zt(L,A.videoId)}))};g.G(uu,g.q);g.p=uu.prototype;g.p.Mx=function(){var A=this.S.getVideoData(1),L,B,f=(B=((A==null?0:(L=A.suggestions)==null?0:L.length)?A.suggestions:(A==null?0:g.DQ(A))?[g.DQ(A)]:[])[0])==null?void 0:B.g1("mqdefault.jpg");this.W&&f&&g.Kv(this.W,"background-image",f?'url("'+f+'")':"")};
|
|
g.p.onClick=function(){this.S.logClick(this.element)};
|
|
g.p.Y6=function(A){this.xP([1,2].includes(A));g8E(this,A)};
|
|
g.p.xP=function(A){g.q.prototype.xP.call(this,A);this.element.setAttribute("aria-hidden",String(!A));A&&this.Mx()};
|
|
g.p.l1=function(){g.q.prototype.l1.call(this)};g.G(g.Aq,g.q);g.Aq.prototype.select=function(){this.api.Dl(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.qW||void 0)&&this.api.logClick(this.element)};
|
|
g.Aq.prototype.onClick=function(A){if(g.MM(this.api.K())&&this.api.J("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var L=this.suggestion.Ej(),B={};g.Mm(this.api,B);L=g.ip(L,B);g.wC(L,this.api,A)}else g.If(A,this.api,this.W,this.suggestion.sessionData||void 0)&&this.select()};
|
|
g.Aq.prototype.onKeyPress=function(A){switch(A.keyCode){case 13:case 32:A.defaultPrevented||(this.select(),A.preventDefault())}};
|
|
g.Aq.prototype.onVideoDataChange=function(){var A=this.api.getVideoData(),L=this.api.K();this.W=A.OE?!1:L.U};g.G(rke,g.q);g.p=rke.prototype;g.p.l1=function(){this.hide();g.$_(this.X);g.gH(this.stills);this.stills.length=0;this.V&&(this.V.remove(),this.V=void 0);this.N&&(this.N.remove(),this.N=void 0);this.W&&(this.W.remove(),this.W=void 0);g.q.prototype.l1.call(this)};
|
|
g.p.setCommentsButton=function(A){A!==this.N&&(this.N&&this.N.remove(),this.N=A)&&(g.R1(this.N,"ytp-fullscreen-grid-action-button"),this.G.appendChild(this.N))};
|
|
g.p.setDescriptionButton=function(A){A!==this.W&&(this.W&&this.W.remove(),this.W=A)&&(g.R1(this.W,"ytp-fullscreen-grid-action-button"),iA(this.G,this.W,0))};
|
|
g.p.US=function(A){this.Vj&&this.Vj(A)};
|
|
g.p.onVideoDataChange=function(){if(!this.qp){this.videoData=this.player.getVideoData(1);var A,L,B,f,K;var V=(((A=this.videoData)==null?0:(L=A.suggestions)==null?0:L.length)?(B=this.videoData)==null?void 0:B.suggestions:((f=this.videoData)==null?0:g.DQ(f))?[(K=this.videoData)==null?void 0:g.DQ(K)]:[]).slice(0,18);if((A=this.Wn)&&this.U)if(g.Ql(A),V.length)for(this.stills.length>V.length&&g.gH(this.stills.splice(V.length)),this.stills.length=V.length,L=0;L<V.length;L++){if(B=V[L])f=this.stills[L],
|
|
f||(f=new g.Aq(this.player),this.stills[L]=f),g.GtC(f,B),A&&A.appendChild(f.element)}else g.gH(this.stills),this.stills.length=0}};
|
|
g.p.Y6=function(A,L){L=L===void 0?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":L;if(this.currentState!==A){this.currentState=A;this.T&&this.D?this.D.Y6(A):this.update({icon:A===2?qQe():{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"g",C:{filter:"url(#filter0_d_3104_799356)"},B:[{Z:"path",C:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z",
|
|
fill:"white"}}]},{Z:"defs",B:[{Z:"filter",C:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},B:[{Z:"feFlood",C:{"flood-opacity":"0",result:"BackgroundImageFix"}},{Z:"feColorMatrix",C:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{Z:"feOffset"},{Z:"feGaussianBlur",C:{stdDeviation:"0.5"}},{Z:"feComposite",C:{in2:"hardAlpha",operator:"out"}},{Z:"feColorMatrix",C:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}},
|
|
{Z:"feBlend",C:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{Z:"feBlend",C:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}});this.U.scrollTop=0;this.xP(this.currentState!==0);if(A===2){var B=g.sF(),f=this.U.visualElement;B&&f&&K1(B,f,L)}if(A!==0)this.element.setAttribute("tabindex","0"),smL(this,A);else if(this.element.setAttribute("tabindex","-1"),smL(this,A),!this.T&&(A=this.m4("ytp-fullscreen-grid-expand-button"))&&
|
|
(A.removeAttribute("title"),A.removeAttribute("data-title-no-tooltip"),A.removeAttribute("aria-label")),A=this.m4("ytp-fullscreen-grid-hover-overlay"))A.removeAttribute("title"),A.removeAttribute("data-title-no-tooltip"),A.removeAttribute("aria-label");this.player.qq()}};g.G(h1L,VC);g.p=h1L.prototype;g.p.yFn=function(){this.U&&this.V!==0&&this.LU("INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")};
|
|
g.p.LU=function(A){var L=this;this.U&&(A==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(this.Wn&&clearTimeout(this.Wn),this.Wn=window.setTimeout(function(){L.Wn=null},1E3)),this.V===1?o_(this,2,A):o_(this,1,A))};
|
|
g.p.setFullscreenGrid=function(A){if(this.ZM&&this.W){var L=this.W;L.qp&&A!==L.V&&(L.V&&L.V.remove(),L.V=A,L.V&&L.U.appendChild(L.V))}};
|
|
g.p.setCommentsButton=function(A){this.W&&this.W.setCommentsButton(A)};
|
|
g.p.setDescriptionButton=function(A){this.W&&this.W.setDescriptionButton(A)};
|
|
g.p.setFullscreenQuickActions=function(A){this.qp&&this.qp.remove();A?(g.R1(A,"ytp-fullscreen-quick-actions"),this.J("web_player_overlay_positioned_layout")?(A.setAttribute("data-overlay-order","13"),this.api.Tt(A,4)):(g.R1(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.Wh(this.api,A,4))):g.NH(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.qp=A;Lj(this)};
|
|
g.p.setPlayerOverlayVideoDetailsRenderer=function(A){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(A){g.R1(A,"ytp-fullscreen-metadata");g.R1(this.api.getRootNode(),"ytp-hide-fullscreen-title");A.setAttribute("data-overlay-order","1");var L=this.api.J("delhi_modern_web_player_fullscreen_metadata_bottom"),B=L?3:1;L=L?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.R1(this.api.getRootNode(),L);this.J("web_player_overlay_positioned_layout")?
|
|
this.api.Tt(A,B):g.Wh(this.api,A,4)}else g.NH(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.NH(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.NH(this.api.getRootNode(),"ytp-fullscreen-metadata-top");this.playerOverlayVideoDetailsRenderer=A;Lj(this)};g.G(lWw,VC);g.G(V2,g.Y);V2.prototype.N=function(){for(var A=g.m(g.pf.apply(0,arguments)),L=A.next();!L.done;L=A.next())(L=L.value)&&this.features.push(L)};
|
|
V2.prototype.l1=function(){for(var A=this.features.length-1;A>=0;A--)this.features[A].dispose();this.features.length=0;g.Y.prototype.l1.call(this)};mQv.prototype.reset=function(){this.N=this.W=NaN};g.p=QmQ.prototype;g.p.reset=function(){kx(this.timerName)};
|
|
g.p.tick=function(A,L){mF(A,L,this.timerName)};
|
|
g.p.Nq=function(A){return $x(A,void 0,this.timerName)};
|
|
g.p.WZ=function(A){g.i1(A,void 0,this.timerName)};
|
|
g.p.infoGel=function(A){g.Qm(A,this.timerName)};g.G($QL,g.SN);g.p=$QL.prototype;g.p.hasNext=function(A){return this.loop||!!A||this.index+1<this.length};
|
|
g.p.hasPrevious=function(A){return this.loop||!!A||this.index-1>=0};
|
|
g.p.setShuffle=function(A){this.shuffle=A;A=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var L=0;L<this.items.length;L++)this.order.push(L);this.index=A;this.W++;if(this.shuffle){A=this.order[this.index];for(L=1;L<this.order.length;L++){var B=Math.floor(Math.random()*(L+1)),f=this.order[L];this.order[L]=this.order[B];this.order[B]=f}for(L=0;L<this.order.length;L++)this.order[L]===A&&(this.index=L);this.W++}this.publish("shuffle")};
|
|
g.p.g1=function(A){A=A||"hqdefault.jpg";var L=this.ea[A];if(L||this.tF.qp||A==="sddefault.jpg"||A==="hq720.jpg"||A==="maxresdefault.jpg")return L;if(this.V.length)return fo(this.tF,this.V[0],A)};
|
|
g.p.findIndex=function(A){if(A&&(A=A.videoId,!this.items[this.index]||this.items[this.index].video_id!==A))for(var L=0;L<this.items.length;L++)if(this.items[L].video_id===A){this.index=L;break}};
|
|
g.p.onReady=function(A){this.N=A;this.loaded&&g.gW(this.N,0)};
|
|
g.p.getPlaylistId=function(){return this.listId?this.listId.toString():null};
|
|
g.p.Ej=function(){return this.tF.getVideoUrl(g.R_(this).videoId,this.getPlaylistId())};
|
|
g.p.l1=function(){this.N=null;g.gH(this.items);g.SN.prototype.l1.call(this)};var ZK=new Map;g.G(g.FB,g.SN);g.p=g.FB.prototype;g.p.create=function(){};
|
|
g.p.load=function(){this.loaded=!0};
|
|
g.p.unload=function(){this.loaded=!1};
|
|
g.p.PR=function(){};
|
|
g.p.Pg=function(){return!0};
|
|
g.p.l1=function(){this.loaded&&this.unload();g.SN.prototype.l1.call(this)};
|
|
g.p.Ov=function(){return{}};
|
|
g.p.getOptions=function(){return[]};g.G(g.du,g.Y);g.p=g.du.prototype;g.p.Uk=OD(65);g.p.wK=function(){};
|
|
g.p.z1=function(){};
|
|
g.p.FC=function(){return""};
|
|
g.p.l9=OD(66);g.p.bW=function(A,L){var B=this;if(this.rT.K().J("html5_dispatch_tracklist_loaded_event")){this.V&&(this.V.reject(),this.V=null);var f=[];this.rT.publish("trackListLoaded",this.N,f,L);f.length?(L=new g.IQ,L.promise.then(A.bW,function(){}),this.V=L,Promise.all(f).then(L.resolve,L.reject).finally(function(){B.V=null})):A.bW()}else A.bW()};
|
|
g.p.l1=function(){this.V&&(this.V.reject(),this.V=null);this.z1();g.Y.prototype.l1.call(this)};g.G(g.I_,g.du);g.I_.prototype.Uk=OD(64);g.I_.prototype.wK=function(A){if(this.audioTrack)for(var L=g.m(this.audioTrack.captionTracks),B=L.next();!B.done;B=L.next())g.DK(this.N,B.value);this.bW(A,this.videoData.videoId)};
|
|
g.I_.prototype.FC=function(A,L){var B=A.MQ(),f={fmt:L};if(L==="srv3"||L==="3"||L==="json3")g.ng()?Object.assign(f,{xorb:2,xobt:1,xovt:1}):Object.assign(f,{xorb:2,xobt:3,xovt:3});A.translationLanguage&&(f.tlang=g.Td(A));this.U&&(f.xosf="1");Object.assign(f,this.rT.K().N);return Zp(B,f)};
|
|
g.I_.prototype.z1=function(){this.W&&this.W.abort()};g.STI=new Map;g.G(g.pj,g.du);g.pj.prototype.Uk=OD(63);
|
|
g.pj.prototype.wK=function(A){var L=this,B=this.U,f={type:"list",tlangs:1,v:this.videoId,vssids:1};this.Wt&&(f.asrs=1);B=Zp(B,f);this.z1();this.W=g.ll(B,{format:"RAW",onSuccess:function(K){L.W=null;if((K=K.responseXML)&&K.firstChild){for(var V=K.getElementsByTagName("track"),J=0;J<V.length;J++){var R=V[J],Z=R.getAttribute("lang_code"),N=R.getAttribute("lang_translated"),F=R.getAttribute("name"),D=R.getAttribute("kind"),I=R.getAttribute("id"),d=R.getAttribute("lang_default")==="true",w=R.getAttribute("cantran")===
|
|
"true";R=R.getAttribute("vss_id");g.DK(L.N,new g.bS({languageCode:Z,languageName:N,name:F,kind:D,id:I,is_servable:!0,is_translateable:w,vss_id:R,is_default:d}))}K=K.getElementsByTagName("target");V=K.length;for(J=0;J<V;J++)Z={languageCode:K[J].getAttribute("lang_code"),languageName:K[J].getAttribute("lang_translated"),languageOriginal:K[J].getAttribute("lang_original"),id:K[J].getAttribute("id"),isDefault:K[J].getAttribute("lang_default")==="true"},L.T[Z.languageCode]=Z.languageName,L.D.push(Z)}L.bW(A,
|
|
L.videoId)},
|
|
withCredentials:!0})};
|
|
g.pj.prototype.FC=function(A,L){var B=this.U;L={v:this.videoId,type:"track",lang:A.languageCode,name:A.getName(),kind:A.kind,fmt:L};var f=this.rT.K();f.J("captions_url_add_ei")&&(L.ei=this.eventId);A.translationLanguage&&(L.tlang=g.Td(A));Object.assign(L,f.N);return B=Zp(B,L)};
|
|
g.pj.prototype.z1=function(){this.W&&this.W.abort()};g.G(n87,g.Y);g.p=n87.prototype;g.p.createSubtitlesModuleIfNeeded=function(){L5v(this)&&gu(this,"captions");return!!g.y2(this)};
|
|
g.p.LK=function(){return this.S.getVideoData().LK()};
|
|
g.p.Fl=function(){return this.S.getVideoData().Fl()};
|
|
g.p.Wv=function(){var A=this.U_.get("heartbeat");gu(this,"heartbeat",!1,!0,this.Wv);!A&&this.U_.has("heartbeat")&&this.S.publish("offlineslatestatechange")};
|
|
g.p.AL=function(){gu(this,"annotations_module",!0,void 0,this.AL);var A=this.U_.get("annotations_module");if(A)for(var L in this.W)if(this.W.hasOwnProperty(L)){var B=L;A.subscribe(B,this.W[B])}};
|
|
g.p.Ee=function(){if(!this.U_.get("ad"))try{u7w(this)?gu(this,"ad",!1,!0,this.Ee):GB(this,"ad")}catch(A){GB(this,"ad"),g.mL(A)}};
|
|
g.p.zH=function(){return this.N};
|
|
g.p.OZ=function(){var A={},L=g.y2(this);L&&Object.assign(A,L.OZ());return A};
|
|
g.p.MY=function(A,L){Object.assign(this.N,A||null);Object.assign(this.hL,L||null)};
|
|
g.p.onVideoDataChange=function(){var A=this.S.getVideoData();this.S.J("enable_wn_infocards")&&g.xT(A)&&!g.tq(this)&&this.AL()};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);ru(this,1,!0);for(var A=g.m(Object.entries(pBL)),L=A.next();!L.done;L=A.next()){var B=g.m(L.value);L=B.next().value;B=B.next().value;this.U.has(B)&&ZK.delete(L)}this.U.clear()};
|
|
var rr={},pBL=(rr.ad="ad.js",rr.annotations_module="annotations_module.js",rr.asmjs="asmjs.js",rr.creatorendscreen="annotations_module.js",rr.embed="embed.js",rr.endscreen="endscreen.js",rr.heartbeat="heartbeat.js",rr.kids="kids.js",rr.remote="remote.js",rr.miniplayer="miniplayer.js",rr.offline="offline.js",rr.captions="captions.js",rr.unplugged="unplugged.js",rr.ux="ux.js",rr.webgl="webgl.js",rr.ypc="ypc.js",rr),sH={},Zjk=(sH.ad=["ad"],sH.annotations_module=[],sH.asmjs=[],sH.creatorendscreen=[],
|
|
sH.embed=[],sH.endscreen=[],sH.heartbeat=["heartbeat"],sH.kids=[],sH.remote=["mdx"],sH.miniplayer=[],sH.offline=[],sH.captions=[],sH.unplugged=[],sH.ux=[],sH.webgl=["webgl"],sH.ypc=[],sH),Nu0="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc unplugged ux".split(" ");g.G(j_E,g.SN);g.p=j_E.prototype;g.p.aW=function(A){A=new g.Vl(A.pageX,A.pageY);if(!J8(A,this.U)){var L=2;this.T&&(L|=8);this.U=A;TB(this,L,!0)}};
|
|
g.p.vuF=function(){TB(this,2048,!0)};
|
|
g.p.fgn=function(A){this.T&&TB(this,8,!0);if(this.api.J("allow_autohide_on_paused_videos")){A=A.relatedTarget;var L=this.target instanceof HTMLElement?this.target:this.target.element;if(A instanceof Element&&(L=L.getBoundingClientRect(),A=A.getBoundingClientRect(),A.top>=L.top&&A.right<=L.right&&A.bottom<=L.bottom&&A.left>=L.left))return}TB(this,2,!1)};
|
|
g.p.ob=function(A){var L=new g.Vl(A.pageX,A.pageY);J8(L,this.U)||(this.U=L,(A=A.target)&&this.Dn(A)&&(TB(this,4,!0),this.N.J$(this.V),this.V=this.N.Y(this.target,"mouseover",this.gA),this.X=this.N.Y(this.target,"mouseout",this.gA)))};
|
|
g.p.gA=function(A){A=A.relatedTarget;A&&this.Dn(A)||(this.U=new g.Vl(NaN,NaN),gSD(this))};
|
|
g.p.Or1=function(){TB(this,1,!0)};
|
|
g.p.LG=function(A){A=A.target;A instanceof Element&&!(A.tabIndex>0)||TB(this,1,!0)};
|
|
g.p.eW=function(){this.T=!0;this.N.J$(this.D);this.D=this.N.Y(document,"mouseup",this.K0)};
|
|
g.p.K0=function(){this.T=!1;TB(this,8,!1);this.N.J$(this.D);this.D=this.N.Y(this.target,"mousedown",this.eW)};
|
|
g.p.Qv=function(A){if(A=(A=A.changedTouches)&&A[0])this.ZM=A.identifier,this.N.J$(this.G),this.G=this.N.Y(this.target,"touchend",this.Gh,void 0,!0),TB(this,1024,!0)};
|
|
g.p.Gh=function(A){if(A=A.changedTouches)for(var L=0;L<A.length;L++){var B=A[L];if(B.identifier===this.ZM){var f=B;break}}f&&(this.N.J$(this.G),this.G=this.N.Y(this.target,"touchstart",this.Qv,void 0,!0),TB(this,1024,!1))};
|
|
g.p.V9=function(){TB(this,2,!0)};
|
|
g.p.resize=function(){g.Z2&&gSD(this)};
|
|
g.p.toString=function(){return g.SN.prototype.toString.call(this)};g.G(g.Q2,g.q);g.p=g.Q2.prototype;g.p.TB1=function(){this.zL()};
|
|
g.p.zL=function(){var A=this.api.getVideoData(),L=this.api.K(),B=!!this.api.isEmbedsShortsMode();g.D1(this.element,"ytp-shorts-mode",B);B?L=[{Z:"svg",C:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},B:[{Z:"path",C:{"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"}},{Z:"path",C:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:A.OE?L=[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},B:[{Z:"path",j:"ytp-dni-large-play-button-bg",C:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{Z:"path",C:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:A.OE&&A.kE?L=[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},B:[{Z:"path",j:"ytp-dni-large-play-button-bg",
|
|
C:{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"}},{Z:"path",C:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:L.T?(g.D1(this.element,"ytp-touch-device",L.W),L=[L.T?{Z:"svg",C:{height:"100%",version:"1.1",
|
|
viewBox:"0 0 60 60",width:"100%"},B:[{Z:"path",j:"ytp-large-play-button-bg",C:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{Z:"path",C:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},B:[{Z:"path",j:"ytp-large-play-button-bg",C:{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"}},{Z:"path",C:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):L=[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},B:[{Z:"path",j:"ytp-large-play-button-bg",C:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
|
|
fill:"#f03"}},{Z:"path",C:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",L);A.OE&&A.kE&&this.m4("ytp-dni-large-play-button-bg").setAttribute("fill",A.kE?A.kE:"#1f1f1f")};
|
|
g.p.show=function(){g.q.prototype.show.call(this);this.api.K().J("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
|
|
g.p.BJ=function(){this.api.getVideoData().mutedAutoplay||(this.api.S9(),this.api.playVideo())};
|
|
g.p.iw4=function(A){this.api.getVideoData().mutedAutoplay||A.preventDefault()};g.G(g.Cj,g.q);g.p=g.Cj.prototype;g.p.show=function(){var A=this;this.bC||(this.W.Y(this.api,"videodatachange",function(){g.Az(A.N)}),this.W.Y(this.api,"videoplayerreset",function(){g.Az(A.N)}));
|
|
g.q.prototype.show.call(this)};
|
|
g.p.hide=function(){this.W&&g.$_(this.W);g.q.prototype.hide.call(this)};
|
|
g.p.Bz=function(){g.Az(this.N)};
|
|
g.p.onStateChange=function(){g.Az(this.N)};
|
|
g.p.y_T=function(){g.Az(this.N)};
|
|
g.p.onReset=function(){this.fade.stop();this.hide();g.Az(this.N)};
|
|
g.p.zL=function(){var A=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(A.isPlaying()||A.isPaused()))var L=!0;else(L=this.api.SI().U_.get("ypc"))&&L.n7?L=!0:(L=this.api.K(),L=g.x(A,2)&&g.Xr(this.api)&&L.b2?!0:!1);L?(L=!0,this.V.hide()):(this.V.show(),L=A.isCued()&&this.api.getPresentingPlayerType()!==2||g.x(A,2)&&!g.Xr(this.api)&&!this.api.Ow()||g.x(A,1024)?!0:!1);var B=this.api.getVideoData();L&&!B.Cx?(this.fade.show(),this.r21(this.api.getPlaylist(),B)):(this.fade.hide(),
|
|
g.x(A,1)||this.fade.stop())};
|
|
g.p.r21=function(){for(var A=this.api.K(),L,B=g.m(g.pf.apply(0,arguments)),f=B.next();!f.done;f=B.next())if(f=f.value,!(!f||f instanceof g.Kr&&!f.videoId)){L=this.api.Pn().getPlayerSize();var K=g.J$(),V=L.width*K;K*=L.height;if(V>1280||K>720)if(L=f.g1("maxresdefault.jpg"))break;if(V>640||K>480)if(L=f.g1("maxresdefault.jpg"))break;if(V>320||K>180)if(L=f.g1("sddefault.jpg")||f.g1("hqdefault.jpg")||f.g1("mqdefault.jpg"))break;if(L=f.g1("default.jpg"))break}g.Ng(A)&&(A=new Image,A.addEventListener("load",
|
|
function(){Wz8()}),A.src=L?L:"",this.api.zH().tick("ftr"));
|
|
this.U.style.backgroundImage=L?"url("+L+")":""};g.G(g.ig,g.q);g.ig.prototype.resize=function(){};
|
|
g.ig.prototype.W=function(A){var L=this;this.V=!1;s_7(this);var B=A.N_,f=this.api.K();B!=="GENERIC_WITHOUT_LINK"||f.T?B==="TOO_MANY_REQUESTS"?(f=this.api.getVideoData(),this.setContent(Ov(this,"TOO_MANY_REQUESTS_WITH_LINK",f.Ej(),void 0,void 0,void 0,!1))):B!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||f.T?this.api.K().J("html5_enable_bandaid_error_screen")&&B==="HTML5_SPS_UMP_STATUS_REJECTED"&&!f.T?(f=f.hostLanguage,A="//support.google.com/youtube?p=videoError",f&&(A=g.ip(A,{hl:f})),this.setContent(Ov(this,
|
|
"HTML5_SPS_UMP_STATUS_REJECTED",A))):this.api.K().J("enable_adb_handling_in_sabr")&&B==="BROWSER_OR_EXTENSION_ERROR"&&!f.T?(f=f.hostLanguage,A="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",f&&(A=g.ip(A,{hl:f})),this.setContent(Ov(this,"BROWSER_OR_EXTENSION_ERROR",A))):this.setContent(g.$S(A.errorMessage)):this.setContent(Ov(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(A=f.hostLanguage,B=
|
|
"//support.google.com/youtube/?p=player_error1",A&&(B=g.ip(B,{hl:A})),this.setContent(Ov(this,"GENERIC_WITH_LINK_AND_CPN",B,!0)),f.zV&&!f.U&&rq6(this,function(V){if(g.If(V,L.api,!Ko(L.api.K()))){V={as3:!1,html5:!0,player:!0,cpn:L.api.getVideoData().clientPlaybackNonce};var J=L.api;J.Wo("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:V});J.isFullscreen()&&J.toggleFullscreen()}}));
|
|
if(this.V){var K=this.m4("ytp-error-link");K&&(this.api.createClientVe(K,this,216104),this.api.logVisibility(K,!0),rq6(this,function(){L.api.logClick(K)}))}};
|
|
var GB8=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.G(Hj1,g.q);Hj1.prototype.Tt=function(A,L,B){B=B===void 0?!1:B;switch(L){case 1:Ev(this,A,this.V,B);break;case 2:Ev(this,A,this.U,B);break;case 3:Ev(this,A,this.N,B);break;case 4:Ev(this,A,this.W,B)}};g.G(hdS,g.q);g.p=hdS.prototype;g.p.onClick=function(A){this.innertubeCommand?(this.S.Kr("innertubeCommand",this.innertubeCommand),A.preventDefault()):g.If(A,this.S,!0);this.S.logClick(this.element)};
|
|
g.p.onVideoDataChange=function(A,L){tfC(this,L);this.xb&&kBk(this,this.xb)};
|
|
g.p.oW=function(A){var L=this.S.getVideoData();this.videoId!==L.videoId&&tfC(this,L);this.N&&kBk(this,A.state);this.xb=A.state};
|
|
g.p.fD=function(){this.fade.show();this.S.publish("paidcontentoverlayvisibilitychange",!0);this.S.logVisibility(this.element,!0)};
|
|
g.p.YP=function(){this.fade.hide();this.S.publish("paidcontentoverlayvisibilitychange",!1);this.S.logVisibility(this.element,!1)};g.G(cB,g.q);cB.prototype.hide=function(){this.N.stop();this.message.style.display="none";g.q.prototype.hide.call(this)};
|
|
cB.prototype.onStateChange=function(A){this.Y6(A.state)};
|
|
cB.prototype.Y6=function(A){if(g.x(A,128)||this.api.lz())var L=!1;else{var B;L=this.api.J("web_watch_enable_multiview_manager")&&((B=this.api.getVideoData())==null?0:oh(B))?!1:g.x(A,16)||g.x(A,1)?!0:!1}L?this.N.start():this.hide()};
|
|
cB.prototype.W=function(){this.message.style.display="block"};g.G(Mp,g.zg);Mp.prototype.onMutedAutoplayChange=function(A){this.W&&(A?(TuS(this),this.fD()):(this.N&&this.logClick(),this.YP()))};
|
|
Mp.prototype.qP=function(A){this.api.isMutedByMutedAutoplay()&&g.wk(A,2)&&this.YP()};
|
|
Mp.prototype.onClick=function(){this.api.unMute();this.logClick()};
|
|
Mp.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.G(g.YS,g.dN);g.p=g.YS.prototype;g.p.init=function(){var A=this.api,L=A.getPlayerStateObject();this.IZ=A.getPlayerSize();this.q8(L);this.Fp();this.Bz();this.api.publish("basechromeinitialized",this);this.d8()&&this.api.publish("standardControlsInitialized")};
|
|
g.p.onVideoDataChange=function(A,L){var B=this.PT!==L.videoId;if(B||A==="newdata")A=this.api,A.isFullscreen()||(this.IZ=A.getPlayerSize());B&&(this.PT=L.videoId,B=this.C8,B.wT=3E3,TB(B,512,!0),this.Fp());this.api.J("web_render_jump_buttons")&&L.showSeekingControls&&(this.xt=572)};
|
|
g.p.kqF=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
|
|
g.p.YW=function(){var A=this.api.yq()&&this.api.Bu(),L=this.api.wG();return this.nW||A||this.Xj||L};
|
|
g.p.LC=function(){var A=!this.YW();g.D1(this.api.getRootNode(),"ytp-menu-shown",!A)};
|
|
g.p.Dn=function(A){try{if(!g.XF(this.api.getRootNode(),A))return!1}catch(L){return!1}for(;A&&!EA(A);)A=A===this.api.getRootNode()?null:A.parentElement||null;return!!A};
|
|
g.p.Al=function(A){var L=this.api.getRootNode();g.D1(L,"ytp-autohide",A);g.D1(L,"ytp-autohide-active",!0);this.Dv.start(A?250:100);A&&(this.Hx=!1,g.NH(L,"ytp-touch-mode"));this.zC=!A;this.api.Yc(!A);this.api.J("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",A)};
|
|
g.p.Pe=function(){var A=this.api.getRootNode();g.D1(A,"ytp-autohide-active",!1)};
|
|
g.p.Z8M=function(){this.vP=!0};
|
|
g.p.wkr=function(A){if(this.api.K().J("player_doubletap_to_seek")||this.api.K().X)this.vP=!1,this.aP&&this.J$(this.aP),this.Y0===0&&Uv(this,A)?(this.Yp(),this.Ot.start(),this.aP=this.Y(this.api.Pn(),"touchmove",this.Z8M,void 0,!0)):this.Ot.stop();Cgw(this)&&Uv(this,A)&&!this.api.K().X&&mpe(this);var L=this.cP.U7();if(!g.MM(this.api.K())&&X5&&ij0(this,A))L&&A.preventDefault();else if(this.Hx=!0,g.R1(this.api.getRootNode(),"ytp-touch-mode"),this.C8.V9(),this.api.K().J("player_doubletap_to_seek")||this.api.K().X)if(L=
|
|
this.api.getPlayerStateObject(),!(!this.api.Kw()||g.x(L,2)&&g.Xr(this.api)||g.x(L,64))){L=Date.now()-this.EW;this.Y0+=1;if(L<=350){this.n$=!0;L=this.api.getPlayerSize().width/3;var B=this.api.getRootNode().getBoundingClientRect(),f=A.targetTouches[0].clientX-B.left;B=A.targetTouches[0].clientY-B.top;var K=(this.Y0-1)*10;f>0&&f<L?(this.IN(-1,f,B,K),this.api.seekBy(-10*this.api.getPlaybackRate())):f>L*2&&f<L*3&&(this.IN(1,f,B,K),this.api.seekBy(10*this.api.getPlaybackRate()));A.preventDefault()}else m5&&
|
|
this.api.K().X&&Uv(this,A)&&A.preventDefault();this.EW=Date.now();this.m7.start()}};
|
|
g.p.UUL=function(){this.vp.o3=!1;this.api.publish("rootnodemousedown",this.vp)};
|
|
g.p.mUx=function(A){if(this.api.K().J("web_fix_fine_scrubbing_false_play")){if(ij0(this,A)||this.vp.o3)return}else if(this.vp.o3||ij0(this,A))return;Cgw(this)||!Uv(this,A)||this.Ot.isActive()||(mpe(this),A.preventDefault());this.n$&&(this.n$=!1)};
|
|
g.p.Yp=function(){};
|
|
g.p.N0=function(){};
|
|
g.p.IN=function(){};
|
|
g.p.renderChapterSeekingAnimation=function(){};
|
|
g.p.Iu=function(){var A=this.api.getPlayerStateObject();g.x(A,2)&&g.Xr(this.api)||(A.isOrWillBePlaying()?this.api.pauseVideo():(this.uF&&(A.isCued()||g.x(A,1024))&&this.api.publish("largeplaybuttonclicked",this.uF.V.element),this.api.S9(),this.api.playVideo(),this.uF&&document.activeElement===this.uF.V.element&&((A=this.d8())==null?A=0:A.playButton?(A.playButton.focus(),A=!0):A=!1,A||this.api.getRootNode().focus())))};
|
|
g.p.b8L=function(A){var L=this,B=this.api.getPresentingPlayerType();if(!Q_S(this,lt(A)))if(A=this.api.K(),(this.api.K().J("player_doubletap_to_seek")||this.api.K().X)&&this.n$)this.n$=!1;else if(A.Nl&&B!==3)try{this.api.toggleFullscreen().catch(function(f){L.J7(f)}),this.api.J("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.Pn().element)}catch(f){this.J7(f)}};
|
|
g.p.J7=function(A){String(A).includes("fullscreen error")?g.CE(A):g.mL(A)};
|
|
g.p.tE1=function(A){$pL(this,.3,A.scale);A.preventDefault()};
|
|
g.p.FTr=function(A){$pL(this,.1,A.scale)};
|
|
g.p.Bz=function(){var A=this.api.Pn().getPlayerSize(),L=this.api.getRootNode(),B=A.width>=650,f=A.width<528;this.C8.resize();if(this.api.J("web_player_use_screen_width_for_big_mode")){var K,V=A.width>=((K=g.Am(this.api.K().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?K:2E3);g.D1(L,"ytp-big-mode",V)}g.D1(L,"ytp-fullscreen",this.api.isFullscreen());g.D1(L,"ytp-large-width-mode",B);this.api.J("delhi_modern_web_player")?g.D1(L,"ytp-xsmall-width-mode",f):g.D1(L,"ytp-small-mode",this.Gy());
|
|
g.D1(L,"ytp-tiny-mode",this.Zz());g.D1(L,"ytp-big-mode",this.Zr());this.Xb&&this.Xb.resize(A)};
|
|
g.p.qP=function(A){this.q8(A.state);this.Fp()};
|
|
g.p.RN=OD(5);g.p.hB=function(){var A=!!this.PT&&!this.api.bQ()&&!this.G7,L=this.api.getPresentingPlayerType()===2,B=this.api.K();if(L)return B=HB(this.api.SI()),A&&(B&&B.player?A=(A=B.player.getVideoData(2))?A.isListed&&!g.dY(B.player.K()):!1:(Dh("showInfoBarDuringAd: this is null"),A=!1)),A;L=B.J("web_player_imax_theater_mode")&&this.api.EN()&&!this.api.isInline();return A&&(B.jr||L||this.api.isFullscreen()||B.kR)};
|
|
g.p.Fp=function(){var A=this.hB();this.Wu!==A&&(this.Wu=A,g.D1(this.api.getRootNode(),"ytp-hide-info-bar",!A))};
|
|
g.p.q8=function(A){var L=A.isCued()||this.api.BF()&&this.api.getPresentingPlayerType()!==3;L!==this.isCued&&(this.isCued=L,this.KM&&this.J$(this.KM),this.KM=this.Y(this.api.Pn(),"touchstart",this.wkr,void 0,L));var B=this.C8,f=A.isPlaying()&&!g.x(A,32)||this.api.QD();TB(B,128,!f);B=this.C8;f=this.api.getPresentingPlayerType()===3;TB(B,256,f);B=this.api.getRootNode();g.x(A,2)?f=[W0.ENDED]:(f=[],g.x(A,8)?f.push(W0.PLAYING):g.x(A,4)&&f.push(W0.PAUSED),g.x(A,1)&&!g.x(A,32)&&f.push(W0.BUFFERING),g.x(A,
|
|
32)&&f.push(W0.SEEKING),g.x(A,64)&&f.push(W0.UNSTARTED));g.wo(this.Ea,f)||(g.Fq(B,this.Ea),this.Ea=f,g.Z1(B,f));f=this.api.K();var K=g.x(A,2);a:{var V=this.api.K();var J=V.controlsType;switch(J){case "2":case "0":V=!1;break a}V=J==="3"&&!g.x(A,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:IM7(HB(this.api.SI())))||this.api.wG()||g.MM(V)&&this.api.getPresentingPlayerType()===2?!1:!0}g.D1(B,"ytp-hide-controls",!V);g.D1(B,"ytp-native-controls",f.controlsType==="3"&&!L&&!K&&!this.Xj);g.x(A,
|
|
128)&&!g.MM(f)?(this.Xb||(this.Xb=new g.ig(this.api),g.W(this,this.Xb),g.Wh(this.api,this.Xb.element,4)),this.Xb.W(A.nh),this.Xb.show()):this.Xb&&(this.Xb.dispose(),this.Xb=null)};
|
|
g.p.p5=function(){return this.api.yq()&&this.api.Bu()?(this.api.DD(!1,!1),!0):this.api.bQ()?(g.OU(this.api,!0),!0):!1};
|
|
g.p.onMutedAutoplayChange=function(A){this.Xj=A;this.LC()};
|
|
g.p.Zr=function(){return!1};
|
|
g.p.Gy=function(){return!this.Zr()&&(this.api.getPlayerSize().width<this.xt||this.api.getPlayerSize().height<290)};
|
|
g.p.Zz=function(){return this.Gy()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
|
|
g.p.ZF=function(){return this.Hx};
|
|
g.p.gB=function(){return null};
|
|
g.p.oH=function(){return null};
|
|
g.p.O7=function(){var A=this.api.Pn().getPlayerSize();return new g.oR(0,0,A.width,A.height)};
|
|
g.p.handleGlobalKeyDown=function(){return!1};
|
|
g.p.handleGlobalKeyUp=function(){return!1};
|
|
g.p.TT=function(){};
|
|
g.p.showControls=function(A){A!==void 0&&this.api.Pn().Yc(A)};
|
|
g.p.V9=function(){};
|
|
g.p.d8=function(){return null};g.G(g.WB,g.q);g.WB.prototype.show=function(){g.q.prototype.show.call(this);g.Az(this.N)};
|
|
g.WB.prototype.hide=function(){this.W.stop();g.q.prototype.hide.call(this)};
|
|
g.WB.prototype.N0=function(A){var L=this.S.J("delhi_modern_web_player_icons");A?g.x(this.S.getPlayerStateObject(),64)||(L=L?la():TZ(),vB(this,L,"Riproduci")):(A=this.S.getVideoData(),A.isLivePlayback&&!A.allowLiveDvr?(L=L?dE7():DEL(),vB(this,L,"Interrompi la riproduzione")):(L=L?JKe():VwQ(),vB(this,L,"Pausa")))};g.G(ESe,g.q);g.p=ESe.prototype;g.p.oh=function(A){A?this.N=Cm(this.S,this.element,null):(this.N=this.N,this.N(),this.N=null)};
|
|
g.p.fD=function(){this.S.K().J("player_new_info_card_format")&&g.SR(this.S.getRootNode(),"ytp-cards-teaser-shown")&&!g.MM(this.S.K())||(this.fade.show(),g.V0("iv-button-shown"))};
|
|
g.p.YP=function(){g.V0("iv-button-hidden");this.fade.hide()};
|
|
g.p.U7=function(){return this.bC&&this.fade.state!==4};
|
|
g.p.l1=function(){this.N&&this.N();g.q.prototype.l1.call(this)};
|
|
g.p.onHover=function(){g.V0("iv-button-mouseover")};
|
|
g.p.onClicked=function(A){this.S.yq();var L=g.SR(this.S.getRootNode(),"ytp-cards-teaser-shown");g.V0("iv-teaser-clicked",L);var B;if((B=this.S.getVideoData())==null?0:g.PK(B)){var f;A=(f=this.S.getVideoData())==null?void 0:g.xT(f);(A==null?0:A.onIconTapCommand)&&this.S.Kr("innertubeCommand",A.onIconTapCommand)}else f=A.screenX===0&&A.screenY===0,this.S.DD(!this.S.Bu(),f,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.G(cqL,g.q);g.p=cqL.prototype;g.p.eA=function(){this.S.yq()&&this.S.Bu()&&this.U7()&&this.YP()};
|
|
g.p.AC=function(){this.YP();!this.S.yq()&&this.S.K().J("enable_error_corrections_infocards_icon_web")&&this.u2.YP();g.V0("iv-teaser-clicked",this.N!=null);if(this.onClickCommand)this.S.Kr("innertubeCommand",this.onClickCommand);else{var A;((A=this.S.getVideoData())==null?0:g.PK(A))||this.S.DD(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
|
|
g.p.c_=function(){g.V0("iv-teaser-mouseover");this.N&&this.N.stop()};
|
|
g.p.xUj=function(A){this.S.K().J("player_new_info_card_format")&&!g.MM(this.S.K())?this.u2.YP():this.S.K().J("enable_error_corrections_infocards_icon_web")&&this.u2.fD();this.N||!A||this.S.Bu()||this.V&&this.V.isActive()||(this.fD(A),g.V0("iv-teaser-shown"))};
|
|
g.p.fD=function(A){this.onClickCommand=A.onClickCommand;this.updateValue("text",A.teaserText);this.element.setAttribute("dir",g.jR(A.teaserText));this.fade.show();if(this.S.K().J("player_new_info_card_format")){var L=this.m4("ytp-cards-teaser-info-icon"),B=this.m4("ytp-cards-teaser-channel-avatar");B&&A.ZR&&g.MR(A.ZR)&&(B.src=A.ZR,B.style.display="block",L.style.display="none")}this.V=new g.aa(function(){g.R1(this.S.getRootNode(),"ytp-cards-teaser-shown");this.S.J("player_new_info_card_format")&&
|
|
!g.MM(this.S.K())&&this.u2.YP();this.Rl()},0,this);
|
|
this.V.start();this.u2.oh(!1);this.N=new g.aa(this.YP,580+A.durationMs,this);this.N.start();this.U.push(this.listen("mouseover",this.KB,this));this.U.push(this.listen("mouseout",this.ai,this))};
|
|
g.p.Rl=function(){if(!this.S.K().J("player_new_info_card_format")&&g.MM(this.S.K())&&this.bC){var A=this.u2.element.offsetLeft,L=g.sA("ytp-cards-button-icon"),B=this.S.isFullscreen()?54:36;if(L){var f=A+L.offsetLeft;this.element.style.marginRight=this.u2.element.offsetParent.offsetWidth-A-L.offsetLeft-B+"px";this.element.style.marginLeft=f+"px"}}};
|
|
g.p.f4=function(){g.MM(this.S.K())&&this.S.Gy()&&this.bC&&this.X.start()};
|
|
g.p.KB=function(){this.D.stop();this.N&&this.N.isActive()&&this.T.start()};
|
|
g.p.ai=function(){this.T.stop();this.N&&!this.N.isActive()&&this.D.start()};
|
|
g.p.PqD=function(){this.N&&this.N.stop()};
|
|
g.p.Bfs=function(){this.YP()};
|
|
g.p.Oy=function(){this.YP()};
|
|
g.p.YP=function(){!this.N||this.W&&this.W.isActive()||(g.V0("iv-teaser-hidden"),this.fade.hide(),g.NH(this.S.getRootNode(),"ytp-cards-teaser-shown"),this.W=new g.aa(function(){for(var A=g.m(this.U),L=A.next();!L.done;L=A.next())this.J$(L.value);this.U=[];this.N&&(this.N.dispose(),this.N=null);this.u2.oh(!0);!this.S.yq()&&this.S.K().J("enable_error_corrections_infocards_icon_web")&&this.u2.YP()},330,this),this.W.start())};
|
|
g.p.U7=function(){return this.bC&&this.fade.state!==4};
|
|
g.p.l1=function(){var A=this.S.getRootNode();A&&g.NH(A,"ytp-cards-teaser-shown");g.gH(this.V,this.W,this.N);g.q.prototype.l1.call(this)};var HE={},PB=(HE.BUTTON="ytp-button",HE.TITLE_NOTIFICATIONS="ytp-title-notifications",HE.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",HE.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",HE.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",HE);g.G(MfC,g.q);
|
|
MfC.prototype.onClick=function(){this.api.logClick(this.element);var A=!this.N;this.updateValue("label",A?"Interrompi la ricezione delle notifiche sui nuovi video":"Ricevi le notifiche sui nuovi video");this.updateValue("pressed",A);Yvw(this,A)};g.hf("yt.pubsub.publish",g.V0);g.G(g.xS,g.q);g.xS.prototype.U=function(){window.location.reload()};
|
|
g.xS.prototype.N=function(){g.R1(this.element,"ytp-sb-subscribed")};
|
|
g.xS.prototype.W=function(){g.NH(this.element,"ytp-sb-subscribed")};g.G(PgL,g.q);g.p=PgL.prototype;g.p.bDr=function(A){this.api.logClick(this.W);var L=this.api.K();L.W||L.Ex?zdE(this)&&(this.isExpanded()?this.SG():this.Wr()):g.QR(window,qv0(this));A.preventDefault()};
|
|
g.p.zN=function(){nSy(this);this.channel.classList.remove("ytp-title-expanded")};
|
|
g.p.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
|
|
g.p.Wr=function(){if(zdE(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.V&&this.V.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var A=this.api.getVideoData();this.N&&A.mC&&A.subscribed&&(this.N.show(),
|
|
this.api.logVisibility(this.N.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
|
|
g.p.SG=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.V&&this.V.start()};
|
|
g.p.zL=function(){var A=this.api.K();this.xP(!this.api.isEmbedsShortsMode());var L=this.api.getVideoData(),B=this.api.K(),f=this.api.getVideoData();this.U=!1;var K=!!f.videoId&&!!f.Ys&&!!f.profilePicture;this.api.getPresentingPlayerType()===2?this.U=K&&!!f.isListed&&!!f.author:g.MM(B)&&(this.U=K&&!f.OE&&!B.V&&!(B.X&&this.api.getPlayerSize().width<200));B=L.profilePicture;A=g.MM(A)?L.expandedTitle:L.author;B=B===void 0?"":B;A=A===void 0?"":A;this.U?(this.T!==B&&(this.W.style.backgroundImage="url("+
|
|
B+")",this.T=B),this.updateValue("channelLink",qv0(this)),this.updateValue("channelLogoLabel",g.B$("Immagine di $CHANNEL_NAME",{CHANNEL_NAME:A})),g.R1(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.NH(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.W,this.U&&this.yj);this.subscribeButton&&(this.subscribeButton.channelId=L.JO);this.updateValue("expandedTitle",L.expandedTitle);this.updateValue("expandedSubtitle",L.expandedSubtitle)};
|
|
g.p.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.W,this.U&&A)};g.G(ef,g.of);ef.prototype.A2=function(A){A.defaultPrevented||A.keyCode!==39||(this.element.click(),A.preventDefault())};g.G(uB1,g.q);g.p=uB1.prototype;g.p.show=function(){g.q.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
|
|
g.p.hide=function(){g.q.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
|
|
g.p.B_=function(A){var L=lt(A),B=g.XF(this.closeButton.element,L),f=g.XF(this.element,L);A=this.sourceElement&&g.XF(this.sourceElement,L)&&g.bV(A);L&&(f||A)&&!B||this.hide()};
|
|
g.p.P_=function(){W5S(g.BN(this.rT.K()),"user_info_panel",function(){window.location.reload()})};
|
|
g.p.zL=function(){var A=this.rT.K(),L={USER_NAME:A.userDisplayName,USER_EMAIL:A.BR};this.updateValue("icon",SSk());this.updateValue("watchingAsUsername",g.B$("Accesso effettuato come $USER_NAME",L));A.BR?this.updateValue("watchingAsEmail",g.B$("($USER_EMAIL)",L)):this.updateValue("watchingAsEmail","")};g.G(BxE,g.Im);g.p=BxE.prototype;g.p.C4=function(){this.Wz.YP()};
|
|
g.p.ZDF=function(){j3(this.PG.element)};
|
|
g.p.hSM=function(){zB(this,this.S.getDebugText(!0))&&vB(this.XO,yo())};
|
|
g.p.fxD=function(){zB(this,this.S.getVideoEmbedCode())&&vB(this.XO,nz8());this.S.logClick(this.o_.element)};
|
|
g.p.CqD=function(){zB(this,this.S.getVideoUrl(!0,!0))&&vB(this.XO,HP());this.S.logClick(this.getVideoUrl.element)};
|
|
g.p.sAM=function(){zB(this,this.S.getVideoUrl(!1,!0))&&vB(this.XO,HP());this.S.logClick(this.LO.element)};
|
|
g.p.onLoopChange=function(A){var L;(L=this.WB)==null||dC(L,A)};
|
|
g.p.v64=function(){this.S.setLoopVideo(this.WB.getValue());this.Wz.YP();this.S.logClick(this.WB.element)};
|
|
g.p.c$r=function(){this.S.Kr("onCollapseMiniplayer");this.Wz.YP()};
|
|
g.p.ljD=function(){this.S.Kr("onCollapseMiniplayer",!0);this.Wz.YP()};
|
|
g.p.I1F=function(A){this.S.reportPlaybackIssue();if(g.If(A,this.S,!Ko(this.S.K()))){A=this.S;var L=A.app.getFeedbackProductData();A.Wo("onFeedbackStartRequest",L);A.isFullscreen()&&A.toggleFullscreen()}this.Wz.YP()};
|
|
g.p.gJM=function(){g.jg(this.S,"isVideoInfoVisible",[])?g.jg(this.S,"hideVideoInfo",[]):g.jg(this.S,"showVideoInfo",[]);this.Wz.YP()};
|
|
g.p.Y_T=function(){this.ZJ&&(this.rF||(this.rF=new uB1(this.S,this.ZJ.element),g.W(this,this.rF),g.Wh(this.S,this.rF.element,4)),this.rF.show(),this.Wz.YP(),this.S.logClick(this.ZJ.element))};
|
|
g.p.onVideoDataChange=function(A,L){otw(this,L)};
|
|
g.p.Hy=function(A){g.Im.prototype.Hy.call(this,A);this.S.logVisibility(this.o_.element,A);this.S.logVisibility(this.getVideoUrl.element,A);this.S.logVisibility(this.LO.element,A);this.WB&&this.S.logVisibility(this.WB.element,A);this.ZJ&&this.S.logVisibility(this.ZJ.element,A);this.R6&&this.S.logVisibility(this.R6.element,A)};g.G(VcS,g.pl);g.p=VcS.prototype;g.p.onTouchStart=function(A){var L=lt(A);if(!(L&&(Mo(L,"a")||Mo(L,null,"ytp-no-contextmenu"))||this.bC)){var B;this.G=(A=(B=A.touches)==null?void 0:B.item(0))?new g.Vl(A.clientX,A.clientY):new g.Vl(0,0);this.X.start()}};
|
|
g.p.Z8=function(){this.X.stop()};
|
|
g.p.a14=function(){this.open(this.G)};
|
|
g.p.pk=function(){if(this.rf&&fd8(this.rf)){var A=fd8(this.rf).element;A.tabIndex=-1;A.focus()}else this.element.tabIndex=-1,this.element.focus()};
|
|
g.p.show=function(){this.rf||(this.rf=new BxE(this.S,this,this.XO),g.W(this,this.rf),g.yp(this,this.rf));this.rf.onLoopChange(this.S.getLoopVideo());g.pl.prototype.show.call(this);this.S.logVisibility(this.element,!0);this.rf.Hy(!0)};
|
|
g.p.hide=function(){K0y(this);g.pl.prototype.hide.call(this);this.S.logVisibility(this.element,!1);this.rf&&this.rf.Hy(!1)};
|
|
g.p.U8n=function(A){var L=lt(A);this.bC||L&&(Mo(L,"a")||Mo(L,null,"ytp-no-contextmenu"))||(A.preventDefault(),this.open(new g.Vl(A.pageX,A.pageY)))};
|
|
g.p.fD=function(A){if(A){var L=A.getBoundingClientRect();this.open(new g.Vl(L.x,L.y))}g.pl.prototype.fD.call(this,A)};
|
|
g.p.open=function(A){JPQ(this);var L=this.S.getVideoData();g.D1(this.element,"ytp-dni",L.OE);this.element.style.left="";this.element.style.top="";A.x++;A.y++;g.pl.prototype.fD.call(this);var B=uz(this).body;L=new uA(0,Infinity,Infinity,0);var f=pG(B);for(var K=f.N.body,V=f.N.documentElement,J=JOD(f.N);B=wkw(B);)if((!g.h8||B.clientHeight!=0||B!=K)&&B!=K&&B!=V&&Z4(B,"overflow")!="visible"){var R=g.dK(B),Z=new g.Vl(B.clientLeft,B.clientTop);R.x+=Z.x;R.y+=Z.y;L.top=Math.max(L.top,R.y);L.right=Math.min(L.right,
|
|
R.x+B.clientWidth);L.bottom=Math.min(L.bottom,R.y+B.clientHeight);L.left=Math.max(L.left,R.x)}K=J.scrollLeft;J=J.scrollTop;L.left=Math.max(L.left,K);L.top=Math.max(L.top,J);f=VZ1(f.N.defaultView||window);L.right=Math.min(L.right,K+f.width);L.bottom=Math.min(L.bottom,J+f.height);f=L.top>=0&&L.left>=0&&L.bottom>L.top&&L.right>L.left?L:null;L=this.size;A=A.clone();L=L.clone();f&&(J=L,K=5,(K&65)==65&&(A.x<f.left||A.x>=f.right)&&(K&=-2),(K&132)==132&&(A.y<f.top||A.y>=f.bottom)&&(K&=-5),A.x<f.left&&K&1&&
|
|
(A.x=f.left),K&16&&(V=A.x,A.x<f.left&&(A.x=f.left),A.x+J.width>f.right&&(J.width=Math.min(f.right-A.x,V+J.width-f.left),J.width=Math.max(J.width,0))),A.x+J.width>f.right&&K&1&&(A.x=Math.max(f.right-J.width,f.left)),A.y<f.top&&K&4&&(A.y=f.top),K&32&&(V=A.y,A.y<f.top&&(A.y=f.top),A.y+J.height>f.bottom&&(J.height=Math.min(f.bottom-A.y,V+J.height-f.top),J.height=Math.max(J.height,0))),A.y+J.height>f.bottom&&K&4&&(A.y=Math.max(f.bottom-J.height,f.top)));f=new g.oR(0,0,0,0);f.left=A.x;f.top=A.y;f.width=
|
|
L.width;f.height=L.height;g.F6(this.element,new g.Vl(f.left,f.top));g.$_(this.W);this.W.Y(uz(this),"contextmenu",this.Tfr);this.W.Y(this.S,"fullscreentoggled",this.onFullscreenToggled);this.W.Y(this.S,"pageTransition",this.L0)};
|
|
g.p.Tfr=function(A){if(!A.defaultPrevented){var L=lt(A);g.XF(this.element,L)||this.YP();this.S.K().disableNativeContextMenu&&A.preventDefault()}};
|
|
g.p.onFullscreenToggled=function(){this.YP();JPQ(this)};
|
|
g.p.L0=function(){this.YP()};g.G(ug,g.q);ug.prototype.onClick=function(){var A=this,L,B,f,K;return g.c(function(V){if(V.N==1)return L=A.api.K(),B=A.api.getVideoData(),f=A.api.getPlaylistId(),K=L.getVideoUrl(B.videoId,f,void 0,!0),g.X(V,ZQw(A,K),2);V.W&&RCE(A);A.api.logClick(A.element);g.VK(V)})};
|
|
ug.prototype.zL=function(){this.updateValue("icon",{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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","Copia link");this.updateValue("tooltip-title","Copia link");this.visible=Sfe(this);g.D1(this.element,
|
|
"ytp-copylink-button-visible",this.visible);this.xP(this.visible);this.tooltip.qq();this.api.logVisibility(this.element,this.visible&&this.yj)};
|
|
ug.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)};
|
|
ug.prototype.l1=function(){g.q.prototype.l1.call(this);g.NH(this.element,"ytp-copylink-button-visible")};g.G(NxL,g.q);g.p=NxL.prototype;g.p.show=function(){g.q.prototype.show.call(this);g.Az(this.W)};
|
|
g.p.hide=function(){this.U.stop();this.V=0;this.m4("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.NH(this.element,"ytp-chapter-seek");g.NH(this.element,"ytp-time-seeking");g.q.prototype.hide.call(this)};
|
|
g.p.IN=function(A,L,B,f){this.V=A===this.T?this.V+f:f;this.T=A;var K=A===-1?this.G:this.X;K&&this.S.logClick(K);this.D?this.W.stop():g.o1(this.W);this.U.start();this.element.setAttribute("data-side",A===-1?"back":"forward");var V=3*this.S.Pn().getPlayerSize().height;K=this.S.Pn().getPlayerSize();K=K.width/3-3*K.height;this.N.style.width=V+"px";this.N.style.height=V+"px";A===1?(this.N.style.left="",this.N.style.right=K+"px"):A===-1&&(this.N.style.right="",this.N.style.left=K+"px");var J=V*2.5;V=J/
|
|
2;var R=this.m4("ytp-doubletap-ripple");R.style.width=J+"px";R.style.height=J+"px";A===1?(A=this.S.Pn().getPlayerSize().width-L+Math.abs(K),R.style.left="",R.style.right=A-V+"px"):A===-1&&(A=Math.abs(K)+L,R.style.right="",R.style.left=A-V+"px");R.style.top="calc((33% + "+Math.round(B)+"px) - "+V+"px)";if(B=this.m4("ytp-doubletap-ripple"))B.classList.remove("ytp-doubletap-ripple"),B.classList.add("ytp-doubletap-ripple");F0Q(this,this.D?this.V:f)};
|
|
g.p.o$=function(A,L,B){if(B=B===void 0?null:B){var f=A===-1?this.G.visualElement:this.X.visualElement;B={seekData:B};var K=g.sF();K&&K1(K,f,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",B)}this.V=A===this.T?this.V+L:L;this.T=A;f=this.S.Pn().getPlayerSize();this.D?this.W.stop():g.o1(this.W);this.U.start();this.element.setAttribute("data-side",A===-1?"back":"forward");g.R1(this.element,"ytp-time-seeking");this.N.style.width="110px";this.N.style.height="110px";B=f.width*.1-15;A===1?this.Wn?(this.N.style.right=
|
|
B+"px",this.N.style.left=""):(this.N.style.right="",this.N.style.left=f.width*.8-30+"px"):A===-1&&(this.Wn?(this.N.style.right="",this.N.style.left=B+"px"):(this.N.style.right="",this.N.style.left=f.width*.1-15+"px"));this.N.style.top=f.height*.5+15+"px";F0Q(this,this.D?this.V:L)};
|
|
g.p.iE=function(A,L,B){B=B===void 0?null:B;g.o1(this.W);this.U.start();switch(A){case -1:A="back";break;case 1:A="forward";break;default:A=""}this.element.setAttribute("data-side",A);this.N.style.width="0";this.N.style.height="0";g.R1(this.element,"ytp-chapter-seek");this.updateValue("seekText",L);this.updateValue("seekTime","");L=this.m4("ytp-seek-icon");if(B){a:if(B){switch(B){case "PREMIUM_STANDALONE":B=Rme();break a;case "PREMIUM_STANDALONE_CAIRO":B=ZnC();break a}B=void 0}else B=null;this.updateValue("seekIcon",
|
|
B);L.style.display="inline-block"}else L.style.display="none"};g.G(dYQ,DW);g.p=dYQ.prototype;g.p.dZ=function(A){this.S4||(this.S4=new gA(this.S),g.W(this,this.S4));var L,B;if((L=this.Uv)==null?0:(B=L.menu)==null?0:B.menuRenderer)this.S4.open(this.Uv.menu.menuRenderer,A.target),A.preventDefault()};
|
|
g.p.CC=function(){return!!this.N};
|
|
g.p.pH=function(){return!!this.N};
|
|
g.p.gJ=function(A){A.target===this.overflowButton.element?A.preventDefault():(this.N8&&this.S.Kr("innertubeCommand",this.N8),this.Or(!1))};
|
|
g.p.qb=function(){this.Or(!0);var A,L;if((A=this.N)==null?0:(L=A.bannerData)==null?0:L.dismissedStatusKey){if(this.cn.includes(this.N.bannerData.dismissedStatusKey))return;this.cn.push(this.N.bannerData.dismissedStatusKey)}this.Tr();this.S.J("web_enable_shopping_timely_shelf_client")&&(A={},g.cb(A,JfK,{overlayId:"player_overlay_timely_shelf"}),this.S.Kr("innertubeCommand",A))};
|
|
g.p.CB=function(){this.Tr();LQ(this)};
|
|
g.p.Max=function(A){var L=this,B;if(A.id!==((B=this.N)==null?void 0:B.identifier)){this.Tr();B=g.m(this.ZM);for(var f=B.next();!f.done;f=B.next()){var K=f.value,V=void 0,J=void 0;if((f=(V=K)==null?void 0:(J=V.bannerData)==null?void 0:J.itemData)&&K.identifier===A.id){J=V=void 0;var R=((V=K)==null?void 0:(J=V.bannerData)==null?void 0:J.dismissedStatusKey)||"";if(this.cn.includes(R))return;this.N=K;this.banner.element.setAttribute("aria-label",f.accessibilityLabel||"");f.trackingParams&&(this.W=!0,
|
|
this.S.setTrackingParams(this.badge.element,f.trackingParams));this.show();this.G.show();F7(this);this.wT.xP(!f.stayInApp);bQC(this);wJL(this);AP(this);this.N8=g.y(f.onTapCommand,XP);if(K=g.y(f.menuOnTap,XP))this.Uv=g.y(K,Ft9);K=void 0;this.banner.update({thumbnail:(K=(f.thumbnailSources||[])[0])==null?void 0:K.url,title:f.productTitle,price:f.priceReplacementText?f.priceReplacementText:f.price,salesOriginalPrice:jD7(this),priceDropReferencePrice:gte(this),promotionText:yPe(this),priceA11yText:GoQ(this),
|
|
affiliateDisclaimer:f.affiliateDisclaimer,vendor:rPk(this)});R=J=V=K=void 0;((K=f)==null?0:(V=K.hiddenProductOptions)==null?0:V.showDropCountdown)&&((J=f)==null?0:(R=J.hiddenProductOptions)==null?0:R.dropTimestampMs)&&(this.zV=new g.aa(function(){hCL(L)},1E3),this.wT.hide(),this.countdownTimer.show(),hCL(this));
|
|
this.S.J("web_player_enable_featured_product_banner_exclusives_on_desktop")&&Id7(this)&&(this.t$=new g.aa(function(){pJ8(L)},1E3),pJ8(this))}}this.S.getRootNode()&&g.R1(this.S.getRootNode(),"ytp-featured-product-shown")}};
|
|
g.p.Tr=function(){this.N&&(this.N=void 0,this.B9(),this.S.getRootNode()&&g.NH(this.S.getRootNode(),"ytp-featured-product-shown"))};
|
|
g.p.onVideoDataChange=function(A,L){var B=this;DYy(this,L);A==="dataloaded"&&LQ(this);var f,K,V;A=g.y((f=L.getWatchNextResponse())==null?void 0:(K=f.playerOverlays)==null?void 0:(V=K.playerOverlayRenderer)==null?void 0:V.productsInVideoOverlayRenderer,Zfd);this.overflowButton.show();this.dismissButton.hide();var J=A==null?void 0:A.featuredProductsEntityKey;this.trendingOfferEntityKey=A==null?void 0:A.trendingOfferEntityKey;this.ZM.length||(HQD(this,J),AP(this));var R;(R=this.k6)==null||R.call(this);
|
|
this.k6=g.Iq.subscribe(function(){HQD(B,J);AP(B)})};
|
|
g.p.l1=function(){LQ(this);bQC(this);wJL(this);DW.prototype.l1.call(this)};g.G(Cr8,g.q);Cr8.prototype.onClick=function(){this.S.logClick(this.element,this.V);if(this.S.J("embeds_enable_info_panel_dismissal")&&this.N&&this.feedbackToken){var A=this.S.dh();if(A==null?0:S_6(this.N,A.HS))c8(A,this.N,{feedbackTokens:[this.feedbackToken]}),this.S.publish("infopaneldetaildismissed")}};g.G(iQ7,g.zg);g.p=iQ7.prototype;g.p.show=function(){g.zg.prototype.show.call(this);this.S.publish("infopaneldetailvisibilitychange",!0);this.S.logVisibility(this.element,!0);$Ye(this,!0)};
|
|
g.p.hide=function(){g.zg.prototype.hide.call(this);this.S.publish("infopaneldetailvisibilitychange",!1);this.S.logVisibility(this.element,!1);$Ye(this,!1)};
|
|
g.p.getId=function(){return this.V};
|
|
g.p.uM=function(){return this.itemData.length};
|
|
g.p.onVideoDataChange=function(A,L){if(L){var B,f,K,V;this.update({title:((B=L.O_)==null?void 0:(f=B.title)==null?void 0:f.content)||"",body:((K=L.O_)==null?void 0:(V=K.bodyText)==null?void 0:V.content)||""});var J;A=((J=L.O_)==null?void 0:J.trackingParams)||null;this.S.setTrackingParams(this.element,A);J=g.m(this.itemData);for(A=J.next();!A.done;A=J.next())A.value.dispose();this.itemData=[];var R;if((R=L.O_)==null?0:R.ctaButtons)for(L=g.m(L.O_.ctaButtons),R=L.next();!R.done;R=L.next())if(R=g.y(R.value,
|
|
BIK))R=new Cr8(this.S,R,this.N),R.gX&&(this.itemData.push(R),R.DM(this.items))}};
|
|
g.p.l1=function(){this.hide();g.zg.prototype.l1.call(this)};g.G(Ete,g.q);g.p=Ete.prototype;g.p.onVideoDataChange=function(A,L){OQ0(this,L);this.xb&&Mc0(this,this.xb)};
|
|
g.p.W1=function(A){var L=this.S.getVideoData();this.videoId!==L.videoId&&OQ0(this,L);Mc0(this,A.state);this.xb=A.state};
|
|
g.p.v8=function(A){(this.V=A)?this.hide():this.N&&!this.isDismissed&&this.show()};
|
|
g.p.yL=function(){this.W||this.fD();this.showControls=!0};
|
|
g.p.NZ=function(){this.W||this.YP();this.showControls=!1};
|
|
g.p.fD=function(){if(!this.isDismissed){var A,L=(A=this.S)==null?void 0:A.getPlayerSize();A=L.width<380;var B;L=L.height<(((B=this.S)==null?0:B.isEmbedsShortsMode())?400:280);var f,K;(((f=this.S)==null?0:f.getPlayerStateObject().isCued())||((K=this.S)==null?0:g.x(K.getPlayerStateObject(),1024)))&&A&&L||!this.N||this.V||(this.fade.show(),this.S.publish("infopanelpreviewvisibilitychange",!0),this.S.logVisibility(this.element,!0))}};
|
|
g.p.YP=function(){this.N&&!this.V&&(this.fade.hide(),this.S.publish("infopanelpreviewvisibilitychange",!1),this.S.logVisibility(this.element,!1))};
|
|
g.p.XR4=function(){this.W=!1;this.showControls||this.YP()};var Rhw={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Rhw).reduce(function(A,L){A[Rhw[L]]=L;return A},{});
|
|
var ZaI={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ZaI).reduce(function(A,L){A[ZaI[L]]=L;return A},{});
|
|
var Ntw={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Ntw).reduce(function(A,L){A[Ntw[L]]=L;return A},{});var FCX,Dw5;FCX=[{option:"#fff",text:"Bianco"},{option:"#ff0",text:"Giallo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Blu"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rosso"},{option:"#080808",text:"Nero"}];Dw5=[{option:0,text:oD(0)},{option:.25,text:oD(.25)},{option:.5,text:oD(.5)},{option:.75,text:oD(.75)},{option:1,text:oD(1)}];
|
|
g.VF=[{option:"fontFamily",text:"Famiglia di caratteri",options:[{option:1,text:"Serif a spaziatura fissa"},{option:2,text:"Serif proporzionale"},{option:3,text:"Sans serif a spaziatura fissa"},{option:4,text:"Sans serif proporzionale"},{option:5,text:"Informale"},{option:6,text:"Corsivo"},{option:7,text:"Maiuscoletto"}]},{option:"color",text:"Colore carattere",options:FCX},{option:"fontSizeIncrement",text:"Dimensione carattere",options:[{option:-2,text:oD(.5)},{option:-1,text:oD(.75)},{option:0,
|
|
text:oD(1)},{option:1,text:oD(1.5)},{option:2,text:oD(2)},{option:3,text:oD(3)},{option:4,text:oD(4)}]},{option:"background",text:"Colore sfondo",options:FCX},{option:"backgroundOpacity",text:"Opacit\u00e0 dello sfondo",options:Dw5},{option:"windowColor",text:"Colore finestra",options:FCX},{option:"windowOpacity",text:"Opacit\u00e0 della finestra",options:Dw5},{option:"charEdgeStyle",text:"Stile bordo carattere",options:[{option:0,text:"Nessuno"},{option:4,text:"Ombra"},{option:1,text:"In rilievo"},
|
|
{option:2,text:"Incassato"},{option:3,text:"Delineato"}]},{option:"textOpacity",text:"Opacit\u00e0 carattere",options:[{option:.25,text:oD(.25)},{option:.5,text:oD(.5)},{option:.75,text:oD(.75)},{option:1,text:oD(1)}]}];var dwf=[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.G(Pr1,g.dN);g.p=Pr1.prototype;
|
|
g.p.zp=function(A){A.repeat||(this.V.r7=!1);var L=!1,B=A.keyCode,f=lt(A),K=!A.altKey&&!A.ctrlKey&&!A.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||dwf.includes(B)),V=!1,J=!1,R=this.api.K();A.defaultPrevented?(K=!1,J=!0):R.jD&&!this.api.isMutedByEmbedsMutedAutoplay()&&(K=!1);if(B===9)L=!0;else{if(f)switch(B){case 32:case 13:if(f.tagName==="BUTTON"||f.tagName==="A"||f.tagName==="INPUT")L=!0,K=!1;else if(K){var Z=f.getAttribute("role");!Z||Z!=="option"&&Z!=="button"&&Z.indexOf("menuitem")!==0||
|
|
(L=!0,f.click(),V=!0)}break;case 37:case 39:case 36:case 35:L=f.getAttribute("role")==="slider";break;case 38:case 40:Z=f.getAttribute("role"),f=B===38?f.previousSibling:f.nextSibling,Z==="slider"?L=!0:K&&(Z==="option"?(f&&f.getAttribute("role")==="option"&&f.focus(),V=L=!0):Z&&Z.indexOf("menuitem")===0&&(f&&f.hasAttribute("role")&&f.getAttribute("role").indexOf("menuitem")===0&&f.focus(),V=L=!0))}if(K&&!V)switch(B){case 38:V=Math.min(this.api.getVolume()+5,100);qp(this.XO,V,!1);this.api.setVolume(V);
|
|
J=V=!0;break;case 40:V=Math.max(this.api.getVolume()-5,0);qp(this.XO,V,!0);this.api.setVolume(V);J=V=!0;break;case 36:this.api.Kw()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),J=V=!0);break;case 35:this.api.Kw()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),J=V=!0)}}L&&fQ(this,!0);(L||J)&&this.C8.V9();(V||K&&this.handleGlobalKeyDown(B,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code,A.repeat))&&A.preventDefault();R.G&&(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.X3("onKeyPress",A))};
|
|
g.p.EG=function(A){var L=A.keyCode;!this.V.V1&&this.handleGlobalKeyUp(L,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code)&&A.preventDefault()};
|
|
g.p.handleGlobalKeyUp=function(A,L,B,f,K,V,J){this.api.publish("keyboardserviceglobalkeyup",{keyCode:A,shiftKey:L,ctrlKey:B,altKey:f,metaKey:K,key:V,code:J});L=!1;if(this.V.r7)return L;(V=g.Yn(this.api.SI()))&&(V=V.L3)&&V.bC&&(V.r5(A),L=!0);switch(A){case 9:fQ(this,!0);L=!0;break;case 32:if(this.api.J("web_speedmaster_spacebar_control")&&!this.api.K().jD){var R,Z;A=(R=this.progressBar)==null?void 0:(Z=R.W)==null?void 0:Z.isEnabled;L=this.Iu(A)}break;case 39:(this.api.J("web_player_chapter_seeking_keyboard_shortcut_killswitch")||
|
|
!(K||B&&f))&&(Hj?f:B)&&this.api.Kw()&&this.api.J("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),R=(R=this.api.getVideoData())?R.k6:[],Z=UYk(R,this.api.getCurrentTime()*1E3),Z!==-1&&this.N!=null&&(this.N.iE(1,R[Z].title),this.api.seekTo(R[Z].startTime/1E3,void 0,void 0,void 0,52),L=!0))}return L};
|
|
g.p.handleGlobalKeyDown=function(A,L,B,f,K,V,J,R){R||(this.V.r7=!1);var Z=!1,N=this.api.K();if(N.jD&&!this.api.isMutedByEmbedsMutedAutoplay())return Z;var F=g.Yn(this.api.SI());if(F&&(F=F.L3)&&F.bC)switch(A){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:Z=F.g5(A)}N.T||Z||(Z=V||String.fromCharCode(A).toLowerCase(),this.W+=Z,"awesome".indexOf(this.W)===0||this.api.J("web_player_rtr_ctrls")&&"bday".indexOf(this.W)===0?(Z=!0,4===this.W.length&&this.W==="bday"&&this.api.J("web_player_rtr_ctrls")&&
|
|
(M4v(this.D),this.C8.V9()),7===this.W.length&&this.W==="awesome"&&SaQ(this.api.getRootNode(),"ytp-color-party")):(this.W=Z,Z="awesome".indexOf(this.W)===0||"bday".indexOf(this.W)===0));if(!Z&&(!this.api.isMutedByEmbedsMutedAutoplay()||dwf.includes(A))){var D=this.api.getVideoData(),I,d;F=(I=this.progressBar)==null?void 0:(d=I.W)==null?void 0:d.isEnabled;I=D?D.k6:[];d=Hj?f:B;switch(A){case 80:L&&!N.Ys&&(vB(this.XO,NLw(),"Indietro"),this.api.previousVideo(),Z=!0);break;case 78:L&&!N.Ys&&(vB(this.XO,
|
|
hr(),"Avanti"),this.api.nextVideo(),Z=!0);break;case 74:this.api.Kw()&&(this.api.startSeekCsiAction(),this.N?this.api.J("enable_key_press_seek_logging")?(Z=KQ(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.N.o$(-1,10,Z)):this.N.o$(-1,10):vB(this.XO,{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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),Z=!0);break;case 76:this.api.Kw()&&(this.api.startSeekCsiAction(),this.N?this.api.J("enable_key_press_seek_logging")?(Z=KQ(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.N.o$(1,10,Z)):this.N.o$(1,10):vB(this.XO,{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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),Z=!0);break;case 37:if(this.api.Kw())if(this.api.startSeekCsiAction(),d){if(this.api.J("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(K||B&&f))d=W0S(I,this.api.getCurrentTime()*1E3),d!==-1&&this.N!=null&&(this.N.iE(-1,I[d].title),this.api.seekTo(I[d].startTime/1E3,void 0,void 0,void 0,53),Z=!0)}else this.N?this.api.J("enable_key_press_seek_logging")?(Z=KQ(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),
|
|
this.N.o$(-1,5,Z)):this.N.o$(-1,5):vB(this.XO,{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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),Z=!0;break;case 39:this.api.Kw()&&(this.api.startSeekCsiAction(),d?this.api.J("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.J("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(K||B&&f)||(d=UYk(I,this.api.getCurrentTime()*1E3),d!==-1&&this.N!=null&&(this.N.iE(1,I[d].title),this.api.seekTo(I[d].startTime/1E3,void 0,void 0,void 0,52),Z=!0)):(this.N!=null?this.api.J("enable_key_press_seek_logging")?(Z=KQ(this,5*
|
|
this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.N.o$(1,5,Z)):this.N.o$(1,5):vB(this.XO,{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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),Z=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),qp(this.XO,this.api.getVolume(),!1)):(this.api.mute(),qp(this.XO,0,!0));Z=!0;break;case 32:Z=this.api.J("web_speedmaster_spacebar_control")?!this.api.K().Ys:this.Iu(F);break;case 75:Z=this.Iu(F);break;case 190:L?N.enableSpeedOptions&&eCE(this)&&(Z=this.api.getPlaybackRate(),this.api.setPlaybackRate(Z+.25,!0),XBD(this.XO,!1),Z=!0):this.api.Kw()&&(this.step(1),Z=!0);break;case 188:L?
|
|
N.enableSpeedOptions&&eCE(this)&&(Z=this.api.getPlaybackRate(),this.api.setPlaybackRate(Z-.25,!0),XBD(this.XO,!0),Z=!0):this.api.Kw()&&(this.step(-1),Z=!0);break;case 70:hUC(this.api)&&(this.api.toggleFullscreen().catch(function(){}),Z=!0);
|
|
break;case 27:F?(this.progressBar.Wa(),Z=!0):this.X()&&(Z=!0)}if(N.controlsType!=="3")switch(A){case 67:g.y2(this.api.SI())&&(N=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Oj1(this.XO,!N||N&&!N.displayName),Z=!0);break;case 79:JP(this,"textOpacity");break;case 87:JP(this,"windowOpacity");break;case 187:case 61:JP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:JP(this,"fontSizeIncrement",!0,!0)}var w;L||B||f||(A>=48&&A<=57?w=A-48:A>=96&&A<=105&&(w=A-96));w!=null&&this.api.Kw()&&
|
|
!this.api.J("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),N=this.api.getProgressState(),this.api.seekTo(w/10*(N.seekableEnd-N.seekableStart)+N.seekableStart,void 0,void 0,void 0,81),Z=!0);Z&&this.C8.V9()}this.V.u$=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:A,shiftKey:L,ctrlKey:B,altKey:f,metaKey:K,key:V,code:J,repeat:R},this.V);this.V.u$&&(Z=!0,this.C8.V9());return Z};
|
|
g.p.step=function(A){this.api.Kw();if(this.api.getPlayerStateObject().isPaused()){var L=this.api.getVideoData().W;L&&(L=L.video)&&this.api.seekBy(A/(L.fps||30),void 0,void 0,A>0?77:78)}};
|
|
g.p.Iu=function(A){if(!this.api.K().Ys){var L;var B,f=(L=this.api.getVideoData())==null?void 0:(B=L.getPlayerResponse())==null?void 0:B.playabilityStatus;if(f){var K;L=((K=g.y(f.miniplayer,jOf))==null?void 0:K.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else L=!1;L&&this.api.Kr("onExpandMiniplayer");A?this.progressBar.lI():(A=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.XO.N0(A),A?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
|
|
g.p.l1=function(){g.o1(this.U);g.dN.prototype.l1.call(this)};g.G(Sc,g.q);Sc.prototype.zL=function(){var A=this.S.K(),L=A.V||this.S.J("web_player_hide_overflow_button_if_empty_menu")&&this.FL.isEmpty();A=g.MM(A)&&g.ch(this.S)&&g.x(this.S.getPlayerStateObject(),128);var B=this.S.getPlayerSize();this.visible=this.S.Gy()&&!A&&B.width>=240&&!this.S.getVideoData().OE&&!L&&!this.S.isEmbedsShortsMode();g.D1(this.element,"ytp-overflow-button-visible",this.visible);this.xP(this.visible);this.visible&&this.S.qq();this.S.logVisibility(this.element,this.visible&&this.yj)};
|
|
Sc.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.S.logVisibility(this.element,this.visible&&A)};
|
|
Sc.prototype.l1=function(){g.q.prototype.l1.call(this);g.NH(this.element,"ytp-overflow-button-visible")};g.G(nt7,g.zg);g.p=nt7.prototype;g.p.H1=function(A){A=lt(A);g.XF(this.element,A)&&(g.XF(this.N,A)||g.XF(this.closeButton,A)||ah(this))};
|
|
g.p.YP=function(){g.zg.prototype.YP.call(this);this.S.Ed(this.element)};
|
|
g.p.show=function(){this.bC&&this.S.publish("OVERFLOW_PANEL_OPENED");g.zg.prototype.show.call(this);this.element.setAttribute("aria-modal","true");uSw(this,!0)};
|
|
g.p.hide=function(){g.zg.prototype.hide.call(this);this.element.removeAttribute("aria-modal");uSw(this,!1)};
|
|
g.p.onFullscreenToggled=function(A){!A&&this.U7()&&ah(this)};
|
|
g.p.isEmpty=function(){return this.actionButtons.length===0};
|
|
g.p.focus=function(){for(var A=g.m(this.actionButtons),L=A.next();!L.done;L=A.next())if(L=L.value,L.bC){L.focus();break}};g.G(adS,g.q);adS.prototype.onClick=function(A){g.If(A,this.api)&&this.api.playVideoAt(this.index)};g.G(ASL,g.zg);g.p=ASL.prototype;g.p.show=function(){g.zg.prototype.show.call(this);this.N.Y(this.api,"videodatachange",this.Sy);this.N.Y(this.api,"onPlaylistUpdate",this.Sy);this.Sy()};
|
|
g.p.hide=function(){g.zg.prototype.hide.call(this);g.$_(this.N);this.updatePlaylist(null)};
|
|
g.p.Sy=function(){this.updatePlaylist(this.api.getPlaylist());this.api.K().V&&(this.m4("ytp-playlist-menu-title-name").removeAttribute("href"),this.W&&(this.J$(this.W),this.W=null))};
|
|
g.p.Up=function(){var A=this.playlist,L=A.author,B=L?"di $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",f={CURRENT_POSITION:String(A.index+1),PLAYLIST_LENGTH:String(A.length)};L&&(f.AUTHOR=L);this.update({title:A.title,subtitle:g.B$(B,f),playlisturl:this.api.getVideoUrl(!0)});L=A.W;if(L===this.V)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[A.index];else{B=g.m(this.playlistData);for(f=B.next();!f.done;f=B.next())f.value.dispose();
|
|
B=A.length;this.playlistData=[];for(f=0;f<B;f++){var K=new adS(this.api,A,f);this.playlistData.push(K);K.DM(this.items)}this.selected=this.playlistData[A.index];this.V=L}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
|
|
g.p.Qy4=function(A){var L=this.api.getVideoUrl(!0);g.wC(L,this.api,A)};
|
|
g.p.updatePlaylist=function(A){this.playlist!==A?(this.playlist&&this.playlist.unsubscribe("shuffle",this.Up,this),this.playlist=A,this.V=null,A?(A.subscribe("shuffle",this.Up,this),this.Up()):this.bC&&this.hide()):this.playlist&&this.Up()};
|
|
g.p.focus=function(){this.selected.focus()};
|
|
g.p.l1=function(){this.hide();g.zg.prototype.l1.call(this)};g.G(RD,g.q);RD.prototype.hide=function(){g.q.prototype.hide.call(this);this.Hy(!1);this.api.qq()};
|
|
RD.prototype.zL=function(){var A=g.MM(this.api.K());g.D1(this.element,"ytp-playlist-menu-button-tiny",this.api.Pn().getPlayerSize().width<400&&!A);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.B$("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.B$("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.B$("Playlist: $PLAYLIST_NAME",
|
|
{PLAYLIST_NAME:this.playlist.title})}),this.api.J("delhi_modern_web_player")&&this.update({playlistTitle:g.B$("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.bC||(this.show(),this.api.qq()),this.visible=!0,this.Hy(!0)):this.bC&&this.hide()};
|
|
RD.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)};
|
|
RD.prototype.N=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.zL,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.zL,this);this.zL()};g.G(LjE,g.q);g.p=LjE.prototype;g.p.IE=function(){this.V?KjC(this):fCD(this)};
|
|
g.p.qZ=function(){this.V?(Zd(this),this.D=!0):fCD(this)};
|
|
g.p.vPj=function(){this.U=!0;this.ew(1);this.S.publish("promotooltipacceptbuttonclicked",this.acceptButton);Zd(this);this.W&&this.S.logClick(this.acceptButton)};
|
|
g.p.J$4=function(){this.U=!0;this.ew(2);Zd(this);this.W&&this.S.logClick(this.dismissButton)};
|
|
g.p.lP=function(A){if(this.S.getPresentingPlayerType()===1||this.S.getPresentingPlayerType()===2&&this.T){var L=!0,B=g.sA("ytp-ad-overlay-ad-info-dialog-container"),f=g.sA("ytp-ad-player-overlay-layout"),K=lt(A);if(this.sourceElement&&K&&g.XF(this.sourceElement,K))this.sourceElement=null;else{this.S.getPresentingPlayerType()===1&&K&&Array.from(K.classList).forEach(function(Z){if(Z.startsWith("ytp-ad")||Z.startsWith("ytp-skip-ad"))L=!1});
|
|
var V=VQ6(this.tooltipRenderer),J;if(((J=this.tooltipRenderer.dismissStrategy)==null?void 0:J.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")V&&(L=L&&!g.XF(this.element,K));else{var R;((R=this.tooltipRenderer.dismissStrategy)==null?void 0:R.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(L=V?!1:L&&g.XF(this.element,K))}this.N&&this.bC&&!B&&!f&&(!K||L&&g.bV(A))&&(this.U=!0,Zd(this))}}};
|
|
g.p.ew=function(A){var L=this.tooltipRenderer.promoConfig;if(L){switch(A){case 0:var B;if((B=L.impressionEndpoints)==null?0:B.length)var f=L.impressionEndpoints[0];break;case 1:f=L.acceptCommand;break;case 2:f=L.dismissCommand}var K;A=(K=g.y(f,mYD))==null?void 0:K.feedbackToken;f&&A&&(K={feedbackTokens:[A]},A=this.S.dh(),(A==null?0:S_6(f,A.HS))&&c8(A,f,K))}};
|
|
g.p.Bz=function(){this.D||(this.N||(this.N=ooL(this)),KjC(this))};
|
|
var B0e={"ytp-settings-button":g.Qo()};g.G(NY,g.q);NY.prototype.onStateChange=function(A){this.Y6(A.state)};
|
|
NY.prototype.Y6=function(A){this.xP(g.x(A,2))};
|
|
NY.prototype.onClick=function(){this.S.getPlayerStateObject().isOrWillBePlaying();this.S.playVideo()};g.G(FS,g.q);FS.prototype.onClick=function(A){this.api.logClick(this.element);var L=g.ip(this.api.K().vI,{focusSearch:"true"}),B={};g.jg(this.api,"addEmbedsConversionTrackingParams",[B]);L=g.ip(L,B);var f;(B=(f=this.api.getVideoData().KR)==null?void 0:f.params)&&(L=g.ip(L,{bp:B}));g.QR(window,L);A.preventDefault()};
|
|
FS.prototype.N=function(){if(this.api.J("embeds_web_enable_search_button")){var A=this.api.K();var L=this.api.getVideoData(),B=this.api.Pn().getPlayerSize().width;A=g.MM(A)&&B>=this.W&&!A.V&&!L.isAd()&&!this.api.isEmbedsShortsMode()}else A=!1;this.visible=A;this.xP(this.visible);g.D1(this.element,"ytp-search-button-visible",this.visible);g.D1(this.element,"ytp-show-search-title",!this.api.Gy());this.api.logVisibility(this.element,this.visible&&this.yj)};
|
|
FS.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)};g.G(Dd,g.q);
|
|
Dd.prototype.trigger=function(A,L,B,f){this.show();if(this.W&&A!==this.W){var K=1;this.V&&(K=Fje(this));JSy(this,K,!1);N0v(this)}this.W=A;this.U=this.W===-1?this.X:this.G;A="";L?(this.W===-1&&this.S.getCurrentTime()<=L?this.D=L:this.D+=L,A=(this.W===-1?"\u2212":"+")+" "+this.D):this.D=0;this.updateValue(this.W===-1?"durationBack":"durationForward",A);if(this.N==="hidden"||this.N==="fading-out")L=0,this.N==="fading-out"&&(L=Fje(this),Zbk(this)),SYD(this,L),this.N!=="fading-out"&&RWy(this,this.U.querySelector(".ytp-seek-overlay-arrow-persistent")),
|
|
this.N="fading-in";else if(this.N==="fading-in"||this.N==="lingering")L=this.U.querySelector(".ytp-seek-overlay-duration"),A=g.Am(this.S.K().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,L.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+A+")"},{offset:1,transform:"scale(1)"}],{duration:184}),Zbk(this),this.N==="lingering"&&(this.T.stop(),this.T.start());B&&Ddv(this,
|
|
B,f)};
|
|
Dd.prototype.IN=function(A,L,B,f){this.trigger(A,f)};
|
|
Dd.prototype.o$=function(A,L,B){this.trigger(A,L);B&&(A=A===-1?this.G.visualElement:this.X.visualElement,B={seekData:B},(L=g.sF())&&K1(L,A,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",B))};
|
|
Dd.prototype.iE=function(A,L,B){this.trigger(A,void 0,L,B)};g.G(dx,g.q);dx.prototype.onClick=function(){var A=this,L=this.api.K(),B=this.api.getVideoData(this.api.getPresentingPlayerType()),f=this.api.getPlaylistId();L=this.api.J("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):L.getVideoUrl(B.videoId,f,void 0,!0);if(navigator.share)try{var K=navigator.share({title:B.title,url:L});K instanceof Promise&&K.catch(function(V){ICk(A,V)})}catch(V){V instanceof Error&&ICk(this,V)}else this.N.p5(),ah(this.W,this.element,!1);
|
|
this.api.logClick(this.element)};
|
|
dx.prototype.zL=function(){var A=this.api.K(),L=this.api.isEmbedsShortsMode();g.D1(this.element,"ytp-show-share-title",g.MM(A)&&!L);this.N.Zr()&&L?(A=(this.api.Pn().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Kv(this.element,"right",A+"px")):L&&g.Kv(this.element,"right","0px");this.updateValue("icon",{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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=ddv(this);g.D1(this.element,"ytp-share-button-visible",this.visible);this.xP(this.visible);this.tooltip.qq();this.api.logVisibility(this.element,ddv(this)&&this.yj)};
|
|
dx.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)};
|
|
dx.prototype.l1=function(){g.q.prototype.l1.call(this);g.NH(this.element,"ytp-share-button-visible")};g.G(pdD,g.zg);g.p=pdD.prototype;g.p.cj=function(A){A=lt(A);g.XF(this.U,A)||g.XF(this.closeButton,A)||ah(this)};
|
|
g.p.YP=function(){g.zg.prototype.YP.call(this);this.tooltip.Ed(this.element);this.api.logVisibility(this.N,!1);for(var A=g.m(this.W),L=A.next();!L.done;L=A.next())L=L.value,this.api.hasVe(L.element)&&this.api.logVisibility(L.element,!1)};
|
|
g.p.show=function(){var A=this.bC;g.zg.prototype.show.call(this);this.zL();A||this.api.Kr("onSharePanelOpened")};
|
|
g.p.wzT=function(){this.bC&&this.zL()};
|
|
g.p.zL=function(){var A=this;g.R1(this.element,"ytp-share-panel-loading");g.NH(this.element,"ytp-share-panel-fail");var L=this.api.getVideoData(),B=this.api.getPlaylistId()&&this.V.checked;L.getSharePanelCommand&&c8(this.api.dh(),L.getSharePanelCommand,{includeListId:B}).then(function(f){A.TL()||(g.NH(A.element,"ytp-share-panel-loading"),gok(A,f))});
|
|
L=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",L);this.updateValue("linkText",L);this.updateValue("shareLinkWithUrl",g.B$("Condividi link $URL",{URL:L}));j3(this.N);this.api.logVisibility(this.N,!0)};
|
|
g.p.onFullscreenToggled=function(A){!A&&this.U7()&&ah(this)};
|
|
g.p.focus=function(){this.N.focus()};
|
|
g.p.l1=function(){g.zg.prototype.l1.call(this);ySk(this)};g.G(s7y,DW);g.p=s7y.prototype;g.p.l1=function(){kGk(this);DW.prototype.l1.call(this)};
|
|
g.p.gJ=function(A){A.target!==this.dismissButton.element&&(this.Or(!1),this.S.Kr("innertubeCommand",this.onClickCommand))};
|
|
g.p.qb=function(){this.sx=!0;this.Or(!0);this.B9()};
|
|
g.p.uOs=function(A){this.T=A;this.B9()};
|
|
g.p.onVideoDataChange=function(A,L){if(A=!!L.videoId&&this.videoId!==L.videoId)this.videoId=L.videoId,this.sx=!1,this.Vj=!0,this.X=this.qp=!1,kGk(this),tQ1(this,!1),this.V=this.N=!1,wx(this),Hbv(this);if(A||!L.videoId)this.Wn=this.W=!1;var B,f;if(L==null?0:(B=L.getPlayerResponse())==null?0:(f=B.videoDetails)==null?0:f.isLiveContent)this.wI(!1);else{var K,V,J;L=g.y((K=L.getWatchNextResponse())==null?void 0:(V=K.playerOverlays)==null?void 0:(J=V.playerOverlayRenderer)==null?void 0:J.productsInVideoOverlayRenderer,
|
|
Zfd);this.T=this.enabled=!1;if(L){if(K=L==null?void 0:L.featuredProductsEntityKey){V=g.Iq.getState().entities;var R;if((R=nz(V,"featuredProductsEntity",K))==null?0:R.productsData){this.wI(!1);return}}if(!L.text||!L.onClickCommand||!L.timing){this.wI(!1);return}this.enabled=!0;if(!this.W){var Z;R=(Z=L.badgeInteractionLogging)==null?void 0:Z.trackingParams;(this.W=!!R)&&this.S.setTrackingParams(this.badge.element,R||null)}if(!this.Wn){var N;if(this.Wn=!((N=L.dismissButton)==null||!N.trackingParams)){var F;
|
|
this.S.setTrackingParams(this.dismissButton.element,((F=L.dismissButton)==null?void 0:F.trackingParams)||null)}}L.isContentForward&&(Z=L.productsData,tQ1(this,!0),Hbv(this),Z=bb6(this,Z),N=[],Z.length>0&&N.push(Z[0]),Z.length>1&&(F=new g.q({Z:"div",j:"ytp-suggested-action-more-products-icon"}),g.W(this,F),N.push(F),N.push.apply(N,g.x7(Z.slice(1)))),this.D=new g.q({Z:"div",B:N,j:"ytp-suggested-action-content-forward-container"}),g.W(this,this.D),this.JF.element.append(this.D.element));this.text=g.wq(L.text);
|
|
var D;if(Z=(D=L.dismissButton)==null?void 0:D.a11yLabel)this.Cr=g.wq(Z);this.onClickCommand=L.onClickCommand;this.timing=L.timing;this.dX()}LI0(this);F7(this);this.B9()}};
|
|
g.p.CC=function(){return!this.T&&this.enabled&&!this.sx&&!this.S.Gy()&&!this.jI&&(this.X||this.Vj)};
|
|
g.p.H5=function(A){DW.prototype.H5.call(this,A);if(this.N||this.V)this.timing&&ID(this.timing.preview)&&(this.N=!1,wx(this),this.V=!1,wx(this),this.S.Jf("shopping_overlay_preview_collapsed"),this.S.Jf("shopping_overlay_preview_expanded"),A=pQ(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),ID(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.S.Jf("shopping_overlay_expanded"),A.end=this.timing.expanded.endSec*1E3),this.S.dX([A])),
|
|
this.qp=!0,F7(this);wx(this)};
|
|
g.p.wI=function(A){(this.X=A)?(NQ(this),F7(this,!1)):(kGk(this),this.Ys.start());this.B9()};
|
|
g.p.dX=function(A){var L=this.timing;A=(A===void 0?0:A)+this.S.getCurrentTime();var B=[],f=L.visible,K=L.preview;L=L.expanded;ID(f)&&(GGL(f,A),B.push(pQ(f.startSec,f.endSec,"shopping_overlay_visible")));ID(K)&&(GGL(K,A),f=K.startSec+1,B.push(pQ(K.startSec,f,"shopping_overlay_preview_collapsed")),B.push(pQ(f,K.endSec,"shopping_overlay_preview_expanded")));ID(L)&&(GGL(L,A),B.push(pQ(L.startSec,L.endSec,"shopping_overlay_expanded")));this.S.dX(B)};
|
|
g.p.B9=function(){DW.prototype.B9.call(this);this.S.getRootNode()&&g.D1(this.S.getRootNode(),"ytp-shopping-pill-shown",this.CC())};g.G(mdD,g.q);
|
|
mdD.prototype.zL=function(){var A=this.api.K();this.xP(g.MM(A)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.bC);var L=this.api.getVideoData(),B=!1;this.api.getPresentingPlayerType()===2?B=!!L.videoId&&!!L.isListed&&!!L.author&&!!L.Ys&&!!L.profilePicture:g.MM(A)&&(B=!!L.videoId&&!!L.Ys&&!!L.profilePicture&&!L.OE&&!A.V&&!(A.X&&this.api.getPlayerSize().width<200));var f=L.profilePicture;A=g.MM(A)?L.expandedTitle:L.author;f=f===void 0?
|
|
"":f;A=A===void 0?"":A;B?(this.W!==f&&(this.N.style.backgroundImage="url("+f+")",this.W=f),this.updateValue("channelLogoLabel",g.B$("Immagine di $CHANNEL_NAME",{CHANNEL_NAME:A})),g.R1(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.NH(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.N,B&&this.yj);this.api.logVisibility(this.channelName,B&&this.yj);this.subscribeButton&&(this.subscribeButton.channelId=L.JO);this.updateValue("expandedTitle",L.expandedTitle)};g.G(yF,g.zg);yF.prototype.show=function(){g.zg.prototype.show.call(this);this.N.start()};
|
|
yF.prototype.hide=function(){g.zg.prototype.hide.call(this);this.N.stop()};
|
|
yF.prototype.cF=function(A,L){A==="dataloaded"&&((this.SR=L.SR,this.YA=L.YA,isNaN(this.SR)||isNaN(this.YA))?this.W&&(this.S.Jf("intro"),this.S.removeEventListener(g.qR("intro"),this.X),this.S.removeEventListener(g.PR("intro"),this.U),this.S.removeEventListener("onShowControls",this.V),this.hide(),this.W=!1):(this.S.addEventListener(g.qR("intro"),this.X),this.S.addEventListener(g.PR("intro"),this.U),this.S.addEventListener("onShowControls",this.V),A=new g.WR(this.SR,this.YA,{priority:9,namespace:"intro"}),
|
|
this.S.dX([A]),this.W=!0))};g.G(jc,g.q);jc.prototype.onClick=function(){this.S.m2()};
|
|
jc.prototype.zL=function(){var A=!0;g.MM(this.S.K())&&(A=A&&this.S.Pn().getPlayerSize().width>=480);this.xP(A);A=this.updateValue;var L=this.S.J("delhi_modern_web_player_icons"),B=L?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]};L=L?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]};A.call(this,"icon",this.S.QC()?B:L)};g.G(CEQ,g.q);CEQ.prototype.l1=function(){this.N=null;g.q.prototype.l1.call(this)};g.G(gx,g.q);gx.prototype.onClick=function(){this.S.Kr("innertubeCommand",this.W)};
|
|
gx.prototype.G=function(){if(this.S.J("delhi_modern_web_player")){var A=this.S.getPlayerSize();A.width&&(this.element.style.maxWidth=A.width*.25+"px")}};
|
|
gx.prototype.qp=function(A){A!==this.T&&(this.update({chapterTitle:A,ariaLabel:A}),this.T=A);A?this.show():this.hide()};
|
|
gx.prototype.Wn=function(){this.N.disabled=this.W==null;g.D1(this.N,"ytp-chapter-container-disabled",this.N.disabled);this.iq()};g.G(Go,gx);Go.prototype.onClickCommand=function(A){g.y(A,dp)&&this.iq()};
|
|
Go.prototype.updateVideoData=function(A,L){var B,f,K;A=g.y((B=L.getWatchNextResponse())==null?void 0:(f=B.playerOverlays)==null?void 0:(K=f.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,Mg);B=g.y(A==null?void 0:A.playerBarActionButton,g.te);if(this.S.J("web_player_updated_entrypoint")){this.X=J2(B==null?void 0:B.text);var V;f=(V=B==null?void 0:B.tooltip)!=null?V:"Visualizza capitolo";this.D.setAttribute("title",f)}this.W=B==null?void 0:B.command;gx.prototype.Wn.call(this)};
|
|
Go.prototype.iq=function(){var A=this.X,L=this.U.N,B,f=((B=this.S.getLoopRange())==null?void 0:B.type)==="clips";if(L.length>1&&!f){A=this.S.getProgressState().current*1E3;B=BJ(L,A);A=L[B].title||"Capitoli";if(B!==this.currentIndex||this.V)this.S.Kr("innertubeCommand",L[B].onActiveCommand),this.currentIndex=B;this.V=!1}else this.V=!0;gx.prototype.qp.call(this,A)};g.G(rx,g.DE);rx.prototype.W=function(){var A;(A=this.element.parentElement)==null||A.classList.contains("ytp-right-controls-left");(this.N=!this.N)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")};
|
|
rx.prototype.isExpanded=function(){return this.N};g.G(sf,g.q);sf.prototype.V=function(A){g.x(A.state,32)?$d7(this,this.api.rB()):this.bC&&(g.x(A.state,16)||g.x(A.state,1))||this.fade.hide()};
|
|
sf.prototype.onProgress=function(){var A=this.api.getPlayerStateObject();(g.x(A,32)||g.x(A,16))&&Xd7(this)};
|
|
sf.prototype.U=function(){this.frameIndex=NaN;Xd7(this)};
|
|
sf.prototype.hide=function(){this.N&&$d7(this,null);g.q.prototype.hide.call(this)};g.G(ObS,g.q);g.p=ObS.prototype;g.p.onClick=function(){var A=this;if(this.S.K().Nl||this.S.K().X){this.S.logClick(this.element);try{this.S.toggleFullscreen().catch(function(L){A.J7(L)})}catch(L){this.J7(L)}}else ah(this.message,this.element,!0)};
|
|
g.p.J7=function(A){String(A).includes("fullscreen error")?g.CE(A):g.mL(A);this.mz()};
|
|
g.p.mz=function(){this.disable();this.message.fD(this.element,!0)};
|
|
g.p.Vi=function(){sS()===this.S.getRootNode()?this.V.start():(this.V.stop(),this.message&&this.message.hide())};
|
|
g.p.n4=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var A=window.screen.width*.9,L=window.screen.height*.9,B=Math.max(window.outerWidth,window.innerWidth),f=Math.max(window.outerHeight,window.innerHeight);if(B>f!==A>L){var K=B;B=f;f=K}A>B&&L>f&&this.mz()}};
|
|
g.p.disable=function(){var A=this;if(!this.message){var L=(gL(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Schermo intero non disponibile. $BEGIN_LINKUlteriori informazioni$END_LINK":"Il tuo browser non supporta la modalit\u00e0 a schermo intero. $BEGIN_LINKUlteriori informazioni$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.zg(this.S,{Z:"div",Rr:["ytp-popup","ytp-generic-popup"],C:{role:"alert",tabindex:"0"},B:[L[0],
|
|
{Z:"a",C:{href:"https://support.google.com/youtube/answer/6276924",target:this.S.K().yj},Ir:L[2]},L[4]]},100,!0);this.message.hide();g.W(this,this.message);this.message.subscribe("show",function(B){A.W.f$(A.message,B)});
|
|
g.Wh(this.S,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.N)();this.N=null}};
|
|
g.p.zL=function(){var A=hUC(this.S),L=this.S.K().X&&this.S.getPlayerSize().width<250;this.xP(A&&!L);this.S.logVisibility(this.element,this.bC)};
|
|
g.p.Fc=function(A){if(A){var L=g.iz(this.S,"Esci dalla modalit\u00e0 a schermo intero","f");this.update({"data-title-no-tooltip":"Esci dalla modalit\u00e0 a schermo intero"});document.activeElement===this.element&&this.S.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(B){g.CE(B)})}else L=g.iz(this.S,"Schermo intero","f"),this.update({"data-title-no-tooltip":"Schermo intero"});
|
|
A=EoC(this,A);L=this.message?null:L;this.S.K().J("player_tooltip_data_title_killswitch")?this.update({title:L,icon:A}):this.update({"tooltip-title":L,"aria-label":L,icon:A});this.W.Ce().qq()};
|
|
g.p.l1=function(){this.message||((0,this.N)(),this.N=null);g.q.prototype.l1.call(this)};
|
|
g.p.Hy=function(A){g.q.prototype.Hy.call(this,A)};g.G(HJ,g.q);HJ.prototype.onClick=function(){this.S.logClick(this.element);this.S.seekBy(this.N,!0);var A=this.N>0?1:-1,L=Math.abs(this.N),B=this.S.YR().ou;B&&B.o$(A,L);this.W.isActive()?this.V=!0:(A=["ytp-jump-spin"],this.N<0&&A.push("backwards"),this.element.classList.add.apply(this.element.classList,g.x7(A)),g.Az(this.W))};g.G(hP,gx);hP.prototype.onClickCommand=function(A){g.y(A,SdI)&&this.iq()};
|
|
hP.prototype.updateVideoData=function(){var A,L;this.W=(A=MQD(this))==null?void 0:(L=A.onTap)==null?void 0:L.innertubeCommand;gx.prototype.Wn.call(this)};
|
|
hP.prototype.iq=function(){var A="",L=this.U.X,B,f=(B=MQD(this))==null?void 0:B.headerTitle;B=f?g.wq(f):"";var K;f=((K=this.S.getLoopRange())==null?void 0:K.type)==="clips";L.length>1&&!f&&(A=this.S.getProgressState().current*1E3,K=Yf1(L,A),A=K!=null?L[K].title:B,K!=null&&K!==this.currentIndex&&(this.S.Kr("innertubeCommand",L[K].onActiveCommand),this.currentIndex=K));gx.prototype.qp.call(this,A)};g.G(br,g.q);br.prototype.onClick=function(){this.S.Kr("onCollapseMiniplayer");this.S.logClick(this.element)};
|
|
br.prototype.zL=function(){this.visible=!this.S.isFullscreen();this.xP(this.visible);this.S.logVisibility(this.element,this.visible&&this.yj)};
|
|
br.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.S.logVisibility(this.element,this.visible&&A)};var qYv=new HC(0,0,.05,0,0,1,1,1);g.G(tP,g.q);tP.prototype.init=function(){this.update({minvalue:this.V,maxvalue:this.T,stepvalue:this.G,slidervalue:this.N,ariaValueNow:this.N,ariaMinValue:this.V,ariaMaxValue:this.T});voe(this,this.N)};
|
|
tP.prototype.D=function(){kt(this,Number(this.W.value));this.W.focus()};
|
|
tP.prototype.X=function(A){if(!A.defaultPrevented){switch(A.code){case "ArrowDown":A=-this.G;break;case "ArrowUp":A=this.G;break;default:return}kt(this,Math.min(this.T,Math.max(Number((this.N+A).toFixed(2)),this.V)))}};g.G(To,tP);To.prototype.onVolumeChange=function(A){if(this.Wn)this.Wn=!1;else{var L=A.volume;L===0||A.muted?kt(this,0):kt(this,L)}};
|
|
To.prototype.D=function(){tP.prototype.D.call(this);this.qp(this.N)};
|
|
To.prototype.Vj=function(A){var L=-A.deltaY;L=A.deltaMode===WheelEvent.DOM_DELTA_LINE||A.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.B4(this.N+L,0,100):g.B4(this.N+g.B4(L/10,-10,10),0,100);L===0?kt(this,0):kt(this,L);this.qp(L);A.preventDefault();A.stopPropagation()};
|
|
To.prototype.ZM=function(A,L){this.Wn=!0;A===0||L?this.S.mute():(this.S.isMuted()&&this.S.unMute(),this.S.setVolume(A))};g.G(PEw,g.q);g.G(m0,g.q);g.p=m0.prototype;g.p.ZG=function(){if(!this.S.ZF()){this.updateValue("dataTooltipOffsetY",-120);var A;(A=this.N)!=null&&lr(A,!0);var L;(L=this.N)!=null&&L.N.stop()}};
|
|
g.p.PU=function(){var A;(A=this.N)!=null&&A.N.start()};
|
|
g.p.DG=function(A){this.visible=A.width>=300||this.S4;this.xP(this.visible);this.S.logVisibility(this.element,this.visible&&this.yj)};
|
|
g.p.T7=function(){this.S.K().JF?this.S.isMuted()?this.S.unMute():this.S.mute():ah(this.message,this.element,!0);this.S.logClick(this.element)};
|
|
g.p.BIj=function(A){if(this.S.K().JF&&this.N)if(A.target===this.V){var L;if(!this.S.ZF()||((L=this.N)==null?0:L.isVisible))this.T7();else{var B;(B=this.N)!=null&&lr(B,!0)}}else{var f;(f=this.N)!=null&&lr(f,!0)}else this.T7()};
|
|
g.p.onVolumeChange=function(A){this.setVolume(A.volume,A.muted)};
|
|
g.p.setVolume=function(A,L){var B=this,f=L?0:A/100;A=f===0?1:A>50?1:0;if(this.G!==A){var K=this.X;isNaN(K)?uAw(this,A):vH8(this.JF,function(J){uAw(B,K+(B.G-K)*J)},250);
|
|
this.G=A}f=f===0?1:0;if(this.T!==f){var V=this.Vj;isNaN(V)?aCe(this,f):vH8(this.ZM,function(J){aCe(B,V+(B.T-V)*J)},250);
|
|
this.T=f}eWD(this,L)};
|
|
g.p.Hy=function(A){g.q.prototype.Hy.call(this,A);this.S.logVisibility(this.element,this.visible&&A)};
|
|
var noy=["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"],zWS=["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.G(g.QF,g.q);g.p=g.QF.prototype;g.p.onStateChange=function(A){this.Y6(A.state)};
|
|
g.p.Y6=function(A){var L=g.MG(this.S.getVideoData()),B=!1;A.isOrWillBePlaying()?A=L?4:2:g.x(A,2)?(A=3,B=L):A=1;this.element.disabled=B;if(this.N!==A){L=null;switch(A){case 2:L=g.iz(this.S,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:L="Rivedi";this.update({"data-title-no-tooltip":"Rivedi"});break;case 1:L=g.iz(this.S,"Riproduci","k");this.update({"data-title-no-tooltip":"Riproduci"});break;case 4:L="Interrompi la riproduzione",this.update({"data-title-no-tooltip":"Interrompi la riproduzione"})}A===
|
|
3?this.S.K().J("player_tooltip_data_title_killswitch")?this.update({title:L,icon:AZ6(this,A)}):this.update({"tooltip-title":L,icon:AZ6(this,A)}):(this.S.J("player_tooltip_data_title_killswitch")?this.update({title:L}):this.update({"tooltip-title":L}),(L=AZ6(this,A))&&this.N&&this.N!==3?PGL(this.transition,this.element,L):this.updateValue("icon",L));this.tooltip.qq();this.N=A}};
|
|
g.p.onVideoDataChange=function(){g.D1(this.element,"ytp-play-button-playlist",g.ch(this.S))};
|
|
g.p.Iu=function(A){this.S.logClick(this.element);if(this.S.getPlayerStateObject().isOrWillBePlaying())this.S.pauseVideo();else{if(this.S.isMinimized()&&this.S.getPlayerStateObject().isCued()){var L={},B;if((B=this.S.getVideoData())==null?0:B.T)L.cttAuthInfo={token:this.S.getVideoData().T,videoId:this.S.getVideoData().videoId};C0("direct_playback",L);this.S.zH().timerName="direct_playback"}this.S.playVideo()}this.S.isMinimized()&&(A==null?void 0:A.type)==="click"&&this.element.blur()};
|
|
g.p.Hy=function(A){g.q.prototype.Hy.call(this,A)};g.G(g.CQ,g.q);g.p=g.CQ.prototype;g.p.onVideoDataChange=function(){BcS(this);this.U&&(this.J$(this.U),this.U=null);this.videoData=this.S.getVideoData(1);if(this.playlist=this.S.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.U=this.Y(this.S,"progresssync",this.Bj);this.V=f$y(this);oyk(this);this.C1(this.S.Pn().getPlayerSize())};
|
|
g.p.C1=function(A){A=A===void 0?this.S.Pn().getPlayerSize():A;var L,B=((L=this.S.getLoopRange())==null?void 0:L.type)==="clips";L=g.ch(this.S)||this.N&&g.vh(this.S)&&!this.S.J("web_hide_next_button")||Kh7(this);var f=!this.N&&A.width<400;A=this.S.J("delhi_modern_web_player_horizontal_volume_controls")&&A.width<640;B=L&&!B&&!f&&!A;this.xP(B);this.S.logVisibility(this.element,B)};
|
|
g.p.onClick=function(A){this.S.logClick(this.element);var L=!0;this.T?L=g.If(A,this.S):A.preventDefault();L&&(this.N&&this.S.getPresentingPlayerType()===5?this.S.publish("ytoprerollinternstitialnext"):this.N?(Sf(this.S.zH()),this.S.publish("playlistnextbuttonclicked",this.element),this.S.nextVideo(!0)):this.V?this.S.seekTo(0):(Sf(this.S.zH()),this.S.publish("playlistprevbuttonclicked",this.element),this.S.previousVideo(!0)))};
|
|
g.p.Bj=function(){var A=f$y(this);A!==this.V&&(this.V=A,oyk(this))};
|
|
g.p.l1=function(){this.W&&(this.W(),this.W=null);BcS(this);g.q.prototype.l1.call(this)};g.G(JZy,g.q);g.p=JZy.prototype;g.p.Lc=function(A){this.xV(A.pageX);this.sA(A.pageX+A.deltaX);Spe(this)};
|
|
g.p.xV=function(A){this.Wn=A-this.S4};
|
|
g.p.sA=function(A){A-=this.S4;!isNaN(this.Wn)&&this.thumbnails.length>0&&(this.G=A-this.Wn,this.thumbnails.length>0&&this.G!==0&&(this.V=this.X+this.G,A=DzS(this,this.V),this.V<=this.N/2&&this.V>=FhC(this)?(this.api.seekTo(A,!1,void 0,void 0,25),g.Kv(this.Vj,"transform","translateX("+(this.V-this.N/2)+"px)"),VhE(this,A)):this.V=this.X))};
|
|
g.p.Pj=function(){this.qp&&(this.qp.o3=!0);var A=(0,g.bc)()-this.Ex<300;if(Math.abs(this.G)<5&&!A){this.Ex=(0,g.bc)();A=this.Wn+this.G;var L=this.N/2-A;this.xV(A);this.sA(A+L);Spe(this);this.api.logClick(this.D)}Spe(this)};
|
|
g.p.d3=function(){ir(this,this.api.getCurrentTime())};
|
|
g.p.play=function(A){this.api.seekTo(DzS(this,this.V),void 0,void 0,void 0,26);this.api.playVideo();A&&this.api.logClick(this.playButton)};
|
|
g.p.onExit=function(A){this.api.seekTo(this.Ys,void 0,void 0,void 0,63);this.api.playVideo();A&&this.api.logClick(this.dismissButton)};
|
|
g.p.Bz=function(A,L){this.S4=A;this.N=L;ir(this,this.api.getCurrentTime())};
|
|
g.p.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ys=this.api.getCurrentTime(),VhE(this,this.Ys),g.D1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.JF=this.Y(this.element,"wheel",this.Lc),this.logVisibility(this.isEnabled))};
|
|
g.p.disable=function(){this.isEnabled=!1;this.hide();g.D1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.JF&&this.J$(this.JF);this.logVisibility(this.isEnabled)};
|
|
g.p.reset=function(){this.disable();this.U=[];this.wT=!1};
|
|
g.p.logVisibility=function(A){this.api.logVisibility(this.element,A);this.api.logVisibility(this.D,A);this.api.logVisibility(this.dismissButton,A);this.api.logVisibility(this.playButton,A)};
|
|
g.p.l1=function(){for(;this.W.length;){var A=void 0;(A=this.W.pop())==null||A.dispose()}g.q.prototype.l1.call(this)};
|
|
g.G(Rxe,g.q);g.G(ZZy,g.q);g.G(dz1,g.q);g.G($t,g.q);$t.prototype.Zg=function(A){return A==="PLAY_PROGRESS"?this.X:A==="LOAD_PROGRESS"?this.T:A==="LIVE_BUFFER"?this.D:this.V};pue.prototype.update=function(A,L,B,f){B=B===void 0?0:B;this.width=L;this.U=B;this.N=L-B-(f===void 0?0:f);this.position=g.B4(A,B,B+this.N);this.V=this.position-B;this.W=this.V/this.N};g.G(yZk,g.q);g.G(g.Ef,g.DE);g.p=g.Ef.prototype;
|
|
g.p.vO=function(){var A=!1,L=this.api.getVideoData();if(!L)return A;this.api.Jf("timedMarkerCueRange");GjS(this);for(var B=g.m(L.JF),f=B.next();!f.done;f=B.next()){f=f.value;var K=void 0,V=(K=this.sx[f])==null?void 0:K.markerType,J=void 0;K=(J=this.sx[f])==null?void 0:J.markers;if(!K)break;if(V==="MARKER_TYPE_TIMESTAMPS"){A=g.m(K);for(V=A.next();!V.done;V=A.next()){J=V.value;V=new yZk;var R=void 0;V.title=((R=J.title)==null?void 0:R.simpleText)||"";V.timeRangeStartMillis=Number(J.startMillis);V.N=
|
|
Number(J.durationMillis);var Z=R=void 0;V.onActiveCommand=(Z=(R=J.onActive)==null?void 0:R.innertubeCommand)!=null?Z:void 0;thQ(this,V)}kjQ(this,this.X);A=this.X;V=this.cR;J=[];R=null;for(Z=0;Z<A.length;Z++){var N=A[Z].timeRangeStartMillis;if(!isNaN(N)&&A[Z].onActiveCommand){var F=void 0,D=(F=A[Z].N)!=null?F:1E4;R&&R.end>N&&(R.end=N);N=vt0(N,N+D);J.push(N);R=N;V[N.id]=A[Z].onActiveCommand}}this.api.dX(J);a:{A=g.m(K);for(K=A.next();!K.done;K=A.next())if(K.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){A=
|
|
!1;break a}A=!0}A&&(this.Gt=this.sx[f]);A=!0}else if(V==="MARKER_TYPE_HEATMAP"){f=this.sx[f];F=N=V=Z=R=J=void 0;if(f&&f.markers){K=(V=(F=f.markersMetadata)==null?void 0:(N=F.heatmapMetadata)==null?void 0:N.minHeightDp)!=null?V:0;V=(J=(Z=f.markersMetadata)==null?void 0:(R=Z.heatmapMetadata)==null?void 0:R.maxHeightDp)!=null?J:60;J=this.N.length;R=null;for(Z=0;Z<J;Z++){F=this.N[Z].startTime;D=Z===J-1?Infinity:this.N[Z+1].startTime;Z===this.U.length&&gyS(this);N=[];R&&N.push(R);for(var I=g.m(f.markers),
|
|
d=I.next();!d.done;d=I.next()){d=d.value;var w=Number(d.startMillis);w>=F&&w<=D&&N.push(d)}V>0&&(this.qp.style.height=V+"px");F=this.U[Z];D=N;d=K;var r=V,h=Z===0;h=h===void 0?!1:h;I$D(F,r);I=D;w=F.W;h=h===void 0?!1:h;var Q=1E3/I.length,l=[];l.push({x:0,y:100});for(var C=0;C<I.length;C++){var O=(C+.5)*Q,v=100-g.B4((I[C].intensityScoreNormalized||0)*100,d/w*100,r/w*100);C!==0||h||l.push({x:0,y:v});l.push({x:O,y:v});C===I.length-1&&l.push({x:1E3,y:v})}l.push({x:1E3,y:100});I=l;D=D.length===0?"":eu7(I);
|
|
F.api.J("delhi_modern_web_player")?F.V.setAttribute("d",D):F.D.setAttribute("d",D);F.gX=D!=="";g.D1(F.api.getRootNode(),"ytp-heat-map",F.gX);F.api.J("delhi_modern_web_player")?(F.U.style.display="none",F.N.style.display="none"):F.V.style.display="none";N.length>0&&(R=N[N.length-1])}g.cJ(this)}V=void 0;K=[];if(f=(V=f.markersDecoration)==null?void 0:V.timedMarkerDecorations)for(f=g.m(f),V=f.next();!V.done;V=f.next())V=V.value,Z=R=J=void 0,K.push({visibleTimeRangeStartMillis:(J=V.visibleTimeRangeStartMillis)!=
|
|
null?J:-1,visibleTimeRangeEndMillis:(R=V.visibleTimeRangeEndMillis)!=null?R:-1,decorationTimeMillis:(Z=V.decorationTimeMillis)!=null?Z:NaN,label:V.label?g.wq(V.label):""});f=K;this.heatMarkersDecorations=f}}L.sC=this.X;g.D1(this.element,"ytp-timed-markers-enabled",A);return A};
|
|
g.p.Bz=function(){g.cJ(this);Uf(this);kjQ(this,this.X);if(this.W){var A=g.dK(this.element).x||0;this.W.Bz(A,this.T)}};
|
|
g.p.VEs=function(){var A=this.api.getVideoData();A&&cZv(this,A)};
|
|
g.p.onClickCommand=function(A){if(A=g.y(A,dp)){var L=A.key;A.isVisible&&L&&QHk(this,L)}};
|
|
g.p.ed4=function(A){this.api.Kr("innertubeCommand",this.cR[A.id])};
|
|
g.p.iq=function(){Uf(this);var A=this.api.getCurrentTime();(A<this.clipStart||A>this.clipEnd)&&this.mu()};
|
|
g.p.A2=function(A){if(!A.defaultPrevented){var L=!1;switch(A.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);L=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);L=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);L=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);L=!0;break;case 38:this.api.J("enable_key_press_seek_logging")&&ec(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS");
|
|
this.api.seekBy(5,void 0,void 0,72);L=!0;break;case 40:this.api.J("enable_key_press_seek_logging")&&ec(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),L=!0}L&&A.preventDefault()}};
|
|
g.p.cF=function(A,L){this.updateVideoData(L,A==="newdata")};
|
|
g.p.lM4=function(){this.cF("newdata",this.api.getVideoData())};
|
|
g.p.updateVideoData=function(A,L){L=L===void 0?!1:L;var B=!!A&&A.gX();B&&(ZI(A)||OZe(this)?this.BR=!1:this.BR=A.allowLiveDvr,g.D1(this.api.getRootNode(),"ytp-enable-live-buffer",!(A==null||!ZI(A))),cZv(this,A));A3e(this,this.api.Kw());if(L){if(B){L=A.clipEnd;this.clipStart=A.clipStart;this.clipEnd=L;nQ(this);for(qY(this,this.Wn,this.Uv);this.U.length>0;)this.U.pop().dispose();this.heatMarkersDecorations=[];this.zV={};var f;(f=this.W)==null||f.reset();aD(this);g.D1(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
|
|
Of(this))}else this.mu();this.HI()}if(A){var K;f=((K=this.Jw)==null?void 0:K.type)==="clips";if(K=!A.isLivePlayback){K=this.api.getVideoData();L=g.Yc(K);B=sHk(K);var V;K=L!=null||B!=null&&B.length>0||((V=K.jb)==null?void 0:V.length)>0}if(K&&!f){V=this.api.getVideoData();f=g.Yc(V);K=!1;if(f==null?0:f.markersMap){K=this.api.getVideoData();var J;K.Tg=((J=f.visibleOnLoad)==null?void 0:J.key)||K.Tg;J=g.m(f.markersMap);for(f=J.next();!f.done;f=J.next())f=f.value,f.key&&f.value&&(this.zV[f.key]=f.value,
|
|
f.value.onChapterRepeat&&(K.Jc=f.value.onChapterRepeat));K.Tg!=null&&QHk(this,K.Tg);K=!0}var R;if(((R=V.jb)==null?void 0:R.length)>0){R=g.Iq.getState().entities;J=g.m(V.jb);for(f=J.next();!f.done;f=J.next()){f=f.value;B=void 0;L=(B=nz(R,"macroMarkersListEntity",f))==null?void 0:B.markersList;var Z=B=void 0;if(((B=L)==null?void 0:B.markerType)==="MARKER_TYPE_TIMESTAMPS"||((Z=L)==null?void 0:Z.markerType)==="MARKER_TYPE_HEATMAP")this.sx[f]=L}K=this.vO()||K}!K&&(R=sHk(V))&&(hxD(this,R),V.k6=this.N,HZk(this));
|
|
Mh0(this,null);A.u4&&this.U.length===0&&(A=A.u4,R=A.key,A.isVisible&&R&&QHk(this,R))}else jH1(this),GjS(this)}Uf(this)};
|
|
g.p.wr=function(A){this.G&&!g.x(A.state,32)&&this.api.getPresentingPlayerType()!==3&&this.G.cancel();var L;((L=this.W)==null?0:L.isEnabled)&&g.x(A.state,8)&&this.api.pauseVideo();A=this.api.getPresentingPlayerType()===2||!this.api.Kw()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.D1(this.b2,"ytp-hide-scrubber-button",A)};
|
|
g.p.MK=function(A){var L=!!this.Jw!==!!A,B=this.Jw;this.Jw=A;Mh0(this,B);(A==null?void 0:A.type)!=="clips"&&A||(A?(this.updateValue("clipstarticon",o_k()),this.updateValue("clipendicon",o_k()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",ezD()),this.updateValue("clipendicon",xsk()),this.updateValue("clipstarttitle","Guarda video completo"),this.updateValue("clipendtitle","Guarda video completo")),L&&(this.updateVideoData(this.api.getVideoData(),
|
|
!0),g.cJ(this)),nQ(this));qY(this,this.Wn,this.Uv)};
|
|
g.p.Q81=function(){this.api.publish("progressBarHoverStart")};
|
|
g.p.ajF=function(A,L,B){var f=g.dK(this.element),K=Yt(this).N,V=B?B.getAttribute("data-tooltip"):void 0,J=B?B.getAttribute("data-position"):void 0,R=B?B.getAttribute("data-offset-y"):void 0;R=R?Number(R):0;J&&(A=Xo(this.V,Number(B.getAttribute("data-position")),0)*K+g.dK(this.progressBar).x);this.mH.x=A-f.x;this.mH.y=L-f.y;A=Yt(this);B=xt(this,A);L=0;var Z;if((Z=this.api.getVideoData())==null?0:ZI(Z))(Z=this.api.getProgressState().seekableEnd)&&B>Z&&(B=Z,A.position=Xo(this.V,Z)*Yt(this).N),L=this.V.W;
|
|
OZe(this)&&(L=this.V.W);Z=V||g.hG(this.BR?B-this.V.N:B-L);L=A.position+this.ye;B-=this.api.pY();var N;if((N=this.W)==null||!N.isEnabled)if(this.api.rB()){if(this.N.length>1){N=PJ(this,this.mH.x,!0);if(!this.Jw)for(f=0;f<this.N.length;)g.D1(this.N[f].N,"ytp-exp-chapter-hover-effect",f===N),f++;if(this.U.length>1)for(f=0;f<this.N.length;f++)g.D1(this.U[f].element,"ytp-heatmap-hover",f===N)}if(this.X.length>0)for(N=this.mH.x,f=g.m(this.X),K=f.next();!K.done;K=f.next())K=K.value,J=MY(this,K.timeRangeStartMillis/
|
|
(this.V.N*1E3),Yt(this)),g.D1(K.element,"ytp-timed-marker-hover",J<=N&&J+6>=N);f=this.tooltip.scale;N=this.api.J("delhi_modern_web_player")?67:45;R=(isNaN(R)?0:R)-N*f;this.api.J("web_key_moments_markers")?this.Gt?(N=Yf1(this.X,B*1E3),N=N!=null?this.X[N].title:""):(N=BJ(this.N,B*1E3),N=this.N[N].title):(N=BJ(this.N,B*1E3),N=this.N[N].title);N||(R+=16*f);this.tooltip.scale===.6&&(g.SK(this.api.K())?(R=this.api.Pn().getPlayerSize().height-225,f=this.api.J("delhi_modern_web_player")?70:110,R=N?R+f:R+
|
|
f+16):R=N?110:126);f=BJ(this.N,B*1E3);this.JF=UzL(this,B,f)?f:UzL(this,B,f+1)?f+1:-1;g.D1(this.api.getRootNode(),"ytp-progress-bar-snap",this.JF!==-1&&this.N.length>1);f=!1;K=g.m(this.heatMarkersDecorations);for(J=K.next();!J.done;J=K.next()){J=J.value;var F=B*1E3;F>=J.visibleTimeRangeStartMillis&&F<=J.visibleTimeRangeEndMillis&&(N=J.label,Z=g.hG(xt(this,A)),f=!0)}this.O_!==f&&(this.O_=f,this.api.logVisibility(this.Po,this.O_));g.D1(this.api.getRootNode(),"ytp-progress-bar-decoration",f);f=160*this.tooltip.scale*
|
|
2;K=N.length*(this.D?8.55:5.7);K=K<=f?K:f;J=K<160*this.tooltip.scale;f=3;!J&&K/2>A.position&&(f=1);!J&&K/2>this.T-A.position&&(f=2);this.api.K().X&&(R-=10);this.U.length&&this.U[0].gX&&(R-=14*(this.D?2:1),this.Ex||(this.Ex=!0,this.api.logVisibility(this.qp,this.Ex)));var D;if(Of(this)&&(((D=this.W)==null?0:D.isEnabled)||this.Ox>0)){var I;R-=((I=this.W)==null?0:I.isEnabled)?(this.D?135:90)-this.Vj:this.Ox}D=void 0;Of(this)&&!this.api.J("web_player_hide_fine_scrubbing_edu")&&(D="Trascina verso l'alto per una ricerca pi\u00f9 precisa",
|
|
this.Ys||(this.Ys=!0,this.api.logVisibility(this.a8,this.Ys)));this.tooltip.KH(L,B,Z,!!V,R,N,f,D)}else this.tooltip.KH(L,B,Z,!!V,R);g.R1(this.api.getRootNode(),"ytp-progress-bar-hover");Xue(this)};
|
|
g.p.vbF=function(){this.HI();g.NH(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ex&&(this.Ex=!1,this.api.logVisibility(this.qp,this.Ex));this.Ys&&(this.Ys=!1,this.api.logVisibility(this.a8,this.Ys));this.api.J("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")};
|
|
g.p.eV4=function(A,L){var B=g.dK(this.element);this.nD=A-B.x;Of(this)&&this.W&&(this.W.wT?ir(this.W,this.api.getCurrentTime()):NcQ(this.W),this.W.show(),g.D1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.mC&&(this.mC.dispose(),this.mC=null);this.kR=L;this.Pk=this.api.getCurrentTime();this.N.length>1&&this.JF!==-1?this.api.seekTo(this.N[this.JF].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(xt(this,Yt(this)),!1,void 0,void 0,7);g.R1(this.element,"ytp-drag");(this.iW=
|
|
this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
|
|
g.p.K14=function(){if(Of(this)&&this.W){var A=(this.D?135:90)-this.Vj;this.Ox>=A*.5?(this.W.enable(),ir(this.W,this.api.getCurrentTime()),a$C(this,A)):aD(this)}if(g.x(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var L;if((L=this.W)==null?0:L.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.N.length>1&&this.JF!==-1)this.api.J("html5_enable_progress_bar_slide_seek_logging")&&ec(this,this.Pk,this.N[this.JF].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
|
|
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.N[this.JF].startTime/1E3,void 0,void 0,void 0,7);else{A=xt(this,Yt(this));this.api.J("html5_enable_progress_bar_slide_seek_logging")&&ec(this,this.Pk,A,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(A,void 0,void 0,void 0,7);L=g.m(this.heatMarkersDecorations);for(var B=L.next();!B.done;B=L.next())B=B.value,A*1E3>=B.visibleTimeRangeStartMillis&&A*1E3<=B.visibleTimeRangeEndMillis&&
|
|
this.api.logClick(this.Po)}g.NH(this.element,"ytp-drag");this.wT&&(this.ZM.src=this.wT);this.iW&&!g.x(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
|
|
g.p.GqF=function(A,L){var B=this,f=Yt(this),K=xt(this,f);this.api.Pn().T1||(f.position>this.nD+2?this.k6&&(this.ZM.src=this.k6):f.position<this.nD-2?this.TZ&&(this.ZM.src=this.TZ):this.wT&&(this.ZM.src=this.wT),setTimeout(function(){var J=g.dK(B.element).x||0;B.nD=A-J},150));
|
|
this.api.seekTo(K,!1,void 0,void 0,7);var V;Of(this)&&((V=this.W)==null?0:V.wT)&&(ir(this.W,K),this.W.isEnabled||(this.Ox=g.B4(this.kR-L-10,0,(this.D?135:90)-this.Vj),a$C(this,this.Ox)))};
|
|
g.p.HI=function(){this.tooltip.gr()};
|
|
g.p.uJ=function(){this.Jw||(this.updateValue("clipstarticon",Pl8()),this.updateValue("clipendicon",Pl8()),g.R1(this.element,"ytp-clip-hover"))};
|
|
g.p.x4=function(){this.Jw||(this.updateValue("clipstarticon",ezD()),this.updateValue("clipendicon",xsk()),g.NH(this.element,"ytp-clip-hover"))};
|
|
g.p.mu=function(){this.clipStart=0;this.clipEnd=Infinity;nQ(this);qY(this,this.Wn,this.Uv)};
|
|
g.p.YNn=function(A){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.visible){var B=L.getId();if(!this.Cr[B]){var f=g.TO("DIV");L.tooltip&&f.setAttribute("data-tooltip",L.tooltip);this.Cr[B]=L;this.N8[B]=f;g.Jz(f,L.style);Wh6(this,B);this.api.K().J("disable_ad_markers_on_content_progress_bar")||this.N[0].U.appendChild(f)}}else uM6(this,L)};
|
|
g.p.a0x=function(A){A=g.m(A);for(var L=A.next();!L.done;L=A.next())uM6(this,L.value)};
|
|
g.p.Wa=function(A){this.W&&(this.W.onExit(A!=null),aD(this))};
|
|
g.p.lI=function(A){this.W&&(this.W.play(A!=null),aD(this))};
|
|
g.p.gur=function(){A3e(this,this.api.Kw())};
|
|
g.p.l1=function(){A3e(this,!1);g.DE.prototype.l1.call(this)};g.G(AS,g.q);AS.prototype.isActive=function(){return!!this.S.getOption("remote","casting")};
|
|
AS.prototype.zL=function(){var A=!1;this.S.getOptions().includes("remote")&&(A=this.S.getOption("remote","receivers").length>1);this.xP(A&&this.S.Pn().getPlayerSize().width>=400);this.S.logVisibility(this.element,this.bC);var L=1;A&&this.isActive()&&(L=2);if(this.N!==L){this.N=L;A=this.S.J("delhi_modern_web_player_icons");switch(L){case 1:this.updateValue("icon",A?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
|
|
fill:"white"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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",
|
|
A?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
|
|
fill:"white"}}]}:g.vzL())}g.D1(this.element,"ytp-remote-button-active",this.isActive())}};
|
|
AS.prototype.W=function(){if(this.S.getOption("remote","quickCast"))this.S.setOption("remote","quickCast",!0);else{var A=this.Wz,L=this.element;if(A.U7())A.YP();else{A.initialize();a:{var B=g.m(A.NU.items);for(var f=B.next();!f.done;f=B.next())if(f=f.value,f.priority===1){B=f;break a}B=null}B&&(B.open(),A.fD(L));A.fD(L)}}this.S.logClick(this.element)};g.G(Lb,g.q);Lb.prototype.N=function(A){var L=this.S.K(),B=400;L.T?B=300:L.X&&(B=200);A=this.W&&A.width>=B;this.xP(A);this.S.logVisibility(this.element,A)};
|
|
Lb.prototype.V=function(){if(this.Wz.bC)this.Wz.YP();else{var A=g.y2(this.S.SI());A&&!A.loaded&&(A.PR("tracklist",{includeAsr:!0}).length||A.load());this.S.logClick(this.element);this.Wz.fD(this.element)}};
|
|
Lb.prototype.updateBadge=function(){var A=this.S.isHdr(),L=this.S.getPresentingPlayerType(),B=L!==2&&L!==3,f=g.UU(this.S),K=B&&!!g.Yn(this.S.SI());L=K&&f.displayMode===1;f=K&&f.displayMode===2;B=(K=L||f)||!B?null:this.S.getPlaybackQuality();g.D1(this.element,"ytp-hdr-quality-badge",A);g.D1(this.element,"ytp-hd-quality-badge",!A&&(B==="hd1080"||B==="hd1440"));g.D1(this.element,"ytp-4k-quality-badge",!A&&B==="hd2160");g.D1(this.element,"ytp-5k-quality-badge",!A&&B==="hd2880");g.D1(this.element,"ytp-8k-quality-badge",
|
|
!A&&B==="highres");g.D1(this.element,"ytp-3d-badge-grey",!A&&K&&L);g.D1(this.element,"ytp-3d-badge",!A&&K&&f)};g.G(o7,g.He);g.p=o7.prototype;g.p.zL=function(){var A=this.S.getAvailableAudioTracks();if(A.length>1){if(this.S.K().experiments.Qf().N.Iv(DC9)){var L=A.filter(function(K){return K.isAutoDubbed()}),B=A.filter(function(K){return!K.isAutoDubbed()}).map(this.bu);
|
|
L.length>0&&(this.S.Hn("ad_grp",{ad_c:L.length,t_c:A.length}),B.push(new sce),B.push.apply(B,g.x7(L.map(this.bu))));h_L(this,B)}else this.eO(g.mn(A,this.bu));this.tracks=g.jZ(A,this.bu,this);this.countLabel.setContent(A.length?" ("+A.length+")":"");this.publish("size-change");A=this.bu(this.S.getAudioTrack());this.GH(A);if(this.S.J("html5_enable_new_audio_settings_menu")){var f;(f=this.N)!=null&&f.setContent(A.toString())}this.enable(!0)}else this.S.J("html5_enable_new_audio_settings_menu")&&(L=this.N)!=
|
|
null&&L.setContent(""),this.enable(!1)};
|
|
g.p.A$=function(A){g.He.prototype.A$.call(this,A);A=this.tracks[A];this.S.setAudioTrack(A);this.Wz.h2();this.S.K().experiments.Qf().N.Iv(DC9)&&this.S.Hn("ad_sel",{lang:A.ri.id})};
|
|
g.p.bu=function(A){return A.toString()};
|
|
g.p.Ru=function(A){this.S.J("html5_enable_new_audio_settings_menu")?this.N&&(A?this.N.ov(this):this.N.Z1(this)):g.He.prototype.Ru.call(this,A)};
|
|
g.p.onClick=function(){this.S.logClick(this.element)};g.G(o4v,g.of);g.p=o4v.prototype;g.p.VF=function(){this.S.VF()};
|
|
g.p.open=function(){this.rf.uM()>0&&g.yp(this.Wz,this.rf)};
|
|
g.p.f8=function(){this.rf.uM()>0&&this.S.getPresentingPlayerType()!==2&&this.S.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};
|
|
g.p.A2=function(A){A.defaultPrevented||(this.open(),A.preventDefault())};
|
|
g.p.ov=function(A){this.rf.ov(A)};
|
|
g.p.Z1=function(A){this.rf.Z1(A)};g.G(Bd,Dq);
|
|
Bd.prototype.f8=function(){var A=this.S.getPresentingPlayerType();if(A!==2&&A!==3&&g.vh(this.S))this.N||(this.Wz.ov(this),this.N=!0,this.W.push(this.Y(this.S,"videodatachange",this.f8)),this.W.push(this.Y(this.S,"videoplayerreset",this.f8)),this.W.push(this.Y(this.S,"onPlaylistUpdate",this.f8)),this.W.push(this.Y(this.S,"autonavchange",this.V)),A=this.S.getVideoData(),this.V(A.autonavState),this.S.logVisibility(this.element,this.N));else if(this.N){this.Wz.Z1(this);this.N=!1;A=g.m(this.W);for(var L=
|
|
A.next();!L.done;L=A.next())this.J$(L.value)}};
|
|
Bd.prototype.V=function(A){dC(this,A!==1)};
|
|
Bd.prototype.onSelect=function(A){this.S.tW(A?2:1);this.N&&(this.S.logVisibility(this.element,this.N),this.S.logClick(this.element))};
|
|
Bd.prototype.l1=function(){this.N&&this.Wz.Z1(this);Dq.prototype.l1.call(this)};g.G(B17,g.of);B17.prototype.onClick=function(A){A.preventDefault();var L,B;(L=g.Hh(this.S))==null||(B=L.gB())==null||B.YP();var f,K;(f=g.Hh(this.S))==null||(K=f.oH())==null||K.fD(A.target)};g.G(f6k,g.He);g.p=f6k.prototype;
|
|
g.p.f8=function(){var A=this.S.getPresentingPlayerType();if(A!==2&&A!==3){this.Wn=this.S.KO();var L=this.S.getAvailableQualityLevels();if(this.N){this.W={};A=g.jg(this.S,"getAvailableQualityData",[]);A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=B.value,this.W[B.qualityLabel]=B;A=Object.keys(this.W);L[L.length-1]==="auto"&&A.push("auto");this.qp=new Set(L)}else if(this.V){B=g.jg(this.S,"getAvailableQualityData",[]);A=[];B=g.m(B);for(var f=B.next();!f.done;f=B.next())f=f.value,this.T[f.quality]=
|
|
f,f.quality&&A.push(f.quality);L[L.length-1]==="auto"&&A.push("auto")}else A=L;g.dyC(this.S)&&this.S.F$()&&A.unshift("missing-qualities");L=this.S.app.e4();B=L.getVideoData();if(!B.W||!B.W.video||B.W.video.qualityOrdinal<1080||B.wJ)L=!1;else{f=/^qsa/.test(B.clientPlaybackNonce);var K="r";B.W.id.indexOf(";")>=0&&(f=/^[a-p]/.test(B.clientPlaybackNonce),K="x");f?(L.Hn("iqss",{trigger:K},!0),L=!0):L=!1}L&&A.unshift("inline-survey");this.eO(A);L=this.S.getVideoData().cotn?!0:!1;B=this.G.Dr();B=!g.SK(this.S.K())||
|
|
!(L===void 0?0:L)||!(B===void 0||B);L=this.rf;B=B===void 0?!1:B;L.uB&&g.D1(L.m4("ytp-panel-footer"),"ytp-panel-hide-footer",B===void 0?!1:B);if(A.length){this.RL();this.enable(!0);return}}this.enable(!1)};
|
|
g.p.RL=function(){if(this.N){var A=this.S.getPreferredQuality();this.qp.has(A)&&(this.U=this.S.getPlaybackQuality(),this.X=this.S.getPlaybackQualityLabel(),A==="auto"?(this.GH(A),this.setContent(this.I8(A))):this.GH(this.X))}else A=this.S.getPreferredQuality(),this.options[A]&&(this.U=this.S.getPlaybackQuality(),this.GH(A),A==="auto"&&this.setContent(this.I8(A)))};
|
|
g.p.A$=function(A){if(A!=="missing-qualities"){g.He.prototype.A$.call(this,A);var L=this.N?this.W[A]:this.T[A];var B=L==null?void 0:L.quality,f=L==null?void 0:L.formatId,K=L==null?void 0:L.paygatedQualityDetails;L=K==null?void 0:K.endpoint;if(K){var V;K=(V=this.options[A])==null?void 0:V.element;this.S.logClick(K)}if(this.N){var J,R;if((J=g.y(L,g.oWW))==null?0:(R=J.popup)==null?0:R.notificationActionRenderer)this.S.Kr("innertubeCommand",L);else if(L){this.S.Kr("innertubeCommand",L);return}f?this.S.setPlaybackQuality(B,
|
|
f):this.S.setPlaybackQuality(B)}else{if(this.V){var Z,N;if((Z=g.y(L,g.oWW))==null?0:(N=Z.popup)==null?0:N.notificationActionRenderer)this.S.Kr("innertubeCommand",L);else if(L){this.S.Kr("innertubeCommand",L);return}}this.S.setPlaybackQuality(A)}this.Wz.YP();this.f8()}};
|
|
g.p.open=function(){for(var A=g.m(Object.values(this.options)),L=A.next();!L.done;L=A.next()){L=L.value;var B=void 0;this.S.hasVe((B=L)==null?void 0:B.element)&&(B=void 0,this.S.logVisibility((B=L)==null?void 0:B.element,!0))}g.He.prototype.open.call(this);this.S.logClick(this.element)};
|
|
g.p.Em=function(A,L,B){var f=this;if(A==="missing-qualities")return new g.of({Z:"a",Rr:["ytp-menuitem"],C:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.S.K().yj,tabindex:"0",role:"menuitemradio"},B:[{Z:"div",Rr:["ytp-menuitem-label"],Ir:"{{label}}"}]},L,this.I8(A));if(A!=="inline-survey"){var K,V=(K=this.N?this.W[A]:this.T[A])==null?void 0:K.paygatedQualityDetails;K=V==null?void 0:V.veType;V=V==null?void 0:V.trackingParams;L=g.He.prototype.Em.call(this,A,L,B);V?(this.S.createServerVe(L.element,
|
|
this,!0),this.S.setTrackingParams(L.element,V)):K&&this.S.createClientVe(L.element,this,K,!0);return L}A=[{Z:"span",Ir:"Va bene?"}];B=g.m([!0,!1]);V=B.next();for(K={};!V.done;K={nE:void 0},V=B.next())K.nE=V.value,V=new g.q({Z:"span",j:"ytp-menuitem-inline-survey-response",B:[K.nE?LuS():zz1()],C:{tabindex:"0",role:"button"}}),V.listen("click",function(J){return function(){var R=f.S.app.e4();R.Hn("iqsr",{tu:J.nE});R.getVideoData().wJ=!0;f.Wz.YP();f.f8()}}(K)),A.push(V);
|
|
return new g.of({Z:"div",j:"ytp-menuitem",C:{"aria-disabled":"true"},B:[{Z:"div",Rr:["ytp-menuitem-label"],B:A}]},L)};
|
|
g.p.I8=function(A,L){L=L===void 0?!1:L;if(A==="missing-qualities")return{Z:"div",Ir:"Mancano delle opzioni?"};if(A==="inline-survey")return"";var B=this.V||this.N?[J31(this,A,L,!1)]:[Vp0(this,A)];var f=this.S.getPreferredQuality();L||f!=="auto"||A!=="auto"||(B.push(" "),this.N?B.push(J31(this,this.X,L,!0,["ytp-menu-label-secondary"])):this.V?B.push(J31(this,this.U,L,!0,["ytp-menu-label-secondary"])):B.push(Vp0(this,this.U,["ytp-menu-label-secondary"])));return{Z:"div",B:B}};g.G(fb,tP);fb.prototype.D=function(){tP.prototype.D.call(this);this.Wn&&S$k(this)};
|
|
fb.prototype.wT=function(){this.qp()};
|
|
fb.prototype.ZM=function(){this.S.setPlaybackRate(this.N,!0)};
|
|
fb.prototype.X=function(A){tP.prototype.X.call(this,A);this.qp();S$k(this);A.preventDefault()};g.G(Kb,g.q);g.p=Kb.prototype;g.p.init=function(){this.Fk(this.N);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.V)};
|
|
g.p.Wi=function(A){if(!A.defaultPrevented){switch(A.keyCode){case 37:case 40:var L=-this.X;break;case 39:case 38:L=this.X;break;default:return}this.Fk(this.N+L);A.preventDefault()}};
|
|
g.p.NR=function(A){var L=this.N;L+=(A.deltaX||-A.deltaY)<0?-this.G:this.G;this.Fk(L);A.preventDefault()};
|
|
g.p.yU=function(A){A=(A-g.dK(this.U).x)/this.Wn*this.range+this.W;this.Fk(A)};
|
|
g.p.Fk=function(A,L){L=L===void 0?"":L;A=g.B4(A,this.W,this.V);L===""&&(L=A.toString());this.updateValue("valuenow",A);this.updateValue("valuetext",L);this.qp.style.left=(A-this.W)/this.range*(this.Wn-this.wT)+"px";this.N=A};
|
|
g.p.focus=function(){this.JF.focus()};g.G(VA,Kb);VA.prototype.Vj=function(){this.S.setPlaybackRate(this.N,!0)};
|
|
VA.prototype.Fk=function(A){Kb.prototype.Fk.call(this,A,ZY0(this,A).toString());this.D&&(Rn1(this),this.ZM())};
|
|
VA.prototype.updateValues=function(){var A=this.S.getPlaybackRate();ZY0(this,this.N)!==A&&(this.Fk(A),Rn1(this))};g.G(N18,g.DE);N18.prototype.focus=function(){this.N.focus()};g.G(FGL,dA);g.G(deL,g.He);g.p=deL.prototype;g.p.onVideoDataChange=function(A){A==="dataloaded"&&(A=this.S.getAvailablePlaybackRates(),g.wo(this.yI,A)||(this.yI=A,this.WY.dispose(),this.WY=new fb(this.S)),this.zL())};
|
|
g.p.I8=function(A){return A==="1"?"Normale":A.toLocaleString()};
|
|
g.p.zL=function(){var A,L=(A=this.S.getVideoData())==null?void 0:A.aA();A=this.S.getPresentingPlayerType(L);this.enable(A!==2&&A!==3);p1C(this)};
|
|
g.p.eO=function(A){g.He.prototype.eO.call(this,A);this.WY&&this.WY.W.focus()};
|
|
g.p.Ru=function(A){g.He.prototype.Ru.call(this,A);A?(this.U=this.Y(this.S,"onPlaybackRateChange",this.onPlaybackRateChange),p1C(this),I66(this,this.S.getPlaybackRate()),this.S.J("enable_web_premium_varispeed_upsell")&&(this.S.logVisibility(this.element,!0),this.lY&&this.S.logVisibility(this.ME.element,!0))):(this.J$(this.U),this.U=null)};
|
|
g.p.onPlaybackRateChange=function(A){var L=this.S.getPlaybackRate();!this.W&&this.yI.includes(L)||w1v(this,L);I66(this,A)};
|
|
g.p.Em=function(A,L,B){return A===this.N&&y3y(this.S)?g.He.prototype.Em.call(this,A,L,B,{Z:"div",j:"ytp-speed-slider-menu-footer",B:[this.WY]}):A===this.lY&&De8(this.S,this.BE)?this.d0(A,L,B):g.He.prototype.Em.call(this,A,L,B)};
|
|
g.p.d0=function(A,L,B){var f=this;L=new g.of({Z:"div",Rr:["ytp-menuitem"],C:{tabindex:"0",role:"menuitemradio","aria-checked":B?"true":"false"},B:[{Z:"div",Rr:["ytp-menuitem-label"],B:[{Z:"div",Rr:["ytp-menuitem-container-with-badge"],B:[{Z:"div",Ir:"{{label}}"},this.ME]}]}]},L,this.I8(A));L.listen("click",function(){f.wk(A)});
|
|
return L};
|
|
g.p.A$=function(A){g.He.prototype.A$.call(this,A);A===this.lY?(this.S.logClick(this.ME.element),this.S.Kr("innertubeCommand",this.BE)):A===this.N?this.S.setPlaybackRate(this.V,!0):this.S.setPlaybackRate(Number(A),!0);(!y3y(this.S)||A!==this.N&&A!==this.lY)&&this.Wz.h2()};
|
|
g.p.wk=function(A){var L=A===this.N;this.W=!1;L&&JS(this.S)&&!y3y(this.S)?(A=new FGL(this.S),g.yp(this.Wz,A)):g.He.prototype.wk.call(this,A)};g.G(g4e,g.Im);g.p=g4e.prototype;g.p.zL=function(){var A,L=(A=this.S.getVideoData())==null?void 0:A.aA();A=this.S.getPresentingPlayerType(L);if(A===2||A===3)g.wA(this);else{g.wA(this);A=this.yI.map(jYS);this.lY&&A.push(this.lY);this.GP=jYS(this.S.getPlaybackRate());for(L=0;L<A.length;L++){var B=A[L];B=G2S(this,B,-L,B===this.GP);this.ov(B)}this.S.J("enable_web_premium_varispeed_upsell")&&(this.S.logVisibility(this.element,!0),this.lY&&this.S.logVisibility(this.ME.element,!0))}};
|
|
g.p.I8=function(A){return A==="1"?"Normale":A.toLocaleString()};
|
|
g.p.A$=function(A){this.GP!==A&&(this.GP=A,A===this.lY?(this.S.logClick(this.ME.element),this.S.Kr("innertubeCommand",this.BE)):(this.S.setPlaybackRate(Number(A),!0),this.Wz.h2()))};
|
|
g.p.wk=function(A){this.A$(A)};
|
|
g.p.d0=function(A,L,B){var f=this;L=new g.of({Z:"div",Rr:["ytp-menuitem"],C:{tabindex:"0",role:"menuitemradio","aria-checked":B?"true":"false"},B:[{Z:"div",Rr:["ytp-menuitem-label"],B:[{Z:"div",Rr:["ytp-menuitem-container-with-badge"],B:[{Z:"div",Ir:"{{label}}"},this.ME]}]}]},L,this.I8(A));L.listen("click",function(){f.wk(A)});
|
|
return L};
|
|
g.p.l1=function(){g.Im.prototype.l1.call(this)};g.G(r36,dA);r36.prototype.onPlaybackRateChange=function(A){kt(this.WY,A)};g.G(R7,g.He);R7.prototype.N=function(){var A,L=(A=this.S.getVideoData())==null?void 0:A.aA();A=this.S.getPresentingPlayerType(L);this.enable(A!==2&&A!==3)};
|
|
R7.prototype.W=function(A){this.setContent(A===1?"Normale":A.toString())};
|
|
R7.prototype.open=function(){var A=this.S.getVideoData();this.S.J("web_enable_varispeed_panel")&&A&&A.mM<=4?g.yp(this.Wz,new r36(this.S)):g.yp(this.Wz,new g4e(this.S,this.Wz))};g.G(HYL,g.He);g.p=HYL.prototype;g.p.GH=function(A){g.He.prototype.GH.call(this,A)};
|
|
g.p.Sh=function(A){return A.option.toString()};
|
|
g.p.getOption=function(A){return this.settings[A]};
|
|
g.p.I8=function(A){return this.getOption(A).text||""};
|
|
g.p.A$=function(A){g.He.prototype.A$.call(this,A);this.publish("settingChange",this.setting,this.settings[A].option)};g.G(ZC,g.Im);ZC.prototype.D2=function(A){for(var L=g.m(Object.keys(A)),B=L.next();!B.done;B=L.next()){var f=B.value;if(B=this.Lu[f]){var K=A[f].toString();f=!!A[f+"Override"];B.options[K]&&(B.GH(K),B.W.element.setAttribute("aria-checked",String(!f)),B.N.element.setAttribute("aria-checked",String(f)))}}};
|
|
ZC.prototype.YX=function(A,L){this.publish("settingChange",A,L)};g.G(Nd,g.He);Nd.prototype.N=function(A){return A.languageCode};
|
|
Nd.prototype.I8=function(A){return this.languages[A].languageName||""};
|
|
Nd.prototype.A$=function(A){this.publish("select",A);this.S.logClick(this.element);g.js(this.Wz)};g.G(tp8,g.He);g.p=tp8.prototype;g.p.tS=function(A){return g.mi(A)?"__off__":A.displayName};
|
|
g.p.I8=function(A){return A==="__off__"?"Disattivati":A==="__translate__"?"Traduzione automatica":A==="__contribute__"?"Aggiungi sottotitoli":A==="__correction__"?"Suggerisci correzioni per i sottotitoli codificati":(A==="__off__"?{}:this.tracks[A]).displayName};
|
|
g.p.A$=function(A){if(A==="__translate__")this.N.open();else if(A==="__contribute__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var L=g.sO(this.S.K(),this.S.getVideoData());g.PH(L)}else if(A==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var B=k2D(this);FA(this,B);g.He.prototype.A$.call(this,this.tS(B));var f,K;B=(L=this.S.getVideoData().getPlayerResponse())==null?void 0:(f=L.captions)==null?void 0:(K=f.playerCaptionsTracklistRenderer)==
|
|
null?void 0:K.openTranscriptCommand;this.S.Kr("innertubeCommand",B);this.Wz.h2();this.W&&this.S.logClick(this.W)}else{if(A==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();L=k2D(this);FA(this,L);g.He.prototype.A$.call(this,this.tS(L));var V,J;L=(B=this.S.getVideoData().getPlayerResponse())==null?void 0:(V=B.captions)==null?void 0:(J=V.playerCaptionsTracklistRenderer)==null?void 0:J.openTranscriptCommand;this.S.Kr("innertubeCommand",L)}else this.S.logClick(this.element),
|
|
FA(this,A==="__off__"?{}:this.tracks[A]),g.He.prototype.A$.call(this,A);this.Wz.h2()}};
|
|
g.p.zL=function(){var A=this.S.getOptions();A=A&&A.indexOf("captions")!==-1;var L=this.S.getVideoData(),B=L&&L.M$,f,K=!((f=this.S.getVideoData())==null||!g.Jj(f));f={};if(A||B){var V;if(A){var J=this.S.getOption("captions","track");f=this.S.getOption("captions","tracklist",{includeAsr:!0});var R=K?[]:this.S.getOption("captions","translationLanguages");this.tracks=g.jZ(f,this.tS,this);K=g.mn(f,this.tS);var Z,N;k2D(this)&&((V=L.getPlayerResponse())==null?0:(Z=V.captions)==null?0:(N=Z.playerCaptionsTracklistRenderer)==
|
|
null?0:N.openTranscriptCommand)&&K.push("__correction__");if(R.length&&!g.mi(J)){if((V=J.translationLanguage)&&V.languageName){var F=V.languageName;V=R.findIndex(function(D){return D.languageName===F});
|
|
BIe(R,V)}hnE(this.N,R);K.push("__translate__")}V=this.tS(J)}else this.tracks={},K=[],V="__off__";K.unshift("__off__");this.tracks.__off__={};B&&K.unshift("__contribute__");this.tracks[V]||(this.tracks[V]=J,K.push(V));this.eO(K);this.GH(V);J&&J.translationLanguage?this.N.GH(this.N.N(J.translationLanguage)):HRy(this.N);A&&this.V.D2(this.S.getSubtitlesUserSettings());this.countLabel.setContent(f&&f.length?" ("+f.length+")":"");this.publish("size-change");this.S.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
|
|
g.p.Hi=function(A){var L=this.S.getOption("captions","track");L=g.is(L);L.translationLanguage=this.N.languages[A];FA(this,L)};
|
|
g.p.YX=function(A,L){if(A==="reset")this.S.resetSubtitlesUserSettings();else{var B={};B[A]=L;this.S.updateSubtitlesUserSettings(B)}bYy(this,!0);this.U.start();this.V.D2(this.S.getSubtitlesUserSettings())};
|
|
g.p.i84=function(A){A||g.o1(this.U)};
|
|
g.p.l1=function(){g.o1(this.U);g.He.prototype.l1.call(this)};
|
|
g.p.open=function(){g.He.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.S.createClientVe(this.W,this,167341),this.S.logVisibility(this.W,!0))};g.G(T16,g.pl);g.p=T16.prototype;
|
|
g.p.initialize=function(){if(!this.isInitialized){var A=this.S.K();this.isInitialized=!0;try{this.Dt=new f6k(this.S,this)}catch(B){g.CE(Error("QualityMenuItem creation failed"))}g.W(this,this.Dt);var L=new tp8(this.S,this);g.W(this,L);A.enableSpeedOptions&&(A.J("web_speed_menu_item_refactor")?(L=new R7(this.S,this),g.W(this,L)):(L=new deL(this.S,this),g.W(this,L)));(g.MM(A)||A.T)&&(A.W||A.Ex)&&(L=new B17(this.S,this),g.W(this,L));A.LD&&!A.J("web_player_move_autonav_toggle")&&(L=new Bd(this.S,this),
|
|
g.W(this,L));A.J("html5_enable_new_audio_settings_menu")?(this.Wb=new o4v(this.S,this),g.W(this,this.Wb)):(A=new o7(this.S,this),g.W(this,A));this.S.publish("settingsMenuInitialized");LGS(this.settingsButton,this.NU.uM())}};
|
|
g.p.ov=function(A){this.initialize();this.NU.ov(A);LGS(this.settingsButton,this.NU.uM())};
|
|
g.p.Z1=function(A){this.TL()||(this.bC&&this.NU.uM()<=1&&this.hide(),this.NU.Z1(A),LGS(this.settingsButton,this.NU.uM()))};
|
|
g.p.fD=function(A){this.initialize();this.NU.uM()>0&&g.pl.prototype.fD.call(this,A)};
|
|
g.p.YP=function(){this.zE?this.zE=!1:g.pl.prototype.YP.call(this)};
|
|
g.p.show=function(){g.pl.prototype.show.call(this);g.R1(this.S.getRootNode(),"ytp-settings-shown")};
|
|
g.p.hide=function(){g.pl.prototype.hide.call(this);g.NH(this.S.getRootNode(),"ytp-settings-shown")};
|
|
g.p.wI=function(A){this.S.logVisibility(this.element,A);this.S.publish("settingsMenuVisibilityChanged",A)};
|
|
g.p.VF=function(){this.S.VF()};g.G(QYQ,g.q);g.p=QYQ.prototype;g.p.onClick=function(){if(DC(this)&&(this.S.toggleSubtitles(),this.S.logClick(this.element),!this.isEnabled())){var A=!1,L=g.v9().Iv(65);g.SK(this.S.K())&&L!=null&&(A=!L);A&&this.S.K().J("web_player_nitrate_promo_tooltip")&&this.S.publish("showpromotooltip",this.element)}};
|
|
g.p.vJr=function(A){var L,B;(L=g.Hh(this.S))==null||(B=L.gB())==null||B.fD(A)};
|
|
g.p.isEnabled=function(){var A=this.S.getOption("captions","track");return!(!A||!A.displayName)};
|
|
g.p.zL=function(){var A=DC(this),L=300;this.S.K().X&&(L=480);this.S.J("delhi_modern_web_player_icons")&&this.updateValue("icon",meE(this));if(this.S.K().T){this.updateValue("title",g.iz(this.S,"Sottotitoli/sottotitoli codificati","c"));this.update({"tooltip-title":g.iz(this.S,"Sottotitoli/sottotitoli codificati","c")});this.update({"data-title-no-tooltip":"Sottotitoli/sottotitoli codificati"});var B=A}else{if(A)(B=this.m4("ytp-subtitles-button-icon"))==null||B.setAttribute("fill-opacity","1"),this.S.K().J("player_tooltip_data_title_killswitch")?
|
|
this.updateValue("title",g.iz(this.S,"Sottotitoli/sottotitoli codificati","c")):this.update({"tooltip-title":g.iz(this.S,"Sottotitoli/sottotitoli codificati","c")}),this.update({"data-title-no-tooltip":"Sottotitoli/sottotitoli codificati"});else{if(this.S.J("delhi_modern_web_player_icons")){var f;(f=this.m4("ytp-subtitles-button-icon"))==null||f.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var K;(K=this.m4("ytp-subtitles-button-icon"))==null||K.setAttribute("fill-opacity",
|
|
"0.3")}this.updateValue("title","Sottotitoli/sottotitoli codificati non disponibili");this.update({"tooltip-title":"Sottotitoli/sottotitoli codificati non disponibili"});this.update({"data-title-no-tooltip":"Sottotitoli/sottotitoli codificati non disponibili"})}B=this.S.J("player_disable_caption_button_if_captions_not_available")&&this.S.J("delhi_modern_web_player")?A:!0}this.tooltip.qq();B=B&&this.S.Pn().getPlayerSize().width>=L;this.xP(B);this.S.logVisibility(this.element,B);A?this.updateValue("pressed",
|
|
this.isEnabled()):this.updateValue("pressed",!1)};
|
|
g.p.Hy=function(A){g.q.prototype.Hy.call(this,A)};g.G(g.d0,g.q);g.p=g.d0.prototype;g.p.canShowCountdown=function(){return!w0(this)&&!I7(this)};
|
|
g.p.iq=function(){var A=this.api.Pn().getPlayerSize().width,L=this.Wn;this.api.K().X&&(L=400);L=A>=L&&(!I7(this)||!g.x(this.api.getPlayerStateObject(),64));this.xP(L);g.D1(this.element,"ytp-time-display-allow-autohide",L&&A<400);A=this.api.getProgressState();if(L){var B=this.api.getPresentingPlayerType();L=this.api.getCurrentTime(B,!1);this.W&&(L-=A.airingStart);w0(this)&&(L-=this.Jw.startTimeMs/1E3);this.canShowCountdown()&&this.V&&(L-=this.api.getDuration(B,!1));var f=g.hG(L);this.U!==f&&(this.updateValue("currenttime",
|
|
f),this.U=f);B=w0(this)?(this.Jw.endTimeMs-this.Jw.startTimeMs)/1E3:this.api.getDuration(B,!1);f=g.hG(B);this.D!==f&&(this.updateValue("duration",f),this.D=f);L=g.B$("$PLAY_PROGRESS di $DURATION",{PLAY_PROGRESS:g.hG(L,!0),DURATION:g.hG(B,!0)});this.updateValue("timeDisplayAriaLabel",L)}CvL(this,A.isAtLiveHead);iY6(this,this.api.getLoopRange())};
|
|
g.p.onLoopRangeChange=function(A){var L=this.Jw!==A;this.Jw=A;L&&(this.iq(),$eE(this))};
|
|
g.p.PQT=function(){this.api.setLoopRange(null)};
|
|
g.p.D8s=function(){this.V=!this.V;this.iq()};
|
|
g.p.onVideoDataChange=function(A,L,B){this.updateVideoData((this.api.K().J("enable_topsoil_wta_for_halftime")||this.api.K().J("enable_topsoil_wta_for_halftime_live_infra"))&&B===2?this.api.getVideoData(1):L);this.iq();$eE(this)};
|
|
g.p.updateVideoData=function(A){this.ek=A.isLivePlayback&&!A.I7;this.W=ZI(A);this.isPremiere=A.isPremiere;var L,B,f;this.liveIndicatorText=(A=(L=A.getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.liveIndicatorText)?J2(A):null;g.D1(this.element,"ytp-live",I7(this));this.api.J("delhi_modern_web_player")&&this.m4("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())};
|
|
g.p.onClick=function(A){A.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
|
|
g.p.l1=function(){this.N&&this.N();g.q.prototype.l1.call(this)};g.G(E48,g.q);g.p=E48.prototype;g.p.Vi=function(){c3k(this)};
|
|
g.p.y$j=function(A){X1C(this,A);this.G&&c3k(this)};
|
|
g.p.lk=function(A){if(!A.defaultPrevented){var L=A.keyCode,B=null;L===37?B=this.volume-5:L===39?B=this.volume+5:L===36?B=0:L===35&&(B=100);B!==null&&(B=g.B4(B,0,100),B===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(B)),A.preventDefault())}};
|
|
g.p.qR=function(A){var L=A.deltaX||-A.deltaY;A.deltaMode?this.api.setVolume(this.volume+(L<0?-10:10)):this.api.setVolume(this.volume+g.B4(L/10,-10,10));A.preventDefault();var B,f;((B=this.api.K())==null?0:(f=B.getWebPlayerContextConfig())==null?0:f.enableFullscreenComponentsFeature)&&A.stopPropagation()};
|
|
g.p.nJF=function(){pb(this,this.N,!0,this.W,this.api.ZF());this.Wn=this.volume;this.api.isMuted()&&this.api.unMute()};
|
|
g.p.IK=function(A){var L=this.V?78:52,B=this.V?18:12;A-=g.dK(this.X).x;B=g.B4((A-B/2)/(L-B),0,1);this.G&&(B=g.B4(A/L,0,1));L=B;L=this.api.J("web_player_non_linear_volume_controls")?L<=.25?L/.25*.1:.1+(L-.25)/.75*.9:L;this.api.setVolume(L*100)};
|
|
g.p.rzx=function(){pb(this,this.N,!1,this.W,this.api.ZF());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Wn))};
|
|
g.p.onVolumeChange=function(A){OYe(this,A.volume,A.muted)};
|
|
g.p.u3=function(){pb(this,this.N,this.isDragging,this.W,this.api.ZF())};
|
|
g.p.l1=function(){g.q.prototype.l1.call(this);g.NH(this.T,"ytp-volume-slider-active")};g.G(yA,g.q);
|
|
yA.prototype.onVideoDataChange=function(){var A=this.api.K();this.Bz();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).OE;this.xP(this.visible);this.api.logVisibility(this.element,this.visible&&this.yj);if(this.visible){var L=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",L)}A.V&&(this.N&&(this.J$(this.N),this.N=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.R1(this.element,"no-link"));
|
|
L=this.api.K();A=this.api.getVideoData();var B="";L.V||(L=g.BN(L),L.indexOf("www.")===0&&(L=L.substring(4)),B=g.Nm(A)?"Guarda su YouTube Music":L==="youtube.com"?"Guarda su YouTube":g.B$("Guarda su $WEBSITE",{WEBSITE:L}));this.api.J("player_tooltip_data_title_killswitch")?this.updateValue("title",B):this.updateValue("tooltip-title",B)};
|
|
yA.prototype.onClick=function(A){this.api.J("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var L=this.api.K(),B=this.api.getVideoUrl(!g.bV(A),!1,!0,!0);if(g.MM(L)){var f={};g.MM(L)&&g.jg(this.api,"addEmbedsConversionTrackingParams",[f]);B=g.ip(B,f)}g.wC(B,this.api,A);this.api.J("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
|
|
yA.prototype.Bz=function(){var A={Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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 "}}]},
|
|
L=28666,B=this.api.getVideoData();this.api.isEmbedsShortsMode()?A={Z:"svg",C:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},B:[{Z:"path",C:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
|
|
fill:"#fff"}}]}:g.Nm(B)&&(A={Z:"svg",C:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},B:[{Z:"path",C:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{Z:"path",C:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
|
|
fill:"white"}},{Z:"path",C:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{Z:"path",C:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Z:"path",C:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
|
|
fill:"white"}},{Z:"path",C:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{Z:"path",C:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
|
|
fill:"white"}},{Z:"path",C:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{Z:"path",C:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
|
|
fill:"white"}},{Z:"path",C:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
|
|
fill:"white"}},{Z:"path",C:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{Z:"path",C:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z",
|
|
fill:"white"}}]},L=216163);g.Nm(B)?g.R1(this.element,"ytp-youtube-music-button"):g.NH(this.element,"ytp-youtube-music-button");A.C=Object.assign({},A.C,{"aria-hidden":"true"});this.updateValue("logoSvg",A);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,L,!0)};
|
|
yA.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)};g.G(Uee,g.dN);g.p=Uee.prototype;g.p.onProgress=function(){if(this.S.J("web_player_max_seekable_on_ended")||!g.x(this.S.getPlayerStateObject(),2))lg(this.C8),this.progressBar.iq(),this.HZ.iq()};
|
|
g.p.Al=function(){this.yA();if(lg(this.C8))this.progressBar.HI();else this.onProgress()};
|
|
g.p.VU=function(){this.onProgress();this.G.start()};
|
|
g.p.yA=function(){var A;if(A=!this.S.K().W){A=this.progressBar;var L=2*g.J$()*A.T,B=A.V;A=(B.N-B.W)*1E3/A.api.getPlaybackRate()/L<300}A=A&&this.S.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;L=!A;lg(this.C8)&&(A=L=!1);L?this.qp||(this.qp=this.Y(this.S,"progresssync",this.onProgress)):this.qp&&(this.J$(this.qp),this.qp=null);A?this.G.isActive()||this.G.start():this.G.stop()};
|
|
g.p.Bz=function(){var A=this.S.Zr(),L=this.S.Pn().getPlayerSize(),B=this.S.Pn().T1,f=v4L(this),K=q$7(this),V=Math.max(L.width-f*2,100);if(this.Ox!==L.width||this.cn!==A||this.S.J("web_player_rtr_ctrls")&&this.d7!==B)this.Ox=L.width,this.cn=A,this.d7=B,this.W.element.style.width=K+"px",this.W.element.style.left=f+"px",g.zxv(this.progressBar,f,K,A),this.S.Ce().Jr=K;B=this.N;V=Math.min(570*(A?1.5:1),V);A=Math.min(413*(A?1.5:1),Math.round((L.height-PvQ(this))*.82));B.maxWidth=V;B.maxHeight=A;B.oN();this.yA();
|
|
this.ql&&Q77(this.Cr,L.height)};
|
|
g.p.onVideoDataChange=function(){var A=this.S.getVideoData();this.S4.style.background=A.OE?A.kE:"";this.Wn&&cS7(this.Wn,A.showSeekingControls);this.yj&&cS7(this.yj,A.showSeekingControls)};
|
|
g.p.Zg=function(){return this.W.element};g.G(en1,DW);g.p=en1.prototype;g.p.gJ=function(A){A.target===this.dismissButton.element?this.N&&U1C(DD(),this.N):(this.onClickCommand&&(this.Or(!1),this.S.Kr("innertubeCommand",this.onClickCommand)),this.qb())};
|
|
g.p.qb=function(){this.enabled=!1;this.G.hide()};
|
|
g.p.onVideoDataChange=function(A,L){A==="dataloaded"&&n4w(this);A=[];var B,f,K,V;if(L=(V=g.y((B=L.getWatchNextResponse())==null?void 0:(f=B.playerOverlays)==null?void 0:(K=f.playerOverlayRenderer)==null?void 0:K.suggestedActionsRenderer,t5X))==null?void 0:V.suggestedActions)for(B=g.m(L),f=B.next();!f.done;f=B.next())(f=g.y(f.value,kKB))&&g.y(f.trigger,bfB)&&A.push(f);if(A.length!==0){B=[];A=g.m(A);for(f=A.next();!f.done;f=A.next())if(f=f.value,K=g.y(f.trigger,bfB)){V=(V=f.title)?g.wq(V):"View Chapters";
|
|
L=K.timeRangeStartMillis;var J=K.timeRangeEndMillis;K=K.onlyTriggersOnPlayerPause;f.tapCommand&&(L!=null&&J!=null&&B.push(new g.WR(L,J,{priority:9,namespace:"suggested_action_button_visible",id:V})),L!=null&&J!=null||K)&&(this.suggestedActions[V]=f,K=void 0,(K=f.dismissButtonClientVeSpec)==null?0:K.uiType)&&(this.N=g8(f.dismissButtonClientVeSpec.uiType))}this.S.dX(B)}};
|
|
g.p.CC=function(){return this.enabled};
|
|
g.p.wI=function(){if(this.enabled){if(this.Ys.start(),!this.V&&this.N&&(I4(DD(),this.N),this.V=!0),this.text){var A,L=(A=this.suggestedActions[this.text])==null?void 0:A.rendererContext;if(A=g.y(L,V59)){var B;if(A=(B=A.loggingDirectives)==null?void 0:B.trackingParams)this.S.setTrackingParams(this.badge.element,A),this.W=!0}}}else NQ(this),this.S.setTrackingParams(this.badge.element,null),this.W=!1;this.B9()};
|
|
g.p.onStateChange=function(A){for(var L=g.m(Object.keys(this.suggestedActions)),B=L.next();!B.done;B=L.next()){B=B.value;var f=void 0;if((f=g.y(this.suggestedActions[B].trigger,bfB))==null?0:f.onlyTriggersOnPlayerPause){A.state.isPaused()?(xey(this,B),this.enabled=!0,this.wI()):A.oldState.isPaused()&&(this.enabled=!1,this.wI());break}}};
|
|
g.p.l1=function(){n4w(this);DW.prototype.l1.call(this)};var hC={},GG=(hC.CHANNEL_NAME="ytp-title-channel-name",hC.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",hC.LINK="ytp-title-link",hC.SESSIONLINK="yt-uix-sessionlink",hC.SUBTEXT="ytp-title-subtext",hC.TEXT="ytp-title-text",hC.TITLE="ytp-title",hC);g.G(r0,g.q);r0.prototype.onClick=function(A){this.api.logClick(this.element);var L=this.api.K(),B=this.api.getVideoUrl(!g.bV(A),!1,!0);g.MM(L)&&(L={},g.jg(this.api,"addEmbedsConversionTrackingParams",[L]),B=g.ip(B,L));g.wC(B,this.api,A)};
|
|
r0.prototype.zL=function(){var A=this.api.getVideoData(),L=this.api.K();this.updateValue("title",A.title);var B={Z:"a",j:GG.CHANNEL_NAME,C:{href:"{{channelLink}}",target:"_blank"},Ir:"{{channelName}}"};this.api.K().V?B={Z:"span",j:GG.CHANNEL_NAME,Ir:"{{channelName}}",C:{tabIndex:"{{channelSubtextFocusable}}"}}:A.wp&&(B={Z:"span",j:GG.SUBTEXT,Ir:A.wp});this.updateValue("subtextElement",B);znw(this);this.api.getPresentingPlayerType()===2&&(B=this.api.getVideoData(),B.videoId&&B.isListed&&B.author&&
|
|
B.Ys&&B.profilePicture?(this.updateValue("channelLink",B.Ys),this.updateValue("channelName",B.author),this.updateValue("channelTitleFocusable","0")):znw(this));B=L.externalFullscreen||!this.api.isFullscreen()&&L.kR;g.D1(this.link,GG.FULLERSCREEN_LINK,B);L.qp||!A.videoId||B||A.OE||L.V?this.N&&(this.updateValue("url",null),this.J$(this.N),this.N=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.N||(this.N=this.Y(this.link,"click",this.onClick)));L.V&&(this.element.classList.add("ytp-no-link"),
|
|
this.updateValue("channelName",g.MM(L)?A.expandedTitle:A.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.G(g.sY,g.q);g.p=g.sY.prototype;g.p.setEnabled=function(A){if(this.type!=null)if(A)switch(this.type){case 3:case 2:Hd(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.T=A};
|
|
g.p.KH=function(A,L,B,f,K,V,J,R){if(!this.ZM||this.env.X){this.type===3&&this.HI();this.type!==1&&(g.Jz(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.T&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.rB())&&this.W.subscribe("l",this.oa,this));if(R){var Z=g.pv(this.bg).height||141;this.wT.style.bottom=Z+2+"px"}else this.wT.style.display="none";this.env.J("delhi_modern_web_player")?(this.update({pillTimeStamp:B,pillTitle:V!=null?V:"",eduText:R!=null?R:""}),g.R1(this.element,"ytp-tooltip-progress-bar-style")):
|
|
(this.update({text:B,title:V!=null?V:"",eduText:R!=null?R:""}),g.D1(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!V));this.api.isInline()&&g.R1(this.bottomText,"ytp-modern-tooltip-text");g.D1(this.element,"ytp-text-detail",!!f);B=-1;this.W&&(B=zd(this.W,243*this.scale),this.env.J("web_l3_storyboard")&&this.W.levels.length===4&&(B=this.W.levels.length-1),B=CML(this.W,B,L));ou7(this,B);if(J)switch(L=g.pv(this.element).width,J){case 1:this.title.style.right="0";this.title.style.textAlign=
|
|
"left";break;case 2:this.title.style.right=L+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=L/2+"px",this.title.style.textAlign="center"}LR7(this,!!f,A,K)}};
|
|
g.p.gr=function(){this.type===1&&this.HI()};
|
|
g.p.yR=function(A,L){if(this.type)if(this.type===3)this.HI();else return;ul0(this,A,3,L)};
|
|
g.p.qq=function(){this.N&&!this.X&&(this.env.J("player_tooltip_data_title_killswitch")?this.N.hasAttribute("title")&&(this.V=this.N.getAttribute("title")||"",this.N.removeAttribute("title"),this.T&&Hd(this)):this.N.hasAttribute("data-tooltip-title")&&(this.V=this.N.getAttribute("data-tooltip-title")||"",this.N.removeAttribute("data-tooltip-title"),this.T&&Hd(this)))};
|
|
g.p.oa=function(A,L){A<=this.U&&this.U<=L&&(A=this.U,this.U=NaN,ou7(this,A))};
|
|
g.p.qvr=function(){m0Q(this.W,this.U,243*this.scale)};
|
|
g.p.HI=function(){switch(this.type){case 2:var A=this.N;A.removeEventListener("mouseout",this.G);A.addEventListener("mouseover",this.D);A.removeEventListener("blur",this.G);A.addEventListener("focus",this.D);BQD(this);break;case 3:BQD(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.oa,this),this.W=null),this.api.removeEventListener("videoready",this.Wn),this.qp.stop()}this.type=null;this.T&&this.fade.hide()};
|
|
g.p.Ed=function(){if(this.N)for(var A=0;A<arguments.length;A++)g.XF(arguments[A],this.N)&&this.HI()};
|
|
g.p.l1=function(){this.type!=null&&this.HI();this.W&&this.W.dispose();g.q.prototype.l1.call(this)};g.G(KR0,g.q);g.p=KR0.prototype;g.p.Fz=function(){this.visible=VyE(this);this.xP(this.visible);this.icon&&Syy(this,this.icon);this.S.logVisibility(this.element,this.visible&&this.yj)};
|
|
g.p.TP=function(){return this.S.getVideoData().videoId};
|
|
g.p.onClick=function(){this.S.logClick(this.element);var A=this.S.K(),L=this.TP();A.ZM?f91(this):JNL(this,L)};
|
|
g.p.onReset=function(){this.isRequestPending=this.N=!1;this.zL(2);this.Fz()};
|
|
g.p.zL=function(A,L){var B=this.S.K();Syy(this,A);L?this.S.J("player_tooltip_data_title_killswitch")?this.update({title:L,image:null}):this.update({"tooltip-title":L,image:null}):B.userDisplayName?(A={USER_NAME:B.userDisplayName},this.S.J("player_tooltip_data_title_killswitch")?this.update({title:this.N?g.B$("Aggiunto come $USER_NAME",A):g.B$("Guarda pi\u00f9 tardi come $USER_NAME",A),image:Io(B)}):this.update({"tooltip-title":this.N?g.B$("Aggiunto come $USER_NAME",A):g.B$("Guarda pi\u00f9 tardi come $USER_NAME",
|
|
A),image:Io(B)})):this.S.J("player_tooltip_data_title_killswitch")?this.update({title:"Guarda pi\u00f9 tardi",image:null}):this.update({"tooltip-title":"Guarda pi\u00f9 tardi",image:null});this.S.qq()};
|
|
g.p.Hy=function(A){g.q.prototype.Hy.call(this,A);this.S.logVisibility(this.element,this.visible&&A)};g.G(R7E,g.YS);g.p=R7E.prototype;
|
|
g.p.init=function(){var A=this;this.XO=new g.WB(this.api);this.api.J("web_player_delhi_dtts")?this.ou=new Dd(this.api):this.ou=new NxL(this.api);this.Rc=new g.q({Z:"div",j:"ytp-chrome-top"});this.tooltip=new g.sY(this.api,this);this.channelAvatar=new PgL(this.api);this.title=new r0(this.api);this.J_=new g.ZE({Z:"div",j:"ytp-chrome-top-buttons"});this.u2=new ESe(this.api,this.Rc.element);this.A_=this.api.K().controlsType==="1"?new Uee(this.api,this,this.C8):null;this.contextMenu=new VcS(this.api,this.XO);
|
|
this.K$=new g.q({Z:"div",C:{tabindex:"0"}});this.aO=new g.q({Z:"div",C:{tabindex:"0"}});var L=this.api.Pn(),B=this.api.K(),f=this.api.getVideoData();this.Hg&&(g.R1(this.api.getRootNode(),"ytp-embed"),g.R1(this.api.getRootNode(),"ytp-embed-playlist"),this.by&&(g.R1(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.R1(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.ws=60,this.Zw=89);this.api.K().V&&g.R1(this.api.getRootNode(),"ytp-embed-pfl");this.api.K().W&&(g.R1(this.api.getRootNode(),
|
|
"ytp-mobile"),this.api.K().X&&g.R1(this.api.getRootNode(),"ytp-embed-mobile"));f&&f.videoId&&(this.Yu=f&&f.getEmbeddedPlayerResponse());g.W(this,this.XO);g.Wh(this.api,this.XO.element,4);g.W(this,this.ou);g.Wh(this.api,this.ou.element,4);f=new g.q({Z:"div",j:"ytp-gradient-top"});g.W(this,f);g.Wh(this.api,f.element,1);this.Wx=new g.KL(f,250,!0,100);g.W(this,this.Wx);g.W(this,this.Rc);g.Wh(this.api,this.Rc.element,1);this.yX=new g.KL(this.Rc,250,!0,100);g.W(this,this.yX);g.W(this,this.tooltip);g.Wh(this.api,
|
|
this.tooltip.element,4);var K=new ASL(this.api);g.W(this,K);g.Wh(this.api,K.element,5);K.subscribe("show",function(Z){A.H2(K,Z)});
|
|
this.Jg.push(K);this.Jh=new RD(this.api,K);g.W(this,this.Jh);!this.Hg&&(this.uY&&this.api.J("delhi_modern_web_player")?this.uY.Tt(this.Jh.element,2):this.Jh.DM(this.Rc.element));g.W(this,this.channelAvatar);this.channelAvatar.DM(this.Rc.element);g.W(this,this.title);this.title.DM(this.Rc.element);this.Hg&&(f=new mdD(this.api),g.W(this,f),f.DM(this.Rc.element));g.W(this,this.J_);this.uY?(this.J_.element.setAttribute("data-overlay-order","2"),this.uY.Tt(this.J_.element,2)):this.J_.DM(this.Rc.element);
|
|
var V=new pdD(this.api,this);g.W(this,V);g.Wh(this.api,V.element,5);V.subscribe("show",function(Z){A.H2(V,Z)});
|
|
this.Jg.push(V);this.searchButton=new FS(this.api);g.W(this,this.searchButton);this.searchButton.DM(this.J_.element);f=this.api.K().getWebPlayerContextConfig();this.u5=new KR0(this.api);g.W(this,this.u5);(f==null?0:f.hideTopWatchNextButton)||this.u5.DM(this.J_.element);this.shareButton=new dx(this.api,this,V);g.W(this,this.shareButton);(f==null?0:f.hideTopShareButton)||this.shareButton.DM(this.J_.element);this.copyLinkButton=new ug(this.api,this);g.W(this,this.copyLinkButton);this.copyLinkButton.DM(this.J_.element);
|
|
this.Hg&&this.Jh.DM(this.J_.element);g.W(this,this.u2);this.u2.DM(this.J_.element);B.iA&&(f=new yF(this.api),g.W(this,f),g.Wh(this.api,f.element,4));B.V||(f=new cqL(this.api,this.u2),g.W(this,f),f.DM(this.J_.element));this.FL=new nt7(this.api);g.W(this,this.FL);g.Wh(this.api,this.FL.element,5);this.FL.subscribe("show",function(){A.H2(A.FL,A.FL.U7())});
|
|
this.Jg.push(this.FL);this.overflowButton=new Sc(this.api,this.FL);g.W(this,this.overflowButton);this.overflowButton.DM(this.J_.element);this.A_&&g.W(this,this.A_);B.controlsType==="3"&&(f=new NY(this.api),g.W(this,f),g.Wh(this.api,f.element,9));g.W(this,this.contextMenu);this.contextMenu.subscribe("show",this.OJ,this);this.K$.listen("focus",this.Nj,this);g.W(this,this.K$);this.aO.listen("focus",this.WJ,this);g.W(this,this.aO);var J;(this.hT=B.Sb?null:new Pr1(this.api,L,this.contextMenu,this.C8,this.XO,
|
|
this.ou,function(){return A.p5()},(J=this.A_)==null?void 0:J.progressBar))&&g.W(this,this.hT);
|
|
this.Hg||(this.q_=new dYQ(this.api),g.W(this,this.q_),this.uY?this.uY.Tt(this.q_.element,3):g.Wh(this.api,this.q_.element,4),this.tC=new s7y(this.api),g.W(this,this.tC),this.uY?this.uY.Tt(this.tC.element,3):g.Wh(this.api,this.tC.element,4));this.ER=new en1(this.api);g.W(this,this.ER);this.uY?this.uY.Tt(this.ER.element,3):g.Wh(this.api,this.ER.element,4);if(this.Hg){var R=new iQ7(this.api,this.api.K().Ex);g.W(this,R);g.Wh(this.api,R.element,5);R.subscribe("show",function(Z){A.H2(R,Z)});
|
|
L=new Ete(this.api,R);g.W(this,L);g.Wh(this.api,L.element,4)}this.jx.push(this.XO.element);this.Y(this.api,"fullscreentoggled",this.Vi);this.Y(this.api,"offlineslatestatechange",function(){A.api.QD()&&TB(A.C8,128,!1)});
|
|
this.Y(this.api,"cardstatechange",function(){A.LC()});
|
|
this.Y(this.api,"resize",this.wyD);this.Y(this.api,"videoplayerreset",this.onReset);this.Y(this.api,"showpromotooltip",this.KsL);g.YS.prototype.init.call(this)};
|
|
g.p.Ce=function(){return this.tooltip};
|
|
g.p.d8=function(){return this.A_};
|
|
g.p.H2=function(A,L){L?this.Td=A:this.Td=null;this.LC()};
|
|
g.p.f$=function(A,L){if(L)this.W4.push(A);else for(L=this.W4.length;L>=0;L--)if(this.W4[L]===A){this.W4.splice(L,1);break}TB(this.C8,64,this.W4.length>0)};
|
|
g.p.YW=function(){this.api.yq()&&this.api.Bu();return!!this.Td||ZI6(this)||g.YS.prototype.YW.call(this)};
|
|
g.p.LC=function(){var A=!this.YW(),L=A&&this.api.yq()&&!g.x(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().OE&&!this.api.K().V&&!this.api.isEmbedsShortsMode(),B=this.Hg&&g.ch(this.api)&&g.x(this.api.getPlayerStateObject(),128);A||B?(this.yX.show(),this.Wx.show()):(this.yX.hide(),this.Wx.hide(),this.api.Ed(this.Rc.element));L?this.u2.fD():this.u2.YP();this.A_&&WG1(this.A_,this.WCM||!A);this.api.J("web_player_hide_overflow_button_if_empty_menu")&&NQ1(this);g.YS.prototype.LC.call(this)};
|
|
g.p.TT=function(A,L,B,f,K){A.style.left="";A.style.top="";A.style.bottom="";var V=g.pv(A),J=f||this.A_&&g.XF(this.A_.Zg(),L),R=f=null;B!=null&&J||(f=g.pv(L),R=g.IR(L,this.api.getRootNode()),B==null&&(B=R.x+f.width/2));B-=V.width/2;J?(L=this.A_,f=v4L(L),R=q$7(L),J=this.api.Pn().getPlayerSize().height,B=g.B4(B,f,f+R-V.width),V=J-PvQ(L)-V.height):g.XF(this.Rc.element,L)?(L=this.api.Pn().getPlayerSize().width,B=g.B4(B,12,L-V.width-12),V=this.Zr()?this.Zw:this.ws,this.api.K().playerStyle==="gvn"&&(V+=
|
|
20),this.Hg&&(V-=this.Zr()?26:18)):(L=this.api.Pn().getPlayerSize(),B=g.B4(B,12,L.width-V.width-12),V=R.y>(L.height-f.height)/2?R.y-V.height-12:R.y+f.height+12);A.style.top=V+(K||0)+"px";A.style.left=B+"px"};
|
|
g.p.Al=function(A){A&&(this.api.Ed(this.Rc.element),this.A_&&this.api.Ed(this.A_.Zg()));this.by&&(g.D1(this.contextMenu.element,"ytp-autohide",A),g.D1(this.contextMenu.element,"ytp-autohide-active",!0));g.YS.prototype.Al.call(this,A)};
|
|
g.p.Pe=function(){g.YS.prototype.Pe.call(this);this.by&&(g.D1(this.contextMenu.element,"ytp-autohide-active",!1),this.by&&(this.contextMenu.hide(),this.FL&&this.FL.hide()))};
|
|
g.p.O7=function(A,L){var B=this.api.Pn().getPlayerSize();B=new g.oR(0,0,B.width,B.height);if(A||!lg(this.C8)&&!this.YW()){if(this.api.K().jr||L)A=this.Zr()?this.Zw:this.ws,B.top+=A,B.height-=A;this.A_&&(B.height-=PvQ(this.A_))}return B};
|
|
g.p.Vi=function(A){var L=this.api.getRootNode();A?L.parentElement?(L.setAttribute("aria-label","Video player di YouTube a schermo intero"),this.api.K().externalFullscreen||(L.parentElement.insertBefore(this.K$.element,L),L.parentElement.insertBefore(this.aO.element,L.nextSibling))):g.mL(Error("Player not in DOM.")):(L.setAttribute("aria-label","Video player di YouTube"),this.K$.detach(),this.aO.detach());this.Bz();this.Fp()};
|
|
g.p.Zr=function(){if(this.api.J("web_player_use_screen_width_for_big_mode")){var A;return this.api.Pn().getPlayerSize().width>=((A=g.Am(this.api.K().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?A:2E3)}A=this.api.K();return this.api.isFullscreen()&&!A.X||!1};
|
|
g.p.showControls=function(A){this.nW=!A;this.LC()};
|
|
g.p.Bz=function(){var A=this.Zr();this.tooltip.scale=A?1.5:1;this.contextMenu&&g.D1(this.contextMenu.element,"ytp-big-mode",A);this.LC();this.api.J("web_player_hide_overflow_button_if_empty_menu")||NQ1(this);this.Fp();var L=this.api.isEmbedsShortsMode();L&&A?(A=(this.api.Pn().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Kv(this.Rc.element,"padding-left",A+"px"),g.Kv(this.Rc.element,"padding-right",A+"px")):L&&(g.Kv(this.Rc.element,"padding-left",""),g.Kv(this.Rc.element,"padding-right",
|
|
""));g.YS.prototype.Bz.call(this)};
|
|
g.p.hB=function(){if(ZI6(this)&&!g.ch(this.api))return!1;var A=this.api.getVideoData();return!g.MM(this.api.K())||this.api.getPresentingPlayerType()===2||!this.Yu||((A=this.Yu||A.Yu)?(A=A.embedPreview)?(A=A.thumbnailPreviewRenderer,A=A.videoDetails&&g.y(A.videoDetails,gh6)||null):A=null:A=null,A&&A.collapsedRenderer&&A.expandedRenderer)?g.YS.prototype.hB.call(this):!1};
|
|
g.p.Fp=function(){g.YS.prototype.Fp.call(this);this.api.logVisibility(this.title.element,!!this.Wu);this.Jh&&this.Jh.Hy(!!this.Wu);this.channelAvatar.Hy(!!this.Wu);this.overflowButton&&this.overflowButton.Hy(this.Gy()&&!!this.Wu);this.shareButton&&this.shareButton.Hy(!this.Gy()&&!!this.Wu);this.u5&&this.u5.Hy(!this.Gy()&&!!this.Wu);this.searchButton&&this.searchButton.Hy(!this.Gy()&&!!this.Wu);this.copyLinkButton&&this.copyLinkButton.Hy(!this.Gy()&&!!this.Wu);if(!this.Wu){this.api.Ed(this.Rc.element);
|
|
for(var A=0;A<this.Jg.length;A++){var L=this.Jg[A];L.U7()&&L.YP()}}};
|
|
g.p.q8=function(A){this.A_&&WG1(this.A_,this.YW());this.LC();g.YS.prototype.q8.call(this,A)};
|
|
g.p.handleGlobalKeyDown=function(A,L,B,f,K,V,J,R){return this.hT?this.hT.handleGlobalKeyDown(A,L,B,f,K,V,J,R):!1};
|
|
g.p.handleGlobalKeyUp=function(A,L,B,f,K,V,J){return this.hT?this.hT.handleGlobalKeyUp(A,L,B,f,K,V,J):!1};
|
|
g.p.p5=function(){if(this.contextMenu.bC)return this.contextMenu.YP(),!0;if(this.W4.length)return this.W4[this.W4.length-1].YP(),!0;if(this.Td)return this.Td.YP(),!0;this.A_&&this.api.Ed(this.A_.Zg());this.J_&&this.api.Ed(this.J_.element);return g.YS.prototype.p5.call(this)};
|
|
g.p.WP=function(A,L){this.El=L;this.f$(A,L);this.OJ()};
|
|
g.p.OJ=function(){var A=this.El||this.contextMenu.U7();this.c6!==A&&(this.c6=A,this.api.Kr("onAutonavPauseRequest",this.c6))};
|
|
g.p.Nj=function(){FRC(this,this.api.getRootNode(),!0).focus()};
|
|
g.p.WJ=function(){FRC(this,this.api.getRootNode(),!1).focus()};
|
|
g.p.gB=function(){return this.A_&&this.A_.N};
|
|
g.p.V9=function(){this.C8.V9()};
|
|
g.p.Yp=function(){this.XO.hide()};
|
|
g.p.N0=function(A){this.XO.N0(!A.isOrWillBePlaying())};
|
|
g.p.IN=function(A,L,B,f){this.ou.IN(A,L,B,f)};
|
|
g.p.renderChapterSeekingAnimation=function(A,L,B){this.ou.iE(A,L,B)};
|
|
g.p.wyD=function(){DZ0(this,!0)};
|
|
g.p.onReset=function(){NQ1(this)};
|
|
g.p.KsL=function(A){DZ0(this,!1,A)};
|
|
g.p.oH=function(){return this.contextMenu};
|
|
g.p.fJ=function(A,L){var B;if((B=this.A_)!=null){var f=Number(A.element.getAttribute("data-priority"))||0,K=0,V=B.V.element;L&&B.S.J("delhi_modern_web_player")&&(V=B.V.m4(jQ[L]));L=g.m(V.children);for(B=L.next();!(B.done||f<(Number(B.value.getAttribute("data-priority"))||0));B=L.next())K++;A.DM(V,K)}};
|
|
g.p.Wa=function(){var A,L=(A=this.A_)==null?void 0:A.progressBar;if(L){var B;((B=L.W)==null?0:B.isEnabled)&&L.Wa()}};
|
|
g.p.Tt=function(A,L,B){var f;(f=this.uY)==null||f.Tt(A,L,B)};g.G(g.hS,g.FB);g.hS.prototype.Pg=function(){return!1};
|
|
g.hS.prototype.create=function(){var A=this.player.K();g.cH(A)&&A.W||A.disableOrganicUi?this.chrome=new g.YS(this.player):this.chrome=new R7E(this.player);g.W(this,this.chrome);this.chrome.init()};
|
|
g.hS.prototype.YR=function(){return this.chrome};var a9y=!1;g.G(g.bE,je);g.p=g.bE.prototype;g.p.wy=function(){return this.view===null};
|
|
g.p.isView=function(){return this.view!==null};
|
|
g.p.EO=function(){if(!this.view)return!1;var A=this.N.currentTime;if(A<this.view.start)try{var L=AA(this.N.buffered,A);return!(this.view.start<L)}catch(B){}return!1};
|
|
g.p.Zg=function(){return this.N};
|
|
g.p.eE=function(){return this.N.src};
|
|
g.p.aM=function(A){var L=this.getPlaybackRate();this.N.src=A;this.setPlaybackRate(L)};
|
|
g.p.Hd=function(){this.N.removeAttribute("src")};
|
|
g.p.getPlaybackRate=function(){try{return this.N.playbackRate>=0?this.N.playbackRate:1}catch(A){return 1}};
|
|
g.p.setPlaybackRate=function(A){this.getPlaybackRate()!==A&&(this.N.playbackRate=A);return A};
|
|
g.p.e5=function(){return this.N.loop};
|
|
g.p.setLoop=function(A){this.N.loop=A};
|
|
g.p.canPlayType=function(A,L){return this.N.canPlayType(A,L)};
|
|
g.p.isPaused=function(){return this.N.paused};
|
|
g.p.isSeeking=function(){return this.N.seeking};
|
|
g.p.isEnded=function(){return this.N.ended};
|
|
g.p.ib=function(){return this.N.muted};
|
|
g.p.o6=function(A){D2();this.N.muted=A};
|
|
g.p.wN=function(){var A=this.N.played||n$([],[]);return this.view?p08(this,A):A};
|
|
g.p.YJ=function(){try{var A=this.N.buffered}catch(L){}A=A||n$([],[]);return this.view?p08(this,A):A};
|
|
g.p.Zk=function(){var A=this.N.seekable||n$([],[]);return this.view?p08(this,A):A};
|
|
g.p.r_=function(){var A=this.N;return A.getStartDate?A.getStartDate():null};
|
|
g.p.getCurrentTime=function(){if(this.view){var A=this.N.currentTime;A=this.view?A-this.view.start:A;return this.view.oQ||!isFinite(this.view.end)?A:Math.min(A,this.view.end-this.view.start)}return this.N.currentTime};
|
|
g.p.setCurrentTime=function(A){this.N.currentTime=this.view?this.view?A+this.view.start:A:A};
|
|
g.p.getDuration=function(){return this.view?isFinite(this.view.end)&&!this.view.oQ?this.view.end-this.view.start:this.N.duration-this.view.start:this.N.duration};
|
|
g.p.load=function(){var A=this.N.playbackRate;try{this.N.load()}catch(L){}this.N.playbackRate=A};
|
|
g.p.pause=function(){this.N.pause()};
|
|
g.p.play=function(){if(this.view&&this.EO())try{this.N.currentTime=this.view.start}catch(L){}var A=this.N.play();if(!A||!A.then)return null;A.then(void 0,function(){});
|
|
return A};
|
|
g.p.J2=function(){return this.N.readyState};
|
|
g.p.Yj=function(){return this.N.networkState};
|
|
g.p.p8=function(){return this.N.error?this.N.error.code:null};
|
|
g.p.SE=function(){return this.N.error?this.N.error.message:""};
|
|
g.p.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.N instanceof window.HTMLVideoElement&&this.N.getVideoPlaybackQuality)return this.N.getVideoPlaybackQuality();if(this.N){var A=this.N,L=A.webkitDroppedFrameCount;if(A=A.webkitDecodedFrameCount)return{droppedVideoFrames:L||0,totalVideoFrames:A}}return{}};
|
|
g.p.Ov=function(){try{var A=this.getSize(),L={vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:zv(this.wN(),",",3),vbu:zv(this.YJ()),vbs:zv(this.Zk()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.J2(),vns:""+this.Yj(),vec:""+this.p8(),vemsg:this.SE(),vvol:""+this.getVolume(),vdom:""+ +this.xU(),vsrc:""+ +!!this.eE(),vw:""+A.width,vh:""+A.height};this.view&&(L.view=this.view.start+"-"+this.view.end);return L}catch(B){return{}}};
|
|
g.p.QC=function(){return!!this.N.webkitCurrentPlaybackTargetIsWireless};
|
|
g.p.m2=function(){return!!this.N.webkitShowPlaybackTargetPicker()};
|
|
g.p.togglePictureInPicture=function(){var A=this.N,L=window.document;window.document.pictureInPictureEnabled?this.N!==L.pictureInPictureElement?A.requestPictureInPicture():L.exitPictureInPicture():F2()&&A.webkitSetPresentationMode(A.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
|
|
g.p.Gf=function(){return IwL(this.N)};
|
|
g.p.getSize=function(){return g.pv(this.N)};
|
|
g.p.setSize=function(A){g.wK(this.N,A)};
|
|
g.p.getVolume=function(){return this.N.volume};
|
|
g.p.setVolume=function(A){D2();this.N.volume=A};
|
|
g.p.addEventListener=function(A,L){this.qp.listen(A,L,!1,this);this.uR(A)};
|
|
g.p.removeEventListener=function(A,L){this.qp.J$(A,L,!1,this)};
|
|
g.p.dispatchEvent=function(A){if(this.T&&A.type==="pause")return!1;if(z7E){var L,B=((L=A.N)==null?void 0:L.timeStamp)||Infinity;L=B>performance.now()?B-Date.now()+performance.now():B;B=this.W||this.U;if((B==null?0:B.PF())||L<=((B==null?void 0:B.U)||0)){var f;this.b5("rms",{l:"mede",sr:(f=this.Np)==null?void 0:f.R0(),et:A.type});return!1}if(this.jM)return this.b5("rms",{l:"medes",et:A.type}),B&&A.type==="seeking"&&(B.U=performance.now(),this.jM=!1),!1}return this.qp.dispatchEvent(A)};
|
|
g.p.uR=function(A){this.G[A]||(this.N.addEventListener(A,this.listener),this.G[A]=this.listener)};
|
|
g.p.setAttribute=function(A,L){this.N.setAttribute(A,L)};
|
|
g.p.removeAttribute=function(A){this.N.removeAttribute(A)};
|
|
g.p.hasAttribute=function(A){return this.N.hasAttribute(A)};
|
|
g.p.Xk=OD(52);g.p.BQ=OD(55);g.p.PQ=OD(58);g.p.uA=OD(61);g.p.VJ=function(){return H9(this.N)};
|
|
g.p.zf=function(A){g.R1(this.N,A)};
|
|
g.p.AY=function(A){return g.SV(this.N,A)};
|
|
g.p.xU=function(){return g.XF(document.body,this.N)};
|
|
g.p.audioTracks=function(){var A=this.N;if("audioTracks"in A)return A.audioTracks};
|
|
g.p.Bb=function(){this.wT=!1};
|
|
g.p.aj=function(){this.wT=!0;this.o6(!0)};
|
|
g.p.iN=function(){this.wT&&!this.ib()&&this.o6(!0)};
|
|
g.p.equals=function(A){return!!A&&A.Zg()===this.Zg()};
|
|
g.p.l1=function(){for(var A=g.m(Object.keys(this.G)),L=A.next();!L.done;L=A.next())L=L.value,this.N.removeEventListener(L,this.G[L]);this.JF&&this.removeEventListener("volumechange",this.iN);Pok&&w08(this);je.prototype.l1.call(this)};
|
|
g.p.oI=function(){return this.p8()===4};
|
|
g.p.hasError=function(){return this.p8()>0};
|
|
g.p.xT=function(){switch(this.p8()){case 2:return"progressive.net.retryexhausted";case 3:var A=this.SE();return(A==null?0:A.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||a9y&&(A==null?0:A.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
|
|
g.p.vl=function(A){this.N.disableRemotePlayback=A};
|
|
g.p.KU=function(){var A=this.Zk();return A.length<1?NaN:A.end(A.length-1)};
|
|
g.p.g_=function(){return this.D};
|
|
g.p.activate=function(A){var L="";A&&(I97(this,A),L=A.wi);if(!this.eE()||L)L&&this.eE()!==L&&(this.aM(L),delete this.W,this.T&&(this.T.reject(),delete this.T),!window.MediaSource&&window.ManagedMediaSource&&this.vl(!(A==null||!A.N))),A&&A.N||this.load(),this.JF||(this.addEventListener("volumechange",this.iN),this.JF=!0)};
|
|
g.p.c5=function(){var A=this;!this.W&&NK()&&(this.T?this.T.then(function(){return void A.c5()}):this.eE()||(this.W=this.Fy()))};
|
|
g.p.Xv=function(){this.W&&(this.W.dispose(),this.W=void 0)};
|
|
g.p.Fy=function(A,L){if(this.W)if(z7E&&dz(this.W)&&!this.W.Aq(A,L)){var B;this.b5("rms",{l:"megms",sr:(B=this.Np)==null?void 0:B.R0()});this.Xv();this.stopVideo()}else return this.U=this.W,this.W=void 0,this.U;A=wH0(this);this.activate(A.V);this.U=A;this.jM=!1;return A};
|
|
g.p.nH=function(A){this.W=A};
|
|
g.p.playVideo=function(){var A=this;this.isEnded()&&this.seekTo(0);!this.eE()&&this.D&&(g.mL(Error("playVideo without src")),this.aM(this.D.wi),this.D.N||this.load());var L=this.play(),B;if((B=this.Np)==null||!GLw(B)){var f;m5&&($c||0)>=7&&(!L||((f=this.Np)==null?0:f.J("mweb_ios_allow_playback_workaround_when_ready")))&&ory(this,function(){g.gW(function(){dZS(A,A.getCurrentTime(),0)},500)})}return L};
|
|
g.p.b5=function(A,L,B){var f;((f=this.Np)==null?0:f.hw())&&this.Np.Hn(A,L,B===void 0?!1:B)};
|
|
g.p.fH=function(A){this.Np=A};
|
|
g.p.vu=function(){return Bi(this.YJ(),this.getCurrentTime())};
|
|
g.p.seekTo=function(A){this.J2()>0&&(m5&&$c<4&&(A=Math.max(.1,A)),this.setCurrentTime(A))};
|
|
g.p.J3=function(A){if(this.J2()===0||this.hasError())return!1;var L=this.getCurrentTime()>0;if(A>=0){var B=this.Zk();if(B.length||!L)return aT(B,A)}return L};
|
|
g.p.aC=function(){if(!this.W&&this.U)if(this.U.T)try{var A;this.b5("rms",{l:"mer",sr:(A=this.Np)==null?void 0:A.R0(),rs:Ik(this.U)});this.U.clear();this.nH(this.U);this.U=void 0}catch(L){A=new g.iL("Error while clearing Media Source in MediaElement: "+L.name+", "+L.message),g.mL(A),this.stopVideo()}else this.stopVideo()};
|
|
g.p.stopVideo=function(){var A=this;if(!this.W){var L;(L=this.U)==null||pW(L);if(Pok){if(!this.T){var B=new yV;B.then(void 0,function(){});
|
|
this.T=B;e78&&this.pause();g.gW(function(){A.T===B&&(w08(A),B.resolve())},200)}}else w08(this)}};
|
|
g.p.rQ=function(){var A=this.YJ();return ok(A)&&this.getDuration()?AA(A,this.getCurrentTime()):0};
|
|
g.p.lB=function(){var A=this.YJ();return ok(A)&&this.getDuration()?A.end(A.length-1):0};
|
|
g.p.Hq=function(){var A=this.getDuration();return A===Infinity?1:A?this.rQ()/A:0};
|
|
var Pok=!1,e78=!1,z7E=!1;var tS=[],yNE=!1;g.G(ko,g.Y);ko.prototype.X=function(){this.N!=null&&this.app.getVideoData()!==this.N&&V7(this.N)&&pxC(this.app,this.N,void 0,void 0,this.V)};
|
|
ko.prototype.T=function(){if(this.N!=null&&this.app.getVideoData()!==this.N&&this.W!=null&&this.U!=null&&this.D!=null&&V7(this.N)){var A=this.app.K().experiments.Qf().N.Iv(QA);A=Ge7(this.W,this.U,this.D,A);A==null?pxC(this.app,this.N,void 0,void 0,this.V):(this.W.Hn("sgap",A),this.W.getVideoData().X&&this.W.tT(!1),this.app.K().J("html5_remove_loop_range_on_gapless_fallback")&&(lF(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}};
|
|
ko.prototype.G=function(A){var L=this.app.e4();if(L){var B=this.app.getCurrentTime();Math.abs(B-A.end/1E3)>5&&L.Hn("glrs",{cmt:B});L.seekTo(0,{seekSource:58});L.Hn("glrre",{cmt:B})}};
|
|
ko.prototype.l1=function(){this.N=null;g.Y.prototype.l1.call(this)};g.G(g.TG,je);g.p=g.TG.prototype;g.p.isView=function(){return!0};
|
|
g.p.EO=function(){var A=this.mediaElement.getCurrentTime();if(A<this.start)try{var L=this.mediaElement.YJ(),B=AA(L,A);return!(this.start<B)}catch(f){}return!1};
|
|
g.p.wN=function(){return fW(this.mediaElement.wN(),this.start,this.end)};
|
|
g.p.YJ=function(){return fW(this.mediaElement.YJ(),this.start,this.end)};
|
|
g.p.Zk=function(){return fW(this.mediaElement.Zk(),this.start,this.end)};
|
|
g.p.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
|
|
g.p.setCurrentTime=function(A){this.mediaElement.setCurrentTime(A+this.start)};
|
|
g.p.getDuration=function(){return isFinite(this.end)&&!this.oQ?this.end-this.start:this.mediaElement.getDuration()-this.start};
|
|
g.p.play=function(){if(this.EO()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(A){}}return this.mediaElement.play()};
|
|
g.p.Ov=function(){var A=je.prototype.Ov.call(this);A.view=this.start+"-"+this.end;return A};
|
|
g.p.addEventListener=function(A,L){this.mediaElement.addEventListener(A,L)};
|
|
g.p.removeEventListener=function(A,L){this.mediaElement.removeEventListener(A,L)};
|
|
g.p.g_=function(){return this.mediaElement.g_()};
|
|
g.p.activate=function(A){this.mediaElement.activate(A)};
|
|
g.p.Fy=function(){return this.mediaElement.Fy()};
|
|
g.p.playVideo=function(){return this.mediaElement.playVideo()};
|
|
g.p.Bb=function(){this.mediaElement.Bb()};
|
|
g.p.aj=function(){this.mediaElement.aj()};
|
|
g.p.wy=function(){return this.mediaElement.wy()};
|
|
g.p.Zg=function(){return this.mediaElement.Zg()};
|
|
g.p.eE=function(){return this.mediaElement.eE()};
|
|
g.p.aM=function(A){this.mediaElement.aM(A)};
|
|
g.p.Hd=function(){this.mediaElement.Hd()};
|
|
g.p.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
|
|
g.p.setPlaybackRate=function(A){return this.mediaElement.setPlaybackRate(A)};
|
|
g.p.e5=function(){return this.mediaElement.e5()};
|
|
g.p.setLoop=function(A){this.mediaElement.setLoop(A)};
|
|
g.p.canPlayType=function(A,L){return this.mediaElement.canPlayType(A,L)};
|
|
g.p.isPaused=function(){return this.mediaElement.isPaused()};
|
|
g.p.isSeeking=function(){return this.mediaElement.isSeeking()};
|
|
g.p.isEnded=function(){return this.mediaElement.isEnded()};
|
|
g.p.ib=function(){return this.mediaElement.ib()};
|
|
g.p.o6=function(A){this.mediaElement.o6(A)};
|
|
g.p.r_=function(){return this.mediaElement.r_()};
|
|
g.p.load=function(){this.mediaElement.load()};
|
|
g.p.pause=function(){this.mediaElement.pause()};
|
|
g.p.J2=function(){return this.mediaElement.J2()};
|
|
g.p.Yj=function(){return this.mediaElement.Yj()};
|
|
g.p.p8=function(){return this.mediaElement.p8()};
|
|
g.p.SE=function(){return this.mediaElement.SE()};
|
|
g.p.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
|
|
g.p.QC=function(){return this.mediaElement.QC()};
|
|
g.p.m2=function(){return this.mediaElement.m2()};
|
|
g.p.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
|
|
g.p.Gf=function(){return this.mediaElement.Gf()};
|
|
g.p.getSize=function(){return this.mediaElement.getSize()};
|
|
g.p.setSize=function(A){this.mediaElement.setSize(A)};
|
|
g.p.getVolume=function(){return this.mediaElement.getVolume()};
|
|
g.p.setVolume=function(A){this.mediaElement.setVolume(A)};
|
|
g.p.setAttribute=function(A,L){this.mediaElement.setAttribute(A,L)};
|
|
g.p.removeAttribute=function(A){this.mediaElement.removeAttribute(A)};
|
|
g.p.hasAttribute=function(A){return this.mediaElement.hasAttribute(A)};
|
|
g.p.Xk=OD(51);g.p.BQ=OD(54);g.p.PQ=OD(57);g.p.uA=OD(60);g.p.VJ=function(){return this.mediaElement.VJ()};
|
|
g.p.zf=function(A){this.mediaElement.zf(A)};
|
|
g.p.AY=function(A){return this.mediaElement.AY(A)};
|
|
g.p.xU=function(){return this.mediaElement.xU()};
|
|
g.p.stopVideo=function(){this.mediaElement.stopVideo()};
|
|
g.p.uR=function(A){this.mediaElement.uR(A)};
|
|
g.p.audioTracks=function(){return this.mediaElement.audioTracks()};
|
|
g.p.vl=function(A){this.mediaElement.vl(A)};g.G(HIv,g.Y);g.p=HIv.prototype;g.p.getStatus=function(){return this.status};
|
|
g.p.sI=function(){var A=this.N.getVideoData(),L=this.W.getVideoData(),B;if((B=A.V)&&!(B=!A.N)){B=A.N;for(var f=!1,K=!1,V=g.m(Object.values(B.N)),J=V.next();!J.done;J=V.next())J=J.value,J.info.audio&&J.index.isLoaded()&&(f=!0),J.info.video&&J.index.isLoaded()&&(K=!0);B.N["0"]&&(K=!0);B=f&&K}if(B)if(this.N.pD()){V=mZ8(this);J=lE(this);B=J.bU;K=J.oZ;f=J.Vw;J=J.X7;if(!this.X){var R=this.W.Fb()*1E3,Z=this.N.Fb();Z=(f-B-Z)*1E3;V&&V.msg==="in-the-past"&&(Z=0);A=A.isAd();this.W.jd(R,Z,A);this.X=!0}V?(L="cannot_apply"+
|
|
V.msg,delete V.msg,this.Lw(L,V)):this.status.status===2?l9C(this):(A=this.N.Fy())&&dz(A)&&(!Fi(A)&&g.ng()?this.Lw("mse_closed"):L.N&&PZ(L.N)&&A.W&&!A.W.z4()?this.Lw("encr_upgrade"):(L=this.N.pD(),L.isEnded()?this.Lw("elem_ended"):K<0?this.Lw("next_player_future"):(this.T=f,this.currentVideoDuration=f-B,this.V=jAv(A,B,f,!0),this.U=jAv(A,K,J,!1),A=this.W.getVideoData().clientPlaybackNonce,this.N.Hn("gaplessPrep",{cpn:A}),this.N.Mv(this.V,!1,ty7(this),this.gf.K().J("html5_shorts_gapless_keep_pending_requests")&&
|
|
pr(this.N.getVideoData())),this.N.setMediaElement(h77(this,L,B,f,!this.N.getVideoData().isAd())),mj(this,2),l9C(this))))}else this.Lw("no-elem")};
|
|
g.p.Rk=function(A){var L=A===TQQ(this).b$,B=L?this.V.N:this.V.W;L=L?this.U.N:this.U.W;if(B.isActive&&!L.isActive){var f=this.T,K=this.gf.K().J("html5_gapless_disable_on_discontinuous_buffer")&&this.D!==0&&B.Hk().length>1;aT(A.Hk(),f-.01)&&!K&&(mj(this,4),B.isActive=!1,B.s1=B.s1||B.isActive,(this.D===1?this.N:this.W).Hn("sbh",{}),L.isActive=!0,L.s1=L.s1||L.isActive,this.D!==0&&(this.N.getVideoData().uu=!0));A=this.U.W;if(this.U.N.isActive&&A.isActive&&(mj(this,5),this.D!==0)){A=this.W.bf();B=this.N.bf();
|
|
this.N.Hn("sbs",{citag:B==null?void 0:B.itag,nitag:A==null?void 0:A.itag});this.W.Hn("gitags",{pitag:B==null?void 0:B.itag,citag:A==null?void 0:A.itag});var V;(V=this.W)==null||V.Bp()}}};
|
|
g.p.c8=function(){this.I6()&&this.Lw("player-reload-after-handoff")};
|
|
g.p.Lw=function(A,L){L=L===void 0?{}:L;if(!this.TL()&&this.status.status!==6){var B=this.status.status>=4&&A!=="player-reload-after-handoff";this.status={status:Infinity,error:A};if(this.N&&this.W){var f=this.W.getVideoData().clientPlaybackNonce;this.N.Ho(new g.K$("dai.transitionfailure",Object.assign(L,{cpn:f,transitionTimeMs:this.rk,msg:A})));this.N.tT(B)}this.lD.reject(A);this.dispose()}};
|
|
g.p.I6=function(){return this.status.status>=4&&this.status.status<6};
|
|
g.p.l1=function(){keL(this);this.N.unsubscribe("newelementrequired",this.c8,this);if(this.V){var A=this.V.W;this.V.N.Py.unsubscribe("updateend",this.Rk,this);A.Py.unsubscribe("updateend",this.Rk,this)}g.Y.prototype.l1.call(this)};
|
|
g.p.TD=function(A){g.wk(A,128)&&this.Lw("player-error-event")};g.G(Cb,g.Y);Cb.prototype.clearQueue=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;iE(this);this.U&&this.U.reject("Queue cleared");this.app.K().J("html5_gapless_fallback_on_qoe_restart_v2")||L&&this.W&&this.W.tT(!1);$o(this,A)};
|
|
Cb.prototype.qV=function(){return!this.N};
|
|
Cb.prototype.I6=function(){var A;return((A=this.V)==null?void 0:A.I6())||!1};
|
|
Cb.prototype.l1=function(){iE(this);$o(this);g.Y.prototype.l1.call(this)};g.G(MyL,g.SN);g.p=MyL.prototype;g.p.getVisibilityState=function(A,L,B,f,K,V,J,R){return A?4:K&&RVv?7:Ji6&&!(fR()||document.hasFocus&&document.hasFocus())||fR()?3:L?2:B?1:f?5:K&&!RVv?7:V?8:J?9:R?10:0};
|
|
g.p.Fc=function(A){this.fullscreen!==A&&(this.fullscreen=A,this.wI())};
|
|
g.p.setMinimized=function(A){this.W!==A&&(this.W=A,this.wI())};
|
|
g.p.setInline=function(A){this.inline!==A&&(this.inline=A,this.wI())};
|
|
g.p.Aa=function(A){this.pictureInPicture!==A&&(this.pictureInPicture=A,this.wI())};
|
|
g.p.setSqueezeback=function(A){this.V!==A&&(this.V=A,this.wI())};
|
|
g.p.X9=function(A){this.U!==A&&(this.U=A,this.wI())};
|
|
g.p.QC=function(){return this.N};
|
|
g.p.X1=function(){return this.fullscreen!==0};
|
|
g.p.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
|
|
g.p.L$=function(){return this.fullscreen};
|
|
g.p.isMinimized=function(){return this.W};
|
|
g.p.isInline=function(){return this.inline};
|
|
g.p.isBackground=function(){return fR()};
|
|
g.p.nV=function(){return this.pictureInPicture};
|
|
g.p.WE=function(){return!1};
|
|
g.p.bz=function(){return this.V};
|
|
g.p.EN=function(){return this.U};
|
|
g.p.wI=function(){this.publish("visibilitychange");var A=this.getVisibilityState(this.QC(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.nV(),this.WE(),this.bz(),this.EN());A!==this.T&&this.publish("visibilitystatechange");this.T=A};
|
|
g.p.l1=function(){Vbk(this.D);g.SN.prototype.l1.call(this)};g.G(g.XA,g.Y);g.p=g.XA.prototype;g.p.l1=function(){this.videoData=this.playerState=null;g.Y.prototype.l1.call(this)};
|
|
g.p.addCueRange=function(){};
|
|
g.p.zg=function(){};
|
|
g.p.tp=function(){};
|
|
g.p.pn=function(){return!1};
|
|
g.p.Nf=function(){return!1};
|
|
g.p.Om=function(){};
|
|
g.p.G9=function(){};
|
|
g.p.Ln=function(){return[]};
|
|
g.p.VF=function(){};
|
|
g.p.wW=function(){};
|
|
g.p.a_=function(){return 1};
|
|
g.p.getAudioTrack=function(){return this.getVideoData().Ry};
|
|
g.p.ZH=function(){return null};
|
|
g.p.getAvailableAudioTracks=function(){return[]};
|
|
g.p.KO=function(){return[]};
|
|
g.p.Q9=function(){return[]};
|
|
g.p.t_=function(){return""};
|
|
g.p.Ef=function(){return[]};
|
|
g.p.R3=function(){};
|
|
g.p.Fb=function(){return 0};
|
|
g.p.getCurrentTime=function(){return 0};
|
|
g.p.SC=function(){};
|
|
g.p.bf=function(){};
|
|
g.p.Ov=function(){return{}};
|
|
g.p.getDuration=function(){return 0};
|
|
g.p.gQ=function(){return 0};
|
|
g.p.wX=function(){return 0};
|
|
g.p.nU=function(){return!1};
|
|
g.p.pX=function(){return 0};
|
|
g.p.rQ=function(){return 0};
|
|
g.p.m$=function(){return null};
|
|
g.p.G_=function(){return 0};
|
|
g.p.e5=function(){return!1};
|
|
g.p.bH=function(){return 0};
|
|
g.p.pD=function(){return null};
|
|
g.p.Fy=function(){return null};
|
|
g.p.vy=function(){return 0};
|
|
g.p.I5=function(){return 0};
|
|
g.p.A1=function(){return g.c(function(A){g.VK(A)})};
|
|
g.p.U0=OD(11);g.p.getPlaybackQuality=function(){return"auto"};
|
|
g.p.getPlaybackRate=function(){return 1};
|
|
g.p.getPlayerState=function(){this.playerState||(this.playerState=new g.Gu);return this.playerState};
|
|
g.p.getPlayerType=function(){return 0};
|
|
g.p.getPlaylistSequenceForTime=function(){return null};
|
|
g.p.b0=function(){return function(){}};
|
|
g.p.BA=function(){return""};
|
|
g.p.getPreferredQuality=function(){return"unknown"};
|
|
g.p.Vu=function(){};
|
|
g.p.getProximaLatencyPreference=function(){return 0};
|
|
g.p.vS=function(){return fr};
|
|
g.p.rB=function(){return null};
|
|
g.p.getStoryboardFormat=function(){return null};
|
|
g.p.getStreamTimeOffset=function(){return 0};
|
|
g.p.Dk=function(){return 0};
|
|
g.p.pY=function(){return 0};
|
|
g.p.EV=function(){return{jp:[],pJ:[],currentTime:0,zd:"",droppedVideoFrames:0,isGapless:!1,qV:!0,F4:0,fp:0,Cp:0,xd:0,uw:0,aR:[],jl:[],TY:null,fP:"0",sz:null,Fi:"",totalVideoFrames:0}};
|
|
g.p.getUserAudio51Preference=function(){return 0};
|
|
g.p.getUserPlaybackQualityPreference=function(){return""};
|
|
g.p.getVideoData=function(){this.videoData||(this.videoData=new g.Kr(this.L),g.W(this,this.videoData));return this.videoData};
|
|
g.p.WM=function(){return null};
|
|
g.p.Ur=function(){return null};
|
|
g.p.TP=function(){};
|
|
g.p.getVideoLoadedFraction=function(){return 0};
|
|
g.p.w6=function(){};
|
|
g.p.handleError=function(){};
|
|
g.p.tT=function(){};
|
|
g.p.BS=function(){};
|
|
g.p.SJ=OD(36);g.p.BF=function(){return!1};
|
|
g.p.hasSupportedAudio51Tracks=function(){return!1};
|
|
g.p.isAd=function(){return!1};
|
|
g.p.Hu=function(){return!1};
|
|
g.p.QC=function(){return!1};
|
|
g.p.isAtLiveHead=function(){return!1};
|
|
g.p.jR=function(){return!0};
|
|
g.p.isGapless=function(){return!1};
|
|
g.p.isHdr=function(){return!1};
|
|
g.p.r6=function(){return!1};
|
|
g.p.Im=function(){return!1};
|
|
g.p.lz=function(){return!1};
|
|
g.p.isProximaLatencyEligible=function(){return!1};
|
|
g.p.qV=function(){return!0};
|
|
g.p.VZ=function(){return!1};
|
|
g.p.AT=function(){return!1};
|
|
g.p.gG=function(){};
|
|
g.p.Qt=function(){};
|
|
g.p.Bp=function(){};
|
|
g.p.H4=function(){};
|
|
g.p.X6=function(){};
|
|
g.p.q9=function(){};
|
|
g.p.IS=function(){};
|
|
g.p.IU=OD(46);g.p.W9=OD(17);g.p.RS=function(){};
|
|
g.p.pauseVideo=function(){};
|
|
g.p.prefetchKeyPlay=function(){};
|
|
g.p.playVideo=function(){return g.c(function(A){return A.return()})};
|
|
g.p.C3=function(){};
|
|
g.p.J1=OD(23);g.p.ph=OD(29);g.p.wY=function(){};
|
|
g.p.Hn=function(){};
|
|
g.p.Qe=function(){};
|
|
g.p.TJ=function(){};
|
|
g.p.jd=function(){};
|
|
g.p.Ho=function(){};
|
|
g.p.q3=function(){};
|
|
g.p.Iw=function(){};
|
|
g.p.Rh=function(){};
|
|
g.p.dO=function(){};
|
|
g.p.lj=function(){};
|
|
g.p.aC=function(){};
|
|
g.p.removeCueRange=function(){};
|
|
g.p.fS=function(){};
|
|
g.p.Jf=function(){return[]};
|
|
g.p.GB=function(){};
|
|
g.p.UN=function(){};
|
|
g.p.qv=function(){};
|
|
g.p.gM=function(){};
|
|
g.p.Vx=function(){};
|
|
g.p.Zh=function(){};
|
|
g.p.Qb=function(){};
|
|
g.p.seekTo=function(){};
|
|
g.p.sendAbandonmentPing=function(){};
|
|
g.p.sendVideoStatsEngageEvent=function(){};
|
|
g.p.E5=function(){};
|
|
g.p.setLoop=function(){};
|
|
g.p.rS=function(){};
|
|
g.p.setMediaElement=function(){};
|
|
g.p.Mv=function(){};
|
|
g.p.setPlaybackRate=function(){};
|
|
g.p.O9=function(){};
|
|
g.p.fC=function(){};
|
|
g.p.Z2=function(){};
|
|
g.p.setProximaLatencyPreference=function(){};
|
|
g.p.Jm=function(){};
|
|
g.p.T8=function(){};
|
|
g.p.cg=function(){};
|
|
g.p.i_=function(){};
|
|
g.p.hW=function(){};
|
|
g.p.setUserAudio51Preference=function(){};
|
|
g.p.OO=function(){};
|
|
g.p.R0=function(){return!1};
|
|
g.p.m2=function(){};
|
|
g.p.bF=function(){return!1};
|
|
g.p.dK=function(){};
|
|
g.p.Am=function(){};
|
|
g.p.hm=function(){};
|
|
g.p.stopVideo=function(){};
|
|
g.p.subscribe=function(){return NaN};
|
|
g.p.tA=function(){};
|
|
g.p.togglePictureInPicture=function(){};
|
|
g.p.GJ=function(){return 0};
|
|
g.p.XS=function(){};
|
|
g.p.unsubscribe=function(){return!1};
|
|
g.p.P4=function(){};
|
|
g.p.WG=function(){return!1};
|
|
g.p.bD=function(){};
|
|
g.p.UA=function(){};
|
|
g.p.A8=function(){};g.G(UZ0,g.Y);g.p=UZ0.prototype;g.p.get=function(A){OY(this);var L=this.data.find(function(B){return B.key===A});
|
|
return L?L.value:null};
|
|
g.p.R9=function(){OY(this);return this.data.map(function(A){return A.value})};
|
|
g.p.set=function(A,L,B){this.remove(A,!0);OY(this);A={key:A,value:L,expire:Infinity};B&&isFinite(B)&&(B*=1E3,A.expire=(0,g.bc)()+B);for(this.data.push(A);this.data.length>this.V;)(B=this.data.shift())&&cd(this,B,!0);EY(this)};
|
|
g.p.remove=function(A,L){L=L===void 0?!1:L;var B=this.data.find(function(f){return f.key===A});
|
|
B&&(cd(this,B,L),g.o8(this.data,function(f){return f.key===A}),EY(this))};
|
|
g.p.removeAll=function(A){if(A=A===void 0?!1:A)for(var L=g.m(this.data),B=L.next();!B.done;B=L.next())cd(this,B.value,A);this.data=[];EY(this)};
|
|
g.p.l1=function(){var A=this;g.Y.prototype.l1.call(this);this.data.forEach(function(L){cd(A,L,!0)});
|
|
this.data=[]};
|
|
g.G(YyC,g.Y);g.p=YyC.prototype;g.p.get=function(A){var L=this.map.get(A);return L?L.tY<=(0,g.bc)()?(this.remove(A,!0),null):L.value:null};
|
|
g.p.R9=function(){for(var A=[],L=(0,g.bc)(),B=[],f=g.m(this.map.entries()),K=f.next();!K.done;K=f.next()){var V=g.m(K.value);K=V.next().value;V=V.next().value;V.tY<=L?B.push(K):A.push(V.value)}if(B.length>0){L=g.m(B);for(B=L.next();!B.done;B=L.next())Md(this,B.value,!0);Yo(this)}return A};
|
|
g.p.set=function(A,L,B){this.map.has(A)&&Md(this,A,!0);var f=(0,g.bc)(),K=Infinity;B!==void 0&&B!==null&&isFinite(B)&&(K=f+B*1E3);this.map.set(A,{value:L,tY:K});isFinite(K)&&(this.N.enqueue(K,A),Un(this.N)===K&&Yo(this));if(!Number.isNaN(this.U))for(A=this.map.keys();this.map.size>this.U;){L=A.next();if(L.done)break;Md(this,L.value,!0)}};
|
|
g.p.remove=function(A,L){Md(this,A,L===void 0?!1:L)&&Yo(this)};
|
|
g.p.removeAll=function(A){if((A===void 0?0:A)&&this.W){A=g.m(this.map.values());for(var L=A.next();!L.done;L=A.next())this.W(L.value.value)}this.map.clear();this.N.clear();this.V.stop()};
|
|
g.p.l1=function(){g.Y.prototype.l1.call(this);this.removeAll(!0)};g.G(g.UY,g.Y);g.p=g.UY.prototype;g.p.l1=function(){for(var A=g.m(Object.values(this.V)),L=A.next();!L.done;L=A.next())L.value.dispose();qye(this);this.G.dispose();g.Y.prototype.l1.call(this)};
|
|
g.p.Jz=function(A){return A?A===1?this.yj:this.W.getVideoData().enableServerStitchedDai&&A===2?this.W.getVideoData().dL?this.V[2]||this.W:this.W:this.V[A]||null:this.W};
|
|
g.p.Yy=function(A){var L=A.cpn;A=A.playerType;if(L)a:{A=g.m(Object.values(this.V));for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.t_()===L){L=B;break a}L=this.U[L]||null}else L=A?this.Jz(A):this.W;return L};
|
|
g.p.kP=function(){return this.yj};
|
|
g.p.ij=function(A){this.yj=A};
|
|
g.p.e4=function(){return this.W};
|
|
g.p.Ok=function(A){this.W=A;Wd(this)};
|
|
g.p.Gr=OD(42);g.p.jw=OD(44);DcS.prototype.eg=function(A,L){for(var B=0;B<10;B++){var f=this.N[B],K=f+(B===0?A:0),V=1*Math.pow(2,B);if(K<=V)break;f=Math.min(1,(K-V*.5)/f);for(K=0;K<16;K++)V=this.values[B*16+K]*f,this.values[(B+1)*16+K]+=V,this.N[B+1]+=V,this.values[B*16+K]-=V,this.N[B]-=V}f=B=0;K=8192;L>8192&&(B=Math.ceil(Math.log(L/8192)/Math.log(2)),f=8192*Math.pow(2,B-1),K=f*2);B+2>16?this.values[15]+=A:(L=(L-f)/(K-f),this.values[B]+=A*(1-L),this.values[B+1]+=A*L);this.N[0]+=A};
|
|
DcS.prototype.pw=function(){var A=A===void 0?this.W:A;var L=L===void 0?.02:L;var B=B===void 0?.98:B;for(var f=this.V,K=0;K<16;K++)f[K]=this.values[K];K=this.N[0];for(var V=1;V<11;V++){var J=this.N[V];if(J===0)break;for(var R=Math.min(1,(A-K)/J),Z=0;Z<16;Z++)f[Z]+=this.values[V*16+Z]*R;K+=J*R;if(R<1)break}for(V=A=J=0;V<16;V++){R=J+f[V]/K;A+=Math.max(0,Math.min(R,B)-Math.max(J,L))*(V>0?8192*Math.pow(2,V-1):0);if(R>B)break;J=R}return A/(B-L)};qd.prototype.eg=function(A,L){A=Math.min(this.N,Math.max(1,Math.round(A*this.resolution)));A+this.W>=this.N&&(this.V=!0);for(;A--;)this.values[this.W]=L,this.W=(this.W+1)%this.N;this.I$=!0};
|
|
qd.prototype.percentile=function(A){var L=this;if(!this.V&&this.W===0)return 0;this.I$&&(g.I8(this.D,function(B,f){return L.values[B]-L.values[f]}),this.I$=!1);
|
|
return this.values[this.D[Math.round(A*((this.V?this.N:this.W)-1))]]||0};
|
|
qd.prototype.pw=function(){return this.T?(this.percentile(this.U-this.T)+this.percentile(this.U)+this.percentile(this.U+this.T))/3:this.percentile(this.U)};g.G(dcw,g.Y);dcw.prototype.sx=function(){var A;(A=this.Ex)==null||A.start();sh(this)&&this.policy.G&&this.cn()};pE0.prototype.J=function(A){return this.experiments.GL(A)};g.G(gpD,g.nm);g.p=gpD.prototype;g.p.RH=function(){};
|
|
g.p.t_=function(){return this.videoData.clientPlaybackNonce};
|
|
g.p.getVideoData=function(){if(g.nm.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state")){var A=qHS(this.TV,g.nm.prototype.getCurrentTime.call(this))||g.nm.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==A.clientPlaybackNonce&&GSD(this.U,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:A.clientPlaybackNonce});return this.videoData}return qHS(this.TV,g.nm.prototype.getCurrentTime.call(this))||g.nm.prototype.getVideoData.call(this)};
|
|
g.p.getCurrentTime=function(A){var L=g.nm.prototype.getCurrentTime.call(this);if(g.nm.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state")){this.N===0?A||(L-=this.startTimeSecs,g.nm.prototype.getVideoData.call(this).J("html5_ssdai_log_missed_ad_impressions")&&this.W&&this.V&&L>1&&this.Hn("sdai-admiss",{cpn:this.t_(),ct:L.toFixed(3),pfs:this.V}),this.W=!1):A&&(L=this.N);var B=A?this.TV.wM||g.nm.prototype.getCurrentTime.call(this):YHC(this.TV,g.nm.prototype.getCurrentTime.call(this));
|
|
L!==B&&GSD(this.U,"time"+(A!=null?A:!1),{time:L,ref:B,ct:A!=null?A:!1})}else L=A?this.TV.wM||L:YHC(this.TV,L);return L};
|
|
g.p.getDuration=function(){if(g.nm.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state")){var A=Wg7(this.TV,g.nm.prototype.getCurrentTime.call(this));this.duration!==A&&GSD(this.U,"duration",{dur:this.duration,ref:A});return this.duration}return Wg7(this.TV,g.nm.prototype.getCurrentTime.call(this))};
|
|
g.p.Vr=function(A){this.duration=A};g.eQ.prototype.zX=function(A,L){if(L===1)return this.N.get(A);if(L===2)return this.V.get(A);if(L===3)return this.W.get(A)};
|
|
g.eQ.prototype.j7=OD(68);g.eQ.prototype.Cg=function(A,L,B,f){B={c$:f,Lx:B};L?this.V.set(A,B):this.N.set(A,B)};
|
|
g.eQ.prototype.clearAll=function(){this.N.clear();this.V.clear();this.W.clear()};
|
|
sV6.prototype.clear=function(){this.W=[];this.V.clear();this.U.clear();this.N.clear()};
|
|
sV6.prototype.Yy=function(A){var L=A.cpn;A=A.XA;if(L&&(L=this.V.get(L))||A&&(L=(this.D?this.V:this.U).get(A)))return L};
|
|
g.G(g.nb,g.Y);g.p=g.nb.prototype;g.p.onCueRangeEnter=function(A){var L=A.getId();this.Xr({oncueEnter:1,cpn:L,start:A.start,end:A.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});var B=this.N.Yy({cpn:L});this.Xr({enterAdCueRange:1});var f=this.xJ||this.GK().cpn,K;f=(K=this.N.Yy({cpn:f}))!=null?K:this.GK();B&&(K=this.playback.getCurrentTime(),B.startTimeSecs=A.start/1E3,B={bx:f,lx:B,kT:K},N4k(this,L,A.start/1E3,K),Bu(this,B));this.Ex=!1};
|
|
g.p.uf=function(A,L,B){if(A&&L)if((this.app.mD().U[A]||null)===null){var f;this.Xr({nocpn:A,active:(f=this.app.mD().N)==null?void 0:f.t_()})}else{this.Ex=B!=null?B:!1;var K;B=((K=this.app.mD().N)==null?void 0:K.t_())||this.playback.t_();var V;K=(V=this.N.Yy({cpn:B}))!=null?V:this.GK();var J;V=(J=this.N.Yy({cpn:A}))!=null?J:this.GK();V.startTimeSecs=L;V.playerType===2&&(V.n5=V.n5!=null?Math.min(V.n5,L):L);J=this.playback.getCurrentTime();N4k(this,B,L,J);Bu(this,{bx:K,lx:V,kT:J});if(this.playback.getVideoData().aA()&&
|
|
A===this.playback.t_())if(L=this.jI.get(B)){var R;A=g.m((R=this.JF.get(L))!=null?R:[]);for(R=A.next();!R.done;R=A.next()){R=R.value;B=J=void 0;V=this.app.mD();B=B===void 0?"":B;if(K=V.U[R])V.N===K&&(V.N=null),V.D===K&&(V.D=null),R===((J=V.X.get(B))==null?void 0:J.t_())&&V.X.delete(B),delete V.U[R];this.Vj.delete(R);this.jI.delete(R)}this.JF.delete(L)}else this.Xr({no_abid:A})}};
|
|
g.p.D9=function(A,L){if(A===this.playback.t_())vd(this.app.mD(),this.playback,!1);else{var B=this.Vj.get(A);B?(A=!this.Ex,B.N=0,B.startTimeSecs=L,B.V=A===void 0?!0:A,B.W=!0,vd(this.app.mD(),B,!0)):this.Xr({nop_s:A})}};
|
|
g.p.onCueRangeExit=function(A){for(var L=this.playback.getCurrentTime()*1E3,B=A.getId(),f=g.m(this.W.values()),K=f.next();!K.done;K=f.next())if(K=K.value,K.getId()!==B&&L>=K.start&&L<=K.end)return;if(B=this.N.Yy({cpn:B}))L=this.playback.getCurrentTime(),f=this.GK(),f.startTimeSecs=A.end/1E3,B={bx:B,lx:f,kT:L},N4k(this,this.playback.t_(),A.end/1E3,L),Bu(this,B)};
|
|
g.p.GK=function(){return{cpn:this.playback.t_(),durationMs:0,UE:0,playerType:1,NQ:0,videoData:this.playback.getVideoData(),errorCount:0,L9:""}};
|
|
g.p.seekTo=function(A,L,B,f){A=A===void 0?0:A;L=L===void 0?{}:L;B=B===void 0?!1:B;f=f===void 0?null:f;oH(this,this.xJ);if(this.playback.getVideoData().aA()&&A<=this.wM)this.playback.pauseVideo(),this.wM=0,FJD(this,A);else if(this.Ex=this.yj=!0,B)l0k(this,A,L);else{B=this.app.e4();var K=B===this.wT?this.Nl:null;AZ(this,!1);this.Uv=A;this.mH=L;f!=null&&this.ql.start(f);B&&(this.Nl=K||B.getPlayerState(),B.hm(L),this.wT=B)}};
|
|
g.p.l1=function(){AZ(this,!1);eBw(this);np7(this);g.Y.prototype.l1.call(this)};
|
|
g.p.GM=function(A,L,B){if(B&&L){var f=this.pO.get(A);if(f){f.locations||(f.locations=new Map);var K=Number(L.split(";")[0]);B=new g.Fk(B);this.Xr({hdlredir:1,itag:L,seg:A,hostport:wy(21,B)});f.locations.set(K,B)}}};
|
|
g.p.j2=function(A,L,B,f,K,V){var J=Number(B.split(";")[0]),R=f===3;A=a0D(this,A,L,f,B,V);this.Xr({gdu:1,seg:L,itag:J,pb:""+!!A});if(!A)return LZ(this,L,R),null;A.locations||(A.locations=new Map);if(!A.locations.has(J)){var Z,N;V=(Z=A.videoData.getPlayerResponse())==null?void 0:(N=Z.streamingData)==null?void 0:N.adaptiveFormats;if(!V)return this.Xr({gdu:"noadpfmts",seg:L,itag:J}),LZ(this,L,R),null;Z=V.find(function(I){return I.itag===J});
|
|
if(!Z||!Z.url){var F=A.videoData.videoId;A=[];var D=g.m(V);for(f=D.next();!f.done;f=D.next())A.push(f.value.itag);this.Xr({gdu:"nofmt",seg:L,vid:F,itag:J,fullitag:B,itags:A.join(",")});LZ(this,L,R);return null}A.locations.set(J,new g.Fk(Z.url,!0))}V=A.locations.get(J);if(!V)return this.Xr({gdu:"nourl",seg:L,itag:J}),LZ(this,L,R),null;V=new cq(V);this.Pz&&(V.get("dvc")?this.Xr({dvc:V.get("dvc")||""}):V.set("dvc","webm"));(f=(D=this.zX(L-1,f,K))==null?void 0:D.c$)&&V.set("daistate",f);A.Xe&&L>=A.Xe&&
|
|
V.set("skipsq",""+A.Xe);(D=this.playback.getVideoData().clientPlaybackNonce)&&V.set("cpn",D);D=[];A.L9&&(D=LJQ(this,A.L9),D.length>0&&V.set("acpns",D.join(",")));R||this.pO.set(L,A);R=null;R=V.get("aids");f=V.MQ();(f==null?void 0:f.length)>2048&&this.Xr({urltoolong:1,sq:L,itag:J,len:f.length});this.sx&&(f&&(V=A.cpn,K=A.L9,SK0(this,V,K),K&&!this.GZ.has(K)&&(V=V4C(this,V,K),Z=JoS(this,K),this.Xr({iofa:V}),this.Xr({noawnzd:Z-V}),this.Xr({acpns:D.join("."),aids:(F=R)==null?void 0:F.replace(/,/g,".")}),
|
|
this.GZ.add(K))),this.Xr({gdu:"v",seg:L,itag:B,ast:A.UE.toFixed(3),alen:A.durationMs.toFixed(3),acpn:A.cpn,avid:A.videoData.videoId}));return f};
|
|
g.p.s5=function(A,L,B){B=B===void 0?!1:B;var f=ujL(this,A,L);if(f){this.jD&&(this.ZM=f);var K=void 0,V=f.L9;if(V){this.Xr({skipadonsq:L,sts:B,abid:V,acpn:f.cpn,avid:f.videoData.videoId});B=this.N.N.get(V);if(!B)return;B=g.m(B);for(V=B.next();!V.done;V=B.next())V=V.value,V.Xe=L,V.jf=A,V.UE>f.UE&&(K=V)}oH(this,this.xJ);this.V=f.cpn;oV7(this);this.api.J("html5_ssdai_enable_media_end_cue_range")&&this.playback.XS(this.V);A=this.playback.getCurrentTime();fVQ(this,f,K,A,A,!1,!0);Z_0(this)}};
|
|
g.p.hM=function(){for(var A=g.m(this.N.W),L=A.next();!L.done;L=A.next())L=L.value,L.Xe=NaN,L.jf=NaN;oV7(this);this.Xr({rsac:"resetSkipAd",sac:this.V});this.Ox.delete(this.V);this.V="";this.jD&&(this.ZM=void 0)};
|
|
g.p.zX=function(A,L,B){return this.Wn.zX(A,L,B)};
|
|
g.p.j7=OD(67);
|
|
g.p.Cg=function(A,L,B,f,K,V,J,R){B.length>0&&this.Xr({onssinfo:1,sq:A,start:L.toFixed(3),cpns:B.join(","),ds:f.join(","),isVideo:V?1:0});if(this.jD&&this.ZM&&this.ZM.Xe&&B.length>0)for(var Z=g.m(B),N=Z.next();!N.done;N=Z.next())if(N=N.value,N===this.ZM.cpn){this.Po!==N&&(this.Xr({skiperror:1,sq:A,acpn:this.ZM.cpn,skipsq:this.ZM.Xe||0}),this.Po=N);break}R&&this.Wn.Cg(A,V,J,R);if(V){if(B.length&&f.length)for(this.Ox.has(B[0])&&this.Xr({skipfail:1,sq:A,acpn:B[0]}),A=L+this.Dk(),V=0;V<B.length;V++)if(Z=B[V],
|
|
R=A,A=R+f[V],Z=this.N.Yy({cpn:Z}))R-=K[V],Z.n5=Z.n5!=null?Math.min(Z.n5,R):R;if(B.length&&f.length)for(V=(L+this.Dk())*1E3,L=0;L<B.length;L++)if(R=B[L],Z=f[L]*1E3,R===this.playback.getVideoData().clientPlaybackNonce)V+=Z;else{this.TZ.has(R)||(this.Xr({adCpnFromEmsg:1}),this.TZ.add(R));N=0;L<K.length&&(N=K[L]*1E3);if(A=this.W.get(R))A.start=V-N,A.end=V+Z,L===B.length-1&&(A.end+=KJL(this,R,J)),this.playback.q9();else for(A=new g.WR(V-N,V+Z,{id:R,namespace:"serverstitchedcuerange",priority:9}),this.W.set(R,
|
|
A),this.Xr({newAdCR:1,cpn:R,startTime:A.start,endTime:A.end}),L===B.length-1&&(A.end+=KJL(this,R,J)),this.playback.addCueRange(A),V=this.playback.Ln("serverstitchedcuerange",36E5),V=g.m(V),R=V.next();!R.done;R=V.next())this.W.delete(R.value.getId());V=A.end}}};
|
|
g.p.Dk=function(){return this.playback.Dk()};
|
|
g.p.M4=function(A){this.playback.Hn("timelineerror",{e:A})};
|
|
g.p.w6=function(A){this.X&&this.D&&this.G.push(this.D);A&&this.D&&this.S4.push(this.D);this.D=null;this.playback.w6(A)};
|
|
g.p.T3=function(){this.Xr({rstdaist:1});this.Wn.clearAll()};
|
|
g.p.V_=function(A){var L;if(A!==((L=this.D)==null?void 0:L.identifier))this.Xr({ignorenoad:A});else{this.m1.add(A);this.Xr({noadrcv:A});var B;((B=this.D)==null?void 0:B.identifier)===A&&uE(this)}};
|
|
g.p.IG=function(A){if(this.fX)return this.Xr({dai_disabled:A.event}),!1;if(this.playback.getVideoData().aA()&&(A.event==="continue"||A.event==="stop"))return!1;var L=HB(this.api.SI());if(L=L?L.IG(A):!1)this.U={pW:A.identifier,xn:A.startSecs};else if(this.U&&this.U.pW===A.identifier&&A.startSecs>this.U.xn+1){this.Xr({cueStChg:A.identifier,oldSt:this.U.xn.toFixed(3),newSt:A.startSecs.toFixed(3),abid:this.U.C2});if(this.U.C2){var B=A.startSecs-this.U.xn,f=this.N.N.get(this.U.C2);if(f){f=g.m(f);for(var K=
|
|
f.next();!K.done;K=f.next())K=K.value,K.UE>=0&&(K.UE+=B*1E3,this.L.J("html5_ssdai_update_timeline_on_start_time_change")&&(K.NQ+=B*1E3),this.Xr({newApEt:K.UE,newApPrt:K.NQ,acpn:K.cpn}))}}this.U.xn=A.startSecs}L?this.Ys.add(A.identifier):this.Ys.has(A.identifier)&&this.Ys.delete(A.identifier);return L};
|
|
g.p.Tl=function(A){var L=this;if(this.L.J("html5_lifa_ignore_multiple_skips")&&this.qp)return this.Xr({ufs_ad:this.V,ufs_cur:this.xJ,ufs_cont:this.GK().cpn}),!1;oH(this,this.xJ);this.playback.pauseVideo();var B=this.playback.getCurrentTime(),f=this.N.Yy({cpn:this.xJ});if(!f)return this.Xr({skipFail:B}),!1;this.V=this.xJ;this.yj=!1;this.api.J("html5_ssdai_enable_media_end_cue_range")&&this.playback.XS(this.V);this.L2(f.L9);D7C(this,f,this.GK(),A);FJD(this,B,{seekSource:89,zZ:"lifa_skip"});this.qp||
|
|
(this.qp=this.events.Y(this.api,"progresssync",function(){Jq(L.api.zH(),(0,g.bc)(),"ad_to_video");L.qp&&(L.events.J$(L.qp),L.qp=null)}));
|
|
return!0};
|
|
g.p.L2=function(A){if(this.playback.getVideoData().aA()){var L=this.N.N.get(A);if(L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=this.W.get(B.cpn);this.W.delete(B.cpn);f&&this.playback.removeCueRange(f);TrD(this.N,B)}this.pO.clear();L=this.N;var K;B=(K=L.N.get(A))!=null?K:[];K=g.m(B);for(B=K.next();!B.done;B=K.next())TrD(L,B.value);L.N.delete(A);(A=this.zV.get(A))&&this.a8&&this.playback.gM(A)}}};
|
|
g.p.Xr=function(A,L){((L===void 0?0:L)||this.sx)&&this.playback.Hn("sdai",A)};
|
|
var $cL=0;g.G(IVD,g.Y);g.p=IVD.prototype;g.p.onCueRangeEnter=function(A){if(this.N===this.app.e4()){var L=this.D.get(A);L?GsE(this,L.target,L.rk,A):this.Ho("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:A.toString()})}else if(L=this.W.find(function(K){return K.BZ.rh===A})){var B=L.BZ,f=B.target;
|
|
B=B.rk;f?GsE(this,f,B,A):gVk(this,L.NQ,B,A)}};
|
|
g.p.onQueuedVideoLoaded=function(){var A=this.X;JZ(this);if(A){if(!V$(this,A)){var L=this.app.e4();this.Ho("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:L==null?void 0:L.getVideoData().clientPlaybackNonce,ccpn:""+A.playerVars.cpn})}this.app.e4().addCueRange(A.BZ.rh)}};
|
|
g.p.seekTo=function(A,L,B,f){A=A===void 0?0:A;L=L===void 0?{}:L;f=f===void 0?null:f;if(B===void 0?0:B)d7L(this,A,L);else{B=this.app.e4()||null;var K=B===this.U?this.T:null;Sh(this,!1);this.Wn=A;this.yj=L;f!=null&&this.G.start(f);B&&(this.T=K||B.getPlayerState(),B.hm(),this.U=B)}};
|
|
g.p.qP=function(A){g.wk(A,128)&&b_0(this)};
|
|
g.p.isManifestless=function(){return ta(this.N.getVideoData())};
|
|
g.p.l1=function(){Sh(this,!1);ksC(this);g.Y.prototype.l1.call(this)};
|
|
g.p.Ho=function(A,L){this.N.Ho(new g.K$(A,L))};
|
|
var wAC=0;var T47="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_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.G(RH,g.Y);RH.prototype.gV=function(A){if(A)return this.W.get(A)};
|
|
RH.prototype.l1=function(){this.N.removeAll();this.W.removeAll();g.Y.prototype.l1.call(this)};g.IiK=er(function(){var A=window.AudioContext||window.webkitAudioContext;try{return new A}catch(L){return L.name}});g.G(i_8,g.q);g.p=i_8.prototype;g.p.zf=function(){g.Z1(this.element,g.pf.apply(0,arguments))};
|
|
g.p.UN=function(){this.yK&&(this.yK.removeEventListener("focus",this.k_),g.$9(this.yK),this.yK=null)};
|
|
g.p.GC=function(){this.TL();var A=this.app.K();A.iD||this.zf("tag-pool-enabled");A.T&&this.zf(g.m6.HOUSE_BRAND);A.playerStyle==="gvn"&&(this.zf("ytp-gvn"),this.element.style.backgroundColor="transparent");A.zV&&(this.YL=g.fV("yt-dom-content-change",this.resize,this));this.Y(window,"orientationchange",this.resize,this);this.Y(window,"resize",this.resize,this)};
|
|
g.p.Yc=function(A){g.qM(this.app.K());this.Wp=!A;Z$(this)};
|
|
g.p.resize=function(){if(this.yK){var A=this.yN();if(!A.isEmpty()){this.app.rT.isFullscreen()&&ek()&&this.Vn.start();var L=!g.RC(A,this.PE.getSize()),B=co6(this);L&&(this.PE.width=A.width,this.PE.height=A.height);A=this.app.K();(B||L||this.fN||A.zV)&&this.app.rT.publish("resize",this.getPlayerSize())}}};
|
|
g.p.cF=function(A,L){this.updateVideoData(L)};
|
|
g.p.updateVideoData=function(A){if(this.yK){var L=this.app.K();ed&&(this.yK.setAttribute("x-webkit-airplay","allow"),A.title?this.yK.setAttribute("title",A.title):this.yK.removeAttribute("title"));this.yK.setAttribute("controlslist","nodownload");L.bA&&A.videoId?this.yK.poster=A.g1("default.jpg"):L.experiments.Qf().N.Iv(g7B)&&Kn()&&(vL!=null?vL:0)>=10&&(this.yK.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}L=g.XZ(A,"yt:bgcolor");this.Q8.style.backgroundColor=
|
|
L?L:"";this.hc=F$(g.XZ(A,"yt:stretch"));this.fR=F$(g.XZ(A,"yt:crop"),!0);g.D1(this.element,"ytp-dni",A.OE);this.resize()};
|
|
g.p.setGlobalCrop=function(A){this.qk=F$(A,!0);this.resize()};
|
|
g.p.setCenterCrop=function(A){this.s2=A;this.resize()};
|
|
g.p.Fc=function(){};
|
|
g.p.getPlayerSize=function(){var A=this.app.K(),L=this.app.rT.isFullscreen(),B=A.externalFullscreen&&g.MM(A);if(L&&ek()&&!B)return new g.Sr(window.outerWidth,window.outerHeight);B=!isNaN(this.vN.width)&&!isNaN(this.vN.height);var f=this.app.K().J("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.K().J("web_watch_enable_fs_squeezeback_panels");if(L&&!B&&f)return new g.Sr(this.element.clientWidth,this.element.clientHeight);if(L||A.gy){if(window.matchMedia){A="(width: "+window.innerWidth+
|
|
"px) and (height: "+window.innerHeight+"px)";this.tK&&this.tK.media===A||(this.tK=window.matchMedia(A));var K=this.tK&&this.tK.matches}if(K)return new g.Sr(window.innerWidth,window.innerHeight)}else if(B)return this.vN.clone();return new g.Sr(this.element.clientWidth,this.element.clientHeight)};
|
|
g.p.yN=function(){var A=this.app.K().J("enable_desktop_player_underlay"),L=this.getPlayerSize(),B=g.Am(this.app.K().experiments,"player_underlay_min_player_width");return A&&this.If&&L.width>B?(A=g.Am(this.app.K().experiments,"player_underlay_video_width_fraction"),new g.Sr(Math.min(L.height*this.getVideoAspectRatio(),L.width*A),Math.min(L.height,L.width*A/this.getVideoAspectRatio()))):L};
|
|
g.p.getVideoAspectRatio=function(){return isNaN(this.hc)?XAQ(this):this.hc};
|
|
g.p.getVideoContentRect=function(A){var L=this.yN();A=O_y(this,L,this.getVideoAspectRatio(),A);return new g.oR((L.width-A.width)/2,(L.height-A.height)/2,A.width,A.height)};
|
|
g.p.Nn=function(A){this.If=A;this.resize()};
|
|
g.p.kQ=function(){return this.v5};
|
|
g.p.onMutedAutoplayChange=function(){Z$(this)};
|
|
g.p.setInternalSize=function(A){g.RC(this.vN,A)||(this.vN=A,this.resize())};
|
|
g.p.l1=function(){this.YL&&g.KV(this.YL);this.UN();g.q.prototype.l1.call(this)};g.p=YKe.prototype;g.p.click=function(A,L){this.elements.has(A);this.N.has(A);var B=g.sF();B&&A.visualElement&&g.f1(B,A.visualElement,L)};
|
|
g.p.createClientVe=function(A,L,B,f){var K=this;f=f===void 0?!1:f;this.elements.has(A);this.elements.add(A);B=g8(B);A.visualElement=B;var V=g.sF(),J=g.r8();V&&J&&(g.h_("combine_ve_grafts")?I4(DD(),B,J):g.fg(g.Pb)(void 0,V,J,B));L.addOnDisposeCallback(function(){K.elements.has(A)&&K.destroyVe(A)});
|
|
f&&this.W.add(A)};
|
|
g.p.createServerVe=function(A,L,B){var f=this;B=B===void 0?!1:B;this.elements.has(A);this.elements.add(A);L.addOnDisposeCallback(function(){f.destroyVe(A)});
|
|
B&&this.W.add(A)};
|
|
g.p.destroyVe=function(A){this.elements.has(A);this.elements.delete(A);this.V.delete(A);this.N.delete(A);this.W.delete(A)};
|
|
g.p.qf=function(A,L){this.clientPlaybackNonce!==L&&(this.clientPlaybackNonce=L,dS(DD(),A),U7v(this))};
|
|
g.p.setTrackingParams=function(A,L){this.elements.has(A);L&&(A.visualElement=g.jB(L))};
|
|
g.p.xP=function(A,L,B){this.elements.has(A);L?this.N.add(A):this.N.delete(A);var f=g.sF(),K=A.visualElement;this.W.has(A)?f&&K&&(L?g.ou(f,[K]):g.BP(f,[K])):L&&!this.V.has(A)&&(f&&K&&g.L1(f,K,void 0,B),this.V.add(A))};
|
|
g.p.hasVe=function(A){return this.elements.has(A)};g.G(FM,g.Y);FM.prototype.sendMessage=function(A){if(this.sN){if(this.N&&this.N.byteLength===A)var L=this.N;else{L=new Uint8Array(A);for(var B=0;A>0;){var f=new Uint8Array(Math.min(A,65536));crypto.getRandomValues(f);L.set(f,B);A-=f.length;B+=f.length}this.N=L}L.length>0&&L[0]++;B=performance.now();this.sN.postMessage({mainEventSent:B,data:L})}};
|
|
FM.prototype.onMessage=function(A){if(!(this.U>=1E4)){var L=A.timeStamp,B=performance.now();A=A.data;var f=A.mainEventSent;this.Hn("worker",{t1:(A.workerEventCreated-performance.timeOrigin-f).toFixed(3),t2:(A.workerEventProcessed-performance.timeOrigin-f).toFixed(3),t3:(L-f).toFixed(3),t4:(B-f).toFixed(3),data:Uint8Array.BYTES_PER_ELEMENT*A.data.length});this.U++}};
|
|
FM.prototype.l1=function(){this.W!==void 0&&(clearInterval(this.W),this.W=void 0);var A;(A=this.sN)==null||A.terminate();this.N=this.sN=void 0;this.Hn("workerDtor",{});g.Y.prototype.l1.call(this)};g.G(g.D$,g.Y);g.D$.create=function(A,L,B,f){try{var K=typeof A==="string"?A:"player"+g.$W(A),V=bZ[K];if(V){try{V.dispose()}catch(R){g.mL(R)}bZ[K]=null}var J=new g.D$(A,L,B,f);J.addOnDisposeCallback(function(){bZ[K]=null;J.CA&&J.CA()});
|
|
return bZ[K]=J}catch(R){throw g.mL(R),(R&&R instanceof Error?R:Error(String(R))).stack;}};
|
|
g.p=g.D$.prototype;g.p.WI=function(){return this.visibility};
|
|
g.p.ij=function(A){var L=this.kP();if(A!==L){A.getVideoData().autonavState=L.getVideoData().autonavState;L.P4(this.KI,this);var B=L.getPlaybackRate();L.dispose();this.e$.ij(A);A.setPlaybackRate(B);A.tA(this.KI,this);zeL(this)}};
|
|
g.p.dh=function(){this.xp||(this.xp=g.av(xn(),qgD()));return this.xp};
|
|
g.p.UN=function(A){if(this.mediaElement){this.Pd&&(this.events.J$(this.Pd),this.Pd=null);g.$_(this.Bq);this.e4().UN(!0,!1,A);this.template.UN();try{this.J("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Hd()}catch(L){g.CE(L)}this.mediaElement=null}};
|
|
g.p.Ok=function(A,L,B){if(A!==this.e4()){var f=null;if(B===void 0||!B){B=this.e4();f=B.getPlayerState();ru(this.eD,3);Op(this,"cuerangesremoved",B.Ef());this.MP&&!A.isGapless()&&B.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();B=A.R0()&&B.R0();this.Rv.WZ("iv_s");B=B===void 0?!0:B;var K;if(K=this.Af){K=this.Af;var V=this.mediaElement;K=!!V&&V===K.mediaElement}K&&(this.UN(),IH(this));K=this.e4();K.UN(!B);K.P4(this.eQ,this);K.getPlayerType()!==1&&K.dispose();B=this.e$;B.W=B.G;Wd(B)}A.getPlayerType()===
|
|
1&&this.ij(A);B=A.getPlayerType();K=this.e$.V[B]||null;A!==this.kP()&&A!==K&&(K==null||K.dispose(),this.e$.V[B]=A);this.e$.Ok(A);this.mediaElement&&A.setMediaElement(this.mediaElement);A.tA(this.eQ,this);A.AT()?kqQ(this,"setPresenting",!1):(this.cF("newdata",A,A.getVideoData()),f&&!g.tA(f,A.getPlayerState())&&this.HW(new g.dk(A.getPlayerState(),f)),L=L&&A.getPlayerType()===1,A.Im()&&!L&&this.cF("dataloaded",A,A.getVideoData()),(L=(L=A.getVideoData().W)&&L.video)&&this.rT.X3("onPlaybackQualityChange",
|
|
L.quality),Op(this,"cuerangesadded",A.Ef()),L=A.getPlayerState(),g.x(L,2)?Kyy(this):g.x(L,8)?A.playVideo():A.r6()&&A.pauseVideo(),L=this.kP(),A.getPlayerType()===2&&(A.getVideoData().hS=L.getVideoData().clientPlaybackNonce),A.getPlayerType()!==2||this.yC()||(A=A.getVideoData(),L.C3(A.clientPlaybackNonce,A.ql||"",A.breakType||0,A.EQ,A.videoId||"")))}};
|
|
g.p.hh=function(){this.kP()!==this.e4()&&this.Ok(this.kP())};
|
|
g.p.mD=function(){return this.e$};
|
|
g.p.Yy=function(A){return this.e$.Yy(A)};
|
|
g.p.Jz=function(A){return this.e$.Jz(A)};
|
|
g.p.kP=function(){return this.e$.kP()};
|
|
g.p.e4=function(){return this.e$.e4()};
|
|
g.p.Jp=OD(40);g.p.LHT=function(){Gj(this)||this.dN(5)};
|
|
g.p.XoL=function(){if(!Gj(this)){H7e(this);var A=this.e4(),L=A.getVideoData();this.L.J("html5_allow_multiview_tile_preload")&&L.GZ&&A.seekTo(Infinity);L=A.getPlayerState();A.r6()?this.pauseVideo():L.isOrWillBePlaying()&&this.playVideo()}};
|
|
g.p.canPlayType=function(A){return RT(A)};
|
|
g.p.K=function(){return this.L};
|
|
g.p.getVideoData=function(){return this.e4().getVideoData()};
|
|
g.p.e2=function(){return this.e4().m$()};
|
|
g.p.df=function(){return this.kP().getVideoData()};
|
|
g.p.getVideoLoadedFraction=function(A){return g.pZ(this,{playerType:A}).getVideoLoadedFraction()};
|
|
g.p.Pn=function(){return this.template};
|
|
g.p.SI=function(){return this.eD};
|
|
g.p.zH=function(){return this.Rv};
|
|
g.p.SZ=function(A,L,B){g.pZ(this,{playerType:L===void 0?1:L}).E5(A,void 0,B)};
|
|
g.p.OZ=function(){var A=this.eD.OZ();this.rT.publish("videoStatsPingCreated",A);return A};
|
|
g.p.getVolume=function(){return Math.round(this.rT.getVolume())};
|
|
g.p.isMuted=function(){return this.rT.isMuted()};
|
|
g.p.MW=function(){if(this.kP()===this.e4()&&this.Jw)return this.Jw.postId};
|
|
g.p.C2M=function(){var A=this;this.J("use_rta_for_player")||(g.wY(this.L)?g.po(this.L,g.Aj(this.getVideoData())).then(function(L){eg(xn(),L);ay6(A.getVideoData(),A.L,A.dh())}):ay6(this.getVideoData(),this.L,this.dh()))};
|
|
g.p.HG=function(A){this.rT.publish("poTokenVideoBindingChange",A)};
|
|
g.p.Xg=function(A){this.rT.publish("d6de4videobindingchange",A)};
|
|
g.p.NK=function(){this.xZ&&this.xZ.NK()};
|
|
g.p.qC=function(A){this.xZ=A};
|
|
g.p.lE=function(A){if(A===1){this.Rv.tick("vr");var L=this.e4();L.tp();CuD(this.Rv,L.getVideoData(),sn0(this));Rd8(this.eD)}L=this.L;if(dd(L)&&L.G||g.xi(L)){var B;(((B=this.e4().getVideoData())==null?0:B.enableServerStitchedDai)||!this.yC())&&this.rT.X3("onAdStateChange",A)}};
|
|
g.p.setLoopVideo=function(A){var L=this.e4();L===this.kP()&&L.e5()!==A&&(L.setLoop(A),this.rT.Kr("onLoopChange",A))};
|
|
g.p.getLoopVideo=function(){return this.e4().e5()};
|
|
g.p.setLoopRange=function(A){var L=!1;!!this.Jw!==!!A?L=!0:this.Jw&&A&&(L=this.Jw.startTimeMs!==A.startTimeMs||this.Jw.endTimeMs!==A.endTimeMs||this.Jw.postId!==A.postId||this.Jw.type!==A.type);if(L){L=this.e4();pr(L.getVideoData())&&L.Hn("slr",{et:(A==null?void 0:A.endTimeMs)||-1});L=this.kP();L.Jf("applooprange");if(A){var B=new g.WR(A.startTimeMs,A.endTimeMs,{id:"looprange",namespace:"applooprange"});L.addCueRange(B)}else{this.df().clipConfig=void 0;var f;((B=this.Jw)==null?void 0:B.type)!=="repeatChapter"||
|
|
isNaN(Number((f=this.Jw)==null?void 0:f.loopCount))||(B={loopCount:String(this.Jw.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.pE("repeatChapterLoopEvent",B))}this.Jw=A;this.rT.Kr("onLoopRangeChange",A||void 0);this.kP()===this.e4()&&(this.JW(),L.Om())}};
|
|
g.p.getLoopRange=function(){return this.Jw};
|
|
g.p.JW=function(){var A="",L=this.kP();this.Jw?L!==this.e4()?A="pnea":Fyk(this,L.getCurrentTime())&&(this.Jw.loopCount=0,A="ilr"):A="nlr";var B=this.e4();if(pr(B.getVideoData()))if(this.J("html5_gapless_log_loop_range_info")){var f,K;B.Hn("slrre",{rej:A,ct:L.getCurrentTime(),lst:(f=this.Jw)==null?void 0:f.startTimeMs,let:(K=this.Jw)==null?void 0:K.endTimeMs})}else B.Hn("slrre",{});A||dkw(this)};
|
|
g.p.setPlaybackRate=function(A,L){if(!isNaN(A)){A=oBy(this,A);var B=this.kP();B.getPlaybackRate()!==A&&(B.setPlaybackRate(A),L&&!this.L.U&&g.OS("yt-player-playback-rate",A),this.rT.X3("onPlaybackRateChange",A))}};
|
|
g.p.getCurrentTime=function(A,L){L=L===void 0?!0:L;var B=this.e$.VN;if(B)return B.getCurrentTime();A=(B=A===2&&this.getVideoData().enableServerStitchedDai)?this.e4():g.pZ(this,{playerType:A});return B&&this.QG?(B=this.e$.D)?B.getCurrentTime(L):A.getCurrentTime():L?(L=jh(this,A),mh(this,L.getCurrentTime(),L)):A.getCurrentTime()};
|
|
g.p.rQ=function(){var A=g.pZ(this,{playerType:void 0});A=jh(this,A);return mh(this,A.rQ(),A)};
|
|
g.p.getDuration=function(A,L){L=L===void 0?!0:L;var B=this.e$.VN;if(B)return B.getDuration();B=this.getVideoData();var f=A===2&&B.enableServerStitchedDai;var K=f?this.e4():g.pZ(this,{playerType:A});if(B.hasProgressBarBoundaries()&&!f){var V,J=Number((V=B.progressBarStartPosition)==null?void 0:V.utcTimeMillis),R;V=Number((R=B.progressBarEndPosition)==null?void 0:R.utcTimeMillis);if(!isNaN(J)&&!isNaN(V))return(V-J)/1E3}if(pr(B)&&!B.isLivePlayback)return Tj(this,A);if(L)return A=y$(this,K),mh(this,A.getDuration(),
|
|
A);if(f&&this.QG){if(this.J("html5_huli_ssdai_use_playback_state"))return A=this.e$,A=A.N===A.D?A.N:null,(A==null?void 0:A.getDuration())||0;var Z;return((Z=this.e$.D)==null?void 0:Z.getDuration())||0}return K.getDuration()};
|
|
g.p.wX=function(A){var L=g.pZ(this,{playerType:A});return this.yC(L)?(L=y$(this,L),L.wX()-L.getCurrentTime()+this.getCurrentTime(A)):L.wX()};
|
|
g.p.finishSegmentByCpn=function(){return[]};
|
|
g.p.GC=function(){this.template.GC();var A=this.rT;A.state.element=this.template.element;var L=A.state.element,B;for(B in A.state.N)A.state.N.hasOwnProperty(B)&&(L[B]=A.state.N[B]);(A=dWQ(this.template.element))&&this.events.Y(this.template,A,this.onFullscreenChange)};
|
|
g.p.getDebugText=function(A){var L=this.kP().Ov(A),B=this.e4();if(B!==this.kP()){B=B.Ov(A);for(var f=g.m(Object.keys(B)),K=f.next();!K.done;K=f.next())K=K.value,L["ad"+K]=B[K];if(A){B=L;f={};if(K=yl(document,"movie_player"))f.bounds=K.getBoundingClientRect(),f["class"]=K.className;K={};var V=g.sA("video-ads");V?(mkk(V,K),K.html=V.outerHTML):K.missing=1;V={};var J=g.sA("videoAdUiSkipContainer"),R=g.sA("ytp-ad-skip-button-container"),Z=g.sA("ytp-skip-ad-button"),N=J||R||Z;N?(mkk(N,V),V.ima=J?1:0,V.bulleit=
|
|
R?1:0,V.component=Z?1:0):V.missing=1;f=JSON.stringify({player:f,videoAds:K,skipButton:V});B.ad_skipBtnDbgInfo=f}}A&&this.mediaElement&&(L["0sz"]=""+(+Zr(this.mediaElement.getSize())===0),L.op=this.mediaElement.AY("opacity"),B=this.mediaElement.Gf().y+this.mediaElement.getSize().height,L.yof=""+(+B<=0),L.dis=this.mediaElement.AY("display"));A&&((A=(0,g.Ei)())&&(L.gpu=A),(A=this.L.playerStyle)&&(L.ps=A),this.L.Ex&&(L.webview=1),(A=this.webPlayerContextConfig.jsUrl)&&(L.js=A));L.debug_playbackQuality=
|
|
this.rT.getPlaybackQuality(1);L.debug_date=(new Date).toString();L.origin=window.origin;L.timestamp=Date.now();delete L.uga;delete L.q;return JSON.stringify(L,null,2)};
|
|
g.p.getFeedbackProductData=function(){var A={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.K().experiments.experimentIds.join(", "),player_release:S[5]},L=this.getPlayerStateObject().nh;L&&(A.player_error_code=L.errorCode,A.player_error_details=JSON.stringify(L.errorDetail));return A};
|
|
g.p.getPresentingPlayerType=function(A){if(this.appState===1)return 1;if(Gj(this))return 3;var L,B,f;return(A&&this.L.Qf().N.Iv(IgS)?(f=(L=this.e$.N)==null?void 0:L.isAd())!=null&&f:(B=this.QG)==null?0:vpe(B,this.getCurrentTime()))?2:this.e4().getPlayerType()};
|
|
g.p.wG=function(){return!1};
|
|
g.p.getPlayerStateObject=function(A){var L=this.e$.VN;return L?L.getPlayerState():g.pZ(this,{playerType:A}).getPlayerState()};
|
|
g.p.getAppState=function(){return this.appState};
|
|
g.p.CrL=function(A){switch(A.type){case "loadedmetadata":this.wS.start();A=g.m(this.mY);for(var L=A.next();!L.done;L=A.next())L=L.value,rMS(this,L.id,L.CWF,L.f2j,void 0,!1);this.mY=[];break;case "loadstart":this.Rv.WZ("gv");break;case "progress":case "timeupdate":LW(A.target.YJ())>=2&&this.Rv.WZ("l2s");break;case "playing":g.F1&&this.wS.start();if(g.wY(this.L))A=!1;else{L=g.Yn(this.SI());A=this.mediaElement.AY("display")==="none"||Zr(this.mediaElement.getSize())===0;var B=Nz(this.template),f=this.e4().getVideoData(),
|
|
K=g.cH(this.L);f=y7(f);L=!B||L||K||f||this.L.Ox;A=A&&!L}A&&(A=this.e4(),A.gG(),this.getVideoData().Cr||(this.getVideoData().Cr=1,this.WW(),A.playVideo()))}};
|
|
g.p.S9L=function(A){this.rT.Wo("onLoadProgress",A)};
|
|
g.p.hVr=function(){this.rT.publish("playbackstalledatstart")};
|
|
g.p.rf1=function(A,L){this.rT.publish("sabrCaptionsDataLoaded",A,L)};
|
|
g.p.MEx=function(A){this.e4().T8(A)};
|
|
g.p.DUF=function(A){this.e4().Jm(A)};
|
|
g.p.xQx=function(A){A=jh(this,this.e4());A=mh(this,A.getCurrentTime(),A);this.rT.X3("onVideoProgress",A);this.L.a7&&yMv(this,this.visibility.nV())&&this.pauseVideo()};
|
|
g.p.F1x=function(){this.rT.X3("onAutoplayBlocked");var A=this.e4().getVideoData();A&&(A.e0=!0);g.MM(this.L)&&(A={autoplayBrowserPolicy:QG(),autoplayIntended:CP(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.pE("embedsAutoplayStatusChanged",A))};
|
|
g.p.Y94=function(){this.rT.publish("progresssync")};
|
|
g.p.j8s=function(){this.rT.Wo("onPlaybackPauseAtStart")};
|
|
g.p.NfF=function(A){if(this.getPresentingPlayerType()===1){g.wk(A,1)&&!g.x(A.state,64)&&this.df().isLivePlayback&&this.kP().isAtLiveHead()&&this.rT.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.wk(A,2)){if(this.Jw&&this.Jw.endTimeMs>=(this.getDuration()-1)*1E3){dkw(this);return}Kyy(this)}if(g.x(A.state,128)){var L=A.state;this.cancelPlayback(5);L=L.nh;JSON.stringify({errorData:L,debugInfo:this.getDebugText(!0)});this.rT.X3("onError",NSQ(L.errorCode));this.rT.Wo("onDetailedError",{errorCode:L.errorCode,
|
|
errorDetail:L.errorDetail,message:L.errorMessage,messageKey:L.N_,cpn:L.cpn});(0,g.bc)()-this.L.Bk>6048E5&&this.rT.Wo("onReloadRequired")}L={};if(A.state.isPlaying()&&!A.state.isBuffering()&&!iJ("pbresume","ad_to_video")&&iJ("_start","ad_to_video")){var B=this.getVideoData();L.clientPlaybackNonce=B.clientPlaybackNonce;B.videoId&&(L.videoId=B.videoId);g.Qm(L,"ad_to_video");mF("pbresume",void 0,"ad_to_video");Rd8(this.eD)}this.rT.publish("applicationplayerstatechange",A)}};
|
|
g.p.HW=function(A){this.e$.VN||this.rT.publish("presentingplayerstatechange",A)};
|
|
g.p.qP=function(A){wc(this,Tu(A.state));g.x(A.state,1024)&&this.rT.isMutedByMutedAutoplay()&&(tZ(this,{muted:!1,volume:this.CV.volume},!1),ky(this,!1))};
|
|
g.p.onPlayerRequestSent=function(A){this.rT.Kr("onPlayerRequestSent",A)};
|
|
g.p.Be=function(A,L){A==="newdata"&&zeL(this);this.rT.publish("applicationvideodatachange",A,L)};
|
|
g.p.tDF=function(A,L){H7e(this);this.rT.Wo("onPlaybackAudioChange",this.rT.getAudioTrack().ri.name);this.rT.publish("internalaudioformatchange",this.rT.getAudioTrack().ri.id,L)};
|
|
g.p.s8T=function(A){var L=this.e4().getVideoData();A===L&&this.rT.X3("onPlaybackQualityChange",A.W.video.quality)};
|
|
g.p.jP=function(){var A=this.e$.V[2]||null;A&&(A=A.getVideoData(),this.e4().Hn("ssdai",{cleanaply:1,acpn:A==null?void 0:A.clientPlaybackNonce,avid:A.videoId,isDai:this.df().enableServerStitchedDai?1:0}),delete this.e$.V[2])};
|
|
g.p.fjD=function(A,L){this.cF(A,this.e4(),L)};
|
|
g.p.cF=function(A,L,B){this.L.hw()&&L.Hn("vdc",{type:A,vid:B.videoId||"",cpn:B.clientPlaybackNonce||""});L===this.kP()&&(this.L.cI=B.oauthToken);L===this.kP()&&(this.getVideoData().enableServerStitchedDai&&!this.QG?(this.kP().Hn("sdai",{initSstm:1}),this.QG=new g.nb(this.rT,this.L,this.kP(),this)):!this.getVideoData().enableServerStitchedDai&&this.QG&&(this.QG.dispose(),this.QG=null));if(A==="newdata")ru(this.eD,2),this.rT.publish("videoplayerreset",L);else{if(!this.mediaElement)return;if(A==="dataloaded")if(this.kP()===
|
|
this.e4()){if(aj(B.tF,B.P0),!this.kP().getPlayerState().isError()){var f=Gj(this);this.df().isLoaded();f&&this.dN(6);Sov(this);Jq6(this.eD)||JM7(this)}}else Sov(this);if(L.getPlayerType()===1&&(this.L.JF&&lg8(this),this.getVideoData().isLivePlayback&&!this.L.mM&&this.Lw("html5.unsupportedlive",2,"DEVICE_FALLBACK"),B.isLoaded()&&((yny(B)||this.getVideoData().w$)&&this.rT.publish("legacyadtrackingpingchange",this.getVideoData()),B.hasProgressBarBoundaries()))){var K;f=Number((K=this.getVideoData().progressBarEndPosition)==
|
|
null?void 0:K.utcTimeMillis)/1E3;!isNaN(f)&&(K=this.wX())&&(K-=this.getCurrentTime(),f=(f-K)*1E3,K=this.L7.progressEndBoundary,(K==null?void 0:K.start)!==f&&(K&&this.fS([K]),f=new g.WR(f,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.kP().addCueRange(f),this.L7.progressEndBoundary=f))}this.rT.publish("videodatachange",A,B,L.getPlayerType())}this.rT.X3("onVideoDataChange",{type:A,playertype:L.getPlayerType()});this.JW();(A=B.hG)?this.yb.qf(A,B.clientPlaybackNonce):
|
|
U7v(this.yb)};
|
|
g.p.MG=function(){sp(this,null);this.rT.Wo("onPlaylistUpdate")};
|
|
g.p.ob1=function(A){delete this.L7[A.getId()];this.kP().removeCueRange(A);a:{A=this.getVideoData();var L,B,f,K,V,J,R,Z,N,F,D=((L=A.Vj)==null?void 0:(B=L.contents)==null?void 0:(f=B.singleColumnWatchNextResults)==null?void 0:(K=f.autoplay)==null?void 0:(V=K.autoplay)==null?void 0:V.sets)||((J=A.Vj)==null?void 0:(R=J.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(N=Z.autoplay)==null?void 0:(F=N.autoplay)==null?void 0:F.sets);if(D)for(L=g.m(D),B=L.next();!B.done;B=L.next())if(B=
|
|
B.value,K=f=void 0,B=B.autoplayVideo||((f=B.autoplayVideoRenderer)==null?void 0:(K=f.autoplayEndpointRenderer)==null?void 0:K.endpoint),f=g.y(B,g.FZ),V=K=void 0,B!=null&&((K=f)==null?void 0:K.videoId)===A.videoId&&((V=f)==null?0:V.continuePlayback)){A=B;break a}A=null}(L=g.y(A,g.FZ))&&this.rT.Kr("onPlayVideo",{sessionData:{autonav:"1",itct:A==null?void 0:A.clickTrackingParams},videoId:L.videoId,watchEndpoint:L})};
|
|
g.p.dN=function(A){A!==this.appState&&(A===2&&this.getPresentingPlayerType()===1&&(wc(this,-1),wc(this,5)),this.appState=A,this.rT.publish("appstatechange",A))};
|
|
g.p.Lw=function(A,L,B,f,K){this.kP().O9(A,L,B,f,K)};
|
|
g.p.y9=OD(9);g.p.isAtLiveHead=function(A,L){L=L===void 0?!1:L;var B=g.pZ(this,{playerType:A});A=y$(this,B);B=jh(this,B);return A!==B?A.isAtLiveHead(mh(this,B.getCurrentTime(),B),!0):A.isAtLiveHead(void 0,L)};
|
|
g.p.pX=function(){var A=g.pZ(this,{playerType:void 0});return y$(this,A).pX()};
|
|
g.p.seekTo=function(A,L,B,f,K,V){L=L!==!1;f=g.pZ(this,{playerType:f});this.appState===2&&hZ(this);if(this.yC(f))Q$(this)?this.QG.seekTo(A,{seekSource:K},L,B):this.TV.seekTo(A,{seekSource:K},L,B);else{this.J("html5_sabr_csdai_seek_log")||(V="");var J;f.seekTo(A,{aN:!L,OR:B,zZ:"application"+((J=V)!=null?J:""),seekSource:K})}};
|
|
g.p.seekBy=function(A,L,B,f){this.seekTo(this.getCurrentTime()+A,L,B,f,void 0,"_by")};
|
|
g.p.nb1=function(){this.rT.X3("SEEK_COMPLETE")};
|
|
g.p.VDF=function(){this.rT.Kr("onAbnormalityDetected")};
|
|
g.p.Af4=function(A){this.rT.Kr("onSnackbarMessage",A)};
|
|
g.p.zVp=function(A){var L=this.e4(),B=L.getVideoData();if(this.appState===1||this.appState===2)B.startSeconds=A;this.appState===2?g.x(L.getPlayerState(),512)||hZ(this):this.rT.X3("SEEK_TO",A)};
|
|
g.p.mQ4=function(){this.rT.publish("airplayactivechange")};
|
|
g.p.beT=function(){this.rT.publish("airplayavailabilitychange")};
|
|
g.p.showAirplayPicker=function(){this.e4().m2()};
|
|
g.p.UQp=function(){this.rT.publish("beginseeking")};
|
|
g.p.Zex=function(){this.rT.publish("endseeking")};
|
|
g.p.getStoryboardFormat=function(A){A=g.pZ(this,{playerType:A});return y$(this,A).getStoryboardFormat()};
|
|
g.p.rB=function(A){A=g.pZ(this,{playerType:A});return y$(this,A).getVideoData().rB()};
|
|
g.p.yC=function(A){A=(A||this.e4()).getVideoData();if(Q$(this))A=A===this.QG.playback.getVideoData();else a:{var L=this.TV;if(A===L.N.getVideoData()&&L.W.length)A=!0;else{L=g.m(L.W);for(var B=L.next();!B.done;B=L.next())if(A.XA===B.value.XA){A=!0;break a}A=!1}}return A};
|
|
g.p.Nt=function(A,L,B,f,K,V,J,R){var Z=Q$(this);this.e4().Hn("appattl",{sstm:this.QG?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:Z});Z?(B=OF0(this.QG,A,L,B,f,K,V,J,R),A=(B==null?void 0:B.XA)||"",(this.J("html5_ssdai_new_decoration_logic")||this.kP().getVideoData().Is)&&this.kP().cg(R||"",L,(B==null?void 0:B.clientPlaybackNonce)||"")):A=jeL(this.TV,A,B,f,K,V);return A};
|
|
g.p.A7=function(A,L,B,f,K,V,J,R){if(Q$(this)){var Z;(Z=this.QG)==null||OF0(Z,A,L,B,f,K,V,J,R)}};
|
|
g.p.V_=function(A){(this.J("html5_ssdai_new_decoration_logic")||this.kP().getVideoData().Is)&&this.kP().cg(A,"","");var L;(L=this.QG)==null||L.V_(A)};
|
|
g.p.Qc=function(A,L){A=A===void 0?-1:A;L=L===void 0?Infinity:L;Q$(this)||ksC(this.TV,A,L)};
|
|
g.p.i4=function(A,L,B){if(Q$(this)){var f=this.QG,K=f.N.Yy({XA:A});K?(B===void 0&&(B=K.NQ),xc8(f,K,L,B)):f.M4("Invalid_timelinePlaybackId_"+A+"_specified")}else{f=this.TV;K=null;for(var V=g.m(f.W),J=V.next();!J.done;J=V.next())if(J=J.value,J.XA===A){K=J;break}K?(B===void 0&&(B=K.NQ),t4Q(f,K,L,B)):fZ(f,"InvalidTimelinePlaybackId timelinePlaybackId="+A)}};
|
|
g.p.enqueueVideoByPlayerVars=function(A,L,B,f){B=B===void 0?Infinity:B;f=f===void 0?"":f;this.yC();A=new g.Kr(this.L,A);f&&(A.XA=f);pxC(this,A,L,B)};
|
|
g.p.queueNextVideo=function(A,L,B,f,K){B=B===void 0?NaN:B;A=this.preloadVideoByPlayerVars(A,L===void 0?1:L,B,f===void 0?"":f,K===void 0?"":K);L=this.e4();A&&(this.J("html5_check_queue_on_data_loaded")?this.K().supportsGaplessShorts()&&L.getVideoData().X&&(B=this.T0,f=this.MP.D,B.U!==A&&(B.W=L,B.U=A,B.V=1,B.N=A.getVideoData(),B.D=f,B.N.isLoaded()?B.T():B.N.subscribe("dataloaded",B.T,B))):(B=this.L.experiments.Qf().N.Iv(QA),B=Ge7(L,A,this.MP.D,B),B!=null?(L.Hn("sgap",B),L.getVideoData().X&&L.tT(!1)):
|
|
(A=A.getVideoData(),L=this.T0,L.N!==A&&(L.N=A,L.V=1,A.isLoaded()?L.X():L.N.subscribe("dataloaded",L.X,L)))))};
|
|
g.p.qm=function(A,L,B,f){var K=this;B=B===void 0?0:B;f=f===void 0?0:f;y$(this,this.e4()).rS();Co1(this.MP,A,L,B,f).then(function(){K.rT.Wo("onQueuedVideoLoaded")},function(){})};
|
|
g.p.qV=function(){return this.MP.qV()};
|
|
g.p.OS=function(A){var L=this.MP.N;return L?L.Nf(A):!1};
|
|
g.p.clearQueue=function(A,L){this.MP.clearQueue(A===void 0?!1:A,L===void 0?!1:L)};
|
|
g.p.loadVideoByPlayerVars=function(A,L,B,f,K,V){L=L===void 0?1:L;var J=this.kP();if(L===2&&this.df().enableServerStitchedDai&&J&&!J.Hu())return J.Hn("lvonss",{vid:(A==null?void 0:A.videoId)||"",ptype:L}),!1;var R=!1;J=new g.Kr(this.L,A);J.dB=V;g.Ng(this.L)&&!J.BV&&Sf(this.Rv);var Z;V=this.Rv;var N=(Z=J.yj)!=null?Z:"";V.timerName=N;this.Rv.Nq("pl_i");this.J("web_player_early_cpn")&&J.clientPlaybackNonce&&this.Rv.infoGel({clientPlaybackNonce:J.clientPlaybackNonce});ep6(J).supportsVp9Encoding===!1&&
|
|
this.e4().Hn("noVp9enc",{});if(this.K().supportsGaplessShorts()){Z=cN8(this.MP,J,L);if(Z==null){wc(this,-1);var F;((F=this.MP.N)==null?0:F.getVideoData().isAd())||CZ(this);A=this.MP;A.app.K().J("html5_gapless_new_slr")?lF(A.app,"gaplessshortslooprange"):A.app.setLoopRange(null);A.app.getVideoData().iA=!0;var D;(D=A.N)==null||D.Zh();var I;(I=A.N)==null||I.dO();B={zZ:"gapless_to_next_video",seekSource:60,Sf:A.D.N};f=Euw(A);if(A.D.N){var d;K=((d=A.V)==null?void 0:lE(d))||{};d=K.bU;K=K.oZ;K!=null&&d!=
|
|
null&&(f=K-d+.001)}var w;(w=A.app.e4())==null||w.seekTo(f,B);if(!A.app.getPlayerStateObject(L).isPlaying()){var r;(r=A.app.e4())==null||r.playVideo(!0)}OIe(A,f);var h;(h=A.app.e4())==null||h.qv();A.G();return!0}w=this.J("html5_shorts_gapless_preload_fallback");r=this.MP.N;w&&r&&!r.TL()&&(h=r.getVideoData(),this.e$.T.set(iF(L,h),r,3600));this.MP.clearQueue(w);this.e4().Hn("sgap",{f:Z})}if(K){for(;J.LX.length&&J.LX[0].isExpired();)J.LX.shift();w=J.LX.length-1;R=w>0&&K.W(J.LX[w])&&K.W(J.LX[w-1]);J.LX.push(K)}B||
|
|
(A&&Xee(A)?(Ko(this.L)&&!this.iY&&(A.fetch=0),sp(this,A)):this.playlist&&sp(this,null),A&&(this.iY=Sw(!1,A.external_list)));this.rT.publish("loadvideo");w=this.Ku(J,L,f);R&&this.Lw("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+J.LX.join()).replace(/[;:,]/g,"_"));return w};
|
|
g.p.preloadVideoByPlayerVars=function(A,L,B,f,K){L=L===void 0?1:L;B=B===void 0?NaN:B;K=K===void 0?"":K;f=L;var V=K,J=DG(A);if(f=this.e$.T.get(f+"_"+J+"_"+V+"_"+ +(A.autonav==="1"||A.autonav===!0)+ +(A.autoplay==="1"||A.autoplay===!0||A.autoplay===1))||null)return f;A=new g.Kr(this.L,A);K&&(A.XA=K);K=iF(L,A);f=this.e4();V=iF(f.getPlayerType(),f.getVideoData());K===V?(f.dK(!0),A.dispose(),B=null):(A.LD=!0,A.bA=!0,f=dc(this,L,A,!0),(L!==1||!Ro(this.L)||this.L.J("html5_allow_multiview_tile_preload")&&
|
|
A.GZ)&&f.dK(!0),this.e$.T.set(K,f,B||3600),B=f);return B};
|
|
g.p.setMinimized=function(A){this.visibility.setMinimized(A);(A=Dp8(this.eD))&&(this.isMinimized()?A.load():A.unload());this.rT.publish("minimized")};
|
|
g.p.setInline=function(A){this.visibility.setInline(A)};
|
|
g.p.setInlinePreview=function(A){this.visibility.setInline(A)};
|
|
g.p.Aa=function(A){jny(this,A)||this.visibility.Aa(A)};
|
|
g.p.setSqueezeback=function(A){this.visibility.setSqueezeback(A)};
|
|
g.p.E2=function(){var A,L=(A=this.mediaElement)==null?void 0:A.Zg();L&&(this.L.Mb&&LP(u4(function(){return document.exitFullscreen()}),function(){}),LP(u4(function(){return H9(L)}),function(){}))};
|
|
g.p.S_n=function(){this.mediaElement.Zg();this.mediaElement.Zg().webkitPresentationMode==="picture-in-picture"?this.Aa(!0):this.Aa(!1)};
|
|
g.p.togglePictureInPicture=function(){this.e4().togglePictureInPicture()};
|
|
g.p.Ku=function(A,L,B){L=L===void 0?1:L;iJ("_start",this.Rv.timerName)||g.fg(H8)(void 0,this.Rv.timerName);var f=!1,K=N7v(this,L,A,!1);K?(f=!0,A.dispose(),K.getVideoData().GZ&&K.Hn("app_lv",{pdl:K.Im()})):(K=dc(this,L,A,!0,B),(this.J("html5_onesie")||this.J("html5_load_before_stop"))&&K.pn()&&K.dK(),this.wS.stop(),L===1&&L!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,L),this.Ok(K));K===this.kP()&&(this.L.cI=A.oauthToken);if(!K.pn())return!1;if(K===this.kP())return this.dN(1),
|
|
A=hZ(this),f&&this.J("html5_player_preload_ad_fix")&&K.getPlayerType()===1&&K.Im()&&this.cF("dataloaded",K,K.getVideoData()),A;K.Am();return!0};
|
|
g.p.cueVideoByPlayerVars=function(A,L){var B=this;L=L===void 0?1:L;var f=this.kP();if(this.df().enableServerStitchedDai&&f&&!f.Hu()&&A&&Object.keys(A).length>0)f.Hn("qvonss",{vid:(A==null?void 0:A.videoId)||"",ptype:L});else if(A&&Xee(A))if(this.zk=!0,sp(this,A),(A=g.R_(this.playlist))&&A.gX())XM(this,A,L);else this.playlist.onReady(function(){Hu(B)});
|
|
else{L||(L=this.getPresentingPlayerType());L===1&&this.MG();f=new g.Kr(this.L,A);var K=g.MM(this.L)&&!this.L.qp&&L===1&&!f.isAd()&&!f.ql;this.rT.publish("cuevideo",L);K?(this.e4().getVideoData().loading=!0,WS0(f,A?A:{}).then(function(V){XM(B,V,L)}),f.dispose()):XM(this,f,L)}};
|
|
g.p.Dl=function(A,L,B,f,K,V,J){if(!A&&!B)throw Error("Playback source is invalid");if(UR(this.L)||g.dY(this.L))return L=L||{},L.lact=rT(),L.vis=this.rT.getVisibilityState(),this.rT.Kr("onPlayVideo",{videoId:A,watchEndpoint:V,sessionData:L,listId:B}),!1;il1(this.Rv);this.Rv.reset();A={video_id:A};f&&(A.autoplay="1");f&&(A.autonav="1");V&&(A.player_params=V.playerParams);J&&(A.oauth_token=J);B?(A.list=B,this.loadPlaylist(A)):this.loadVideoByPlayerVars(A,1);return!0};
|
|
g.p.cuePlaylist=function(A,L,B,f){this.zk=!0;gBy(this,A,L,B,f)};
|
|
g.p.loadPlaylist=function(A,L,B,f){this.zk=!1;gBy(this,A,L,B,f)};
|
|
g.p.Ow=function(){return this.rT.isMutedByMutedAutoplay()?!1:this.e$.VN?!0:!(!this.playlist||!this.playlist.hasNext())};
|
|
g.p.yu=OD(7);
|
|
g.p.nextVideo=function(A,L){var B=g.DQ(this.kP().getVideoData());g.vh(this.rT)&&B?this.Dl(B.videoId,L?B.xq:B.sessionData,B.playlistId,L,void 0,B.MS||void 0):this.iY?this.rT.Wo("onPlaylistNext"):this.getPresentingPlayerType()===3?EU(this.eD).nextVideo():!this.playlist||Ko(this.L)&&!this.rT.isFullscreen()||(this.playlist.hasNext(A)&&cke(this.playlist,OlQ(this.playlist)),this.playlist.loaded?(A=L&&this.L.J("html5_player_autonav_logging"),L&&this.rT.publish("playlistautonextvideo"),this.Ku(g.R_(this.playlist,void 0,
|
|
L,A),1)):this.zk=!1)};
|
|
g.p.previousVideo=function(A){this.iY?this.rT.Wo("onPlaylistPrevious"):this.getPresentingPlayerType()===3?EU(this.eD).oS():!this.playlist||Ko(this.L)&&!this.rT.isFullscreen()||(this.playlist.hasPrevious(A)&&cke(this.playlist,E88(this.playlist)),this.playlist.loaded?this.Ku(g.R_(this.playlist),1):this.zk=!1)};
|
|
g.p.playVideoAt=function(A){this.iY?this.rT.Wo("onPlaylistIndex",A):this.playlist&&(this.playlist.loaded?this.Ku(g.R_(this.playlist,A),1):this.zk=!1,cke(this.playlist,A))};
|
|
g.p.getPlaylist=function(){return this.playlist};
|
|
g.p.VD=OD(15);g.p.yx=function(A){this.mY=g.Mi(this.mY,function(V){return V.id!==A});
|
|
for(var L=this.kP(),B=L.Ef(),f=0;f<B.length;f++){var K=B[f];if(K.getId()===A)return L.removeCueRange(K),Op(this,"cuerangesremoved",[K]),!0}return!1};
|
|
g.p.cwn=function(A){this.rT.X3("onCueRangeEnter",A.getId())};
|
|
g.p.BiT=function(A){this.rT.X3("onCueRangeExit",A.getId())};
|
|
g.p.zg=function(A,L,B){var f=g.pZ(this,{playerType:L});if(this.J("html5_ssdai_enable_media_end_cue_range")&&this.QG){var K,V,J;if(f.getPlayerType()===2&&this.L.Qf().N.Iv(IgS)?(J=(K=this.e$.N)==null?void 0:K.isAd())!=null&&J:(V=this.QG)==null?0:vpe(V,this.getCurrentTime()))f=this.kP();K=g.m(A);for(V=K.next();!V.done;V=K.next())V.value.associatedClipId=this.QG.xJ}f.zg(A,B);L&&this.getPresentingPlayerType()!==L||Op(this,"cuerangesadded",A)};
|
|
g.p.fS=function(A,L){g.pZ(this,{playerType:L}).fS(A);L&&this.getPresentingPlayerType()!==L||Op(this,"cuerangesremoved",A)};
|
|
g.p.GJ=function(A){return this.e4().GJ(A)};
|
|
g.p.dln=function(A){var L=this;if(!A||A===this.kP().t_()||!this.L.J("html5_use_new_ssdai_transition_detector")){A=this.e4();this.getPresentingPlayerType();CuD(this.Rv,A.getVideoData(),sn0(this));rc(this)&&this.L.U&&nr(this.df())==="embedded"&&this.Pt&&Math.random()<.01&&g.pE("autoplayTriggered",{intentional:this.intentionalPlayback});this.Pt=!1;A=function(){var B=L.screenLayer||(L.isMinimized()?3:0),f=g.sF(B);if(f&&f!=="UNDEFINED_CSN"){var K=L.L.J("web_player_attach_player_response_ve"),V=L.L.J("web_playback_associated_ve");
|
|
B={cpn:L.getVideoData().clientPlaybackNonce,csn:f};L.getVideoData().Wn&&(K||V)&&(K=g.jB(L.getVideoData().Wn),g.L1(f,K),V&&(B.playbackVe=K.getAsJson()));L.getVideoData().queueInfo&&(B.queueInfo=L.getVideoData().queueInfo);f={};L.getVideoData().T&&(f.cttAuthInfo={token:L.getVideoData().T,videoId:L.getVideoData().videoId});g.pE("playbackAssociated",B,f)}else g.CE(new g.iL("CSN Missing or undefined during playback association"))};
|
|
Rd8(this.eD);this.J("web_player_defer_ad")&&JM7(this);this.rT.Wo("onPlaybackStartExternal");(this.L.J("mweb_client_log_screen_associated"),A$(this.L))||A();A={};this.getVideoData().T&&(A.cttAuthInfo={token:this.getVideoData().T,videoId:this.getVideoData().videoId});A.sampleRate=20;C0("player_att",A);if(this.getVideoData().botguardData||this.J("fetch_att_independently"))g.SK(this.L)||ge(this.L)==="MWEB"?g.AR(g.ol(),function(){bF(L)}):bF(this);
|
|
this.JW();Dk6(this);g.MM(this.L)&&(A={autoplayBrowserPolicy:QG(),autoplayIntended:CP(this.getVideoData()),autoplayStatus:rmQ(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.pE("embedsAutoplayStatusChanged",A))}};
|
|
g.p.MDj=function(){this.rT.publish("internalAbandon");CZ(this)};
|
|
g.p.onApiChange=function(){var A=this.e4();this.L.G?this.rT.X3("onApiChange",A.getPlayerType()):this.rT.X3("onApiChange")};
|
|
g.p.OD1=function(){var A=this.mediaElement;A={volume:g.B4(Math.floor(A.getVolume()*100),0,100),muted:A.ib()};A.muted||ky(this,!1);this.CV=g.is(A);this.rT.X3("onVolumeChange",A)};
|
|
g.p.mutedAutoplay=function(A){var L=this.getVideoData().videoId;isNaN(this.ej)&&(this.ej=this.getVideoData().startSeconds);if((A==null?0:A.videoId)||L)this.loadVideoByPlayerVars({video_id:(A==null?0:A.videoId)?A==null?void 0:A.videoId:L,playmuted:!0,start:this.ej,muted_autoplay_duration_mode:A==null?void 0:A.durationMode}),this.rT.Wo("onMutedAutoplayStarts")};
|
|
g.p.onFullscreenChange=function(){var A=hf0(this);this.Fc(A?1:0);tJv(this,!!A)};
|
|
g.p.Fc=function(A){var L=!!A,B=!!this.L$()!==L;this.visibility.Fc(A);this.template.Fc(L);this.J("html5_media_fullscreen")&&!L&&this.mediaElement&&hf0(this)===this.mediaElement.Zg()&&this.mediaElement.VJ();this.template.resize();B&&this.Rv.tick("fsc");B&&(this.rT.publish("fullscreentoggled",L),A=this.df(),L={fullscreen:L,videoId:A.nJ||A.videoId,time:this.getCurrentTime()},this.rT.getPlaylistId()&&(L.listId=this.rT.getPlaylistId()),this.rT.X3("onFullscreenChange",L))};
|
|
g.p.X1=function(){return this.visibility.X1()};
|
|
g.p.isFullscreen=function(){return this.visibility.isFullscreen()};
|
|
g.p.L$=function(){return this.visibility.L$()};
|
|
g.p.kPT=function(){var A=this.L$();A!==0&&A!==1||this.Fc(hf0(this)?1:0);A=window.screen.width*window.screen.height;var L=window.outerHeight*window.outerWidth;this.L.B4?(this.YI=Math.max(this.YI,A,L),A=L/this.YI<this.L.y8,this.visibility.Aa(A),this.L.zK&&jny(this,A)):this.mediaElement&&yMv(this,L/A<.33)&&this.mediaElement.VJ()};
|
|
g.p.RV4=function(A){this.e$.VN||this.rT.publish("liveviewshift",A)};
|
|
g.p.playVideo=function(A,L){A=g.pZ(this,{playerType:A});this.appState===2?(g.Ng(this.L)&&Sf(this.Rv),hZ(this)):g.x(A.getPlayerState(),2)?(L=36,this.getVideoData().zt()&&(L=37),this.seekTo(0,void 0,void 0,void 0,L,"_play")):A.playVideo(!1,L)};
|
|
g.p.pauseVideo=function(A,L){g.pZ(this,{playerType:A}).pauseVideo(L)};
|
|
g.p.stopVideo=function(A){A=A===void 0?!1:A;var L=this.kP().getVideoData(),B=new g.Kr(this.L,{video_id:L.nJ||L.videoId,oauth_token:L.oauthToken});B.ea=g.is(L.ea);A&&!this.webPlayerContextConfig.disableStaleness&&(B.Cx=!0);this.cancelPlayback(6);XM(this,B,1)};
|
|
g.p.cancelPlayback=function(A,L){var B=g.pZ(this,{playerType:L});L===2&&B.getPlayerType()===1&&fm(this.df())?B.Hn("canclpb",{r:"no_adpb_ssdai"}):(this.L.hw()&&B.Hn("canclpb",{r:A}),this.appState!==1&&this.appState!==2&&(B===this.e4()&&ru(this.eD,A),L===1&&(B.stopVideo(),CZ(this)),B.aC(void 0,!0),Op(this,"cuerangesremoved",B.Ef()),B.Vx(),this.MP&&B.isGapless()&&(B.UN(!0),B.setMediaElement(this.mediaElement))))};
|
|
g.p.sendVideoStatsEngageEvent=function(A,L,B){L=g.pZ(this,{playerType:L});LUy(this.L,A)?L.sendVideoStatsEngageEvent(A,B):B&&B()};
|
|
g.p.b0=function(A){var L=g.pZ(this,{playerType:void 0});return LUy(this.L,A)?L.b0(A):null};
|
|
g.p.updatePlaylist=function(){!Ko(this.L)&&g.MM(this.L)&&Rf0(this);this.rT.Wo("onPlaylistUpdate")};
|
|
g.p.setSizeStyle=function(A,L){this.sP=A;this.J("web_log_theater_mode_visibility")?this.X9(L):this.Nw=L;this.rT.publish("sizestylechange",A,L);this.template.resize()};
|
|
g.p.X9=function(A){this.visibility.X9(A)};
|
|
g.p.EN=function(){return this.J("web_log_theater_mode_visibility")?this.visibility.EN():this.Nw};
|
|
g.p.isMinimized=function(){return this.visibility.isMinimized()};
|
|
g.p.isInline=function(){return this.visibility.isInline()};
|
|
g.p.nV=function(){return this.visibility.nV()};
|
|
g.p.WE=function(){return this.visibility.WE()};
|
|
g.p.bz=function(){return this.visibility.bz()};
|
|
g.p.BM=function(){return this.sP};
|
|
g.p.getAdState=function(){if(this.getPresentingPlayerType()===3)return EU(this.eD).getAdState();if(!this.yC()){var A=HB(this.SI());if(A)return A.getAdState()}return-1};
|
|
g.p.l1s=function(A){var L=this.template.getVideoContentRect();BX(this.A3,L)||(this.A3=L,this.e4().bD(),(L=this.kP())&&L===this.e4()&&L.bD(),this.L$()===1&&this.oF&&tJv(this,!0));L=this.Pn().T1!==this.d7;this.d7=this.Pn().T1;this.ZU&&g.RC(this.ZU,A)&&!L||(this.rT.publish("appresize",A),this.ZU=A)};
|
|
g.p.Kw=function(){return this.rT.Kw()};
|
|
g.p.Ebs=function(){this.getPresentingPlayerType()===2&&this.TV.isManifestless()?b_0(this.TV):(this.QG&&(eBw(this.QG),CZ(this)),this.Qf().N.Iv(IP)&&(this.Ml.Ys=(0,g.bc)()),kqQ(this,"signature"))};
|
|
g.p.gb4=function(A){A&&kqQ(this,"reloadPlayerEvent",void 0,A)};
|
|
g.p.WW=function(A){this.UN(A);IH(this)};
|
|
g.p.TXF=function(A){if(A.errorCode==="manifest.net.badstatus"){var L=this.L.experiments.GL("html5_use_network_error_code_enums")?401:"401";A.details.rc===L&&this.rT.Kr("onPlayerRequestAuthFailed")}};
|
|
g.p.DQF=function(A){this.rT.publish("heartbeatparams",A)};
|
|
g.p.tW=function(A){this.rT.Kr("onAutonavChangeRequest",A!==1)};
|
|
g.p.pD=function(){return this.mediaElement};
|
|
g.p.setBlackout=function(A){if(this.L.Ox!==A){this.L.Ox=A;var L=this.e4();L.Om();this.L.JF&&lg8(this);L.Qe(A)}};
|
|
g.p.yfr=function(){var A=this.e4(),L=!this.rT.QD();A.UA(L)};
|
|
g.p.JfL=function(){this.rT.Wo("onLoadedMetadata")};
|
|
g.p.woT=function(){this.rT.Wo("onDrmOutputRestricted")};
|
|
g.p.S9=function(){this.intentionalPlayback=!0};
|
|
g.p.l1=function(){this.eD.dispose();this.o1.dispose();this.TV.dispose();this.QG&&this.QG.dispose();this.kP().dispose();this.UN();this.e$.dispose();g.gH(this.playlist);g.Y.prototype.l1.call(this)};
|
|
g.p.J=function(A){return this.L.J(A)};
|
|
g.p.Qf=function(){return this.L.Qf()};
|
|
g.p.mw=function(){return this.L.mw()};
|
|
g.p.setScreenLayer=function(A){this.screenLayer=A};
|
|
g.p.getInternalApi=function(){return this.rT.getInternalApi()};
|
|
g.p.createSubtitlesModuleIfNeeded=function(){return this.eD.createSubtitlesModuleIfNeeded()};
|
|
g.p.isOrchestrationLeader=function(){var A=bg(this.eD);return A?A.isOrchestrationLeader():!1};
|
|
g.p.getVideoUrl=function(A,L,B,f,K){if(this.Jw&&this.Jw.postId)return A=this.L.getVideoUrl(A),A=cI(A,"v"),A.replace("/watch","/clip/"+this.Jw.postId);var V=this.rT.isEmbedsShortsMode()||this.L.Vj==="shortspage",J=g.Nm(this.getVideoData());return this.L.getVideoUrl(A,L,B,f,K,V,J)};
|
|
g.p.I6=function(){return this.MP.I6()};
|
|
g.p.sM=function(A,L,B){this.rT.publish("spsumpreject",A,L,B)};
|
|
g.p.H4=function(){try{for(var A=g.m(Object.values(this.e$.V)),L=A.next();!L.done;L=A.next()){var B=L.value;B.TL()||B.H4()}if(this.J("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var f=g.m(this.e$.T.R9()),K=f.next();!K.done;K=f.next()){var V=K.value;V.TL()||V.H4()}this.kP().H4()}catch(J){g.CE(J)}};
|
|
g.p.Tl=function(){if(this.QG){var A=(0,g.bc)();return this.QG.Tl(A)}return!1};
|
|
g.p.XJ=function(A){var L=this.kP();A&&(L=Qnk(this,A));if(L){var B=L.getVideoData();A=new Map;B=g.m(B.sabrContextUpdates);for(var f=B.next();!f.done;f=B.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;var V=void 0;K.scope===4&&((V=L)==null?0:V.VZ(f))&&A.set(f,K)}return A}this.kP().Hn("scuget",{ncpf:"1",ccpn:A})};
|
|
g.p.JM=function(A,L){this.P3.push({key:A,value:L})};
|
|
var bZ={};var w5t={Df:[{Aj:/Unable to load player module/,weight:20},{Aj:/Failed to fetch/,weight:500},{Aj:/XHR API fetch failed/,weight:10},{Aj:/JSON parsing failed after XHR fetch/,weight:10},{Aj:/Retrying OnePlatform request/,weight:10},{Aj:/CSN Missing or undefined during playback association/,weight:100},{Aj:/Non-recoverable error. Do not retry./,weight:0},{Aj:/Internal Error. Retry with an exponential backoff./,weight:0},{Aj:/API disabled by application./,weight:0},{Aj:/Unexpected end of JSON input/,
|
|
weight:0}],C5:[{callback:CU7,weight:500}]};var PU1=/[&\?]action_proxy=1/,qo7=/[&\?]token=([\w-]*)/,xkw=/[&\?]video_id=([\w-]*)/,ef1=/[&\?]index=([\d-]*)/,nB0=/[&\?]m_pos_ms=([\d-]*)/,uDL=/[&\?]vvt=([\w-]*)/,O7S="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(" "),zf1="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(" "),MJC={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"},Yo0={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Wye={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};Mz.prototype.MY=function(A){this.player.zH().tick(A)};
|
|
Mz.prototype.fetch=function(A,L){var B=this;if(!A.match(/\[BISCOTTI_ID\]/g))return this.W(A,L);var f=this.N===1;f&&this.MY("a_bid_s");var K=$k8();if(K!==null)return f&&this.MY("a_bid_f"),this.W(A,L,K);K=Xxw();f&&g.OE(K,function(){B.MY("a_bid_f")});
|
|
return K.then(function(V){return B.W(A,L,V)})};
|
|
Mz.prototype.W=function(A,L,B){var f=this,K=L===void 0?{}:L;L=K.Kn;var V=K.rh;var J=K.cueProcessedMs;B=B===void 0?"":B;var R=this.player.getVideoData(1);K=this.player.K().BI;var Z=0;if(J&&V&&!L){var N=V.end-V.start;N>0&&(Z=Math.floor(N/1E3))}Z=L?L.Dj:Z;var F={AD_BLOCK:this.N++,AD_BREAK_LENGTH:Z,AUTONAV_STATE:cu(this.player.K()),CA_TYPE:"image",CPN:R.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.pX()*1E3,LACT:rT(),LIVE_INDEX:L?this.V++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:V?
|
|
Math.round(V.start/1E3):0,MIDROLL_POS_MS:V?Math.round(V.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Pn().yN().height,P_W:this.player.Pn().yN().width,YT_REMOTE:K?K.join(","):""},D=wW(IM);Object.keys(D).forEach(function(d){D[d]!=null&&(F[d.toUpperCase()]=D[d].toString())});
|
|
B!==""&&(F.BISCOTTI_ID=B);B={};dW(A)&&(B.sts="20424",(L=this.player.K().forcedExperiments)&&(B.forced_experiments=L));var I=Ns(g.iN(A,F),B);return I.split("?").length!==2?$A(Error("Invalid AdBreakInfo URL")):g.po(this.player.K(),R==null?void 0:R.oauthToken).then(function(d){if(d&&Dp()){var w=xn();eg(w,d)}d=f.player.dh(w);w=ag7(f,I,F,R.isMdxPlayback,J);return g.MD(d,w,"/youtubei/v1/player/ad_break").then(function(r){return r})})};
|
|
Mz.prototype.reset=function(){this.V=this.N=1};g.G(AHv,Mz);
|
|
AHv.prototype.W=function(A,L,B){L=L===void 0?{}:L;var f=L.Kn;var K=L.rh;var V=L.cueProcessedMs;B=B===void 0?"":B;L=this.N;this.N++;var J=this.player.K().J("h5_disable_macro_substitution_in_get_ad_break")?A:L3L(this,A,{Kn:f,rh:K,cueProcessedMs:V},B,L);if(J.split("?").length!==2)return Math.random()<.1&&g.CE(Error("Invalid AdBreakInfo URL")),$A(Error("Invalid AdBreakInfo URL"));var R=this.player.getVideoData(1).isMdxPlayback,Z=B;B=qo7.exec(J);B=B!=null&&B.length>=2?B[1]:"";A=PU1.test(J);var N=xkw.exec(J);
|
|
N=N!=null&&N.length>=2?N[1]:"";var F=ef1.exec(J);F=F!=null&&F.length>=2&&!Number.isNaN(Number(F[1]))?Number(F[1]):1;var D=nB0.exec(J);D=D!=null&&D.length>=2?D[1]:"0";var I=u9(this.player.K().vI),d=g.AV(this.player.getVideoData(1).Wn,!0);cMS(this,d,J,Z===""?"":Z,this.player.K(),this.player.getVideoData(1));Z={splay:!1,lactMilliseconds:String(rT()),playerHeightPixels:Math.trunc(this.player.Pn().yN().height),playerWidthPixels:Math.trunc(this.player.Pn().yN().width),vis:Math.trunc(this.player.getVisibilityState()),
|
|
signatureTimestamp:20424,autonavState:cu(this.player.K())};if(R){R={};var w=this.player.K().BI;Uky(R,w?w.join(","):"")&&(Z.mdxContext=R)}if(R=zf1.includes(I)?void 0:g.Yz("PREF")){w=R.split(RegExp("[:&]"));for(var r=0,h=w.length;r<h;r++){var Q=w[r].split("=");if((Q[0].toUpperCase()==="SML"||Q[0].toUpperCase()==="GSML")&&Q.length>1&&Q[1].toUpperCase()==="TRUE"){d.user.lockedSafetyMode=!0;break}}Z.autoCaptionsDefaultOn=vB7(R)}J=uDL.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&N&&(d.user.credentialTransferTokens=
|
|
[{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:Z};Z=this.player.getVideoData(1).getGetAdBreakContext();R=this.player.getVideoData(1).clientPlaybackNonce;w=V!==void 0?Math.round(V).toString():void 0;r=(f==null?0:f.context)?f.context:void 0;h=0;V&&K&&!f&&(K=K.end-K.start,K>0&&(h=Math.floor(K/1E3)));f=(f=Math.trunc((f?f.Dj:h)*1E3))?String(f):void 0;K=this.player.pX()*1E3;K=Number.isNaN(K)?0:Math.trunc(K);L={adBlock:L,params:B,breakIndex:F,breakPositionMs:D,clientPlaybackNonce:R,topLevelDomain:I,
|
|
isProxyAdTagRequest:A,context:d,overridePlaybackContext:J,cueProcessedMs:w,videoId:N?N:void 0,liveTargetingParams:r,breakLengthMs:f,driftFromHeadMs:K?String(K):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:Z?Z:void 0};return oJE(this,L)};var p5d={Dos:"replaceUrlMacros",M8x:"onAboutThisAdPopupClosed",t5p:"executeCommand"};BBw.prototype.vY=function(){return"adPingingEndpoint"};
|
|
BBw.prototype.Z9=function(A,L,B){MIL(this.j4.get(),A,L,B)};fe8.prototype.vY=function(){return"changeEngagementPanelVisibilityAction"};
|
|
fe8.prototype.Z9=function(A){this.S.Kr("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:A})};K3E.prototype.vY=function(){return"loggingUrls"};
|
|
K3E.prototype.Z9=function(A,L,B){A=g.m(A);for(var f=A.next();!f.done;f=A.next())f=f.value,MIL(this.j4.get(),f.baseUrl,L,B,f.attributionSrcMode)};g.G(JHy,g.Y);S8C.prototype.Xr=function(A,L){var B={};L=Object.assign({},L,(B.cc=this.kf.ju(),B));this.kf.S.Hn(A,L)};g.G(Up,g.Y);g.p=Up.prototype;g.p.addListener=function(A){this.listeners.push(A)};
|
|
g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})};
|
|
g.p.sj=function(A,L,B,f,K,V,J,R){if(A==="")Dh("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(A!==this.N||B){this.N=A;this.Mp.get().sj(A,L,B,f,K,V,J,R);this.hF.get().sj(A,L,B,f,K,V,J,R);var Z;(Z=this.hf)==null||Z.get().sj(A,L,B,f,K,V,J,R);this.W.sj(A,L,B,f,K,V,J,R);Z=g.m(this.listeners);for(var N=Z.next();!N.done;N=Z.next())N.value.sj(A,L,B,f,K,V,J,R)}else Dh("Duplicate content video loaded signal")};
|
|
g.p.x8j=function(){this.N&&this.dR(this.N)};
|
|
g.p.dR=function(A){this.N=void 0;for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.dR(A)};Wu.prototype.q$=function(A,L,B,f,K){R6L(this);this.D=!L&&B===0;var V=this.S.getVideoData(1),J=this.S.getVideoData(2);V&&(this.contentCpn=V.clientPlaybackNonce,this.videoId=V.videoId,this.N=V.T);J&&(this.adCpn=J.clientPlaybackNonce,this.adVideoId=J.videoId,this.adFormat=J.adFormat);this.U=A;f<=0?(R6L(this),this.D=!L&&B===0):(this.actionType=this.D?L?"unknown_type":"video_to_ad":L?"ad_to_video":"ad_to_ad",this.videoStreamType=K?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
|
|
(this.V=!0,iJ("_start",this.actionType)&&F38(this)))};
|
|
Wu.prototype.reset=function(){return new Wu(this.S)};g.G(vu,g.Y);vu.prototype.addCueRange=function(A,L,B,f,K,V,J,R,Z){V=V===void 0?3:V;J=J===void 0?1:J;this.N.has(A)?Dh("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:A}):(A=new D6L(A,L,B,f,V,R,Z),this.N.set(A.id,{rh:A,listener:K,sU:J}),this.S.dX([A],J))};
|
|
vu.prototype.removeCueRange=function(A){var L=this.N.get(A);L?(this.S.K9([L.rh],L.sU),this.N.delete(L.rh.id)):Dh("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:A})};
|
|
vu.prototype.onCueRangeEnter=function(A){if(this.N.has(A.id))this.N.get(A.id).listener.onCueRangeEnter(A.id)};
|
|
vu.prototype.onCueRangeExit=function(A){if(this.N.has(A.id))this.N.get(A.id).listener.onCueRangeExit(A.id)};
|
|
g.G(D6L,g.WR);qz.prototype.addPlayerResponseForAssociation=function(A){this.S.addPlayerResponseForAssociation(A)};Pu.prototype.lE=function(A){this.S.lE(A)};
|
|
Pu.prototype.Dp=function(A){var L=g.pf.apply(1,arguments);A==="onAdStart"||A==="onAdEnd"?this.S.X3.apply(this.S,[A].concat(g.x7(L))):this.S.Kr.apply(this.S,[A].concat(g.x7(L)))};var h6L=null;g.G(HBD,g.SN);HBD.prototype.EF=function(A){return this.N.hasOwnProperty(A)?this.N[A].EF():{}};
|
|
g.hf("ytads.bulleit.getVideoMetadata",function(A){return nZ().EF(A)});
|
|
g.hf("ytads.bulleit.triggerExternalActivityEvent",function(A,L,B){var f=nZ();B=siy(B);B!==null&&f.publish(B,{queryId:A,viewabilityString:L})});g.p=zj.prototype;g.p.QF=function(A,L){if(!this.N.has(A))return{};if(L==="seek"){L=!1;L=L===void 0?!1:L;var B=$$(Kc).o9(A,{});B?A5(B):L&&(A=$$(Kc).JG(null,eX(),!1,A),A.Rn=3,e3y([A]));return{}}L=tIw(L);if(L===null)return{};var f=this.S.Ur();if(!f)return{};var K=this.S.getPresentingPlayerType(!0);if((B=this.S.getVideoData(K))==null||!B.isAd())return{};B={opt_adElement:f,opt_fullscreen:this.Mp.get().isFullscreen()};return eKQ(L,A,B)};
|
|
g.p.dM=function(A,L,B,f,K){this.N.has(A)&&(f<=0||K<=0||$$(Kc).dM(A,L,B,f,K))};
|
|
g.p.qN=function(A){var L;(L=this.N.get(A.queryId))==null||L.qN()};
|
|
g.p.HQ=function(A){var L;(L=this.N.get(A.queryId))==null||L.HQ()};
|
|
g.p.IM=function(A){var L;(L=this.N.get(A.queryId))==null||L.IM()};
|
|
g.p.NN=function(A){var L;(L=this.N.get(A.queryId))==null||L.NN()};
|
|
g.p.WQ=function(A){var L;(L=this.N.get(A.queryId))==null||L.WQ()};$6k.prototype.send=function(A,L,B,f){try{Xn0(this,A,L,B,f===void 0?!1:f)}catch(K){}};g.G(OBQ,$6k);EJQ.prototype.send=function(A,L,B,f){var K=!1;try{if(f==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||f==="ATTRIBUTION_SRC_MODE_XHR_OPTION")K=!0,A=OKw(A);f=K;var V=g.bp(A);if(V[1]==="https")var J=A;else V[1]="https",J=hW("https",V[2],V[3],V[4],V[5],V[6],V[7]);var R=itL(J);V=[];var Z=ta0(J)&&this.FD.get().S.K().experiments.GL("add_auth_headers_to_remarketing_google_dot_com_ping");if(dW(J)||Z)V.push({headerType:"USER_AUTH"}),V.push({headerType:"PLUS_PAGE_ID"}),V.push({headerType:"VISITOR_ID"}),V.push({headerType:"EOM_VISITOR_ID"}),
|
|
V.push({headerType:"AUTH_USER"}),V.push({headerType:"DATASYNC_ID"});this.N.send({baseUrl:J,scrubReferrer:R,headers:V},L,B,f)}catch(N){}};oY.prototype.b0=function(){return this.S.b0(1)};g.G(B1,g.Y);g.p=B1.prototype;g.p.ju=function(){return this.S.getVideoData(1).clientPlaybackNonce};
|
|
g.p.addListener=function(A){this.listeners.push(A)};
|
|
g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})};
|
|
g.p.sj=function(){this.pI.clear();this.Sj=null;this.kH.get().clear()};
|
|
g.p.dR=function(){};
|
|
g.p.O8F=function(A,L,B){L.videoId==="nPpU29QrbiU"&&this.S.Hn("ads_ssm_vdc_s",{pt:B,dvt:A});SM(this.FD.get())&&A!=="dataloaded"||x6D(this,L,B)};
|
|
g.p.jyL=function(A,L){A!==void 0&&(this.Sj=A,L===void 0?Dh("Expected ad video start time on SS video changed"):this.pI.set(A,L));var B=this.S.getPresentingPlayerType(!0),f=this.S.getVideoData(B),K;A===void 0?K=null:K=this.kH.get().N.get(A)||null;this.S.getVideoData(1).Hn("ads_ssvc",{pt:B,cpn:f==null?void 0:f.clientPlaybackNonce,crtt:this.S.getCurrentTime(1,!1),atlh:this.S.isAtLiveHead(),adstt:L,pid:A,slid:K==null?void 0:K.layoutId});f?x6D(this,f,B):Dh("Expected video data on server stitched video changed",
|
|
void 0,void 0,{cpn:this.S.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:A})};
|
|
g.p.Ij=function(A,L){var B=A.author,f=A.clientPlaybackNonce,K=A.isListed,V=A.XA,J=A.title,R=A.bY,Z=A.CQ,N=A.isMdxPlayback,F=A.Zl,D=A.mdxEnvironment,I=A.isAutonav,d=A.Ll,w=A.BV,r=A.hI,h=A.videoId||"",Q=A.profilePicture||"",l=A.JO||"",C=A.zt()||!1,O=A.aA()||!1;A=A.Zi||void 0;V=this.kH.get().N.get(V)||{layoutId:null,slotId:null};var v=this.S.getVideoData(1),U=v.iC();v=v.getPlayerResponse();L=1E3*this.S.getDuration(L);var a=1E3*this.S.getDuration(1),o0,B6,Ve=(v==null?void 0:(o0=v.playerConfig)==null?
|
|
void 0:(B6=o0.daiConfig)==null?void 0:B6.enableDai)||!1,DS,fw;o0=(v==null?void 0:(DS=v.playerConfig)==null?void 0:(fw=DS.daiConfig)==null?void 0:fw.enablePreroll)||!1;return Object.assign({},V,{videoId:h,author:B,clientPlaybackNonce:f,zY:L,XL:a,daiEnabled:Ve,Fh:o0,isListed:K,iC:U,profilePicture:Q,title:J,JO:l,bY:R,CQ:Z,Zi:A,isMdxPlayback:N,Zl:F,mdxEnvironment:D,isAutonav:I,Ll:d,BV:w,hI:r,zt:C,aA:O})};
|
|
g.p.l1=function(){this.listeners.length=0;this.oV=null;g.Y.prototype.l1.call(this)};g.G(fY,g.Y);g.p=fY.prototype;g.p.sj=function(){var A=this;this.rq=nG(function(){A.S.TL()||A.S.Z2("ad",1)})};
|
|
g.p.dR=function(){};
|
|
g.p.addListener=function(A){this.listeners.push(A)};
|
|
g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})};
|
|
g.p.NA=function(){};
|
|
g.p.playVideo=function(){this.S.playVideo()};
|
|
g.p.pauseVideo=function(){this.S.pauseVideo()};
|
|
g.p.resumeVideo=function(A){this.l5(A)&&this.S.playVideo()};
|
|
g.p.l5=function(A){return this.S.getPlayerState(A)===2};
|
|
g.p.getCurrentTimeSec=function(A,L){var B=this.hF.get().Sj;return A!==2||L||B===null?this.S.getCurrentTime(A,L):VY(this,B)};
|
|
g.p.getVolume=function(){return this.S.getVolume()};
|
|
g.p.isMuted=function(){return this.S.isMuted()};
|
|
g.p.getPresentingPlayerType=function(){return this.S.getPresentingPlayerType(!0)};
|
|
g.p.getPlayerState=function(A){return this.S.getPlayerState(A)};
|
|
g.p.getGetAdBreakContext=function(){return this.S.getGetAdBreakContext()};
|
|
g.p.isFullscreen=function(){return this.S.isFullscreen()};
|
|
g.p.isAtLiveHead=function(){return this.S.isAtLiveHead()};
|
|
g.p.Nn=function(A){this.S.Nn(A)};
|
|
g.p.cfr=function(){var A=this.S.getPresentingPlayerType(!0),L=this.getCurrentTimeSec(A,!1);if(A===2){A=g.m(this.listeners);for(var B=A.next();!B.done;B=A.next())B.value.C9(L)}else if(A===1)for(A=g.m(this.Sz),B=A.next();!B.done;B=A.next())B.value.NA(L)};
|
|
g.p.iep=function(A){for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.H9(A,this.getPresentingPlayerType())};
|
|
g.p.onFullscreenToggled=function(A){for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.onFullscreenToggled(A)};
|
|
g.p.onVolumeChange=function(){for(var A=g.m(this.listeners),L=A.next();!L.done;L=A.next())L.value.onVolumeChange()};
|
|
g.p.mF=function(){for(var A=this.S.isMinimized(),L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.mF(A)};
|
|
g.p.iH=function(A){for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.iH(A)};
|
|
g.p.Bz=function(){for(var A=this.S.Pn().yN(),L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.T_(A)};
|
|
g.p.jO=function(A){for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.jO(A)};
|
|
g.p.gb=function(){for(var A=g.m(this.listeners),L=A.next();!L.done;L=A.next())L.value.gb()};g.G(aek,g.Y);g.G(RY,g.Y);RY.prototype.l1=function(){this.mJ.TL()||this.mJ.get().removeListener(this);g.Y.prototype.l1.call(this)};Z6.prototype.fetch=function(A){var L=A.eG;return this.N.fetch(A.HK,{Kn:A.Kn===void 0?void 0:A.Kn,rh:L,cueProcessedMs:A.cueProcessedMs===void 0?0:A.cueProcessedMs}).then(function(B){return Ac6(B,L)})};g.G(Ne,g.Y);g.p=Ne.prototype;g.p.addListener=function(A){this.listeners.push(A)};
|
|
g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})};
|
|
g.p.QV=function(A){LA6(this,A,1)};
|
|
g.p.onAdUxClicked=function(A,L){Fl(this,function(B){B.dI(A,L)})};
|
|
g.p.Ol=function(A){Fl(this,function(L){L.kp(A)})};
|
|
g.p.oT=function(A){Fl(this,function(L){L.lc(A)})};
|
|
g.p.GVp=function(A){Fl(this,function(L){L.cS(A)})};D6.prototype.reduce=function(A){switch(A.event){case "unknown":return}var L=A.identifier;var B=this.N[L];B?L=B:(B={jz:null,sW:-Infinity},L=this.N[L]=B);B=A.startSecs+A.N/1E3;if(!(B<L.sW))if(L.sW=B,L.jz){if(B<L.jz.end){a:{B=L.jz;switch(A.event){case "start":case "continue":case "stop":break;default:A=null;break a}A=B.start+A.Dj;A=B.end<=A?null:A}if(A!==null)for(L.jz.end=A,L=this.W,g.px(L.V.N,A*1E3),L=g.m(L.listeners),B=L.next();!B.done;B=L.next())B.value.yg(A)}}else if(A=oOL(A,this.V))B=A.C1n,L.jz=
|
|
A.c7,fv1(this.W,B)};
|
|
D6.prototype.updateTime=function(){};g.G(d1,g.Y);g.p=d1.prototype;
|
|
g.p.sj=function(){this.D=new D6(this,wn7(this.FD.get()));this.V=new BJw;var A=this.S.getVideoData(1);if(!A.enableServerStitchedDai){var L=this.S.getVideoData(1),B;((B=this.W)==null?void 0:B.clientPlaybackNonce)!==L.clientPlaybackNonce&&(this.W!=null&&this.W.unsubscribe("cuepointupdated",this.Ww,this),L.subscribe("cuepointupdated",this.Ww,this),this.W=L)}this.Qy.length=0;var f;L=((f=A.N)==null?void 0:i$v(f,0))||[];f=g.m(L);for(L=f.next();!L.done;L=f.next())L=L.value,this.IG(L)&&(RU(this.FD.get())&&
|
|
Ay(this.j4.get(),"ocvl","cpi."+L.identifier+";cpe."+L.event+";cps."+L.startSecs),Dh("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:L.identifier,cuePointEvent:L.event,contentCpn:A.clientPlaybackNonce}))};
|
|
g.p.dR=function(){};
|
|
g.p.addListener=function(A){this.listeners.push(A)};
|
|
g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})};
|
|
g.p.IG=function(A){Vu8(this,A);if(yHy(this.FD.get())&&this.S.getCurrentTime(1)===0&&this.S.getVideoData(1).aA())return!1;this.D.reduce(A);A=this.U;this.U=!1;return A};
|
|
g.p.Ww=function(A){var L=this.S.getVideoData(1).isDaiEnabled();if(L||!g.dY(this.S.K())){A=g.m(A);for(var B=A.next();!B.done;B=A.next())if(B=B.value,Vu8(this,B),RU(this.FD.get())&&this.S.getCurrentTime(1)===0&&B.event==="start"&&Ay(this.j4.get(),"ocuz","cpi."+B.identifier+";cpe."+B.event+";cps."+B.startSecs+";cpd."+B.Dj),L)yHy(this.FD.get())&&this.S.getCurrentTime(1)===0&&this.S.getVideoData(1).aA()||this.D.reduce(B);else if(this.S.getCurrentTime(1)!==0&&B.event==="start")if(this.FD.get().S.K().experiments.GL("ignore_overlapping_cue_points_on_endemic_live_html5")&&
|
|
(this.N==null||this.FD.get().S.K().experiments.GL("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.N.identifier!==B.identifier?0:B.startSecs+B.Dj>=this.N.startSecs&&B.startSecs<=this.N.startSecs+this.N.Dj)){var f=void 0;if(RU(this.FD.get())&&B.identifier!==((f=this.N)==null?void 0:f.identifier)){var K=f=void 0,V=void 0,J=void 0;Ay(this.j4.get(),"ocud","ccpi."+B.identifier+";ccpe."+B.event+";ccps."+B.startSecs+";\n ccpd."+B.Dj+";pcpi."+((f=this.N)==null?void 0:f.identifier)+
|
|
";pcpe."+((K=this.N)==null?void 0:K.event)+";\n pcps."+((V=this.N)==null?void 0:V.startSecs)+";pcpd."+((J=this.N)==null?void 0:J.Dj)+";")}f=void 0;B.identifier!==((f=this.N)==null?void 0:f.identifier)&&Dh("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.N=B,fv1(this,B)}};
|
|
g.p.l1=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.Ww,this),this.W=null);this.listeners.length=0;this.Qy.length=0;g.Y.prototype.l1.call(this)};g.p=w1.prototype;g.p.Nt=function(A,L,B,f,K,V,J,R){return this.S.Nt(A,L,B,f,K,V,J,R)};
|
|
g.p.Qc=function(A,L){this.S.Qc(A,L)};
|
|
g.p.i4=function(A,L,B){this.S.i4(A,L,B)};
|
|
g.p.V_=function(A){this.S.V_(A)};
|
|
g.p.A7=function(A,L,B,f,K,V,J,R){this.S.A7(A,L,B,f,K,V,J,R)};
|
|
g.p.bF=function(A){return this.S.bF(A)};
|
|
g.p.finishSegmentByCpn=function(A,L,B){B=Jc8(B);this.S.finishSegmentByCpn(A,L,B)};g.G(pY,g.Y);g.G(R$0,g.Y);g.G(ZNE,g.Y);g.G(NJ1,g.Y);g.G(FAD,g.Y);g.G(D3S,g.Y);g.G(Ivk,g.Y);Ivk.prototype.V=function(){return this.W};g.G(ws1,xr);
|
|
ws1.prototype.V=function(A){var L=A.content;if(L.componentType==="shopping-companion")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:A&&A.videoId,shoppingCompanionCarouselRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="action-companion")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);
|
|
this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:A&&A.videoId,actionCompanionAdRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L.renderer&&(L=this.N.getVideoData(1),this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId})),this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="image-companion")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);this.N.Kr("updateKevlarOrC3Companion",
|
|
{contentVideoId:A&&A.videoId,imageCompanionAdRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L=this.N.getVideoData(1),this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId}),this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="top-banner-image-text-icon-buttoned")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);this.N.Kr("updateKevlarOrC3Companion",
|
|
{contentVideoId:A&&A.videoId,topBannerImageTextIconButtonedLayoutViewModel:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L.renderer&&(L=this.N.getVideoData(1),this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId})),this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="banner-image")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);this.N.Kr("updateKevlarOrC3Companion",
|
|
{contentVideoId:A&&A.videoId,bannerImageLayoutViewModel:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L=this.N.getVideoData(1),this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId}),this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="ads-engagement-panel")switch(L=L.renderer,A.actionType){case 1:case 2:this.N.Kr("updateEngagementPanelAction",L.addAction);this.N.Kr("changeEngagementPanelVisibility",
|
|
L.expandAction);break;case 3:this.N.Kr("changeEngagementPanelVisibility",L.hideAction),this.N.Kr("updateEngagementPanelAction",L.removeAction)}else if(L.componentType==="ads-engagement-panel-layout"){var B=L.renderer;switch(A.actionType){case 1:case 2:this.N.Kr("updateEngagementPanelAction",{action:EF(B.addAction),layoutId:L.layoutId,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});this.N.Kr("changeEngagementPanelVisibility",EF(B.expandAction));break;case 3:this.N.Kr("changeEngagementPanelVisibility",
|
|
EF(B.hideAction)),this.N.Kr("updateEngagementPanelAction",{action:EF(B.removeAction)})}}};g.G(psy,oA);g.p=psy.prototype;g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);g.Kv(this.V,"stroke-dasharray","0 "+this.W);this.V.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.D.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.U.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
|
|
g.p.clear=function(){this.hide()};
|
|
g.p.hide=function(){fL(this);oA.prototype.hide.call(this)};
|
|
g.p.show=function(){BH(this);oA.prototype.show.call(this)};
|
|
g.p.q7=function(){this.hide()};
|
|
g.p.m3=function(){if(this.N){var A=this.N.getProgressState();A!=null&&A.current!=null&&g.Kv(this.V,"stroke-dasharray",A.current/A.seekableEnd*this.W+" "+this.W)}};g.G(yc7,dq);g.p=yc7.prototype;
|
|
g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);if(L.image&&L.image.thumbnail)if(L.headline)if(L.description)if(L.backgroundImage&&L.backgroundImage.thumbnail)if(L.actionButton&&g.y(L.actionButton,g.te))if(A=L.durationMilliseconds||0,typeof A!=="number"||A<=0)g.mL(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+A));else if(L.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null){var K=L.image.thumbnail.thumbnails;K!=null&&
|
|
K.length>0&&g.us(g.xj(K[0].url))&&(K[0].url=f.profilePicture,g.us(g.xj(f.profilePicture))&&oaw("VideoPlayer",239976093,"Expected non-empty profile picture."));K=L.backgroundImage.thumbnail.thumbnails;K!=null&&K.length>0&&g.us(g.xj(K[0].url))&&(K[0].url=f.g1());K=L.headline;K!=null&&g.us(g.xj(K.text))&&(K.text=f.author)}this.G.init(Vo("ad-image"),L.image,B);this.D.init(Vo("ad-text"),L.headline,B);this.V.init(Vo("ad-text"),L.description,B);this.Ex.init(Vo("ad-image"),L.backgroundImage,B);f=["ytp-ad-action-interstitial-action-button",
|
|
"ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.D.element.classList.add("ytp-ad-action-interstitial-headline-light");this.V.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.K().J("enable_default_mono_cta_migration_web_client")?f.push("ytp-ad-action-interstitial-action-button-mono-dark"):f.push("ytp-ad-action-interstitial-action-button-dark");this.api.K().W&&(f.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),
|
|
this.api.K().J("enable_default_mono_cta_migration_web_client")?f.push("ytp-ad-action-interstitial-action-button-mono-dark"):f.push("ytp-ad-action-interstitial-action-button-dark"));this.api.K().J("enable_unified_action_endcap_on_web")&&!this.api.K().W&&(this.api.K().J("enable_default_mono_cta_migration_web_client")?f.push("ytp-ad-action-interstitial-action-button-unified-mono"):f.push("ytp-ad-action-interstitial-action-button-unified"),this.sx.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),
|
|
this.G.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Ox.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.iQ.classList.add("ytp-ad-action-interstitial-card-unified"),this.qp.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.V.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.wT.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-headline-unified"),
|
|
this.S4.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ys.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,f);g.W(this,this.actionButton);this.actionButton.DM(this.sx);this.actionButton.init(Vo("button"),g.y(L.actionButton,g.te),B);xw(this.actionButton.element);f=z7(this.actionButton.element);ne(this.actionButton.element,
|
|
f+" This link opens in new tab");this.navigationEndpoint=L.navigationEndpoint;this.U.Y(this.S4,"click",this.ym,this);this.U.Y(this.qp,"click",this.ym,this);this.api.K().W||this.U.Y(this.wT,"click",this.ym,this);this.N=this.ZT?new sN(this.api,A):new HH(A);g.W(this,this.N);if(L.skipButton){(A=g.y(L.skipButton,c1O))&&this.N&&(this.skipButton=new pL(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N,this.uj),g.W(this,this.skipButton),this.skipButton.DM(this.element),this.skipButton.init(Vo("skip-button"),
|
|
A,B));if(B=L.adBadgeRenderer)if(B=g.y(B,E7O))A=new Gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0,!0),A.DM(this.Ys),A.init(Vo("simple-ad-badge"),B,this.macros),g.W(this,A);if(B=L.adInfoRenderer)if(B=g.y(B,he))A=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,void 0,!0),A.DM(this.Ys),A.init(Vo("ad-info-hover-text-button"),B,this.macros),g.W(this,A)}else L.nonskippableOverlayRenderer&&(A=g.y(L.nonskippableOverlayRenderer,bM))&&this.N&&(this.W=
|
|
new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N,!1),g.W(this,this.W),this.W.DM(this.element),this.W.init(Vo("ad-preview"),A,B));L.countdownRenderer&&(L=L.countdownRenderer,g.y(L,MEd)&&this.N&&(B=new psy(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N),g.W(this,B),B.DM(this.element),B.init(Vo("timed-pie-countdown"),g.y(L,MEd),this.macros)));this.show();this.element.focus()}else g.mL(Error("AdActionInterstitialRenderer has no navigation endpoint."));
|
|
else g.mL(Error("AdActionInterstitialRenderer has no button."));else g.mL(Error("AdActionInterstitialRenderer has no background AdImage."));else g.mL(Error("AdActionInterstitialRenderer has no description AdText."));else g.mL(Error("AdActionInterstitialRenderer has no headline AdText."));else g.mL(Error("AdActionInterstitialRenderer has no image."))};
|
|
g.p.clear=function(){g.$_(this.U);this.hide()};
|
|
g.p.show=function(){jZe(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();dq.prototype.show.call(this)};
|
|
g.p.hide=function(){jZe(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();dq.prototype.hide.call(this)};
|
|
g.p.ym=function(){this.navigationEndpoint&&(this.layoutId?this.Qj.executeCommand(this.navigationEndpoint,this.layoutId):g.mL(Error("Missing layoutId for ad action interstitial.")))};var HN6={iconType:"CLOSE"},G2=new g.Sr(320,63);g.G(sZL,dq);g.p=sZL.prototype;
|
|
g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.U=L;this.G=g.Kx(this.U.onClickCommands||[]);this.Ys=this.U.onErrorCommand||null;if(A=this.U.contentSupportedRenderer)A=this.U.contentSupportedRenderer,L=this.U.adInfoRenderer||null,g.y(A,$Cf)?(this.D=g.sA("ytp-ad-overlay-ad-info-button-container",this.V.element),h$v(this,L),A=tuS(this,g.y(A,$Cf))):g.y(A,X6w)?(this.D=g.sA("ytp-ad-overlay-ad-info-button-container",this.W.element),h$v(this,L),A=kny(this,g.y(A,X6w))):g.y(A,OwI)?(this.D=
|
|
g.sA("ytp-ad-overlay-ad-info-button-container",this.N.element),h$v(this,L),A=TJ8(this,g.y(A,OwI))):(g.mL(Error("InvideoOverlayAdRenderer content could not be initialized.")),A=!1);A&&(this.show(),lvD(this,!0))};
|
|
g.p.clear=function(){lvD(this,!1);this.S4.reset();this.qp=0;this.V.hide();this.logVisibility(this.V.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.hide();this.dispose()};
|
|
g.p.u31=function(){this.sx&&(this.layoutId?this.Qj.executeCommand(this.sx,this.layoutId):g.mL(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
|
|
g.p.uK=function(){a:{if(this.U&&this.U.closeButton&&this.U.closeButton.buttonRenderer){var A=this.U.closeButton.buttonRenderer;if(A.serviceEndpoint){A=[A.serviceEndpoint];break a}}A=[]}A=g.m(A);for(var L=A.next();!L.done;L=A.next())L=L.value,this.layoutId?this.Qj.executeCommand(L,this.layoutId):g.mL(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
|
|
g.p.ags=function(){this.Ex||this.api.getPlayerState(1)!==2||this.api.playVideo()};
|
|
g.p.JZ=function(){this.Ex||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.JZ("invideo-overlay")};
|
|
g.p.KH4=function(A){A.target===this.D&&g.sA("ytp-ad-button",this.Ox.element).click()};g.G(m3D,oA);g.p=m3D.prototype;g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);A=L.durationMs;this.V=A==null||A===0?0:A+this.N.getProgressState().current*1E3;if(L.text)var f=L.text.templatedAdText;else L.staticMessage&&(f=L.staticMessage);this.messageText.init(Vo("ad-text"),f,B);this.messageText.DM(this.W.element);this.U.show(100);this.show()};
|
|
g.p.clear=function(){this.hide()};
|
|
g.p.hide=function(){QZk(this,!1);oA.prototype.hide.call(this);this.W.hide();this.messageText.hide();fL(this)};
|
|
g.p.show=function(){QZk(this,!0);oA.prototype.show.call(this);BH(this);this.W.show();this.messageText.show()};
|
|
g.p.q7=function(){this.hide()};
|
|
g.p.m3=function(){if(this.N!=null){var A=this.N.getProgressState();A!=null&&A.current!=null&&(A=1E3*A.current,!this.qp&&A>=this.V?(this.U.hide(),this.qp=!0):this.messageText&&this.messageText.isTemplated()&&(A=Math.max(0,Math.ceil((this.V-A)/1E3)),A!==this.D&&(LL(this.messageText,{TIME_REMAINING:String(A)}),this.D=A)))}};g.G(CxQ,dq);g.p=CxQ.prototype;
|
|
g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,{});L.image&&L.image.thumbnail?L.headline?L.description?L.actionButton&&g.y(L.actionButton,g.te)?(this.V.init(Vo("ad-image"),L.image,B),this.W.init(Vo("ad-text"),L.headline,B),this.U.init(Vo("ad-text"),L.description,B),this.actionButton=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-underlay-action-button"]),L.backgroundColor&&g.Kv(this.element,"background-color",g.Mf(L.backgroundColor)),g.W(this,this.actionButton),
|
|
this.actionButton.DM(this.D),this.actionButton.init(Vo("button"),g.y(L.actionButton,g.te),B),A=g.Am(this.api.K().experiments,"player_underlay_video_width_fraction"),this.api.K().J("place_shrunken_video_on_left_of_player")?(L=this.N,g.NH(L,"ytp-ad-underlay-left-container"),g.R1(L,"ytp-ad-underlay-right-container"),g.Kv(this.N,"margin-left",Math.round((A+.02)*100)+"%")):(L=this.N,g.NH(L,"ytp-ad-underlay-right-container"),g.R1(L,"ytp-ad-underlay-left-container")),g.Kv(this.N,"width",Math.round((1-A-
|
|
.04)*100)+"%"),this.api.kQ()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.XB.bind(this)),this.api.addEventListener("resize",this.jh.bind(this))):g.mL(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.mL(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.mL(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.mL(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
|
|
g.p.show=function(){iNL(!0);this.actionButton&&this.actionButton.show();dq.prototype.show.call(this)};
|
|
g.p.hide=function(){iNL(!1);this.actionButton&&this.actionButton.hide();dq.prototype.hide.call(this)};
|
|
g.p.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.XB.bind(this));this.api.removeEventListener("resize",this.jh.bind(this));this.hide()};
|
|
g.p.onClick=function(A){dq.prototype.onClick.call(this,A);this.actionButton&&g.XF(this.actionButton.element,A.target)&&this.api.pauseVideo()};
|
|
g.p.XB=function(A){A==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):A==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):A==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};
|
|
g.p.jh=function(A){A.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):A.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
|
|
g.Kv(this.W.element,"font-size",A.width/40+"px")};g.G(r1,dq);
|
|
r1.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);L.toggledLoggingParams&&(this.toggledLoggingParams=L.toggledLoggingParams);L.answer&&g.y(L.answer,g.te)?(A=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),A.DM(this.answer),A.init(Vo("ytp-ad-survey-answer-button"),g.y(L.answer,g.te),B),A.show()):L.answer&&g.y(L.answer,gQ)&&(this.N=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,
|
|
["ytp-ad-survey-answer-toggle-button"]),this.N.DM(this.answer),g.W(this,this.N),this.N.init(Vo("survey-answer-button"),g.y(L.answer,gQ),B));this.show()};
|
|
r1.prototype.fK=function(A){this.layoutId?Cy(this.Qj,A,this.layoutId,this.macros):(A=new g.iL("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.mL(A))};
|
|
r1.prototype.onClick=function(A){dq.prototype.onClick.call(this,A);if(this.api.K().J("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
|
|
r1.prototype.clear=function(){this.hide()};g.G($3L,dq);$3L.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);L.answer&&g.y(L.answer,gQ)&&(this.button=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.DM(this.N),this.button.init(Vo("survey-none-of-the-above-button"),g.y(L.answer,gQ),B));this.show()};g.G(s$,Xb);s$.prototype.init=function(A,L,B){Xb.prototype.init.call(this,A,L,B);A=!1;L.text&&(L=g.wq(L.text),A=!g.us(L));A||g.CE(Error("No submit text was present in the renderer."))};
|
|
s$.prototype.onClick=function(A){this.publish("l");Xb.prototype.onClick.call(this,A)};g.G(H1,dq);
|
|
H1.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);if(A=L.skipOrPreviewRenderer)g.y(A,fp)?(A=g.y(A,fp),B=new jm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.U,!0),B.DM(this.skipOrPreview),B.init(Vo("skip-button"),A,this.macros),g.W(this,B),this.N=B):g.y(A,bM)&&(A=g.y(A,bM),B=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.U,!1),B.DM(this.skipOrPreview),B.init(Vo("ad-preview"),A,this.macros),B.qp.show(100),B.show(),g.W(this,B),
|
|
this.N=B);this.N==null&&(A=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(L)),g.mL(A));L.submitButton&&(A=L.submitButton,g.y(A,g.te)&&(A=g.y(A,g.te),B=new s$(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),B.DM(this.submitButton),B.init(Vo("survey-submit"),A,this.macros),g.W(this,B),this.W=B));if(A=L.adBadgeRenderer)A=g.y(A,E7O),B=new Gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0,!0,!0),B.DM(this.V),B.init(Vo("simple-ad-badge"),
|
|
A,this.macros),this.adBadge=B.element,g.W(this,B);if(A=L.adDurationRemaining)A=g.y(A,Q0t),B=new kI(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.U,void 0,!0),B.DM(this.V),B.init(Vo("ad-duration-remaining"),A,this.macros),g.W(this,B);(L=L.adInfoRenderer)&&g.y(L,he)&&(A=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,void 0,!0),g.W(this,A),this.adBadge!==void 0?this.V.insertBefore(A.element,this.adBadge.nextSibling):A.DM(this.V),A.init(Vo("ad-info-hover-text-button"),
|
|
g.y(L,he),this.macros));this.show()};
|
|
H1.prototype.clear=function(){this.hide()};g.G(h3,dq);h3.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);Mu0(this)};
|
|
h3.prototype.show=function(){this.V=Date.now();dq.prototype.show.call(this)};
|
|
h3.prototype.NO=function(){};g.G(Ym0,h3);g.p=Ym0.prototype;g.p.init=function(A,L,B){var f=this;h3.prototype.init.call(this,A,L,B);L.questionText&&XsC(this,L.questionText);L.answers&&L.answers.forEach(function(K,V){g.y(K,yb)&&ONE(f,g.y(K,yb),B,V)});
|
|
this.D=new Set(this.W.map(function(K){return K.N.N}));
|
|
(A=L.noneOfTheAbove)&&(A=g.y(A,iwt))&&U3w(this,A,B);L.surveyAdQuestionCommon&&cc6(this,L.surveyAdQuestionCommon);L.submitEndpoints&&(this.submitEndpoints=L.submitEndpoints);this.Y(this.element,"change",this.onChange);this.show()};
|
|
g.p.NO=function(){WA8(this,!1);this.U.W.subscribe("l",this.syT,this)};
|
|
g.p.onChange=function(A){A.target===this.noneOfTheAbove.button.N?vO7(this):this.D.has(A.target)&&(this.noneOfTheAbove.button.toggleButton(!1),WA8(this,!0))};
|
|
g.p.syT=function(){var A=[],L=this.W.reduce(function(K,V,J){var R=V.toggledLoggingParams;V.N&&V.N.isToggled()&&R&&(K.push(R),A.push(J));return K},[]).join("&"),B=this.submitEndpoints.map(function(K){if(!K.loggingUrls)return K;
|
|
K=g.$g(K);K.loggingUrls=K.loggingUrls.map(function(V){V.baseUrl&&(V.baseUrl=$s(V.baseUrl,L));return V});
|
|
return K});
|
|
if(B){B=g.m(B);for(var f=B.next();!f.done;f=B.next())f=f.value,this.layoutId?Cy(this.Qj,f,this.layoutId,this.macros):g.mL(Error("Missing layoutId for multi_select_question."))}this.api.K().J("supports_multi_step_on_desktop")&&this.qp(A)};
|
|
g.p.clear=function(){this.api.K().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.G(bv,h3);bv.prototype.init=function(A,L,B){var f=this;h3.prototype.init.call(this,A,L,B);L.questionText&&XsC(this,L.questionText);L.answers&&L.answers.forEach(function(K,V){g.y(K,yb)&&ONE(f,g.y(K,yb),B,V)});
|
|
L.surveyAdQuestionCommon?cc6(this,L.surveyAdQuestionCommon):QH(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(L)));this.show()};
|
|
bv.prototype.clear=function(){this.api.K().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.G(t3,dq);t3.prototype.init=function(A,L,B){var f=this;dq.prototype.init.call(this,A,L,B);if(this.api.K().J("supports_multi_step_on_desktop")){var K;this.conditioningRules=(K=L.conditioningRules)!=null?K:[];var V;this.W=(V=L.questions)!=null?V:[];var J;((J=L.questions)==null?0:J.length)&&e$L(this,0)}else(L.questions||[]).forEach(function(R){g.y(R,s4)?Pxv(f,g.y(R,s4),B):g.y(R,r9)&&x38(f,g.y(R,r9),B)});
|
|
this.show()};
|
|
t3.prototype.clear=function(){this.api.K().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
|
|
t3.prototype.U=function(A){var L=this;if(this.api.K().J("supports_multi_step_on_desktop")){var B;if((B=this.conditioningRules)==null?0:B.length){var f;if(A.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(K){return K.questionIndex===L.N})==null)g.mL(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
|
|
else if(this.conditioningRules.forEach(function(K){if(K.questionIndex===L.N)switch(K.condition){case "CONDITION_ALL_OF":var V;if((V=K.answerIndices)==null?0:V.every(function(R){return A.includes(R)}))f=K.nextQuestionIndex;
|
|
break;case "CONDITION_ANY_OF":var J;if((J=K.answerIndices)==null?0:J.some(function(R){return A.includes(R)}))f=K.nextQuestionIndex;
|
|
break;default:g.mL(Error("Expected specified condition in survey conditioning rules."))}}),f!=null)e$L(this,f);
|
|
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.mL(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.G(k4,dq);
|
|
k4.prototype.init=function(A,L,B){var f=this;dq.prototype.init.call(this,A,L,B);A=L.timeoutSeconds||0;if(typeof A!=="number"||A<0)g.mL(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+A));else if(L.timeoutCommands)if(L.text)if(L.ctaButton&&g.y(L.ctaButton,g.te))if(L.brandImage)if(L.backgroundImage&&g.y(L.backgroundImage,kY)&&g.y(L.backgroundImage,kY).landscape){this.layoutId||g.mL(Error("Missing layoutId for survey interstitial."));nOQ(this.interstitial,g.y(L.backgroundImage,
|
|
kY).landscape);nOQ(this.logoImage,L.brandImage);g.OA(this.text,g.wq(L.text));var K=["ytp-ad-survey-interstitial-action-button"];K.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,K);g.W(this,this.actionButton);this.actionButton.DM(this.W);this.actionButton.init(Vo("button"),g.y(L.ctaButton,g.te),B);this.actionButton.show();this.N=new sN(this.api,A*1E3);this.N.subscribe("g",function(){f.transition.hide()});
|
|
g.W(this,this.N);this.Y(this.element,"click",function(V){var J=V.target===f.interstitial;V=f.actionButton.element.contains(V.target);if(J||V)if(f.transition.hide(),J)f.api.onAdUxClicked(f.componentType,f.layoutId)});
|
|
this.transition.show(100)}else g.mL(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.mL(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.mL(Error("SurveyTextInterstitialRenderer has no button."));else g.mL(Error("SurveyTextInterstitialRenderer has no text."));else g.mL(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
|
|
k4.prototype.clear=function(){this.hide()};
|
|
k4.prototype.show=function(){z$v(!0);dq.prototype.show.call(this)};
|
|
k4.prototype.hide=function(){z$v(!1);dq.prototype.hide.call(this)};g.G(T2,oA);g.p=T2.prototype;
|
|
g.p.init=function(A,L){oA.prototype.init.call(this,A,L,{});if(L.durationMilliseconds){if(L.durationMilliseconds<0){g.mL(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+L.durationMilliseconds));return}this.W=L.durationMilliseconds}else this.W=this.N.XZ();var B;if((B=L.previewText)==null||!B.text||g.us(L.previewText.text))g.mL(Error("No text is returned for AdPreview."));else{this.D=L.previewText;L.previewText.isTemplated||g.OA(this.V,L.previewText.text);var f;
|
|
if(((f=this.api.getVideoData(1))==null?0:f.nL)&&L.previewImage){var K,V;(A=((V=Ff(((K=L.previewImage)==null?void 0:K.sources)||[],52,!1))==null?void 0:V.url)||"")&&A.length?(this.previewImage=new g.DE({Z:"img",j:"ytp-preview-ad__image",C:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",A),g.W(this,this.previewImage),this.previewImage.DM(this.element)):g.mL(Error("Failed to get imageUrl in AdPreview."))}else this.V.classList.add("ytp-preview-ad__text--padding--wide")}};
|
|
g.p.clear=function(){this.hide()};
|
|
g.p.hide=function(){fL(this);oA.prototype.hide.call(this)};
|
|
g.p.show=function(){BH(this);oA.prototype.show.call(this)};
|
|
g.p.q7=function(){this.hide()};
|
|
g.p.m3=function(){if(this.N){var A=this.N.getProgressState();if(A!=null&&A.current)if(A=1E3*A.current,A>=this.W)this.transition.hide();else{var L;if((L=this.D)==null?0:L.isTemplated)if(L=Math.max(0,Math.ceil((this.W-A)/1E3)),L!==this.U){var B,f;(A=(B=this.D)==null?void 0:(f=B.text)==null?void 0:f.replace("{TIME_REMAINING}",String(L)))&&g.OA(this.V,A);this.U=L}}}};g.G(lv,dq);
|
|
lv.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});var B,f;if((A=((f=Ff(((B=L.image)==null?void 0:B.sources)||[],uHQ(L),!0))==null?void 0:f.url)||"")&&A.length){B=this.m4("ytp-ad-avatar");B.src=A;var K,V;if(f=(K=L.interaction)==null?void 0:(V=K.accessibility)==null?void 0:V.label)B.alt=f;switch(L.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s");
|
|
break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(L.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.mL(Error("Failed to get imageUrl in AdAvatar."))};
|
|
lv.prototype.clear=function(){this.hide()};
|
|
lv.prototype.onClick=function(A){dq.prototype.onClick.call(this,A)};g.G(mG,dq);
|
|
mG.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});var B;A=(B=L.label)==null?void 0:B.content;if((B=A!=null&&!g.us(A))||L.iconImage){B&&(this.buttonText=new g.DE({Z:"span",j:"ytp-ad-button-vm__text",Ir:A}),g.W(this,this.buttonText),this.buttonText.DM(this.element));var f,K,V=((f=L.interaction)==null?0:(K=f.accessibility)==null?0:K.label)||B?A:"";V&&ne(this.element,V+" This link opens in new tab");xw(this.element);if(L.iconImage){f=void 0;if(L.iconImage){a:{K=L.iconImage;if(K.sources)for(K=
|
|
g.m(K.sources),A=K.next();!A.done;A=K.next())if(A=A.value,V=void 0,(V=A.clientResource)==null?0:V.imageName){K=A;break a}K=void 0}if(K){var J;f={iconType:(J=K.clientResource)==null?void 0:J.imageName}}}J=$r(f,!1,this.W);J!=null&&(this.buttonIcon=new g.DE({Z:"span",j:"ytp-ad-button-vm__icon",B:[J]}),g.W(this,this.buttonIcon),L.iconLeading?(iA(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):B?(this.buttonIcon.DM(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
|
|
(this.buttonIcon.DM(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(L.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.J("delhi_modern_web_player")?
|
|
this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.N?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(L.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.CE(Error("AdButton does not have label or an icon."))};
|
|
mG.prototype.clear=function(){this.hide()};
|
|
mG.prototype.onClick=function(A){dq.prototype.onClick.call(this,A)};g.G(av6,oA);g.p=av6.prototype;
|
|
g.p.init=function(A,L){oA.prototype.init.call(this,A,L,{});if(A=g.y(L.avatar,Me)){var B=L.headline;if(B){var f=L.description;if(f){var K=g.y(L.button,U$);K?(this.adAvatar.init(Vo("ad-avatar"),A),this.headline.init(Vo("ad-simple-attributed-string"),new lV(B)),this.description.init(Vo("ad-simple-attributed-string"),new lV(f)),B.content&&B.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(Vo("ad-button"),K),
|
|
this.startMilliseconds=L.startMs||0,this.api.kQ()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.ip.bind(this)),BH(this)):g.mL(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mL(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mL(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mL(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
|
|
g.p.m3=function(){if(this.N){var A=this.N.getProgressState();A&&A.current&&1E3*A.current>=this.startMilliseconds&&(fL(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
|
|
g.p.q7=function(){this.clear()};
|
|
g.p.onClick=function(A){this.api.pauseVideo();oA.prototype.onClick.call(this,A)};
|
|
g.p.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.ip.bind(this))};
|
|
g.p.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();oA.prototype.show.call(this)};
|
|
g.p.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();oA.prototype.hide.call(this)};
|
|
g.p.ip=function(A){A==="hidden"?this.show():this.hide()};g.G(QY,dq);g.p=QY.prototype;
|
|
g.p.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(!L.label||g.us(L.label))g.mL(Error("No label is returned for SkipAdButton."));else if(g.OA(this.U,L.label),A=$r({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.J("delhi_modern_web_player_icons")),A==null)g.mL(Error("Unable to retrieve icon for SkipAdButton"));else if(this.V=new g.DE({Z:"span",j:"ytp-skip-ad-button__icon",B:[A]}),g.W(this,this.V),this.V.DM(this.element),this.api.K().experiments.GL("enable_skip_to_next_messaging")&&(L=g.xj(L.targetId)))this.W=
|
|
!0,this.element.setAttribute("data-tooltip-target-id",L),this.element.setAttribute("data-tooltip-target-fixed","")};
|
|
g.p.onClick=function(A){A&&A.preventDefault();var L,B;X9E(A,{contentCpn:(B=(L=this.api.getVideoData(1))==null?void 0:L.clientPlaybackNonce)!=null?B:""})===0?this.api.Kr("onAbnormalityDetected"):(dq.prototype.onClick.call(this,A),this.api.Kr("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
|
|
g.p.clear=function(){this.N.reset();this.hide()};
|
|
g.p.hide=function(){dq.prototype.hide.call(this)};
|
|
g.p.show=function(){this.N.start();dq.prototype.show.call(this);this.W&&this.api.K().experiments.GL("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.G(AJ1,oA);g.p=AJ1.prototype;
|
|
g.p.init=function(A,L){oA.prototype.init.call(this,A,L,{});A=g.y(L.preskipState,xCB);var B;if((B=this.api.getVideoData())==null?0:B.isDaiEnabled()){if(!A){g.mL(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.W=new T2(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N);g.W(this,this.W);this.W.DM(this.element);var f;(f=this.W)==null||f.init(Vo("preview-ad"),A);(B=this.W)!=null&&(B.transition.show(100),B.show())}(B=g.y(L.skippableState,n7t))?(L.skipOffsetMilliseconds!=
|
|
null?this.skipOffsetMilliseconds=L.skipOffsetMilliseconds:(g.CE(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.V.init(Vo("skip-button"),B),this.show()):g.mL(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
|
|
g.p.show=function(){BH(this);oA.prototype.show.call(this)};
|
|
g.p.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.V&&this.V.hide();fL(this);oA.prototype.hide.call(this)};
|
|
g.p.clear=function(){var A;(A=this.W)==null||A.clear();this.V&&this.V.clear();fL(this);oA.prototype.hide.call(this)};
|
|
g.p.q7=function(){this.hide()};
|
|
g.p.m3=function(){if(1E3*this.N.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var A;(A=this.W)!=null&&A.transition.hide();(A=this.V)!=null&&(A.transition.show(),A.show())}};g.G(CY,dq);
|
|
CY.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L.label){var B;((B=L.label)==null?0:B.content)&&!g.us(L.label.content)&&(this.linkText=new g.DE({Z:"span",j:"ytp-visit-advertiser-link__text",Ir:L.label.content}),g.W(this,this.linkText),this.linkText.DM(this.element));var f,K;if((f=L.interaction)==null?0:(K=f.accessibility)==null?0:K.label)ne(this.element,L.interaction.accessibility.label+" This link opens in new tab");else{var V;((V=L.label)==null?0:V.content)&&!g.us(L.label.content)&&ne(this.element,
|
|
L.label.content+" This link opens in new tab")}xw(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.mL(Error("No label found in VisitAdvertiserLink."))};
|
|
CY.prototype.onClick=function(A){dq.prototype.onClick.call(this,A);this.api.onAdUxClicked(this.componentType,this.layoutId)};
|
|
CY.prototype.clear=function(){this.hide()};g.G(iv,dq);
|
|
iv.prototype.init=function(A,L,B,f){dq.prototype.init.call(this,A,L,{});if(L.skipOrPreview){B=L.skipOrPreview;A=g.y(B,zQt);B=g.y(B,xCB);if(A)this.s5=new AJ1(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W),g.W(this,this.s5),this.s5.DM(this.G),this.s5.init(Vo("skip-ad"),A);else{var K;B&&((K=this.api.getVideoData())==null?0:K.isDaiEnabled())&&(this.U=new T2(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W,1),g.W(this,this.U),this.U.DM(this.G),this.U.init(Vo("ad-preview"),
|
|
B),K=this.U,K.transition.show(100),K.show())}if(K=g.y(L.skipOrPreview,zQt))var V=K.skipOffsetMilliseconds}L.playerAdCard&&(K=g.y(L.playerAdCard,eQK))&&(this.playerAdCard=new av6(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W),g.W(this,this.playerAdCard),this.playerAdCard.DM(this.wT),this.playerAdCard.init(Vo("ad-avatar-lockup-card"),K));L.adBadgeRenderer&&((K=g.y(L.adBadgeRenderer,Y4))?(this.V=new Qr(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0),g.W(this,
|
|
this.V),this.V.DM(this.N),this.V.init(Vo("ad-badge"),K)):g.mL(Error("AdBadgeViewModel is not found in player overlay layout.")));L.adPodIndex&&(K=g.y(L.adPodIndex,WvI))&&(this.adPodIndex=new CL(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.adPodIndex),this.adPodIndex.DM(this.N),this.adPodIndex.init(Vo("ad-pod-index"),K));L.adInfoRenderer&&((K=g.y(L.adInfoRenderer,he))?(this.adInfoButton=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,
|
|
void 0,!0),g.W(this,this.adInfoButton),this.V!==void 0?this.N.insertBefore(this.adInfoButton.element,this.V.element.nextSibling):this.adInfoButton.DM(this.N),this.adInfoButton.init(Vo("ad-info-hover-text-button"),K,this.macros)):g.CE(Error("AdInfoRenderer is not found in player overlay layout.")));var J;K=(J=this.api.getVideoData())==null?void 0:J.isDaiEnabled();L.adDurationRemaining&&K&&(J=g.y(L.adDurationRemaining,Q0t))&&(this.adDurationRemaining=new kI(this.api,this.layoutId,this.interactionLoggingClientData,
|
|
this.Qj,this.W,f.videoAdDurationSeconds,!0),g.W(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.N.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.DM(this.N),this.adDurationRemaining.init(Vo("ad-duration-remaining"),J,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));L.visitAdvertiserLink&&(f=g.y(L.visitAdvertiserLink,aSw))&&(this.visitAdvertiserLink=new CY(this.api,this.layoutId,
|
|
this.interactionLoggingClientData,this.Qj),g.W(this,this.visitAdvertiserLink),this.visitAdvertiserLink.DM(this.N),this.visitAdvertiserLink.init(Vo("visit-advertiser-link"),f));L.adDisclosureBanner&&(L=g.y(L.adDisclosureBanner,UCf))&&(this.adDisclosureBanner=new iV(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.adDisclosureBanner),this.adDisclosureBanner.DM(this.qp),this.adDisclosureBanner.init(Vo("ad-disclosure-banner"),L));this.D=new ON(this.api,this.W,V,!0);g.W(this,
|
|
this.D);g.Wh(this.api,this.D.element,4);this.show()};
|
|
iv.prototype.clear=function(){this.hide()};g.G(Lpe,dq);g.p=Lpe.prototype;
|
|
g.p.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L!=null&&L.title)if(A=L.title)if(this.headline.init(Vo("ad-simple-attributed-string"),new lV(A)),A=g.y(L.moreInfoButton,U$)){if(this.moreInfoButton.init(Vo("ad-button"),A),L.descriptions)L.descriptions.length>0&&(A=L.descriptions[0])&&(this.N=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.N),this.N.DM(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.N.init(Vo("ad-simple-attributed-string"),
|
|
new lV(A))),L.descriptions.length>1&&(L=L.descriptions[1])&&(this.W=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.W),this.W.DM(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(Vo("ad-simple-attributed-string"),new lV(L)))}else g.mL(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.mL(Error("No headline found in AdGridCardText."));else g.mL(Error("No headline found in AdGridCardText."))};
|
|
g.p.onClick=function(A){dq.prototype.onClick.call(this,A);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
|
|
g.p.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var A;(A=this.N)==null||A.clear();var L;(L=this.W)==null||L.clear()};
|
|
g.p.hide=function(){this.headline.hide();this.moreInfoButton.hide();var A;(A=this.N)==null||A.hide();var L;(L=this.W)==null||L.hide();dq.prototype.hide.call(this)};
|
|
g.p.show=function(){dq.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var A;(A=this.N)==null||A.show();var L;(L=this.W)==null||L.show()};g.G($4,dq);$4.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L!=null&&L.gridCards)if(L.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.mL(Error("Only single column style is currently supported in AdGridCardCollection."));else for(A=g.m(L.gridCards),L=A.next();!L.done;L=A.next()){if(L=g.y(L.value,PLI)){var B=new Lpe(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,B);B.DM(this.element);B.init(Vo("ad-grid-card-text"),L);this.N.push(B)}}else g.mL(Error("No grid cards found in AdGridCardCollection."))};
|
|
$4.prototype.show=function(){for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L.value.show();dq.prototype.show.call(this)};
|
|
$4.prototype.clear=function(){this.hide();for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L.value.clear()};
|
|
$4.prototype.hide=function(){for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L.value.hide();dq.prototype.hide.call(this)};g.G(Xl,oA);g.p=Xl.prototype;g.p.init=function(A,L,B,f,K){K=K===void 0?0:K;oA.prototype.init.call(this,A,L,B,f);this.playerProgressOffsetMs=K;BH(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Au.bind(this));this.api.addEventListener("resize",this.YB.bind(this));this.api.kQ()?(this.W=!0,this.api.Nn(!0),this.show()):this.hide()};
|
|
g.p.m3=function(){if(this.N){var A=this.N.getProgressState();A&&A.current&&!this.W&&1E3*A.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.Nn(!0),this.show())}};
|
|
g.p.q7=function(){this.W&&this.api.Nn(!1);this.hide()};
|
|
g.p.clear=function(){this.api.Nn(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Au.bind(this));this.api.removeEventListener("resize",this.YB.bind(this));fL(this);this.hide()};
|
|
g.p.hide=function(){oPe(!1);oA.prototype.hide.call(this)};
|
|
g.p.show=function(){oPe(!0);oA.prototype.show.call(this)};g.G(BOy,Xl);g.p=BOy.prototype;
|
|
g.p.init=function(A,L,B,f){if(L!=null&&L.adGridCardCollection)if(L!=null&&L.adButton){var K=Number(L.playerProgressOffsetMs||"0");isNaN(K)?Xl.prototype.init.call(this,A,L,B,f):Xl.prototype.init.call(this,A,L,B,f,K);A=L.headline;B=g.y(L.adAvatar,Me);A&&B?(this.headline=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.headline),this.headline.DM(this.m4("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Vo("ad-simple-attributed-string"),new lV(A)),
|
|
this.adAvatar=new lv(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.adAvatar),this.adAvatar.DM(this.m4("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Vo("ad-avatar"),B)):this.U.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");A=g.y(L.adGridCardCollection,qDt);this.adGridCardCollection.init(Vo("ad-grid-card-collection"),A);L=g.y(L.adButton,U$);this.adButton.init(Vo("ad-button"),L);
|
|
this.hide()}else g.mL(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.mL(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
|
|
g.p.onClick=function(A){(this.adButton&&g.XF(this.adButton.element,A.target)||this.adAvatar&&g.XF(this.adAvatar.element,A.target))&&this.api.pauseVideo();Xl.prototype.onClick.call(this,A);this.api.onAdUxClicked(this.componentType,this.layoutId)};
|
|
g.p.YB=function(){};
|
|
g.p.clear=function(){this.hide();var A;(A=this.headline)==null||A.clear();var L;(L=this.adAvatar)==null||L.clear();this.adGridCardCollection.clear();this.adButton.clear();Xl.prototype.clear.call(this)};
|
|
g.p.show=function(){var A;(A=this.headline)==null||A.show();var L;(L=this.adAvatar)==null||L.show();this.adGridCardCollection.show();this.adButton.show();Xl.prototype.show.call(this)};
|
|
g.p.hide=function(){var A;(A=this.headline)==null||A.hide();var L;(L=this.adAvatar)==null||L.hide();this.adGridCardCollection.hide();this.adButton.hide();Xl.prototype.hide.call(this)};
|
|
g.p.Au=function(A){A==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):A==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):A==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))};g.G(O$,dq);
|
|
O$.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L.attributes===void 0)g.mL(Error("No attributes found in AdDetailsLineViewModel."));else if(L.style===void 0)g.mL(Error("No style found in AdDetailsLineViewModel."));else{A=g.m(L.attributes);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.text!==void 0){B=B.text;var f=L.style,K=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,K);K.DM(this.element);a:switch(f){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":f="ytp-ad-details-line__text--style-responsive";
|
|
break a;default:f="ytp-ad-details-line__text--style-standard"}K.element.classList.add(f);K.init(Vo("ad-simple-attributed-string"),new lV(B));this.N.push(K)}this.show()}};
|
|
O$.prototype.show=function(){this.N.forEach(function(A){A.show()});
|
|
dq.prototype.show.call(this)};
|
|
O$.prototype.clear=function(){this.hide()};
|
|
O$.prototype.hide=function(){this.N.forEach(function(A){A.hide()});
|
|
dq.prototype.hide.call(this)};g.G(E$,dq);E$.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});var B,f;(A=((f=Ff(((B=L.image)==null?void 0:B.sources)||[]))==null?void 0:f.url)||"")&&A.length?(B=this.m4("ytp-image-background-image"),g.Kv(B,"backgroundImage","url("+A+")"),L.blurLevel!==void 0&&g.Kv(B,"filter","blur("+L.blurLevel+"px)"),L.gradient!==void 0&&(L=new g.q({Z:"div",Rr:["ytp-image-background--gradient-vertical"]}),g.W(this,L),L.DM(this.element)),this.show()):g.mL(Error("Failed to get imageUrl in ImageBackground."))};
|
|
E$.prototype.clear=function(){this.hide()};g.G(fMS,oA);g.p=fMS.prototype;g.p.init=function(A,L){oA.prototype.init.call(this,A,L,{});g.Kv(this.V,"stroke-dasharray","0 "+this.W);this.show()};
|
|
g.p.clear=function(){this.hide()};
|
|
g.p.hide=function(){fL(this);oA.prototype.hide.call(this)};
|
|
g.p.show=function(){BH(this);oA.prototype.show.call(this)};
|
|
g.p.q7=function(){this.hide()};
|
|
g.p.m3=function(){if(this.N){var A=this.N.getProgressState();A!=null&&A.current!=null&&g.Kv(this.V,"stroke-dasharray",A.current/A.seekableEnd*this.W+" "+this.W)}};g.G(c1,dq);
|
|
c1.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(V0E(L)){this.adAvatar=new lv(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adAvatar);this.adAvatar.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Vo("ad-avatar"),g.y(L.adAvatar,Me));this.headline=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.headline);this.headline.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline");
|
|
this.headline.init(Vo("ad-simple-attributed-string"),new lV(L.headline));if(A=g.y(L.adDetailsLine,YDw))this.detailsLine=new O$(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.detailsLine),this.detailsLine.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Vo("ad-details-line"),A);this.adButton=new mG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0);g.W(this,this.adButton);
|
|
this.adButton.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Vo("ad-button"),g.y(L.adButton,U$));this.adBadge=new Qr(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0);g.W(this,this.adBadge);this.adBadge.DM(this.U);this.adBadge.init(Vo("ad-badge"),g.y(L.adBadge,Y4));this.adInfoButton=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,void 0,!0);g.W(this,this.adInfoButton);this.adInfoButton.DM(this.U);
|
|
this.adInfoButton.init(Vo("ad-info-hover-text-button"),g.y(L.adInfoRenderer,he),this.macros);if(A=g.y(L.skipAdButton,n7t))this.skipAdButton=new QY(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.skipAdButton),this.skipAdButton.DM(this.element),this.skipAdButton.init(Vo("skip-button"),A);this.W=new HH(L.durationMilliseconds);g.W(this,this.W);if(A=g.y(L.countdownViewModel,uk9))this.N=new fMS(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W),g.W(this,
|
|
this.N),this.N.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.N.init(Vo("timed-pie-countdown"),A);if(L=g.y(L.imageBackground,v75))this.imageBackground=new E$(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.imageBackground),this.imageBackground.DM(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Vo("image-background"),
|
|
L);this.show();this.element.focus()}};
|
|
c1.prototype.clear=function(){g.$_(this.V);this.hide()};
|
|
c1.prototype.show=function(){Kp1(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();dq.prototype.show.call(this)};
|
|
c1.prototype.hide=function(){Kp1(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.N&&this.N.hide();this.imageBackground&&this.imageBackground.hide();dq.prototype.hide.call(this)};g.G(W1,g.SN);g.p=W1.prototype;g.p.XZ=function(){return 1E3*this.api.getDuration(this.sU,!1)};
|
|
g.p.stop=function(){this.N&&this.handler.J$(this.N)};
|
|
g.p.iq=function(){var A=this.api.getProgressState(this.sU);this.W={seekableStart:A.seekableStart,seekableEnd:A.seekableEnd,current:this.api.getCurrentTime(this.sU,!1)};this.publish("h")};
|
|
g.p.getProgressState=function(){return this.W};
|
|
g.p.bk=function(A){g.wk(A,2)&&this.publish("g")};var yFw="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.G(v1,xr);
|
|
v1.prototype.V=function(A){var L=A.id,B=A.content,f=B.componentType;if(!yFw.includes(f))switch(A.actionType){case 1:A=this.api;var K=this.Qj,V=B.layoutId,J=B.interactionLoggingClientData,R=B instanceof $m?B.ZT:!1,Z=B instanceof $m||B instanceof rk?B.uj:!1;J=J===void 0?{}:J;R=R===void 0?!1:R;Z=Z===void 0?!1:Z;switch(f){case "invideo-overlay":A=new sZL(A,V,J,K);break;case "player-overlay":A=new EN(A,V,J,K,new W1(A),Z);break;case "player-overlay-layout":A=new iv(A,V,J,K,new W1(A));break;case "survey":A=
|
|
new t3(A,V,J,K);break;case "ad-action-interstitial":A=new yc7(A,V,J,K,R,Z);break;case "video-interstitial-buttoned-centered":A=new c1(A,V,J,K);break;case "survey-interstitial":A=new k4(A,V,J,K);break;case "ad-message":A=new m3D(A,V,J,K,new W1(A,1));break;case "player-underlay":A=new CxQ(A,V,J,K);break;case "display-underlay-text-grid-cards":A=new BOy(A,V,J,K,new W1(A));break;default:A=null}if(!A){g.CE(Error("No UI component returned from ComponentFactory for type: "+f));break}g.kg(this.components,
|
|
L)?g.CE(Error("Ad UI component already registered: "+L)):this.components[L]=A;A.bind(B);B instanceof CU?this.W?this.W.append(A.u9):g.CE(Error("Underlay view was not created but UnderlayRenderer was created")):this.U.append(A.u9);break;case 2:L=JJS(this,A);if(L==null)break;L.bind(B);break;case 3:B=JJS(this,A),B!=null&&(g.jq(B),g.kg(this.components,L)?(B=this.components,L in B&&delete B[L]):g.CE(Error("Ad UI component does not exist: "+L)))}};
|
|
v1.prototype.l1=function(){g.gH(Object.values(this.components));this.components={};xr.prototype.l1.call(this)};g.G(S1Q,g.FB);g.p=S1Q.prototype;g.p.create=function(){try{RAv(this),this.load(),this.created=!0,RAv(this)}catch(A){Dh(A instanceof Error?A:String(A))}};
|
|
g.p.load=function(){Fpk(this)};
|
|
g.p.destroy=function(){var A=this.player.getVideoData(1);this.N.N.lG.dR(A&&A.clientPlaybackNonce||"");this.unload();this.created=!1};
|
|
g.p.unload=function(){g.FB.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(L){Dh(L instanceof Error?L:String(L))}if(this.W!=null){var A=this.W;this.W=null;A.dispose()}this.V.reset()};
|
|
g.p.Pg=function(){return!1};
|
|
g.p.getAdState=function(){return-1};
|
|
g.p.getOptions=function(){return Object.values(p5d)};
|
|
g.p.PR=function(A,L){L=L===void 0?{}:L;switch(A){case "replaceUrlMacros":return A=L,A.url?(L=m6D(this.player),Object.assign(L,A.ghn),A=g.iN(A.url,L)):A=null,A;case "onAboutThisAdPopupClosed":this.fl(L);break;case "executeCommand":A=L;A.command&&A.layoutId&&this.executeCommand(A);break;default:return null}};
|
|
g.p.IG=function(A){var L;return!((L=this.N.N.hf)==null||!L.get().IG(A))};
|
|
g.p.fl=function(A){A.isMuted&&R80(jp(this.N).y4,jp(this.N).Fe,A.layoutId);this.Yr&&this.Yr.fl()};
|
|
g.p.executeCommand=function(A){jp(this.N).Qj.executeCommand(A.command,A.layoutId)};g.hf("yt.player.Application.create",g.D$.create);g.hf("yt.player.Application.createAlternate",g.D$.create);dse(tv(),w5t);var jyK=g.bB("ytcsi.tick");jyK&&jyK("pe");g.Np("ad",S1Q);g.G(g.x4,g.Y);g.x4.prototype.start=function(A,L,B){this.config={from:A,to:L,duration:B,startTime:(0,g.bc)()};this.next()};
|
|
g.x4.prototype.stop=function(){this.delay.stop();this.config=void 0};
|
|
g.x4.prototype.next=function(){if(this.config){var A=this.config,L=A.from,B=A.to,f=A.duration;A=A.startTime;A=(0,g.bc)()-A;var K=this.N;f=g.B4(Hcw(K,hjw(K,A/f)),0,1);this.callback(L+(B-L)*f);f<1&&this.delay.start()}};g.G(g.ep,g.q);g.p=g.ep.prototype;g.p.hasSuggestions=function(){return this.suggestionData.length>0};
|
|
g.p.F2=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)};
|
|
g.p.show=function(){g.q.prototype.show.call(this);yJv(this)};
|
|
g.p.Ug=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)};
|
|
g.p.Vi=function(){this.Bz(this.api.Pn().getPlayerSize())};
|
|
g.p.Bz=function(A){var L=this.api.isEmbedsShortsMode()?.5625:16/9,B=this.api.Zr();A=A.width-(B?112:58);B=Math.ceil(A/(B?320:192));var f=(A-B*8)/B;L=Math.floor(f/L);for(var K=g.m(this.N),V=K.next();!V.done;V=K.next())V=V.value.m4("ytp-suggestion-image"),V.style.width=f+"px",V.style.height=L+"px";this.suggestions.element.style.height=L+"px";this.U=f;this.X=L;this.containerWidth=A;this.columns=B;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.nY(this)};
|
|
g.p.onVideoDataChange=function(){var A=this.api.K(),L=this.api.getVideoData();this.D=L.OE?!1:A.U;this.suggestionData=L.suggestions?g.Mi(L.suggestions,function(B){return B&&!B.playlistId}):[];
|
|
gPL(this);L.OE?this.title.update({title:g.B$("Altri video da $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:L.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Altri Short":"Altri video"})};
|
|
g.p.scrollTo=function(A){A=g.B4(A,this.containerWidth-this.suggestionData.length*(this.U+8),0);this.T.start(this.scrollPosition,A,1E3);this.scrollPosition=A;g.nY(this);yJv(this)};})(_yt_player);
|