(function(g){var window=this;'use strict';var Z$=function(p){p.publish("cardstatechange",p.dR()&&p.iy()?1:0)},U7=function(p,C){var V=g.ea(C),N=V?C:arguments; for(V=V?0:1;V1&&(p.progress=1);p.Y=1E3/(C-p.S);p.S=C;xm2(p,p.progress);p.progress==1?(p.T=0,yo(p),p.onFinish(),p.g9()):p.isPlaying()&&p.cZ()},xm2=function(p,C){typeof p.W==="function"&&(C=p.W(C)); p.coords=Array(p.C.length);for(var V=0;V0&&(p.J.forEach(function(a){a.dispose()}),p.J.length=0); p.T&&(g.tk(p.T,"ytp-ce-element-show"),p.T.setAttribute("aria-hidden","true"));p.D=0;if((p.endscreen=C)&&C.elements){V&&WM5(p);V=[];N=new g.sz(C.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen",namespace:"creatorendscreen"});V.push(N);p.player.K().C||(p.V=new g.L({L:"div",B:"ytp-ce-shadow"}),g.LT(p.player,p.V.element,4),p.W=new g.a0(p.V,200));for(N=0;N0?(g.Ed(C.element,"ytp-ce-force-expand"),z_(p,V.id,!0)):(g.tk(C.element,"ytp-ce-force-expand"),g.tk(C.element,"ytp-ce-element-hover"),z_(p,V.id,!1))} function X(){H(1)} function d(){H(-1)} C.listen("mouseenter",function(){GAr(p,C,V)}); C.listen("mouseleave",function(){pnP(p,C,V)}); p.player.K().C||C.listen("click",function(){g.Ed(C.element,"ytp-ce-element-hover")}); C.listen("click",function(E){C0P(p,V,E)}); C.listen("keypress",function(E){C0P(p,V,E)}); C.listen("focus",function(){GAr(p,C,V)}); C.listen("blur",function(){pnP(p,C,V)}); C.listen("touchstart",function(){GAr(p,C,V)}); var a=g.ju("ytp-ce-expanding-overlay-hider",C.element);a&&C.U(a,"touchstart",function(E){E.stopPropagation();g.tk(C.element,"ytp-ce-element-hover");g.tk(C.element,"ytp-ce-force-expand")}); C.listen("keydown",function(E){p.a$=E.keyCode===9&&!E.shiftKey}); N(g.ju("ytp-sb-subscribe",C.element));N(g.ju("ytp-sb-unsubscribe",C.element));C.listen("focus",X);C.listen("blur",d)},C0P=function(p,C,V){if(C.targetUrl&&(!V||V.type!=="keypress"||V.keyCode===13)){for(var N=V.target;N&&!g.aL(N,"ytp-ce-element");){g.aL(N,"subscribe-label")&&jcf(p,C); if(g.aL(N,"ytp-ce-channel-subscribe"))return;N=N.parentElement||null}if(!N||g.aL(N,"ytp-ce-element-hover")){V.preventDefault();V.stopPropagation();if(N=p.C[C.id])pnP(p,N,C),N.element.blur();if(V.ctrlKey||V.metaKey||C.w1x==="new")jcf(p,C),p.player.sendVideoStatsEngageEvent(17,void 0),p.player.pauseVideo(),V=g.Rc(YO(p,C.targetUrl)),V=g.xe(V),g.pS(V,void 0,C.sessionData);else{var H=g.wG(p.player.K())||p.player.getVideoData().UV,X=function(){var d=YO(p,C.targetUrl),a=C.sessionData,E=C.watchEndpoint,l= g.sk(d);H&&l&&(l.v||l.list)?p.player.Ce(l.v,a,l.list,!1,void 0,E||void 0):g.G6(d,a)}; jcf(p,C,function(){p.player.sendVideoStatsEngageEvent(17,X)})}}}},YO=function(p,C){p=p.player.K(); if(C){if(C.startsWith("//"))return p.protocol+":"+C;if(C.startsWith("/"))return g.GM(p)+C}else return"";return C},GAr=function(p,C,V){g.aL(C.element,"ytp-ce-element-hover")||(V.type==="VIDEO"||V.type==="PLAYLIST"?g.Ed(C.element,"ytp-ce-element-hover"):p.player.K().C?(new g.N8(function(){g.Ed(C.element,"ytp-ce-element-hover")},200)).start():g.Ed(C.element,"ytp-ce-element-hover"),RP(p,V.XQ),z_(p,V.id,!0))},pnP=function(p,C,V){g.tk(C.element,"ytp-ce-element-hover"); g.tk(C.element,"ytp-ce-force-expand");z_(p,V.id,!1)},z_=function(p,C,V){p.V&&(V?p.W.show():p.W.hide()); for(var N=g.F(Object.keys(p.C)),H=N.next();!H.done;H=N.next())H=H.value,H!==C&&g.Tz(p.C[H].element,"ytp-ce-element-shadow-show",V)},RP=function(p,C,V){function N(){X||(H++,H===C.length&&(d.stop(),V&&V()))} if(!C||C.length===0||oP(p))V&&V();else{C=Vly(p,C);var H=0,X=!1,d=new g.N8(function(){X=!0;V&&V()},1E3,p); d.start();for(p=0;p1?p.charAt(0)==="/"&&p.charAt(1)!=="/":p==="/")&&(C=p.replace(/^(https?:)?\/\//,"").split("/",1),C=!C||C.length<1||!C[0]?[]:C[0].toLowerCase().split(".").reverse(),C=C[0]==="com"&&C[1]==="youtube"||C[0]==="be"&&C[1]==="youtu");return C?p.indexOf("/redirect?")===-1:!1},vec=function(p,C){return C?C:mXp(p)?"current":"new"},g4=function(p,C){g.Y.call(this); var V=this;this.element=p;this.context=C;this.qo=!1;this.R$=new Map;this.UY=new Map;this.context.N.addEventListener(g.Ez("annotations_module"),function(N){(N=V.R$.get(N))&&N.apply(V)}); this.context.N.addEventListener(g.lG("annotations_module"),function(N){(N=V.UY.get(N))&&N.apply(V)})},WL=function(p,C,V,N,H,X,d){p.context.T.listen(C,"click",function(a){p.VM(V,N,H,X||[],d||0,a)}); p.context.T.listen(C,"touchstart",function(){p.qo=!1}); p.context.T.listen(C,"touchmove",function(){p.qo=!0})},FaE=function(p){var C; return((C=g.n(p,g.$0))==null?0:C.url)?g.n(p,g.$0).url:(p=g.n(p,g.VB))&&p.videoId?(C="/watch?v="+p.videoId,p.playlistId&&(C+="&list="+p.playlistId),p.index&&(C+="&index="+p.index),p.startTimeSeconds&&(C+="&t="+p.startTimeSeconds),C):null},Qo=function(p,C,V){return{DX:(p.impressionLoggingUrlsV2s||[]).map(function(N){return N.baseUrl||""}), click:(V.loggingUrls||[]).map(function(N){return N.baseUrl||""}), close:(C.dismissLoggingUrlsV2s||[]).map(function(N){return N.baseUrl||""}), WD:(C.impressionLoggingUrlsV2s||[]).map(function(N){return N.baseUrl||""}), Pd:(C.clickLoggingUrlsV2s||[]).map(function(N){return N.baseUrl||""})}},SQE=function(p,C,V){g4.call(this,C,V); var N=this;this.N=p;this.eventId=null;this.kM=this.vr=this.ER=this.V=this.isInitialized=!1;this.cards=[];this.X$=this.J=this.Wr=this.W=this.Y_=this.T=null;this.a$=[];this.b_=this.D=this.Yl=this.Sa=null;this.Y=0;this.Vn=new g.N8(function(){},V.yn.JX?4E3:3E3); g.R(this,this.Vn);this.Qn=new g.N8(function(){}); g.R(this,this.Qn);this.sY=new tlv(V,function(H,X,d,a,E,l){WL(N,H,X,d,a,E,l)}); this.Z=new g.L({L:"div",B:"iv-drawer",X:{id:"iv-drawer"},j:[{L:"div",B:"iv-drawer-header",X:{"aria-role":"heading"},j:[{L:"span",B:"iv-drawer-header-text"},{L:"button",i_:["iv-drawer-close-button","ytp-button"],X:{"aria-label":"Ocultar cards",tabindex:"0"}}]},{L:"div",B:"iv-drawer-content"}]});g.R(this,this.Z);this.S=this.Z.element;this.KS=new g.a0(this.Z,330);g.R(this,this.KS);this.Wc=g.ju("iv-drawer-header-text",this.S);this.C=g.ju("iv-drawer-content",this.S);this.addCueRange(0,V.videoData.lengthSeconds* 1E3,"",function(){N.ER&&r4(N,"YOUTUBE_DRAWER_AUTO_OPEN")},function(){(N.ER=N.V)&&BL(N)}); this.Ga=new g.Rr(this);g.R(this,this.Ga);this.N.addEventListener("videodatachange",this.mL.bind(this))},Ka2=function(p,C){C=C.data; C.autoOpenMs&&p.addCueRange(C.autoOpenMs,0x8000000000000,"",function(){r4(p,"YOUTUBE_DRAWER_AUTO_OPEN")}); C.autoCloseMs&&p.addCueRange(C.autoCloseMs,0x8000000000000,"",function(){BL(p)}); var V=C.headerText;g.ce(p.Wc,V);p.J&&p.J.setAttribute("title",V);C.eventId&&(p.eventId=C.eventId);p.Sa=g.ym(C.trackingParams);p.D=g.ym(C.closeTrackingParams);p.Yl=g.ym(C.iconTrackingParams)},DX2=function(p,C){var V=C.cardId?C.cardId:"cr:"+p.Y,N=p.N.K().experiments.OY("enable_error_corrections_infocard_web_client"); if(!C.content&&C.teaser.simpleCardTeaserRenderer&&N){var H=C.teaser.simpleCardTeaserRenderer,X=C.icon?C.icon.infoCardIconRenderer:null;C={id:V,timestamp:p.Y,type:"simple",teaserText:g.uq(H.message),teaserDurationMs:Number(C.cueRanges[0].teaserDurationMs),startMs:Number(C.cueRanges[0].startCardActiveMs),autoOpen:!!C.autoOpen,sessionData:{},sponsored:!1,Fg:{},NR:null,DS:H.trackingParams?g.ym(H.trackingParams):null,Yl:X&&X.trackingParams?g.ym(X.trackingParams):null,imageUrl:"",displayDomain:null,showLinkIcon:!1, Zp:null,title:"",customMessage:"",url:null,onClickCommand:H.onTapCommand||null};G_(p,C)}else{var d;if((d=C.content)==null?0:d.simpleCardContentRenderer){if(!C.cueRanges.length)return;X=(H=C.content)==null?void 0:H.simpleCardContentRenderer;H=C.teaser.simpleCardTeaserRenderer;var a=C.icon?C.icon.infoCardIconRenderer:null;C={id:V,timestamp:p.Y,type:"simple",teaserText:g.uq(H.message),teaserDurationMs:Number(C.cueRanges[0].teaserDurationMs),startMs:Number(C.cueRanges[0].startCardActiveMs),autoOpen:!!C.autoOpen, sessionData:p9(p,V,C,X),sponsored:!1,Fg:Qo(X,H,X.command),NR:X.trackingParams?g.ym(X.trackingParams):null,DS:H.trackingParams?g.ym(H.trackingParams):null,Yl:a&&a.trackingParams?g.ym(a.trackingParams):null,imageUrl:C9(X.image.thumbnails,290).url,displayDomain:X.displayDomain?g.uq(X.displayDomain):null,showLinkIcon:!!X.showLinkIcon,Zp:null,title:X.title?g.uq(X.title):"",customMessage:X.callToAction?g.uq(X.callToAction):"",url:g.n(X.command,g.$0).url?PL({pause_on_navigation:!p.context.videoData.isLivePlayback, target:"new",value:g.n(X.command,g.$0).url}):null,onClickCommand:null};G_(p,C)}else{var E;if((E=C.content)==null?0:E.collaboratorInfoCardContentRenderer){if(!C.cueRanges.length)return;H=(X=C.content)==null?void 0:X.collaboratorInfoCardContentRenderer;X=C.teaser.simpleCardTeaserRenderer;a=C.icon?C.icon.infoCardIconRenderer:null;C={id:V,timestamp:p.Y,type:"collaborator",teaserText:g.uq(X.message),teaserDurationMs:Number(C.cueRanges[0].teaserDurationMs),startMs:Number(C.cueRanges[0].startCardActiveMs), autoOpen:!!C.autoOpen,sessionData:p9(p,V,C,H),sponsored:!1,Fg:Qo(H,X,H.endpoint),NR:H.trackingParams?g.ym(H.trackingParams):null,DS:X.trackingParams?g.ym(X.trackingParams):null,Yl:a&&a.trackingParams?g.ym(a.trackingParams):null,channelId:g.n(H.endpoint,g.Kf).browseId,customMessage:H.customText?g.uq(H.customText):null,profileImageUrl:C9(H.channelAvatar.thumbnails,290).url,title:H.channelName?g.uq(H.channelName):"",metaInfo:[H.subscriberCountText?g.uq(H.subscriberCountText):""],url:PL({pause_on_navigation:!p.context.videoData.isLivePlayback, target:"new",value:g.n(H.endpoint,g.Kf).canonicalBaseUrl?g.n(H.endpoint,g.Kf).canonicalBaseUrl:"/channel/"+g.n(H.endpoint,g.Kf).browseId}),onClickCommand:null};G_(p,C)}else{var l;if((l=C.content)==null?0:l.playlistInfoCardContentRenderer){if(!C.cueRanges.length)return;H=(a=C.content)==null?void 0:a.playlistInfoCardContentRenderer;X=C.teaser.simpleCardTeaserRenderer;a=C.icon?C.icon.infoCardIconRenderer:null;C={id:V,timestamp:p.Y,type:"playlist",teaserText:g.uq(X.message),teaserDurationMs:Number(C.cueRanges[0].teaserDurationMs), startMs:Number(C.cueRanges[0].startCardActiveMs),autoOpen:!!C.autoOpen,sessionData:p9(p,V,C,H),sponsored:!1,Fg:Qo(H,X,H.action),NR:H.trackingParams?g.ym(H.trackingParams):null,DS:X.trackingParams?g.ym(X.trackingParams):null,Yl:a&&a.trackingParams?g.ym(a.trackingParams):null,XR:C9(H.playlistThumbnail.thumbnails,258).url,customMessage:H.customMessage?g.uq(H.customMessage):null,playlistVideoCount:g.uq(H.playlistVideoCount),title:H.playlistTitle?g.uq(H.playlistTitle):"",metaInfo:[H.channelName?g.uq(H.channelName): "",H.videoCountText?g.uq(H.videoCountText):""],url:PL({pause_on_navigation:!p.context.videoData.isLivePlayback,target:"new",value:FaE(H.action)}),onClickCommand:null};G_(p,C)}else{var t;if((t=C.content)==null?0:t.videoInfoCardContentRenderer){if(!C.cueRanges.length)return;var c;H=(c=C.content)==null?void 0:c.videoInfoCardContentRenderer;X=C.teaser.simpleCardTeaserRenderer;a=C.icon?C.icon.infoCardIconRenderer:null;C={id:V,timestamp:p.Y,type:"video",teaserText:g.uq(X.message),teaserDurationMs:Number(C.cueRanges[0].teaserDurationMs), startMs:Number(C.cueRanges[0].startCardActiveMs),autoOpen:!!C.autoOpen,sessionData:p9(p,V,C,H),sponsored:!1,Fg:Qo(H,X,H.action),NR:H.trackingParams?g.ym(H.trackingParams):null,DS:X.trackingParams?g.ym(X.trackingParams):null,Yl:a&&a.trackingParams?g.ym(a.trackingParams):null,XR:C9(H.videoThumbnail.thumbnails,258).url,videoDuration:H.lengthString?g.uq(H.lengthString):null,customMessage:H.customMessage?g.uq(H.customMessage):null,title:H.videoTitle?g.uq(H.videoTitle):"",metaInfo:[H.channelName?g.uq(H.channelName): "",H.viewCountText?g.uq(H.viewCountText):""],isLiveNow:!!H.badge,url:PL({pause_on_navigation:!p.context.videoData.isLivePlayback,target:"new",value:FaE(H.action)}),onClickCommand:null};G_(p,C)}}}}}p.Y++},C9=function(p,C){for(var V=-1,N=-1,H=0;H=C||(p[H].width||0)>=290)&&(N<0||(p[N].height||0)>(p[H].height||0)||(p[N].width||0)>(p[H].width||0))&&(N=H)}return p[N>=0?N:V]},p9=function(p,C,V,N){return{feature:V.feature?V.feature:"cards", src_vid:p.context.videoData.videoId,annotation_id:C,ei:p.context.videoData.eventId||"",itct:N.trackingParams||""}},$Xv=function(p,C){if(C=uHE(p,C))C===p.T&&(p.T=null),p.N.removeCueRange(C.eZ.id),g.lK(C.lh),g.rY(p.cards,C),p.nC(),j$(p)},r4=function(p,C,V){if(!p.V){p.KS.show(); p.Y_=new g.N8(function(){g.Ed(p.context.N.getRootNode(),g.wr.IV_DRAWER_OPEN)},0); p.Y_.start();p.Ga.U(p.C,"mousewheel",function(d){p.Vn.start();d.preventDefault();d=d||window.event;var a=0;d.type=="MozMousePixelScroll"?a=0==(d.axis==d.HORIZONTAL_AXIS)?d.detail:0:window.opera?a=d.detail:a=d.wheelDelta%120==0?"WebkitTransform"in document.documentElement.style?window.chrome&&navigator.platform.indexOf("Mac")==0?d.wheelDeltaY/-30:d.wheelDeltaY/-1.2:d.wheelDelta/-1.6:d.wheelDeltaY/-3;if(d=a)p.C.scrollTop+=d}); p.V=!0;var N=g.bz();N&&p.Sa&&p.D&&g.sy(N,[p.Sa,p.D]);C={TRIGGER_TYPE:C};for(var H=g.F(p.cards),X=H.next();!X.done;X=H.next())X=X.value,X.RB||(X.RB=!0,LaP(p.context.logger,X.eZ.Fg.DX,C)),N&&g.sy(N,[X.eZ.NR]);Z$(p.N);V&&(p.W=new g.N8(function(){p.Wr=p.J;p.X$.focus()},330),p.W.start())}},BL=function(p){p.V&&(p.KS.hide(),g.Am(p.Ga),g.tk(p.context.N.getRootNode(),g.wr.IV_DRAWER_OPEN),p.V=!1,Z$(p.N),p.W&&p.W.stop(),p.W=new g.N8(function(){p.Wr&&(p.Wr.focus(),p.Wr=null)},330),p.W.start())},geG=function(p){g.lI(p.V$(), [g.wr.STOP_EVENT_PROPAGATION, "iv-drawer-manager"]);g.LT(p.N,p.S,5);p.wG();p.J=g.ju("ytp-cards-button",p.N.getRootNode());p.X$=g.ju("iv-drawer-close-button",p.S);p.isInitialized=!0},Wa1=function(p){p.a$.push(g.T7("iv-teaser-shown",p.CH,p)); p.a$.push(g.T7("iv-teaser-hidden",p.BU,p));p.a$.push(g.T7("iv-teaser-clicked",p.nH,p));p.kM=!0},Qcp=function(p,C){var V; return C.onClickCommand&&((V=g.n(C.onClickCommand,g.lV1))==null?void 0:V.targetId)==="engagement-panel-error-corrections"?(p.b_=C,!0):!1},rbc=function(p,C){p.b_=C; var V=p.N.getVideoData();if(!V)return!1;V=g.Ft(V);if(V==null?0:V.markersMap)for(var N,H=0;((N=V)==null?void 0:N.markersMap.length)>H;H++){var X=void 0,d=(X=V)==null?void 0:X.markersMap[H];if(d.key==="ERROR_CORRECTION_MARKERS"&&(X=void 0,(d=(X=d.value)==null?void 0:X.markers)&&d.length>0))return N=void 0,C.startMs=((N=g.n(d[0],g.QPy))==null?void 0:N.timeRangeStartMillis)||0,p.b_=null,!0}return!1},G_=function(p,C){if(!Qcp(p,C)||rbc(p,C)){var V=BVy(p,C); if(V){var N={eZ:C,lh:V.element,RB:!1};if(C.onClickCommand)p.N.G("web_infocards_teaser_show_logging_fix")&&(p.kM||Wa1(p),$Xv(p,C.id),V=p.findLastIndex(N),g.VR(p.cards,V,0,N));else{p.isInitialized||geG(p);$Xv(p,C.id);var H=p.findLastIndex(N);g.VR(p.cards,H,0,N);V.u_(p.C,H);p.nC()}C.autoOpen?p.addCueRange(C.startMs,0x8000000000000,C.id,function(){p.V||(p.T=N,j$(p),GNG(p,N),r4(p,"YOUTUBE_DRAWER_AUTO_OPEN",!1))}):(V=p.context.N.getCurrentTime()*1E3,V<5E3&&V>C.startMs&&pGv(p,N),p.addCueRange(C.startMs, C.startMs+1,C.id,function(){pGv(p,N)}),j$(p))}}},BVy=function(p,C){switch(C.type){case "simple":p=p.sY; var V=C.displayDomain?{L:"div",B:"iv-card-image-text",Ak:C.displayDomain}:void 0;var N=MlG(C);V={L:"div",i_:["iv-card"],j:[{L:"a",B:"iv-click-target",X:{href:C.url?ej(C.url)||"":""},j:[$O(C.imageUrl,V),{L:"div",B:"iv-card-content",j:[w4("h2",void 0,C.title),N]}]}]};V=new g.L(V);LB(p,g.pe("iv-click-target",V.element),C,C.url);C=V;break;case "collaborator":p=p.sY;V={L:"div",i_:["iv-card","iv-card-channel"],j:[{L:"a",i_:["iv-click-target"],X:{href:ej(C.url)||"","data-ytid":C.channelId},j:[$O(C.profileImageUrl), {L:"div",B:"iv-card-content",j:[cb5(C),{L:"h2",B:"iv-card-primary-link",Ak:C.title},TVG(C)]}]}]};V=new g.L(V);LB(p,g.pe("iv-click-target",V.element),C,C.url);C=V;break;case "playlist":p=p.sY;V={L:"div",i_:["iv-card","iv-card-playlist"],j:[{L:"a",B:"iv-click-target",X:{href:ej(C.url)||""},j:[$O(C.XR,{L:"div",B:"iv-card-image-overlay",j:[{L:"span",B:"iv-card-playlist-video-count",Ak:C.playlistVideoCount}]}),{L:"div",B:"iv-card-content",j:[cb5(C),w4("h2","iv-card-primary-link",C.title),TVG(C)]}]}]}; V=new g.L(V);LB(p,g.pe("iv-click-target",V.element),C,C.url);C=V;break;case "productListing":p=p.sY;var H=C.offers.length!=0;V=["iv-card"];N="";var X=MlG(C);H&&(V.push("iv-card-product-listing"),N="iv-card-primary-link",X=C.offers[0],H=[],X.price&&H.push({L:"div",B:"iv-card-offer-price",Ak:X.price}),X.merchant&&H.push({L:"div",B:"iv-card-offer-merchant",Ak:X.merchant}),X={L:"div",j:H});H=C.url?ej(C.url)||"":"";V={L:"div",i_:V,X:{tabindex:"0"},j:[{L:"a",i_:["iv-card-image","iv-click-target"],X:{style:"background-image: url("+ C.imageUrl+");",href:H,"aria-hidden":"true",tabindex:"-1"}},{L:"div",B:"iv-card-content",j:[C.sponsored?{L:"div",B:"iv-card-sponsored",j:["Patrocinado",{L:"div",B:"iv-ad-info-container",j:[{L:"div",B:"iv-ad-info",Ak:"{{adInfo}}"},{L:"div",B:"iv-ad-info-icon-container",j:[{L:"div",B:"iv-ad-info-icon"},{L:"div",B:"iv-ad-info-callout"}]}]}]}:"",{L:"a",B:"iv-click-target",X:{href:H},j:[w4("h2",N,C.title),X]}]}]};V=new g.L(V);N=g.iK("span");g.ce(N,"Voc\u00ea v\u00ea este produto porque achamos que ele \u00e9 relevante para o v\u00eddeo. O Google pode ser compensado pelo comerciante."); V.Jc(N,"adInfo");LB(p,g.pe("iv-click-target",V.element),C,C.url);C=V;break;case "video":p=p.sY;N=C.videoDuration?{L:"span",B:"iv-card-video-duration",Ak:C.videoDuration}:void 0;X=C.isLiveNow?{L:"span",i_:["yt-badge","yt-badge-live"],Ak:"AO VIVO AGORA"}:null;H={L:"div",i_:["iv-card","iv-card-video"],j:[{L:"a",B:"iv-click-target",X:{href:((V=C.url)==null?void 0:ej(V))||""},j:[$O(C.XR,N),{L:"div",B:"iv-card-content",j:[cb5(C),w4("h2","iv-card-primary-link",C.title),TVG(C),X]}]}]};V=new g.L(H);LB(p,g.pe("iv-click-target", V.element),C,C.url);C=V;break;default:return null}return C},CcG=function(p){if(p.T)return p.T.eZ.type==="productListing"; if(p.N.G("enable_wn_infocards")){var C;return!((C=p.cards)==null||!C.length)&&g.oo(p.cards,function(V){return V.eZ.type==="productListing"})}return g.oo(p.cards,function(V){return V.eZ.type==="productListing"})},j$=function(p){g.Tz(p.N.getRootNode(),"ytp-cards-shopping-active",CcG(p))},pGv=function(p,C){if(!g.aL(p.N.getRootNode(),"ytp-cards-teaser-shown")){if(p.T!==C){var V=g.bz(),N=p.T?p.T.eZ.Yl:p.Yl; V&&N&&g.aS(V,[N]);p.T=C;j$(p)}(V=p.isInitialized&&p.V$().style.display=="none")||(V=p.context.N.getPlayerState(),N=V===0&&p.context.N.getCurrentTime()===0,V=!(V===1||V===3||N));V||C.eZ.teaserDurationMs&&p.N.Y3(!0,{teaserText:C.eZ.teaserText,durationMs:C.eZ.teaserDurationMs,onClickCommand:C.eZ.onClickCommand});p.Qn.isActive()||((!p.V||!p.Vn.isActive()&&p.vr)&&GNG(p,C),p.Qn.start(910+C.eZ.teaserDurationMs))}},GNG=function(p,C){p.Z.C4?(C=new q9([0, p.C.scrollTop],[0,C.lh.offsetTop],600,nVY),p.context.V.listen(C,"animate",function(V){p.C.scrollTop=V.y}),p.context.V.listen(C,"finish",function(V){p.C.scrollTop=V.y}),C.play()):(p.Z.jb(!0),p.C.scrollTop=C.lh.offsetTop,p.Z.jb(!1))},Ve=function(p){return p.T&&p.T.eZ?p.T.eZ:p.cards[0]&&p.cards[0].eZ?p.cards[0].eZ:null},uHE=function(p,C){return g.L0(p.cards,function(V){return V.eZ.id===C})},N2=function(p,C,V){g4.call(this,p,C); this.annotation=V;this.isActive=!1},jav=function(p){var C=p.annotation.data; "start_ms"in C&&"end_ms"in C&&p.addCueRange(Number(C.start_ms),Number(C.end_ms),p.annotation.id,function(){p.show()},function(){p.hide()})},HM=function(p,C,V){N2.call(this,p,C,V); this.C=null;this.D=!1;this.V=null;this.S=!1;this.T=this.Y=this.W=null},Vgc=function(p,C){var V=V===void 0?0:V; var N=Imc(C).width;g.OE(C,N);V=new zv2(C,[N,C.offsetTop],[N-N-V,C.offsetTop],200,Rv5);g.R(p,V);p.context.V.listen(V,"begin",function(){g.o9(C,!0)}); V.play()},XGy=function(p,C){if(C.channel_name){var V=p.createElement({L:"div", i_:["iv-branding-context-name"],Ak:C.channel_name}),N=p.createElement({L:"div",i_:["iv-branding-context-subscribe"]}),H=C.standalone_subscribe_button_data;H&&(p.T=new g.ER(H.subscribeText,H.subscribeCount,H.unsubscribeText,H.unsubscribeCount,!!H.enabled,!!H.classic,C.channel_id,!!H.subscribed,H.feature,C.session_data.itct,p.context.N,!1),p.T.u_(N));var X=p.createElement({L:"div",i_:["iv-branding-context-subscribe-caret"]}),d=p.createElement({L:"div",i_:["branding-context-container-inner"]});d.appendChild(X); d.appendChild(V);d.appendChild(N);g.o9(d,!1);var a=p.createElement({L:"div",i_:["branding-context-container-outer"]});a.appendChild(d);g.K2(a,"right",C.image_width+"px");g.so(p.V$(),a);p.V=new g.N8(function(){NI8(p,d,a)},500); g.R(p,p.V);p.context.T.listen(p.V$(),"mouseover",function(){HG0(p,d,a,X,C.image_height)}); p.context.T.listen(p.V$(),"mouseout",function(){p.V.start()})}},HG0=function(p,C,V,N,H){p.V.stop(); if(!p.S){var X=g.Ax(C);p.T||(C.style.width=g.f2(X.width,!0),V.style.width=g.f2(X.width,!0));g.K2(N,"top",X.height-Math.max(Math.min(X.height,H)/2+10,20)+"px");g.K2(N,"right","1px");p.S=!0;g.o9(C,!0);p.W=new g.N8(function(){g.Ed(this.V$(),"iv-branding-active")},0,p); p.W.start()}},NI8=function(p,C,V){g.tk(p.V$(),"iv-branding-active"); p.Y=new g.N8(function(){g.o9(C,!1);p.T||(V.style.width=g.f2(0,!0))},250); p.Y.start();p.S=!1},d$r=function(p,C,V,N,H,X,d){this.T=p; this.V=C;this.yn=V;this.videoData=N;this.logger=H;this.N=X;this.C=d},iG8=function(p,C,V){N2.call(this,p,C,V); var N=this;this.J=this.isCollapsed=this.Z=!1;this.Y=5E3;this.C=this.V=this.T=this.S=null;this.D=this.createElement({L:"div",i_:["iv-promo-contents"]});this.W=new g.N8(function(){N.T.setAttribute("aria-hidden","true");g.o9(N.V,!1);g.o9(N.C,!0)},700,this); g.R(this,this.W)},saf=function(p){var C=p.annotation.data; if(p.annotation.style==="cta")var V=6;else if(p.annotation.style==="video"||p.annotation.style==="playlist")V=7;p.Y=C.collapsedelay_ms||p.Y;var N=["iv-promo","iv-promo-inactive"];p.V$().setAttribute("aria-hidden","true");p.V$().setAttribute("aria-label","Promo\u00e7\u00e3o");p.V$().tabIndex=0;var H=p.annotation.i9(),X=C.image_url;if(X){var d=p.createElement({L:"div",i_:["iv-promo-img","iv-click-target"]});X=p.createElement({L:"img",X:{src:X,"aria-hidden":"true"}});d.appendChild(X);C.video_duration&& !C.is_live?(X=p.createElement({L:"span",B:"iv-promo-video-duration",Ak:C.video_duration}),d.appendChild(X)):C.playlist_length&&(X=p.createElement({L:"span",B:"iv-promo-playlist-length",Ak:C.playlist_length.toString()}),d.appendChild(X));H&&WL(p,d,H,p.annotation.id,C.session_data,void 0,V)}H?(X=p.createElement({L:"a",B:"iv-promo-txt"}),g.el(X,ej(H)),p.T=X):p.T=p.createElement({L:"div",B:"iv-promo-txt"});switch(p.annotation.style){case "cta":case "website":var a=p.createElement({L:"p",j:[{L:"strong", Ak:C.text_line_1}]});var E=p.createElement({L:"p",j:[{L:"span",B:"iv-promo-link",Ak:C.text_line_2}]});if(X=C.text_line_3){N.push("iv-promo-website-card-cta-redesign");var l=p.createElement({L:"button",i_:["iv-promo-round-expand-icon","ytp-button"]});X=p.createElement({L:"button",i_:["iv-button","iv-promo-button"],j:[{L:"span",B:"iv-button-content",Ak:X}]});var t=p.createElement({L:"div",B:"iv-promo-button-container"});t.appendChild(X);H&&WL(p,p.V$(),H,p.annotation.id,C.session_data,void 0,V)}g.Ed(p.T, "iv-click-target");H&&WL(p,p.T,H,p.annotation.id,C.session_data,void 0,V);break;case "playlist":case "video":a=p.createElement({L:"p",j:[{L:"span",Ak:C.text_line_1}]}),E=p.createElement({L:"p",j:[{L:"strong",Ak:C.text_line_2}]}),C.is_live&&(a=E,E=p.createElement({L:"span",i_:["yt-badge","iv-promo-badge-live"],Ak:"AO VIVO AGORA"})),g.Ed(p.T,"iv-click-target"),H&&WL(p,p.T,H,p.annotation.id,C.session_data,void 0,V),N.push("iv-promo-video")}a&&p.T.appendChild(a);E&&p.T.appendChild(E);p.D.appendChild(p.T); t&&p.D.appendChild(t);V=p.createElement({L:"div",B:"iv-promo-actions"});p.C=p.createElement({L:"button",i_:["iv-promo-expand","ytp-button"]});p.C.title="Expandir";p.context.T.listen(p.C,"click",function(c){hQP(p,5E3,c)}); V.appendChild(p.C);g.o9(p.C,!1);p.context.T.listen(p.V$(),"mouseover",p.Wk,p);p.context.T.listen(p.V$(),"mouseout",p.f_,p);p.context.T.listen(p.V$(),"touchend",function(c){hQP(p,5E3,c)}); p.V=p.createElement({L:"button",i_:["iv-promo-close","ytp-button"]});p.V.title="Fechar";p.context.T.listen(p.V,"click",p.annotation.style==="cta"&&C.text_line_3?p.Eg:p.Sk,p);V.appendChild(p.V);g.lI(p.V$(),N);d&&(g.so(p.V$(),d),l&&d.appendChild(l));g.so(p.V$(),p.D);g.so(p.V$(),V)},hQP=function(p,C,V){V.stopPropagation(); aHy(p);E5y(p,C);p.T.focus()},lHG=function(p){p.isCollapsed||p.J||p.S||(g.Ed(p.V$(),"iv-promo-collapsed"),p.isCollapsed=!0,p.W.start())},aHy=function(p){p.W.stop(); p.isCollapsed&&(g.cF(p.V$(),["iv-promo-collapsed","iv-promo-collapsed-no-delay"]),p.isCollapsed=!1,p.T&&p.T.removeAttribute("aria-hidden"),g.o9(p.C,!1),g.o9(p.V,!0))},E5y=function(p,C){p.S||(p.S=g.bm(function(){tgG(this); lHG(this)},C,p))},tgG=function(p){p.S&&(g.xH.clearTimeout(p.S),p.S=null)},c9E=function(p){this.N=p},LaP=function(p,C,V){C&&(V?XS(p,C.map(function(N){return g.nX(N,V)})):XS(p,C))},XS=function(p,C,V,N){var H=1,X=void 0,d=-1; if(V){var a=!1;X=function(){H--;H||a||(clearTimeout(d),a=!0,V())}; d=setTimeout(function(){a=!0;V()},1E3)}C=g.F(C||[]); for(var E=C.next();!E.done;E=C.next())E=E.value,H++,g.BC(E,X);N&&(H++,N!==0&&p.N.sendVideoStatsEngageEvent(N,X))},TIG=function(p){g.IT.call(this,p); var C=this;this.a$=this.J=!1;this.loadNumber=0;this.Y={};this.logger=new c9E(this.player);this.S=new g.Rr(this);this.W=this.D=null;this.events=new g.Rr(this);this.Mn=this.Z=this.T=null;this.b_=[];g.R(this,this.S);this.S.U(this.player,"onVideoAreaChange",function(){C.publish("onVideoAreaChange")}); this.S.U(this.player,"onHideControls",function(){C.publish("onHideControls")}); this.S.U(this.player,"onShowControls",function(){C.publish("onShowControls")}); this.S.U(this.player,"resize",function(N){C.publish("resize",N)}); this.S.U(this.player,"presentingplayerstatechange",function(N){C.publish("presentingplayerstatechange",N)}); this.subscribe("presentingplayerstatechange",this.AD,this);this.subscribe("resize",this.xg,this);this.player.K().vr.subscribe("vast_info_card_add",this.gC,this);g.R(this,this.events);this.sY=this.createElement({L:"div",B:"video-custom-annotations"});this.C=new g.L({L:"div",i_:["ytp-player-content","ytp-iv-player-content"]});g.R(this,this.C);g.LT(this.player,this.C.element,4);this.C.hide();this.V=new g.L({L:"div",i_:["ytp-iv-video-content"]});g.R(this,this.V);p=this.createElement({L:"div",B:"video-annotations"}); p.appendChild(this.sY);this.V.element.appendChild(p);this.zE()&&this.load();var V=this.createElement({L:"style"});(g.Gh("HEAD")[0]||document.body).appendChild(V);this.addOnDisposeCallback(function(){g.lK(V)}); if(p=V.sheet)p.insertRule(".iv-promo .iv-promo-contents .iv-promo-txt .iv-promo-link:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAHlBMVEVMaXH////////////////////////////////////Z6AnKAAAACXRSTlMA+/A2IuI1mJIldm0CAAAAAWJLR0QB/wIt3gAAAEVJREFUCNdjYGCYCQUMBJlACOIzIDElIcyZkwxgojOVWWDMSQauMKYySySUOSnBdSaUOZ0lEsac2YqwYiZ+JhwgM7E5HACgzVCI/YJ59AAAAABJRU5ErkJggg==) no-repeat center;background-size:10px;width:10px;height:10px}", 0),p.insertRule(".iv-promo .iv-promo-actions .iv-promo-close:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXH///////////////////////////////////////////9tKdXLAAAAC3RSTlMAVaQDpaimqQbl5rjXUFUAAAABYktHRAH/Ai3eAAAAPUlEQVQI12MQMmAwEmDwDmaOTmAw39663YCBuXp2MQMDQ+fOBgYG5ujVwQwMptvbgeLaxczVCQwiBgxmAgBkXg1FN5iwiAAAAABJRU5ErkJggg==) no-repeat center;background-size:9px;width:9px;height:9px}", 0),p.insertRule(".iv-promo .iv-promo-actions .iv-promo-expand:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAJBAMAAADnQZCTAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXHMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMz////eMKB4AAAAC3RSTlMAOpE7k5Uvj5kpfRaQSaQAAAABYktHRAsf18TAAAAAHklEQVQI12MQYGBQZmBwTWCo0GSo6AKRQDZQRIABADXXA/UkIpvtAAAAAElFTkSuQmCC) no-repeat center;background-size:4px 9px;width:4px;height:9px}",0),p.insertRule(".iv-promo-website-card-cta-redesign .iv-promo-round-expand-icon:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgCgUUEztsNfqrAAAAXklEQVRYw+3Uuw2AQAwEUUNXfBpDIvBRMhQwJJAScNrA0r4CdiQHjjAzK4NGKucPAFmCnZcmwcTphBNO9CTGH4VB+/Zm6YlYis9fhedXz38FNvFriCCl808iw8ysrBu65gCeuV/CfgAAAABJRU5ErkJggg==) no-repeat center;background-size:18px 18px;width:18px;height:18px}", 0),p.insertRule(".iv-card-link-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASBAMAAACk4JNkAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEVMaXG7u7u7u7u7u7u7u7u7u7u7u7v///+WKTAlAAAABnRSTlMAFdQWbGj9GiOuAAAAAWJLR0QHFmGI6wAAAEhJREFUCNdjYACBNCBgQGMxMKrBWEJJaRAJRjVlKEsoSQDIAqtSZICwgEIQFkgIZBRECMxiBqsCsVjAqsCygQwwFgMeFgQgswBg2xjLrfC4mgAAAABJRU5ErkJggg==) no-repeat center;background-size:9px;width:9px;height:9px}",0),p.insertRule(".iv-card-playlist-video-count:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXH///////////////////////////////////////////9tKdXLAAAAC3RSTlMAvDeyLvxYtDK9Ogx4T1QAAAABYktHRAH/Ai3eAAAAK0lEQVQY02NgoBjshgO8HJoYwKiAMGAD92YHJM7uMCTO9gaEHs4FlPuZAQC8Fj8x/xHjxwAAAABJRU5ErkJggg==) no-repeat center;background-size:24px;width:24px;height:24px}", 0),p.insertRule(".iv-drawer-close-button:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMAgMAAAArG7R0AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEVMaXH////////OZTV/AAAAAnRSTlMAoKBFbtAAAAABYktHRAH/Ai3eAAAAKUlEQVQI12MIYGBlSGGQBMIUBjbHCQyM0xwYGDIZwBjEBomB5EBqgGoBolQGzYuy51cAAAAASUVORK5CYII=) no-repeat center;background-size:12px;width:12px;height:12px}",0),p.insertRule(".iv-ad-info-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAMAAACecocUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAVFBMVEVMaXGUlJSYmJiZmZmYmJiXl5eZmZmZmZmWlpaVlZWOjo6ZmZmSkpKXl5eYmJiYmJiZmZmZmZmZmZmZmZmYmJiJiYmXl5eZmZmYmJiWlpaZmZn///+81lbeAAAAGnRSTlMAE5DM80DliTMMEjccWIM5p1UjaTQNgB5cLlr5mgUAAAABYktHRBsCYNSkAAAAVElEQVQI102NRw7AIBADhw7ppIf/PzQLJ/ZgWSNrFlDaWKMVcs6HmGLwTqjEME6CFDrAXBYIGhNh3TJEg02wHydctvFc7sbrvnXZV8/zfs3T+7u/P7CrAso35YfPAAAAAElFTkSuQmCC) no-repeat center;background-size:11px;width:11px;height:11px}", 0),p.insertRule(".annotation-close-button {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEVMaXEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Pz9aWloBAQGZmZlbW1v///+X9wUzAAAACHRSTlMANprf+g6lyRmB9hUAAAABYktHRA5vvTBPAAAAWUlEQVQI12NgYBAycVZkAIKwDiBIZWBgrQAx2gMY2DrAIIFBomPWju6VHY0MGh1rbu891dHEYNGx9+yd2x3NDB4d3XfO7uhoQTDgUnDFcO1wA+FWwC2FOQMAdKg6tUSAFEAAAAAASUVORK5CYII=) no-repeat center}",0),p.insertRule(".annotation-link-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAUVBMVEVMaXH////////////////////////////////////////////////////////////////////////////////////////////////////////JzkR1AAAAGnRSTlMAfXf+c3xsdGdv/GJoXPtXXflSVk5L7DBH9VeFfsQAAAABYktHRAH/Ai3eAAAAgElEQVQ4y93SSQ6AIAwFULSOOOJs739Qf9SF0VA2uNCu+psHaQJK7cVCqY+Rg92PXA++Q84KnCR03UIRJrFEKMEgZYFQhpyzQHSBWJJAdIVUENtJ3SC0mu3EdOh7zXZiBrRdzQLJ0Y1GfOlpVstD3HaZktX9X/gvRCxvxL6FR7IBS1RTM5xIpLoAAAAASUVORK5CYII=) no-repeat center}", 0)},MgE=function(p){p=p.createElement({L:"div", i_:["annotation","annotation-type-custom"]});g.o9(p,!1);return p},J9p=function(p,C){C=!C.isCued()&&!g.r(C,1024); p.C.jb(C);p.V.jb(C)},m$r=function(p,C,V){p.J=!0; p.W=g.qU(C,V)},v5c=function(p,C){for(var V={},N=g.F(C.attributes),H=N.next();!H.done;H=N.next())H=H.value,V[H.name]=H.nodeValue; for(N=0;N0&&(X=H.childNodes[0].nodeValue,V[H.tagName]=typeof X==="string"?X.trim():X);continue}else X=[],V[H.tagName]=X;H&&H.tagName==="TEXT"?H.childNodes.length===1&&H.childNodes[0].nodeType===3?X.push(H.childNodes[0].nodeValue):X.push(""):H&&X.push(v5c(p,H))}return V},D$Y=function(p){var C=p.player.getVideoData(); if(C.R$){var V=p.player.K().vr.get(C.videoId);if(V){var N={format:"XML",urlParams:{},method:"POST",withCredentials:!0,onFinish:function(H,X,d){H=p.loadNumber;X=C.videoId;p.loaded&&p.loadNumber===H&&p.player.getVideoData().videoId===X&&(d=g.vd(d)&&d.responseXML?d.responseXML:null)&&F9y(p,d)}}; g.X2()&&(N.onFinish=S_5(p,N.onFinish));N.postParams={ic_only:"1"};K9Y(N,V);p.J=!0;g.qU(C.R$,N)}}},K9Y=function(p,C){p.method="POST"; p.postParams=p.postParams||{};C.IY&&(p.postParams.ic_coll=C.IY);C.gm&&(p.postParams.ic_xml=C.gm);C.U1&&(p.postParams.ic_track=C.U1)},uny=function(p){var C=new g.L({L:"div"}); g.o9(C.element,!1);var V=new SQE(p.player,C.element,d5(p));g.R(V,C);C.u_(p.C.element);V.H9();return V},U$y=function(p,C){var V,N; if(C=(V=C.getWatchNextResponse())==null?void 0:(N=V.cards)==null?void 0:N.cardCollectionRenderer)p.a$=!0,ZG5(p,C),C.headerText&&p.Mn&&(V=g.uq(C.headerText),p.Mn.setAttribute("title",V))},d5=function(p){if(!p.Z){var C=new ev0(p); g.R(p,C);var V=new g.os(p);g.R(p,V);p.Z=new d$r(C,V,p.player.K(),p.player.getVideoData(),p.logger,p.player,p.Nw)}return p.Z},F9y=function(p,C){var V=!1,N=C.getElementsByTagName("annotations"); if(N&&!(N.length<1)&&(N=N[0].getAttribute("itct"))){var H=g.bz();if(H){var X=g.IW();X&&g.NU(g.pq)(void 0,H,X,[g.ym(N)])}}C=C.getElementsByTagName("annotation");for(N=0;N=d)H=X,N=d}N=bGF[H];this.V&&g.K2(this.V.element,"outline-width",Math.max(C.width,C.height)+"px");for(C=0;C256||X>256?g.Ed(H.element,"ytp-ce-large-round"):E>96||X>96?g.Ed(H.element,"ytp-ce-medium-round"):g.Ed(H.element,"ytp-ce-small-round");g.cF(H.element,o51);E=d.left+d.width/2;d=d.top+a/2;g.Ed(H.element,E<=.5&&d<=.5?"ytp-ce-top-left-quad":E>.5&&d<=.5?"ytp-ce-top-right-quad": E<=.5&&d>.5?"ytp-ce-bottom-left-quad":"ytp-ce-bottom-right-quad");g.cF(H.element,bGF);g.Ed(H.element,N);(H=g.Ce(document,"div","ytp-ce-expanding-overlay-body",H.element)[0])&&g.K2(H,"height",X+"px")}}}}}; g.h.onCueRangeEnter=function(p){if(this.endscreen)if(p.getId()==="ytp-ce-in-endscreen")RP(this,this.endscreen.impressionUrls),(p=g.bz())&&this.endscreen.visualElement&&g.hO(p,this.endscreen.visualElement),this.T&&(g.Ed(this.T,"ytp-ce-element-show"),this.T.removeAttribute("aria-hidden"),this.player.dR()?g.Ed(this.T,"ytp-ce-hide-button-lower"):g.tk(this.T,"ytp-ce-hide-button-lower"));else{p=p.getId().substring(15);var C=this.C[p],V=this.Y[p];g.Ed(C.element,"ytp-ce-element-show");C.element.removeAttribute("aria-hidden"); C=this.player.getRootNode();g.Ed(C,"ytp-ce-shown");RP(this,V.impressionUrls);(C=g.bz())&&g.hO(C,V.visualElement);this.player.K().D&&this.player.Jk("endscreenelementshown",p)}}; g.h.onCueRangeExit=function(p){if(p.getId()==="ytp-ce-in-endscreen")this.T&&(g.tk(this.T,"ytp-ce-element-show"),this.T.setAttribute("aria-hidden","true"));else{p=p.getId().substring(15);var C=this.C[p];g.tk(C.element,"ytp-ce-element-show");C.element.setAttribute("aria-hidden","true");C=this.player.getRootNode();g.tk(C,"ytp-ce-shown");this.player.K().D&&this.player.Jk("endscreenelementhidden",p)}}; g.h.Jca=function(p){var C=this;p.target===window&&(new g.N8(function(){for(var V=g.F(Object.values(C.C)),N=V.next();!N.done;N=V.next())g.cF(N.value.element,["ytp-ce-force-expand","ytp-ce-element-hover","ytp-ce-element-shadow-show"])},0)).start()}; g.h.jb=function(p){for(var C=g.F(Object.values(this.C)),V=C.next();!V.done;V=C.next())V=V.value,p?V.element.setAttribute("hidden",""):V.element.removeAttribute("hidden")}; g.h.rEx=function(p){this.T&&this.player.getRootNode().removeChild(this.T);p&&(g.Ed(p,"ytp-ce-hide-button-container"),this.T=p,g.LT(this.player,this.T,4))}; var IHf=[346,426,470,506,570,640,853,1280,1920],bGF="ytp-ce-size-346 ytp-ce-size-426 ytp-ce-size-470 ytp-ce-size-506 ytp-ce-size-570 ytp-ce-size-640 ytp-ce-size-853 ytp-ce-size-1280 ytp-ce-size-1920".split(" "),o51=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"],A9r=["ytp-ce-small-round","ytp-ce-medium-round","ytp-ce-large-round"];var dXE={x3a:"current",g9k:"new"};var hJ0={CLOSE:"close",o9n:"openUrl",SUBSCRIBE:"subscribe"},sc8={oqe:"click",CLOSE:"close",s5a:"hidden",PT_:"rollOut",ROe:"rollOver",wIe:"shown"};Eef.prototype.i9=function(){var p=luv(this,function(C){return C.type==="openUrl"&&C.url!=null}); return p?p.url:null}; var OGP={kWe:"anchored",tO:"branding",CHANNEL:"channel",Ag$:"cta",VH_:"highlightText",Zqx:"label",PLAYLIST:"playlist",POPUP:"popup",MI_:"speech",SUBSCRIBE:"subscribe",siV:"title",VIDEO:"video",dOn:"website"},fHp={tO:"branding",Y8_:"card",fu_:"drawer",rX$:"highlight",v9_:"marker",VIn:"promotion",TEXT:"text",Wr$:"widget"};g.m(g4,g.Y);g.h=g4.prototype;g.h.addCueRange=function(p,C,V,N,H){p=new g.sz(p,C,{id:V,namespace:"annotations_module"});N&&this.R$.set(p,N);H&&this.UY.set(p,H);this.context.N.d7([p],1)}; g.h.H9=function(){this.context.C.subscribe("resize",this.nC,this)}; g.h.V$=function(){return this.element}; g.h.VM=function(p,C,V,N,H,X){if(this.qo)return!1;X&&(X.stopPropagation(),X.preventDefault());this.navigate(p,V,N,H);return!1}; g.h.show=function(){}; g.h.hide=function(){}; g.h.destroy=function(){g.lK(this.V$())}; g.h.nC=function(){}; g.h.navigate=function(p,C,V,N){var H=this,X=ej(p);if(X){var d=vec(X,p.target),a=function(){p.T&&H.context.N.pauseVideo();var E=H.context.videoData.UV||!1,l=g.sk(X||"");E&&l&&(l.v||l.list)?H.context.N.Ce(l.v,C,l.list,!1):g.pS(X||"",d==="current"?"_top":void 0,C)}; d==="new"&&(a(),a=null);XS(this.context.logger,V,a,N);mXp(X)||(V=g.bz(),N=C.itct,V&&N&&g.Ey(V,g.ym(N)))}}; g.h.CS=function(){this.R$.clear();this.UY.clear();g.Y.prototype.CS.call(this)}; g.h.createElement=function(p){p=new g.L(p);g.R(this,p);return p.element};g.m(SQE,g4);g.h=SQE.prototype;g.h.mL=function(){this.b_&&G_(this,this.b_)}; g.h.isAvailable=function(){var p;if(p=!!this.cards.length)(p=this.N.getRootNode())?(p=g.Ax(p),p=173V.eZ.startMs||p.eZ.startMs===V.eZ.startMs&&p.eZ.timestamp>=V.eZ.timestamp?!0:!1}); return C===-1?0:C+1}; g.h.S_=function(){if(this.V){XS(this.context.logger,Ve(this).Fg.close);var p=g.bz();p&&this.D&&g.Ey(p,this.D);BL(this)}}; g.h.OH=function(){g.Tz(this.S,"iv-drawer-scrolled",this.C.scrollTop>0)}; g.h.DK=function(){var p=g.bz(),C=Ve(this);C=C?C.Yl:this.Yl;p&&C&&g.sy(p,[C])}; g.h.YJ=function(){var p=g.bz(),C=Ve(this);C=C?C.Yl:this.Yl;p&&C&&g.aS(p,[C])}; g.h.CH=function(){var p=Ve(this);XS(this.context.logger,p.Fg.WD);var C=g.bz();if(C&&p)if(this.N.G("web_infocards_teaser_show_logging_fix")){var V=[];p.DS&&V.push(p.DS);p.Yl&&V.push(p.Yl);V.length>0&&g.sy(C,V)}else g.sy(C,[p.DS,p.Yl])}; g.h.BU=function(){var p=g.bz(),C=Ve(this);p&&C&&g.aS(p,[C.DS])}; g.h.nH=function(p){var C=Ve(this),V=g.bz();this.T?p?(p=this.context.logger,XS(p,C.Fg.Pd),p.N.sendVideoStatsEngageEvent(4,void 0),V&&C.DS&&g.Ey(V,C.DS)):(p=this.context.logger,XS(p,C.Fg.Pd),p.N.sendVideoStatsEngageEvent(4,void 0),V&&C.Yl&&g.Ey(V,C.Yl)):(p=this.context.logger,XS(p,C.Fg.Pd),p.N.sendVideoStatsEngageEvent(4,void 0),V&&this.Yl&&g.Ey(V,this.Yl))};g.m(N2,g4);N2.prototype.H9=function(){g4.prototype.H9.call(this);jav(this)}; N2.prototype.show=function(){g4.prototype.show.call(this);var p=g.bz(),C=this.annotation.data;p&&C&&(C=C.session_data)&&g.sy(p,[g.ym(C.itct)])}; N2.prototype.hide=function(){g4.prototype.hide.call(this);var p=g.bz(),C=this.annotation.data;p&&C&&(C=C.session_data)&&g.aS(p,[g.ym(C.itct)])};g.m(HM,N2); HM.prototype.show=function(){if(!this.isActive){N2.prototype.show.call(this);if(!this.D){g.Ed(this.V$(),"iv-branding");var p=this.annotation.data;this.C=this.createElement({L:"img",i_:["branding-img","iv-click-target"],X:{"aria-label":"Marca-d'\u00e1gua do canal",src:p.image_url,width:p.image_width,height:p.image_height}});g.o9(this.C,!1);var C=this.createElement({L:"button",i_:["branding-img-container","ytp-button"]});C.appendChild(this.C);this.V$().appendChild(C);var V=this.annotation.i9();V&&WL(this, C,V,this.annotation.id,p.session_data);this.context.N.G("disable_branding_context")||XGy(this,p);this.D=!0}g.o9(this.V$(),!0);this.isActive=!0;if(this.C){try{Vgc(this,this.C)}catch(N){}g.Ed(this.context.N.getRootNode(),"ytp-branding-shown");this.context.N.getRootNode().style.setProperty("--branding-image-width",this.C.getAttribute("width")+"px")}}}; HM.prototype.hide=function(){this.isActive&&(N2.prototype.hide.call(this),g.o9(this.V$(),!1),this.isActive=!1,g.tk(this.context.N.getRootNode(),"ytp-branding-shown"))}; HM.prototype.destroy=function(){this.T&&(this.T.dispose(),this.T=null);g.tk(this.context.N.getRootNode(),"ytp-branding-shown");N2.prototype.destroy.call(this)};g.m(iG8,N2);g.h=iG8.prototype;g.h.show=function(){this.isActive||(N2.prototype.show.call(this),this.Z||(saf(this),this.Z=!0),g.o9(this.V$(),!0),g.bm(function(){g.tk(this.V$(),"iv-promo-inactive")},100,this),this.V$().removeAttribute("aria-hidden"),this.isActive=!0,tgG(this),aHy(this),E5y(this,this.Y))}; g.h.hide=function(){this.isActive&&(g.Ed(this.V$(),"iv-promo-inactive"),this.isActive=!1,this.V$().setAttribute("aria-hidden","true"))}; g.h.VM=function(p,C,V,N,H,X){return this.isCollapsed?!1:N2.prototype.VM.call(this,p,C,V,N,H,X)}; g.h.Wk=function(p){this.J=!0;hQP(this,500,p)}; g.h.f_=function(){this.J=!1;lHG(this)}; g.h.Sk=function(p){p.stopPropagation();this.hide()}; g.h.Eg=function(p){p.stopPropagation();tgG(this);this.isCollapsed=!0;g.Ed(this.V$(),"iv-promo-collapsed-no-delay");this.W.start()}; g.h.destroy=function(){this.W.dispose();N2.prototype.destroy.call(this)};g.m(TIG,g.IT);g.h=TIG.prototype;g.h.DP=function(p,C){if(!q_2(this.player.K().playerStyle))return null;switch(p){case "loadCustomAnnotationsXml":return(p=g.rv(C))&&F9y(this,p),!0;case "removeCustomAnnotationById":return C&&this.T&&($Xv(this.T,C),Z$(this.player)),!0}return null}; g.h.getOptions=function(){return q_2(this.player.K().playerStyle)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]}; g.h.zE=function(){var p=this.player.K(),C=this.player.getVideoData(),V=p.annotationsLoadPolicy||C.annotationsLoadPolicy;return g.lx(C)||this.player.isMutedByEmbedsMutedAutoplay()?!1:V===1&&!C.WM||p.vr.get(C.videoId)||g.qI(C)||g.IM(C)?!0:!1}; g.h.xg=function(){if(this.V){var p=this.player.dV().getVideoContentRect(!0);g.b4(this.V.element,p.width,p.height);g.OE(this.V.element,p.left,p.top)}if(this.T){var C=this.player.ai();p=this.T;C=C.width;g.Tz(p.S,"iv-drawer-small",C<=426);g.Tz(p.S,"iv-drawer-big",C>=1280)}}; g.h.AD=function(p){J9p(this,p.state);g.r(p.state,2)&&(this.dR()&&this.iy()&&this.player.getPresentingPlayerType()!==2&&this.Dg(!1),this.Y3(!1))}; g.h.load=function(){function p(d){var a=C.loadNumber;C.W=null;C.loaded&&C.loadNumber===a&&C.player.getVideoData().videoId===N&&(d=g.vd(d)&&d.responseXML?d.responseXML:null)&&(F9y(C,d),g.Ed(C.player.getRootNode(),"iv-module-loaded"))} var C=this;g.IT.prototype.load.call(this);J9p(this,this.player.getPlayerStateObject());this.loadNumber++;var V=this.player.getVideoData(),N=V.videoId;g.X2()&&(p=S_5(this,p));var H={format:"XML",onFinish:p,onError:function(){C.W=null}, urlParams:{}};V.isPharma&&(H.urlParams.pharma="1");H.method="POST";H.withCredentials=!0;var X=this.player.K().vr.get(N);X&&K9Y(H,X);X=X&&(X.gm||X.IY);if(!V.aX||X)V.R$?m$r(this,V.R$,H):(this.D=function(){if(!C.J)C.onVideoDataChange(H);var d=C.player.getVideoData();(d==null?0:g.yB(d))&&!C.a$&&U$y(C,d)},this.player.addEventListener("videodatachange",this.D)); g.LT(this.player,this.V.element,4);this.xg();(X=g.qI(V))&&ZG5(this,X);(X=g.IM(V))&&X.featuredChannel&&y90(this,X.featuredChannel,X.annotationId||"branding",V.videoId||null,V.eventId||null);this.Mn=g.ju("ytp-cards-button",this.player.getRootNode());g.yB(V)&&U$y(this,V)}; g.h.onVideoDataChange=function(p){var C=this.player.getVideoData();C.R$&&m$r(this,C.R$,p)}; g.h.unload=function(){this.player.qt("annotations_module");for(var p=g.F(Object.keys(this.Y)),C=p.next();!C.done;C=p.next())this.Y[C.value].destroy();this.Z=null;this.T&&(this.T.destroy(),this.T=null,Z$(this.player));this.J=!1;this.W&&(this.W.abort(),this.W=null);this.a$=!1;this.Y={};this.C.hide();g.IT.prototype.unload.call(this);this.V.detach();this.D&&(this.player.removeEventListener("videodatachange",this.D),this.D=null)}; g.h.gC=function(p){p===this.player.getVideoData().videoId&&(this.loaded?D$Y(this):this.load())}; g.h.dR=function(){var p;return((p=this.T)==null?void 0:p.isAvailable())||this.a$}; g.h.iy=function(){return!!this.T&&this.T.V}; g.h.Dg=function(p,C,V){C=C===void 0?!1:C;this.dR();this.T&&(p?V?r4(this.T,V,C):r4(this.T,"YOUTUBE_DRAWER_AUTO_OPEN",C):BL(this.T))}; g.h.Y3=function(p,C){this.player.publish(p?"cardsteasershow":"cardsteaserhide",C)}; g.h.CS=function(){this.player.K().vr.unsubscribe("vast_info_card_add",this.gC,this);g.tk(this.player.getRootNode(),g.wr.IV_DRAWER_OPEN);for(var p=this.b_,C=g.rE,V=0,N=p.length;V