From: Subject: Re:¶
Sent: Friday, August 21, 2015 12:45 PM To: Jeffrey E.¶
Skype ?¶
II venerdi 21 agosto 2015, > ha scritto:¶
100)(c.data("doubletapped",!0),window.clearTimeout(s.tap_timer)war g=osition:(x:s.touch_capable?e.origi nal Eyent.changedibuches[0].screenX:e.screenX,y:s.touch_capable?e.originalEyent.c hangedTouches[01.screenY:e.screenY},offset:(x:s.touch_capable?Math.round(o.changedTouches[01.pageX- (c.offset()?c.offseto.left:0)):Math.round(e.pageX- (c.offset()?c.offset().left:0)),y:s.touch_capable?Math.round(o.changedTouches(01.pageY- (c.offset()?c.offset().top:0)):Math.round(e.pageY- (c.offset()?c.offset().top:0))},time:Date.now(),target:e.target,element:e.originalEyent.srcElement,index:t(e.target).index( )),=irstTap:I,secondTap:gsinteryal:g.time-Ltimebd I I (i(a,"doubletap",e,),I4),th,r=ndow.setTimeout(function(){d=},s.doubletap_intflelse c.data("lastTouch",h),n=ndow.setTimeout(function(){I=II,window.clearTimeout(n)},s.doubletapint,(eThc.data("lastTouc h",h)})},remove:function()(t(this).off(s.starteyent,t(this).data.calleel).off(s.endevent,t(this).data.callee2)}},t.event.specia I.singletap=etup:function(){yar eris,n=e),o=ll,r=ll,a.:0,y:01;n.on(s.starteyent,function c(t)Ireturn(!t.which I I lrt.which)&&(r4ete.now(),artarget,n.data("calleel",c),a.x=originalEyent.targetTouches?t.originalE vent.targetTouches(01.pageX:t.pageX,a.y=originalEvent.targetTouches?t.originalEvent.targetTouches[0].pageY:t.pageY,I 0)}).on(s.endevent,function l(t)(if(n.data("callee2",l),t.target.)(var c=originalEyent.changedTouches?t.originalEyent.changedTouches[0].pageX:t.pageX,d=originalEyent.changedTouches?t. originalEyent.changedTouches[0].pageY:t.pageY;s.tap_timer=ndow.setTimeout(function(){yar o=x-c,I=yd;if(In.data("doubletapped")&&In.data("tapheld")&&(a.x.&&a.y. I I o>..tap_pixel range&&o<=tap_pixel range&&I>=.t ap_pixel_range848tlatap_pixel_range))(var h=originalEyent,u=osition:{x:s.touch_capable?h.changedTouches[0].screenX:t.screenX,y:s.touchcapable?h.changedTou cheslObscreenY:t.screenY},offset:{x:s.touch_capable?Math.round(h.changedTouches[0].pageX- (n.offset()?n.offset().left:0)):Math.round(t.pageX- (n.offset()?n.offset().left:0)),y:s.touch_capable?Math.round(h.changedTouches(0).pageY- (n.offseto?n.offset().top:0)):Math.round(t.pageY-(n.offset()?n.offsetu.top:0))},time:Date.now(),target:t.targethu.timer=.tap_pixel_range&&fatap_pixel_range&&p>=.tap_pixel_range&&patap_pixel_range))(for(var g=originalEvent,=,v=vh.y&&d.y-h.y>p&&(n=wipeup"),d.xf&&(n=wiperight"),d.yp&&(n=wipedown"),d.x>h.x&&d.xh.x>f&&(n=wipeleft"),void Ok&c)(d.x.d.rh.x.h.y.c.;yar g=originalEyent,=osition:{x:s.touchcapable?g.touches[0].screenX:e.screenX,y:s.touchcapable?g.touches[0].screenY:e. screenY},offset:{x:s.touch_capable?Math.round(g.changedTouches(OkpageX- (a.offset()?a.offseto.left:0)):Math.round(e.pageX- (a.offset()?a.offsetftleft:0)),y:s.touch_capable?Math.round(g.changedTouches[0].pageY- (a.offset(Pa.offset().top:0)):Math.round(e.pageY- (a.offsetWa.offset().top:0))},time:Date.now(),target:e.target),y=th.abs(o.position.x-.position.x),m=th.abs(o.position.yposition.y),b=tartEvnt:o,endEvnt:,direction:n.replace("swipe",""),xAmountne,yAmount:m,duration:.timeo.timehl=,a.trigger("swipe",b).trigger(n,b)}}function n(e){a=e.currentTarget);var i=;if(a.data("callee3",n),I)(var r=data("xthreshold"),d=data("ythreshold"),h=ndefined"!=peof r&&r!=1&&parseInt(r)?parselnt(r):s.swipe_h_threshold,u=ndefined"!=peof¶
d&SKJI=1&&parseInt(d)?parseInt(d):s.swipe_v_threshold,f=originalEvent,p=ositionlx:s.toudi_capablef.changedTouche ascreenX:e.screenX,y:s.touth_capableThchangedTouches[0].screenT:e.screennoffset:(x:s.touch_capable?Math.roun d(f.changedTouches[0].pageX-(a.offset()?a.offsetthleft:0)):Math.round(e.pagek¶
(a.offsete?a.offseto.left:0)),y:s.touch_capable?Math.round(f.changedTouches[0].pageY-¶
(a.offset()?a.offset().top:0)):Math.round(e.pageY-¶
(a.offset()?a.offset().top:0))},time:Date.now(),target:e.target}m.position.y>p.position.y&&o.position.y-¶
p.position.y>u&&(i=wipeup"),o.position.xh&&(l=wiperight"),o.position.yu&St(l=wipedown"),o.position.x>p.position.x&& o.position.x-p.position.x>h&&(i=wipeleft");var g=th.abs(o.position.x-p.position.x),_=th.abs(o.position.y-¶
p.position.y),v=tartEvnto,endEvnt:p,direction:i.replace("swipe",""),xAmount:g,yAmount,duration:p.timeo.timeha.trigger("swipeend",v)(c=,livar¶
o,mis,a=r),c=,I=,d=:0,y:0},h=:0,y:0);a.on(s.startevent,e),a.on(s.moveevent,i),a.on(s.endevent,n)bremovedunction()(t(this ).off(s.startevent,t(this).data.calleel).off(s.moveevent,t(this).data.callee2).off(s.endevent,t(this).data.callee3)}},t.event.s pecial.scrollstart=etuplunction(Wunction e(t,e){n=i(r,n?"scrollstart":"scrollend",t)}var¶
n,o,r=is,a=r);a.on(s.scrollevent,function¶
c(t){a.data("callee",c),n I I e(t,I0),dearTimeout(o),cmtlimeoutffunction(lle(t,I1)1,50)})},remove:function()(t(this).off(s.scro Ilevent,t(this).data.callee)thvar o,r,a,c,l,d=window),h=:I0,180:10);iff s.orientation_support)(var¶
u=ndow.innerWidth I I d.width(),f=ndow.innerHeight I I d.height(),pP;c=f&&u-¶
f>p,I=window.orientationi,(c&&I I I Ic&&II)&&(h=-¶
90":I0,90:10)))t.event.specialorientationchange={setup:function()(retumIs.orientation_support&&(a=),d.on("throttledr esize",e),I0)},teardown:function()(return Is.orientation_support&&(d.off("throttledresize",e),I0)},add:function(t)(var e=handleM.handler=nction(t)(return¶
t.orientation=),e.apply(thissarguments)flbt.event.special.orientationchange.orientation=function(){var t=se=cument.documentElementreturn¶
t=orientation_support?h(window.orientation):e&&e.clientWidth/e.dientHeight<1.1,t?"portrait":"Iandscapelt.event.sp edal.throttledresin=etuplunction(flt(this).on("resize",b)},teardowndunction()(t(this).off("resize",b)}1;var¶
g,_,v,m%0,b=nctiono(Ate.now(),v=y,v>=(y=t(this).trigger("throttledresize")):(g&&window.clearTimeout(g),g=ndow.set Timeout(e,m-¶
v))},y=t.eachfiscrollend:"scrollstart",swipeup:"swipe",swiperigheswipe",swipedown:mswipe",swipeleft:"swipe",swipeen d:"swipe",tap2:"tar),function(e,i){t.event.specialiel=etuplunction()(t(this).on(i,t.noop)}}}))0Query),deflnerjquerymobile-events",function()6),definerlib/helpers/thumbs/mozaiquerib/tooletfunction(t)(var e,i=nction(t){return t++,t>9?0:t},n=nction(t,e,i){return t++,t>=i?-1:04,s=nction(t,i)(var n=th.floor((t-1)/3);retum 0=n?"fY35":n*¶
1.(e?100:i?56.23:75)+"961,o=nction(t){this.rotator=this.name=ENGINE_MOZAIQUE,this.is_video_engine=,this.thumb,thi s.ori_src,this.is_profile_pic,thisis_video_pic,this.is_16_9,thisidx,this.mozaique,this.videos,this.timer};return o.prototypeztartVideoPiclunction(t){var e=is;this.thumb=var¶
i=is.thumb.attr("src");this.is_16_9=indexOf("/thumbs169")1=1,this.idx=this.mozaique=is.thumb.next(".hovered"),0=this. mozaique.length&&(i=substring(0,i.lastindexOf("/")),this.mozaique=").hide().insertAfter(this.thumb).on("mouseout",fun ction(t)(e.rotator.stop(t)))),this.timer=ndow.setTimeout(function({e.nextVideo()),30)},startProfflePic:function(e,i)(this.t humb=this.ori_src=is.thumb.attr("src"),this.is_proflle_pic=is.thumb.hasClass("proffle-¶
pic"),thisis_video_pic=is.thumb.hasClass("video-pic"),this.idx.,this.videos=tpreloadPicture(i[0].img);var¶
n=is;this.timer=ndow.setTimeoutffunction()(n.nextProfPic()),30)},nextVideolunction()(if(this.thumb)(var¶
t=is;this.idx=thisidx),0=this.idx7this.mozaique.hide():1=this.idx?this.mozaique.show().css((marginTop:"056",marginLeft:" 0%"}):(this.mozaique.css((marginTop:s(this.idx,this.is_16_9),marginLeft:Math.floor((this.idx-1)963)*-¶
100+"161),"undefinecrtypeof e844=this.idx&Ce=th.abs(this.thumb.height()-¶
Math.abs(parselnt(this.mozaique.css("marginTop").replace("px",""))))>5,e&&this.mozaique.css((marginTop:s(thisidx,thi s.is_16_9))))),this.timemndow.setTimeoutffunction(){t.nextVideo()},le3)}},nextProfPiclunction()(if(this.thumblivar e=is;this.idx=this.idx,this.videos.length,this.is_video_pichthis.is_video_pic&&(this.idx=-32this.thumb.addaass("videopic"):this.thumb.removeClass("video-pic")),this.thumb.attr("sre,thisidx.-¶
1?this.ori_src:this.videos[this.idx].img),thisis_profile_pic&&(thisidx=-1?this.thumb.addClass("profilepic"):this.thumb.removeClass("proffle-pic"));var¶
i=this.idx,this.videosiength,thisis_video_pic);fl=1&&t.preloadPicture(this.videos[i].img),this.timemndow.setTimeoutffu nction()(e.nextProfPicO},le3)}},stoplunction()(this.timer&&(window.clearTimeout(this.timer),this.timemll),this.thumb& &(this.mozaique&&this.mozaique.hide(),this.thumb=lithis.ori src=,this.mozaique=ll,this.videosAbisStillOnThumblunc¶
tion(t){return¶
this.thumb&&this.thumb.is(t)&&1=this.idx||this.mozaique.is(t)&&0=this.idx}},o}),define("lib/helpers/t humbs/mp4vp",["static/utils"],function(t){var e=nction(t){return¶
t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("."))},i=nction(t,e){return¶
t.substring(0,t.lastIndexOf("/").replace(//thumbs(169)?(xnxx)?!*//,"/videopreview/")+(e?"_169.mp4":"_43.mp4")},n= nction(t){var e=for(var i in t)e+=i];return e/t.length},s=nction(t,e){return¶
t++, >= 0;t},o=nction(t){this.rotator=this.name=ENGINE_MP4,this.is_video_engine=this.thumb.this.is_16_9,this.idx,this.i s_looping,this.node,this.pgsnode,this.nbplay=this.pgs_req,this.req_loaded=,this.req_start=this.req_total=thi s.req dur=,this.req duration=};return¶
o.prototype=tartVideoPic:function(t){this.is_looing=,this.startPreview(t)},startProfilePic.function(t,e){this.is_looping=le ngth+(t.hasClass("video-¶
pic")?1:0)<2,this.videos=this.thumb=this.startPreview(t)},startPreview:function(t){this.nbplay=var¶
e,n=is;if(this.thumb=t.hasClass("profile-pic")?(e=is.videos(0).img,this.thumb.prop("src",e).removeClass("profilepic")):e=is.thumb.attr("src"),this.is_16_9=indexOf("/thumbs169")!=1,this.node=is.thumb.next(".videopv"),0=thi s.node.length){var s=is.thumb.parent().prop("href");this.node='¶
').insertAfter(this.thumb).on("mouseout",function(t){n.rotator.stop(t)}}else this.node.show();this.pgsnode=is.node.children(".progress").show(),this.pgshode.children(".bar"),e=e,this.is_1 6 9),this.startPgsCheck(e);var¶
o=is.createVideo(e);this.node.prepend(o)},nextPreview:function(){if(this.nbplay=this.rotator.max nb_play)return void this.rotator.stop(!0,!0);this.nbplay++,this.idx=this.idx,this.videos.length);var¶
t=this.videos[this.idx].img,this.is_16_9);this.pgsnode.show(),this.startPgsCheck(t);var¶
e=is.node.css("backgroundColor","").children("video"),n=is.createVideo(t,function(){e.remove(),e[0].src=,e[0].load()});e. after(n)},stop:function(){if(this.thumb){this.nbplay=this.stopPgsCheck(),this.node.css("backgroundColor","").hide();var t=is.node.children("video");t.remove();t(0).src=.t(0).load(),this.thumb=ll,this.pgsnode=ll,this.pgsbar=ll,this.vi deos=ll}},isStillOnThumb:function(t){return¶
this.thumb&&this.thumb.is(t)&&1=this.idx),stopPgsCheck:function(){this.pgs_req.abort(),this.pgs_req=ll ,this.req_start=this.req_total=},startPgsCheck:function(i){var s=i};if("object"!=peof¶
this.req_loaded[s]&&(this.stopPgsCheck(),this.pgsbar.stop(!0).css("width","0%"),"boolean"!=peof¶
this.req_loaded[s])}(var o=is;this.pgsbar.animate({width:"100%"},1e4,"linear"),this.reg_start=ew¶
Date),getTime(),this.req_total=this.pgs_req=createRequestObject(),this.pgs_req.open("GET",i),this.pgs_req.addEventLis tener("loadstart",function(t){o.req_start=ew Date).getTime();¶
}},this.pgs_req.addEventListener("progress",function(t){if(t.lengthComputable&&(0=o.reg_total&&o.req_dur.length>2& &o.pgsbar.stop(!0).animate({width:"100%"},Math.round(n(o.req_dur)"t.total),"linear"),o.req_total=total),!(o.req_dur.le ngth>2)}(if(t.lengthComputable){var e=th.min(1,t.loaded/t.total"5/1),i=ew Date).getTime(}-o.req_start;return e<1?void o.pgsbar.stop(!0).animate({width:"100%"},Math.round(i/e-i),"linear"):void¶
o.pgsbar.stop(!0).animate({width:"100%"},1e3,"linear")}o.pgsbar.stop(!0).animate({width:"100%"},this.p gs_req.addEventListener("load",function(){o.req_loaded(s)=}),this.pgs_req.addEventListener("abort",function(){0.req_lo aded(s)!=0&&delete o.req_loaded(s)}),this.pgs_req.send(),this.req_loaded(s)=is.pgs_req},createVideo:function(t,o){var r=is,a=t),c=,l=cument.createElement("video");l.src=l.muted=,l.autoplay=utoplay",l.addEventListener("progress",function (){4=l.readyState&&l.seekable.end(0)&&(r.req_loaded[a]=)}).l.addEventListener("timeupdate",function (){f(!c){var t=if(r.reg_duration.length>1&&(t=r.reg_duration)/1e3-.5},lr.is_looping&&l.duration-l.currentTime<=(c=yar o=r.idx,r.videos.length),a=videos[o].img,d=a);"undefined"=ypeof¶
r.req_loaded[d]&&r.startPgsCheck(i(a,r.is_16_9)}}}},this.is_looping?l.addEventListener("ended",function(){return r.nbplay=r.rotator.max nb play?void r.rotator.stop(!0,!0):(r.nbplay++,void¶
this.play())}):l.addEventListener("ended",function(){r.req_loaded[a]=,r.nextPreview(})};var¶
d=,h=nction(){if(!d){if(d=,l.removeEventListener("playing",h),r.req_total>0){var t=ew Date),getTime(]-¶
r.req_start;r.reg_dur.push(t/r.reg_total),r.req_dur.length>4&&(r.req_dur.shift(),r.req_dur.shift(),r.req_duration.s hift())}r.stopPgsCheck(),r.node.css("backgroundColor","#000"),r.pgsnode.hide(),"function"=ypeof o&&o()});return l.addEventListener("playing",h),l}},o}),define("lib/helpers/thumbs/tsvp",[],function(t){var e=for(var i in t)e+=i];return e/t.length},e=nction(t,e){return¶
t.substring(0,t.lastIndexOf("/")).replace(//thumbs(169)?(xnxx)?!+//,"/videopreview/")+(e?"_169.ts"]},i=nction (t,e){return¶
t++,t>=0:tbn=nction(t,e,i)(i.stop(!0).css("width","0%").animate((width:"100%"),1e4,"linear"),EMpeg.Player.call(this,t,e); var n=ew¶
Date).getTime(),s=toris,r=;this.renderer.canvas.style.visibilityridden",this.renderer.renderProgress=nction(t)(if(0!=)(o.is _cached.,i.stop(!0),s&&(s.,i.css("width",(100*t).toFixed(2)+"%"));var e=ew Date).getTime()-¶
O.animate((width:"100%"),Math.max(200,Math.round(e/t-¶
e)),"linear"))),this.renderer.render=nction(t,e,n)(this.enabled&&(r?"function"=ypeof¶
o.nextframe&&o.nextframe(o.video.getCurrentTime(),o.video.timestampsio.video.timestamps.length-¶
11.time):(r=,this.canvas.style.visibility=,i.stop(10),"function"=ypeof¶
o.started&&o.started()),Object.getPrototypeOf(this).render.call(this,t,e,n),o.video.timestampindex>0&&o.video.timesta mpindex=o.video.timestamps.length-1&&"function"=ypeof¶
o.ended&&o.ended())),this.resetProgress=nction(){s=thn.prototyperject.create(JSMpeg.Player.prototype,{}),n.prototyp e.is_cached=,n.prototype.started=ll,n.prototype.nextframe=ll,n.prototype.ended=ll,n.prototype.constructor=var¶
s=nction(t){this.rotator=this.name=ENGINE_TS,this.is_video_engine=,this.thumb,this.is_16_9,this.idx,this.is_looping,this .node,this.pgsnode,this.pgsbar,this.player,this.nextplayer,this.nbplay=this.req_duration=};return¶
s.prototype=tartVideoPic:function(t)(this.is_looping=,this.startPreview(t)},startProfilePic:function(t,e)(this.is_looping=le ngth+(t.hasClass("video-¶
pic")?1:0)<2,this.videos=this.thum b=this.startPreview(t)},startPreview:f unction(t)(this. nbplay=var¶
e,i=is;if(this.thumb=t.hasClass("profile-pic")?(e=is.videos[0].img,this.thumb.removeClass("profile-¶
pic")):e=is.thumb.attr("src"),this.is16_9=indexOf("ithumbs169")I=1,this.idx=this.node=is.thumb.next(".videopv"),0=thi s.node.length)(var n=is.thumb.parent().prop("hrer);this.node=1¶
1). insertAfter(this.thumb).on("mouseout",f unction(t){i. rotator.stop(t)})}else¶
this.node.show();this.pgsnode=is.node.children(".progress").show(),this.pgsbar=is.pgsnode.children(".bar"),this.player=i s.createPlayer(e),this.node.prepend(this.player.options.canvas)LnextPreview:function()(if(this.nbplay=this.rotator.max_ nb_play)return void this.rotator.stop(10,!0);this.nbplay++,this.idx=this.idx,this.videos.length);var t=is.videos[this.idxj.img;this.pgsnode.show();var¶
eris.player;this.player=is.createPlayer(t),$(e.options.canvas).after(this.player.options.canvas)},stop:function()(this.thum b&&(this.node.css("backgroundColor",").hide(),this.player&&(this.player.destroy(),this.player.options.canvas.parentNo de&&this.player.options.canvas.parentNode.removeChild(this.player.options.canvas),this.player=ll),this.nextplayer&&(t his.nextplayer.destroy(),this.nextplayer.options.canvas.parentNode&&this.nextplayer.options.canvas.parentNode.remo veChild(this. nextplayer.options.canvas),this.nextplayer=ll),this.thumb=ll,this. node=l ',this. pgsnode=ll,this. pgsbar=l l,this.vi deos=ll,this.nbplay=hisStillOnThumb:function(t)(return¶
this.thumb&&this.thumb.is(t)&&1=this.idx},createPlayerfunction(s,o)fif(s=s,this.is_16_9),Io&&this.nextplayer)(if(this.ne xtplayer.source.url=s)(this.nextplayer.resetProgress(),this.nextplayer.play();var r=is.nextplayer;return¶
this.nextplayer=ll,r)this.nextplayer.destroy(),this.nextplayer.options.canvas.parentNode&&this.nextplayer.options.canva s.parentNode.removeChild(this.nextplayer.options.canvas),this.nextpIayer=ll}var a=is,r=w¶
n(s,{canvas:clocument.createElement("canvas"),progressive:Il,loop:this.is_looping,autoplay:"undefined"=ypeof o I I Io,decodeFirstFrame:!1},this.pgsbar);if(this.is_looping)r.started=nction()fa.node.css("backgroundColor","#000"),a.pg snode.hide()),r.ended=nction()(return a.nbplay=a.rotator.max_nb_play?void a.rotator.stop(!0,!0):void a.nbplay++};else{var c=is.player,l=ew¶
Date).getTime();r.started=nction()(if(a.node.css("backgroundColor","1$000"),a.pgsnode.hide(),c&&(c.destroy(),c.options. canvas.parentNode.removeChild(c.options.canvas)),Ir.is_cachedKvar t=ew Date).getTime()-¶
I;a.req_duration.push(t),a.req_duration.Iength>4&&a.req_duration.shift())),r.nextframe=nction(e,n)fif(Ia.nextpIayer)(va r s=if(a.req_duration.length>1&&(s=a.req_duration)/1e3-.5),n-e<={var¶
o=a.idx,a.videos.length),r=videos[o].img;a.nextplayer=createPlayer(r,!0)}}},r.ended=nction(){a.nextPreview()))return r}},sadefine("lib/helpers/thumbstrotator",["config/main","staticiutils","lib/helperstevents","jquery-mobileevents"],function(t,e,i)(var¶
n=nction()(if(this.videopv_allowed=,this.videopv_enabled=,this.videopv_codec,"object"=ypeof t.dyn&&"object"=ypeof t.dyn.vp&&t.dyn.vp.allowed&&"strine=ypeof¶
t.dyn.vp.codec&&("mp4"=t.dyn.vp.codec I I "ts"=t.dyn.vp.codec)&&(this.videopv_allowed=,this.videopv_codec=dyn.vp.c odec,this.videopv_enabled=.dyn.vp.disabled,"mp4"=this.videopv_codec))(var¶
e=cument.createElement("video"),i=ndefined"!=peof e.canPlayType&&e.canPlayTypervideo/mp4; codecs=vc1.4D401E, mp4a.40.21.length>0;i I (this.videopv_codec=s")}this.thumbs=),this.thumb,this.ori_src,this.is_video_thumb,this.is_prof ile_pic,this.isvideo_pic,this.triggerevent,this.starttimer,this.laststart,this.touchtimer,this.maxnb_play=this.tmpl ocketh,this.libtimer,this.initEngine());return¶
n.prototype=NGINE_MOZAIQUE:"mozaique",ENGINE_MP4:"mp4vp",ENGINE_TS:"tsvp",addThumb:function(t)(if(this.thu mbs.index(t)=•1){var e=is;this.thumbs=is.thumbs.add($(t).on("swipe touchstart¶
mouseenter",function(t)(if("touchstart"!=type)e.start(this,t.type);else if(!e.touch_timer)(var¶
i=is;e.touch_timer=tTimeout(function(){e.touch_timer=ll,e.start(i,"touchstart")},200)))).on("mouseleave",function(t)(e.st op(t))).on("mousedown",function(t)(elock(t)))))),initEngine:functionifivar¶
i=is.ENGINE_MOZAIQUE;if(this.videopv_enabled)if("mp4"=this.videopv_codec)i=is.ENGINE_MP4;else if("ts"=this.videopv_codec)if("object"=ypeof¶
EMpeg)i=is.ENGINE_TS,this.libtimer&&(window.clearInterval(this.libtimer),this.libtimer=l0;else¶
if(!this.libtimer)(e.loadScript(t.domains("staticl+Vv3/js/libs/jsmpeg.min.js");var¶
n=is;this.libtimer=ndow.setInterval(functiono(n.initEngine()),500)}ifOthis.engine I(this.engine.name!=){var n=is,s=nction(t){var e=,i=thumb;rtengine&&n.thumb&8(n.stop(!0),e=),n.engine=w¶
t(n),e8An.start(i,n.trigger_event));i=this.ENGINE_MOZAIQUE?require(("libThelpers/thumbs/mozaique"),$):i=this.ENGIN E_MP4?requireWlib/helpers/thumbsimp4vp"),$):i=this.ENGINE_TS84require(["lib/helpers/thumbsitsvp"),$)}},toggleVP: functionifithis.videopv_allowed&&(this.videopv_enabled=his.videopv_enabled,this.initEngine())),start:function(t,e)(if(i.i sScrolling())return!1;if("mouseenter=e&&this.tmp_locked)(if(!((new Date).getTime()-¶
this.tmp_locked>200))return;this.tmp_locked=Pf(this.start_timer&&(window.clearTimeout(this.start_timer),this.start_ti mer=ll),Ithis.thumb( I !this.thumb.is(t)){var n=ew Date).getTime();if(this.last_start>0&&n-¶
this.last_start<300I Ithis.engine)(this.last_start=var s=is;return¶
void(this.start_timer=ndow.setTimeout(function()(s.start(t,e)),300))1this.last_start=this.trigger_event=this.stop(I0),this.t humb=t);var o=is.thumb.data("videos");if(this.is_video_thumb=bject"!=peof¶
o,this.is_profile_pic.,this.isvideo_pic.,this.is_videothumb)this.engine.startVideoPic(this.thumbLelse(if(this.ori_src=is. thumb.attr("src"),thi s.ori_src.indexOfr/profthumbh>0&&(!o I I 0=o.length))return this.thumb.off("swipe touchstart mouseenter mouseleave mousedown"),void(this.thumb=Il);if(this.is_profile_pic=is.thumb.hasClass("profilepic"),this.is_video_pic=is.thumb.hasClass("video-¶
pic"),(!o I ( 0=o.length)&&(!this.engine.is_video_engine I this.is_profile_picpreturmthis.engine.startProfilePic(this.thumb ,o)}}},stop:function(t,e)(if(this.engine){if(t1=0)(if("swipe"=this.trigger_event)return;if(this.engine.isStillOnThumb(t.target) )returnle&&(this.tmp_locked=ew¶
Date).getTime()),this.engine.stop(),this.thumb&&(this.is_video_pic&&this.thumb.addClass("video-¶
pic"),this.is_video_thumb I I this.thumb.attr("src",this.ori_src),this.is_profile_pic&&this.thumb.addClass("profilepic"),this.thumb=ll)}},lock:function(t)(1!=.which I I t.metaKey I t.ctrIKey I t.altKey I I t.shiftKey I (this.thumbs.off("swipe touchstart mouseenter¶
mouseleave"),this.stop(!0))}},n)),define("lib/helpers/thumbs_rotator",1"./thumbs/rotator","./events"),function(t,e)(var i,n,s,o=w t,r=a-3,c=nction(){o.addThumb(this)},I=nc-tion(t,e)(e?$(".thumb img",t).not(".no-rotate").each(c):$(".thumbblock",t).not(".no-rotate").find(".thumb¶
imgTheach(c));I.video_preview=videopv_enabled,l.toggle_vp=nction(){o.toggleVP(),I.video_preview=videopv_enabled),1( ),e.addlistener(e.TAB_HIDDEN,function()(o.stop(!0)));var d=nction()(if(i=ll,r=ew Date).getTime(),o.thumb)(var t=thumb.offset();if(nt.left+e I I s>t.top+a?void o.stop(I0):void 0));return¶
$(window).on("mousemove",function(t)(if(n=pageX,s=pageYM(var e=ew Date).getTime()-r;return e¶
- \n\t\t \n\t\t x \n\t \n 1}),define("lib/helpers/overlay",["mustache","textIloverlay/tempIate.htmll,function(t,e){var i=nction(i,n,$)(this.open.,this.closable=n,this.escclose.,this.escclosehandler=ll,this.clickclosehandler=ll,this.setClos eAction(s),this.parent=i).css("position","relative"),this.node=t.render(e,(closable:n})),this.body=is.node.children(".xbody");var o=is;this.close_node=is.body.children(".x-
close").on("click",function(){"close"=o.close_action?o.close():o.hide())),this.container=is.body.children(".xcontent"));return i.get=nction(t,e,n)(return new¶
i(t,e,n)),i.prototype=nShow:null,onHide:null,onClose:null,getNode:function()(return¶
this.nodebaddClass:function(t){return¶
this.node.addClass(t),thisbsetaosable:function(t,e)(if(this.closable=t,this.esccIose=&e,this.closable?this.close_node.re moveClass("hidden"):this.close_node.addClass("hidden"),this.esc_closeflif(!this.esc_close_handler){var¶
Hs;this.esc_close_handler="body").on("keyup",function(t){i.open&&27=t.which&&("close".i.close_action?i.closefti.hid e()))),this.click_close_handler="body").on("click",function(t){i.open&&0=$(t.target).closest(i.container).length&&("close ".i.close_action?i.close():i.hide())))}}else¶
this.esc_close_handler&84$("body").off("keyup",this.esc_close_handler),this.esc_close_handler=ll,$("body").off("click",t his.click_close_handler),this.cl ick_close_handler=ll );return¶
thisbsetCloseAction:function(t){this.close_action=ide".t?"hide":"close"},setText:function(t){return this.container.text(t),this},setaintent:function(t){return this.container.html(t),this},empty:functionifireturn this.container.empty(),thishappend:function(t)(return this.container.append(t),this},prepend:function(t){return this.container.prepend(t),this},show:functiono(if(!this.open)return¶
this.node.appendTo(this.parent),this.open="this.onShow&&this.onShow(),this),hide:functionfflif(this.open)return this.node.detacho,this.open=,this.onHide&&this.onHideathis},close:functionifithis.open&&(this.node.remove(),this.op en.,this.onClose&&this.onClose())},autoclose:function(t)fif(this.open)(var¶
e=is;window.setTimeout(function()(e.closeubt)}}},i)),define("lib/helpers/overlay/box"flibitools","../overlay"],function( t,e){var i=nction(t,i,n)(e.apply(this,arguments),this.ori_padding.,this.node.addClass("x-overlay-box"));return i.prototype=w e,i.get=nction(t,e,n)(return new¶
i(t,e,n)},i.prototype.show=nction(e)(if(!this.open){if(this.node.appendTo(this.parent),e=11)return this.body.css("margintop","3.0px"),this.open.,this;e=ndefined"l=peof e&&$(e);var i=is.node.heightan=is.body.outerReight();if(i0)(var s=positiono.top,o=th.max(3.0,Math.min(s,i-n-3.0));this.body.css("margin-top",o+"px"Delse this.body.css("margintop",Math.max(10,Math.round(Math.min(Math.min(.1*$(window).height(),150),(i-¶
n)/2)))+"px"),this.closable&&t.scrollTo(this.node,10);return this.open.,thisthi.prototype.hide=nctionifireturn this.ori_padding!=184this.parent.css("padding-¶
bottorn",this.ori_padding),e.prototype.hide.apply(this)},i.prototype.close=nctionifireturn¶
this.ori_padding!=1&&this.parent.css("padding-¶
bottom",this.ori_padding),e.prototype.close.apply(this)},i)),define("lib/i18n",[hfunction(){return{version:"1.0.0",load:fun ction(t,e,i,n){n.isBuild?i():xv.il8n.getCatalog(t,function(t){i(t)}))))),define("skins/common/listing/settings",["config/main" ,"static/cookies","lib/helpers/popup","lib/helpers/thumbs_rotator","lib/helpers/overlay/box","lib/i18n!frontlfunction( t,e,i,n,s,o){var r="glisting-settings");i1(0!=.length){var a,c=;for(var I in t.dyn.ls.buttons){var d=dyn.ls.buttons[l];c.push(d))var h=nction(){var t="¶
");for(var e in c)switch(c(el.name)(case"nb_vids_per_row":t.append(u("xs","mobile","mobile-only-showlist-item")),t.append(u("sm","tablet","mobile-show-list-item mobile-only-hide")),t.append(u("Ig","desktop","mobilehide"));break;case"video_preview":t.append(f()))return t},u=nction(t,i,n){var s=nction(t,e){return'¶
1+(e?o.("listing.disp_less_thumbs"):o.("listing.disp_more_thumbs")).replace("%strong%","").replace("%end_strong %","")},r="html").hasClass("more-thumbs-"+t),c.'");return¶
c.on("click",function(n){n.preventDefault(),r=,$("html").toggleClass("more-thumbs-¶
"+t,r),c.html(s(i,r)),e.settocal("hexavid_more_thumbs_"+t,r?"1":"0",7776e7,"/"),a.position())),$(1¶
Tappend(c)},f=nction(){var t=nction(t){return'¶
1+(t?o.("listing.disable_pv"):o.("listing.enable_pv")).replace("%strong%","").replace("%end_strong%","")},i="¶
"),s=1").appendTo(i);return¶
s.on("click",function(i)(i.prevent0efault(),n.toggle_vp(),s.html(t(n.video_preview)),e.settocal("hexavid_no_videopv",n.vi deo_preview?"0":"1",7776e7,"/"),a.position())),i);a=w i(r.children("button,a,.btn"),h,{trigger:"click mouseclick",popup_class:"Iisting-settings-¶
popup"})))),define("text!lib/heIpers/popup/language_switcher.html",[],function()(returni¶
\n\t{{glanguages)}\n\t {{ name }} \n\t{{/languages}An¶
1}),define("lib/helpers/popup/language_switcher"rmustache","../popup","text!llanguage_switcher.html"Ifun ction(t,e,i)(var n=nction(n,s,o){var r=nction()(var e=;for(var n in¶
o)e.push((url:s+n,country:oird.country.toLowerCase(),name:o[n].translatedThreturn t.render(i,{languages:01;new e(n,r,{trigger:"click mouseclick",popup_class:"Ianguage-switcher-popup",offset:{below:-¶
7,above:0,left:0,right:0})));return nfl,define("lib/helpers/storage/cookie",["static/cookiesl,function(t){var e=global ns_",i =nction(){this.data4return i.prototype=loadNs:function(i)fif("string"=ypeof¶
i84840!=.length I I (i=,"object"!=peof this.data[ij)(this.data[ij=;var n=get("hexavid_storage_"+i);if("string"=ypeof n&&n.length>0)try(n=0N.parse(n),"object"=ypeof¶
n&&(this.data[iNcatch(s)(console.error(s)))),write:function(i)("string"=ypeof 1840!=.length I I (i=;try{var n=0N.stringify(this.data[i])3.setiocal("hexavid_storage"+i,n,31536e6,"/")}catch(s)(console.error(s))),get:function(t,i)(re turn this._loadNs(i),"undefined"=ypeof¶
this.dataii I I ejltjThull:this.data(i I I elltj},set:function(t,i,n)(this.JoadNs(n),this.dataIn I I elltj=this._write(n)},remove:func tion(t,i)(this._loadNs(i),"undefined"!=peof this.datafi I I el itj&&(delete¶
this.datali I I ellt],this._write(i))),clear:function()(this. JoadNs(ns),this.data[ns I I el=,this._write(ns))),new i)),define("lib/helpers/storage/local",[I,function()(var t=nction(){this.s=ndow.localStorage};return t.prototype=et:function(t,e)(return"string"=ypeof¶
e&&e.length>0&&(t="."+t),JSON.parse(this.s.getItem(t))),set:function(t,e,i){"string"=ypeof¶
i&&i.length>0&&(t="."+t),this.s.setItem(trISON.stringify(e))),remove:function(t,e)("string"=ypeof¶
e&&e.length>0&&(t="."+t),this.s.removeltem(t)},clear:function()(this.s.clear())),new¶
th,define("lib/helpers/storage",["./storage/cookie","Istorage/locanfunction(t,e)(var i=ookie";if("object"=ypeof window.localStorage)try{var¶
n=ndow.localStorage,s=storagetest_";n.setitem(s,$),n.removeltem(s),irocal")catch(o){}return"cookie"=i?t:ep,define( "text!skins/common/debug/console.html",[],function()(returre¶
\n\t¶
\n\t {({ labels.close_console }}} \n¶
11),define("skins/common/debug/console",["mustache","lib/helpers/storage","lib/i18n!front","text!lconsole.ht millfunction(t,e,i,n)(var¶
s=nction()(if(window.location.href.index0f("debugjs=)!=1?(this.is_debug=,e.set("enabled",!0,"debugconsole")):e.get("en abled","debugconsole")&&(this.is_debug=),this.node,this.logs,this.is_debug&&"object"=ypeof window.onerror){var t=is;window.onerror=nction(e,i,n,s,o)(return t.print(e+" / "+i+" / "+n,globalerr"),o?(console.error(o),"string"=ypeof o.stack&&t.print(o.stack,"stack")):console.error("ERROR: "+e+" / "+i+" /"+n),!0)));return s.prototype=read:function(){if("object"!=peof¶
this.logs)(this.logsize=this.logs=get("logs","debugconsole"),this.logs&&"object".ypeof this.logs I I (this.logs=);for(var tin this.logs)this.logsize+=is.logs[tbs)),_cleanLogs:function()(for(;this.logsize>1e5;)(var t=is.logs.pop();this.logsize- =s1),log:function(t,i,n)(this._read();var s=;s.t=ew¶
Date).getTime(),s.x=s.a=n&&(s.js=status,s.jr=readyState,s.jh=getAllResponseHeaders(),s.jt=responseText.substr(0,1e3)),s
.s-4;try{s.s=0N.stringify(s).length}catch(o)(1this.logs.unshift(s),this._cleantogs(),e.set("logs",this.logs,"debugconsoIe")),p
rint:function(t,e,i){if(this.is_debug)(this.log(t,e,i),this.getNode();var n=i>"+(new Date).toUTCString()+": "+e+" -
"+treplace(Aggi,"
");this.node.append($('¶
")),i&&(this.node.append($('¶
/ State: "+i.readyState+"¶
")),this.node.append($("¶
'+i.getAllResponseHeaders().replace("\n","
")+"
")),this.node.append($("¶
').text(i.responseText))}}},_getNode:function(){if(this.node)return this.node;var¶
s,o=#main","#content","#page","body"],r=do¶
s=o[r]),r+;while(0=s.length&&(r="#"+),r.length>0&&(this.target=);this.is_valid=,this.submitted=,this.captcha_sub mitted=;var¶
a=is;this.submit.length>0&&this.form.on("submit",function(t){if(!a.captcha_submitted&&a.submit.hasClass("g-¶
recaptcha")&&(a.captcha_submit.on("click",function(){a.form.submit(}}),la.is_valid}{var¶
i=getFirstError();return i&&i.focus&&i.focus(),t.preventDefault(),!1}return¶
a.submitted?(t.preventDefault(),11):(a.submitted=,void¶
a.submit.prop("disabled",!0).addClass("disabled").append($(""))});var c=s),!=;for(var d in¶
c)l.push("skins/form/validator/"+c[d]);require(l,function(){var t=;for(var e in¶
arguments)t[c[e]]=guments[e];a.init(s,t)})};return n.prototype=w¶
t,n.prototype.init=nction(e.i){if(t.prototype.init.apply(this.[e.i]);this.errorChanged(!1,this.is_valid](var n=is.getFirstError();n&&n.focus&&"undefined"=ypeof¶
this.options.no_init_focus&&n.focus()}},n.protype.errorChanged=nction(t,e){this.is_valid=&&this.isValid(),this.submit. toggleClass("has-¶
verror",!this.is_valid}},n.prototype.resetSubmitted&&(this.submitted=this.submit.prop("disabled", !1).removeClass("disabled").find(".vloader").remove())},n}),define("skins/default/form/login_create","ski ns/common/debug/console","lib/converter","lib/helpers/inline_loader","lib/helpers/overlay/box","skins/for m/validator","lib/i18n!front"],function(t,e,i,n,s,o,r,a){var¶
c,l,d,h,u,f,p,g,_v,m,b,y,w,k,x,C,T,E,S,A=,N=,O=,P=signin","signup"],R=nction(t){if(!N){var¶
e=parent().css("position","relative"),n=s=if(g.is(":visible")&&(n="signup"=t.form_disp?s="lostpasswor d"=t.form_disp&&&(s=,!n.is(s)){N=;var¶
o=th.floor(n.innerWidth()/e.width()*100),a=height();o=�?"100%":0>X?"58.333333%":0>P?"50%":"41.6666667%",s. css({overflow:"hidden",display:"block",opacity:.01}).removeClass("hidden");var¶
c=height();s.css("width",o).height(a).animate({opacity:1,height:c+"px"},"slow",function(){s.width("")},n.height (a).css({position:"absolute",top:0,left:0}).animate({opacity:0,height:c+"px"),"slow",function(){n.css({position:"static",top: "auto",left:"auto",height:"",display:"none"}),x.css("float","left"),N=}}){f(b.toggleClass("hidden","signup"=t.form_disp),y.t oggleClass("hidden","signup" !=. form_disp),C.toggleClass("hidden","signup"=t.form_disp), !N){var¶
=T=v.is(":visible")&&(l=,"step2"=f&&(T=,l.is(T) | {{.toggleClass("hidden"),t.toggleClass("col-xs-12 col-xs-7 col-md-6"),x.toggleClass("hidden","step2"=f),i.scrollTo(T))}var¶
E=;if(A&&(A=,E.no init focus=),"signin"=t.form_disp)return d?d.refresh():d=w r($("#signin-¶
form"),t.signin_validation_rules,E),!0;if("lostpassword"=t.form_disp){if(u)u.refresh();else{var S="#lost-passwordform");S.length>0&&(u=w¶
r(S,t.lostpwd_validation_rules,E))}return!0}return"signup"!=.form_disp||(h?h.refresh();(k=.h=wr(S("#signupform"),t.signup_validation_rules,E),h.errorChanged=nction(t,e){r.prototype.errorChanged.apply(this,[t,e]),k=;for(var i in¶
this.validators){var n=is.validators[i];if(!n.isValid()&&n.id&&"signup-¶
form_details_"=n.id.substr(0,20)){k=break}}w.toggleClass("has-¶
verror",k!=1}},h.errorChanged(!1,null)),k=!1}},j=nction(){},!=nction(e,n){T=d&&(delete h,h=ll),u&&(delete u,u=l),null!=&&c.setContent(e),p="#signin-form-block"),b="#btn-login2signup-formblock"),y="#btn-signup2login"),_="#signup-form_details"),v="#signup-form_step2"),m="#lostpassword-formblock"),x="#create-account-frame"),C=find(".no-create-account"),$("#signup-form_step2_profile-pic img").on("click",function(){$("#signup-form_step2_profilepic_file").click()}),f=etails";var o=find(".haserror");o.length>0&&(f=first().parents("fieldset").last().prop("id").substr(12)),$("#btn-login2create,tititnlogin2signup,ifbtn-¶
signup2login").one'click",function(t)(t.preventDefaulto,n.form_disprignup"!=.form_disp?"signup":"signin",R(n))),$("#bt n-lostpassword2login").on("click",function(t)(t.preventDefault(),n.form_disp=ignin",R(n))),$("#btnlogin2lostpasswordThon("click",function(t)(t.preventDefaultan.form_disp=ostpassword",R(n))),w="#btn-¶
signup2next,fttn-signup2prev").on("click",function(t)(return t.prevent0efault();'details"=f&&k?void(k.focus&&k.focus()):(f=etails"=f?"step2":"details",void R(n))});var r=find("input,select").one'keydown",function(t)fif(13=t.which)(var e=index(this);if(e=r.length-1.)return;return r.eq(e+1.).focusat.preventDefault(),!1.)));return R(n),null=e?void($(".g-recaptcha").length>0848O:void c.getNode().find("form").each(function(){var e=this),n=find(".g-recaptcha"),o=is("button");if("signupform"=e.prop("id")){if(0=n.length)return;if(o)(var r=;e.on("submit",function(t)(r8i&t.preventDefault())))return void i.loadRecaptcha(function(){grecaptcha.render(n.get(0),{callback:functionfflo&&(r=,e.submit()))),!0)},t.dyn.localenvar l,d,h,u=nction(i)robject"=ypeof¶
i&&i.preventDefault(),d I J 0h8An.length>0848&&&(n.on("click",u),n.prop("disabled",l0).addClass("disabled").append($(' "))),h=,d=,I&&(l.remove(),I=II),$.ajax({type:"POST",urkt.domains.master+Vaccount/loginform",data:e.serializeArray(),dat aType:"json",xhrFields:{withCredentials:!0},success:function(t){if(t.formvalid){if(c.close(),c=ll,E&&"function"=ypeof O[Efireturn void O[Ej();window.location.reload())I(t.form,t.reqjs)))).fail(function(){l=1¶
").prependTo(e),n.length>0&&o&&n.prop("disabled",!UremoveClass("disabled").find(".vloader").remove())).al ways(function(){d=1)));if(n.length>0){if(o)return¶
e.on("submit",function(t)(h t.preventDefault())),iloadRecaptcha(function(){grecaptcha.render(n.get(0),{callback:u},!0)) ,t.dyn.locale),void¶
j();iloadRecaptcha(function(){grecaptcha.render(n.get(0),{},!0)},t.dyn.localene.on("submit",function(t)(t.preventDefault( ),u())))));$(document).on("signupform.submit.completed",function(){var¶
t=t.form_disp=ignup",l(h.target.contents().find("#iframe-¶
content").html(),t))),$(document).on("signupform.submit.validated",function(t)(return E&&"function"=ypeof O[EJ?void O[E)(t.referer):void(window.location.href=referer)));var q=nction(){if(l)(var¶
t=body.innerHeight(),e=window).height();if(x)(var n=th.floor(x.innerWidth()/x.parent().width()100);n>.&&(t- =height()))i.scrollTo(c.body,-1Math.round((t-¶
e)/2)))),D=nction(i)0840.preventDefault(),i.stopPropagation()),c.setContent('¶
").show();var¶
n=domai ns.master+"/account/loginform"+("signup"=?"/create":"");$.get(n,f unction(t){l(t.form,t.reqjs),q( )),"json").fai I (fu nction(t,i,$){e.print("FAILED LOADING URL "+n+" =ERROR: "+1+' - "'+s+—',"Login form",t);var o='¶
'+a._("loading.failed_retry")+"¶
");o.find("a").on("click",D),c.setContent(o)))),M=nction(t)(return¶
t&&(t.preventDefault(),t.stopPropagation()),c7(c.show(),T&&T.formdisp&&S&&T.formdisp!=&(T.formdisp=R(T)),void q()):(c=get("body",!0,"hide").setClosable(!0,!0).addClass("signin-popup-form"),c.onHide=nction(){A=},void D())),L=;return l.setup_login_page=nction(){l=;var¶
e=nction(t){this.node=;e.prototype=etContent:function(t){this.node.html(0),getNode:function(){ return this.node}},c=w e($("#page")),I(null,t.data)),L.setup_links=nction(t,e){var i=ew Date).getTime();e&&(001.,1=,t.on("click",function(t){E=var e=this).data("mode");S=indexOf(e)<0?P[0J:e,$(this).trigger("menu.forceslose"),M(t)))),L.open=nction([){var e=ew Date).getTime();t8/840[e]=J=,S=0],M()),L)),define("text!skins/default/profile/multi_accounts.html",[],function(){return'¶
n t{{#accounts}An t {{ email }} - {{ name }} \n\t{Vaccountsffin
¶
'}),define("skins/default/profile/multi_accounts",["mustache","lib/helpers/popup","text!,/multi_accounts.html" ],function(t,e,i){var n=nction(){for(var e in o)o[e].url=o[e].id;return t.render(j,{accounts:0}};new e(n,r,{trigger:"mouseenter",popup_class:"multi-accounts-popup"}}};return¶
n}},require({"config/main","skins/default/pagination"],function(t,e){"object"=ypeof t.dyn.ls&&"object"=ypeof t.dyn.ls.buttons&&t.dyn.ls.buttons.length>0&&require(["skins/common/listing/settings"]);var i="#languageswitcher");i.length>0&&require(["lib/helpers/popup/language_switcher"],function(e){e(i,"/changelanguage/",t.data.other locales)});var n=".menu-login-¶
acct");n.length>0&&require(["skins/default/form/login_create"],function(t){t.setup_links(n)});var s="#multi-accountstoggle");s.length>0&&"object"=ypeof¶
t.data.login_info.multi_accounts&&require(["skins/default/profile/multi_accounts"],function(e){e(s,t.domains.master+" /account/login_as/",t.data.login_info.multi_accounts}}},e.add_all_in("#page")}),define("skins/default/common",functio n(){}),function(t,e){"object"=ypeof exports&&"object"=ypeof module.exports=):"function"=ypeof define&&define.amd?define("libs/socket.io.1.7.0",{},e);"object"=ypeof exports.io=):t.io=);{this,function(}{return¶
function(t){function e(n){if(i[n])return i[n].exports;var s=n]=xports:{},id:n,loaded:!1};return¶
t[n].call(s.exports,s.s.exports,e),s.loaded=,s.exports}var i=;return e.m=e.c=e.p=,e(0)}([function(t,e,j){"use strict";function n(t,e){"object"={"undefined"=ypeof t?"undefined":o(t)}&&(e=t=id 0),e={{;var i,n=t),a=source,h=id,u=path,f=h}&&u in d[h].nsps,p=forceNew||e["force new connection"]||!1=e.multiplex||f;return p?((("ignoring socket cache for %s",a),i=a,e)):(d[h] | | (l("new io instance for¶
%s",a),d(h]=a,e)),i=h]),n.query&&!e.query?e.query=query:e&&"object"=o(e.query)&&(e.query=e.query)),i.socket(n.path ,e)}function s(t){var e=;for(var i in¶
t)t.hasOwnProperty(i)&&e.push(encodeURlComponent(i)+"=encodeURlComponent(t[i]));return e.join("&"))var o=unction"=ypeof Symbol"=ypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"=ypeof Symbol&&t.constructor=Symbol.prototype?"symbol":typeof¶
t},r=1),a=7},c=17),l=3)("socket.io-client");t.exports=n;var¶
d=managers=;e.protocol;e.connect=e.Manager=17),e.Socket=45}},function(t,e,i){{function(e){"use strict";function n(t.i){var n=i=|e.location,null=&&(t=protocol+"//"+i.host),"string"=ypeof¶
t&&("/"=t.charAt(0)&&(t="=t.charAt(1)?i.protocol+ti.host+t),/^(https?|wss?);///.test(t)|||(0("protocol-less url %s",t),t=ndefined" != peof i?i.protocol+"//"+t:"https://"+t),o("parse¶
%s",t),n=t)},n.port||(/^(http|ws)$/.test(n.protocol)?n.port=0"://(http|ws)s$/.test(n.protocol)&&(n.port=43")),n.path=p ath||"/";var r=host.indexOf(":")!=1,a="["+n.host+"]":n.host;return¶
n.id=protocol+"://"+a+":"+n.port,n.href=protocol+"://"+a+(i&&i.port=n.port),n}var s=2),o=3)("socket.ioclient:url");t.exports=).call(e,function(){return this}())},function(t,e){var¶
i=(?:(?!(^:@)+:[^:@/]@(http:|ws|wss)://)?((?:((^:@))(?::([^:@]*))?)?@}?((?:[a-f0-9J(0,4);){,7][a-f0-9/04/1/^/?#]")(?::(\d"))?)((({{:'^?#(?)(^?#/]+(?:?#)"\'})}("}}({"\["+"))?(?:#("))?){,n=sour ce","protocol","authority","user","password","host","port","relative","path","directory","file","query","ancho r"];t.exports=nction(t){var¶
e=s=indexOf("["),o=indexOf("]");s!=&&o!=&&(t=substring(0,s)+t.substring(s,o).replace(/;/g,"")+t.substring(0,t.length));f or(var r=exec(t||""),a=,c¶;c-;)a[n[c]]=c]||"";return s!=&&o!=&&(a.source=a.host=host.substring(1,a.host.length-¶
1).replace(/;/g,":").a.authority=authority.replace("[","").replace("]","").replace({;//g,":"),a.ipv6uri=),a}}(fun ction(n){function s(){return"undefined"!=peof document&&"WebkitAppearance"in¶
document.documentElement.style||window.console.firebug||console.exception&&console.table}|||navigat or.userAgent.toLowerCase().match(/firefox/(\d+)/)&&parseInt(RegExp.$1,10)>1)function o(){var¶
t=guments,i=is.useColors;if(t[0]=?"%c":"")+this.namespace+(i?" %c":" ")+t[0]+(i?"%c ":"¶
")+"+"+e.humanize(this.diff),li)return t;var n=olor: "+this.color;t=[0],n,"color:¶
inherit"].concat(Array.prototype.slice.call(t.1));var s=o=return t[0].replace(/%[a-¶
z%}/g,function(t){"%%"!=&&(s++,"%c"=t&&(o=)}),t.splice(o,0,n),t}function r(){return"object"=ypeof¶
console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function¶
a(t){try{null=?e.storage.removeltem("debug"):e.storage.debug=catch(i){}}function c(){try{return¶
e.storage.debug)catch(t){}if("undefined"!=peof n&&"env"in n)return n.env.DEBUG)function l(){try{return¶
window.localStorage\catch(t){}e=exports=5),e.log=e.formatArgs=e.save=e.load=e.useColors=e.storage=ndefined"!=peo¶
f chrome&&"undefined" l=peof¶
chrome.storage?chrome.storage.local:l(),e.colors=lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid", "crimsonl,e.formatters.jmnction(t)(try(return JSON.stringify(t))catch(e)(returniUnexpectedJSONParseErrorj: "+e.message}},e.enable(c()))).call(e,i(4))},function(te)(function i(){throw new Error("setTimeout has not been defined")}function n()(throw new ErrorrclearTimeout has not been defined"►}function s(t)(if(d=setTimeout)return setTimeout(t,0);if((thi I I !d)&&setTimeout)return d=tTimeoutsetTimeout(t0);tryfreturn d(t0))catch(e)(try{return d.call(null,t,0)}catch(e){return d.calfithis,t0)}}ffunction o(t)(if(h=clearTimeout)return¶
clearTimeout(t);if((h=n I I Ih)&&dearTimeout)return h=earTimeout,clearTimeout(t);try(return h(t)jcatch(e)(try(return h.call(null,t))catch(e)(return h.call(this,t)}}}function r()(g&&f&&(g=,f.length?p=concat(p):_=,p.length&&a()))function a(){ifflg)(var t=r);g=;for(var e=length;e;)(for(f=p=;++_1)for(var Hle4))(var e=((?:\d+)?.?\d+)¶
"(milliseconds? I msecs?I ms I seconds? I sea? I s I minutes? I mins? I m I hours? I hrs? I h I days? I d I years? I yrs? I y)?$/i.exec(t); if(e)(var i=rseFloaffe[1]),n=12JI I "ms").tolowerCase();switch(n){case-years":case-yeancase"yrs":case-ye:casey":return isd;case"days":caseday":case"d":return i*I;case"hours":case"hour":case"hrs":casehr":case"h":return¶
isc;case"minutes":caseminute":case"mins":case"min":case"m":return¶
isa;case"seconds":case"second":case"secs-:casensee:case"s":return¶
isr;case"milliseconds":case"millisecond":case"msecs":case"msec-:case-ms":return i;default:return}}}}function n(t){return¶
t>=Math.round(t/I)+"d":t>=Math.round(t/c)+"h":t>=Math.round(t/a)+"m":t>=Math.round(tir)+"s":t+"ms"ffunction s(t)(return o(tl,"day") I I o(t,c,"hour") I I o(t,a,"minute") I I o(tr,"secondll I t+" ms"}function o(t,e,i){if(I(t0)return i(t);if("number"=o&&isNaN(t)=I1)return erlongl?s(t):n(t);throw new Error("val is not a non-empty string or a valid number. val=1SON.stringify(t))))/unction(te,i)ffunction n(){}function s(t){var i=,n=;return¶
i+=type,e.BINARY_EVENTI=type&&e.BINARY_ACKI=type I I (i+=attachments,i+="),t.nsp&&"/"I=nsp&&(n=,i+=nsp),nuIll=id 8i8i(n&&(i+=",n=),i+=id),nuIll=data&&(n&&(i+="),I+=stringify(t.data)),h("encoded %j as %s",t,i),i}function o(t,e){function i(t){var i=deconstructPacket(t),n=i.packet),o=buffers;o.unshift(n),e(o)}p.removeBlobs(t,i)}function¶
r0{this.reconstructor=lI}function a(t){var ir-,nrif(i.typeraber(t.charAt(0)),nullz.types[i.type])return¶
d();ifie.BINARY_EVENT=.type I I e.BINARY_ACK=.typelifor(var s=;"-¶
"I=charAt(++n)&&(s+=charAt(n),n1=length););ifisl=mber(s) I I --"I=charAt(n))throw new Error("Illegal¶
attachments");i.attachments=mber(s))ff("fl.charAt(n+1))for(i.nsp=;++n;){var¶
o=charAt(n);if(","=)break;if(i.nsp+=n=.length)break)else i.nsp=";var¶
r=charAt(n+1);if("1=&&Number(r)=)(for(i.id=;++n;)(var o=charAt(n);ifinull= I I Number(o)!={--¶
n;break)if(i.id+=charAt(n),n=.length)breakfi.id=mber(i.id))retum t.charAff++n)&&(i=i,t.substr(n))),h("decoded %s as %j",t,i),i)function c(te)(try(t.data=parse(e)}catch(i){return dO}return t}function l(t)(this.reconPack=this.buffersOunction d(t){return(type:e.ERROR,data:"parser error-Nor h=8)("sodtet.io-¶
pars(r"),u=11),f=13),p=14),g=16);e.protocol=e.types=CONNECT","DISCONNECI-VIVENr,"ACK","ERROR","BINARY_EVE Nr,"BINARY_ACK"be.CONNECT=e.DISCONNECT=e.EVENT=e.ACK=e.ERROR=e.BINARY_EVENT=e.BINARY_ACK=e.Encoder =e.Decoder=n.prototype.encode=nction(t,i){if(h("encoding packet¶
- %j",t),e.BINARY_EVENT=.type) Ie.BINARY ACK=.type)o(ti);else(var n=t);i((n))}},fir.prototype),r.prototype.add=nction(t)(var i;if("string"=ypeof
t)i=t),e.BINARY_EVENT=.type I I e.BINARY_ACK=.type?(this.reconstructor=w¶
l(i),-this.reconstructor.reconPack.attachments&&this.emit("decoded",i)):this.emit("decoded",i);elseliff Ig(t)&<.base6 4)throw new Error("Unknown type: "+t);i1( Ithis.reconstructor)throw new Error("got binary data when not reconstructing a¶
packet");i=is.reconstructor.takeBinaryData(t),i&&(thisseconstructor=ll,this.emit("decoded",i)))),r.prototype.destroy=nct ion()(this.reconstructor&&thisseconstructor.finishedReconstruction()),I.prototype.takeBinaryData=nction(t)fifithis.buffe rs.push(t),this.buffers.length=his.reconPack.attachments){var e=reconstructPadcet(thisseconPack,this.buffers);return this.finishedReconstruction(),e)return¶
nullbl.prototype.finishedReconstruction=nction(){this.reconPadt=ll,this.buffers=}},function(te,i)(function n()(return"WebkitAppearance"in¶
document.documentElement.style I window.console&&(console.firebug I I console.exception&&console.table)I Inavigat or.userAgent.toLowerCase().match(/firefoxV(\d+)/)&&parseInt(RegExp.$1,10)>1}function s()(var¶
t=guments,i=is.useColors;iff t[0]=?"%c":"")+this.namespace+(i?" %e:" ")+40]+(i?"%c ":"¶
")+"+-+e.humanize(this.diff),Iiketurn tvar n=olor: "+this.color;t40],n,"color:¶
inherit"].concat(Array.prototype.slice.call(t,1));var s=o=return t[0].replace(/%[a-
z%}/g,function(t){"%%"!=&&(s++,"%c"=t&&(o=)}),t.splice(o,0,n),t}function o(){return"object"=ypeof
console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function
r(t){try{null=?e.storage.removeltem("debug"):e.storage.debug=catch(i){}}function a(){var
t;try{t=storage.debug}catch(i){}return t}function c(){try{return
window.localStorage\catch(t){}e=exports=9),e.log=e.formatArgs=e.save=e.load=e.useColors=e.storage=ndefined"!=peo
f chrome&&"undefined" != peof
chrome.storage?chrome.storage.local:c(),e.colors=lightseagreen","goldenrod","dodgerblue","darkorchid",
"crimson"],e.formatters.j=nction(t){return JSON.stringify(t)},e.enable(a())},function(t,e,i){function n(}{return
e.colors[d++%e.colors.length]}function s(t){function i(){}function s(){var t=i=ew
Date,o=(l|j);t.diff=t.prev=t.curr==null=.useColors=useColors()),null=.color&&t.useColors&&(t.color=));v
ar r=ray.prototype.slice.call(arguments);r[0]=coerce(r[0]),"string"!=peof r[0]&&(r=%o"].concat(r));var
a=r(0)=0).replace(/%([a-z%])/g.function(i,n){if("%%"=i)return i;a++;var s=formatters[n];if("function"=ypeof s){var
o=a];i=call(t,o),r.splice(a,1),a-}return i}),"function"=ypeof e.formatArgs&&(r=formatArgs.apply(t,r));var
c=log||e.log||console.log.bind(console);c.apply(t,r)}i.enabled=;var o=enabled(t)?s:i;return
o.namespace=o}function o(t){e.save(t);for(var i=||"").split(/(\s,]+/),n=length,s=s1e4)}var e=((?:\d+)?\,?\d+)
* [milliseconds?|msecs?|ms|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y}?$/i.exec(t);
if(e){var i=rseFloat(e[1]),n=[2]||"ms").toLowerCase();switch(n){case"year":case"yr":case"yr":case"y":return
i*d;case"days":case"day":case"d":return i*l;case"hours":case"hrs":case"hr":case"h":return
i *c;case"minutes":case"minute":case"mins":case"min":case"m":return
i*a;case"seconds":case"second":case"secs":case"sec":case"s":return
i*r;case"milliseconds":case"millisecond":case"msec":case"ms":return i}}}function n(t){return
t>=Math.round(t/l)+"d":t>=Math.round(t/c)+"h":t>=Math.round(t/a)+"m":t>=Math.round(t/r)+"s":t+"ms"}function
s(t){return o(t,l,"day")||o(t,c,"hour")||o(t,a,"minute")||o(t,r,"second")||t+" ms"}function o(t,e,i){if(!(t1)})/4}-S(t-
1901+e)/100)+S((t-1601+e)/400)};if((p=hasOwnProperty)||((p=nction(t){var
e,i=;return(i.__ proto_=ll,i.__ proto_=oString:1},i).toString!=p=nction(t){var
e=is._proto__i=in(this._proto_=ll,this);return this.__proto_=i};(e=constructor,p=nction(t){var
i=his.constructor||e).prototype;return t in this&&!(t in i&&this[t]=i[t]}},i=ll,p.call(this,t)}),g=nction(t,e}{var
i,n,s,o=(i=nction(){this.valueOf=).prototype.valueOf=n=w i;for(s in n)p.call(n,s)&&o++;return
i=null,o?g==function(t,e){var i,n=,s=call(t)=;for(i in
t}s&&"prototype"=||p.call(n,i)||!(n[i]=||!p.call(t,i)||e(i)}:function(t,e){var i,n,s=call(t)=;for(i in
t}s&&"prototype"=||!p.call(t.j)||(n=onstructor"=i)||e(i);(n||p.call(t,i=onstructor"))&&e(i)};(n=valueOf","toString","toLo
caleString","propertylsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],g=nction(t,e){var
i,s,o=call(t)=,a=&&"function"!=peof t.constructor&&r[typeof t.hasOwnProperty]&&t.hasOwnProperty||p;for(i in
t)o&&"prototype"=||.a.call(t.i)||e(i);for(s=length;i=--s);a.call(t.i)&&e(i));}),g(t,e)},!i("json-stringify")}(var
0=2:"\\\\",34:'\\",8:"\\b",12:"\\r",13:"\\r",9:"\\t"},P=00000",R=nction(t,e){return(P+(e||0),slice(-
t)},j=\u00",!=nction(t){for(var e=',i=n=length,s=||n>10,o=&(E?t.split(""):t);i-
1/0&&a<1/0){if(N){forlu=a/864e5).l=u/365.2425}+1970-1;N(I+1,0)<=1++);for(d=lu-N(1,0)/30.42);N(1,d+1)<=d++);y=u-
N(l,d),f=%864e5+864e5)%864e5,v=f/36e5)%24,b=f/6e4)%60,y=f/1e3)%60,w=1e3}else
|=getUTCFullYear(),d=getUTCMonth(),u=getUTCDate(),v=getUTCMinutes(),y=getUTCMinutes(),y=getUTCSeconds(),w=getU
TCMilliseconds();a=<=||>-4?(|<0?"-":"+")+R(6,|<0?-1:1):R(4,|))+"-"+R(2,d+1)+"-
"+R(2,u)+"T"+R(2,v)+":"+R(2,b)+":"+R(2,y)+"."+R(3,w)+"Z")else
a=ll;if(i&&(a=call(e,t,a)),null=a)return"null";if(c=call(a),c=)return a>-1/0&&a<1/0?""+a:"null";if(s=)return
I(""+a);if("object"=ypeof a){for(P=length;P --; )if(r[P]=a)throw
h();if(r.push(a),E=,j=o+=c=){for(O=P=length;O0)for(n=,i>10&&(i+);n.lengthH&&s�&&s<=2 | | s>=ch
arCodeAt(++D);t+=slice(e,D)}if(34=.charCodeAt(D))return
D++,t;z();default:if(e=45=&&(n=,s=charCodeAt(++D)),s>H&&sH&&sH&&sH&&s0&&!this.encoding){var
t=is.packetBuffer.shift();this.packet(t)}},n.prototype.cleanup=nction(){h("cleanup");for(var
t=is.subs.length,e=e=is._reconnectionAttempts)h("reconnect
failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=;else{var e=is.backoff.duration();h("will
wait %dms before reconnect attempt",e),this.reconnecting=yar i=tTimeout(function(){t.skipReconnect | | (h("attempting
reconnect"),t.emitAll("reconnect_attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipRecon¶
nett I I t.open(function(e)(e?(h("reconnect attempt¶
error"),t.reconnecting=,t.reconnectat.emitAll("reconnect_error",e.data)):(h("reconnect¶
success"),t.onreconnect()))))),e);this.subs.push((destroy:function(){clearTimeout(i)}})}},n.prototype.onreconnect=nction( ){var¶
t=is.backoff.attempts;thisseconnecting=,this.backoffseset(),this.updateSocketids(),this.emitAll("reconnect",t)}},function (te,i)(t.exports=19)},function(te,i){t.exports=20),t.exports.parser=27)},function(t,e,i)((function(e){function n(t,i)(if(!(this instanceof n)}retum new n(t,i);i= I 0,t&&"object"=weof¶
t&&(i=t=ll),t?(t=t),i.hostname=host,i.secure=ttps"=t.protocol I I "wss"=t.protocol,i.port=port,t.query&&(i.query=query)):i. host&&(i.hostname=i.host).host),this.secure=ll l=secure?i.secure:e.location&&"https:"=location.protocol,i.hostname&&I i.port&&(i.port=is.secure?"443":"80"),this.agent=agent I I ll,this.hostname=hostname I I (e.location?location.hostname:"I ocal host"),thi s. port= port I I (e.location8alocation.porelocation.port:this.secure?443:80),this.query=query I I {},"string"=y peof¶
this.query&&(th is.query=decode(this.query)),this. upgrade= I =. upgrade,this. path=.path I I Vengine.io").replace(A/S/7)+ "/",this.forceJSONP=i.force.ISONP,this.jsonp=!=jsonp,this.forceflase64=i.forceBase64,this.enablesXDR=i.enablesXDR,this .timestampParam=timestampParam I I "t",this.timestampRequests=timestampRequestssthis.transports=transports I I ["po II ng","websocket"),this. readyState=,thi s.writeBuffer=,this. prevBufferLen=this. policyPort=pol icyPort I I 843,thi s. remem be rUpgrade=rememberUpgrade I I I1,this.binaryType=ll,this.onlyBinaryUpgrades=onlyBinaryUpgrades,this.perMessageDefl ate=l=.perMessageDeflate&&(i.perMessageDeflate I I (}),I0=this.perMessageDeflate84(this.perMessageDeflate=),this.pe rMessageDeflate&&null=his.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold-I-24),this.pfx=pfx I I null,t hi s.key=key I I null,this.passphrase=passphrase I I null,this.cert=cert I I null,this.ca=ca I I null,this.ciphers=ciphers I I null,this. rejectUnauthorized=id CtisejectUnauthorized?nultisejectUnauthorized,this.forceNode=i.forceNode;var s=bject"=ypeof eat&e;s.global=s8A(i.extraHeadersEk&Object.keys(i.extraHeaders).length>0&&(this.extraHeaders=extraHeaders),i.localA ddress8a(this.localAddress=localAddress)),this.id=ll,this.upgrades=ll,this.pingInterval=ll,this.pingTimeout=ll,this.pingInt ervaMmer=ll,this.pingTimeoutTimer=ll,this.open())function s(t)(var e=;for(var i in¶
t)t.hasOwnProperty(i)84(e[i]=iThretum e}var o=21),r=36),a=3)("engine.io-¶
client:socket"),c=43),I=27),d=2),h=44),u=37);t.exports=n.priorWebsocketSuccess=,r(n.prototype),n.protocol=protocol,n. Sothet=n.Transport=26),n.transports=21),n.parser=27),n.prototype.createTransport=nction(t)fa('creating transport "96?",t);var e=this.query);e.El0=protocol,e.transport=this.id&&(e.sid=is.id);var i=w¶
oRJ((agent:this.agenthostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:e,forceJSONP:thisl orceJSONPAsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timesta mpRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passp hrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessa geDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders,forceNode:this.forceNode,localAddress:this.localAdd ress});return ihn.prototype.open=nction()(var¶
t;if(this.rememberUpgrade&&n.priorWebsocketsuccess&&this.transports.indexOf("websocket")!=1)t=ebsocket";else{if( 0=this.transports.length){var e=is;return void setTimeout(function()(e.emit("error","No transports¶
available")},0)}t=is.transports[0]}thisseadyState=pening";tryft=is.createTransport(t)katch(i)(return¶
this.transports.shiftQ,void this.open())t.open(),this.setTransport(t)},n.prototype.setTransport=nction(t){a("setting transport %s",t.name);var e=is;this.transport&&(a("dearing existing transport¶
96s",this.transportname),this.transportremoveAllUsteners()),this.transport=t.onrdrain",function(){e.onDrain())).onrpa cket",function(t)fe.onPacket(t)Thonrerror",function(t)(e.onError(t))).onrclose",function()(e.onClose("transport close")))),n.prototype.probe=nction(t)(function efflif(u.onlyflinaryUpgrades)(var¶
e=his.supportsBinary&&u.transport.supportsBinary;h= I e)h I I (a('probe transport "%s"¶
openecr,t),d.sendifftype:"ping",data:"probeln,d.oncerpacket",function(e)(if(lh)if("pong"=e.type&&"probe"=e.data){if( a('probe transport "%s"¶
pone,t),u.upgrading=,u.emit("upgrading",d),Id)return;n.priorWebsocketSuccess=ebsocker=d.name,a('pausing current transport "%s"',u.transport.name),u.transport.pauseffunction()(h I I "closed"I=.readyState&&(a("changing transport and sending upgrade¶
packet"),l(),u.setTransport(d),d.sendffitype:"upgradelThu.emit("upgrade",d),d=ll,u.upgrading=,u.flush()))))else(a('probe transport "%s" failed,t);var i=w Error("probe error");i.transport=name,u.emit("upgradeError",i))))))function i()(h I I (h=,l(),d.dose(),d=ll)}function s(e){var n=w Error("probe error: "+e);n.transport=name,i(),a('probe transport "%s" failed because of error: %s',t,e),u.emit("upgradeError",n)}function oQ(s("transport closed")}function r()(s("socket¶
closed")}function c(t){d8c&t.namel=.name&&(a("%s" works - aborting "%smst.name,d.name),i()))function l()(d.removelistener("open",e),d.removeListener("error,$),d.removeListener("close",o),u.removelistener("close",r),u.re movelistenerrupgrading",cfla('probing transport "%s1",t);var d=is.createTransport(t,(probe:1)),h=,u=is;n.priorWebsocketSuccess=,d.once("open",e),d.once("error",$),d.once("close", o),this.once("close",r),this.once("upgrading",c),d.open()),n.prototype.onOpen=nction()(iffa("sodet open"),thisseadyState=pen",n.priorWebsocketSuccess=ebsocket"=this.transport.name,this.emit("open"),this.flush(),"op en"=this.readyState&&this.upgrade&&this.transport.pauseffa("starting upgrade probes");for(var t=e=is.upgrades.length;t1Ntype:b[s],data:t.substring(1)}:{type:b[sjky}var o=w Uint8Array(t),s=0],r=t,Threturn w&&"blob"=i&&(r=w w(M)),{type:b(s),data:r}},e.decodeBase64Packet=nction(t,e)(var i=t.charAt(0)];iff ! Iketurn{type:i,datalbase64:10,datatsubstr(1)));var n=decode(t.substr(1));return"blob"=e&&w&&(n=w w([nI)),{type:i,data:n}},e.encodePayload=nction(ti,n)ffunction s(t)(return t.length+":"+tffunction offinffe.encodePackefft,ffr&&i,10,function(t)(n(null,s(t))llrfunction"xypeof i&&(nxixil);var mtkretum i8t8tr?w841v?e.encodePayloadAsBlob(t,n):e.encodePayloadAsArrayBuffer(t,n):t.length?void c(t,o,function(t,e)(retum n(e.join("")))):n("0:1},e.decodePayload=nction(t,i,n)(ifrstring"!=peof t)retum e.decodePayloadAsBinary(t,i,n);"function"=ypeof i&&(n=ir II);var s;if(""=)return n(y,0,1);for(var o,r,a=sc=l=length;ctk){for(var a=w Uint8Array(s),c==[0],l=,d=255l=d);d++)(iffilength>31.0)(r=;breakff+=dniffrffeturn n(y,0,1);s=s,244.length),I=rseInt(l);var h=s,0,I);if(c)try(h=ring.fromCharCode.apply(nultnew Uint8Array(h)))catch(f)(var p=w Uint8Array(h);h=;for(var d=dn&&(i=,e>= e>= 0=n)return new ArrayBuffer(0);for(var s=w Uint8Array(t),o=w Uint8Array(i-e),r=a=rU296&&e65535&&(e-e536,s+=e>»10&1023 55296),eV320 1023&e),s+=e);return s}function c(t,e){return b(t»e&63 0.28)}function I(t){if(O=4294967168&t))return b(t);var e=;return 0=4294965248&tite=t»6&31 I 192):0=42949017608ctIne=t»12&15 224),e+=t,6)):0=4292870144&t)&&(e=t»188OI2 40),e+=t,12),e+=t,6)),e+=63&t I128)ffunction d(t)(for(var e,i=t),n=length,s=,o=;++s=throw Error("invalid byte index");var t9(38jmI;if(m++,128=192&t)ffetum 63&t;throw Errorrinvalid continuation bytelffunction u()(var t,e,i,n,s;if(m>v)throw Error("invalid byte index");iffm=)returnItifft%Stim),m++,0=12881t))return t;if(192=224&t)){var e=);iffs=1&t)«6 I e,s>18)return s;throw Error("Invalid continuation byte")}if(224=240&t)ffiffe=),i=),s=5&t)«12 I e«6I i,s> 48)return s;throw Error("Invalid continuation byte")}if(24(k248&t)&&(e=),I=),n=),s=58it)«18 I e«12 i«6I n,s>e536&&sc414111))return s;throw Error("invalid WTF-8 detected"))function f(t)(_=t),v=length,m=for(var e,i=;(e=))!=1;)i.push(e);return a(i)}var p=bject"=ypeof e&&e,g=object"=ypeof t&&t&&t.exports=&&t,"objectu=ypeof s&&s);g.globall=&&g.windowl= I I (o=;var _,v,m,b=ring.fromCharCode,y=ersion:"1.0.0",encode:d,decode:f);n=nction(){return 0!=&&(t.exports=)}(this))).call(e,i(12)(t),function(){retum this)())),function(t,e)fffunction()("use strict";for(var t=l3CDEFGHUKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789Thi=w Uint8Array(256),n=n>2],o+=(38m[i])«4 n[i +1]»4],o+=(15810+1])«2 I nff+21»61,o+=63&4+2Threturn s%3=2?o=substring(0,o.length-1)+"=s%3=1&&(o=substring(0,o.length-2)+"=),o),e.decode=nction(t)(var e,n,s,o,r,a=5*t.length,c=length,l="==ff.length-1.184(a--,"==ff.length-21&&a--);var d=w ArrayBuffer(a),h=w Uint8Array(d);for(e=e>4,h[I++]=5&s)«4I o»2,111++]=&o)«6 63&rweturn dflobfunction(t,e)((function(e){function i(t){for(var¶
e=e1;o=cument.createElement(encatch(t){o=cument.createElement("iframe"),o.name=iframeld,o.src=avascript:0")o.id=i frameld,s.form.appendChild(o),s.iframe=var s=is;i1( Ithis.form){var¶
o,r=cument.createElement("form"),a=cument.createElementrtextareal,d=is.iframeld=io_iframe"+this.index;r.dassNa me=ocketio",r.style.position=bsolute",r.style.top=1000px",r.style.left=1000px",r.target.r.method=OST",r.setAttribute("a ccept-charset","utf-¶
8"),a.name=",r.appendChild(a),document.body.appendChild(r),this.form=this.area=this.form.action=is.uri(),n(),t=replace (1,"%n"),this.area.value=replace(c,"\n");try{this.form.submitificatch(h)fithis.iframe.attachEvent?this.iframe.onreadyst atechange=nction(Wcomplete=s.iframe.readyState&&i()):this.iframe.onload=}).calffe,function(){return thisff)Thfunction(te,i){(function(e){function n(t)(var¶
e=&t.forceBase64;e&&(this.supportsBinary4this.perMessageDeflate=perMessageDeflate,this.usingBrowserWebSodcet =&!t.forceNode,this.usingBrowserWebSocket I I (f=,o.call(this,t)}var s,o=26),r=27),a=37),c=38),I=39),d=3)("engine.ioclient:websocket"),h=WebSocket I I e.MozWebSocket;if("undefinecr=ypeof window)try(s=42))catch(u)fivar f=f "undefined"!=peof¶
window I I (fr,t.exports=c(n,o),n.prototype.name=ebsocket",n.prototype.supportsBinary=,n.prototype.doOpen=nction(){i f(this.check()){var t=is.uri(),e=id¶
0,i=gent:this.agent,perMessageDeflate:this.perMessageDeflate};i.pfx=is.pfx,i.key=is.passphrase,i.cer t=is.cert.i.ca=is.ca.i.ciphers.i.rejectUnauthorized=is.rejectUnauthorized,this.extraHeaders&&(i.headers=is.extr aHeaders),this.localAddress&&(i.localAddress=is.localAddress);try{this.ws=is.usingBrowserWebSocket?new f(t);new f(t,e,i)}catch(n){return this.emit("error",n)}void¶
0=this.ws.binaryType&&(this.supportsBinary=),this.ws.supports.binary?(this.supports.binary=this.ws .binaryType=odebuffer");this.ws.binaryType=rraybuffer",this.addEventListeners()}},n.prototype.addEventListeners=nctio n(){var¶
t=is;this.ws.onopen=nction(){t.onOpen()},this.ws.onclose=nction(){t.onClose()},this.ws.onmessage=nction(e){t.onData(e. data)},this.ws.onerror=nction(e){t.onError("websocket error",e)}},n.prototype.write=nction(t){tunction¶
i(){n.emit("flush"),setTimeout(function(){n.writ("drain")},0)}var n=is;this.writable=;for(var¶
s=length,o=a=o0&&t.jitter<=t.jitter <=t.jitter:0,this.attempts=i.prototype.duration=nction(){var¶
t=is.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var¶
e=th.random(),i=th.floor(ethis.jittert);t==&Math.floor(10*e))?t-i:t+i}return¶
0|Math.min(t,this.max)}i.prototype.reset=nction(){this.attempts=j.prototype.setMin=nction(t){this.ms=j.prototype.set Max=nction(t){this.max=.i.prototype.setJitter=nction(t){this.jitter=}}}},define("text!skins/default/chat/friend.html",[],fu nction(){return'{{#nb_unread}}Offline¶
\n\t \n\t {{#is_favorite}} \n\t \n\t\t\t{{ user_name }} \n\t\t\t\t \n\t\t\t\t\t\t{{#not_read}} {{{ message }}}¶
\n\t\t\t \n\t\t \n\t \n '}),define("text!skins/default/chat/message_inside.html",[],function(){return' \n {{/not_read}}\n {{#has_delete}} x {{/has_delete}}\n \n¶
\n\t\t\n\t\t\n\t\t¶
\n\t\t\t¶
\n\t\t\t XVIDEOS Chat\n\t\t \n\t\t Small size \n\t\t\t\t Medium size \n\t\t\t\t Big size \n\t\t\t\t Sound \n\t\t\t\t¶
Notifications \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t \n\t\t\t\t\t¶
Welcome to XVIDEOS' new chat!¶
\n\t\t\t\t\t¶
Keep in mind that we are still working on many changes and features.¶
\n\t\t\t\t\t¶
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\tSend\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
Back to friends\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t
\n\t
\n\t
((#is_favorite))
\n¶
1}),function(t)("function".ypeof define&&define.amd?define("jqueryscrollLock",flqueryl,t):t(jQuery)}(function(t){"use strict";var e,i=pace:32,pageup:33,pagedown:34,end:35,home:36,up:38,down:40},n=nction(e,i)(var n,s,o,r=scrollTop(),a=prop("scrollHeight"),c=prop("clientHeight"),I=originalEvent.wheelDelta I I - Pe.originalEvent.detail I Ile.originalEvent.deltaY,d=return"wheel".e.type?(n=height()/t(window).height(),d=originalEvent.deltaYn):this.options .touch&&"touchmove".e.type&&(l=originalEvent.changedTouches(01.clientYthis.startClientY),o=0&&r+d<= I II<08Ar+d>=c,(prevent:o,top:siscrolITop:r,deltaY:d)},s=nction(t,e){var n,s,o=scrollTop(),r=op:!1,bottom:!areturn r.top==&&(t.keyCode=i.pageup I I tskeyCode=ishome I I t.keyCode=i.up),r.top I I (n=prop("scrollHeight"),s=prop("clientHeig ht"),r.bottom==+s&&(t.keyCoderi.space I I t.keyCode.i.pagedown I I t.keyCode=i.end I I t.keyCode=i.down)),r},o=nction(e,i )(this.Selement=this.options=extend({},o.DEFAULTS,this.Selement.data(),i),this.enabled.,this.startClientY=this.options.0 nblock&&this.$element.on(o.CORE.wheelEventName+o.NAMESPACE,this.options.unblock,t.proxy(o.CORE.unblockHandl er,this)),this.$element.on(o.CORE.wheelEventName+o.NAMESPACE,this.options.selector,t.proxy(o.CORE.handler,this)),t his.options.touch&&(this.$element.on("touchstart"+o.NAMESPACE,this.options.selector,t.proxy(o.CORE.touchHandler,t his)),this.$element.on("touchmove"+o.NAMESPACE,this.options.selector,t.proxy(o.CORE.handler,this)),this.options.unbl¶
ock&&this.$element.on("touchmove"+o.NAMESPACE,this.options.unblock.t.proxy(o.CORE.unblockHandler,this))),this.o ptions.keyboard&&(this.$element.attr("tabindex",this.options.keyboard.tabindex||0),this.$element.on("keydown"+o.N AMESPACE,this.options.selector,t.proxy(o.CORE.keyboardHandler,this)),this.options.unblock&&this.$element.on("keydo wn"+o.NAMESPACE,this.options.unblock,t.proxy(o.CORE.unblockHandler,this)))};o.NAME=crollLock",o.VERSION=1.2").o. NAMESPACE=scrollLock",o.ANIMATION_NAMESPACE=".effect",o.DEFAULTS=trict:11,strictFn:function(t){ref urn t.prop("scrollHeight")>t.prop("clientHeight")},selector:!1,animation:!1,touch:"ontouchstart"in¶
window.keyboard:!1.unblock:!1}.o.CORE=heelEventName:"onwheel"in document.createElement("div")?"wheel":void 0!=ocument.onmousewheel":"DOMMouseScroll",animationEventName:["webkitAnimationEnd","mozAni mationEnd","MSAnimationEnd","oanimationend"].join(o.ANIMATION_NAMESPACE+"¶
")+o.ANIMATION_NAMESPACE,unblockHandler:function(t){t._currentTarget},handler:function(e){var i,s,r;this.enabled&&le.ctrlKey&&(i=e.currentTarget),(this.options.strict!=0||this.options.strictFn(i))&&(e.stopPropagatio n(),s=proxy(n,this)(e,i),e.__currentTarget&&(s,prevent&=proxy(n,this)(e,t(e.__currentTarget)),prevent},s.prevent&&(e.p reventDefault(),s.deltaY&&i.scrollTop(s.deltaY),r=top?"top":"bottom",this.options.animation&&setTimeout( o.CORE.animationHandler.bind(this,i.r),0).i.trigger(t.Event(r+o.NAMESPACE))))),touchHandler:function(t){this.startClien tY=originalEvent.touches[0].clientY},animationHandler:function(t,e){var¶
i=is.options.animation[e],n=is.options.animation.top+"¶
"+this.options.animation.bottom;t.off(o.ANIMATION_NAMESPACE).removeClass(n).addClass(i).one(o.CORE.animationEv entName,function(){t.removeClass(i)}}),keyboardHandler:function(e){var¶
i,n=e.currentTarget),r=.scrollTop(),s(e,n));return¶
e __ currentTarget&&(i=e,t(e___ currentTarget)),r.top&=top,r.bottom&=bottom),r.top?(n.trigger(t.Event("top"+o.NAMES PACE)),this.options.animation&&setTimeout(o.CORE.animationHandler.bind(this,n,"top"),0),11):r.bottom?(n.trigger(t.Ev ent("bottom"+o.NAMESPACE)),this.options.animation&&setTimeout(o.CORE.animationHandler.bind(this,n,"bottom"),0) ,!1):void¶
0}},o.prototype.toggleStrict=nction(){this.options.strict},o.prototype.enable=nction(){this.enabled=},o. prototype.disable=nction(){this.enabled=},o.prototype.destroy=nction(){this.pelement.off(o.NAMESPACE),t his.$element=ll,this.options=ll},e=fn.scrollLock,t.fn.scrollLock=nction(e){return this.each(function(){var¶
i=this),n=bject"=ypeof e&&e,s=data(o.NAME);(s||"destroy"!=)&&(s||i.data(o.NAME,s=w o(i,n)),"string"=ypeof e&&se)});t.fn.scrollLock.defaults=DEFAULTS.t.fn.scrollLock.noConflict=nction(){return¶
t.fn.scrollLock=this}}),define("skins/default/chat/main"),function(t){t.dyn.chat.enabled&&require((" mustache","static/cookies","lib/helpers/inline_loader","libs/socket.io.1.7.0","text!skins/default/ch at/friend.html","text.lskins/default/chat/message.html","text!skins/default/chat/message_inside.html","text!skins/defa ult/chat/window.html","text!skins/default/chat/header_messages.html","firebase","jquery-¶
scrollLock"],function(e,i,n,s,o,r,a,c,l,d){firebase.initializeApp(t.dyn.chat.firebase);var h=nction(e){return¶
this.url account chat=domains.master+"/account/chat",this.nb unread interval ajax-e3,this.debug=this.connection_ master=ndow.location.protocol+"//"+t.dyn.chat.server_master,this.url_base_profile=domains.slave+"/profiles/",this.url picture_default=ndow.location.protocol+"//static-¶
hw.xvideos.com/img/profile_default_small.jpg",this.friends_this.friends=,this.service_worker_file=js/chat-privesw.js",this.shared worker file=js/chat-prive-¶
shared.js",this.sound_file=domains("static"]+"/v2/sound/notif1.mp3",this.selected_friend=this.nb_friends_get_with_m ore_link@;this.sound=,this.notif_allowed=,this.service_worker_register=,this.useServiceWorkerDone=,this.se rviceWorkerRegistration=Il,this.serviceWorkerRegistrationBase=Il,this.friends_infos_from_SW=Il,this.connect_done=,thi s.force_friend=ll,this.account_chat_container=,this.cookie_deco_name=hat_deco",this.interval_check_deco>3,this.time _for_message_group',11 in navigator||"undefined"=ypeof navigator.serviceWorker?(this.initNode(11),void¶
this.initSettings()):(this.initNode(!0),this.initNotif(),this.initSettings(),this.initSharedWorker(),void¶
this.initServiceWorker()});return h.prototype=nitNode:function(t){var i=is,n="#account-chat-private-¶
container");if(n.length>0?(this.account_chat_container=,this.node=e.render(l){window_class:"",sound_fil e}}),n.html(this.node),this.node.height()>window.innerHeight-100&&this.node.height(window.innerHeight-100)):this.node=e.render(l,{window_class:"chat-¶
hidden",sound_file:this.sound_file}}).appendTo("div#page"),this.title=is.node.find(".chat-¶
title"), !t&&!this.account_chat_container)return¶
this.title.on("click",function(){window.open(i.url_account_chat,"_blank")}),void(this.loop_ajax_nb_unread=thterval(this get_nb_unread_ajax.bind(this),this.nb_unread_interval_ajax));this.account_chat_container||this.title.on("click",functio n()(i.chat_toggle_display())),this.userlistfavorite=is.node.find("#chat-users-¶
favorite"),this.userlistothers=is.node.find("#chat-users-others"),this.userlistofflinefavorite=is.node.find("#chat-usersoffline-favorite"),this.userlistofflineothers=is.node.find("#chat-users-offline-¶
others"),this.userlistsearch=is.node.find("tfchat-users-search"),this.userlistsearchclose=is.node.find("#chat-users-searchclose"),this.msglist=is.node.find(".chat-¶
messages"),this.input=is.node.find("textarea"),this.inputnotif=is.node.find("#chat_checkbox_notif"),this.inputsound=is.n ode.find("ISchat_checkbox_sound"),this.search_input=is.node.find("#chat-users-search-input¶
input"),this.search_button=is.node.find("ftchat-users-search-input button#chat-search-¶
button"),this.search_back_button=is.node.find("#chat-users-search-close¶
a.chat_back_to_friends"),this.chat_header_messages=is.node.find(".chat-header-¶
messages"),this.chat_icon_home=is.node.find(".chat-icon-home"),this.openedr,this.overlaywar s=#chat_friend_((0- 91+)Stif("undefined"!=peof window.location.hash&&""!=indow.location.hash)(var¶
o=exec(window.location.hash);if(o&&2=o.length)(var r=rselnt(o[1J);O!=&&(this.force_friend=}}if($("#account-chat-forcefriend").length>0){var r=rseInt($("#account-chat-force-¶
friend").html());0!=&&(this.force_friend=}this.log("force_friend",this.force_friend),this.account_chat_container&&ff&ga his.connect()),initSettings:function()(var e=".chat-settings"),i="#chat-settings-¶
list"),n=is;e.on("click",function(t)(t.stopPropagation(),t.preventDefault(),i.toggle())),i.on("click",function(t)(t.preventDefa ult(),i.toggle())),$("#chat-option-size-small").on("click",function()(n.change_size(0))),$("#chat-option-size-¶
medium").onrclick",function()(n.changesize(1))),$("#chat-option-size-big").on("click",function()(n.changesize(2)));var s="#chat-option-sound");s.on("click",function()(n.switchsound())),this.soundoptioncheck=find(".chat-settings-optionicon"),"undefined"!=peof¶
t.dyn.chat.prefs.sound&&(this.sound==dyn.chat.prefs.sound),this.sound?this.sound_option_check.addClass("icon chatsettings-option-checked"):this.sound_option_check.addClass("icon chat-settings-option-unchecked");var oflchatoption-notification");o.on("click",functionifin.switch_notification())),this.notifoption_check=find(".chat-settingsoption-icon"),this.notif=!0&&this.notif_option_check.removeClass("chat-settings-option-unchecked").addClass("chatsettings-option-checked"),$("#chat-option-color0").on("click",function(t)(n.change_messages_color(0,t))),$("#chatoption-colorl").on("click",function(t)(n.change_messages_color(1,t))),$("#chat-option-¶
color2").on("click",function(t)(n.change_messages_color(2,t)));var r=is.get_size(};0!=&this.change_size(r);var a=is.get_messages_color();this.log("caht colors :¶
"+a),0!=&this.change_messages_color(a),this.chat_iconhome.on("click",function(t)(n.toggle_home(t)))),initSharedWor ker:function()(if(this.log("initSharedWorker"),!window.SharedWorker)return void this.log("Browser doesn't support shared worker");this.shared_worker=w¶
SharedWorker(this.shared_worker_file),this.shared_worker.port.start(),this.shared_status=lose";var t=is;this.shared_worker.port.addEventlistener("message",function(e)(t.log("shared worker¶
message",e.data),e.data.hasOwnProperty("action")&&("open"=.data.action&&"close"=.shared_status&&(t.log("page open"),t.shared_status=pen",t.serviceWorkerRegistration?t.connect_SW():t.connect()),"close"=.data.action&&"open"=.s hared_status&&(t.log("page close"),t.shared_status=lose",t.reinitChat()),"opened"..data.action&&t.log("Another page opened"))),!1),window.addEventhistener("unload",function(e)ft.sharedworker.port.postMessage((action:"unload")),t.s ocket_connection.emit("force_close"))),window.addEventListener("beforeunload",function(e)(t.socket_connection.emit ("force_close"))),document.addEventListener("visibilitychange",functiono(t.log("visibilitychange",document.visibilityStat e),"visible"=ocument.visibilityState&&t.shared_worker.port.postMessage((action:"focus"))),11)),initNotif:function()(if(!(" Notification"in window))return this.log("This browser does not support desktop¶
notification"),this.notifallowed=,!Lif(this.notifallowed=,$("spanftchatchecknotifThshow(),"undefined"=ypeof t.dyn.chat I I"undefined"=ypeof t.dyn.chat.prefs)return void¶
this.log("notif",this.notif);if(this.notif_allowed&&"undefined"!=peof¶
t.dyn.chat.prefs.notif841..dyn.chat.prefs.notif)(if("denied"=Notification.permission)return this.log("desktop notification permission¶
denied"),this.notif=,this.log("notif",this.notif),!1;"default"=Notification.permission?(this.notif_need_permission=,this.no tif=,this.log("need notification¶
permission")):(this.notif=,this.inputnotif.prop("checked",this.notif)))this.log("notif",this.notif)breinitChat:function(){this. reinit=,this.chat_toggle_display(! 1,!0),delete¶
this.lastfriendconv,this.friends ids=,this.friends=,this.friendsinfosfromSW=II,this.connectdone=,this.forcefriend¶
=II,this.selectedfriend=this.connectdone=,this.cookiedeconame&&(clearInterval(this.checkdecointerval),delete this.cookie_deconame),this.socketMaster&&this.socketMaster.disconnect(),this.socket_connection&&this.socket_con nection.disconnect(),S(".chat_group_tab_container").remove(),$("#chat-users-lists .list-group-item").remove(),delete this.user_id,delete this.profile_name,delete this.profile_picture,delete¶
this.nb_unread_messages,this.updateTotalNbUnread(0),delete this.nb_unread_messages_sum,$("div.chatmessenger").removeClass("chat-home").addClass("chat-¶
home"),this.SW_chat_display=hinitServiceWorker:function()(if(this.log("initServiceWorker"),!1 in¶
navigator I I "undefined"=ypeof navigator.serviceWorker)return void this.serviceWorkerError({error:"serviceWorker not avialable"});var t=is,e=rebase.messaging();this.log("serviceWorker in¶
navigator"),navigator.serviceWorker.register(this.service_worker_file).then(function(i){t.service_worker_register=,t.sery iceWorkerRegistrationBase=t.useServiceWorkerDone I I (e.useServiceWorker(i),t.useServiceWorkerDone=),e.requestPer mission().then(function(){return t.log("Have permission"),e.getToken())).then(function(e)(t.log("get¶
token",e),t.sw_token=)["catchl(function(e)(t.log("Firebase error¶
Occured.",e))),i.active&&(t.serviceWorkerRegistration=active,navigator.serviceWorker.onmessage=serviceWorkerOnMe ssage.bind(t)),"visible"=ocument.visibilityState&&t.shared_worker.port.postMessage((action:"focus"))))["catch"lifunctio n(e){t.log("Firebase registration error¶
Occured.",e),"visible"=ocument.visibilityState&&t.shared_worker.port.postMessage({action:"focus"}))),e.onTokenRefres h(function()(t.log("onTokenRefresh"),e.getToken().then(function(e)(t.log("Token¶
refreshed"),t.setSwToken(e)))("catch"lifunction(t)(debug("Unable to retrieve refreshed token¶
",t))))),e.onMessage(function(e){t.log("messaging.onMessage: ",e);¶
})},serviceWorkerOnMessage:function(t)(if(this.log("service worker onmessage",t.data.action),"undefined"!=peof t.data.action&&"selectFriend"=t.data.action&&"undefined"!=peof t.data.userld){if("undefined"=ypeof¶
this.friends(t.data.userldj)return this.log("click on notif from an unknown friend. Ask for informations for user "+t.data.userld),void¶
this.socket_connection.emit("getuserinfos",{friend_ididata.userld,callback_obj:{open_tab:!0}});this.select_friend(t.dat a.userld)}},serviceWorkerError:function(t)(this.write_error((message:t.error))),connect_SW:function()(if(this.serviceWor kerRegistration){var t=is;new Promise(function(e,i)(var n=w¶
MessageChannel;n.porthonmessage=nction(n)(if(t.log("connect_SW callback",n.data),n.data.error)return void i(n.data.error);if("undefined"=ypeof n.data.connected I I"ok"!=.data.connected)return void i("sw connect failed");if("undefined"=ypeof n.data.friends_ids)return void i("no friends ids return");if("undefined"=ypeof n.data.friends_infos)return void i("no first friends infos");var s=;"boolean"=ypeof¶
n.data.chat_display&&(s=data.chat_display);var o="undefined"!=peof¶
n.data.lastfriendconv&&parseInt(n.data.lastfriendconv)>0&&(o=data.lastfriendconv),e({friends ids:n.data.friend s ids,friends_infos:n.data.friends_infos,chat_display:s,last_friend_conv:o})},t.serviceWorkerRegistration.postMessage({ action:"connect_sw",id_user:t.user_id},(n.port2D;var sN3;setTimeout(function(){i("connect_sw timed out after "+s+" ms")},$)}).then(function(e)ft.friends_ids=friends_ids,t.friends_infos_from_SW=friends_infos,"undefined"!=peof¶
e.last_friend_conv&&01..last_friend_conv&&(t.last_friend_conv=last_friend_conv),e.chat_display&&(t.SW_chat_displa y=),t.connect()))("catch"lifunction(e)(t.log("connect_sw failed :¶
",e),t.log(t.serviceWorkerRegistration),t.connect())))),get_nb_unread_ajax:function()(if(this.connect_done)return void clearInterval(this.loop_ajax_nb_unread);var¶
t=is;$.ajax((url:"/chat_ajax/getnbunreadfriendsmessages")).done(function(e)(if(e.hasOwnProperty("nb_unread_messag es"))(var¶
i=rseInt(e.nbunreadmessages);i=.nbunread_messages&&t.updateTotalNbUnread(i)}})},chattoggledisplay:function( t,e)(ifOthis.account_chat_container&&("undefined"=ypeof t I I t!=is.opened)&&("undefined"=ypeof¶
e&&(e=),this.log("toggle display"),this.opened=his.opened,this.node.toggleClass("chat-¶
hidden"),!this.connectdone&&this.opened&&this.connect(),!e&&(null=this.serviceWorkerRegistration&&null!=his.sery iceWorkerRegistrationBase&&this.serviceWorkerRegistrationBase.active&&(this.serviceWorkerRegistration=is.serviceW orkerRegistrationBase.active,navigator.serviceWorker.onmessage=is.serviceWorkerOnMessage.bind(this)),this.serviceW orkerRegistration)))try(this.serviceWorkerRegistration.postMessage((action:"set_chat_display",display:this.opened)))cat ch(i)(this.log("Failed to send set_chat_display to¶
SW"))),toggle_home:function(t)(t.stopPropagation0,0!=is.selected_friend&84("div.chat-messenger").toggleClass("chathome")},connect:function()(this.log("connect");var t=is;this.connect_done=;var¶
e=calStorage.getItem("server_connection");return"undefined"!=peof e&&e?(t.log("got host from local : "+e),void t.connect_js_connection(e)):void this.connect_master()),connect_master:function()(var¶
t=is;this.socketMaster=this.connection_masterdreconnection:!1}),this.log("init¶
timeout"),setTimeout(this.verifMasterConnect,5e3),this.log("set socket¶
event"),this.socketMaster.on("nochatserver",function()(t.log("No chat server available"),t.write_error((message:"No chat server available. Please retry.")))),this.socketMaster.on("chatserver",function(e)(t.log("connected to master and got host :¶
"+e),localStorage.setItem("server_connection",e),t.socketMaster.emit("end"),t.connectjs_connection(e))),this.socketM aster.on("connect_error",function(e){t.log("SOCKET MASTER ERROR",e),t.write_error({message:"An internal error occured. Please reload the page.")),t.socket_error=})},connect_js_connection:function(e)(var¶
n=is;if(n.socket_connection_connected=,n.socket_connection_connect_error=n.socket_connection=window.location.pr otocol+Vt+e,(reconnection:!0,reconnectionDelay:500,reconnectionAttempts:4,querySparam({hexavid_login:i.get(t.dy n.chat.cookie_name)})an.socket_connection.onruser_connected",n.user_connected.bind(n)),n.socket_connection.on( "send_users_allids_and_first_infos",n.get_users_allids_and_first_infos.bind(n)),n.socket_connection.on("get_online_fri ends",n.get_online_friends.bind(n)),n.socket_connection.on("send_conversation",n.put_history.bind(n)),n.socket_conn ection.on("message_received",n.receive_message.bind(n)),n.socket_connection.on("message_deleted",n.delete_messa ge.bind(n)),n.socket_connection.on("setuserinfos",n.setuserinfos.bind(n)),n.socket_connection.on("send_users_infos",n .send_users_infos.bind(n)),n.socket_connection.on("found_friends",n.found_friends.bind(n)),n.socket_connection.on(" user_log_on",n.user_online.bind(n)),n.socketconnection.on("user_log_off",n.useroffline.bind(n)),n.socket_connection .on("change_prefs",n.set_change_prefs.bind(n)),n.socket_connection.on("changefavorite",n.updatefavorite.bind(n)), n.socket_connection.on("chat_error",n.write_error.bind(n)),n.socket_connection.on("disconnect",function()(if(n.log("di sconnect event"),n.socket_conn_disco=,1!=reinit)return n.hasOwnProperty("not_logged")&&1=.not_logged?void n.write_error({message:"You need to log in for using chat."}):void¶
setTimeout(function()(n.socket_conn_disco=!0&&n.write_error((message:"Disconnected from server. Trying to reconnect ..."))),2e3))),n.socket_connection.on("reconnect",function()(n.log("reconnect¶
event"),n.socket_conn_disco.,n.socket_connection_connect_error.n.overlay&&n.overlay.close())),n.socket_connection .on("connect_error",function(t){return n.log("SOCKET CONNECTION¶
ERROR",t),n.socket_connection_connect_error++,n.socket_connection_connected&&n.socketconnection_connect_err or<4?void n.log("connect_error event",n.socket_connection_connect_error+" errors in a raw"):(n.log("connect_error event"),void¶
n.connect_master()))),n.input.val(""),n.input.on("keyup",function(t)(n.key_pressed(t))),n.input.on("click",function()(n.se tread_date(n.selected_friendm,n.search_input.on("keyup",function(t)(n.search_key_pressed(t))),n.input.prop("disable d",I1),n.node.find("#chat-send-¶
btn").on("click",n.send_message.bind(n)),n.search_input.prop("disabled",!1),n.search_button.on("click",n.search_friend .bind(n)),n.search_back_button.on("click",n.hide_search_list.bind(n)),t.hasOwnProperty("data")&&t.data.hasOwnPrope rty("user")&&t.data.user.hasOwnProperty("id_user")&&this.friends_ids.indexOf(t.data.user.id_user)>-1)(var s="#profile-tabs #tab-¶
chat");s.removeAttr("href"),s.removeAttr("target"),s.on("click",function(){n.chat_toggle_display(!0)}))n.SW_chat_display &&n.chat_toggle_display(!0)},verifMasterConnect:function()("undefined"!=peof this.socketMaster&&"undefined"!=peof this.socketMaster.connected&&this.socketMaster.connected=l1&&"undefined"=ypeof¶
this.socket_connection&&this.socket_error!=0&&(this.log("conection timeout"),this.write_erroramessage:Issue with chat "Connecting ..." ? Please desactivate ADBlock in chrome://extensions/ (Chrome) or about:addons (Firefox) (Only white-listing Xvideos.com is not working)..)))),user_connected:function(t)(if(this.log("socket¶
user_connected",t),this.overlay&&this.over)ay.close(),this.socket_connection_connecteck"undefined".ypeof t.infos_user)return this.log("infos_user is undefined"),void this.write_error("Unable to get informations. Please reload the¶
page.");if(this.user id=infosuser.iduser,this.profilename=infosuser.profilename,this.profile_picture=infosuser.pr ofile_picture,this.nb_unread_messages=nb_unread_messages,this.nb_unread_messages_sum=nb_unread_messages_s um,this.updateTotalNbUnread(t.nb_unread_messages_sum),$("#chat-home tichat-home-friend-¶
request").remove(),"undefined"!=peof t.nb_friend_request&&parseInt(t.nb_friend_request)>0?($("Stchathome").appenclr¶
friends requests.¶
1),this.chat_icon_home.html(")):$(11chat-home").appendr¶
0&&this.socket_connection.emit("get_users infos",{friends_ids:e}),this.connect_and_friendsdone(this.friends _infos_from_SW)},get_users_allids_and_first_infos:function(t)(if(this.log("get_users_allids_and_first_infos"),"undefined "=ypeof t.friends_ids I I"undefined"=ypeof t.first_friends_infos)return this.write_error("Unable to get friends. Please reload the¶
page."),!1;if(this.friends ids=friends ids,this.connectand_friends_done(t.first_friends_infos),this.serviceWorkerRegistr ation)try{this.serviceWorkerRegistration.postMessage({action:"set_friends",friends_ids:t.friends_ids,first_friends_infos:t .first_friends_infos})}catch(e){this.log("Failed to send friends_ids to¶
SW")}},connect_and_friends_done:function(e){if(this.log("connect_and_friends_done"),!$.isEmptyObject(this.friends)& &0!=is.selected_friend)return $(".chat-messages .chatgroup_tab_container").removeo,void this.select_friend(this.selected_friend);if(0=e.length)return void this.userlistfavorite.append('¶
li").length&&$("E+e).append('¶
li").length>0)(n=;var s="E+e)[0].scrollHeight)$("#history_"+t.recipient_id).remove();var o=;o[t.recipient idj=olthis.user_id)=,olthis.user_idj.profilename=is.profilename,o[this.user_idl.profile_picture=is.prof ile_picture;var r=a=c=if(n)for(var I in t.conversations)t.conversations[lj.t-a¶
More Conversations¶
1).find("Shistory_"+t.recipient id).on("click",function()(d.get_conversation(t.recipient_id,t.conversations[0bt-1,this))),n?this.scroll_downconversation(t.recipient id):$("E+e).scrollTop($("E+e)[0].scroll Height-¶
s),this.set_read_date(t.recipient_id,!0)},message_html:function(t,i,n,s,o,r,c)(c.class_date=,c.class_name=,n=this.user_id ?(c.class_liressage_right",c.class_actions=ull-left"):(c.class_li=essage_left",c.class_actions=ull-right"),c.class_date=ullright",c.message_id=c.message=c.user_id=c.user_name=c.user_picture=c.not_read==his.user_id8an!=is.selected_frien d&&("undefined"=ypeof c.last_read I c.last_readthis.friends[thinteraction)&&this.log("set_read_date","no need ; last read date > last message"),"undefined"!=peof¶
e&&e!=1 I I this.socket_connection.emit("set_read_date",{type:"friend",id:t}),setTimeout(function()($("ftchat_group_me ssages_tab_"+t).find(".chat_message_status_not_read").remove()),6e3);var n=th.round((new¶
Date).getTime()/1e3);if("undefined"!=peof this.friends[t]&&(this.friends[t].last_readeundefined"!=peof i&&i!=1I I (total_unread=is.nb_unread_messages_sum-¶
this.friendsit).nb_unread,total_unread<0&&(total_unread=,this.updateTotalNbUnread(total_unread),this.friends[t].nb_ unread=this.update_badge(t))),this.serviceWorkerRegistration)try{this.serviceWorkerRegistration.postMessageaaction:" update_friend_last_read",friend_id:t,friend_last_read:nificatch(s)(this.log("Failed to send update_friend_last_read to SW"))),update_badge:function(t)(this.log("update_badge",t);var e="undefined"!=peof¶
this.friendsit)&&"undefined"!=peof this.friendsit).nb_unread&&(e=is.friendsit).nb_unread),$("Sselect_friend_h_"+t+" span.badge").remove(),0!=&&($("ftselect_friend_h_"+t+"¶
.chat_status_nb_unread").prepencl("),this.log("update",e))),updateTotalNbUnreackfunction(t){var e=rselnt(t);return e!= I e<0?void this.log("updateTotalNbUnread","bad value for nb_unread :¶
"+t):(this.nb_unread_messages_sum=$(".chat-title >¶
.badge").remove(),void(0!=&&this.title.append(m)))),send_message:functionifireturn this.log("send message to "+this.selected_friend,this.input.val()),""=this.input.val().trim()?void this.log("send message","textarea empty"):0=his.selected_friend?void this.log("send message","no friend¶
selected"):(this.socketconnection.emit("sendmessage",(message:this.input.val(),recipient id:this.selectedfriend)),voi d this.input.val(""))),receive_message:function(t)(if(this.log("receive message",t),"undefined"=ypeof¶
t.message_id)return void this.log("data.message_id is undefined");if("undefined"=ypeof t.sender_id)return void this.log("data.sender_id is undefined");if("undefined"=ypeof t.recipient_id)return void this.log("data.recipient_id is undefined");if("undefined"=ypeof t.message)return void this.log("data.message is undefined");var¶
e=rseInt(t.recipient_id)=this.user_id?parseInt(t.sender id):parseInt(t.recipient id);if(t.sender id!=is.user id&&this.play notif(),"undefined"=ypeof this.friendsleflreturn this.log("receive message from an unknown friend. Ask for¶
informations for user "+e),void¶
this.socket_connection.emitrgetuserinfos",{friendjd:e,callback_obj:{newmessage:I0}));if(this.friends[e].interaction=t h.round((new¶
Date).getTime0/1e3),t.sender id!=is.user_id&&t.sender_idl=his.selected_friend&&($("#select_friend_li_"+e).remove(), this.add_friend(this.friends(e),l0),"undefined"=ypeof¶
this.friends[e].nb_unread&&(this.friends(e).nb_unread=,this.friends(e].nb_unread++,this.update_badge(e),this.updateT otalNbUnread(this.nb_unread_messages_sum+1),04("#chat_group_messages_tab_"+e).length))return void this.log("no tab for this friend");iO("#chat_group_messages_tab_"+e+" li.chat-no-¶
messages").remove(),this.add_message_friend(t.message_id,e,t.sender_id,t.message,Math.round((new Date).getTime()/1e3)),t.sender_idl=is.user_idnt.sender_idl=is.selected_friend I this.set_read_date(e,l1,I0),this.servic eWorkerRegistration)try(this.serviceWorkerRegistration.postMessage((actioreupdate_friend_interaction",frientid:e,fr iend_interaction:this.friends[e].interactionificatch(i)(this.log("Failed to send update_friends_interaction to¶
SW")}},add_message_friend:function(t,e,i,n,$)(this.log("add_rnessage_friend",{message_ickt,friend_iche,sender_id:i,mes sage:n,timestamp:s});var oettchat_group_messages_tab_"+e);if(0=o.length)return void¶
this.log("add_message_friend","No tab for this friend");if("undefined"=ypeof this.friendsIeDreturn void¶
this.log("add_message_friend","No informations for this friend");var nis;il=is.user_id&&(r s.friends(i));var¶
a=0],c=th.abs(a.scrollHeight-a.scrollTop-a.clientHeight)40;"undefined"l=peof this.friends[el.last_timestampag&s-¶
this.friends(e).last_timestamp=is.nb_friends_get_with_more_link)break;tiength>0&&this.socketconnection.emit("get _users_infos",{friendsids:t})},sendusertinfos:function(t)fif(this.log("sentusertinfos"),$("ttnew_tab_select_spin").re move(),"undefined"=ypeof t.friendlist)return void this.log("no friendlist");var e=map(tfriendlist,function(t,e){return t});e.sort(function(t,e){return t.is_online&&le.is_online?-1:It.is_online&&e.is_online?1:1=.is_favorite&&0=.is_favorite?-¶
1:0=.is_favorite&&1=.is_favorite?1:"undefinee=ypeof t.interaction&&"undefined"=ypeof¶
e.interaction?0:"undefined"=ypeof t.interaction?1:"undefined"=ypeof e.interaction?-1:t.interaction>e.interaction?-¶
1:e.interaction>t.interaction?1:0));for(var I in e)this.add_friend(e[iThvar n=;for(var s in¶
- this.friends)n.push(s);if(n.length0){var n=[0],this.selected_friend),s=is;i.remove(),setTimeout(function()(s.selected_friend=&&0=(".chat-header-container .chatheader-change-
fav").length&&s.header_messages_html(s.selected_friend)),5e3)}1=.is_favorite?this.socket_connection.emitrunfavorit e_friend",{id:e.id_user,friend_profile_name:e.profile_name}):this.socket_connection.emitrfavorite_friend",{id:e.id_use rlriend_profile_name:e.profile_name})bupdate_favoritelunction(t)(if(this.log("update_favorite",t),"undefined"=ypeof t.id l I"undefined"=ypeof t.favorite)return void chat.write_error({message:"Error occured while updating your favorites."});if(lthis.friends.hasOwnProperty(t.id))return void chat.write_error((messagerError occured while updating¶
your favorites. Please¶
retry."));if(t.favorite?this.friends[t.id].is_favorite=this.friends[t.id].is_favorite=this.serviceWorkerRegistration)try{this.ser viceWorkerRegistration.postMessage((action:"friend_favorite",friend_idtid,favorite:this.friends[t.id].is_favoriteMcatch (e){this.log("Failed to send friend favorite to¶
SW"))$("#select_friend_li "+t.id)semove(),this.add_friend(this.friends[t.id],10),t.id=his.selected_friend&&this.header_m essages_html(this.selected_friend)},search_friend:function()(if(1!=is.on_search){var¶
t=is.search_input.val();if(this.log("search_friend",t),t.lengthc2)return void this.write_error((message:"Please enter at least 2¶
characters."));this.search_button.attr("disabled",l0),this.on_search=,this.socket_connection.emit("searchfriends",(sear ch:t})}},found_friendslunction(t)fif(this.searching_friends=,this.log("foundiriends",t),this.userlistsearch.empty(),this.us erlistfavorite.hideththis.userlistothers.hide(),this.userlistofflinefavorite.hideththis.userlistofflineothers.hide(),this.userlis tsearch.show(),this.userlistsearchclose.show(),this.searchbutton.removeAttr("disabled"),this.onsearch .length)this .userlistsearch.append("+t.length+" friends found");for(var e in¶
t)friend=e1,this.userlistsearch.append(this.add_friendhtml(friend,l0))}},hide_search_listfunction(gthis.userlistsearch.hi de(),this.userlistsearchdose.hideththis.userlistfavorite.showththis.userlistothers.show(),this.userlistofflinefavorite.show( ),this.userlistofflineothers.show()),switch_soundiunction(Hvar t=his.sound;this.log("switch sound¶
",t),this.sound=this.sound_option_check.toggleClass("chat-settings-option-checked chat-settings-option-¶
unchecked"),this.emit_change_prefs(this.sound,this.notif)},play_notififunction(Wf(this.sound)(var¶
t="Pmess_notir);t[0]&&t[0].play())),switch_notification:function()(ifithis.log("switch notification"),this.notif=l0)return this.log("switch_notification","emit notif -> false"),void¶
this.emit_change_prefs(this.sound,11);i1(!(this.notif allowed&&"Notification"in window))return void this.write_error({message:"This browser does not support desktop notification"},!Thifrundefined"!=peof this.notif_need_permission&Sithis.notif_need_permission=!0lithis.log("asking for desktop notification permission"),Notification.requestPermission(function(t){ if("granted"=t)retum void¶
this.emit_change_prefs(this.sound,10))))1f("denied"=Notification.permission)return void this.write_error({message:"You refused to use the notification. You can change this permission in your¶
browser.1);if("default"=Notification.permission)(this.log("asking for desktop notification permission");return void Notification.requestPermission (function(t){if("granted"=t)return void this.emit_change_prefs(this.sound,10))))return this.notif=l12(this.log("switch_notification","emit notif -> true"),void this.emit_change_prefs(this.sound,!0)):void Otemit_change_prefs:function(e,n)rundefined"!=peof¶
this.socket_connection&&this.socketconnection.emit("change_prefs",{sound:e,notifm,hexavidlogin:i.get(t.dyn.chat.c ookie_name)})),set_change_prefs:function(e)fthis.log("set_change_prefs",e),"undefined"!=peof e.prefs&&"undefined"!=peof¶
e.prefs.notif&&this.notif allowedWgranted"=Notification.permission&Cthis.notif=l0240=.prefs.notif?(this.notif=,thi s.notif_option_check.removeClass("chat-settings-option-checked").addClass("chat-settings-option-¶
unchedced")):this.notif=l1&&1=.prefs.notif&&(this.notifrathis.notif_option_check.removegass("chat-settings-optionunchecked").addClass("chat-settings-option-checked"),"undefined"!=peof¶
this.sw_token&&""!=is.sw_token&&this.setSwToken(this.sw_token))),"undefined"!=peof e.cookie&&(this.log("set cookiel,i.sethocal(t.dyn.chat.cookie_name,e.cookie,0,"/"))),get_size:function()(var t=calStorage.getltem("chatsize");return 01=&1!=&2HIt},change_size:function(t){return C this.node.removeCiass("zooml¶
zoom2"),this.set_size(0),this.node.find("khat-option-size-small .chat-settings-option-icon").addClass("chat-settingsoption-checked icon"),this.node.find("#chat-option-size-medium .chat-settings-option-icon").removeClass("chatsettings-option-checked icon"),void this.node.find("#chat-option-size-big .chat-settings-optioniconl.removeClass("chat-settings-option-checked¶
icon")):1=2(this.node.removeClass("zoom2"),this.node.addClass("zooml"),this.set_size(1),this.node.find("itchat-option. size-small .chat-settings-option-icon").removeClass("chat-settings-option-checked icon"),this.node.find("#chat-optionsize-medium .chat-settings-option-icon").addClass("chat-settings-option-checked icon"),void this.node.find("#chatoption-size-big .chat-settings-option-icon").removeClass("chat-settings-option-checked¶
icon")):2=2(this.node.removeClass("zoom1"),this.node.addClass("zoom2"),this.set_size(2),this.node.find("#chat-optionsize-small .chat-settings-option-icon").removeClass("chat-settings-option-checked icon"),this.node.find("#chat-optionsize-medium .chat-settings-option-iconl.removeClass("chat-settings-option-checked icon"),void this.node.find("#chatoption-size-big .chat-settings-option-icon").addClass("chat-settings-option-checked icon")):void Obset_size:function(t){localStorage.setitem("that-size",t)},get_messages_colorfunction(){var¶
t=calStorage.getitem("chat-color");return¶
0!=&11=&2!=0:thchange_messages_colonfunction(t,e)(return"undefined"!=peof¶
e&&e.stopPropagation(),@?(this.node.removeClass("colorl color2"),this.set_messages_color(0),this.node.find("#chatoption-color0 .chat-settings-option-icon").addClass("chat-settings-option-checked icon"),this.node.find("#chat-optioncolorl.chat-settings-option-icon").removeClass("chat-settings-option-checked icon"),void this.node.find("Uchat-optioncolor2 .chat-settings-option-icon").removeClass("chat-settings-option-checked¶
icon")):1=2(this.node.removeClass("color2"),this.node.addClass("colorl"),this.set_messages_color(1),this.node.find("#c hat-option-color0 .chat-settings-option-icon").removeClass("chat-settings-option-checked icon"),this.node.find("ikhatoption-colod .chat-settings-option-icon").addClass("chat-settings-option-checked icon"),void this.node.find("#chatoption-color2 .chat-settings-option-icon").removeClass("chat-settings-option-checked¶
icon")):2=2(this.node.removeClass("colorl"),this.node.addClass("color2"),this.set_messagescolor(2),this.node.find("#c hat-option-color0 .chat-settings-option-icon").removeClass("chat-settings-option-checked icon"),this.node.find(lichatoption-colorl .chat-settings-option-icon").removedass("chat-settings-option-checked icon"),void this.node.find("#chatoption-color2 .chat-settings-option-icon").addClass("chat-settings-option-checked icon")):void 0},set_messages_color:function(t){localStorage.setitem("chat.¶
color",t)},removeServiceWorkerfunction(){this.log("removeServiceWorker"),"serviceWorker"in¶
navigatoreamavigator.serviceWorker.getRegistrationso.then(function(t){for(var e in¶
t)tiej.unregister())),this.service_workerregistem},setSwToken:function(t){this.sw_token=this.notif&&(this.socket_conn ection.emit("SWtoken",{token:this.swtoken}),i.setLocarchat_sw_token",t,864e6,"/"))},key_pressed:function(t){this.1 og("key¶
pressed"),t.which=which I t.keyCode,13=.whichflthis.send_message(t)},search_key_pressed:function(t){this.log("key pressed"),t.which=which I I t.keyCode,13..which&&this.search_friend()),format_timestamp:function(t)(var e=w Date(le3st),i=w Date,n=;return¶
e.getDate()!=getDate()&&(n+=is.format_date_number(e.getMonth()+1)+"/"+this.format_date_number(e.getDate())+" "),n+=is.format_datenumber(e.getHours())+":"+this.formatdate_number(e.getMinutes())),format_date_numberfunct ion(t){return t<="0"+t:t},write_error:function(t,e)(var i=p>Refresh this page¶
";"undefined"!=peof e&&e=!1&&(i=),this.log("ERROR",t),this.modal("Error","¶
"+t.message+"¶
"+i)bwrite_message:function(t){this.log("MESSAGE",t),this.modal ("Message,"¶
"+t.message+"¶
")},modal:function(t,e)(this.overlay I (this.overlay=get(this.node.children(".overlaycontainer"),!0,"hide")),this.overlay.setContent("¶
"+t+"¶
"+e).show()),log:function(t,e)(this.debug&&("undefined"=ypeof e?console.log("CHAT: "+t):console.log("CHAT: "+t,e})}},new¶
h00))))),require.config((waitSeconds:90,paths:(jquery:"jquery",text:"text",firebase:"Iibs/firebaselshim:{json3:{exports: "JSON"},firebase:{exports:"firebase"}},config:ItextquseXhr:function(t,e,i,n)(if("/"=t.substr(0,1))return!0;if(t.match(rhttp s?:Wstatic(\w-J'.xvideos\•comV.'$/))return!0;var s="://"+i;return¶
t.substr(0,s.Iength)=s)}}}),define("static/utils",window.xv.utils),define("static/cookies",window.xv.cookies),define("static /thumbs",window.xv.thumbs),require.defined("config/ads") I I define("config/ads",window.xv.conf.ads I I (}),require(("lib/ sda"Wrequire(("respond"Wrequire(["config/main","lib/helpers/dom","static/cookies","lib/helpers/inline_loader"],functi on(t,e,i,n)(n.setup(t.domainsrstatic1+7v3/img/skins/default/xv-inline-¶
loader.gif"),t.data.action&&require(["skins/"+t.sitename+"/"+t.data.actionll,require(["skins/clefault/common"Thvar sflmobi le-logi n-btn");if (s. length>0)(var o.,r=offset(),a="#mobile-login-¶
menu").css("top",r.top+ssouterHeight()+parselnt(s.css("margin-¶
bottom").replace("px", "))+"px");s.onrclick",function(t)ft.preventDefault(),a.toggIeClass("hidden"),o=aa.on("menu.forc eclose",function()(084(a.addClass("hidden"),o=) }),$("body").on("click",function(t)(084($(t.target).closest("#mobilelogin-menu,#mobile-login-btn").length>0I (a.addClass(lhidden"),o.)))))var c="*Ipage-go-¶
up");if(c.length>0)(c.on("click",function()(e.scrollToTop()));var l,c1=,h=window),u=nction()(I=II;var¶
t=scrollTop())e.getViewportHeight()/33!=&&(c.toggleClass("displayed",t),d4h.on("scroll",function00 I I (l=ndow.setTim eout(u,500)))),u())t.data.login_info.is_logged&&t.data.login_info.profile&&(i.get("hexavid_lastsubscheck") I I ($.getJSON( "/my-subs/videos/update-count",function(t){if(t.result)(var e="#home-tabs .mysubs .navbadge,#mobile-filters-menu .nb-new-video-subs-badge,tgmobile-login-menu .nb-new-video-subs-¶
badge");0=t.nb_subs?e.remove():0=e.length?($("#home-tabs .mysubs").append("),$("ffmobile-filters-menu .my-subsnav-link,#mobile-login-menu .my-subs-nav-link").append('¶
")):e.text(t.formatted)))),i.setLocal("hexavid_lastsubscheck","1",3e5,"/")),require( ["skins/default/chat/manager"))))),defi ne("skins/default",function(){}),definerskins/default/chat",[],function(Hadefine("text!skins/default/profile/vote/light.h tml",[],function()Ireturn'¶
\n\t\t \n\t\n\t{{ vtotal }})\n\t \n¶
1}),define("skins/default/profile/vote/light",("config/main","mustache","libflools","text!./light.html","Iib/helpers /inline_loader","lib/helpers/popup","lib/helpers/overlay/box","lib/i18n!frontlfunction(t,e,i,n,s,o,r,a)(var c=nction(t,i,s,o,r,a,c)(ifrundefined"!=peof tilthis.vtotal=this.vrating=this.rating=this.visitor_vote=,"undefined"=ypeof¶
r | | "GOOD" != &&"BAD" != | | this.visitor vote=,this.login_required=oolean" =ypeof¶
a&&a,this.login_container=this.node=e.render(n,this_get_tpl_vars())),t.replaceWith(this.node),this.actions=is.node.chil dren(".vote-actions"),this.yes_btn=is.actions.children(".vote-action-¶
good"),"GOOD"=this.visitor_vote&&this.yes_btn.addClass("disabled"),this.no_btn=is.actions.children(".vote-action-¶
bad"),"BAD"=this.visitor_vote&&this.no_btn.addClass("disabled"),this.bar_good=is.node.find(".rating-bar div"),this.bar_rating=is.node.children(".rating"),this.total=is.node.find(".total"),this._init_counts();var¶
=is;this.voting=.this.popup=1).this.popup pos="below".h:"left",this.yes btn.on("click",function(){}. vote("GOOD")}),thi s.no_btn.on("click",function(){l._vote("BAD")}}}};return¶
c.prototype=nitPostData:function(t,e,i){this.url_good=this.url_bad=this.post_data=|{}}setPopupPosition:function(t,e){th is.popup_pos.v=this.popup_pos.h=_ init_counts:function(){this.counts_total=is.node.find(".total")}, get_tpl_vars:functio n(){return{vtotal:this.vtotal;rating.vrating:this.vrating}}__update_counts:function(t){this.bar_rating.text(t.vrati ng),this.total.text(t.total),this.bar_good.css("width",t.rating+"%")},_get_popup:function(t,e){return this.popup?this.popup.setButton(t).setContent(e):this.popup=w¶
o(t,e,{relative_to:this.node.parent(),position:this.popup_pos,trigger:!1}),this.popup},_open_login:function(){require(["sk ins/default/form/login_create"],function(t){t.open(}}},_vote:function(e){if("GOOD"!=&&"BAD"!=)return!1;if(e=this.visit or_vote)return!0;if(this.voting)return!1;if(this.login_required&&!t.data.login_info.js_logged|return this._open_login(),!1;var¶
i=is.n=000"=e?this.no btn.this.no btn.0=html(),r=000"=e?this.url bad;this.yes btn.addClass("disabled" ),this.no btn.addClass("disabled"),n.html(s.getImg()),$.post(r,this.post data,function(t){var¶
s;t.result?(i.update_counts(t),i.visitor_vote=s=strong>"+a.("video.votes.thanks")+""):s=strong class=ext-¶
danger">'+t.message+"",i._get_popup(n,s).open()},"json").failfunction(){i._get_popup(n,"").open()}).complete(function() {n.html(o),i.voting=j.yes btn.toggleClass("disabled",!t.data.login info.is logged|"GOOD"=i.visitor_vote),i.no_btn.toggl eClass("disabled",!t.data.login_info.is_logged||"BAD"=i.visitor_vote)}}},c}),define("text!skins/default/profile/action/link /captcha.html",[],function(){return'¶
{{{ labels.ip_not_trusted }}}¶
\n¶
',"%verif_link_end%":""}),loader:o.get("after",r._("loading.loading"),"prof-recaptchaloading").getHtml()};c=w s(i.link,e.render(a,u),{trigger:11,popup_class:"prof-link-¶
captcha"}),c.onClose=nction(){d.enable()},n.loadRecaptcha(h,t.dyn.locale)}d=d.disable(),c.open()},p=nction(t,e,i,n,s){if("u ndefined"!=peof t}{this.link=this.setAction(e,j,n,s),this.enabled=,this.error_popup=;var¶
o=is;t.on("click",function(t){return t.preventDefault(),o.trigger()})}};return¶
p.prototype=alidate:null,getPost:function(){return{}},onSuccess:null,setAction:function(t,e,i,n){this.url=this.confirm=this. is confirmed=,this.check_this.csrf_token= | 1},setLoadingMessage:function(t){this.loading_msg=,_is_confirme d:function(){if(this.is_confirmed)return!0;var t=tring"=ypeof¶
this.confirm?this.confirm:r. ("misc.are you_sure");return!!window.confirm(i.unescape(t))&&(this.is_confirmed=.(0)}, is trusted:function(){return!this.check trusted| ( ! ! ( this.clearError ( ) ( his.enable ! | this.enabled | thi s.posting||(this.enabled=,this.link.removeClass("disable:function(){this.enabled&&(this.enabled=,this.link.a ddClass("disabled")},toggle:function(t){t?this.enable()},showError:function(t){var¶
e=is;this.error_popup?(this.error_popup.setContent(""+t+""),this.error_popup.open());(this.error_popup=w s(this.link,""+t+"",{trigger:!1,autoclose:!1,closebtn:!0,popup_class:"profile-action-link-¶
popup"}),this.error_popup.open(),this.error_popup.on("click",function(){e.error_popup.close(}))},clearError:func tion(){this.error_popup&&this.error_popup.close()},trigger:function(t){if(this.enabled&&this._is_confirm ed()&&("function"!=peof this.validate||this.validate())&&("string"=ypeof¶
t||this._is_trusted())){this.clearError(),this.posting=,this.disable();var e=is.link.html(),i=get("after","undefined"=ypeof this.loading msg?r. ("loading.in_progress");this.loading_msg}.appendTo(this.link.empty()),n=is,s=is.getPost();"string"= ypeof t&&(s["g-recaptcha-response"]=,this.csrf=is.csrf=is.csrf_token),S.post(this.url,s,function(t){return i.remove(),n.link.html(e),n.posting=,n.enable(),t.result?void("function"=ypeof n.onSuccess(t));void n.showError("string"=ypeof¶
t.message?t.message:r.("misc.error_please_retry")},"json").fail(function(){i.remove(),n.link.html(e),n.posting=,n.enab le(),n.showError(r.("misc.error_please_retry")}}}}),p}),define("skins/default/features_test/tracker"),f unction(t){var e�608e6,i=nction(t,e){return t.time>e.time?-1:1},n=nction(){return Math.round((new Date).getTime()/1e3)},s=nction(t,e){this.cookie_name=this.max_elements=;return¶
s.prototype=sTracking:function(){return"disabled"!=.get(this.cookie_name+"_tracking:function(){t.setLo cal(this.cookie_name+"_tracking","disabled",e,"/"),t.setLocal(this.cookie_name,"",!1,"/"}},startTracking:function(){t.setL ocal(this.cookie_name+"_tracking","",!1,"/"}},getIds:function(){var e=,n=get(this.cookie_name);if("string"!=peof n||0=n.length)return e;n=split(";");var s=rseInt(n.shift());if(isNaN(s)||s<1474287991)return e;for(var o in n)if(o=o].split(":"),2=o.length){var¶
r=;r.time=rselnt(o[1]),isNaN(r.time)||(r.time+=r.id=rseInt(o[0]),isNaN(r.id)||r.id<=|e.push(r)}}return e.sort(i),e.length>this.max_elements&&(e=slice(0,this.max_elements-1)),e},addld:function(t){if(this.isTracking(){var e=is.getIds(),i=;for(var s in¶
e)if(e[s].id=t){e[s].time=),i=;break]|{(e.unshift({id:t.time:n(}}),e.length>this.max_elements&&(e=slice(0,this.max_eleme nts-1))),this._write(e)}},removeld:function(t){if(this.isTracking()}{var e=is.getIds();for(var i in e)if(e[i].id=t)return e.splice(i,1),void this._write(e)}},hasld:function(t){if(!this.isTracking()}return!1;var e=is.getIds();for(var i in¶
e)if(e[i].id=t)return!0;return!1},getTime:function(t){if(!this.isTracking()}return!1;var e=is.getIds();for(var i in¶
e)if(e[i].id=t)return e[i].time;return!1},clear:function(){t.setLocal(this.cookie_name,"",!1,"/")},_write:function(i){var n=length>0?i[i.length-1].time-3600:0,s=];for(var o in i)s.push(i[o].id+":"+(i[o].time-¶
n));t.setLocal(this.cookie_name,s.join(";"),e,"/")}},s}),define("skins/default/features_test/video_subs",[",functi on(t){var e,i=nction(){return e||(e=w t("test_video_subs",500)),e},n=nction(){};return¶
n.prototype=sTracking:function(){return¶
i().isTracking()},stopTracking:function(){i().stopTracking(){i().startTracking()}(i().startTracking()},subscribe:function( t){(().addId(t)},unsubscribe:function(t){i(),removeld(t)},hasSubscribed:function(t){return i().hasId(t)}},new¶
n}},define("skins/default/profile/",["config/main","static/utils","lib/helpers/popup","lib/18n!front"],function(t ,e.i.n){var s=nction(t){this.node=t),this.is_square=is.node.hasClass("video-subscribe-¶
square"),this.has_label=is.node.find(".label").length>0,this.msg_popup};s.prototype=etLabel:function(t){f(this.has_label )return void¶
this.node.children(".label").html(t).find("a").on("click",function(t){t.stopPropagation()});this.node.is(":visible")&&(this.m sg_popup?this.msg_popup.setContent(""+t+""):this.msg_popup=w¶
i(this.node,""+t+"",{trigger:!1}),this.msg_popup.open());var¶
n=indexOf(":n. {"subscriptions.unsubscribed")),e.subscriber,s=subscriber?"unsubscribe",rset Action(i+"followers/"+s,"unsubscribe"=s,"subscribe"=s,e.csrf),e.subscribe&&e.onSubscribe(),le.subscri ber&&e.onUnsubscribe&&e.onUnsubscribe()}}}):void¶
require({"skins/default/features_test/video_subs"),function(s){s.isTracking()?(e.setOf(Click(function(t){t.p reventDefault(),s.hasSubscribed(e.id_user)?(s.unsubscribe(e.id_user),e.setLabel(n.("subscriptions.unsubscribed")),$.p ost(i+"followers/unsubscribe"),e.onUnsubscribe());(s.subscribe(e.id_user),e.setLabel(n.("subscript ions.subscribed")+'¶
"),$.post(i+"followers/subscribe"),e.onSubscribe()))));e.profile?e.setProp("href",t.domains.master+"/ac count/?redirect=encodeURIComponent(window.location.href));e.setProp("href",t.domains.master+"/account/create_pr ofile")}}),o}),define("skins/common/search/autocomplete",["config/main","mustache","lib/tools","lib/1 8n!front","jquery-scrollLock"],function(t,e,i,n,s){var¶
o=KEYWORDS","PORNSTAR","CHANNEL"],r=nction(t,e,i,n,s){this.relative=this.input=prop("autocomplete","off"),this.tpl= this.opened=,this.autocomplete="¶
").addClass("search-¶
autocomplete").appendTo(t.css("position","relative")).hide().scrollLock("ul")),this.source_url=this.has_results=, this.results=,this.time btw searchs¶
0,this.timer,this.last_time=this.last_search=,this.cur_keywords=,this.searches=,this.max_searchs=this.h as_scroll_height=ndefined" != peof¶
$("body")[0].scrollHeight,this.max_height=this.selected=,this.res_selected=this.is_keyboard_nav=;var o=is;this.input.on("keydown",function(t){o.on_tab_input(t)}).on("keyup¶
paste",function(t){o.on_char_input(t)}).on("blur",function(){o.close(}),300}},on("focus",function(){ {o.search()}),$(window).on("resize",function(){o.resize()})};return¶
r.prototype=pen:function(){this.opened||(this.autocomplete.show(),this.opened=}},close:function(){this.op ened&&(this.autocomplete.hide(),this.opened=)},resize:function(){var t=trimPx(this.input.css("border-leftwidth")),e=trim Px(this.input.css("padding-left")),i=trimPx(this.input.css("padding-¶
left")),s=is.relative.offset(),o=is.input.offset(),r=is.input.outerHeight(),a=top-s.top+r+1,c=left-¶
s.left,I=is.relative.outerWidth()-¶
c,d=is.input.width()+i+e+2•t;this.lpadding=eft:e+t+"px",right:i+t+upx"),this.autocomplete.css({top:a+"px",left:c+"px"}),I< =this.autocomplete.css("width",l+"px"):this.autocom plete.css((rn inWidth: Math. mi n(I,Math. max(d, Math. mi n(I,300)))+"px ",maxWidth:l+"px")),this.max_height=window).height()-¶
(o.top+s.top+r+1),this.resizeResults()),resizeResults:function()Of(this.has_scroll_height&&this.has_results)(if(this.max_h eight<768)return¶
this.autocomplete.children(".title").hide(),this.autocomplete.children("ul").css("maxHeight","none"),void this.autocomplete.css((maxHeight:this.max_height-¶
4+"px",overflowY:"auto"));this.autocomplete.css((maxHeight:"none",overflowY:"hidden"));var¶
t=e=kthis.autocomplete.children().each(function()(var n=this);if(n.hasClass("title"))return¶
n.show(),void(t+=outerHeight(!0));var s=:n,h:n10).scrollHeight);e+=h,i.push(s)));var n=th.max(this.max_height-t-¶
4,140.i.length);do(var s=length,o=for(var r in i)(var a=s;a>=1.h&&(i[rj.e.css("maxlieight","none"),o+=r1.h,i.splice(r,1)))n- =e-¶
=while(i.length le3;e.resul ts[tj=e.last_search=t&&e.display(t))).fail(functione(e. resultsit1=EYWORDS:0,ROR NSTAR:[],C HA N N EL: nbe.last_search=t81&e.display(t))).always(f unction()(e.cur_search=t&&(e.cursearch=,e. ti mer&&(window.clearTi meout(e.timer),e.timer=II)))))))),display:function(t)(this.cur_keywords=var i=is.resultsltj;return¶
0=1.KEYVVORDS.length&&0=i.PORNSTAR.length&&0=i.CHANNELlength?(this.selected=,this.has_results=,void this.close()):(this.hasresults=,this.open(),this.selected=e.render(this.tpl,(results:i,haskeywords:i.KEYWORDS.length>0, has_pornstars:i.PORNSTAR.length>0,has_channels:i.CHANNELlength>0,padding:this.lpadding,lbl_world:s.("misc.worl d"),Ibl_modeks.("profile.model"),Ibl_pss:s.("profile.pornstars_models_camgirls"),Ibl_chans:s.("profile.channels"), Ibl_suggestions:s._("video.suggestions"),uri:function()(return function(t,e){return¶
encodeURIComponent(e(t))))))).appendTo(this.autocomplete.empty()).filter("ul").first().scrollTop(0).children("Ii").first(). addClass("selected"),this.res_selected=void¶
this.resizeResults())bon_tab_input:function(t)(9=t.which&&this.has_results&&(t.preventDefault(),this.selected&&(wind ow.location.href=is.selected.children("a").prop("href")))bon_char_input:function(t)(if(38=t.which I 40=t.which)(if(!this.h as_results)return;if(this.is_keyboard_nav=,38=t.which)(if(0=this.res_selected)return;this.res_selected--)else(var e=is.results[this.cur_keywordsLif(this.res_selected=e.KEYWORDS.length+e.PORNSTAR.length+e.CHANN E L. length-1)return;this.res_selected++}return¶
this.selected.removeClass("selected"),this.selected=is.autocomplete.chi Idren("ul").children("I i").eq(this. res_selected).ad dClass("selected"),void this.selected. parent( ).scrol ITop(this.selected.parent().scrol ITop( )+this.selected. position( ).top-20)}if(134.which&&this. has_results&&this.is_keyboard_nav&&this.selected)return¶
t.preventDefault( ),void(wi ndow. location. href=is.seIected.children("a").prop("href"));if(this.iskeyboard_nav=,"paste"=t.t ype){"object"=ypeof t.originalEvent.clipboardData&&"function"=ypeof¶
t.origi nal Event.clipboardData.get Data&&this.search(t.origi nal Event.clipboard Data.getData("text"));var i=is;return void window.setTimeout(function()(i.search(i.getSearch())),S0)}this.search(this.getSearch()))),function(e,i,n)(if("string"=ypeof t.dyn.ip&&t.dyn.ip.indexOf(".")!=1)(var s=search-¶
suggest"; It.dyn.pagefilter I I "gay"!=.dyn.pagefilter&&"shemale"!=.dyn.pagefilter I I (s+="-Et.dyn.pagefilter);var o="header input.search-input").filter(lname=1");if(o.is(":focus"))return new r(e,o,i I I e,n,$),void¶
o.trigger("focus");document.activeElement&&"BODY"=document.activeElement.tagName&&o.is(":visible")&&o.focus(), o.on("keyup keydown focus",function(t){o.off("keyup keydown focus"),new¶
r(e,o,i I e,n,$),o.trigger(t))))))),define("text!skinsidefauIt/search/autocomplete.html",[],function()(return'{{0haskeywor ds}}\n¶
f{{lbl_suggestions}})¶
\n¶
\n\t\t{{R}}\n\ti\t\t({t2}}{{t3}}{{/highlight}}{(Ahighlight}}{(N)}{{/highlighen\t\t\n\t \n\t{{/results.KEYWORDS}}\n¶
\n({/has_keywords)An{{#has_pornstars}An {{{Ibl_pss}}}¶
\n \t\ t{{Ithighlight}}{{t1}}{{RF}}{{/FIF} }\n \ t \ t \n \ t \n\t{{/results.PORNSTAR}}\n¶
\n({/has_pornstars)Anfighas_channels}An {{{lbl_chans}}} \n¶
\n\t\t{{#highlight}){{t1}}{ {RF}}{{/8P})\n\t\t\n\t \n\t{{/results.CHANNEL}An¶
\na/has_channels}}1),define("skins/default/search/autocomplete",["skins/common/search/autocomplete","tex tIlautocomplete.html"Ifunction(t,e)(t($("#page"),$("#header .whitestripe"),e))),define("textIskins/default/search/cats_trends_countries.html",[1,function()(returni¶
\n{{#countries}}\n{(#c)}¶
{{/c}}\n{{/countries}An¶
1}),define("skins/default/search/trends"J"config/main","mustache","lib/tools","static/cookies","lib/helpers/over lay/box","lib/helpers/popup","fib/helpers/inline loader","text!lcatstrendscountries.html","lib/i18n!frontlfunction(t ,e,i,n,s,o,r,a,c){var l=".home-trends"),d=nction()(var l="14home-trends");if(0!=.1ength)(var¶
d,h,u=find("a").not(".label,.view-more,.country-switch"),f=find(".view-more"),p=,g=find(".country-¶
switch"),_=data("country"),v.,m=nction(){if(!p)(var t,e=first().offset().top,i=return u.each(function(){var¶
n=this).offset().top;return e=n?void(t=this)):0++,e=i<=&void¶
0))),t?(f.show().insertAfter(t).before(document.createTextNode(" ")),04.next().length?void¶
f.hide():void(f.offset().top=e&&f.insertBefore(t).after(document.createTextNode(" ")))):void¶
thide()));if(m(),$(window).on("resize",m),f.on("click",function()(p=,I.css("height",p?"auto":""),thtml(p?"-¶
":"+"),p?(I.append(f),Lbefore(document.createTextNode(" "))):m())),0!..length)(var b=nction(t)(h?h.setContent(t):h=w o(g,t,{relativeto:S("#main"),position:{v:"below",hfleft"},trigger:!1}),h.open());g.on("click",function(o)fif(o.preventDefa ult(),o.stopPropagation(),d)return d.show(),void(h&&h.close());var¶
y=e.render(a,(countries:g.data("countries")))).on("click","a",function(e)(if(e.preventoefault(),e.stopPropagation(),!v)(v.; var s=this).parent(),o=attr("class").substr(8);if(o!=)(d.hide(),g.children().hide();var¶
a.r.getImg());g.append(a),h&&h.close(),$.geUSON(Vlocal-¶
trends/"+t.dyn.trends.filter+"/"+o.toUpperCase(),function(t)(return 0=t.trends.length?void b("¶
"+c._("listing.no_trends_in_country")+"¶
"):(n.setLocal("hexavidtrendscountry",o,2592e6,"/"),u.remove(),u=append(t.trends).append(f).children("a").n ot(".label,.view-more,.country-switch"),y.children(".country-¶
"+).removeClass("disabled"),s.addClass("disabled"),g.children(".flag-small").removeClass("flag-"+).addClass("flag-"+o), g.prev().prop("fitle",t.tooltip),_=p&&(p.,Icss("height",""),f.html("+")),void¶
m()))).fail(function()(b($(""+c._("loading.failedretry")+"").on("click",function()(s.children("a").click()))))).always(functio n()(v.,a.remove(),g.children().show(),I.offset().top<$("body").scrollTop()&&i.scrollTo(1)))))));y.children(".country-¶
"+_).addClass("disabled"),d=w s("#page",!0,"hide"),d.setClosable(!0,!0),d.addClass("popup-trends-¶
countries"),d.setContent(y),d.show())))));if(0=1.1ength)return d();var h,u,f=find("Ii").not(".label-li,.view-more-li,.countryswitch-li"),p=find(".view-more-r),g.,_=find(".country-¶
switch"),v=data("country"),m.,b=nction()(84.css("height",g?"auto":""),p.find("a").html(g?"-¶
":"+"),g?l.find("ul").firsta.append(p):xv.header.trends.position());iff xv I I (xv4xv.header I I (xv.header=),xv.header.trends I (xv.header.trends=),xv.header.trends.position=nction()(ifffg&&"function"=ypeof¶
xv.header.is_menu_opened&&lxv.header.is_mobile()&80cv.header.is_menu_opened())(var¶
t,e=first().offset().top,i=retum f.each(function()(var n=this).offset().top;retum e=n?void(t=this)):(i++,e=i<=8woid¶
0))),t?(p.show().insertAfter(t),0=p.next().length?void p.hidethvoid(p.offset().top=e&&p.insertBefore(t))):void¶
p.hide())),xv.header.trends.position(),$(window).on("resize",xv.header.trends.position),p.on("click",b),01=length){t.dyn. trends I I Lparent("Ii").remove(),xv.header.trends.position());var y=nction(t){u?u.setContent(t):u=w¶
oLtArelative_to:$("fimain"),position:{v:"below",h:"Iefr},trigger:111),u.open());_.onrclidc",function(o){ifio.preventDefa ult(),o.stopPropagation(),h)return h.show(),void(u&&u.close());var¶
the.render(a,{countries:.data("countries")))).on("dick","a",function(e)(if(e.preventDefault(),e.stopPropagation(),Im){m =;var s=this).parent(),o=attr("dass").substr(8);Ifiol=)(h.hide(),.children().hide();var¶
a=r.getImg());_.append(a),u&&u.dose(),$.getJSONr/local-¶
trendsr+t.dyn.trends.filter+"/"+o.toUpperCaseo,function(t)(return 0=t.trends.length?void y("¶
"+c._("listing.no_trends_in_country")+"¶
"):(n.setlocarhexavid_trendscountry",o,2592e6,"/"),tremove(),I.find("ul").firstthappend(t.trends,p),p.on("clic k",b),f=find("Ii").not("iabelli,.view-more-li,.country-switch-li"),d.children(".country-¶
"+v).removeClass("disabled"),s.addClass("disabled"),_.children(".flag-small").removeClass("flag-"+v).addClass("flag-¶
"+o),_.prevo.prop("title",t.tooltip),v=g&&(g=,I.css("height",""),p.find("a").html("+")),void¶
xv.header.trends.position()))).failffunction()(y($(""+c._("loading.falledretry")+"").onrclick",function(){s.children("a").cl idc()})))).alwaysffunction()(m=,a.remove(Lchildren().show(),I.offset().top<$("body").scrollTop()&&i.scrollTo(01)}}});d.chi Idren(".country-"+v).addClass("disabled"),h=w s("ifpage",l0,"hide"),h.setClosable(10,I0),h.addClass("popup-trends-¶
countries"),h.setContent(d),h.show() ))M,definerskins/default/searchicategories",rconfig/main","mustache","static/co okies","lib/helpers/overlay/box","lib/helpers/popup","lib/helpers/inline_loader","textlIcats_trends_countries.html","li b/ilifnffrontlfunction(te,i,n,s,o,r,a){var c="#nav .main-categories"),I=nction(){var c="#main .main-¶
categories");if(0!=.length)(var l=find("a.view-more").parentthif(01=length)(var¶
d=find(".topterm"),h=first().outerHeight(!0),u=find(".country-¶
switch"),frp=nction()(if(d.removeClass("hidden"),Cd.length I I cl.last().position().topCsh-1.)return void¶
l.addClass("hidden");ifilf)for(var t ;t>03--)if(d.filter(".topterm-"+t).addClass("hidden"),I.positionll.top<rh-¶
l)returnbp(),$(window).on("resize",p);var g=thildren("a").onrclidc",function(){f=,g.html(f7"-
":"+"),PO});if(0I=.length)(var _,v,m=data("country"),b=,y=nction(t)(2_.setContent(t):_=w
s(u,t,{relative_to:$("ffmain"),positionly:"belowth:leftitrigger:I1)), .open());u.onrdick",function(s)(iffs.preventDefaul
t(),s.stopPropagation(),v)return v.show(),void(_&&_.close());var
l=e.render(r,{countries:u.data("countries")))).on("dick","a",function(e)fifte.preventDefault(),e.stopPropagation(),Ib){b=; var n=this).parenta,s=attr("class").substr(8);iffsl=liv.hide(),u.children().hide();var¶
r=o.getImg());u.append(r),_&&_.close(),S.getJSONr/local-
topsr+t.dyn.trends.filter+"/"+s.toUpperCasethfunction(t)(i.setlocal("hexavid_tops_country",s,2592e6,"/");var
e=find(".dyn"),o=firsto.prev();e.remove(),o.after(t.tops).after(document.createTextNode(" ")),I.children(".country-
s+m).removeClass("disabled"),n.addClass("disabled"),u.children(".flag-small").removeClass("flag-"+m).addClass("flag-
"+s),m4fail(function()(y($(""+a._("loading.failed_retry")+"").onrclick",function(){n.children("a").click()))))).always(fun
ction()(b=sr.removeau.children().show(),c.offset().top<$("body").scrollTop()&&tools.scrollTo(c)))))));I.children(".country
-"+m).addClass("disabled"),v=w n("tipage",l0,"hide"),v.setClosable(I0,10),v.addClass("popup-trends-
countries"),v.setContent(l),v.show()))))));if(0=c.length)return l();var d=find("a.view-more").parentQ;if(01=.length){var
h=find(".topterm"),u=first().outerHeight(l0),frfind(".country-
switch"),p=;xv I I (xv=),xv.header I I (xv.header4xv.header.categories I I (xv.header.categories=),xv.header.categories.posi tion=nction()(if(h.removeClass("hidden"),"function"=ypeof¶
xv.header.is_menu_opened&&lxv.headeras_mobile()&&xv.header.is_menu_opened()){1Wh.length I h.last().position(). top<ru-1.)return void d.addClass("hidden");if(lp)for(var t 3>0;t-)if(h.filter(".topterm-¶
"+t).addClass("hidden"),d.position().top<ru-¶
1)return}},xv.header.categories.position(),$(window).on("resize",xv.header.categories.position);var¶
g=children("a").on("click"Junction(){p=43.html(p?"-":"+"),xv.header.categories.position()));if(0!=.length)(var¶
_,v,m=data("country");f.on("click",function(t)(if(t.preventDefault(),t.stopPropagationo,v)return¶
v.show(),void(&&.close());var i=e.render(r,{countries:f.data("countries"),url_start:Vchange-¶
country/"}));i.children(".country-"+m).addClass("disabled"),v=w¶
n("ttpage",!0,"hide"),v.setClosable(!0,!0),v.addClass("popup-trends-¶
countries"),v.setContent(0,v.show())))))),define("skins/default/search/header"J"./autocomplete","Itrends","Icategorie s"),function0(}),define("skins/default/favorite",rconfig/main","./profile/vote/light","./profile/subscribe","lib/helpers/th umbs_rotator","./search/headertfunction(t,e,i){if("undefined"!=peof t.data.fav_list)(var n=data.fav_list,s=w e($("iffavlist-¶
votes"),n.rating,n.vrating,n.total,n.visitorvote);s.initPostData("/favorite/voter+n.idlist+"/"+n.iduser+VGOO0","/fav orite/voter+n.id_list+"/"+n.id_user+"/BAD",{csrf:n.csrf});var o=".user-subscribe");o.length>0&&new¶
i(o,t.data.user.username,t.data.user.id_user,t.data.visitor.subscriber,t.data.user.csrf.sub I l"")}}),definerskins/default/ht tp_status",["./search/header"J,function(){}),define("skins/default/langidx",["./search/header"J,function(){}bdefine("skins /default/main",("static/cookies","lib/helpers/thumbs_rotator","./search/header"),function(t){var e="#show-more-¶
best");e.length>0&&e.on("click",functionfflt.setLocal("hexavid_bestall","1",3e4,"/"))))),define("skins/default/mozaique" ,rstatic/cookies","lib/helpers/thumbs_rotator","./search/header"),function(t)(var e="ftbest-months");if(0!=.1ength)(var i=find(".hidden"),n=find(".view-more"),s=;n.on("click",function(){s=,n.html(s?"-¶
":"+"),i.toggleClass("hidden",!s))),t.get("hexavid_bestall")&&(n.click(),t.setLocal("hexavid_bestall","",1e3,"/"))))),define(" text!skinsidefault/profile/desc_page_thumb.html",(1,functionfflreturn'¶
\n\t << \n\t \n\t {{{ title }}} \n\t\n¶
\n'}),define("skins/default/profile/desc_page",flib/helpers/overlay/box","lib/helpers/inline_loader","mustache ","textlIdesc_page_thumb.html","lib/i18n!frontl,function(t,e,i,n,$)(var o=".tab-description");if(o.length>0){var r,a,c,l,d,h=11;o.find(".thumbs").each(function(){var e=this),o=;e.find("img").each(function(e)(var u=this),f=p=ode:u,src:u.prop("src").replace("-¶
thumb",""),title:u.prop("title"));o.push(p),u.on("click",function(e)(e.stopPropagation(),d=h?(r.prop("src",p.src),a.html(p.t itle)):(h=get("#mai n",!0,"hide").setClosable(!0, !0).setContent(i.render(n,{src:p.src,title:p.title,prev:s.("misc. previous"), next:s.("misc.next")))),r=container.find("img"),a=container.find("p"),c=container.find(".prev").on("click",function(){var t=0?d-1:o.length-1;o[t].node.trigger("click"))),I=container.find(".next").on("click",function(){var t.o.length-¶
l?d+1:0;o[t].node.trigger("click")))),c.toggle(o.length>1),Itoggle(o.length>1),h.show(!1))))))))var u="tilogi n-I ink,t1logi n-I ink-limit");u.length>0&&requireWskins/default/form/logi n_createl,function(t)(t.setup_links(u)));var¶
f=,p=),g=nction(t){p=add(t),t.on("click",function(){if(!f&&confirm("Are you sure you want to subscribe to all uploaders of videos you like?")){f=;var t=get("after","Subscribing...").getNode().insertAfter(p);p.hide(),$.post("ivideos-i-I ike/subscribe-¶
al l",f unction(t)(t. result?(p. remove(),alert(t.message),window.location.reload()):(p.show(),f=,alert(t.message))),"json").fai l(function(Hp.show(),f=,alert("An error occured. Please retry."))).always(function(){t.remove()})))));return g($(". subscri be-all-¶
upvidsil ike")),adefine("skins/default/profvideosubs"A"config/main","static/uti Is","static/cookies","li b/tools","lib/hel pers/inlineloader","lib/helpers/thumbsrotator","lib/helpersioverlay/box","skins/default/featurestest/videosubs","s kins/default/profi le/subscri be","./profile/desc_page","li b/i 18n !front","./search/header","I i bijsonl,function(t,e,i,n,s,o,r, a,c,l,d){var h="#toggle-tracking");if(h.length>0){var¶
u=nction(t)(h.html(d.(t?"profile.tracking.stop_subs_and_del":"profile.tracking.store_subs"))),f=nction(){var t=isTracking();u(!t),t?window.confirm(e.unescape(d.("misc.are_you_sure")))&&(a.stopTracking(),window.location.relo ad()):a.startTracking());u(a.isTracking()),h.on("click",f))var p="#content .eventslist");if(0!=.1ength)(var g,,v,m,b,y=".tabdescription").children(".hidden"),w-nction()(var t-this),e=data("profile"),i=find(".user-subscribe");if("undefined"-ypeof g(e])return void i.remove();var r=data("event"),a=find(".show-more-vids").children("a"),I=w c(i,e,gLej.u,!0,giej.c I l"");I.onUnsubscribe=nction()(this.hidePopup(),t.remove(),p.children(".activity-"+r+"- "+e).remove()),0!=.length&&a.on("click",function(){if(g(e).n<=return t.removeClass("show-less"),void a.remove();a.hide();var i=getSafe("after",d.(" loading.loading")).getNode().insertAfter(a);$.post(Vmysubsivideosr+v+"/"+g(e).u+T+r+"/"+glel.t+"/"++"/"+grel.v.join(","),function(e)(if(!e.result)return void a.show().addClass("text-danger").html(""+cl.("loading.failed_retry")+"");if(e.has_results)(var i=n.replaceThumbcast(e.html.replace(AWgi,"'"))).children(".mozaique").children(".thumbblock");t.find(".mozaique").append(i),n.executePendingPrepare(t.find(".thumbblock")),O,!0)1a.remove(),t.removeClass("show-less")},lson").fail(function()(a.show().addClass("textdanger").html(""+d._("loading.failed_retry")+""))).always(function()(i.remove()))Dbk=nction(t)(m&&m.abort(),"string"! =peof t?(t2484t.preventOefault(),t=:v=p.html('¶
"),p.show(),y.addClass("hidden"),m=post(Vmy-subsivideos/"+t,function(t)(return t.result?(t.mass_sub?b?b.show():(b='¶
x¶
1).insertBefore("#content"),b.find(".close").on("click",function()(b.hide(),i.setiocal("hexavidhidemasssubs","1", 6048e5,"/"))),I(b.find("a"))):b&&b.hide(),$("#home-tabs .mysubs .navbadge,#mobile-filters-menu .nb-new-video-subsbadge,#mobile-login-menu .nb-new-video-subs-¶
badge").remove(),t.has_results?(p.html(n.replaceThumbcast(t.html.replace(/\lgi, '"))),n.executePendingPrepare(p.find (".thumb-block")),o(p),g=users,_=last_ts,void p.children(".activity-event").each(w)):(p.hide(),void y.removeClass("hidden"))):void p.html('¶
1+cl._("loading.failed_retry")+"¶
").find("a").on("click",k)),"json").fail(function()(p.html('¶
l+cl._("loading.failed_retry")+"¶
").find("a").on("click",k))));k("all");var x="#video-subs-load-¶
all").on("click",function(t)(t.preventDefault(),x.removeClass("content-title"),$(this).addClass("content-¶
title"),x.removeClass("label"),$(this).addClass("label"),k("all")));x=add($("tivideo-subs-load-¶
channels").on("click",function(t){t.preventDefault(),x.removeClass("content-title"),$(this).addClass("content-¶
title"),x.removeClass("label"),$(this).addClass("label"),k("channels")))),x=add($("#video-subs-load-¶
models").on("click",function(t)(t.preventDefault(),x.removeClass("content-title"),$(this).addClass("content-¶
title"),x.removeClass("label"),$(this).addClass("label"),k("models"))))))),define("text!lib/helpers/pager/template.html",[1, function()(return'¶
IIdisplay }}{V current }}\n{{^ current }}\n({# no_page }}{{ display }}{{/ no_page }}\n{{/ current¶
}}\n¶
- {{/ pages })\n{{# has_next }}
- Next
- has_next }}\n{{# has_last }}
- Last
(V has_last }}\n¶
- \n
- 1}),define("lib/helpers/pager",["mustache","text!./pager/template.htmlifunction(t,e)(var
i=;return i.get=nction(i){return
i.hasfirst=first!=1,i.has_prev=prev!=1,i.has_next=next!=ti.has last=last!=1,$(t.render(e,i))),i.getEmpty=nction(Hreturn
Sc
{{ nb_video }} {{{ IabeIs.vids }}}\n\t{{{ labels.add_video }}}\n\tlittin_list})¶
{{>remove}}{{/in_list}}\n\t{{flmax_videos_reached}} ({{>maxreached}}}{{/max_videos_reached}}\n¶
1}),define("text!skins/defaultivideo/favorites/list_remove.html",[],function(){returnl {{{¶
max_vids_reached¶
}}}1)..define("skinsidefaultivideo/favurites/list",1"config/main","mustache","lib/helpers/inline_loader","textIllist.html", "text!Ilist_remove.html","textIflist_maxreached.html","lib/i18nlfrontl,function(t,e,i,n,s,o,r){var a,c,I=nction(t,e,n)(t.on("click",function(t)(t.preventDefault();var¶
s=cld"=n?r.("video.fays.adding_video"):r.("video.fays.removing_video");a.setContent(i.getSafe("after",s+1 m+e.name+—...1).getHtml()).setClosable(11).show(),$.post("/favoriter+n+"/"+e.id+"/"+e.id_video,{csrf:e.csrf(n)},function (t){return t.result?t.logged?(e.setInList("add"=n),void a.hide()):void e.display_login():void¶
a.setContent(").setClosable00)},"json").fai I (function(t,e,i)(a.setContent(").setClosable001111)},d=nction(t,i,a){c I I (c=abel s:r.("video.fays.'"),misc:r.("misc.•")}),this.id_video=this.display_login=$.extend(this,i),i.add_btn=.in_list&&!i.max_v ideos_reached,i.labels=labels,i.misc=misc,this.node=e.render(n,i,{remove:s,maxreached:o})),i.in_list&&this.node.addCla ss("video-in-list"),this.addbtn=is.node.find(".btn.add"),I(this.addbtn,this,"add"),this.removebtn=is.node.find(".remove .btn"),this.removebtn.length>0&&l(this.removebtn,this,"remove"),this.maxreached=is.node.find(".maxreached"Thretur n d.prototype=etNode:function(){return this.node},setInlist:function(t)(if(t&&0=this.removebtn.length)(var i=e.render(s,c));this.removebtn=find(".btn"),I(this.removebtn,this,"remove"),this.maxreached.length>0?i.insertBefore(th is.maxreached):this.node.appendfinthis.in_list=t?(this.nb_video++,this.node.addClass("video-in-list")):(this.nb_video-- ,this.max_videos_reached=,this.maxreached.hide(},this.node.removeClass("video-in-¶
list")},this.addbtn.toggle(!t&&!this.maxvideosreached),this.removebtn.parent().toggle(t),this.node.find(".badge").text (this.nb_video+"¶
vids")}},d.setOverlay=nction(t)(a=,d)),define("textIskinsidefaultivideo/favorites/form.html",1],function(){returni¶
\n\t\t \n\t\t\t{{^max_reached}}\n\t\t\t {{{ labels.or_create_new_list }}}:¶
\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t¶
{{{ allow.public }}}\n\t\t\t\t\t{{{allow.friends }}}\n\t\t\t\t\t\n\t\t\t\t¶
\n\t\t\t\t¶
{{{ labels.manage_fays }IA n \ t \ t \n\t \n¶
1}),define("skins/defaultivideo/favorites/form",rconfig/main","mustache","statictutils","libitools","lib/helpers/i nline_loader","text!./form.html","lib/i18nIfrontl,function(t,e,i,n,s,o,r)(var¶
a,c=nction(c,l,d,h,u){this.id_video=this.display_login=this.translations=("video.fays.'"),this.node=e.render(o,{max_rea ched:I I I d,max lists_reached:l,maxvids_reached:d,upload_dornain:t.dornains.master,labels:this.translations,allow:r.( "profile.allow."),Iabel_name:r._("user.name"),csrftoken:h})),this.inputname=is.node.fincl('input[type=ext"]1},this.sel ect_vis=is.node.find("seIect");var f=is;this.form=is.node.find("form").on("submit",function(t)(t.preventDefault();var e=trim(f.input_name.vaI());return eiength<3?void¶
alert(i.unescape(f.translations.min_length.replace("%nbchars%",3))):(a.setContent(s.getSafe("after",f.translations.creat ing_and_adding).getHtml()).setClosable(!1).show(),void¶
$.post(Vfavorite/creater+f.id_video,f.form.serializeArray(),function(t)(ifOt.result){var¶
s=translations.error_occured_adding;return"string"=ypeof t.message&&(s=message),void¶
a.setContent(").setClosable(!0)}if(!t.logged)return void¶
tdisplay_loginftf.input_name.val(""),f.select_vis.val("ANYONE");var¶
o=d:t.idlist,name:i.escape(e),urIname:n.translit(e).replace(AA\w)/g,"").replace(/+/g,""),inlist:t.videoadded,nbvid¶
eo:1,max_videos_reached:!1Lif(tonlistCreated(o),t.video_added)a.hide();else{var s=__("misc.error")+":¶
"+t.videoadded_error;a.setContent(—).setClosable(!0))),"json").fail(func-tiono(a.setContent(").setClosable(l0)))))));retu rn c.prototypernListCreated:nullegetNode:functionifireturn¶
this. node},setldVideo:function(t){this.id_video=},c.setOverlay=nction(t){a=,c}),define("text! skins/default/video/favorites /page.html",[1,functionifireturn'¶
'44._("video.fays.must_be_logged_in_to_fav1+¶
").appendTo(tempty()).children("a"))))),T=nction(t)(k!=1&&(y[k).node.toggle(t),y[k].pager&&y(k).pager.toggle(t) )),E=nctionO{return¶
P I I (Priget(f,!1,"hide").setContent(o.get("after",l._("profile.loading_favorites")).getNode())),p),S=nction()(g&&Eashow( )},A=nction(t){t.prevent0efault(),O(parselnt($(this).attr("href").substr(1)))},N=nction(t){if(!t.result){var o='¶
1+I.("video.fays.failed_loading_click_here").replace("%here%",l.("misc.here"))+"¶
");return¶
o.find("a").on("click",function()L.close(),O(k,!0))),void(_=get(f,!0).setContent(o).show()))if(!t.logged)return void C(Lb I I (b=,v=w¶
a(cht.max listsreached,t.maxvideos_reached,t.csrf_create,C),f.append(v.getNode()),v.ontistCreated=nction(t)(var e=w r(d,t,C);y[k].node.find("ul").eq(0).append(e.getNode()),w.push(e))),T(!1);var¶
p=lists.length,g=e.render(c,(two_cols:p>3))),m=find("ul");for(var x in t.lists)(var E=w¶
r(d,t.lists[xJ,C),S=p>3&&x>=th.floor(p/2)&&(S.,m.eq(S).append(E.getNode()),w.push(E)}if(g.prependTo(f),y1N=ode:ght.p ager){var N=get(t.pager).on("click","a",A);y1h).pager=N.prependTo(f)}u.length>0&&i.scrollToTop(u.position().top-10),k=,O=nction(t,e)(if("undefined"=ypeof t&&(t=,!g&&(e I I t!=)){ifrundefined"!=peof y(tj)return¶
T(!1),k=T(!0),void(u.length>0&&i.scrollToTop(u.position().top-¶
10));g=,h=window.setTimeout(S,500),S.post(Vfavorite/view/"+d+"/"+t,N,"json").fail(function()(s.get(f,!0).setContent("). show())).complete(function(){g.,E().hide()}))),P=nction(t)(x(),b.,d=v.setidVideo(t),O());return function(e){if(!m)return m=,d=umber"=ypeof e?e:t.data.id_video,u="#tabFays"),f="#fays-¶
container"),r.setOverlay(s.get(f,!1,"hide")),a.setOverlay(s.get(f,!1,"hide")),O(),P))),define("text!skins/default/profile/vide os_ilike_fays.html",[],function()(return*¶
\n\t¶
Add"¶
\n\t¶
1+a._("misc.error_please_retry")+"¶
").show(),o.text("x"),c=)),"json").fail(function()(n.get(e,!0).setContent('¶
").show(),o.text("x"),c=)))):(r.voteBad(s),void¶
e.remove()))))))),function(t)("function"=ypeof¶
define&&define.amd ?deli ne("Ii b/pathchange", ("jquery"],t):t(jCluery)}(function(t){t.fn.pathchange=nction(t)(return t?this.bind("pathchange",t):this.trigger("pathchange"));var¶
e=pathchange=ptions:{useHistory:!0,useHashchange:!0,pollinginterval:250,interceptLinks:!0,disableHashLinks:!0},init:fu nction(i)(var¶
n;t.extend(e.options,i),e.options.useHistory&&e.detectHistorySupport()&&t(window).bind("popstate",function(e)(t(win dow).trigger("pathchange"))),e.options.useHashchange&&(t(window).bind("hashchange",function(e)(t(window).trigger( "pathchange"))),e.detectHashchangeSupport() I I (n=ndow.location.hash,setinterval(function()(n!=indow.location.hash& &(t(window).trigger("hashchange"),n=ndow.location.hash)Le.options.pollinginterval))),e.options.intercepttinks&&t("bo¶
dy").delegate('a[href^='']',"click",function(i){e.changeTo(t(this).attr("href")),i.preventDefault(()}),e.options.disableHashLin ks&&("body").delegate('a[href="]',"click",function(t){t.preventDefault()}},changeTo:function(i){e.options.useHistory&& e.detectHistorySupport()?(window.history.pushState(null,null,i),t(window).trigger("pathchange"));(i.indexOf("#")<0&&(i +="),window.location.href=ndow.location.protocol+"/"+window.location.hostname+(window.location.port?":"+windo w.location.port:"")+i)},detectHistorySupport:function(){return!(!window.history||!history.pushState)},detectHashchang eSupport:function(){var t=nhashchange"in¶
window;return!t&&window.setAttribute&&(window.setAttribute("onhashchange","return;"),t=unction"=ypeof window.onhashchange),t}};return e}),define("lib/history",["./tools","./pathchange"],function(t){var e=#NOHASH##",j=,n=,s=;return s.getNoHashValue=nction(){return e},s.registerHash=nction(t,n){return"|unction"=ypeof n&&(t||(t=.jlt)=!0)},s.setUrlHash=nction(e){n!=&&(n=t.setUrlHash(e)}),S.pathchange.init({interceptLin ks:!1}),$(window).on("pathchange",function(){var¶
s=getUrlHash();s| | (s=,s!=&&(js){s),n=)),s}),define("lib/tab",("lib/helpers/dom","lib/tools",",function(t,e,i ){var n=nction(n,s,o,r,a){this.node=n),this.closable=o,this.use_class=lass"=a,this.no_first_tab_hash=r;yar c=is.node.find(".tab-buttons a").not(".notab"),l=is.node.find(".tabs .tab"),d=is;if(0=l.length||c.length¶
\n\t\t \n\t\n\t {{ vtotal }}\n\t\t{{/ disp_good_bad }}\n\t\t \n\t \n\t{{ rating }}\n¶
'}),define("skins/default/profile/vote/total",["config/main","mustache","lib/tools","text!./votes_box.html","lib/h elpers/inline_loader","lib/helpers/popup","lib/helpers/overlay/box","lib/i18n!front"],function(t,e,i,n,s,o,r,a){var c=nction(t,j,s,o,r,a,c){ if("undefined")=peof t}{this.vtotal=this.rating=this.visitor_vote=,"undefined"=ypeof r | | "GOOD" != &&"BAD" != | | this.visitor_vote=,this.login_required=oolean" =ypeof¶
a&&a,this.login_container=this.node=e.render(n,this_get_tpl_vars())),t.replaceWith(this.node),this.actions=is.node.chil dren(".vote-actions"),this.yes_btn=is.actions.children(".vote-action-¶
good"),"GOOD"=this.visitor_vote&&this.yes_btn.addClass("disabled"),this.no_btn=is.actions.children(",vote-actionbad"),"BAD"=this.visitor_vote&&this.no_btn.addClass("disabled"),this.bar_good=is.node.find(".rating-bar¶
div"),this.bar_rating=is.node.children(".rating"),this.total=is.node.find(".total"),this._init_counts();var =is;this.voting=.this.popup=1).this.popup_pos="below".h:"left",this.yes_btn.on("click",function(){}. vote("GOOD")}),thi¶
s.no_btn.on("click",function(){l._vote("BAD")}}}};return¶
c.prototype=nitPostData:function(t,e,i){this.url_good=this.url_bad=this.post_data=|{}},setPopupPosition:function(t,e){th is.popup_pos.v=this.popup_pos.h=_ init_counts:function(){this.counts_total=is.node.find(".total")}, get_tpl_vars:functio n(){return{vtotal:this.vtotal;rating,vrating:this.vrating}}__update_counts:function(t){this.bar_rating.text(t.vrati ng),this.total.text(t.total),this.bar_good.css("width",t.rating+"%")},_get_popup:function(t,e){return this.popup?this.popup.setButton(t).setContent(e):this.popup=w¶
o(t,e,{relative_to:this.node.parent(),position:this.popup_pos,trigger:11}),this.popup},_open_login:function(){require(["sk ins/default/form/login_create"],function(t){t.open(}})},_vote:function(e){if("GOOD"!=&&"BAD"!=)return!1;if(e=this.visit or_vote)return!0;if(this.voting)return!1;if(this.login_required&&!t.data.login_info.is_logged|return this._open_login(),!1;var¶
i=is,n=00D"=e?this.yes_btn:this.no_btn,o=html(),r=000"=e?this.url_bad;this.yes_btn.addClass("disabled" ),this.no_btn.addClass("disabled"),n.html(s.getImg()),$.post(r,this.post_data,function(t){var¶
s;t.result?(i.update_counts(t),i.visitor_vote=s=strong>"+a.("video.votes.thanks")+"");s=strong class=ext-¶
danger">'+t.message+"",i._get_popup(n,s).open()},"json").failfunction(){i._get_popup(n,"").open(}}).complete(function() {n.html(0),i.voting=,i.yes_btn.toggleClass("disabled",!t.data.login_info.is_logged||"GOOD"=i.visitor_vote),i.no_btn.toggl eClass("disabled",lt.data.login_info.is_logged||"BAD"=i.visitor_vote}}}},c}},define("skins/default/profile/action/aboutm e_desc",["config/main","mustache","lib/helpers/overlay","lib/helpers/inline_loader","lib/i18n!front"],function(t,e,i,n,s){ var o="#pinfo-aboutme");if(o.hasClass("editable")){var¶
r=;o.on("click",function(){r||(o.addClass("editing").find("textarea").focus(),r=)});var¶
a=find("button").on("click",function(){var c=prevAll("textarea"),l=find(".val());a.prev("p").remove();var h=get(o,1).setContent(n.getSafe("after",s__("misc.updating")).getHtml()).show();$.post("/profiles/"+t.data.user.userna me+"/update",{"profile[aboutme]":d,csrf:t.data.user.csrf.uupdate},function(t){if(t.result){r=,o.removeClass("missing editing"),0=d.length?(o.addClass("missing"),o.find(".tip¶
span").html(s._ span").html(s._ n;n=message?s. ("profile.aboutme.click_write_desc"))):o.find(".tip ("profile.aboutme.click_edit_desc"));var i=render("{{ text }}",{text:d}).split("\n").join("\n ");I.html(i),$("#header-about-me").html(i)}else{var ("misc.update_failed_error")+" "+t.message:s.("misc.update_failed_please_retry"),a.before(' '+n+"¶
"))),"json").fail(function()(h.close(),a.before('¶
cps._("misc.error_please_retry")+"¶
"))).always(function()(h.close()))1)}}),define("text!skinsidefault/profile/action/link/user_blocked.html",[1,functio n()(return'{{{ label }}}1}),define("textlskins/default/profile/action/report.html",ftfunctionifireturn.¶
\n\t\t¶
\n\t\t\t \n\t\t\t\t\t\t{{# reasons }}\n\t\t\t\t\t\t {{ label )} \n\t\t\t\t\t\t({/ reasons }}\n\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t {{{ content_removal.links }}}¶
\n\t\t\t\t¶
{{{ content_removal.link_copyright }))¶
\n \At \t\t¶
{{{ content_removal.link_privacy })}¶
\n\t\t\t \n\t\t \n\t\t{{/ content_removal }An \t \n¶
1}),define("skinsidefault/profile/action/report",["config/main","mustache","statichtils","libitools","lib/helpers/ overlay/box","lib/helpers/inlineloader","lib/iHnlfront","text!freport.html"Jjunction(t,e,i,n,s,o,r,a)(var c=nction(e,i,s,o,r)(if("profile".e&&It.data.login_info.is_logged)return void requireWskins/default/formilogin_create"hfunction(t)(t.setup_links(ijunction(){var t=parseUrl(window.locationshref),e=body;e+=query?tsquery+"&reportuser=:"?reportuser=,t.hash&&(e+="+tshash),wind ow.location.href=m;this.type=this.id=this.btn=this.container=this.csrf_token=this.overlaywar a=is;if(i.on("click",function(t)(t.preventOefault(),a._handle())),"profile"=e)(var c=parseUrl(window.location.href,"query",!0);c.reportuser&&a._handle()));return c.prototype=handle:functiono(return this.overlay?void this.overlay.show():void this._load_form()),load_form:function()(this.messages=("reportform.",{"%userr:t.data.user.display});var¶
n=;n.push({value:"nevermind",label:this.messages.nevermind,checked:!0}),n.push((value:"spammer",label:this.message¶
s.spammer,checked:!1}),n.push({value:"underage",label:this.messages.underage,checked:!1}),"profile"=this.type&&n.pu sh({value:"fake",label:this.messages.fake_profile,checked:!1}),n.push({value:"other",label:this.messages.other,checked:! 1});var¶
c=s_profile:"profile".this.type,reasons:nelabels:this.messages,cancel_label:r. ("misc.cancel"),csrf_token:this.csrf_token rprofile".this.type&&(c.content_removal=_("content_removals",{"%start_copy_link%":","%start_privacy_link%":' <ttp://support.xvideos.com/takedownh ,"%end_link%":" ttp://support.xvideos.com/takedown-amateur "}));var ke.render(a,c));this.overlarget(this.container,!0,"hide").append(l).show();var¶
d,h=is,u=children("form"),f=find("button.report"),p=nction(t)(if(h.overlay.showat.validation_error)for(var e in t.validation_error)$("tfreport-"+e).addClass("has-error").children().append('¶
");else t.result?(I.replaceWith('¶
'+(t.message I I h.messages.thanks)+"¶
"),h.overlay.autoclose(le4),h.btn.remove()):(h.overlay.show(),f.parento.prepende¶
1+t.message+"¶
"})},g=nction(){var e=serializeArrayQ,n=;for(var r in¶
e)if("report[reasonrkirj.name)(if("reportidetails1"!=[r].name)"reporticonfirmr!=irl.name I I envalue!=0&&1!=[r].valu e&&"on"!=irkvalue I (n=);else if($.trim(envalue).length<10)return¶
alert(i.unescape(h.messages.enter_reason.replace("%nb_chars%",10)))}else if("nevermind"=e(rJ.value)return void p({result:!0,message:h.messages.thanks});if(!n)return¶
alert(i.unescape(h.messages.please_confirm_spam_illegal));f.prevAll("p").remove(),u.find(".has-¶
error").removeClass("has-error").find(".help-¶
block").remove(),h.overlay.hide(),d=get(h.container,!1).setContent(o.get("after",h.messages.sending).getHtml()).show(); var¶
a;a=rofile".h.type?"/profilesr+t.data.user.username+Vreport":"/profilesr+t.data.user.username+Vcommentst+h.id+ Vreport",$.post(a,e,p,"json").fail(function(){h.overlay.show(),f.parent().prepencl('¶
'+h.messages.sending_failed_2+"¶
"))).always(function(){d.close()})};l.find("button.cancel").on("click",function(){h.overlay.hide()}),f.on("click",g)}},c} },define("textlskins/default/profile/action/popup_form.html",[hfunction()(return'¶
\n\t\t {({ title }}} \n\t\t \n\t \n\t{{/ title }}\n\t{{# inputs }}\n\t \n\t\t\t\n\t\t \n\t \n\t{{/ inputs }} \ n \ tail settings }}\n\t \n\t\t\t\n\t\t\n\t\t\t \n\t\t \n\t\t\t\t{{/ csrf_token }An \t\t\t\t{{{ btn_label }}}\n\t\t\t
¶
\n\t\t¶
'}),define("skins/default/profile/action/popup_form",["config/main","mustache","lib/helpers/inline_loader","lib /helpers/popup","text!./popup_form.html","lib/i18n!front"],function(t,e,i,n,s,o){var¶
r=nction(t,e,i){this.btn=this.btn_label= |o._("misc.save"),this.msg_success,this.msg_updating.this.url=,this.vali dator=,this.csrf token=,this.inputs=,this.settings=,this.static fieds=,this.popup=ll;var¶
n=is,s=is.btn.on("click",function(t){t.preventDefault(),n.btn.off("click",s),n. get_popup(),open()});this.saving=};return r.prototype=etMessages:function(t,e){this.msg_success=this.msg_updating=setRequestParams:function(t,e,i){this.url=t his.validator=this.csrf_token=,addInput:function(t,e){this.inputs.push({label:t,name:e,id:this.btn.prop("id")+"-"+e.replace("[","-").replace("]","-")}},addSetting:function(t,e,i,n){for(var s in¶
i)[s].opt_cheked=s].opt_value=n;this.settings.push({label;t,name:e,id:this.btn.prop("id")+" "+e.replace("[", " ").replace("]","-¶
"),options:i}}},addStaticField:function(t,e){this.static_fieds.push({label:t,content:e}}},_get_popup:function(){if(!this.popu p}{this.form=e.render(s,{title:this.inputs:this.inputs,settings;tatic_fields:this.static_fieds,btn_label:this .btn_label_csrf_token:this.csrf_token||t.data.user.csrf.uupdate}}),this.btn,this.form,{popup_class:"xpopup-white profile-privacy-popup"});var i=is;this.form.find(".actions¶
button").on("click",function(){i. save form()}}}return¶
this.popup}, save_form:function(){if(!this.saving&&(this.validator())){this.saving=,this.form.prevAll().re move();var¶
e=is,n=is.form.serializeArray(),s=getSafe("after",this.msg_updating||0.__("profile.privacy.saving")).insertAfter(this.form. hide());$.post(this.url ||"/profiles/"+t.data.user.username+"/update",n,function(t){if(t.result)e.form.before("¶
");else{var i;i=message?o. ("misc.update_failed_error")+" "+t.message:o. ("misc.update_failed_please_retry"),e.form.before('¶
")}},"json").fail(function(){e.form.before('¶
"}}).always(function(){e.saving=.s.remove(),e.form.show()})}},r}),define("skins/default/profile/tabs/aboutme",[" config/main","lib/tools","lib/helpers/popup","skins/default/profile/vote/total","lib/i18n!front","../action/aboutme_desc "],function(t,e,i,n,s){var o=profiles/"+t.data.user.username+"/",r=nction(t){var e="#pinfo-"+t+"-info-¶
switch");if(0 !=. length){var i=parents(". pinfo-switch"),n=nextAll(". pinfo-¶
"+t);e.on("click",function(t){t.preventDefault(),n.removeClass("pinfo-¶
hidden"),i.remove()})};r("personal"),r("physical");var a="#block-¶
user");a.length>0&&require({"mustache","skins/default/profile/action/link","text!skins/default/profile/action/link/user _blocked.html"],function(e,i,n){var r=w¶
i(a,o+"block/add")s._("profile.confirm_block",("%user%":t.data.user.csrf.blockadd);r.onSuccess= nction(){var t=is.link.parent();this.link.remove(),0=t.children().length&&t.remove();var¶
i="#tabAboutMe"),o=children(".pfinfo-actions");0=o.length?o='¶
':"","%end_link%":t.data.login_info.is_logged?"":""}};new i(h,"¶
"+s. ("misc.tip")+": "+u+"¶
",{trigger:"click mouseenter"})}var f="#privacy-edit-¶
aboutme");f.length>0&&require(["skins/default/profile/action/popup_form"],function(e){var i=w e(f),n=;n.push({opt_value:"ANYONE",opt_label:s.("misc.everybody")}),n.push({opt_value:"REGISTER",opt_label:s. (" profile.allow.only_registered")}),n.push({opt_value:"FRIEND",opt_label:s.__("profile.allow.friends")}),n.push({opt_value: "NOBODY",opt labehs.("profile.allow.nobody"))),LaddSetting(s.("profile.privacy.whocanviewcontact"),"profilei contact_accessJ",n,t.data.user.access.contact);var o=_("profile.privacy.no_country_blocked")+",¶
";if(t.data.user.blocked_countries.length>0)(o=;for(var r in t.data.user.blocked_countries){var a=data.user.blocked_countries(rJ;o+=span class=ext-nowrap"> {:CTRY:("country":"'+a+—}:1, 11)O+=a href=+t.domains.master-qaccount/edit#prof ile-edi t-privacy-¶
settings">'+s.("misc.change")+"",i.addStaticField(s.("profile.privacy.blocked_countries"),o)));var p="#pinfoaboutme");if(p.length>0)(var g,_="gheader-about-me"),v.,m.,b=nction(){m I I (v I I (v=find(".showmore").on("click",function()(m=,p.css("max-¶
height","none"),$(this).remove(),$(window).off("resize",g),v.off("click")))),v.css("display",p.outerHeight()>142?"block":"" )));return g=window).on("resize",b),_.on("click",function()L.off("click").addClass("expanded"),$("gtababoutme").click(),v.click())),b)return¶
function(){}}),define("text!skins/default/profile/action/link/friend_asked.html",[1,function()(return10)(var c=w i(a,r+"friends/requests/ask",11,!0,t.data.user.csrf.fregask);c.onSuccess=nctionifithis.disable(),this.link.replaceWith(e.ren der(o,Ilabel:s._("profile.friends.you_asked_friends",{"%name%":t.data.user.display}))))))var l=#pending-friend-reqconfi rm");if(Llength>0)(var d=w¶
i(l,r+"friends/requests/confirm",!1,!1,t.data.user.csrf.freqconfirm);d.onSuccess=nction()(this.link.next().remove();var t=is.link.parent().prev();this.link.remove(),t.children(".label").html("),window.setTimeout(function(){window.location.rel oad()),1e3)))var h="gpending-friend-req-ignore");if(h.length>0)(var u=w¶
i(h,r+"friends/requests/ignore",!1,!1);u.onSuccess=nction()(this.link.prev().remove();var¶
t=is.link.parent().prev();this.link.remove(),t.children(".label").html(m)))var f="#profile-unfriend");if(f.length>0){var p=w i(fr"friends/remove",s._("profile.friends.confirm_unfriend",{"%user%":t.data.user.display)),!1,t.data.user.csrfirremo ve);p.onSuccess=nction()(var¶
t=is.link.prev();this.link.remove(),t.children(".label").htmln,window.setTimeout(function()(window.location.reloadohl e3)))var g="#unblock-user");if(g.length>0)(var _=w¶
i(g,r+"block/remove",!1,!1,t.data.user.csrf.blockremove);_.onSuccess=nction()(var¶
t=is.link.prev();this.link.remove(),t.children(".label").html(m),window.setTimeout(functionifiwindow.location.reload()),1 e3)}}var v=".user-subscribe");v.length>0&&new¶
n(v,t.data.user.username,t.data.user.id_user,t.data.visitor.subscriber,t.data.user.csrf.sub I I ""))),define("skins/common/I isting/loader",1"lib/tools","lib/helpers/inline_loader","lib/helpers/thumbs_rotator","skins/common/debug/console","lib /118n!frontlfunction(t,e,i,n,$)(var¶
o=nction(t,e,i,n,$)(this.type=this.container=this.url=this.is_video=n,this.is_pic=s,this.loading=,this.loaded=,this.error);ret urn¶
osprototype=nLoaded:null,load:function()(if(!this.loading&&!this.loaded)(this.loading.,this.error&&this.error.remove(),t his._display_loader();var t=is,eris._get_url();n.print('POST "'+e+'"',"Listing loader¶
"+this.type),$.post(e,function(e)(n.print("Loaded!","Listing loader¶
"+t.type),t._on_loaded(e)),"html").fail(function(e,i,$)(n.print("ERROR: "+i+' "'+s+—',"Listing loader¶
"+t.type,e),t._on_error())).always(function()(t.loading=})}},get_loader_containers:function(){return¶
this.container},_display_loaderfunction()(this.get_loader_containers().html('¶
")),get_url:function()(return this.urlLon_errorfunction(){var¶
t=is;this.container.html ('¶
").find("a").on("click",function(e)(return¶
e.preventDefault(),t.load(),!1})kon_loaded:function(e){"string".ypeof¶
e&&((this.is_video I Ithis.is_pic)&&(e=replaceThumbcast(e)),this.container.html(e),t.executePendingPrepare(this.contai ner.find(".thumb-block")),this.is_video&&i(this.container)),this.loaded.,"function"=ypeof¶
this.onloaded&&this.onloaded())),a,define("skins/common/listing/loader/paginated",["./../loader","lib/helpers/inline _loader","lib/helpers/overlay/box","lib/i18n!front"),function(t,e,i,n)(var¶
s=nction(e,i,n,$)(t.apply(this,arguments),this.page=this.loaded_once=,this.overlaybreturn s.prototype=w t,s.prototype._get_url=nction()(return¶
this.ur1+"/"+this.pagehs.prototype.loadPage=nction(t)(this.page=rselnt(t),this.loaded=,this.load()),s.prototype._displayl¶
"));var¶
s=is;window.setTimeout(function(){s.loading&&s.overlay.show()},500}},s.prototype.show overlay=nction() {},s.prototype._on_error=nction(){t.prototype._on_error.call(this).this.overlay&&this.overlay.hide()},s.prototype._on_lo aded=nction(e){this.loaded once=.t.prototype. on loaded.call(this,e);var i=is;this.container.find(".pagination a").on("click",function(t){if(t.preventDefault(),!$(this).hasClass("active")){var e=this).attr("href");e&&i.loadPage(e.substr(1)}}),this.overlay&&this.overlay.hide()},s}),define("skins/default/profile/listi ng/videos",["config/main","lib/helpers/dom","lib/tools","skins/common/listing/common/listing/loader/p aginated","skins/default/pagination"],function(t,e,j,n,s,o){var r=best","new","rating"],a=nction(e){return t.data.user.url+"/videos/"+e},c=nction(t){this.container=this.ups_sort=,this.status=ot_loaded",this.has_upl oads=,this.has_pornstar=};return c.prototype=oad:function(t){var c=est",l=,d=indexOf(",");if(d!=1){var h=substr(d+1);"videos-pornstar"=h&&(l=,this.ups_sort&&(c=is.ups_sort)),"videos-new"!=&&"videosrating"!=||(c=substr(7))}if("not_loaded"=this.status){this.status=oading",this.ups_sort=var u=is,f=w n("videos",this.container,a(c),10);return f. on loaded=nction(t){n.prototype. on loaded.call(this,t);yar d=container.find("#profile-listing-uploads");if(d.length>0){u.has_uploads=,u.loaders[c]=w s("videos",d,a(c),l0),u.loaded=nction(){o.add_all_in(u.container)},u.loaders(c]_on_loaded();for(var h in r)c!=[h]&&(u.loaders[r[h]]=w s("videos",d,a(r[h]),!0),u.loaders[r[h]].loaded_once=);if(!!){var f=container.before();e.isElementInView(f,!1)||i.scrollTo(f,35)}yar p=container.find("#profile-listingpornstar");p.length>0&&(u.has_pornstar=,u.loaders.pornstar=w s("videos",p,a("pornstar"),!0),u.loaders.pornstar._on_loaded(),l&&i.scrollTo(p,35)),u.status=oaded",u.ups_sort!=&&u.lo ad("tabVideos,"+u.ups_sort)},void f.load()}f("loaded"=this.status){if(l&&i.scrollTo(this.loaders.pornstar.container,35),this.ups_sort=c)return;if(this.ups_sor t=this.loaders[c].loadPage(0),!!){var p=is.container.before();e.isElementInView(p.11) | i.scrollTo(p,35)}}this.ups_sort=},c}),define("skins/common/listing/load er/infinite",["lib/tools","lib/helpers/inline_loader","lib/helpers/thumbs_rotator"],function(t,e,i){var n=document),s=window),o=nction(t,e,i,n,o,r){this.btn=this.btn.html(),this.list=this.autoload=r,this.loadin g=,this.loading msg=this.last timestamp=this.url=var a=is,c=nction(){a.loadNext()};this.last_children().last().prev().this.autoload&&(this.last_child.offs et().top,this.scroll_handler=on("scroll",c),this.resize_handler=on("resize",function(){a.last_child.offset().t op,c(}}),this.btn.on("click",c)};return o.prototype=nLoaded:function(e){var n=indexOf("-->");this.last_timestamp=rseInt(e.substr(n+3),this.list.append(t.replaceThumbcast(e.replace(\(/gi,""") ),t.executePendingPrepare(this.list.find(".thumbblock")),i(this.last_child.nextAll((),!0),this.list.children().last().prev(),this.autoload&&(this.last_child_pos=is.la st child.offset().top),0=this.last timestamp&&(this.btn.remove(),this.autoload&(s.off("scroll",this.scroll handler),s.off ("resize",this.resize_handler)))},loadNext:function(){if(!(this.loading||this.ast_timestamp||this.autoload&&n.scrollTop( )+2*s.height()"),o=rselnt(n.substring(5,s));n=substr(s+3);t.prototype._on_loaded.call(this,n);var r="#"+i.btn id),a="#"+i.list id);return 0=r.length||0=a.length?void("function"=ypeof i.on_first_load&&i.on_first_load()):(i.infinite_loader=w e(r,a,i.url+"/",o,i.loading_msg,!1),i.infinite_loader.onLoaded=nction(t){var n=is.last_child;e.prototype.onLoaded.call(this,t),"function"=ypeof i.on_next_load&&i.on_next_load(n.nextAll())},void("function"=ypeof i.on_first_load&&i.on_first_load())});i.list_loader.load()}},}),define("skins/default/profile/images",[],function(){var t=".img-block .gif-tag"),e=nction(t){t.each(function(){var t=this),e=prev(),i=position();t.css({left:i.left+3,top:i.top+3}}}},i=nction(i){if((){if(0=i.length)return;return i.prev().one("load",function(){e($(this).next())}),e(i),void(t=add(i))}e(t)};return t.prev().one("load",function(){e($(this).next()))),i(),$(window).resize(function(){(()}),}),define("text.lib/helpers/viewer/p hotos.html",[],function(){return' [{{{ close_label }}}]¶
{{/ closable }}\n\t¶
\n\t({ position }}/{{ nb_pics }}\n\t\t{{{ title }}}VAt OW error }}¶
a");this.node=t.render(eAdosable:this.settings.close_button,closelabel:n._("viewer.close"),next_prev:r.length>l,static _host:this.settings.static_host}}),S(this.settings.insert_dom_selector?this.settings.insert_dom_selector:this.gallery) [this. settings.insert_domjqfuncifthis.node),this.imgwrapper=is.node.find(".viewer-imagewrapper"),this.loader=is.node.find(".viewer-loader").hide();var¶
a=is;this.settings.close_button&&(this.close_button=is.node.find(".viewer-close-button¶
al,this.close_button.click(function(t)ft.preventDefault(),a.dose()})),this.preloads=1¶
1).appendTo(document.body),this._resize(),this.node.hide(),this.images=,r.each(function(t)(var e=this);e.click(function(e){e.preventDefaulto,a.openlmage(t)D,a.images.push((image:e.attr("hrer),erronitpreloaded:I1 ,title:a.settings.title I e.find("img").attr("title"),size:ll,thumb_link:ethfor(var i in a.settings.other_links){var¶
n=settings.other_links[i];e.parents(n).find(i).dick(function(t){t.preventDefaulta,e.click()}}}}),$(window).resize(function()( a._resize0}),this.images.length<= I ($(document).onrkeydowelunction(t){39=.keyCode?a.nextImage():37=.keyCode&& a.prevImage()Tha.node.onrclidc",functionota.nextImage()%this.next_link=is.node.find(".viewer-¶
next").onrclidc",function(t)(t.stopPropagationo,a.nextImage()}},this.prev_link=is.node.find(".viewer-¶
prev").onrclidc",function(t){t.stopPropagationtha.prevImage0}),this.prev_link.add(this.next_link).onrmouseover",funct ion()($(this).children().css("opacity",1)}).onrmouseouttfunction(){$(this).children().css("opacity",.7)}).childrenthcss("op acity",.7)thretum¶
l.prototype=resize:function()(if(this.imgwrapperw=is.imgwrapper.width(),this.imgwrappermaxh=window).height()- 40,this.current_image)(var t=is.imgwrapper.children(".viewer-¶
image");this._resizeViewer(t,this.images[this.current idx],t.children("img"))}},open:functiono(this.opened I (this.node.s how(),this.opened=)},close:functionifithis.opened&81(this.node.hide(),this.gallery.find(".vieweractive").removeClass("viewer-¶
active"),this.opened=)},openlmage:function(t)(this.opened I I (l.manager.closeAllo,this.open()),this._showlmage(t),$("ht ml,body").animateffscrollTop:this.node.offset().top-50},500)},_showlmage:function(t)(if("undefined"l=peof this.images[t]){this.loading_idx=thisloader.hidethvar e=isimages[t];if(t=this.current_idx)return void this._highlightThumb(e.thumb_link);if(e.preloaded)this._onlmageloaded(t);else(this.loader.show();var¶
i=is;this._preloadlmage(t,function(){i._onlmageLoaded(t)}}}}},_onlmageloaded:function(e)(if("undefined"l=peof this.images[e]&&this.loadingjdx=e){this.loader.hide();var¶
s=is.images[e],o=t.render(i,{img_src:s.error?this.settings.statichost+Vv3/img/sltinsidefault/xv-viewer-loadingerror.png":s.image,position:e+1,nb_pics:this.images.length,title:s.title,error:lls.erroil&n._("loading.error")+"1"})),r=chi Idren("img");this.imgwrapper.prepend(o),this._resizeViewer(o,s,r),this._highLightThumb(s.thumb_link),this.current_ima ge&&this.current_image.remove(),this.current_idx=this.current_image=this.node.triggerrimageloaded",s}}},_preloadlm age:function(t,e)(ifrundefined"l=peof this.images[t]){var i=is.images(t1;this.images[t].preloaded&&s(e);var n=new Image);if(n.attr("src",i.image), a(n[OJ))return i.preloaded=,i.size=idth:n[0].width,height:n[0].height},void s(e);this.preloads.append(n),n.load(functiono{i.preloaded=,i.size=idth:this.width,height:this.height},s(e)}}.error(function fi{i.erromi.preloaded.,i.size.,s(e)})}},_resizeViewerfunction(t,e,i)(var¶
n=e.error?300:e.size.width,e.error?300:e.size.height,this.imgwrapper_w,this.imgwrapper_maxh);return i.attr("width",n.width).attr("height",n.height),t.css((width:n.width+upx",height:n.height+upx")),this.imgwrapper.css("hei ght",n.height+"px"),r(tn.width,this.imgwrapper_w),n},_highlightThumblunction(t){this.gallery.find(".vieweractive").removeClass("viewer-active),t.addClass("viewer-active)LgetNextIndex:function(){return¶
this.loading_icbc=this.images.length-120:this.loading_idx+1},nextImagegunction()(var¶
t=is._getNextIndex();this._preloadlmage(t+1),this._showlmage(t)),_getPrevIndex:functionfi{retum¶
0=this.loading_idx?this.images.length-1:this.loading_idx-1},prevImage:functiono(var¶
t=is._getPrevIndex();this._preloadlmage(t-¶
1),this._showlmage(t)}}J}),definerlib/helpersiviewer/managerflphotoslfunction(t)(var¶
e=nctiona{this.instances=};e.prototype=etOrCreate:function(e,i,n)(var s=is.get(e);return s?s:(s=w¶
t(e,$(i),n),this.instances[ej=s)},get:function(t)freturn"object"=ypeof¶
this.instancesRpthis.instancesit}:nul I hcloseAll:function()(for(var tin¶
this.instances)this.instances.hasOwnProperty(t)&&this.instances[t].doseoltvar i=w e;return¶
t.manager=i}},define("skinsidefault/profile/listing/friends",1"config/main","lib/helpers/dom","skins/common/listing/loa der],function(t,e,i){var n=friends","fans"],s=nction(e){return¶
t.data.user.url+"/"+e},o=nction(t){this.container=this.loaders=,this.nodes=,this.type=,this.status=ot_loaded1;return o.prototype=oad:function(t)(var o=riends",r=indexOf(",");if(r!=1){var¶
a=substr(r+1);"fans".a&&(o=lif("not_loaded".this.status){this.status=oading",this.type=this.nodes(ol="¶
").prependTo(this.containerhvar c=is,I=w i(o,this.nodeslo},s(o),!1,!0);return I.onLoaded=nction()(c.loaders[o]=I.onLoaded=ll;for(var tin n)o!=[t]&&(c.nodes[n(t)]="¶
").prependTo(c.container).hide(),c.loaders[n(tI]=w¶
i(n[t],c.nodeslnIt1),s(n(t)),11,10));c.status=oaded",c.type!=?c.load("tabFriends,"+c.type):e.scrollToTop()),void I.loadfflif("loaded"=this.status){if(this.type=o)return;this.nodes[this.type].hideo,this.nodesIol.show(),this.type=this.load ersiol.loadthe.scrollToTopifithis.type=},o}),define("skins/default/profile/vote/good_bad",["./total"1,function(t){var ernction(e,i,n,s,o,r,a,c,I){this.vgood=this.vbad=t.apply(this,le,s,o,r,a,c,I1)};return e.prototype=w¶
t,e.prototype._init_counts=nc-tionfflt.prototype._init_counts.call(this),this.counts_vgood=is.node.find(".rating-bar-block .good"),this.counts_vbachis.node.find(".rating-bar-block .bad")},e.prototype._get_tpl_vars=nctiono{var e=prototype._get_tpl_vars.call(this);return¶
e.vgood=is.vgood,e.vbad=is.vbad,e.disp_good_bad=,e},e.prototype._update_counts=nction(e){t.prototype._update_cou nts.call(this,e),this.counts_vgood.text(e.vgood),this.counts_vbad.text(e.vbad)},e}),define("textIskins/default/profile/acti on/comment_form.html",ftfunctionifireturni¶
\n\t {{{ label }}}:\n\t\t\n\t \n\t \n\t\n\t¶
\n\t\t{{ post.author_display }}\n\t\t- {{{ post.date }}}\n\t\t{{^ post.validated }}-¶
\n\t\t{{{ post.text }}An \ t¶
\n¶
1}),define("skins/default/profile/action/comment_form",["config/main","mustache","staticiutils","lib/helpers/inl ine_loader","skinsidefault/profile/action/link","lib/i18n!front","textlskins/default/profile/action/comment_form.html", "textiskinsidefault/profile/action/comment.html"1,function(t,e,i,n,s,o,r,a){var¶
c=nction(c)(this.node=e.render(r,(label:o.("profile.comments.leave_comment"),btn_label:o.("profile.comments.sen d")}));var l=is,d=w¶
s(this.node.find("button"),"/profilesr+t.data.user.username+"/comments/post",!1,!0,c);d.validate=nctionffivar t=trim(5("#profile-comment-contentival()),e=;return¶
0=t.length?e=("profile.comments.please_enter_comment"):t.length>1500?e=("profile.comments.comment_too_lo ng",{"%nb_chars%":1500}):(t.match(An/g)I I Ill.length>10&&(e=_("profile.comments.too_many_lines",{"%nb_lines%": 10})),e?(window.alert(i.unescape(e)),$("#profile-comment-content").focuso.css("border-¶
color","#DE2600"),!1):(5("#profile-comment-content").css("border-¶
color",""),!0)},d.getPost=nctionifireturn{text:S.trim(5("ttprofile-comment-¶
content").val())}},d.onSuccess=nction(i)Of(i.message){var s=result?"text-success":"text-¶
danger";n.get(l.node,!0).setContent('0){var c=w¶
i(o,"/profilesht.data.user.username+Vcommentsr+e.data("id")+"/delete",s._("misc.are_you_sure"),!1,ardelete"Thc. onSuccess=nction(){e.remove()}}r.length>0848tnew¶
n("comment",r,5("lipage"),e.data("id"),a.report)}}},r=nction(t,i){e.apply(this,["comments",t,i,l1,"load-more-wall-¶
comments",s._("profile.loading_next_comments"),"profile-comments"Rreturn r.prototype=w¶
e,r.prototype.on_first_load=nctionfflo(5("#profile-comments").children());var t="ttprofile-comments-form-¶
login");if(t.length>0)return void requireWskins/default/formilogin_create"1,function(e){var¶
i=1").appendTo(t.appencl(document.createTextNode(" ")));e.setup_links(i)Thvar e="#profile-comments-form");return e.length>0?void require(rskinsidefault/profile/action/comment_form"),function(t){var i=w t(e.data("csrf"));i.getNodeaappendTo(e)}}:void¶
0},r.prototype.on_next load=nction(t){o(t)}4),define("text!skinsidefaultivideo/share.html",[1,functionifireturns \n\t\n\t\n\t\n\t\n\t\n\t\n¶
11),define("skins/default/profile",["config/main","./search/headerlfunction(t)("undefined"!=peof t.data.user&&requireWlib/helpers/dom","lib/tab","skins/default/profile/tabs/aboutme","lib/i18n!front","lib/helpers/th umbs_rotator","skins/clefault/profile/title_actions"),function(e,i,n,$){var o=,r="#tabVideos");if(r.length>0){var a;o.tabVideos=,o.tabVideos.action=nction(e){if(a)return void¶
a.load(e);require(rskins/default/profile/listing/videos"),function(t)(a=w t($("¶
").prependTo(r)),a.load(e)));var i="#privacy-edit-¶
videos");i.length>08ArequireWskins/default/profile/action/popup_form"),function(e)(var n=w e(i),o=;o.pushaopt_value:"ANYONE",opt_label:s.("misc.everybody")}),o.push({opt_value:"FRIEND",opt_label:s.("pr ofile.allow.friends")}),o.pushflopt_value:"NOBODY",opt_label:s.("profile.allow.nobody")}),n.addSetting(s.("profile.p rivacy.who_can_view_videos"),"profile[upload_access]",o,t.data.user.access.upload}})},o.tabVideos.subhashes=videosnew","videos-best","videos-rating","videos-pornstar"Dvar c=nction(){},I=IltabActivity");if(1.1ength>0)(var d;c=nction(){d I I require(rskins/clefault/profile/listing/infinite","skins/default/profile/images"),function(e,i){d=w e("ac-tivity",l,t.data.user.url+Vactivity",!0,"load-more-activities",s._("profile.loading_more_activities"),"profileactivities"),d.on_first_load=nction(){i(l.find(".img-block .gif-tag"))),d.on_next_load=nction(t){i(t.find(".img-block .giftag"))),d.load()))),o.tabActivity=o.tabAboutMe=nction()(n(),$("#goto-¶
activity").on("click",function(t)(t.preventDefault(),$("#tab-activity").click())));var h="14tabPhotos");if(h.length>0)(var u=;o.tabPhotos=nction(){if(!u)(u=;var e=find(".img-¶
block");0!=.1ength&&requireWlib/helpers/viewer/manager","skins/default/profile/vote/total","skins/default/profile/act ion/link","skins/clefault/profile/images"),function(i,n,o){e.each(function()(var¶
e=this),s=data("galid"),o=data.galleries[s];1=o.nb_pics&&e.on("click",function(r){r.preventDefault(),e.off("click");var a=getOrCreate(s,e,{close_button:10,other_links:{".img-block":"p a"),insert_dom_selector:"#profile-galleries > h4",insert_dom_jqfunc:"after",title:o.title,static_host:t.domains["static"]));"string"=ypeof¶
o.vratina&a.node.on("imageloaded",function(){var t=w n($("¶
").appendTo(a.node.find(".position").empty()),o.rating,o.vrating,o.total,o.visitor_vote);t.initPostData(Vprofiles/ "+o.owner+Vgalleriest+s+Vvote/good"Nprofiles/"+o.owner+Vgalleries/"+s+Vvote/bad",{csrf:o.csrf}),t.setPopupPosit ion("above","left"))),a.openimage(0)))));var r="#delete-verified-¶
picture");if(r.length>0){r.on("click",function(t)(t.stopPropagation()));var a=w¶
o(r,"/profilesflt.data.user.username+"/unverify",s._("profile.unverify.confirm"),!1,t.data.user.csrf.uunverify);a.onSucc ess=nction(){r.parents(".img-block").remove(),window.location.reload()})))}}}var f="#tabFriends");if(f.length>0)(var p=;t.data.user.has_friends&&p.push("friends"),t.data.user.has_fans&&p.push("fans");var¶
g;o.tabFriends=,o.tabFriends.action=nction(e)(if(g)return¶
void(p.length>1&&g.load(e));p.length>1?requireWskins/default/profile/listing/friendsl,function(t)(g=w t(f),g.load(e))):requireWskins/common/listing/loadertfunction(e)(g=w e(0101,$("¶
").prependTo(f),t.data.user.ur1+"/"+p(0),!1,!0),g.load()));var i="#privacreditfriends");i.length>0&&require(["skins/default/profile/ac-tion/popup_form"],function(e){var n=w¶
e0),o=;o.push((opt_value:"ALLOW",opt_label:s.("misc.everybody"))),o.push({opt_value:"FRIEND_OF_FRIEND",opt_lab el:s.("profile.allow.friends_of_friends")}),o.push({opt_value:"BLOCKED",opt_label:s.("profile.allow.nobody"))),n.add Setting(s.("profile.privacy.who_can_friend_request"),"profile(friend_requestr,o,t.data.user.access.friend_requests),o =,o.pushllopt_value:"ANYONE",opt_label:s.("misc.everybody")}),o.pushHopt_value:"REGISTER",opt_label:s.("profil e.allow.only_registered")}),o.pushaopt_value:"FRIEND",opt_label:s.("profile.allow.friends")}),o.push({opt_value:"NOB ODY",opt label:s.("profile.allow.nobody")}),n.addSetting(s._("profile.privacy.whocanviewfriends"),"profile[friend _list_accessr,o,t.data.user.access.friends)))),p.length>1&&(o.tabFriends.subhashes=friends","fanslilvar ="iffayscontainer");if(.length>0)(var¶
v;o.tabFavorites=nction(){if(!v){requireWskins/common/listing/loader/paginated7skins/default/profile/vote/good_bad "],function(i,n){v=w i("favorites",_,t.data.user.url+"/favorites",!0);var s=;v.get_loader_containers=nction()(return s?(s=,this.container.find(".favorites")):this.containeftv.onLoaded=nction(){var i=data.user.id_user;$(".fav-listvotes").each(function(){var t=this),e=data("vote"),s=data("id"),o=w¶
n(t,e.vgood,e.vbad,e.rating,e.vrating,e.total,e.visitor_vote);o.initPostData(Vfavorite/voter+s+"/"+i+"/GOOD","/favorite /voter+s+"/"+i+VBAD",{csrf:e.csrf}))),e.scroliToTop()),v.load()));var i="#profile-fays-¶
add");i.length>0&&require(rstatiautils","skins/default/profile/action/popupformlfunction(e,n)(var o=w¶
n(i,s.("video.fays.add_new"),s.("video.fays.createlist")),r=x.push(topt_value:"ANYONE",opt_labets.("profile.allo w.public"))),r.push({opt_value:"REGISTER",opt_label:s.("profile.allow.registeredl}),r.push({opt_valuerFRIEND",opt_l abeks.("profile.allow.friends"))),r.push((opt_value:"NOBODY",opt_labeks.("profile.allow.nobody"))),o.addSetting(s.¶
("video.fays.visibility"),"status",CANYONE"),o.addlnput(s.("user.name"),"name"),o.setMessages(s.("video.fays.f av_created"),s.("video.fays.creating")),o.setRequestParamsr/favorite/create",functionnivar t="#profile-fays-addname"),i=trim(t.valQ);return¶
ilength<37(window.alert(e.unescape(s._("video.fays.min_length",{"%nb_chars%":"3"}))),t.focusacss("bordercolor","#DE2600"),I1):(t.cssrborder-color,"1,10)},t.data.user.csrf.favcreate))))))var¶
metttabComments");if(m.length>0)(var¶
b;o.tabComments=nction()(if(lb)(requirell"skinsidefault/profile/listing/commentslfunction(e)(b=w e($("¶
1.prependTo(m),t.data.user.url+Vcomments"),b.load()));var ee#privacy-editcomments");e.length>0&&requireWskinsidefault/profile/action/popup_formlfunction(i){var n=w i(e),o=;o.push({opt_value:"REGISTER",opt_labeks.("profile.allow.only_registered"))),o.push((opt_value:"FRIEND",opt labebs.("profile.allow.friends"))),o.pushllopt_value:"NOBODY",opt_label:s.("profile.allow.nobody"))),n.addSetting(s ._("profile.privacy.who_can_comment"),"profile[wall_accessno,t.data.user.access.wall))))fivar¶
y=;o.tabShare=nction(Hy I I require(rstatichtils","text!skinsidefaultivideo/share.htmr],function(te)(y=,$("#tabShare"). append(e),window.addthis_config=ndow.addthis_config I I {},window.addthis_config.pubid=a-¶
501.17bd44d12cd79",t.loadScript("//s7.addthis.com/js/250/addthis_widget.jsnasync=,{async:"async"},{load:function(){wi ndow.addthis.init()}))))),new i("#profile-¶
tabs",o,11,10,"class"))))),definerskinsidefault/profile_gallery",[ficonfig/main","./search/headerlefunction(t)rundefined" l=peof¶
t.data.user&&require(rconfig/main","lib/tools","lib/helpersiviewer/manager,"skinsidefault/profile/vote/goodbad"," skinsidefault/profileititle_actions","skins/default/profile/imageel,function(te,i,n)(var s=data.gal,o=w n($("#gal-listvotesits.vgood,s.vbad,s.vrating,s.rating,s.total,s.visitorvote);o.initPostData("/profilesf+s.owner+Vgalleriesr+s.id_gal +"/vote/good","/profilesf+s.owner+"/galleriesf+s.id_gal+"/yote/bad",(csrf:s.csrf}),i.getOrCreate(s.id_gal,$(1ftabPhoto s .thumb-mozaique"),(title:s.title,static_host:t.domainsi"static1));var r=getUrillash();if(r.length>0&&r.match(Pgalpic-W+$/g))(var a="#"+r+" .thumb >¶
a");1=a.length&&a.click()}})}),definerskinsidefault/form/region_select",rlib/helpers/inline_loadenfunction(t)(var e=,i=nction(t){var e=; for(var i in t)e.pushacode:i,name:t(i)));retum e.sort(function(t,e){return t.name>e.namen-1}),e),n=nction(t,e){var i=t);if(this.region=e),01=length&&0!=his.region.length)(this.loader=11,this.error=11;var n=is;t.on("change",function()(n.onchange($.trim($(this).val())))),i.val().length>0&&this.region.children().length<2&&i.tri gger("change")}};return n.prototype=n_change:function(t)(iNthissegion.emptythappend("),R)retum void this.set_regions({});ifrundefined"!=peof e[tHreturn void this.set_regions(e[t]);this.show_loaderthvar n=is;S.geUSON("/account/getregions/",{country:t},function(s){if(!s.success)return void n.set_error(s.message);var o=s.regions);e(ti=n.set_regions(o))).error(function()(n.set_error("An error¶
occured1")}).complete(function(){n.hide_loader()})},show_loadenfunction()(return this.loader?void this.loader.showthvoid(this.loadernet().getNode().appendTh(thissegion.parento.prev()))),hide_loader:function()(this.1 oader.hide()),set_regions:function(t)(this.region.nextM(".help-blodc.text-danger").remove();for(var e in t)this.region.append("+t[e].name+"");this.region.prop("disabled",0=tiength)},set_error:function(t)(thissegion.prop("dis abled",10),this.error I I (this.error=").insertAfter(this.max)),this.error.show().html(t)),hide_erronfunction()(this.error&&th is.error.hide())),t)),define("skinsidefault/profiles"flform/region_select","Iform/range_select","./search/header","lib/ helpers/thumbs_rotatorlfunction(t,e)(new t("itcountry_select","#region_select"),new e("age_rangeselect"),$("#profile-search-filters-summary").findrbtn,.valuel.on("click",function()(Witprofile-searchforml.toggleClass("expanded¶
contracted"))))),definerskinsidefault/profilesdidcsort",("Iprofiles,,function(){}),definerskinsidefault/profilesindex", ["./profiles"],function(){}),define("skinsidefault/form/unit_selecrrib/converter],function(t)(var e=nction(te){this.options=t).children(),this.val_unit=weturn e.prototype=onvert:function(e,i){var n=is;this.options.each(function()(var¶
s=this),o=rseFloat(s.val());01=&&(e!=.val_unit&&(o=convert(o,n.val_unit,e,0,1)),s.text(o+"¶
"+e))))}},e)),define("skinsidefault/profiles_search"J"config/main","./form/range_select","Iform/unit_select","./profiles ifunction(t,e,i)($("#profile-search-advanced").on("dick",function(t)(t.preventDefault(),$("Iprofile-searchforml.removeClass("display-compact display-create-account display-create-profile").addClass("displayadvanced"),$(this).hide())),new e("height_range-select"),new e("width_range-select");var n="#switch-search-bodyunit");if(n.length>0)(var s=data.body_unit,o=w i("#height_range-select_min,#height_range-select_max","cm"),r=w i("#weight_range-select_min,#weight_range-select_max","kg");n.on("click",function(e)(e.preventDefault();var i=U"=s?"US":"EU";n.html(t.data.body_unit_switchli)),$("#search-body-¶
unit").val(i),o.convert("US"=i?"in":"cm",1),r.convert("US".i?"lbs":"kg",0),s=)}}},define("skinsidefault/profiles_videos",[". isearch/header","lib/helpers/thumbs_rotator"),function(){}),define("skins/default/tag",["lib/helpers/thumbs_rotator",". /search/header"bfunction()(var t,e,i="#search-page-filters-block"),n=;t=find(".btn,.selected¶
al.on("click",function(s){s.preventDefault(),i.toggleClass("expanded"),t.html(n?e:"Hide¶
filters ♦ "),n=}).fi Iter(". btn"),e=htm I ( ))),defi ne("skins/default/search",("Itag"),f unction(){var t="#search-¶
associates");t.find(".show-more a").on("click",function(){t.toggleClass("mobile-¶
expanded")})}),define("skinsidefault/tags"rlibitools","./search/header"),function(t)(var e,i.,n="#filter-tags-¶
input"),s=;0!..val().length I I "Ilgay"!=indow.location.hash&&"14shemale"!=i ndow.location. hash I I n.val(window.location.h ash.substr(1));var o=nctionfill I I (i=,e="#tags¶
li").each(function(}{$(this).data("tag",$.trim(t.translit($(this).find("b").text()))))))},r=nction()(o();var¶
i=trim(t.transl it(n.val()));if(i!=)return s=0=i.length?void e.removeClass("hidden"):void¶
e.each(function(){5(this).toggleClass("hidden",$(this).data("tag").index0f(i)=-¶
3.))));n.on("keyup",r),n.val().length>0&&r())),define("skins/commonivideo/comments/form",["config/main","mustache", "II b/tools","li b/hel pers/inl ine_loader","lib/helpers/overlay/box","lib/i 18n Ifrontlfunction(t,e,i,n,s,o)(var¶
r=nction(r,a,c) hear I =pload_domain:t.domai ns. master,static_domai n:t.domains["static"),has_prof le:"undef ined" !=peof t.data.logininfo.profile&&t.data.logininfo.profile!=1&&01..data.logininfo.profile.length,labels:o._("video.comments . ""),csrf:t.data.com mentscsrfbc&&!I. has_profi le I I (l.is_form=,I.has_profile&&(l.profile=data.login_info.profile,l.p=data.) ogin_info.profile,l.pu=data.login_info.profile_url,l.iu=data.login_info.profile_img,I.n=ucfirst(t.data.login_info.profile))),th is.node=e.render(r,l,{comment:a}));var d,h.,u=is,f=is.node.children("form"),p=nction(t)(if(t.message)(var e=result?"textsuccess":"text-¶
danger";s.get(u.getNode(),10).setContent(10&&(s.commentsioLis_uploader=commentsiol.p=t.data.uploader);var c=e.render(p,s,{tpl:g})).appendTo(l);vis.pagel=ode:cbs.pagination&Mvis.pagel.pager=get(s.pagination).appendTo(l),v[s. page]. pager.fi nd("a").on("cl ick",C)},s.comments.length>2&&(s.pagination I I (v[s.pagej.pager=getEmpty().appendTo(9),v( s.page).pager.children().append($("¶
").append($(— ).on("click",T)))),i.scrollToTop(a.offset().top-¶
300),d.text(s.nb_comments),b=page,m=nb_comments,N,S=nction(e){("undefined"=ypeof¶
e I I isNaN(e))&&(e.,f I I e=b I I ("undefined"!=peof v[e]?(w(11),b=w(!0),i.scrollToTop(a.offset().top-¶
300)):(f=,window.setTimeout(x,500),S.post(Vvideo-get-¶
commentsr+t.data.id_video+"/"+e+"/",E,!1).fail(function(t,e,i)(console.error("DEBUG failed loading comments: "+e+":¶
"+i),s.get(c,!0).setContent(").show(}}}.complete(function()(f=,k().hide())))));return function(e,i,n,$){if(!_)return _=,p=g=a="#tabComments"),c="#comments-container"),I="#comments"),d="#video-tabs .nb-video-¶
comments"),h="ttvideo-post-¶
comment"),h.on("click",T),t.data.nb_comments>0&86(),Is I I t.data.login_info.is_logged?void¶
requireWskins/commonivideo/comments/formstfunction(t)(var e=w¶
t(n,i,$);e.posted=nction()(y(),S(0)},a.append(e.getNode()))):void¶
s(a)}}),define("text!skins/defaultivideo/comments/page.html",[],function()(return"¶
{{#comments}}{{> tpl}}{{/comments}}¶
\n"}),define("text!skinsidefaultivideo/comments/comment.html",ftfunction(){return.¶
\n\t\t{{# p }}{{/ p }}\n\t\t{{^ p¶
Hit p ill{ n })({# p }AV p }HO d - {{# is form }An \ t{{# has_profile }An \ t \n\t\tplease setup your profile. \ n \ t{{/ has_profile }}\n¶
'}),define("skins/default/video/comments",["skins/common/video/comments","text!./comments/page. html", 't ext!./comments/comment.html","text!lcomments/form.html","lib/i1.8n!front"],function(t,e,i,n,$)(return function(){t(e,i,n,function(t)(requireWskinsidefault/form/logincreatelfunction(e)(e.setup_links($(1¶
").appendTo(t).children("a"))))))))),define("skins/commonivideo/download",("config/main","lib/helpers/inline_l oader","lib/i18n!frontl,function(t,e,i)(var n=nction(){this.displayed4;return¶
n.prototype=heck:function()(this.displayed I (this.displayed=,this.contener="kabDownload"),this.messages=_("video.d ownload."),this.check_download())),on_not_logged:function()(console.error("download.on_not_logged not implemented")),on_checked:function(t){if(!t.LOGGED)return void this.on_not_logged();var e="¶
").addClass("text-center");if("string"=ypeof t.ERROR)e.addClass("text-¶
danger").html(t.ERROR);else if("string"!=peof t.URL){var i=is:e.addClass("text-¶
danger").html(this.messages.error_occured_retry.replace("%here%",'")).find("a").on("click",function(t)(i.check_downloa d(t)))1else{var¶
n=is.rnessages.ready;t.URL_LOW?(n+="+this.rnessages.click_to_get.replace("%high_or_low_quality%",w)):n+="+this.rnes sages.click_to_get.click_to_get_dlreplace("%here%","+this.messages.here+""),e.addClass("downloadready").html(n)}this.contener.empty().append(e)},check_download:function(i)("undefined"!=peof i&&i.preventDefault(),this.contener.append($("¶
").addClass("text-danger text-¶
center").append(e.getSafe("after",this.messages.checking).getNode()));var n=is;$.post(Vvideodownloadht.data.id_video+"/",function(t)(n.on_checked(t)),!0,1son").fail(function()(this.contener.empty().append($("¶
").addClass("text-danger text-¶
center"). htm l(this. messages.error_occuredretry.replace("%here%",'"))).find("a").on("click",function(t)(n.checkdownlo ad(t))))))),n)),define("skinsidefaultivideo/download",1"skins/common/video/download","lib/i18n1front"],function(t,e){y ar i=w t;return i.on_not_logged=nction()(var t=is;require(["skins/default/form/login_createl,function(i)(i.setup_links($('¶
1+e._("misc.click_here_login_create_account")+"¶
").appendTo(t.contener.empty()).children("a"))))),function()(i.check()))),define("skins/commonivideo/vote",["co nfig/main","lib/helpers/inline_loader","lib/helpers/popup","lib/i18n Ifronafunction(t,e,i,n){var s,o="ftvideo-viewsvotes,tivideo-votes"),r=find(".vote-actions a"),a="c=11,1=11,d=nction(t,e)(return s?s.setButton(t).setContent(e):s=w i(t,e,(relative_to:o.parent(),position:{v:"below",h:"Ieft"},trigger:!1}),$);r.on("click",function(i)(if(i.preventDefault(),!a)(a=; var s=this),h=html(),u=hasClass("vote-action-¶
good"),f=t.data.vote_uris.good:t.data.vote_uris.bad;r.addClass("disabled"),s.html(e.getimg()),$.post(f,function(t)(s.html( h);var e;if(t.result)(o.find(".rating-bar .total").text(t.total),o.find(".rating-bar .pgs-bar div").css("width",t.rating+"%");var i=find(".rating-¶
box"),a=children("span").not(".decimals"),I=rating.toFixed(2).split(".");1=1.length&&l.push("00"),i.html(1[0]+%").prepend (a),r.filter(".vote-action-good").children(".value").text(t.vgood),r.filter(".vote-action-¶
bad").children(".value").text(t.vbad),"function"=ypeof c&&(e=u)),el (e=_("video.votes.thanks")),e=strong>"+e+""lelse e=strong class=ext-¶
danger">'+t.message+"";d(s,e).open()),"json").fail(function()(s.html(h),d(s,'").open())),t.data.login info.is logged rfunc tion"!=peof II I(u)}});var h=nction(t,e){c=1=;return¶
h}),define("text!skins/common/video/playlist.html",[1,function()(return'¶
\n\t\t¶
- \n\t \n\t \n\t '}),define("skins/common/video/playlist",["config/main","mustache","static/utils","lib/tools","lib/helpers/inline loader","lib/helpers/popup","lib/helpers/thumbs_rotator","text./playlist.html","lib/i18n!front"],function(t,e,i,n,s,o,r,a, c){var l=parseUrl(window.location.href,"query",!0),d=if("undefined"!=peof l.pl){var
h=;if(0=l.pl.search(/^\d+$/)){if(d=rseInt(l.pl),d<0)return}else{if(0!=.pl.search(/^-[\da-z)+$/)}return;d=pl,h=}var u=ndow.location.pathname.split("/"),f=u[1].substr(5);parseInt(u[1].substr(5)),p=avorite";if("string"=ypeof l.pltype}{if("related" !=. pltype)return;p=pltype}var¶
g, y.m.b.y.w.k.x,C,T,E,S.A.N,O= ("playlist.*"),P=,R=.j=,l=q=ll,D=,M=,L=,B=,z=H=,U=,W=,Y=,X=,F=nction(t,e){ var i;return i=elated"=p?"/video"+d+"/related/playlist/"+t:"/favorite/"+t,e&&(i+="+e),i})=nction(t,e}{var i=;e&&(i=class=ext-danger"),B?B.setContent(""+t+""):B=w¶
o(y,""+t+"",{trigger:!1,position:{v:"below",h:"right"},relative_to:$("#video-playlist")}),B.open()},J=nction(t,e){var i=;e&&(i=class=ext-danger"),M?M.setContent(""+t+""):M=w¶
o(w,""+t+"",{trigger:!1,position:{v:"below",h:"left"},relative_to:$("#video-¶
playlist")}),M.open()},G=nction(t,e,i){"after"=t?V(e,i);J(e,i)},K=nction(){B&&B.close(}},Z=nction(){var t=width();C=outerWidth(),T=th.round(t/C),E=T<=E=T<=&(E=},Q=nction(t,e){if(!N){var¶
n;if("next"=t){if(n=T,n+2*T>=&st(},n>z-T){if(!L)return;if(n=T,n=q}return}}else if("prev"=t){if(n=T,n-¶
2*T<=&ot(),n<0){if(!D)return;if(n=0=q)return}}else n="string"=ypeof t&&(j=),P==-¶
\n¶
T&&Y&&L,y.toggleClass("invisible",P),R==&&Y&&D,w.toggleClass("disabled").css("cursor","w ait"),q+T>z-T&&!L&&H&&y.html(s.getImg()).prop("title",i.unescape(O.loading_next)),q-¶
T<0&&!D&&w.html(s.getImg()).prop("title",i.unescape(0.loading_prev));var¶
o=nction(){(q+T<=T||L||!H)&&(P=T=z&&L,y.html(">").toggleClass("disabled",P).css("cursor","").toggleClass("invisible",P) ),(q-¶
T>=|D||!U)&&(R==&&D,w.html("<").toggleClass("disabled",R).css("cursor","").toggleClass("invisible",R)},N=,W&&W()};e ?(x.css("margin-left","-"+q*C+"px"),o()):(N=,x.animate({"margin-left":"-¶
"+q","px"},"false",o)}},tt=nction(){return!j&&(Q(Math.max(0,Math.min(l-E,z-T)),!0)},!0}},et=nction(){m.html('¶
").find("a").on("click",function(t){return¶
t.preventDefault(),it(),!1}),it=nction(){return g=e.render(a,{labels:0}}),_=find("#playlist-header"),v=find("#playlistcontent"),m=children(".mozaique"),b=children("button.toggle"),y=children("button.next"),w=children("button.prev"),k= add(w),m.html("¶
"),$.post(F(f),function(e){if(e.result){"object"=ypeof¶
html5player&&"function"=ypeof¶
html5player.setPlaylist&&html5player.setPlaylist(e.title,e.url,e.videos,e.nb_videos,e.position);var s=title;"default"=e.title.toLowerCase()&&(s=playlist);var o=span class=con playlist" +O.playlist+'> "+c._("misc.by_user",{"%user%":"+e.username+""}}+""),o+="__removeClass("hidden").children("h4").html(0);var a=n.replaceThumbcast(e.html));m.html(a),n.executePendingPrepare(m.find(".thumb-block")),r(a,!0);var l=nxx"=t.sitename?O.playing_video_x.replace("%video_idx%",(e.position+1).toFixed(0)).replace("%nb_vi deos.toFixed(0)):0.now_playing;return m.children(":eq("+e.posinlist+")").addClass("selected").find(".thumbinside").append("¶
"),D=start_reached,L=end_reached,z=videos.length,x=children().first(),S=videos[0].id,A=videos[z-1].id,q=posinlist,l=Z(),tt(),b.on("click",function(){v.slideToggle("fast"),X=,b.html(X?" ▲ ":" ▼").prop("title",i.unesc ape(X?O.hide:O.display)),w.toggleClass("invisible",!X||R),y.toggleClass("invisible",!X||P}}),y.on("click",function(){K(),Q(" next")}),w.on("click",function(){K(),Q("prev")}),Y=,void $(window).resize(function(){z>0&&(N&&(x.stop(!0,!0),N=),Z(),tt()||Q(q,!0)}}}return e.message?void m.html("¶
"):void et()),,son").fail(et),g),nt=nction(t,e,i,n)($.post(F(te),function(t)(retum
t.result?(i(t),void n()):(n(),t.message?void G(e,t.message,l0):(G(e,O.failed_loading_vids,l0),void
Q(q,l0)))),"json").fall(function()(n(),G(e,O.failed_loading_vids,l0)))),st=nction()(if(!H&&IL)retum
11.,nt(A,Nafter",function(t)(var e=n.replaceThumbcast(t.html));m.append(e),n.executePendingPrepare(m.find(".thumb-
blodc")),r(e,l0),tend_reached&&(14z+=videos.length,A=videosit.videos.length-
1.),Q(q,l0)},function(RH=Dbot=nctionOlif(lU&&ID)return U.,nt(S,"before",function(t)(var e=nction(){var
e.n.replaceThumbcast(thtml));m.prepend(e),n.executePendingPrepare(m.find(".thumb-
blodc")),r(e,!0),t.start_reached&&(D=),z+=videos.length,x.css("margin-
left",""),x=children().first(),S=videos[0],q+=videos.length,W=,Q(q,l0));N?W=e()),function()(U=}Threturn
itM,definertextlskinsidefaultivideo/sponsor_link.htmr,1],function(lireturni
- {{{sponsor.d}}}
\n'fl,definertextlskins/defaultivideo/report.html"afunction(){returni¶
\n\t\t\t¶
\n\t\t\t\t\t\n\t\t\t\t\t\t{{# reasons }}\n\t\t\t\t\t\t¶
{( label }}¶
\n\t\t\t\t\t\t{{/ reasons }}\n\t\t\t\t\t¶
\n\t\t\t\t¶
\n\t\t\t\t¶
\n\t\t\t\t\t\t\n\t\t\t't \n\t\t\t\t\t\t\n\t\t\t\t\t¶
- \n\t\t\t\t
- \n\t\t\t
- \n\t\t
- \n\t\t
- \n\t\t\t\t{{{ labels. report
}}}\n\t\t\t\t50&&n.videos.shifto,n.videos.push(e),IocalStorage.setItem(trISON.stringify(n)),console.log("Video "+e+" processed")},getHistory:functionQ{var e=calStorage.getltem(t);if(le)returrevar¶
i=ON.parse(e);if(li I I li.keywords)return(J;var n=is.arsort(i.keywords),s=;return¶
s.keywords=slice(0,15),s.videos=videos,sbresetRelated:function()(localStorage.removeltem(t)%new¶
- eThdefine("skins/commonivideo/tracking",1"config/mainl,function(t)(var e=nction(Hif(this.allow_tracking=,this.declare_sent=,thitlast_view=,this.storageAvailable()&&t.dyn.ref&&t.dyn.id)(var e=ast_view",i=calStorage.getltem(e);if(i){var
n=0N.parse(i);n&&n.id&&n.ref&&n.idl=dyn.id&&(this.last_view=this.allow_tracking=)}var¶
s=;s.id=dyn.id,s.ref=dyn.ref,localStorage.setItem(e)SON.stringify(s))));retum¶
e.prototype=torageAvallable:function()(try(var t=ndow.localStorage,e=_storage_test %return¶
t.setItem(e,e),t.removeltem(e),I0)catch(i){retumll}hdedareLink:function()Of(console.log("Try to declare¶
link"),Ithis.declare_sent8Sithis.last_view&Fithis.allow_tracking)(this.declare_sent=;var¶
e=;e.gentime=dyn.gentime,e.source_id=is.last_view.id,e.source_ref=is.lastview.rete.current_id=dyn.id,e.current_ref=d yn.ref,$.post("ivideo-hit",e)}anew¶
eThdefinerskins/commonivideo/related",rconfig/main","lib/helpers/dom","lib/helpers/thumbs_rotatorl,function(t,e,i )(var n,s="tfrelated-videos"),o=children(".show-more");=,a=childrenrmozaiquel,c=children("Shumb-¶
blode),I=;0=o.length&&(o=children(".row").find(".show-more"));var d=nction(t){var s==0;if(s I I l)(kn=lkvar o=,a=,d=);if(!r){var h=getViewportWidth();o=H0?"after-¶
8":If),d=add(t),11}),d.length>0&&i(d,l0)}};d(!0),o.on("click",function(t)(t.preventDefaultao.off("dick"),m,d(l0),s.addClas srexpanded"))),$(window).onrresize",function()P,n (n=tTimeout(d,500)))),$(document).ready(function(lid(10))))),de finerskinsidefaultivideo/subscribe",rconfig/main","staticiutils","lib/helpers/inline_loader","lib/helpers/popup","skins/ default/features_testhideo_subs","lib/i18nlfront"J,function(t,e,i,n,s,o)(var r="ttvideo-subscribe");if(Ol=.length){var a,c.,I=II,d=nction(h)(if(h.result){var u,f,p,g=children(".label");if(lh.is_logged)return¶
r.show(),s.isTracking()?(r.off("clidc"),s.hasSubscribed(t.data.uploader_id)?(g.html(o._("subscriptions.unsubscribe")),voi¶
47¶
- d r.on("click",function(e)(e.preventDefault(),s.unsubscribe(t.data.uploader_id),g.html(o._("subscriptions.unsubscribed")), r.off("click"),$.post("/profiles/"+t.data.uploader+"/followers/unsubscribe")))):void
r.onrclick",function(e)(e.preventDefaulto,s.subscribe(t.data.uploader_id),g.html(o._("subscriptions.subscribed")+1 ttp://info.xvideos.com/content/¶
"),r.off("click"),$.post("/profiles/"44.data.uploader+"/followers/subscribe")))):void(t.data.login_info.profile?r.prop("href" ,t.domai ns.master+"/account/?redirect=encodeU RIComponent(wi ndow.location. href)):r. prop("href",t.domains. master+ "/account/create_profile"));if(!h.is_owner)(var¶
=csrf I "";h.is_follower?(g.html(o.("subscriptions.unsubscribe")),u=profiles/"+t.data.uploader+"/followers/unsubscri be",f=("subscriptions.confirm_subscribed"),p=("subscriptions.unsubscribed")):(u=profiles/"+t.data.uploader+"/follo wers/subscribe",p=("subscriptions.subscribed")+1¶
"),r.show().off("click").on("click",func-tion()(f&&!window.confirm(e.unescape(f)) (a &&a.close(),g.html(i.getSafe("after", o.("loading.loading")).get Html ()),$.post(u,{csrf:},function(e)(if(e.result)g. htm l(p),r.off("cl ick");else¶
if(9=e.code){if(c)return c=,fris_follower,void¶
$.post("/profiles/"+t.data.uploader+"/followers/check",d,"json");g.html(o._("misc.reload_the_page")),a?a.setContent( ""+e.message+""):a=w¶
n(r,""+e.message+"",(position:{v:"below",h:"Ieft"),trigger:!Lautoclose:!Lclosebtn:!0,popup_class:"video-subscribepopup")),a.open())else¶
g. html (e.message I o.__("misc.error")))).fail (function()(g. html(o._("misc.error"))))))),nul I !=&&(I =h.is_follower?r.click():( g.html(p),r.off("click"))))));return t.data.login_info.is_logged&&t.data.login_info.profile?void¶
$.post("/profiles/"+t.data.uploader+"/followers/check",d,"json"):void¶
d((result:!0,is_logged: !1.))))),define("skins/com mon/video/report", ("config/main","mustache","lib/helpers/inl ine_loader ","lib/helpers/overlay/box","li b/i 18n !frontlfunction(t,e,i,n,$){var o=nction(o){this.messages=_("report_form.");var r=val ue:"nevermind",label :this. messages. nevermind,checked: !0),(val ue:"spam",labekthis.messages.spam,checked:11),(v al ue:"notporn",label:this.messages.not_porn,checked:!1),(value:"underage",labekthis.messages.underage,checked:!1),{ value:"other",label:this.messages.other,checked:!1}];this.node=e.render(o,{reasons:r,labels:this.messages}));var a,c=isel =is. node.children("form"),d =nction(t)(if(t.validation_error)n.get(c.get Node(),!0).setContent(").show();else(var e=result?"text-success":"text-danger";c.getNode().replaceWi the¶
'+t.message+"¶
"))),h=nctionffia I I (a=get(c.getNode(),!1,"hide").setContent(i.get("after",c.messages.sending).getHtm l())),a.show ();var e=serializeArray();for(var sin e)if("reason"=e[sj.name)(if("nevermind"=e[s].value)return void d({result:!0,message:c.messages.thanks});breal0.post("/video-¶
report/"+t.data.id_video+"/0",e,d,"json").fail(function()(n.get(c.getNode(),!0).setContent(—).show())).always(function(){ a.hide()}));this.node.find("button").on("click",h));return o.prototype=etNode:function(Hreturn¶
this.nodetho}),define("skins/default/video",("config/main","./search/header"),function(t)(null!=.data.id_video&&requir e(["mustache","static/utils","lib/tab","skins/default/video/comments","skins/default/video/download","skins/default/vi deo/favorites","skins/common/video/vote","skins/common/video/playlist","skins/default/features_test/videos_i_like", "textiski ns/default/video/sponsor_link.html","text!skins/default/video/share.html","text!skins/default/video/report.ht ml","lib/i18n!front","skins/default/video/related_keywords","skins/common/video/tracking","skins/common/video/rel ated","skins/default/video/subscri be","li b/hel pers/thum bsrotator"],function(e,i,n,s,o,r,a,c,l,d,h,u,f,p)(if(t.data.sponsors &&t.data.sponsors.)ength>0&&!t.data.hide_sponsors){var¶
g=th.random(rt.data.sponsors.length,=data.sponsors[Math.floor(g)];$(e.render(d,(more_at:f.("video.sponsors.more at"),sponsor:))).insertAfter($("gvideo-tabs").first()),$("gshow-channel-¶
desc").on("click",function(t)(t.preventDefault(),$(this).parent().addClass("expanded"))))var v="gshow-alltags"),m=next().children("a:Iast-child");m.length>0&&m.position().left+m.outerWidth(!0)>=position().left-10?v.onrclick",function(t)(t.preventDefault(),$(this).parent().addClass("expanded"))):v.remove(),a(function(e)(return t.data.login_info.is_logged I I.isTracking()?f.("video.votes.thanks_li nk",("%start_li nk%":1")):f.("video.votes.thanks")) ,function(e)(e?!.voteGood(t.data.id_video):I.vote8ad(t.data.id_video))),"function".ypeof c&&c().insertAfter("gvideotabs");var b=;b.tabComments=b.tabDownload=b.tabFays=var y=,w=nction()(if(!y)(y=;var¶
t="#tabShareAndEmbed");t.length<1&&(t="#tabShare"));t.length>0&&(t.append(h),window.addt his_config||{},window.addthis_config.pubid=a-¶
501f7bd44d12cd79",i.loadScript("//s7.addthis.com/js/250/addthis_widget.js#async="async"},{load:function(){wi ndow.addthis.init()}})}};$("#tabShareAndEmbed").length>0?b.tabShareAndEmbed=b.tabShare=var¶
k=;b.tabReport=nction(){require(["skins/common/video/report"],function(t){k||(k=,$("#tabReport").append(new t(u).getNode()))}})},new n("#video-¶
tabs",b,l0),p.declareVideoView(t.data.related keywords}}}),define("skins/form/validator/base",["static utils"],function(t){var e=,i=nction(t,e){"object"=ypeof¶
e&&(this.parent=this.options=options,this.messages=messages)};return¶
i.prototype=rrorChanged:null,focus:null,getRegexp:function(t){if(e[t]}return e[t];if("/"!=.substr(0,1)}return e[t]=w RegExp(t,"g"),e[t];var i=lastIndexOf("/");if(i <=return e[t]=w RegExp(t,"g"),e[t];var¶
n=substr(i+1).toLowerCase().replace(/[^gimuy]/g,"");return 0=n.length&&(n="),e[t]=w¶
RegExp(t.substring(1,i),n),e[t]},getMessage:function(e,i,n){var¶
s=if(this.messages[e]&&(s=unescape(this.messages[e])),n)for(var o in¶
n)n.hasOwnProperty(o)&&(s=replace(o,n[0]));return s},strimwidth:function(e,i){return"string"!=peof¶
e&&(e=toString()),e.length+3>i?t.escape(e.substr(0,i-¶
3))+"... ":t.escape(e)}},i},define("skins/form/validator/agreement",["lib/tools","ib/helpers/popup"],function(t,e ,i){var¶
n=,s=nction(t,i){e.apply(this,[t,i),this.checkbox="#"+this.id),this.checkbox_err,this.popup,this.popup_timer ;var n=is;this.checkbox.on("change click",function(){n.validate()}),this.validate()};s.prototype=w¶
e,s.prototype.refresh=nction(){this.positionError()},s.prototype.focus=nction(){t.scrollTo(this.checkbox,100),this.showErr or()},s.prototype.isValid=nction(){return this.checkbox.is(":checked")},s.prototype.validate=nction(){return¶
this.checkbox.is(":checked")?(this.hideEror(),void(this.errorChanged(!1,this))):(this.showError(),vo id(this.errorChanged&&this.errorChanged(!0,this))},s.prototype.showTooltip=nction(t){this.popup?t&&this.popup.setC ontent(t):this.popup=w¶
i(this.checkbox_err,t,{relative_to:this.checkbox.parent(),trigger:!1,popup_class:"form-popuperror",position:{v:"below",h:"left"},offset:{below:0,above:0,left:-¶
3,right:0}},this.popup.open(),this.startTimer(!0}},s.prototype.showError=nction(){this.checkbox_err.s how():(this.checkbox.parent().css("position","relative"),this.checkbox_err='¶
"+this.getMessage("invalid","Required")+"")},s.prototype.hideError=nction(){this.checkbox_err&&this.checkbox err.hide(),this.popup&&this.popup.close()},s.prototype.positionError=nction(){if(this.checkbox_err){var¶
t=is.checkbox.position();this.checkbox_err.css{{width:this.checkbox.outerWidth(),height:this.checkbox.outerHeight(),top :t.top+"px",left:t.left+"px"}}},s.prototype.startTimer=nction(t){f(this.popup_timer){if(!)return;window.clearTimeout(thi s.popup timer)}var¶
e=is;this.popup_timer=ndow.setTimeout(function(){e.popup.close()},3e3)},s.prototype.stopTimer=nction(){{this.popup_ti mer&&(window.clearTimeout(this.popup_timer),this.popup_timer=11)};var o,r=nction(){o&&(o=11);for(var t in n)n[t].positionError()};return¶
$(window).on("resize",function(){o||(o=ndow.setTimeout(r,250)})),s)},define("skins/form/validator/compare",["static/u tils","./base"],function(t,e){var i=nction(i,n){e.apply(this,[i,n]);var¶
s=getRoot();if(this.linput="#"+s.form.prop("id")+""+n.options.left_field.replace(///g,"")),this.validator=is.linput.data( "validator"),this.validator){this.rinput="#"+s.form.prop("id")+"_"+n.options.right_field.replace(/\//g",")).this.validation _timer;var o=is,r=is.validator.doValidate;this.validator.doValidate=nction(e){if(!r.apply(this,[e]))return!1;var¶
i=trim(o.rinput.val());return i.length<2||("=!=.options.operator||e=i||(this.setError(o.getMessage("equal","%left_field% and %right_field% must match",{"%left_field%":""+t.escape(n.options.left_field.replace(/\/g,"¶
"))+"","%right_field%":""+t.escape(n.options.right_field.replace(/\/g,"¶
")]+""})),!1)}),this.rinput.on("focus",function(){o.validator.focused=,o.validator.showError()}),this.rinput.on("blur",functi on(){o.validation_timer&&(window.clearTimeout(o.validation_timer),o.validation_timer=ll),o.validator.validate(),o.valid ator.focused=,o.validator.startTimer(!0)}),this.rinput.on("keyup",function(){o.validator.hideError(!0),o.validation_timer& &window.clearTimeout(o.validation_timer=ndow.setTimeout(function(){o.validator.validate()},1e3}} )}};return i.prototype=w¶
e,i.prototype.isValid=nction(){return!0}.i.prototype.focus=nction(){this.validator.focus()},i)},define¶
("skins/form/validator/xhr",[],function(){var¶
t=nction(t,e,i,n){this.cache=this.min_chars=13,this.intervall=|1e3,this.last_check=this.last_checked, this.timer,this.xhr};return¶
t.prototype=heckStart:null,checkError:null,check:function(t){if(t.length").css("position","absolute").insert After(this.input),this.icon.parent().css("position","relative"),a.push(this)),this.icon.addClass("fa fa-"+t+" text-"+e),this.positionIcon();var¶
i=is;this.icon.on("mouseover",function(){i.showError(}}},c.prototype.hidewIcon=nction(t,e){this.icon&&this.icon.hide(}}, c.prototype.positionIcon=nction(){if(this.icon){var¶
t=is.icon.outerHeight(),e=is.input.position(),n=is.input.outerHeight();this.icon.css({top:Math.round(e.top+n-t-¶
2)+"px",left:Math.round(e.left+this.input.innerWidth()-this.icon.outerWidth()-2-¶
i.trimPx(this.input.css("borderLeftWidth")))+"px"}}},c.prototype.showTooltip=nction(t){this.popup?(this.popup.open(),t &&this.popup.setContent(t)):(this.popup=w¶
n(this.icon,t,{relative_to:this.input.parent(),trigger:!1,autoclose:!1,popup_class:"form-popuperror",offset:{below:0,above:0,left:0,right:-¶
4}},this.input.is(":focus")&&this.popup.open()),this.startTimer(!0}),c.prototype.setLoading=nction(){this.has_error=this. errorChanged&&this.errorChanged(!1,this),this.showlcon("spinner fa-¶
pulse","primary")},c.prototype.setSuccess=nction(){this.has_error=,this.errorChanged(1,this),this,this. hidewlcon(),this.popup&&this.popup.close()},c.prototype.setError=nction(t){this.has_error=this.errorChanged&&this.er rorChanged(10,this.showlcon("times","danger"),this.showTooltip(""+t+"")},c.prototype.showError=nction(){return!! this.has error&&void¶
this.showTooltip()},c.prototype.hideError=nction(t){return!!(t||this.has_error&&!this.focused)&&void(this.popup&&thi s.popup.close())},c.prototype.startTimer=nction(t){if(this.popup_timer){if(!t)return;window.clearTimeout(this.popup_ti mer)}var¶
e=is;this.popup_timer=ndow.setTimeout(function(){e.hideError()},3e3}},c.prototype.stopTimer=nction(){this.popup_tim er&&(window.clearTimeout(this.popup_timer),this.popup_timer=ll}},c.prototype.setupXhr=nction(t,e.j.,n,s){var a=is;r[t]=w¶
o(e,i,n,s),r(t).checkStart=nction(){a.setLoading()},r(t).checkError=nction(){a.setSuccess(}),r(t).checkEnd=nction(t){t=!0?a.s etSuccess();a.setError(t)}},c.prototype.checkXhr=nction(t,e){r[t].check(e)};var l,d=nction(){{&&(l=1);for(var t in a)a[t].positionIcon()};return¶
$(window).on("resize",function(){||((l=ndow.setTimeout(d,250)}),c}),define("skins/form/validator/date",[",/input_base "],function(t){var e=nction(e,i){if("object"=ypeof i){t.apply(this,[e,i]);var n=is;this.input.on("blur¶
keyup",function(){n.validate()}),this.getValue().length>0&&this.validate()}};return e.prototype=w t,e.prototype.getInput=nction(){return $("#"+this.id+"¶
input[type=xt]"]},e.prototype.doValidate=nction(t){return!this.options.required||0!=.length||(this.setError(this.getMes sage("required","Required")),!1},e}),define("skins/form/validator/integer",[","input_base"],function(t){var¶
e=nction(e,i){if("object"=ypeof i}{t.apply(this,[e,i]);var n=is;this.input.on("blur keyup
input",function(){n.validate(}),this.validate(}}};return e.prototype=w t,e.prototype.doValidate=nction(t){return 0=t.length?!this.options.required||(this.setError(this.getMessage("required")),11);t.match(/^\d+${g}?(t=rsel nt(t),null!=his.options.min&&t0&&t>this.options.max)| | (this.setError(this.getMessage("max","Must be less than %max%",{"%value%":t.to5tring(),"%max%":this.options.max}),!1));(this.setError(this.getMessage("invalid","Invalid",{"% value%":this.strimwidth(t,20)})),11}},e}),define("skins/form/validator/string",[",/input_base"],function(t){var e=nction(e,i){if("object"=ypeof i}{t.apply(this,[e,i]);var n=is;this.input.on("blur keyup¶
input",function(){n.validate(})},this.validate(})};return e.prototype=w t,e.prototype.doValidate=nction(t){return this.options.required&&o=t.length?(this.getMessage("required","Required")),11);this.options.min_length>0 &&t.length0&&t.length>this.options.max_length)||(this.setError(this.getMessage("max_length","Toolong (%nb chars%¶
max)",{"%value%":""+this.strimwidth(t,20)+"","%nb_chars%":this.options.max_length}),!1}},e}),define("skins/form/vali dator/password",[" /string"],function(t){var e=nction(t,e){if(0=t.length)return 0;for(var¶
i=split(""),n=xcess:0,Lower:0,Upper:0,Numbers:0,Symbols:0},s=xcess:4,Lower:2,Upper:4,Numbers:5,Symbols:10,Combo: 0,FlatLower:0,FlatNumber:0},o=o¶
');this.progress=children()}t.apply(this,[e,i]),i.options.check_strength&&n.insertAfter(this.input.addClass("input-¶
pwd-check")});return i.prototype.doValidate=nction(i){if(this.options.check_strength}{var n=i,this.options.min_length);this.progress.width(Math.max(0,Math.min(100,n))+"%").removeClass().addClass("progressbar"),n>�?this.progress.addClass("progress-bar-success"):n<25?this.progress.addClass("progress-bar-¶
danger"):n<50?this.progress.addClass("progress-bar-warning"):n<75&&this.progress.addClass("progress-barinfo")}return¶
t.prototype.doValidate.apply(this,[i])},}),define("skins/form/validator/profile_name",["config/main","static/utils",",/stri ng"],function(t,e,i){var¶
n=nction(e,n){this.setupXhr("profile_name",t.domains.master+"/account/checkprofilename","profile"),i.apply(this,[pare nt,n])};return n.prototype=w¶
i.n.prototype.doValidate=nction(t){return!!i.prototype.doValidate.apply(this,[t])&&(t.match(this.getRegexp(this.options. regex)}?(this.checkXhr("profile_name",t),!1);(this.setError(this.getMessage("name_invalid","Invalid profile¶
name",{"%name%":e.escape(t)}),{1}},n}),define("skins/form/validator/email",["static/utils","/string"],function(t,e){var i=nction(t,i){e.apply(this,[t,i])};return i.prototype=w¶
e,i.prototype.doValidate=nction(i){return!!e.prototype.doValidate.apply(this,[i])&&(!!i.match(this.getRegexp(this.option s.regex)} | | (this.setError(this.getMessage("invalid","Invalid email¶
address",{"%email%":t.escape(i)}),!1})},i}),define("skins/form/validator/user_email",["config/main","static/utils",",lema il"],function(t,e,i){var¶
n=nction(e,n){this.setupXhr("user_email",t.domains.master+"/account/checkemail","email"),i.apply(this,[parent,n]]);ret urn n.prototype=w¶
i,n.prototype.doValidate=nction(t){return!!i.prototype.doValidate.apply(this,[t]]&&(this.checkXhr("user_email",t),11},n}) );¶