(function(g){var window=this;'use strict';var bcb=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},W:[{G:"path",Wb:!0,K:"ytp-svg-fill",X:{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"}}]}},
ccb=function(a){g.U.call(this,{G:"div",
K:"ytp-related-on-error-overlay"});var b=this;this.api=a;this.I=this.j=0;this.C=new g.FF(this);this.B=[];this.suggestionData=[];this.containerWidth=0;this.title=new g.U({G:"h2",K:"ytp-related-title",qa:"{{title}}"});this.previous=new g.U({G:"button",Ha:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},W:[g.uN()]});this.Z=new g.B2(function(f){b.suggestions.element.scrollLeft=-f});
this.D=this.u=0;this.J=!0;this.next=new g.U({G:"button",Ha:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},W:[g.vN()]});g.D(this,this.C);a=a.V();this.T=a.B;g.D(this,this.title);this.title.Ea(this.element);this.suggestions=new g.U({G:"div",K:"ytp-suggestions"});g.D(this,this.suggestions);this.suggestions.Ea(this.element);g.D(this,this.previous);this.previous.Ea(this.element);this.previous.Ra("click",this.DY,this);g.D(this,this.Z);for(var c={mw:0};16>c.mw;c={mw:c.mw},c.mw++){var d=
new g.U({G:"a",K:"ytp-suggestion-link",X:{href:"{{link}}",target:a.ea,"aria-label":"{{aria_label}}"},W:[{G:"div",K:"ytp-suggestion-image",W:[{G:"div",X:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration",qa:"{{duration}}"}]},{G:"div",K:"ytp-suggestion-title",X:{title:"{{hover_title}}"},qa:"{{title}}"},{G:"div",K:"ytp-suggestion-author",qa:"{{views_or_author}}"}]});g.D(this,d);d.Ea(this.suggestions.element);var e=d.Da("ytp-suggestion-link");g.Bl(e,"transitionDelay",c.mw/20+"s");this.C.S(e,"click",
function(f){return function(h){var l=b.suggestionData[f.mw],m=l.sessionData;g.JR(h,b.api,b.T,m||void 0)&&b.api.En(l.videoId,m,l.playlistId)}}(c));
this.B.push(d)}g.D(this,this.next);this.next.Ea(this.element);this.next.Ra("click",this.CY,this);this.C.S(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.gb().getPlayerSize());this.onVideoDataChange();this.show()},dcb=function(a){a.next.element.style.bottom=a.I+"px";
a.previous.element.style.bottom=a.I+"px";var b=a.u,c=a.containerWidth-a.suggestionData.length*(a.D+a.j);g.qo(a.element,"ytp-scroll-min",0<=b);g.qo(a.element,"ytp-scroll-max",b<=c)},ecb=function(a){for(var b=0;b<a.suggestionData.length;b++){var c=a.suggestionData[b],d=a.B[b],e=c.shortViewCount?c.shortViewCount:c.author,f=c.Bo(),h=a.api.V();
if(g.AH(h)){var l={};h.Pa&&g.VP(l,h.loaderUrl);g.eQ(a.api,"addEmbedsConversionTrackingParams",[l]);f=g.ai(f,g.UP(l,"emb_rel_err"))}d.element.style.display="";h=d.Da("ytp-suggestion-title");g.Bo.test(c.title)?h.dir="rtl":g.W5a.test(c.title)&&(h.dir="ltr");h=d.Da("ytp-suggestion-author");g.Bo.test(e)?h.dir="rtl":g.W5a.test(e)&&(h.dir="ltr");d.update({views_or_author:e,duration:c.isLivePlayback?"Live":c.lengthSeconds?g.rO(c.lengthSeconds):"",link:f,hover_title:c.title,title:c.title,aria_label:c.ariaLabel||
null,is_live:c.isLivePlayback});d=d.Da("ytp-suggestion-image");c=c.gg();d.style.backgroundImage=c?"url("+c+")":""}for(;b<a.B.length;b++)a.B[b].element.style.display="none";dcb(a)},u5=function(a){g.OR.call(this,a);
var b=this;this.j=null;var c=a.V(),d={G:"svg",X:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M0 0h24v24H0V0z",fill:"none"}},{G:"path",X:{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"}}]};g.KH(c)&&(d={G:"svg",X:{fill:"none",height:"100%",
viewBox:"0 0 25 25",width:"100%"},W:[{G:"g",X:{"clip-path":"url(#clip0)",fill:"#fff"},W:[{G:"path",X:{d:"M12.57.98C6.21.98 1.05 6.14 1.05 12.5c0 6.36 5.16 11.52 11.52 11.52 6.36 0 11.52-5.16 11.52-11.52C24.09 6.14 18.93.98 12.57.98zm0 18.34c-3.77 0-6.82-3.05-6.82-6.82 0-3.77 3.05-6.82 6.82-6.82 3.77 0 6.82 3.05 6.82 6.82 0 3.77-3.05 6.82-6.82 6.82z"}},{G:"path",X:{d:"M12.57 6.52c-3.29 0-5.98 2.68-5.98 5.98 0 3.3 2.68 5.98 5.98 5.98 3.3 0 5.98-2.68 5.98-5.98 0-3.3-2.69-5.98-5.98-5.98zm-2.25 9.38V9.1l5.88 3.4-5.88 3.4z"}}]},
{G:"defs",W:[{G:"clipPath",X:{id:"clip0"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"#fff",transform:"translate(.57 .5)"}}]}]}]});var e={target:c.ea},f=["ytp-small-redirect"];c.C?f.push("no-link"):(c=g.hI(c),c=fcb(this,c),e.href=c,e["aria-label"]="Visit YouTube to search for more videos");d=new g.U({G:"a",Ha:f,X:e,W:[d]});d.Ea(this.element);g.D(this,d);a.V().C||(this.j=new ccb(a),this.j.Ea(this.element),g.D(this,this.j));this.iconSize=1;this.S(a,"videodatachange",function(){b.show()});
this.resize(this.api.gb().getPlayerSize())},gcb=function(a,b){a.Da("ytp-error-content").style.paddingTop="0px";
var c=a.Da("ytp-error-content"),d=c.clientHeight;a.j.resize(b,b.height-d);c.style.paddingTop=(b.height-a.j.element.clientHeight)/2-d/2+"px"},icb=function(a,b){var c=a.api.V(),d;
b.reason&&(hcb(b.reason)?d=g.PB(b.reason):d=g.PR(g.OB(b.reason)),a.ue(d,"content"));var e;b.subreason&&(hcb(b.subreason)?e=g.PB(b.subreason):e=g.PR(g.OB(b.subreason)),a.ue(e,"subreason"));if(b.proceedButton&&b.proceedButton.buttonRenderer&&(d=a.Da("ytp-error-content-wrap-subreason"),e=b.proceedButton.buttonRenderer,b=g.He("A"),e.text&&e.text.simpleText)){var f=e.text.simpleText;b.textContent=f;a:{for(var h=g.ve("A",d),l=0;l<h.length;l++)if(h[l].textContent===f){f=!0;break a}f=!1}if(!f&&(!c.C||c.embedsErrorLinks)){var m;
c=null==(m=g.N(null==e?void 0:e.navigationEndpoint,g.bJ))?void 0:m.url;var n;m=null==(n=g.N(null==e?void 0:e.navigationEndpoint,g.bJ))?void 0:n.target;c&&(c=fcb(a,c),b.setAttribute("href",c));m&&b.setAttribute("target",m);a=g.He("DIV");a.appendChild(b);d.appendChild(a)}}},hcb=function(a){if(a.runs)for(var b=0;b<a.runs.length;b++)if(a.runs[b].navigationEndpoint)return!0;
return!1},fcb=function(a,b){var c={},d=a.api.V();
d.Pa&&g.VP(c,d.loaderUrl);g.eQ(a.api,"addEmbedsConversionTrackingParams",[c]);return g.Pc(c)?b:g.ai(b,c)},v5=function(a,b){g.U.call(this,{G:"a",
Ha:["ytp-impression-link"],X:{target:"{{target}}",href:"{{url}}","aria-label":"Watch on YouTube"},W:[{G:"div",K:"ytp-impression-link-content",X:{"aria-hidden":"true"},W:[{G:"div",K:"ytp-impression-link-text",qa:"Watch on"},{G:"div",K:"ytp-impression-link-logo",W:[bcb()]}]}]});this.api=a;this.u=b;this.updateValue("target",a.V().ea);this.api.rb(this.element,this,96714);this.S(this.api,"presentingplayerstatechange",this.Fi);this.S(this.api,"videoplayerreset",this.j);this.S(this.element,"click",this.onClick);
this.j()},jcb=function(a){var b={},c=a.api.V();
c.Pa&&g.VP(b,c.loaderUrl);g.eQ(a.api,"addEmbedsConversionTrackingParams",[b]);return g.ai(a.api.getVideoUrl(),g.UP(b,"emb_imp_woyt"))},w5=function(a){g.U.call(this,{G:"div",
Ha:["ytp-mobile-a11y-hidden-seek-button"],W:[{G:"button",Ha:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],X:{"aria-label":"Rewind 10 seconds","aria-hidden":"false"}},{G:"button",Ha:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],X:{"aria-label":"Fast forward 10 seconds","aria-hidden":"false"}}]});this.api=a;this.j=this.Da("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.Da("ytp-mobile-a11y-hidden-seek-button-forward");this.api.rb(this.j,this,141902);this.api.rb(this.forwardButton,
this,141903);this.S(this.api,"presentingplayerstatechange",this.Fi);this.S(this.j,"click",this.u);this.S(this.forwardButton,"click",this.B);this.Fi()},x5=function(a){g.U.call(this,{G:"div",
K:"ytp-muted-autoplay-endscreen-overlay",W:[{G:"div",K:"ytp-muted-autoplay-end-panel",W:[{G:"div",K:"ytp-muted-autoplay-end-text",qa:"{{text}}"}]}]});this.api=a;this.B=this.Da("ytp-muted-autoplay-end-panel");this.j=new g.HR(this.api);g.D(this,this.j);this.j.Ea(this.B,0);this.api.rb(this.element,this,52428);this.S(this.api,"presentingplayerstatechange",this.u);this.Ra("click",this.onClick);this.hide()},y5=function(a){g.U.call(this,{G:"div",
K:"ytp-muted-autoplay-overlay",W:[{G:"div",K:"ytp-muted-autoplay-bottom-buttons",W:[{G:"button",Ha:["ytp-muted-autoplay-equalizer","ytp-button"],W:[{G:"div",Ha:["ytp-muted-autoplay-equalizer-icon"],W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},W:[{G:"g",X:{fill:"#fff"},W:[{G:"rect",K:"ytp-equalizer-bar-left",X:{height:"9",width:"4",x:"1",y:"7"}},{G:"rect",K:"ytp-equalizer-bar-middle",X:{height:"14",width:"4",x:"6",y:"2"}},{G:"rect",K:"ytp-equalizer-bar-right",X:{height:"12",
width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.api=a;this.bottomButtons=this.Da("ytp-muted-autoplay-bottom-buttons");this.Da("ytp-muted-autoplay-equalizer");this.B=new g.eo(this.u,4E3,this);a.rb(this.element,this,39306);this.S(a,"presentingplayerstatechange",this.j);this.S(a,"onMutedAutoplayStarts",this.j);this.Ra("click",this.onClick);this.hide()},z5=function(a,b){g.U.call(this,{G:"div",
K:"ytp-pause-overlay",X:{tabIndex:"-1"}});var c=this;this.api=a;this.j=b;this.D=new g.FF(this);this.I=new g.cO(this,1E3,!1,100,function(){c.u.u=!1},function(){c.u.u=!0});
this.C=!1;this.expandButton=new g.U({G:"button",Ha:["ytp-button","ytp-expand"],qa:this.j.td()?"More shorts":"More videos"});"0"===a.V().controlsType&&g.mo(a.getRootNode(),"ytp-pause-overlay-controls-hidden");g.D(this,this.D);g.D(this,this.I);var d=new g.U({G:"button",Ha:["ytp-button","ytp-collapse"],X:{"aria-label":this.j.td()?"Hide more shorts":"Hide more videos"},W:[{G:"div",K:"ytp-collapse-icon",W:[g.FN()]}]});g.D(this,d);d.Ea(this.element);d.Ra("click",this.J,this);g.D(this,this.expandButton);
this.expandButton.Ea(this.element);this.expandButton.Ra("click",this.T,this);this.u=new g.C2(a,b);g.D(this,this.u);this.u.u=!1;this.u.Ea(this.element);this.B=this.api.N("embeds_web_enable_more_videos_pause_overlay_ve_logging");this.j.td()?this.api.rb(this.element,this,157212):this.B&&this.api.rb(this.element,this,172777);this.D.S(this.api,"presentingplayerstatechange",this.La);a.V().N("embeds_web_enable_pause_overlay_wn_update")&&this.D.S(this.api,"videodatachange",this.La);this.hide()},kcb=function(a){var b=
a.V();
g.U.call(this,{G:"a",Ha:["ytp-watermark","yt-uix-sessionlink"],X:{target:b.ea,href:"{{url}}","aria-label":g.DL("Watch on $WEBSITE",{WEBSITE:g.VH(b)}),"data-sessionlink":"feature=player-watermark"},W:[bcb()]});this.api=a;this.j=null;this.u=!1;this.state=a.Gb();a.rb(this.element,this,76758);this.S(a,"videodatachange",this.AX);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"appresize",this.Eb);this.Cc(this.state);this.onVideoDataChange();
this.Eb(a.gb().getPlayerSize())},A5=function(a){g.U.call(this,{G:"div",
Ha:["ytp-player-content","ytp-iv-player-content"],W:[{G:"div",K:"ytp-countdown-timer",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},W:[{G:"circle",K:"ytp-svg-countdown-timer-ring",X:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{G:"circle",K:"ytp-svg-countdown-timer-background",X:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3",
"stroke-width":"4",transform:"rotate(-90)"}}]},{G:"span",K:"ytp-countdown-timer-time",qa:"{{duration}}"}]}]});this.api=a;this.I=this.Da("ytp-svg-countdown-timer-ring");this.j=null;this.C=this.B=0;this.u=!1;this.D=0;this.api.rb(this.element,this,159628)},mcb=function(a){a.j||(a.B=5E3,a.C=(0,g.O)(),a.j=new g.bo(function(){lcb(a)},null),lcb(a))},lcb=function(a){if(!a.u){var b=Math.min((0,g.O)()-a.C,a.B);
var c=a.B-b;b=0===a.B?0:Math.max(c/a.B,0);c=Math.round(c/1E3);a.I.setAttribute("stroke-dashoffset",""+-211*(b+1));a.updateValue("duration",c);0>=b&&a.j?B5(a):a.j&&a.j.start()}},B5=function(a){a.j&&(a.j.dispose(),a.j=null,a.u=!1)},ocb=function(a){g.iR.call(this,a);
this.F=a;this.j=new g.FF(this);this.u=null;this.J=!1;this.countdownTimer=null;this.Z=!1;ncb(this);g.D(this,this.j);this.load()},qcb=function(a){var b=g.E4a(a.F);
b!==a.Z&&(a.Z=b,a.I&&(a.I.dispose(),a.I=null),a.C&&(a.C.dispose(),a.C=null),a.D&&(a.D.dispose(),a.D=null),a.u&&(a.u.stop(),a.u.dispose(),a.u=null),b&&(b=g.hQ(a.F),b.td()&&(a.D=new g.U({G:"div",K:"ytp-pause-overlay-backdrop",X:{tabIndex:"-1"}}),g.D(a,a.D),g.zQ(a.F,a.D.element,4),a.u=new g.cO(a.D,1E3,!1,100),g.D(a,a.u),a.D.hide()),a.C=new z5(a.F,b),g.D(a,a.C),a.I=new g.U({G:"div",K:"ytp-pause-overlay-container",X:{tabIndex:"-1"},W:[a.C]}),g.D(a,a.I),g.zQ(a.F,a.I.element,4),pcb(a,a.F.Gb())))},pcb=function(a,
b){a.u&&(!g.T(b,4)&&!g.T(b,2)||g.T(b,1024)?a.u.hide():a.u.show())},ncb=function(a){var b=a.F,c;
a=!(null==(c=g.hQ(b))||!c.td());g.qo(b.getRootNode(),"ytp-shorts-mode",a);if(c=b.getVideoData())c.nP=a},C5=function(a,b){a={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",
breakType:0===a.F.getCurrentTime()?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":0===a.F.getPlayerState()?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.Sea(a.F.V().loaderUrl),eventType:b,youtubeHost:g.Th(a.F.V().Ma)||""};g.Bx("embedsAdEvent",a)};
g.w(ccb,g.U);g.k=ccb.prototype;g.k.hide=function(){this.J=!0;g.U.prototype.hide.call(this)};
g.k.show=function(){this.J=!1;g.U.prototype.show.call(this)};
g.k.isHidden=function(){return this.J};
g.k.CY=function(){this.scrollTo(this.u-this.containerWidth)};
g.k.DY=function(){this.scrollTo(this.u+this.containerWidth)};
g.k.resize=function(a,b){var c=this.api.V(),d=16/9,e=650<=a.width,f=480>a.width||290>a.height,h=Math.min(this.suggestionData.length,this.B.length);if(150>=Math.min(a.width,a.height)||0===h||!c.Qd)this.hide();else{var l;if(e){var m=l=28;this.j=16}else this.j=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);l=a/l-this.j;m=Math.floor(l/d);b&&m+100>b&&50<l&&(m=Math.max(b,50/d),l=Math.ceil(a/(d*(m-100)+this.j)),l=a/l-this.j,
m=Math.floor(l/d));50>l||g.wQ(this.api)?this.hide():this.show();for(b=0;b<h;b++){d=this.B[b];var q=d.Da("ytp-suggestion-image");q.style.width=l+"px";q.style.height=m+"px";d.Da("ytp-suggestion-title").style.width=l+"px";d.Da("ytp-suggestion-author").style.width=l+"px";d=d.Da("ytp-suggestion-duration");d.style.display=d&&100>l?"none":""}h=e+n+p+4;this.I=h+c+(m-f)/2;this.suggestions.element.style.height=m+h+"px";this.D=l;this.containerWidth=a;this.u=0;this.suggestions.element.scrollLeft=-0;dcb(this)}};
g.k.onVideoDataChange=function(){var a=this.api.getVideoData(),b=this.api.V();this.T=a.D?!1:b.B;a.suggestions?this.suggestionData=g.wm(a.suggestions,function(c){return c&&!c.playlistId}):this.suggestionData.length=0;
ecb(this);a.D?this.title.update({title:g.DL("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:"More videos on YouTube"})};
g.k.scrollTo=function(a){a=g.Vd(a,this.containerWidth-this.suggestionData.length*(this.D+this.j),0);this.Z.start(this.u,a,1E3);this.u=a;dcb(this)};g.w(u5,g.OR);u5.prototype.show=function(){g.OR.prototype.show.call(this);gcb(this,this.api.gb().getPlayerSize())};
u5.prototype.resize=function(a){g.OR.prototype.resize.call(this,a);this.j&&(gcb(this,a),g.qo(this.element,"related-on-error-overlay-visible",!this.j.isHidden()))};
u5.prototype.u=function(a){g.OR.prototype.u.call(this,a);var b=this.api.getVideoData();if(b.WH||b.playerErrorMessageRenderer)(a=b.WH)?icb(this,a):b.playerErrorMessageRenderer&&icb(this,b.playerErrorMessageRenderer);else{var c;a.Am&&(b.Pw?hcb(b.Pw)?c=g.PB(b.Pw):c=g.PR(g.OB(b.Pw)):c=g.PR(a.Am),this.ue(c,"subreason"))}};g.w(v5,g.U);v5.prototype.Fi=function(){this.api.Gb().isCued()||(this.hide(),this.api.Ta(this.element,!1))};
v5.prototype.j=function(){var a=this.api.getVideoData(),b=this.api.V(),c=this.api.getVideoData().D,d=b.Rd,e=!b.Qd,f=this.u,h=f.td();f=f.fh();var l=g.KH(b);b=b.C;d||f||c||e||l||b||h||!a.videoId?(this.hide(),this.api.Ta(this.element,!1)):(a=jcb(this),this.updateValue("url",a),this.show())};
v5.prototype.onClick=function(a){var b=jcb(this);g.KR(b,this.api,a);this.api.sb(this.element)};
v5.prototype.show=function(){this.api.Gb().isCued()&&(g.U.prototype.show.call(this),this.api.zk(this.element)&&this.api.Ta(this.element,!0))};g.w(w5,g.U);w5.prototype.Fi=function(){var a=this.api.Gb();!this.api.wh()||g.T(a,2)&&g.tQ(this.api)||g.T(a,64)?(this.api.Ta(this.j,!1),this.api.Ta(this.forwardButton,!1),this.hide()):(this.show(),this.api.Ta(this.j,!0),this.api.Ta(this.forwardButton,!0))};
w5.prototype.u=function(){this.api.seekBy(-10*this.api.getPlaybackRate());this.api.sb(this.j)};
w5.prototype.B=function(){this.api.seekBy(10*this.api.getPlaybackRate());this.api.sb(this.forwardButton)};g.w(x5,g.U);x5.prototype.u=function(){var a=this.api.Gb(),b=this.api.getVideoData();this.api.V().N("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.T(a,2)&&!this.ub?(this.show(),this.j.show(),a=this.api.getVideoData(),this.updateValue("text",a.YS),g.qo(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.Ta(this.element,this.ub),this.api.Oa("onMutedAutoplayEnds")):this.hide())};
x5.prototype.onClick=function(){var a=this.api.getVideoData(),b=this.api.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;g.yJ(a);this.api.loadVideoById(a.videoId,b);this.api.sb(this.element);this.hide()};g.w(y5,g.U);y5.prototype.j=function(){var a=this.api.Gb(),b=this.api.getVideoData();this.api.V().N("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&!g.T(a,2)?this.ub||(g.U.prototype.show.call(this),this.B.start(),this.api.Ta(this.element,this.ub)):this.hide()};
y5.prototype.u=function(){g.qo(this.element,"ytp-muted-autoplay-hide-watermark",!0)};
y5.prototype.onClick=function(){var a=this.api.getVideoData(),b=this.api.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;g.yJ(a);this.api.loadVideoById(a.videoId,b);this.api.sb(this.element)};g.w(z5,g.U);z5.prototype.hide=function(){g.oo(this.api.getRootNode(),"ytp-expand-pause-overlay");g.U.prototype.hide.call(this)};
z5.prototype.J=function(){this.C=!0;g.oo(this.api.getRootNode(),"ytp-expand-pause-overlay");(this.j.td()||this.B)&&this.api.Ta(this.element,!1);this.expandButton.focus()};
z5.prototype.T=function(){this.C=!1;g.mo(this.api.getRootNode(),"ytp-expand-pause-overlay");(this.j.td()||this.B)&&this.api.Ta(this.element,!0);this.focus()};
z5.prototype.La=function(a){a=this.api.V().N("embeds_web_enable_pause_overlay_wn_update")?this.api.Gb():a.state;g.T(a,1)||g.T(a,16)||g.T(a,32)||(!g.T(a,4)||g.T(a,2)||g.T(a,1024)?(this.C||(this.j.td()||this.B)&&this.api.Ta(this.element,!1),this.I.hide()):0<this.u.suggestionData.length&&(this.C||(g.mo(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.D2(this.u),(this.j.td()||this.B)&&this.api.Ta(this.element,!0)),this.I.show()))};g.w(kcb,g.U);g.k=kcb.prototype;g.k.AX=function(){var a=this.api.getVideoData(),b=this.api.getVideoData(1).D,c=this.api.V();a=(a.mutedAutoplay||c.Rd&&!g.T(this.state,2))&&!(b&&c.oa);g.pN(this,a);this.api.Ta(this.element,a)};
g.k.onStateChange=function(a){this.Cc(a.state)};
g.k.Cc=function(a){this.state!==a&&(this.state=a);this.AX()};
g.k.onVideoDataChange=function(){var a=this.api.V();a.C&&g.mo(this.element,"ytp-no-hover");this.api.getVideoData().videoId&&!a.C?(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a),this.j||(this.j=this.Ra("click",this.onClick))):this.j&&(this.updateValue("url",null),this.Ec(this.j),this.j=null)};
g.k.onClick=function(a){var b=this.api.getVideoUrl(!g.sO(a),!1,!0,!0);g.KR(b,this.api,a);this.api.sb(this.element)};
g.k.Eb=function(a){if((a=480>a.width)&&!this.u||!a&&this.u){var b=new g.U(bcb()),c=this.Da("ytp-watermark");g.qo(c,"ytp-watermark-small",a);g.Ke(c);b.Ea(c);this.u=a}};g.w(A5,g.U);A5.prototype.show=function(){g.U.prototype.show.call(this);this.api.Ta(this.element,!0)};
A5.prototype.click=function(){this.api.sb(this.element)};
A5.prototype.ra=function(){B5(this);g.U.prototype.ra.call(this)};g.w(ocb,g.iR);g.k=ocb.prototype;g.k.Ok=function(){return!1};
g.k.create=function(){var a=this.F.V(),b=g.hQ(this.F),c,d=null==(c=this.F.getVideoData())?void 0:c.clientPlaybackNonce;d&&g.rC("cpn",d);qcb(this);a.N("embeds_enable_muted_autoplay")&&(this.B=new y5(this.F),g.D(this,this.B),g.zQ(this.F,this.B.element,4),this.oa=new x5(this.F),g.D(this,this.oa),g.zQ(this.F,this.oa.element,4));if(a.Rd||this.B)this.watermark=new kcb(this.F),g.D(this,this.watermark),g.zQ(this.F,this.watermark.element,8);this.T=new v5(this.F,b);g.D(this,this.T);g.zQ(this.F,this.T.element,
8);a.u&&(this.ea=new w5(this.F),g.D(this,this.ea),g.zQ(this.F,this.ea.element,4));this.j.S(this.F,"appresize",this.Eb);this.j.S(this.F,"presentingplayerstatechange",this.Fi);this.j.S(this.F,"videodatachange",this.onVideoDataChange);this.j.S(this.F,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.j.S(this.F,"onAdStart",this.onAdStart);this.j.S(this.F,"onAdComplete",this.onAdComplete);this.j.S(this.F,"onAdSkip",this.onAdSkip);this.j.S(this.F,"onAdStateChange",this.onAdStateChange);if((this.J=
g.Zw(g.SH(a)))||a.N("embeds_web_enable_lite_experiment_control_arm_logging"))this.countdownTimer=new A5(this.F),g.D(this,this.countdownTimer),g.zQ(this.F,this.countdownTimer.element,4),this.countdownTimer.hide();this.J&&(this.j.S(this.F,g.GB("embeds"),this.onCueRangeEnter),this.j.S(this.F,g.HB("embeds"),this.onCueRangeExit));this.kc(this.F.Gb());this.player.wg("embed")};
g.k.onCueRangeEnter=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(this.countdownTimer.show(),mcb(this.countdownTimer))};
g.k.onCueRangeExit=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(B5(this.countdownTimer),this.countdownTimer.hide())};
g.k.Eb=function(){var a=this.F.gb().getPlayerSize();this.dg&&this.dg.resize(a)};
g.k.Fi=function(a){this.kc(a.state)};
g.k.kc=function(a){g.T(a,128)?(this.dg||(this.dg=new u5(this.F),g.D(this,this.dg),g.zQ(this.F,this.dg.element,4)),this.dg.u(a.getData()),this.dg.show(),g.mo(this.F.getRootNode(),"ytp-embed-error")):this.dg&&(this.dg.dispose(),this.dg=null,g.oo(this.F.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.j)if(g.T(a,64))this.countdownTimer.hide(),B5(this.countdownTimer);else if(g.aM(a)){var b=this.countdownTimer;b.u||(b.u=!0,b.D=(0,g.O)())}else a.Zc()&&this.countdownTimer.u&&
(b=this.countdownTimer,b.u&&(b.C+=(0,g.O)()-b.D,b.u=!1,lcb(b)));pcb(this,a)};
g.k.onMutedAutoplayStarts=function(){this.F.getVideoData().mutedAutoplay&&this.B&&this.watermark&&this.watermark.Ea(this.B.bottomButtons,0)};
g.k.onVideoDataChange=function(a,b){var c=this.UB!==b.videoId;a=!c&&"dataloaded"===a;var d,e={isShortsModeEnabled:null==(d=g.hQ(this.F))?void 0:d.td()};g.Bx("embedsVideoDataDidChange",{clientPlaybackNonce:b.clientPlaybackNonce,isReload:a,runtimeEnabledFeatures:e});c&&(this.UB=b.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.click(),this.countdownTimer.hide()),this.TO(b),ncb(this),qcb(this));this.watermark&&this.B&&!b.mutedAutoplay&&g.Oe(this.B.element,this.watermark.element)&&
g.zQ(this.F,this.watermark.element,8);this.F.V().C&&this.C&&this.C.detach()};
g.k.TO=function(a){this.J&&(this.F.Yf("embeds"),a.isAd()||5>a.endSeconds||g.wQ(this.F)||(a=Math.max(1E3*(a.endSeconds-5),0),a=new g.EB(a,a+5E3,{id:"countdown timer",namespace:"embeds"}),this.F.Ne([a])))};
g.k.onAdStart=function(){C5(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")};
g.k.onAdComplete=function(){C5(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")};
g.k.onAdSkip=function(){C5(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")};
g.k.onAdStateChange=function(a){2===a&&C5(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.hR("embed",ocb);})(_yt_player);
