!function(t){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=t();elseif("function"==typeofdefine&&define.amd)define([],t);else{vare;"undefined"!=typeofwindow?e=window:"undefined"!=typeofglobal?e=global:"undefined"!=typeofself&&(e=self),e.FilerBuffer=t()}}(function(){returnfunctiont(e,n,r){functioni(a,s){if(!n[a]){if(!e[a]){varu="function"==typeofrequire&&require;if(!s&&u)returnu(a,!0);if(o)returno(a,!0);throwError("Cannot find module '"+a+"'")}varf=n[a]={exports:{}};e[a][0].call(f.exports,function(t){varn=e[a][1][t];returni(n?n:t)},f,f.exports,t,e,n,r)}returnn[a].exports}for(varo="function"==typeofrequire&&require,a=0;r.length>a;a++)i(r[a]);returni}({1:[function(t,e,n){functionr(t,e,n){if(!(thisinstanceofr))returnnewr(t,e,n);vari,o=typeoft;if("number"===o)i=t>0?t>>>0:0;elseif("string"===o)"base64"===e&&(t=A(t)),i=r.byteLength(t,e);else{if("object"!==o||null===t)thrownewTypeError("must start with number, buffer, array or string");"Buffer"===t.type&&P(t.data)&&(t=t.data),i=+t.length>0?Math.floor(+t.length):0}if(this.length>M)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");vara;r.TYPED_ARRAY_SUPPORT?a=r._augment(newUint8Array(i)):(a=this,a.length=i,a._isBuffer=!0);vars;if(r.TYPED_ARRAY_SUPPORT&&"number"==typeoft.byteLength)a._set(t);elseif(T(t))if(r.isBuffer(t))for(s=0;i>s;s++)a[s]=t.readUInt8(s);elsefor(s=0;i>s;s++)a[s]=(t[s]%256+256)%256;elseif("string"===o)a.write(t,0,e);elseif("number"===o&&!r.TYPED_ARRAY_SUPPORT&&!n)for(s=0;i>s;s++)a[s]=0;returna}functioni(t,e,n,r){n=Number(n)||0;vari=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;varo=e.length;if(0!==o%2)throwError("Invalid hex string");r>o/2&&(r=o/2);for(vara=0;r>a;a++){vars=parseInt(e.substr(2*a,2),16);if(isNaN(s))throwError("Invalid hex string");t[n+a]=s}returna}functiono(t,e,n,r){vari=D(j(e),t,n,r);returni}functiona(t,e,n,r){vari=D(S(e),t,n,r);returni}functions(t,e,n,r){returna(t,e,n,r)}functionu(t,e,n,r){vari=D(x(e),t,n,r);returni}functionf(t,e,n,r){vari=D(_(e),t,n,r,2);returni}functionc(t,e,n){return0===e&&n===t.length?N.fromByteArray(t):N.fromByteArray(t.slice(e,n))}functionh(t,e,n){varr="",i="";n=Math.min(t.length,n);for(varo=e;n>o;o++)127>=t[o]?(r+=B(i)+String.fromCharCode(t[o]),i=""):i+="%"+t[o].toString(16);returnr+B(i)}functionl(t,e,n){varr="";n=Math.min(t.length,n);for(vari=e;n>i;i++)r+=String.fromCharCode(t[i]);returnr}functionp(t,e,n){returnl(t,e,n)}functiond(t,e,n){varr=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(vari="",o=e;n>o;o++)i+=R(t[o]);returni}functiong(t,e,n){for(varr=t.slice(e,n),i="",o=0;r.length>o;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);returni}functionv(t,e,n){if(0!==t%1||0>t)thrownewRangeError("offset is not uint");if(t+e>n)thrownewRangeError("Trying to access beyond buffer length")}functionE(t,e,n,i,o,a){if(!r.isBuffer(t))thrownewTypeError("buffer must be a Buffer instance");if(e>o||a>e)thrownewTypeError("value is out of bounds");if(n+i>t.length)thrownewTypeError("index out of range")}functiony(t,e,n,r){0>e&&(e=65535+e+1);for(vari=0,o=Math.min(t.length-n,2);o>i;i++)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}functionm(t,e,n,r){0>e&&(e=4294967295+e+1);for(vari=0,o=Math.min(t.length-n,4);o>i;i++)t[n+i]=255&e>>>8*(r?i:3-i)}functionw(t,e,n,r,i,o){if(e>i||o>e)thrownewTypeError("value is out of bounds");if(n+r>t.length)thrownewTypeError("index out of range")}functionb(t,e,n,r,i){returni||w(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),L.write(t,e,n,r,23,4),n+4}functionI(t,e,n,r,i){returni||w(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),L.write(t,e,n,r,52,8),n+8}functionA(t){for(t=O(t).replace(C,"");0!==t.length%4;)t+="=";returnt}functionO(t){returnt.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}functionT(t){returnP(t)||r.isBuffer(t)||t&&"object"==typeoft&&"number"==typeoft.length}functionR(t){return16>t?"0"+t.toString(16):t.toString(16)}functionj(t){for(vare=[],n=0;t.length>n;n++){varr=t.charCodeAt(n);if(127>=r)e.push(r);else{va