PageSourceSearch

https://worldofcashflow.ru/wp-content/plugins/wpstories/assets/public/js/scripts.min.js

js worldofcashflow.ru collected 2026-10-05 07:04:11 UTC 18,495 bytes, 1 lines download raw bytes

1jQuery(function(h){"use strict";var r="tap",n="move_right",a="move_left",o="move_up",d="move_down",p="click.wpstories",u="start_tap.wpstories",c="end_tap.wpstories",l="start_"+n+".wpstories",f="end_"+n+".wpstories",m="start_"+a+".wpstories",g="end_"+a+".wpstories",w="start_"+o+".wpstories",v="end_"+o+".wpstories",_="start_"+d+".wpstories",y="end_"+d+".wpstories",x="swipe_left.wpstories",b="swipe_right.wpstories",i="swipe_up.wpstories",$="swipe_down.wpstories",s="touchstart",I="touchmove",S="touchend",F="touchcancel";window.PointerEvent?(s="pointerdown",I="pointermove",S="pointerup",F="pointercancel"):window.MSPointerEvent&&(s="MSPointerDown",I="MSPointerMove",S="MSPointerUp",F="MSPointerCancel");function C(t){W("Event type:",t.type),D(t)}function k(t){var e={play:function(t){},pause:function(t){},stop:function(t){},duration:function(t){return t}};if(null===(t=void 0===t?null:t))return e;var s=t.find("video");if(!s.length)return e;var i=s.get(0);return{duration:function(t){if(!s.data("duration"))return t;var e=1e3*s.data("duration");return e<t?e*Math.ceil(t/e):e},play:i.play.bind(i),pause:i.pause.bind(i),stop:function(){i.pause(),i.currentTime=0}}}var P,j,T,E,W=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e]},H=!1,M=!0,U=function(e){return function(t){t.preventDefault(),W("Event type:",t.type),void 0!==t.isPrimary&&!1===t.isPrimary||void 0!==t.touches&&1<t.touches.length||(D(t),j=new L(T.x,T.y),M=!1,(new Date).getTime(),document.addEventListener(I,C),H=!1,P=setTimeout(function(){switch(H=!0,E=j.detectIntent(T),W("Intent:",E),E){case r:W("Trigger:",u),e.trigger(u,[t]);break;case a:W("Trigger:",m),e.trigger(m,[t]);break;case n:W("Trigger:",l),e.trigger(l,[t]);break;case o:W("Trigger:",w),e.trigger(w,[t]);break;case d:W("Trigger:",_),e.trigger(_,[t])}},135))}},R=function(s){return function(t){if(!M)if(t.preventDefault(),M=!0,document.removeEventListener(I,C),clearTimeout(P),H)switch(E){case r:W("Trigger:",c),s.trigger(c,[t]);break;case a:W("Trigger:",g),s.trigger(g,[t]);break;case n:W("Trigger:",f),s.trigger(f,[t]);break;case o:W("Trigger:",v),s.trigger(v,[t]);break;case d:W("Trigger:",y),s.trigger(y,[t])}else{var e=j.detectImmediateIntent(T);switch(W("Immediate intent:",e),e){case r:W("Trigger:",p),s.trigger(p,[t]);break;case a:W("Trigger:",x),s.trigger(x,[t]);break;case n:W("Trigger:",b),s.trigger(b,[t]);break;case o:W("Trigger:",i),s.trigger(i,[t]);break;case d:W("Trigger:",$),s.trigger($,[t])}}}},D=function(t){T=new(Function.prototype.bind.apply(L,[null].concat(e(t))))},e=function(t){return void 0!==t.touches?[t.touches[0].pageX,t.touches[0].pageY]:void 0!==t.pageX?[t.pageX,t.pageY]:[]},L=function(t,e){this.x=t,this.y=e};L.prototype.detectIntent=function(t){var e=t.x-this.x,s=t.y-this.y,i=Math.abs(e),t=Math.abs(s);return i<=12&&t<=12?r:t<=i?0<e?n:a:0<s?d:o},L.prototype.detectImmediateIntent=function(t){var e=t.x-this.x,s=t.y-this.y,i=Math.abs(e),t=Math.abs(s);return i<=64&&t<=64?r:t<=i?0<e?n:a:0<s?d:o};function N(t){this.activeFrameStatus=t=void 0===t?"active":t,this.isRunning=!1,this.isPausing=!1,this.slides=[],this.$_slide=null,this.slideIndex=-1,this.$_frame=null,this.frameIndex=0}var t={$slide:{configurable:!0},$frame:{configurable:!0}};t.$slide.get=function(){return this.$_slide},t.$frame.get=function(){return this.$_frame},N.prototype.addSlide=function(t,e){return this.slides[t]={$el:e,frames:[],finished:!1},this},N.prototype.addFrame=function(t,e,s){return s.find("img").attr("draggable",!1),this.slides[t].frames[e]={$el:s,idx:e,finished:!1},this},N.prototype._getCurrentFrames=function(){if(this.slideIndex<0)return[];var t=this.slides[this.slideIndex].frames;return t.length?t:[]},N.prototype.setSlide=function(t){return void 0!==this.slides[t]&&(this.slideIndex=t,this.$_slide=this.slides[t].$el),this},N.prototype.hasNexSlide=function(){return void 0!==this.slides[this.slideIndex+1]},N.prototype.nextSlide=function(){var t=this.slideIndex+1;return void 0!==this.slides[t]&&(this.$_slide=this.slides[t].$el,this.slideIndex=t),this},N.prototype.hasPrevSlide=function(){return void 0!==this.slides[this.slideIndex-1]},N.prototype.prevSlide=function(){var t=this.slideIndex-1;return void 0!==this.slides[t]&&(this.$_slide=this.slides[t].$el,this.slideIndex=t),this},N.prototype.hasNexFrame=function(){return void 0!==this._getCurrentFrames()[this.frameIndex+1]},N.prototype.nextFrame=function(){var t=this._getCurrentFrames(),e=this.frameIndex+1;return void 0!==t[e]&&(this.$_frame=t[e].$el,this.frameIndex=e,this._resetFinishedState()),this},N.prototype.hasPrevFrame=function(){return void 0!==this._getCurrentFrames()[this.frameIndex-1]},N.prototype.prevFrame=function(){var t=this._getCurrentFrames(),e=this.frameIndex-1;return void 0!==t[e]&&(this.$_frame=t[e].$el,this.frameIndex=e,this._resetFinishedState()),this},N.prototype.walkCurrentFrames=function(t){return this._getCurrentFrames().forEac
1h(t),this},N.prototype.setFirstFrame=function(){},N.prototype.setNotFinishedFrame=function(){var t=this._getCurrentFrames(),e=t.find(function(t){return!t.finished});return void 0===e?(t=t[t.length-1],this.$_frame=t.$el,this.frameIndex=t.idx):(this.$_frame=e.$el,this.frameIndex=e.idx),this._resetFinishedState(),this},N.prototype.updateCurrentFramesStatuses=function(){for(var s=this,i=this._getCurrentFrames(),t=0;t<i.length;t++)!function(t){var e=i[t].$el;e.removeClass(s.activeFrameStatus),t===s.frameIndex&&(e.addClass(s.activeFrameStatus),setTimeout(function(){e.addClass("animate")},50))}(t);return this},N.prototype.resetCurrentFramesStatuses=function(){for(var t=this._getCurrentFrames(),e=0;e<t.length;e++)t[e].$el.removeClass(this.activeFrameStatus);return this},N.prototype.setFinishedCurrentFrame=function(t){t=void 0===t||!!t;var e=this._getCurrentFrames();return void 0!==e[this.frameIndex]&&(e[this.frameIndex].finished=t),this},N.prototype._resetFinishedState=function(){var e=this,t=this._getCurrentFrames();this.slides[this.slideIndex].frames=t.map(function(t){return t.idx>=e.frameIndex&&(t.finished=!1),t})},Object.defineProperties(N.prototype,t);function z(t,e){void 0===e&&(e={}),this.$el=t,this.$overlay=t.find(".js-wpstories-window-overlay"),this.$overlayBg=t.find(".js-wpstories-window-overlay-bg"),this.$container=t.find(".js-wpstories-window-container"),this.$preview=t.find(".js-wpstories-preview"),this.$window=t.find(".js-wpstories-window"),this.$debug=t.find(".js-wpstories-debug"),this.$closeButton=t.find(".js-wpstories-window-close"),this.slidesSelector=".js-wpstories-slides",this.slideItemSelector=".js-wpstories-slide",this.framesSelector=".js-wpstories-frames",this.frameItemSelector=".js-wpstories-frame",this.progressItemSelector=".js-wpstories-slide-progress-item",this.buttonSelector=".js-wpstories-button",this.group=this.$container.data("group"),t.find(this.frameItemSelector).each(function(t,e){e=h(e);e.on(s,U(e)),e.on(S,R(e)),(e=e).on(F,R(e)),e.on("mouseleave",R(e))}),this.ratio=.5625,this.storyDuration=1e3*(Number(parseFloat(e.story_duration)).toFixed(3)||5),this.storyHashPrefix=e.story_hash_prefix||"wpstory",this.origHash=this._isStoriesUrlHash(window.location.hash)?"":window.location.hash,this.state=new N,this.debug=!1,this.finishProgressCallback=null}z.prototype.log=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];this.debug&&console.log.apply(console,t)},z.prototype.init=function(){this.debug?this.$debug.show():this.$debug.remove(),this._initState(),this._setupFrameParams(),this.bindEvents();var t=window.location.hash;
1this._isStoriesUrlHash(t)&&(t=t.split("-")[2],this.$el.find('.js-wpstories-preview[data-story="'+t+'"]').trigger("click"))},z.prototype._initState=function(){var n=this,a=[],r=function(e){var s,i;e&&(s=e.data("image"),i=function(t){e.css("background-image","url('"+t+"')"),e.find(".js-img-loader").remove(),e.data("ready",!0),e.trigger("image_loaded.wpstories"),r(a.shift())},h("<img/>").attr("src",s).on("load",function(t){h(t.currentTarget).remove(),i(s)}))};this.$el.find(this.slideItemSelector).each(function(t,e){var e=h(e),r=parseInt(e.data("story"),10);n.state.addSlide(r,e),e.find(n.frameItemSelector).each(function(t,e){var s=h(e),i=s.find("video"),e=parseInt(s.data("frame"),10);s.data("image")?(s.data("ready",!1),a.push(s)):s.data("ready",!0),n.state.addFrame(r,e,s),i.length&&((e=i.get(0)).addEventListener("loadedmetadata",function(t){i.data("duration",t.target.duration)}),e.addEventListener("waiting",function(t){W("waiting",t),s.find(".js-vid-loader").remove(),s.find(".js-wpstories-frame-body").prepend('<div class="loader js-vid-loader"></div>'),n.pause()}),e.addEventListener("canplay",function(t){W("canplay",t),n.state.isPausing&&(s.find(".js-vid-loader").remove(),n.resume())}))})}),r(a.shift()),this.log(this.state)},z.prototype.bindEvents=function(){var r=this;this.$preview.on("click",function(t){t.preventDefault();t=h(t.currentTarget),t=parseInt(t.data("story"),10);r.state.resetCurrentFramesStatuses().setSlide(t).setNotFinishedFrame().updateCurrentFramesStatuses(),r._updateProgressItems(),r.log("[Wpstories]","click on preview",r.state),r.launch()});function n(){r.state.isRunning&&(r.state.setFinishedCurrentFrame(!0),r._finishProgress(),r._next(),r._loop())}function a(){r.state.isRunning&&(r._finishProgress(!0),r._prev(),r._loop())}function s(){r.state.isRunning&&(r._finishProgress(!0),r._nextSlide(),r._loop())}function i(){r.state.isRunning&&(r._finishProgress(!0),r._prevSlide(),r._loop())}this.$closeButton.length&&this.$closeButton.on("click",function(t){r.stop()});var t,o=this.$el.find(this.slidesSelector);this.$el.find(this.frameItemSelector).each(function(t,e){e=h(e);e.on(p,function(t,e){var s,i;e&&"a"!==e.target.tagName.toLowerCase()&&"button"!==e.target.tagName.toLowerCase()&&(i=(s=h(e.currentTarget)).offset().left,s=s.offset().top,i=e.pageX-i,e.pageY,(i>r.frameWidth/2?n:a)())}).on(x,function(){s()}).on(b,function(){i()}).on(u,function(t,e){r.pause()}).on(c,function(t,e){r.resume()}),r._bindMoveUpFollowLink(e),r._bindMoveDownClose(e),r._bindLeftRightMove(e,o,s,i)}),h(document).on("click",function(t){t=h(t.target);t.hasClass("js-wpstories-window-prev")?a():t.hasClass("js-wpstories-window-next")?n():t.closest(".js-wpstories-preview").length||t.closest(".wpstories-window-in").length||r.stop()}),h(window).resize(function(){clearTimeout(t),t=setTimeout(function(){r._setupFrameParams(),r._changeSlide(),r._changeFrame(),r._changeUrl()},100)}),h(document).on("keyup",function(t){switch(t.keyCode){case 27:r.stop();break;case 37:a();break;case 39:n()}}),this.$el.find(".js-wpstories-button").on("click",function(t){t=h(t.currentTarget).parents(r.frameItemSelector);document.dispatchEvent(new CustomEvent("wpstories_follow_link",{detail:{$frame:t}}))})},z.prototype._bindMoveDownClose=function(t){var e,s,i,r,n=this,a=t.parents(this.slideItemSelector);t.on(_,function(){n.pause(),n.$window.css("background","none"),r=a.css("transition"),a.css("transition","none"),e=T,i=setInterval(function(){(s=(s=parseInt(T.y-e.y,10))<0?0:s)>.2*n.frameHeight&&(clearInterval(i),n.stop());var t=100*(1-s/(.2*n.frameHeight));a.css("transform","translate3d(0px, "+s+"px, 0px)").css("opacity",t+"%")},50)}).on(y,function(){n.resume(),clearInterval(i),n.$window.css("background","#ffffff"),a.css("transform","translate3d(0px, 0px, 0px)").css("transition",r).css("opacity","100%"),n.state.isRunning&&s>.1*n.frameHeight&&n.stop()})},z.prototype._bindMoveUpFollowLink=function(e){var s,i,r,n=this;e.data("link")&&e.on(w,function(){n.pause(),s=T,r=setInterval(function(){var t;i=parseInt(T.y-s.y,10),Math.abs(i)>.1*n.frameHeight&&(clearInterval(r),t=parseInt(e.data("link-open-new-tab"))?"_blank":"_self",document.dispatchEvent(new CustomEvent("wpstories_follow_link",{detail:{$frame:e}})),h('<a href="'+e.data("link")+'" target="'+t+'" rel="noopener"></a>')[0].click())},50)}).on(v,function(){n.resume(),clearInterval(r)})},z.prototype._bindLeftRightMove=function(e,s,i,r){var n,a,o,h,d=this;[m,l].forEach(function(t){e.on(t,function(){d.pause(),o=s.css("transition"),s.css("transition","none"),n=T,h=setInterval(function(){var t=function(t){t=Math.abs(t);var e=d.frameWidth+.2*d.frameWidth;return(e-t)/e+.75}(T.x-n.x);W("acceleration:",t);t=(a=(T.x-n.x)*t)-d.frameWidth*d.state.slideIndex;s.css("transform","translate3d("+t+"px, 0px, 0px)")},16)})}),[g,f].forEach(function(t){e.on(t,function(){clearInterval(h);var t=d.frameWidth*d.state.slideIndex;s.css("transform","translate3d(-"+t+"px, 0px, 0px)").css("transition",o),Math.abs(a)>d.frameWidth/2-.05*d.frameWidth?0<a?d.state.hasPrevSlide()?r():d.stop():i():d.resume()})})},z.prototype.launch=function(){this.$overlay.show(),this.$container.css("display","flex"),h("body").addClass("wpstories-body-window-open"),this.state.isRunning=!0,k(this.state.$frame).play(),this._changeSlide(),this._changeFrame(),this._changeUrl(),this._loop()},z.prototype.stop=function(){this.$overlay.hide(),this.$container.hide(),h("body").removeClass("wpstories-body-window-open"),this.state.isRunning=!1,this.state.isPau
1sing=!1,k(this.state.$frame).stop(),this._finishProgress(!0);var t=window.location.href.split("#")[0];this.origHash.length&&(t+=this.origHash),history.replaceState(null,"",t)},z.prototype.pause=function(){k(this.state.$frame).pause(),this.state.isPausing=!0;var t=this.state.frameIndex;this.state.$slide.find(this.progressItemSelector+'[data-frame="'+t+'"]').stop()},z.prototype.resume=function(){this.state.isPausing=!1,this._loop()},z.prototype._finishProgress=function(t){"function"==typeof this.finishProgressCallback&&(this.finishProgressCallback(t),this.finishProgressCallback=null)},z.prototype._loop=function(){var t,e,s,i,r,n=this;this.state.isRunning&&((t=this.state.$frame).data("ready")?(i=this.state.frameIndex,e=this.state.$slide.find(this.progressItemSelector+'[data-frame="'+i+'"]'),this.finishProgressCallback=function(t){n.state.setFinishedCurrentFrame(!t),k(n.state.$frame).stop(),e.stop(),e.removeData("progress")},i=(s=k(t)).duration(this.storyDuration),e.data("progress")&&(i=parseInt((1-e.data("progress")/100)*i,10)),s.play(),e.animate({width:"100%"},{duration:i,queue:!1,easing:"linear",complete:function(){k(n.state.$frame).stop(),e.removeData("progress"),n.state.setFinishedCurrentFrame(!0),n._next(),n._loop()},step:function(t){e.data("progress",t)}})):(r=function(){n.state.isPausing||n._loop(),t.off("image_loaded.wpstories",r)},t.off("image_loaded.wpstories",r).on("image_loaded.wpstories",r)))},z.prototype._updateProgressItems=function(){var e=this;this.state.walkCurrentFrames(function(t){e.state.$slide.find(e.progressItemSelector+'[data-frame="'+t.idx+'"]').css("width",t.finished?"100%":"0")})},z.prototype._next=function(){this.state.hasNexFrame()?(this.state.nextFrame().updateCurrentFramesStatuses(),this._changeFrame(),this._changeUrl(),this._updateProgressItems()):this._nextSlide()},z.prototype._prev=function(){this.state.hasPrevFrame()?(this.state.prevFrame().updateCurrentFramesStatuses(),this._changeFrame(),this._changeUrl(),this._updateProgressItems()):this._prevSlide()},z.prototype._nextSlide=function(){this.state.hasNexSlide()?(this.state.resetCurrentFramesStatuses().nextSlide().setNotFinishedFrame().updateCurrentFramesStatuses(),this._changeFrame(),this._changeUrl(),this._changeSlide(),this._updateProgressItems()):this.stop()},z.prototype._prevSlide=function(){this.state.hasPrevSlide()&&(this.state.resetCurrentFramesStatuses().prevSlide().setNotFinishedFrame().updateCurrentFramesStatuses(),this._changeFrame(),this._changeUrl(),this._changeSlide()),this._updateProgressItems()},z.prototype._changeFrame=function(){var t,e;null!==this.state.$frame&&(this.$el.find(this.frameItemSelector).removeClass("animate"),(t=this.state.$frame).data("image")?this.$overlayBg.css("background-image",'url("'+t.data("image")+'")'):this.$overlayBg.css("background-image",t.css("background-image")),e=this.frameWidth*this.state.frameIndex,this.state.$frame.parents(this.framesSelector).css("transform","translate3d(-"+e+"px, 0px, 0px)"),(e=t.find(this.buttonSelector)).length&&t.find(".js-wpstories-frame-body").css({"padding-bottom":parseInt(e.height()+50,10)}),document.dispatchEvent(new CustomEvent("wpstories_show_frame",{detail:{$frame:t}})))},z.prototype._changeSlide=function(){var t;null!==this.state.$slide&&(t=this.frameWidth*this.state.slideIndex,this.$el.find(this.slidesSelector).css("transform","translate3d(-"+t+"px, 0px, 0px)"))},z.prototype._changeUrl=function(){var t,e=this.state.$frame;null!==e&&(t=this.group,e=e.data("story"),e="#"+this.storyHashPrefix+"-"+t+"-"+e,history.replaceState(null,"",e))},z.prototype._isStoriesUrlHash=function(t){t=(t="#"===t.substr(0,1)?t.substr(1):t).split("-");return 3===t.length&&t[0]===this.storyHashPrefix&&t[1]===this.group},z.prototype._setupFrameParams=function(){var e=this,t=h(window).width(),s=h(window).height();this.frameWidth=parseInt(s*this.ratio,10),t/(this.frameHeight=s)<this.ratio&&(this.frameWidth=t,this.frameHeight=parseInt(t/this.ratio,10)),this.debug&&(this.$debug.html(""),this.$debug.append("frame_width: "+this.frameWidth+"px<br>"),this.$debug.append("frame_height: "+this.frameHeight+"px<br>"),this.$debug.append("clientWidth: "+document.documentElement.clientWidth+"px<br>"),this.$debug.append("clientHeight: "+document.documentElement.clientHeight+"px<br>"),this.$debug.append("window.Width: "+h(window).width()+"px<br>"),this.$debug.append("window.Height: "+h(window).height()+"px<br>")),this.$window.css({width:this.frameWidth+"px",height:this.frameHeight+"px"}),this._setWindowSizeClass();t=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",t+"px"),this.state.slides.forEac
1h(function(t){t.$el.css({width:e.frameWidth+"px","max-width":e.frameWidth+"px",height:e.frameHeight+"px"}),t.frames.forEach(function(t){t.$el.css({width:e.frameWidth+"px",height:e.frameHeight+"px"})})})},z.prototype._setWindowSizeClass=function(){for(var t=this.$window.attr("class"),e=t?t.split(" "):[],s=[],i=0;i<e.length;i++)e[i].indexOf("wpstories-window--size-")<0&&s.push(e[i]);t="wpstories-window--size-";this.frameWidth<=350?t+="s":this.frameWidth<=450?t+="m":t+="l",s.push(t),this.$window.attr("class",s.join(" "))};var B=!0;h(".js-wpstories-serialized").each(function(t,e){try{var s=h(e),i=s.data("content"),r=decodeURIComponent(atob(i));s.after('<div class="js-wpstories-group-wrap">'+r+"</div>"),s.remove()}catch(t){console.error(t),B=!1}}).promise().done(function(){B&&h(document).find(".js-wpstories-group-wrap").each(function(){var t=h(this);new z(t,wpstories_globals).init()})})});

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