forked from adrai/enum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenum-2.2.0.min.js
1 lines (1 loc) · 26.5 KB
/
enum-2.2.0.min.js
1
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Enum=e()}}(function(){return function e(t,n,r){function i(s,u){if(!n[s]){if(!t[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var f=n[s]={exports:{}};t[s][0].call(f.exports,function(e){var n=t[s][1][e];return i(n?n:e)},f,f.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t){(function(n,r,i){"use strict";function o(e,t){if(e&&"name"===t||d.call(g,t)>=0)throw new Error("Enum key "+t+" is a reserved word!")}var s=function(e){return e&&e.__esModule?e["default"]:e},u=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=s(e("os")),f=s(e("./enumItem")),l=e("./isType").isString,d=e("./indexOf").indexOf,c=a.endianness(),h=function(){function e(t,n){var r=this;if(u(this,e),this.size=4,this.indirection=1,n&&l(n)&&(n={name:n}),this._options=n||{},this._options.separator=this._options.separator||" | ",this._options.endianness=this._options.endianness||c,this._options.ignoreCase=this._options.ignoreCase||!1,this._options.freez=this._options.freez||!1,this.enums=[],t.length){var i=t;t={};for(var s=0;s<i.length;s++)t[i[s]]=Math.pow(2,s)}for(var a in t)o(this._options.name,a),this[a]=new f(a,t[a],{ignoreCase:this._options.ignoreCase}),this.enums.push(this[a]);this._enumMap=t,this._options.ignoreCase&&(this.getLowerCaseEnums=function(){for(var e={},t=0,n=this.enums.length;n>t;t++)e[this.enums[t].key.toLowerCase()]=this.enums[t];return e}),this._options.name&&(this.name=this._options.name);var d=function(){for(var e=0,t=r.enums.length;t>e;e++){var n=r.enums[e];if(0===n.value||n.value&n.value-1)return!1}return!0};this.isFlaggable=d(),this._options.freez&&this.freezeEnums()}return e.prototype.getKey=function(e){var t=this.get(e);return t?t.key:void 0},e.prototype.getValue=function(e){var t=this.get(e);return t?t.value:void 0},e.prototype.get=function(e,t){if(null!==e&&void 0!==e){if(i.isBuffer(e)&&(e=e["readUInt32"+this._options.endianness](t||0)),f.isEnumItem(e)){var n=d.call(this.enums,e);if(n>=0)return e;if(!this.isFlaggable||this.isFlaggable&&e.key.indexOf(this._options.separator)<0)return;return this.get(e.key)}if(l(e)){var r=this;if(this._options.ignoreCase&&(r=this.getLowerCaseEnums(),e=e.toLowerCase()),e.indexOf(this._options.separator)>0){for(var o=e.split(this._options.separator),s=0,u=0;u<o.length;u++){var a=o[u];s|=r[a].value}return new f(e,s)}return r[e]}for(var c in this)if(this.hasOwnProperty(c)&&this[c].value===e)return this[c];var h=null;if(this.isFlaggable)for(var g in this)this.hasOwnProperty(g)&&0!==(e&this[g].value)&&(h?h+=this._options.separator:h="",h+=g);return this.get(h||null)}},e.prototype.set=function(e,t,n){var r=this.get(n);return r?e["writeUInt32"+this._options.endianness](r.value,t||0):void 0},e.prototype.freezeEnums=function(){function e(){return Object.isFrozen&&Object.isSealed&&Object.getOwnPropertyNames&&Object.getOwnPropertyDescriptor&&Object.defineProperties&&Object.__defineGetter__&&Object.__defineSetter__}function t(e){var t=Object.getOwnPropertyNames(e);return t.forEach(function(t){Object.getOwnPropertyDescriptor(e,t).configurable&&Object.defineProperties(e,t,{writable:!1,configurable:!1})}),e}function n(e){return e}function r(e){if("object"==typeof e&&null!==e&&!Object.isFrozen(e)&&!Object.isSealed(e)){for(var i in e)e.hasOwnProperty(i)&&(e.__defineGetter__(i,n.bind(null,e[i])),e.__defineSetter__(i,function(){throw TypeError("Cannot redefine property; Enum Type is not extensible.")}),r(e[i]));Object.freeze?Object.freeze(e):t(e)}}return e()&&r(this),this},e.prototype.toJSON=function(){return this._enumMap},e.register=function(){var t=void 0===arguments[0]?"Enum":arguments[0];r[t]||(r[t]=e)},e}();t.exports=h;var g=["_options","get","getKey","getValue","enums","isFlaggable","_enumMap","toJSON"]}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/dist/enum.js","/dist")},{"./enumItem":2,"./indexOf":3,"./isType":4,IrXUsu:10,buffer:6,os:9}],2:[function(e,t){(function(){"use strict";var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=e("./isType"),i=r.isObject,o=r.isString,s=function(){function e(t,r){var i=void 0===arguments[2]?{}:arguments[2];n(this,e),this.key=t,this.value=r,this._options=i,this._options.ignoreCase=this._options.ignoreCase||!1}return e.prototype.has=function(t){return e.isEnumItem(t)?0!==(this.value&t.value):o(t)?this._options.ignoreCase?this.key.toLowerCase().indexOf(t.toLowerCase())>=0:this.key.indexOf(t)>=0:0!==(this.value&t)},e.prototype.is=function(t){return e.isEnumItem(t)?this.key===t.key:o(t)?this._options.ignoreCase?this.key.toLowerCase()===t.toLowerCase():this.key===t:this.value===t},e.prototype.toString=function(){return this.key},e.prototype.toJSON=function(){return this.key},e.prototype.valueOf=function(){return this.value},e.isEnumItem=function(t){return t instanceof e||i(t)&&void 0!==t.key&&void 0!==t.value},e}();t.exports=s}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/dist/enumItem.js","/dist")},{"./isType":4,IrXUsu:10,buffer:6}],3:[function(e,t,n){(function(){"use strict";n.indexOf=Array.prototype.indexOf||function(e,t){void 0===t&&(t=0),0>t&&(t+=this.length),0>t&&(t=0);for(var n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};n.__esModule=!0}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/dist/indexOf.js","/dist")},{IrXUsu:10,buffer:6}],4:[function(e,t,n){(function(){"use strict";{var e=n.isType=function(e,t){return typeof t===e};n.isObject=function(t){return e("object",t)},n.isString=function(t){return e("string",t)}}n.__esModule=!0}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/dist/isType.js","/dist")},{IrXUsu:10,buffer:6}],5:[function(e,t){(function(){t.exports=e("./dist/enum")}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_25bdceec.js","/")},{"./dist/enum":1,IrXUsu:10,buffer:6}],6:[function(e,t,n){(function(t,r,i){function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r=typeof e;if("base64"===t&&"string"===r)for(e=k(e);e.length%4!==0;)e+="=";var o;if("number"===r)o=j(e);else if("string"===r)o=i.byteLength(e,t);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");o=j(e.length)}var s;i._useTypedArrays?s=i._augment(new Uint8Array(o)):(s=this,s.length=o,s._isBuffer=!0);var u;if(i._useTypedArrays&&"number"==typeof e.byteLength)s._set(e);else if(T(e))for(u=0;o>u;u++)s[u]=i.isBuffer(e)?e.readUInt8(u):e[u];else if("string"===r)s.write(e,0,t);else if("number"===r&&!i._useTypedArrays&&!n)for(u=0;o>u;u++)s[u]=0;return s}function o(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var s=t.length;W(s%2===0,"Invalid hex string"),r>s/2&&(r=s/2);for(var u=0;r>u;u++){var a=parseInt(t.substr(2*u,2),16);W(!isNaN(a),"Invalid hex string"),e[n+u]=a}return i._charsWritten=2*u,u}function s(e,t,n,r){var o=i._charsWritten=D(M(t),e,n,r);return o}function u(e,t,n,r){var o=i._charsWritten=D(N(t),e,n,r);return o}function a(e,t,n,r){return u(e,t,n,r)}function f(e,t,n,r){var o=i._charsWritten=D(F(t),e,n,r);return o}function l(e,t,n,r){var o=i._charsWritten=D(X(t),e,n,r);return o}function d(e,t,n){return q.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function c(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;n>o;o++)e[o]<=127?(r+=P(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+P(i)}function h(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;i++)r+=String.fromCharCode(e[i]);return r}function g(e,t,n){return h(e,t,n)}function p(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;n>o;o++)i+=x(e[o]);return i}function y(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function m(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+1<e.length,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o;return n?(o=e[t],i>t+1&&(o|=e[t+1]<<8)):(o=e[t]<<8,i>t+1&&(o|=e[t+1])),o}}function w(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+3<e.length,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o;return n?(i>t+2&&(o=e[t+2]<<16),i>t+1&&(o|=e[t+1]<<8),o|=e[t],i>t+3&&(o+=e[t+3]<<24>>>0)):(i>t+1&&(o=e[t+1]<<16),i>t+2&&(o|=e[t+2]<<8),i>t+3&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}}function b(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+1<e.length,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o=m(e,t,n,!0),s=32768&o;return s?-1*(65535-o+1):o}}function v(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+3<e.length,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o=w(e,t,n,!0),s=2147483648&o;return s?-1*(4294967295-o+1):o}}function _(e,t,n,r){return r||(W("boolean"==typeof n,"missing or invalid endian"),W(t+3<e.length,"Trying to read beyond buffer length")),G.read(e,t,n,23,4)}function E(e,t,n,r){return r||(W("boolean"==typeof n,"missing or invalid endian"),W(t+7<e.length,"Trying to read beyond buffer length")),G.read(e,t,n,52,8)}function I(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(n+1<e.length,"trying to write beyond buffer length"),z(t,65535));var o=e.length;if(!(n>=o))for(var s=0,u=Math.min(o-n,2);u>s;s++)e[n+s]=(t&255<<8*(r?s:1-s))>>>8*(r?s:1-s)}function B(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(n+3<e.length,"trying to write beyond buffer length"),z(t,4294967295));var o=e.length;if(!(n>=o))for(var s=0,u=Math.min(o-n,4);u>s;s++)e[n+s]=t>>>8*(r?s:3-s)&255}function U(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(n+1<e.length,"Trying to write beyond buffer length"),J(t,32767,-32768));var o=e.length;n>=o||(t>=0?I(e,t,n,r,i):I(e,65535+t+1,n,r,i))}function A(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(n+3<e.length,"Trying to write beyond buffer length"),J(t,2147483647,-2147483648));var o=e.length;n>=o||(t>=0?B(e,t,n,r,i):B(e,4294967295+t+1,n,r,i))}function L(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(n+3<e.length,"Trying to write beyond buffer length"),V(t,3.4028234663852886e38,-3.4028234663852886e38));var o=e.length;n>=o||G.write(e,t,n,r,23,4)}function C(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(n+7<e.length,"Trying to write beyond buffer length"),V(t,1.7976931348623157e308,-1.7976931348623157e308));var o=e.length;n>=o||G.write(e,t,n,r,52,8)}function k(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function O(e,t,n){return"number"!=typeof e?n:(e=~~e,e>=t?t:e>=0?e:(e+=t,e>=0?e:0))}function j(e){return e=~~Math.ceil(+e),0>e?0:e}function S(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function T(e){return S(e)||i.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function x(e){return 16>e?"0"+e.toString(16):e.toString(16)}function M(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(127>=r)t.push(e.charCodeAt(n));else{var i=n;r>=55296&&57343>=r&&n++;for(var o=encodeURIComponent(e.slice(i,n+1)).substr(1).split("%"),s=0;s<o.length;s++)t.push(parseInt(o[s],16))}}return t}function N(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function X(e){for(var t,n,r,i=[],o=0;o<e.length;o++)t=e.charCodeAt(o),n=t>>8,r=t%256,i.push(r),i.push(n);return i}function F(e){return q.toByteArray(e)}function D(e,t,n,r){for(var i=0;r>i&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function P(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}function z(e,t){W("number"==typeof e,"cannot write a non-number as a number"),W(e>=0,"specified a negative value for writing an unsigned value"),W(t>=e,"value is larger than maximum value for type"),W(Math.floor(e)===e,"value has a fractional component")}function J(e,t,n){W("number"==typeof e,"cannot write a non-number as a number"),W(t>=e,"value larger than maximum allowed value"),W(e>=n,"value smaller than minimum allowed value"),W(Math.floor(e)===e,"value has a fractional component")}function V(e,t,n){W("number"==typeof e,"cannot write a non-number as a number"),W(t>=e,"value larger than maximum allowed value"),W(e>=n,"value smaller than minimum allowed value")}function W(e,t){if(!e)throw new Error(t||"Failed assertion")}var q=e("base64-js"),G=e("ieee754");n.Buffer=i,n.SlowBuffer=i,n.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(n){return!1}}(),i.isEncoding=function(e){switch(String(e).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}},i.isBuffer=function(e){return!(null===e||void 0===e||!e._isBuffer)},i.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=M(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=F(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},i.concat=function(e,t){if(W(S(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];var n;if("number"!=typeof t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new i(t),o=0;for(n=0;n<e.length;n++){var s=e[n];s.copy(r,o),o+=s.length}return r},i.prototype.write=function(e,t,n,r){if(isFinite(t))isFinite(n)||(r=n,n=void 0);else{var i=r;r=t,t=n,n=i}t=Number(t)||0;var d=this.length-t;n?(n=Number(n),n>d&&(n=d)):n=d,r=String(r||"utf8").toLowerCase();var c;switch(r){case"hex":c=o(this,e,t,n);break;case"utf8":case"utf-8":c=s(this,e,t,n);break;case"ascii":c=u(this,e,t,n);break;case"binary":c=a(this,e,t,n);break;case"base64":c=f(this,e,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":c=l(this,e,t,n);break;default:throw new Error("Unknown encoding")}return c},i.prototype.toString=function(e,t,n){var r=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,n=void 0!==n?Number(n):n=r.length,n===t)return"";var i;switch(e){case"hex":i=p(r,t,n);break;case"utf8":case"utf-8":i=c(r,t,n);break;case"ascii":i=h(r,t,n);break;case"binary":i=g(r,t,n);break;case"base64":i=d(r,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=y(r,t,n);break;default:throw new Error("Unknown encoding")}return i},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,n,r){var o=this;if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==o.length){W(r>=n,"sourceEnd < sourceStart"),W(t>=0&&t<e.length,"targetStart out of bounds"),W(n>=0&&n<o.length,"sourceStart out of bounds"),W(r>=0&&r<=o.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var s=r-n;if(100>s||!i._useTypedArrays)for(var u=0;s>u;u++)e[u+t]=this[u+n];else e._set(this.subarray(n,n+s),t)}},i.prototype.slice=function(e,t){var n=this.length;if(e=O(e,n,0),t=O(t,n,n),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var r=t-e,o=new i(r,void 0,!0),s=0;r>s;s++)o[s]=this[s+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){return t||(W(void 0!==e&&null!==e,"missing offset"),W(e<this.length,"Trying to read beyond buffer length")),e>=this.length?void 0:this[e]},i.prototype.readUInt16LE=function(e,t){return m(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return m(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return w(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return w(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(W(void 0!==e&&null!==e,"missing offset"),W(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length)){var n=128&this[e];return n?-1*(255-this[e]+1):this[e]}},i.prototype.readInt16LE=function(e,t){return b(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return b(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return v(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return v(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return _(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return _(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return E(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return E(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(W(void 0!==e&&null!==e,"missing value"),W(void 0!==t&&null!==t,"missing offset"),W(t<this.length,"trying to write beyond buffer length"),z(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){I(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){I(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){B(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){B(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(W(void 0!==e&&null!==e,"missing value"),W(void 0!==t&&null!==t,"missing offset"),W(t<this.length,"Trying to write beyond buffer length"),J(e,127,-128)),t>=this.length||(e>=0?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){U(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){U(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){A(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){A(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){L(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){L(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){C(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){C(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),W("number"==typeof e&&!isNaN(e),"value is not a number"),W(n>=t,"end < start"),n!==t&&0!==this.length){W(t>=0&&t<this.length,"start out of bounds"),W(n>=0&&n<=this.length,"end out of bounds");for(var r=t;n>r;r++)this[r]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,r=0;t>r;r++)if(e[r]=x(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var K=i.prototype;i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=K.get,e.set=K.set,e.write=K.write,e.toString=K.toString,e.toLocaleString=K.toString,e.toJSON=K.toJSON,e.copy=K.copy,e.slice=K.slice,e.readUInt8=K.readUInt8,e.readUInt16LE=K.readUInt16LE,e.readUInt16BE=K.readUInt16BE,e.readUInt32LE=K.readUInt32LE,e.readUInt32BE=K.readUInt32BE,e.readInt8=K.readInt8,e.readInt16LE=K.readInt16LE,e.readInt16BE=K.readInt16BE,e.readInt32LE=K.readInt32LE,e.readInt32BE=K.readInt32BE,e.readFloatLE=K.readFloatLE,e.readFloatBE=K.readFloatBE,e.readDoubleLE=K.readDoubleLE,e.readDoubleBE=K.readDoubleBE,e.writeUInt8=K.writeUInt8,e.writeUInt16LE=K.writeUInt16LE,e.writeUInt16BE=K.writeUInt16BE,e.writeUInt32LE=K.writeUInt32LE,e.writeUInt32BE=K.writeUInt32BE,e.writeInt8=K.writeInt8,e.writeInt16LE=K.writeInt16LE,e.writeInt16BE=K.writeInt16BE,e.writeInt32LE=K.writeInt32LE,e.writeInt32BE=K.writeInt32BE,e.writeFloatLE=K.writeFloatLE,e.writeFloatBE=K.writeFloatBE,e.writeDoubleLE=K.writeDoubleLE,e.writeDoubleBE=K.writeDoubleBE,e.fill=K.fill,e.inspect=K.inspect,e.toArrayBuffer=K.toArrayBuffer,e}}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{IrXUsu:10,"base64-js":7,buffer:6,ieee754:8}],7:[function(e,t,n){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function n(e){var t=e.charCodeAt(0);return t===s||t===d?62:t===u||t===c?63:a>t?-1:a+10>t?t-a+26+26:l+26>t?t-l:f+26>t?t-f+26:void 0}function r(e){function t(e){f[d++]=e}var r,i,s,u,a,f;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=e.length;a="="===e.charAt(l-2)?2:"="===e.charAt(l-1)?1:0,f=new o(3*e.length/4-a),s=a>0?e.length-4:e.length;var d=0;for(r=0,i=0;s>r;r+=4,i+=3)u=n(e.charAt(r))<<18|n(e.charAt(r+1))<<12|n(e.charAt(r+2))<<6|n(e.charAt(r+3)),t((16711680&u)>>16),t((65280&u)>>8),t(255&u);return 2===a?(u=n(e.charAt(r))<<2|n(e.charAt(r+1))>>4,t(255&u)):1===a&&(u=n(e.charAt(r))<<10|n(e.charAt(r+1))<<4|n(e.charAt(r+2))>>2,t(u>>8&255),t(255&u)),f}function i(t){function n(t){return e.charAt(t)}function r(e){return n(e>>18&63)+n(e>>12&63)+n(e>>6&63)+n(63&e)}var i,o,s,u=t.length%3,a="";for(i=0,s=t.length-u;s>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],a+=r(o);switch(u){case 1:o=t[t.length-1],a+=n(o>>2),a+=n(o<<4&63),a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=n(o>>10),a+=n(o>>4&63),a+=n(o<<2&63),a+="="}return a}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="+".charCodeAt(0),u="/".charCodeAt(0),a="0".charCodeAt(0),f="a".charCodeAt(0),l="A".charCodeAt(0),d="-".charCodeAt(0),c="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=i}("undefined"==typeof n?this.base64js={}:n)}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{IrXUsu:10,buffer:6}],8:[function(e,t,n){(function(){n.read=function(e,t,n,r,i){var o,s,u=8*i-r-1,a=(1<<u)-1,f=a>>1,l=-7,d=n?i-1:0,c=n?-1:1,h=e[t+d];for(d+=c,o=h&(1<<-l)-1,h>>=-l,l+=u;l>0;o=256*o+e[t+d],d+=c,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=c,l-=8);if(0===o)o=1-f;else{if(o===a)return s?0/0:1/0*(h?-1:1);s+=Math.pow(2,r),o-=f}return(h?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,u,a,f=8*o-i-1,l=(1<<f)-1,d=l>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,g=r?1:-1,p=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(u=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-s))<1&&(s--,a*=2),t+=s+d>=1?c/a:c*Math.pow(2,1-d),t*a>=2&&(s++,a/=2),s+d>=l?(u=0,s=l):s+d>=1?(u=(t*a-1)*Math.pow(2,i),s+=d):(u=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&u,h+=g,u/=256,i-=8);for(s=s<<i|u,f+=i;f>0;e[n+h]=255&s,h+=g,s/=256,f-=8);e[n+h-g]|=128*p}}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{IrXUsu:10,buffer:6}],9:[function(e,t,n){(function(){n.endianness=function(){return"LE"},n.hostname=function(){return"undefined"!=typeof location?location.hostname:""},n.loadavg=function(){return[]},n.uptime=function(){return 0},n.freemem=function(){return Number.MAX_VALUE},n.totalmem=function(){return Number.MAX_VALUE},n.cpus=function(){return[]},n.type=function(){return"Browser"},n.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},n.networkInterfaces=n.getNetworkInterfaces=function(){return{}},n.arch=function(){return"javascript"},n.platform=function(){return"browser"},n.tmpdir=n.tmpDir=function(){return"/tmp"},n.EOL="\n"}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/os-browserify/browser.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/os-browserify")},{IrXUsu:10,buffer:6}],10:[function(e,t){(function(e){function n(){}var e=t.exports={};e.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=n,e.addListener=n,e.once=n,e.off=n,e.removeListener=n,e.removeAllListeners=n,e.emit=n,e.binding=function(){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/process")},{IrXUsu:10,buffer:6}]},{},[5])(5)});