(function(g){var window=this;'use strict';var MW=function(k){k.mutedAutoplay=!1;k.endSeconds=NaN;k.limitedPlaybackDurationInSeconds=NaN;g.z_(k)},yc=function(){return{Z:"svg", N:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},G:[{Z:"path",cV:!0,A:"ytp-svg-fill",N:{d:"M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z"}}]}}, THY=function(){return{Z:"svg", N:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},G:[{Z:"path",N:{d:"M58.37 41.39H62.79V27.23C62.79 23.03 62.69 18.69 62.43 13.59H62.93L63.69 16.89L68.67 41.39H73.17L78.07 16.89L78.89 13.59H79.37C79.15 18.45 79.03 22.89 79.03 27.23V41.39H83.45V8.79H75.95L73.41 20.81C72.35 25.85 71.51 32.01 71.01 35.19H70.73C70.33 31.95 69.49 25.81 68.41 20.85L65.81 8.79H58.37V41.39Z",fill:"white"}},{Z:"path",N:{d:"M91.45 41.73C93.91 41.73 95.83 40.59 97.17 38.13H97.35L97.69 41.39H101.43V17.73H96.47V36.61C95.91 37.67 94.81 38.29 93.73 38.29C92.33 38.29 91.89 37.17 91.89 35.13V17.73H86.93V35.43C86.93 39.49 88.19 41.73 91.45 41.73Z", fill:"white"}},{Z:"path",N:{d:"M110.79 41.89C115.15 41.89 117.75 39.83 117.75 35.65C117.75 31.79 115.93 30.39 111.85 27.47C109.67 25.91 108.39 25.09 108.39 22.95C108.39 21.47 109.27 20.61 110.89 20.61C112.69 20.61 113.33 21.81 113.33 25.29L117.45 25.07C117.77 19.57 115.71 17.23 110.97 17.23C106.57 17.23 104.17 19.27 104.17 23.45C104.17 27.25 105.97 28.83 108.93 31.03C111.89 33.23 113.55 34.53 113.55 36.23C113.55 37.75 112.51 38.61 111.01 38.61C109.13 38.61 108.11 36.97 108.29 34.41L104.21 34.49C103.51 39.25 105.89 41.89 110.79 41.89Z", fill:"white"}},{Z:"path",N:{d:"M122.5 14.59C124.22 14.59 125.04 13.99 125.04 11.59C125.04 9.33 124.16 8.65 122.5 8.65C120.84 8.65 119.94 9.27 119.94 11.59C119.94 13.99 120.82 14.59 122.5 14.59ZM120.2 41.39H125V17.73H120.2V41.39Z",fill:"white"}},{Z:"path",N:{d:"M134.95 41.79C137.31 41.79 138.63 41.49 139.71 40.47C141.31 39.01 141.97 36.63 141.85 33.11L137.41 32.87C137.41 36.87 136.81 38.45 135.03 38.45C133.13 38.45 132.77 36.45 132.77 31.97V27.21C132.77 22.41 133.23 20.51 135.07 20.51C136.67 20.51 137.29 22.01 137.29 26.47L141.65 26.15C141.97 22.93 141.59 20.29 140.09 18.83C139.01 17.77 137.37 17.29 135.15 17.29C129.65 17.29 127.75 20.73 127.75 28.03V31.17C127.75 38.47 129.23 41.79 134.95 41.79Z", fill:"white"}},{Z:"path",N:{"clip-rule":"evenodd",d:"M24.99 49C29.74 49.00 34.38 47.59 38.32 44.95C42.27 42.32 45.35 38.57 47.17 34.18C48.98 29.80 49.46 24.97 48.53 20.32C47.61 15.66 45.32 11.38 41.97 8.03C38.61 4.67 34.33 2.38 29.68 1.46C25.02 .53 20.20 1.01 15.81 2.82C11.43 4.64 7.68 7.71 5.04 11.66C2.40 15.61 1 20.25 1 25C0.99 28.15 1.61 31.27 2.82 34.18C4.03 37.09 5.79 39.74 8.02 41.97C10.25 44.19 12.89 45.96 15.81 47.17C18.72 48.37 21.84 49 24.99 49ZM24.99 12.36C27.49 12.36 29.94 13.10 32.02 14.48C34.10 15.87 35.72 17.84 36.68 20.15C37.64 22.46 37.89 25.01 37.41 27.46C36.92 29.91 35.72 32.17 33.95 33.94C32.18 35.70 29.93 36.91 27.48 37.40C25.02 37.89 22.48 37.64 20.17 36.68C17.86 35.72 15.88 34.10 14.50 32.02C13.11 29.94 12.37 27.50 12.37 25C12.37 21.65 13.70 18.44 16.07 16.07C18.43 13.70 21.64 12.37 24.99 12.36ZM24.99 10.43C22.11 10.43 19.29 11.28 16.89 12.88C14.50 14.48 12.63 16.76 11.53 19.42C10.42 22.09 10.13 25.02 10.70 27.85C11.26 30.67 12.65 33.27 14.69 35.31C16.73 37.35 19.32 38.73 22.15 39.30C24.98 39.86 27.91 39.57 30.57 38.46C33.23 37.36 35.51 35.49 37.11 33.09C38.71 30.70 39.57 27.88 39.56 25C39.56 23.08 39.19 21.19 38.46 19.42C37.72 17.65 36.65 16.04 35.30 14.69C33.94 13.34 32.34 12.27 30.57 11.53C28.80 10.80 26.90 10.43 24.99 10.43ZM32.63 24.99L20.36 32.09V17.91L32.63 24.99Z", fill:"white","fill-rule":"evenodd"}}]}},c6=function(k,U){if(k.api.U().C("web_player_log_click_before_generating_ve_conversion_params")){var n=Math.floor(-k.scrollPosition/(k.j+k.B)); const Z=Math.min(n+k.columns,k.suggestionData.length)-1;for(;n<=Z;n++)k.api.logVisibility(k.S[n].element,U)}},l8=function(k){k.next.element.style.bottom=`${k.W}px`; k.previous.element.style.bottom=`${k.W}px`;const U=k.scrollPosition,n=k.containerWidth-k.suggestionData.length*(k.j+k.B);g.N(k.element,"ytp-scroll-min",U>=0);g.N(k.element,"ytp-scroll-max",U<=n)},ar2=function(k){let U=0; for(;U{$Tp(k,L,r)})),U&&r.setAttribute("target",U),n=g.Ox("DIV"),n.appendChild(r),Z.appendChild(n)))}},mC=function(k){if(k.runs)for(let U=0;U{x$(k)},null),x$(k))},k7=function(k){var U=k.O; k=!!U.isEmbedsShortsMode();g.N(U.getRootNode(),"ytp-shorts-mode",k);if(U=U.getVideoData())U.s$=k},DTB=function(k){const U=g.c7a(k.O); U!==k.D&&(k.D=U,k.W&&(k.W.dispose(),k.W=null),k.j&&(k.j.dispose(),k.j=null),k.J&&(k.J.dispose(),k.J=null),k.B&&(k.B.stop(),k.B.dispose(),k.B=null),U&&(g.Ec(k.O),k.O.isEmbedsShortsMode()&&(k.J=new g.l({Z:"div",A:"ytp-pause-overlay-backdrop",N:{tabIndex:"-1"}}),g.K(k,k.J),g.$Z(k.O,k.J.element,4),k.B=new g.Wf(k.J,1E3,!1,100),g.K(k,k.B),k.J.hide()),k.W=new g.l({Z:"div",A:"ytp-pause-overlay-container",N:{tabIndex:"-1"}}),g.K(k,k.W),k.j=new sOs(k.O),g.K(k,k.j),k.j.E4(k.W.element),g.$Z(k.O,k.W.element,4), Y6B(k,k.O.getPlayerStateObject())))},Y6B=function(k,U){k.B&&(!U.S(4)&&!U.S(2)||U.S(1024)?k.B.hide():k.B.show())},ix=function(k,U){const n=k.O.U(); k={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:k.O.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":k.O.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.nl(k.O.U().loaderUrl),eventType:U,youtubeHost:g.iw(k.O.U().f2)||""};k.embeddedPlayerMode=n.By;g.Rt("embedsAdEvent",k)},oEm=class extends g.l{constructor(k){super({Z:"div", A:"ytp-related-on-error-overlay"});this.api=k;this.W=this.B=0;this.J=new g.HW(this);this.S=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.l({Z:"h2",A:"ytp-related-title",zJ:"{{title}}"});this.previous=new g.l({Z:"button",O4:["ytp-button","ytp-previous"],N:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},G:[g.VF()]});this.X=new g.iKV(U=>{this.suggestions.element.scrollLeft=-U}); this.j=this.scrollPosition=0;this.V=!0;this.next=new g.l({Z:"button",O4:["ytp-button","ytp-next"],N:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},G:[g.HC()]});g.K(this,this.J);k=k.U();this.L=k.J;g.K(this,this.title);this.title.E4(this.element);this.suggestions=new g.l({Z:"div",A:"ytp-suggestions"});g.K(this,this.suggestions);this.suggestions.E4(this.element);g.K(this,this.previous);this.previous.E4(this.element);this.previous.listen("click",this.Y,this);g.K(this,this.X);for(let U=0;U<16;U++){const n= new g.l({Z:"a",A:"ytp-suggestion-link",N:{href:"{{link}}",target:k.D,"aria-label":"{{aria_label}}"},G:[{Z:"div",A:"ytp-suggestion-image",G:[{Z:"div",N:{"data-is-live":"{{is_live}}"},A:"ytp-suggestion-duration",zJ:"{{duration}}"}]},{Z:"div",A:"ytp-suggestion-title",N:{title:"{{hover_title}}"},zJ:"{{title}}"},{Z:"div",A:"ytp-suggestion-author",zJ:"{{views_or_author}}"}]});g.K(this,n);n.E4(this.suggestions.element);const Z=n.jE("ytp-suggestion-link");g.Pl(Z,"transitionDelay",`${U/20}s`);this.J.K(Z,"click", C=>{var r=U,L=this.suggestionData[r];const F=L.sessionData;g.xP(this.api.U())&&this.api.C("web_player_log_click_before_generating_ve_conversion_params")?(this.api.logClick(this.S[r].element),r=L.E0(),L={},g.TO(this.api,L),r=g.wV(r,L),g.jh(r,this.api,C)):g.WG(C,this.api,this.L,F||void 0)&&this.api.OQ(L.videoId,F,L.playlistId)}); this.S.push(n)}g.K(this,this.next);this.next.E4(this.element);this.next.listen("click",this.D,this);this.J.K(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.vy().getPlayerSize());this.onVideoDataChange();this.show()}hide(){this.V=!0;super.hide();c6(this,!1)}show(){this.V=!1;super.show();c6(this,!0)}isHidden(){return this.V}D(){this.scrollTo(this.scrollPosition-this.containerWidth)}Y(){this.scrollTo(this.scrollPosition+this.containerWidth)}resize(k,U){var n=this.api.U(),Z=16/ 9,C=k.width>=650,r=k.width<480||k.height<290,L=Math.min(this.suggestionData.length,this.S.length);if(Math.min(k.width,k.height)<=150||L===0||!n.lZ)this.hide();else{var F;if(C){var v=F=28;this.B=16}else this.B=v=F=8;if(r){var O=6;C=14;var w=12;r=24;n=12}else O=8,C=18,w=16,r=36,n=16;k=k.width-(48+F+v);F=Math.ceil(k/150);F=Math.min(3,F);v=k/F-this.B;var u=Math.floor(v/Z);U&&u+100>U&&v>50&&(u=Math.max(U,50/Z),F=Math.ceil(k/(Z*(u-100)+this.B)),v=k/F-this.B,u=Math.floor(v/Z));v<50||g.KB(this.api)?this.hide(): this.show();for(U=0;Un&&!n.playlistId):this.suggestionData.length=0; ar2(this);k.wm?this.title.update({title:g.q2("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:k.author})}):this.title.update({title:"Mais v\u00eddeos no YouTube"})}scrollTo(k){k=g.I0(k,this.containerWidth-this.suggestionData.length*(this.j+this.B),0);this.X.start(this.scrollPosition,k,1E3);this.scrollPosition=k;l8(this);c6(this,!0)}};var WWb=class extends g.tVs{constructor(k){super(k);this.S=null;const U=k.U(),n={target:U.D},Z=["ytp-small-redirect"];if(U.j)Z.push("no-link");else{const r=g.Nq(U);n.href=r;n["aria-label"]="Acesse o YouTube para pesquisar mais v\u00eddeos"}const C=new g.l({Z:"a",O4:Z,N:n,G:[{Z:"svg",N:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},G:[{Z:"path",N:{d:"M0 0h24v24H0V0z",fill:"none"}},{Z:"path",N:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]}]}); C.E4(this.element);k.createClientVe(C.element,this,178053);this.K(C.element,"click",r=>{$Tp(this,r,C.element)}); g.K(this,C);U.j||U.disableOrganicUi||(this.S=new oEm(k),this.S.E4(this.element),g.K(this,this.S));this.K(k,"videodatachange",()=>{this.show()}); this.resize(this.api.vy().getPlayerSize())}show(){super.show();pq8(this,this.api.vy().getPlayerSize())}resize(k){super.resize(k);this.S&&(pq8(this,k),g.N(this.element,"related-on-error-overlay-visible",!this.S.isHidden()))}B(k){super.B(k);const U=this.api.getVideoData();if(U.i8||U.playerErrorMessageRenderer)(k=U.i8)?tDs(this,k):U.playerErrorMessageRenderer&&tDs(this,U.playerErrorMessageRenderer);else{let n;k.Kc&&(U.kB?mC(U.kB)?n=g.Au(U.kB):n=g.Ua(g.E8(U.kB)):n=g.Ua(k.Kc),this.setContent(n,"subreason"))}}};var jOm=class extends g.l{constructor(k,U){super({Z:"a",O4:["ytp-impression-link"],N:{target:"{{target}}",href:"{{url}}","aria-label":"Assistir no YouTube"},G:[{Z:"div",A:"ytp-impression-link-content",N:{"aria-hidden":"true"},G:[{Z:"div",A:"ytp-impression-link-text",zJ:"Assistir no"},{Z:"div",A:"ytp-impression-link-logo",zJ:"{{logoSvg}}"}]}]});this.api=k;this.B=U;this.updateValue("target",k.U().D);this.K(k,"videodatachange",this.onVideoDataChange);this.K(this.api,"presentingplayerstatechange",this.b_); this.K(this.api,"videoplayerreset",this.S);this.K(this.element,"click",this.onClick);this.onVideoDataChange();this.S()}onVideoDataChange(){const k=this.api.getVideoData();let U=yc(),n=96714;g.Z9(k)?(U=THY(),n=216165,g.F_(this.element,"ytp-music-impression-link")):g.Oe(this.element,"ytp-music-impression-link");this.updateValue("logoSvg",U);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,n)}b_(){this.api.getPlayerStateObject().isCued()||(this.hide(), this.api.logVisibility(this.element,!1))}S(){var k=this.api.getVideoData();const U=this.api.U(),n=this.api.getVideoData().wm,Z=!U.lZ,C=this.B.y0(),r=U.j;U.Nf||C||n||Z||r||this.api.isEmbedsShortsMode()||!k.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(k=Irp(this),this.updateValue("url",k),this.show())}onClick(k){this.api.C("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const U=Irp(this);g.jh(U,this.api,k);this.api.C("web_player_log_click_before_generating_ve_conversion_params")|| this.api.logClick(this.element)}show(){this.api.getPlayerStateObject().isCued()&&(super.show(),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))}};var S6V=class extends g.l{constructor(k){super({Z:"div",O4:["ytp-mobile-a11y-hidden-seek-button"],G:[{Z:"button",O4:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],N:{"aria-label":"Voltar 10 segundos","aria-hidden":"false"}},{Z:"button",O4:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],N:{"aria-label":"Avan\u00e7ar 10 segundos","aria-hidden":"false"}}]});this.api=k;this.S=this.jE("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.jE("ytp-mobile-a11y-hidden-seek-button-forward"); this.api.createClientVe(this.S,this,141902);this.api.createClientVe(this.forwardButton,this,141903);this.K(this.api,"presentingplayerstatechange",this.b_);this.K(this.S,"click",this.B);this.K(this.forwardButton,"click",this.j);this.b_()}b_(){const k=this.api.getPlayerStateObject();!this.api.Rd()||k.S(2)&&g.zO(this.api)||k.S(64)?(this.api.logVisibility(this.S,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.S,!0),this.api.logVisibility(this.forwardButton, !0))}B(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.S)}j(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)}};var G0_=class extends g.l{constructor(k){super({Z:"div",A:"ytp-muted-autoplay-endscreen-overlay",G:[{Z:"div",A:"ytp-muted-autoplay-end-panel",G:[{Z:"button",O4:["ytp-muted-autoplay-end-text","ytp-button"],zJ:"{{text}}"}]}]});this.api=k;this.J=this.jE("ytp-muted-autoplay-end-panel");this.B=!1;this.api.createClientVe(this.element,this,52428);this.K(this.api,"presentingplayerstatechange",this.j);this.K(k,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()}j(){var k= this.api.getPlayerStateObject();const U=this.api.getVideoData();g.N(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!U.mutedAutoplay||U.limitedPlaybackDurationInSeconds===0&&U.endSeconds===0&&U.mutedAutoplayDurationMode===2||(k.S(2)&&!this.Bc?(this.show(),this.S||(this.S=new g.p7B(this.api),g.K(this,this.S),this.S.E4(this.J,0),this.S.show()),k=this.api.getVideoData(),this.updateValue("text",k.Dc),g.N(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element, this.Bc),g.wh(this.api,"onMutedAutoplayEnds")):this.hide())}onClick(){if(!this.B){this.S&&(this.S.Q$(),this.S=null);g.N(this.api.getRootNode(),"ytp-muted-autoplay",!1);var k=this.api.getVideoData(),U=this.api.getCurrentTime();MW(k);this.api.loadVideoById(k.videoId,U);this.api.po();this.api.logClick(this.element);this.hide();this.B=!0}}onMutedAutoplayStarts(){this.B=!1;this.S&&(this.S.Q$(),this.S=null)}};var JzV=class extends g.l{constructor(k){const U=k.U();super({Z:"a",O4:["ytp-watermark","yt-uix-sessionlink"],N:{target:U.D,href:"{{url}}","aria-label":g.q2("Assista em $WEBSITE",{WEBSITE:g.VC(U)}),"data-sessionlink":"feature=player-watermark"},zJ:"{{logoSvg}}"});this.api=k;this.S=null;this.B=!1;this.state=k.getPlayerStateObject();this.K(k,"videodatachange",this.onVideoDataChange);this.K(k,"presentingplayerstatechange",this.onStateChange);this.K(k,"appresize",this.DP);this.onVideoDataChange();this.L7(this.state); this.DP(k.vy().getPlayerSize())}onStateChange(k){this.L7(k.state)}L7(k){this.state!==k&&(this.state=k);q62(this)}onVideoDataChange(){var k=this.api.U();k.j&&g.F_(this.element,"ytp-no-hover");const U=this.api.getVideoData();U.videoId&&!k.j?(k=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",k),this.S||(this.S=this.listen("click",this.onClick))):this.S&&(this.updateValue("url",null),this.V4(this.S),this.S=null);k=yc();let n=76758;g.Z9(U)&&(k=THY(),n=216164);this.updateValue("logoSvg",k);this.api.hasVe(this.element)&& this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,n);q62(this)}onClick(k){this.api.C("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);let U=this.api.getVideoUrl(!g.cC(k),!1,!0,!0);if(this.api.C("web_player_log_click_before_generating_ve_conversion_params")){const n={};g.Oc(this.api,"addEmbedsConversionTrackingParams",[n]);U=g.wV(U,n)}g.jh(U,this.api,k);this.api.C("web_player_log_click_before_generating_ve_conversion_params")|| this.api.logClick(this.element)}DP(k){if((k=k.width<480)&&!this.B||!k&&this.B){const U=new g.l(yc()),n=this.jE("ytp-watermark");g.N(n,"ytp-watermark-small",k);g.g8(n);U.E4(n);this.B=k}}};var frV=class extends g.l{constructor(k){super({Z:"div",A:"ytp-muted-autoplay-overlay",G:[{Z:"div",A:"ytp-muted-autoplay-bottom-buttons",G:[{Z:"button",O4:["ytp-muted-autoplay-equalizer","ytp-button"],N:{"aria-label":"Indicador de reprodu\u00e7\u00e3o silenciada"},G:[{Z:"div",O4:["ytp-muted-autoplay-equalizer-icon"],G:[{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},G:[{Z:"g",N:{fill:"#fff"},G:[{Z:"rect",A:"ytp-equalizer-bar-left",N:{height:"9",width:"4",x:"1",y:"7"}}, {Z:"rect",A:"ytp-equalizer-bar-middle",N:{height:"14",width:"4",x:"6",y:"2"}},{Z:"rect",A:"ytp-equalizer-bar-right",N:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.api=k;this.bottomButtons=this.jE("ytp-muted-autoplay-bottom-buttons");this.J=new g.iX(this.W,4E3,this);this.B=!1;k.createClientVe(this.element,this,39306);this.K(k,"presentingplayerstatechange",this.j);this.K(k,"onMutedAutoplayStarts",()=>{e8E(this);this.j();BHO(this);this.B=!1}); this.K(k,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.K(k,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();k.isMutedByEmbedsMutedAutoplay()&&(e8E(this),this.j(),BHO(this));g.K(this,this.J)}j(){const k=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||k.S(2)?this.hide():this.Bc||(super.show(),this.api.logVisibility(this.element,this.Bc))}W(){this.S&&this.S.hide()}onAutoplayBlocked(){this.hide();MW(this.api.getVideoData())}onClick(){if(!this.B){g.N(this.api.getRootNode(), "ytp-muted-autoplay",!1);var k=this.api.getVideoData(),U=this.api.getCurrentTime();MW(k);this.api.loadVideoById(k.videoId,U);this.api.po();this.api.logClick(this.element);g.wh(this.api,"onMutedAutoplayEnds");this.B=!0}}onMutedAutoplayEnds(){this.watermark&&(this.watermark.Q$(),this.watermark=null)}};var sOs=class extends g.l{constructor(k){super({Z:"div",A:"ytp-pause-overlay",N:{tabIndex:"-1"}});this.api=k;this.j=new g.HW(this);this.fade=new g.Wf(this,1E3,!1,100,()=>{this.S.B=!1},()=>{this.S.B=!0}); this.B=!1;this.expandButton=new g.l({Z:"button",O4:["ytp-button","ytp-expand"],zJ:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"});k.U().controlsType==="0"&&g.F_(k.getRootNode(),"ytp-pause-overlay-controls-hidden");g.K(this,this.j);g.K(this,this.fade);const U=new g.l({Z:"button",O4:["ytp-button","ytp-collapse"],N:{"aria-label":this.api.isEmbedsShortsMode()?"Ocultar Shorts":"Ocultar mais v\u00eddeos"},G:[{Z:"div",A:"ytp-collapse-icon",G:[g.tu()]}]});g.K(this,U);U.E4(this.element);U.listen("click", this.J,this);g.K(this,this.expandButton);this.expandButton.E4(this.element);this.expandButton.listen("click",this.W,this);this.S=new g.Usi(k);g.K(this,this.S);this.S.B=!1;this.S.E4(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.j.K(this.api,"presentingplayerstatechange",this.U4);this.j.K(this.api,"videodatachange",this.U4);this.hide()}hide(){g.Oe(this.api.getRootNode(),"ytp-expand-pause-overlay"); super.hide()}J(){this.B=!0;g.Oe(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()}W(){this.B=!1;g.F_(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()}U4(){const k=this.api.getPlayerStateObject();k.S(1)||k.S(16)||k.S(32)||(!k.S(4)||k.S(2)||k.S(1024)?(this.B||this.api.logVisibility(this.element,!1),this.fade.hide()):this.S.hasSuggestions()&& (this.B||(g.F_(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.HZ(this.S),this.S.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))}};var MD_=class extends g.l{constructor(k){super({Z:"div",O4:["ytp-player-content","ytp-iv-player-content"],G:[{Z:"div",A:"ytp-countdown-timer",G:[{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},G:[{Z:"circle",A:"ytp-svg-countdown-timer-ring",N:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{Z:"circle",A:"ytp-svg-countdown-timer-background",N:{cx:"-36",cy:"36","fill-opacity":"0", r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3","stroke-width":"4",transform:"rotate(-90)"}}]},{Z:"span",A:"ytp-countdown-timer-time",zJ:"{{duration}}"}]}]});this.api=k;this.V=this.jE("ytp-svg-countdown-timer-ring");this.S=null;this.J=this.j=0;this.B=!1;this.W=0;this.api.createClientVe(this.element,this,159628)}show(){super.show();this.api.logVisibility(this.element,!0)}stopTimer(){this.S&&(this.S.dispose(),this.S=null,this.B=!1)}Q$(){this.stopTimer();super.Q$()}};g.Jq("embed",class extends g.eX{constructor(k){super(k);this.O=k;this.S=new g.HW(this);this.B=null;this.L=!1;this.countdownTimer=null;this.D=!1;k7(this);g.K(this,this.S);this.load()}VE(){return!1}create(){var k=this.O.U();const U=g.Ec(this.O),n=this.O.getVideoData()?.clientPlaybackNonce;n&&g.Ym({clientPlaybackNonce:n});k.TJ&&!k.disableOrganicUi&&DTB(this);k.getWebPlayerContextConfig()?.embedsEnableEmc3ds||(this.X=new frV(this.O),g.K(this,this.X),g.$Z(this.O,this.X.element,4),this.Y=new G0_(this.O), g.K(this,this.Y),g.$Z(this.O,this.Y.element,4));k.Nf&&(this.watermark=new JzV(this.O),g.K(this,this.watermark),g.$Z(this.O,this.watermark.element,8));U&&!k.disableOrganicUi&&(this.V=new jOm(this.O,U),g.K(this,this.V),g.$Z(this.O,this.V.element,8),this.O.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.V.hide()));k.B&&!k.disableOrganicUi&&(this.dM=new S6V(this.O),g.K(this,this.dM),g.$Z(this.O,this.dM.element,4));this.S.K(this.O,"appresize",this.DP);this.S.K(this.O,"presentingplayerstatechange", this.b_);this.S.K(this.O,"videodatachange",this.onVideoDataChange);this.S.K(this.O,"videoplayerreset",this.onReset);this.S.K(this.O,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.S.K(this.O,"onAdStart",this.onAdStart);this.S.K(this.O,"onAdComplete",this.onAdComplete);this.S.K(this.O,"onAdSkip",this.onAdSkip);this.S.K(this.O,"onAdStateChange",this.onAdStateChange);if(this.L=g.Wv(g.XG(k)))this.countdownTimer=new MD_(this.O),g.K(this,this.countdownTimer),g.$Z(this.O,this.countdownTimer.element, 4),this.countdownTimer.hide(),this.S.K(this.O,g.aQ("embeds"),this.onCueRangeEnter),this.S.K(this.O,g.$g("embeds"),this.onCueRangeExit);this.xF(this.O.getPlayerStateObject());this.O.U().getWebPlayerContextConfig()?.embedsHostFlags?.allowOverridingVisitorDataPlayerVars&&(k=g.Y("IDENTITY_MEMENTO"))&&g.uM(this.O,"onMementoChange",k)}onCueRangeEnter(k){k.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),PuV(this.countdownTimer))}onCueRangeExit(k){k.getId()==="countdown timer"&& this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())}DP(){const k=this.O.vy().getPlayerSize();this.m$&&this.m$.resize(k)}onReset(){k7(this)}b_(k){this.xF(k.state)}xF(k){k.S(128)?(this.m$||(this.m$=new WWb(this.O),g.K(this,this.m$),g.$Z(this.O,this.m$.element,4)),this.m$.B(k.WS),this.m$.show(),g.F_(this.O.getRootNode(),"ytp-embed-error")):this.m$&&(this.m$.dispose(),this.m$=null,g.Oe(this.O.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.S)if(k.S(64))this.countdownTimer.hide(), this.countdownTimer.stopTimer();else if(k.isPaused()){var U=this.countdownTimer;U.B||(U.B=!0,U.W=(0,g.D)())}else k.isPlaying()&&this.countdownTimer.B&&(U=this.countdownTimer,U.B&&(U.J+=(0,g.D)()-U.W,U.B=!1,x$(U)));Y6B(this,k)}onMutedAutoplayStarts(){this.O.getVideoData().mutedAutoplay&&this.X&&g.N(this.O.getRootNode(),"ytp-muted-autoplay",!0)}onVideoDataChange(k,U){const n=this.Ei!==U.videoId;k=!n&&k==="dataloaded";const Z={isShortsModeEnabled:!!this.O.isEmbedsShortsMode()};g.Rt("embedsVideoDataDidChange", {clientPlaybackNonce:U.clientPlaybackNonce,isReload:k,runtimeEnabledFeatures:Z});n&&(this.Ei=U.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.L&&(this.O.Wn("embeds"),U.isAd()||U.limitedPlaybackDurationInSeconds<5||g.KB(this.O)||(U=Math.max((U.startSeconds+U.limitedPlaybackDurationInSeconds-5)*1E3,0),U=new g.sc(U,U+5E3,{id:"countdown timer",namespace:"embeds"}),this.O.oA([U]))),this.O.U().TJ&&!this.O.U().disableOrganicUi&&(k7(this),DTB(this)));this.O.U().j&& this.j&&this.j.detach()}onAdStart(){ix(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")}onAdComplete(){ix(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")}onAdSkip(){ix(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")}onAdStateChange(k){k===2&&ix(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")}});})(_yt_player);