iwmlib/3rdparty/pixi/pixi-compressed-textures.min.js

25 lines
497 KiB
JavaScript
Raw Normal View History

2019-03-21 09:57:27 +01:00
/*!
* pixi-compressed-textures - v1.1.8
* Compiled Sun, 11 Mar 2018 12:30:26 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(f,o){if(!r[f]){if(!t[f]){var s="function"==typeof require&&require;if(!o&&s)return s(f,!0);if(a)return a(f,!0);var c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[f]={exports:{}};t[f][0].call(u.exports,function(e){var r=t[f][1][e];return n(r||e)},u,u.exports,e,t,r,i)}return r[f].exports}for(var a="function"==typeof require&&require,f=0;f<i.length;f++)n(i[f]);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":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":case"i8":return y[e>>0];case"i16":return z[e>>1];case"i32":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,f;"number"==typeof e?(a=!0,f=e):(a=!1,f=e.length);var o="string"==typeof t?t:null;if(r=4==r?i:[Ea,n.aa,n.Ra,n.R][void 0===r?2:r](Math.max(f,o?1:t.length)),a){for(i=r,assert(0==(3&r)),e=r+(-4&f);i<e;i+=4)C[i>>2]=0;for(e=r+f;i<e;)y[i++>>0]=0;return r}if("i8"===o)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;i=0;for(var s,c;i<f;){var u=e[i];"function"==typeof u&&(u=n.Id(u)),a=o||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,f,o,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:(f=63&e[t++],248==(252&r)?r=(3&r)<<24|i<<18|n<<12|a<<6|f:(o=63&e[t++],r=(1&r)<<30|i<<24|n<<18|a<<12|f<<6|o))),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 f=e.charCodeAt(a);if(55296<=f&&57343>=f&&(f=65536+((1023&f)<<10)|1023&e.charCodeAt(++a)),127>=f){if(r>=i)break;t[r++]=f}else{if(2047>=f){if(r+1>=i)break;t[r++]=192|f>>6}else{if(65535>=f){if(r+2>=i)break;t[r++]=224|f>>12}else{if(2097151>=f){if(r+3>=i)break;t[r++]=240|f>>18}else{if(67108863>=f){if(r+4>=i)break;t[r++]=248|f>>24}else{if(r+5>=i)break;t[r++]=252|f>>30,t[r++]=128|f>>24&63}t[r++]=128|f>>18&63}t[r++]=128|f>>12&63}t[r++]=128|f>>6&63}t[r++]=128|63&f}}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,f="",o=[];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.substring(s,d)||0]||"?"),s=d+1}else if("C"===t[s])
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 f=e.charCodeAt(++n),a=65536+((1023&a)<<10)|1023&f;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,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3
}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,f=new Buffer(i);try{a=fs.readSync(e.V,f,0,i,n)}catch(e){throw new L(J[e.code])}if(0<a)for(e=0;e<a;e++)t[r+e]=f[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,f,o,s,c,u){function h(i){function h(e){u&&u(),s||tc(t,r,e,n,a,c),f&&f(),lb()}var l=!1;e.preloadPlugins.forEach(function(e){!l&&e.canHandle(d)&&(e.handle(i,d,h,function(){o&&o(),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)},o):h(i)},e.FS_createLazyFile=function(e,t,r,i,n){function a(){this.oa=!1,this.Y=[]}var f,o;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.status))throw Error("Couldn't load "+r+". Status: "+e.status);var t,i=
;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[y>>2]=0;l[y+4>>2]=0;l[y+8>>2]=0;l[y+12>>2]=0;l[y+16>>2]=0;h[y+20>>0]=0;l[f>>2]=0;l[f+4>>2]=0;l[f+8>>2]=0;l[f+12>>2]=0;l[f+16>>2]=0;h[f+20>>0]=0;l[o>>2]=0;l[o+4>>2]=0;l[o+8>>2]=0;l[o+12>>2]=0;h[o+16>>0]=0;do{if(((t>>>0>=74?((b[e>>0]|0)<<8|(b[e+1>>0]|0)|0)==18552:0)?((b[e+2>>0]|0)<<8|(b[e+3>>0]|0))>>>0>=74:0)?((b[e+7>>0]|0)<<16|(b[e+6>>0]|0)<<24|(b[e+8>>0]|0)<<8|(b[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((b[r+39>>0]|0)<<8|(b[r+40>>0]|0)){if(!(It(c)|0))break;if(!(Rt(c)|0))break;r=l[s>>2]|0}if(!((b[r+55>>0]|0)<<8|(b[r+56>>0]|0))){g=c;w=v;return g|0}if(Bt(c)|0?Ct(c)|0:0){g=c;w=v;return g|0}}}else m=7}while(0);if((m|0)==7)l[s>>2]=0;Dt(c);if(!(c&7)){Li[l[104>>2]&1](c,0,0,1,l[27]|0)|0;g=0;w=v;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,p)|0;g=0;w=v;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,f=0,o=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;o=(b[a+70+(n<<2)+1>>0]|0)<<16|(b[a+70+(n<<2)>>0]|0)<<24|(b[a+70+(n<<2)+2>>0]|0)<<8|(b[a+70+(n<<2)+3>>0]|0);f=n+1|0;if(f>>>0<(b[a+16>>0]|0)>>>0)a=(b[a+70+(f<<2)+1>>0]|0)<<16|(b[a+70+(f<<2)>>0]|0)<<24|(b[a+70+(f<<2)+2>>0]|0)<<8|(b[a+70+(f<<2)+3>>0]|0);else a=l[e+8>>2]|0;if(a>>>0>o>>>0){s=e+4|0;s=l[s>>2]|0;s=s+o|0;c=a-o|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+o|0;c=a-o|0;c=wt(e,s,c,t,r,i,n)|0;w=u;return c|0}function wt(e,t,r,i,n,a,f){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;f=f|0;var o=0,s=0,c=0,u=0;u=l[e+88>>2]|0;s=((b[u+12>>0]|0)<<8|(b[u+13>>0]|0))>>>f;c=((b[u+14>>0]|0)<<8|(b[u+15>>0]|0))>>>f;s=s>>>0>1?(s+3|0)>>>2:1;c=c>>>0>1?(c+3|0)>>>2:1;u=u+18|0;f=h[u>>0]|0;f=ue(f<<24>>24==0|f<<24>>24==9?8:16,s)|0;if(a)if((a&3|0)==0&f>>>0<=a>>>0)f=a;else{e=0;return e|0}if((ue(f,c)|0)>>>0>n>>>0){e=0;return e|0}a=(s+1|0)>>>1;o=(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(b[u>>0]|0|0){case 0:{Pt(e,i,n,f,s,c,a,o)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{Lt(e,i,n,f,s,c,a,o)|0;e=1;return e|0}case 9:{Tt(e,i,n,f,s,c,a,o)|0;e=1;return e|0}case 8:case 7:{jt(e,i,n,f,s,c,a,o)|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 Mt(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 Et(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0,o=0,s=0,c=0;s=w;w=w+576|0;f=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 o=13;break}case 1:{if(!e)o=12;else o=13;break}case 2:{if(!e)o=12;else o=13;break}case 3:{if(!e)o=12;else o=13;break}case 4:{if(!e)o=12;else o=13;break}case 5:{if(!e)o=12;else o=13;break}case 6:{if(!e)o=12;else o=13;break}case 7:{if(!e)o=12;else o=13;break}case 8:{if(!e)o=12;else o=13;break}case 9:{if(!e)e=8;else o=13;break}default:o=13}}while(0);if((o|0)==12)e=16;else if((o|0)==13){l[a>>2]=1154;l[a+4>>2]=2663;l[a+8>>2]=1535;wr(n,1100,a)|0;gr(n,f)|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,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0,m=0;p=w;w=w+608|0;d=p+80|0;b=p+64|0;o=p+56|0;f=p+40|0;u=p+88|0;m=p;h=p+84|0;l[m>>2]=40;ct(e,t,m)|0;s=(((l[m+4>>2]|0)>>>n)+3|0)>>>2;m=m+32|0;a=l[m+4>>2]|0;do{switch(l[m>>2]|0){case 0:{if(!a)a=8;else c=13;break}case 1:{if(!a)c=12;else c=13;break}case 2:{if(!a)c=12;else c=13;break}case 3:{if(!a)c=12;else c=
e=e|0;return}function Ar(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0;s=w;w=w+16|0;o=s;f=t&255;h[o>>0]=f;i=e+16|0;n=l[i>>2]|0;if(!n)if(!(Cr(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]=f;break}if((Ai[l[e+36>>2]&7](e,o,1)|0)==1)r=b[o>>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 Ir(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(Je(140,a|0)|0)|0)<0){l[i>>2]=-1;e=-1}else e=l[i>>2]|0;w=n;return e|0}function Rr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0;p=w;w=w+48|0;h=p+16|0;u=p;i=p+32|0;d=e+28|0;n=l[d>>2]|0;l[i>>2]=n;b=e+20|0;n=(l[b>>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;f=hr(Xe(146,h|0)|0)|0}else{He(7,e|0);l[u>>2]=l[s>>2];l[u+4>>2]=i;l[u+8>>2]=t;f=hr(Xe(146,u|0)|0)|0;Me(0)}if((n|0)==(f|0)){n=6;break}if((f|0)<0){n=8;break}n=n-f|0;a=l[i+4>>2]|0;if(f>>>0<=a>>>0)if((t|0)==2){l[d>>2]=(l[d>>2]|0)+f;o=a;t=2}else o=a;else{o=l[c>>2]|0;l[d>>2]=o;l[b>>2]=o;o=l[i+12>>2]|0;f=f-a|0;i=i+8|0;t=t+-1|0}l[i>>2]=(l[i>>2]|0)+f;l[i+4>>2]=o-f}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[b>>2]=e}else if((n|0)==8){l[e+16>>2]=0;l[d>>2]=0;l[b>>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=p;return r|0}function Br(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,(Ee(54,i|0)|0)!=0):0)h[e+75>>0]=-1;i=Rr(e,t,r)|0;w=n;return i|0}function Cr(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 Pr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=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){f=6;break e}e=e+1|0;r=r+-1|0;i=(r|0)!=0;if(!(i&(e&3|0)!=0)){f=5;break}}}else f=5}while(0);if((f|0)==5)if(i)f=6;else r=0;e:do{if((f|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){f=11;break t}}else f=11}while(0);if((f|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 Lr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=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{f=e+4|0;r=l[f>>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[f>>2]=0;t=0}return t|0}function Tr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0,o=0,s=0,c=0,u=0,p=0,m=0,v=0,g=0,_=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0,z=0,F=0,H=0,K=0,J=0,X=0,Y=0,V=0,W=0,G=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,fe=0;fe=w;w=w+624|0;te=fe+24|0;ie=fe+16|0;re=fe+588|0;G=fe+576|0;ee=fe;Y=fe+536|0;ae=fe+8|0;ne=fe+528|0;U=(e|0)!=0;O=Y+40|0;X=O;Y=Y+39|0;V=ae+4|0;W=G+12|0;G=G+11|0;Z=re;Q=W;$=Q-Z|0;q=-2-Z|0;z=Q+2|0;F=te+288|0;H=re+9|0;K=H;J=re+8|0;a=0;_=t;f=0;t=0;e:while(1){do{if((a|0)>-1)if((f|0)>(2147483647-a|0)){a=ur()|0;l[a>>2]=75;a=-1;break}else{a=f+a|0;break}}while(0);f=h[_>>0]|0;if(!(f<<24>>24)){D=245;break}else o=_;t:while(1){switch(f<<24>>24){case 37:{f=o;D=9;break t}case 0:{f=o;break t}default:{}}j=o+1|0;f=h[j>>0]|0;o=j}t:do{if((D|0)==9)while(1){D=0;if((h[f+1>>0]|0)!=37)break t;o=o+1|0;f=f+2|0;if((h[f>>0]|0)==37)D=9;else break}}while(0);M=o-_|0;if(U?(l[e>>2]&32|0)==0:0)yr(_,M,e)|0;if((o|0)!=(_|0)){_=f;f=M;continue}u=f+1|0;o=h[u>>0]|0;s=(o<<24>>24)+-48|0;if(s>>>0<10){j=(h[f+2>>0]|0)==36;u=j?f+3|0:u;o=h[u>>0]|0;v=j?s:-1;t=j?1:t}else v=-1;f=o<<24>>24;t:do{if((f&-32|0)==32){s=0;while(
;if(!p)break}r=l[155]|0;if(p>>>0<r>>>0)Fe();l[p+24>>2]=f;t=l[e+(b+8)>>2]|0;do{if(t)if(t>>>0<r>>>0)Fe();else{l[p+16>>2]=t;l[t+24>>2]=p;break}}while(0);t=l[e+(b+12)>>2]|0;if(t)if(t>>>0<(l[155]|0)>>>0)Fe();else{l[p+20>>2]=t;l[t+24>>2]=p;break}}}else{i=l[e+b>>2]|0;r=l[e+(b|4)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<(l[155]|0)>>>0)Fe();if((l[i+12>>2]|0)!=(m|0))Fe()}if((r|0)==(i|0)){l[151]=l[151]&~(1<<n);break}if((r|0)!=(t|0)){if(r>>>0<(l[155]|0)>>>0)Fe();t=r+8|0;if((l[t>>2]|0)==(m|0))d=t;else Fe()}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)Fe();else{v=t;y=r}}else{l[151]=i|t;v=644+(r+2<<2)|0;y=n}l[v>>2]=w;l[y+12>>2]=w;l[w+8>>2]=y;l[w+12>>2]=n;return}t=a>>>8;if(t)if(a>>>0>16777215)n=31;else{v=(t+1048320|0)>>>16&8;y=t<<v;m=(y+520192|0)>>>16&4;y=y<<m;n=(y+245760|0)>>>16&2;n=14-(m|v|n)+(y<<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)Fe();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;y=l[155]|0;if(r>>>0>=y>>>0&g>>>0>=y>>>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 Fe()}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 Fr(e,t){e=e|0;t=t|0;var r=0,i=0;if(!e){e=Nr(t)|0;return e|0}if(t>>>0>4294967231){e=ur()|0;l[e>>2]=12;e=0;return e|0}r=Kr(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(r){e=r+8|0;return e|0}r=Nr(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;zr(e);e=r;return e|0}function Hr(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 Kr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0;b=e+4|0;p=l[b>>2]|0;s=p&-8;u=e+s|0;o=l[155]|0;r=p&3;if(!((r|0)!=1&e>>>0>=o>>>0&e>>>0<u>>>0))Fe();i=e+(s|4)|0;n=l[i>>2]|0;if(!(n&1))Fe();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[b>>2]=p&1|t|2;l[e+(t+4)>>2]=r|3;l[i>>2]=l[i>>2]|1;Jr(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[b>>2]=p&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[b>>2]=p&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[b>>2]=p&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){f=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<o>>>0)Fe();else{l[i>>2]=0;c=r;break}}else{n=l[e+(s+8)>>2]|0;if(n>>>0<o>>>0)Fe();r=n+12|0;if((l[r>>2]|0)!=(u|0))Fe();i=a+8|0;if((l[i>>2]|0)==(u|0)){l[r>>2]=a;l[i>>2]=n;c=a;break}else Fe()}}while(0);if(f){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(f>>>0<(l[155]|0)>>>0)Fe();r=f+16|0;if((l[r>>2]|0)==(u|0))l[r>>2]=c;else l[f+20>>2]=c;if(!c)break}i=l[155]|0;if(c>>>0<i>>>0)Fe();l[c+24>>2]=f;r=l[e+(s+16)>>2]|0;do{if(r)if(r>>>0<i>>>0)Fe();else{l[c+16>>2]=r;l[r+24>>2]=c;break}}while(0);r=l[e+(s+20)>>2]|0;if(r)if(r>>>0<(l[155]|0)>>>0)Fe();else{l[c+20>>2]=r;l[r+24>>2]=c;break}}}else{n=l
;if(31==(31&r)){var a=r;for(r=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:h.tag[r]}}function f(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var f=e.readUInt8(r);if(e.isError(f))return f;i|=f}return i}var o=e("inherits"),s=e("../../asn1"),c=s.base,u=s.bignum,h=s.constants.der;t.exports=i,i.prototype.decode=function(e,t){return e instanceof c.DecoderBuffer||(e=new c.DecoderBuffer(e,t)),this.tree._decode(e,t)},o(n,c.Node),n.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var i=e.save(),n=a(e,'Failed to peek tag: "'+t+'"');return e.isError(n)?n:(e.restore(i),n.tag===t||n.tagStr===t||n.tagStr+"of"===t||r)},n.prototype._decodeTag=function(e,t,r){var i=a(e,'Failed to decode tag of "'+t+'"');if(e.isError(i))return i;var n=f(e,i.primitive,'Failed to get length of "'+t+'"');if(e.isError(n))return n;if(!r&&i.tag!==t&&i.tagStr!==t&&i.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(i.primitive||null!==n)return e.skip(n,'Failed to match body of: "'+t+'"');var o=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(n=e.offset-o.offset,e.restore(o),e.skip(n,'Failed to match body of: "'+t+'"'))},n.prototype._skipUntilEnd=function(e,t){for(;;){var r=a(e,t);if(e.isError(r))return r;var i=f(e,r.primitive,t);if(e.isError(i))return i;var n;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},n.prototype._decodeList=function(e,t,r,i){for(var n=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var f=r.decode(e,"der",i);if(e.isError(f)&&a)break;n.push(f)}return n},n.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var i=e.raw();if(i.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var n="",a=0;a<i.length/2;a++)n+=String.fromCharCode(i.readUInt16BE(2*a));return n}if("numstr"===t){var f=e.raw().toString("ascii");return this._isNumstr(f)?f:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var o=e.raw().toString("ascii");return this._isPrintstr(o)?o:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},n.prototype._decodeObjid=function(e,t,r){for(var i,n=[],a=0;!e.isEmpty();){var f=e.readUInt8();a<<=7,a|=127&f,0==(128&f)&&(n.push(a),a=0)}128&f&&n.push(a);var o=n[0]/40|0,s=n[0]%40;if(i=r?n:[o,s].concat(n.slice(1)),t){var c=t[i.join(" ")];void 0===c&&(c=t[i.join(".")]),void 0!==c&&(i=c)}return i},n.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var i=0|r.slice(0,4),n=0|r.slice(4,6),a=0|r.slice(6,8),f=0|r.slice(8,10),o=0|r.slice(10,12),s=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var i=0|r.slice(0,2),n=0|r.slice(2,4),a=0|r.slice(4,6),f=0|r.slice(6,8),o=0|r.slice(8,10),s=0|r.slice(10,12);i=i<70?2e3+i:1900+i}return Date.UTC(i,n-1,a,f,o,s,0)},n.prototype._decodeNull=function(e){return null},n.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},n.prototype._decodeInt=function(e,t){var r=e.raw(),i=new u(r);return t&&(i=t[i.toString(10)]||i),i},n.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":2,inherits:103}],11:[function(e,t,r){var i=r;i.der=e("./der"),i.pem=e("./pem")},{"./der":10,"./pem":12}],12:[function(e,t,r){function i(e){f.call(this,e),this.enc="pem"}var n=e("inherits"),a=e("buffer").Buffer,f=e("./der");n(i,f),t.exports=i,i.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,s=-1,
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(P,ae)|0,n=n+Math.imul(P,fe)|0,n=n+Math.imul(L,ae)|0,a=a+Math.imul(L,fe)|0,i=i+Math.imul(R,se)|0,n=n+Math.imul(R,ce)|0,n=n+Math.imul(B,se)|0,a=a+Math.imul(B,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,be)|0,n=n+Math.imul(S,pe)|0,n=n+Math.imul(M,be)|0,a=a+Math.imul(M,pe)|0;var Re=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(O,re),n=Math.imul(O,ie),n=n+Math.imul(q,re)|0,a=Math.imul(q,ie),i=i+Math.imul(j,ae)|0,n=n+Math.imul(j,fe)|0,n=n+Math.imul(D,ae)|0,a=a+Math.imul(D,fe)|0,i=i+Math.imul(P,se)|0,n=n+Math.imul(P,ce)|0,n=n+Math.imul(L,se)|0,a=a+Math.imul(L,ce)|0,i=i+Math.imul(R,he)|0,n=n+Math.imul(R,de)|0,n=n+Math.imul(B,he)|0,a=a+Math.imul(B,de)|0,i=i+Math.imul(A,be)|0,n=n+Math.imul(A,pe)|0,n=n+Math.imul(x,be)|0,a=a+Math.imul(x,pe)|0;var Be=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(O,ae),n=Math.imul(O,fe),n=n+Math.imul(q,ae)|0,a=Math.imul(q,fe),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(P,he)|0,n=n+Math.imul(P,de)|0,n=n+Math.imul(L,he)|0,a=a+Math.imul(L,de)|0,i=i+Math.imul(R,be)|0,n=n+Math.imul(R,pe)|0,n=n+Math.imul(B,be)|0,a=a+Math.imul(B,pe)|0;var Ce=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,i=Math.imul(O,se),n=Math.imul(O,ce),n=n+Math.imul(q,se)|0,a=Math.imul(q,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(P,be)|0,n=n+Math.imul(P,pe)|0,n=n+Math.imul(L,be)|0,a=a+Math.imul(L,pe)|0;var Pe=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(O,he),n=Math.imul(O,de),n=n+Math.imul(q,he)|0,a=Math.imul(q,de),i=i+Math.imul(j,be)|0,n=n+Math.imul(j,pe)|0,n=n+Math.imul(D,be)|0,a=a+Math.imul(D,pe)|0;var Le=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,i=Math.imul(O,be),n=Math.imul(O,pe),n=n+Math.imul(q,be)|0,a=Math.imul(q,pe);var Te=(c+i|0)+((8191&n)<<13)|0;return c=(a+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,s[0]=me,s[1]=ve,s[2]=ye,s[3]=ge,s[4]=we,s[5]=_e,s[6]=ke,s[7]=Se,s[8]=Me,s[9]=Ee,s[10]=Ae,s[11]=xe,s[12]=Ie,s[13]=Re,s[14]=Be,s[15]=Ce,s[16]=Pe,s[17]=Le,s[18]=Te,0!==c&&(s[19]=c,r.length++),r};Math.imul||(M=c),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?M(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 f=0;f<a;f++)i[f]=t[e[f]],n[f]=r[e[f]]},d.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var f=1;f<n;f<<=1)for(var o=f<<1,s=Math.cos(2*Math.PI/o),c=Math.sin(2*Math.PI/o),u=0;u<n;u+=o)for(var h=s,d=c,l=0;l<f;l++){var b=r[u+l],p=i[u+l],m=r[u+l+f],v=i[u+l+f],y=h*m-d*v;v=h*v+d*m,m=y,r[u+l]=b+m,i[u+l]=p+v,r[u+l+f]=b-m,i[u+l+f]=p-v,l!==o&&(y=s*h-c*d,d=s*d+c*h,h=y)}},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 1<<n+1+i},d.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},d.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=67108863&n,r=n<67108864?0:n/67108864|0}return e},d.prototype.convert13b=function(e,t,r,n){for(var a=0,f=0;f<t;f++)a+=0|e[f],r[2*f]=8191&a,a>>>=13,r[2*f+1]=8191&a,a>>>=13;for(f=2*t;f<n;++f)r[f]=0;i(0===a),i(0==(-8192&a))},d.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},d.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),a=this.stub(i),f=new Array(i),o=new Array(i),s=new Array(i),c=new Array(i),u=new Array(i),h=new Array(i),d=r.words;d.length=i,this.
r.createCipheriv=a,r.createCipher=f},{"./aes":20,"./authCipher":21,"./modes":33,"./streamCipher":36,"cipher-base":50,evp_bytestokey:86,inherits:103,"safe-buffer":143}],25:[function(e,t,r){function i(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function n(e){var t=f.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=f.alloc(16,0),this.cache=f.allocUnsafe(0)}var f=e("safe-buffer").Buffer,o=f.alloc(16,0);a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,a=i(this.h),f=[0,0,0,0],o=-1;++o<128;){for(t=0!=(this.state[~~(o/8)]&1<<7-o%8),t&&(f[0]^=a[0],f[1]^=a[1],f[2]^=a[2],f[3]^=a[3]),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)},a.prototype.update=function(e){this.cache=f.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(f.concat([this.cache,o],16)),this.ghash(n([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":143}],26:[function(e,t,r){function i(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}t.exports=i},{}],27:[function(e,t,r){var i=e("buffer-xor");r.encrypt=function(e,t){var r=i(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return i(n,r)}},{"buffer-xor":48}],28:[function(e,t,r){function i(e,t,r){var i=t.length,f=a(t,e._cache);return e._cache=e._cache.slice(i),e._prev=n.concat([e._prev,r?t:f]),f}var n=e("safe-buffer").Buffer,a=e("buffer-xor");r.encrypt=function(e,t,r){for(var a,f=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){f=n.concat([f,i(e,t,r)]);break}a=e._cache.length,f=n.concat([f,i(e,t.slice(0,a),r)]),t=t.slice(a)}return f}},{"buffer-xor":48,"safe-buffer":143}],29:[function(e,t,r){function i(e,t,r){for(var i,a,f,o=-1,s=0;++o<8;)i=e._cipher.encryptBlock(e._prev),a=t&1<<7-o?128:0,f=i[0]^a,s+=(128&f)>>o%8,e._prev=n(e._prev,r?a:f);return s}function n(e,t){var r=e.length,i=-1,n=a.allocUnsafe(e.length);for(e=a.concat([e,a.from([t])]);++i<r;)n[i]=e[i]<<1|e[i+1]>>7;return n}var a=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var n=t.length,f=a.allocUnsafe(n),o=-1;++o<n;)f[o]=i(e,t[o],r);return f}},{"safe-buffer":143}],30:[function(e,t,r){function i(e,t,r){var i=e._cipher.encryptBlock(e._prev),a=i[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:a])]),a}var n=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var a=t.length,f=n.allocUnsafe(a),o=-1;++o<a;)f[o]=i(e,t[o],r);return f}},{"safe-buffer":143}],31:[function(e,t,r){function i(e){var t=e._cipher.encryptBlockRaw(e._prev);return f(e._prev),t}var n=e("buffer-xor"),a=e("safe-buffer").Buffer,f=e("../incr32");r.encrypt=function(e,t){var r=Math.ceil(t.length/16),f=e._cache.length;e._cache=a.concat([e._cache,a.allocUnsafe(16*r)]);for(var o=0;o<r;o++){var s=i(e),c=f+16*o;e._cache.writeUInt32BE(s[0],c+0),e._cache.writeUInt32BE(s[1],c+4),e._cache.writeUInt32BE(s[2],c+8),e._cache.writeUInt32BE(s[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},{"../incr32":26,"buffer-xor":48,"safe-buffer":143}],32:[function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],33:[function(e,t,r){var i={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},n=e("./list.json");for(var a in n)n[a].module=i[n[a].mode];t.exports=n},{"./cbc":27,"./cfb":28,"./cfb1":29,"./cfb8":30,"./ctr":31,"./ecb":32,"./list.json":34,"./ofb":35}],34:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:
r||T(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return n*=128,a>=n&&(a-=Math.pow(2,8*t)),a},a.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||T(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||T(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||T(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||T(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||T(e,4,this.length),Z.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),Z.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),Z.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||T(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,f=1,o=0;for(this[t]=255&e;++a<r&&(f*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/f>>0)-o&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,f=1,o=0;for(this[t+a]=255&e;--a>=0&&(f*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/f>>0)-o&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 q(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},a.prototyp
prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe1175
a.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},a.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],75:[function(e,t,r){"use strict";function i(e){"short"===e.type?this.curve=new o.curve.short(e):"edwards"===e.type?this.curve=new o.curve.edwards(e):this.curve=new o.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function n(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var r=new i(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:r}),r}})}var a=r,f=e("hash.js"),o=e("../elliptic"),s=o.utils.assert;a.PresetCurve=i,n("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:f.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),n("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:f.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),n("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:f.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),n("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:f.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),n("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:f.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),n("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff fffff
points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1
this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var n=e("../utils"),a=e("./256");n.inherits(i,a),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":99,"./256":95}],95:[function(e,t,r){"use strict";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)}var n=e("../utils"),a=e("../common"),f=e("./common"),o=e("minimalistic-assert"),s=n.sum32,c=n.sum32_4,u=n.sum32_5,h=f.ch32,d=f.maj32,l=f.s0_256,b=f.s1_256,p=f.g0_256,m=f.g1_256,v=a.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];n.inherits(i,v),t.exports=i,i.blockSize=512,i.outSize=256,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=c(m(r[i-2]),r[i-7],p(r[i-15]),r[i-16]);var n=this.h[0],a=this.h[1],f=this.h[2],v=this.h[3],y=this.h[4],g=this.h[5],w=this.h[6],_=this.h[7];for(o(this.k.length===r.length),i=0;i<r.length;i++){var k=u(_,b(y),h(y,g,w),this.k[i],r[i]),S=s(l(n),d(n,a,f));_=w,w=g,g=y,y=s(v,k),v=f,f=a,a=n,n=s(k,S)}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],f),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],g),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":89,"../utils":99,"./common":98,"minimalistic-assert":109}],96:[function(e,t,r){"use strict";function i(){if(!(this instanceof i))return new i;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var n=e("../utils"),a=e("./512");n.inherits(i,a),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":99,"./512":97}],97:[function(e,t,r){"use strict";function i(){if(!(this instanceof i))return new i;B.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=C,this.W=new Array(160)}function n(e,t,r,i,n){var a=e&r^~e&n;return a<0&&(a+=4294967296),a}function a(e,t,r,i,n,a){var f=t&i^~t&a;return f<0&&(f+=4294967296),f}function f(e,t,r,i,n){var a=e&r^e&n^r&n;return a<0&&(a+=4294967296),a}function o(e,t,r,i,n,a){var f=t&i^t&a^i&a;return f<0&&(f+=4294967296),f}function s(e,t){var r=g(e,t,28),i=g(t,e,2),n=g(t,e,7),a=r^i^n;return a<0&&(a+=4294967296),a}function c(e,t){var r=w(e,t,28),i=w(t,e,2),n=w(t,e,7),a=r^i^n;return a<0&&(a+=4294967296),a}function u(e,t){var r=g(e,t,14),i=g(e,t,18),n=g(t,e,9),a=r^i^n;return a<0&&(a+=4294967296),a}function h(e,t){var r=w(e,t,14),i=w(e,t,18),n=w(t,e,9),a=r^i^n;return a<0&&(a+=4294967296),a}function d(e,t){var r=g(e,t,1),i=g(e,t,8),n=_(e,t,7),a=r^i^n;return a<0&&(a+=4294967296),a}function l(e,t){var r=w(e,t,1),i=w(e,t,8),n=k(e,t,7),a=r^i^n;return a<0&&(a+=4294967296),a}function b(e,t){var r=g(e,t,19),i=g(t,e,29),n=_(e,t,6),a=r^i^n;return a<
"function"!=typeof p)throw new Error("No callback provided to pbkdf2");b=b||"sha1";var m=l[b.toLowerCase()];if(!m||"function"!=typeof i.Promise)return r.nextTick(function(){var r;try{r=u(e,t,o,d,b)}catch(e){return p(e)}p(null,r)});f(n(m).then(function(r){return r?a(e,t,o,d,m):u(e,t,o,d,b)}),p)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":119,"./precondition":120,"./sync":121,_process:123,"safe-buffer":143}],119:[function(e,t,r){(function(e){var r;if(e.browser)r="utf-8";else{r=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}t.exports=r}).call(this,e("_process"))},{_process:123}],120:[function(e,t,r){var i=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>i||t!==t)throw new TypeError("Bad key length")}},{}],121:[function(e,t,r){function i(e,t,r){var i=n(e),a="sha512"===e||"sha384"===e?128:64;t.length>a?t=i(t):t.length<a&&(t=h.concat([t,d],a));for(var f=h.allocUnsafe(a+l[e]),o=h.allocUnsafe(a+l[e]),s=0;s<a;s++)f[s]=54^t[s],o[s]=92^t[s];var c=h.allocUnsafe(a+r+4);f.copy(c,0,0,a),this.ipad1=c,this.ipad2=f,this.opad=o,this.alg=e,this.blocksize=a,this.hash=i,this.size=l[e]}function n(e){function t(t){return s(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?o:"md5"===e?f:t}function a(e,t,r,n,a){h.isBuffer(e)||(e=h.from(e,u)),h.isBuffer(t)||(t=h.from(t,u)),c(r,n),a=a||"sha1";var f=new i(a,e,t.length),o=h.allocUnsafe(n),s=h.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var d=0,b=l[a],p=Math.ceil(n/b),m=1;m<=p;m++){s.writeUInt32BE(m,t.length);for(var v=f.run(s,f.ipad1),y=v,g=1;g<r;g++){y=f.run(y,f.ipad2);for(var w=0;w<b;w++)v[w]^=y[w]}v.copy(o,d),d+=b}return o}var f=e("create-hash/md5"),o=e("ripemd160"),s=e("sha.js"),c=e("./precondition"),u=e("./default-encoding"),h=e("safe-buffer").Buffer,d=h.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};i.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=a},{"./default-encoding":119,"./precondition":120,"create-hash/md5":55,ripemd160:142,"safe-buffer":143,"sha.js":145}],122:[function(e,t,r){(function(e){"use strict";function r(t,r,i,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,f,o=arguments.length;switch(o){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,r)});case 3:return e.nextTick(function(){t.call(null,r,i)});case 4:return e.nextTick(function(){t.call(null,r,i,n)});default:for(a=new Array(o-1),f=0;f<a.length;)a[f++]=arguments[f];return e.nextTick(function(){t.apply(null,a)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=r:t.exports=e.nextTick}).call(this,e("_process"))},{_process:123}],123:[function(e,t,r){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function a(e){if(h===setTimeout)return setTimeout(e,0);if((h===i||!h)&&setTimeout)return h=setTimeout,setTimeout(e,0);try{return h(e,0)}catch(t){try{return h.call(null,e,0)}catch(t){return h.call(this,e,0)}}}function f(e){if(d===clearTimeout)return clearTimeout(e);if((d===n||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){m&&b&&(m=!1,b.length?p=b.concat(p):v=-1,p.length&&s())}function s(){if(!m){var e=a(o);m=!0;for(var t=p.length;t;){for(b=p,p=[];++v<t;)b&&b[v].run();v=-1,t=p.length}b=null,m=!1,f(e)}}function c(e,t){this.fun=e,this.array=t}function u(){}var h,d,l=t.exports={};!function(){try{h="function"==typeof setTimeout?setTimeout:i}catch(e){h=i}try{d="function"==typeof clearTimeout?clearTimeout:n}catch(e){d=n}}();var b,p=[],m=!1,v=-1;l.nextTick=function(e){
h=f(h,d,r,i,u,e[5],1518500249,9),r=n(r,10),u=f(u,h,d,r,i,e[2],1518500249,11),d=n(d,10),i=f(i,u,h,d,r,e[14],1518500249,7),h=n(h,10),r=f(r,i,u,h,d,e[11],1518500249,13),u=n(u,10),d=f(d,r,i,u,h,e[8],1518500249,12),i=n(i,10),h=o(h,d,r,i,u,e[3],1859775393,11),r=n(r,10),u=o(u,h,d,r,i,e[10],1859775393,13),d=n(d,10),i=o(i,u,h,d,r,e[14],1859775393,6),h=n(h,10),r=o(r,i,u,h,d,e[4],1859775393,7),u=n(u,10),d=o(d,r,i,u,h,e[9],1859775393,14),i=n(i,10),h=o(h,d,r,i,u,e[15],1859775393,9),r=n(r,10),u=o(u,h,d,r,i,e[8],1859775393,13),d=n(d,10),i=o(i,u,h,d,r,e[1],1859775393,15),h=n(h,10),r=o(r,i,u,h,d,e[2],1859775393,14),u=n(u,10),d=o(d,r,i,u,h,e[7],1859775393,8),i=n(i,10),h=o(h,d,r,i,u,e[0],1859775393,13),r=n(r,10),u=o(u,h,d,r,i,e[6],1859775393,6),d=n(d,10),i=o(i,u,h,d,r,e[13],1859775393,5),h=n(h,10),r=o(r,i,u,h,d,e[11],1859775393,12),u=n(u,10),d=o(d,r,i,u,h,e[5],1859775393,7),i=n(i,10),h=o(h,d,r,i,u,e[12],1859775393,5),r=n(r,10),u=s(u,h,d,r,i,e[1],2400959708,11),d=n(d,10),i=s(i,u,h,d,r,e[9],2400959708,12),h=n(h,10),r=s(r,i,u,h,d,e[11],2400959708,14),u=n(u,10),d=s(d,r,i,u,h,e[10],2400959708,15),i=n(i,10),h=s(h,d,r,i,u,e[0],2400959708,14),r=n(r,10),u=s(u,h,d,r,i,e[8],2400959708,15),d=n(d,10),i=s(i,u,h,d,r,e[12],2400959708,9),h=n(h,10),r=s(r,i,u,h,d,e[4],2400959708,8),u=n(u,10),d=s(d,r,i,u,h,e[13],2400959708,9),i=n(i,10),h=s(h,d,r,i,u,e[3],2400959708,14),r=n(r,10),u=s(u,h,d,r,i,e[7],2400959708,5),d=n(d,10),i=s(i,u,h,d,r,e[15],2400959708,6),h=n(h,10),r=s(r,i,u,h,d,e[14],2400959708,8),u=n(u,10),d=s(d,r,i,u,h,e[5],2400959708,6),i=n(i,10),h=s(h,d,r,i,u,e[6],2400959708,5),r=n(r,10),u=s(u,h,d,r,i,e[2],2400959708,12),d=n(d,10),i=c(i,u,h,d,r,e[4],2840853838,9),h=n(h,10),r=c(r,i,u,h,d,e[0],2840853838,15),u=n(u,10),d=c(d,r,i,u,h,e[5],2840853838,5),i=n(i,10),h=c(h,d,r,i,u,e[9],2840853838,11),r=n(r,10),u=c(u,h,d,r,i,e[7],2840853838,6),d=n(d,10),i=c(i,u,h,d,r,e[12],2840853838,8),h=n(h,10),r=c(r,i,u,h,d,e[2],2840853838,13),u=n(u,10),d=c(d,r,i,u,h,e[10],2840853838,12),i=n(i,10),h=c(h,d,r,i,u,e[14],2840853838,5),r=n(r,10),u=c(u,h,d,r,i,e[1],2840853838,12),d=n(d,10),i=c(i,u,h,d,r,e[3],2840853838,13),h=n(h,10),r=c(r,i,u,h,d,e[8],2840853838,14),u=n(u,10),d=c(d,r,i,u,h,e[11],2840853838,11),i=n(i,10),h=c(h,d,r,i,u,e[6],2840853838,8),r=n(r,10),u=c(u,h,d,r,i,e[15],2840853838,5),d=n(d,10),i=c(i,u,h,d,r,e[13],2840853838,6),h=n(h,10);var l=this._a,b=this._b,p=this._c,m=this._d,v=this._e;l=c(l,b,p,m,v,e[5],1352829926,8),p=n(p,10),v=c(v,l,b,p,m,e[14],1352829926,9),b=n(b,10),m=c(m,v,l,b,p,e[7],1352829926,9),l=n(l,10),p=c(p,m,v,l,b,e[0],1352829926,11),v=n(v,10),b=c(b,p,m,v,l,e[9],1352829926,13),m=n(m,10),l=c(l,b,p,m,v,e[2],1352829926,15),p=n(p,10),v=c(v,l,b,p,m,e[11],1352829926,15),b=n(b,10),m=c(m,v,l,b,p,e[4],1352829926,5),l=n(l,10),p=c(p,m,v,l,b,e[13],1352829926,7),v=n(v,10),b=c(b,p,m,v,l,e[6],1352829926,7),m=n(m,10),l=c(l,b,p,m,v,e[15],1352829926,8),p=n(p,10),v=c(v,l,b,p,m,e[8],1352829926,11),b=n(b,10),m=c(m,v,l,b,p,e[1],1352829926,14),l=n(l,10),p=c(p,m,v,l,b,e[10],1352829926,14),v=n(v,10),b=c(b,p,m,v,l,e[3],1352829926,12),m=n(m,10),l=c(l,b,p,m,v,e[12],1352829926,6),p=n(p,10),v=s(v,l,b,p,m,e[6],1548603684,9),b=n(b,10),m=s(m,v,l,b,p,e[11],1548603684,13),l=n(l,10),p=s(p,m,v,l,b,e[3],1548603684,15),v=n(v,10),b=s(b,p,m,v,l,e[7],1548603684,7),m=n(m,10),l=s(l,b,p,m,v,e[0],1548603684,12),p=n(p,10),v=s(v,l,b,p,m,e[13],1548603684,8),b=n(b,10),m=s(m,v,l,b,p,e[5],1548603684,9),l=n(l,10),p=s(p,m,v,l,b,e[10],1548603684,11),v=n(v,10),b=s(b,p,m,v,l,e[14],1548603684,7),m=n(m,10),l=s(l,b,p,m,v,e[15],1548603684,7),p=n(p,10),v=s(v,l,b,p,m,e[8],1548603684,12),b=n(b,10),m=s(m,v,l,b,p,e[12],1548603684,7),l=n(l,10),p=s(p,m,v,l,b,e[4],1548603684,6),v=n(v,10),b=s(b,p,m,v,l,e[9],1548603684,15),m=n(m,10),l=s(l,b,p,m,v,e[1],1548603684,13),p=n(p,10),v=s(v,l,b,p,m,e[2],1548603684,11),b=n(b,10),m=o(m,v,l,b,p,e[15],1836072691,9),l=n(l,10),p=o(p,m,v,l,b,e[5],1836072691,7),v=n(v,10),b=o(b,p,m,v,l,e[1],1836072691,15),m=n(m,10),l=o(l,b,p,m,v,e[3],1836072691,11),p=n(p,10),v=o(v,l,b,p,m,e[7],1836072691,8),b=n(b,10),m=o(m,v,l,b,p,e[14],1836072691,6),l=n(l,10),p=o(p,m,v,l,b,e[6],1836072691,6),v=n(v,10),b=o(b,
this.extensions.crn=this.extensions.dxt},t.exports=i,n.WebGLRenderer.registerPlugin("compressedTextureManager",i),i.prototype.getSupportedExtensions=function(){return this.extensions}},{"./CompressedImage":156}],158:[function(e,t,r){var i=e("./CompressedImage"),n=PIXI.glCore.GLTexture,a={uploadNotCompressed:n.prototype.upload,isCompressed:!1,upload:function(e){if(!(e instanceof i))return this.uploadNotCompressed(e);this.bind();var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),this.isCompressed=!0,e.generateWebGLTexture(t)},enableMipmap:function(){if(!this.isCompressed){var e=this.gl;this.bind(),this.mipmap=!0,e.generateMipmap(e.TEXTURE_2D)}}};t.exports=a},{"./CompressedImage":156}],159:[function(e,t,r){function i(t){t=t||[];var r=e("./imageParser")();return function(e,i){var n=e.metadata.choice;if(!n)return i();var a=e.url,f=0;if(!e._defaultUrlChoice){if(e._defaultUrlChoice=a,!((f=a.lastIndexOf("."))>=0))return i();e._baseUrl=a.substring(0,f)}for(var o=n.length-1;o>=0;o--){a=e._baseUrl+n[o];for(var s=0;s<t.length;s++)if(n[o]===t[s]){e.url=a;var c=n[o];return c.indexOf("@")>-1&&(c=c.replace(/@[0-9.]*x/,"")),f=c.indexOf("."),f>=0&&(c=c.substring(f+1)),e.extension=c,e.loadType=e._determineLoadType(),r(e,i)}}return r(e,i)}}t.exports=i},{"./imageParser":161}],160:[function(e,t,r){function i(e){return function(e,t){if(e.texture&&e._defaultUrlChoice&&e._defaultUrl!=e.url){var r=e.texture,i=r.baseTexture;delete a.BaseTextureCache[i.imageUrl],delete a.TextureCache[i.imageUrl],i.imageUrl=e._defaultUrlChoice,n.utils.BaseTextureCache[i.imageUrl]=i,n.utils.TextureCache[i.imageUrl]=r}t()}}var n=PIXI,a=n.utils;e("./CompressedImage");t.exports=i},{"./CompressedImage":156}],161:[function(e,t,r){function i(){return function(e,t){if(-1!=e.url.indexOf(".crn")||-1!=e.url.indexOf(".dds")||-1!=e.url.indexOf(".pvr")||-1!=e.url.indexOf(".etc1")||-1!=e.url.indexOf(".astc")){var r=e.compressedImage||new a(e.url);if(e.data)throw"compressedImageParser middleware must be specified in loader.before() and must have zero resource.data";e.isCompressedImage=!0,e.data=r,e.onComplete.add(function(){e.type=f.TYPE.IMAGE,r.loadFromArrayBuffer(e.data,e.url.includes(".crn")),e.data=r})}t()}}var n=PIXI,a=(n.utils,e("./CompressedImage")),f=n.loaders.Resource;f.setExtensionXhrType("dds",f.XHR_RESPONSE_TYPE.BUFFER),f.setExtensionXhrType("crn",f.XHR_RESPONSE_TYPE.BUFFER),f.setExtensionXhrType("pvr",f.XHR_RESPONSE_TYPE.BUFFER),f.setExtensionXhrType("etc1",f.XHR_RESPONSE_TYPE.BUFFER),f.setExtensionXhrType("astc",f.XHR_RESPONSE_TYPE.BUFFER),t.exports=i},{"./CompressedImage":156}],162:[function(e,t,r){(function(r){var i={CompressedImage:e("./CompressedImage"),CompressedTextureManager:e("./CompressedTextureManager"),imageParser:e("./imageParser"),extensionChooser:e("./extensionChooser"),extensionFixer:e("./extensionFixer"),GLTextureMixin:e("./GLTextureMixin"),detectExtensions:function(e,t){var r=[];if(e instanceof PIXI.WebGLRenderer){var i=e.plugins.compressedTextureManager.getSupportedExtensions();i.dxt&&r.push(".dds"),i.pvrtc&&r.push(".pvr"),i.atc&&r.push(".atc"),i.astc&&r.push(".astc"),i.etc1&&r.push(".etc1")}else PIXI.CanvasRenderer;t=t||e.resolution;for(var n="@"+t+"x",a=r.slice(0);a.length>0;)r.push(n+a.pop());return r.push(n+".png"),r.push(n+".jpg"),r.push(n+".json"),r.push(n+".atlas"),r}};try{i.crn=e("./../lib/crn_decomp")}catch(e){console.warn("Unable to load crn decompression in pixi-compressed-textures")}Object.assign(PIXI.glCore.GLTexture.prototype,i.GLTextureMixin),PIXI.loaders.Loader.addPixiMiddleware(i.extensionFixer),PIXI.loader.use(i.extensionFixer()),t.exports=r.PIXI.compressedTextures=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../lib/crn_decomp":1,"./CompressedImage":156,"./CompressedTextureManager":157,"./GLTextureMixin":158,"./extensionChooser":159,"./extensionFixer":160,"./imageParser":161}]},{},[162])(162)});