=0||(p.provider.Ta.getVisibilityState()===3?p.W=!0:(p.T=g.Zn(p.provider),p.delay.start()))};
ans=function(p){if(!(p.C<0)){var C=g.Zn(p.provider),V=C-p.S;p.S=C;p.playerState.state===8?p.playTimeSecs+=V:p.playerState.isBuffering()&&!g.r(p.playerState,16)&&(p.rebufferTimeSecs+=V)}};
EbH=function(p){var C;switch((C=p.yn.playerCanaryStage)==null?void 0:C.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
lnY=function(p){return window.PressureObserver&&new window.PressureObserver(p)};
tPa=function(p){p=p===void 0?lnY:p;g.Y.call(this);var C=this;this.C=p(function(N){C.T=N.at(-1)});
var V;this.V=(V=this.C)==null?void 0:V.observe("cpu",{sampleInterval:2E3})};
c6v=function(p){var C={},V=window.h5vcc;C.hwConcurrency=navigator.hardwareConcurrency;p.T&&(C.cpt=p.T.time,C.cps=p.T.state);if(V==null?0:V.cVal)C.cb2s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),C.cb5s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),C.cb30s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return C};
TXX=function(p){var C;g.I(function(V){if(V.C==1)return g.y(V,p.V,2);(C=p.C)==null||C.disconnect();g.JQ(V)})};
J61=function(p,C){C?MPS.test(p):(p=g.sk(p),Object.keys(p).includes("cpn"))};
vbQ=function(p,C,V,N,H,X,d){var a={format:"RAW"},E={};if(l1(p)&&tw()){if(d){var l;((l=maa.uaChPolyfill)==null?void 0:l.state.type)!==2?d=null:(d=maa.uaChPolyfill.state.data.values,d={"Synth-Sec-CH-UA-Arch":d.architecture,"Synth-Sec-CH-UA-Model":d.model,"Synth-Sec-CH-UA-Platform":d.platform,"Synth-Sec-CH-UA-Platform-Version":d.platformVersion,"Synth-Sec-CH-UA-Full-Version":d.uaFullVersion});E=Object.assign(E,d);a.withCredentials=!0}(d=g.pO("EOM_VISITOR_DATA"))?E["X-Goog-EOM-Visitor-Id"]=d:N?E["X-Goog-Visitor-Id"]=
N:g.pO("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=g.pO("VISITOR_DATA"));V&&(E["X-Goog-PageId"]=V);(N=C.sY)&&!$S(C)&&(E["X-Goog-AuthUser"]=N);H&&(E.Authorization="Bearer "+H);C.G("enable_datasync_id_header_in_web_vss_pings")&&C.K$&&C.datasyncId&&(E["X-YouTube-DataSync-Id"]=C.datasyncId);d||E["X-Goog-Visitor-Id"]||H||V||N?a.withCredentials=!0:C.G("html5_send_cpn_with_options")&&MPS.test(p)&&(a.withCredentials=!0)}Object.keys(E).length>0&&(a.headers=E);X&&(a.onFinish=X);return Object.keys(a).length>1?
a:null};
Fse=function(p,C,V,N,H,X,d,a){tw()&&V.token&&(p=aK(p,{ctt:V.token,cttype:V.Tg,mdx_environment:V.mdxEnvironment}));N.G("net_pings_low_priority")&&(C||(C={}),C.priority="low");X||a&&N.G("nwl_skip_retry")?(C==null?C={}:J61(p,N.G("html5_assert_cpn_with_regex")),d?iV().sendAndWrite(p,C):iV().sendThenWrite(p,C,a)):C?(J61(p,N.G("html5_assert_cpn_with_regex")),N.G("net_pings_use_fetch")?lAY(p,C):g.qU(p,C)):g.BC(p,H)};
SZS=function(p){for(var C=[],V=0;V500&&V.k_("vmlock",{diff:X.toFixed()});V.Wr=H},250));
p.Ta.RI()&&C&&(this.Vn=C-Math.round(g.Zn(p)*1E3));this.provider.videoData.wx&&(this.remoteControlMode=ZuY[this.provider.videoData.wx]||0);this.provider.videoData.eH&&(C=o6S(this.provider.videoData.eH),C==null?0:C.length)&&(this.remoteConnectedDevices=C);if(p.yn.Gk()||p.G("html5_log_cpu_info"))this.KS=new tPa,g.R(this,this.KS)};
g.OZ=function(p,C,V,N){var H=p.T[V];H||(H=[],p.T[V]=H);H.push(C.toFixed(3)+":"+N.join(":"))};
Uae=function(p,C){var V=p.adCpn||p.provider.videoData.clientPlaybackNonce,N=p.provider.getCurrentTime(V);g.OZ(p,C,"cmt",[N.toFixed(3)]);N=p.provider.I_(V);if(p.S&&N*1E3>p.S.Tr+100&&p.S){var H=p.S;V=H.isAd;N=N*1E3-H.Tr;p.vr=C*1E3-H.j6_-N-H.pVn;H=(0,g.Ip)()-N;C=p.vr;N=p.provider.videoData;var X=N.isAd();if(V||X){X=(V?"ad":"video")+"_to_"+(X?"ad":"video");var d={};N.Y&&(d.cttAuthInfo={token:N.Y,videoId:N.videoId});d.startTime=H-C;XA(X,d);g.HH({targetVideoId:N.videoId,targetCpn:N.clientPlaybackNonce},
X);NR("pbs",H,X)}else H=p.provider.Ta.W6(),H.Y!==N.clientPlaybackNonce?(H.W=N.clientPlaybackNonce,H.C=C):N.rR()||g.eG(new g.Bw("CSI timing logged before gllat",{cpn:N.clientPlaybackNonce}));p.k_("gllat",{l:p.vr.toFixed(),prev_ad:+V});delete p.S}};
qa=function(p,C){C=C===void 0?NaN:C;C=C>=0?C:g.Zn(p.provider);var V=p.provider.Ta.sS(),N=V.mP-(p.Y_||0);N>0&&g.OZ(p,C,"bwm",[N,(V.pT-(p.qW||0)).toFixed(3)]);isNaN(p.Y_)&&V.mP&&p.isOffline&&p.d5(!1);p.Y_=V.mP;p.qW=V.pT;isNaN(V.bandwidthEstimate)||g.OZ(p,C,"bwe",[V.bandwidthEstimate.toFixed(0)]);p.provider.yn.Gk()&&Object.keys(V.T).length!==0&&p.k_("bwinfo",V.T);if(p.provider.yn.Gk()||p.provider.yn.G("html5_log_meminfo"))N=BSj(),Object.values(N).some(function(X){return X!==void 0})&&p.k_("meminfo",
N);
if(p.provider.yn.Gk()||p.provider.yn.G("html5_log_cpu_info")){var H;(N=(H=p.KS)==null?void 0:c6v(H))&&Object.values(N).some(function(X){return X!=null})&&p.k_("cpuinfo",N)}p.b_&&g.OZ(p,C,"bat",[p.b_.level,
p.b_.charging?"1":"0"]);H=p.provider.Ta.getVisibilityState();p.va!==H&&(g.OZ(p,C,"vis",[H]),p.va=H);Uae(p,C);(H=fnL(p.provider))&&H!==p.wy&&(g.OZ(p,C,"conn",[H]),p.wy=H);Ou1(p,C,V)};
Ou1=function(p,C,V){if(!isNaN(V.eA)){var N=V.eA;V.C96E3&&(new g.N8(p.reportStats,0,p)).start()};
Inu=function(p){p.provider.videoData.QZ&&IV(p,"prefetch");p.provider.videoData.wy&&p.k_("reload",{r:p.provider.videoData.reloadReason,ct:p.provider.videoData.wy});p.provider.videoData.qo&&IV(p,"monitor");p.provider.videoData.isLivePlayback&&IV(p,"live");gB&&IV(p,"streaming");p.provider.videoData.wx&&p.k_("ctrl",{mode:p.provider.videoData.wx},!0);if(p.provider.videoData.eH){var C=p.provider.videoData.eH.replace(/,/g,"_");p.k_("ytp",{type:C},!0)}p.provider.videoData.A0&&(C=p.provider.videoData.A0.replace(/,/g,
"."),p.k_("ytrexp",{ids:C},!0));var V=p.provider.videoData;C=p.provider.yn.G("enable_white_noise")||p.provider.yn.G("enable_webgl_noop");V=g.c_(V)||g.UW(V)||g.ff(V)||g.OW(V);(C||V)&&(C=(0,g.bF)())&&(p.T.gpu=[C]);ix(p.provider.videoData)&&g.OZ(p,g.Zn(p.provider),"dt",["1"]);p.provider.yn.Gk()&&(C=(0,g.Ip)()-p.provider.yn.d6,p.k_("playerage",{secs:Math.pow(1.6,Math.round(Math.log(C/1E3)/Math.log(1.6))).toFixed()}));p.V=!0;p.Y=g.Se(function(){p.reportStats()},1E4)};
A6L=function(p,C,V){var N=g.Zn(p.provider);buL(p,N,C,0,V);qa(p,N);qZY(p)};
buL=function(p,C,V,N,H){var X=p.provider.yn.T.cbrver;p.provider.yn.T.cbr==="Chrome"&&/^96[.]/.test(X)&&V==="net.badstatus"&&/rc\.500/.test(H)&&ob9(p,3);p.provider.yn.G("html5_use_ump")&&/b248180278/.test(H)&&ob9(p,4);X=p.provider.getCurrentTime(p.adCpn||p.provider.videoData.clientPlaybackNonce);N=N===1?"fatal":"";V=[V,N,X.toFixed(3)];N&&(H+=";a6s."+U0());H&&V.push(kK9(H));g.OZ(p,C,"error",V);p.V=!0};
xaQ=function(p){p.C>=0||(p.provider.yn.W1||p.provider.Ta.getVisibilityState()!==3?p.C=g.Zn(p.provider):p.UY=!0)};
YZj=function(p,C,V,N){if(V!==p.g7){C=10&&p.playTimeSecs<=180&&(p.T.qoealert=["1"],p.X$=!0)),V!=="B"||p.g7!=="PL"&&p.g7!=="PB"||(p.isBuffering=!0),p.W=C);p.g7==="PL"&&(V==="B"||V==="S")||p.provider.yn.Gk()?qa(p,C):(p.Wc||V!=="PL"||(p.Wc=!0,Ou1(p,C,p.provider.Ta.sS())),Uae(p,C));V==="PL"&&g.HF(p.RN);var H=[V];V==="S"&&N&&H.push("ss."+N);g.OZ(p,C,"vps",H);p.g7=V;
p.ER=C;p.W=C;p.V=!0}};
IV=function(p,C){var V=p.T.cat||[];V.push(C);p.T.cat=V};
A6=function(p,C,V,N,H,X){var d=g.Zn(p.provider);V!==1&&V!==3&&V!==5||g.OZ(p,d,"vps",[p.g7]);var a=p.T.xvt||[];a.push("t."+d.toFixed(3)+";m."+X.toFixed(3)+";g."+C+";tt."+V+";np.0;c."+N+";d."+H);p.T.xvt=a};
ob9=function(p,C){if(!p.qo){var V=p.T.fcnz;V||(V=[],p.T.fcnz=V);V.push(String(C));p.qo=!0}};
kK9=function(p){/[^a-zA-Z0-9;.!_-]/.test(p)&&(p=p.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return p};
zwX=function(p){this.provider=p;this.D=!1;this.T=0;this.S=-1;this.yP=NaN;this.V=0;this.segments=[];this.Y=this.W=0;this.previouslyEnded=!1;this.Z=this.provider.Ta.getVolume();this.J=this.provider.Ta.isMuted()?1:0;this.C=oV(this.provider)};
kb=function(p){p.C.startTime=p.V;p.C.endTime=p.T;var C=!1;p.segments.length&&g.wY(p.segments).isEmpty()?(p.segments[p.segments.length-1].previouslyEnded&&(p.C.previouslyEnded=!0),p.segments[p.segments.length-1]=p.C,C=!0):p.segments.length&&p.C.isEmpty()||(p.segments.push(p.C),C=!0);C?p.C.endTime===0&&(p.previouslyEnded=!1):p.C.previouslyEnded&&(p.previouslyEnded=!0);p.W+=p.T-p.V;p.C=oV(p.provider);p.C.previouslyEnded=p.previouslyEnded;p.previouslyEnded=!1;p.V=p.T};
nb9=function(p){Rws(p);p.Y=g.Se(function(){p.update()},100);
p.yP=g.Zn(p.provider);p.C=oV(p.provider)};
Rws=function(p){g.Dr(p.Y);p.Y=NaN};
ewY=function(p,C,V){V-=p.yP;return C===p.T&&V>.5};
PFe=function(p,C,V,N){this.yn=C;this.Q$=V;this.segments=[];this.experimentIds=[];this.R$=this.Hc=this.isFinal=this.delayThresholdMet=this.Wc=this.va=this.autoplay=this.autonav=!1;this.wy="yt";this.D=[];this.Y=this.Z=null;this.sendVisitorIdHeader=this.UY=!1;this.J=this.pageId="";this.W=V==="watchtime";this.V=V==="playback";this.sY=V==="atr";this.f9=V==="engage";this.sendVisitorIdHeader=!1;this.uri=this.sY?"/api/stats/"+V:"//"+C.jS+"/api/stats/"+V;N&&(this.Hc=N.fs,N.rtn&&(this.Y=N.rtn),this.W?(this.playerState=
N.state,N.rti>0&&(this.Z=N.rti)):(this.W1=N.mos,this.jZ=N.volume,N.at&&(this.adType=N.at)),N.autonav&&(this.autonav=N.autonav),N.inview!=null&&(this.VZ=N.inview),N.size&&(this.qW=N.size),N.playerwidth&&(this.playerWidth=N.playerwidth),N.playerheight&&(this.playerHeight=N.playerheight));this.FO=g.zh(C.T);this.J=Wb(C.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.J==="all"||this.J==="once")this.kM=g.zh(C.wy);this.iW=C.X$;this.experimentIds=F$9(C.experiments);this.Y_=C.ER;this.wy=C.a$;this.region=
C.region;this.userAge=C.userAge;this.Qn=C.AX;this.I6=bV();this.sendVisitorIdHeader=C.sendVisitorIdHeader;this.Vn=C.G("vss_pings_using_networkless")||C.G("kevlar_woffle");this.hE=C.G("vss_final_ping_send_and_write");this.Sa=C.G("vss_use_send_and_write");this.pageId=C.pageId;this.i8=C.G("vss_playback_use_send_and_write");C.livingRoomAppMode&&(this.livingRoomAppMode=C.livingRoomAppMode);this.o6=C.S&&C.G("embeds_append_synth_ch_headers");g.KI(C)&&(this.vr=C.Sa);g.cw(g.Ig(C))&&this.D.push(1);this.accessToken=
g.XE(p);p.SE[this.Q$]?this.S=p.SE[this.Q$]:p.SE.playback&&(this.S=p.SE.playback);this.adFormat=p.adFormat;this.adQueryId=p.adQueryId;this.autoplay=Hk(p);this.V&&(this.va=(p.G("html5_enable_log_server_autoplay")||p.G("enable_cleanup_masthead_autoplay_hack_fix"))&&p.dP&&B_(p)==="adunit"?!0:!1);this.autonav=p.isAutonav||this.autonav;this.contentVideoId=Vk(p);this.clientPlaybackNonce=p.clientPlaybackNonce;this.Wc=p.UV;p.Y&&(this.a$=p.Y,this.X$=p.B_);p.mdxEnvironment&&(this.mdxEnvironment=p.mdxEnvironment);
this.T=p.hg;this.ER=p.ER;p.C&&(this.QZ=p.C.itag,p.S&&p.S.itag!==this.QZ&&(this.qo=p.S.itag));p.T&&sc(p.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=B_(p);this.R$=p.FT?!1:p.va;this.kt=p.Um;if(C=v_(p))this.d6=C;this.cV=p.JV;this.partnerId=p.partnerId;this.eventId=p.eventId;this.playlistId=p.fY||p.playlistId;this.Aa=p.Aa;this.wx=p.wx;this.eH=p.eH;this.vK=p.vK;this.subscribed=p.subscribed;this.videoId=p.videoId;this.videoMetadata=p.videoMetadata;this.visitorData=p.visitorData;this.osid=p.osid;
this.hm=p.hm;this.referrer=p.referrer;this.MR=p.pz||p.MR;this.KS=p.ym;this.Vs=p.Vs;this.userGenderAge=p.userGenderAge;this.Z4=p.Z4;this.embedsRct=p.embedsRct;this.embedsRctn=p.embedsRctn;g.KI(this.yn)&&p.mutedAutoplay&&this.D.push(2);p.isEmbedsShortsMode(new g.KG(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.D.push(3);g.t_(p)&&this.D.push(4);this.Ga=p.pC;p.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=p.compositeLiveIngestionOffsetToken)};
wu9=function(p,C){var V=p.sendVisitorIdHeader?p.visitorData:void 0;return g.pk(p.yn,p.accessToken).then(function(N){return vbQ(p.uri,p.yn,p.pageId,V,N,C,p.o6)})};
gba=function(p,C){return function(){p.yn.G("html5_simplify_pings")?(p.T=p.Wr,p.RN=C(),p.I6=0,p.send()):wu9(p).then(function(V){var N=$a1(p);N.cmt=N.len;N.lact="0";var H=C().toFixed(3);N.rt=Number(H).toString();N=g.GD(p.uri,N);p.yn.G("vss_through_gel_double")&&Lse(N);p.Vn?(V==null&&(V={}),p.Sa?iV().sendAndWrite(N,V):iV().sendThenWrite(N,V)):V?g.qU(N,V):g.BC(N)})}};
$a1=function(p){var C={ns:p.wy,el:p.eventLabel,cpn:p.clientPlaybackNonce,ver:2,cmt:p.C(p.T),fmt:p.QZ,fs:p.Hc?"1":"0",rt:p.C(p.RN),adformat:p.adFormat,content_v:p.contentVideoId,euri:p.iW,lact:p.I6,live:p.d6,cl:(706555921).toString(),mos:p.W1,state:p.playerState,volume:p.jZ};p.subscribed&&(C.subscribed="1");Object.assign(C,p.FO);p.J==="all"?Object.assign(C,p.kM):p.J==="once"&&p.V&&Object.assign(C,p.kM);p.autoplay&&(C.autoplay="1");p.va&&(C.sautoplay="1");p.Wc&&(C.dni="1");!p.W&&p.vr&&(C.epm=Wsy[p.vr]);
p.isFinal&&(C["final"]="1");p.R$&&(C.splay="1");p.ER&&(C.delay=p.ER);p.Y_&&(C.hl=p.Y_);p.region&&(C.cr=p.region);p.userGenderAge&&(C.uga=p.userGenderAge);p.userAge!==void 0&&p.Qn&&(C.uga=p.Qn+p.userAge);p.Wr!==void 0&&(C.len=p.C(p.Wr));!p.W&&p.experimentIds.length>0&&(C.fexp=p.experimentIds.toString());p.Y!==null&&(C.rtn=p.C(p.Y));p.MR&&(C.feature=p.MR);p.wx&&(C.ctrl=p.wx);p.eH&&(C.ytr=p.eH);p.qo&&(C.afmt=p.qo);p.offlineDownloadUserChoice&&(C.ODUC=p.offlineDownloadUserChoice);p.YM&&(C.lio=p.C(p.YM));
p.W?(C.idpj=p.kt,C.ldpj=p.cV,p.delayThresholdMet&&(C.dtm="1"),p.Z!=null&&(C.rti=p.C(p.Z)),p.Z4&&(C.ald=p.Z4),p.compositeLiveIngestionOffsetToken&&(C.clio=p.compositeLiveIngestionOffsetToken)):p.adType!==void 0&&(C.at=p.adType);p.qW&&(p.V||p.W)&&(C.size=p.qW);p.V&&p.D.length&&(C.pbstyle=p.D.join(","));p.VZ!=null&&(p.V||p.W)&&(C.inview=p.C(p.VZ));p.W&&(C.volume=xb(p,g.AU(p.segments,function(N){return N.volume})),C.st=xb(p,g.AU(p.segments,function(N){return N.startTime})),C.et=xb(p,g.AU(p.segments,function(N){return N.endTime})),
Yo(p.segments,function(N){return N.playbackRate!==1})&&(C.rate=xb(p,g.AU(p.segments,function(N){return N.playbackRate}))),Yo(p.segments,function(N){return N.T!=="-"})&&(C.als=g.AU(p.segments,function(N){return N.T}).join(",")),Yo(p.segments,function(N){return N.previouslyEnded})&&(C.pe=g.AU(p.segments,function(N){return""+ +N.previouslyEnded}).join(",")));
C.muted=xb(p,g.AU(p.segments,function(N){return N.muted?1:0}));
Yo(p.segments,function(N){return N.visibilityState!==0})&&(C.vis=xb(p,g.AU(p.segments,function(N){return N.visibilityState})));
Yo(p.segments,function(N){return N.connectionType!==0})&&(C.conn=xb(p,g.AU(p.segments,function(N){return N.connectionType})));
Yo(p.segments,function(N){return N.C!==0})&&(C.blo=xb(p,g.AU(p.segments,function(N){return N.C})));
Yo(p.segments,function(N){return!!N.V})&&(C.blo=g.AU(p.segments,function(N){return N.V}).join(","));
Yo(p.segments,function(N){return!!N.compositeLiveStatusToken})&&(C.cbs=g.AU(p.segments,function(N){return N.compositeLiveStatusToken}).join(","));
Yo(p.segments,function(N){return N.W!=="-"})&&(C.cc=g.AU(p.segments,function(N){return N.W}).join(","));
Yo(p.segments,function(N){return N.clipId!=="-"})&&(C.clipid=g.AU(p.segments,function(N){return N.clipId}).join(","));
if(Yo(p.segments,function(N){return!!N.S})){var V="au";
p.V&&(V="au_d");C[V]=g.AU(p.segments,function(N){return N.S}).join(",")}tw()&&p.a$&&(C.ctt=p.a$,C.cttype=p.X$,C.mdx_environment=p.mdxEnvironment);
p.f9&&(C.etype=p.b_!==void 0?p.b_:0);p.KS&&(C.uoo=p.KS);p.livingRoomAppMode&&p.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(C.clram=QVe[p.livingRoomAppMode]||p.livingRoomAppMode);p.S?r6S(p,C):(C.docid=p.videoId,C.referrer=p.referrer,C.ei=p.eventId,C.of=p.hm,C.osid=p.osid,C.vm=p.videoMetadata,p.adQueryId&&(C.aqi=p.adQueryId),p.autonav&&(C.autonav="1"),p.playlistId&&(C.list=p.playlistId),p.vK&&(C.ssrt="1"),p.Vs&&(C.upt=p.Vs));p.V&&(p.embedsRct&&(C.rct=p.embedsRct),p.embedsRctn&&(C.rctn=
p.embedsRctn),p.compositeLiveIngestionOffsetToken&&(C.clio=p.compositeLiveIngestionOffsetToken));p.Ga&&(C.host_cpn=p.Ga);return C};
r6S=function(p,C){if(C&&p.S){var V=new Set(["q","feature","mos"]),N=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),H=new Set(["aqi","autonav","list","ssrt","upt"]);p.S.ns==="3pp"&&(C.ns="3pp");for(var X=g.F(Object.keys(p.S)),d=X.next();!d.done;d=X.next())d=d.value,N.has(d)||V.has(d)||H.has(d)&&!p.S[d]||(C[d]=p.S[d])}};
xb=function(p,C){return g.AU(C,p.C).join(",")};
Lse=function(p){p.indexOf("watchtime")!==-1&&g.t1("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:p}})};
BXY=function(p,C){p.attestationResponse&&wu9(p).then(function(V){V=V||{};V.method="POST";V.postParams={atr:p.attestationResponse};p.Vn?p.Sa?iV().sendAndWrite(C,V):iV().sendThenWrite(C,V):g.qU(C,V)})};
Yb=function(p){g.Y.call(this);this.provider=p;this.Y="paused";this.W=NaN;this.D=[10,10,10,40];this.Z=this.J=0;this.b_=this.Vn=this.sY=this.a$=this.V=!1;this.C=this.S=NaN;this.T=new zwX(p)};
jia=function(p){if(!p.V){p.provider.videoData.uK===16623&&g.eG(Error("Playback for EmbedPage"));var C=zK(p,"playback");a:{if(p.provider.yn.G("web_player_use_server_vss_schedule")){var V,N=(V=p.provider.videoData.getPlayerResponse())==null?void 0:V.playbackTracking,H=N==null?void 0:N.videostatsScheduledFlushWalltimeSeconds;N=N==null?void 0:N.videostatsDefaultFlushIntervalSeconds;if(H&&H.length>0&&N){V=[];var X=p.provider.videoData.Um,d=p.provider.videoData.JV,a=-X;H=g.F(H);for(var E=H.next();!E.done;E=
H.next())E=E.value,V.push(E-a),a=E;V.push(N+d-X);V.push(N);p.D=V;break a}}p.D=[10+p.provider.videoData.Um,10,10,40+p.provider.videoData.JV-p.provider.videoData.Um,40]}nb9(p.T);C.Y=RV(p);p.C>0&&(C.T-=p.C);C.send();p.provider.videoData.jL&&(C=p.provider.yn,N=p.provider.videoData,V={html5:"1",video_id:N.videoId,cpn:N.clientPlaybackNonce,ei:N.eventId,ptk:N.jL,oid:N.LI,ptchn:N.WL,pltype:N.NU,content_v:Vk(N)},N.E5&&Object.assign(V,{m:N.E5}),C=g.GD(C.Vn+"ptracking",V),GKY(p,C));p.provider.videoData.ER||
(pOs(p),CYQ(p),p.v8());p.V=!0;C=p.T;C.T=C.provider.Ta.I_();C.yP=g.Zn(C.provider);!(C.V===0&&C.T<5)&&C.T-C.V>2&&(C.V=C.T);C.D=!0;p.provider.yn.G("html5_log_vss_details")&&p.provider.Ta.k_("vssinit",{})}};
RV=function(p,C){C=C===void 0?NaN:C;var V=g.Zn(p.provider);C=isNaN(C)?V:C;C=Math.ceil(C);var N=p.D[p.J];p.J+11E3;!(X.length>1)&&X[0].isEmpty()||a||(d.Y=RV(p,H));d.send();p.Z++}},(H-V)*1E3);
return p.S=H};
nu=function(p){g.KO(p.W);p.W=NaN};
Vts=function(p){p.T.update();p=p.T;p.segments.length&&p.T===p.V||kb(p);var C=p.segments;p.segments=[];return C};
zK=function(p,C){var V=H$e(p.provider);Object.assign(V,{state:p.Y});C=new PFe(p.provider.videoData,p.provider.yn,C,V);C.T=p.provider.Ta.I_();V=p.provider.videoData.clientPlaybackNonce;C.T=p.provider.Ta.cJ(V);p.provider.videoData.isLivePlayback||(C.Wr=p.provider.Ta.getDuration(V));p.provider.videoData.T&&(V=p.provider.videoData.T.Xt(C.T))&&(C.YM=V-C.T);C.RN=g.Zn(p.provider);C.segments=[oV(p.provider)];return C};
NLY=function(p,C){var V=zK(p,"watchtime");XOV(p)&&(V.delayThresholdMet=!0,p.sY=!0);if(p.C>0){for(var N=g.F(C),H=N.next();!H.done;H=N.next())H=H.value,H.startTime-=p.C,H.endTime-=p.C;V.T-=p.C}else V.T=p.T.rl();V.segments=C;return V};
eP=function(p,C){var V=dT9(p,!isNaN(p.S));C&&(p.S=NaN);return V};
dT9=function(p,C){var V=NLY(p,Vts(p));!isNaN(p.S)&&C&&(V.Z=p.S);return V};
XOV=function(p){var C;if(C=p.provider.videoData.isLoaded()&&p.provider.videoData.ER&&p.V&&!p.sY)C=p.T,C=C.W+C.provider.Ta.I_()-C.V>=p.provider.videoData.ER;return!!C};
pOs=function(p){p.provider.videoData.youtubeRemarketingUrl&&!p.Vn&&(GKY(p,p.provider.videoData.youtubeRemarketingUrl),p.Vn=!0)};
CYQ=function(p){p.provider.videoData.googleRemarketingUrl&&!p.b_&&(GKY(p,p.provider.videoData.googleRemarketingUrl),p.b_=!0)};
i$y=function(p){p.provider.yn.G("html5_log_vss_details")&&p.provider.Ta.k_("vssfi",{});if(!p.fS()&&p.V){p.Y="paused";var C=eP(p);C.isFinal=!0;C.send();p.dispose()}};
h2y=function(p,C){if(!p.fS())if(g.r(C.state,2)||g.r(C.state,512)){if(p.Y="paused",g.u$(C,2)||g.u$(C,512))g.u$(C,2)&&(p.T.previouslyEnded=!0),p.V&&(nu(p),eP(p).send(),p.S=NaN)}else if(g.r(C.state,8)){p.Y="playing";var V=p.V&&isNaN(p.W)?RV(p):NaN;!isNaN(V)&&(D7(C,64)<0||D7(C,512)<0)&&(p=dT9(p,!1),p.Y=V,p.send())}else p.Y="paused"};
si1=function(p,C,V){if(!p.a$){V||(V=zK(p,"atr"));V.attestationResponse=C;try{V.send()}catch(N){if(N.message!=="Unknown Error")throw N;}p.a$=!0}};
GKY=function(p,C){var V=p.provider.yn;g.pk(p.provider.yn,g.XE(p.provider.videoData)).then(function(N){var H=p.provider.yn.pageId,X=p.provider.yn.sendVisitorIdHeader?p.provider.videoData.visitorData:void 0,d=p.provider.yn.G("vss_pings_using_networkless")||p.provider.yn.G("kevlar_woffle"),a=p.provider.yn.G("allow_skip_networkless");N=vbQ(C,V,H,X,N);Fse(C,N,{token:p.provider.videoData.Y,Tg:p.provider.videoData.B_,mdxEnvironment:p.provider.videoData.mdxEnvironment},V,void 0,d&&!a,!1,!0)})};
a_L=function(){this.endTime=this.startTime=-1;this.W="-";this.playbackRate=1;this.visibilityState=0;this.S="";this.C=0;this.compositeLiveStatusToken=this.V=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1};
Pu=function(p,C,V){this.videoData=p;this.yn=C;this.Ta=V;this.T=void 0};
g.Zn=function(p){return Em9(p)()};
Em9=function(p){if(!p.T){var C=g.Wv(function(N){var H=(0,g.Ip)();N&&H<=631152E6&&(p.Ta.k_("ytnerror",{issue:28799967,value:""+H}),H=(new Date).getTime()+2);return H},p.yn.G("html5_validate_yt_now")),V=C();
p.T=function(){return Math.round(C()-V)/1E3};
p.Ta.jf()}return p.T};
H$e=function(p){var C=p.Ta.St()||{};C.fs=p.Ta.jE();C.volume=p.Ta.getVolume();C.muted=p.Ta.isMuted()?1:0;C.mos=C.muted;C.clipid=p.Ta.t7();var V;C.playerheight=((V=p.Ta.getPlayerSize())==null?void 0:V.height)||0;var N;C.playerwidth=((N=p.Ta.getPlayerSize())==null?void 0:N.width)||0;p=p.videoData;V={};p.C&&(V.fmt=p.C.itag,p.S&&(p.VZ?p.S.itag!==p.C.itag:p.S.itag!=p.C.itag)&&(V.afmt=p.S.itag));V.ei=p.eventId;V.list=p.playlistId;V.cpn=p.clientPlaybackNonce;p.videoId&&(V.v=p.videoId);p.tB&&(V.infringe=1);
(p.FT?0:p.va)&&(V.splay=1);(N=v_(p))&&(V.live=N);p.dP&&(V.sautoplay=1);p.X4&&(V.autoplay=1);p.Aa&&(V.sdetail=p.Aa);p.partnerId&&(V.partnerid=p.partnerId);p.osid&&(V.osid=p.osid);p.Hv&&(V.cc=g.OaY(p.Hv));return Object.assign(C,V)};
fnL=function(p){var C=tpV();if(C)return l_v[C]||l_v.other;if(g.bH(p.yn)){p=navigator.userAgent;if(/[Ww]ireless[)]/.test(p))return 3;if(/[Ww]ired[)]/.test(p))return 30}return 0};
oV=function(p){var C=new a_L,V;C.W=((V=H$e(p).cc)==null?void 0:V.toString())||"-";C.playbackRate=p.Ta.getPlaybackRate();V=p.Ta.getVisibilityState();V!==0&&(C.visibilityState=V);p.yn.Wc&&(C.C=1);C.V=p.videoData.gW;C.compositeLiveStatusToken=p.videoData.compositeLiveStatusToken;V=p.Ta.getAudioTrack();V.K4&&V.K4.id&&V.K4.id!=="und"&&(C.S=V.K4.id);C.connectionType=fnL(p);C.volume=p.Ta.getVolume();C.muted=p.Ta.isMuted();C.clipId=p.Ta.t7()||"-";C.T=p.videoData.qF||"-";return C};
g.wX=function(p,C){g.Y.call(this);var V=this;this.provider=p;this.S=!1;this.V=new Map;this.g7=new g.cj;this.Sr={CLo:function(){return V.qoe},
it_:function(){return V.T},
Qca:function(){return V.C}};
this.provider.videoData.GN()&&!this.provider.videoData.BI&&(this.T=new Yb(this.provider),this.T.C=this.provider.videoData.kt/1E3,g.R(this,this.T),this.qoe=new g.yb(this.provider,C),g.R(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.tp=this.provider.videoData.clientPlaybackNonce)&&this.V.set(this.tp,this.T));if(p.yn.playerCanaryState==="canary"||p.yn.playerCanaryState==="holdback")this.C=new uF(this.provider),g.R(this,this.C)};
ttS=function(p){return!!p.T&&!!p.qoe};
$b=function(p){p.C&&sVv(p.C);p.qoe&&xaQ(p.qoe)};
cHL=function(p){if(p.qoe){p=p.qoe;for(var C=p.provider.videoData,V=p.provider.yn,N=g.F(V.i8),H=N.next();!H.done;H=N.next())IV(p,H.value);if(p.provider.G("html5_enable_qoe_cat_list"))for(N=g.F(C.cP),H=N.next();!H.done;H=N.next())IV(p,H.value);else C.i8&&IV(p,p.provider.videoData.i8);C.p4()&&(N=C.T,Ge(C)&&IV(p,"manifestless"),N&&Jz(N)&&IV(p,"live-segment-"+Jz(N).toFixed(1)));$B(C)?IV(p,"sabr"):p.Bn(tl(C));if(db(C)||C.VL())C.VL()&&IV(p,"ssa"),IV(p,"lifa");C.gatewayExperimentGroup&&(N=C.gatewayExperimentGroup,
N==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?N="spkadtrt":N==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(N="spkadctrl"),IV(p,N));V.a$!=="yt"&&(p.T.len=[C.lengthSeconds.toFixed(2)]);C.cotn&&!ix(C)&&p.d5(!0);if(V.Gk()&&((C=u9a())&&p.k_("cblt",{m:C}),V.G("html5_log_screen_diagonal"))){V=p.k_;var X;C=((X=window.H5vccScreen)==null?0:X.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;V.call(p,"cbltdiag",{v:C})}}};
TLS=function(p){if(p.provider.Ta.RI()){if(p.S)return;p.S=!0}p.T&&jia(p.T);if(p.C){p=p.C;var C=g.Zn(p.provider);p.T<0&&(p.T=C,p.delay.start());p.C=C;p.S=C}};
Mtj=function(p,C){p.T&&(p=p.T,C===58?p.T.update():p.V&&(nu(p),eP(p).send(),p.S=NaN))};
JH1=function(p,C){if(g.u$(C,1024)||g.u$(C,512)||g.u$(C,4)){if(p.C){var V=p.C;V.C>=0||(V.T=-1,V.delay.stop())}p.qoe&&(V=p.qoe,V.J||(V.C=-1))}if(p.provider.videoData.enableServerStitchedDai&&p.tp){var N;(N=p.V.get(p.tp))==null||h2y(N,C)}else p.T&&h2y(p.T,C);if(p.qoe){N=p.qoe;V=C.state;var H=g.Zn(N.provider),X=N.getPlayerState(V);YZj(N,H,X,V.seekSource||void 0);X=V.UE;g.r(V,128)&&X&&(X.QG=X.QG||"",buL(N,H,X.errorCode,X.PO,X.QG));(g.r(V,2)||g.r(V,128))&&N.reportStats(H);V.isPlaying()&&!N.J&&(N.C>=0&&
(N.T.user_intent=[N.C.toString()]),N.J=!0);qZY(N)}p.C&&(N=p.C,ans(N),N.playerState=C.state,N.C>=0&&g.u$(C,16)&&N.seekCount++,C.state.isError()&&N.send());p.provider.Ta.RI()&&(p.g7=C.state)};
mTu=function(p){if(p.provider.videoData.enableServerStitchedDai&&p.tp){var C;(C=p.V.get(p.tp))!=null&&kb(C.T)}else p.T&&kb(p.T.T)};
vmQ=function(p){p.C&&p.C.send();if(p.qoe){var C=p.qoe;if(C.V){C.g7==="PL"&&(C.g7="N");var V=g.Zn(C.provider);g.OZ(C,V,"vps",[C.g7]);C.J||(C.C>=0&&(C.T.user_intent=[C.C.toString()]),C.J=!0);C.provider.yn.Gk()&&C.k_("finalized",{});C.Sa=!0;C.reportStats(V)}}if(p.provider.videoData.enableServerStitchedDai)for(C=g.F(p.V.values()),V=C.next();!V.done;V=C.next())i$y(V.value);else p.T&&i$y(p.T);p.dispose()};
F5Q=function(p,C){p.T&&si1(p.T,C)};
SDy=function(p){if(!p.T)return null;var C=zK(p.T,"atr");return function(V){p.T&&si1(p.T,V,C)}};
K5a=function(p,C,V,N){V.adFormat=V.Q$;var H=C.Ta;C=new Yb(new Pu(V,C.yn,{getDuration:function(){return V.lengthSeconds},
getCurrentTime:function(){return H.getCurrentTime()},
I_:function(){return H.I_()},
cJ:function(){return H.cJ()},
RI:function(){return H.RI()},
sS:function(){return H.sS()},
getPlayerSize:function(){return H.getPlayerSize()},
getAudioTrack:function(){return V.getAudioTrack()},
getPlaybackRate:function(){return H.getPlaybackRate()},
uP:function(){return H.uP()},
getVisibilityState:function(){return H.getVisibilityState()},
W6:function(){return H.W6()},
St:function(){return H.St()},
getVolume:function(){return H.getVolume()},
isMuted:function(){return H.isMuted()},
jE:function(){return H.jE()},
t7:function(){return H.t7()},
getProximaLatencyPreference:function(){return H.getProximaLatencyPreference()},
jf:function(){H.jf()},
k_:function(X,d){H.k_(X,d)}}));
C.C=N;g.R(p,C);return C};
DTH=function(){this.eA=0;this.V=this.pT=this.mP=this.C=NaN;this.T={};this.bandwidthEstimate=NaN};
Lu=function(p,C,V){g.Y.call(this);var N=this;this.yn=p;this.Ta=C;this.C=V;this.T=new Map;this.tp="";this.Sr={Ei:function(){return Array.from(N.T.keys())}}};
udv=function(p,C){p.T.has(C)&&(vmQ(p.T.get(C)),p.T.delete(C))};
Z$Q=function(){this.T=g.aj;this.array=[]};
f_9=function(p,C,V){var N=[];for(C=UTS(p,C);CV)break}return N};
O$s=function(p,C){var V=[];p=g.F(p.array);for(var N=p.next();!N.done&&!(N=N.value,N.contains(C)&&V.push(N),N.start>C);N=p.next());return V};
yH1=function(p){return p.array.slice(UTS(p,0x7ffffffffffff),p.array.length)};
UTS=function(p,C){p=ir(p.array,function(V){return C-V.start||1});
return p<0?-(p+1):p};
qDy=function(p,C){var V=NaN;p=g.F(p.array);for(var N=p.next();!N.done;N=p.next())if(N=N.value,N.contains(C)&&(isNaN(V)||N.endC&&(isNaN(V)||N.startp.mediaTime+p.W&&C1)p.S=!0;if((H===void 0?0:H)||isNaN(p.C))p.C=C;if(p.T)C!==p.mediaTime&&(p.T=!1);else if(C>0&&p.mediaTime===C){H=1500;if(p.yn.G("html5_buffer_underrun_transition_fix")){H=g.mi(p.yn.experiments,"html5_min_playback_advance_for_steady_state_secs");var X=g.mi(p.yn.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");H=H>0&&X>0&&Math.abs(C-p.C)(N||!p.S?H:400)}p.mediaTime=C;p.V=V;return!1};
YDv=function(p,C){this.videoData=p;this.T=C};
z2X=function(p,C,V){return C.Z1(V).then(function(){return YD(new YDv(C,C.V))},function(N){N instanceof Error&&g.eG(N);
var H=or('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),X=xZ('audio/mp4; codecs="mp4a.40.2"'),d=H||X,a=C.isLivePlayback&&!g.GF(p.W,!0);N="fmt.noneavailable";a?N="html5.unsupportedlive":d||(N="html5.missingapi");d=a||!d?2:1;H={buildRej:"1",a:C.Ar(),d:!!C.RN,drm:C.O8(),f18:C.jZ.indexOf("itag=18")>=0,c18:H};C.T&&(C.O8()?(H.f142=!!C.T.T["142"],H.f149=!!C.T.T["149"],H.f279=!!C.T.T["279"]):(H.f133=!!C.T.T["133"],H.f140=!!C.T.T["140"],H.f242=!!C.T.T["242"]),H.cAAC=X,H.cAVC=xZ('video/mp4; codecs="avc1.42001E"'),
H.cVP9=xZ('video/webm; codecs="vp9"'));C.W&&(H.drmsys=C.W.keySystem,X=0,C.W.T&&(X=Object.keys(C.W.T).length),H.drmst=X);return new qD(N,H,d)})};
Qb=function(p){this.data=window.Float32Array?new Float32Array(p):Array(p);this.C=this.T=p-1};
R2S=function(p){return p.data[p.T]||0};
nme=function(p){this.W=p;this.V=this.C=0;this.S=new Qb(50)};
Bu=function(p,C,V){g.ca.call(this);this.videoData=p;this.experiments=C;this.Y=V;this.C=[];this.S=0;this.V=!0;this.W=!1;this.D=0;V=new e29;p.latencyClass==="ULTRALOW"&&(V.S=!1);p.qo?V.C=3:g.ud(p)&&(V.C=2);p.latencyClass==="NORMAL"&&(V.W=!0);var N=g.mi(C,"html5_liveness_drift_proxima_override");if(tl(p)!==0&&N){V.T=N;var H;((H=p.T)==null?0:Or9(H))&&V.T--}$B(p)&&C.OY("html5_sabr_parse_live_metadata_playback_boundaries")&&(V.D=!0);if(g.gm("trident/")||g.gm("edge/"))H=g.mi(C,"html5_platform_minimum_readahead_seconds")||
3,V.V=Math.max(V.V,H);g.mi(C,"html5_minimum_readahead_seconds")&&(V.V=g.mi(C,"html5_minimum_readahead_seconds"));g.mi(C,"html5_maximum_readahead_seconds")&&(V.Y=g.mi(C,"html5_maximum_readahead_seconds"));C.OY("html5_force_adaptive_readahead")&&(V.S=!0);if(C=g.mi(C,"html5_liveness_drift_chunk_override"))V.T=C;ld(p)&&(V.T=(V.T+1)/5,p.latencyClass==="LOW"&&(V.T*=2));this.policy=V;this.J=this.policy.C!==1;this.T=rX(this,PYa(this,isNaN(p.liveChunkReadahead)?3:p.liveChunkReadahead,p))};
wOv=function(p,C){if(C)return C=p.videoData,C=PYa(p,isNaN(C.liveChunkReadahead)?3:C.liveChunkReadahead,C),rX(p,C);if(p.C.length){if(Math.min.apply(null,p.C)>1)return rX(p,p.T-1);if(p.policy.S)return rX(p,p.T+1)}return p.T};
$TV=function(p,C){if(!p.C.length)return!1;var V=p.T;p.T=wOv(p,C===void 0?!1:C);if(C=V!==p.T)p.C=[],p.S=0;return C};
GK=function(p,C){return C>=p.S1()-L5y(p)};
gmH=function(p,C,V){C=GK(p,C);V||C?C&&(p.V=!0):p.V=!1;p.J=p.policy.C===2||p.policy.C===3&&p.V};
W5j=function(p,C){C=GK(p,C);p.W!==C&&p.publish("livestatusshift",C);p.W=C};
L5y=function(p){var C=p.policy.T;p.W||(C=Math.max(C-1,0));return C*p$(p)};
PYa=function(p,C,V){V.qo&&C--;ld(V)&&(C=1);if(tl(V)!==0&&(p=g.mi(p.experiments,"html5_live_chunk_readahead_proxima_override"))){C=p;var N;((N=V.T)==null?0:Or9(N))&&C++}return C};
p$=function(p){return p.videoData.T?Jz(p.videoData.T)||5:5};
rX=function(p,C){C=Math.max(Math.max(1,Math.ceil(p.policy.V/p$(p))),C);return Math.min(Math.min(8,Math.floor(p.policy.Y/p$(p))),C)};
e29=function(){this.V=0;this.Y=Infinity;this.S=!0;this.T=2;this.C=1;this.D=this.W=!1};
VX=function(p){g.Y.call(this);this.Ta=p;this.T=0;this.C=null;this.Y=this.S=0;this.V={};this.yn=this.Ta.K();this.W=new g.N8(this.f7,1E3,this);this.qo=new C$({delayMs:g.mi(this.yn.experiments,"html5_seek_timeout_delay_ms")});this.Sa=new C$({delayMs:g.mi(this.yn.experiments,"html5_long_rebuffer_threshold_ms")});this.X$=jt(this,"html5_seek_set_cmt");this.Y_=jt(this,"html5_seek_jiggle_cmt");this.UY=jt(this,"html5_seek_new_elem");this.YM=jt(this,"html5_unreported_seek_reseek");this.sY=jt(this,"html5_long_rebuffer_jiggle_cmt");
this.Wr=jt(this,"html5_long_rebuffer_ssap_clip_not_match");this.Vn=new C$({delayMs:2E4});this.R$=jt(this,"html5_seek_new_elem_shorts");this.Qn=jt(this,"html5_seek_new_media_source_shorts_reuse");this.KS=jt(this,"html5_seek_new_media_element_shorts_reuse");this.Ga=jt(this,"html5_reseek_after_time_jump");this.J=jt(this,"html5_gapless_handoff_close_end_long_rebuffer");this.a$=jt(this,"html5_gapless_slow_seek");this.Z=jt(this,"html5_gapless_slice_append_stuck");this.b_=jt(this,"html5_gapless_slow_start");
this.D=jt(this,"html5_ads_preroll_lock_timeout");this.Hc=jt(this,"html5_ssap_ad_longrebuffer_new_element");this.Wc=new C$({delayMs:g.mi(this.yn.experiments,"html5_skip_slow_ad_delay_ms")||5E3,vW:!this.yn.G("html5_report_slow_ads_as_error")});this.kM=new C$({delayMs:g.mi(this.yn.experiments,"html5_skip_slow_ad_delay_ms")||5E3,vW:!this.yn.G("html5_skip_slow_buffering_ad")});this.ER=new C$({delayMs:g.mi(this.yn.experiments,"html5_slow_start_timeout_delay_ms")});this.vr=jt(this,"html5_slow_start_no_media_source");
g.R(this,this.W)};
jt=function(p,C){var V=g.mi(p.yn.experiments,C+"_delay_ms");p=p.yn.G(C+"_cfl");return new C$({delayMs:V,vW:p})};
QiH=function(p,C){p.T=C};
NT=function(p,C,V,N,H,X,d,a){C.test(V)?(p.oN(H,C,d),C.vW||X()):(C.cg&&C.C&&!C.S?(V=(0,g.Ip)(),N?C.T||(C.T=V):C.T=0,X=!N&&V-C.C>C.cg,V=C.T&&V-C.T>C.UP||X?C.S=!0:!1):V=!1,V&&(a=Object.assign({},p.X0(C),a),a.wn=d,a.we=H,a.wsuc=N,p.Ta.k_("workaroundReport",a),N&&(C.reset(),p.V[H]=!1)))};
C$=function(p){var C=p===void 0?{}:p;p=C.delayMs===void 0?0:C.delayMs;var V=C.UP===void 0?1E3:C.UP;var N=C.cg===void 0?3E4:C.cg;C=C.vW===void 0?!1:C.vW;this.T=this.C=this.V=this.startTimestamp=0;this.S=!1;this.W=Math.ceil(p/1E3);this.UP=V;this.cg=N;this.vW=C};
pxs=function(p){g.Y.call(this);var C=this;this.Ta=p;this.Y=this.T=this.nS=this.mediaElement=this.playbackData=null;this.S=0;this.W=this.a$=this.V=null;this.b_=!1;this.Wc=0;this.J=!1;this.timestampOffset=0;this.D=!0;this.Y_=0;this.UY=this.ER=!1;this.Z=0;this.Qn=!1;this.sY=0;this.yn=this.Ta.K();this.videoData=this.Ta.getVideoData();this.policy=new rHQ;this.Vn=new VX(this.Ta);this.qo=this.Ga=this.vr=this.C=NaN;this.Wr=new g.N8(function(){BLv(C,!1)},2E3);
this.kM=new g.N8(function(){HO(C)});
this.R$=new g.N8(function(){C.b_=!0;GEH(C,{})});
this.X$=NaN;this.Sa=new g.N8(function(){var V=C.yn.f9;V.T+=1E4/36E5;V.T-V.V>1/6&&(nru(V),V.V=V.T);C.Sa.start()},1E4);
g.R(this,this.Vn);g.R(this,this.Wr);g.R(this,this.R$);g.R(this,this.kM);g.R(this,this.Sa)};
VvY=function(p,C){p.playbackData=C;p.videoData.isLivePlayback&&(p.Y=new nme(function(){a:{if(p.playbackData&&p.playbackData.T.T){if(Ge(p.videoData)&&p.nS){var V=p.nS.aF.Kd()||0;break a}if(p.videoData.T){V=p.videoData.T.Vn;break a}}V=0}return V}),p.T=new Bu(p.videoData,p.yn.experiments,function(){return p.Sd(!0)}));
Xd(p.Ta)?(C=CiV(p),C.q9?(p.G("html5_sabr_enable_utc_seek_requests")&&$B(p.videoData)&&p.WC(C.q9,C.startSeconds),p.S=C.startSeconds):C.startSeconds>0&&p.seekTo(C.startSeconds,{NZ:"seektimeline_startPlayback",seekSource:15}),p.D=!1):jTy(p)||(p.S=p.S||(g.pf(p.videoData)?0:p.videoData.startSeconds)||0)};
Hn1=function(p,C){(p.nS=C)?NMa(p,!0):dL(p)};
XxY=function(p,C){g.HF(p.Vn.W);p.G("html5_exponential_memory_for_sticky")&&(C.state.isPlaying()?g.HF(p.Sa):p.Sa.stop());if(p.mediaElement)if(C.T7.state===8&&S6(C.state)&&C.state.isBuffering()){C=p.mediaElement.getCurrentTime();var V=p.mediaElement.yx();var N=p.G("manifestless_post_live_ufph")||p.G("manifestless_post_live")?a7(V,Math.max(C-3.5,0)):a7(V,C-3.5);N>=0&&C>V.end(N)-1.1&&N+10?(iY(p.Ta,p.getCurrentTime()+p.videoData.limitedPlaybackDurationInSeconds),p.UY=!0):p.videoData.isLivePlayback&&p.videoData.endSeconds>0&&(iY(p.Ta,p.getCurrentTime()+p.videoData.endSeconds),p.UY=!0))};
inS=function(p,C){var V=p.getCurrentTime(),N=p.isAtLiveHead(V);if(p.Y&&N){var H=p.Y;if(H.T&&!(V>=H.C&&V50&&H.C.shift())),H=p.T,gmH(H,V,C===void 0?!0:C),W5j(H,V),C&&BLv(p,!0));N!==p.ER&&(C=p.getCurrentTime()-p.qo<=500,V=p.Wc>=1E3,C||V||(C=p.Ta.Pc(),C.qoe&&(C=C.qoe,V=g.Zn(C.provider),
g.OZ(C,V,"lh",[N?"1":"0"])),p.ER=N,p.Wc++,p.qo=p.getCurrentTime()))};
BLv=function(p,C){if(p.T){var V=p.T;var N=p.getCurrentTime();!GK(V,N)&&V.qR()?(V.policy.W&&(V.policy.T=Math.max(V.policy.T+1,10)),V=Infinity):V=N0&&ak(p.mediaElement)>0&&(p.C=hH(p,p.C,!1)),!p.mediaElement||!lTL(p))p.kM.start(750);else if(!isNaN(p.C)&&isFinite(p.C)){var C=p.Ga-(p.C-p.timestampOffset);if(!(C===0||p.G("html5_enable_new_seek_timeline_logic")&&Math.abs(C)<.005))if(C=p.mediaElement.getCurrentTime()-p.C,Math.abs(C)<=p.Y_||p.G("html5_enable_new_seek_timeline_logic")&&Math.abs(C)<.005)p.V&&p.V.resolve(p.mediaElement.getCurrentTime());
else{if(p.videoData.Bv)p.videoData.Bv=!1;else if(!rP(p.videoData)&&p.C>=p.Sd()-.1){p.C=p.Sd();p.V.resolve(p.Sd());sD(p.Ta);return}try{var V=p.C-p.timestampOffset;p.mediaElement.seekTo(V);p.Vn.T=V;p.Ga=V;p.S=p.C;p.G("html5_enable_new_seek_timeline_logic")&&(p.J=!1)}catch(N){}}}};
lTL=function(p){if(!p.mediaElement||p.mediaElement.wh()===0||p.mediaElement.hasError())return!1;var C=p.mediaElement.getCurrentTime()>0;if(!(p.videoData.V&&p.videoData.V.T||p.videoData.isLivePlayback)&&p.videoData.O8())return C;if(p.C>=0){var V=p.mediaElement.cW();if(V.length||!C)return EJ(V,p.C-p.timestampOffset)}return C};
EWv=function(p,C){p.W&&(p.W.resolve(C),p.Ta.FH(),p.yn.Gk()&&(C=p.X0(),C["native"]=""+ +p.J,C.otgt=""+(p.C+p.timestampOffset),p.Ta.k_("seekEnd",C)));dL(p)};
dL=function(p){p.C=NaN;p.Ga=NaN;p.V=null;p.a$=null;p.W=null;p.b_=!1;p.J=!1;p.Y_=0;p.Wr.stop();p.R$.stop()};
TMu=function(p,C,V){var N=p.mediaElement,H=C.type;switch(H){case "seeking":var X=N.getCurrentTime()+p.timestampOffset;if(!p.V||p.J&&X!==p.C){var d=!!p.V;p.V=new hK;p.G("html5_enable_new_seek_timeline_logic")&&p.V.then(function(E){EWv(p,E)},function(){dL(p)});
if(p.videoData.isAd()){var a;V_H({adCpn:p.videoData.clientPlaybackNonce,contentCpn:(a=p.videoData.pC)!=null?a:""},C.T)}p.Ga=X;QiH(p.Vn,N.getCurrentTime());p.seekTo(X,{seekSource:104,NZ:"seektimeline_mediaElementEvent"});V&&tvQ(V,X*1E3,!!d);p.J=!0}break;case "seeked":p.V&&p.V.resolve(p.mediaElement.getCurrentTime());break;case "loadedmetadata":Xd(p.Ta)||cre(p);HO(p);break;case "progress":HO(p);break;case "pause":p.Z=p.getCurrentTime()}p.Z&&((H==="play"||H==="playing"||H==="timeupdate"||H==="progress")&&
p.getCurrentTime()-p.Z>10&&(p.G("html5_enable_new_media_element_puase_jump")?(p.Ta.oN(new qD("qoe.restart",{reason:"pauseJump"})),sZ(p.Ta)):p.seekTo(p.Z,{NZ:"pauseJump"})),H!=="pause"&&H!=="play"&&H!=="playing"&&H!=="progress"&&(p.Z=0))};
Mvy=function(p){return(Z6(p.videoData)||!!p.videoData.liveUtcStartSeconds)&&(!!p.videoData.liveUtcStartSeconds||jTy(p))&&!!p.videoData.T};
jTy=function(p){return!!p.videoData.startSeconds&&isFinite(p.videoData.startSeconds)&&p.videoData.startSeconds>1E9};
CiV=function(p){var C=0,V=NaN,N="";if(!p.D)return{startSeconds:C,q9:V,source:N};p.videoData.Wr?C=p.videoData.vr:rP(p.videoData)&&(C=Infinity);if(g.ud(p.videoData))return{startSeconds:C,q9:V,source:N};p.videoData.startSeconds?(N="ss",C=p.videoData.startSeconds):p.videoData.o6&&(N="stss",C=p.videoData.o6);p.videoData.liveUtcStartSeconds&&(V=p.videoData.liveUtcStartSeconds);if(isFinite(C)&&(C>p.Sd()||Cp.Sd()||V
0?(N.onesie="0",p.handleError(new qD("html5.missingapi",N)),!1):!0};
Zns=function(p){var C=rb();Bk(C,p);return g.KU(C,sws())};
KY9=function(p,C){var V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W,e;return g.I(function(B){if(B.C==1)return C.fetchType="onesie",V=Ow1(C,p.getPlayerSize(),p.getVisibilityState()),N=new gZ(p,V),g.y(B,N.fetch(),2);H=B.T;X={player_response:H};C.loading=!1;d=p.lJ.wz;if(N.ZQ){a=g.F(N.ZQ.entries());for(E=a.next();!E.done;E=a.next())l=E.value,t=g.F(l),c=t.next().value,T=t.next().value,M=c,J=T,d.T.set(M,J,180),M===C.videoId&&(S=J.yl(),C.Nq=S);d.qB=N}D=g.F(N.Ls.entries());for(Z=D.next();!Z.done;Z=
D.next())f=Z.value,q=g.F(f),A=q.next().value,z=q.next().value,Q=A,P=z,d.C.set(Q,P,180);g.ew(C,X,!0);if(C.loading||ze(C))return B.return(Promise.resolve());d.T.removeAll();d.C.removeAll();C.Nq=[];VL={};au="onesie.response";W=0;C.errorCode?(au="auth",VL.ec=C.errorCode,VL.ed=C.errorDetail,VL.es=C.Ck||"",W=2):(VL.successButUnplayable="1",VL.disposed=""+ +C.fS(),VL.afmts=""+ +/adaptiveFormats/.test(H),VL.cpn=C.clientPlaybackNonce);e=new qD(au,VL,W);return B.return(Promise.reject(e))})};
FYu=function(p,C){var V,N,H,X,d,a,E,l,t,c,T;return g.I(function(M){switch(M.C){case 1:V=C.isAd(),N=!V,H=V?1:3,X=0;case 2:if(!(X0)){M.EY(5);break}return g.y(M,A8(5E3),6);case 6:d=new g.Bw("Retrying OnePlatform request",{attempt:X}),g.eG(d);case 5:return g.vv(M,7),g.y(M,UAe(p,C),9);case 9:return M.return();case 7:a=g.Sa(M);E=bv(a);l=E.errorCode;t=p.K();c=t.G("html5_use_network_error_code_enums")?401:"401";N&&l==="manifest.net.badstatus"&&E.details.rc===c&&(N=!1,X===H-1&&(H+=
1));if(X===H-1)return T=fTY(V,E.details),T.details.backend="op",T.details.originec=l,M.return(Promise.reject(T));if(l==="auth"||l==="manifest.net.retryexhausted")return M.return(Promise.reject(E));p.handleError(E);if(Ir(E.severity)){M.EY(4);break}case 3:X++;M.EY(2);break;case 4:return M.return(Promise.reject(fTY(V,{backend:"op"})))}})};
UAe=function(p,C){function V(au){au.readyState===2&&p.ZE("ps_c")}
var N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL;return g.I(function(au){switch(au.C){case 1:C.fetchType="gp";N=p.K();H=g.pk(N,g.XE(C));if(!H.T){X=H.getValue();au.EY(2);break}return g.y(au,H.T,3);case 3:X=au.T;case 2:return d=X,a=Zns(d),E=Ow1(C,p.getPlayerSize(),p.getVisibilityState()),l=g.On(OnY),t=g.XE(C),c=(0,g.Ip)(),T=!1,M="empty",J=0,p.ZE("psns"),S={q$:V},g.y(au,g.E0(a,E,l,void 0,S),4);case 4:D=au.T;p.ZE("psnr");if(C.fS())return au.return();D?"error"in D&&D.error?(T=!0,M="esf:"+D.error.message,
J=D.error.code):D.errorMetadata&&(T=!0,M="its",J=D.errorMetadata.status):T=!0;if(T)return Z=0,f=((0,g.Ip)()-c).toFixed(),q={},q=N.G("html5_use_network_error_code_enums")?{backend:"op",rc:J,rt:f,reason:M,has_kpt:C.X$?"1":"0",has_mdx_env:C.mdxEnvironment?"1":"0",has_omit_key_flag:g.pO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:N.pageId?"1":"0",has_token:t?"1":"0",has_vvt:C.b_?"1":"0",is_mdx:C.isMdxPlayback?"1":"0",mdx_ctrl:C.wx||"",token_eq:t===g.XE(C)?"1":"0"}:{backend:"op",
rc:""+J,rt:f,reason:M,has_kpt:C.X$?"1":"0",has_mdx_env:C.mdxEnvironment?"1":"0",has_omit_key_flag:g.pO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:N.pageId?"1":"0",has_token:t?"1":"0",has_vvt:C.b_?"1":"0",is_mdx:C.isMdxPlayback?"1":"0",mdx_ctrl:C.wx||"",token_eq:t===g.XE(C)?"1":"0"},A="manifest.net.connect",J===429?(A="auth",Z=2):J>200&&(A="manifest.net.badstatus",J===400&&(Z=2)),au.return(Promise.reject(new qD(A,q,Z)));C.loading=!1;g.ew(C,{raw_player_response:D},!0);
z=D;g.Oe(C.K())&&z&&z.trackingParams&&Oi(z.trackingParams);if(C.errorCode)return Q={ec:C.errorCode,ed:C.errorDetail,es:C.Ck||""},au.return(Promise.reject(new qD("auth",Q,2)));if(!C.loading&&!ze(C))return P=C.isAd()?"auth":"manifest.net.retryexhausted",VL=C.isAd()?2:1,au.return(Promise.reject(new qD(P,{successButUnplayable:"1",hasMedia:g.SK(C)?"1":"0"},VL)));g.JQ(au)}})};
vWj=function(p,C,V){function N(J){J=bv(J);if(Ir(J.severity))return Promise.reject(J);p.handleError(J);return!1}
function H(){return!0}
var X,d,a,E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:var S=p.K(),D=p.getPlayerSize(),Z=p.getVisibilityState();p.isFullscreen();var f=window.location.search;if(C.partnerId===38&&S.playerStyle==="books")f=C.videoId.indexOf(":"),f=g.GD("//play.google.com/books/volumes/"+C.videoId.slice(0,f)+"/content/media",{aid:C.videoId.slice(f+1),sig:C.ql});else if(C.partnerId===30&&S.playerStyle==="docs")f=g.GD("https://docs.google.com/get_video_info",{docid:C.videoId,authuser:C.BM,authkey:C.jl,eurl:S.X$});
else if(C.partnerId===33&&S.playerStyle==="google-live")f=g.GD("//google-liveplayer.appspot.com/get_video_info",{key:C.videoId});else{S.a$!=="yt"&&g.nm(Error("getVideoInfoUrl for invalid namespace: "+S.a$));var q={html5:"1",video_id:C.videoId,cpn:C.clientPlaybackNonce,eurl:S.X$,ps:S.playerStyle,el:B_(C),hl:S.ER,list:C.playlistId,agcid:C.Fd,aqi:C.adQueryId,sts:20073,lact:bV()};Object.assign(q,S.T);S.forcedExperiments&&(q.forced_experiments=S.forcedExperiments);C.b_?(q.vvt=C.b_,C.mdxEnvironment&&(q.mdx_environment=
C.mdxEnvironment)):g.XE(C)&&(q.access_token=g.XE(C));C.adFormat&&(q.adformat=C.adFormat);C.slotPosition>=0&&(q.slot_pos=C.slotPosition);C.breakType&&(q.break_type=C.breakType);C.bj!==null&&(q.ad_id=C.bj);C.xu!==null&&(q.ad_sys=C.xu);C.Jw!==null&&(q.encoded_ad_playback_context=C.Jw);S.captionsLanguagePreference&&(q.cc_lang_pref=S.captionsLanguagePreference);S.kM&&S.kM!==2&&(q.cc_load_policy=S.kM);var A=g.LK(g.$l(),65);g.wG(S)&&A!=null&&!A&&(q.device_captions_on="1");S.mute&&(q.mute=S.mute);C.annotationsLoadPolicy&&
S.annotationsLoadPolicy!==2&&(q.iv_load_policy=C.annotationsLoadPolicy);C.uv&&(q.endscreen_ad_tracking=C.uv);(A=S.vr.get(C.videoId))&&A.U1&&(q.ic_track=A.U1);C.Sa&&(q.itct=C.Sa);Hk(C)&&(q.autoplay="1");C.mutedAutoplay&&(q.mutedautoplay=C.mutedAutoplay);C.isAutonav&&(q.autonav="1");C.Zq&&(q.noiba="1");C.isMdxPlayback&&(q.mdx="1",q.ytr=C.eH);C.mdxControlMode&&(q.mdx_control_mode=C.mdxControlMode);C.Bb&&(q.ytrcc=C.Bb);C.vx&&(q.utpsa="1");C.isFling&&(q.is_fling="1");C.isInlinePlaybackNoAd&&(q.mute="1");
C.vnd&&(q.vnd=C.vnd);C.forceAdsUrl&&(A=C.forceAdsUrl.split("|").length===3,q.force_ad_params=A?C.forceAdsUrl:"||"+C.forceAdsUrl);C.QZ&&(q.preload=C.QZ);D.width&&(q.width=D.width);D.height&&(q.height=D.height);(C.FT?0:C.va)&&(q.splay="1");C.ypcPreview&&(q.ypc_preview="1");Vk(C)&&(q.content_v=Vk(C));C.qo&&(q.livemonitor=1);S.sY&&(q.authuser=S.sY);S.pageId&&(q.pageid=S.pageId);S.Qn&&(q.ei=S.Qn);S.S&&(q.iframe="1");C.contentCheckOk&&(q.cco="1");C.racyCheckOk&&(q.rco="1");S.D&&C.Ln&&(q.live_start_walltime=
C.Ln);S.D&&C.gR&&(q.live_manifest_duration=C.gR);S.D&&C.playerParams&&(q.player_params=C.playerParams);S.D&&C.cycToken&&(q.cyc=C.cycToken);S.D&&C.ij&&(q.tkn=C.ij);Z!==0&&(q.vis=Z);S.enableSafetyMode&&(q.enable_safety_mode="1");C.X$&&(q.kpt=C.X$);C.Ic&&(q.kids_age_up_mode=C.Ic);C.kidsAppInfo&&(q.kids_app_info=C.kidsAppInfo);C.Su&&(q.upg_content_filter_mode="1");S.widgetReferrer&&(q.widget_referrer=S.widgetReferrer.substring(0,128));C.a$?(D=C.a$.latitudeE7!=null&&C.a$.longitudeE7!=null?C.a$.latitudeE7+
","+C.a$.longitudeE7:",",D+=","+(C.a$.clientPermissionState||0)+","+(C.a$.locationRadiusMeters||"")+","+(C.a$.locationOverrideToken||"")):D=null;D&&(q.uloc=D);C.oi&&(q.internalipoverride=C.oi);S.embedConfig&&(q.embed_config=S.embedConfig);S.Kp&&(q.co_rel="1");S.ancestorOrigins.length>0&&(q.ancestor_origins=Array.from(S.ancestorOrigins).join(","));S.homeGroupInfo!==void 0&&(q.home_group_info=S.homeGroupInfo);S.livingRoomAppMode!==void 0&&(q.living_room_app_mode=S.livingRoomAppMode);S.enablePrivacyFilter&&
(q.enable_privacy_filter="1");C.isLivingRoomDeeplink&&(q.is_living_room_deeplink="1");C.xr&&C.s5&&(q.clip=C.xr,q.clipt=C.s5);C.SA&&(q.disable_watch_next="1");C.Q1&&(q.forced_by_var="1");for(var z in q)!yre.has(z)&&q[z]&&String(q[z]).length>512&&(g.eG(Error("GVI param too long: "+z)),q[z]="");z=S.Vn;g.yj(S)&&(z=H8(z.replace(/\b(?:www|web)([.-])/,"tv$1"))||S.Vn);S=g.GD(z+"get_video_info",q);f&&(S=s11(S,f));f=S}X=f;a=(d=C.isAd())?1:3;E=0;case 2:if(!(E0)){J.EY(5);break}return g.y(J,
A8(5E3),6);case 6:t={playerretry:E,playerretrysrc:V},d||(t.recover="embedded"),l=Ek(X,t);case 5:return g.y(J,qC1(C,l).then(H,N),7);case 7:if(c=J.T)return J.return();E++;J.EY(2);break;case 4:T=d?"auth":"manifest.net.retryexhausted";M=d?2:1;if(!d&&Math.random()<1E-4)try{g.eG(new g.Bw("b/152131571",btoa(X)))}catch(Q){}return J.return(Promise.reject(new qD(T,{backend:"gvi"},M)))}})};
qC1=function(p,C){function V(D){return N(D.xhr)}
function N(D){if(!p.fS()){D=D?D.status:-1;var Z=0,f=((0,g.Ip)()-t).toFixed();f=H.G("html5_use_network_error_code_enums")?{backend:"gvi",rc:D,rt:f}:{backend:"gvi",rc:""+D,rt:f};var q="manifest.net.connect";D===429?(q="auth",Z=2):D>200&&(q="manifest.net.badstatus",D===400&&(Z=2));return Promise.reject(new qD(q,f,Z))}}
var H,X,d,a,E,l,t,c,T,M,J,S;return g.I(function(D){if(D.C==1){p.fetchType="gvi";H=p.K();var Z={};p.AY&&(Z.ytrext=p.AY);(a=g.k5(Z)?void 0:Z)?(X={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:a},d=Ek(C,{action_display_post:1})):(X={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},d=C);E={};H.sendVisitorIdHeader&&p.visitorData&&(E["X-Goog-Visitor-Id"]=p.visitorData);(l=Wb(H.experiments,"debug_sherlog_username"))&&(E["X-Youtube-Sherlog-Username"]=l);Object.keys(E).length>
0&&(X.headers=E);t=(0,g.Ip)();return g.y(D,Hb(Aw,d,X).then(void 0,V),2)}c=D.T;if(!c||!c.responseText)return D.return(N(c));p.loading=!1;T=i1(c.responseText);g.ew(p,T,!0);if(p.errorCode)return M={ec:p.errorCode,ed:p.errorDetail,es:p.Ck||""},D.return(Promise.reject(new qD("auth",M,2)));if(!p.loading&&!ze(p))return J=p.isAd()?"auth":"manifest.net.retryexhausted",S=p.isAd()?2:1,D.return(Promise.reject(new qD(J,{successButUnplayable:"1"},S)));g.JQ(D)})};
fTY=function(p,C){return new qD(p?"auth":"manifest.net.retryexhausted",C,p?2:1)};
cO=function(p,C,V){V=V===void 0?!1:V;var N,H,X,d;g.I(function(a){if(a.C==1){N=p.K();if(V&&(!g.LI(N)||B_(C)!=="embedded")||C.SA||B_(C)!=="adunit"&&(g.bH(N)||kS(N)||g.gk(N)||g.yj(N)||Lb(N)==="WEB_CREATOR"))return a.return();H=g.pk(N,g.XE(C));return H.T?g.y(a,H.T,3):(X=H.getValue(),a.EY(2))}a.C!=2&&(X=a.T);d=X;return a.return(ITY(p,C,d))})};
ITY=function(p,C,V){var N,H,X,d,a;return g.I(function(E){if(E.C==1){g.vv(E,2);N=Zns(V);var l=C.K();g.$l();var t={context:g.TC(C),videoId:C.videoId,racyCheckOk:C.racyCheckOk,contentCheckOk:C.contentCheckOk,autonavState:"STATE_NONE"};B_(C)==="adunit"&&(t.isAdPlayback=!0);l.embedConfig&&(t.serializedThirdPartyEmbedConfig=l.embedConfig);l.Kp&&(t.showContentOwnerOnly=!0);C.YY&&(t.showShortsOnly=!0);g.LK(0,141)&&(t.autonavState=g.LK(0,140)?"STATE_OFF":"STATE_ON");if(g.wG(l)){var c=g.LK(0,65);c=c!=null?
!c:!1;var T=!!g.zW("yt-player-sticky-caption");t.captionsRequested=c&&T}var M;if(l=(M=l.getWebPlayerContextConfig())==null?void 0:M.encryptedHostFlags)t.playbackContext={encryptedHostFlags:l};H=t;X=g.On(bnH);p.ZE("wn_s");return g.y(E,g.E0(N,H,X),4)}if(E.C!=2)return d=E.T,p.ZE("wn_r"),!d||"error"in d&&d.error||(a=d,g.Oe(C.K())&&a.trackingParams&&Oi(a.trackingParams),g.ew(C,{raw_watch_next_response:d},!1)),g.Fe(E,0);g.Sa(E);g.JQ(E)})};
ArV=function(p){p.ZE("vir");p.ZE("ps_s");hd("vir",void 0,"video_to_ad");var C=uke(p);C.then(function(){p.ZE("virc");hd("virc",void 0,"video_to_ad");p.ZE("ps_r");hd("ps_r",void 0,"video_to_ad")},function(){p.ZE("virc");
hd("virc",void 0,"video_to_ad")});
return C};
g.JH=function(p,C,V,N,H,X,d,a,E,l){E=E===void 0?new g.YB(p):E;l=l===void 0?!0:l;g.ca.call(this);var t=this;this.yn=p;this.playerType=C;this.mM=V;this.Dq=N;this.getVisibilityState=X;this.visibility=d;this.lJ=a;this.videoData=E;this.TO=l;this.logger=new g.HI("VideoPlayer");this.qY=new xT1(this.yn);this.UO=null;this.Av=new ms;this.CV=null;this.L$=new LNu(this.yn,this.Dq,this);this.u2=!0;this.Hr=this.nS=null;this.S6=[];this.Ec=new tH;this.QL=this.t_=null;this.XU=new tH;this.pZ=null;this.ex=this.hx=!1;
this.Pg=NaN;this.cQ=!1;this.playerState=new g.cj;this.Dv=[];this.Va=new g.Rr;this.q1=new bAu(this);this.mediaElement=null;this.OC=new g.N8(this.ah_,15E3,this);this.Tm=this.OL=!1;this.G7=NaN;this.FE=!1;this.Wq=0;this.Po=!1;this.Zi=NaN;this.ji=new ai(new Map([["bufferhealth",function(){return dAe(t.EZ)}],
["bandwidth",function(){return t.Xh()}],
["networkactivity",function(){return t.yn.schedule.sY}],
["livelatency",function(){return t.isAtLiveHead()&&t.isPlaying()?oWH(t):NaN}],
["rawlivelatency",function(){return oWH(t)}]]));
this.o2=0;this.loop=!1;this.playbackRate=1;this.rQ=0;this.EZ=new pxs(this);this.bB=!1;this.Yg=[];this.pP=this.M6=0;this.Fv=this.TH=!1;this.pT=this.mP=0;this.NT=-1;this.MU="";this.CN=new g.N8(this.rU,0,this);this.VU=!1;this.Ze=this.GB=null;this.Akn=[this.Va,this.CN,this.OC,this.ji];this.xA=this.w3=null;this.JE=function(){var c=t.Pc();c.provider.yn.W1||c.provider.Ta.getVisibilityState()===3||(c.provider.yn.W1=!0);mTu(c);if(c.C){var T=c.C;T.W&&T.T<0&&T.provider.Ta.getVisibilityState()!==3&&sVv(T)}c.qoe&&
(c=c.qoe,c.UY&&c.C<0&&c.provider.yn.W1&&xaQ(c),c.V&&qa(c));t.nS&&TE(t);t.yn.cP&&!t.videoData.backgroundable&&t.mediaElement&&!t.gi()&&(t.isBackground()&&t.mediaElement.YA()?(t.k_("bgmobile",{suspend:1}),t.Q6(!0,!0)):t.isBackground()||MT(t)&&t.k_("bgmobile",{resume:1}))};
this.Sr={Ct:function(c){t.Ct(c)},
e2_:function(c){t.UO=c},
MEY:function(){return t.DC},
Xp:function(){return t.BE},
Wbn:function(){return t.LN},
LbY:function(){return t.Ni},
y6r:function(){},
K:function(){return t.yn},
Nt:function(){return t.mediaElement},
T9Y:function(c){t.VG(c)}};
this.logger.debug(function(){return"creating, type "+C});
this.ZZ=new gX(function(){return t.getCurrentTime()},function(){return t.getPlaybackRate()},function(){return t.getPlayerState()},function(c,T){c!==g.Ez("endcr")||g.r(t.playerState,32)||sD(t);
H(c,T,t.playerType)},function(c,T){g.pf(t.videoData)&&t.k_(c,T)});
g.R(this,this.ZZ);g.R(this,this.EZ);kbY(this,E);this.videoData.subscribe("dataupdated",this.K6$,this);this.videoData.subscribe("dataloaded",this.QI,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.k_,this);this.videoData.subscribe("ctmpstr",this.x8,this);this.ip();qpu(this.JE);this.visibility.subscribe("visibilitystatechange",this.JE);this.LN=new g.N8(this.Im,g.mi(this.yn.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Ni=
new g.N8(this.Im,g.mi(this.yn.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.HP=new kEQ(this)};
Hj=function(p){return p.G("html5_not_reset_media_source")&&!p.O8()&&!p.videoData.isLivePlayback&&g.jQ(p.videoData)&&!p.yn.supportsGaplessShorts()};
kbY=function(p,C){if(p.playerType===2||p.yn.Tz)C.E6=!0;var V=bay(C.Q$,C.mU,p.yn.S,p.yn.D);V&&(C.adFormat=V);p.playerType===2&&(C.X4=!0);if(p.isFullscreen()||p.yn.S)V=g.zW("yt-player-autonavstate"),C.autonavState=V||(p.yn.S?2:p.videoData.autonavState);C.endSeconds&&C.endSeconds>C.startSeconds&&iY(p,C.endSeconds)};
xAQ=function(p){if(p.videoData.J){var C=p.lJ.L1();p.videoData.Qt=p.videoData.Qt||(C==null?void 0:C.y5());p.videoData.Mc=p.videoData.Mc||(C==null?void 0:C.bI())}if(X1s(p.videoData)||!a$(p.videoData))C=p.videoData.errorDetail,p.a_(p.videoData.errorCode||"auth",2,unescape(p.videoData.errorReason),C,C,p.videoData.Ck||void 0);p.G("html5_generate_content_po_token")&&p.Cn();p.G("html5_enable_d6de4")&&p.kA();if(p.G("html5_ssap_cleanup_player_switch_ad_player")||p.G("html5_ssap_cleanup_ad_player_on_new_data"))if(C=
p.lJ.DE())p.MU=C.clientPlaybackNonce};
YCS=function(p){vmQ(p.DC);g.iP(p.DC);for(var C=p.BE,V=g.F(C.T.values()),N=V.next();!N.done;N=V.next())vmQ(N.value);C.T.clear();g.iP(p.BE)};
m5=function(p){if(p.G("html5_check_video_data_errors_before_playback_start")&&p.videoData.errorCode)return!1;p.K().Y&&p.K().houseBrandUserStatus&&p.k_("hbut",{status:p.K().houseBrandUserStatus});if(p.videoData.GN())return!0;p.a_("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.vO=function(p,C){(C=C===void 0?!1:C)||g.pf(p.videoData)||$b(p.Pc());p.hx=C;!m5(p)||p.Ec.Rb()?g.bH(p.yn)&&p.videoData.isLivePlayback&&p.Ec.Rb()&&!p.Ec.finished&&!p.hx&&p.QI():(p.Ec.start(),C=p.Pc(),g.Zn(C.provider),C.qoe&&Inu(C.qoe),p.QI())};
zDv=function(p){var C=p.videoData;ArV(p).then(void 0,function(V){p.videoData!==C||C.fS()||(V=bv(V),V.errorCode==="auth"&&p.videoData.errorDetail?p.a_(V.errorCode,2,unescape(p.videoData.errorReason),yu(V.details),p.videoData.errorDetail,p.videoData.Ck||void 0):p.handleError(V))})};
RDL=function(p,C){p.GB=C;p.nS&&b4Y(p.nS,new g.aV(C))};
Pij=function(p){g.r(p.playerState,128)||(p.videoData.isLoaded(),p.logger.debug("finished loading playback data"),p.S6=g.p6(p.videoData.Vn),g.SK(p.videoData)?(p.mM.tick("bpd_s"),Fd(p).then(function(){p.mM.tick("bpd_c");if(!p.fS()){p.hx&&(p.aN(JK(JK(p.playerState,512),1)),MT(p));var C=p.videoData;C.endSeconds&&C.endSeconds>C.startSeconds&&iY(p,C.endSeconds);p.Ec.finished=!0;St(p,"dataloaded");p.XU.Rb()&&nWH(p);hwS(p.L$,p.QL)}}),p.G("html5_log_media_perf_info")&&p.k_("loudness",{v:p.videoData.Gp.toFixed(3)},
!0),eDV(p)):St(p,"dataloaded"))};
Fd=function(p){K$(p);p.QL=null;var C=z2X(p.yn,p.videoData,p.gi());p.t_=C;p.t_.then(function(V){wxv(p,V)},function(V){p.fS()||(V=bv(V),p.visibility.isBackground()?(D_(p,"vp_none_avail"),p.t_=null,p.Ec.reset()):(p.Ec.finished=!0,p.a_(V.errorCode,V.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yu(V.details))))});
return C};
F9=function(p){p.logger.debug("Updating for format change");Fd(p).then(function(){return MT(p)});
p.playerState.isOrWillBePlaying()&&p.playVideo()};
wxv=function(p,C){if(!p.fS()&&!C.videoData.fS()){p.logger.debug("finished building playback data");p.QL=C;VvY(p.EZ,p.QL);if(p.videoData.isLivePlayback){var V=$AY(p.lJ.wz,p.videoData.videoId)||p.nS&&!isNaN(p.nS.sY);V=p.G("html5_onesie_live")&&V;Xd(p)||p.videoData.Hc>0&&!Ge(p.videoData)||V||p.seekTo(p.Sd(),{NZ:"videoplayer_playbackData",seekSource:18})}if(p.videoData.V.T){if(p.G("html5_sabr_report_missing_url_as_error")&&Jej(p.videoData)){p.handleError(new qD("fmt.missing",{missabrurl:"1"},2));return}p.nS?
g.eG(Error("Duplicated Loader")):(V=g.mi(p.yn.experiments,"html5_onesie_defer_content_loader_ms"))&&X9(p)&&$AY(p.lJ.wz,p.videoData.yQ)?g.F5(function(){p.fS()||p.nS||LYH(p)},V):LYH(p)}else!p.videoData.V.T&&ix(p.videoData)&&p.yG(new rd(p.videoData.videoId||"",4));
uY(p);jVj(C).then(function(){var N={};p.Zm(N);p.yn.Gk()&&p.G("html5_log_media_perf_info")&&p.k_("av1Info",N);TE(p)})}};
gWY=function(p){p.logger.debug("start readying playback");p.G("html5_enable_ssap_autoplay_debug_logging")&&p.k_("ssap",{strdypb:1});p.mediaElement&&p.mediaElement.activate();g.vO(p);m5(p)&&!g.r(p.playerState,128)&&(p.XU.Rb()||(p.XU.start(),p.videoData.Of?p.aN(JK(p.playerState,4)):p.aN(JK(JK(p.playerState,8),1))),nWH(p))};
nWH=function(p){p.fS();p.logger.debug("try finish readying playback");if(p.XU.finished)p.logger.debug("already finished readying");else if(p.Ec.finished)if(g.r(p.playerState,128))p.logger.debug("cannot finish readying because of error");else if(p.S6.length)p.logger.debug(function(){return"cannot finish readying because of pending preroll: "+p.S6});
else if(p.ZZ.started||b$u(p.ZZ),p.iX())p.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{p.nS&&(p.ex=nS1(p.nS.timing));p.XU.finished||(p.XU.finished=!0);var C=p.G("html5_onesie_live")&&p.nS&&!isNaN(p.nS.sY);!p.videoData.isLivePlayback||p.videoData.Hc>0&&!Ge(p.videoData)||C||Xd(p)||(p.logger.debug("seek to head for live"),p.seekTo(Infinity,{NZ:"videoplayer_readying",seekSource:18}),p.isBackground()&&(p.Tm=!0));cHL(p.Pc());p.logger.debug("finished readying playback");
p.publish("playbackready",p);dc("pl_c",p.mM.timerName)||(p.mM.tick("pl_c"),hd("pl_c",void 0,"video_to_ad"));dc("pbr",p.mM.timerName)||(p.mM.tick("pbr"),hd("pbr",void 0,"video_to_ad"))}else p.logger.debug("playback data not loaded")};
sD=function(p,C,V){C=C===void 0?!0:C;(V===void 0||V)&&p.mediaElement&&p.mediaElement.pause();p.aN(C?new g.cj(14):new g.cj)};
iY=function(p,C){p.CV&&WYe(p);p.CV=new g.sz(C*1E3,0x7ffffffffffff);p.CV.namespace="endcr";p.addCueRange(p.CV)};
WYe=function(p){p.removeCueRange(p.CV);p.CV=null};
QTe=function(p,C,V,N,H){var X=p.Pc(H),d=g.pf(p.videoData)?X.getVideoData():p.videoData;d.C=V;var a=g.Z_(p);V=new $4s(d,V,C,a?a.itag:"",N);p.yn.experiments.OY("html5_refactor_sabr_video_format_selection_logging")?(V.videoId=H,p.xA=V):X.yX(V);H=p.L$;H.C=0;H.T=0;p.publish("internalvideoformatchange",d,C==="m")};
g.Z_=function(p){var C=UD(p);return Ni(C)||!p.QL?null:g.L0(p.QL.T.videoInfos,function(V){return C.S(V)})};
UD=function(p){if(p.QL){var C=p.L$;var V=p.QL;p=p.F_();if(C.Ta.Uu().isInline())var N=xB;else C.G("html5_exponential_memory_for_sticky")?N=m4(C.yn.f9,"sticky-lifetime")<.5?"auto":H1[Y1()]:N=H1[Y1()],N=g.jo("auto",N,!1,"s");if(Ni(N)){if(N=gkX(C,V).compose(GG9(C,V)).compose(CFv(C,V)).compose(daY(C,V.videoData)).compose(iuV(C,V.videoData,V)).compose(Dn(C,V)).compose(rIj(C,V)),Ni(p)||C.G("html5_apply_pbr_cap_for_drm"))N=N.compose(BZe(C,V))}else C.G("html5_perf_cap_override_sticky")&&(N=N.compose(Dn(C,
V))),C.G("html5_ustreamer_cap_override_sticky")&&(N=N.compose(BZe(C,V)));N=N.compose(rIj(C,V));C=V.videoData.KT.compose(N).compose(V.videoData.f5).compose(p)}else C=xB;return C};
Fv9=function(p){var C=p.L$;p=p.videoData;var V=daY(C,p);C.G("html5_disable_client_autonav_cap_for_onesie")||V.compose(iuV(C,p));return V};
g.rrv=function(p,C,V,N){var H=C.T,X=C.reason;if(p.G("html5_enable_qoe_video_format_intent")){var d;if((d=p.Pc().qoe)!=null&&!(H<=0)){var a=g.Zn(d.provider);g.OZ(d,a,"vfi",[H+"p",X])}}p.videoData.KT=C;if(p.QL&&V&&(V=p.L$,H=p.QL,H.T.T&&(X=Y1(),d=H.T.videoInfos[0].video.T,!(X>d&&d!==0&&C.T===d)))){var E;X=QB1(V,(E=H.T)==null?void 0:E.videoInfos);E=V.Ta.getPlaybackRate();E>1&&X&&(E=ugX(V.yn.W,H.T.videoInfos,E),C.T!==0&&E=480;if(V.G("html5_exponential_memory_for_sticky")){l=V.yn.f9;t=1;var c=c===void 0?!1:c;Pnj(l,"sticky-lifetime");l.values["sticky-lifetime"]&&l.uq["sticky-lifetime"]||(l.values["sticky-lifetime"]=0,l.uq["sticky-lifetime"]=0);c&&m4(l,"sticky-lifetime")>.0625&&(t=l.uq["sticky-lifetime"]*2);l.values["sticky-lifetime"]+=1*Math.pow(2,l.T/t);l.uq["sticky-lifetime"]=t;l.S.start()}if(V.G("html5_perf_cap_override_sticky")){c=
V.V;l=V.G("html5_perserve_av1_perf_cap");l=l===void 0?!1:l;if(l===void 0?0:l){t=RH();C=g.F(Object.keys(t));for(V=C.next();!V.done;V=C.next())V=V.value,V.indexOf("1")!==0&&delete t[V];g.Yl("yt-player-performance-cap",t,2592E3)}else g.R_("yt-player-performance-cap");ZFY(l);if(l){l=g.F(uo.keys());for(t=l.next();!t.done;t=l.next())t=t.value,t.startsWith("1")||uo.delete(t);l=g.F(Ku.values());for(t=l.next();!t.done;t=l.next())t=t.value,t.startsWith("1")||Ku.delete(t);l=g.F(c.keys());for(t=l.next();!t.done;t=
l.next())t=t.value,t.startsWith("1")||c.delete(t)}else uo.clear(),Ku.clear(),c.clear()}}p.nS&&(c=p.nS,N=N||"",c.policy.T?xd(c.C.T,N):xd(c.T.W,N));uY(p)};
uY=function(p){if(!p.fS()&&!g.r(p.playerState,128)&&p.videoData.V){if(p.videoData.V.T)TE(p);else{var C=UD(p),V=p.videoData;a:{var N=p.videoData.FO;if(C.T){for(var H=g.F(N),X=H.next();!X.done;X=H.next()){X=X.value;var d=X.getInfo(),a=g.PB[d.video.quality];if((!C.V||d.video.quality!=="auto")&&a<=C.T){N=X;break a}}N=N[N.length-1]}else N=N[0]}V.KS=N;QTe(p,C.reason,BMv(p,p.videoData.KS))}if(p.G("html5_check_unstarted")?p.playerState.isOrWillBePlaying():p.isPlaying())p.EZ.D=!1,p.playVideo()}};
TE=function(p){if(p.videoData.V&&p.videoData.V.T){var C=UD(p);p.nS&&EdQ(p.nS,C)}};
GbQ=function(p){var C;return!!(p.G("html5_native_audio_track_switching")&&g.D1&&((C=p.videoData.C)==null?0:jb(C)))};
pze=function(p){if(!GbQ(p))return!1;var C;p=(C=p.mediaElement)==null?void 0:C.audioTracks();return!!(p&&p.length>1)};
je9=function(p){var C=CWQ(p);if(C)return p.videoData.getAvailableAudioTracks().find(function(V){return V.K4.getName()===C})};
CWQ=function(p){var C;if(p=(C=p.mediaElement)==null?void 0:C.audioTracks())for(C=0;C0&&(C.i8=N.Ot));
C.qn=N.Kq;C.Tp=U6(V,{},N.V||void 0,sW(N));C.qo=hl(N)&&g.gk(V);C.lF=V.G("html5_catch_errors_for_rollback");$B(N)&&(C.Ij=g.mi(V.experiments,"html5_sabr_seek_epsilon_ms"),V.G("html5_sabr_report_partial_segment_estimated_duration")&&(C.SA=!0),C.T=!0,C.Tz=V.G("html5_sabr_enable_utc_seek_requests"),C.cP=V.G("html5_sabr_enable_live_clock_offset"),C.sx=V.G("html5_disable_client_resume_policy_for_sabr"),C.Zw=V.G("html5_trigger_loader_when_idle_network"),C.Z4=V.G("html5_sabr_parse_live_metadata_playback_boundaries"),
C.yR=V.G("html5_enable_platform_backpressure_with_sabr"),C.oi=V.G("html5_consume_onesie_next_request_policy_for_sabr"),C.E5=V.G("html5_sabr_report_next_ad_break_time"),C.QP=V.G("html5_log_high_res_buffer_timeline"),C.VR=V.G("html5_remove_stuck_slices_beyond_max_buffer_limits"),C.Su=V.G("html5_gapless_sabr_btl_last_slice")&&id(N),Ge(N)?(C.IX=!0,C.Ic=V.G("html5_disable_variability_tracker_for_live"),C.UY=V.G("html5_sabr_use_accurate_slice_info_params")):C.qW=V.G("html5_probe_request_on_sabr_request_progress"),
C.nA=V.G("html5_serve_start_seconds_seek_for_post_live_sabr"),C.o6=V.G("html5_flush_index_on_updated_timestamp_offset"),C.b_=V.G("html5_enable_sabr_request_pipelining")&&!g.pf(N),C.Ra=V.G("html5_ignore_partial_segment_from_live_readahead"),C.KT=V.G("html5_use_non_active_broadcast_for_post_live"),C.Wr=V.G("html5_use_centralized_player_time"),C.hg=V.G("html5_consume_onesie_sabr_seek"),C.sY=V.G("html5_enable_sabr_seek_loader_refactor"),C.ra=V.G("html5_update_segment_start_time_from_media_header"),N.enableServerStitchedDai&&
(C.W=!0,C.Rj=V.G("html5_reset_server_stitch_state_for_non_sabr_seek"),C.s5=V.G("html5_remove_ssdai_append_pause"),C.Qn=V.G("html5_consume_ssdai_info_with_streaming"),C.Uv=V.G("html5_process_all_cuepoints")));C.Y=C.T&&V.G("html5_sabr_live");Je(V.W,mw.BITRATE)&&(C.F$=NaN);if(a=g.mi(V.experiments,"html5_request_size_max_kb"))C.Y_=a*1024;V.W.S?C.cV="; "+mw.EXPERIMENTAL.name+"=allowed":V.G("html5_enable_cobalt_tunnel_mode")&&(C.cV="; tunnelmode=true");a=N.serverPlaybackStartConfig;(a==null?0:a.enable)&&
(a==null?0:a.playbackStartPolicy)&&(C.I5=!0,zt9(C,a.playbackStartPolicy,2));a=V4s(p);p.Av.removeAll();a:{V=p.lJ.wz;if(N=p.videoData.videoId)if(H=V.T.get(N)){V.T.remove(N);V=H;break a}V=void 0}p.nS=new g.Hu(p,p.yn.schedule,C,p.videoData.T,p.videoData.V,UD(p),a,p.videoData.enableServerStitchedDai,V,p.videoData.Y_);C=p.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&p.videoData.isDaiEnabled()&&X9(p)?!0:p.hx&&g.bH(p.yn)&&p.videoData.isLivePlayback;p.nS.initialize(p.getCurrentTime(),UD(p),
C);p.videoData.probeUrl&&(p.nS.R$=p.videoData.probeUrl);if(p.S6.length||p.hx)p.videoData.cotn||f$(p,!1);Hn1(p.EZ,p.nS);p.GB&&b4Y(p.nS,new g.aV(p.GB));p.Ze&&(p.nS.hK(p.Ze),p.EZ.D=!1);g.s5(p.videoData)&&(p=p.nS,p.policy.uM=p.policy.nj)};
K$=function(p){p.nS&&(p.nS.dispose(),p.nS=null,Hn1(p.EZ,null));Hj(p)?Nuu(p):OD(p)};
Nuu=function(p){if(p.Hr)if(p.logger.debug("release media source"),p.Gh(),p.Hr.W)try{p.yn.Gk()&&p.k_("rms",{l:"vprms",sr:Hj(p),rs:dl(p.Hr)});p.Hr.clear();var C;(C=p.mediaElement)!=null&&(C.C=p.Hr);p.Hr=null}catch(V){C=new g.Bw("Error while clearing Media Source in VideoPlayer: "+V.name+", "+V.message),C=bv(C),p.handleError(C),OD(p)}else OD(p)};
OD=function(p,C){C=C===void 0?!1:C;p.Hr&&(p.logger.debug("remove media source"),Zqy(p.Hr),p.Gh(C),p.Hr.dispose(),p.Hr=null)};
Xze=function(p,C){C=C===void 0?!1:C;if(p.Hr)return p.Hr.V;p.logger.debug("update media source");a:{C=C===void 0?!1:C;try{g.Qg()&&p.videoData.Ez()&&fUV(p.mediaElement);var V=p.mediaElement.In(p.dc(),p.Tc())}catch(H){if(YpS(p.q1,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",H);p.a_("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}HZe(p,V,!1,!1,C)}var N;return((N=p.In())==null?void 0:N.V)||null};
HZe=function(p,C,V,N,H){function X(d){try{ddy(p,d,V,N)}catch(a){g.eG(a),p.handleError(new qD("fmt.unplayable",{msi:"1",ename:a&&typeof a==="object"&&"name"in a?String(a.name):void 0},1))}}
V=V===void 0?!1:V;N=N===void 0?!1:N;iZ9(p,H===void 0?!1:H);p.Hr=C;Hj(p)&&dl(p.Hr)==="open"?X(p.Hr):Fz1(p.Hr,X)};
iZ9=function(p,C){C=C===void 0?!1:C;if(p.nS){var V=p.getCurrentTime()-p.yZ();p.nS.seek(V,{h6:C}).Rz(function(){})}else LYH(p)};
ddy=function(p,C,V,N){V=V===void 0?!1:V;N=N===void 0?!1:N;if(p.Hr&&(!C||p.Hr===C)){p.logger.debug("media source opened");var H=p.getDuration();!H&&Ge(p.videoData)&&(H=25200);if(p.Hr.isView){var X=H;p.logger.debug(function(){return"Set media source duration to "+X+", video duration "+H});
X>p.Hr.getDuration()&&hMs(p,X)}else hMs(p,H);hbL(p.nS,p.Hr,V,N);p.publish("mediasourceattached")}};
hMs=function(p,C){if(p.Hr){p.Hr.Nr(C);var V;(V=p.nS)!=null&&V.policy.Wr&&(V.W=C)}};
tfs=function(p,C){QTe(p,C.reason,C.T.info,C.token,C.videoId)};
sZ=function(p,C,V,N){C=C===void 0?!1:C;V=V===void 0?!1:V;N=N===void 0?!1:N;var H,X,d;return g.I(function(a){if(a.C==1){p.nS&&p.nS.Cg();p.nS&&p.nS.fS()&&K$(p);if(p.G("html5_enable_vp9_fairplay")&&p.O8()&&(H=p.videoData.T)!=null)for(var E in H.T)H.T.hasOwnProperty(E)&&(H.T[E].T=null,H.T[E].V=!1);p.aN(JK(p.playerState,2048));p.G("html5_ssap_keep_media_on_finish_segment")&&g.pf(p.videoData)?p.publish("newelementrequired",N):p.publish("newelementrequired");return C?g.y(a,Fd(p),2):a.EY(2)}p.videoData.p4()&&
((X=p.nS)==null?0:X.sY)&&!Xd(p)&&((d=p.isAtLiveHead())&&rP(p.videoData)?p.seekTo(Infinity,{NZ:"videoPlayer_getNewElement"}):p.videoData.EO&&p.nS&&(E=p.nS,E.hk.p4&&(E.hk.EO||E.hk.S||E.hk.isPremiere?(E.seek(0,{NZ:"loader_resetSqless"}),E.videoTrack.D=!0,E.audioTrack.D=!0,E.videoTrack.W=!0,E.audioTrack.W=!0):SO(E.hk)&&uQ(E))));V&&p.seekTo(0,{seekSource:105});g.r(p.playerState,8)&&(p.G("html5_ssap_keep_media_on_finish_segment")&&g.pf(p.videoData)?p.playVideo(!1,N):p.playVideo());g.JQ(a)})};
yX=function(p,C){p.k_("hgte",{ne:+C});p.videoData.J=!1;C&&sZ(p);p.nS&&H4Y(p.nS)};
sej=function(p,C){p.k_("newelem",{r:C});sZ(p)};
aRy=function(p,C){p.mM.S.rd();g.r(p.playerState,32)||(p.aN(JK(p.playerState,32,C==null?void 0:C.seekSource)),g.r(p.playerState,8)&&p.pauseVideo(!0),p.publish("beginseeking",p));p.m6()};
EXe=function(p,C){C=C==null?void 0:C.seekSource;g.r(p.playerState,32)?(p.aN(vj(p.playerState,16,32,C)),p.publish("endseeking",p)):g.r(p.playerState,2)||p.aN(JK(p.playerState,16,C));p.mM.S.vy(p.videoData,p.playerState.isPaused())};
lRu=function(p,C){p.yn.experiments.OY("enable_adb_handling_in_sabr")&&(p.pauseVideo(!0),p.Ci(),C&&p.a_("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
t4X=function(p){var C=0,V="";if(p.GB){if(p.GB.bX)return"D,";C=p.GB.Z5();V=p.GB.yv().substring(0,4)}else p.Ze&&(C=p.Ze.Z5(),V=p.Ze.yv().substring(0,4));return C>0?(p="AD"+C+", ",V&&(p+=V+", "),p):""};
St=function(p,C){p.publish("internalvideodatachange",C===void 0?"dataupdated":C,p,p.videoData)};
cDS=function(p){for(var C=g.F("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),V=C.next();!V.done;V=C.next())p.Va.U(p.mediaElement,V.value,p.VG,p);p.yn.KM&&p.mediaElement.F6()&&(p.Va.U(p.mediaElement,"webkitplaybacktargetavailabilitychanged",p.Va_,p),p.Va.U(p.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",p.SYY,p))};
M4y=function(p){g.Dr(p.Pg);Tuj(p)||(p.Pg=g.Se(function(){return Tuj(p)},100))};
Tuj=function(p){var C=p.mediaElement;C&&p.OL&&!p.videoData.sY&&!dc("vfp",p.mM.timerName)&&C.wh()>=2&&!C.isEnded()&&tj(C.yx())>0&&p.mM.tick("vfp");return(C=p.mediaElement)&&!p.videoData.sY&&C.getDuration()>0&&(C.isPaused()&&C.wh()>=2&&tj(C.yx())>0&&(dc("pbp",p.mM.timerName)||p.mM.tick("pbp"),!p.videoData.Of||p.cQ||C.isSeeking()||(p.cQ=!0,p.publish("onPlaybackPauseAtStart"))),C=C.getCurrentTime(),Wu(p.qY,C))?(JDa(p),!0):!1};
JDa=function(p){g.Dr(p.Pg);p.OC.stop();p.videoData.sY=!0;p.yn.sx=!0;p.yn.Q$=0;var C=p.q1;if(C.videoData.C){var V=C.I$.W,N=C.videoData.C.o$;V.C.has(N)&&(V.C.delete(N),pI(V))}C.T.stop();mdS(p);g.r(p.playerState,8)&&p.aN(mE(p.playerState,65));p.hx=!1;TLS(p.Pc());g.HF(p.LN);p.publish("playbackstarted");(p=g.zV("yt.scheduler.instance.clearPriorityThreshold"))?p():dq(0,0)};
mdS=function(p){var C=p.lJ.DE(),V={},N={};!dc("pbs",p.mM.timerName)&&LS.measure&&LS.getEntriesByName&&(LS.getEntriesByName("mark_nr")[0]?pCV("mark_nr"):pCV());C.videoId&&(V.videoId=C.videoId);C.clientPlaybackNonce&&!p.G("web_player_early_cpn")&&(V.clientPlaybackNonce=C.clientPlaybackNonce);p.mediaElement&&p.mediaElement.isPaused()&&(N.isPausedOnLoad=!0);N.itag=C.C?Number(C.C.itag):-1;C.QZ&&(N.preloadType=String(p.ex?2:1));V.liveStreamMode=vXL[v_(C)];V.playerInfo=N;p.mM.infoGel(V);if(p.nS){C=p.nS.timing;
window&&window.performance&&window.performance.getEntriesByName&&(C.V&&(V=window.performance.getEntriesByName(C.V),V.length&&(V=V[0],C.tick("vri",V.fetchStart),C.tick("vdns",V.domainLookupEnd),C.tick("vreq",V.requestStart),C.tick("vrc",V.responseEnd))),C.C&&(V=window.performance.getEntriesByName(C.C),V.length&&(V=V[0],C.tick("ari",V.fetchStart),C.tick("adns",V.domainLookupEnd),C.tick("areq",V.requestStart),C.tick("arc",V.responseEnd))));C=C.ticks;for(var H in C)C.hasOwnProperty(H)&&p.mM.tick(H,C[H])}};
FDV=function(p,C,V,N){C=(C+(p.NT===3?.3:0))/V;V=Math.floor(C*4);V>p.NT&&(p.k_("vpq",{q:V,cpn:N||p.videoData.clientPlaybackNonce,ratio:C.toFixed(3)}),p.NT=V)};
SRY=function(p){p.Pc().Nn();if(rP(p.videoData)&&Date.now()>p.rQ+6283){if(!(!p.isAtLiveHead()||p.videoData.T&&cb(p.videoData.T))){var C=p.Pc();if(C.qoe){C=C.qoe;var V=C.provider.Ta.sS(),N=g.Zn(C.provider);Ou1(C,N,V);V=V.V;isNaN(V)||g.OZ(C,N,"e2el",[V.toFixed(3)])}}p.G("html5_alc_live_log_rawlat")?(C=p.videoData,C=g.qz(C.K())?!0:g.eH(C.K())?C.K$==="6":!1):C=g.qz(p.yn);C&&p.k_("rawlat",{l:lY(p.ji,"rawlivelatency").toFixed(3)});p.rQ=Date.now()}p.videoData.C&&jb(p.videoData.C)&&(C=p.aj())&&C.videoHeight!==
p.pP&&(p.pP=C.videoHeight,QTe(p,"a",BMv(p,p.videoData.KS)))};
BMv=function(p,C){if(C.T.video.quality==="auto"&&jb(C.getInfo())&&p.videoData.FO)for(var V=g.F(p.videoData.FO),N=V.next();!N.done;N=V.next())if(N=N.value,N.getHeight()===p.pP&&N.T.video.quality!=="auto")return N.getInfo();return C.getInfo()};
oWH=function(p){if(!rP(p.videoData))return NaN;var C=0;p.nS&&p.videoData.T&&(C=Ge(p.videoData)?p.nS.aF.Kd()||0:p.videoData.T.Vn);return(0,g.Ip)()/1E3-p.Xt()-C};
Ddy=function(p){p.mediaElement&&p.mediaElement.gi()&&(p.Zi=(0,g.Ip)());p.yn.lL?g.F5(function(){KDj(p)},0):KDj(p)};
KDj=function(p){var C;if((C=p.Hr)==null||!C.Ii()){if(p.mediaElement)try{p.pZ=p.mediaElement.playVideo()}catch(N){D_(p,"err."+N)}if(p.pZ){var V=p.pZ;V.then(void 0,function(N){p.logger.debug(function(){return"playMediaElement failed: "+N});
if(!g.r(p.playerState,4)&&!g.r(p.playerState,256)&&p.pZ===V)if(N&&N.name==="AbortError"&&N.message&&N.message.includes("load"))p.logger.debug(function(){return"ignore play media element failure: "+N.message});
else{var H="promise";N&&N.name&&(H+=";m."+N.name);D_(p,H);p.bB=!0;p.videoData.FT=!0}})}}};
D_=function(p,C){g.r(p.playerState,128)||(p.aN(vj(p.playerState,1028,9)),p.k_("dompaused",{r:C}),p.publish("onAutoplayBlocked"))};
MT=function(p,C){C=C===void 0?!1:C;if(!p.mediaElement||!p.videoData.V)return!1;var V=C;V=V===void 0?!1:V;var N=null;var H;if((H=p.videoData.V)==null?0:H.T){N=Xze(p,V);var X;(X=p.nS)==null||X.resume()}else K$(p),p.videoData.KS&&(N=p.videoData.KS.Qa());H=p.mediaElement.YA();V=!1;H&&H.sE(N)||(uov(p,N),V=!0);g.r(p.playerState,2)||(N=p.EZ,C=C===void 0?!1:C,N.W||!(N.S>0)||N.mediaElement&&N.mediaElement.getCurrentTime()>0||(C={NZ:"seektimeline_resumeTime",h6:C},N.videoData.sY||(C.seekSource=15),N.seekTo(N.S,
C)));a:{C=V;if($B(p.videoData)){if(!p.videoData.O8())break a}else if(!g.Jl(p.videoData))break a;if(p.mediaElement)if((N=p.videoData.W)&&p.mediaElement.F6()){H=p.mediaElement.V$();if(p.UO)if(H!==p.UO.element)qT(p);else if(C&&N.flavor==="fairplay"&&!rm())qT(p);else break a;if(p.G("html5_report_error_for_unsupported_tvos_widevine")&&rm()&&N.flavor==="widevine")p.a_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{p.UO=new SpL(H,p.videoData,p.yn);p.UO.subscribe("licenseerror",
p.ZD,p);p.UO.subscribe("qualitychange",p.TyY,p);p.UO.subscribe("heartbeatparams",p.i7,p);p.UO.subscribe("keystatuseschange",p.Ct,p);p.UO.subscribe("ctmp",p.k_,p);p.G("html5_widevine_use_fake_pssh")&&!p.videoData.isLivePlayback&&N.flavor==="widevine"&&p.UO.EA(new QN(ZZ1,"cenc",!1));C=g.F(p.Av.keys);for(N=C.next();!N.done;N=C.next())N=p.Av.get(N.value),p.UO.EA(N);p.G("html5_eme_loader_sync")||p.Av.removeAll()}}else p.a_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return V};
uov=function(p,C){p.mM.tick("vta");hd("vta",void 0,"video_to_ad");p.getCurrentTime()>0&&hDj(p.EZ,p.getCurrentTime());p.mediaElement.activate(C);p.Hr&&dq(0,4);!p.videoData.sY&&p.playerState.isOrWillBePlaying()&&p.OC.start();if(GbQ(p)){var V;if(C=(V=p.mediaElement)==null?void 0:V.audioTracks())C.onchange=function(){p.publish("internalaudioformatchange",p.videoData,!0)}}};
qT=function(p){p.UO&&(p.UO.dispose(),p.UO=null)};
Udu=function(p){var C=C===void 0?!1:C;p.logger.debug("reattachVideoSource");p.mediaElement&&(p.Hr?(qT(p),OD(p),Xze(p,C)):(p.videoData.KS&&p.videoData.KS.C2(),p.mediaElement.stopVideo()),p.playVideo())};
fRH=function(p,C){p.yn.G("html5_log_rebuffer_reason")&&(C={r:C,lact:bV()},p.mediaElement&&(C.bh=E3(p.mediaElement)),p.k_("bufreason",C))};
Ii=function(p,C,V,N,H,X,d,a,E){var l;if((l=p.videoData.T)==null?0:l.isLive){var t=V.playerType===2?V:C,c=C.videoData.videoId,T=V.videoData.videoId;if(c&&T){l=p.Pc();if(l.qoe){var M=l.qoe,J=C.cpn,S=V.cpn,D=t.videoData.Q$,Z=M.provider.videoData.clientPlaybackNonce,f=M.provider.videoData.videoId,q=S!==Z&&T!==f;Z=J!==Z&&c!==f;M.reportStats();M.adCpn&&M.adCpn!==J||(M.adCpn=Z?J:"",M.a$=Z?c:"",M.adFormat=Z?D:void 0,A6(M,2,d?4:X?2:0,S,T,H),M.reportStats(),M.adCpn=q?S:"",M.a$=q?T:"",M.adFormat=q?D:void 0,
A6(M,2,d?5:X?3:1,J,c,N),M.reportStats())}N=C.cpn;if(l.V.has(N)){if(X=l.V.get(N),eP(X,!0).send(),nu(X),N!==l.provider.videoData.clientPlaybackNonce){i$y(X);var A;(A=l.T)==null||Vts(A);l.V.delete(N)}}else l.tp=l.provider.videoData.clientPlaybackNonce,l.tp&&l.T&&(l.V.set(l.tp,l.T),eP(l.T).send(),nu(l.T));A=V.cpn;t=t.videoData;H-=p.SX();if(l.V.has(A)){H=l.V.get(A);var z=H.V&&isNaN(H.W)?RV(H):NaN;H=dT9(H,!1);isNaN(z)||(H.Y=z);H.send()}else H=K5a(l,l.provider,t,H),l.V.set(A,H),h2y(H,new g.Kt(JK(new g.cj,
8),new g.cj)),jia(H),(z=l.T)==null||nu(z);l.tp=A;p.G("html5_unify_csi_server_stitched_transition_logging")?OZL(C.cpn,V.cpn,p.videoData.clientPlaybackNonce,V.videoData,a,void 0,E):(l=p.videoData.clientPlaybackNonce,p=V.videoData,C=(C.cpn===l?"video":"ad")+"_to_"+(V.cpn===l?"video":"ad"),l={},p.Y&&(l.cttAuthInfo={token:p.Y,videoId:p.videoId}),a&&(l.startTime=a),XA(C,l),g.HH({targetVideoId:p.videoId,targetCpn:V.cpn,isSsdai:!0},C),NR("pbs",E!=null?E:(0,g.Ip)(),C))}}};
yDY=function(p,C){if(p.yn.Gk()&&p.mediaElement){var V=p.mediaElement.X0();V.omt=(p.mediaElement.getCurrentTime()+p.yZ()).toFixed(3);V.ps=p.playerState.state.toString(16);V.rt=(g.Zn(p.Pc().provider)*1E3).toFixed();V.e=C;p.Yg[p.M6++%5]=V}try{if(C==="timeupdate"||C==="progress")return}catch(N){}p.logger.debug(function(){return"video element event "+C})};
qR1=function(p){if(p.yn.Gk()){p.Yg.sort(function(N,H){return+N.rt-+H.rt});
for(var C=g.F(p.Yg),V=C.next();!V.done;V=C.next())V=V.value,p.k_("vpe",Object.assign({t:V.rt},V));p.Yg=[];p.M6=0}};
IRj=function(p){if(g.gm("cobalt")&&g.gm("nintendo switch")){var C=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;p.k_("nxdock",{d:C})}};
bZS=function(p,C,V,N,H){p.k_("xvt",{m:C,g:1,tt:V?1:0,np:N?1:0,c:H})};
f$=function(p,C){var V;(V=p.nS)==null||iF(V,C)};
X9=function(p){return g.W5(p.S6,"ad")};
AIX=function(p,C){return g.pf(p.videoData)&&p.Ze?p.Ze.handleError(C,void 0):!1};
eDV=function(p){W7(p.videoData,"html5_set_debugging_opt_in")&&(p=g.$l(),g.LK(0,183)||(Ww(183,!0),p.save()))};
ADu=function(p){return g.pf(p.videoData)&&p.Ze?GG(p.Ze):p.videoData.Sd()};
Rb9=function(p,C){p.lJ.SS()||(p.k_("sgap",{f:C}),p.lJ.clearQueue(!1,C==="pe"))};
Xd=function(p){return p.G("html5_disable_video_player_initiated_seeks")&&$B(p.videoData)};
oXe=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"isLifaAdPlaying",function(){return C.api.isLifaAdPlaying()});
this.events.U(p,"serverstitchedvideochange",function(){C.api.isLifaAdPlaying()?(C.playbackRate=C.api.getPlaybackRate(),C.api.setPlaybackRate(1)):C.api.setPlaybackRate(C.playbackRate)});
this.playbackRate=1};
kIY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"seekToChapterWithAnimation",function(V){C.seekToChapterWithAnimation(V)});
J_(this.api,"seekToTimeWithAnimation",function(V,N){C.seekToTimeWithAnimation(V,N)});
J_(this.api,"renderChapterSeekingAnimation",function(V,N,H){C.api.renderChapterSeekingAnimation(V,N,H)});
J_(this.api,"setMacroMarkers",function(V){C.setMacroMarkers(p,V)});
J_(this.api,"changeMarkerVisibility",function(V,N,H){C.changeMarkerVisibility(V,N,H)});
J_(this.api,"isSameMarkerTypeVisible",function(V){return C.isSameMarkerTypeVisible(V)})};
xde=function(p,C,V){var N=p.api.getCurrentTime()*1E30&&H>0&&(V.width+=H,g.K2(C.element,"width",V.width+"px")));p.size=V}};
g.WO=function(p,C){var V=p.T[p.T.length-1];V!==C&&(p.T.push(C),svH(p,V,C))};
g.QX=function(p){if(!(p.T.length<=1)){var C=p.T.pop(),V=p.T[0];p.T=[V];svH(p,C,V,!0)}};
svH=function(p,C,V,N){aiX(p);C&&(C.unsubscribe("size-change",p.Am,p),C.unsubscribe("back",p.Ou,p));V.subscribe("size-change",p.Am,p);V.subscribe("back",p.Ou,p);if(p.C4){g.Ed(V.element,N?"ytp-panel-animate-back":"ytp-panel-animate-forward");V.u_(p.element);V.focus();p.element.scrollLeft=0;p.element.scrollTop=0;var H=p.size;hyQ(p);g.b4(p.element,H);p.W=new g.N8(function(){EaY(p,C,V,N)},20,p);
p.W.start()}else V.u_(p.element),C&&C.detach()};
EaY=function(p,C,V,N){p.W.dispose();p.W=null;g.Ed(p.element,"ytp-popup-animating");N?(g.Ed(C.element,"ytp-panel-animate-forward"),g.tk(V.element,"ytp-panel-animate-back")):(g.Ed(C.element,"ytp-panel-animate-back"),g.tk(V.element,"ytp-panel-animate-forward"));g.b4(p.element,p.size);p.D=new g.N8(function(){g.tk(p.element,"ytp-popup-animating");C.detach();g.cF(C.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);p.D.dispose();p.D=null},250,p);
p.D.start()};
aiX=function(p){p.W&&g.XV(p.W);p.D&&g.XV(p.D)};
rL=function(p){g.gL.call(this,p,"ytp-shopping-product-menu");this.Zd=new g.$m(this.N);g.R(this,this.Zd);this.hide();g.WO(this,this.Zd);g.LT(this.N,this.element,4)};
tDX=function(p,C,V){var N,H=C==null?void 0:(N=C.text)==null?void 0:N.simpleText;H&&(V=liv(p,V,H,C==null?void 0:C.icon,C==null?void 0:C.secondaryIcon),C.navigationEndpoint&&V.listen("click",function(){p.N.Jk("innertubeCommand",C.navigationEndpoint);p.hide()},p))};
cov=function(p,C,V){var N,H=C==null?void 0:(N=C.text)==null?void 0:N.simpleText;H&&liv(p,V,H,C==null?void 0:C.icon).listen("click",function(){var X;(C==null?void 0:(X=C.icon)==null?void 0:X.iconType)==="HIDE"?p.N.publish("featuredproductdismissed"):C.serviceEndpoint&&p.N.Jk("innertubeCommand",C.serviceEndpoint);p.hide()},p)};
liv=function(p,C,V,N,H){C=new g.Nl(g.H3({},[],!1,!!H),C,V);H&&C.updateValue("secondaryIcon",TRY(H));C.setIcon(TRY(N));g.R(p,C);p.Zd.zB(C,!0);return C};
TRY=function(p){if(!p)return null;switch(p.iconType){case "ACCOUNT_CIRCLE":return{L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{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{L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{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 uW1();case "HIDE":return{L:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"g",j:[{L:"path",X:{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 AO()}};
BO=function(p){PO.call(this,p,!1,!0);this.isCounterfactual=this.C=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.L({L:"button",i_:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.R(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.L({L:"img",B:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}});
this.thumbnailImage.hide();g.R(this,this.thumbnailImage);this.thumbnailIcon=new g.L({L:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.R(this,this.thumbnailIcon);this.banner=new g.L({L:"a",B:"ytp-suggested-action-container",j:[this.thumbnailImage,this.thumbnailIcon,{L:"div",B:"ytp-suggested-action-details",j:[{L:"text",B:"ytp-suggested-action-title",Ak:"{{title}}"},{L:"text",B:"ytp-suggested-action-subtitle",Ak:"{{subtitle}}"},{L:"text",B:"ytp-suggested-action-metadata-text",
Ak:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.R(this,this.banner);this.banner.u_(this.V.element);this.U(this.N,"videodatachange",this.onVideoDataChange);this.U(this.N,g.Ez("suggested_action_view_model"),this.wrx);this.U(this.N,g.lG("suggested_action_view_model"),this.doa);this.U(this.overflowButton.element,"click",this.Lb);this.U(p,"featuredproductdismissed",this.Fj);this.N.createServerVe(this.banner.element,this.banner,!0)};
MDL=function(p){p.isInitialized&&(p.enabled=p.isVisible,p.b_=p.isVisible,et(p),p.hd(),p.thumbnailImage.jb(p.isVisible),p.shouldHideDismissButton||p.dismissButton.jb(p.isVisible),p.shouldShowOverflowButton&&p.overflowButton.jb(p.isVisible))};
GE=function(){BO.apply(this,arguments)};
Joj=function(p){iT.call(this,p);this.T=new GE(this.api);g.R(this,this.T);g.LT(this.api,this.T.element,4)};
pn=function(p){iT.call(this,p);var C=this;this.C="";this.V=!0;this.T=this.api.G("html5_enable_audio_track_stickiness_phase_two");var V=new g.Rr(p);g.R(this,V);V.U(p,"internalaudioformatchange",function(N,H){mbX(C,N,H)});
V.U(p,"videoplayerreset",function(){var N;(C.C||C.T&&((N=PY())==null?0:N.size))&&vaH(C)});
V.U(p,"videodatachange",function(N,H){C.onVideoDataChange(N,H)})};
mbX=function(p,C,V){if(V){var N="";FRs(p,C)&&(N=C,p.T||(p.C=C),p.api.G("html5_sabr_enable_server_xtag_selection")&&(V=p.api.L1()))&&(V.getVideoData().JF=C);p.T&&N&&SaX(p,N)&&KRu(p)!==N&&(DbL([{settingItemId:Cn(p),settingOptionValue:{stringValue:C}}]),Tv(p.xN(),function(H){hI9(H,Cn(p),{stringValue:N})}))}};
vaH=function(p){if(p.T){var C;(C=KRu(p))&&SaX(p,C)&&(p=p.api.L1())&&(p.getVideoData().JF=C)}else if(C=p.api.L1())C.getVideoData().JF=p.C};
upH=function(p){MO(Tv(Tv(p.xN(),function(C){return dMY(C,[Cn(p)])}),function(C){if(C){C=g.F(C);
for(var V=C.next();!V.done;V=C.next()){var N=V.value;V=N.key;N=N.value;V&&N&&DbL([{settingItemId:V,settingOptionValue:N}])}}}),function(){p.V=!0})};
FRs=function(p,C){p=p.api.getAvailableAudioTracks();p=g.F(p);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.getLanguageInfo().getId()===C)return V;return null};
KRu=function(p){p=Cn(p);var C=PY();p=C?C.get(p):void 0;return p&&p.stringValue?p.stringValue:""};
Cn=function(p){var C=(484).toString();p.api.K().K$&&(C=(483).toString());return C};
SaX=function(p,C){var V;return C.split(".")[0]!==""&&!((V=p.api.getVideoData())==null?0:ceV(V))};
DbL=function(p){var C=PY();C||(C=new Map);p=g.F(p);for(var V=p.next();!V.done;V=p.next())V=V.value,C.set(V.settingItemId,V.settingOptionValue);C=JSON.stringify(Object.fromEntries(C));g.Yl("yt-player-user-settings",C,2592E3)};
g.jv=function(p,C,V,N,H,X,d){g.Nl.call(this,g.H3({"aria-haspopup":"true"}),C,p);this.xM=N;this.J=!1;this.V=null;this.options={};this.C=new g.$m(V,void 0,p,H,X,d);g.R(this,this.C);this.listen("keydown",this.Nx);this.listen("click",this.open)};
Zve=function(p){if(p.V){var C=p.options[p.V];C.element.getAttribute("aria-checked");C.element.setAttribute("aria-checked","false");p.V=null}};
Uby=function(p,C){g.jv.call(this,"Timer de suspens\u00e3o",g.FB.SLEEP_TIMER,p,C);this.N=p;this.Z={};this.W=this.J7("Off");this.D=this.T="";p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{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.S=new g.L({L:"div",i_:["ytp-menuitem-label-wrapper"],j:[{L:"div",Ak:"Fim do v\u00eddeo"},{L:"div",i_:["ytp-menuitem-sublabel"],Ak:"{{content}}"}]});g.R(this,this.S);this.listen("click",this.onClick);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"presentingplayerstatechange",this.Pr);this.U(p,"settingsMenuVisibilityChanged",this.SZY);p.createClientVe(this.element,this,218889);this.Pr();this.N.Jk("onSleepTimerFeatureAvailable")};
fi9=function(p){var C="Off 10 15 20 30 45 60".split(" "),V;((V=p.N.getVideoData())==null?0:V.isLivePlayback)||C.push("End of video");V=p.N.getPlaylist();var N;V&&((N=V.listId)==null?void 0:N.type)!=="RD"&&C.push("End of playlist");p.dh(g.AU(C,p.J7));p.Z=g.tB(C,p.J7,p);C=p.J7("End of video");p.options[C]&&g.V7(p.options[C],p.S)};
OvL=function(p,C){var V=p.Z[C],N=V==="End of video"||V==="End of playlist";V==="Off"&&(p.T="");p.N.getPlayerState()!==0&&p.N.getPlayerState()!==5||!N?(p.W=C,g.jv.prototype.jq.call(p,C),p.kN(C),p.N.Jk("onSleepTimerSettingsChanged",V)):p.N.Jk("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})};
V$=function(p){iT.call(this,p);var C=this;p.addEventListener("settingsMenuInitialized",function(){C.menuItem||(C.menuItem=new Uby(C.api,C.api.TA()),g.R(C,C.menuItem))});
p.addEventListener("openSettingsMenuItem",function(V){if(V==="menu_item_sleep_timer"){if(!C.menuItem){var N;(N=C.api.TA())==null||N.er()}C.menuItem.open()}});
J_(p,"resetSleepTimerMenuSettings",function(){C.resetSleepTimerMenuSettings()});
J_(p,"setSleepTimerTimeLeft",function(V){C.setSleepTimerTimeLeft(V)});
J_(p,"setVideoTimeLeft",function(V){C.setVideoTimeLeft(V)})};
yoY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"onSnackbarMessage",function(V){switch(V){case 1:V=C.api.getPlayerStateObject(),V.isBuffering()&&g.r(V,8)&&g.r(V,16)&&C.api.Jk("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Enfrentando interrup\u00e7\u00f5es?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Descubra por qu\u00ea"}]},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.Hx=function(p,C,V,N,H){C=C===void 0?!1:C;N=N===void 0?!1:N;H=H===void 0?!1:H;g.ca.call(this);this.Z=H;this.D=!1;this.S=new I_(this);this.W=this.Y=null;this.V=this.C=!1;g.R(this,this.S);this.target=p;this.T=C;this.J=V||p;this.D=N;C&&(g.Nq&&this.target.setAttribute("draggable","true"),H||(this.target.style.touchAction="none"));NA(this)};
Xk=function(p){g.Am(p.S,!p.T)};
NA=function(p){p.W=null;p.Y=null;p.U(dM("over"),p.qQ);p.U("touchstart",p.QM);p.T&&p.U(dM("down"),p.TV$)};
qaa=function(p,C){for(var V=0;VX.start&&N>=5;D+=q}S=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)+" "+(D.substr(12,4)+" "+D.substr(16,4))}else S="";E={video_id_and_cpn:String(V.videoId)+" / "+S,codecs:"",dims_and_frames:"",bandwidth_kbps:E.toFixed(0)+" Kbps",buffer_health_seconds:t.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:T?"":"display:none",drm:T,debug_info:N,extra_debug_info:"",bandwidth_style:J,network_activity_style:J,network_activity_bytes:l.toFixed(0)+" KB",shader_info:M,shader_info_style:M?"":"display:none",
playback_categories:""};l=H.clientWidth+"x"+H.clientHeight+(X>1?"*"+X.toFixed(2):"");t="-";d.totalVideoFrames&&(t=(d.droppedVideoFrames||0)+" dropped of "+d.totalVideoFrames);E.dims_and_frames=l+" / "+t;p=p.getVolume();d=tov(V);var z;l=((z=V.S)==null?0:z.audio.T)?"DRC":Math.round(p*d)+"%";z=Math.round(p)+"% / "+l;p=V.Gp.toFixed(1);isFinite(Number(p))&&(z+=" (content loudness "+p+"dB)");E.volume=z;E.resolution=H.videoWidth+"x"+H.videoHeight;if(H=V.C){if(z=H.video)p=z.fps,p>1&&(E.resolution+="@"+p),
(p=g.Z_(C))&&p.video&&(E.resolution+=" / "+p.video.width+"x"+p.video.height,p.video.fps>1&&(E.resolution+="@"+p.video.fps)),E.codecs=k8s(H),!V.S||H.audio&&H.video?H.UL&&(E.codecs+=" / "+H.UL+"A"):E.codecs+=" / "+k8s(V.S),z.C||z.primaries?(p=z.C||"unknown",p==="smpte2084"?p+=" (PQ)":p==="arib-std-b67"&&(p+=" (HLG)"),E.color=p+" / "+(z.primaries||"unknown"),E.color_style=""):E.color_style="display:none";if(H.debugInfo)for(E.fmt_debug_info="",H=g.F(H.debugInfo),z=H.next();!z.done;z=H.next())z=z.value,
E.fmt_debug_info+=z.label+":"+z.text+" ";E.fmt_debug_info_style=E.fmt_debug_info&&E.fmt_debug_info.length>0?"":"display:none"}H=V.isLivePlayback;z=V.EO;E.live_mode_style=H||z?"":"display:none";E.live_latency_style=H?"":"display:none";if(z)E.live_mode="Post-Live"+(Ge(V)?" Manifestless":"");else if(H){z=lY(a,"livelatency");E.live_latency_secs=z.toFixed(2)+"s";H=Ge(V)?"Manifestless, ":"";V.Wr&&(H+="Windowed, ");p="Uncertain";if(z>=0&&z<120)if(V.latencyClass&&V.latencyClass!=="UNKNOWN")switch(V.latencyClass){case "NORMAL":p=
"Optimized for Normal Latency";break;case "LOW":p="Optimized for Low Latency";break;case "ULTRALOW":p="Optimized for Ultra Low Latency";break;default:p="Unknown Latency Setting"}else p=V.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";H+=p;(z=C.getPlaylistSequenceForTime(C.getCurrentTime()))&&(H+=", seq "+z.sequence);E.live_mode=H}!C.isGapless()||id(V)&&C.SS()||(E.playback_categories+="Gapless ");E.playback_categories_style=E.playback_categories?"":"display:none";
E.bandwidth_samples=ED(a,"bandwidth");E.network_activity_samples=ED(a,"networkactivity");E.live_latency_samples=ED(a,"livelatency");E.buffer_health_samples=ED(a,"bufferhealth");C=g.s5(V);if(V.cotn||C)E.cotn_and_local_media=(V.cotn?V.cotn:"null")+" / "+C;E.cotn_and_local_media_style=E.cotn_and_local_media?"":"display:none";W7(V,"web_player_release_debug")?(E.release_name="youtube.player.web_20241215_00_RC00",E.release_style=""):E.release_style="display:none";E.debug_info&&c.length>0&&E.debug_info.length+
c.length<=60?E.debug_info+=" "+c:E.extra_debug_info=c;E.extra_debug_info_style=E.extra_debug_info&&E.extra_debug_info.length>0?"":"display:none";return E};
k8s=function(p){var C=/codecs="([^"]*)"/.exec(p.mimeType);return C&&C[1]?C[1]+" ("+p.itag+")":p.itag};
tr=function(p,C,V,N,H){g.L.call(this,{L:"div",B:"ytp-horizonchart"});this.D=C;this.sampleCount=V;this.S=N;this.W=H;this.index=0;this.heightPx=-1;this.V=this.C=null;this.T=Math.round(p/V);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.D+"em"};
cx=function(p,C){if(p.heightPx===-1){var V=null;try{V=g.iK("CANVAS"),p.C=V.getContext("2d")}catch(a){}if(p.C){var N=p.T*p.sampleCount;p.V=V;p.V.width=N;p.V.style.width=N+"px";p.element.appendChild(p.V)}else for(p.sampleCount=Math.floor(p.sampleCount/4),p.T*=4,V=0;V1?2:1,p.V.height=p.heightPx*V,p.V.style.height=
p.heightPx+"px",p.C.scale(1,V)));C=g.F(C);for(N=C.next();!N.done;N=C.next()){V=p;var H=p.index,X=N.value;for(N=0;N+20&&g.aN(C.V.element);N.classList.add("ytp-timely-actions-overlay");C.V.element.appendChild(N)});
g.R(this,this.V);g.LT(this.api,this.V.element,4)};
BRs=function(p){p.timelyActions&&(p.S=p.timelyActions.reduce(function(C,V){if(V.cueRangeId===void 0)return C;C[V.cueRangeId]=0;return C},{}))};
mY=function(p,C){if(p.timelyActions){p=g.F(p.timelyActions);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.cueRangeId===C)return V}};
G8e=function(p,C){if((p=mY(p,C))&&p.onCueRangeExit)return Lm(p.onCueRangeExit)};
pNY=function(p){if(p.T!==void 0){var C=(C=mY(p,p.T))&&C.onCueRangeEnter?Lm(C.onCueRangeEnter):void 0;var V=mY(p,p.T);if(V&&V.additionalTrigger){var N=!1;for(var H=g.F(V.additionalTrigger),X=H.next();!X.done;X=H.next())X=X.value,X.type&&X.args&&p.Y[X.type]!==void 0&&(N=N||p.Y[X.type](X.args))}else N=!0;C&&N&&(p.api.Jk("innertubeCommand",C),p.setTimeout(V),p.S[p.T]!==void 0&&p.S[p.T]++)}};
WR9=function(p,C){return p.C===void 0?!1:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(C.seekLengthMilliseconds)===5E3?p.C===72:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(C.seekLengthMilliseconds)===1E4?p.C===74:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(C.seekLengthMilliseconds)===5E3?p.C===71:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(C.seekLengthMilliseconds)===1E4?p.C===73:!1};
QvQ=function(p){if(p=p.getWatchNextResponse()){var C,V;p=(C=p.playerOverlays)==null?void 0:(V=C.playerOverlayRenderer)==null?void 0:V.timelyActionsOverlayViewModel;C=g.n(p,CjH);if(C!=null&&C.timelyActions)return C==null?void 0:C.timelyActions.map(function(N){return g.n(N,jCe)}).filter(function(N){return!!N})}};
VM9=function(p){iT.call(this,p);var C=this;mj(this.api,"getPlaybackRate",function(){return C.api.getPlaybackRate()});
mj(this.api,"setPlaybackRate",function(V){typeof V==="number"&&C.api.setPlaybackRate(V)})};
NJQ=function(p){p=p.i9();if(!p)return!1;p=g.sk(p).exp||"";return p.includes("xpv")||p.includes("xpe")};
H7L=function(p){p=g.F(g.vx(p,!0));for(var C=p.next();!C.done;C=p.next())if(NJQ(C.value))return!0;return!1};
XNQ=function(p,C){p=g.F(g.vx(p,!0));for(var V=p.next();!V.done;V=p.next())if(V=V.value,NJQ(V)){var N={potc:"1",pot:C};V.url&&(V.url=aK(V.url,N))}};
dSY=function(p){var C=!1;p.Iw(150);p.gq().finally(function(){C=!0});
return{isReady:function(){return C},
BS:function(V){return p.BS({P$:V.P$,F9:!0,qJ:!0,Yq:V.Yq?{pA:V.Yq.pA,q2:V.Yq.q2,Xz:V.Yq.Xz}:void 0})},
ready:function(){return g.I(function(V){if(V.C==1)return g.vv(V,2),g.y(V,p.gq(),4);if(V.C!=2)return g.Fe(V,0);g.Sa(V);g.JQ(V)})},
start:function(){}}};
i7u=function(p){var C=new sNv,V={},N=(V["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",V);return new A$(C,p,function(){return N})};
Sv=function(p){iT.call(this,p);var C=this;this.useLivingRoomPoToken=!1;this.S=new g.Zt;this.mM=null;this.Y=!1;this.C=null;this.V=!1;var V=p.K().getWebPlayerContextConfig();this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"spsumpreject",function(N,H,X){C.V=H;N&&C.Y&&!C.C&&(C.G("html5_generate_content_po_token")&&X?C.Cn(X):C.G("html5_generate_session_po_token")&&h19(C));C.C||C.api.k_("stp",{s:+C.Y,b:+C.V})});
this.events.U(p,"poTokenVideoBindingChange",function(N){C.Cn(N)});
this.useLivingRoomPoToken=!(V==null||!V.useLivingRoomPoToken);p.addEventListener("csiinitialized",function(){C.mM=p.W6();var N=(C.G("html5_generate_session_po_token")||C.G("html5_generate_content_po_token"))&&!C.useLivingRoomPoToken;try{if(C.G("html5_use_shared_owl_instance"))sCe(C);else if(N){C.mM.Cd("pot_isc");C.G("html5_new_wpo_client")||aNv(C);var H=g.mi(C.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");H?g.F5(function(){Fk(C)},H):C.G("html5_webpo_idle_priority_job")?g.Vl(g.HW(),function(){Fk(C)}):
Fk(C)}}catch(X){X instanceof Error&&g.eG(X)}});
p.addEventListener("trackListLoaded",this.m$.bind(this));p.vN(this)};
EfS=function(p){var C=Wb(p.experiments,"html5_web_po_request_key");return C?C:g.bH(p)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
lN9=function(p){var C=new Xf(p);return Object.assign({},dSY(C),{fS:function(){return C.fS()},
dispose:function(){return void C.dispose()}})};
Kn=function(p,C){if(p.G("html5_webpo_bge_ctmp")){var V,N={hwpo:!!p.T,hwpor:!((V=p.T)==null||!V.isReady())};p.api.k_(C,N)}};
sCe=function(p){var C,V;g.I(function(N){if(N.C==1)return Kn(p,"swpo_i"),p.D=D$1(),DT(p),g.y(N,zo(),2);if(N.C!=3)return C=N.T,Kn(p,"swpo_co"),g.y(N,Xss(C),3);V=N.T;p.T=dSY(V);Kn(p,"swpo_cc");p.T.ready().then(function(){p.S.resolve();Kn(p,"swpo_re")});
g.F5(function(){Fk(p);Kn(p,"swpo_si")},0);
g.JQ(N)})};
aNv=function(p){var C=p.api.K(),V=EfS(C),N=i7u(V);C=new XL({I1:V,qB:N,onEvent:function(H){(H=tMe[H])&&p.mM.Cd(H)},
onError:g.eG,Fn:vry(C.experiments),Ro:function(){return void p.api.k_("itr",{})},
P9a:C.experiments.OY("html5_web_po_disable_remote_logging")});C.ready().then(function(){return void p.S.resolve()});
g.R(p,C);p.T=C};
cXu=function(p){var C=p.api.K(),V=i7u(EfS(C)),N=V.dK.bind(V);V.dK=function(a){var E;return g.I(function(l){if(l.C==1)return g.y(l,N(a),2);E=l.T;p.api.k_("itr",{});return l.return(E)})};
try{var H=new zq({qB:V,qm:{maxAttempts:5},OW:{disable:C.experiments.OY("html5_web_po_disable_remote_logging"),r0:vry(C.experiments),Ma:p.G("wpo_dis_lfdms")?0:1E3},o_$:g.eG});var X=lN9({w7:H,qB:V,onError:g.eG});X.ready().then(function(){return void p.S.resolve()});
g.R(p,H);g.R(p,X);p.T=X}catch(a){g.eG(a);var d;(d=H)==null||d.dispose()}};
Fk=function(p){var C=p.api.K();p.mM.Cd("pot_ist");p.T?p.T.start():p.G("html5_new_wpo_client")&&cXu(p);p.G("html5_bandaid_attach_content_po_token")||(DT(p),h19(p),C=g.mi(C.experiments,"html5_session_po_token_interval_time_ms")||0,C>0&&(p.W=g.Se(function(){DT(p)},C)),p.Y=!0)};
DT=function(p){var C,V,N,H;g.I(function(X){if(!p.G("html5_generate_session_po_token")||p.useLivingRoomPoToken)return X.return();C=p.api.K();V=g.pO("EOM_VISITOR_DATA")||g.pO("VISITOR_DATA");N=C.K$?C.datasyncId:V;H=Wb(C.experiments,"html5_mock_content_binding_for_session_token")||C.livingRoomPoTokenId||N;C.XT=ui(p,H);g.JQ(X)})};
ui=function(p,C){if(!p.T)return p.D?p.D(C):"";try{var V=p.T.isReady();p.mM.Cd(V?"pot_cms":"pot_csms");var N="";N=p.G("html5_web_po_token_disable_caching")?p.T.BS({P$:C}):p.T.BS({P$:C,Yq:{pA:C,le:150,q2:!0,Xz:!0}});p.mM.Cd(V?"pot_cmf":"pot_csmf");if(V){var H;(H=p.C)==null||H.resolve();p.C=null;if(p.V){p.V=!1;var X,d=(X=g.O5(p.api.app))==null?void 0:X.nS;d&&Y4u(d,!1)}}return N}catch(a){return g.eG(a),""}};
h19=function(p){p.T&&(p.C=new hK,p.T.ready().then(function(){p.mM.Cd("pot_if");DT(p)}))};
TJV=function(p){iT.call(this,p);var C=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"heartbeatRequest",function(V){if(C.freePreviewUsageDetails.length||C.freePreviewWatchedDuration!==null)V.heartbeatRequestParams||(V.heartbeatRequestParams={}),V.heartbeatRequestParams.unpluggedParams||(V.heartbeatRequestParams.unpluggedParams={}),C.freePreviewUsageDetails.length>0?V.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
C.freePreviewUsageDetails:V.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+C.freePreviewWatchedDuration}});
J_(p,"setFreePreviewWatchedDuration",function(V){C.freePreviewWatchedDuration=V});
J_(p,"setFreePreviewUsageDetails",function(V){C.freePreviewUsageDetails=V})};
ZT=function(p){g.Y.call(this);this.features=[];var C=this.T,V=new bpX(p),N=new hh(p),H=new km(p),X=new Sv(p);var d=g.qz(p.K())?void 0:new OO(p);var a=new oi(p),E=new RyQ(p),l=new VM9(p),t=new o8(p);var c=g.qz(p.K())?new TJV(p):void 0;var T=p.G("html5_enable_ssap")?new oaY(p):void 0;var M=p.G("web_cinematic_watch_settings")&&(M=p.K().getWebPlayerContextConfig())!=null&&M.cinematicSettingsAvailable?new DM(p):void 0;var J=new Ah(p);var S=p.G("enable_courses_player_overlay_purchase")?new ZpY(p):void 0;
var D=g.wG(p.K())?new S9V(p):void 0;var Z=new y7(p);var f=p.K().S?new cWL(p):void 0;var q=g.KI(p.K())?new t5s(p):void 0;var A=p.G("web_player_move_autonav_toggle")&&p.K().kt?new dtj(p):void 0;var z=g.wG(p.K())?new kIY(p):void 0;var Q=p.G("web_enable_speedmaster")&&g.wG(p.K())?new sC(p):void 0;var P=p.K().tB?void 0:new gaH(p);var VL=p.G("report_pml_debug_signal")?new V5e(p):void 0;var au=new Qes(p),W=new Ri(p);var e=p.G("enable_web_player_player_in_bar_feature")&&g.gk(p.K())?new X$H(p):void 0;var B=
p.K().playerStyle==="flix"?new f0X(p):void 0;var v=navigator.mediaSession&&window.MediaMetadata&&p.K().Y9?new bY(p):void 0;var w=p.G("html5_enable_drc")&&!p.K().Y?new fc(p):void 0;var C0=new a8(p),FG;a:{var Nc=p.K();if(Nc.Y&&(Nc=(FG=Nc.getWebPlayerContextConfig())==null?void 0:FG.houseBrandEnvironment,Nc==="apps-elements"||Nc==="apps-elements-flix")){FG=new UtX(p);break a}FG=void 0}Nc=g.wG(p.K())?new Joj(p):void 0;var OS=p.G("html5_enable_d6de4")?new xm(p):void 0;var V8=g.wG(p.K())&&p.G("web_sleep_timer")?
new V$(p):void 0;var Tp=g.KI(p.K())?new M5s(p):void 0;var Bv=new pn(p),u=new uT(p),U=new oXe(p);var O=p.K().Y?new I0a(p):void 0;var b=p.G("enable_sabr_snackbar_message")?new yoY(p):void 0;var x=p.G("web_enable_timely_actions")?new ro1(p):void 0;C.call(this,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W,e,B,v,w,C0,FG,Nc,OS,V8,Tp,void 0,Bv,u,U,O,b,x,new ZM(p))};
UC=function(){this.C=this.T=NaN};
MM1=function(p,C){this.yn=p;this.timerName="";this.V=!1;this.C=NaN;this.S=new UC;this.T=C||null;this.V=!1};
JXy=function(p,C,V){var N=g.Oe(C.I$)&&!C.I$.Y;if(C.I$.Of&&(uL(C.I$)||C.I$.Wr==="shortspage"||rG(C.I$)||N)&&!p.V){p.V=!0;p.Y=C.clientPlaybackNonce;g.pO("TIMING_ACTION")||GH("TIMING_ACTION",p.yn.csiPageType);p.yn.csiServiceName&&GH("CSI_SERVICE_NAME",p.yn.csiServiceName);if(p.T){N=p.T.W6();for(var H=g.F(Object.keys(N)),X=H.next();!X.done;X=H.next())X=X.value,NR(X,N[X],p.timerName);N=g.NU(ntH)(p.T.WJ);g.HH(N,p.timerName);N=p.T;N.C={};N.WJ={}}g.HH({playerInfo:{visibilityState:g.NU(RVy)()},playerType:"LATENCY_PLAYER_HTML5"},
p.timerName);p.W!==C.clientPlaybackNonce||Number.isNaN(p.C)||(dc("_start",p.timerName)?V=g.NU(G0)("_start",p.timerName)+p.C:g.eG(new g.Bw("attempted to log gapless pbs before CSI timeline started",{cpn:C.clientPlaybackNonce})));V&&!dc("pbs",p.timerName)&&p.tick("pbs",V)}};
OZL=function(p,C,V,N,H,X,d){p=(p===V?"video":"ad")+"_to_"+(C===V?"video":"ad");if(p!=="video_to_ad"||X!=null&&X.sY){X=p==="ad_to_video"?X:N;V=X==null?void 0:X.LC;var a={};if(N==null?0:N.Y)a.cttAuthInfo={token:N.Y,videoId:N.videoId};H&&(a.startTime=H);XA(p,a);var E,l,t;N={targetVideoId:(E=N==null?void 0:N.videoId)!=null?E:"empty_video",targetCpn:C,adVideoId:(l=X==null?void 0:X.videoId)!=null?l:"empty_video",adClientPlaybackNonce:(t=V==null?void 0:V.cpn)!=null?t:X==null?void 0:X.clientPlaybackNonce};
V&&(N.adBreakType=V.adBreakType,N.adType=V.adType);g.HH(N,p);NR("pbs",d!=null?d:(0,g.Ip)(),p)}};
fn=function(p){Bq1();r11();p.timerName=""};
mSs=function(p){if(p.T){var C=p.T;C.C={};C.WJ={}}p.V=!1;p.W=void 0;p.C=NaN};
vfY=function(p,C){g.ca.call(this);this.I$=p;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.C=0;if(p=C.session_data)this.sessionData=X5(p,"&");this.index=Math.max(0,Number(C.index)||0);this.loop=!!C.loop;this.startSeconds=Number(C.startSeconds)||0;this.title=C.playlist_title||"";this.description=C.playlist_description||"";this.author=
C.author||C.playlist_author||"";C.video_id&&(this.items[this.index]=C);if(p=C.api)typeof p==="string"&&p.length===16?C.list="PL"+p:C.playlist=p;if(p=C.list)switch(C.listType){case "user_uploads":this.listId=new Te("UU","PLAYER_"+p);break;default:var V=C.playlist_length;V&&(this.length=Number(V)||0);this.listId=g.MF(p);if(p=C.video)this.items=p.slice(0),this.loaded=!0}else if(C.playlist){p=C.playlist.toString().split(",");this.index>0&&(this.items=[]);p=g.F(p);for(V=p.next();!V.done;V=p.next())(V=
V.value)&&this.items.push({video_id:V});this.length=this.items.length;if(p=C.video)this.items=p.slice(0),this.loaded=!0}this.setShuffle(!!C.shuffle);if(p=C.suggestedQuality)this.quality=p;this.Z=Ej(C,"playlist_");this.V=(C=C.thumbnail_ids)?C.split(","):[]};
FPv=function(p){return!!(p.playlist||p.list||p.api)};
StX=function(p){var C=p.index+1;return C>=p.length?0:C};
KPS=function(p){var C=p.index-1;return C<0?p.length-1:C};
g.OC=function(p,C,V,N){C=C!==void 0?C:p.index;C=p.items&&C in p.items?p.items[p.order[C]]:null;var H=null;C&&(V&&(C.autoplay="1"),N&&(C.autonav="1"),H=new g.YB(p.I$,C),g.R(p,H),H.Kp=!0,H.startSeconds=p.startSeconds||H.clipStart||0,p.listId&&(H.playlistId=p.listId.toString()));return H};
DSs=function(p,C){p.index=g.J9(C,0,p.length-1);p.startSeconds=0};
uR1=function(p,C){if(C.video&&C.video.length){p.title=C.title||"";p.description=C.description;p.views=C.views;p.likes=C.likes;p.dislikes=C.dislikes;p.author=C.author||"";var V=C.loop;V&&(p.loop=V);V=g.OC(p);p.items=[];for(var N=g.F(C.video),H=N.next();!H.done;H=N.next())if(H=H.value)H.video_id=H.encrypted_id,p.items.push(H);p.length=p.items.length;(C=C.index)?p.index=C:p.findIndex(V);p.setShuffle(!1);p.loaded=!0;p.C++;p.T&&p.T()}};
fNH=function(p,C){var V,N,H,X,d,a,E;return g.I(function(l){if(l.C==1){V=g.KU();var t=p.K(),c={context:g.TC(p),playbackContext:{contentPlaybackContext:{ancestorOrigins:t.ancestorOrigins}}},T=t.getWebPlayerContextConfig();if(T==null?0:T.encryptedHostFlags)c.playbackContext.contentPlaybackContext.encryptedHostFlags=T.encryptedHostFlags;if(T==null?0:T.hideInfo)c.playerParams={showinfo:!1};t=t.embedConfig;T=C.docid||C.video_id||C.videoId||C.id;if(!T){T=C.raw_embedded_player_response;if(!T){var M=C.embedded_player_response;
M&&(T=JSON.parse(M))}if(T){var J,S,D,Z,f,q;T=((q=g.n((J=T)==null?void 0:(S=J.embedPreview)==null?void 0:(D=S.thumbnailPreviewRenderer)==null?void 0:(Z=D.playButton)==null?void 0:(f=Z.buttonRenderer)==null?void 0:f.navigationEndpoint,g.VB))==null?void 0:q.videoId)||null}else T=null}J=(J=T)?J:void 0;S=p.playlistId?p.playlistId:C.list;D=C.listType;if(S){var A;D==="user_uploads"?A={username:S}:A={playlistId:S};Z7a(t,J,C,A);c.playlistRequest=A}else C.playlist?(A={templistVideoIds:C.playlist.toString().split(",")},
Z7a(t,J,C,A),c.playlistRequest=A):J&&(A={videoId:J},t&&(A.serializedThirdPartyEmbedConfig=t),c.singleVideoRequest=A);N=c;H=g.On(USe);g.vv(l,2);return g.y(l,g.E0(V,N,H),4)}if(l.C!=2)return X=l.T,d=p.K(),C.raw_embedded_player_response=X,d.Sa=tm(C,g.KI(d)),d.V=d.Sa==="EMBEDDED_PLAYER_MODE_PFL",X&&(a=X,a.trackingParams&&Oi(a.trackingParams)),l.return(new g.YB(d,C));E=g.Sa(l);E instanceof Error||(E=Error("b259802748"));g.nm(E);return l.return(p)})};
Z7a=function(p,C,V,N){V.index&&(N.playlistIndex=String(Number(V.index)+1));N.videoId=C?C:"";p&&(N.serializedThirdPartyEmbedConfig=p)};
g.qA=function(p,C){y$.get(p);y$.set(p,C)};
g.IT=function(p){g.ca.call(this);this.loaded=!1;this.player=p};
O7j=function(){this.C=[];this.T=[]};
g.vx=function(p,C){return C?p.T.concat(p.C):p.T};
g.bi=function(p,C){switch(C.kind){case "asr":yXX(C,p.C);break;default:yXX(C,p.T)}};
yXX=function(p,C){g.L0(C,function(V){return p.sE(V)})||C.push(p)};
g.Ar=function(p){g.Y.call(this);this.ea=p;this.T=new O7j;this.S=null;this.W=[];this.J=[]};
g.oT=function(p,C,V){g.Ar.call(this,p);this.videoData=C;this.audioTrack=V;this.C=null;this.V=!1;this.W=C.AI;this.J=C.z2;this.V=g.jQ(C)};
g.kW=function(p,C){return Xz(p.info.mimeType)?C?p.info.itag===C:!0:!1};
g.qtV=function(p,C){if(p.T!=null&&g.qz(C.K())&&!p.T.isManifestless&&p.T.T.rawcc!=null)return!0;if(!p.p4())return!1;C=!!p.T&&p.T.isManifestless&&Object.values(p.T.T).some(function(V){return g.kW(V,"386")});
p=!!p.T&&!p.T.isManifestless&&g.yVY(p.T);return C||p};
g.xW=function(p,C,V,N,H,X){g.Ar.call(this,p);this.videoId=V;this.Ue=H;this.eventId=X;this.Y={};this.C=null;p=N||g.sk(C).hl||"";p=p.split("_").join("-");this.V=aK(C,{hl:p})};
INy=function(p,C){this.C=p;this.T=C;this.onFailure=void 0};
b7s=function(p,C){return{FL:p.FL&&C.FL,TN:p.TN&&C.TN,sync:p.sync&&C.sync,streaming:p.streaming&&C.streaming}};
zb=function(p,C){var V=AX9,N=this;this.path=p;this.V=C;this.S=V;this.capabilities={FL:!!this.V,TN:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.W=new INy([{name:"compileStreaming",condition:function(H){return!!N.C&&H.streaming},
oX:function(){return WebAssembly.compileStreaming(fetch(N.path))},
onFailure:function(){return N.capabilities.streaming=!1}},
{name:"sync",condition:function(H){return H.sync},
oX:function(){return Tv(ofy(N),YW.Sm("wmcs",function(H){return new WebAssembly.Module(H)}))},
onFailure:function(){return N.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
oX:function(){return Tv(ofy(N),YW.Sm("wmca",function(H){return WebAssembly.compile(H)}))},
onFailure:function(){return N.capabilities.TN=!1}}]);
this.Y=new INy([{name:"instantiateStreaming",condition:function(H){return H.TN&&H.streaming&&!N.C&&!N.T},
oX:function(H,X){return YW.zz("wmix",function(){return WebAssembly.instantiateStreaming(fetch(N.path),X)}).then(function(d){N.T=Ei(d.module);
return{instance:d.instance,XA:!1}})},
onFailure:function(){return N.capabilities.streaming=!1}},
{name:"sync",condition:function(H){return H.TN&&H.sync},
oX:function(H,X){return Tv(kRy(N,H),YW.Sm("wmis",function(d){return{instance:new WebAssembly.Instance(d,X),XA:!1}}))},
onFailure:function(){return N.capabilities.sync=!1}},
{name:"async",condition:function(H){return H.TN},
oX:function(H,X){return Tv(Tv(kRy(N,H),YW.Sm("wmia",function(d){return WebAssembly.instantiate(d,X)})),function(d){return{instance:d,
XA:!1}})},
onFailure:function(){return N.capabilities.TN=!1}},
{name:"asmjs",condition:function(H){return H.FL},
oX:function(H,X){return Ei(YW.zz("wmij",function(){return N.V(X)}).then(function(d){return{instance:{exports:d},
XA:!0}}))},
onFailure:function(){return N.capabilities.FL=!1}}],function(H,X,d){return N.S(d,H.instance.exports)})};
z1Y=function(p){var C=xSa;return C.instantiate(p?b7s(C.capabilities,p):C.capabilities,new Yt1)};
ofy=function(p){if(p.C)return p.C;var C=fetch(p.path).then(function(V){return V.arrayBuffer()}).then(function(V){p.C=Ei(V);
return V}).then(void 0,function(V){g.eG(Error("wasm module fetch failure: "+V.message,{cause:V}));
p.C=void 0;throw V;});
p.C=Ei(C);return p.C};
kRy=function(p,C){if(!C.TN)return lt(Error("wasm unavailable"));if(p.T)return p.T;p.T=MO(Tv(p.compile(C),function(V){p.T=Ei(V);return V}),function(V){g.eG(Error("wasm module compile failure: "+V.message,{cause:V}));
p.T=void 0;throw V;});
return p.T};
R1v=function(){};
nf9=function(){var p=this;this.proc_exit=function(){};
this.fd_write=function(C,V,N){if(!p.exports)return 1;C=new Uint32Array(p.exports.memory.buffer,V,N*2);V=[];for(var H=0;H=11;p=p.api.K().J&&Q$;return!(!C&&!p)};
Xo=function(p,C){return!p.api.isInline()&&!u7Y(p,yc(C))&&g.o0(C)};
DE9=function(p){p.YB.Pm();if(p.t3&&p.xe)p.xe=!1;else if(!p.api.K().Ga&&!p.A6()){var C=p.api.getPlayerStateObject();g.r(C,2)&&g.Yj(p.api)||p.R1(C);!p.api.K().Hc||C.isCued()||g.r(C,1024)?p.u6():p.Ys.isActive()?(p.cG(),p.Ys.stop()):p.Ys.start()}};
UES=function(p,C){var V;if((V=p.api.getVideoData())==null?0:V.mutedAutoplay){var N,H;if((N=C.target)==null?0:(H=N.className)==null?0:H.includes("ytp-info-panel"))return!1}return g.o0(C)&&p.api.isMutedByMutedAutoplay()?(p.api.unMute(),p.api.getPresentingPlayerType()===2&&p.api.playVideo(),C=p.api.getPlayerStateObject(),!g.r(C,4)||g.r(C,8)||g.r(C,2)||p.u6(),!0):!1};
fOH=function(p,C,V){p.api.isFullscreen()?V<1-C&&p.api.toggleFullscreen():V>1+C&&p.api.toggleFullscreen()};
KfX=function(p){var C=Wd()&&LO()>=67&&!p.api.K().J;p=p.api.K().disableOrganicUi;return!g.gm("tizen")&&!rB&&!C&&!p};
du=function(p,C){C=C===void 0?2:C;g.ca.call(this);this.api=p;this.T=null;this.qZ=new I_(this);g.R(this,this.qZ);this.C=i3v;this.qZ.U(this.api,"presentingplayerstatechange",this.YS);this.T=this.qZ.U(this.api,"progresssync",this.m6);this.TR=C;this.TR===1&&this.m6()};
g.iW=function(p){g.L.call(this,{L:"div",j:[{L:"div",B:"ytp-bezel-text-wrapper",j:[{L:"div",B:"ytp-bezel-text",Ak:"{{title}}"}]},{L:"div",B:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},j:[{L:"div",B:"ytp-bezel-icon",Ak:"{{icon}}"}]}]});this.N=p;this.C=new g.N8(this.show,10,this);this.T=new g.N8(this.hide,500,this);g.R(this,this.C);g.R(this,this.T);this.hide()};
sR=function(p,C,V){if(C<=0){V=zB();C="som desativado";var N=0}else V=V?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},N=Math.floor(C),C=N+"volume";hD(p,V,C,N+"%")};
OD9=function(p,C){C=C?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:D5a();var V=p.N.getPlaybackRate(),N=g.Ks("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(V)});hD(p,C,N,V+"x")};
yFv=function(p,C){C=C?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";hD(p,sZ9(),C)};
hD=function(p,C,V,N){N=N===void 0?"":N;p.updateValue("label",V===void 0?"":V);p.updateValue("icon",C);g.d0(p.T);p.C.start();p.updateValue("title",N);g.Tz(p.element,"ytp-bezel-text-hide",!N)};
qmL=function(p,C){g.L.call(this,{L:"button",i_:["ytp-button","ytp-cards-button"],X:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"span",B:"ytp-cards-button-icon-default",j:[{L:"div",B:"ytp-cards-button-icon",j:[p.K().G("player_new_info_card_format")?U5v():{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{L:"div",B:"ytp-cards-button-title",Ak:"Informa\u00e7\u00f5es"}]},{L:"span",B:"ytp-cards-button-icon-shopping",j:[{L:"div",B:"ytp-cards-button-icon",j:[{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",B:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{L:"path",B:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{L:"path",B:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{L:"div",
B:"ytp-cards-button-title",Ak:"Compras"}]}]});this.N=p;this.V=C;this.T=null;this.C=new g.a0(this,250,!0,100);g.R(this,this.C);g.Tz(this.V,"ytp-show-cards-title",g.KI(p.K()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.MaY);this.e3(!0)};
IOS=function(p,C){g.L.call(this,{L:"div",B:"ytp-cards-teaser",j:[{L:"div",B:"ytp-cards-teaser-box"},{L:"div",B:"ytp-cards-teaser-text",j:p.K().G("player_new_info_card_format")?[{L:"button",B:"ytp-cards-teaser-info-icon",X:{"aria-label":"Exibir cards","aria-haspopup":"true"},j:[U5v()]},{L:"span",B:"ytp-cards-teaser-label",Ak:"{{text}}"},{L:"button",B:"ytp-cards-teaser-close-button",X:{"aria-label":"Fechar"},j:[g.yD()]}]:[{L:"span",B:"ytp-cards-teaser-label",Ak:"{{text}}"}]}]});var V=this;this.N=p;
this.Mn=C;this.S=new g.a0(this,250,!1,250);this.T=null;this.J=new g.N8(this.Vb$,300,this);this.D=new g.N8(this.rQa,2E3,this);this.W=[];this.C=null;this.Z=new g.N8(function(){V.element.style.margin="0"},250);
this.onClickCommand=this.V=null;g.R(this,this.S);g.R(this,this.J);g.R(this,this.D);g.R(this,this.Z);p.K().G("player_new_info_card_format")?(g.Ed(p.getRootNode(),"ytp-cards-teaser-dismissible"),this.U(this.rV("ytp-cards-teaser-close-button"),"click",this.Dt),this.U(this.rV("ytp-cards-teaser-info-icon"),"click",this.q_),this.U(this.rV("ytp-cards-teaser-label"),"click",this.q_)):this.listen("click",this.q_);this.U(C.element,"mouseover",this.Mv);this.U(C.element,"mouseout",this.cH);this.U(p,"cardsteasershow",
this.GBa);this.U(p,"cardsteaserhide",this.f4);this.U(p,"cardstatechange",this.My);this.U(p,"presentingplayerstatechange",this.My);this.U(p,"appresize",this.w$);this.U(p,"onShowControls",this.w$);this.U(p,"onHideControls",this.xI);this.listen("mouseenter",this.BT)};
bDu=function(p){g.L.call(this,{L:"button",i_:[ae.BUTTON,ae.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{L:"div",B:ae.TITLE_NOTIFICATIONS_ON,X:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},j:[g.bq()]},{L:"div",B:ae.TITLE_NOTIFICATIONS_OFF,X:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},
j:[{L:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{L:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=p;this.T=!1;p.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")};
AFv=function(p,C){p.T=C;p.element.classList.toggle(ae.NOTIFICATIONS_ENABLED,p.T);var V=p.api.getVideoData();V?(C=C?V.hY:V.Lj)?(p=p.api.xN())?a4(p,C):g.nm(Error("No innertube service available when updating notification preferences.")):g.nm(Error("No update preferences command available.")):g.nm(Error("No video data when updating notification preferences."))};
kSL=function(p,C,V){var N=N===void 0?800:N;var H=H===void 0?600:H;p=oye(p,C);if(p=g.gV(window,p,"loginPopup","width="+N+",height="+H+",resizable=yes,scrollbars=yes"))DvQ(function(){V()}),p.moveTo((screen.width-N)/2,(screen.height-H)/2)};
oye=function(p,C){var V=document.location.protocol;return OHS(V+"//"+p+"/signin?context=popup","feature",C,"next",V+"//"+location.hostname+"/post_login")};
g.ER=function(p,C,V,N,H,X,d,a,E,l,t,c){p=p.charAt(0)+p.substring(1).toLowerCase();V=V.charAt(0)+V.substring(1).toLowerCase();if(C==="0"||C==="-1")C=null;if(N==="0"||N==="-1")N=null;var T=t.K(),M=T.userDisplayName&&g.Oe(T);g.L.call(this,{L:"div",i_:["ytp-button","ytp-sb"],j:[{L:"div",B:"ytp-sb-subscribe",X:M?{title:g.Ks("Inscrever-se como $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":Bg(T),"data-tooltip-opaque":String(g.KI(T)),tabindex:"0",role:"button"}:
{"aria-label":"Inscrever-se no canal"},j:[{L:"div",B:"ytp-sb-text",j:[{L:"div",B:"ytp-sb-icon"},p]},C?{L:"div",B:"ytp-sb-count",Ak:C}:""]},{L:"div",B:"ytp-sb-unsubscribe",X:M?{title:g.Ks("Inscrito como $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":Bg(T),"data-tooltip-opaque":String(g.KI(T)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},j:[{L:"div",B:"ytp-sb-text",j:[{L:"div",B:"ytp-sb-icon"},
V]},N?{L:"div",B:"ytp-sb-count",Ak:N}:""]}],X:{"aria-live":"polite"}});var J=this;this.channelId=d;this.N=t;this.V=c;var S=this.rV("ytp-sb-subscribe"),D=this.rV("ytp-sb-unsubscribe");X&&g.Ed(this.element,"ytp-sb-classic");if(H){a?this.T():this.C();var Z=function(){if(T.sY){var q=J.channelId;if(E||l){var A={c:q};var z;g.bt.isInitialized()&&(z=mGv(A));A=z||"";if(z=t.getVideoData())if(z=z.subscribeCommand){var Q=t.xN();Q?(a4(Q,z,{botguardResponse:A,feature:E}),t.Jk("SUBSCRIBE",q)):g.nm(Error("No innertube service available when updating subscriptions."))}else g.nm(Error("No subscribe command in videoData."));
else g.nm(Error("No video data available when updating subscription."))}D.focus();D.removeAttribute("aria-hidden");S.setAttribute("aria-hidden","true")}else kSL(g.zM(J.N.K()),"sb_button",J.S)},f=function(){var q=J.channelId;
if(E||l){var A=t.getVideoData();a4(t.xN(),A.unsubscribeCommand,{feature:E});t.Jk("UNSUBSCRIBE",q)}S.focus();S.removeAttribute("aria-hidden");D.setAttribute("aria-hidden","true")};
this.U(S,"click",Z);this.U(D,"click",f);this.U(S,"keypress",function(q){q.keyCode===13&&Z(q)});
this.U(D,"keypress",function(q){q.keyCode===13&&f(q)});
this.U(t,"SUBSCRIBE",this.T);this.U(t,"UNSUBSCRIBE",this.C);this.V&&M&&(Lwv(t),o$(t,S,this),o$(t,D,this))}else g.Ed(S,"ytp-sb-disabled"),g.Ed(D,"ytp-sb-disabled")};
z9e=function(p){g.L.call(this,{L:"div",B:"ytp-title-channel",j:[{L:"div",B:"ytp-title-beacon"},{L:"a",B:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:p.K().Z,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{L:"div",B:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},j:[{L:"div",B:"ytp-title-expanded-heading",j:[{L:"div",B:"ytp-title-expanded-title",j:[{L:"a",Ak:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:p.K().Z,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{L:"div",B:"ytp-title-expanded-subtitle",Ak:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var C=this;this.api=p;this.channel=this.rV("ytp-title-channel");this.C=this.rV("ytp-title-channel-logo");this.channelName=this.rV("ytp-title-expanded-title");this.W=this.rV("ytp-title-expanded-overlay");this.V=this.T=this.subscribeButton=null;this.S=!1;p.createClientVe(this.C,this,36925);p.createClientVe(this.channelName,this,
37220);g.KI(this.api.K())&&xES(this);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.U(this.channelName,"click",function(V){C.api.logClick(C.channelName);g.gV(window,Ymu(C));V.preventDefault()});
this.U(this.C,"click",this.pra);this.Pr()};
R9Y=function(p){if(!p.api.K().qW){var C=p.api.getVideoData(),V=new g.ER("Inscreva-se",null,"Inscrito",null,!0,!1,C.eI,C.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(V.element,p);var N;p.api.setTrackingParams(V.element,((N=C.subscribeButtonRenderer)==null?void 0:N.trackingParams)||null);p.U(V.element,"click",function(){p.api.logClick(V.element)});
p.subscribeButton=V;g.R(p,p.subscribeButton);p.subscribeButton.u_(p.W);p.subscribeButton.hide();var H=new bDu(p.api);p.T=H;g.R(p,H);H.u_(p.W);H.hide();p.U(p.api,"SUBSCRIBE",function(){C.DM&&(H.show(),p.api.logVisibility(H.element,!0))});
p.U(p.api,"UNSUBSCRIBE",function(){C.DM&&(H.hide(),p.api.logVisibility(H.element,!1),AFv(H,!1))})}};
xES=function(p){var C=p.api.K();R9Y(p);p.updateValue("flyoutUnfocusable","true");p.updateValue("channelTitleFocusable","-1");p.updateValue("shouldHideExpandedTitleForA11y","true");p.updateValue("shouldHideExpandedSubtitleForA11y","true");C.C||C.R$||(p.U(p.channel,"mouseenter",p.B4),p.U(p.channel,"mouseleave",p.Mi),p.U(p.channel,"focusin",p.B4),p.U(p.channel,"focusout",function(V){p.channel.contains(V.relatedTarget)||p.Mi()}));
p.V=new g.N8(function(){p.isExpanded()&&(p.api.logVisibility(p.channelName,!1),p.subscribeButton&&(p.subscribeButton.hide(),p.api.logVisibility(p.subscribeButton.element,!1)),p.T&&(p.T.hide(),p.api.logVisibility(p.T.element,!1)),p.channel.classList.remove("ytp-title-expanded"),p.channel.classList.add("ytp-title-show-collapsed"))},500);
g.R(p,p.V);p.U(p.channel,nyS,function(){e9Y(p)});
p.U(p.api,"onHideControls",p.oM);p.U(p.api,"appresize",p.oM);p.U(p.api,"fullscreentoggled",p.oM)};
e9Y=function(p){p.channel.classList.remove("ytp-title-show-collapsed");p.channel.classList.remove("ytp-title-show-expanded")};
PML=function(p){var C=p.api.getPlayerSize();return g.KI(p.api.K())&&C.width>=524};
Ymu=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=g.GM(C)+V.kM;g.t_(V)&&(N="https://music.youtube.com"+V.kM);if(!g.KI(C))return N;C={};g.FE(p.api,"addEmbedsConversionTrackingParams",[C]);return g.GD(N,C)};
lW=function(p){var C=g.H3({"aria-haspopup":"true"});g.Nl.call(this,C,p);this.listen("keydown",this.T)};
tD=function(p,C){p.element.setAttribute("aria-haspopup",String(C))};
wq9=function(p,C){g.L.call(this,{L:"div",B:"ytp-user-info-panel",X:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},j:p.K().sY&&!p.G("embeds_web_always_enable_signed_out_state")?[{L:"div",B:"ytp-user-info-panel-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-user-info-panel-content",j:[{L:"div",B:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ak:"{{watchingAsUsername}}"},{L:"div",B:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ak:"{{watchingAsEmail}}"}]}]:
[{L:"div",B:"ytp-user-info-panel-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-user-info-panel-content",j:[{L:"div",j:[{L:"text",X:{tabIndex:"{{userInfoFocusable}}"},Ak:"Conta desconectada"}]},{L:"div",B:"ytp-user-info-panel-login",j:[{L:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ak:p.K().qW?"":"Fazer login no YouTube"}]}]}]});this.ea=p;this.T=C;p.K().sY||p.K().qW||this.U(this.rV("ytp-user-info-panel-login"),"click",this.Uw);this.closeButton=new g.L({L:"button",i_:["ytp-collapse","ytp-button"],
X:{title:"Fechar"},j:[g.Y0()]});this.closeButton.u_(this.element);g.R(this,this.closeButton);this.U(window,"blur",this.hide);this.U(document,"click",this.tb);this.Pr()};
Lf9=function(p,C,V){g.$m.call(this,p);this.xM=C;this.WV=V;this.getVideoUrl=new lW(6);this.vp=new lW(5);this.I9=new lW(4);this.X0=new lW(3);this.x7=new g.Nl(g.H3({href:"{{href}}",target:this.N.K().Z},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.Nl(g.H3(),1,"Estat\u00edsticas para nerds");this.mB=new g.Sp({L:"div",i_:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},Ak:"{{text}}"});this.RK=new wL(this.N,this.mB);this.Ch=this.Wf=null;g.KI(this.N.K())&&
(this.closeButton=new g.L({L:"button",i_:["ytp-collapse","ytp-button"],X:{title:"Fechar"},j:[g.Y0()]}),g.R(this,this.closeButton),this.closeButton.u_(this.element),this.closeButton.listen("click",this.Vu,this));g.KI(this.N.K())&&(this.fM=new g.Nl(g.H3(),8,"Conta"),g.R(this,this.fM),this.zB(this.fM,!0),this.fM.listen("click",this.EG$,this),p.createClientVe(this.fM.element,this.fM,137682));this.N.K().JW&&(this.rb=new c3("Loop",7),g.R(this,this.rb),this.zB(this.rb,!0),this.rb.listen("click",this.nMY,
this),p.createClientVe(this.rb.element,this.rb,28661));g.R(this,this.getVideoUrl);this.zB(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.qYx,this);p.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.R(this,this.vp);this.zB(this.vp,!0);this.vp.listen("click",this.ckn,this);p.createClientVe(this.vp.element,this.vp,28660);g.R(this,this.I9);this.zB(this.I9,!0);this.I9.listen("click",this.Fxe,this);p.createClientVe(this.I9.element,this.I9,28658);g.R(this,this.X0);this.zB(this.X0,
!0);this.X0.listen("click",this.Xr$,this);g.R(this,this.x7);this.zB(this.x7,!0);this.x7.listen("click",this.jHk,this);g.R(this,this.showVideoInfo);this.zB(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.uO_,this);g.R(this,this.mB);this.mB.listen("click",this.BVa,this);g.R(this,this.RK);C=document.queryCommandSupported&&document.queryCommandSupported("copy");LyQ("Chromium")>=43&&(C=!0);LyQ("Firefox")<=40&&(C=!1);C&&(this.Wf=new g.L({L:"textarea",B:"ytp-html5-clipboard",X:{readonly:"",
tabindex:"-1"}}),g.R(this,this.Wf),this.Wf.u_(this.element));var N;(N=this.fM)==null||N.setIcon(qBQ());var H;(H=this.rb)==null||H.setIcon({L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.X0.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});this.x7.setIcon(uW1());this.showVideoInfo.setIcon(ZKv());this.U(p,"onLoopChange",this.onLoopChange);this.U(p,"videodatachange",this.onVideoDataChange);$EY(this);this.mI(this.N.getVideoData())};
cz=function(p,C){var V=!1;if(p.Wf){var N=p.Wf.element;N.value=C;N.select();try{V=document.execCommand("copy")}catch(H){}}V?p.xM.f4():(p.mB.Jc(C,"text"),g.WO(p.xM,p.RK),v3(p.mB.element),p.Wf&&(p.Wf=null,$EY(p)));return V};
$EY=function(p){var C=!!p.Wf;g.V7(p.X0,C?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");tD(p.X0,!C);g.V7(p.I9,C?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");tD(p.I9,!C);g.V7(p.getVideoUrl,C?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");tD(p.getVideoUrl,!C);g.V7(p.vp,C?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");tD(p.vp,!C);p.I9.setIcon(C?SBH():
null);p.getVideoUrl.setIcon(C?qy():null);p.vp.setIcon(C?qy():null)};
gyj=function(p){return g.KI(p.N.K())?p.fM:p.rb};
QQQ=function(p,C){g.gL.call(this,p);this.WV=C;this.S=new g.Rr(this);this.b_=new g.N8(this.YZe,1E3,this);this.sY=this.V=null;g.R(this,this.S);g.R(this,this.b_);p.createClientVe(this.element,this,28656);g.Ed(this.element,"ytp-contextmenu");Wfy(this);this.hide()};
Wfy=function(p){g.Am(p.S);var C=p.N.K();C.playerStyle==="gvn"||C.C||C.R$||(C=p.N.dV(),p.S.U(C,"contextmenu",p.YYV),p.S.U(C,"touchstart",p.lD,null,!0),p.S.U(C,"touchmove",p.lV,null,!0),p.S.U(C,"touchend",p.lV,null,!0))};
rFY=function(p){p.N.isFullscreen()?g.LT(p.N,p.element,10):p.u_(pc(p).body)};
TI=function(p,C,V){V=V===void 0?240:V;g.L.call(this,{L:"button",i_:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-copylink-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-copylink-title",Ak:"Copiar link",X:{"aria-hidden":"true"}}]});this.api=p;this.T=C;this.C=V;this.visible=!1;this.tooltip=this.T.aI();C=p.K();this.tooltip.element.setAttribute("aria-live","polite");g.Tz(this.element,"ytp-show-copylink-title",g.KI(C));p.createClientVe(this.element,
this,86570);this.listen("click",this.onClick);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.U(p,"appresize",this.Pr);this.Pr();this.addOnDisposeCallback(g.A_(this.tooltip,this.element))};
BvY=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=p.api.dV().getPlayerSize().width;C=C.V;return!!V.videoId&&N>=p.C&&V.BK&&!g.lx(V)&&!p.api.isEmbedsShortsMode()&&!C};
GSS=function(p){p.updateValue("icon",Uy());if(p.api.K().C)p.tooltip.Y7(p.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{p.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");p.tooltip.B6();p.tooltip.Y7(p.element);var C=p.listen("mouseleave",function(){p.rY(C);p.Pr();p.tooltip.wb()})}};
pDL=function(p,C){return g.I(function(V){if(V.C==1)return g.vv(V,2),g.y(V,navigator.clipboard.writeText(C),4);if(V.C!=2)return V.return(!0);g.Sa(V);var N=V.return,H=!1,X=g.iK("TEXTAREA");X.value=C;X.setAttribute("readonly","");var d=p.api.getRootNode();d.appendChild(X);if(BW){var a=window.getSelection();a.removeAllRanges();var E=document.createRange();E.selectNodeContents(X);a.addRange(E);X.setSelectionRange(0,C.length)}else X.select();try{H=document.execCommand("copy")}catch(l){}d.removeChild(X);
return N.call(V,H)})};
Md=function(p){g.L.call(this,{L:"div",B:"ytp-doubletap-ui-legacy",j:[{L:"div",B:"ytp-doubletap-fast-forward-ve"},{L:"div",B:"ytp-doubletap-rewind-ve"},{L:"div",B:"ytp-doubletap-static-circle",j:[{L:"div",B:"ytp-doubletap-ripple"}]},{L:"div",B:"ytp-doubletap-overlay-a11y"},{L:"div",B:"ytp-doubletap-seek-info-container",j:[{L:"div",B:"ytp-doubletap-arrows-container",j:[{L:"span",B:"ytp-doubletap-base-arrow"},{L:"span",B:"ytp-doubletap-base-arrow"},{L:"span",B:"ytp-doubletap-base-arrow"}]},{L:"div",
B:"ytp-doubletap-tooltip",j:[{L:"div",B:"ytp-seek-icon-text-container",j:[{L:"div",B:"ytp-seek-icon",Ak:"{{seekIcon}}"},{L:"div",B:"ytp-chapter-seek-text-legacy",Ak:"{{seekText}}"}]},{L:"div",B:"ytp-doubletap-tooltip-label",Ak:"{{seekTime}}"}]}]}]});this.N=p;this.S=new g.N8(this.show,10,this);this.C=new g.N8(this.hide,700,this);this.D=this.V=0;this.a$=this.W=!1;this.T=this.rV("ytp-doubletap-static-circle");g.R(this,this.S);g.R(this,this.C);this.hide();this.J=this.rV("ytp-doubletap-fast-forward-ve");
this.Z=this.rV("ytp-doubletap-rewind-ve");this.N.createClientVe(this.J,this,28240);this.N.createClientVe(this.Z,this,28239);this.N.logVisibility(this.J,!0);this.N.logVisibility(this.Z,!0);this.W=p.G("web_show_cumulative_seek_time");this.a$=p.G("web_center_static_circles")};
JD=function(p,C,V,N){if(N=N===void 0?null:N){var H=C===-1?p.Z.visualElement:p.J.visualElement;N={seekData:N};var X=g.bz();X&&g.NU(Xi)(void 0,X,H,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",N,void 0)}p.V=C===p.D?p.V+V:V;p.D=C;H=p.N.dV().getPlayerSize();p.W?p.C.stop():g.d0(p.C);p.S.start();p.element.setAttribute("data-side",C===-1?"back":"forward");g.Ed(p.element,"ytp-time-seeking");p.T.style.width="110px";p.T.style.height="110px";N=H.width*.1-15;C===1?p.a$?(p.T.style.right=N+"px",p.T.style.left=""):
(p.T.style.right="",p.T.style.left=H.width*.8-30+"px"):C===-1&&(p.a$?(p.T.style.right="",p.T.style.left=N+"px"):(p.T.style.right="",p.T.style.left=H.width*.1-15+"px"));p.T.style.top=H.height*.5+15+"px";CSL(p,p.W?p.V:V)};
jJv=function(p,C,V,N){N=N===void 0?null:N;g.d0(p.C);p.S.start();switch(C){case -1:C="back";break;case 1:C="forward";break;default:C=""}p.element.setAttribute("data-side",C);p.T.style.width="0";p.T.style.height="0";g.Ed(p.element,"ytp-chapter-seek");p.updateValue("seekText",V);p.updateValue("seekTime","");V=p.rV("ytp-seek-icon");if(N){a:if(N){switch(N){case "PREMIUM_STANDALONE":N={L:"svg",X:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},j:[{L:"path",X:{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"}},{L:"path",X:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]};
break a;case "PREMIUM_STANDALONE_CAIRO":N={L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"rect",X:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{L:"rect",X:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{L:"path",X:{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"}},{L:"defs",j:[{L:"linearGradient",X:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},j:[{L:"stop",X:{offset:"0.3","stop-color":"#E1002D"}},{L:"stop",X:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}N=void 0}else N=null;p.updateValue("seekIcon",N);V.style.display="inline-block"}else V.style.display="none"};
CSL=function(p,C){C=g.Ks("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:C.toString()});p.updateValue("seekTime",C)};
VdY=function(p){PO.call(this,p,!1,!0);this.Vn=[];this.Hc=[];this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.Sa=new g.L({L:"div",B:"ytp-featured-product-open-in-new"});g.R(this,this.Sa);this.countdownTimer=new g.L({L:"text",B:"ytp-featured-product-countdown",Ak:"{{content}}"});this.countdownTimer.hide();g.R(this,this.countdownTimer);this.C=new g.L({L:"div",B:"ytp-featured-product-trending",j:[{L:"div",B:"ytp-featured-product-trending-icon"},{L:"text",B:"ytp-featured-product-trending-text",
Ak:"{{trendingOffer}}"}]});this.C.hide();g.R(this,this.C);this.overflowButton=new g.L({L:"button",i_:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.R(this,this.overflowButton);this.infoButton=new g.L({L:"button",i_:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.R(this,this.infoButton);this.J=new g.L({L:"text",B:"ytp-featured-product-exclusive-countdown",Ak:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}});
this.J.hide();g.R(this,this.J);this.D=new g.L({L:"div",B:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},j:[{L:"div",B:"ytp-featured-product-exclusive-badge-container",j:[{L:"div",B:"ytp-featured-product-exclusive-badge",j:[{L:"text",B:"ytp-featured-product-exclusive-badge-text",Ak:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.J]});this.D.hide();g.R(this,this.D);this.banner=new g.L({L:"a",B:"ytp-featured-product-container",
j:[{L:"div",B:"ytp-featured-product-thumbnail",j:[{L:"img",X:{src:"{{thumbnail}}"}},this.Sa]},{L:"div",B:"ytp-featured-product-details",j:[{L:"text",B:"ytp-featured-product-title",Ak:"{{title}}"},this.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div",B:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},j:[{L:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",Ak:"{{price}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-promotion-text",
Ak:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{L:"div",X:{"aria-label":"{{priceA11yText}}"},j:[{L:"text",B:"ytp-featured-product-price",Ak:"{{price}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-sales-original-price",Ak:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-price-drop-reference-price",Ak:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div",
B:"ytp-featured-product-when-promotion-text-enabled",j:[{L:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Ak:"{{affiliateDisclaimer}}"},this.C,{L:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",Ak:"{{vendor}}"}]}:{L:"div",j:[{L:"text",B:"ytp-featured-product-affiliate-disclaimer",Ak:"{{affiliateDisclaimer}}"},this.N.G("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.C,{L:"text",B:"ytp-featured-product-vendor",
Ak:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.R(this,this.banner);this.banner.u_(this.V.element);this.U(this.N,g.Ez("featured_product"),this.IQe);this.U(this.N,g.lG("featured_product"),this.Cl);this.U(this.N,"videodatachange",this.onVideoDataChange);this.U(this.infoButton.element,"click",this.ZSa);this.U(this.overflowButton.element,"click",this.gp);this.U(p,"featuredproductdismissed",this.Fj)};
NK9=function(p){var C,V;p=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;var N,H,X;return(p==null||!p.affiliateDisclaimer)&&(p==null?0:(N=p.exclusivesData)==null?0:N.exclusiveOfferLabelText)&&(p==null?0:(H=p.exclusivesData)==null?0:H.expirationTimestampMs)&&(p==null?0:(X=p.exclusivesData)==null?0:X.exclusiveOfferCountdownText)?!0:!1};
XDs=function(p){var C,V,N,H,X=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:(H=N.exclusivesData)==null?void 0:H.expirationTimestampMs;C=(Number(X)-Date.now())/1E3;if(C>0){if(C<604800){var d,a,E,l;V=(d=p.T)==null?void 0:(a=d.bannerData)==null?void 0:(E=a.itemData)==null?void 0:(l=E.exclusivesData)==null?void 0:l.exclusiveOfferCountdownText;if(V!==void 0)for(d=Date.now(),a=g.F(V),E=a.next();!E.done;E=a.next())if(E=E.value,E!==void 0&&E.text!==void 0&&(l=Number(E.textDisplayStartTimestampMs),
!isNaN(l)&&d>=l)){E.insertCountdown?(C=E.text.replace(/\$0/,String(vY({seconds:C}))),p.J.Jc(C)):p.J.Jc(E.text);p.J.show();break}}var t,c,T,M;p.D.update({exclusive:(t=p.T)==null?void 0:(c=t.bannerData)==null?void 0:(T=c.itemData)==null?void 0:(M=T.exclusivesData)==null?void 0:M.exclusiveOfferLabelText});p.D.show();mD(p);var J;(J=p.YM)==null||J.start()}else HMY(p)};
HMY=function(p){var C;(C=p.YM)==null||C.stop();p.J.hide();p.D.hide();vz(p)};
dWX=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;return p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(N==null||!N.priceReplacementText)&&(N==null?0:N.promotionText)?N==null?void 0:N.promotionText.content:null};
iM9=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData,H,X;if(!(N!=null&&N.priceReplacementText||p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(N==null?0:(H=N.dealsData)==null?0:(X=H.sales)==null?0:X.originalPrice)){var d,a;return N==null?void 0:(d=N.dealsData)==null?void 0:(a=d.sales)==null?void 0:a.originalPrice}return null};
hfu=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData,H,X,d,a;if(!((N==null?0:N.priceReplacementText)||p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(N==null?0:(H=N.dealsData)==null?0:(X=H.sales)==null?0:X.originalPrice))&&(N==null?0:(d=N.dealsData)==null?0:(a=d.priceDrop)==null?0:a.referencePrice)){var E,l;return N==null?void 0:(E=N.dealsData)==null?void 0:(l=E.priceDrop)==null?void 0:l.referencePrice}return null};
sJe=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;if(N==null?0:N.priceReplacementText)return N==null?void 0:N.priceReplacementText;if((N==null?0:N.promotionText)&&p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var H;return(N==null?void 0:N.price)+" "+(N==null?void 0:(H=N.promotionText)==null?void 0:H.content)}var X,d;if(N==null?0:(X=N.dealsData)==null?0:(d=X.sales)==null?0:d.originalPrice){var a,E;return N==null?void 0:(a=N.dealsData)==
null?void 0:(E=a.sales)==null?void 0:E.salesPriceAccessibilityLabel}var l,t;if(N==null?0:(l=N.dealsData)==null?0:(t=l.priceDrop)==null?0:t.referencePrice){var c,T;return(N==null?void 0:N.price)+" "+(N==null?void 0:(c=N.dealsData)==null?void 0:(T=c.priceDrop)==null?void 0:T.referencePrice)}return N==null?void 0:N.price};
a4L=function(p){if(p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var C,V,N;return p.C.C4?null:(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:N.vendorName}var H,X,d,a,E,l;return p.C.C4||p.D.C4||((H=p.T)==null?0:(X=H.bannerData)==null?0:(d=X.itemData)==null?0:d.affiliateDisclaimer)?null:(a=p.T)==null?void 0:(E=a.bannerData)==null?void 0:(l=E.itemData)==null?void 0:l.vendorName};
l4L=function(p,C){Fo(p);if(C){var V=g.Xx.getState().entities;V=Mg(V,"featuredProductsEntity",C);if(V!=null&&V.productsData){C=[];V=g.F(V.productsData);for(var N=V.next();!N.done;N=V.next()){N=N.value;var H=void 0;if((H=N)!=null&&H.identifier&&N.featuredSegments){p.Vn.push(N);var X=void 0;H=g.F((X=N)==null?void 0:X.featuredSegments);for(X=H.next();!X.done;X=H.next()){var d=X.value;X=ERy(d.startTimeSec);X!==void 0&&(d=ERy(d.endTimeSec),C.push(new g.sz(X*1E3,d===void 0?0x7ffffffffffff:d*1E3,{id:N.identifier,
namespace:"featured_product"})))}}}p.N.d7(C)}}};
vz=function(p){if(p.trendingOfferEntityKey){var C=g.Xx.getState().entities;if(C=Mg(C,"trendingOfferEntity",p.trendingOfferEntityKey)){var V,N,H;C.encodedSkuId!==((V=p.T)==null?void 0:(N=V.bannerData)==null?void 0:(H=N.itemData)==null?void 0:H.encodedOfferSkuId)?mD(p):(p.C.update({trendingOffer:C.shortLabel+" \u2022 "+C.countLabel}),p.C.show(),p.banner.update({vendor:a4L(p)}))}else mD(p)}else mD(p)};
mD=function(p){p.C.hide();p.banner.update({vendor:a4L(p)})};
Fo=function(p){p.Vn=[];p.Cl();p.N.qt("featured_product")};
tdL=function(p){var C,V,N,H,X=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:(H=N.hiddenProductOptions)==null?void 0:H.dropTimestampMs;C=(Number(X)-Date.now())/1E3;p.countdownTimer.Jc(vY({seconds:C}));if(C>0){var d;(d=p.ER)==null||d.start()}};
cJv=function(p){var C;(C=p.ER)==null||C.stop();p.countdownTimer.hide()};
ERy=function(p){if(p!==void 0&&p.trim()!==""&&(p=Math.trunc(Number(p.trim())),!(isNaN(p)||p<0)))return p};
vRS=function(p,C,V){g.L.call(this,{L:"div",i_:["ytp-info-panel-action-item"],j:[{L:"div",B:"ytp-info-panel-action-item-disclaimer",Ak:"{{disclaimer}}"},{L:"a",i_:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},j:[{L:"div",B:"ytp-info-panel-action-item-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-info-panel-action-item-label",Ak:"{{label}}"}]}]});this.N=p;this.T=V;this.disclaimer=this.rV("ytp-info-panel-action-item-disclaimer");this.button=
this.rV("ytp-info-panel-action-item-button");this.GN=!1;this.N.createServerVe(this.element,this,!0);this.listen("click",this.onClick);p="";V=g.n(C==null?void 0:C.onTap,w7);var N=g.n(V,g.$0);this.GN=!1;N?(p=N.url||"",p.startsWith("//")&&(p="https:"+p),this.GN=!0,g.el(this.button,g.Rc(p))):(N=g.n(V,TKS))&&!this.T?((p=N.phoneNumbers)&&p.length>0?(p="sms:"+p[0],N.messageText&&(p+="?&body="+encodeURI(N.messageText))):p="",this.GN=!0,g.el(this.button,g.Rc(p,[MdL]))):(V=g.n(V,JJj))&&!this.T&&(p=V.phoneNumber?
"tel:"+V.phoneNumber:"",this.GN=!0,g.el(this.button,g.Rc(p,[mWL])));var H;if(V=(H=C.disclaimerText)==null?void 0:H.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var X;this.update({label:(X=C.bodyText)==null?void 0:X.content,icon:AO(),disclaimer:V})}else{this.disclaimer.style.display="none";var d;this.update({label:(d=C.bodyText)==null?void 0:d.content,icon:AO()})}this.N.setTrackingParams(this.element,C.trackingParams||null);this.GN&&(this.C={externalLinkData:{url:p}})};
Fmy=function(p,C){var V=JO();g.GC.call(this,p,{L:"div",B:"ytp-info-panel-detail-skrim",j:[{L:"div",B:"ytp-info-panel-detail",X:{role:"dialog",id:V},j:[{L:"div",B:"ytp-info-panel-detail-header",j:[{L:"div",B:"ytp-info-panel-detail-title",Ak:"{{title}}"},{L:"button",i_:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Fechar"},j:[g.yD()]}]},{L:"div",B:"ytp-info-panel-detail-body",Ak:"{{body}}"},{L:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.T=C;this.items=this.rV("ytp-info-panel-detail-items");
this.V=new g.Rr(this);this.itemData=[];this.S=V;this.U(this.rV("ytp-info-panel-detail-close"),"click",this.f4);this.U(this.rV("ytp-info-panel-detail-skrim"),"click",this.f4);this.U(this.rV("ytp-info-panel-detail"),"click",function(N){N.stopPropagation()});
g.R(this,this.V);this.N.createServerVe(this.element,this,!0);this.U(p,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",p.getVideoData());this.hide()};
SUu=function(p,C){p=g.F(p.itemData);for(var V=p.next();!V.done;V=p.next())V=V.value,V.N.logVisibility(V.element,C)};
uys=function(p,C){g.L.call(this,{L:"div",B:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":C.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-info-panel-preview-text",Ak:"{{text}}"},{L:"div",B:"ytp-info-panel-preview-chevron",Ak:"{{chevron}}"}]});var V=this;this.N=p;this.g7=this.T=this.videoId=null;this.S=this.showControls=this.C=!1;this.U(this.element,"click",function(){p.logClick(V.element);p.A6();Cc(C)});
this.V=new g.a0(this,250,!1,100);g.R(this,this.V);this.N.createServerVe(this.element,this,!0);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"presentingplayerstatechange",this.Q0);this.U(this.N,"paidcontentoverlayvisibilitychange",this.VO);this.U(this.N,"infopaneldetailvisibilitychange",this.VO);var N=p.getVideoData()||{};Kmj(N)&&DWV(this,N);this.U(p,"onShowControls",this.Jb);this.U(p,"onHideControls",this.Ow)};
DWV=function(p,C){if(!C.qn||!p.N.iX()){var V=C.Vw||1E4,N=Kmj(C);p.T?C.videoId&&C.videoId!==p.videoId&&(g.d0(p.T),p.videoId=C.videoId,N?(ZML(p,V,C),p.er()):(p.f4(),p.T.dispose(),p.T=null)):N&&(C.videoId&&(p.videoId=C.videoId),ZML(p,V,C),p.er())}};
Kmj=function(p){var C,V,N,H;return!!((C=p.W1)==null?0:(V=C.title)==null?0:V.content)||!!((N=p.W1)==null?0:(H=N.bodyText)==null?0:H.content)};
ZML=function(p,C,V){p.T&&p.T.dispose();p.T=new g.N8(p.mg$,C,p);g.R(p,p.T);var N;C=((N=V.W1)==null?void 0:N.trackingParams)||null;p.N.setTrackingParams(p.element,C);var H;var X,d;if(V==null?0:(X=V.W1)==null?0:(d=X.title)==null?0:d.content){var a;N=(H=V.W1)==null?void 0:(a=H.title)==null?void 0:a.content;var E,l;if((E=V.W1)==null?0:(l=E.bodyText)==null?0:l.content)N+=" \u2022 ";H=N}else H="";var t,c;V=((t=V.W1)==null?void 0:(c=t.bodyText)==null?void 0:c.content)||"";p.update({text:H+V,chevron:g.Oy()})};
UWe=function(p,C){p.T&&(g.r(C,8)?(p.C=!0,p.er(),p.T.start()):(g.r(C,2)||g.r(C,64))&&p.videoId&&(p.videoId=null))};
S4=function(p){var C=null;try{C=p.toLocaleString("pt-BR",{style:"percent"})}catch(V){C=p.toLocaleString(void 0,{style:"percent"})}return C};
KZ=function(p,C){var V=0;p=g.F(p);for(var N=p.next();!(N.done||N.value.startTime>C);N=p.next())V++;return V===0?V:V-1};
f4H=function(p,C){for(var V=0,N=g.F(p),H=N.next();!H.done;H=N.next()){H=H.value;if(C