You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

number-generator

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

number-generator - npm Package Compare versions

Comparing version

to
4.0.2

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### [4.0.2](https://github.com/MartinHelmut/number-generator/compare/v4.0.1...v4.0.2) (2020-03-07)
### [4.0.1](https://github.com/MartinHelmut/number-generator/compare/v4.0.0...v4.0.1) (2019-09-26)

@@ -7,0 +9,0 @@

2

lib/aleaRNGFactory.js

@@ -1,2 +0,2 @@

"use strict";function throwInvalidAleaSeed(e){if(e%1!=0||e<=0)throw new TypeError('Expected seed to be an unsigned integer greater or equal 1, but got "'.concat(e,'"'))}var aleaRNGFactory=function(){var e=1,t=0,n=0,r=0,o=Math.pow(2,-32),u=Math.pow(2,32),c=2091639,a=69069;return function(i){var s=e,d=t,f=n,l=r;function q(t){return throwInvalidAleaSeed(t),d=(t>>>0)*o,f=(t=t*a+1>>>0)*o,l=(t=t*a+1>>>0)*o,s=e,t}function v(){var e=c*d+s*o;return d=f,f=l,l=e-(s=0|e)}return q(void 0===i?1:i),{setSeed:q,uFloat32:v,uInt32:function(){return v()*u>>>0},getState:function(){return{correction:s,sequence:[d,f,l]}},setState:function(o){(o=o||{correction:e,sequence:[t,n,r]}).sequence=o.sequence||[],s=o.correction||e,d=o.sequence[0]||t,f=o.sequence[1]||n,l=o.sequence[2]||r}}}}();module.exports=aleaRNGFactory;
"use strict";var e,t,n=(e=Math.pow(2,-32),t=Math.pow(2,32),function(n){var r=1,u=0,o=0,c=0;function i(t){return function(e){if(e%1!=0||e<=0)throw new TypeError('Expected seed to be an unsigned integer greater or equal 1, but got "'.concat(e,'"'))}(t),u=(t>>>0)*e,o=(t=69069*t+1>>>0)*e,c=(t=69069*t+1>>>0)*e,r=1,t}function s(){var t=2091639*u+r*e;return u=o,o=c,c=t-(r=0|t)}return i(void 0===n?1:n),{setSeed:i,uFloat32:s,uInt32:function(){return s()*t>>>0},getState:function(){return{correction:r,sequence:[u,o,c]}},setState:function(e){(e=e||{correction:1,sequence:[0,0,0]}).sequence=e.sequence||[],r=e.correction||1,u=e.sequence[0]||0,o=e.sequence[1]||0,c=e.sequence[2]||0}}});module.exports=n;
//# sourceMappingURL=aleaRNGFactory.js.map

@@ -1,2 +0,2 @@

