/*! https://github.com/rochars/byte-data Copyright (c) 2019 Rafael da Silva Rocha */ !function(){if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var e=Object.defineProperty;Object.defineProperty=function(t,r,o){if(e)try{return e(t,r,o)}catch(e){}if(t!==Object(t))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in o&&Object.prototype.__defineGetter__.call(t,r,o.get),Object.prototype.__defineSetter__&&"set"in o&&Object.prototype.__defineSetter__.call(t,r,o.set),"value"in o&&(t[r]=o.value),t}}}();try{Object.getOwnPropertyDescriptor({t:"o"},"t")}catch(e){Object.getOwnPropertyDescriptor=function(e,t){return null!=("function"==typeof e.__lookupGetter__&&"function"==typeof e.__lookupSetter__?e.__lookupGetter__(t)||e.__lookupSetter__(t):null)?{configurable:!0,enumerable:!0,get:e.__lookupGetter__(t),set:e.__lookupSetter__(t)}:{configurable:!0,writable:!0,enumerable:!0,value:e[t]}}};var byteData=(function(exports){var exports=exports||{};var l="function"==typeof Object.defineProperties?Object.defineProperty:function(b,a,d){b!=Array.prototype&&b!=Object.prototype&&(b[a]=d.value)},n="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function p(b,a){if(a){for(var d=n,c=b.split("."),e=0;ec||56319a||57343f)a[d]=f,d++;else{var h=0,g=0;2047>=f?(h=1,g=192):65535>=f?(h=2,g=224):1114111>=f&&(h=3,g=240,c++);a[d]=(f>>6*h)+g;for(d++;0>6*(h-1)&63,d++,h--}}return d} function t(b,a,d){this.bits=b;this.b=8>b?1:Math.ceil(b/8);this.max=Math.pow(2,b)-1;this.min=0;var c=8-((b-1|7)+1-b);this.c=Math.pow(2,0a?a+Math.pow(2,this.bits):a)&255;d++;for(var c=2,e=this.b;cthis.max&&(d-=2*this.max+2);return this.a(d)};t.prototype.a=function(b){if(b>this.max||bthis.max?this.max:bthis.g-2*this.h&&(a=0>a?-Infinity:Infinity);var c=0>((a=+a)||1/a)?1:0>a?1:0;a=Math.abs(a);var e=Math.min(Math.floor(Math.log(a)/Math.LN2),1023),f=w(a/Math.pow(2,e)*Math.pow(2,this.c));a!==a?(f=Math.pow(2,this.c-1),e=(1<=Math.pow(2,1-this.a)?(2<=f/Math.pow(2,this.c)&&(e+=1,f=1),e>this.a?(e=(1<=d;)b[f]=parseInt(c.substring(0,8),2),c=c.substring(8),f--,a++;return a}; v.prototype.unpack=function(b,a){for(var d=(1<b?a:.5b||53=g)a+=String.fromCharCode(g);else{var k=0;194<=g&&223>=g?k=1:224<=g&&239>=g?(k=2,224===b[c]&&(e=160),237===b[c]&&(f=159)):240<=g&&244>=g?(k=3,240===b[c]&&(e=144),244===b[c]&&(f=143)):h=!0;g&=(1<<8-k-1)-1;for(var m=0;mf)h=!0;g=g<<6|b[c]&63;c++}h?a+=String.fromCharCode(65533):65535>=g?a+=String.fromCharCode(g): (g-=65536,a+=String.fromCharCode((g>>10&1023)+55296,(g&1023)+56320))}}return a};typeof module!=='undefined'?module.exports=exports :typeof define==='function'&&define.amd?define(['exports'],exports) :typeof global!=='undefined'?global.byteData=exports:null;return exports;})();