UNPKG

33.5 kBJavaScriptView Raw
1!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.msgpack=t()}}(function(){return function t(r,e,n){function o(f,u){if(!e[f]){if(!r[f]){var a="function"==typeof require&&require;if(!u&&a)return a(f,!0);if(i)return i(f,!0);var s=new Error("Cannot find module '"+f+"'");throw s.code="MODULE_NOT_FOUND",s}var h=e[f]={exports:{}};r[f][0].call(h.exports,function(t){var e=r[f][1][t];return o(e?e:t)},h,h.exports,t,r,e,n)}return e[f].exports}for(var i="function"==typeof require&&require,f=0;f<n.length;f++)o(n[f]);return o}({1:[function(t,r,e){e.encode=t("./encode").encode,e.decode=t("./decode").decode},{"./decode":3,"./encode":5}],2:[function(t,r,e){function n(t,r){for(var e=this,n=r||0,o=t.length,i=0;o>i;i++){var f=t.charCodeAt(i);128>f?e[n++]=f:2048>f?(e[n++]=192|f>>6,e[n++]=128|63&f):(e[n++]=224|f>>12,e[n++]=128|f>>6&63,e[n++]=128|63&f)}return n-r}function o(t,r){var e=this,n=t-0||0;r||(r=e.length);var o=r-t;o>s&&(o=s);for(var i=[];r>n;){for(var f=new Array(o),u=0;o>u&&r>n;){var a=e[n++];a=128>a?a:224>a?(63&a)<<6|63&e[n++]:(63&a)<<12|(63&e[n++])<<6|63&e[n++],f[u++]=a}o>u&&(f=f.slice(0,u)),i.push(String.fromCharCode.apply("",f))}return i.length>1?i.join(""):i.length?i.shift():""}function i(t){var r=0;return Array.prototype.forEach.call(t,function(t){var e=t.charCodeAt(0);r+=128>e?1:2048>e?2:3}),r}function f(t,r,e,n){var o;e||(e=0),n||0===n||(n=this.length),r||(r=0);var i=n-e;if(t===this&&r>e&&n>r)for(o=i-1;o>=0;o--)t[o+r]=this[o+e];else for(o=0;i>o;o++)t[o+r]=this[o+e];return i}function u(t,r){for(var e=7;e>=0;e--)this[r+e]=255&t,t/=256}function a(t,r){if(t>0)return u.call(this,t,r);t++;for(var e=7;e>=0;e--)this[r+e]=255&-t^255,t/=256}var s=8192;e.writeString=n,e.readString=o,e.byteLength=i,e.copy=f,e.writeUint64BE=u,e.writeInt64BE=a},{}],3:[function(t,r,e){function n(t){var r=[],e=new o(r);return e.decode(t),r[0]}e.decode=n;var o=t("./decoder").Decoder},{"./decoder":4}],4:[function(t,r,e){(function(r){function n(t){return this instanceof n?void(t&&t.push&&(this.push=t.push.bind(t))):new n(t)}function o(){var t,e=p(2,r.prototype.readUInt16BE),n=p(4,r.prototype.readUInt32BE),o=p(8,l),i=p(1,r.prototype.readInt8),w=p(2,r.prototype.readInt16BE),E=p(4,r.prototype.readInt32BE),v=p(8,d),b=p(4,r.prototype.readFloatBE),A=p(8,r.prototype.readDoubleBE);for(t=0;127>=t;t++)B[t]=f(t);for(t=128;143>=t;t++)B[t]=a(t-128,s);for(t=144;159>=t;t++)B[t]=a(t-144,h);for(t=160;191>=t;t++)B[t]=a(t-160,c);for(B[192]=f(null),B[193]=f(new Error("Invalid MessagePack token: 0xC1")),B[194]=f(!1),B[195]=f(!0),B[196]=u(I,y),B[197]=u(e,y),B[198]=u(n,y),B[199]=u(I,g),B[200]=u(e,g),B[201]=u(n,g),B[202]=b,B[203]=A,B[204]=I,B[205]=e,B[206]=n,B[207]=o,B[208]=i,B[209]=w,B[210]=E,B[211]=v,B[212]=a(1,g),B[213]=a(2,g),B[214]=a(4,g),B[215]=a(8,g),B[216]=a(16,g),B[217]=u(I,c),B[218]=u(e,c),B[219]=u(n,c),B[220]=u(e,h),B[221]=u(n,h),B[222]=u(e,s),B[223]=u(n,s),t=224;255>=t;t++)B[t]=f(t-256)}function i(t){var r=I(t);if(r===w)return r;var e=B[r];if(!e)throw new Error("Invalid MessagePack token: 0x"+r.toString(16));return e(t)}function f(t){return function(r){return t}}function u(t,r){return function(e){var n=t(e);return r(e,n)}}function a(t,r){return function(e){return r(e,t)}}function s(t,r){for(var e={},n=0;r>n;n++){var o=i(t);e[o]=i(t)}return e}function h(t,r){for(var e=new Array(r),n=0;r>n;n++)e[n]=i(t);return e}function c(t,r){var e=t.offset,n=e+r;return n>t.bufferLength?w:(t.offset=n,b?E.readString.call(t.buffer,e,n):t.buffer.toString("utf-8",e,n))}function p(t,r){return function(e){var n=e.offset,o=n+t;if(o>e.bufferLength)return w;var i=r.call(e.buffer,n,A);return e.offset=o,i}}function l(t,r){var e=this.readUInt32BE(t,r),n=this.readUInt32BE(t+4,r);return e?4294967296*e+n:n}function d(t,r){var e=this.readInt32BE(t,r),n=this.readUInt32BE(t+4,r);return e?4294967296*e+n:n}function y(t,r){var e=t.offset,n=e+r;if(n>t.bufferLength)return w;var o=t.buffer.slice(e,n);return t.offset=n,o}function g(t,r){var e=t.offset,n=e+r+1;if(n>t.bufferLength)return w;var o=t.buffer[e];t.offset=n;var i=v[o];if(i){var f=t.buffer.slice(e+1,n);return i.decode(f)}return t.buffer.slice(e,n)}function w(){}e.Decoder=n;var E=t("./buffer-lite"),v=t("./ext").decoders,b="TYPED_ARRAY_SUPPORT"in r,A=!0;n.prototype.decode=function(t,e,n){if(this.buffer){var o=this.offset?this.buffer.slice(this.offset):this.buffer;this.buffer=r.concat([o,t])}else this.buffer=t;this.bufferLength=this.buffer.length,this.offset=0,this.flush(),n&&n()},n.prototype.flush=function(){if(this.bufferLength){var t=this.offset,r=i(this);return r===w?void(this.offset=t):(this.push(r),this.flush())}};var B=[],I=p(1,r.prototype.readUInt8);o()}).call(this,t("buffer").Buffer)},{"./buffer-lite":2,"./ext":8,buffer:9}],5:[function(t,r,e){(function(r){function n(t){var e=[],n=new o(e);return n.encode(t),1===e.length?e[0]:r.concat(e)}e.encode=n;var o=t("./encoder").Encoder}).call(this,t("buffer").Buffer)},{"./encoder":6,buffer:9}],6:[function(t,r,e){(function(r){function n(t){return this instanceof n?void(t&&t.push&&(this.push=t.push.bind(t))):new n(t)}function o(){for(var t=0;255>=t;t++)S[t]=L[t]=u(t);R?f():i()}function i(){S[196]=a(196),S[197]=s(197),S[198]=h(198),S[199]=a(199),S[200]=s(200),S[201]=h(201),S[202]=c(202,4,r.prototype.writeFloatBE),S[203]=c(203,8,r.prototype.writeDoubleBE),S[204]=a(204),S[205]=s(205),S[206]=h(206),S[207]=c(207,8,v.writeUint64BE),S[208]=a(208),S[209]=s(209),S[210]=h(210),S[211]=c(211,8,v.writeUint64BE),S[217]=a(217),S[218]=s(218),S[219]=h(219),S[220]=s(220),S[221]=h(221),S[222]=s(222),S[223]=h(223)}function f(){S[196]=c(196,1,r.prototype.writeUInt8),S[197]=c(197,2,r.prototype.writeUInt16BE),S[198]=c(198,4,r.prototype.writeUInt32BE),S[199]=c(199,1,r.prototype.writeUInt8),S[200]=c(200,2,r.prototype.writeUInt16BE),S[201]=c(201,4,r.prototype.writeUInt32BE),S[202]=c(202,4,r.prototype.writeFloatBE),S[203]=c(203,8,r.prototype.writeDoubleBE),S[204]=c(204,1,r.prototype.writeUInt8),S[205]=c(205,2,r.prototype.writeUInt16BE),S[206]=c(206,4,r.prototype.writeUInt32BE),S[207]=c(207,8,v.writeUint64BE),S[208]=c(208,1,r.prototype.writeInt8),S[209]=c(209,2,r.prototype.writeInt16BE),S[210]=c(210,4,r.prototype.writeInt32BE),S[211]=c(211,8,v.writeUint64BE),S[217]=c(217,1,r.prototype.writeUInt8),S[218]=c(218,2,r.prototype.writeUInt16BE),S[219]=c(219,4,r.prototype.writeUInt32BE),S[220]=c(220,2,r.prototype.writeUInt16BE),S[221]=c(221,4,r.prototype.writeUInt32BE),S[222]=c(222,2,r.prototype.writeUInt16BE),S[223]=c(223,4,r.prototype.writeUInt32BE)}function u(t){return function(r){var e=r.offset+1;e>=B&&r.flush(),r.buffer[r.offset++]=t}}function a(t){return function(r,e){var n=r.offset+2;n>=B&&r.flush();var o=r.buffer,i=r.offset;o[i++]=t,o[i++]=e,r.offset=i}}function s(t){return function(r,e){var n=r.offset+3;n>=B&&r.flush();var o=r.buffer,i=r.offset;o[i++]=t,o[i++]=e>>>8,o[i++]=e,r.offset=i}}function h(t){return function(r,e){var n=r.offset+5;n>=B&&r.flush();var o=r.buffer,i=r.offset;o[i++]=t,o[i++]=e>>>24,o[i++]=e>>>16,o[i++]=e>>>8,o[i++]=e,r.offset=i}}function c(t,r,e){return function(n,o){var i=n.offset+1+r;i>=B&&n.flush(),n.buffer[n.offset++]=t,e.call(n.buffer,o,n.offset,I),n.offset+=r}}function p(t,r){var e=_[typeof r]||l;e(t,r)}function l(t,r){throw new Error('Unknown supported type "'+typeof r+'": '+r)}function d(t,r){var e=r?195:194;S[e](t,r)}function y(t,r){var e,n=0|r;return r!==n?(e=203,void S[e](t,r)):(e=n>=-32&&127>=n?255&n:n>=0?255>=n?204:65535>=n?205:206:n>=-128?208:n>=-32768?209:210,void S[e](t,n))}function g(t,r){var e=r.length,n=5+3*e;t.offset+n>B&&t.flush(n);var o=32>e?1:255>=e?2:65535>=e?3:5,i=t.offset+o;e=v.writeString.call(t.buffer,r,i);var f=32>e?1:255>=e?2:65535>=e?3:5;if(o!==f){var u=t.offset+f,a=i+e;U?v.copy.call(t.buffer,t.buffer,u,i,a):t.buffer.copy(t.buffer,u,i,a)}var s=1===f?160+e:3>=f?215+f:219;S[s](t,e),t.offset+=e}function w(t,e){var n,o;if(null===e)n=192,S[n](t,e);else if(P(e)){o=e.length,n=16>o?144+o:65535>=o?220:221,S[n](t,o);for(var i=0;o>i;i++)p(t,e[i])}else if(r.isBuffer(e))o=e.length,n=255>o?196:65535>=o?197:198,S[n](t,o),t.write(e);else{var f=e.constructor&&e.constructor.name;!f&&!m&&e instanceof A&&(f="ExtBuffer");var u=b[f];if(u){var a=u.type(e),s=u.encode(e);return o=s.length,n=T[o]||(255>o?199:65535>=o?200:201),S[n](t,o),L[a](t),void t.write(s)}var h=Object.keys(e);o=h.length,n=16>o?128+o:65535>=o?222:223,S[n](t,o),h.forEach(function(r){p(t,r),p(t,e[r])})}}function E(t){return"[object Array]"===Object.prototype.toString.call(t)}e.Encoder=n;var v=t("./buffer-lite"),b=t("./ext").encoders,A=t("./ext-buffer").ExtBuffer,B=2048,I=!0,U="TYPED_ARRAY_SUPPORT"in r,R=U&&!r.TYPED_ARRAY_SUPPORT,m=n.name,P=Array.isArray||E;n.prototype.encode=function(t,r,e){this.buffer||this.flush(),p(this,t),this.flush(),e&&e()},n.prototype.flush=function(t){this.offset&&(this.push(this.buffer.slice(0,this.offset)),this.buffer=null),B>t&&(t=0),(!this.buffer||t)&&(this.buffer=new r(t||B)),this.offset=0},n.prototype.write=function(t){var r=this.offset+t.length;r>=B?(this.flush(),this.push(t)):(t.copy(this.buffer,this.offset),this.offset=r)};var L=new Array(256),S=new Array(256);o();var _={string:g,number:y,object:w,"boolean":d,undefined:S[192]},T=[];T[1]=212,T[2]=213,T[4]=214,T[8]=215,T[16]=216}).call(this,t("buffer").Buffer)},{"./buffer-lite":2,"./ext":8,"./ext-buffer":7,buffer:9}],7:[function(t,r,e){function n(t){return this instanceof n?void(this.buffer=t):new n(t)}e.ExtBuffer=n,n.prototype.type=0},{}],8:[function(t,r,e){(function(e,n){function o(t,r){return this instanceof o?("string"==typeof t&&(t=t.charCodeAt(0)),this._type=t,b[t]=this,void(v[r]=this)):new o(t,r)}function i(t,r){return function(e){return r(t(e))}}function f(){for(var t=255;t>=0;t--){var r=o(t,"ExtBuffer").encoder(g).decoder(y(t));r.type=w}o(1,"EvalError").parser(d(E.Error)).builder(u),o(2,"RangeError").parser(d(E.Error)).builder(u),o(3,"ReferenceError").parser(d(E.Error)).builder(u),o(4,"SyntaxError").parser(d(E.Error)).builder(u),o(5,"TypeError").parser(d(E.Error)).builder(u),o(6,"URIError").parser(d(E.Error)).builder(u),o(10,"RegExp").parser(a).builder(s),o(11,"Boolean").parser(Number).builder(l(Boolean)),o(12,"String").builder(l(String)),o(13,"Date").parser(Number).builder(l(Date)),o(14,"Error").parser(d(E.Error)).builder(u),o(15,"Number").builder(l(Number)),"undefined"!=typeof Uint8Array&&(o(17,"Int8Array").encoder(n).decoder(l(Int8Array)),o(18,"Uint8Array").encoder(n).decoder(l(Uint8Array)),o(19,"Int16Array").encoder(h).decoder(p,l(Int16Array)),o(20,"Uint16Array").encoder(h).decoder(p,l(Uint16Array)),o(21,"Int32Array").encoder(h).decoder(p,l(Int32Array)),o(22,"Uint32Array").encoder(h).decoder(p,l(Uint32Array)),o(23,"Float32Array").encoder(h).decoder(p,l(Float32Array)),o(24,"Float64Array").encoder(h).decoder(p,l(Float64Array)),o(25,"Uint8ClampedArray").encoder(n).decoder(l(Uint8ClampedArray)),o(26,"ArrayBuffer").encoder(c).decoder(p),o(29,"DataView").encoder(h).decoder(p,l(DataView)))}function u(t){var r=new Error;for(var e in E.Error)r[e]=t[e];return r}function a(t){return RegExp.prototype.toString.call(t).split("/").slice(1)}function s(t){return RegExp.apply(null,t)}function h(t){return n(new Uint8Array(t.buffer))}function c(t){return n(new Uint8Array(t))}function p(t){return new Uint8Array(t).buffer}function l(t){return function(r){return new t(r)}}function d(t){return function(r){var e={};for(var n in t)e[n]=r[n];return e}}function y(t){function r(e){return this instanceof r?(I.call(this,e),void(this.type=t)):new r(e)}return r.prototype=U,r}function g(t){return t.buffer}function w(t){return t.type}var E=r.exports=o,v=E.encoders={},b=E.decoders=[];E.Error={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};var A=t("./encode").encode,B=t("./decode").decode,I=t("./ext-buffer").ExtBuffer,U=new I;o.prototype.type=function(){return this._type},o.prototype.encoder=function(t){return this.encode=Array.prototype.reduce.call(arguments,i),this},o.prototype.decoder=function(t){return this.decode=Array.prototype.reduce.call(arguments,i),this},o.prototype.parser=function(t){return this.parse=Array.prototype.reduce.call(arguments,i),this},o.prototype.builder=function(t){return this.build=Array.prototype.reduce.call(arguments,i),this},o.prototype.parse=function(t){return t.valueOf()},o.prototype.build=function(t){var r=e[this.type];return new r(t)},o.prototype.encode=function(t){return A(this.parse(t))},o.prototype.decode=function(t){return this.build(B(t))},f()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{"./decode":3,"./encode":5,"./ext-buffer":7,buffer:9}],9:[function(t,r,e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t){return this instanceof o?(this.length=0,this.parent=void 0,"number"==typeof t?i(this,t):"string"==typeof t?f(this,t,arguments.length>1?arguments[1]:"utf8"):u(this,t)):arguments.length>1?new o(t,arguments[1]):new o(t)}function i(t,r){if(t=d(t,0>r?0:0|y(r)),!o.TYPED_ARRAY_SUPPORT)for(var e=0;r>e;e++)t[e]=0;return t}function f(t,r,e){("string"!=typeof e||""===e)&&(e="utf8");var n=0|w(r,e);return t=d(t,n),t.write(r,e),t}function u(t,r){if(o.isBuffer(r))return a(t,r);if(G(r))return s(t,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(r.buffer instanceof ArrayBuffer)return h(t,r);if(r instanceof ArrayBuffer)return c(t,r)}return r.length?p(t,r):l(t,r)}function a(t,r){var e=0|y(r.length);return t=d(t,e),r.copy(t,0,0,e),t}function s(t,r){var e=0|y(r.length);t=d(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function h(t,r){var e=0|y(r.length);t=d(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function c(t,r){return o.TYPED_ARRAY_SUPPORT?(r.byteLength,t=o._augment(new Uint8Array(r))):t=h(t,new Uint8Array(r)),t}function p(t,r){var e=0|y(r.length);t=d(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function l(t,r){var e,n=0;"Buffer"===r.type&&G(r.data)&&(e=r.data,n=0|y(e.length)),t=d(t,n);for(var o=0;n>o;o+=1)t[o]=255&e[o];return t}function d(t,r){o.TYPED_ARRAY_SUPPORT?t=o._augment(new Uint8Array(r)):(t.length=r,t._isBuffer=!0);var e=0!==r&&r<=o.poolSize>>>1;return e&&(t.parent=H),t}function y(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t,r){if(!(this instanceof g))return new g(t,r);var e=new o(t,r);return delete e.parent,e}function w(t,r){"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"binary":case"raw":case"raws":return e;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return J(t).length;default:if(n)return j(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if(r=0|r,e=void 0===e||e===1/0?this.length:0|e,t||(t="utf8"),0>r&&(r=0),e>this.length&&(e=this.length),r>=e)return"";for(;;)switch(t){case"hex":return S(this,r,e);case"utf8":case"utf-8":return m(this,r,e);case"ascii":return P(this,r,e);case"binary":return L(this,r,e);case"base64":return R(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n),n>o&&(n=o)):n=o;var i=r.length;if(i%2!==0)throw new Error("Invalid hex string");n>i/2&&(n=i/2);for(var f=0;n>f;f++){var u=parseInt(r.substr(2*f,2),16);if(isNaN(u))throw new Error("Invalid hex string");t[e+f]=u}return f}function b(t,r,e,n){return V(j(r,t.length-e),t,e,n)}function A(t,r,e,n){return V(q(r),t,e,n)}function B(t,r,e,n){return A(t,r,e,n)}function I(t,r,e,n){return V(J(r),t,e,n)}function U(t,r,e,n){return V(z(r,t.length-e),t,e,n)}function R(t,r,e){return 0===r&&e===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(r,e))}function m(t,r,e){e=Math.min(t.length,e);for(var n,o,i,f,u,a,s,h=[],c=r;e>c;c+=u){if(n=t[c],s=65533,u=n>239?4:n>223?3:n>191?2:1,e>=c+u)switch(u){case 1:128>n&&(s=n);break;case 2:o=t[c+1],128===(192&o)&&(a=(31&n)<<6|63&o,a>127&&(s=a));break;case 3:o=t[c+1],i=t[c+2],128===(192&o)&&128===(192&i)&&(a=(15&n)<<12|(63&o)<<6|63&i,a>2047&&(55296>a||a>57343)&&(s=a));break;case 4:o=t[c+1],i=t[c+2],f=t[c+3],128===(192&o)&&128===(192&i)&&128===(192&f)&&(a=(15&n)<<18|(63&o)<<12|(63&i)<<6|63&f,a>65535&&1114112>a&&(s=a))}65533===s?u=1:s>65535&&(s-=65536,h.push(s>>>10&1023|55296),s=56320|1023&s),h.push(s)}return String.fromCharCode.apply(String,h)}function P(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;e>o;o++)n+=String.fromCharCode(127&t[o]);return n}function L(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;e>o;o++)n+=String.fromCharCode(t[o]);return n}function S(t,r,e){var n=t.length;(!r||0>r)&&(r=0),(!e||0>e||e>n)&&(e=n);for(var o="",i=r;e>i;i++)o+=k(t[i]);return o}function _(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function T(t,r,e){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function x(t,r,e,n,i,f){if(!o.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(r>i||f>r)throw new RangeError("value is out of bounds");if(e+n>t.length)throw new RangeError("index out of range")}function Y(t,r,e,n){0>r&&(r=65535+r+1);for(var o=0,i=Math.min(t.length-e,2);i>o;o++)t[e+o]=(r&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function D(t,r,e,n){0>r&&(r=4294967295+r+1);for(var o=0,i=Math.min(t.length-e,4);i>o;o++)t[e+o]=r>>>8*(n?o:3-o)&255}function O(t,r,e,n,o,i){if(r>o||i>r)throw new RangeError("value is out of bounds");if(e+n>t.length)throw new RangeError("index out of range");if(0>e)throw new RangeError("index out of range")}function C(t,r,e,n,o){return o||O(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,r,e,n,23,4),e+4}function M(t,r,e,n,o){return o||O(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,r,e,n,52,8),e+8}function N(t){if(t=F(t).replace(Q,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function F(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function k(t){return 16>t?"0"+t.toString(16):t.toString(16)}function j(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],f=0;n>f;f++){if(e=t.charCodeAt(f),e>55295&&57344>e){if(!o){if(e>56319){(r-=3)>-1&&i.push(239,191,189);continue}if(f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(56320>e){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=o-55296<<10|e-56320|65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,128>e){if((r-=1)<0)break;i.push(e)}else if(2048>e){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(65536>e){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(1114112>e))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function q(t){for(var r=[],e=0;e<t.length;e++)r.push(255&t.charCodeAt(e));return r}function z(t,r){for(var e,n,o,i=[],f=0;f<t.length&&!((r-=2)<0);f++)e=t.charCodeAt(f),n=e>>8,o=e%256,i.push(o),i.push(n);return i}function J(t){return X.toByteArray(N(t))}function V(t,r,e,n){for(var o=0;n>o&&!(o+e>=r.length||o>=t.length);o++)r[o+e]=t[o];return o}var X=t("base64-js"),Z=t("ieee754"),G=t("is-array");e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.poolSize=8192;var H={};o.TYPED_ARRAY_SUPPORT=function(){function t(){}try{var r=new Uint8Array(1);return r.foo=function(){return 42},r.constructor=t,42===r.foo()&&r.constructor===t&&"function"==typeof r.subarray&&0===r.subarray(1,1).byteLength}catch(e){return!1}}(),o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,r){if(!o.isBuffer(t)||!o.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,f=Math.min(e,n);f>i&&t[i]===r[i];)++i;return i!==f&&(e=t[i],n=r[i]),n>e?-1:e>n?1:0},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.concat=function(t,r){if(!G(t))throw new TypeError("list argument must be an Array of Buffers.");if(0===t.length)return new o(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;e++)r+=t[e].length;var n=new o(r),i=0;for(e=0;e<t.length;e++){var f=t[e];f.copy(n,i),i+=f.length}return n},o.byteLength=w,o.prototype.length=void 0,o.prototype.parent=void 0,o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?m(this,0,t):E.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:0===o.compare(this,t)},o.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:o.compare(this,t)},o.prototype.indexOf=function(t,r){function e(t,r,e){for(var n=-1,o=0;e+o<t.length;o++)if(t[e+o]===r[-1===n?0:o-n]){if(-1===n&&(n=o),o-n+1===r.length)return e+n}else n=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,r);if(o.isBuffer(t))return e(this,t,r);if("number"==typeof t)return o.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,r):e(this,[t],r);throw new TypeError("val must be string, number or Buffer")},o.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},o.prototype.set=function(t,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,r)},o.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r=0|r,isFinite(e)?(e=0|e,void 0===n&&(n="utf8")):(n=e,e=void 0);else{var o=n;n=r,r=0|e,e=o}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(0>e||0>r)||r>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return v(this,t,r,e);case"utf8":case"utf-8":return b(this,t,r,e);case"ascii":return A(this,t,r,e);case"binary":return B(this,t,r,e);case"base64":return I(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r,e);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,0>t?(t+=e,0>t&&(t=0)):t>e&&(t=e),0>r?(r+=e,0>r&&(r=0)):r>e&&(r=e),t>r&&(r=t);var n;if(o.TYPED_ARRAY_SUPPORT)n=o._augment(this.subarray(t,r));else{var i=r-t;n=new o(i,void 0);for(var f=0;i>f;f++)n[f]=this[f+t]}return n.length&&(n.parent=this.parent||this),n},o.prototype.readUIntLE=function(t,r,e){t=0|t,r=0|r,e||T(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},o.prototype.readUIntBE=function(t,r,e){t=0|t,r=0|r,e||T(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},o.prototype.readUInt8=function(t,r){return r||T(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,r){return r||T(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,r){return r||T(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,r){return r||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,r){return r||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,r,e){t=0|t,r=0|r,e||T(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*r)),n},o.prototype.readIntBE=function(t,r,e){t=0|t,r=0|r,e||T(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i},o.prototype.readInt8=function(t,r){return r||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,r){r||T(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},o.prototype.readInt16BE=function(t,r){r||T(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},o.prototype.readInt32LE=function(t,r){return r||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,r){return r||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,r){return r||T(t,4,this.length),Z.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,r){return r||T(t,4,this.length),Z.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,r){return r||T(t,8,this.length),Z.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,r){return r||T(t,8,this.length),Z.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,r,e,n){t=+t,r=0|r,e=0|e,n||x(this,t,r,e,Math.pow(2,8*e),0);var o=1,i=0;for(this[r]=255&t;++i<e&&(o*=256);)this[r+i]=t/o&255;return r+e},o.prototype.writeUIntBE=function(t,r,e,n){t=+t,r=0|r,e=0|e,n||x(this,t,r,e,Math.pow(2,8*e),0);var o=e-1,i=1;for(this[r+o]=255&t;--o>=0&&(i*=256);)this[r+o]=t/i&255;return r+e},o.prototype.writeUInt8=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t,r+1},o.prototype.writeUInt16LE=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8):Y(this,t,r,!0),r+2},o.prototype.writeUInt16BE=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t):Y(this,t,r,!1),r+2},o.prototype.writeUInt32LE=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t):D(this,t,r,!0),r+4},o.prototype.writeUInt32BE=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t):D(this,t,r,!1),r+4},o.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r=0|r,!n){var o=Math.pow(2,8*e-1);x(this,t,r,e,o-1,-o)}var i=0,f=1,u=0>t?1:0;for(this[r]=255&t;++i<e&&(f*=256);)this[r+i]=(t/f>>0)-u&255;return r+e},o.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r=0|r,!n){var o=Math.pow(2,8*e-1);x(this,t,r,e,o-1,-o)}var i=e-1,f=1,u=0>t?1:0;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=(t/f>>0)-u&255;return r+e},o.prototype.writeInt8=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[r]=t,r+1},o.prototype.writeInt16LE=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8):Y(this,t,r,!0),r+2},o.prototype.writeInt16BE=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t):Y(this,t,r,!1),r+2},o.prototype.writeInt32LE=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):D(this,t,r,!0),r+4},o.prototype.writeInt32BE=function(t,r,e){return t=+t,r=0|r,e||x(this,t,r,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t):D(this,t,r,!1),r+4},o.prototype.writeFloatLE=function(t,r,e){return C(this,t,r,!0,e)},o.prototype.writeFloatBE=function(t,r,e){return C(this,t,r,!1,e)},o.prototype.writeDoubleLE=function(t,r,e){return M(this,t,r,!0,e)},o.prototype.writeDoubleBE=function(t,r,e){return M(this,t,r,!1,e)},o.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&e>n&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>e||e>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,f=n-e;if(this===t&&r>e&&n>r)for(i=f-1;i>=0;i--)t[i+r]=this[i+e];else if(1e3>f||!o.TYPED_ARRAY_SUPPORT)for(i=0;f>i;i++)t[i+r]=this[i+e];else t._set(this.subarray(e,e+f),r);return f},o.prototype.fill=function(t,r,e){if(t||(t=0),r||(r=0),e||(e=this.length),r>e)throw new RangeError("end < start");if(e!==r&&0!==this.length){if(0>r||r>=this.length)throw new RangeError("start out of bounds");if(0>e||e>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=r;e>n;n++)this[n]=t;else{var o=j(t.toString()),i=o.length;for(n=r;e>n;n++)this[n]=o[n%i]}return this}},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o.TYPED_ARRAY_SUPPORT)return new o(this).buffer;for(var t=new Uint8Array(this.length),r=0,e=t.length;e>r;r+=1)t[r]=this[r];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var K=o.prototype;o._augment=function(t){return t.constructor=o,t._isBuffer=!0,t._set=t.set,t.get=K.get,t.set=K.set,t.write=K.write,t.toString=K.toString,t.toLocaleString=K.toString,t.toJSON=K.toJSON,t.equals=K.equals,t.compare=K.compare,t.indexOf=K.indexOf,t.copy=K.copy,t.slice=K.slice,t.readUIntLE=K.readUIntLE,t.readUIntBE=K.readUIntBE,t.readUInt8=K.readUInt8,t.readUInt16LE=K.readUInt16LE,t.readUInt16BE=K.readUInt16BE,t.readUInt32LE=K.readUInt32LE,t.readUInt32BE=K.readUInt32BE,t.readIntLE=K.readIntLE,t.readIntBE=K.readIntBE,t.readInt8=K.readInt8,t.readInt16LE=K.readInt16LE,t.readInt16BE=K.readInt16BE,t.readInt32LE=K.readInt32LE,t.readInt32BE=K.readInt32BE,t.readFloatLE=K.readFloatLE,t.readFloatBE=K.readFloatBE,t.readDoubleLE=K.readDoubleLE,t.readDoubleBE=K.readDoubleBE,t.writeUInt8=K.writeUInt8,t.writeUIntLE=K.writeUIntLE,t.writeUIntBE=K.writeUIntBE,t.writeUInt16LE=K.writeUInt16LE,t.writeUInt16BE=K.writeUInt16BE,t.writeUInt32LE=K.writeUInt32LE,t.writeUInt32BE=K.writeUInt32BE,t.writeIntLE=K.writeIntLE,t.writeIntBE=K.writeIntBE,t.writeInt8=K.writeInt8,t.writeInt16LE=K.writeInt16LE,t.writeInt16BE=K.writeInt16BE,t.writeInt32LE=K.writeInt32LE,t.writeInt32BE=K.writeInt32BE,t.writeFloatLE=K.writeFloatLE,t.writeFloatBE=K.writeFloatBE,t.writeDoubleLE=K.writeDoubleLE,t.writeDoubleBE=K.writeDoubleBE,t.fill=K.fill,t.inspect=K.inspect,t.toArrayBuffer=K.toArrayBuffer,t};var Q=/[^+\/0-9A-Za-z-_]/g},{"base64-js":10,ieee754:11,"is-array":12}],10:[function(t,r,e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function r(t){var r=t.charCodeAt(0);return r===f||r===c?62:r===u||r===p?63:a>r?-1:a+10>r?r-a+26+26:h+26>r?r-h:s+26>r?r-s+26:void 0}function e(t){function e(t){s[c++]=t}var n,o,f,u,a,s;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=t.length;a="="===t.charAt(h-2)?2:"="===t.charAt(h-1)?1:0,s=new i(3*t.length/4-a),f=a>0?t.length-4:t.length;var c=0;for(n=0,o=0;f>n;n+=4,o+=3)u=r(t.charAt(n))<<18|r(t.charAt(n+1))<<12|r(t.charAt(n+2))<<6|r(t.charAt(n+3)),e((16711680&u)>>16),e((65280&u)>>8),e(255&u);return 2===a?(u=r(t.charAt(n))<<2|r(t.charAt(n+1))>>4,e(255&u)):1===a&&(u=r(t.charAt(n))<<10|r(t.charAt(n+1))<<4|r(t.charAt(n+2))>>2,e(u>>8&255),e(255&u)),s}function o(t){function r(t){return n.charAt(t)}function e(t){return r(t>>18&63)+r(t>>12&63)+r(t>>6&63)+r(63&t)}var o,i,f,u=t.length%3,a="";for(o=0,f=t.length-u;f>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a+=e(i);switch(u){case 1:i=t[t.length-1],
2a+=r(i>>2),a+=r(i<<4&63),a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=r(i>>10),a+=r(i>>4&63),a+=r(i<<2&63),a+="="}return a}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,f="+".charCodeAt(0),u="/".charCodeAt(0),a="0".charCodeAt(0),s="a".charCodeAt(0),h="A".charCodeAt(0),c="-".charCodeAt(0),p="_".charCodeAt(0);t.toByteArray=e,t.fromByteArray=o}("undefined"==typeof e?this.base64js={}:e)},{}],11:[function(t,r,e){e.read=function(t,r,e,n,o){var i,f,u=8*o-n-1,a=(1<<u)-1,s=a>>1,h=-7,c=e?o-1:0,p=e?-1:1,l=t[r+c];for(c+=p,i=l&(1<<-h)-1,l>>=-h,h+=u;h>0;i=256*i+t[r+c],c+=p,h-=8);for(f=i&(1<<-h)-1,i>>=-h,h+=n;h>0;f=256*f+t[r+c],c+=p,h-=8);if(0===i)i=1-s;else{if(i===a)return f?NaN:(l?-1:1)*(1/0);f+=Math.pow(2,n),i-=s}return(l?-1:1)*f*Math.pow(2,i-n)},e.write=function(t,r,e,n,o,i){var f,u,a,s=8*i-o-1,h=(1<<s)-1,c=h>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:i-1,d=n?1:-1,y=0>r||0===r&&0>1/r?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,f=h):(f=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-f))<1&&(f--,a*=2),r+=f+c>=1?p/a:p*Math.pow(2,1-c),r*a>=2&&(f++,a/=2),f+c>=h?(u=0,f=h):f+c>=1?(u=(r*a-1)*Math.pow(2,o),f+=c):(u=r*Math.pow(2,c-1)*Math.pow(2,o),f=0));o>=8;t[e+l]=255&u,l+=d,u/=256,o-=8);for(f=f<<o|u,s+=o;s>0;t[e+l]=255&f,l+=d,f/=256,s-=8);t[e+l-d]|=128*y}},{}],12:[function(t,r,e){var n=Array.isArray,o=Object.prototype.toString;r.exports=n||function(t){return!!t&&"[object Array]"==o.call(t)}},{}]},{},[1])(1)});
\No newline at end of file