object-hash
Advanced tools
Comparing version 0.9.4 to 0.9.5
@@ -1,2 +0,2 @@ | ||
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.objectHash=t()}}(function(){return function t(e,n,r){function o(u,a){if(!n[u]){if(!e[u]){var f="function"==typeof require&&require;if(!a&&f)return f(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+u+"'")}var s=n[u]={exports:{}};e[u][0].call(s.exports,function(t){var n=e[u][1][t];return o(n?n:t)},s,s.exports,t,e,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(t,e,n){(function(r,o,i,u,a,f,s,c,l){"use strict";function d(t,e){return e=e||{},e.algorithm=e.algorithm||"sha1",e.encoding=e.encoding||"hex",e.excludeValues=e.excludeValues?!0:!1,e.algorithm=e.algorithm.toLowerCase(),e.encoding=e.encoding.toLowerCase(),e.respectType=e.respectType===!1?!1:!0,e.respectFunctionProperties=e.respectFunctionProperties===!1?!1:!0,e.unorderedArrays=e.unorderedArrays!==!0?!1:!0,p(t,e),h(t,e)}function p(t,e){var n=w.getHashes?w.getHashes():["sha1","md5"],r=["buffer","hex","binary","base64"];if("undefined"==typeof t)throw new Error("Object argument required.");for(var o=0;o<n.length;++o)n[o].toLowerCase()===e.algorithm.toLowerCase()&&(e.algorithm=n[o]);if(-1===n.indexOf(e.algorithm))throw new Error('Algorithm "'+e.algorithm+'" not supported. supported values: '+n.join(", "));if(-1===r.indexOf(e.encoding))throw new Error('Encoding "'+e.encoding+'" not supported. supported values: '+r.join(", "))}function h(t,e){var n=w.createHash(e.algorithm),r=[];return y(n,e,r).dispatch(t),"buffer"===e.encoding?n.digest():n.digest(e.encoding)}function g(t){if("function"!=typeof t)return!1;var e=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;return null!=e.exec(Function.prototype.toString.call(t))}function y(t,e,n){return{dispatch:function(t){var e=typeof t;return null===t?this._null():this["_"+e](t)},_object:function(r){var o=/\[object (.*)\]/i,u=Object.prototype.toString.call(r),a=o.exec(u)[1]||"null",f=null;if(a=a.toLowerCase(),(f=n.indexOf(r))>=0)return void y(t,e,n).dispatch("[CIRCULAR]: "+f);if(n.push(r),"undefined"!=typeof i&&i.isBuffer&&i.isBuffer(r))return t.update("buffer:"),t.update(r);if("object"===a||"function"===a){t.update("object:");var s=Object.keys(r).sort();return e.respectType===!1||g(r)||s.splice(0,0,"prototype","__proto__","constructor"),s.forEach(function(o){t.update(o,"utf8"),e.excludeValues||y(t,e,n).dispatch(r[o])})}if(!y(t,e,n)["_"+a])throw new Error('Unknown object type "'+a+'"');y(t,e,n)["_"+a](r)},_array:function(r){return t.update("array:"+r.length+":"),e.unorderedArrays!==!1&&(r=r.sort()),r.forEach(function(r){y(t,e,n).dispatch(r)})},_date:function(e){return t.update("date:"+e.toJSON())},_symbol:function(e){return t.update("symbol:"+e.toString(),"utf8")},_error:function(e){return t.update("error:"+e.toString(),"utf8")},_boolean:function(e){return t.update("bool:"+e.toString())},_string:function(e){return t.update("string:"+e,"utf8")},_function:function(n){return t.update("fn:"+n.toString(),"utf8"),e.respectFunctionProperties&&this._object(n),t},_number:function(e){return t.update("number:"+e.toString())},_xml:function(e){return t.update("xml:"+e.toString(),"utf8")},_null:function(){return t.update("Null")},_undefined:function(){return t.update("Undefined")},_regexp:function(e){return t.update("regex:"+e.toString(),"utf8")},_uint8array:function(r){return t.update("uint8array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_uint8clampedarray:function(r){return t.update("uint8clampedarray:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_int8array:function(r){return t.update("uint8array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_uint16array:function(r){return t.update("uint16array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_int16array:function(r){return t.update("uint16array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_uint32array:function(r){return t.update("uint32array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_int32array:function(r){return t.update("uint32array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_float32array:function(r){return t.update("float32array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_float64array:function(r){return t.update("float64array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_arraybuffer:function(r){return t.update("arraybuffer:"),y(t,e,n).dispatch(new Uint8Array(r))},_url:function(e){return t.update("url:"+e.toString(),"utf8")},_map:function(r){return t.update("map:"),y(t,e,n).dispatch(Array.from(r))},_set:function(r){return t.update("set:"),y(t,e,n).dispatch(Array.from(r))},_domwindow:function(){return t.update("domwindow")},_process:function(){return t.update("process")},_timer:function(){return t.update("timer")},_pipe:function(){return t.update("pipe")},_tcp:function(){return t.update("tcp")},_udp:function(){return t.update("udp")},_tty:function(){return t.update("tty")},_statwatcher:function(){return t.update("statwatcher")},_securecontext:function(){return t.update("securecontext")},_connection:function(){return t.update("connection")},_zlib:function(){return t.update("zlib")},_context:function(){return t.update("context")},_nodescript:function(){return t.update("nodescript")},_httpparser:function(){return t.update("httpparser")},_dataview:function(){return t.update("dataview")},_signal:function(){return t.update("signal")},_fsevent:function(){return t.update("fsevent")},_tlswrap:function(){return t.update("tlswrap")}}}var w=t("crypto");n=e.exports=d,n.sha1=function(t){return d(t)},n.keys=function(t){return d(t,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(t){return d(t,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(t){return d(t,{algorithm:"md5",encoding:"hex",excludeValues:!0})},n.HashTable=t("./lib/hashTable")}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_198295c5.js","/")},{"./lib/hashTable":3,buffer:5,crypto:7,lYpoI2:12}],2:[function(t,e,n){(function(r,o,i,u,a,f,s,c,l){"use strict";function d(t,e){return e=e||{},e.algorithm=e.algorithm||"sha1",e.encoding=e.encoding||"hex",e.excludeValues=e.excludeValues?!0:!1,e.algorithm=e.algorithm.toLowerCase(),e.encoding=e.encoding.toLowerCase(),e.respectType=e.respectType===!1?!1:!0,e.respectFunctionProperties=e.respectFunctionProperties===!1?!1:!0,e.unorderedArrays=e.unorderedArrays!==!0?!1:!0,p(t,e),h(t,e)}function p(t,e){var n=w.getHashes?w.getHashes():["sha1","md5"],r=["buffer","hex","binary","base64"];if("undefined"==typeof t)throw new Error("Object argument required.");for(var o=0;o<n.length;++o)n[o].toLowerCase()===e.algorithm.toLowerCase()&&(e.algorithm=n[o]);if(-1===n.indexOf(e.algorithm))throw new Error('Algorithm "'+e.algorithm+'" not supported. supported values: '+n.join(", "));if(-1===r.indexOf(e.encoding))throw new Error('Encoding "'+e.encoding+'" not supported. supported values: '+r.join(", "))}function h(t,e){var n=w.createHash(e.algorithm),r=[];return y(n,e,r).dispatch(t),"buffer"===e.encoding?n.digest():n.digest(e.encoding)}function g(t){if("function"!=typeof t)return!1;var e=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;return null!=e.exec(Function.prototype.toString.call(t))}function y(t,e,n){return{dispatch:function(t){var e=typeof t;return null===t?this._null():this["_"+e](t)},_object:function(r){var o=/\[object (.*)\]/i,u=Object.prototype.toString.call(r),a=o.exec(u)[1]||"null",f=null;if(a=a.toLowerCase(),(f=n.indexOf(r))>=0)return void y(t,e,n).dispatch("[CIRCULAR]: "+f);if(n.push(r),"undefined"!=typeof i&&i.isBuffer&&i.isBuffer(r))return t.update("buffer:"),t.update(r);if("object"===a||"function"===a){t.update("object:");var s=Object.keys(r).sort();return e.respectType===!1||g(r)||s.splice(0,0,"prototype","__proto__","constructor"),s.forEach(function(o){t.update(o,"utf8"),e.excludeValues||y(t,e,n).dispatch(r[o])})}if(!y(t,e,n)["_"+a])throw new Error('Unknown object type "'+a+'"');y(t,e,n)["_"+a](r)},_array:function(r){return t.update("array:"+r.length+":"),e.unorderedArrays!==!1&&(r=r.sort()),r.forEach(function(r){y(t,e,n).dispatch(r)})},_date:function(e){return t.update("date:"+e.toJSON())},_symbol:function(e){return t.update("symbol:"+e.toString(),"utf8")},_error:function(e){return t.update("error:"+e.toString(),"utf8")},_boolean:function(e){return t.update("bool:"+e.toString())},_string:function(e){return t.update("string:"+e,"utf8")},_function:function(n){return t.update("fn:"+n.toString(),"utf8"),e.respectFunctionProperties&&this._object(n),t},_number:function(e){return t.update("number:"+e.toString())},_xml:function(e){return t.update("xml:"+e.toString(),"utf8")},_null:function(){return t.update("Null")},_undefined:function(){return t.update("Undefined")},_regexp:function(e){return t.update("regex:"+e.toString(),"utf8")},_uint8array:function(r){return t.update("uint8array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_uint8clampedarray:function(r){return t.update("uint8clampedarray:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_int8array:function(r){return t.update("uint8array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_uint16array:function(r){return t.update("uint16array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_int16array:function(r){return t.update("uint16array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_uint32array:function(r){return t.update("uint32array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_int32array:function(r){return t.update("uint32array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_float32array:function(r){return t.update("float32array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_float64array:function(r){return t.update("float64array:"),y(t,e,n).dispatch(Array.prototype.slice.call(r))},_arraybuffer:function(r){return t.update("arraybuffer:"),y(t,e,n).dispatch(new Uint8Array(r))},_url:function(e){return t.update("url:"+e.toString(),"utf8")},_map:function(r){return t.update("map:"),y(t,e,n).dispatch(Array.from(r))},_set:function(r){return t.update("set:"),y(t,e,n).dispatch(Array.from(r))},_domwindow:function(){return t.update("domwindow")},_process:function(){return t.update("process")},_timer:function(){return t.update("timer")},_pipe:function(){return t.update("pipe")},_tcp:function(){return t.update("tcp")},_udp:function(){return t.update("udp")},_tty:function(){return t.update("tty")},_statwatcher:function(){return t.update("statwatcher")},_securecontext:function(){return t.update("securecontext")},_connection:function(){return t.update("connection")},_zlib:function(){return t.update("zlib")},_context:function(){return t.update("context")},_nodescript:function(){return t.update("nodescript")},_httpparser:function(){return t.update("httpparser")},_dataview:function(){return t.update("dataview")},_signal:function(){return t.update("signal")},_fsevent:function(){return t.update("fsevent")},_tlswrap:function(){return t.update("tlswrap")}}}var w=t("crypto");n=e.exports=d,n.sha1=function(t){return d(t)},n.keys=function(t){return d(t,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(t){return d(t,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(t){return d(t,{algorithm:"md5",encoding:"hex",excludeValues:!0})},n.HashTable=t("./lib/hashTable")}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/index.js","/")},{"./lib/hashTable":3,buffer:5,crypto:7,lYpoI2:12}],3:[function(t,e,n){(function(r,o,i,u,a,f,s,c,l){"use strict";function d(t){t=t||{},this.options=t,this._table={}}var p=t("../index");n=e.exports=d,d.prototype.add=function(){var t=this,e=Array.prototype.slice.call(arguments,0);return e.forEach(function(e){"[object Array]"===Object.prototype.toString.call(e)?e.forEach(function(e){t._addObject(e)}):t._addObject(e)}),this},d.prototype.remove=function(){var t=this,e=Array.prototype.slice.call(arguments,0);return e.forEach(function(e){"[object Array]"===Object.prototype.toString.call(e)?e.forEach(function(e){t._removeObject(e)}):t._removeObject(e)}),this},d.prototype._removeObject=function(t){var e=p(t,this.options),n=this.getCount(e);1>=n?delete this._table[e]:this._table[e].count=n-1},d.prototype._addObject=function(t){var e=p(t,this.options);this._table[e]?(this._table[e].count++,this.options.excludeValues&&this._table[e].value.push(t)):this._table[e]={value:this.options.excludeValues?[t]:t,count:1}},d.prototype.hasKey=function(t){return!!this._table[t]},d.prototype.getValue=function(t){return this._table[t]?this._table[t].value:void 0},d.prototype.getCount=function(t){return this._table[t]?this._table[t].count:0},d.prototype.table=function(){return this._table},d.prototype.toArray=function(){for(var t=Object.keys(this._table),e=[],n=0;n<t.length;n++)e.push({value:this._table[t[n]].value,count:this._table[t[n]].count,hash:t[n]});return e},d.prototype.reset=function(){return this._table={},this}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/lib/hashTable.js","/lib")},{"../index":2,buffer:5,lYpoI2:12}],4:[function(t,e,n){(function(t,e,r,o,i,u,a,f,s){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===i||e===l?62:e===u||e===d?63:a>e?-1:a+10>e?e-a+26+26:s+26>e?e-s:f+26>e?e-f+26:void 0}function n(t){function n(t){s[l++]=t}var r,i,u,a,f,s;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;f="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,s=new o(3*t.length/4-f),u=f>0?t.length-4:t.length;var l=0;for(r=0,i=0;u>r;r+=4,i+=3)a=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&a)>>16),n((65280&a)>>8),n(255&a);return 2===f?(a=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&a)):1===f&&(a=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(a>>8&255),n(255&a)),s}function r(t){function e(t){return c.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var r,o,i,u=t.length%3,a="";for(r=0,i=t.length-u;i>r;r+=3)o=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=n(o);switch(u){case 1:o=t[t.length-1],a+=e(o>>2),a+=e(o<<4&63),a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=e(o>>10),a+=e(o>>4&63),a+=e(o<<2&63),a+="="}return a}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="+".charCodeAt(0),u="/".charCodeAt(0),a="0".charCodeAt(0),f="a".charCodeAt(0),s="A".charCodeAt(0),l="-".charCodeAt(0),d="_".charCodeAt(0);t.toByteArray=n,t.fromByteArray=r}("undefined"==typeof n?this.base64js={}:n)}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/base64-js/lib/b64.js","/node_modules/base64-js/lib")},{buffer:5,lYpoI2:12}],5:[function(t,e,n){(function(e,r,o,i,u,a,f,s,c){function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);var r=typeof t;if("base64"===e&&"string"===r)for(t=Y(t);t.length%4!==0;)t+="=";var i;if("number"===r)i=N(t);else if("string"===r)i=o.byteLength(t,e);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");i=N(t.length)}var u;o._useTypedArrays?u=o._augment(new Uint8Array(i)):(u=this,u.length=i,u._isBuffer=!0);var a;if(o._useTypedArrays&&"number"==typeof t.byteLength)u._set(t);else if(D(t))for(a=0;i>a;a++)o.isBuffer(t)?u[a]=t.readUInt8(a):u[a]=t[a];else if("string"===r)u.write(t,0,e);else if("number"===r&&!o._useTypedArrays&&!n)for(a=0;i>a;a++)u[a]=0;return u}function l(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var u=e.length;K(u%2===0,"Invalid hex string"),r>u/2&&(r=u/2);for(var a=0;r>a;a++){var f=parseInt(e.substr(2*a,2),16);K(!isNaN(f),"Invalid hex string"),t[n+a]=f}return o._charsWritten=2*a,a}function d(t,e,n,r){var i=o._charsWritten=z(H(e),t,n,r);return i}function p(t,e,n,r){var i=o._charsWritten=z(P(e),t,n,r);return i}function h(t,e,n,r){return p(t,e,n,r)}function g(t,e,n,r){var i=o._charsWritten=z(q(e),t,n,r);return i}function y(t,e,n,r){var i=o._charsWritten=z(R(e),t,n,r);return i}function w(t,e,n){return 0===e&&n===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(e,n))}function b(t,e,n){var r="",o="";n=Math.min(t.length,n);for(var i=e;n>i;i++)t[i]<=127?(r+=J(o)+String.fromCharCode(t[i]),o=""):o+="%"+t[i].toString(16);return r+J(o)}function m(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;n>o;o++)r+=String.fromCharCode(t[o]);return r}function v(t,e,n){return m(t,e,n)}function _(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var o="",i=e;n>i;i++)o+=V(t[i]);return o}function E(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(t,e,n,r){r||(K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==e&&null!==e,"missing offset"),K(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return n?(i=t[e],o>e+1&&(i|=t[e+1]<<8)):(i=t[e]<<8,o>e+1&&(i|=t[e+1])),i}}function A(t,e,n,r){r||(K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==e&&null!==e,"missing offset"),K(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return n?(o>e+2&&(i=t[e+2]<<16),o>e+1&&(i|=t[e+1]<<8),i|=t[e],o>e+3&&(i+=t[e+3]<<24>>>0)):(o>e+1&&(i=t[e+1]<<16),o>e+2&&(i|=t[e+2]<<8),o>e+3&&(i|=t[e+3]),i+=t[e]<<24>>>0),i}}function B(t,e,n,r){r||(K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==e&&null!==e,"missing offset"),K(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i=I(t,e,n,!0),u=32768&i;return u?-1*(65535-i+1):i}}function x(t,e,n,r){r||(K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==e&&null!==e,"missing offset"),K(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i=A(t,e,n,!0),u=2147483648&i;return u?-1*(4294967295-i+1):i}}function L(t,e,n,r){return r||(K("boolean"==typeof n,"missing or invalid endian"),K(e+3<t.length,"Trying to read beyond buffer length")),Q.read(t,e,n,23,4)}function j(t,e,n,r){return r||(K("boolean"==typeof n,"missing or invalid endian"),K(e+7<t.length,"Trying to read beyond buffer length")),Q.read(t,e,n,52,8)}function U(t,e,n,r,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==n&&null!==n,"missing offset"),K(n+1<t.length,"trying to write beyond buffer length"),W(e,65535));var i=t.length;if(!(n>=i))for(var u=0,a=Math.min(i-n,2);a>u;u++)t[n+u]=(e&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function S(t,e,n,r,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==n&&null!==n,"missing offset"),K(n+3<t.length,"trying to write beyond buffer length"),W(e,4294967295));var i=t.length;if(!(n>=i))for(var u=0,a=Math.min(i-n,4);a>u;u++)t[n+u]=e>>>8*(r?u:3-u)&255}function C(t,e,n,r,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==n&&null!==n,"missing offset"),K(n+1<t.length,"Trying to write beyond buffer length"),X(e,32767,-32768));var i=t.length;n>=i||(e>=0?U(t,e,n,r,o):U(t,65535+e+1,n,r,o))}function T(t,e,n,r,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==n&&null!==n,"missing offset"),K(n+3<t.length,"Trying to write beyond buffer length"),X(e,2147483647,-2147483648));var i=t.length;n>=i||(e>=0?S(t,e,n,r,o):S(t,4294967295+e+1,n,r,o))}function k(t,e,n,r,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==n&&null!==n,"missing offset"),K(n+3<t.length,"Trying to write beyond buffer length"),$(e,3.4028234663852886e38,-3.4028234663852886e38));var i=t.length;n>=i||Q.write(t,e,n,r,23,4)}function M(t,e,n,r,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==n&&null!==n,"missing offset"),K(n+7<t.length,"Trying to write beyond buffer length"),$(e,1.7976931348623157e308,-1.7976931348623157e308));var i=t.length;n>=i||Q.write(t,e,n,r,52,8)}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function O(t,e,n){return"number"!=typeof t?n:(t=~~t,t>=e?e:t>=0?t:(t+=e,t>=0?t:0))}function N(t){return t=~~Math.ceil(+t),0>t?0:t}function F(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function D(t){return F(t)||o.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function V(t){return 16>t?"0"+t.toString(16):t.toString(16)}function H(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(127>=r)e.push(t.charCodeAt(n));else{var o=n;r>=55296&&57343>=r&&n++;for(var i=encodeURIComponent(t.slice(o,n+1)).substr(1).split("%"),u=0;u<i.length;u++)e.push(parseInt(i[u],16))}}return e}function P(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function R(t){for(var e,n,r,o=[],i=0;i<t.length;i++)e=t.charCodeAt(i),n=e>>8,r=e%256,o.push(r),o.push(n);return o}function q(t){return G.toByteArray(t)}function z(t,e,n,r){for(var o=0;r>o&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}function J(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function W(t,e){K("number"==typeof t,"cannot write a non-number as a number"),K(t>=0,"specified a negative value for writing an unsigned value"),K(e>=t,"value is larger than maximum value for type"),K(Math.floor(t)===t,"value has a fractional component")}function X(t,e,n){K("number"==typeof t,"cannot write a non-number as a number"),K(e>=t,"value larger than maximum allowed value"),K(t>=n,"value smaller than minimum allowed value"),K(Math.floor(t)===t,"value has a fractional component")}function $(t,e,n){K("number"==typeof t,"cannot write a non-number as a number"),K(e>=t,"value larger than maximum allowed value"),K(t>=n,"value smaller than minimum allowed value")}function K(t,e){if(!t)throw new Error(e||"Failed assertion")}var G=t("base64-js"),Q=t("ieee754");n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(n){return!1}}(),o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},o.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=H(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=q(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(t,e){if(K(F(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new o(0);if(1===t.length)return t[0];var n;if("number"!=typeof e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var r=new o(e),i=0;for(n=0;n<t.length;n++){var u=t[n];u.copy(r,i),i+=u.length}return r},o.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var o=r;r=e,e=n,n=o}e=Number(e)||0;var i=this.length-e;n?(n=Number(n),n>i&&(n=i)):n=i,r=String(r||"utf8").toLowerCase();var u;switch(r){case"hex":u=l(this,t,e,n);break;case"utf8":case"utf-8":u=d(this,t,e,n);break;case"ascii":u=p(this,t,e,n);break;case"binary":u=h(this,t,e,n);break;case"base64":u=g(this,t,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":u=y(this,t,e,n);break;default:throw new Error("Unknown encoding")}return u},o.prototype.toString=function(t,e,n){var r=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,n=void 0!==n?Number(n):n=r.length,n===e)return"";var o;switch(t){case"hex":o=_(r,e,n);break;case"utf8":case"utf-8":o=b(r,e,n);break;case"ascii":o=m(r,e,n);break;case"binary":o=v(r,e,n);break;case"base64":o=w(r,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=E(r,e,n);break;default:throw new Error("Unknown encoding")}return o},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(t,e,n,r){var i=this;if(n||(n=0),r||0===r||(r=this.length),e||(e=0),r!==n&&0!==t.length&&0!==i.length){K(r>=n,"sourceEnd < sourceStart"),K(e>=0&&e<t.length,"targetStart out of bounds"),K(n>=0&&n<i.length,"sourceStart out of bounds"),K(r>=0&&r<=i.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var u=r-n;if(100>u||!o._useTypedArrays)for(var a=0;u>a;a++)t[a+e]=this[a+n];else t._set(this.subarray(n,n+u),e)}},o.prototype.slice=function(t,e){var n=this.length;if(t=O(t,n,0),e=O(e,n,n),o._useTypedArrays)return o._augment(this.subarray(t,e));for(var r=e-t,i=new o(r,void 0,!0),u=0;r>u;u++)i[u]=this[u+t];return i},o.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},o.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},o.prototype.readUInt8=function(t,e){return e||(K(void 0!==t&&null!==t,"missing offset"),K(t<this.length,"Trying to read beyond buffer length")),t>=this.length?void 0:this[t]},o.prototype.readUInt16LE=function(t,e){return I(this,t,!0,e)},o.prototype.readUInt16BE=function(t,e){return I(this,t,!1,e)},o.prototype.readUInt32LE=function(t,e){return A(this,t,!0,e)},o.prototype.readUInt32BE=function(t,e){return A(this,t,!1,e)},o.prototype.readInt8=function(t,e){if(e||(K(void 0!==t&&null!==t,"missing offset"),K(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length)){var n=128&this[t];return n?-1*(255-this[t]+1):this[t]}},o.prototype.readInt16LE=function(t,e){return B(this,t,!0,e)},o.prototype.readInt16BE=function(t,e){return B(this,t,!1,e)},o.prototype.readInt32LE=function(t,e){return x(this,t,!0,e)},o.prototype.readInt32BE=function(t,e){return x(this,t,!1,e)},o.prototype.readFloatLE=function(t,e){return L(this,t,!0,e)},o.prototype.readFloatBE=function(t,e){return L(this,t,!1,e)},o.prototype.readDoubleLE=function(t,e){return j(this,t,!0,e)},o.prototype.readDoubleBE=function(t,e){return j(this,t,!1,e)},o.prototype.writeUInt8=function(t,e,n){n||(K(void 0!==t&&null!==t,"missing value"),K(void 0!==e&&null!==e,"missing offset"),K(e<this.length,"trying to write beyond buffer length"),W(t,255)),e>=this.length||(this[e]=t)},o.prototype.writeUInt16LE=function(t,e,n){U(this,t,e,!0,n)},o.prototype.writeUInt16BE=function(t,e,n){U(this,t,e,!1,n)},o.prototype.writeUInt32LE=function(t,e,n){S(this,t,e,!0,n)},o.prototype.writeUInt32BE=function(t,e,n){S(this,t,e,!1,n)},o.prototype.writeInt8=function(t,e,n){n||(K(void 0!==t&&null!==t,"missing value"),K(void 0!==e&&null!==e,"missing offset"),K(e<this.length,"Trying to write beyond buffer length"),X(t,127,-128)),e>=this.length||(t>=0?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},o.prototype.writeInt16LE=function(t,e,n){C(this,t,e,!0,n)},o.prototype.writeInt16BE=function(t,e,n){C(this,t,e,!1,n)},o.prototype.writeInt32LE=function(t,e,n){T(this,t,e,!0,n)},o.prototype.writeInt32BE=function(t,e,n){T(this,t,e,!1,n)},o.prototype.writeFloatLE=function(t,e,n){k(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){k(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){M(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){M(this,t,e,!1,n)},o.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),K("number"==typeof t&&!isNaN(t),"value is not a number"),K(n>=e,"end < start"),n!==e&&0!==this.length){K(e>=0&&e<this.length,"start out of bounds"),K(n>=0&&n<=this.length,"end out of bounds");for(var r=e;n>r;r++)this[r]=t}},o.prototype.inspect=function(){for(var t=[],e=this.length,r=0;e>r;r++)if(t[r]=V(this[r]),r===n.INSPECT_MAX_BYTES){t[r+1]="...";break}return"<Buffer "+t.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;n>e;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var Z=o.prototype;o._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=Z.get,t.set=Z.set,t.write=Z.write,t.toString=Z.toString,t.toLocaleString=Z.toString,t.toJSON=Z.toJSON,t.copy=Z.copy,t.slice=Z.slice,t.readUInt8=Z.readUInt8,t.readUInt16LE=Z.readUInt16LE,t.readUInt16BE=Z.readUInt16BE,t.readUInt32LE=Z.readUInt32LE,t.readUInt32BE=Z.readUInt32BE,t.readInt8=Z.readInt8,t.readInt16LE=Z.readInt16LE,t.readInt16BE=Z.readInt16BE,t.readInt32LE=Z.readInt32LE,t.readInt32BE=Z.readInt32BE,t.readFloatLE=Z.readFloatLE,t.readFloatBE=Z.readFloatBE,t.readDoubleLE=Z.readDoubleLE,t.readDoubleBE=Z.readDoubleBE,t.writeUInt8=Z.writeUInt8,t.writeUInt16LE=Z.writeUInt16LE,t.writeUInt16BE=Z.writeUInt16BE,t.writeUInt32LE=Z.writeUInt32LE,t.writeUInt32BE=Z.writeUInt32BE,t.writeInt8=Z.writeInt8,t.writeInt16LE=Z.writeInt16LE,t.writeInt16BE=Z.writeInt16BE,t.writeInt32LE=Z.writeInt32LE,t.writeInt32BE=Z.writeInt32BE,t.writeFloatLE=Z.writeFloatLE,t.writeFloatBE=Z.writeFloatBE,t.writeDoubleLE=Z.writeDoubleLE,t.writeDoubleBE=Z.writeDoubleBE,t.fill=Z.fill,t.inspect=Z.inspect,t.toArrayBuffer=Z.toArrayBuffer,t}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":4,buffer:5,ieee754:13,lYpoI2:12}],6:[function(t,e,n){(function(n,r,o,i,u,a,f,s,c){function l(t,e){if(t.length%h!==0){var n=t.length+(h-t.length%h);t=o.concat([t,g],n)}for(var r=[],i=e?t.readInt32BE:t.readInt32LE,u=0;u<t.length;u+=h)r.push(i.call(t,u));return r}function d(t,e,n){for(var r=new o(e),i=n?r.writeInt32BE:r.writeInt32LE,u=0;u<t.length;u++)i.call(r,t[u],4*u,!0);return r}function p(t,e,n,r){o.isBuffer(t)||(t=new o(t));var i=e(l(t,r),t.length*y);return d(i,n,r)}var o=t("buffer").Buffer,h=4,g=new o(h);g.fill(0);var y=8;e.exports={hash:p}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:5,lYpoI2:12}],7:[function(t,e,n){(function(e,r,o,i,u,a,f,s,c){function l(t,e,n){o.isBuffer(e)||(e=new o(e)),o.isBuffer(n)||(n=new o(n)),e.length>v?e=t(e):e.length<v&&(e=o.concat([e,_],v));for(var r=new o(v),i=new o(v),u=0;v>u;u++)r[u]=54^e[u],i[u]=92^e[u];var a=t(o.concat([r,n]));return t(o.concat([i,a]))}function d(t,e){t=t||"sha1";var n=m[t],r=[],i=0;return n||p("algorithm:",t,"is not yet supported"),{update:function(t){return o.isBuffer(t)||(t=new o(t)),r.push(t),i+=t.length,this},digest:function(t){var i=o.concat(r),u=e?l(n,e,i):n(i);return r=null,t?u.toString(t):u}}}function p(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function h(t,e){for(var n in t)e(t[n],n)}var o=t("buffer").Buffer,g=t("./sha"),y=t("./sha256"),w=t("./rng"),b=t("./md5"),m={sha1:g,sha256:y,md5:b},v=64,_=new o(v);_.fill(0),n.createHash=function(t){return d(t)},n.createHmac=function(t,e){return d(t,e)},n.randomBytes=function(t,e){if(!e||!e.call)return new o(w(t)); | ||
try{e.call(this,void 0,new o(w(t)))}catch(n){e(n)}},h(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(t){n[t]=function(){p("sorry,",t,"is not implemented yet")}})}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":8,"./rng":9,"./sha":10,"./sha256":11,buffer:5,lYpoI2:12}],8:[function(t,e,n){(function(n,r,o,i,u,a,f,s,c){function l(t,e){t[e>>5]|=128<<e%32,t[(e+64>>>9<<4)+14]=e;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<t.length;u+=16){var a=n,f=r,s=o,c=i;n=p(n,r,o,i,t[u+0],7,-680876936),i=p(i,n,r,o,t[u+1],12,-389564586),o=p(o,i,n,r,t[u+2],17,606105819),r=p(r,o,i,n,t[u+3],22,-1044525330),n=p(n,r,o,i,t[u+4],7,-176418897),i=p(i,n,r,o,t[u+5],12,1200080426),o=p(o,i,n,r,t[u+6],17,-1473231341),r=p(r,o,i,n,t[u+7],22,-45705983),n=p(n,r,o,i,t[u+8],7,1770035416),i=p(i,n,r,o,t[u+9],12,-1958414417),o=p(o,i,n,r,t[u+10],17,-42063),r=p(r,o,i,n,t[u+11],22,-1990404162),n=p(n,r,o,i,t[u+12],7,1804603682),i=p(i,n,r,o,t[u+13],12,-40341101),o=p(o,i,n,r,t[u+14],17,-1502002290),r=p(r,o,i,n,t[u+15],22,1236535329),n=h(n,r,o,i,t[u+1],5,-165796510),i=h(i,n,r,o,t[u+6],9,-1069501632),o=h(o,i,n,r,t[u+11],14,643717713),r=h(r,o,i,n,t[u+0],20,-373897302),n=h(n,r,o,i,t[u+5],5,-701558691),i=h(i,n,r,o,t[u+10],9,38016083),o=h(o,i,n,r,t[u+15],14,-660478335),r=h(r,o,i,n,t[u+4],20,-405537848),n=h(n,r,o,i,t[u+9],5,568446438),i=h(i,n,r,o,t[u+14],9,-1019803690),o=h(o,i,n,r,t[u+3],14,-187363961),r=h(r,o,i,n,t[u+8],20,1163531501),n=h(n,r,o,i,t[u+13],5,-1444681467),i=h(i,n,r,o,t[u+2],9,-51403784),o=h(o,i,n,r,t[u+7],14,1735328473),r=h(r,o,i,n,t[u+12],20,-1926607734),n=g(n,r,o,i,t[u+5],4,-378558),i=g(i,n,r,o,t[u+8],11,-2022574463),o=g(o,i,n,r,t[u+11],16,1839030562),r=g(r,o,i,n,t[u+14],23,-35309556),n=g(n,r,o,i,t[u+1],4,-1530992060),i=g(i,n,r,o,t[u+4],11,1272893353),o=g(o,i,n,r,t[u+7],16,-155497632),r=g(r,o,i,n,t[u+10],23,-1094730640),n=g(n,r,o,i,t[u+13],4,681279174),i=g(i,n,r,o,t[u+0],11,-358537222),o=g(o,i,n,r,t[u+3],16,-722521979),r=g(r,o,i,n,t[u+6],23,76029189),n=g(n,r,o,i,t[u+9],4,-640364487),i=g(i,n,r,o,t[u+12],11,-421815835),o=g(o,i,n,r,t[u+15],16,530742520),r=g(r,o,i,n,t[u+2],23,-995338651),n=y(n,r,o,i,t[u+0],6,-198630844),i=y(i,n,r,o,t[u+7],10,1126891415),o=y(o,i,n,r,t[u+14],15,-1416354905),r=y(r,o,i,n,t[u+5],21,-57434055),n=y(n,r,o,i,t[u+12],6,1700485571),i=y(i,n,r,o,t[u+3],10,-1894986606),o=y(o,i,n,r,t[u+10],15,-1051523),r=y(r,o,i,n,t[u+1],21,-2054922799),n=y(n,r,o,i,t[u+8],6,1873313359),i=y(i,n,r,o,t[u+15],10,-30611744),o=y(o,i,n,r,t[u+6],15,-1560198380),r=y(r,o,i,n,t[u+13],21,1309151649),n=y(n,r,o,i,t[u+4],6,-145523070),i=y(i,n,r,o,t[u+11],10,-1120210379),o=y(o,i,n,r,t[u+2],15,718787259),r=y(r,o,i,n,t[u+9],21,-343485551),n=w(n,a),r=w(r,f),o=w(o,s),i=w(i,c)}return Array(n,r,o,i)}function d(t,e,n,r,o,i){return w(b(w(w(e,t),w(r,i)),o),n)}function p(t,e,n,r,o,i,u){return d(e&n|~e&r,t,e,o,i,u)}function h(t,e,n,r,o,i,u){return d(e&r|n&~r,t,e,o,i,u)}function g(t,e,n,r,o,i,u){return d(e^n^r,t,e,o,i,u)}function y(t,e,n,r,o,i,u){return d(n^(e|~r),t,e,o,i,u)}function w(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function b(t,e){return t<<e|t>>>32-e}var m=t("./helpers");e.exports=function(t){return m.hash(t,l,16)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":6,buffer:5,lYpoI2:12}],9:[function(t,e,n){(function(t,n,r,o,i,u,a,f,s){!function(){var t,n,r=this;t=function(t){for(var e,e,n=new Array(t),r=0;t>r;r++)0==(3&r)&&(e=4294967296*Math.random()),n[r]=e>>>((3&r)<<3)&255;return n},r.crypto&&crypto.getRandomValues&&(n=function(t){var e=new Uint8Array(t);return crypto.getRandomValues(e),e}),e.exports=n||t}()}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:5,lYpoI2:12}],10:[function(t,e,n){(function(n,r,o,i,u,a,f,s,c){function l(t,e){t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var n=Array(80),r=1732584193,o=-271733879,i=-1732584194,u=271733878,a=-1009589776,f=0;f<t.length;f+=16){for(var s=r,c=o,l=i,y=u,w=a,b=0;80>b;b++){16>b?n[b]=t[f+b]:n[b]=g(n[b-3]^n[b-8]^n[b-14]^n[b-16],1);var m=h(h(g(r,5),d(b,o,i,u)),h(h(a,n[b]),p(b)));a=u,u=i,i=g(o,30),o=r,r=m}r=h(r,s),o=h(o,c),i=h(i,l),u=h(u,y),a=h(a,w)}return Array(r,o,i,u,a)}function d(t,e,n,r){return 20>t?e&n|~e&r:40>t?e^n^r:60>t?e&n|e&r|n&r:e^n^r}function p(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function h(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function g(t,e){return t<<e|t>>>32-e}var y=t("./helpers");e.exports=function(t){return y.hash(t,l,20,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":6,buffer:5,lYpoI2:12}],11:[function(t,e,n){(function(n,r,o,i,u,a,f,s,c){var l=t("./helpers"),d=function(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n},p=function(t,e){return t>>>e|t<<32-e},h=function(t,e){return t>>>e},g=function(t,e,n){return t&e^~t&n},y=function(t,e,n){return t&e^t&n^e&n},w=function(t){return p(t,2)^p(t,13)^p(t,22)},b=function(t){return p(t,6)^p(t,11)^p(t,25)},m=function(t){return p(t,7)^p(t,18)^h(t,3)},v=function(t){return p(t,17)^p(t,19)^h(t,10)},_=function(t,e){var n,r,o,i,u,a,f,s,c,l,p,h,_=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),E=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),I=new Array(64);t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var c=0;c<t.length;c+=16){n=E[0],r=E[1],o=E[2],i=E[3],u=E[4],a=E[5],f=E[6],s=E[7];for(var l=0;64>l;l++)16>l?I[l]=t[l+c]:I[l]=d(d(d(v(I[l-2]),I[l-7]),m(I[l-15])),I[l-16]),p=d(d(d(d(s,b(u)),g(u,a,f)),_[l]),I[l]),h=d(w(n),y(n,r,o)),s=f,f=a,a=u,u=d(i,p),i=o,o=r,r=n,n=d(p,h);E[0]=d(n,E[0]),E[1]=d(r,E[1]),E[2]=d(o,E[2]),E[3]=d(i,E[3]),E[4]=d(u,E[4]),E[5]=d(a,E[5]),E[6]=d(f,E[6]),E[7]=d(s,E[7])}return E};e.exports=function(t){return l.hash(t,_,32,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":6,buffer:5,lYpoI2:12}],12:[function(t,e,n){(function(t,n,r,o,i,u,a,f,s){function c(){}var t=e.exports={};t.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=c,t.addListener=c,t.once=c,t.off=c,t.removeListener=c,t.removeAllListeners=c,t.emit=c,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:5,lYpoI2:12}],13:[function(t,e,n){(function(t,e,r,o,i,u,a,f,s){n.read=function(t,e,n,r,o){var i,u,a=8*o-r-1,f=(1<<a)-1,s=f>>1,c=-7,l=n?o-1:0,d=n?-1:1,p=t[e+l];for(l+=d,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+t[e+l],l+=d,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=r;c>0;u=256*u+t[e+l],l+=d,c-=8);if(0===i)i=1-s;else{if(i===f)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,r),i-=s}return(p?-1:1)*u*Math.pow(2,i-r)},n.write=function(t,e,n,r,o,i){var u,a,f,s=8*i-o-1,c=(1<<s)-1,l=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),e+=u+l>=1?d/f:d*Math.pow(2,1-l),e*f>=2&&(u++,f/=2),u+l>=c?(a=0,u=c):u+l>=1?(a=(e*f-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[n+p]=255&a,p+=h,a/=256,o-=8);for(u=u<<o|a,s+=o;s>0;t[n+p]=255&u,p+=h,u/=256,s-=8);t[n+p-h]|=128*g}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:5,lYpoI2:12}]},{},[1])(1)}); | ||
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.objectHash=t()}}(function(){return function t(e,r,n){function o(u,a){if(!r[u]){if(!e[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+u+"'")}var f=r[u]={exports:{}};e[u][0].call(f.exports,function(t){var r=e[u][1][t];return o(r?r:t)},f,f.exports,t,e,r,n)}return r[u].exports}for(var i="function"==typeof require&&require,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(t,e,r){(function(n,o,i,u,a,s,f,c,l){"use strict";function d(t,e){return e=e||{},e.algorithm=e.algorithm||"sha1",e.encoding=e.encoding||"hex",e.excludeValues=e.excludeValues?!0:!1,e.algorithm=e.algorithm.toLowerCase(),e.encoding=e.encoding.toLowerCase(),e.respectType=e.respectType===!1?!1:!0,e.respectFunctionProperties=e.respectFunctionProperties===!1?!1:!0,e.unorderedArrays=e.unorderedArrays!==!0?!1:!0,e.unorderedSets=e.unorderedSets!==!0?!1:!0,p(t,e),h(t,e)}function p(t,e){var r=w.getHashes?w.getHashes():["sha1","md5"],n=["buffer","hex","binary","base64"];if("undefined"==typeof t)throw new Error("Object argument required.");for(var o=0;o<r.length;++o)r[o].toLowerCase()===e.algorithm.toLowerCase()&&(e.algorithm=r[o]);if(-1===r.indexOf(e.algorithm))throw new Error('Algorithm "'+e.algorithm+'" not supported. supported values: '+r.join(", "));if(-1===n.indexOf(e.encoding))throw new Error('Encoding "'+e.encoding+'" not supported. supported values: '+n.join(", "))}function h(t,e){var r=w.createHash(e.algorithm),n=[];return y(r,e,n).dispatch(t),"buffer"===e.encoding?r.digest():r.digest(e.encoding)}function g(t){if("function"!=typeof t)return!1;var e=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;return null!=e.exec(Function.prototype.toString.call(t))}function y(t,e,r){return{dispatch:function(t){var e=typeof t;return null===t?this._null():this["_"+e](t)},_object:function(n){var o=/\[object (.*)\]/i,u=Object.prototype.toString.call(n),a=o.exec(u)[1]||"null",s=null;if(a=a.toLowerCase(),(s=r.indexOf(n))>=0)return void y(t,e,r).dispatch("[CIRCULAR]: "+s);if(r.push(n),"undefined"!=typeof i&&i.isBuffer&&i.isBuffer(n))return t.update("buffer:"),t.update(n);if("object"===a||"function"===a){t.update("object:");var f=Object.keys(n).sort();return e.respectType===!1||g(n)||f.splice(0,0,"prototype","__proto__","constructor"),f.forEach(function(o){t.update(o,"utf8"),e.excludeValues||y(t,e,r).dispatch(n[o])})}if(!y(t,e,r)["_"+a])throw new Error('Unknown object type "'+a+'"');y(t,e,r)["_"+a](n)},_array:function(n){return t.update("array:"+n.length+":"),e.unorderedArrays!==!1&&(n=n.sort()),n.forEach(function(n){y(t,e,r).dispatch(n)})},_date:function(e){return t.update("date:"+e.toJSON())},_symbol:function(e){return t.update("symbol:"+e.toString(),"utf8")},_error:function(e){return t.update("error:"+e.toString(),"utf8")},_boolean:function(e){return t.update("bool:"+e.toString())},_string:function(e){return t.update("string:"+e,"utf8")},_function:function(r){return t.update("fn:"+r.toString(),"utf8"),e.respectFunctionProperties&&this._object(r),t},_number:function(e){return t.update("number:"+e.toString())},_xml:function(e){return t.update("xml:"+e.toString(),"utf8")},_null:function(){return t.update("Null")},_undefined:function(){return t.update("Undefined")},_regexp:function(e){return t.update("regex:"+e.toString(),"utf8")},_uint8array:function(n){return t.update("uint8array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_uint8clampedarray:function(n){return t.update("uint8clampedarray:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_int8array:function(n){return t.update("uint8array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_uint16array:function(n){return t.update("uint16array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_int16array:function(n){return t.update("uint16array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_uint32array:function(n){return t.update("uint32array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_int32array:function(n){return t.update("uint32array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_float32array:function(n){return t.update("float32array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_float64array:function(n){return t.update("float64array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_arraybuffer:function(n){return t.update("arraybuffer:"),y(t,e,r).dispatch(new Uint8Array(n))},_url:function(e){return t.update("url:"+e.toString(),"utf8")},_map:function(n){t.update("map:");var o=Array.from(n);return e.unorderedSets!==!1&&e.unorderedArrays===!1&&(o=o.sort()),y(t,e,r).dispatch(o)},_set:function(n){t.update("set:");var o=Array.from(n);return e.unorderedSets!==!1&&e.unorderedArrays===!1&&(o=o.sort()),y(t,e,r).dispatch(o)},_domwindow:function(){return t.update("domwindow")},_process:function(){return t.update("process")},_timer:function(){return t.update("timer")},_pipe:function(){return t.update("pipe")},_tcp:function(){return t.update("tcp")},_udp:function(){return t.update("udp")},_tty:function(){return t.update("tty")},_statwatcher:function(){return t.update("statwatcher")},_securecontext:function(){return t.update("securecontext")},_connection:function(){return t.update("connection")},_zlib:function(){return t.update("zlib")},_context:function(){return t.update("context")},_nodescript:function(){return t.update("nodescript")},_httpparser:function(){return t.update("httpparser")},_dataview:function(){return t.update("dataview")},_signal:function(){return t.update("signal")},_fsevent:function(){return t.update("fsevent")},_tlswrap:function(){return t.update("tlswrap")}}}var w=t("crypto");r=e.exports=d,r.sha1=function(t){return d(t)},r.keys=function(t){return d(t,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(t){return d(t,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(t){return d(t,{algorithm:"md5",encoding:"hex",excludeValues:!0})},r.HashTable=t("./lib/hashTable")}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_efdb3947.js","/")},{"./lib/hashTable":3,buffer:5,crypto:7,lYpoI2:12}],2:[function(t,e,r){(function(n,o,i,u,a,s,f,c,l){"use strict";function d(t,e){return e=e||{},e.algorithm=e.algorithm||"sha1",e.encoding=e.encoding||"hex",e.excludeValues=e.excludeValues?!0:!1,e.algorithm=e.algorithm.toLowerCase(),e.encoding=e.encoding.toLowerCase(),e.respectType=e.respectType===!1?!1:!0,e.respectFunctionProperties=e.respectFunctionProperties===!1?!1:!0,e.unorderedArrays=e.unorderedArrays!==!0?!1:!0,e.unorderedSets=e.unorderedSets!==!0?!1:!0,p(t,e),h(t,e)}function p(t,e){var r=w.getHashes?w.getHashes():["sha1","md5"],n=["buffer","hex","binary","base64"];if("undefined"==typeof t)throw new Error("Object argument required.");for(var o=0;o<r.length;++o)r[o].toLowerCase()===e.algorithm.toLowerCase()&&(e.algorithm=r[o]);if(-1===r.indexOf(e.algorithm))throw new Error('Algorithm "'+e.algorithm+'" not supported. supported values: '+r.join(", "));if(-1===n.indexOf(e.encoding))throw new Error('Encoding "'+e.encoding+'" not supported. supported values: '+n.join(", "))}function h(t,e){var r=w.createHash(e.algorithm),n=[];return y(r,e,n).dispatch(t),"buffer"===e.encoding?r.digest():r.digest(e.encoding)}function g(t){if("function"!=typeof t)return!1;var e=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;return null!=e.exec(Function.prototype.toString.call(t))}function y(t,e,r){return{dispatch:function(t){var e=typeof t;return null===t?this._null():this["_"+e](t)},_object:function(n){var o=/\[object (.*)\]/i,u=Object.prototype.toString.call(n),a=o.exec(u)[1]||"null",s=null;if(a=a.toLowerCase(),(s=r.indexOf(n))>=0)return void y(t,e,r).dispatch("[CIRCULAR]: "+s);if(r.push(n),"undefined"!=typeof i&&i.isBuffer&&i.isBuffer(n))return t.update("buffer:"),t.update(n);if("object"===a||"function"===a){t.update("object:");var f=Object.keys(n).sort();return e.respectType===!1||g(n)||f.splice(0,0,"prototype","__proto__","constructor"),f.forEach(function(o){t.update(o,"utf8"),e.excludeValues||y(t,e,r).dispatch(n[o])})}if(!y(t,e,r)["_"+a])throw new Error('Unknown object type "'+a+'"');y(t,e,r)["_"+a](n)},_array:function(n){return t.update("array:"+n.length+":"),e.unorderedArrays!==!1&&(n=n.sort()),n.forEach(function(n){y(t,e,r).dispatch(n)})},_date:function(e){return t.update("date:"+e.toJSON())},_symbol:function(e){return t.update("symbol:"+e.toString(),"utf8")},_error:function(e){return t.update("error:"+e.toString(),"utf8")},_boolean:function(e){return t.update("bool:"+e.toString())},_string:function(e){return t.update("string:"+e,"utf8")},_function:function(r){return t.update("fn:"+r.toString(),"utf8"),e.respectFunctionProperties&&this._object(r),t},_number:function(e){return t.update("number:"+e.toString())},_xml:function(e){return t.update("xml:"+e.toString(),"utf8")},_null:function(){return t.update("Null")},_undefined:function(){return t.update("Undefined")},_regexp:function(e){return t.update("regex:"+e.toString(),"utf8")},_uint8array:function(n){return t.update("uint8array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_uint8clampedarray:function(n){return t.update("uint8clampedarray:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_int8array:function(n){return t.update("uint8array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_uint16array:function(n){return t.update("uint16array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_int16array:function(n){return t.update("uint16array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_uint32array:function(n){return t.update("uint32array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_int32array:function(n){return t.update("uint32array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_float32array:function(n){return t.update("float32array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_float64array:function(n){return t.update("float64array:"),y(t,e,r).dispatch(Array.prototype.slice.call(n))},_arraybuffer:function(n){return t.update("arraybuffer:"),y(t,e,r).dispatch(new Uint8Array(n))},_url:function(e){return t.update("url:"+e.toString(),"utf8")},_map:function(n){t.update("map:");var o=Array.from(n);return e.unorderedSets!==!1&&e.unorderedArrays===!1&&(o=o.sort()),y(t,e,r).dispatch(o)},_set:function(n){t.update("set:");var o=Array.from(n);return e.unorderedSets!==!1&&e.unorderedArrays===!1&&(o=o.sort()),y(t,e,r).dispatch(o)},_domwindow:function(){return t.update("domwindow")},_process:function(){return t.update("process")},_timer:function(){return t.update("timer")},_pipe:function(){return t.update("pipe")},_tcp:function(){return t.update("tcp")},_udp:function(){return t.update("udp")},_tty:function(){return t.update("tty")},_statwatcher:function(){return t.update("statwatcher")},_securecontext:function(){return t.update("securecontext")},_connection:function(){return t.update("connection")},_zlib:function(){return t.update("zlib")},_context:function(){return t.update("context")},_nodescript:function(){return t.update("nodescript")},_httpparser:function(){return t.update("httpparser")},_dataview:function(){return t.update("dataview")},_signal:function(){return t.update("signal")},_fsevent:function(){return t.update("fsevent")},_tlswrap:function(){return t.update("tlswrap")}}}var w=t("crypto");r=e.exports=d,r.sha1=function(t){return d(t)},r.keys=function(t){return d(t,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(t){return d(t,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(t){return d(t,{algorithm:"md5",encoding:"hex",excludeValues:!0})},r.HashTable=t("./lib/hashTable")}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/index.js","/")},{"./lib/hashTable":3,buffer:5,crypto:7,lYpoI2:12}],3:[function(t,e,r){(function(n,o,i,u,a,s,f,c,l){"use strict";function d(t){t=t||{},this.options=t,this._table={}}var p=t("../index");r=e.exports=d,d.prototype.add=function(){var t=this,e=Array.prototype.slice.call(arguments,0);return e.forEach(function(e){"[object Array]"===Object.prototype.toString.call(e)?e.forEach(function(e){t._addObject(e)}):t._addObject(e)}),this},d.prototype.remove=function(){var t=this,e=Array.prototype.slice.call(arguments,0);return e.forEach(function(e){"[object Array]"===Object.prototype.toString.call(e)?e.forEach(function(e){t._removeObject(e)}):t._removeObject(e)}),this},d.prototype._removeObject=function(t){var e=p(t,this.options),r=this.getCount(e);1>=r?delete this._table[e]:this._table[e].count=r-1},d.prototype._addObject=function(t){var e=p(t,this.options);this._table[e]?(this._table[e].count++,this.options.excludeValues&&this._table[e].value.push(t)):this._table[e]={value:this.options.excludeValues?[t]:t,count:1}},d.prototype.hasKey=function(t){return!!this._table[t]},d.prototype.getValue=function(t){return this._table[t]?this._table[t].value:void 0},d.prototype.getCount=function(t){return this._table[t]?this._table[t].count:0},d.prototype.table=function(){return this._table},d.prototype.toArray=function(){for(var t=Object.keys(this._table),e=[],r=0;r<t.length;r++)e.push({value:this._table[t[r]].value,count:this._table[t[r]].count,hash:t[r]});return e},d.prototype.reset=function(){return this._table={},this}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/lib/hashTable.js","/lib")},{"../index":2,buffer:5,lYpoI2:12}],4:[function(t,e,r){(function(t,e,n,o,i,u,a,s,f){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===i||e===l?62:e===u||e===d?63:a>e?-1:a+10>e?e-a+26+26:f+26>e?e-f:s+26>e?e-s+26:void 0}function r(t){function r(t){f[l++]=t}var n,i,u,a,s,f;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;s="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,f=new o(3*t.length/4-s),u=s>0?t.length-4:t.length;var l=0;for(n=0,i=0;u>n;n+=4,i+=3)a=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===s?(a=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&a)):1===s&&(a=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(a>>8&255),r(255&a)),f}function n(t){function e(t){return c.charAt(t)}function r(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var n,o,i,u=t.length%3,a="";for(n=0,i=t.length-u;i>n;n+=3)o=(t[n]<<16)+(t[n+1]<<8)+t[n+2],a+=r(o);switch(u){case 1:o=t[t.length-1],a+=e(o>>2),a+=e(o<<4&63),a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=e(o>>10),a+=e(o>>4&63),a+=e(o<<2&63),a+="="}return a}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="+".charCodeAt(0),u="/".charCodeAt(0),a="0".charCodeAt(0),s="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),d="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=n}("undefined"==typeof r?this.base64js={}:r)}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/base64-js/lib/b64.js","/node_modules/base64-js/lib")},{buffer:5,lYpoI2:12}],5:[function(t,e,r){(function(e,n,o,i,u,a,s,f,c){function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var n=typeof t;if("base64"===e&&"string"===n)for(t=Y(t);t.length%4!==0;)t+="=";var i;if("number"===n)i=N(t);else if("string"===n)i=o.byteLength(t,e);else{if("object"!==n)throw new Error("First argument needs to be a number, array or string.");i=N(t.length)}var u;o._useTypedArrays?u=o._augment(new Uint8Array(i)):(u=this,u.length=i,u._isBuffer=!0);var a;if(o._useTypedArrays&&"number"==typeof t.byteLength)u._set(t);else if(D(t))for(a=0;i>a;a++)o.isBuffer(t)?u[a]=t.readUInt8(a):u[a]=t[a];else if("string"===n)u.write(t,0,e);else if("number"===n&&!o._useTypedArrays&&!r)for(a=0;i>a;a++)u[a]=0;return u}function l(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var u=e.length;K(u%2===0,"Invalid hex string"),n>u/2&&(n=u/2);for(var a=0;n>a;a++){var s=parseInt(e.substr(2*a,2),16);K(!isNaN(s),"Invalid hex string"),t[r+a]=s}return o._charsWritten=2*a,a}function d(t,e,r,n){var i=o._charsWritten=z(H(e),t,r,n);return i}function p(t,e,r,n){var i=o._charsWritten=z(P(e),t,r,n);return i}function h(t,e,r,n){return p(t,e,r,n)}function g(t,e,r,n){var i=o._charsWritten=z(q(e),t,r,n);return i}function y(t,e,r,n){var i=o._charsWritten=z(R(e),t,r,n);return i}function w(t,e,r){return 0===e&&r===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(e,r))}function b(t,e,r){var n="",o="";r=Math.min(t.length,r);for(var i=e;r>i;i++)t[i]<=127?(n+=J(o)+String.fromCharCode(t[i]),o=""):o+="%"+t[i].toString(16);return n+J(o)}function m(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(t[o]);return n}function v(t,e,r){return m(t,e,r)}function _(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var o="",i=e;r>i;i++)o+=V(t[i]);return o}function E(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function A(t,e,r,n){n||(K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==e&&null!==e,"missing offset"),K(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return r?(i=t[e],o>e+1&&(i|=t[e+1]<<8)):(i=t[e]<<8,o>e+1&&(i|=t[e+1])),i}}function I(t,e,r,n){n||(K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==e&&null!==e,"missing offset"),K(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return r?(o>e+2&&(i=t[e+2]<<16),o>e+1&&(i|=t[e+1]<<8),i|=t[e],o>e+3&&(i+=t[e+3]<<24>>>0)):(o>e+1&&(i=t[e+1]<<16),o>e+2&&(i|=t[e+2]<<8),o>e+3&&(i|=t[e+3]),i+=t[e]<<24>>>0),i}}function B(t,e,r,n){n||(K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==e&&null!==e,"missing offset"),K(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i=A(t,e,r,!0),u=32768&i;return u?-1*(65535-i+1):i}}function x(t,e,r,n){n||(K("boolean"==typeof r,"missing or invalid endian"),K(void 0!==e&&null!==e,"missing offset"),K(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i=I(t,e,r,!0),u=2147483648&i;return u?-1*(4294967295-i+1):i}}function L(t,e,r,n){return n||(K("boolean"==typeof r,"missing or invalid endian"),K(e+3<t.length,"Trying to read beyond buffer length")),Q.read(t,e,r,23,4)}function S(t,e,r,n){return n||(K("boolean"==typeof r,"missing or invalid endian"),K(e+7<t.length,"Trying to read beyond buffer length")),Q.read(t,e,r,52,8)}function j(t,e,r,n,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==r&&null!==r,"missing offset"),K(r+1<t.length,"trying to write beyond buffer length"),W(e,65535));var i=t.length;if(!(r>=i))for(var u=0,a=Math.min(i-r,2);a>u;u++)t[r+u]=(e&255<<8*(n?u:1-u))>>>8*(n?u:1-u)}function U(t,e,r,n,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==r&&null!==r,"missing offset"),K(r+3<t.length,"trying to write beyond buffer length"),W(e,4294967295));var i=t.length;if(!(r>=i))for(var u=0,a=Math.min(i-r,4);a>u;u++)t[r+u]=e>>>8*(n?u:3-u)&255}function C(t,e,r,n,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==r&&null!==r,"missing offset"),K(r+1<t.length,"Trying to write beyond buffer length"),X(e,32767,-32768));var i=t.length;r>=i||(e>=0?j(t,e,r,n,o):j(t,65535+e+1,r,n,o))}function T(t,e,r,n,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==r&&null!==r,"missing offset"),K(r+3<t.length,"Trying to write beyond buffer length"),X(e,2147483647,-2147483648));var i=t.length;r>=i||(e>=0?U(t,e,r,n,o):U(t,4294967295+e+1,r,n,o))}function k(t,e,r,n,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==r&&null!==r,"missing offset"),K(r+3<t.length,"Trying to write beyond buffer length"),$(e,3.4028234663852886e38,-3.4028234663852886e38));var i=t.length;r>=i||Q.write(t,e,r,n,23,4)}function M(t,e,r,n,o){o||(K(void 0!==e&&null!==e,"missing value"),K("boolean"==typeof n,"missing or invalid endian"),K(void 0!==r&&null!==r,"missing offset"),K(r+7<t.length,"Trying to write beyond buffer length"),$(e,1.7976931348623157e308,-1.7976931348623157e308));var i=t.length;r>=i||Q.write(t,e,r,n,52,8)}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function O(t,e,r){return"number"!=typeof t?r:(t=~~t,t>=e?e:t>=0?t:(t+=e,t>=0?t:0))}function N(t){return t=~~Math.ceil(+t),0>t?0:t}function F(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function D(t){return F(t)||o.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function V(t){return 16>t?"0"+t.toString(16):t.toString(16)}function H(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);if(127>=n)e.push(t.charCodeAt(r));else{var o=r;n>=55296&&57343>=n&&r++;for(var i=encodeURIComponent(t.slice(o,r+1)).substr(1).split("%"),u=0;u<i.length;u++)e.push(parseInt(i[u],16))}}return e}function P(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e}function R(t){for(var e,r,n,o=[],i=0;i<t.length;i++)e=t.charCodeAt(i),r=e>>8,n=e%256,o.push(n),o.push(r);return o}function q(t){return G.toByteArray(t)}function z(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);o++)e[o+r]=t[o];return o}function J(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function W(t,e){K("number"==typeof t,"cannot write a non-number as a number"),K(t>=0,"specified a negative value for writing an unsigned value"),K(e>=t,"value is larger than maximum value for type"),K(Math.floor(t)===t,"value has a fractional component")}function X(t,e,r){K("number"==typeof t,"cannot write a non-number as a number"),K(e>=t,"value larger than maximum allowed value"),K(t>=r,"value smaller than minimum allowed value"),K(Math.floor(t)===t,"value has a fractional component")}function $(t,e,r){K("number"==typeof t,"cannot write a non-number as a number"),K(e>=t,"value larger than maximum allowed value"),K(t>=r,"value smaller than minimum allowed value")}function K(t,e){if(!t)throw new Error(e||"Failed assertion")}var G=t("base64-js"),Q=t("ieee754");r.Buffer=o,r.SlowBuffer=o,r.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(r){return!1}}(),o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},o.byteLength=function(t,e){var r;switch(t+="",e||"utf8"){case"hex":r=t.length/2;break;case"utf8":case"utf-8":r=H(t).length;break;case"ascii":case"binary":case"raw":r=t.length;break;case"base64":r=q(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*t.length;break;default:throw new Error("Unknown encoding")}return r},o.concat=function(t,e){if(K(F(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new o(0);if(1===t.length)return t[0];var r;if("number"!=typeof e)for(e=0,r=0;r<t.length;r++)e+=t[r].length;var n=new o(e),i=0;for(r=0;r<t.length;r++){var u=t[r];u.copy(n,i),i+=u.length}return n},o.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var o=n;n=e,e=r,r=o}e=Number(e)||0;var i=this.length-e;r?(r=Number(r),r>i&&(r=i)):r=i,n=String(n||"utf8").toLowerCase();var u;switch(n){case"hex":u=l(this,t,e,r);break;case"utf8":case"utf-8":u=d(this,t,e,r);break;case"ascii":u=p(this,t,e,r);break;case"binary":u=h(this,t,e,r);break;case"base64":u=g(this,t,e,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":u=y(this,t,e,r);break;default:throw new Error("Unknown encoding")}return u},o.prototype.toString=function(t,e,r){var n=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,r=void 0!==r?Number(r):r=n.length,r===e)return"";var o;switch(t){case"hex":o=_(n,e,r);break;case"utf8":case"utf-8":o=b(n,e,r);break;case"ascii":o=m(n,e,r);break;case"binary":o=v(n,e,r);break;case"base64":o=w(n,e,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=E(n,e,r);break;default:throw new Error("Unknown encoding")}return o},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),n||0===n||(n=this.length),e||(e=0),n!==r&&0!==t.length&&0!==i.length){K(n>=r,"sourceEnd < sourceStart"),K(e>=0&&e<t.length,"targetStart out of bounds"),K(r>=0&&r<i.length,"sourceStart out of bounds"),K(n>=0&&n<=i.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var u=n-r;if(100>u||!o._useTypedArrays)for(var a=0;u>a;a++)t[a+e]=this[a+r];else t._set(this.subarray(r,r+u),e)}},o.prototype.slice=function(t,e){var r=this.length;if(t=O(t,r,0),e=O(e,r,r),o._useTypedArrays)return o._augment(this.subarray(t,e));for(var n=e-t,i=new o(n,void 0,!0),u=0;n>u;u++)i[u]=this[u+t];return i},o.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},o.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},o.prototype.readUInt8=function(t,e){return e||(K(void 0!==t&&null!==t,"missing offset"),K(t<this.length,"Trying to read beyond buffer length")),t>=this.length?void 0:this[t]},o.prototype.readUInt16LE=function(t,e){return A(this,t,!0,e)},o.prototype.readUInt16BE=function(t,e){return A(this,t,!1,e)},o.prototype.readUInt32LE=function(t,e){return I(this,t,!0,e)},o.prototype.readUInt32BE=function(t,e){return I(this,t,!1,e)},o.prototype.readInt8=function(t,e){if(e||(K(void 0!==t&&null!==t,"missing offset"),K(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length)){var r=128&this[t];return r?-1*(255-this[t]+1):this[t]}},o.prototype.readInt16LE=function(t,e){return B(this,t,!0,e)},o.prototype.readInt16BE=function(t,e){return B(this,t,!1,e)},o.prototype.readInt32LE=function(t,e){return x(this,t,!0,e)},o.prototype.readInt32BE=function(t,e){return x(this,t,!1,e)},o.prototype.readFloatLE=function(t,e){return L(this,t,!0,e)},o.prototype.readFloatBE=function(t,e){return L(this,t,!1,e)},o.prototype.readDoubleLE=function(t,e){return S(this,t,!0,e)},o.prototype.readDoubleBE=function(t,e){return S(this,t,!1,e)},o.prototype.writeUInt8=function(t,e,r){r||(K(void 0!==t&&null!==t,"missing value"),K(void 0!==e&&null!==e,"missing offset"),K(e<this.length,"trying to write beyond buffer length"),W(t,255)),e>=this.length||(this[e]=t)},o.prototype.writeUInt16LE=function(t,e,r){j(this,t,e,!0,r)},o.prototype.writeUInt16BE=function(t,e,r){j(this,t,e,!1,r)},o.prototype.writeUInt32LE=function(t,e,r){U(this,t,e,!0,r)},o.prototype.writeUInt32BE=function(t,e,r){U(this,t,e,!1,r)},o.prototype.writeInt8=function(t,e,r){r||(K(void 0!==t&&null!==t,"missing value"),K(void 0!==e&&null!==e,"missing offset"),K(e<this.length,"Trying to write beyond buffer length"),X(t,127,-128)),e>=this.length||(t>=0?this.writeUInt8(t,e,r):this.writeUInt8(255+t+1,e,r))},o.prototype.writeInt16LE=function(t,e,r){C(this,t,e,!0,r)},o.prototype.writeInt16BE=function(t,e,r){C(this,t,e,!1,r)},o.prototype.writeInt32LE=function(t,e,r){T(this,t,e,!0,r)},o.prototype.writeInt32BE=function(t,e,r){T(this,t,e,!1,r)},o.prototype.writeFloatLE=function(t,e,r){k(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){k(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){M(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){M(this,t,e,!1,r)},o.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),K("number"==typeof t&&!isNaN(t),"value is not a number"),K(r>=e,"end < start"),r!==e&&0!==this.length){K(e>=0&&e<this.length,"start out of bounds"),K(r>=0&&r<=this.length,"end out of bounds");for(var n=e;r>n;n++)this[n]=t}},o.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=V(this[n]),n===r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var t=new Uint8Array(this.length),e=0,r=t.length;r>e;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var Z=o.prototype;o._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=Z.get,t.set=Z.set,t.write=Z.write,t.toString=Z.toString,t.toLocaleString=Z.toString,t.toJSON=Z.toJSON,t.copy=Z.copy,t.slice=Z.slice,t.readUInt8=Z.readUInt8,t.readUInt16LE=Z.readUInt16LE,t.readUInt16BE=Z.readUInt16BE,t.readUInt32LE=Z.readUInt32LE,t.readUInt32BE=Z.readUInt32BE,t.readInt8=Z.readInt8,t.readInt16LE=Z.readInt16LE,t.readInt16BE=Z.readInt16BE,t.readInt32LE=Z.readInt32LE,t.readInt32BE=Z.readInt32BE,t.readFloatLE=Z.readFloatLE,t.readFloatBE=Z.readFloatBE,t.readDoubleLE=Z.readDoubleLE,t.readDoubleBE=Z.readDoubleBE,t.writeUInt8=Z.writeUInt8,t.writeUInt16LE=Z.writeUInt16LE,t.writeUInt16BE=Z.writeUInt16BE,t.writeUInt32LE=Z.writeUInt32LE,t.writeUInt32BE=Z.writeUInt32BE,t.writeInt8=Z.writeInt8,t.writeInt16LE=Z.writeInt16LE,t.writeInt16BE=Z.writeInt16BE,t.writeInt32LE=Z.writeInt32LE,t.writeInt32BE=Z.writeInt32BE,t.writeFloatLE=Z.writeFloatLE,t.writeFloatBE=Z.writeFloatBE,t.writeDoubleLE=Z.writeDoubleLE,t.writeDoubleBE=Z.writeDoubleBE,t.fill=Z.fill,t.inspect=Z.inspect,t.toArrayBuffer=Z.toArrayBuffer,t}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":4,buffer:5,ieee754:13,lYpoI2:12}],6:[function(t,e,r){(function(r,n,o,i,u,a,s,f,c){function l(t,e){if(t.length%h!==0){var r=t.length+(h-t.length%h);t=o.concat([t,g],r)}for(var n=[],i=e?t.readInt32BE:t.readInt32LE,u=0;u<t.length;u+=h)n.push(i.call(t,u));return n}function d(t,e,r){for(var n=new o(e),i=r?n.writeInt32BE:n.writeInt32LE,u=0;u<t.length;u++)i.call(n,t[u],4*u,!0);return n}function p(t,e,r,n){o.isBuffer(t)||(t=new o(t));var i=e(l(t,n),t.length*y);return d(i,r,n)}var o=t("buffer").Buffer,h=4,g=new o(h);g.fill(0);var y=8;e.exports={hash:p}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:5,lYpoI2:12}],7:[function(t,e,r){(function(e,n,o,i,u,a,s,f,c){function l(t,e,r){o.isBuffer(e)||(e=new o(e)),o.isBuffer(r)||(r=new o(r)),e.length>v?e=t(e):e.length<v&&(e=o.concat([e,_],v));for(var n=new o(v),i=new o(v),u=0;v>u;u++)n[u]=54^e[u],i[u]=92^e[u];var a=t(o.concat([n,r]));return t(o.concat([i,a]))}function d(t,e){t=t||"sha1";var r=m[t],n=[],i=0;return r||p("algorithm:",t,"is not yet supported"),{update:function(t){return o.isBuffer(t)||(t=new o(t)),n.push(t),i+=t.length,this},digest:function(t){var i=o.concat(n),u=e?l(r,e,i):r(i);return n=null,t?u.toString(t):u}}}function p(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n")); | ||
}function h(t,e){for(var r in t)e(t[r],r)}var o=t("buffer").Buffer,g=t("./sha"),y=t("./sha256"),w=t("./rng"),b=t("./md5"),m={sha1:g,sha256:y,md5:b},v=64,_=new o(v);_.fill(0),r.createHash=function(t){return d(t)},r.createHmac=function(t,e){return d(t,e)},r.randomBytes=function(t,e){if(!e||!e.call)return new o(w(t));try{e.call(this,void 0,new o(w(t)))}catch(r){e(r)}},h(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(t){r[t]=function(){p("sorry,",t,"is not implemented yet")}})}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":8,"./rng":9,"./sha":10,"./sha256":11,buffer:5,lYpoI2:12}],8:[function(t,e,r){(function(r,n,o,i,u,a,s,f,c){function l(t,e){t[e>>5]|=128<<e%32,t[(e+64>>>9<<4)+14]=e;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,u=0;u<t.length;u+=16){var a=r,s=n,f=o,c=i;r=p(r,n,o,i,t[u+0],7,-680876936),i=p(i,r,n,o,t[u+1],12,-389564586),o=p(o,i,r,n,t[u+2],17,606105819),n=p(n,o,i,r,t[u+3],22,-1044525330),r=p(r,n,o,i,t[u+4],7,-176418897),i=p(i,r,n,o,t[u+5],12,1200080426),o=p(o,i,r,n,t[u+6],17,-1473231341),n=p(n,o,i,r,t[u+7],22,-45705983),r=p(r,n,o,i,t[u+8],7,1770035416),i=p(i,r,n,o,t[u+9],12,-1958414417),o=p(o,i,r,n,t[u+10],17,-42063),n=p(n,o,i,r,t[u+11],22,-1990404162),r=p(r,n,o,i,t[u+12],7,1804603682),i=p(i,r,n,o,t[u+13],12,-40341101),o=p(o,i,r,n,t[u+14],17,-1502002290),n=p(n,o,i,r,t[u+15],22,1236535329),r=h(r,n,o,i,t[u+1],5,-165796510),i=h(i,r,n,o,t[u+6],9,-1069501632),o=h(o,i,r,n,t[u+11],14,643717713),n=h(n,o,i,r,t[u+0],20,-373897302),r=h(r,n,o,i,t[u+5],5,-701558691),i=h(i,r,n,o,t[u+10],9,38016083),o=h(o,i,r,n,t[u+15],14,-660478335),n=h(n,o,i,r,t[u+4],20,-405537848),r=h(r,n,o,i,t[u+9],5,568446438),i=h(i,r,n,o,t[u+14],9,-1019803690),o=h(o,i,r,n,t[u+3],14,-187363961),n=h(n,o,i,r,t[u+8],20,1163531501),r=h(r,n,o,i,t[u+13],5,-1444681467),i=h(i,r,n,o,t[u+2],9,-51403784),o=h(o,i,r,n,t[u+7],14,1735328473),n=h(n,o,i,r,t[u+12],20,-1926607734),r=g(r,n,o,i,t[u+5],4,-378558),i=g(i,r,n,o,t[u+8],11,-2022574463),o=g(o,i,r,n,t[u+11],16,1839030562),n=g(n,o,i,r,t[u+14],23,-35309556),r=g(r,n,o,i,t[u+1],4,-1530992060),i=g(i,r,n,o,t[u+4],11,1272893353),o=g(o,i,r,n,t[u+7],16,-155497632),n=g(n,o,i,r,t[u+10],23,-1094730640),r=g(r,n,o,i,t[u+13],4,681279174),i=g(i,r,n,o,t[u+0],11,-358537222),o=g(o,i,r,n,t[u+3],16,-722521979),n=g(n,o,i,r,t[u+6],23,76029189),r=g(r,n,o,i,t[u+9],4,-640364487),i=g(i,r,n,o,t[u+12],11,-421815835),o=g(o,i,r,n,t[u+15],16,530742520),n=g(n,o,i,r,t[u+2],23,-995338651),r=y(r,n,o,i,t[u+0],6,-198630844),i=y(i,r,n,o,t[u+7],10,1126891415),o=y(o,i,r,n,t[u+14],15,-1416354905),n=y(n,o,i,r,t[u+5],21,-57434055),r=y(r,n,o,i,t[u+12],6,1700485571),i=y(i,r,n,o,t[u+3],10,-1894986606),o=y(o,i,r,n,t[u+10],15,-1051523),n=y(n,o,i,r,t[u+1],21,-2054922799),r=y(r,n,o,i,t[u+8],6,1873313359),i=y(i,r,n,o,t[u+15],10,-30611744),o=y(o,i,r,n,t[u+6],15,-1560198380),n=y(n,o,i,r,t[u+13],21,1309151649),r=y(r,n,o,i,t[u+4],6,-145523070),i=y(i,r,n,o,t[u+11],10,-1120210379),o=y(o,i,r,n,t[u+2],15,718787259),n=y(n,o,i,r,t[u+9],21,-343485551),r=w(r,a),n=w(n,s),o=w(o,f),i=w(i,c)}return Array(r,n,o,i)}function d(t,e,r,n,o,i){return w(b(w(w(e,t),w(n,i)),o),r)}function p(t,e,r,n,o,i,u){return d(e&r|~e&n,t,e,o,i,u)}function h(t,e,r,n,o,i,u){return d(e&n|r&~n,t,e,o,i,u)}function g(t,e,r,n,o,i,u){return d(e^r^n,t,e,o,i,u)}function y(t,e,r,n,o,i,u){return d(r^(e|~n),t,e,o,i,u)}function w(t,e){var r=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(r>>16);return n<<16|65535&r}function b(t,e){return t<<e|t>>>32-e}var m=t("./helpers");e.exports=function(t){return m.hash(t,l,16)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":6,buffer:5,lYpoI2:12}],9:[function(t,e,r){(function(t,r,n,o,i,u,a,s,f){!function(){var t,r,n=this;t=function(t){for(var e,e,r=new Array(t),n=0;t>n;n++)0==(3&n)&&(e=4294967296*Math.random()),r[n]=e>>>((3&n)<<3)&255;return r},n.crypto&&crypto.getRandomValues&&(r=function(t){var e=new Uint8Array(t);return crypto.getRandomValues(e),e}),e.exports=r||t}()}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:5,lYpoI2:12}],10:[function(t,e,r){(function(r,n,o,i,u,a,s,f,c){function l(t,e){t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var r=Array(80),n=1732584193,o=-271733879,i=-1732584194,u=271733878,a=-1009589776,s=0;s<t.length;s+=16){for(var f=n,c=o,l=i,y=u,w=a,b=0;80>b;b++){16>b?r[b]=t[s+b]:r[b]=g(r[b-3]^r[b-8]^r[b-14]^r[b-16],1);var m=h(h(g(n,5),d(b,o,i,u)),h(h(a,r[b]),p(b)));a=u,u=i,i=g(o,30),o=n,n=m}n=h(n,f),o=h(o,c),i=h(i,l),u=h(u,y),a=h(a,w)}return Array(n,o,i,u,a)}function d(t,e,r,n){return 20>t?e&r|~e&n:40>t?e^r^n:60>t?e&r|e&n|r&n:e^r^n}function p(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function h(t,e){var r=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(r>>16);return n<<16|65535&r}function g(t,e){return t<<e|t>>>32-e}var y=t("./helpers");e.exports=function(t){return y.hash(t,l,20,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":6,buffer:5,lYpoI2:12}],11:[function(t,e,r){(function(r,n,o,i,u,a,s,f,c){var l=t("./helpers"),d=function(t,e){var r=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(r>>16);return n<<16|65535&r},p=function(t,e){return t>>>e|t<<32-e},h=function(t,e){return t>>>e},g=function(t,e,r){return t&e^~t&r},y=function(t,e,r){return t&e^t&r^e&r},w=function(t){return p(t,2)^p(t,13)^p(t,22)},b=function(t){return p(t,6)^p(t,11)^p(t,25)},m=function(t){return p(t,7)^p(t,18)^h(t,3)},v=function(t){return p(t,17)^p(t,19)^h(t,10)},_=function(t,e){var r,n,o,i,u,a,s,f,c,l,p,h,_=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),E=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),A=new Array(64);t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var c=0;c<t.length;c+=16){r=E[0],n=E[1],o=E[2],i=E[3],u=E[4],a=E[5],s=E[6],f=E[7];for(var l=0;64>l;l++)16>l?A[l]=t[l+c]:A[l]=d(d(d(v(A[l-2]),A[l-7]),m(A[l-15])),A[l-16]),p=d(d(d(d(f,b(u)),g(u,a,s)),_[l]),A[l]),h=d(w(r),y(r,n,o)),f=s,s=a,a=u,u=d(i,p),i=o,o=n,n=r,r=d(p,h);E[0]=d(r,E[0]),E[1]=d(n,E[1]),E[2]=d(o,E[2]),E[3]=d(i,E[3]),E[4]=d(u,E[4]),E[5]=d(a,E[5]),E[6]=d(s,E[6]),E[7]=d(f,E[7])}return E};e.exports=function(t){return l.hash(t,_,32,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":6,buffer:5,lYpoI2:12}],12:[function(t,e,r){(function(t,r,n,o,i,u,a,s,f){function c(){}var t=e.exports={};t.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var n=r.shift();n()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=c,t.addListener=c,t.once=c,t.off=c,t.removeListener=c,t.removeAllListeners=c,t.emit=c,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:5,lYpoI2:12}],13:[function(t,e,r){(function(t,e,n,o,i,u,a,s,f){r.read=function(t,e,r,n,o){var i,u,a=8*o-n-1,s=(1<<a)-1,f=s>>1,c=-7,l=r?o-1:0,d=r?-1:1,p=t[e+l];for(l+=d,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+t[e+l],l+=d,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=n;c>0;u=256*u+t[e+l],l+=d,c-=8);if(0===i)i=1-f;else{if(i===s)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,n),i-=f}return(p?-1:1)*u*Math.pow(2,i-n)},r.write=function(t,e,r,n,o,i){var u,a,s,f=8*i-o-1,c=(1<<f)-1,l=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),e+=u+l>=1?d/s:d*Math.pow(2,1-l),e*s>=2&&(u++,s/=2),u+l>=c?(a=0,u=c):u+l>=1?(a=(e*s-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=h,a/=256,o-=8);for(u=u<<o|a,f+=o;f>0;t[r+p]=255&u,p+=h,u/=256,f-=8);t[r+p-h]|=128*g}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:5,lYpoI2:12}]},{},[1])(1)}); |
14
index.js
@@ -17,2 +17,3 @@ 'use strict'; | ||
* - `unorderedArrays` {true|*false} Sort all arrays before hashing | ||
* - `unorderedSets` {true|*false} Sort `Set` and `Map` instances before hashing | ||
* * = default | ||
@@ -37,2 +38,3 @@ * | ||
options.unorderedArrays = options.unorderedArrays !== true ? false : true; // default to false | ||
options.unorderedSets = options.unorderedSets !== true ? false : true; // default to false | ||
@@ -262,7 +264,15 @@ validate(object, options); | ||
hashFn.update('map:'); | ||
return typeHasher(hashFn, options, context).dispatch(Array.from(map)); | ||
var arr = Array.from(map); | ||
if (options.unorderedSets !== false && options.unorderedArrays === false) { | ||
arr = arr.sort(); | ||
} | ||
return typeHasher(hashFn, options, context).dispatch(arr); | ||
}, | ||
_set: function(set) { | ||
hashFn.update('set:'); | ||
return typeHasher(hashFn, options, context).dispatch(Array.from(set)); | ||
var arr = Array.from(set); | ||
if (options.unorderedSets !== false && options.unorderedArrays === false) { | ||
arr = arr.sort(); | ||
} | ||
return typeHasher(hashFn, options, context).dispatch(arr); | ||
}, | ||
@@ -269,0 +279,0 @@ _domwindow: function() { return hashFn.update('domwindow'); }, |
{ | ||
"name": "object-hash", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "Generate hashes from javascript objects in node and the browser.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/puleos/object-hash", |
@@ -314,2 +314,20 @@ var assert = require('assert'); | ||
if (typeof Set !== 'undefined') { | ||
it('unorderedSets = false', function() { | ||
ha = hash(new Set([1, 2, 3])); | ||
hb = hash(new Set([3, 2, 1])); | ||
assert.notEqual(ha, hb, 'Hashing should respect the order of Set entries'); | ||
}); | ||
it('unorderedSets = true', function() { | ||
var opt = { unorderedSets: true }; | ||
ha = hash(new Set([1, 2, 3]), opt); | ||
hb = hash(new Set([3, 2, 1]), opt); | ||
assert.equal(ha, hb, 'Hashing should not respect the order of Set entries'); | ||
}); | ||
} | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
246749
4092
190