⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
crm.dev-unit.com
/
public
/
assets
/
js
/
View File Name :
dom-autoscroller.js
function _typeof2(e){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var autoScroll=function(){"use strict";function e(e,n){var t,r;return r=n,"function"==typeof(e=void 0===(t=e)?void 0===r?t:r:t)?function(){for(var n=arguments,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=n[o];return!!e.apply(this,r)}:e?function(){return!0}:function(){return!1}}var n,t,r,o,i,a,u=["webkit","moz","ms","o"],c=function(){for(var e=0,n=u.length;e<n&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[u[e]+"RequestAnimationFrame"];var t;return window.requestAnimationFrame||(t=0,window.requestAnimationFrame=function(e){var n=(new Date).getTime(),r=Math.max(0,16-n-t),o=window.setTimeout((function(){return e(n+r)}),r);return t=n+r,o}),window.requestAnimationFrame.bind(window)}(),l=function(){for(var e=0,n=u.length;e<n&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[u[e]+"CancelAnimationFrame"]||window[u[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}(),f=(n=function(e){return"function"==typeof e},t=Math.pow(2,53)-1,r=function(e){var n=function(e){var n=Number(e);return isNaN(n)?0:0!==n&&isFinite(n)?(n>0?1:-1)*Math.floor(Math.abs(n)):n}(e);return Math.min(Math.max(n,0),t)},o=function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(_typeof2(e))>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}},i=function(e,t){if(null!=e&&null!=t){var r=e[t];if(null==r)return;if(!n(r))throw new TypeError(r+" is not a function");return r}},a=function(e){var n=e.next();return!Boolean(n.done)&&n},function(e){var t,u,c,l=this,f=arguments.length>1?arguments[1]:void 0;if(void 0!==f){if(!n(f))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(t=arguments[2])}var s=i(e,o(e));if(void 0!==s){u=n(l)?Object(new l):[];var m,d,v=s.call(e);if(null==v)throw new TypeError("Array.from requires an array-like or iterable object");for(c=0;;){if(!(m=a(v)))return u.length=c,u;d=m.value,u[c]=f?f.call(t,d,c):d,c++}}else{var w=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p,y=r(w.length);for(u=n(l)?Object(new l(y)):new Array(y),c=0;c<y;)p=w[c],u[c]=f?f.call(t,p,c):p,c++;u.length=y}return u}),s=("function"==typeof Array.from&&Array.from,Array.isArray,Object.prototype.toString,"function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":_typeof2(e)}),m=function(e){return null!=e&&"object"===(void 0===e?"undefined":s(e))&&1===e.nodeType&&"object"===s(e.style)&&"object"===s(e.ownerDocument)};function d(e,n){if(n=h(n,!0),!m(n))return-1;for(var t=0;t<e.length;t++)if(e[t]===n)return t;return-1}function v(e,n){return-1!==d(e,n)}function w(e,n){for(var t=0;t<n.length;t++)v(e,n[t])||e.push(n[t]);return n}function p(e){for(var n=arguments,t=[],r=arguments.length-1;r-- >0;)t[r]=n[r+1];return w(e,t=t.map(h))}function y(e){for(var n=arguments,t=[],r=arguments.length-1;r-- >0;)t[r]=n[r+1];return t.map(h).reduce((function(n,t){var r=d(e,t);return-1!==r?n.concat(e.splice(r,1)):n}),[])}function h(e,n){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}if(!m(e)&&!n)throw new TypeError(e+" is not a DOM element.");return e}function g(e){if(e===window)return function(){var e={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},e);var n={};return Object.defineProperties(n,e),n}();try{var n=e.getBoundingClientRect();return void 0===n.x&&(n.x=n.left,n.y=n.top),n}catch(n){throw new TypeError("Can't call getBoundingClientRect on "+e)}}var b,E=void 0;"function"!=typeof Object.create?(b=function(){},E=function(e,n){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");b.prototype=e||{};var t=new b;return b.prototype=null,void 0!==n&&Object.defineProperties(t,n),null===e&&(t.__proto__=null),t}):E=Object.create;var T=E,x=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function L(e,n){n=n||{};for(var t=T(e),r=0;r<x.length;r++)void 0!==n[x[r]]&&(t[x[r]]=n[x[r]]);return t}function X(e,n){console.log("data ",n),e.data=n||{},e.dispatched="mousemove"}function S(n,t){void 0===t&&(t={});var r=this,o=4,i=!1;this.margin=t.margin||-1,this.scrollWhenOutside=t.scrollWhenOutside||!1;var a={},u=function(n,t){var r=e((t=t||{}).allowUpdate,!0);return function(e){if(e=e||window.event,n.target=e.target||e.srcElement||e.originalTarget,n.element=this,n.type=e.type,r(e)){if(e.targetTouches)n.x=e.targetTouches[0].clientX,n.y=e.targetTouches[0].clientY,n.pageX=e.targetTouches[0].pageX,n.pageY=e.targetTouches[0].pageY,n.screenX=e.targetTouches[0].screenX,n.screenY=e.targetTouches[0].screenY;else{if(null===e.pageX&&null!==e.clientX){var t=e.target&&e.target.ownerDocument||document,o=t.documentElement,i=t.body;n.pageX=e.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),n.pageY=e.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)}else n.pageX=e.pageX,n.pageY=e.pageY;n.x=e.clientX,n.y=e.clientY,n.screenX=e.screenX,n.screenY=e.screenY}n.clientX=n.x,n.clientY=n.y}}}(a),f=function(e){var n={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function t(e){for(var t=0;t<x.length;t++)n[x[t]]=e[x[t]]}return void 0!==e&&e.addEventListener("mousemove",t),{destroy:function(){e&&e.removeEventListener("mousemove",t,!1),n=null},dispatch:MouseEvent?function(e,t,r){var o=new MouseEvent("mousemove",L(n,t));return X(o,r),e.dispatchEvent(o)}:"function"==typeof document.createEvent?function(e,t,r){var o=L(n,t),i=document.createEvent("MouseEvents");return i.initMouseEvent("mousemove",!0,!0,window,0,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget),X(i,r),e.dispatchEvent(i)}:"function"==typeof document.createEventObject?function(e,t,r){var o=document.createEventObject(),i=L(n,t);for(var a in i)o[a]=i[a];return X(o,r),e.dispatchEvent(o)}:void 0}}(),s=!1;window.addEventListener("mousemove",u,!1),window.addEventListener("touchmove",u,!1),isNaN(t.maxSpeed)||(o=t.maxSpeed),this.autoScroll=e(t.autoScroll),this.syncMove=e(t.syncMove,!1),this.destroy=function(e){window.removeEventListener("mousemove",u,!1),window.removeEventListener("touchmove",u,!1),window.removeEventListener("mousedown",T,!1),window.removeEventListener("touchstart",T,!1),window.removeEventListener("mouseup",S,!1),window.removeEventListener("touchend",S,!1),window.removeEventListener("pointerup",S,!1),window.removeEventListener("mouseleave",O,!1),window.removeEventListener("mousemove",M,!1),window.removeEventListener("touchmove",M,!1),window.removeEventListener("scroll",E,!0),n=[],e&&A()},this.add=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return p.apply(void 0,[n].concat(e)),this},this.remove=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return y.apply(void 0,[n].concat(e))};var m,d,w=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),d=n,n=[],d.forEach((function(e){e===window?w=window:r.add(e)})),Object.defineProperties(this,{down:{get:function(){return s}},maxSpeed:{get:function(){return o}},point:{get:function(){return a}},scrolling:{get:function(){return i}}});var h,b=null;function E(e){for(var t=0;t<n.length;t++)if(n[t]===e.target){i=!0;break}i&&c((function(){return i=!1}))}function T(){s=!0}function S(){s=!1,A()}function A(){l(h),l(m)}function O(){s=!1}function j(){for(var e=null,t=0;t<n.length;t++)Y(a,n[t])&&(e=n[t]);return e}function M(e){if(r.autoScroll()&&!e.dispatched){var t=e.target,o=document.body;b&&!Y(a,b)&&(r.scrollWhenOutside||(b=null)),t&&t.parentNode===o?t=j():(t=function(e){if(!e)return null;if(b===e)return e;if(v(n,e))return e;for(;e=e.parentNode;)if(v(n,e))return e;return null}(t))||(t=j()),t&&t!==b&&(b=t),w&&(l(m),m=c(F)),b&&(l(h),h=c(K))}}function F(){q(w),l(m),m=c(F)}function K(){b&&(q(b),l(h),h=c(K))}function q(e){var n,t,o=g(e);n=a.x<o.left+r.margin?Math.floor(Math.max(-1,(a.x-o.left)/r.margin-1)*r.maxSpeed):a.x>o.right-r.margin?Math.ceil(Math.min(1,(a.x-o.right)/r.margin+1)*r.maxSpeed):0,t=a.y<o.top+r.margin?Math.floor(Math.max(-1,(a.y-o.top)/r.margin-1)*r.maxSpeed):a.y>o.bottom-r.margin?Math.ceil(Math.min(1,(a.y-o.bottom)/r.margin+1)*r.maxSpeed):0,r.syncMove()&&f.dispatch(e,{pageX:a.pageX+n,pageY:a.pageY+t,clientX:a.x+n,clientY:a.y+t}),setTimeout((function(){t&&function(e,n){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+n):e.scrollTop+=n}(e,t),n&&function(e,n){e===window?window.scrollTo(e.pageXOffset+n,e.pageYOffset):e.scrollLeft+=n}(e,n)}))}window.addEventListener("mousedown",T,!1),window.addEventListener("touchstart",T,!1),window.addEventListener("mouseup",S,!1),window.addEventListener("touchend",S,!1),window.addEventListener("pointerup",S,!1),window.addEventListener("mousemove",M,!1),window.addEventListener("touchmove",M,!1),window.addEventListener("mouseleave",O,!1),window.addEventListener("scroll",E,!0)}function Y(e,n,t){return t?e.y>t.top&&e.y<t.bottom&&e.x>t.left&&e.x<t.right:function(e,n){var t=g(n);return e.y>t.top&&e.y<t.bottom&&e.x>t.left&&e.x<t.right}(e,n)}return function(e,n){return new S(e,n)}}();