26 lines
530 KiB
JavaScript
26 lines
530 KiB
JavaScript
|
|
/*!
|
||
|
|
* pixi-compressed-textures - v1.1.5
|
||
|
|
* Compiled Fri, 05 May 2017 17:10:12 UTC
|
||
|
|
*
|
||
|
|
* pixi-compressed-textures is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/
|
||
|
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,(t.pixiCompressedTextures||(t.pixiCompressedTextures={})).min=e()}}(function(){var define,module,exports;return function e(t,r,i){function n(o,f){if(!r[o]){if(!t[o]){var s="function"==typeof require&&require;if(!f&&s)return s(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};t[o][0].call(u.exports,function(e){var r=t[o][1][e];return n(r?r:e)},u,u.exports,e,t,r,i)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o<i.length;o++)n(i[o]);return n}({1:[function(require,module,exports){(function(process,Buffer,__dirname){function ha(e){eval.call(null,e)}function assert(e,t){e||x("Assertion failed: "+t)}function qa(a){var b=e["_"+a];if(!b)try{b=eval("_"+a)}catch(e){}return assert(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function wa(e,t,r){switch(r=r||"i8","*"===r.charAt(r.length-1)&&(r="i32"),r){case"i1":y[e>>0]=t;break;case"i8":y[e>>0]=t;break;case"i16":z[e>>1]=t;break;case"i32":C[e>>2]=t;break;case"i64":pa=[t>>>0,(oa=t,1<=+xa(oa)?0<oa?(0|ya(+za(oa/4294967296),4294967295))>>>0:~~+Aa((oa-+(~~oa>>>0))/4294967296)>>>0:0)],C[e>>2]=pa[0],C[e+4>>2]=pa[1];break;case"float":Ba[e>>2]=t;break;case"double":Ca[e>>3]=t;break;default:x("invalid type for setValue: "+r)}}function Da(e,t){switch(t=t||"i8","*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":return y[e>>0];case"i8":return y[e>>0];case"i16":return z[e>>1];case"i32":return C[e>>2];case"i64":return C[e>>2];case"float":return Ba[e>>2];case"double":return Ca[e>>3];default:x("invalid type for setValue: "+t)}return null}function D(e,t,r,i){var a,o;"number"==typeof e?(a=!0,o=e):(a=!1,o=e.length);var f="string"==typeof t?t:null;if(r=4==r?i:[Ea,n.aa,n.Ra,n.R][void 0===r?2:r](Math.max(o,f?1:t.length)),a){for(i=r,assert(0==(3&r)),e=r+(o&-4);i<e;i+=4)C[i>>2]=0;for(e=r+o;i<e;)y[i++>>0]=0;return r}if("i8"===f)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;i=0;for(var s,c;i<o;){var u=e[i];"function"==typeof u&&(u=n.Id(u)),a=f||t[i],0===a?i++:("i64"==a&&(a="i32"),wa(r+i,u,a),c!==a&&(s=n.Ka(a),c=a),i+=s)}return r}function va(t,r){if(0===r||!t)return"";for(var i,n=0,a=0;(i=E[t+a>>0],n|=i,0!=i||r)&&(a++,!r||a!=r););if(r||(r=a),i="",128>n){for(;0<r;)n=String.fromCharCode.apply(String,E.subarray(t,t+Math.min(r,1024))),i=i?i+n:n,t+=1024,r-=1024;return i}return e.UTF8ToString(t)}function Ja(e,t){for(var r,i,n,a,o,f,s="";;){if(!(r=e[t++]))return s;128&r?(i=63&e[t++],192==(224&r)?s+=String.fromCharCode((31&r)<<6|i):(n=63&e[t++],224==(240&r)?r=(15&r)<<12|i<<6|n:(a=63&e[t++],240==(248&r)?r=(7&r)<<18|i<<12|n<<6|a:(o=63&e[t++],248==(252&r)?r=(3&r)<<24|i<<18|n<<12|a<<6|o:(f=63&e[t++],r=(1&r)<<30|i<<24|n<<18|a<<12|o<<6|f))),65536>r?s+=String.fromCharCode(r):(r-=65536,s+=String.fromCharCode(55296|r>>10,56320|1023&r)))):s+=String.fromCharCode(r)}}function Ka(e,t,r,i){if(!(0<i))return 0;var n=r;i=r+i-1;for(var a=0;a<e.length;++a){var o=e.charCodeAt(a);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a)),127>=o){if(r>=i)break;t[r++]=o}else{if(2047>=o){if(r+1>=i)break;t[r++]=192|o>>6}else{if(65535>=o){if(r+2>=i)break;t[r++]=224|o>>12}else{if(2097151>=o){if(r+3>=i)break;t[r++]=240|o>>18}else{if(67108863>=o){if(r+4>=i)break;t[r++]=248|o>>24}else{if(r+5>=i)break;t[r++]=252|o>>30,t[r++]=128|o>>24&63}t[r++]=128|o>>18&63}t[r++]=128|o>>12&63}t[r++]=128|o>>6&63}t[r++]=128|63&o}}return t[r]=0,r-n}function La(e){for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++r)),127>=i?++t:t=2047>=i?t+2:65535>=i?t+3:2097151>=i?t+4:67108863>=i?t+5:t+6}return t}function Ma(t){function r(e,i,n){i=i||1/0;var a,o="",f=[];if("N"===t[s]){for(s++,"K"===t[s]&&s++,a=[];"E"!==t[s];)if("S"===t[s]){s++;var d=t.indexOf("_",s);a.push(u[t.sub
|
||
|
|
return Fa?void 0!==Ga&&!Ga.p||!Ha?n.R(e):Ea(e):n.Ra(e)},e.Pointer_stringify=va,e.AsciiToString=function(e){for(var t="";;){var r=y[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}},e.stringToAscii=function(e,t){return Ia(e,t,!1)},e.UTF8ArrayToString=Ja,e.UTF8ToString=function(e){return Ja(E,e)},e.stringToUTF8Array=Ka,e.stringToUTF8=function(e,t,r){return Ka(e,E,t,r)},e.lengthBytesUTF8=La,e.UTF16ToString=function(e){for(var t=0,r="";;){var i=z[e+2*t>>1];if(0==i)return r;++t,r+=String.fromCharCode(i)}},e.stringToUTF16=function(e,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;r-=2;var i=t;r=r<2*e.length?r/2:e.length;for(var n=0;n<r;++n)z[t>>1]=e.charCodeAt(n),t+=2;return z[t>>1]=0,t-i},e.lengthBytesUTF16=function(e){return 2*e.length},e.UTF32ToString=function(e){for(var t=0,r="";;){var i=C[e+4*t>>2];if(0==i)return r;++t,65536<=i?(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i)):r+=String.fromCharCode(i)}},e.stringToUTF32=function(e,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var i=t;r=i+r-4;for(var n=0;n<e.length;++n){var a=e.charCodeAt(n);if(55296<=a&&57343>=a)var o=e.charCodeAt(++n),a=65536+((1023&a)<<10)|1023&o;if(C[t>>2]=a,(t+=4)+4>r)break}return C[t>>2]=0,t-i},e.lengthBytesUTF32=function(e){for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);55296<=i&&57343>=i&&++r,t+=4}return t},e.stackTrace=function(){return Oa()};var y,E,z,Ra,C,Sa,Ba,Ca,Ta=0,la=0,Fa=!1,Ua=0,m=0,Va=0,Wa=0,r=0,Ya;try{(Ya=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get))(new ArrayBuffer(4))}catch(e){Ya=function(e){return e.byteLength}}for(var $a=e.TOTAL_STACK||5242880,t=e.TOTAL_MEMORY||16777216,F=65536;F<t||F<2*$a;)F=16777216>F?2*F:F+16777216;F=Math.max(F,16777216),F!==t&&(t=F),assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support");var buffer;buffer=new ArrayBuffer(t),y=new Int8Array(buffer),z=new Int16Array(buffer),C=new Int32Array(buffer),E=new Uint8Array(buffer),Ra=new Uint16Array(buffer),Sa=new Uint32Array(buffer),Ba=new Float32Array(buffer),Ca=new Float64Array(buffer),C[0]=255,assert(255===E[0]&&0===E[3],"Typed arrays 2 must be run on a little-endian system"),e.HEAP=void 0,e.buffer=buffer,e.HEAP8=y,e.HEAP16=z,e.HEAP32=C,e.HEAPU8=E,e.HEAPU16=Ra,e.HEAPU32=Sa,e.HEAPF32=Ba,e.HEAPF64=Ca;var bb=[],cb=[],db=[],H=[],eb=[],Ha=!1;e.addOnPreRun=fb,e.addOnInit=function(e){cb.unshift(e)},e.addOnPreMain=function(e){db.unshift(e)},e.addOnExit=function(e){H.unshift(e)},e.addOnPostRun=gb,e.intArrayFromString=hb,e.intArrayToString=function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];255<i&&(i&=255),t.push(String.fromCharCode(i))}return t.join("")},e.writeStringToMemory=ua,e.writeArrayToMemory=ta,e.writeAsciiToMemory=Ia,Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){var r=65535&e,i=65535&t;return r*i+((e>>>16)*i+r*(t>>>16)<<16)|0}),Math.Jd=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;32>t;t++)if(e&1<<31-t)return t;return 32}),Math.Ad=Math.clz32;var xa=Math.abs,Aa=Math.ceil,za=Math.floor,ya=Math.min,I=0,ib=null,jb=null;e.addRunDependency=kb,e.removeRunDependency=lb,e.preloadedImages={},e.preloadedAudios={},Ta=8,la=Ta+5888,cb.push(),D([124,0,0,0,98,7,0,0,124,0,0,0,111,7,0,0,164,0,0,0,124,7,0,0,16,0,0,0,0,0,0,0,164,0,0,0,157,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,227,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,191,7,0,0,56,0,0,0,0,0,0,0,164,0,0,0,5,8,0,0,40,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,40,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,88,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,114,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,1,0,0,236,1,0,0,236,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0
|
||
|
|
return t=fs.readlinkSync(t),t=Ob.relative(Ob.resolve(e.A.pa.root),t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}}},n:{open:function(e){var t=P.B(e.g);try{32768==(61440&e.g.mode)&&(e.V=fs.openSync(t,P.$a(e.flags)))}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},close:function(e){try{32768==(61440&e.g.mode)&&e.V&&fs.closeSync(e.V)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},read:function(e,t,r,i,n){if(0===i)return 0;var a,o=new Buffer(i);try{a=fs.readSync(e.V,o,0,i,n)}catch(e){throw new L(J[e.code])}if(0<a)for(e=0;e<a;e++)t[r+e]=o[e];return a},write:function(e,t,r,i,n){t=new Buffer(t.subarray(r,r+i));var a;try{a=fs.writeSync(e.V,t,0,i,n)}catch(e){throw new L(J[e.code])}return a},G:function(e,t,r){if(1===r)t+=e.position;else if(2===r&&32768==(61440&e.g.mode))try{t+=fs.fstatSync(e.V).size}catch(e){throw new L(J[e.code])}if(0>t)throw new L(J.q);return t}}};D(1,"i32*",2),D(1,"i32*",2),D(1,"i32*",2);var Pb=null,Qb=[null],Rb=[],Sb=1,Q=null,Tb=!0,R={},L=null,Mb={},$b={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},Kb={open:function(e){e.n=Qb[e.g.rdev].n,e.n.open&&e.n.open(e)},G:function(){throw new L(J.ia)}},qc,vc={},Zb,dc,lc,wc=0,yc={};e._i64Add=zc;var Ac=1;e._memcpy=Bc;var Y=null,Hc="",Lc=0,Fc=null,Kc=0,Dc=0,Ec=0,Pc=0,Mc=[],Rc={},Gc,Nc,Sc=!1,Tc=!1,Uc=[],cd=!1,dd=void 0,ed=void 0,kd=0,od=[],Wc,Xc,Yc,Zc,jd;if(pc(),Q=Array(4096),ec(M,"/"),V("/tmp"),V("/home"),V("/home/web_user"),function(){V("/dev"),Gb(259,{read:function(){return 0},write:function(e,t,r,i){return i}}),hc("/dev/null",259),Fb(1280,Ib),Fb(1536,Jb),hc("/dev/tty",1280),hc("/dev/tty1",1536);var e;if("undefined"!=typeof crypto){var t=new Uint8Array(1);e=function(){return crypto.getRandomValues(t),t[0]}}else e=da?function(){return require("crypto").randomBytes(1)[0]}:function(){return 256*Math.random()|0};W("/dev","random",e),W("/dev","urandom",e),V("/dev/shm"),V("/dev/shm/tmp")}(),V("/proc"),V("/proc/self"),V("/proc/self/fd"),ec({A:function(){var e=Lb("/proc/self","fd",16895,73);return e.k={lookup:function(e,t){var r=Rb[+t];if(!r)throw new L(J.ea);var i={parent:null,A:{Oa:"fake"},k:{readlink:function(){return r.path}}};return i.parent=i}},e}},"/proc/self/fd"),cb.unshift(function(){if(!e.noFSInit&&!qc){assert(!qc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),qc=!0,pc(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?W("/dev","stdin",e.stdin):ic("/dev/tty","/dev/stdin"),e.stdout?W("/dev","stdout",null,e.stdout):ic("/dev/tty","/dev/stdout"),e.stderr?W("/dev","stderr",null,e.stderr):ic("/dev/tty1","/dev/stderr");var t=kc("/dev/stdin","r");assert(0===t.fd,"invalid handle for stdin ("+t.fd+")"),t=kc("/dev/stdout","w"),assert(1===t.fd,"invalid handle for stdout ("+t.fd+")"),t=kc("/dev/stderr","w"),assert(2===t.fd,"invalid handle for stderr ("+t.fd+")")}}),db.push(function(){Tb=!1}),H.push(function(){qc=!1;var t=e._fflush;for(t&&t(0),t=0;t<Rb.length;t++){var r=Rb[t];r&&mc(r)}}),e.FS_createFolder=function(e,t,r,i){return e=K("string"==typeof e?e:T(e),t),V(e,rc(r,i))},e.FS_createPath=function(e,t){e="string"==typeof e?e:T(e);for(var r=t.split("/").reverse();r.length;){var i=r.pop();if(i){var n=K(e,i);try{V(n)}catch(e){}e=n}}return n},e.FS_createDataFile=tc,e.FS_createPreloadedFile=function(t,r,i,n,a,o,f,s,c,u){function h(i){function h(e){u&&u(),s||tc(t,r,e,n,a,c),o&&o(),lb()}var l=!1;e.preloadPlugins.forEach(function(e){!l&&e.canHandle(d)&&(e.handle(i,d,h,function(){f&&f(),lb()}),l=!0)}),l||h(i)}Vc();var d=r?Db(K(t,r)):t;kb(),"string"==typeof i?nd(i,function(e){h(e)},f):h(i)},e.FS_createLazyFile=function(e,t,r,i,n){function a(){this.oa=!1,this.Y=[]}var o,f;if(a.prototype.get=function(e){if(!(e>this.length-1||0>e)){var t=e%this.chunkSize;return this.gb(e/this.chunkSize|0)[t]}},a.prototype.pb=function(e){this.gb=e},a.prototype.Ca=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(200<=e.status&&300>e.status||304===e.st
|
||
|
|
;f=c+232|0;g=c+252|0;l[g>>2]=0;l[g+4>>2]=0;l[g+8>>2]=0;h[g+12>>0]=0;g=c+268|0;l[g>>2]=0;l[g+4>>2]=0;l[g+8>>2]=0;h[g+12>>0]=0;g=c+284|0;l[g>>2]=0;l[g+4>>2]=0;l[g+8>>2]=0;h[g+12>>0]=0;l[n>>2]=0;l[n+4>>2]=0;l[n+8>>2]=0;l[n+12>>2]=0;l[n+16>>2]=0;h[n+20>>0]=0;l[a>>2]=0;l[a+4>>2]=0;l[a+8>>2]=0;l[a+12>>2]=0;l[a+16>>2]=0;h[a+20>>0]=0;l[m>>2]=0;l[m+4>>2]=0;l[m+8>>2]=0;l[m+12>>2]=0;l[m+16>>2]=0;h[m+20>>0]=0;l[o>>2]=0;l[o+4>>2]=0;l[o+8>>2]=0;l[o+12>>2]=0;l[o+16>>2]=0;h[o+20>>0]=0;l[f>>2]=0;l[f+4>>2]=0;l[f+8>>2]=0;l[f+12>>2]=0;h[f+16>>0]=0;do{if(((t>>>0>=74?((p[e>>0]|0)<<8|(p[e+1>>0]|0)|0)==18552:0)?((p[e+2>>0]|0)<<8|(p[e+3>>0]|0))>>>0>=74:0)?((p[e+7>>0]|0)<<16|(p[e+6>>0]|0)<<24|(p[e+8>>0]|0)<<8|(p[e+9>>0]|0))>>>0<=t>>>0:0){l[s>>2]=e;l[r>>2]=e;l[i>>2]=t;if(xt(c)|0){r=l[s>>2]|0;if((p[r+39>>0]|0)<<8|(p[r+40>>0]|0)){if(!(Bt(c)|0))break;if(!(It(c)|0))break;r=l[s>>2]|0}if(!((p[r+55>>0]|0)<<8|(p[r+56>>0]|0))){g=c;w=y;return g|0}if(Ct(c)|0?Rt(c)|0:0){g=c;w=y;return g|0}}}else v=7}while(0);if((v|0)==7)l[s>>2]=0;Dt(c);if(!(c&7)){Pi[l[104>>2]&1](c,0,0,1,l[27]|0)|0;g=0;w=y;return g|0}else{l[d>>2]=1154;l[d+4>>2]=2499;l[d+8>>2]=1516;wr(u,1100,d)|0;gr(u,b)|0;g=0;w=y;return g|0}return 0}function gt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,f=0,s=0,c=0,u=0;u=w;w=w+544|0;c=u;s=u+24|0;a=l[e+88>>2]|0;f=(p[a+70+(n<<2)+1>>0]|0)<<16|(p[a+70+(n<<2)>>0]|0)<<24|(p[a+70+(n<<2)+2>>0]|0)<<8|(p[a+70+(n<<2)+3>>0]|0);o=n+1|0;if(o>>>0<(p[a+16>>0]|0)>>>0)a=(p[a+70+(o<<2)+1>>0]|0)<<16|(p[a+70+(o<<2)>>0]|0)<<24|(p[a+70+(o<<2)+2>>0]|0)<<8|(p[a+70+(o<<2)+3>>0]|0);else a=l[e+8>>2]|0;if(a>>>0>f>>>0){s=e+4|0;s=l[s>>2]|0;s=s+f|0;c=a-f|0;c=wt(e,s,c,t,r,i,n)|0;w=u;return c|0}l[c>>2]=1154;l[c+4>>2]=3704;l[c+8>>2]=1792;wr(s,1100,c)|0;gr(s,u+16|0)|0;s=e+4|0;s=l[s>>2]|0;s=s+f|0;c=a-f|0;c=wt(e,s,c,t,r,i,n)|0;w=u;return c|0}function wt(e,t,r,i,n,a,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;var f=0,s=0,c=0,u=0;u=l[e+88>>2]|0;s=((p[u+12>>0]|0)<<8|(p[u+13>>0]|0))>>>o;c=((p[u+14>>0]|0)<<8|(p[u+15>>0]|0))>>>o;s=s>>>0>1?(s+3|0)>>>2:1;c=c>>>0>1?(c+3|0)>>>2:1;u=u+18|0;o=h[u>>0]|0;o=ue(o<<24>>24==0|o<<24>>24==9?8:16,s)|0;if(a)if((a&3|0)==0&o>>>0<=a>>>0)o=a;else{e=0;return e|0}if((ue(o,c)|0)>>>0>n>>>0){e=0;return e|0}a=(s+1|0)>>>1;f=(c+1|0)>>>1;if(!r){e=0;return e|0}l[e+92>>2]=t;l[e+96>>2]=t;l[e+104>>2]=r;l[e+100>>2]=t+r;l[e+108>>2]=0;l[e+112>>2]=0;switch(p[u>>0]|0|0){case 0:{Tt(e,i,n,o,s,c,a,f)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{Pt(e,i,n,o,s,c,a,f)|0;e=1;return e|0}case 9:{Lt(e,i,n,o,s,c,a,f)|0;e=1;return e|0}case 8:case 7:{jt(e,i,n,o,s,c,a,f)|0;e=1;return e|0}default:{e=0;return e|0}}return 0}function _t(e,t){e=e|0;t=t|0;var r=0,i=0;i=w;w=w+48|0;r=i;l[r>>2]=40;ct(e,t,r)|0;w=i;return l[r+4>>2]|0}function kt(e,t){e=e|0;t=t|0;var r=0,i=0;i=w;w=w+48|0;r=i;l[r>>2]=40;ct(e,t,r)|0;w=i;return l[r+8>>2]|0}function St(e,t){e=e|0;t=t|0;var r=0,i=0;i=w;w=w+48|0;r=i;l[r>>2]=40;ct(e,t,r)|0;w=i;return l[r+12>>2]|0}function Et(e,t){e=e|0;t=t|0;var r=0,i=0;i=w;w=w+48|0;r=i;l[r>>2]=40;ct(e,t,r)|0;w=i;return l[r+32>>2]|0}function Mt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0,f=0,s=0,c=0;s=w;w=w+576|0;o=s+56|0;a=s+40|0;n=s+64|0;c=s;l[c>>2]=40;ct(e,t,c)|0;i=(((l[c+4>>2]|0)>>>r)+3|0)>>>2;t=(((l[c+8>>2]|0)>>>r)+3|0)>>>2;r=c+32|0;e=l[r+4>>2]|0;do{switch(l[r>>2]|0){case 0:{if(!e)e=8;else f=13;break}case 1:{if(!e)f=12;else f=13;break}case 2:{if(!e)f=12;else f=13;break}case 3:{if(!e)f=12;else f=13;break}case 4:{if(!e)f=12;else f=13;break}case 5:{if(!e)f=12;else f=13;break}case 6:{if(!e)f=12;else f=13;break}case 7:{if(!e)f=12;else f=13;break}case 8:{if(!e)f=12;else f=13;break}case 9:{if(!e)e=8;else f=13;break}default:f=13}}while(0);if((f|0)==12)e=16;else if((f|0)==13){l[a>>2]=1154;l[a+4>>2]=2663;l[a+8>>2]=1535;wr(n,1100,a)|0;gr(n,o)|0;e=0}c=ue(ue(t,i)|0,e)|0;w=s;return c|0}function At(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,f=0,s=0,c=0,u=0,h=0,d=0,p=0,b=0,v=0;b=w;w=w+608|0;d=b+80|0;p=b+64|0;f=b+56|0;o=b+40|0;u=b+88|0;v=b;h=b+84|0;l[v>>2]=40;ct(e,t,v)|0;s=(((l[v+4>>2]|0)>>>n)+3|0)>>>2;v=v+32|0;a=l[v+4>>2]|0;do{switch(l[v>>2]|0){case 0:{if(!a)a=8;else c=13;break}case 1:{i
|
||
|
|
;t=t|0;r=r|0;return kr(e,2147483647,t,r)|0}function Er(e){e=e|0;return 0}function Mr(e){e=e|0;return}function Ar(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,f=0,s=0;s=w;w=w+16|0;f=s;o=t&255;h[f>>0]=o;i=e+16|0;n=l[i>>2]|0;if(!n)if(!(Rr(e)|0)){n=l[i>>2]|0;a=4}else r=-1;else a=4;do{if((a|0)==4){i=e+20|0;a=l[i>>2]|0;if(a>>>0<n>>>0?(r=t&255,(r|0)!=(h[e+75>>0]|0)):0){l[i>>2]=a+1;h[a>>0]=o;break}if((Ai[l[e+36>>2]&7](e,f,1)|0)==1)r=p[f>>0]|0;else r=-1}}while(0);w=s;return r|0}function xr(e){e=e|0;var t=0,r=0;t=w;w=w+16|0;r=t;l[r>>2]=l[e+60>>2];e=hr(Ae(6,r|0)|0)|0;w=t;return e|0}function Br(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0;n=w;w=w+32|0;a=n;i=n+20|0;l[a>>2]=l[e+60>>2];l[a+4>>2]=0;l[a+8>>2]=t;l[a+12>>2]=i;l[a+16>>2]=r;if((hr(He(140,a|0)|0)|0)<0){l[i>>2]=-1;e=-1}else e=l[i>>2]|0;w=n;return e|0}function Ir(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0,f=0,s=0,c=0,u=0,h=0,d=0,p=0,b=0;b=w;w=w+48|0;h=b+16|0;u=b;i=b+32|0;d=e+28|0;n=l[d>>2]|0;l[i>>2]=n;p=e+20|0;n=(l[p>>2]|0)-n|0;l[i+4>>2]=n;l[i+8>>2]=t;l[i+12>>2]=r;s=e+60|0;c=e+44|0;t=2;n=n+r|0;while(1){if(!(l[52]|0)){l[h>>2]=l[s>>2];l[h+4>>2]=i;l[h+8>>2]=t;o=hr(Je(146,h|0)|0)|0}else{Ke(7,e|0);l[u>>2]=l[s>>2];l[u+4>>2]=i;l[u+8>>2]=t;o=hr(Je(146,u|0)|0)|0;Ee(0)}if((n|0)==(o|0)){n=6;break}if((o|0)<0){n=8;break}n=n-o|0;a=l[i+4>>2]|0;if(o>>>0<=a>>>0)if((t|0)==2){l[d>>2]=(l[d>>2]|0)+o;f=a;t=2}else f=a;else{f=l[c>>2]|0;l[d>>2]=f;l[p>>2]=f;f=l[i+12>>2]|0;o=o-a|0;i=i+8|0;t=t+-1|0}l[i>>2]=(l[i>>2]|0)+o;l[i+4>>2]=f-o}if((n|0)==6){h=l[c>>2]|0;l[e+16>>2]=h+(l[e+48>>2]|0);e=h;l[d>>2]=e;l[p>>2]=e}else if((n|0)==8){l[e+16>>2]=0;l[d>>2]=0;l[p>>2]=0;l[e>>2]=l[e>>2]|32;if((t|0)==2)r=0;else r=r-(l[i+4>>2]|0)|0}w=b;return r|0}function Cr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=w;w=w+80|0;i=n;l[e+36>>2]=3;if((l[e>>2]&64|0)==0?(l[i>>2]=l[e+60>>2],l[i+4>>2]=21505,l[i+8>>2]=n+12,(Me(54,i|0)|0)!=0):0)h[e+75>>0]=-1;i=Ir(e,t,r)|0;w=n;return i|0}function Rr(e){e=e|0;var t=0,r=0;t=e+74|0;r=h[t>>0]|0;h[t>>0]=r+255|r;t=l[e>>2]|0;if(!(t&8)){l[e+8>>2]=0;l[e+4>>2]=0;t=l[e+44>>2]|0;l[e+28>>2]=t;l[e+20>>2]=t;l[e+16>>2]=t+(l[e+48>>2]|0);t=0}else{l[e>>2]=t|32;t=-1}return t|0}function Tr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;a=t&255;i=(r|0)!=0;e:do{if(i&(e&3|0)!=0){n=t&255;while(1){if((h[e>>0]|0)==n<<24>>24){o=6;break e}e=e+1|0;r=r+-1|0;i=(r|0)!=0;if(!(i&(e&3|0)!=0)){o=5;break}}}else o=5}while(0);if((o|0)==5)if(i)o=6;else r=0;e:do{if((o|0)==6){n=t&255;if((h[e>>0]|0)!=n<<24>>24){i=ue(a,16843009)|0;t:do{if(r>>>0>3)while(1){a=l[e>>2]^i;if((a&-2139062144^-2139062144)&a+-16843009)break;e=e+4|0;r=r+-4|0;if(r>>>0<=3){o=11;break t}}else o=11}while(0);if((o|0)==11)if(!r){r=0;break}while(1){if((h[e>>0]|0)==n<<24>>24)break e;e=e+1|0;r=r+-1|0;if(!r){r=0;break}}}}}while(0);return((r|0)!=0?e:0)|0}function Pr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0;t=e+20|0;a=e+28|0;if((l[t>>2]|0)>>>0>(l[a>>2]|0)>>>0?(Ai[l[e+36>>2]&7](e,0,0)|0,(l[t>>2]|0)==0):0)t=-1;else{o=e+4|0;r=l[o>>2]|0;i=e+8|0;n=l[i>>2]|0;if(r>>>0<n>>>0)Ai[l[e+40>>2]&7](e,r-n|0,1)|0;l[e+16>>2]=0;l[a>>2]=0;l[t>>2]=0;l[i>>2]=0;l[o>>2]=0;t=0}return t|0}function Lr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,f=0,s=0,c=0,u=0,b=0,v=0,y=0,g=0,_=0,S=0,E=0,M=0,A=0,x=0,B=0,I=0,C=0,R=0,T=0,P=0,L=0,j=0,D=0,U=0,O=0,N=0,F=0,z=0,K=0,X=0,H=0,J=0,V=0,Y=0,W=0,G=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,oe=0;oe=w;w=w+624|0;te=oe+24|0;ie=oe+16|0;re=oe+588|0;G=oe+576|0;ee=oe;V=oe+536|0;ae=oe+8|0;ne=oe+528|0;U=(e|0)!=0;O=V+40|0;J=O;V=V+39|0;Y=ae+4|0;W=G+12|0;G=G+11|0;Z=re;Q=W;$=Q-Z|0;N=-2-Z|0;F=Q+2|0;z=te+288|0;K=re+9|0;X=K;H=re+8|0;a=0;_=t;o=0;t=0;e:while(1){do{if((a|0)>-1)if((o|0)>(2147483647-a|0)){a=ur()|0;l[a>>2]=75;a=-1;break}else{a=o+a|0;break}}while(0);o=h[_>>0]|0;if(!(o<<24>>24)){D=245;break}else f=_;t:while(1){switch(o<<24>>24){case 37:{o=f;D=9;break t}case 0:{o=f;break t}default:{}}j=f+1|0;o=h[j>>0]|0;f=j}t:do{if((D|0)==9)while(1){D=0;if((h[o+1>>0]|0)!=37)break t;f=f+1|0;o=o+2|0;if((h[o>>0]|0)==37)D=9;else break}}while(0);E=f-_|0;if(U?(l[e>>2]&32|0)==0:0)mr(_,E,e)|0;if((f|0)!=(_|0)){_=o;o=E;continue}u=o+1|0;f=h[u>>0]|0;s=(f<<24>>24)+-48|0;if(s>>>0<10){j=(h[o+2>>0]|0)==36;u=j?o+3|
|
||
|
|
if(o>>>0<(l[155]|0)>>>0)ze();t=o+16|0;if((l[t>>2]|0)==(v|0))l[t>>2]=b;else l[o+20>>2]=b;if(!b)break}r=l[155]|0;if(b>>>0<r>>>0)ze();l[b+24>>2]=o;t=l[e+(p+8)>>2]|0;do{if(t)if(t>>>0<r>>>0)ze();else{l[b+16>>2]=t;l[t+24>>2]=b;break}}while(0);t=l[e+(p+12)>>2]|0;if(t)if(t>>>0<(l[155]|0)>>>0)ze();else{l[b+20>>2]=t;l[t+24>>2]=b;break}}}else{i=l[e+p>>2]|0;r=l[e+(p|4)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<(l[155]|0)>>>0)ze();if((l[i+12>>2]|0)!=(v|0))ze()}if((r|0)==(i|0)){l[151]=l[151]&~(1<<n);break}if((r|0)!=(t|0)){if(r>>>0<(l[155]|0)>>>0)ze();t=r+8|0;if((l[t>>2]|0)==(v|0))d=t;else ze()}else d=r+8|0;l[i+12>>2]=r;l[d>>2]=i}}while(0);l[w+4>>2]=a|1;l[w+a>>2]=a;if((w|0)==(l[156]|0)){l[153]=a;return}}else{l[t>>2]=r&-2;l[w+4>>2]=a|1;l[w+a>>2]=a}t=a>>>3;if(a>>>0<256){r=t<<1;n=644+(r<<2)|0;i=l[151]|0;t=1<<t;if(i&t){t=644+(r+2<<2)|0;r=l[t>>2]|0;if(r>>>0<(l[155]|0)>>>0)ze();else{y=t;m=r}}else{l[151]=i|t;y=644+(r+2<<2)|0;m=n}l[y>>2]=w;l[m+12>>2]=w;l[w+8>>2]=m;l[w+12>>2]=n;return}t=a>>>8;if(t)if(a>>>0>16777215)n=31;else{y=(t+1048320|0)>>>16&8;m=t<<y;v=(m+520192|0)>>>16&4;m=m<<v;n=(m+245760|0)>>>16&2;n=14-(v|y|n)+(m<<n>>>15)|0;n=a>>>(n+7|0)&1|n<<1}else n=0;t=908+(n<<2)|0;l[w+28>>2]=n;l[w+20>>2]=0;l[w+16>>2]=0;r=l[152]|0;i=1<<n;e:do{if(r&i){t=l[t>>2]|0;t:do{if((l[t+4>>2]&-8|0)!=(a|0)){n=a<<((n|0)==31?0:25-(n>>>1)|0);while(1){r=t+16+(n>>>31<<2)|0;i=l[r>>2]|0;if(!i)break;if((l[i+4>>2]&-8|0)==(a|0)){g=i;break t}else{n=n<<1;t=i}}if(r>>>0<(l[155]|0)>>>0)ze();else{l[r>>2]=w;l[w+24>>2]=t;l[w+12>>2]=w;l[w+8>>2]=w;break e}}else g=t}while(0);t=g+8|0;r=l[t>>2]|0;m=l[155]|0;if(r>>>0>=m>>>0&g>>>0>=m>>>0){l[r+12>>2]=w;l[t>>2]=w;l[w+8>>2]=r;l[w+12>>2]=g;l[w+24>>2]=0;break}else ze()}else{l[152]=r|i;l[t>>2]=w;l[w+24>>2]=t;l[w+12>>2]=w;l[w+8>>2]=w}}while(0);w=(l[159]|0)+-1|0;l[159]=w;if(!w)t=1060;else return;while(1){t=l[t>>2]|0;if(!t)break;else t=t+8|0}l[159]=-1;return}function zr(e,t){e=e|0;t=t|0;var r=0,i=0;if(!e){e=qr(t)|0;return e|0}if(t>>>0>4294967231){e=ur()|0;l[e>>2]=12;e=0;return e|0}r=Xr(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(r){e=r+8|0;return e|0}r=qr(t)|0;if(!r){e=0;return e|0}i=l[e+-4>>2]|0;i=(i&-8)-((i&3|0)==0?8:4)|0;Qr(r|0,e|0,(i>>>0<t>>>0?i:t)|0)|0;Fr(e);e=r;return e|0}function Kr(e){e=e|0;var t=0;if(!e){t=0;return t|0}e=l[e+-4>>2]|0;t=e&3;if((t|0)==1){t=0;return t|0}t=(e&-8)-((t|0)==0?8:4)|0;return t|0}function Xr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,f=0,s=0,c=0,u=0,h=0,d=0,p=0,b=0;p=e+4|0;b=l[p>>2]|0;s=b&-8;u=e+s|0;f=l[155]|0;r=b&3;if(!((r|0)!=1&e>>>0>=f>>>0&e>>>0<u>>>0))ze();i=e+(s|4)|0;n=l[i>>2]|0;if(!(n&1))ze();if(!r){if(t>>>0<256){e=0;return e|0}if(s>>>0>=(t+4|0)>>>0?(s-t|0)>>>0<=l[271]<<1>>>0:0)return e|0;e=0;return e|0}if(s>>>0>=t>>>0){r=s-t|0;if(r>>>0<=15)return e|0;l[p>>2]=b&1|t|2;l[e+(t+4)>>2]=r|3;l[i>>2]=l[i>>2]|1;Hr(e+t|0,r);return e|0}if((u|0)==(l[157]|0)){r=(l[154]|0)+s|0;if(r>>>0<=t>>>0){e=0;return e|0}d=r-t|0;l[p>>2]=b&1|t|2;l[e+(t+4)>>2]=d|1;l[157]=e+t;l[154]=d;return e|0}if((u|0)==(l[156]|0)){i=(l[153]|0)+s|0;if(i>>>0<t>>>0){e=0;return e|0}r=i-t|0;if(r>>>0>15){l[p>>2]=b&1|t|2;l[e+(t+4)>>2]=r|1;l[e+i>>2]=r;i=e+(i+4)|0;l[i>>2]=l[i>>2]&-2;i=e+t|0}else{l[p>>2]=b&1|i|2;i=e+(i+4)|0;l[i>>2]=l[i>>2]|1;i=0;r=0}l[153]=r;l[156]=i;return e|0}if(n&2){e=0;return e|0}h=(n&-8)+s|0;if(h>>>0<t>>>0){e=0;return e|0}d=h-t|0;a=n>>>3;do{if(n>>>0>=256){o=l[e+(s+24)>>2]|0;a=l[e+(s+12)>>2]|0;do{if((a|0)==(u|0)){i=e+(s+20)|0;r=l[i>>2]|0;if(!r){i=e+(s+16)|0;r=l[i>>2]|0;if(!r){c=0;break}}while(1){n=r+20|0;a=l[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=l[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<f>>>0)ze();else{l[i>>2]=0;c=r;break}}else{n=l[e+(s+8)>>2]|0;if(n>>>0<f>>>0)ze();r=n+12|0;if((l[r>>2]|0)!=(u|0))ze();i=a+8|0;if((l[i>>2]|0)==(u|0)){l[r>>2]=a;l[i>>2]=n;c=a;break}else ze()}}while(0);if(o){r=l[e+(s+28)>>2]|0;i=908+(r<<2)|0;if((u|0)==(l[i>>2]|0)){l[i>>2]=c;if(!c){l[152]=l[152]&~(1<<r);break}}else{if(o>>>0<(l[155]|0)>>>0)ze();r=o+16|0;if((l[r>>2]|0)==(u|0))l[r>>2]=c;else l[o+20>>2]=c;if(!c)break}i=l[155]|0;if(c>>>0<i>>>0)ze();l[c+24>>2]=o;r=l[e+(s+16)>>2]|0;do{if(r)if(r>>>0<i>>>0)ze();else{l[c+16>>2]=r;l[r+24>>2]=c;break}}while(0);r=l[e+(s+20)>
|
||
|
|
a.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),Z.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),Z.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),Z.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),Z.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t|=0,r|=0,!i){j(this,e,t,r,Math.pow(2,8*r)-1,0)}var n=1,a=0;for(this[t]=255&e;++a<r&&(n*=256);)this[t+a]=e/n&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t|=0,r|=0,!i){j(this,e,t,r,Math.pow(2,8*r)-1,0)}var n=r-1,a=1;for(this[t+n]=255&e;--n>=0&&(a*=256);)this[t+n]=e/a&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);j(this,e,t,r,n-1,-n)}var a=0,o=1,f=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===f&&0!==this[t+a-1]&&(f=1),this[t+a]=(e/o>>0)-f&255;return t+r},a.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);j(this,e,t,r,n-1,-n)}var a=r-1,o=1,f=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===f&&0!==this[t+a+1]&&(f=1),this[t+a]=(e/o>>0)-f&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds")
|
||
|
|
this.buffer=new Array(this.blockSize),this.bufferOff=0}var n=e("minimalistic-assert");t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<r;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,i=(this.bufferOff+e.length)/this.blockSize|0,n=new Array(i*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=new Array(i*this.blockSize);i>0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},i.prototype.final=function(e){var t;e&&(t=this.update(e));var r;return r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":36}],33:[function(e,t,r){"use strict";function i(){this.tmp=new Array(2),this.keys=null}function n(e){c.call(this,e);var t=new i;this._desState=t,this.deriveKeys(t,e.key)}var a=e("minimalistic-assert"),o=e("inherits"),f=e("../des"),s=f.utils,c=f.Cipher;o(n,c),t.exports=n,n.create=function(e){return new n(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];n.prototype.deriveKeys=function(e,t){e.keys=new Array(32),a.equal(t.length,this.blockSize,"Invalid key length");var r=s.readUInt32BE(t,0),i=s.readUInt32BE(t,4);s.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var n=0;n<e.keys.length;n+=2){var o=u[n>>>1];r=s.r28shl(r,o),i=s.r28shl(i,o),s.pc2(r,i,e.keys,n)}},n.prototype._update=function(e,t,r,i){var n=this._desState,a=s.readUInt32BE(e,t),o=s.readUInt32BE(e,t+4);s.ip(a,o,n.tmp,0),a=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,a,o,n.tmp,0):this._decrypt(n,a,o,n.tmp,0),a=n.tmp[0],o=n.tmp[1],s.writeUInt32BE(r,a,i),s.writeUInt32BE(r,o,i+4)},n.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i<e.length;i++)e[i]=r;return!0},n.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)a.equal(e[r],t);return e.slice(0,e.length-t)},n.prototype._encrypt=function(e,t,r,i,n){for(var a=t,o=r,f=0;f<e.keys.length;f+=2){var c=e.keys[f],u=e.keys[f+1];s.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var h=s.substitute(c,u),d=s.permute(h),l=o;o=(a^d)>>>0,a=l}s.rip(o,a,i,n)},n.prototype._decrypt=function(e,t,r,i,n){for(var a=r,o=t,f=e.keys.length-2;f>=0;f-=2){var c=e.keys[f],u=e.keys[f+1];s.expand(a,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var h=s.substitute(c,u),d=s.permute(h),l=a;a=(o^d)>>>0,o=l}s.rip(a,o,i,n)}},{"../des":30,inherits:208,"minimalistic-assert":36}],34:[function(e,t,r){"use strict";function i(e,t){a.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),n=t.slice(16,24);this.ciphers="encrypt"===e?[c.create({type:"encrypt",key:r}),c.create({type:"decrypt",key:i}),c.create({type:"encrypt",key:n})]:[c.create({type:"decrypt",key:n}),c.create({type:"encrypt",key:i}),c.create({type:"decrypt",key:r})]}function n(e){s.call(this,e);var t=new i(this.type,this.options.key);this._edeState=t}var a=e("minimalistic-assert"),o=e("inherits"),f=e("../des"),s=f.Cipher,c=f.DES;o(n,s),t.exports=n,n.create=fun
|
||
|
|
;c=(a+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(O,G),n=Math.imul(O,Z),n=n+Math.imul(N,G)|0,a=Math.imul(N,Z),i=i+Math.imul(j,$)|0,n=n+Math.imul(j,ee)|0,n=n+Math.imul(D,$)|0,a=a+Math.imul(D,ee)|0,i=i+Math.imul(T,re)|0,n=n+Math.imul(T,ie)|0,n=n+Math.imul(P,re)|0,a=a+Math.imul(P,ie)|0,i=i+Math.imul(I,ae)|0,n=n+Math.imul(I,oe)|0,n=n+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,i=i+Math.imul(A,se)|0,n=n+Math.imul(A,ce)|0,n=n+Math.imul(x,se)|0,a=a+Math.imul(x,ce)|0,i=i+Math.imul(S,he)|0,n=n+Math.imul(S,de)|0,n=n+Math.imul(E,he)|0,a=a+Math.imul(E,de)|0,i=i+Math.imul(w,pe)|0,n=n+Math.imul(w,be)|0,n=n+Math.imul(_,pe)|0,a=a+Math.imul(_,be)|0;var Be=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(O,$),n=Math.imul(O,ee),n=n+Math.imul(N,$)|0,a=Math.imul(N,ee),i=i+Math.imul(j,re)|0,n=n+Math.imul(j,ie)|0,n=n+Math.imul(D,re)|0,a=a+Math.imul(D,ie)|0,i=i+Math.imul(T,ae)|0,n=n+Math.imul(T,oe)|0,n=n+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,i=i+Math.imul(I,se)|0,n=n+Math.imul(I,ce)|0,n=n+Math.imul(C,se)|0,a=a+Math.imul(C,ce)|0,i=i+Math.imul(A,he)|0,n=n+Math.imul(A,de)|0,n=n+Math.imul(x,he)|0,a=a+Math.imul(x,de)|0,i=i+Math.imul(S,pe)|0,n=n+Math.imul(S,be)|0,n=n+Math.imul(E,pe)|0,a=a+Math.imul(E,be)|0;var Ie=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(O,re),n=Math.imul(O,ie),n=n+Math.imul(N,re)|0,a=Math.imul(N,ie),i=i+Math.imul(j,ae)|0,n=n+Math.imul(j,oe)|0,n=n+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,i=i+Math.imul(T,se)|0,n=n+Math.imul(T,ce)|0,n=n+Math.imul(P,se)|0,a=a+Math.imul(P,ce)|0,i=i+Math.imul(I,he)|0,n=n+Math.imul(I,de)|0,n=n+Math.imul(C,he)|0,a=a+Math.imul(C,de)|0,i=i+Math.imul(A,pe)|0,n=n+Math.imul(A,be)|0,n=n+Math.imul(x,pe)|0,a=a+Math.imul(x,be)|0;var Ce=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,i=Math.imul(O,ae),n=Math.imul(O,oe),n=n+Math.imul(N,ae)|0,a=Math.imul(N,oe),i=i+Math.imul(j,se)|0,n=n+Math.imul(j,ce)|0,n=n+Math.imul(D,se)|0,a=a+Math.imul(D,ce)|0,i=i+Math.imul(T,he)|0,n=n+Math.imul(T,de)|0,n=n+Math.imul(P,he)|0,a=a+Math.imul(P,de)|0,i=i+Math.imul(I,pe)|0,n=n+Math.imul(I,be)|0,n=n+Math.imul(C,pe)|0,a=a+Math.imul(C,be)|0;var Re=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(O,se),n=Math.imul(O,ce),n=n+Math.imul(N,se)|0,a=Math.imul(N,ce),i=i+Math.imul(j,he)|0,n=n+Math.imul(j,de)|0,n=n+Math.imul(D,he)|0,a=a+Math.imul(D,de)|0,i=i+Math.imul(T,pe)|0,n=n+Math.imul(T,be)|0,n=n+Math.imul(P,pe)|0,a=a+Math.imul(P,be)|0;var Te=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(O,he),n=Math.imul(O,de),n=n+Math.imul(N,he)|0,a=Math.imul(N,de),i=i+Math.imul(j,pe)|0,n=n+Math.imul(j,be)|0,n=n+Math.imul(D,pe)|0,a=a+Math.imul(D,be)|0;var Pe=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(O,pe),n=Math.imul(O,be),n=n+Math.imul(N,pe)|0,a=Math.imul(N,be);var Le=(c+i|0)+((8191&n)<<13)|0;return c=(a+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,s[0]=ve,s[1]=ye,s[2]=me,s[3]=ge,s[4]=we,s[5]=_e,s[6]=ke,s[7]=Se,s[8]=Ee,s[9]=Me,s[10]=Ae,s[11]=xe,s[12]=Be,s[13]=Ie,s[14]=Ce,s[15]=Re,s[16]=Te,s[17]=Pe,s[18]=Le,0!==c&&(s[19]=c,r.length++),r};Math.imul||(E=c),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?E(this,e,t):r<63?c(this,e,t):r<1024?u(this,e,t):h(this,e,t)},d.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},d.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},d.prototype.permute=function(e,t,r,i,n,a){for(var o=0;o<a;o++)i[o]=t[e[o]],n[o]=r[e[o]]},d.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var o=1;o<n;o<<=1)for(var f=o<<1,s=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),u=0;u<n;u+=f)for(var h=s,d=c,l=0;l<o;l++){var p=r[u+l],b=i[u+l],v=r[u+l+o],y=i[u+l+o],m=h*v-d*y;y=h*y+d*v,v=m,r[u+l]=p+v,i[u+l]=b+y,r[u+l+o]=p-v,i[u+l+o]=b-y,l!==f&&(m=s*h-c*d,d=s*d+c*h,h=m)}},d.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return
|
||
|
|
t=f.redMul(o.redSub(a)),r=f.redSqr().redSub(f).redSub(f);else{var s=this.z.redSqr(),c=f.redSub(s).redISub(s);e=i.redSub(n).redISub(a).redMul(c),t=f.redMul(o.redSub(a)),r=f.redMul(c)}}else{var o=n.redAdd(a),s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=o.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(o)).redMul(c),t=this.curve._mulC(o).redMul(n.redISub(a)),r=o.redMul(c)}return this.curve.point(e,t,r)},n.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},n.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),o=n.redSub(i),f=n.redAdd(i),s=r.redAdd(t),c=a.redMul(o),u=f.redMul(s),h=a.redMul(s),d=o.redMul(f);return this.curve.point(c,u,d,h)},n.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),f=this.curve.d.redMul(a).redMul(o),s=n.redSub(f),c=n.redAdd(f),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),h=i.redMul(s).redMul(u);return this.curve.twisted?(t=i.redMul(c).redMul(o.redSub(this.curve._mulA(a))),r=s.redMul(c)):(t=i.redMul(c).redMul(o.redSub(a)),r=this.curve._mulC(s).redMul(c)),this.curve.point(h,t,r)},n.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},n.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},n.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},n.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},n.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},n.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()},n.prototype.getY=function(){return this.normalize(),this.y.fromRed()},n.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},n.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},n.prototype.toP=n.prototype.normalize,n.prototype.mixedAdd=n.prototype.add},{"../../elliptic":43,"../curve":46,"bn.js":41,inherits:208}],46:[function(e,t,r){"use strict";var i=r;i.base=e("./base"),i.short=e("./short"),i.mont=e("./mont"),i.edwards=e("./edwards")},{"./base":44,"./edwards":45,"./mont":47,"./short":48}],47:[function(e,t,r){"use strict";function i(e){s.call(this,"mont",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function n(e,t,r){s.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(t,16),this.z=new o(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var a=e("../curve"),o=e("bn.js"),f=e("inherits"),s=a.base,c=e("../../elliptic"),u=c.utils;f(i,s),t.exports=i,i.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},f(n,s.BasePoint),i.prototype.decodePoint=function(e,t){return this.point(u.toArray(e,t),1)},i.prototype.point=function(e,t){return new n(this,e,t)},i.prototype.pointFromJSON=function(e){return n.fromJSON(this,e)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(e,t){return new n(e,t[0]
|
||
|
|
e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=f(t.pub)}var n=e("../../elliptic"),a=n.utils,o=a.assert,f=a.parseBytes,s=a.cachedProperty;i.fromPublic=function(e,t){return t instanceof i?t:new i(e,{pub:t})},i.fromSecret=function(e,t){return t instanceof i?t:new i(e,{secret:t})},i.prototype.secret=function(){return this._secret},s(i,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(i,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(i,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i}),s(i,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(i,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(i,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),i.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},i.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},i.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),a.encode(this.secret(),e)},i.prototype.getPublic=function(e){return a.encode(this.pubBytes(),e)},t.exports=i},{"../../elliptic":43}],55:[function(e,t,r){"use strict";function i(e,t){this.eddsa=e,"object"!=typeof t&&(t=c(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),f(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}var n=e("bn.js"),a=e("../../elliptic"),o=a.utils,f=o.assert,s=o.cachedProperty,c=o.parseBytes;s(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=i},{"../../elliptic":43,"bn.js":41}],56:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397
|
||
|
|
"big"===this.endian){for(var a=8;a<this.padLength;a++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=e>>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else{i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0;for(var a=8;a<this.padLength;a++)i[n++]=0}return i}},{"../hash":59}],61:[function(e,t,r){function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(a.toArray(t,r))}var n=e("../hash"),a=n.utils,o=a.assert;t.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(var t=0;t<e.length;t++)e[t]^=54;this.inner=(new this.Hash).update(e);for(var t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"../hash":59}],62:[function(e,t,r){function i(){if(!(this instanceof i))return new i;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function n(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}function a(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function o(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var f=e("../hash"),s=f.utils,c=s.rotl32,u=s.sum32,h=s.sum32_3,d=s.sum32_4,l=f.common.BlockHash;s.inherits(i,l),r.ripemd160=i,i.blockSize=512,i.outSize=160,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(e,t){for(var r=this.h[0],i=this.h[1],f=this.h[2],s=this.h[3],l=this.h[4],m=r,g=i,w=f,_=s,k=l,S=0;S<80;S++){var E=u(c(d(r,n(S,i,f,s),e[p[S]+t],a(S)),v[S]),l);r=l,l=s,s=c(f,10),f=i,i=E,E=u(c(d(m,n(79-S,g,w,_),e[b[S]+t],o(S)),y[S]),k),m=k,k=_,_=c(w,10),w=g,g=E}E=h(this.h[1],f,_),this.h[1]=h(this.h[2],s,k),this.h[2]=h(this.h[3],l,m),this.h[3]=h(this.h[4],r,g),this.h[4]=h(this.h[0],i,w),this.h[0]=E},i.prototype._digest=function(e){return"hex"===e?s.toHex32(this.h,"little"):s.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"../hash":59}],63:[function(e,t,r){function i(){if(!(this instanceof i))return new i;V.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Y,this.W=new Array(64)}function n(){if(!(this instanceof n))return new n;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}function a(){if(!(this instanceof a))return new a;V.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=W,this.W=new Array(160)}function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}function f(){if(!(this instanceof f))return new f;V.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520
|
||
|
|
var i=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=o[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,h=parseInt(a.split("-")[1],10)/8,d=c.pbkdf2Sync(t,i,n,h),l=s.createDecipheriv(a,d,f),p=[];return p.push(l.update(u)),p.push(l.final()),r.concat(p)}var a=e("./asn1"),o=e("./aesid.json"),f=e("./fixProc"),s=e("browserify-aes"),c=e("pbkdf2");t.exports=i,i.signature=a.signature}).call(this,e("buffer").Buffer)},{"./aesid.json":69,"./asn1":70,"./fixProc":72,"browserify-aes":91,buffer:4,pbkdf2:158}],74:[function(e,t,r){var i=r;i.bignum=e("bn.js"),i.define=e("./asn1/api").define,i.base=e("./asn1/base"),i.constants=e("./asn1/constants"),i.decoders=e("./asn1/decoders"),i.encoders=e("./asn1/encoders")},{"./asn1/api":75,"./asn1/base":77,"./asn1/constants":81,"./asn1/decoders":83,"./asn1/encoders":86,"bn.js":41}],75:[function(e,t,r){function i(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}var n=e("../asn1"),a=e("inherits");r.define=function(e,t){return new i(e,t)},i.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){r=function(e){this._initNamed(e)}}return a(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},i.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},i.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},i.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},i.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"../asn1":74,inherits:208,vm:230}],76:[function(e,t,r){function i(e,t){if(o.call(this,t),!f.isBuffer(e))return void this.error("Input not Buffer");this.base=e,this.offset=0,this.length=e.length}function n(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof n||(e=new n(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=f.byteLength(e);else{if(!f.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}var a=e("inherits"),o=e("../base").Reporter,f=e("buffer").Buffer;a(i,o),r.DecoderBuffer=i,i.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},i.prototype.restore=function(e){var t=new i(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},i.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new i(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},i.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=n,n.prototype.join=function(e,t){return e||(e=new f(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):f.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},{"../base":77,buffer:4,inherits:208}],77:[function(e,t,r){var i=r;i.Reporter=e("./reporter").Reporter,i.DecoderBuffer=e("./buffer").DecoderBuffer,i.EncoderBuffer=e("./buffer").EncoderBuffer,i.Node=e("./node")},{"./buffer":76,"./node":78,"./reporter":79}],78:[function(e,t,r){function i(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=
|
||
|
|
if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},n.prototype.flush=function(){if(this.cache.length)return this.cache};var b={ECB:e("./modes/ecb"),CBC:e("./modes/cbc"),CFB:e("./modes/cfb"),CFB8:e("./modes/cfb8"),CFB1:e("./modes/cfb1"),OFB:e("./modes/ofb"),CTR:e("./modes/ctr"),GCM:e("./modes/ctr")};r.createDecipher=f,r.createDecipheriv=o}).call(this,e("buffer").Buffer)},{"./aes":89,"./authCipher":90,"./modes":95,"./modes/cbc":96,"./modes/cfb":97,"./modes/cfb1":98,"./modes/cfb8":99,"./modes/ctr":100,"./modes/ecb":101,"./modes/ofb":102,"./streamCipher":105,buffer:4,"cipher-base":104,evp_bytestokey:106,inherits:208}],93:[function(e,t,r){(function(t){function i(e,r,a){if(!(this instanceof i))return new i(e,r,a);s.call(this),this._cache=new n,this._cipher=new f.AES(r),this._prev=new t(a.length),a.copy(this._prev),this._mode=e,this._autopadding=!0}function n(){if(!(this instanceof n))return new n;this.cache=new t("")}function a(e,r,n){var a=u[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=new t(n)),"string"==typeof r&&(r=new t(r)),r.length!==a.key/8)throw new TypeError("invalid key length "+r.length);if(n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new d(p[a.mode],r,n):"auth"===a.type?new l(p[a.mode],r,n):new i(p[a.mode],r,n)}function o(e,t){var r=u[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=h(t,!1,r.key,r.iv);return a(e,i.key,i.iv)}var f=e("./aes"),s=e("cipher-base"),c=e("inherits"),u=e("./modes"),h=e("evp_bytestokey"),d=e("./streamCipher"),l=e("./authCipher");c(i,s),i.prototype._update=function(e){this._cache.add(e);for(var r,i,n=[];r=this._cache.get();)i=this._mode.encrypt(this,r),n.push(i);return t.concat(n)},i.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if("10101010101010101010101010101010"!==e.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},i.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},n.prototype.add=function(e){this.cache=t.concat([this.cache,e])},n.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},n.prototype.flush=function(){for(var e=16-this.cache.length,r=new t(e),i=-1;++i<e;)r.writeUInt8(e,i);return t.concat([this.cache,r])};var p={ECB:e("./modes/ecb"),CBC:e("./modes/cbc"),CFB:e("./modes/cfb"),CFB8:e("./modes/cfb8"),CFB1:e("./modes/cfb1"),OFB:e("./modes/ofb"),CTR:e("./modes/ctr"),GCM:e("./modes/ctr")};r.createCipheriv=a,r.createCipher=o}).call(this,e("buffer").Buffer)},{"./aes":89,"./authCipher":90,"./modes":95,"./modes/cbc":96,"./modes/cfb":97,"./modes/cfb1":98,"./modes/cfb8":99,"./modes/ctr":100,"./modes/ecb":101,"./modes/ofb":102,"./streamCipher":105,buffer:4,"cipher-base":104,evp_bytestokey:106,inherits:208}],94:[function(e,t,r){(function(e){function r(t){this.h=t,this.state=new e(16),this.state.fill(0),this.cache=new e("")}function i(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function n(t){t=t.map(a);var r=new e(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r}function a(e){var t;return e>s||e<0?(t=Math.abs(e)%s,e<0?s-t:t):e}function o(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]}var f=new e(16);f.fill(0),t.exports=r,r.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},r.prototype._multiply=function(){for(var e,t,r,a=i(this.h),f=[0,0,0,0],s=-1;++s<128;){for(t=0!=(this.state[~~(s/8)]&1<<7-s%8),t&&(f=o(f,a)),r=0!=(1&a[3]),e=3;e>0;e--)a[e]=a[e]>>>1|(1&a[e-1])<<31;a[0]=a[0]>>>1,r&&(a[0]=a[0]^225<<24)}this.state=n(f)},r.prototype.update=function(t){this.cache=e.concat([this.cache,t]);for(var r;this.cache.length>=16;)r=this.cache.slice(0,16),this.cache=this.cache.sl
|
||
|
|
this._g=b+this._g|0,this._h=v+this._h|0},i.prototype._hash=function(){var e=new r(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=i}).call(this,e("buffer").Buffer)},{"./hash":142,buffer:4,inherits:208}],148:[function(e,t,r){(function(r){function i(){this.init(),this._w=f,o.call(this,128,112)}var n=e("inherits"),a=e("./sha512"),o=e("./hash"),f=new Array(160);n(i,a),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){function e(e,r,i){t.writeInt32BE(e,i),t.writeInt32BE(r,i+4)}var t=new r(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=i}).call(this,e("buffer").Buffer)},{"./hash":142,"./sha512":149,buffer:4,inherits:208}],149:[function(e,t,r){(function(r){function i(){this.init(),this._w=v,p.call(this,128,112)}function n(e,t,r){return r^e&(t^r)}function a(e,t,r){return e&t|r&(e|t)}function o(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function s(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function c(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function u(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function d(e,t){return e>>>0<t>>>0?1:0}var l=e("inherits"),p=e("./hash"),b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],v=new Array(160);l(i,p),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,l=0|this._ch,p=0|this._dh,v=0|this.
|
||
|
|
187:[function(e,t,r){(function(t){function i(e,r,a){if(!(this instanceof i))return new i(e,r,a);c.call(this),this._cache=new n,this._last=void 0,this._cipher=new s.AES(r),this._prev=new t(a.length),a.copy(this._prev),this._mode=e,this._autopadding=!0}function n(){if(!(this instanceof n))return new n;this.cache=new t("")}function a(e){for(var t=e[15],r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function o(e,r,n){var a=h[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=new t(n)),"string"==typeof r&&(r=new t(r)),r.length!==a.key/8)throw new TypeError("invalid key length "+r.length);if(n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new d(b[a.mode],r,n,!0):"auth"===a.type?new l(b[a.mode],r,n,!0):new i(b[a.mode],r,n)}function f(e,t){var r=h[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=p(t,!1,r.key,r.iv);return o(e,i.key,i.iv)}var s=e("./aes"),c=e("cipher-base"),u=e("inherits"),h=e("./modes"),d=e("./streamCipher"),l=e("./authCipher"),p=e("evp_bytestokey");u(i,c),i.prototype._update=function(e){this._cache.add(e);for(var r,i,n=[];r=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,r),n.push(i);return t.concat(n)},i.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return a(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},i.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},n.prototype.add=function(e){this.cache=t.concat([this.cache,e])},n.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},n.prototype.flush=function(){if(this.cache.length)return this.cache};var b={ECB:e("./modes/ecb"),CBC:e("./modes/cbc"),CFB:e("./modes/cfb"),CFB8:e("./modes/cfb8"),CFB1:e("./modes/cfb1"),OFB:e("./modes/ofb"),CTR:e("./modes/ctr"),GCM:e("./modes/ctr")};r.createDecipher=f,r.createDecipheriv=o}).call(this,e("buffer").Buffer)},{"./aes":184,"./authCipher":185,"./modes":190,"./modes/cbc":191,"./modes/cfb":192,"./modes/cfb1":193,"./modes/cfb8":194,"./modes/ctr":195,"./modes/ecb":196,"./modes/ofb":197,"./streamCipher":200,buffer:4,"cipher-base":199,evp_bytestokey:201,inherits:208}],188:[function(e,t,r){(function(t){function i(e,r,a){if(!(this instanceof i))return new i(e,r,a);s.call(this),this._cache=new n,this._cipher=new f.AES(r),this._prev=new t(a.length),a.copy(this._prev),this._mode=e,this._autopadding=!0}function n(){if(!(this instanceof n))return new n;this.cache=new t("")}function a(e,r,n){var a=u[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=new t(n)),"string"==typeof r&&(r=new t(r)),r.length!==a.key/8)throw new TypeError("invalid key length "+r.length);if(n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new d(p[a.mode],r,n):"auth"===a.type?new l(p[a.mode],r,n):new i(p[a.mode],r,n)}function o(e,t){var r=u[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=h(t,!1,r.key,r.iv);return a(e,i.key,i.iv)}var f=e("./aes"),s=e("cipher-base"),c=e("inherits"),u=e("./modes"),h=e("evp_bytestokey"),d=e("./streamCipher"),l=e("./authCipher");c(i,s),i.prototype._update=function(e){this._cache.add(e);for(var r,i,n=[];r=this._cache.get();)i=this._mode.encrypt(this,r),n.push(i);return t.concat(n)},i.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if("10101010101010101010101010101010"!==e.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},i.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},n.prototype.add=function(e){this.cache=t.concat([this.cache,e])},n.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16)
|
||
|
|
a.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n<i;n++)r[n].emit("unpipe",this);return this}var a=B(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},a.prototype.on=function(e,t){var r=T.prototype.on.call(this,e,t);if("data"===e)this._readableState.flowing!==!1&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&d(this):C(y,this))}return r},a.prototype.addListener=a.prototype.on,a.prototype.resume=function(){var e=this._readableState;return e.flowing||(O("resume"),e.flowing=!0,m(this,e)),this},a.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this},a.prototype.wrap=function(e){var t=this._readableState,r=!1,i=this;e.on("end",function(){if(O("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&i.push(e)}i.push(null)}),e.on("data",function(n){if(O("wrapped data"),t.decoder&&(n=t.decoder.write(n)),(!t.objectMode||null!==n&&void 0!==n)&&(t.objectMode||n&&n.length)){i.push(n)||(r=!0,e.pause())}});for(var n in e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));return x(["error","close","destroy","pause","resume"],function(t){e.on(t,i.emit.bind(i,t))}),i._read=function(t){O("wrapped _read",t),r&&(r=!1,e.resume())},i},a._fromList=_}).call(this,e("_process"))},{"./_stream_duplex":213,"./internal/streams/BufferList":218,_process:211,buffer:4,"buffer-shims":219,"core-util-is":220,events:207,inherits:208,isarray:221,"process-nextick-args":222,"string_decoder/":229,util:3}],216:[function(e,t,r){"use strict";function i(e){this.afterTransform=function(t,r){return n(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function n(e,t,r){var i=e._transformState;i.transforming=!1;var n=i.writecb;if(!n)return e.emit("error",new Error("no writecb in Transform class"));i.writechunk=null,i.writecb=null,null!==r&&void 0!==r&&e.push(r),n(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);f.call(this,e),this._transformState=new i(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,r){o(t,e,r)}):o(t)})}function o(e,t,r){if(t)return e.emit("error",t);null!==r&&void 0!==r&&e.push(r);var i=e._writableState,n=e._transformState;if(i.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.exports=a;var f=e("./_stream_duplex"),s=e("core-util-is");s.inherits=e("inherits"),s.inherits(a,f),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,f.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":2
|
||
|
|
//# sourceMappingURL=pixi-compressed-textures.min.js.map
|