PageSourceSearch

https://www.vinlagring.se/_next/static/immutable/chunks/2shomsk_2c847.js

js vinlagring.se collected 2026-10-08 01:24:19 UTC 523,311 bytes, 6 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,210102,(f,c,u)=>{"use strict";u.byteLength=g,u.toByteArray=_,u.fromByteArray=S;for(var d=[],h=[],l="u">typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,y=p.length;b<y;++b)d[b]=p[b],h[p.charCodeAt(b)]=b;function m(f){var c=f.length;if(c%4>0)throw Error("Invalid string. Length must be a multiple of 4");var u=f.indexOf("=");-1===u&&(u=c);var d=u===c?0:4-u%4;return[u,d]}function g(f){var c=m(f),u=c[0],d=c[1];return(u+d)*3/4-d}function v(f,c,u){return(c+u)*3/4-u}function _(f){var c,u,d=m(f),p=d[0],b=d[1],y=new l(v(f,p,b)),g=0,_=b>0?p-4:p;for(u=0;u<_;u+=4)c=h[f.charCodeAt(u)]<<18|h[f.charCodeAt(u+1)]<<12|h[f.charCodeAt(u+2)]<<6|h[f.charCodeAt(u+3)],y[g++]=c>>16&255,y[g++]=c>>8&255,y[g++]=255&c;return 2===b&&(c=h[f.charCodeAt(u)]<<2|h[f.charCodeAt(u+1)]>>4,y[g++]=255&c),1===b&&(c=h[f.charCodeAt(u)]<<10|h[f.charCodeAt(u+1)]<<4|h[f.charCodeAt(u+2)]>>2,y[g++]=c>>8&255,y[g++]=255&c),y}function w(f){return d[f>>18&63]+d[f>>12&63]+d[f>>6&63]+d[63&f]}function x(f,c,u){for(var d=[],h=c;h<u;h+=3)d.push(w((f[h]<<16&0xff0000)+(f[h+1]<<8&65280)+(255&f[h+2])));return d.join("")}function S(f){for(var c,u=f.length,h=u%3,l=[],p=16383,b=0,y=u-h;b<y;b+=p)l.push(x(f,b,b+p>y?y:b+p));return 1===h?l.push(d[(c=f[u-1])>>2]+d[c<<4&63]+"=="):2===h&&l.push(d[(c=(f[u-2]<<8)+f[u-1])>>10]+d[c>>4&63]+d[c<<2&63]+"="),l.join("")}h[45]=62,h[95]=63},962866,(f,c,u)=>{u.read=function(f,c,u,d,h){var l,p,b=8*h-d-1,y=(1<<b)-1,m=y>>1,g=-7,v=u?h-1:0,_=u?-1:1,w=f[c+v];for(v+=_,l=w&(1<<-g)-1,w>>=-g,g+=b;g>0;l=256*l+f[c+v],v+=_,g-=8);for(p=l&(1<<-g)-1,l>>=-g,g+=d;g>0;p=256*p+f[c+v],v+=_,g-=8);if(0===l)l=1-m;else{if(l===y)return p?NaN:1/0*(w?-1:1);p+=Math.pow(2,d),l-=m}return(w?-1:1)*p*Math.pow(2,l-d)},u.write=function(f,c,u,d,h,l){var p,b,y,m=8*l-h-1,g=(1<<m)-1,v=g>>1,_=5960464477539062e-23*(23===h),w=d?0:l-1,x=d?1:-1,S=+(c<0||0===c&&1/c<0);for(isNaN(c=Math.abs(c))||c===1/0?(b=+!!isNaN(c),p=g):(p=Math.floor(Math.log(c)/Math.LN2),c*(y=Math.pow(2,-p))<1&&(p--,y*=2),p+v>=1?c+=_/y:c+=_*Math.pow(2,1-v),c*y>=2&&(p++,y/=2),p+v>=g?(b=0,p=g):p+v>=1?(b=(c*y-1)*Math.pow(2,h),p+=v):(b=c*Math.pow(2,v-1)*Math.pow(2,h),p=0));h>=8;f[u+w]=255&b,w+=x,b/=256,h-=8);for(p=p<<h|b,m+=h;m>0;f[u+w]=255&p,w+=x,p/=256,m-=8);f[u+w-x]|=128*S}},449440,(f,c,u)=>{"use strict";var d=f.r(210102),h=f.r(962866),l="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;u.Buffer=m,u.SlowBuffer=k,u.INSPECT_MAX_BYTES=50;var p=0x7fffffff;function b(){try{var f=new Uint8Array(1),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(f,c),42===f.foo()}catch(f){return!1}}function y(f){if(f>p)throw RangeError('The value "'+f+'" is invalid for option "size"');var c=new Uint8Array(f);return Object.setPrototypeOf(c,m.prototype),c}function m(f,c,u){if("number"==typeof f){if("string"==typeof c)throw TypeError('The "string" argument must be of type string. Received type number');return w(f)}return g(f,c,u)}function g(f,c,u){if("string"==typeof f)return x(f,c);if(ArrayBuffer.isView(f))return E(f);if(null==f)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(eo(f,ArrayBuffer)||f&&eo(f.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(eo(f,SharedArrayBuffer)||f&&eo(f.buffer,SharedArrayBuffer)))return M(f,c,u);if("number"==typeof f)throw TypeError('The "value" argument must not be of type number. Received type number');var d=f.valueOf&&f.valueOf();if(null!=d&&d!==f)return m.from(d,c,u);var h=A(f);if(h)return h;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof f[Symbol.toPrimitive])return m.from(f[Symbol.toPrimitive]("string"),c,u);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}function v(f){if("number"!=typeof f)throw TypeError('"size" argument must be of type number');
vendor: 19,907 bytes, line 1
1if(f<0)throw RangeError('The value "'+f+'" is invalid for option "size"')}function _(f,c,u){return(v(f),f<=0)?y(f):void 0!==c?"string"==typeof u?y(f).fill(c,u):y(f).fill(c):y(f)}function w(f){return v(f),y(f<0?0:0|R(f))}function x(f,c){if(("string"!=typeof c||""===c)&&(c="utf8"),!m.isEncoding(c))throw TypeError("Unknown encoding: "+c);var u=0|P(f,c),d=y(u),h=d.write(f,c);return h!==u&&(d=d.slice(0,h)),d}function S(f){for(var c=f.length<0?0:0|R(f.length),u=y(c),d=0;d<c;d+=1)u[d]=255&f[d];return u}function E(f){if(eo(f,Uint8Array)){var c=new Uint8Array(f);return M(c.buffer,c.byteOffset,c.byteLength)}return S(f)}function M(f,c,u){var d;if(c<0||f.byteLength<c)throw RangeError('"offset" is outside of buffer bounds');if(f.byteLength<c+(u||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(d=void 0===c&&void 0===u?new Uint8Array(f):void 0===u?new Uint8Array(f,c):new Uint8Array(f,c,u),m.prototype),d}function A(f){if(m.isBuffer(f)){var c=0|R(f.length),u=y(c);return 0===u.length||f.copy(u,0,0,c),u}return void 0!==f.length?"number"!=typeof f.length||ea(f.length)?y(0):S(f):"Buffer"===f.type&&Array.isArray(f.data)?S(f.data):void 0}function R(f){if(f>=p)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return 0|f}function k(f){return+f!=f&&(f=0),m.alloc(+f)}function P(f,c){if(m.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||eo(f,ArrayBuffer))return f.byteLength;if("string"!=typeof f)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);var u=f.length,d=arguments.length>2&&!0===arguments[2];if(!d&&0===u)return 0;for(var h=!1;;)switch(c){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return ee(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return ei(f).length;default:if(h)return d?-1:ee(f).length;c=(""+c).toLowerCase(),h=!0}}function I(f,c,u){var d=!1;if((void 0===c||c<0)&&(c=0),c>this.length||((void 0===u||u>this.length)&&(u=this.length),u<=0||(u>>>=0)<=(c>>>=0)))return"";for(f||(f="utf8");;)switch(f){case"hex":return K(this,c,u);case"utf8":case"utf-8":return F(this,c,u);case"ascii":return z(this,c,u);case"latin1":case"binary":return V(this,c,u);case"base64":return j(this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,c,u);default:if(d)throw TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),d=!0}}function O(f,c,u){var d=f[c];f[c]=f[u],f[u]=d}function T(f,c,u,d,h){if(0===f.length)return -1;if("string"==typeof u?(d=u,u=0):u>0x7fffffff?u=0x7fffffff:u<-0x80000000&&(u=-0x80000000),ea(u*=1)&&(u=h?0:f.length-1),u<0&&(u=f.length+u),u>=f.length)if(h)return -1;else u=f.length-1;else if(u<0)if(!h)return -1;else u=0;if("string"==typeof c&&(c=m.from(c,d)),m.isBuffer(c))return 0===c.length?-1:N(f,c,u,d,h);if("number"==typeof c){if(c&=255,"function"==typeof Uint8Array.prototype.indexOf)if(h)return Uint8Array.prototype.indexOf.call(f,c,u);else return Uint8Array.prototype.lastIndexOf.call(f,c,u);return N(f,[c],u,d,h)}throw TypeError("val must be string, number or Buffer")}function N(f,c,u,d,h){var l,p=1,b=f.length,y=c.length;if(void 0!==d&&("ucs2"===(d=String(d).toLowerCase())||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(f.length<2||c.length<2)return -1;p=2,b/=2,y/=2,u/=2}function m(f,c){return 1===p?f[c]:f.readUInt16BE(c*p)}if(h){var g=-1;for(l=u;l<b;l++)if(m(f,l)===m(c,-1===g?0:l-g)){if(-1===g&&(g=l),l-g+1===y)return g*p}else -1!==g&&(l-=l-g),g=-1}else for(u+y>b&&(u=b-y),l=u;l>=0;l--){for(var v=!0,_=0;_<y;_++)if(m(f,l+_)!==m(c,_)){v=!1;break}if(v)return l}return -1}function C(f,c,u,d){u=Number(u)||0;var h=f.length-u;d?(d=Number(d))>h&&(d=h):d=h;var l=c.length;d>l/2&&(d=l/2);for(var p=0;p<d;++p){var b=parseInt(c.substr(2*p,2),16);if(ea(b))break;f[u+p]=b}return p}function B(f,c,u,d){return en(ee(c,f.length-u),f,u,d)}function L(f,c,u,d){return en(et(c),f,u,d)}function D(f,c,u,d){return en(ei(c),f,u,d)}function U(f,c,u,d){return en(er(c,f.length-u),f,u,d)}function j(f,c,u){return 0===c&&u===f.length?d.fromByteArray(f):d.fromByteArray(f.slice(c,u))}function F(f,c,u){u=Math.min(f.length,u);for(var d=[],h=c;h<u;){var l,p,b,y,m=f[h],g=null,v=m>239?4:m>223?3:m>191?2:1;if(h+v<=u)switch(v){case 1:m<128&&(g=m);break;case 2:(192&(l=f[h+1]))==128&&(y=(31&m)<<6|63&l)>127&&(g=y);break;case 3:l=f[h+1],p=f[h+2],(192&l)==128&&(192&p)==128&&(y=(15&m)<<12|(63&l)<<6|63&p)>2047&&(y<55296||y>57343)&&(g=y);break;case 4:l=f[h+1],p=f[h+2],b=f[h+3],(192&l)==128&&(192&p)==128&&(192&b)==128&&(y=(15&m)<<18|(63&l)<<12|(63&p)<<6|63&b)>65535&&y<1114112&&(g=y)}null===g?(g=65533,v=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),h+=v}return $(d)}u.kMaxLength=0x7fffffff,m.TYPED_ARRAY_SUPPORT=b(),!m.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(f,c,u){return g(f,c,u)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(f,c,u){return _(f,c,u)},m.allocUnsafe=function(f){return w(f)},m.allocUnsafeSlow=function(f){return w(f)},m.isBuffer=function(f){return null!=f&&!0===f._isBuffer&&f!==m.prototype},m.compare=function(f,c){if(eo(f,Uint8Array)&&(f=m.from(f,f.offset,f.byteLength)),eo(c,Uint8Array)&&(c=m.from(c,c.offset,c.byteLength)),!m.isBuffer(f)||!m.isBuffer(c))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===c)return 0;for(var u=f.length,d=c.length,h=0,l=Math.min(u,d);h<l;++h)if(f[h]!==c[h]){u=f[h],d=c[h];break}return u<d?-1:+(d<u)},m.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(f,c){if(!Array.isArray(f))throw TypeError('"list" argument must be an Array of Buffers');if(0===f.length)return m.alloc(0);if(void 0===c)for(u=0,c=0;u<f.length;++u)c+=f[u].length;var u,d=m.allocUnsafe(c),h=0;for(u=0;u<f.length;++u){var l=f[u];if(eo(l,Uint8Array))h+l.length>d.length?m.from(l).copy(d,h):Uint8Array.prototype.set.call(d,l,h);else if(m.isBuffer(l))l.copy(d,h);else throw TypeError('"list" argument must be an Array of Buffers');h+=l.length}return d},m.byteLength=P,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var f=this.length;if(f%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<f;c+=2)O(this,c,c+1);return this},m.prototype.swap32=function(){var f=this.length;if(f%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<f;c+=4)O(this,c,c+3),O(this,c+1,c+2);return this},m.prototype.swap64=function(){var f=this.length;if(f%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<f;c+=8)O(this,c,c+7),O(this,c+1,c+6),O(this,c+2,c+5),O(this,c+3,c+4);return this},m.prototype.toString=function(){var f=this.length;return 0===f?"":0==arguments.length?F(this,0,f):I.apply(this,arguments)},m.prototype.toLocaleString=m.prototype.toString,m.prototype.equals=function(f){if(!m.isBuffer(f))throw TypeError("Argument must be a Buffer");return this===f||0===m.compare(this,f)},m.prototype.inspect=function(){var f="",c=u.INSPECT_MAX_BYTES;return f=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(f+=" ... "),"<Buffer "+f+">"},l&&(m.prototype[l]=m.prototype.inspect),m.prototype.compare=function(f,c,u,d,h){if(eo(f,Uint8Array)&&(f=m.from(f,f.offset,f.byteLength)),!m.isBuffer(f))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(void 0===c&&(c=0),void 0===u&&(u=f?f.length:0),void 0===d&&(d=0),void 0===h&&(h=this.length),c<0||u>f.length||d<0||h>this.length)throw RangeError("out of range index");if(d>=h&&c>=u)return 0;if(d>=h)return -1;if(c>=u)return 1;if(c>>>=0,u>>>=0,d>>>=0,h>>>=0,this===f)return 0;for(var l=h-d,p=u-c,b=Math.min(l,p),y=this.slice(d,h),g=f.slice(c,u),v=0;v<b;++v)if(y[v]!==g[v]){l=y[v],p=g[v];break}return l<p?-1:+(p<l)},m.prototype.includes=function(f,c,u){return -1!==this.indexOf(f,c,u)},m.prototype.indexOf=function(f,c,u){return T(this,f,c,u,!0)},m.prototype.lastIndexOf=function(f,c,u){return T(this,f,c,u,!1)},m.prototype.write=function(f,c,u,d){if(void 0===c)d="utf8",u=this.length,c=0;else if(void 0===u&&"string"==typeof c)d=c,u=this.length,c=0;else if(isFinite(c))c>>>=0,isFinite(u)?(u>>>=0,void 0===d&&(d="utf8")):(d=u,u=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var h=this.length-c;if((void 0===u||u>h)&&(u=h),f.length>0&&(u<0||c<0)||c>this.length)throw RangeError("Attempt to write outside buffer bounds");d||(d="utf8");for(var l=!1;;)switch(d){case"hex":return C(this,f,c,u);case"utf8":case"utf-8":return B(this,f,c,u);case"ascii":case"latin1":case"binary":return L(this,f,c,u);case"base64":return D(this,f,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,f,c,u);default:if(l)throw TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),l=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var q=4096;function $(f){var c=f.length;if(c<=q)return String.fromCharCode.apply(String,f);for(var u="",d=0;d<c;)u+=String.fromCharCode.apply(String,f.slice(d,d+=q));return u}function z(f,c,u){var d="";u=Math.min(f.length,u);for(var h=c;h<u;++h)d+=String.fromCharCode(127&f[h]);return d}function V(f,c,u){var d="";u=Math.min(f.length,u);for(var h=c;h<u;++h)d+=String.fromCharCode(f[h]);return d}function K(f,c,u){var d=f.length;(!c||c<0)&&(c=0),(!u||u<0||u>d)&&(u=d);for(var h="",l=c;l<u;++l)h+=es[f[l]];return h}function H(f,c,u){for(var d=f.slice(c,u),h="",l=0;l<d.length-1;l+=2)h+=String.fromCharCode(d[l]+256*d[l+1]);return h}function W(f,c,u){if(f%1!=0||f<0)throw RangeError("offset is not uint");if(f+c>u)throw RangeError("Trying to access beyond buffer length")}function G(f,c,u,d,h,l){if(!m.isBuffer(f))throw TypeError('"buffer" argument must be a Buffer instance');if(c>h||c<l)throw RangeError('"value" argument is out of bounds');if(u+d>f.length)throw RangeError("Index out of range")}function J(f,c,u,d,h,l){if(u+d>f.length||u<0)throw RangeError("Index out of range")}function Y(f,c,u,d,l){return c*=1,u>>>=0,l||J(f,c,u,4,34028234663852886e22,-34028234663852886e22),h.write(f,c,u,d,23,4),u+4}function X(f,c,u,d,l){return c*=1,u>>>=0,l||J(f,c,u,8,17976931348623157e292,-17976931348623157e292),h.write(f,c,u,d,52,8),u+8}m.prototype.slice=function(f,c){var u=this.length;f=~~f,c=void 0===c?u:~~c,f<0?(f+=u)<0&&(f=0):f>u&&(f=u),c<0?(c+=u)<0&&(c=0):c>u&&(c=u),c<f&&(c=f);var d=this.subarray(f,c);return Object.setPrototypeOf(d,m.prototype),d},m.prototype.readUintLE=m.prototype.readUIntLE=function(f,c,u){f>>>=0,c>>>=0,u||W(f,c,this.length);for(var d=this[f],h=1,l=0;++l<c&&(h*=256);)d+=this[f+l]*h;return d},m.prototype.readUintBE=m.prototype.readUIntBE=function(f,c,u){f>>>=0,c>>>=0,u||W(f,c,this.length);for(var d=this[f+--c],h=1;c>0&&(h*=256);)d+=this[f+--c]*h;return d},m.prototype.readUint8=m.prototype.readUInt8=function(f,c){return f>>>=0,c||W(f,1,this.length),this[f]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(f,c){return f>>>=0,c||W(f,2,this.length),this[f]|this[f+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(f,c){return f>>>=0,c||W(f,2,this.length),this[f]<<8|this[f+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(f,c){return f>>>=0,c||W(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+0x1000000*this[f+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(f,c){return f>>>=0,c||W(f,4,this.length),0x1000000*this[f]+(this[f+1]<<16|this[f+2]<<8|this[f+3])},m.prototype.readIntLE=function(f,c,u){f>>>=0,c>>>=0,u||W(f,c,this.length);for(var d=this[f],h=1,l=0;++l<c&&(h*=256);)d+=this[f+l]*h;return d>=(h*=128)&&(d-=Math.pow(2,8*c)),d},m.prototype.readIntBE=function(f,c,u){f>>>=0,c>>>=0,u||W(f,c,this.length);for(var d=c,h=1,l=this[f+--d];d>0&&(h*=256);)l+=this[f+--d]*h;return l>=(h*=128)&&(l-=Math.pow(2,8*c)),l},m.prototype.readInt8=function(f,c){return(f>>>=0,c||W(f,1,this.length),128&this[f])?-((255-this[f]+1)*1):this[f]},m.prototype.readInt16LE=function(f,c){f>>>=0,c||W(f,2,this.length);var u=this[f]|this[f+1]<<8;return 32768&u?0xffff0000|u:u},m.prototype.readInt16BE=function(f,c){f>>>=0,c||W(f,2,this.length);var u=this[f+1]|this[f]<<8;return 32768&u?0xffff0000|u:u},m.prototype.readInt32LE=function(f,c){return f>>>=0,c||W(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},m.prototype.readInt32BE=function(f,c){return f>>>=0,c||W(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},m.prototype.readFloatLE=function(f,c){return f>>>=0,c||W(f,4,this.length),h.read(this,f,!0,23,4)},m.prototype.readFloatBE=function(f,c){return f>>>=0,c||W(f,4,this.length),h.read(this,f,!1,23,4)},m.prototype.readDoubleLE=function(f,c){return f>>>=0,c||W(f,8,this.length),h.read(this,f,!0,52,8)},m.prototype.readDoubleBE=function(f,c){return f>>>=0,c||W(f,8,this.length),h.read(this,f,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(f,c,u,d){if(f*=1,c>>>=0,u>>>=0,!d){var h=Math.pow(2,8*u)-1;G(this,f,c,u,h,0)}var l=1,p=0;for(this[c]=255&f;++p<u&&(l*=256);)this[c+p]=f/l&255;return c+u},m.prototype.writeUintBE=m.prototype.writeUIntBE=function(f,c,u,d){if(f*=1,c>>>=0,u>>>=0,!d){var h=Math.pow(2,8*u)-1;G(this,f,c,u,h,0)}var l=u-1,p=1;for(this[c+l]=255&f;--l>=0&&(p*=256);)this[c+l]=f/p&255;return c+u},m.prototype.writeUint8=m.prototype.writeUInt8=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,1,255,0),this[c]=255&f,c+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,2,65535,0),this[c]=255&f,this[c+1]=f>>>8,c+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,2,65535,0),this[c]=f>>>8,this[c+1]=255&f,c+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,4,0xffffffff,0),this[c+3]=f>>>24,this[c+2]=f>>>16,this[c+1]=f>>>8,this[c]=255&f,c+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,4,0xffffffff,0),this[c]=f>>>24,this[c+1]=f>>>16,this[c+2]=f>>>8,this[c+3]=255&f,c+4},m.prototype.writeIntLE=function(f,c,u,d){if(f*=1,c>>>=0,!d){var h=Math.pow(2,8*u-1);G(this,f,c,u,h-1,-h)}var l=0,p=1,b=0;for(this[c]=255&f;++l<u&&(p*=256);)f<0&&0===b&&0!==this[c+l-1]&&(b=1),this[c+l]=(f/p|0)-b&255;return c+u},m.prototype.writeIntBE=function(f,c,u,d){if(f*=1,c>>>=0,!d){var h=Math.pow(2,8*u-1);G(this,f,c,u,h-1,-h)}var l=u-1,p=1,b=0;for(this[c+l]=255&f;--l>=0&&(p*=256);)f<0&&0===b&&0!==this[c+l+1]&&(b=1),this[c+l]=(f/p|0)-b&255;return c+u},m.prototype.writeInt8=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,1,127,-128),f<0&&(f=255+f+1),this[c]=255&f,c+1},m.prototype.writeInt16LE=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,2,32767,-32768),this[c]=255&f,this[c+1]=f>>>8,c+2},m.prototype.writeInt16BE=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,2,32767,-32768),this[c]=f>>>8,this[c+1]=255&f,c+2},m.prototype.writeInt32LE=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,4,0x7fffffff,-0x80000000),this[c]=255&f,this[c+1]=f>>>8,this[c+2]=f>>>16,this[c+3]=f>>>24,c+4},m.prototype.writeInt32BE=function(f,c,u){return f*=1,c>>>=0,u||G(this,f,c,4,0x7fffffff,-0x80000000),f<0&&(f=0xffffffff+f+1),this[c]=f>>>24,this[c+1]=f>>>16,this[c+2]=f>>>8,this[c+3]=255&f,c+4},m.prototype.writeFloatLE=function(f,c,u){return Y(this,f,c,!0,u)},m.prototype.writeFloatBE=function(f,c,u){return Y(this,f,c,!1,u)},m.prototype.writeDoubleLE=function(f,c,u){return X(this,f,c,!0,u)},m.prototype.writeDoubleBE=function(f,c,u){return X(this,f,c,!1,u)},m.prototype.copy=function(f,c,u,d){if(!m.isBuffer(f))throw TypeError("argument should be a Buffer");if(u||(u=0),d||0===d||(d=this.length),c>=f.length&&(c=f.length),c||(c=0),d>0&&d<u&&(d=u),d===u||0===f.length||0===this.length)return 0;if(c<0)throw RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw RangeError("Index out of range");if(d<0)throw RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),f.length-c<d-u&&(d=f.length-c+u);var h=d-u;return this===f&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(c,u,d):Uint8Array.prototype.set.call(f,this.subarray(u,d),c),h},m.prototype.fill=function(f,c,u,d){if("string"==typeof f){if("string"==typeof c?(d=c,c=0,u=this.length):"string"==typeof u&&(d=u,u=this.length),void 0!==d&&"string"!=typeof d)throw TypeError("encoding must be a string");if("string"==typeof d&&!m.isEncoding(d))throw TypeError("Unknown encoding: "+d);if(1===f.length){var h,l=f.charCodeAt(0);("utf8"===d&&l<128||"latin1"===d)&&(f=l)}}else"number"==typeof f?f&=255:"boolean"==typeof f&&(f=Number(f));if(c<0||this.length<c||this.length<u)throw RangeError("Out of range index");if(u<=c)return this;if(c>>>=0,u=void 0===u?this.length:u>>>0,f||(f=0),"number"==typeof f)for(h=c;h<u;++h)this[h]=f;else{var p=m.isBuffer(f)?f:m.from(f,d),b=p.length;if(0===b)throw TypeError('The value "'+f+'" is invalid for argument "value"');for(h=0;h<u-c;++h)this[h+c]=p[h%b]}return this};var Q=/[^+/0-9A-Za-z-_]/g;function Z(f){if((f=(f=f.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;f.length%4!=0;)f+="=";return f}function ee(f,c){c=c||1/0;for(var u,d=f.length,h=null,l=[],p=0;p<d;++p){if((u=f.charCodeAt(p))>55295&&u<57344){if(!h){if(u>56319||p+1===d){(c-=3)>-1&&l.push(239,191,189);continue}h=u;continue}if(u<56320){(c-=3)>-1&&l.push(239,191,189),h=u;continue}u=(h-55296<<10|u-56320)+65536}else h&&(c-=3)>-1&&l.push(239,191,189);if(h=null,u<128){if((c-=1)<0)break;l.push(u)}else if(u<2048){if((c-=2)<0)break;l.push(u>>6|192,63&u|128)}else if(u<65536){if((c-=3)<0)break;l.push(u>>12|224,u>>6&63|128,63&u|128)}else if(u<1114112){if((c-=4)<0)break;l.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}else throw Error("Invalid code point")}return l}function et(f){for(var c=[],u=0;u<f.length;++u)c.push(255&f.charCodeAt(u));return c}function er(f,c){for(var u,d,h=[],l=0;l<f.length&&!((c-=2)<0);++l)d=(u=f.charCodeAt(l))>>8,h.push(u%256),h.push(d);return h}function ei(f){return d.toByteArray(Z(f))}function en(f,c,u,d){for(var h=0;h<d&&!(h+u>=c.length)&&!(h>=f.length);++h)c[h+u]=f[h];return h}function eo(f,c){return f instanceof c||null!=f&&null!=f.constructor&&null!=f.constructor.name&&f.constructor.name===c.name}function ea(f){return f!=f}var es=function(){for(var f="0123456789abcdef",c=Array(256),u=0;u<16;++u)for(var d=16*u,h=0;h<16;++h)c[d+h]=f[u]+f[h];return c}()},679877,(f,c,u)=>{"use strict";var d,h="object"==typeof Reflect?Reflect:null,l=h&&"function"==typeof h.apply?h.apply:function(f,c,u){return Function.prototype.apply.call(f,c,u)};function p(f){console&&console.warn&&console.warn(f)}d=h&&"function"==typeof h.ownKeys?h.ownKeys:Object.getOwnPropertySymbols?function(f){return Object.getOwnPropertyNames(f).concat(Object.getOwnPropertySymbols(f))}:function(f){return Object.getOwnPropertyNames(f)};var b=Number.isNaN||function(f){return f!=f};function y(){y.init.call(this)}c.exports=y,c.exports.once=k,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var m=10;function g(f){if("function"!=typeof f)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof f)}function v(f){return void 0===f._maxListeners?y.defaultMaxListeners:f._maxListeners}
1function _(f,c,u,d){if(g(u),void 0===(l=f._events)?(l=f._events=Object.create(null),f._eventsCount=0):(void 0!==l.newListener&&(f.emit("newListener",c,u.listener?u.listener:u),l=f._events),b=l[c]),void 0===b)b=l[c]=u,++f._eventsCount;else if("function"==typeof b?b=l[c]=d?[u,b]:[b,u]:d?b.unshift(u):b.push(u),(h=v(f))>0&&b.length>h&&!b.warned){b.warned=!0;var h,l,b,y=Error("Possible EventEmitter memory leak detected. "+b.length+" "+String(c)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=f,y.type=c,y.count=b.length,p(y)}return f}function w(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(f,c,u){var d={fired:!1,wrapFn:void 0,target:f,type:c,listener:u},h=w.bind(d);return h.listener=u,d.wrapFn=h,h}function S(f,c,u){var d=f._events;if(void 0===d)return[];var h=d[c];return void 0===h?[]:"function"==typeof h?u?[h.listener||h]:[h]:u?R(h):M(h,h.length)}function E(f){var c=this._events;if(void 0!==c){var u=c[f];if("function"==typeof u)return 1;if(void 0!==u)return u.length}return 0}function M(f,c){for(var u=Array(c),d=0;d<c;++d)u[d]=f[d];return u}function A(f,c){for(;c+1<f.length;c++)f[c]=f[c+1];f.pop()}function R(f){for(var c=Array(f.length),u=0;u<c.length;++u)c[u]=f[u].listener||f[u];return c}function k(f,c){return new Promise(function(u,d){function h(u){f.removeListener(c,l),d(u)}function l(){"function"==typeof f.removeListener&&f.removeListener("error",h),u([].slice.call(arguments))}I(f,c,l,{once:!0}),"error"!==c&&P(f,h,{once:!0})})}function P(f,c,u){"function"==typeof f.on&&I(f,"error",c,u)}function I(f,c,u,d){if("function"==typeof f.on)d.once?f.once(c,u):f.on(c,u);else if("function"==typeof f.addEventListener)f.addEventListener(c,function h(l){d.once&&f.removeEventListener(c,h),u(l)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof f)}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(f){if("number"!=typeof f||f<0||b(f))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+f+".");m=f}}),y.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},y.prototype.setMaxListeners=function(f){if("number"!=typeof f||f<0||b(f))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+f+".");return this._maxListeners=f,this},y.prototype.getMaxListeners=function(){return v(this)},y.prototype.emit=function(f){for(var c=[],u=1;u<arguments.length;u++)c.push(arguments[u]);var d="error"===f,h=this._events;if(void 0!==h)d=d&&void 0===h.error;else if(!d)return!1;if(d){if(c.length>0&&(p=c[0]),p instanceof Error)throw p;var p,b=Error("Unhandled error."+(p?" ("+p.message+")":""));throw b.context=p,b}var y=h[f];if(void 0===y)return!1;if("function"==typeof y)l(y,this,c);else for(var m=y.length,g=M(y,m),u=0;u<m;++u)l(g[u],this,c);return!0},y.prototype.addListener=function(f,c){return _(this,f,c,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(f,c){return _(this,f,c,!0)},y.prototype.once=function(f,c){return g(c),this.on(f,x(this,f,c)),this},y.prototype.prependOnceListener=function(f,c){return g(c),this.prependListener(f,x(this,f,c)),this},y.prototype.removeListener=function(f,c){var u,d,h,l,p;if(g(c),void 0===(d=this._events)||void 0===(u=d[f]))return this;if(u===c||u.listener===c)0==--this._eventsCount?this._events=Object.create(null):(delete d[f],d.removeListener&&this.emit("removeListener",f,u.listener||c));else if("function"!=typeof u){for(h=-1,l=u.length-1;l>=0;l--)if(u[l]===c||u[l].listener===c){p=u[l].listener,h=l;break}if(h<0)return this;0===h?u.shift():A(u,h),1===u.length&&(d[f]=u[0]),void 0!==d.removeListener&&this.emit("removeListener",f,p||c)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(f){var c,u,d;if(void 0===(u=this._events))return this;if(void 0===u.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==u[f]&&(0==--this._eventsCount?this._events=Object.create(null):delete u[f]),this;if(0==arguments.length){var h,l=Object.keys(u);for(d=0;d<l.length;++d)"removeListener"!==(h=l[d])&&this.removeAllListeners(h);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(c=u[f]))this.removeListener(f,c);else if(void 0!==c)for(d=c.length-1;d>=0;d--)this.removeListener(f,c[d]);return this},y.prototype.listeners=function(f){return S(this,f,!0)},y.prototype.rawListeners=function(f){return S(this,f,!1)},y.listenerCount=function(f,c){return"function"==typeof f.listenerCount?f.listenerCount(c):E.call(f,c)},y.prototype.listenerCount=E,y.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]}},729394,(f,c,u)=>{var d=f.i(123651),h=f.i(62921),l={7492:function(f){f.exports=function(f,u,d){if(f.filter)return f.filter(u,d);if(null==f||"function"!=typeof u)throw TypeError();for(var h=[],l=0;l<f.length;l++)if(c.call(f,l)){var p=f[l];u.call(d,p,l,f)&&h.push(p)}return h};var c=Object.prototype.hasOwnProperty},1648:function(f,c,u){"use strict";var d=u(7797),h=u(4834),l=u(8772);f.exports=u(9095)||d.call(l,h)},4757:function(f,c,u){"use strict";var d=u(7797),h=u(4834),l=u(1648);f.exports=function(){return l(d,h,arguments)}},4834:function(f){"use strict";f.exports=Function.prototype.apply},8772:function(f){"use strict";f.exports=Function.prototype.call},2462:function(f,c,u){"use strict";var d=u(7797),h=u(4785),l=u(8772),p=u(1648);f.exports=function(f){if(f.length<1||"function"!=typeof f[0])throw new h("a function is required");return p(d,l,f)}},9095:function(f){"use strict";f.exports="u">typeof Reflect&&Reflect&&Reflect.apply},2982:function(f,c,u){"use strict";var d=u(1893),h=u(5494),l=h(d("String.prototype.indexOf"));f.exports=function(f,c){var u=d(f,!!c);return"function"==typeof u&&l(f,".prototype.")>-1?h(u):u}},5494:function(f,c,u){"use strict";var d=u(3798),h=u(871),l=u(2462),p=u(4757);f.exports=function(f){var c=l(arguments),u=f.length-(arguments.length-1);return d(c,1+(u>0?u:0),!0)},h?h(f.exports,"apply",{value:p}):f.exports.apply=p},2071:function(f,c,u){"use strict";var d=u(871),h=u(9546),l=u(4785),p=u(8322);f.exports=function(f,c,u){if(!f||"object"!=typeof f&&"function"!=typeof f)throw new l("`obj` must be an object or a function`");if("string"!=typeof c&&"symbol"!=typeof c)throw new l("`property` must be a string or a symbol`");
vendor: 1,990 bytes, line 1
1if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var b=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,m=arguments.length>5?arguments[5]:null,g=arguments.length>6&&arguments[6],v=!!p&&p(f,c);if(d)d(f,c,{configurable:null===m&&v?v.configurable:!m,enumerable:null===b&&v?v.enumerable:!b,value:u,writable:null===y&&v?v.writable:!y});else if(!g&&(b||y||m))throw new h("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else f[c]=u}},3859:function(f,c,u){"use strict";var d,h=u(2462),l=u(8322);try{d=[].__proto__===Array.prototype}catch(f){if(!f||"object"!=typeof f||!("code"in f)||"ERR_PROTO_ACCESS"!==f.code)throw f}var p=!!d&&l&&l(Object.prototype,"__proto__"),b=Object,y=b.getPrototypeOf;f.exports=p&&"function"==typeof p.get?h([p.get]):"function"==typeof y&&function(f){return y(null==f?f:b(f))}},871:function(f){"use strict";var c=Object.defineProperty||!1;if(c)try{c({},"a",{value:1})}catch(f){c=!1}f.exports=c},1247:function(f){"use strict";f.exports=EvalError},6621:function(f){"use strict";f.exports=Error},6136:function(f){"use strict";f.exports=RangeError},252:function(f){"use strict";f.exports=ReferenceError},9546:function(f){"use strict";f.exports=SyntaxError},4785:function(f){"use strict";f.exports=TypeError},1223:function(f){"use strict";f.exports=URIError},8300:function(f){"use strict";f.exports=Object},4680:function(f){var c=Object.prototype.hasOwnProperty,u=Object.prototype.toString;
1f.exports=function(f,d,h){if("[object Function]"!==u.call(d))throw TypeError("iterator must be a function");var l=f.length;if(l===+l)for(var p=0;p<l;p++)d.call(h,f[p],p,f);else for(var b in f)c.call(f,b)&&d.call(h,f[b],b,f)}},6555:function(f){"use strict";var c="Function.prototype.bind called on incompatible ",u=Object.prototype.toString,d=Math.max,h="[object Function]",l=function(f,c){for(var u=[],d=0;d<f.length;d+=1)u[d]=f[d];for(var h=0;h<c.length;h+=1)u[h+f.length]=c[h];return u},p=function(f,c){for(var u=[],d=c||0,h=0;d<f.length;d+=1,h+=1)u[h]=f[d];return u},b=function(f,c){for(var u="",d=0;d<f.length;d+=1)u+=f[d],d+1<f.length&&(u+=c);return u};f.exports=function(f){var y,m=this;if("function"!=typeof m||u.apply(m)!==h)throw TypeError(c+m);for(var g=p(arguments,1),v=function(){if(this instanceof y){var c=m.apply(this,l(g,arguments));return Object(c)===c?c:this}return m.apply(f,l(g,arguments))},_=d(0,m.length-g.length),w=[],x=0;x<_;x++)w[x]="$"+x;if(y=Function("binder","return function ("+b(w,",")+"){ return binder.apply(this,arguments); }")(v),m.prototype){var S=function(){};S.prototype=m.prototype,y.prototype=new S,S.prototype=null}return y}},7797:function(f,c,u){"use strict";var d=u(6555);f.exports=Function.prototype.bind||d},1893:function(f,c,u){"use strict";var d,h=u(8300),l=u(6621),p=u(1247),b=u(6136),y=u(252),m=u(9546),g=u(4785),v=u(1223),_=u(4197),w=u(4455),x=u(1295),S=u(6949),E=u(2943),M=u(1721),A=u(3536),R=Function,k=function(f){try{return R('"use strict"; return ('+f+").constructor;")()}catch(f){}},P=u(8322),I=u(871),O=function(){throw new g},T=P?function(){try{return arguments.callee,O}catch(f){try{return P(arguments,"callee").get}catch(f){return O}}}():O,N=u(9131)(),C=u(9717),B=u(45),L=u(7767),D=u(4834),U=u(8772),j={},F="u">typeof Uint8Array&&C?C(Uint8Array):d,q={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?d:ArrayBuffer,"%ArrayIteratorPrototype%":N&&C?C([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":"u"<typeof Atomics?d:Atomics,"%BigInt%":"u"<typeof BigInt?d:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?d:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":p,"%Float16Array%":"u"<typeof Float16Array?d:Float16Array,"%Float32Array%":"u"<typeof Float32Array?d:Float32Array,"%Float64Array%":"u"<typeof Float64Array?d:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?d:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":j,"%Int8Array%":"u"<typeof Int8Array?d:Int8Array,"%Int16Array%":"u"<typeof Int16Array?d:Int16Array,"%Int32Array%":"u"<typeof Int32Array?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":N&&C?C(C([][Symbol.iterator]())):d,"%JSON%":"object"==typeof JSON?JSON:d,"%Map%":"u"<typeof Map?d:Map,"%MapIteratorPrototype%":"u">typeof Map&&N&&C?C((new Map)[Symbol.iterator]()):d,"%Math%":Math,"%Number%":Number,"%Object%":h,"%Object.getOwnPropertyDescriptor%":P,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?d:Promise,"%Proxy%":"u"<typeof Proxy?d:Proxy,"%RangeError%":b,"%ReferenceError%":y,"%Reflect%":"u"<typeof Reflect?d:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?d:Set,"%SetIteratorPrototype%":"u">typeof Set&&N&&C?C((new Set)[Symbol.iterator]()):d,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&C?C(""[Symbol.iterator]()):d,"%Symbol%":N?Symbol:d,"%SyntaxError%":m,"%ThrowTypeError%":T,"%TypedArray%":F,"%TypeError%":g,"%Uint8Array%":"u"<typeof Uint8Array?d:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?d:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?d:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?d:Uint32Array,"%URIError%":v,"%WeakMap%":"u"<typeof WeakMap?d:WeakMap,"%WeakRef%":"u"<typeof WeakRef?d:WeakRef,"%WeakSet%":"u"<typeof WeakSet?d:WeakSet,"%Function.prototype.call%":U,"%Function.prototype.apply%":D,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":B,"%Math.abs%":_,"%Math.floor%":w,"%Math.max%":x,"%Math.min%":S,"%Math.pow%":E,"%Math.round%":M,"%Math.sign%":A,"%Reflect.getPrototypeOf%":L};if(C)try{null.error}catch(f){var $=C(C(f));q["%Error.prototype%"]=$}var z=function f(c){var u;if("%AsyncFunction%"===c)u=k("async function () {}");else if("%GeneratorFunction%"===c)u=k("function* () {}");else if("%AsyncGeneratorFunction%"===c)u=k("async function* () {}");else if("%AsyncGenerator%"===c){var d=f("%AsyncGeneratorFunction%");d&&(u=d.prototype)}else if("%AsyncIteratorPrototype%"===c){var h=f("%AsyncGenerator%");h&&C&&(u=C(h.prototype))}return q[c]=u,u},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=u(7797),H=u(3383),W=K.call(U,Array.prototype.concat),G=K.call(D,Array.prototype.splice),J=K.call(U,String.prototype.replace),Y=K.call(U,String.prototype.slice),X=K.call(U,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,ee=function(f){var c=Y(f,0,1),u=Y(f,-1);
vendor: 2,290 bytes, line 1
1if("%"===c&&"%"!==u)throw new m("invalid intrinsic syntax, expected closing `%`");if("%"===u&&"%"!==c)throw new m("invalid intrinsic syntax, expected opening `%`");var d=[];return J(f,Q,function(f,c,u,h){d[d.length]=u?J(h,Z,"$1"):c||f}),d},et=function(f,c){var u,d=f;if(H(V,d)&&(d="%"+(u=V[d])[0]+"%"),H(q,d)){var h=q[d];if(h===j&&(h=z(d)),void 0===h&&!c)throw new g("intrinsic "+f+" exists, but is not available. Please file an issue!");return{alias:u,name:d,value:h}}throw new m("intrinsic "+f+" does not exist!")};f.exports=function(f,c){if("string"!=typeof f||0===f.length)throw new g("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof c)throw new g('"allowMissing" argument must be a boolean');if(null===X(/^%?[^%]*%?$/,f))throw new m("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var u=ee(f),d=u.length>0?u[0]:"",h=et("%"+d+"%",c),l=h.name,p=h.value,b=!1,y=h.alias;y&&(d=y[0],G(u,W([0,1],y)));for(var v=1,_=!0;v<u.length;v+=1){var w=u[v],x=Y(w,0,1),S=Y(w,-1);if(('"'===x||"'"===x||"`"===x||'"'===S||"'"===S||"`"===S)&&x!==S)throw new m("property names with quotes must have matching quotes");if("constructor"!==w&&_||(b=!0),d+="."+w,H(q,l="%"+d+"%"))p=q[l];else if(null!=p){if(!(w in p)){if(!c)throw new g("base intrinsic for "+f+" exists, but the property is not available.");return}if(P&&v+1>=u.length){var E=P(p,w);p=(_=!!E)&&"get"in E&&!("originalValue"in E.get)?E.get:p[w]}else _=H(p,w),p=p[w];_&&!b&&(q[l]=p)}}return p}},45:function(f,c,u){"use strict";f.exports=u(8300).getPrototypeOf||null},7767:function(f){"use strict";f.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},9717:function(f,c,u){"use strict";var d=u(7767),h=u(45),l=u(3859);f.exports=d?function(f){return d(f)}:h?function(f){if(!f||"object"!=typeof f&&"function"!=typeof f)throw TypeError("getProto: not an object");return h(f)}:l?function(f){return l(f)}:null},8422:function(f){"use strict";f.exports=Object.getOwnPropertyDescriptor},8322:function(f,c,u){"use strict";var d=u(8422);if(d)try{d([],"length")}catch(f){d=null}f.exports=d},8122:function(f,c,u){"use strict";var d=u(871),h=function(){return!!d};h.hasArrayLengthDefineBug=function(){if(!d)return null;try{return 1!==d([],"length",{value:1}).length}catch(f){return!0}}
1,f.exports=h},8564:function(f,c,u){"use strict";var d="u">typeof Symbol&&Symbol,h=u(9094);f.exports=function(){return"function"==typeof d&&"function"==typeof Symbol&&"symbol"==typeof d("foo")&&"symbol"==typeof Symbol("bar")&&h()}},9094:function(f){"use strict";f.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var f={},c=Symbol("test"),u=Object(c);if("string"==typeof c||"[object Symbol]"!==Object.prototype.toString.call(c)||"[object Symbol]"!==Object.prototype.toString.call(u))return!1;var d=42;for(c in f[c]=d,f)return!1;if("function"==typeof Object.keys&&0!==Object.keys(f).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(f).length)return!1;var h=Object.getOwnPropertySymbols(f);if(1!==h.length||h[0]!==c||!Object.prototype.propertyIsEnumerable.call(f,c))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var l=Object.getOwnPropertyDescriptor(f,c);if(l.value!==d||!0!==l.enumerable)return!1}return!0}},9131:function(f,c,u){"use strict";var d="u">typeof Symbol&&Symbol,h=u(6313);f.exports=function(){return"function"==typeof d&&"function"==typeof Symbol&&"symbol"==typeof d("foo")&&"symbol"==typeof Symbol("bar")&&h()}},6313:function(f){"use strict";f.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var f={},c=Symbol("test"),u=Object(c);if("string"==typeof c||"[object Symbol]"!==Object.prototype.toString.call(c)||"[object Symbol]"!==Object.prototype.toString.call(u))return!1;var d=42;for(var h in f[c]=d,f)return!1;if("function"==typeof Object.keys&&0!==Object.keys(f).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(f).length)return!1;var l=Object.getOwnPropertySymbols(f);if(1!==l.length||l[0]!==c||!Object.prototype.propertyIsEnumerable.call(f,c))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var p=Object.getOwnPropertyDescriptor(f,c);if(p.value!==d||!0!==p.enumerable)return!1}return!0}},3383:function(f,c,u){"use strict";var d=Function.prototype.call,h=Object.prototype.hasOwnProperty;f.exports=u(7797).call(d,h)},1638:function(f){"function"==typeof Object.create?f.exports=function(f,c){c&&(f.super_=c,f.prototype=Object.create(c.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))}:f.exports=function(f,c){if(c){f.super_=c;var u=function(){};u.prototype=c.prototype,f.prototype=new u,f.prototype.constructor=f}}},6960:function(f){"use strict";var c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,u=Object.prototype.toString,d=function(f){return(!c||!f||"object"!=typeof f||!(Symbol.toStringTag in f))&&"[object Arguments]"===u.call(f)},h=function(f){return!!d(f)||null!==f&&"object"==typeof f&&"number"==typeof f.length&&f.length>=0&&"[object Array]"!==u.call(f)&&"[object Function]"===u.call(f.callee)},l=function(){return d(arguments)}();d.isLegacyArguments=h,f.exports=l?d:h},8979:function(f){"use strict";var c=Object.prototype.toString,u=Function.prototype.toString,d=/^\s*(?:function)?\*/,h="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=Object.getPrototypeOf,p=function(){if(!h)return!1;try{return Function("return function*() {}")()}catch(f){}}(),b=p?l(p):{};f.exports=function(f){return"function"==typeof f&&(!!d.test(u.call(f))||(h?l(f)===b:"[object GeneratorFunction]"===c.call(f)))}},9572:function(c,u,d){"use strict";var h=d(4680),l=d(3147),p=d(2982),b=p("Object.prototype.toString"),y=d(8564)()&&"symbol"==typeof Symbol.toStringTag,m=l(),g=p("Array.prototype.indexOf",!0)||function(f,c){for(var u=0;u<f.length;u+=1)if(f[u]===c)return u;return -1},v=p("String.prototype.slice"),_={},w=d(9745),x=Object.getPrototypeOf;y&&w&&x&&h(m,function(c){var u=new f.g[c];if(!(Symbol.toStringTag in u))throw EvalError("this engine has support for Symbol.toStringTag, but "+c+" does not have the property! Please report this.");var d=x(u),h=w(d,Symbol.toStringTag);h||(h=w(x(d),Symbol.toStringTag)),_[c]=h.get});var S=function(f){var c=!1;return h(_,function(u,d){if(!c)try{c=u.call(f)===d}catch(f){}}),c};c.exports=function(f){return!!f&&"object"==typeof f&&(y?!!w&&S(f):g(m,v(b(f),8,-1))>-1)}},4197:function(f){"use strict";f.exports=Math.abs},4455:function(f){"use strict";f.exports=Math.floor},6128:function(f){"use strict";f.exports=Number.isNaN||function(f){return f!=f}},1295:function(f){"use strict";f.exports=Math.max},6949:function(f){"use strict";f.exports=Math.min},2943:function(f){"use strict";f.exports=Math.pow},1721:function(f){"use strict";f.exports=Math.round},3536:function(f,c,u){"use strict";var d=u(6128);f.exports=function(f){return d(f)||0===f?f:f<0?-1:1}},3798:function(f,c,u){"use strict";var d=u(1893),h=u(2071),l=u(8122)(),p=u(8322),b=u(4785),y=d("%Math.floor%");f.exports=function(f,c){if("function"!=typeof f)throw new b("`fn` is not a function");if("number"!=typeof c||c<0||c>0xffffffff||y(c)!==c)throw new b("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],d=!0,m=!0;if("length"in f&&p){var g=p(f,"length");g&&!g.configurable&&(d=!1),g&&!g.writable&&(m=!1)}return(d||m||!u)&&(l?h(f,"length",c,!0,!0):h(f,"length",c)),f}},3614:function(f){f.exports=function(f){return f instanceof d.Buffer}},7551:function(f,c,u){"use strict";var d=u(6960),h=u(8979),l=u(3051),p=u(9572);function b(f){return f.call.bind(f)}var y="u">typeof BigInt,m="u">typeof Symbol,g=b(Object.prototype.toString),v=b(Number.prototype.valueOf),_=b(String.prototype.valueOf),w=b(Boolean.prototype.valueOf);if(y)var x=b(BigInt.prototype.valueOf);if(m)var S=b(Symbol.prototype.valueOf);function E(f,c){if("object"!=typeof f)return!1;try{return c(f),!0}catch(f){return!1}}function M(f){return"[object Map]"===g(f)}function A(f){return"[object Set]"===g(f)}function R(f){return"[object WeakMap]"===g(f)}function k(f){return"[object WeakSet]"===g(f)}function P(f){return"[object ArrayBuffer]"===g(f)}function I(f){return!("u"<typeof ArrayBuffer)&&(P.working?P(f):f instanceof ArrayBuffer)}function O(f){return"[object DataView]"===g(f)}function T(f){return!("u"<typeof DataView)&&(O.working?O(f):f instanceof DataView)}c.isArgumentsObject=d,c.isGeneratorFunction=h,c.isTypedArray=p,c.isPromise=function(f){return"u">typeof Promise&&f instanceof Promise||null!==f&&"object"==typeof f&&"function"==typeof f.then&&"function"==typeof f.catch},c.isArrayBufferView=function(f){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(f):p(f)||T(f)},c.isUint8Array=function(f){return"Uint8Array"===l(f)},c.isUint8ClampedArray=function(f){return"Uint8ClampedArray"===l(f)},c.isUint16Array=function(f){return"Uint16Array"===l(f)},c.isUint32Array=function(f){return"Uint32Array"===l(f)},c.isInt8Array=function(f){return"Int8Array"===l(f)},c.isInt16Array=function(f){return"Int16Array"===l(f)},c.isInt32Array=function(f){return"Int32Array"===l(f)},c.isFloat32Array=function(f){return"Float32Array"===l(f)},c.isFloat64Array=function(f){return"Float64Array"===l(f)},c.isBigInt64Array=function(f){return"BigInt64Array"===l(f)},c.isBigUint64Array=function(f){return"BigUint64Array"===l(f)},M.working="u">typeof Map&&M(new Map),c.isMap=function(f){return!("u"<typeof Map)&&(M.working?M(f):f instanceof Map)},A.working="u">typeof Set&&A(new Set),c.isSet=function(f){return!("u"<typeof Set)&&(A.w
1orking?A(f):f instanceof Set)},R.working="u">typeof WeakMap&&R(new WeakMap),c.isWeakMap=function(f){return!("u"<typeof WeakMap)&&(R.working?R(f):f instanceof WeakMap)},k.working="u">typeof WeakSet&&k(new WeakSet),c.isWeakSet=function(f){return k(f)},P.working="u">typeof ArrayBuffer&&P(new ArrayBuffer),c.isArrayBuffer=I,O.working="u">typeof ArrayBuffer&&"u">typeof DataView&&O(new DataView(new ArrayBuffer(1),0,1)),c.isDataView=T;var N="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(f){return"[object SharedArrayBuffer]"===g(f)}function B(f){return void 0!==N&&(void 0===C.working&&(C.working=C(new N)),C.working?C(f):f instanceof N)}function L(f){return E(f,v)}function D(f){return E(f,_)}function U(f){return E(f,w)}function j(f){return y&&E(f,x)}function F(f){return m&&E(f,S)}c.isSharedArrayBuffer=B,c.isAsyncFunction=function(f){return"[object AsyncFunction]"===g(f)},c.isMapIterator=function(f){return"[object Map Iterator]"===g(f)},c.isSetIterator=function(f){return"[object Set Iterator]"===g(f)},c.isGeneratorObject=function(f){return"[object Generator]"===g(f)},c.isWebAssemblyCompiledModule=function(f){return"[object WebAssembly.Module]"===g(f)},c.isNumberObject=L,c.isStringObject=D,c.isBooleanObject=U,c.isBigIntObject=j,c.isSymbolObject=F,c.isBoxedPrimitive=function(f){return L(f)||D(f)||U(f)||j(f)||F(f)},c.isAnyArrayBuffer=function(f){return"u">typeof Uint8Array&&(I(f)||B(f))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(c,f,{enumerable:!1,value:function(){throw Error(f+" is not supported in userland")}})})},4268:function(f,c,u){var d=Object.getOwnPropertyDescriptors||function(f){for(var c=Object.keys(f),u={},d=0;d<c.length;d++)u[c[d]]=Object.getOwnPropertyDescriptor(f,c[d]);return u},l=/%[sdj%]/g;c.format=function(f){if(!O(f)){for(var c=[],u=0;u<arguments.length;u++)c.push(m(arguments[u]));return c.join(" ")}for(var u=1,d=arguments,h=d.length,p=String(f).replace(l,function(f){if("%%"===f)return"%";if(u>=h)return f;switch(f){case"%s":return String(d[u++]);case"%d":return Number(d[u++]);case"%j":try{return JSON.stringify(d[u++])}catch(f){return"[Circular]"}default:return f}}),b=d[u];u<h;b=d[++u])P(b)||!C(b)?p+=" "+b:p+=" "+m(b);return p},c.deprecate=function(f,u){if(void 0!==h.default&&!0===h.default.noDeprecation)return f;if(void 0===h.default)return function(){return c.deprecate(f,u).apply(this,arguments)};var d=!1;return function(){if(!d){if(h.default.throwDeprecation)throw Error(u);h.default.traceDeprecation?console.trace(u):console.error(u),d=!0}return f.apply(this,arguments)}};var p={},b=/^$/;if(h.default.env.NODE_DEBUG){var y=h.default.env.NODE_DEBUG;b=RegExp("^"+(y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function m(f,u){var d={seen:[],stylize:v};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),k(u)?d.showHidden=u:u&&c._extend(d,u),T(d.showHidden)&&(d.showHidden=!1),T(d.depth)&&(d.depth=2),T(d.colors)&&(d.colors=!1),T(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=g),w(d,f,d.depth)}function g(f,c){var u=m.styles[c];return u?"\x1b["+m.colors[u][0]+"m"+f+"\x1b["+m.colors[u][1]+"m":f}function v(f,c){return f}function _(f){var c={};return f.forEach(function(f,u){c[f]=!0}),c}function w(f,u,d){if(f.customInspect&&u&&D(u.inspect)&&u.inspect!==c.inspect&&!(u.constructor&&u.constructor.prototype===u)){var h,l=u.inspect(d,f);return O(l)||(l=w(f,l,d)),l}var p=x(f,u);if(p)return p;var b=Object.keys(u),y=_(b);if(f.showHidden&&(b=Object.getOwnPropertyNames(u)),L(u)&&(b.indexOf("message")>=0||b.indexOf("description")>=0))return S(u);if(0===b.length){if(D(u)){var m=u.name?": "+u.name:"";return f.stylize("[Function"+m+"]","special")}if(N(u))return f.stylize(RegExp.prototype.toString.call(u),"regexp");if(B(u))return f.stylize(Date.prototype.toString.call(u),"date");if(L(u))return S(u)}var g="",v=!1,k=["{","}"];if(R(u)&&(v=!0,k=["[","]"]),D(u)&&(g=" [Function"+(u.name?": "+u.name:"")+"]"),N(u)&&(g=" "+RegExp.prototype.toString.call(u)),B(u)&&(g=" "+Date.prototype.toUTCString.call(u)),L(u)&&(g=" "+S(u)),0===b.length&&(!v||0==u.length))return k[0]+g+k[1];if(d<0)if(N(u))return f.stylize(RegExp.prototype.toString.call(u),"regexp");else return f.stylize("[Object]","special");return f.seen.push(u),h=v?E(f,u,d,y,b):b.map(function(c){return M(f,u,d,y,c,v)}),f.seen.pop(),A(h,g,k)}function x(f,c){if(T(c))return f.stylize("undefined","undefined");if(O(c)){var u="'"+JSON.stringify(c).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return f.stylize(u,"string")}return I(c)?f.stylize(""+c,"number"):k(c)?f.stylize(""+c,"boolean"):P(c)?f.stylize("null","null"):void 0}function S(f){return"["+Error.prototype.toString.call(f)+"]"}function E(f,c,u,d,h){for(var l=[],p=0,b=c.length;p<b;++p)$(c,String(p))?l.push(M(f,c,u,d,String(p),!0)):l.push("");return h.forEach(function(h){h.match(/^\d+$/)||l.push(M(f,c,u,d,h,!0))}),l}function M(f,c,u,d,h,l){var p,b,y;if((y=Object.getOwnPropertyDescriptor(c,h)||{value:c[h]}).get?b=y.set?f.stylize("[Getter/Setter]","special"):f.stylize("[Getter]","special"):y.set&&(b=f.stylize("[
1Setter]","special")),$(d,h)||(p="["+h+"]"),!b&&(0>f.seen.indexOf(y.value)?(b=P(u)?w(f,y.value,null):w(f,y.value,u-1)).indexOf("\n")>-1&&(b=l?b.split("\n").map(function(f){return"  "+f}).join("\n").substr(2):"\n"+b.split("\n").map(function(f){return"   "+f}).join("\n")):b=f.stylize("[Circular]","special")),T(p)){if(l&&h.match(/^\d+$/))return b;(p=JSON.stringify(""+h)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(p=p.substr(1,p.length-2),p=f.stylize(p,"name")):(p=p.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),p=f.stylize(p,"string"))}return p+": "+b}function A(f,c,u){var d=0;return f.reduce(function(f,c){return d++,c.indexOf("\n")>=0&&d++,f+c.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?u[0]+(""===c?"":c+"\n ")+" "+f.join(",\n  ")+" "+u[1]:u[0]+c+" "+f.join(", ")+" "+u[1]}function R(f){return Array.isArray(f)}function k(f){return"boolean"==typeof f}function P(f){return null===f}function I(f){return"number"==typeof f}function O(f){return"string"==typeof f}function T(f){return void 0===f}function N(f){return C(f)&&"[object RegExp]"===U(f)}function C(f){return"object"==typeof f&&null!==f}function B(f){return C(f)&&"[object Date]"===U(f)}function L(f){return C(f)&&("[object Error]"===U(f)||f instanceof Error)}function D(f){return"function"==typeof f}function U(f){return Object.prototype.toString.call(f)}function j(f){return f<10?"0"+f.toString(10):f.toString(10)}c.debuglog=function(f){if(!p[f=f.toUpperCase()])if(b.test(f)){var u=h.default.pid;p[f]=function(){var d=c.format.apply(c,arguments);console.error("%s %d: %s",f,u,d)}}else p[f]=function(){};return p[f]},c.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},c.types=u(7551),c.isArray=R,c.isBoolean=k,c.isNull=P,c.isNullOrUndefined=function(f){return null==f}
1,c.isNumber=I,c.isString=O,c.isSymbol=function(f){return"symbol"==typeof f},c.isUndefined=T,c.isRegExp=N,c.types.isRegExp=N,c.isObject=C,c.isDate=B,c.types.isDate=B,c.isError=L,c.types.isNativeError=L,c.isFunction=D,c.isPrimitive=function(f){return null===f||"boolean"==typeof f||"number"==typeof f||"string"==typeof f||"symbol"==typeof f||void 0===f},c.isBuffer=u(3614);var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var f=new Date,c=[j(f.getHours()),j(f.getMinutes()),j(f.getSeconds())].join(":");return[f.getDate(),F[f.getMonth()],c].join(" ")}function $(f,c){return Object.prototype.hasOwnProperty.call(f,c)}c.log=function(){console.log("%s - %s",q(),c.format.apply(c,arguments))},c.inherits=u(1638),c._extend=function(f,c){if(!c||!C(c))return f;for(var u=Object.keys(c),d=u.length;d--;)f[u[d]]=c[u[d]];return f};var z="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function V(f,c){if(!f){var u=Error("Promise was rejected with a falsy value");u.reason=f,f=u}return c(f)}c.promisify=function(f){if("function"!=typeof f)throw TypeError('The "original" argument must be of type Function');if(z&&f[z]){var c=f[z];if("function"!=typeof c)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(c,z,{value:c,enumerable:!1,writable:!1,configurable:!0}),c}function c(){for(var c,u,d=new Promise(function(f,d){c=f,u=d}),h=[],l=0;l<arguments.length;l++)h.push(arguments[l]);h.push(function(f,d){f?u(f):c(d)});try{f.apply(this,h)}catch(f){u(f)}return d}return Object.setPrototypeOf(c,Object.getPrototypeOf(f)),z&&Object.defineProperty(c,z,{value:c,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(c,d(f))},c.promisify.custom=z,c.callbackify=function(f){if("function"!=typeof f)throw TypeError('The "original" argument must be of type Function');function c(){for(var c=[],u=0;u<arguments.length;u++)c.push(arguments[u]);var d=c.pop();if("function"!=typeof d)throw TypeError("The last argument must be of type Function");var l=this,p=function(){return d.apply(l,arguments)};f.apply(this,c).then(function(f){h.default.nextTick(p.bind(null,null,f))},function(f){h.default.nextTick(V.bind(null,f,p))})}return Object.setPrototypeOf(c,Object.getPrototypeOf(f)),Object.defineProperties(c,d(f)),c}},3051:function(c,u,d){"use strict";var h=d(4680),l=d(3147),p=d(2982),b=p("Object.prototype.toString"),y=d(8564)()&&"symbol"==typeof Symbol.toStringTag,m=l(),g=p("String.prototype.slice"),v={},_=d(9745),w=Object.getPrototypeOf;y&&_&&w&&h(m,function(c){if("function"==typeof f.g[c]){var u=new f.g[c];if(!(Symbol.toStringTag in u))throw EvalError("this engine has support for Symbol.toStringTag, but "+c+" does not have the property! Please report this.");var d=w(u),h=_(d,Symbol.toStringTag);h||(h=_(w(d),Symbol.toStringTag)),v[c]=h.get}});var x=function(f){var c=!1;return h(v,function(u,d){if(!c)try{var h=u.call(f);h===d&&(c=h)}catch(f){}}),c},S=d(9572);c.exports=function(f){return!!S(f)&&(y?x(f):g(b(f),8,-1))}},3147:function(c,u,d){"use strict";var h=d(7492);c.exports=function(){return h(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(c){return"function"==typeof f.g[c]})}},9745:function(f,c,u){"use strict";f.exports=u(8322)}},p={};function b(f){var c=p[f];if(void 0!==c)return c.exports;var u=p[f]={exports:{}},d=!0;try{l[f](u,u.exports,b),d=!1}finally{d&&delete p[f]}return u.exports}b.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_babel-plugi_fd21bb6a172ff382fa
178ed202dda2e3e/node_modules/next/dist/compiled/util/",c.exports=b(4268)},524051,(f,c,u)=>{var d=f.i(62921),h={638:function(f){"function"==typeof Object.create?f.exports=function(f,c){c&&(f.super_=c,f.prototype=Object.create(c.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))}:f.exports=function(f,c){if(c){f.super_=c;var u=function(){};u.prototype=c.prototype,f.prototype=new u,f.prototype.constructor=f}}},329:function(f){"use strict";let c={};function u(f,u,d){function h(f,c,d){return"string"==typeof u?u:u(f,c,d)}d||(d=Error);class l extends d{constructor(f,c,u){super(h(f,c,u))}}l.prototype.name=d.name,l.prototype.code=f,c[f]=l}function d(f,c){if(!Array.isArray(f))return`of ${c} ${String(f)}`;{let u=f.length;return(f=f.map(f=>String(f)),u>2)?`one of ${c} ${f.slice(0,u-1).join(", ")}, or `+f[u-1]:2===u?`one of ${c} ${f[0]} or ${f[1]}`:`of ${c} ${f[0]}`}}function h(f,c,u){return f.substr(!u||u<0?0:+u,c.length)===c}function l(f,c,u){return(void 0===u||u>f.length)&&(u=f.length),f.substring(u-c.length,u)===c}function p(f,c,u){return"number"!=typeof u&&(u=0),!(u+c.length>f.length)&&-1!==f.indexOf(c,u)}u("ERR_INVALID_OPT_VALUE",function(f,c){return'The value "'+c+'" is invalid for option "'+f+'"'},TypeError),u("ERR_INVALID_ARG_TYPE",function(f,c,u){let b,y;if("string"==typeof c&&h(c,"not ")?(b="must not be",c=c.replace(/^not /,"")):b="must be",l(f," argument"))y=`The ${f} ${b} ${d(c,"type")}`;else{let u=p(f,".")?"property":"argument";y=`The "${f}" ${u} ${b} ${d(c,"type")}`}return y+`. Received type ${typeof u}`},TypeError),u("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),u("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),u("ERR_STREAM_PREMATURE_CLOSE","Premature close"),u("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),u("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),u("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),u("ERR_STREAM_WRITE_AFTER_END","write after end"),u("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),u("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),u("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),f.exports.F=c},686:function(f,c,u){"use strict";var h=Object.keys||function(f){var c=[];for(var u in f)c.push(u);return c};f.exports=g;var l=u(276),p=u(732);u(638)(g,l);for(var b=h(p.prototype),y=0;y<b.length;y++){var m=b[y];g.prototype[m]||(g.prototype[m]=p.prototype[m])}function g(f){if(!(this instanceof g))return new g(f);l.call(this,f),p.call(this,f),this.allowHalfOpen=!0,f&&(!1===f.readable&&(this.readable=!1),!1===f.writable&&(this.writable=!1),!1===f.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",v)))}function v(){this._writableState.ended||d.default.nextTick(_,this)}function _(f){f.end()}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(g.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(g.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(g.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(f){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}})},512:function(f,c,u){"use strict";f.exports=h;var d=u(586);function h(f){if(!(this instanceof h))return new h(f);d.call(this,f)}u(638)(h,d),h.prototype._transform=function(f,c,u){u(null,f)}},276:function(c,u,h){"use strict";c.exports=D,D.ReadableState=L,h(434).EventEmitter;var l,p,b,y,m,g=function(f,c){return f.listeners(c).length},v=h(120),_=h(181).Buffer,w=f.g.Uint8Array||function(){};function x(f){return _.from(f)}function S(f){return _.isBuffer(f)||f instanceof w}var E=h(23);p=E&&E.debuglog?E.debuglog("stream"):function(){};var M=h(137),A=h(528),R=h(771).getHighWaterMark,k=h(329).F,P=k.ERR_INVALID_ARG_TYPE,I=k.ERR_STREAM_PUSH_AFTER_EOF,O=k.ERR_METHOD_NOT_IMPLEMENT
vendor: 11,408 bytes, line 1
1ED,T=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;h(638)(D,v);var N=A.errorOrDestroy,C=["error","close","destroy","pause","resume"];function B(f,c,u){if("function"==typeof f.prependListener)return f.prependListener(c,u);f._events&&f._events[c]?Array.isArray(f._events[c])?f._events[c].unshift(u):f._events[c]=[u,f._events[c]]:f.on(c,u)}function L(f,c,u){l=l||h(686),f=f||{},"boolean"!=typeof u&&(u=c instanceof l),this.objectMode=!!f.objectMode,u&&(this.objectMode=this.objectMode||!!f.readableObjectMode),this.highWaterMark=R(this,f,"readableHighWaterMark",u),this.buffer=new M,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==f.emitClose,this.autoDestroy=!!f.autoDestroy,this.destroyed=!1,this.defaultEncoding=f.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,f.encoding&&(b||(b=h(319).I),this.decoder=new b(f.encoding),this.encoding=f.encoding)}function D(f){if(l=l||h(686),!(this instanceof D))return new D(f);var c=this instanceof l;this._readableState=new L(f,this,c),this.readable=!0,f&&("function"==typeof f.read&&(this._read=f.read),"function"==typeof f.destroy&&(this._destroy=f.destroy)),v.call(this)}function U(f,c,u,d,h){p("readableAddChunk",c);var l,b=f._readableState;if(null===c)b.reading=!1,V(f,b);else if(h||(l=F(b,c)),l)N(f,l);else if(b.objectMode||c&&c.length>0)if("string"==typeof c||b.objectMode||Object.getPrototypeOf(c)===_.prototype||(c=x(c)),d)b.endEmitted?N(f,new T):j(f,b,c,!0);else if(b.ended)N(f,new I);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!u?(c=b.decoder.write(c),b.objectMode||0!==c.length?j(f,b,c,!1):W(f,b)):j(f,b,c,!1)}else d||(b.reading=!1,W(f,b));return!b.ended&&(b.length<b.highWaterMark||0===b.length)}function j(f,c,u,d){c.flowing&&0===c.length&&!c.sync?(c.awaitDrain=0,f.emit("data",u)):(c.length+=c.objectMode?1:u.length,d?c.buffer.unshift(u):c.buffer.push(u),c.needReadable&&K(f)),W(f,c)}function F(f,c){var u;return S(c)||"string"==typeof c||void 0===c||f.objectMode||(u=new P("chunk",["string","Buffer","Uint8Array"],c)),u}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(f){this._readableState&&(this._readableState.destroyed=f)}}),D.prototype.destroy=A.destroy,D.prototype._undestroy=A.undestroy,D.prototype._destroy=function(f,c){c(f)},D.prototype.push=function(f,c){var u,d=this._readableState;return d.objectMode?u=!0:"string"==typeof f&&((c=c||d.defaultEncoding)!==d.encoding&&(f=_.from(f,c),c=""),u=!0),U(this,f,c,!1,u)},D.prototype.unshift=function(f){return U(this,f,null,!0,!1)},D.prototype.isPaused=function(){return!1===this._readableState.flowing},D.prototype.setEncoding=function(f){b||(b=h(319).I);var c=new b(f);this._readableState.decoder=c,this._readableState.encoding=this._readableState.decoder.encoding;for(var u=this._readableState.buffer.head,d="";null!==u;)d+=c.write(u.data),u=u.next;return this._readableState.buffer.clear(),""!==d&&this._readableState.buffer.push(d),this._readableState.length=d.length,this};var q=0x40000000;function $(f){return f>=q?f=q:(f--,f|=f>>>1,f|=f>>>2,f|=f>>>4,f|=f>>>8,f|=f>>>16,f++),f}function z(f,c){if(f<=0||0===c.length&&c.ended)return 0;if(c.objectMode)return 1;if(f!=f)if(c.flowing&&c.length)return c.buffer.head.data.length;else return c.length;return(f>c.highWaterMark&&(c.highWaterMark=$(f)),f<=c.length)?f:c.ended?c.length:(c.needReadable=!0,0)}function V(f,c){if(p("onEofChunk"),!c.ended){if(c.decoder){var u=c.decoder.end();u&&u.length&&(c.buffer.push(u),c.length+=c.objectMode?1:u.length)}c.ended=!0,c.sync?K(f):(c.needReadable=!1,c.emittedReadable||(c.emittedReadable=!0,H(f)))}}function K(f){var c=f._readableState;p("emitReadable",c.needReadable,c.emittedReadable),c.needReadable=!1,c.emittedReadable||(p("emitReadable",c.flowing),c.emittedReadable=!0,d.default.nextTick(H,f))}function H(f){var c=f._readableState;p("emitReadable_",c.destroyed,c.length,c.ended),!c.destroyed&&(c.length||c.ended)&&(f.emit("readable"),c.emittedReadable=!1),c.needReadable=!c.flowing&&!c.ended&&c.length<=c.highWaterMark,ee(f)}function W(f,c){c.readingMore||(c.readingMore=!0,d.default.nextTick(G,f,c))}function G(f,c){for(;!c.reading&&!c.ended&&(c.length<c.highWaterMark||c.flowing&&0===c.length);){var u=c.length;if(p("maybeReadMore read 0"),f.read(0),u===c.length)break}c.readingMore=!1}function J(f){return function(){var c=f._readableState;p("pipeOnDrain",c.awaitDrain),c.awaitDrain&&c.awaitDrain--,0===c.awaitDrain&&g(f,"data")&&(c.flowing=!0,ee(f))}}function Y(f){var c=f._readableState;c.readableListening=f.listenerCount("readable")>0,c.resumeScheduled&&!c.paused?c.flowing=!0:f.listenerCount("data")>0&&f.resume()}function X(f){p("readable nexttick read 0"),f.read(0)}function Q(f,c){c.resumeScheduled||(c.resumeScheduled=!0,d.default.nextTick(Z,f,c))}function Z(f,c){p("resume",c.reading),c.reading||f.read(0),c.resumeScheduled=!1,f.emit("resume"),ee(f),c.flowing&&!c.reading&&f.read(0)}function ee(f){var c=f._readableState;for(p("flow",c.flowing);c.flowing&&null!==f.read(););}function et(f,c){var u;return 0===c.length?null:(c.objectMode?u=c.buffer.shift():!f||f>=c.length?(u=c.decoder?c.buffer.join(""):1===c.buffer.length?c.buffer.first():c.buffer.concat(c.length),c.buffer.clear()):u=c.buffer.consume(f,c.decoder),u)}function er(f){var c=f._readableState;p("endReadable",c.endEmitted),c.endEmitted||(c.ended=!0,d.default.nextTick(ei,c,f))}function ei(f,c){if(p("endReadableNT",f.endEmitted,f.length),!f.endEmitted&&0===f.length&&(f.endEmitted=!0,c.readable=!1,c.emit("end"),f.autoDestroy)){var u=c._writableState;(!u||u.autoDestroy&&u.finished)&&c.destroy()}}function en(f,c){for(var u=0,d=f.length;u<d;u++)if(f[u]===c)return u;return -1}D.prototype.read=function(f){p("read",f),f=parseInt(f,10);var c,u=this._readableState,d=f;if(0!==f&&(u.emittedReadable=!1),0===f&&u.needReadable&&((0!==u.highWaterMark?u.length>=u.highWaterMark:u.length>0)||u.ended))return p("read: emitReadable",u.length,u.ended),0===u.length&&u.ended?er(this):K(this),null;if(0===(f=z(f,u))&&u.ended)return 0===u.length&&er(this),null;var h=u.needReadable;return p("need readable",h),(0===u.length||u.length-f<u.highWaterMark)&&p("length less than watermark",h=!0),u.ended||u.reading?p("reading or ended",h=!1):h&&(p("do read"),u.reading=!0,u.sync=!0,0===u.length&&(u.needReadable=!0),this._read(u.highWaterMark),u.sync=!1,u.reading||(f=z(d,u))),null===(c=f>0?et(f,u):null)?(u.needReadable=u.length<=u.highWaterMark,f=0):(u.length-=f,u.awaitDrain=0),0===u.length&&(u.ended||(u.needReadable=!0),d!==f&&u.ended&&er(this)),null!==c&&this.emit("data",c),c},D.prototype._read=function(f){N(this,new O("_read()"))},D.prototype.pipe=function(f,c){var u=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=f;break;case 1:h.pipes=[h.pipes,f];break;default:h.pipes.push(f)}h.pipesCount+=1,p("pipe count=%d opts=%j",h.pipesCount,c);var l=c&&!1===c.end||f===d.default.stdout||f===d.default.stderr?M:y;function b(f,c){p("onunpipe"),f===u&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,_())}function y(){p("onend"),f.end()}h.endEmitted?d.default.nextTick(l):u.once("end",l),f.on("unpipe",b);var m=J(u);f.on("drain",m);var v=!1;function _(){p("cleanup"),f.removeListener("close",S),f.removeListener("finish",E),f.removeListener("drain",m),f.removeListener("error",x),f.removeListener("unpipe",b),u.removeListener("end",y),u.removeListener("end",M),u.removeListener("data",w),v=!0,h.awaitDrain&&(!f._writableState||f._writableState.needDrain)&&m()}function w(c){p("ondata");var d=f.write(c);p("dest.write",d),!1===d&&((1===h.pipesCount&&h.pipes===f||h.pipesCount>1&&-1!==en(h.pipes,f))&&!v&&(p("false write response, pause",h.awaitDrain),h.awaitDrain++),u.pause())}function x(c){p("onerror",c),M(),f.removeListener("error",x),0===g(f,"error")&&N(f,c)}function S(){f.removeListener("finish",E),M()}function E(){p("onfinish"),f.removeListener("close",S),M()}function M(){p("unpipe"),u.unpipe(f)}return u.on("data",w),B(f,"error",x),f.once("close",S),f.once("finish",E),f.emit("pipe",u),h.flowing||(p("pipe resume"),u.resume()),f},D.prototype.unpipe=function(f){var c=this._readableState,u={hasUnpiped:!1};if(0===c.pipesCount)return this;if(1===c.pipesCount)return f&&f!==c.pipes||(f||(f=c.pipes),c.pipes=null,c.pipesCount=0,c.flowing=!1,f&&f.emit("unpipe",this,u)),this;if(!f){var d=c.pipes,h=c.pipesCount;c.pipes=null,c.pipesCount=0,c.flowing=!1;for(var l=0;l<h;l++)d[l].emit("unpipe",this,{hasUnpiped:!1});return this}var p=en(c.pipes,f);return -1===p||(c.pipes.splice(p,1),c.pipesCount-=1,1===c.pipesCount&&(c.pipes=c.pipes[0]),f.emit("unpipe",this,u)),this},D.prototype.on=function(f,c){var u=v.prototype.on.call(this,f,c),h=this._readableState;return"data"===f?(h.readableListening=this.listenerCount("readable")>0,!1!==h.flowing&&this.resume()):"readable"!==f||h.endEmitted||h.readableListening||(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,p("on readable",h.length,h.reading),h.length?K(this):h.reading||d.default.nextTick(X,this)),u},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(f,c){var u=v.prototype.removeListener.call(this,f,c);return"readable"===f&&d.default.nextTick(Y,this),u},D.prototype.removeAllListeners=function(f){var c=v.prototype.removeAllListeners.apply(this,arguments);return("readable"===f||void 0===f)&&d.default.nextTick(Y,this),c},D.prototype.resume=function(){var f=this._readableState;return f.flowing||(p("resume"),f.flowing=!f.readableListening,Q(this,f)),f.paused=!1,this},D.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(f){var c=this,u=this._readableState,d=!1;for(var h in f.on("end",function(){if(p("wrapped end"),u.decoder&&!u.ended){var f=u.decoder.end();f&&f.length&&c.push(f)}c.push(null)}),f.on("data",function(h){p("wrapped data"),u.decoder&&(h=u.decoder.write(h)),u.objectMode&&null==h||(u.objectMode||h&&h.length)&&(c.push(h)||(d=!0,f.pause()))}),f)void 0===this[h]&&"function"==typeof f[h]&&(this[h]=function(c){return function(){return f[c].apply(f,arguments)}}(h));for(var l=0;l<C.length;l++)f.on(C[l],this.emit.bind(this,C[l]));return this._read=function(c){p("wrapped _read",c),d&&(d=!1,f.resume())},this},"function"==typeof Symbol&&(D.prototype[Symbol.asyncIterator]=function(){return void 0===y&&(y=h(531)),y(this)}),Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(f){this._readableState&&(this._readableState.flowing=f)}}),D._fromList=et,Object.defineProperty(D.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(D.from=function(f,c){return void 0===m&&(m=h(812)),m(D,f,c)})},586:function(f,c,u){"use strict";f.exports=g;
vendor: 4,905 bytes, line 1
1var d=u(329).F,h=d.ERR_METHOD_NOT_IMPLEMENTED,l=d.ERR_MULTIPLE_CALLBACK,p=d.ERR_TRANSFORM_ALREADY_TRANSFORMING,b=d.ERR_TRANSFORM_WITH_LENGTH_0,y=u(686);function m(f,c){var u=this._transformState;u.transforming=!1;var d=u.writecb;if(null===d)return this.emit("error",new l);u.writechunk=null,u.writecb=null,null!=c&&this.push(c),d(f);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function g(f){if(!(this instanceof g))return new g(f);y.call(this,f),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&("function"==typeof f.transform&&(this._transform=f.transform),"function"==typeof f.flush&&(this._flush=f.flush)),this.on("prefinish",v)}function v(){var f=this;"function"!=typeof this._flush||this._readableState.destroyed?_(this,null,null):this._flush(function(c,u){_(f,c,u)})}function _(f,c,u){if(c)return f.emit("error",c);if(null!=u&&f.push(u),f._writableState.length)throw new b;if(f._transformState.transforming)throw new p;return f.push(null)}u(638)(g,y),g.prototype.push=function(f,c){return this._transformState.needTransform=!1,y.prototype.push.call(this,f,c)},g.prototype._transform=function(f,c,u){u(new h("_transform()"))},g.prototype._write=function(f,c,u){var d=this._transformState;if(d.writecb=u,d.writechunk=f,d.writeencoding=c,!d.transforming){var h=this._readableState;(d.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},g.prototype._read=function(f){var c=this._transformState;null===c.writechunk||c.transforming?c.needTransform=!0:(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform))},g.prototype._destroy=function(f,c){y.prototype._destroy.call(this,f,function(f){c(f)})}},732:function(c,u,h){"use strict";function l(f){var c=this;this.next=null,this.entry=null,this.finish=function(){Z(c,f)}}c.exports=L,L.WritableState=B;var p,b,y={deprecate:h(774)},m=h(120),g=h(181).Buffer,v=f.g.Uint8Array||function(){};function _(f){return g.from(f)}function w(f){return g.isBuffer(f)||f instanceof v}var x=h(528),S=h(771).getHighWaterMark,E=h(329).F,M=E.ERR_INVALID_ARG_TYPE,A=E.ERR_METHOD_NOT_IMPLEMENTED,R=E.ERR_MULTIPLE_CALLBACK,k=E.ERR_STREAM_CANNOT_PIPE,P=E.ERR_STREAM_DESTROYED,I=E.ERR_STREAM_NULL_VALUES,O=E.ERR_STREAM_WRITE_AFTER_END,T=E.ERR_UNKNOWN_ENCODING,N=x.errorOrDestroy;function C(){}function B(f,c,u){p=p||h(686),f=f||{},"boolean"!=typeof u&&(u=c instanceof p),this.objectMode=!!f.objectMode,u&&(this.objectMode=this.objectMode||!!f.writableObjectMode),this.highWaterMark=S(this,f,"writableHighWaterMark",u),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===f.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=f.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(f){V(c,f)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==f.emitClose,this.autoDestroy=!!f.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}h(638)(L,m),B.prototype.getBuffer=function(){for(var f=this.bufferedRequest,c=[];f;)c.push(f),f=f.next;return c};try{Object.defineProperty(B.prototype,"buffer",{get:y.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(f){}function L(f){var c=this instanceof(p=p||h(686));if(!c&&!b.call(L,this))return new L(f);this._writableState=new B(f,this,c),this.writable=!0,f&&("function"==typeof f.write&&(this._write=f.write),"function"==typeof f.writev&&(this._writev=f.writev),"function"==typeof f.destroy&&(this._destroy=f.destroy),"function"==typeof f.final&&(this._final=f.final)),m.call(this)}function D(f,c){var u=new O;N(f,u),d.default.nextTick(c,u)}function U(f,c,u,h){var l;return null===u?l=new I:"string"==typeof u||c.objectMode||(l=new M("chunk",["string","Buffer"],u)),!l||(N(f,l),d.default.nextTick(h,l),!1)}function j(f,c,u){return f.objectMode||!1===f.decodeStrings||"string"!=typeof c||(c=g.from(c,u)),c}function F(f,c,u,d,h,l){if(!u){var p=j(c,d,h);d!==p&&(u=!0,h="buffer",d=p)}var b=c.objectMode?1:d.length;c.length+=b;var y=c.length<c.highWaterMark;if(y||(c.needDrain=!0),c.writing||c.corked){var m=c.lastBufferedRequest;c.lastBufferedRequest={chunk:d,encoding:h,isBuf:u,callback:l,next:null},m?m.next=c.lastBufferedRequest:c.bufferedRequest=c.lastBufferedRequest,c.bufferedRequestCount+=1}else q(f,c,!1,b,d,h,l);return y}function q(f,c,u,d,h,l,p){c.writelen=d,c.writecb=p,c.writing=!0,c.sync=!0,c.destroyed?c.onwrite(new P("write")):u?f._writev(h,c.onwrite):f._write(h,l,c.onwrite),c.sync=!1}
vendor: 4,922 bytes, line 1
1function $(f,c,u,h,l){--c.pendingcb,u?(d.default.nextTick(l,h),d.default.nextTick(X,f,c),f._writableState.errorEmitted=!0,N(f,h)):(l(h),f._writableState.errorEmitted=!0,N(f,h),X(f,c))}function z(f){f.writing=!1,f.writecb=null,f.length-=f.writelen,f.writelen=0}function V(f,c){var u=f._writableState,h=u.sync,l=u.writecb;if("function"!=typeof l)throw new R;if(z(u),c)$(f,u,h,c,l);else{var p=G(u)||f.destroyed;p||u.corked||u.bufferProcessing||!u.bufferedRequest||W(f,u),h?d.default.nextTick(K,f,u,p,l):K(f,u,p,l)}}function K(f,c,u,d){u||H(f,c),c.pendingcb--,d(),X(f,c)}function H(f,c){0===c.length&&c.needDrain&&(c.needDrain=!1,f.emit("drain"))}function W(f,c){c.bufferProcessing=!0;var u=c.bufferedRequest;if(f._writev&&u&&u.next){var d=Array(c.bufferedRequestCount),h=c.corkedRequestsFree;h.entry=u;for(var p=0,b=!0;u;)d[p]=u,u.isBuf||(b=!1),u=u.next,p+=1;d.allBuffers=b,q(f,c,!0,c.length,d,"",h.finish),c.pendingcb++,c.lastBufferedRequest=null,h.next?(c.corkedRequestsFree=h.next,h.next=null):c.corkedRequestsFree=new l(c),c.bufferedRequestCount=0}else{for(;u;){var y=u.chunk,m=u.encoding,g=u.callback,v=c.objectMode?1:y.length;if(q(f,c,!1,v,y,m,g),u=u.next,c.bufferedRequestCount--,c.writing)break}null===u&&(c.lastBufferedRequest=null)}c.bufferedRequest=u,c.bufferProcessing=!1}function G(f){return f.ending&&0===f.length&&null===f.bufferedRequest&&!f.finished&&!f.writing}function J(f,c){f._final(function(u){c.pendingcb--,u&&N(f,u),c.prefinished=!0,f.emit("prefinish"),X(f,c)})}function Y(f,c){c.prefinished||c.finalCalled||("function"!=typeof f._final||c.destroyed?(c.prefinished=!0,f.emit("prefinish")):(c.pendingcb++,c.finalCalled=!0,d.default.nextTick(J,f,c)))}function X(f,c){var u=G(c);if(u&&(Y(f,c),0===c.pendingcb)&&(c.finished=!0,f.emit("finish"),c.autoDestroy)){var d=f._readableState;(!d||d.autoDestroy&&d.endEmitted)&&f.destroy()}return u}function Q(f,c,u){c.ending=!0,X(f,c),u&&(c.finished?d.default.nextTick(u):f.once("finish",u)),c.ended=!0,f.writable=!1}function Z(f,c,u){var d=f.entry;for(f.entry=null;d;){var h=d.callback;c.pendingcb--,h(u),d=d.next}c.corkedRequestsFree.next=f}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(f){return!!b.call(this,f)||this===L&&f&&f._writableState instanceof B}})):b=function(f){return f instanceof this},L.prototype.pipe=function(){N(this,new k)},L.prototype.write=function(f,c,u){var d=this._writableState,h=!1,l=!d.objectMode&&w(f);return l&&!g.isBuffer(f)&&(f=_(f)),"function"==typeof c&&(u=c,c=null),l?c="buffer":c||(c=d.defaultEncoding),"function"!=typeof u&&(u=C),d.ending?D(this,u):(l||U(this,d,f,u))&&(d.pendingcb++,h=F(this,d,l,f,c,u)),h},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){var f=this._writableState;f.corked&&(f.corked--,f.writing||f.corked||f.bufferProcessing||!f.bufferedRequest||W(this,f))},L.prototype.setDefaultEncoding=function(f){if("string"==typeof f&&(f=f.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((f+"").toLowerCase())>-1))throw new T(f);return this._writableState.defaultEncoding=f,this},Object.defineProperty(L.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),L.prototype._write=function(f,c,u){u(new A("_write()"))},L.prototype._writev=null,L.prototype.end=function(f,c,u){var d=this._writableState;return"function"==typeof f?(u=f,f=null,c=null):"function"==typeof c&&(u=c,c=null),null!=f&&this.write(f,c),d.corked&&(d.corked=1,this.uncork()),d.ending||Q(this,d,u),this},Object.defineProperty(L.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(f){this._writableState&&(this._writableState.destroyed=f)}}),L.prototype.destroy=x.destroy,L.prototype._undestroy=x.undestroy,L.prototype._destroy=function(f,c){c(f)}},531:function(f,c,u){"use strict";function h(f,c,u){return c in f?Object.defineProperty(f,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):f[c]=u,f}var l,p=u(134),b=Symbol("lastResolve"),y=Symbol("lastReject"),m=Symbol("error"),g=Symbol("ended"),v=Symbol("lastPromise"),_=Symbol("handlePromise"),w=Symbol("stream");function x(f,c){return{value:f,done:c}}function S(f){var c=f[b];if(null!==c){var u=f[w].read();null!==u&&(f[v]=null,f[b]=null,f[y]=null,c(x(u,!1)))}}function E(f){d.default.nextTick(S,f)}function M(f,c){return function(u,d){f.then(function(){c[g]?u(x(void 0,!0)):c[_](u,d)},d)}}var A=Object.getPrototypeOf(function(){}
1),R=Object.setPrototypeOf((h(l={get stream(){return this[w]},next:function(){var f,c=this,u=this[m];if(null!==u)return Promise.reject(u);if(this[g])return Promise.resolve(x(void 0,!0));if(this[w].destroyed)return new Promise(function(f,u){d.default.nextTick(function(){c[m]?u(c[m]):f(x(void 0,!0))})});var h=this[v];if(h)f=new Promise(M(h,this));else{var l=this[w].read();if(null!==l)return Promise.resolve(x(l,!1));f=new Promise(this[_])}return this[v]=f,f}},Symbol.asyncIterator,function(){return this}),h(l,"return",function(){var f=this;return new Promise(function(c,u){f[w].destroy(null,function(f){f?u(f):c(x(void 0,!0))})})}),l),A);f.exports=function(f){var c,u=Object.create(R,(h(c={},w,{value:f,writable:!0}),h(c,b,{value:null,writable:!0}),h(c,y,{value:null,writable:!0}),h(c,m,{value:null,writable:!0}),h(c,g,{value:f._readableState.endEmitted,writable:!0}),h(c,_,{value:function(f,c){var d=u[w].read();d?(u[v]=null,u[b]=null,u[y]=null,f(x(d,!1))):(u[b]=f,u[y]=c)},writable:!0}),c));return u[v]=null,p(f,function(f){if(f&&"ERR_STREAM_PREMATURE_CLOSE"!==f.code){var c=u[y];null!==c&&(u[v]=null,u[b]=null,u[y]=null,c(f)),u[m]=f;return}var d=u[b];null!==d&&(u[v]=null,u[b]=null,u[y]=null,d(x(void 0,!0))),u[g]=!0}),f.on("readable",E.bind(null,u)),u}},137:function(f,c,u){"use strict";function d(f,c){var u=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);c&&(d=d.filter(function(c){return Object.getOwnPropertyDescriptor(f,c).enumerable})),u.push.apply(u,d)}return u}function h(f){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?d(Object(u),!0).forEach(function(c){l(f,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(u)):d(Object(u)).forEach(function(c){Object.defineProperty(f,c,Object.getOwnPropertyDescriptor(u,c))})}return f}function l(f,c,u){return c in f?Object.defineProperty(f,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):f[c]=u,f}function p(f,c){if(!(f instanceof c))throw TypeError("Cannot call a class as a function")}function b(f,c){for(var u=0;u<c.length;u++){var d=c[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}function y(f,c,u){return c&&b(f.prototype,c),u&&b(f,u),f}var m=u(181).Buffer,g=u(23).inspect,v=g&&g.custom||"inspect";function _(f,c,u){m.prototype.copy.call(f,c,u)}f.exports=function(){function f(){p(this,f),this.head=null,this.tail=null,this.length=0}return y(f,[{key:"push",value:function(f){var c={data:f,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(f){var c={data:f,next:this.head};0===this.length&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(0!==this.length){var f=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,f}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(f){if(0===this.length)return"";for(var c=this.head,u=""+c.data;c=c.next;)u+=f+c.data;return u}},{key:"concat",value:function(f){if(0===this.length)return m.alloc(0);for(var c=m.allocUnsafe(f>>>0),u=this.head,d=0;u;)_(u.data,c,d),d+=u.data.length,u=u.next;return c}},{key:"consume",value:function(f,c){var u;return f<this.head.data.length?(u=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):u=f===this.head.data.length?this.shift():c?this._getString(f):this._getBuffer(f),u}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var c=this.head,u=1,d=c.data;for(f-=d.length;c=c.next;){var h=c.data,l=f>h.length?h.length:f;if(l===h.length?d+=h:d+=h.slice(0,f),0==(f-=l)){l===h.length?(++u,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=h.slice(l));break}++u}return this.length-=u,d}},{key:"_getBuffer",value:function(f){var c=m.allocUnsafe(f),u=this.head,d=1;for(u.data.copy(c),f-=u.data.length;u=u.next;){var h=u.data,l=f>h.length?h.length:f;if(h.copy(c,c.length-f,0,l),0==(f-=l)){l===h.length?(++d,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=h.slice(l));break}++d}return this.length-=d,c}},{key:v,value:function(f,c){return g(this,h({},c,{depth:0,customInspect:!1}))}}]),f}()},528:function(f){"use strict";function c(f,c){h(f,c),u(f)}function u(f){f._writableState&&!f._writableState.emitClose||(!f._readableState||f._readableState.emitClose)&&f.emit("close")}function h(f,c){f.emit("error",c)}f.exports={destroy:function(f,l){var p=this,b=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return b||y?l?l(f):f&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.default.nextTick(h,this,f)):d.default.nextTick(h,this,f)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(f){!l&&f?p._writableState?p._writableState.errorEmitted?d.default.nextTick(u,p):(p._writableState.errorEmitted=!0,d.default.nextTick(c,p,f)):d.default.nextTick(c,p,f):l?(d.default.nextTick(u,p),l(f)):d.default.nextTick(u,p)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(f,c){var u=f._readableState,d=f._writableState;u&&u.autoDestroy||d&&d.autoDestroy?f.destroy(c):f.emit("error",c)}}},134:function(f,c,u){"use strict";var d=u(329).F.ERR_STREAM_PREMATURE_CLOSE;function h(f){var c=!1;return function(){if(!c){c=!0;for(var u=arguments.length,d=Array(u),h=0;h<u;h++)d[h]=arguments[h];f.apply(this,d)}}}function l(){}function p(f){return f.setHeader&&"function"==typeof f.abort}function b(f,c,u){if("function"==typeof c)return b(f,null,c);c||(c={}),u=h(u||l);var y=c.readable||!1!==c.readable&&f.readable,m=c.writable||!1!==c.writable&&f.writable,g=function(){f.writable||_()},v=f._writableState&&f._writableState.finished,_=function(){m=!1,v=!0,y||u.call(f)},w=f._readableState&&f._readableState.endEmitted,x=function(){y=!1,w=!0,m||u.call(f)},S=function(c){u.call(f,c)},E=function(){var c;return y&&!w?(f._readableState&&f._readableState.ended||(c=new d),u.call(f,c)):m&&!v?(f._writableState&&f._writableState.ended||(c=new d),u.call(f,c)):void 0},M=function(){f.req.on("finish",_)};return p(f)?(f.on("complete",_),f.on("abort",E),f.req?M():f.on("request",M)):m&&!f._writableState&&(f.on("end",g),f.on("close",g)),f.on("end",x),f.on("finish",_),!1!==c.error&&f.on("error",S),f.on("close",E),function(){f.removeListener("complete",_),f.removeListener("abort",E),f.removeListener("request",M),f.req&&f.req.removeListener("finish",_),f.removeListener("end",g),f.removeListener("close",g),f.removeListener("finish",_),f.removeListener("end",x),f.removeListener("error",S),f.removeListener("close",E)}}f.exports=b},812:function(f,c,u){"use strict";function d(f,c,u,d,h,l,p){try{var b=f[l](p),y=b.value}catch(f){u(f);return}b.done?c(y):Promise.resolve(y).then(d,h)}function h(f){return function(){var c=this,u=arguments;return new Promise(function(h,l){var p=f.apply(c,u);function b(f){d(p,h,l,b,y,"next",f)}function y(f){d(p,h,l,b,y,"throw",f)}b(void 0)})}}function l(f,c){var u=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);c&&(d=d.filter(function(c){return Object.getOwnPropertyDescriptor(f,c).enumerable})),u.push.apply(u,d)}return u}function p(f){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};
1c%2?l(Object(u),!0).forEach(function(c){b(f,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(u)):l(Object(u)).forEach(function(c){Object.defineProperty(f,c,Object.getOwnPropertyDescriptor(u,c))})}return f}function b(f,c,u){return c in f?Object.defineProperty(f,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):f[c]=u,f}var y=u(329).F.ERR_INVALID_ARG_TYPE;f.exports=function(f,c,u){if(c&&"function"==typeof c.next)d=c;else if(c&&c[Symbol.asyncIterator])d=c[Symbol.asyncIterator]();else if(c&&c[Symbol.iterator])d=c[Symbol.iterator]();else throw new y("iterable",["Iterable"],c);var d,l=new f(p({objectMode:!0},u)),b=!1;function m(){return g.apply(this,arguments)}function g(){return(g=h(function*(){try{var f=yield d.next(),c=f.value;f.done?l.push(null):l.push((yield c))?m():b=!1}catch(f){l.destroy(f)}})).apply(this,arguments)}return l._read=function(){b||(b=!0,m())},l}},694:function(f,c,u){"use strict";function d(f){var c=!1;return function(){c||(c=!0,f.apply(void 0,arguments))}}var h,l=u(329).F,p=l.ERR_MISSING_ARGS,b=l.ERR_STREAM_DESTROYED;function y(f){if(f)throw f}function m(f){return f.setHeader&&"function"==typeof f.abort}function g(f,c,l,p){p=d(p);var y=!1;f.on("close",function(){y=!0}),void 0===h&&(h=u(134)),h(f,{readable:c,writable:l},function(f){if(f)return p(f);y=!0,p()});var g=!1;return function(c){if(!y&&!g){if(g=!0,m(f))return f.abort();if("function"==typeof f.destroy)return f.destroy();p(c||new b("pipe"))}}}function v(f){f()}function _(f,c){return f.pipe(c)}function w(f){return f.length&&"function"==typeof f[f.length-1]?f.pop():y}f.exports=function(){for(var f,c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];var h=w(u);if(Array.isArray(u[0])&&(u=u[0]),u.length<2)throw new p("streams");var l=u.map(function(c,d){var p=d<u.length-1;return g(c,p,d>0,function(c){f||(f=c),c&&l.forEach(v),p||(l.forEach(v),h(f))})});return u.reduce(_)}},771:function(f,c,u){"use strict";var d=u(329).F.ERR_INVALID_OPT_VALUE;function h(f,c,u){return null!=f.highWaterMark?f.highWaterMark:c?f[u]:null}f.exports={getHighWaterMark:function(f,c,u,l){var p=h(c,l,u);if(null!=p){if(!(isFinite(p)&&Math.floor(p)===p)||p<0)throw new d(l?u:"highWaterMark",p);return Math.floor(p)}return f.objectMode?16:16384}}},120:function(f,c,u){f.exports=u(203)},56:function(f,c,u){var d=u(181),h=d.Buffer;function l(f,c){for(var u in f)c[u]=f[u]}function p(f,c,u){return h(f,c,u)}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?f.exports=d:(l(d,c),c.Buffer=p),p.prototype=Object.create(h.prototype),l(h,p),p.from=function(f,c,u){if("number"==typeof f)throw TypeError("Argument must not be a number");return h(f,c,u)},p.alloc=function(f,c,u){if("number"!=typeof f)throw TypeError("Argument must be a number");var d=h(f);return void 0!==c?"string"==typeof u?d.fill(c,u):d.fill(c):d.fill(0),d},p.allocUnsafe=function(f){if("number"!=typeof f)throw TypeError("Argument must be a number");return h(f)},p.allocUnsafeSlow=function(f){if("number"!=typeof f)throw TypeError("Argument must be a number");return d.SlowBuffer(f)}},854:function(f,c,u){f.exports=h;var d=u(434).EventEmitter;function h(){d.call(this)}u(638)(h,d),h.Readable=u(276),h.Writable=u(732),h.Duplex=u(686),h.Transform=u(586),h.PassThrough=u(512),h.finished=u(134),h.pipeline=u(694),h.Stream=h,h.prototype.pipe=function(f,c){var u=this;function h(c){f.writable&&!1===f.write(c)&&u.pause&&u.pause()}function l(){u.readable&&u.resume&&u.resume()}u.on("data",h),f.on("drain",l),f._isStdio||c&&!1===c.end||(u.on("end",b),u.on("close",y));var p=!1;function b(){p||(p=!0,f.end())}function y(){p||(p=!0,"function"==typeof f.destroy&&f.destroy())}function m(f){if(g(),0===d.listenerCount(this,"error"))throw f}function g(){u.removeListener("data",h),f.removeListener("drain",l),u.removeListener("end",b),u.removeListener("close",y),u.removeListener("error",m),f.removeListener("error",m),u.removeListener("end",g),u.removeListener("close",g),f.removeListener("close",g)}return u.on("error",m),f.on("error",m),u.on("end",g),u.on("close",g),f.on("close",g),f.emit("pipe",u),f}},319:function(f,c,u){"use strict";var d=u(56).Buffer,h=d.isEncoding||function(f){switch((f=""+f)&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function l(f){var c;if(!f)return"utf8";for(;;)switch(f){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
1case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return f;default:if(c)return;f=(""+f).toLowerCase(),c=!0}}function p(f){var c=l(f);if("string"!=typeof c&&(d.isEncoding===h||!h(f)))throw Error("Unknown encoding: "+f);return c||f}function b(f){var c;switch(this.encoding=p(f),this.encoding){case"utf16le":this.text=x,this.end=S,c=4;break;case"utf8":this.fillLast=v,c=4;break;case"base64":this.text=E,this.end=M,c=3;break;default:this.write=A,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(c)}function y(f){return f<=127?0:f>>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function m(f,c,u){var d=c.length-1;if(d<u)return 0;var h=y(c[d]);return h>=0?(h>0&&(f.lastNeed=h-1),h):--d<u||-2===h?0:(h=y(c[d]))>=0?(h>0&&(f.lastNeed=h-2),h):--d<u||-2===h?0:(h=y(c[d]))>=0?(h>0&&(2===h?h=0:f.lastNeed=h-3),h):0}function g(f,c,u){if((192&c[0])!=128)return f.lastNeed=0,"�";if(f.lastNeed>1&&c.length>1){if((192&c[1])!=128)return f.lastNeed=1,"�";if(f.lastNeed>2&&c.length>2&&(192&c[2])!=128)return f.lastNeed=2,"�"}}function v(f){var c=this.lastTotal-this.lastNeed,u=g(this,f,c);return void 0!==u?u:this.lastNeed<=f.length?(f.copy(this.lastChar,c,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(f.copy(this.lastChar,c,0,f.length),this.lastNeed-=f.length)}function _(f,c){var u=m(this,f,c);if(!this.lastNeed)return f.toString("utf8",c);this.lastTotal=u;var d=f.length-(u-this.lastNeed);return f.copy(this.lastChar,0,d),f.toString("utf8",c,d)}function w(f){var c=f&&f.length?this.write(f):"";return this.lastNeed?c+"�":c}function x(f,c){if((f.length-c)%2==0){var u=f.toString("utf16le",c);if(u){var d=u.charCodeAt(u.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],u.slice(0,-1)}return u}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",c,f.length-1)}function S(f){var c=f&&f.length?this.write(f):"";if(this.lastNeed){var u=this.lastTotal-this.lastNeed;return c+this.lastChar.toString("utf16le",0,u)}return c}function E(f,c){var u=(f.length-c)%3;return 0===u?f.toString("base64",c):(this.lastNeed=3-u,this.lastTotal=3,1===u?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",c,f.length-u))}function M(f){var c=f&&f.length?this.write(f):"";return this.lastNeed?c+this.lastChar.toString("base64",0,3-this.lastNeed):c}function A(f){return f.toString(this.encoding)}function R(f){return f&&f.length?this.write(f):""}c.I=b,b.prototype.write=function(f){var c,u;if(0===f.length)return"";if(this.lastNeed){if(void 0===(c=this.fillLast(f)))return"";u=this.lastNeed,this.lastNeed=0}else u=0;return u<f.length?c?c+this.text(f,u):this.text(f,u):c||""},b.prototype.end=w,b.prototype.text=_,b.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length}},774:function(c){function u(c){try{if(!f.g.localStorage)return!1}catch(f){return!1}var u=f.g.localStorage[c];return null!=u&&"true"===String(u).toLowerCase()}c.exports=function f(f,c){if(u("noDeprecation"))return f;var d=!1;return function(){if(!d){if(u("throwDeprecation"))throw Error(c);u("traceDeprecation")?console.trace(c):console.warn(c),d=!0}return f.apply(this,arguments)}}},181:function(c){"use strict";c.exports=f.r(449440)},434:function(c){"use strict";c.exports=f.r(679877)},203:function(c){"use strict";c.exports=f.r(679877).EventEmitter},23:function(c){"use strict";c.exports=f.r(729394)}},l={};function p(f){var c=l[f];if(void 0!==c)return c.exports;var u=l[f]={exports:{}},d=!0;try{h[f](u,u.exports,p),d=!1}finally{d&&delete l[f]}return u.exports}p.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_babel-plugi_fd21bb6a172ff382fa
178ed202dda2e3e/node_modules/next/dist/compiled/stream-browserify/",c.exports=p(854)},309870,(f,c,u)=>{var d=f.r(449440),h=d.Buffer;function l(f,c){for(var u in f)c[u]=f[u]}function p(f,c,u){return h(f,c,u)}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?c.exports=d:(l(d,u),u.Buffer=p),p.prototype=Object.create(h.prototype),l(h,p),p.from=function(f,c,u){if("number"==typeof f)throw TypeError("Argument must not be a number");return h(f,c,u)},p.alloc=function(f,c,u){if("number"!=typeof f)throw TypeError("Argument must be a number");var d=h(f);return void 0!==c?"string"==typeof u?d.fill(c,u):d.fill(c):d.fill(0),d},p.allocUnsafe=function(f){if("number"!=typeof f)throw TypeError("Argument must be a number");return h(f)},p.allocUnsafeSlow=function(f){if("number"!=typeof f)throw TypeError("Argument must be a number");return d.SlowBuffer(f)}},924753,(f,c,u)=>{"use strict";var d=f.r(309870).Buffer,h=d.isEncoding||function(f){switch((f=""+f)&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function l(f){var c;if(!f)return"utf8";for(;;)switch(f){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return f;default:if(c)return;f=(""+f).toLowerCase(),c=!0}}function p(f){var c=l(f);if("string"!=typeof c&&(d.isEncoding===h||!h(f)))throw Error("Unknown encoding: "+f);return c||f}function b(f){var c;switch(this.encoding=p(f),this.encoding){case"utf16le":this.text=x,this.end=S,c=4;break;case"utf8":this.fillLast=v,c=4;break;case"base64":this.text=E,this.end=M,c=3;break;default:this.write=A,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(c)}function y(f){return f<=127?0:f>>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function m(f,c,u){var d=c.length-1;if(d<u)return 0;var h=y(c[d]);return h>=0?(h>0&&(f.lastNeed=h-1),h):--d<u||-2===h?0:(h=y(c[d]))>=0?(h>0&&(f.lastNeed=h-2),h):--d<u||-2===h?0:(h=y(c[d]))>=0?(h>0&&(2===h?h=0:f.lastNeed=h-3),h):0}function g(f,c,u){if((192&c[0])!=128)return f.lastNeed=0,"�";if(f.lastNeed>1&&c.length>1){if((192&c[1])!=128)return f.lastNeed=1,"�";if(f.lastNeed>2&&c.length>2&&(192&c[2])!=128)return f.lastNeed=2,"�"}}function v(f){var c=this.lastTotal-this.lastNeed,u=g(this,f,c);return void 0!==u?u:this.lastNeed<=f.length?(f.copy(this.lastChar,c,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(f.copy(this.lastChar,c,0,f.length),this.lastNeed-=f.length)}function _(f,c){var u=m(this,f,c);if(!this.lastNeed)return f.toString("utf8",c);this.lastTotal=u;var d=f.length-(u-this.lastNeed);return f.copy(this.lastChar,0,d),f.toString("utf8",c,d)}function w(f){var c=f&&f.length?this.write(f):"";return this.lastNeed?c+"�":c}function x(f,c){if((f.length-c)%2==0){var u=f.toString("utf16le",c);if(u){var d=u.charCodeAt(u.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],u.slice(0,-1)}return u}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",c,f.length-1)}function S(f){var c=f&&f.length?this.write(f):"";if(this.lastNeed){var u=this.lastTotal-this.lastNeed;return c+this.lastChar.toString("utf16le",0,u)}return c}function E(f,c){var u=(f.length-c)%3;return 0===u?f.toString("base64",c):(this.lastNeed=3-u,this.lastTotal=3,1===u?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",c,f.length-u))}function M(f){var c=f&&f.length?this.write(f):"";return this.lastNeed?c+this.lastChar.toString("base64",0,3-this.lastNeed):c}function A(f){return f.toString(this.encoding)}function R(f){return f&&f.length?this.write(f):""}u.StringDecoder=b,b.prototype.write=function(f){var c,u;if(0===f.length)return"";if(this.lastNeed){if(void 0===(c=this.fillLast(f)))return"";u=this.lastNeed,this.lastNeed=0}else u=0;return u<f.length?c?c+this.text(f,u):this.text(f,u):c||""},b.prototype.end=w,b.prototype.text=_,b.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length}},319856,(__turbopack_context__,module,exports)=>{!function(){var __webpack_modules__={285:function(__unused_webpack_module,exports){var indexOf=function(f,c){if(f.indexOf)return f.indexOf(c);for(var u=0;u<f.length;u++)if(f[u]===c)return u;return -1},Object_keys=function(f){if(Object.keys)return Object.keys(f);var c=[];for(var u in f)c.push(u);return c}
vendor: 2,250 bytes, line 1
1,forEach=function(f,c){if(f.forEach)return f.forEach(c);for(var u=0;u<f.length;u++)c(f[u],u,f)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(f,c,u){Object.defineProperty(f,c,{writable:!0,enumerable:!1,configurable:!0,value:u})}}catch(f){return function(f,c,u){f[c]=u}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(f){if(!(this instanceof Script))return new Script(f);this.code=f};Script.prototype.runInContext=function(f){if(!(f instanceof Context))throw TypeError("needs a 'context' argument.");var c=document.createElement("iframe");c.style||(c.style={}),c.style.display="none",document.body.appendChild(c);var u=c.contentWindow,d=u.eval,h=u.execScript;!d&&h&&(h.call(u,"null"),d=u.eval),forEach(Object_keys(f),function(c){u[c]=f[c]}),forEach(globals,function(c){f[c]&&(u[c]=f[c])});var l=Object_keys(u),p=d.call(u,this.code);return forEach(Object_keys(u),function(c){(c in f||-1===indexOf(l,c))&&(f[c]=u[c])}),forEach(globals,function(c){c in f||defineProp(f,c,u[c])}),document.body.removeChild(c),p},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(f){var c=Script.createContext(f),u=this.runInContext(c);return f&&forEach(Object_keys(c),function(u){f[u]=c[u]}),u},forEach(Object_keys(Script.prototype),function(f){exports[f]=Script[f]=function(c){var u=Script(c);return u[f].apply(u,[].slice.call(arguments,1))}}),exports.isContext=function(f){return f instanceof Context},exports.createScript=function(f){return exports.Script(f)},exports.createContext=Script.createContext=function(f){var c=new Context;return"object"==typeof f&&forEach(Object_keys(f),function(u){c[u]=f[u]}),c}}};"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_babel-plugi_fd21bb6a172ff382fa
178ed202dda2e3e/node_modules/next/dist/compiled/vm-browserify/");var __webpack_exports__={};__webpack_modules__[285](0,__webpack_exports__),module.exports=__webpack_exports__}()},946272,(f,c,u)=>{var d=f.i(123651),h=f.i(62921),l={9186:function(f,c,u){var d=c;d.bignum=u(5944),d.define=u(5673).define,d.base=u(8747),d.constants=u(8063),d.decoders=u(2455),d.encoders=u(5555)},5673:function(f,c,u){var d=u(9186),h=u(1638);function l(f,c){this.name=f,this.body=c,this.decoders={},this.encoders={}}c.define=function(f,c){return new l(f,c)},l.prototype._createNamed=function(f){var c;try{c=u(9154).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(f){c=function(f){this._initNamed(f)}}return h(c,f),c.prototype._initNamed=function(c){f.call(this,c)},new c(this)},l.prototype._getDecoder=function(f){return f=f||"der",this.decoders.hasOwnProperty(f)||(this.decoders[f]=this._createNamed(d.decoders[f])),this.decoders[f]},l.prototype.decode=function(f,c,u){return this._getDecoder(c).decode(f,u)},l.prototype._getEncoder=function(f){return f=f||"der",this.encoders.hasOwnProperty(f)||(this.encoders[f]=this._createNamed(d.encoders[f])),this.encoders[f]},l.prototype.encode=function(f,c,u){return this._getEncoder(c).encode(f,u)}},5781:function(f,c,u){var d=u(1638),h=u(8747).Reporter,l=u(181).Buffer;function p(f,c){(h.call(this,c),l.isBuffer(f))?(this.base=f,this.offset=0,this.length=f.length):this.error("Input not Buffer")}function b(f,c){if(Array.isArray(f))this.length=0,this.value=f.map(function(f){return f instanceof b||(f=new b(f,c)),this.length+=f.length,f},this);else if("number"==typeof f){if(!(0<=f&&f<=255))return c.error("non-byte EncoderBuffer value");this.value=f,this.length=1}else if("string"==typeof f)this.value=f,this.length=l.byteLength(f);else{if(!l.isBuffer(f))return c.error("Unsupported type: "+typeof f);this.value=f,this.length=f.length}}d(p,h),c.t=p,p.prototype.save=function(){return{offset:this.offset,reporter:h.prototype.save.call(this)}},p.prototype.restore=function(f){var c=new p(this.base);return c.offset=f.offset,c.length=this.offset,this.offset=f.offset,h.prototype.restore.call(this,f.reporter),c},p.prototype.isEmpty=function(){return this.offset===this.length},p.prototype.readUInt8=function(f){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(f||"DecoderBuffer overrun")},p.prototype.skip=function(f,c){if(!(this.offset+f<=this.length))return this.error(c||"DecoderBuffer overrun");var u=new p(this.base);return u._reporterState=this._reporterState,u.offset=this.offset,u.length=this.offset+f,this.offset+=f,u},p.prototype.raw=function(f){return this.base.slice(f?f.offset:this.offset,this.length)},c.d=b,b.prototype.join=function(f,c){return f||(f=new l(this.length)),c||(c=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(u){u.join(f,c),c+=u.length}):("number"==typeof this.value?f[c]=this.value:"string"==typeof this.value?f.write(this.value,c):l.isBuffer(this.value)&&this.value.copy(f,c),c+=this.length)),f}},8747:function(f,c,u){var d=c;d.Reporter=u(9257).a,d.DecoderBuffer=u(5781).t,d.EncoderBuffer=u(5781).d,d.Node=u(763)},763:function(f,c,u){var d=u(8747).Reporter,h=u(8747).EncoderBuffer,l=u(8747).DecoderBuffer,p=u(7551),b=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(b),m=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function g(f,c){var u={};this._baseState=u,u.enc=f,u.parent=c||null,u.children=null,u.tag=null,u.args=null,u.reverseArgs=null,u.choice=null,u.optional=!1,u.any=!1,u.obj=!1,u.use=null,u.useDecoder=null,u.key=null,u.default=null,u.explicit=null,u.implicit=null,u.contains=null,u.parent||(u.children=[],this._wrap())}f.exports=g;var v=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];g.prototype.clone=function(){var f=this._baseState,c={};v.forEach(function(u){c[u]=f[u]});var u=new this.constructor(c.parent);return u._baseState=c,u},g.prototype._wrap=function(){var f=this._baseState;
vendor: 3,898 bytes, line 1
1y.forEach(function(c){this[c]=function(){var u=new this.constructor(this);return f.children.push(u),u[c].apply(u,arguments)}},this)},g.prototype._init=function(f){var c=this._baseState;p(null===c.parent),f.call(this),c.children=c.children.filter(function(f){return f._baseState.parent===this},this),p.equal(c.children.length,1,"Root node can have only one child")},g.prototype._useArgs=function(f){var c=this._baseState,u=f.filter(function(f){return f instanceof this.constructor},this);f=f.filter(function(f){return!(f instanceof this.constructor)},this),0!==u.length&&(p(null===c.children),c.children=u,u.forEach(function(f){f._baseState.parent=this},this)),0!==f.length&&(p(null===c.args),c.args=f,c.reverseArgs=f.map(function(f){if("object"!=typeof f||f.constructor!==Object)return f;var c={};return Object.keys(f).forEach(function(u){u==(0|u)&&(u|=0),c[f[u]]=u}),c}))},m.forEach(function(f){g.prototype[f]=function(){throw Error(f+" not implemented for encoding: "+this._baseState.enc)}}),b.forEach(function(f){g.prototype[f]=function(){var c=this._baseState,u=Array.prototype.slice.call(arguments);return p(null===c.tag),c.tag=f,this._useArgs(u),this}}),g.prototype.use=function(f){p(f);var c=this._baseState;return p(null===c.use),c.use=f,this},g.prototype.optional=function(){return this._baseState.optional=!0,this},g.prototype.def=function(f){var c=this._baseState;return p(null===c.default),c.default=f,c.optional=!0,this},g.prototype.explicit=function(f){var c=this._baseState;return p(null===c.explicit&&null===c.implicit),c.explicit=f,this},g.prototype.implicit=function(f){var c=this._baseState;return p(null===c.explicit&&null===c.implicit),c.implicit=f,this},g.prototype.obj=function(){var f=this._baseState,c=Array.prototype.slice.call(arguments);return f.obj=!0,0!==c.length&&this._useArgs(c),this},g.prototype.key=function(f){var c=this._baseState;return p(null===c.key),c.key=f,this},g.prototype.any=function(){return this._baseState.any=!0,this},g.prototype.choice=function(f){var c=this._baseState;return p(null===c.choice),c.choice=f,this._useArgs(Object.keys(f).map(function(c){return f[c]})),this},g.prototype.contains=function(f){var c=this._baseState;return p(null===c.use),c.contains=f,this},g.prototype._decode=function(f,c){var u,d=this._baseState;if(null===d.parent)return f.wrapResult(d.children[0]._decode(f,c));var h=d.default,p=!0,b=null;if(null!==d.key&&(b=f.enterKey(d.key)),d.optional){var y=null;if(null!==d.explicit?y=d.explicit:null!==d.implicit?y=d.implicit:null!==d.tag&&(y=d.tag),null!==y||d.any){if(p=this._peekTag(f,y,d.any),f.isError(p))return p}else{var m=f.save();try{null===d.choice?this._decodeGeneric(d.tag,f,c):this._decodeChoice(f,c),p=!0}catch(f){p=!1}f.restore(m)}}if(d.obj&&p&&(u=f.enterObject()),p){if(null!==d.explicit){var g=this._decodeTag(f,d.explicit);if(f.isError(g))return g;f=g}var v=f.offset;if(null===d.use&&null===d.choice){if(d.any)var m=f.save();var _=this._decodeTag(f,null!==d.implicit?d.implicit:d.tag,d.any);if(f.isError(_))return _;d.any?h=f.raw(m):f=_}if(c&&c.track&&null!==d.tag&&c.track(f.path(),v,f.length,"tagged"),c&&c.track&&null!==d.tag&&c.track(f.path(),f.offset,f.length,"content"),d.any||(h=null===d.choice?this._decodeGeneric(d.tag,f,c):this._decodeChoice(f,c)),f.isError(h))return h;if(d.any||null!==d.choice||null===d.children||d.children.forEach(function(u){u._decode(f,c)}),d.contains&&("octstr"===d.tag||"bitstr"===d.tag)){var w=new l(h);h=this._getUse(d.contains,f._reporterState.obj)._decode(w,c)}}return d.obj&&p&&(h=f.leaveObject(u)),null!==d.key&&(null!==h||!0===p)?f.leaveKey(b,d.key,h):null!==b&&f.exitKey(b),h},g.prototype._decodeGeneric=function(f,c,u){var d=this._baseState;if("seq"===f||"set"===f)return null;if("seqof"===f||"setof"===f)return this._decodeList(c,f,d.args[0],u);if(/str$/.test(f))return this._decodeStr(c,f,u);if("objid"===f&&d.args)return this._decodeObjid(c,d.args[0],d.args[
11],u);if("objid"===f)return this._decodeObjid(c,null,null,u);if("gentime"===f||"utctime"===f)return this._decodeTime(c,f,u);else if("null_"===f)return this._decodeNull(c,u);else if("bool"===f)return this._decodeBool(c,u);else if("objDesc"===f)return this._decodeStr(c,f,u);else if("int"===f||"enum"===f)return this._decodeInt(c,d.args&&d.args[0],u);return null!==d.use?this._getUse(d.use,c._reporterState.obj)._decode(c,u):c.error("unknown tag: "+f)},g.prototype._getUse=function(f,c){var u=this._baseState;return u.useDecoder=this._use(f,c),p(null===u.useDecoder._baseState.parent),u.useDecoder=u.useDecoder._baseState.children[0],u.implicit!==u.useDecoder._baseState.implicit&&(u.useDecoder=u.useDecoder.clone(),u.useDecoder._baseState.implicit=u.implicit),u.useDecoder},g.prototype._decodeChoice=function(f,c){var u=this._baseState,d=null,h=!1;return(Object.keys(u.choice).some(function(l){var p=f.save(),b=u.choice[l];try{var y=b._decode(f,c);if(f.isError(y))return!1;d={type:l,value:y},h=!0}catch(c){return f.restore(p),!1}return!0},this),h)?d:f.error("Choice not matched")},g.prototype._createEncoderBuffer=function(f){return new h(f,this.reporter)},g.prototype._encode=function(f,c,u){var d=this._baseState;if(null===d.default||d.default!==f){var h=this._encodeValue(f,c,u);if(void 0!==h&&!this._skipDefault(h,c,u))return h}},g.prototype._encodeValue=function(f,c,u){var h,l=this._baseState;if(null===l.parent)return l.children[0]._encode(f,c||new d);var h=null;if(this.reporter=c,l.optional&&void 0===f)if(null===l.default)return;else f=l.default;var p=null,b=!1;if(l.any)h=this._createEncoderBuffer(f);else if(l.choice)h=this._encodeChoice(f,c);else if(l.contains)p=this._getUse(l.contains,u)._encode(f,c),b=!0;else if(l.children)p=l.children.map(function(u){if("null_"===u._baseState.tag)return u._encode(null,c,f);if(null===u._baseState.key)return c.error("Child should have a key");var d=c.enterKey(u._baseState.key);if("object"!=typeof f)return c.error("Child expected, but input is not object");var h=u._encode(f[u._baseState.key],c,f);return c.leaveKey(d),h},this).filter(function(f){return f}),p=this._createEncoderBuffer(p);else if("seqof"===l.tag||"setof"===l.tag){if(!(l.args&&1===l.args.length))return c.error("Too many args for : "+l.tag);if(!Array.isArray(f))return c.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,p=this._createEncoderBuffer(f.map(function(u){var d=this._baseState;return this._getUse(d.args[0],f)._encode(u,c)},y))}else null!==l.use?h=this._getUse(l.use,u)._encode(f,c):(p=this._encodePrimitive(l.tag,f),b=!0);if(!l.any&&null===l.choice){var m=null!==l.implicit?l.implicit:l.tag,g=null===l.implicit?"universal":"context";null===m?null===l.use&&c.error("Tag could be omitted only for .use()"):null===l.use&&(h=this._encodeComposite(m,b,g,p))}return null!==l.explicit&&(h=this._encodeComposite(l.explicit,!1,"context",h)),h},g.prototype._encodeChoice=function(f,c){var u=this._baseState,d=u.choice[f.type];return d||p(!1,f.type+" not found in "+JSON.stringify(Object.keys(u.choice))),d._encode(f.value,c)},g.prototype._encodePrimitive=function(f,c){var u=this._baseState;if(/str$/.test(f))return this._encodeStr(c,f);if("objid"===f&&u.args)return this._encodeObjid(c,u.reverseArgs[0],u.args[1]);if("objid"===f)return this._encodeObjid(c,null,null);if("gentime"===f||"utctime"===f)return this._encodeTime(c,f);if("null_"===f)return this._encodeNull();else if("int"===f||"enum"===f)return this._encodeInt(c,u.args&&u.reverseArgs[0]);else if("bool"===f)return this._encodeBool(c);else if("objDesc"===f)return this._encodeStr(c,f);else throw Error("Unsupported tag: "+f)},g.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},g.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(f)}},9257:function(f,c,u){var d=u(1638);function h(f){this._reporterState={obj:null,path:[],options:f||{},errors:[]}}function l(f,c){this.path=f,this.rethrow(c)}c.a=h,h.prototype.isError=function(f){return f instanceof l},h.prototype.save=function(){var f=this._reporterState;return{obj:f.obj,pathLen:f.path.length}},h.prototype.restore=function(f){var c=this._reporterState;c.obj=f.obj,c.path=c.path.slice(0,f.pathLen)},h.prototype.enterKey=function(f){return this._reporterState.path.push(f)},h.prototype.exitKey=function(f){var c=this._reporterState;c.path=c.path.slice(0,f-1)},h.prototype.leaveKey=function(f,c,u){var d=this._reporterState;this.exitKey(f),null!==d.obj&&(d.obj[c]=u)},h.prototype.path=function(){return this._reporterState.path.join("/")},h.prototype.enterObject=function(){var f=this._reporterState,c=f.obj;return f.obj={},c},h.prototype.leaveObject=function(f){var c=this._reporterState,u=c.obj;return c.obj=f,u},h.prototype.error=function(f){var c,u=this._reporterState,d=f instanceof l;if(c=d?f:new l(u.path.map(function(f){return"["+JSON.stringify(f)+"]"}).join(""),f.message||f,f.stack),!u.options.partial)throw c;return d||u.errors.push(c),c},h.prototype.wrapResult=function(f){var c=this._reporterState;return c.options.partial?{result:this.isError(f)?null:f,errors:c.errors}:f},d(l,Error),l.prototype.rethrow=function(f){if(this.message=f+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,l),!this.stack)try{throw Error(this.message)}catch(f){this.stack=f.stack}return this}},8060:function(f,c,u){var d=u(8063);c.tagClass={0:"universal",1:"application",2:"context",3:"private"},c.tagClassByName=d._reverse(c.tagClass),c.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},c.tagByName=d._reverse(c.tag)},8063:function(f,c,u){var d=c;d._reverse=function(f){var c={};return Object.keys(f).forEach(function(u){(0|u)==u&&(u|=0),c[f[u]]=u}),c},d.der=u(8060)},8788:function(f,c,u){var d=u(1638),h=u(9186),l=h.base,p=h.bignum,b=h.constants.der;function y(f){this.enc="der",this.name=f.name,this.entity=f,this.tree=new m,this.tree._init(f.body)}function m(f){l.Node.call(this,"der",f)}function g(f,c){var u=f.readUInt8(c);if(f.isError(u))return u;var d=b.tagClass[u>>6],h=(32&u)==0;if((31&u)==31){var l=u;for(u=0;(128&l)==128;){if(l=f.readUInt8(c),f.isError(l))return l;
vendor: 2,592 bytes, line 1
1u<<=7,u|=127&l}}else u&=31;var p=b.tag[u];return{cls:d,primitive:h,tag:u,tagStr:p}}function v(f,c,u){var d=f.readUInt8(u);if(f.isError(d))return d;if(!c&&128===d)return null;if((128&d)==0)return d;var h=127&d;if(h>4)return f.error("length octect is too long");d=0;for(var l=0;l<h;l++){d<<=8;var p=f.readUInt8(u);if(f.isError(p))return p;d|=p}return d}f.exports=y,y.prototype.decode=function(f,c){return f instanceof l.DecoderBuffer||(f=new l.DecoderBuffer(f,c)),this.tree._decode(f,c)},d(m,l.Node),m.prototype._peekTag=function(f,c,u){if(f.isEmpty())return!1;var d=f.save(),h=g(f,'Failed to peek tag: "'+c+'"');return f.isError(h)?h:(f.restore(d),h.tag===c||h.tagStr===c||h.tagStr+"of"===c||u)},m.prototype._decodeTag=function(f,c,u){var d=g(f,'Failed to decode tag of "'+c+'"');if(f.isError(d))return d;var h=v(f,d.primitive,'Failed to get length of "'+c+'"');if(f.isError(h))return h;if(!u&&d.tag!==c&&d.tagStr!==c&&d.tagStr+"of"!==c)return f.error('Failed to match tag: "'+c+'"');if(d.primitive||null!==h)return f.skip(h,'Failed to match body of: "'+c+'"');var l=f.save(),p=this._skipUntilEnd(f,'Failed to skip indefinite length body: "'+this.tag+'"');return f.isError(p)?p:(h=f.offset-l.offset,f.restore(l),f.skip(h,'Failed to match body of: "'+c+'"'))},m.prototype._skipUntilEnd=function(f,c){for(;;){var u,d=g(f,c);if(f.isError(d))return d;var h=v(f,d.primitive,c);if(f.isError(h))return h;if(u=d.primitive||null!==h?f.skip(h):this._skipUntilEnd(f,c),f.isError(u))return u;if("end"===d.tagStr)break}},m.prototype._decodeList=function(f,c,u,d){for(var h=[];!f.isEmpty();){var l=this._peekTag(f,"end");if(f.isError(l))return l;var p=u.decode(f,"der",d);if(f.isError(p)&&l)break;h.push(p)}return h},m.prototype._decodeStr=function(f,c){if("bitstr"===c){var u=f.readUInt8();return f.isError(u)?u:{unused:u,data:f.raw()}}if("bmpstr"===c){var d=f.raw();if(d.length%2==1)return f.error("Decoding of string type: bmpstr length mismatch");for(var h="",l=0;l<d.length/2;l++)h+=String.fromCharCode(d.readUInt16BE(2*l));return h}if("numstr"===c){var p=f.raw().toString("ascii");return this._isNumstr(p)?p:f.error("Decoding of string type: numstr unsupported characters")}if("octstr"===c)return f.raw();if("objDesc"===c)return f.raw();else if("printstr"===c){var b=f.raw().toString("ascii");return this._isPrintstr(b)?b:f.error("Decoding of string type: printstr unsupported characters")}else if(/str$/.test(c))return f.raw().toString();else return f.error("Decoding of string type: "+c+" unsupported")},m.prototype._decodeObjid=function(f,c,u){for(var d,h=[],l=0;!f.isEmpty();){var p=f.readUInt8();
1l<<=7,l|=127&p,(128&p)==0&&(h.push(l),l=0)}128&p&&h.push(l);var b=h[0]/40|0,y=h[0]%40;if(d=u?h:[b,y].concat(h.slice(1)),c){var m=c[d.join(" ")];void 0===m&&(m=c[d.join(".")]),void 0!==m&&(d=m)}return d},m.prototype._decodeTime=function(f,c){var u=f.raw().toString();if("gentime"===c)var d=0|u.slice(0,4),h=0|u.slice(4,6),l=0|u.slice(6,8),p=0|u.slice(8,10),b=0|u.slice(10,12),y=0|u.slice(12,14);else{if("utctime"!==c)return f.error("Decoding "+c+" time is not supported yet");var d=0|u.slice(0,2),h=0|u.slice(2,4),l=0|u.slice(4,6),p=0|u.slice(6,8),b=0|u.slice(8,10),y=0|u.slice(10,12);d=d<70?2e3+d:1900+d}return Date.UTC(d,h-1,l,p,b,y,0)},m.prototype._decodeNull=function(f){return null},m.prototype._decodeBool=function(f){var c=f.readUInt8();return f.isError(c)?c:0!==c},m.prototype._decodeInt=function(f,c){var u=new p(f.raw());return c&&(u=c[u.toString(10)]||u),u},m.prototype._use=function(f,c){return"function"==typeof f&&(f=f(c)),f._getDecoder("der").tree}},2455:function(f,c,u){var d=c;d.der=u(8788),d.pem=u(3093)},3093:function(f,c,u){var d=u(1638),h=u(181).Buffer,l=u(8788);function p(f){l.call(this,f),this.enc="pem"}d(p,l),f.exports=p,p.prototype.decode=function(f,c){for(var u=f.toString().split(/[\r\n]+/g),d=c.label.toUpperCase(),p=/^-----(BEGIN|END) ([^-]+)-----$/,b=-1,y=-1,m=0;m<u.length;m++){var g=u[m].match(p);if(null!==g&&g[2]===d)if(-1===b){if("BEGIN"!==g[1])break;b=m}else{if("END"!==g[1])break;y=m;break}}if(-1===b||-1===y)throw Error("PEM section not found for: "+d);var v=u.slice(b+1,y).join("");v.replace(/[^a-z0-9\+\/=]+/gi,"");var _=new h(v,"base64");return l.prototype.decode.call(this,_,c)}},5640:function(f,c,u){var d=u(1638),h=u(181).Buffer,l=u(9186),p=l.base,b=l.constants.der;function y(f){this.enc="der",this.name=f.name,this.entity=f,this.tree=new m,this.tree._init(f.body)}function m(f){p.Node.call(this,"der",f)}function g(f){return f<10?"0"+f:f}function v(f,c,u,d){var h;if("seqof"===f?f="seq":"setof"===f&&(f="set"),b.tagByName.hasOwnProperty(f))h=b.tagByName[f];else{if("number"!=typeof f||(0|f)!==f)return d.error("Unknown tag: "+f);h=f}return h>=31?d.error("Multi-octet tag encoding unsupported"):(c||(h|=32),h|=b.tagClassByName[u||"universal"]<<6)}f.exports=y,y.prototype.encode=function(f,c){return this.tree._encode(f,c).join()},d(m,p.Node),m.prototype._encodeComposite=function(f,c,u,d){var l=v(f,c,u,this.reporter);if(d.length<128){var p=new h(2);return p[0]=l,p[1]=d.length,this._createEncoderBuffer([p,d])}for(var b=1,y=d.length;y>=256;y>>=8)b++;var p=new h(2+b);p[0]=l,p[1]=128|b;for(var y=1+b,m=d.length;m>0;y--,m>>=8)p[y]=255&m;return this._createEncoderBuffer([p,d])},m.prototype._encodeStr=function(f,c){if("bitstr"===c)return this._createEncoderBuffer([0|f.unused,f.data]);if("bmpstr"===c){for(var u=new h(2*f.length),d=0;d<f.length;d++)u.writeUInt16BE(f.charCodeAt(d),2*d);return this._createEncoderBuffer(u)}if("numstr"===c)return this._isNumstr(f)?this._createEncoderBuffer(f):this.reporter.error("Encoding of string type: numstr supports only digits and space");if("printstr"===c)return this._isPrintstr(f)?this._createEncoderBuffer(f):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");if(/str$/.test(c))return this._createEncoderBuffer(f);else if("objDesc"===c)return this._createEncoderBuffer(f);else return this.reporter.error("Encoding of string type: "+c+" unsupported")},m.prototype._encodeObjid=function(f,c,u){if("string"==typeof f){if(!c)return this.reporter.error("string objid given, but no values map found");if(!c.hasOwnProperty(f))return this.reporter.error("objid not found in values map");f=c[f].split(/[\s\.]+/g);for(var d=0;d<f.length;d++)f[d]|=0}else if(Array.isArray(f)){f=f.slice();for(var d=0;d<f.length;d++)f[d]|=0}if(!Array.isArray(f))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(f));if(!u){if(f[1]>=40)return this.reporter.error("Second objid identifier OOB");f.splice(0,2,40*f[0]+f[1])}for(var l=0,d=0;d<f.length;d++){var p=f[d];for(l++;p>=128;p>>=7)l++}for(var b=new h(l),y=b.length-1,d=f.length-1;d>=0;d--){var p=f[d];for(b[y--]=127&p;(p>>=7)>0;)b[y--]=128|127&p}return this._createEncoderBuffer(b)},m.prototype._encodeTime=function(f,c){var u,d=new Date(f);return"gentime"===c?u=[g(d.getFullYear()),g(d.getUTCMonth()+1),g(d.getUTCDate()),g(d.getUTCHours()),g(d.getUTCMinutes()),g(d.getUTCSeconds()),"Z"].join(""):"utctime"===c?u=[g(d.getFullYear()%100),g(d.getUTCMonth()+1),g(d.getUTCDate()),g(d.getUTCHours()),g(d.getUTCMinutes()),g(d.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+c+" time is not supported yet"),this._encodeStr(u,"octstr")},m.prototype._encodeNull=function(){return this._createEncoderBuffer("")},m.prototype._encodeInt=function(f,c){if("string"==typeof f){if(!c)return this.reporter.error("String int or enum given, but no values map");if(!c.hasOwnProperty(f))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f));f=c[f]}if("number"!=typeof f&&!h.isBuffer(f)){var u=f.toArray();!f.sign&&128&u[0]&&u.unshift(0),f=new h(u)}if(h.isBuffer(f)){var d=f.length;0===f.length&&d++;var l=new h(d);return f.copy(l),0===f.length&&(l[0]=0),this._createEncoderBuffer(l)}if(f<128)return this._createEncoderBuffer(f);if(f<256)return this._createEncoderBuffer([0,f]);for(var d=1,p=f;p>=256;p>>=8)d++;for(var l=Array(d),p=l.length-1;p>=0;p--)l[p]=255&f,f>>=8;return 128&l[0]&&l.unshift(0),this._createEncoderBuffer(new h(l))},m.prototype._encodeBool=function(f){return this._createEncoderBuffer(255*!!f)},m.prototype._use=function(f,c){return"function"==typeof f&&(f=f(c)),f._getEncoder("der").tree},m.prototype._skipDefault=function(f,c,u){var d,h=this._baseState;if(null===h.default)return!1;var l=f.join();if(void 0===h.defaultBuffer&&(h.defaultBuffer=this._encodeValue(h.default,c,u).join()),l.length!==h.defaultBuffer.length)return!1;for(d=0;d<l.length;d++)if(l[d]!==h.defaultBuffer[d])return!1;return!0}},5555:function(f,c,u){var d=c;d.der=u(5640),d.pem=u(969)},969:function(f,c,u){var d=u(1638),h=u(5640);function l(f){h.call(this,f),this.enc="pem"}
vendor: 4,547 bytes, line 1
1d(l,h),f.exports=l,l.prototype.encode=function(f,c){for(var u=h.prototype.encode.call(this,f).toString("base64"),d=["-----BEGIN "+c.label+"-----"],l=0;l<u.length;l+=64)d.push(u.slice(l,l+64));return d.push("-----END "+c.label+"-----"),d.join("\n")}},5944:function(f,c,u){!function(f,c){"use strict";function d(f,c){if(!f)throw Error(c||"Assertion failed")}function h(f,c){f.super_=c;var u=function(){};u.prototype=c.prototype,f.prototype=new u,f.prototype.constructor=f}function l(f,c,u){if(l.isBN(f))return f;this.negative=0,this.words=null,this.length=0,this.red=null,null!==f&&(("le"===c||"be"===c)&&(u=c,c=10),this._init(f||0,c||10,u||"be"))}"object"==typeof f?f.exports=l:c.BN=l,l.BN=l,l.wordSize=26;try{y=u(181).Buffer}catch(f){}function p(f,c,u){for(var d=0,h=Math.min(f.length,u),l=c;l<h;l++){var p=f.charCodeAt(l)-48;d<<=4,p>=49&&p<=54?d|=p-49+10:p>=17&&p<=22?d|=p-17+10:d|=15&p}return d}function b(f,c,u,d){for(var h=0,l=Math.min(f.length,u),p=c;p<l;p++){var b=f.charCodeAt(p)-48;h*=d,b>=49?h+=b-49+10:b>=17?h+=b-17+10:h+=b}return h}l.isBN=function(f){return f instanceof l||null!==f&&"object"==typeof f&&f.constructor.wordSize===l.wordSize&&Array.isArray(f.words)},l.max=function(f,c){return f.cmp(c)>0?f:c},l.min=function(f,c){return 0>f.cmp(c)?f:c},l.prototype._init=function(f,c,u){if("number"==typeof f)return this._initNumber(f,c,u);if("object"==typeof f)return this._initArray(f,c,u);"hex"===c&&(c=16),d(c===(0|c)&&c>=2&&c<=36);var h=0;"-"===(f=f.toString().replace(/\s+/g,""))[0]&&h++,16===c?this._parseHex(f,h):this._parseBase(f,c,h),"-"===f[0]&&(this.negative=1),this.strip(),"le"===u&&this._initArray(this.toArray(),c,u)},l.prototype._initNumber=function(f,c,u){f<0&&(this.negative=1,f=-f),f<0x4000000?(this.words=[0x3ffffff&f],this.length=1):f<0x10000000000000?(this.words=[0x3ffffff&f,f/0x4000000&0x3ffffff],this.length=2):(d(f<0x20000000000000),this.words=[0x3ffffff&f,f/0x4000000&0x3ffffff,1],this.length=3),"le"===u&&this._initArray(this.toArray(),c,u)},l.prototype._initArray=function(f,c,u){if(d("number"==typeof f.length),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h,l,p=0;p<this.length;p++)this.words[p]=0;var b=0;if("be"===u)for(p=f.length-1,h=0;p>=0;p-=3)l=f[p]|f[p-1]<<8|f[p-2]<<16,this.words[h]|=l<<b&0x3ffffff,this.words[h+1]=l>>>26-b&0x3ffffff,(b+=24)>=26&&(b-=26,h++);else if("le"===u)for(p=0,h=0;p<f.length;p+=3)l=f[p]|f[p+1]<<8|f[p+2]<<16,this.words[h]|=l<<b&0x3ffffff,this.words[h+1]=l>>>26-b&0x3ffffff,(b+=24)>=26&&(b-=26,h++);return this.strip()},l.prototype._parseHex=function(f,c){this.length=Math.ceil((f.length-c)/6),this.words=Array(this.length);for(var u,d,h=0;h<this.length;h++)this.words[h]=0;var l=0;for(h=f.length-6,u=0;h>=c;h-=6)d=p(f,h,h+6),this.words[u]|=d<<l&0x3ffffff,this.words[u+1]|=d>>>26-l&4194303,(l+=24)>=26&&(l-=26,u++);h+6!==c&&(d=p(f,c,h+6),this.words[u]|=d<<l&0x3ffffff,this.words[u+1]|=d>>>26-l&4194303),this.strip()},l.prototype._parseBase=function(f,c,u){this.words=[0],this.length=1;for(var d=0,h=1;h<=0x3ffffff;h*=c)d++;d--,h=h/c|0;for(var l=f.length-u,p=l%d,y=Math.min(l,l-p)+u,m=0,g=u;g<y;g+=d)m=b(f,g,g+d,c),this.imuln(h),this.words[0]+m<0x4000000?this.words[0]+=m:this._iaddn(m);if(0!==p){var v=1;for(m=b(f,g,f.length,c),g=0;g<p;g++)v*=c;this.imuln(v),this.words[0]+m<0x4000000?this.words[0]+=m:this._iaddn(m)}},l.prototype.copy=function(f){f.words=Array(this.length);for(var c=0;c<this.length;c++)f.words[c]=this.words[c];f.length=this.length,f.negative=this.negative,f.red=this.red},l.prototype.clone=function(){var f=new l(null);return this.copy(f),f},l.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},l.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},l.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},l.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var y,m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,0x2000000,0x290d741,0x1000000,
vendor: 6,422 bytes, line 1
10x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function _(f){for(var c=Array(f.bitLength()),u=0;u<c.length;u++){var d=u/26|0,h=u%26;c[u]=(f.words[d]&1<<h)>>>h}return c}function w(f,c,u){u.negative=c.negative^f.negative;var d=f.length+c.length|0;u.length=d,d=d-1|0;var h=0|f.words[0],l=0|c.words[0],p=h*l,b=0x3ffffff&p,y=p/0x4000000|0;u.words[0]=b;for(var m=1;m<d;m++){for(var g=y>>>26,v=0x3ffffff&y,_=Math.min(m,c.length-1),w=Math.max(0,m-f.length+1);w<=_;w++){var x=m-w|0;g+=(p=(h=0|f.words[x])*(l=0|c.words[w])+v)/0x4000000|0,v=0x3ffffff&p}u.words[m]=0|v,y=0|g}return 0!==y?u.words[m]=0|y:u.length--,u.strip()}l.prototype.toString=function(f,c){if(c=0|c||1,16===(f=f||10)||"hex"===f){for(var u="",h=0,l=0,p=0;p<this.length;p++){var b=this.words[p],y=((b<<h|l)&0xffffff).toString(16);u=0!=(l=b>>>24-h&0xffffff)||p!==this.length-1?m[6-y.length]+y+u:y+u,(h+=2)>=26&&(h-=26,p--)}for(0!==l&&(u=l.toString(16)+u);u.length%c!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(f===(0|f)&&f>=2&&f<=36){var _=g[f],w=v[f];u="";var x=this.clone();for(x.negative=0;!x.isZero();){var S=x.modn(w).toString(f);u=(x=x.idivn(w)).isZero()?S+u:m[_-S.length]+S+u}for(this.isZero()&&(u="0"+u);u.length%c!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}d(!1,"Base should be between 2 and 36")},l.prototype.toNumber=function(){var f=this.words[0];return 2===this.length?f+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?f+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-f:f},l.prototype.toJSON=function(){return this.toString(16)},l.prototype.toBuffer=function(f,c){return d(void 0!==y),this.toArrayLike(y,f,c)},l.prototype.toArray=function(f,c){return this.toArrayLike(Array,f,c)},l.prototype.toArrayLike=function(f,c,u){var h,l,p=this.byteLength(),b=u||Math.max(1,p);d(p<=b,"byte array longer than desired length"),d(b>0,"Requested array length <= 0"),this.strip();var y="le"===c,m=new f(b),g=this.clone();if(y){for(l=0;!g.isZero();l++)h=g.andln(255),g.iushrn(8),m[l]=h;for(;l<b;l++)m[l]=0}else{for(l=0;l<b-p;l++)m[l]=0;for(l=0;!g.isZero();l++)h=g.andln(255),g.iushrn(8),m[b-l-1]=h}return m},Math.clz32?l.prototype._countBits=function(f){return 32-Math.clz32(f)}:l.prototype._countBits=function(f){var c=f,u=0;return c>=4096&&(u+=13,c>>>=13),c>=64&&(u+=7,c>>>=7),c>=8&&(u+=4,c>>>=4),c>=2&&(u+=2,c>>>=2),u+c},l.prototype._zeroBits=function(f){if(0===f)return 26;var c=f,u=0;return(8191&c)==0&&(u+=13,c>>>=13),(127&c)==0&&(u+=7,c>>>=7),(15&c)==0&&(u+=4,c>>>=4),(3&c)==0&&(u+=2,c>>>=2),(1&c)==0&&u++,u},l.prototype.bitLength=function(){var f=this.words[this.length-1],c=this._countBits(f);return(this.length-1)*26+c},l.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,c=0;c<this.length;c++){var u=this._zeroBits(this.words[c]);if(f+=u,26!==u)break}return f},l.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},l.prototype.toTwos=function(f){return 0!==this.negative?this.abs().inotn(f).iaddn(1):this.clone()},l.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},l.prototype.isNeg=function(){return 0!==this.negative},l.prototype.neg=function(){return this.clone().ineg()},l.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},l.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var c=0;c<f.length;c++)this.words[c]=this.words[c]|f.words[c];return this.strip()},l.prototype.ior=function(f){return d((this.negative|f.negative)==0),this.iuor(f)},l.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},l.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},l.prototype.iuand=function(f){var c;c=this.length>f.length?f:this;for(var u=0;u<c.length;u++)this.words[u]=this.words[u]&f.words[u];return this.length=c.length,this.strip()},l.prototype.iand=function(f){return d((this.negative|f.negative)==0),this.iuand(f)},l.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},l.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},l.prototype.iuxor=function(f){this.length>f.length?(c=this,u=f):(c=f,u=this);for(var c,u,d=0;d<u.length;d++)this.words[d]=c.words[d]^u.words[d];if(this!==c)for(;d<c.length;d++)this.words[d]=c.words[d];return this.length=c.length,this.strip()},l.prototype.ixor=function(f){return d((this.negative|f.negative)==0),this.iuxor(f)},l.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},l.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},l.prototype.inotn=function(f){d("number"==typeof f&&f>=0);var c=0|Math.ceil(f/26),u=f%26;this._expand(c),u>0&&c--;for(var h=0;h<c;h++)this.words[h]=0x3ffffff&~this.words[h];return u>0&&(this.words[h]=~this.words[h]&0x3ffffff>>26-u),this.strip()},l.prototype.notn=function(f){return this.clone().inotn(f)},l.prototype.setn=function(f,c){d("number"==typeof f&&f>=0);var u=f/26|0,h=f%26;return this._expand(u+1),c?this.words[u]=this.words[u]|1<<h:this.words[u]=this.words[u]&~(1<<h),this.strip()},l.prototype.iadd=function(f){if(0!==this.negative&&0===f.negative)return this.negative=0,c=this.isub(f),this.negative^=1,this._normSign();if(0===this.negative&&0!==f.negative)return f.negative=0,c=this.isub(f),f.negative=1,c._normSign();this.length>f.length?(u=this,d=f):(u=f,d=this);for(var c,u,d,h=0,l=0;l<d.length;l++)c=(0|u.words[l])+(0|d.words[l])+h,this.words[l]=0x3ffffff&c,h=c>>>26;for(;0!==h&&l<u.length;l++)c=(0|u.words[l])+h,this.words[l]=0x3ffffff&c,h=c>>>26;if(this.length=u.length,0!==h)this.words[this.length]=h,this.length++;else if(u!==this)for(;l<u.length;l++)this.words[l]=u.words[l];return this},l.prototype.add=function(f){var c;return 0!==f.negative&&0===this.negative?(f.negative=0,c=this.sub(f),f.negative^=1,c):0===f.negative&&0!==this.negative?(this.negative=0,c=f.sub(this),this.negative=1,c):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},l.prototype.isub=function(f){if(0!==f.negative){f.negative=0;
vendor: 32,873 bytes, line 1
1var c,u,d=this.iadd(f);return f.negative=1,d._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var h=this.cmp(f);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,u=f):(c=f,u=this);for(var l=0,p=0;p<u.length;p++)l=(d=(0|c.words[p])-(0|u.words[p])+l)>>26,this.words[p]=0x3ffffff&d;for(;0!==l&&p<c.length;p++)l=(d=(0|c.words[p])+l)>>26,this.words[p]=0x3ffffff&d;if(0===l&&p<c.length&&c!==this)for(;p<c.length;p++)this.words[p]=c.words[p];return this.length=Math.max(this.length,p),c!==this&&(this.negative=1),this.strip()},l.prototype.sub=function(f){return this.clone().isub(f)};var x=function(f,c,u){var d,h,l,p=f.words,b=c.words,y=u.words,m=0,g=0|p[0],v=8191&g,_=g>>>13,w=0|p[1],x=8191&w,S=w>>>13,E=0|p[2],M=8191&E,A=E>>>13,R=0|p[3],k=8191&R,P=R>>>13,I=0|p[4],O=8191&I,T=I>>>13,N=0|p[5],C=8191&N,B=N>>>13,L=0|p[6],D=8191&L,U=L>>>13,j=0|p[7],F=8191&j,q=j>>>13,$=0|p[8],z=8191&$,V=$>>>13,K=0|p[9],H=8191&K,W=K>>>13,G=0|b[0],J=8191&G,Y=G>>>13,X=0|b[1],Q=8191&X,Z=X>>>13,ee=0|b[2],et=8191&ee,er=ee>>>13,ei=0|b[3],en=8191&ei,eo=ei>>>13,ea=0|b[4],es=8191&ea,ef=ea>>>13,ec=0|b[5],eu=8191&ec,ed=ec>>>13,eh=0|b[6],el=8191&eh,ep=eh>>>13,eb=0|b[7],ey=8191&eb,em=eb>>>13,eg=0|b[8],ev=8191&eg,e_=eg>>>13,ew=0|b[9],ex=8191&ew,eS=ew>>>13;u.negative=f.negative^c.negative,u.length=19,d=Math.imul(v,J);var eE=(m+d|0)+((8191&(h=(h=Math.imul(v,Y))+Math.imul(_,J)|0))<<13)|0;m=((l=Math.imul(_,Y))+(h>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,d=Math.imul(x,J),h=(h=Math.imul(x,Y))+Math.imul(S,J)|0,l=Math.imul(S,Y),d=d+Math.imul(v,Q)|0;var eM=(m+d|0)+((8191&(h=(h=h+Math.imul(v,Z)|0)+Math.imul(_,Q)|0))<<13)|0;m=((l=l+Math.imul(_,Z)|0)+(h>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,d=Math.imul(M,J),h=(h=Math.imul(M,Y))+Math.imul(A,J)|0,l=Math.imul(A,Y),d=d+Math.imul(x,Q)|0,h=(h=h+Math.imul(x,Z)|0)+Math.imul(S,Q)|0,l=l+Math.imul(S,Z)|0,d=d+Math.imul(v,et)|0;var eA=(m+d|0)+((8191&(h=(h=h+Math.imul(v,er)|0)+Math.imul(_,et)|0))<<13)|0;m=((l=l+Math.imul(_,er)|0)+(h>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,d=Math.imul(k,J),h=(h=Math.imul(k,Y))+Math.imul(P,J)|0,l=Math.imul(P,Y),d=d+Math.imul(M,Q)|0,h=(h=h+Math.imul(M,Z)|0)+Math.imul(A,Q)|0,l=l+Math.imul(A,Z)|0,d=d+Math.imul(x,et)|0,h=(h=h+Math.imul(x,er)|0)+Math.imul(S,et)|0,l=l+Math.imul(S,er)|0,d=d+Math.imul(v,en)|0;var eR=(m+d|0)+((8191&(h=(h=h+Math.imul(v,eo)|0)+Math.imul(_,en)|0))<<13)|0;m=((l=l+Math.imul(_,eo)|0)+(h>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,d=Math.imul(O,J),h=(h=Math.imul(O,Y))+Math.imul(T,J)|0,l=Math.imul(T,Y),d=d+Math.imul(k,Q)|0,h=(h=h+Math.imul(k,Z)|0)+Math.imul(P,Q)|0,l=l+Math.imul(P,Z)|0,d=d+Math.imul(M,et)|0,h=(h=h+Math.imul(M,er)|0)+Math.imul(A,et)|0,l=l+Math.imul(A,er)|0,d=d+Math.imul(x,en)|0,h=(h=h+Math.imul(x,eo)|0)+Math.imul(S,en)|0,l=l+Math.imul(S,eo)|0,d=d+Math.imul(v,es)|0;var ek=(m+d|0)+((8191&(h=(h=h+Math.imul(v,ef)|0)+Math.imul(_,es)|0))<<13)|0;m=((l=l+Math.imul(_,ef)|0)+(h>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,d=Math.imul(C,J),h=(h=Math.imul(C,Y))+Math.imul(B,J)|0,l=Math.imul(B,Y),d=d+Math.imul(O,Q)|0,h=(h=h+Math.imul(O,Z)|0)+Math.imul(T,Q)|0,l=l+Math.imul(T,Z)|0,d=d+Math.imul(k,et)|0,h=(h=h+Math.imul(k,er)|0)+Math.imul(P,et)|0,l=l+Math.imul(P,er)|0,d=d+Math.imul(M,en)|0,h=(h=h+Math.imul(M,eo)|0)+Math.imul(A,en)|0,l=l+Math.imul(A,eo)|0,d=d+Math.imul(x,es)|0,h=(h=h+Math.imul(x,ef)|0)+Math.imul(S,es)|0,l=l+Math.imul(S,ef)|0,d=d+Math.imul(v,eu)|0;var eP=(m+d|0)+((8191&(h=(h=h+Math.imul(v,ed)|0)+Math.imul(_,eu)|0))<<13)|0;m=((l=l+Math.imul(_,ed)|0)+(h>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,d=Math.imul(D,J),h=(h=Math.imul(D,Y))+Math.imul(U,J)|0,l=Math.imul(U,Y),d=d+Math.imul(C,Q)|0,h=(h=h+Math.imul(C,Z)|0)+Math.imul(B,Q)|0,l=l+Math.imul(B,Z)|0,d=d+Math.imul(O,et)|0,h=(h=h+Math.imul(O,er)|0)+Math.imul(T,et)|0,l=l+Math.imul(T,er)|0,d=d+Math.imul(k,en)|0,h=(h=h+Math.imul(k,eo)|0)+Math.imul(P,en)|0,l=l+Math.imul(P,eo)|0,d=d+Math.imul(M,es)|0,h=(h=h+Math.imul(M,ef)|0)+Math.imul(A,es)|0,l=l+Math.imul(A,ef)|0,d=d+Math.imul(x,eu)|0,h=(h=h+Math.imul(x,ed)|0)+Math.imul(S,eu)|0,l=l+Math.imul(S,ed)|0,d=d+Math.imul(v,el)|0;var eI=(m+d|0)+((8191&(h=(h=h+Math.imul(v,ep)|0)+Math.imul(_,el)|0))<<13)|0;m=((l=l+Math.imul(_,ep)|0)+(h>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,d=Math.imul(F,J),h=(h=Math.imul(F,Y))+Math.imul(q,J)|0,l=Math.imul(q,Y),d=d+Math.imul(D,Q)|0,h=(h=h+Math.imul(D,Z)|0)+Math.imul(U,Q)|0,l=l+Math.imul(U,Z)|0,d=d+Math.imul(C,et)|0,h=(h=h+Math.imul(C,er)|0)+Math.imul(B,et)|0,l=l+Math.imul(B,er)|0,d=d+Math.imul(O,en)|0,h=(h=h+Math.imul(O,eo)|0)+Math.imul(T,en)|0,l=l+Math.imul(T,eo)|0,d=d+Math.imul(k,es)|0,h=(h=h+Math.imul(k,ef)|0)+Math.imul(P,es)|0,l=l+Math.imul(P,ef)|0,d=d+Math.imul(M,eu)|0,h=(h=h+Math.imul(M,ed)|0)+Math.imul(A,eu)|0,l=l+Math.imul(A,ed)|0,d=d+Math.imul(x,el)|0,h=(h=h+Math.imul(x,ep)|0)+Math.imul(S,el)|0,l=l+Math.imul(S,ep)|0,d=d+Math.imul(v,ey)|0;var eO=(m+d|0)+((8191&(h=(h=h+Math.imul(v,em)|0)+Math.imul(_,ey)|0))<<13)|0;m=((l=l+Math.imul(_,em)|0)+(h>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,d=Math.imul(z,J),h=(h=Math.imul(z,Y))+Math.imul(V,J)|0,l=Math.imul(V,Y),d=d+Math.imul(F,Q)|0,h=(h=h+Math.imul(F,Z)|0)+Math.imul(q,Q)|0,l=l+Math.imul(q,Z)|0,d=d+Math.imul(D,et)|0,h=(h=h+Math.imul(D,er)|0)+Math.imul(U,et)|0,l=l+Math.imul(U,er)|0,d=d+Math.imul(C,en)|0,h=(h=h+Math.imul(C,eo)|0)+Math.imul(B,en)|0,l=l+Math.imul(B,eo)|0,d=d+Math.imul(O,es)|0,h=(h=h+Math.imul(O,ef)|0)+Math.imul(T,es)|0,l=l+Math.imul(T,ef)|0,d=d+Math.imul(k,eu)|0,h=(h=h+Math.imul(k,ed)|0)+Math.imul(P,eu)|0,l=l+Math.imul(P,ed)|0,d=d+Math.imul(M,el)|0,h=(h=h+Math.imul(M,ep)|0)+Math.imul(A,el)|0,l=l+Math.imul(A,ep)|0,d=d+Math.imul(x,ey)|0,h=(h=h+Math.imul(x,em)|0)+Math.imul(S,ey)|0,l=l+Math.imul(S,em)|0,d=d+Math.imul(v,ev)|0;var eT=(m+d|0)+((8191&(h=(h=h+Math.imul(v,e_)|0)+Math.imul(_,ev)|0))<<13)|0;m=((l=l+Math.imul(_,e_)|0)+(h>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,d=Math.imul(H,J),h=(h=Math.imul(H,Y))+Math.imul(W,J)|0,l=Math.imul(W,Y),d=d+Math.imul(z,Q)|0,h=(h=h+Math.imul(z,Z)|0)+Math.imul(V,Q)|0,l=l+Math.imul(V,Z)|0,d=d+Math.imul(F,et)|0,h=(h=h+Math.imul(F,er)|0)+Math.imul(q,et)|0,l=l+Math.imul(q,er)|0,d=d+Math.imul(D,en)|0,h=(h=h+Math.imul(D,eo)|0)+Math.imul(U,en)|0,l=l+Math.imul(U,eo)|0,d=d+Math.imul(C,es)|0,h=(h=h+Math.imul(C,ef)|0)+Math.imul(B,es)|0,l=l+Math.imul(B,ef)|0,d=d+Math.imul(O,eu)|0,h=(h=h+Math.imul(O,ed)|0)+Math.imul(T,eu)|0,l=l+Math.imul(T,ed)|0,d=d+Math.imul(k,el)|0,h=(h=h+Math.imul(k,ep)|0)+Math.imul(P,el)|0,l=l+Math.imul(P,ep)|0,d=d+Math.imul(M,ey)|0,h=(h=h+Math.imul(M,em)|0)+Math.imul(A,ey)|0,l=l+Math.imul(A,em)|0,d=d+Math.imul(x,ev)|0,h=(h=h+Math.imul(x,e_)|0)+Math.imul(S,ev)|0,l=l+Math.imul(S,e_)|0,d=d+Math.imul(v,ex)|0;var eN=(m+d|0)+((8191&(h=(h=h+Math.imul(v,eS)|0)+Math.imul(_,ex)|0))<<13)|0;m=((l=l+Math.imul(_,eS)|0)+(h>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,d=Math.imul(H,Q),h=(h=Math.imul(H,Z))+Math.imul(W,Q)|0,l=Math.imul(W,Z),d=d+Math.imul(z,et)|0,h=(h=h+Math.imul(z,er)|0)+Math.imul(V,et)|0,l=l+Math.imul(V,er)|0,d=d+Math.imul(F,en)|0,h=(h=h+Math.imul(F,eo)|0)+Math.imul(q,en)|0,l=l+Math.imul(q,eo)|0,d=d+Math.imul(D,es)|0,h=(h=h+Math.imul(D,ef)|0)+Math.imul(U,es)|0,l=l+Math.imul(U,ef)|0,d=d+Math.imul(C,eu)|0,h=(h=h+Math.imul(C,ed)|0)+Math.imul(B,eu)|0,l=l+Math.imul(B,ed)|0,d=d+Math.imul(O,el)|0,h=(h=h+Math.imul(O,ep)|0)+Math.imul(T,el)|0,l=l+Math.imul(T,ep)|0,d=d+Math.imul(k,ey)|0,h=(h=h+Math.imul(k,em)|0)+Math.imul(P,ey)|0,l=l+Math.imul(P,em)|0,d=d+Math.imul(M,ev)|0,h=(h=h+Math.imul(M,e_)|0)+Math.imul(A,ev)|0,l=l+Math.imul(A,e_)|0,d=d+Math.imul(x,ex)|0;var eC=(m+d|0)+((8191&(h=(h=h+Math.imul(x,eS)|0)+Math.imul(S,ex)|0))<<13)|0;m=((l=l+Math.imul(S,eS)|0)+(h>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,d=Math.imul(H,et),h=(h=Math.imul(H,er))+Math.imul(W,et)|0,l=Math.imul(W,er),d=d+Math.imul(z,en)|0,h=(h=h+Math.imul(z,eo)|0)+Math.imul(V,en)|0,l=l+Math.imul(V,eo)|0,d=d+Math.imul(F,es)|0,h=(h=h+Math.imul(F,ef)|0)+Math.imul(q,es)|0,l=l+Math.imul(q,ef)|0,d=d+Math.imul(D,eu)|0,h=(h=h+Math.imul(D,ed)|0)+Math.imul(U,eu)|0,l=l+Math.imul(U,ed)|0,d=d+Math.imul(C,el)|0,h=(h=h+Math.imul(C,ep)|0)+Math.imul(B,el)|0,l=l+Math.imul(B,ep)|0,d=d+Math.imul(O,ey)|0,h=(h=h+Math.imul(O,em)|0)+Math.imul(T,ey)|0,l=l+Math.imul(T,em)|0,d=d+Math.imul(k,ev)|0,h=(h=h+Math.imul(k,e_)|0)+Math.imul(P,ev)|0,l=l+Math.imul(P,e_)|0,d=d+Math.imul(M,ex)|0;var eB=(m+d|0)+((8191&(h=(h=h+Math.imul(M,eS)|0)+Math.imul(A,ex)|0))<<13)|0;m=((l=l+Math.imul(A,eS)|0)+(h>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,d=Math.imul(H,en),h=(h=Math.imul(H,eo))+Math.imul(W,en)|0,l=Math.imul(W,eo),d=d+Math.imul(z,es)|0,h=(h=h+Math.imul(z,ef)|0)+Math.imul(V,es)|0,l=l+Math.imul(V,ef)|0,d=d+Math.imul(F,eu)|0,h=(h=h+Math.imul(F,ed)|0)+Math.imul(q,eu)|0,l=l+Math.imul(q,ed)|0,d=d+Math.imul(D,el)|0,h=(h=h+Math.imul(D,ep)|0)+Math.imul(U,el)|0,l=l+Math.imul(U,ep)|0,d=d+Math.imul(C,ey)|0,h=(h=h+Math.imul(C,em)|0)+Math.imul(B,ey)|0,l=l+Math.imul(B,em)|0,d=d+Math.imul(O,ev)|0,h=(h=h+Math.imul(O,e_)|0)+Math.imul(T,ev)|0,l=l+Math.imul(T,e_)|0,d=d+Math.imul(k,ex)|0;var eL=(m+d|0)+((8191&(h=(h=h+Math.imul(k,eS)|0)+Math.imul(P,ex)|0))<<13)|0;m=((l=l+Math.imul(P,eS)|0)+(h>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,d=Math.imul(H,es),h=(h=Math.imul(H,ef))+Math.imul(W,es)|0,l=Math.imul(W,ef),d=d+Math.imul(z,eu)|0,h=(h=h+Math.imul(z,ed)|0)+Math.imul(V,eu)|0,l=l+Math.imul(V,ed)|0,d=d+Math.imul(F,el)|0,h=(h=h+Math.imul(F,ep)|0)+Math.imul(q,el)|0,l=l+Math.imul(q,ep)|0,d=d+Math.imul(D,ey)|0,h=(h=h+Math.imul(D,em)|0)+Math.imul(U,ey)|0,l=l+Math.imul(U,em)|0,d=d+Math.imul(C,ev)|0,h=(h=h+Math.imul(C,e_)|0)+Math.imul(B,ev)|0,l=l+Math.imul(B,e_)|0,d=d+Math.imul(O,ex)|0;var eD=(m+d|0)+((8191&(h=(h=h+Math.imul(O,eS)|0)+Math.imul(T,ex)|0))<<13)|0;m=((l=l+Math.imul(T,eS)|0)+(h>>>13)|0)+(eD>>>26)|0,eD&=0x3ffffff,d=Math.imul(H,eu),h=(h=Math.imul(H,ed))+Math.imul(W,eu)|0,l=Math.imul(W,ed),d=d+Math.imul(z,el)|0,h=(h=h+Math.imul(z,ep)|0)+Math.imul(V,el)|0,l=l+Math.imul(V,ep)|0,d=d+Math.imul(F,ey)|0,h=(h=h+Math.imul(F,em)|0)+Math.imul(q,ey)|0,l=l+Math.imul(q,em)|0,d=d+Math.imul(D,ev)|0,h=(h=h+Math.imul(D,e_)|0)+Math.imul(U,ev)|0,l=l+Math.imul(U,e_)|0,d=d+Math.imul(C,ex)|0;var eU=(m+d|0)+((8191&(h=(h=h+Math.imul(C,eS)|0)+Math.imul(B,ex)|0))<<13)|0;m=((l=l+Math.imul(B,eS)|0)+(h>>>13)|0)+(eU>>>26)|0,eU&=0x3ffffff,d=Math.imul(H,el),h=(h=Math.imul(H,ep))+Math.imul(W,el)|0,l=Math.imul(W,ep),d=d+Math.imul(z,ey)|0,h=(h=h+Math.imul(z,em)|0)+Math.imul(V,ey)|0,l=l+Math.imul(V,em)|0,d=d+Math.imul(F,ev)|0,h=(h=h+Math.imul(F,e_)|0)+Math.imul(q,ev)|0,l=l+Math.imul(q,e_)|0,d=d+Math.imul(D,ex)|0;var ej=(m+d|0)+((8191&(h=(h=h+Math.imul(D,eS)|0)+Math.imul(U,ex)|0))<<13)|0;m=((l=l+Math.imul(U,eS)|0)+(h>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,d=Math.imul(H,ey),h=(h=Math.imul(H,em))+Math.imul(W,ey)|0,l=Math.imul(W,em),d=d+Math.imul(z,ev)|0,h=(h=h+Math.imul(z,e_)|0)+Math.imul(V,ev)|0,l=l+Math.imul(V,e_)|0,d=d+Math.imul(F,ex)|0;var eF=(m+d|0)+((8191&(h=(h=h+Math.imul(F,eS)|0)+Math.imul(q,ex)|0))<<13)|0;m=((l=l+Math.imul(q,eS)|0)+(h>>>13)|0)+(eF>>>26)|0,eF&=0x3ffffff,d=Math.imul(H,ev),h=(h=Math.imul(H,e_))+Math.imul(W,ev)|0,l=Math.imul(W,e_),d=d+Math.imul(z,ex)|0;var eq=(m+d|0)+((8191&(h=(h=h+Math.imul(z,eS)|0)+Math.imul(V,ex)|0))<<13)|0;m=((l=l+Math.imul(V,eS)|0)+(h>>>13)|0)+(eq>>>26)|0,eq&=0x3ffffff,d=Math.imul(H,ex);var e$=(m+d|0)+((8191&(h=(h=Math.imul(H,eS))+Math.imul(W,ex)|0))<<13)|0;return m=((l=Math.imul(W,eS))+(h>>>13)|0)+(e$>>>26)|0,e$&=0x3ffffff,y[0]=eE,y[1]=eM,y[2]=eA,y[3]=eR,y[4]=ek,y[5]=eP,y[6]=eI,y[7]=eO,y[8]=eT,y[9]=eN,y[10]=eC,y[11]=eB,y[12]=eL,y[13]=eD,y[14]=eU,y[15]=ej,y[16]=eF,y[17]=eq,y[18]=e$,0!==m&&(y[19]=m,u.length++),u};function S(f,c,u){u.negative=c.negative^f.negative,u.length=f.length+c.length;for(var d=0,h=0,l=0;l<u.length-1;l++){var p=h;h=0;for(var b=0x3ffffff&d,y=Math.min(l,c.length-1),m=Math.max(0,l-f.length+1);m<=y;m++){var g=l-m,v=(0|f.words[g])*(0|c.words[m]),_=0x3ffffff&v;p=p+(v/0x4000000|0)|0,b=0x3ffffff&(_=_+b|0),h+=(p=p+(_>>>26)|0)>>>26,p&=0x3ffffff}u.words[l]=b,d=p,p=h}return 0!==d?u.words[l]=d:u.length--,u.strip()}function E(f,c,u){return(new M).mulp(f,c,u)}function M(f,c){this.x=f,this.y=c}Math.imul||(x=w),l.prototype.mulTo=function(f,c){var u=this.length+f.length;return 10===this.length&&10===f.length?x(this,f,c):u<63?w(this,f,c):u<1024?S(this,f,c):E(this,f,c)},M.prototype.makeRBT=function(f){for(var c=Array(f),u=l.prototype._countBits(f)-1,d=0;d<f;d++)c[d]=this.revBin(d,u,f);return c},M.prototype.revBin=function(f,c,u){if(0===f||f===u-1)return f;for(var d=0,h=0;h<c;h++)d|=(1&f)<<c-h-1,f>>=1;return d},M.prototype.permute=function(f,c,u,d,h,l){for(var p=0;p<l;p++)d[p]=c[f[p]],h[p]=u[f[p]]},M.prototype.transform=function(f,c,u,d,h,l){this.permute(l,f,c,u,d,h);for(var p=1;p<h;p<<=1)for(var b=p<<1,y=Math.cos(2*Math.PI/b),m=Math.sin(2*Math.PI/b),g=0;g<h;g+=b)for(var v=y,_=m,w=0;w<p;w++){var x=u[g+w],S=d[g+w],E=u[g+w+p],M=d[g+w+p],A=v*E-_*M;M=v*M+_*E,E=A,u[g+w]=x+E,d[g+w]=S+M,u[g+w+p]=x-E,d[g+w+p]=S-M,w!==b&&(A=y*v-m*_,_=y*_+m*v,v=A)}},M.prototype.guessLen13b=function(f,c){var u=1|Math.max(c,f),d=1&u,h=0;for(u=u/2|0;u;u>>>=1)h++;return 1<<h+1+d},M.prototype.conjugate=function(f,c,u){if(!(u<=1))for(var d=0;d<u/2;d++){var h=f[d];f[d]=f[u-d-1],f[u-d-1]=h,h=c[d],c[d]=-c[u-d-1],c[u-d-1]=-h}},M.prototype.normalize13b=function(f,c){for(var u=0,d=0;d<c/2;d++){var h=8192*Math.round(f[2*d+1]/c)+Math.round(f[2*d]/c)+u;f[d]=0x3ffffff&h,u=h<0x4000000?0:h/0x4000000|0}return f},M.prototype.convert13b=function(f,c,u,h){for(var l=0,p=0;p<c;p++)l+=0|f[p],u[2*p]=8191&l,l>>>=13,u[2*p+1]=8191&l,l>>>=13;for(p=2*c;p<h;++p)u[p]=0;d(0===l),d((-8192&l)==0)},M.prototype.stub=function(f){for(var c=Array(f),u=0;u<f;u++)c[u]=0;return c},M.prototype.mulp=function(f,c,u){var d=2*this.guessLen13b(f.length,c.length),h=this.makeRBT(d),l=this.stub(d),p=Array(d),b=Array(d),y=Array(d),m=Array(d),g=Array(d),v=Array(d),_=u.words;_.length=d,this.convert13b(f.words,f.length,p,d),this.convert13b(c.words,c.length,m,d),this.transform(p,l,b,y,d,h),this.transform(m,l,g,v,d,h);for(var w=0;w<d;w++){var x=b[w]*g[w]-y[w]*v[w];y[w]=b[w]*v[w]+y[w]*g[w],b[w]=x}return this.conjugate(b,y,d),this.transform(b,y,_,l,d,h),this.conjugate(_,l,d),this.normalize13b(_,d),u.negative=f.negative^c.negative,u.length=f.length+c.length,u.strip()},l.prototype.mul=function(f){var c=new l(null);return c.words=Array(this.length+f.length),this.mulTo(f,c)},l.prototype.mulf=function(f){var c=new l(null);return c.words=Array(this.length+f.length),E(this,f,c)},l.prototype.imul=function(f){return this.clone().mulTo(f,this)},l.prototype.imuln=function(f){d("number"==typeof f),d(f<0x4000000);for(var c=0,u=0;u<this.length;u++){var h=(0|this.words[u])*f,l=(0x3ffffff&h)+(0x3ffffff&c);c>>=26,c+=(h/0x4000000|0)+(l>>>26),this.words[u]=0x3ffffff&l}return 0!==c&&(this.words[u]=c,this.length++),this},l.prototype.muln=function(f){return this.clone().imuln(f)},l.prototype.sqr=function(){return this.mul(this)},l.prototype.isqr=function(){return this.imul(this.clone())},l.prototype.pow=function(f){var c=_(f);if(0===c.length)return new l(1);for(var u=this,d=0;d<c.length&&0===c[d];d++,u=u.sqr());if(++d<c.length)for(var h=u.sqr();d<c.length;d++,h=h.sqr())0!==c[d]&&(u=u.mul(h));return u},l.prototype.iushln=function(f){d("number"==typeof f&&f>=0);var c,u=f%26,h=(f-u)/26,l=0x3ffffff>>>26-u<<26-u;if(0!==u){var p=0;for(c=0;c<this.length;c++){var b=this.words[c]&l,y=(0|this.words[c])-b<<u;this.words[c]=y|p,p=b>>>26-u}p&&(this.words[c]=p,this.length++)}if(0!==h){for(c=this.length-1;c>=0;c--)this.words[c+h]=this.words[c];for(c=0;c<h;c++)this.words[c]=0;this.length+=h}return this.strip()},l.prototype.ishln=function(f){return d(0===this.negative),this.iushln(f)},l.prototype.iushrn=function(f,c,u){d("number"==typeof f&&f>=0);var h=c?(c-c%26)/26:0,l=f%26,p=Math.min((f-l)/26,this.length),b=0x3ffffff^0x3ffffff>>>l<<l,y=u;if(h-=p,h=Math.max(0,h),y){for(var m=0;m<p;m++)y.words[m]=this.words[m];y.length=p}if(0===p);else if(this.length>p)for(this.length-=p,m=0;m<this.length;m++)this.words[m]=this.words[m+p];else this.words[0]=0,this.length=1;var g=0;for(m=this.length-1;m>=0&&(0!==g||m>=h);m--){var v=0|this.words[m];this.words[m]=g<<26-l|v>>>l,g=v&b}return y&&0!==g&&(y.words[y.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},l.prototype.ishrn=function(f,c,u){return d(0===this.negative),this.iushrn(f,c,u)},l.prototype.shln=function(f){return this.clone().ishln(f)},l.prototype.ushln=function(f){return this.clone().iushln(f)},l.prototype.shrn=function(f){return this.clone().ishrn(f)},l.prototype.ushrn=function(f){return this.clone().iushrn(f)},l.prototype.testn=function(f){d("number"==typeof f&&f>=0);var c=f%26,u=(f-c)/26,h=1<<c;return!(this.length<=u)&&!!(this.words[u]&h)},l.prototype.imaskn=function(f){d("number"==typeof f&&f>=0);var c=f%26,u=(f-c)/26;if(d(0===this.negative,"imaskn works only with positive numbers"),this.length<=u)return this;if(0!==c&&u++,this.length=Math.min(u,this.length),0!==c){var h=0x3ffffff^0x3ffffff>>>c<<c;this.words[this.length-1]&=h}return this.strip()},l.prototype.maskn=function(f){return this.clone().imaskn(f)},l.prototype.iaddn=function(f){return(d("number"==typeof f),d(f<0x4000000),f<0)?this.isubn(-f):0!==this.negative?(1===this.length&&(0|this.words[0])<f?(this.words[0]=f-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(f),this.negative=1),this):this._iaddn(f)},l.prototype._iaddn=function(f){this.words[0]+=f;for(var c=0;c<this.length&&this.words[c]>=0x4000000;c++)this.words[c]-=0x4000000,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},l.prototype.isubn=function(f){if(d("number"==typeof f),d(f<0x4000000),f<0)return this.iaddn(-f);if(0!==this.negative)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=0x4000000,this.words[c+1]-=1;return this.strip()},l.prototype.addn=function(f){return this.clone().iaddn(f)},l.prototype.subn=function(f){return this.clone().isubn(f)},l.prototype.iabs=function(){return this.negative=0,this},l.prototype.abs=function(){return this.clone().iabs()},l.prototype._ishlnsubmul=function(f,c,u){var h,l,p=f.length+u;this._expand(p);var b=0;for(h=0;h<f.length;h++){l=(0|this.words[h+u])+b;var y=(0|f.words[h])*c;l-=0x3ffffff&y,b=(l>>26)-(y/0x4000000|0),this.words[h+u]=0x3ffffff&l}for(;h<this.length-u;h++)b=(l=(0|this.words[h+u])+b)>>26,this.words[h+u]=0x3ffffff&l;if(0===b)return this.strip();for(d(-1===b),b=0,h=0;h<this.length;h++)b=(l=-(0|this.words[h])+b)>>26,this.words[h]=0x3ffffff&l;return this.negative=1,this.strip()},l.prototype._wordDiv=function(f,c){var u,d=this.length-f.length,h=this.clone(),p=f,b=0|p.words[p.length-1];0!=(d=26-this._countBits(b))&&(p=p.ushln(d),h.iushln(d),b=0|p.words[p.length-1]);var y=h.length-p.length;if("mod"!==c){(u=new l(null)).length=y+1,u.words=Array(u.length);for(var m=0;m<u.length;m++)u.words[m]=0}var g=h.clone()._ishlnsubmul(p,1,y);0===g.negative&&(h=g,u&&(u.words[y]=1));for(var v=y-1;v>=0;v--){var _=(0|h.words[p.length+v])*0x4000000+(0|h.words[p.length+v-1]);for(_=Math.min(_/b|0,0x3ffffff),h._ishlnsubmul(p,_,v);0!==h.negative;)_--,h.negative=0,h._ishlnsubmul(p,1,v),h.isZero()||(h.negative^=1);u&&(u.words[v]=_)}return u&&u.strip(),h.strip(),"div"!==c&&0!==d&&h.iushrn(d),{div:u||null,mod:h}},l.prototype.divmod=function(f,c,u){var h,p,b;return(d(!f.isZero()),this.isZero())?{div:new l(0),mod:new l(0)}:0!==this.negative&&0===f.negative?(b=this.neg().divmod(f,c),"mod"!==c&&(h=b.div.neg()),"div"!==c&&(p=b.mod.neg(),u&&0!==p.negative&&p.iadd(f)),{div:h,mod:p}):0===this.negative&&0!==f.negative?(b=this.divmod(f.neg(),c),"mod"!==c&&(h=b.div.neg()),{div:h,mod:b.mod}):(this.negative&f.negative)!=0?(b=this.neg().divmod(f.neg(),c),"div"!==c&&(p=b.mod.neg(),u&&0!==p.negative&&p.isub(f)),{div:b.div,mod:p}):f.length>this.length||0>this.cmp(f)?{div:new l(0),mod:this}:1===f.length?"div"===c?{div:this.divn(f.words[0]),mod:null}:"mod"===c?{div:null,mod:new l(this.modn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new l(this.modn(f.words[0]))}:this._wordDiv(f,c)},l.prototype.div=function(f){return this.divmod(f,"div",!1).div},l.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},l.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},l.prototype.divRound=function(f){var c=this.divmod(f);if(c.mod.isZero())return c.div;var u=0!==c.div.negative?c.mod.isub(f):c.mod,d=f.ushrn(1),h=f.andln(1),l=u.cmp(d);return l<0||1===h&&0===l?c.div:0!==c.div.negative?c.div.isubn(1):c.div.iaddn(1)},l.prototype.modn=function(f){d(f<=0x3ffffff);for(var c=0x4000000%f,u=0,h=this.length-1;h>=0;h--)u=(c*u+(0|this.words[h]))%f;return u},l.prototype.idivn=function(f){d(f<=0x3ffffff);for(var c=0,u=this.length-1;u>=0;u--){var h=(0|this.words[u])+0x4000000*c;this.words[u]=h/f|0,c=h%f}return this.strip()},l.prototype.divn=function(f){return this.clone().idivn(f)},l.prototype.egcd=function(f){d(0===f.negative),d(!f.isZero());var c=this,u=f.clone();c=0!==c.negative?c.umod(f):c.clone();for(var h=new l(1),p=new l(0),b=new l(0),y=new l(1),m=0;c.isEven()&&u.isEven();)c.iushrn(1),u.iushrn(1),++m;for(var g=u.clone(),v=c.clone();!c.isZero();){for(var _=0,w=1;(c.words[0]&w)==0&&_<26;++_,w<<=1);if(_>0)for(c.iushrn(_);_-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(g),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var x=0,S=1;(u.words[0]&S)==0&&x<26;++x,S<<=1);if(x>0)for(u.iushrn(x);x-- >0;)(b.isOdd()||y.isOdd())&&(b.iadd(g),y.isub(v)),b.iushrn(1),y.iushrn(1);c.cmp(u)>=0?(c.isub(u),h.isub(b),p.isub(y)):(u.isub(c),b.isub(h),y.isub(p))}return{a:b,b:y,gcd:u.iushln(m)}},l.prototype._invmp=function(f){d(0===f.negative),d(!f.isZero());var c,u=this,h=f.clone();u=0!==u.negative?u.umod(f):u.clone();for(var p=new l(1),b=new l(0),y=h.clone();u.cmpn(1)>0&&h.cmpn(1)>0;){for(var m=0,g=1;(u.words[0]&g)==0&&m<26;++m,g<<=1);if(m>0)for(u.iushrn(m);m-- >0;)p.isOdd()&&p.iadd(y),p.iushrn(1);for(var v=0,_=1;(h.words[0]&_)==0&&v<26;++v,_<<=1);if(v>0)for(h.iushrn(v);v-- >0;)b.isOdd()&&b.iadd(y),b.iushrn(1);u.cmp(h)>=0?(u.isub(h),p.isub(b)):(h.isub(u),b.isub(p))}return 0>(c=0===u.cmpn(1)?p:b).cmpn(0)&&c.iadd(f),c},l.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var c=this.clone(),u=f.clone();c.negative=0,u.negative=0;for(var d=0;c.isEven()&&u.isEven();d++)c.iushrn(1),u.iushrn(1);for(;;){for(;c.isEven();)c.iushrn(1);for(;u.isEven();)u.iushrn(1);var h=c.cmp(u);if(h<0){var l=c;c=u,u=l}else if(0===h||0===u.cmpn(1))break;c.isub(u)}return u.iushln(d)},l.prototype.invm=function(f){return this.egcd(f).a.umod(f)},l.prototype.isEven=function(){return(1&this.words[0])==0},l.prototype.isOdd=function(){return(1&this.words[0])==1},l.prototype.andln=function(f){return this.words[0]&f},l.prototype.bincn=function(f){d("number"==typeof f);var c=f%26,u=(f-c)/26,h=1<<c;if(this.length<=u)return this._expand(u+1),this.words[u]|=h,this;for(var l=h,p=u;0!==l&&p<this.length;p++){var b=0|this.words[p];b+=l,l=b>>>26,b&=0x3ffffff,this.words[p]=b}return 0!==l&&(this.words[p]=l,this.length++),this},l.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},l.prototype.cmpn=function(f){var c,u=f<0;if(0!==this.negative&&!u)return -1;if(0===this.negative&&u)return 1;if(this.strip(),this.length>1)c=1;else{u&&(f=-f),d(f<=0x3ffffff,"Number is too big");var h=0|this.words[0];c=h===f?0:h<f?-1:1}return 0!==this.negative?0|-c:c},l.prototype.cmp=function(f){if(0!==this.negative&&0===f.negative)return -1;if(0===this.negative&&0!==f.negative)return 1;var c=this.ucmp(f);return 0!==this.negative?0|-c:c},l.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return -1;for(var c=0,u=this.length-1;u>=0;u--){var d=0|this.words[u],h=0|f.words[u];if(d!==h){d<h?c=-1:d>h&&(c=1);break}}return c},l.prototype.gtn=function(f){return 1===this.cmpn(f)},l.prototype.gt=function(f){return 1===this.cmp(f)},l.prototype.gten=function(f){return this.cmpn(f)>=0},l.prototype.gte=function(f){return this.cmp(f)>=0},l.prototype.ltn=function(f){return -1===this.cmpn(f)},l.prototype.lt=function(f){return -1===this.cmp(f)},l.prototype.lten=function(f){return 0>=this.cmpn(f)},l.prototype.lte=function(f){return 0>=this.cmp(f)},l.prototype.eqn=function(f){return 0===this.cmpn(f)},l.prototype.eq=function(f){return 0===this.cmp(f)},l.red=function(f){return new T(f)},l.prototype.toRed=function(f){return d(!this.red,"Already a number in reduction context"),d(0===this.negative,"red works only with positives"),f.convertTo(this)._forceRed(f)},l.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},l.prototype._forceRed=function(f){return this.red=f,this},l.prototype.forceRed=function(f){return d(!this.red,"Already a number in reduction context"),this._forceRed(f)},l.prototype.redAdd=function(f){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},l.prototype.redIAdd=function(f){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},l.prototype.redSub=function(f){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},l.prototype.redISub=function(f){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},l.prototype.redShl=function(f){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},l.prototype.redMul=function(f){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},l.prototype.redIMul=function(f){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},l.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},l.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},l.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},l.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},l.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},l.prototype.redPow=function(f){return d(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var A={k256:null,p224:null,p192:null,p25519:null};function R(f,c){this.name=f,this.p=new l(c,16),this.n=this.p.bitLength(),this.k=new l(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(f){if("string"==typeof f){var c=l._prime(f);this.m=c.p,this.prime=c}else d(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}function N(f){T.call(this,f),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new l(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}R.prototype._tmp=function(){var f=new l(null);return f.words=Array(Math.ceil(this.n/13)),f},R.prototype.ireduce=function(f){var c,u=f;do this.split(u,this.tmp),c=(u=(u=this.imulK(u)).iadd(this.tmp)).bitLength();while(c>this.n)var d=c<this.n?-1:u.ucmp(this.p);return 0===d?(u.words[0]=0,u.length=1):d>0?u.isub(this.p):void 0!==u.strip?u.strip():u._strip(),u},R.prototype.split=function(f,c){f.iushrn(this.n,0,c)},R.prototype.imulK=function(f){return f.imul(this.k)},h(k,R),k.prototype.split=function(f,c){for(var u=4194303,d=Math.min(f.length,9),h=0;h<d;h++)c.words[h]=f.words[h];if(c.length=d,f.length<=9){f.words[0]=0,f.length=1;return}var l=f.words[9];for(c.words[c.length++]=l&u,h=10;h<f.length;h++){var p=0|f.words[h];f.words[h-10]=(p&u)<<4|l>>>22,l=p}l>>>=22,f.words[h-10]=l,0===l&&f.length>10?f.length-=10:f.length-=9},k.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var c=0,u=0;u<f.length;u++){var d=0|f.words[u];c+=977*d,f.words[u]=0x3ffffff&c,c=64*d+(c/0x4000000|0)}return 0===f.words[f.length-1]&&(f.length--,0===f.words[f.length-1]&&f.length--),f},h(P,R),h(I,R),h(O,R),O.prototype.imulK=function(f){for(var c=0,u=0;u<f.length;u++){var d=(0|f.words[u])*19+c,h=0x3ffffff&d;d>>>=26,f.words[u]=h,c=d}return 0!==c&&(f.words[f.length++]=c),f},l._prime=function(f){var c;if(A[f])return A[f];if("k256"===f)c=new k;else if("p224"===f)c=new P;else if("p192"===f)c=new I;else if("p25519"===f)c=new O;else throw Error("Unknown prime "+f);return A[f]=c,c},T.prototype._verify1=function(f){d(0===f.negative,"red works only with positives"),d(f.red,"red works only with red numbers")},T.prototype._verify2=function(f,c){d((f.negative|c.negative)==0,"red works only with positives"),d(f.red&&f.red===c.red,"red works only with red numbers")},T.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):f.umod(this.m)._forceRed(this)},T.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},T.prototype.add=function(f,c){this._verify2(f,c);var u=f.add(c);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},T.prototype.iadd=function(f,c){this._verify2(f,c);var u=f.iadd(c);return u.cmp(this.m)>=0&&u.isub(this.m),u},T.prototype.sub=function(f,c){this._verify2(f,c);var u=f.sub(c);return 0>u.cmpn(0)&&u.iadd(this.m),u._forceRed(this)},T.prototype.isub=function(f,c){this._verify2(f,c);var u=f.isub(c);return 0>u.cmpn(0)&&u.iadd(this.m),u},T.prototype.shl=function(f,c){return this._verify1(f),this.imod(f.ushln(c))},T.prototype.imul=function(f,c){return this._verify2(f,c),this.imod(f.imul(c))},T.prototype.mul=function(f,c){return this._verify2(f,c),this.imod(f.mul(c))},T.prototype.isqr=function(f){return this.imul(f,f.clone())},T.prototype.sqr=function(f){return this.mul(f,f)},T.prototype.sqrt=function(f){if(f.isZero())return f.clone();var c=this.m.andln(3);if(d(c%2==1),3===c){var u=this.m.add(new l(1)).iushrn(2);return this.pow(f,u)}for(var h=this.m.subn(1),p=0;!h.isZero()&&0===h.andln(1);)p++,h.iushrn(1);d(!h.isZero());var b=new l(1).toRed(this),y=b.redNeg(),m=this.m.subn(1).iushrn(1),g=this.m.bitLength();for(g=new l(2*g*g).toRed(this);0!==this.pow(g,m).cmp(y);)g.redIAdd(y);for(var v=this.pow(g,h),_=this.pow(f,h.addn(1).iushrn(1)),w=this.pow(f,h),x=p;0!==w.cmp(b);){for(var S=w,E=0;0!==S.cmp(b);E++)S=S.redSqr();d(E<x);var M=this.pow(v,new l(1).iushln(x-E-1));_=_.redMul(M),v=M.redSqr(),w=w.redMul(v),x=E}return _},T.prototype.invm=function(f){var c=f._invmp(this.m);return 0!==c.negative?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},T.prototype.pow=function(f,c){if(c.isZero())return new l(1).toRed(this);if(0===c.cmpn(1))return f.clone();var u=4,d=Array(16);d[0]=new l(1).toRed(this),d[1]=f;for(var h=2;h<d.length;h++)d[h]=this.mul(d[h-1],f);var p=d[0],b=0,y=0,m=c.bitLength()%26;for(0===m&&(m=26),h=c.length-1;h>=0;h--){for(var g=c.words[h],v=m-1;v>=0;v--){var _=g>>v&1;if(p!==d[0]&&(p=this.sqr(p)),0===_&&0===b){y=0;continue}b<<=1,b|=_,(++y===u||0===h&&0===v)&&(p=this.mul(p,d[b]),y=0,b=0)}m=26}return p},T.prototype.convertTo=function(f){var c=f.umod(this.m);return c===f?c.clone():c},T.prototype.convertFrom=function(f){var c=f.clone();return c.red=null,c},l.mont=function(f){return new N(f)},h(N,T),N.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},N.prototype.convertFrom=function(f){var c=this.imod(f.mul(this.rinv));return c.red=null,c},N.prototype.imul=function(f,c){if(f.isZero()||c.isZero())return f.words[0]=0,f.length=1,f;var u=f.imul(c),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=u.isub(d).iushrn(this.shift),l=h;return h.cmp(this.m)>=0?l=h.isub(this.m):0>h.cmpn(0)&&(l=h.iadd(this.m)),l._forceRed(this)},N.prototype.mul=function(f,c){if(f.isZero()||c.isZero())return new l(0)._forceRed(this);var u=f.mul(c),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=u.isub(d).iushrn(this.shift),p=h;return h.cmp(this.m)>=0?p=h.isub(this.m):0>h.cmpn(0)&&(p=h.iadd(this.m)),p._forceRed(this)},N.prototype.invm=function(f){return this.imod(f._invmp(this.m).mul(this.r2))._forceRed(this)}}(f=u.nmd(f),this)},1315:function(f,c,u){!function(f,c){"use strict";function d(f,c){if(!f)throw Error(c||"Assertion failed")}function h(f,c){f.super_=c;var u=function(){};u.prototype=c.prototype,f.prototype=new u,f.prototype.constructor=f}function l(f,c,u){if(l.isBN(f))return f;this.negative=0,this.words=null,this.length=0,this.red=null,null!==f&&(("le"===c||"be"===c)&&(u=c,c=10),this._init(f||0,c||10,u||"be"))}
vendor: 4,215 bytes, line 1
1"object"==typeof f?f.exports=l:c.BN=l,l.BN=l,l.wordSize=26;try{g=u(181).Buffer}catch(f){}function p(f,c,u){for(var h=0,l=Math.min(f.length,u),p=0,b=c;b<l;b++){var y,m=f.charCodeAt(b)-48;h<<=4,h|=y=m>=49&&m<=54?m-49+10:m>=17&&m<=22?m-17+10:m,p|=y}return d(!(240&p),"Invalid character in "+f),h}function b(f,c,u,h){for(var l=0,p=0,b=Math.min(f.length,u),y=c;y<b;y++){var m=f.charCodeAt(y)-48;l*=h,p=m>=49?m-49+10:m>=17?m-17+10:m,d(m>=0&&p<h,"Invalid character"),l+=p}return l}function y(f,c){f.words=c.words,f.length=c.length,f.negative=c.negative,f.red=c.red}function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}l.isBN=function(f){return f instanceof l||null!==f&&"object"==typeof f&&f.constructor.wordSize===l.wordSize&&Array.isArray(f.words)},l.max=function(f,c){return f.cmp(c)>0?f:c},l.min=function(f,c){return 0>f.cmp(c)?f:c},l.prototype._init=function(f,c,u){if("number"==typeof f)return this._initNumber(f,c,u);if("object"==typeof f)return this._initArray(f,c,u);"hex"===c&&(c=16),d(c===(0|c)&&c>=2&&c<=36);var h=0;"-"===(f=f.toString().replace(/\s+/g,""))[0]&&h++,16===c?this._parseHex(f,h):this._parseBase(f,c,h),"-"===f[0]&&(this.negative=1),this._strip(),"le"===u&&this._initArray(this.toArray(),c,u)},l.prototype._initNumber=function(f,c,u){f<0&&(this.negative=1,f=-f),f<0x4000000?(this.words=[0x3ffffff&f],this.length=1):f<0x10000000000000?(this.words=[0x3ffffff&f,f/0x4000000&0x3ffffff],this.length=2):(d(f<0x20000000000000),this.words=[0x3ffffff&f,f/0x4000000&0x3ffffff,1],this.length=3),"le"===u&&this._initArray(this.toArray(),c,u)},l.prototype._initArray=function(f,c,u){if(d("number"==typeof f.length),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h,l,p=0;p<this.length;p++)this.words[p]=0;var b=0;if("be"===u)for(p=f.length-1,h=0;p>=0;p-=3)l=f[p]|f[p-1]<<8|f[p-2]<<16,this.words[h]|=l<<b&0x3ffffff,this.words[h+1]=l>>>26-b&0x3ffffff,(b+=24)>=26&&(b-=26,h++);else if("le"===u)for(p=0,h=0;p<f.length;p+=3)l=f[p]|f[p+1]<<8|f[p+2]<<16,this.words[h]|=l<<b&0x3ffffff,this.words[h+1]=l>>>26-b&0x3ffffff,(b+=24)>=26&&(b-=26,h++);return this._strip()},l.prototype._parseHex=function(f,c){this.length=Math.ceil((f.length-c)/6),this.words=Array(this.length);for(var u,d,h=0;h<this.length;h++)this.words[h]=0;var l=0;for(h=f.length-6,u=0;h>=c;h-=6)d=p(f,h,h+6),this.words[u]|=d<<l&0x3ffffff,this.words[u+1]|=d>>>26-l&4194303,(l+=24)>=26&&(l-=26,u++);h+6!==c&&(d=p(f,c,h+6),this.words[u]|=d<<l&0x3ffffff,this.words[u+1]|=d>>>26-l&4194303),this._strip()},l.prototype._parseBase=function(f,c,u){this.words=[0],this.length=1;for(var d=0,h=1;h<=0x3ffffff;h*=c)d++;d--,h=h/c|0;for(var l=f.length-u,p=l%d,y=Math.min(l,l-p)+u,m=0,g=u;g<y;g+=d)m=b(f,g,g+d,c),this.imuln(h),this.words[0]+m<0x4000000?this.words[0]+=m:this._iaddn(m);if(0!==p){var v=1;for(m=b(f,g,f.length,c),g=0;g<p;g++)v*=c;this.imuln(v),this.words[0]+m<0x4000000?this.words[0]+=m:this._iaddn(m)}},l.prototype.copy=function(f){f.words=Array(this.length);for(var c=0;c<this.length;c++)f.words[c]=this.words[c];f.length=this.length,f.negative=this.negative,f.red=this.red},l.prototype._move=function(f){y(f,this)},l.prototype.clone=function(){var f=new l(null);return this.copy(f),f},l.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},l.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},l.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for?l.prototype[Symbol.for("nodejs.util.inspect.custom")]=m:l.prototype.inspect=m;var g,v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,0x2000000,0x290d741,0x1000000,
vendor: 34,374 bytes, line 1
10x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];l.prototype.toString=function(f,c){if(c=0|c||1,16===(f=f||10)||"hex"===f){for(var u="",h=0,l=0,p=0;p<this.length;p++){var b=this.words[p],y=((b<<h|l)&0xffffff).toString(16);u=0!=(l=b>>>24-h&0xffffff)||p!==this.length-1?v[6-y.length]+y+u:y+u,(h+=2)>=26&&(h-=26,p--)}for(0!==l&&(u=l.toString(16)+u);u.length%c!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(f===(0|f)&&f>=2&&f<=36){var m=_[f],g=w[f];u="";var x=this.clone();for(x.negative=0;!x.isZero();){var S=x.modrn(g).toString(f);u=(x=x.idivn(g)).isZero()?S+u:v[m-S.length]+S+u}for(this.isZero()&&(u="0"+u);u.length%c!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}d(!1,"Base should be between 2 and 36")},l.prototype.toNumber=function(){var f=this.words[0];return 2===this.length?f+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?f+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-f:f},l.prototype.toJSON=function(){return this.toString(16,2)},g&&(l.prototype.toBuffer=function(f,c){return this.toArrayLike(g,f,c)}),l.prototype.toArray=function(f,c){return this.toArrayLike(Array,f,c)};var x=function(f,c){return f.allocUnsafe?f.allocUnsafe(c):new f(c)};function S(f){for(var c=Array(f.bitLength()),u=0;u<c.length;u++){var d=u/26|0,h=u%26;c[u]=f.words[d]>>>h&1}return c}function E(f,c,u){u.negative=c.negative^f.negative;var d=f.length+c.length|0;u.length=d,d=d-1|0;var h=0|f.words[0],l=0|c.words[0],p=h*l,b=0x3ffffff&p,y=p/0x4000000|0;u.words[0]=b;for(var m=1;m<d;m++){for(var g=y>>>26,v=0x3ffffff&y,_=Math.min(m,c.length-1),w=Math.max(0,m-f.length+1);w<=_;w++){var x=m-w|0;g+=(p=(h=0|f.words[x])*(l=0|c.words[w])+v)/0x4000000|0,v=0x3ffffff&p}u.words[m]=0|v,y=0|g}return 0!==y?u.words[m]=0|y:u.length--,u._strip()}l.prototype.toArrayLike=function(f,c,u){this._strip();var h=this.byteLength(),l=u||Math.max(1,h);d(h<=l,"byte array longer than desired length"),d(l>0,"Requested array length <= 0");var p=x(f,l);return this["_toArrayLike"+("le"===c?"LE":"BE")](p,h),p},l.prototype._toArrayLikeLE=function(f,c){for(var u=0,d=0,h=0,l=0;h<this.length;h++){var p=this.words[h]<<l|d;f[u++]=255&p,u<f.length&&(f[u++]=p>>8&255),u<f.length&&(f[u++]=p>>16&255),6===l?(u<f.length&&(f[u++]=p>>24&255),d=0,l=0):(d=p>>>24,l+=2)}if(u<f.length)for(f[u++]=d;u<f.length;)f[u++]=0},l.prototype._toArrayLikeBE=function(f,c){for(var u=f.length-1,d=0,h=0,l=0;h<this.length;h++){var p=this.words[h]<<l|d;f[u--]=255&p,u>=0&&(f[u--]=p>>8&255),u>=0&&(f[u--]=p>>16&255),6===l?(u>=0&&(f[u--]=p>>24&255),d=0,l=0):(d=p>>>24,l+=2)}if(u>=0)for(f[u--]=d;u>=0;)f[u--]=0},Math.clz32?l.prototype._countBits=function(f){return 32-Math.clz32(f)}:l.prototype._countBits=function(f){var c=f,u=0;return c>=4096&&(u+=13,c>>>=13),c>=64&&(u+=7,c>>>=7),c>=8&&(u+=4,c>>>=4),c>=2&&(u+=2,c>>>=2),u+c},l.prototype._zeroBits=function(f){if(0===f)return 26;var c=f,u=0;return(8191&c)==0&&(u+=13,c>>>=13),(127&c)==0&&(u+=7,c>>>=7),(15&c)==0&&(u+=4,c>>>=4),(3&c)==0&&(u+=2,c>>>=2),(1&c)==0&&u++,u},l.prototype.bitLength=function(){var f=this.words[this.length-1],c=this._countBits(f);return(this.length-1)*26+c},l.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,c=0;c<this.length;c++){var u=this._zeroBits(this.words[c]);if(f+=u,26!==u)break}return f},l.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},l.prototype.toTwos=function(f){return 0!==this.negative?this.abs().inotn(f).iaddn(1):this.clone()},l.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},l.prototype.isNeg=function(){return 0!==this.negative},l.prototype.neg=function(){return this.clone().ineg()},l.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},l.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var c=0;c<f.length;c++)this.words[c]=this.words[c]|f.words[c];return this._strip()},l.prototype.ior=function(f){return d((this.negative|f.negative)==0),this.iuor(f)},l.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},l.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},l.prototype.iuand=function(f){var c;c=this.length>f.length?f:this;for(var u=0;u<c.length;u++)this.words[u]=this.words[u]&f.words[u];return this.length=c.length,this._strip()},l.prototype.iand=function(f){return d((this.negative|f.negative)==0),this.iuand(f)},l.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},l.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},l.prototype.iuxor=function(f){this.length>f.length?(c=this,u=f):(c=f,u=this);for(var c,u,d=0;d<u.length;d++)this.words[d]=c.words[d]^u.words[d];if(this!==c)for(;d<c.length;d++)this.words[d]=c.words[d];return this.length=c.length,this._strip()},l.prototype.ixor=function(f){return d((this.negative|f.negative)==0),this.iuxor(f)},l.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},l.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},l.prototype.inotn=function(f){d("number"==typeof f&&f>=0);var c=0|Math.ceil(f/26),u=f%26;this._expand(c),u>0&&c--;for(var h=0;h<c;h++)this.words[h]=0x3ffffff&~this.words[h];return u>0&&(this.words[h]=~this.words[h]&0x3ffffff>>26-u),this._strip()},l.prototype.notn=function(f){return this.clone().inotn(f)},l.prototype.setn=function(f,c){d("number"==typeof f&&f>=0);var u=f/26|0,h=f%26;return this._expand(u+1),c?this.words[u]=this.words[u]|1<<h:this.words[u]=this.words[u]&~(1<<h),this._strip()},l.prototype.iadd=function(f){if(0!==this.negative&&0===f.negative)return this.negative=0,c=this.isub(f),this.negative^=1,this._normSign();if(0===this.negative&&0!==f.negative)return f.negative=0,c=this.isub(f),f.negative=1,c._normSign();this.length>f.length?(u=this,d=f):(u=f,d=this);for(var c,u,d,h=0,l=0;l<d.length;l++)c=(0|u.words[l])+(0|d.words[l])+h,this.words[l]=0x3ffffff&c,h=c>>>26;for(;0!==h&&l<u.length;l++)c=(0|u.words[l])+h,this.words[l]=0x3ffffff&c,h=c>>>26;if(this.length=u.length,0!==h)this.words[this.length]=h,this.length++;else if(u!==this)for(;l<u.length;l++)this.words[l]=u.words[l];return this},l.prototype.add=function(f){var c;return 0!==f.negative&&0===this.negative?(f.negative=0,c=this.sub(f),f.negative^=1,c):0===f.negative&&0!==this.negative?(this.negative=0,c=f.sub(this),this.negative=1,c):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},l.prototype.isub=function(f){if(0!==f.negative){f.negative=0;var c,u,d=this.iadd(f);return f.negative=1,d._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var h=this.cmp(f);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,u=f):(c=f,u=this);for(var l=0,p=0;p<u.length;p++)l=(d=(0|c.words[p])-(0|u.words[p])+l)>>26,this.words[p]=0x3ffffff&d;for(;0!==l&&p<c.length;p++)l=(d=(0|c.words[p])+l)>>26,this.words[p]=0x3ffffff&d;if(0===l&&p<c.length&&c!==this)for(;p<c.length;p++)this.words[p]=c.words[p];return this.length=Math.max(this.length,p),c!==this&&(this.negative=1),this._strip()},l.prototype.sub=function(f){return this.clone().isub(f)};var M=function(f,c,u){var d,h,l,p=f.words,b=c.words,y=u.words,m=0,g=0|p[0],v=8191&g,_=g>>>13,w=0|p[1],x=8191&w,S=w>>>13,E=0|p[2],M=8191&E,A=E>>>13,R=0|p[3],k=8191&R,P=R>>>13,I=0|p[4],O=8191&I,T=I>>>13,N=0|p[5],C=8191&N,B=N>>>13,L=0|p[6],D=8191&L,U=L>>>13,j=0|p[7],F=8191&j,q=j>>>13,$=0|p[8],z=8191&$,V=$>>>13,K=0|p[9],H=8191&K,W=K>>>13,G=0|b[0],J=8191&G,Y=G>>>13,X=0|b[1],Q=8191&X,Z=X>>>13,ee=0|b[2],et=8191&ee,er=ee>>>13,ei=0|b[3],en=8191&ei,eo=ei>>>13,ea=0|b[4],es=8191&ea,ef=ea>>>13,ec=0|b[5],eu=8191&ec,ed=ec>>>13,eh=0|b[6],el=8191&eh,ep=eh>>>13,eb=0|b[7],ey=8191&eb,em=eb>>>13,eg=0|b[8],ev=8191&eg,e_=eg>>>13,ew=0|b[9],ex=8191&ew,eS=ew>>>13;u.negative=f.negative^c.negative,u.length=19,d=Math.imul(v,J);var eE=(m+d|0)+((8191&(h=(h=Math.imul(v,Y))+Math.imul(_,J)|0))<<13)|0;m=((l=Math.imul(_,Y))+(h>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,d=Math.imul(x,J),h=(h=Math.imul(x,Y))+Math.imul(S,J)|0,l=Math.imul(S,Y),d=d+Math.imul(v,Q)|0;var eM=(m+d|0)+((8191&(h=(h=h+Math.imul(v,Z)|0)+Math.imul(_,Q)|0))<<13)|0;m=((l=l+Math.imul(_,Z)|0)+(h>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,d=Math.imul(M,J),h=(h=Math.imul(M,Y))+Math.imul(A,J)|0,l=Math.imul(A,Y),d=d+Math.imul(x,Q)|0,h=(h=h+Math.imul(x,Z)|0)+Math.imul(S,Q)|0,l=l+Math.imul(S,Z)|0,d=d+Math.imul(v,et)|0;var eA=(m+d|0)+((8191&(h=(h=h+Math.imul(v,er)|0)+Math.imul(_,et)|0))<<13)|0;m=((l=l+Math.imul(_,er)|0)+(h>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,d=Math.imul(k,J),h=(h=Math.imul(k,Y))+Math.imul(P,J)|0,l=Math.imul(P,Y),d=d+Math.imul(M,Q)|0,h=(h=h+Math.imul(M,Z)|0)+Math.imul(A,Q)|0,l=l+Math.imul(A,Z)|0,d=d+Math.imul(x,et)|0,h=(h=h+Math.imul(x,er)|0)+Math.imul(S,et)|0,l=l+Math.imul(S,er)|0,d=d+Math.imul(v,en)|0;var eR=(m+d|0)+((8191&(h=(h=h+Math.imul(v,eo)|0)+Math.imul(_,en)|0))<<13)|0;m=((l=l+Math.imul(_,eo)|0)+(h>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,d=Math.imul(O,J),h=(h=Math.imul(O,Y))+Math.imul(T,J)|0,l=Math.imul(T,Y),d=d+Math.imul(k,Q)|0,h=(h=h+Math.imul(k,Z)|0)+Math.imul(P,Q)|0,l=l+Math.imul(P,Z)|0,d=d+Math.imul(M,et)|0,h=(h=h+Math.imul(M,er)|0)+Math.imul(A,et)|0,l=l+Math.imul(A,er)|0,d=d+Math.imul(x,en)|0,h=(h=h+Math.imul(x,eo)|0)+Math.imul(S,en)|0,l=l+Math.imul(S,eo)|0,d=d+Math.imul(v,es)|0;var ek=(m+d|0)+((8191&(h=(h=h+Math.imul(v,ef)|0)+Math.imul(_,es)|0))<<13)|0;m=((l=l+Math.imul(_,ef)|0)+(h>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,d=Math.imul(C,J),h=(h=Math.imul(C,Y))+Math.imul(B,J)|0,l=Math.imul(B,Y),d=d+Math.imul(O,Q)|0,h=(h=h+Math.imul(O,Z)|0)+Math.imul(T,Q)|0,l=l+Math.imul(T,Z)|0,d=d+Math.imul(k,et)|0,h=(h=h+Math.imul(k,er)|0)+Math.imul(P,et)|0,l=l+Math.imul(P,er)|0,d=d+Math.imul(M,en)|0,h=(h=h+Math.imul(M,eo)|0)+Math.imul(A,en)|0,l=l+Math.imul(A,eo)|0,d=d+Math.imul(x,es)|0,h=(h=h+Math.imul(x,ef)|0)+Math.imul(S,es)|0,l=l+Math.imul(S,ef)|0,d=d+Math.imul(v,eu)|0;var eP=(m+d|0)+((8191&(h=(h=h+Math.imul(v,ed)|0)+Math.imul(_,eu)|0))<<13)|0;m=((l=l+Math.imul(_,ed)|0)+(h>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,d=Math.imul(D,J),h=(h=Math.imul(D,Y))+Math.imul(U,J)|0,l=Math.imul(U,Y),d=d+Math.imul(C,Q)|0,h=(h=h+Math.imul(C,Z)|0)+Math.imul(B,Q)|0,l=l+Math.imul(B,Z)|0,d=d+Math.imul(O,et)|0,h=(h=h+Math.imul(O,er)|0)+Math.imul(T,et)|0,l=l+Math.imul(T,er)|0,d=d+Math.imul(k,en)|0,h=(h=h+Math.imul(k,eo)|0)+Math.imul(P,en)|0,l=l+Math.imul(P,eo)|0,d=d+Math.imul(M,es)|0,h=(h=h+Math.imul(M,ef)|0)+Math.imul(A,es)|0,l=l+Math.imul(A,ef)|0,d=d+Math.imul(x,eu)|0,h=(h=h+Math.imul(x,ed)|0)+Math.imul(S,eu)|0,l=l+Math.imul(S,ed)|0,d=d+Math.imul(v,el)|0;var eI=(m+d|0)+((8191&(h=(h=h+Math.imul(v,ep)|0)+Math.imul(_,el)|0))<<13)|0;m=((l=l+Math.imul(_,ep)|0)+(h>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,d=Math.imul(F,J),h=(h=Math.imul(F,Y))+Math.imul(q,J)|0,l=Math.imul(q,Y),d=d+Math.imul(D,Q)|0,h=(h=h+Math.imul(D,Z)|0)+Math.imul(U,Q)|0,l=l+Math.imul(U,Z)|0,d=d+Math.imul(C,et)|0,h=(h=h+Math.imul(C,er)|0)+Math.imul(B,et)|0,l=l+Math.imul(B,er)|0,d=d+Math.imul(O,en)|0,h=(h=h+Math.imul(O,eo)|0)+Math.imul(T,en)|0,l=l+Math.imul(T,eo)|0,d=d+Math.imul(k,es)|0,h=(h=h+Math.imul(k,ef)|0)+Math.imul(P,es)|0,l=l+Math.imul(P,ef)|0,d=d+Math.imul(M,eu)|0,h=(h=h+Math.imul(M,ed)|0)+Math.imul(A,eu)|0,l=l+Math.imul(A,ed)|0,d=d+Math.imul(x,el)|0,h=(h=h+Math.imul(x,ep)|0)+Math.imul(S,el)|0,l=l+Math.imul(S,ep)|0,d=d+Math.imul(v,ey)|0;var eO=(m+d|0)+((8191&(h=(h=h+Math.imul(v,em)|0)+Math.imul(_,ey)|0))<<13)|0;m=((l=l+Math.imul(_,em)|0)+(h>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,d=Math.imul(z,J),h=(h=Math.imul(z,Y))+Math.imul(V,J)|0,l=Math.imul(V,Y),d=d+Math.imul(F,Q)|0,h=(h=h+Math.imul(F,Z)|0)+Math.imul(q,Q)|0,l=l+Math.imul(q,Z)|0,d=d+Math.imul(D,et)|0,h=(h=h+Math.imul(D,er)|0)+Math.imul(U,et)|0,l=l+Math.imul(U,er)|0,d=d+Math.imul(C,en)|0,h=(h=h+Math.imul(C,eo)|0)+Math.imul(B,en)|0,l=l+Math.imul(B,eo)|0,d=d+Math.imul(O,es)|0,h=(h=h+Math.imul(O,ef)|0)+Math.imul(T,es)|0,l=l+Math.imul(T,ef)|0,d=d+Math.imul(k,eu)|0,h=(h=h+Math.imul(k,ed)|0)+Math.imul(P,eu)|0,l=l+Math.imul(P,ed)|0,d=d+Math.imul(M,el)|0,h=(h=h+Math.imul(M,ep)|0)+Math.imul(A,el)|0,l=l+Math.imul(A,ep)|0,d=d+Math.imul(x,ey)|0,h=(h=h+Math.imul(x,em)|0)+Math.imul(S,ey)|0,l=l+Math.imul(S,em)|0,d=d+Math.imul(v,ev)|0;var eT=(m+d|0)+((8191&(h=(h=h+Math.imul(v,e_)|0)+Math.imul(_,ev)|0))<<13)|0;m=((l=l+Math.imul(_,e_)|0)+(h>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,d=Math.imul(H,J),h=(h=Math.imul(H,Y))+Math.imul(W,J)|0,l=Math.imul(W,Y),d=d+Math.imul(z,Q)|0,h=(h=h+Math.imul(z,Z)|0)+Math.imul(V,Q)|0,l=l+Math.imul(V,Z)|0,d=d+Math.imul(F,et)|0,h=(h=h+Math.imul(F,er)|0)+Math.imul(q,et)|0,l=l+Math.imul(q,er)|0,d=d+Math.imul(D,en)|0,h=(h=h+Math.imul(D,eo)|0)+Math.imul(U,en)|0,l=l+Math.imul(U,eo)|0,d=d+Math.imul(C,es)|0,h=(h=h+Math.imul(C,ef)|0)+Math.imul(B,es)|0,l=l+Math.imul(B,ef)|0,d=d+Math.imul(O,eu)|0,h=(h=h+Math.imul(O,ed)|0)+Math.imul(T,eu)|0,l=l+Math.imul(T,ed)|0,d=d+Math.imul(k,el)|0,h=(h=h+Math.imul(k,ep)|0)+Math.imul(P,el)|0,l=l+Math.imul(P,ep)|0,d=d+Math.imul(M,ey)|0,h=(h=h+Math.imul(M,em)|0)+Math.imul(A,ey)|0,l=l+Math.imul(A,em)|0,d=d+Math.imul(x,ev)|0,h=(h=h+Math.imul(x,e_)|0)+Math.imul(S,ev)|0,l=l+Math.imul(S,e_)|0,d=d+Math.imul(v,ex)|0;var eN=(m+d|0)+((8191&(h=(h=h+Math.imul(v,eS)|0)+Math.imul(_,ex)|0))<<13)|0;m=((l=l+Math.imul(_,eS)|0)+(h>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,d=Math.imul(H,Q),h=(h=Math.imul(H,Z))+Math.imul(W,Q)|0,l=Math.imul(W,Z),d=d+Math.imul(z,et)|0,h=(h=h+Math.imul(z,er)|0)+Math.imul(V,et)|0,l=l+Math.imul(V,er)|0,d=d+Math.imul(F,en)|0,h=(h=h+Math.imul(F,eo)|0)+Math.imul(q,en)|0,l=l+Math.imul(q,eo)|0,d=d+Math.imul(D,es)|0,h=(h=h+Math.imul(D,ef)|0)+Math.imul(U,es)|0,l=l+Math.imul(U,ef)|0,d=d+Math.imul(C,eu)|0,h=(h=h+Math.imul(C,ed)|0)+Math.imul(B,eu)|0,l=l+Math.imul(B,ed)|0,d=d+Math.imul(O,el)|0,h=(h=h+Math.imul(O,ep)|0)+Math.imul(T,el)|0,l=l+Math.imul(T,ep)|0,d=d+Math.imul(k,ey)|0,h=(h=h+Math.imul(k,em)|0)+Math.imul(P,ey)|0,l=l+Math.imul(P,em)|0,d=d+Math.imul(M,ev)|0,h=(h=h+Math.imul(M,e_)|0)+Math.imul(A,ev)|0,l=l+Math.imul(A,e_)|0,d=d+Math.imul(x,ex)|0;var eC=(m+d|0)+((8191&(h=(h=h+Math.imul(x,eS)|0)+Math.imul(S,ex)|0))<<13)|0;m=((l=l+Math.imul(S,eS)|0)+(h>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,d=Math.imul(H,et),h=(h=Math.imul(H,er))+Math.imul(W,et)|0,l=Math.imul(W,er),d=d+Math.imul(z,en)|0,h=(h=h+Math.imul(z,eo)|0)+Math.imul(V,en)|0,l=l+Math.imul(V,eo)|0,d=d+Math.imul(F,es)|0,h=(h=h+Math.imul(F,ef)|0)+Math.imul(q,es)|0,l=l+Math.imul(q,ef)|0,d=d+Math.imul(D,eu)|0,h=(h=h+Math.imul(D,ed)|0)+Math.imul(U,eu)|0,l=l+Math.imul(U,ed)|0,d=d+Math.imul(C,el)|0,h=(h=h+Math.imul(C,ep)|0)+Math.imul(B,el)|0,l=l+Math.imul(B,ep)|0,d=d+Math.imul(O,ey)|0,h=(h=h+Math.imul(O,em)|0)+Math.imul(T,ey)|0,l=l+Math.imul(T,em)|0,d=d+Math.imul(k,ev)|0,h=(h=h+Math.imul(k,e_)|0)+Math.imul(P,ev)|0,l=l+Math.imul(P,e_)|0,d=d+Math.imul(M,ex)|0;var eB=(m+d|0)+((8191&(h=(h=h+Math.imul(M,eS)|0)+Math.imul(A,ex)|0))<<13)|0;m=((l=l+Math.imul(A,eS)|0)+(h>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,d=Math.imul(H,en),h=(h=Math.imul(H,eo))+Math.imul(W,en)|0,l=Math.imul(W,eo),d=d+Math.imul(z,es)|0,h=(h=h+Math.imul(z,ef)|0)+Math.imul(V,es)|0,l=l+Math.imul(V,ef)|0,d=d+Math.imul(F,eu)|0,h=(h=h+Math.imul(F,ed)|0)+Math.imul(q,eu)|0,l=l+Math.imul(q,ed)|0,d=d+Math.imul(D,el)|0,h=(h=h+Math.imul(D,ep)|0)+Math.imul(U,el)|0,l=l+Math.imul(U,ep)|0,d=d+Math.imul(C,ey)|0,h=(h=h+Math.imul(C,em)|0)+Math.imul(B,ey)|0,l=l+Math.imul(B,em)|0,d=d+Math.imul(O,ev)|0,h=(h=h+Math.imul(O,e_)|0)+Math.imul(T,ev)|0,l=l+Math.imul(T,e_)|0,d=d+Math.imul(k,ex)|0;var eL=(m+d|0)+((8191&(h=(h=h+Math.imul(k,eS)|0)+Math.imul(P,ex)|0))<<13)|0;m=((l=l+Math.imul(P,eS)|0)+(h>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,d=Math.imul(H,es),h=(h=Math.imul(H,ef))+Math.imul(W,es)|0,l=Math.imul(W,ef),d=d+Math.imul(z,eu)|0,h=(h=h+Math.imul(z,ed)|0)+Math.imul(V,eu)|0,l=l+Math.imul(V,ed)|0,d=d+Math.imul(F,el)|0,h=(h=h+Math.imul(F,ep)|0)+Math.imul(q,el)|0,l=l+Math.imul(q,ep)|0,d=d+Math.imul(D,ey)|0,h=(h=h+Math.imul(D,em)|0)+Math.imul(U,ey)|0,l=l+Math.imul(U,em)|0,d=d+Math.imul(C,ev)|0,h=(h=h+Math.imul(C,e_)|0)+Math.imul(B,ev)|0,l=l+Math.imul(B,e_)|0,d=d+Math.imul(O,ex)|0;var eD=(m+d|0)+((8191&(h=(h=h+Math.imul(O,eS)|0)+Math.imul(T,ex)|0))<<13)|0;m=((l=l+Math.imul(T,eS)|0)+(h>>>13)|0)+(eD>>>26)|0,eD&=0x3ffffff,d=Math.imul(H,eu),h=(h=Math.imul(H,ed))+Math.imul(W,eu)|0,l=Math.imul(W,ed),d=d+Math.imul(z,el)|0,h=(h=h+Math.imul(z,ep)|0)+Math.imul(V,el)|0,l=l+Math.imul(V,ep)|0,d=d+Math.imul(F,ey)|0,h=(h=h+Math.imul(F,em)|0)+Math.imul(q,ey)|0,l=l+Math.imul(q,em)|0,d=d+Math.imul(D,ev)|0,h=(h=h+Math.imul(D,e_)|0)+Math.imul(U,ev)|0,l=l+Math.imul(U,e_)|0,d=d+Math.imul(C,ex)|0;var eU=(m+d|0)+((8191&(h=(h=h+Math.imul(C,eS)|0)+Math.imul(B,ex)|0))<<13)|0;m=((l=l+Math.imul(B,eS)|0)+(h>>>13)|0)+(eU>>>26)|0,eU&=0x3ffffff,d=Math.imul(H,el),h=(h=Math.imul(H,ep))+Math.imul(W,el)|0,l=Math.imul(W,ep),d=d+Math.imul(z,ey)|0,h=(h=h+Math.imul(z,em)|0)+Math.imul(V,ey)|0,l=l+Math.imul(V,em)|0,d=d+Math.imul(F,ev)|0,h=(h=h+Math.imul(F,e_)|0)+Math.imul(q,ev)|0,l=l+Math.imul(q,e_)|0,d=d+Math.imul(D,ex)|0;var ej=(m+d|0)+((8191&(h=(h=h+Math.imul(D,eS)|0)+Math.imul(U,ex)|0))<<13)|0;m=((l=l+Math.imul(U,eS)|0)+(h>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,d=Math.imul(H,ey),h=(h=Math.imul(H,em))+Math.imul(W,ey)|0,l=Math.imul(W,em),d=d+Math.imul(z,ev)|0,h=(h=h+Math.imul(z,e_)|0)+Math.imul(V,ev)|0,l=l+Math.imul(V,e_)|0,d=d+Math.imul(F,ex)|0;var eF=(m+d|0)+((8191&(h=(h=h+Math.imul(F,eS)|0)+Math.imul(q,ex)|0))<<13)|0;m=((l=l+Math.imul(q,eS)|0)+(h>>>13)|0)+(eF>>>26)|0,eF&=0x3ffffff,d=Math.imul(H,ev),h=(h=Math.imul(H,e_))+Math.imul(W,ev)|0,l=Math.imul(W,e_),d=d+Math.imul(z,ex)|0;var eq=(m+d|0)+((8191&(h=(h=h+Math.imul(z,eS)|0)+Math.imul(V,ex)|0))<<13)|0;m=((l=l+Math.imul(V,eS)|0)+(h>>>13)|0)+(eq>>>26)|0,eq&=0x3ffffff,d=Math.imul(H,ex);var e$=(m+d|0)+((8191&(h=(h=Math.imul(H,eS))+Math.imul(W,ex)|0))<<13)|0;return m=((l=Math.imul(W,eS))+(h>>>13)|0)+(e$>>>26)|0,e$&=0x3ffffff,y[0]=eE,y[1]=eM,y[2]=eA,y[3]=eR,y[4]=ek,y[5]=eP,y[6]=eI,y[7]=eO,y[8]=eT,y[9]=eN,y[10]=eC,y[11]=eB,y[12]=eL,y[13]=eD,y[14]=eU,y[15]=ej,y[16]=eF,y[17]=eq,y[18]=e$,0!==m&&(y[19]=m,u.length++),u};function A(f,c,u){u.negative=c.negative^f.negative,u.length=f.length+c.length;for(var d=0,h=0,l=0;l<u.length-1;l++){var p=h;h=0;for(var b=0x3ffffff&d,y=Math.min(l,c.length-1),m=Math.max(0,l-f.length+1);m<=y;m++){var g=l-m,v=(0|f.words[g])*(0|c.words[m]),_=0x3ffffff&v;p=p+(v/0x4000000|0)|0,b=0x3ffffff&(_=_+b|0),h+=(p=p+(_>>>26)|0)>>>26,p&=0x3ffffff}u.words[l]=b,d=p,p=h}return 0!==d?u.words[l]=d:u.length--,u._strip()}function R(f,c,u){return A(f,c,u)}function k(f,c){this.x=f,this.y=c}Math.imul||(M=E),l.prototype.mulTo=function(f,c){var u=this.length+f.length;return 10===this.length&&10===f.length?M(this,f,c):u<63?E(this,f,c):u<1024?A(this,f,c):R(this,f,c)},k.prototype.makeRBT=function(f){for(var c=Array(f),u=l.prototype._countBits(f)-1,d=0;d<f;d++)c[d]=this.revBin(d,u,f);return c},k.prototype.revBin=function(f,c,u){if(0===f||f===u-1)return f;for(var d=0,h=0;h<c;h++)d|=(1&f)<<c-h-1,f>>=1;return d},k.prototype.permute=function(f,c,u,d,h,l){for(var p=0;p<l;p++)d[p]=c[f[p]],h[p]=u[f[p]]},k.prototype.transform=function(f,c,u,d,h,l){this.permute(l,f,c,u,d,h);for(var p=1;p<h;p<<=1)for(var b=p<<1,y=Math.cos(2*Math.PI/b),m=Math.sin(2*Math.PI/b),g=0;g<h;g+=b)for(var v=y,_=m,w=0;w<p;w++){var x=u[g+w],S=d[g+w],E=u[g+w+p],M=d[g+w+p],A=v*E-_*M;M=v*M+_*E,E=A,u[g+w]=x+E,d[g+w]=S+M,u[g+w+p]=x-E,d[g+w+p]=S-M,w!==b&&(A=y*v-m*_,_=y*_+m*v,v=A)}},k.prototype.guessLen13b=function(f,c){var u=1|Math.max(c,f),d=1&u,h=0;for(u=u/2|0;u;u>>>=1)h++;return 1<<h+1+d},k.prototype.conjugate=function(f,c,u){if(!(u<=1))for(var d=0;d<u/2;d++){var h=f[d];f[d]=f[u-d-1],f[u-d-1]=h,h=c[d],c[d]=-c[u-d-1],c[u-d-1]=-h}},k.prototype.normalize13b=function(f,c){for(var u=0,d=0;d<c/2;d++){var h=8192*Math.round(f[2*d+1]/c)+Math.round(f[2*d]/c)+u;f[d]=0x3ffffff&h,u=h<0x4000000?0:h/0x4000000|0}return f},k.prototype.convert13b=function(f,c,u,h){for(var l=0,p=0;p<c;p++)l+=0|f[p],u[2*p]=8191&l,l>>>=13,u[2*p+1]=8191&l,l>>>=13;for(p=2*c;p<h;++p)u[p]=0;d(0===l),d((-8192&l)==0)},k.prototype.stub=function(f){for(var c=Array(f),u=0;u<f;u++)c[u]=0;return c},k.prototype.mulp=function(f,c,u){var d=2*this.guessLen13b(f.length,c.length),h=this.makeRBT(d),l=this.stub(d),p=Array(d),b=Array(d),y=Array(d),m=Array(d),g=Array(d),v=Array(d),_=u.words;_.length=d,this.convert13b(f.words,f.length,p,d),this.convert13b(c.words,c.length,m,d),this.transform(p,l,b,y,d,h),this.transform(m,l,g,v,d,h);for(var w=0;w<d;w++){var x=b[w]*g[w]-y[w]*v[w];y[w]=b[w]*v[w]+y[w]*g[w],b[w]=x}return this.conjugate(b,y,d),this.transform(b,y,_,l,d,h),this.conjugate(_,l,d),this.normalize13b(_,d),u.negative=f.negative^c.negative,u.length=f.length+c.length,u._strip()},l.prototype.mul=function(f){var c=new l(null);return c.words=Array(this.length+f.length),this.mulTo(f,c)},l.prototype.mulf=function(f){var c=new l(null);return c.words=Array(this.length+f.length),R(this,f,c)},l.prototype.imul=function(f){return this.clone().mulTo(f,this)},l.prototype.imuln=function(f){var c=f<0;c&&(f=-f),d("number"==typeof f),d(f<0x4000000);for(var u=0,h=0;h<this.length;h++){var l=(0|this.words[h])*f,p=(0x3ffffff&l)+(0x3ffffff&u);u>>=26,u+=(l/0x4000000|0)+(p>>>26),this.words[h]=0x3ffffff&p}return 0!==u&&(this.words[h]=u,this.length++),c?this.ineg():this},l.prototype.muln=function(f){return this.clone().imuln(f)},l.prototype.sqr=function(){return this.mul(this)},l.prototype.isqr=function(){return this.imul(this.clone())},l.prototype.pow=function(f){var c=S(f);if(0===c.length)return new l(1);for(var u=this,d=0;d<c.length&&0===c[d];d++,u=u.sqr());if(++d<c.length)for(var h=u.sqr();d<c.length;d++,h=h.sqr())0!==c[d]&&(u=u.mul(h));return u},l.prototype.iushln=function(f){d("number"==typeof f&&f>=0);var c,u=f%26,h=(f-u)/26,l=0x3ffffff>>>26-u<<26-u;if(0!==u){var p=0;for(c=0;c<this.length;c++){var b=this.words[c]&l,y=(0|this.words[c])-b<<u;this.words[c]=y|p,p=b>>>26-u}p&&(this.words[c]=p,this.length++)}if(0!==h){for(c=this.length-1;c>=0;c--)this.words[c+h]=this.words[c];for(c=0;c<h;c++)this.words[c]=0;this.length+=h}return this._strip()},l.prototype.ishln=function(f){return d(0===this.negative),this.iushln(f)},l.prototype.iushrn=function(f,c,u){d("number"==typeof f&&f>=0);var h=c?(c-c%26)/26:0,l=f%26,p=Math.min((f-l)/26,this.length),b=0x3ffffff^0x3ffffff>>>l<<l,y=u;if(h-=p,h=Math.max(0,h),y){for(var m=0;m<p;m++)y.words[m]=this.words[m];y.length=p}if(0===p);else if(this.length>p)for(this.length-=p,m=0;m<this.length;m++)this.words[m]=this.words[m+p];else this.words[0]=0,this.length=1;var g=0;for(m=this.length-1;m>=0&&(0!==g||m>=h);m--){var v=0|this.words[m];this.words[m]=g<<26-l|v>>>l,g=v&b}return y&&0!==g&&(y.words[y.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},l.prototype.ishrn=function(f,c,u){return d(0===this.negative),this.iushrn(f,c,u)},l.prototype.shln=function(f){return this.clone().ishln(f)},l.prototype.ushln=function(f){return this.clone().iushln(f)},l.prototype.shrn=function(f){return this.clone().ishrn(f)},l.prototype.ushrn=function(f){return this.clone().iushrn(f)},l.prototype.testn=function(f){d("number"==typeof f&&f>=0);var c=f%26,u=(f-c)/26,h=1<<c;return!(this.length<=u)&&!!(this.words[u]&h)},l.prototype.imaskn=function(f){d("number"==typeof f&&f>=0);var c=f%26,u=(f-c)/26;if(d(0===this.negative,"imaskn works only with positive numbers"),this.length<=u)return this;if(0!==c&&u++,this.length=Math.min(u,this.length),0!==c){var h=0x3ffffff^0x3ffffff>>>c<<c;this.words[this.length-1]&=h}return this._strip()},l.prototype.maskn=function(f){return this.clone().imaskn(f)},l.prototype.iaddn=function(f){return(d("number"==typeof f),d(f<0x4000000),f<0)?this.isubn(-f):0!==this.negative?(1===this.length&&(0|this.words[0])<=f?(this.words[0]=f-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(f),this.negative=1),this):this._iaddn(f)},l.prototype._iaddn=function(f){this.words[0]+=f;for(var c=0;c<this.length&&this.words[c]>=0x4000000;c++)this.words[c]-=0x4000000,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},l.prototype.isubn=function(f){if(d("number"==typeof f),d(f<0x4000000),f<0)return this.iaddn(-f);if(0!==this.negative)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=0x4000000,this.words[c+1]-=1;return this._strip()},l.prototype.addn=function(f){return this.clone().iaddn(f)},l.prototype.subn=function(f){return this.clone().isubn(f)},l.prototype.iabs=function(){return this.negative=0,this},l.prototype.abs=function(){return this.clone().iabs()},l.prototype._ishlnsubmul=function(f,c,u){var h,l,p=f.length+u;this._expand(p);var b=0;for(h=0;h<f.length;h++){l=(0|this.words[h+u])+b;var y=(0|f.words[h])*c;l-=0x3ffffff&y,b=(l>>26)-(y/0x4000000|0),this.words[h+u]=0x3ffffff&l}for(;h<this.length-u;h++)b=(l=(0|this.words[h+u])+b)>>26,this.words[h+u]=0x3ffffff&l;if(0===b)return this._strip();for(d(-1===b),b=0,h=0;h<this.length;h++)b=(l=-(0|this.words[h])+b)>>26,this.words[h]=0x3ffffff&l;return this.negative=1,this._strip()},l.prototype._wordDiv=function(f,c){var u,d=this.length-f.length,h=this.clone(),p=f,b=0|p.words[p.length-1];0!=(d=26-this._countBits(b))&&(p=p.ushln(d),h.iushln(d),b=0|p.words[p.length-1]);var y=h.length-p.length;if("mod"!==c){(u=new l(null)).length=y+1,u.words=Array(u.length);for(var m=0;m<u.length;m++)u.words[m]=0}var g=h.clone()._ishlnsubmul(p,1,y);0===g.negative&&(h=g,u&&(u.words[y]=1));for(var v=y-1;v>=0;v--){var _=(0|h.words[p.length+v])*0x4000000+(0|h.words[p.length+v-1]);for(_=Math.min(_/b|0,0x3ffffff),h._ishlnsubmul(p,_,v);0!==h.negative;)_--,h.negative=0,h._ishlnsubmul(p,1,v),h.isZero()||(h.negative^=1);u&&(u.words[v]=_)}return u&&u._strip(),h._strip(),"div"!==c&&0!==d&&h.iushrn(d),{div:u||null,mod:h}},l.prototype.divmod=function(f,c,u){var h,p,b;return(d(!f.isZero()),this.isZero())?{div:new l(0),mod:new l(0)}:0!==this.negative&&0===f.negative?(b=this.neg().divmod(f,c),"mod"!==c&&(h=b.div.neg()),"div"!==c&&(p=b.mod.neg(),u&&0!==p.negative&&p.iadd(f)),{div:h,mod:p}):0===this.negative&&0!==f.negative?(b=this.divmod(f.neg(),c),"mod"!==c&&(h=b.div.neg()),{div:h,mod:b.mod}):(this.negative&f.negative)!=0?(b=this.neg().divmod(f.neg(),c),"div"!==c&&(p=b.mod.neg(),u&&0!==p.negative&&p.isub(f)),{div:b.div,mod:p}):f.length>this.length||0>this.cmp(f)?{div:new l(0),mod:this}:1===f.length?"div"===c?{div:this.divn(f.words[0]),mod:null}:"mod"===c?{div:null,mod:new l(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new l(this.modrn(f.words[0]))}:this._wordDiv(f,c)},l.prototype.div=function(f){return this.divmod(f,"div",!1).div},l.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},l.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},l.prototype.divRound=function(f){var c=this.divmod(f);if(c.mod.isZero())return c.div;var u=0!==c.div.negative?c.mod.isub(f):c.mod,d=f.ushrn(1),h=f.andln(1),l=u.cmp(d);return l<0||1===h&&0===l?c.div:0!==c.div.negative?c.div.isubn(1):c.div.iaddn(1)},l.prototype.modrn=function(f){var c=f<0;c&&(f=-f),d(f<=0x3ffffff);for(var u=0x4000000%f,h=0,l=this.length-1;l>=0;l--)h=(u*h+(0|this.words[l]))%f;return c?-h:h},l.prototype.modn=function(f){return this.modrn(f)},l.prototype.idivn=function(f){var c=f<0;c&&(f=-f),d(f<=0x3ffffff);for(var u=0,h=this.length-1;h>=0;h--){var l=(0|this.words[h])+0x4000000*u;this.words[h]=l/f|0,u=l%f}return this._strip(),c?this.ineg():this},l.prototype.divn=function(f){return this.clone().idivn(f)},l.prototype.egcd=function(f){d(0===f.negative),d(!f.isZero());var c=this,u=f.clone();c=0!==c.negative?c.umod(f):c.clone();for(var h=new l(1),p=new l(0),b=new l(0),y=new l(1),m=0;c.isEven()&&u.isEven();)c.iushrn(1),u.iushrn(1),++m;for(var g=u.clone(),v=c.clone();!c.isZero();){for(var _=0,w=1;(c.words[0]&w)==0&&_<26;++_,w<<=1);if(_>0)for(c.iushrn(_);_-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(g),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var x=0,S=1;(u.words[0]&S)==0&&x<26;++x,S<<=1);if(x>0)for(u.iushrn(x);x-- >0;)(b.isOdd()||y.isOdd())&&(b.iadd(g),y.isub(v)),b.iushrn(1),y.iushrn(1);c.cmp(u)>=0?(c.isub(u),h.isub(b),p.isub(y)):(u.isub(c),b.isub(h),y.isub(p))}return{a:b,b:y,gcd:u.iushln(m)}},l.prototype._invmp=function(f){d(0===f.negative),d(!f.isZero());var c,u=this,h=f.clone();u=0!==u.negative?u.umod(f):u.clone();for(var p=new l(1),b=new l(0),y=h.clone();u.cmpn(1)>0&&h.cmpn(1)>0;){for(var m=0,g=1;(u.words[0]&g)==0&&m<26;++m,g<<=1);if(m>0)for(u.iushrn(m);m-- >0;)p.isOdd()&&p.iadd(y),p.iushrn(1);for(var v=0,_=1;(h.words[0]&_)==0&&v<26;++v,_<<=1);if(v>0)for(h.iushrn(v);v-- >0;)b.isOdd()&&b.iadd(y),b.iushrn(1);u.cmp(h)>=0?(u.isub(h),p.isub(b)):(h.isub(u),b.isub(p))}return 0>(c=0===u.cmpn(1)?p:b).cmpn(0)&&c.iadd(f),c},l.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var c=this.clone(),u=f.clone();c.negative=0,u.negative=0;for(var d=0;c.isEven()&&u.isEven();d++)c.iushrn(1),u.iushrn(1);for(;;){for(;c.isEven();)c.iushrn(1);for(;u.isEven();)u.iushrn(1);var h=c.cmp(u);if(h<0){var l=c;c=u,u=l}else if(0===h||0===u.cmpn(1))break;c.isub(u)}return u.iushln(d)},l.prototype.invm=function(f){return this.egcd(f).a.umod(f)},l.prototype.isEven=function(){return(1&this.words[0])==0},l.prototype.isOdd=function(){return(1&this.words[0])==1},l.prototype.andln=function(f){return this.words[0]&f},l.prototype.bincn=function(f){d("number"==typeof f);var c=f%26,u=(f-c)/26,h=1<<c;if(this.length<=u)return this._expand(u+1),this.words[u]|=h,this;for(var l=h,p=u;0!==l&&p<this.length;p++){var b=0|this.words[p];b+=l,l=b>>>26,b&=0x3ffffff,this.words[p]=b}return 0!==l&&(this.words[p]=l,this.length++),this},l.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},l.prototype.cmpn=function(f){var c,u=f<0;if(0!==this.negative&&!u)return -1;if(0===this.negative&&u)return 1;if(this._strip(),this.length>1)c=1;else{u&&(f=-f),d(f<=0x3ffffff,"Number is too big");var h=0|this.words[0];c=h===f?0:h<f?-1:1}return 0!==this.negative?0|-c:c},l.prototype.cmp=function(f){if(0!==this.negative&&0===f.negative)return -1;if(0===this.negative&&0!==f.negative)return 1;var c=this.ucmp(f);return 0!==this.negative?0|-c:c},l.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return -1;for(var c=0,u=this.length-1;u>=0;u--){var d=0|this.words[u],h=0|f.words[u];if(d!==h){d<h?c=-1:d>h&&(c=1);break}}return c},l.prototype.gtn=function(f){return 1===this.cmpn(f)},l.prototype.gt=function(f){return 1===this.cmp(f)},l.prototype.gten=function(f){return this.cmpn(f)>=0},l.prototype.gte=function(f){return this.cmp(f)>=0},l.prototype.ltn=function(f){return -1===this.cmpn(f)},l.prototype.lt=function(f){return -1===this.cmp(f)},l.prototype.lten=function(f){return 0>=this.cmpn(f)},l.prototype.lte=function(f){return 0>=this.cmp(f)},l.prototype.eqn=function(f){return 0===this.cmpn(f)},l.prototype.eq=function(f){return 0===this.cmp(f)},l.red=function(f){return new B(f)},l.prototype.toRed=function(f){return d(!this.red,"Already a number in reduction context"),d(0===this.negative,"red works only with positives"),f.convertTo(this)._forceRed(f)},l.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},l.prototype._forceRed=function(f){return this.red=f,this},l.prototype.forceRed=function(f){return d(!this.red,"Already a number in reduction context"),this._forceRed(f)},l.prototype.redAdd=function(f){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},l.prototype.redIAdd=function(f){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},l.prototype.redSub=function(f){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},l.prototype.redISub=function(f){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},l.prototype.redShl=function(f){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},l.prototype.redMul=function(f){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},l.prototype.redIMul=function(f){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},l.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},l.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},l.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},l.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},l.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},l.prototype.redPow=function(f){return d(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var P={k256:null,p224:null,p192:null,p25519:null};function I(f,c){this.name=f,this.p=new l(c,16),this.n=this.p.bitLength(),this.k=new l(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function O(){I.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){I.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function N(){I.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){I.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(f){if("string"==typeof f){var c=l._prime(f);this.m=c.p,this.prime=c}else d(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}function L(f){B.call(this,f),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new l(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=th
vendor: 8,388 bytes, line 1
1is.minv.umod(this.r),this.minv=this.r.sub(this.minv)}I.prototype._tmp=function(){var f=new l(null);return f.words=Array(Math.ceil(this.n/13)),f},I.prototype.ireduce=function(f){var c,u=f;do this.split(u,this.tmp),c=(u=(u=this.imulK(u)).iadd(this.tmp)).bitLength();while(c>this.n)var d=c<this.n?-1:u.ucmp(this.p);return 0===d?(u.words[0]=0,u.length=1):d>0?u.isub(this.p):void 0!==u.strip?u.strip():u._strip(),u},I.prototype.split=function(f,c){f.iushrn(this.n,0,c)},I.prototype.imulK=function(f){return f.imul(this.k)},h(O,I),O.prototype.split=function(f,c){for(var u=4194303,d=Math.min(f.length,9),h=0;h<d;h++)c.words[h]=f.words[h];if(c.length=d,f.length<=9){f.words[0]=0,f.length=1;return}var l=f.words[9];for(c.words[c.length++]=l&u,h=10;h<f.length;h++){var p=0|f.words[h];f.words[h-10]=(p&u)<<4|l>>>22,l=p}l>>>=22,f.words[h-10]=l,0===l&&f.length>10?f.length-=10:f.length-=9},O.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var c=0,u=0;u<f.length;u++){var d=0|f.words[u];c+=977*d,f.words[u]=0x3ffffff&c,c=64*d+(c/0x4000000|0)}return 0===f.words[f.length-1]&&(f.length--,0===f.words[f.length-1]&&f.length--),f},h(T,I),h(N,I),h(C,I),C.prototype.imulK=function(f){for(var c=0,u=0;u<f.length;u++){var d=(0|f.words[u])*19+c,h=0x3ffffff&d;d>>>=26,f.words[u]=h,c=d}return 0!==c&&(f.words[f.length++]=c),f},l._prime=function(f){var c;if(P[f])return P[f];if("k256"===f)c=new O;else if("p224"===f)c=new T;else if("p192"===f)c=new N;else if("p25519"===f)c=new C;else throw Error("Unknown prime "+f);return P[f]=c,c},B.prototype._verify1=function(f){d(0===f.negative,"red works only with positives"),d(f.red,"red works only with red numbers")},B.prototype._verify2=function(f,c){d((f.negative|c.negative)==0,"red works only with positives"),d(f.red&&f.red===c.red,"red works only with red numbers")},B.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(y(f,f.umod(this.m)._forceRed(this)),f)},B.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},B.prototype.add=function(f,c){this._verify2(f,c);var u=f.add(c);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},B.prototype.iadd=function(f,c){this._verify2(f,c);var u=f.iadd(c);return u.cmp(this.m)>=0&&u.isub(this.m),u},B.prototype.sub=function(f,c){this._verify2(f,c);var u=f.sub(c);return 0>u.cmpn(0)&&u.iadd(this.m),u._forceRed(this)},B.prototype.isub=function(f,c){this._verify2(f,c);var u=f.isub(c);return 0>u.cmpn(0)&&u.iadd(this.m),u},B.prototype.shl=function(f,c){return this._verify1(f),this.imod(f.ushln(c))},B.prototype.imul=function(f,c){return this._verify2(f,c),this.imod(f.imul(c))},B.prototype.mul=function(f,c){return this._verify2(f,c),this.imod(f.mul(c))},B.prototype.isqr=function(f){return this.imul(f,f.clone())},B.prototype.sqr=function(f){return this.mul(f,f)},B.prototype.sqrt=function(f){if(f.isZero())return f.clone();var c=this.m.andln(3);if(d(c%2==1),3===c){var u=this.m.add(new l(1)).iushrn(2);return this.pow(f,u)}for(var h=this.m.subn(1),p=0;!h.isZero()&&0===h.andln(1);)p++,h.iushrn(1);d(!h.isZero());var b=new l(1).toRed(this),y=b.redNeg(),m=this.m.subn(1).iushrn(1),g=this.m.bitLength();for(g=new l(2*g*g).toRed(this);0!==this.pow(g,m).cmp(y);)g.redIAdd(y);for(var v=this.pow(g,h),_=this.pow(f,h.addn(1).iushrn(1)),w=this.pow(f,h),x=p;0!==w.cmp(b);){for(var S=w,E=0;0!==S.cmp(b);E++)S=S.redSqr();d(E<x);var M=this.pow(v,new l(1).iushln(x-E-1));_=_.redMul(M),v=M.redSqr(),w=w.redMul(v),x=E}return _},B.prototype.invm=function(f){var c=f._invmp(this.m);return 0!==c.negative?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},B.prototype.pow=function(f,c){if(c.isZero())return new l(1).toRed(this);if(0===c.cmpn(1))return f.clone();var u=4,d=Array(16);d[0]=new l(1).toRed(this),d[1]=f;for(var h=2;h<d.length;h++)d[h]=this.mul(d[h-1],f);var p=d[0],b=0,y=0,m=c.bitLength()%26;for(0===m&&(m=26),h=c.length-1;h>=0;h--){for(var g=c.words[h],v=m-1;v>=0;v--){var _=g>>v&1;if(p!==d[0]&&(p=this.sqr(p)),0===_&&0===b){y=0;continue}b<<=1,b|=_,(++y===u||0===h&&0===v)&&(p=this.mul(p,d[b]),y=0,b=0)}m=26}return p},B.prototype.convertTo=function(f){var c=f.umod(this.m);return c===f?c.clone():c},B.prototype.convertFrom=function(f){var c=f.clone();return c.red=null,c},l.mont=function(f){return new L(f)},h(L,B),L.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},L.prototype.convertFrom=function(f){var c=this.imod(f.mul(this.rinv));return c.red=null,c},L.prototype.imul=function(f,c){if(f.isZero()||c.isZero())return f.words[0]=0,f.length=1,f;var u=f.imul(c),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=u.isub(d).iushrn(this.shift),l=h;return h.cmp(this.m)>=0?l=h.isub(this.m):0>h.cmpn(0)&&(l=h.iadd(this.m)),l._forceRed(this)},L.prototype.mul=function(f,c){if(f.isZero()||c.isZero())return new l(0)._forceRed(this);var u=f.mul(c),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=u.isub(d).iushrn(this.shift),p=h;return h.cmp(this.m)>=0?p=h.isub(this.m):0>h.cmpn(0)&&(p=h.iadd(this.m)),p._forceRed(this)},L.prototype.invm=function(f){return this.imod(f._invmp(this.m).mul(this.r2))._forceRed(this)}}(f=u.nmd(f),this)},4259:function(f,c,u){var d;function h(f){this.rand=f}if(f.exports=function(f){return d||(d=new h(null)),d.generate(f)},f.exports.Rand=h,h.prototype.generate=function(f){return this._rand(f)},h.prototype._rand=function(f){if(this.rand.getBytes)return this.rand.getBytes(f);for(var c=new Uint8Array(f),u=0;u<c.length;u++)c[u]=this.rand.getByte();return c},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?h.prototype._rand=function(f){var c=new Uint8Array(f);return self.crypto.getRandomValues(c),c}:self.msCrypto&&self.msCrypto.getRandomValues?h.prototype._rand=function(f){var c=new Uint8Array(f);return self.msCrypto.getRandomValues(c),c}:"object"==typeof window&&(h.prototype._rand=function(){throw Error("Not implemented yet")});else try{var l=u(6982);if("function"!=typeof l.randomBytes)throw Error("Not supported");h.prototype._rand=function(f){return l.randomBytes(f)}}catch(f){}},6313:function(f,c,u){var d=u(5725).Buffer;function h(f){d.isBuffer(f)||(f=d.from(f));for(var c=f.length/4|0,u=Array(c),h=0;h<c;h++)u[h]=f.readUInt32BE(4*h);return u}function l(f){for(var c=0;c<f.length;f++)f[c]=0}function p(f,c,u,d,h){for(var l,p,b,y,m=u[0],g=u[1],v=u[2],_=u[3],w=f[0]^c[0],x=f[1]^c[1],S=f[2]^c[2],E=f[3]^c[3],M=4,A=1;A<h;A++)l=m[w>>>24]^g[x>>>16&255]^v[S>>>8&255]^_[255&E]^c[M++],p=m[x>>>24]^g[S>>>16&255]^v[E>>>8&255]^_[255&w]^c[M++],b=m[S>>>24]^g[E>>>16&255]^v[w>>>8&255]^_[255&x]^c[M++],y=m[E>>>24]^g[w>>>16&255]^v[x>>>8&255]^_[255&S]^c[M++],w=l,x=p,S=b,E=y;return l=(d[w>>>24]<<24|d[x>>>16&255]<<16|d[S>>>8&255]<<8|d[255&E])^c[M++],p=(d[x>>>24]<<24|d[S>>>16&255]<<16|d[E>>>8&255]<<8|d[255&w])^c[M++],b=(d[S>>>24]<<24|d[E>>>16&255]<<16|d[w>>>8&255]<<8|d[255&x])^c[M++],[l>>>=0,p>>>=0,b>>>=0,y=((d[E>>>24]<<24|d[w>>>16&255]<<16|d[x>>>8&255]<<8|d[255&S])^c[M++])>>>0]}var b=[0,1,2,4,8,16,32,64,128,27,54],y=function(){for(var f=Array(256),c=0;c<256;c++)c<128?f[c]=c<<1:f[c]=c<<1^283;for(var u=[],d=[],h=[[],[],[],[]],l=[[],[],[],[]],p=0,b=0,y=0;y<256;++y){var m=b^b<<1^b<<2^b<<3^b<<4;m=m>>>8^255&m^99,u[p]=m,d[m]=p;var g=f[p],v=f[g],_=f[v],w=257*f[m]^0x1010100*m;h[0][p]=w<<24|w>>>8,h[1][p]=w<<16|w>>>16,h[2][p]=w<<8|w>>>24,h[3][p]=w,w=0x1010101*_^65537*v^257*g^0x1010100*p,l[0][m]=w<<24|w>>>8,l[1][m]=w<<16|w>>>16,l[2][m]=w<<8|w>>>24,l[3][m]=w,0===p?p=b=1:(p=g^f[f[f[_^g]]],b^=f[f[b]])}return{SBOX:u,INV_SBOX:d,SUB_MIX:h,INV_SUB_MIX:l}}();function m(f){this._key=h(f),this._reset()}m.blockSize=16,m.keySize=32,m.prototype.blockSize=m.blockSize,m.prototype.keySize=m.keySize,m.prototype._reset=function(){for(var f=this._key,c=f.length,u=c+6,d=(u+1)*4,h=[],l=0;l<c;l++)h[l]=f[l];for(l=c;l<d;l++){var p=h[l-1];l%c==0?(p=p<<8|p>>>24,p=(y.SBOX[p>>>24]<<24|y.SBOX[p>>>16&255]<<16|y.SBOX[p>>>8&255]<<8|y.SBOX[255&p])^b[l/c|0]<<24):c>6&&l%c==4&&(p=y.SBOX[p>>>24]<<24|y.SBOX[p>>>16&255]<<16|y.SBOX[p>>>8&255]<<8|y.SBOX[255&p]),h[l]=h[l-c]^p}for(var m=[],g=0;g<d;g++){var v=d-g,_=h[v-(g%4?0:4)];g<4||v<=4?m[g]=_:m[g]=y.INV_SUB_MIX[0][y.SBOX[_>>>24]]^y.INV_SUB_MIX[1][y.SBOX[_>>>16&255]]^y.INV_SUB_MIX[2][y.SBOX[_>>>8&255]]^y.INV_SUB_MIX[3][y.SBOX[255&_]]}this._nRounds=u,this._keySchedule=h,this._invKeySchedule=m},m.prototype.encryptBlockRaw=function(f){return p(f=h(f),this._keySchedule,y.SUB_MIX,y.SBOX,this._nR
1ounds)},m.prototype.encryptBlock=function(f){var c=this.encryptBlockRaw(f),u=d.allocUnsafe(16);return u.writeUInt32BE(c[0],0),u.writeUInt32BE(c[1],4),u.writeUInt32BE(c[2],8),u.writeUInt32BE(c[3],12),u},m.prototype.decryptBlock=function(f){var c=(f=h(f))[1];f[1]=f[3],f[3]=c;var u=p(f,this._invKeySchedule,y.INV_SUB_MIX,y.INV_SBOX,this._nRounds),l=d.allocUnsafe(16);return l.writeUInt32BE(u[0],0),l.writeUInt32BE(u[3],4),l.writeUInt32BE(u[2],8),l.writeUInt32BE(u[1],12),l},m.prototype.scrub=function(){l(this._keySchedule),l(this._invKeySchedule),l(this._key)},f.exports.AES=m},1725:function(f,c,u){var d=u(6313),h=u(5725).Buffer,l=u(1888),p=u(1638),b=u(1267),y=u(6481),m=u(1995);function g(f,c){var u=0;f.length!==c.length&&u++;for(var d=Math.min(f.length,c.length),h=0;h<d;++h)u+=f[h]^c[h];return u}function v(f,c,u){if(12===c.length)return f._finID=h.concat([c,h.from([0,0,0,1])]),h.concat([c,h.from([0,0,0,2])]);var d=new b(u),l=c.length,p=l%16;d.update(c),p&&(p=16-p,d.update(h.alloc(p,0))),d.update(h.alloc(8,0));var y=8*l,g=h.alloc(8);g.writeUIntBE(y,0,8),d.update(g),f._finID=d.state;var v=h.from(f._finID);return m(v),v}function _(f,c,u,p){l.call(this);var y=h.alloc(4,0);this._cipher=new d.AES(c);var m=this._cipher.encryptBlock(y);this._ghash=new b(m),u=v(this,u,m),this._prev=h.from(u),this._cache=h.allocUnsafe(0),this._secCache=h.allocUnsafe(0),this._decrypt=p,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}p(_,l),_.prototype._update=function(f){if(!this._called&&this._alen){var c=16-this._alen%16;c<16&&(c=h.alloc(c,0),this._ghash.update(c))}this._called=!0;var u=this._mode.encrypt(this,f);return this._decrypt?this._ghash.update(f):this._ghash.update(u),this._len+=f.length,u},_.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var f=y(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&g(f,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=f,this._cipher.scrub()},_.prototype.getAuthTag=function(){if(this._decrypt||!h.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},_.prototype.setAuthTag=function(f){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=f},_.prototype.setAAD=function(f){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(f),this._alen+=f.length},f.exports=_},8642:function(f,c,u){var d=u(9780),h=u(7984),l=u(3349);function p(){return Object.keys(l)}c.createCipher=c.Cipher=d.createCipher,c.createCipheriv=c.Cipheriv=d.createCipheriv,c.createDecipher=c.Decipher=h.createDecipher,c.createDecipheriv=c.Decipheriv=h.createDecipheriv,c.listCiphers=c.getCiphers=p},7984:function(f,c,u){var d=u(1725),h=u(5725).Buffer,l=u(8597),p=u(959),b=u(1888),y=u(6313),m=u(689);function g(f,c,u){b.call(this),this._cache=new v,this._last=void 0,this._cipher=new y.AES(c),this._prev=h.from(u),this._mode=f,this._autopadding=!0}function v(){this.cache=h.allocUnsafe(0)}function _(f){var c=f[15];if(c<1||c>16)throw Error("unable to decrypt data");for(var u=-1;++u<c;)if(f[u+(16-c)]!==c)throw Error("unable to decrypt data");if(16!==c)return f.slice(0,16-c)}function w(f,c,u){var b=l[f.toLowerCase()];if(!b)throw TypeError("invalid suite type");if("string"==typeof u&&(u=h.from(u)),"GCM"!==b.mode&&u.length!==b.iv)throw TypeError("invalid iv length "+u.length);if("string"==typeof c&&(c=h.from(c)),c.length!==b.key/8)throw TypeError("invalid key length "+c.length);return"stream"===b.type?new p(b.module,c,u,!0):"auth"===b.type?new d(b.module,c,u,!0):new g(b.module,c,u)}u(1638)(g,b),g.prototype._update=function(f){this._cache.add(f);for(var c,u,d=[];c=this._cache.get(this._autopadding);)u=this._mode.decrypt(this,c),d.push(u);return h.concat(d)},g.prototype._final=function(){var f=this._cache.flush();if(this._autopadding)return _(this._mode.decrypt(this,f));if(f)throw Error("data not multiple of block length")},g.prototype.setAutoPadding=function(f){return this._autopadding=!!f,this}
1,v.prototype.add=function(f){this.cache=h.concat([this.cache,f])},v.prototype.get=function(f){var c;if(f){if(this.cache.length>16)return c=this.cache.slice(0,16),this.cache=this.cache.slice(16),c}else if(this.cache.length>=16)return c=this.cache.slice(0,16),this.cache=this.cache.slice(16),c;return null},v.prototype.flush=function(){if(this.cache.length)return this.cache},c.createDecipher=function(f,c){var u=l[f.toLowerCase()];if(!u)throw TypeError("invalid suite type");var d=m(c,!1,u.key,u.iv);return w(f,d.key,d.iv)},c.createDecipheriv=w},9780:function(f,c,u){var d=u(8597),h=u(1725),l=u(5725).Buffer,p=u(959),b=u(1888),y=u(6313),m=u(689);function g(f,c,u){b.call(this),this._cache=new _,this._cipher=new y.AES(c),this._prev=l.from(u),this._mode=f,this._autopadding=!0}u(1638)(g,b),g.prototype._update=function(f){this._cache.add(f);for(var c,u,d=[];c=this._cache.get();)u=this._mode.encrypt(this,c),d.push(u);return l.concat(d)};var v=l.alloc(16,16);function _(){this.cache=l.allocUnsafe(0)}function w(f,c,u){var b=d[f.toLowerCase()];if(!b)throw TypeError("invalid suite type");if("string"==typeof c&&(c=l.from(c)),c.length!==b.key/8)throw TypeError("invalid key length "+c.length);if("string"==typeof u&&(u=l.from(u)),"GCM"!==b.mode&&u.length!==b.iv)throw TypeError("invalid iv length "+u.length);return"stream"===b.type?new p(b.module,c,u):"auth"===b.type?new h(b.module,c,u):new g(b.module,c,u)}function x(f,c){var u=d[f.toLowerCase()];if(!u)throw TypeError("invalid suite type");var h=m(c,!1,u.key,u.iv);return w(f,h.key,h.iv)}g.prototype._final=function(){var f=this._cache.flush();if(this._autopadding)return f=this._mode.encrypt(this,f),this._cipher.scrub(),f;if(!f.equals(v))throw this._cipher.scrub(),Error("data not multiple of block length")},g.prototype.setAutoPadding=function(f){return this._autopadding=!!f,this},_.prototype.add=function(f){this.cache=l.concat([this.cache,f])},_.prototype.get=function(){if(this.cache.length>15){var f=this.cache.slice(0,16);return this.cache=this.cache.slice(16),f}return null},_.prototype.flush=function(){for(var f=16-this.cache.length,c=l.allocUnsafe(f),u=-1;++u<f;)c.writeUInt8(f,u);return l.concat([this.cache,c])},c.createCipheriv=w,c.createCipher=x},1267:function(f,c,u){var d=u(5725).Buffer,h=d.alloc(16,0);function l(f){return[f.readUInt32BE(0),f.readUInt32BE(4),f.readUInt32BE(8),f.readUInt32BE(12)]}function p(f){var c=d.allocUnsafe(16);return c.writeUInt32BE(f[0]>>>0,0),c.writeUInt32BE(f[1]>>>0,4),c.writeUInt32BE(f[2]>>>0,8),c.writeUInt32BE(f[3]>>>0,12),c}function b(f){this.h=f,this.state=d.alloc(16,0),this.cache=d.allocUnsafe(0)}b.prototype.ghash=function(f){for(var c=-1;++c<f.length;)this.state[c]^=f[c];this._multiply()},b.prototype._multiply=function(){for(var f,c,u=l(this.h),d=[0,0,0,0],h=-1;++h<128;){for((this.state[~~(h/8)]&1<<7-h%8)!=0&&(d[0]^=u[0],d[1]^=u[1],d[2]^=u[2],d[3]^=u[3]),c=(1&u[3])!=0,f=3;f>0;f--)u[f]=u[f]>>>1|(1&u[f-1])<<31;u[0]=u[0]>>>1,c&&(u[0]=-0x1f000000^u[0])}this.state=p(d)},b.prototype.update=function(f){var c;for(this.cache=d.concat([this.cache,f]);this.cache.length>=16;)c=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(c)},b.prototype.final=function(f,c){return this.cache.length&&this.ghash(d.concat([this.cache,h],16)),this.ghash(p([0,f,0,c])),this.state},f.exports=b},1995:function(f){f.exports=function(f){for(var c,u=f.length;u--;)if(255===(c=f.readUInt8(u)))f.writeUInt8(0,u);else{c++,f.writeUInt8(c,u);break}}},1635:function(f,c,u){var d=u(6481);c.encrypt=function(f,c){var u=d(c,f._prev);return f._prev=f._cipher.encryptBlock(u),f._prev},c.decrypt=function(f,c){var u=f._prev;return f._prev=c,d(f._cipher.decryptBlock(c),u)}},4312:function(f,c,u){var d=u(5725).Buffer,h=u(6481);function l(f,c,u){var l=c.length,p=h(c,f._cache);return f._cache=f._cache.slice(l),f._prev=d.concat([f._prev,u?c:p]),p}c.encrypt=function(f,c,u){for(var h,p=d.allocUnsafe(0);c.length;)if(0===f._cache.length&&(f._cache=f._cipher.encryptBlock(f._prev),f._prev=d.allocUnsafe(0)),f._cache.length<=c.length)h=f._cache.length,p=d.concat([p,l(f,c.slice(0,h),u)]),c=c.slice(h);else{p=d.concat([p,l(f,c,u)]);break}return p}},9225:function(f,c,u){var d=u(5725).Buffer;function h(f,c,u){for(var d,h,p,b=-1,y=8,m=0;++b<y;)d=f._cipher.encryptBlock(f._prev),h=c&1<<7-b?128:0,m+=(128&(p=d[0]^h))>>b%8,f._prev=l(f._prev,u?h:p);return m}function l(f,c){var u=f.length,h=-1,l=d.allocUnsafe(f.length);for(f=d.concat([f,d.from([c])]);++h<u;)l[h]=f[h]<<1|f[h+1]>>7;return l}c.encrypt=function(f,c,u){for(var l=c.length,p=d.allocUnsafe(l),b=-1;++b<l;)p[b]=h(f,c[b],u);return p}},610:function(f,c,u){var d=u(5725).Buffer;function h(f,c,u){var h=f._cipher.encryptBlock(f._prev)[0]^c;return f._prev=d.concat([f._prev.slice(1),d.from([u?c:h])]),h}c.encrypt=function(f,c,u){for(var l=c.length,p=d.allocUnsafe(l),b=-1;++b<l;)p[b]=h(f,c[b],u);return p}},8714:function(f,c,u){var d=u(6481),h=u(5725).Buffer,l=u(1995);function p(f){var c=f._cipher.encryptBlockRaw(f._prev);return l(f._prev),c}var b=16;c.encrypt=function(f,c){var u=Math.ceil(c.length/b),l=f._cache.length;
1f._cache=h.concat([f._cache,h.allocUnsafe(u*b)]);for(var y=0;y<u;y++){var m=p(f),g=l+y*b;f._cache.writeUInt32BE(m[0],g+0),f._cache.writeUInt32BE(m[1],g+4),f._cache.writeUInt32BE(m[2],g+8),f._cache.writeUInt32BE(m[3],g+12)}var v=f._cache.slice(0,c.length);return f._cache=f._cache.slice(c.length),d(c,v)}},6083:function(f,c){c.encrypt=function(f,c){return f._cipher.encryptBlock(c)},c.decrypt=function(f,c){return f._cipher.decryptBlock(c)}},8597:function(f,c,u){var d={ECB:u(6083),CBC:u(1635),CFB:u(4312),CFB8:u(610),CFB1:u(9225),OFB:u(4076),CTR:u(8714),GCM:u(8714)},h=u(3349);for(var l in h)h[l].module=d[h[l].mode];f.exports=h},4076:function(f,c,u){var h=u(6481);function l(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}c.encrypt=function(f,c){for(;f._cache.length<c.length;)f._cache=d.Buffer.concat([f._cache,l(f)]);var u=f._cache.slice(0,c.length);return f._cache=f._cache.slice(c.length),h(c,u)}},959:function(f,c,u){var d=u(6313),h=u(5725).Buffer,l=u(1888);function p(f,c,u,p){l.call(this),this._cipher=new d.AES(c),this._prev=h.from(u),this._cache=h.allocUnsafe(0),this._secCache=h.allocUnsafe(0),this._decrypt=p,this._mode=f}u(1638)(p,l),p.prototype._update=function(f){return this._mode.encrypt(this,f,this._decrypt)},p.prototype._final=function(){this._cipher.scrub()},f.exports=p},9131:function(f,c,u){var d=u(1862),h=u(8642),l=u(8597),p=u(1730),b=u(689);function y(f,c){if(l[f=f.toLowerCase()])u=l[f].key,d=l[f].iv;else if(p[f])u=8*p[f].key,d=p[f].iv;else throw TypeError("invalid suite type");var u,d,h=b(c,!1,u,d);return g(f,h.key,h.iv)}function m(f,c,u){if(l[f=f.toLowerCase()])return h.createCipheriv(f,c,u);if(p[f])return new d({key:c,iv:u,mode:f});throw TypeError("invalid suite type")}function g(f,c,u){if(l[f=f.toLowerCase()])return h.createDecipheriv(f,c,u);if(p[f])return new d({key:c,iv:u,mode:f,decrypt:!0});throw TypeError("invalid suite type")}function v(){return Object.keys(p).concat(h.getCiphers())}c.createCipher=c.Cipher=function(f,c){if(l[f=f.toLowerCase()])u=l[f].key,d=l[f].iv;else if(p[f])u=8*p[f].key,d=p[f].iv;else throw TypeError("invalid suite type");var u,d,h=b(c,!1,u,d);return m(f,h.key,h.iv)},c.createCipheriv=c.Cipheriv=m,c.createDecipher=c.Decipher=y,c.createDecipheriv=c.Decipheriv=g,c.listCiphers=c.getCiphers=v},1862:function(f,c,u){var d=u(1888),h=u(55),l=u(1638),p=u(5725).Buffer,b={"des-ede3-cbc":h.CBC.instantiate(h.EDE),"des-ede3":h.EDE,"des-ede-cbc":h.CBC.instantiate(h.EDE),"des-ede":h.EDE,"des-cbc":h.CBC.instantiate(h.DES),"des-ecb":h.DES};function y(f){d.call(this);var c,u=f.mode.toLowerCase(),h=b[u];c=f.decrypt?"decrypt":"encrypt";var l=f.key;p.isBuffer(l)||(l=p.from(l)),("des-ede"===u||"des-ede-cbc"===u)&&(l=p.concat([l,l.slice(0,8)]));var y=f.iv;p.isBuffer(y)||(y=p.from(y)),this._des=h.create({key:l,iv:y,type:c})}b.des=b["des-cbc"],b.des3=b["des-ede3-cbc"],f.exports=y,l(y,d),y.prototype._update=function(f){return p.from(this._des.update(f))},y.prototype._final=function(){return p.from(this._des.final())}},1730:function(f,c){c["des-ecb"]={key:8,iv:0},c["des-cbc"]=c.des={key:8,iv:8},c["des-ede3-cbc"]=c.des3={key:24,iv:8},c["des-ede3"]={key:24,iv:0},c["des-ede-cbc"]={key:16,iv:8},c["des-ede"]={key:16,iv:0}},640:function(f,c,u){var h=u(5944),l=u(376);function p(f){var c=y(f);return{blinder:c.toRed(h.mont(f.modulus)).redPow(new h(f.publicExponent)).fromRed(),unblinder:c.invm(f.modulus)}}function b(f,c){var u=p(c),l=c.modulus.byteLength();h.mont(c.modulus);var b=new h(f).mul(u.blinder).umod(c.modulus),y=b.toRed(h.mont(c.prime1)),m=b.toRed(h.mont(c.prime2)),g=c.coefficient,v=c.prime1,_=c.prime2,w=y.redPow(c.exponent1),x=m.redPow(c.exponent2);w=w.fromRed(),x=x.fromRed();var S=w.isub(x).imul(g).umod(v);return S.imul(_),x.iadd(S),new d.Buffer(x.imul(u.unblinder).umod(c.modulus).toArray(!1,l))}function y(f){for(var c=f.modulus.byteLength(),u=new h(l(c));u.cmp(f.modulus)>=0||!u.umod(f.prime1)||!u.umod(f.prime2);)u=new h(l(c));return u}f.exports=b,b.getr=y},6713:function(f,c,u){f.exports=u(3678)},2926:function(f,c,u){var d=u(5725).Buffer,h=u(762),l=u(5486),p=u(1638),b=u(261),y=u(1541),m=u(3678);function g(f){l.Writable.call(this);var c=m[f];if(!c)throw Error("Unknown message digest");this._hashType=c.hash,this._hash=h(c.hash),this._tag=c.id,this._signType=c.sign}function v(f){l.Writable.call(this);var c=m[f];if(!c)throw Error("Unknown message digest");this._hash=h(c.hash),this._tag=c.id,this._signType=c.sign}function _(f){return new g(f)}function w(f){return new v(f)}Object.keys(m).forEach(function(f){m[f].id=d.from(m[f].id,"hex"),m[f.toLowerCase()]=m[f]}),p(g,l.Writable),g.prototype._write=function(f,c,u){this._hash.update(f),u()},g.prototype.update=function(f,c){return"string"==typeof f&&(f=d.from(f,c)),this._hash.update(f),this},g.prototype.sign=function(f,c){this.end();var u=b(this._hash.digest(),f,this._hashType,this._signType,this._tag);return c?u.toString(c):u},p(v,l.Writable),v.prototype._write=function(f,c,u){this._hash.update(f),u()},v.prototype.update=function(f,c){return"string"==typeof f&&(f=d.from(f,c)),this._hash.update(f),this},v.prototype.verify=function(f,c,u){return"string"==typeof c&&(c=d.from(c,u)),this.end(),y(c,this._hash.digest(),f,this._signType,this._tag)},f.exports={Sign:_,Verify:w,createSign:_,createVerify:w}},261:function(f,c,u){var d=u(5725).Buffer,h=u(3256),l=u(640),p=u(2049).ec,b=u(1315),y=u(8012),m=u(6456);function g(f,c){var u=m[c.curve.join(".")];if(!u)throw Error("unknown curve "+c.curve.join("."));var h=new p(u).keyFromPrivate(c.privateKey).sign(f);return d.from(h.toDER())}function v(f,c,u){for(var d,h=c.params.priv_key,l=c.params.p,p=c.params.q,y=c.params.g,m=ne
1w b(0),g=x(f,p).mod(p),v=!1,S=w(h,p,f,u);!1===v;)m=M(y,d=E(p,S,u),l,p),0===(v=d.invm(p).imul(g.add(h.mul(m))).mod(p)).cmpn(0)&&(v=!1,m=new b(0));return _(m,v)}function _(f,c){f=f.toArray(),c=c.toArray(),128&f[0]&&(f=[0].concat(f)),128&c[0]&&(c=[0].concat(c));var u=[48,f.length+c.length+4,2,f.length];return u=u.concat(f,[2,c.length],c),d.from(u)}function w(f,c,u,l){if((f=d.from(f.toArray())).length<c.byteLength()){var p=d.alloc(c.byteLength()-f.length);f=d.concat([p,f])}var b=u.length,y=S(u,c),m=d.alloc(b);m.fill(1);var g=d.alloc(b);return g=h(l,g).update(m).update(d.from([0])).update(f).update(y).digest(),m=h(l,g).update(m).digest(),g=h(l,g).update(m).update(d.from([1])).update(f).update(y).digest(),m=h(l,g).update(m).digest(),{k:g,v:m}}function x(f,c){var u=new b(f),d=(f.length<<3)-c.bitLength();return d>0&&u.ishrn(d),u}function S(f,c){f=(f=x(f,c)).mod(c);var u=d.from(f.toArray());if(u.length<c.byteLength()){var h=d.alloc(c.byteLength()-u.length);u=d.concat([h,u])}return u}function E(f,c,u){var l,p;do{for(l=d.alloc(0);8*l.length<f.bitLength();)c.v=h(u,c.k).update(c.v).digest(),l=d.concat([l,c.v]);p=x(l,f),c.k=h(u,c.k).update(c.v).update(d.from([0])).digest(),c.v=h(u,c.k).update(c.v).digest()}while(-1!==p.cmp(f))return p}function M(f,c,u,d){return f.toRed(b.mont(u)).redPow(c).fromRed().mod(d)}f.exports=function(f,c,u,h,p){var b=y(c);if(b.curve){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw Error("wrong private key type");return g(f,b)}if("dsa"===b.type){if("dsa"!==h)throw Error("wrong private key type");return v(f,b,u)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw Error("wrong private key type");f=d.concat([p,f]);for(var m=b.modulus.byteLength(),_=[0,1];f.length+_.length+1<m;)_.push(255);_.push(0);for(var w=-1;++w<f.length;)_.push(f[w]);return l(_,b)},f.exports.getKey=w,f.exports.makeKey=E},1541:function(f,c,u){var d=u(5725).Buffer,h=u(1315),l=u(2049).ec,p=u(8012),b=u(6456);function y(f,c,u){var d=b[u.data.algorithm.curve.join(".")];if(!d)throw Error("unknown curve "+u.data.algorithm.curve.join("."));var h=new l(d),p=u.data.subjectPrivateKey.data;return h.verify(c,f,p)}function m(f,c,u){var d=u.data.p,l=u.data.q,b=u.data.g,y=u.data.pub_key,m=p.signature.decode(f,"der"),v=m.s,_=m.r;g(v,l),g(_,l);var w=h.mont(d),x=v.invm(l);return 0===b.toRed(w).redPow(new h(c).mul(x).mod(l)).fromRed().mul(y.toRed(w).redPow(_.mul(x).mod(l)).fromRed()).mod(d).mod(l).cmp(_)}function g(f,c){if(0>=f.cmpn(0)||f.cmp(c)>=c)throw Error("invalid sig")}f.exports=function(f,c,u,l,b){var g=p(u);if("ec"===g.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw Error("wrong public key type");return y(f,c,g)}if("dsa"===g.type){if("dsa"!==l)throw Error("wrong public key type");return m(f,c,g)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw Error("wrong public key type");c=d.concat([b,c]);for(var v=g.modulus.byteLength(),_=[1],w=0;c.length+_.length+2<v;)_.push(255),w++;_.push(0);for(var x=-1;++x<c.length;)_.push(c[x]);_=d.from(_);var S=h.mont(g.modulus);f=(f=new h(f).toRed(S)).redPow(new h(g.publicExponent));var E=+(w<8);for(v=Math.min((f=d.from(f.fromRed().toArray())).length,_.length),f.length!==_.length&&(E=1),x=-1;++x<v;)E|=f[x]^_[x];return 0===E}},6481:function(f){f.exports=function(f,c){for(var u=Math.min(f.length,c.length),h=new d.Buffer(u),l=0;l<u;++l)h[l]=f[l]^c[l];return h}},1888:function(f,c,u){var d=u(5725).Buffer,h=u(2203).Transform,l=u(3193).StringDecoder;function p(f){h.call(this),this.hashMode="string"==typeof f,this.hashMode?this[f]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}u(1638)(p,h),p.prototype.update=function(f,c,u){"string"==typeof f&&(f=d.from(f,c));var h=this._update(f);return this.hashMode?this:(u&&(h=this._toString(h,u)),h)},p.prototype.setAutoPadding=function(){},p.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},p.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},p.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},p.prototype._transform=function(f,c,u){var d;try{this.hashMode?this._update(f):this.push(this._update(f))}catch(f){d=f}finally{u(d)}},p.prototype._flush=function(f){var c;try{this.push(this.__final())}catch(f){c=f}f(c)},p.prototype._finalOrDigest=function(f){var c=this.__final()||d.alloc(0);return f&&(c=this._toString(c,f,!0)),c},p.prototype._toString=function(f,c,u){if(this._decoder||(this._decoder=new l(c),this._encoding=c),this._encoding!==c)throw Error("can't switch encodings");var d=this._decoder.write(f);return u&&(d+=this._decoder.end()),d},f.exports=p},8814:function(f,c,u){var h=u(2049),l=u(5944);f.exports=function(f){return new b(f)};var p={secp256k1:{name:"secp256k1",byteLength:32}
vendor: 6,428 bytes, line 1
1,secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function b(f){this.curveType=p[f],this.curveType||(this.curveType={name:f}),this.curve=new h.ec(this.curveType.name),this.keys=void 0}function y(f,c,u){Array.isArray(f)||(f=f.toArray());var h=new d.Buffer(f);if(u&&h.length<u){var l=new d.Buffer(u-h.length);l.fill(0),h=d.Buffer.concat([l,h])}return c?h.toString(c):h}p.p224=p.secp224r1,p.p256=p.secp256r1=p.prime256v1,p.p192=p.secp192r1=p.prime192v1,p.p384=p.secp384r1,p.p521=p.secp521r1,b.prototype.generateKeys=function(f,c){return this.keys=this.curve.genKeyPair(),this.getPublicKey(f,c)},b.prototype.computeSecret=function(f,c,u){return c=c||"utf8",d.Buffer.isBuffer(f)||(f=new d.Buffer(f,c)),y(this.curve.keyFromPublic(f).getPublic().mul(this.keys.getPrivate()).getX(),u,this.curveType.byteLength)},b.prototype.getPublicKey=function(f,c){var u=this.keys.getPublic("compressed"===c,!0);return"hybrid"===c&&(u[u.length-1]%2?u[0]=7:u[0]=6),y(u,f)},b.prototype.getPrivateKey=function(f){return y(this.keys.getPrivate(),f)},b.prototype.setPublicKey=function(f,c){return c=c||"utf8",d.Buffer.isBuffer(f)||(f=new d.Buffer(f,c)),this.keys._importPublic(f),this},b.prototype.setPrivateKey=function(f,c){c=c||"utf8",d.Buffer.isBuffer(f)||(f=new d.Buffer(f,c));var u=new l(f);return u=u.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(u),this}},762:function(f,c,u){"use strict";var d=u(1638),h=u(3858),l=u(8987),p=u(3251),b=u(1888);function y(f){b.call(this,"digest"),this._hash=f}d(y,b),y.prototype._update=function(f){this._hash.update(f)},y.prototype._final=function(){return this._hash.digest()},f.exports=function(f){return"md5"===(f=f.toLowerCase())?new h:"rmd160"===f||"ripemd160"===f?new l:new y(p(f))}},1334:function(f,c,u){var d=u(3858);f.exports=function(f){return(new d).update(f).digest()}},3256:function(f,c,u){"use strict";var d=u(1638),h=u(9189),l=u(1888),p=u(5725).Buffer,b=u(1334),y=u(8987),m=u(3251),g=p.alloc(128);function v(f,c){l.call(this,"digest"),"string"==typeof c&&(c=p.from(c));var u="sha512"===f||"sha384"===f?128:64;this._alg=f,this._key=c,c.length>u?c=("rmd160"===f?new y:m(f)).update(c).digest():c.length<u&&(c=p.concat([c,g],u));for(var d=this._ipad=p.allocUnsafe(u),h=this._opad=p.allocUnsafe(u),b=0;b<u;b++)d[b]=54^c[b],h[b]=92^c[b];this._hash="rmd160"===f?new y:m(f),this._hash.update(d)}d(v,l),v.prototype._update=function(f){this._hash.update(f)},v.prototype._final=function(){var f=this._hash.digest();return("rmd160"===this._alg?new y:m(this._alg)).update(this._opad).update(f).digest()},f.exports=function(f,c){return"rmd160"===(f=f.toLowerCase())||"ripemd160"===f?new v("rmd160",c):"md5"===f?new h(b,c):new v(f,c)}},9189:function(f,c,u){"use strict";var d=u(1638),h=u(5725).Buffer,l=u(1888),p=h.alloc(128),b=64;function y(f,c){l.call(this,"digest"),"string"==typeof c&&(c=h.from(c)),this._alg=f,this._key=c,c.length>b?c=f(c):c.length<b&&(c=h.concat([c,p],b));for(var u=this._ipad=h.allocUnsafe(b),d=this._opad=h.allocUnsafe(b),y=0;y<b;y++)u[y]=54^c[y],d[y]=92^c[y];this._hash=[u]}d(y,l),y.prototype._update=function(f){this._hash.push(f)},y.prototype._final=function(){var f=this._alg(h.concat(this._hash));return this._alg(h.concat([this._opad,f]))},f.exports=y},55:function(f,c,u){"use strict";c.utils=u(4569),c.Cipher=u(4309),c.DES=u(8992),c.CBC=u(42),c.EDE=u(4960)},42:function(f,c,u){"use strict";var d=u(7551),h=u(1638),l={};function p(f){d.equal(f.length,8,"Invalid IV length"),this.iv=Array(8);for(var c=0;c<this.iv.length;c++)this.iv[c]=f[c]}c.instantiate=function(f){function c(c){f.call(this,c),this._cbcInit()}h(c,f);for(var u=Object.keys(l),d=0;d<u.length;d++){var p=u[d];c.prototype[p]=l[p]}return c.create=function(f){return new c(f)},c},l._cbcInit=function(){var f=new p(this.options.iv);this._cbcState=f},l._update=function(f,c,u,d){var h=this._cbcState,l=this.constructor.super_.prototype,p=h.iv;if("encrypt"===this.type){for(var b=0;b<this.blockSize;b++)p[b]^=f[c+b];l._update.call(this,p,0,u,d);for(var b=0;b<this.blockSize;b++)p[b]=u[d+b]}else{l._update.call(this,f,c,u,d);for(var b=0;b<this.blockSize;b++)u[d+b]^=p[b];for(var b=0;b<this.blockSize;b++)p[b]=f[c+b]}}},4309:function(f,c,u){"use strict";var d=u(7551);function h(f){this.options=f,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}f.exports=h,h.prototype._init=function(){},h.prototype.update=function(f){return 0===f.length?[]:"decrypt"===this.type?this._updateDecrypt(f):this._updateEncrypt(f)},h.prototype._buffer=function(f,c){for(var u=Math.min(this.buffer.length-this.bufferOff,f.length-c),d=0;d<u;d++)this.buffer[this.bufferOff+d]=f[c+d];return this.bufferOff+=u,u},h.prototype._flushBuffer=function(f,c){return this._update(this.buffer,0,f,c),this.bufferOff=0,this.blockSize},h.prototype._updateEncrypt=function(f){var c=0,u=0,d=Array(((this.bufferOff+f.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(c+=this._buffer(f,c),this.bufferOff===this.buffer.length&&(u+=this._flushBuffer(d,u)));for(var h=f.length-(f.length-c)%this.blockSize;c<h;c+=this.blockSize)this._update(f,c,d,u),u+=this.blockSize;for(;c<f.length;c++,this.bufferOff++)this.buffer[this.bufferOff]=f[c];return d},h.prototype._updateDecrypt=function(f){for(var c=0,u=0,d=Math.ceil((this.bufferOff+f.length)/this.blockSize)-1,h=Array(d*this.blockSize);d>0;d--)c+=this._buffer(f,c),u+=this._flushBuffer(h,u);return c+=this._buffer(f,c),h},h.prototype.final=function(f){var c,u;return(f&&(c=this.update(f)),u="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),c)?c.concat(u):u},h.prototype._pad=function(f,c){if(0===c)return!1;for(;c<f.length;)f[c++]=0;return!0},h.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var f=Array(this.blockSize);return this._update(this.buffer,0,f,0),f},h.prototype._unpad=function(f){return f},h.prototype._finalDecrypt=function(){d.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var f=Array(this.blockSize);return this._flushBuffer(f,0),this._unpad(f)}},8992:function(f,c,u){"use strict";var d=u(7551),h=u(1638),l=u(4569),p=u(4309);function b(){this.tmp=[,,],this.keys=null}function y(f){p.call(this,f);var c=new b;this._desState=c,this.deriveKeys(c,f.key)}
1h(y,p),f.exports=y,y.create=function(f){return new y(f)};var m=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];y.prototype.deriveKeys=function(f,c){f.keys=Array(32),d.equal(c.length,this.blockSize,"Invalid key length");var u=l.readUInt32BE(c,0),h=l.readUInt32BE(c,4);l.pc1(u,h,f.tmp,0),u=f.tmp[0],h=f.tmp[1];for(var p=0;p<f.keys.length;p+=2){var b=m[p>>>1];u=l.r28shl(u,b),h=l.r28shl(h,b),l.pc2(u,h,f.keys,p)}},y.prototype._update=function(f,c,u,d){var h=this._desState,p=l.readUInt32BE(f,c),b=l.readUInt32BE(f,c+4);l.ip(p,b,h.tmp,0),p=h.tmp[0],b=h.tmp[1],"encrypt"===this.type?this._encrypt(h,p,b,h.tmp,0):this._decrypt(h,p,b,h.tmp,0),p=h.tmp[0],b=h.tmp[1],l.writeUInt32BE(u,p,d),l.writeUInt32BE(u,b,d+4)},y.prototype._pad=function(f,c){for(var u=f.length-c,d=c;d<f.length;d++)f[d]=u;return!0},y.prototype._unpad=function(f){for(var c=f[f.length-1],u=f.length-c;u<f.length;u++)d.equal(f[u],c);return f.slice(0,f.length-c)},y.prototype._encrypt=function(f,c,u,d,h){for(var p=c,b=u,y=0;y<f.keys.length;y+=2){var m=f.keys[y],g=f.keys[y+1];l.expand(b,f.tmp,0),m^=f.tmp[0],g^=f.tmp[1];var v=l.substitute(m,g),_=l.permute(v),w=b;b=(p^_)>>>0,p=w}l.rip(b,p,d,h)},y.prototype._decrypt=function(f,c,u,d,h){for(var p=u,b=c,y=f.keys.length-2;y>=0;y-=2){var m=f.keys[y],g=f.keys[y+1];l.expand(p,f.tmp,0),m^=f.tmp[0],g^=f.tmp[1];var v=l.substitute(m,g),_=l.permute(v),w=p;p=(b^_)>>>0,b=w}l.rip(p,b,d,h)}},4960:function(f,c,u){"use strict";var d=u(7551),h=u(1638),l=u(4309),p=u(8992);function b(f,c){d.equal(c.length,24,"Invalid key length");var u=c.slice(0,8),h=c.slice(8,16),l=c.slice(16,24);"encrypt"===f?this.ciphers=[p.create({type:"encrypt",key:u}),p.create({type:"decrypt",key:h}),p.create({type:"encrypt",key:l})]:this.ciphers=[p.create({type:"decrypt",key:l}),p.create({type:"encrypt",key:h}),p.create({type:"decrypt",key:u})]}function y(f){l.call(this,f);var c=new b(this.type,this.options.key);this._edeState=c}h(y,l),f.exports=y,y.create=function(f){return new y(f)},y.prototype._update=function(f,c,u,d){var h=this._edeState;h.ciphers[0]._update(f,c,u,d),h.ciphers[1]._update(u,d,u,d),h.ciphers[2]._update(u,d,u,d)},y.prototype._pad=p.prototype._pad,y.prototype._unpad=p.prototype._unpad},4569:function(f,c){"use strict";c.readUInt32BE=function(f,c){return(f[0+c]<<24|f[1+c]<<16|f[2+c]<<8|f[3+c])>>>0},c.writeUInt32BE=function(f,c,u){f[0+u]=c>>>24,f[1+u]=c>>>16&255,f[2+u]=c>>>8&255,f[3+u]=255&c},c.ip=function(f,c,u,d){for(var h=0,l=0,p=6;p>=0;p-=2){for(var b=0;b<=24;b+=8)h<<=1,h|=c>>>b+p&1;for(var b=0;b<=24;b+=8)h<<=1,h|=f>>>b+p&1}for(var p=6;p>=0;p-=2){for(var b=1;b<=25;b+=8)l<<=1,l|=c>>>b+p&1;for(var b=1;b<=25;b+=8)l<<=1,l|=f>>>b+p&1}u[d+0]=h>>>0,u[d+1]=l>>>0},c.rip=function(f,c,u,d){for(var h=0,l=0,p=0;p<4;p++)for(var b=24;b>=0;b-=8)h<<=1,h|=c>>>b+p&1,h<<=1,h|=f>>>b+p&1;for(var p=4;p<8;p++)for(var b=24;b>=0;b-=8)l<<=1,l|=c>>>b+p&1,l<<=1,l|=f>>>b+p&1;u[d+0]=h>>>0,u[d+1]=l>>>0},c.pc1=function(f,c,u,d){for(var h=0,l=0,p=7;p>=5;p--){for(var b=0;b<=24;b+=8)h<<=1,h|=c>>b+p&1;for(var b=0;b<=24;b+=8)h<<=1,h|=f>>b+p&1}for(var b=0;b<=24;b+=8)h<<=1,h|=c>>b+p&1;for(var p=1;p<=3;p++){for(var b=0;b<=24;b+=8)l<<=1,l|=c>>b+p&1;for(var b=0;b<=24;b+=8)l<<=1,l|=f>>b+p&1}for(var b=0;b<=24;b+=8)l<<=1,l|=f>>b+p&1;u[d+0]=h>>>0,u[d+1]=l>>>0},c.r28shl=function(f,c){return f<<c&0xfffffff|f>>>28-c};var u=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];c.pc2=function(f,c,d,h){for(var l=0,p=0,b=u.length>>>1,y=0;y<b;y++)l<<=1,l|=f>>>u[y]&1;for(var y=b;y<u.length;y++)p<<=1,p|=c>>>u[y]&1;d[h+0]=l>>>0,d[h+1]=p>>>0},c.expand=function(f,c,u){var d=0,h=0;d=(1&f)<<5|f>>>27;for(var l=23;l>=15;l-=4)d<<=6,d|=f>>>l&63;for(var l=11;l>=3;l-=4)h|=f>>>l&63,h<<=6;h|=(31&f)<<1|f>>>31,c[u+0]=d>>>0,c[u+1]=h>>>0};var d=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];c.substitute=function(f,c){for(var u=0,h=0;h<4;h++){var l=f>>>18-6*h&63,p=d[64*h+l];u<<=4,u|=p}for(var h=0;h<4;h++){var l=c>>>18-6*h&63,p=d[256+64*h+l];u<<=4,u|=p}return u>>>0};var h=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];c.permute=function(f){for(var c=0,u=0;u<h.length;u++)c<<=1,c|=f>>>h[u]&1;return c>>>0},c.padSplit=function(f,c,u){for(var d=f.toString(2);d.length<c;)d="0"+d;for(var h=[],l=0;l<c;l+=u)h.push(d.slice(l,l+u));return h.join(" ")}},857:function(f,c,u){var h=u(3895),l=u(7821),p=u(2913),b={binary:!0,hex:!0,base64:!0};function y(f,c,u,l){return d.Buffer.isBuffer(c)||void 0===b[c]?y(f,"binary",c,u):(c=c||"binary",l=l||"binary",u=u||new d.Buffer([2]),d.Buffer.isBuffer(u)||(u=new d.Buffer(u,l)),"number"==typeof f)?new p(h(f,u),u,!0):(d.Buffer.isBuffer(f)||(f=new d.Buffer(f,c)),new p(f,u,!0))}c.DiffieHellmanGroup=c.createDiffieHellmanGroup=c.getDiffieHellman=function(f){return new p(new d.Buffer(l[f].prime,"hex"),new d.Buffer(l[f].gen,"hex"))},c.createDiffieHellman=c.DiffieHellman=y},2913:function(f,c,u){var h=u(5944),l=new(u(6821)),p=new h(24),b=new h(11),y=new h(10),m=new h(3),g=new h(7),v=u(3895),_=u(376);function w(f,c){return c=c||"utf8",d.Buffer.isBuffer(f)||(f=new d.Buffer(f,c)),this._pub=new h(f),this}function x(f,c){return c=c||"utf8",d.Buffer.isBuffer(f)||(f=new d.Buffer(f,c)),this._priv=new h(f),this}f.exports=M;var S={};function E(f,c){var u,d=c.toString("hex"),h=[d,f.toString(16)].join("_");if(h in S)return S[h];var _=0;if(f.isEven()||!v.simpleSieve||!v.fermatTest(f)||!l.test(f))return _+=1,"02"===d||"05"===d?_+=8:_+=4,S[h]=_,_;switch(!l.test(f.shrn(1))&&(_+=2),d){case"02":f.mod(p).cmp(b)&&(_+=8);break;case"05":(u=f.mod(y)).cmp(m)&&u.cmp(g)&&(_+=8);break;default:_+=4}return S[h]=_,_}function M(f,c,u){this.setGenerator(c),this.__prime=new h(f),this._prime=h.mont(this.__prime),this._primeLen=f.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,u?(this.setPublicKey=w,this.setPrivateKey=x):this._primeCode=8}function A(f,c){var u=new d.Buffer(f.toArray());return c?u.toString(c):u}Object.defineProperty(M.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=E(this.__prime,this.__gen)),this._primeCode}}),M.prototype.generateKeys=function(){return this._priv||(this._priv=new h(_(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},M.prototype.computeSecret=function(f){var c=(f=(f=new h(f)).toRed(this._prime)).redPow(this._priv).fromRed(),u=new d.Buffer(c.toArray()),l=this.getPrime();if(u.length<l.length){var p=new d.Buffer(l.length-u.length);p.fill(0),u=d.Buffer.concat([p,u])}return u},M.prototype.getPublicKey=function(f){return A(this._pub,f)},M.prototype.getPrivateKey=function(f){return A(this._priv,f)},M.prototype.getPrime=function(f){return A(this.__prime,f)},M.prototype.getGenerator=function(f){return A(this._gen,f)},M.prototype.setGenerator=function(f,c){return c=c||"utf8",d.Buffer.isBuffer(f)||(f=new d.Buffer(f,c)),this.__gen=f,this._gen=new h(f),this}},3895:function(f,c,u){var d=u(376);f.exports=A,A.simpleSieve=E,A.fermatTest=M;var h=u(5944),l=new h(24),p=new(u(6821)),b=new h(1),y=new h(2),m=new h(5);new h(16),new h(8);var g=new h(10),v=new h(3);new h(7);var _=new h(11),w=new h(4);new h(12);var x=null;function S(){if(null!==x)return x;var f=1048576,c=[];c[0]=2;
1for(var u=1,d=3;d<f;d+=2){for(var h=Math.ceil(Math.sqrt(d)),l=0;l<u&&c[l]<=h&&d%c[l]!=0;l++);u!==l&&c[l]<=h||(c[u++]=d)}return x=c,c}function E(f){for(var c=S(),u=0;u<c.length;u++)if(0===f.modn(c[u]))if(0!==f.cmpn(c[u]))return!1;else break;return!0}function M(f){var c=h.mont(f);return 0===y.toRed(c).redPow(f.subn(1)).fromRed().cmpn(1)}function A(f,c){var u,x;if(f<16)if(2===c||5===c)return new h([140,123]);else return new h([140,39]);for(c=new h(c);;){for(u=new h(d(Math.ceil(f/8)));u.bitLength()>f;)u.ishrn(1);if(u.isEven()&&u.iadd(b),u.testn(1)||u.iadd(y),c.cmp(y)){if(!c.cmp(m))for(;u.mod(g).cmp(v);)u.iadd(w)}else for(;u.mod(l).cmp(_);)u.iadd(w);if(E(x=u.shrn(1))&&E(u)&&M(x)&&M(u)&&p.test(x)&&p.test(u))return u}}},2049:function(f,c,u){"use strict";var d=c;d.version=u(4497).rE,d.utils=u(3355),d.rand=u(4259),d.curve=u(7942),d.curves=u(7736),d.ec=u(1039),d.eddsa=u(4226)},4285:function(f,c,u){"use strict";var d=u(5944),h=u(3355),l=h.getNAF,p=h.getJSF,b=h.assert;function y(f,c){this.type=f,this.p=new d(c.p,16),this.red=c.prime?d.red(c.prime):d.mont(this.p),this.zero=new d(0).toRed(this.red),this.one=new d(1).toRed(this.red),this.two=new d(2).toRed(this.red),this.n=c.n&&new d(c.n,16),this.g=c.g&&this.pointFromJSON(c.g,c.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var u=this.n&&this.p.div(this.n);!u||u.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function m(f,c){this.curve=f,this.type=c,this.precomputed=null}f.exports=y,y.prototype.point=function(){throw Error("Not implemented")},y.prototype.validate=function(){throw Error("Not implemented")},y.prototype._fixedNafMul=function(f,c){b(f.precomputed);var u=f._getDoubles(),d=l(c,1,this._bitLength),h=(1<<u.step+1)-(u.step%2==0?2:1);h/=3;for(var p=[],y=0;y<d.length;y+=u.step){for(var m=0,c=y+u.step-1;c>=y;c--)m=(m<<1)+d[c];p.push(m)}for(var g=this.jpoint(null,null,null),v=this.jpoint(null,null,null),_=h;_>0;_--){for(var y=0;y<p.length;y++){var m=p[y];m===_?v=v.mixedAdd(u.points[y]):m===-_&&(v=v.mixedAdd(u.points[y].neg()))}g=g.add(v)}return g.toP()},y.prototype._wnafMul=function(f,c){var u=4,d=f._getNAFPoints(u);u=d.wnd;for(var h=d.points,p=l(c,u,this._bitLength),y=this.jpoint(null,null,null),m=p.length-1;m>=0;m--){for(var c=0;m>=0&&0===p[m];m--)c++;if(m>=0&&c++,y=y.dblp(c),m<0)break;var g=p[m];b(0!==g),y="affine"===f.type?g>0?y.mixedAdd(h[g-1>>1]):y.mixedAdd(h[-g-1>>1].neg()):g>0?y.add(h[g-1>>1]):y.add(h[-g-1>>1].neg())}return"affine"===f.type?y.toP():y},y.prototype._wnafMulAdd=function(f,c,u,d,h){for(var b=this._wnafT1,y=this._wnafT2,m=this._wnafT3,g=0,v=0;v<d;v++){var _=c[v],w=_._getNAFPoints(f);b[v]=w.wnd,y[v]=w.points}for(var v=d-1;v>=1;v-=2){var x=v-1,S=v;if(1!==b[x]||1!==b[S]){m[x]=l(u[x],b[x],this._bitLength),m[S]=l(u[S],b[S],this._bitLength),g=Math.max(m[x].length,g),g=Math.max(m[S].length,g);continue}var E=[c[x],null,null,c[S]];0===c[x].y.cmp(c[S].y)?(E[1]=c[x].add(c[S]),E[2]=c[x].toJ().mixedAdd(c[S].neg())):0===c[x].y.cmp(c[S].y.redNeg())?(E[1]=c[x].toJ().mixedAdd(c[S]),E[2]=c[x].add(c[S].neg())):(E[1]=c[x].toJ().mixedAdd(c[S]),E[2]=c[x].toJ().mixedAdd(c[S].neg()));var M=[-3,-1,-5,-7,0,7,5,1,3],A=p(u[x],u[S]);g=Math.max(A[0].length,g),m[x]=Array(g),m[S]=Array(g);for(var R=0;R<g;R++){var k=0|A[0][R],P=0|A[1][R];m[x][R]=M[(k+1)*3+(P+1)],m[S][R]=0,y[x]=E}}for(var I=this.jpoint(null,null,null),O=this._wnafT4,v=g;v>=0;v--){for(var T=0;v>=0;){for(var N=!0,R=0;R<d;R++)O[R]=0|m[R][v],0!==O[R]&&(N=!1);if(!N)break;T++,v--}if(v>=0&&T++,I=I.dblp(T),v<0)break;for(var R=0;R<d;R++){var _,C=O[R];0!==C&&(C>0?_=y[R][C-1>>1]:C<0&&(_=y[R][-C-1>>1].neg()),I="affine"===_.type?I.mixedAdd(_):I.add(_))}}for(var v=0;v<d;v++)y[v]=null;return h?I:I.toP()},y.BasePoint=m,m.prototype.eq=function(){throw Error("Not implemented")},m.prototype.validate=function(){return this.curve.validate(this)},y.prototype.decodePoint=function(f,c){f=h.toArray(f,c);var u=this.p.byteLength();if((4===f[0]||6===f[0]||7===f[0])&&f.length-1==2*u)return 6===f[0]?b(f[f.length-1]%2==0):7===f[0]&&b(f[f.length-1]%2==1),this.point(f.
vendor: 13,996 bytes, line 1
1slice(1,1+u),f.slice(1+u,1+2*u));if((2===f[0]||3===f[0])&&f.length-1===u)return this.pointFromX(f.slice(1,1+u),3===f[0]);throw Error("Unknown point format")},m.prototype.encodeCompressed=function(f){return this.encode(f,!0)},m.prototype._encode=function(f){var c=this.curve.p.byteLength(),u=this.getX().toArray("be",c);return f?[this.getY().isEven()?2:3].concat(u):[4].concat(u,this.getY().toArray("be",c))},m.prototype.encode=function(f,c){return h.encode(this._encode(c),f)},m.prototype.precompute=function(f){if(this.precomputed)return this;var c={doubles:null,naf:null,beta:null};return c.naf=this._getNAFPoints(8),c.doubles=this._getDoubles(4,f),c.beta=this._getBeta(),this.precomputed=c,this},m.prototype._hasDoubles=function(f){if(!this.precomputed)return!1;var c=this.precomputed.doubles;return!!c&&c.points.length>=Math.ceil((f.bitLength()+1)/c.step)},m.prototype._getDoubles=function(f,c){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var u=[this],d=this,h=0;h<c;h+=f){for(var l=0;l<f;l++)d=d.dbl();u.push(d)}return{step:f,points:u}},m.prototype._getNAFPoints=function(f){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var c=[this],u=(1<<f)-1,d=1===u?null:this.dbl(),h=1;h<u;h++)c[h]=c[h-1].add(d);return{wnd:f,points:c}},m.prototype._getBeta=function(){return null},m.prototype.dblp=function(f){for(var c=this,u=0;u<f;u++)c=c.dbl();return c}},3546:function(f,c,u){"use strict";var d=u(3355),h=u(5944),l=u(1638),p=u(4285),b=d.assert;function y(f){this.twisted=(0|f.a)!=1,this.mOneA=this.twisted&&(0|f.a)==-1,this.extended=this.mOneA,p.call(this,"edwards",f),this.a=new h(f.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new h(f.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new h(f.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),b(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|f.c)==1}function m(f,c,u,d,l){p.BasePoint.call(this,f,"projective"),null===c&&null===u&&null===d?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new h(c,16),this.y=new h(u,16),this.z=d?new h(d,16):this.curve.one,this.t=l&&new h(l,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}l(y,p),f.exports=y,y.prototype._mulA=function(f){return this.mOneA?f.redNeg():this.a.redMul(f)},y.prototype._mulC=function(f){return this.oneC?f:this.c.redMul(f)},y.prototype.jpoint=function(f,c,u,d){return this.point(f,c,u,d)},y.prototype.pointFromX=function(f,c){(f=new h(f,16)).red||(f=f.toRed(this.red));var u=f.redSqr(),d=this.c2.redSub(this.a.redMul(u)),l=this.one.redSub(this.c2.redMul(this.d).redMul(u)),p=d.redMul(l.redInvm()),b=p.redSqrt();if(0!==b.redSqr().redSub(p).cmp(this.zero))throw Error("invalid point");var y=b.fromRed().isOdd();return(c&&!y||!c&&y)&&(b=b.redNeg()),this.point(f,b)},y.prototype.pointFromY=function(f,c){(f=new h(f,16)).red||(f=f.toRed(this.red));var u=f.redSqr(),d=u.redSub(this.c2),l=u.redMul(this.d).redMul(this.c2).redSub(this.a),p=d.redMul(l.redInvm());if(0===p.cmp(this.zero))if(!c)return this.point(this.zero,f);else throw Error("invalid point");var b=p.redSqrt();if(0!==b.redSqr().redSub(p).cmp(this.zero))throw Error("invalid point");return b.fromRed().isOdd()!==c&&(b=b.redNeg()),this.point(b,f)},y.prototype.validate=function(f){if(f.isInfinity())return!0;f.normalize();var c=f.x.redSqr(),u=f.y.redSqr(),d=c.redMul(this.a).redAdd(u),h=this.c2.redMul(this.one.redAdd(this.d.redMul(c).redMul(u)));return 0===d.cmp(h)},l(m,p.BasePoint),y.prototype.pointFromJSON=function(f){return m.fromJSON(this,f)},y.prototype.point=function(f,c,u,d){return new m(this,f,c,u,d)},m.fromJSON=function(f,c){return new m(f,c[0],c[1],c[2])},m.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},m.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},m.prototype._extDbl=function(){var f=this.x.redSqr(),c=this.y.redSqr(),u=this.z.redSqr();u=u.redIAdd(u);var d=this.curve._mulA(f),h=this.x.redAdd(this.y).redSqr().redISub(f).redISub(c),l=d.redAdd(c),p=l.redSub(u),b=d.redSub(c),y=h.redMul(p),m=l.redMul(b),g=h.redMul(b),v=p.redMul(l);return this.curve.point(y,m,v,g)},m.prototype._projDbl=function(){var f,c,u,d=this.x.redAdd(this.y).redSqr(),h=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var p=this.curve._mulA(h),b=p.redAdd(l);if(this.zOne)f=d.redSub(h).redSub(l).redMul(b.redSub(this.curve.two)),c=b.redMul(p.redSub(l)),u=b.redSqr().redSub(b).redSub(b);else{var y=this.z.redSqr(),m=b.redSub(y).redISub(y);f=d.redSub(h).redISub(l).redMul(m),c=b.redMul(p.redSub(l)),u=b.redMul(m)}}else{var p=h.redAdd(l),y=this.curve._mulC(this.z).redSqr(),m=p.redSub(y).redSub(y);f=this.curve._mulC(d.redISub(p)).redMul(m),c=this.curve._mulC(p).redMul(h.redISub(l)),u=p.redMul(m)}return this.curve.point(f,c,u)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},m.prototype._extAdd=function(f){var c=this.y.redSub(this.x).redMul(f.y.redSub(f.x)),u=this.y.redAdd(this.x).redMul(f.y.redAdd(f.x)),d=this.t.redMul(this.curve.dd).redMul(f.t),h=this.z.redMul(f.z.redAdd(f.z)),l=u.redSub(c),p=h.redSub(d),b=h.redAdd(d),y=u.redAdd(c),m=l.redMul(p),g=b.redMul(y),v=l.redMul(y),_=p.redMul(b);return this.curve.point(m,g,_,v)},m.prototype._projAdd=function(f){var c,u,d=this.z.redMul(f.z),h=d.redSqr(),l=this.x.redMul(f.x),p=this.y.redMul(f.y),b=this.curve.d.redMul(l).redMul(p),y=h.redSub(b),m=h.redAdd(b),g=this.x.redAdd(this.y).redMul(f.x.redAdd(f.y)).redISub(l).redISub(p),v=d.redMul(y).redMul(g);return this.curve.twisted?(c=d.redMul(m).redMul(p.redSub(this.curve._mulA(l))),u=y.redMul(m)):(c=d.redMul(m).redMul(p.redSub(l)),u=this.curve._mulC(y).redMul(m)),this.curve.point(v,c,u)},m.prototype.add=function(f){return this.isInfinity()?f:f.isInfinity()?this:this.curve.extended?this._extAdd(f):this._projAdd(f)},m.prototype.mul=function(f){return this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve._wnafMul(this,f)},m.prototype.mulAdd=function(f,c,u){return this.curve._wnafMulAdd(1,[this,c],[f,u],2,!1)},m.prototype.jmulAdd=function(f,c,u){return this.curve._wnafMulAdd(1,[this,c],[f,u],2,!0)},m.prototype.normalize=function(){if(this.zOne)return this;var f=this.z.redInvm();return this.x=this.x.redMul(f),this.y=this.y.redMul(f),this.t&&(this.t=this.t.redMul(f)),this.z=this.curve.one,this.zOne=!0,this},m.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},m.prototype.getX=function(){return this.normalize(),this.x.fromRed()},m.prototype.getY=function(){return this.normalize(),this.y.fromRed()},m.prototype.eq=function(f){return this===f||0===this.getX().cmp(f.getX())&&0===this.getY().cmp(f.getY())},m.prototype.eqXToP=function(f){var c=f.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(c))return!0;for(var u=f.clone(),d=this.curve.redN.redMul(this.z);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(c.redIAdd(d),0===this.x.cmp(c))return!0}},m.prototype.toP=m.prototype.normalize,m.prototype.mixedAdd=m.prototype.add},7942:function(f,c,u){"use strict";var d=c;d.base=u(4285),d.short=u(2252),d.mont=u(5274),d.edwards=u(3546)},5274:function(f,c,u){"use strict";var d=u(5944),h=u(1638),l=u(4285),p=u(3355);function b(f){l.call(this,"mont",f),this.a=new d(f.a,16).toRed(this.red),this.b=new d(f.b,16).toRed(this.red),this.i4=new d(4).toRed(this.red).redInvm(),this.two=new d(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function y(f,c,u){l.BasePoint.call(this,f,"projective"),null===c&&null===u?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new d(c,16),this.z=new d(u,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}h(b,l),f.exports=b,b.prototype.validate=function(f){var c=f.normalize().x,u=c.redSqr(),d=u.redMul(c).redAdd(u.redMul(this.a)).redAdd(c);return 0===d.redSqrt().redSqr().cmp(d)},h(y,l.BasePoint),b.prototype.decodePoint=function(f,c){return this.point(p.toArray(f,c),1)},b.prototype.point=function(f,c){return new y(this,f,c)},b.prototype.pointFromJSON=function(f){return y.fromJSON(this,f)},y.prototype.precompute=function(){},y.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},y.fromJSON=function(f,c){return new y(f,c[0],c[1]||f.one)},y.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},y.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},y.prototype.dbl=function(){var f=this.x.redAdd(this.z).redSqr(),c=this.x.redSub(this.z).redSqr(),u=f.redSub(c),d=f.redMul(c),h=u.redMul(c.redAdd(this.curve.a24.redMul(u)));return this.curve.point(d,h)},y.prototype.add=function(){throw Error("Not supported on Montgomery curve")},y.prototype.diffAdd=function(f,c){var u=this.x.redAdd(this.z),d=this.x.redSub(this.z),h=f.x.redAdd(f.z),l=f.x.redSub(f.z).redMul(u),p=h.redMul(d),b=c.z.redMul(l.redAdd(p).redSqr()),y=c.x.redMul(l.redISub(p).redSqr());return this.curve.point(b,y)},y.prototype.mul=function(f){for(var c=f.clone(),u=this,d=this.curve.point(null,null),h=this,l=[];0!==c.cmpn(0);c.iushrn(1))l.push(c.andln(1));for(var p=l.length-1;p>=0;p--)0===l[p]?(u=u.diffAdd(d,h),d=d.dbl()):(d=u.diffAdd(d,h),u=u.dbl());return d},y.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},y.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},y.prototype.eq=function(f){return 0===this.getX().cmp(f.getX())},y.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},2252:function(f,c,u){"use strict";var d=u(3355),h=u(5944),l=u(1638),p=u(4285),b=d.assert;function y(f){p.call(this,"short",f),this.a=new h(f.a,16).toRed(this.red),this.b=new h(f.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(f),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function m(f,c,u,d){p.BasePoint.call(this,f,"affine"),null===c&&null===u?(this.x=null,this.y=null,this.inf=!0):(this.x=new h(c,16),this.y=new h(u,16),d&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function g(f,c,u,d){p.BasePoint.call(this,f,"jacobian"),null===c&&null===u&&null===d?(this.x=this.curve.one,this.y=this.curve.one,this.z=new h(0)):(this.x=new h(c,16),this.y=new h(u,16),this.z=new h(d,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}l(y,p),f.exports=y,y.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(f.beta)c=new h(f.beta,16).toRed(this.red);else{var c,u,d,l=this._getEndoRoots(this.p);c=(c=0>l[0].cmp(l[1])?l[0]:l[1]).toRed(this.red)}if(f.lambda)u=new h(f.lambda,16);else{var p=this._getEndoRoots(this.n);0===this.g.mul(p[0]).x.cmp(this.g.x.redMul(c))?u=p[0]:(u=p[1],b(0===this.g.mul(u).x.cmp(this.g.x.redMul(c))))}return d=f.basis?f.basis.map(function(f){return{a:new h(f.a,16),b:new h(f.b,16)}}):this._getEndoBasis(u),{beta:c,lambda:u,basis:d}}},y.prototype._getEndoRoots=function(f){var c=f===this.p?this.red:h.mont(f),u=new h(2).toRed(c).redInvm(),d=u.redNeg(),l=new h(3).toRed(c).redNeg().redSqrt().redMul(u);return[d.redAdd(l).fromRed(),d.redSub(l).fromRed()]},y.prototype._getEndoBasis=function(f){for(var c,u,d,l,p,b,y,m,g,v=this.n.ushrn(Math.floor(this.n.bitLength()/2)),_=f,w=this.n.clone(),x=new h(1),S=new h(0),E=new h(0),M=new h(1),A=0;0!==_.cmpn(0);){var R=w.div(_);m=w.sub(R.mul(_)),g=E.sub(R.mul(x));var k=M.sub(R.mul(S));if(!d&&0>m.cmp(v))c=y.neg(),u=x,d=m.neg(),l=g;else if(d&&2==++A)break;y=m,w=_,_=m,E=x,x=g,M=S,S=k}p=m.neg(),b=g;var P=d.sqr().add(l.sqr());return p.sqr().add(b.sqr()).cmp(P)>=0&&(p=c,b=u),d.negative&&(d=d.neg(),l=l.neg()),p.negative&&(p=p.neg(),b=b.neg()),[{a:d,b:l},{a:p,b:b}]},y.prototype._endoSplit=function(f){var c=this.endo.basis,u=c[0],d=c[1],h=d.b.mul(f).divRound(this.n),l=u.b.neg().mul(f).divRound(this.n),p=h.mul(u.a),b=l.mul(d.a),y=h.mul(u.b),m=l.mul(d.b);return{k1:f.sub(p).sub(b),k2:y.add(m).neg()}},y.prototype.pointFromX=function(f,c){(f=new h(f,16)).red||(f=f.toRed(this.red));var u=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),d=u.redSqrt();if(0!==d.redSqr().redSub(u).cmp(this.zero))throw Error("invalid point");var l=d.fromRed().isOdd();return(c&&!l||!c&&l)&&(d=d.redNeg()),this.point(f,d)},y.prototype.validate=function(f){if(f.inf)return!0;var c=f.x,u=f.y,d=this.a.redMul(c),h=c.redSqr().redMul(c).redIAdd(d).redIAdd(this.b);return 0===u.redSqr().redISub(h).cmpn(0)},y.prototype._endoWnafMulAdd=function(f,c,u){for(var d=this._endoWnafT1,h=this._endoWnafT2,l=0;l<f.length;l++){var p=this._endoSplit(c[l]),b=f[l],y=b._getBeta();p.k1.negative&&(p.k1.ineg(),b=b.neg(!0)),p.k2.negative&&(p.k2.ineg(),y=y.neg(!0)),d[2*l]=b,d[2*l+1]=y,h[2*l]=p.k1,h[2*l+1]=p.k2}for(var m=this._wnafMulAdd(1,d,h,2*l,u),g=0;g<2*l;g++)d[g]=null,h[g]=null;return m},l(m,p.BasePoint),y.prototype.point=function(f,c,u){return new m(this,f,c,u)},y.prototype.pointFromJSON=function(f,c){return m.fromJSON(this,f,c)},m.prototype._getBeta=function(){if(this.curve.endo){var f=this.prec
vendor: 2,811 bytes, line 1
1omputed;if(f&&f.beta)return f.beta;var c=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var u=this.curve,d=function(f){return u.point(f.x.redMul(u.endo.beta),f.y)};f.beta=c,c.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(d)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(d)}}}return c}},m.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},m.fromJSON=function(f,c,u){"string"==typeof c&&(c=JSON.parse(c));var d=f.point(c[0],c[1],u);if(!c[2])return d;function h(c){return f.point(c[0],c[1],u)}var l=c[2];return d.precomputed={beta:null,doubles:l.doubles&&{step:l.doubles.step,points:[d].concat(l.doubles.points.map(h))},naf:l.naf&&{wnd:l.naf.wnd,points:[d].concat(l.naf.points.map(h))}},d},m.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},m.prototype.isInfinity=function(){return this.inf},m.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f)||0===this.x.cmp(f.x))return this.curve.point(null,null);var c=this.y.redSub(f.y);0!==c.cmpn(0)&&(c=c.redMul(this.x.redSub(f.x).redInvm()));var u=c.redSqr().redISub(this.x).redISub(f.x),d=c.redMul(this.x.redSub(u)).redISub(this.y);return this.curve.point(u,d)},m.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(0===f.cmpn(0))return this.curve.point(null,null);var c=this.curve.a,u=this.x.redSqr(),d=f.redInvm(),h=u.redAdd(u).redIAdd(u).redIAdd(c).redMul(d),l=h.redSqr().redISub(this.x.redAdd(this.x)),p=h.redMul(this.x.redSub(l)).redISub(this.y);return this.curve.point(l,p)},m.prototype.getX=function(){return this.x.fromRed()},m.prototype.getY=function(){return this.y.fromRed()},m.prototype.mul=function(f){return(f=new h(f,16),this.isInfinity())?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},m.prototype.mulAdd=function(f,c,u){var d=[this,c],h=[f,u];return this.curve.endo?this.curve._endoWnafMulAdd(d,h):this.curve._wnafMulAdd(1,d,h,2)},m.prototype.jmulAdd=function(f,c,u){var d=[this,c],h=[f,u];return this.curve.endo?this.curve._endoWnafMulAdd(d,h,!0):this.curve._wnafMulAdd(1,d,h,2,!0)},m.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||0===this.x.cmp(f.x)&&0===this.y.cmp(f.y))},m.prototype.neg=function(f){if(this.inf)return this;var c=this.curve.point(this.x,this.y.redNeg());
vendor: 5,788 bytes, line 1
1if(f&&this.precomputed){var u=this.precomputed,d=function(f){return f.neg()};c.precomputed={naf:u.naf&&{wnd:u.naf.wnd,points:u.naf.points.map(d)},doubles:u.doubles&&{step:u.doubles.step,points:u.doubles.points.map(d)}}}return c},m.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},l(g,p.BasePoint),y.prototype.jpoint=function(f,c,u){return new g(this,f,c,u)},g.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),c=f.redSqr(),u=this.x.redMul(c),d=this.y.redMul(c).redMul(f);return this.curve.point(u,d)},g.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},g.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var c=f.z.redSqr(),u=this.z.redSqr(),d=this.x.redMul(c),h=f.x.redMul(u),l=this.y.redMul(c.redMul(f.z)),p=f.y.redMul(u.redMul(this.z)),b=d.redSub(h),y=l.redSub(p);if(0===b.cmpn(0))if(0!==y.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var m=b.redSqr(),g=m.redMul(b),v=d.redMul(m),_=y.redSqr().redIAdd(g).redISub(v).redISub(v),w=y.redMul(v.redISub(_)).redISub(l.redMul(g)),x=this.z.redMul(f.z).redMul(b);return this.curve.jpoint(_,w,x)},g.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var c=this.z.redSqr(),u=this.x,d=f.x.redMul(c),h=this.y,l=f.y.redMul(c).redMul(this.z),p=u.redSub(d),b=h.redSub(l);if(0===p.cmpn(0))if(0!==b.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var y=p.redSqr(),m=y.redMul(p),g=u.redMul(y),v=b.redSqr().redIAdd(m).redISub(g).redISub(g),_=b.redMul(g.redISub(v)).redISub(h.redMul(m)),w=this.z.redMul(p);return this.curve.jpoint(v,_,w)},g.prototype.dblp=function(f){if(0===f||this.isInfinity())return this;if(!f)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var c=this,u=0;u<f;u++)c=c.dbl();return c}for(var d=this.curve.a,h=this.curve.tinv,l=this.x,p=this.y,b=this.z,y=b.redSqr().redSqr(),m=p.redAdd(p),u=0;u<f;u++){var g=l.redSqr(),v=m.redSqr(),_=v.redSqr(),w=g.redAdd(g).redIAdd(g).redIAdd(d.redMul(y)),x=l.redMul(v),S=w.redSqr().redISub(x.redAdd(x)),E=x.redISub(S),M=w.redMul(E);M=M.redIAdd(M).redISub(_);var A=m.redMul(b);u+1<f&&(y=y.redMul(_)),l=S,b=A,m=M}return this.curve.jpoint(l,m.redMul(h),b)},g.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},g.prototype._zeroDbl=function(){if(this.zOne){var f,c,u,d=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),p=this.x.redAdd(h).redSqr().redISub(d).redISub(l);p=p.redIAdd(p);var b=d.redAdd(d).redIAdd(d),y=b.redSqr().redISub(p).redISub(p),m=l.redIAdd(l);m=(m=m.redIAdd(m)).redIAdd(m),f=y,c=b.redMul(p.redISub(y)).redISub(m),u=this.y.redAdd(this.y)}else{var g=this.x.redSqr(),v=this.y.redSqr(),_=v.redSqr(),w=this.x.redAdd(v).redSqr().redISub(g).redISub(_);w=w.redIAdd(w);var x=g.redAdd(g).redIAdd(g),S=x.redSqr(),E=_.redIAdd(_);E=(E=E.redIAdd(E)).redIAdd(E),f=S.redISub(w).redISub(w),c=x.redMul(w.redISub(f)).redISub(E),u=(u=this.y.redMul(this.z)).redIAdd(u)}return this.curve.jpoint(f,c,u)},g.prototype._threeDbl=function(){if(this.zOne){var f,c,u,d=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),p=this.x.redAdd(h).redSqr().redISub(d).redISub(l);p=p.redIAdd(p);var b=d.redAdd(d).redIAdd(d).redIAdd(this.curve.a),y=b.redSqr().redISub(p).redISub(p);f=y;var m=l.redIAdd(l);m=(m=m.redIAdd(m)).redIAdd(m),c=b.redMul(p.redISub(y)).redISub(m),u=this.y.redAdd(this.y)}else{var g=this.z.redSqr(),v=this.y.redSqr(),_=this.x.redMul(v),w=this.x.redSub(g).redMul(this.x.redAdd(g));w=w.redAdd(w).redIAdd(w);var x=_.redIAdd(_),S=(x=x.redIAdd(x)).redAdd(x);f=w.redSqr().redISub(S),u=this.y.redAdd(this.z).redSqr().redISub(v).redISub(g);var E=v.redSqr();E=(E=(E=E.redIAdd(E)).redIAdd(E)).redIAdd(E),c=w.redMul(x.redISub(f)).redISub(E)}return this.curve.jpoint(f,c,u)},g.prototype._dbl=function(){var f=this.curve.a,c=this.x,u=this.y,d=this.z,h=d.redSqr().redSqr(),l=c.redSqr(),p=u.redSqr(),b=l.redAdd(l).redIAdd(l).redIAdd(f.redMul(h)),y=c.redAdd(c),m=(y=y.redIAdd(y)).redMul(p),g=b.redSqr().redISub(m.redAdd(m)),v=m.redISub(g),_=p.redSqr();_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_);var w=b.redMul(v).redISub(_),x=u.redAdd(u).redMul(d);return this.curve.jpoint(g,w,x)},g.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),c=this.y.redSqr(),u=this.z.redSqr(),d=c.redSqr(),h=f.redAdd(f).redIAdd(f),l=h.redSqr(),p=this.x.redAdd(c).redSqr().redISub(f).redISub(d),b=(p=(p=(p=p.redIAdd(p)).redAdd(p).redIAdd(p)).redISub(l)).redSqr(),y=d.redIAdd(d);y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y);var m=h.redIAdd(p).redSqr().redISub(l).redISub(b).redISub(y),g=c.redMul(m);g=(g=g.redIAdd(g)).redIAdd(g);var v=this.x.redMul(b).redISub(g);v=(v=v.redIAdd(v)).redIAdd(v);var _=this.y.redMul(m.redMul(y.redISub(m)).redISub(p.redMul(b)));_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_);var w=this.z.redAdd(p).redSqr().redISub(u).redISub(b);return this.curve.jpoint(v,_,w)},g.prototype.mul=function(f,c){return f=new h(f,c),this.curve._wnafMul(this,f)},g.prototype.eq=function(f){if("affine"===f.type)return this.eq(f.toJ());if(this===f)return!0;var c=this.z.redSqr(),u=f.z.redSqr();if(0!==this.x.redMul(u).redISub(f.x.redMul(c)).cmpn(0))return!1;var d=c.redMul(this.z),h=u.redMul(f.z);return 0===this.y.redMul(h).redISub(f.y.redMul(d)).cmpn(0)},g.prototype.eqXToP=function(f){var c=this.z.redSqr(),u=f.toRed(this.curve.red).redMul(c);if(0===this.x.cmp(u))return!0;for(var d=f.clone(),h=this.curve.redN.redMul(c);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(u.redIAdd(h),0===this.x.cmp(u))return!0}},g.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>
1":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},g.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},7736:function(f,c,u){"use strict";var d,h=c,l=u(8044),p=u(7942),b=u(3355).assert;function y(f){"short"===f.type?this.curve=new p.short(f):"edwards"===f.type?this.curve=new p.edwards(f):this.curve=new p.mont(f),this.g=this.curve.g,this.n=this.curve.n,this.hash=f.hash,b(this.g.validate(),"Invalid curve"),b(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function m(f,c){Object.defineProperty(h,f,{configurable:!0,enumerable:!0,get:function(){var u=new y(c);return Object.defineProperty(h,f,{configurable:!0,enumerable:!0,value:u}),u}})}h.PresetCurve=y,m("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:l.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),m("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:l.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),m("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:l.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),m("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:l.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"]}),m("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:l.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"]}),m("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["9"]}),m("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{d=u(5827)}catch(f){d=void 0}m("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:l.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
1,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d]})},1039:function(f,c,u){"use strict";var d=u(5944),h=u(3730),l=u(3355),p=u(7736),b=u(4259),y=l.assert,m=u(2632),g=u(4233);function v(f){if(!(this instanceof v))return new v(f);"string"==typeof f&&(y(p.hasOwnProperty(f),"Unknown curve "+f),f=p[f]),f instanceof p.PresetCurve&&(f={curve:f}),this.curve=f.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=f.curve.g,this.g.precompute(f.curve.n.bitLength()+1),this.hash=f.hash||f.curve.hash}f.exports=v,v.prototype.keyPair=function(f){return new m(this,f)},v.prototype.keyFromPrivate=function(f,c){return m.fromPrivate(this,f,c)},v.prototype.keyFromPublic=function(f,c){return m.fromPublic(this,f,c)},v.prototype.genKeyPair=function(f){f||(f={});for(var c=new h({hash:this.hash,pers:f.pers,persEnc:f.persEnc||"utf8",entropy:f.entropy||b(this.hash.hmacStrength),entropyEnc:f.entropy&&f.entropyEnc||"utf8",nonce:this.n.toArray()}),u=this.n.byteLength(),l=this.n.sub(new d(2));;){var p=new d(c.generate(u));if(!(p.cmp(l)>0))return p.iaddn(1),this.keyFromPrivate(p)}},v.prototype._truncateToN=function(f,c){var u=8*f.byteLength()-this.n.bitLength();return(u>0&&(f=f.ushrn(u)),!c&&f.cmp(this.n)>=0)?f.sub(this.n):f},v.prototype.sign=function(f,c,u,l){"object"==typeof u&&(l=u,u=null),l||(l={}),c=this.keyFromPrivate(c,u),f=this._truncateToN(new d(f,16));for(var p=this.n.byteLength(),b=c.getPrivate().toArray("be",p),y=f.toArray("be",p),m=new h({hash:this.hash,entropy:b,nonce:y,pers:l.pers,persEnc:l.persEnc||"utf8"}),v=this.n.sub(new d(1)),_=0;;_++){var w=l.k?l.k(_):new d(m.generate(this.n.byteLength()));if(0>=(w=this._truncateToN(w,!0)).cmpn(1)||w.cmp(v)>=0)continue;var x=this.g.mul(w);if(!x.isInfinity()){var S=x.getX(),E=S.umod(this.n);if(0!==E.cmpn(0)){var M=w.invm(this.n).mul(E.mul(c.getPrivate()).iadd(f));if(0!==(M=M.umod(this.n)).cmpn(0)){var A=!!x.getY().isOdd()|2*(0!==S.cmp(E));return l.canonical&&M.cmp(this.nh)>0&&(M=this.n.sub(M),A^=1),new g({r:E,s:M,recoveryParam:A})}}}}},v.prototype.verify=function(f,c,u,h){f=this._truncateToN(new d(f,16)),u=this.keyFromPublic(u,h);var l=(c=new g(c,"hex")).r,p=c.s;if(0>l.cmpn(1)||l.cmp(this.n)>=0||0>p.cmpn(1)||p.cmp(this.n)>=0)return!1;var b=p.invm(this.n),y=b.mul(f).umod(this.n),m=b.mul(l).umod(this.n);if(!this.curve._maxwellTrick){var v=this.g.mulAdd(y,u.getPublic(),m);return!v.isInfinity()&&0===v.getX().umod(this.n).cmp(l)}var v=this.g.jmulAdd(y,u.getPublic(),m);return!v.isInfinity()&&v.eqXToP(l)},v.prototype.recoverPubKey=function(f,c,u,h){y((3&u)===u,"The recovery param is more than two bits"),c=new g(c,h);var l=this.n,p=new d(f),b=c.r,m=c.s,v=1&u,_=u>>1;if(b.cmp(this.curve.p.umod(this.curve.n))>=0&&_)throw Error("Unable to find sencond key candinate");b=_?this.curve.pointFromX(b.add(this.curve.n),v):this.curve.pointFromX(b,v);var w=c.r.invm(l),x=l.sub(p).mul(w).umod(l),S=m.mul(w).umod(l);return this.g.mulAdd(x,b,S)},v.prototype.getKeyRecoveryParam=function(f,c,u,d){if(null!==(c=new g(c,d)).recoveryParam)return c.recoveryParam;for(var h,l=0;l<4;l++){try{h=this.recoverPubKey(f,c,l)}catch(f){continue}if(h.eq(u))return l}throw Error("Unable to find valid recovery factor")}},2632:function(f,c,u){"use strict";var d=u(5944),h=u(3355).assert;function l(f,c){this.ec=f,this.priv=null,this.pub=null,c.priv&&this._importPrivate(c.priv,c.privEnc),c.pub&&this._importPublic(c.pub,c.pubEnc)}f.exports=l,l.fromPublic=function(f,c,u){return c instanceof l?c:new l(f,{pub:c,pubEnc:u})},l.fromPrivate=function(f,c,u){return c instanceof l?c:new l(f,{priv:c,privEnc:u})},l.prototype.validate=function(){var f=this.getPublic();return f.isInfinity()?{result:!1,reason:"Invalid public key"}:f.validate()?f.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},l.prototype.getPublic=function(f,c){return("string"==typeof f&&(c=f,f=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),c)?this.pub.encode(c,f):this.pub},l.prototype.getPrivate=function(f){return"hex"===f?this.priv.toString(16,2):this.priv},l.prototype._importPrivate=function(f,c){this.priv=new d(f,c||16),this.priv=this.priv.umod(this.ec.curve.n)},l.prototype._importPublic=function(f,c){if(f.x||f.y){"mont"===this.ec.curve.type?h(f.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&h(f.x&&f.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(f.x,f.y);return}this.pub=this.ec.curve.decodePoint(f,c)},l.prototype.derive=function(f){return f.mul(this.priv).getX()},l.prototype.sign=function(f,c,u){return this.ec.sign(f,this,c,u)},l.prototype.verify=function(f,c){return this.ec.verify(f,c,this)},l.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},4233:function(f,c,u){"use strict";var d=u(5944),h=u(3355),l=h.assert;function p(f,c){if(f instanceof p)return f;this._importDER(f,c)||(l(f.r&&f.s,"Signature without r or s"),this.r=new d(f.r,16),this.s=new d(f.s,16),void 0===f.recoveryParam?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}function b(){this.place=0}function y(f,c){var u=f[c.place++];if(!(128&u))return u;var d=15&u;if(0===d||d>4)return!1;for(var h=0,l=0,p=c.place;l<d;l++,p++)h<<=8,h|=f[p],h>>>=0;return!(h<=127)&&(c.place=p,h)}function m(f){for(var c=0,u=f.length-1;
1!f[c]&&!(128&f[c+1])&&c<u;)c++;return 0===c?f:f.slice(c)}function g(f,c){if(c<128)return void f.push(c);var u=1+(Math.log(c)/Math.LN2>>>3);for(f.push(128|u);--u;)f.push(c>>>(u<<3)&255);f.push(c)}f.exports=p,p.prototype._importDER=function(f,c){f=h.toArray(f,c);var u=new b;if(48!==f[u.place++])return!1;var l=y(f,u);if(!1===l||l+u.place!==f.length||2!==f[u.place++])return!1;var p=y(f,u);if(!1===p)return!1;var m=f.slice(u.place,p+u.place);if(u.place+=p,2!==f[u.place++])return!1;var g=y(f,u);if(!1===g||f.length!==g+u.place)return!1;var v=f.slice(u.place,g+u.place);if(0===m[0])if(!(128&m[1]))return!1;else m=m.slice(1);if(0===v[0])if(!(128&v[1]))return!1;else v=v.slice(1);return this.r=new d(m),this.s=new d(v),this.recoveryParam=null,!0},p.prototype.toDER=function(f){var c=this.r.toArray(),u=this.s.toArray();for(128&c[0]&&(c=[0].concat(c)),128&u[0]&&(u=[0].concat(u)),c=m(c),u=m(u);!u[0]&&!(128&u[1]);)u=u.slice(1);var d=[2];g(d,c.length),(d=d.concat(c)).push(2),g(d,u.length);var l=d.concat(u),p=[48];return g(p,l.length),p=p.concat(l),h.encode(p,f)}},4226:function(f,c,u){"use strict";var d=u(8044),h=u(7736),l=u(3355),p=l.assert,b=l.parseBytes,y=u(1101),m=u(2164);function g(f){if(p("ed25519"===f,"only tested with ed25519 so far"),!(this instanceof g))return new g(f);var f=h[f].curve;this.curve=f,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=d.sha512}f.exports=g,g.prototype.sign=function(f,c){f=b(f);var u=this.keyFromSecret(c),d=this.hashInt(u.messagePrefix(),f),h=this.g.mul(d),l=this.encodePoint(h),p=this.hashInt(l,u.pubBytes(),f).mul(u.priv()),y=d.add(p).umod(this.curve.n);return this.makeSignature({R:h,S:y,Rencoded:l})},g.prototype.verify=function(f,c,u){f=b(f),c=this.makeSignature(c);var d=this.keyFromPublic(u),h=this.hashInt(c.Rencoded(),d.pubBytes(),f),l=this.g.mul(c.S());return c.R().add(d.pub().mul(h)).eq(l)},g.prototype.hashInt=function(){for(var f=this.hash(),c=0;c<arguments.length;c++)f.update(arguments[c]);return l.intFromLE(f.digest()).umod(this.curve.n)},g.prototype.keyFromPublic=function(f){return y.fromPublic(this,f)},g.prototype.keyFromSecret=function(f){return y.fromSecret(this,f)},g.prototype.makeSignature=function(f){return f instanceof m?f:new m(this,f)},g.prototype.encodePoint=function(f){var c=f.getY().toArray("le",this.encodingLength);return c[this.encodingLength-1]|=128*!!f.getX().isOdd(),c},g.prototype.decodePoint=function(f){var c=(f=l.parseBytes(f)).length-1,u=f.slice(0,c).concat(-129&f[c]),d=(128&f[c])!=0,h=l.intFromLE(u);return this.curve.pointFromY(h,d)},g.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},g.prototype.decodeInt=function(f){return l.intFromLE(f)},g.prototype.isPoint=function(f){return f instanceof this.pointClass}},1101:function(f,c,u){"use strict";var d=u(3355),h=d.assert,l=d.parseBytes,p=d.cachedProperty;function b(f,c){this.eddsa=f,this._secret=l(c.secret),f.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=l(c.pub)}b.fromPublic=function(f,c){return c instanceof b?c:new b(f,{pub:c})},b.fromSecret=function(f,c){return c instanceof b?c:new b(f,{secret:c})},b.prototype.secret=function(){return this._secret},p(b,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),p(b,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),p(b,"privBytes",function(){var f=this.eddsa,c=this.hash(),u=f.encodingLength-1,d=c.slice(0,f.encodingLength);return d[0]&=248,d[u]&=127,d[u]|=64,d}),p(b,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),p(b,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),p(b,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),b.prototype.sign=function(f){return h(this._secret,"KeyPair can only verify"),this.eddsa.sign(f,this)},b.prototype.verify=function(f,c){return this.eddsa.verify(f,c,this)},b.prototype.getSecret=function(f){return h(this._secret,"KeyPair is public only"),d.encode(this.secret(),f)},b.prototype.getPublic=function(f){return d.encode(this.pubBytes(),f)},f.exports=b},2164:function(f,c,u){"use strict";var d=u(5944),h=u(3355),l=h.assert,p=h.cachedProperty,b=h.parseBytes;function y(f,c){this.eddsa=f,"object"!=typeof c&&(c=b(c)),Array.isArray(c)&&(c={R:c.slice(0,f.encodingLength),S:c.slice(f.encodingLength)}),l(c.R&&c.S,"Signature without R or S"),f.isPoint(c.R)&&(this._R=c.R),c.S instanceof d&&(this._S=c.S),this._Rencoded=Array.isArray(c.R)?c.R:c.Rencoded,this._Sencoded=Array.isArray(c.S)?c.S:c.Sencoded}p(y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),p(y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),p(y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),p(y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},y.prototype.toHex=function(){return h.encode(this.toBytes(),"hex").toUpperCase()}
1,f.exports=y},5827:function(f){f
vendor: 18,403 bytes, line 1
1.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"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,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"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0
vendor: 7,734 bytes, line 1
1a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
13355:function(f,c,u){"use strict";var d=c,h=u(5944),l=u(7551),p=u(7356);function b(f){return"string"==typeof f?d.toArray(f,"hex"):f}d.assert=l,d.toArray=p.toArray,d.zero2=p.zero2,d.toHex=p.toHex,d.encode=p.encode,d.getNAF=function(f,c,u){var d=Array(Math.max(f.bitLength(),u)+1);d.fill(0);for(var h=1<<c+1,l=f.clone(),p=0;p<d.length;p++){var b,y=l.andln(h-1);l.isOdd()?(b=y>(h>>1)-1?(h>>1)-y:y,l.isubn(b)):b=0,d[p]=b,l.iushrn(1)}return d},d.getJSF=function(f,c){var u=[[],[]];f=f.clone(),c=c.clone();for(var d=0,h=0;f.cmpn(-d)>0||c.cmpn(-h)>0;){var l,p,b=f.andln(3)+d&3,y=c.andln(3)+h&3;if(3===b&&(b=-1),3===y&&(y=-1),(1&b)==0)l=0;else{var m=f.andln(7)+d&7;l=(3===m||5===m)&&2===y?-b:b}if(u[0].push(l),(1&y)==0)p=0;else{var m=c.andln(7)+h&7;p=(3===m||5===m)&&2===b?-y:y}u[1].push(p),2*d===l+1&&(d=1-d),2*h===p+1&&(h=1-h),f.iushrn(1),c.iushrn(1)}return u},d.cachedProperty=function(f,c,u){var d="_"+c;f.prototype[c]=function(){return void 0!==this[d]?this[d]:this[d]=u.call(this)}},d.parseBytes=b,d.intFromLE=function(f){return new h(f,"hex","le")}},689:function(f,c,u){var d=u(5725).Buffer,h=u(3858);f.exports=function(f,c,u,l){if(d.isBuffer(f)||(f=d.from(f,"binary")),c&&(d.isBuffer(c)||(c=d.from(c,"binary")),8!==c.length))throw RangeError("salt should be Buffer with 8 byte length");
vendor: 7,341 bytes, line 1
1for(var p=u/8,b=d.alloc(p),y=d.alloc(l||0),m=d.alloc(0);p>0||l>0;){var g=new h;g.update(m),g.update(f),c&&g.update(c),m=g.digest();var v=0;if(p>0){var _=b.length-p;v=Math.min(p,m.length),m.copy(b,_,0,v),p-=v}if(v<m.length&&l>0){var w=y.length-l,x=Math.min(l,m.length-v);m.copy(y,w,v,v+x),l-=x}}return m.fill(0),{key:b,iv:y}}},2321:function(f,c,u){"use strict";var d=u(5725).Buffer,h=u(5486).Transform;function l(f,c){if(!d.isBuffer(f)&&"string"!=typeof f)throw TypeError(c+" must be a string or a buffer")}function p(f){h.call(this),this._block=d.allocUnsafe(f),this._blockSize=f,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}u(1638)(p,h),p.prototype._transform=function(f,c,u){var d=null;try{this.update(f,c)}catch(f){d=f}u(d)},p.prototype._flush=function(f){var c=null;try{this.push(this.digest())}catch(f){c=f}f(c)},p.prototype.update=function(f,c){if(l(f,"Data"),this._finalized)throw Error("Digest already called");d.isBuffer(f)||(f=d.from(f,c));for(var u=this._block,h=0;this._blockOffset+f.length-h>=this._blockSize;){for(var p=this._blockOffset;p<this._blockSize;)u[p++]=f[h++];this._update(),this._blockOffset=0}for(;h<f.length;)u[this._blockOffset++]=f[h++];for(var b=0,y=8*f.length;y>0;++b)this._length[b]+=y,(y=this._length[b]/0x100000000|0)>0&&(this._length[b]-=0x100000000*y);return this},p.prototype._update=function(){throw Error("_update is not implemented")},p.prototype.digest=function(f){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var c=this._digest();void 0!==f&&(c=c.toString(f)),this._block.fill(0),this._blockOffset=0;for(var u=0;u<4;++u)this._length[u]=0;return c},p.prototype._digest=function(){throw Error("_digest is not implemented")},f.exports=p},8044:function(f,c,u){var d=c;d.utils=u(6302),d.common=u(1226),d.sha=u(4857),d.ripemd=u(9956),d.hmac=u(2184),d.sha1=d.sha.sha1,d.sha256=d.sha.sha256,d.sha224=d.sha.sha224,d.sha384=d.sha.sha384,d.sha512=d.sha.sha512,d.ripemd160=d.ripemd.ripemd160},1226:function(f,c,u){"use strict";var d=u(6302),h=u(7551);function l(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}c.BlockHash=l,l.prototype.update=function(f,c){if(f=d.toArray(f,c),this.pending?this.pending=this.pending.concat(f):this.pending=f,this.pendingTotal+=f.length,this.pending.length>=this._delta8){var u=(f=this.pending).length%this._delta8;this.pending=f.slice(f.length-u,f.length),0===this.pending.length&&(this.pending=null),f=d.join32(f,0,f.length-u,this.endian);for(var h=0;h<f.length;h+=this._delta32)this._update(f,h,h+this._delta32)}return this},l.prototype.digest=function(f){return this.update(this._pad()),h(null===this.pending),this._digest(f)},l.prototype._pad=function(){var f=this.pendingTotal,c=this._delta8,u=c-(f+this.padLength)%c,d=Array(u+this.padLength);d[0]=128;for(var h=1;h<u;h++)d[h]=0;if(f<<=3,"big"===this.endian){for(var l=8;l<this.padLength;l++)d[h++]=0;d[h++]=0,d[h++]=0,d[h++]=0,d[h++]=0,d[h++]=f>>>24&255,d[h++]=f>>>16&255,d[h++]=f>>>8&255,d[h++]=255&f}else for(d[h++]=255&f,d[h++]=f>>>8&255,d[h++]=f>>>16&255,d[h++]=f>>>24&255,d[h++]=0,d[h++]=0,d[h++]=0,d[h++]=0,l=8;l<this.padLength;l++)d[h++]=0;return d}},2184:function(f,c,u){"use strict";var d=u(6302),h=u(7551);function l(f,c,u){if(!(this instanceof l))return new l(f,c,u);this.Hash=f,this.blockSize=f.blockSize/8,this.outSize=f.outSize/8,this.inner=null,this.outer=null,this._init(d.toArray(c,u))}f.exports=l,l.prototype._init=function(f){f.length>this.blockSize&&(f=(new this.Hash).update(f).digest()),h(f.length<=this.blockSize);for(var c=f.length;c<this.blockSize;c++)f.push(0);for(c=0;c<f.length;c++)f[c]^=54;for(this.inner=(new this.Hash).update(f),c=0;c<f.length;c++)f[c]^=106;this.outer=(new this.Hash).update(f)},l.prototype.update=function(f,c){return this.inner.update(f,c),this},l.prototype.digest=function(f){return this.outer.update(this.inner.digest()),this.outer.digest(f)}},9956:function(f,c,u){"use strict";var d=u(6302),h=u(1226),l=d.rotl32,p=d.sum32,b=d.sum32_3,y=d.sum32_4,m=h.BlockHash;function g(){if(!(this instanceof g))return new g;m.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function v(f,c,u,d){return f<=15?c^u^d:f<=31?c&u|~c&d:f<=47?(c|~u)^d:f<=63?c&d|u&~d:c^(u|~d)}function _(f){return f<=15?0:f<=31?0x5a827999:f<=47?0x6ed9eba1:f<=63?0x8f1bbcdc:0xa953fd4e}function w(f){return f<=15?0x50a28be6:f<=31?0x5c4dd124:f<=47?0x6d703ef3:0x7a6d76e9*!!(f<=63)}d.inherits(g,m),c.ripemd160=g,g.blockSize=512,g.outSize=160,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(f,c){for(var u=this.h[0],d=this.h[1],h=this.h[2],m=this.h[3],g=this.h[4],A=u,R=d,k=h,P=m,I=g,O=0;O<80;O++){var T=p(l(y(u,v(O,d,h,m),f[x[O]+c],_(O)),E[O]),g);u=g,g=m,m=l(h,10),h=d,d=T,T=p(l(y(A,v(79-O,R,k,P),f[S[O]+c],w(O)),M[O]),I),A=I,I=P,P=l(k,10),k=R,R=T}T=b(this.h[1],h,P),this.h[1]=b(this.h[2],m,I),this.h[2]=b(this.h[3],g,A),this.h[3]=b(this.h[4],u,R),this.h[4]=b(this.h[0],d,k),this.h[0]=T},g.prototype._digest=function(f){return"hex"===f?d.toHex32(this.h,"little"):d.split32(this.h,"little")};var x=[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],S=[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],E=[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],M=[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]},4857:function(f,c,u){"use strict";c.sha1=u(2953),c.sha224=u(5334),c.sha256=u(5563),c.sha384=u(4811),c.sha512=u(5978)},2953:function(f,c,u){"use strict";var d=u(6302),h=u(1226),l=u(9101),p=d.rotl32,b=d.sum32,y=d.sum32_5,m=l.ft_1,g=h.BlockHash,v=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function _(){if(!(this instanceof _))return new _;g.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}d.inherits(_,g),f.exports=_,_.blockSize=512,_.outSize=160,_.hmacStrength=80,_.padLength=64,_.prototype._update=function(f,c){for(var u=this.W,d=0;d<16;d++)u[d]=f[c+d];for(;d<u.length;d++)u[d]=p(u[d-3]^u[d-8]^u[d-14]^u[d-16],1);var h=this.h[0],l=this.h[1],g=this.h[2],_=this.h[3],w=this.h[4];for(d=0;d<u.length;d++){var x=~~(d/20),S=y(p(h,5),m(x,l,g,_),w,u[d],v[x]);w=_,_=g,g=p(l,30),l=h,h=S}this.h[0]=b(this.h[0],h),this.h[1]=b(this.h[1],l),this.h[2]=b(this.h[2],g),this.h[3]=b(this.h[3],_),this.h[4]=b(this.h[4],w)},_.prototype._digest=function(f){return"hex"===f?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},5334:function(f,c,u){"use strict";var d=u(6302),h=u(5563);function l(){if(!(this instanceof l))return new l;h.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}
vendor: 4,639 bytes, line 1
1d.inherits(l,h),f.exports=l,l.blockSize=512,l.outSize=224,l.hmacStrength=192,l.padLength=64,l.prototype._digest=function(f){return"hex"===f?d.toHex32(this.h.slice(0,7),"big"):d.split32(this.h.slice(0,7),"big")}},5563:function(f,c,u){"use strict";var d=u(6302),h=u(1226),l=u(9101),p=u(7551),b=d.sum32,y=d.sum32_4,m=d.sum32_5,g=l.ch32,v=l.maj32,_=l.s0_256,w=l.s1_256,x=l.g0_256,S=l.g1_256,E=h.BlockHash,M=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function A(){if(!(this instanceof A))return new A;E.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=M,this.W=Array(64)}d.inherits(A,E),f.exports=A,A.blockSize=512,A.outSize=256,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(f,c){for(var u=this.W,d=0;d<16;d++)u[d]=f[c+d];for(;d<u.length;d++)u[d]=y(S(u[d-2]),u[d-7],x(u[d-15]),u[d-16]);var h=this.h[0],l=this.h[1],E=this.h[2],M=this.h[3],A=this.h[4],R=this.h[5],k=this.h[6],P=this.h[7];for(p(this.k.length===u.length),d=0;d<u.length;d++){var I=m(P,w(A),g(A,R,k),this.k[d],u[d]),O=b(_(h),v(h,l,E));P=k,k=R,R=A,A=b(M,I),M=E,E=l,l=h,h=b(I,O)}this.h[0]=b(this.h[0],h),this.h[1]=b(this.h[1],l),this.h[2]=b(this.h[2],E),this.h[3]=b(this.h[3],M),this.h[4]=b(this.h[4],A),this.h[5]=b(this.h[5],R),this.h[6]=b(this.h[6],k),this.h[7]=b(this.h[7],P)},A.prototype._digest=function(f){return"hex"===f?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},4811:function(f,c,u){"use strict";var d=u(6302),h=u(5978);function l(){if(!(this instanceof l))return new l;h.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}d.inherits(l,h),f.exports=l,l.blockSize=1024,l.outSize=384,l.hmacStrength=192,l.padLength=128,l.prototype._digest=function(f){return"hex"===f?d.toHex32(this.h.slice(0,12),"big"):d.split32(this.h.slice(0,12),"big")}},5978:function(f,c,u){"use strict";var d=u(6302),h=u(1226),l=u(7551),p=d.rotr64_hi,b=d.rotr64_lo,y=d.shr64_hi,m=d.shr64_lo,g=d.sum64,v=d.sum64_hi,_=d.sum64_lo,w=d.sum64_4_hi,x=d.sum64_4_lo,S=d.sum64_5_hi,E=d.sum64_5_lo,M=h.BlockHash,A=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function R(){if(!(this instanceof R))return new R;
1M.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=A,this.W=Array(160)}function k(f,c,u,d,h){var l=f&u^~f&h;return l<0&&(l+=0x100000000),l}function P(f,c,u,d,h,l){var p=c&d^~c&l;return p<0&&(p+=0x100000000),p}function I(f,c,u,d,h){var l=f&u^f&h^u&h;return l<0&&(l+=0x100000000),l}function O(f,c,u,d,h,l){var p=c&d^c&l^d&l;return p<0&&(p+=0x100000000),p}function T(f,c){var u=p(f,c,28)^p(c,f,2)^p(c,f,7);return u<0&&(u+=0x100000000),u}function N(f,c){var u=b(f,c,28)^b(c,f,2)^b(c,f,7);return u<0&&(u+=0x100000000),u}function C(f,c){var u=p(f,c,14)^p(f,c,18)^p(c,f,9);return u<0&&(u+=0x100000000),u}function B(f,c){var u=b(f,c,14)^b(f,c,18)^b(c,f,9);return u<0&&(u+=0x100000000),u}function L(f,c){var u=p(f,c,1)^p(f,c,8)^y(f,c,7);return u<0&&(u+=0x100000000),u}function D(f,c){var u=b(f,c,1)^b(f,c,8)^m(f,c,7);return u<0&&(u+=0x100000000),u}function U(f,c){var u=p(f,c,19)^p(c,f,29)^y(f,c,6);return u<0&&(u+=0x100000000),u}function j(f,c){var u=b(f,c,19)^b(c,f,29)^m(f,c,6);return u<0&&(u+=0x100000000),u}d.inherits(R,M),f.exports=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.prototype._prepareBlock=function(f,c){for(var u=this.W,d=0;d<32;d++)u[d]=f[c+d];for(;d<u.length;d+=2){var h=U(u[d-4],u[d-3]),l=j(u[d-4],u[d-3]),p=u[d-14],b=u[d-13],y=L(u[d-30],u[d-29]),m=D(u[d-30],u[d-29]),g=u[d-32],v=u[d-31];u[d]=w(h,l,p,b,y,m,g,v),u[d+1]=x(h,l,p,b,y,m,g,v)}},R.prototype._update=function(f,c){this._prepareBlock(f,c);var u=this.W,d=this.h[0],h=this.h[1],p=this.h[2],b=this.h[3],y=this.h[4],m=this.h[5],w=this.h[6],x=this.h[7],M=this.h[8],A=this.h[9],R=this.h[10],L=this.h[11],D=this.h[12],U=this.h[13],j=this.h[14],F=this.h[15];l(this.k.length===u.length);for(var q=0;q<u.length;q+=2){var $=j,z=F,V=C(M,A),K=B(M,A),H=k(M,A,R,L,D),W=P(M,A,R,L,D,U),G=this.k[q],J=this.k[q+1],Y=u[q],X=u[q+1],Q=S($,z,V,K,H,W,G,J,Y,X),Z=E($,z,V,K,H,W,G,J,Y,X);$=T(d,h),z=N(d,h);var ee=v($,z,V=I(d,h,p,b,y),K=O(d,h,p,b,y,m)),et=_($,z,V,K);j=D,F=U,D=R,U=L,R=M,L=A,M=v(w,x,Q,Z),A=_(x,x,Q,Z),w=y,x=m,y=p,m=b,p=d,b=h,d=v(Q,Z,ee,et),h=_(Q,Z,ee,et)}g(this.h,0,d,h),g(this.h,2,p,b),g(this.h,4,y,m),g(this.h,6,w,x),g(this.h,8,M,A),g(this.h,10,R,L),g(this.h,12,D,U),g(this.h,14,j,F)},R.prototype._digest=function(f){return"hex"===f?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},9101:function(f,c,u){"use strict";var d=u(6302).rotr32;function h(f,c,u){return f&c^~f&u}function l(f,c,u){return f&c^f&u^c&u}function p(f,c,u){return f^c^u}c.ft_1=function(f,c,u,d){return 0===f?h(c,u,d):1===f||3===f?p(c,u,d):2===f?l(c,u,d):void 0},c.ch32=h,c.maj32=l,c.p32=p,c.s0_256=function(f){return d(f,2)^d(f,13)^d(f,22)},c.s1_256=function(f){return d(f,6)^d(f,11)^d(f,25)},c.g0_256=function(f){return d(f,7)^d(f,18)^f>>>3},c.g1_256=function(f){return d(f,17)^d(f,19)^f>>>10}},6302:function(f,c,u){"use strict";var d=u(7551);function h(f,c){return(64512&f.charCodeAt(c))==55296&&!(c<0)&&!(c+1>=f.length)&&(64512&f.charCodeAt(c+1))==56320}function l(f){return(f>>>24|f>>>8&65280|f<<8&0xff0000|(255&f)<<24)>>>0}function p(f){return 1===f.length?"0"+f:f}function b(f){if(7===f.length)return"0"+f;if(6===f.length)return"00"+f;if(5===f.length)return"000"+f;if(4===f.length)return"0000"+f;if(3===f.length)return"00000"+f;else if(2===f.length)return"000000"+f;else if(1===f.length)return"0000000"+f;else return f}c.inherits=u(1638),c.toArray=function(f,c){if(Array.isArray(f))return f.slice();if(!f)return[];var u=[];if("string"==typeof f)if(c){if("hex"===c)for((f=f.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(f="0"+f),l=0;l<f.length;l+=2)u.push(parseInt(f[l]+f[l+1],16))}else for(var d=0,l=0;l<f.length;l++){var p=f.charCodeAt(l);p<128?u[d++]=p:(p<2048?u[d++]=p>>6|192:(h(f,l)?(p=65536+((1023&p)<<10)+(1023&f.charCodeAt(++l)),u[d++]=p>>18|240,u[d++]=p>>12&63|128):u[d++]=p>>12|224,u[d++]=p>>6&63|128),u[d++]=63&p|128)}else for(l=0;l<f.length;l++)u[l]=0|f[l];return u},c.toHex=function(f){for(var c="",u=0;u<f.length;u++)c+=p(f[u].toString(16));return c},c.htonl=l,c.toHex32=function(f,c){for(var u="",d=0;d<f.length;d++){var h=f[d];"little"===c&&(h=l(h)),u+=b(h.toString(16))}return u},c.zero2=p,c.zero8=b,c.join32=function(f,c,u,h){var l,p=u-c;d(p%4==0);for(var b=Array(p/4),y=0,m=c;y<b.length;y++,m+=4)l="big"===h?f[m]<<24|f[m+1]<<16|f[m+2]<<8|f[m+3]:f[m+3]<<24|f[m+2]<<16|f[m+1]<<8|f[m],b[y]=l>>>0;return b},c.split32=function(f,c){for(var u=Array(4*f.length),d=0,h=0;d<f.length;d++,h+=4){var l=f[d];"big"===c?(u[h]=l>>>24,u[h+1]=l>>>16&255,u[h+2]=l>>>8&255,u[h+3]=255&l):(u[h+3]=l>>>24,u[h+2]=l>>>16&255,u[h+1]=l>>>8&255,u[h]=255&l)}return u},c.rotr32=function(f,c){return f>>>c|f<<32-c},c.rotl32=function(f,c){return f<<c|f>>>32-c},c.sum32=function(f,c){return f+c>>>0},c.sum32_3=function(f,c,u){return f+c+u>>>0},c.sum32_4=function(f,c,u,d){return f+c+u+d>>>0},c.sum32_5=function(f,c,u,d,h){return f+c+u+d+h>>>0},c.sum64=function(f,c,u,d){var h=f[c],l=d+f[c+1]>>>0,p=+(l<d)+u+h;f[c]=p>>>0,f[c+1]=l},c.sum64_hi=function(f,c,u,d){return+(c+d>>>0<c)+f+u>>>0},c.sum64_lo=function(f,c,u,d){return c+d>>>0},c.sum64_4_hi=function(f,c,u,d,h,l,p,b){var y,m=c;return f+u+h+p+(y=0+ +((m=m+d>>>0)<c)+ +((m=m+l>>>0)<l)+ +((m=m+b>>>0)<b))>>>0},c.sum64_4_lo=function(f,c,u,d,h,l,p,b){return c+d+l+b>>>0},c.sum64_5_hi=function(f,c,u,d,h,l,p,b,y,m){var g,v=c;return f+u+h+p+y+(g=0+ +((v=v+d>>>0)<c)+ +((v=v+l>>>0)<l)+ +((v=v+b>>>0)<b)+ +((v=v+m>>>0)<m))>>>0},c.sum64_5_lo=function(f,c,u,d,h,l,p,b,y,m){return c+d+l+b+m>>>0},c.rotr64_hi=function(f,c,u){return(c<<32-u|f>>>u)>>>0},c.rotr64_lo=function(f,c,u){return(f<<32-u|c>>>u)>>>0},c.shr64_hi=function(f,c,u){return f>>>u},c.shr64_lo=function(f,c,u){return(f<<32-u|c>>>u)>>>0}},3730:function(f,c,u){"use strict";var d=u(8044),h=u(7356),l=u(7551);function p(f){if(!(this instanceof p))return new p(f);this.hash=f.hash,this.predResist=!!f.predResist,this.outLen=this.hash.outSize,this.minEntropy=f.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var c=h.toArray(f.entropy,f.entropyEnc||"hex"),u=h.toArray(f.nonce,f.nonceEnc||"hex"),d=h.toArray(f.pers,f.persEnc||"hex");l(c.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(c,u,d)}f.exports=p,p.prototype._init=function(f,c,u){var d=f.concat(c).concat(u);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(d),this._reseed=1,this.reseedInterval=0x1000000000000},p.prototype._hmac=function(){return new d.hmac(this.hash,this.K)},p.prototype._update=function(f){var c=this._hmac().update(this.V).update([0]);f&&(c=c.update(f)),this.K=c.digest(),this.V=this._hmac().update(this.V).digest(),f&&(this.K=this._hmac().update(this.V).update([
vendor: 5,878 bytes, line 1
11]).update(f).digest(),this.V=this._hmac().update(this.V).digest())},p.prototype.reseed=function(f,c,u,d){"string"!=typeof c&&(d=u,u=c,c=null),f=h.toArray(f,c),u=h.toArray(u,d),l(f.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(f.concat(u||[])),this._reseed=1},p.prototype.generate=function(f,c,u,d){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof c&&(d=u,u=c,c=null),u&&(u=h.toArray(u,d||"hex"),this._update(u));for(var l=[];l.length<f;)this.V=this._hmac().update(this.V).digest(),l=l.concat(this.V);var p=l.slice(0,f);return this._update(u),this._reseed++,h.encode(p,c)}},1638:function(f){"function"==typeof Object.create?f.exports=function(f,c){c&&(f.super_=c,f.prototype=Object.create(c.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))}:f.exports=function(f,c){if(c){f.super_=c;var u=function(){};u.prototype=c.prototype,f.prototype=new u,f.prototype.constructor=f}}},3858:function(f,c,u){"use strict";var d=u(1638),h=u(2321),l=u(5725).Buffer,p=Array(16);function b(){h.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function y(f,c){return f<<c|f>>>32-c}function m(f,c,u,d,h,l,p){return y(f+(c&u|~c&d)+h+l|0,p)+c|0}function g(f,c,u,d,h,l,p){return y(f+(c&d|u&~d)+h+l|0,p)+c|0}function v(f,c,u,d,h,l,p){return y(f+(c^u^d)+h+l|0,p)+c|0}function _(f,c,u,d,h,l,p){return y(f+(u^(c|~d))+h+l|0,p)+c|0}d(b,h),b.prototype._update=function(){for(var f=p,c=0;c<16;++c)f[c]=this._block.readInt32LE(4*c);var u=this._a,d=this._b,h=this._c,l=this._d;u=m(u,d,h,l,f[0],0xd76aa478,7),l=m(l,u,d,h,f[1],0xe8c7b756,12),h=m(h,l,u,d,f[2],0x242070db,17),d=m(d,h,l,u,f[3],0xc1bdceee,22),u=m(u,d,h,l,f[4],0xf57c0faf,7),l=m(l,u,d,h,f[5],0x4787c62a,12),h=m(h,l,u,d,f[6],0xa8304613,17),d=m(d,h,l,u,f[7],0xfd469501,22),u=m(u,d,h,l,f[8],0x698098d8,7),l=m(l,u,d,h,f[9],0x8b44f7af,12),h=m(h,l,u,d,f[10],0xffff5bb1,17),d=m(d,h,l,u,f[11],0x895cd7be,22),u=m(u,d,h,l,f[12],0x6b901122,7),l=m(l,u,d,h,f[13],0xfd987193,12),h=m(h,l,u,d,f[14],0xa679438e,17),d=m(d,h,l,u,f[15],0x49b40821,22),u=g(u,d,h,l,f[1],0xf61e2562,5),l=g(l,u,d,h,f[6],0xc040b340,9),h=g(h,l,u,d,f[11],0x265e5a51,14),d=g(d,h,l,u,f[0],0xe9b6c7aa,20),u=g(u,d,h,l,f[5],0xd62f105d,5),l=g(l,u,d,h,f[10],0x2441453,9),h=g(h,l,u,d,f[15],0xd8a1e681,14),d=g(d,h,l,u,f[4],0xe7d3fbc8,20),u=g(u,d,h,l,f[9],0x21e1cde6,5),l=g(l,u,d,h,f[14],0xc33707d6,9),h=g(h,l,u,d,f[3],0xf4d50d87,14),d=g(d,h,l,u,f[8],0x455a14ed,20),u=g(u,d,h,l,f[13],0xa9e3e905,5),l=g(l,u,d,h,f[2],0xfcefa3f8,9),h=g(h,l,u,d,f[7],0x676f02d9,14),d=g(d,h,l,u,f[12],0x8d2a4c8a,20),u=v(u,d,h,l,f[5],0xfffa3942,4),l=v(l,u,d,h,f[8],0x8771f681,11),h=v(h,l,u,d,f[11],0x6d9d6122,16),d=v(d,h,l,u,f[14],0xfde5380c,23),u=v(u,d,h,l,f[1],0xa4beea44,4),l=v(l,u,d,h,f[4],0x4bdecfa9,11),h=v(h,l,u,d,f[7],0xf6bb4b60,16),d=v(d,h,l,u,f[10],0xbebfbc70,23),u=v(u,d,h,l,f[13],0x289b7ec6,4),l=v(l,u,d,h,f[0],0xeaa127fa,11),h=v(h,l,u,d,f[3],0xd4ef3085,16),d=v(d,h,l,u,f[6],0x4881d05,23),u=v(u,d,h,l,f[9],0xd9d4d039,4),l=v(l,u,d,h,f[12],0xe6db99e5,11),h=v(h,l,u,d,f[15],0x1fa27cf8,16),d=v(d,h,l,u,f[2],0xc4ac5665,23),u=_(u,d,h,l,f[0],0xf4292244,6),l=_(l,u,d,h,f[7],0x432aff97,10),h=_(h,l,u,d,f[14],0xab9423a7,15),d=_(d,h,l,u,f[5],0xfc93a039,21),u=_(u,d,h,l,f[12],0x655b59c3,6),l=_(l,u,d,h,f[3],0x8f0ccc92,10),h=_(h,l,u,d,f[10],0xffeff47d,15),d=_(d,h,l,u,f[1],0x85845dd1,21),u=_(u,d,h,l,f[8],0x6fa87e4f,6),l=_(l,u,d,h,f[15],0xfe2ce6e0,10),h=_(h,l,u,d,f[6],0xa3014314,15),d=_(d,h,l,u,f[13],0x4e0811a1,21),u=_(u,d,h,l,f[4],0xf7537e82,6),l=_(l,u,d,h,f[11],0xbd3af235,10),h=_(h,l,u,d,f[2],0x2ad7d2bb,15),d=_(d,h,l,u,f[9],0xeb86d391,21),this._a=this._a+u|0,this._b=this._b+d|0,this._c=this._c+h|0,this._d=this._d+l|0},b.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var f=l.allocUnsafe(16);return f.writeInt32LE(this._a,0),f.writeInt32LE(this._b,4),f.writeInt32LE(this._c,8),f.writeInt32LE(this._d,12),f},f.exports=b},6821:function(f,c,u){var d=u(5944),h=u(4259);function l(f){this.rand=f||new h.Rand}f.exports=l,l.create=function(f){return new l(f)},l.prototype._randbelow=function(f){var c=Math.ceil(f.bitLength()/8);do var u=new d(this.rand.generate(c));while(u.cmp(f)>=0)return u},l.prototype._randrange=function(f,c){var u=c.sub(f);return f.add(this._randbelow(u))},l.prototype.test=function(f,c,u){var h=f.bitLength(),l=d.mont(f),p=new d(1).toRed(l);c||(c=Math.max(1,h/48|0));for(var b=f.subn(1),y=0;!b.testn(y);y++);for(var m=f.shrn(y),g=b.toRed(l),v=!0;c>0;c--){var _=this._randrange(new d(2),b);u&&u(_);var w=_.toRed(l).redPow(m);if(0!==w.cmp(p)&&0!==w.cmp(g)){for(var x=1;x<y;x++){if(0===(w=w.redSqr()).cmp(p))return!1;if(0===w.cmp(g))break}if(x===y)return!1}}return v},l.prototype.getDivisor=function(f,c){var u=f.bitLength(),h=d.mont(f),l=new d(1).toRed(h);c||(c=Math.max(1,u/48|0));for(var p=f.subn(1),b=0;!p.testn(b);b++);for(var y=f.shrn(b),m=p.toRed(h);c>0;c--){var g=this._randrange(new d(2),p),v=f.gcd(g);if(0!==v.cmpn(1))return v;var _=g.toRed(h).redPow(y);if(0!==_.cmp(l)&&0!==_.cmp(m)){for(var w=1;w<b;w++){if(0===(_=_.redSqr()).cmp(l))return _.fromRed().subn(1).gcd(f);if(0===_.cmp(m))break}if(w===b)return(_=_.redSqr()).fromRed().subn(1).gcd(f)}}return!1}},7551:function(f){function c(f,c){if(!f)throw Error(c||"Assertion failed")}f.exports=c,c.equal=function(f,c,u){if(f!=c)throw Error(u||"Assertion failed: "+f+" != "+c)}},7356:function(f,c){"use strict";var u=c;function d(f){return 1===f.length?"0"+f:f}function h(f){for(var c="",u=0;u<f.length;u++)c+=d(f[u].toString(16));return c}u.toArray=function(f,c){if(Array.isArray(f))return f.slice();if(!f)return[];var u=[];
1if("string"!=typeof f){for(var d=0;d<f.length;d++)u[d]=0|f[d];return u}if("hex"===c){(f=f.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(f="0"+f);for(var d=0;d<f.length;d+=2)u.push(parseInt(f[d]+f[d+1],16))}else for(var d=0;d<f.length;d++){var h=f.charCodeAt(d),l=h>>8,p=255&h;l?u.push(l,p):u.push(p)}return u},u.zero2=d,u.toHex=h,u.encode=function(f,c){return"hex"===c?h(f):f}},1907:function(f,c,u){"use strict";var d=u(9186);c.certificate=u(5627),c.RSAPrivateKey=d.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),c.RSAPublicKey=d.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),c.PublicKey=d.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(h),this.key("subjectPublicKey").bitstr())});var h=d.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});c.PrivateKey=d.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(h),this.key("subjectPrivateKey").octstr())}),c.EncryptedPrivateKey=d.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),c.DSAPrivateKey=d.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),c.DSAparam=d.define("DSAparam",function(){this.int()}),c.ECPrivateKey=d.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});var l=d.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});c.signature=d.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},5627:function(f,c,u){"use strict";var d=u(9186),h=d.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),l=d.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),p=d.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),b=d.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(p),this.key("subjectPublicKey").bitstr())}),y=d.define("RelativeDistinguishedName",function(){this.setof(l)}),m=d.define("RDNSequence",function(){this.seqof(y)}),g=d.define("Name",function(){this.choice({rdnSequence:this.use(m)})}),v=d.define("Validity",function(){this.seq().obj(this.key("notBefore").use(h),this.key("notAfter").use(h))}),_=d.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),w=d.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(p),this.key("issuer").use(g),this.key("validity").use(v),this.key("subject").use(g),this.key("subjectPublicKeyInfo").use(b),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(_).optional())});f.exports=d.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(p),this.key("signatureValue").bitstr())})},4059:function(f,c,u){var d=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,h=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,l=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,p=u(689),b=u(8642),y=u(5725).Buffer;f.exports=function(f,c){var u,m=f.toString(),g=m.match(d);if(g){var v="aes"+g[1],_=y.from(g[2],"hex"),w=y.from(g[3].replace(/[\r\n]/g,""),"base64"),x=p(c,_.slice(0,8),parseInt(g[1],10)).key,S=[],E=b.createDecipheriv(v,x,_);S.push(E.update(w)),S.push(E.final()),u=y.concat(S)}else u=new y(m.match(l)[2].replace(/[\r\n]/g,""),"base64");return{tag:m.match(h)[1],data:u}}},8012:function(f,c,u){var d=u(1907),h=u(7016),l=u(4059),p=u(8642),b=u(4542),y=u(5725).Buffer;function m(f){"object"!=typeof f||y.isBuffer(f)||(c=f.passphrase,f=f.key),"string"==typeof f&&(f=y.from(f));var c,u,h,p=l(f,c),b=p.tag,m=p.data;switch(b){case"CERTIFICATE":h=d.certificate.decode(m,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!h&&(h=d.PublicKey.decode(m,"der")),u=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return d.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=d.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw Error("unknown key id "+u)}case"ENCRYPTED PRIVATE KEY":m=g(m=d.EncryptedPrivateKey.decode(m,"der"),c);case"PRIVATE KEY":switch(u=(h=d.PrivateKey.decode(m,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return d.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:d.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=d.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw Error("unknown key id "+u)}case"RSA PUBLIC KEY":return d.RSAPublicKey.decode(m,"der");case"RSA PRIVATE KEY":return d.RSAPrivateKey.decode(m,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:d.DSAPrivateKey.decode(m,"der")};case"EC PRIVATE KEY":return{curve:(m=d.ECPrivateKey.decode(m,"der")).parameters.value,privateKey:m.privateKey};default:throw Error("unknown key type "+b)}}function g(f,c){var u=f.algorithm.decrypt.kde.kdeparams.salt,d=parseInt(f.algorithm.decrypt.kde.kdeparams.iters.toString(),10),l=h[f.algorithm.decrypt.cipher.algo.join(".")],m=f.algorithm.decrypt.cipher.iv,g=f.subjectPrivateKey,v=parseInt(l.split("-")[1],10)/8,_=b.pbkdf2Sync(c,u,d,v,"sha1"),w=p.createDecipheriv(l,_,m),x=[];return x.push(w.update(g)),x.push(w.final()),y.concat(x)}f.exports=m,m.signature=d.signature},4542:function(f,c,u){var d=u(6982),h=u(4410),l=u(741),p=u(508);function b(f,c,u,b,y,m){if(h(u,b),f=p(f,l,"Password"),c=p(c,l,"Salt"),"function"==typeof y&&(m=y,y="sha1"),"function"!=typeof m)throw Error("No callback provided to pbkdf2");
1return d.pbkdf2(f,c,u,b,y,m)}function y(f,c,u,b,y){return h(u,b),f=p(f,l,"Password"),c=p(c,l,"Salt"),y=y||"sha1",d.pbkdf2Sync(f,c,u,b,y)}d.pbkdf2Sync&&-1!==d.pbkdf2Sync.toString().indexOf("keylen, digest")?(c.pbkdf2Sync=y,c.pbkdf2=b):(c.pbkdf2Sync=u(8291),c.pbkdf2=u(9958))},9958:function(c,u,d){var l,p=d(5725).Buffer,b=d(4410),y=d(741),m=d(8291),g=d(508),v=f.g.crypto&&f.g.crypto.subtle,_={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},w=[];function x(c){if(f.g.process&&!f.g.process.browser||!v||!v.importKey||!v.deriveBits)return Promise.resolve(!1);if(void 0!==w[c])return w[c];var u=S(l=l||p.alloc(8),l,10,128,c).then(function(){return!0}).catch(function(){return!1});return w[c]=u,u}function S(f,c,u,d,h){return v.importKey("raw",f,{name:"PBKDF2"},!1,["deriveBits"]).then(function(f){return v.deriveBits({name:"PBKDF2",salt:c,iterations:u,hash:{name:h}},f,d<<3)}).then(function(f){return p.from(f)})}function E(f,c){f.then(function(f){h.default.nextTick(function(){c(null,f)})},function(f){h.default.nextTick(function(){c(f)})})}c.exports=function(c,u,d,l,p,v){"function"==typeof p&&(v=p,p=void 0);var w=_[(p=p||"sha1").toLowerCase()];if(!w||"function"!=typeof f.g.Promise)return h.default.nextTick(function(){var f;try{f=m(c,u,d,l,p)}catch(f){return v(f)}v(null,f)});if(b(d,l),c=g(c,y,"Password"),u=g(u,y,"Salt"),"function"!=typeof v)throw Error("No callback provided to pbkdf2");E(x(w).then(function(f){return f?S(c,u,d,l,w):m(c,u,d,l,p)}),v)}},741:function(f){f.exports="utf-8"},4410:function(f){var c=0x3fffffff;f.exports=function(f,u){if("number"!=typeof f)throw TypeError("Iterations not a number");if(f<0)throw TypeError("Bad iterations");
1if("number"!=typeof u)throw TypeError("Key length not a number");if(u<0||u>c||u!=u)throw TypeError("Bad key length")}},8291:function(f,c,u){var d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},h=u(3256),l=u(5725).Buffer,p=u(4410),b=u(741),y=u(508);f.exports=function(f,c,u,m,g){p(u,m),f=y(f,b,"Password"),c=y(c,b,"Salt"),g=g||"sha1";var v=l.allocUnsafe(m),_=l.allocUnsafe(c.length+4);c.copy(_,0,0,c.length);for(var w=0,x=d[g],S=Math.ceil(m/x),E=1;E<=S;E++){_.writeUInt32BE(E,c.length);for(var M=h(g,f).update(_).digest(),A=M,R=1;R<u;R++){A=h(g,f).update(A).digest();for(var k=0;k<x;k++)M[k]^=A[k]}M.copy(v,w),w+=x}return v}},508:function(f,c,u){var d=u(5725).Buffer;f.exports=function(f,c,u){if(d.isBuffer(f))return f;if("string"==typeof f)return d.from(f,c);if(ArrayBuffer.isView(f))return d.from(f.buffer);throw TypeError(u+" must be a string, a Buffer, a typed array or a DataView")}},6734:function(f,c,u){c.publicEncrypt=u(6480),c.privateDecrypt=u(8284),c.privateEncrypt=function(f,u){return c.publicEncrypt(f,u,!0)},c.publicDecrypt=function(f,u){return c.privateDecrypt(f,u,!0)}},6228:function(f,c,u){var d=u(762),h=u(5725).Buffer;function l(f){var c=h.allocUnsafe(4);return c.writeUInt32BE(f,0),c}f.exports=function(f,c){for(var u,p=h.alloc(0),b=0;p.length<c;)u=l(b++),p=h.concat([p,d("sha1").update(f).update(u).digest()]);return p.slice(0,c)}},8284:function(f,c,u){var d=u(8012),h=u(6228),l=u(8723),p=u(5944),b=u(640),y=u(762),m=u(5037),g=u(5725).Buffer;function v(f,c){var u=f.modulus.byteLength(),d=y("sha1").update(g.alloc(0)).digest(),p=d.length;if(0!==c[0])throw Error("decryption error");var b=c.slice(1,p+1),m=c.slice(p+1),v=l(b,h(m,p)),_=l(m,h(v,u-p-1));if(w(d,_.slice(0,p)))throw Error("decryption error");for(var x=p;0===_[x];)x++;if(1!==_[x++])throw Error("decryption error");return _.slice(x)}function _(f,c,u){for(var d=c.slice(0,2),h=2,l=0;0!==c[h++];)if(h>=c.length){l++;break}var p=c.slice(2,h-1);if(("0002"!==d.toString("hex")&&!u||"0001"!==d.toString("hex")&&u)&&l++,p.length<8&&l++,l)throw Error("decryption error");return c.slice(h)}function w(f,c){f=g.from(f),c=g.from(c);var u=0,d=f.length;f.length!==c.length&&(u++,d=Math.min(f.length,c.length));for(var h=-1;++h<d;)u+=f[h]^c[h];return u}f.exports=function(f,c,u){var h,l=f.padding?f.padding:u?1:4,y=d(f),w=y.modulus.byteLength();if(c.length>w||new p(c).cmp(y.modulus)>=0)throw Error("decryption error");h=u?m(new p(c),y):b(c,y);var x=g.alloc(w-h.length);if(h=g.concat([x,h],w),4===l)return v(y,h);if(1===l)return _(y,h,u);if(3===l)return h;throw Error("unknown padding")}},6480:function(f,c,u){var d=u(8012),h=u(376),l=u(762),p=u(6228),b=u(8723),y=u(5944),m=u(5037),g=u(640),v=u(5725).Buffer;function _(f,c){var u=f.modulus.byteLength(),d=c.length,m=l("sha1").update(v.alloc(0)).digest(),g=m.length,_=2*g;if(d>u-_-2)throw Error("message too long");var w=v.alloc(u-d-_-2),x=u-g-1,S=h(g),E=b(v.concat([m,w,v.alloc(1,1),c],x),p(S,x)),M=b(S,p(E,g));return new y(v.concat([v.alloc(1),M,E],u))}function w(f,c,u){var d,h=c.length,l=f.modulus.byteLength();if(h>l-11)throw Error("message too long");return d=u?v.alloc(l-h-3,255):x(l-h-3),new y(v.concat([v.from([0,u?1:2]),d,v.alloc(1),c],l))}function x(f){for(var c,u=v.allocUnsafe(f),d=0,l=h(2*f),p=0;d<f;)p===l.length&&(l=h(2*f),p=0),(c=l[p++])&&(u[d++]=c);return u}f.exports=function(f,c,u){var h,l=f.padding?f.padding:u?1:4,p=d(f);if(4===l)h=_(p,c);else if(1===l)h=w(p,c,u);else if(3===l){if((h=new y(c)).cmp(p.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return u?g(h,p):m(h,p)}},5037:function(f,c,u){var d=u(5944),h=u(5725).Buffer;f.exports=function(f,c){return h.from(f.toRed(d.mont(c.modulus)).redPow(new d(c.publicExponent)).fromRed().toArray())}},8723:function(f){f.exports=function(f,c){for(var u=f.length,d=-1;++d<u;)f[d]^=c[d];return f}},376:function(c,u,d){"use strict";var l=65536,p=0xffffffff;function b(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var y=d(5725).Buffer,m=f.g.crypto||f.g.msCrypto;function g(f,c){if(f>p)throw RangeError("requested too many random bytes");var u=y.allocUnsafe(f);if(f>0)if(f>l)for(var d=0;d<f;d+=l)m.getRandomValues(u.slice(d,d+l));else m.getRandomValues(u);return"function"==typeof c?h.default.nextTick(function(){c(null,u)}):u}m&&m.getRandomValues?c.exports=g:c.exports=b},236:function(c,u,d){"use strict";function l(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var p=d(5725);d(376);var b=p.Buffer,y=p.kMaxLength,m=f.g.crypto||f.g.msCrypto,g=0xffffffff;function v(f,c){if("number"!=typeof f||f!=f)throw TypeError("offset must be a number");if(f>g||f<0)throw TypeError("offset must be a uint32");if(f>y||f>c)throw RangeError("offset out of range")}function _(f,c,u){if("number"!=typeof f||f!=f)throw TypeError("size must be a number");if(f>g||f<0)throw TypeError("size must be a uint32");if(f+c>u||f>y)throw RangeError("buffer too small")}function w(c,u,d,h){if(!b.isBuffer(c)&&!(c instanceof f.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof u)h=u,u=0,d=c.length;else if("function"==typeof d)h=d,d=c.length-u;else if("function"!=typeof h)throw TypeError('"cb" argument must be a function');return v(u,c.length),_(d,u,c.length),x(c,u,d,h)}function x(f,c,u,d){var l=new Uint8Array(f.buffer,c,u);return(m.getRandomValues(l),d)?void h.default.nextTick(function(){d(null,f)}):f}function S(c,u,d){if(void 0===u&&(u=0),!b.isBuffer(c)&&!(c instanceof f.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return v(u,c.length),void 0===d&&(d=c.length-u),_(d,u,c.length),x(c,u,d)}m&&m.getRandomValues?(u.randomFill=w,u.randomFillSync=S):(u.randomFill=l,u.randomFillSync=l)},4329:function(f){"use strict";let c={};function u(f,u,d){function h(f,c,d){return"string"==typeof u?u:u(f,c,d)}d||(d=Error);class l extends d{constructor(f,c,u){super(h(f,c,u))}}l.prototype.name=d.name,l.prototype.code=f,c[f]=l}function d(f,c){if(!Array.isArray(f))return`of ${c} ${String(f)}`;{let u=f.length;return(f=f.map(f=>String(f)),u>2)?`one of ${c} ${f.slice(0,u-1).join(", ")}, or `+f[u-1]:2===u?`one of ${c} ${f[0]} or ${f[1]}`:`of ${c} ${f[0]}`}}function h(f,c,u){return f.substr(!u||u<0?0:+u,c.length)===c}function l(f,c,u){return(void 0===u||u>f.length)&&(u=f.length),f.substring(u-c.length,u)===c}function p(f,c,u){return"number"!=typeof u&&(u=0),!(u+c.length>f.length)&&-1!==f.indexOf(c,u)}u("ERR_INVALID_OPT_VALUE",function(f,c){return'The value "'+c+'" is 
1invalid for option "'+f+'"'},TypeError),u("ERR_INVALID_ARG_TYPE",function(f,c,u){let b,y;if("string"==typeof c&&h(c,"not ")?(b="must not be",c=c.replace(/^not /,"")):b="must be",l(f," argument"))y=`The ${f} ${b} ${d(c,"type")}`;else{let u=p(f,".")?"property":"argument";y=`The "${f}" ${u} ${b} ${d(c,"type")}`}return y+`. Received type ${typeof u}`},TypeError),u("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),u("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),u("ERR_STREAM_PREMATURE_CLOSE","Premature close"),u("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),u("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),u("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),u("ERR_STREAM_WRITE_AFTER_END","write after end"),u("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),u("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),u("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),f.exports.F=c},8686:function(f,c,u){"use strict";var d=Object.keys||function(f){var c=[];for(var u in f)c.push(u);return c};f.exports=g;var l=u(7276),p=u(4732);u(1638)(g,l);for(var b=d(p.prototype),y=0;y<b.length;y++){var m=b[y];g.prototype[m]||(g.prototype[m]=p.prototype[m])}function g(f){if(!(this instanceof g))return new g(f);l.call(this,f),p.call(this,f),this.allowHalfOpen=!0,f&&(!1===f.readable&&(this.readable=!1),!1===f.writable&&(this.writable=!1),!1===f.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",v)))}function v(){this._writableState.ended||h.default.nextTick(_,this)}function _(f){f.end()}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(g.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(g.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(g.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(f){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}})},5512:function(f,c,u){"use strict";f.exports=h;var d=u(586);function h(f){if(!(this instanceof h))return new h(f);d.call(this,f)}u(1638)(h,d),h.prototype._transform=function(f,c,u){u(null,f)}},7276:function(c,u,d){"use strict";c.exports=D,D.ReadableState=L,d(4434).EventEmitter;var l,p,b,y,m,g=function(f,c){return f.listeners(c).length},v=d(5120),_=d(181).Buffer,w=f.g.Uint8Array||function(){};function x(f){return _.from(f)}function S(f){return _.isBuffer(f)||f instanceof w}var E=d(9023);p=E&&E.debuglog?E.debuglog("stream"):function(){};var M=d(1137),A=d(2528),R=d(771).getHighWaterMark,k=d(4329).F,P=k.ERR_INVALID_ARG_TYPE,I=k.ERR_STREAM_PUSH_AFTER_EOF,O=k.ERR_METHOD_NOT_IMPLEMENTED,T=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;d(1638)(D,v);var N=A.errorOrDestroy,C=["error","close","destroy","pause","resume"];function B(f,c,u){if("function"==typeof f.prependListener)return f.prependListener(c,u);f._events&&f._events[c]?Array.isArray(f._events[c])?f._events[c].unshift(u):f._events[c]=[u,f._events[c]]:f.on(c,u)}function L(f,c,u){l=l||d(8686),f=f||{},"boolean"!=typeof u&&(u=c instanceof l),this.objectMode=!!f.objectMode,u&&(this.objectMode=this.objectMode||!!f.readableObjectMode),this.highWaterMark=R(this,f,"readableHighWaterMark",u),this.buffer=new M,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==f.emitClose,this.autoDestroy=!!f.autoDestroy,this.destroyed=!1,this.defaultEncoding=f.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,f.encoding&&(b||(b=d(7319).I),this.decoder=new b(f.encoding),this.encoding=f.encoding)}function D(f){if(l=l||d(8686),!(this instanceof D))return new D(f);var c=this instanceof l;this._readableState=new L(f,this,c),this.readable=!0,f&&("function"==typeof f.read&&(this._read=f.read),"function"==typeof f.destroy&&(this._destroy=f.destroy)),v.call(this)}function U(f,c,u,d,h){p("readableAddChunk",c);var l,b=f._readableState;if(null===c)b.reading=!1,V(f,b);else if(h||(l=F(b,c)),l)N(f,l);else if(b.objectMode||c&&c.length>0)if("string"==typeof c||b.objectMode||Object.getPrototypeOf(c)===_.prototype||(c=x(c)),d)b.endEmitted?N(f,new T):j(f,b,c,!0);else if(b.ended)N(f,new I);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!u?(c=b.decoder.write(c),b.objectMode||0!==c.length?j(f,b,c,!1):W(f,b)):j(f,b,c,!1)}else d||(b.reading=!1,W(f,b));return!b.ended&&(b.length<b.highWaterMark||0===b.length)}function j(f,c,u,d){c.flowing&&0===c.length&&!c.sync?(c.awaitDrain=0,f.emit("data",u)):(c.length+=c.objectMode?1:u.length,d?c.buffer.unshift(u):c.buffer.push(u),c.needReadable&&K(f)),W(f,c)}function F(f,c){var u;return S(c)||"string"==typeof c||void 0===c||f.objectMode||(u=new P("chunk",["string","Buffer","Uint8Array"],c)),u}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(f){this._readableState&&(this._readableState.destroyed=f)}}),D.prototype.destroy=A.destroy,D.prototype._undestroy=A.undestroy,D.prototype._destroy=function(f,c){c(f)},D.prototype.push=function(f,c){var u,d=this._readableState;return d.objectMode?u=!0:"string"==typeof f&&((c=c||d.defaultEncoding)!==d.encoding&&(f=_.from(f,c),c=""),u=!0),U(this,f,c,!1,u)},D.prototype.unshift=function(f){return U(this,f,null,!0,!1)},D.prototype.isPaused=function(){return!1===this._readableState.flowing},D.prototype.setEncoding=function(f){b||(b=d(7319).I);var c=new b(f);this._readableState.decoder=c,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 5,567 bytes, line 1
1for(var u=this._readableState.buffer.head,h="";null!==u;)h+=c.write(u.data),u=u.next;return this._readableState.buffer.clear(),""!==h&&this._readableState.buffer.push(h),this._readableState.length=h.length,this};var q=0x40000000;function $(f){return f>=q?f=q:(f--,f|=f>>>1,f|=f>>>2,f|=f>>>4,f|=f>>>8,f|=f>>>16,f++),f}function z(f,c){if(f<=0||0===c.length&&c.ended)return 0;if(c.objectMode)return 1;if(f!=f)if(c.flowing&&c.length)return c.buffer.head.data.length;else return c.length;return(f>c.highWaterMark&&(c.highWaterMark=$(f)),f<=c.length)?f:c.ended?c.length:(c.needReadable=!0,0)}function V(f,c){if(p("onEofChunk"),!c.ended){if(c.decoder){var u=c.decoder.end();u&&u.length&&(c.buffer.push(u),c.length+=c.objectMode?1:u.length)}c.ended=!0,c.sync?K(f):(c.needReadable=!1,c.emittedReadable||(c.emittedReadable=!0,H(f)))}}function K(f){var c=f._readableState;p("emitReadable",c.needReadable,c.emittedReadable),c.needReadable=!1,c.emittedReadable||(p("emitReadable",c.flowing),c.emittedReadable=!0,h.default.nextTick(H,f))}function H(f){var c=f._readableState;p("emitReadable_",c.destroyed,c.length,c.ended),!c.destroyed&&(c.length||c.ended)&&(f.emit("readable"),c.emittedReadable=!1),c.needReadable=!c.flowing&&!c.ended&&c.length<=c.highWaterMark,ee(f)}function W(f,c){c.readingMore||(c.readingMore=!0,h.default.nextTick(G,f,c))}function G(f,c){for(;!c.reading&&!c.ended&&(c.length<c.highWaterMark||c.flowing&&0===c.length);){var u=c.length;if(p("maybeReadMore read 0"),f.read(0),u===c.length)break}c.readingMore=!1}function J(f){return function(){var c=f._readableState;p("pipeOnDrain",c.awaitDrain),c.awaitDrain&&c.awaitDrain--,0===c.awaitDrain&&g(f,"data")&&(c.flowing=!0,ee(f))}}function Y(f){var c=f._readableState;c.readableListening=f.listenerCount("readable")>0,c.resumeScheduled&&!c.paused?c.flowing=!0:f.listenerCount("data")>0&&f.resume()}function X(f){p("readable nexttick read 0"),f.read(0)}function Q(f,c){c.resumeScheduled||(c.resumeScheduled=!0,h.default.nextTick(Z,f,c))}function Z(f,c){p("resume",c.reading),c.reading||f.read(0),c.resumeScheduled=!1,f.emit("resume"),ee(f),c.flowing&&!c.reading&&f.read(0)}function ee(f){var c=f._readableState;for(p("flow",c.flowing);c.flowing&&null!==f.read(););}function et(f,c){var u;return 0===c.length?null:(c.objectMode?u=c.buffer.shift():!f||f>=c.length?(u=c.decoder?c.buffer.join(""):1===c.buffer.length?c.buffer.first():c.buffer.concat(c.length),c.buffer.clear()):u=c.buffer.consume(f,c.decoder),u)}function er(f){var c=f._readableState;p("endReadable",c.endEmitted),c.endEmitted||(c.ended=!0,h.default.nextTick(ei,c,f))}function ei(f,c){if(p("endReadableNT",f.endEmitted,f.length),!f.endEmitted&&0===f.length&&(f.endEmitted=!0,c.readable=!1,c.emit("end"),f.autoDestroy)){var u=c._writableState;(!u||u.autoDestroy&&u.finished)&&c.destroy()}}function en(f,c){for(var u=0,d=f.length;u<d;u++)if(f[u]===c)return u;return -1}D.prototype.read=function(f){p("read",f),f=parseInt(f,10);var c,u=this._readableState,d=f;if(0!==f&&(u.emittedReadable=!1),0===f&&u.needReadable&&((0!==u.highWaterMark?u.length>=u.highWaterMark:u.length>0)||u.ended))return p("read: emitReadable",u.length,u.ended),0===u.length&&u.ended?er(this):K(this),null;if(0===(f=z(f,u))&&u.ended)return 0===u.length&&er(this),null;var h=u.needReadable;return p("need readable",h),(0===u.length||u.length-f<u.highWaterMark)&&p("length less than watermark",h=!0),u.ended||u.reading?p("reading or ended",h=!1):h&&(p("do read"),u.reading=!0,u.sync=!0,0===u.length&&(u.needReadable=!0),this._read(u.highWaterMark),u.sync=!1,u.reading||(f=z(d,u))),null===(c=f>0?et(f,u):null)?(u.needReadable=u.length<=u.highWaterMark,f=0):(u.length-=f,u.awaitDrain=0),0===u.length&&(u.ended||(u.needReadable=!0),d!==f&&u.ended&&er(this)),null!==c&&this.emit("data",c),c},D.prototype._read=function(f){N(this,new O("_read()"))},D.prototype.pipe=function(f,c){var u=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=f;break;case 1:d.pipes=[d.pipes,f];break;default:d.pipes.push(f)}d.pipesCount+=1,p("pipe count=%d opts=%j",d.pipesCount,c);var l=c&&!1===c.end||f===h.default.stdout||f===h.default.stderr?M:y;function b(f,c){p("onunpipe"),f===u&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,_())}function y(){p("onend"),f.end()}d.endEmitted?h.default.nextTick(l):u.once("end",l),f.on("unpipe",b);var m=J(u);f.on("drain",m);var v=!1;function _(){p("cleanup"),f.removeListener("close",S),f.removeListener("finish",E),f.removeListener("drain",m),f.removeListener("error",x),f.removeListener("unpipe",b),u.removeListener("end",y),u.removeListener("end",M),u.removeListener("data",w),v=!0,d.awaitDrain&&(!f._writableState||f._writableState.needDrain)&&m()}function w(c){p("ondata");var h=f.write(c);p("dest.write",h),!1===h&&((1===d.pipesCount&&d.pipes===f||d.pipesCount>1&&-1!==en(d.pipes,f))&&!v&&(p("false write response, pause",d.awaitDrain),d.awaitDrain++),u.pause())}function x(c){p("onerror",c),M(),f.removeListener("error",x),0===g(f,"error")&&N(f,c)}function S(){f.removeListener("finish",E),M()}function E(){p("onfinish"),f.removeListener("close",S),M()}function M(){p("unpipe"),u.unpipe(f)}return u.on("data",w),B(f,"error",x),f.once("close",S),f.once("finish",E),f.emit("pipe",u),d.flowing||(p("pipe resume"),u.resume()),f},D.prototype.unpipe=function(f){var c=this._readableState,u={hasUnpiped:!1};if(0===c.pipesCount)return this;if(1===c.pipesCount)return f&&f!==c.pipes||(f||(f=c.pipes),c.pipes=null,c.pipesCount=0,c.flowing=!1,f&&f.emit("unpipe",this,u)),this;if(!f){var d=c.pipes,h=c.pipesCount;c.pipes=null,c.pipesCount=0,c.flowing=!1;for(var l=0;l<h;
vendor: 3,672 bytes, line 1
1l++)d[l].emit("unpipe",this,{hasUnpiped:!1});return this}var p=en(c.pipes,f);return -1===p||(c.pipes.splice(p,1),c.pipesCount-=1,1===c.pipesCount&&(c.pipes=c.pipes[0]),f.emit("unpipe",this,u)),this},D.prototype.on=function(f,c){var u=v.prototype.on.call(this,f,c),d=this._readableState;return"data"===f?(d.readableListening=this.listenerCount("readable")>0,!1!==d.flowing&&this.resume()):"readable"!==f||d.endEmitted||d.readableListening||(d.readableListening=d.needReadable=!0,d.flowing=!1,d.emittedReadable=!1,p("on readable",d.length,d.reading),d.length?K(this):d.reading||h.default.nextTick(X,this)),u},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(f,c){var u=v.prototype.removeListener.call(this,f,c);return"readable"===f&&h.default.nextTick(Y,this),u},D.prototype.removeAllListeners=function(f){var c=v.prototype.removeAllListeners.apply(this,arguments);return("readable"===f||void 0===f)&&h.default.nextTick(Y,this),c},D.prototype.resume=function(){var f=this._readableState;return f.flowing||(p("resume"),f.flowing=!f.readableListening,Q(this,f)),f.paused=!1,this},D.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(f){var c=this,u=this._readableState,d=!1;for(var h in f.on("end",function(){if(p("wrapped end"),u.decoder&&!u.ended){var f=u.decoder.end();f&&f.length&&c.push(f)}c.push(null)}),f.on("data",function(h){p("wrapped data"),u.decoder&&(h=u.decoder.write(h)),u.objectMode&&null==h||(u.objectMode||h&&h.length)&&(c.push(h)||(d=!0,f.pause()))}),f)void 0===this[h]&&"function"==typeof f[h]&&(this[h]=function(c){return function(){return f[c].apply(f,arguments)}}(h));for(var l=0;l<C.length;l++)f.on(C[l],this.emit.bind(this,C[l]));return this._read=function(c){p("wrapped _read",c),d&&(d=!1,f.resume())},this},"function"==typeof Symbol&&(D.prototype[Symbol.asyncIterator]=function(){return void 0===y&&(y=d(531)),y(this)}),Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(f){this._readableState&&(this._readableState.flowing=f)}}),D._fromList=et,Object.defineProperty(D.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(D.from=function(f,c){return void 0===m&&(m=d(8812)),m(D,f,c)})},586:function(f,c,u){"use strict";f.exports=g;var d=u(4329).F,h=d.ERR_METHOD_NOT_IMPLEMENTED,l=d.ERR_MULTIPLE_CALLBACK,p=d.ERR_TRANSFORM_ALREADY_TRANSFORMING,b=d.ERR_TRANSFORM_WITH_LENGTH_0,y=u(8686);function m(f,c){var u=this._transformState;u.transforming=!1;var d=u.writecb;if(null===d)return this.emit("error",new l);u.writechunk=null,u.writecb=null,null!=c&&this.push(c),d(f);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function g(f){if(!(this instanceof g))return new g(f);y.call(this,f),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&("function"==typeof f.transform&&(this._transform=f.transform),"function"==typeof f.flush&&(this._flush=f.flush)),this.on("prefinish",v)}function v(){var f=this;
vendor: 8,964 bytes, line 1
1"function"!=typeof this._flush||this._readableState.destroyed?_(this,null,null):this._flush(function(c,u){_(f,c,u)})}function _(f,c,u){if(c)return f.emit("error",c);if(null!=u&&f.push(u),f._writableState.length)throw new b;if(f._transformState.transforming)throw new p;return f.push(null)}u(1638)(g,y),g.prototype.push=function(f,c){return this._transformState.needTransform=!1,y.prototype.push.call(this,f,c)},g.prototype._transform=function(f,c,u){u(new h("_transform()"))},g.prototype._write=function(f,c,u){var d=this._transformState;if(d.writecb=u,d.writechunk=f,d.writeencoding=c,!d.transforming){var h=this._readableState;(d.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},g.prototype._read=function(f){var c=this._transformState;null===c.writechunk||c.transforming?c.needTransform=!0:(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform))},g.prototype._destroy=function(f,c){y.prototype._destroy.call(this,f,function(f){c(f)})}},4732:function(c,u,d){"use strict";function l(f){var c=this;this.next=null,this.entry=null,this.finish=function(){Z(c,f)}}c.exports=L,L.WritableState=B;var p,b,y={deprecate:d(4774)},m=d(5120),g=d(181).Buffer,v=f.g.Uint8Array||function(){};function _(f){return g.from(f)}function w(f){return g.isBuffer(f)||f instanceof v}var x=d(2528),S=d(771).getHighWaterMark,E=d(4329).F,M=E.ERR_INVALID_ARG_TYPE,A=E.ERR_METHOD_NOT_IMPLEMENTED,R=E.ERR_MULTIPLE_CALLBACK,k=E.ERR_STREAM_CANNOT_PIPE,P=E.ERR_STREAM_DESTROYED,I=E.ERR_STREAM_NULL_VALUES,O=E.ERR_STREAM_WRITE_AFTER_END,T=E.ERR_UNKNOWN_ENCODING,N=x.errorOrDestroy;function C(){}function B(f,c,u){p=p||d(8686),f=f||{},"boolean"!=typeof u&&(u=c instanceof p),this.objectMode=!!f.objectMode,u&&(this.objectMode=this.objectMode||!!f.writableObjectMode),this.highWaterMark=S(this,f,"writableHighWaterMark",u),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===f.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=f.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(f){V(c,f)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==f.emitClose,this.autoDestroy=!!f.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}d(1638)(L,m),B.prototype.getBuffer=function(){for(var f=this.bufferedRequest,c=[];f;)c.push(f),f=f.next;return c};try{Object.defineProperty(B.prototype,"buffer",{get:y.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(f){}function L(f){var c=this instanceof(p=p||d(8686));if(!c&&!b.call(L,this))return new L(f);this._writableState=new B(f,this,c),this.writable=!0,f&&("function"==typeof f.write&&(this._write=f.write),"function"==typeof f.writev&&(this._writev=f.writev),"function"==typeof f.destroy&&(this._destroy=f.destroy),"function"==typeof f.final&&(this._final=f.final)),m.call(this)}function D(f,c){var u=new O;N(f,u),h.default.nextTick(c,u)}function U(f,c,u,d){var l;return null===u?l=new I:"string"==typeof u||c.objectMode||(l=new M("chunk",["string","Buffer"],u)),!l||(N(f,l),h.default.nextTick(d,l),!1)}function j(f,c,u){return f.objectMode||!1===f.decodeStrings||"string"!=typeof c||(c=g.from(c,u)),c}function F(f,c,u,d,h,l){if(!u){var p=j(c,d,h);d!==p&&(u=!0,h="buffer",d=p)}var b=c.objectMode?1:d.length;c.length+=b;var y=c.length<c.highWaterMark;if(y||(c.needDrain=!0),c.writing||c.corked){var m=c.lastBufferedRequest;c.lastBufferedRequest={chunk:d,encoding:h,isBuf:u,callback:l,next:null},m?m.next=c.lastBufferedRequest:c.bufferedRequest=c.lastBufferedRequest,c.bufferedRequestCount+=1}else q(f,c,!1,b,d,h,l);return y}function q(f,c,u,d,h,l,p){c.writelen=d,c.writecb=p,c.writing=!0,c.sync=!0,c.destroyed?c.onwrite(new P("write")):u?f._writev(h,c.onwrite):f._write(h,l,c.onwrite),c.sync=!1}function $(f,c,u,d,l){--c.pendingcb,u?(h.default.nextTick(l,d),h.default.nextTick(X,f,c),f._writableState.errorEmitted=!0,N(f,d)):(l(d),f._writableState.errorEmitted=!0,N(f,d),X(f,c))}function z(f){f.writing=!1,f.writecb=null,f.length-=f.writelen,f.writelen=0}function V(f,c){var u=f._writableState,d=u.sync,l=u.writecb;if("function"!=typeof l)throw new R;if(z(u),c)$(f,u,d,c,l);else{var p=G(u)||f.destroyed;p||u.corked||u.bufferProcessing||!u.bufferedRequest||W(f,u),d?h.default.nextTick(K,f,u,p,l):K(f,u,p,l)}}function K(f,c,u,d){u||H(f,c),c.pendingcb--,d(),X(f,c)}function H(f,c){0===c.length&&c.needDrain&&(c.needDrain=!1,f.emit("drain"))}function W(f,c){c.bufferProcessing=!0;var u=c.bufferedRequest;if(f._writev&&u&&u.next){var d=Array(c.bufferedRequestCount),h=c.corkedRequestsFree;h.entry=u;for(var p=0,b=!0;u;)d[p]=u,u.isBuf||(b=!1),u=u.next,p+=1;d.allBuffers=b,q(f,c,!0,c.length,d,"",h.finish),c.pendingcb++,c.lastBufferedRequest=null,h.next?(c.corkedRequestsFree=h.next,h.next=null):c.corkedRequestsFree=new l(c),c.bufferedRequestCount=0}else{for(;u;){var y=u.chunk,m=u.encoding,g=u.callback,v=c.objectMode?1:y.length;if(q(f,c,!1,v,y,m,g),u=u.next,c.bufferedRequestCount--,c.writing)break}null===u&&(c.lastBufferedRequest=null)}c.bufferedRequest=u,c.bufferProcessing=!1}function G(f){return f.ending&&0===f.length&&null===f.bufferedRequest&&!f.finished&&!f.writing}function J(f,c){f._final(function(u){c.pendingcb--,u&&N(f,u),c.prefinished=!0,f.emit("prefinish"),X(f,c)})}function Y(f,c){c.prefinished||c.finalCalled||("function"!=typeof f._final||c.destroyed?(c.prefinished=!0,f.emit("prefinish")):(c.pendingcb++,c.finalCalled=!0,h.default.nextTick(J,f,c)))}function X(f,c){var u=G(c);if(u&&(Y(f,c),0===c.pendingcb)&&(c.finished=!0,f.emit("finish"),c.autoDestroy)){var d=f._readableState;(!d||d.autoDestroy&&d.endEmitted)&&f.destroy()}return u}function Q(f,c,u){c.ending=!0,X(f,c),u&&(c.finished?h.default.nextTick(u):f.once("finish",u)),c.ended=!0,f.writable=!1}function Z(f,c,u){var d=f.entry;for(f.entry=null;d;){var h=d.callback;c.pendingcb--,h(u),d=d.next}c.corkedRequestsFree.next=f}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(f){return!!b.call(this,f)||this===L&&f&&f._writableState instanceof B}})):b=function(f){return f instanceof this},L.prototype.pipe=function(){N(this,new k)},L.prototype.write=function(f,c,u){var d=this._writableState,h=!1,l=!d.objectMode&&w(f);return l&&!g.isBuffer(f)&&(f=_(f)),"function"==typeof c&&(u=c,c=null),l?c="buffer":c||(c=d.defaultEncoding),"function"!=typeof u&&(u=C),d.ending?D(this,u):(l||U(this,d,f,u))&&(d.pendingcb++,h=F(this,d,l,f,c,u)),h},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){var f=this._writableState;f.corked&&(f.corked--,f.writing||f.corked||f.bufferProcessing||!f.bufferedRequest||W(this,f))},L.prototype.setDefaultEncoding=function(f){if("string"==typeof f&&(f=f.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((f+"").toLowerCase())>-1))throw new T(f);return this._writableState.defaultEncoding=f,this},Object.defineProperty(L.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),L.prototype._write=function(f,c,u){u(new A("_write()"))},L.prototype._writev=null,L.prototype.end=function(f,c,u){var d=this._writableState;return"function"==typeof f?(u=f,f=null,c=null):"function"==typeof c&&(u=c,c=null),null!=f&&this.write(f,c),d.corked&&(d.corked=1,this.uncork()),d.ending||Q(this,d,u),this},Object.defineProperty(L.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(f){this._writableState&&(this._writableState.destroyed=f)}}),L.prototype.destroy=x.destroy,L.prototype._undestroy=x.undestroy,L.prototype._destroy=function(f,c){c(f)}},531:function(f,c,u){"use strict";function d(f,c,u){return c in f?Object.defineProperty(f,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):f[c]=u,f}var l,p=u(8134),b=Symbol("lastResolve"),y=Symbol("lastReject"),m=Symbol("error"),g=Symbol("ended"),v=Symbol("lastPromise"),_=Symbol("handlePromise"),w=Symbol("stream");function x(f,c){return{value:f,done:c}}function S(f){var c=f[b];if(null!==c){var u=f[w].read();null!==u&&(f[v]=null,f[b]=null,f[y]=null,c(x(u,!1)))}}function E(f){h.default.nextTick(S,f)}function M(f,c){return function(u,d){f.then(function(){c[g]?u(x(void 0,!0)):c[_](u,d)},d)}}var A=Object.getPrototypeOf(function(){}
1),R=Object.setPrototypeOf((d(l={get stream(){return this[w]},next:function(){var f,c=this,u=this[m];if(null!==u)return Promise.reject(u);if(this[g])return Promise.resolve(x(void 0,!0));if(this[w].destroyed)return new Promise(function(f,u){h.default.nextTick(function(){c[m]?u(c[m]):f(x(void 0,!0))})});var d=this[v];if(d)f=new Promise(M(d,this));else{var l=this[w].read();if(null!==l)return Promise.resolve(x(l,!1));f=new Promise(this[_])}return this[v]=f,f}},Symbol.asyncIterator,function(){return this}),d(l,"return",function(){var f=this;return new Promise(function(c,u){f[w].destroy(null,function(f){f?u(f):c(x(void 0,!0))})})}),l),A);f.exports=function(f){var c,u=Object.create(R,(d(c={},w,{value:f,writable:!0}),d(c,b,{value:null,writable:!0}),d(c,y,{value:null,writable:!0}),d(c,m,{value:null,writable:!0}),d(c,g,{value:f._readableState.endEmitted,writable:!0}),d(c,_,{value:function(f,c){var d=u[w].read();d?(u[v]=null,u[b]=null,u[y]=null,f(x(d,!1))):(u[b]=f,u[y]=c)},writable:!0}),c));return u[v]=null,p(f,function(f){if(f&&"ERR_STREAM_PREMATURE_CLOSE"!==f.code){var c=u[y];null!==c&&(u[v]=null,u[b]=null,u[y]=null,c(f)),u[m]=f;return}var d=u[b];null!==d&&(u[v]=null,u[b]=null,u[y]=null,d(x(void 0,!0))),u[g]=!0}),f.on("readable",E.bind(null,u)),u}},1137:function(f,c,u){"use strict";function d(f,c){var u=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);c&&(d=d.filter(function(c){return Object.getOwnPropertyDescriptor(f,c).enumerable})),u.push.apply(u,d)}return u}function h(f){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?d(Object(u),!0).forEach(function(c){l(f,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(u)):d(Object(u)).forEach(function(c){Object.defineProperty(f,c,Object.getOwnPropertyDescriptor(u,c))})}return f}function l(f,c,u){return c in f?Object.defineProperty(f,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):f[c]=u,f}function p(f,c){if(!(f instanceof c))throw TypeError("Cannot call a class as a function")}function b(f,c){for(var u=0;u<c.length;u++){var d=c[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}function y(f,c,u){return c&&b(f.prototype,c),u&&b(f,u),f}var m=u(181).Buffer,g=u(9023).inspect,v=g&&g.custom||"inspect";function _(f,c,u){m.prototype.copy.call(f,c,u)}f.exports=function(){function f(){p(this,f),this.head=null,this.tail=null,this.length=0}return y(f,[{key:"push",value:function(f){var c={data:f,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(f){var c={data:f,next:this.head};0===this.length&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(0!==this.length){var f=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,f}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(f){if(0===this.length)return"";for(var c=this.head,u=""+c.data;c=c.next;)u+=f+c.data;return u}},{key:"concat",value:function(f){if(0===this.length)return m.alloc(0);for(var c=m.allocUnsafe(f>>>0),u=this.head,d=0;u;)_(u.data,c,d),d+=u.data.length,u=u.next;return c}},{key:"consume",value:function(f,c){var u;return f<this.head.data.length?(u=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):u=f===this.head.data.length?this.shift():c?this._getString(f):this._getBuffer(f),u}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var c=this.head,u=1,d=c.data;for(f-=d.length;c=c.next;){var h=c.data,l=f>h.length?h.length:f;if(l===h.length?d+=h:d+=h.slice(0,f),0==(f-=l)){l===h.length?(++u,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=h.slice(l));break}++u}return this.length-=u,d}},{key:"_getBuffer",value:function(f){var c=m.allocUnsafe(f),u=this.head,d=1;for(u.data.copy(c),f-=u.data.length;u=u.next;){var h=u.data,l=f>h.length?h.length:f;if(h.copy(c,c.length-f,0,l),0==(f-=l)){l===h.length?(++d,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=h.slice(l));break}++d}return this.length-=d,c}},{key:v,value:function(f,c){return g(this,h({},c,{depth:0,customInspect:!1}))}}]),f}()},2528:function(f){"use strict";function c(f,c){d(f,c),u(f)}function u(f){f._writableState&&!f._writableState.emitClose||(!f._readableState||f._readableState.emitClose)&&f.emit("close")}function d(f,c){f.emit("error",c)}f.exports={destroy:function(f,l){var p=this,b=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return b||y?l?l(f):f&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,h.default.nextTick(d,this,f)):h.default.nextTick(d,this,f)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(f){!l&&f?p._writableState?p._writableState.errorEmitted?h.default.nextTick(u,p):(p._writableState.errorEmitted=!0,h.default.nextTick(c,p,f)):h.default.nextTick(c,p,f):l?(h.default.nextTick(u,p),l(f)):h.default.nextTick(u,p)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(f,c){var u=f._readableState,d=f._writableState;u&&u.autoDestroy||d&&d.autoDestroy?f.destroy(c):f.emit("error",c)}}},8134:function(f,c,u){"use strict";var d=u(4329).F.ERR_STREAM_PREMATURE_CLOSE;function h(f){var c=!1;return function(){if(!c){c=!0;for(var u=arguments.length,d=Array(u),h=0;h<u;h++)d[h]=arguments[h];f.apply(this,d)}}}function l(){}function p(f){return f.setHeader&&"function"==typeof f.abort}function b(f,c,u){if("function"==typeof c)return b(f,null,c);c||(c={}),u=h(u||l);var y=c.readable||!1!==c.readable&&f.readable,m=c.writable||!1!==c.writable&&f.writable,g=function(){f.writable||_()},v=f._writableState&&f._writableState.finished,_=function(){m=!1,v=!0,y||u.call(f)},w=f._readableState&&f._readableState.endEmitted,x=function(){y=!1,w=!0,m||u.call(f)},S=function(c){u.call(f,c)},E=function(){var c;return y&&!w?(f._readableState&&f._readableState.ended||(c=new d),u.call(f,c)):m&&!v?(f._writableState&&f._writableState.ended||(c=new d),u.call(f,c)):void 0},M=function(){f.req.on("finish",_)};return p(f)?(f.on("complete",_),f.on("abort",E),f.req?M():f.on("request",M)):m&&!f._writableState&&(f.on("end",g),f.on("close",g)),f.on("end",x),f.on("finish",_),!1!==c.error&&f.on("error",S),f.on("close",E),function(){f.removeListener("complete",_),f.removeListener("abort",E),f.removeListener("request",M),f.req&&f.req.removeListener("finish",_),f.removeListener("end",g),f.removeListener("close",g),f.removeListener("finish",_),f.removeListener("end",x),f.removeListener("error",S),f.removeListener("close",E)}}f.exports=b},8812:function(f,c,u){"use strict";function d(f,c,u,d,h,l,p){try{var b=f[l](p),y=b.value}catch(f){u(f);return}b.done?c(y):Promise.resolve(y).then(d,h)}function h(f){return function(){var c=this,u=arguments;return new Promise(function(h,l){var p=f.apply(c,u);function b(f){d(p,h,l,b,y,"next",f)}function y(f){d(p,h,l,b,y,"throw",f)}b(void 0)})}}function l(f,c){var u=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);c&&(d=d.filter(function(c){return Object.getOwnPropertyDescriptor(f,c).enumerable})),u.push.apply(u,d)}return u}function p(f){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};
vendor: 16,172 bytes, line 1
1c%2?l(Object(u),!0).forEach(function(c){b(f,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(u)):l(Object(u)).forEach(function(c){Object.defineProperty(f,c,Object.getOwnPropertyDescriptor(u,c))})}return f}function b(f,c,u){return c in f?Object.defineProperty(f,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):f[c]=u,f}var y=u(4329).F.ERR_INVALID_ARG_TYPE;f.exports=function(f,c,u){if(c&&"function"==typeof c.next)d=c;else if(c&&c[Symbol.asyncIterator])d=c[Symbol.asyncIterator]();else if(c&&c[Symbol.iterator])d=c[Symbol.iterator]();else throw new y("iterable",["Iterable"],c);var d,l=new f(p({objectMode:!0},u)),b=!1;function m(){return g.apply(this,arguments)}function g(){return(g=h(function*(){try{var f=yield d.next(),c=f.value;f.done?l.push(null):l.push((yield c))?m():b=!1}catch(f){l.destroy(f)}})).apply(this,arguments)}return l._read=function(){b||(b=!0,m())},l}},694:function(f,c,u){"use strict";function d(f){var c=!1;return function(){c||(c=!0,f.apply(void 0,arguments))}}var h,l=u(4329).F,p=l.ERR_MISSING_ARGS,b=l.ERR_STREAM_DESTROYED;function y(f){if(f)throw f}function m(f){return f.setHeader&&"function"==typeof f.abort}function g(f,c,l,p){p=d(p);var y=!1;f.on("close",function(){y=!0}),void 0===h&&(h=u(8134)),h(f,{readable:c,writable:l},function(f){if(f)return p(f);y=!0,p()});var g=!1;return function(c){if(!y&&!g){if(g=!0,m(f))return f.abort();if("function"==typeof f.destroy)return f.destroy();p(c||new b("pipe"))}}}function v(f){f()}function _(f,c){return f.pipe(c)}function w(f){return f.length&&"function"==typeof f[f.length-1]?f.pop():y}f.exports=function(){for(var f,c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];var h=w(u);if(Array.isArray(u[0])&&(u=u[0]),u.length<2)throw new p("streams");var l=u.map(function(c,d){var p=d<u.length-1;return g(c,p,d>0,function(c){f||(f=c),c&&l.forEach(v),p||(l.forEach(v),h(f))})});return u.reduce(_)}},771:function(f,c,u){"use strict";var d=u(4329).F.ERR_INVALID_OPT_VALUE;function h(f,c,u){return null!=f.highWaterMark?f.highWaterMark:c?f[u]:null}f.exports={getHighWaterMark:function(f,c,u,l){var p=h(c,l,u);if(null!=p){if(!(isFinite(p)&&Math.floor(p)===p)||p<0)throw new d(l?u:"highWaterMark",p);return Math.floor(p)}return f.objectMode?16:16384}}},5120:function(f,c,u){f.exports=u(2203)},5486:function(f,c,u){var d=u(2203);"disable"===h.default.env.READABLE_STREAM&&d?(f.exports=d.Readable,Object.assign(f.exports,d),f.exports.Stream=d):((c=f.exports=u(7276)).Stream=d||c,c.Readable=c,c.Writable=u(4732),c.Duplex=u(8686),c.Transform=u(586),c.PassThrough=u(5512),c.finished=u(8134),c.pipeline=u(694))},8987:function(f,c,u){"use strict";var d=u(181).Buffer,h=u(1638),l=u(2321),p=Array(16),b=[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],y=[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],m=[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],g=[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],v=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],_=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function w(){l.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function x(f,c){return f<<c|f>>>32-c}function S(f,c,u,d,h,l,p,b){return x(f+(c^u^d)+l+p|0,b)+h|0}function E(f,c,u,d,h,l,p,b){return x(f+(c&u|~c&d)+l+p|0,b)+h|0}function M(f,c,u,d,h,l,p,b){return x(f+((c|~u)^d)+l+p|0,b)+h|0}function A(f,c,u,d,h,l,p,b){return x(f+(c&d|u&~d)+l+p|0,b)+h|0}function R(f,c,u,d,h,l,p,b){return x(f+(c^(u|~d))+l+p|0,b)+h|0}h(w,l),w.prototype._update=function(){for(var f,c,u=p,d=0;d<16;++d)u[d]=this._block.readInt32LE(4*d);for(var h=0|this._a,l=0|this._b,w=0|this._c,k=0|this._d,P=0|this._e,I=0|this._a,O=0|this._b,T=0|this._c,N=0|this._d,C=0|this._e,B=0;B<80;B+=1)B<16?(f=S(h,l,w,k,P,u[b[B]],v[0],m[B]),c=R(I,O,T,N,C,u[y[B]],_[0],g[B])):B<32?(f=E(h,l,w,k,P,u[b[B]],v[1],m[B]),c=A(I,O,T,N,C,u[y[B]],_[1],g[B])):B<48?(f=M(h,l,w,k,P,u[b[B]],v[2],m[B]),c=M(I,O,T,N,C,u[y[B]],_[2],g[B])):B<64?(f=A(h,l,w,k,P,u[b[B]],v[3],m[B]),c=E(I,O,T,N,C,u[y[B]],_[3],g[B])):(f=R(h,l,w,k,P,u[b[B]],v[4],m[B]),c=S(I,O,T,N,C,u[y[B]],_[4],g[B])),h=P,P=k,k=x(w,10),w=l,l=f,I=C,C=N,N=x(T,10),T=O,O=c;var L=this._b+w+N|0;this._b=this._c+k+C|0,this._c=this._d+P+I|0,this._d=this._e+h+O|0,this._e=this._a+l+T|0,this._a=L},w.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var f=d.alloc?d.alloc(20):new d(20);return f.writeInt32LE(this._a,0),f.writeInt32LE(this._b,4),f.writeInt32LE(this._c,8),f.writeInt32LE(this._d,12),f.writeInt32LE(this._e,16),f},f.exports=w},5056:function(f,c,u){var d=u(181),h=d.Buffer;function l(f,c){for(var u in f)c[u]=f[u]}function p(f,c,u){return h(f,c,u)}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?f.exports=d:(l(d,c),c.Buffer=p),p.prototype=Object.create(h.prototype),l(h,p),p.from=function(f,c,u){if("number"==typeof f)throw TypeError("Argument must not be a number");return h(f,c,u)},p.alloc=function(f,c,u){if("number"!=typeof f)throw TypeError("Argument must be a number");var d=h(f);return void 0!==c?"string"==typeof u?d.fill(c,u):d.fill(c):d.fill(0),d},p.allocUnsafe=function(f){if("number"!=typeof f)throw TypeError("Argument must be a number");return h(f)},p.allocUnsafeSlow=function(f){if("number"!=typeof f)throw TypeError("Argument must be a number");return d.SlowBuffer(f)}},5725:function(f,c,u){var d=u(181),h=d.Buffer;function l(f,c){for(var u in f)c[u]=f[u]}function p(f,c,u){return h(f,c,u)}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?f.exports=d:(l(d,c),c.Buffer=p),p.prototype=Object.create(h.prototype),l(h,p),p.from=function(f,c,u){if("number"==typeof f)throw TypeError("Argument must not be a number");return h(f,c,u)},p.alloc=function(f,c,u){if("number"!=typeof f)throw TypeError("Argument must be a number");var d=h(f);return void 0!==c?"string"==typeof u?d.fill(c,u):d.fill(c):d.fill(0),d},p.allocUnsafe=function(f){if("number"!=typeof f)throw TypeError("Argument must be a number");return h(f)},p.allocUnsafeSlow=function(f){if("number"!=typeof f)throw TypeError("Argument must be a number");return d.SlowBuffer(f)}},1007:function(f,c,u){var d=u(5725).Buffer;function h(f,c){this._block=d.alloc(f),this._finalSize=c,this._blockSize=f,this._len=0}h.prototype.update=function(f,c){"string"==typeof f&&(c=c||"utf8",f=d.from(f,c));for(var u=this._block,h=this._blockSize,l=f.length,p=this._len,b=0;b<l;){for(var y=p%h,m=Math.min(l-b,h-y),g=0;g<m;g++)u[y+g]=f[b+g];p+=m,b+=m,p%h==0&&this._update(u)}return this._len+=l,this},h.prototype.digest=function(f){var c=this._len%this._blockSize;this._block[c]=128,this._block.fill(0,c+1),c>=this._finalSize&&(this._update(this._block),this._block.fill(0));var u=8*this._len;if(u<=0xffffffff)this._block.writeUInt32BE(u,this._blockSize-4);else{var d=u>>>0,h=(u-d)/0x100000000;this._block.writeUInt32BE(h,this._blockSize-8),this._block.writeUInt32BE(d,this._blockSize-4)}this._update(this._block);var l=this._hash();return f?l.toString(f):l},h.prototype._update=function(){throw Error("_update must be implemented by subclass")},f.exports=h},3251:function(f,c,u){var d=f.exports=function(f){var c=d[f=f.toLowerCase()];if(!c)throw Error(f+" is not supported (we accept pull requests)");return new c};d.sha=u(569),d.sha1=u(822),d.sha224=u(5365),d.sha256=u(1380),d.sha384=u(3840),d.sha512=u(7921)},569:function(f,c,u){var d=u(1638),h=u(1007),l=u(5725).Buffer,p=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],b=Array(80);function y(){this.init(),this._w=b,h.call(this,64,56)}function m(f){return f<<5|f>>>27}function g(f){return f<<30|f>>>2}function v(f,c,u,d){return 0===f?c&u|~c&d:2===f?c&u|c&d|u&d:c^u^d}d(y,h),y.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},y.prototype._update=function(f){for(var c=this._w,u=0|this._a,d=0|this._b,h=0|this._c,l=0|this._d,b=0|this._e,y=0;y<16;++y)c[y]=f.readInt32BE(4*y);for(;y<80;++y)c[y]=c[y-3]^c[y-8]^c[y-14]^c[y-16];for(var _=0;_<80;++_){var w=~~(_/20),x=m(u)+v(w,d,h,l)+b+c[_]+p[w]|0;b=l,l=h,h=g(d),d=u,u=x}this._a=u+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=l+this._d|0,this._e=b+this._e|0},y.prototype._hash=function(){var f=l.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},f.exports=y},822:function(f,c,u){var d=u(1638),h=u(1007),l=u(5725).Buffer,p=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],b=Array(80);function y(){this.init(),this._w=b,h.call(this,64,56)}function m(f){return f<<1|f>>>31}function g(f){return f<<5|f>>>27}function v(f){return f<<30|f>>>2}function _(f,c,u,d){return 0===f?c&u|~c&d:2===f?c&u|c&d|u&d:c^u^d}d(y,h),y.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},y.prototype._update=function(f){for(var c=this._w,u=0|this._a,d=0|this._b,h=0|this._c,l=0|this._d,b=0|this._e,y=0;y<16;++y)c[y]=f.readInt32BE(4*y);for(;y<80;++y)c[y]=m(c[y-3]^c[y-8]^c[y-14]^c[y-16]);for(var w=0;w<80;++w){var x=~~(w/20),S=g(u)+_(x,d,h,l)+b+c[w]+p[x]|0;b=l,l=h,h=v(d),d=u,u=S}this._a=u+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=l+this._d|0,this._e=b+this._e|0},y.prototype._hash=function(){var f=l.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},f.exports=y},5365:function(f,c,u){var d=u(1638),h=u(1380),l=u(1007),p=u(5725).Buffer,b=Array(64);function y(){this.init(),this._w=b,l.call(this,64,56)}d(y,h),y.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},y.prototype._hash=function(){var f=p.allocUnsafe(28);return f.writeInt32BE(this._a,0),f.writeInt32BE(this._b,4),f.writeInt32BE(this._c,8),f.writeInt32BE(this._d,12),f.writeInt32BE(this._e,16),f.writeInt32BE(this._f,20),f.writeInt32BE(this._g,24),f},f.exports=y},1380:function(f,c,u){var d=u(1638),h=u(1007),l=u(5725).Buffer,p=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],b=Array(64);function y(){this.init(),this._w=b,h.call(this,64,56)}function m(f,c,u){return u^f&(c^u)}function g(f,c,u){return f&c|u&(f|c)}function v(f){return(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10)}function _(f){return(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7)}function w(f){return(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3}function x(f){return(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10}d(y,h),y.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},y.prototype._update=function(f){for(var c=this._w,u=0|this._a,d=0|this._b,h=0|this._c,l=0|this._d,b=0|this._e,y=0|this._f,S=0|this._g,E=0|this._h,M=0;M<16;++M)c[M]=f.readInt32BE(4*M);for(;M<64;++M)c[M]=x(c[M-2])+c[M-7]+w(c[M-15])+c[M-16]|0;for(var A=0;A<64;++A){var R=E+_(b)+m(b,y,S)+p[A]+c[A]|0,k=v(u)+g(u,d,h)|0;E=S,S=y,y=b,b=l+R|0,l=h,h=d,d=u,u=R+k|0}this._a=u+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=l+this._d|0,this._e=b+this._e|0,this._f=y+this._f|0,this._g=S+this._g|0,this._h=E+this._h|0},y.prototype._hash=function(){var f=l.allocUnsafe(32);return f.writeInt32BE(this._a,0),f.writeInt32BE(this._b,4),f.writeInt32BE(this._c,8),f.writeInt32BE(this._d,12),f.writeInt32BE(this._e,16),f.writeInt32BE(this._f,20),f.writeInt32BE(this._g,24),f.writeInt32BE(this._h,28),f},f.exports=y},3840:function(f,c,u){var d=u(1638),h=u(7921),l=u(1007),p=u(5725).Buffer,b=Array(160);function y(){this.init(),this._w=b,l.call(this,128,112)}d(y,h),y.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},y.prototype._hash=function(){var f=p.allocUnsafe(48);function c(c,u,d){f.writeInt32BE(c,d),f.writeInt32BE(u,d+4)}return c(this._ah,this._al,0),c(this._bh,this._bl,8),c(this._ch,this._cl,16),c(this._dh,this._dl,24),c(this._eh,this._el,32),c(this._fh,this._fl,40),f},f.exports=y},7921:function(f,c,u){var d=u(1638),h=u(1007),l=u(5725).Buffer,p=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],b=Array(160);function y(){this.init(),this._w=b,h.call(this,128,112)}function m(f,c,u){return u^f&(c^u)}function g(f,c,u){return f&c|u&(f|c)}function v(f,c){return(f>>>28|c<<4)^(c>>>2|f<<30)^(c>>>7|f<<25)}function _(f,c){return(f>>>14|c<<18)^(f>>>18|c<<14)^(c>>>9|f<<23)}function w(f,c){return(f>>>1|c<<31)^(f>>>8|c<<24)^f>>>7}function x(f,c){return(f>>>1|c<<31)^(f>>>8|c<<24)^(f>>>7|c<<25)}function S(f,c){return(f>>>19|c<<13)^(c>>>29|f<<3)^f>>>6}function E(f,c){return(f>>>19|c<<13)^(c>>>29|f<<3)^(f>>>6|c<<26)}function M(f,c){return+(f>>>0<c>>>0)}
vendor: 6,982 bytes, line 1
1d(y,h),y.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},y.prototype._update=function(f){for(var c=this._w,u=0|this._ah,d=0|this._bh,h=0|this._ch,l=0|this._dh,b=0|this._eh,y=0|this._fh,A=0|this._gh,R=0|this._hh,k=0|this._al,P=0|this._bl,I=0|this._cl,O=0|this._dl,T=0|this._el,N=0|this._fl,C=0|this._gl,B=0|this._hl,L=0;L<32;L+=2)c[L]=f.readInt32BE(4*L),c[L+1]=f.readInt32BE(4*L+4);for(;L<160;L+=2){var D=c[L-30],U=c[L-30+1],j=w(D,U),F=x(U,D),q=S(D=c[L-4],U=c[L-4+1]),$=E(U,D),z=c[L-14],V=c[L-14+1],K=c[L-32],H=c[L-32+1],W=F+V|0,G=j+z+M(W,F)|0;G=(G=G+q+M(W=W+$|0,$)|0)+K+M(W=W+H|0,H)|0,c[L]=G,c[L+1]=W}for(var J=0;J<160;J+=2){G=c[J],W=c[J+1];var Y=g(u,d,h),X=g(k,P,I),Q=v(u,k),Z=v(k,u),ee=_(b,T),et=_(T,b),er=p[J],ei=p[J+1],en=m(b,y,A),eo=m(T,N,C),ea=B+et|0,es=R+ee+M(ea,B)|0;es=(es=(es=es+en+M(ea=ea+eo|0,eo)|0)+er+M(ea=ea+ei|0,ei)|0)+G+M(ea=ea+W|0,W)|0;var ef=Z+X|0,ec=Q+Y+M(ef,Z)|0;R=A,B=C,A=y,C=N,y=b,N=T,b=l+es+M(T=O+ea|0,O)|0,l=h,O=I,h=d,I=P,d=u,P=k,u=es+ec+M(k=ea+ef|0,ea)|0}this._al=this._al+k|0,this._bl=this._bl+P|0,this._cl=this._cl+I|0,this._dl=this._dl+O|0,this._el=this._el+T|0,this._fl=this._fl+N|0,this._gl=this._gl+C|0,this._hl=this._hl+B|0,this._ah=this._ah+u+M(this._al,k)|0,this._bh=this._bh+d+M(this._bl,P)|0,this._ch=this._ch+h+M(this._cl,I)|0,this._dh=this._dh+l+M(this._dl,O)|0,this._eh=this._eh+b+M(this._el,T)|0,this._fh=this._fh+y+M(this._fl,N)|0,this._gh=this._gh+A+M(this._gl,C)|0,this._hh=this._hh+R+M(this._hl,B)|0},y.prototype._hash=function(){var f=l.allocUnsafe(64);function c(c,u,d){f.writeInt32BE(c,d),f.writeInt32BE(u,d+4)}return c(this._ah,this._al,0),c(this._bh,this._bl,8),c(this._ch,this._cl,16),c(this._dh,this._dl,24),c(this._eh,this._el,32),c(this._fh,this._fl,40),c(this._gh,this._gl,48),c(this._hh,this._hl,56),f},f.exports=y},7319:function(f,c,u){"use strict";var d=u(5056).Buffer,h=d.isEncoding||function(f){switch((f=""+f)&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function l(f){var c;if(!f)return"utf8";for(;;)switch(f){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return f;default:if(c)return;f=(""+f).toLowerCase(),c=!0}}function p(f){var c=l(f);if("string"!=typeof c&&(d.isEncoding===h||!h(f)))throw Error("Unknown encoding: "+f);return c||f}function b(f){var c;switch(this.encoding=p(f),this.encoding){case"utf16le":this.text=x,this.end=S,c=4;break;case"utf8":this.fillLast=v,c=4;break;case"base64":this.text=E,this.end=M,c=3;break;default:this.write=A,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(c)}function y(f){return f<=127?0:f>>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function m(f,c,u){var d=c.length-1;if(d<u)return 0;var h=y(c[d]);return h>=0?(h>0&&(f.lastNeed=h-1),h):--d<u||-2===h?0:(h=y(c[d]))>=0?(h>0&&(f.lastNeed=h-2),h):--d<u||-2===h?0:(h=y(c[d]))>=0?(h>0&&(2===h?h=0:f.lastNeed=h-3),h):0}function g(f,c,u){if((192&c[0])!=128)return f.lastNeed=0,"�";if(f.lastNeed>1&&c.length>1){if((192&c[1])!=128)return f.lastNeed=1,"�";if(f.lastNeed>2&&c.length>2&&(192&c[2])!=128)return f.lastNeed=2,"�"}}function v(f){var c=this.lastTotal-this.lastNeed,u=g(this,f,c);return void 0!==u?u:this.lastNeed<=f.length?(f.copy(this.lastChar,c,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(f.copy(this.lastChar,c,0,f.length),this.lastNeed-=f.length)}function _(f,c){var u=m(this,f,c);if(!this.lastNeed)return f.toString("utf8",c);this.lastTotal=u;var d=f.length-(u-this.lastNeed);return f.copy(this.lastChar,0,d),f.toString("utf8",c,d)}function w(f){var c=f&&f.length?this.write(f):"";return this.lastNeed?c+"�":c}function x(f,c){if((f.length-c)%2==0){var u=f.toString("utf16le",c);if(u){var d=u.charCodeAt(u.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],u.slice(0,-1)}return u}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",c,f.length-1)}function S(f){var c=f&&f.length?this.write(f):"";if(this.lastNeed){var u=this.lastTotal-this.lastNeed;return c+this.lastChar.toString("utf16le",0,u)}return c}function E(f,c){var u=(f.length-c)%3;return 0===u?f.toString("base64",c):(this.lastNeed=3-u,this.lastTotal=3,1===u?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",c,f.length-u))}function M(f){var c=f&&f.length?this.write(f):"";return this.lastNeed?c+this.lastChar.toString("base64",0,3-this.lastNeed):c}function A(f){return f.toString(this.encoding)}function R(f){return f&&f.length?this.write(f):""}c.I=b,b.prototype.write=function(f){var c,u;if(0===f.length)return"";if(this.lastNeed){if(void 0===(c=this.fillLast(f)))return"";u=this.lastNeed,this.lastNeed=0}else u=0;return u<f.length?c?c+this.text(f,u):this.text(f,u):c||""},b.prototype.end=w,b.prototype.text=_,b.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length}},4774:function(c){function u(c){try{if(!f.g.localStorage)return!1}catch(f){return!1}var u=f.g.localStorage[c];return null!=u&&"true"===String(u).toLowerCase()}c.exports=function f(f,c){if(u("noDeprecation"))return f;var d=!1;return function(){if(!d){if(u("throwDeprecation"))throw Error(c);u("traceDeprecation")?console.trace(c):console.warn(c),d=!0}return f.apply(this,arguments)}}},181:function(c){"use strict";c.exports=f.r(449440)},6982:function(c){"use strict";c.exports=f.r(946272)},4434:function(c){"use strict";c.exports=f.r(679877)},2203:function(c){"use strict";c.exports=f.r(524051)},3193:function(c){"use strict";c.exports=f.r(924753)},9023:function(c){"use strict";c.exports=f.r(729394)},9154:function(c){"use strict";c.exports=f.r(319856)},3349:function(f){"use strict";f.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"}
1,"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},3678:function(f){"use strict";f.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},6456:function(f){"use strict";f.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7821:function(f){"use strict";f.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
107b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},4497:function(f){"use strict";f.exports={rE:"6.5.3"}},7016:function(f){"use strict";f.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},p={};function b(f){var c=p[f];if(void 0!==c)return c.exports;var u=p[f]={id:f,loaded:!1,exports:{}},d=!0;try{l[f].call(u.exports,u,u.exports,b),d=!1}finally{d&&delete p[f]}return u.loaded=!0,u.exports}b.nmd=function(f){return f.paths=[],f.children||(f.children=[]),f},b.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_babel-plugi_fd21bb6a172ff382fa
178ed202dda2e3e/node_modules/next/dist/compiled/crypto-browserify/";var y={};!function(){"use strict";var f=y;f.randomBytes=f.rng=f.pseudoRandomBytes=f.prng=b(376),f.createHash=f.Hash=b(762),f.createHmac=f.Hmac=b(3256);var c=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(b(6713)));f.getHashes=function(){return c};var u=b(4542);f.pbkdf2=u.pbkdf2,f.pbkdf2Sync=u.pbkdf2Sync;var d=b(9131);f.Cipher=d.Cipher,f.createCipher=d.createCipher,f.Cipheriv=d.Cipheriv,f.createCipheriv=d.createCipheriv,f.Decipher=d.Decipher,f.createDecipher=d.createDecipher,f.Decipheriv=d.Decipheriv,f.createDecipheriv=d.createDecipheriv,f.getCiphers=d.getCiphers,f.listCiphers=d.listCiphers;var h=b(857);f.DiffieHellmanGroup=h.DiffieHellmanGroup,f.createDiffieHellmanGroup=h.createDiffieHellmanGroup,f.getDiffieHellman=h.getDiffieHellman,f.createDiffieHellman=h.createDiffieHellman,f.DiffieHellman=h.DiffieHellman;var l=b(2926);f.createSign=l.createSign,f.Sign=l.Sign,f.createVerify=l.createVerify,f.Verify=l.Verify,f.createECDH=b(8814);var p=b(6734);f.publicEncrypt=p.publicEncrypt,f.privateEncrypt=p.privateEncrypt,f.publicDecrypt=p.publicDecrypt,f.privateDecrypt=p.privateDecrypt;var m=b(236);f.randomFill=m.randomFill,f.randomFillSync=m.randomFillSync,f.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},f.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),c.exports=y},855421,(f,c,u)=>{c.exports=function(f,c){for(var u,d=-1,h=f.length;++d<h;){var l=c(f[d]);void 0!==l&&(u=void 0===u?l:u+l)}return u}},355103,(f,c,u)=>{var d=f.r(686845),h=f.r(855421);c.exports=function(f,c){return f&&f.length?h(f,d(c,2)):0}},564855,458064,98213,558577,428661,97697,481022,173777,205661,521669,911486,144117,569648,243201,970936,841239,693873,592931,512454,702836,f=>{"use strict";var c=f.i(492708),u=f.i(600028),d=f.i(438754);f.i(677200),f.i(145e3),f.i(360076);var h=f.i(80399),l=f.i(670168),p=f.i(804773),b=f.i(122802),y=f.i(
1709943),m=d,g=f.i(86036),v=f.i(394546);f.i(719785);var _=f.i(732729),w=c,x=f.i(526545),S=v;f.i(149837);var E=f.i(503930);f.i(810485);var M=f.i(390594),A=f.i(987056),R=f.i(22496),k=c,P=M,I=f.i(106327),O=A,T=R,N=A,C=f.i(962500);f.i(908969);var B=f.i(367374),L=u;let D=(f,c)=>f.map(f=>{let{product:u,services:d,subItems:h,...l}=f,{totalAmount:p,unitPrice:b}=(0,B.orderLineValueCalculator)(f,c);return{...l,originalUnitPrice:(0,N.convertMinorUnitToValue)(b),unitPrice:(0,C.roundNumber)((0,N.convertMinorUnitToValue)(p/l.quantity),2),productId:u.id,name:u.name,brand:u.brand?.name||"",slug:u.slug,services:d.map(f=>({quantity:f.quantity,totalAmount:f.totalAmount,serviceId:f.service.id})),additionalInfo:"",subItems:h}}),U=(f,c,u)=>{let{orderAmount:d}=(0,L.klarnaOrderLineFactory)(f,c,u);return{orderAmount:(0,N.convertMinorUnitToValue)(d)}},j=(f,c=0,u=0)=>{let d=0,h=0,l=0,p=f=>{f.forEach(f=>{let c=f.unitPrice*f.quantity;d+=c,f.vatRate&&(h+=c*f.vatRate/(100+f.vatRate));let u=(f.originalUnitPrice-f.unitPrice)*f.quantity;u>0&&(l+=u),p(f.subItems??[])})};return p(f),d+=c,c&&u&&(h+=c*u/(100+u)),{orderAmount:(0,C.roundNumber)(d),orderTaxAmount:(0,C.roundNumber)(h),orderDiscount:(0,C.roundNumber)(l)}},F=f=>f.map(({product:f,...c})=>({...c,productId:f.id,services:c.services?.map(f=>({quantity:f.quantity,serviceId:f.service.id,totalAmount:f.totalAmount}))||[],subItems:F(c.subItems||[])}));f.s(["computeFromStoreFrontOrderLines",0,U,"computeOrderTotalsFromGross",0,j,"parseStoreToBackendOrderLines",0,D,"transformOrderItemsToCreateOrderItems",0,F],458064);var q=f.i(709675);let $=({customer:f,items:c,...u})=>({...u,items:c?F(c):[],status:I.OrderStatus.PAID,currency:P.Currency.SEK,shippingInfo:{shippingType:"DELIVERY"}}),z=(f,c)=>{let u=c.shippingInfo?.additionalInfo?.defaultDetails;return u?{...f,...c.shippingAddress?{shippingAddress:c.shippingAddress}:{},...!(0,T.isNullable)(c.shippingCost)?{shippingCost:c.shippingCost}:{},shippingInfo:{...f.shippingInfo,...c.shippingInfo,shippingType:u.isPickupFromStore?"PICKUP":"DELIVERY"}}:f},V=(f,c)=>(0,T.isNullable)(f.shippingCost)?c:f.shippingCost,K=(f,c)=>{if(!c)return f;let{delivery_groups:u}=c,d=u[0],h=d.addresses.delivery_address,l=d.shipping,p=f=>f?{address1:f.address_lines?.join(", ")||"",address2:"",country:f.country||"",mobilePhone:h.phone||"",postalCode:f.postal_code||"",postalRegion:f.city||"",attention:`${h.first_name} ${h.last_name}`,reference:`${l.carrier} ${l.delivery_type}, ${l.product}`}:void 0,b=p(h),y=p(d.addresses.location?.address),m=y??b,g=l.carrier,v=l.product,_=d.tos_id,w=d.addresses.location?.external_id,x=d.addresses.location?.name,S=V(f,(0,O.convertMinorUnitToValue)(d.pricing.price));return{...f,...!(0,T.isNullable)(S)?{shippingCost:S}:{},...m?{shippingAddress:m}:{},shippingInfo:{...f.shippingInfo,shippingType:"instore"===l.delivery_type?"PICKUP":"DELIVERY",...g?{carrierName:g}:{},...v?{carrierService:v}:{},..._?{trackingNumber:_}:{},...y?{pickupAddress:y,pickupLocationName:x,pickupLocationId:w}:{}}}},H=(f,c)=>{if(!c)return f;if(c.isPickupFromStore){let u=c.selectedPickup&&{address1:c.selectedPickup?.address.address1??"",address2:c.selectedPickup?.address.address2??"",country:c.selectedPickup?.address.country??"",mobilePhone:c.selectedPickup?.address.mobilePhone??"",postalCode:c.selectedPickup?.address.postalCode??"",postalRegion:c.selectedPickup?.address.postalRegion??"",attention:c.selectedPickup?.address.attention??"",reference:c.selectedPickup?.address.reference??""},d=c.selectedPickup?.name,h=c.selectedPickup?.id;return{...f,...u?{shippingAddress:u}:{},shippingCost:0,shippingInfo:{...f.shippingInfo,shippingType:"PICKUP",additionalInfo:{postnordDetails:c},...u?{pickupAddress:u,pickupLocationName:d,pickupLocationId:h}:{}}}}let u=f=>f?{address1:(0,q.getPostNordStreetsFromAddress)(f).join(", "),address2:"",country:f.countryCode||"",mobilePhone:"",postalCode:f.postCode||"",postalRegion:f.city||"",attention:"",reference:`PostNord ${c.deliveryOption?.type}`}:void 0,d=u(c.recipientAddress),h=u(c.deliveryOption?.details.location?.address),l=h??d,p=c.deliveryOption?.type,b=c.bookingDetails?.trackingNumber,y=c.bookingDetails?.trackingUrl,m=c.bookingDetails?.labelUrl,g=c.deliveryOption?.details.bookingInstructions.servicePointId,v=c.deliveryOption?.details.location?.name,_=V(f,c.deliveryOption?c.deliveryOption?.price??0:void 0);return{...f,...l?{shippingAddress:l}:{},...!(0,T.isNullable)(_)?{shippingCost:_}:{},shippingInfo:{...f.shippingInfo,shippingType:"DELIVERY",additionalInfo:{postnordDetail
1s:c},carrierName:"PostNord",...p?{carrierService:p}:{},...b?{trackingNumber:b}:{},...y?{trackingUrl:y}:{},...m?{labelUrl:m}:{},...h?{pickupAddress:h,pickupLocationName:v,pickupLocationId:g}:{}}}},W=(f,c)=>{if(!c)return f;if(c.isPickupFromStore)return{...f,shippingCost:0,shippingInfo:{...f.shippingInfo,shippingType:"PICKUP",additionalInfo:{nshiftDetails:{isPickupFromStore:!0}}}};let u=c.recipientAddress?{address1:c.recipientAddress.address1??"",address2:c.recipientAddress.address2??"",country:c.recipientAddress.country,mobilePhone:c.recipientAddress.mobile||c.recipientAddress.phone||"",postalCode:c.recipientAddress.postalCode,postalRegion:c.recipientAddress.city||"",attention:"",reference:`Nshift ${c.bookingDetails?.carrier||""} ${c.bookingDetails?.carrierProduct||""}`}:void 0,d=c.bookingDetails?.pickupPoint?{address1:c.bookingDetails.pickupPoint.address1??"",address2:c.bookingDetails.pickupPoint.address2??"",country:c.bookingDetails.pickupPoint.countryCode,mobilePhone:c.bookingDetails.pickupPoint.mobile||c.bookingDetails.pickupPoint.phone||"",postalCode:c.bookingDetails.pickupPoint.postalCode,postalRegion:c.bookingDetails.pickupPoint.city||"",attention:"",reference:`Nshift ${c.bookingDetails.carrier||""} ${c.bookingDetails.carrierProduct||""}`}:void 0,h=d??u,l=c.bookingDetails?.carrier,p=c.bookingDetails?.carrierProduct,b=c.bookingDetails?.pickupPoint?.id,y=c.bookingDetails?.pickupPoint?.name,m=V(f,c.widgetResult?c.widgetResult?.totalPrice??0:void 0);return{...f,...h?{shippingAddress:h}:{},...!(0,T.isNullable)(m)?{shippingCost:m}:{},shippingInfo:{...f.shippingInfo,shippingType:"DELIVERY",additionalInfo:{nshiftDetails:c},...l?{carrierName:l}:{},...p?{carrierService:p}:{},...d?{pickupAddress:d,pickupLocationName:y,pickupLocationId:b}:{}}}},G=(f,c)=>{let u=(0,A.convertMinorUnitToValue)(c.selected_shipping_option?.price??(0,R.sumPropValues)((c.order_lines??[]).filter(f=>"shipping_fee"===f.type),"total_amount"));return{...$(f),billingAddress:{address1:c.billing_address.street_address,address2:"",country:c.billing_address.country,mobilePhone:c.billing_address.phone,postalCode:c.billing_address.postal_code,postalRegion:c.billing_address.city,attention:`${c.billing_address.given_name} ${c.billing_address.family_name}`,reference:""},customer:{email:c.billing_address.email,firstName:c.billing_address.given_name,lastName:c.billing_address.family_name,type:M.CustomerType.CONSUMER},orderAmount:(0,A.convertMinorUnitToValue)(c.order_amount),orderTaxAmount:(0,A.convertMinorUnitToValue)(c.order_tax_amount),orderDiscount:(0,A.convertMinorUnitToValue)((0,R.sumPropValues)(c.order_lines,"total_discount_amount")),...u?{shippingCost:u}:{},paymentId:c.order_id,paymentProvider:"KLARNA",shippingAddress:{address1:c.shipping_address.street_address,address2:"",country:c.shipping_address.country,mobilePhone:c.shipping_address.phone,postalCode:c.shipping_address.postal_code,postalRegion:c.shipping_address.city,attention:`${c.shipping_address.given_name} ${c.shipping_address.family_name}`,reference:""}}},J=({order:f,paymentProviderInfo:c,shippingProviderInfo:u})=>{if(!c.providerResponse?.klarnaResponse)throw(0,k.createError)("Not found KLARNA order");let d=u?.providerName??"DEFAULT",h=G(f,c.providerResponse?.klarnaResponse);switch(d){case"DEFAULT":break;case"POSTNORD":h=H(h,u?.postnordResponse);break;case"INGRID":h=K(h,u?.ingridResponse);break;case"NSHIFT":h=W(h,u?.nshiftResponse)}return h};var Y=M,X=A,Q=C,Z=f.i(355103),ee=c;let et=f=>{let c=f=>`${f?.prefix??""}${f?.number??""}`,{payment:u}=f,{billingAddress:d,privatePerson:h,shippingAddress:l}=u.consumer??{},{firstName:p="",lastName:b="",email:y=""}=h??{},m=c(h?.phoneNumber),g=`${p} ${b}`;return{billingAddress:{address1:d?.addressLine1??"",address2:"",country:d?.country??"",mobilePhone:c(d?.phoneNumber)||m,postalCode:d?.postalCode??"",postalRegion:d?.city??"",attention:d?.receiverLine??g,reference:""},shippingAddress:{address1:l?.addressLine1??"",address2:"",country:l?.country??"",mobilePhone:c(l?.phoneNumber)||m,postalCode:l?.postalCode??"",postalRegion:l?.city??"",attention:l?.receiverLine??g,reference:""},customerInfo:{email:y,firstName:p,lastName:b,phone:c(d?.phoneNumber)||m,fullName:g}}},er=(f,c,u)=>{let{payment:d}=c,h=d.charges?.[0].orderItems??[],{billingAddress:l,shippingAddress:p,customerInfo:{email:b,firstName:y,lastName:m}}=et(c),g=h.reduce((f,c)=>"discount"===c.reference?f+Math.abs(c.grossTotalAmount):f,0),v=h.reduce((f,c)=>"delivery"===c.reference?f+c.grossTotalAmount:f,0),_=(0,X.convertMinorUnitToValue)(d.orderDetails.amount),w=(0,X.convertMinorUnitToValue)((0,Z.default)(h,"taxAmount"));return{...$(f),billingAddress:l,shippingAddress:p,currency:d.orderDetails.currency,customer:{email:b,firstName:y,lastName:m,type:Y.CustomerType.CONSUMER},orderAmount:_,orderTaxAmount:w,orderDiscount:(0,Q.roundNumber)((0,X.convertMinorUnitToValue)(g)),shippingCost:(0,X.convertMinorUnitToValue)(v),paymentId:d.paymentId,paymentProvider:"NEXI"}},ei=({order:f,paymentProviderInfo:c,shippingProviderInfo:u})=>
1{if(!c.providerResponse?.nexiResponse)throw(0,ee.createError)("Not found NEXI order");let d=u?.providerName??"DEFAULT",h=er(f,c.providerResponse?.nexiResponse,c.providerOptions?.nexi);switch(d){case"DEFAULT":h=z(h,f);break;case"POSTNORD":h=H(h,u?.postnordResponse);break;case"INGRID":h=K(h,u?.ingridResponse);break;case"NSHIFT":h=W(h,u?.nshiftResponse)}return h};var en=M,eo=A,ea=C,es=R,ef=c;let ec=f=>{let{BillingAddress:c,ShippingAddress:u,PhoneNumber:d,EmailAddress:h}=f,{FirstName:l="",LastName:p="",FullName:b=""}=c??{};return{billingAddress:{address1:c?.StreetAddress??"",address2:"",country:c?.CountryCode??"",mobilePhone:d,postalCode:c?.PostalCode??"",postalRegion:c?.City??"",attention:b,reference:""},shippingAddress:{address1:u?.StreetAddress??"",address2:"",country:u?.CountryCode??"",mobilePhone:d,postalCode:u?.PostalCode??"",postalRegion:u?.City??"",attention:u?.FullName??"",reference:""},customerInfo:{email:h,firstName:l,lastName:p,phone:d,fullName:b}}},eu=(f,c)=>{let{billingAddress:u,shippingAddress:d,customerInfo:{email:h,firstName:l,lastName:p}}=ec(c),b=c.Cart.Items,y=b.reduce((f,c)=>c.DiscountAmount?f+c.DiscountAmount:f,0),m=b.reduce((f,c)=>"delivery"===c.ArticleNumber?f+c.UnitPrice:f,0),g=f=>f.UnitPrice*(0,eo.convertMinorUnitToValue)(f.Quantity)-(f.DiscountAmount??0),v=(0,eo.convertMinorUnitToValue)((0,es.sumArrayOfNumbers)(b.map(g))),_=(0,ea.roundNumber)((0,eo.convertMinorUnitToValue)((0,es.sumArrayOfNumbers)(b.map(f=>(0,eo.getTax)(g(f),f.VatPercent??(0,eo.createMinorUnit)((0,eo.getVatRateByCountryCode)(c?.CountryCode)),!0)))));return{...$(f),billingAddress:u,shippingAddress:d,currency:c.Currency,customer:{email:h,firstName:l,lastName:p,type:en.CustomerType.CONSUMER},orderAmount:v,orderTaxAmount:_,orderDiscount:(0,ea.roundNumber)((0,eo.convertMinorUnitToValue)(y)),shippingCost:(0,eo.convertMinorUnitToValue)(m),paymentId:String(c.OrderId),paymentProvider:"SVEA"}},ed=({order:f,paymentProviderInfo:c,shippingProviderInfo:u})=>{if(!c.providerResponse?.sveaResponse)throw(0,ef.createError)("Not found SVEA order");let d=u?.providerName??"DEFAULT",h=eu(f,c.providerResponse?.sveaResponse);switch(d){case"DEFAULT":h=z(h,f);break;case"POSTNORD":h=H(h,u?.postnordResponse);break;case"INGRID":h=K(h,u?.ingridResponse);break;case"NSHIFT":h=W(h,u?.nshiftResponse)}return h};var eh=M,el=C,ep=R,eb=c;let ey=f=>{let{BillingAddress:c,ShippingAddress:u,Customer:d}=f,h=c?.FirstName??"",l=c?.LastName??"",p=`${h} ${l}`.trim(),b=d?.Email??"",y=d?.MobileNumber??"";return{billingAddress:{address1:c?.Street??"",address2:c?.Street2??"",country:c?.CountryCode??"",mobilePhone:y,postalCode:String(c?.PostalCode??""),postalRegion:c?.City??"",attention:p,reference:""},shippingAddress:{address1:u?.Street??"",address2:u?.Street2??"",country:u?.CountryCode??"",mobilePhone:y,postalCode:String(u?.PostalCode??""),postalRegion:u?.City??"",attention:`${u?.FirstName??""} ${u?.LastName??""}`.trim(),reference:""},customerInfo:{email:b,firstName:h,lastName:l,phone:y,fullName:p}}},em=(f,c)=>{let{billingAddress:u,shippingAddress:d,customerInfo:{email:h,firstName:l,lastName:p}}=ey(c),b=c.OrderItems,y=b.reduce((f,c)=>"Discount"===c.Type?f+Math.abs(c.PricePerItemIncVat):f,0),m=b.reduce((f,c)=>"Shipping"===c.Type?f+c.PricePerItemIncVat:f,0),g=c.TotalPrice,v=(0,el.roundNumber)((0,ep.sumArrayOfNumbers)(b.map(f=>(f.PricePerItemIncVat-f.PricePerItemExVat)*f.Quantity)));return{...$(f),billingAddress:u,shippingAddress:d,currency:c.Currency,customer:{email:h,firstName:l,lastName:p,type:eh.CustomerType.CONSUMER},orderAmount:g,orderTaxAmount:v,orderDiscount:(0,el.roundNumber)(y),shippingCost:m,paymentId:String(c.OrderId),paymentProvider:"QLIRO"}},eg=({order:f,paymentProviderInfo:c,shippingProviderInfo:u})=>{if(!c.providerResponse?.qliroResponse)throw(0,eb.createError)("Not found QLIRO order");let d=u?.providerName??"DEFAULT",h=em(f,c.providerResponse?.qliroResponse);switch(d){case"DEFAULT":break;case"POSTNORD":h=H(h,u?.postnordResponse);break;case"INGRID":h=K(h,u?.ingridResponse);break;case"NSHIFT":h=W(h,u?.nshiftResponse)}return h};var ev=M,e_=A,ew=C,ex=R,eS=c;let eE={address1:"",address2:"",country:"",mobilePhone:"",postalCode:"",postalRegion:"",attention:"",reference:""},eM=f=>({address1:f?.streetAddress??"",address2:f?.streetAddress2??"",country:f?.country??"",mobilePhone:f?.phoneNumber??"",postalCode:f?.zip??"",postalRegion:f?.city??"",attention:`${f?.firstName??""} ${f?.lastName??""}`.trim(),reference:""}),eA=(...f)=>f.reduce((f,c)=>c?{address1:f.address1||c.address1||"",address2:f.address2||c.address2||"",country:f.country||c.country||"",mobilePhone:f.mobilePhone||c.mobilePhone||"",postalCode:f.postalCode||c.postalCode||"",postalRegion:f.postalRegion||c.postalRegion||"",attention:f.attention||c.attention||"",reference:f.reference||c.reference||""}:f,eE),eR=(...f)=>f.find(f=>!!f?.trim())??"",ek=(f,c)=>{let u=f.data?.billing,d=f.data?.shipping,h=f.data?.transactions?.[0],l=c?.customer,p=eA(eM(u),c?.billingAddress,c?.shippingAddress),b=eA(eM(d),c?.shippingAddress,c?.billingAddress,p),y=eR(u?.firstName,d?.firstName,l?.firstName),m=eR(u?.lastName,d?.lastName,l?.lastName),g=eR(`${y} ${m}`.trim(),p.attention,b.attention);return{billingAddress:p,shippingAddress:b,customerInfo:{email:eR(u?.email,h?.email,l?.email),firstName:y,lastName:m,ph
1one:eR(u?.phoneNumber,h?.phoneNumber,p.mobilePhone,b.mobilePhone,l?.phones?.[0]?.number),fullName:g,companyName:u?.companyName??f.data?.company?.name,cin:u?.cin??f.data?.company?.cin}}},eP=f=>"sales_tax"!==f.productType&&"gift_card"!==f.productType,eI=(f,c)=>{let{billingAddress:u,shippingAddress:d,customerInfo:{email:h,firstName:l,lastName:p}}=ek(c,f),b=(c.data?.order?.cart??[]).filter(eP),y=(0,e_.convertMinorUnitToValue)((0,ex.sumArrayOfNumbers)(b.filter(f=>"shipping_fee"===f.productType).map(f=>f.totalAmount??0))),m=(0,e_.convertMinorUnitToValue)((0,ex.sumArrayOfNumbers)(b.map(f=>(f.unitDiscountAmountIncVat??0)*f.quantity+("discount"===f.productType?Math.abs(f.totalAmount??0):0)))),g=(0,e_.convertMinorUnitToValue)((0,ex.sumArrayOfNumbers)(b.map(f=>f.totalVatAmount??0)));return{...$(f),billingAddress:u,shippingAddress:d,currency:c.data?.order?.currency??f.currency,customer:{email:h,firstName:l,lastName:p,type:"business"===c.customerType?ev.CustomerType.BUSINESS:ev.CustomerType.CONSUMER},orderAmount:(0,e_.convertMinorUnitToValue)(c.data?.order?.amountIncVat??0),orderTaxAmount:(0,ew.roundNumber)(g),orderDiscount:(0,ew.roundNumber)(m),shippingCost:y,paymentId:c.sessionId,paymentProvider:"BRIQPAY"}},eO=({order:f,paymentProviderInfo:c,shippingProviderInfo:u})=>{if(!c.providerResponse?.briqpayResponse)throw(0,eS.createError)("Not found BRIQPAY session");let d=u?.providerName??"DEFAULT",h=eI(f,c.providerResponse.briqpayResponse);switch(d){case"DEFAULT":break;case"POSTNORD":h=H(h,u?.postnordResponse);break;case"INGRID":h=K(h,u?.ingridResponse);break;case"NSHIFT":h=W(h,u?.nshiftResponse)}return h};async function eT({order:f,paymentProviderInfo:c,shippingProviderInfo:u}){if((0,E.isOrderAlreadyProvisioned)(f))return f;let d=$(f);switch(c?.providerName??"KLARNA"){case"KLARNA":d=J({order:f,paymentProviderInfo:c,shippingProviderInfo:u});break;case"NEXI":d=ei({order:f,paymentProviderInfo:c,shippingProviderInfo:u});break;case"SVEA":d=ed({order:f,paymentProviderInfo:c,shippingProviderInfo:u});break;case"QLIRO":d=eg({order:f,paymentProviderInfo:c,shippingProviderInfo:u});break;case"BRIQPAY":d=eO({order:f,paymentProviderInfo:c,shippingProviderInfo:u});break;case"LEDYER":throw(0,w.createError)("Not implemented completeStorefrontOrder for LEDYER case")}let h=(0,w.fetchPropsFactory)({props:{method:"PUT",credentials:"include",body:JSON.stringify(d)}}),{data:l,error:p}=await (0,w.storefrontApiCall)((0,_.createUrl)(x.ORDERS_ENDPOINT,{includeItems:!0,includeCustomer:!1}),h);return!p&&l&&l.orderNumber?l:(S.alertService.send("Provision order | Complete storefront order",{blocks:[{title:"Payload",content:d},{title:"Error",content:p}]}),(0,w.createEndpointError)("complete storefront order",p))}var eN=f.i(494246),eC=f.i(8908),eB=q,eL=E;let eD=async(f,c,u,d)=>{let{error:h,data:l}=await (0,m.klarnaApiCall)("get",{orderId:f});if(h||!l)throw v.alertService.send("Provision order | Get klarna order",{blocks:[{title:"Payload",content:{orderId:f}},{title:"Error",content:h}]}),Error(h||"Klarna GET endpoint error");let{error:p,data:b}=await (0,g.getStorefrontOrderByOrderNumber)({orderNumber:l.merchant_reference1});if(p||!b)throw v.alertService.send("Provision order | Get storefront order",{blocks:[{title:"Payload",content:{orderNumber:l.merchant_reference1}},{title:"Klarna Order Data",content:l},{title:"Error",content:p}]}),Error(h||"BE GET endpoint error");
1if((0,eL.isOrderAlreadyProvisioned)(b))return{storefrontOrder:b,klarnaOrder:l};if(d?.asFallback&&(0,eL.isOrderFresh)(b))throw Error("Payment push received for a still-fresh order; deferring to the confirmation page");let y=async()=>{if(b?.shippingProvider)switch(b?.shippingProvider){case"INGRID":return(0,eN.generateIngridShippingProviderResult)(b);case"POSTNORD":return(0,eB.generatePostnordShippingProviderResult)(b,{phoneNo:l.billing_address.phone,smsNo:l.billing_address.phone,emailAddress:l.billing_address.email,contactName:`${l.billing_address.given_name} ${l.billing_address.family_name}`},u);case"NSHIFT":return(0,eC.generateNshiftShippingProviderResult)(b,{phone:l.billing_address.phone,email:l.billing_address.email,name:`${l.billing_address.given_name} ${l.billing_address.family_name}`})}},_=await y(),w=await eT({order:b,paymentProviderInfo:{...c,providerName:"KLARNA",providerResponse:{klarnaResponse:l}},..._&&{shippingProviderInfo:_}}),{error:x}=await (0,m.klarnaApiCall)("acknowledge",{orderId:f});if(x)throw v.alertService.send("Provision order | Klarna acknowledge order",{blocks:[{title:"Payload",content:{orderId:f}},{title:"Klarna Order Data",content:l},{title:"Completed Storefront Order",content:w},{title:"Error",content:x}]}),Error(x);return{storefrontOrder:w,klarnaOrder:l,..._&&{shippingProviderResult:_}}};var eU=g,ej=c,eF=f.i(62921);let eq=eF.default.env.NEXI_API_URL,e$={Authorization:eF.default.env.NEXI_API_KEY||""},ez=`${eq}/v1/payments`,eV="POST",eK=ez,eH="GET",eW=f=>`${ez}/${f}`,eG="PUT",eJ=f=>`${ez}/${f}/referenceinformation`,eY="PUT",eX=f=>`${ez}/${f}/orderitems`,eQ={"Content-Type":"application/json"},eZ=async(f,{headers:c,...u})=>{if(f.includes("undefined"))throw Error("Nexi environment variables missing");let{error:d,data:h,response:l}=await (0,ej.apiCall)(f,{headers:{...e$,...c},...u});return d||!l?{data:null,error:d}:l.ok?{data:h,error:null}:h?"errors"in h?{data:null,error:"object"==typeof h.errors?Object.values(h.errors).flat().join("; "):"Something wrong!"}:"message"in h?{data:null,error:h.message}:{data:h,error:null}:{data:null,error:"Unknown error"}},e0={checkout:{createPayment:f=>eZ(eK,{method:eV,headers:eQ,body:JSON.stringify(f)}),retrievePayment:f=>eZ(eW(f),{method:eH}),updateReferenceInformation:(f,c)=>eZ(eJ(f),{method:eG,headers:eQ,body:JSON.stringify(c)}),updateOrder:(f,c)=>eZ(eX(f),{method:eY,headers:eQ,body:JSON.stringify(c)})}};f.s(["nexiApi",0,e0],98213);var e1=c,e2=v,e6=eN,e3=eC,e4=q,e8=E;let e5=async(f,c,u,d)=>{let{error:h,data:l}=await e0.checkout.retrievePayment(f);if(h||!l)throw e2.alertService.send("Provision order | Get nexi payment",{blocks:[{title:"Payload",content:{paymentId:f}},{title:"Error",content:h}]}),Error(h||"Nexi GET endpoint error");let{error:p,data:b}=await (0,eU.getStorefrontOrderByOrderNumber)({orderNumber:l.payment.orderDetails.reference});if(p||!b)throw e2.alertService.send("Provision order | Get storefront order",{blocks:[{title:"Payload",content:{orderNumber:l.payment.orderDetails.reference}},{title:"Nexi Payment Response",content:l},{title:"Error",content:p}]}),(0,e1.createError)(p??"BE GET endpoint error");
1if((0,e8.isOrderAlreadyProvisioned)(b))return{storefrontOrder:b,nexiResponse:l};if(d?.asFallback&&(0,e8.isOrderFresh)(b))throw(0,e1.createError)("Payment push received for a still-fresh order; deferring to the confirmation page");let y=async()=>{if(b?.shippingProvider)switch(b?.shippingProvider){case"INGRID":return(0,e6.generateIngridShippingProviderResult)(b);case"POSTNORD":{let{customerInfo:f}=et(l);return(0,e4.generatePostnordShippingProviderResult)(b,{phoneNo:f.phone,smsNo:f.phone,emailAddress:f.email,contactName:f.fullName},u)}case"NSHIFT":{let{customerInfo:f}=et(l);return(0,e3.generateNshiftShippingProviderResult)(b,{phone:f.phone,email:f.email,name:f.fullName})}}},m=await y();return{storefrontOrder:await eT({order:b,paymentProviderInfo:{...c,providerName:"NEXI",providerResponse:{nexiResponse:l}},...m&&{shippingProviderInfo:m}}),nexiResponse:l,...m&&{shippingProviderResult:m}}};var e9=g,e7=f.i(222752),te=eF;let tt=te.default.env.SVEA_MERCHANT_ID??"",tr=te.default.env.SVEA_SECRET_KEY??"",ti=te.default.env.SVEA_API_CHECKOUT_URL??"";var tn=f.i(123651),to=f.i(946272);let ta=(f="")=>{let c=new Date().toISOString().replace("T"," ").split(".")[0],u=to.default.createHash("sha512").update(f+tr+c,"utf-8").digest("hex").toUpperCase();return{token:tn.Buffer.from(`${tt}:${u}`).toString("base64"),timestamp:c}},ts=f=>{let{timestamp:c,token:u}=ta(f);return{Authorization:`Svea ${u}`,Timestamp:c}},tf=(0,e7.createLogger)("sveaCheckout"),tc=`${ti}/api/orders`,tu={"Content-Type":"application/json"},td=f=>{if("string"==typeof f)try{let{countryCode:c,currency:u,locale:d,clientOrderNumber:h}=JSON.parse(f);return{countryCode:c,currency:u,locale:d,clientOrderNumber:h}}catch{return}},th=f=>{let c={};return f.forEach((f,u)=>{c[u]=f}),c},tl=async(f,{headers:c,...u})=>{if(f.includes("undefined"))throw Error("Svea environment variables missing");try{let d=await fetch(f,{headers:{...ts(u.body),...c},...u}),h={400:"The input data was invalid.",401:"The request did not contain correct authorization.",403:"The request did not contain correct authorization.",404:"No order with the requested ID was found."};if(!(d.status>=200&&d.status<300)){let c=await d.text().catch(()=>""),l=h[d.status]??`Unknown error occurred (HTTP ${d.status}).`;return tf.error("Svea request failed",{url:f,status:d.status,statusText:d.statusText,headers:th(d.headers),body:c,request:td(u.body)}),{data:null,error:c?`${l} ${c}`:l}}try{return{data:await d.json(),error:null}}catch(f){return{data:null,error:`PARSING RESPONSE ERROR: ${f}`}}}catch(f){return{data:null,error:`API ERROR: ${f}`}}},tp=f=>tl(tc,{method:"POST",headers:tu,body:JSON.stringify(f)}),tb=f=>tl(`${tc}/${f}`,{method:"GET"}),ty=(f,c)=>tl(`${tc}/${f}`,{method:"PUT",headers:tu,body:JSON.stringify(c)});var tm=A,tg=f.i(899123),tv=R,t_=B;let tw=f=>f.substring(0,40),tx=f=>f.substring(0,4),tS=(f,c)=>f.map(f=>{let{product:u,quantity:d,vatRate:h}=f,l=(0,tm.createMinorUnit)(h),{unitPrice:p,totalDiscountAmount:b}=(0,t_.orderLineValueCalculator)(f,c);return{ArticleNumber:u.articleNumber,Name:tw(u.name),Quantity:(0,tm.createMinorUnit)(d),Unit:tx("pcs"),UnitPrice:p,VatPercent:l,DiscountAmount:b,RowType:"Row"}}),tE=(f,c,u)=>f.map(f=>f.services.map(f=>{let d=f.quantity,h=(0,tm.createMinorUnit)(u(f.service.price)),l=(0,tm.createMinorUnit)(u(f.service.discountPrice)),p=0,b=0;return d>0&&(b=h+(d-1)*l,!h&&l&&(h=l),p=h*d-b),{ArticleNumber:f.service.id,Name:tw(f.service.name),Quantity:(0,tm.createMinorUnit)(d),Unit:tx("service"),UnitPrice:h,VatPercent:c,DiscountAmount:p,RowType:"Row"}})).flat(),tM=(f,c,u,d)=>{let h=(0,tm.getVatRateByCountryCode)(u),l=(0,tm.createMinorUnit)(d?.resolveRate(h)??h),p=tS(f,c),b=[...p,...tE(f,l,(0,tg.storeGrossRebaser)(h,d))],y=(0,tv.sumArrayOfNumbers)(b.map(f=>f.UnitPrice*(f.Quantity/100)-(f.DiscountAmount??0))),m=(0,tv.sumArrayOfNumbers)(b.map(f=>{let c=f.UnitPrice*(f.Quantity/100)-(f.DiscountAmount??0);return c-(0,tm.getTax)(c,f.VatPercent??0,!0)}));return{orderLines:b,productOrderLines:p,orderAmount:y,netOrderAmount:m,taxRate:l,rebaseShipping:f=>(0,tg.shippingForBuyer)(f,h,d).cost}};f.s(["sveaOrderLineFactory",0,tM],558577);let tA={createOrder:tp,retrieveOrder:tb,updateOrder:ty};f.s(["sveaCheckoutApi",0,tA],428661);let tR={checkout:tA};f.s(["sveaApi",0,tR],97697);var tk=c,tP=v,tI=eN,tO=eC,tT=q,tN=E;let tC=async(f,c,u,d)=>{let h=await (async()=>
1{if(d?.identifierKind!=="orderNumber")return null;let{error:c,data:u}=await (0,e9.getStorefrontOrderByOrderNumber)({orderNumber:f});if(c||!u)throw tP.alertService.send("Provision order | Get storefront order",{blocks:[{title:"Payload",content:{orderNumber:f}},{title:"Error",content:c}]}),(0,tk.createError)(c??"BE GET endpoint error");if(!u.paymentId)throw tP.alertService.send("Provision order | SF order missing Svea paymentId",{blocks:[{title:"Payload",content:{orderNumber:f}},{title:"Storefront Order",content:u}]}),(0,tk.createError)("SF order is missing Svea paymentId — cannot resolve Svea order");return u})(),l=h?.paymentId??f,{error:p,data:b}=await tR.checkout.retrieveOrder(l);if(p||!b)throw tP.alertService.send("Provision order | Get svea order",{blocks:[{title:"Payload",content:{orderId:l}},{title:"Error",content:p}]}),Error(p||"Svea GET endpoint error");if("Final"!==b.Status)throw tP.alertService.send("Provision order | Svea order not finalized",{blocks:[{title:"Payload",content:{orderId:l}},{title:"Svea Order Response",content:b},{title:"Error",content:`Svea order status is ${b.Status}, expected 'Final'`}]}),Error("Svea order is not finalized yet");let y=await (async()=>{if(h)return h;let{error:f,data:c}=await (0,e9.getStorefrontOrderByOrderNumber)({orderNumber:b.ClientOrderNumber});if(f||!c)throw tP.alertService.send("Provision order | Get storefront order",{blocks:[{title:"Payload",content:{orderNumber:b.ClientOrderNumber}},{title:"Svea Order Response",content:b},{title:"Error",content:f}]}),(0,tk.createError)(f??"BE GET endpoint error");return c})();if((0,tN.isOrderAlreadyProvisioned)(y))return{storefrontOrder:y,sveaResponse:b};if(d?.asFallback&&(0,tN.isOrderFresh)(y))throw(0,tk.createError)("Payment push received for a still-fresh order; deferring to the confirmation page");let m=async()=>{if(y?.shippingProvider)switch(y?.shippingProvider){case"INGRID":return(0,tI.generateIngridShippingProviderResult)(y);case"POSTNORD":{let{customerInfo:f}=ec(b);return(0,tT.generatePostnordShippingProviderResult)(y,{phoneNo:f.phone,smsNo:f.phone,emailAddress:f.email,contactName:f.fullName},u)}case"NSHIFT":{let{customerInfo:f}=ec(b);return(0,tO.generateNshiftShippingProviderResult)(y,{phone:f.phone,email:f.email,name:f.fullName})}}},g=await m();return{storefrontOrder:await eT({order:y,paymentProviderInfo:{...c,providerName:"SVEA",providerResponse:{sveaResponse:b}},...g&&{shippingProviderInfo:g}}),sveaResponse:b,...g&&{shippingProviderResult:g}}};var tB=g,tL=to,tD=e7,tU=c,tj=eF;let tF=tj.default.env.QLIRO_API_URL??"",tq=tj.default.env.QLIRO_API_KEY??"",t$=tj.default.env.QLIRO_API_SECRET??"";f.s(["QLIRO_API_KEY",0,tq,"QLIRO_API_SECRET",0,t$,"QLIRO_API_URL",0,tF],481022);let tz=`${tF}/checkout/merchantapi/orders`,tV=(f="")=>{let c=tL.default.createHash("sha256").update(f+t$,"utf-8").digest("base64");return`Qliro ${c}`},tK=(0,tD.createLogger)("payment","qliro"),tH=async(f,c)=>{if(f.includes("undefined"))throw Error("Qliro environment variables missing");let u=c.body??"",{data:d,error:h,response:l}=await (0,tU.apiCall)(f,{...c,headers:{"Content-Type":"application/json",Authorization:tV(u),...c.headers}});if(tK.log("[REQ]",c.method,f,u?JSON.parse(u):""),l&&!l.ok){let u=`Qliro API error (${l.status})`;try{let f=d;(f?.ErrorCode||f?.ErrorMessage)&&(u=`[${f.ErrorCode}] ${f.ErrorMessage}`)}catch{}return tK.log(`[RES] ${l.status} error with detail`,c.method,f,u),{data:null,error:u}}return h?(tK.log(`[RES] ${l?.status} error`,c.method,f,h),{data:null,error:h}):(tK.log(`[RES] ${l?.status} success`,c.method,f,d),{data:d,error:null})},tW=f=>tH(tz,{method:"POST",body:JSON.stringify(f)}),tG=f=>tH(`${tz}/${f}`,{method:"GET"}),tJ=f=>tH(`${tz}?merchantReference=${f}`,{method:"GET"}),tY=(f,c)=>tH(`${tz}/${f}`,{method:"PUT",body:JSON.stringify({...c,MerchantApiKey:tq})});var tX=A,tQ=tg,tZ=R,t0=B;let t1=(f,c)=>f.map(f=>{let{product:u,quantity:d,vatRate:h}=f,{unitPrice:l,totalDiscountAmount:p}=(0,t0.orderLineValueCalculator)(f,c),b=(0,tX.convertMinorUnitToValue)(l),y=b/(1+h/100),m={MerchantReference:u.articleNumber,Description:u.name,Type:"Product",Quantity:d,PricePerItemIncVat:b,PricePerItemExVat:Math.round(100*y)/100,VatRate:h};return p>0?[m,{MerchantReference:`discount-${u.articleNumber}`,Description:`Discount: ${u.name}`,Type:"Discount",Quantity:1,PricePerItemIncVat:-(0,tX.convertMinorUnitToValue)(p),PricePerItemExVat:Math.round(-(0,tX.convertMinorUnitToValue)(p)/(1+h/100)*100)/100,VatRate:h}]:[m]}).flat(),t2=(f,c,u)=>f.map(f=>f.services.map(f=>{let d=f.quantity,h=u(f.service.price),l=u(f.service.discountPrice),p=0;d>0&&(p=h+(d-1)*l,!h&&l&&(h=l));let b=d>0?p/d:0,y=b/(1+c/100);return{MerchantReference:f.service.id,Description:f.service.name,Type:"Fee",Quantity:d,PricePerItemIncVat:Math.round(100*b)/100,PricePerItemExVat:Math.round(100*y)/100,VatRate:c}})).flat(),t6=(f,c,u,d)=>{let h=(0,tX.getVatRateByCountryCode)(u),l=d?.resolveRate(h)??h,p=t1(f,c),b=[...p,...t2(f,l,(0,tQ.storeGrossRebaser)(h,d))],y=(0,tZ.sumArrayOfNumbers)(b.map(f=>f.PricePerItemIncVat*f.Quantity)),m=(0,tZ.sumArrayOfNumbers)(b.map(f=>f.PricePerItemExVat*f.Quantity));return{orderLines:b,productOrderLines:p,orderAmount:y,netOrderAmount:m,vatRate:l,rebaseShipping:f=>
1(0,tQ.shippingForBuyer)(f,h,d).cost}};f.s(["qliroOrderLineFactory",0,t6],173777);let t3={createOrder:tW,retrieveOrder:tG,retrieveOrderByReference:tJ,updateOrder:tY};f.s(["qliroCheckoutApi",0,t3],205661);let t4={checkout:t3};f.s(["qliroApi",0,t4],521669);var t8=c,t5=v,t9=eN,t7=eC,re=q,rt=E;let rr=async(f,c,u,d)=>{let{error:h,data:l}=await (0,tB.getStorefrontOrderByOrderNumber)({orderNumber:f});if(h||!l)throw t5.alertService.send("Provision order | Get storefront order",{blocks:[{title:"Payload",content:{storefrontOrderNumber:f}},{title:"Error",content:h}]}),(0,t8.createError)(h??"BE GET endpoint error");let{error:p,data:b}=await t4.checkout.retrieveOrderByReference(f);if(p||!b)throw t5.alertService.send("Provision order | Get qliro order",{blocks:[{title:"Payload",content:{merchantReference:f}},{title:"Error",content:p}]}),Error(p||"Qliro GET endpoint error");if("Completed"!==b.CustomerCheckoutStatus)throw t5.alertService.send("Provision order | Qliro order not completed",{blocks:[{title:"Qliro Order Response",content:b},{title:"Error",content:`Qliro order status is ${b.CustomerCheckoutStatus}, expected 'Completed'`}]}),Error("Qliro order is not completed yet");if((0,rt.isOrderAlreadyProvisioned)(l))return{storefrontOrder:l,qliroResponse:b};if(d?.asFallback&&(0,rt.isOrderFresh)(l))throw(0,t8.createError)("Payment push received for a still-fresh order; deferring to the confirmation page");let y=async()=>{if(l?.shippingProvider)switch(l?.shippingProvider){case"INGRID":return(0,t9.generateIngridShippingProviderResult)(l);case"POSTNORD":{let{customerInfo:f}=ey(b);return(0,re.generatePostnordShippingProviderResult)(l,{phoneNo:f.phone,smsNo:f.phone,emailAddress:f.email,contactName:f.fullName},u)}case"NSHIFT":{let{customerInfo:f}=ey(b);return(0,t7.generateNshiftShippingProviderResult)(l,{phone:f.phone,email:f.email,name:f.fullName})}}},m=await y();return{storefrontOrder:await eT({order:l,paymentProviderInfo:{...c,providerName:"QLIRO",providerResponse:{qliroResponse:b}},...m&&{shippingProviderInfo:m}}),qliroResponse:b,...m&&{shippingProviderResult:m}}};var ri=I,rn=g,ro=c,ra=x;async function rs(f){let c=(0,ro.urlWithQueryParamsFactory)(`${ra.ORDERS_ENDPOINT}/${f.orderId}/status`),u=(0,ro.fetchPropsFactory)({props:{method:"POST",credentials:"include",body:JSON.stringify(f.payload)}});return(0,ro.storefrontApiCall)(c,u)}var rf=e7,rc=c,ru=eF,rd=tn;let rh=ru.default.env.BRIQPAY_API_URL??"",rl=ru.default.env.BRIQPAY_MID??"",rp=ru.default.env.BRIQPAY_SECRET??"",rb={Authorization:`Basic ${rd.Buffer.from(`${rl}:${rp}`).toString("base64")}`},ry=`${rh}/v3/session`,rm=(0,rf.createLogger)("payment","briqpay"),rg=async(f,c)=>{if(f.includes("undefined")||!rl)throw Error("Briqpay environment variables missing");let u=c.body??"",{data:d,error:h,response:l}=await (0,rc.apiCall)(f,{...c,headers:{"Content-Type":"application/json",Accept:"application/json",...rb,...c.headers}});if(rm.log("[REQ]",c.method,f,u?JSON.parse(u):""),l&&!l.ok){let u=`Briqpay API error (${l.status})`,h=d;return(h?.error?.code||h?.error?.message)&&(u=`[${h.error.code}] ${h.error.message}`),rm.log(`[RES] ${l.status} error with detail`,c.method,f,u),{data:null,error:u}}return h?(rm.log(`[RES] ${l?.status} error`,c.method,f,h),{data:null,error:h}):(rm.log(`[RES] ${l?.status} success`,c.method,f,d),{data:d,error:null})},rv=f=>rg(ry,{method:"POST",body:JSON.stringify(f)}),r_=(f,c)=>rg(`${ry}/${f}${c?`?fields=${encodeURIComponent(c)}`:""}`,{method:"GET"}),rw=(f,c)=>rg(`${ry}/${f}`,{method:"PATCH",body:JSON.stringify(c)}),rx=(f,c)=>rg(`${ry}/${f}/metadata`,{method:"PATCH",body:JSON.stringify(c)}),rS=(f,c)=>rg(`${ry}/${f}/decision`,{method:"POST",body:JSON.stringify(c)}),rE=f=>rg(`${ry}/${f}/order/cancel`,{method:"POST"}),rM=(f,c)=>rg(`${ry}/${f}/order/capture`,{method:"POST",body:JSON.stringify(c)}),rA=(f,c)=>rg(`${ry}/${f}/order/refund`,{method:"POST",body:JSON.stringify(c)}),rR=f=>rg(`${ry}/${f}/order/release-remaining`,{method:"POST"}),rk=(f,c)=>rg(`${ry}/${f}/order/update/cart`,{method:"PATCH",body:JSON.stringify(c)}),rP=(f,c)=>rg(`${ry}/${f}/order/update/references`,{method:"PATCH",body:JSON.stringify(c)});var rI=f.i(718362),rO=A,rT=C,rN=tg,rC=R,rB=B;let rL=(f,c)=>f-(0,rO.getTax)(f,c,!0),rD=({productType:f,name:c,reference:u,quantity:d,quantityUnit:h,taxRate:l,grossUnitPrice:p,totalDiscountAmount:b=0,imageUrl:y})=>{let m=(0,rT.roundNumber)(p,0),g=d?(0,rT.roundNumber)(b/d,0):0,v=(m-g)*d;return{productType:f,name:c,...u?{reference:u}:{},quantity:d,quantityUnit:h,taxRate:l,unitPrice:(0,rT.roundNumber)(rL(m,l),0),unitPriceIncVat:m,discountPercentage:0,unitDiscountAmountIncVat:g,totalAmount:v,totalVatAmount:(0,rT.roundNumber)((0,rO.getTax)(v,l,!0),0),...y?{imageUrl:y}:{}}},rU=(f,c)=>f.map(f=>{let{product:u,quantity:d,vatRate:h}=f,l=(0,rO.createMinorUnit)(h),{unitPrice:p,totalDiscountAmount:b}=(0,rB.orderLineValueCalculator)(f,c),{mainImageUrl:y}=(0,rI.getProductImages)(u.medias);return rD({productType:"physical",name:u.name,reference:u.articleNumber,quantity:d,quantityUnit:"pc",taxRate:l,grossUnitPrice:p,totalDiscountAmount:b,imageUrl:y})}),rj=(f,c,u)=>f.map(f=>f.services.map(f=>{let d=f.quantity,h=(0,rO.createMinorUnit)(u(f.service.price)),l=(0,rO.createMinorUnit)(u(f.service.discountPrice)),p=0;return d>0&&(p=h+(d-1)*l,!h&&l&&(h=l)),rD({productType:"surcharge",name:f.service.name,reference:f.service.id,quantity:d,quantityUnit:"service",taxR
1ate:c,grossUnitPrice:h,totalDiscountAmount:(0,rT.roundNumber)(h,0)*d-p})})).flat(),rF=(f,c,u,d)=>{let h=(0,rO.getVatRateByCountryCode)(u),l=(0,rO.createMinorUnit)(d?.resolveRate(h)??h),p=[...rU(f,c),...rj(f,l,(0,rN.storeGrossRebaser)(h,d))],b=(0,rC.sumArrayOfNumbers)(p.map(f=>f.totalAmount??0)),y=(0,rC.sumArrayOfNumbers)(p.map(f=>(f.totalAmount??0)-(f.totalVatAmount??0)));return{orderLines:p,orderAmount:b,netOrderAmount:y,taxRate:l,rebaseShipping:f=>(0,rN.shippingForBuyer)(f,h,d).cost}},rq=f=>({productType:"shipping_fee",name:f.name,reference:f.id,quantity:1,quantityUnit:"pc",taxRate:f.tax_rate,unitPrice:f.price-f.tax_amount,unitPriceIncVat:f.price,discountPercentage:0,unitDiscountAmountIncVat:0,totalAmount:f.price,totalVatAmount:f.tax_amount}),r$=({name:f,reference:c,grossIncVat:u,taxRate:d})=>{let h=(0,rT.roundNumber)(u,0),l=(0,rT.roundNumber)((0,rO.getTax)(h,d,!0),0);return{productType:"shipping_fee",name:f,reference:c,quantity:1,quantityUnit:"pc",taxRate:d,unitPrice:h-l,unitPriceIncVat:h,discountPercentage:0,unitDiscountAmountIncVat:0,totalAmount:h,totalVatAmount:l}},rz=f=>"sales_tax"!==f.productType&&"gift_card"!==f.productType,rV=(f,c)=>{let u=f.filter(rz),d=(0,rC.sumArrayOfNumbers)(u.map(f=>f.totalAmount??0));return{currency:c,amountIncVat:d,amountExVat:d-(0,rC.sumArrayOfNumbers)(u.map(f=>f.totalVatAmount??0)),cart:f}};f.s(["briqpayCarrierShippingLine",0,r$,"briqpayOrderFactory",0,rV,"briqpayOrderLineFactory",0,rF,"briqpayShippingLine",0,rq],911486);let rK={createSession:rv,readSession:r_,updateSession:rw,updateMetadata:rx,makeDecision:rS,cancelOrder:rE,captureOrder:rM,refundCapture:rA,releaseRemaining:rR,updateOrderCart:rk,updateOrderReferences:rP};f.s(["briqpayCheckoutApi",0,rK],144117);let rH={checkout:rK};f.s(["briqpayApi",0,rH],569648);var rW=c,rG=v,rJ=eN,rY=eC,rX=q,rQ=E;let rZ=["order_pending","order_approved_not_captured","captured_partial","captured_full"],r0=["order_rejected","order_cancelled"],r1=async(f,c,u,d)=>{let{error:h,data:l}=await (0,rn.getStorefrontOrderByOrderNumber)({orderNumber:f});if(h||!l)throw rG.alertService.send("Provision order | Get storefront order",{blocks:[{title:"Payload",content:{storefrontOrderNumber:f}},{title:"Error",content:h}]}),(0,rW.createError)(h??"BE GET endpoint error");
1if(!l.paymentId)throw rG.alertService.send("Provision order | SF order missing Briqpay paymentId",{blocks:[{title:"Payload",content:{storefrontOrderNumber:f}},{title:"Storefront Order",content:l}]}),(0,rW.createError)("SF order is missing Briqpay paymentId — cannot resolve Briqpay session");let{error:p,data:b}=await rH.checkout.readSession(l.paymentId);if(p||!b)throw rG.alertService.send("Provision order | Get briqpay session",{blocks:[{title:"Payload",content:{sessionId:l.paymentId}},{title:"Error",content:p}]}),Error(p||"Briqpay GET endpoint error");let y=b.moduleStatus?.payment?.orderStatus;if(y&&r0.includes(y)){if(l.status!==ri.OrderStatus.CANCELLED){let{error:c}=await rs({orderId:f,payload:{orderStatus:ri.OrderStatus.CANCELLED}});if(c)throw rG.alertService.send("Provision order | Cancel rejected Briqpay order",{blocks:[{title:"Payload",content:{storefrontOrderNumber:f,orderStatus:y}},{title:"Error",content:c}]}),(0,rW.createError)(c)}if(d?.asFallback)return{storefrontOrder:{...l,status:ri.OrderStatus.CANCELLED},briqpayResponse:b};throw(0,rW.createError)(`Briqpay payment did not go through (orderStatus: ${y})`)}if((0,rQ.isOrderAlreadyProvisioned)(l))return{storefrontOrder:l,briqpayResponse:b};if("completed"!==b.status)throw rG.alertService.send("Provision order | Briqpay session not completed",{blocks:[{title:"Payload",content:{sessionId:b.sessionId}},{title:"Error",content:`Briqpay session status is ${b.status}, expected 'completed'`}]}),Error("Briqpay session is not completed yet");if(!y||!rZ.includes(y))throw rG.alertService.send("Provision order | Briqpay order not payable",{blocks:[{title:"Payload",content:{sessionId:b.sessionId}},{title:"Briqpay Session",content:b},{title:"Error",content:`Briqpay orderStatus is ${y??"missing"}, expected one of ${rZ.join(", ")}`}]}),Error(`Briqpay order is not payable (orderStatus: ${y??"missing"})`);if(d?.asFallback&&(0,rQ.isOrderFresh)(l))throw(0,rW.createError)("Payment push received for a still-fresh order; deferring to the confirmation page");let m=async()=>{if(l.shippingProvider)switch(l.shippingProvider){case"INGRID":return(0,rJ.generateIngridShippingProviderResult)(l);case"POSTNORD":{let{customerInfo:f}=ek(b,l);return(0,rX.generatePostnordShippingProviderResult)(l,{phoneNo:f.phone,smsNo:f.phone,emailAddress:f.email,contactName:f.fullName},u)}case"NSHIFT":{let{customerInfo:f}=ek(b,l);return(0,rY.generateNshiftShippingProviderResult)(l,{phone:f.phone,email:f.email,name:f.fullName})}}},g=await m();return{storefrontOrder:await eT({order:l,paymentProviderInfo:{...c,providerName:"BRIQPAY",providerResponse:{briqpayResponse:b}},...g&&{shippingProviderInfo:g}}),briqpayResponse:b,...g&&{shippingProviderResult:g}}},r2=async(f,c,u,d)=>{let h,l=c?.providerName??"KLARNA",p=null,b={providerName:l};switch(l){case"KLARNA":{let l=await eD(f,c,u,d);p=l?.storefrontOrder??null,b.klarnaResponse=l?.klarnaOrder,h=l?.shippingProviderResult}break;case"NEXI":{let l=await e5(f,c,u,d);p=l?.storefrontOrder??null,b.nexiResponse=l?.nexiResponse,h=l?.shippingProviderResult}break;case"SVEA":{let l=await tC(f,c,u,d);p=l?.storefrontOrder??null,b.sveaResponse=l?.sveaResponse,h=l?.shippingProviderResult}break;case"QLIRO":{let l=await rr(f,c,u,d);p=l?.storefrontOrder??null,b.qliroResponse=l?.qliroResponse,h=l?.shippingProviderResult}break;case"BRIQPAY":{let l=await r1(f,c,u,d);p=l?.storefrontOrder??null,b.briqpayResponse=l?.briqpayResponse,h=l?.shippingProviderResult}}return{storefrontOrder:p,paymentProviderResult:b,...h&&{shippingProviderResult:h}}};f.s([],243201);var r6=I,r3=c,r4=x;async function r8({storeId:f,backendOrderLines:c,cartDiscountCode:u,shipping:d,paymentProviderInfo:h,customerId:l}){let p={status:r6.OrderStatus.CREATED,storeId:f,items:c,customer:null,...l?{customerId:l}:{},paymentProvider:h.providerName,...d?{shippingProvider:d.provider,shippingId:d.providerSessionId}:{},...u?.code?{discountCode:u?.code}:{}},b=(0,r3.fetchPropsFactory)({props:{method:"POST",credentials:"include",body:JSON.stringify(p)}}),{data:y,error:m}=await (0,r3.storefrontApiCall)(r4.ORDERS_ENDPOINT,b);return m||!y?(0,r3.createEndpointError)("create storefront order"):y}var r5=c,r9=x;let r7=(0,e7.createLogger)("storefront-api/orders");async function ie(f){let c=(0,r5.fetchPropsFactory)({props:{method:"PUT",body:JSON.stringify(f)}});r7.log("updateStorefrontOrder [REQ]",{url:r9.ORDERS_ENDPOINT,order:f});let{data:u,error:d}=await (0,r5.storefrontApiCall)(r9.ORDERS_ENDPOINT,c);if(d||!f)throw r7.error("updateStorefrontOrder [ERROR]",{url:r9.ORDERS_ENDPOINT,order:f,error:d}),(0,r5.createError)(d||"Update storefront order error");return r7.log("updateStorefrontOrder [RES]",{url:r9.ORDERS_ENDPOINT,data:u}),u}var it=g,ir=f.i(550685);let ii=`${ir.BASE_STOREFRONT_ENDPOINT}/invoice`;var io=c;async function ia(f){let c=(0,io.fetchPropsFactory)({props:{method:"POST",credentials:"include",body:JSON.stringify(f)}}),{data:u,error:d}=await (0,io.storefrontApiCall)(ii,c);return d||!u?(0,io.createEndpointError)("create invoice order"):u}var is=c;async function ic(f){let c=(0,is.fetchPropsFactory)({props:{method:"PUT",credentials:"include",body:JSON.stringify(f)}}),{data:u,error:d}=await (0,is.storefrontApiCall)(ii,c);if(d||!u)throw(0,is.createError)(d||"Update invoice order error");return u}var iu=c;async function id(f){let c=(0,iu.urlWithQueryParamsFactory)(`${ii}/`,{queryParams:f}),u=(0,iu.fetchPropsFactory)({props:{method:"GET",credentials:"include"}});return(0,iu.storefrontApiCall)(c,u)}var ih=c;async function il(f){let c=`${ii}/${f.orderNumber}/status`,u=(0,ih.fetchPropsFactory)({props:{method:"POST",credentials:"include",body:JSON.stringify(f.payload)}});return(0,ih.storefrontApiCall)(c,u)}var ip=c,ib=ir;let iy=`${ib.BASE_STOREFRONT_ENDPOINT}/store/widgets`;function im({id:f,type:c}){return`${iy}/${c}/${f}`}function ig({type:f,view:c}){return`${iy}/filter?${f?`type=${f}&`:""}view=${c}`}
1let iv={getWidgets:async function({filter:f={},...c}){let u=ig(c),d=(0,ip.fetchPropsFactory)({props:{method:"POST",credentials:"include",body:JSON.stringify(f)}}),{data:h,error:l}=await (0,ip.storefrontApiCall)(u,d);return l||!h?(0,ip.createEndpointError)("store front admin widgets endpoint"):h},getWidgetsByView:async function(f){let c=`${iy}/view/${f}`,u=(0,ip.fetchPropsFactory)({props:{method:"GET",credentials:"include"}}),{data:d,error:h}=await (0,ip.storefrontApiCall)(c,u);return h||!d?(0,ip.createEndpointError)("view widgets endpoint"):d},getWidgetByType:async function({id:f,type:c}){let u=im({id:f,type:c}),d=(0,ip.fetchPropsFactory)({props:{method:"GET",credentials:"include"}}),{data:h,error:l}=await (0,ip.storefrontApiCall)(u,d);return l||!h?(0,ip.createEndpointError)("widgets endpoint"):h}};var i_=c;let iw="https://api.granditude.com/assistant";async function ix(f){let c=(0,i_.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),u=`${iw}/chat`,{data:d,error:h}=await (0,i_.storefrontApiCall)(u,c);if(h)throw(0,i_.createError)(h);return d}var iS=_,iE=c;let iM="https://api.granditude.com/assistant";async function iA({sessionId:f,...c}){let u=(0,iE.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(c)}}),d=(0,iS.constructURLWithParams)(`${iM}/v2/chat`,{sessionId:f}),{data:h,error:l}=await (0,iE.storefrontApiCall)(d,u);if(l)throw(0,iE.createError)(l);return h}async function iR(f){let c=(0,iE.fetchPropsFactory)({props:{method:"GET"}}),u=`${iM}/thread${f.customerId?`?customerId=${f.customerId}`:""}`,{data:d,error:h}=await (0,iE.storefrontApiCall)(u,c);if(h)throw(0,iE.createError)(h);return d}async function ik(f){let c=`${iM}/text-to-speech`,u=(0,iE.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),d=await fetch(c,u);if(!d.ok)throw(0,iE.createError)(d.statusText);let h=d.body;return h instanceof ReadableStream?h:null}var iP=_,iI=c,iO=ir;let iT=`${iO.BASE_STOREFRONT_ENDPOINT}/customer-deals`,iN={list:async f=>{let c=(0,iP.createUrl)(iT,f),{data:u,error:d}=await (0,iI.storefrontApiCall)(c,(0,iI.fetchPropsFactory)());if(d)throw(0,iI.createError)(d);return u},readOffer:async({offerId:f})=>{let{data:c,error:u,response:d}=await (0,iI.apiCall)(`${iT}/${f}/opened`,(0,iI.fetchPropsFactory)({props:{method:"PUT"}}));if(u)throw(0,iI.createError)(u);if(!d?.ok)throw(0,iI.createError)(c??`Api error: ${d?.status} ${d?.statusText}`);return{success:!0}},acceptOffer:async({offerId:f})=>{let{data:c,error:u,response:d}=await (0,iI.apiCall)(`${iT}/${f}/accepted`,(0,iI.fetchPropsFactory)({props:{method:"PUT"}}));if(u)throw(0,iI.createError)(u);if(!d?.ok)throw(0,iI.createError)(c??`Api error: ${d?.status} ${d?.statusText}`);return{success:!0}},sendAnalytics:async f=>{let c=JSON.stringify({sessionId:f.userSessionId??"",token:f.token,slug:f?.data?.product?.slug??""}),{data:u,error:d,response:h}=await (0,iI.apiCall)(`${iT}/product`,(0,iI.fetchPropsFactory)({props:{method:"POST",body:c}}));if(d)throw(0,iI.createError)(d);if(!h?.ok)throw(0,iI.createError)(u??`Api error: ${h?.status} ${h?.statusText}`);return{success:!0}}},iC={auth:{login:p.login,setPassword:p.setPassword,resetPassword:p.resetPassword,resendMagicLink:p.resendMagicLink,signup:p.signup},customer:{findById:b.findById,update:b.update,getCustomerOrders:b.getCustomerOrders,getCustomerOrderItems:b.getCustomerOrderItems},store:{getStore:h.getStore,getFilters:h.getFilters,getDiscountCode:h.getDiscountCode,getDiscountCodeList:h.getDiscountCodeList,getFilterOptions:l.getFilterOptions,validQueryParamFiltersFactory:h.validQueryParamFiltersFactory},products:{searchProducts:y.searchProducts,searchProductsAutocomplete:y.searchProductsAutocomplete,listProducts:y.listProducts,listProductsFull:y.listProductsFull,productById:y.productById,productBySlug:y.productBySlug,productSlugs:y.productSlugs,variantsByGroupId:y.variantsByGroupId,checkoutRelatedProducts:y.checkoutRelatedProducts,getMarketplaceProducts:y.getMarketplaceProducts},orders:{createStorefrontOrder:r8,updateStorefrontOrder:ie,getStorefrontOrder:it.getStorefrontOrderByOrderNumber,provisionOrder:r2},invoiceOrders:{createInvoiceOrder:ia,updateInvoiceOrder:ic,getInvoiceOrder:id,updateInvoiceOrderStatus:il},widgets:iv,assistant:{getAssistantChatResponse:ix},assistantV2:{getAssistantV2Thread:iR,getAssistantV2ChatResponse:iA,textToSpeech:ik},aiOffer:iN};f.s(["default",0,iC],970936),f.s([],841239),f.i(568462);var iB=f.i(747349);async function iL(){let f=await iv.getWidgets({view:"STATIC_VIEWS",type:iB.StorefrontWidgetTypeAll.WIDGET_STATIC_VIEW_CATEGORY,filter:{key:"name",textValues:["Static Pages"]}});return f.length?f[0].widget.relatedStaticPages:[]}f.s(["staticPagesCategoryFactory",0,iL],693873);var iD=A,iU=tg,ij=C,iF=B;let iq=(f,c,u,d)=>f?.map(f=>{let{qty:h=1,product:l}=f,p={product:l,quantity:h,...(0,iU.priceProductForBuyer)(l,u,d),services:[],subItems:[]},{totalAmount:b,unitPrice:y}=(0,iF.orderLineValueCalculator)(p,c);return{product:l,quantity:h,subItems:p.subItems,vatRate:p.vatRate,additionalInfo:"",originalUnitPrice:(0,iD.convertMinorUnitToValue)(y),productId:l.id,services:[],unitPrice:(0,ij.roundNumber)((0,iD.convertMinorUnitToValue)(b/h),2)}})||[];
1f.s(["parseCartSubItemsToBackendOrderSubItems",0,iq],592931);var i$=iB;let iz=async f=>{let c=[...f],u=Object.keys(c.filter(f=>f.type===i$.StorefrontWidgetTypeAll.JOINED_WIDGET).reduce((f,{widget:c})=>{let{relatedSharedWidgets:u=[]}=c;return u.forEach(c=>{f[c.id]=!0}),f},{}));if(u.length){let f=await iC.widgets.getWidgets({view:"SHARED_WIDGETS",filter:{key:"id",textValues:u}}).then(f=>f.reduce((f,c)=>(f[c.widget.id]=c,f),{}));c.forEach(c=>{if(c.type!==i$.StorefrontWidgetTypeAll.JOINED_WIDGET)return;let u=c.widget;c.widget.relatedSharedWidgets=u.relatedSharedWidgets.map(c=>f[c.id])})}return c},iV=async(f,c)=>iC.widgets.getWidgetByType(f).then(f=>f.length?f:iC.widgets.getWidgetsByView(c)).then(iz);f.s(["dynamicPageWidgets",0,iV],512454),f.i(451326),f.i(65196);var iK=eF,iH=f.i(225588);let iW={en:{apiKey:iK.default.env.API_KEY_EN,secret:iK.default.env.SECRET_KEY_EN},no:{apiKey:iK.default.env.API_KEY_NO,secret:iK.default.env.SECRET_KEY_NO},da:{apiKey:iK.default.env.API_KEY_DA,secret:iK.default.env.SECRET_KEY_DA},sv:{apiKey:iK.default.env.API_KEY,secret:iK.default.env.SECRET_KEY}};function iG(f){if(!f)throw Error("No locale found for this component. This HOC works in pages and layout components");let{apiKey:c,secret:u}=iW[f]||iW.sv;if(!c||!u)throw Error(`No api or secret detected for ${f}`);(0,iH.setRequestCredentials)({apiKey:c,secret:u})}f.s(["useLocaleCredentials",0,iG],702836),f.i(831056),f.i(158135),f.i(506446),f.i(831391),f.s([],564855)},86036,526545,394546,f=>{"use strict";f.i(719785);var c=f.i(222752),u=f.i(492708);f.i(360076);var d=f.i(550685);let h=`${d.BASE_STOREFRONT_ENDPOINT}/orders`;f.s(["ORDERS_ENDPOINT",0,h],526545);let l=(0,c.createLogger)("storefront-api/orders");async function p(f){let c=(0,u.urlWithQueryParamsFactory)(`${h}/`,{queryParams:f}),d=(0,u.fetchPropsFactory)({props:{method:"GET",credentials:"include"}});l.log("getStorefrontOrderByOrderNumber [REQ]",{url:c,params:f});let p=await (0,u.storefrontApiCall)(c,d);return p.error?l.error("getStorefrontOrderByOrderNumber [ERROR]",{url:c,params:f,error:p.error}):l.log("getStorefrontOrderByOrderNumber [RES]",{url:c,data:p.data}),p}f.s(["getStorefrontOrderByOrderNumber",0,p],86036);var b=f.i(62921);class y{webhookUrl=b.default.env.ALERT_SLACK_WEBHOOK_URL;envVariables;constructor(){this.envVariables={..."1"===b.default.env.VERCEL?{VERCEL_PROJECT_NAME:b.default.env.VERCEL_PROJECT_NAME,VERCEL_URL:b.default.env.VERCEL_URL,VERCEL_PROJECT_PRODUCTION_URL:b.default.env.VERCEL_PROJECT_PRODUCTION_URL,VERCEL_ENV:b.default.env.VERCEL_ENV}:{},PROD_DOMAIN_URL:b.default.env.PROD_DOMAIN_URL,...b.default.env.NEXI_API_URL?{NEXI_API_URL:b.default.env.NEXI_API_URL}:{},...b.default.env.NEXT_PUBLIC_NEXI_CHECKOUT_URL?{NEXT_PUBLIC_NEXI_CHECKOUT_URL:b.default.env.NEXT_PUBLIC_NEXI_CHECKOUT_URL}:{},...b.default.env.KLARNA_URL?{KLARNA_URL:b.default.env.KLARNA_URL}:{},...b.default.env.SVEA_API_CHECKOUT_URL?{SVEA_API_CHECKOUT_URL:b.default.env.SVEA_API_CHECKOUT_URL}:{},...b.default.env.INGRID_API_URL?{INGRID_API_URL:b.default.env.INGRID_API_URL}:{},...b.default.env.NSHIFT_CHECKOUT_API_URL?{NSHIFT_CHECKOUT_API_URL:b.default.env.NSHIFT_CHECKOUT_API_URL}:{},...b.default.env.POSTNORD_API_URL?{POSTNORD_API_URL:b.default.env.POSTNORD_API_URL}:{}}}async send(f,c){if(console.error(`[ALERT] ${f}`,{timestamp:new Date().toISOString(),envVariables:this.envVariables,blocks:c.blocks.map(f=>({title:f.title,content:"string"==typeof f.content?f.content:JSON.stringify(f.content)}))}),!this.webhookUrl)return console.warn("No Slack webhook URL configured - alert only logged to console"),!1;try{let u=this.buildSlackBlocks(f,c.blocks),d=await fetch(this.webhookUrl,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:f,blocks:u})});return d.ok||console.error(`Slack webhook failed with status ${d.status}`),d.ok}catch(f){return console.error("Failed to send Slack alert:",f),!1}}buildSlackBlocks(f,c){let u=[{type:"rich_text",elements:[{type:"rich_text_section",elements:[{type:"text",text:f,style:{bold:!0}}]},{type:"rich_text_section",elements:[{type:"text",text:"Timestamp: ",style:{bold:!0}},{type:"text",text:new Date().toISOString()}]}]},{type:"rich_text",elements:[{type:"rich_text_section",elements:[{type:"text",text:"ENV variables:",style:{bold:!0}}]}
1,{type:"rich_text_preformatted",elements:[{type:"text",text:JSON.stringify(this.envVariables,null,2)}],border:0}]}];for(let f of c)if(u.push({type:"rich_text",elements:[{type:"rich_text_section",elements:[{type:"text",text:f.title,style:{bold:!0}}]}]}),"string"==typeof f.content)u.push({type:"rich_text",elements:[{type:"rich_text_section",elements:[{type:"text",text:f.content}]}]});else{let c=JSON.stringify(f.content,null,2);for(let f of this.chunkString(c,12e3))u.push({type:"rich_text",elements:[{type:"rich_text_preformatted",elements:[{type:"text",text:f}],border:0}]})}return u}chunkString(f,c){let u=[];for(let d=0;d<f.length;d+=c)u.push(f.substring(d,d+c));return u}}let m=new y;f.s(["alertService",0,m],394546)},149837,494246,831391,8908,503930,f=>{"use strict";f.i(709675);var c=f.i(677200),u=f.i(394546);let d=async f=>{if(!f.shippingId)throw Error("Ingrid shippingId is not provided");let{data:d,error:h}=await c.ingridApi.checkout.getSession(f.shippingId);if(h||!d)throw u.alertService.send("Provision order | Get ingrid session",{blocks:[{title:"Payload",content:{shippingId:f.shippingId}},{title:"Order",content:f},{title:"Error",content:h}]}),Error(h||"getIngridSession error");if("COMPLETE"!==d.session.status){let h={checkout_session_id:f.shippingId,customer:d.session.delivery_groups[0].addresses.customer??d.session.delivery_groups[0].addresses.delivery_address,external_id:f.orderNumber||""},{data:l,error:p}=await c.ingridApi.checkout.completeSession(h);if(p||!l)throw u.alertService.send("Provision order | Complete ingrid session",{blocks:[{title:"Payload",content:h},{title:"Order",content:f},{title:"Error",content:p}]}),Error(p||"completeIngridSession error");return{providerName:"INGRID",ingridResponse:l.session}}return{providerName:"INGRID",ingridResponse:d.session}};f.s(["generateIngridShippingProviderResult",0,d],494246),f.i(719785);var h=f.i(341850),l=f.i(709943),p=f.i(222752),b=f.i(732729),y=f.i(492708),m=f.i(62921);let g=m.default.env.NSHIFT_CLIENT_ID,v=m.default.env.NSHIFT_CLIENT_SECRET,_=m.default.env.NSHIFT_CHECKOUT_CONNECTION_ID,w=m.default.env.NSHIFT_CHECKOUT_API_URL;var x=y;let S=async()=>{if(!g)throw Error("NSHIFT_CLIENT_ID is not provided");if(!v)throw Error("NSHIFT_CLIENT_SECRET is not provided");let f="https://account.nshiftportal.com/idp/connect/token",c=new URLSearchParams({client_id:g,client_secret:v,grant_type:"client_credentials"}),{data:u,error:d,response:h}=await (0,x.apiCall)(f,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},body:c.toString()});if(d)throw Error(d);if(!h?.ok)throw Error(u&&"error"in u?u.error:"Unknown error");return u},E=async()=>{let{access_token:f,token_type:c}=await S();return{Authorization:`${c} ${f}`}},M={"Content-Type":"application/json"},A=(0,p.createLogger)("nshift","checkout"),R=async(f,{params:c,...u})=>{if(!w)throw Error("NSHIFT_CHECKOUT_API_URL is not provided");let d=(0,b.resolveUrlPath)(w,(0,b.createUrl)(f,c)),h=u.body??"";A.log("[REQ]",u.method,d,h?JSON.parse(h):"");let{error:l,data:p,response:m}=await (0,y.apiCall)(d,u);if(l||!m)return A.log(`[RES] ${m?.status} error`,u.method,d,l),{data:null,error:l,response:m};if(m.ok)return A.log(`[RES] ${m.status} success`,u.method,d,p),{data:p,error:null,response:m};if(!p)return A.log(`[RES] ${m.status} error`,u.method,d,"Unknown error"),{data:null,error:"Unknown error",response:m};if("detail"in p){let f=p,c=f.issues?.map(f=>f.issueCode||f.description)?.filter(Boolean).join(", ")||f.detail||f.title||String(f.status);return A.log(`[RES] ${m.status} error with detail`,u.method,d,c),{data:null,error:c,response:m}}return A.log(`[RES] ${m.status} success`,u.method,d,p),{data:p,error:null,response:m}},k={checkout:{createSession:async f=>{if(!_)throw Error("NSHIFT_CHECKOUT_CONNECTION_ID is not provided");let{data:c,error:u}=await R(`/checkout/options/v1/sessions/${_}`,{method:"POST",headers:{...M,...await E()},body:JSON.stringify(f)});if(!c||u)throw Error(u||"Unknown error");return c},getDeliveryOptions:async({sessionId:f,...c})=>R(`/checkout/options/v1/shipping-options/${f}`,{method:"POST",headers:{...M,...await E()},body:JSON.stringify(c)}
1),createPartialShipment:async(f,c)=>R("/checkout/shipments/v1/shipments",{method:"POST",headers:{...M,...await E()},body:JSON.stringify(f),params:{"extended-result":"true","send-to-book-and-print":"true",...c}})}};f.s(["nshiftApi",0,k],831391);var P=u;let I=async(f,c)=>{let u=f.shippingInfo?.additionalInfo?.nshiftDetails;if(!u)throw P.alertService.send("Provision order | Get nshift data from order",{blocks:[{title:"Missing data in",content:"orderData.shippingInfo?.additionalInfo?.nshiftDetails"},{title:"Order",content:f},{title:"Error",content:"No nshift shipping data"}]}),Error("No nshift shipping data");if(u?.isPickupFromStore)return{providerName:f.shippingProvider,nshiftResponse:{isPickupFromStore:!0}};if(u?.bookingDetails?.bookingOrderId)return{providerName:f.shippingProvider,nshiftResponse:u};if(!u?.widgetResult||!u?.recipientAddress)throw P.alertService.send("Provision order | Prepare data for Postnord booking creation",{blocks:[{title:"Missing data in one of the properties",content:["nshiftDetails?.widgetResult","nshiftDetails?.recipientAddress"]},{title:"Order",content:f},{title:"Error",content:"No nshift shipping details for booking creation"}]}),Error("No nshift shipping details for booking creation");let d=await (async()=>{let c=f.items?.map(f=>f.product.id)??[];return c?.length?(await l.listProductsFull({productIds:c},{size:c.length})).content:[]})();if(d.length!==f.items?.length)throw P.alertService.send("Provision order | Prepare data for Nshift booking creation | Get full products",{blocks:[{title:"Full Products",content:d},{title:"Order",content:f},{title:"Error",content:"Products are not found"}]}),Error("Products are not found");let{totalWeight:p,extendedItems:b}=(0,h.calculateOrderTotalWeight)(f.items,d),y={orderId:f.orderNumber??"",sessionId:u.widgetResult.sessionId,optionId:u.widgetResult.optionId,pickupPointId:u.widgetResult.pickupPointId,timeSlotId:u.widgetResult.timeSlotId,addons:u.widgetResult.addons,fields:u.widgetResult.fields,receiver:{...u.recipientAddress,name:c.name,email:c.email,phone:c.phone,mobile:c.phone},packages:[{weightKg:p,articles:b.map(f=>({articleNo:f.product.articleNumber,quantity:f.quantity,weightKg:f.weight}))}]},{data:m,error:g}=await k.checkout.createPartialShipment(y);if(g||!m)throw P.alertService.send("Provision order | Create Nshift booking",{blocks:[{title:"Payload",content:y},{title:"Order",content:f},{title:"Response data",content:m},{title:"Error",content:g}]}),Error(g||"Nshift booking shipment error");return{providerName:f.shippingProvider,nshiftResponse:{bookingDetails:{bookingOrderId:m.orderId,...m.pickupPoint?{pickupPoint:m.pickupPoint}:{},carrier:m.carrier,carrierProduct:m.carrierProduct},widgetResult:u.widgetResult,recipientAddress:u.recipientAddress}}};f.s(["generateNshiftShippingProviderResult",0,I],8908),f.i(810485);var O=f.i(106327);let T=f=>f.status!==O.OrderStatus.CREATED&&f.status!==O.OrderStatus.DRAFT,N=18e5,C=f=>{let c=f.updated??f.created;if(null==c)return!1;let u="number"==typeof c?c:Number(c),d=Number.isFinite(u)?1e3*u:new Date(c).getTime();return!Number.isNaN(d)&&Date.now()-d<N};f.s(["isOrderAlreadyProvisioned",0,T,"isOrderFresh",0,C],503930),f.s([],149837)},709675,f=>{"use strict";var c=f.i(261940);f.i(719785);var u=f.i(341850),d=f.i(962500),h=f.i(145e3),l=f.i(709943),p=f.i(394546);let b=f=>[(f.street||(f.streetName?`${f.streetName} ${f.streetNumber??""}`:"")).trim()],y=({applicationId:f,deliveryOption:h,postnordCustomerId:l,warehouse:p,companyName:y,recipientParty:m,products:g,orderItems:v})=>{let _=()=>({DK:"Z11",SE:"Z12",NO:"Z13",FI:"Z14"})[p.address.countryCode??"SE"],{totalWeight:w}=(0,u.calculateOrderTotalWeight)(v,g),x=(0,d.roundNumber)(w,3)||1;return{messageDate:new Date().toISOString(),messageFunction:"Instruction",messageId:(0,c.v4)().replace(/-/g,"").slice(0,14),application:{applicationId:f,name:"Granditude",version:"1.0"},updateIndicator:"Original",shipment:[{shipmentIdentification:{shipmentId:"0"},service:{basicServiceCode:h.details.bookingInstructions.serviceCode,additionalServiceCode:h.details.bookingInstructions.additionalServiceCodes},numberOfPackages:{value:1},totalGrossWeight:{value:x,unit:"KGM"},parties:{consignor:{issuerCode:_(),partyIdentification:{partyId:l,partyIdType:"160"},party:{nameIdentification:{companyName:y},address:{streets:b(p.address),postalCode:p.address.postCode,city:p.address.city,countryCode:p.address.countryCode}}},consignee:m,...h.details.location?{deliveryParty:{partyIdentification:{partyId:h.details.bookingInstructions.servicePointId??"",partyIdType:"156"},party:{nameIdentification:{name:h.details.location.name},address:{streets:b(h.details.location.address),postalCode:h.details.location.address.postCode,city:h.details.location.address.city,countryCode:h.details.location.address.countryCode}}}}:{}},goodsItem:[{packageTypeCode:"PC",items:[{itemIdentification:{itemId:"0",itemIdType:"SSCC"},grossWeight:{value:x,unit:"KGM"}}]}]}]}},m=async(f,c,u)=>
1{let d=f.shippingInfo?.additionalInfo?.postnordDetails;if(!d)throw p.alertService.send("Provision order | Get postnord data from order",{blocks:[{title:"Missing data in",content:"orderData.shippingInfo?.additionalInfo?.postnordDetails"},{title:"Order",content:f},{title:"Error",content:"No postnord shipping data"}]}),Error("No postnord shipping data");if(d?.isPickupFromStore||d?.bookingDetails?.bookingId)return{providerName:f.shippingProvider,postnordResponse:d};if(!d?.deliveryOption||!d?.recipientAddress||!u?.postnordOptions)throw p.alertService.send("Provision order | Prepare data for Postnord booking creation",{blocks:[{title:"Missing data in one of the properties",content:["postnordDetails?.deliveryOption","postnordDetails?.recipientAddress","shippingProviderConfig?.postnordOptions"]},{title:"Order",content:f},{title:"Shipping Provider Config",content:u},{title:"Error",content:"No postnord shipping details for booking creation"}]}),Error("No postnord shipping details for booking creation");let m=await (async()=>{let c=f.items?.map(f=>f.product.id)??[];return c?.length?(await l.listProductsFull({productIds:c},{size:c.length})).content:[]})();if(m.length!==f.items?.length)throw p.alertService.send("Provision order | Prepare data for Postnord booking creation | Get full products",{blocks:[{title:"Full Products",content:m},{title:"Order",content:f},{title:"Error",content:"Products are not found"}]}),Error("Products are not found");let g=y({applicationId:u.postnordOptions.applicationId,deliveryOption:d.deliveryOption,postnordCustomerId:u.postnordOptions.customerKey,warehouse:u.postnordOptions.warehouses[0],companyName:u.postnordOptions.companyName??"",recipientParty:{party:{nameIdentification:{name:c.contactName},address:{streets:b(d.recipientAddress),postalCode:d.recipientAddress.postCode,countryCode:d.recipientAddress.countryCode,city:d.recipientAddress.city},contact:c}},products:m,orderItems:f.items}),{data:v,error:_}=await h.postnordApi.bookShipmentEdiLabelsPdf(g);if(_||!v||v.bookingResponse.idInformation[0]?.status?.toLowerCase()!=="ok")throw p.alertService.send("Provision order | Create Postnord booking",{blocks:[{title:"Payload",content:g},{title:"Order",content:f},{title:"Response data",content:v},{title:"Error",content:_}]}),Error(_||"PostNord booking shipment error");return{providerName:f.shippingProvider,postnordResponse:{deliveryOption:d.deliveryOption,bookingDetails:{bookingId:v.bookingResponse.bookingId,trackingUrl:v.bookingResponse.idInformation[0].urls.find(f=>"TRACKING"===f.type)?.url,trackingNumber:v.bookingResponse.idInformation[0].ids[0]?.value,labelUrl:v.labelPrintout[0].printout.uriStoreLabel},recipientAddress:d.recipientAddress}}};f.s(["generatePostnordShippingProviderResult",0,m,"getPostNordStreetsFromAddress",0,b])},360076,550685,670168,80399,804773,122802,709943,f=>{"use strict";f.i(810485);var c=f.i(390594),u=f.i(492708),d=f.i(451326);let h="https://api.granditude.com/storefront",l=`${h}/store`;f.s(["BASE_STOREFRONT_ENDPOINT",0,h,"storeEndpoint",0,l],550685);var p=f.i(883090),b=u;async function y(f){let c=(0,b.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),{data:u,error:d}=await (0,b.storefrontApiCall)(`${l}/filters`,c);return d?(0,b.createEndpointError)("getFilterOptions",d):(u&&m(u),u)}let m=f=>{f?.brands&&(f.brands=(0,p.default)(f?.brands,"name")),f?.options&&f.options.forEach(f=>{if(f.numberValues&&f.numberValues.sort((f,c)=>f-c),f.textValues){let c=f.textValues.reduce((f,c)=>(Number.isNaN(parseInt(c))?f.stringValues=[...f.stringValues,c]:f.numberValues=[...f.numberValues,{value:c,numberValue:parseInt(c)}],f),{stringValues:[],numberValues:[]});c.numberValues.sort((f,c)=>f.numberValue-c.numberValue),f.textValues=[...c.numberValues.map(f=>f.value),...c.stringValues.sort()]}})};async function g(f,c){let d=(0,u.fetchPropsFactory)({props:c}),h=(0,u.urlWithQueryParamsFactory)(l,{queryParams:f}),{data:p,error:b}=await (0,u.storefrontApiCall)(h,d);return p?(p.services=p.services||[],p):(0,u.createEndpointError)("store",b)}async function v(){let f=(0,u.fetchPropsFactory)(),{data:c,error:d}=await (0,u.storefrontApiCall)(`${l}/filters`,f);return d?(0,u.createEndpointError)(`${l}/filters`,d):c}async function _(f){let c=(0,u.urlWithQueryParamsFactory)(`${l}/discount-code`,{queryParams:f}),d=(0,u.fetchPropsFactory)({props:{method:"GET",credentials:"include"}});return(0,u.storefrontApiCall)(c,d)}async function w(){let f=(0,u.urlWithQueryParamsFactory)(`${l}/discount-codes`),c=(0,u.fetchPropsFactory)({props:{method:"GET",credentials:"include"}});return(0,u.storefrontApiCall)(f,c)}f.s(["getFilterOptions",0,y],670168);let x=async(f,u)=>{let h=(0,d.getFiltersByType)(u.id,u.type,{...u.priceFilter}),l=await y(h),p=[];for(let u in f){let h=l?.options?.find(f=>f.name.toLowerCase()===u.toLowerCase());if(h){let l=(0,d.getFilterType)(h),b={type:l,name:h.name,label:h.label,visible:!!h.variant,textValues:[],numberValues:[]},y=(0,d.filterValuesFactory)(f,u);switch(l){case c.FilterType.TEXT:b.textValues=y;break;case c.FilterType.NUMBER:b.numberValues=y.map(f=>parseInt(f))}p.push(b)}}return p};f.s(["getDiscountCode",0,_,"getDiscountCodeList",0,w,"getFilters",0,v,"getStore",0,g,"validQueryParamFiltersFactory",0,x],80399),f.s([],360076);var S=u;let E=`${h}/auth`;async function M(f){let c=(0,S.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),u=`${E}/login`,{data:d,error:h}=await (0,S.storefrontApiCall)(u,c);if(!d)throw(0,S.createError)(h);return d}async function A(f){let c=(0,S.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),u=`${E}/set-password`,{data:d,error:h}=await (0,S.storefrontApiCall)(u,c);if(!d)throw(0,S.createError)(h);return d}async function R(f){let c=(0,S.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),u=`${E}/reset-password`,{error:d}=await (0,S.storefrontApiCall)(u,c);if(d)throw(0,S.createError)(d)}async function k(f){let c=(0,S.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),u=`${E}/resend-magic-link`,{error:d}=await (0,S.storefrontApiCall)(u,c);if(d)throw(0,S.createError)(d)}async function P(f){let c=(0,S.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),u=`${E}/signup`,{data:d,error:h}=await (0,S.storefrontApiCall)(u,c);if(!d)throw(0,S.createError)(h);return d}f.s(["login",0,M,"resendMagicLink",0,k,"resetPassword",0,R,"setPassword",0,A,"
1signup",0,P],804773);var I=u;let O=`${h}/customer`;async function T(f){let c=(0,I.fetchPropsFactory)({props:{method:"GET"}}),u=`${O}/${f}`,{data:d,error:h}=await (0,I.storefrontApiCall)(u,c);if(!d)throw(0,I.createError)(h);return d}async function N(f,c){let u=(0,I.fetchPropsFactory)({props:{method:"PUT",body:JSON.stringify(c)}}),d=`${O}/${f}`,{data:h,error:l}=await (0,I.storefrontApiCall)(d,u);if(!h)throw(0,I.createError)(l);return h}async function C(f,c){let u=(0,I.fetchPropsFactory)({props:{method:"GET"}}),d=(0,I.urlWithQueryParamsFactory)(`${O}/${f}/orders`,c),{data:h,error:l}=await (0,I.storefrontApiCall)(d,u);if(!h)throw(0,I.createError)(l);return h}async function B(f,c){let u=(0,I.fetchPropsFactory)({props:{method:"GET"}}),d=(0,I.urlWithQueryParamsFactory)(`${O}/${f}/orders/${c}/items`),{data:h,error:l}=await (0,I.storefrontApiCall)(d,u);if(!h)throw(0,I.createError)(l);return h}f.s(["findById",0,T,"getCustomerOrderItems",0,B,"getCustomerOrders",0,C,"update",0,N],122802);var L=c;f.i(719785);var D=f.i(222752),U=f.i(732729),j=u;let F=`${h}/products`,q=(0,D.createLogger)("storfront-api/products");async function $(f){let c=(0,j.urlWithQueryParamsFactory)(`${F}/related`,f),u=(0,j.fetchPropsFactory)(),{data:d,error:h}=await (0,j.storefrontApiCall)(c,u);return h?(0,j.createEndpointError)("related products",h):d}async function z(f,c){let u=(0,j.urlWithQueryParamsFactory)(`${F}/filter`,c),d={types:[L.ProductType.REGULAR,L.ProductType.BUNDLE,L.ProductType.CONFIGURATION],...f},h=(0,j.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(d)}}),{data:l,error:p}=await (0,j.storefrontApiCall)(u,h);return p||!l?(q.error("listProducts [ERROR]",{url:u,requestProps:h,error:p}),(0,j.createEndpointError)("list products",p)):l}async function V(f,c){let u=(0,j.urlWithQueryParamsFactory)(`${F}/filter/full`,c),d={types:[L.ProductType.REGULAR,L.ProductType.BUNDLE,L.ProductType.CONFIGURATION],...f},h=(0,j.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(d)}}),{data:l,error:p}=await (0,j.storefrontApiCall)(u,h);return p||!l?(0,j.createEndpointError)("list full products",p||"unknown error"):l}async function K(f,c){let u=(0,U.createUrl)(`${F}/${f}`,{customerId:c}),d=(0,j.fetchPropsFactory)(),{data:h}=await (0,j.storefrontApiCall)(u,d);return h}async function H(f,c){let u=(0,U.createUrl)(`${F}/slug/${f}`,{customerId:c}),d=(0,j.fetchPropsFactory)(),{data:h}=await (0,j.storefrontApiCall)(u,d);return h}async function W(){let f=`${F}/slugs`,c=(0,j.fetchPropsFactory)(),{data:u,error:d}=await (0,j.storefrontApiCall)(f,c);return d||!u?(0,j.createEndpointError)("slugs endpoint error",d):u}async function G(f,c){let u=(0,j.fetchPropsFactory)(),d=(0,U.createUrl)(`${F}/variant/${f}`,{customerId:c}),{data:h,error:l}=await (0,j.storefrontApiCall)(d,u);return l?(0,j.createEndpointError)("variants by group ID",l):h}async function J(f,c){let u=(0,j.urlWithQueryParamsFactory)(`${F}/search`,c),d=(0,j.fetchPropsFactory)({props:{method:"POST",body:JSON.stringify(f)}}),{data:h,error:l}=await (0,j.storefrontApiCall)(u,d);return l||!h?(0,j.createEndpointError)("search products"):h}async function Y(f,c,u){let d=(0,U.createUrl)(`${F}/search/autocomplete`,{text:f,limit:c,customerId:u}),h=(0,j.fetchPropsFactory)(),{data:l,error:p}=await (0,j.storefrontApiCall)(d,h);return p||!l?(0,j.createEndpointError)("search products autocomplete"):l}async function X(f,c){let u=(0,U.createUrl)(`${F}/slug/${f}/marketplace`,{customerId:c}),d=(0,j.fetchPropsFactory)(),{data:h,error:l}=await (0,j.storefrontApiCall)(u,d);return l||!h?(0,j.createEndpointError)("Marketplace products"):h}f.s(["checkoutRelatedProducts",0,$,"getMarketplaceProducts",0,X,"listProducts",0,z,"listProductsFull",0,V,"productById",0,K,"productBySlug",0,H,"productSlugs",0,W,"searchProducts",0,J,"searchProductsAutocomplete",0,Y,"variantsByGroupId",0,G],709943)},492708,65196,225588,f=>{"use strict";var c=f.i(222752);class u{static instance;_apiKey;_secret;constructor(){this.initializeApiKeyAndSecret()}static getInstance(){return u.instance||(u.instance=new u),u.instance}initializeApiKeyAndSecret(){}get apiKey(){return this._apiKey}set apiKey(f){this._apiKey=f}get secret(){return this._secret}set secret(f){this._secret=f}reset(){this.initializeApiKeyAndSecret()}}let d=u.getInstance();f.s(["default",0,d],65196);var h=f.i(62921);let l=void 0!==h.default?h.default.getBuiltinModule?.("node:async_hooks"):void 0,p=l?new l.AsyncLocalStorage:void 0,b=f=>p?.enterWith(f),y=()=>p?.getStore();f.s(["getRequestCredentials",0,y,"setRequestCredentials",0,b],225588);let m=()=>{let f=y();return{"X-Api-Key":f?.apiKey??d.apiKey,Secret:f?.secret??d.secret}},g=f=>({method:"GET",headers:{"Content-Type":"application/json",...m()},...f?f.props:{}}),v=(f,c)=>{let u=c&&"object"==typeof c?`${c.status??""} ${c.error}. ${c.messages?.length?`
2${c.messages.join(". ")}`:""}`:c;throw Error(`An error on the ${f} endpoint occurred: ${u?`
3${u}`:""}`)},_=f=>Error((f&&"object"==typeof f?`${f.status??""} ${f.error}. ${f.messages?.length?`
4${f.messages.join(". ")}`:""}`.trim():f)??""),w=(f,c)=>{let u="",d=0,h=c?.size||48,l=c?.page||1;if(c?.queryParams)for(let f in c.queryParams)u=0===d?`?${f}=${c.queryParams[f]}`:`${u}&${f}=${c.queryParams[f]}`,d++;return`${f}${u}${u?"&":"?"}size=${h}&page=${l}`},x=(0,c.createLogger)("api"),S=async(f,c)=>{let u,d=null,h=null;try{if(u=await fetch(f,c),204!==u.status&&u.headers?.get("content-type")?.match(/\bapplication\/(?:[\w.+-]+)?json\b/gm)&&u.headers?.get("content-length")!=="0")try{let f=u.clone();h=await f.json()}catch(f){d=`PARSING RESPONSE ERROR: ${f}`}}catch(u){x.error(["apiCall fetch error"],f,c,u),d="API ERROR, CHECK LOGS TO DEBUG"}return{error:d,data:h,response:u}},E=async(f,c)=>{let{error:u,data:d,response:h}=await S(f,c);return u||!d?{data:null,error:u,response:h}:"error"in d?{data:null,error:d,response:h}:{data:d,error:null,response:h}};f.s(["apiCall",0,S,"createEndpointError",0,v,"createError",0,_,"fetchPropsFactory",0,g,"storefrontApiCall",0,E,"urlWithQueryParamsFactory",0,w],492708)},451326,f=>{"use strict";f.i(810485);var c=f.i(390594);let u=f=>f.textValues?.length?c.FilterType.TEXT:c.FilterType.NUMBER,d=(f,c,u)=>({category:{categoryIds:[f],...u},brand:{brandIds:[f],...u},tag:{tagIds:[f],...u},search:{search:f,...u}})[c]??{},h=(f,c)=>f[c].split(","),l=f=>{let d={minPrice:f.filter.minPrice?.toString(),maxPrice:f.filter.maxPrice?.toString()},{queryParams:h}=f.config||{},{brandIds:l}=f.filter,p={...!!h?.["sort.by"]&&{sortBy:h["sort.by"]},...!!h?.["sort.order"]&&{sortOrder:h["sort.order"]}},b=f.filter.filters?.reduce((f,d)=>{let h,l,p=u(d);return d.name?(p===c.FilterType.TEXT&&(h=Object.assign(f,{[d.name.toLowerCase()]:d.textValues?.toString()})),p===c.FilterType.NUMBER&&(l=Object.assign(f,{[d.name.toLowerCase()]:d.numberValues?.toString()})),{...h,...l}):{}},{});return{...d,...p,...l?.length&&{brandIds:l},...b}};f.s(["filterValuesFactory",0,h,"getFilterType",0,u,"getFiltersByType",0,d,"searchQueryParamsFactory",0,l])},677200,f=>{"use strict";var c=f.i(492708),u=f.i(62921);let d=u.default.env.INGRID_API_URL,h=u.default.env.INGRID_API_KEY,l={Authorization:`Bearer ${h}`},p=`${d}/v1/delivery_checkout`,b={create:{method:"POST",url:`${p}/session.create`},update:{method:"POST",url:`${p}/session.update`},get:{method:"GET",url:f=>`${p}/session.get?checkout_session_id=${f}`},pull:{method:"GET",url:f=>`${p}/session.pull?checkout_session_id=${f}`},complete:{method:"POST",url:`${p}/session.complete`}},y={"Content-Type":"application/json"},m=async(f,{headers:u,...d})=>{if(f.includes("undefined"))throw Error("Ingrid environment variables missing");let{error:h,data:p}=await (0,c.apiCall)(f,{headers:{...l,...u},...d});return h||!p?{data:null,error:h}:"error"in p?{data:null,error:p.error}:{data:p,error:null}},g={checkout:{createSession:f=>m(b.create.url,{method:b.create.method,headers:y,body:JSON.stringify(f)}),updateSession:f=>m(b.update.url,{method:b.update.method,headers:y,body:JSON.stringify(f)}),completeSession:f=>m(b.complete.url,{method:b.complete.method,headers:y,body:JSON.stringify(f)}),getSession:f=>m(b.get.url(f),{method:b.get.method}),pullSession:f=>m(b.pull.url(f),{method:b.pull.method})}};f.s(["ingridApi",0,g],677200)},600028,367374,210314,908969,f=>{"use strict";f.i(719785);var c=f.i(987056),u=f.i(962500),d=f.i(899123),h=f.i(22496),l=f.i(459458),p=c;let b=(f,c)=>{let u=f.product.brand?.id&&c?.brandIds?.includes(f.product.brand.id)||c?.categoryIds?.some(c=>
4f.product.categoryIds?.includes(c))||c?.tagIds?.some(c=>f.product.tags?.map(f=>f.id).includes(c)),d=f.unitPrice>f.originalPrice,h=f.quantity,b=(0,p.createMinorUnit)(f.unitPrice),y=b,m=0;if(c&&u){let u=c.value/100;c.campaign||d||(b=(0,p.createMinorUnit)(f.originalPrice)),m=b*h*u,y=b-b*u}let g=(0,l.allocateQuantityDiscount)(h,y,f.product.quantityDiscount,{minorUnits:!0}),v=Math.max(y*h-(0,l.sumQuantityDiscountBlocks)(g),0),_=m+v;return{quantity:h,unitPrice:b,unitPriceWithDiscount:y,totalDiscountAmount:_,codeDiscountAmount:m,quantityDiscountAmount:v,blocks:g,totalAmount:h*b-_}};f.s(["orderLineValueCalculator",0,b],367374);var y=c,m=f.i(8715),g=h,v=f.i(155078),_=u,w=d,x=f.i(165261);let S={en:{freeDeliveryLabel:"Free - Delivery with telephone notification",paidDeliveryLabel:"Shipping - Delivery with telephone notification"},sv:{freeDeliveryLabel:"Gratis - Leverans med telefonavisering",paidDeliveryLabel:"Frakt - Leverans med telefonavisering"},no:{freeDeliveryLabel:"Gratis - Levering med telefonvarsel",paidDeliveryLabel:"Frakt - Levering med telefonvarsel"},da:{freeDeliveryLabel:"Gratis - Levering med telefonisk advisering",paidDeliveryLabel:"Fragt - Levering med telefonisk advisering"},de:{freeDeliveryLabel:"Kostenlos - Lieferung mit telefonischer Benachrichtigung",paidDeliveryLabel:"Versand - Lieferung mit telefonischer Benachrichtigung"},fi:{freeDeliveryLabel:"Ilmainen - Toimitus puhelinilmoituksella",paidDeliveryLabel:"Toimitus - Toimitus puhelinilmoituksella"}},E=f=>({deliveryFee:f?.deliveryFee??x.EXTRA_FEE,minimumOrderAmountForFreeDelivery:f?.minimumOrderAmountForFreeDelivery??x.MINIMUM_ORDER_AMOUNT,...f?.labels?{labels:f.labels}:{}}),M=(f,c,u)=>{let d=f.rate?.labels,h=u?d?.freeDeliveryLabel:d?.paidDeliveryLabel;if(h)return h;if(f.id!==v.LEGACY_DELIVERY_METHOD_ID)return f.label;let l=S[c];return u?l.freeDeliveryLabel:l.paidDeliveryLabel},A=({orderAmount:f,netOrderAmount:c,locale:u,countryCode:d=m.DEFAULT_COUNTRY,opts:h,buyerVat:l,shippingConfig:p,recipientCountryCode:b,customerType:x,pickupAvailable:S,deliveryLabel:A,pickupLabel:R})=>{let k={orderAmount:(0,y.convertMinorUnitToValue)(f),...(0,g.isNullable)(c)?{}:{netOrderAmount:(0,y.convertMinorUnitToValue)(c)},countryCode:b??l?.buyerCountry,...x?{customerType:x}:{},...l?.treatment?{vatTreatment:l.treatment}:{}},P=(0,v.resolveDefaultShippingMethods)(p,k,{fallbackRate:E(h),pickupAvailable:S,deliveryLabel:A,pickupLabel:R}),I=(0,y.getVatRateByCountryCode)(d);return P.map(f=>{let c="NET"===f.vatBasis?(0,y.createMinorUnit)(f.price):null,d=null===c?(0,y.createMinorUnit)(f.price):(0,y.createMinorUnit)((0,_.roundNumber)(f.price*(1+I/100),2)),{cost:h,vatRate:p}=(0,w.shippingForBuyer)(d,I,l,c),b=(0,y.createMinorUnit)(p),m=h-0;return{id:f.id,name:M(f,u,f.isFree),price:h,tax_amount:(0,y.getTax)(m,b,!0),tax_rate:b,kind:f.kind,label:f.label,...f.description?{description:f.description}:{},...f.pickupIds?{pickupIds:f.pickupIds}:{},isFree:f.isFree,preselected:f.preselected}})},R=({methodId:f,...c})=>{let u=A(c),{kind:d,label:h,description:l,pickupIds:p,isFree:b,preselected:y,...m}=u.find(c=>c.id===f)??u.find(f=>f.preselected)??u[0];return{...m,id:v.LEGACY_DELIVERY_METHOD_ID}};f.s(["paymentShippingFactory",0,R,"paymentShippingOptionsFactory",0,A],210314),f.s([],908969);let k=(f,u,l,p)=>{let b=(0,c.getVatRateByCountryCode)(l),y=(0,c.createMinorUnit)(p?.resolveRate(b)??b),m=f.map(f=>I(f,u)),g=[...m,...P(f,y,(0,d.storeGrossRebaser)(b,p))],v=(0,h.sumArrayOfNumbers)(g.map(f=>f.total_amount)),_=v-(0,h.sumArrayOfNumbers)(g.map(f=>f.total_tax_amount));return{orderLines:g,orderAmount:v,netOrderAmount:_,productOrderLines:m,taxRate:y,rebaseShipping:f=>(0,d.shippingForBuyer)(f,b,p).cost}},P=(f,d,h=f=>f)=>f.map(f=>f.services.map(f=>{let l=f.quantity,p=100*h(f.service.price),b=100*h(f.service.discountPrice),y=0,m=0;return l>0&&(m=p+(l-1)*b,!p&&b&&(p=b),y=p*l-m),{type:"surcharge",name:f.service.name,tax_rate:d,quantity:l,total_amount:m,unit_price:p,total_tax_amount:(0,u.roundNumber)((0,c.getTax)(m,d,!0),0),total_discount_amount:y,merchant_data:f.service.id}})).flat(),I=(f,d)=>{let h=(0,c.createMinorUnit)(f.vatRate),{quantity:l,totalDiscountAmount:p,totalAmount:y,unitPrice:m}=b(f,d),g=(0,u.roundNumber)((0,c.getTax)(y,h,!0),0);return{type:"physical",name:f.product.name,tax_rate:h,quantity:l,total_amount:y,unit_price:m,total_tax_amount:g,total_discount_amount:p,merchant_data:f.product.articleNumber}};f.s(["klarnaOrderLineFactory",0,k],600028)},438754,f=>{"use strict";var c=f.i(62921),u=f.i(123651),d=f.i(492708);let h=async(f,h)=>{let{orderId:l,payload:p}=h,b={create:{method:"POST",url:`${c.default.env.KLARNA_URL}/checkout/v3/orders`},update:{method:"POST",url:`${c.default.env.KLARNA_URL}/checkout/v3/orders/${l}`},get:{method:"GET",url:`${c.default.env.KLARNA_URL}/checkout/v3/orders/${l}`},acknowledge:{method:"POST",url:`${c.default.env.KLARNA_URL}/ordermanagement/v1/orders/${l}/acknowledge`},cancel:{method:"POST",url:`${c.default.env.KLARNA_URL}/ordermanagement/v1/orders/${l}/cancel`}},y=u.Buffer.from(`${c.default.env.KLARNA_USERNAME}:${c.default.env.KLARNA_PASSWORD}`).toString("base64"),m={headers:{Authorization:`Basic ${y}`,"Content-Type":"application/json"},method:b[f].method,...p?{body:JSON.stringify(p)}:{}},{error:g,data:v}=await (0,d.apiCall)(b[f].url,m);return g||!v?{data:null,error:g}:"error_code"in v?{data:null,error:v.error_code}:{data:v,error:null}};f.s(["klarnaApiCall",0,h])},145e3,f=>{"use strict";f.i(719785);var c=f.i(732729),u=f.i(492708),d=f.i(62921);let h=d.default.env.POSTNORD_API_URL,l=d.default.env.POSTNORD_API_KEY,p={"Content-Type":"application/json"},b=async(f,{params:d,...p})=>{if(!l)throw Error("POSTNORD_API_KEY is not provided");
4if(!h)throw Error("POSTNORD_API_URL is not provided");let b=(0,c.resolveUrlPath)(h,(0,c.createUrl)(f,{apikey:l,...d})),{error:y,data:m,response:g}=await (0,u.apiCall)(b,p);return y||!g?{data:null,error:y,response:g}:g.ok?{data:m,error:null,response:g}:m?"message"in m?{data:null,error:m.message,response:g}:{data:m,error:null,response:g}:{data:null,error:"Unknown error",response:g}},y={postalCodeValidation:f=>b("/rest/shipment/v1/validate/postalcode",{method:"POST",headers:p,body:JSON.stringify(f)}),getDeliveryOptions:(f,c)=>b("/rest/shipment/v1/deliveryoptions/bywarehouse",{method:"POST",headers:{...p,"Accept-Language":c??"sv"},body:JSON.stringify(f)}),bookPickup:f=>b("/rest/shipment/v3/pickups",{method:"POST",headers:p,body:JSON.stringify(f)}),bookShipmentEdi:f=>b("/rest/shipment/v3/edi",{method:"POST",headers:p,body:JSON.stringify(f)}),bookShipmentEdiLabelsPdf:(f,c)=>b("/rest/shipment/v3/edi/labels/pdf",{method:"POST",headers:p,params:{processOffline:!0,storeLabel:!0,...c},body:JSON.stringify(f)})};f.s(["postnordApi",0,y],145e3)}]);
5
6//# sourceMappingURL=1kshimrdmprjw.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.