(function(g){var window=this;'use strict';var ly=function(l){l.mutedAutoplay=!1;l.endSeconds=NaN;l.limitedPlaybackDurationInSeconds=NaN;g.VT(l)},y2=function(){return{U:"svg",
G:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},W:[{U:"path",N_:!0,B:"ytp-svg-fill",G:{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"}}]}},
phR=function(){return{U:"svg",
G:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},W:[{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{"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"}}]}},kz=function(l,y){if(l.api.O().X("web_player_log_click_before_generating_ve_conversion_params")){var k=Math.floor(-l.scrollPosition/(l.N+l.C));
const z=Math.min(k+l.columns,l.suggestionData.length)-1;for(;k<=z;k++)l.api.logVisibility(l.Z[k].element,y)}},z2=function(l){l.next.element.style.bottom=`${l.J}px`;
l.previous.element.style.bottom=`${l.J}px`;const y=l.scrollPosition,k=l.containerWidth-l.suggestionData.length*(l.N+l.C);g.I(l.element,"ytp-scroll-min",y>=0);g.I(l.element,"ytp-scroll-max",y<=k)},KHv=function(l){let y=0;
for(;y<l.suggestionData.length;y++){var k=l.suggestionData[y];const Z=l.Z[y];var z=k.shortViewCount?k.shortViewCount:k.author;let e=k.A6();const A=l.api.O();if(g.u9(A)&&!A.X("web_player_log_click_before_generating_ve_conversion_params")){var r={};g.UB(l.api,"addEmbedsConversionTrackingParams",[r]);e=g.UI(e,r)}Z.element.style.display="";r=Z.qd("ytp-suggestion-title");g.Gi.test(k.title)?r.dir="rtl":g.yry.test(k.title)&&(r.dir="ltr");r=Z.qd("ytp-suggestion-author");g.Gi.test(z)?r.dir="rtl":g.yry.test(z)&&
(r.dir="ltr");Z.update({views_or_author:z,duration:k.isLivePlayback?"Tr\u1ef1c ti\u1ebfp":k.lengthSeconds?g.Sr(k.lengthSeconds):"",link:e,hover_title:k.title,title:k.title,aria_label:k.ariaLabel||null,is_live:k.isLivePlayback});z=k.uE();Z.qd("ytp-suggestion-image").style.backgroundImage=z?`url(${z})`:"";A.X("web_player_log_click_before_generating_ve_conversion_params")&&(l.api.createServerVe(Z.element,Z),(k=(k=k.sessionData)&&k.itct)&&l.api.setTrackingParams(Z.element,k))}for(;y<l.Z.length;y++)l.Z[y].element.style.display=
"none";z2(l)},gdR=function(l,y,k){y.preventDefault();
l.api.logClick(k);y=k.getAttribute("href");k={};g.UB(l.api,"addEmbedsConversionTrackingParams",[k]);y=g.DB(k)?y:g.UI(y,k);g.kv(window,y)},Edp=function(l,y){l.qd("ytp-error-content").style.paddingTop="0px";
const k=l.qd("ytp-error-content"),z=k.clientHeight;l.Z&&l.Z.resize(y,y.height-z);k.style.paddingTop=`${(y.height-(l.Z?l.Z.element.clientHeight:0))/2-z/2}px`},jsO=function(l,y){var k=l.api.O(),z;
y.reason&&(rB(y.reason)?z=g.Qk(y.reason):z=g.ep(g.$b(y.reason)),l.setContent(z,"content"));var r;y.subreason&&(rB(y.subreason)?r=g.Qk(y.subreason):r=g.ep(g.$b(y.subreason)),l.setContent(r,"subreason"));if(y.proceedButton&&y.proceedButton.buttonRenderer){z=l.qd("ytp-error-content-wrap-subreason");y=y.proceedButton.buttonRenderer;const Z=g.Gf("A");y.text&&y.text.simpleText&&(r=y.text.simpleText,Z.textContent=r,fDy(z,r)||k.N&&!k.embedsErrorLinks||(k=g.E(y?.navigationEndpoint,g.Iw)?.url,y=g.E(y?.navigationEndpoint,
g.Iw)?.target,k&&(Z.setAttribute("href",k),l.api.createClientVe(Z,l,178424),l.j(Z,"click",e=>{gdR(l,e,Z)})),y&&Z.setAttribute("target",y),k=g.Gf("DIV"),k.appendChild(Z),z.appendChild(k)))}},rB=function(l){if(l.runs)for(let y=0;y<l.runs.length;y++)if(l.runs[y].navigationEndpoint)return!0;
return!1},fDy=function(l,y){l=g.yq("A",l);
for(let k=0;k<l.length;k++)if(l[k].textContent===y)return!0;return!1},SSw=function(l){const y={};
g.UB(l.api,"addEmbedsConversionTrackingParams",[y]);l=l.api.getVideoUrl();return l=g.UI(l,y)},nd1=function(l){const y=l.api.getVideoData(),k=l.api.O().jN&&!l.state.Z(2)&&!l.api.getVideoData({playerType:1}).Wn;
y.mutedAutoplay||l.fP(k);l.api.logVisibility(l.element,k)},odO=function(l){l.watermark||(l.watermark=new FHy(l.api),g.x(l,l.watermark),l.watermark.Uj(l.bottomButtons,0),g.I(l.watermark.element,"ytp-muted-autoplay-watermark",!0),l.Z=new g.oT(l.watermark,0,!0,100),g.x(l,l.Z))},N0v=function(l){l.VM&&l.Z&&(l.Z.show(),l.V.start())},Zi=function(l){if(!l.C){var y=Math.min((0,g.f)()-l.V,l.N);
var k=l.N-y;y=l.N===0?0:Math.max(k/l.N,0);k=Math.round(k/1E3);l.S.setAttribute("stroke-dashoffset",`${-211*(y+1)}`);l.updateValue("duration",k);y<=0&&l.Z?l.stopTimer():l.Z&&l.Z.start()}},sse=function(l){l.Z||(l.N=5E3,l.V=(0,g.f)(),l.Z=new g.sj(()=>{Zi(l)},null),Zi(l))},eZ=function(l){var y=l.L;
l=!!y.isEmbedsShortsMode();g.I(y.getRootNode(),"ytp-shorts-mode",l);if(y=y.getVideoData())y.yP=l},B0L=function(l){const y=g.Hge(l.L);
y!==l.D&&(l.D=y,l.J&&(l.J.dispose(),l.J=null),l.N&&(l.N.dispose(),l.N=null),l.V&&(l.V.dispose(),l.V=null),l.C&&(l.C.stop(),l.C.dispose(),l.C=null),y&&(g.Ci(l.L),l.L.isEmbedsShortsMode()&&(l.V=new g.H({U:"div",B:"ytp-pause-overlay-backdrop",G:{tabIndex:"-1"}}),g.x(l,l.V),g.pi(l.L,l.V.element,4),l.C=new g.oT(l.V,1E3,!1,100),g.x(l,l.C),l.V.hide()),l.J=new g.H({U:"div",B:"ytp-pause-overlay-container",G:{tabIndex:"-1"}}),g.x(l,l.J),l.N=new LHo(l.L),g.x(l,l.N),l.N.Uj(l.J.element),g.pi(l.L,l.J.element,4),
vdx(l,l.L.getPlayerStateObject())))},vdx=function(l,y){l.C&&(!y.Z(4)&&!y.Z(2)||y.Z(1024)?l.C.hide():l.C.show())},Ak=function(l,y){const k=l.L.O();
l={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:l.L.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":l.L.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.tw(l.L.O().loaderUrl),eventType:y,youtubeHost:g.$7(l.L.O().nS)||""};l.embeddedPlayerMode=k.Ja;g.wv("embedsAdEvent",l)},HZw=class extends g.H{constructor(l){super({U:"div",
B:"ytp-related-on-error-overlay"});this.api=l;this.J=this.C=0;this.V=new g.cI(this);this.Z=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.H({U:"h2",B:"ytp-related-title",Nd:"{{title}}"});this.previous=new g.H({U:"button",L_:["ytp-button","ytp-previous"],G:{"aria-label":"Hi\u1ec3n th\u1ecb c\u00e1c video \u0111\u1ec1 xu\u1ea5t tr\u01b0\u1edbc \u0111\u00f3"},W:[g.OP()]});this.A=new g.Qpf(y=>{this.suggestions.element.scrollLeft=-y});
this.N=this.scrollPosition=0;this.S=!0;this.next=new g.H({U:"button",L_:["ytp-button","ytp-next"],G:{"aria-label":"Hi\u1ec7n th\u00eam video \u0111\u1ec1 xu\u1ea5t"},W:[g.dM()]});g.x(this,this.V);l=l.O();this.K=l.V;g.x(this,this.title);this.title.Uj(this.element);this.suggestions=new g.H({U:"div",B:"ytp-suggestions"});g.x(this,this.suggestions);this.suggestions.Uj(this.element);g.x(this,this.previous);this.previous.Uj(this.element);this.previous.listen("click",this.Y,this);g.x(this,this.A);for(let y=
0;y<16;y++){const k=new g.H({U:"a",B:"ytp-suggestion-link",G:{href:"{{link}}",target:l.D,"aria-label":"{{aria_label}}"},W:[{U:"div",B:"ytp-suggestion-image",W:[{U:"div",G:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration",Nd:"{{duration}}"}]},{U:"div",B:"ytp-suggestion-title",G:{title:"{{hover_title}}"},Nd:"{{title}}"},{U:"div",B:"ytp-suggestion-author",Nd:"{{views_or_author}}"}]});g.x(this,k);k.Uj(this.suggestions.element);const z=k.qd("ytp-suggestion-link");g.n9(z,"transitionDelay",`${y/
20}s`);this.V.j(z,"click",r=>{var Z=y,e=this.suggestionData[Z];const A=e.sessionData;g.u9(this.api.O())&&this.api.X("web_player_log_click_before_generating_ve_conversion_params")?(this.api.logClick(this.Z[Z].element),Z=e.A6(),e={},g.JI(this.api,e),Z=g.UI(Z,e),g.Hl(Z,this.api,r)):g.Bl(r,this.api,this.K,A||void 0)&&this.api.E2(e.videoId,A,e.playlistId)});
this.Z.push(k)}g.x(this,this.next);this.next.Uj(this.element);this.next.listen("click",this.D,this);this.V.j(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.Yz().getPlayerSize());this.onVideoDataChange();this.show()}hide(){this.S=!0;super.hide();kz(this,!1)}show(){this.S=!1;super.show();kz(this,!0)}isHidden(){return this.S}D(){this.scrollTo(this.scrollPosition-this.containerWidth)}Y(){this.scrollTo(this.scrollPosition+this.containerWidth)}resize(l,y){var k=this.api.O(),z=16/
9,r=l.width>=650,Z=l.width<480||l.height<290,e=Math.min(this.suggestionData.length,this.Z.length);if(Math.min(l.width,l.height)<=150||e===0||!k.BF)this.hide();else{var A;if(r){var Q=A=28;this.C=16}else this.C=Q=A=8;if(Z){var t=6;r=14;var O=12;Z=24;k=12}else t=8,r=18,O=16,Z=36,k=16;l=l.width-(48+A+Q);A=Math.ceil(l/150);A=Math.min(3,A);Q=l/A-this.C;var d=Math.floor(Q/z);y&&d+100>y&&Q>50&&(d=Math.max(y,50/z),A=Math.ceil(l/(z*(d-100)+this.C)),Q=l/A-this.C,d=Math.floor(Q/z));Q<50||g.Pl(this.api)?this.hide():
this.show();for(y=0;y<e;y++){z=this.Z[y];const w=z.qd("ytp-suggestion-image");w.style.width=`${Q}px`;w.style.height=`${d}px`;z.qd("ytp-suggestion-title").style.width=`${Q}px`;z.qd("ytp-suggestion-author").style.width=`${Q}px`;z=z.qd("ytp-suggestion-duration");z.style.display=z&&Q<100?"none":""}e=r+t+O+4;this.J=e+k+(d-Z)/2;this.suggestions.element.style.height=`${d+e}px`;this.N=Q;this.containerWidth=l;this.columns=A;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;z2(this)}}onVideoDataChange(){const l=
this.api.getVideoData(),y=this.api.O();this.K=l.Wn?!1:y.V;l.suggestions?this.suggestionData=g.oC(l.suggestions,k=>k&&!k.playlistId):this.suggestionData.length=0;
KHv(this);l.Wn?this.title.update({title:g.Ts("Video kh\u00e1c t\u1eeb $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:l.author})}):this.title.update({title:"Xem th\u00eam video tr\u00ean YouTube"})}scrollTo(l){l=g.gf(l,this.containerWidth-this.suggestionData.length*(this.N+this.C),0);this.A.start(this.scrollPosition,l,1E3);this.scrollPosition=l;z2(this);kz(this,!0)}};var R9R=class extends g.E2f{constructor(l){super(l);this.Z=null;const y=l.O(),k={target:y.D},z=["ytp-small-redirect"];if(y.N)z.push("no-link");else{const Z=g.E9(y);k.href=Z;k["aria-label"]="Truy c\u1eadp v\u00e0o YouTube \u0111\u1ec3 t\u00ecm ki\u1ebfm nhi\u1ec1u video h\u01a1n"}const r=new g.H({U:"a",L_:z,G:k,W:[{U:"svg",G:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{U:"path",G:{d:"M0 0h24v24H0V0z",fill:"none"}},{U:"path",G:{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"}}]}]});
r.Uj(this.element);l.createClientVe(r.element,this,178053);this.j(r.element,"click",Z=>{gdR(this,Z,r.element)});
g.x(this,r);y.N||y.disableOrganicUi||(this.Z=new HZw(l),this.Z.Uj(this.element),g.x(this,this.Z));this.j(l,"videodatachange",()=>{this.show()});
this.resize(this.api.Yz().getPlayerSize())}show(){super.show();Edp(this,this.api.Yz().getPlayerSize())}resize(l){super.resize(l);this.Z&&(Edp(this,l),g.I(this.element,"related-on-error-overlay-visible",!this.Z.isHidden()))}C(l){super.C(l);const y=this.api.getVideoData();if(y.kE||y.playerErrorMessageRenderer)(l=y.kE)?jsO(this,l):y.playerErrorMessageRenderer&&jsO(this,y.playerErrorMessageRenderer);else{let k;l.FT&&(y.hK?rB(y.hK)?k=g.Qk(y.hK):k=g.ep(g.$b(y.hK)):k=g.ep(l.FT),this.setContent(k,"subreason"))}}};var Dh2=class extends g.H{constructor(l,y){super({U:"a",L_:["ytp-impression-link"],G:{target:"{{target}}",href:"{{url}}","aria-label":"Xem tr\u00ean YouTube"},W:[{U:"div",B:"ytp-impression-link-content",G:{"aria-hidden":"true"},W:[{U:"div",B:"ytp-impression-link-text",Nd:"Xem tr\u00ean"},{U:"div",B:"ytp-impression-link-logo",Nd:"{{logoSvg}}"}]}]});this.api=l;this.C=y;this.updateValue("target",l.O().D);this.j(l,"videodatachange",this.onVideoDataChange);this.j(this.api,"presentingplayerstatechange",
this.ea);this.j(this.api,"videoplayerreset",this.Z);this.j(this.element,"click",this.onClick);this.onVideoDataChange();this.Z()}onVideoDataChange(){const l=this.api.getVideoData();let y=y2(),k=96714;g.du(l)?(y=phR(),k=216165,g.zi(this.element,"ytp-music-impression-link")):g.ZM(this.element,"ytp-music-impression-link");this.updateValue("logoSvg",y);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,k)}ea(){this.api.getPlayerStateObject().isCued()||
(this.hide(),this.api.logVisibility(this.element,!1))}Z(){var l=this.api.getVideoData();const y=this.api.O(),k=this.api.getVideoData().Wn,z=!y.BF,r=this.C.xw(),Z=y.N;y.jN||r||k||z||Z||this.api.isEmbedsShortsMode()||!l.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(l=SSw(this),this.updateValue("url",l),this.show())}onClick(l){this.api.X("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const y=SSw(this);g.Hl(y,this.api,l);this.api.X("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 lO1=class extends g.H{constructor(l){super({U:"div",L_:["ytp-mobile-a11y-hidden-seek-button"],W:[{U:"button",L_:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],G:{"aria-label":"Tua l\u1ea1i 10 gi\u00e2y","aria-hidden":"false"}},{U:"button",L_:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],G:{"aria-label":"Tua \u0111i 10 gi\u00e2y","aria-hidden":"false"}}]});this.api=l;this.Z=this.qd("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.qd("ytp-mobile-a11y-hidden-seek-button-forward");
this.api.createClientVe(this.Z,this,141902);this.api.createClientVe(this.forwardButton,this,141903);this.j(this.api,"presentingplayerstatechange",this.ea);this.j(this.Z,"click",this.C);this.j(this.forwardButton,"click",this.N);this.ea()}ea(){const l=this.api.getPlayerStateObject();!this.api.wq()||l.Z(2)&&g.T3(this.api)||l.Z(64)?(this.api.logVisibility(this.Z,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.Z,!0),this.api.logVisibility(this.forwardButton,
!0))}C(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.Z)}N(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)}};var yFO=class extends g.H{constructor(l){super({U:"div",B:"ytp-muted-autoplay-endscreen-overlay",W:[{U:"div",B:"ytp-muted-autoplay-end-panel",W:[{U:"button",L_:["ytp-muted-autoplay-end-text","ytp-button"],Nd:"{{text}}"}]}]});this.api=l;this.V=this.qd("ytp-muted-autoplay-end-panel");this.C=!1;this.api.createClientVe(this.element,this,52428);this.j(this.api,"presentingplayerstatechange",this.N);this.j(l,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()}N(){var l=
this.api.getPlayerStateObject();const y=this.api.getVideoData();g.I(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!y.mutedAutoplay||y.limitedPlaybackDurationInSeconds===0&&y.endSeconds===0&&y.mutedAutoplayDurationMode===2||(l.Z(2)&&!this.VM?(this.show(),this.Z||(this.Z=new g.Kv2(this.api),g.x(this,this.Z),this.Z.Uj(this.V,0),this.Z.show()),l=this.api.getVideoData(),this.updateValue("text",l.Ie),g.I(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element,
this.VM),g.M1(this.api,"onMutedAutoplayEnds")):this.hide())}onClick(){if(!this.C){this.Z&&(this.Z.Vj(),this.Z=null);g.I(this.api.getRootNode(),"ytp-muted-autoplay",!1);var l=this.api.getVideoData(),y=this.api.getCurrentTime();ly(l);this.api.loadVideoById(l.videoId,y);this.api.RC();this.api.logClick(this.element);this.hide();this.C=!0}}onMutedAutoplayStarts(){this.C=!1;this.Z&&(this.Z.Vj(),this.Z=null)}};var FHy=class extends g.H{constructor(l){const y=l.O();super({U:"a",L_:["ytp-watermark","yt-uix-sessionlink"],G:{target:y.D,href:"{{url}}","aria-label":g.Ts("Xem tr\u00ean $WEBSITE",{WEBSITE:g.mc(y)}),"data-sessionlink":"feature=player-watermark"},Nd:"{{logoSvg}}"});this.api=l;this.Z=null;this.C=!1;this.state=l.getPlayerStateObject();this.j(l,"videodatachange",this.onVideoDataChange);this.j(l,"presentingplayerstatechange",this.onStateChange);this.j(l,"appresize",this.TE);this.onVideoDataChange();
this.IU(this.state);this.TE(l.Yz().getPlayerSize())}onStateChange(l){this.IU(l.state)}IU(l){this.state!==l&&(this.state=l);nd1(this)}onVideoDataChange(){var l=this.api.O();l.N&&g.zi(this.element,"ytp-no-hover");const y=this.api.getVideoData();y.videoId&&!l.N?(l=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",l),this.Z||(this.Z=this.listen("click",this.onClick))):this.Z&&(this.updateValue("url",null),this.uq(this.Z),this.Z=null);l=y2();let k=76758;g.du(y)&&(l=phR(),k=216164);this.updateValue("logoSvg",
l);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,k);nd1(this)}onClick(l){this.api.X("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);let y=this.api.getVideoUrl(!g.ne(l),!1,!0,!0);if(this.api.X("web_player_log_click_before_generating_ve_conversion_params")){const k={};g.UB(this.api,"addEmbedsConversionTrackingParams",[k]);y=g.UI(y,k)}g.Hl(y,this.api,l);this.api.X("web_player_log_click_before_generating_ve_conversion_params")||
this.api.logClick(this.element)}TE(l){if((l=l.width<480)&&!this.C||!l&&this.C){const y=new g.H(y2()),k=this.qd("ytp-watermark");g.I(k,"ytp-watermark-small",l);g.Uq(k);y.Uj(k);this.C=l}}};var kM1=class extends g.H{constructor(l){super({U:"div",B:"ytp-muted-autoplay-overlay",W:[{U:"div",B:"ytp-muted-autoplay-bottom-buttons",W:[{U:"button",L_:["ytp-muted-autoplay-equalizer","ytp-button"],G:{"aria-label":"Ch\u1ec9 b\u00e1o cho bi\u1ebft video \u0111ang ph\u00e1t \u1edf ch\u1ebf \u0111\u1ed9 t\u1eaft ti\u1ebfng"},W:[{U:"div",L_:["ytp-muted-autoplay-equalizer-icon"],W:[{U:"svg",G:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},W:[{U:"g",G:{fill:"#fff"},W:[{U:"rect",B:"ytp-equalizer-bar-left",
G:{height:"9",width:"4",x:"1",y:"7"}},{U:"rect",B:"ytp-equalizer-bar-middle",G:{height:"14",width:"4",x:"6",y:"2"}},{U:"rect",B:"ytp-equalizer-bar-right",G:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.api=l;this.bottomButtons=this.qd("ytp-muted-autoplay-bottom-buttons");this.V=new g.B_(this.J,4E3,this);this.C=!1;l.createClientVe(this.element,this,39306);this.j(l,"presentingplayerstatechange",this.N);this.j(l,"onMutedAutoplayStarts",()=>{odO(this);this.N();N0v(this);this.C=!1});
this.j(l,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.j(l,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();l.isMutedByEmbedsMutedAutoplay()&&(odO(this),this.N(),N0v(this));g.x(this,this.V)}N(){const l=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||l.Z(2)?this.hide():this.VM||(super.show(),this.api.logVisibility(this.element,this.VM))}J(){this.Z&&this.Z.hide()}onAutoplayBlocked(){this.hide();ly(this.api.getVideoData())}onClick(){if(!this.C){g.I(this.api.getRootNode(),
"ytp-muted-autoplay",!1);var l=this.api.getVideoData(),y=this.api.getCurrentTime();ly(l);this.api.loadVideoById(l.videoId,y);this.api.RC();this.api.logClick(this.element);g.M1(this.api,"onMutedAutoplayEnds");this.C=!0}}onMutedAutoplayEnds(){this.watermark&&(this.watermark.Vj(),this.watermark=null)}};var LHo=class extends g.H{constructor(l){super({U:"div",B:"ytp-pause-overlay",G:{tabIndex:"-1"}});this.api=l;this.N=new g.cI(this);this.fade=new g.oT(this,1E3,!1,100,()=>{this.Z.C=!1},()=>{this.Z.C=!0});
this.C=!1;this.expandButton=new g.H({U:"button",L_:["ytp-button","ytp-expand"],Nd:this.api.isEmbedsShortsMode()?"Video ng\u1eafn kh\u00e1c":"Video kh\u00e1c"});l.O().controlsType==="0"&&g.zi(l.getRootNode(),"ytp-pause-overlay-controls-hidden");g.x(this,this.N);g.x(this,this.fade);const y=new g.H({U:"button",L_:["ytp-button","ytp-collapse"],G:{"aria-label":this.api.isEmbedsShortsMode()?"\u1ea8n ph\u1ea7n video ng\u1eafn kh\u00e1c":"\u1ea8n ph\u1ea7n Video kh\u00e1c"},W:[{U:"div",B:"ytp-collapse-icon",
W:[g.uM()]}]});g.x(this,y);y.Uj(this.element);y.listen("click",this.V,this);g.x(this,this.expandButton);this.expandButton.Uj(this.element);this.expandButton.listen("click",this.J,this);this.Z=new g.tUw(l);g.x(this,this.Z);this.Z.C=!1;this.Z.Uj(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.N.j(this.api,"presentingplayerstatechange",this.Aa);this.N.j(this.api,"videodatachange",this.Aa);this.hide()}hide(){g.ZM(this.api.getRootNode(),
"ytp-expand-pause-overlay");super.hide()}V(){this.C=!0;g.ZM(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()}J(){this.C=!1;g.zi(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()}Aa(){const l=this.api.getPlayerStateObject();l.Z(1)||l.Z(16)||l.Z(32)||(!l.Z(4)||l.Z(2)||l.Z(1024)?(this.C||this.api.logVisibility(this.element,
!1),this.fade.hide()):this.Z.hasSuggestions()&&(this.C||(g.zi(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.cb(this.Z),this.Z.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))}};var zGO=class extends g.H{constructor(l){super({U:"div",L_:["ytp-player-content","ytp-iv-player-content"],W:[{U:"div",B:"ytp-countdown-timer",W:[{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},W:[{U:"circle",B:"ytp-svg-countdown-timer-ring",G:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{U:"circle",B:"ytp-svg-countdown-timer-background",G:{cx:"-36",cy:"36","fill-opacity":"0",
r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3","stroke-width":"4",transform:"rotate(-90)"}}]},{U:"span",B:"ytp-countdown-timer-time",Nd:"{{duration}}"}]}]});this.api=l;this.S=this.qd("ytp-svg-countdown-timer-ring");this.Z=null;this.V=this.N=0;this.C=!1;this.J=0;this.api.createClientVe(this.element,this,159628)}show(){super.show();this.api.logVisibility(this.element,!0)}stopTimer(){this.Z&&(this.Z.dispose(),this.Z=null,this.C=!1)}Vj(){this.stopTimer();super.Vj()}};g.EZ("embed",class extends g.f1{constructor(l){super(l);this.L=l;this.Z=new g.cI(this);this.C=null;this.K=!1;this.countdownTimer=null;this.D=!1;eZ(this);g.x(this,this.Z);this.load()}Xf(){return!1}create(){var l=this.L.O();const y=g.Ci(this.L),k=this.L.getVideoData()?.clientPlaybackNonce;k&&g.YV({clientPlaybackNonce:k});l.Xr&&!l.disableOrganicUi&&B0L(this);l.getWebPlayerContextConfig()?.embedsEnableEmc3ds||(this.A=new kM1(this.L),g.x(this,this.A),g.pi(this.L,this.A.element,4),this.Y=new yFO(this.L),
g.x(this,this.Y),g.pi(this.L,this.Y.element,4));l.jN&&(this.watermark=new FHy(this.L),g.x(this,this.watermark),g.pi(this.L,this.watermark.element,8));y&&!l.disableOrganicUi&&(this.S=new Dh2(this.L,y),g.x(this,this.S),g.pi(this.L,this.S.element,8),this.L.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.S.hide()));l.C&&!l.disableOrganicUi&&(this.C_=new lO1(this.L),g.x(this,this.C_),g.pi(this.L,this.C_.element,4));this.Z.j(this.L,"appresize",this.TE);this.Z.j(this.L,"presentingplayerstatechange",
this.ea);this.Z.j(this.L,"videodatachange",this.onVideoDataChange);this.Z.j(this.L,"videoplayerreset",this.onReset);this.Z.j(this.L,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.Z.j(this.L,"onAdStart",this.onAdStart);this.Z.j(this.L,"onAdComplete",this.onAdComplete);this.Z.j(this.L,"onAdSkip",this.onAdSkip);this.Z.j(this.L,"onAdStateChange",this.onAdStateChange);if(this.K=g.j_(g.CA(l)))this.countdownTimer=new zGO(this.L),g.x(this,this.countdownTimer),g.pi(this.L,this.countdownTimer.element,
4),this.countdownTimer.hide(),this.Z.j(this.L,g.uR("embeds"),this.onCueRangeEnter),this.Z.j(this.L,g.xR("embeds"),this.onCueRangeExit);this.e2(this.L.getPlayerStateObject());this.L.O().getWebPlayerContextConfig()?.embedsHostFlags?.allowOverridingVisitorDataPlayerVars&&(l=g.Y("IDENTITY_MEMENTO"))&&g.X5(this.L,"onMementoChange",l)}onCueRangeEnter(l){l.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),sse(this.countdownTimer))}onCueRangeExit(l){l.getId()==="countdown timer"&&
this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())}TE(){const l=this.L.Yz().getPlayerSize();this.v1&&this.v1.resize(l)}onReset(){eZ(this)}ea(l){this.e2(l.state)}e2(l){l.Z(128)?(this.v1||(this.v1=new R9R(this.L),g.x(this,this.v1),g.pi(this.L,this.v1.element,4)),this.v1.C(l.Ip),this.v1.show(),g.zi(this.L.getRootNode(),"ytp-embed-error")):this.v1&&(this.v1.dispose(),this.v1=null,g.ZM(this.L.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.Z)if(l.Z(64))this.countdownTimer.hide(),
this.countdownTimer.stopTimer();else if(l.isPaused()){var y=this.countdownTimer;y.C||(y.C=!0,y.J=(0,g.f)())}else l.isPlaying()&&this.countdownTimer.C&&(y=this.countdownTimer,y.C&&(y.V+=(0,g.f)()-y.J,y.C=!1,Zi(y)));vdx(this,l)}onMutedAutoplayStarts(){this.L.getVideoData().mutedAutoplay&&this.A&&g.I(this.L.getRootNode(),"ytp-muted-autoplay",!0)}onVideoDataChange(l,y){const k=this.Ry!==y.videoId;l=!k&&l==="dataloaded";const z={isShortsModeEnabled:!!this.L.isEmbedsShortsMode()};g.wv("embedsVideoDataDidChange",
{clientPlaybackNonce:y.clientPlaybackNonce,isReload:l,runtimeEnabledFeatures:z});k&&(this.Ry=y.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.K&&(this.L.Ur("embeds"),y.isAd()||y.limitedPlaybackDurationInSeconds<5||g.Pl(this.L)||(y=Math.max((y.startSeconds+y.limitedPlaybackDurationInSeconds-5)*1E3,0),y=new g.N1(y,y+5E3,{id:"countdown timer",namespace:"embeds"}),this.L.Wa([y]))),this.L.O().Xr&&!this.L.O().disableOrganicUi&&(eZ(this),B0L(this)));this.L.O().N&&
this.N&&this.N.detach()}onAdStart(){Ak(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")}onAdComplete(){Ak(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")}onAdSkip(){Ak(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")}onAdStateChange(l){l===2&&Ak(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")}});})(_yt_player);