function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],t=!0,c=!1,a=void 0;try{for(var u,o=e[Symbol.iterator]();!(t=(u=o.next()).done)&&(r.push(u.value),!n||r.length!==n);t=!0);}catch(e){c=!0,a=e}finally{try{t||null==o.return||o.return()}finally{if(c)throw a}}return r}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(e,n){return(65535&(e|=0))*(n|=0)+(((e>>>16)*n&65535)<<16)|0}function r(e,n){return e[n++]+(e[n++]<<8)+(e[n++]<<16)+(e[n++]<<24)}function t(e){return e=n(e^=e>>>16,2246822507),e=n(e^=e>>>13,3266489909),e^=e>>>16}function c(e,n){return e<<n|e>>>32-n}function a(n){var r=e(n,4),t=r[0],c=r[1],a=r[2],u=r[3],o="00000000";return(o+(t>>>0).toString(16)).slice(-8)+(o+(c>>>0).toString(16)).slice(-8)+(o+(a>>>0).toString(16)).slice(-8)+(o+(u>>>0).toString(16)).slice(-8)}function u(e){if(void 0!==e&&e%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function o(e,n){if("string"!=typeof e)throw new TypeError("".concat(n,"(): first argument is not a string."))}function i(e){for(var n=e.length,r=-1,t=new Uint8Array(3*n),c=0;c!==n;){var a=e.charCodeAt(c);if(c+=1,a>=55296&&a<=56319){if(c===n){t[r+=1]=239,t[r+=1]=191,t[r+=1]=189;break}var u=e.charCodeAt(c);if(!(u>=56320&&u<=57343)){t[r+=1]=239,t[r+=1]=191,t[r+=1]=189;continue}if(c+=1,(a=1024*(a-55296)+u-56320+65536)>65535){t[r+=1]=240|a>>>18,t[r+=1]=128|a>>>12&63,t[r+=1]=128|a>>>6&63,t[r+=1]=128|63&a;continue}}a<=127?t[r+=1]=0|a:a<=2047?(t[r+=1]=192|a>>>6,t[r+=1]=128|63&a):(t[r+=1]=224|a>>>12,t[r+=1]=128|a>>>6&63,t[r+=1]=128|63&a)}return t.subarray(0,r+1)}function s(e){for(var n=new Uint8Array(e.length),r=0;r<e.length;r+=1){var t=e.charCodeAt(r);if(t<0||t>127)return i(e);n[r]=t}return n}var f,h,l,g,v,d,w,y,p,b,m,S=(f=1,h=0,l=0,g=0,v=Math.pow(2,-32),d=Math.pow(2,32),w=2091639,y=69069,function(e){var n=f,r=h,t=l,c=g;function a(e){return function(e){if(e%1!=0||e<=0)throw new TypeError('Expected seed to be an unsigned integer greater or equal 1, but got "'.concat(e,'"'))}(e),r=(e>>>0)*v,t=(e=e*y+1>>>0)*v,c=(e=e*y+1>>>0)*v,n=f,e}function u(){var e=w*r+n*v;return r=t,t=c,c=e-(n=0|e)}return a(void 0===e?1:e),{setSeed:a,uFloat32:u,uInt32:function(){return u()*d>>>0},getState:function(){return{correction:n,sequence:[r,t,c]}},setState:function(e){(e=e||{correction:f,sequence:[h,l,g]}).sequence=e.sequence||[],n=e.correction||f,r=e.sequence[0]||h,t=e.sequence[1]||l,c=e.sequence[2]||g}}}),q=function(){var e=1540483477,t=24,c=function(e,n){return e[n++]+(e[n]<<8)};return function(a){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(a,"murmurhash2_x86_32"),u(i);for(var f=s(a),h=0,l=i^f.length,g=f.length;g>=4;){var v=r(f,h);v=n(v,e),v=n(v^=v>>>t,e),l=n(l,e),l^=v,h+=4,g-=4}switch(g){case 3:l^=c(f,h),l=n(l^=f[h+2]<<16,e);break;case 2:l=n(l^=c(f,h),e);break;case 1:l=n(l^=f[h],e)}return l=n(l^=l>>>13,e),(l^=l>>>15)>>>0}}(),x=(p=3432918353,b=461845907,m=3864292196,function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(e,"murmurhash3_x86_32"),u(a);for(var i=s(e),f=i.length%4,h=i.length-f,l=0,g=0,v=a;g<h;)l=n(l=r(i,g),p),l=n(l=c(l,15),b),v=n(v=c(v^=l,13),5)+m,g+=4;switch(l=0,f){case 3:l^=(255&i[g+2])<<16;case 2:l^=(255&i[g+1])<<8;case 1:l=n(l^=i[g],p),v^=l=n(l=c(l,15),b)}return(v=t(v^=i.length))>>>0}),A=function(){var e=597399067,r=2869860233,i=951274213,f=2716044179,h=1444728091,l=197830471,g=2530024501,v=850148119;return function(d){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(d,"murmurhash3_x86_128"),u(w);for(var y=s(d),p=y.length%16,b=y.length-p,m=w,S=w,q=w,x=w,A=0,_=0,E=0,T=0,j=0;j<b;)A=255&y[j]|(255&y[j+1])<<8|(255&y[j+2])<<16|(255&y[j+3])<<24,_=255&y[j+4]|(255&y[j+5])<<8|(255&y[j+6])<<16|(255&y[j+7])<<24,E=255&y[j+8]|(255&y[j+9])<<8|(255&y[j+10])<<16|(255&y[j+11])<<24,T=255&y[j+12]|(255&y[j+13])<<8|(255&y[j+14])<<16|(255&y[j+15])<<24,A=c(A=n(A,e),15),m=c(m^=A=n(A,r),19),m=n(m+=S,5)+h,_=c(_=n(_,r),16),S=c(S^=_=n(_,i),17),S=n(S+=q,5)+l,E=c(E=n(E,i),17),q=c(q^=E=n(E,f),15),q=n(q+=x,5)+g,T=c(T=n(T,f),18),x=c(x^=T=n(T,e),13),x=n(x+=m,5)+v,j+=16;switch(A=0,_=0,E=0,T=0,p){case 15:T^=y[j+14]<<16;case 14:T^=y[j+13]<<8;case 13:T=n(T^=y[j+12],f),x^=T=n(T=c(T,18),e);case 12:E^=y[j+11]<<24;case 11:E^=y[j+10]<<16;case 10:E^=y[j+9]<<8;case 9:E=n(E^=y[j+8],i),q^=E=n(E=c(E,17),f);case 8:_^=y[j+7]<<24;case 7:_^=y[j+6]<<16;case 6:_^=y[j+5]<<8;case 5:_=n(_^=y[j+4],r),S^=_=n(_=c(_,16),i);case 4:A^=y[j+3]<<24;case 3:A^=y[j+2]<<16;case 2:A^=y[j+1]<<8;case 1:A=n(A^=y[j],e),m^=A=n(A=c(A,15),r)}return m^=y.length,m+=S^=y.length,m+=q^=y.length,S+=m+=x^=y.length,q+=m,x+=m,m=t(m),m+=S=t(S),m+=q=t(q),a([m+=x=t(x),S+=m,q+=m,x+=m])}}(),_=function(){var e=[2277735313,289559509],n=[1291169091,658871167],r=65535;function t(e,n){var t=[0,0,0,0];return e=[e[0]>>>16,e[0]&r,e[1]>>>16,e[1]&r],n=[n[0]>>>16,n[0]&r,n[1]>>>16,n[1]&r],t[3]+=e[3]*n[3],t[2]+=t[3]>>>16,t[3]&=r,t[2]+=e[2]*n[3],t[1]+=t[2]>>>16,t[2]&=r,t[2]+=e[3]*n[2],t[1]+=t[2]>>>16,t[2]&=r,t[1]+=e[1]*n[3],t[0]+=t[1]>>>16,t[1]&=r,t[1]+=e[2]*n[2],t[0]+=t[1]>>>16,t[1]&=r,t[1]+=e[3]*n[1],t[0]+=t[1]>>>16,t[1]&=r,t[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],t[0]&=r,[t[0]<<16|t[1],t[2]<<16|t[3]]}function c(e,n){var t=[0,0,0,0];return e=[e[0]>>>16,e[0]&r,e[1]>>>16,e[1]&r],n=[n[0]>>>16,n[0]&r,n[1]>>>16,n[1]&r],t[3]+=e[3]+n[3],t[2]+=t[3]>>>16,t[3]&=r,t[2]+=e[2]+n[2],t[1]+=t[2]>>>16,t[2]&=r,t[1]+=e[1]+n[1],t[0]+=t[1]>>>16,t[1]&=r,t[0]+=e[0]+n[0],t[0]&=r,[t[0]<<16|t[1],t[2]<<16|t[3]]}function i(e,n){return(n%=64)<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])}function f(e,n){return(n%=64)<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]}function h(e,n){return[e[0]^n[0],e[1]^n[1]]}function l(e){return e=h(e,[0,e[0]>>>1]),e=h(e=t(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=h(e=t(e,[3301882366,444984403]),[0,e[0]>>>1])}return function(r){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(r,"murmurhash3_x64_128"),u(g);for(var v=s(r),d=v.length%16,w=v.length-d,y=[0,g],p=[0,g],b=[0,0],m=[0,0],S=0;S<w;)b=[255&v[S+4]|(255&v[S+5])<<8|(255&v[S+6])<<16|(255&v[S+7])<<24,255&v[S]|(255&v[S+1])<<8|(255&v[S+2])<<16|(255&v[S+3])<<24],m=[255&v[S+12]|(255&v[S+13])<<8|(255&v[S+14])<<16|(255&v[S+15])<<24,255&v[S+8]|(255&v[S+9])<<8|(255&v[S+10])<<16|(255&v[S+11])<<24],b=i(b=t(b,e),31),y=c(y=i(y=h(y,b=t(b,n)),27),p),y=c(t(y,[0,5]),[0,1390208809]),m=i(m=t(m,n),33),p=c(p=i(p=h(p,m=t(m,e)),31),y),p=c(t(p,[0,5]),[0,944331445]),S+=16;switch(b=[0,0],m=[0,0],d){case 15:m=h(m,f([0,v[S+14]],48));case 14:m=h(m,f([0,v[S+13]],40));case 13:m=h(m,f([0,v[S+12]],32));case 12:m=h(m,f([0,v[S+11]],24));case 11:m=h(m,f([0,v[S+10]],16));case 10:m=h(m,f([0,v[S+9]],8));case 9:m=t(m=h(m,[0,v[S+8]]),n),p=h(p,m=t(m=i(m,33),e));case 8:b=h(b,f([0,v[S+7]],56));case 7:b=h(b,f([0,v[S+6]],48));case 6:b=h(b,f([0,v[S+5]],40));case 5:b=h(b,f([0,v[S+4]],32));case 4:b=h(b,f([0,v[S+3]],24));case 3:b=h(b,f([0,v[S+2]],16));case 2:b=h(b,f([0,v[S+1]],8));case 1:b=t(b=h(b,[0,v[S]]),e),y=h(y,b=t(b=i(b,31),n))}return y=c(y=h(y,[0,v.length]),p=h(p,[0,v.length])),p=c(p,y),y=c(y=l(y),p=l(p)),p=c(p,y),a([y[0],y[1],p[0],p[1]])}}();export{S as aleaRNGFactory,q as murmurhash2_x86_32,_ as murmurhash3_x64_128,A as murmurhash3_x86_128,x as murmurhash3_x86_32};
function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],r=!0,c=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(t.push(o.value),!n||t.length!==n);r=!0);}catch(e){c=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(c)throw a}}return t}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(e,n){return(65535&(e|=0))*(n|=0)+(((e>>>16)*n&65535)<<16)|0}function t(e,n){return e[n++]+(e[n++]<<8)+(e[n++]<<16)+(e[n++]<<24)}function r(e){return e=n(e^=e>>>16,2246822507),e=n(e^=e>>>13,3266489909),e^=e>>>16}function c(e,n){return e<<n|e>>>32-n}function a(n){var t=e(n,4),r=t[0],c=t[1],a=t[2],o=t[3],u="00000000";return(u+(r>>>0).toString(16)).slice(-8)+(u+(c>>>0).toString(16)).slice(-8)+(u+(a>>>0).toString(16)).slice(-8)+(u+(o>>>0).toString(16)).slice(-8)}function o(e){if(void 0!==e&&e%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function u(e,n){if("string"!=typeof e)throw new TypeError("".concat(n,"(): first argument is not a string."))}function i(e){for(var n=e.length,t=-1,r=new Uint8Array(3*n),c=0;c!==n;){var a=e.charCodeAt(c);if(c+=1,a>=55296&&a<=56319){if(c===n){r[t+=1]=239,r[t+=1]=191,r[t+=1]=189;break}var o=e.charCodeAt(c);if(!(o>=56320&&o<=57343)){r[t+=1]=239,r[t+=1]=191,r[t+=1]=189;continue}if(c+=1,(a=1024*(a-55296)+o-56320+65536)>65535){r[t+=1]=240|a>>>18,r[t+=1]=128|a>>>12&63,r[t+=1]=128|a>>>6&63,r[t+=1]=128|63&a;continue}}a<=127?r[t+=1]=0|a:a<=2047?(r[t+=1]=192|a>>>6,r[t+=1]=128|63&a):(r[t+=1]=224|a>>>12,r[t+=1]=128|a>>>6&63,r[t+=1]=128|63&a)}return r.subarray(0,t+1)}function s(e){for(var n=new Uint8Array(e.length),t=0;t<e.length;t+=1){var r=e.charCodeAt(t);if(r<0||r>127)return i(e);n[t]=r}return n}var f,h,l,g=(f=Math.pow(2,-32),h=Math.pow(2,32),function(e){var n=1,t=0,r=0,c=0;function a(e){return function(e){if(e%1!=0||e<=0)throw new TypeError('Expected seed to be an unsigned integer greater or equal 1, but got "'.concat(e,'"'))}(e),t=(e>>>0)*f,r=(e=69069*e+1>>>0)*f,c=(e=69069*e+1>>>0)*f,n=1,e}function o(){var e=2091639*t+n*f;return t=r,r=c,c=e-(n=0|e)}return a(void 0===e?1:e),{setSeed:a,uFloat32:o,uInt32:function(){return o()*h>>>0},getState:function(){return{correction:n,sequence:[t,r,c]}},setState:function(e){(e=e||{correction:1,sequence:[0,0,0]}).sequence=e.sequence||[],n=e.correction||1,t=e.sequence[0]||0,r=e.sequence[1]||0,c=e.sequence[2]||0}}}),v=(l=function(e,n){return e[n++]+(e[n]<<8)},function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;u(e,"murmurhash2_x86_32"),o(r);for(var c=s(e),a=0,i=r^c.length,f=c.length;f>=4;){var h=t(c,a);h=n(h,1540483477),h=n(h^=h>>>24,1540483477),i=n(i,1540483477),i^=h,a+=4,f-=4}switch(f){case 3:i^=l(c,a),i=n(i^=c[a+2]<<16,1540483477);break;case 2:i=n(i^=l(c,a),1540483477);break;case 1:i=n(i^=c[a],1540483477)}return i=n(i^=i>>>13,1540483477),(i^=i>>>15)>>>0}),d=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;u(e,"murmurhash3_x86_32"),o(a);for(var i=s(e),f=i.length%4,h=i.length-f,l=0,g=0,v=a;g<h;)l=n(l=t(i,g),3432918353),l=n(l=c(l,15),461845907),v=n(v=c(v^=l,13),5)+3864292196,g+=4;switch(l=0,f){case 3:l^=(255&i[g+2])<<16;case 2:l^=(255&i[g+1])<<8;case 1:l=n(l^=i[g],3432918353),v^=l=n(l=c(l,15),461845907)}return(v=r(v^=i.length))>>>0},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;u(e,"murmurhash3_x86_128"),o(t);for(var i=s(e),f=i.length%16,h=i.length-f,l=t,g=t,v=t,d=t,w=0,y=0,p=0,b=0,m=0;m<h;)w=255&i[m]|(255&i[m+1])<<8|(255&i[m+2])<<16|(255&i[m+3])<<24,y=255&i[m+4]|(255&i[m+5])<<8|(255&i[m+6])<<16|(255&i[m+7])<<24,p=255&i[m+8]|(255&i[m+9])<<8|(255&i[m+10])<<16|(255&i[m+11])<<24,b=255&i[m+12]|(255&i[m+13])<<8|(255&i[m+14])<<16|(255&i[m+15])<<24,w=c(w=n(w,597399067),15),l=c(l^=w=n(w,2869860233),19),l=n(l+=g,5)+1444728091,y=c(y=n(y,2869860233),16),g=c(g^=y=n(y,951274213),17),g=n(g+=v,5)+197830471,p=c(p=n(p,951274213),17),v=c(v^=p=n(p,2716044179),15),v=n(v+=d,5)+2530024501,b=c(b=n(b,2716044179),18),d=c(d^=b=n(b,597399067),13),d=n(d+=l,5)+850148119,m+=16;switch(w=0,y=0,p=0,b=0,f){case 15:b^=i[m+14]<<16;case 14:b^=i[m+13]<<8;case 13:b=n(b^=i[m+12],2716044179),d^=b=n(b=c(b,18),597399067);case 12:p^=i[m+11]<<24;case 11:p^=i[m+10]<<16;case 10:p^=i[m+9]<<8;case 9:p=n(p^=i[m+8],951274213),v^=p=n(p=c(p,17),2716044179);case 8:y^=i[m+7]<<24;case 7:y^=i[m+6]<<16;case 6:y^=i[m+5]<<8;case 5:y=n(y^=i[m+4],2869860233),g^=y=n(y=c(y,16),951274213);case 4:w^=i[m+3]<<24;case 3:w^=i[m+2]<<16;case 2:w^=i[m+1]<<8;case 1:w=n(w^=i[m],597399067),l^=w=n(w=c(w,15),2869860233)}return l^=i.length,l+=g^=i.length,l+=v^=i.length,g+=l+=d^=i.length,v+=l,d+=l,l=r(l),l+=g=r(g),l+=v=r(v),a([l+=d=r(d),g+=l,v+=l,d+=l])},y=function(){var e=[2277735313,289559509],n=[1291169091,658871167];function t(e,n){var t=[0,0,0,0];return e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]],t[3]+=e[3]*n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]*n[3],t[1]+=t[2]>>>16,t[2]&=65535,t[2]+=e[3]*n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]*n[3],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[2]*n[2],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[3]*n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function r(e,n){var t=[0,0,0,0];return e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]],t[3]+=e[3]+n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]+n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]+n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]+n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function c(e,n){return(n%=64)<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])}function i(e,n){return(n%=64)<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]}function f(e,n){return[e[0]^n[0],e[1]^n[1]]}function h(e){return e=f(e,[0,e[0]>>>1]),e=f(e=t(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=f(e=t(e,[3301882366,444984403]),[0,e[0]>>>1])}return function(l){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;u(l,"murmurhash3_x64_128"),o(g);for(var v=s(l),d=v.length%16,w=v.length-d,y=[0,g],p=[0,g],b=[0,0],m=[0,0],S=0;S<w;)b=[255&v[S+4]|(255&v[S+5])<<8|(255&v[S+6])<<16|(255&v[S+7])<<24,255&v[S]|(255&v[S+1])<<8|(255&v[S+2])<<16|(255&v[S+3])<<24],m=[255&v[S+12]|(255&v[S+13])<<8|(255&v[S+14])<<16|(255&v[S+15])<<24,255&v[S+8]|(255&v[S+9])<<8|(255&v[S+10])<<16|(255&v[S+11])<<24],b=c(b=t(b,e),31),y=r(y=c(y=f(y,b=t(b,n)),27),p),y=r(t(y,[0,5]),[0,1390208809]),m=c(m=t(m,n),33),p=r(p=c(p=f(p,m=t(m,e)),31),y),p=r(t(p,[0,5]),[0,944331445]),S+=16;switch(b=[0,0],m=[0,0],d){case 15:m=f(m,i([0,v[S+14]],48));case 14:m=f(m,i([0,v[S+13]],40));case 13:m=f(m,i([0,v[S+12]],32));case 12:m=f(m,i([0,v[S+11]],24));case 11:m=f(m,i([0,v[S+10]],16));case 10:m=f(m,i([0,v[S+9]],8));case 9:m=t(m=f(m,[0,v[S+8]]),n),p=f(p,m=t(m=c(m,33),e));case 8:b=f(b,i([0,v[S+7]],56));case 7:b=f(b,i([0,v[S+6]],48));case 6:b=f(b,i([0,v[S+5]],40));case 5:b=f(b,i([0,v[S+4]],32));case 4:b=f(b,i([0,v[S+3]],24));case 3:b=f(b,i([0,v[S+2]],16));case 2:b=f(b,i([0,v[S+1]],8));case 1:b=t(b=f(b,[0,v[S]]),e),y=f(y,b=t(b=c(b,31),n))}return y=r(y=f(y,[0,v.length]),p=f(p,[0,v.length])),p=r(p,y),y=r(y=h(y),p=h(p)),p=r(p,y),a([y[0],y[1],p[0],p[1]])}}();export{g as aleaRNGFactory,v as murmurhash2_x86_32,y as murmurhash3_x64_128,w as murmurhash3_x86_128,d as murmurhash3_x86_32};
//# sourceMappingURL=index.esm.js.map

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).numberGenerator={})}(this,(function(e){"use strict";function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],t=!0,c=!1,u=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done)&&(r.push(a.value),!n||r.length!==n);t=!0);}catch(e){c=!0,u=e}finally{try{t||null==o.return||o.return()}finally{if(c)throw u}}return r}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(e,n){return(65535&(e|=0))*(n|=0)+(((e>>>16)*n&65535)<<16)|0}function t(e,n){return e[n++]+(e[n++]<<8)+(e[n++]<<16)+(e[n++]<<24)}function c(e){return e=r(e^=e>>>16,2246822507),e=r(e^=e>>>13,3266489909),e^=e>>>16}function u(e,n){return e<<n|e>>>32-n}function a(e){var r=n(e,4),t=r[0],c=r[1],u=r[2],a=r[3],o="00000000";return(o+(t>>>0).toString(16)).slice(-8)+(o+(c>>>0).toString(16)).slice(-8)+(o+(u>>>0).toString(16)).slice(-8)+(o+(a>>>0).toString(16)).slice(-8)}function o(e){if(void 0!==e&&e%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function i(e,n){if("string"!=typeof e)throw new TypeError("".concat(n,"(): first argument is not a string."))}function s(e){for(var n=e.length,r=-1,t=new Uint8Array(3*n),c=0;c!==n;){var u=e.charCodeAt(c);if(c+=1,u>=55296&&u<=56319){if(c===n){t[r+=1]=239,t[r+=1]=191,t[r+=1]=189;break}var a=e.charCodeAt(c);if(!(a>=56320&&a<=57343)){t[r+=1]=239,t[r+=1]=191,t[r+=1]=189;continue}if(c+=1,(u=1024*(u-55296)+a-56320+65536)>65535){t[r+=1]=240|u>>>18,t[r+=1]=128|u>>>12&63,t[r+=1]=128|u>>>6&63,t[r+=1]=128|63&u;continue}}u<=127?t[r+=1]=0|u:u<=2047?(t[r+=1]=192|u>>>6,t[r+=1]=128|63&u):(t[r+=1]=224|u>>>12,t[r+=1]=128|u>>>6&63,t[r+=1]=128|63&u)}return t.subarray(0,r+1)}function f(e){for(var n=new Uint8Array(e.length),r=0;r<e.length;r+=1){var t=e.charCodeAt(r);if(t<0||t>127)return s(e);n[r]=t}return n}var h,l,g,v,d,m,y,p,_,w,b,x=(h=1,l=0,g=0,v=0,d=Math.pow(2,-32),m=Math.pow(2,32),y=2091639,p=69069,function(e){var n=h,r=l,t=g,c=v;function u(e){return function(e){if(e%1!=0||e<=0)throw new TypeError('Expected seed to be an unsigned integer greater or equal 1, but got "'.concat(e,'"'))}(e),r=(e>>>0)*d,t=(e=e*p+1>>>0)*d,c=(e=e*p+1>>>0)*d,n=h,e}function a(){var e=y*r+n*d;return r=t,t=c,c=e-(n=0|e)}return u(void 0===e?1:e),{setSeed:u,uFloat32:a,uInt32:function(){return a()*m>>>0},getState:function(){return{correction:n,sequence:[r,t,c]}},setState:function(e){(e=e||{correction:h,sequence:[l,g,v]}).sequence=e.sequence||[],n=e.correction||h,r=e.sequence[0]||l,t=e.sequence[1]||g,c=e.sequence[2]||v}}}),S=function(){var e=1540483477,n=24,c=function(e,n){return e[n++]+(e[n]<<8)};return function(u){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(u,"murmurhash2_x86_32"),o(a);for(var s=f(u),h=0,l=a^s.length,g=s.length;g>=4;){var v=t(s,h);v=r(v,e),v=r(v^=v>>>n,e),l=r(l,e),l^=v,h+=4,g-=4}switch(g){case 3:l^=c(s,h),l=r(l^=s[h+2]<<16,e);break;case 2:l=r(l^=c(s,h),e);break;case 1:l=r(l^=s[h],e)}return l=r(l^=l>>>13,e),(l^=l>>>15)>>>0}}(),q=(_=3432918353,w=461845907,b=3864292196,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(e,"murmurhash3_x86_32"),o(n);for(var a=f(e),s=a.length%4,h=a.length-s,l=0,g=0,v=n;g<h;)l=r(l=t(a,g),_),l=r(l=u(l,15),w),v=r(v=u(v^=l,13),5)+b,g+=4;switch(l=0,s){case 3:l^=(255&a[g+2])<<16;case 2:l^=(255&a[g+1])<<8;case 1:l=r(l^=a[g],_),v^=l=r(l=u(l,15),w)}return(v=c(v^=a.length))>>>0}),A=function(){var e=597399067,n=2869860233,t=951274213,s=2716044179,h=1444728091,l=197830471,g=2530024501,v=850148119;return function(d){var m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(d,"murmurhash3_x86_128"),o(m);for(var y=f(d),p=y.length%16,_=y.length-p,w=m,b=m,x=m,S=m,q=0,A=0,E=0,j=0,T=0;T<_;)q=255&y[T]|(255&y[T+1])<<8|(255&y[T+2])<<16|(255&y[T+3])<<24,A=255&y[T+4]|(255&y[T+5])<<8|(255&y[T+6])<<16|(255&y[T+7])<<24,E=255&y[T+8]|(255&y[T+9])<<8|(255&y[T+10])<<16|(255&y[T+11])<<24,j=255&y[T+12]|(255&y[T+13])<<8|(255&y[T+14])<<16|(255&y[T+15])<<24,q=u(q=r(q,e),15),w=u(w^=q=r(q,n),19),w=r(w+=b,5)+h,A=u(A=r(A,n),16),b=u(b^=A=r(A,t),17),b=r(b+=x,5)+l,E=u(E=r(E,t),17),x=u(x^=E=r(E,s),15),x=r(x+=S,5)+g,j=u(j=r(j,s),18),S=u(S^=j=r(j,e),13),S=r(S+=w,5)+v,T+=16;switch(q=0,A=0,E=0,j=0,p){case 15:j^=y[T+14]<<16;case 14:j^=y[T+13]<<8;case 13:j=r(j^=y[T+12],s),S^=j=r(j=u(j,18),e);case 12:E^=y[T+11]<<24;case 11:E^=y[T+10]<<16;case 10:E^=y[T+9]<<8;case 9:E=r(E^=y[T+8],t),x^=E=r(E=u(E,17),s);case 8:A^=y[T+7]<<24;case 7:A^=y[T+6]<<16;case 6:A^=y[T+5]<<8;case 5:A=r(A^=y[T+4],n),b^=A=r(A=u(A,16),t);case 4:q^=y[T+3]<<24;case 3:q^=y[T+2]<<16;case 2:q^=y[T+1]<<8;case 1:q=r(q^=y[T],e),w^=q=r(q=u(q,15),n)}return w^=y.length,w+=b^=y.length,w+=x^=y.length,b+=w+=S^=y.length,x+=w,S+=w,w=c(w),w+=b=c(b),w+=x=c(x),a([w+=S=c(S),b+=w,x+=w,S+=w])}}(),E=function(){var e=[2277735313,289559509],n=[1291169091,658871167],r=65535;function t(e,n){var t=[0,0,0,0];return e=[e[0]>>>16,e[0]&r,e[1]>>>16,e[1]&r],n=[n[0]>>>16,n[0]&r,n[1]>>>16,n[1]&r],t[3]+=e[3]*n[3],t[2]+=t[3]>>>16,t[3]&=r,t[2]+=e[2]*n[3],t[1]+=t[2]>>>16,t[2]&=r,t[2]+=e[3]*n[2],t[1]+=t[2]>>>16,t[2]&=r,t[1]+=e[1]*n[3],t[0]+=t[1]>>>16,t[1]&=r,t[1]+=e[2]*n[2],t[0]+=t[1]>>>16,t[1]&=r,t[1]+=e[3]*n[1],t[0]+=t[1]>>>16,t[1]&=r,t[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],t[0]&=r,[t[0]<<16|t[1],t[2]<<16|t[3]]}function c(e,n){var t=[0,0,0,0];return e=[e[0]>>>16,e[0]&r,e[1]>>>16,e[1]&r],n=[n[0]>>>16,n[0]&r,n[1]>>>16,n[1]&r],t[3]+=e[3]+n[3],t[2]+=t[3]>>>16,t[3]&=r,t[2]+=e[2]+n[2],t[1]+=t[2]>>>16,t[2]&=r,t[1]+=e[1]+n[1],t[0]+=t[1]>>>16,t[1]&=r,t[0]+=e[0]+n[0],t[0]&=r,[t[0]<<16|t[1],t[2]<<16|t[3]]}function u(e,n){return(n%=64)<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])}function s(e,n){return(n%=64)<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]}function h(e,n){return[e[0]^n[0],e[1]^n[1]]}function l(e){return e=h(e,[0,e[0]>>>1]),e=h(e=t(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=h(e=t(e,[3301882366,444984403]),[0,e[0]>>>1])}return function(r){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(r,"murmurhash3_x64_128"),o(g);for(var v=f(r),d=v.length%16,m=v.length-d,y=[0,g],p=[0,g],_=[0,0],w=[0,0],b=0;b<m;)_=[255&v[b+4]|(255&v[b+5])<<8|(255&v[b+6])<<16|(255&v[b+7])<<24,255&v[b]|(255&v[b+1])<<8|(255&v[b+2])<<16|(255&v[b+3])<<24],w=[255&v[b+12]|(255&v[b+13])<<8|(255&v[b+14])<<16|(255&v[b+15])<<24,255&v[b+8]|(255&v[b+9])<<8|(255&v[b+10])<<16|(255&v[b+11])<<24],_=u(_=t(_,e),31),y=c(y=u(y=h(y,_=t(_,n)),27),p),y=c(t(y,[0,5]),[0,1390208809]),w=u(w=t(w,n),33),p=c(p=u(p=h(p,w=t(w,e)),31),y),p=c(t(p,[0,5]),[0,944331445]),b+=16;switch(_=[0,0],w=[0,0],d){case 15:w=h(w,s([0,v[b+14]],48));case 14:w=h(w,s([0,v[b+13]],40));case 13:w=h(w,s([0,v[b+12]],32));case 12:w=h(w,s([0,v[b+11]],24));case 11:w=h(w,s([0,v[b+10]],16));case 10:w=h(w,s([0,v[b+9]],8));case 9:w=t(w=h(w,[0,v[b+8]]),n),p=h(p,w=t(w=u(w,33),e));case 8:_=h(_,s([0,v[b+7]],56));case 7:_=h(_,s([0,v[b+6]],48));case 6:_=h(_,s([0,v[b+5]],40));case 5:_=h(_,s([0,v[b+4]],32));case 4:_=h(_,s([0,v[b+3]],24));case 3:_=h(_,s([0,v[b+2]],16));case 2:_=h(_,s([0,v[b+1]],8));case 1:_=t(_=h(_,[0,v[b]]),e),y=h(y,_=t(_=u(_,31),n))}return y=c(y=h(y,[0,v.length]),p=h(p,[0,v.length])),p=c(p,y),y=c(y=l(y),p=l(p)),p=c(p,y),a([y[0],y[1],p[0],p[1]])}}();e.aleaRNGFactory=x,e.murmurhash2_x86_32=S,e.murmurhash3_x64_128=E,e.murmurhash3_x86_128=A,e.murmurhash3_x86_32=q,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).numberGenerator={})}(this,(function(e){"use strict";function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],r=!0,c=!1,a=void 0;try{for(var u,o=e[Symbol.iterator]();!(r=(u=o.next()).done)&&(t.push(u.value),!n||t.length!==n);r=!0);}catch(e){c=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(c)throw a}}return t}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function t(e,n){return(65535&(e|=0))*(n|=0)+(((e>>>16)*n&65535)<<16)|0}function r(e,n){return e[n++]+(e[n++]<<8)+(e[n++]<<16)+(e[n++]<<24)}function c(e){return e=t(e^=e>>>16,2246822507),e=t(e^=e>>>13,3266489909),e^=e>>>16}function a(e,n){return e<<n|e>>>32-n}function u(e){var t=n(e,4),r=t[0],c=t[1],a=t[2],u=t[3],o="00000000";return(o+(r>>>0).toString(16)).slice(-8)+(o+(c>>>0).toString(16)).slice(-8)+(o+(a>>>0).toString(16)).slice(-8)+(o+(u>>>0).toString(16)).slice(-8)}function o(e){if(void 0!==e&&e%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function i(e,n){if("string"!=typeof e)throw new TypeError("".concat(n,"(): first argument is not a string."))}function s(e){for(var n=e.length,t=-1,r=new Uint8Array(3*n),c=0;c!==n;){var a=e.charCodeAt(c);if(c+=1,a>=55296&&a<=56319){if(c===n){r[t+=1]=239,r[t+=1]=191,r[t+=1]=189;break}var u=e.charCodeAt(c);if(!(u>=56320&&u<=57343)){r[t+=1]=239,r[t+=1]=191,r[t+=1]=189;continue}if(c+=1,(a=1024*(a-55296)+u-56320+65536)>65535){r[t+=1]=240|a>>>18,r[t+=1]=128|a>>>12&63,r[t+=1]=128|a>>>6&63,r[t+=1]=128|63&a;continue}}a<=127?r[t+=1]=0|a:a<=2047?(r[t+=1]=192|a>>>6,r[t+=1]=128|63&a):(r[t+=1]=224|a>>>12,r[t+=1]=128|a>>>6&63,r[t+=1]=128|63&a)}return r.subarray(0,t+1)}function f(e){for(var n=new Uint8Array(e.length),t=0;t<e.length;t+=1){var r=e.charCodeAt(t);if(r<0||r>127)return s(e);n[t]=r}return n}var h,l,g,v=(h=Math.pow(2,-32),l=Math.pow(2,32),function(e){var n=1,t=0,r=0,c=0;function a(e){return function(e){if(e%1!=0||e<=0)throw new TypeError('Expected seed to be an unsigned integer greater or equal 1, but got "'.concat(e,'"'))}(e),t=(e>>>0)*h,r=(e=69069*e+1>>>0)*h,c=(e=69069*e+1>>>0)*h,n=1,e}function u(){var e=2091639*t+n*h;return t=r,r=c,c=e-(n=0|e)}return a(void 0===e?1:e),{setSeed:a,uFloat32:u,uInt32:function(){return u()*l>>>0},getState:function(){return{correction:n,sequence:[t,r,c]}},setState:function(e){(e=e||{correction:1,sequence:[0,0,0]}).sequence=e.sequence||[],n=e.correction||1,t=e.sequence[0]||0,r=e.sequence[1]||0,c=e.sequence[2]||0}}}),d=(g=function(e,n){return e[n++]+(e[n]<<8)},function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(e,"murmurhash2_x86_32"),o(n);for(var c=f(e),a=0,u=n^c.length,s=c.length;s>=4;){var h=r(c,a);h=t(h,1540483477),h=t(h^=h>>>24,1540483477),u=t(u,1540483477),u^=h,a+=4,s-=4}switch(s){case 3:u^=g(c,a),u=t(u^=c[a+2]<<16,1540483477);break;case 2:u=t(u^=g(c,a),1540483477);break;case 1:u=t(u^=c[a],1540483477)}return u=t(u^=u>>>13,1540483477),(u^=u>>>15)>>>0}),m=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(e,"murmurhash3_x86_32"),o(n);for(var u=f(e),s=u.length%4,h=u.length-s,l=0,g=0,v=n;g<h;)l=t(l=r(u,g),3432918353),l=t(l=a(l,15),461845907),v=t(v=a(v^=l,13),5)+3864292196,g+=4;switch(l=0,s){case 3:l^=(255&u[g+2])<<16;case 2:l^=(255&u[g+1])<<8;case 1:l=t(l^=u[g],3432918353),v^=l=t(l=a(l,15),461845907)}return(v=c(v^=u.length))>>>0},y=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(e,"murmurhash3_x86_128"),o(n);for(var r=f(e),s=r.length%16,h=r.length-s,l=n,g=n,v=n,d=n,m=0,y=0,p=0,_=0,w=0;w<h;)m=255&r[w]|(255&r[w+1])<<8|(255&r[w+2])<<16|(255&r[w+3])<<24,y=255&r[w+4]|(255&r[w+5])<<8|(255&r[w+6])<<16|(255&r[w+7])<<24,p=255&r[w+8]|(255&r[w+9])<<8|(255&r[w+10])<<16|(255&r[w+11])<<24,_=255&r[w+12]|(255&r[w+13])<<8|(255&r[w+14])<<16|(255&r[w+15])<<24,m=a(m=t(m,597399067),15),l=a(l^=m=t(m,2869860233),19),l=t(l+=g,5)+1444728091,y=a(y=t(y,2869860233),16),g=a(g^=y=t(y,951274213),17),g=t(g+=v,5)+197830471,p=a(p=t(p,951274213),17),v=a(v^=p=t(p,2716044179),15),v=t(v+=d,5)+2530024501,_=a(_=t(_,2716044179),18),d=a(d^=_=t(_,597399067),13),d=t(d+=l,5)+850148119,w+=16;switch(m=0,y=0,p=0,_=0,s){case 15:_^=r[w+14]<<16;case 14:_^=r[w+13]<<8;case 13:_=t(_^=r[w+12],2716044179),d^=_=t(_=a(_,18),597399067);case 12:p^=r[w+11]<<24;case 11:p^=r[w+10]<<16;case 10:p^=r[w+9]<<8;case 9:p=t(p^=r[w+8],951274213),v^=p=t(p=a(p,17),2716044179);case 8:y^=r[w+7]<<24;case 7:y^=r[w+6]<<16;case 6:y^=r[w+5]<<8;case 5:y=t(y^=r[w+4],2869860233),g^=y=t(y=a(y,16),951274213);case 4:m^=r[w+3]<<24;case 3:m^=r[w+2]<<16;case 2:m^=r[w+1]<<8;case 1:m=t(m^=r[w],597399067),l^=m=t(m=a(m,15),2869860233)}return l^=r.length,l+=g^=r.length,l+=v^=r.length,g+=l+=d^=r.length,v+=l,d+=l,l=c(l),l+=g=c(g),l+=v=c(v),u([l+=d=c(d),g+=l,v+=l,d+=l])},p=function(){var e=[2277735313,289559509],n=[1291169091,658871167];function t(e,n){var t=[0,0,0,0];return e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]],t[3]+=e[3]*n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]*n[3],t[1]+=t[2]>>>16,t[2]&=65535,t[2]+=e[3]*n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]*n[3],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[2]*n[2],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[3]*n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function r(e,n){var t=[0,0,0,0];return e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]],t[3]+=e[3]+n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]+n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]+n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]+n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function c(e,n){return(n%=64)<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])}function a(e,n){return(n%=64)<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]}function s(e,n){return[e[0]^n[0],e[1]^n[1]]}function h(e){return e=s(e,[0,e[0]>>>1]),e=s(e=t(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=s(e=t(e,[3301882366,444984403]),[0,e[0]>>>1])}return function(l){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(l,"murmurhash3_x64_128"),o(g);for(var v=f(l),d=v.length%16,m=v.length-d,y=[0,g],p=[0,g],_=[0,0],w=[0,0],b=0;b<m;)_=[255&v[b+4]|(255&v[b+5])<<8|(255&v[b+6])<<16|(255&v[b+7])<<24,255&v[b]|(255&v[b+1])<<8|(255&v[b+2])<<16|(255&v[b+3])<<24],w=[255&v[b+12]|(255&v[b+13])<<8|(255&v[b+14])<<16|(255&v[b+15])<<24,255&v[b+8]|(255&v[b+9])<<8|(255&v[b+10])<<16|(255&v[b+11])<<24],_=c(_=t(_,e),31),y=r(y=c(y=s(y,_=t(_,n)),27),p),y=r(t(y,[0,5]),[0,1390208809]),w=c(w=t(w,n),33),p=r(p=c(p=s(p,w=t(w,e)),31),y),p=r(t(p,[0,5]),[0,944331445]),b+=16;switch(_=[0,0],w=[0,0],d){case 15:w=s(w,a([0,v[b+14]],48));case 14:w=s(w,a([0,v[b+13]],40));case 13:w=s(w,a([0,v[b+12]],32));case 12:w=s(w,a([0,v[b+11]],24));case 11:w=s(w,a([0,v[b+10]],16));case 10:w=s(w,a([0,v[b+9]],8));case 9:w=t(w=s(w,[0,v[b+8]]),n),p=s(p,w=t(w=c(w,33),e));case 8:_=s(_,a([0,v[b+7]],56));case 7:_=s(_,a([0,v[b+6]],48));case 6:_=s(_,a([0,v[b+5]],40));case 5:_=s(_,a([0,v[b+4]],32));case 4:_=s(_,a([0,v[b+3]],24));case 3:_=s(_,a([0,v[b+2]],16));case 2:_=s(_,a([0,v[b+1]],8));case 1:_=t(_=s(_,[0,v[b]]),e),y=s(y,_=t(_=c(_,31),n))}return y=r(y=s(y,[0,v.length]),p=s(p,[0,v.length])),p=r(p,y),y=r(y=h(y),p=h(p)),p=r(p,y),u([y[0],y[1],p[0],p[1]])}}();e.aleaRNGFactory=v,e.murmurhash2_x86_32=d,e.murmurhash3_x64_128=p,e.murmurhash3_x86_128=y,e.murmurhash3_x86_32=m,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

"use strict";function uMul32Getter(r,t){return(65535&(r|=0))*(t|=0)+(((r>>>16)*t&65535)<<16)|0}function uInt32Getter(r,t){return r[t++]+(r[t++]<<8)+(r[t++]<<16)+(r[t++]<<24)}function throwInvalidMurmurSeed(r){if(void 0!==r&&r%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function throwInvalidStringHash(r,t){if("string"!=typeof r)throw new TypeError("".concat(t,"(): first argument is not a string."))}function encode(r){for(var t=r.length,e=-1,n=new Uint8Array(3*t),u=0;u!==t;){var o=r.charCodeAt(u);if(u+=1,o>=55296&&o<=56319){if(u===t){n[e+=1]=239,n[e+=1]=191,n[e+=1]=189;break}var a=r.charCodeAt(u);if(!(a>=56320&&a<=57343)){n[e+=1]=239,n[e+=1]=191,n[e+=1]=189;continue}if(u+=1,(o=1024*(o-55296)+a-56320+65536)>65535){n[e+=1]=240|o>>>18,n[e+=1]=128|o>>>12&63,n[e+=1]=128|o>>>6&63,n[e+=1]=128|63&o;continue}}o<=127?n[e+=1]=0|o:o<=2047?(n[e+=1]=192|o>>>6,n[e+=1]=128|63&o):(n[e+=1]=224|o>>>12,n[e+=1]=128|o>>>6&63,n[e+=1]=128|63&o)}return n.subarray(0,e+1)}function toUtf8Bytes(r){for(var t=new Uint8Array(r.length),e=0;e<r.length;e+=1){var n=r.charCodeAt(e);if(n<0||n>127)return encode(r);t[e]=n}return t}var murmurhash2_x86_32=function(){var r=1540483477,t=24,e=function(r,t){return r[t++]+(r[t]<<8)};return function(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;throwInvalidStringHash(n,"murmurhash2_x86_32"),throwInvalidMurmurSeed(u);for(var o=toUtf8Bytes(n),a=0,i=u^o.length,c=o.length;c>=4;){var f=uInt32Getter(o,a);f=uMul32Getter(f,r),f=uMul32Getter(f^=f>>>t,r),i=uMul32Getter(i,r),i^=f,a+=4,c-=4}switch(c){case 3:i^=e(o,a),i=uMul32Getter(i^=o[a+2]<<16,r);break;case 2:i=uMul32Getter(i^=e(o,a),r);break;case 1:i=uMul32Getter(i^=o[a],r)}return i=uMul32Getter(i^=i>>>13,r),(i^=i>>>15)>>>0}}();module.exports=murmurhash2_x86_32;
"use strict";function r(r,n){return(65535&(r|=0))*(n|=0)+(((r>>>16)*n&65535)<<16)|0}function n(r,n){return r[n++]+(r[n++]<<8)+(r[n++]<<16)+(r[n++]<<24)}function t(r){if(void 0!==r&&r%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function e(r,n){if("string"!=typeof r)throw new TypeError("".concat(n,"(): first argument is not a string."))}function i(r){for(var n=r.length,t=-1,e=new Uint8Array(3*n),i=0;i!==n;){var o=r.charCodeAt(i);if(i+=1,o>=55296&&o<=56319){if(i===n){e[t+=1]=239,e[t+=1]=191,e[t+=1]=189;break}var a=r.charCodeAt(i);if(!(a>=56320&&a<=57343)){e[t+=1]=239,e[t+=1]=191,e[t+=1]=189;continue}if(i+=1,(o=1024*(o-55296)+a-56320+65536)>65535){e[t+=1]=240|o>>>18,e[t+=1]=128|o>>>12&63,e[t+=1]=128|o>>>6&63,e[t+=1]=128|63&o;continue}}o<=127?e[t+=1]=0|o:o<=2047?(e[t+=1]=192|o>>>6,e[t+=1]=128|63&o):(e[t+=1]=224|o>>>12,e[t+=1]=128|o>>>6&63,e[t+=1]=128|63&o)}return e.subarray(0,t+1)}function o(r){for(var n=new Uint8Array(r.length),t=0;t<r.length;t+=1){var e=r.charCodeAt(t);if(e<0||e>127)return i(r);n[t]=e}return n}var a,u=(a=function(r,n){return r[n++]+(r[n]<<8)},function(i){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e(i,"murmurhash2_x86_32"),t(u);for(var c=o(i),f=0,h=u^c.length,s=c.length;s>=4;){var v=n(c,f);v=r(v,1540483477),v=r(v^=v>>>24,1540483477),h=r(h,1540483477),h^=v,f+=4,s-=4}switch(s){case 3:h^=a(c,f),h=r(h^=c[f+2]<<16,1540483477);break;case 2:h=r(h^=a(c,f),1540483477);break;case 1:h=r(h^=c[f],1540483477)}return h=r(h^=h>>>13,1540483477),(h^=h>>>15)>>>0});module.exports=u;
//# sourceMappingURL=murmurhash2_x86_32.js.map

@@ -1,2 +0,2 @@

"use strict";function _slicedToArray(r,t){return _arrayWithHoles(r)||_iterableToArrayLimit(r,t)||_nonIterableRest()}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _iterableToArrayLimit(r,t){if(Symbol.iterator in Object(r)||"[object Arguments]"===Object.prototype.toString.call(r)){var e=[],n=!0,a=!1,i=void 0;try{for(var o,c=r[Symbol.iterator]();!(n=(o=c.next()).done)&&(e.push(o.value),!t||e.length!==t);n=!0);}catch(r){a=!0,i=r}finally{try{n||null==c.return||c.return()}finally{if(a)throw i}}return e}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function createConcatenatedHash(r){var t=_slicedToArray(r,4),e=t[0],n=t[1],a=t[2],i=t[3],o="00000000";return(o+(e>>>0).toString(16)).slice(-8)+(o+(n>>>0).toString(16)).slice(-8)+(o+(a>>>0).toString(16)).slice(-8)+(o+(i>>>0).toString(16)).slice(-8)}function throwInvalidMurmurSeed(r){if(void 0!==r&&r%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function throwInvalidStringHash(r,t){if("string"!=typeof r)throw new TypeError("".concat(t,"(): first argument is not a string."))}function encode(r){for(var t=r.length,e=-1,n=new Uint8Array(3*t),a=0;a!==t;){var i=r.charCodeAt(a);if(a+=1,i>=55296&&i<=56319){if(a===t){n[e+=1]=239,n[e+=1]=191,n[e+=1]=189;break}var o=r.charCodeAt(a);if(!(o>=56320&&o<=57343)){n[e+=1]=239,n[e+=1]=191,n[e+=1]=189;continue}if(a+=1,(i=1024*(i-55296)+o-56320+65536)>65535){n[e+=1]=240|i>>>18,n[e+=1]=128|i>>>12&63,n[e+=1]=128|i>>>6&63,n[e+=1]=128|63&i;continue}}i<=127?n[e+=1]=0|i:i<=2047?(n[e+=1]=192|i>>>6,n[e+=1]=128|63&i):(n[e+=1]=224|i>>>12,n[e+=1]=128|i>>>6&63,n[e+=1]=128|63&i)}return n.subarray(0,e+1)}function toUtf8Bytes(r){for(var t=new Uint8Array(r.length),e=0;e<r.length;e+=1){var n=r.charCodeAt(e);if(n<0||n>127)return encode(r);t[e]=n}return t}var murmurhash3_x64_128=function(){var r=[2277735313,289559509],t=[1291169091,658871167],e=65535;function n(r,t){var n=[0,0,0,0];return r=[r[0]>>>16,r[0]&e,r[1]>>>16,r[1]&e],t=[t[0]>>>16,t[0]&e,t[1]>>>16,t[1]&e],n[3]+=r[3]*t[3],n[2]+=n[3]>>>16,n[3]&=e,n[2]+=r[2]*t[3],n[1]+=n[2]>>>16,n[2]&=e,n[2]+=r[3]*t[2],n[1]+=n[2]>>>16,n[2]&=e,n[1]+=r[1]*t[3],n[0]+=n[1]>>>16,n[1]&=e,n[1]+=r[2]*t[2],n[0]+=n[1]>>>16,n[1]&=e,n[1]+=r[3]*t[1],n[0]+=n[1]>>>16,n[1]&=e,n[0]+=r[0]*t[3]+r[1]*t[2]+r[2]*t[1]+r[3]*t[0],n[0]&=e,[n[0]<<16|n[1],n[2]<<16|n[3]]}function a(r,t){var n=[0,0,0,0];return r=[r[0]>>>16,r[0]&e,r[1]>>>16,r[1]&e],t=[t[0]>>>16,t[0]&e,t[1]>>>16,t[1]&e],n[3]+=r[3]+t[3],n[2]+=n[3]>>>16,n[3]&=e,n[2]+=r[2]+t[2],n[1]+=n[2]>>>16,n[2]&=e,n[1]+=r[1]+t[1],n[0]+=n[1]>>>16,n[1]&=e,n[0]+=r[0]+t[0],n[0]&=e,[n[0]<<16|n[1],n[2]<<16|n[3]]}function i(r,t){return(t%=64)<32?[r[0]<<t|r[1]>>>32-t,r[1]<<t|r[0]>>>32-t]:(t-=32,[r[1]<<t|r[0]>>>32-t,r[0]<<t|r[1]>>>32-t])}function o(r,t){return(t%=64)<32?[r[0]<<t|r[1]>>>32-t,r[1]<<t]:[r[1]<<t-32,0]}function c(r,t){return[r[0]^t[0],r[1]^t[1]]}function u(r){return r=c(r,[0,r[0]>>>1]),r=c(r=n(r,[4283543511,3981806797]),[0,r[0]>>>1]),r=c(r=n(r,[3301882366,444984403]),[0,r[0]>>>1])}return function(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;throwInvalidStringHash(e,"murmurhash3_x64_128"),throwInvalidMurmurSeed(s);for(var l=toUtf8Bytes(e),f=l.length%16,h=l.length-f,d=[0,s],v=[0,s],y=[0,0],g=[0,0],m=0;m<h;)y=[255&l[m+4]|(255&l[m+5])<<8|(255&l[m+6])<<16|(255&l[m+7])<<24,255&l[m]|(255&l[m+1])<<8|(255&l[m+2])<<16|(255&l[m+3])<<24],g=[255&l[m+12]|(255&l[m+13])<<8|(255&l[m+14])<<16|(255&l[m+15])<<24,255&l[m+8]|(255&l[m+9])<<8|(255&l[m+10])<<16|(255&l[m+11])<<24],y=i(y=n(y,r),31),d=a(d=i(d=c(d,y=n(y,t)),27),v),d=a(n(d,[0,5]),[0,1390208809]),g=i(g=n(g,t),33),v=a(v=i(v=c(v,g=n(g,r)),31),d),v=a(n(v,[0,5]),[0,944331445]),m+=16;switch(y=[0,0],g=[0,0],f){case 15:g=c(g,o([0,l[m+14]],48));case 14:g=c(g,o([0,l[m+13]],40));case 13:g=c(g,o([0,l[m+12]],32));case 12:g=c(g,o([0,l[m+11]],24));case 11:g=c(g,o([0,l[m+10]],16));case 10:g=c(g,o([0,l[m+9]],8));case 9:g=n(g=c(g,[0,l[m+8]]),t),v=c(v,g=n(g=i(g,33),r));case 8:y=c(y,o([0,l[m+7]],56));case 7:y=c(y,o([0,l[m+6]],48));case 6:y=c(y,o([0,l[m+5]],40));case 5:y=c(y,o([0,l[m+4]],32));case 4:y=c(y,o([0,l[m+3]],24));case 3:y=c(y,o([0,l[m+2]],16));case 2:y=c(y,o([0,l[m+1]],8));case 1:y=n(y=c(y,[0,l[m]]),r),d=c(d,y=n(y=i(y,31),t))}return d=a(d=c(d,[0,l.length]),v=c(v,[0,l.length])),v=a(v,d),d=a(d=u(d),v=u(v)),v=a(v,d),createConcatenatedHash([d[0],d[1],v[0],v[1]])}}();module.exports=murmurhash3_x64_128;
"use strict";function r(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){if(!(Symbol.iterator in Object(r)||"[object Arguments]"===Object.prototype.toString.call(r)))return;var n=[],e=!0,i=!1,o=void 0;try{for(var a,c=r[Symbol.iterator]();!(e=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);e=!0);}catch(r){i=!0,o=r}finally{try{e||null==c.return||c.return()}finally{if(i)throw o}}return n}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function t(t){var n=r(t,4),e=n[0],i=n[1],o=n[2],a=n[3],c="00000000";return(c+(e>>>0).toString(16)).slice(-8)+(c+(i>>>0).toString(16)).slice(-8)+(c+(o>>>0).toString(16)).slice(-8)+(c+(a>>>0).toString(16)).slice(-8)}function n(r){if(void 0!==r&&r%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function e(r,t){if("string"!=typeof r)throw new TypeError("".concat(t,"(): first argument is not a string."))}function i(r){for(var t=r.length,n=-1,e=new Uint8Array(3*t),i=0;i!==t;){var o=r.charCodeAt(i);if(i+=1,o>=55296&&o<=56319){if(i===t){e[n+=1]=239,e[n+=1]=191,e[n+=1]=189;break}var a=r.charCodeAt(i);if(!(a>=56320&&a<=57343)){e[n+=1]=239,e[n+=1]=191,e[n+=1]=189;continue}if(i+=1,(o=1024*(o-55296)+a-56320+65536)>65535){e[n+=1]=240|o>>>18,e[n+=1]=128|o>>>12&63,e[n+=1]=128|o>>>6&63,e[n+=1]=128|63&o;continue}}o<=127?e[n+=1]=0|o:o<=2047?(e[n+=1]=192|o>>>6,e[n+=1]=128|63&o):(e[n+=1]=224|o>>>12,e[n+=1]=128|o>>>6&63,e[n+=1]=128|63&o)}return e.subarray(0,n+1)}function o(r){for(var t=new Uint8Array(r.length),n=0;n<r.length;n+=1){var e=r.charCodeAt(n);if(e<0||e>127)return i(r);t[n]=e}return t}var a=function(){var r=[2277735313,289559509],i=[1291169091,658871167];function a(r,t){var n=[0,0,0,0];return r=[r[0]>>>16,65535&r[0],r[1]>>>16,65535&r[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],n[3]+=r[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=r[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=r[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=r[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=r[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=r[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=r[0]*t[3]+r[1]*t[2]+r[2]*t[1]+r[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function c(r,t){var n=[0,0,0,0];return r=[r[0]>>>16,65535&r[0],r[1]>>>16,65535&r[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],n[3]+=r[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=r[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=r[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=r[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function u(r,t){return(t%=64)<32?[r[0]<<t|r[1]>>>32-t,r[1]<<t|r[0]>>>32-t]:(t-=32,[r[1]<<t|r[0]>>>32-t,r[0]<<t|r[1]>>>32-t])}function f(r,t){return(t%=64)<32?[r[0]<<t|r[1]>>>32-t,r[1]<<t]:[r[1]<<t-32,0]}function s(r,t){return[r[0]^t[0],r[1]^t[1]]}function l(r){return r=s(r,[0,r[0]>>>1]),r=s(r=a(r,[4283543511,3981806797]),[0,r[0]>>>1]),r=s(r=a(r,[3301882366,444984403]),[0,r[0]>>>1])}return function(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e(h,"murmurhash3_x64_128"),n(g);for(var v=o(h),y=v.length%16,d=v.length-y,p=[0,g],w=[0,g],b=[0,0],m=[0,0],A=0;A<d;)b=[255&v[A+4]|(255&v[A+5])<<8|(255&v[A+6])<<16|(255&v[A+7])<<24,255&v[A]|(255&v[A+1])<<8|(255&v[A+2])<<16|(255&v[A+3])<<24],m=[255&v[A+12]|(255&v[A+13])<<8|(255&v[A+14])<<16|(255&v[A+15])<<24,255&v[A+8]|(255&v[A+9])<<8|(255&v[A+10])<<16|(255&v[A+11])<<24],b=u(b=a(b,r),31),p=c(p=u(p=s(p,b=a(b,i)),27),w),p=c(a(p,[0,5]),[0,1390208809]),m=u(m=a(m,i),33),w=c(w=u(w=s(w,m=a(m,r)),31),p),w=c(a(w,[0,5]),[0,944331445]),A+=16;switch(b=[0,0],m=[0,0],y){case 15:m=s(m,f([0,v[A+14]],48));case 14:m=s(m,f([0,v[A+13]],40));case 13:m=s(m,f([0,v[A+12]],32));case 12:m=s(m,f([0,v[A+11]],24));case 11:m=s(m,f([0,v[A+10]],16));case 10:m=s(m,f([0,v[A+9]],8));case 9:m=a(m=s(m,[0,v[A+8]]),i),w=s(w,m=a(m=u(m,33),r));case 8:b=s(b,f([0,v[A+7]],56));case 7:b=s(b,f([0,v[A+6]],48));case 6:b=s(b,f([0,v[A+5]],40));case 5:b=s(b,f([0,v[A+4]],32));case 4:b=s(b,f([0,v[A+3]],24));case 3:b=s(b,f([0,v[A+2]],16));case 2:b=s(b,f([0,v[A+1]],8));case 1:b=a(b=s(b,[0,v[A]]),r),p=s(p,b=a(b=u(b,31),i))}return p=c(p=s(p,[0,v.length]),w=s(w,[0,v.length])),w=c(w,p),p=c(p=l(p),w=l(w)),w=c(w,p),t([p[0],p[1],w[0],w[1]])}}();module.exports=a;
//# sourceMappingURL=murmurhash3_x64_128.js.map

@@ -1,2 +0,2 @@

"use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_nonIterableRest()}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var r=[],n=!0,u=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(n=(o=i.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){u=!0,a=t}finally{try{n||null==i.return||i.return()}finally{if(u)throw a}}return r}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function uMul32Getter(t,e){return(65535&(t|=0))*(e|=0)+(((t>>>16)*e&65535)<<16)|0}function uInt32mix(t){return t=uMul32Getter(t^=t>>>16,2246822507),t=uMul32Getter(t^=t>>>13,3266489909),t^=t>>>16}function uInt32RotateLeft(t,e){return t<<e|t>>>32-e}function createConcatenatedHash(t){var e=_slicedToArray(t,4),r=e[0],n=e[1],u=e[2],a=e[3],o="00000000";return(o+(r>>>0).toString(16)).slice(-8)+(o+(n>>>0).toString(16)).slice(-8)+(o+(u>>>0).toString(16)).slice(-8)+(o+(a>>>0).toString(16)).slice(-8)}function throwInvalidMurmurSeed(t){if(void 0!==t&&t%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function throwInvalidStringHash(t,e){if("string"!=typeof t)throw new TypeError("".concat(e,"(): first argument is not a string."))}function encode(t){for(var e=t.length,r=-1,n=new Uint8Array(3*e),u=0;u!==e;){var a=t.charCodeAt(u);if(u+=1,a>=55296&&a<=56319){if(u===e){n[r+=1]=239,n[r+=1]=191,n[r+=1]=189;break}var o=t.charCodeAt(u);if(!(o>=56320&&o<=57343)){n[r+=1]=239,n[r+=1]=191,n[r+=1]=189;continue}if(u+=1,(a=1024*(a-55296)+o-56320+65536)>65535){n[r+=1]=240|a>>>18,n[r+=1]=128|a>>>12&63,n[r+=1]=128|a>>>6&63,n[r+=1]=128|63&a;continue}}a<=127?n[r+=1]=0|a:a<=2047?(n[r+=1]=192|a>>>6,n[r+=1]=128|63&a):(n[r+=1]=224|a>>>12,n[r+=1]=128|a>>>6&63,n[r+=1]=128|63&a)}return n.subarray(0,r+1)}function toUtf8Bytes(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r+=1){var n=t.charCodeAt(r);if(n<0||n>127)return encode(t);e[r]=n}return e}var murmurhash3_x86_128=function(){var t=597399067,e=2869860233,r=951274213,n=2716044179,u=1444728091,a=197830471,o=2530024501,i=850148119;return function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;throwInvalidStringHash(l,"murmurhash3_x86_128"),throwInvalidMurmurSeed(c);for(var s=toUtf8Bytes(l),f=s.length%16,h=s.length-f,I=c,M=c,d=c,g=c,y=0,G=0,v=0,m=0,L=0;L<h;)y=255&s[L]|(255&s[L+1])<<8|(255&s[L+2])<<16|(255&s[L+3])<<24,G=255&s[L+4]|(255&s[L+5])<<8|(255&s[L+6])<<16|(255&s[L+7])<<24,v=255&s[L+8]|(255&s[L+9])<<8|(255&s[L+10])<<16|(255&s[L+11])<<24,m=255&s[L+12]|(255&s[L+13])<<8|(255&s[L+14])<<16|(255&s[L+15])<<24,y=uInt32RotateLeft(y=uMul32Getter(y,t),15),I=uInt32RotateLeft(I^=y=uMul32Getter(y,e),19),I=uMul32Getter(I+=M,5)+u,G=uInt32RotateLeft(G=uMul32Getter(G,e),16),M=uInt32RotateLeft(M^=G=uMul32Getter(G,r),17),M=uMul32Getter(M+=d,5)+a,v=uInt32RotateLeft(v=uMul32Getter(v,r),17),d=uInt32RotateLeft(d^=v=uMul32Getter(v,n),15),d=uMul32Getter(d+=g,5)+o,m=uInt32RotateLeft(m=uMul32Getter(m,n),18),g=uInt32RotateLeft(g^=m=uMul32Getter(m,t),13),g=uMul32Getter(g+=I,5)+i,L+=16;switch(y=0,G=0,v=0,m=0,f){case 15:m^=s[L+14]<<16;case 14:m^=s[L+13]<<8;case 13:m=uMul32Getter(m^=s[L+12],n),g^=m=uMul32Getter(m=uInt32RotateLeft(m,18),t);case 12:v^=s[L+11]<<24;case 11:v^=s[L+10]<<16;case 10:v^=s[L+9]<<8;case 9:v=uMul32Getter(v^=s[L+8],r),d^=v=uMul32Getter(v=uInt32RotateLeft(v,17),n);case 8:G^=s[L+7]<<24;case 7:G^=s[L+6]<<16;case 6:G^=s[L+5]<<8;case 5:G=uMul32Getter(G^=s[L+4],e),M^=G=uMul32Getter(G=uInt32RotateLeft(G,16),r);case 4:y^=s[L+3]<<24;case 3:y^=s[L+2]<<16;case 2:y^=s[L+1]<<8;case 1:y=uMul32Getter(y^=s[L],t),I^=y=uMul32Getter(y=uInt32RotateLeft(y,15),e)}return I^=s.length,I+=M^=s.length,I+=d^=s.length,M+=I+=g^=s.length,d+=I,g+=I,I=uInt32mix(I),I+=M=uInt32mix(M),I+=d=uInt32mix(d),createConcatenatedHash([I+=g=uInt32mix(g),M+=I,d+=I,g+=I])}}();module.exports=murmurhash3_x86_128;
"use strict";function t(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var e=[],n=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(e.push(a.value),!r||e.length!==r);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return e}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(t,r){return(65535&(t|=0))*(r|=0)+(((t>>>16)*r&65535)<<16)|0}function e(t){return t=r(t^=t>>>16,2246822507),t=r(t^=t>>>13,3266489909),t^=t>>>16}function n(t,r){return t<<r|t>>>32-r}function i(r){var e=t(r,4),n=e[0],i=e[1],o=e[2],a=e[3],c="00000000";return(c+(n>>>0).toString(16)).slice(-8)+(c+(i>>>0).toString(16)).slice(-8)+(c+(o>>>0).toString(16)).slice(-8)+(c+(a>>>0).toString(16)).slice(-8)}function o(t){if(void 0!==t&&t%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function a(t,r){if("string"!=typeof t)throw new TypeError("".concat(r,"(): first argument is not a string."))}function c(t){for(var r=t.length,e=-1,n=new Uint8Array(3*r),i=0;i!==r;){var o=t.charCodeAt(i);if(i+=1,o>=55296&&o<=56319){if(i===r){n[e+=1]=239,n[e+=1]=191,n[e+=1]=189;break}var a=t.charCodeAt(i);if(!(a>=56320&&a<=57343)){n[e+=1]=239,n[e+=1]=191,n[e+=1]=189;continue}if(i+=1,(o=1024*(o-55296)+a-56320+65536)>65535){n[e+=1]=240|o>>>18,n[e+=1]=128|o>>>12&63,n[e+=1]=128|o>>>6&63,n[e+=1]=128|63&o;continue}}o<=127?n[e+=1]=0|o:o<=2047?(n[e+=1]=192|o>>>6,n[e+=1]=128|63&o):(n[e+=1]=224|o>>>12,n[e+=1]=128|o>>>6&63,n[e+=1]=128|63&o)}return n.subarray(0,e+1)}function u(t){for(var r=new Uint8Array(t.length),e=0;e<t.length;e+=1){var n=t.charCodeAt(e);if(n<0||n>127)return c(t);r[e]=n}return r}var s=function(t){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;a(t,"murmurhash3_x86_128"),o(c);for(var s=u(t),f=s.length%16,l=s.length-f,h=c,g=c,v=c,y=c,d=0,p=0,w=0,b=0,m=0;m<l;)d=255&s[m]|(255&s[m+1])<<8|(255&s[m+2])<<16|(255&s[m+3])<<24,p=255&s[m+4]|(255&s[m+5])<<8|(255&s[m+6])<<16|(255&s[m+7])<<24,w=255&s[m+8]|(255&s[m+9])<<8|(255&s[m+10])<<16|(255&s[m+11])<<24,b=255&s[m+12]|(255&s[m+13])<<8|(255&s[m+14])<<16|(255&s[m+15])<<24,d=n(d=r(d,597399067),15),h=n(h^=d=r(d,2869860233),19),h=r(h+=g,5)+1444728091,p=n(p=r(p,2869860233),16),g=n(g^=p=r(p,951274213),17),g=r(g+=v,5)+197830471,w=n(w=r(w,951274213),17),v=n(v^=w=r(w,2716044179),15),v=r(v+=y,5)+2530024501,b=n(b=r(b,2716044179),18),y=n(y^=b=r(b,597399067),13),y=r(y+=h,5)+850148119,m+=16;switch(d=0,p=0,w=0,b=0,f){case 15:b^=s[m+14]<<16;case 14:b^=s[m+13]<<8;case 13:b=r(b^=s[m+12],2716044179),y^=b=r(b=n(b,18),597399067);case 12:w^=s[m+11]<<24;case 11:w^=s[m+10]<<16;case 10:w^=s[m+9]<<8;case 9:w=r(w^=s[m+8],951274213),v^=w=r(w=n(w,17),2716044179);case 8:p^=s[m+7]<<24;case 7:p^=s[m+6]<<16;case 6:p^=s[m+5]<<8;case 5:p=r(p^=s[m+4],2869860233),g^=p=r(p=n(p,16),951274213);case 4:d^=s[m+3]<<24;case 3:d^=s[m+2]<<16;case 2:d^=s[m+1]<<8;case 1:d=r(d^=s[m],597399067),h^=d=r(d=n(d,15),2869860233)}return h^=s.length,h+=g^=s.length,h+=v^=s.length,g+=h+=y^=s.length,v+=h,y+=h,h=e(h),h+=g=e(g),h+=v=e(v),i([h+=y=e(y),g+=h,v+=h,y+=h])};module.exports=s;
//# sourceMappingURL=murmurhash3_x86_128.js.map

@@ -1,2 +0,2 @@

"use strict";function uMul32Getter(t,e){return(65535&(t|=0))*(e|=0)+(((t>>>16)*e&65535)<<16)|0}function uInt32Getter(t,e){return t[e++]+(t[e++]<<8)+(t[e++]<<16)+(t[e++]<<24)}function uInt32mix(t){return t=uMul32Getter(t^=t>>>16,2246822507),t=uMul32Getter(t^=t>>>13,3266489909),t^=t>>>16}function uInt32RotateLeft(t,e){return t<<e|t>>>32-e}function throwInvalidMurmurSeed(t){if(void 0!==t&&t%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function throwInvalidStringHash(t,e){if("string"!=typeof t)throw new TypeError("".concat(e,"(): first argument is not a string."))}function encode(t){for(var e=t.length,r=-1,n=new Uint8Array(3*e),u=0;u!==e;){var o=t.charCodeAt(u);if(u+=1,o>=55296&&o<=56319){if(u===e){n[r+=1]=239,n[r+=1]=191,n[r+=1]=189;break}var i=t.charCodeAt(u);if(!(i>=56320&&i<=57343)){n[r+=1]=239,n[r+=1]=191,n[r+=1]=189;continue}if(u+=1,(o=1024*(o-55296)+i-56320+65536)>65535){n[r+=1]=240|o>>>18,n[r+=1]=128|o>>>12&63,n[r+=1]=128|o>>>6&63,n[r+=1]=128|63&o;continue}}o<=127?n[r+=1]=0|o:o<=2047?(n[r+=1]=192|o>>>6,n[r+=1]=128|63&o):(n[r+=1]=224|o>>>12,n[r+=1]=128|o>>>6&63,n[r+=1]=128|63&o)}return n.subarray(0,r+1)}function toUtf8Bytes(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r+=1){var n=t.charCodeAt(r);if(n<0||n>127)return encode(t);e[r]=n}return e}var murmurhash3_x86_32=function(){var t=3432918353,e=461845907,r=3864292196;return function(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;throwInvalidStringHash(n,"murmurhash3_x86_32"),throwInvalidMurmurSeed(u);for(var o=toUtf8Bytes(n),i=o.length%4,a=o.length-i,f=0,c=0,h=u;c<a;)f=uMul32Getter(f=uInt32Getter(o,c),t),f=uMul32Getter(f=uInt32RotateLeft(f,15),e),h=uMul32Getter(h=uInt32RotateLeft(h^=f,13),5)+r,c+=4;switch(f=0,i){case 3:f^=(255&o[c+2])<<16;case 2:f^=(255&o[c+1])<<8;case 1:f=uMul32Getter(f^=o[c],t),h^=f=uMul32Getter(f=uInt32RotateLeft(f,15),e)}return(h=uInt32mix(h^=o.length))>>>0}}();module.exports=murmurhash3_x86_32;
"use strict";function r(r,n){return(65535&(r|=0))*(n|=0)+(((r>>>16)*n&65535)<<16)|0}function n(r,n){return r[n++]+(r[n++]<<8)+(r[n++]<<16)+(r[n++]<<24)}function t(n){return n=r(n^=n>>>16,2246822507),n=r(n^=n>>>13,3266489909),n^=n>>>16}function e(r,n){return r<<n|r>>>32-n}function i(r){if(void 0!==r&&r%1!=0)throw new TypeError("Expected seed to be an integer, float given")}function o(r,n){if("string"!=typeof r)throw new TypeError("".concat(n,"(): first argument is not a string."))}function a(r){for(var n=r.length,t=-1,e=new Uint8Array(3*n),i=0;i!==n;){var o=r.charCodeAt(i);if(i+=1,o>=55296&&o<=56319){if(i===n){e[t+=1]=239,e[t+=1]=191,e[t+=1]=189;break}var a=r.charCodeAt(i);if(!(a>=56320&&a<=57343)){e[t+=1]=239,e[t+=1]=191,e[t+=1]=189;continue}if(i+=1,(o=1024*(o-55296)+a-56320+65536)>65535){e[t+=1]=240|o>>>18,e[t+=1]=128|o>>>12&63,e[t+=1]=128|o>>>6&63,e[t+=1]=128|63&o;continue}}o<=127?e[t+=1]=0|o:o<=2047?(e[t+=1]=192|o>>>6,e[t+=1]=128|63&o):(e[t+=1]=224|o>>>12,e[t+=1]=128|o>>>6&63,e[t+=1]=128|63&o)}return e.subarray(0,t+1)}function u(r){for(var n=new Uint8Array(r.length),t=0;t<r.length;t+=1){var e=r.charCodeAt(t);if(e<0||e>127)return a(r);n[t]=e}return n}var c=function(a){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(a,"murmurhash3_x86_32"),i(c);for(var f=u(a),h=f.length%4,s=f.length-h,g=0,v=0,l=c;v<s;)g=r(g=n(f,v),3432918353),g=r(g=e(g,15),461845907),l=r(l=e(l^=g,13),5)+3864292196,v+=4;switch(g=0,h){case 3:g^=(255&f[v+2])<<16;case 2:g^=(255&f[v+1])<<8;case 1:g=r(g^=f[v],3432918353),l^=g=r(g=e(g,15),461845907)}return(l=t(l^=f.length))>>>0};module.exports=c;
//# sourceMappingURL=murmurhash3_x86_32.js.map
{
"name": "number-generator",
"version": "4.0.1",
"version": "4.0.2",
"description": "Generate repeatable pseudo random numbers and non-cryptographic hash numbers for usage in Node.js and browser environments.",

@@ -45,3 +45,3 @@ "main": "lib/index.js",

],
"author": "Martin Helmut Fieber <info@martin-fieber.de>",
"author": "Martin Helmut Fieber <info@martin-fieber.se>",
"license": "MIT",

@@ -55,42 +55,110 @@ "bugs": {

],
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"browserslist": [
"> 1%",
"Last 2 versions",
"IE >= 10",
"maintained node versions"
],
"eslintConfig": {
"extends": [
"eslint:recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"env": {
"node": true,
"browser": true,
"mocha": true,
"es6": true
}
},
"nyc": {
"reporter": [
"html",
"text"
]
},
"babel": {
"exclude": "node_modules/**",
"presets": [
"@babel/preset-env"
]
},
"renovate": {
"extends": [
"config:base"
],
"supportPolicy": [
"lts_latest"
],
"dependencies": {
"semanticPrefix": "chore:",
"semanticCommitScope": ""
},
"pin": {
"semanticPrefix": "chore:",
"semanticCommitScope": ""
},
"semanticPrefix": "chore:",
"semanticCommitScope": "",
"packageRules": [
{
"updateTypes": [
"minor",
"patch",
"pin",
"digest"
],
"automerge": true
}
]
},
"devDependencies": {
"@babel/core": "7.6.2",
"@babel/preset-env": "7.6.2",
"@babel/register": "7.6.2",
"@types/chai": "4.2.3",
"@types/mocha": "5.2.7",
"@types/node": "12.7.8",
"agadoo": "1.1.0",
"@babel/core": "7.8.7",
"@babel/preset-env": "7.8.7",
"@babel/register": "7.8.6",
"@types/chai": "4.2.10",
"@types/mocha": "7.0.2",
"@types/node": "12.12.29",
"agadoo": "2.0.0",
"benchmark": "2.1.4",
"chai": "4.2.0",
"chalk": "2.4.2",
"chalk": "3.0.0",
"commitizen": "4.0.3",
"conventional-changelog": "3.1.10",
"conventional-changelog-conventionalcommits": "4.1.0",
"coveralls": "3.0.6",
"cpy": "7.3.0",
"cross-env": "6.0.0",
"cz-conventional-changelog": "3.0.2",
"eslint": "6.4.0",
"eslint-config-prettier": "6.3.0",
"conventional-changelog": "3.1.18",
"conventional-changelog-conventionalcommits": "4.2.3",
"coveralls": "3.0.9",
"cpy": "8.1.0",
"cross-env": "7.0.2",
"cz-conventional-changelog": "3.1.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.0",
"jsdoc": "3.6.3",
"mocha": "6.2.0",
"nyc": "14.1.1",
"prettier": "1.18.2",
"mocha": "7.1.0",
"nyc": "15.0.0",
"prettier": "1.19.1",
"regenerator-runtime": "0.13.3",
"rollup": "1.21.4",
"rollup-plugin-babel": "4.3.3",
"rollup": "2.0.2",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-clear": "2.0.7",
"rollup-plugin-copy": "3.1.0",
"rollup-plugin-external-globals": "0.4.0",
"rollup-plugin-filesize": "6.2.0",
"rollup-plugin-copy": "3.3.0",
"rollup-plugin-external-globals": "0.5.0",
"rollup-plugin-filesize": "6.2.1",
"rollup-plugin-node-builtins": "2.1.2",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-replace": "2.2.0",
"rollup-plugin-terser": "5.1.2",
"serve": "11.2.0",
"standard-version": "7.0.0",
"ts-node": "8.4.1",
"typescript": "3.6.3"
"rollup-plugin-terser": "5.2.0",
"serve": "11.3.0",
"standard-version": "7.1.0",
"ts-node": "8.6.2",
"typescript": "3.8.3"
}
}

@@ -45,3 +45,3 @@ # Number Generator

This library (**7.45 KB, gzipped size: 2.94 KB**) contains the following methods: one PRNG (pseudo random number generator) called _Alea_ and four number hash generators, _MurmurHash2_ and _MurmurHash3_ for 32 and 128 bit (x86 and x64) hash strings.
This library (**7.55 KB, gzipped size: 2.84 KB**) contains the following methods: one PRNG (pseudo random number generator) called _Alea_ and four number hash generators, _MurmurHash2_ and _MurmurHash3_ for 32 and 128 bit (x86 and x64) hash strings.

@@ -347,3 +347,3 @@ More about the hash function _MurmurHash_ can be found [here on wikipedia][mur].

**Disclaimer:** The following benchmarks were created on a MacBook Pro, Processor 2,7 GHz Intel Core i5 with 8 GB 1867 MHz DDR3 memory and run under Node v10.16.3.
**Disclaimer:** The following benchmarks were created on a MacBook Pro, Processor 2,7 GHz Intel Core i5 with 8 GB 1867 MHz DDR3 memory and run under Node v12.14.1.

@@ -355,5 +355,5 @@ #### aleaRNGFactory

```
// v4.0.0
aleaRNGFactory#uInt32() x 8,037,159 ops/sec
aleaRNGFactory#uFloat32() x 7,435,745 ops/sec
// v4.0.1
aleaRNGFactory#uInt32() x 23,094,220 ops/sec
aleaRNGFactory#uFloat32() x 20,571,821 ops/sec
```

@@ -366,7 +366,7 @@

```
// v4.0.0
murmurhash2_x86_32 x 506,674 ops/sec
murmurhash3_x86_32 x 510,627 ops/sec
murmurhash3_x86_128 x 245,012 ops/sec
murmurhash3_x64_128 x 135,522 ops/sec
// v4.0.1
murmurhash2_x86_32 x 834,241 ops/sec
murmurhash3_x86_32 x 827,462 ops/sec
murmurhash3_x86_128 x 300,153 ops/sec
murmurhash3_x64_128 x 188,581 ops/sec
```

@@ -373,0 +373,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet