(function(g){var window=this;'use strict';var jhb=function(a){a.mutedAutoplay=!1;a.endSeconds=NaN;a.limitedPlaybackDurationInSeconds=NaN;g.qO(a)},khb=function(){return{G:"svg", Y:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},X:[{G:"path",zc:!0,S:"ytp-svg-fill",Y:{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"}}]}}, lhb=function(a){g.X.call(this,{G:"div", S:"ytp-related-on-error-overlay"});var b=this;this.api=a;this.J=this.u=0;this.D=new g.fK(this);this.j=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.X({G:"h2",S:"ytp-related-title",Aa:"{{title}}"});this.previous=new g.X({G:"button",Ma:["ytp-button","ytp-previous"],Y:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},X:[g.jR()]});this.oa=new g.h3(function(f){b.suggestions.element.scrollLeft=-f}); this.C=this.B=0;this.K=!0;this.next=new g.X({G:"button",Ma:["ytp-button","ytp-next"],Y:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},X:[g.kR()]});g.G(this,this.D);a=a.W();this.V=a.C;g.G(this,this.title);this.title.Ia(this.element);this.suggestions=new g.X({G:"div",S:"ytp-suggestions"});g.G(this,this.suggestions);this.suggestions.Ia(this.element);g.G(this,this.previous);this.previous.Ia(this.element);this.previous.Ua("click",this.Q_,this);g.G(this,this.oa);for(var c={Uw:0};16>c.Uw;c={Uw:c.Uw}, c.Uw++){var d=new g.X({G:"a",S:"ytp-suggestion-link",Y:{href:"{{link}}",target:a.ea,"aria-label":"{{aria_label}}"},X:[{G:"div",S:"ytp-suggestion-image",X:[{G:"div",Y:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",Aa:"{{duration}}"}]},{G:"div",S:"ytp-suggestion-title",Y:{title:"{{hover_title}}"},Aa:"{{title}}"},{G:"div",S:"ytp-suggestion-author",Aa:"{{views_or_author}}"}]});g.G(this,d);d.Ia(this.suggestions.element);var e=d.Ha("ytp-suggestion-link");g.qn(e,"transitionDelay",c.Uw/20+"s"); this.D.T(e,"click",function(f){return function(h){var l=f.Uw,m=b.suggestionData[l],n=m.sessionData;g.rM(b.api.W())&&b.api.N("web_player_log_click_before_generating_ve_conversion_params")?(b.api.ub(b.j[l].element),l=m.Mk(),m={},g.eKa(b.api,m,"emb_rel_err"),l=g.Ij(l,m),g.tT(l,b.api,h)):g.sT(h,b.api,b.V,n||void 0)&&b.api.oo(m.videoId,n,m.playlistId)}}(c)); this.j.push(d)}g.G(this,this.next);this.next.Ia(this.element);this.next.Ua("click",this.P_,this);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.qb().getPlayerSize());this.onVideoDataChange();this.show()},mhb=function(a,b){if(a.api.W().N("web_player_log_click_before_generating_ve_conversion_params"))for(var c=Math.floor(-a.B/(a.C+a.u)),d=Math.min(c+a.columns,a.suggestionData.length)-1;c<=d;c++)a.api.Za(a.j[c].element,b)},nhb=function(a){a.next.element.style.bottom= a.J+"px"; a.previous.element.style.bottom=a.J+"px";var b=a.B,c=a.containerWidth-a.suggestionData.length*(a.C+a.u);g.Cq(a.element,"ytp-scroll-min",0<=b);g.Cq(a.element,"ytp-scroll-max",b<=c)},ohb=function(a){for(var b=0;b=b&&a.j?j6(a):a.j&&a.j.start()}},j6=function(a){a.j&&(a.j.dispose(),a.j=null,a.u=!1)},Bhb=function(a){g.dU.call(this,a); this.I=a;this.j=new g.fK(this);this.u=null;this.K=!1;this.countdownTimer=null;this.ea=!1;Ahb(this);g.G(this,this.j);this.load()},Dhb=function(a){var b=g.b9a(a.I); b!==a.ea&&(a.ea=b,a.D&&(a.D.dispose(),a.D=null),a.B&&(a.B.dispose(),a.B=null),a.C&&(a.C.dispose(),a.C=null),a.u&&(a.u.stop(),a.u.dispose(),a.u=null),b&&(b=g.MS(a.I),g.$S(a.I)&&(a.C=new g.X({G:"div",S:"ytp-pause-overlay-backdrop",Y:{tabIndex:"-1"}}),g.G(a,a.C),g.cT(a.I,a.C.element,4),a.u=new g.ER(a.C,1E3,!1,100),g.G(a,a.u),a.C.hide()),a.B=new h6(a.I,b),g.G(a,a.B),a.D=new g.X({G:"div",S:"ytp-pause-overlay-container",Y:{tabIndex:"-1"},X:[a.B]}),g.G(a,a.D),g.cT(a.I,a.D.element,4),Chb(a,a.I.Nb())))},Chb= function(a,b){a.u&&(!g.HP(b,4)&&!g.HP(b,2)||g.HP(b,1024)?a.u.hide():a.u.show())},Ahb=function(a){var b=a.I; a=!!g.$S(b);g.Cq(b.getRootNode(),"ytp-shorts-mode",a);if(b=b.getVideoData())b.DS=a},k6=function(a,b){a={adSource:"EMBEDS_AD_SOURCE_YOUTUBE", breakType:0===a.I.getCurrentTime()?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":0===a.I.getPlayerState()?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.qfa(a.I.W().loaderUrl),eventType:b,youtubeHost:g.qj(a.I.W().Ra)||""};g.lB("embedsAdEvent",a)}; g.x(lhb,g.X);g.k=lhb.prototype;g.k.hide=function(){this.K=!0;g.X.prototype.hide.call(this);mhb(this,!1)}; g.k.show=function(){this.K=!1;g.X.prototype.show.call(this);mhb(this,!0)}; g.k.isHidden=function(){return this.K}; g.k.P_=function(){this.scrollTo(this.B-this.containerWidth)}; g.k.Q_=function(){this.scrollTo(this.B+this.containerWidth)}; g.k.resize=function(a,b){var c=this.api.W(),d=16/9,e=650<=a.width,f=480>a.width||290>a.height,h=Math.min(this.suggestionData.length,this.j.length);if(150>=Math.min(a.width,a.height)||0===h||!c.Gd)this.hide();else{var l;if(e){var m=l=28;this.u=16}else this.u=m=l=8;if(f){var n=6;e=14;var p=12;f=24;c=12}else n=8,e=18,p=16,f=36,c=16;a=a.width-(48+l+m);l=Math.ceil(a/150);l=Math.min(3,l);m=a/l-this.u;var q=Math.floor(m/d);b&&q+100>b&&50m||g.ZS(this.api)?this.hide():this.show();for(b=0;bm?"none":""}h=e+n+p+4;this.J=h+c+(q-f)/2;this.suggestions.element.style.height=q+h+"px";this.C=m;this.containerWidth=a;this.columns=l;this.B=0;this.suggestions.element.scrollLeft= -0;nhb(this)}}; g.k.onVideoDataChange=function(){var a=this.api.getVideoData(),b=this.api.W();this.V=a.Ed?!1:b.C;a.suggestions?this.suggestionData=g.zo(a.suggestions,function(c){return c&&!c.playlistId}):this.suggestionData.length=0; ohb(this);a.Ed?this.title.update({title:g.VP("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:"Mais v\u00eddeos no YouTube"})}; g.k.scrollTo=function(a){a=g.re(a,this.containerWidth-this.suggestionData.length*(this.C+this.u),0);this.oa.start(this.B,a,1E3);this.B=a;nhb(this);mhb(this,!0)};g.x(c6,g.wU);c6.prototype.show=function(){g.wU.prototype.show.call(this);qhb(this,this.api.qb().getPlayerSize())}; c6.prototype.resize=function(a){g.wU.prototype.resize.call(this,a);this.j&&(qhb(this,a),g.Cq(this.element,"related-on-error-overlay-visible",!this.j.isHidden()))}; c6.prototype.u=function(a){g.wU.prototype.u.call(this,a);var b=this.api.getVideoData();if(b.HJ||b.playerErrorMessageRenderer)(a=b.HJ)?thb(this,a):b.playerErrorMessageRenderer&&thb(this,b.playerErrorMessageRenderer);else{var c;a.Vm&&(b.Ex?rhb(b.Ex)?c=g.gG(b.Ex):c=g.xU(g.fG(b.Ex)):c=g.xU(a.Vm),this.pe(c,"subreason"))}};g.x(d6,g.X);d6.prototype.Ui=function(){this.api.Nb().isCued()||(this.hide(),this.api.Za(this.element,!1))}; d6.prototype.j=function(){var a=this.api.getVideoData(),b=this.api.W(),c=this.api.getVideoData().Ed,d=b.Od,e=!b.Gd,f=this.u.jh(),h=g.AM(b);b=b.B;d||f||c||e||h||b||g.$S(this.api)||!a.videoId?(this.hide(),this.api.Za(this.element,!1)):(a=uhb(this),this.updateValue("url",a),this.show())}; d6.prototype.onClick=function(a){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.ub(this.element);var b=uhb(this);g.tT(b,this.api,a);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.ub(this.element)}; d6.prototype.show=function(){this.api.Nb().isCued()&&(g.X.prototype.show.call(this),this.api.Pk(this.element)&&this.api.Za(this.element,!0))};g.x(e6,g.X);e6.prototype.Ui=function(){var a=this.api.Nb();!this.api.Kh()||g.HP(a,2)&&g.WS(this.api)||g.HP(a,64)?(this.api.Za(this.j,!1),this.api.Za(this.forwardButton,!1),this.hide()):(this.show(),this.api.Za(this.j,!0),this.api.Za(this.forwardButton,!0))}; e6.prototype.u=function(){this.api.seekBy(-10*this.api.getPlaybackRate());this.api.ub(this.j)}; e6.prototype.B=function(){this.api.seekBy(10*this.api.getPlaybackRate());this.api.ub(this.forwardButton)};g.x(f6,g.X);f6.prototype.B=function(){var a=this.api.Nb(),b=this.api.getVideoData();this.api.W().N("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.HP(a,2)&&!this.Fb?(this.show(),this.j||(this.j=new g.uU(this.api),g.G(this,this.j),this.j.Ia(this.C,0),this.j.show()),a=this.api.getVideoData(),this.updateValue("text",a.KW),g.Cq(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.Za(this.element,this.Fb),this.api.Qa("onMutedAutoplayEnds")):this.hide())}; f6.prototype.onClick=function(){if(!this.u){this.j&&(this.j.xa(),this.j=null);g.Cq(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();jhb(a);this.api.loadVideoById(a.videoId,b);this.api.wz();this.api.ub(this.element);this.hide();this.u=!0}}; f6.prototype.onMutedAutoplayStarts=function(){this.u=!1;this.j&&(this.j.xa(),this.j=null)};g.x(g6,g.X);g.k=g6.prototype;g.k.HZ=function(){var a=this.api.getVideoData(),b=this.api.getVideoData(1).Ed,c=this.api.W();b=c.Od&&!g.HP(this.state,2)&&!(b&&c.oa);a.mutedAutoplay||g.fR(this,b);this.api.Za(this.element,b)}; g.k.onStateChange=function(a){this.yc(a.state)}; g.k.yc=function(a){this.state!==a&&(this.state=a);this.HZ()}; g.k.onVideoDataChange=function(){var a=this.api.W();a.B&&g.yq(this.element,"ytp-no-hover");this.api.getVideoData().videoId&&!a.B?(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a),this.j||(this.j=this.Ua("click",this.onClick))):this.j&&(this.updateValue("url",null),this.Kc(this.j),this.j=null)}; g.k.onClick=function(a){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.ub(this.element);var b=this.api.getVideoUrl(!g.OR(a),!1,!0,!0);if(this.api.N("web_player_log_click_before_generating_ve_conversion_params")){var c={};g.KS(this.api,"addEmbedsConversionTrackingParams",[c]);b=g.Ij(b,g.CS(c,"emb_yt_watermark"))}g.tT(b,this.api,a);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.ub(this.element)}; g.k.Jb=function(a){if((a=480>a.width)&&!this.u||!a&&this.u){var b=new g.X(khb()),c=this.Ha("ytp-watermark");g.Cq(c,"ytp-watermark-small",a);g.lf(c);b.Ia(c);this.u=a}};g.x(xhb,g.X);g.k=xhb.prototype;g.k.QJ=function(){var a=this.api.Nb(),b=this.api.getVideoData();this.api.W().N("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&!g.HP(a,2)?this.Fb||(g.X.prototype.show.call(this),this.api.Za(this.element,this.Fb)):this.hide()}; g.k.Y4=function(){this.j&&this.j.hide()}; g.k.onAutoplayBlocked=function(){this.hide();jhb(this.api.getVideoData())}; g.k.onClick=function(){if(!this.u){g.Cq(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();jhb(a);this.api.loadVideoById(a.videoId,b);this.api.wz();this.api.ub(this.element);this.api.Qa("onMutedAutoplayEnds");this.u=!0}}; g.k.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.xa(),this.watermark=null)};g.x(h6,g.X);h6.prototype.hide=function(){g.Aq(this.api.getRootNode(),"ytp-expand-pause-overlay");g.X.prototype.hide.call(this)}; h6.prototype.D=function(){this.u=!0;g.Aq(this.api.getRootNode(),"ytp-expand-pause-overlay");g.$S(this.api)&&this.api.Za(this.element,!1);this.expandButton.focus()}; h6.prototype.J=function(){this.u=!1;g.yq(this.api.getRootNode(),"ytp-expand-pause-overlay");g.$S(this.api)&&this.api.Za(this.element,!0);this.focus()}; h6.prototype.Ta=function(a){a=this.api.W().N("embeds_web_enable_pause_overlay_wn_update")?this.api.Nb():a.state;g.HP(a,1)||g.HP(a,16)||g.HP(a,32)||(!g.HP(a,4)||g.HP(a,2)||g.HP(a,1024)?(this.u||this.api.Za(this.element,!1),this.C.hide()):0b.endSeconds||g.ZS(this.I)||(b=Math.max(1E3*(b.endSeconds-5),0),b=new g.YF(b,b+5E3,{id:"countdown timer",namespace:"embeds"}), this.I.cf([b]))),Ahb(this),Dhb(this));this.I.W().B&&this.B&&this.B.detach()}; g.k.onAdStart=function(){k6(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")}; g.k.onAdComplete=function(){k6(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")}; g.k.onAdSkip=function(){k6(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")}; g.k.onAdStateChange=function(a){2===a&&k6(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.cU("embed",Bhb);})(_yt_player);