PageSourceSearch

https://petclub247.com/includes/js/endscreen.js

js petclub247.com collected 2026-09-26 01:49:38 UTC 13,127 bytes, 62 lines download raw bytes

1(function(g){var window=this;var m4=function(a,b,c){var d=b.va();g.L(a.element,"ytp-suggestion-set",!!d.videoId);var e=b.getPlaylistId();c=b.kc(c?c:"mqdefault.jpg");var f=b instanceof g.ZB&&b.lengthSeconds?g.HL(b.lengthSeconds):null,k=!!e;e=k&&"RD"==(new g.PD(e.substr(0,2),e.substr(2))).type;var l=b instanceof g.ZB?b.ra:null;d={title:b.title,author:b.author,author_and_views:d.shortViewCount?b.author+" \u2022 "+d.shortViewCount:b.author,aria_label:b.bj||g.rM("Watch $TITLE",{TITLE:b.title}),duration:f,url:b.Vh(),is_live:l,is_list:k,
2is_mix:e,background:c?"background-image: url("+c+")":""};b instanceof g.RD&&(d.playlist_length=b.getLength());a.update(d)},n4=function(a,b){g.Ru.call(this,{F:"div",
3X:["html5-endscreen","ytp-player-content",b||"base-endscreen"]});this.player=a;this.created=!1},o4=function(a){g.V.call(this,{F:"div",
4X:["ytp-upnext","ytp-player-content"],N:{"aria-label":"{{aria_label}}"},L:[{F:"div",I:"ytp-cued-thumbnail-overlay-image",N:{style:"{{background}}"}},{F:"span",I:"ytp-upnext-top",L:[{F:"span",I:"ytp-upnext-header",W:"Up Next"},{F:"span",I:"ytp-upnext-title",W:"{{title}}"},{F:"span",I:"ytp-upnext-author",W:"{{author}}"}]},{F:"a",I:"ytp-upnext-autoplay-icon",N:{role:"button",href:"{{url}}","aria-label":"Play next video"},L:[{F:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},L:[{F:"circle",
5I:"ytp-svg-autoplay-circle",N:{cx:"36",cy:"36",fill:"#fff","fill-opacity":"0.3",r:"31.5"}},{F:"circle",I:"ytp-svg-autoplay-ring",N:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{F:"path",I:"ytp-svg-fill",N:{d:"M 24,48 41,36 24,24 V 48 z M 44,24 v 24 h 4 V 24 h -4 z"}}]}]},{F:"span",I:"ytp-upnext-bottom",L:[{F:"span",I:"ytp-upnext-cancel"},{F:"span",I:"ytp-upnext-paused",W:"Autoplay is paused"}]}]});
6this.C=null;var b=this.u["ytp-upnext-cancel"];this.C=new g.V({F:"button",X:["ytp-upnext-cancel-button","ytp-button"],N:{tabindex:"0","aria-label":"Cancel autoplay"},W:"Cancel"});g.H(this,this.C);this.C.ga("click",this.MH,this);this.C.o(b);this.w=a;this.K=this.u["ytp-svg-autoplay-ring"];this.G=this.D=this.A=this.B=null;this.H=new g.J(this.Fl,5E3,this);g.H(this,this.H);this.J=0;this.M(this.u["ytp-upnext-autoplay-icon"],"click",this.yJ);this.Lx();this.M(a,"autonavvisibility",this.Lx);this.M(a,"mdxnowautoplaying",
7this.RI);this.M(a,"mdxautoplaycanceled",this.SI);this.M(a,"mdxautoplayupnext",this.Yz);3==this.w.getPresentingPlayerType()&&(a=(a=g.FK(g.yK(this.w)))?a.uC():null)&&this.Yz(a)},p4=function(a,b){if(!a.A){g.Lo("a11y-announce","Up Next "+a.B.title);
8a.J=(0,g.Kq)();a.A=new g.J((0,g.x)(a.Ao,a,b),25);a.Ao(b);var c=b||g.R(a.w.O().experiments,"autoplay_time")||1E4;a.w.ka("onAutonavCoundownStarted",c)}g.kn(a.element,"ytp-upnext-autoplay-paused")},r4=function(a){q4(a);
9a.J=(0,g.Kq)();a.Ao();g.K(a.element,"ytp-upnext-autoplay-paused")},q4=function(a){a.A&&(a.A.dispose(),a.A=null)},s4=function(a,b){b=void 0===b?!1:b;
10if(g.Q(a.w.O().experiments,"autonav_notifications")&&b&&window.Notification&&document.hasFocus){var c=Notification.permission;"default"==c?Notification.requestPermission():"granted"!=c||document.hasFocus()||(c=a.B.va(),a.Fl(),a.D=new Notification("Up Next",{body:c.title,icon:c.kc()}),a.G=a.M(a.D,"click",a.pJ),a.H.start())}q4(a);a.w.nextVideo(!1,b)},t4=function(a){n4.call(this,a,"subscribecard-endscreen");
11var b=a.getVideoData();this.w=new g.V({F:"div",I:"ytp-subscribe-card",L:[{F:"img",I:"ytp-author-image",N:{src:b.Md}},{F:"div",I:"ytp-subscribe-card-right",L:[{F:"div",I:"ytp-author-name",W:b.author},{F:"div",I:"html5-subscribe-button-container"}]}]});g.H(this,this.w);this.w.o(this.element);this.A=new g.IQ("Subscribe",null,"Unsubscribe",null,!0,!1,b.Kf,b.subscribed,"trailer-endscreen",null,null,a);g.H(this,this.A);this.A.o(this.w.u["html5-subscribe-button-container"]);this.hide()},u4=function(a){var b=
12a.O(),c=g.Xs||g.dg?{style:"will-change: opacity"}:void 0,d=b.u,e=["ytp-videowall-still"];
13b.o&&e.push("ytp-videowall-show-text");g.V.call(this,{F:"a",X:e,N:{href:"{{url}}",target:d?b.A:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},L:[{F:"div",I:"ytp-videowall-still-image",N:{style:"{{background}}"}},{F:"span",I:"ytp-videowall-still-info",L:[{F:"span",I:"ytp-videowall-still-info-bg",L:[{F:"span",I:"ytp-videowall-still-info-content",N:c,L:[{F:"span",I:"ytp-videowall-still-info-title",W:"{{title}}"},{F:"span",I:"ytp-videowall-still-info-author",
14W:"{{author_and_views}}"},{F:"span",I:"ytp-videowall-still-info-live",W:"Live"},{F:"span",I:"ytp-videowall-still-info-duration",W:"{{duration}}"}]}]}]},{F:"span",X:["ytp-videowall-still-listlabel-regular","ytp-videowall-still-listlabel"],L:[{F:"span",I:"ytp-videowall-still-listlabel-icon"},"Playlist",{F:"span",I:"ytp-videowall-still-listlabel-length",L:[" (",{F:"span",W:"{{playlist_length}}"},")"]}]},{F:"span",X:["ytp-videowall-still-listlabel-mix","ytp-videowall-still-listlabel"],L:[{F:"span",I:"ytp-videowall-still-listlabel-mix-icon"},
15"Mix",{F:"span",I:"ytp-videowall-still-listlabel-length",W:" (50+)"}]}]});this.C=d;this.w=a;this.A=null;this.B=new g.dt(this);g.H(this,this.B);this.ga("click",this.G);this.ga("keypress",this.H);this.B.M(a,"videodatachange",this.D);g.ZK(a,this.element,this);this.D()},v4=function(a){g.aL(a.w,a.element);
16var b=a.A.va().videoId,c=a.A.getPlaylistId();g.gT(a.w.app,b,a.A.Fb,c,void 0,void 0)},w4=function(a){n4.call(this,a,"videowall-endscreen");
17this.G=a;this.D=0;this.A=[];this.H=this.S=this.C=null;this.J=this.V=!1;this.T=null;this.B=new g.dt(this);g.H(this,this.B);this.K=new g.J(g.Na(g.K,this.element,"ytp-show-tiles"),0);g.H(this,this.K);var b=new g.V({F:"button",X:["ytp-button","ytp-endscreen-previous"],N:{"aria-label":"Previous"},L:[g.PL()]});g.H(this,b);b.o(this.element);b.ga("click",this.aF,this);this.P=new g.Lu({F:"div",I:"ytp-endscreen-content"});g.H(this,this.P);this.P.o(this.element);b=new g.V({F:"button",X:["ytp-button","ytp-endscreen-next"],
18N:{"aria-label":"Next"},L:[g.QL()]});g.H(this,b);b.o(this.element);b.ga("click",this.ZE,this);this.w=new o4(a);g.H(this,this.w);g.WK(this.player,this.w.element,4);this.hide()},x4=function(a){return g.XK(a.player)&&a.Kt()&&!a.H},y4=function(a,b){return(0,g.ee)(b.suggestions,function(c){c=g.sM(a.G.O(),c);
19g.H(a,c);return c})},z4=function(a){var b=a.wq();
20b!=a.V&&(a.V=b,a.player.R("autonavvisibility"))},B4=function(a){g.wP.call(this,a);
21this.o=null;this.u=new g.dt(this);g.H(this,this.u);this.w=a.O();
21A4(a)?this.o=new w4(this.player):this.w.Ga?this.o=new t4(this.player):this.o=new n4(this.player);g.H(this,this.o);g.WK(this.player,this.o.element,4);this.fz();this.u.M(a,"videodatachange",this.fz,this);this.u.M(a,g.OD("endscreen"),this.gE,this);this.u.M(a,"crx_endscreen",this.hE,this)},A4=function(a){a=a.O();
22return a.Ba&&!a.Ga};
23g.r(n4,g.Ru);n4.prototype.create=function(){this.created=!0};
24n4.prototype.destroy=function(){this.created=!1};
25n4.prototype.Kt=function(){return!1};
26n4.prototype.wq=function(){return!1};g.r(o4,g.V);g.h=o4.prototype;g.h.Fl=function(){this.D&&(this.H.stop(),this.Ta(this.G),this.G=null,this.D.close(),this.D=null)};
27g.h.Lx=function(){g.Qu(this,g.zK(this.w))};
28g.h.pJ=function(){window.focus();this.Fl()};
29g.h.hide=function(){g.V.prototype.hide.call(this)};
30g.h.Ao=function(a){a=a||g.R(this.w.O().experiments,"autoplay_time")||1E4;var b=Math.min((0,g.Kq)()-this.J,a);a=Math.min(b/a,1);this.K.setAttribute("stroke-dashoffset",-211*(a+1));1<=a&&3!=this.w.getPresentingPlayerType()?s4(this,!0):this.A&&this.A.start()};
31g.h.yJ=function(a){!g.Wd(this.C.element,g.$q(a))&&g.zM(a,this.w)&&s4(this)};
32g.h.MH=function(){g.BK(this.w,!0)};
33g.h.RI=function(a){this.w.getPresentingPlayerType();this.show();p4(this,a)};
34g.h.Yz=function(a){this.w.getPresentingPlayerType();this.B&&this.B.va().videoId==a.va().videoId||(this.B=a,m4(this,a,"hqdefault.jpg"))};
35g.h.SI=function(){this.w.getPresentingPlayerType();q4(this);this.hide()};
36g.h.Y=function(){q4(this);this.Fl();g.V.prototype.Y.call(this)};g.r(t4,n4);g.r(u4,g.V);u4.prototype.G=function(a){g.zM(a,this.w,this.C,this.A.Fb||void 0)&&v4(this)};
37u4.prototype.H=function(a){switch(a.keyCode){case 13:case 32:g.er(a)||(v4(this),g.dr(a))}};
38u4.prototype.D=function(){var a=this.w.getVideoData(),b=this.w.O();this.C=a.ac?!1:b.u};g.r(w4,n4);g.h=w4.prototype;g.h.create=function(){n4.prototype.create.call(this);var a=this.player.getVideoData();a&&(this.C=y4(this,a),this.S=a);this.If();this.B.M(this.player,"appresize",this.If);this.B.M(this.player,"onVideoAreaChange",this.If);this.B.M(this.player,"videodatachange",this.bF);this.B.M(this.player,"autonavchange",this.xq);this.B.M(this.player,"autonavcancel",this.YE);a=this.S.autonavState;a!=this.T&&this.xq(a);this.B.M(this.element,"transitionend",this.OK)};
39g.h.destroy=function(){g.ft(this.B);g.zi(this.A);this.A=[];this.C=null;n4.prototype.destroy.call(this);g.kn(this.element,"ytp-show-tiles");this.K.stop();this.T=this.S.autonavState};
40g.h.Kt=function(){return 1!=this.S.autonavState};
41g.h.show=function(){n4.prototype.show.call(this);g.kn(this.element,"ytp-show-tiles");this.player.O().o?g.$m(this.K):this.K.start();(this.J||this.H&&this.H!=this.S.clientPlaybackNonce)&&g.BK(this.player,!1);x4(this)?(z4(this),2==this.S.autonavState?g.Q(this.player.O().experiments,"fast_autonav_in_background")&&3==this.player.getVisibilityState()?s4(this.w,!0):p4(this.w):3==this.S.autonavState&&r4(this.w)):(g.BK(this.player,!0),z4(this))};
42g.h.hide=function(){n4.prototype.hide.call(this);r4(this.w);z4(this)};
43g.h.OK=function(a){g.$q(a)==this.element&&this.If()};
44g.h.If=function(){if(this.C&&this.C.length){g.K(this.element,"ytp-endscreen-paginate");var a=g.NK(this.G,!0,this.G.isFullscreen()),b=g.eD(this.G);b&&(b=b.Zb()?48:32,a.width-=2*b);var c=a.width/a.height,d=96/54,e=b=2,f=Math.max(a.width/96,2),k=Math.max(a.height/54,2),l=this.C.length,m=Math.pow(2,2);var n=l*m+(Math.pow(2,2)-m);n+=Math.pow(2,2)-m;for(n-=m;0<n&&(b<f||e<k);){var q=b/2,t=e/2,v=b<=f-2&&n>=t*m,y=e<=k-2&&n>=q*m;if((q+1)/t*d/c>c/(q/(t+1)*d)&&y)n-=q*m,e+=2;else if(v)n-=t*m,b+=2;else if(y)n-=
45q*m,e+=2;else break}d=!1;n>=3*m&&6>=l*m-n&&(4<=e||4<=b)&&(d=!0);m=96*b;n=54*e;c=m/n<c?a.height/n:a.width/m;c=Math.min(c,2);m*=c;n*=c;m*=g.ld(a.width/m||1,1,1.21);n*=g.ld(a.height/n||1,1,1.21);m=Math.floor(Math.min(a.width,m));n=Math.floor(Math.min(a.height,n));a=this.P.element;g.sg(a,m,n);g.ag(a,{marginLeft:m/-2+"px",marginTop:n/-2+"px"});c=this.w;f=this.C[0];c.B=f;m4(c,f,"hqdefault.jpg");g.L(this.element,"ytp-endscreen-takeover",x4(this));z4(this);m+=4;n+=4;for(f=c=0;f<b;f++)for(k=0;k<e;k++)if(q=
46c,t=0,d&&f>=b-2&&k>=e-2?t=1:0==k%2&&0==f%2&&(2>k&&2>f?0==k&&0==f&&(t=2):t=2),q=g.md(q+this.D,l),0!=t){v=this.A[c];v||(v=new u4(this.player),this.A[c]=v,a.appendChild(v.element));y=Math.floor(n*k/e);var B=Math.floor(m*f/b),C=Math.floor(n*(k+t)/e)-y-4,G=Math.floor(m*(f+t)/b)-B-4;g.ig(v.element,B,y);g.sg(v.element,G,C);g.ag(v.element,"transitionDelay",(k+f)/20+"s");g.L(v.element,"ytp-videowall-still-mini",1==t);g.L(v.element,"ytp-videowall-still-large",2<t);t=v;q=this.C[q];t.A!=q&&(t.A=q,m4(t,q,g.hn(t.element,
47"ytp-videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg"),(q=(q=q.Fb)&&q.itct)&&g.$K(t.w,t.element,q));c++}g.L(this.element,"ytp-endscreen-paginate",c<l);for(b=this.A.length-1;b>=c;b--)e=this.A[b],g.Sd(e.element),g.yi(e);this.A.length=c}};
48g.h.bF=function(){var a=this.player.getVideoData();this.S!=a&&(this.D=0,this.C=y4(this,a),this.S=a,this.If())};
49g.h.ZE=function(){this.D+=this.A.length;this.If()};
50g.h.aF=function(){this.D-=this.A.length;this.If()};
51g.h.xD=function(){return!!this.w.A};
52g.h.xq=function(a){1==a?(this.J=!1,this.H=this.S.clientPlaybackNonce,q4(this.w),this.Ha()&&this.If()):(this.J=!0,this.Ha()&&x4(this)&&(2==a?p4(this.w):3==a&&r4(this.w)))};
53g.h.YE=function(a){if(a){for(a=0;a<this.A.length;a++)g.bL(this.G,this.A[a].element,!0);this.xq(1)}else this.H=null,this.J=!1;this.If()};
54g.h.wq=function(){return this.Ha()&&x4(this)};g.r(B4,g.wP);g.h=B4.prototype;g.h.yw=function(){var a=this.player.getVideoData(),b=!!(a&&a.suggestions&&a.suggestions.length);b=!A4(this.player)||b;a=a.Fh||g.fz(a.Oa);var c=g.CS(this.player.app);return b&&!a&&!c};
55g.h.xw=function(){return this.o.wq()};
56g.h.pD=function(){return this.xw()?this.o.xD():!1};
57g.h.Y=function(){g.CQ(this.player.app,"endscreen",void 0);g.wP.prototype.Y.call(this)};
58g.h.load=function(){g.wP.prototype.load.call(this);this.o.show()};
59g.h.unload=function(){g.wP.prototype.unload.call(this);this.o.hide();this.o.destroy()};
60g.h.gE=function(a){this.yw()&&(this.o.created||this.o.create(),"load"==a.getId()&&this.load())};
61g.h.hE=function(a){"load"==a.getId()&&this.loaded&&this.unload()};
62g.h.fz=function(){g.CQ(this.player.app,"endscreen",void 0);var a=this.player.getVideoData();a=new g.LD(Math.max(1E3*(a.lengthSeconds-10),0),0x8000000000000,{id:"preload",namespace:"endscreen"});g.H(this,a);
62var b=new g.LD(0x8000000000000,0x8000000000000,{id:"load",priority:6,namespace:"endscreen"});g.H(this,b);g.SK(this.player,[a,b])};g.LP.endscreen=B4;})(_yt_player);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.