(function(g){var window=this;'use strict';var Ux=function(d){d.mutedAutoplay=!1;d.endSeconds=NaN;d.limitedPlaybackDurationInSeconds=NaN;g.FI(d)},GW=function(){return{D:"svg", U:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},N:[{D:"path",ef:!0,W:"ytp-svg-fill",U:{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"}}]}}, pUX=function(){return{D:"svg", U:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},N:[{D:"path",U:{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"}},{D:"path",U:{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"}},{D:"path",U:{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"}},{D:"path",U:{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"}},{D:"path",U:{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"}},{D:"path",U:{"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"}}]}},dn=function(d,f){if(d.api.L().Z("web_player_log_click_before_generating_ve_conversion_params")){var m=Math.floor(-d.scrollPosition/(d.V+d.A)); const y=Math.min(m+d.columns,d.suggestionData.length)-1;for(;m<=y;m++)d.api.logVisibility(d.S[m].element,f)}},f5=function(d){d.next.element.style.bottom=`${d.Y}px`; d.previous.element.style.bottom=`${d.Y}px`;const f=d.scrollPosition,m=d.containerWidth-d.suggestionData.length*(d.V+d.A);g.n(d.element,"ytp-scroll-min",f>=0);g.n(d.element,"ytp-scroll-max",f<=m)},$ax=function(d){let f=0; for(;f{AzU(d,e,B)})),f&&B.setAttribute("target",f),m=g.C_("DIV"),m.appendChild(B),y.appendChild(m)))}},ms=function(d){if(d.runs)for(let f=0;f{yH(d)},null),yH(d))},C5=function(d){var f=d.J; d=!!f.isEmbedsShortsMode();g.n(f.getRootNode(),"ytp-shorts-mode",d);if(f=f.getVideoData())f.PC=d},XUU=function(d){const f=g.LAT(d.J); f!==d.K&&(d.K=f,d.Y&&(d.Y.dispose(),d.Y=null),d.V&&(d.V.dispose(),d.V=null),d.j&&(d.j.dispose(),d.j=null),d.A&&(d.A.stop(),d.A.dispose(),d.A=null),f&&(g.O8(d.J),d.J.isEmbedsShortsMode()&&(d.j=new g.Y({D:"div",W:"ytp-pause-overlay-backdrop",U:{tabIndex:"-1"}}),g.I(d,d.j),g.lW(d.J,d.j.element,4),d.A=new g.TC(d.j,1E3,!1,100),g.I(d,d.A),d.j.hide()),d.Y=new g.Y({D:"div",W:"ytp-pause-overlay-container",U:{tabIndex:"-1"}}),g.I(d,d.Y),d.V=new IYf(d.J),g.I(d,d.V),d.V.TL(d.Y.element),g.lW(d.J,d.Y.element,4), uhP(d,d.J.getPlayerStateObject())))},uhP=function(d,f){d.A&&(!f.S(4)&&!f.S(2)||f.S(1024)?d.A.hide():d.A.show())},B8=function(d,f){const m=d.J.L(); d={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:d.J.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":d.J.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.G1(d.J.L().loaderUrl),eventType:f,youtubeHost:g.wG(d.J.L().CQ)||""};d.embeddedPlayerMode=m.hP;g.Dv("embedsAdEvent",d)},RTP=class extends g.Y{constructor(d){super({D:"div", W:"ytp-related-on-error-overlay"});this.api=d;this.Y=this.A=0;this.j=new g.OM(this);this.S=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.Y({D:"h2",W:"ytp-related-title",aP:"{{title}}"});this.previous=new g.Y({D:"button",oP:["ytp-button","ytp-previous"],U:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},N:[g.Wp()]});this.G=new g.T8P(f=>{this.suggestions.element.scrollLeft=-f}); this.V=this.scrollPosition=0;this.C=!0;this.next=new g.Y({D:"button",oP:["ytp-button","ytp-next"],U:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},N:[g.cp()]});g.I(this,this.j);d=d.L();this.B=d.j;g.I(this,this.title);this.title.TL(this.element);this.suggestions=new g.Y({D:"div",W:"ytp-suggestions"});g.I(this,this.suggestions);this.suggestions.TL(this.element);g.I(this,this.previous);this.previous.TL(this.element);this.previous.listen("click",this.X,this);g.I(this,this.G);for(let f=0;f<16;f++){const m= new g.Y({D:"a",W:"ytp-suggestion-link",U:{href:"{{link}}",target:d.K,"aria-label":"{{aria_label}}"},N:[{D:"div",W:"ytp-suggestion-image",N:[{D:"div",U:{"data-is-live":"{{is_live}}"},W:"ytp-suggestion-duration",aP:"{{duration}}"}]},{D:"div",W:"ytp-suggestion-title",U:{title:"{{hover_title}}"},aP:"{{title}}"},{D:"div",W:"ytp-suggestion-author",aP:"{{views_or_author}}"}]});g.I(this,m);m.TL(this.suggestions.element);const y=m.ue("ytp-suggestion-link");g.RV(y,"transitionDelay",`${f/20}s`);this.j.O(y,"click", C=>{var B=f,e=this.suggestionData[B];const M=e.sessionData;g.Rs(this.api.L())&&this.api.Z("web_player_log_click_before_generating_ve_conversion_params")?(this.api.logClick(this.S[B].element),B=e.fQ(),e={},g.nE(this.api,e),B=g.Mj(B,e),g.Y4(B,this.api,C)):g.w6(C,this.api,this.B,M||void 0)&&this.api.Ow(e.videoId,M,e.playlistId)}); this.S.push(m)}g.I(this,this.next);this.next.TL(this.element);this.next.listen("click",this.K,this);this.j.O(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.So().getPlayerSize());this.onVideoDataChange();this.show()}hide(){this.C=!0;super.hide();dn(this,!1)}show(){this.C=!1;super.show();dn(this,!0)}isHidden(){return this.C}K(){this.scrollTo(this.scrollPosition-this.containerWidth)}X(){this.scrollTo(this.scrollPosition+this.containerWidth)}resize(d,f){var m=this.api.L(),y=16/ 9,C=d.width>=650,B=d.width<480||d.height<290,e=Math.min(this.suggestionData.length,this.S.length);if(Math.min(d.width,d.height)<=150||e===0||!m.ws)this.hide();else{var M;if(C){var K=M=28;this.A=16}else this.A=K=M=8;if(B){var N=6;C=14;var W=12;B=24;m=12}else N=8,C=18,W=16,B=36,m=16;d=d.width-(48+M+K);M=Math.ceil(d/150);M=Math.min(3,M);K=d/M-this.A;var c=Math.floor(K/y);f&&c+100>f&&K>50&&(c=Math.max(f,50/y),M=Math.ceil(d/(y*(c-100)+this.A)),K=d/M-this.A,c=Math.floor(K/y));K<50||g.Rz(this.api)?this.hide(): this.show();for(f=0;fm&&!m.playlistId):this.suggestionData.length=0; $ax(this);d.jP?this.title.update({title:g.xB("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:d.author})}):this.title.update({title:"M\u00e1s v\u00eddeos de YouTube"})}scrollTo(d){d=g.a5(d,this.containerWidth-this.suggestionData.length*(this.V+this.A),0);this.G.start(this.scrollPosition,d,1E3);this.scrollPosition=d;f5(this);dn(this,!0)}};var nJf=class extends g.Og_{constructor(d){super(d);this.S=null;const f=d.L(),m={target:f.K},y=["ytp-small-redirect"];if(f.V)y.push("no-link");else{const B=g.Ra(f);m.href=B;m["aria-label"]="Ve a YouTube para buscar m\u00e1s v\u00eddeos"}const C=new g.Y({D:"a",oP:y,U:m,N:[{D:"svg",U:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},N:[{D:"path",U:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",U:{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.TL(this.element);d.createClientVe(C.element,this,178053);this.O(C.element,"click",B=>{AzU(this,B,C.element)}); g.I(this,C);f.V||f.disableOrganicUi||(this.S=new RTP(d),this.S.TL(this.element),g.I(this,this.S));this.O(d,"videodatachange",()=>{this.show()}); this.resize(this.api.So().getPlayerSize())}show(){super.show();kDN(this,this.api.So().getPlayerSize())}resize(d){super.resize(d);this.S&&(kDN(this,d),g.n(this.element,"related-on-error-overlay-visible",!this.S.isHidden()))}A(d){super.A(d);const f=this.api.getVideoData();if(f.eZ||f.playerErrorMessageRenderer)(d=f.eZ)?ODt(this,d):f.playerErrorMessageRenderer&&ODt(this,f.playerErrorMessageRenderer);else{let m;d.XH&&(f.qL?ms(f.qL)?m=g.Nk(f.qL):m=g.Bv(g.K$(f.qL)):m=g.Bv(d.XH),this.setContent(m,"subreason"))}}};var ZDy=class extends g.Y{constructor(d,f){super({D:"a",oP:["ytp-impression-link"],U:{target:"{{target}}",href:"{{url}}","aria-label":"Ver en YouTube"},N:[{D:"div",W:"ytp-impression-link-content",U:{"aria-hidden":"true"},N:[{D:"div",W:"ytp-impression-link-text",aP:"Ver en"},{D:"div",W:"ytp-impression-link-logo",aP:"{{logoSvg}}"}]}]});this.api=d;this.A=f;this.updateValue("target",d.L().K);this.O(d,"videodatachange",this.onVideoDataChange);this.O(this.api,"presentingplayerstatechange",this.Fe);this.O(this.api, "videoplayerreset",this.S);this.O(this.element,"click",this.onClick);this.onVideoDataChange();this.S()}onVideoDataChange(){const d=this.api.getVideoData();let f=GW(),m=96714;g.iW(d)?(f=pUX(),m=216165,g.wE(this.element,"ytp-music-impression-link")):g.Uh(this.element,"ytp-music-impression-link");this.updateValue("logoSvg",f);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,m)}Fe(){this.api.getPlayerStateObject().isCued()||(this.hide(),this.api.logVisibility(this.element, !1))}S(){var d=this.api.getVideoData();const f=this.api.L(),m=this.api.getVideoData().jP,y=!f.ws,C=this.A.b5(),B=f.V;f.Lk||C||m||y||B||this.api.isEmbedsShortsMode()||!d.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(d=oJx(this),this.updateValue("url",d),this.show())}onClick(d){this.api.Z("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const f=oJx(this);g.Y4(f,this.api,d);this.api.Z("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 VZf=class extends g.Y{constructor(d){super({D:"div",oP:["ytp-mobile-a11y-hidden-seek-button"],N:[{D:"button",oP:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],U:{"aria-label":"Retroceder 10 segundos","aria-hidden":"false"}},{D:"button",oP:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],U:{"aria-label":"Avanzar 10 segundos","aria-hidden":"false"}}]});this.api=d;this.S=this.ue("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.ue("ytp-mobile-a11y-hidden-seek-button-forward"); this.api.createClientVe(this.S,this,141902);this.api.createClientVe(this.forwardButton,this,141903);this.O(this.api,"presentingplayerstatechange",this.Fe);this.O(this.S,"click",this.A);this.O(this.forwardButton,"click",this.V);this.Fe()}Fe(){const d=this.api.getPlayerStateObject();!this.api.fd()||d.S(2)&&g.uW(this.api)||d.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))}A(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.S)}V(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)}};var lYP=class extends g.Y{constructor(d){super({D:"div",W:"ytp-muted-autoplay-endscreen-overlay",N:[{D:"div",W:"ytp-muted-autoplay-end-panel",N:[{D:"button",oP:["ytp-muted-autoplay-end-text","ytp-button"],aP:"{{text}}"}]}]});this.api=d;this.j=this.ue("ytp-muted-autoplay-end-panel");this.A=!1;this.api.createClientVe(this.element,this,52428);this.O(this.api,"presentingplayerstatechange",this.V);this.O(d,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()}V(){var d= this.api.getPlayerStateObject();const f=this.api.getVideoData();g.n(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!f.mutedAutoplay||f.limitedPlaybackDurationInSeconds===0&&f.endSeconds===0&&f.mutedAutoplayDurationMode===2||(d.S(2)&&!this.qW?(this.show(),this.S||(this.S=new g.kEf(this.api),g.I(this,this.S),this.S.TL(this.j,0),this.S.show()),d=this.api.getVideoData(),this.updateValue("text",d.gq),g.n(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element, this.qW),g.$4(this.api,"onMutedAutoplayEnds")):this.hide())}onClick(){if(!this.A){this.S&&(this.S.j1(),this.S=null);g.n(this.api.getRootNode(),"ytp-muted-autoplay",!1);var d=this.api.getVideoData(),f=this.api.getCurrentTime();Ux(d);this.api.loadVideoById(d.videoId,f);this.api.LU();this.api.logClick(this.element);this.hide();this.A=!0}}onMutedAutoplayStarts(){this.A=!1;this.S&&(this.S.j1(),this.S=null)}};var hTU=class extends g.Y{constructor(d){const f=d.L();super({D:"a",oP:["ytp-watermark","yt-uix-sessionlink"],U:{target:f.K,href:"{{url}}","aria-label":g.xB("Ver en $WEBSITE",{WEBSITE:g.Ai(f)}),"data-sessionlink":"feature=player-watermark"},aP:"{{logoSvg}}"});this.api=d;this.S=null;this.A=!1;this.state=d.getPlayerStateObject();this.O(d,"videodatachange",this.onVideoDataChange);this.O(d,"presentingplayerstatechange",this.onStateChange);this.O(d,"appresize",this.X$);this.onVideoDataChange();this.sM(this.state); this.X$(d.So().getPlayerSize())}onStateChange(d){this.sM(d.state)}sM(d){this.state!==d&&(this.state=d);aYt(this)}onVideoDataChange(){var d=this.api.L();d.V&&g.wE(this.element,"ytp-no-hover");const f=this.api.getVideoData();f.videoId&&!d.V?(d=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",d),this.S||(this.S=this.listen("click",this.onClick))):this.S&&(this.updateValue("url",null),this.Zc(this.S),this.S=null);d=GW();let m=76758;g.iW(f)&&(d=pUX(),m=216164);this.updateValue("logoSvg",d);this.api.hasVe(this.element)&& this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,m);aYt(this)}onClick(d){this.api.Z("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);let f=this.api.getVideoUrl(!g.T4(d),!1,!0,!0);if(this.api.Z("web_player_log_click_before_generating_ve_conversion_params")){const m={};g.pE(this.api,"addEmbedsConversionTrackingParams",[m]);f=g.Mj(f,m)}g.Y4(f,this.api,d);this.api.Z("web_player_log_click_before_generating_ve_conversion_params")|| this.api.logClick(this.element)}X$(d){if((d=d.width<480)&&!this.A||!d&&this.A){const f=new g.Y(GW()),m=this.ue("ytp-watermark");g.n(m,"ytp-watermark-small",d);g.MV(m);f.TL(m);this.A=d}}};var xaf=class extends g.Y{constructor(d){super({D:"div",W:"ytp-muted-autoplay-overlay",N:[{D:"div",W:"ytp-muted-autoplay-bottom-buttons",N:[{D:"button",oP:["ytp-muted-autoplay-equalizer","ytp-button"],U:{"aria-label":"Indicador de reproducci\u00f3n sin sonido"},N:[{D:"div",oP:["ytp-muted-autoplay-equalizer-icon"],N:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},N:[{D:"g",U:{fill:"#fff"},N:[{D:"rect",W:"ytp-equalizer-bar-left",U:{height:"9",width:"4",x:"1",y:"7"}},{D:"rect", W:"ytp-equalizer-bar-middle",U:{height:"14",width:"4",x:"6",y:"2"}},{D:"rect",W:"ytp-equalizer-bar-right",U:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.api=d;this.bottomButtons=this.ue("ytp-muted-autoplay-bottom-buttons");this.j=new g.vg(this.Y,4E3,this);this.A=!1;d.createClientVe(this.element,this,39306);this.O(d,"presentingplayerstatechange",this.V);this.O(d,"onMutedAutoplayStarts",()=>{FbE(this);this.V();rzV(this);this.A=!1}); this.O(d,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.O(d,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();d.isMutedByEmbedsMutedAutoplay()&&(FbE(this),this.V(),rzV(this));g.I(this,this.j)}V(){const d=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||d.S(2)?this.hide():this.qW||(super.show(),this.api.logVisibility(this.element,this.qW))}Y(){this.S&&this.S.hide()}onAutoplayBlocked(){this.hide();Ux(this.api.getVideoData())}onClick(){if(!this.A){g.n(this.api.getRootNode(), "ytp-muted-autoplay",!1);var d=this.api.getVideoData(),f=this.api.getCurrentTime();Ux(d);this.api.loadVideoById(d.videoId,f);this.api.LU();this.api.logClick(this.element);g.$4(this.api,"onMutedAutoplayEnds");this.A=!0}}onMutedAutoplayEnds(){this.watermark&&(this.watermark.j1(),this.watermark=null)}};var IYf=class extends g.Y{constructor(d){super({D:"div",W:"ytp-pause-overlay",U:{tabIndex:"-1"}});this.api=d;this.V=new g.OM(this);this.fade=new g.TC(this,1E3,!1,100,()=>{this.S.A=!1},()=>{this.S.A=!0}); this.A=!1;this.expandButton=new g.Y({D:"button",oP:["ytp-button","ytp-expand"],aP:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"});d.L().controlsType==="0"&&g.wE(d.getRootNode(),"ytp-pause-overlay-controls-hidden");g.I(this,this.V);g.I(this,this.fade);const f=new g.Y({D:"button",oP:["ytp-button","ytp-collapse"],U:{"aria-label":this.api.isEmbedsShortsMode()?"Ocultar m\u00e1s Shorts":"Ocultar m\u00e1s v\u00eddeos"},N:[{D:"div",W:"ytp-collapse-icon",N:[g.r1()]}]});g.I(this,f); f.TL(this.element);f.listen("click",this.j,this);g.I(this,this.expandButton);this.expandButton.TL(this.element);this.expandButton.listen("click",this.Y,this);this.S=new g.qdU(d);g.I(this,this.S);this.S.A=!1;this.S.TL(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.V.O(this.api,"presentingplayerstatechange",this.wD);this.V.O(this.api,"videodatachange",this.wD);this.hide()}hide(){g.Uh(this.api.getRootNode(), "ytp-expand-pause-overlay");super.hide()}j(){this.A=!0;g.Uh(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()}Y(){this.A=!1;g.wE(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()}wD(){const d=this.api.getPlayerStateObject();d.S(1)||d.S(16)||d.S(32)||(!d.S(4)||d.S(2)||d.S(1024)?(this.A||this.api.logVisibility(this.element, !1),this.fade.hide()):this.S.hasSuggestions()&&(this.A||(g.wE(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.kH(this.S),this.S.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))}};var P8V=class extends g.Y{constructor(d){super({D:"div",oP:["ytp-player-content","ytp-iv-player-content"],N:[{D:"div",W:"ytp-countdown-timer",N:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},N:[{D:"circle",W:"ytp-svg-countdown-timer-ring",U:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{D:"circle",W:"ytp-svg-countdown-timer-background",U:{cx:"-36",cy:"36","fill-opacity":"0", r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3","stroke-width":"4",transform:"rotate(-90)"}}]},{D:"span",W:"ytp-countdown-timer-time",aP:"{{duration}}"}]}]});this.api=d;this.C=this.ue("ytp-svg-countdown-timer-ring");this.S=null;this.j=this.V=0;this.A=!1;this.Y=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.A=!1)}j1(){this.stopTimer();super.j1()}};g.Pc("embed",class extends g.Ln{constructor(d){super(d);this.J=d;this.S=new g.OM(this);this.A=null;this.B=!1;this.countdownTimer=null;this.K=!1;C5(this);g.I(this,this.S);this.load()}On(){return!1}create(){var d=this.J.L();const f=g.O8(this.J),m=this.J.getVideoData()?.clientPlaybackNonce;m&&g.PI({clientPlaybackNonce:m});d.CC&&!d.disableOrganicUi&&XUU(this);d.getWebPlayerContextConfig()?.embedsEnableEmc3ds||(this.G=new xaf(this.J),g.I(this,this.G),g.lW(this.J,this.G.element,4),this.X=new lYP(this.J), g.I(this,this.X),g.lW(this.J,this.X.element,4));d.Lk&&(this.watermark=new hTU(this.J),g.I(this,this.watermark),g.lW(this.J,this.watermark.element,8));f&&!d.disableOrganicUi&&(this.C=new ZDy(this.J,f),g.I(this,this.C),g.lW(this.J,this.C.element,8),this.J.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.C.hide()));d.A&&!d.disableOrganicUi&&(this.rD=new VZf(this.J),g.I(this,this.rD),g.lW(this.J,this.rD.element,4));this.S.O(this.J,"appresize",this.X$);this.S.O(this.J,"presentingplayerstatechange", this.Fe);this.S.O(this.J,"videodatachange",this.onVideoDataChange);this.S.O(this.J,"videoplayerreset",this.onReset);this.S.O(this.J,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.S.O(this.J,"onAdStart",this.onAdStart);this.S.O(this.J,"onAdComplete",this.onAdComplete);this.S.O(this.J,"onAdSkip",this.onAdSkip);this.S.O(this.J,"onAdStateChange",this.onAdStateChange);if(this.B=g.zX(g.DM(d)))this.countdownTimer=new P8V(this.J),g.I(this,this.countdownTimer),g.lW(this.J,this.countdownTimer.element, 4),this.countdownTimer.hide(),this.S.O(this.J,g.X7("embeds"),this.onCueRangeEnter),this.S.O(this.J,g.Rj("embeds"),this.onCueRangeExit);this.uo(this.J.getPlayerStateObject());this.J.L().getWebPlayerContextConfig()?.embedsHostFlags?.allowOverridingVisitorDataPlayerVars&&(d=g.P("IDENTITY_MEMENTO"))&&g.A9(this.J,"onMementoChange",d)}onCueRangeEnter(d){d.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),gJZ(this.countdownTimer))}onCueRangeExit(d){d.getId()==="countdown timer"&& this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())}X$(){const d=this.J.So().getPlayerSize();this.Dj&&this.Dj.resize(d)}onReset(){C5(this)}Fe(d){this.uo(d.state)}uo(d){d.S(128)?(this.Dj||(this.Dj=new nJf(this.J),g.I(this,this.Dj),g.lW(this.J,this.Dj.element,4)),this.Dj.A(d.t8),this.Dj.show(),g.wE(this.J.getRootNode(),"ytp-embed-error")):this.Dj&&(this.Dj.dispose(),this.Dj=null,g.Uh(this.J.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.S)if(d.S(64))this.countdownTimer.hide(), this.countdownTimer.stopTimer();else if(d.isPaused()){var f=this.countdownTimer;f.A||(f.A=!0,f.Y=(0,g.v)())}else d.isPlaying()&&this.countdownTimer.A&&(f=this.countdownTimer,f.A&&(f.j+=(0,g.v)()-f.Y,f.A=!1,yH(f)));uhP(this,d)}onMutedAutoplayStarts(){this.J.getVideoData().mutedAutoplay&&this.G&&g.n(this.J.getRootNode(),"ytp-muted-autoplay",!0)}onVideoDataChange(d,f){const m=this.zo!==f.videoId;d=!m&&d==="dataloaded";const y={isShortsModeEnabled:!!this.J.isEmbedsShortsMode()};g.Dv("embedsVideoDataDidChange", {clientPlaybackNonce:f.clientPlaybackNonce,isReload:d,runtimeEnabledFeatures:y});m&&(this.zo=f.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.B&&(this.J.Jy("embeds"),f.isAd()||f.limitedPlaybackDurationInSeconds<5||g.Rz(this.J)||(f=Math.max((f.startSeconds+f.limitedPlaybackDurationInSeconds-5)*1E3,0),f=new g.qu(f,f+5E3,{id:"countdown timer",namespace:"embeds"}),this.J.AB([f]))),this.J.L().CC&&!this.J.L().disableOrganicUi&&(C5(this),XUU(this)));this.J.L().V&& this.V&&this.V.detach()}onAdStart(){B8(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")}onAdComplete(){B8(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")}onAdSkip(){B8(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")}onAdStateChange(d){d===2&&B8(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")}});})(_yt_player);