(function(g){var window=this;'use strict';var RJ=function(R){R.mutedAutoplay=!1;R.endSeconds=NaN;R.limitedPlaybackDurationInSeconds=NaN;g.V0(R)},w0=function(){return{j:"svg", A:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},N:[{j:"path",FI:!0,Z:"ytp-svg-fill",A:{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"}}]}}, OPm=function(){return{j:"svg", A:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},N:[{j:"path",A:{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"}},{j:"path",A:{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"}},{j:"path",A:{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"}},{j:"path",A:{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"}},{j:"path",A:{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"}},{j:"path",A:{"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"}}]}},pC=function(R,w){if(R.api.V().Y("web_player_log_click_before_generating_ve_conversion_params")){var p=Math.floor(-R.scrollPosition/(R.O+R.C)); const r=Math.min(p+R.columns,R.suggestionData.length)-1;for(;p<=r;p++)R.api.logVisibility(R.L[p].element,w)}},r0=function(R){R.next.element.style.bottom=`${R.K}px`; R.previous.element.style.bottom=`${R.K}px`;const w=R.scrollPosition,p=R.containerWidth-R.suggestionData.length*(R.O+R.C);g.M(R.element,"ytp-scroll-min",w>=0);g.M(R.element,"ytp-scroll-max",w<=p)},Kwi=function(R){let w=0; for(;w{EKM(R,I,G)})),w&&G.setAttribute("target",w),p=g.sW("DIV"),p.appendChild(G),r.appendChild(p)))}},fC=function(R){if(R.runs)for(let w=0;w{Gy(R)},null),Gy(R))},IJ=function(R){var w=R.B; R=!!w.isEmbedsShortsMode();g.M(w.getRootNode(),"ytp-shorts-mode",R);if(w=w.getVideoData())w.f7=R},Yjk=function(R){const w=g.oGI(R.B); w!==R.X&&(R.X=w,R.K&&(R.K.dispose(),R.K=null),R.O&&(R.O.dispose(),R.O=null),R.G&&(R.G.dispose(),R.G=null),R.C&&(R.C.stop(),R.C.dispose(),R.C=null),w&&(g.qS(R.B),R.B.isEmbedsShortsMode()&&(R.G=new g.k({j:"div",Z:"ytp-pause-overlay-backdrop",A:{tabIndex:"-1"}}),g.K(R,R.G),g.P7(R.B,R.G.element,4),R.C=new g.HU(R.G,1E3,!1,100),g.K(R,R.C),R.G.hide()),R.K=new g.k({j:"div",Z:"ytp-pause-overlay-container",A:{tabIndex:"-1"}}),g.K(R,R.K),R.O=new dy6(R.B),g.K(R,R.O),R.O.gN(R.K.element),g.P7(R.B,R.K.element,4), ZPU(R,R.B.getPlayerStateObject())))},ZPU=function(R,w){R.C&&(!w.L(4)&&!w.L(2)||w.L(1024)?R.C.hide():R.C.show())},CC=function(R,w){const p=R.B.V(); R={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:R.B.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":R.B.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.zH(R.B.V().loaderUrl),eventType:w,youtubeHost:g.sH(R.B.V().ZI)||""};R.embeddedPlayerMode=p.I0;g.Rv("embedsAdEvent",R)},FwP=class extends g.k{constructor(R){super({j:"div", Z:"ytp-related-on-error-overlay"});this.api=R;this.K=this.C=0;this.G=new g.th(this);this.L=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.k({j:"h2",Z:"ytp-related-title",fB:"{{title}}"});this.previous=new g.k({j:"button",E0:["ytp-button","ytp-previous"],A:{"aria-label":"Show previous suggested videos"},N:[g.pQ()]});this.U=new g.NpU(w=>{this.suggestions.element.scrollLeft=-w}); this.O=this.scrollPosition=0;this.J=!0;this.next=new g.k({j:"button",E0:["ytp-button","ytp-next"],A:{"aria-label":"Show more suggested videos"},N:[g.rQ()]});g.K(this,this.G);R=R.V();this.D=R.G;g.K(this,this.title);this.title.gN(this.element);this.suggestions=new g.k({j:"div",Z:"ytp-suggestions"});g.K(this,this.suggestions);this.suggestions.gN(this.element);g.K(this,this.previous);this.previous.gN(this.element);this.previous.listen("click",this.S,this);g.K(this,this.U);for(let w=0;w<16;w++){const p= new g.k({j:"a",Z:"ytp-suggestion-link",A:{href:"{{link}}",target:R.X,"aria-label":"{{aria_label}}"},N:[{j:"div",Z:"ytp-suggestion-image",N:[{j:"div",A:{"data-is-live":"{{is_live}}"},Z:"ytp-suggestion-duration",fB:"{{duration}}"}]},{j:"div",Z:"ytp-suggestion-title",A:{title:"{{hover_title}}"},fB:"{{title}}"},{j:"div",Z:"ytp-suggestion-author",fB:"{{views_or_author}}"}]});g.K(this,p);p.gN(this.suggestions.element);const r=p.KB("ytp-suggestion-link");g.Z2(r,"transitionDelay",`${w/20}s`);this.G.W(r,"click", f=>{var G=w,I=this.suggestionData[G];const C=I.sessionData;g.zI(this.api.V())&&this.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(this.api.logClick(this.L[G].element),G=I.dS(),I={},g.ee(this.api,I),G=g.bu(G,I),g.gH(G,this.api,f)):g.ha(f,this.api,this.D,C||void 0)&&this.api.WC(I.videoId,C,I.playlistId)}); this.L.push(p)}g.K(this,this.next);this.next.gN(this.element);this.next.listen("click",this.X,this);this.G.W(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.L_().getPlayerSize());this.onVideoDataChange();this.show()}hide(){this.J=!0;super.hide();pC(this,!1)}show(){this.J=!1;super.show();pC(this,!0)}isHidden(){return this.J}X(){this.scrollTo(this.scrollPosition-this.containerWidth)}S(){this.scrollTo(this.scrollPosition+this.containerWidth)}resize(R,w){var p=this.api.V(),r=16/ 9,f=R.width>=650,G=R.width<480||R.height<290,I=Math.min(this.suggestionData.length,this.L.length);if(Math.min(R.width,R.height)<=150||I===0||!p.WB)this.hide();else{var C;if(f){var u=C=28;this.C=16}else this.C=u=C=8;if(G){var m=6;f=14;var z=12;G=24;p=12}else m=8,f=18,z=16,G=36,p=16;R=R.width-(48+C+u);C=Math.ceil(R/150);C=Math.min(3,C);u=R/C-this.C;var B=Math.floor(u/r);w&&B+100>w&&u>50&&(B=Math.max(w,50/r),C=Math.ceil(R/(r*(B-100)+this.C)),u=R/C-this.C,B=Math.floor(u/r));u<50||g.Dw(this.api)?this.hide(): this.show();for(w=0;wp&&!p.playlistId):this.suggestionData.length=0; Kwi(this);R.h$?this.title.update({title:g.K2("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:R.author})}):this.title.update({title:"More videos on YouTube"})}scrollTo(R){R=g.MN(R,this.containerWidth-this.suggestionData.length*(this.O+this.C),0);this.U.start(this.scrollPosition,R,1E3);this.scrollPosition=R;r0(this);pC(this,!0)}};var jzk=class extends g.KuU{constructor(R){super(R);this.L=null;const w=R.V(),p={target:w.X},r=["ytp-small-redirect"];if(w.O)r.push("no-link");else{const G=g.Pa(w);p.href=G;p["aria-label"]="Visit YouTube to search for more videos"}const f=new g.k({j:"a",E0:r,A:p,N:[{j:"svg",A:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},N:[{j:"path",A:{d:"M0 0h24v24H0V0z",fill:"none"}},{j:"path",A:{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"}}]}]}); f.gN(this.element);R.createClientVe(f.element,this,178053);this.W(f.element,"click",G=>{EKM(this,G,f.element)}); g.K(this,f);w.O||w.disableOrganicUi||(this.L=new FwP(R),this.L.gN(this.element),g.K(this,this.L));this.W(R,"videodatachange",()=>{this.show()}); this.resize(this.api.L_().getPlayerSize())}show(){super.show();Dyt(this,this.api.L_().getPlayerSize())}resize(R){super.resize(R);this.L&&(Dyt(this,R),g.M(this.element,"related-on-error-overlay-visible",!this.L.isHidden()))}C(R){super.C(R);const w=this.api.getVideoData();if(w.Ky||w.playerErrorMessageRenderer)(R=w.Ky)?McM(this,R):w.playerErrorMessageRenderer&&McM(this,w.playerErrorMessageRenderer);else{let p;R.S_&&(w.T8?fC(w.T8)?p=g.R$(w.T8):p=g.pE(g.Su(w.T8)):p=g.pE(R.S_),this.setContent(p,"subreason"))}}};var JKU=class extends g.k{constructor(R,w){super({j:"a",E0:["ytp-impression-link"],A:{target:"{{target}}",href:"{{url}}","aria-label":"Watch on YouTube"},N:[{j:"div",Z:"ytp-impression-link-content",A:{"aria-hidden":"true"},N:[{j:"div",Z:"ytp-impression-link-text",fB:"Watch on"},{j:"div",Z:"ytp-impression-link-logo",fB:"{{logoSvg}}"}]}]});this.api=R;this.C=w;this.updateValue("target",R.V().X);this.W(R,"videodatachange",this.onVideoDataChange);this.W(this.api,"presentingplayerstatechange",this.fd); this.W(this.api,"videoplayerreset",this.L);this.W(this.element,"click",this.onClick);this.onVideoDataChange();this.L()}onVideoDataChange(){const R=this.api.getVideoData();let w=w0(),p=96714;g.Ir(R)?(w=OPm(),p=216165,g.pc(this.element,"ytp-music-impression-link")):g.fc(this.element,"ytp-music-impression-link");this.updateValue("logoSvg",w);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,p)}fd(){this.api.getPlayerStateObject().isCued()||(this.hide(), this.api.logVisibility(this.element,!1))}L(){var R=this.api.getVideoData();const w=this.api.V(),p=this.api.getVideoData().h$,r=!w.WB,f=this.C.dl(),G=w.O;w.Af||f||p||r||G||this.api.isEmbedsShortsMode()||!R.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(R=cKV(this),this.updateValue("url",R),this.show())}onClick(R){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const w=cKV(this);g.gH(w,this.api,R);this.api.Y("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 TUP=class extends g.k{constructor(R){super({j:"div",E0:["ytp-mobile-a11y-hidden-seek-button"],N:[{j:"button",E0:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],A:{"aria-label":"Rewind 10 seconds","aria-hidden":"false"}},{j:"button",E0:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],A:{"aria-label":"Fast forward 10 seconds","aria-hidden":"false"}}]});this.api=R;this.L=this.KB("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.KB("ytp-mobile-a11y-hidden-seek-button-forward"); this.api.createClientVe(this.L,this,141902);this.api.createClientVe(this.forwardButton,this,141903);this.W(this.api,"presentingplayerstatechange",this.fd);this.W(this.L,"click",this.C);this.W(this.forwardButton,"click",this.O);this.fd()}fd(){const R=this.api.getPlayerStateObject();!this.api.Wo()||R.L(2)&&g.Kg(this.api)||R.L(64)?(this.api.logVisibility(this.L,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.L,!0),this.api.logVisibility(this.forwardButton, !0))}C(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.L)}O(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)}};var iPb=class extends g.k{constructor(R){super({j:"div",Z:"ytp-muted-autoplay-endscreen-overlay",N:[{j:"div",Z:"ytp-muted-autoplay-end-panel",N:[{j:"button",E0:["ytp-muted-autoplay-end-text","ytp-button"],fB:"{{text}}"}]}]});this.api=R;this.G=this.KB("ytp-muted-autoplay-end-panel");this.C=!1;this.api.createClientVe(this.element,this,52428);this.W(this.api,"presentingplayerstatechange",this.O);this.W(R,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()}O(){var R= this.api.getPlayerStateObject();const w=this.api.getVideoData();g.M(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!w.mutedAutoplay||w.limitedPlaybackDurationInSeconds===0&&w.endSeconds===0&&w.mutedAutoplayDurationMode===2||(R.L(2)&&!this.K_?(this.show(),this.L||(this.L=new g.taM(this.api),g.K(this,this.L),this.L.gN(this.G,0),this.L.show()),R=this.api.getVideoData(),this.updateValue("text",R.Kk),g.M(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element, this.K_),g.xs(this.api,"onMutedAutoplayEnds")):this.hide())}onClick(){if(!this.C){this.L&&(this.L.Gy(),this.L=null);g.M(this.api.getRootNode(),"ytp-muted-autoplay",!1);var R=this.api.getVideoData(),w=this.api.getCurrentTime();RJ(R);this.api.loadVideoById(R.videoId,w);this.api.yP();this.api.logClick(this.element);this.hide();this.C=!0}}onMutedAutoplayStarts(){this.C=!1;this.L&&(this.L.Gy(),this.L=null)}};var aeb=class extends g.k{constructor(R){const w=R.V();super({j:"a",E0:["ytp-watermark","yt-uix-sessionlink"],A:{target:w.X,href:"{{url}}","aria-label":g.K2("Watch on $WEBSITE",{WEBSITE:g.qU(w)}),"data-sessionlink":"feature=player-watermark"},fB:"{{logoSvg}}"});this.api=R;this.L=null;this.C=!1;this.state=R.getPlayerStateObject();this.W(R,"videodatachange",this.onVideoDataChange);this.W(R,"presentingplayerstatechange",this.onStateChange);this.W(R,"appresize",this.LL);this.onVideoDataChange();this.kp(this.state); this.LL(R.L_().getPlayerSize())}onStateChange(R){this.kp(R.state)}kp(R){this.state!==R&&(this.state=R);Pfm(this)}onVideoDataChange(){var R=this.api.V();R.O&&g.pc(this.element,"ytp-no-hover");const w=this.api.getVideoData();w.videoId&&!R.O?(R=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",R),this.L||(this.L=this.listen("click",this.onClick))):this.L&&(this.updateValue("url",null),this.o9(this.L),this.L=null);R=w0();let p=76758;g.Ir(w)&&(R=OPm(),p=216164);this.updateValue("logoSvg",R);this.api.hasVe(this.element)&& this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,p);Pfm(this)}onClick(R){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);let w=this.api.getVideoUrl(!g.$t(R),!1,!0,!0);if(this.api.Y("web_player_log_click_before_generating_ve_conversion_params")){const p={};g.W7(this.api,"addEmbedsConversionTrackingParams",[p]);w=g.bu(w,p)}g.gH(w,this.api,R);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")|| this.api.logClick(this.element)}LL(R){if((R=R.width<480)&&!this.C||!R&&this.C){const w=new g.k(w0()),p=this.KB("ytp-watermark");g.M(p,"ytp-watermark-small",R);g.Bc(p);w.gN(p);this.C=R}}};var QzS=class extends g.k{constructor(R){super({j:"div",Z:"ytp-muted-autoplay-overlay",N:[{j:"div",Z:"ytp-muted-autoplay-bottom-buttons",N:[{j:"button",E0:["ytp-muted-autoplay-equalizer","ytp-button"],A:{"aria-label":"Muted Playback Indicator"},N:[{j:"div",E0:["ytp-muted-autoplay-equalizer-icon"],N:[{j:"svg",A:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},N:[{j:"g",A:{fill:"#fff"},N:[{j:"rect",Z:"ytp-equalizer-bar-left",A:{height:"9",width:"4",x:"1",y:"7"}},{j:"rect",Z:"ytp-equalizer-bar-middle", A:{height:"14",width:"4",x:"6",y:"2"}},{j:"rect",Z:"ytp-equalizer-bar-right",A:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.api=R;this.bottomButtons=this.KB("ytp-muted-autoplay-bottom-buttons");this.G=new g.vZ(this.K,4E3,this);this.C=!1;R.createClientVe(this.element,this,39306);this.W(R,"presentingplayerstatechange",this.O);this.W(R,"onMutedAutoplayStarts",()=>{$yb(this);this.O();XrM(this);this.C=!1}); this.W(R,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.W(R,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();R.isMutedByEmbedsMutedAutoplay()&&($yb(this),this.O(),XrM(this));g.K(this,this.G)}O(){const R=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||R.L(2)?this.hide():this.K_||(super.show(),this.api.logVisibility(this.element,this.K_))}K(){this.L&&this.L.hide()}onAutoplayBlocked(){this.hide();RJ(this.api.getVideoData())}onClick(){if(!this.C){g.M(this.api.getRootNode(), "ytp-muted-autoplay",!1);var R=this.api.getVideoData(),w=this.api.getCurrentTime();RJ(R);this.api.loadVideoById(R.videoId,w);this.api.yP();this.api.logClick(this.element);g.xs(this.api,"onMutedAutoplayEnds");this.C=!0}}onMutedAutoplayEnds(){this.watermark&&(this.watermark.Gy(),this.watermark=null)}};var dy6=class extends g.k{constructor(R){super({j:"div",Z:"ytp-pause-overlay",A:{tabIndex:"-1"}});this.api=R;this.O=new g.th(this);this.fade=new g.HU(this,1E3,!1,100,()=>{this.L.C=!1},()=>{this.L.C=!0}); this.C=!1;this.expandButton=new g.k({j:"button",E0:["ytp-button","ytp-expand"],fB:this.api.isEmbedsShortsMode()?"More shorts":"More videos"});R.V().controlsType==="0"&&g.pc(R.getRootNode(),"ytp-pause-overlay-controls-hidden");g.K(this,this.O);g.K(this,this.fade);const w=new g.k({j:"button",E0:["ytp-button","ytp-collapse"],A:{"aria-label":this.api.isEmbedsShortsMode()?"Hide more shorts":"Hide more videos"},N:[{j:"div",Z:"ytp-collapse-icon",N:[g.lE()]}]});g.K(this,w);w.gN(this.element);w.listen("click", this.G,this);g.K(this,this.expandButton);this.expandButton.gN(this.element);this.expandButton.listen("click",this.K,this);this.L=new g.kMV(R);g.K(this,this.L);this.L.C=!1;this.L.gN(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.O.W(this.api,"presentingplayerstatechange",this.WS);this.O.W(this.api,"videodatachange",this.WS);this.hide()}hide(){g.fc(this.api.getRootNode(),"ytp-expand-pause-overlay"); super.hide()}G(){this.C=!0;g.fc(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()}K(){this.C=!1;g.pc(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()}WS(){const R=this.api.getPlayerStateObject();R.L(1)||R.L(16)||R.L(32)||(!R.L(4)||R.L(2)||R.L(1024)?(this.C||this.api.logVisibility(this.element,!1),this.fade.hide()):this.L.hasSuggestions()&& (this.C||(g.pc(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.bw(this.L),this.L.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))}};var hIa=class extends g.k{constructor(R){super({j:"div",E0:["ytp-player-content","ytp-iv-player-content"],N:[{j:"div",Z:"ytp-countdown-timer",N:[{j:"svg",A:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},N:[{j:"circle",Z:"ytp-svg-countdown-timer-ring",A:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{j:"circle",Z:"ytp-svg-countdown-timer-background",A:{cx:"-36",cy:"36","fill-opacity":"0", r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3","stroke-width":"4",transform:"rotate(-90)"}}]},{j:"span",Z:"ytp-countdown-timer-time",fB:"{{duration}}"}]}]});this.api=R;this.J=this.KB("ytp-svg-countdown-timer-ring");this.L=null;this.G=this.O=0;this.C=!1;this.K=0;this.api.createClientVe(this.element,this,159628)}show(){super.show();this.api.logVisibility(this.element,!0)}stopTimer(){this.L&&(this.L.dispose(),this.L=null,this.C=!1)}Gy(){this.stopTimer();super.Gy()}};g.XA("embed",class extends g.F2{constructor(R){super(R);this.B=R;this.L=new g.th(this);this.C=null;this.D=!1;this.countdownTimer=null;this.X=!1;IJ(this);g.K(this,this.L);this.load()}dR(){return!1}create(){var R=this.B.V();const w=g.qS(this.B),p=this.B.getVideoData()?.clientPlaybackNonce;p&&g.sT({clientPlaybackNonce:p});R.nB&&!R.disableOrganicUi&&Yjk(this);R.getWebPlayerContextConfig()?.embedsEnableEmc3ds||(this.U=new QzS(this.B),g.K(this,this.U),g.P7(this.B,this.U.element,4),this.S=new iPb(this.B), g.K(this,this.S),g.P7(this.B,this.S.element,4));R.Af&&(this.watermark=new aeb(this.B),g.K(this,this.watermark),g.P7(this.B,this.watermark.element,8));w&&!R.disableOrganicUi&&(this.J=new JKU(this.B,w),g.K(this,this.J),g.P7(this.B,this.J.element,8),this.B.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.J.hide()));R.C&&!R.disableOrganicUi&&(this.pB=new TUP(this.B),g.K(this,this.pB),g.P7(this.B,this.pB.element,4));this.L.W(this.B,"appresize",this.LL);this.L.W(this.B,"presentingplayerstatechange", this.fd);this.L.W(this.B,"videodatachange",this.onVideoDataChange);this.L.W(this.B,"videoplayerreset",this.onReset);this.L.W(this.B,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.L.W(this.B,"onAdStart",this.onAdStart);this.L.W(this.B,"onAdComplete",this.onAdComplete);this.L.W(this.B,"onAdSkip",this.onAdSkip);this.L.W(this.B,"onAdStateChange",this.onAdStateChange);if(this.D=g.En(g.xW(R)))this.countdownTimer=new hIa(this.B),g.K(this,this.countdownTimer),g.P7(this.B,this.countdownTimer.element, 4),this.countdownTimer.hide(),this.L.W(this.B,g.bp("embeds"),this.onCueRangeEnter),this.L.W(this.B,g.yl("embeds"),this.onCueRangeExit);this.I9(this.B.getPlayerStateObject());this.B.V().getWebPlayerContextConfig()?.embedsHostFlags?.allowOverridingVisitorDataPlayerVars&&(R=g.n("IDENTITY_MEMENTO"))&&g.lK(this.B,"onMementoChange",R)}onCueRangeEnter(R){R.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),nK6(this.countdownTimer))}onCueRangeExit(R){R.getId()==="countdown timer"&& this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())}LL(){const R=this.B.L_().getPlayerSize();this.tF&&this.tF.resize(R)}onReset(){IJ(this)}fd(R){this.I9(R.state)}I9(R){R.L(128)?(this.tF||(this.tF=new jzk(this.B),g.K(this,this.tF),g.P7(this.B,this.tF.element,4)),this.tF.C(R.Yu),this.tF.show(),g.pc(this.B.getRootNode(),"ytp-embed-error")):this.tF&&(this.tF.dispose(),this.tF=null,g.fc(this.B.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.L)if(R.L(64))this.countdownTimer.hide(), this.countdownTimer.stopTimer();else if(R.isPaused()){var w=this.countdownTimer;w.C||(w.C=!0,w.K=(0,g.T)())}else R.isPlaying()&&this.countdownTimer.C&&(w=this.countdownTimer,w.C&&(w.G+=(0,g.T)()-w.K,w.C=!1,Gy(w)));ZPU(this,R)}onMutedAutoplayStarts(){this.B.getVideoData().mutedAutoplay&&this.U&&g.M(this.B.getRootNode(),"ytp-muted-autoplay",!0)}onVideoDataChange(R,w){const p=this.g0!==w.videoId;R=!p&&R==="dataloaded";const r={isShortsModeEnabled:!!this.B.isEmbedsShortsMode()};g.Rv("embedsVideoDataDidChange", {clientPlaybackNonce:w.clientPlaybackNonce,isReload:R,runtimeEnabledFeatures:r});p&&(this.g0=w.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.D&&(this.B.P1("embeds"),w.isAd()||w.limitedPlaybackDurationInSeconds<5||g.Dw(this.B)||(w=Math.max((w.startSeconds+w.limitedPlaybackDurationInSeconds-5)*1E3,0),w=new g.Ja(w,w+5E3,{id:"countdown timer",namespace:"embeds"}),this.B.C3([w]))),this.B.V().nB&&!this.B.V().disableOrganicUi&&(IJ(this),Yjk(this)));this.B.V().O&& this.O&&this.O.detach()}onAdStart(){CC(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")}onAdComplete(){CC(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")}onAdSkip(){CC(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")}onAdStateChange(R){R===2&&CC(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")}});})(_yt_player);