PageSourceSearch

https://beatsage.com/_nuxt/60bb6628816184efbeca.js

js beatsage.com collected 2026-10-06 09:31:49 UTC 1,218,726 bytes, 2 lines download raw bytes

vendor: 5,914 bytes, lines 1-2
1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[4],[,function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},,function(t,e,n){"use strict";(function(t){var r=n(301),o=n(173),h=n(174);function l(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(l()<e)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=d.prototype:(null===t&&(t=new d(e)),t.length=e),t}function d(t,e,n){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return v(this,t)}return f(this,t,e,n)}function f(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);d.TYPED_ARRAY_SUPPORT?(t=e).__proto__=d.prototype:t=y(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!d.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|M(e,n),o=(t=c(t,r)).write(e,n);o!==r&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(d.isBuffer(e)){var n=0|w(e.length);return 0===(t=c(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?c(t,0):y(t,e);if("Buffer"===e.type&&h(e.data))return y(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function m(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function v(t,e){if(m(e),t=c(t,e<0?0:0|w(e)),!d.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function y(t,e){var n=e.length<0?0:0|w(e.length);t=c(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function w(t){if(t>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|t}function M(t,e){if(d.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(r)return Z(t).length;e=(""+e).toLowerCase(),r=!0}}function _(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return R(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return F(this,e,n);case"base64":return B(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function k(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function S(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=d.from(e,r)),d.isBuffer(e))return 0===e.length?-1:x(t,e,n,r,o);if("number"==typeof e)return e&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,r,o){var i,h=1,l=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;h=2,l/=2,c/=2,n/=2}function d(t,i){return 1===h?t[i]:t.readUInt16BE(i*h)}if(o){var f=-1;for(i=n;i<l;i++)if(d(t,i)===d(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===c)return f*h}else-1!==f&&(i-=i-f),f=-1}else for(n+c>l&&(n=l-c),i=n;i>=0;i--){for(var m=!0,v=0;v<c;v++)if(d(t,i+v)!==d(e,v)){m=!1;break}if(m)return i}return-1}function C(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var h=e.length;if(h%2!=0)throw new TypeError("Invalid hex string");r>h/2&&(r=h/2);for(var i=0;i<r;++i){var l=parseInt(e.substr(2*i,2),16);if(isNaN(l))return i;t[n+i]=l}return i}function T(t,e,n,r){return Y(Z(e,t.length-n),t,n,r)}function E(t,e,n,r){return Y(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,n,r)}function A(t,e,n,r){return E(t,e,n,r)}function I(t,e,n,r){return Y(G(e),t,n,r)}function D(t,e,n,r){return Y(function(t,e){for(var n,r,o,h=[],i=0;i<t.length&&!((e-=2)<0);++i)n=t.charCodeAt(i),r=n>>8,o=n%256,h.push(o),h.push(r);return h}(e,t.length-n),t,n,r)}function B(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function R(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,h,l,c,d=t[i],f=null,m=d>239?4:d>223?3:d>191?2:1;if(i+m<=n)switch(m){case 1:d<128&&(f=d);break;
vendor: 6,982 bytes, line 2
2case 2:128==(192&(o=t[i+1]))&&(c=(31&d)<<6|63&o)>127&&(f=c);break;case 3:o=t[i+1],h=t[i+2],128==(192&o)&&128==(192&h)&&(c=(15&d)<<12|(63&o)<<6|63&h)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=t[i+1],h=t[i+2],l=t[i+3],128==(192&o)&&128==(192&h)&&128==(192&l)&&(c=(15&d)<<18|(63&o)<<12|(63&h)<<6|63&l)>65535&&c<1114112&&(f=c)}null===f?(f=65533,m=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=m}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return n}(r)}e.Buffer=d,e.SlowBuffer=function(t){+t!=t&&(t=0);return d.alloc(+t)},e.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=l(),d.poolSize=8192,d._augment=function(t){return t.__proto__=d.prototype,t},d.from=function(t,e,n){return f(null,t,e,n)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(t,e,n){return function(t,e,n,r){return m(e),e<=0?c(t,e):void 0!==n?"string"==typeof r?c(t,e).fill(n,r):c(t,e).fill(n):c(t,e)}(null,t,e,n)},d.allocUnsafe=function(t){return v(null,t)},d.allocUnsafeSlow=function(t){return v(null,t)},d.isBuffer=function(b){return!(null==b||!b._isBuffer)},d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,n=Math.min(t,e);i<n;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},d.isEncoding=function(t){switch(String(t).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}},d.concat=function(t,e){if(!h(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return d.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=d.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var o=t[i];if(!d.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},d.byteLength=M,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)k(this,i,i+1);return this},d.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)k(this,i,i+3),k(this,i+1,i+2);return this},d.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)k(this,i,i+7),k(this,i+1,i+6),k(this,i+2,i+5),k(this,i+3,i+4);return this},d.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?R(this,0,t):_.apply(this,arguments)},d.prototype.equals=function(b){if(!d.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===d.compare(this,b)},d.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},d.prototype.compare=function(t,e,n,r,o){if(!d.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var h=(o>>>=0)-(r>>>=0),l=(n>>>=0)-(e>>>=0),c=Math.min(h,l),f=this.slice(r,o),m=t.slice(e,n),i=0;i<c;++i)if(f[i]!==m[i]){h=f[i],l=m[i];break}return h<l?-1:l<h?1:0},d.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},d.prototype.indexOf=function(t,e,n){return S(this,t,e,n,!0)},d.prototype.lastIndexOf=function(t,e,n){return S(this,t,e,n,!1)},d.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return C(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,n);default:if(h)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function F(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function O(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=X(t[i]);return o}function N(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,o,h){if(!d.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<h)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function j(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function U(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function $(t,e,n,r,o,h){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(t,e,n,r,h){return h||$(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function H(t,e,n,r,h){return h||$(t,0,n,8),o.write(t,e,n,r,52,8),n+8}d.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),d.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=d.prototype;else{var o=e-t;n=new d(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},d.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],o=1,i=0;
vendor: 4,089 bytes, line 2
2++i<e&&(o*=256);)r+=this[t+i]*o;return r},d.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},d.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},d.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},d.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},d.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},d.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},d.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},d.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},d.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},d.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},d.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),o.read(this,t,!0,23,4)},d.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),o.read(this,t,!1,23,4)},d.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),o.read(this,t,!0,52,8)},d.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),o.read(this,t,!1,52,8)},d.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||z(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},d.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||z(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},d.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,255,0),d.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},d.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},d.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},d.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},d.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},d.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);z(this,t,e,n,o-1,-o)}var i=0,h=1,sub=0;for(this[e]=255&t;++i<n&&(h*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/h>>0)-sub&255;return e+n},d.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);z(this,t,e,n,o-1,-o)}var i=n-1,h=1,sub=0;for(this[e+i]=255&t;--i>=0&&(h*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/h>>0)-sub&255;return e+n},d.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,127,-128),d.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},d.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},d.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 4,220 bytes, line 2
28,this[e+1]=255&t):j(this,t,e,!1),e+2},d.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},d.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},d.prototype.writeFloatLE=function(t,e,n){return V(this,t,e,!0,n)},d.prototype.writeFloatBE=function(t,e,n){return V(this,t,e,!1,n)},d.prototype.writeDoubleLE=function(t,e,n){return H(this,t,e,!0,n)},d.prototype.writeDoubleBE=function(t,e,n){return H(this,t,e,!1,n)},d.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!d.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},d.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var o=d.isBuffer(t)?t:Z(new d(t,r).toString()),h=o.length;for(i=0;i<n-e;++i)this[i+e]=o[i%h]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function X(t){return t<16?"0"+t.toString(16):t.toString(16)}function Z(t,e){var n;e=e||1/0;for(var r=t.length,o=null,h=[],i=0;i<r;++i){if((n=t.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&h.push(239,191,189);continue}if(i+1===r){(e-=3)>-1&&h.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&h.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&h.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;h.push(n)}else if(n<2048){if((e-=2)<0)break;h.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;h.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;h.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return h}function G(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(9))},function(t,e,n){var r=n(3),o=r.Buffer;function h(t,e){for(var n in t)e[n]=t[n]}function l(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(h(r,e),e.Buffer=l),h(o,l),l.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},l.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=o(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},l.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},l.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(14),o=n(173);e.UINT8={len:1,get:(t,e)=>t.readUInt8(e),put(t,e,n){return r.equal(typeof e,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=255),r.ok(e>=0),r.ok(this.len<=t.length),t.writeUInt8(n,e)}},e.UINT16_LE={len:2,get:(t,e)=>
2t.readUInt16LE(e),put(t,e,n){return r.equal(typeof e,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=65535),r.ok(e>=0),r.ok(this.len<=t.length),t.writeUInt16LE(n,e)}},e.UINT16_BE={len:2,get:(t,e)=>t.readUInt16BE(e),put(t,e,n){return r.equal(typeof e,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=65535),r.ok(e>=0),r.ok(this.len<=t.length),t.writeUInt16BE(n,e)}},e.UINT24_LE={len:3,get:(t,e)=>t.readUIntLE(e,3),put(t,e,n){return r.equal(typeof e,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=16777215),r.ok(e>=0),r.ok(this.len<=t.length),t.writeUIntLE(n,e,3)}},e.UINT24_BE={len:3,get:(t,e)=>t.readUIntBE(e,3),put(t,e,n){return r.equal(typeof e,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=16777215),r.ok(e>=0),r.ok(this.len<=t.length),t.writeUIntBE(n,e,3)}},e.UINT32_LE={len:4,get:(t,e)=>t.readUInt32LE(e),put(b,t,e){return r.equal(typeof t,"number"),r.equal(typeof e,"number"),r.ok(e>=0&&e<=4294967295),r.ok(t>=0),r.ok(this.len<=b.length),b.writeUInt32LE(e,t)}},e.UINT32_BE={len:4,get:(t,e)=>t.readUInt32BE(e),put(t,e,n){return r.equal(typeof e,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=4294967295),r.ok(e>=0),r.ok(this.len<=t.length),t.writeUInt32BE(n,e)}},e.INT8={len:1,get:(t,e)=>t.readInt8(e),put(t,e,n){return r.equal(typeof e,"number"),r.equal(typeof n,"number"),r.ok(n>=-128&&n<=127),r.ok(e>=0),r.ok(this.len<=t.length),t.writeInt8(n,e)}},e.INT16_BE={len:2,get:(t,e)=>t.readInt16BE(e),put(b,t,e){return r.equal(typeof t,"number"),r.equal(typeof e,"number"),r.ok(e>=-32768&&e<=32767),r.ok(t>=0),r.ok(this.len<=b.length),b.writeInt16BE(e,t)}},e.INT16_LE={len:2,get:(t,e)=>t.readInt16LE(e),put(b,t,e){return r.equal(typeof t,"number"),r.equal(typeof e,"number"),r.ok(e>=-32768&&e<=32767),r.ok(t>=0),r.ok(this.len<=b.length),b.writeInt16LE(e,t)}},e.INT24_LE={len:3,get:(t,e)=>t.readIntLE(e,3),put(b,t,e){return r.equal(typeof t,"number"),r.equal(typeof e,"number"),r.ok(e>=-8388608&&e<=8388607),r.ok(t>=0),r.ok(this.len<=b.length),b.writeIntLE(e,t,3)}},e.INT24_BE={len:3,get:(t,e)=>t.readIntBE(e,3),put(b,t,e){return r.equal(typeof t,"number"),r.equal(typeof e,"number"),r.ok(e>=-8388608&&e<=8388607),r.ok(t>=0),r.ok(this.len<=b.length),b.writeIntBE(e,t,3)}},e.INT32_BE={len:4,get:(t,e)=>t.readInt32BE(e),put(b,t,e){return r.equal(typeof t,"number"),r.equal(typeof e,"number"),r.ok(e>=-2147483648&&e<=2147483647),r.ok(t>=0),r.ok(this.len<=b.length),b.writeInt32BE(e,t)}},e.INT32_LE={len:4,get:(t,e)=>t.readInt32LE(e),put(b,t,e){return r.equal(typeof t,"number"),r.equal(typeof e,"number"),r.ok(e>=-2147483648&&e<=2147483647),r.ok(t>=0),r.ok(this.len<=b.length),b.writeInt32LE(e,t)}},e.UINT64_LE={len:8,get(t,e){return function(t,e,n){n>>>=0;let r=t[e>>>=0],o=1,i=0;for(;++i<n&&(o*=256);)r+=t[e+i]*o;return r}(t,e,this.len)},put(b,t,e){return function(t,e,n,r){e=+e,r>>>=0;let o=1,i=0;t[n>>>=0]=255&e;for(;++i<r&&(o*=256);)t[n+i]=e/o&255;return n+r}(b,e,t,this.len)}},e.INT64_LE={len:8,get(t,e){return function(t,e,n){n>>>=0;let r=t[e>>>=0],o=1,i=0;for(;++i<n&&(o*=256);)r+=t[e+i]*o;o*=128,r>=o&&(r-=Math.pow(2,8*n));return r}(t,e,this.len)},put(b,t,e){return l(b,e,t,this.len)}},e.UINT64_BE={len:8,get(b,t){return c(b,t,this.len)},put(b,t,e){return d(b,e,t,this.len)}},e.INT64_BE={len:8,get(b,t){return f(b,t,this.len)},put(b,t,e){return m(b,e,t,this.len)}},e.Float16_BE={len:2,get(b,t){return o.read(b,t,!1,10,this.len)},put(b,t,e){return o.write(b,e,t,!1,10,this.len)}},e.Float16_LE={len:2,get(b,t){return o.read(b,t,!0,10,this.len)},put(b,t,e){return o.write(b,e,t,!0,10,this.len)}},e.Float32_BE={len:4,get:(b,t)=>b.readFloatBE(t),put:(b,t,e)=>b.writeFloatBE(e,t)},e.Float32_LE={len:4,get:(b,t)=>b.readFloatLE(t),put:(b,t,e)=>b.writeFloatLE(e,t)},e.Float64_BE={len:8,get:(b,t)=>b.readDoubleBE(t),put:(b,t,e)=>b.writeDoubleBE(e,t)},e.Float64_LE={len:8,get:(b,t)=>b.readDoubleLE(t),put:(b,t,e)=>b.writeDoubleLE(e,t)},e.Float80_BE={len:10,get(b,t){return o.read(b,t,!1,63,this.len)},put(b,t,e){return o.write(b,e,t,!1,63,this.len)}},e.Float80_LE={len:10,get(b,t){return o.read(b,t,!0,63,this.len)},put(b,t,e){return o.write(b,e,t,!0,63,this.len)}};e.IgnoreType=class{constructor(t){this.len=t}get(t,e){}};e.BufferType=class{constructor(t){this.len=t}get(t,e){return t.slice(e,e+this.len)}};e.StringType=class{constructor(t,e){this.len=t,this.encoding=e}get(t,e){return t.toString(this.encoding,e,e+this.len)}};class h{constructor(t){this.len=t}static decode(t,e,n){let r="";for(let i=e;i<n;++i)r+=h.codePointToString(h.singleByteDecoder(t[i]));return r}static inRange(a,t,e){return t<=a&&a<=e}static codePointToString(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}static singleByteDecoder(t){if(h.inRange(t,0,127))return t;const e=h.windows1252[t-128];if(null===e)throw Error("invaliding encoding");return e}get(t,e=0){return h.decode(t,e,e+this.len)}}function l(t,e,n,r){e=+e;let i=0,o=1,sub=0;for(t[n>>>=0]=255&e;++i<r&&(o*=256);)e<0&&0===sub&&0!==t[n+i-1]&&(sub=1),t[n+i]=(e/o>>0)-sub&255;return n+r}function c(t,e,n){n>>>=0;let r=t[(e>>>=0)+--n],o=1;for(;n>0&&(o*=256);)r+=t[e+--n]*o;return r}function d(t,e,n,r){e=+e;let i=(r>>>=0)-1,o=1;for(t[(n>>>=0)+i]=255&e;--i>=0&&(o*=256);)t[n+i]=e/o&255;return n+r}function f(t,e,n){let i=n>>>=0,r=1,o=t[(e>>>=0)+--i];for(;i>0&&(r*=256);)o+=t[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*n)),o}function m(t,e,n,r){e=+e;let i=r-1,o=1,sub=0;for(t[(n>>>=0)+i]=255&e;--i>=0&&(o*=256);)e<0&&0===sub&&0!==t[n+i+1]&&(sub=1),t[n+i]=(e/o>>0)-sub&255;return n+r}e.AnsiStringType=h,h.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,
2161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],e.writeIntLE=l,e.readUIntBE=c,e.writeUIntBE=d,e.readIntBE=f,e.writeIntBE=m},function(t,e,n){(function(r){e.log=function(...t){return"object"==typeof console&&console.log&&console.log(...t)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))}),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n(441)(e);const{formatters:o}=t.exports;o.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(7))},,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(14),o=n(446);class h{static findZero(t,e,n,r){let i=e;if("utf16"===r){for(;0!==t[i]||0!==t[i+1];){if(i>=n)return n;i+=2}return i}for(;0!==t[i];){if(i>=n)return n;i++}return i}static trimRightNull(t){const e=t.indexOf("\0");return-1===e?t:t.substr(0,e)}static swapBytes(t){const e=t.length;r.ok(0==(1&e),"Buffer length must be even");for(let i=0;i<e;i+=2){const a=t[i];t[i]=t[i+1],t[i+1]=a}return t}static readUTF16String(t){let e=0;return 254===t[0]&&255===t[1]?(t=h.swapBytes(t),e=2):255===t[0]&&254===t[1]&&(e=2),t.toString("ucs2",e)}static decodeString(t,e){if(255===t[0]&&254===t[1]&&254===t[2]&&255===t[3]&&(t=t.slice(2)),"utf16le"===e||"utf16"===e)return h.readUTF16String(t);if("utf8"===e)return t.toString("utf8");if("iso-8859-1"===e)return o.Windows1292Decoder.decode(t);throw Error(e+" encoding is not supported!")}static stripNulls(t){return t=(t=t.replace(/^\x00+/g,"")).replace(/\x00+$/g,"")}static getBitAllignedNumber(t,e,n,r){const o=n%8;let l=t[e+~~(n/8)];l&=255>>o;const c=8-o,d=r-c;return d<0?l>>=8-o-r:d>0&&(l<<=d,l|=h.getBitAllignedNumber(t,e,n+c,d)),l}static isBitSet(t,e,n){return 1===h.getBitAllignedNumber(t,e,n,1)}static a2hex(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=Number(t.charCodeAt(i)).toString(16);e.push(1===n.length?"0"+n:n)}return e.join(" ")}}function l(t){return 10*Math.log10(t)}function c(t){return Math.pow(10,t/10)}e.default=h,h.strtokBITSET={get:(t,e,n)=>0!=(t[e]&1<<n),len:1},e.ratioToDb=l,e.dbToRatio=c,e.toRatio=function(t){const e=t.split(" ").map(p=>p.trim().toLowerCase());if(e.length>=1){const t=parseFloat(e[0]);return 2===e.length&&"db"===e[1]?{dB:t,ratio:c(t)}:{dB:l(t),ratio:t}}}},,function(t,e,n){"use strict";function r(t,e,n,r,o,h,l){try{var c=t[h](l),d=c.value}catch(t){return void n(t)}c.done?e(d):Promise.resolve(d).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,h){var l=t.apply(e,n);function c(t){r(l,o,h,c,d,"next",t)}function d(t){r(l,o,h,c,d,"throw",t)}c(void 0)}))}}n.d(e,"a",(function(){return o}
vendor: 4,418 bytes, line 2
2))},function(t,e,n){"use strict";(function(e){var r=n(429);function o(a,b){if(a===b)return 0;for(var t=a.length,e=b.length,i=0,n=Math.min(t,e);i<n;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0}function h(b){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(b):!(null==b||!b._isBuffer)}var l=n(430),c=Object.prototype.hasOwnProperty,d=Array.prototype.slice,f="foo"===function(){}.name;function m(t){return Object.prototype.toString.call(t)}function v(t){return!h(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var y=t.exports=x,w=/\s*function\s+([^\(\s]*)\s*/;function M(t){if(l.isFunction(t)){if(f)return t.name;var e=t.toString().match(w);return e&&e[1]}}function _(s,t){return"string"==typeof s?s.length<t?s:s.slice(0,t):s}function k(t){if(f||!l.isFunction(t))return l.inspect(t);var e=M(t);return"[Function"+(e?": "+e:"")+"]"}function S(t,e,n,r,o){throw new y.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:o})}function x(t,e){t||S(t,!0,e,"==",y.ok)}function C(t,e,n,r){if(t===e)return!0;if(h(t)&&h(e))return 0===o(t,e);if(l.isDate(t)&&l.isDate(e))return t.getTime()===e.getTime();if(l.isRegExp(t)&&l.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(v(t)&&v(e)&&m(t)===m(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(h(t)!==h(e))return!1;var c=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==c&&c===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(a,b,t,e){if(null==a||null==b)return!1;if(l.isPrimitive(a)||l.isPrimitive(b))return a===b;if(t&&Object.getPrototypeOf(a)!==Object.getPrototypeOf(b))return!1;var n=T(a),r=T(b);if(n&&!r||!n&&r)return!1;if(n)return a=d.call(a),b=d.call(b),C(a,b,t);var o,i,h=I(a),c=I(b);if(h.length!==c.length)return!1;for(h.sort(),c.sort(),i=h.length-1;i>=0;i--)if(h[i]!==c[i])return!1;for(i=h.length-1;i>=0;i--)if(o=h[i],!C(a[o],b[o],t,e))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function T(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function E(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function A(t,e,n,r){var o;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!o&&S(o,n,"Missing expected exception"+r);var h="string"==typeof r,c=!t&&o&&!n;if((!t&&l.isError(o)&&h&&E(o,n)||c)&&S(o,n,"Got unwanted exception"+r),t&&o&&n&&!E(o,n)||!t&&o)throw o}y.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return _(k(t.actual),128)+" "+t.operator+" "+_(k(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||S;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,o=M(e),h=r.indexOf("\n"+o);if(h>=0){var l=r.indexOf("\n",h+1);r=r.substring(l+1)}this.stack=r}}},l.inherits(y.AssertionError,Error),y.fail=S,y.ok=x,y.equal=function(t,e,n){t!=e&&S(t,e,n,"==",y.equal)},y.notEqual=function(t,e,n){t==e&&S(t,e,n,"!=",y.notEqual)},y.deepEqual=function(t,e,n){C(t,e,!1)||S(t,e,n,"deepEqual",y.deepEqual)},y.deepStrictEqual=function(t,e,n){C(t,e,!0)||S(t,e,n,"deepStrictEqual",y.deepStrictEqual)},y.notDeepEqual=function(t,e,n){C(t,e,!1)&&S(t,e,n,"notDeepEqual",y.notDeepEqual)},y.notDeepStrictEqual=function t(e,n,r){C(e,n,!0)&&S(e,n,r,"notDeepStrictEqual",t)},y.strictEqual=function(t,e,n){t!==e&&S(t,e,n,"===",y.strictEqual)},y.notStrictEqual=function(t,e,n){t===e&&S(t,e,n,"!==",y.notStrictEqual)},y.throws=function(t,e,n){A(!0,t,e,n)},y.doesNotThrow=function(t,e,n){A(!1,t,e,n)},y.ifError=function(t){if(t)throw t},y.strict=r((function t(e,n){e||S(e,!0,n,"==",t)}),y,{equal:y.strictEqual,deepEqual:y.deepStrictEqual,notEqual:y.notStr
vendor: 9,328 bytes, line 2
2ictEqual,notDeepEqual:y.notDeepStrictEqual}),y.strict.strict=y.strict;var I=Object.keys||function(t){var e=[];for(var n in t)c.call(t,n)&&e.push(n);return e}}).call(this,n(9))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(11),o=/^[\w-©][\w-\x000-3]/;e.FourCcToken={len:4,get:(t,n)=>{const h=t.toString("binary",n,n+e.FourCcToken.len);if(!h.match(o))throw new Error("FourCC contains invalid characters: "+r.default.a2hex(h));return h},put:(e,n,r)=>{const o=t.from(r,"binary");if(4!==o.length)throw new Error("Invalid length");return o.copy(e,n)}}}).call(this,n(3).Buffer)},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.BasicParser=class{init(t,e,n){return this.metadata=t,this.tokenizer=e,this.options=n,this}}},,function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},function(t,e,n){"use strict";var r=e,o=n(28),h=n(19),l=n(211);r.assert=h,r.toArray=l.toArray,r.zero2=l.zero2,r.toHex=l.toHex,r.encode=l.encode,r.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var o=1<<e+1,h=t.clone(),i=0;i<r.length;i++){var l,c=h.andln(o-1);h.isOdd()?(l=c>(o>>1)-1?(o>>1)-c:c,h.isubn(l)):l=0,r[i]=l,h.iushrn(1)}return r},r.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r=0,o=0;t.cmpn(-r)>0||e.cmpn(-o)>0;){var h,l,c,d=t.andln(3)+r&3,f=e.andln(3)+o&3;if(3===d&&(d=-1),3===f&&(f=-1),0==(1&d))h=0;else h=3!==(c=t.andln(7)+r&7)&&5!==c||2!==f?d:-d;if(n[0].push(h),0==(1&f))l=0;else l=3!==(c=e.andln(7)+o&7)&&5!==c||2!==d?f:-f;n[1].push(l),2*r===h+1&&(r=1-r),2*o===l+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new o(t,"hex","le")}},,,,,,function(t,e,n){"use strict";var r=n(19),o=n(1);function h(t,i){return 55296==(64512&t.charCodeAt(i))&&(!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1)))}function l(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function c(t){return 1===t.length?"0"+t:t}function d(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var p=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?n[p++]=r:r<2048?(n[p++]=r>>6|192,n[p++]=63&r|128):h(t,i)?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++i)),n[p++]=r>>18|240,n[p++]=r>>12&63|128,n[p++]=r>>6&63|128,n[p++]=63&r|128):(n[p++]=r>>12|224,n[p++]=r>>6&63|128,n[p++]=63&r|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=c(t[i].toString(16));return e},e.htonl=l,e.toHex32=function(t,e){for(var n="",i=0;i<t.length;i++){var r=t[i];"little"===e&&(r=l(r)),n+=d(r.toString(16))}return n},e.zero2=c,e.zero8=d,e.join32=function(t,e,n,o){var h=n-e;r(h%4==0);for(var l=new Array(h/4),i=0,c=e;i<l.length;i++,c+=4){var d;d="big"===o?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],l[i]=d>>>0}return l},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,r=0;i<t.length;i++,r+=4){var o=t[i];"big"===e?(n[r]=o>>>24,n[r+1]=o>>>16&255,n[r+2]=o>>>8&255,n[r+3]=255&o):(n[r+3]=o>>>24,n[r+2]=o>>>16&255,n[r+1]=o>>>8&255,n[r]=255&o)}return n},e.rotr32=function(t,b){return t>>>b|t<<32-b},e.rotl32=function(t,b){return t<<b|t>>>32-b},e.sum32=function(a,b){return a+b>>>0},e.sum32_3=function(a,b,t){return a+b+t>>>0},e.sum32_4=function(a,b,t,e){return a+b+t+e>>>0},e.sum32_5=function(a,b,t,e,n){return a+b+t+e+n>>>0},e.sum64=function(t,e,n,r){var o=t[e],h=r+t[e+1]>>>0,l=(h<r?1:0)+n+o;t[e]=l>>>0,t[e+1]=h},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,h,l,dl){var c=0,d=e;return c+=(d=d+r>>>0)<e?1:0,c+=(d=d+h>>>0)<h?1:0,t+n+o+l+(c+=(d=d+dl>>>0)<dl?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,h,l,dl){return e+r+h+dl>>>0},e.sum64_5_hi=function(t,e,n,r,o,h,l,dl,c,d){var f=0,m=e;return f+=(m=m+r>>>0)<e?1:0,f+=(m=m+h>>>0)<h?1:0,f+=(m=m+dl>>>0)<dl?1:0,t+n+o+l+c+(f+=(m=m+d>>>0)<d?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,h,l,dl,c,d){return e+r+h+dl+d>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},,function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var l;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{l=n(362).Buffer}catch(t){}function c(t,e,n){for(var r=0,o=Math.min(t.length,n),i=e;i<o;i++){var h=t.charCodeAt(i)-48;r<<=4,r|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return r}function d(t,e,n,r){for(var o=0,h=Math.min(t.length,n),i=e;i<h;i++){var l=t.charCodeAt(i)-48;o*=r,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(t,n):this._parseBase(t,base,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,h=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=t.length-6,n=0;i>=e;i-=6)r=c(t,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=c(t,e,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,h=o%n,l=Math.min(o,o-h)+e,c=0,i=e;i<l;i+=n)c=d(t,i,i+n,base),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==h){var f=1;for(c=d(t,i,t.length,base),i=0;i<h;i++)f*=base;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","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"],m=[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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 27,124 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,l=o/67108864|0;n.words[0]=h;for(var c=1;c<r;c++){for(var d=l>>>26,f=67108863&l,m=Math.min(c,e.length-1),v=Math.max(0,c-t.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|t.words[i])*(b=0|e.words[v])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,l=0|d}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<n|o)).toString(16);e=0!==(o=h>>>24-n&16777215)||i!==this.length-1?f[6-l.length]+l+e:l+e,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var c=m[base],d=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(d).toString(base);e=(y=y.idivn(d)).isZero()?w+e:f[c-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return r(void 0!==l),this.toArrayLike(l,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),h=n||Math.max(1,o);r(o<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===e,c=new t(h),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[i]=b;for(;i<h;i++)c[i]=0}else{for(i=0;i<h-o;i++)c[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[h-i-1]=b}return c},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,n){var r,o,h,a=t.words,b=e.words,l=n.words,c=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,k=M>>>13,S=0|a[3],x=8191&S,C=S>>>13,T=0|a[4],E=8191&T,A=T>>>13,I=0|a[5],D=8191&I,B=I>>>13,R=0|a[6],P=8191&R,F=R>>>13,O=0|a[7],N=8191&O,L=O>>>13,z=0|a[8],j=8191&z,U=z>>>13,$=0|a[9],V=8191&$,H=$>>>13,W=0|b[0],X=8191&W,Z=W>>>13,G=0|b[1],Y=8191&G,K=G>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,at=0|b[4],st=8191&at,ot=at>>>13,ut=0|b[5],ht=8191&ut,lt=ut>>>13,ct=0|b[6],ft=8191&ct,pt=ct>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,bt=0|b[8],yt=8191&bt,wt=bt>>>13,Mt=0|b[9],_t=8191&Mt,kt=Mt>>>13;n.negative=t.negative^e.negative,n.length=19;var St=(c+(r=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,Z))+Math.imul(m,X)|0))<<13)|0;c=((h=Math.imul(m,Z))+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(y,X),o=(o=Math.imul(y,Z))+Math.imul(w,X)|0,h=Math.imul(w,Z);var xt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(m,Y)|0))<<13)|0;c=((h=h+Math.imul(m,K)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(_,X),o=(o=Math.imul(_,Z))+Math.imul(k,X)|0,h=Math.imul(k,Z),r=r+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,K)|0;var Ct=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(m,Q)|0))<<13)|0;c=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(x,X),o=(o=Math.imul(x,Z))+Math.imul(C,X)|0,h=Math.imul(C,Z),r=r+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,K)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var Tt=(c+(r=r+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(m,it)|0))<<13)|0;c=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(E,X),o=(o=Math.imul(E,Z))+Math.imul(A,X)|0,h=Math.imul(A,Z),r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,Y)|0,h=h+Math.imul(C,K)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(k,Q)|0,h=h+Math.imul(k,tt)|0,r=r+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Et=(c+(r=r+Math.imul(f,st)|0)|0)+((8191&(o=(o=o+Math.imul(f,ot)|0)+Math.imul(m,st)|0))<<13)|0;c=((h=h+Math.imul(m,ot)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),o=(o=Math.imul(D,Z))+Math.imul(B,X)|0,h=Math.imul(B,Z),r=r+Math.imul(E,Y)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(A,Y)|0,h=h+Math.imul(A,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(C,Q)|0,h=h+Math.imul(C,tt)|0,r=r+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,r=r+Math.imul(y,st)|0,o=(o=o+Math.imul(y,ot)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,ot)|0;var At=(c+(r=r+Math.imul(f,ht)|0)|0)+((8191&(o=(o=o+Math.imul(f,lt)|0)+Math.imul(m,ht)|0))<<13)|0;c=((h=h+Math.imul(m,lt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(P,X),o=(o=Math.imul(P,Z))+Math.imul(F,X)|0,h=Math.imul(F,Z),r=r+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,K)|0)+Math.imul(B,Y)|0,h=h+Math.imul(B,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,h=h+Math.imul(A,tt)|0,r=r+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(C,it)|0,h=h+Math.imul(C,nt)|0,r=r+Math.imul(_,st)|0,o=(o=o+Math.imul(_,ot)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,ot)|0,r=r+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,lt)|0;var It=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,pt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,X),o=(o=Math.imul(N,Z))+Math.imul(L,X)|0,h=Math.imul(L,Z),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,K)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(E,it)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(A,it)|0,h=h+Math.imul(A,nt)|0,r=r+Math.imul(x,st)|0,o=(o=o+Math.imul(x,ot)|0)+Math.imul(C,st)|0,h=h+Math.imul(C,ot)|0,r=r+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,lt)|0,r=r+Math.imul(y,ft)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ft)|0,h=h+Math.imul(w,pt)|0;var Dt=(c+(r=r+Math.imul(f,gt)|0)|0)+((8191&(o=(o=o+Math.imul(f,vt)|0)+Math.imul(m,gt)|0))<<13)|0;c=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(j,X),o=(o=Math.imul(j,Z))+Math.imul(U,X)|0,h=Math.imul(U,Z),r=r+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(L,Y)|0,h=h+Math.imul(L,K)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(F,Q)|0,h=h+Math.imul(F,tt)|0,r=r+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(B,it)|0,h=h+Math.imul(B,nt)|0,r=r+Math.imul(E,st)|0,o=(o=o+Math.imul(E,ot)|0)+Math.imul(A,st)|0,h=h+Math.imul(A,ot)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(C,ht)|0,h=h+Math.imul(C,lt)|0,r=r+Math.imul(_,ft)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(k,ft)|0,h=h+Math.imul(k,pt)|0,r=r+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Bt=(c+(r=r+Math.imul(f,yt)|0)|0)+((8191&(o=(o=o+Math.imul(f,wt)|0)+Math.imul(m,yt)|0))<<13)|0;c=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(V,X),o=(o=Math.imul(V,Z))+Math.imul(H,X)|0,h=Math.imul(H,Z),r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,r=r+Math.imul(D,st)|0,o=(o=o+Math.imul(D,ot)|0)+Math.imul(B,st)|0,h=h+Math.imul(B,ot)|0,r=r+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(A,ht)|0,h=h+Math.imul(A,lt)|0,r=r+Math.imul(x,ft)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(C,ft)|0,h=h+Math.imul(C,pt)|0,r=r+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,r=r+Math.imul(y,yt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,yt)|0,h=h+Math.imul(w,wt)|0;var Rt=(c+(r=r+Math.imul(f,_t)|0)|0)+((8191&(o=(o=o+Math.imul(f,kt)|0)+Math.imul(m,_t)|0))<<13)|0;c=((h=h+Math.imul(m,kt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(V,Y),o=(o=Math.imul(V,K))+Math.imul(H,Y)|0,h=Math.imul(H,K),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,Q)|0,h=h+Math.imul(U,tt)|0,r=r+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,r=r+Math.imul(P,st)|0,o=(o=o+Math.imul(P,ot)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,ot)|0,r=r+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,lt)|0)+Math.imul(B,ht)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(A,ft)|0,h=h+Math.imul(A,pt)|0,r=r+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(C,gt)|0,h=h+Math.imul(C,vt)|0,r=r+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(k,yt)|0,h=h+Math.imul(k,wt)|0;var Pt=(c+(r=r+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,kt)|0)+Math.imul(w,_t)|0))<<13)|0;c=((h=h+Math.imul(w,kt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(V,Q),o=(o=Math.imul(V,tt))+Math.imul(H,Q)|0,h=Math.imul(H,tt),r=r+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,r=r+Math.imul(N,st)|0,o=(o=o+Math.imul(N,ot)|0)+Math.imul(L,st)|0,h=h+Math.imul(L,ot)|0,r=r+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,lt)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,lt)|0,r=r+Math.imul(D,ft)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(B,ft)|0,h=h+Math.imul(B,pt)|0,r=r+Math.imul(E,gt)|0,o=(o=o+Math.imul(E,vt)|0)+Math.imul(A,gt)|0,h=h+Math.imul(A,vt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(C,yt)|0,h=h+Math.imul(C,wt)|0;var Ft=(c+(r=r+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,kt)|0)+Math.imul(k,_t)|0))<<13)|0;c=((h=h+Math.imul(k,kt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(H,it)|0,h=Math.imul(H,nt),r=r+Math.imul(j,st)|0,o=(o=o+Math.imul(j,ot)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,ot)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(F,ft)|0,h=h+Math.imul(F,pt)|0,r=r+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(B,gt)|0,h=h+Math.imul(B,vt)|0,r=r+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(A,yt)|0,h=h+Math.imul(A,wt)|0;var Ot=(c+(r=r+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,kt)|0)+Math.imul(C,_t)|0))<<13)|0;c=((h=h+Math.imul(C,kt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(V,st),o=(o=Math.imul(V,ot))+Math.imul(H,st)|0,h=Math.imul(H,ot),r=r+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,lt)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,lt)|0,r=r+Math.imul(N,ft)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(L,ft)|0,h=h+Math.imul(L,pt)|0,r=r+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,r=r+Math.imul(D,yt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(B,yt)|0,h=h+Math.imul(B,wt)|0;var Nt=(c+(r=r+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,kt)|0)+Math.imul(A,_t)|0))<<13)|0;c=((h=h+Math.imul(A,kt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(V,ht),o=(o=Math.imul(V,lt))+Math.imul(H,ht)|0,h=Math.imul(H,lt),r=r+Math.imul(j,ft)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,ft)|0,h=h+Math.imul(U,pt)|0,r=r+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,r=r+Math.imul(P,yt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(F,yt)|0,h=h+Math.imul(F,wt)|0;var Lt=(c+(r=r+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,kt)|0)+Math.imul(B,_t)|0))<<13)|0;c=((h=h+Math.imul(B,kt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(V,ft),o=(o=Math.imul(V,pt))+Math.imul(H,ft)|0,h=Math.imul(H,pt),r=r+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(L,yt)|0,h=h+Math.imul(L,wt)|0;var zt=(c+(r=r+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,kt)|0)+Math.imul(F,_t)|0))<<13)|0;c=((h=h+Math.imul(F,kt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(H,gt)|0,h=Math.imul(H,vt),r=r+Math.imul(j,yt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,yt)|0,h=h+Math.imul(U,wt)|0;var jt=(c+(r=r+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,kt)|0)+Math.imul(L,_t)|0))<<13)|0;c=((h=h+Math.imul(L,kt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(V,yt),o=(o=Math.imul(V,wt))+Math.imul(H,yt)|0,h=Math.imul(H,wt);var Ut=(c+(r=r+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,kt)|0)+Math.imul(U,_t)|0))<<13)|0;c=((h=h+Math.imul(U,kt)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var $t=(c+(r=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,kt))+Math.imul(H,_t)|0))<<13)|0;return c=((h=Math.imul(H,kt))+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,l[0]=St,l[1]=xt,l[2]=Ct,l[3]=Tt,l[4]=Et,l[5]=At,l[6]=It,l[7]=Dt,l[8]=Bt,l[9]=Rt,l[10]=Pt,l[11]=Ft,l[12]=Ot,l[13]=Nt,l[14]=Lt,l[15]=zt,l[16]=jt,l[17]=Ut,l[18]=$t,0!==c&&(l[19]=c,n.length++),n};function M(t,e,n){return(new _).mulp(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):n<63?y(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,h=0;h<n.length-1;h++){var l=o;o=0;for(var c=67108863&r,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var i=h-f,m=(0|t.words[i])*(0|e.words[f]),v=67108863&m;c=67108863&(v=v+c|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[h]=c,r=l,l=o}return 0!==r?n.words[h]=r:n.length--,n.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},_.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},_.prototype.permute=function(t,e,n,r,o,h){for(var i=0;i<h;i++)r[i]=e[t[i]],o[i]=n[t[i]]},_.prototype.transform=function(t,e,n,r,o,h){this.permute(h,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,c=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=c,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],M=n[p+v+s],_=r[p+v+s],k=f*M-m*_;_=f*_+m*M,M=k,n[p+v]=y+M,r[p+v]=w+_,n[p+v+s]=y-M,r[p+v+s]=w-_,v!==l&&(k=c*f-d*m,m=c*m+d*f,f=k)}},_.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},_.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},_.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},_.prototype.convert13b=function(t,e,n,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],n[2*i]=8191&h,h>>>=13,n[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===h),r(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),h=this.stub(r),l=new Array(r),c=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,f,r),this.transform(l,h,c,d,r,o),this.transform(f,h,m,v,r,o);for(var i=0;i<r;i++){var w=c[i]*m[i]-d[i]*v[i];d[i]=c[i]*v[i]+d[i]*m[i],c[i]=w}return this.conjugate(c,d,r),this.transform(c,d,y,h,r,o),this.conjugate(y,h,r),this.normalize13b(y,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=(t.words[r]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n},h.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&n,l=(0|this.words[i])-h<<e;this.words[i]=l|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var c=0;for(i=this.length-1;i>=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-h|d>>>h,c=d&mask}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,n){var i,o,h=t.length+n;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var c=(0|t.words[i])*e;l=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var c=o-1;c>=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q.strip(),a.strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),h=n.cmp(r);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){r(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)}
vendor: 11,772 bytes, line 2
2,h.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new h(1),o=new h(0),l=new h(0),c=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var d=e.clone(),f=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(l.isOdd()||c.isOdd())&&(l.iadd(d),c.isub(f)),l.iushrn(1),c.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(c)):(e.isub(t),l.isub(n),c.isub(o))}return{a:l,b:c,gcd:e.iushln(g)}},h.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),n=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e))}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new A(t)},h.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};function S(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}S.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},S.prototype.split=function(input,t){input.iushrn(this.n,0,t)},S.prototype.imulK=function(t){return t.imul(this.k)},o(x,S),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|e>>>22,e=n}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(C,S),o(T,S),o(E,S),E.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new T;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return k[t]=e,e},A.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},A.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},A.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},A.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},A.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},A.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},A.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},A.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},A.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},A.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},A.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},A.prototype.isqr=function(a){return this.imul(a,a.clone())},A.prototype.sqr=function(a){return this.mul(a,a)},A.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new h(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new h(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new h(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},A.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],d=l-1;d>=0;d--){var f=c>>d&1;n!==e[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0}l=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,A),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(35)(t))},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});const r=n(427),o=n(435);var h=n(99);e.EndOfStreamError=h.EndOfStreamError,e.fromStream=function(t,e){return e=e||{},new r.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new o.BufferTokenizer(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(100);class o{constructor(t,e){this.tagTypes=t,this.tagMap=e}static parseGenre(t){const e=t.trim().split(/\((.*?)\)/g).filter(t=>""!==t),n=[];for(let t of e)/^\d+$/.test(t)&&!isNaN(parseInt(t,10))&&(t=r.Genres[t]),n.push(t);return n.filter(t=>void 0!==t).join("/")}static toIntOrNull(t){const e=parseInt(t,10);return isNaN(e)?null:e}static normalizeTrack(t){const e=t.toString().split("/");return{no:parseInt(e[0],10)||null,of:parseInt(e[1],10)||null}}mapGenericTag(t,e){t={id:t.id,value:t.value},this.postMap(t,e);const n=this.getCommonName(t.id);return n?{id:n,value:t.value}:null}getCommonName(t){return this.tagMap[t]}postMap(t,e){}}e.CommonTagMapper=o,o.maxRatingScore=1},,,,function(t,e,n){var r=n(4).Buffer,o=n(126).Transform,h=n(41).StringDecoder;function l(t){o.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(1)(l,o),l.prototype.update=function(data,t,e){"string"==typeof data&&(data=r.from(data,t));var n=this._update(data);return this.hashMode?this:(e&&(n=this._toString(n,e)),n)},l.prototype.setAutoPadding=function(){},l.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},l.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},l.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},l.prototype._transform=function(data,t,e){var n;try{this.hashMode?this._update(data):this.push(this._update(data))}catch(t){n=t}finally{e(n)}},l.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},l.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return t&&(e=this._toString(e,t,!0)),e},l.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new h(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r},t.exports=l},,,,,,function(t,e,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,h=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var l=Number.isNaN||function(t){return t!=t};function c(){c.init.call(this)}t.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var d=10;function f(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function m(t){return void 0===t._maxListeners?c.defaultMaxListeners:t._maxListeners}function v(t,e,n,r){var o,h,l,c;if(f(n),void 0===(h=t._events)?(h=t._events=Object.create(null),t._eventsCount=0):(void 0!==h.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),h=t._events),l=h[e]),void 0===l)l=h[e]=n,++t._eventsCount;else if("function"==typeof l?l=h[e]=r?[n,l]:[l,n]:r?l.unshift(n):l.push(n),(o=m(t))>0&&l.length>o&&!l.warned){l.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=t,d.type=e,d.count=l.length,c=d,console&&console.warn&&console.warn(c)}return t}function y(){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 w(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=y.bind(r);return o.listener=n,r.wrapFn=o,o}function M(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(o):k(o,o.length)}function _(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function k(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return d}
vendor: 5,951 bytes, line 2
2,set:function(t){if("number"!=typeof t||t<0||l(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");d=t}}),c.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},c.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||l(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},c.prototype.getMaxListeners=function(){return m(this)},c.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var n="error"===t,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var c=r[t];if(void 0===c)return!1;if("function"==typeof c)h(c,this,e);else{var d=c.length,f=k(c,d);for(i=0;i<d;++i)h(f[i],this,e)}return!0},c.prototype.addListener=function(t,e){return v(this,t,e,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(t,e){return v(this,t,e,!0)},c.prototype.once=function(t,e){return f(e),this.on(t,w(this,t,e)),this},c.prototype.prependOnceListener=function(t,e){return f(e),this.prependListener(t,w(this,t,e)),this},c.prototype.removeListener=function(t,e){var n,r,o,i,h;if(f(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){h=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,h||e)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},c.prototype.listeners=function(t){return M(this,t,!0)},c.prototype.rawListeners=function(t){return M(this,t,!1)},c.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):_.call(t,e)},c.prototype.listenerCount=_,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){"use strict";var r=n(307).Buffer,o=r.isEncoding||function(t){switch((t=""+t)&&t.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 h(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=d,this.end=f,e=4;break;case"utf8":this.fillLast=c,e=4;break;case"base64":this.text=m,this.end=v,e=3;break;default:return this.write=y,void(this.end=w)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function l(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function c(t){var p=this.lastTotal-this.lastNeed,e=function(t,e,p){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==e?e:this.lastNeed<=t.length?(t.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,p,0,t.length),void(this.lastNeed-=t.length))}function d(t,i){if((t.length-i)%2==0){var e=t.toString("utf16le",i);if(e){var n=e.charCodeAt(e.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",i,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function m(t,i){var e=(t.length-i)%3;return 0===e?t.toString("base64",i):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",i,t.length-e))}function v(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function w(t){return t&&t.length?this.write(t):""}e.StringDecoder=h,h.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},h.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}
vendor: 7,754 bytes, line 2
2,h.prototype.text=function(t,i){var e=function(t,e,i){var n=e.length-1;if(n<i)return 0;var r=l(e[n]);if(r>=0)return r>0&&(t.lastNeed=r-1),r;if(--n<i||-2===r)return 0;if((r=l(e[n]))>=0)return r>0&&(t.lastNeed=r-2),r;if(--n<i||-2===r)return 0;if((r=l(e[n]))>=0)return r>0&&(2===r?r=0:t.lastNeed=r-3),r;return 0}(this,t,i);if(!this.lastNeed)return t.toString("utf8",i);this.lastTotal=e;var n=t.length-(e-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",i,n)},h.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";var r=n(94),o=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=v;var h=Object.create(n(73));h.inherits=n(1);var l=n(184),c=n(128);h.inherits(v,l);for(var d=o(c.prototype),f=0;f<d.length;f++){var m=d[f];v.prototype[m]||(v.prototype[m]=c.prototype[m])}function v(t){if(!(this instanceof v))return new v(t);l.call(this,t),c.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||r.nextTick(w,this)}function w(t){t.end()}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),v.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},,,,,,,,,,function(t,e,n){"use strict";(function(e,r){var o=n(4).Buffer,h=e.crypto||e.msCrypto;h&&h.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(t);if(t>0)if(t>65536)for(var l=0;l<t;l+=65536)h.getRandomValues(n.slice(l,l+65536));else h.getRandomValues(n);if("function"==typeof e)return r.nextTick((function(){e(null,n)}));return n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(9),n(7))},function(t,e,n){"use strict";var r={};function o(code,t,e){e||(e=Error);var n=function(e){var n,r;function o(n,r,o){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,o))||this}return r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,o}(e);n.prototype.name=e.name,n.prototype.code=code,r[code]=n}function h(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(i){return String(i)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,o,l,c;if("string"==typeof e&&(o="not ",e.substr(!l||l<0?0:+l,o.length)===o)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))c="The ".concat(t," ").concat(r," ").concat(h(e,"type"));else{var d=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";c='The "'.concat(t,'" ').concat(d," ").concat(r," ").concat(h(e,"type"))}return c+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var o=n(176),h=n(180);n(1)(f,o);for(var l=r(h.prototype),c=0;c<l.length;c++){var d=l[c];f.prototype[d]||(f.prototype[d]=h.prototype[d])}function f(t){if(!(this instanceof f))return new f(t);o.call(this,t),h.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",m)))}function m(){this._writableState.ended||e.nextTick(v,this)}function v(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n(7))},function(t,e,n){var r=n(4).Buffer;function o(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(data,t){"string"==typeof data&&(t=t||"utf8",data=r.from(data,t));for(var e=this._block,n=this._blockSize,o=data.length,h=this._len,l=0;l<o;){for(var c=h%n,d=Math.min(o-l,n-c),i=0;i<d;i++)e[c+i]=data[l+i];l+=d,(h+=d)%n==0&&this._update(e)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var h=this._hash();return t?h.toString(t):h},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},function(t,e,n){"use strict";var r={};function o(code,t,e){e||(e=Error);var n=function(e){var n,r;function o(n,r,o){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,o))||this}return r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,o}(e);n.prototype.name=e.name,n.prototype.code=code,r[code]=n}function h(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(i){return String(i)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invali
2d for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,o,l,c;if("string"==typeof e&&(o="not ",e.substr(!l||l<0?0:+l,o.length)===o)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))c="The ".concat(t," ").concat(r," ").concat(h(e,"type"));else{var d=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";c='The "'.concat(t,'" ').concat(d," ").concat(r," ").concat(h(e,"type"))}return c+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var o=n(205),h=n(209);n(1)(f,o);for(var l=r(h.prototype),c=0;c<l.length;c++){var d=l[c];f.prototype[d]||(f.prototype[d]=h.prototype[d])}function f(t){if(!(this instanceof f))return new f(t);o.call(this,t),h.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",m)))}function m(){this._writableState.ended||e.nextTick(v,this)}function v(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n(7))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(29),h=n(14),l=n(11),c=n(17),d=n(447),f=n(5),m=r("music-metadata:parser:APEv2");class v extends c.BasicParser{constructor(){super(...arguments),this.ape={}}static tryParseApeHeader(t,e,n){const r=new v;return r.init(t,e,n),r.tryParseApeHeader()}static calculateDuration(t){let e=t.totalFrames>1?t.blocksPerFrame*(t.totalFrames-1):0;return e+=t.finalFrameBlocks,e/t.sampleRate}static async findApeFooterOffset(e,n){const r=t.alloc(d.TagFooter.len);await e.randomRead(r,0,d.TagFooter.len,n-d.TagFooter.len);const o=d.TagFooter.get(r,0);if("APETAGEX"===o.ID)return m("APE footer header at offset="+n),{footer:o,offset:n-o.size}}static parseTagFooter(t,e,n){const footer=d.TagFooter.get(e,e.length-d.TagFooter.len);h.strictEqual(footer.ID,"APETAGEX","APEv2 Footer preamble"),o.fromBuffer(e);const r=new v;return r.init(t,o.fromBuffer(e),n),r.parseTags(footer)}async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokenizer.fileInfo.size-this.tokenizer.position<d.TagFooter.len)return void m("No APEv2 header found, end-of-file reached");const footer=await this.tokenizer.peekToken(d.TagFooter);if("APETAGEX"===footer.ID)return await this.tokenizer.ignore(d.TagFooter.len),this.parseTags(footer);if(m("APEv2 header not found at offset="+this.tokenizer.position),this.tokenizer.fileInfo.size){const e=this.tokenizer.fileInfo.size-this.tokenizer.position,n=t.alloc(e);return await this.tokenizer.readBuffer(n),v.parseTagFooter(this.metadata,n,this.options)}}async parse(){const t=await this.tokenizer.readToken(d.DescriptorParser);h.strictEqual(t.ID,"MAC ","descriptor.ID"),this.ape.descriptor=t;const e=t.descriptorBytes-d.DescriptorParser.len,header=await(e>0?this.parseDescriptorExpansion(e):this.parseHeader());return await this.tokenizer.ignore(header.forwardBytes),this.tryParseApeHeader()}async parseTags(footer){const e=t.alloc(256);let n=footer.size-d.TagFooter.len;m(`Parse APE tags at offset=${this.tokenizer.position}, size=${n}`);for(let i=0;i<footer.fields;i++){if(n<d.TagItemHeader.len){this.metadata.addWarning(`APEv2 Tag-header: ${footer.fields-i} items remaining, but no more tag data to read.`);break}const r=await this.tokenizer.readToken(d.TagItemHeader);n-=d.TagItemHeader.len+r.size,await this.tokenizer.peekBuffer(e,{length:Math.min(e.length,n)});let o=l.default.findZero(e,0,e.length);const h=await this.tokenizer.readToken(new f.StringType(o,"ascii"));switch(await this.tokenizer.ignore(1),n-=h.length+1,r.flags.dataType){case d.DataType.text_utf8:{const t=(await this.tokenizer.readToken(new f.StringType(r.size,"utf8"))).split(/\x00/g);for(const e of t)this.metadata.addTag("APEv2",h,e);break}case d.DataType.binary:if(this.options.skipCovers)await this.tokenizer.ignore(r.size);else{const e=t.alloc(r.size);await this.tokenizer.readBuffer(e),o=l.default.findZero(e,0,e.length);const n=e.toString("utf8",0,o),data=t.from(e.slice(o+1));this.metadata.addTag("APEv2",h,{description:n,data:data})}break;case d.DataType.external_info:m("Ignore external info "+h),await this.tokenizer.ignore(r.size);break;default:throw new Error("Unexpected data-type: "+r.flags.dataType)}}}async parseDescriptorExpansion(t){return await this.tokenizer.ignore(t),this.parseHeader()}async parseHeader(){const header=await this.tokenizer.readToken(d.Header);return this.metadata.setFormat("lossless",!0),this.metadata.setFormat("container","Monkey's Audio"),this.metadata.setFormat("bitsPerSample",header.bitsPerSample),this.metadata.setFormat("sampleRate",header.sampleRate),this.metadata.setFormat("numberOfChannels",header.channel),this.metadata.setFormat("duration",v.calculateDuration(header)),{forwardBytes:this.ape.descriptor.seekTableBytes+this.ape.descriptor.headerDataBytes+this.ape.descriptor.apeFrameDataBytes+this.ape.descriptor.terminatingDataBytes}}}e.APEv2Parser=v}).call(this,n(3).Buffer)},,function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,h=r(),l=h.default;void 0===l&&(l=[]);var c=h.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||c)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||c):l.length>0?l.map((function(){return t(!1)})):t(!1))}};t.exports=r},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={check:(val={})=>{const date=(new Date).getTime();let copy=eval("("+JSON.stringify(val||{})+")");
2return Object.keys(copy).forEach(t=>{try{const e=new Date(copy[t].___expireDate).getTime();delete copy[t].___expireDate,e<date&&delete copy[t]}catch(t){}}),copy},create:(val={})=>{const date=(new Date).getTime();let copy=eval("("+JSON.stringify(val)+")");return Object.keys(copy).forEach(t=>{if("number"==typeof(copy[t]||{}).expire){const e=date+60*copy[t].expire*60*1e3;copy[t].___expireDate=new Date(e)}}),copy}}},,,,,,,,,,function(t,e,n){"use strict";var r=n(1),o=n(121),h=n(124),l=n(125),c=n(34);function d(t){c.call(this,"digest"),this._hash=t}r(d,c),d.prototype._update=function(data){this._hash.update(data)},d.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new o:"rmd160"===t||"ripemd160"===t?new h:new d(l(t))}},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(3).Buffer)},function(t,e,n){(function(e){t.exports=function(a,b){for(var t=Math.min(a.length,b.length),n=new e(t),i=0;i<t;++i)n[i]=a[i]^b[i];return n}}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var r=n(26),o=n(19);function h(){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}e.BlockHash=h,h.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},h.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},h.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(t,e,n){var r=e;
2r.bignum=n(382),r.define=n(384).define,r.base=n(77),r.constants=n(218),r.decoders=n(389),r.encoders=n(391)},function(t,e,n){var base=e;base.Reporter=n(386).Reporter,base.DecoderBuffer=n(217).DecoderBuffer,base.EncoderBuffer=n(217).EncoderBuffer,base.Node=n(387)},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(11),h=n(457),l=n(79);class c{static removeUnsyncBytes(t){let e=0,n=0;for(;e<t.length-1;)e!==n&&(t[n]=t[e]),e+=255===t[e]&&0===t[e+1]?2:1,n++;return e<t.length&&(t[n++]=t[e]),t.slice(0,n)}static readFrameHeader(t,e){let header;switch(e){case 2:header={id:t.toString("ascii",0,3),length:r.UINT24_BE.get(t,3)};break;case 3:header={id:t.toString("ascii",0,4),length:r.UINT32_BE.get(t,4),flags:c.readFrameFlags(t.slice(8,10))};break;case 4:header={id:t.toString("ascii",0,4),length:l.UINT32SYNCSAFE.get(t,4),flags:c.readFrameFlags(t.slice(8,10))};break;default:throw new Error("Unexpected majorVer: "+e)}return header}static getFrameHeaderLength(t){switch(t){case 2:return 6;case 3:case 4:return 10;default:throw new Error("header versionIndex is incorrect")}}static readFrameFlags(b){return{status:{tag_alter_preservation:o.default.strtokB
2ITSET.get(b,0,6),file_alter_preservation:o.default.strtokBITSET.get(b,0,5),read_only:o.default.strtokBITSET.get(b,0,4)},format:{grouping_identity:o.default.strtokBITSET.get(b,1,7),compression:o.default.strtokBITSET.get(b,1,3),encryption:o.default.strtokBITSET.get(b,1,2),unsynchronisation:o.default.strtokBITSET.get(b,1,1),data_length_indicator:o.default.strtokBITSET.get(b,1,0)}}}static readFrameData(t,e,n,r,o){const l=new h.FrameParser(n,o);switch(n){case 2:return l.readData(t,e.id,r);case 3:case 4:return e.flags.format.unsynchronisation&&(t=c.removeUnsyncBytes(t)),e.flags.format.data_length_indicator&&(t=t.slice(4,t.length)),l.readData(t,e.id,r);default:throw new Error("Unexpected majorVer: "+n)}}static makeDescriptionTagName(t,e){return t+(e?":"+e:"")}async parse(t,e,n){this.tokenizer=e,this.metadata=t,this.options=n;const r=await this.tokenizer.readToken(l.ID3v2Header);if("ID3"!==r.fileIdentifier)throw new Error("expected ID3-header file-identifier 'ID3' was not found");return this.id3Header=r,this.headerType="ID3v2."+r.version.major,r.flags.isExtendedHeader?this.parseExtendedHeader():this.parseId3Data(r.size)}async parseExtendedHeader(){const t=await this.tokenizer.readToken(l.ExtendedHeader),e=t.size-l.ExtendedHeader.len;return e>0?this.parseExtendedHeaderData(e,t.size):this.parseId3Data(this.id3Header.size-t.size)}async parseExtendedHeaderData(e,n){const r=t.alloc(e);return await this.tokenizer.readBuffer(r,{length:e}),this.parseId3Data(this.id3Header.size-n)}async parseId3Data(e){const n=t.alloc(e);await this.tokenizer.readBuffer(n,{length:e});for(const t of this.parseMetadata(n))if("TXXX"===t.id){if(t.value)for(const text of t.value.text)this.addTag(c.makeDescriptionTagName(t.id,t.value.description),text)}else if("COM"===t.id)for(const e of t.value)this.addTag(c.makeDescriptionTagName(t.id,e.description),e.text);else if(Array.isArray(t.value))for(const e of t.value)this.addTag(t.id,e);else this.addTag(t.id,t.value)}addTag(t,e){this.metadata.addTag(this.headerType,t,e)}parseMetadata(data){let t=0;const e=[];for(;t!==data.length;){const n=c.getFrameHeaderLength(this.id3Header.version.major);if(t+n>data.length){this.metadata.addWarning("Illegal ID3v2 tag length");break}const r=data.slice(t,t+=n),o=c.readFrameHeader(r,this.id3Header.version.major);if(""===o.id||"\0\0\0\0"===o.id||-1==="ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(o.id[0]))break;const h=data.slice(t,t+=o.length),l=c.readFrameData(h,o,this.id3Header.version.major,!this.options.skipCovers,this.metadata);e.push({id:o.id,value:l})}return e}}e.ID3v2Parser=c}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(11);!function(t){t[t.Other=0]="Other",t[t["32x32 pixels 'file icon' (PNG only)"]=1]="32x32 pixels 'file icon' (PNG only)",t[t["Other file icon"]=2]="Other file icon",t[t["Cover (front)"]=3]="Cover (front)",t[t["Cover (back)"]=4]="Cover (back)",t[t["Leaflet page"]=5]="Leaflet page",t[t["Media (e.g. label side of CD)"]=6]="Media (e.g. label side of CD)",t[t["Lead artist/lead performer/soloist"]=7]="Lead artist/lead performer/soloist",t[t["Artist/performer"]=8]="Artist/performer",t[t.Conductor=9]="Conductor",t[t["Band/Orchestra"]=10]="Band/Orchestra",t[t.Composer=11]="Composer",t[t["Lyricist/text writer"]=12]="Lyricist/text writer",t[t["Recording Location"]=13]="Recording Location",t[t["During recording"]=14]="During recording",t[t["During performance"]=15]="During performance",t[t["Movie/video screen capture"]=16]="Movie/video screen capture",t[t["A bright coloured fish"]=17]="A bright coloured fish",t[t.Illustration=18]="Illustration",t[t["Band/artist logotype"]=19]="Band/artist logotype",t[t["Publisher/Studio logotype"]=20]="Publisher/Studio logotype"}(e.AttachedPictureType||(e.AttachedPictureType={})),e.UINT32SYNCSAFE={get:(t,e)=>127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21,len:4},e.ID3v2Header={len:10,get:(t,n)=>({fileIdentifier:new r.StringType(3,"ascii").get(t,n),version:{major:r.INT8.get(t,n+3),revision:r.INT8.get(t,n+4)},flags:{raw:r.INT8.get(t,n+4),unsynchronisation:o.default.strtokB
2ITSET.get(t,n+5,7),isExtendedHeader:o.default.strtokBITSET.get(t,n+5,6),expIndicator:o.default.strtokBITSET.get(t,n+5,5),footer:o.default.strtokBITSET.get(t,n+5,4)},size:e.UINT32SYNCSAFE.get(t,n+6)})},e.ExtendedHeader={len:10,get:(t,e)=>({size:r.UINT32_BE.get(t,e),extendedFlags:r.UINT16_BE.get(t,e+4),sizeOfPadding:r.UINT32_BE.get(t,e+6),crcDataPresent:o.default.strtokBITSET.get(t,e+4,31)})},e.TextEncodingToken={len:1,get:(t,e)=>{switch(t.readUInt8(e)){case 0:return{encoding:"iso-8859-1"};case 1:return{encoding:"utf16",bom:!0};case 2:return{encoding:"utf16",bom:!1};case 3:default:return{encoding:"utf8",bom:!1}}}}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],n=!0,r=!1,o=void 0;try{for(var h,l=t[Symbol.iterator]();!(n=(h=l.next()).done)&&(e.push(h.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}return e}}(t,i)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(e,"a",(function(){return o}))},,function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n(52),e.createHash=e.Hash=n(72),e.createHmac=e.Hmac=n(188);var r=n(325),o=Object.keys(r),h=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);e.getHashes=function(){return h};var p=n(191);e.pbkdf2=p.pbkdf2,e.pbkdf2Sync=p.pbkdf2Sync;var l=n(327);e.Cipher=l.Cipher,e.createCipher=l.createCipher,e.Cipheriv=l.Cipheriv,e.createCipheriv=l.createCipheriv,e.Decipher=l.Decipher,e.createDecipher=l.createDecipher,e.Decipheriv=l.Decipheriv,e.createDecipheriv=l.createDecipheriv,e.getCiphers=l.getCiphers,e.listCiphers=l.listCiphers;var c=n(342);e.DiffieHellmanGroup=c.DiffieHellmanGroup,e.createDiffieHellmanGroup=c.createDiffieHellmanGroup,e.getDiffieHellman=c.getDiffieHellman,e.createDiffieHellman=c.createDiffieHellman,e.DiffieHellman=c.DiffieHellman;var d=n(349);e.createSign=d.createSign,e.Sign=d.Sign,e.createVerify=d.createVerify,e.Verify=d.Verify,e.createECDH=n(397);var f=n(400);e.publicEncrypt=f.publicEncrypt,e.privateEncrypt=f.privateEncrypt,e.publicDecrypt=f.publicDecrypt,e.privateDecrypt=f.privateDecrypt;var m=n(404);e.randomFill=m.randomFill,e.randomFillSync=m.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.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}},,,,,,,,,,,,function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var h,i,l=arguments.length;switch(l){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,o)}));default:for(h=new Array(l-1),i=0;i<h.length;)h[i++]=arguments[i];return e.nextTick((function(){t.apply(null,h)}))}}}:t.exports=e}).call(this,n(7))},function(t,e,n){var r=n(4).Buffer;function o(t){r.isBuffer(t)||(t=r.from(t));for(var e=t.length/4|0,n=new Array(e),i=0;i<e;i++)n[i]=t.readUInt32BE(4*i);return n}function h(t){for(;0<t.length;t++)t[0]=0}function l(t,e,n,r,o){for(var h,l,c,d,f=n[0],m=n[1],v=n[2],y=n[3],w=t[0]^e[0],M=t[1]^e[1],_=t[2]^e[2],k=t[3]^e[3],S=4,x=1;x<o;x++)h=f[w>>>24]^m[M>>>16&255]^v[_>>>8&255]^y[255&k]^e[S++],l=f[M>>>24]^m[_>>>16&255]^v[k>>>8&255]^y[255&w]^e[S++],c=f[_>>>24]^m[k>>>16&255]^v[w>>>8&255]^y[255&M]^e[S++],d=f[k>>>24]^m[w>>>16&255]^v[M>>>8&255]^y[255&_]^e[S++],w=h,M=l,_=c,k=d;return h=(r[w>>>24]<<24|r[M>>>16&255]<<16|r[_>>>8&255]<<8|r[255&k])^e[S++],l=(r[M>>>24]<<24|r[_>>>16&255]<<16|r[k>>>8&255]<<8|r[255&w])^e[S++],c=(r[_>>>24]<<24|r[k>>>16&255]<<16|r[w>>>8&255]<<8|r[255&M])^e[S++],d=(r[k>>>24]<<24|r[w>>>16&255]<<16|r[M>>>8&255]<<8|r[255&_])^e[S++],[h>>>=0,l>>>=0,c>>>=0,d>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],o=[[],[],[],[]],h=[[],[],[],[]],l=0,c=0,i=0;i<256;++i){var d=c^c<<1^c<<2^c<<3^c<<4;d=d>>>8^255&d^99,n[l]=d,r[d]=l;
vendor: 4,268 bytes, line 2
2var f=t[l],m=t[f],v=t[m],y=257*t[d]^16843008*d;o[0][l]=y<<24|y>>>8,o[1][l]=y<<16|y>>>16,o[2][l]=y<<8|y>>>24,o[3][l]=y,y=16843009*v^65537*m^257*f^16843008*l,h[0][d]=y<<24|y>>>8,h[1][d]=y<<16|y>>>16,h[2][d]=y<<8|y>>>24,h[3][d]=y,0===l?l=c=1:(l=f^t[t[t[v^f]]],c^=t[t[c]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:o,INV_SUB_MIX:h}}();function f(t){this._key=o(t),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),o=[],h=0;h<e;h++)o[h]=t[h];for(h=e;h<r;h++){var l=o[h-1];h%e==0?(l=l<<8|l>>>24,l=d.SBOX[l>>>24]<<24|d.SBOX[l>>>16&255]<<16|d.SBOX[l>>>8&255]<<8|d.SBOX[255&l],l^=c[h/e|0]<<24):e>6&&h%e==4&&(l=d.SBOX[l>>>24]<<24|d.SBOX[l>>>16&255]<<16|d.SBOX[l>>>8&255]<<8|d.SBOX[255&l]),o[h]=o[h-e]^l}for(var f=[],m=0;m<r;m++){var v=r-m,y=o[v-(m%4?0:4)];f[m]=m<4||v<=4?y:d.INV_SUB_MIX[0][d.SBOX[y>>>24]]^d.INV_SUB_MIX[1][d.SBOX[y>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[y>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&y]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(t){return l(t=o(t),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},f.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},f.prototype.decryptBlock=function(t){var e=(t=o(t))[1];t[1]=t[3],t[3]=e;var n=l(t,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),h=r.allocUnsafe(16);return h.writeUInt32BE(n[0],0),h.writeUInt32BE(n[3],4),h.writeUInt32BE(n[2],8),h.writeUInt32BE(n[1],12),h},f.prototype.scrub=function(){h(this._keySchedule),h(this._invKeySchedule),h(this._key)},t.exports.AES=f},function(t,e,n){var r=n(4).Buffer,o=n(121);t.exports=function(t,e,n,h){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var l=n/8,c=r.alloc(l),d=r.alloc(h||0),f=r.alloc(0);l>0||h>0;){var m=new o;m.update(f),m.update(t),e&&m.update(e),f=m.digest();var v=0;if(l>0){var y=c.length-l;v=Math.min(l,f.length),f.copy(c,y,0,v),l-=v}if(v<f.length&&h>0){var w=d.length-h,M=Math.min(h,f.length-v);f.copy(d,w,v,v+M),h-=M}}return f.fill(0),{key:c,iv:d}}},function(t,e,n){"use strict";var r=n(28),o=n(20),h=o.getNAF,l=o.getJSF,c=o.assert;function d(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=d,d.prototype.point=function(){throw new Error("Not implemented")},d.prototype.validate=function(){throw new Error("Not implemented")},d.prototype._fixedNafMul=function(p,t){c(p.precomputed);var e=p._getDoubles(),n=h(t,1,this._bitLength),r=(1<<e.step+1)-(e.step%2==0?2:1);r/=3;for(var o=[],l=0;l<n.length;l+=e.step){var d=0;for(t=l+e.step-1;t>=l;t--)d=(d<<1)+n[t];o.push(d)}for(var a=this.jpoint(null,null,null),b=this.jpoint(null,null,null),i=r;i>0;i--){for(l=0;l<o.length;l++){(d=o[l])===i?b=b.mixedAdd(e.points[l]):d===-i&&(b=b.mixedAdd(e.points[l].neg()))}a=a.add(b)}return a.toP()},d.prototype._wnafMul=function(p,t){var e=4,n=p._getNAFPoints(e);e=n.wnd;for(var r=n.points,o=h(t,e,this._bitLength),l=this.jpoint(null,null,null),i=o.length-1;i>=0;i--){for(t=0;i>=0&&0===o[i];i--)t++;if(i>=0&&t++,l=l.dblp(t),i<0)break;var d=o[i];c(0!==d),l="affine"===p.type?d>0?l.mixedAdd(r[d-1>>1]):l.mixedAdd(r[-d-1>>1].neg()):d>0?l.add(r[d-1>>1]):l.add(r[-d-1>>1].neg())}return"affine"===p.type?l.toP():l},d.prototype._wnafMulAdd=function(t,e,n,r,o){for(var c=this._wnafT1,d=this._wnafT2,f=this._wnafT3,m=0,i=0;i<r;i++){var v=(p=e[i])._getNAFPoints(t);c[i]=v.wnd,d[i]=v.points}for(i=r-1;i>=1;i-=2){var a=i-1,b=i;if(1===c[a]&&1===c[b]){var y=[e[a],null,null,e[b]];
vendor: 5,006 bytes, line 2
20===e[a].y.cmp(e[b].y)?(y[1]=e[a].add(e[b]),y[2]=e[a].toJ().mixedAdd(e[b].neg())):0===e[a].y.cmp(e[b].y.redNeg())?(y[1]=e[a].toJ().mixedAdd(e[b]),y[2]=e[a].add(e[b].neg())):(y[1]=e[a].toJ().mixedAdd(e[b]),y[2]=e[a].toJ().mixedAdd(e[b].neg()));var w=[-3,-1,-5,-7,0,7,5,1,3],M=l(n[a],n[b]);m=Math.max(M[0].length,m),f[a]=new Array(m),f[b]=new Array(m);for(var _=0;_<m;_++){var k=0|M[0][_],S=0|M[1][_];f[a][_]=w[3*(k+1)+(S+1)],f[b][_]=0,d[a]=y}}else f[a]=h(n[a],c[a],this._bitLength),f[b]=h(n[b],c[b],this._bitLength),m=Math.max(f[a].length,m),m=Math.max(f[b].length,m)}var x=this.jpoint(null,null,null),C=this._wnafT4;for(i=m;i>=0;i--){for(var T=0;i>=0;){var E=!0;for(_=0;_<r;_++)C[_]=0|f[_][i],0!==C[_]&&(E=!1);if(!E)break;T++,i--}if(i>=0&&T++,x=x.dblp(T),i<0)break;for(_=0;_<r;_++){var p,A=C[_];0!==A&&(A>0?p=d[_][A-1>>1]:A<0&&(p=d[_][-A-1>>1].neg()),x="affine"===p.type?x.mixedAdd(p):x.add(p))}}for(i=0;i<r;i++)d[i]=null;return o?x:x.toP()},d.BasePoint=f,f.prototype.eq=function(){throw new Error("Not implemented")},f.prototype.validate=function(){return this.curve.validate(this)},d.prototype.decodePoint=function(t,e){t=o.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*n)return 6===t[0]?c(t[t.length-1]%2==0):7===t[0]&&c(t[t.length-1]%2==1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},f.prototype.encodeCompressed=function(t){return this.encode(t,!0)},f.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},f.prototype.encode=function(t,e){return o.encode(this._encode(e),t)},f.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},f.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},f.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r)}return{step:t,points:n}},f.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},function(t,e,n){var r=n(381),o=n(394),h=n(395),l=n(130),c=n(191),d=n(4).Buffer;function f(t){var e;"object"!=typeof t||d.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=d.from(t));var n,f,m=h(t,e),v=m.tag,data=m.data;switch(v){case"CERTIFICATE":f=r.certificate.decode(data,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=r.PublicKey.decode(data,"der")),n=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=r.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+v);case"ENCRYPTED PRIVATE KEY":data=function(data,t){var e=data.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(),10),r=o[data.algorithm.decrypt.cipher.algo.join(".")],h=data.algorithm.decrypt.cipher.iv,f=data.subjectPrivateKey,m=parseInt(r.split("-")[1],10)/8,v=c.pbkdf2Sync(t,e,n,m,"sha1"),y=l.createDecipheriv(r,v,h),w=[];return w.push(y.update(f)),w.push(y.final()),d.concat(w)}(data=r.EncryptedPrivateKey.decode(data,"der"),e);case"PRIVATE KEY":switch(n=(f=r.PrivateKey.decode(data,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:r.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=r.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+v);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(data,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(data,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(data,"der")};case"EC PRIVATE KEY":return{curve:(data=r.ECPrivateKey.decode(data,"der")).parameters.value,privateKey:data.privateKey};default:throw new Error("unknown key type "+v)}}t.exports=f,f.signature=r.signature},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});const r=n(14),o=n(231);var h=n(231);e.EndOfStreamError=h.EndOfStreamError;class l{constructor(){this.promise=new Promise((t,e)=>{this.reject=e,this.resolve=t})}}e.StreamReader=class{constructor(s){if(this.s=s,this.endOfStream=!1,this.peekQueue=[],!s.read||!s.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",()=>this.reject(new o.EndOfStreamError)),this.s.once("error",t=>this.reject(t)),this.s.once("close",()=>this.reject(new Error("Stream closed")))}async peek(t,e,n){const r=await this.read(t,e,n);return this.peekQueue.push(t.slice(e,e+r)),r}async read(t,e,n){if(0===n)return 0;if(0===this.peekQueue.length&&this.endOfStream)throw new o.EndOfStreamError;let r=n,h=0;for(;this.peekQueue.length>0&&r>0;){const n=this.peekQueue.pop(),o=Math.min(n.length,r);n.copy(t,e+h,0,o),h+=o,r-=o,o<n.length&&this.peekQueue.push(n.slice(o))}for(;r>0&&!this.endOfStream;){const n=Math.min(r,1048576),o=await this._read(t,e+h,n);if(h+=o,o<n)break;r-=o}return h}async _read(t,e,n){r.ok(!this.request,"Concurrent read operation?");const o=this.s.read(n);return o?(o.copy(t,e),o.length):(this.request={buffer:t,offset:e,length:n,deferred:new l},this.s.once("readable",()=>{this.tryRead()}),this.request.deferred.promise.then(t=>(this.request=null,t),t=>{throw this.request=null,t}))}tryRead(){const t=this.s.read(this.request.length);t?(t.copy(this.request.buffer,this.request.offset),this.request.deferred.resolve(t.length)):this.s.once("readable",()=>{this.tryRead()})}reject(t){this.endOfStream=!0,this.request&&(this.request.deferred.reject(t),this.request=null)}}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(11),h=n(5),l=n(17),c=n(58),d=r("music-metadata:parser:ID3v1");e.Genres=["Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge","Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B","Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska","Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient","Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical","Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise","Alt. Rock","Bass","Soul","Punk","Space","Meditative","Instrumental Pop","Instrumental Rock","Ethnic","Gothic","Darkwave","Techno-Industrial","Electronic","Po
2p-Folk","Eurodance","Dream","Southern Rock","Comedy","Cult","Gangsta Rap","Top 40","Christian Rap","Pop/Funk","Jungle","Native American","Cabaret","New Wave","Psychedelic","Rave","Showtunes","Trailer","Lo-Fi","Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical","Rock & Roll","Hard Rock","Folk","Folk/Rock","National Folk","Swing","Fast-Fusion","Bebob","Latin","Revival","Celtic","Bluegrass","Avantgarde","Gothic Rock","Progressive Rock","Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band","Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson","Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus","Porn Groove","Satire","Slow Jam","Club","Tango","Samba","Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle","Duet","Punk Rock","Drum Solo","A Cappella","Euro-House","Dance Hall","Goa","Drum & Bass","Club-House","Hardcore","Terror","Indie","BritPop","Negerpunk","Polsk Punk","Beat","Christian Gangsta Rap","Heavy Metal","Black Metal","Crossover","Contemporary Christian","Christian Rock","Merengue","Salsa","Thrash Metal","Anime","JPop","Synthpop","Abstract","Art Rock","Baroque","Bhangra","Big Beat","Breakbeat","Chillout","Downtempo","Dub","EBM","Eclectic","Electro","Electroclash","Emo","Experimental","Garage","Global","IDM","Illbient","Industro-Goth","Jam Band","Krautrock","Leftfield","Lounge","Math Rock","New Romantic","Nu-Breakz","Post-Punk","Post-Rock","Psytrance","Shoegaze","Space Rock","Trop Rock","World Music","Neoclassical","Audiobook","Audio Theatre","Neue Deutsche Welle","Podcast","Indie Rock","G-Funk","Dubstep","Garage Rock","Psybient"];const f={len:128,get:(t,e)=>{const header=new m(3).get(t,e);return"TAG"===header?{header:header,title:new m(30).get(t,e+3),artist:new m(30).get(t,e+33),album:new m(30).get(t,e+63),year:new m(4).get(t,e+93),comment:new m(28).get(t,e+97),zeroByte:h.UINT8.get(t,e+127),track:h.UINT8.get(t,e+126),genre:h.UINT8.get(t,e+127)}:null}};class m extends h.StringType{constructor(t){super(t,"binary")}get(t,e){let n=super.get(t,e);return n=o.default.trimRightNull(n),n=n.trim(),n.length>0?n:void 0}}class v extends l.BasicParser{static getGenre(t){if(t<e.Genres.length)return e.Genres[t]}async parse(){if(!this.tokenizer.fileInfo.size)return void d("Skip checking for ID3v1 because the file-size is unknown");if(this.options.apeHeader){this.tokenizer.ignore(this.options.apeHeader.offset-this.tokenizer.position);const t=new c.APEv2Parser;t.init(this.metadata,this.tokenizer,this.options),await t.parseTags(this.options.apeHeader.footer)}const t=this.tokenizer.fileInfo.size-f.len;if(this.tokenizer.position>t)return void d("Already consumed the last 128 bytes");const header=await this.tokenizer.readToken(f,t);if(header){d("ID3v1 header found at: pos=%s",this.tokenizer.fileInfo.size-f.len);for(const t of["title","artist","album","comment","track","year"])header[t]&&""!==header[t]&&this.addTag(t,header[t]);const t=v.getGenre(header.genre);t&&this.addTag("genre",t)}else d("ID3v1 header not found at: pos=%s",this.tokenizer.fileInfo.size-f.len)}addTag(t,e){this.metadata.addTag("ID3v1",t,e)}}e.ID3v1Parser=v,e.hasID3v1Header=async function(e){if(e.fileSize>=128){const n=t.alloc(3);return await e.randomRead(n,0,n.length,e.fileSize-128),"TAG"===n.toString("binary")}return!1}}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(29),o=n(79),h=n(78),l=n(100),c=n(6),d=n(17),f=c("music-metadata:parser:ID3");class m extends d.BasicParser{constructor(){super(...arguments),this.id3parser=new h.ID3v2Parser}static async startsWithID3v2Header(t){return"ID3"===(await t.peekToken(o.ID3v2Header)).fileIdentifier}async parse(){try{await this.parseID3v2()}catch(t){if(!(t instanceof r.EndOfStreamError))throw t;f("End-of-stream")}}finalize(){}async parseID3v2(){if(await this.tryReadId3v2Headers(),f("End of ID3v2 header, go to MPEG-parser: pos=%s",this.tokenizer.position),await this._parse(),this.options.skipPostHeaders&&this.metadata.hasAny())this.finalize();else{const t=new l.ID3v1Parser;await t.init(this.metadata,this.tokenizer,this.options).parse(),this.finalize()}}async tryReadId3v2Headers(){if("ID3"===(await this.tokenizer.peekToken(o.ID3v2Header)).fileIdentifier)return f("Found ID3v2 header, pos=%s",this.tokenizer.position),await this.id3parser.parse(this.metadata,this.tokenizer,this.options),this.tryReadId3v2Headers()}}e.AbstractID3Parser=m},function(t,e,n){"use strict";
2(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(6),h=n(235),l=n(234),c=o("music-metadata:parser:ogg:vorbis1");e.VorbisParser=class{constructor(t,e){this.metadata=t,this.options=e,this.pageSegments=[]}parsePage(header,e){if(header.headerType.firstPage)this.parseFirstPage(header,e);else{if(header.headerType.continued){if(0===this.pageSegments.length)throw new Error("Cannot continue on previous page");this.pageSegments.push(e)}if(header.headerType.lastPage||!header.headerType.continued){if(this.pageSegments.length>0){const e=t.concat(this.pageSegments);this.parseFullPage(e)}this.pageSegments=header.headerType.lastPage?[]:[e]}}header.headerType.lastPage&&this.calculateDuration(header)}flush(){this.parseFullPage(t.concat(this.pageSegments))}parseUserComment(t,e){const n=new h.VorbisDecoder(t,e).parseUserComment();return this.addTag(n.key,n.value),n.len}addTag(t,e){if("METADATA_BLOCK_PICTURE"===t&&"string"==typeof e){if(this.options.skipCovers)return void c("Ignore picture");e=l.VorbisPictureToken.fromBase64(e),c(`Push picture: id=${t}, format=${e.format}`)}else c(`Push tag: id=${t}, value=${e}`);this.metadata.addTag("vorbis",t,e)}parseFirstPage(header,t){this.metadata.setFormat("codec","Vorbis I"),c("Parse first page");const e=l.CommonHeader.get(t,0);if("vorbis"!==e.vorbis)throw new Error("Metadata does not look like Vorbis");if(1!==e.packetType)throw new Error("First Ogg page should be type 1: the identification header");{const e=l.IdentificationHeader.get(t,l.CommonHeader.len);this.metadata.setFormat("sampleRate",e.sampleRate),this.metadata.setFormat("bitrate",e.bitrateNominal),this.metadata.setFormat("numberOfChannels",e.channelMode),c("sample-rate=%s[hz], bitrate=%s[b/s], channel-mode=%s",e.sampleRate,e.bitrateNominal,e.channelMode)}}parseFullPage(t){const e=l.CommonHeader.get(t,0);switch(c("Parse full page: type=%s, byteLength=%s",e.packetType,t.byteLength),e.packetType){case 3:return this.parseUserCommentList(t,l.CommonHeader.len)}}calculateDuration(header){this.metadata.format.sampleRate&&header.absoluteGranulePosition>=0&&(this.metadata.setFormat("numberOfSamples",header.absoluteGranulePosition),this.metadata.setFormat("duration",this.metadata.format.numberOfSamples/this.metadata.format.sampleRate))}parseUserCommentList(t,e){const n=r.UINT32_LE.get(t,e);e+=4,e+=n;let o=r.UINT32_LE.get(t,e);for(e+=4;o-- >0;)e+=this.parseUserComment(t,e)}}}).call(this,n(3).Buffer)},,,function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=function(t,e){var content=t[1]||"",n=t[3];if(!n)return content;if(e&&"function"==typeof btoa){var r=(h=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(h)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(data," */")),o=n.sources.map((function(source){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([r]).join("\n")}var h,l,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var h=this[i][0];null!=h&&(o[h]=!0)}for(var l=0;l<t.length;l++){var c=[].concat(t[l]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],h=o[0],l={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[h]?r[h].parts.push(l):n.push(r[h]={id:h,parts:[l]})}return n}n.r(e),n.d(e,"default",(function(){return y}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var h={},head=o&&(document.head||document.getElementsByTagName("head")[0]),l=null,c=0,d=!1,f=function(){},m=null,v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function y(t,e,n,o){d=n,m=o||{};var l=r(t,e);return w(l),function(e){for(var n=[],i=0;i<l.length;i++){var o=l[i];(c=h[o.id]).refs--,n.push(c)}e?w(l=r(t,e)):l=[];for(i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var d=0;d<c.parts.length;d++)c.parts[d]();delete h[c.id]}}}}function w(t){for(var i=0;i<t.length;i++){var e=t[i],n=h[e.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](e.parts[r]);for(;r<e.parts.length;r++)n.parts.push(_(e.parts[r]));n.parts.length>e.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r<e.parts.length;r++)o.push(_(e.parts[r]));h[e.id]={id:e.id,refs:1,parts:o}}}}function M(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function _(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.i
2d+'"]');if(r){if(d)return f;r.parentNode.removeChild(r)}if(v){var o=c++;r=l||(l=M()),e=x.bind(null,r,o,!1),n=x.bind(null,r,o,!0)}else r=M(),e=C.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var k,S=(k=[],function(t,e){return k[t]=e,k.filter(Boolean).join("\n")});function x(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=S(e,o);else{var h=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(h,l[e]):t.appendChild(h)}}function C(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),m.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(1),o=n(175),h=n(4).Buffer,l=new Array(16);function c(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function d(t,e){return t<<e|t>>>32-e}function f(a,b,t,e,n,r,s){return d(a+(b&t|~b&e)+n+r|0,s)+b|0}function m(a,b,t,e,n,r,s){return d(a+(b&e|t&~e)+n+r|0,s)+b|0}function v(a,b,t,e,n,r,s){return d(a+(b^t^e)+n+r|0,s)+b|0}function y(a,b,t,e,n,r,s){return d(a+(t^(b|~e))+n+r|0,s)+b|0}r(c,o),c.prototype._update=function(){for(var t=l,i=0;i<16;++i)t[i]=this._block.readInt32LE(4*i);var a=this._a,b=this._b,e=this._c,n=this._d;a=f(a,b,e,n,t[0],3614090360,7),n=f(n,a,b,e,t[1],3905402710,12),e=f(e,n,a,b,t[2],606105819,17),b=f(b,e,n,a,t[3],3250441966,22),a=f(a,b,e,n,t[4],4118548399,7),n=f(n,a,b,e,t[5],1200080426,12),e=f(e,n,a,b,t[6],2821735955,17),b=f(b,e,n,a,t[7],4249261313,22),a=f(a,b,e,n,t[8],1770035416,7),n=f(n,a,b,e,t[9],2336552879,12),e=f(e,n,a,b,t[10],4294925233,17),b=f(b,e,n,a,t[11],2304563134,22),a=f(a,b,e,n,t[12],1804603682,7),n=f(n,a,b,e,t[13],4254626195,12),e=f(e,n,a,b,t[14],2792965006,17),a=m(a,b=f(b,e,n,a,t[15],1236535329,22),e,n,t[1],4129170786,5),n=m(n,a,b,e,t[6],3225465664,9),e=m(e,n,a,b,t[11],643717713,14),b=m(b,e,n,a,t[0],3921069994,20),a=m(a,b,e,n,t[5],3593408605,5),n=m(n,a,b,e,t[10],38016083,9),e=m(e,n,a,b,t[15],3634488961,14),b=m(b,e,n,a,t[4],3889429448,20),a=m(a,b,e,n,t[9],568446438,5),n=m(n,a,b,e,t[14],3275163606,9),e=m(e,n,a,b,t[3],4107603335,14),b=m(b,e,n,a,t[8],1163531501,20),a=m(a,b,e,n,t[13],2850285829,5),n=m(n,a,b,e,t[2],4243563512,9),e=m(e,n,a,b,t[7],1735328473,14),a=v(a,b=m(b,e,n,a,t[12],2368359562,20),e,n,t[5],4294588738,4),n=v(n,a,b,e,t[8],2272392833,11),e=v(e,n,a,b,t[11],1839030562,16),b=v(b,e,n,a,t[14],4259657740,23),a=v(a,b,e,n,t[1],2763975236,4),n=v(n,a,b,e,t[4],1272893353,11),e=v(e,n,a,b,t[7],4139469664,16),b=v(b,e,n,a,t[10],3200236656,23),a=v(a,b,e,n,t[13],681279174,4),n=v(n,a,b,e,t[0],3936430074,11),e=v(e,n,a,b,t[3],3572445317,16),b=v(b,e,n,a,t[6],76029189,23),a=v(a,b,e,n,t[9],3654602809,4),n=v(n,a,b,e,t[12],3873151461,11),e=v(e,n,a,b,t[15],530742520,16),a=y(a,b=v(b,e,n,a,t[2],3299628645,23),e,n,t[0],4096336452,6),n=y(n,a,b,e,t[7],1126891415,10),e=y(e,n,a,b,t[14],2878612391,15),b=y(b,e,n,a,t[5],4237533241,21),a=y(a,b,e,n,t[12],1700485571,6),n=y(n,a,b,e,t[3],2399980690,10),e=y(e,n,a,b,t[10],4293915773,15),b=y(b,e,n,a,t[1],2240044497,21),a=y(a,b,e,n,t[8],1873313359,6),n=y(n,a,b,e,t[15],4264355552,10),e=y(e,n,a,b,t[6],2734768916,15),b=y(b,e,n,a,t[13],1309151649,21),a=y(a,b,e,n,t[4],4149444226,6),n=y(n,a,b,e,t[11],3174756917,10),e=y(e,n,a,b,t[2],718787259,15),b=y(b,e,n,a,t[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+b|0,this._c=this._c+e|0,this._d=this._d+n|0},c.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 t=h.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t}
vendor: 9,527 bytes, line 2
2,t.exports=c},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,n(9))},function(t,e,n){"use strict";var r=n(53).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,n,h){if("function"==typeof n)return t(e,null,n);n||(n={}),h=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.apply(this,r)}}}(h||o);var l=n.readable||!1!==n.readable&&e.readable,c=n.writable||!1!==n.writable&&e.writable,d=function(){e.writable||m()},f=e._writableState&&e._writableState.finished,m=function(){c=!1,f=!0,l||h.call(e)},v=e._readableState&&e._readableState.endEmitted,y=function(){l=!1,v=!0,c||h.call(e)},w=function(t){h.call(e,t)},M=function(){var t;return l&&!v?(e._readableState&&e._readableState.ended||(t=new r),h.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new r),h.call(e,t)):void 0},_=function(){e.req.on("finish",m)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?c&&!e._writableState&&(e.on("end",d),e.on("close",d)):(e.on("complete",m),e.on("abort",M),e.req?_():e.on("request",_)),e.on("end",y),e.on("finish",m),!1!==n.error&&e.on("error",w),e.on("close",M),function(){e.removeListener("complete",m),e.removeListener("abort",M),e.removeListener("request",_),e.req&&e.req.removeListener("finish",m),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("end",y),e.removeListener("error",w),e.removeListener("close",M)}}},function(t,e,n){"use strict";var r=n(3).Buffer,o=n(1),h=n(175),l=new Array(16),c=[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],d=[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],f=[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],v=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function y(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function w(t,e){return t<<e|t>>>32-e}function M(a,b,t,e,n,r,o,s){return w(a+(b^t^e)+r+o|0,s)+n|0}function _(a,b,t,e,n,r,o,s){return w(a+(b&t|~b&e)+r+o|0,s)+n|0}function k(a,b,t,e,n,r,o,s){return w(a+((b|~t)^e)+r+o|0,s)+n|0}function S(a,b,t,e,n,r,o,s){return w(a+(b&e|t&~e)+r+o|0,s)+n|0}function x(a,b,t,e,n,r,o,s){return w(a+(b^(t|~e))+r+o|0,s)+n|0}o(y,h),y.prototype._update=function(){for(var t=l,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,r=0|this._b,o=0|this._c,dl=0|this._d,h=0|this._e,y=0|this._a,br=0|this._b,C=0|this._c,T=0|this._d,E=0|this._e,i=0;i<80;i+=1){var A,tr;i<16?(A=M(n,r,o,dl,h,t[c[i]],v[0],f[i]),tr=x(y,br,C,T,E,t[d[i]],hr[0],m[i])):i<32?(A=_(n,r,o,dl,h,t[c[i]],v[1],f[i]),tr=S(y,br,C,T,E,t[d[i]],hr[1],m[i])):i<48?(A=k(n,r,o,dl,h,t[c[i]],v[2],f[i]),tr=k(y,br,C,T,E,t[d[i]],hr[2],m[i])):i<64?(A=S(n,r,o,dl,h,t[c[i]],v[3],f[i]),tr=_(y,br,C,T,E,t[d[i]],hr[3],m[i])):(A=x(n,r,o,dl,h,t[c[i]],v[4],f[i]),tr=M(y,br,C,T,E,t[d[i]],hr[4],m[i])),n=h,h=dl,dl=w(o,10),o=r,r=A,y=E,E=T,T=w(C,10),C=br,br=tr}var I=this._b+o+T|0;this._b=this._c+dl+E|0,this._c=this._d+h+y|0,this._d=this._e+n+br|0,this._e=this._a+r+C|0,this._a=I},y.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 t=r.alloc?r.alloc(20):new r(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=y},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(312),e.sha1=n(313),e.sha224=n(314),e.sha256=n(182),e.sha384=n(315),e.sha512=n(183)},function(t,e,n){t.exports=o;var r=n(40).EventEmitter;function o(){r.call(this)}n(1)(o,r),o.Readable=n(127),o.Writable=n(320),o.Duplex=n(321),o.Transform=n(322),o.PassThrough=n(323),o.Stream=o,o.prototype.pipe=function(t,e){var source=this;function n(e){t.writable&&!1===t.write(e)&&source.pause&&source.pause()}function o(){source.readable&&source.resume&&source.resume()}source.on("data",n),t.on("drain",o),t._isStdio||e&&!1===e.end||(source.on("end",l),source.on("close",c));var h=!1;function l(){h||(h=!0,t.end())}function c(){h||(h=!0,"function"==typeof t.destroy&&t.destroy())}function d(t){if(f(),0===r.listenerCount(this,"error"))throw t}function f(){source.removeListener("data",n),t.removeListener("drain",o),source.removeListener("end",l),source.removeListener("close",c),source.removeListener("error",d),t.removeListener("error",d),source.removeListener("end",f),source.removeListener("close",f),t.removeListener("close",f)}return source.on("error",d),t.on("error",d),source.on("end",f),source.on("close",f),t.on("close",f),t.emit("pipe",source),t}},function(t,e,n){(e=t.exports=n(184)).Stream=e,e.Readable=e,e.Writable=n(128),e.Duplex=n(42),e.Transform=n(187),e.PassThrough=n(319)},function(t,e,n){"use strict";(function(e){var r=n(94);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var o=r.callback;e.pendingcb--,o(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=k;var h,l=r.nextTick;k.WritableState=_;var c=Object.create(n(73));c.inherits=n(1);var d={deprecate:n(122)},f=n(185),m=n(4).Buffer,v=e.Uint8Array||function(){};var y,w=n(186);function M(){}function _(t,e){h=h||n(42),t=t||{};var c=e instanceof h;this.objectMode=!!t.objectMode,c&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var d=t.highWaterMark,f=t.writableHighWaterMark,m=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:c&&(f||0===f)?f:m,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var v=!1===t.decodeStrings;this.decodeStrings=!v,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,o=n.sync,h=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,o,h){--e.pendingcb,n?(r.nextTick(h,o),r.nextTick(A,t,e),t._writableState.errorEmitted=!0,t.emit("error",o)):(h(o),t._writableState.errorEmitted=!0,t.emit("error",o),A(t,e))}(t,n,o,e,h);else{var c=T(n);c||n.corked||n.bufferProcessing||!n.bufferedRequest||C(t,n),o?l(x,t,n,c,h):x(t,n,c,h)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(t){if(h=h||n(42),!(y.call(k,this)||this instanceof h))return new k(t);this._writableState=new _(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function S(t,e,n,r,o,h,l){e.writelen=r,e.writecb=l,e.writing=!0,e.sync=!0,n?t._writev(o,e.onwrite):t._write(o,h,e.onwrite),e.sync=!1}function x(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),A(t,e)}function C(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,h=new Array(r),l=e.corkedRequestsFree;l.entry=n;for(var c=0,d=!0;n;)h[c]=n,n.isBuf||(d=!1),n=n.next,c+=1;h.allBuffers=d,S(t,e,!0,e.length,h,"",l.finish),e.pendingcb++,e.lastBufferedRequest=null,l.next?(e.corkedRequestsFree=l.next,l.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,m=n.encoding,v=n.callback;if(S(t,e,!1,e.objectMode?1:f.length,f,m,v),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function T(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),A(t,e)}))}function A(t,e){var n=T(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(E,t,e)):(e.prefinished=!0,t.emit("prefinish")))}
vendor: 4,241 bytes, line 2
2(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}c.inherits(k,f),_.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(_.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(object){return!!y.call(this,object)||this===k&&(object&&object._writableState instanceof _)}})):y=function(object){return object instanceof this},k.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},k.prototype.write=function(t,e,n){var o,h=this._writableState,l=!1,c=!h.objectMode&&(o=t,m.isBuffer(o)||o instanceof v);return c&&!m.isBuffer(t)&&(t=function(t){return m.from(t)}(t)),"function"==typeof e&&(n=e,e=null),c?e="buffer":e||(e=h.defaultEncoding),"function"!=typeof n&&(n=M),h.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(c||function(t,e,n,o){var h=!0,l=!1;return null===n?l=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(t.emit("error",l),r.nextTick(o,l),h=!1),h}(this,h,t,n))&&(h.pendingcb++,l=function(t,e,n,r,o,h){if(!n){var l=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=m.from(e,n));return e}(e,r,o);r!==l&&(n=!0,o="buffer",r=l)}var c=e.objectMode?1:r.length;e.length+=c;var d=e.length<e.highWaterMark;d||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:h,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else S(t,e,!1,c,r,o,h);return d}(this,h,c,t,e,n)),l},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||C(this,t))},k.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},k.prototype._writev=null,k.prototype.end=function(t,e,n){var o=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(t,e,n){e.ending=!0,A(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,o,n)},Object.defineProperty(k.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),k.prototype.destroy=w.destroy,k.prototype._undestroy=w.undestroy,k.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(9))},function(t,e,n){"use strict";var r=n(19);function o(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=o,o.prototype._init=function(){},o.prototype.update=function(data){return 0===data.length?[]:"decrypt"===this.type?this._updateDecrypt(data):this._updateEncrypt(data)},o.prototype._buffer=function(data,t){for(var e=Math.min(this.buffer.length-this.bufferOff,data.length-t),i=0;i<e;i++)this.buffer[this.bufferOff+i]=data[t+i];return this.bufferOff+=e,e},o.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(data){var t=0,e=0,n=(this.bufferOff+data.length)/this.blockSize|0,r
vendor: 4,315 bytes, line 2
2=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(data,t),this.bufferOff===this.buffer.length&&(e+=this._flushBuffer(r,e)));for(var o=data.length-(data.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(data,t,r,e),e+=this.blockSize;for(;t<data.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=data[t];return r},o.prototype._updateDecrypt=function(data){for(var t=0,e=0,n=Math.ceil((this.bufferOff+data.length)/this.blockSize)-1,r=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(data,t),e+=this._flushBuffer(r,e);return t+=this._buffer(data,t),r},o.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},o.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},o.prototype._unpad=function(t){return t},o.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,n){var r=n(332),o=n(340),h=n(199);e.createCipher=e.Cipher=r.createCipher,e.createCipheriv=e.Cipheriv=r.createCipheriv,e.createDecipher=e.Decipher=o.createDecipher,e.createDecipheriv=e.Decipheriv=o.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(h)}},function(t,e,n){var r={ECB:n(333),CBC:n(334),CFB:n(335),CFB8:n(336),CFB1:n(337),OFB:n(338),CTR:n(197),GCM:n(197)},o=n(199);for(var h in o)o[h].module=r[o[h].mode];t.exports=o},function(t,e,n){var r;function o(t){this.rand=t}if(t.exports=function(t){return r||(r=new o(null)),r.generate(t)},t.exports.Rand=o,o.prototype.generate=function(t){return this._rand(t)},o.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var h=n(346);if("function"!=typeof h.randomBytes)throw new Error("Not supported");o.prototype._rand=function(t){return h.randomBytes(t)}}catch(t){}},function(t,e,n){"use strict";var r=n(56).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,n,h){if("function"==typeof n)return t(e,null,n);n||(n={}),h=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.apply(this,r)}}}(h||o);var l=n.readable||!1!==n.readable&&e.readable,c=n.writable||!1!==n.writable&&e.writable,d=function(){e.writable||m()},f=e._writableState&&e._writableState.finished,m=function(){c=!1,f=!0,l||h.call(e)},v=e._readableState&&e._readableState.endEmitted,y=function(){l=!1,v=!0,c||h.call(e)},w=function(t){h.call(e,t)},M=function(){var t;return l&&!v?(e._readableState&&e._readableState.ended||(t=new r),h.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new r),h.call(e,t)):void 0},_=function(){e.req.on("finish",m)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?c&&!e._writableState&&(e.on("end",d),e.on("close",d)):(e.on("complete",m),e.on("abort",M),e.req?_():e.on("request",_)),e.on("end",y),e.on("finish",m),!1!==n.error&&e.on("error",w),e.on("close",M),function(){e.removeListener("complete",m),e.removeListener("abort",M),e.removeListener("request",_),e.req&&e.req.removeListener("finish",m),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("end",y),e.removeListener("error",w),e.removeListener("close",M)}}},function(t,e,n){(function(e){var r=n(359),o=n(52);function h(t,n){var o=function(t){var e=l(t);return{blinder:e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(n),h=n.modulus.byteLength(),c=(r.mont(n.modulus),new r(t).mul(o.blinder).umod(n.modulus)),d=c.toRed(r.mont(n.prime
vendor: 5,429 bytes, line 2
21)),f=c.toRed(r.mont(n.prime2)),m=n.coefficient,p=n.prime1,q=n.prime2,v=d.redPow(n.exponent1),y=f.redPow(n.exponent2);v=v.fromRed(),y=y.fromRed();var w=v.isub(y).imul(m).umod(p);return w.imul(q),y.iadd(w),new e(y.imul(o.unblinder).umod(n.modulus).toArray(!1,h))}function l(t){for(var e=t.modulus.byteLength(),n=new r(o(e));n.cmp(t.modulus)>=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new r(o(e));return n}t.exports=h,h.getr=l}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var r=e;r.version=n(361).version,r.utils=n(20),r.rand=n(132),r.curve=n(212),r.curves=n(136),r.ec=n(373),r.eddsa=n(377)},function(t,e,n){"use strict";var pre,r=e,o=n(137),h=n(212),l=n(20).assert;function c(t){"short"===t.type?this.curve=new h.short(t):"edwards"===t.type?this.curve=new h.edwards(t):this.curve=new h.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var n=new c(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=c,d("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("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:o.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"]}),d("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:o.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"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),d("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{pre=n(372)}catch(t){pre=void 0}d("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
vendor: 4,933 bytes, line 2
2,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",pre]})},function(t,e,n){var r=e;r.utils=n(26),r.common=n(75),r.sha=n(366),r.ripemd=n(370),r.hmac=n(371),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var l;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{l=n(402).Buffer}catch(t){}function c(t,e,n){for(var r=0,o=Math.min(t.length,n),i=e;i<o;i++){var h=t.charCodeAt(i)-48;r<<=4,r|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return r}function d(t,e,n,r){for(var o=0,h=Math.min(t.length,n),i=e;i<h;i++){var l=t.charCodeAt(i)-48;o*=r,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(t,n):this._parseBase(t,base,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,h=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=t.length-6,n=0;i>=e;i-=6)r=c(t,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=c(t,e,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,h=o%n,l=Math.min(o,o-h)+e,c=0,i=e;i<l;i+=n)c=d(t,i,i+n,base),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==h){var f=1;for(c=d(t,i,t.length,base),i=0;i<h;i++)f*=base;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","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"],m=[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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 27,124 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,l=o/67108864|0;n.words[0]=h;for(var c=1;c<r;c++){for(var d=l>>>26,f=67108863&l,m=Math.min(c,e.length-1),v=Math.max(0,c-t.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|t.words[i])*(b=0|e.words[v])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,l=0|d}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<n|o)).toString(16);e=0!==(o=h>>>24-n&16777215)||i!==this.length-1?f[6-l.length]+l+e:l+e,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var c=m[base],d=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(d).toString(base);e=(y=y.idivn(d)).isZero()?w+e:f[c-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return r(void 0!==l),this.toArrayLike(l,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),h=n||Math.max(1,o);r(o<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===e,c=new t(h),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[i]=b;for(;i<h;i++)c[i]=0}else{for(i=0;i<h-o;i++)c[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[h-i-1]=b}return c},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,n){var r,o,h,a=t.words,b=e.words,l=n.words,c=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,k=M>>>13,S=0|a[3],x=8191&S,C=S>>>13,T=0|a[4],E=8191&T,A=T>>>13,I=0|a[5],D=8191&I,B=I>>>13,R=0|a[6],P=8191&R,F=R>>>13,O=0|a[7],N=8191&O,L=O>>>13,z=0|a[8],j=8191&z,U=z>>>13,$=0|a[9],V=8191&$,H=$>>>13,W=0|b[0],X=8191&W,Z=W>>>13,G=0|b[1],Y=8191&G,K=G>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,at=0|b[4],st=8191&at,ot=at>>>13,ut=0|b[5],ht=8191&ut,lt=ut>>>13,ct=0|b[6],ft=8191&ct,pt=ct>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,bt=0|b[8],yt=8191&bt,wt=bt>>>13,Mt=0|b[9],_t=8191&Mt,kt=Mt>>>13;n.negative=t.negative^e.negative,n.length=19;var St=(c+(r=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,Z))+Math.imul(m,X)|0))<<13)|0;c=((h=Math.imul(m,Z))+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(y,X),o=(o=Math.imul(y,Z))+Math.imul(w,X)|0,h=Math.imul(w,Z);var xt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(m,Y)|0))<<13)|0;c=((h=h+Math.imul(m,K)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(_,X),o=(o=Math.imul(_,Z))+Math.imul(k,X)|0,h=Math.imul(k,Z),r=r+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,K)|0;var Ct=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(m,Q)|0))<<13)|0;c=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(x,X),o=(o=Math.imul(x,Z))+Math.imul(C,X)|0,h=Math.imul(C,Z),r=r+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,K)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var Tt=(c+(r=r+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(m,it)|0))<<13)|0;c=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(E,X),o=(o=Math.imul(E,Z))+Math.imul(A,X)|0,h=Math.imul(A,Z),r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,Y)|0,h=h+Math.imul(C,K)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(k,Q)|0,h=h+Math.imul(k,tt)|0,r=r+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Et=(c+(r=r+Math.imul(f,st)|0)|0)+((8191&(o=(o=o+Math.imul(f,ot)|0)+Math.imul(m,st)|0))<<13)|0;c=((h=h+Math.imul(m,ot)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),o=(o=Math.imul(D,Z))+Math.imul(B,X)|0,h=Math.imul(B,Z),r=r+Math.imul(E,Y)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(A,Y)|0,h=h+Math.imul(A,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(C,Q)|0,h=h+Math.imul(C,tt)|0,r=r+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,r=r+Math.imul(y,st)|0,o=(o=o+Math.imul(y,ot)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,ot)|0;var At=(c+(r=r+Math.imul(f,ht)|0)|0)+((8191&(o=(o=o+Math.imul(f,lt)|0)+Math.imul(m,ht)|0))<<13)|0;c=((h=h+Math.imul(m,lt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(P,X),o=(o=Math.imul(P,Z))+Math.imul(F,X)|0,h=Math.imul(F,Z),r=r+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,K)|0)+Math.imul(B,Y)|0,h=h+Math.imul(B,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,h=h+Math.imul(A,tt)|0,r=r+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(C,it)|0,h=h+Math.imul(C,nt)|0,r=r+Math.imul(_,st)|0,o=(o=o+Math.imul(_,ot)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,ot)|0,r=r+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,lt)|0;var It=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,pt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,X),o=(o=Math.imul(N,Z))+Math.imul(L,X)|0,h=Math.imul(L,Z),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,K)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(E,it)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(A,it)|0,h=h+Math.imul(A,nt)|0,r=r+Math.imul(x,st)|0,o=(o=o+Math.imul(x,ot)|0)+Math.imul(C,st)|0,h=h+Math.imul(C,ot)|0,r=r+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,lt)|0,r=r+Math.imul(y,ft)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ft)|0,h=h+Math.imul(w,pt)|0;var Dt=(c+(r=r+Math.imul(f,gt)|0)|0)+((8191&(o=(o=o+Math.imul(f,vt)|0)+Math.imul(m,gt)|0))<<13)|0;c=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(j,X),o=(o=Math.imul(j,Z))+Math.imul(U,X)|0,h=Math.imul(U,Z),r=r+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(L,Y)|0,h=h+Math.imul(L,K)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(F,Q)|0,h=h+Math.imul(F,tt)|0,r=r+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(B,it)|0,h=h+Math.imul(B,nt)|0,r=r+Math.imul(E,st)|0,o=(o=o+Math.imul(E,ot)|0)+Math.imul(A,st)|0,h=h+Math.imul(A,ot)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(C,ht)|0,h=h+Math.imul(C,lt)|0,r=r+Math.imul(_,ft)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(k,ft)|0,h=h+Math.imul(k,pt)|0,r=r+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Bt=(c+(r=r+Math.imul(f,yt)|0)|0)+((8191&(o=(o=o+Math.imul(f,wt)|0)+Math.imul(m,yt)|0))<<13)|0;c=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(V,X),o=(o=Math.imul(V,Z))+Math.imul(H,X)|0,h=Math.imul(H,Z),r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,r=r+Math.imul(D,st)|0,o=(o=o+Math.imul(D,ot)|0)+Math.imul(B,st)|0,h=h+Math.imul(B,ot)|0,r=r+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(A,ht)|0,h=h+Math.imul(A,lt)|0,r=r+Math.imul(x,ft)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(C,ft)|0,h=h+Math.imul(C,pt)|0,r=r+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,r=r+Math.imul(y,yt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,yt)|0,h=h+Math.imul(w,wt)|0;var Rt=(c+(r=r+Math.imul(f,_t)|0)|0)+((8191&(o=(o=o+Math.imul(f,kt)|0)+Math.imul(m,_t)|0))<<13)|0;c=((h=h+Math.imul(m,kt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(V,Y),o=(o=Math.imul(V,K))+Math.imul(H,Y)|0,h=Math.imul(H,K),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,Q)|0,h=h+Math.imul(U,tt)|0,r=r+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,r=r+Math.imul(P,st)|0,o=(o=o+Math.imul(P,ot)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,ot)|0,r=r+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,lt)|0)+Math.imul(B,ht)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(A,ft)|0,h=h+Math.imul(A,pt)|0,r=r+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(C,gt)|0,h=h+Math.imul(C,vt)|0,r=r+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(k,yt)|0,h=h+Math.imul(k,wt)|0;var Pt=(c+(r=r+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,kt)|0)+Math.imul(w,_t)|0))<<13)|0;c=((h=h+Math.imul(w,kt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(V,Q),o=(o=Math.imul(V,tt))+Math.imul(H,Q)|0,h=Math.imul(H,tt),r=r+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,r=r+Math.imul(N,st)|0,o=(o=o+Math.imul(N,ot)|0)+Math.imul(L,st)|0,h=h+Math.imul(L,ot)|0,r=r+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,lt)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,lt)|0,r=r+Math.imul(D,ft)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(B,ft)|0,h=h+Math.imul(B,pt)|0,r=r+Math.imul(E,gt)|0,o=(o=o+Math.imul(E,vt)|0)+Math.imul(A,gt)|0,h=h+Math.imul(A,vt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(C,yt)|0,h=h+Math.imul(C,wt)|0;var Ft=(c+(r=r+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,kt)|0)+Math.imul(k,_t)|0))<<13)|0;c=((h=h+Math.imul(k,kt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(H,it)|0,h=Math.imul(H,nt),r=r+Math.imul(j,st)|0,o=(o=o+Math.imul(j,ot)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,ot)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(F,ft)|0,h=h+Math.imul(F,pt)|0,r=r+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(B,gt)|0,h=h+Math.imul(B,vt)|0,r=r+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(A,yt)|0,h=h+Math.imul(A,wt)|0;var Ot=(c+(r=r+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,kt)|0)+Math.imul(C,_t)|0))<<13)|0;c=((h=h+Math.imul(C,kt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(V,st),o=(o=Math.imul(V,ot))+Math.imul(H,st)|0,h=Math.imul(H,ot),r=r+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,lt)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,lt)|0,r=r+Math.imul(N,ft)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(L,ft)|0,h=h+Math.imul(L,pt)|0,r=r+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,r=r+Math.imul(D,yt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(B,yt)|0,h=h+Math.imul(B,wt)|0;var Nt=(c+(r=r+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,kt)|0)+Math.imul(A,_t)|0))<<13)|0;c=((h=h+Math.imul(A,kt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(V,ht),o=(o=Math.imul(V,lt))+Math.imul(H,ht)|0,h=Math.imul(H,lt),r=r+Math.imul(j,ft)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,ft)|0,h=h+Math.imul(U,pt)|0,r=r+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,r=r+Math.imul(P,yt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(F,yt)|0,h=h+Math.imul(F,wt)|0;var Lt=(c+(r=r+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,kt)|0)+Math.imul(B,_t)|0))<<13)|0;c=((h=h+Math.imul(B,kt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(V,ft),o=(o=Math.imul(V,pt))+Math.imul(H,ft)|0,h=Math.imul(H,pt),r=r+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(L,yt)|0,h=h+Math.imul(L,wt)|0;var zt=(c+(r=r+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,kt)|0)+Math.imul(F,_t)|0))<<13)|0;c=((h=h+Math.imul(F,kt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(H,gt)|0,h=Math.imul(H,vt),r=r+Math.imul(j,yt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,yt)|0,h=h+Math.imul(U,wt)|0;var jt=(c+(r=r+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,kt)|0)+Math.imul(L,_t)|0))<<13)|0;c=((h=h+Math.imul(L,kt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(V,yt),o=(o=Math.imul(V,wt))+Math.imul(H,yt)|0,h=Math.imul(H,wt);var Ut=(c+(r=r+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,kt)|0)+Math.imul(U,_t)|0))<<13)|0;c=((h=h+Math.imul(U,kt)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var $t=(c+(r=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,kt))+Math.imul(H,_t)|0))<<13)|0;return c=((h=Math.imul(H,kt))+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,l[0]=St,l[1]=xt,l[2]=Ct,l[3]=Tt,l[4]=Et,l[5]=At,l[6]=It,l[7]=Dt,l[8]=Bt,l[9]=Rt,l[10]=Pt,l[11]=Ft,l[12]=Ot,l[13]=Nt,l[14]=Lt,l[15]=zt,l[16]=jt,l[17]=Ut,l[18]=$t,0!==c&&(l[19]=c,n.length++),n};function M(t,e,n){return(new _).mulp(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):n<63?y(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,h=0;h<n.length-1;h++){var l=o;o=0;for(var c=67108863&r,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var i=h-f,m=(0|t.words[i])*(0|e.words[f]),v=67108863&m;c=67108863&(v=v+c|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[h]=c,r=l,l=o}return 0!==r?n.words[h]=r:n.length--,n.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},_.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},_.prototype.permute=function(t,e,n,r,o,h){for(var i=0;i<h;i++)r[i]=e[t[i]],o[i]=n[t[i]]},_.prototype.transform=function(t,e,n,r,o,h){this.permute(h,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,c=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=c,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],M=n[p+v+s],_=r[p+v+s],k=f*M-m*_;_=f*_+m*M,M=k,n[p+v]=y+M,r[p+v]=w+_,n[p+v+s]=y-M,r[p+v+s]=w-_,v!==l&&(k=c*f-d*m,m=c*m+d*f,f=k)}},_.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},_.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},_.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},_.prototype.convert13b=function(t,e,n,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],n[2*i]=8191&h,h>>>=13,n[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===h),r(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),h=this.stub(r),l=new Array(r),c=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,f,r),this.transform(l,h,c,d,r,o),this.transform(f,h,m,v,r,o);for(var i=0;i<r;i++){var w=c[i]*m[i]-d[i]*v[i];d[i]=c[i]*v[i]+d[i]*m[i],c[i]=w}return this.conjugate(c,d,r),this.transform(c,d,y,h,r,o),this.conjugate(y,h,r),this.normalize13b(y,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=(t.words[r]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n},h.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&n,l=(0|this.words[i])-h<<e;this.words[i]=l|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var c=0;for(i=this.length-1;i>=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-h|d>>>h,c=d&mask}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,n){var i,o,h=t.length+n;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var c=(0|t.words[i])*e;l=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var c=o-1;c>=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q.strip(),a.strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),h=n.cmp(r);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){r(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)}
vendor: 7,214 bytes, line 2
2,h.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new h(1),o=new h(0),l=new h(0),c=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var d=e.clone(),f=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(l.isOdd()||c.isOdd())&&(l.iadd(d),c.isub(f)),l.iushrn(1),c.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(c)):(e.isub(t),l.isub(n),c.isub(o))}return{a:l,b:c,gcd:e.iushln(g)}},h.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),n=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e))}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new A(t)},h.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};function S(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}S.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},S.prototype.split=function(input,t){input.iushrn(this.n,0,t)},S.prototype.imulK=function(t){return t.imul(this.k)},o(x,S),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 5,609 bytes, line 2
2put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|e>>>22,e=n}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(C,S),o(T,S),o(E,S),E.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new T;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return k[t]=e,e},A.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},A.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},A.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},A.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},A.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},A.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},A.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},A.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},A.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},A.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},A.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},A.prototype.isqr=function(a){return this.imul(a,a.clone())},A.prototype.sqr=function(a){return this.mul(a,a)},A.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new h(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new h(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new h(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},A.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],d=l-1;d>=0;d--){var f=c>>d&1;n!==e[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0}l=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,A),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(35)(t))},,function(t,e){var s=1e3,n=6e4,r=60*n,o=24*r;function h(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,e){e=e||{};var l=typeof t;if("string"===l&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var h=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"weeks":case"week":case"w":return 6048e5*h;case"days":case"day":case"d":return h*o;case"hours":case"hour":case"hrs":case"hr":case"h":return h*r;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}(t);if("number"===l&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=o)return h(t,e,o,"day");if(e>=r)return h(t,e,r,"hour");if(e>=n)return h(t,e,n,"minute");
2if(e>=s)return h(t,e,s,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=o)return Math.round(t/o)+"d";if(e>=r)return Math.round(t/r)+"h";if(e>=n)return Math.round(t/n)+"m";if(e>=s)return Math.round(t/s)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.video=1]="video",t[t.audio=2]="audio",t[t.complex=3]="complex",t[t.logo=4]="logo",t[t.subtitle=17]="subtitle",t[t.button=18]="button",t[t.control=32]="control"}(e.TrackType||(e.TrackType={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30);class o extends r.CommonTagMapper{constructor(t,e){const n={};for(const t of Object.keys(e))n[t.toUpperCase()]=e[t];super(t,n)}getCommonName(t){return this.tagMap[t.toUpperCase()]}}e.CaseInsensitiveTagMap=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(126);class o extends r.Readable{constructor(t){super(),this.buf=t}_read(){this.push(this.buf),this.push(null)}}e.ID3Stream=o},,function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,h=r(),l=h.default;void 0===l&&(l=[]);var c=h.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||c)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||c):l.length>0?l.map((function(){return t(!1)})):t(!1))}};t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){e.read=function(t,e,n,r,o){var h,l,c=8*o-r-1,d=(1<<c)-1,f=d>>1,m=-7,i=n?o-1:0,v=n?-1:1,s=t[e+i];for(i+=v,h=s&(1<<-m)-1,s>>=-m,m+=c;m>0;h=256*h+t[e+i],i+=v,m-=8);for(l=h&(1<<-m)-1,h>>=-m,m+=r;m>0;l=256*l+t[e+i],i+=v,m-=8);if(0===h)h=1-f;else{if(h===d)return l?NaN:1/0*(s?-1:1);l+=Math.pow(2,r),h-=f}return(s?-1:1)*l*Math.pow(2,h-r)},e.write=function(t,e,n,r,o,h){var l,c,d,f=8*h-o-1,m=(1<<f)-1,v=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:h-1,y=r?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,l=m):(l=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-l))<1&&(l--,d*=2),(e+=l+v>=1?rt/d:rt*Math.pow(2,1-v))*d>=2&&(l++,d/=2),l+v>=m?(c=0,l=m):l+v>=1?(c=(e*d-1)*Math.pow(2,o),l+=v):(c=e*Math.pow(2,v-1)*Math.pow(2,o),l=0));o>=8;t[n+i]=255&c,i+=y,c/=256,o-=8);for(l=l<<o|c,f+=o;f>0;t[n+i]=255&l,i+=y,l/=256,f-=8);t[n+i-y]|=128*s}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var r=n(302).Buffer,o=n(303).Transform;function h(t){o.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(1)(h,o),h.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},h.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},h.prototype.update=function(data,t){if(function(t,e){if(!r.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(data,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(data)||(data=r.from(data,t));for(var e=this._block,n=0;this._blockOffset+data.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)e[i++]=data[n++];this._update(),this._blockOffset=0}for(;n<data.length;)e[this._blockOffset++]=data[n++];for(var o=0,h=8*data.length;h>0;++o)this._length[o]+=h,(h=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*h);return this},h.prototype._update=function(){throw new Error("_update is not implemented")},h.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},h.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=h},function(t,e,n){"use strict";(function(e,r){var o;t.exports=B,B.ReadableState=D;n(40).EventEmitter;var h=function(t,e){return t.listeners(e).length},l=n(177),c=n(3).Buffer,d=e.Uint8Array||function(){};var f,m=n(304);f=m&&m.debuglog?m.debuglog("stream"):function(){};var v,y,w,M=n(305),_=n(178),k=n(179).getHighWaterMark,S=n(53).codes,x=S.ERR_INVALID_ARG_TYPE,C=S.ERR_STREAM_PUSH_AFTER_EOF,T=S.ERR_METHOD_NOT_IMPLEMENT
vendor: 20,508 bytes, line 2
2ED,E=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(1)(B,l);var A=_.errorOrDestroy,I=["error","close","destroy","pause","resume"];function D(t,e,r){o=o||n(54),t=t||{},"boolean"!=typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=k(this,t,"readableHighWaterMark",r),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!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(v||(v=n(41).StringDecoder),this.decoder=new v(t.encoding),this.encoding=t.encoding)}function B(t){if(o=o||n(54),!(this instanceof B))return new B(t);var e=this instanceof o;this._readableState=new D(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function R(t,e,n,r,o){f("readableAddChunk",e);var h,l=t._readableState;if(null===e)l.reading=!1,function(t,e){if(f("onEofChunk"),e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,N(t)))}(t,l);else if(o||(h=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof d||"string"==typeof e||void 0===e||t.objectMode||(n=new x("chunk",["string","Buffer","Uint8Array"],e));var r;return n}(l,e)),h)A(t,h);else if(l.objectMode||e&&e.length>0)if("string"==typeof e||l.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r)l.endEmitted?A(t,new E):P(t,l,e,!0);else if(l.ended)A(t,new C);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(e=l.decoder.write(e),l.objectMode||0!==e.length?P(t,l,e,!1):L(t,l)):P(t,l,e,!1)}else r||(l.reading=!1,L(t,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function P(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&O(t)),L(t,e)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),B.prototype.destroy=_.destroy,B.prototype._undestroy=_.undestroy,B.prototype._destroy=function(t,e){e(t)},B.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=c.from(t,e),e=""),n=!0),R(this,t,e,!1,n)},B.prototype.unshift=function(t){return R(this,t,null,!0,!1)},B.prototype.isPaused=function(){return!1===this._readableState.flowing},B.prototype.setEncoding=function(t){v||(v=n(41).StringDecoder);var e=new v(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,content="";null!==p;)content+=e.write(p.data),p=p.next;return this._readableState.buffer.clear(),""!==content&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};function F(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(N,t))}function N(t){var e=t._readableState;f("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,V(t)}function L(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(f("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function j(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function U(t){f("readable nexttick read 0"),t.read(0)}function $(t,e){f("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),V(t),e.flowing&&!e.reading&&t.read(0)}function V(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function H(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function W(t){var e=t._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(f("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function Z(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}B.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?W(this):O(this),null;if(0===(t=F(t,e))&&e.ended)return 0===e.length&&W(this),null;var r,o=e.needReadable;return f("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",o=!0),e.ended||e.reading?f("reading or ended",o=!1):o&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=F(n,e))),null===(r=t>0?H(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&W(this)),null!==r&&this.emit("data",r),r},B.prototype._read=function(t){A(this,new T("_read()"))},B.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,e);var l=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?d:k;function c(e,r){f("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),t.removeListener("close",M),t.removeListener("finish",_),t.removeListener("drain",m),t.removeListener("error",w),t.removeListener("unpipe",c),n.removeListener("end",d),n.removeListener("end",k),n.removeListener("data",y),v=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||m())}function d(){f("onend"),t.end()}o.endEmitted?r.nextTick(l):n.once("end",l),t.on("unpipe",c);var m=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&h(t,"data")&&(e.flowing=!0,V(t))}}(n);t.on("drain",m);var v=!1;function y(e){f("ondata");var r=t.write(e);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==Z(o.pipes,t))&&!v&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function w(e){f("onerror",e),k(),t.removeListener("error",w),0===h(t,"error")&&A(t,e)}function M(){t.removeListener("finish",_),k()}function _(){f("onfinish"),t.removeListener("close",M),k()}function k(){f("unpipe"),n.unpipe(t)}return n.on("data",y),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",w),t.once("close",M),t.once("finish",_),t.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),t},B.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var h=Z(e.pipes,t);return-1===h||(e.pipes.splice(h,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},B.prototype.on=function(t,e){var n=l.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?O(this):o.reading||r.nextTick(U,this))),n},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(t,e){var n=l.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(j,this),n},B.prototype.removeAllListeners=function(t){var e=l.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(j,this),e},B.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick($,t,e))}(this,t)),t.paused=!1,this},B.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},B.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(e.push(o)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<I.length;o++)t.on(I[o],this.emit.bind(this,I[o]));return this._read=function(e){f("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(B.prototype[Symbol.asyncIterator]=function(){return void 0===y&&(y=n(308)),y(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),B._fromList=H,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(B.from=function(t,e){return void 0===w&&(w=n(309)),w(B,t,e)})}).call(this,n(9),n(7))},function(t,e,n){t.exports=n(40).EventEmitter},function(t,e,n){"use strict";(function(e){function n(t,e){o(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,h){var l=this,c=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return c||d?(h?h(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!h&&t?l._writableState?l._writableState.errorEmitted?e.nextTick(r,l):(l._writableState.errorEmitted=!0,e.nextTick(n,l,t)):e.nextTick(n,l,t):h?(e.nextTick(r,l),h(t)):e.nextTick(r,l)})),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(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,n(7))},function(t,e,n){"use strict";var r=n(53).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,o){var h=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,o,n);if(null!=h){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new r(o?n:"highWaterMark",h);return Math.floor(h)}return t.objectMode?16:16384}}},function(t,e,n){"use strict";(function(e,r){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var o=r.callback;e.pendingcb--,o(n),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var h;t.exports=B,B.WritableState=D;var l={deprecate:n(122)},c=n(177),d=n(3).Buffer,f=e.Uint8Array||function(){};var m,v=n(178),y=n(179).getHighWaterMark,w=n(53).codes,M=w.ERR_INVALID_ARG_TYPE,_=w.ERR_METHOD_NOT_IMPLEMENTED,k=w.ERR_MULTIPLE_CALLBACK,S=w.ERR_STREAM_CANNOT_PIPE,x=w.ERR_STREAM_DESTROYED,C=w.ERR_STREAM_NULL_VALUES,T=w.ERR_STREAM_WRITE_AFTER_END,E=w.ERR_UNKNOWN_ENCODING,A=v.errorOrDestroy;function I(){}function D(t,e,l){h=h||n(54),t=t||{},"boolean"!=typeof l&&(l=e instanceof h),this.objectMode=!!t.objectMode,l&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=y(this,t,"writableHighWaterMark",l),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,o=n.sync,h=n.writecb;if("function"!=typeof h)throw new k;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,o,h){--e.pendingcb,n?(r.nextTick(h,o),r.nextTick(L,t,e),t._writableState.errorEmitted=!0,A(t,o)):(h(o),t._writableState.errorEmitted=!0,A(t,o),L(t,e))}(t,n,o,e,h);else{var l=O(n)||t.destroyed;l||n.corked||n.bufferProcessing||!n.bufferedRequest||F(t,n),o?r.nextTick(P,t,n,l,h):P(t,n,l,h)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function B(t){var e=this instanceof(h=h||n(54));if(!e&&!m.call(B,this))return new B(t);this._writableState=new D(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function R(t,e,n,r,o,h,l){e.writelen=r,e.writecb=l,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):n?t._writev(o,e.onwrite):t._write(o,h,e.onwrite),e.sync=!1}function P(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),L(t,e)}function F(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,h=new Array(r),l=e.corkedRequestsFree;l.entry=n;for(var c=0,d=!0;n;)h[c]=n,n.isBuf||(d=!1),n=n.next,c+=1;h.allBuffers=d,R(t,e,!0,e.length,h,"",l.finish),e.pendingcb++,e.lastBufferedRequest=null,l.next?(e.corkedRequestsFree=l.next,l.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,m=n.encoding,v=n.callback;if(R(t,e,!1,e.objectMode?1:f.length,f,m,v),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function O(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function N(t,e){t._final((function(n){e.pendingcb--,n&&A(t,n),e.prefinished=!0,t.emit("prefinish"),L(t,e)}))}function L(t,e){var n=O(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(N,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return n}n(1)(B,c),D.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(D.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(object){return!!m.call(this,object)||this===B&&(object&&object._writableState instanceof D)}})):m=function(object){return object instanceof this},B.prototype.pipe=function(){A(this,new S)},B.prototype.write=function(t,e,n){var o,h=this._writableState,l=!1,c=!h.objectMode&&(o=t,d.isBuffer(o)||o instanceof f);return c&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),c?e="buffer":e||(e=h.defaultEncoding),"function"!=typeof n&&(n=I),h.ending?function(t,e){var n=new T;A(t,n),r.nextTick(e,n)}(this,n):(c||function(t,e,n,o){var h;return null===n?h=new C:"string"==typeof n||e.objectMode||(h=new M("chunk",["string","Buffer"],n)),!h||(A(t,h),r.nextTick(o,h),!1)}(this,h,t,n))&&(h.pendingcb++,l=function(t,e,n,r,o,h){if(!n){var l=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,r,o);r!==l&&(n=!0,o="buffer",r=l)}var c=e.objectMode?1:r.length;e.length+=c;var f=e.length<e.highWaterMark;f||(e.needDrain=!0);if(e.writing||e.corked){var m=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:h,next:null},m?m.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else R(t,e,!1,c,r,o,h);return f}(this,h,c,t,e,n)),l},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||F(this,t))},B.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new E(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),B.prototype._write=function(t,e,n){n(new _("_write()"))},B.prototype._writev=null,B.prototype.end=function(t,e,n){var o=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,n){e.ending=!0,L(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),B.prototype.destroy=v.destroy,B.prototype._undestroy=v.undestroy,B.prototype._destroy=function(t,e){e(t)}}).call(this,n(9),n(7))},function(t,e,n){"use strict";
vendor: 5,218 bytes, line 2
2t.exports=m;var r=n(53).codes,o=r.ERR_METHOD_NOT_IMPLEMENTED,h=r.ERR_MULTIPLE_CALLBACK,l=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=r.ERR_TRANSFORM_WITH_LENGTH_0,d=n(54);function f(t,data){var e=this._transformState;e.transforming=!1;var n=e.writecb;if(null===n)return this.emit("error",new h);e.writechunk=null,e.writecb=null,null!=data&&this.push(data),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function m(t){if(!(this instanceof m))return new m(t);d.call(this,t),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",v)}function v(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?y(this,null,null):this._flush((function(e,data){y(t,e,data)}))}function y(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new c;if(t._transformState.transforming)throw new l;return t.push(null)}n(1)(m,d),m.prototype.push=function(t,e){return this._transformState.needTransform=!1,d.prototype.push.call(this,t,e)},m.prototype._transform=function(t,e,n){n(new o("_transform()"))},m.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},m.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},m.prototype._destroy=function(t,e){d.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,n){var r=n(1),o=n(55),h=n(4).Buffer,l=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=new Array(64);function d(){this.init(),this._w=c,o.call(this,64,56)}function f(t,e,n){return n^t&(e^n)}function m(t,e,n){return t&e|n&(t|e)}function v(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function y(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function w(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(d,o),d.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},d.prototype._update=function(t){for(var e,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,h=0|this._e,c=0|this._f,g=0|this._g,d=0|this._h,i=0;i<16;++i)n[i]=t.readInt32BE(4*i);for(;i<64;++i)n[i]=0|(((e=n[i-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[i-7]+w(n[i-15])+n[i-16];for(var M=0;M<64;++M){var _=d+y(h)+f(h,c,g)+l[M]+n[M]|0,k=v(a)+m(a,b,r)|0;d=g,g=c,c=h,h=o+_|0,o=r,r=b,b=a,a=_+k|0}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0,this._f=c+this._f|0,this._g=g+this._g|0,this._h=d+this._h|0},d.prototype._hash=function(){var t=h.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=d},function(t,e,n){var r=n(1),o=n(55),h=n(4).Buffer,l=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
vendor: 8,227 bytes, line 2
21322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);function d(){this.init(),this._w=c,o.call(this,128,112)}function f(t,e,n){return n^t&(e^n)}function m(t,e,n){return t&e|n&(t|e)}function v(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function y(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function w(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function M(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function _(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function k(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function S(a,b){return a>>>0<b>>>0?1:0}r(d,o),d.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},d.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,h=0|this._dh,c=0|this._eh,d=0|this._fh,x=0|this._gh,C=0|this._hh,T=0|this._al,E=0|this._bl,A=0|this._cl,dl=0|this._dl,I=0|this._el,D=0|this._fl,B=0|this._gl,R=0|this._hl,i=0;i<32;i+=2)e[i]=t.readInt32BE(4*i),e[i+1]=t.readInt32BE(4*i+4);for(;i<160;i+=2){var P=e[i-30],F=e[i-30+1],O=w(P,F),N=M(F,P),L=_(P=e[i-4],F=e[i-4+1]),z=k(F,P),j=e[i-14],U=e[i-14+1],$=e[i-32],V=e[i-32+1],H=N+U|0,W=O+j+S(H,N)|0;W=(W=W+L+S(H=H+z|0,z)|0)+$+S(H=H+V|0,V)|0,e[i]=W,e[i+1]=H}for(var X=0;X<160;X+=2){W=e[X],H=e[X+1];var Z=m(n,r,o),G=m(T,E,A),Y=v(n,T),K=v(T,n),J=y(c,I),Q=y(I,c),tt=l[X],et=l[X+1],it=f(c,d,x),nt=f(I,D,B),at=R+Q|0,st=C+J+S(at,R)|0;st=(st=(st=st+it+S(at=at+nt|0,nt)|0)+tt+S(at=at+et|0,et)|0)+W+S(at=at+H|0,H)|0;var ot=K+G|0,ut=Y+Z+S(ot,K)|0;C=x,R=B,x=d,B=D,d=c,D=I,c=h+st+S(I=dl+at|0,dl)|0,h=o,dl=A,o=r,A=E,r=n,E=T,n=st+ut+S(T=at+ot|0,at)|0}this._al=this._al+T|0,this._bl=this._bl+E|0,this._cl=this._cl+A|0,this._dl=this._dl+dl|0,this._el=this._el+I|0,this._fl=this._fl+D|0,this._gl=this._gl+B|0,this._hl=this._hl+R|0,this._ah=this._ah+n+S(this._al,T)|0,this._bh=this._bh+r+S(this._bl,E)|0,this._ch=this._ch+o+S(this._cl,A)|0,this._dh=this._dh+h+S(this._dl,dl)|0,this._eh=this._eh+c+S(this._el,I)|0,this._fh=this._fh+d+S(this._fl,D)|0,this._gh=this._gh+x+S(this._gl,B)|0,this._hh=this._hh+C+S(this._hl,R)|0},d.prototype._hash=function(){var t=h.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=d},function(t,e,n){"use strict";(function(e,r){var o=n(94);t.exports=C;var h,l=n(174);C.ReadableState=x;n(40).EventEmitter;var c=function(t,e){return t.listeners(e).length},d=n(185),f=n(4).Buffer,m=e.Uint8Array||function(){};var v=Object.create(n(73));v.inherits=n(1);var y=n(316),w=void 0;w=y&&y.debuglog?y.debuglog("stream"):function(){};var M,_=n(317),k=n(186);v.inherits(C,d);var S=["error","close","destroy","pause","resume"];function x(t,e){t=t||{};var r=e instanceof(h=h||n(42));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,l=t.readableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _,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.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(M||(M=n(41).StringDecoder),this.decoder=new M(t.encoding),this.encoding=t.encoding)}function C(t){if(h=h||n(42),!(this instanceof C))return new C(t);this._readableState=new x(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),d.call(this)}function T(t,e,n,r,o){var h,l=t._readableState;null===e?(l.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,I(t)}(t,l)):(o||(h=function(t,e){var n;r=e,f.isBuffer(r)||r instanceof m||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(l,e)),h?t.emit("error",h):l.objectMode||e&&e.length>0?("string"==typeof e||l.objectMode||Object.getPrototypeOf(e)===f.prototype||(e=function(t){return f.from(t)}(e)),r?l.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):E(t,l,e,!0):l.ended?t.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!n?(e=l.decoder.write(e),l.objectMode||0!==e.length?E(t,l,e,!1):B(t,l)):E(t,l,e,!1))):r||(l.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(l)}function E(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&I(t)),B(t,e)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),C.prototype.destroy=k.destroy,C.prototype._undestroy=k.undestroy,C.prototype._destroy=function(t,e){this.push(null),e(t)},C.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=f.from(t,e),e=""),n=!0),T(this,t,e,!1,n)},C.prototype.unshift=function(t){return T(this,t,null,!0,!1)},C.prototype.isPaused=function(){return!1===this._readableState.flowing},C.prototype.setEncoding=function(t){return M||(M=n(41).StringDecoder),this._readableState.decoder=new M(t),this._readableState.encoding=t,this};function A(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function I(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(D,t):D(t))}function D(t){w("emit readable"),t.emit("readable"),O(t)}function B(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(R,t,e))}function R(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(w("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function P(t){w("readable nexttick read 0"),t.read(0)}function F(t,e){e.reading||(w("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),O(t),e.flowing&&!e.reading&&t.read(0)}function O(t){var e=t._readableState;for(w("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var p=e.head,n=1,r=p.data;t-=r.length;for(;p=p.next;){var o=p.data,h=t>o.length?o.length:t;if(h===o.length?r+=o:r+=o.slice(0,t),0===(t-=h)){h===o.length?(++n,p.next?e.head=p.next:e.head=e.tail
vendor: 4,648 bytes, line 2
2=null):(e.head=p,p.data=o.slice(h));break}++n}return e.length-=n,r}(t,e):function(t,e){var n=f.allocUnsafe(t),p=e.head,r=1;p.data.copy(n),t-=p.data.length;for(;p=p.next;){var o=p.data,h=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,h),0===(t-=h)){h===o.length?(++r,p.next?e.head=p.next:e.head=e.tail=null):(e.head=p,p.data=o.slice(h));break}++r}return e.length-=r,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function L(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(z,e,t))}function z(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function j(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}C.prototype.read=function(t){w("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?L(this):I(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&L(this),null;var r,o=e.needReadable;return w("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&w("length less than watermark",o=!0),e.ended||e.reading?w("reading or ended",o=!1):o&&(w("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=A(n,e))),null===(r=t>0?N(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&L(this)),null!==r&&this.emit("data",r),r},C.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(t,e){var n=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=t;break;case 1:h.pipes=[h.pipes,t];break;default:h.pipes.push(t)}h.pipesCount+=1,w("pipe count=%d opts=%j",h.pipesCount,e);var d=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?m:C;function f(e,r){w("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,w("cleanup"),t.removeListener("close",S),t.removeListener("finish",x),t.removeListener("drain",v),t.removeListener("error",k),t.removeListener("unpipe",f),n.removeListener("end",m),n.removeListener("end",C),n.removeListener("data",_),y=!0,!h.awaitDrain||t._writableState&&!t._writableState.needDrain||v())}function m(){w("onend"),t.end()}h.endEmitted?o.nextTick(d):n.once("end",d),t.on("unpipe",f);var v=function(t){return function(){var e=t._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(t,"data")&&(e.flowing=!0,O(t))}}(n);t.on("drain",v);var y=!1;var M=!1;function _(e){w("ondata"),M=!1,!1!==t.write(e)||M||((1===h.pipesCount&&h.pipes===t||h.pipesCount>1&&-1!==j(h.pipes,t))&&!y&&(w("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,M=!0),n.pause())}function k(e){w("onerror",e),C(),t.removeListener("error",k),0===c(t,"error")&&t.emit("error",e)}function S(){t.removeListener("finish",x),C()}function x(){w("onfinish"),t.removeListener("close",S),C()}function C(){w("unpipe"),n.unpipe(t)}return n.on("data",_),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?l(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",k),t.once("close",S),t.once("finish",x),t.emit("pipe",n),h.flowing||(w("pipe resume"),n.resume()),t},C.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var h=j(e.pipes,t);return-1===h||(e.pipes.splice(h,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},C.prototype.on=function(t,e){var n=d.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&I(this):o.nextTick(P,this))}return n},C.prototype.addListener=C.prototype.on,C.prototype.resume=function(){var t=this._readableState;return t.flowing||(w("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(F,t,e))}(this,t)),this},C.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit
vendor: 7,286 bytes, line 2
2("pause")),this},C.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(w("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(w("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(e.push(o)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<S.length;o++)t.on(S[o],this.emit.bind(this,S[o]));return this._read=function(e){w("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=N}).call(this,n(9),n(7))},function(t,e,n){t.exports=n(40).EventEmitter},function(t,e,n){"use strict";var r=n(94);function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,h=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return h||l?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),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.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";t.exports=l;var r=n(42),o=Object.create(n(73));function h(t,data){var e=this._transformState;e.transforming=!1;var n=e.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));e.writechunk=null,e.writecb=null,null!=data&&this.push(data),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);r.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"==typeof this._flush?this._flush((function(e,data){d(t,e,data)})):d(this,null,null)}function d(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}o.inherits=n(1),o.inherits(l,r),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},l.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},l.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){"use strict";var r=n(1),o=n(324),h=n(34),l=n(4).Buffer,c=n(189),d=n(124),f=n(125),m=l.alloc(128);function v(t,e){h.call(this,"digest"),"string"==typeof e&&(e=l.from(e));var n="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>n)?e=("rmd160"===t?new d:f(t)).update(e).digest():e.length<n&&(e=l.concat([e,m],n));for(var r=this._ipad=l.allocUnsafe(n),o=this._opad=l.allocUnsafe(n),i=0;i<n;i++)r[i]=54^e[i],o[i]=92^e[i];this._hash="rmd160"===t?new d:f(t),this._hash.update(r)}r(v,h),v.prototype._update=function(data){this._hash.update(data)},v.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new d:f(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new v("rmd160",e):"md5"===t?new o(c,e):new v(t,e)}},function(t,e,n){var r=n(121);t.exports=function(t){return(new r).update(t).digest()}},function(t){t.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"}}')},function(t,e,n){e.pbkdf2=n(326),e.pbkdf2Sync=n(194)},function(t,e,n){(function(e){var n=Math.pow(2,30)-1;function r(t,n){if("string"!=typeof t&&!e.isBuffer(t))throw new TypeError(n+" must be a buffer or string")}t.exports=function(t,e,o,h){if(r(t,"Password"),r(e,"Salt"),"number"!=typeof o)throw new TypeError("Iterations not a number");if(o<0)throw new TypeError("Bad iterations");
vendor: 12,692 bytes, line 2
2if("number"!=typeof h)throw new TypeError("Key length not a number");if(h<0||h>n||h!=h)throw new TypeError("Bad key length")}}).call(this,n(3).Buffer)},function(t,e,n){var r;r="utf-8",t.exports=r},function(t,e,n){var r=n(189),o=n(124),h=n(125),l=n(192),c=n(193),d=n(4).Buffer,f=d.alloc(128),m={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function v(t,e,n){var l=function(t){function e(data){return h(t).update(data).digest()}return"rmd160"===t||"ripemd160"===t?function(data){return(new o).update(data).digest()}:"md5"===t?r:e}(t),c="sha512"===t||"sha384"===t?128:64;e.length>c?e=l(e):e.length<c&&(e=d.concat([e,f],c));for(var v=d.allocUnsafe(c+m[t]),y=d.allocUnsafe(c+m[t]),i=0;i<c;i++)v[i]=54^e[i],y[i]=92^e[i];var w=d.allocUnsafe(c+n+4);v.copy(w,0,0,c),this.ipad1=w,this.ipad2=v,this.opad=y,this.alg=t,this.blocksize=c,this.hash=l,this.size=m[t]}v.prototype.run=function(data,t){return data.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,n,r,o){l(t,e,n,r),d.isBuffer(t)||(t=d.from(t,c)),d.isBuffer(e)||(e=d.from(e,c));var h=new v(o=o||"sha1",t,e.length),f=d.allocUnsafe(r),y=d.allocUnsafe(e.length+4);e.copy(y,0,0,e.length);for(var w=0,M=m[o],_=Math.ceil(r/M),i=1;i<=_;i++){y.writeUInt32BE(i,e.length);for(var k=h.run(y,h.ipad1),S=k,x=1;x<n;x++){S=h.run(S,h.ipad2);for(var C=0;C<M;C++)k[C]^=S[C]}k.copy(f,w),w+=M}return f}},function(t,e,n){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var o=0,h=0,i=6;i>=0;i-=2){for(var l=0;l<=24;l+=8)o<<=1,o|=e>>>l+i&1;for(l=0;l<=24;l+=8)o<<=1,o|=t>>>l+i&1}for(i=6;i>=0;i-=2){for(l=1;l<=25;l+=8)h<<=1,h|=e>>>l+i&1;for(l=1;l<=25;l+=8)h<<=1,h|=t>>>l+i&1}n[r+0]=o>>>0,n[r+1]=h>>>0},e.rip=function(t,e,n,r){for(var o=0,h=0,i=0;i<4;i++)for(var l=24;l>=0;l-=8)o<<=1,o|=e>>>l+i&1,o<<=1,o|=t>>>l+i&1;for(i=4;i<8;i++)for(l=24;l>=0;l-=8)h<<=1,h|=e>>>l+i&1,h<<=1,h|=t>>>l+i&1;n[r+0]=o>>>0,n[r+1]=h>>>0},e.pc1=function(t,e,n,r){for(var o=0,h=0,i=7;i>=5;i--){for(var l=0;l<=24;l+=8)o<<=1,o|=e>>l+i&1;for(l=0;l<=24;l+=8)o<<=1,o|=t>>l+i&1}for(l=0;l<=24;l+=8)o<<=1,o|=e>>l+i&1;for(i=1;i<=3;i++){for(l=0;l<=24;l+=8)h<<=1,h|=e>>l+i&1;for(l=0;l<=24;l+=8)h<<=1,h|=t>>l+i&1}for(l=0;l<=24;l+=8)h<<=1,h|=t>>l+i&1;n[r+0]=o>>>0,n[r+1]=h>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[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];e.pc2=function(t,e,n,o){for(var h=0,l=0,c=r.length>>>1,i=0;i<c;i++)h<<=1,h|=t>>>r[i]&1;for(i=c;i<r.length;i++)l<<=1,l|=e>>>r[i]&1;n[o+0]=h>>>0,n[o+1]=l>>>0},e.expand=function(t,e,n){var r=0,o=0;r=(1&t)<<5|t>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=t>>>i&63;for(i=11;i>=3;i-=4)o|=t>>>i&63,o<<=6;o|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=o>>>0};var o=[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];e.substitute=function(t,e){for(var n=0,i=0;i<4;i++){n<<=4,n|=o[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=o[256+64*i+(e>>>18-6*i&63)]}return n>>>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];e.permute=function(t){for(var e=0,i=0;i<h.length;i++)e<<=1,e|=t>>>h[i]&1;return e>>>0},e.padSplit=function(t,e,n){for(var r=t.toString(2);r.length<e;)r="0"+r;for(var o=[],i=0;i<e;i+=n)o.push(r.slice(i,i+n));return o.join(" ")}},function(t,e,n){"use strict";var r=n(19),o=n(1),h=n(195),l=n(129);function c(){this.tmp=new Array(2),this.keys=null}function d(t){l.call(this,t);var e=new c;this._desState=e,this.deriveKeys(e,t.key)}o(d,l),t.exports=d,d.create=function(t){return new d(t)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];d.prototype.deriveKeys=function(t,e){t.keys=new Array(32),r.equal(e.length,this.blockSize,"Invalid key length");var n=h.readUInt32BE(e,0),o=h.readUInt32BE(e,4);h.pc1(n,o,t.tmp,0),n=t.tmp[0],o=t.tmp[1];for(var i=0;i<t.keys.length;i+=2){var l=f[i>>>1];n=h.r28shl(n,l),o=h.r28shl(o,l),h.pc2(n,o,t.keys,i)}},d.prototype._update=function(t,e,n,r){var o=this._desState,l=h.readUInt32BE(t,e),c=h.readUInt32BE(t,e+4);h.ip(l,c,o.tmp,0),l=o.tmp[0],c=o.tmp[1],"encrypt"===this.type?this._encrypt(o,l,c,o.tmp,0):this._decrypt(o,l,c,o.tmp,0),l=o.tmp[0],c=o.tmp[1],h.writeUInt32BE(n,l,r),h.writeUInt32BE(n,c,r+4)},d.prototype._pad=function(t,e){for(var n=t.length-e,i=e;i<t.length;i++)t[i]=n;return!0},d.prototype._unpad=function(t){for(var e=t[t.length-1],i=t.length-e;i<t.length;i++)r.equal(t[i],e);return t.slice(0,t.length-e)},d.prototype._encrypt=function(t,e,n,r,o){for(var l=e,c=n,i=0;i<t.keys.length;i+=2){var d=t.keys[i],f=t.keys[i+1];h.expand(c,t.tmp,0),d^=t.tmp[0],f^=t.tmp[1];var s=h.substitute(d,f),m=c;c=(l^h.permute(s))>>>0,l=m}h.rip(c,l,r,o)},d.prototype._decrypt=function(t,e,n,r,o){for(var l=n,c=e,i=t.keys.length-2;i>=0;i-=2){var d=t.keys[i],f=t.keys[i+1];h.expand(l,t.tmp,0),d^=t.tmp[0],f^=t.tmp[1];var s=h.substitute(d,f),m=l;l=(c^h.permute(s))>>>0,c=m}h.rip(l,c,r,o)}},function(t,e,n){var r=n(74),o=n(4).Buffer,h=n(198);function l(t){var e=t._cipher.encryptBlockRaw(t._prev);return h(t._prev),e}e.encrypt=function(t,e){var n=Math.ceil(e.length/16),h=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*n)]);for(var i=0;i<n;i++){var c=l(t),d=h+16*i;t._cache.writeUInt32BE(c[0],d+0),t._cache.writeUInt32BE(c[1],d+4),t._cache.writeUInt32BE(c[2],d+8),t._cache.writeUInt32BE(c[3],d+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),r(e,f)}},function(t,e){t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},function(t){t.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"},"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"}}')},function(t,e,n){var r=n(95),o=n(4).Buffer,h=n(34),l=n(1),c=n(339),d=n(74),f=n(198);function m(t,e,n,l){h.call(this);var d=o.alloc(4,0);this._cipher=new r.AES(e);var m=this._cipher.encryptBlock(d);this._ghash=new c(m),n=function(t,e,n){if(12===e.length)return t._finID=o.concat([e,o.from([0,0,0,1])]),o.concat([e,o.from([0,0,0,2])]);var r=new c(n),h=e.length,l=h%16;r.update(e),l&&(l=16-l,r.update(o.alloc(l,0))),r.update(o.alloc(8,0));var d=8*h,m=o.alloc(8);m.writeUIntBE(d,0,8),r.update(m),t._finID=r.state;var v=o.from(t._finID);return f(v),v}(this,n,m),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=l,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}l(m,h),m.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=o.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},m.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(a,b){var t=0;a.length!==b.length&&t++;for(var e=Math.min(a.length,b.length),i=0;i<e;++i)t+=a[i]^b[i];return t}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},m.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},m.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},m.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=m},function(t,e,n){var r=n(95),o=n(4).Buffer,h=n(34);function l(t,e,n,l){h.call(this),this._cipher=new r.AES(e),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=l,this._mode=t}n(1)(l,h),l.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},l.prototype._final=function(){this._cipher.scrub()},t.exports=l},function(t,e,n){var r=n(52);t.exports=x,x.simpleSieve=k,x.fermatTest=S;var o=n(203),h=new o(24),l=new(n(204)),c=new o(1),d=new o(2),f=new o(5),m=(new o(16),new o(8),new o(10)),v=new o(3),y=(new o(7),new o(11)),w=new o(4),M=(new o(12),null);function _(){if(null!==M)return M;var t=[];t[0]=2;for(var i=1,e=3;e<1048576;e+=2){for(var n=Math.ceil(Math.sqrt(e)),r=0;r<i&&t[r]<=n&&e%t[r]!=0;r++);i!==r&&t[r]<=n||(t[i++]=e)}return M=t,t}function k(p){for(var t=_(),i=0;i<t.length;i++)if(0===p.modn(t[i]))return 0===p.cmpn(t[i]);return!0}function S(p){var t=o.mont(p);return 0===d.toRed(t).redPow(p.subn(1)).fromRed().cmpn(1)}function x(t,e){if(t<16)return new o(2===e||5===e?[140,123]:[140,39]);var n,M;for(e=new o(e);;){for(n=new o(r(Math.ceil(t/8)));n.bitLength()>t;)n.ishrn(1);if(n.isEven()&&n.iadd(c),n.testn(1)||n.iadd(d),e.cmp(d)){if(!e.cmp(f))for(;n.mod(m).cmp(v);)n.iadd(w)}else for(;n.mod(h).cmp(y);)n.iadd(w);if(k(M=n.shrn(1))&&k(n)&&S(M)&&S(n)&&l.test(M)&&l.test(n))return n}}},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 2
2=10),this._init(t||0,base||10,e||"be"))}var l;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{l=n(343).Buffer}catch(t){}function c(t,e,n){for(var r=0,o=Math.min(t.length,n),i=e;i<o;i++){var h=t.charCodeAt(i)-48;r<<=4,r|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return r}function d(t,e,n,r){for(var o=0,h=Math.min(t.length,n),i=e;i<h;i++){var l=t.charCodeAt(i)-48;o*=r,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(t,n):this._parseBase(t,base,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,h=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=t.length-6,n=0;i>=e;i-=6)r=c(t,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=c(t,e,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,h=o%n,l=Math.min(o,o-h)+e,c=0,i=e;i<l;i+=n)c=d(t,i,i+n,base),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==h){var f=1;for(c=d(t,i,t.length,base),i=0;i<h;i++)f*=base;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","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"],m=[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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 27,030 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,l=o/67108864|0;n.words[0]=h;for(var c=1;c<r;c++){for(var d=l>>>26,f=67108863&l,m=Math.min(c,e.length-1),v=Math.max(0,c-t.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|t.words[i])*(b=0|e.words[v])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,l=0|d}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<n|o)).toString(16);e=0!==(o=h>>>24-n&16777215)||i!==this.length-1?f[6-l.length]+l+e:l+e,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var c=m[base],d=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(d).toString(base);e=(y=y.idivn(d)).isZero()?w+e:f[c-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return r(void 0!==l),this.toArrayLike(l,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),h=n||Math.max(1,o);r(o<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===e,c=new t(h),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[i]=b;for(;i<h;i++)c[i]=0}else{for(i=0;i<h-o;i++)c[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[h-i-1]=b}return c},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,n){var r,o,h,a=t.words,b=e.words,l=n.words,c=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,k=M>>>13,S=0|a[3],x=8191&S,C=S>>>13,T=0|a[4],E=8191&T,A=T>>>13,I=0|a[5],D=8191&I,B=I>>>13,R=0|a[6],P=8191&R,F=R>>>13,O=0|a[7],N=8191&O,L=O>>>13,z=0|a[8],j=8191&z,U=z>>>13,$=0|a[9],V=8191&$,H=$>>>13,W=0|b[0],X=8191&W,Z=W>>>13,G=0|b[1],Y=8191&G,K=G>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,at=0|b[4],st=8191&at,ot=at>>>13,ut=0|b[5],ht=8191&ut,lt=ut>>>13,ct=0|b[6],ft=8191&ct,pt=ct>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,bt=0|b[8],yt=8191&bt,wt=bt>>>13,Mt=0|b[9],_t=8191&Mt,kt=Mt>>>13;n.negative=t.negative^e.negative,n.length=19;var St=(c+(r=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,Z))+Math.imul(m,X)|0))<<13)|0;c=((h=Math.imul(m,Z))+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(y,X),o=(o=Math.imul(y,Z))+Math.imul(w,X)|0,h=Math.imul(w,Z);var xt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(m,Y)|0))<<13)|0;c=((h=h+Math.imul(m,K)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(_,X),o=(o=Math.imul(_,Z))+Math.imul(k,X)|0,h=Math.imul(k,Z),r=r+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,K)|0;var Ct=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(m,Q)|0))<<13)|0;c=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(x,X),o=(o=Math.imul(x,Z))+Math.imul(C,X)|0,h=Math.imul(C,Z),r=r+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,K)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var Tt=(c+(r=r+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(m,it)|0))<<13)|0;c=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(E,X),o=(o=Math.imul(E,Z))+Math.imul(A,X)|0,h=Math.imul(A,Z),r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,Y)|0,h=h+Math.imul(C,K)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(k,Q)|0,h=h+Math.imul(k,tt)|0,r=r+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Et=(c+(r=r+Math.imul(f,st)|0)|0)+((8191&(o=(o=o+Math.imul(f,ot)|0)+Math.imul(m,st)|0))<<13)|0;c=((h=h+Math.imul(m,ot)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),o=(o=Math.imul(D,Z))+Math.imul(B,X)|0,h=Math.imul(B,Z),r=r+Math.imul(E,Y)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(A,Y)|0,h=h+Math.imul(A,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(C,Q)|0,h=h+Math.imul(C,tt)|0,r=r+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,r=r+Math.imul(y,st)|0,o=(o=o+Math.imul(y,ot)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,ot)|0;var At=(c+(r=r+Math.imul(f,ht)|0)|0)+((8191&(o=(o=o+Math.imul(f,lt)|0)+Math.imul(m,ht)|0))<<13)|0;c=((h=h+Math.imul(m,lt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(P,X),o=(o=Math.imul(P,Z))+Math.imul(F,X)|0,h=Math.imul(F,Z),r=r+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,K)|0)+Math.imul(B,Y)|0,h=h+Math.imul(B,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,h=h+Math.imul(A,tt)|0,r=r+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(C,it)|0,h=h+Math.imul(C,nt)|0,r=r+Math.imul(_,st)|0,o=(o=o+Math.imul(_,ot)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,ot)|0,r=r+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,lt)|0;var It=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,pt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,X),o=(o=Math.imul(N,Z))+Math.imul(L,X)|0,h=Math.imul(L,Z),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,K)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(E,it)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(A,it)|0,h=h+Math.imul(A,nt)|0,r=r+Math.imul(x,st)|0,o=(o=o+Math.imul(x,ot)|0)+Math.imul(C,st)|0,h=h+Math.imul(C,ot)|0,r=r+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,lt)|0,r=r+Math.imul(y,ft)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ft)|0,h=h+Math.imul(w,pt)|0;var Dt=(c+(r=r+Math.imul(f,gt)|0)|0)+((8191&(o=(o=o+Math.imul(f,vt)|0)+Math.imul(m,gt)|0))<<13)|0;c=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(j,X),o=(o=Math.imul(j,Z))+Math.imul(U,X)|0,h=Math.imul(U,Z),r=r+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(L,Y)|0,h=h+Math.imul(L,K)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(F,Q)|0,h=h+Math.imul(F,tt)|0,r=r+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(B,it)|0,h=h+Math.imul(B,nt)|0,r=r+Math.imul(E,st)|0,o=(o=o+Math.imul(E,ot)|0)+Math.imul(A,st)|0,h=h+Math.imul(A,ot)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(C,ht)|0,h=h+Math.imul(C,lt)|0,r=r+Math.imul(_,ft)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(k,ft)|0,h=h+Math.imul(k,pt)|0,r=r+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Bt=(c+(r=r+Math.imul(f,yt)|0)|0)+((8191&(o=(o=o+Math.imul(f,wt)|0)+Math.imul(m,yt)|0))<<13)|0;c=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(V,X),o=(o=Math.imul(V,Z))+Math.imul(H,X)|0,h=Math.imul(H,Z),r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,r=r+Math.imul(D,st)|0,o=(o=o+Math.imul(D,ot)|0)+Math.imul(B,st)|0,h=h+Math.imul(B,ot)|0,r=r+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(A,ht)|0,h=h+Math.imul(A,lt)|0,r=r+Math.imul(x,ft)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(C,ft)|0,h=h+Math.imul(C,pt)|0,r=r+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,r=r+Math.imul(y,yt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,yt)|0,h=h+Math.imul(w,wt)|0;var Rt=(c+(r=r+Math.imul(f,_t)|0)|0)+((8191&(o=(o=o+Math.imul(f,kt)|0)+Math.imul(m,_t)|0))<<13)|0;c=((h=h+Math.imul(m,kt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(V,Y),o=(o=Math.imul(V,K))+Math.imul(H,Y)|0,h=Math.imul(H,K),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,Q)|0,h=h+Math.imul(U,tt)|0,r=r+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,r=r+Math.imul(P,st)|0,o=(o=o+Math.imul(P,ot)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,ot)|0,r=r+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,lt)|0)+Math.imul(B,ht)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(A,ft)|0,h=h+Math.imul(A,pt)|0,r=r+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(C,gt)|0,h=h+Math.imul(C,vt)|0,r=r+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(k,yt)|0,h=h+Math.imul(k,wt)|0;var Pt=(c+(r=r+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,kt)|0)+Math.imul(w,_t)|0))<<13)|0;c=((h=h+Math.imul(w,kt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(V,Q),o=(o=Math.imul(V,tt))+Math.imul(H,Q)|0,h=Math.imul(H,tt),r=r+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,r=r+Math.imul(N,st)|0,o=(o=o+Math.imul(N,ot)|0)+Math.imul(L,st)|0,h=h+Math.imul(L,ot)|0,r=r+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,lt)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,lt)|0,r=r+Math.imul(D,ft)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(B,ft)|0,h=h+Math.imul(B,pt)|0,r=r+Math.imul(E,gt)|0,o=(o=o+Math.imul(E,vt)|0)+Math.imul(A,gt)|0,h=h+Math.imul(A,vt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(C,yt)|0,h=h+Math.imul(C,wt)|0;var Ft=(c+(r=r+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,kt)|0)+Math.imul(k,_t)|0))<<13)|0;c=((h=h+Math.imul(k,kt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(H,it)|0,h=Math.imul(H,nt),r=r+Math.imul(j,st)|0,o=(o=o+Math.imul(j,ot)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,ot)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(F,ft)|0,h=h+Math.imul(F,pt)|0,r=r+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(B,gt)|0,h=h+Math.imul(B,vt)|0,r=r+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(A,yt)|0,h=h+Math.imul(A,wt)|0;var Ot=(c+(r=r+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,kt)|0)+Math.imul(C,_t)|0))<<13)|0;c=((h=h+Math.imul(C,kt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(V,st),o=(o=Math.imul(V,ot))+Math.imul(H,st)|0,h=Math.imul(H,ot),r=r+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,lt)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,lt)|0,r=r+Math.imul(N,ft)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(L,ft)|0,h=h+Math.imul(L,pt)|0,r=r+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,r=r+Math.imul(D,yt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(B,yt)|0,h=h+Math.imul(B,wt)|0;var Nt=(c+(r=r+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,kt)|0)+Math.imul(A,_t)|0))<<13)|0;c=((h=h+Math.imul(A,kt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(V,ht),o=(o=Math.imul(V,lt))+Math.imul(H,ht)|0,h=Math.imul(H,lt),r=r+Math.imul(j,ft)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,ft)|0,h=h+Math.imul(U,pt)|0,r=r+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,r=r+Math.imul(P,yt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(F,yt)|0,h=h+Math.imul(F,wt)|0;var Lt=(c+(r=r+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,kt)|0)+Math.imul(B,_t)|0))<<13)|0;c=((h=h+Math.imul(B,kt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(V,ft),o=(o=Math.imul(V,pt))+Math.imul(H,ft)|0,h=Math.imul(H,pt),r=r+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(L,yt)|0,h=h+Math.imul(L,wt)|0;var zt=(c+(r=r+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,kt)|0)+Math.imul(F,_t)|0))<<13)|0;c=((h=h+Math.imul(F,kt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(H,gt)|0,h=Math.imul(H,vt),r=r+Math.imul(j,yt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,yt)|0,h=h+Math.imul(U,wt)|0;var jt=(c+(r=r+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,kt)|0)+Math.imul(L,_t)|0))<<13)|0;c=((h=h+Math.imul(L,kt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(V,yt),o=(o=Math.imul(V,wt))+Math.imul(H,yt)|0,h=Math.imul(H,wt);var Ut=(c+(r=r+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,kt)|0)+Math.imul(U,_t)|0))<<13)|0;c=((h=h+Math.imul(U,kt)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var $t=(c+(r=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,kt))+Math.imul(H,_t)|0))<<13)|0;return c=((h=Math.imul(H,kt))+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,l[0]=St,l[1]=xt,l[2]=Ct,l[3]=Tt,l[4]=Et,l[5]=At,l[6]=It,l[7]=Dt,l[8]=Bt,l[9]=Rt,l[10]=Pt,l[11]=Ft,l[12]=Ot,l[13]=Nt,l[14]=Lt,l[15]=zt,l[16]=jt,l[17]=Ut,l[18]=$t,0!==c&&(l[19]=c,n.length++),n};function M(t,e,n){return(new _).mulp(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):n<63?y(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,h=0;h<n.length-1;h++){var l=o;o=0;for(var c=67108863&r,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var i=h-f,m=(0|t.words[i])*(0|e.words[f]),v=67108863&m;c=67108863&(v=v+c|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[h]=c,r=l,l=o}return 0!==r?n.words[h]=r:n.length--,n.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},_.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},_.prototype.permute=function(t,e,n,r,o,h){for(var i=0;i<h;i++)r[i]=e[t[i]],o[i]=n[t[i]]},_.prototype.transform=function(t,e,n,r,o,h){this.permute(h,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,c=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=c,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],M=n[p+v+s],_=r[p+v+s],k=f*M-m*_;_=f*_+m*M,M=k,n[p+v]=y+M,r[p+v]=w+_,n[p+v+s]=y-M,r[p+v+s]=w-_,v!==l&&(k=c*f-d*m,m=c*m+d*f,f=k)}},_.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},_.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},_.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},_.prototype.convert13b=function(t,e,n,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],n[2*i]=8191&h,h>>>=13,n[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===h),r(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),h=this.stub(r),l=new Array(r),c=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,f,r),this.transform(l,h,c,d,r,o),this.transform(f,h,m,v,r,o);for(var i=0;i<r;i++){var w=c[i]*m[i]-d[i]*v[i];d[i]=c[i]*v[i]+d[i]*m[i],c[i]=w}return this.conjugate(c,d,r),this.transform(c,d,y,h,r,o),this.conjugate(y,h,r),this.normalize13b(y,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=(t.words[r]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n},h.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&n,l=(0|this.words[i])-h<<e;this.words[i]=l|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var c=0;for(i=this.length-1;i>=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-h|d>>>h,c=d&mask}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,n){var i,o,h=t.length+n;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var c=(0|t.words[i])*e;l=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var c=o-1;c>=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q.strip(),a.strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),h=n.cmp(r);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){r(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)}
vendor: 7,214 bytes, line 2
2,h.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new h(1),o=new h(0),l=new h(0),c=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var d=e.clone(),f=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(l.isOdd()||c.isOdd())&&(l.iadd(d),c.isub(f)),l.iushrn(1),c.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(c)):(e.isub(t),l.isub(n),c.isub(o))}return{a:l,b:c,gcd:e.iushln(g)}},h.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),n=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e))}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new A(t)},h.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};function S(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}S.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},S.prototype.split=function(input,t){input.iushrn(this.n,0,t)},S.prototype.imulK=function(t){return t.imul(this.k)},o(x,S),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 5,580 bytes, line 2
2put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|e>>>22,e=n}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(C,S),o(T,S),o(E,S),E.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new T;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return k[t]=e,e},A.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},A.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},A.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},A.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},A.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},A.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},A.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},A.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},A.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},A.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},A.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},A.prototype.isqr=function(a){return this.imul(a,a.clone())},A.prototype.sqr=function(a){return this.mul(a,a)},A.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new h(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new h(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new h(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},A.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],d=l-1;d>=0;d--){var f=c>>d&1;n!==e[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0}l=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,A),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(35)(t))},function(t,e,n){var r=n(344),o=n(132);function h(t){this.rand=t||new o.Rand}t.exports=h,h.create=function(t){return new h(t)},h.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var a=new r(this.rand.generate(n))}while(a.cmp(t)>=0);return a},h.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},h.prototype.test=function(t,e,n){var o=t.bitLength(),h=r.mont(t),l=new r(1).toRed(h);e||(e=Math.max(1,o/48|0));for(var c=t.subn(1),s=0;!c.testn(s);s++);for(var d=t.shrn(s),f=c.toRed(h);e>0;e--){var a=this._randrange(new r(2),c);n&&n(a);var m=a.toRed(h).redPow(d);if(0!==m.cmp(l)&&0!==m.cmp(f)){for(var i=1;i<s;i++){if(0===(m=m.redSqr()).cmp(l))return!1;if(0===m.cmp(f))break}if(i===s)return!1}}return!0},h.prototype.getDivisor=function(t,e){var n=t.bitLength(),o=r.mont(t),h=new r(1).toRed(o);e||(e=Math.max(1,n/48|0));for(var l=t.subn(1),s=0;!l.testn(s);s++);for(var c=t.shrn(s),d=l.toRed(o);e>0;e--){var a=this._randrange(new r(2),l),g=t.gcd(a);if(0!==g.cmpn(1))return g;var f=a.toRed(o).redPow(c);
vendor: 4,578 bytes, line 2
2if(0!==f.cmp(h)&&0!==f.cmp(d)){for(var i=1;i<s;i++){if(0===(f=f.redSqr()).cmp(h))return f.fromRed().subn(1).gcd(t);if(0===f.cmp(d))break}if(i===s)return(f=f.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,n){"use strict";(function(e,r){var o;t.exports=B,B.ReadableState=D;n(40).EventEmitter;var h=function(t,e){return t.listeners(e).length},l=n(206),c=n(3).Buffer,d=e.Uint8Array||function(){};var f,m=n(351);f=m&&m.debuglog?m.debuglog("stream"):function(){};var v,y,w,M=n(352),_=n(207),k=n(208).getHighWaterMark,S=n(56).codes,x=S.ERR_INVALID_ARG_TYPE,C=S.ERR_STREAM_PUSH_AFTER_EOF,T=S.ERR_METHOD_NOT_IMPLEMENTED,E=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(1)(B,l);var A=_.errorOrDestroy,I=["error","close","destroy","pause","resume"];function D(t,e,r){o=o||n(57),t=t||{},"boolean"!=typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=k(this,t,"readableHighWaterMark",r),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!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(v||(v=n(41).StringDecoder),this.decoder=new v(t.encoding),this.encoding=t.encoding)}function B(t){if(o=o||n(57),!(this instanceof B))return new B(t);var e=this instanceof o;this._readableState=new D(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function R(t,e,n,r,o){f("readableAddChunk",e);var h,l=t._readableState;if(null===e)l.reading=!1,function(t,e){if(f("onEofChunk"),e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,N(t)))}(t,l);else if(o||(h=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof d||"string"==typeof e||void 0===e||t.objectMode||(n=new x("chunk",["string","Buffer","Uint8Array"],e));var r;return n}(l,e)),h)A(t,h);else if(l.objectMode||e&&e.length>0)if("string"==typeof e||l.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r)l.endEmitted?A(t,new E):P(t,l,e,!0);else if(l.ended)A(t,new C);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(e=l.decoder.write(e),l.objectMode||0!==e.length?P(t,l,e,!1):L(t,l)):P(t,l,e,!1)}else r||(l.reading=!1,L(t,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function P(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&O(t)),L(t,e)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),B.prototype.destroy=_.destroy,B.prototype._undestroy=_.undestroy,B.prototype._destroy=function(t,e){e(t)},B.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=c.from(t,e),e=""),n=!0),R(this,t,e,!1,n)},B.prototype.unshift=function(t){return R(this,t,null,!0,!1)},B.prototype.isPaused=function(){return!1===this._readableState.flowing},B.prototype.setEncoding=function(t){v||(v=n(41).StringDecoder);var e=new v(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,content="";null!==p;)content+=e.write(p.data),p=p.next;return this._readableState.buffer.clear(),""!==content&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};function F(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(N,t))}function N(t){var e=t._readableState;
vendor: 4,902 bytes, line 2
2f("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,V(t)}function L(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(f("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function j(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function U(t){f("readable nexttick read 0"),t.read(0)}function $(t,e){f("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),V(t),e.flowing&&!e.reading&&t.read(0)}function V(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function H(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function W(t){var e=t._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(f("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function Z(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}B.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?W(this):O(this),null;if(0===(t=F(t,e))&&e.ended)return 0===e.length&&W(this),null;var r,o=e.needReadable;return f("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",o=!0),e.ended||e.reading?f("reading or ended",o=!1):o&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=F(n,e))),null===(r=t>0?H(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&W(this)),null!==r&&this.emit("data",r),r},B.prototype._read=function(t){A(this,new T("_read()"))},B.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,e);var l=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?d:k;function c(e,r){f("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),t.removeListener("close",M),t.removeListener("finish",_),t.removeListener("drain",m),t.removeListener("error",w),t.removeListener("unpipe",c),n.removeListener("end",d),n.removeListener("end",k),n.removeListener("data",y),v=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||m())}function d(){f("onend"),t.end()}o.endEmitted?r.nextTick(l):n.once("end",l),t.on("unpipe",c);var m=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&h(t,"data")&&(e.flowing=!0,V(t))}}(n);t.on("drain",m);var v=!1;function y(e){f("ondata");var r=t.write(e);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==Z(o.pipes,t))&&!v&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function w(e){f("onerror",e),k(),t.removeListener("error",w),0===h(t,"error")&&A(t,e)}function M(){t.removeListener("finish",_),k()}function _(){f("onfinish"),t.removeListener("close",M),k()}function k(){f("unpipe"),n.unpipe(t)}return n.on("data",y),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",w),t.once("close",M),t.once("finish",_),t.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),t},B.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var h=Z(e.pipes,t);return-1===h||(e.pipes.splice(h,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},B.prototype.on=function(t,e){var n=l.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>
vendor: 17,955 bytes, line 2
20,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?O(this):o.reading||r.nextTick(U,this))),n},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(t,e){var n=l.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(j,this),n},B.prototype.removeAllListeners=function(t){var e=l.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(j,this),e},B.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick($,t,e))}(this,t)),t.paused=!1,this},B.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},B.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(e.push(o)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<I.length;o++)t.on(I[o],this.emit.bind(this,I[o]));return this._read=function(e){f("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(B.prototype[Symbol.asyncIterator]=function(){return void 0===y&&(y=n(354)),y(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),B._fromList=H,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(B.from=function(t,e){return void 0===w&&(w=n(355)),w(B,t,e)})}).call(this,n(9),n(7))},function(t,e,n){t.exports=n(40).EventEmitter},function(t,e,n){"use strict";(function(e){function n(t,e){o(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,h){var l=this,c=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return c||d?(h?h(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!h&&t?l._writableState?l._writableState.errorEmitted?e.nextTick(r,l):(l._writableState.errorEmitted=!0,e.nextTick(n,l,t)):e.nextTick(n,l,t):h?(e.nextTick(r,l),h(t)):e.nextTick(r,l)})),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(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,n(7))},function(t,e,n){"use strict";var r=n(56).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,o){var h=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,o,n);if(null!=h){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new r(o?n:"highWaterMark",h);return Math.floor(h)}return t.objectMode?16:16384}}},function(t,e,n){"use strict";(function(e,r){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var o=r.callback;e.pendingcb--,o(n),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var h;t.exports=B,B.WritableState=D;var l={deprecate:n(122)},c=n(206),d=n(3).Buffer,f=e.Uint8Array||function(){};var m,v=n(207),y=n(208).getHighWaterMark,w=n(56).codes,M=w.ERR_INVALID_ARG_TYPE,_=w.ERR_METHOD_NOT_IMPLEMENTED,k=w.ERR_MULTIPLE_CALLBACK,S=w.ERR_STREAM_CANNOT_PIPE,x=w.ERR_STREAM_DESTROYED,C=w.ERR_STREAM_NULL_VALUES,T=w.ERR_STREAM_WRITE_AFTER_END,E=w.ERR_UNKNOWN_ENCODING,A=v.errorOrDestroy;function I(){}function D(t,e,l){h=h||n(57),t=t||{},"boolean"!=typeof l&&(l=e instanceof h),this.objectMode=!!t.objectMode,l&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=y(this,t,"writableHighWaterMark",l),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,o=n.sync,h=n.writecb;if("function"!=typeof h)throw new k;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,o,h){--e.pendingcb,n?(r.nextTick(h,o),r.nextTick(L,t,e),t._writableState.errorEmitted=!0,A(t,o)):(h(o),t._writableState.errorEmitted=!0,A(t,o),L(t,e))}(t,n,o,e,h);else{var l=O(n)||t.destroyed;l||n.corked||n.bufferProcessing||!n.bufferedRequest||F(t,n),o?r.nextTick(P,t,n,l,h):P(t,n,l,h)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function B(t){var e=this instanceof(h=h||n(57));if(!e&&!m.call(B,this))return new B(t);this._writableState=new D(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function R(t,e,n,r,o,h,l){e.writelen=r,e.writecb=l,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):n?t._writev(o,e.onwrite):t._write(o,h,e.onwrite),e.sync=!1}function P(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),L(t,e)}function F(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,h=new Array(r),l=e.corkedRequestsFree;l.entry=n;for(var c=0,d=!0;n;)h[c]=n,n.isBuf||(d=!1),n=n.next,c+=1;h.allBuffers=d,R(t,e,!0,e.length,h,"",l.finish),e.pendingcb++,e.lastBufferedRequest=null,l.next?(e.corkedRequestsFree=l.next,l.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,m=n.encoding,v=n.callback;if(R(t,e,!1,e.objectMode?1:f.length,f,m,v),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function O(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function N(t,e){t._final((function(n){e.pendingcb--,n&&A(t,n),e.prefinished=!0,t.emit("prefinish"),L(t,e)}))}function L(t,e){var n=O(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(N,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return n}n(1)(B,c),D.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(D.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(object){return!!m.call(this,object)||this===B&&(object&&object._writableState instanceof D)}})):m=function(object){return object instanceof this},B.prototype.pipe=function(){A(this,new S)},B.prototype.write=function(t,e,n){var o,h=this._writableState,l=!1,c=!h.objectMode&&(o=t,d.isBuffer(o)||o instanceof f);return c&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),c?e="buffer":e||(e=h.defaultEncoding),"function"!=typeof n&&(n=I),h.ending?function(t,e){var n=new T;A(t,n),r.nextTick(e,n)}(this,n):(c||function(t,e,n,o){var h;return null===n?h=new C:"string"==typeof n||e.objectMode||(h=new M("chunk",["string","Buffer"],n)),!h||(A(t,h),r.nextTick(o,h),!1)}(this,h,t,n))&&(h.pendingcb++,l=function(t,e,n,r,o,h){if(!n){var l=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,r,o);r!==l&&(n=!0,o="buffer",r=l)}var c=e.objectMode?1:r.length;e.length+=c;var f=e.length<e.highWaterMark;f||(e.needDrain=!0);if(e.writing||e.corked){var m=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:h,next:null},m?m.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else R(t,e,!1,c,r,o,h);return f}(this,h,c,t,e,n)),l},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||F(this,t))},B.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new E(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),B.prototype._write=function(t,e,n){n(new _("_write()"))},B.prototype._writev=null,B.prototype.end=function(t,e,n){var o=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,n){e.ending=!0,L(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),B.prototype.destroy=v.destroy,B.prototype._undestroy=v.undestroy,B.prototype._destroy=function(t,e){e(t)}}).call(this,n(9),n(7))},function(t,e,n){"use strict";t.exports=m;var r=n(56).codes,o=r.ERR_METHOD_NOT_IMPLEMENTED,h=r.ERR_MULTIPLE_CALLBACK,l=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=r.ERR_TRANSFORM_WITH_LENGTH_0,d=n(57);function f(t,data){var e=this._transformState;e.transforming=!1;var n=e.writecb;if(null===n)return this.emit("error",new h);e.writechunk=null,e.writecb=null,null!=data&&this.push(data),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function m(t){if(!(this instanceof m))return new m(t);d.call(this,t),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",v)}function v(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?y(this,null,null):this._flush((function(e,data){y(t,e,data)}))}function y(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new c;if(t._transformState.transforming)throw new l;return t.push(null)}n(1)(m,d),m.prototype.push=function(t,e){return this._transformState.needTransform=!1,d.prototype.push.call(this,t,e)},m.prototype._transform=function(t,e,n){n(new o("_transform()"))},m.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},m.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},m.prototype._destroy=function(t,e){d.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,n){"use strict";var r=e;function o(t){return 1===t.length?"0"+t:t}function h(t){for(var e="",i=0;i<t.length;i++)e+=o(t[i].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)n[i]=0|t[i];return n}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(i=0;i<t.length;i++){var r=t.charCodeAt(i),o=r>>8,h=255&r;o?n.push(o,h):n.push(h)}return n},r.zero2=o,r.toHex=h,r.encode=function(t,e){return"hex"===e?h(t):t}},function(t,e,n){"use strict";var r=e;r.base=n(97),r.short=n(363),r.mont=n(364),r.edwards=n(365)},function(t,e,n){"use strict";var r=n(26).rotr32;function o(t,e,n){return t&e^~t&n}function h(t,e,n){return t&e^t&n^e&n}function l(t,e,n){return t^e^n}e.ft_1=function(s,t,e,n){return 0===s?o(t,e,n):1===s||3===s?l(t,e,n):2===s?h(t,e,n):void 0},e.ch32=o,e.maj32=h,e.p32=l,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,n){"use strict";var r=n(26),o=n(75),h=n(213),l=n(19),c=r.sum32,d=r.sum32_4,f=r.sum32_5,m=h.ch32,v=h.maj32,y=h.s0_256,w=h.s1_256,M=h.g0_256,_=h.g1_256,k=o.BlockHash,S=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function x(){if(!(this instanceof x))return new x;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=S,this.W=new Array(64)}r.inherits(x,k),t.exports=x,x.blockSize=512,x.outSize=256,x.hmacStrength=192,x.padLength=64,x.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=d(_(n[i-2]),n[i-7],M(n[i-15]),n[i-16]);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],h=this.h[4],k=this.h[5],g=this.h[6],S=this.h[7];for(l(this.k.length===n.length),i=0;i<n.length;i++){var x=f(S,w(h),m(h,k,g),this.k[i],n[i]),C=c(y(a),v(a,b,r));S=g,g=k,k=h,h=c(o,x),o=r,r=b,b=a,a=c(x,C)}this.h[0]=c(this.h[0],a),this.h[1]=c(this.h[1],b),this.h[2]=c(this.h[2],r),this.h[3]=c(this.h[3],o),this.h[4]=c(this.h[4],h),this.h[5]=c(this.h[5],k),this.h[6]=c(this.h[6],g),this.h[7]=c(this.h[7],S)},x.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,n){"use strict";var r=n(26),o=n(75),h=n(19),l=r.rotr64_hi,c=r.rotr64_lo,d=r.shr64_hi,f=r.shr64_lo,m=r.sum64,v=r.sum64_hi,y=r.sum64_lo,w=r.sum64_4_hi,M=r.sum64_4_lo,_=r.sum64_5_hi,k=r.sum64_5_lo,S=o.BlockHash,x=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
vendor: 3,432 bytes, line 2
21322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function C(){if(!(this instanceof C))return new C;S.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=x,this.W=new Array(160)}function T(t,e,n,r,o){var h=t&n^~t&o;return h<0&&(h+=4294967296),h}function E(t,e,n,r,o,h){var l=e&r^~e&h;return l<0&&(l+=4294967296),l}function A(t,e,n,r,o){var h=t&n^t&o^n&o;return h<0&&(h+=4294967296),h}function I(t,e,n,r,o,h){var l=e&r^e&h^r&h;return l<0&&(l+=4294967296),l}function D(t,e){var n=l(t,e,28)^l(e,t,2)^l(e,t,7);return n<0&&(n+=4294967296),n}function B(t,e){var n=c(t,e,28)^c(e,t,2)^c(e,t,7);return n<0&&(n+=4294967296),n}function R(t,e){var n=l(t,e,14)^l(t,e,18)^l(e,t,9);return n<0&&(n+=4294967296),n}function P(t,e){var n=c(t,e,14)^c(t,e,18)^c(e,t,9);return n<0&&(n+=4294967296),n}function F(t,e){var n=l(t,e,1)^l(t,e,8)^d(t,e,7);return n<0&&(n+=4294967296),n}function O(t,e){var n=c(t,e,1)^c(t,e,8)^f(t,e,7);return n<0&&(n+=4294967296),n}function N(t,e){var n=l(t,e,19)^l(e,t,29)^d(t,e,6);return n<0&&(n+=4294967296),n}function L(t,e){var n=c(t,e,19)^c(e,t,29)^f(t,e,6);return n<0&&(n+=4294967296),n}r.inherits(C,S),t.exports=C,C.blockSize=1024,C.outSize=512,C.hmacStrength=192,C.padLength=128,C.prototype._prepareBlock=function(t,e){for(var n=this.W,i=0;i<32;i++)n[i]=t[e+i];for(;i<n.length;i+=2){var r=N(n[i-4],n[i-3]),o=L(n[i-4],n[i-3]),h=n[i-14],l=n[i-13],c=F(n[i-30],n[i-29]),d=O(n[i-30],n[i-29]),f=n[i-32],m=n[i-31];n[i]=w(r,o,h,l,c,d,f,m),n[i+1]=M(r,o,h,l,c,d,f,m)}},C.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],o=this.h[1],l=this.h[2],c=this.h[3],d=this.h[4],f=this.h[5],w=this.h[6],dl=this.h[7],M=this.h[8],S=this.h[9],x=this.h[10],C=this.h[11],F=this.h[12],O=this.h[13],N=this.h[14],L=this.h[15];h(this.k.length===n.length);for(var i=0;i<n.length;i+=2){var z=N,j=L,U=R(M,S),$=P(M,S),V=T(M,S,x,C,F),H=E(M,S,x,C,F,O),W=this.k[i],X=this.k[i+1],Z=n[i],G=n[i+1],Y=_(z,j,U,$,V,H,W,X,Z,G),K=k(z,j,U,$,V,H,W,X,Z,G);z=D(r,o),j=B(r,o),U=A(r,o,l,c,d),$=I(r,o,l,c,d,f);var J=v(z,j,U,$),Q=y(z,j,U,$);N=F,L=O,F=x,O=C,x=M,C=S,M=v(w,dl,Y,K),S=y(dl,dl,Y,K),w=d,dl=f,d=l,f=c,l=r,c=o,r=v(Y,K,J,Q),o=y(Y,K,J,Q)}m(this.h,0,r,o),m(this.h,2,l,c),m(this.h,4,d,f),m(this.h,6,w,dl),m(this.h,8,M,S),m(this.h,10,x,C),m(this.h,12,F,O),m(this.h,14,N,L)},C.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,418 bytes, line 2
2=10),this._init(t||0,base||10,e||"be"))}var l;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{l=n(380).Buffer}catch(t){}function c(t,e,n){for(var o=0,h=Math.min(t.length,n),l=0,i=e;i<h;i++){var b,c=t.charCodeAt(i)-48;o<<=4,o|=b=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,l|=b}return r(!(240&l),"Invalid character in "+t),o}function d(t,e,n,o){for(var h=0,b=0,l=Math.min(t.length,n),i=e;i<l;i++){var c=t.charCodeAt(i)-48;h*=o,b=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&b<o,"Invalid character"),h+=b}return h}function f(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(t,n):this._parseBase(t,base,n),"-"===t[0]&&(this.negative=1),this._strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,h=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);return this._strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=t.length-6,n=0;i>=e;i-=6)r=c(t,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=c(t,e,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this._strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,h=o%n,l=Math.min(o,o-h)+e,c=0,i=e;i<l;i+=n)c=d(t,i,i+n,base),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==h){var f=1;for(c=d(t,i,t.length,base),i=0;i<h;i++)f*=base;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype._move=function(t){f(t,this)},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?h.prototype[Symbol.for("nodejs.util.inspect.custom")]=m:h.prototype.inspect=m;var 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"],y=[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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 26,628 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<n|o)).toString(16);e=0!==(o=h>>>24-n&16777215)||i!==this.length-1?v[6-l.length]+l+e:l+e,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var c=y[base],d=w[base];e="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(d).toString(base);e=(f=f.idivn(d)).isZero()?m+e:v[c-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16,2)},l&&(h.prototype.toBuffer=function(t,e){return this.toArrayLike(l,t,e)}),h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function M(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,l=o/67108864|0;n.words[0]=h;for(var c=1;c<r;c++){for(var d=l>>>26,f=67108863&l,m=Math.min(c,e.length-1),v=Math.max(0,c-t.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|t.words[i])*(b=0|e.words[v])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,l=0|d}return 0!==l?n.words[c]=0|l:n.length--,n._strip()}h.prototype.toArrayLike=function(t,e,n){this._strip();var o=this.byteLength(),h=n||Math.max(1,o);r(o<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0");var l=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,h);return this["_toArrayLike"+("le"===e?"LE":"BE")](l,o),l},h.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var h=this.words[i]<<o|r;t[n++]=255&h,n<t.length&&(t[n++]=h>>8&255),n<t.length&&(t[n++]=h>>16&255),6===o?(n<t.length&&(t[n++]=h>>24&255),r=0,o=0):(r=h>>>24,o+=2)}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0},h.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var h=this.words[i]<<o|r;t[n--]=255&h,n>=0&&(t[n--]=h>>8&255),n>=0&&(t[n--]=h>>16&255),6===o?(n>=0&&(t[n--]=h>>24&255),r=0,o=0):(r=h>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this._strip()},h.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this._strip()},h.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this._strip()},h.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this._strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this._strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var _=function(t,e,n){var r,o,h,a=t.words,b=e.words,l=n.words,c=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,k=M>>>13,S=0|a[3],x=8191&S,C=S>>>13,T=0|a[4],E=8191&T,A=T>>>13,I=0|a[5],D=8191&I,B=I>>>13,R=0|a[6],P=8191&R,F=R>>>13,O=0|a[7],N=8191&O,L=O>>>13,z=0|a[8],j=8191&z,U=z>>>13,$=0|a[9],V=8191&$,H=$>>>13,W=0|b[0],X=8191&W,Z=W>>>13,G=0|b[1],Y=8191&G,K=G>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,at=0|b[4],st=8191&at,ot=at>>>13,ut=0|b[5],ht=8191&ut,lt=ut>>>13,ct=0|b[6],ft=8191&ct,pt=ct>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,bt=0|b[8],yt=8191&bt,wt=bt>>>13,Mt=0|b[9],_t=8191&Mt,kt=Mt>>>13;n.negative=t.negative^e.negative,n.length=19;var St=(c+(r=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,Z))+Math.imul(m,X)|0))<<13)|0;c=((h=Math.imul(m,Z))+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(y,X),o=(o=Math.imul(y,Z))+Math.imul(w,X)|0,h=Math.imul(w,Z);var xt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(m,Y)|0))<<13)|0;c=((h=h+Math.imul(m,K)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(_,X),o=(o=Math.imul(_,Z))+Math.imul(k,X)|0,h=Math.imul(k,Z),r=r+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,K)|0;var Ct=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(m,Q)|0))<<13)|0;c=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(x,X),o=(o=Math.imul(x,Z))+Math.imul(C,X)|0,h=Math.imul(C,Z),r=r+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,K)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var Tt=(c+(r=r+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(m,it)|0))<<13)|0;c=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(E,X),o=(o=Math.imul(E,Z))+Math.imul(A,X)|0,h=Math.imul(A,Z),r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,Y)|0,h=h+Math.imul(C,K)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(k,Q)|0,h=h+Math.imul(k,tt)|0,r=r+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Et=(c+(r=r+Math.imul(f,st)|0)|0)+((8191&(o=(o=o+Math.imul(f,ot)|0)+Math.imul(m,st)|0))<<13)|0;c=((h=h+Math.imul(m,ot)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),o=(o=Math.imul(D,Z))+Math.imul(B,X)|0,h=Math.imul(B,Z),r=r+Math.imul(E,Y)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(A,Y)|0,h=h+Math.imul(A,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(C,Q)|0,h=h+Math.imul(C,tt)|0,r=r+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,r=r+Math.imul(y,st)|0,o=(o=o+Math.imul(y,ot)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,ot)|0;var At=(c+(r=r+Math.imul(f,ht)|0)|0)+((8191&(o=(o=o+Math.imul(f,lt)|0)+Math.imul(m,ht)|0))<<13)|0;c=((h=h+Math.imul(m,lt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(P,X),o=(o=Math.imul(P,Z))+Math.imul(F,X)|0,h=Math.imul(F,Z),r=r+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,K)|0)+Math.imul(B,Y)|0,h=h+Math.imul(B,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,h=h+Math.imul(A,tt)|0,r=r+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(C,it)|0,h=h+Math.imul(C,nt)|0,r=r+Math.imul(_,st)|0,o=(o=o+Math.imul(_,ot)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,ot)|0,r=r+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,lt)|0;var It=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,pt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,X),o=(o=Math.imul(N,Z))+Math.imul(L,X)|0,h=Math.imul(L,Z),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,K)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(E,it)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(A,it)|0,h=h+Math.imul(A,nt)|0,r=r+Math.imul(x,st)|0,o=(o=o+Math.imul(x,ot)|0)+Math.imul(C,st)|0,h=h+Math.imul(C,ot)|0,r=r+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,lt)|0,r=r+Math.imul(y,ft)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ft)|0,h=h+Math.imul(w,pt)|0;var Dt=(c+(r=r+Math.imul(f,gt)|0)|0)+((8191&(o=(o=o+Math.imul(f,vt)|0)+Math.imul(m,gt)|0))<<13)|0;c=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(j,X),o=(o=Math.imul(j,Z))+Math.imul(U,X)|0,h=Math.imul(U,Z),r=r+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(L,Y)|0,h=h+Math.imul(L,K)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(F,Q)|0,h=h+Math.imul(F,tt)|0,r=r+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(B,it)|0,h=h+Math.imul(B,nt)|0,r=r+Math.imul(E,st)|0,o=(o=o+Math.imul(E,ot)|0)+Math.imul(A,st)|0,h=h+Math.imul(A,ot)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(C,ht)|0,h=h+Math.imul(C,lt)|0,r=r+Math.imul(_,ft)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(k,ft)|0,h=h+Math.imul(k,pt)|0,r=r+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Bt=(c+(r=r+Math.imul(f,yt)|0)|0)+((8191&(o=(o=o+Math.imul(f,wt)|0)+Math.imul(m,yt)|0))<<13)|0;c=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(V,X),o=(o=Math.imul(V,Z))+Math.imul(H,X)|0,h=Math.imul(H,Z),r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,r=r+Math.imul(D,st)|0,o=(o=o+Math.imul(D,ot)|0)+Math.imul(B,st)|0,h=h+Math.imul(B,ot)|0,r=r+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(A,ht)|0,h=h+Math.imul(A,lt)|0,r=r+Math.imul(x,ft)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(C,ft)|0,h=h+Math.imul(C,pt)|0,r=r+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,r=r+Math.imul(y,yt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,yt)|0,h=h+Math.imul(w,wt)|0;var Rt=(c+(r=r+Math.imul(f,_t)|0)|0)+((8191&(o=(o=o+Math.imul(f,kt)|0)+Math.imul(m,_t)|0))<<13)|0;c=((h=h+Math.imul(m,kt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(V,Y),o=(o=Math.imul(V,K))+Math.imul(H,Y)|0,h=Math.imul(H,K),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,Q)|0,h=h+Math.imul(U,tt)|0,r=r+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,r=r+Math.imul(P,st)|0,o=(o=o+Math.imul(P,ot)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,ot)|0,r=r+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,lt)|0)+Math.imul(B,ht)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(A,ft)|0,h=h+Math.imul(A,pt)|0,r=r+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(C,gt)|0,h=h+Math.imul(C,vt)|0,r=r+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(k,yt)|0,h=h+Math.imul(k,wt)|0;var Pt=(c+(r=r+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,kt)|0)+Math.imul(w,_t)|0))<<13)|0;c=((h=h+Math.imul(w,kt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(V,Q),o=(o=Math.imul(V,tt))+Math.imul(H,Q)|0,h=Math.imul(H,tt),r=r+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,r=r+Math.imul(N,st)|0,o=(o=o+Math.imul(N,ot)|0)+Math.imul(L,st)|0,h=h+Math.imul(L,ot)|0,r=r+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,lt)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,lt)|0,r=r+Math.imul(D,ft)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(B,ft)|0,h=h+Math.imul(B,pt)|0,r=r+Math.imul(E,gt)|0,o=(o=o+Math.imul(E,vt)|0)+Math.imul(A,gt)|0,h=h+Math.imul(A,vt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(C,yt)|0,h=h+Math.imul(C,wt)|0;var Ft=(c+(r=r+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,kt)|0)+Math.imul(k,_t)|0))<<13)|0;c=((h=h+Math.imul(k,kt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(H,it)|0,h=Math.imul(H,nt),r=r+Math.imul(j,st)|0,o=(o=o+Math.imul(j,ot)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,ot)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(F,ft)|0,h=h+Math.imul(F,pt)|0,r=r+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(B,gt)|0,h=h+Math.imul(B,vt)|0,r=r+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(A,yt)|0,h=h+Math.imul(A,wt)|0;var Ot=(c+(r=r+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,kt)|0)+Math.imul(C,_t)|0))<<13)|0;c=((h=h+Math.imul(C,kt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(V,st),o=(o=Math.imul(V,ot))+Math.imul(H,st)|0,h=Math.imul(H,ot),r=r+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,lt)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,lt)|0,r=r+Math.imul(N,ft)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(L,ft)|0,h=h+Math.imul(L,pt)|0,r=r+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,r=r+Math.imul(D,yt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(B,yt)|0,h=h+Math.imul(B,wt)|0;var Nt=(c+(r=r+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,kt)|0)+Math.imul(A,_t)|0))<<13)|0;c=((h=h+Math.imul(A,kt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(V,ht),o=(o=Math.imul(V,lt))+Math.imul(H,ht)|0,h=Math.imul(H,lt),r=r+Math.imul(j,ft)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,ft)|0,h=h+Math.imul(U,pt)|0,r=r+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,r=r+Math.imul(P,yt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(F,yt)|0,h=h+Math.imul(F,wt)|0;var Lt=(c+(r=r+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,kt)|0)+Math.imul(B,_t)|0))<<13)|0;c=((h=h+Math.imul(B,kt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(V,ft),o=(o=Math.imul(V,pt))+Math.imul(H,ft)|0,h=Math.imul(H,pt),r=r+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(L,yt)|0,h=h+Math.imul(L,wt)|0;var zt=(c+(r=r+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,kt)|0)+Math.imul(F,_t)|0))<<13)|0;c=((h=h+Math.imul(F,kt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(H,gt)|0,h=Math.imul(H,vt),r=r+Math.imul(j,yt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,yt)|0,h=h+Math.imul(U,wt)|0;var jt=(c+(r=r+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,kt)|0)+Math.imul(L,_t)|0))<<13)|0;c=((h=h+Math.imul(L,kt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(V,yt),o=(o=Math.imul(V,wt))+Math.imul(H,yt)|0,h=Math.imul(H,wt);var Ut=(c+(r=r+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,kt)|0)+Math.imul(U,_t)|0))<<13)|0;c=((h=h+Math.imul(U,kt)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var $t=(c+(r=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,kt))+Math.imul(H,_t)|0))<<13)|0;return c=((h=Math.imul(H,kt))+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,l[0]=St,l[1]=xt,l[2]=Ct,l[3]=Tt,l[4]=Et,l[5]=At,l[6]=It,l[7]=Dt,l[8]=Bt,l[9]=Rt,l[10]=Pt,l[11]=Ft,l[12]=Ot,l[13]=Nt,l[14]=Lt,l[15]=zt,l[16]=jt,l[17]=Ut,l[18]=$t,0!==c&&(l[19]=c,n.length++),n};function k(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,h=0;h<n.length-1;h++){var l=o;o=0;for(var c=67108863&r,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var i=h-f,m=(0|t.words[i])*(0|e.words[f]),v=67108863&m;c=67108863&(v=v+c|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[h]=c,r=l,l=o}return 0!==r?n.words[h]=r:n.length--,n._strip()}function S(t,e,n){return k(t,e,n)}function x(t,e){this.x=t,this.y=e}Math.imul||(_=M),h.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?_(this,t,e):n<63?M(this,t,e):n<1024?k(this,t,e):S(this,t,e)},x.prototype.makeRBT=function(t){for(var e=new Array(t),n=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},x.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},x.prototype.permute=function(t,e,n,r,o,h){for(var i=0;i<h;i++)r[i]=e[t[i]],o[i]=n[t[i]]},x.prototype.transform=function(t,e,n,r,o,h){this.permute(h,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,c=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=c,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],M=n[p+v+s],_=r[p+v+s],k=f*M-m*_;_=f*_+m*M,M=k,n[p+v]=y+M,r[p+v]=w+_,n[p+v+s]=y-M,r[p+v+s]=w-_,v!==l&&(k=c*f-d*m,m=c*m+d*f,f=k)}},x.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},x.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},x.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},x.prototype.convert13b=function(t,e,n,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],n[2*i]=8191&h,h>>>=13,n[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===h),r(0==(-8192&h))},x.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},x.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),h=this.stub(r),l=new Array(r),c=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,f,r),this.transform(l,h,c,d,r,o),this.transform(f,h,m,v,r,o);for(var i=0;i<r;i++){var w=c[i]*m[i]-d[i]*v[i];d[i]=c[i]*v[i]+d[i]*m[i],c[i]=w}return this.conjugate(c,d,r),this.transform(c,d,y,h,r,o),this.conjugate(y,h,r),this.normalize13b(y,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),S(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,h=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=h>>>26,this.words[i]=67108863&h}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=t.words[r]>>>o&1}return e}(t);if(0===e.length)return new h(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n},h.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&n,l=(0|this.words[i])-h<<e;this.words[i]=l|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this._strip()},h.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var c=0;for(i=this.length-1;i>=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-h|d>>>h,c=d&mask}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},h.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this._strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,n){var i,o,h=t.length+n;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var c=(0|t.words[i])*e;l=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this._strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},h.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var c=o-1;c>=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q._strip(),a._strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1==
vendor: 8,334 bytes, line 2
2=t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modrn(t.words[0]))}:this._wordDiv(t,e);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),h=n.cmp(r);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var p=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(p*n+(0|this.words[i]))%t;return e?-n:n},h.prototype.modn=function(t){return this.modrn(t)},h.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new h(1),o=new h(0),l=new h(0),c=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var d=e.clone(),f=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(l.isOdd()||c.isOdd())&&(l.iadd(d),c.isub(f)),l.iushrn(1),c.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(c)):(e.isub(t),l.isub(n),c.isub(o))}return{a:l,b:c,gcd:e.iushln(g)}},h.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),n=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e))}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new B(t)},h.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var C={k256:null,p224:null,p192:null,p25519:null};function T(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function D(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function R(t){B.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}T.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},T.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n._strip(),n},T.prototype.split=function(input,t){input.iushrn(this.n,0,t)},T.prototype.imulK=function(t){return t.imul(this.k)},o(E,T),E.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 15,663 bytes, line 2
2put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|e>>>22,e=n}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(A,T),o(I,T),o(D,T),D.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(C[t])return C[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new A;else if("p192"===t)e=new I;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new D}return C[t]=e,e},B.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},B.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},B.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(f(a,a.umod(this.m)._forceRed(this)),a)},B.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},B.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},B.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},B.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},B.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},B.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},B.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},B.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},B.prototype.isqr=function(a){return this.imul(a,a.clone())},B.prototype.sqr=function(a){return this.mul(a,a)},B.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new h(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new h(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new h(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},B.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},B.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],d=l-1;d>=0;d--){var f=c>>d&1;n!==e[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0}l=26}return n},B.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},B.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new R(t)},o(R,B),R.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},R.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},R.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},R.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},R.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(35)(t))},function(t,e,n){var r=n(1),o=n(77).Reporter,h=n(3).Buffer;function l(base,t){o.call(this,t),h.isBuffer(base)?(this.base=base,this.offset=0,this.length=base.length):this.error("Input not Buffer")}function c(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof c||(t=new c(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=h.byteLength(t);else{if(!h.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}r(l,o),e.DecoderBuffer=l,l.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},l.prototype.restore=function(t){var e=new l(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,o.prototype.restore.call(this,t.reporter),e},l.prototype.isEmpty=function(){return this.offset===this.length},l.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},l.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var n=new l(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},l.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=c,c.prototype.join=function(t,e){return t||(t=new h(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(t,e),e+=n.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):h.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},function(t,e,n){var r=e;r._reverse=function(map){var t={};return Object.keys(map).forEach((function(e){(0|e)==e&&(e|=0);var n=map[e];t[n]=e})),t},r.der=n(388)},function(t,e,n){var r=n(1),o=n(76),base=o.base,h=o.bignum,l=o.constants.der;function c(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new d,this.tree._init(t.body)}function d(t){base.Node.call(this,"der",t)}function f(t,e){var n=t.readUInt8(e);if(t.isError(n))return n;var r=l.tagClass[n>>6],o=0==(32&n);if(31==(31&n)){var h=n;for(n=0;128==(128&h);){if(h=t.readUInt8(e),t.isError(h))return h;n<<=7,n|=127&h}}else n&=31;return{cls:r,primitive:o,tag:n,tagStr:l.tag[n]}}function m(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;var o=127&r;if(o>4)return t.error("length octect is too long");r=0;for(var i=0;i<o;i++){r<<=8;var h=t.readUInt8(n);if(t.isError(h))return h;r|=h}return r}t.exports=c,c.prototype.decode=function(data,t){return data instanceof base.DecoderBuffer||(data=new base.DecoderBuffer(data,t)),this.tree._decode(data,t)},r(d,base.Node),d.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;var r=t.save(),o=f(t,'Failed to peek tag: "'+e+'"');return t.isError(o)?o:(t.restore(r),o.tag===e||o.tagStr===e||o.tagStr+"of"===e||n)},d.prototype._decodeTag=function(t,e,n){var r=f(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var o=m(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(o))return o;if(!n&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(r.primitive||null!==o)return t.skip(o,'Failed to match body of: "'+e+'"');var h=t.save(),l=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(l)?l:(o=t.offset-h.offset,t.restore(h),t.skip(o,'Failed to match body of: "'+e+'"'))},d.prototype._skipUntilEnd=function(t,e){for(;;){var n=f(t,e);if(t.isError(n))return n;var r,o=m(t,n.primitive,e);if(t.isError(o))return o;if(r=n.primitive||null!==o?t.skip(o):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===n.tagStr)break}},d.prototype._decodeList=function(t,e,n,r){for(var o=[];!t.isEmpty();){var h=this._peekTag(t,"end");if(t.isError(h))return h;var l=n.decode(t,"der",r);if(t.isError(l)&&h)break;o.push(l)}return o},d.prototype._decodeStr=function(t,e){if("bitstr"===e){var n=t.readUInt8();return t.isError(n)?n:{unused:n,data:t.raw()}}if("bmpstr"===e){var r=t.raw();if(r.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var o="",i=0;i<r.length/2;i++)o+=String.fromCharCode(r.readUInt16BE(2*i));return o}if("numstr"===e){var h=t.raw().toString("ascii");return this._isNumstr(h)?h:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var l=t.raw().toString("ascii");return this._isPrintstr(l)?l:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},d.prototype._decodeObjid=function(t,e,n){for(var r,o=[],h=0;!t.isEmpty();){var l=t.readUInt8();h<<=7,h|=127&l,0==(128&l)&&(o.push(h),h=0)}128&l&&o.push(h);var c=o[0]/40|0,d=o[0]%40;if(r=n?o:[c,d].concat(o.slice(1)),e){var f=e[r.join(" ")];void 0===f&&(f=e[r.join(".")]),void 0!==f&&(r=f)}return r},d.prototype._decodeTime=function(t,e){var n=t.raw().toString();if("gentime"===e)var r=0|n.slice(0,4),o=0|n.slice(4,6),h=0|n.slice(6,8),l=0|n.slice(8,10),c=0|n.slice(10,12),d=0|n.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|n.slice(0,2),o=0|n.slice(2,4),h=0|n.slice(4,6),l=0|n.slice(6,8),c=0|n.slice(8,10),d=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,o-1,h,l,c,d,0)},d.prototype._decodeNull=function(t){return null},d.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},d.prototype._decodeInt=function(t,e){var n=t.raw(),r=new h(n);return e&&(r=e[r.toString(10)]||r),r},d.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t,e,n){var r=n(1),o=n(3).Buffer,h=n(76),base=h.base,l=h.constants.der;function c(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new d,this.tree._init(t.body)}function d(t){base.Node.call(this,"der",t)}function f(t){return t<10?"0"+t:t}t.exports=c,c.prototype.encode=function(data,t){return this.tree._encode(data,t).join()},r(d,base.Node),d.prototype._encodeComposite=function(t,e,n,content){var header,r=function(t,e,n,r){var o;"seqof"===t?t="seq":"setof"===t&&(t="set");if(l.tagByName.hasOwnProperty(t))o=l.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);o=t}if(o>=31)return r.error("Multi-octet tag encoding unsupported");e||(o|=32);return o|=l.tagClassByName[n||"universal"]<<6}(t,e,n,this.reporter);if(content.length<128)return(header=new o(2))[0]=r,header[1]=content.length,this._createEncoderBuffer([header,content]);for(var h=1,i=content.length;i>=256;i>>=8)h++;(header=new o(2+h))[0]=r,header[1]=128|h;i=1+h;for(var c=content.length;c>0;i--,c>>=8)header[i]=255&c;return this._createEncoderBuffer([header,content])},d.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new o(2*t.length),i=0;i<t.length;i++)n.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(n)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):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"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},d.prototype._encodeObjid=function(t,e,n){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var i=0;i<t.length;i++)t[i]|=0}else if(Array.isArray(t)){t=t.slice();for(i=0;i<t.length;i++)t[i]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var r=0;for(i=0;i<t.length;i++){var h=t[i];for(r++;h>=128;h>>=7)r++}var l=new o(r),c=l.length-1;for(i=t.length-1;i>=0;i--){h=t[i];for(l[c--]=127&h;(h>>=7)>0;)l[c--]=128|127&h}return this._createEncoderBuffer(l)},d.prototype._encodeTime=function(time,t){var e,n=new Date(time);return"gentime"===t?e=[f(n.getFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?e=[f(n.getFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(e,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!o.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new o(n)}if(o.isBuffer(t)){var r=t.length;0===t.length&&r++;var h=new o(r);return t.copy(h),0===t.length&&(h[0]=0),this._createEncoderBuffer(h)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);r=1;for(var i=t;i>=256;i>>=8)r++;for(i=(h=new Array(r)).length-1;i>=0;i--)h[i]=255&t,t>>=8;return 128&h[0]&&h.unshift(0),this._createEncoderBuffer(new o(h))},d.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},d.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},d.prototype._skipDefault=function(t,e,n){var i,r=this._baseState;if(null===r.default)return!1;var data=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,n).join()),data.length!==r.defaultBuffer.length)return!1;for(i=0;i<data.length;i++)if(data[i]!==r.defaultBuffer[i])return!1;return!0}},function(t){t.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"}')},function(t,e,n){var r=n(72),o=n(4).Buffer;function h(t){var e=o.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var n,l=o.alloc(0),i=0;l.length<e;)n=h(i++),l=o.concat([l,r("sha1").update(t).update(n).digest()]);return l.slice(0,e)}},function(t,e){t.exports=function(a,b){for(var t=a.length,i=-1;++i<t;)a[i]^=b[i];return a}},function(t,e,n){var r=n(138),o=n(4).Buffer;t.exports=function(t,e){return o.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}},,,,,,function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});const r=n(29),o=n(436),h=n(492),l=n(58),c=n(100),d=n(493);function f(t,e){return o.ParserFactory.parseOnContentType(t,e)}async function m(t,e={}){let n=t.fileSize;if(await c.hasID3v1Header(t)){n-=128,n-=await d.getLyricsHeaderLength(t)}e.apeHeader=await l.APEv2Parser.findApeFooterOffset(t,n)}e.parseStream=function(t,e,n={}){return f(r.fromStream(t,"string"==typeof e?{mimeType:e}:e),n)},e.parseBuffer=async function(t,e,n={}){const o=new h.RandomBufferReader(t);return await m(o,n),f(r.fromBuffer(t,"string"==typeof e?{mimeType:e}:e),n)},e.parseFromTokenizer=f,e.orderTags=function(t){const e={};for(const n of t)(e[n.id]=e[n.id]||[]).push(n.value);return e},e.ratingToStars=function(t){return void 0===t?0:1+Math.round(4*t)},e.scanAppendingHeaders=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultMessages="End-Of-Stream";class r extends Error{constructor(){super(e.defaultMessages)}}e.EndOfStreamError=r},function(module,exports,__webpack_require__){"use strict";(function(Buffer){const Token=__webpack_require__(5),strtok3=__webpack_require__(29),{stringToBytes:stringToBytes,tarHeaderChecksumMatches:tarHeaderChecksumMatches,uint32SyncSafeToken:uint32SyncSafeToken,uint8ArrayUtf8ByteString:uint8ArrayUtf8ByteString}=__webpack_require__(437),supported=__webpack_require__(438),minimumBytes=4100;async function fromStream(t){const e=await strtok3.fromStream(t);try{return await fromTokenizer(e)}finally{await e.close()}}async function fromBuffer(input){if(!(input instanceof Uint8Array||input instanceof ArrayBuffer||Buffer.isBuffer(input)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof input}\``);const t=input instanceof Buffer?input:Buffer.from(input);if(t&&t.length>1)return fromTokenizer(strtok3.fromBuffer(t))}function _check(t,e,n){n={offset:0,...n};for(const[r,header]of e.entries())if(n.mask){if(header!==(n.mask[r]&t[r+n.offset]))return!1}else if(header!==t[r+n.offset])return!1;return!0}async function _checkSequence(t,e,n){const r=Buffer.alloc(minimumBytes);return await e.ignore(n),await e.peekBuffer(r,{mayBeLess:!0}),r.includes(Buffer.from(t))}async function fromTokenizer(t){try{return _fromTokenizer(t)}catch(t){if(!(t instanceof strtok3.EndOfStreamError))throw t}}async function _fromTokenizer(t){let e=Buffer.alloc(minimumBytes);const n=(header,t)=>_check(e,header,t),r=(header,t)=>n(stringToBytes(header),t);if(t.fileInfo.size||(t.fileInfo.size=Number.MAX_SAFE_INTEGER),await t.peekBuffer(e,{length:12,mayBeLess:!0}),n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(n([37,33]))return await t.peekBuffer(e,{length:24,mayBeLess:!0}),r("PS-Adobe-",{offset:2})&&r(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(n([31,160])||n([31,157]))return{ext:"Z",mime:"application/x-compress"};if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r("ID3")){await t.ignore(6);const e=await t.readToken(uint32SyncSafeToken);return t.position+e>t.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await t.ignore(e),fromTokenizer(t))}if(r("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===e[0]||70===e[0])&&n([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r("FLIF"))return{ext:"flif",mime:"image/flif"};if(r("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(r("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(r("FORM"))return{ext:"aif",mime:"audio/aiff"};if(n([80,75,3,4])){try{for(;t.position+30<t.fileInfo.size;){await t.readBuffer(e,{length:30});const n={compressedSize:e.readUInt32LE(18),uncompressedSize:e.readUInt32LE(22),filenameLength:e.readUInt16LE(26),extraFieldLength:e.readUInt16LE(28)};if(n.filename=await t.readToken(new Token.StringType(n.filenameLength,"utf-8")),await t.ignore(n.extraFieldLength),"META-INF/mozilla.rsa"===n.filename)return{ext:"xpi",mime:"application/x-xpinstall"};if(n.filename.endsWith(".rels")||n.filename.endsWith(".xml")){switch(n.filename.split("/")[0]){case"_rels":break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}if(n.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if("mimetype"===n.filename&&n.compressedSize===n.uncompressedSize){switch(await t.readToken(new Token.StringType(n.compressedSize,"utf-8"))){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"}}}await t.ignore(n.compressedSize)}}catch(t){if(!(t instanceof strtok3.EndOfStreamError))throw t}return{ext:"zip",mime:"application/zip"}}if(r("OggS")){await t.ignore(28);const e=Buffer.alloc(8);return await t.readBuffer(e),_check(e,[79,112,117,115,72,101,97,100]
vendor: 6,765 bytes, line 2
2)?{ext:"opus",mime:"audio/opus"}:_check(e,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(e,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(e,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(e,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(e,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(r("ftyp",{offset:4})&&0!=(96&e[8])){const t=uint8ArrayUtf8ByteString(e,8,12).replace("\0"," ").trim();switch(t){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return t.startsWith("3g")?t.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(r("MThd"))return{ext:"mid",mime:"audio/midi"};if(r("wOFF")&&(n([0,1,0,0],{offset:4})||r("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(r("wOF2")&&(n([0,1,0,0],{offset:4})||r("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(n([212,195,178,161])||n([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(r("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(r("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(r("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(n([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(r("%PDF")){return await(o="Adobe Illustrator",h=1350,_checkSequence(o,t,h))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}var o,h;if(n([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(n([73,73,42,0]))return r("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:n([28,0,254,0],{offset:8})||n([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:n([8,0,0,0],{offset:4})&&(n([45,0,254,0],{offset:8})||n([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(e=Buffer.alloc(24),await t.peekBuffer(e),(n([16,251,134,1],{offset:4})||n([8,0,0,0],{offset:4}))&&n([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r("MAC "))return{ext:"ape",mime:"audio/ape"};if(n([26,69,223,163])){async function l(){const e=await t.peekNumber(Token.UINT8);let mask=128,n=0;for(;0==(e&mask);)++n,mask>>=1;const r=Buffer.alloc(n+1);return await t.readBuffer(r),r}async function c(){const t=await l(),e=await l();e[0]^=128>>e.length-1;const n=Math.min(6,e.length);return{id:t.readUIntBE(0,t.length),len:e.readUIntBE(e.length-n,n)}}const e=await c();switch(await async function(e,n){for(;n>0;){const e=await c();if(17026===e.id)return t.readToken(new Token.StringType(e.len,"utf-8"));await t.ignore(e.len),--n}}(0,e.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(n([82,73,70,70])){if(n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(n([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(n([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(n([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r("MSCF")||r("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(n([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(n([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(n([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(r("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(n([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r("IMPM"))return{ext:"it",mime:"audio/x-it"};if(n([0,0,1,186])){if(n([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(n([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(n([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r("<?xml "))return{ext:"xml",mime:"application/xml"};if(r("BEGIN:"))return{ext:"ics",mime:"text/calendar"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(r("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(r("!<arch>")){return await t.ignore(8),"debian-binary"===await t.readToken(new Token.StringType(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"}}if(n([137,80,78,71,13,10,26,10])){async function d(){return{length:await t.readToken(Token.INT32_BE),type:await t.readToken(new Token.StringType(4,"binary"))}}await t.ignore(8);do{const e=await d();switch(e.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await t.ignore(e.length+4)}}while(t.position<t.fileInfo.size);return{ext:"png",mime:"image/png"}}if(n([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(n([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(n([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(n([48,38,178,117,142,102,207,17,166,217])){async function f(){const e=Buffer.alloc(16);return await t.readBuffer(e),{id:e,size:await t.readToken(Token.UINT64_LE)}}for(await t.ignore(30);t.position+24<t.fileInfo.size;){const header=await f();let e=header.size-24;if(_check(header.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const n=Buffer.alloc(16);if(e-=await t.readBuffer(n),_check(n,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"wma",mime:"audio/x-ms-wma"};
2if(_check(n,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"wmv",mime:"video/x-ms-asf"};break}await t.ignore(e)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(n([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((n([126,16,4])||n([126,24,4]))&&n([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(n([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(n([0,0,0,12,106,80,32,32,13,10,135,10])){switch(await t.ignore(20),await t.readToken(new Token.StringType(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}}if(n([0,0,1,186])||n([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(n([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(n([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(n([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(await t.peekBuffer(e,{length:Math.min(256,t.fileInfo.size),mayBeLess:!0}),r("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(r("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(r("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(n([48,48,48,48,48,48],{offset:148,mask:[248,248,248,248,248,248]})&&tarHeaderChecksumMatches(e))return{ext:"tar",mime:"application/x-tar"};if(n([208,207,17,224,161,177,26,225,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62]))return{ext:"msi",mime:"application/x-msi"};if(n([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(n([71],{offset:4})&&(n([71],{offset:192})||n([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(n([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(n([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(n([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(n([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(n([76,80],{offset:34})&&(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(await t.peekBuffer(e,{length:Math.min(512,t.fileInfo.size),mayBeLess:!0}),n([48,48,48,48,48,48],{offset:148,mask:[248,248,248,248,248,248]})&&tarHeaderChecksumMatches(e))return{ext:"tar",mime:"application/x-tar"};if(n([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};for(let t=0;t<2&&t<e.length-16;t++)if(e.length>=t+2&&n([255,224],{offset:t,mask:[255,224]})){if(n([16],{offset:t+1,mask:[22]}))return n([8],{offset:t+1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(n([2],{offset:t+1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(n([4],{offset:t+1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(n([6],{offset:t+1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",async()=>{const t=new stream.PassThrough;let e;e=stream.pipeline?stream.pipeline(readableStream,t,()=>{}):readableStream.pipe(t);const n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const e=await fromBuffer(n);t.fileType=e}catch(t){reject(t)}resolve(e)})}),fileType={fromStream:fromStream,fromTokenizer:fromTokenizer,fromBuffer:fromBuffer,stream:stream};Object.defineProperty(fileType,"extensions",{get:()=>new Set(supported.extensions)}),Object.defineProperty(fileType,"mimeTypes",{get:()=>new Set(supported.mimeTypes)}),module.exports=fileType}).call(this,__webpack_require__(3).Buffer)},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});class n{constructor(t){this.str=t}static fromBin(t,e=0){return new n(this.decode(t,e))}static decode(t,e=0){return(t.readUInt32LE(e).toString(16)+"-"+t.readUInt16LE(e+4).toString(16)+"-"+t.readUInt16LE(e+6).toString(16)+"-"+t.readUInt16BE(e+8).toString(16)+"-"+t.slice(e+10,e+16).toString("hex")).toUpperCase()}static decodeMediaType(t){switch(t.str){case n.AudioMedia.str:return"audio";case n.VideoMedia.str:return"video";case n.CommandMedia.str:return"command";case n.Degradable_JPEG_Media.str:return"degradable-jpeg";case n.FileTransferMedia.str:return"file-transfer";case n.BinaryMedia.str:return"binary"}}static encode(e){const n=t.alloc(16);return n.writeUInt32LE(parseInt(e.slice(0,8),16),0),n.writeUInt16LE(parseInt(e.slice(9,13),16),4),n.writeUInt16LE(parseInt(e.slice(14,18),16),6),t.from(e.slice(19,23),"hex").copy(n,8),t.from(e.slice(24),"hex").copy(n,10),n}equals(t){return this.str===t.str}toBin(){return n.encode(this.str)}}
2e.default=n,n.HeaderObject=new n("75B22630-668E-11CF-A6D9-00AA0062CE6C"),n.DataObject=new n("75B22636-668E-11CF-A6D9-00AA0062CE6C"),n.SimpleIndexObject=new n("33000890-E5B1-11CF-89F4-00A0C90349CB"),n.IndexObject=new n("D6E229D3-35DA-11D1-9034-00A0C90349BE"),n.MediaObjectIndexObject=new n("FEB103F8-12AD-4C64-840F-2A1D2F7AD48C"),n.TimecodeIndexObject=new n("3CB73FD0-0C4A-4803-953D-EDF7B6228F0C"),n.FilePropertiesObject=new n("8CABDCA1-A947-11CF-8EE4-00C00C205365"),n.StreamPropertiesObject=new n("B7DC0791-A9B7-11CF-8EE6-00C00C205365"),n.HeaderExtensionObject=new n("5FBF03B5-A92E-11CF-8EE3-00C00C205365"),n.CodecListObject=new n("86D15240-311D-11D0-A3A4-00A0C90348F6"),n.ScriptCommandObject=new n("1EFB1A30-0B62-11D0-A39B-00A0C90348F6"),n.MarkerObject=new n("F487CD01-A951-11CF-8EE6-00C00C205365"),n.BitrateMutualExclusionObject=new n("D6E229DC-35DA-11D1-9034-00A0C90349BE"),n.ErrorCorrectionObject=new n("75B22635-668E-11CF-A6D9-00AA0062CE6C"),n.ContentDescriptionObject=new n("75B22633-668E-11CF-A6D9-00AA0062CE6C"),n.ExtendedContentDescriptionObject=new n("D2D0A440-E307-11D2-97F0-00A0C95EA850"),n.ContentBrandingObject=new n("2211B3FA-BD23-11D2-B4B7-00A0C955FC6E"),n.StreamBitratePropertiesObject=new n("7BF875CE-468D-11D1-8D82-006097C9A2B2"),n.ContentEncryptionObject=new n("2211B3FB-BD23-11D2-B4B7-00A0C955FC6E"),n.ExtendedContentEncryptionObject=new n("298AE614-2622-4C17-B935-DAE07EE9289C"),n.DigitalSignatureObject=ne
2w n("2211B3FC-BD23-11D2-B4B7-00A0C955FC6E"),n.PaddingObject=new n("1806D474-CADF-4509-A4BA-9AABCB96AAE8"),n.ExtendedStreamPropertiesObject=new n("14E6A5CB-C672-4332-8399-A96952065B5A"),n.AdvancedMutualExclusionObject=new n("A08649CF-4775-4670-8A16-6E35357566CD"),n.GroupMutualExclusionObject=new n("D1465A40-5A79-4338-B71B-E36B8FD6C249"),n.StreamPrioritizationObject=new n("D4FED15B-88D3-454F-81F0-ED5C45999E24"),n.BandwidthSharingObject=new n("A69609E6-517B-11D2-B6AF-00C04FD908E9"),n.LanguageListObject=new n("7C4346A9-EFE0-4BFC-B229-393EDE415C85"),n.MetadataObject=new n("C5F8CBEA-5BAF-4877-8467-AA8C44FA4CCA"),n.MetadataLibraryObject=new n("44231C94-9498-49D1-A141-1D134E457054"),n.IndexParametersObject=new n("D6E229DF-35DA-11D1-9034-00A0C90349BE"),n.MediaObjectIndexParametersObject=new n("6B203BAD-3F11-48E4-ACA8-D7613DE2CFA7"),n.TimecodeIndexParametersObject=new n("F55E496D-9797-4B5D-8C8B-604DFE9BFB24"),n.CompatibilityObject=new n("26F18B5D-4584-47EC-9F5F-0E651F0452C9"),n.AdvancedContentEncryptionObject=new n("43058533-6981-49E6-9B74-AD12CB86D58C"),n.AudioMedia=new n("F8699E40-5B4D-11CF-A8FD-00805F5C442B"),n.VideoMedia=new n("BC19EFC0-5B4D-11CF-A8FD-00805F5C442B"),n.CommandMedia=new n("59DACFC0-59E6-11D0-A3AC-00A0C90348F6"),n.JFIF_Media=new n("B61BE100-5B4E-11CF-A8FD-00805F5C442B"),n.Degradable_JPEG_Media=new n("35907DE0-E415-11CF-A917-00805F5C442B"),n.FileTransferMedia=new n("91BD222C-F21C-497A-8B6D-5AA86BFC0185"),n.BinaryMedia=new n("3AFB65E2-47EF-40F2-AC2C-70A90D71D343"),n.ASF_Index_Placeholder_Object=new n("D9AADE20-7C17-4F9C-BC28-8555DD98E2A2")}).call(this,n(3).Buffer)},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(79);class h{constructor(t){this.len=t}static fromBase64(e){return this.fromBuffer(t.from(e,"base64"))}static fromBuffer(t){return new h(t.length).get(t,0)}get(e,n){const h=o.AttachedPictureType[r.UINT32_BE.get(e,n)],l=r.UINT32_BE.get(e,n+=4),c=e.toString("utf-8",n+=4,n+l),d=r.UINT32_BE.get(e,n+=l),f=e.toString("utf-8",n+=4,n+d),m=r.UINT32_BE.get(e,n+=d),v=r.UINT32_BE.get(e,n+=4),y=r.UINT32_BE.get(e,n+=4),w=r.UINT32_BE.get(e,n+=4),M=r.UINT32_BE.get(e,n+=4);return{type:h,format:c,description:f,width:m,height:v,colour_depth:y,indexed_color:w,data:t.from(e.slice(n+=4,n+M))}}}e.VorbisPictureToken=h,e.CommonHeader={len:7,get:(t,e)=>({packetType:t.readUInt8(e),vorbis:new r.StringType(6,"ascii").get(t,e+1)})},e.IdentificationHeader={len:23,get:(t,e)=>({version:t.readUInt32LE(e+0),channelMode:t.readUInt8(e+4),sampleRate:t.readUInt32LE(e+5),bitrateMax:t.readUInt32LE(e+9),bitrateNominal:t.readUInt32LE(e+13),bitrateMin:t.readUInt32LE(e+17)})}}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5);e.VorbisDecoder=class{constructor(data,t){this.data=data,this.offset=t}readInt32(){const t=r.UINT32_LE.get(this.data,this.offset);return this.offset+=4,t}readStringUtf8(){const t=this.readInt32(),e=this.data.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e}parseUserComment(){const t=this.offset,e=this.readStringUtf8(),n=e.indexOf("=");return{key:e.slice(0,n).toUpperCase(),value:e.slice(n+1),len:this.offset-t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(15),h=n(14),l=n(6)("music-metadata:parser:MP4:atom");e.Header={len:8,get:(t,e)=>{const n=r.UINT32_BE.get(t,e);if(n<0)throw new Error("Invalid atom header length");return{length:n,name:new r.StringType(4,"binary").get(t,e+4)}},put:(t,e,n)=>(r.UINT32_BE.put(t,e,n.length),o.FourCcToken.put(t,e+4,n.name))},e.ExtendedSize=r.UINT64_BE,e.ftyp={len:4,get:(t,e)=>({type:new r.StringType(4,"ascii").get(t,e)})},e.tkhd={len:4,get:(t,e)=>({type:new r.StringType(4,"ascii").get(t,e)})},e.mhdr={len:8,get:(t,e)=>({version:r.UINT8.get(t,e+0),flags:r.UINT24_BE.get(t,e+1),nextItemID:r.UINT32_BE.get(t,e+4)})};class c{constructor(t,e,n){if(this.len=t,t<e)throw new Error(`Atom ${n} expected to be ${e}, but specifies ${t} bytes long.`);t>e&&l(`Warning: atom ${n} expected to be ${e}, but was actually ${t} bytes long.`)}}
2e.FixedLengthAtom=c;e.MdhdAtom=class extends c{constructor(t){super(t,24,"mdhd"),this.len=t}get(t,e){return{version:r.UINT8.get(t,e+0),flags:r.UINT24_BE.get(t,e+1),creationTime:r.UINT32_BE.get(t,e+4),modificationTime:r.UINT32_BE.get(t,e+8),timeScale:r.UINT32_BE.get(t,e+12),duration:r.UINT32_BE.get(t,e+16),language:r.UINT16_BE.get(t,e+20),quality:r.UINT16_BE.get(t,e+22)}}};e.MvhdAtom=class extends c{constructor(t){super(t,100,"mvhd"),this.len=t}get(t,e){return{version:r.UINT8.get(t,e),flags:r.UINT24_BE.get(t,e+1),creationTime:r.UINT32_BE.get(t,e+4),modificationTime:r.UINT32_BE.get(t,e+8),timeScale:r.UINT32_BE.get(t,e+12),duration:r.UINT32_BE.get(t,e+16),preferredRate:r.UINT32_BE.get(t,e+20),preferredVolume:r.UINT16_BE.get(t,e+24),previewTime:r.UINT32_BE.get(t,e+72),previewDuration:r.UINT32_BE.get(t,e+76),posterTime:r.UINT32_BE.get(t,e+80),selectionTime:r.UINT32_BE.get(t,e+84),selectionDuration:r.UINT32_BE.get(t,e+88),currentTime:r.UINT32_BE.get(t,e+92),nextTrackID:r.UINT32_BE.get(t,e+96)}}};e.DataAtom=class{constructor(t){this.len=t}get(t,e){return{type:{set:r.UINT8.get(t,e+0),type:r.UINT24_BE.get(t,e+1)},locale:r.UINT24_BE.get(t,e+4),value:new r.BufferType(this.len-8).get(t,e+8)}}};e.NameAtom=class{constructor(t){this.len=t}get(t,e){return{version:r.UINT8.get(t,e),flags:r.UINT24_BE.get(t,e+1),name:new r.StringType(this.len-4,"utf-8").get(t,e+4)}}};e.TrackHeaderAtom=class{constructor(t){this.len=t}get(t,e){return{version:r.UINT8.get(t,e),flags:r.UINT24_BE.get(t,e+1),creationTime:r.UINT32_BE.get(t,e+4),modificationTime:r.UINT32_BE.get(t,e+8),trackId:r.UINT32_BE.get(t,e+12),duration:r.UINT32_BE.get(t,e+20),layer:r.UINT16_BE.get(t,e+24),alternateGroup:r.UINT16_BE.get(t,e+26),volume:r.UINT16_BE.get(t,e+28)}}};const d=8,f=(t,e)=>({version:r.UINT8.get(t,e),flags:r.UINT24_BE.get(t,e+1),numberOfEntries:r.UINT32_BE.get(t,e+4)});class m{constructor(t){this.len=t}get(t,e){return{dataFormat:o.FourCcToken.get(t,e),dataReferenceIndex:r.UINT16_BE.get(t,e+10),description:new r.BufferType(this.len-12).get(t,e+12)}}}e.StsdAtom=class{constructor(t){this.len=t}get(t,e){const header=f(t,e);e+=d;const table=[];for(let n=0;n<header.numberOfEntries;++n){const n=r.UINT32_BE.get(t,e);e+=r.UINT32_BE.len,table.push(new m(n).get(t,e)),e+=n}return{header:header,table:table}}},e.SoundSampleDescriptionVersion={len:8,get:(t,e)=>({version:r.INT16_BE.get(t,e),revision:r.INT16_BE.get(t,e+2),vendor:r.INT32_BE.get(t,e+4)})},e.SoundSampleDescriptionV0={len:12,get:(t,e)=>({numAudioChannels:r.INT16_BE.get(t,e+0),sampleSize:r.INT16_BE.get(t,e+2),compressionId:r.INT16_BE.get(t,e+4),packetSize:r.INT16_BE.get(t,e+6),sampleRate:r.UINT16_BE.get(t,e+8)+r.UINT16_BE.get(t,e+10)/1e4})};class v{constructor(t,e){this.len=t,this.token=e}get(t,e){const n=r.INT32_BE.get(t,e+4);return{version:r.INT8.get(t,e+0),flags:r.INT24_BE.get(t,e+1),numberOfEntries:n,entries:y(t,this.token,e+8,this.len-8,n)}}}e.TimeToSampleToken={len:8,get:(t,e)=>({count:r.INT32_BE.get(t,e+0),duration:r.INT32_BE.get(t,e+4)})};e.SttsAtom=class extends v{constructor(t){super(t,e.TimeToSampleToken),this.len=t}},e.SampleToChunkToken={len:12,get:(t,e)=>({firstChunk:r.INT32_BE.get(t,e),samplesPerChunk:r.INT32_BE.get(t,e+4),sampleDescriptionId:r.INT32_BE.get(t,e+8)})};e.StscAtom=class extends v{constructor(t){super(t,e.SampleToChunkToken),this.len=t}};e.StszAtom=class{constructor(t){this.len=t}get(t,e){const n=r.INT32_BE.get(t,e+8);return{version:r.INT8.get(t,e),flags:r.INT24_BE.get(t,e+1),sampleSize:r.INT32_BE.get(t,e+4),numberOfEntries:n,entries:y(t,r.INT32_BE,e+12,this.len-12,n)}}};e.StcoAtom=class extends v{constructor(t){super(t,r.INT32_BE),this.len=t}};function y(t,e,n,r,o){if(l(`remainingLen=${r}, numberOfEntries=${o} * token-len=${e.len}`),0===r)return[];h.equal(r,o*e.len,"mismatch number-of-entries with remaining atom-length");const c=[];for(let r=0;r<o;++r)c.push(e.get(t,n)),n+=e.len;return c}e.ChapterText=class{constructor(t){this.len=t}get(t,e){const n=r.INT16_BE.get(t,e+0);return new r.StringType(n,"utf-8").get(t,e+2)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.string=0]="string",t[t.uint=1]="uint",t[t.uid=2]="uid",t[t.bool=3]="bool",t[t.binary=4]="binary",t[t.float=5]="float"}(e.DataType||(e.DataType={})),function(t){t[t.shot=10]="shot",t[t.scene=20]="scene",t[t.track=30]="track",t[t.part=40]="part",t[t.album=50]="album",t[t.edition=60]="edition",t[t.collection=70]="collection"}(e.TargetType||(e.TargetType={})),function(t){t[t.video=1]="video",t[t.audio=2]="audio",t[t.complex=3]="complex",t[t.logo=4]="logo",t[t.subt
2itle=17]="subtitle",t[t.button=18]="button",t[t.control=32]="control"}(e.TrackType||(e.TrackType={}))},function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var h in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(h,e.headers[h]);s.send(e.body||null)}))}},,function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function l(t,source,e){return t.concat(source).map((function(element){return h(element,e)}))}function c(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function d(object,t){try{return t in object}catch(t){return!1}}function f(t,source,e){var n={};return e.isMergeableObject(t)&&c(t).forEach((function(r){n[r]=h(t[r],e)})),c(source).forEach((function(r){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(d(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"==typeof n?n:m}(r,e)(t[r],source[r],e):n[r]=h(source[r],e))})),n}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||l,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=h;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):f(t,source,e):h(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var v=m;t.exports=v},function(t,e,n){window.eve=n(424);var r=function(t){var e,n={},r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16,(new Date).getTime()),!0},o=Array.isArray||function(a){return a instanceof Array||"[object Array]"==Object.prototype.toString.call(a)},h=0,l="M"+(+new Date).toString(36),c=Date.now||function(){return+new Date},d=function(t){var a=this;if(null==t)return a.s;var e=a.s-t;a.b+=a.dur*e,a.B+=a.dur*e,a.s=t},f=function(t){if(null==t)return this.spd;this.spd=t},m=function(t){var a=this;if(null==t)return a.dur;a.s=a.s*t/a.dur,a.dur=t},v=function(){var a=this;delete n[a.id],a.update(),t("mina.stop."+a.id,a)},y=function(){var a=this;a.pdif||(delete n[a.id],a.update(),a.pdif=a.get()-a.b)},w=function(){var a=this;a.pdif&&(a.b=a.get()-a.pdif,delete a.pdif,n[a.id]=a,_())},M=function(){var t,a=this;if(o(a.start)){t=[];for(var e=0,n=a.start.length;e<n;e++)t[e]=+a.start[e]+(a.end[e]-a.start[e])*a.easing(a.s)}else t=+a.start+(a.end-a.start)*a.easing(a.s);a.set(t)},_=function(o){if(o){var h=0;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i],b=a.get();h++,a.s=(b-a.b)/(a.dur/a.spd),a.s>=1&&(delete n[i],a.s=1,h--,function(a){setTimeout((function(){t("mina.finish."+a.id,a)}))}(a)),a.update()}e=!!h&&r(_)}else e||(e=r(_))},k=function(a,t,b,e,r,o,c){var S={id:l+(h++).toString(36),start:a,end:t,b:b,s:0,dur:e-b,spd:1,get:r,set:o,easing:c||k.linear,status:d,speed:f,duration:m,stop:v,pause:y,resume:w,update:M};n[S.id]=S;var i,x=0;for(i in n)if(n.hasOwnProperty(i)&&2==++x)break;return 1==x&&_(),S};return k.time=c,k.getById=function(t){return n[t]||null},k.linear=function(t){return t},k.easeout=function(t){return Math.pow(t,1.7)},k.easein=function(t){return Math.pow(t,.48)},k.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var q=.48-t/1.04,e=Math.sqrt(.1734+q*q),n=e-q,r=-e-q,o=Math.pow(Math.abs(n),1/3)*(n<0?-1:1)+Math.pow(Math.abs(r),1/3)*(r<0?-1:1)+.5;return 3*(1-o)*o*o+o*o*o},k.backin=function(t){if(1==t)return 1;var s=1.70158;return t*t*((s+1)*t-s)},k.backout=function(t){if(0==t)return 0;var s=1.70158;return(t-=1)*t*((s+1)*t+s)+1},k.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},k.bounce=function(t){var s=7.5625,p=2.75;return t<1/p?s*t*t:t<2/p?s*(t-=1.5/p)*t+.75:t<2.5/p?s*(t-=2.25/p)*t+.9375:s*(t-=2.625/p)*t+.984375},window.mina=k,k}("undefined"==typeof eve?function(){}
2:eve),o=function(t){function e(t,r){if(t){if(t.nodeType)return Q(t);if(F(t,"array")&&e.set)return e.set.apply(e,t);if(t instanceof G)return t;if(null==r)try{return Q(t=n.doc.querySelector(String(t)))}catch(t){return null}}return new J(t=null==t?"100%":t,r=null==r?"100%":r)}e.version="0.5.1",e.toString=function(){return"Snap v"+this.version},e._={};var n={win:t.window,doc:t.window.document};e._.glob=n;var r,o,h="hasOwnProperty",l=String,c=parseFloat,d=parseInt,f=Math,m=f.max,v=f.min,y=f.abs,w=(f.pow,f.PI),M=(f.round,Object.prototype.toString),_=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,k=(e._.separator=/[,\s]+/,/[\s]*,[\s]*/),S={hs:1,rg:1},x=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,C=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,T=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,E=0,A="S"+(+new Date).toString(36),I=function(t){return(t&&t.type?t.type:"")+A+(E++).toString(36)},D="http://www.w3.org/1999/xlink",B="http://www.w3.org/2000/svg",R={};e.url=function(t){return"url('#"+t+"')"};function P(t,e){if(e){if("#text"==t&&(t=n.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=n.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=P(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(D,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(B,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var r in e)if(e[h](r)){var o=l(e[r]);o?"xlink:"==r.substring(0,6)?t.setAttributeNS(D,r.substring(6),o):"xml:"==r.substring(0,4)?t.setAttributeNS(B,r.substring(4),o):t.setAttribute(r,o):t.removeAttribute(r)}}else"text"in e&&(t.nodeValue=e.text)}else t=n.doc.createElementNS(B,t);return t}function F(t,e){return"finite"==(e=l.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||M.call(t).slice(8,-1).toLowerCase()==e)}function O(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}function N(t,e,n){return function r(){var o=Array.prototype.slice.call(arguments,0),l=o.join("␀"),c=r.cache=r.cache||{},d=r.count=r.count||[];return c[h](l)?(O(d,l),n?n(c[l]):c[l]):(d.length>=1e3&&delete c[d.shift()],d.push(l),c[l]=t.apply(e,o),n?n(c[l]):c[l])}}function L(t){return t%360*w/180}e._.$=P,e._.id=I,e.format=(r=/\{([^\}]+)\}/g,o=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return l(t).replace(r,(function(t,n){return function(t,e,n){var r=n;return e.replace(o,(function(t,e,n,o,h){e=e||o,r&&(e in r&&(r=r[e]),"function"==typeof r&&h&&(r=r()))})),r=(null==r||r==n?t:r)+""}(t,n,e)}))}),e._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n=new e.constructor;for(var r in e)e[h](r)&&(n[r]=t(e[r]));return n},e._.cacher=N,e.rad=L,e.deg=function(t){return 180*t/w%360},e.sin=function(t){return f.sin(e.rad(t))},e.tan=function(t){return f.tan(e.rad(t))},e.cos=function(t){return f.cos(e.rad(t))},e.asin=function(t){return e.deg(f.asin(t))},e.acos=function(t){return e.deg(f.acos(t))},e.atan=function(t){return e.deg(f.atan(t))},e.atan2=function(t){return e.deg(f.atan2(t))},e.angle=function t(e,n,r,o,h,l){if(null==h){var c=e-r,d=n-o;return c||d?(180+180*f.atan2(-d,-c)/w+360)%360:0}return t(e,n,h,l)-t(r,o,h,l)},e.len=function(t,n,r,o){return Math.sqrt(e.len2(t,n,r,o))},e.len2=function(t,e,n,r){return(t-n)*(t-n)+(e-r)*(e-r)},e.closestPoint=function(path,t,e){function n(p){var n=p.x-t,r=p.y-e;return n*n+r*r}for(var r,o,h,l,c=path.node,d=c.getTotalLength(),f=d/c.pathSegList.numberOfItems*.125,m=1/0,v=0;v<=d;v+=f)(l=n(h=c.getPointAtLength(v)))<m&&(r=h,o=v,m=l);for(f*=.5;f>.5;){var y,w,M,_,k,S;(M=o-f)>=0&&(k=n(y=c.getPointAtLength(M)))<m?(r=y,o=M,m=k):(_=o+f)<=d&&(S=n(w=c.getPointAtLength(_)))<m?(r=w,o=_,m=S):f*=.5}return r={x:r.x,y:r.y,length:o,distance:Math.sqrt(m)}},e.is=F,e.snapTo=function(t,e,n){if(n=F(n,"finite")?n:10,F(t,"array")){for(var i=t.length;i--;)if(y(t[i]-e)<=n)return t[i]}else{var r=e%(t=+t);if(r<n)return e-r;if(r>t-n)return e-r+t}return e},e.getRGB=N((function(t){if(!t||(t=l(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:$};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:$};if(!S[h](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=z(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:$};var n,r,o,y,w,M,x=t.match(_);return x?(x[2]&&(o=d(x[2].substring(5),16),r=d(x[2].substring(3,5),16),n=d(x[2].substring(1,3),16)),x[3]&&(o=d((w=x[3].charAt(3))+w,16),r=d((w=x[3].charAt(2))+w,16),n=d((w=x[3].charAt(1))+w,16)),x[4]&&(M=x[4].split(k),n=c(M[0]),"%"==M[0].slice(-1)&&(n*=2.55),r=c(M[1]),"%"==M[1].slice(-1)&&(r*=2.55),o=c(M[2]),"%"==M[2].slice(-1)&&(o*=2.55),"rgba"==x[1].toLowerCase().slice(0,4)&&(y=c(M[3])),M[3]&&"%"==M[3].slice(-1)&&(y/=100)),x[5]?(M=x[5].split(k),n=c(M[0]),"%"==M[0].slice(-1)&&(n/=100),r=c(M[1]),"%"==M[1].slice(-1)&&(r/=100),o=c(M[2]),"%"==M[2].slice(-1)&&(o/=100),("deg"==M[0].slice(-3)||"°"==M[0].slice(-1))&&(n/=360),"hsba"==x[1].toLowerCase().slice(0,4)&&(y=c(M[3])),M[3]&&"%"==M[3].slice(-1)&&(y/=100),e.hsb2rgb(n,r,o,y)):x[6]?(M=x[6].split(k),n=c(M[0]),"%"==M[0].slice(-1)&&(n/=100),r=c(M[1]),"%"==M[1].slice(-1)&&(r/=100),o=c(M[2]),"%"==M[2].slice(-1)&&(o/=100),("deg"==M[0].slice(-3)||"°"==M[0].slice(-1))&&(n/=360),"hsla"==x[1].toLowerCase().slice(0,4)&&(y=c(M[3])),M[3]&&"%"==M[3].slice(-1)&&(y/=100),e.hsl2rgb(n,r,o,y)):(n=v(f.round(n),255),r=v(f.round(r),255),o=v(f.round(o),255),y=v(m(y,0),1),(x={r:n,g:r,b:o,toString:$}).hex="#"+(16777216|o|r<<8|n<<16).toString(16).slice(1),x.opacity=F(y,"finite")?y:1,x)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:$}}),e),e.hsb=N((function(t,s,b){return e.hsb2rgb(t,s,b).hex})),e.hsl=N((function(t,s,n){return e.hsl2rgb(t,s,n).hex})),e.rgb=N((function(t,g,b,e){if(F(e,"finite")){var n=f.round;return"rgba("+[n(t),n(g),n(b),+e.toFixed(2)]+")"}return"#"+(16777216|b|g<<8|t<<16).toString(16).slice(1)}));var z=function(t){var i=n.doc.getElementsByTagName("head")[0]||n.doc.getElementsByTagName("svg")[0],e="rgb(255, 0, 0)";return(z=N((function(t){if("red"==t.toLowerCase())return e;i.style.color=e,i.style.color=t;var r=n.doc.defaultView.getComputedStyle(i,"").getPropertyValue("color");return r==e?null:r}
2)))(t)},j=function(){return"hsb("+[this.h,this.s,this.b]+")"},U=function(){return"hsl("+[this.h,this.s,this.l]+")"},$=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},V=function(t,g,b){if(null==g&&F(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(b=t.b,g=t.g,t=t.r),null==g&&F(t,string)){var n=e.getRGB(t);t=n.r,g=n.g,b=n.b}return(t>1||g>1||b>1)&&(t/=255,g/=255,b/=255),[t,g,b]},H=function(t,g,b,n){var r={r:t=f.round(255*t),g:g=f.round(255*g),b:b=f.round(255*b),opacity:F(n,"finite")?n:1,hex:e.rgb(t,g,b),toString:$};return F(n,"finite")&&(r.opacity=n),r};e.color=function(t){var n;return F(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.opacity=1,t.hex=n.hex):F(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.opacity=1,t.hex=n.hex):(F(t,"string")&&(t=e.getRGB(t)),F(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=$,t},e.hsb2rgb=function(t,s,e,n){var r,o,h,l,c;return F(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(e=t.b,s=t.s,n=t.o,t=t.h),l=(c=e*s)*(1-y((t=(t*=360)%360/60)%2-1)),r=o=h=e-c,H(r+=[c,l,0,0,l,c][t=~~t],o+=[l,c,c,l,0,0][t],h+=[0,0,l,c,c,l][t],n)},e.hsl2rgb=function(t,s,e,n){var r,o,h,l,c;return F(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(e=t.l,s=t.s,t=t.h),(t>1||s>1||e>1)&&(t/=360,s/=100,e/=100),l=(c=2*s*(e<.5?e:1-e))*(1-y((t=(t*=360)%360/60)%2-1)),r=o=h=e-c/2,H(r+=[c,l,0,0,l,c][t=~~t],o+=[l,c,c,l,0,0][t],h+=[0,0,l,c,c,l][t],n)},e.rgb2hsb=function(t,g,b){var e,n;return t=(b=V(t,g,b))[0],g=b[1],b=b[2],{h:((0==(n=(e=m(t,g,b))-v(t,g,b))?null:e==t?(g-b)/n:e==g?(b-t)/n+2:(t-g)/n+4)+360)%6*60/360,s:0==n?0:n/e,b:e,toString:j}},e.rgb2hsl=function(t,g,b){var e,n,r,o;return t=(b=V(t,g,b))[0],g=b[1],b=b[2],e=((n=m(t,g,b))+(r=v(t,g,b)))/2,{h:((0==(o=n-r)?null:n==t?(g-b)/o:n==g?(b-t)/o+2:(t-g)/o+4)+360)%6*60/360,s:0==o?0:e<.5?o/(2*e):o/(2-2*e),l:e,toString:U}},e.parsePathString=function(t){if(!t)return null;var n=e.path(t);if(n.arr)return e.path.clone(n.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},data=[];return F(t,"array")&&F(t[0],"array")&&(data=e.path.clone(t)),data.length||l(t).replace(x,(function(a,b,t){var e=[],n=b.toLowerCase();if(t.replace(T,(function(a,b){b&&e.push(+b)})),"m"==n&&e.length>2&&(data.push([b].concat(e.splice(0,2))),n="l",b="m"==b?"l":"L"),"o"==n&&1==e.length&&data.push([b,e[0]]),"r"==n)data.push([b].concat(e));else for(;e.length>=r[n]&&(data.push([b].concat(e.splice(0,r[n]))),r[n]););})),data.toString=e.path.toString,n.arr=e.path.clone(data),data};var W=e.parseTransformString=function(t){if(!t)return null;var data=[];return F(t,"array")&&F(t[0],"array")&&(data=e.path.clone(t)),data.length||l(t).replace(C,(function(a,b,t){var e=[];b.toLowerCase();t.replace(T,(function(a,b){b&&e.push(+b)})),data.push([b].concat(e))})),data.toString=e.path.toString,data};e._.svgTransform2string=function(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,(function(t,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?e.push(["m",1,0,f.tan(L(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,f.tan(L(r[0])),0,1,0,0]):e.push([n.charAt(0)].concat(r)),t})),e},e._.rgTransform=/^[a-z][\s]*-?\.?\d/i,e._.transform2matrix=function(t,n){var r=W(t),o=new e.Matrix;if(r)for(var i=0,h=r.length;i<h;i++){var c,d,f,m,v,y=r[i],w=y.length,M=l(y[0]).toLowerCase(),_=y[0]!=M,k=_?o.invert():0;"t"==M&&2==w?o.translate(y[1],0):"t"==M&&3==w?_?(c=k.x(0,0),d=k.y(0,0),f=k.x(y[1],y[2]),m=k.y(y[1],y[2]),o.translate(f-c,m-d)):o.translate(y[1],y[2]):"r"==M?2==w?(v=v||n,o.rotate(y[1],v.x+v.width/2,v.y+v.height/2)):4==w&&(_?(f=k.x(y[2],y[3]),m=k.y(y[2],y[3]),o.rotate(y[1],f,m)):o.rotate(y[1],y[2],y[3])):"s"==M?2==w||3==w?(v=v||n,o.scale(y[1],y[w-1],v.x+v.width/2,v.y+v.height/2)):4==w?_?(f=k.x(y[2],y[3]),m=k.y(y[2],y[3]),o.scale(y[1],y[1],f,m)):o.scale(y[1],y[1],y[2],y[3]):5==w&&(_?(f=k.x(y[3],y[4]),m=k.y(y[3],y[4]),o.scale(y[1],y[2],f,m)):o.scale(y[1],y[2],y[3],y[4])):"m"==M&&7==w&&o.add(y[1],y[2],y[3],y[4],y[5],y[6])}return o},e._unit2px=function(t,e,n){var svg=X(t).node,r={},o=svg.querySelector(".svg---mgr");o||(o=P("rect"),P(o,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}),svg.appendChild(o));function h(t){if(null==t)return"";if(t==+t)return t;P(o,{width:t});try{return o.getBBox().width}catch(t){return 0}}function l(t){if(null==t)return"";if(t==+t)return t;P(o,{height:t});try{return o.getBBox().height}catch(t){return 0}}function c(o,h){null==e?r[o]=h(t.attr(o)||0):o==e&&(r=h(null==n?t.attr(o)||0:n))}
2switch(t.type){case"rect":c("rx",h),c("ry",l);case"image":c("width",h),c("height",l);case"text":c("x",h),c("y",l);break;case"circle":c("cx",h),c("cy",l),c("r",h);break;case"ellipse":c("cx",h),c("cy",l),c("rx",h),c("ry",l);break;case"line":c("x1",h),c("x2",h),c("y1",l),c("y2",l);break;case"marker":c("refX",h),c("markerWidth",h),c("refY",l),c("markerHeight",l);break;case"radialGradient":c("fx",h),c("fy",l);break;case"tspan":c("dx",h),c("dy",l);break;default:c(e,h)}return svg.removeChild(o),r};n.doc.contains||n.doc.compareDocumentPosition;function X(t){return t.node.ownerSVGElement&&Q(t.node.ownerSVGElement)||e.select("svg")}function Z(t){F(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var i=0,e=0,n=this.node;this[i];)delete this[i++];for(i=0;i<t.length;i++)"set"==t[i].type?t[i].forEach((function(t){n.appendChild(t.node)})):n.appendChild(t[i].node);var r=n.childNodes;for(i=0;i<r.length;i++)this[e++]=Q(r[i]);return this}function G(t){if(t.snap in R)return R[t.snap];var svg;try{svg=t.ownerSVGElement}catch(t){}this.node=t,svg&&(this.paper=new J(svg)),this.type=t.tagName||t.nodeName;var e=this.id=I(this);if(this.anims={},this._={transform:[]},t.snap=e,R[e]=this,"g"==this.type&&(this.add=Z),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var n in J.prototype)J.prototype[h](n)&&(this[n]=J.prototype[n])}function Y(t){this.node=t}function K(t,e){var n=P(t);return e.appendChild(n),Q(n)}function J(t,e){var r,desc,defs,o=J.prototype;if(t&&t.tagName&&"svg"==t.tagName.toLowerCase()){if(t.snap in R)return R[t.snap];var l=t.ownerDocument;for(var c in r=new G(t),desc=t.getElementsByTagName("desc")[0],defs=t.getElementsByTagName("defs")[0],desc||((desc=P("desc")).appendChild(l.createTextNode("Created with Snap")),r.node.appendChild(desc)),defs||(defs=P("defs"),r.node.appendChild(defs)),r.defs=defs,o)o[h](c)&&(r[c]=o[c]);r.paper=r.root=r}else P((r=K("svg",n.doc.body)).node,{height:e,version:1.1,width:t,xmlns:B});return r}function Q(t){return t?t instanceof G||t instanceof Y?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new J(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new J(t.contentDocument.getElementsByTagName("svg")[0]):new G(t):t}e._.getSomeDefs=function(t){var p=t.node.ownerSVGElement&&Q(t.node.ownerSVGElement)||t.node.parentNode&&Q(t.node.parentNode)||e.select("svg")||e(0,0),n=p.select("defs"),defs=null!=n&&n.node;return defs||(defs=K("defs",p.node).node),defs},e._.getSomeSVG=X,e.select=function(t){return t=l(t).replace(/([^\\]):/g,"$1\\:"),Q(n.doc.querySelector(t))},e.selectAll=function(t){for(var r=n.doc.querySelectorAll(t),o=(e.set||Array)(),i=0;i<r.length;i++)o.push(Q(r[i]));return o},setInterval((function(){for(var t in R)if(R[h](t)){var e=R[t],n=e.node;("svg"!=e.type&&!n.ownerSVGElement||"svg"==e.type&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete R[t]}}),1e4),G.prototype.attr=function(t,e){var n=this,r=n.node;if(!t){if(1!=r.nodeType)return{text:r.nodeValue};for(var o=r.attributes,l={},i=0,c=o.length;i<c;i++)l[o[i].nodeName]=o[i].nodeValue;return l}if(F(t,"string")){if(!(arguments.length>1))return eve("snap.util.getattr."+t,n).firstDefined();var d={};d[t]=e,t=d}for(var f in t)t[h](f)&&eve("snap.util.attr."+f,n,t[f]);return n},e.parse=function(svg){var t=n.doc.createDocumentFragment(),e=!0,div=n.doc.createElement("div");if((svg=l(svg)).match(/^\s*<\s*svg(?:\s|>)/)||(svg="<svg>"+svg+"</svg>",e=!1),div.innerHTML=svg,svg=div.getElementsByTagName("svg")[0])if(e)t=svg;else for(;svg.firstChild;)t.appendChild(svg.firstChild);return new Y(t)},e.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),r=n.doc.createDocumentFragment(),i=0,o=t.length;i<o;i++){var h=t[i];h.node&&h.node.nodeType&&r.appendChild(h.node),h.nodeType&&r.appendChild(h),"string"==typeof h&&r.appendChild(e.parse(h).node)}return new Y(r)},e._.make=K,e._.wrap=Q,J.prototype.el=function(t,e){var n=K(t,this.node);return e&&n.attr(e),n},G.prototype.children=function(){for(var t=[],n=this.node.childNodes,i=0,r=n.length;i<r;i++)t[i]=e(n[i]);return t},G.prototype.toJSON=function(){var t=[];return function t(e,n){for(var i=0,r=e.length;i<r;i++){var o={type:e[i].type,attr:e[i].attr()},h=e[i].children();n.push(o),h.length&&t(h,o.childNodes=[])}}([this],t),t[0]},eve.on("snap.util.getattr",(function(){var t=eve.nt(),e=(t=t.substring(t.lastIndexOf(".")+1)).replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return tt[h](e)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(e):P(this.node,t)}));var tt={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode
2-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};eve.on("snap.util.attr",(function(t){var e=eve.nt(),n={};n[e=e.substring(e.lastIndexOf(".")+1)]=t;var style=e.replace(/-(\w)/gi,(function(t,e){return e.toUpperCase()})),r=e.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));tt[h](r)?this.node.style[style]=null==t?"":t:P(this.node,n)})),J.prototype,e.ajax=function(t,e,n,r){var o=new XMLHttpRequest,h=I();if(o){if(F(e,"function"))r=n,n=e,e=null;else if(F(e,"object")){var l=[];for(var c in e)e.hasOwnProperty(c)&&l.push(encodeURIComponent(c)+"="+encodeURIComponent(e[c]));e=l.join("&")}return o.open(e?"POST":"GET",t,!0),e&&(o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-type","application/x-www-form-urlencoded")),n&&(eve.once("snap.ajax."+h+".0",n),eve.once("snap.ajax."+h+".200",n),eve.once("snap.ajax."+h+".304",n)),o.onreadystatechange=function(){4==o.readyState&&eve("snap.ajax."+h+"."+o.status,r,o)},4==o.readyState?o:(o.send(e),o)}},e.load=function(t,n,r){e.ajax(t,(function(t){var o=e.parse(t.responseText);r?n.call(r,o):n(o)}))};return e.getElementByPoint=function(t,e){this.canvas;var r,o,h,body,l,c,d,f=n.doc.elementFromPoint(t,e);if(n.win.opera&&"svg"==f.tagName){var m=(o=(r=f).getBoundingClientRect(),h=r.ownerDocument,body=h.body,l=h.documentElement,c=l.clientTop||body.clientTop||0,d=l.clientLeft||body.clientLeft||0,{y:o.top+(g.win.pageYOffset||l.scrollTop||body.scrollTop)-c,x:o.left+(g.win.pageXOffset||l.scrollLeft||body.scrollLeft)-d}),v=f.createSVGRect();v.x=t-m.x,v.y=e-m.y,v.width=v.height=1;var y=f.getIntersectionList(v,null);y.length&&(f=y[y.length-1])}return f?Q(f):null},e.plugin=function(t){t(e,G,J,n,Y)},n.win.Snap=e,e}(window||this);o.plugin((function(t,e,n,r,o){var h=e.prototype,l=t.is,c=String,d=t._unit2px,f=t._.$,m=t._.make,v=t._.getSomeDefs,y="hasOwnProperty",w=t._.wrap;h.getBBox=function(e){if("tspan"==this.type)return t._.box(this.node.getClientRects().item(0));if(!t.Matrix||!t.path)return this.node.getBBox();var n=this,r=new t.Matrix;if(n.removed)return t._.box();for(;"use"==n.type;)if(e||(r=r.add(n.transform().localMatrix.translate(n.attr("x")||0,n.attr("y")||0))),n.original)n=n.original;else{var o=n.attr("xlink:href");n=n.original=n.node.ownerDocument.getElementById(o.substring(o.indexOf("#")+1))}var h=n._,l=t.path.get[n.type]||t.path.get.deflt;try{return e?(h.bboxwt=l?t.path.getBBox(n.realPath=l(n)):t._.box(n.node.getBBox()),t._.box(h.bboxwt)):(n.realPath=l(n),n.matrix=n.transform().localMatrix,h.bbox=t.path.getBBox(t.path.map(n.realPath,r.add(n.matrix))),t._.box(h.bbox))}catch(e){return t._.box()}};var M=function(){return this.string};function _(e,n){if(null==n){var r=!0;if(!(n="linearGradient"==e.type||"radialGradient"==e.type?e.node.getAttribute("gradientTransform"):"pattern"==e.type?e.node.getAttribute("patternTransform"):e.node.getAttribute("transform")))return new t.Matrix;n=t._.svgTransform2string(n)}else n=t._.rgTransform.test(n)?c(n).replace(/\.{3}|\u2026/g,e._.transform||""):t._.svgTransform2string(n),l(n,"array")&&(n=t.path?t.path.toString.call(n):c(n)),e._.transform=n;var o=t._.transform2matrix(n,e.getBBox(1));if(r)return o;e.matrix=o}h.transform=function(e){var n=this._;if(null==e){for(var i,r=this,o=new t.Matrix(this.node.getCTM()),h=_(this),l=[h],d=new t.Matrix,m=h.toTransformString(),v=c(h)==c(this.matrix)?c(n.transform):m;"svg"!=r.type&&(r=r.parent());)l.push(_(r));for(i=l.length;i--;)d.add(l[i]);return{string:v,globalMatrix:o,totalMatrix:d,localMatrix:h,diffMatrix:o.clone().add(h.invert()),global:o.toTransformString(),total:d.toTransformString(),local:m,toString:M}}return e instanceof t.Matrix?(this.matrix=e,this._.transform=e.toTransformString()):_(this,e),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?f(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?f(this.node,{patternTransform:this.matrix}):f(this.node,{transform:this.matrix})),this},h.parent=function(){return w(this.node.parentNode)},h.append=h.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach((function(t){e.add(t)})),this}t=w(t),this.node.appendChild(t.node),t.paper=this.paper}return this},h.appendTo=function(t){return t&&(t=w(t)).append(this),this},h.prepend=function(t){if(t){if("set"==t.type){var e,n=this;return t.forEach((function(t){e?e.after(t):n.prepend(t),e=t})),this}var r=(t=w(t)).parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),r&&r.add()}return this},h.prependTo=function(t){return(t=w(t)).prepend(this),this},h.before=function(t){if("set"==t.type){var e=this;return t.forEach((function(t){var n=t.parent();
vendor: 8,227 bytes, line 2
2e.node.parentNode.insertBefore(t.node,e.node),n&&n.add()})),this.parent().add(),this}var n=(t=w(t)).parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),n&&n.add(),t.paper=this.paper,this},h.after=function(t){var e=(t=w(t)).parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},h.insertBefore=function(t){t=w(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},h.insertAfter=function(t){t=w(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},h.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},h.select=function(t){return w(this.node.querySelector(t))},h.selectAll=function(e){for(var n=this.node.querySelectorAll(e),r=(t.set||Array)(),i=0;i<n.length;i++)r.push(w(n[i]));return r},h.asPX=function(t,e){return null==e&&(e=this.attr(t)),+d(this,t,e)},h.use=function(){var use,t=this.node.id;return t||(t=this.id,f(this.node,{id:t})),use="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?m(this.type,this.node.parentNode):m("use",this.node.parentNode),f(use.node,{"xlink:href":"#"+t}),use.original=this,use},h.clone=function(){var e=w(this.node.cloneNode(!0));return f(e.node,"id")&&f(e.node,{id:e.id}),function(e){var n,r=e.selectAll("*"),o=/^\s*url\(("|'|)(.*)\1\)\s*$/,h=[],l={};function c(e,n){var r=f(e.node,n);(r=(r=r&&r.match(o))&&r[2])&&"#"==r.charAt()&&(r=r.substring(1))&&(l[r]=(l[r]||[]).concat((function(r){var o={};o[n]=t.url(r),f(e.node,o)})))}function d(t){var e=f(t.node,"xlink:href");e&&"#"==e.charAt()&&(e=e.substring(1))&&(l[e]=(l[e]||[]).concat((function(e){t.attr("xlink:href","#"+e)})))}for(var i=0,m=r.length;i<m;i++){c(n=r[i],"fill"),c(n,"stroke"),c(n,"filter"),c(n,"mask"),c(n,"clip-path"),d(n);var v=f(n.node,"id");v&&(f(n.node,{id:n.id}),h.push({old:v,id:n.id}))}for(i=0,m=h.length;i<m;i++){var y=l[h[i].old];if(y)for(var w=0,M=y.length;w<M;w++)y[w](h[i].id)}}(e),e.insertAfter(this),e},h.toDefs=function(){return v(this).appendChild(this.node),this},h.pattern=h.toPattern=function(t,e,n,r){var p=m("pattern",v(this));return null==t&&(t=this.getBBox()),l(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,t=t.x),f(p.node,{x:t,y:e,width:n,height:r,patternUnits:"userSpaceOnUse",id:p.id,viewBox:[t,e,n,r].join(" ")}),p.node.appendChild(this.node),p},h.marker=function(t,e,n,r,o,h){var p=m("marker",v(this));return null==t&&(t=this.getBBox()),l(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,o=t.refX||t.cx,h=t.refY||t.cy,t=t.x),f(p.node,{viewBox:[t,e,n,r].join(" "),markerWidth:n,markerHeight:r,orient:"auto",refX:o||0,refY:h||0,id:p.id}),p.node.appendChild(this.node),p};var k={};function S(t){return function(){var e=t?"<"+this.type:"",n=this.node.attributes,r=this.node.childNodes;if(t)for(var i=0,o=n.length;i<o;i++)e+=" "+n[i].name+'="'+n[i].value.replace(/"/g,'\\"')+'"';if(r.length){for(t&&(e+=">"),i=0,o=r.length;i<o;i++)3==r[i].nodeType?e+=r[i].nodeValue:1==r[i].nodeType&&(e+=w(r[i]).toString());t&&(e+="</"+this.type+">")}else t&&(e+="/>");return e}}h.data=function(e,n){var data=k[this.id]=k[this.id]||{};if(0==arguments.length)return eve("snap.data.get."+this.id,this,data,null),data;if(1==arguments.length){if(t.is(e,"object")){for(var i in e)e[y](i)&&this.data(i,e[i]);return this}return eve("snap.data.get."+this.id,this,data[e],e),data[e]}return data[e]=n,eve("snap.data.set."+this.id,this,n,e),this},h.removeData=function(t){return null==t?k[this.id]={}:k[this.id]&&delete k[this.id][t],this},h.outerSVG=h.toString=S(1),h.innerSVG=S(),h.toDataURL=function(){if(window&&window.btoa){var e=this.getBBox(),svg=t.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(svg)))}},o.prototype.select=h.select,o.prototype.selectAll=h.selectAll})),o.plugin((function(t,e,n,r,o){var h=Object.prototype.toString,l=String,c=Math;function d(a,b,t,e,n,r){if(null==b&&"[object SVGMatrix]"==h.call(a))return this.a=a.a,this.b=a.b,this.c=a.c,this.d=a.d,this.e=a.e,void(this.f=a.f);null!=a?(this.a=+a,this.b=+b,this.c=+t,this.d=+e,this.e=+n,this.f=+r):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}!function(e){function n(a){return a[0]*a[0]+a[1]*a[1]}function r(a){var t=c.sqrt(n(a));a[0]&&(a[0]/=t),a[1]&&(a[1]/=t)}e.add=function(a,b,t,e,n,r){if(a&&a instanceof d)return this.add(a.a,a.b,a.c,a.d,a.e,a.f);var o=a*this.a+b*this.c,h=a*this.b+b*this.d;return this.e+=n*this.a+r*this.c,this.f+=n*this.b+r*this.d,this.c=t*this.a+e*this.c,this.d=t*this.b+e*this.d,this.a=o,this.b=h,this},d.prototype.multLeft=function(a,b,t,e,n,r){if(a&&a instanceof d)return this.multLeft(a.a,a.b,a.c,a.d,a.e,a.f);var o=a*this.a+t*this.b,h=a*this.c+t*this.d,l=a*this.e+t*this.f+n;return this.b=b*this.a+e*this.b,this.d=b*this.c+e*this.d,this.f=b*this.e+e*this.f+r,this.a=o,this.c=h,this.e=l,this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new d(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new d(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.e+=t*this.a+e*this.c,this.f+=t*this.b+e*this.d,this},e.scale=function(t,e,n,r){return null==e&&(e=t),(n||r)&&this.translate(n,r),this.a*=t,this.b*=t,this.c*=e,this.d*=e,(n||r)&&this.translate(-n,-r),this},e.rotate=function(a,e,n){a=t.rad(a),e=e||0,n=n||0;var r=+c.cos(a).toFixed(9),o=+c.sin(a).toFixed(9);return this.add(r,o,-o,r,e,n),this.add(1,0,0,1,-e,-n)},e.skewX=function(t){return this.skew(t,0)},e.skewY=function(t){return this.skew(0,t)},e.skew=function(e,n){e=e||0,n=n||0,e=t.rad(e),n=t.rad(n);var r=c.tan(e).toFixed(9),b=c.tan(n).toFixed(9);return this.add(1,b,r,1,0,0)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(i){return+this[l.fromCharCode(97+i)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var o=[[this.a,this.b],[this.c,this.d]];e.scalex=c.sqrt(n(o[0])),r(o[0]),e.shear=o[0][0]*o[1][0]+o[0][1]*o[1][1],o[1]=[o[1][0]-o[0][0]*e.shear,o[1][1]-o[0][1]*e.shear],e.scaley=c.sqrt(n(o[1])),r(o[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var h=o[0][1],l=o[1][1];return l<0?(e.rotate=t.deg(c.acos(l)),h<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(c.asin(h)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var s=t||this.split();return+s.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(s.scalex=+s.scalex.toFixed(4),s.scaley=+s.scaley.toFixed(4),s.rotate=+s.rotate.toFixed(4),(s.dx||s.dy?"t"+[+s.dx.toFixed(4),+s.dy.toFixed(4)]:"")+(s.rotate?"r"+[+s.rotate.toFixed(4),0,0]:"")+(1!=s.scalex||1!=s.scaley?"s"+[s.scalex,s.scaley,0,0]:""))}}(d.prototype),t.Matrix=d,t.matrix=function(a,b,t,e,n,r){return new d(a,b,t,e,n,r)}})),o.plugin((function(t,e,n,r,o){var h,l=t._.make,c=t._.wrap,d=t.is,f=t._.getSomeDefs,m=/^url\((['"]?)([^)]+)\1\)$/,v=t._.$,y=t.url,w=String,M=t._.separator;function _(n){return function(r){if(eve.stop(),r instanceof o&&1==r.node.childNodes.length&&("radialGradient"==r.node.firstChild.tagName||"linearGradient"==r.node.firstChild.tagName||"pattern"==r.no
2de.firstChild.tagName)&&(r=r.node.firstChild,f(this).appendChild(r),r=c(r)),r instanceof e)if("radialGradient"==r.type||"linearGradient"==r.type||"pattern"==r.type){r.node.id||v(r.node,{id:r.id});var h=y(r.node.id)}else h=r.attr(n);else if((h=t.color(r)).error){var l=t(f(this).ownerSVGElement).gradient(r);l?(l.node.id||v(l.node,{id:l.id}),h=y(l.node.id)):h=r}else h=w(h);var d={};d[n]=h,v(this.node,d),this.node.style[n]=""}}t.deurl=function(t){var e=String(t).match(m);return e?e[2]:t},eve.on("snap.util.attr.mask",(function(t){if(t instanceof e||t instanceof o){if(eve.stop(),t instanceof o&&1==t.node.childNodes.length&&(t=t.node.firstChild,f(this).appendChild(t),t=c(t)),"mask"==t.type)var mask=t;else(mask=l("mask",f(this))).node.appendChild(t.node);!mask.node.id&&v(mask.node,{id:mask.id}),v(this.node,{mask:y(mask.id)})}})),h=function(t){if(t instanceof e||t instanceof o){eve.stop();for(var n,r=t.node;r;){if("clipPath"===r.nodeName){n=new e(r);break}if("svg"===r.nodeName){n=void 0;break}r=r.parentNode}n||((n=l("clipPath",f(this))).node.appendChild(t.node),!n.node.id&&v(n.node,{id:n.id})),v(this.node,{"clip-path":y(n.node.id||n.id)})}},eve.on("snap.util.attr.clip",h),eve.on("snap.util.attr.clip-path",h),eve.on("snap.util.attr.clipPath",h),eve.on("snap.util.attr.fill",_("fill")),eve.on("snap.util.attr.stroke",_("stroke"));var k=/^([lr])(?:\(([^)]*)\))?(.*)$/i;function S(t){eve.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function x(){return eve.stop(),this.node.style.fontSize}eve.on("snap.util.grad.parse",(function(t){var e=(t=w(t)).match(k);if(!e)return null;var n=e[1],r=e[2],o=e[3];1==(r=r.split(/\s*,\s*/).map((function(t){return+t==t?+t:t}))).length&&0==r[0]&&(r=[]);var h=(o=(o=o.split("-")).map((function(t){var e={color:(t=t.split(":"))[0]};return t[1]&&(e.offset=parseFloat(t[1])),e}))).length,l=0,c=0;function d(i,t){for(var e=(t-l)/(i-c),n=c;n<i;n++)o[n].offset=+(+l+e*(n-c)).toFixed(2);c=i,l=t}h--;for(var i=0;i<h;i++)"offset"in o[i]&&d(i,o[i].offset);return o[h].offset=o[h].offset||100,d(h,o[h].offset),{type:n,params:r,stops:o}})),eve.on("snap.util.attr.d",(function(e){eve.stop(),d(e,"array")&&d(e[0],"array")&&(e=t.path.toString.call(e)),(e=w(e)).match(/[ruo]/i)&&(e=t.path.toAbsolute(e)),v(this.node,{d:e})}))(-1),eve.on("snap.util.attr.#text",(function(t){eve.stop(),t=w(t);for(var e=r.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(e)}))(-1),eve.on("snap.util.attr.path",(function(t){eve.stop(),this.attr({d:t})}))(-1),eve.on("snap.util.attr.class",(function(t){eve.stop(),this.node.className.baseVal=t}))(-1),eve.on("snap.util.attr.viewBox",(function(t){var e;e=d(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):d(t,"array")?t.join(" "):t,v(this.node,{viewBox:e}),eve.stop()}))(-1),eve.on("snap.util.attr.transform",(function(t){this.transform(t),eve.stop()}))(-1),eve.on("snap.util.attr.r",(function(t){"rect"==this.type&&(eve.stop(),v(this.node,{rx:t,ry:t}))}))(-1),eve.on("snap.util.attr.textpath",(function(t){if(eve.stop(),"text"==this.type){var n,r,o;if(!t&&this.textPath){for(r=this.textPath;r.node.firstChild;)this.node.appendChild(r.node.firstChild);return r.remove(),void delete this.textPath}if(d(t,"string")){var defs=f(this),path=c(defs.parentNode).path(t);defs.appendChild(path.node),n=path.id,path.attr({id:n})}else(t=c(t))instanceof e&&((n=t.attr("id"))||(n=t.id,t.attr({id:n})));if(n)if(r=this.textPath,o=this.node,r)r.attr({"xlink:href":"#"+n});else{for(r=v("textPath",{"xlink:href":"#"+n});o.firstChild;)r.appendChild(o.firstChild);o.appendChild(r),this.textPath=c(r)}}}))(-1),eve.on("snap.util.attr.text",(function(t){if("text"==this.type){for(var e=this.node,n=function(t){var e=v("tspan");if(d(t,"array"))for(var i=0;i<t.length;i++)e.appendChild(n(t[i]));else e.appendChild(r.doc.createTextNode(t));return e.normalize&&e.normalize(),e};e.firstChild;)e.removeChild(e.firstChild);for(var o=n(t);o.firstChild;)e.appendChild(o.firstChild)}eve.stop()}))(-1),eve.on("snap.util.attr.fontSize",S)(-1),eve.on("snap.util.attr.font-size",S)(-1),eve.on("snap.util.getattr.transform",(function(){return eve.stop(),this.transform()}))(-1),eve.on("snap.util.getattr.textpath",(function(){return eve.stop(),this.textPath}))(-1),function(){function e(e){return function(){eve.stop();var style=r.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+e);return"none"==style?style:t(r.doc.getElementById(style.match(m)[1]))}}function n(t){return function(e){eve.stop();var n="marker"+t.charAt(0).toUpperCase()+t.substring(1);if(""!=e&&e){if("marker"==e.type){var r=e.node.id;return r||v(e.node,{id:e.id}),void(this.node.style[n]=y(r))}}else this.node.style[n]="none"}}eve.on("snap.util.getattr.marker-end",e("end"))(-1),eve.on("snap.util.getattr.markerEnd",e("end"))(-1),eve.on("snap.util.getattr.marker-start",e("start"))(-1),eve.on("snap.util.getattr.markerStart",e("start"))(-1),eve.on("snap.util.getattr.marker-mid",e("mid"))(-1),eve.on("snap.util.getattr.markerMid",e("mid"))(-1),eve.on("snap.util.attr.marker-end",n("end"))(-1),eve.on("snap.util.attr.markerEnd",n("end"))(-1),eve.on("snap.util.attr.marker-start",n("start"))(-1),eve.on("snap.util.attr.markerStart",n("start"))(-1),eve.on("snap.util.attr.marker-mid",n("mid"))(-1),eve.on("snap.util.attr.markerMid",n("mid"))(-1)}(),eve.on("snap.util.getattr.r",(function(){if("rect"==this.type&&v(this.node,"rx")==v(this.node,"ry"))return eve.stop(),v(this.node,"rx")}))(-1),eve.on("snap.util.getattr.text",(function(){if("text"==this.type||"tspan"==this.type){eve.stop();var t=function t(e){for(var n=[],r=e.childNodes,i=0,o=r.length;i<o;i++){var h=r[i];3==h.nodeType&&n.push(h.nodeValue),"tspan"==h.tagName&&(1==h.childNodes.length&&3==h.firstChild.nodeType?n.push(h.firstChild.nodeValue):n.push(t(h)))}return n}(this.node);return 1==t.length?t[0]:t}}))(-1),eve.on("snap.util.getattr.#text",(function(){return this.node.textContent}))(-1),eve.on("snap.util.getattr.fill",(function(e){if(!e){eve.stop();var n=eve("snap.util.getattr.fill",this,!0).firstDefined();return t(t.deurl(n))||n}}))(-1),eve.on("snap.util.getattr.stroke",(function(e){if(!e){eve.stop();var n=eve("snap.util.getattr.stroke",this,!0).firstDefined();return t(t.deurl(n))||n}}))(-1),eve.on("snap.util.getattr.viewBox",(function(){eve.stop();var e=v(this.node,"viewBox");return e?(e=e.split(M),t._.box(+e[0],+e[1],+e[2],+e[3])):void 0}))(-1),eve.on("snap.util.getattr.points",(function(){var p=v(this.node,"points");return eve.stop(),p?p.split(M):void 0}))(-1),eve.on("snap.util.getattr.path",(function(){var p=v(this.node,"d");return eve.stop(),p}))(-1),eve.on("snap.util.getattr.class",(function(){return this.node.className.baseVal}))(-1),eve.on("snap.util.getattr.fontSize",x)(-1),eve.on("snap.util.getattr.font-size",x)(-1)})),o.plugin((function(t,e,n,r,o){var h=/\S+/g,l=String,c=e.prototype;c.addClass=function(t){var e,n,r,o=l(t||"").match(h)||[],c=this.node,d=c.className.baseVal,f=d.match(h)||[];if(o.length){for(e=0;
2n=o[e++];)~f.indexOf(n)||f.push(n);d!=(r=f.join(" "))&&(c.className.baseVal=r)}return this},c.removeClass=function(t){var e,n,r,o,c=l(t||"").match(h)||[],d=this.node,f=d.className.baseVal,m=f.match(h)||[];if(m.length){for(e=0;r=c[e++];)~(n=m.indexOf(r))&&m.splice(n,1);f!=(o=m.join(" "))&&(d.className.baseVal=o)}return this},c.hasClass=function(t){return!!~(this.node.className.baseVal.match(h)||[]).indexOf(t)},c.toggleClass=function(t,e){if(null!=e)return e?this.addClass(t):this.removeClass(t);var n,r,o,l,c=(t||"").match(h)||[],d=this.node,f=d.className.baseVal,m=f.match(h)||[];for(n=0;o=c[n++];)~(r=m.indexOf(o))?m.splice(r,1):m.push(o);return f!=(l=m.join(" "))&&(d.className.baseVal=l),this}})),o.plugin((function(t,e,n,r,o){var h={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"/":function(t,e){return t/e},"*":function(t,e){return t*e}},l=String,c=/[a-z]+$/i,d=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;function f(t){return t}function m(t){return function(e){return+e.toFixed(3)+t}}eve.on("snap.util.attr",(function(t){var e=l(t).match(d);if(e){var n=eve.nt(),r=n.substring(n.lastIndexOf(".")+1),a=this.attr(r),o={};eve.stop();var f=e[3]||"",m=a.match(c),v=h[e[1]];if(m&&m==f?t=v(parseFloat(a),+e[2]):(a=this.asPX(r),t=v(this.asPX(r),this.asPX(r,e[2]+f))),isNaN(a)||isNaN(t))return;o[r]=t,this.attr(o)}}))(-10),eve.on("snap.util.equal",(function(t,b){var a=l(this.attr(t)||""),e=l(b).match(d);if(e){eve.stop();var n=e[3]||"",r=a.match(c),o=h[e[1]];return r&&r==n?{from:parseFloat(a),to:o(parseFloat(a),+e[2]),f:m(r)}:{from:a=this.asPX(t),to:o(a,this.asPX(t,e[2]+n)),f:f}}}))(-10)})),o.plugin((function(t,e,n,r,o){var h=n.prototype,l=t.is;h.rect=function(t,e,n,r,o,h){var c;return null==h&&(h=o),l(t,"object")&&"[object Object]"==t?c=t:null!=t&&(c={x:t,y:e,width:n,height:r},null!=o&&(c.rx=o,c.ry=h)),this.el("rect",c)},h.circle=function(t,e,n){var r;return l(t,"object")&&"[object Object]"==t?r=t:null!=t&&(r={cx:t,cy:e,r:n}),this.el("circle",r)};var c=function(){function t(){this.parentNode.removeChild(this)}return function(e,n){var img=r.doc.createElement("img"),body=r.doc.body;img.style.cssText="position:absolute;left:-9999em;top:-9999em",img.onload=function(){n.call(img),img.onload=img.onerror=null,body.removeChild(img)},img.onerror=t,body.appendChild(img),img.src=e}}();h.image=function(e,n,r,o,h){var d=this.el("image");if(l(e,"object")&&"src"in e)d.attr(e);else if(null!=e){var f={"xlink:href":e,preserveAspectRatio:"none"};null!=n&&null!=r&&(f.x=n,f.y=r),null!=o&&null!=h?(f.width=o,f.height=h):c(e,(function(){t._.$(d.node,{width:this.offsetWidth,height:this.offsetHeight})})),t._.$(d.node,f)}return d},h.ellipse=function(t,e,n,r){var o;return l(t,"object")&&"[object Object]"==t?o=t:null!=t&&(o={cx:t,cy:e,rx:n,ry:r}),this.el("ellipse",o)},h.path=function(t){var e;return l(t,"object")&&!l(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},h.group=h.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},h.svg=function(t,e,n,r,o,h,c,d){var f={};return l(t,"object")&&null==e?f=t:(null!=t&&(f.x=t),null!=e&&(f.y=e),null!=n&&(f.width=n),null!=r&&(f.height=r),null!=o&&null!=h&&null!=c&&null!=d&&(f.viewBox=[o,h,c,d])),this.el("svg",f)},h.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},h.ptrn=function(t,e,n,r,o,h,c,d){if(l(t,"object"))var f=t;else f={patternUnits:"userSpaceOnUse"},t&&(f.x=t),e&&(f.y=e),null!=n&&(f.width=n),null!=r&&(f.height=r),f.viewBox=null!=o&&null!=h&&null!=c&&null!=d?[o,h,c,d]:[t||0,e||0,n||0,r||0];return this.el("pattern",f)},h.use=function(n){return null!=n?(n instanceof e&&(n.attr("id")||n.attr({id:t._.id(n)}),n=n.attr("id")),"#"==String(n).charAt()&&(n=n.substring(1)),this.el("use",{"xlink:href":"#"+n})):e.prototype.use.call(this)},h.symbol=function(t,e,n,r){var o={};return null!=t&&null!=e&&null!=n&&null!=r&&(o.viewBox=[t,e,n,r]),this.el("symbol",o)},h.text=function(t,e,text){var n={};return l(t,"object")?n=t:null!=t&&(n={x:t,y:e,text:text||""}),this.el("text",n)},h.line=function(t,e,n,r){var o={};return l(t,"object")?o=t:null!=t&&(o={x1:t,x2:n,y1:e,y2:r}),this.el("line",o)},h.polyline=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return l(t,"object")&&!l(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},h.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return l(t,"object")&&!l(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){var e=t._.$;function n(){return this.selectAll("stop")}function r(n,r){var o=e("stop"),h={offset:+r+"%"};
2n=t.color(n),h["stop-color"]=n.hex,n.opacity<1&&(h["stop-opacity"]=n.opacity),e(o,h);for(var l,c=this.stops(),i=0;i<c.length;i++){if(parseFloat(c[i].attr("offset"))>r){this.node.insertBefore(o,c[i].node),l=!0;break}}return l||this.node.appendChild(o),this}function o(){if("linearGradient"==this.type){var n=e(this.node,"x1")||0,r=e(this.node,"x2")||1,o=e(this.node,"y1")||0,h=e(this.node,"y2")||0;return t._.box(n,o,math.abs(r-n),math.abs(h-o))}var l=this.node.cx||.5,c=this.node.cy||.5,d=this.node.r||0;return t._.box(l-d,c-d,2*d,2*d)}function l(e){var n=e,r=this.stops();if("string"==typeof e&&(n=eve("snap.util.grad.parse",null,"l(0,0,0,1)"+e).firstDefined().stops),t.is(n,"array")){for(var i=0;i<r.length;i++)if(n[i]){var o=t.color(n[i].color),h={offset:n[i].offset+"%"};h["stop-color"]=o.hex,o.opacity<1&&(h["stop-opacity"]=o.opacity),r[i].attr(h)}else r[i].remove();for(i=r.length;i<n.length;i++)this.addStop(n[i].color,n[i].offset);return this}}function c(defs,h,c,d,f){var m=t._.make("linearGradient",defs);return m.stops=n,m.addStop=r,m.getBBox=o,m.setStops=l,null!=h&&e(m.node,{x1:h,y1:c,x2:d,y2:f}),m}function d(defs,h,l,c,d,f){var m=t._.make("radialGradient",defs);return m.stops=n,m.addStop=r,m.getBBox=o,null!=h&&e(m.node,{cx:h,cy:l,r:c}),null!=d&&null!=f&&e(m.node,{fx:d,fy:f}),m}h.gradient=function(t){return function(defs,t){var n,r=eve("snap.util.grad.parse",null,t).firstDefined();if(!r)return null;r.params.unshift(defs),n="l"==r.type.toLowerCase()?c.apply(0,r.params):d.apply(0,r.params),r.type!=r.type.toLowerCase()&&e(n.node,{gradientUnits:"userSpaceOnUse"});for(var o=r.stops,h=o.length,i=0;i<h;i++){var l=o[i];n.addStop(l.color,l.offset)}return n}(this.defs,t)},h.gradientLinear=function(t,e,n,r){return c(this.defs,t,e,n,r)},h.gradientRadial=function(t,e,n,r,o){return d(this.defs,t,e,n,r,o)},h.toString=function(){var e,n=this.node.ownerDocument,r=n.createDocumentFragment(),o=n.createElement("div"),svg=this.node.cloneNode(!0);return r.appendChild(o),o.appendChild(svg),t._.$(svg,{xmlns:"http://www.w3.org/2000/svg"}),e=o.innerHTML,r.removeChild(r.firstChild),e},h.toDataURL=function(){if(window&&window.btoa)return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this)))},h.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):h.clear.call({node:e}),e=t}}()})),o.plugin((function(t,e,n,r){var o=e.prototype,h=t.is,l=t._.clone,c=/,?([a-z]),?/gi,d=parseFloat,f=Math,m=f.PI,v=f.min,y=f.max,w=f.pow,M=f.abs;function _(t){var p=_.ps=_.ps||{};return p[t]?p[t].sleep=100:p[t]={sleep:100},setTimeout((function(){for(var e in p)p.hasOwnProperty(e)&&e!=t&&(p[e].sleep--,!p[e].sleep&&delete p[e])})),p[t]}function k(t,e,n,r){return null==t&&(t=e=n=r=0),null==e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:f.min(n,r)/2,r2:f.max(n,r)/2,r0:f.sqrt(n*n+r*r)/2,path:U(t,e,n,r),vb:[t,e,n,r].join(" ")}}function S(){return this.join(",").replace(c,"$1")}function x(t){var e=l(t);return e.toString=S,e}function C(t,e,n,r,o,h,l,c,d){return null==d?O(t,e,n,r,o,h,l,c):D(t,e,n,r,o,h,l,c,function(t,e,n,r,o,h,l,c,d){if(d<0||O(t,e,n,r,o,h,l,c)<d)return;var f,m=.5,v=1-m;f=O(t,e,n,r,o,h,l,c,v);for(;M(f-d)>.01;)f=O(t,e,n,r,o,h,l,c,v+=(f<d?1:-1)*(m/=2));return v}(t,e,n,r,o,h,l,c,d))}function T(n,r){function o(t){return+(+t).toFixed(3)}return t._.cacher((function(path,t,h){path instanceof e&&(path=path.attr("d"));for(var l,c,p,d,f,m="",v={},y=0,i=0,w=(path=K(path)).length;i<w;i++){if("M"==(p=path[i])[0])l=+p[1],c=+p[2];else{if(y+(d=C(l,c,p[1],p[2],p[3],p[4],p[5],p[6]))>t){if(r&&!v.start){if(m+=["C"+o((f=C(l,c,p[1],p[2],p[3],p[4],p[5],p[6],t-y)).start.x),o(f.start.y),o(f.m.x),o(f.m.y),o(f.x),o(f.y)],h)return m;v.start=m,m=["M"+o(f.x),o(f.y)+"C"+o(f.n.x),o(f.n.y),o(f.end.x),o(f.end.y),o(p[5]),o(p[6])].join(),y+=d,l=+p[5],c=+p[6];continue}if(!n&&!r)return f=C(l,c,p[1],p[2],p[3],p[4],p[5],p[6],t-y)}y+=d,l=+p[5],c=+p[6]}m+=p.shift()+p}return v.end=m,f=n?y:r?v:D(l,c,p[0],p[1],p[2],p[3],p[4],p[5],1)}),null,t._.clone)}var E=T(1),A=T(),I=T(0,1);function D(t,e,n,r,o,h,l,c,d){var v=1-d,y=w(v,3),M=w(v,2),_=d*d,k=_*d,S=t+2*d
2*(n-t)+_*(o-2*n+t),x=e+2*d*(r-e)+_*(h-2*r+e),C=n+2*d*(o-n)+_*(l-2*o+n),T=r+2*d*(h-r)+_*(c-2*h+r);return{x:y*t+3*M*d*n+3*v*d*d*o+k*l,y:y*e+3*M*d*r+3*v*d*d*h+k*c,m:{x:S,y:x},n:{x:C,y:T},start:{x:v*t+d*n,y:v*e+d*r},end:{x:v*o+d*l,y:v*h+d*c},alpha:90-180*f.atan2(S-C,x-T)/m}}function B(e,n,r,o,h,l,c,d){t.is(e,"array")||(e=[e,n,r,o,h,l,c,d]);var f=Y.apply(null,e);return k(f.min.x,f.min.y,f.max.x-f.min.x,f.max.y-f.min.y)}function R(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function P(t,e){return t=k(t),R(e=k(e),t.x,t.y)||R(e,t.x2,t.y)||R(e,t.x,t.y2)||R(e,t.x2,t.y2)||R(t,e.x,e.y)||R(t,e.x2,e.y)||R(t,e.x,e.y2)||R(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function F(t,e,n,r,o){return t*(t*(-3*e+9*n-9*r+3*o)+6*e-12*n+6*r)-3*e+3*n}function O(t,e,n,r,o,h,l,c,d){null==d&&(d=1);for(var m=(d=d>1?1:d<0?0:d)/2,v=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],y=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],w=0,i=0;i<12;i++){var M=m*v[i]+m,_=F(M,t,n,o,l),k=F(M,e,r,h,c),S=_*_+k*k;w+=y[i]*f.sqrt(S)}return m*w}function N(t,e,n,r,o,h,l,c){if(!(y(t,n)<v(o,l)||v(t,n)>y(o,l)||y(e,r)<v(h,c)||v(e,r)>y(h,c))){var d=(t-n)*(h-c)-(e-r)*(o-l);if(d){var f=((t*r-e*n)*(o-l)-(t-n)*(o*c-h*l))/d,m=((t*r-e*n)*(h-c)-(e-r)*(o*c-h*l))/d,w=+f.toFixed(2),M=+m.toFixed(2);if(!(w<+v(t,n).toFixed(2)||w>+y(t,n).toFixed(2)||w<+v(o,l).toFixed(2)||w>+y(o,l).toFixed(2)||M<+v(e,r).toFixed(2)||M>+y(e,r).toFixed(2)||M<+v(h,c).toFixed(2)||M>+y(h,c).toFixed(2)))return{x:f,y:m}}}}function L(t,e,n){if(!P(B(t),B(e)))return n?0:[];for(var r=~~(O.apply(0,t)/8),o=~~(O.apply(0,e)/8),h=[],l=[],c={},d=n?0:[],i=0;i<r+1;i++){var p=D.apply(0,t.concat(i/r));h.push({x:p.x,y:p.y,t:i/r})}for(i=0;i<o+1;i++)p=D.apply(0,e.concat(i/o)),l.push({x:p.x,y:p.y,t:i/o});for(i=0;i<r;i++)for(var f=0;f<o;f++){var m=h[i],v=h[i+1],y=l[f],w=l[f+1],_=M(v.x-m.x)<.001?"y":"x",k=M(w.x-y.x)<.001?"y":"x",S=N(m.x,m.y,v.x,v.y,y.x,y.y,w.x,w.y);if(S){if(c[S.x.toFixed(4)]==S.y.toFixed(4))continue;c[S.x.toFixed(4)]=S.y.toFixed(4);var x=m.t+M((S[_]-m[_])/(v[_]-m[_]))*(v.t-m.t),C=y.t+M((S[k]-y[k])/(w[k]-y[k]))*(w.t-y.t);x>=0&&x<=1&&C>=0&&C<=1&&(n?d++:d.push({x:S.x,y:S.y,t1:x,t2:C}))}}return d}function z(t,e,n){t=K(t),e=K(e);for(var r,o,h,l,c,d,f,m,v,y,w=n?0:[],i=0,M=t.length;i<M;i++){var _=t[i];if("M"==_[0])r=c=_[1],o=d=_[2];else{"C"==_[0]?(v=[r,o].concat(_.slice(1)),r=v[6],o=v[7]):(v=[r,o,r,o,c,d,c,d],r=c,o=d);for(var k=0,S=e.length;k<S;k++){var x=e[k];if("M"==x[0])h=f=x[1],l=m=x[2];else{"C"==x[0]?(y=[h,l].concat(x.slice(1)),h=y[6],l=y[7]):(y=[h,l,h,l,f,m,f,m],h=f,l=m);var C=L(v,y,n);if(n)w+=C;else{for(var T=0,E=C.length;T<E;T++)C[T].segment1=i,C[T].segment2=k,C[T].bez1=v,C[T].bez2=y;w=w.concat(C)}}}}}return w}function j(path){var t=_(path);if(t.bbox)return l(t.bbox);if(!path)return k();for(var p,e=0,n=0,r=[],o=[],i=0,h=(path=K(path)).length;i<h;i++)if("M"==(p=path[i])[0])e=p[1],n=p[2],r.push(e),o.push(n);else{var c=Y(e,n,p[1],p[2],p[3],p[4],p[5],p[6]);r=r.concat(c.min.x,c.max.x),o=o.concat(c.min.y,c.max.y),e=p[5],n=p[6]}var d=v.apply(0,r),f=v.apply(0,o),m=k(d,f,y.apply(0,r)-d,y.apply(0,o)-f);return t.bbox=l(m),m}function U(t,e,n,r,o){if(o)return[["M",+t+ +o,e],["l",n-2*o,0],["a",o,o,0,0,1,o,o],["l",0,r-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-n,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-r],["a",o,o,0,0,1,o,-o],["z"]];var h=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return h.toString=S,h}function $(t,e,n,r,a){if(null==a&&null==r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!=a)var o=Math.PI/180,h=t+n*Math.cos(-r*o),l=t+n*Math.cos(-a*o),c=[["M",h,e+n*Math.sin(-r*o)],["A",n,n,0,+(a-r>180),0,l,e+n*Math.sin(-a*o)]];else c=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return c.toString=S,c}var V=t._unit2px,H={path:function(t){return t.attr("path")},circle:function(t){var e=V(t);return $(e.cx,e.cy,e.r)},ellipse:function(t){var e=V(t);return $(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=V(t);return U(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=V(t);return U(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return U(e.x,e.y,e.width,e.height)}};function W(e){var n=_(e);if(n.abs)return x(n.abs);if(h(e,"array")&&h(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r,o=[],l=0,c=0,d=0,f=0,m=0;"M"==e[0][0]&&(d=l=+e[0][1],f=c=+e[0][2],m++,o[0]=["M",l,c]);for(var v,y,w=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),i=m,M=e.length;i<M;i++){if(o.push(v=[]),(r=(y=e[i])[0])!=r.toUpperCase())switch(v[0]=r.toUpperCase(),v[0]){case"A":v[1]=y[1],v[2]=y[2],v[3]=y[3],v[4]=y[4],v[5]=y[5],v[6]=+y[6]+l,v[7]=+y[7]+c;break;case"V":v[1]=+y[1]+c;break;case"H":v[1]=+y[1]+l;break;case"R":for(var k=[l,c].concat(y.slice(1)),C=2,T=k.length;C<T;C++)k[C]=+k[C]+l,k[++C]=+k[C]+c;o.pop(),o=o.concat(J(k,w));break;case"O":o.pop(),(k=$(l,c,y[1],y[2])).push(k[0]),o=o.concat(k);break;case"U":o.pop(),o=o.concat($(l,c,y[1],y[2],y[3])),v=["U"].concat(o[o.length-1].slice(-2));break;case"M":d=+y[1]+l,f=+y[2]+c;default:for(C=1,T=y.length;C<T;C++)v[C]=+y[C]+(C%2?l:c)}else if("R"==r)k=[l,c].concat(y.slice(1)),o.pop(),o=o.concat(J(k,w)),v=["R"].concat(y.slice(-2));else if("O"==r)o.pop(),(k=$(l,c,y[1],y[2])).push(k[0]),o=o.concat(k);else if("U"==r)o.pop(),o=o.concat($(l,c,y[1],y[2],y[3])),v=["U"].concat(o[o.length-1].slice(-2));else for(var E=0,A=y.length;E<A;E++)v[E]=y[E];if("O"!=(r=r.toUpperCase()))switch(v[0]){case"Z":l=+d,c=+f;break;case"H":l=v[1];break;case"V":c=v[1];break;case"M":d=v[v.length-2],f=v[v.length-1];default:l=v[v.length-2],c=v[v.length-1]}}return o.toString=S,n.abs=x(o),o}function X(t,e,n,r){return[t,e,n,r,n,r]}function Z(t,e,n,r,o,h){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*o+2/3*n,1/3*h+2/3*r,o,h]}
2function G(e,n,r,o,h,l,c,d,v,y){var w,_=120*m/180,k=m/180*(+h||0),S=[],x=t._.cacher((function(t,e,n){return{x:t*f.cos(n)-e*f.sin(n),y:t*f.sin(n)+e*f.cos(n)}}));if(!r||!o)return[e,n,d,v,d,v];if(y)P=y[0],F=y[1],B=y[2],R=y[3];else{e=(w=x(e,n,-k)).x,n=w.y,d=(w=x(d,v,-k)).x,v=w.y;f.cos(m/180*h),f.sin(m/180*h);var C=(e-d)/2,T=(n-v)/2,E=C*C/(r*r)+T*T/(o*o);E>1&&(r*=E=f.sqrt(E),o*=E);var A=r*r,I=o*o,D=(l==c?-1:1)*f.sqrt(M((A*I-A*T*T-I*C*C)/(A*T*T+I*C*C))),B=D*r*T/o+(e+d)/2,R=D*-o*C/r+(n+v)/2,P=f.asin(((n-R)/o).toFixed(9)),F=f.asin(((v-R)/o).toFixed(9));(P=e<B?m-P:P)<0&&(P=2*m+P),(F=d<B?m-F:F)<0&&(F=2*m+F),c&&P>F&&(P-=2*m),!c&&F>P&&(F-=2*m)}var O=F-P;if(M(O)>_){var N=F,L=d,z=v;F=P+_*(c&&F>P?1:-1),S=G(d=B+r*f.cos(F),v=R+o*f.sin(F),r,o,h,0,c,L,z,[F,N,B,R])}O=F-P;var j=f.cos(P),U=f.sin(P),$=f.cos(F),V=f.sin(F),H=f.tan(O/4),W=4/3*r*H,X=4/3*o*H,Z=[e,n],Y=[e+W*U,n-X*j],K=[d+W*V,v-X*$],J=[d,v];if(Y[0]=2*Z[0]-Y[0],Y[1]=2*Z[1]-Y[1],y)return[Y,K,J].concat(S);for(var Q=[],i=0,tt=(S=[Y,K,J].concat(S).join().split(",")).length;i<tt;i++)Q[i]=i%2?x(S[i-1],S[i],k).y:x(S[i],S[i+1],k).x;return Q}function Y(t,e,n,r,o,h,l,c){for(var a,b,d,m,w,_,k,S,x=[],C=[[],[]],i=0;i<2;++i)if(0==i?(b=6*t-12*n+6*o,a=-3*t+9*n-9*o+3*l,d=3*n-3*t):(b=6*e-12*r+6*h,a=-3*e+9*r-9*h+3*c,d=3*r-3*e),M(a)<1e-12){if(M(b)<1e-12)continue;0<(m=-d/b)&&m<1&&x.push(m)}else k=b*b-4*d*a,S=f.sqrt(k),k<0||(0<(w=(-b+S)/(2*a))&&w<1&&x.push(w),0<(_=(-b-S)/(2*a))&&_<1&&x.push(_));for(var T,E=x.length,A=E;E--;)T=1-(m=x[E]),C[0][E]=T*T*T*t+3*T*T*m*n+3*T*m*m*o+m*m*m*l,C[1][E]=T*T*T*e+3*T*T*m*r+3*T*m*m*h+m*m*m*c;return C[0][A]=t,C[1][A]=e,C[0][A+1]=l,C[1][A+1]=c,C[0].length=C[1].length=A+2,{min:{x:v.apply(0,C[0]),y:v.apply(0,C[
vendor: 8,087 bytes, line 2
21])},max:{x:y.apply(0,C[0]),y:y.apply(0,C[1])}}}function K(path,t){var e=!t&&_(path);if(!t&&e.curve)return x(e.curve);for(var p=W(path),n=t&&W(t),r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=function(path,t,e){var n,r;if(!path)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(path[0]in{T:1,Q:1})&&(t.qx=t.qy=null),path[0]){case"M":t.X=path[1],t.Y=path[2];break;case"A":path=["C"].concat(G.apply(0,[t.x,t.y].concat(path.slice(1))));break;case"S":"C"==e||"S"==e?(n=2*t.x-t.bx,r=2*t.y-t.by):(n=t.x,r=t.y),path=["C",n,r].concat(path.slice(1));break;case"T":"Q"==e||"T"==e?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),path=["C"].concat(Z(t.x,t.y,t.qx,t.qy,path[1],path[2]));break;case"Q":t.qx=path[1],t.qy=path[2],path=["C"].concat(Z(t.x,t.y,path[1],path[2],path[3],path[4]));break;case"L":path=["C"].concat(X(t.x,t.y,path[1],path[2]));break;case"H":path=["C"].concat(X(t.x,t.y,path[1],t.y));break;case"V":path=["C"].concat(X(t.x,t.y,t.x,path[1]));break;case"Z":path=["C"].concat(X(t.x,t.y,t.X,t.Y))}return path},l=function(t,i){if(t[i].length>7){t[i].shift();for(var e=t[i];e.length;)f[i]="A",n&&(m[i]="A"),t.splice(i++,0,["C"].concat(e.splice(0,6)));t.splice(i,1),M=y(p.length,n&&n.length||0)}},c=function(t,e,r,o,i){t&&e&&"M"==t[i][0]&&"M"!=e[i][0]&&(e.splice(i,0,["M",o.x,o.y]),r.bx=0,r.by=0,r.x=t[i][1],r.y=t[i][2],M=y(p.length,n&&n.length||0))},f=[],m=[],v="",w="",i=0,M=y(p.length,n&&n.length||0);i<M;i++){p[i]&&(v=p[i][0]),"C"!=v&&(f[i]=v,i&&(w=f[i-1])),p[i]=h(p[i],r,w),"A"!=f[i]&&"C"==v&&(f[i]="C"),l(p,i),n&&(n[i]&&(v=n[i][0]),"C"!=v&&(m[i]=v,i&&(w=m[i-1])),n[i]=h(n[i],o,w),"A"!=m[i]&&"C"==v&&(m[i]="C"),l(n,i)),c(p,n,r,o,i),c(n,p,o,r,i);var k=p[i],S=n&&n[i],C=k.length,T=n&&S.length;r.x=k[C-2],r.y=k[C-1],r.bx=d(k[C-4])||r.x,r.by=d(k[C-3])||r.y,o.bx=n&&(d(S[T-4])||o.x),o.by=n&&(d(S[T-3])||o.y),o.x=n&&S[T-2],o.y=n&&S[T-1]}return n||(e.curve=x(p)),n?[p,n]:p}function J(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var p=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4==i?p[3]={x:+t[0],y:+t[1]}:r-2==i&&(p[2]={x:+t[0],y:+t[1]},p[3]={x:+t[2],y:+t[3]}):p[0]={x:+t[r-2],y:+t[r-1]}:r-4==i?p[3]=p[2]:i||(p[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-p[0].x+6*p[1].x+p[2].x)/6,(-p[0].y+6*p[1].y+p[2].y)/6,(p[1].x+6*p[2].x-p[3].x)/6,(p[1].y+6*p[2].y-p[3].y)/6,p[2].x,p[2].y])}return n}t.path=_,t.path.getTotalLength=E,t.path.getPointAtLength=A,t.path.getSubpath=function(path,t,e){if(this.getTotalLength(path)-e<1e-6)return I(path,t).end;var a=I(path,e,1);return t?I(a,t).end:a},o.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},o.getPointAtLength=function(t){return A(this.attr("d"),t)},o.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=k,t.path.findDotsAtSegment=D,t.path.bezierBBox=B,t.path.isPointInsideBBox=R,t.closest=function(e,n,r,o){for(var h=100,b=k(e-h/2,n-h/2,h,h),l=[],c=r[0].hasOwnProperty("x")?function(i){return{x:r[i].x,y:r[i].y}}:function(i){return{x:r[i],y:o[i]}},d=0;h<=1e6&&!d;){for(var i=0,f=r.length;i<f;i++){var m=c(i);if(R(b,m.x,m.y)){d++,l.push(m);break}}d||(b=k(e-(h*=2)/2,n-h/2,h,h))}if(1e6!=h){var v,y=1/0;for(i=0,f=l.length;i<f;i++){var w=t.len(e,n,l[i].x,l[i].y);y>w&&(y=w,l[i].len=w,v=l[i])}return v}},t.path.isBBoxIntersect=P,t.path.intersection=function(t,e){return z(t,e)},t.path.intersectionNumber=function(t,e){return z(t,e,1)},t.path.isPointInside=function(path,t,e){var n=j(path);return R(n,t,e)&&z(path,[["M",t,e],["H",n.x2+10]],1)%2==1},t.path.getBBox=j,t.path.get=H,t.path.toRelative=function(e){var n=_(e),r=String.prototype.toLowerCase;if(n.rel)return x(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var o=[],h=0,l=0,c=0,d=0,f=0;"M"==e[0][0]&&(c=h=e[0][1],d=l=e[0][2],f++,o.push(["M",h,l]));for(var i=f,m=e.length;i<m;i++){var v=o[i]=[],y=e[i];if(y[0]!=r.call(y[0]))switch(v[0]=r.call(y[0]),v[0]){case"a":v[1]=y[1],v[2]=y[2],v[3]=y[3],v[4]=y[4],v[5]=y[5],v[6]=+(y[6]-h).toFixed(3),v[7]=+(y[7]-l).toFixed(3);break;case"v":v[1]=+(y[1]-l).toFixed(3);break;case"m":c=y[1],d=y[2];default:for(var w=1,M=y.length;w<M;w++)v[w]=+(y[w]-(w%2?h:l)).toFixed(3)}else{v=o[i]=[],"m"==y[0]&&(c=y[1]+h,d=y[2]+l);for(var k=0,C=y.length;k<C;k++)o[i][k]=y[k]}var T=o[i].length;switch(o[i][0]){case"z":h=c,l=d;break;case"h":h+=+o[i][T-1];break;case"v":l+=+o[i][T-1];break;default:h+=+o[i][T-2],l+=+o[i][T-1]}}return o.toString=S,n.rel=x(o),o},t.path.toAbsolute=W,t.path.toCubic=K,t.path.map=function(path,t){if(!t)return path;var e,n,i,r,o,h,l;for(i=0,o=(path=K(path)).length;i<o;i++)for(r=1,h=(l=path[i]).length;r<h;r+=2)e=t.x(l[r],l[r+1]),n=t.y(l[r],l[r+1]),l[r]=e,l[r+1]=n;return path},t.path.toString=S,t.path.clone=x})),o.plugin((function(t,e,n,o){var h=Math.max,l=Math.min,c=function(t){if(this.items=[],this.bindings={},this.length=0,this.type="set",t)for(var i=0,e=t.length;i<e;i++)t[i]&&(this[this.items.length]=this.items[this.items.length]=t[i],this.length++)},d=c.prototype;d.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)(t=arguments[i])&&(this[e=this.items.length]=this.items[e]=t,this.length++);return this},d.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},d.forEach=function(t,e){for(var i=0,n=this.items.length;i<n;i++)if(!1===t.call(e,this.items[i],i))return this;return this},d.animate=function(e,n,o,h){"function"!=typeof o||o.length||(h=o,o=r.linear),e instanceof t._.Animation&&(h=e.callback,o=e.easing,n=o.dur,e=e.attr);var l=arguments;if(t.is(e,"array")&&t.is(l[l.length-1],"array"))var c=!0;var d,f=function(){d?this.b=d:d=this.b},m=0,v=this,y=h&&function(){++m==v.length&&h.call(this)};return this.forEach((function(t,i){eve.once("snap.animcreated."+t.id,f),c?l[i]&&t.animate.apply(t,l[i]):t.animate(e,n,o,y)}))},d.remove=function(){for(;this.length;)this.pop().remove();return this},d.bind=function(t,a,b){var data={};if("function"==typeof a)this.bindings[t]=a;else{var e=b||t;this.bindings[t]=function(t){data[e]=t,a.attr(data)}}return this},d.attr=function(t){var e={};for(var n in t)this.bindings[n]?this.bindings[n](t[n]):e[n]=t[n];for(var i=0,r=this.items.length;i<r;i++)this.items[i].attr(e);return this},d.clear=function(){for(;this.length;)this.pop()},d.splice=function(t,e,n){t=t<0?h(this.length+t,0):t,e=h(0,l(this.length-t,e));var i,r=[],o=[],d=[];for(i=2;i<arguments.length;i++)d.push(arguments[i]);for(i=0;i<e;i++)o.push(this[t+i]);for(;i<this.length-t;i++)r.push(this[t+i]);var f=d.length;for(i=0;i<f+r.length;i++)this.items[t+i]=this[t+i]=i<f?d[i]:r[i-f];for(i=this.items.length=this.length-=e-f;this[i];)delete this[i++];return new c(o)},d.exclude=function(t){for(var i=0,e=this.length;i<e;i++)if(this[i]==t)return this.splice(i,1),!0;return!1},d.insertAfter=function(t){for(var i=this.items.length;i--;)this.items[i].insertAfter(t);return this},d.getBBox=function(){for(var t=[],e=[],n=[],r=[],i=this.items.length;i--;)if(!this.items[i].removed){var o=this.items[i].getBBox();t.push(o.x),e.push(o.y),n.push(o.x+o.width),r.push(o.y+o.height)}return{x:t=l.apply(0,t),y:e=l.apply(0,e),x2:n=h.apply(0,n),y2:r=h.apply(0,r),width:n-t,height:r-e,cx:t+(n-t)/2,cy:e+(r-e)/2}},d.clone=function(s){s=new c;for(var i=0,t=this.items.length;i<t;i++)s.push(this.items[i].clone());return s},d.toString=function(){return"Snap‘s set"},d.type="set",t.Set=c,t.set=function(){var t=new c;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}})),o.plugin((function(t,e,n,r){var o={},h=/[%a-z]+$/i,l=String;function c(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function d(t){return t}function f(t){return t.join(" ")}function m(e){return t.rgb(e[0],e[1],e[2],e[3])}function v(path){var i,t,e,n,r,a,o=0,b=[];for(i=0,t=path.length;i<t;i++){for(r="[",a=['"'+path[i][0]+'"'],e=1,n=path[i].length;e<n;e++)a[e]="val["+o+++"]";r+=a+"]",b[i]=r}return Function("val","return Snap.path.toString.call(["+b+"])")}
2function y(path){for(var t=[],i=0,e=path.length;i<e;i++)for(var n=1,r=path[i].length;n<r;n++)t.push(path[i][n]);return t}function w(t){return isFinite(t)}o.stroke=o.fill="colour",e.prototype.equal=function(t,b){return eve("snap.util.equal",this,t,b).firstDefined()},eve.on("snap.util.equal",(function(e,b){var n,r,a=l(this.attr(e)||""),M=this;if("colour"==o[e])return n=t.color(a),r=t.color(b),{from:[n.r,n.g,n.b,n.opacity],to:[r.r,r.g,r.b,r.opacity],f:m};if("viewBox"==e)return{from:n=this.attr(e).vb.split(" ").map(Number),to:r=b.split(" ").map(Number),f:f};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return"string"==typeof b&&(b=l(b).replace(/\.{3}|\u2026/g,a)),function(e,n,r){e=e||new t.Matrix,n=n||new t.Matrix,e=t.parseTransformString(e.toTransformString())||[],n=t.parseTransformString(n.toTransformString())||[];for(var o,h,l,d,f=Math.max(e.length,n.length),m=[],w=[],i=0;i<f;i++){if(l=e[i]||c(n[i]),d=n[i]||c(l),l[0]!=d[0]||"r"==l[0].toLowerCase()&&(l[2]!=d[2]||l[3]!=d[3])||"s"==l[0].toLowerCase()&&(l[3]!=d[3]||l[4]!=d[4])){e=t._.transform2matrix(e,r()),n=t._.transform2matrix(n,r()),m=[["m",e.a,e.b,e.c,e.d,e.e,e.f]],w=[["m",n.a,n.b,n.c,n.d,n.e,n.f]];break}for(m[i]=[],w[i]=[],o=0,h=Math.max(l.length,d.length);o<h;o++)o in l&&(m[i][o]=l[o]),o in d&&(w[i][o]=d[o])}return{from:y(m),to:y(w),f:v(m)}}(a=this.matrix,b=t._.rgTransform.test(b)?t._.transform2matrix(b,this.getBBox()):t._.transform2matrix(t._.svgTransform2string(b),this.getBBox()),(function(){return M.getBBox(1)}));if("d"==e||"path"==e)return{from:y((n=t.path.toCubic(a,b))[0]),to:y(n[1]),f:v(n[0])};if("points"==e)return{from:n=l(a).split(t._.separator),to:r=l(b).split(t._.separator),f:function(t){return t}};if(w(a)&&w(b))return{from:parseFloat(a),to:parseFloat(b),f:d};var _,k,S,x=a.match(h),C=l(b).match(h);return x&&(k=x,S=C,t.is(k,"array")&&t.is(S,"array")&&k.toString()==S.toString())?{from:parseFloat(a),to:parseFloat(b),f:(_=x,function(t){return+t.toFixed(3)+_})}:{from:this.asPX(e),to:this.asPX(e,b),f:d}}))})),o.plugin((function(t,e,n,r){for(var o=e.prototype,h=("createTouch"in r.doc),l=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],c={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},d=function(t,e){var n="y"==t?"scrollTop":"scrollLeft",o=e&&e.node?e.node.ownerDocument:r.doc;return o[n in o.documentElement?"documentElement":"body"][n]},f=function(){return this.originalEvent.preventDefault()},m=function(){return this.originalEvent.stopPropagation()},v=function(t,e,n,element){var r=h&&c[e]?c[e]:e,o=function(r){var o=d("y",element),l=d("x",element);if(h&&c.hasOwnProperty(e))for(var i=0,v=r.targetTouches&&r.targetTouches.length;i<v;i++)if(r.targetTouches[i].target==t||t.contains(r.targetTouches[i].target)){var y=r;(r=r.targetTouches[i]).originalEvent=y,r.preventDefault=f,r.stopPropagation=m;break}var w=r.clientX+l,M=r.clientY+o;return n.call(element,r,w,M)};return e!==r&&t.addEventListener(e,o,!1),t.addEventListener(r,o,!1),function(){return e!==r&&t.removeEventListener(e,o,!1),t.removeEventListener(r,o,!1),!0}},y=[],w=function(t){for(var e,n=t.clientX,r=t.clientY,o=d("y"),l=d("x"),c=y.length;c--;){if(e=y[c],h){for(var f,i=t.touches&&t.touches.length;i--;)if((f=t.touches[i]).identifier==e.el._drag.id||e.el.node.contains(f.target)){n=f.clientX,r=f.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var m=e.el.node;m.nextSibling,m.parentNode,m.style.display;n+=l,r+=o,eve("snap.drag.move."+e.el.id,e.move_scope||e.el,n-e.el._drag.x,r-e.el._drag.y,n,r,t)}},M=function(e){t.unmousemove(w).unmouseup(M);for(var n,i=y.length;i--;)(n=y[i]).el._drag={},eve("snap.drag.end."+n.el.id,n.end_scope||n.start_scope||n.move_scope||n.el,e),eve.off("snap.drag.*."+n.el.id);y=[]},i=l.length;i--;)!function(e){t[e]=o[e]=function(n,r){if(t.is(n,"function"))this.events=this.events||[],this.events.push({name:e,f:n,unbind:v(this.node||document,e,n,r||this)});else for(var i=0,o=this.events.length;i<o;i++)if(this.events[i].name==e)try{this.events[i].f.call(this)}catch(t){}return this},t["un"+e]=o["un"+e]=function(t){for(var n=this.events||[],r=n.length;r--;)if(n[r].name==e&&(n[r].f==t||!t))return n[r].unbind(),n.splice(r,1),!n.length&&delete this.events,this;return this}}(l[i]);o.hover=function(t,e,n,r){return this.mouseover(t,n).mouseout(e,r||n)},o.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var _=[];o.drag=function(e,n,r,o,h,l){var c,d=this;if(!arguments.length)return d.drag((function(t,e){this.attr({transform:c+(c?"T":"t")+[t,e]})}),(function(){c=this.transform().local}));function f(c,f,m){(c.originalEvent||c).preventDefault(),d._drag.x=f,d._drag.y=m,d._drag.id=c.identifier,!y.length&&t.mousemove(w).mouseup(M),y.push({el:d,move_scope:o,start_scope:h,end_scope:l}),n&&eve.on("snap.drag.start."+d.id,n),e&&eve.on("snap.drag.move."+d.id,e),r&&eve.on("snap.drag.end."+d.id,r),eve("snap.drag.start."+d.id,h||o||d,f,m,c)}function m(t,e,n){eve("snap.draginit."+d.id,d,t,e,n)}return eve.on("snap.draginit."+d.id,f),d._drag={},_.push({el:d,start:f,init:m}),d.mousedown(m),d},o.undrag=function(){for(var i=_.length;i--;)_[i].el==this&&(this.unmousedown(_[i].init),_.splice(i,1),eve.unbind("snap.drag.*."+this.id
2),eve.unbind("snap.draginit."+this.id));return!_.length&&t.unmousemove(w).unmouseup(M),this}})),o.plugin((function(t,e,n,r){e.prototype;var o=n.prototype,h=/^\s*url\((.+)\)/,l=String,c=t._.$;t.filter={},o.filter=function(n){var r=this;"svg"!=r.type&&(r=r.paper);var o=t.parse(l(n)),h=t._.id(),filter=(r.node.offsetWidth,r.node.offsetHeight,c("filter"));return c(filter,{id:h,filterUnits:"userSpaceOnUse"}),filter.appendChild(o.node),r.defs.appendChild(filter),new e(filter)},eve.on("snap.util.getattr.filter",(function(){eve.stop();var p=c(this.node,"filter");if(p){var e=l(p).match(h);return e&&t.select(e[1])}})),eve.on("snap.util.attr.filter",(function(n){if(n instanceof e&&"filter"==n.type){eve.stop();var r=n.node.id;r||(c(n.node,{id:n.id}),r=n.id),c(this.node,{filter:t.url(r)})}n&&"none"!=n||(eve.stop(),this.node.removeAttribute("filter"))})),t.filter.blur=function(e,n){null==e&&(e=2);var r=null==n?e:[e,n];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:r})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,r,o,h){return null==h&&(null==o?(h=r,r=4,o="#000"):(h=o,o=r,r=4)),null==r&&(r=4),null==h&&(h=1),null==e&&(e=0,n=2),null==n&&(n=e),o=t.color(o),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:o,dx:e,dy:n,blur:r,opacity:h})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}})),o.plugin((function(t,e,n,r,o){var h=t._.box,l=t.is,c=/^[^a-z]*([tbmlrc])/i,d=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&l(t,"string")&&(e=t,t=null);var n=(t=t||this.paper).getBBox?t.getBBox():h(t),r=this.getBBox(),o={};switch(e=(e=e&&e.match(c))?e[1].toLowerCase():"c"){case"t":o.dx=0,o.dy=n.y-r.y;break;case"b":o.dx=0,o.dy=n.y2-r.y2;break;case"m":o.dx=0,o.dy=n.cy-r.cy;break;case"l":o.dx=n.x-r.x,o.dy=0;break;case"r":o.dx=n.x2-r.x2,o.dy=0;break;default:o.dx=n.cx-r.cx,o.dy=0}return o.toString=d,o},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}})),o.plugin((function(t,e,n,o,h){var l=e.prototype,c=t.is,d=String,f="hasOwnProperty";function m(t,e,n){return function(r){var o=r.slice(t,e);return 1==o.length&&(o=o[0]),n?n(o):o}}var v=function(t,e,n,o){"function"!=typeof n||n.length||(o=n,n=r.linear),this.attr=t,this.dur=e,n&&(this.easing=n),o&&(this.callback=o)};t._.Animation=v,t.animation=function(t,e,n,r){return new v(t,e,n,r)},l.inAnim=function(){var t=[];for(var e in this.anims)this.anims[f](e)&&function(a){t.push({anim:new v(a._attrs,a.dur,a.easing,a._callback),mina:a,curStatus:a.status(),status:function(t){return a.status(t)},stop:function(){a.stop()}})}(this.anims[e]);return t},t.animate=function(t,e,n,o,h,l){"function"!=typeof h||h.length||(l=h,h=r.linear);var c=r.time(),d=r(t,e,c,c+o,r.time,n,h);return l&&eve.once("mina.finish."+d.id,l),d},l.stop=function(){for(var t=this.inAnim(),i=0,e=t.length;i<e;i++)t[i].stop();return this},l.animate=function(t,e,n,o){"function"!=typeof n||n.length||(o=n,n=r.linear),t instanceof v&&(o=t.callback,n=t.easing,e=t.dur,t
2=t.attr);var h,l,y,w,M=[],_=[],k={},S=this;for(var x in t)if(t[f](x)){S.equal?(h=(w=S.equal(x,d(t[x]))).from,l=w.to,y=w.f):(h=+S.attr(x),l=+t[x]);var C=c(h,"array")?h.length:1;k[x]=m(M.length,M.length+C,y),M=M.concat(h),_=_.concat(l)}var T=r.time(),E=r(M,_,T,T+e,r.time,(function(t){var e={};for(var n in k)k[f](n)&&(e[n]=k[n](t));S.attr(e)}),n);return S.anims[E.id]=E,E._attrs=t,E._callback=o,eve("snap.animcreated."+S.id,E),eve.once("mina.finish."+E.id,(function(){eve.off("mina.*."+E.id),delete S.anims[E.id],o&&o.call(S)})),eve.once("mina.stop."+E.id,(function(){eve.off("mina.*."+E.id),delete S.anims[E.id]})),S}})),o.plugin((function(t,e,n,r){function o(t){t=t.split(/(?=#)/);var e=new String(t[5]);return e[50]=t[0],e[100]=t[1],e[200]=t[2],e[300]=t[3],e[400]=t[4],e[500]=t[5],e[600]=t[6],e[700]=t[7],e[800]=t[8],e[900]=t[9],t[10]&&(e.A100=t[10],e.A200=t[11],e.A400=t[12],e.A700=t[13]),e}t.mui={},t.flat={},t.mui.red=o("#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000"),t.mui.pink=o("#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162"),t.mui.purple=o("#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF"),t.mui.deeppurple=o("#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA"),t.mui.indigo=o("#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE"),t.mui.blue=o("#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF"),t.mui.lightblue=o("#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA"),t.mui.cyan=o("#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4"),t.mui.teal=o("#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5"),t.mui.green=o("#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853"),t.mui.lightgreen=o("#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17"),t.mui.lime=o("#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00"),t.mui.yellow=o("#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600"),t.mui.amber=o("#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00"),t.mui.orange=o("#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00"),t.mui.deeporange=o("#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00"),t.mui.brown=o("#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723"),t.mui.grey=o("#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121"),t.mui.bluegrey=o("#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238"),t.flat.turquoise="#1abc9c",t.flat.greensea="#16a085",t.flat.sunflower="#f1c40f",t.flat.orange="#f39c12",t.flat.emerland="#2ecc71",t.flat.nephritis="#27ae60",t.flat.carrot="#e67e22",t.flat.pumpkin="#d35400",t.flat.peterriver="#3498db",t.flat.belizehole="#2980b9",t.flat.alizarin="#e74c3c",t.flat.pomegranate="#c0392b",t.flat.amethyst="#9b59b6",t.flat.wisteria="#8e44ad",t.flat.clouds="#ecf0f1",t.flat.silver="#bdc3c7",t.flat.wetasphalt="#34495e",t.flat.midnightblue="#2c3e50",t.flat.concrete="#95a5a6",t.flat.asbestos="#7f8c8d",t.importMUIColors=function(){for(var e in t.mui)t.mui.hasOwnProperty(e)&&(window[e]=t.mui[e])}})),t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(425),o=n(230),h=n(494),l=n(495),c=r("music-metadata-browser:main");var d=n(230);e.parseBuffer=d.parseBuffer,e.parseFromTokenizer=d.parseFromTokenizer,e.orderTags=d.orderTags,e.ratingToStars=d.ratingToStars,e.parseNodeStream=o.parseStream,e.parseReadableStream=async function(t,n,r){const o=new h.ReadableWebToNodeStream(t),l=await e.parseNodeStream(o,"string"==typeof n?{mimeType:n}:n,r);return await o.close(),l},e.parseBlob=async function(t,e){const n=await function(t){return new Promise((e,n
2)=>{const r=new FileReader;r.onloadend=t=>{let data=t.target.result;data instanceof ArrayBuffer&&(data=l(new Uint8Array(t.target.result))),e(data)},r.onerror=t=>{n(new Error(t.type))},r.onabort=t=>{n(new Error(t.type))},r.readAsArrayBuffer(t)})}(t),r={mimeType:t.type,size:t.size};return t.name&&(r.path=t.name),o.parseBuffer(n,{mimeType:t.type,size:t.size},e)},e.fetchFromUrl=async function(t,e){const n=await fetch(t),r={size:parseInt(n.headers.get("Content-Length"),10),mimeType:n.headers.get("Content-Type")};if(n.ok){if(n.body){const t=await this.parseReadableStream(n.body,r,e);return c("Closing HTTP-readable-stream..."),n.body.locked||await n.body.cancel(),c("HTTP-readable-stream closed."),t}return this.parseBlob(await n.blob(),e)}throw new Error(`HTTP error status=${n.status}: ${n.statusText}`)}},,function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){o(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function c(t){return function(t){if(Array.isArray(t))return t}(t)||f(t)||m(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t){return function(t){if(Array.isArray(t))return v(t)}(t)||f(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function m(t,e){if(t){if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function y(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=m(t))){var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,r,o=!0,h=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){h=!0,r=t},f:function(){try{o||null==n.return||n.return()}finally{if(h)throw r}}}}var w=Math.sign||function(t){return t<0?-1:t>0?1:0};function M(t,path){return path.split(".").reduce((function(t,i){return t?t[i]:null}),t)}function _(t,e,n){if(!t)return-1;if(!n||"function"!=typeof n)return t.indexOf(e);for(var i=0;i<t.length;i++)if(n(t[i],e))return i;return-1}var k=function(t){return"object"===r(t)&&!Array.isArray(t)},S=function t(e,source){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n||!Object.assign){var r=function(t){return k(source[t])&&null!==e&&e.hasOwnProperty(t)&&k(e[t])},h=Object.getOwnPropertyNames(source).map((function(h){return o({},h,r(h)?t(e[h],source[h],n):source[h])})).reduce((function(a,b){return l({},a,{},b)}),{});return l({},e,{},h)}return Object.assign(e,source)},x={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return x.Android()||x.BlackBerry()||x.iOS()||x.Opera()||x.Windows()}};function C(t){void 0!==t.remove?t.remove():void 0!==t.parentNode&&null!==t.parentNode&&t.parentNode.removeChild(t)}function T(t){var e=document.createElement("div");e.style.position="absolute",e.style.left="0px",e.style.top="0px";var n=document.createElement("div");return e.appendChild(n),n.appendChild(t),document.body.appendChild(e),e}function E(t,e){var n;return JSON.parse(JSON.stringify(t)).sort((n=e,function(a,b){return n.map((function(t){var e=1;return"-"===t[0]&&(e=-1,t=t.substring(1)),a[t]>b[t]?e:a[t]<b[t]?-e:0})).reduce((function(p,t){return p||t}),0)}))}var A,I={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultTooltipDelay:0,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!1,defaultButtonRounded:!1,defaultCarouselInterval:3500,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],customIconPacks:null},D=function(t){I=t},B=function(t){A=t};var R=function(template,style,script,t,e,n,r,o,h,l){"boolean"!=typeof r&&(h=o,o=r,r=!1);var c,d="function"==typeof script?script.options:script;if(template&&template.render&&(d.render=template.render,d.staticRenderFns=template.staticRenderFns,d._compiled=!0,e&&(d.functional=!0)),t&&(d._scopeId=t),n?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),style&&style.call(this,h(t)),t&&t._registeredComponents&&t._registeredComponents.add(n)},d._ssrRegister=c):style&&(c=r?function(){style.call(this,l(this.$root.$options.shadowRoot))}:function(t){style.call(this,o(t))}),c)if(d.functional){var f=d.render;d.render=function(t,e){return c.call(e),f(t,e)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,c):[c]}return script},use=function(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)},P=function(t,component){t.component(component.name,component)},F=function(t,e,component){t.prototype.$buefy||(t.prototype.$buefy={}),t.prototype.$buefy[e]=component},O={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return I.defaultUseHtml5Validation}},validationMessage:String},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||I.defaultIconPack}},computed:{parentField:function(){for(var t=this.$parent,i=0;i<3;i++)t&&!t.$data._isField&&(t=t.$parent);return t},statusType:function(){if(this.parentField&&this.parentField.newType){if("string"==typeof this.parentField.newType)return this.parentField.newType;for(var t in this.parentField.newType)if(this.parentField.newType[t])return t}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var t=this;void 0!==this.$data._elementRef&&this.$nextTick((function(){var e=t.$el.querySelector(t.$data._elementRef);e&&e.focus()}))},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t),this.checkHtml5Validity()},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},getElement:function(){return this.$el.querySelector(this.$data._elementRef)},setInvalid:function(){var t=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",t)},setValidity:function(t,e){var n=this;this.$nextTick((function(){n.parentField&&(n.parentField.type||(n.parentField.newType=t),n.parentField.message||(n.parentField.newMessage=e))}))},checkHtml5Validity:function(){if(this.useHtml5Validation&&void 0!==this.$refs[this.$data._elementRef]&&null!==this.getElement())return this.getElement().checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}},N={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36p
2x","is-large":"mdi-48px"},iconPrefix:"mdi-"},L=function(){var t=I&&I.defaultIconComponent?"":"fa-";return{sizes:{default:t+"lg","is-small":null,"is-medium":t+"2x","is-large":t+"3x"},iconPrefix:t,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};const z=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"icon",class:[t.newType,t.size]},[t.useIconComponent?n(t.useIconComponent,{tag:"component",class:[t.customClass],attrs:{icon:[t.newPack,t.newIcon],size:t.newCustomSize}}):n("i",{class:[t.newPack,t.newIcon,t.newCustomSize,t.customClass]})],1)},staticRenderFns:[]},void 0,{name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var t;return(t={mdi:N,fa:L(),fas:L(),far:L(),fad:L(),fab:L(),fal:L()},I&&I.customIconPacks&&(t=S(t,I.customIconPacks,!0)),t)[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||I.defaultIconPack},newType:function(){if(this.type){var t=[];if("string"==typeof this.type)t=this.type.split("-");else for(var e in this.type)if(this.type[e]){t=e.split("-");break}if(!(t.length<=1)){var n=c(t).slice(1);return"has-text-".concat(n.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||I.defaultIconComponent}},methods:{getEquivalentIconOf:function(t){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[t]?this.iconConfig.internalIcons[t]:t}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const j=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:t.rootClasses},["textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus}},"input",t.$attrs,!1)):n("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus}},"textarea",t.$attrs,!1)),t._v(" "),t.icon?n("b-icon",{staticClass:"is-left",class:{"is-clickable":t.iconClickable},attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize},nativeOn:{click:function(e){t.iconClick("icon-click",e)}}}):t._e(),t._v(" "),!t.loading&&t.hasIconRight?n("b-icon",{staticClass:"is-right",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},attrs:{icon:t.rightIcon,pack:t.iconPack,size:t.iconSize,type:t.rightIconType,both:""},nativeOn:{click:function(e){return t.rightIconClick(e)}}}):t._e(),t._v(" "),t.maxlength&&t.hasCounter&&"number"!==t.type?n("small",{staticClass:"help counter",class:{"is-invisible":!t.isFocused}},[t._v("\r\n            "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+"\r\n        ")]):t._e()],1)},staticRenderFns:[]},void 0,{name:"BInput",components:o({},z.name,z),mixins:[O],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return I.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean}
2,data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||I.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.statusTypeIcon?this.statusTypeIcon:this.iconRight},rightIconType:function(){return this.passwordReveal?"is-primary":this.statusTypeIcon?this.statusType:null},iconPosition:function(){return this.icon&&this.hasIconRight?"has-icons-left has-icons-right":!this.icon&&this.hasIconRight?"has-icons-right":this.icon?"has-icons-left":void 0},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"==typeof this.computedValue?this.computedValue.length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(t){this.newValue=t}},methods:{togglePasswordVisibility:function(){var t=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((function(){t.$refs[t.$data._elementRef].focus()}))},onInput:function(t){var e=this;this.$nextTick((function(){t.target&&(e.computedValue=t.target.value)}))},iconClick:function(t,e){var n=this;this.$emit(t,e),this.$nextTick((function(){n.$refs[n.$data._elementRef].focus()}))},rightIconClick:function(t){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",t)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const U=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"autocomplete control",class:{"is-expanded":t.expanded}},[n("b-input",t._b({ref:"input",attrs:{type:"text",size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1},on:{input:t.onInput,focus:t.focused,blur:t.onBlur,"icon-right-click":t.rightIconClick},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.preventDefault(),t.isActive=!1},keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.tabPressed(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.enterPressed(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.keyArrows("up")},function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.keyArrows("down")}]},model:{value:t.newValue,callback:function(e){t.newValue=e},expression:"newValue"}},"b-input",t.$attrs,!1)),t._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive&&(t.data.length>0||t.hasEmptySlot||t.hasHeaderSlot),expression:"isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":t.isOpenedTop&&!t.appendToBody},style:t.style},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:t.contentStyle},[t.hasHeaderSlot?n("div",{staticClass:"dropdown-item"},[t._t("header")],2):t._e(),t._v(" "),t._l(t.data,(function(option,e){return n("a",{key:e,staticClass:"dropdown-item",class:{"
2is-hovered":option===t.hovered},on:{click:function(e){t.setSelected(option)}}},[t.hasDefaultSlot?t._t("default",null,{option:option,index:e}):n("span",[t._v("\r\n                            "+t._s(t.getValue(option,!0))+"\r\n                        ")])],2)})),t._v(" "),0===t.data.length&&t.hasEmptySlot?n("div",{staticClass:"dropdown-item is-disabled"},[t._t("empty")],2):t._e(),t._v(" "),t.hasFooterSlot?n("div",{staticClass:"dropdown-item"},[t._t("footer")],2):t._e()],2)])])],1)},staticRenderFns:[]},void 0,{name:"BAutocomplete",components:o({},j.name,j),mixins:[O],inheritAttrs:!1,props:{value:[Number,String],data:{type:Array,default:function(){return[]}},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:Function,checkInfiniteScroll:Boolean,keepOpen:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean},data:function(){return{selected:null,hovered:null,isActive:!1,newValue:this.value,newAutocomplete:this.autocomplete||"off",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0}},computed:{whiteList:function(){var t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),void 0!==this.$refs.dropdown){var e,n=y(this.$refs.dropdown.querySelectorAll("*"));try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r)}}catch(t){n.e(t)}finally{n.f()}}if(this.$parent.$data._isTaginput){t.push(this.$parent.$el);var o,h=y(this.$parent.$el.querySelectorAll("*"));try{for(h.s();!(o=h.n()).done;){var l=o.value;t.push(l)}}catch(t){h.e(t)}finally{h.f()}}return t},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},isOpenedTop:function(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight:function(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable:function(){return!!this.clearable||this.iconRightClickable},contentStyle:function(){return{maxHeight:void 0===this.maxHeight?null:isNaN(this.maxHeight)?this.maxHeight:this.maxHeight+"px"}}},watch:{isActive:function(t){var e=this;"auto"===this.dropdownPosition&&(t?this.calcDropdownInViewportVertical():setTimeout((function(){e.calcDropdownInViewportVertical()}),100)),t&&this.$nextTick((function(){return e.setHovered(null)}))},newValue:function(t){this.$emit("input",t);var e=this.getValue(this.selected);e&&e!==t&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&!t||(this.isActive=!!t)},value:function(t){this.newValue=t},data:function(t){this.keepFirst&&this.selectFirstOption(t)}},methods:{setHovered:function(option){void 0!==option&&(this.hovered=option)},setSelected:function(option){var t=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];void 0!==option&&(this.selected=option,this.$emit("select",this.selected),null!==this.selected&&(this.newValue=this.clearOnSelect?"":this.getValue(this.selected),this.setHovered(this.clearOnSelect?null:this.hovered)),e&&this.$nextTick((function(){t.isActive=!1})),this.checkValidity())},selectFirstOption:function(t){var e=this;this.$nextTick((function(){t.length?(e.openOnFocus||""!==e.newValue&&e.hovered!==t[0])&&e.setHovered(t[0]):e.setHovered(null)}))},enterPressed:function(){null!==this.hovered&&this.setSelected(this.hovered,!this.keepOpen)},tabPressed:function(){null!==this.hovered?this.setSelected(this.hovered,!this.keepOpen):this.isActive=!1},clickedOutside:function(t){this.whiteList.indexOf(t.target)<0&&(this.isActive=!1)},getValue:function(option){if(null!==option)return void 0!==this.customFormatter?this.customFormatter(option):"object"===r(option)?M(option,this.field):option},checkIfReachedTheEndOfScroll:function(t){t.clientHeight!==t.scrollHeight&&t.scrollTop+t.clientHeight>=t.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical:function(){var t=this;this.$nextTick((function(){if(void 0!==t.$refs.dropdown){var rect=t.$refs.dropdown.getBoundingClientRect();t.isListInViewportVertically=rect.top>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight),t.appendToBody&&t.updateAppendToBody()}}))},keyArrows:function(t){var e="down"===t?1:-1;if(this.isActive){var n=this.data.indexOf(this.hovered)+e;n=(n=n>this.data.length-1?this.data.length:n)<0?0:n,this.setHovered(this.data[n]);var r=this.$refs.dropdown.querySelector(".dropdown-content"),element=r.querySelectorAll("a.dropdown-item:not(.is-disabled)")[n];if(!element)return;var o=r.scrollTop,h=r.scrollTop+r.clientHeight-element.clientHeight;element.offsetTop<o?r.scrollTop=element.offsetTop:element.offsetTop>=h&&(r.scrollTop=element.offsetTop-r.clientHeight+element.clientHeight)}else this.isActive=!0},focused:function(t){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.data)),this.hasFocus=!0,this.$emit("focus",t)},onBlur:function(t){this.hasFocus=!1,this.$emit("blur",t)},onInput:function(t){var e=this.getValue(this.selected);e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick:function(t){this.clearable?this.newValue="":this.$emi("icon-right-click",t)},checkValidity:function(){var t=this;this.useHtml5Validation&&this.$nextTick((function(){t.checkHtml5Validity()}))},updateAppendToBody:function(){var t=this.$refs.dropdown,e=this.$refs.input.$el;if(t&&e){var n=this.$data._bodyEl;n.classList.forEach((function(t){return n.classList.remove(t)})),n.classList.add("autocomplete"),n.classList.add("control"),this.expandend&&n.classList.add("is-expandend");var rect=e.getBoundingClientRect(),r=rect.top+window.scrollY,o=rect.left+window.scrollX;this.isOpenedTop?r-=t.clientHeight:r+=e.clientHeight,this.style={position:"absolute",top:"".concat(r,"px"),left:"".concat(o,"px"),width:"".concat(e.clientWidth,"px"),maxWidth:"".concat(e.clientWidth,"px"),zIndex:"99"}}}},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted:function(){var t=this;if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var e=this.$refs.dropdown.querySelector(".dropdown-content");e.addEventListener("scroll",(function(){return t.checkIfReachedTheEndOfScroll(e)}))}this.appendToBody&&(this.$data._bodyEl=T(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy:function(){("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content"))&&this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll);this.appendToBody&&C(this.$data._bodyEl)}},void 0,!1,void 0,!1,void 0,void 0,void 0);var $={install:function(t){P(t,U)}};use($);var V=$;const H=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.computedTag,t._g(t._b({tag:"component",staticClass:"button",class:[t.size,t.type,{"is-rounded":t.rounded,"is-loading":t.loading,"is-outlined":t.outlined,"is-fullwidth":t.expanded,"is-inverted":t.inverted,"is-focused":t.focused,"is-active":t.active,"is-hovered":t.hovered,"is-selected":t.selected}],attrs:{type:t.nativeType}},"component",t.$attrs,!1),t.$listeners),[t.iconLeft?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconLeft,size:t.iconSize}}):t._e(),t._v(" "),t.label?n("span",[t._v(t._s(t.label))]):t.$slots.default?n("span",[t._t("default")],2):t._e(),t._v(" "),t.iconRight?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconRight,size:t.iconSize}}):t._e()],1)},staticRenderFns:[]},void 0,{name:"BButton",components:o({},z.name,z),inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:function(){return I.defaultButtonRounded}},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0}},tag:{type:String,default:"button",validator:function(t){return I.defaultLinkTags.indexOf(t)>=0}}},computed:{computedTag:function(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize:function(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var W={install:function(t){P(t,H)}};use(W);var X=W;const Z=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;
2return n("div",{staticClass:"carousel",class:{"is-overlay":t.overlay},on:{mouseenter:t.pauseTimer,mouseleave:t.startTimer}},[t.progress?n("progress",{staticClass:"progress",class:t.progressType,attrs:{max:t.carouselItems.length-1},domProps:{value:t.activeItem}},[t._v("\r\n            "+t._s(t.carouselItems.length-1)+"\r\n        ")]):t._e(),t._v(" "),n("div",{staticClass:"carousel-items",on:{mousedown:t.dragStart,mouseup:t.dragEnd,touchstart:function(e){return e.stopPropagation(),t.dragStart(e)},touchend:function(e){return e.stopPropagation(),t.dragEnd(e)}}},[t._t("default"),t._v(" "),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.arrowHover}},[t.checkArrow(0)?n("b-icon",{staticClass:"has-icons-left",attrs:{pack:t.iconPack,icon:t.iconPrev,size:t.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.prev(e)}}}):t._e(),t._v(" "),t.checkArrow(t.carouselItems.length-1)?n("b-icon",{staticClass:"has-icons-right",attrs:{pack:t.iconPack,icon:t.iconNext,size:t.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.next(e)}}}):t._e()],1):t._e()],2),t._v(" "),t.autoplay&&t.pauseHover&&t.pauseInfo&&t.isPause?n("div",{staticClass:"carousel-pause"},[n("span",{staticClass:"tag",class:t.pauseInfoType},[t._v("\r\n                "+t._s(t.pauseText)+"\r\n            ")])]):t._e(),t._v(" "),t.withCarouselList&&!t.indicator?[t._t("list",null,{active:t.activeItem,switch:t.changeItem})]:t._e(),t._v(" "),t.indicator?n("div",{staticClass:"carousel-indicator",class:t.indicatorClasses},t._l(t.carouselItems,(function(e,r){return n("a",{key:r,staticClass:"indicator-item",class:{"is-active":r===t.activeItem},on:{mouseover:function(e){t.modeChange("hover",r)},click:function(e){t.modeChange("click",r)}}},[t._t("indicators",[n("span",{staticClass:"indicator-style",class:t.indicatorStyle})],{i:r})],2)}))):t._e(),t._v(" "),t.overlay?[t._t("overlay")]:t._e()],2)},staticRenderFns:[]},void 0,{name:"BCarousel",components:o({},z.name,z),props:{value:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowBoth:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return I.defaultIconPrev}},iconNext:{type:String,default:function(){return I.defaultIconNext}},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},data:function(){return{_isCarousel:!0,activeItem:this.value,carouselItems:[],isPause:!1,dragX:0,timer:null}},computed:{indicatorClasses:function(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]}},watch:{value:function(t){t<this.activeItem?this.changeItem(t):this.changeItem(t,!1)},carouselItems:function(){this.activeItem<this.carouselItems.length&&(this.carouselItems[this.activeItem].isActive=!0)},autoplay:function(t){t?this.startTimer():this.pauseTimer()}},methods:{startTimer:function(){var t=this;this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((function(){t.repeat||t.activeItem!==t.carouselItems.length-1?t.next():t.pauseTimer()}),this.interval||I.defaultCarouselInterval))},pauseTimer:function(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=null)},checkPause:function(){if(this.pauseHover&&this.autoplay)return this.pauseTimer()},changeItem:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.activeItem!==t&&(this.activeItem<this.carouselItems.length&&this.carouselItems[this.activeItem].status(!1,e),this.carouselItems[t].status(!0,e),this.activeItem=t,this.$emit("change",t))},modeChange:function(t,e){if(this.indicatorMode===t)return this.$emit("input",e),e<this.activeItem?this.changeItem(e):this.changeItem(e,!1)},prev:function(){0===this.activeItem?this.repeat&&this.changeItem(this.carouselItems.length-1):this.changeItem(this.activeItem-1)},next:function(){this.activeItem===this.carouselItems.length-1?this.repeat&&this.changeItem(0,!1):this.changeItem(this.activeItem+1,!1)},checkArrow:function(t){return!!this.arrowBoth||(this.activeItem!==t||void 0)},dragStart:function(t){this.hasDrag&&(this.dragx=t.touches?t.changedTouches[0].pageX:t.pageX,t.touches?this.pauseTimer():t.preventDefault())},dragEnd:function(t){if(this.hasDrag){var e=(t.touches?t.changedTouches[0].pageX:t.pageX)-this.dragx;Math.abs(e)>50&&(e<0?this.next():this.prev()),t.touches&&this.startTimer()}}},mounted:function(){this.activeItem<this.carouselItems.length&&(this.carouselItems[this.activeItem].isActive=!0),this.startTimer()},beforeDestroy:function(){this.pauseTimer()}},void 0,!1,void 0,!1,void 0,void 0,void 0);const G=R({render:function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:this.transition}},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.isActive,expression:"isActive"}],staticClass:"carousel-item"},[this._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BCarouselItem",data:function(){return{isActive:!1,transitionName:null}},computed:{transition:function(){return"fade"===this.$parent.animated?"fade":this.transitionName}},methods:{status:function(t,e){this.transitionName=e?"slide-next":"slide-prev",this.isActive=t}},created:function(){if(!this.$parent.$data._isCarousel)throw this.$destroy(),new Error("You should wrap bCarouselItem on a bCarousel");this.$parent.carouselItems.push(this)},beforeDestroy:function(){var t=this.$parent.carouselItems.indexOf(this);t>=0&&this.$parent.carouselItems.splice(t,1)}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Y=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel-list",class:{"has-shadow":t.activeItem>0},on:{mousedown:function(e){return e.stopPropagation(),e.preventDefault(),t.dragStart(e)},touchstart:t.dragStart}},[n("div",{staticClass:"carousel-slides",class:t.listClass,style:t.transformStyle},t._l(t.data,(function(e,r){return n("div",{key:r,staticClass:"carousel-slide",class:{"
2is-active":t.activeItem===r},style:t.itemStyle,on:{click:function(e){e.preventDefault(),t.checkAsIndicator(r,e)}}},[t._t("item",[n("figure",{staticClass:"image"},[n("img",{attrs:{src:e.image,title:e.title}})])],{list:e,index:r,active:t.activeItem})],2)}))),t._v(" "),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.activeItem>0,expression:"activeItem > 0"}],staticClass:"has-icons-left",attrs:{pack:t.iconPack,icon:t.iconPrev,size:t.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.prev(e)}}}),t._v(" "),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.checkArrow(t.total),expression:"checkArrow(total)"}],staticClass:"has-icons-right",attrs:{pack:t.iconPack,icon:t.iconNext,size:t.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.next(e)}}})],1):t._e()])},staticRenderFns:[]},void 0,{name:"BCarouselList",components:o({},z.name,z),props:{config:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}},value:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return I.defaultIconPrev}},iconNext:{type:String,default:function(){return I.defaultIconNext}},refresh:Boolean},data:function(){return{activeItem:this.value,breakpoints:{},delta:0,dragging:!1,hold:0,itemWidth:0,settings:{}}},computed:{listClass:function(){return[{"has-grayscale":this.settings.hasGrayscale||this.hasGrayscale,"has-opacity":this.settings.hasOpacity||this.hasOpacity,"is-dragging":this.dragging}]},itemStyle:function(){return"width: ".concat(this.itemWidth,"px;")},transformStyle:function(){var t=this.delta+this.activeItem*this.itemWidth*1,e=this.dragging?-t:-Math.abs(t);return"transform: translateX(".concat(e,"px);")},total:function(){return this.data.length-1}},watch:{value:function(t){this.switchTo(t)},refresh:function(t){t&&this.asIndicator&&this.getWidth()}},methods:{initConfig:function(){this.breakpoints=this.config.breakpoints,this.settings=S(this.$props,this.config,!0)},getWidth:function(){var rect=this.$el.getBoundingClientRect();this.itemWidth=rect.width/this.settings.itemsToShow},update:function(){this.breakpoints&&this.updateConfig(),this.getWidth()},updateConfig:function(){var t,e=this;Object.keys(this.breakpoints).sort((function(a,b){return b-a})).some((function(n){if(t=window.matchMedia("(min-width: ".concat(n,"px)")).matches)return e.settings=e.config.breakpoints[n],!0})),t||(this.settings=this.config)},switchTo:function(t){if(!(t<0||this.activeItem===t||!this.repeat&&t>this.total)){var e=this.repeat&&t>this.total?0:t;this.activeItem=e,this.$emit("switch",e)}},next:function(){this.switchTo(this.activeItem+this.itemsToList)},prev:function(){this.switchTo(this.activeItem-this.itemsToList)},checkArrow:function(t){if(this.repeat||this.activeItem!==t)return!0},checkAsIndicator:function(t,e){if(this.asIndicator){var n=(new Date).getTime();!e.touches&&n-this.hold>200||this.switchTo(t)}},dragStart:function(t){!this.hasDrag||0!==t.button&&"touchstart"!==t.type||(this.hold=(new Date).getTime(),this.dragging=!0,this.dragStartX=t.touches?t.touches[0].clientX:t.clientX,window.addEventListener(t.touches?"touchmove":"mousemove",this.dragMove),window.addEventListener(t.touches?"touchend":"mouseup",this.dragEnd))},dragMove:function(t){this.dragEndX=t.touches?t.touches[0].clientX:t.clientX;var e=this.dragEndX-this.dragStartX;this.delta=e<0?Math.abs(e):-Math.abs(e),t.touches||t.preventDefault()},dragEnd:function(t){var e=1*w(this.delta),n=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.activeItem+e*n),this.dragging=!1,this.delta=0,window.removeEventListener(t.touches?"touchmove":"mousemove",this.dragMove),window.removeEventListener(t.touches?"touchend":"mouseup",this.dragEnd)}},created:function(){this.initConfig(),"undefined"!=typeof window&&window.addEventListener("resize",this.update)},mounted:function(){var t=this;
2this.$nextTick((function(){t.update()}))},beforeDestroy:function(){window.removeEventListener("resize",this.update)}},void 0,!1,void 0,!1,void 0,void 0,void 0);var K={install:function(t){P(t,Z),P(t,G),P(t,Y)}};use(K);var J=K,Q={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}};const tt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,r=e.target,o=r.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var h=t.nativeValue,l=t._i(n,h);r.checked?l<0&&(t.computedValue=n.concat([h])):l>-1&&(t.computedValue=n.slice(0,l).concat(n.slice(l+1)))}else t.computedValue=o}}}),t._v(" "),n("span",{staticClass:"check",class:t.type}),t._v(" "),n("span",{staticClass:"control-label"},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BCheckbox",mixins:[Q],props:{indeterminate:Boolean,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const et=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[t.checked?t.type:null,t.size,{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()}}},[t._t("default"),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t.computedValue},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){var n=t.computedValue,r=e.target,o=!!r.checked;if(Array.isArray(n)){var h=t.nativeValue,l=t._i(n,h);r.checked?l<0&&(t.computedValue=n.concat([h])):l>-1&&(t.computedValue=n.slice(0,l).concat(n.slice(l+1)))}else t.computedValue=o}}})],2)])},staticRenderFns:[]},void 0,{name:"BCheckboxButton",mixins:[Q],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var it={install:function(t){P(t,tt),P(t,et)}};use(it);var nt=it;const at=R({},void 0,{name:"BCollapse",props:{open:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom"].indexOf(t)>-1}}},data:function(){return{isOpen:this.open}},watch:{open:function(t){this.isOpen=t}},methods:{toggle:function(){this.isOpen=!this.isOpen,this.$emit("update:open",this.isOpen),this.$emit(this.isOpen?"open":"close")}},render:function(t){var e=t("div",{staticClass:"collapse-trigger",on:{click:this.toggle}},this.$scopedSlots.trigger?[this.$scopedSlots.trigger({open:this.isOpen})]:[this.$slots.trigger]),content=t("transition",{props:{name:this.animation}},[t("div",{staticClass:"collapse-content",attrs:{id:this.ariaId,"aria-expanded":this.isOpen},directives:[{name:"show",value:this.isOpen}]},this.$slots.default)]);return t("div",{staticClass:"collapse"},"is-top"===this.position?[e,content]:[content,e])}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var st={install:function(t){P(t,at)}};use(st);var ot,ut=st,ht="AM",lt="PM",ct={mixins:[O],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,default:"24",validator:function(t){return"24"===t||"12"===t}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(t,e){return"function"==typeof I.defaultTimeFormatter?I.defaultTimeFormatter(t):function(t,e){var n=t.getHours(),r=t.getMinutes(),o=t.getSeconds(),h="";return"12"===e.hourFormat&&(h=" "+(n<12?ht:lt),n>12?n-=12:0===n&&(n=12)),e.pad(n)+":"+e.pad(r)+(e.enableSeconds?":"+e.pad(o):"")+h}(t,e)}},timeParser:{type:Function,default:function(t,e){return"function"==typeof I.defaultTimeParser?I.defaultTimeParser(t):function(t,e){if(t){var n=!1;if("12"===e.hourFormat){var r=t.split(" ");t=r[0],n=r[1]===ht}var time=t.split(":"),o=parseInt(time[0],10),h=parseInt(time[1],10),l=e.enableSeconds?parseInt(time[2],10):0;if(isNaN(o)||o<0||o>23||"12"===e.hourFormat&&(o<1||o>12)||isNaN(h)||h<0||h>59)return null;var c=null;return e.computedValue&&!isNaN(e.computedValue)?c=new Date(e.computedValue):(c=e.timeCreator()).setMilliseconds(0),c.setSeconds(l),c.setMinutes(h),"12"===e.hourFormat&&(n&&12===o?o=0:n||12===o||(o+=12)),c.setHours(o),new Date(c.getTime())}return null}(t,e)}},mobileNative:{type:Boolean,default:function(){return I.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return"function"==typeof I.defaultTimeCreator?I.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0}
vendor: 9,858 bytes, line 2
2,appendToBody:Boolean},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:ht,PM:lt,HOUR_FORMAT_24:"24",HOUR_FORMAT_12:"12"}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){this.dateSelected=t,this.$emit("input",this.dateSelected)}},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var t=[],e=this.isHourFormat24?24:12,i=0;i<e;i+=this.incrementHours){var n=i,label=n;this.isHourFormat24||(label=n=i+1,this.meridienSelected===this.AM?12===n&&(n=0):this.meridienSelected===this.PM&&12!==n&&(n+=12)),t.push({label:this.formatNumber(label),value:n})}return t},minutes:function(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");for(var t=[],i=0;i<60;i+=this.incrementMinutes)t.push({label:this.formatNumber(i,!0),value:i});return t},seconds:function(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");for(var t=[],i=0;i<60;i+=this.incrementSeconds)t.push({label:this.formatNumber(i,!0),value:i});return t},meridiens:function(){return[ht,lt]},isMobile:function(){return this.mobileNative&&x.any()},isHourFormat24:function(){return"24"===this.hourFormat}},watch:{hourFormat:function(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?lt:ht)},value:{handler:function(t){this.updateInternalState(t),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(t){null!==this.hoursSelected&&(t===lt?this.hoursSelected+=12:t===ht&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,t)},onHoursChange:function(t){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(t,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(t){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(t,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(t){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(t,10),this.meridienSelected)},updateDateSelected:function(t,e,n,r){if(null!=t&&null!=e&&(!this.isHourFormat24&&null!==r||this.isHourFormat24)){var time=null;this.computedValue&&!isNaN(this.computedValue)?time=new Date(this.computedValue):(time=this.timeCreator()).setMilliseconds(0),time.setHours(t),time.setMinutes(e),time.setSeconds(n),this.computedValue=new Date(time.getTime())}},updateInternalState:function(t){t?(this.hoursSelected=t.getHours(),this.minutesSelected=t.getMinutes(),this.secondsSelected=t.getSeconds(),this.meridienSelected=t.getHours()>=12?lt:ht):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=ht),this.dateSelected=t},isHourDisabled:function(t){var e=this,n=!1;if(this.minTime){var r=this.minTime.getHours(),o=this.minutes.every((function(n){return e.isMinuteDisabledForHour(t,n.value)}));n=t<r||o}if(this.maxTime&&!n){var h=this.maxTime.getHours();n=t>h}this.unselectableTimes&&(n||(n=this.unselectableTimes.filter((function(time){return e.enableSeconds&&null!==e.secondsSelected?time.getHours()===t&&time.getMinutes()===e.minutesSelected&&time.getSeconds()===e.secondsSelected:null!==e.minutesSelected?time.getHours()===t&&time.getMinutes()===e.minutesSelected:time.getHours()===t})).length>0));return n},isMinuteDisabledForHour:function(t,e){var n=!1;if(this.minTime){var r=this.minTime.getHours(),o=this.minTime.getMinutes();n=t===r&&e<o}if(this.maxTime&&!n){var h=this.maxTime.getHours(),l=this.maxTime.getMinutes();n=t===h&&e>l}return n},isMinuteDisabled:function(t){var e=this,n=!1;null!==this.hoursSelected&&(n=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,t),this.unselectableTimes&&(n||(n=this.unselectableTimes.filter((function(time){return e.enableSeconds&&null!==e.secondsSelected?time.getHours()===e.hoursSelected&&time.getMinutes()===t&&time.getSeconds()===e.secondsSelected:time.getHours()===e.hoursSelected&&time.getMinutes()===t})).length>0)));return n},isSecondDisabled:function(t){var e=this,n=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))n=!0;else{if(this.minTime){var r=this.minTime.getHours(),o=this.minTime.getMinutes(),h=this.minTime.getSeconds();n=this.hoursSelected===r&&this.minutesSelected===o&&t<h}if(this.maxTime&&!n){var l=this.maxTime.getHours(),c=this.maxTime.getMinutes(),d=this.maxTime.getSeconds();n=this.hoursSelected===l&&this.minutesSelected===c&&t>d}}if(this.unselectableTimes)if(!n)n=this.unselectableTimes.filter((function(time){return time.getHours()===e.hoursSelected&&time.getMinutes()===e.minutesSelected&&time.getSeconds()===t})).length>0}return n},onChange:function(t){var e=this.timeParser(t,this);this.updateInternalState(e),e&&!isNaN(e)?this.computedValue=e:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(t){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof t?t:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return this.formatNumber(n,!0)+":"+this.formatNumber(r,!0)+":"+this.formatNumber(o,!0)}return""},onChangeNativePicker:function(t){var e=t.target.value;if(e){var time=null;this.computedValue&&!isNaN(this.computedValue)?time=new Date(this.computedValue):(time=new Date).setMilliseconds(0);var n=e.split(":");time.setHours(parseInt(n[0],10)),time.setMinutes(parseInt(n[1],10)),time.setSeconds(n[2]?parseInt(n[2],10):0),this.computedValue=new Date(time.getTime())}else this.computedValue=null},formatNumber:function(t,e){return this.isHourFormat24||e?this.pad(t):t},pad:function(t){return(t<10?"0":"")+t},formatValue:function(t){return t&&!isNaN(t)?this.timeFormatter(t,this):null},keyPress:function(t){this.$refs.dropdown&&this.$refs.dropdown.isActive&&27===t.keyCode&&this.toggle(!1)},onActiveChange:function(t){t||this.onBlur()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},ft=function(element){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return element?t?element.querySelectorAll('*[tabindex="-1"]'):element.querySelectorAll('a[href]:not([tabindex="-1"]),\n                                     area[href],\n                                     input:not([disabled]),\n                                     select:not([disabled]),\n                                     textarea:not([disabled]),\n                                     button:not([disabled]),\n                                     iframe,\n                                     object,\n                                     embed,\n                                     *[tabindex]:not([tabindex="-1"]),\n                                     *[contenteditable]'):null},pt={bind:function(t,e){var n=e.value;if(void 0===n||n){var r=ft(t),o=ft(t,!0);r&&r.length>0&&(ot=function(e){r=ft(t),o=ft(t,!0);var n=r[0],h=r[r.length-1];e.target===n&&e.shiftKey&&"Tab"===e.key?(e.preventDefault(),h.focus()):(e.target===h||Array.from(o).indexOf(e.target)>=0)&&!e.shiftKey&&"Tab"===e.key&&(e.preventDefault(),n.focus())},t.addEventListener("keydown",ot))}},unbind:function(t){t.removeEventListener("keydown",ot)}},mt=["escape","outside"];const gt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:t.rootClasses},[t.inline?t._e():n("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{role:"button","aria-haspopup":"true"},on:{click:t.toggle,mouseenter:t.checkHoverable}},[t._t("trigger",null,{active:t.isActive})],2),t._v(" "),n("transition",{attrs:{name:t.animation}},[t.isMobileModal?n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!t.isActive}}):t._e()]),t._v(" "),n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&(t.isActive||t.isHoverable)||t.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:t.style,attrs:{"aria-hidden":!t.isActive}},[n("div",{staticClass:"dropdown-content",attrs:{role:t.ariaRole}},[t._t("default")],2)])])],1)},staticRenderFns:[]},void 0,{name:"BDropdown",directives:{trapFocus:pt},props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,hoverable:Boolean,inline:Boolean,position:{type:String,validator:function(t){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(t)>-1}},mobileModal:{type:Boolean,default:function(){return I.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(t){return["menu","list","dialog"].indexOf(t)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return I.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0}
2,expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:this.hoverable,_isDropdown:!0,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline&&!this.hoverable},cancelOptions:function(){return"boolean"==typeof this.canClose?this.canClose?mt:[]:this.canClose}},watch:{value:function(t){this.selected=t},isActive:function(t){var e=this;this.$emit("active-change",t),this.appendToBody&&this.$nextTick((function(){e.updateAppendToBody()}))}},methods:{selectItem:function(t){if(this.multiple){if(this.selected){var e=this.selected.indexOf(t);-1===e?this.selected.push(t):this.selected.splice(e,1)}else this.selected=[t];this.$emit("change",this.selected)}else this.selected!==t&&(this.selected=t,this.$emit("change",this.selected));this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(t){if(t===this.$refs.dropdownMenu)return!0;if(t===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var e,n=y(this.$refs.dropdownMenu.querySelectorAll("*"));try{for(n.s();!(e=n.n()).done;){if(t===e.value)return!0}}catch(t){n.e(t)}finally{n.f()}}if(void 0!==this.$refs.trigger){var r,o=y(this.$refs.trigger.querySelectorAll("*"));try{for(o.s();!(r=o.n()).done;){if(t===r.value)return!0}}catch(t){o.e(t)}finally{o.f()}}return!1},clickedOutside:function(t){this.cancelOptions.indexOf("outside")<0||this.inline||this.isInWhiteList(t.target)||(this.isActive=!1)},keyPress:function(t){if(this.isActive&&27===t.keyCode){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},toggle:function(){var t=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var e=!t.isActive;t.isActive=e,setTimeout((function(){return t.isActive=e}))})))},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)},updateAppendToBody:function(){var t=this.$refs.dropdownMenu,e=this.$refs.trigger;if(t&&e){var n=this.$data._bodyEl.children[0];if(n.classList.forEach((function(t){return n.classList.remove(t)})),n.classList.add("dropdown"),n.classList.add("dropdown-menu-animation"),this.rootClasses.forEach((function(t){if(t&&"object"===r(t))for(var e in t)t[e]&&n.classList.add(e)})),this.appendToBodyCopyParent){var o=this.$refs.dropdown.parentNode,h=this.$data._bodyEl;h.classList.forEach((function(t){return h.classList.remove(t)})),o.classList.forEach((function(t){h.classList.add(t)}))}var rect=e.getBoundingClientRect(),l=rect.top+window.scrollY,c=rect.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?l+=e.clientHeight:l-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(c-=t.clientWidth-e.clientWidth),this.style={position:"absolute",top:"".concat(l,"px"),left:"".concat(c,"px"),zIndex:"99"}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=T(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&C(this.$data._bodyEl)}},void 0,!1,void 0,!1,void 0,void 0,void 0);const vt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.separator?n("hr",{staticClass:"dropdown-divider"}):t.custom||t.hasLink?n("div",{class:t.itemClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2):n("a",{staticClass:"dropdown-item",class:t.anchorClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"BDropdownItem",props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.$parent.disabled||this.disabled,"is-
2paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.$parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.$parent.selected&&(this.$parent.multiple?this.$parent.selected.indexOf(this.value)>=0:this.value===this.$parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.$parent.selectItem(this.value),this.$emit("click"))}},created:function(){if(!this.$parent.$data._isDropdown)throw this.$destroy(),new Error("You should wrap bDropdownItem on a bDropdown")}},void 0,!1,void 0,!1,void 0,void 0,void 0);const bt=R({},void 0,{name:"BFieldBody",props:{message:{type:String},type:{type:[String,Object]}},render:function(t){var e=this;return t("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(element){return element.tag?e.message?t("b-field",{attrs:{message:e.message,type:e.type}},[element]):t("b-field",{attrs:{type:e.type}},[element]):element})))}},void 0,void 0,void 0,!1,void 0,void 0,void 0);const yt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field",class:[t.rootClasses,t.fieldType()]},[t.horizontal?n("div",{staticClass:"field-label",class:[t.customClass,t.fieldLabelSize]},[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()]):[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()],t._v(" "),t.horizontal?n("b-field-body",{attrs:{message:t.newMessage?t.formattedMessage:"",type:t.newType}},[t._t("default")],2):[t._t("default")],t._v(" "),t.newMessage&&!t.horizontal?n("p",{staticClass:"help",class:t.newType,domProps:{innerHTML:t._s(t.formattedMessage)}}):t._e()],2)},staticRenderFns:[]},void 0,{name:"BField",components:o({},bt.name,bt),props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return I.defaultFieldLabelPosition}}}
2,data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[this.newPosition,{"is-expanded":this.expanded,"is-grouped-multiline":this.groupMultiline,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},newPosition:function(){if(void 0!==this.position){var t=this.position.split("-");if(!(t.length<1)){var e=this.grouped?"is-grouped-":"has-addons-";return this.position?e+t[1]:void 0}}},formattedMessage:function(){if("string"==typeof this.newMessage)return this.newMessage;var t=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((function(e){if("string"==typeof e)t.push(e);else for(var n in e)e[n]&&t.push(n)}));else for(var e in this.newMessage)this.newMessage[e]&&t.push(e);return t.filter((function(t){if(t)return t})).join(" <br> ")},hasLabel:function(){return this.label||this.$slots.label},numberInputClasses:function(){if(this.$slots.default){var t=this.$slots.default.filter((function(t){return t.tag&&t.tag.toLowerCase().indexOf("numberinput")>=0}))[0];if(t){var e=["has-numberinput"],n=t.componentOptions.propsData.controlsPosition,r=t.componentOptions.propsData.size;return n&&e.push("has-numberinput-".concat(n)),r&&e.push("has-numberinput-".concat(r)),e}}return null}},watch:{type:function(t){this.newType=t},message:function(t){this.newMessage=t}},methods:{fieldType:function(){if(this.grouped)return"is-grouped";var t=0;return this.$slots.default&&(t=this.$slots.default.reduce((function(i,t){return t.tag?i+1:i}),0)),t>1&&this.addons&&!this.horizontal?"has-addons":void 0}},mounted:function(){this.horizontal&&(this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal"))}},void 0,!1,void 0,!1,void 0,void 0,void 0);const wt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker-face",on:{mousedown:t.onMouseDown,mouseup:t.onMouseUp,mousemove:t.onDragMove,touchstart:t.onMouseDown,touchend:t.onMouseUp,touchmove:t.onDragMove}},[n("div",{ref:"clock",staticClass:"b-clockpicker-face-outer-ring"},[n("div",{staticClass:"b-clockpicker-face-hand",style:t.handStyle}),t._v(" "),t._l(t.faceNumbers,(function(e,r){return n("span",{key:r,staticClass:"b-clockpicker-face-number",class:t.getFaceNumberClasses(e),style:{transform:t.getNumberTranslate(e.value)}},[n("span",[t._v(t._s(e.label))])])}))],2)])},staticRenderFns:[]},void 0,{name:"BClockpickerFace",props:{pickerSize:Number,min:Number,max:Number,double:Boolean,value:Number,faceNumbers:Array,disabledValues:Function},data:function(){return{isDragging:!1,inputValue:this.value,prevAngle:720}},computed:{count:function(){return this.max-this.min+1},countPerRing:function(){return this.double?this.count/2:this.count},radius:function(){return this.pickerSize/2},outerRadius:function(){return this.radius-5-20},innerRadius:function(){return Math.max(.6*this.outerRadius,this.outerRadius-5-40)},degreesPerUnit:function(){return 360/this.countPerRing},degrees:function(){return this.degreesPerUnit*Math.PI/180},handRotateAngle:function(){for(var t=this.prevAngle;t<0;)t+=360;var e=this.calcHandAngle(this.displayedValue),n=this.shortestDistanceDegrees(t,e);return this.prevAngle+n},handScale:function(){return this.calcHandScale(this.displayedValue)},handStyle:function(){return{transform:"rotate(".concat(this.handRotateAngle,"deg) 
2scaleY(").concat(this.handScale,")"),transition:".3s cubic-bezier(.25,.8,.50,1)"}},displayedValue:function(){return null==this.inputValue?this.min:this.inputValue}},watch:{value:function(t){t!==this.inputValue&&(this.prevAngle=this.handRotateAngle),this.inputValue=t}},methods:{isDisabled:function(t){return this.disabledValues&&this.disabledValues(t)},euclidean:function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},shortestDistanceDegrees:function(t,e){var n=(e-t)%360,r=180-Math.abs(Math.abs(n)-180);return(n+360)%360<180?1*r:-1*r},coordToAngle:function(t,e){var n=2*Math.atan2(e.y-t.y-this.euclidean(t,e),e.x-t.x);return Math.abs(180*n/Math.PI)},getNumberTranslate:function(t){var e=this.getNumberCoords(t),n=e.x,r=e.y;return"translate(".concat(n,"px, ").concat(r,"px)")},getNumberCoords:function(t){var e=this.isInnerRing(t)?this.innerRadius:this.outerRadius;return{x:Math.round(e*Math.sin((t-this.min)*this.degrees)),y:Math.round(-e*Math.cos((t-this.min)*this.degrees))}},getFaceNumberClasses:function(t){return{active:t.value===this.displayedValue,disabled:this.isDisabled(t.value)}},isInnerRing:function(t){return this.double&&t-this.min>=this.countPerRing},calcHandAngle:function(t){var e=this.degreesPerUnit*(t-this.min);return this.isInnerRing(t)&&(e-=360),e},calcHandScale:function(t){return this.isInnerRing(t)?this.innerRadius/this.outerRadius:1},onMouseDown:function(t){t.preventDefault(),this.isDragging=!0,this.onDragMove(t)},onMouseUp:function(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove:function(t){if(t.preventDefault(),this.isDragging||"click"===t.type){var e=this.$refs.clock.getBoundingClientRect(),n=e.width,r=e.top,o=e.left,h="touches"in t?t.touches[0]:t,l={x:n/2,y:-n/2},c={x:h.clientX-o,y:r-h.clientY},d=Math.round(this.coordToAngle(l,c)+360)%360,f=this.double&&this.euclidean(l,c)<(this.outerRadius+this.innerRadius)/2-16,m=Math.round(d/this.degreesPerUnit)+this.min+(f?this.countPerRing:0);d>=360-this.degreesPerUnit/2&&(m=f?this.max:this.min),this.update(m)}},update:function(t){this.inputValue===t||this.isDisabled(t)||(this.prevAngle=this.handRotateAngle,this.inputValue=t,this.$emit("input",t))}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Mt;const _t=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker control",class:[t.size,t.type,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange}},[t.inline?t._e():n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{click:function(e){e.stopPropagation(),t.toggle(!0)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.toggle(!0)},change:function(e){return t.onChangeNativePicker(e)}},slot:"trigger"},"b-input",t.$attrs,!1)),t._v(" "),n("div",{staticClass:"card",attrs:{disabled:t.disabled,custom:""}},[t.inline?n("header",{staticClass:"card-header"},[n("div",{staticClass:"b-clockpicker-header card-header-title"},[n("div",{staticClass:"b-clockpicker-time"},[n("span",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursDisplay))]),t._v(" "),n("span",[t._v(":")]),t._v(" "),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesDisplay))])]),t._v(" "),t.isHourFormat24?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected==t.AM},on:{click:function(e){t.onMeridienClick(t.AM)}}},[t._v("am")]),t._v(" "),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meri
vendor: 25,874 bytes, line 2
2dienSelected==t.PM},on:{click:function(e){t.onMeridienClick(t.PM)}}},[t._v("pm")])])])]):t._e(),t._v(" "),n("div",{staticClass:"card-content"},[n("div",{staticClass:"b-clockpicker-body",style:{width:t.faceSize+"px",height:t.faceSize+"px"}},[t.inline?t._e():n("div",{staticClass:"b-clockpicker-time"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursLabel))]),t._v(" "),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesLabel))])]),t._v(" "),t.isHourFormat24||t.inline?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected==t.AM},on:{click:function(e){t.onMeridienClick(t.AM)}}},[t._v(t._s(t.AM))]),t._v(" "),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected==t.PM},on:{click:function(e){t.onMeridienClick(t.PM)}}},[t._v(t._s(t.PM))])]),t._v(" "),n("b-clockpicker-face",{attrs:{"picker-size":t.faceSize,min:t.minFaceValue,max:t.maxFaceValue,"face-numbers":t.isSelectingHour?t.hours:t.minutes,"disabled-values":t.faceDisabledValues,double:t.isSelectingHour&&t.isHourFormat24,value:t.isSelectingHour?t.hoursSelected:t.minutesSelected},on:{input:t.onClockInput,change:t.onClockChange}})],1)]),t._v(" "),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"b-clockpicker-footer card-footer"},[t._t("default")],2):t._e()])],1):n("b-input",t._b({ref:"input",attrs:{type:"time",autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{click:function(e){e.stopPropagation(),t.toggle(!0)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.toggle(!0)},change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},staticRenderFns:[]},void 0,{name:"BClockpicker",components:(Mt={},o(Mt,wt.name,wt),o(Mt,j.name,j),o(Mt,yt.name,yt),o(Mt,z.name,z),o(Mt,gt.name,gt),o(Mt,vt.name,vt),Mt),mixins:[ct],props:{pickerSize:{type:Number,default:290},hourFormat:{type:String,default:"12",validator:function(t){return"24"===t||"12"===t}},incrementMinutes:{type:Number,default:5},autoSwitch:{type:Boolean,default:!0},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:function(){return I.defaultClockpickerHoursLabel||"Hours"}},minutesLabel:{type:String,default:function(){return I.defaultClockpickerMinutesLabel||"Min"}}},data:function(){return{isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}},computed:{hoursDisplay:function(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);var t=this.hoursSelected;return this.meridienSelected===this.PM&&(t-=12),0===t&&(t=12),t},minutesDisplay:function(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue:function(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.PM?12:0},maxFaceValue:function(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.AM?23:11:59},faceSize:function(){return this.pickerSize-24},faceDisabledValues:function(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput:function(t){this.isSelectingHour?(this.hoursSelected=t,this.onHoursChange(t)):(this.minutesSelected=t,this.onMinutesChange(t))},onClockChange:function(t){this.autoSwitch&&this.isSelectingHour&&(this.isSelectingHour=!this.isSelectingHour)},onMeridienClick:function(t){this.meridienSelected!==t&&(this.meridienSelected=t,this.onMeridienChange(t))}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var kt={install:function(t){P(t,_t)}};use(kt);var St=kt;const xt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded,"has-icons-left":t.icon}},[n("span",{staticClass:"select",class:t.spanClasses},[n("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:t.multiple,size:t.nativeSize},on:{blur:function(e){t.$emit("blur",e)&&t.checkHtml5Validity()},focus:function(e){t.$emit("focus",e)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.computedValue=e.target.multiple?n:n[0]}}},"select",t.$attrs,!1),[t.placeholder?[null==t.computedValue?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v("\r\n                        "+t._s(t.placeholder)+"\r\n                    ")]):t._e()]:t._e(),t._v(" "),t._t("default")],2)]),t._v(" "),t.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize}}):t._e()],1)},staticRenderFns:[]},void 0,{name:"BSelect",components:o({},z.name,z),mixins:[O],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(t){this.selected=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(t){this.selected=t,!this.isValid&&this.checkHtml5Validity()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Ct=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datepicker-row"},[t.showWeekNumber?n("a",{staticClass:"datepicker-cell is-week-number"},[n("span",[t._v(t._s(t.getWeekNumber(t.week[6])))])]):t._e(),t._v(" "),t._l(t.week,(function(e,r){return[t.selectableDate(e)&&!t.disabled?n("a",{key:r,ref:"day-"+e.getDate(),refInFor:!0,staticClass:"datepicker-cell",class:[t.classObject(e),{"has-event":t.eventsDateMatch(e)},t.indicators],attrs:{role:"button",href:"#",disabled:t.disabled,tabindex:t.day===e.getDate()?null:-1},on:{click:function(n){n.preventDefault(),t.emitChosenDate(e)},keydown:[function(n){if(!("button"in n)&&t._k(n.keyCode,"enter",13,n.key,"Enter"))return null;n.preventDefault(),t.emitChosenDate(e)},function(n){if(!("button"in n)&&t._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault(),t.emitChosenDate(e)},function(n){if(!("button"in n)&&t._k(n.keyCode,"arrow-left",void 0,n.key,void 0))return null;n.preventDefault(),t.changeFocus(e,-1)},function(n){if(!("button"in n)&&t._k(n.keyCode,"arrow-right",void 0,n.key,void 0))return null;n.preventDefault(),t.changeFocus(e,1)},function(n){if(!("button"in n)&&t._k(n.keyCode,"arrow-up",void 0,n.key,void 0))return null;n.preventDefault(),t.changeFocus(e,-7)},function(n){if(!("button"in n)&&t._k(n.keyCode,"arrow-down",void 0,n.key,void 0))return null;n.preventDefault(),t.changeFocus(e,7)}],mouseenter:function(n){t.setRangeHoverEndDate(e)}}},[n("span",[t._v(t._s(e.getDate()))]),t._v(" "),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})}))):t._e()]):n("div",{key:r,staticClass:"datepicker-cell",class:t.classObject(e)},[n("span",[t._v(t._s(e.getDate()))])])]}))],2)},staticRenderFns:[]},void 0,{name:"BDatepickerTableRow",props:{selectedDate:{type:[Date,Array]},hoveredDateRange:Array,day:{type:Number},week:{type:Array,required:!0},month:{type:Number,required:!0},minDate:Date,maxDate:Date,disabled:Boolean,unselectableDates:Array,unselectableDaysOfWeek:Array,selectableDates:Array,events:Array,indicators:String,dateCreator:Function,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:{type:Boolean,default:function(){return!1}},range:Boolean,multiple:Boolean,rulesForFirstWeek:{type:Number,default:function(){return 4}},firstDayOfWeek:Number},watch:{day:{handler:function(t){var e=this,n="day-".concat(t);this.$refs[n]&&this.$refs[n].length>0&&this.$nextTick((function(){e.$refs[n][0]&&e.$refs[n][0].focus()}))},immediate:!0}},methods:{firstWeekOffset:function(t,e,n){var r=7+e-n;return-((7+new Date(t,0,r).getDay()-e)%7)+r-1},daysInYear:function(t){return this.isLeapYear(t)?366:365},isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getSetDayOfYear:function(input){return Math.round((input-new Date(input.getFullYear(),0,1))/864e5)+1},weeksInYear:function(t,e,n){var r=this.firstWeekOffset(t,e,n),o=this.firstWeekOffset(t+1,e,n);return(this.daysInYear(t)-r+o)/7},getWeekNumber:function(t){var e,n,r=this.firstDayOfWeek,o=this.rulesForFirstWeek,h=this.firstWeekOffset(t.getFullYear(),r,o),l=Math.floor((this.getSetDayOfYear(t)-h-1)/7)+1;return l<1?(n=t.getFullYear()-1,e=l+this.weeksInYear(n,r,o)):l>this.weeksInYear(t.getFullYear(),r,o)?(e=l-this.weeksInYear(t.getFullYear(),r,o),n=t.getFullYear()+1):(n=t.getFullYear(),e=l),e},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.month),this.selectableDates)for(var i=0;i<this.selectableDates.length;i++){var n=this.selectableDates[i];if(t.getDate()===n.getDate()&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth())return!0;e.push(!1)}if(this.unselectableDates)for(var r=0;r<this.unselectableDates.length;r++){var o=this.unselectableDates[r];e.push(t.getDate()!==o.getDate()||t.getFullYear()!==o.getFullYear()||t.getMonth()!==o.getMonth())}if(this.unselectableDaysOfWeek)for(var h=0;h<this.unselectableDaysOfWeek.length;h++){var l=this.unselectableDaysOfWeek[h];e.push(t.getDay()!==l)}return e.indexOf(!1)<0},emitChosenDate:function(t){this.disabled||this.selectableDate(t)&&this.$emit("select",t)},eventsDateMatch:function(t){if(!this.events||!this.events.length)return!1;for(var e=[],i=0;i<this.events.length;i++)this.events[i].date.getDay()===t.getDay()&&e.push(this.events[i]);return!!e.length&&e},classObject:function(t){function e(t,e,n){return!(!t||!e||n)&&(Array.isArray(e)?e.some((function(e){return t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()})):t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())}function n(t,e,n){return!(!Array.isArray(e)||n)&&(t>e[0]&&t<e[1])}return{"is-selected":e(t,this.selectedDate)||n(t,this.selectedDate,this.multiple),"is-first-selected":e(t,Array.isArray(this.selectedDate)&&this.selectedDate[0],this.multiple),"is-within-selected":n(t,this.selectedDate,this.multiple),"is-last-selected":e(t,Array.isArray(this.selectedDate)&&this.selectedDate[1],this.multiple),"is-within-hovered-range":this.hoveredDateRange&&2===this.hoveredDateRange.length&&(e(t,this.hoveredDateRange)||n(t,this.hoveredDateRange)),"is-first-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[0]),"is-within-hovered":n(t,this.hoveredDateRange),"is-last-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[1]),"is-today":e(t,this.dateCreator()),"is-selectable":this.selectableDate(t)&&!this.disabled,"is-unselectable":!this.selectableDate(t)||this.disabled,"is-invisible":!this.nearbyMonthDays&&t.getMonth()!==this.month,"is-nearby":this.nearbySelectableMonthDays&&t.getMonth()!==this.month}},setRangeHoverEndDate:function(t){this.range&&this.$emit("rangeHoverEndDate",t)},changeFocus:function(t,e){var n=t;n.setDate(t.getDate()+e),this.$emit("change-focus",n)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Tt=function(t){return void 0!==t};const Et=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"datepicker-table"},[n("header",{staticClass:"datepicker-header"},t._l(t.visibleDayNames,(function(e,r){return n("div",{key:r,staticClass:"datepicker-cell"},[n("span",[t._v(t._s(e))])])}))),t._v(" "),n("div",{staticClass:"datepicker-body",class:{"has-events":t.hasEvents}},t._l(t.weeksInThisMonth,(function(e,r){return n("b-datepicker-table-row",{key:r,attrs:{"selected-date":t.value,day:t.focused.day,week:e,month:t.focused.month,"min-date":t.minDate,"max-date":t.maxDate,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.eventsInThisWeek(e),indicators:t.indicators,"date-creator":t.dateCreator,"nearby-month-days":t.nearbyMonthDays,"nearby-selectable-month-days":t.nearbySelectableMonthDays,"show-week-number":t.showWeekNumber,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,range:t.range,"hovered-date-range":t.hoveredDateRange,multiple:t.multiple},on:{select:t.updateSelectedDate,rangeHoverEndDate:t.setRangeHoverEndDate,"change-focus":t.changeFocus}})})),1)])},staticRenderFns:[]},void 0,{name:"BDatepickerTable",components:o({},Ct.name,Ct),props:{value:{type:[Date,Array]},dayNames:Array,monthNames:Array,firstDayOfWeek:Number,events:Array,indicators:String,minDate:Date,maxDate:Date,focused:Object,disabled:Boolean,dateCreator:Function,unselectableDates:Array,unselectableDaysOfWeek:Array,selectableDates:Array,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:{type:Boolean,default:function(){return!1}},rulesForFirstWeek:{type:Number,default:function(){return 4}},range:Boolean,multiple:Boolean},data:function(){return{selectedBeginDate:void 0,selectedEndDate:void 0,hoveredEndDate:void 0,multipleSelectedDates:this.multiple&&this.value?this.value:[]}},computed:{visibleDayNames:function(){for(var t=[],e=this.firstDayOfWeek;t.length<this.dayNames.length;){var n=this.dayNames[e%this.dayNames.length];t.push(n),e++}return this.showWeekNumber&&t.unshift(""),t},hasEvents:function(){return this.events&&this.events.length},eventsInThisMonth:function(){if(!this.events)return[];for(var t=[],i=0;i<this.events.length;i++){var e=this.events[i];e.hasOwnProperty("date")||(e={date:e}),e.hasOwnProperty("type")||(e.type="is-primary"),e.date.getMonth()===this.focused.month&&e.date.getFullYear()===this.focused.year&&t.push(e)}return t},weeksInThisMonth:function(){this.validateFocusedDay();for(var t=this.focused.month,e=this.focused.year,n=[],r=1;n.length<6;){var o=this.weekBuilder(r,t,e);n.push(o),r+=7}return n},hoveredDateRange:function(){return this.range&&isNaN(this.selectedEndDate)?this.hoveredEndDate<this.selectedBeginDate?[this.hoveredEndDate,this.selectedBeginDate].filter(Tt):[this.selectedBeginDate,this.hoveredEndDate].filter(Tt):[]}},methods:{updateSelectedDate:function(t){this.range||this.multiple?this.range?this.handleSelectRangeDate(t):this.multiple&&this.handleSelectMultipleDates(t):this.$emit("input",t)},handleSelectRangeDate:function(t){this.selectedBeginDate&&this.selectedEndDate?(this.selectedBeginDate=t,this.selectedEndDate=void 0,this.$emit("range-start",t)):this.selectedBeginDate&&!this.selectedEndDate?(this.selectedBeginDate>t?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t))},handleSelectMultipleDates:function(t){this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()})).length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},weekBuilder:function(t,e,n){for(var r=new Date(n,e),o=[],h=new Date(n,e,t).getDay(),l=h>=this.firstDayOfWeek?h-this.firstDayOfWeek:7-this.firstDayOfWeek+h,c=1,i=0;i<l;i++)o.unshift(new Date(r.getFullYear(),r.getMonth(),t-c)),c++;o.push(new Date(n,e,t));for(var d=1;o.length<7;)o.push(new Date(n,e,t+d)),d++;return o},validateFocusedDay:function(){var t=new Date(this.focused.year,this.focused.month,this.focused.day);if(!this.selectableDate(t))for(var e=0,n=new Date(this.focused.year,this.focused.month+1,0).getDate(),r=null;!r&&++e<n;){var o=new Date(this.focused.year,this.focused.month,e);if(this.selectableDate(o)){r=t;var h={day:o.getDate(),month:o.getMonth(),year:o.getFullYear()};this.$emit("update:focused",h)}}},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.focused.month),this.selectableDates)for(var i=0;i<this.selectableDates.length;i++){var n=this.selectableDates[i];if(t.getDate()===n.getDate()&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth())return!0;e.push(!1)}if(this.unselectableDates)for(var r=0;r<this.unselectableDates.length;r++){var o=this.unselectableDates[r];e.push(t.getDate()!==o.getDate()||t.getFullYear()!==o.getFullYear()||t.getMonth()!==o.getMonth())}if(this.unselectableDaysOfWeek)for(var h=0;h<this.unselectableDaysOfWeek.length;h++){var l=this.unselectableDaysOfWeek[h];e.push(t.getDay()!==l)}return e.indexOf(!1)<0},eventsInThisWeek:function(t){return this.eventsInThisMonth.filter((function(e){var n=new Date(Date.parse(e.date));n.setHours(0,0,0,0);var r=n.getTime();return t.some((function(t){return t.getTime()===r}))}))},setRangeHoverEndDate:function(t){this.hoveredEndDate=t},changeFocus:function(t){var e={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()};this.$emit("update:focused",e)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const At=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"datepicker-table"},[n("div",{staticClass:"datepicker-body",class:{"has-events":t.hasEvents}},[n("div",{staticClass:"datepicker-months"},[t._l(t.monthDates,(function(e,r){return[t.selectableDate(e)&&!t.disabled?n("a",{key:r,ref:"month-"+e.getMonth(),refInFor:!0,staticClass:"datepicker-cell",class:[t.classObject(e),{"has-event":t.eventsDateMatch(e)},t.indicators],attrs:{role:"button",href:"#",disabled:t.disabled,tabindex:t.focused.month===e.getMonth()?null:-1},on:{click:function(n){n.preventDefault(),t.emitChosenDate(e)},keydown:[function(n){if(!("button"in n)&&t._k(n.keyCode,"enter",13,n.key,"Enter"))return null;n.preventDefault(),t.emitChosenDate(e)},function(n){if(!("button"in n)&&t._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault(),t.emitChosenDate(e)},function(n){if(!("button"in n)&&t._k(n.keyCode,"arrow-left",void 0,n.key,void 0))return null;n.preventDefault(),t.changeFocus(e,-1)},function(n){if(!("button"in n)&&t._k(n.keyCode,"arrow-right",void 0,n.key,void 0))return null;n.preventDefault(),t.changeFocus(e,1)},function(n){if(!("button"in n)&&t._k(n.keyCode,"arrow-up",void 0,n.key,void 0))return null;n.preventDefault(),t.changeFocus(e,-3)},function(n){if(!("button"in n)&&t._k(n.keyCode,"arrow-down",void 0,n.key,void 0))return null;n.preventDefault(),t.changeFocus(e,3)}]}},[t._v("\r\n                        "+t._s(t.monthNames[e.getMonth()])+"\r\n                        "),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})}))):t._e()]):n("div",{key:r,staticClass:"datepicker-cell",class:t.classObject(e)},[t._v("\r\n                        "+t._s(t.monthNames[e.getMonth()])+"\r\n                    ")])]}))],2)])])},staticRenderFns:[]},void 0,{name:"BDatepickerMonth",props:{value:{type:[Date,Array]},monthNames:Array,events:Array,indicators:String,minDate:Date,maxDate:Date,focused:Object,disabled:Boolean,dateCreator:Function,unselectableDates:Array,unselectableDaysOfWeek:Array,selectableDates:Array,multiple:Boolean},data:function(){return{multipleSelectedDates:this.multiple&&this.value?this.value:[]}},computed:{hasEvents:function(){return this.events&&this.events.length},eventsInThisYear:function(){if(!this.events)return[];for(var t=[],i=0;i<this.events.length;i++){var e=this.events[i];e.hasOwnProperty("date")||(e={date:e}),e.hasOwnProperty("type")||(e.type="is-primary"),e.date.getFullYear()===this.focused.year&&t.push(e)}return t},monthDates:function(){for(var t=this.focused.year,e=[],i=0;i<12;i++){var n=new Date(t,i,1);n.setHours(0,0,0,0),e.push(n)}return e},focusedMonth:function(){return this.focused.month}},watch:{focusedMonth:{handler:function(t){var e=this,n="month-".concat(t);this.$refs[n]&&this.$refs[n].length>0&&this.$nextTick((function(){e.$refs[n][0]&&e.$refs[n][0].focus()}))},deep:!0,immediate:!0}},methods:{selectMultipleDates:function(t){this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()})).length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),e.push(t.getFullYear()===this.focused.year),this.selectableDates)for(var i=0;i<this.selectableDates.length;i++){var n=this.selectableDates[i];if(t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth())return!0;e.push(!1)}if(this.unselectableDates)for(var r=0;r<this.unselectableDates.length;r++){var o=this.unselectableDates[r];e.push(t.getFullYear()!==o.getFullYear()||t.getMonth()!==o.getMonth())}if(this.unselectableDaysOfWeek)for(var h=0;h<this.unselectableDaysOfWeek.length;h++){var l=this.unselectableDaysOfWeek[h];e.push(t.getDay()!==l)}return e.indexOf(!1)<0},eventsDateMatch:function(t){if(!this.eventsInThisYear.length)return!1;for(var e=[],i=0;i<this.eventsInThisYear.length;i++)this.eventsInThisYear[i].date.getMonth()===t.getMonth()&&e.push(this.events[i]);return!!e.length&&e},classObject:function(t){function e(t,e,n){return!(!t||!e||n)&&(t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())}return{"is-selected":e(t,this.value,this.multiple)||(n=t,r=this.multipleSelectedDates,o=this.multiple,!(!Array.isArray(r)||!o)&&r.some((function(t){return n.getDate()===t.getDate()&&n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()}))),"is-today":e(t,this.dateCreator()),"is-selectable":this.selectableDate(t)&&!this.disabled,"is-unselectable":!this.selectableDate(t)||this.disabled};var n,r,o},emitChosenDate:function(t){this.disabled||(this.multiple?this.selectMultipleDates(t):this.selectableDate(t)&&this.$emit("input",t))},changeFocus:function(t,e){var n=t;n.setMonth(t.getMonth()+e),this.$emit("change-focus",n)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var It;const Dt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"mobile-modal":t.mobileModal,"trap-focus":t.trapFocus,"aria-role":t.ariaRole,"aria-modal":!t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange}},[t.inline?t._e():n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,disabled:t.disabled,readonly:!t.editable,"use-html5-validation":!1},on:{focus:t.handleOnFocus},nativeOn:{click:function(e){return t.onInputClick(e)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.togglePicker(!0)},change:function(e){t.onChange(e.target.value)}},slot:"trigger"},"b-input",t.$attrs,!1)),t._v(" "),n("b-dropdown-item",{class:{"dropdown-horizonal-timepicker":t.horizontalTimePicker},attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("div",[n("header",{staticClass:"datepicker-header"},[void 0!==t.$slots.header&&t.$slots.header.length?[t._t("header")]:n("div",{staticClass:"pagination field is-centered",class:t.size},[n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showPrev&&!t.disabled,expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:t.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.prev(e)},keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.prev(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.prev(e))}]}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"",type:"is-primary is-clickable"}})],1),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showNext&&!t.disabled,expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:t.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.next(e)},keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.next(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.next(e))}]}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"",type:"is-primary is-clickable"}})],1),t._v(" "),n("div",{staticClass:"pagination-list"}
2,[n("b-field",[t.isTypeMonth?t._e():n("b-select",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.focusedDateData.month,callback:function(e){t.$set(t.focusedDateData,"month",e)},expression:"focusedDateData.month"}},t._l(t.listOfMonths,(function(e){return n("option",{key:e.name,attrs:{disabled:e.disabled},domProps:{value:e.index}},[t._v("\r\n                                            "+t._s(e.name)+"\r\n                                        ")])}))),t._v(" "),n("b-select",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.focusedDateData.year,callback:function(e){t.$set(t.focusedDateData,"year",e)},expression:"focusedDateData.year"}},t._l(t.listOfYears,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v("\r\n                                            "+t._s(e)+"\r\n                                        ")])})))],1)],1)])],2),t._v(" "),t.isTypeMonth?n("div",[n("b-datepicker-month",{attrs:{"month-names":t.monthNames,"min-date":t.minDate,"max-date":t.maxDate,focused:t.focusedDateData,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.events,indicators:t.indicators,"date-creator":t.dateCreator,multiple:t.multiple},on:{"update:focused":function(e){t.focusedDateData=e},close:function(e){t.togglePicker(!1)},"change-focus":t.changeFocus},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1):n("div",{staticClass:"datepicker-content",class:{"content-horizonal-timepicker":t.horizontalTimePicker}},[n("b-datepicker-table",{attrs:{"day-names":t.dayNames,"month-names":t.monthNames,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,"min-date":t.minDate,"max-date":t.maxDate,focused:t.focusedDateData,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.events,indicators:t.indicators,"date-creator":t.dateCreator,"type-month":t.isTypeMonth,"nearby-month-days":t.nearbyMonthDays,"nearby-selectable-month-days":t.nearbySelectableMonthDays,"show-week-number":t.showWeekNumber,range:t.range,multiple:t.multiple},on:{"update:focused":function(e){t.focusedDateData=e},"range-start":function(e){return t.$emit("range-start",e)},"range-end":function(e){return t.$emit("range-end",e)},close:function(e){t.togglePicker(!1)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1)]),t._v(" "),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"datepicker-footer",class:{"footer-horizontal-timepicker":t.horizontalTimePicker}},[t._t("default")],2):t._e()])],1):n("b-input",t._b({ref:"input",attrs:{type:t.isTypeMonth?"month":"date",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":!1},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},staticRenderFns:[]},void 0,{name:"BDatepicker",components:(It={},o(It,Et.name,Et),o(It,At.name,At),o(It,j.name,j),o(It,yt.name,yt),o(It,xt.name,xt),o(It,z.name,z),o(It,gt.name,gt),o(It,vt.name,vt),It),mixins:[O],inheritAttrs:!1,props:{value:{type:[Date,Array]},dayNames:{type:Array,default:function(){return Array.isArray(I.defaultDayNames)?I.defaultDayNames:["Su","M","Tu","W","Th","F","S"]}},monthNames:{type:Array,default:function(){return Array.isArray(I.defaultMonthNames)?I.defaultMonthNames:["January","February","March","April","May","June","July","August","September","October","November","December"]}},firstDayOfWeek:{type:Number,default:function(){return"number"==typeof I.defaultFirstDayOfWeek?I.defaultFirstDayOfWeek:0}},inline:Boolean,minDate:Date,maxDate:Date,focusedDate:Date,placeholder:String,editable:Boolean,disabled:Boolean,horizontalTimePicker:B
vendor: 4,429 bytes, line 2
2oolean,unselectableDates:Array,unselectableDaysOfWeek:{type:Array,default:function(){return I.defaultUnselectableDaysOfWeek}},selectableDates:Array,dateFormatter:{type:Function,default:function(t,e){return"function"==typeof I.defaultDateFormatter?I.defaultDateFormatter(t):function(t,e){var n=(Array.isArray(t)?t:[t]).map((function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),12);return e.isTypeMonth?n.toLocaleDateString(void 0,{year:"numeric",month:"2-digit"}):n.toLocaleDateString()}));return e.multiple?n.join(", "):n.join(" - ")}(t,e)}},dateParser:{type:Function,default:function(t,e){return"function"==typeof I.defaultDateParser?I.defaultDateParser(t):function(t,e){if(!e.isTypeMonth)return new Date(Date.parse(t));if(t){var s=t.split("/"),n=4===s[0].length?s[0]:s[1],r=2===s[0].length?s[0]:s[1];if(n&&r)return new Date(parseInt(n,10),parseInt(r-1,10),1,0,0,0,0)}return null}(t,e)}},dateCreator:{type:Function,default:function(){return"function"==typeof I.defaultDateCreator?I.defaultDateCreator():new Date}},mobileNative:{type:Boolean,default:function(){return I.defaultDatepickerMobileNative}},position:String,events:Array,indicators:{type:String,default:"dots"},openOnFocus:Boolean,iconPrev:{type:String,default:function(){return I.defaultIconPrev}},iconNext:{type:String,default:function(){return I.defaultIconNext}},yearsRange:{type:Array,default:function(){return I.defaultDatepickerYearsRange}},type:{type:String,validator:function(t){return["month"].indexOf(t)>=0}},nearbyMonthDays:{type:Boolean,default:function(){return I.defaultDatepickerNearbyMonthDays}},nearbySelectableMonthDays:{type:Boolean,default:function(){return I.defaultDatepickerNearbySelectableMonthDays}},showWeekNumber:{type:Boolean,default:function(){return I.defaultDatepickerShowWeekNumber}},rulesForFirstWeek:{type:Number,default:function(){return 4}},range:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},mobileModal:{type:Boolean,default:function(){return I.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return I.defaultTrapFocus}},appendToBody:Boolean,ariaNextLabel:String,ariaPreviousLabel:String},data:function(){var t=(Array.isArray(this.value)?this.value[0]:this.value)||this.focusedDate||this.dateCreator();return{dateSelected:this.value,focusedDateData:{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()},_elementRef:"input",_isDatepicker:!0}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){var e=this;this.updateInternalState(t),this.multiple||this.togglePicker(!1),this.$emit("input",t),this.useHtml5Validation&&this.$nextTick((function(){e.checkHtml5Validity()}))}},listOfMonths:function(){var t=0,e=12;return this.minDate&&this.focusedDateData.year===this.minDate.getFullYear()&&(t=this.minDate.getMonth()),this.maxDate&&this.focusedDateData.year===this.maxDate.getFullYear()&&(e=this.maxDate.getMonth()),this.monthNames.map((function(n,r){return{name:n,index:r,disabled:r<t||r>e}}))},listOfYears:function(){var t=this.focusedDateData.year+this.yearsRange[1];this.maxDate&&this.maxDate.getFullYear()<t&&(t=Math.max(this.maxDate.getFullYear(),this.focusedDateData.year));var e=this.focusedDateData.year+this.yearsRange[0];this.minDate&&this.minDate.getFullYear()>e&&(e=Math.min(this.minDate.getFullYear(),this.focusedDateData.year));for(var n=[],i=e;i<=t;i++)n.push(i);return n.reverse()},showPrev:function(){return!!this.minDate&&(this.isTypeMonth?this.focusedDateData.year<=this.minDate.getFullYear():new Date(this.focusedDateData.year,this.focusedDateData.month)<=new Date(this.minDate.getFullYear(),this.minDate.getMonth()))},showNext:function(){return!!this.maxDate&&(this.isTypeMonth?this.focusedDateData.year>=this.maxDate.getFullYear():new Date(this.focusedDateData.year,this.focusedDateData.month)>=new Date(this.maxDate.getFullYear(),this.maxDate.getMonth()))},isMobile:function(){return this.mobileNative&&x.any()},isTypeMonth:function(){return"month"===this.type},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.updateInternalState(t),this.multiple||this.togglePicker(!1)},focusedDate:function(t){t&&(this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()})},"focusedDateData.month":function(t){this.$emit("change-month",t)},"focusedDateData.year":function(t){this.$emit("change-year",t)}}
2,methods:{onChange:function(t){var e=this.dateParser(t,this);!e||isNaN(e)&&(!Array.isArray(e)||2!==e.length||isNaN(e[0])||isNaN(e[1]))?(this.computedValue=null,this.$refs.input.newValue=this.computedValue):this.computedValue=e},formatValue:function(t){return Array.isArray(t)?Array.isArray(t)&&t.every((function(t){return!isNaN(t)}))?this.dateFormatter(t,this):null:t&&!isNaN(t)?this.dateFormatter(t,this):null},prev:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year-=1:this.focusedDateData.month>0?this.focusedDateData.month-=1:(this.focusedDateData.month=11,this.focusedDateData.year-=1))},next:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year+=1:this.focusedDateData.month<11?this.focusedDateData.month+=1:(this.focusedDateData.month=0,this.focusedDateData.year+=1))},formatNative:function(t){return this.isTypeMonth?this.formatYYYYMM(t):this.formatYYYYMMDD(t)},formatYYYYMMDD:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),r=e.getMonth()+1,o=e.getDate();return n+"-"+(r<10?"0":"")+r+"-"+(o<10?"0":"")+o}return""},formatYYYYMM:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),r=e.getMonth()+1;return n+"-"+(r<10?"0":"")+r}return""},onChangeNativePicker:function(t){var e=t.target.value,s=e?e.split("-"):[];if(3===s.length){var n=parseInt(s[0],10),r=parseInt(s[1])-1,o=parseInt(s[2]);this.computedValue=new Date(n,r,o)}else this.computedValue=null},updateInternalState:function(t){var e=Array.isArray(t)?t.length?t[0]:this.dateCreator():t||this.dateCreator();this.focusedDateData={day:e.getDate(),month:e.getMonth(),year:e.getFullYear()},this.dateSelected=t},togglePicker:function(t){this.$refs.dropdown&&this.closeOnClick&&(this.$refs.dropdown.isActive="boolean"==typeof t?t:!this.$refs.dropdown.isActive)},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var input=this.$refs.input.$refs.input;return input.focus(),void input.click()}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){this.$refs.dropdown&&this.$refs.dropdown.isActive&&27===t.keyCode&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur()},changeFocus:function(t){this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Bt={install:function(t){P(t,Dt)}};use(Bt);var Rt,Pt=Bt;const Ft=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange}},[t.inline?t._e():n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.toggle(!0)},change:function(e){t.onChange(e.target.value)}},slot:"trigger"},"b-input",t.$attrs,!1)),t._v(" "),n("b-dropdown-item",{attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("b-field",{attrs:{grouped:"",position:"is-centered"}},[n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){t.onHoursChange(e.target.value)}},model:{value:t.hoursSelected,callback:function(e){t.hoursSelected=e},expression:"hoursSelected"}},t._l(t.hours,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isHourDisabled(e.value)},domProps:{value:e.value}},[t._v("\r\n                            "+t._s(e.label)+"\r\n                        ")])}))),t._v(" "),n("span",{staticClass:"control is-colon"},[t._v(":")]),t._v(" "),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){t.onMinutesChange(e.target.value)}},model:{value:t.minutesSelected,callback:function(e){t.minutesSelected=e},expression:"minutesSelected"}},t._l(t.minutes,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isMinuteDisabled(e.value)},domProps:{value:e.value}},[t._v("\r\n                            "+t._s(e.label)+"\r\n                        ")])}))),t._v(" "),t.enableSeconds?[n("span",{staticClass:"control is-colon"},[t._v(":")]),t._v(" "),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){t.onSecondsChange(e.target.value)}},model:{value:t.secondsSelected,callback:function(e){t.secondsSelected=e},expression:"secondsSelected"}},t._l(t.seconds,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isSecondDisabled(e.value)},domProps:{value:e.value}},[t._v("\r\n                                "+t._s(e.label)+"\r\n                            ")])})))]:t._e(),t._v(" "),t.isHourFormat24?t._e():n("b-select",{attrs:{disabled:t.disabled},nativeOn:{change:function(e){t.onMeridienChange(e.target.value)}}
vendor: 13,297 bytes, line 2
2,model:{value:t.meridienSelected,callback:function(e){t.meridienSelected=e},expression:"meridienSelected"}},t._l(t.meridiens,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v("\r\n                            "+t._s(e)+"\r\n                        ")])})))],2),t._v(" "),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"timepicker-footer"},[t._t("default")],2):t._e()],1)],1):n("b-input",t._b({ref:"input",attrs:{type:"time",step:t.nativeStep,autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{change:function(e){t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))],1)},staticRenderFns:[]},void 0,{name:"BTimepicker",components:(Rt={},o(Rt,j.name,j),o(Rt,yt.name,yt),o(Rt,xt.name,xt),o(Rt,z.name,z),o(Rt,gt.name,gt),o(Rt,vt.name,vt),Rt),mixins:[ct],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Ot;const Nt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.isMobile||t.inline?n("b-datepicker",t._b({ref:"datepicker",attrs:{"open-on-focus":t.openOnFocus,position:t.position,loading:t.loading,inline:t.inline,editable:t.editable,expanded:t.expanded,"close-on-click":!1,"date-formatter":t.defaultDatetimeFormatter,"date-parser":t.defaultDatetimeParser,"min-date":t.minDate,"max-date":t.maxDate,icon:t.icon,"icon-pack":t.iconPack,size:t.datepickerSize,placeholder:t.placeholder,"horizontal-time-picker":t.horizontalTimePicker,range:!1,disabled:t.disabled,"mobile-native":t.isMobileNative,focusable:t.focusable,"append-to-body":t.appendToBody},on:{focus:t.onFocus,blur:t.onBlur,"change-month":function(e){t.$emit("change-month",e)},"change-year":function(e){t.$emit("change-year",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-datepicker",t.datepicker,!1),[n("nav",{staticClass:"level is-mobile"},[void 0!==t.$slots.left?n("div",{staticClass:"level-item has-text-centered"},[t._t("left")],2):t._e(),t._v(" "),n("div",{staticClass:"level-item has-text-centered"},[n("b-timepicker",t._b({ref:"timepicker",attrs:{inline:"",editable:t.editable,"min-time":t.minTime,"max-time":t.maxTime,size:t.timepickerSize,disabled:t.timepickerDisabled,focusable:t.focusable,"mobile-native":t.isMobileNative},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-timepicker",t.timepicker,!1))],1),t._v(" "),void 0!==t.$slots.right?n("div",{staticClass:"level-item has-text-centered"},[t._t("right")],2):t._e()])]):n("b-input",t._b({ref:"input",attrs:{type:"datetime-local",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))},staticRenderFns:[]},void 0,{name:"BDatetimepicker",components:(Ot={},o(Ot,Dt.name,Dt),o(Ot,Ft.name,Ft),Ot),mixins:[O],inheritAttrs:!1,props:{value:{type:Date},editable:{type:Boolean,default:!1},placeholder:String,horizontalTimePicker:Boolean,disabled:Boolean,icon:String,iconPack:String,inline:Boolean,openOnFocus:Boolean,position:String,mobileNative:{type:Boolean,default:!0},minDatetime:Date,maxDatetime:Date,datetimeFormatter:{type:Function},datetimeParser:{type:Function},datetimeCreator:{type:Function,default:function(t){return"function"==typeof I.defaultDatetimeCreator?I.defaultDatetimeCreator(t):t}},datepicker:Object,timepicker:Object,tzOffset:{type:Number,default:0},focusable:{type:Boolean,default:!0},appendToBody:Boolean},data:function(){return{newValue:this.adjustValue(this.value)}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){if(t){var e=new Date(t.getTime());this.newValue?t.getDate()===this.newValue.getDate()&&t.getMonth()===this.newValue.getMonth()&&t.getFullYear()===this.newValue.getFullYear()||0!==t.getHours()||0!==t.getMinutes()||0!==t.getSeconds()||e.setHours(this.newValue.getHours(),this.newValue.getMinutes(),this.newValue.getSeconds(),0):e=this.datetimeCreator(t),this.minDatetime&&e<this.adjustValue(this.minDatetime)?e=this.adjustValue(this.minDatetime):this.maxDatetime&&e>this.adjustValue(this.maxDatetime)&&(e=this.adjustValue(this.maxDatetime)),this.newValue=new Date(e.getTime())}else this.newValue=this.adjustValue(this.value);var n=this.adjustValue(this.newValue,!0);this.$emit("input",n)}},isMobileNative:function(){return this.mobileNative&&0===this.tzOffset},isMobile:function(){return this.isMobileNative&&x.any()},minDate:function(){if(!this.minDatetime)return this.datepicker?this.adjustValue(this.datepicker.minDate):null;var t=this.adjustValue(this.minDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},maxDate:function(){if(!this.maxDatetime)return this.datepicker?this.adjustValue(this.datepicker.maxDate):null;var t=this.adjustValue(this.maxDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},minTime:function(){if(!this.minDatetime||null===this.newValue||void 0===this.newValue)return this.timepicker?this.adjustValue(this.timepicker.minTime):null;var t=this.adjustValue(this.minDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},maxTime:function(){if(!this.maxDatetime||null===this.newValue||void 0===this.newValue)return this.timepicker?this.adjustValue(this.timepicker.maxTime):null;var t=this.adjustValue(this.maxDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},datepickerSize:function(){return this.datepicker&&this.datepicker.size?this.datepicker.size:this.size},timepickerSize:function(){return this.timepicker&&this.timepicker.size?this.timepicker.size:this.size},timepickerDisabled:function(){return this.timepicker&&this.timepicker.disabled?this.timepicker.disabled:this.disabled}},watch:{value:function(t){this.newValue=this.adjustValue(this.value)},tzOffset:function(t){this.newValue=this.adjustValue(this.value)}},methods:{adjustValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?new Date(t.getTime()-6e4*this.tzOffset):new Date(t.getTime()+6e4*this.tzOffset):t},defaultDatetimeParser:function(t){return"function"==typeof this.datetimeParser?this.datetimeParser(t):"function"==typeof I.defaultDatetimeParser?I.defaultDatetimeParser(t):new Date(Date.parse(t))},defaultDatetimeFormatter:function(t){return"function"==typeof this.datetimeFormatter?this.datetimeFormatter(t):"function"==typeof I.defaultDatetimeFormatter?I.defaultDatetimeFormatter(t):this.$refs.timepicker?new Date(t.getFullYear(),t.getMonth(),t.getDate(),12).toLocaleDateString()+" "+this.$refs.timepicker.timeFormatter(t,this.$refs.timepicker):null},onChangeNativePicker:function(t){var e=t.target.value,s=e?e.split(/\D/):[];if(s.length>=5){var n=parseInt(s[0],10),r=parseInt(s[1],10)-1,o=parseInt(s[2],10),h=parseInt(s[3],10),l=parseInt(s[4],10);this.computedValue=new Date(n,r,o,h,l)}else this.computedValue=null},formatNative:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),r=e.getMonth()+1,o=e.getDate(),h=e.getHours(),l=e.getMinutes(),c=e.getSeconds();return n+"-"+(r<10?"0":"")+r+"-"+(o<10?"0":"")+o+"T"+(h<10?"0":"")+h+":"+(l<10?"0":"")+l+":"+(c<10?"0":"")+c}return""},toggle:function(){this.$refs.datepicker.toggle()}},mounted:function(){this.isMobile&&!this.inline||this.newValue&&this.$refs.datepicker.$forceUpdate()}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Lt={install:function(t){P(t,Nt)}};use(Lt);var zt=Lt;const jt=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation},on:{"after-enter":t.afterEnter,"before-leave":t.beforeLeave,"after-leave":t.afterLeave}},[t.destroyed?t._e():n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"modal is-active",class:[{"is-full-screen":t.fullScreen},t.customClass],attrs:{tabindex:"-1",role:t.ariaRole,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){t.cancel("outside")}}}),t._v(" "),n("div",{staticClass:"animation-content",class:{"modal-content":!t.hasModalCard},style:t.customStyle},[t.component?n(t.component,t._g(t._b({tag:"component",on:{close:t.close}},"component",t.props,!1),t.events)):t.content?n("div",{domProps:{innerHTML:t._s(t.content)}}):t._t("default"),t._v(" "),t.showX?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.animating,expression:"!animating"}],staticClass:"modal-close is-large",attrs:{type:"button"},on:{click:function(e){t.cancel("x")}}}):t._e()],2)])])},staticRenderFns:[]},void 0,{name:"BModal",directives:{trapFocus:pt},props:{active:Boolean,component:[Object,Function],content:String,programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return I.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return I.defaultModalScroll?I.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}},fullScreen:Boolean,trapFocus:{type:Boolean,default:function(){return I.defaultTrapFocus}},customClass:String,ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean,destroyOnHide:{type:Boolean,default:!0}},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"==typeof this.width?this.width+"px":this.width,animating:!0,destroyed:!this.active}},computed:{cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?I.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(t){this.isActive=t},isActive:function(t){var e=this;t&&(this.destroyed=!1),this.handleScroll(),this.$nextTick((function(){t&&e.$el&&e.$el.focus&&e.$el.focus()}))}},methods:{handleScroll:function(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel:function(t){this.cancelOptions.indexOf(t)<0||(this.onCancel.apply(null,arguments),this.close())},close:function(){var t=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),C(t.$el)}),150))},keyPress:function(t){this.isActive&&27===t.keyCode&&this.cancel("escape")},afterEnter:function(){this.animating=!1},beforeLeave:function(){this.animating=!0},afterLeave:function(){this.destroyOnHide&&(this.destroyed=!0)}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!=typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Ut=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[t.isActive?n("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"dialog modal is-active",class:t.dialogClass,attrs:{role:t.ariaRole,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){t.cancel("outside")}}}),t._v(" "),n("div",{staticClass:"modal-card animation-content"},[t.title?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[t._v(t._s(t.title))])]):t._e(),t._v(" "),n("section",{staticClass:"modal-card-body",class:{"
2is-titleless":!t.title,"is-flex":t.hasIcon}},[n("div",{staticClass:"media"},[t.hasIcon&&(t.icon||t.iconByType)?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.icon?t.icon:t.iconByType,pack:t.iconPack,type:t.type,both:!t.icon,size:"is-large"}})],1):t._e(),t._v(" "),n("div",{staticClass:"media-content"},[n("p",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),t.hasInput?n("div",{staticClass:"field"},[n("div",{staticClass:"control"},["checkbox"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.prompt)?t._i(t.prompt,null)>-1:t.prompt},on:{keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){var n=t.prompt,r=e.target,o=!!r.checked;if(Array.isArray(n)){var h=t._i(n,null);r.checked?h<0&&(t.prompt=n.concat([null])):h>-1&&(t.prompt=n.slice(0,h).concat(n.slice(h+1)))}else t.prompt=o}}},"input",t.inputAttrs,!1)):"radio"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"radio"},domProps:{checked:t._q(t.prompt,null)},on:{keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){t.prompt=null}}},"input",t.inputAttrs,!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:t.inputAttrs.type},domProps:{value:t.prompt},on:{keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},input:function(e){e.target.composing||(t.prompt=e.target.value)}}},"input",t.inputAttrs,!1))]),t._v(" "),n("p",{staticClass:"help is-danger"},[t._v(t._s(t.validationMessage))])]):t._e()])])]),t._v(" "),n("footer",{staticClass:"modal-card-foot"},[t.showCancel?n("button",{ref:"cancelButton",staticClass:"button",on:{click:function(e){t.cancel("button")}}},[t._v(t._s(t.cancelText))]):t._e(),t._v(" "),n("button",{ref:"confirmButton",staticClass:"button",class:t.type,on:{click:t.confirm}},[t._v(t._s(t.confirmText))])])])]):t._e()])},staticRenderFns:[]},void 0,{name:"BDialog",components:o({},z.name,z),directives:{trapFocus:pt},extends:jt,props:{title:String,message:String,icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:function(){return I.defaultDialogConfirmText?I.defaultDialogConfirmText:"OK"}},cancelText:{type:String,default:function(){return I.defaultDialogCancelText?I.defaultDialogCancelText:"Cancel"}},hasInput:Boolean,inputAttrs:{type:Object,default:function(){return{}}},onConfirm:{type:Function,default:function(){}},container:{type:String,default:function(){return I.defaultContainerElement}},focusOn:{type:String,default:"confirm"},trapFocus:{type:Boolean,default:function(){return I.defaultTrapFocus}},ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean},data:function(){return{prompt:this.hasInput&&this.inputAttrs.value||"",isActive:!1,validationMessage:""}},computed:{dialogClass:function(){return[this.size,{"has-custom-container":null!==this.container}]},iconByType:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel:function(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm:function(){var t=this;if(void 0!==this.$refs.input&&!this.$refs.input.checkValidity())return this.validationMessage=this.$refs.input.validationMessage,void this.$nextTick((function(){return t.$refs.input.select()}));this.onConfirm(this.prompt),this.close()},close:function(){var t=this;this.isActive=!1,setTimeout((function(){t.$destroy(),C(t.$el)}),150)}},beforeMount:function(){var t=this;"undefined"!=typeof window&&this.$nextTick((function(){(document.querySelector(t.container)||document.body).appendChild(t.$el)}))},mounted:function(){var t=this;this.isActive=!0,void 0===this.inputAttrs.required&&this.$set(this.inputAttrs,"required",!0),this.$nextTick((function(){t.hasInput?t.$refs.input.focus():"cancel"===t.focusOn&&t.showCancel?t.$refs.cancelButton.focus():t.$refs.confirmButton.focus()}))}},void 0,!1,void 0,!1,void 0,void 0,void 0);var $t;function qt(t){return new(("undefined"!=typeof window&&window.Vue?window.Vue:$t||A).extend(Ut))({el:document.createElement("div"),propsData:t})}var Vt={alert:function(t){"string"==typeof t&&(t={message:t});return qt(S({canCancel:!1},t))},confirm:function(t){return qt(S({},t))}
vendor: 4,551 bytes, line 2
2,prompt:function(t){return qt(S({hasInput:!0,confirmText:"Done"},t))}},Ht={install:function(t){$t=t,P(t,Ut),F(t,"dialog",Vt)}};use(Ht);var dialog=Ht,Wt={install:function(t){P(t,gt),P(t,vt)}};use(Wt);var Xt=Wt,Zt={install:function(t){P(t,yt)}};use(Zt);var Gt=Zt,Yt={install:function(t){P(t,z)}};use(Yt);var Kt=Yt,Jt={install:function(t){P(t,j)}};use(Jt);var input=Jt,Qt="undefined"==typeof window,te=Qt?Object:window.HTMLElement,ee=Qt?Object:window.File;const ie=R({render:function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:this.animation}},[this.isActive?e("div",{staticClass:"loading-overlay is-active",class:{"is-full-page":this.displayInFullPage}},[e("div",{staticClass:"loading-background",on:{click:this.cancel}}),this._v(" "),this._t("default",[e("div",{staticClass:"loading-icon"})])],2):this._e()])},staticRenderFns:[]},void 0,{name:"BLoading",props:{active:Boolean,programmatic:Boolean,container:[Object,Function,te],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1,displayInFullPage:this.isFullPage}},watch:{active:function(t){this.isActive=t},isFullPage:function(t){this.displayInFullPage=t}},methods:{cancel:function(){this.canCancel&&this.isActive&&this.close()},close:function(){var t=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),C(t.$el)}),150))},keyPress:function(t){27===t.keyCode&&this.cancel()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},void 0,!1,void 0,!1,void 0,void 0,void 0);var ne,re={open:function(t){var e=S({programmatic:!0},t);return new(("undefined"!=typeof window&&window.Vue?window.Vue:ne||A).extend(ie))({el:document.createElement("div"),propsData:e})}},ae={install:function(t){ne=t,P(t,ie),F(t,"loading",re)}};use(ae);var se=ae;const oe=R({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"menu"},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"BMenu",props:{accordion:{type:Boolean,default:!0},activable:{type:Boolean,default:!0}},data:function(){return{_isMenu:!0}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const ue=R({},void 0,{name:"BMenuList",functional:!0,props:{label:String,icon:String,iconPack:String,ariaRole:{type:String,default:""}},render:function(t,e){var n=null,r=e.slots();(e.props.label||r.label)&&(n=t("p",{attrs:{class:"menu-label"}},e.props.label?e.props.icon?[t("b-icon",{props:{icon:e.props.icon,pack:e.props.iconPack,size:"is-small"}}),t("span",{},e.props.label)]:e.props.label:r.label));var o=t("ul",{attrs:{class:"menu-list",role:"menu"===e.props.ariaRole?e.props.ariaRole:null}},r.default);return n?[n,o]:o}},void 0,void 0,void 0,!1,void 0,void 0,void 0);const he=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{attrs:{role:t.ariaRoleMenu}},[n(t.tag,t._g(t._b({tag:"component",class:{"is-active":t.newActive,"is-disabled":t.disabled},on:{click:function(e){t.onClick(e)}}},"component",t.$attrs,!1),t.$listeners),[t.icon?n("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:"is-small"}}):t._e(),t._v(" "),t.label?n("span",[t._v(t._s(t.label))]):t._t("label",null,{expanded:t.newExpanded,active:t.newActive})],2),t._v(" "),t.$slots.default?[n("transition",{attrs:{name:t.animation}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.newExpanded,expression:"newExpanded"}]},[t._t("default")],2)])]:t._e()],2)},staticRenderFns:[]},void 0,{name:"BMenuItem",components:o({},z.name,z),inheritAttrs:!1,props:{label:String,active:Boolean,expanded:Boolean,disabled:Boolean,iconPack:String,icon:String,animation:{type:String,default:"slide"},tag:{type:String,default:"a",validator:function(t){return I.defaultLinkTags.indexOf(t)>=0}},ariaRole:{type:String,default:""}},data:function(){return{newActive:this.active,newExpanded:this.expanded}},computed:{ariaRoleMenu:function(){return"menuitem"===this.ariaRole?this.ariaRole:null}},watch:{active:function(t){this.newActive=t}
2,expanded:function(t){this.newExpanded=t}},methods:{onClick:function(t){if(!this.disabled){var menu=this.getMenu();this.reset(this.$parent,menu),this.newExpanded=!this.newExpanded,this.$emit("update:expanded",this.newActive),menu&&menu.activable&&(this.newActive=!0,this.$emit("update:active",this.newActive))}},reset:function(t,menu){var e=this;t.$children.filter((function(t){return t.name===e.name})).forEach((function(n){n!==e&&(e.reset(n,menu),(!t.$data._isMenu||t.$data._isMenu&&t.accordion)&&(n.newExpanded=!1,n.$emit("update:expanded",n.newActive)),menu&&menu.activable&&(n.newActive=!1,n.$emit("update:active",n.newActive)))}))},getMenu:function(){for(var t=this.$parent;t&&!t.$data._isMenu;)t=t.$parent;return t}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var le={install:function(t){P(t,oe),P(t,ue),P(t,he)}};use(le);var menu=le,ce={components:o({},z.name,z),props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3}},data:function(){return{isActive:this.active}},watch:{active:function(t){this.isActive=t},isActive:function(t){t?this.setAutoClose():this.timer&&clearTimeout(this.timer)}},computed:{computedIcon:function(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.$emit("close"),this.$emit("update:active",!1)},setAutoClose:function(){var t=this;this.autoClose&&(this.timer=setTimeout((function(){t.isActive&&t.close()}),this.duration))}},mounted:function(){this.setAutoClose()}};const de=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.isActive?n("article",{staticClass:"message",class:[t.type,t.size]},[t.title?n("header",{staticClass:"message-header"},[n("p",[t._v(t._s(t.title))]),t._v(" "),t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e()]):t._e(),t._v(" "),n("section",{staticClass:"message-body"},[n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{class:t.type,attrs:{icon:t.computedIcon,pack:t.iconPack,both:"",size:t.newIconSize}})],1):t._e(),t._v(" "),n("div",{staticClass:"media-content"},[t._t("default")],2)])])]):t._e()])},staticRenderFns:[]},void 0,{name:"BMessage",mixins:[ce],props:{ariaCloseLabel:String},data:function(){return{newIconSize:this.iconSize||this.size||"is-large"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var fe={install:function(t){P(t,de)}};use(fe);var pe,me=fe,ge={open:function(t){var e;"string"==typeof t&&(t={content:t});t.parent&&(e=t.parent,delete t.parent);var n=S({programmatic:!0},t);return new(("undefined"!=typeof window&&window.Vue?window.Vue:pe||A).extend(jt))({parent:e,el:document.createElement("div"),propsData:n})}},ve={install:function(t){pe=t,P(t,jt),F(t,"modal",ge)}};use(ve);var be=ve,ye={props:{type:{type:String,default:"is-dark"},message:String,duration:Number,queue:{type:Boolean,default:void 0},position:{type:String,default:"is-top",validator:function(t){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(t)>-1}},container:String},data:function(){return{isActive:!1,parentTop:null,parentBottom:null,newContainer:this.container||I.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{shouldQueue:function(){return!!(void 0!==this.queue?this.queue:I.defaultNoticeQueue)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},close:function(){var t=this;clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((function(){t.$destroy(),C(t.$el)}),150)},showNotice:function(){var t=this;this.shouldQueue()?setTimeout((function(){return t.showNotice()}),250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indef
2inite||(this.timer=setTimeout((function(){return t.close()}),this.newDuration)))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var t=document.querySelector(this.newContainer)||document.body;t.appendChild(this.parentTop),t.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}};const we=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("article",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"notification",class:[t.type,t.position]},[t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e(),t._v(" "),n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.computedIcon,pack:t.iconPack,both:"",size:"is-large","aria-hidden":""}})],1):t._e(),t._v(" "),n("div",{staticClass:"media-content"},[t.message?n("p",{staticClass:"text",domProps:{innerHTML:t._s(t.message)}}):t._t("default")],2)])])])},staticRenderFns:[]},void 0,{name:"BNotification",mixins:[ce],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Me=R({render:function(){var t=this.$createElement;return(this._self._c||t)("b-notification",this._b({on:{close:this.close}},"b-notification",this.$options.propsData,!1))},staticRenderFns:[]},void 0,{name:"BNotificationNotice",mixins:[ye],props:{indefinite:{type:Boolean,default:!1}},data:function(){return{newDuration:this.duration||I.defaultNotificationDuration}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var _e,ke={open:function(t){var e;"string"==typeof t&&(t={message:t});var n={position:I.defaultNotificationPosition||"is-top-right"};t.parent&&(e=t.parent,delete t.parent);var r=S(n,t);return new(("undefined"!=typeof window&&window.Vue?window.Vue:_e||A).extend(Me))({parent:e,el:document.createElement("div"),propsData:r})}},Se={install:function(t){_e=t,P(t,we),F(t,"notification",ke)}};use(Se);var xe=Se;const Ce=R({render:function(){var t=this.$createElement,e=this._self._c||t;return e("a",this._g({staticClass:"navbar-burger burger",class:{"is-active":this.isOpened},attrs:{role:"button","aria-label":"menu","aria-expanded":this.isOpened}},this.$listeners),[e("span",{attrs:{"aria-hidden":"true"}}),this._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),this._v(" "),e("span",{attrs:{"aria-hidden":"true"}})])},staticRenderFns:[]},void 0,{name:"NavbarBurger",props:{isOpened:{type:Boolean,default:!1}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Te="undefined"!=typeof window&&("ontouchstart"in window||navigator.msMaxTouchPoints>0)?["touchstart","click"]:["click"],Ee=[];function Ae(t){var e="function"==typeof t;if(!e&&"object"!==r(t))throw new Error("v-click-outside: Binding value should be a function or an object, typeof ".concat(t," given"));return{handler:e?t:t.handler,middleware:t.middleware||function(t){return t},events:t.events||Te}}function Ie(t){var e=t.el,n=t.event,r=t.handler,o=t.middleware;n.target!==e&&!e.contains(n.target)&&o(n,e)&&r(n,e)}var De={bind:function(t,e){var n=Ae(e.value),r=n.handler,o=n.middleware,h=n.events,l={el:t,eventHandlers:h.map((function(e){return{event:e,handler:function(e){return Ie({event:e,el:t,handler:r,middleware:o})}}}))};l.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.addEventListener(e,n)})),Ee.push(l)},update:function(t,e){var n=Ae(e.value),r=n.handler,o=n.middleware,h=n.events,l=Ee.filter((function(e){return e.el===t}))[0];
2l.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.removeEventListener(e,n)})),l.eventHandlers=h.map((function(e){return{event:e,handler:function(e){return Ie({event:e,el:t,handler:r,middleware:o})}}})),l.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.addEventListener(e,n)}))},unbind:function(t){Ee.filter((function(e){return e.el===t}))[0].eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.removeEventListener(e,n)}))},instances:Ee};const Be=R({},void 0,{name:"BNavbar",components:{NavbarBurger:Ce},directives:{clickOutside:De},props:{type:[String,Object],transparent:{type:Boolean,default:!1},fixedTop:{type:Boolean,default:!1},fixedBottom:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},wrapperClass:{type:String},closeOnClick:{type:Boolean,default:!0},mobileBurger:{type:Boolean,default:!0},spaced:Boolean,shadow:Boolean},data:function(){return{internalIsActive:this.isActive,_isNavBar:!0}},computed:{isOpened:function(){return this.internalIsActive},computedClasses:function(){var t;return[this.type,(t={},o(t,"is-fixed-top",this.fixedTop),o(t,"is-fixed-bottom",this.fixedBottom),o(t,"is-spaced",this.spaced),o(t,"has-shadow",this.shadow),o(t,"is-transparent",this.transparent),t)]}},watch:{isActive:{handler:function(t){this.internalIsActive=t},immediate:!0},fixedTop:{handler:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass("has-navbar-fixed-top"),this.spaced&&this.setBodyClass("has-spaced-navbar-fixed-top")):(this.removeBodyClass("has-navbar-fixed-top"),this.removeBodyClass("has-spaced-navbar-fixed-top"))},immediate:!0},fixedBottom:{handler:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass("has-navbar-fixed-bottom"),this.spaced&&this.setBodyClass("has-spaced-navbar-fixed-bottom")):(this.removeBodyClass("has-navbar-fixed-bottom"),this.removeBodyClass("has-spaced-navbar-fixed-bottom"))},immediate:!0}},methods:{toggleActive:function(){this.internalIsActive=!this.internalIsActive,this.emitUpdateParentEvent()},closeMenu:function(){this.closeOnClick&&(this.internalIsActive=!1,this.emitUpdateParentEvent())},emitUpdateParentEvent:function(){this.$emit("update:isActive",this.internalIsActive)},setBodyClass:function(t){"undefined"!=typeof window&&document.body.classList.add(t)},removeBodyClass:function(t){"undefined"!=typeof window&&document.body.classList.remove(t)},checkIfFixedPropertiesAreColliding:function(){if(this.fixedTop&&this.fixedBottom)throw new Error("You should choose if the BNavbar is fixed bottom or fixed top, but not both")},genNavbar:function(t){var e=[this.genNavbarBrandNode(t),this.genNavbarSlotsNode(t)];if(!this.wrapperClass)return this.genNavbarSlots(t,e);var n=t("div",{class:this.wrapperClass},e);return this.genNavbarSlots(t,[n])},genNavbarSlots:function(t,e){return t("nav",{staticClass:"navbar",class:this.computedClasses,attrs:{role:"navigation","aria-label":"main navigation"},directives:[{name:"click-outside",value:this.closeMenu}]},e)},genNavbarBrandNode:function(t){return t("div",{class:"navbar-brand"},[this.$slots.brand,this.genBurgerNode(t)])},genBurgerNode:function(t){if(this.mobileBurger){var e=t("navbar-burger",{props:{isOpened:this.isOpened},on:{click:this.toggleActive}});return!!this.$scopedSlots.burger?this.$scopedSlots.burger({isOpened:this.isOpened,toggleActive:this.toggleActive}):e}},genNavbarSlotsNode:function(t){return t("div",{staticClass:"navbar-menu",class:{"is-active":this.isOpened}},[this.genMenuPosition(t,"start"),this.genMenuPosition(t,"end")])},genMenuPosition:function(t,e){return t("div",{staticClass:"navbar-".concat(e)},this.$slots[e])}},beforeDestroy:function(){if(this.fixedTop){var t=this.spaced?"has-spaced-navbar-fixed-top":"has-navbar-fixed-top";this.removeBodyClass(t)}else if(this.fixedBottom){var e=this.spaced?"has-spaced-navbar-fixed-bottom":"has-navbar-fixed-bottom";this.removeBodyClass(e)}},render:function(t,e){return this.genNavbar(t)}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var Re=["div","span"];const Pe=R({render:function(){var t=this.$createElement;return(this._self._c||t)(this.tag,this._g(this._b({tag:"component",staticClass:"navbar-item",class:{"
2is-active":this.active}},"component",this.$attrs,!1),this.$listeners),[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"BNavbarItem",inheritAttrs:!1,props:{tag:{type:String,default:"a"},active:Boolean},methods:{keyPress:function(t){27===t.keyCode&&this.closeMenuRecursive(this,["NavBar"])},handleClickEvent:function(t){if(!Re.some((function(e){return e===t.target.localName}))){var e=this.closeMenuRecursive(this,["NavbarDropdown","NavBar"]);e.$data._isNavbarDropdown&&this.closeMenuRecursive(e,["NavBar"])}},closeMenuRecursive:function(t,e){return t.$parent?e.reduce((function(e,n){return t.$parent.$data["_is".concat(n)]?(t.$parent.closeMenu(),t.$parent):e}),null)||this.closeMenuRecursive(t.$parent,e):null}},mounted:function(){"undefined"!=typeof window&&(this.$el.addEventListener("click",this.handleClickEvent),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!=typeof window&&(this.$el.removeEventListener("click",this.handleClickEvent),document.removeEventListener("keyup",this.keyPress))}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Fe=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeMenu,expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{"is-hoverable":t.isHoverable,"is-active":t.newActive},on:{mouseenter:t.checkHoverable}}
2,[n("a",{staticClass:"navbar-link",class:{"is-arrowless":t.arrowless,"is-active":t.newActive&&t.collapsible},attrs:{role:"menuitem","aria-haspopup":"true",href:"#"},on:{click:function(e){e.preventDefault(),t.newActive=!t.newActive}}},[t.label?[t._v(t._s(t.label))]:t._t("label")],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapsible||t.collapsible&&t.newActive,expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{"is-right":t.right,"is-boxed":t.boxed}},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BNavbarDropdown",directives:{clickOutside:De},props:{label:String,hoverable:Boolean,active:Boolean,right:Boolean,arrowless:Boolean,boxed:Boolean,closeOnClick:{type:Boolean,default:!0},collapsible:Boolean},data:function(){return{newActive:this.active,isHoverable:this.hoverable,_isNavbarDropdown:!0}},watch:{active:function(t){this.newActive=t}},methods:{showMenu:function(){this.newActive=!0},closeMenu:function(){this.newActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1)},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Oe={install:function(t){P(t,Be),P(t,Pe),P(t,Fe)}};use(Oe);var Ne,Le=Oe;const ze=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-numberinput field",class:t.fieldClasses},[t.controls?n("p",{staticClass:"control",on:{mouseup:function(e){t.onStopLongPress(!1)},mouseleave:function(e){t.onStopLongPress(!1)},touchend:function(e){t.onStopLongPress(!1)},touchcancel:function(e){t.onStopLongPress(!1)}}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.disabled||t.disabledMin},on:{mousedown:function(e){t.onStartLongPress(e,!1)},touchstart:function(e){e.preventDefault(),t.onStartLongPress(e,!1)},click:function(e){t.onControlClick(e,!1)}}},[n("b-icon",{attrs:{icon:"minus",both:"",pack:t.iconPack,size:t.iconSize}})],1)]):t._e(),t._v(" "),n("b-input",t._b({ref:"input",attrs:{type:"number",step:t.newStep,max:t.max,min:t.min,size:t.size,disabled:t.disabled,readonly:!t.editable,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-pack":t.iconPack,autocomplete:t.autocomplete,expanded:t.expanded,"use-html5-validation":t.useHtml5Validation},on:{focus:function(e){t.$emit("focus",e)},blur:function(e){t.$emit("blur",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=t._n(e)},expression:"computedValue"}},"b-input",t.$attrs,!1)),t._v(" "),t.controls?n("p",{staticClass:"control",on:{mouseup:function(e){t.onStopLongPress(!0)},mouseleave:function(e){t.onStopLongPress(!0)},touchend:function(e){t.onStopLongPress(!0)},touchcancel:function(e){t.onStopLongPress(!0)}}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.disabled||t.disabledMax},on:{mousedown:function(e){t.onStartLongPress(e,!0)},touchstart:function(e){e.preventDefault(),t.onStartLongPress(e,!0)},click:function(e){t.onControlClick(e,!0)}}},[n("b-icon",{attrs:{icon:"plus",both:"",pack:t.iconPack,size:t.iconSize}})],1)]):t._e()],1)},staticRenderFns:[]},void 0,{name:"BNumberinput",components:(Ne={},o(Ne,z.name,z),o(Ne,j.name,j),Ne),mixins:[O],inheritAttrs:!1,props:{value:Number,min:[Number,String],max:[Number,String],step:[Number,String],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsRounded:{type:Boolean,default:!1},controlsPosition:String},data:function(){return{newValue:isNaN(this.value)?parseFloat(this.min)||0:this.value,newStep:this.step||1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){var e=t;""===t&&(e=parseFloat(this.min)||null),this.newValue=e,this.$emit("input",e),!this.isValid&&this.$refs.input.checkHtml5Validity()}},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},buttonClasses:function(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber:function(){return"string"==typeof this.min?parseFloat(this.min):this.min},maxNumber:function(){return"string"==typeof this.max?parseFloat(this.max):this.max},stepNumber:function(){return"string"==typeof this.newStep?parseFloat(this.newStep):this.newStep},disabledMin:function(){return this.computedValue-this.stepNumber<this.minNumber},disabledMax:function(){return this.computedValue+this.stepNumber>this.maxNumber},stepDecimals:function(){var t=this.stepNumber.toString(),e=t.indexOf(".");return e>=0?t.substring(e+1).length:0}},watch:{value:function(t){this.newValue=t}},methods:{decrement:function(){if(void 0===this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){var t=this.computedValue-this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},increment:function(){if(void 0===this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){var t=this.computedValue+this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},onControlClick:function(t,e){0===t.detail&&"click"!==t.type&&(e?this.increment():this.decrement
vendor: 4,801 bytes, line 2
2())},onStartLongPress:function(t,e){var n=this;0!==t.button&&"touchstart"!==t.type||(this._$intervalTime=new Date,clearInterval(this._$intervalRef),this._$intervalRef=setInterval((function(){e?n.increment():n.decrement()}),250))},onStopLongPress:function(t){this._$intervalRef&&(new Date-this._$intervalTime<250&&(t?this.increment():this.decrement()),clearInterval(this._$intervalRef),this._$intervalRef=null)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var je={install:function(t){P(t,ze)}};use(je);var Ue=je;const $e=R({render:function(){var t,e=this,n=e.$createElement;return(e._self._c||n)(e.tag,e._b({tag:"component",staticClass:"pagination-link",class:(t={"is-current":e.page.isCurrent},t[e.page.class]=!0,t),attrs:{role:"button",href:e.href,disabled:e.isDisabled,"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent},on:{click:function(t){return t.preventDefault(),e.page.click(t)}}},"component",e.$attrs,!1),[e._t("default",[e._v(e._s(e.page.number))])],2)},staticRenderFns:[]},void 0,{name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(t){return I.defaultLinkTags.indexOf(t)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if("a"===this.tag)return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var qe;const Ve=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"pagination",class:t.rootClasses},[t.$scopedSlots.previous?t._t("previous",[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current-1,{disabled:!t.hasPrev,class:"pagination-previous","aria-label":t.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!t.hasPrev,page:t.getPage(t.current-1)}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),t.$scopedSlots.next?t._t("next",[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current+1,{disabled:!t.hasNext,class:"pagination-next","aria-label":t.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!t.hasNext,page:t.getPage(t.current+1)}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),t.simple?n("small",{staticClass:"info"},[1==t.perPage?[t._v("\r\n                "+t._s(t.firstItem)+" / "+t._s(t.total)+"\r\n            ")]:[t._v("\r\n                "+t._s(t.firstItem)+"-"+t._s(Math.min(t.current*t.perPage,t.total))+" / "+t._s(t.total)+"\r\n            ")]],2):n("ul",{staticClass:"pagination-list"},[t.hasFirst?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(1)}):n("BPaginationButton",{attrs:{page:t.getPage(1)}})],2):t._e(),t._v(" "),t.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._v(" "),t._l(t.pagesInRange,(function(e){return n("li",{key:e.number},[t.$scopedSlots.default?t._t("default",null,{page:e}):n("BPaginationButton",{attrs:{page:e}})],2)})),t._v(" "),t.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._v(" "),t.hasLast?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(t.pageCount)}):n("BPaginationButton",{attrs:{page:t.getPage(t.pageCount)}})],2):t._e()],2)],2)},staticRenderFns:[]},void 0,{name:"BPagination",components:(qe={},o(qe,z.name,z),o(qe,$e.name,$e),qe),props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:function(){return I.defaultIconPrev}},iconNext:{type:String,default:function(){return I.defaultIconNext}},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},computed:{rootClasses:function(){return[this.order,this.size,{"is-simple":this.simple,"is-rounded":this.rounded}]},beforeCurrent:function(){return parseInt(this.rangeBefore)},afterCurrent:function(){return parseInt(this.rangeAfter)},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var t=this.current*this.perPage-this.perPage+1;return t>=0?t:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=2+this.beforeCurrent},hasFirstEllipsis:function(){return this.current>=this.beforeCurrent+4},hasLast:function(){return this.current<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis:function(){return this.current<this.pageCount-(2+this.afterCurrent)},hasNext:function(){return this.current<this.pageCount}
2,pagesInRange:function(){if(!this.simple){var t=Math.max(1,this.current-this.beforeCurrent);t-1==2&&t--;var e=Math.min(this.current+this.afterCurrent,this.pageCount);this.pageCount-e==2&&e++;for(var n=[],i=t;i<=e;i++)n.push(this.getPage(i));return n}}},watch:{pageCount:function(t){this.current>t&&this.last()}},methods:{prev:function(t){this.changePage(this.current-1,t)},next:function(t){this.changePage(this.current+1,t)},first:function(t){this.changePage(1,t)},last:function(t){this.changePage(this.pageCount,t)},changePage:function(t,e){this.current===t||t<1||t>this.pageCount||(this.$emit("change",t),this.$emit("update:current",t),e&&e.target&&this.$nextTick((function(){return e.target.focus()})))},getPage:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{number:t,isCurrent:this.current===t,click:function(n){return e.changePage(t,n)},disabled:n.disabled||!1,class:n.class||"","aria-label":n["aria-label"]||this.getAriaPageLabel(t,this.current===t)}},getAriaPageLabel:function(t,e){return!this.ariaPageLabel||e&&this.ariaCurrentLabel?this.ariaPageLabel&&e&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+t+".":null:this.ariaPageLabel+" "+t+"."}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var He={install:function(t){P(t,Ve),P(t,$e)}};use(He);var We=He;const Xe=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-wrapper"},[n("progress",{ref:"progress",staticClass:"progress",class:t.newType,attrs:{max:t.max}},[t._v(t._s(t.newValue))]),t._v(" "),t.showValue?n("p",{staticClass:"progress-value"},[t._t("default",[t._v(t._s(t.newValue))])],2):t._e()])},staticRenderFns:[]},void 0,{name:"BProgress",props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return void 0===this.value||null===this.value},newType:function(){return[this.size,this.type]},newValue:function(){if(void 0!==this.value&&null!==this.value&&!isNaN(this.value)){if("percent"===this.format){var t=this.toFixed(100*this.value/this.max);return"".concat(t,"%")}return this.toFixed(this.value)}}},watch:{value:function(t){this.setValue(t)}},methods:{setValue:function(t){this.isIndeterminate?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",t)},toFixed:function(t){var e=(+"".concat(Math.round(+"".concat(t,"e").concat(this.precision)),"e").concat(-this.precision)).toFixed(this.precision);return this.keepTrailingZeroes||(e=e.replace(/\.?0+$/,"")),e}},mounted:function(){this.setValue(this.value)}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Ze={install:function(t){P(t,Xe)}};use(Ze);var progress=Ze;const Ge=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-radio radio",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},change:function(e){t.computedValue=t.nativeValue}}}),t._v(" "),n("span",{staticClass:"check",class:t.type}),t._v(" "),n("span",{staticClass:"control-label"},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BRadio",mixins:[Q]},void 0,!1,void 0,!1,void 0,void 0,void 0);const Ye=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-radio radio button",class:[t.newValue===t.nativeValue?t.type:null,t.size,{"is-disabled":t.disabled,"is-focused":t.is
vendor: 4,136 bytes, line 2
2Focused}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()}}},[t._t("default"),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){t.computedValue=t.nativeValue}}})],2)])},staticRenderFns:[]},void 0,{name:"BRadioButton",mixins:[Q],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Ke={install:function(t){P(t,Ge),P(t,Ye)}};use(Ke);var Je=Ke;const Qe=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rate",class:{"is-disabled":t.disabled,"is-spaced":t.spaced,"is-rtl":t.rtl}},[t._l(t.max,(function(e,r){return n("div",{key:r,staticClass:"rate-item",class:t.rateClass(e),on:{mousemove:function(n){t.previewRate(e,n)},mouseleave:t.resetNewValue,click:function(n){n.preventDefault(),t.confirmValue(e)}}},[n("b-icon",{attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}),t._v(" "),t.checkHalf(e)?n("b-icon",{staticClass:"is-half",style:t.halfStyle,attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}):t._e()],1)})),t._v(" "),t.showText||t.showScore||t.customText?n("div",{staticClass:"rate-text",class:t.size},[n("span",[t._v(t._s(t.showMe))]),t._v(" "),t.customText&&!t.showText?n("span",[t._v(t._s(t.customText))]):t._e()]):t._e()],2)},staticRenderFns:[]},void 0,{name:"BRate",components:o({},z.name,z),props:{value:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array},data:function(){return{newValue:this.value,hoverValue:0}},computed:{halfStyle:function(){return"width:".concat(this.valueDecimal,"%")},showMe:function(){var t="";return this.showScore?0===(t=this.disabled?this.value:this.newValue)&&(t=""):this.showText&&(t=this.texts[Math.ceil(this.newValue)-1]),t},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)}},watch:{value:function(t){this.newValue=t}},methods:{resetNewValue:function(){this.disabled||(this.hoverValue=0)},previewRate:function(t,e){this.disabled||(this.hoverValue=t,e.stopPropagation())},confirmValue:function(t){this.disabled||(this.newValue=t,this.$emit("change",this.newValue),this.$emit("input",this.newValue))},checkHalf:function(t){return this.disabled&&this.valueDecimal>0&&t-1<this.value&&t>this.value},rateClass:function(t){var output="";return t<=(0!==this.hoverValue?this.hoverValue:this.newValue)?output="set-on":this.disabled&&Math.ceil(this.value)===t&&(output="set-half"),output}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var ti={install:function(t){P(t,Qe)}};use(ti);var ei=ti,ii={install:function(t){P(t,xt)}};use(ii);var ni=ii;const ri=R({},void 0,{name:"BSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,count:{type:Number,default:1}},render:function(t,e){if(e.props.active){for(var n=[],r=e.props.width,o=e.props.height,i=0;i<e.props.count;i++)n.push(t("div",{staticClass:"b-skeleton-item",key:i,style:{height:void 0===o?null:isNaN(o)?o:o+"px",width:void 0===r?null:isNaN(r)?r:r+"px",borderRadius:e.props.circle?"50%":null}}));return t("div",{staticClass:"b-skeleton",class:{"is-animated":e.props.animated}},n)}}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var ai={install:function(t){P(t,ri)}};use(ai);var si=ai;const oi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-sidebar"},[t.overlay&&t.isOpen?n("div",{staticClass:"sidebar-background"}):t._e(),t._v(" "),n("transition",{attrs:{name:t.transitionName}
2,on:{"before-enter":t.beforeEnter,"after-enter":t.afterEnter}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:t.rootClasses},[t._t("default")],2)])],1)},staticRenderFns:[]},void 0,{name:"BSidebar",props:{open:Boolean,type:[String,Object],overlay:Boolean,position:{type:String,default:"fixed",validator:function(t){return["fixed","absolute","static"].indexOf(t)>=0}},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,canCancel:{type:[Array,Boolean],default:function(){return["escape","outside"]}},onCancel:{type:Function,default:function(){}}},data:function(){return{isOpen:this.open,transitionName:null,animating:!0}},computed:{rootClasses:function(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce,"is-mini-expand":this.expandOnHover,"is-mini-mobile":"reduce"===this.mobile,"is-hidden-mobile":"hide"===this.mobile,"is-fullwidth-mobile":"fullwidth"===this.mobile}]},cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic:function(){return"static"===this.position},isFixed:function(){return"fixed"===this.position},isAbsolute:function(){return"absolute"===this.position},whiteList:function(){var t=[];if(t.push(this.$refs.sidebarContent),void 0!==this.$refs.sidebarContent){var e,n=y(this.$refs.sidebarContent.querySelectorAll("*"));try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r)}}catch(t){n.e(t)}finally{n.f()}}return t}},watch:{open:{handler:function(t){this.isOpen=t;var e=this.right?!t:t;this.transitionName=e?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress:function(t){this.isFixed&&this.isOpen&&27===t.keyCode&&this.cancel("escape")},cancel:function(t){this.cancelOptions.indexOf(t)<0||this.isStatic||(this.onCancel.apply(null,arguments),this.close())},close:function(){this.isOpen=!1,this.$emit("close"),this.$emit("update:open",!1)},clickedOutside:function(t){this.isFixed&&this.isOpen&&!this.animating&&this.whiteList.indexOf(t.target)<0&&this.cancel("outside")},beforeEnter:function(){this.animating=!0},afterEnter:function(){this.animating=!1}},created:function(){"undefined"!=typeof window&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted:function(){"undefined"!=typeof window&&this.isFixed&&document.body.appendChild(this.$el)},beforeDestroy:function(){"undefined"!=typeof window&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside)),this.isFixed&&C(this.$el)}},void 0,!1,void 0,!1,void 0,void 0,void 0);var ui={install:function(t){P(t,oi)}};use(ui);var hi=ui;const ci=R({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{class:[t.newType,t.position,t.size,{"b-tooltip":t.active,"is-square":t.square,"is-animated":t.newAnimated,"is-always":t.always,"is-multiline":t.multilined,"is-dashed":t.dashed}],style:{"transition-delay":t.newDelay+"ms"},attrs:{"data-label":t.label}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"BTooltip",props:{active:{type:Boolean,default:!0},type:String,label:String,position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom","is-left","is-right"].indexOf(t)>-1}},always:Boolean,animated:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},delay:Number},computed:{newType:function(){return this.type||I.defaultTooltipType},newAnimated:function(){return this.animated||I.defaultTooltipAnimated},newDelay:function(){return this.delay||I.defaultTooltipDelay}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const di=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider-thumb-wrapper",class:{"is-dragging":t.dragging},style:t.wrapperStyle},[n("b-tooltip",{attrs:{label:t.tooltipLabel,type:t.type,always:t.dragging||t.isFocused,active:!t.disabled&&t.tooltip}},[n("div",t._b({staticClass:"b-slider-thumb",attrs:{tabindex:!t.disabled&&0},on:{mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.onF
vendor: 7,144 bytes, line 2
2ocus,blur:t.onBlur,keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"home",void 0,e.key,void 0)?null:(e.preventDefault(),t.onHomeKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"end",void 0,e.key,void 0)?null:(e.preventDefault(),t.onEndKeyDown(e))}]}},"div",t.$attrs,!1))])],1)},staticRenderFns:[]},void 0,{name:"BSliderThumb",components:o({},ci.name,ci),inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},customFormatter:Function},data:function(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.disabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},precision:function(){return this.$parent.precision},currentPosition:function(){return"".concat((this.value-this.min)/(this.max-this.min)*100,"%")},wrapperStyle:function(){return{left:this.currentPosition}},tooltipLabel:function(){return void 0!==this.customFormatter?this.customFormatter(this.value):this.value.toString()}},methods:{onFocus:function(){this.isFocused=!0},onBlur:function(){this.isFocused=!1},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),"undefined"!=typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart:function(t){this.dragging=!0,this.$emit("dragstart"),"touchstart"===t.type&&(t.clientX=t.touches[0].clientX),this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){"touchmove"===t.type&&(t.clientX=t.touches[0].clientX);var e=(t.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!=typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var e=100/((this.max-this.min)/this.step),n=Math.round(t/e)*e/100*(this.max-this.min)+this.min;n=parseFloat(n.toFixed(this.precision)),this.$emit("input",n),this.dragging||n===this.oldValue||(this.oldValue=n)}}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const fi=R({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"b-slider-tick",class:{"is-tick-hidden":this.hidden},style:this.getTickStyle(this.position)},[this.$slots.default?e("span",{staticClass:"b-slider-tick-label"},[this._t("default")],2):this._e()])},staticRenderFns:[]},void 0,{name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{position:function(){var t=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return t>=0&&t<=100?t:0},hidden:function(){return this.value===this.$parent.min||this.value===this.$parent.max}},methods:{getTickStyle:function(t){return{left:t+"%"}}},created:function(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")}},void 0,!1,void 0,!1,void 0,void 0,void 0);var pi;const mi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider",class:[t.size,t.type,t.rootClasses],on:{click:t.onSliderClick}},[n("div",{ref:"slider",staticClass:"b-slider-track"},[n("div",{staticClass:"b-slider-fill",style:t.barStyle}),t._v(" "),t.ticks?t._l(t.tickValues,(function(t,e){return n("b-slider-tick",{key:e,attrs:{value:t}})})):t._e(),t._v(" "),t._t("default"),t._v(" "),n("b-slider-thumb",{ref:"button1",attrs:{type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,role:"slider","aria-valuenow":t.value1,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":"horizontal","aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[0]:t.ariaLabel,"aria-disabled":t.disabled},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),t._v(" "),t.isRange?n("b-slider-thumb",{ref:"button2",attrs:{type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,role:"slider","aria-valuenow":t.value2,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":"horizontal","aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[1]:"","aria-disabled":t.disabled},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}}):t._e()],2)])},staticRenderFns:[]},void 0,{name:"BSlider",components:(pi={},o(pi,di.name,di),o(pi,fi.name,fi),pi),props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1}},data:function(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType:function(){return this.tooltipType?this.tooltipType:this.t
2ype},tickValues:function(){if(!this.ticks||this.min>this.max||0===this.step)return[];for(var t=[],i=this.min+this.step;i<this.max;i+=this.step)t.push(i);return t},minValue:function(){return Math.min(this.value1,this.value2)},maxValue:function(){return Math.max(this.value1,this.value2)},barSize:function(){return this.isRange?"".concat(100*(this.maxValue-this.minValue)/(this.max-this.min),"%"):"".concat(100*(this.value1-this.min)/(this.max-this.min),"%")},barStart:function(){return this.isRange?"".concat(100*(this.minValue-this.min)/(this.max-this.min),"%"):"0%"},precision:function(){var t=[this.min,this.max,this.step].map((function(t){var e=(""+t).split(".")[1];return e?e.length:0}));return Math.max.apply(Math,d(t))},barStyle:function(){return{width:this.barSize,left:this.barStart}},rootClasses:function(){return{"is-rounded":this.rounded,"is-dragging":this.dragging,"is-disabled":this.disabled,"slider-focus":this.biggerSliderFocus}}},watch:{value:function(t){this.setValues(t)},value1:function(){this.onInternalValueUpdate()},value2:function(){this.onInternalValueUpdate()},min:function(){this.setValues(this.value)},max:function(){this.setValues(this.value)}},methods:{setValues:function(t){if(!(this.min>this.max))if(Array.isArray(t)){this.isRange=!0;var e="number"!=typeof t[0]||isNaN(t[0])?this.min:Math.min(Math.max(this.min,t[0]),this.max),n="number"!=typeof t[1]||isNaN(t[1])?this.max:Math.max(Math.min(this.max,t[1]),this.min);this.value1=this.isThumbReversed?n:e,this.value2=this.isThumbReversed?e:n}else this.isRange=!1,this.value1=isNaN(t)?this.min:Math.min(this.max,Math.max(this.min,t)),this.value2=null},onInternalValueUpdate:function(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize:function(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick:function(t){if(!this.disabled&&!this.isTrackClickDisabled){var e=this.$refs.slider.getBoundingClientRect().left,n=(t.clientX-e)/this.sliderSize()*100,r=this.min+n*(this.max-this.min)/100,o=Math.abs(r-this.value1);if(this.isRange){var h=Math.abs(r-this.value2);
2if(o<=h){if(o<this.step/2)return;this.$refs.button1.setPosition(n)}else{if(h<this.step/2)return;this.$refs.button2.setPosition(n)}}else{if(o<this.step/2)return;this.$refs.button1.setPosition(n)}this.emitValue("change")}},onDragStart:function(){this.dragging=!0,this.$emit("dragstart")},onDragEnd:function(){var t=this;this.isTrackClickDisabled=!0,setTimeout((function(){t.isTrackClickDisabled=!1}),0),this.dragging=!1,this.$emit("dragend"),this.lazy&&this.emitValue("input")},emitValue:function(t){this.$emit(t,this.isRange?[this.minValue,this.maxValue]:this.value1)}},created:function(){this.isThumbReversed=!1,this.isTrackClickDisabled=!1,this.setValues(this.value)}},void 0,!1,void 0,!1,void 0,void 0,void 0);var gi={install:function(t){P(t,mi),P(t,fi)}};use(gi);var vi=gi;const bi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"snackbar",class:[t.type,t.position],attrs:{role:t.actionText?"alertdialog":"alert"}},[n("div",{staticClass:"text",domProps:{innerHTML:t._s(t.message)}}),t._v(" "),t.actionText?n("div",{staticClass:"action",class:t.type,on:{click:t.action}},[n("button",{staticClass:"button"},[t._v(t._s(t.actionText))])]):t._e()])])},staticRenderFns:[]},void 0,{name:"BSnackbar",mixins:[ye],props:{actionText:{type:String,default:"OK"},onAction:{type:Function,default:function(){}},indefinite:{type:Boolean,default:!1}},data:function(){return{newDuration:this.duration||I.defaultSnackbarDuration}},methods:{action:function(){this.onAction(),this.close()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var yi,wi={open:function(t){var e;"string"==typeof t&&(t={message:t});var n={type:"is-success",position:I.defaultSnackbarPosition||"is-bottom-right"};t.parent&&(e=t.parent,delete t.parent);var r=S(n,t);return new(("undefined"!=typeof window&&window.Vue?window.Vue:yi||A).extend(bi))({parent:e,el:document.createElement("div"),propsData:r})}},Mi={install:function(t){yi=t,F(t,"snackbar",wi)}};use(Mi);var _i,ki=Mi,Si={name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh:function(){this.$forceUpdate()},isVueComponent:function(){return this.component&&this.component._isVue}},created:function(){this.isVueComponent()&&this.component.$on(this.event,this.refresh)},beforeDestroy:function(){this.isVueComponent()&&this.component.$off(this.event,this.refresh)},render:function(t){if(this.isVueComponent())return t(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}};const xi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-steps",class:t.wrapperClasses},[n("nav",{staticClass:"steps",class:t.mainClasses},[n("ul",{staticClass:"step-items"},t._l(t.stepItems,(function(e,r){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"stepItem.visible"}],key:r,staticClass:"step-item",class:[e.type||t.type,{"is-active":t.activeStep===r,"is-previous":t.activeStep>r}]}
2,[n("a",{staticClass:"step-link",class:{"is-clickable":t.isItemClickable(e,r)},on:{click:function(n){t.isItemClickable(e,r)&&t.stepClick(r)}}},[n("div",{staticClass:"step-marker"},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):e.step?n("span",[t._v(t._s(e.step))]):t._e()],1),t._v(" "),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[t._v(t._s(e.label))])])])])})))]),t._v(" "),n("section",{staticClass:"step-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2),t._v(" "),t._t("navigation",[t.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",disabled:t.navigationProps.previous.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.previous.action(e)}}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),n("a",{staticClass:"pagination-next",attrs:{role:"button",disabled:t.navigationProps.next.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.next.action(e)}}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1)]):t._e()],{previous:t.navigationProps.previous,next:t.navigationProps.next})],2)},staticRenderFns:[]},void 0,{name:"BSteps",components:(_i={},o(_i,z.name,z),o(_i,Si.name,Si),_i),props:{value:Number,type:[String,Object],size:String,animated:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1},iconPack:String,iconPrev:{type:String,default:function(){return I.defaultIconPrev}},iconNext:{type:String,default:function(){return I.defaultIconNext}},hasNavigation:{type:Boolean,default:!0},vertical:{type:Boolean,default:!1},position:String,labelPosition:{type:String,validator:function(t){return["bottom","right","left"].indexOf(t)>-1},default:"bottom"},rounded:{type:Boolean,default:!0},ariaNextLabel:String,ariaPreviousLabel:String},data:function(){return{activeStep:this.value||0,defaultSlots:[],contentHeight:0,isTransitioning:!1,_isSteps:!0}},computed:{wrapperClasses:function(){return[this.size,o({"is-vertical":this.vertical},this.position,this.position&&this.vertical)]},mainClasses:function(){return[this.type,{"has-label-right":"right"===this.labelPosition,"has-label-left":"left"===this.labelPosition,"is-animated":this.animated,"is-rounded":this.rounded}]},stepItems:function(){return this.defaultSlots.filter((function(t){return t.componentInstance&&t.componentInstance.$data&&t.componentInstance.$data._isStepItem})).map((function(t){return t.componentInstance}))},reversedStepItems:function(){return this.stepItems.slice().reverse()},firstVisibleStepIndex:function(){return this.stepItems.map((function(t,e){return t.visible})).indexOf(!0)},hasPrev:function(){return this.firstVisibleStepIndex>=0&&this.activeStep>this.firstVisibleStepIndex},lastVisibleStepIndex:function(){var t=this.reversedStepItems.map((function(t,e){return t.visible})).indexOf(!0);return t>=0?this.stepItems.length-1-t:t},hasNext:function(){return this.lastVisibleStepIndex>=0&&this.activeStep<this.lastVisibleStepIndex},navigationProps:function(){return{previous:{disabled:!this.hasPrev,action:this.prev},next:{disabled:!this.hasNext,action:this.next}}}},watch:{value:function(t){this.changeStep(t)},stepItems:function(){var t=this;if(this.activeStep<this.stepItems.length){var e=this.activeStep;this.stepItems.map((function(n,r){n.isActive&&(e=r)<t.stepItems.length&&(t.stepItems[e].isActive=!1)})),this.stepItems[this.activeStep].isActive=!0}else this.activeStep>0&&this.changeStep(this.activeStep-1)}},methods:{refreshSlots:function(){this.defaultSlots=this.$slots.default||[]},changeStep:function(t){if(this.activeStep!==t){if(t>this.stepItems.length)throw new Error("The index you trying to set is bigger than the steps length");this.activeStep<this.stepItems.length&&this.stepItems[this.activeStep].deactivate(this.activeStep,t),this.stepItems[t].activate(this.activeStep,t),this.activeStep=t,this.$emit("change",t)}},isItemClickable:function(t,e){return void 0===t.clickable?this.activeStep>e:t.clickable},stepClick:function(t){this.$emit("input",t),this.changeStep(t)},prev:function(){var t=this;if(this.hasPrev){var e=this.reversedStepItems.map((function(e,n){return t.stepItems.length-1-n<t.activeStep&&e.visible})).indexOf(!0);e>=0&&(e=this.stepItems.length-1-e),this.$emit("input",e),this.changeStep(e)}},next:function(){var t=this;if(this.hasNext){var e=this.stepItems.map((function(e,n){return n>t.activeStep&&e.visible})).indexOf(!0);this.$emit("input",e),this.changeStep(e)}}},mounted:function(){this.activeStep<this.stepItems.length&&(this.stepItems[this.activeStep].isActive=!0),this.refreshSlots()}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Ci=R({},void 0,{name:"BStepItem",props:{step:String|Number,label:String,type:String|Object,icon:String,iconPack:String,clickable:{type:Boolean,default:void 0},visible:{type:Boolean,default:!0}},data:function(){return{isActive:!1,transitionName:null,_isStepItem:!0}},methods:{activate:function(t,e){this.transitionName=e<t?this.$parent.vertical?"slide-down":"slide-next":this.$parent.vertical?"slide-up":"slide-prev",this.isActive=!0},deactivate:function(t,e){this.transitionName=e<t?this.$parent.vertical?"slide-down":"slide-next":this.$parent.vertical?"slide-up":"slide-prev",this.isActive=!1}},created:function(){if(!this.$parent.$data._isSteps)throw this.$destroy(),new Error("You should wrap bStepItem on a bSteps");this.$parent.refreshSlots()},beforeDestroy:function(){this.$parent.refreshSlots()},render:function(t){var e=this;if(!this.$parent.destroyOnHide||this.isActive&&this.visible){var n=t("div",{directives:[{name:"show",value:this.isActive&&this.visible}],attrs:{class:"step-item"}},this.$slots.default);return this.$parent.animated?t("transition",{props:{name:this.transitionName},on:{"before-enter":function(){e.$parent.isTransitioning=!0}
2,"after-enter":function(){e.$parent.isTransitioning=!1}}},[n]):n}}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var Ti={install:function(t){P(t,xi),P(t,Ci)}};use(Ti);var Ei=Ti;const Ai=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"switch",class:t.newClass,attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()},mousedown:function(e){t.isMouseDown=!0},mouseup:function(e){t.isMouseDown=!1},mouseout:function(e){t.isMouseDown=!1},blur:function(e){t.isMouseDown=!1}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,name:t.name,required:t.required,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,r=e.target,o=r.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var h=t.nativeValue,l=t._i(n,h);r.checked?l<0&&(t.computedValue=n.concat([h])):l>-1&&(t.computedValue=n.slice(0,l).concat(n.slice(l+1)))}else t.computedValue=o}}}),t._v(" "),n("span",{staticClass:"check",class:[{"is-elastic":t.isMouseDown&&!t.disabled},t.type]}),t._v(" "),n("span",{staticClass:"control-label"},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array,Date],nativeValue:[String,Number,Boolean,Function,Object,Array,Date],disabled:Boolean,type:String,name:String,required:Boolean,size:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:!0},outlined:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,isMouseDown:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},newClass:function(){return[this.size,{"is-disabled":this.disabled,"is-rounded":this.rounded,"is-outlined":this.outlined}]}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Ii={install:function(t){P(t,Ai)}};use(Ii);var Di,Bi=Ii;const Ri=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field table-mobile-sort"},[n("div",{staticClass:"field has-addons"},[t.sortMultiple?n("b-select",{attrs:{expanded:""},model:{value:t.sortMultipleSelect,callback:function(e){t.sortMultipleSelect=e},expression:"sortMultipleSelect"}},t._l(t.columns,(function(e,r){return e.sortable?n("option",{key:r,domProps:{value:e}},[t._v("\r\n                    "+t._s(t.getLabel(e))+"\r\n                    "),t.getSortingObjectOfColumn(e)?[t.columnIsDesc(e)?[t._v("\r\n                            ↓\r\n                        ")]:[t._v("\r\n                            ↑\r\n                        ")]]:t._e()],2):t._e()}))):n("b-select",{attrs:{expanded:""},model:{value:t.mobileSort,callback:function(e){t.mobileSort=e},expression:"mobileSort"}},[t.placeholder?[n("option",{directives:[{name:"show",rawName:"v-show",value:t.showPlaceholder,expression:"showPlaceholder"}],attrs:{selected:"",disabled:"",hidden:""},domProps:{value:{}}},[t._v("\r\n                        "+t._s(t.placeholder)+"\r\n                    ")])]:t._e(),t._v(" "),t._l(t.columns,(function(e,r){return e.sortable?n("option",{key:r,domProps:{value:e}},[t._v("\r\n                    "+t._s(e.label)+"\r\n                ")]):t._e()}))],2),t._v(" "),n("div",{staticClass:"control"},[t.sortMultiple&&t.sortMultipleData.length>0?[n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{class:{"is-desc":t.columnIsDesc(t.sortMultipleSelect)},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1),t._v(" "),n("button",{staticClass:"button is-primary",on:{click:t.removePriority}},[n("b-icon",{attrs:{icon:"delete",size:t.sortIconSize,both:""}})],1)]:t.sortMultiple?t._e():n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentSortColumn===t.mobileSort,expression:"currentSortColumn === mobileSort"}
2],class:{"is-desc":!t.isAsc},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1)],2)],1)])},staticRenderFns:[]},void 0,{name:"BTableMobileSort",components:(Di={},o(Di,xt.name,xt),o(Di,z.name,z),Di),props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},data:function(){return{sortMultipleSelect:"",mobileSort:this.currentSortColumn,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder:function(){var t=this;return!this.columns||!this.columns.some((function(e){return e===t.mobileSort}))}},watch:{sortMultipleSelect:function(t){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",t,this.defaultEvent)},mobileSort:function(t){this.currentSortColumn!==t&&this.$emit("sort",t,this.defaultEvent)},currentSortColumn:function(t){this.mobileSort=t}},methods:{removePriority:function(){var t=this;this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;var e=this.sortMultipleData.filter((function(data){return data.field!==t.sortMultipleSelect.field})).map((function(data){return data.field}));this.sortMultipleSelect=this.columns.filter((function(t){return e.includes(t.field)}))[0]},getSortingObjectOfColumn:function(t){return this.sortMultipleData.filter((function(i){return i.field===t.field}))[0]},columnIsDesc:function(t){var e=this.getSortingObjectOfColumn(t);return!e||!(!e.order||"desc"!==e.order)},getLabel:function(t){var e=this.getSortingObjectOfColumn(t);return e?t.label+"("+(this.sortMultipleData.indexOf(e)+1)+")":t.label},sort:function(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Pi=R({render:function(){var t=this.$createElement,e=this._self._c||t;return this.visible?e("td",{class:this.rootClasses,attrs:{"data-label":this.label}},[this._t("default")],2):this._e()},staticRenderFns:[]},void 0,{name:"BTableColumn",props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,sticky:Boolean,headerSelectable:{type:Boolean,default:!0},headerClass:String,cellClass:String,internal:Boolean},data:function(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{rootClasses:function(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]}},beforeMount:function(){var t=this;if(!this.$parent.$data._isTable)throw this.$destroy(),new Error("You should wrap bTableColumn on a bTable");this.internal||!this.$parent.newColumns.some((function(e){return e.newKey===t.newKey}))&&this.$parent.newColumns.push(this)},beforeDestroy:function(){if(this.$parent.visibleData.length&&1===this.$parent.newColumns.length&&this.$parent.newColumns.length){var t=this.$parent.newColumns.map((function(t){return t.newKey})).indexOf(this.newKey);t>=0&&this.$parent.newColumns.splice(t,1)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Fi;const Oi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-table",class:t.rooClasses},[t.mobileCards&&t.hasSortablenewColumns?n("b-table-mobile-sort",{attrs:{"current-sort-column":t.currentSortColumn,"sort-multiple":t.sortMultiple,"sort-multiple-data":t.sortMultipleDataComputed,"is-asc":t.isAsc,columns:t.newColumns,placeholder:t.mobileSortPlaceholder,"icon-pack":t.iconPack,"sort-icon":t.sortIcon,"sort-icon-size":t.sortIconSize},on:{sort:function(e,n){return t.sort(e,null,n)},removePriority:function(e){return t.removeSortingPriority(e)}}}):t._e(),t._v(" "),!t.paginated||"top"!==t.paginationPosition&&"both"!==t.paginationPosition?t._e():n("div",{staticClass:"top level"},[n("div",{staticClass:"level-left"},[t._t("top-left")],2),t._v(" "),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.newDataTotal,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel},on:{change:t.pageChanged}})],1):t._e()])]),t._v(" "),n("div",{staticClass:"table-wrapper",class:t.tableWrapperClasses,style:{height:void 0===t.height?null:isNaN(t.height)?t.height:t.height+"px"}},[n("table",{staticClass:"table",class:t.tableClasses,attrs:{tabindex:!!t.focusable&&0},on:{keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.target!==e.currentTarget?null:(e.preventDefault(),void t.pressedArrow(-1))},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.target!==e.currentTarget?null:(e.preventDefault(),void t.pressedArrow(1))}]}},[t.newColumns.length?n("thead",[n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[t.headerCheckable?[n("b-checkbox",{attrs:{value:t.isAllChecked,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e(),t._v(" "),t._l(t.visibleColumns,(function(e,r){return n("th",{key:r,class:[e.headerClass,{"is-current-sort":!t.sortMultiple&&t.currentSortColumn===e,"is-sortable":e.sortable,"is-sticky":e.sticky,"is-unselectable":!e.headerSelectable}],style:{width:void 0===e.width?null:isNaN(e.width)?e.width:e.width+"px"},on:{click:function(n){n.stopPropagation(),t.sort(e,null,n)}}}
2,[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.header?[n("b-slot-component",{attrs:{component:e,scoped:!0,name:"header",tag:"span",props:{column:e,index:r}}})]:t.$scopedSlots.header?[t._t("header",null,{column:e,index:r})]:[t._v(t._s(e.label))],t._v(" "),t.sortMultiple&&t.sortMultipleDataComputed&&t.sortMultipleDataComputed.length>0&&t.sortMultipleDataComputed.filter((function(i){return i.field===e.field})).length>0?[n("b-icon",{class:{"is-desc":"desc"===t.sortMultipleDataComputed.filter((function(i){return i.field===e.field}))[0].order},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}}),t._v("\r\n                                    "+t._s(t.findIndexOfSortData(e))+"\r\n                                    "),n("button",{staticClass:"delete is-small multi-sort-cancel-icon",attrs:{type:"button"},on:{click:function(n){n.stopPropagation(),t.removeSortingPriority(e)}}})]:e.sortable&&!t.sortMultiple?n("b-icon",{class:{"is-desc":!t.isAsc,"is-invisible":t.currentSortColumn!==e},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}}):t._e()],2)])})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[t.headerCheckable?[n("b-checkbox",{attrs:{value:t.isAllChecked,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e()],2),t._v(" "),t.hasCustomSubheadings?n("tr",{staticClass:"is-subheading"},[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._v(" "),t._l(t.visibleColumns,(function(e,r){return n("th",{key:r,style:{width:void 0===e.width?null:isNaN(e.width)?e.width:e.width+"px"}},[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.subheading?[n("b-slot-component",{attrs:{component:e,scoped:!0,name:"subheading",tag:"span",props:{column:e,index:r}}})]:t.$scopedSlots.subheading?[t._t("subheading",null,{column:e,index:r})]:[t._v(t._s(e.subheading))]],2)])})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e(),t._v(" "),t.hasSearchablenewColumns?n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._v(" "),t._l(t.visibleColumns,(function(e,r){return n("th",{key:r,style:{width:void 0===e.width?null:isNaN(e.width)?e.width:e.width+"px"}},[n("div",{staticClass:"th-wrap"},[e.searchable?[t.$scopedSlots.searchable?t._t("searchable",null,{column:e,filters:t.filters}):n("b-input",{attrs:{type:e.numeric?"number":"text"},nativeOn:{"[filtersEvent]":function(e){return t.onFiltersEvent(e)}},model:{value:t.filters[e.field],callback:function(n){t.$set(t.filters,e.field,n)},expression:"filters[column.field]"}})]:t._e()],2)])})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e()]):t._e(),t._v(" "),t.visibleData.length?n("tbody",[t._l(t.visibleData,(function(e,r){return[n("tr",{key:t.customRowKey?e[t.customRowKey]:r,class:[t.rowClass(e,r),{"is-selected":e===t.selected,"is-checked":t.isRowChecked(e)}],attrs:{draggable:t.draggable},on:{click:function(n){t.selectRow(e)},dblclick:function(n){t.$emit("dblclick",e)},mouseenter:function(n){t.$listeners.mouseenter&&t.$emit("mouseenter",e)},mouseleave:function(n){t.$listeners.mouseleave&&t.$emit("mouseleave",e)},contextmenu:function(n){t.$emit("contextmenu",e,n)},dragstart:function(n){t.handleDragStart(n,e,r)},dragend:function(n){t.handleDragEnd(n,e,r)},drop:function(n){t.handleDrop(n,e,r)},dragover:function(n){t.handleDragOver(n,e,r)},dragleave:function(n){t.handleDragLeave(n,e,r)}}},[t.showDetailRowIcon?n("td",{staticClass:"chevron-cell"},[t.hasDetailedVisible(e)?n("a",{attrs:{role:"button"},on:{click:function(n){n.stopPropagation(),t.toggleDetails(e)}}},[n("b-icon",{class:{"is-expanded":t.isVisibleDetailRow(e)},attrs:{icon:"chevron-right",pack:t.iconPack,both:""}})],1):t._e()]):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!t.isRowCheckable(e),value:t.isRowChecked(e)},nativeOn:{click:function(n){n.preventDefault(),n.stopPropagation(),t.checkRow(e,r,n)}}}
2)],1):t._e(),t._v(" "),t.$scopedSlots.default?t._t("default",null,{row:e,index:r}):t._l(t.newColumns,(function(r){return n("BTableColumn",t._b({key:r.customKey||r.label,attrs:{internal:""}},"BTableColumn",r,!1),[r.renderHtml?n("span",{domProps:{innerHTML:t._s(t.getValueByPath(e,r.field))}}):[t._v("\r\n                                        "+t._s(t.getValueByPath(e,r.field))+"\r\n                                    ")]],2)})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!t.isRowCheckable(e),value:t.isRowChecked(e)},nativeOn:{click:function(n){n.preventDefault(),n.stopPropagation(),t.checkRow(e,r,n)}}})],1):t._e()],2),t._v(" "),t.isActiveDetailRow(e)?n("tr",{staticClass:"detail"},[n("td",{attrs:{colspan:t.columnCount}},[n("div",{staticClass:"detail-container"},[t._t("detail",null,{row:e,index:r})],2)])]):t._e(),t._v(" "),t.isActiveCustomDetailRow(e)?t._t("detail",null,{row:e,index:r}):t._e()]}))],2):n("tbody",[n("tr",{staticClass:"is-empty"},[n("td",{attrs:{colspan:t.columnCount}},[t._t("empty")],2)])]),t._v(" "),void 0!==t.$slots.footer?n("tfoot",[n("tr",{staticClass:"table-footer"},[t.hasCustomFooterSlot()?t._t("footer"):n("th",{attrs:{colspan:t.columnCount}},[t._t("footer")],2)],2)]):t._e()])]),t._v(" "),t.checkable&&t.hasBottomLeftSlot()||t.paginated&&("bottom"===t.paginationPosition||"both"===t.paginationPosition)?n("div",{staticClass:"level"},[n("div",{staticClass:"level-left"},[t._t("bottom-left")],2),t._v(" "),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.newDataTotal,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel},on:{change:t.pageChanged}})],1):t._e()])]):t._e()],1)},staticRenderFns:[]},void 0,{name:"BTable",components:(Fi={},o(Fi,tt.name,tt),o(Fi,z.name,z),o(Fi,j.name,j),o(Fi,Ve.name,Ve),o(Fi,Si.name,Si),o(Fi,Ri.name,Ri),o(Fi,Pi.name,Pi),Fi),props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxPosition:{type:String,default:"left",validator:function(t){return["left","right"].indexOf(t)>=0}},selected:Object,isRowSelectable:{type:Function,default:function(){return!0}},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:function(){return!0}},checkedRows:{type:Array,default:function(){return[]}},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:function(){return[]}},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},paginationSimple:Boolean,paginationSize:String,paginationPosition:{type:String,default:"bottom",validator:function(t){return["bottom","top","both"].indexOf(t)>=0}},backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:function(){return""}},openedDetailed:{type:Array,default:function(){return[]}},hasDetailedVisible:{type:Function,default:function(){return!0}},detailKey:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean},data:function(){return{sortMultipleDataLocal:[],getValueByPath:M,newColumns:d(this.columns),visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:d(this.checkedRows),lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},firstTimeSort:!0,_isTable:!0}},computed:{sortMultipleDataComputed:function(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses:function(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses:function(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable}},rooClasses:function(){return{"is-loading":this.loading}},visibleData:function(){if(!this.paginated)return this.newData;var t=this.newCurrentPage,e=this.perPage;if(this.newData.length<=e)return this.newData;var n=(t-1)*e,r=parseInt(n,10)+parseInt(e,10);return this.newData.slice(n,r)},visibleColumns:function(){return this.newColumns?this.newColumns.filter((function(t){return t.visible||void 0===t.visible})):this.newColumns},isAllChecked:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}
2));if(0===e.length)return!1;var n=e.some((function(e){return _(t.newCheckedRows,e,t.customIsChecked)<0}));return!n},isAllUncheckable:function(){var t=this;return 0===this.visibleData.filter((function(e){return t.isRowCheckable(e)})).length},hasSortablenewColumns:function(){return this.newColumns.some((function(t){return t.sortable}))},hasSearchablenewColumns:function(){return this.newColumns.some((function(t){return t.searchable}))},hasCustomSubheadings:function(){return!(!this.$scopedSlots||!this.$scopedSlots.subheading)||this.newColumns.some((function(t){return t.subheading||t.$scopedSlots&&t.$scopedSlots.subheading}))},columnCount:function(){var t=this.newColumns.length;return t+=this.checkable?1:0,t+=this.detailed&&this.showDetailIcon?1:0},showDetailRowIcon:function(){return this.detailed&&this.showDetailIcon},isScrollable:function(){return!!this.scrollable||!!this.newColumns&&this.newColumns.some((function(t){return t.sticky}))}},watch:{data:function(t){this.newData=t,this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=t.length)},total:function(t){this.backendPagination&&(this.newDataTotal=t)},checkedRows:function(t){this.newCheckedRows=d(t)},columns:function(t){this.newColumns=d(t)},newColumns:function(t){this.checkSort()},filters:{handler:function(t){var e=this;this.backendFiltering?this.$emit("filters-change",t):(this.newData=this.data.filter((function(t){return e.isRowFiltered(t)})),this.backendPagination||(this.newDataTotal=this.newData.length))},deep:!0},openedDetailed:function(t){this.visibleDetailRows=t},currentPage:function(t){this.newCurrentPage=t}},methods:{onFiltersEvent:function(t){this.$emit("filters-event-".concat(this.filtersEvent),{event:t,filters:this.filters})},findIndexOfSortData:function(t){var e=this.sortMultipleDataComputed.filter((function(i){return i.field===t.field}))[0];return this.sortMultipleDataComputed.indexOf(e)+1},removeSortingPriority:function(t){if(this.backendSorting)this.$emit("sorting-priority-removed",t.field);else{this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter((function(e){return e.field!==t.field}));var e=this.sortMultipleDataLocal.map((function(i){return(i.order&&"desc"===i.order?"-":"")+i.field}));this.newData=E(this.newData,e)}},resetMultiSorting:function(){this.sortMultipleDataLocal=[],this.currentSortColumn={},this.newData=this.data},sortBy:function(t,e,n,r){return n&&"function"==typeof n?d(t).sort((function(a,b){return n(a,b,r)})):d(t).sort((function(a,b){var t=M(a,e),n=M(b,e);return"boolean"==typeof t&&"boolean"==typeof n?r?t-n:n-t:t||0===t?n||0===n?t===n?0:(t="string"==typeof t?t.toUpperCase():t,n="string"==typeof n?n.toUpperCase():n,r?t>n?1:-1:t>n?-1:1):-1:1}))},sortMultiColumn:function(t){if(this.currentSortColumn={},!this.backendSorting){var e=this.sortMultipleDataLocal.filter((function(i){return i.field===t.field}))[0];e?e.order="desc"===e.order?"asc":"desc":this.sortMultipleDataLocal.push({field:t.field,order:t.isAsc});var n=this.sortMultipleDataLocal.map((function(i){return(i.order&&"desc"===i.order?"-":"")+i.field}));this.newData=E(this.newData,n)}},sort:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&n[this.sortMultipleKey]||!this.sortMultipleKey))this.sortMultiColumn(t);else{if(!t||!t.sortable)return;this.sortMultiple&&(this.sortMultipleDataLocal=[]),e||(this.isAsc=t===this.currentSortColumn?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",t.field,this.isAsc?"asc":"desc",n),this.backendSorting||(this.newData=this.sortBy(this.newData,t.field,t.customSort,this.isAsc)),this.currentSortColumn=t}},isRowChecked:function(t){return _(this.newCheckedRows,t,this.customIsChecked)>=0},removeCheckedRow:function(t){var e=_(this.newCheckedRows,t,this.customIsChecked);e>=0&&this.newCheckedRows.splice(e,1)},checkAll:function(){var t=this,e=this.isAllChecked;this.visibleData.forEach((function(n){t.isRowCheckable(n)&&t.removeCheckedRow(n),e||t.isRowCheckable(n)&&t.newCheckedRows.push(n)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow:function(t,e,n){if(this.isRowCheckable(t)){var r=this.lastCheckedRowIndex;
2this.lastCheckedRowIndex=e,n.shiftKey&&null!==r&&e!==r?this.shiftCheckRow(t,e,r):this.isRowChecked(t)?this.removeCheckedRow(t):this.newCheckedRows.push(t),this.$emit("check",this.newCheckedRows,t),this.$emit("update:checkedRows",this.newCheckedRows)}},shiftCheckRow:function(t,e,n){var r=this,o=this.visibleData.slice(Math.min(e,n),Math.max(e,n)+1),h=!this.isRowChecked(t);o.forEach((function(t){r.removeCheckedRow(t),h&&r.isRowCheckable(t)&&r.newCheckedRows.push(t)}))},selectRow:function(t,e){this.$emit("click",t),this.selected!==t&&this.isRowSelectable(t)&&(this.$emit("select",t,this.selected),this.$emit("update:selected",t))},pageChanged:function(t){this.newCurrentPage=t>0?t:1,this.$emit("page-change",this.newCurrentPage),this.$emit("update:currentPage",this.newCurrentPage)},toggleDetails:function(t){this.isVisibleDetailRow(t)?(this.closeDetailRow(t),this.$emit("details-close",t)):(this.openDetailRow(t),this.$emit("details-open",t)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow:function(t){var e=this.handleDetailKey(t);this.visibleDetailRows.push(e)},closeDetailRow:function(t){var e=this.handleDetailKey(t),i=this.visibleDetailRows.indexOf(e);this.visibleDetailRows.splice(i,1)},isVisibleDetailRow:function(t){var e=this.handleDetailKey(t);return this.visibleDetailRows.indexOf(e)>=0},isActiveDetailRow:function(t){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(t)},isActiveCustomDetailRow:function(t){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(t)},isRowFiltered:function(t){for(var e in this.filters){if(!this.filters[e])return delete this.filters[e],!0;var n=this.getValueByPath(t,e);if(null==n)return!1;if(Number.isInteger(n)){if(n!==Number(this.filters[e]))return!1}else{var r=new RegExp(this.filters[e],"i");if("boolean"==typeof n&&(n="".concat(n)),!n.match(r))return!1}}return!0},handleDetailKey:function(t){var e=this.detailKey;return e.length&&t?t[e]:t},checkPredefinedDetailedRows:function(){if(this.openedDetailed.length>0&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort:function(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&this.currentSortColumn.field)for(var i=0;i<this.newColumns.length;i++)if(this.newColumns[i].field===this.currentSortColumn.field){this.currentSortColumn=this.newColumns[i];break}},hasCustomFooterSlot:function(){if(this.$slots.footer.length>1)return!0;var t=this.$slots.footer[0].tag;return"th"===t||"td"===t},hasBottomLeftSlot:function(){return void 0!==this.$slots["bottom-left"]},pressedArrow:function(t){if(this.visibleData.length){var e=this.visibleData.indexOf(this.selected)+t;e=e<0?0:e>this.visibleData.length-1?this.visibleData.length-1:e;var n=this.visibleData[e];if(this.isRowSelectable(n))this.selectRow(n);else{var r=null;if(t>0)for(var i=e;i<this.visibleData.length&&null===r;i++)this.isRowSelectable(this.visibleData[i])&&(r=i);else for(var o=e;o>=0&&null===r;o--)this.isRowSelectable(this.visibleData[o])&&(r=o);r>=0&&this.selectRow(this.visibleData[r])}}},focus:function(){this.focusable&&this.$el.querySelector("table").focus()},initSort:function(){var t=this;if(this.defaultSort){var e="",n=this.defaultSortDirection;Array.isArray(this.defaultSort)?(e=this.defaultSort[0],this.defaultSort[1]&&(n=this.defaultSort[1])):e=this.defaultSort,this.newColumns.forEach((function(r){r.field===e&&(t.isAsc="desc"!==n.toLowerCase(),t.sort(r,!0))}))}},handleDragStart:function(t,e,n){this.$emit("dragstart",{event:t,row:e,index:n})},handleDragEnd:function(t,e,n){this.$emit("dragend",{event:t,row:e,index:n})},handleDrop:function(t,e,n){this.$emit("drop",{event:t,row:e,index:n})},handleDragOver:function(t,e,n){this.$emit("dragover",{event:t,row:e,index:n})},handleDragLeave:function(t,e,n){this.$emit("dragleave",{event:t,row:e,index:n})}},mounted:function(){this.checkPredefinedDetailedRows(),this.checkSort()},beforeDestroy:function(){this.newData=[],this.newColumns=[]}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Ni={install:function(t){P(t,Oi),P(t,Pi)}};use(Ni);var Li,table=Ni;const zi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;
2return n("div",{staticClass:"b-tabs",class:t.mainClasses},[n("nav",{staticClass:"tabs",class:t.navClasses},[n("ul",t._l(t.tabItems,(function(e,r){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"tabItem.visible"}],key:r,class:{"is-active":t.activeTab===r,"is-disabled":e.disabled}},[e.$slots.header?n("b-slot-component",{attrs:{component:e,name:"header",tag:"a"},nativeOn:{click:function(e){t.tabClick(r)}}}):n("a",{on:{click:function(e){t.tabClick(r)}}},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):t._e(),t._v(" "),n("span",[t._v(t._s(e.label))])],1)],1)})))]),t._v(" "),n("section",{staticClass:"tab-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BTabs",components:(Li={},o(Li,z.name,z),o(Li,Si.name,Si),Li),props:{value:Number,expanded:Boolean,type:String,size:String,position:String,animated:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1},vertical:Boolean,multiline:Boolean},data:function(){return{activeTab:this.value||0,defaultSlots:[],contentHeight:0,isTransitioning:!1,_isTabs:!0}},computed:{mainClasses:function(){return o({"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline},this.position,this.position&&this.vertical)},navClasses:function(){var t;return[this.type,this.size,(t={},o(t,this.position,this.position&&!this.vertical),o(t,"is-fullwidth",this.expanded),o(t,"is-toggle-rounded is-toggle","is-toggle-rounded"===this.type),t)]},tabItems:function(){return this.defaultSlots.filter((function(t){return t.componentInstance&&t.componentInstance.$data&&t.componentInstance.$data._isTabItem})).map((function(t){return t.componentInstance}))}},watch:{value:function(t){this.changeTab(t)},tabItems:function(){var t=this;if(this.activeTab<this.tabItems.length){var e=this.activeTab;this.tabItems.map((function(n,r){n.isActive&&(e=r)<t.tabItems.length&&(t.tabItems[e].isActive=!1)})),this.tabItems[this.activeTab].isActive=!0}else this.activeTab>0&&this.changeTab(this.activeTab-1)}},methods:{refreshSlots:function(){this.defaultSlots=this.$slots.default||[]},changeTab:function(t){this.activeTab!==t&&void 0!==this.tabItems[t]&&(this.activeTab<this.tabItems.length&&this.tabItems[this.activeTab].deactivate(this.activeTab,t),this.tabItems[t].activate(this.activeTab,t),this.activeTab=t,this.$emit("change",t))},tabClick:function(t){this.activeTab!==t&&(this.$emit("input",t),this.changeTab(t))}},mounted:function(){this.activeTab<this.tabItems.length&&(this.tabItems[this.activeTab].isActive=!0),this.refreshSlots()}},void 0,!1,void 0,!1,void 0,void 0,void 0);const ji=R({},void 0,{name:"BTabItem",props:{label:String,icon:String,iconPack:String,disabled:Boolean,visible:{type:Boolean,default:!0}},data:function(){return{isActive:!1,transitionName:null,_isTabItem:!0}},methods:{activate:function(t,e){this.transitionName=e<t?this.$parent.vertical?"slide-down":"slide-next":this.$parent.vertical?"slide-up":"slide-prev",this.isActive=!0},deactivate:function(t,e){this.transitionName=e<t?this.$parent.vertical?"slide-down":"slide-next":this.$parent.vertical?"slide-up":"slide-prev",this.isActive=!1}},created:function(){if(!this.$parent.$data._isTabs)throw this.$destroy(),new Error("You should wrap bTabItem on a bTabs");this.$parent.refreshSlots()},beforeDestroy:function(){this.$parent.refreshSlots()},render:function(t){var e=this;if(!this.$parent.destroyOnHide||this.isActive&&this.visible){var n=t("div",{directives:[{name:"show",value:this.isActive&&this.visible}],class:"tab-item"},this.$slots.default);return this.$parent.animated?t("transition",{props:{name:this.transitionName},on:{"before-enter":function(){e.$parent.isTransitioning=!0},"after-enter":function(){e.$parent.isTransitioning=!1}}},[n]):n}}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var Ui={install:function(t){P(t,zi),P(t,ji)}};use(Ui);var $i=Ui;const qi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.attached&&t.closable?n("div",{staticClass:"tags has-addons"},[n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[n("span",{class:{"has-ellipsis":t.ellipsis}},[t._t("default")],2)]),t._v(" "),n("a",{staticClass:"tag is-delete",class:[t.size,{"is-rounded":t.rounded}],attrs:{role:"button","aria-label":t.ariaCloseLabel,tabindex:!!t.tabstop&&0,disabled:t.disabled},on:{click:t.close,keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close(e))}}})]):n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[n("span",{class:{"has-ellipsis":t.ellipsis}},[t._t("default")],2),t._v(" "),t.closable?n("a",{staticClass:"delete is-small",attrs:{role:"button","aria-label":t.ariaCloseLabel,disabled:t.disabled,tabindex:!!t.tabstop&&0},on:{click:t.close,keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close(e))}}}):t._e()])},staticRenderFns:[]},void 0,{name:"BTag",props:{attached:Boolean,closable:Boolean,type:String,size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String},methods:{close:function(t){this.disabled||this.$emit("close",t)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);const Vi=R({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"tags",class:{"has-addons":this.attached}},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"BTaglist",props:{attached:Boolean}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Hi={install:function(t){P(t,qi),P(t,Vi)}};use(Hi);var Wi,Xi=Hi;const Zi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"taginput control",class:t.rootClasses},[n("div",{staticClass:"taginput-container",class:[t.statusType,t.size,t.containerClasses],attrs:{disabled:t.disabled},on:{click:function(e){t.hasInput&&t.focus(e)}}},[t._t("selected",t._l(t.tags,(function(e,r){return n("b-tag",{key:t.getNormalizedTagText(e)+r,attrs:{type:t.type,size:t.size,rounded:t.rounded,attached:t.attached,tabstop:!1,disabled:t.disabled,ellipsis:t.ellipsis,closable:t.closable,title:t.ellipsis&&t.getNormalizedTagText(e)},on:{close:function(e){t.removeTag(r,e)}}},[t._t("tag",[t._v("\r\n                        "+t._s(t.getNormalizedTagText(e))+"\r\n                    ")],{tag:e})],2)}
2)),{tags:t.tags}),t._v(" "),t.hasInput?n("b-autocomplete",t._b({ref:"autocomplete",attrs:{data:t.data,field:t.field,icon:t.icon,"icon-pack":t.iconPack,maxlength:t.maxlength,"has-counter":!1,size:t.size,disabled:t.disabled,loading:t.loading,autocomplete:t.nativeAutocomplete,"open-on-focus":t.openOnFocus,"keep-open":t.openOnFocus,"keep-first":!t.allowNew,"use-html5-validation":t.useHtml5Validation,"check-infinite-scroll":t.checkInfiniteScroll,"append-to-body":t.appendToBody},on:{typing:t.onTyping,focus:t.onFocus,blur:t.customOnBlur,select:t.onSelect,"infinite-scroll":t.emitInfiniteScroll},nativeOn:{keydown:function(e){return t.keydown(e)}},scopedSlots:t._u([{key:t.defaultSlotName,fn:function(e){return[t._t("default",null,{option:e.option,index:e.index})]}}]),model:{value:t.newTag,callback:function(e){t.newTag=e},expression:"newTag"}},"b-autocomplete",t.$attrs,!1),[n("template",{slot:t.headerSlotName},[t._t("header")],2),t._v(" "),n("template",{slot:t.emptySlotName},[t._t("empty")],2),t._v(" "),n("template",{slot:t.footerSlotName},[t._t("footer")],2)],2):t._e()],2),t._v(" "),t.hasCounter&&(t.maxtags||t.maxlength)?n("small",{staticClass:"help counter"},[t.maxlength&&t.valueLength>0?[t._v("\r\n                "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+"\r\n            ")]:t.maxtags?[t._v("\r\n                "+t._s(t.tagsLength)+" / "+t._s(t.maxtags)+"\r\n            ")]:t._e()],2):t._e()])},staticRenderFns:[]},void 0,{name:"BTaginput",components:(Wi={},o(Wi,U.name,U),o(Wi,qi.name,qi),Wi),mixins:[O],inheritAttrs:!1,props:{value:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},type:String,rounded:{type:Boolean,default:!1},attached:{type:Boolean,default:!1},maxtags:{type:[Number,String],required:!1},hasCounter:{type:Boolean,default:function(){return I.defaultTaginputHasCounter}},field:{type:String,default:"value"},autocomplete:Boolean,nativeAutocomplete:String,openOnFocus:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},confirmKeyCodes:{type:Array,default:function(){return[13,188]}},removeOnKeys:{type:Array,default:function(){return[8]}},allowNew:Boolean,onPasteSeparators:{type:Array,default:function(){return[","]}},beforeAdding:{type:Function,default:function(){return!0}},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},appendToBody:Boolean},data:function(){return{tags:Array.isArray(this.value)?this.value.slice(0):this.value||[],newTag:"",_elementRef:"input",_isTaginput:!0}},computed:{rootClasses:function(){return{"is-expanded":this.expanded}},containerClasses:function(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength:function(){return this.newTag.trim().length},defaultSlotName:function(){return this.hasDefaultSlot?"default":"dontrender"},emptySlotName:function(){return this.hasEmptySlot?"empty":"dontrender"},headerSlotName:function(){return this.hasHeaderSlot?"header":"dontrender"},footerSlotName:function(){return this.hasFooterSlot?"footer":"dontrender"},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},hasInput:function(){return null==this.maxtags||this.tagsLength<this.maxtags},tagsLength:function(){return this.tags.length},separatorsAsRegExp:function(){var t=this.onPasteSeparators;return t.length?new RegExp(t.map((function(s){return s?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):null})).join("|"),"g"):null}},watch:{value:function(t){this.tags=t},hasInput:function(){this.hasInput||this.onBlur()}},methods:{addTag:function(t){var e=t||this.newTag.trim();if(e){if(!this.autocomplete){var n=this.separatorsAsRegExp;if(n&&e.match(n))return void e.split(n).map((function(t){return t.trim()})).filter((function(t){return 0!==t.length})).map(this.addTag)}if(!this.allowDuplicates){var r=this.tags.indexOf(e);if(r>=0)return void this.tags.splice(r,1)}(!!this.allowDuplicates||-1===this.tags.indexOf(e))&&this.beforeAdding(e)&&(this.tags.push(e),this.$emit("input",this.tags),this.$emit("add",e))}this.newTag=""},getNormalizedTagText:function(t){return"object"===r(t)?M(t,this.field):t},customOnBlur:function(t){this.autocomplete||this.addTag(),this.onBlur(t)},onSelect:function(option){var t=this;option&&(this.addTag(option),this.$nextTick((function(){t.newTag=""})))},removeTag:function(t,e){var n=this.tags.splice(t,1)[0];return this.$emit("input",this.tags),this.$emit("remove",n),e&&e.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete.focus(),n},removeLastTag:function(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown:function(t){-1===this.removeOnKeys.indexOf(t.keyCode)||this.newTag.length||this.removeLastTag(
2),this.autocomplete&&!this.allowNew||this.confirmKeyCodes.indexOf(t.keyCode)>=0&&(t.preventDefault(),this.addTag())},onTyping:function(t){this.$emit("typing",t.trim())},emitInfiniteScroll:function(){this.$emit("infinite-scroll")}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var Gi={install:function(t){P(t,Zi)}};use(Gi);var Yi=Gi,Ki={install:function(t){P(t,Ft)}};use(Ki);var Ji=Ki;const Qi=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"toast",class:[t.type,t.position],attrs:{"aria-hidden":!t.isActive,role:"alert"}},[n("div",{domProps:{innerHTML:t._s(t.message)}})])])},staticRenderFns:[]},void 0,{name:"BToast",mixins:[ye],data:function(){return{newDuration:this.duration||I.defaultToastDuration}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var tn,en={open:function(t){var e;"string"==typeof t&&(t={message:t});var n={position:I.defaultToastPosition||"is-top"};t.parent&&(e=t.parent,delete t.parent);var r=S(n,t);return new(("undefined"!=typeof window&&window.Vue?window.Vue:tn||A).extend(Qi))({parent:e,el:document.createElement("div"),propsData:r})}},nn={install:function(t){tn=t,F(t,"toast",en)}};use(nn);var rn=nn,an={install:function(t){P(t,ci)}};use(an);var sn=an;const on=R({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"upload control"},[t.dragDrop?n("div",{staticClass:"upload-draggable",class:[t.type,{"is-loading":t.loading,"is-disabled":t.disabled,"is-hovered":t.dragDropFocus}],on:{dragover:function(e){e.preventDefault(),t.updateDragDropFocus(!0)},dragleave:function(e){e.preventDefault(),t.updateDragDropFocus(!1)},dragenter:function(e){e.preventDefault(),t.updateDragDropFocus(!0)},drop:function(e){return e.preventDefault(),t.onFileChange(e)}}},[t._t("default")],2):[t._t("default")],t._v(" "),n("input",t._b({ref:"input",attrs:{type:"file",multiple:t.multiple,accept:t.accept,disabled:t.disabled},on:{change:t.onFileChange}},"input",t.$attrs,!1))],2)},staticRenderFns:[]},void 0,{name:"BUpload",mixins:[O],inheritAttrs:!1,props:{value:{type:[Object,Function,ee,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,dragDropFocus:!1,_elementRef:"input"}},watch:{value:function(t){var e=this.$refs.input.files;this.newValue=t,(!this.newValue||Array.isArray(this.newValue)&&0===this.newValue.length||!e[0]||Array.isArray(this.newValue)&&!this.newValue.some((function(a){return a.name===e[0].name})))&&(this.$refs.input.value=null),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange:function(t){if(!this.disabled&&!this.loading){this.dragDrop&&this.updateDragDropFocus(!1);var e=t.target.files||t.dataTransfer.files;if(0===e.length){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){var n=!1;!this.native&&this.newValue||(this.newValue=[],n=!0);for(var i=0;i<e.length;i++){var r=e[i];this.checkType(r)&&(this.newValue.push(r),n=!0)}if(!n)return}else{if(this.dragDrop&&1!==e.length)return;var o=e[0];if(this.checkType(o))this.newValue=o;else{if(!this.newValue)return;this.newValue=null}}this.$emit("input",this.newValue),!this.dragDrop&&this.checkHtml5Validity()}},updateDragDropFocus:function(t){this.disabled||this.loading||(this.dragDropFocus=t)},checkType:function(t){if(!this.accept)return!0;var e=this.accept.split(",");if(0===e.length)return!0;for(var n=!1,i=0;i<e.length&&!n;i++){var r=e[i].trim();if(r)if("."===r.substring(0,1)){var o=t.name.lastIndexOf(".");(o>=0?t.name.substring(o):"").toLowerCase()===r.toLowerCase()&&(n=!0)}else t.type.match(r)&&(n=!0)}return n}}},void 0,!1,void 0,!1,void 0,void 0,void 0);var un={install:function(t){P(t,on)}};use(un);var hn=un,ln=Object.freeze({Autocomplete:V,Button:X,Carousel:J,Checkbox:nt,Clockpicker:St,Collapse:ut,Datepicker:Pt,Datetimepicker:zt,Dialog:dialog,Dropdown:Xt,Field:Gt,Icon:Kt,Input:input,Loading:se,Menu:menu,Message:me,Modal:be,Navbar:Le,Notification:xe,Numberinput:Ue,Pagination:We,Progress:progress,Radio:Je,Rate:ei,Select:ni,Skeleton:si,Sidebar:hi,Slider:vi,Snackbar:ki,Steps:Ei,Switch:Bi,Table:table,Tabs:$i,Tag:Xi,Taginput
2:Yi,Timepicker:Ji,Toast:rn,Tooltip:sn,Upload:hn}),cn={getOptions:function(){return I},setOptions:function(t){D(S(I,t,!0))}},dn={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in B(t),D(S(I,e,!0)),ln)t.use(ln[n]);F(t,"config",cn)}};use(dn);e.a=dn},function(t,e,n){"use strict";var r=n(82),o=n(147),h=n.n(o);class l{constructor(t,e){return(async()=>{this.ctx=t,this.options=e||{};let n=navigator.userAgent.toLowerCase()||"",o=this.ctx.app.head.title||"";if("api"===e.mode){const t=this.options.api?await h.a.get(this.options.api):await h.a.get("https://ipinfo.io"),e=this.options.keyName||"ip",r=this.options.saltName||"region";n+=t.data[e],o+=t.data[r]}return this.key=Object(r.pbkdf2Sync)(n,o,64,64,"sha512").toString("base64"),this})()}setKey(t,e,n,o){this.key=Object(r.pbkdf2Sync)(t||navigator.userAgent.toLowerCase(),e||this.ctx.app.head.title,n||64,o||64,"sha512").toString("base64")}encrypt(data){if("debug"===this.options.mode)return data;try{this.cipher=Object(r.createCipher)(this.options.type||"aes-256-cbc",this.key);let t=this.cipher.update(data,"utf8","base64");return t+=this.cipher.final("base64"),t}catch(t){return null}}decrypt(data){try{this.decipher=Object(r.createDecipher)(this.options.type||"aes-256-cbc",this.key);let t=this.decipher.update(data,"base64","utf8");return t+=this.decipher.final("utf8"),t}catch(t){return"debug"===this.options.mode?data:null}}}var c=n(62),d=n(0);const f=(()=>{try{const t={local:window.localStorage,session:window.sessionStorage};return t.local.setItem("__local_test",1),t.local.removeItem("__local_test"),t.session.setItem("__session_test",1),t.session.removeItem("__session_test"),n(422)}catch(t){return n(423)}})();e.a=async(t,e)=>{const n=t.store,r=await new l(t,e);let o=e.localStorage||["localStorage"];"string"==typeof e.localStorage&&(o=[e.localStorage]);let h=e.sessionStorage||["sessionStorage"];"string"==typeof e.sessionStorage&&(h=[e.sessionStorage]);const m=e.versionPropName||"version";let v=[];const y=(t,i)=>n.watch(e=>e[t],t=>((i,t)=>{const data=JSON.stringify(c.a.create(t));f.local.set(o[i],r.encrypt(data))})(i,t),{deep:!0}),w=t=>{const e=JSON.parse(r.decrypt(f.local.get(t)));let data={...n.state};const h=c.a.check(e);n.state[t]&&h[m]===n.state[t][m]&&(data[t]={...data[t],...h,status:!0}),n.replaceState(data),o.forEach((t,i)=>{v[i]=y(t,i)})},M=()=>{window.addEventListener("storage",t=>{if(t&&t.storageArea===localStorage&&Object.keys(n.state).indexOf(t.key)>=0){let data={...n.state};data[t.key]=c.a.check(JSON.parse(r.decrypt(t.newValue))),JSON.stringify(data)!==JSON.stringify(n.state)&&n.replaceState(data)}})};let _=[];const k=(t,i)=>n.watch(e=>e[t],t=>((i,t)=>{const data=JSON.stringify(c.a.create(t));f.session.set(h[i],r.encrypt(data))})(i,t),{deep:!0}),S=t=>{const e=JSON.parse(r.decrypt(f.session.get(t)));let data={...n.state};const o=c.a.check(e);n.state[t]&&o[m]===n.state[t][m]&&(data[t]={...data[t],...o,status:!0}),n.replaceState(data),h.forEach((t,i)=>{_[i]=k(t,i)})};switch(e.mode){case"manual":M(),d.a.prototype.$setWebStorageKey=(t,e,n,o)=>r.setKey(t,e,n,o);let t=[];o.forEach((e,i)=>{t.push(n.watch(t=>t[e].status,n=>{n&&(w(e),t[i]())},{deep:!0}))});let e=[];h.forEach((t,i)=>{e.push(n.watch(t=>t.sessionStorage,n=>{n.status&&(S(t),e[i]())},{deep:!0}))});break;default:o.forEach((t,i)=>{w(t),M()}),h.forEach((t,i)=>{S(t)})}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},,,,,,,,,,,function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,i,n=c(t),r=n[0],l=n[1],d=new h(function(t,e,n){return 3*(e+n)/4-n}(0,r,l)),f=0,m=l>0?r-4:r;for(i=0;i<m;i+=4)e=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],d[f++]=e>>16&255,d[f++]=e>>8&255,d[f++]=255&e;2===l&&(e=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,d[f++]=255&e);1===l&&(e=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,d[f++]=e>>8&255,d[f++]=255&e);return d},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,h=[],i=0,l=n-o;i<l;i+=16383)h.push(d(t,i,i+16383>l?l:i+16383));1===o?(e=t[n-1],h.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],h.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return h.join("")};for(var r=[],o=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",i=0,l=code.length;i<l;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function d(t,e,n){for(var o,h,output=[],i=e;i<n;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(r[(h=o)>>18&63]+r[h>>12&63]+r[h>>6&63]+r[63&h]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e,n){var r=n(3),o=r.Buffer;function h(t,e){for(var n in t)e[n]=t[n]}function l(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(h(r,e),e.Buffer=l),l.prototype=Object.create(o.prototype),h(o,l),l.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},l.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=o(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},l.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},l.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){(e=t.exports=n(176)).Stream=e,e.Readable=e,e.Writable=n(180),e.Duplex=n(54),e.Transform=n(181),e.PassThrough=n(310),e.finished=n(123),e.pipeline=n(311)},,function(t,e,n){"use strict";function r(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var l=n(3).Buffer,c=n(306).inspect,d=c&&c.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,n,f;return e=t,(n=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);for(var e,n,r,o=l.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,n=o,r=i,l.prototype.copy.call(e,n,r),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var p=this.head,e=1,n=p.data;for(t-=n.length;p=p.next;){var r=p.data,o=t>r.length?r.length:t;if(o===r.length?n+=r:n+=r.slice(0,t),0==(t-=o)){o===r.length?(++e,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++e}return this.length-=e,n}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),p=this.head,n=1;for(p.data.copy(e),t-=p.data.length;p=p.next;){var r=p.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),0==(t-=o)){o===r.length?(++n,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++n}return this.length-=n,e}},{key:d,value:function(t,e){return c(this,function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
vendor: 5,397 bytes, line 2
2i%2?r(Object(source),!0).forEach((function(e){o(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):r(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&h(e.prototype,n),f&&h(e,f),t}()},,function(t,e,n){var r=n(3),o=r.Buffer;function h(t,e){for(var n in t)e[n]=t[n]}function l(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(h(r,e),e.Buffer=l),l.prototype=Object.create(o.prototype),h(o,l),l.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},l.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=o(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},l.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},l.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";(function(e){var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=n(123),l=Symbol("lastResolve"),c=Symbol("lastReject"),d=Symbol("error"),f=Symbol("ended"),m=Symbol("lastPromise"),v=Symbol("handlePromise"),y=Symbol("stream");function w(t,e){return{value:t,done:e}}function M(t){var e=t[l];if(null!==e){var data=t[y].read();null!==data&&(t[m]=null,t[l]=null,t[c]=null,e(w(data,!1)))}}function _(t){e.nextTick(M,t)}var k=Object.getPrototypeOf((function(){})),S=Object.setPrototypeOf((o(r={get stream(){return this[y]},next:function(){var t=this,n=this[d];if(null!==n)return Promise.reject(n);if(this[f])return Promise.resolve(w(void 0,!0));if(this[y].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[d]?r(t[d]):n(w(void 0,!0))}))}));var r,o=this[m];if(o)r=new Promise(function(t,e){return function(n,r){t.then((function(){e[f]?n(w(void 0,!0)):e[v](n,r)}),r)}}(o,this));else{var data=this[y].read();if(null!==data)return Promise.resolve(w(data,!1));r=new Promise(this[v])}return this[m]=r,r}},Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var t=this;return new Promise((function(e,n){t[y].destroy(null,(function(t){t?n(t):e(w(void 0,!0))}))}))})),r),k);t.exports=function(t){var e,n=Object.create(S,(o(e={},y,{value:t,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,d,{value:null,writable:!0}),o(e,f,{value:t._readableState.endEmitted,writable:!0}),o(e,v,{value:function(t,e){var data=n[y].read();data?(n[m]=null,n[l]=null,n[c]=null,t(w(data,!1))):(n[l]=t,n[c]=e)},writable:!0}),e));return n[m]=null,h(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[c];return null!==e&&(n[m]=null,n[l]=null,n[c]=null,e(t)),void(n[d]=t)}var r=n[l];null!==r&&(n[m]=null,n[l]=null,n[c]=null,r(w(void 0,!0))),n[f]=!0})),t.on("readable",_.bind(null,n)),n}}).call(this,n(7))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,n){"use strict";t.exports=o;var r=n(181);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}n(1)(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){"use strict";var r;var o=n(53).codes,h=o.ERR_MISSING_ARGS,l=o.ERR_STREAM_DESTROYED;function c(t){if(t)throw t}function d(t,e,o,h){h=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(h);var c=!1;t.on("close",(function(){c=!0})),void 0===r&&(r=n(123)),r(t,{readable:e,writable:o},(function(t){if(t)return h(t);c=!0,h()}));var d=!1;return function(e){if(!c&&!d)return d=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void h(e||new l("pipe"))}}function f(t){t()}function m(t,e){return t.pipe(e)}function v(t){return t.length?"function"!=typeof t[t.length-1]?c:t.pop():c}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,o=v(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new h("streams");var l=e.map((function(t,i){var n=i<e.length-1;return d(t,n,i>0,(function(t){r||(r=t),t&&l.forEach(f),n||(l.forEach(f),o(r))}))}));return e.reduce(m)}},function(t,e,n){var r=n(1),o=n(55),h=n(4).Buffer,l=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function d(){this.init(),this._w=c,o.call(this,64,56)}function f(t){return t<<30|t>>>2}function m(s,b,t,e){return 0===s?b&t|~b&e:2===s?b&t|b&e|t&e:b^t^e}r(d,o),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(t){for(var e,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,h=0|this._e,i=0;i<16;++i)n[i]=t.readInt32BE(4*i);for(;i<80;++i)n[i]=n[i-3]^n[i-8]^n[i-14]^n[i-16];for(var c=0;c<80;++c){var s=~~(c/20),d=0|((e=a)<<5|e>>>27)+m(s,b,r,o)+h+n[c]+l[s];h=o,o=r,r=f(b),b=a,a=d}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},d.prototype._hash=function(){var t=h.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t}
vendor: 6,528 bytes, line 2
2,t.exports=d},function(t,e,n){var r=n(1),o=n(55),h=n(4).Buffer,l=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function d(){this.init(),this._w=c,o.call(this,64,56)}function f(t){return t<<5|t>>>27}function m(t){return t<<30|t>>>2}function v(s,b,t,e){return 0===s?b&t|~b&e:2===s?b&t|b&e|t&e:b^t^e}r(d,o),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(t){for(var e,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,h=0|this._e,i=0;i<16;++i)n[i]=t.readInt32BE(4*i);for(;i<80;++i)n[i]=(e=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|e>>>31;for(var c=0;c<80;++c){var s=~~(c/20),d=f(a)+v(s,b,r,o)+h+n[c]+l[s]|0;h=o,o=r,r=m(b),b=a,a=d}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},d.prototype._hash=function(){var t=h.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=d},function(t,e,n){var r=n(1),o=n(182),h=n(55),l=n(4).Buffer,c=new Array(64);function d(){this.init(),this._w=c,h.call(this,64,56)}r(d,o),d.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},d.prototype._hash=function(){var t=l.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=d},function(t,e,n){var r=n(1),o=n(183),h=n(55),l=n(4).Buffer,c=new Array(160);function d(){this.init(),this._w=c,h.call(this,128,112)}r(d,o),d.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},d.prototype._hash=function(){var t=l.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=d},,function(t,e,n){"use strict";var r=n(4).Buffer,o=n(318);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,o,h=r.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,n=h,o=i,e.copy(n,o),i+=p.data.length,p=p.next;return h},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},,function(t,e,n){"use strict";t.exports=h;var r=n(187),o=Object.create(n(73));function h(t){if(!(this instanceof h))return new h(t);r.call(this,t)}o.inherits=n(1),o.inherits(h,r),h.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(128)},function(t,e,n){t.exports=n(42)},function(t,e,n){t.exports=n(127).Transform},function(t,e,n){t.exports=n(127).PassThrough},function(t,e,n){"use strict";var r=n(1),o=n(4).Buffer,h=n(34),l=o.alloc(128);function c(t,e){h.call(this,"digest"),"string"==typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=o.concat([e,l],64));for(var n=this._ipad=o.allocUnsafe(64),r=this._opad=o.allocUnsafe(64),i=0;i<64;i++)n[i]=54^e[i],r[i]=92^e[i];this._hash=[n]}r(c,h),c.prototype._update=function(data){this._hash.push(data)},c.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=c},function(t,e,n){t.exports=n(190)},function(t,e,n){(function(e,r){var o,h=n(192),l=n(193),c=n(194),d=n(4).Buffer,f=e.crypto&&e.crypto.subtle,m={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"},v=[];function y(t,e,n,r,o){return f.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return f.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:o}},t,r<<3)})).then((function(t){return d.from(t)}))}t.exports=function(t,n,w,M,_,k){"function"==typeof _&&(k=_,_=void 0);var S=m[(_=_||"sha1").toLowerCase()];if(!S||"function"!=typeof e.Promise)return r.nextTick((function(){var e;try{e=c(t,n,w,M,_)}catch(t){return k(t)}k(null,e)}));if(h(t,n,w,M),"function"!=typeof k)throw new Error("No callback provided to pbkdf2");d.isBuffer(t)||(t=d.from(t,l)),d.isBuffer(n)||(n=d.from(n,l)),function(t,e){t.then((function(t){r.nextTick((function(){e(null,t)}))}),(function(t){r.nextTick((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==v[t])return v[t];var n=y(o=o||d.alloc(8),o,10,128,t).then((function(){return!0})).catch((function(){return!1}));return v[t]=n,n}(S).then((function(e){return e?y(t,n,w,M,S):c(t,n,w,M,_)})),k)}}).call(this,n(9),n(7))},function(t,e,n){var r=n(328),o=n(130),h=n(131),l=n(341),c=n(96);function d(t,e,n){if(t=t.toLowerCase(),h[t])return o.createCipheriv(t,e,n);if(l[t])return new r({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function f(t,e,n){if(t=t.toLowerCase(),h[t])return o.createDecipheriv(t,e,n);if(l[t])return new r({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n,r;if(t=t.toLowerCase(),h[t])n=h[t].key,r=h[t].iv;else{if(!l[t])throw new TypeError("invalid suite type");
vendor: 10,403 bytes, line 2
2n=8*l[t].key,r=l[t].iv}var o=c(e,!1,n,r);return d(t,o.key,o.iv)},e.createCipheriv=e.Cipheriv=d,e.createDecipher=e.Decipher=function(t,e){var n,r;if(t=t.toLowerCase(),h[t])n=h[t].key,r=h[t].iv;else{if(!l[t])throw new TypeError("invalid suite type");n=8*l[t].key,r=l[t].iv}var o=c(e,!1,n,r);return f(t,o.key,o.iv)},e.createDecipheriv=e.Decipheriv=f,e.listCiphers=e.getCiphers=function(){return Object.keys(l).concat(o.getCiphers())}},function(t,e,n){var r=n(34),o=n(329),h=n(1),l=n(4).Buffer,c={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function d(t){r.call(this);var e,n=t.mode.toLowerCase(),o=c[n];e=t.decrypt?"decrypt":"encrypt";var h=t.key;l.isBuffer(h)||(h=l.from(h)),"des-ede"!==n&&"des-ede-cbc"!==n||(h=l.concat([h,h.slice(0,8)]));var d=t.iv;l.isBuffer(d)||(d=l.from(d)),this._des=o.create({key:h,iv:d,type:e})}c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],t.exports=d,h(d,r),d.prototype._update=function(data){return l.from(this._des.update(data))},d.prototype._final=function(){return l.from(this._des.final())}},function(t,e,n){"use strict";e.utils=n(195),e.Cipher=n(129),e.DES=n(196),e.CBC=n(330),e.EDE=n(331)},function(t,e,n){"use strict";var r=n(19),o=n(1),h={};function l(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var i=0;i<this.iv.length;i++)this.iv[i]=t[i]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}o(e,t);for(var n=Object.keys(h),i=0;i<n.length;i++){var r=n[i];e.prototype[r]=h[r]}return e.create=function(t){return new e(t)},e},h._cbcInit=function(){var t=new l(this.options.iv);this._cbcState=t},h._update=function(t,e,n,r){var o=this._cbcState,h=this.constructor.super_.prototype,l=o.iv;if("encrypt"===this.type){for(var i=0;i<this.blockSize;i++)l[i]^=t[e+i];h._update.call(this,l,0,n,r);for(i=0;i<this.blockSize;i++)l[i]=n[r+i]}else{h._update.call(this,t,e,n,r);for(i=0;i<this.blockSize;i++)n[r+i]^=l[i];for(i=0;i<this.blockSize;i++)l[i]=t[e+i]}}},function(t,e,n){"use strict";var r=n(19),o=n(1),h=n(129),l=n(196);function c(t,e){r.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),o=e.slice(8,16),h=e.slice(16,24);this.ciphers="encrypt"===t?[l.create({type:"encrypt",key:n}),l.create({type:"decrypt",key:o}),l.create({type:"encrypt",key:h})]:[l.create({type:"decrypt",key:h}),l.create({type:"encrypt",key:o}),l.create({type:"decrypt",key:n})]}function d(t){h.call(this,t);var e=new c(this.type,this.options.key);this._edeState=e}o(d,h),t.exports=d,d.create=function(t){return new d(t)},d.prototype._update=function(t,e,n,r){var o=this._edeState;o.ciphers[0]._update(t,e,n,r),o.ciphers[1]._update(n,r,n,r),o.ciphers[2]._update(n,r,n,r)},d.prototype._pad=l.prototype._pad,d.prototype._unpad=l.prototype._unpad},function(t,e,n){var r=n(131),o=n(200),h=n(4).Buffer,l=n(201),c=n(34),d=n(95),f=n(96);function m(t,e,n){c.call(this),this._cache=new y,this._cipher=new d.AES(e),this._prev=h.from(n),this._mode=t,this._autopadding=!0}n(1)(m,c),m.prototype._update=function(data){var t,e;this._cache.add(data);for(var n=[];t=this._cache.get();)e=this._mode.encrypt(this,t),n.push(e);return h.concat(n)};var v=h.alloc(16,16);function y(){this.cache=h.allocUnsafe(0)}function w(t,e,n){var c=r[t.toLowerCase()];if(!c)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=h.from(e)),e.length!==c.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=h.from(n)),"GCM"!==c.mode&&n.length!==c.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===c.type?new l(c.module,e,n):"auth"===c.type?new o(c.module,e,n):new m(c.module,e,n)}m.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(v))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},y.prototype.add=function(data){this.cache=h.concat([this.cache,data])},y.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},y.prototype.flush=function(){for(var t=16-this.cache.length,e=h.allocUnsafe(t),i=-1;++i<t;)e.writeUInt8(t,i);return h.concat([this.cache,e])},e.createCipheriv=w,e.createCipher=function(t,e){var n=r[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var o=f(e,!1,n.key,n.iv);return w(t,o.key,o.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,n){var r=n(74);e.encrypt=function(t,e){var data=r(e,t._prev);return t._prev=t._cipher.encryptBlock(data),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var o=t._cipher.decryptBlock(e);return r(o,n)}},function(t,e,n){var r=n(4).Buffer,o=n(74);function h(t,data,e){var n=data.length,h=o(data,t._cache);return t._cache=t._cache.slice(n),t._prev=r.concat([t._prev,e?data:h]),h}e.encrypt=function(t,data,e){for(var n,o=r.allocUnsafe(0);data.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),!(t._cache.length<=data.length)){o=r.concat([o,h(t,data,e)]);break}n=t._cache.length,o=r.concat([o,h(t,data.slice(0,n),e)]),data=data.slice(n)}return o}},function(t,e,n){var r=n(4).Buffer;function o(t,e,n){var o=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=r.concat([t._prev.slice(1),r.from([n?e:o])]),o}e.encrypt=function(t,e,n){for(var h=e.length,l=r.allocUnsafe(h),i=-1;++i<h;)l[i]=o(t,e[i],n);return l}},function(t,e,n){var r=n(4).Buffer;function o(t,e,n){for(var r,o,i=-1,l=0;++i<8;)r=e&1<<7-i?128:0,l+=(128&(o=t._cipher.encryptBlock(t._prev)[0]^r))>>i%8,t._prev=h(t._prev,n?r:o);return l}function h(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++i<n;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,n){for(var h=e.length,l=r.allocUnsafe(h),i=-1;++i<h;)l[i]=o(t,e[i],n);return l}},function(t,e,n){(function(t){var r=n(74);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,o(e)]);var h=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,h)}}).call(this,n(3).Buffer)},function(t,e,n){var r=n(4).Buffer,o=r.alloc(16,0);function h(t){var e=r.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function l(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}l.prototype.ghash=function(t){for(var i=-1;++i<t.length;)this.state[i]^=t[i];this._multiply()},l.prototype._multiply=function(){for(var t,e,n,r=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],o=[0,0,0,0],i=-1;++i<128;){for(0!=(this.state[~~(i/8)]&1<<7-i%8)&&(o[0]^=r[0],o[1]^=r[1],o[2]^=r[2],o[3]^=r[3]),n=0!=(1&r[3]),e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=h(o)},l.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},l.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,o],16)),this.ghash(h([0,t,0,e])),this.state},t.exports=l},function(t,e,n){var r=n(200),o=n(4).Buffer,h=n(131),l=n(201),c=n(34),d=n(95),f=n(96);function m(t,e,n){c.call(this),this._cache=new v,this._last=void 0,this._cipher=new d.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}function v(){this.cache=o.allocUnsafe(0)}function y(t,e,n){var c=h[t.toLowerCase()];if(!c)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==c.mode&&n.length!==c.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=o.from(e)),e.length!==c.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===c.type?new l(c.module,e,n,!0):"auth"===c.type?new r(c.module,e,n,!0):new m(c.module,e,n)}n(1)(m,c),m.prototype._update=function(data){var t,e;this._cache.add(data);for(var n=[];t=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,t),n.push(e);return o.concat(n)},m.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var i=-1;for(;++i<e;)if(t[i+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},v.prototype.add=function(data){this.cache=o.concat([this.cache,data])},v.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},v.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=h[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=f(e,!1,n.key,n.iv);return y(t,r.key,r.iv)},e.createDecipheriv=y},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,n){(function(t){var r=n(202),o=n(347),h=n(348);var l={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var n=new t(o[e].prime,"hex"),r=new t(o[e].gen,"hex");return new h(n,r)},e.createDiffieHellman=e.DiffieHellman=function e(n,o,c,d){return t.isBuffer(o)||void 0===l[o]?e(n,"binary",o,c):(o=o||"binary",d=d||"binary",c=c||new t([2]),t.isBuffer(c)||(c=new t(c,d)),"number"==typeof n?new h(r(n,c),c,!0):(t.isBuffer(n)||(n=new t(n,o)),new h(n,c,!0)))}}).call(this,n(3).Buffer)},,function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 2
2=10),this._init(t||0,base||10,e||"be"))}var l;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{l=n(345).Buffer}catch(t){}function c(t,e,n){for(var r=0,o=Math.min(t.length,n),i=e;i<o;i++){var h=t.charCodeAt(i)-48;r<<=4,r|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return r}function d(t,e,n,r){for(var o=0,h=Math.min(t.length,n),i=e;i<h;i++){var l=t.charCodeAt(i)-48;o*=r,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(t,n):this._parseBase(t,base,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,h=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=t.length-6,n=0;i>=e;i-=6)r=c(t,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=c(t,e,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,h=o%n,l=Math.min(o,o-h)+e,c=0,i=e;i<l;i+=n)c=d(t,i,i+n,base),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==h){var f=1;for(c=d(t,i,t.length,base),i=0;i<h;i++)f*=base;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","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"],m=[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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 27,030 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,l=o/67108864|0;n.words[0]=h;for(var c=1;c<r;c++){for(var d=l>>>26,f=67108863&l,m=Math.min(c,e.length-1),v=Math.max(0,c-t.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|t.words[i])*(b=0|e.words[v])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,l=0|d}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<n|o)).toString(16);e=0!==(o=h>>>24-n&16777215)||i!==this.length-1?f[6-l.length]+l+e:l+e,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var c=m[base],d=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(d).toString(base);e=(y=y.idivn(d)).isZero()?w+e:f[c-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return r(void 0!==l),this.toArrayLike(l,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),h=n||Math.max(1,o);r(o<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===e,c=new t(h),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[i]=b;for(;i<h;i++)c[i]=0}else{for(i=0;i<h-o;i++)c[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[h-i-1]=b}return c},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,n){var r,o,h,a=t.words,b=e.words,l=n.words,c=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,k=M>>>13,S=0|a[3],x=8191&S,C=S>>>13,T=0|a[4],E=8191&T,A=T>>>13,I=0|a[5],D=8191&I,B=I>>>13,R=0|a[6],P=8191&R,F=R>>>13,O=0|a[7],N=8191&O,L=O>>>13,z=0|a[8],j=8191&z,U=z>>>13,$=0|a[9],V=8191&$,H=$>>>13,W=0|b[0],X=8191&W,Z=W>>>13,G=0|b[1],Y=8191&G,K=G>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,at=0|b[4],st=8191&at,ot=at>>>13,ut=0|b[5],ht=8191&ut,lt=ut>>>13,ct=0|b[6],ft=8191&ct,pt=ct>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,bt=0|b[8],yt=8191&bt,wt=bt>>>13,Mt=0|b[9],_t=8191&Mt,kt=Mt>>>13;n.negative=t.negative^e.negative,n.length=19;var St=(c+(r=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,Z))+Math.imul(m,X)|0))<<13)|0;c=((h=Math.imul(m,Z))+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(y,X),o=(o=Math.imul(y,Z))+Math.imul(w,X)|0,h=Math.imul(w,Z);var xt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(m,Y)|0))<<13)|0;c=((h=h+Math.imul(m,K)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(_,X),o=(o=Math.imul(_,Z))+Math.imul(k,X)|0,h=Math.imul(k,Z),r=r+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,K)|0;var Ct=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(m,Q)|0))<<13)|0;c=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(x,X),o=(o=Math.imul(x,Z))+Math.imul(C,X)|0,h=Math.imul(C,Z),r=r+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,K)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var Tt=(c+(r=r+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(m,it)|0))<<13)|0;c=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(E,X),o=(o=Math.imul(E,Z))+Math.imul(A,X)|0,h=Math.imul(A,Z),r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,Y)|0,h=h+Math.imul(C,K)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(k,Q)|0,h=h+Math.imul(k,tt)|0,r=r+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Et=(c+(r=r+Math.imul(f,st)|0)|0)+((8191&(o=(o=o+Math.imul(f,ot)|0)+Math.imul(m,st)|0))<<13)|0;c=((h=h+Math.imul(m,ot)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),o=(o=Math.imul(D,Z))+Math.imul(B,X)|0,h=Math.imul(B,Z),r=r+Math.imul(E,Y)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(A,Y)|0,h=h+Math.imul(A,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(C,Q)|0,h=h+Math.imul(C,tt)|0,r=r+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,r=r+Math.imul(y,st)|0,o=(o=o+Math.imul(y,ot)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,ot)|0;var At=(c+(r=r+Math.imul(f,ht)|0)|0)+((8191&(o=(o=o+Math.imul(f,lt)|0)+Math.imul(m,ht)|0))<<13)|0;c=((h=h+Math.imul(m,lt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(P,X),o=(o=Math.imul(P,Z))+Math.imul(F,X)|0,h=Math.imul(F,Z),r=r+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,K)|0)+Math.imul(B,Y)|0,h=h+Math.imul(B,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,h=h+Math.imul(A,tt)|0,r=r+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(C,it)|0,h=h+Math.imul(C,nt)|0,r=r+Math.imul(_,st)|0,o=(o=o+Math.imul(_,ot)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,ot)|0,r=r+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,lt)|0;var It=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,pt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,X),o=(o=Math.imul(N,Z))+Math.imul(L,X)|0,h=Math.imul(L,Z),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,K)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(E,it)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(A,it)|0,h=h+Math.imul(A,nt)|0,r=r+Math.imul(x,st)|0,o=(o=o+Math.imul(x,ot)|0)+Math.imul(C,st)|0,h=h+Math.imul(C,ot)|0,r=r+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,lt)|0,r=r+Math.imul(y,ft)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ft)|0,h=h+Math.imul(w,pt)|0;var Dt=(c+(r=r+Math.imul(f,gt)|0)|0)+((8191&(o=(o=o+Math.imul(f,vt)|0)+Math.imul(m,gt)|0))<<13)|0;c=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(j,X),o=(o=Math.imul(j,Z))+Math.imul(U,X)|0,h=Math.imul(U,Z),r=r+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(L,Y)|0,h=h+Math.imul(L,K)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(F,Q)|0,h=h+Math.imul(F,tt)|0,r=r+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(B,it)|0,h=h+Math.imul(B,nt)|0,r=r+Math.imul(E,st)|0,o=(o=o+Math.imul(E,ot)|0)+Math.imul(A,st)|0,h=h+Math.imul(A,ot)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(C,ht)|0,h=h+Math.imul(C,lt)|0,r=r+Math.imul(_,ft)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(k,ft)|0,h=h+Math.imul(k,pt)|0,r=r+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Bt=(c+(r=r+Math.imul(f,yt)|0)|0)+((8191&(o=(o=o+Math.imul(f,wt)|0)+Math.imul(m,yt)|0))<<13)|0;c=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(V,X),o=(o=Math.imul(V,Z))+Math.imul(H,X)|0,h=Math.imul(H,Z),r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,r=r+Math.imul(D,st)|0,o=(o=o+Math.imul(D,ot)|0)+Math.imul(B,st)|0,h=h+Math.imul(B,ot)|0,r=r+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(A,ht)|0,h=h+Math.imul(A,lt)|0,r=r+Math.imul(x,ft)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(C,ft)|0,h=h+Math.imul(C,pt)|0,r=r+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,r=r+Math.imul(y,yt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,yt)|0,h=h+Math.imul(w,wt)|0;var Rt=(c+(r=r+Math.imul(f,_t)|0)|0)+((8191&(o=(o=o+Math.imul(f,kt)|0)+Math.imul(m,_t)|0))<<13)|0;c=((h=h+Math.imul(m,kt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(V,Y),o=(o=Math.imul(V,K))+Math.imul(H,Y)|0,h=Math.imul(H,K),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,Q)|0,h=h+Math.imul(U,tt)|0,r=r+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,r=r+Math.imul(P,st)|0,o=(o=o+Math.imul(P,ot)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,ot)|0,r=r+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,lt)|0)+Math.imul(B,ht)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(A,ft)|0,h=h+Math.imul(A,pt)|0,r=r+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(C,gt)|0,h=h+Math.imul(C,vt)|0,r=r+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(k,yt)|0,h=h+Math.imul(k,wt)|0;var Pt=(c+(r=r+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,kt)|0)+Math.imul(w,_t)|0))<<13)|0;c=((h=h+Math.imul(w,kt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(V,Q),o=(o=Math.imul(V,tt))+Math.imul(H,Q)|0,h=Math.imul(H,tt),r=r+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,r=r+Math.imul(N,st)|0,o=(o=o+Math.imul(N,ot)|0)+Math.imul(L,st)|0,h=h+Math.imul(L,ot)|0,r=r+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,lt)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,lt)|0,r=r+Math.imul(D,ft)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(B,ft)|0,h=h+Math.imul(B,pt)|0,r=r+Math.imul(E,gt)|0,o=(o=o+Math.imul(E,vt)|0)+Math.imul(A,gt)|0,h=h+Math.imul(A,vt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(C,yt)|0,h=h+Math.imul(C,wt)|0;var Ft=(c+(r=r+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,kt)|0)+Math.imul(k,_t)|0))<<13)|0;c=((h=h+Math.imul(k,kt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(H,it)|0,h=Math.imul(H,nt),r=r+Math.imul(j,st)|0,o=(o=o+Math.imul(j,ot)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,ot)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(F,ft)|0,h=h+Math.imul(F,pt)|0,r=r+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(B,gt)|0,h=h+Math.imul(B,vt)|0,r=r+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(A,yt)|0,h=h+Math.imul(A,wt)|0;var Ot=(c+(r=r+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,kt)|0)+Math.imul(C,_t)|0))<<13)|0;c=((h=h+Math.imul(C,kt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(V,st),o=(o=Math.imul(V,ot))+Math.imul(H,st)|0,h=Math.imul(H,ot),r=r+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,lt)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,lt)|0,r=r+Math.imul(N,ft)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(L,ft)|0,h=h+Math.imul(L,pt)|0,r=r+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,r=r+Math.imul(D,yt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(B,yt)|0,h=h+Math.imul(B,wt)|0;var Nt=(c+(r=r+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,kt)|0)+Math.imul(A,_t)|0))<<13)|0;c=((h=h+Math.imul(A,kt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(V,ht),o=(o=Math.imul(V,lt))+Math.imul(H,ht)|0,h=Math.imul(H,lt),r=r+Math.imul(j,ft)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,ft)|0,h=h+Math.imul(U,pt)|0,r=r+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,r=r+Math.imul(P,yt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(F,yt)|0,h=h+Math.imul(F,wt)|0;var Lt=(c+(r=r+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,kt)|0)+Math.imul(B,_t)|0))<<13)|0;c=((h=h+Math.imul(B,kt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(V,ft),o=(o=Math.imul(V,pt))+Math.imul(H,ft)|0,h=Math.imul(H,pt),r=r+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(L,yt)|0,h=h+Math.imul(L,wt)|0;var zt=(c+(r=r+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,kt)|0)+Math.imul(F,_t)|0))<<13)|0;c=((h=h+Math.imul(F,kt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(H,gt)|0,h=Math.imul(H,vt),r=r+Math.imul(j,yt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,yt)|0,h=h+Math.imul(U,wt)|0;var jt=(c+(r=r+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,kt)|0)+Math.imul(L,_t)|0))<<13)|0;c=((h=h+Math.imul(L,kt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(V,yt),o=(o=Math.imul(V,wt))+Math.imul(H,yt)|0,h=Math.imul(H,wt);var Ut=(c+(r=r+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,kt)|0)+Math.imul(U,_t)|0))<<13)|0;c=((h=h+Math.imul(U,kt)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var $t=(c+(r=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,kt))+Math.imul(H,_t)|0))<<13)|0;return c=((h=Math.imul(H,kt))+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,l[0]=St,l[1]=xt,l[2]=Ct,l[3]=Tt,l[4]=Et,l[5]=At,l[6]=It,l[7]=Dt,l[8]=Bt,l[9]=Rt,l[10]=Pt,l[11]=Ft,l[12]=Ot,l[13]=Nt,l[14]=Lt,l[15]=zt,l[16]=jt,l[17]=Ut,l[18]=$t,0!==c&&(l[19]=c,n.length++),n};function M(t,e,n){return(new _).mulp(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):n<63?y(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,h=0;h<n.length-1;h++){var l=o;o=0;for(var c=67108863&r,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var i=h-f,m=(0|t.words[i])*(0|e.words[f]),v=67108863&m;c=67108863&(v=v+c|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[h]=c,r=l,l=o}return 0!==r?n.words[h]=r:n.length--,n.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},_.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},_.prototype.permute=function(t,e,n,r,o,h){for(var i=0;i<h;i++)r[i]=e[t[i]],o[i]=n[t[i]]},_.prototype.transform=function(t,e,n,r,o,h){this.permute(h,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,c=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=c,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],M=n[p+v+s],_=r[p+v+s],k=f*M-m*_;_=f*_+m*M,M=k,n[p+v]=y+M,r[p+v]=w+_,n[p+v+s]=y-M,r[p+v+s]=w-_,v!==l&&(k=c*f-d*m,m=c*m+d*f,f=k)}},_.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},_.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},_.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},_.prototype.convert13b=function(t,e,n,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],n[2*i]=8191&h,h>>>=13,n[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===h),r(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),h=this.stub(r),l=new Array(r),c=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,f,r),this.transform(l,h,c,d,r,o),this.transform(f,h,m,v,r,o);for(var i=0;i<r;i++){var w=c[i]*m[i]-d[i]*v[i];d[i]=c[i]*v[i]+d[i]*m[i],c[i]=w}return this.conjugate(c,d,r),this.transform(c,d,y,h,r,o),this.conjugate(y,h,r),this.normalize13b(y,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=(t.words[r]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n},h.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&n,l=(0|this.words[i])-h<<e;this.words[i]=l|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var c=0;for(i=this.length-1;i>=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-h|d>>>h,c=d&mask}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,n){var i,o,h=t.length+n;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var c=(0|t.words[i])*e;l=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var c=o-1;c>=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q.strip(),a.strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),h=n.cmp(r);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){r(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)}
vendor: 16,473 bytes, line 2
2,h.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new h(1),o=new h(0),l=new h(0),c=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var d=e.clone(),f=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(l.isOdd()||c.isOdd())&&(l.iadd(d),c.isub(f)),l.iushrn(1),c.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(c)):(e.isub(t),l.isub(n),c.isub(o))}return{a:l,b:c,gcd:e.iushln(g)}},h.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),n=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e))}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new A(t)},h.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};function S(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}S.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},S.prototype.split=function(input,t){input.iushrn(this.n,0,t)},S.prototype.imulK=function(t){return t.imul(this.k)},o(x,S),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|e>>>22,e=n}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(C,S),o(T,S),o(E,S),E.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new T;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return k[t]=e,e},A.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},A.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},A.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},A.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},A.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},A.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},A.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},A.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},A.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},A.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},A.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},A.prototype.isqr=function(a){return this.imul(a,a.clone())},A.prototype.sqr=function(a){return this.mul(a,a)},A.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new h(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new h(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new h(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},A.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],d=l-1;d>=0;d--){var f=c>>d&1;n!==e[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0}l=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,A),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(35)(t))},,,function(t){t.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
207b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,n){(function(e){var r=n(203),o=new(n(204)),h=new r(24),l=new r(11),c=new r(10),d=new r(3),f=new r(7),m=n(202),v=n(52);function y(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._pub=new r(t),this}function w(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._priv=new r(t),this}t.exports=_;var M={};function _(t,e,n){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=y,this.setPrivateKey=w):this._primeCode=8}function k(t,n){var r=new e(t.toArray());return n?r.toString(n):r}Object.defineProperty(_.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),r=[n,t.toString(16)].join("_");if(r in M)return M[r];var v,y=0;if(t.isEven()||!m.simpleSieve||!m.fermatTest(t)||!o.test(t))return y+=1,y+="02"===n||"05"===n?8:4,M[r]=y,y;switch(o.test(t.shrn(1))||(y+=2),n){case"02":t.mod(h).cmp(l)&&(y+=8);break;case"05":(v=t.mod(c)).cmp(d)&&v.cmp(f)&&(y+=8);break;default:y+=4}return M[r]=y,y}(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||(this._priv=new r(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(t){var n=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new e(n.toArray()),h=this.getPrime();if(o.length<h.length){var l=new e(h.length-o.length);l.fill(0),o=e.concat([l,o])}return o},_.prototype.getPublicKey=function(t){return k(this._pub,t)},_.prototype.getPrivateKey=function(t){return k(this._priv,t)},_.prototype.getPrime=function(t){return k(this.__prime,t)},_.prototype.getGenerator=function(t){return k(this._gen,t)},_.prototype.setGenerator=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.__gen=t,this._gen=new r(t),this}}).call(this,n(3).Buffer)},function(t,e,n){var r=n(3).Buffer,o=n(72),h=n(350),l=n(1),c=n(358),d=n(396),f=n(190);function m(t){h.Writable.call(this);var data=f[t];if(!data)throw new Error("Unknown message digest");this._hashType=data.hash,this._hash=o(data.hash),this._tag=data.id,this._signType=data.sign}function v(t){h.Writable.call(this);var data=f[t];if(!data)throw new Error("Unknown message digest");this._hash=o(data.hash),this._tag=data.id,this._signType=data.sign}function y(t){return new m(t)}function w(t){return new v(t)}Object.keys(f).forEach((function(t){f[t].id=r.from(f[t].id,"hex"),f[t.toLowerCase()]=f[t]})),l(m,h.Writable),m.prototype._write=function(data,t,e){this._hash.update(data),e()},m.prototype.update=function(data,t){return"string"==typeof data&&(data=r.from(data,t)),this._hash.update(data),this},m.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=c(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},l(v,h.Writable),v.prototype._write=function(data,t,e){this._hash.update(data),e()},v.prototype.update=function(data,t){return"string"==typeof data&&(data=r.from(data,t)),this._hash.update(data),this},v.prototype.verify=function(t,e,n){"string"==typeof e&&(e=r.from(e,n)),this.end();var o=this._hash.digest();return d(e,o,t,this._signType,this._tag)},t.exports={Sign:y,Verify:w,createSign:y,createVerify:w}},function(t,e,n){(e=t.exports=n(205)).Stream=e,e.Readable=e,e.Writable=n(209),e.Duplex=n(57),e.Transform=n(210),e.PassThrough=n(356),e.finished=n(133),e.pipeline=n(357)},,function(t,e,n){"use strict";function r(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var l=n(3).Buffer,c=n(353).inspect,d=c&&c.custom||"inspect";
vendor: 4,532 bytes, line 2
2t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,n,f;return e=t,(n=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);for(var e,n,r,o=l.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,n=o,r=i,l.prototype.copy.call(e,n,r),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var p=this.head,e=1,n=p.data;for(t-=n.length;p=p.next;){var r=p.data,o=t>r.length?r.length:t;if(o===r.length?n+=r:n+=r.slice(0,t),0==(t-=o)){o===r.length?(++e,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++e}return this.length-=e,n}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),p=this.head,n=1;for(p.data.copy(e),t-=p.data.length;p=p.next;){var r=p.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),0==(t-=o)){o===r.length?(++n,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++n}return this.length-=n,e}},{key:d,value:function(t,e){return c(this,function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?r(Object(source),!0).forEach((function(e){o(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):r(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&h(e.prototype,n),f&&h(e,f),t}()},,function(t,e,n){"use strict";(function(e){var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=n(133),l=Symbol("lastResolve"),c=Symbol("lastReject"),d=Symbol("error"),f=Symbol("ended"),m=Symbol("lastPromise"),v=Symbol("handlePromise"),y=Symbol("stream");function w(t,e){return{value:t,done:e}}function M(t){var e=t[l];if(null!==e){var data=t[y].read();null!==data&&(t[m]=null,t[l]=null,t[c]=null,e(w(data,!1)))}}function _(t){e.nextTick(M,t)}var k=Object.getPrototypeOf((function(){})),S=Object.setPrototypeOf((o(r={get stream(){return this[y]},next:function(){var t=this,n=this[d];if(null!==n)return Promise.reject(n);if(this[f])return Promise.resolve(w(void 0,!0));if(this[y].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[d]?r(t[d]):n(w(void 0,!0))}))}));var r,o=this[m];if(o)r=new Promise(function(t,e){return function(n,r){t.then((function(){e[f]?n(w(void 0,!0)):e[v](n,r)}),r)}}(o,this));else{var data=this[y].read();if(null!==data)return Promise.resolve(w(data,!1));r=new Promise(this[v])}return this[m]=r,r}},Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var t=this;return new Promise((function(e,n){t[y].destroy(null,(function(t){t?n(t):e(w(void 0,!0))}))}))})),r),k);t.exports=function(t){var e,n=Object.create(S,(o(e={},y,{value:t,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,d,{value:null,writable:!0}),o(e,f,{value:t._readableState.endEmitted,writable:!0}),o(e,v,{value:function(t,e){var data=n[y].read();data?(n[m]=null,n[l]=null,n[c]=null,t(w(data,!1))):(n[l]=t,n[c]=e)},writable:!0}),e));return n[m]=null,h(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[c];return null!==e&&(n[m]=null,n[l]=null,n[c]=null,e(t)),void(n[d]=t)}var r=n[l];null!==r&&(n[m]=null,n[l]=null,n[c]=null,r(w(void 0,!0))),n[f]=!0})),t.on("readable",_.bind(null,n)),n}}).call(this,n(7))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,n){"use strict";
vendor: 3,705 bytes, line 2
2t.exports=o;var r=n(210);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}n(1)(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){"use strict";var r;var o=n(56).codes,h=o.ERR_MISSING_ARGS,l=o.ERR_STREAM_DESTROYED;function c(t){if(t)throw t}function d(t,e,o,h){h=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(h);var c=!1;t.on("close",(function(){c=!0})),void 0===r&&(r=n(133)),r(t,{readable:e,writable:o},(function(t){if(t)return h(t);c=!0,h()}));var d=!1;return function(e){if(!c&&!d)return d=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void h(e||new l("pipe"))}}function f(t){t()}function m(t,e){return t.pipe(e)}function v(t){return t.length?"function"!=typeof t[t.length-1]?c:t.pop():c}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,o=v(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new h("streams");var l=e.map((function(t,i){var n=i<e.length-1;return d(t,n,i>0,(function(t){r||(r=t),t&&l.forEach(f),n||(l.forEach(f),o(r))}))}));return e.reduce(m)}},function(t,e,n){var r=n(3).Buffer,o=n(188),h=n(134),l=n(135).ec,c=n(216),d=n(98),f=n(221);function m(t,q,e,n){if((t=r.from(t.toArray())).length<q.byteLength()){var h=r.alloc(q.byteLength()-t.length);t=r.concat([h,t])}var l=e.length,c=function(t,q){t=(t=v(t,q)).mod(q);var e=r.from(t.toArray());if(e.length<q.byteLength()){var n=r.alloc(q.byteLength()-e.length);e=r.concat([n,e])}return e}(e,q),d=r.alloc(l);d.fill(1);var f=r.alloc(l);return f=o(n,f).update(d).update(r.from([0])).update(t).update(c).digest(),d=o(n,f).update(d).digest(),{k:f=o(n,f).update(d).update(r.from([1])).update(t).update(c).digest(),v:d=o(n,f).update(d).digest()}}function v(t,q){var e=new c(t),n=(t.length<<3)-q.bitLength();return n>0&&e.ishrn(n),e}function y(q,t,e){var n,h;do{for(n=r.alloc(0);8*n.length<q.bitLength();)t.v=o(e,t.k).update(t.v).digest(),n=r.concat([n,t.v]);h=v(n,q),t.k=o(e,t.k).update(t.v).update(r.from([0])).digest(),t.v=o(e,t.k).update(t.v).digest()}while(-1!==h.cmp(q));return h}function w(g,t,p,q){return g.toRed(c.mont(p)).redPow(t).fromRed().mod(q)}t.exports=function(t,e,n,o,M){var _=d(e);if(_.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(t,e){var n=f[e.curve.join(".")];if(!n)throw new Error("unknown curve "+e.curve.join("."));var o=new l(n).keyFromPrivate(e.privateKey).sign(t);return r.from(o.toDER())}(t,_)}if("dsa"===_.type){if("dsa"!==o)throw new Error("wrong private key type");return function(t,e,n){var o,h=e.params.priv_key,p=e.params.p,q=e.params.q,g=e.params.g,l=new c(0),d=v(t,q).mod(q),s=!1,f=m(h,q,t,n);for(;!1===s;)o=y(q,f,n),l=w(g,o,p,q),0===(s=o.invm(q).imul(d.add(h.mul(l))).mod(q)).cmpn(0)&&(s=!1,l=new c(0));return function(t,s){t=t.toArray(),s=s.toArray(),128&t[0]&&(t=[0].concat(t));128&s[0]&&(s=[0].concat(s));var e=[48,t.length+s.length+4,2,t.length];return e=e.concat(t,[2,s.length],s),r.from(e)}(l,s)}(t,_,n)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");t=r.concat([M,t]);for(var k=_.modulus.byteLength(),S=[0,1];t.length+S.length+1<k;)S.push(255);S.push(0);for(var i=-1;++i<t.length;)S.push(t[i]);return h(S,_)},t.exports.getKey=m,t.exports.makeKey=y},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 2
2=10),this._init(t||0,base||10,e||"be"))}var l;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{l=n(360).Buffer}catch(t){}function c(t,e,n){for(var r=0,o=Math.min(t.length,n),i=e;i<o;i++){var h=t.charCodeAt(i)-48;r<<=4,r|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return r}function d(t,e,n,r){for(var o=0,h=Math.min(t.length,n),i=e;i<h;i++){var l=t.charCodeAt(i)-48;o*=r,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(t,n):this._parseBase(t,base,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,h=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=t.length-6,n=0;i>=e;i-=6)r=c(t,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=c(t,e,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,h=o%n,l=Math.min(o,o-h)+e,c=0,i=e;i<l;i+=n)c=d(t,i,i+n,base),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==h){var f=1;for(c=d(t,i,t.length,base),i=0;i<h;i++)f*=base;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","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"],m=[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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 27,030 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,l=o/67108864|0;n.words[0]=h;for(var c=1;c<r;c++){for(var d=l>>>26,f=67108863&l,m=Math.min(c,e.length-1),v=Math.max(0,c-t.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|t.words[i])*(b=0|e.words[v])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,l=0|d}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<n|o)).toString(16);e=0!==(o=h>>>24-n&16777215)||i!==this.length-1?f[6-l.length]+l+e:l+e,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var c=m[base],d=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(d).toString(base);e=(y=y.idivn(d)).isZero()?w+e:f[c-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return r(void 0!==l),this.toArrayLike(l,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),h=n||Math.max(1,o);r(o<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===e,c=new t(h),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[i]=b;for(;i<h;i++)c[i]=0}else{for(i=0;i<h-o;i++)c[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[h-i-1]=b}return c},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,n){var r,o,h,a=t.words,b=e.words,l=n.words,c=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,k=M>>>13,S=0|a[3],x=8191&S,C=S>>>13,T=0|a[4],E=8191&T,A=T>>>13,I=0|a[5],D=8191&I,B=I>>>13,R=0|a[6],P=8191&R,F=R>>>13,O=0|a[7],N=8191&O,L=O>>>13,z=0|a[8],j=8191&z,U=z>>>13,$=0|a[9],V=8191&$,H=$>>>13,W=0|b[0],X=8191&W,Z=W>>>13,G=0|b[1],Y=8191&G,K=G>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,at=0|b[4],st=8191&at,ot=at>>>13,ut=0|b[5],ht=8191&ut,lt=ut>>>13,ct=0|b[6],ft=8191&ct,pt=ct>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,bt=0|b[8],yt=8191&bt,wt=bt>>>13,Mt=0|b[9],_t=8191&Mt,kt=Mt>>>13;n.negative=t.negative^e.negative,n.length=19;var St=(c+(r=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,Z))+Math.imul(m,X)|0))<<13)|0;c=((h=Math.imul(m,Z))+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(y,X),o=(o=Math.imul(y,Z))+Math.imul(w,X)|0,h=Math.imul(w,Z);var xt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(m,Y)|0))<<13)|0;c=((h=h+Math.imul(m,K)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(_,X),o=(o=Math.imul(_,Z))+Math.imul(k,X)|0,h=Math.imul(k,Z),r=r+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,K)|0;var Ct=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(m,Q)|0))<<13)|0;c=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(x,X),o=(o=Math.imul(x,Z))+Math.imul(C,X)|0,h=Math.imul(C,Z),r=r+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,K)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var Tt=(c+(r=r+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(m,it)|0))<<13)|0;c=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(E,X),o=(o=Math.imul(E,Z))+Math.imul(A,X)|0,h=Math.imul(A,Z),r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,Y)|0,h=h+Math.imul(C,K)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(k,Q)|0,h=h+Math.imul(k,tt)|0,r=r+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Et=(c+(r=r+Math.imul(f,st)|0)|0)+((8191&(o=(o=o+Math.imul(f,ot)|0)+Math.imul(m,st)|0))<<13)|0;c=((h=h+Math.imul(m,ot)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),o=(o=Math.imul(D,Z))+Math.imul(B,X)|0,h=Math.imul(B,Z),r=r+Math.imul(E,Y)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(A,Y)|0,h=h+Math.imul(A,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(C,Q)|0,h=h+Math.imul(C,tt)|0,r=r+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,r=r+Math.imul(y,st)|0,o=(o=o+Math.imul(y,ot)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,ot)|0;var At=(c+(r=r+Math.imul(f,ht)|0)|0)+((8191&(o=(o=o+Math.imul(f,lt)|0)+Math.imul(m,ht)|0))<<13)|0;c=((h=h+Math.imul(m,lt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(P,X),o=(o=Math.imul(P,Z))+Math.imul(F,X)|0,h=Math.imul(F,Z),r=r+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,K)|0)+Math.imul(B,Y)|0,h=h+Math.imul(B,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,h=h+Math.imul(A,tt)|0,r=r+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(C,it)|0,h=h+Math.imul(C,nt)|0,r=r+Math.imul(_,st)|0,o=(o=o+Math.imul(_,ot)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,ot)|0,r=r+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,lt)|0;var It=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,pt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,X),o=(o=Math.imul(N,Z))+Math.imul(L,X)|0,h=Math.imul(L,Z),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,K)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(E,it)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(A,it)|0,h=h+Math.imul(A,nt)|0,r=r+Math.imul(x,st)|0,o=(o=o+Math.imul(x,ot)|0)+Math.imul(C,st)|0,h=h+Math.imul(C,ot)|0,r=r+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,lt)|0,r=r+Math.imul(y,ft)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ft)|0,h=h+Math.imul(w,pt)|0;var Dt=(c+(r=r+Math.imul(f,gt)|0)|0)+((8191&(o=(o=o+Math.imul(f,vt)|0)+Math.imul(m,gt)|0))<<13)|0;c=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(j,X),o=(o=Math.imul(j,Z))+Math.imul(U,X)|0,h=Math.imul(U,Z),r=r+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(L,Y)|0,h=h+Math.imul(L,K)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(F,Q)|0,h=h+Math.imul(F,tt)|0,r=r+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(B,it)|0,h=h+Math.imul(B,nt)|0,r=r+Math.imul(E,st)|0,o=(o=o+Math.imul(E,ot)|0)+Math.imul(A,st)|0,h=h+Math.imul(A,ot)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(C,ht)|0,h=h+Math.imul(C,lt)|0,r=r+Math.imul(_,ft)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(k,ft)|0,h=h+Math.imul(k,pt)|0,r=r+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Bt=(c+(r=r+Math.imul(f,yt)|0)|0)+((8191&(o=(o=o+Math.imul(f,wt)|0)+Math.imul(m,yt)|0))<<13)|0;c=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(V,X),o=(o=Math.imul(V,Z))+Math.imul(H,X)|0,h=Math.imul(H,Z),r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,r=r+Math.imul(D,st)|0,o=(o=o+Math.imul(D,ot)|0)+Math.imul(B,st)|0,h=h+Math.imul(B,ot)|0,r=r+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(A,ht)|0,h=h+Math.imul(A,lt)|0,r=r+Math.imul(x,ft)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(C,ft)|0,h=h+Math.imul(C,pt)|0,r=r+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,r=r+Math.imul(y,yt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,yt)|0,h=h+Math.imul(w,wt)|0;var Rt=(c+(r=r+Math.imul(f,_t)|0)|0)+((8191&(o=(o=o+Math.imul(f,kt)|0)+Math.imul(m,_t)|0))<<13)|0;c=((h=h+Math.imul(m,kt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(V,Y),o=(o=Math.imul(V,K))+Math.imul(H,Y)|0,h=Math.imul(H,K),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,Q)|0,h=h+Math.imul(U,tt)|0,r=r+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,r=r+Math.imul(P,st)|0,o=(o=o+Math.imul(P,ot)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,ot)|0,r=r+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,lt)|0)+Math.imul(B,ht)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(A,ft)|0,h=h+Math.imul(A,pt)|0,r=r+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(C,gt)|0,h=h+Math.imul(C,vt)|0,r=r+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(k,yt)|0,h=h+Math.imul(k,wt)|0;var Pt=(c+(r=r+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,kt)|0)+Math.imul(w,_t)|0))<<13)|0;c=((h=h+Math.imul(w,kt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(V,Q),o=(o=Math.imul(V,tt))+Math.imul(H,Q)|0,h=Math.imul(H,tt),r=r+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,r=r+Math.imul(N,st)|0,o=(o=o+Math.imul(N,ot)|0)+Math.imul(L,st)|0,h=h+Math.imul(L,ot)|0,r=r+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,lt)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,lt)|0,r=r+Math.imul(D,ft)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(B,ft)|0,h=h+Math.imul(B,pt)|0,r=r+Math.imul(E,gt)|0,o=(o=o+Math.imul(E,vt)|0)+Math.imul(A,gt)|0,h=h+Math.imul(A,vt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(C,yt)|0,h=h+Math.imul(C,wt)|0;var Ft=(c+(r=r+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,kt)|0)+Math.imul(k,_t)|0))<<13)|0;c=((h=h+Math.imul(k,kt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(H,it)|0,h=Math.imul(H,nt),r=r+Math.imul(j,st)|0,o=(o=o+Math.imul(j,ot)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,ot)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(F,ft)|0,h=h+Math.imul(F,pt)|0,r=r+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(B,gt)|0,h=h+Math.imul(B,vt)|0,r=r+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(A,yt)|0,h=h+Math.imul(A,wt)|0;var Ot=(c+(r=r+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,kt)|0)+Math.imul(C,_t)|0))<<13)|0;c=((h=h+Math.imul(C,kt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(V,st),o=(o=Math.imul(V,ot))+Math.imul(H,st)|0,h=Math.imul(H,ot),r=r+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,lt)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,lt)|0,r=r+Math.imul(N,ft)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(L,ft)|0,h=h+Math.imul(L,pt)|0,r=r+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,r=r+Math.imul(D,yt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(B,yt)|0,h=h+Math.imul(B,wt)|0;var Nt=(c+(r=r+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,kt)|0)+Math.imul(A,_t)|0))<<13)|0;c=((h=h+Math.imul(A,kt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(V,ht),o=(o=Math.imul(V,lt))+Math.imul(H,ht)|0,h=Math.imul(H,lt),r=r+Math.imul(j,ft)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,ft)|0,h=h+Math.imul(U,pt)|0,r=r+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,r=r+Math.imul(P,yt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(F,yt)|0,h=h+Math.imul(F,wt)|0;var Lt=(c+(r=r+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,kt)|0)+Math.imul(B,_t)|0))<<13)|0;c=((h=h+Math.imul(B,kt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(V,ft),o=(o=Math.imul(V,pt))+Math.imul(H,ft)|0,h=Math.imul(H,pt),r=r+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(L,yt)|0,h=h+Math.imul(L,wt)|0;var zt=(c+(r=r+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,kt)|0)+Math.imul(F,_t)|0))<<13)|0;c=((h=h+Math.imul(F,kt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(H,gt)|0,h=Math.imul(H,vt),r=r+Math.imul(j,yt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,yt)|0,h=h+Math.imul(U,wt)|0;var jt=(c+(r=r+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,kt)|0)+Math.imul(L,_t)|0))<<13)|0;c=((h=h+Math.imul(L,kt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(V,yt),o=(o=Math.imul(V,wt))+Math.imul(H,yt)|0,h=Math.imul(H,wt);var Ut=(c+(r=r+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,kt)|0)+Math.imul(U,_t)|0))<<13)|0;c=((h=h+Math.imul(U,kt)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var $t=(c+(r=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,kt))+Math.imul(H,_t)|0))<<13)|0;return c=((h=Math.imul(H,kt))+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,l[0]=St,l[1]=xt,l[2]=Ct,l[3]=Tt,l[4]=Et,l[5]=At,l[6]=It,l[7]=Dt,l[8]=Bt,l[9]=Rt,l[10]=Pt,l[11]=Ft,l[12]=Ot,l[13]=Nt,l[14]=Lt,l[15]=zt,l[16]=jt,l[17]=Ut,l[18]=$t,0!==c&&(l[19]=c,n.length++),n};function M(t,e,n){return(new _).mulp(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):n<63?y(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,h=0;h<n.length-1;h++){var l=o;o=0;for(var c=67108863&r,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var i=h-f,m=(0|t.words[i])*(0|e.words[f]),v=67108863&m;c=67108863&(v=v+c|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[h]=c,r=l,l=o}return 0!==r?n.words[h]=r:n.length--,n.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},_.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},_.prototype.permute=function(t,e,n,r,o,h){for(var i=0;i<h;i++)r[i]=e[t[i]],o[i]=n[t[i]]},_.prototype.transform=function(t,e,n,r,o,h){this.permute(h,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,c=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=c,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],M=n[p+v+s],_=r[p+v+s],k=f*M-m*_;_=f*_+m*M,M=k,n[p+v]=y+M,r[p+v]=w+_,n[p+v+s]=y-M,r[p+v+s]=w-_,v!==l&&(k=c*f-d*m,m=c*m+d*f,f=k)}},_.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},_.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},_.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},_.prototype.convert13b=function(t,e,n,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],n[2*i]=8191&h,h>>>=13,n[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===h),r(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),h=this.stub(r),l=new Array(r),c=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,f,r),this.transform(l,h,c,d,r,o),this.transform(f,h,m,v,r,o);for(var i=0;i<r;i++){var w=c[i]*m[i]-d[i]*v[i];d[i]=c[i]*v[i]+d[i]*m[i],c[i]=w}return this.conjugate(c,d,r),this.transform(c,d,y,h,r,o),this.conjugate(y,h,r),this.normalize13b(y,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=(t.words[r]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n},h.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&n,l=(0|this.words[i])-h<<e;this.words[i]=l|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var c=0;for(i=this.length-1;i>=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-h|d>>>h,c=d&mask}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,n){var i,o,h=t.length+n;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var c=(0|t.words[i])*e;l=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var c=o-1;c>=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q.strip(),a.strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),h=n.cmp(r);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){r(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)}
vendor: 12,562 bytes, line 2
2,h.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new h(1),o=new h(0),l=new h(0),c=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var d=e.clone(),f=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(l.isOdd()||c.isOdd())&&(l.iadd(d),c.isub(f)),l.iushrn(1),c.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(c)):(e.isub(t),l.isub(n),c.isub(o))}return{a:l,b:c,gcd:e.iushln(g)}},h.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),n=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e))}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new A(t)},h.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};function S(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}S.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},S.prototype.split=function(input,t){input.iushrn(this.n,0,t)},S.prototype.imulK=function(t){return t.imul(this.k)},o(x,S),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|e>>>22,e=n}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(C,S),o(T,S),o(E,S),E.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new T;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return k[t]=e,e},A.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},A.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},A.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},A.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},A.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},A.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},A.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},A.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},A.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},A.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},A.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},A.prototype.isqr=function(a){return this.imul(a,a.clone())},A.prototype.sqr=function(a){return this.mul(a,a)},A.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new h(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new h(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new h(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},A.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],d=l-1;d>=0;d--){var f=c>>d&1;n!==e[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0}l=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,A),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(35)(t))},,function(t){t.exports=JSON.parse('{"_args":[["[email protected]","C:\\\\Users\\\\Abhay\\\\workspace\\\\frontend"]],"_from":"[email protected]","_id":"[email protected]","_inBundle":false,"_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"[email protected]","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.2","saveSpec":null,"fetchSpec":"6.5.2"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_spec":"6.5.2","_where":"C:\\\\Users\\\\Abhay\\\\workspace\\\\frontend","author":{"name":"Fedor Indutny","email":"[email protected]"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"}
2,"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://[email protected]/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.2"}')},,function(t,e,n){"use strict";var r=n(20),o=n(28),h=n(1),l=n(97),c=r.assert;function d(t){l.call(this,"short",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(t,e,n,r){l.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(e,16),this.y=new o(n,16),r&&(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 m(t,e,n,r){l.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(e,16),this.y=new o(n,16),this.z=new o(r,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}h(d,l),t.exports=d,d.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new o(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)n=new o(t.lambda,16);else{var h=this._getEndoRoots(this.n);0===this.g.mul(h[0]).x.cmp(this.g.x.redMul(e))?n=h[0]:(n=h[1],c(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:n,basis:t.basis?t.basis.map((function(t){return{a:new o(t.a,16),b:new o(t.b,16)}})):this._getEndoBasis(n)}}},d.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:o.mont(t),n=new o(2).toRed(e).redInvm(),r=n.redNeg(),s=new o(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(s).fromRed(),r.redSub(s).fromRed()]},d.prototype._getEndoBasis=function(t){for(var e,n,r,h,l,c,d,f,m,v=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=t,y=this.n.clone(),w=new o(1),M=new o(0),_=new o(0),k=new o(1),i=0;0!==u.cmpn(0);){var q=y.div(u);f=y.sub(q.mul(u)),m=_.sub(q.mul(w));var S=k.sub(q.mul(M));if(!r&&f.cmp(v)<0)e=d.neg(),n=w,r=f.neg(),h=m;else if(r&&2==++i)break;d=f,y=u,u=f,_=w,w=m,k=M,M=S}l=f.neg(),c=m;var x=r.sqr().add(h.sqr());return l.sqr().add(c.sqr()).cmp(x)>=0&&(l=e,c=n),r.negative&&(r=r.neg(),h=h.neg()),l.negative&&(l=l.neg(),c=c.neg()),[{a:r,b:h},{a:l,b:c}]},d.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],o=r.b.mul(t).divRound(this.n),h=n.b.neg().mul(t).divRound(this.n),l=o.mul(n.a),c=h.mul(r.a),d=o.mul(n.b),f=h.mul(r.b);return{k1:t.sub(l).sub(c),k2:d.add(f).neg()}},d.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var h=r.fromRed().isOdd();return(e&&!h||!e&&h)&&(r=r.redNeg()),this.point(t,r)},d.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),o=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},d.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i<t.length;i++){var h=this._endoSplit(e[i]),p=t[i],l=p._getBeta();h.k1.negative&&(h.k1.ineg(),p=p.neg(!0)),h.k2.negative&&(h.k2.ineg(),l=l.neg(!0)),r[2*i]=p,r[2*i+1]=l,o[2*i]=h.k1,o[2*i+1]=h.k2}for(var c=this._wnafMulAdd(1,r,o,2*i,n),d=0;d<2*i;d++)r[d]=null,o[d]=null;return c},h(f,l.BasePoint),d.prototype.point=function(t,e,n){return new f(this,t,e,n)},d.prototype.pointFromJSON=function(t,e){return f.fromJSON(this,t,e)},f.prototype._getBeta=function(){if(this.curve.endo){var pre=this.prec
vendor: 2,883 bytes, line 2
2omputed;if(pre&&pre.beta)return pre.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(pre){var e=this.curve,n=function(p){return e.point(p.x.redMul(e.endo.beta),p.y)};pre.beta=t,t.precomputed={beta:null,naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(n)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(n)}}}return t}},f.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]},f.fromJSON=function(t,e,n){"string"==typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],n);if(!e[2])return r;function o(e){return t.point(e[0],e[1],n)}var pre=e[2];return r.precomputed={beta:null,doubles:pre.doubles&&{step:pre.doubles.step,points:[r].concat(pre.doubles.points.map(o))},naf:pre.naf&&{wnd:pre.naf.wnd,points:[r].concat(pre.naf.points.map(o))}},r},f.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)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(0===this.x.cmp(p.x))return this.curve.point(null,null);var t=this.y.redSub(p.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(p.x).redInvm()));var e=t.redSqr().redISub(this.x).redISub(p.x),n=t.redMul(this.x.redSub(e)).redISub(this.y);return this.curve.point(e,n)},f.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var a=this.curve.a,e=this.x.redSqr(),n=t.redInvm(),r=e.redAdd(e).redIAdd(e).redIAdd(a).redMul(n),o=r.redSqr().redISub(this.x.redAdd(this.x)),h=r.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,h)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(t){return t=new o(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,n){var r=[this,e],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},f.prototype.jmulAdd=function(t,e,n){var r=[this,e],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},f.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||0===this.x.cmp(p.x)&&0===this.y.cmp(p.y))},f.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());
vendor: 4,433 bytes, line 2
2if(t&&this.precomputed){var pre=this.precomputed,n=function(p){return p.neg()};e.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(n)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(n)}}}return e},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},h(m,l.BasePoint),d.prototype.jpoint=function(t,e,n){return new m(this,t,e,n)},m.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},m.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},m.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var t=p.z.redSqr(),e=this.z.redSqr(),n=this.x.redMul(t),r=p.x.redMul(e),o=this.y.redMul(t.redMul(p.z)),h=p.y.redMul(e.redMul(this.z)),l=n.redSub(r),c=o.redSub(h);if(0===l.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=l.redSqr(),h3=h2.redMul(l),d=n.redMul(h2),f=c.redSqr().redIAdd(h3).redISub(d).redISub(d),m=c.redMul(d.redISub(f)).redISub(o.redMul(h3)),v=this.z.redMul(p.z).redMul(l);return this.curve.jpoint(f,m,v)},m.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var t=this.z.redSqr(),e=this.x,n=p.x.redMul(t),r=this.y,o=p.y.redMul(t).redMul(this.z),h=e.redSub(n),l=r.redSub(o);if(0===h.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=h.redSqr(),h3=h2.redMul(h),c=e.redMul(h2),d=l.redSqr().redIAdd(h3).redISub(c).redISub(c),f=l.redMul(c.redISub(d)).redISub(r.redMul(h3)),m=this.z.redMul(h);return this.curve.jpoint(d,f,m)},m.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}var a=this.curve.a,n=this.curve.tinv,r=this.x,o=this.y,h=this.z,l=h.redSqr().redSqr(),c=o.redAdd(o);for(i=0;i<t;i++){var d=r.redSqr(),f=c.redSqr(),m=f.redSqr(),v=d.redAdd(d).redIAdd(d).redIAdd(a.redMul(l)),y=r.redMul(f),w=v.redSqr().redISub(y.redAdd(y)),M=y.redISub(w),_=v.redMul(M);_=_.redIAdd(_).redISub(m);var k=c.redMul(h);i+1<t&&(l=l.redMul(m)),r=w,h=k,c=_}return this.curve.jpoint(r,c.redMul(n),h)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},m.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),h=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(r).redISub(h);s=s.redIAdd(s);var l=r.redAdd(r).redIAdd(r),c=l.redSqr().redISub(s).redISub(s),d=h.redIAdd(h);d=(d=d.redIAdd(d)).redIAdd(d),t=c,e=l.redMul(s.redISub(c)).redISub(d),n=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),b=this.y.redSqr(),f=b.redSqr(),m=this.x.redAdd(b).redSqr().redISub(a).redISub(f);m=m.redIAdd(m);var v=a.redAdd(a).redIAdd(a),y=v.redSqr(),w=f.redIAdd(f);w=(w=w.redIAdd(w)).redIAdd(w),t=y.redISub(m).redISub(m),e=v.redMul(m.redISub(t)).redISub(w),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},m.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),h=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(r).redISub(h);s=s.redIAdd(s);var l=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=l.redSqr().redISub(s).redISub(s);t=c;var d=h.redIAdd(h);d=(d=d.redIAdd(d)).redIAdd(d),e=l.redMul(s.redISub(c)).redISub(d),n=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),m=this.y.redSqr(),v=this.x.redMul(m),y=this.x.redSub(f).redMul(this.x.redAdd(f));y=y.redAdd(y).redIAdd(y);var w=v.redIAdd(v),M=(w=w.redIAdd(w)).redAdd(w);t=y.redSqr().redISub(M),n=this.y.redAdd(this.z).redSqr().redISub(m).redISub(f);var _=m.redSqr();_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_),e=y.redMul(w.redISub(t)).redISub(_)}return this.curve.jpoint(t,e,n)},m.prototype._dbl=function(){var a=this.curve.a,t=this.x,e=this.y,n=this.z,r=n.redSqr().redSqr(),o=t.redSqr(),h=e.redSqr(),l=o.redAdd(o).redIAdd(o).redIAdd(a.redMul(r)),c=t.redAdd(t),d=(c=c.redIAdd(c)).redMul(h),f=l.redSqr().redISub(d.redAdd(d)),m=d.redISub(f),v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=l.redMul(m).redISub(v),w=e.redAdd(e).redMul(n);return this.curve.jpoint(f,y,w)},m.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 5,209 bytes, line 2
2var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),r=e.redSqr(),o=t.redAdd(t).redIAdd(t),h=o.redSqr(),l=this.x.redAdd(e).redSqr().redISub(t).redISub(r),c=(l=(l=(l=l.redIAdd(l)).redAdd(l).redIAdd(l)).redISub(h)).redSqr(),d=r.redIAdd(r);d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var u=o.redIAdd(l).redSqr().redISub(h).redISub(c).redISub(d),f=e.redMul(u);f=(f=f.redIAdd(f)).redIAdd(f);var m=this.x.redMul(c).redISub(f);m=(m=m.redIAdd(m)).redIAdd(m);var v=this.y.redMul(u.redMul(d.redISub(u)).redISub(l.redMul(c)));v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=this.z.redAdd(l).redSqr().redISub(n).redISub(c);return this.curve.jpoint(m,v,y)},m.prototype.mul=function(t,e){return t=new o(t,e),this.curve._wnafMul(this,t)},m.prototype.eq=function(p){if("affine"===p.type)return this.eq(p.toJ());if(this===p)return!0;var t=this.z.redSqr(),e=p.z.redSqr();if(0!==this.x.redMul(e).redISub(p.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),r=e.redMul(p.z);return 0===this.y.redMul(r).redISub(p.y.redMul(n)).cmpn(0)},m.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var r=t.clone(),o=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},m.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},m.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,n){"use strict";var r=n(28),o=n(1),h=n(97),l=n(20);function c(t){h.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function d(t,e,n){h.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(c,h),t.exports=c,c.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},o(d,h.BasePoint),c.prototype.decodePoint=function(t,e){return this.point(l.toArray(t,e),1)},c.prototype.point=function(t,e){return new d(this,t,e)},c.prototype.pointFromJSON=function(t){return d.fromJSON(this,t)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(t,e){return new d(t,e[0],e[1]||t.one)},d.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)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},d.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),o=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},d.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(p,t){var a=this.x.redAdd(this.z),b=this.x.redSub(this.z),e=p.x.redAdd(p.z),n=p.x.redSub(p.z).redMul(a),r=e.redMul(b),o=t.z.redMul(n.redAdd(r).redSqr()),h=t.x.redMul(n.redISub(r).redSqr());return this.curve.point(o,h)},d.prototype.mul=function(t){for(var e=t.clone(),a=this,b=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var i=n.length-1;i>=0;i--)0===n[i]?(a=a.diffAdd(b,this),b=b.dbl()):(b=a.diffAdd(b,this),a=a.dbl());return b},d.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,n){"use strict";var r=n(20),o=n(28),h=n(1),l=n(97),c=r.assert;function d(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,l.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function f(t,e,n,r,h){l.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(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 o(e,16),this.y=new o(n,16),this.z=r?new o(r,16):this.curve.one,this.t=h&&new o(h,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()))))}
vendor: 5,436 bytes, line 2
2h(d,l),t.exports=d,d.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},d.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},d.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},d.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),h=this.one.redSub(this.c2.redMul(this.d).redMul(n)),l=r.redMul(h.redInvm()),c=l.redSqrt();if(0!==c.redSqr().redSub(l).cmp(this.zero))throw new Error("invalid point");var d=c.fromRed().isOdd();return(e&&!d||!e&&d)&&(c=c.redNeg()),this.point(t,c)},d.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.c2),h=n.redMul(this.d).redMul(this.c2).redSub(this.a),l=r.redMul(h.redInvm());if(0===l.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var c=l.redSqrt();if(0!==c.redSqr().redSub(l).cmp(this.zero))throw new Error("invalid point");return c.fromRed().isOdd()!==e&&(c=c.redNeg()),this.point(c,t)},d.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(o)},h(f,l.BasePoint),d.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},d.prototype.point=function(t,e,n,r){return new f(this,t,e,n,r)},f.fromJSON=function(t,e){return new f(t,e[0],e[1],e[2])},f.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)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var a=this.x.redSqr(),b=this.y.redSqr(),t=this.z.redSqr();t=t.redIAdd(t);var e=this.curve._mulA(a),n=this.x.redAdd(this.y).redSqr().redISub(a).redISub(b),g=e.redAdd(b),r=g.redSub(t),o=e.redSub(b),h=n.redMul(r),l=g.redMul(o),c=n.redMul(o),d=r.redMul(g);return this.curve.point(h,l,d,c)},f.prototype._projDbl=function(){var t,e,n,b=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var h=(d=this.curve._mulA(r)).redAdd(o);if(this.zOne)t=b.redSub(r).redSub(o).redMul(h.redSub(this.curve.two)),e=h.redMul(d.redSub(o)),n=h.redSqr().redSub(h).redSub(h);else{var l=this.z.redSqr(),c=h.redSub(l).redISub(l);t=b.redSub(r).redISub(o).redMul(c),e=h.redMul(d.redSub(o)),n=h.redMul(c)}}else{var d=r.redAdd(o);l=this.curve._mulC(this.z).redSqr(),c=d.redSub(l).redSub(l);t=this.curve._mulC(b.redISub(d)).redMul(c),e=this.curve._mulC(d).redMul(r.redISub(o)),n=d.redMul(c)}return this.curve.point(t,e,n)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(p){var a=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),t=this.t.redMul(this.curve.dd).redMul(p.t),e=this.z.redMul(p.z.redAdd(p.z)),n=b.redSub(a),r=e.redSub(t),g=e.redAdd(t),o=b.redAdd(a),h=n.redMul(r),l=g.redMul(o),c=n.redMul(o),d=r.redMul(g);return this.curve.point(h,l,d,c)},f.prototype._projAdd=function(p){var t,e,a=this.z.redMul(p.z),b=a.redSqr(),n=this.x.redMul(p.x),r=this.y.redMul(p.y),o=this.curve.d.redMul(n).redMul(r),h=b.redSub(o),g=b.redAdd(o),l=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(n).redISub(r),c=a.redMul(h).redMul(l);return this.curve.twisted?(t=a.redMul(g).redMul(r.redSub(this.curve._mulA(n))),e=h.redMul(g)):(t=a.redMul(g).redMul(r.redSub(n)),e=this.curve._mulC(h).redMul(g)),this.curve.point(c,t,e)},f.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},f.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,p,e){return this.curve._wnafMulAdd(1,[this,p],[t,e],2,!1)},f.prototype.jmulAdd=function(t,p,e){return this.curve._wnafMulAdd(1,[this,p],[t,e],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},f.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},function(t,e,n){"use strict";e.sha1=n(367),e.sha224=n(368),e.sha256=n(214),e.sha384=n(369),e.sha512=n(215)},function(t,e,n){"use strict";var r=n(26),o=n(75),h=n(213),l=r.rotl32,c=r.sum32,d=r.sum32_5,f=h.ft_1,m=o.BlockHash,v=[1518500249,1859775393,2400959708,3395469782];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}
vendor: 4,245 bytes, line 2
2r.inherits(y,m),t.exports=y,y.blockSize=512,y.outSize=160,y.hmacStrength=80,y.padLength=64,y.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=l(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],h=this.h[4];for(i=0;i<n.length;i++){var s=~~(i/20),m=d(l(a,5),f(s,b,r,o),h,n[i],v[s]);h=o,o=r,r=l(b,30),b=a,a=m}this.h[0]=c(this.h[0],a),this.h[1]=c(this.h[1],b),this.h[2]=c(this.h[2],r),this.h[3]=c(this.h[3],o),this.h[4]=c(this.h[4],h)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,n){"use strict";var r=n(26),o=n(214);function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(h,o),t.exports=h,h.blockSize=512,h.outSize=224,h.hmacStrength=192,h.padLength=64,h.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(t,e,n){"use strict";var r=n(26),o=n(215);function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(h,o),t.exports=h,h.blockSize=1024,h.outSize=384,h.hmacStrength=192,h.padLength=128,h.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(t,e,n){"use strict";var r=n(26),o=n(75),h=r.rotl32,l=r.sum32,c=r.sum32_3,d=r.sum32_4,f=o.BlockHash;function m(){if(!(this instanceof m))return new m;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function y(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function w(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}r.inherits(m,f),e.ripemd160=m,m.blockSize=512,m.outSize=160,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],o=this.h[2],f=this.h[3],m=this.h[4],S=n,x=r,C=o,T=f,E=m,A=0;A<80;A++){var I=l(h(d(n,v(A,r,o,f),t[M[A]+e],y(A)),s[A]),m);n=m,m=f,f=h(o,10),o=r,r=I,I=l(h(d(S,v(79-A,x,C,T),t[_[A]+e],w(A)),k[A]),E),S=E,E=T,T=h(C,10),C=x,x=I}I=c(this.h[1],o,T),this.h[1]=c(this.h[2],f,E),this.h[2]=c(this.h[3],m,S),this.h[3]=c(this.h[4],n,x),this.h[4]=c(this.h[0],r,C),this.h[0]=I},m.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var M=[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],_=[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],s=[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],k=[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]},function(t,e,n){"use strict";var r=n(26),o=n(19);function h(t,e,n){if(!(this instanceof h))return new h(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}t.exports=h,h.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var i=t.length;i<this.blockSize;i++)t.push(0);for(i=0;i<t.length;i++)t[i]^=54;for(this.inner=(new this.Hash).update(t),i=0;i<t.length;i++)t[i]^=106;this.outer=(new this.Hash).update(t)},h.prototype.update=function(t,e){return this.inner.update(t,e),this},h.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t
vendor: 26,137 bytes, line 2
2.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"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","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"]]}}},
vendor: 4,195 bytes, line 2
2function(t,e,n){"use strict";var r=n(28),o=n(374),h=n(20),l=n(136),c=n(132),d=h.assert,f=n(375),m=n(376);function v(t){if(!(this instanceof v))return new v(t);"string"==typeof t&&(d(l.hasOwnProperty(t),"Unknown curve "+t),t=l[t]),t instanceof l.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=v,v.prototype.keyPair=function(t){return new f(this,t)},v.prototype.keyFromPrivate=function(t,e){return f.fromPrivate(this,t,e)},v.prototype.keyFromPublic=function(t,e){return f.fromPublic(this,t,e)},v.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||c(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),h=this.n.sub(new r(2));;){var l=new r(e.generate(n));if(!(l.cmp(h)>0))return l.iaddn(1),this.keyFromPrivate(l)}},v.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},v.prototype.sign=function(t,e,n,h){"object"==typeof n&&(h=n,n=null),h||(h={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new r(t,16));for(var l=this.n.byteLength(),c=e.getPrivate().toArray("be",l),d=t.toArray("be",l),f=new o({hash:this.hash,entropy:c,nonce:d,pers:h.pers,persEnc:h.persEnc||"utf8"}),v=this.n.sub(new r(1)),y=0;;y++){var w=h.k?h.k(y):new r(f.generate(this.n.byteLength()));if(!((w=this._truncateToN(w,!0)).cmpn(1)<=0||w.cmp(v)>=0)){var M=this.g.mul(w);if(!M.isInfinity()){var _=M.getX(),k=_.umod(this.n);if(0!==k.cmpn(0)){var s=w.invm(this.n).mul(k.mul(e.getPrivate()).iadd(t));if(0!==(s=s.umod(this.n)).cmpn(0)){var S=(M.getY().isOdd()?1:0)|(0!==_.cmp(k)?2:0);return h.canonical&&s.cmp(this.nh)>0&&(s=this.n.sub(s),S^=1),new m({r:k,s:s,recoveryParam:S})}}}}}},v.prototype.verify=function(t,e,n,o){t=this._truncateToN(new r(t,16)),n=this.keyFromPublic(n,o);var h=(e=new m(e,"hex")).r,s=e.s;if(h.cmpn(1)<0||h.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var p,l=s.invm(this.n),c=l.mul(t).umod(this.n),d=l.mul(h).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(c,n.getPublic(),d)).isInfinity()&&p.eqXToP(h):!(p=this.g.mulAdd(c,n.getPublic(),d)).isInfinity()&&0===p.getX().umod(this.n).cmp(h)},v.prototype.recoverPubKey=function(t,e,n,o){d((3&n)===n,"The recovery param is more than two bits"),e=new m(e,o);var h=this.n,l=new r(t),c=e.r,s=e.s,f=1&n,v=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&v)throw new Error("Unable to find sencond key candinate");c=v?this.curve.pointFromX(c.add(this.curve.n),f):this.curve.pointFromX(c,f);var y=e.r.invm(h),w=h.sub(l).mul(y).umod(h),M=s.mul(y).umod(h);return this.g.mulAdd(w,c,M)},v.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new m(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,n){"use strict";var r=n(137),o=n(211),h=n(19);function l(t){if(!(this instanceof l))return new l(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),n=o.toArray(t.nonce,t.nonceEnc||"hex"),r=o.toArray(t.pers,t.persEnc||"hex");h(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=l,l.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},l.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},l.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([
vendor: 10,431 bytes, line 2
21]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},l.prototype.reseed=function(t,e,n,r){"string"!=typeof e&&(r=n,n=e,e=null),t=o.toArray(t,e),n=o.toArray(n,r),h(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},l.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var h=[];h.length<t;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var l=h.slice(0,t);return this._update(n),this._reseed++,o.encode(l,e)}},function(t,e,n){"use strict";var r=n(28),o=n(20).assert;function h(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=h,h.fromPublic=function(t,e,n){return e instanceof h?e:new h(t,{pub:e,pubEnc:n})},h.fromPrivate=function(t,e,n){return e instanceof h?e:new h(t,{priv:e,privEnc:n})},h.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}},h.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},h.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},h.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},h.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},h.prototype.derive=function(t){return t.mul(this.priv).getX()},h.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},h.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},h.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,n){"use strict";var r=n(28),o=n(20),h=o.assert;function l(t,e){if(t instanceof l)return t;this._importDER(t,e)||(h(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function c(){this.place=0}function d(t,p){var e=t[p.place++];if(!(128&e))return e;for(var n=15&e,r=0,i=0,o=p.place;i<n;i++,o++)r<<=8,r|=t[o];return p.place=o,r}function f(t){for(var i=0,e=t.length-1;!t[i]&&!(128&t[i+1])&&i<e;)i++;return 0===i?t:t.slice(i)}function m(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=l,l.prototype._importDER=function(data,t){data=o.toArray(data,t);var p=new c;if(48!==data[p.place++])return!1;if(d(data,p)+p.place!==data.length)return!1;if(2!==data[p.place++])return!1;var e=d(data,p),n=data.slice(p.place,e+p.place);if(p.place+=e,2!==data[p.place++])return!1;var h=d(data,p);if(data.length!==h+p.place)return!1;var s=data.slice(p.place,h+p.place);return 0===n[0]&&128&n[1]&&(n=n.slice(1)),0===s[0]&&128&s[1]&&(s=s.slice(1)),this.r=new r(n),this.s=new r(s),this.recoveryParam=null,!0},l.prototype.toDER=function(t){var e=this.r.toArray(),s=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&s[0]&&(s=[0].concat(s)),e=f(e),s=f(s);!(s[0]||128&s[1]);)s=s.slice(1);var n=[2];m(n,e.length),(n=n.concat(e)).push(2),m(n,s.length);var r=n.concat(s),h=[48];return m(h,r.length),h=h.concat(r),o.encode(h,t)}},function(t,e,n){"use strict";var r=n(137),o=n(136),h=n(20),l=h.assert,c=h.parseBytes,d=n(378),f=n(379);function m(t){if(l("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof m))return new m(t);t=o[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}t.exports=m,m.prototype.sign=function(t,e){t=c(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),o=this.g.mul(r),h=this.encodePoint(o),l=this.hashInt(h,n.pubBytes(),t).mul(n.priv()),d=r.add(l).umod(this.curve.n);return this.makeSignature({R:o,S:d,Rencoded:h})},m.prototype.verify=function(t,e,n){t=c(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),o=this.hashInt(e.Rencoded(),r.pubBytes(),t),h=this.g.mul(e.S());return e.R().add(r.pub().mul(o)).eq(h)},m.prototype.hashInt=function(){for(var t=this.hash(),i=0;i<arguments.length;i++)t.update(arguments[i]);return h.intFromLE(t.digest()).umod(this.curve.n)},m.prototype.keyFromPublic=function(t){return d.fromPublic(this,t)},m.prototype.keyFromSecret=function(t){return d.fromSecret(this,t)},m.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},m.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},m.prototype.decodePoint=function(t){var e=(t=h.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),r=0!=(128&t[e]),o=h.intFromLE(n);return this.curve.pointFromY(o,r)},m.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},m.prototype.decodeInt=function(t){return h.intFromLE(t)},m.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,n){"use strict";var r=n(20),o=r.assert,h=r.parseBytes,l=r.cachedProperty;function c(t,e){this.eddsa=t,this._secret=h(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=h(e.pub)}c.fromPublic=function(t,e){return e instanceof c?e:new c(t,{pub:e})},c.fromSecret=function(t,e){return e instanceof c?e:new c(t,{secret:e})},c.prototype.secret=function(){return this._secret},l(c,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),l(c,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),l(c,"privBytes",(function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,a=e.slice(0,t.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a})),l(c,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),l(c,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),l(c,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),c.prototype.sign=function(t){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},c.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},c.prototype.getSecret=function(t){return o(this._secret,"KeyPair is public only"),r.encode(this.secret(),t)},c.prototype.getPublic=function(t){return r.encode(this.pubBytes(),t)},t.exports=c},function(t,e,n){"use strict";var r=n(28),o=n(20),h=o.assert,l=o.cachedProperty,c=o.parseBytes;function d(t,e){this.eddsa=t,"object"!=typeof e&&(e=c(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),h(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}l(d,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),l(d,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),l(d,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),l(d,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=d},,function(t,e,n){"use strict";var r=n(76);e.certificate=n(393);var o=r.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())}));e.RSAPrivateKey=o;var h=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=h;var l=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}));e.PublicKey=l;var c=r.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())})),d=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(c),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=d;var f=r.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())}));e.EncryptedPrivateKey=f;var m=r.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())}));e.DSAPrivateKey=m,e.DSAparam=r.define("DSAparam",(function(){this.int()}));var v=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(y),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=v;var y=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 2
2=10),this._init(t||0,base||10,e||"be"))}var l;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{l=n(383).Buffer}catch(t){}function c(t,e,n){for(var r=0,o=Math.min(t.length,n),i=e;i<o;i++){var h=t.charCodeAt(i)-48;r<<=4,r|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return r}function d(t,e,n,r){for(var o=0,h=Math.min(t.length,n),i=e;i<h;i++){var l=t.charCodeAt(i)-48;o*=r,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(t,n):this._parseBase(t,base,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,h=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=t.length-6,n=0;i>=e;i-=6)r=c(t,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=c(t,e,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,h=o%n,l=Math.min(o,o-h)+e,c=0,i=e;i<l;i+=n)c=d(t,i,i+n,base),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==h){var f=1;for(c=d(t,i,t.length,base),i=0;i<h;i++)f*=base;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","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"],m=[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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 27,030 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,l=o/67108864|0;n.words[0]=h;for(var c=1;c<r;c++){for(var d=l>>>26,f=67108863&l,m=Math.min(c,e.length-1),v=Math.max(0,c-t.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|t.words[i])*(b=0|e.words[v])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,l=0|d}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<n|o)).toString(16);e=0!==(o=h>>>24-n&16777215)||i!==this.length-1?f[6-l.length]+l+e:l+e,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var c=m[base],d=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(d).toString(base);e=(y=y.idivn(d)).isZero()?w+e:f[c-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return r(void 0!==l),this.toArrayLike(l,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),h=n||Math.max(1,o);r(o<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===e,c=new t(h),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[i]=b;for(;i<h;i++)c[i]=0}else{for(i=0;i<h-o;i++)c[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[h-i-1]=b}return c},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,n){var r,o,h,a=t.words,b=e.words,l=n.words,c=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,k=M>>>13,S=0|a[3],x=8191&S,C=S>>>13,T=0|a[4],E=8191&T,A=T>>>13,I=0|a[5],D=8191&I,B=I>>>13,R=0|a[6],P=8191&R,F=R>>>13,O=0|a[7],N=8191&O,L=O>>>13,z=0|a[8],j=8191&z,U=z>>>13,$=0|a[9],V=8191&$,H=$>>>13,W=0|b[0],X=8191&W,Z=W>>>13,G=0|b[1],Y=8191&G,K=G>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,at=0|b[4],st=8191&at,ot=at>>>13,ut=0|b[5],ht=8191&ut,lt=ut>>>13,ct=0|b[6],ft=8191&ct,pt=ct>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,bt=0|b[8],yt=8191&bt,wt=bt>>>13,Mt=0|b[9],_t=8191&Mt,kt=Mt>>>13;n.negative=t.negative^e.negative,n.length=19;var St=(c+(r=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,Z))+Math.imul(m,X)|0))<<13)|0;c=((h=Math.imul(m,Z))+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(y,X),o=(o=Math.imul(y,Z))+Math.imul(w,X)|0,h=Math.imul(w,Z);var xt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(m,Y)|0))<<13)|0;c=((h=h+Math.imul(m,K)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(_,X),o=(o=Math.imul(_,Z))+Math.imul(k,X)|0,h=Math.imul(k,Z),r=r+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,K)|0;var Ct=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(m,Q)|0))<<13)|0;c=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(x,X),o=(o=Math.imul(x,Z))+Math.imul(C,X)|0,h=Math.imul(C,Z),r=r+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,K)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var Tt=(c+(r=r+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(m,it)|0))<<13)|0;c=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(E,X),o=(o=Math.imul(E,Z))+Math.imul(A,X)|0,h=Math.imul(A,Z),r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,Y)|0,h=h+Math.imul(C,K)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(k,Q)|0,h=h+Math.imul(k,tt)|0,r=r+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Et=(c+(r=r+Math.imul(f,st)|0)|0)+((8191&(o=(o=o+Math.imul(f,ot)|0)+Math.imul(m,st)|0))<<13)|0;c=((h=h+Math.imul(m,ot)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),o=(o=Math.imul(D,Z))+Math.imul(B,X)|0,h=Math.imul(B,Z),r=r+Math.imul(E,Y)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(A,Y)|0,h=h+Math.imul(A,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(C,Q)|0,h=h+Math.imul(C,tt)|0,r=r+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,r=r+Math.imul(y,st)|0,o=(o=o+Math.imul(y,ot)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,ot)|0;var At=(c+(r=r+Math.imul(f,ht)|0)|0)+((8191&(o=(o=o+Math.imul(f,lt)|0)+Math.imul(m,ht)|0))<<13)|0;c=((h=h+Math.imul(m,lt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(P,X),o=(o=Math.imul(P,Z))+Math.imul(F,X)|0,h=Math.imul(F,Z),r=r+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,K)|0)+Math.imul(B,Y)|0,h=h+Math.imul(B,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,h=h+Math.imul(A,tt)|0,r=r+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(C,it)|0,h=h+Math.imul(C,nt)|0,r=r+Math.imul(_,st)|0,o=(o=o+Math.imul(_,ot)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,ot)|0,r=r+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,lt)|0;var It=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,pt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,X),o=(o=Math.imul(N,Z))+Math.imul(L,X)|0,h=Math.imul(L,Z),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,K)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(E,it)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(A,it)|0,h=h+Math.imul(A,nt)|0,r=r+Math.imul(x,st)|0,o=(o=o+Math.imul(x,ot)|0)+Math.imul(C,st)|0,h=h+Math.imul(C,ot)|0,r=r+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,lt)|0,r=r+Math.imul(y,ft)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ft)|0,h=h+Math.imul(w,pt)|0;var Dt=(c+(r=r+Math.imul(f,gt)|0)|0)+((8191&(o=(o=o+Math.imul(f,vt)|0)+Math.imul(m,gt)|0))<<13)|0;c=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(j,X),o=(o=Math.imul(j,Z))+Math.imul(U,X)|0,h=Math.imul(U,Z),r=r+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(L,Y)|0,h=h+Math.imul(L,K)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(F,Q)|0,h=h+Math.imul(F,tt)|0,r=r+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(B,it)|0,h=h+Math.imul(B,nt)|0,r=r+Math.imul(E,st)|0,o=(o=o+Math.imul(E,ot)|0)+Math.imul(A,st)|0,h=h+Math.imul(A,ot)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(C,ht)|0,h=h+Math.imul(C,lt)|0,r=r+Math.imul(_,ft)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(k,ft)|0,h=h+Math.imul(k,pt)|0,r=r+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Bt=(c+(r=r+Math.imul(f,yt)|0)|0)+((8191&(o=(o=o+Math.imul(f,wt)|0)+Math.imul(m,yt)|0))<<13)|0;c=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(V,X),o=(o=Math.imul(V,Z))+Math.imul(H,X)|0,h=Math.imul(H,Z),r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,r=r+Math.imul(D,st)|0,o=(o=o+Math.imul(D,ot)|0)+Math.imul(B,st)|0,h=h+Math.imul(B,ot)|0,r=r+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(A,ht)|0,h=h+Math.imul(A,lt)|0,r=r+Math.imul(x,ft)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(C,ft)|0,h=h+Math.imul(C,pt)|0,r=r+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,r=r+Math.imul(y,yt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,yt)|0,h=h+Math.imul(w,wt)|0;var Rt=(c+(r=r+Math.imul(f,_t)|0)|0)+((8191&(o=(o=o+Math.imul(f,kt)|0)+Math.imul(m,_t)|0))<<13)|0;c=((h=h+Math.imul(m,kt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(V,Y),o=(o=Math.imul(V,K))+Math.imul(H,Y)|0,h=Math.imul(H,K),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,Q)|0,h=h+Math.imul(U,tt)|0,r=r+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,r=r+Math.imul(P,st)|0,o=(o=o+Math.imul(P,ot)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,ot)|0,r=r+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,lt)|0)+Math.imul(B,ht)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(A,ft)|0,h=h+Math.imul(A,pt)|0,r=r+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(C,gt)|0,h=h+Math.imul(C,vt)|0,r=r+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(k,yt)|0,h=h+Math.imul(k,wt)|0;var Pt=(c+(r=r+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,kt)|0)+Math.imul(w,_t)|0))<<13)|0;c=((h=h+Math.imul(w,kt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(V,Q),o=(o=Math.imul(V,tt))+Math.imul(H,Q)|0,h=Math.imul(H,tt),r=r+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,r=r+Math.imul(N,st)|0,o=(o=o+Math.imul(N,ot)|0)+Math.imul(L,st)|0,h=h+Math.imul(L,ot)|0,r=r+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,lt)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,lt)|0,r=r+Math.imul(D,ft)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(B,ft)|0,h=h+Math.imul(B,pt)|0,r=r+Math.imul(E,gt)|0,o=(o=o+Math.imul(E,vt)|0)+Math.imul(A,gt)|0,h=h+Math.imul(A,vt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(C,yt)|0,h=h+Math.imul(C,wt)|0;var Ft=(c+(r=r+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,kt)|0)+Math.imul(k,_t)|0))<<13)|0;c=((h=h+Math.imul(k,kt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(H,it)|0,h=Math.imul(H,nt),r=r+Math.imul(j,st)|0,o=(o=o+Math.imul(j,ot)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,ot)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(F,ft)|0,h=h+Math.imul(F,pt)|0,r=r+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(B,gt)|0,h=h+Math.imul(B,vt)|0,r=r+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(A,yt)|0,h=h+Math.imul(A,wt)|0;var Ot=(c+(r=r+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,kt)|0)+Math.imul(C,_t)|0))<<13)|0;c=((h=h+Math.imul(C,kt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(V,st),o=(o=Math.imul(V,ot))+Math.imul(H,st)|0,h=Math.imul(H,ot),r=r+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,lt)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,lt)|0,r=r+Math.imul(N,ft)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(L,ft)|0,h=h+Math.imul(L,pt)|0,r=r+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,r=r+Math.imul(D,yt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(B,yt)|0,h=h+Math.imul(B,wt)|0;var Nt=(c+(r=r+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,kt)|0)+Math.imul(A,_t)|0))<<13)|0;c=((h=h+Math.imul(A,kt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(V,ht),o=(o=Math.imul(V,lt))+Math.imul(H,ht)|0,h=Math.imul(H,lt),r=r+Math.imul(j,ft)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,ft)|0,h=h+Math.imul(U,pt)|0,r=r+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,r=r+Math.imul(P,yt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(F,yt)|0,h=h+Math.imul(F,wt)|0;var Lt=(c+(r=r+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,kt)|0)+Math.imul(B,_t)|0))<<13)|0;c=((h=h+Math.imul(B,kt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(V,ft),o=(o=Math.imul(V,pt))+Math.imul(H,ft)|0,h=Math.imul(H,pt),r=r+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(L,yt)|0,h=h+Math.imul(L,wt)|0;var zt=(c+(r=r+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,kt)|0)+Math.imul(F,_t)|0))<<13)|0;c=((h=h+Math.imul(F,kt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(H,gt)|0,h=Math.imul(H,vt),r=r+Math.imul(j,yt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,yt)|0,h=h+Math.imul(U,wt)|0;var jt=(c+(r=r+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,kt)|0)+Math.imul(L,_t)|0))<<13)|0;c=((h=h+Math.imul(L,kt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(V,yt),o=(o=Math.imul(V,wt))+Math.imul(H,yt)|0,h=Math.imul(H,wt);var Ut=(c+(r=r+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,kt)|0)+Math.imul(U,_t)|0))<<13)|0;c=((h=h+Math.imul(U,kt)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var $t=(c+(r=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,kt))+Math.imul(H,_t)|0))<<13)|0;return c=((h=Math.imul(H,kt))+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,l[0]=St,l[1]=xt,l[2]=Ct,l[3]=Tt,l[4]=Et,l[5]=At,l[6]=It,l[7]=Dt,l[8]=Bt,l[9]=Rt,l[10]=Pt,l[11]=Ft,l[12]=Ot,l[13]=Nt,l[14]=Lt,l[15]=zt,l[16]=jt,l[17]=Ut,l[18]=$t,0!==c&&(l[19]=c,n.length++),n};function M(t,e,n){return(new _).mulp(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):n<63?y(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,h=0;h<n.length-1;h++){var l=o;o=0;for(var c=67108863&r,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var i=h-f,m=(0|t.words[i])*(0|e.words[f]),v=67108863&m;c=67108863&(v=v+c|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[h]=c,r=l,l=o}return 0!==r?n.words[h]=r:n.length--,n.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},_.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},_.prototype.permute=function(t,e,n,r,o,h){for(var i=0;i<h;i++)r[i]=e[t[i]],o[i]=n[t[i]]},_.prototype.transform=function(t,e,n,r,o,h){this.permute(h,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,c=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=c,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],M=n[p+v+s],_=r[p+v+s],k=f*M-m*_;_=f*_+m*M,M=k,n[p+v]=y+M,r[p+v]=w+_,n[p+v+s]=y-M,r[p+v+s]=w-_,v!==l&&(k=c*f-d*m,m=c*m+d*f,f=k)}},_.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},_.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},_.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},_.prototype.convert13b=function(t,e,n,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],n[2*i]=8191&h,h>>>=13,n[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===h),r(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),h=this.stub(r),l=new Array(r),c=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,f,r),this.transform(l,h,c,d,r,o),this.transform(f,h,m,v,r,o);for(var i=0;i<r;i++){var w=c[i]*m[i]-d[i]*v[i];d[i]=c[i]*v[i]+d[i]*m[i],c[i]=w}return this.conjugate(c,d,r),this.transform(c,d,y,h,r,o),this.conjugate(y,h,r),this.normalize13b(y,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=(t.words[r]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n},h.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&n,l=(0|this.words[i])-h<<e;this.words[i]=l|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var c=0;for(i=this.length-1;i>=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-h|d>>>h,c=d&mask}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,n){var i,o,h=t.length+n;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var c=(0|t.words[i])*e;l=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var c=o-1;c>=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q.strip(),a.strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),h=n.cmp(r);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){r(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)}
vendor: 7,214 bytes, line 2
2,h.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new h(1),o=new h(0),l=new h(0),c=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var d=e.clone(),f=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(l.isOdd()||c.isOdd())&&(l.iadd(d),c.isub(f)),l.iushrn(1),c.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(c)):(e.isub(t),l.isub(n),c.isub(o))}return{a:l,b:c,gcd:e.iushln(g)}},h.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),n=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e))}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new A(t)},h.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};function S(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}S.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},S.prototype.split=function(input,t){input.iushrn(this.n,0,t)},S.prototype.imulK=function(t){return t.imul(this.k)},o(x,S),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 5,433 bytes, line 2
2put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|e>>>22,e=n}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(C,S),o(T,S),o(E,S),E.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new T;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return k[t]=e,e},A.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},A.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},A.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},A.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},A.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},A.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},A.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},A.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},A.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},A.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},A.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},A.prototype.isqr=function(a){return this.imul(a,a.clone())},A.prototype.sqr=function(a){return this.mul(a,a)},A.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new h(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new h(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new h(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},A.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],d=l-1;d>=0;d--){var f=c>>d&1;n!==e[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0}l=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,A),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(35)(t))},,function(t,e,n){var r=n(76),o=n(1);function h(t,body){this.name=t,this.body=body,this.decoders={},this.encoders={}}e.define=function(t,body){return new h(t,body)},h.prototype._createNamed=function(base){var t;try{t=n(385).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(e){t=function(t){this._initNamed(t)}}return o(t,base),t.prototype._initNamed=function(t){base.call(this,t)},new t(this)},h.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r.decoders[t])),this.decoders[t]},h.prototype.decode=function(data,t,e){return this._getDecoder(t).decode(data,e)},h.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(r.encoders[t])),this.encoders[t]},h.prototype.encode=function(data,t,e){return this._getEncoder(t).encode(d
vendor: 10,749 bytes, line 2
2ata,e)}},function(module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)e.push(n);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var i=0;i<t.length;i++)e(t[i],i,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,n){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(t){return function(t,e,n){t[e]=n}}}(),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(code){if(!(this instanceof Script))return new Script(code);this.code=code};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var iframe=document.createElement("iframe");iframe.style||(iframe.style={}),iframe.style.display="none",document.body.appendChild(iframe);var e=iframe.contentWindow,n=e.eval,r=e.execScript;!n&&r&&(r.call(e,"null"),n=e.eval),forEach(Object_keys(t),(function(n){e[n]=t[n]})),forEach(globals,(function(n){t[n]&&(e[n]=t[n])}));var o=Object_keys(e),h=n.call(e,this.code);return forEach(Object_keys(e),(function(n){(n in t||-1===indexOf(o,n))&&(t[n]=e[n])})),forEach(globals,(function(n){n in t||defineProp(t,n,e[n])})),document.body.removeChild(iframe),h},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),n=this.runInContext(e);return t&&forEach(Object_keys(e),(function(n){t[n]=e[n]})),n},forEach(Object_keys(Script.prototype),(function(t){exports[t]=Script[t]=function(code){var s=Script(code);return s[t].apply(s,[].slice.call(arguments,1))}})),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(code){return exports.Script(code)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),(function(n){e[n]=t[n]})),e}},function(t,e,n){var r=n(1);function o(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function h(path,t){this.path=path,this.rethrow(t)}e.Reporter=o,o.prototype.isError=function(t){return t instanceof h},o.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},o.prototype.restore=function(data){var t=this._reporterState;t.obj=data.obj,t.path=t.path.slice(0,data.pathLen)},o.prototype.enterKey=function(t){return this._reporterState.path.push(t)},o.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},o.prototype.leaveKey=function(t,e,n){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},o.prototype.leaveObject=function(t){var e=this._reporterState,n=e.obj;return e.obj=t,n},o.prototype.error=function(t){var e,n=this._reporterState,r=t instanceof h;if(e=r?t:new h(n.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},o.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(h,Error),h.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,h),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,n){var r=n(77).Reporter,o=n(77).EncoderBuffer,h=n(77).DecoderBuffer,l=n(19),c=["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"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c);function f(t,e){var n={};this._baseState=n,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=f;var m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){var t=this._baseState,e={};m.forEach((function(n){e[n]=t[n]}));var n=new this.constructor(e.parent);return n._baseState=e,n},f.prototype._wrap=function(){var t=this._baseState;d.forEach((function(e){this[e]=function(){var n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},f.prototype._init=function(body){var t=this._baseState;l(null===t.parent),body.call(this),t.children=t.children.filter((function(t){return t._baseState.parent===this}),this),l.equal(t.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(t){var e=this._baseState,n=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==n.length&&(l(null===e.children),e.children=n,n.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(l(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(n){n==(0|n)&&(n|=0);var r=t[n];e[r]=n})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){f.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),c.forEach((function(t){f.prototype[t]=function(){var e=this._baseState,n=Array.prototype.slice.call(arguments);return l(null===e.tag),e.tag=t,this._useArgs(n),this}})),f.prototype.use=function(t){l(t);var e=this._baseState;return l(null===e.use),e.use=t,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(t){var e=this._baseState;return l(null===e.default),e.default=t,e.optional=!0,this},f.prototype.explicit=function(t){var e=this._baseState;return l(null===e.explicit&&null===e.implicit),e.explicit=t,this},f.prototype.implicit=function(t){var e=this._baseState;return l(null===e.explicit&&null===e.implicit),e.implicit=t,this},f.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},f.prototype.key=function(t){var e=this._baseState;return l(null===e.key),e.key=t,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(t){var e=this._baseState;return l(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},f.prototype.contains=function(t){var e=this._baseState;return l(null===e.use),e.contains=t,this},f.prototype._decode=function(input,t){var e=this._baseState;if(null===e.parent)return input.wrapResult(e.children[0]._decode(input,t));var n,r=e.default,o=!0,l=null;if(null!==e.key&&(l=input.enterKey(e.key)),e.optional){var c=null;if(null!==e.explicit?c=e.explicit:null!==e.implicit?c=e.implicit:null!==e.tag&&(c=e.tag),null!==c||e.any){if(o=this._peekTag(input,c,e.any),input.isError(o))return o}else{var d=input.save();try{null===e.choice?this._decodeGeneric(e.tag,input,t):this._decodeChoice(input,t),o=!0}catch(t){o=!1}input.restore(d)}}if(e.obj&&o&&(n=input.enterObject()),o){if(null!==e.explicit){var f=this._decodeTag(input,e.explicit);if(input.isError(f))return f;input=f}var m=input.offset;if(null===e.use&&null===e.choice){if(e.any)d=input.save();var body=this._decodeTag(input,null!==e.implicit?e.implicit:e.tag,e.any);if(input.isError(body))return body;e.any?r=input.raw(d):input=body}if(t&&t.track&&null!==e.tag&&t.track(input.path(),m,input.length,"tagged"),t&&t.track&&null!==e.tag&&t.track(input.path(),input.offset,input.length,"content"),r=e.any?r:null===e.choice?this._decodeGeneric(e.tag,input,t):this._decodeChoice(input,t),input.isError(r))return r;if(e.any||null!==e.choice||null===e.children||e.children.forEach((function(e){e._decode(input,t)})),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){var data=new h(r);r=this._getUse(e.contains,input._reporterState.obj)._decode(data,t)}}return e.obj&&o&&(r=input.leaveObject(n)),null===e.key||null===r&&!0!==o?null!==l&&input.exitKey(l):input.leaveKey(l,e.key,r),r},f.prototype._decodeGeneric=function(t,input,e){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(input,t,n.args[0],e):/str$/.test(t)?this._decodeStr(input,t,e):"objid"===t&&n.args?this._decodeObjid(input,n.args[0],n.args[1],e):"objid"===t?this._decodeObjid(input,null,null,e):"gentime"===t||"utctime"===t?this._decodeTime(input,t,e):"null_"===t?this._decodeNull(input,e):"bool"===t?this._decodeBool(input,e):"objDesc"===t?this._decodeStr(input,t,e):"int"===t||"enum"===t?this._decodeInt(input,n.args&&n.args[0],e):null!==n.use?this._getUse(n.use,input._reporterState.obj)._decode(input,e):input.error("unknown tag: "+t)},f.prototype._getUse=function(t,e){var n=this._baseState;return n.useDecoder=this._use(t,e),l(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},f.prototype._decodeChoice=function(input,t){var e=this._baseState,n=null,r=!1;return Object.keys(e.choice).some((function(o){var h=input.save(),l=e.choice[o];try{var c=l._decode(input,t);if(input.isError(c))return!1;n={type:o,value:c},r=!0}catch(t){return input.restore(h),!1}return!0}),this),r?n:input.error("Choice not matched")},f.prototype._createEncoderBuffer=function(data){return new o(data,this.reporter)},f.prototype._encode=function(data,t,e){var n=this._baseState;if(null===n.default||n.default!==data){var r=this._encodeValue(data,t,e);if(void 0!==r&&!this._skipDefault(r,t,e))return r}},f.prototype._encodeValue=function(data,t,e){var n=this._baseState;
vendor: 4,748 bytes, line 2
2if(null===n.parent)return n.children[0]._encode(data,t||new r);var o=null;if(this.reporter=t,n.optional&&void 0===data){if(null===n.default)return;data=n.default}var content=null,h=!1;if(n.any)o=this._createEncoderBuffer(data);else if(n.choice)o=this._encodeChoice(data,t);else if(n.contains)content=this._getUse(n.contains,e)._encode(data,t),h=!0;else if(n.children)content=n.children.map((function(e){if("null_"===e._baseState.tag)return e._encode(null,t,data);if(null===e._baseState.key)return t.error("Child should have a key");var n=t.enterKey(e._baseState.key);if("object"!=typeof data)return t.error("Child expected, but input is not object");var r=e._encode(data[e._baseState.key],t,data);return t.leaveKey(n),r}),this).filter((function(t){return t})),content=this._createEncoderBuffer(content);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(data))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,content=this._createEncoderBuffer(data.map((function(e){var n=this._baseState;return this._getUse(n.args[0],data)._encode(e,t)}),l))}else null!==n.use?o=this._getUse(n.use,e)._encode(data,t):(content=this._encodePrimitive(n.tag,data),h=!0);if(!n.any&&null===n.choice){var c=null!==n.implicit?n.implicit:n.tag,d=null===n.implicit?"universal":"context";null===c?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(o=this._encodeComposite(c,h,d,content))}return null!==n.explicit&&(o=this._encodeComposite(n.explicit,!1,"context",o)),o},f.prototype._encodeChoice=function(data,t){var e=this._baseState,n=e.choice[data.type];return n||l(!1,data.type+" not found in "+JSON.stringify(Object.keys(e.choice))),n._encode(data.value,t)},f.prototype._encodePrimitive=function(t,data){var e=this._baseState;if(/str$/.test(t))return this._encodeStr(data,t);if("objid"===t&&e.args)return this._encodeObjid(data,e.reverseArgs[0],e.args[1]);if("objid"===t)return this._encodeObjid(data,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(data,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(data,e.args&&e.reverseArgs[0]);if("bool"===t)return this._encodeBool(data);if("objDesc"===t)return this._encodeStr(data,t);throw new Error("Unsupported tag: "+t)},f.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},f.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,n){var r=n(218);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r._reverse(e.tagClass),e.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"},e.tagByName=r._reverse(e.tag)},function(t,e,n){var r=e;r.der=n(219),r.pem=n(390)},function(t,e,n){var r=n(1),o=n(3).Buffer,h=n(219);function l(t){h.call(this,t),this.enc="pem"}r(l,h),t.exports=l,l.prototype.decode=function(data,t){for(var e=data.toString().split(/[\r\n]+/g),label=t.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/,r=-1,l=-1,i=0;i<e.length;i++){var c=e[i].match(n);if(null!==c&&c[2]===label){if(-1!==r){if("END"!==c[1])break;l=i;break}if("BEGIN"!==c[1])break;r=i}}if(-1===r||-1===l)throw new Error("PEM section not found for: "+label);var d=e.slice(r+1,l).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var input=new o(d,"base64");return h.prototype.decode.call(this,input,t)}},function(t,e,n){var r=e;r.der=n(220),r.pem=n(392)},function(t,e,n){var r=n(1),o=n(220);function h(t){o.call(this,t),this.enc="pem"}r(h,o),t.exports=h,h.prototype.encode=function(data,t){for(var p=o.prototype.encode.call(this,data).toString("base64"),e=["-----BEGIN "+t.label+"-----"],i=0;i<p.length;i+=64)e.push(p.slice(i,i+64));return e.push("-----END "+t.label+"-----"),e.join("\n")}},function(t,e,n){"use strict";var r=n(76),o=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),h=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),l=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),c=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(l),this.key("subjectPublicKey").bitstr())})),d=r.define("RelativeDistinguishedName",(function(){this.setof(h)})),f=r.define("RDNSequence",(function(){this.seqof(d)}
vendor: 5,575 bytes, line 2
2)),m=r.define("Name",(function(){this.choice({rdnSequence:this.use(f)})})),v=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),y=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),w=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(l),this.key("issuer").use(m),this.key("validity").use(v),this.key("subject").use(m),this.key("subjectPublicKeyInfo").use(c),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(y).optional())})),M=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(l),this.key("signatureValue").bitstr())}));t.exports=M},function(t){t.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"}')},function(t,e,n){var r=/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,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,h=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,l=n(96),c=n(130),d=n(4).Buffer;t.exports=function(t,e){var n,f=t.toString(),m=f.match(r);if(m){var v="aes"+m[1],y=d.from(m[2],"hex"),w=d.from(m[3].replace(/[\r\n]/g,""),"base64"),M=l(e,y.slice(0,8),parseInt(m[1],10)).key,_=[],k=c.createDecipheriv(v,M,y);_.push(k.update(w)),_.push(k.final()),n=d.concat(_)}else{var S=f.match(h);n=new d(S[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(o)[1],data:n}}},function(t,e,n){var r=n(3).Buffer,o=n(216),h=n(135).ec,l=n(98),c=n(221);function d(b,q){if(b.cmpn(0)<=0)throw new Error("invalid sig");if(b.cmp(q)>=q)throw new Error("invalid sig")}t.exports=function(t,e,n,f,m){var v=l(n);if("ec"===v.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(t,e,n){var r=c[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var o=new h(r),l=n.data.subjectPrivateKey.data;return o.verify(e,t,l)}(t,e,v)}if("dsa"===v.type){if("dsa"!==f)throw new Error("wrong public key type");return function(t,e,n){var p=n.data.p,q=n.data.q,g=n.data.g,r=n.data.pub_key,h=l.signature.decode(t,"der"),s=h.s,c=h.r;d(s,q),d(c,q);var f=o.mont(p),m=s.invm(q);return 0===g.toRed(f).redPow(new o(e).mul(m).mod(q)).fromRed().mul(r.toRed(f).redPow(c.mul(m).mod(q)).fromRed()).mod(p).mod(q).cmp(c)}(t,e,v)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");e=r.concat([m,e]);for(var y=v.modulus.byteLength(),w=[1],M=0;e.length+w.length+2<y;)w.push(255),M++;w.push(0);for(var i=-1;++i<e.length;)w.push(e[i]);w=r.from(w);var _=o.mont(v.modulus);t=(t=new o(t).toRed(_)).redPow(new o(v.publicExponent)),t=r.from(t.fromRed().toArray());var k=M<8?1:0;for(y=Math.min(t.length,w.length),t.length!==w.length&&(k=1),i=-1;++i<y;)k|=t[i]^w[i];return 0===k}},function(t,e,n){(function(e){var r=n(135),o=n(398);t.exports=function(t){return new l(t)};var h={secp256k1:{name:"secp256k1",byteLength:32},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 l(t){this.curveType=h[t],this.curveType||(this.curveType={name:t}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function c(t,n,r){Array.isArray(t)||(t=t.toArray());var o=new e(t);if(r&&o.length<r){var h=new e(r-o.length);h.fill(0),o=e.concat([h,o])}return n?o.toString(n):o}h.p224=h.secp224r1,h.p256=h.secp256r1=h.prime256v1,h.p192=h.secp192r1=h.prime192v1,h.p384=h.secp384r1,h.p521=h.secp521r1,l.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},l.prototype.computeSecret=function(t,n,r){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),c(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},l.prototype.getPublicKey=function(t,e){var n=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(n[n.length-1]%2?n[0]=7:n[0]=6),c(n,t)},l.prototype.getPrivateKey=function(t){return c(this.keys.getPrivate(),t)},l.prototype.setPublicKey=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.keys._importPublic(t),this},l.prototype.setPrivateKey=function(t,n){n=n||"utf8",e.isBuffer(t)||(t=new e(t,n));var r=new o(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(3).Buffer)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 2
2=10),this._init(t||0,base||10,e||"be"))}var l;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{l=n(399).Buffer}catch(t){}function c(t,e,n){for(var r=0,o=Math.min(t.length,n),i=e;i<o;i++){var h=t.charCodeAt(i)-48;r<<=4,r|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return r}function d(t,e,n,r){for(var o=0,h=Math.min(t.length,n),i=e;i<h;i++){var l=t.charCodeAt(i)-48;o*=r,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(t,n):this._parseBase(t,base,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,h=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<h&67108863,this.words[n+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,n++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=t.length-6,n=0;i>=e;i-=6)r=c(t,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=c(t,e,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,h=o%n,l=Math.min(o,o-h)+e,c=0,i=e;i<l;i+=n)c=d(t,i,i+n,base),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==h){var f=1;for(c=d(t,i,t.length,base),i=0;i<h;i++)f*=base;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","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"],m=[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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 27,030 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,l=o/67108864|0;n.words[0]=h;for(var c=1;c<r;c++){for(var d=l>>>26,f=67108863&l,m=Math.min(c,e.length-1),v=Math.max(0,c-t.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|t.words[i])*(b=0|e.words[v])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,l=0|d}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<n|o)).toString(16);e=0!==(o=h>>>24-n&16777215)||i!==this.length-1?f[6-l.length]+l+e:l+e,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var c=m[base],d=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(d).toString(base);e=(y=y.idivn(d)).isZero()?w+e:f[c-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return r(void 0!==l),this.toArrayLike(l,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),h=n||Math.max(1,o);r(o<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===e,c=new t(h),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[i]=b;for(;i<h;i++)c[i]=0}else{for(i=0;i<h-o;i++)c[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[h-i-1]=b}return c},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,n){var r,o,h,a=t.words,b=e.words,l=n.words,c=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,k=M>>>13,S=0|a[3],x=8191&S,C=S>>>13,T=0|a[4],E=8191&T,A=T>>>13,I=0|a[5],D=8191&I,B=I>>>13,R=0|a[6],P=8191&R,F=R>>>13,O=0|a[7],N=8191&O,L=O>>>13,z=0|a[8],j=8191&z,U=z>>>13,$=0|a[9],V=8191&$,H=$>>>13,W=0|b[0],X=8191&W,Z=W>>>13,G=0|b[1],Y=8191&G,K=G>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,at=0|b[4],st=8191&at,ot=at>>>13,ut=0|b[5],ht=8191&ut,lt=ut>>>13,ct=0|b[6],ft=8191&ct,pt=ct>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,bt=0|b[8],yt=8191&bt,wt=bt>>>13,Mt=0|b[9],_t=8191&Mt,kt=Mt>>>13;n.negative=t.negative^e.negative,n.length=19;var St=(c+(r=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,Z))+Math.imul(m,X)|0))<<13)|0;c=((h=Math.imul(m,Z))+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(y,X),o=(o=Math.imul(y,Z))+Math.imul(w,X)|0,h=Math.imul(w,Z);var xt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(m,Y)|0))<<13)|0;c=((h=h+Math.imul(m,K)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(_,X),o=(o=Math.imul(_,Z))+Math.imul(k,X)|0,h=Math.imul(k,Z),r=r+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,K)|0;var Ct=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(m,Q)|0))<<13)|0;c=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(x,X),o=(o=Math.imul(x,Z))+Math.imul(C,X)|0,h=Math.imul(C,Z),r=r+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,K)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var Tt=(c+(r=r+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(m,it)|0))<<13)|0;c=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(E,X),o=(o=Math.imul(E,Z))+Math.imul(A,X)|0,h=Math.imul(A,Z),r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,Y)|0,h=h+Math.imul(C,K)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(k,Q)|0,h=h+Math.imul(k,tt)|0,r=r+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Et=(c+(r=r+Math.imul(f,st)|0)|0)+((8191&(o=(o=o+Math.imul(f,ot)|0)+Math.imul(m,st)|0))<<13)|0;c=((h=h+Math.imul(m,ot)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),o=(o=Math.imul(D,Z))+Math.imul(B,X)|0,h=Math.imul(B,Z),r=r+Math.imul(E,Y)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(A,Y)|0,h=h+Math.imul(A,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(C,Q)|0,h=h+Math.imul(C,tt)|0,r=r+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,r=r+Math.imul(y,st)|0,o=(o=o+Math.imul(y,ot)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,ot)|0;var At=(c+(r=r+Math.imul(f,ht)|0)|0)+((8191&(o=(o=o+Math.imul(f,lt)|0)+Math.imul(m,ht)|0))<<13)|0;c=((h=h+Math.imul(m,lt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(P,X),o=(o=Math.imul(P,Z))+Math.imul(F,X)|0,h=Math.imul(F,Z),r=r+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,K)|0)+Math.imul(B,Y)|0,h=h+Math.imul(B,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,h=h+Math.imul(A,tt)|0,r=r+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(C,it)|0,h=h+Math.imul(C,nt)|0,r=r+Math.imul(_,st)|0,o=(o=o+Math.imul(_,ot)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,ot)|0,r=r+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,lt)|0;var It=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,pt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,X),o=(o=Math.imul(N,Z))+Math.imul(L,X)|0,h=Math.imul(L,Z),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,K)|0,r=r+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,h=h+Math.imul(B,tt)|0,r=r+Math.imul(E,it)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(A,it)|0,h=h+Math.imul(A,nt)|0,r=r+Math.imul(x,st)|0,o=(o=o+Math.imul(x,ot)|0)+Math.imul(C,st)|0,h=h+Math.imul(C,ot)|0,r=r+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,lt)|0,r=r+Math.imul(y,ft)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ft)|0,h=h+Math.imul(w,pt)|0;var Dt=(c+(r=r+Math.imul(f,gt)|0)|0)+((8191&(o=(o=o+Math.imul(f,vt)|0)+Math.imul(m,gt)|0))<<13)|0;c=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(j,X),o=(o=Math.imul(j,Z))+Math.imul(U,X)|0,h=Math.imul(U,Z),r=r+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(L,Y)|0,h=h+Math.imul(L,K)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(F,Q)|0,h=h+Math.imul(F,tt)|0,r=r+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(B,it)|0,h=h+Math.imul(B,nt)|0,r=r+Math.imul(E,st)|0,o=(o=o+Math.imul(E,ot)|0)+Math.imul(A,st)|0,h=h+Math.imul(A,ot)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(C,ht)|0,h=h+Math.imul(C,lt)|0,r=r+Math.imul(_,ft)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(k,ft)|0,h=h+Math.imul(k,pt)|0,r=r+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Bt=(c+(r=r+Math.imul(f,yt)|0)|0)+((8191&(o=(o=o+Math.imul(f,wt)|0)+Math.imul(m,yt)|0))<<13)|0;c=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(V,X),o=(o=Math.imul(V,Z))+Math.imul(H,X)|0,h=Math.imul(H,Z),r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,r=r+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,r=r+Math.imul(D,st)|0,o=(o=o+Math.imul(D,ot)|0)+Math.imul(B,st)|0,h=h+Math.imul(B,ot)|0,r=r+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(A,ht)|0,h=h+Math.imul(A,lt)|0,r=r+Math.imul(x,ft)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(C,ft)|0,h=h+Math.imul(C,pt)|0,r=r+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,r=r+Math.imul(y,yt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,yt)|0,h=h+Math.imul(w,wt)|0;var Rt=(c+(r=r+Math.imul(f,_t)|0)|0)+((8191&(o=(o=o+Math.imul(f,kt)|0)+Math.imul(m,_t)|0))<<13)|0;c=((h=h+Math.imul(m,kt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(V,Y),o=(o=Math.imul(V,K))+Math.imul(H,Y)|0,h=Math.imul(H,K),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,Q)|0,h=h+Math.imul(U,tt)|0,r=r+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,r=r+Math.imul(P,st)|0,o=(o=o+Math.imul(P,ot)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,ot)|0,r=r+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,lt)|0)+Math.imul(B,ht)|0,h=h+Math.imul(B,lt)|0,r=r+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(A,ft)|0,h=h+Math.imul(A,pt)|0,r=r+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(C,gt)|0,h=h+Math.imul(C,vt)|0,r=r+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(k,yt)|0,h=h+Math.imul(k,wt)|0;var Pt=(c+(r=r+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,kt)|0)+Math.imul(w,_t)|0))<<13)|0;c=((h=h+Math.imul(w,kt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(V,Q),o=(o=Math.imul(V,tt))+Math.imul(H,Q)|0,h=Math.imul(H,tt),r=r+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,r=r+Math.imul(N,st)|0,o=(o=o+Math.imul(N,ot)|0)+Math.imul(L,st)|0,h=h+Math.imul(L,ot)|0,r=r+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,lt)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,lt)|0,r=r+Math.imul(D,ft)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(B,ft)|0,h=h+Math.imul(B,pt)|0,r=r+Math.imul(E,gt)|0,o=(o=o+Math.imul(E,vt)|0)+Math.imul(A,gt)|0,h=h+Math.imul(A,vt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(C,yt)|0,h=h+Math.imul(C,wt)|0;var Ft=(c+(r=r+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,kt)|0)+Math.imul(k,_t)|0))<<13)|0;c=((h=h+Math.imul(k,kt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(H,it)|0,h=Math.imul(H,nt),r=r+Math.imul(j,st)|0,o=(o=o+Math.imul(j,ot)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,ot)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(F,ft)|0,h=h+Math.imul(F,pt)|0,r=r+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(B,gt)|0,h=h+Math.imul(B,vt)|0,r=r+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(A,yt)|0,h=h+Math.imul(A,wt)|0;var Ot=(c+(r=r+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,kt)|0)+Math.imul(C,_t)|0))<<13)|0;c=((h=h+Math.imul(C,kt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(V,st),o=(o=Math.imul(V,ot))+Math.imul(H,st)|0,h=Math.imul(H,ot),r=r+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,lt)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,lt)|0,r=r+Math.imul(N,ft)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(L,ft)|0,h=h+Math.imul(L,pt)|0,r=r+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,r=r+Math.imul(D,yt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(B,yt)|0,h=h+Math.imul(B,wt)|0;var Nt=(c+(r=r+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,kt)|0)+Math.imul(A,_t)|0))<<13)|0;c=((h=h+Math.imul(A,kt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(V,ht),o=(o=Math.imul(V,lt))+Math.imul(H,ht)|0,h=Math.imul(H,lt),r=r+Math.imul(j,ft)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,ft)|0,h=h+Math.imul(U,pt)|0,r=r+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,r=r+Math.imul(P,yt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(F,yt)|0,h=h+Math.imul(F,wt)|0;var Lt=(c+(r=r+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,kt)|0)+Math.imul(B,_t)|0))<<13)|0;c=((h=h+Math.imul(B,kt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(V,ft),o=(o=Math.imul(V,pt))+Math.imul(H,ft)|0,h=Math.imul(H,pt),r=r+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(L,yt)|0,h=h+Math.imul(L,wt)|0;var zt=(c+(r=r+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,kt)|0)+Math.imul(F,_t)|0))<<13)|0;c=((h=h+Math.imul(F,kt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,r=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(H,gt)|0,h=Math.imul(H,vt),r=r+Math.imul(j,yt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,yt)|0,h=h+Math.imul(U,wt)|0;var jt=(c+(r=r+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,kt)|0)+Math.imul(L,_t)|0))<<13)|0;c=((h=h+Math.imul(L,kt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(V,yt),o=(o=Math.imul(V,wt))+Math.imul(H,yt)|0,h=Math.imul(H,wt);var Ut=(c+(r=r+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,kt)|0)+Math.imul(U,_t)|0))<<13)|0;c=((h=h+Math.imul(U,kt)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var $t=(c+(r=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,kt))+Math.imul(H,_t)|0))<<13)|0;return c=((h=Math.imul(H,kt))+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,l[0]=St,l[1]=xt,l[2]=Ct,l[3]=Tt,l[4]=Et,l[5]=At,l[6]=It,l[7]=Dt,l[8]=Bt,l[9]=Rt,l[10]=Pt,l[11]=Ft,l[12]=Ot,l[13]=Nt,l[14]=Lt,l[15]=zt,l[16]=jt,l[17]=Ut,l[18]=$t,0!==c&&(l[19]=c,n.length++),n};function M(t,e,n){return(new _).mulp(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):n<63?y(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,h=0;h<n.length-1;h++){var l=o;o=0;for(var c=67108863&r,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var i=h-f,m=(0|t.words[i])*(0|e.words[f]),v=67108863&m;c=67108863&(v=v+c|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[h]=c,r=l,l=o}return 0!==r?n.words[h]=r:n.length--,n.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},_.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},_.prototype.permute=function(t,e,n,r,o,h){for(var i=0;i<h;i++)r[i]=e[t[i]],o[i]=n[t[i]]},_.prototype.transform=function(t,e,n,r,o,h){this.permute(h,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,c=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=c,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],M=n[p+v+s],_=r[p+v+s],k=f*M-m*_;_=f*_+m*M,M=k,n[p+v]=y+M,r[p+v]=w+_,n[p+v+s]=y-M,r[p+v+s]=w-_,v!==l&&(k=c*f-d*m,m=c*m+d*f,f=k)}},_.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},_.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},_.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},_.prototype.convert13b=function(t,e,n,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],n[2*i]=8191&h,h>>>=13,n[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===h),r(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),h=this.stub(r),l=new Array(r),c=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,f,r),this.transform(l,h,c,d,r,o),this.transform(f,h,m,v,r,o);for(var i=0;i<r;i++){var w=c[i]*m[i]-d[i]*v[i];d[i]=c[i]*v[i]+d[i]*m[i],c[i]=w}return this.conjugate(c,d,r),this.transform(c,d,y,h,r,o),this.conjugate(y,h,r),this.normalize13b(y,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=(t.words[r]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n},h.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&n,l=(0|this.words[i])-h<<e;this.words[i]=l|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var c=0;for(i=this.length-1;i>=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-h|d>>>h,c=d&mask}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,n){var i,o,h=t.length+n;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var c=(0|t.words[i])*e;l=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var c=o-1;c>=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q.strip(),a.strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),h=n.cmp(r);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){r(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)}
vendor: 7,214 bytes, line 2
2,h.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new h(1),o=new h(0),l=new h(0),c=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var d=e.clone(),f=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(l.isOdd()||c.isOdd())&&(l.iadd(d),c.isub(f)),l.iushrn(1),c.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(c)):(e.isub(t),l.isub(n),c.isub(o))}return{a:l,b:c,gcd:e.iushln(g)}},h.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),n=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e))}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new A(t)},h.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};function S(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}S.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},S.prototype.split=function(input,t){input.iushrn(this.n,0,t)},S.prototype.imulK=function(t){return t.imul(this.k)},o(x,S),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 8,555 bytes, line 2
2put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|e>>>22,e=n}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(C,S),o(T,S),o(E,S),E.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new T;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return k[t]=e,e},A.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},A.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},A.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},A.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},A.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},A.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},A.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},A.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},A.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},A.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},A.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},A.prototype.isqr=function(a){return this.imul(a,a.clone())},A.prototype.sqr=function(a){return this.mul(a,a)},A.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new h(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new h(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new h(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},A.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],d=l-1;d>=0;d--){var f=c>>d&1;n!==e[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0}l=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,A),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(35)(t))},,function(t,e,n){e.publicEncrypt=n(401),e.privateDecrypt=n(403),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},function(t,e,n){var r=n(98),o=n(52),h=n(72),l=n(222),c=n(223),d=n(138),f=n(224),m=n(134),v=n(4).Buffer;t.exports=function(t,e,n){var y;y=t.padding?t.padding:n?1:4;var w,M=r(t);if(4===y)w=function(t,e){var n=t.modulus.byteLength(),r=e.length,f=h("sha1").update(v.alloc(0)).digest(),m=f.length,y=2*m;if(r>n-y-2)throw new Error("message too long");var w=v.alloc(n-r-y-2),M=n-m-1,_=o(m),k=c(v.concat([f,w,v.alloc(1,1),e],M),l(_,M)),S=c(_,l(k,m));return new d(v.concat([v.alloc(1),S,k],n))}(M,e);else if(1===y)w=function(t,e,n){var r,h=e.length,l=t.modulus.byteLength();if(h>l-11)throw new Error("message too long");r=n?v.alloc(l-h-3,255):function(t){var e,n=v.allocUnsafe(t),i=0,r=o(2*t),h=0;for(;i<t;)h===r.length&&(r=o(2*t),h=0),(e=r[h++])&&(n[i++]=e);return n}(l-h-3);return new d(v.concat([v.from([0,n?1:2]),r,v.alloc(1),e],l))}(M,e,n);else{if(3!==y)throw new Error("unknown padding");if((w=new d(e)).cmp(M.modulus)>=0)throw new Error("data too long for modulus")}return n?m(w,M):f(w,M)}},,function(t,e,n){var r=n(98),o=n(222),h=n(223),l=n(138),c=n(134),d=n(72),f=n(224),m=n(4).Buffer;t.exports=function(t,e,n){var v;v=t.padding?t.padding:n?1:4;var y,w=r(t),M=w.modulus.byteLength();if(e.length>M||new l(e).cmp(w.modulus)>=0)throw new Error("decryption error");y=n?f(new l(e),w):c(e,w);var _=m.alloc(M-y.length);if(y=m.concat([_,y],M),4===v)return function(t,e){var n=t.modulus.byteLength(),r=d("sha1").update(m.alloc(0)).digest(),l=r.length;if(0!==e[0])throw new Error("decryption error");var c=e.slice(1,l+1),f=e.slice(l+1),v=h(c,o(f,l)),y=h(f,o(v,n-l-1));if(function(a,b){a=m.from(a),b=m.from(b);var t=0,e=a.length;a.length!==b.length&&(t++,e=Math.min(a.length,b.length));var i=-1;for(;++i<e;)t+=a[i]^b[i];return t}(r,y.slice(0,l)))throw new Error("decryption error");var i=l;for(;0===y[i];)i++;if(1!==y[i++])throw new Error("decryption error");return y.slice(i)}(w,y);if(1===v)return function(t,e,n){var r=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var h=e.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;h.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,y,n);if(3===v)return y;throw new Error("unknown padding")}},function(t,e,n){"use strict";(function(t,r){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var h=n(4),l=(n(52),h.Buffer),c=h.kMaxLength,d=t.crypto||t.msCrypto,f=Math.pow(2,32)-1;function m(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>f||t<0)throw new TypeError("offset must be a uint32");if(t>c||t>e)throw new RangeError("offset out of range")}function v(t,e,n){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>f||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>c)throw new RangeError("buffer too small")}function y(t,e,n,o){var h=t.buffer,l=new Uint8Array(h,e,n);return d.getRandomValues(l),o?void r.nextTick((function(){o(null,t)})):t}d&&d.getRandomValues?(e.randomFill=function(e,n,r,o){if(!(l.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,r=e.length;else if("function"==typeof r)o=r,r=e.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return m(n,e.length),v(r,n,e.length),y(e,n,r,o)},e.randomFillSync=function(e,n,r){void 0===n&&(n=0);if(!(l.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');m(n,e.length),void 0===r&&(r=e.length-n);return v(r,n,e.length),y(e,n,r)}):(e.randomFill=o,e.randomFillSync=o)}).call(this,n(9),n(7))},,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"local",(function(){return r})),n.d(e,"session",(function(){return o}
2));const r={get:t=>localStorage.getItem(t),set:(t,e)=>localStorage.setItem(t,e)},o={get:t=>sessionStorage.getItem(t),set:(t,e)=>sessionStorage.setItem(t,e)}},function(t,e,n){"use strict";function r(t){let e;return document.cookie.split(";").some(n=>{const r=n.replace(/^\s+|\s+$/g,"").split("="),o=r[0]===t;return o&&(e=r),o}),unescape(e)}function o(t,e,n=24){const r=n>0?(new Date).getTime()+60*n*60*1e3:"";return document.cookie=t+"="+escape(e)+"; expires="+r.toUTCString()+"; path=/"}n.r(e),n.d(e,"localStorage",(function(){return c})),n.d(e,"sessionStorage",(function(){return d}));const h=()=>(window.name&&(window.name=(new Date).getTime()),"sessionStorage"+window.name);let l={localStorage:{},sessionStorage:{}};const c={get:t=>{const e=r("localStorage");return o("localStorage","",0),e[t]},set:(t,e)=>l.localStorage[t]=e},d={get:t=>{const e=r(h);return o(h,"",0),e[t]},set:(t,e)=>l.sessionStorage[t]=e};window.addEventListener("beforeunload",(function(t){l.localStorage&&o("localStorage",l.localStorage),l.sessionStorage&&o(h,l.sessionStorage)}))},function(t,e,n){var r;!function(n){var o,h,l="hasOwnProperty",c=/[\.\/]/,d=/\s*,\s*/,f=function(a,b){return a-b},m={n:{}},v=function(){for(var i=0,t=this.length;i<t;i++)if(void 0!==this[i])return this[i]},y=function(){for(var i=this.length;--i;)if(void 0!==this[i])return this[i]},w=Object.prototype.toString,M=String,_=Array.isArray||function(t){return t instanceof Array||"[object Array]"==w.call(t)},k=function(t,e){var n,r=h,l=Array.prototype.slice.call(arguments,2),c=k.listeners(t),d=0,m=[],w={},M=[],_=o;M.firstDefined=v,M.lastDefined=y,o=t,h=0;for(var i=0,S=c.length;i<S;i++)"zIndex"in c[i]&&(m.push(c[i].zIndex),c[i].zIndex<0&&(w[c[i].zIndex]=c[i]));for(m.sort(f);m[d]<0;)if(n=w[m[d++]],M.push(n.apply(e,l)),h)return h=r,M;for(i=0;i<S;i++)if("zIndex"in(n=c[i]))if(n.zIndex==m[d]){if(M.push(n.apply(e,l)),h)break;do{if((n=w[m[++d]])&&M.push(n.apply(e,l)),h)break}while(n)}else w[n.zIndex]=n;else if(M.push(n.apply(e,l)),h)break;return h=r,o=_,M};k._events=m,k.listeners=function(t){var e,n,r,i,o,h,l,d,f=_(t)?t:t.split(c),v=m,y=[v],w=[];for(i=0,o=f.length;i<o;i++){for(d=[],h=0,l=y.length;h<l;h++)for(n=[(v=y[h].n)[f[i]],v["*"]],r=2;r--;)(e=n[r])&&(d.push(e),w=w.concat(e.f||[]));y=d}return w},k.separator=function(t){t?(t="["+(t=M(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",c=new RegExp(t)):c=/[\.\/]/},k.on=function(t,e){if("function"!=typeof e)return function(){};for(var n=_(t)?_(t[0])?t:[t]:M(t).split(d),i=0,r=n.length;i<r;i++)!function(t){for(var n,r=_(t)?t:M(t).split(c),o=m,i=0,h=r.length;i<h;i++)o=(o=o.n).hasOwnProperty(r[i])&&o[r[i]]||(o[r[i]]={n:{}});for(o.f=o.f||[],i=0,h=o.f.length;i<h;i++)if(o.f[i]==e){n=!0;break}!n&&o.f.push(e)}(n[i]);return function(t){+t==+t&&(e.zIndex=+t)}},k.f=function(t){var e=[].slice.call(arguments,1);return function(){k.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},k.stop=function(){h=1},k.nt=function(t){var e=_(o)?o.join("."):o;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},k.nts=function(){return _(o)?o:o.split(c)},k.off=k.unbind=function(t,e){if(t){var n=_(t)?_(t[0])?t:[t]:M(t).split(d);if(n.length>1)for(var i=0,r=n.length;i<r;i++)k.off(n[i],e);else{n=_(t)?t:M(t).split(c);var o,h,f,v,y,w=[m],S=[];for(i=0,r=n.length;i<r;i++)for(v=0;v<w.length;v+=f.length-2){if(f=[v,1],o=w[v].n,"*"!=n[i])o[n[i]]&&(f.push(o[n[i]]),S.unshift({n:o,name:n[i]}));else for(h in o)o[l](h)&&(f.push(o[h]),S.unshift({n:o,name:h}));w.splice.apply(w,f)}for(i=0,r=w.length;i<r;i++)for(o=w[i];o.n;){if(e){if(o.f){for(v=0,y=o.f.length;v<y;v++)if(o.f[v]==e){o.f.splice(v,1);break}!o.f.length&&delete o.f}for(h in o.n)if(o.n[l](h)&&o.n[h].f){var x=o.n[h].f;for(v=0,y=x.length;v<y;v++)if(x[v]==e){x.splice(v,1);break}!x.length&&delete o.n[h].f}}else for(h in delete o.f,o.n)o.n[l](h)&&o.n[h].f&&delete o.n[h].f;o=o.n}t:for(i=0,r=S.length;i<r;i++){for(h in(o=S[i]).n[o.name].f)continue t;for(h in o.n[o.name].n)continue t;delete o.n[o.name]}}}else k._events=m={n:{}}},k.once=function(t,e){var n=function(){return k.off(t,n),e.apply(this,arguments)};return k.on(t,n)},k.version="0.5.4",k.toString=function(){return"You are running Eve 0.5.4"},n.eve=k,t.exports?t.exports=k:void 0===(r=function(){return k}.apply(e,[]))||(t.exports=r)}("undefined"!=typeof window?window:this)},function(t,e,n){(function(r){e.log=function(...t){return"object"==typeof console&&console.log&&console.log(...t)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))}),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;
2if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n(426)(e);const{formatters:o}=t.exports;o.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(7))},function(t,e,n){t.exports=function(t){function e(t){let e=0;for(let i=0;i<t.length;i++)e=(e<<5)-e+t.charCodeAt(i),e|=0;return r.colors[Math.abs(e)%r.colors.length]}function r(t){let n;function l(...t){if(!l.enabled)return;const e=l,o=Number(new Date),h=o-(n||o);e.diff=h,e.prev=n,e.curr=o,n=o,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return n;c++;const h=r.formatters[o];if("function"==typeof h){const r=t[c];n=h.call(e,r),t.splice(c,1),c--}return n}),r.formatArgs.call(e,t),(e.log||r.log).apply(e,t)}return l.namespace=t,l.enabled=r.enabled(t),l.useColors=r.useColors(),l.color=e(t),l.destroy=o,l.extend=h,"function"==typeof r.init&&r.init(l),r.instances.push(l),l}function o(){const t=r.instances.indexOf(this);return-1!==t&&(r.instances.splice(t,1),!0)}function h(t,e){const n=r(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function l(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},r.disable=function(){const t=[...r.names.map(l),...r.skips.map(l).map(t=>"-"+t)].join(",");return r.enable(""),t},r.enable=function(t){let i;r.save(t),r.names=[],r.skips=[];const e=("string"==typeof t?t:"").split(/[\s,]+/),n=e.length;for(i=0;i<n;i++)e[i]&&("-"===(t=e[i].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+t.substr(1)+"$")):r.names.push(new RegExp("^"+t+"$")));for(i=0;i<r.instances.length;i++){const t=r.instances[i];t.enabled=r.enabled(t.namespace)}},r.enabled=function(t){if("*"===t[t.length-1])return!0;let i,e;for(i=0,e=r.skips.length;i<e;i++)if(r.skips[i].test(t))return!1;for(i=0,e=r.names.length;i<e;i++)if(r.names[i].test(t))return!0;return!1},r.humanize=n(140),Object.keys(t).forEach(e=>{r[e]=t[e]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=e,r.enable(r.load()),r}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(428),o=n(99),h=n(433)("strtok3:ReadStreamTokenizer");class l extends r.AbstractTokenizer{constructor(t,e){super(e),this.streamReader=new o.StreamReader(t)}async getFileInfo(){return this.fileInfo}async readBuffer(t,e){let n=0,r=t.length;if(e){if(Number.isInteger(e.length)?r=e.length:r-=e.offset||0,e.position){const n=e.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(t,e);if(n<0)throw new Error("`options.position` can be less than `tokenizer.position`")}e.offset&&(n=e.offset)}if(0===r)return 0;const h=await this.streamReader.read(t,n,r);if(this.position+=h,(!e||!e.mayBeLess)&&h<r)throw new o.EndOfStreamError;return h}async peekBuffer(e,n){let r,h=0,l=e.length;if(n&&(n.offset&&(h=n.offset),Number.isInteger(n.length)?l=n.length:l-=n.offset||0,n.position)){const o=n.position-this.position;if(o>0){const c=t.alloc(l+o);return r=await this.peekBuffer(c,{mayBeLess:n.mayBeLess}),c.copy(e,h,o),r-o}if(o<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r=await this.streamReader.peek(e,h,l),(!n||!n.mayBeLess)&&r<l)throw new o.EndOfStreamError;return r}async ignore(e){h(`ignore ${this.position}...${this.position+e-1}`);const n=Math.min(1e6,e),r=t.alloc(n);let o=0;for(;o<e;){const t=e-o,h=await this.readBuffer(r,{length:Math.min(n,t)});if(h<0)return h;o+=h}return o}}e.ReadStreamTokenizer=l}).call(this,n(3).Buffer)},function(t,e,n){"use strict";
vendor: 5,426 bytes, line 2
2(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(99);e.AbstractTokenizer=class{constructor(e){this.position=0,this.numBuffer=t.alloc(10),this.fileInfo=e||{}}async readToken(e,n){const o=t.alloc(e.len);if(await this.readBuffer(o,{position:n})<e.len)throw new r.EndOfStreamError;return e.get(o,0)}async peekToken(e,n=this.position){const o=t.alloc(e.len);if(await this.peekBuffer(o,{position:n})<e.len)throw new r.EndOfStreamError;return e.get(o,0)}async readNumber(t){if(await this.readBuffer(this.numBuffer,{length:t.len})<t.len)throw new r.EndOfStreamError;return t.get(this.numBuffer,0)}async peekNumber(t){if(await this.peekBuffer(this.numBuffer,{length:t.len})<t.len)throw new r.EndOfStreamError;return t.get(this.numBuffer,0)}async close(){}}}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function l(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,source){for(var e,n,c=l(t),s=1;s<arguments.length;s++){for(var d in e=Object(arguments[s]))o.call(e,d)&&(c[d]=e[d]);if(r){n=r(e);for(var i=0;i<n.length;i++)h.call(e,n[i])&&(c[n[i]]=e[n[i]])}}return c}},function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++)n[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return n},o=/%[sdj%]/g;e.format=function(t){if(!S(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(c(arguments[i]));return e.join(" ")}i=1;for(var n=arguments,r=n.length,h=String(t).replace(o,(function(t){if("%%"===t)return"%";if(i>=r)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}default:return t}})),l=n[i];i<r;l=n[++i])_(l)||!T(l)?h+=" "+l:h+=" "+c(l);return h},e.deprecate=function(n,r){if(void 0!==t&&!0===t.noDeprecation)return n;if(void 0===t)return function(){return e.deprecate(n,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),o=!0}return n.apply(this,arguments)}};var h,l={};function c(t,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),M(n)?r.showHidden=n:n&&e._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),m(r,t,r.depth)}function d(t,e){var style=c.styles[e];return style?"�["+c.colors[style][0]+"m"+t+"�["+c.colors[style][1]+"m":t}function f(t,e){return t}function m(t,n,r){if(t.customInspect&&n&&I(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return S(o)||(o=m(t,o,r)),o}var h=function(t,e){if(x(e))return t.stylize("undefined","undefined");if(S(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(k(e))return t.stylize(""+e,"number");if(M(e))return t.stylize(""+e,"boolean");if(_(e))return t.stylize("null","null")}(t,n);if(h)return h;var l=Object.keys(n),c=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(l);if(t.showHidden&&(l=Object.getOwnPropertyNames(n)),A(n)&&(l.indexOf("message")>=0||l.indexOf("description")>=0))return v(n);if(0===l.length){if(I(n)){var d=n.name?": "+n.name:"";return t.stylize("[Function"+d+"]","special")}if(C(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return t.stylize(Date.prototype.toString.call(n),"date");if(A(n))return v(n)}var output,base="",f=!1,T=["{","}"];(w(n)&&(f=!0,T=["[","]"]),I(n))&&(base=" [Function"+(n.name?": "+n.name:"")+"]");return C(n)&&(base=" "+RegExp.prototype.toString.call(n)),E(n)&&(base=" "+Date.prototype.toUTCString.call(n)),A(n)&&(base=" "+v(n)),0!==l.length||f&&0!=n.length?r<0?C(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),output=f?function(t,e,n,r,o){for(var output=[],i=0,h=e.length;i<h;++i)F(e,String(i))?output.push(y(t,e,n,r,String(i),!0)):output.push("");return o.forEach((function(o){o.match(/^\d+$/)||output.push(y(t,e,n,r,o,!0))})),output}(t,n,r,c,l):l.map((function(e){return y(t,n,r,c,e,f)})),t.seen.pop(),function(output,base,t){if(output.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return t[0]+(""===base?"":base+"\n ")+" "+output.join(",\n  ")+" "+t[1];return t[0]+base+" "+output.join(", ")+" "+t[1]}(output,base,T)):T[0]+base+T[1]}function v(t){return"["+Error.prototype.toString.call(t)+"]"}function y(t,e,n,r,o,h){var l,c,desc;if((desc=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?c=desc.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):desc.set&&(c=t.stylize("[
2Setter]","special")),F(r,o)||(l="["+o+"]"),c||(t.seen.indexOf(desc.value)<0?(c=_(n)?m(t,desc.value,null):m(t,desc.value,n-1)).indexOf("\n")>-1&&(c=h?c.split("\n").map((function(line){return"  "+line})).join("\n").substr(2):"\n"+c.split("\n").map((function(line){return"   "+line})).join("\n")):c=t.stylize("[Circular]","special")),x(l)){if(h&&o.match(/^\d+$/))return c;(l=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=t.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=t.stylize(l,"string"))}return l+": "+c}function w(t){return Array.isArray(t)}function M(t){return"boolean"==typeof t}function _(t){return null===t}function k(t){return"number"==typeof t}function S(t){return"string"==typeof t}function x(t){return void 0===t}function C(t){return T(t)&&"[object RegExp]"===D(t)}function T(t){return"object"==typeof t&&null!==t}function E(t){return T(t)&&"[object Date]"===D(t)}function A(t){return T(t)&&("[object Error]"===D(t)||t instanceof Error)}function I(t){return"function"==typeof t}function D(t){return Object.prototype.toString.call(t)}function B(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(x(h)&&(h=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!l[n])if(new RegExp("\\b"+n+"\\b","i").test(h)){var r=t.pid;l[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else l[n]=function(){};return l[n]},e.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=w,e.isBoolean=M,e.isNull=_,e.isNullOrUndefined=function(t){return null==t},e.isNumber=k,e.isString=S,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=x,e.isRegExp=C,e.isObject=T,e.isDate=E,e.isError=A,e.isFunction=I,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(431);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var t=new Date,time=[B(t.getHours()),B(t.getMinutes()),B(t.getSeconds())].join(":");return[t.getDate(),R[t.getMonth()],time].join(" ")}function F(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=n(432),e._extend=function(t,e){if(!e||!T(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(O&&t[O]){var e;if("function"!=typeof(e=t[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,o)}catch(t){n(t)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),O&&Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=O,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var r=n.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,h=function(){return r.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(h,null,e)}),(function(e){t.nextTick(N,e,h)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this,n(7))},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){(function(r){e.log=function(...t){return"object"==typeof console&&console.log&&console.log(...t)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))}),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;
2if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n(434)(e);const{formatters:o}=t.exports;o.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(7))},function(t,e,n){t.exports=function(t){function e(t){let e=0;for(let i=0;i<t.length;i++)e=(e<<5)-e+t.charCodeAt(i),e|=0;return r.colors[Math.abs(e)%r.colors.length]}function r(t){let n;function l(...t){if(!l.enabled)return;const e=l,o=Number(new Date),h=o-(n||o);e.diff=h,e.prev=n,e.curr=o,n=o,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return n;c++;const h=r.formatters[o];if("function"==typeof h){const r=t[c];n=h.call(e,r),t.splice(c,1),c--}return n}),r.formatArgs.call(e,t),(e.log||r.log).apply(e,t)}return l.namespace=t,l.enabled=r.enabled(t),l.useColors=r.useColors(),l.color=e(t),l.destroy=o,l.extend=h,"function"==typeof r.init&&r.init(l),r.instances.push(l),l}function o(){const t=r.instances.indexOf(this);return-1!==t&&(r.instances.splice(t,1),!0)}function h(t,e){const n=r(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function l(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},r.disable=function(){const t=[...r.names.map(l),...r.skips.map(l).map(t=>"-"+t)].join(",");return r.enable(""),t},r.enable=function(t){let i;r.save(t),r.names=[],r.skips=[];const e=("string"==typeof t?t:"").split(/[\s,]+/),n=e.length;for(i=0;i<n;i++)e[i]&&("-"===(t=e[i].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+t.substr(1)+"$")):r.names.push(new RegExp("^"+t+"$")));for(i=0;i<r.instances.length;i++){const t=r.instances[i];t.enabled=r.enabled(t.namespace)}},r.enabled=function(t){if("*"===t[t.length-1])return!0;let i,e;for(i=0,e=r.skips.length;i<e;i++)if(r.skips[i].test(t))return!1;for(i=0,e=r.names.length;i<e;i++)if(r.names[i].test(t))return!0;return!1},r.humanize=n(140),Object.keys(t).forEach(e=>{r[e]=t[e]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=e,r.enable(r.load()),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(99);e.BufferTokenizer=class{constructor(t,e){this.buffer=t,this.position=0,this.fileInfo=e||{},this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:t.length}async readBuffer(t,e){if(e&&e.position){if(e.position<this.position)throw new Error("`options.position` can be less than `tokenizer.position`");this.position=e.position}return this.peekBuffer(t,e).then(t=>(this.position+=t,t))}async peekBuffer(t,e){let n=0,o=t.length,h=this.position;if(e){if(e.position){if(e.position<this.position)throw new Error("`options.position` can be less than `tokenizer.position`");h=e.position}Number.isInteger(e.length)?o=e.length:o-=e.offset||0,e.offset&&(n=e.offset)}if(0===o)return Promise.resolve(0);h=h||this.position,o||(o=t.length);const l=Math.min(this.buffer.length-h,o);if(e&&e.mayBeLess||!(l<o))return this.buffer.copy(t,n,h,h+l),l;throw new r.EndOfStreamError}async readToken(t,e){this.position=e||this.position;try{const e=this.peekToken(t,this.position);return this.position+=t.len,e}catch(t){throw this.position+=this.buffer.length-e,t}}async peekToken(t,e=this.position){if(this.buffer.length-e<t.len)throw new r.EndOfStreamError;return t.get(this.buffer,e)}async readNumber(t){return this.readToken(t)}async peekNumber(t){return this.peekToken(t)}async ignore(t){const e=Math.min(this.buffer.length-this.position,t);return this.position+=e,e}async close(){}}},function(t,e,n){"use strict";
2(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(232),o=n(439),h=n(440),l=n(6),c=n(442),d=n(456),f=n(58),m=n(460),v=n(463),y=n(464),w=n(466),M=n(468),_=n(474),k=n(481),S=n(484),x=n(486),C=n(488),T=n(490),E=l("music-metadata:parser:factory");function A(t){const e=o.parse(t),n=h.parse(e.type);return{type:n.type,subtype:n.subtype,suffix:n.suffix,parameters:e.parameters}}e.parseHttpContentType=A;class I{static async parseOnContentType(t,e){const{mimeType:n,path:path,url:r}=await t.fileInfo,o=I.getParserIdForMimeType(n)||I.getParserIdForExtension(path)||I.getParserIdForExtension(r);return o||E("No parser found for MIME-type / extension: "+n),this.parse(t,o,e)}static async parse(e,n,o){if(!n){E("Guess parser on content...");const o=t.alloc(4100);if(await e.peekBuffer(o,{mayBeLess:!0}),e.fileInfo.path&&(n=this.getParserIdForExtension(e.fileInfo.path)),!n){const t=await r.fromBuffer(o);if(!t)throw new Error("Failed to determine audio format");if(E(`Guessed file type is mime=${t.mime}, extension=${t.ext}`),!(n=I.getParserIdForMimeType(t.mime)))throw new Error("Guessed MIME-type not supported: "+t.mime)}}return this._parse(e,n,o)}static getParserIdForExtension(t){if(!t)return;switch(this.getExtension(t).toLocaleLowerCase()||t){case".mp2":case".mp3":case".m2a":case".aac":return"mpeg";case".ape":return"apev2";case".mp4":case".m4a":case".m4b":case".m4pa":case".m4v":case".m4r":case".3gp":return"mp4";case".wma":case".wmv":case".asf":return"asf";case".flac":return"flac";case".ogg":case".ogv":case".oga":case".ogm":case".ogx":case".opus":case".spx":return"ogg";case".aif":case".aiff":case".aifc":return"aiff";case".wav":return"riff";case".wv":case".wvp":return"wavpack";case".mpc":return"musepack";case".dsf":return"dsf";case".dff":return"dsdiff";case".mka":case".mkv":case".mk3d":case".mks":case".webm":return"matroska"}}static async loadParser(t){switch(t){case"aiff":return new d.AIFFParser;case"apev2":return new f.APEv2Parser;case"asf":return new m.AsfParser;case"dsf":return new x.DsfParser;case"dsdiff":return new C.DsdiffParser;case"flac":return new v.FlacParser;case"mp4":return new y.MP4Parser;case"mpeg":return new w.MpegParser;case"musepack":return new M.default;case"ogg":return new _.OggParser;case"riff":return new k.WaveParser;case"wavpack":return new S.WavPackParser;case"matroska":return new T.MatroskaParser;default:throw new Error("Unknown parser type: "+t)}}static async _parse(t,e,n={}){const r=await I.loadParser(e),o=new c.MetadataCollector(n);return await r.init(o,t,n).parse(),o.toCommonMetadata()}static getExtension(t){const i=t.lastIndexOf(".");return-1===i?"":t.slice(i)}static getParserIdForMimeType(t){let e;try{e=A(t)}catch(e){return void E("Invalid HTTP Content-Type header value: "+t)}const n=0===e.subtype.indexOf("x-")?e.subtype.substring(2):e.subtype;switch(e.type){case"audio":switch(n){case"mp3":case"mpeg":return"mpeg";case"flac":return"flac";case"ape":case"monkeys-audio":return"apev2";case"mp4":case"aac":case"aacp":case"m4a":return"mp4";case"ogg":case"opus":case"speex":return"ogg";case"ms-wma":case"ms-wmv":case"ms-asf":return"asf";case"aiff":case"aif":case"aifc":return"aiff";case"vnd.wave":case"wav":case"wave":return"riff";case"wavpack":return"wavpack";case"musepack":return"musepack";case"matroska":case"webm":return"matroska";case"dsf":return"dsf"}break;case"video":switch(n){case"ms-asf":case"ms-wmv":return"asf";case"m4v":case"mp4":return"mp4";case"ogg":return"ogg";case"matroska":case"webm":return"matroska"}break;case"application":switch(n){case"vnd.ms-asf":return"asf";case"ogg":return"ogg"}}}}e.ParserFactory=I}).call(this,n(3).Buffer)},function(t,e,n){"use strict";e.stringToBytes=t=>[...t].map(t=>t.charCodeAt(0));const r=(t,e,n)=>String.fromCharCode(...t.slice(e,n));e.tarHeaderChecksumMatches=t=>{if(t.length<512)return!1;let e=256,n=0;for(let i=0;i<148;i++){const r=t[i];e+=r,n+=128&r}for(let i=156;i<512;i++){const r=t[i];e+=r,n+=128&r}const o=parseInt(r(t,148,154),8);return o===e||o===e-(n<<1)},e.uint8ArrayUtf8ByteString=r,e.uint32SyncSafeToken={get:(t,e)=>127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21,len:4}},function(t,e,n){"use strict";
2t.exports={extensions:["jpg","png","apng","gif","webp","flif","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","jxr","psd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","msi","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","wmv","wma","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-wma","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-msi","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/ktx","application/dicom","audio/x-musepack","text/calendar","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif"]}},function(t,e,n){"use strict";var r=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,o=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,h=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,l=/\\([\u000b\u0020-\u00ff])/g,c=/([\\"])/g,d=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function f(t){var e=String(t);if(h.test(e))return e;if(e.length>0&&!o.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(c,"\\$1")+'"'}function m(t){this.parameters=Object.create(null),this.type=t}e.format=function(t){if(!t||"object"!=typeof t)throw new TypeError("argument obj is required");var e=t.parameters,n=t.type;if(!n||!d.test(n))throw new TypeError("invalid type");var r=n;if(e&&"object"==typeof e)for(var param,o=Object.keys(e).sort(),i=0;i<o.length;i++){if(param=o[i],!h.test(param))throw new TypeError("invalid parameter name");r+="; "+param+"="+f(e[param])}return r},e.parse=function(t){if(!t)throw new TypeError("argument string is required");var header="object"==typeof t?function(t){var header;"function"==typeof t.getHeader?header=t.getHeader("content-type"):"object"==typeof t.headers&&(header=t.headers&&t.headers["content-type"]);if("string"!=typeof header)throw new TypeError("content-type header is missing from object");return header}(t):t;if("string"!=typeof header)throw new TypeError("argument string is required to be a string");var e=header.indexOf(";"),n=-1!==e?header.substr(0,e).trim():header.trim();if(!d.test(n))throw new TypeError("invalid media type");var o=new m(n.toLowerCase());if(-1!==e){var h,c,f;for(r.lastIndex=e;c=r.exec(header);){if(c.index!==e)throw new TypeError("invalid parameter format");e+=c[0].length,h=c[1].toLowerCase(),'"'===(f=c[2])[0]&&(f=f.substr(1,f.length-2).replace(l,"$1")),o.parameters[h]=f}if(e!==header.length)throw new TypeError("invalid parameter format")}return o}},function(t,e,n){"use strict";var r=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,o=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,h=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;function l(t,e,n){this.type=t,this.subtype=e,this.suffix=n}e.format=function(t){if(!t||"object"!=typeof t)throw new TypeError("argument obj is required");var e=t.subtype,n=t.suffix,h=t.type;if(!h||!o.test(h))throw new TypeError("invalid type");if(!e||!r.test(e))throw new TypeError("invalid subtype");var l=h+"/"+e;if(n){if(!o.test(n))throw new TypeError("invalid suffix");l+="+"+n}return l},e.parse=function(t){if(!t)throw new TypeError("argument string is required");if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var e=h.exec(t.toLowerCase());if(!e)throw new TypeError("invalid media type");var n,r=e[1],o=e[2],c=o.lastIndexOf("+");-1!==c&&(n=o.substr(c+1),o=o.substr(0,c));return new l(r,o,n)},e.test=function(t){if(!t)throw new TypeError("argument string is required");if("string"!=typeof t)throw new TypeError("argument string is required to be a string");return h.test(t.toLowerCase())}},function(t,e,n){t.exports=function(t){function e(t){let e=0;for(let i=0;i<t.length;i++)e=(e<<5)-e+t.charCodeAt(i),e|=0;return r.colors[Math.abs(e)%r.colors.length]}function r(t){let n;function l(...t){if(!l.enabled)return;const e=l,o=Number(new Date),h=o-(n||o);e.diff=h,e.prev=n,e.curr=o,n=o,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(n,o)=>
2{if("%%"===n)return n;c++;const h=r.formatters[o];if("function"==typeof h){const r=t[c];n=h.call(e,r),t.splice(c,1),c--}return n}),r.formatArgs.call(e,t),(e.log||r.log).apply(e,t)}return l.namespace=t,l.enabled=r.enabled(t),l.useColors=r.useColors(),l.color=e(t),l.destroy=o,l.extend=h,"function"==typeof r.init&&r.init(l),r.instances.push(l),l}function o(){const t=r.instances.indexOf(this);return-1!==t&&(r.instances.splice(t,1),!0)}function h(t,e){const n=r(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function l(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},r.disable=function(){const t=[...r.names.map(l),...r.skips.map(l).map(t=>"-"+t)].join(",");return r.enable(""),t},r.enable=function(t){let i;r.save(t),r.names=[],r.skips=[];const e=("string"==typeof t?t:"").split(/[\s,]+/),n=e.length;for(i=0;i<n;i++)e[i]&&("-"===(t=e[i].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+t.substr(1)+"$")):r.names.push(new RegExp("^"+t+"$")));for(i=0;i<r.instances.length;i++){const t=r.instances[i];t.enabled=r.enabled(t.namespace)}},r.enabled=function(t){if("*"===t[t.length-1])return!0;let i,e;for(i=0,e=r.skips.length;i<e;i++)if(r.skips[i].test(t))return!1;for(i=0,e=r.names.length;i<e;i++)if(r.names[i].test(t))return!0;return!1},r.humanize=n(140),Object.keys(t).forEach(e=>{r[e]=t[e]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=e,r.enable(r.load()),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(141),o=n(6),h=n(443),l=n(444),c=n(30),d=n(11),f=n(232),m=o("music-metadata:collector"),v=["matroska","APEv2","vorbis","ID3v2.4","ID3v2.3","ID3v2.2","exif","asf","iTunes","ID3v1"];function y(t){return t.length>2?t.slice(0,t.length-1).join(", ")+" & "+t[t.length-1]:t.join(" & ")}e.MetadataCollector=class{constructor(t){this.opts=t,this.format={tagTypes:[],trackInfo:[]},this.native={},this.common={track:{no:null,of:null},disk:{no:null,of:null}},this.quality={warnings:[]},this.commonOrigin={},this.originPriority={},this.tagMapper=new l.CombinedTagMapper;let e=1;for(const t of v)this.originPriority[t]=e++;this.originPriority.artificial=500,this.originPriority.id3v1=600}hasAny(){return Object.keys(this.native).length>0}addStreamInfo(t){m(`streamInfo: type=${r.TrackType[t.type]}, codec=${t.codecName}`),this.format.trackInfo.push(t)}setFormat(t,e){m(`format: ${t} = ${e}`),this.format[t]=e,this.opts.observer&&this.opts.observer({metadata:this,tag:{type:"format",id:t,value:e}})}addTag(t,e,n){m(`tag ${t}.${e} = ${n}`),this.native[t]||(this.format.tagTypes.push(t),this.native[t]=[]),this.native[t].push({id:e,value:n}),this.toCommon(t,e,n)}addWarning(t){this.quality.warnings.push({message:t})}postMap(t,e){switch(e.id){case"artist":if(this.commonOrigin.artist===this.originPriority[t])return this.postMap("artificial",{id:"artists",value:e.value});this.common.artists||this.setGenericTag("artificial",{id:"artists",value:e.value});break;case"artists":if(!(this.common.artist&&this.commonOrigin.artist!==this.originPriority.artificial||this.common.artists&&-1!==this.common.artists.indexOf(e.value))){const t={id:"artist",value:y((this.common.artists||[]).concat([e.value]))};this.setGenericTag("artificial",t)}break;case"genre":e.value=c.CommonTagMapper.parseGenre(e.value);break;case"picture":return void this.postFixPicture(e.value).then(picture=>{null!==picture&&(e.value=picture,this.setGenericTag(t,e))});case"totaltracks":return void(this.common.track.of=c.CommonTagMapper.toIntOrNull(e.value));case"totaldiscs":return void(this.common.disk.of=c.CommonTagMapper.toIntOrNull(e.value));case"track":case"disk":const n=this.common[e.id].of;return this.common[e.id]=c.CommonTagMapper.normalizeTrack(e.value),void(this.common[e.id].of=null!=n?n:this.common[e.id].of);case"year":case"originalyear":e.value=parseInt(e.value,10);break;case"date":const r=parseInt(e.value.substr(0,4),10);isNaN(r)||(this.common.year=r);break;case"discogs_label_id":case"discogs_release_id":case"discogs_master_release_id":case"discogs_artist_id":case"discogs_votes":e.value="string"==typeof e.value?parseInt(e.value,10):e.value;break;case"replaygain_track_gain":case"replaygain_track_peak":case"replaygain_album_gain":case"replaygain_album_peak":e.value=d.toRatio(e.value);break;case"replaygain_track_minmax":e.value=e.value.split(",").map(t=>parseInt(t,10));break;case"replaygain_undo":const o=e.value.split(",").map(t=>parseInt(t,10));e.value={leftChannel:o[0],rightChannel:o[1]};break;case"gapless":e.value="1"===e.value;break;case"isrc":if(this.common[e.id]&&-1!==this.common[e.id].indexOf(e.value))return}null!==e.value&&this.setGenericTag(t,e)}toCommonMetadata(){return{format:this.format,native:this.native,quality:this.qual
2ity,common:this.common}}async postFixPicture(picture){if(picture.data.length>0){if(!picture.format){const t=await f.fromBuffer(picture.data);if(!t)return null;picture.format=t.mime}switch(picture.format=picture.format.toLocaleLowerCase(),picture.format){case"image/jpg":picture.format="image/jpeg"}return picture}return this.addWarning("Empty picture tag found"),null}toCommon(t,e,n){const r={id:e,value:n},o=this.tagMapper.mapTag(t,r,this);o&&this.postMap(t,o)}setGenericTag(t,e){m(`common.${e.id} = ${e.value}`);const n=this.commonOrigin[e.id]||1e3,r=this.originPriority[t];if(h.isSingleton(e.id)){if(!(r<=n))return m(`Ignore native tag (singleton): ${t}.${e.id} = ${e.value}`);this.common[e.id]=e.value,this.commonOrigin[e.id]=r}else if(r===n)h.isUnique(e.id)&&-1!==this.common[e.id].indexOf(e.value)?m(`Ignore duplicate value: ${t}.${e.id} = ${e.value}`):this.common[e.id].push(e.value);else{if(!(r<n))return m(`Ignore native tag (list): ${t}.${e.id} = ${e.value}`);this.common[e.id]=[e.value],this.commonOrigin[e.id]=r}this.opts.observer&&this.opts.observer({metadata:this,tag:{type:"common",id:e.id,value:e.value}})}},e.joinArtists=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.commonTags={year:{multiple:!1},track:{multiple:!1},disk:{multiple:!1},title:{multiple:!1},artist:{multiple:!1},artists:{multiple:!0,unique:!0},albumartist:{multiple:!1},album:{multiple:!1},date:{multiple:!1},originaldate:{multiple:!1},originalyear:{multiple:!1},comment:{multiple:!0,unique:!1},genre:{multiple:!0,unique:!0},picture:{multiple:!0,unique:!0},composer:{multiple:!0,unique:!0},lyrics:{multiple:!0,unique:!1},albumsort:{multiple:!1,unique:!0},titlesort:{multiple:!1,unique:!0},work:{multiple:!1,unique:!0},artistsort:{multiple:!1,unique:!0},albumartistsort:{multiple:!1,unique:!0},composersort:{multiple:!0,unique:!0},lyricist:{multiple:!0,unique:!0},writer:{multiple:!0,unique:!0},conductor:{multiple:!0,unique:!0},remixer:{multiple:!0,unique:!0},arranger:{multiple:!0,unique:!0},engineer:{multiple:!0,unique:!0},producer:{multiple:!0,unique:!0},technician:{multiple:!0,unique:!0},djmixer:{multiple:!0,unique:!0},mixer:{multiple:!0,unique:!0},label:{multiple:!0,unique:!0},grouping:{multiple:!1},subtitle:{multiple:!1},discsubtitle:{multiple:!1},totaltracks:{multiple:!1},totaldiscs:{multiple:!1},compilation:{multiple:!1},rating:{multiple:!0},bpm:{multiple:!1},mood:{multiple:!1},media:{multiple:!1},catalognumber:{multiple:!0,unique:!0},tvShow:{multiple:!1},tvShowSort:{multiple:!1},tvSeason:{multiple:!1},tvEpisode:{multiple:!1},tvEpisodeId:{multiple:!1},tvNetwork:{multiple:!1},podcast:{multiple:!1},podcasturl:{multiple:!1},releasestatus:{multiple:!1},releasetype:{multiple:!0},releasecountry:{multiple:!1},script:{multiple:!1},language:{multiple:!1},copyright:{multiple:!1},license:{multiple:!1},encodedby:{multiple:!1},encodersettings:{multiple:!1},gapless:{multiple:!1},barcode:{multiple:!1},isrc:{multiple:!0},asin:{multiple:!1},musicbrainz_recordingid:{multiple:!1},musicbrainz_trackid:{multiple:!1},musicbrainz_albumid:{multiple:!1},musicbrainz_artistid:{multiple:!0},musicbrainz_albumartistid:{multiple:!0},musicbrainz_releasegroupid:{multiple:!1},musicbrainz_workid:{multiple:!1},musicbrainz_trmid:{multiple:!1},musicbrainz_discid:{multiple:!1},acoustid_id:{multiple:!1},acoustid_fingerprint:{multiple:!1},musicip_puid:{multiple:!1},musicip_fingerprint:{multiple:!1},website:{multiple:!1},"performer:instrument":{multiple:!0,unique:!0},averageLevel:{multiple:!1},peakLevel:{multiple:!1},notes:{multiple:!0,unique:!1},key:{multiple:!1},originalalbum:{multiple:!1},originalartist:{multiple:!1},discogs_artist_id:{multiple:!0,unique:!0},discogs_release_id:{multiple:!1},discogs_label_id:{multiple:!1},discogs_master_release_id:{multiple:!1},discogs_votes:{multiple:!1},discogs_rating:{multiple:!1},replaygain_track_peak:{multiple:!1},replaygain_track_gain:{multiple:!1},replaygain_album_peak:{multiple:!1},replaygain_album_gain:{multiple:!1},replaygain_track_minmax:{multiple:!1},replaygain_album_minmax:{multiple:!1},replaygain_undo:{multiple:!1},description:{multiple:!0}},e.isSingleton=function(t){return e.commonTags.hasOwnProperty(t)&&!e.commonTags[t].multiple},e.isUnique=function(t){return!e.commonTags[t].multiple||e.commonTags[t].unique}},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});const r=n(445),o=n(448),h=n(449),l=n(450),c=n(451),d=n(452),f=n(453),m=n(454),v=n(455);e.CombinedTagMapper=class{constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new l.ID3v22TagMapper,new o.ID3v24TagMapper,new d.MP4TagMapper,new d.MP4TagMapper,new f.VorbisTagMapper,new c.APEv2TagMapper,new h.AsfTagMapper,new m.RiffInfoTagMapper,new v.MatroskaTagMapper].forEach(t=>{this.registerTagMapper(t)})}mapTag(t,e,n){if(this.tagMappers[t])return this.tagMappers[t].mapGenericTag(e,n);throw new Error("No generic tag mapper defined for tag-format: "+t)}registerTagMapper(t){for(const e of t.tagTypes)this.tagMappers[e]=t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30),o={title:"title",artist:"artist",album:"album",year:"year",comment:"comment",track:"track",genre:"genre"};class h extends r.CommonTagMapper{constructor(){super(["ID3v1"],o)}}e.ID3v1TagMapper=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class r{static decode(t){let e="";for(const i in t)t.hasOwnProperty(i)&&(e+=r.codePointToString(r.singleByteDecoder(t[i])));return e}static inRange(a,t,e){return t<=a&&a<=e}static codePointToString(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}static singleByteDecoder(t){if(r.inRange(t,0,127))return t;const e=r.windows1252[t-128];if(null===e)throw Error("invaliding encoding");return e}}e.Windows1292Decoder=r,r.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(15);function h(t){return{containsHeader:l(t,31),containsFooter:l(t,30),isHeader:l(t,31),readOnly:l(t,0),dataType:(6&t)>>1}}function l(t,e){return 0!=(t&1<<e)}!function(t){t[t.text_utf8=0]="text_utf8",t[t.binary=1]="binary",t[t.external_info=2]="external_info",t[t.reserved=3]="reserved"}(e.DataType||(e.DataType={})),e.DescriptorParser={len:52,get:(t,e)=>({ID:o.FourCcToken.get(t,e),version:r.UINT32_LE.get(t,e+4)/1e3,descriptorBytes:r.UINT32_LE.get(t,e+8),headerBytes:r.UINT32_LE.get(t,e+12),seekTableBytes:r.UINT32_LE.get(t,e+16),headerDataBytes:r.UINT32_LE.get(t,e+20),apeFrameDataBytes:r.UINT32_LE.get(t,e+24),apeFrameDataBytesHigh:r.UINT32_LE.get(t,e+28),terminatingDataBytes:r.UINT32_LE.get(t,e+32),fileMD5:new r.BufferType(16).get(t,e+36)})},e.Header={len:24,get:(t,e)=>({compressionLevel:r.UINT16_LE.get(t,e),formatFlags:r.UINT16_LE.get(t,e+2),blocksPerFrame:r.UINT32_LE.get(t,e+4),finalFrameBlocks:r.UINT32_LE.get(t,e+8),totalFrames:r.UINT32_LE.get(t,e+12),bitsPerSample:r.UINT16_LE.get(t,e+16),channel:r.UINT16_LE.get(t,e+18),sampleRate:r.UINT32_LE.get(t,e+20)})},e.TagFooter={len:32,get:(t,e)=>({ID:new r.StringType(8,"ascii").get(t,e),version:r.UINT32_LE.get(t,e+8),size:r.UINT32_LE.get(t,e+12),fields:r.UINT32_LE.get(t,e+16),flags:h(r.UINT32_LE.get(t,e+20))})},e.TagItemHeader={len:8,get:(t,e)=>({size:r.UINT32_LE.get(t,e),flags:h(r.UINT32_LE.get(t,e+4))})},e.TagField=footer=>new r.BufferType(footer.size-e.TagFooter.len),e.parseTagFlags=h,e.isBitSet=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30),o=n(11),h=n(142),l={TIT2:"title",TPE1:"artist","TXXX:Artists":"artists",TPE2:"albumartist",TALB:"album",TDRV:"date",TORY:"originalyear",TPOS:"disk",TCON:"genre",APIC:"picture",TCOM:"composer","USLT:description":"lyrics",TSOA:"albumsort",TSOT:"titlesort",TOAL:"originalalbum",TSOP:"artistsort",TSO2:"albumartistsort",TSOC:"composersort",TEXT:"lyricist","TXXX:Writer":"writer",TPE3:"conductor",TPE4:"remixer","IPLS:arranger":"arranger","IPLS:engineer":"engineer","IPLS:producer":"producer","IPLS:DJ-mix":"djmixer","IPLS:mix":"mixer",TPUB:"label",TIT1:"grouping",TIT3:"subtitle",TRCK:"track",TCMP:"compilation",POPM:"rating",TBPM:"bpm",TMED:"media","TXXX:CATALOGNUMBER":"catalognumber","TXXX:MusicBrainz Album Status":"releasestatus","TXXX:MusicBrainz Album Type":"releasetype","TXXX:MusicBrainz Album Release Country":"releasecountry","TXXX:RELEASECOUNTRY":"releasecountry","TXXX:SCRIPT":"script",TLAN:"language",TCOP:"copyright",WCOP:"license",TENC:"encodedby",TSSE:"encodersettings","TXXX:BARCODE":"barcode",TSRC:"isrc","TXXX:ASIN":"asin","TXXX:originalyear":"originalyear","UFID:http://musicbrainz.org":"musicbrainz_recordingid","TXXX:MusicBrainz Release Track Id":"musicbrainz_trackid","TXXX:MusicBrainz Album Id":"musicbrainz_albumid","TXXX:MusicBrainz Artist Id":"musicbrainz_artistid","TXXX:MusicBrainz Album Artist Id":"musicbrainz_albumartistid","TXXX:MusicBrainz Release Group Id":"musicbrainz_releasegroupid","TXXX:MusicBrainz Work Id":"musicbrainz_workid","TXXX:MusicBrainz TRM Id":"musicbrainz_trmid","TXXX:MusicBrainz Disc Id":"musicbrainz_discid","TXXX:ACOUSTID_ID":"acoustid_id","TXXX:Acoustid Id":"acoustid_id","TXXX:Acoustid Fingerprint":"acoustid_fingerprint","TXXX:MusicIP PUID":"musicip_puid","TXXX:MusicMagic Fingerprint":"musicip_fingerprint",WOAR:"website",TDRC:"date",TYER:"year",TDOR:"originaldate","TIPL:arranger":"arranger","TIPL:engineer":"engineer","TIPL:producer":"producer","TIPL:DJ-mix":"djmixer","TIPL:mix":"mixer",TMOO:"mood",SYLT:"lyrics",TSST:"discsubtitle",TKEY:"key",COMM:"comment",TOPE:"originalartist","PRIV:AverageLevel":"averageLevel","PRIV:PeakLevel":"peakLevel","TXXX:DISCOGS_ARTIST_ID":"discogs_artist_id","TXXX:DISCOGS_ARTISTS":"artists","TXXX:DISCOGS_ARTIST_NAME":"artists","TXXX:DISCOGS_ALBUM_ARTISTS":"albumartist","TXXX:DISCOGS_CATALOG":"catalognumber","TXXX:DISCOGS_COUNTRY":"releasecountry","TXXX:DISCOGS_DATE":"originaldate","TXXX:DISCOGS_LABEL":"label","TXXX:DISCOGS_LABEL_ID":"discogs_label_id","TXXX:DISCOGS_MASTER_RELEASE_ID":"discogs_master_release_id","TXXX:DISCOGS_RATING":"discogs_rating","TXXX:DISCOGS_RELEASED":"date","TXXX:DISCOGS_RELEASE_ID":"discogs_release_id","TXXX:DISCOGS_VOTES":"discogs_votes","TXXX:CATALOGID":"
2catalognumber","TXXX:STYLE":"genre","TXXX:REPLAYGAIN_TRACK_PEAK":"replaygain_track_peak","TXXX:REPLAYGAIN_TRACK_GAIN":"replaygain_track_gain","TXXX:REPLAYGAIN_ALBUM_PEAK":"replaygain_album_peak","TXXX:REPLAYGAIN_ALBUM_GAIN":"replaygain_album_gain","TXXX:MP3GAIN_MINMAX":"replaygain_track_minmax","TXXX:MP3GAIN_ALBUM_MINMAX":"replaygain_album_minmax","TXXX:MP3GAIN_UNDO":"replaygain_undo"};class c extends h.CaseInsensitiveTagMap{static toRating(t){return{source:t.email,rating:t.rating>0?(t.rating-1)/254*r.CommonTagMapper.maxRatingScore:void 0}}constructor(){super(["ID3v2.3","ID3v2.4"],l)}postMap(t,e){switch(t.id){case"UFID":"http://musicbrainz.org"===t.value.owner_identifier&&(t.id+=":"+t.value.owner_identifier,t.value=o.default.decodeString(t.value.identifier,"iso-8859-1"));break;case"PRIV":switch(t.value.owner_identifier){case"AverageLevel":case"PeakValue":t.id+=":"+t.value.owner_identifier,t.value=4===t.value.data.length?t.value.data.readUInt32LE(0):null,null===t.value&&e.addWarning("Failed to parse PRIV:PeakValue");break;default:e.addWarning("Unknown PRIV owner-identifier: "+t.value.owner_identifier)}break;case"COMM":t.value=t.value?t.value.text:null;break;case"POPM":t.value=c.toRating(t.value)}}}e.ID3v24TagMapper=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30),o={Title:"title",Author:"artist","WM/AlbumArtist":"albumartist","WM/AlbumTitle":"album","WM/Year":"date","WM/OriginalReleaseTime":"originaldate","WM/OriginalReleaseYear":"originalyear",Description:"comment","WM/TrackNumber":"track","WM/PartOfSet":"disk","WM/Genre":"genre","WM/Composer":"composer","WM/Lyrics":"lyrics","WM/AlbumSortOrder":"albumsort","WM/TitleSortOrder":"titlesort","WM/ArtistSortOrder":"artistsort","WM/AlbumArtistSortOrder":"albumartistsort","WM/ComposerSortOrder":"composersort","WM/Writer":"lyricist","WM/Conductor":"conductor","WM/ModifiedBy":"remixer","WM/Engineer":"engineer","WM/Producer":"producer","WM/DJMixer":"djmixer","WM/Mixer":"mixer","WM/Publisher":"label","WM/ContentGroupDescription":"grouping","WM/SubTitle":"subtitle","WM/SetSubTitle":"discsubtitle","WM/IsCompilation":"compilation","WM/SharedUserRating":"rating","WM/BeatsPerMinute":"bpm","WM/Mood":"mood","WM/
2Media":"media","WM/CatalogNo":"catalognumber","MusicBrainz/Album Status":"releasestatus","MusicBrainz/Album Type":"releasetype","MusicBrainz/Album Release Country":"releasecountry","WM/Script":"script","WM/Language":"language",Copyright:"copyright",LICENSE:"license","WM/EncodedBy":"encodedby","WM/EncodingSettings":"encodersettings","WM/Barcode":"barcode","WM/ISRC":"isrc","MusicBrainz/Track Id":"musicbrainz_recordingid","MusicBrainz/Release Track Id":"musicbrainz_trackid","MusicBrainz/Album Id":"musicbrainz_albumid","MusicBrainz/Artist Id":"musicbrainz_artistid","MusicBrainz/Album Artist Id":"musicbrainz_albumartistid","MusicBrainz/Release Group Id":"musicbrainz_releasegroupid","MusicBrainz/Work Id":"musicbrainz_workid","MusicBrainz/TRM Id":"musicbrainz_trmid","MusicBrainz/Disc Id":"musicbrainz_discid","Acoustid/Id":"acoustid_id","Acoustid/Fingerprint":"acoustid_fingerprint","MusicIP/PUID":"musicip_puid","WM/ARTISTS":"artists","WM/InitialKey":"key",ASIN:"asin","WM/Work":"work","WM/AuthorURL":"website","WM/Picture":"picture"};class h extends r.CommonTagMapper{static toRating(t){return{rating:parseFloat(t+1)/5}}constructor(){super(["asf"],o)}postMap(t){switch(t.id){case"WM/SharedUserRating":const e=t.id.split(":");t.value=h.toRating(t.value),t.id=e[0]}}}e.AsfTagMapper=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30);e.id3v22TagMap={TT2:"title",TP1:"artist",TP2:"albumartist",TAL:"album",TYE:"year",COM:"comment",TRK:"track",TPA:"disk",TCO:"genre",PIC:"picture",TCM:"composer",TOR:"originaldate",TOT:"work",TXT:"lyricist",TP3:"conductor",TPB:"label",TT1:"grouping",TT3:"subtitle",TLA:"language",TCR:"c
2opyright",WCP:"license",TEN:"encodedby",TSS:"encodersettings",WAR:"website","COM:iTunPGAP":"gapless"};class o extends r.CommonTagMapper{constructor(){super(["ID3v2.2"],e.id3v22TagMap)}}e.ID3v22TagMapper=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(142),o={Title:"title",Artist:"artist",Artists:"artists","Album Artist":"albumartist",Album:"album",Year:"date",Originalyear:"originalyear",Originaldate:"originaldate",Comment:"comment",Track:"track",Disc:"disk",DISCNUMBER:"disk",Genre:"genre","Cover Art (Front)":"picture","Cover Art (Back)":"picture",Composer:"composer",Lyrics:"lyrics",ALBUMSORT:"albumsort",TITLESORT:"titlesort",WORK:"work",ARTISTSORT:"artistsort",ALBUMARTISTSORT:"albumartistsort",COMPOSERSORT:"composersort",Lyricist:"lyricist",Writer:"writer",Conductor:"conductor",MixArtist:"remixer",Arranger:"arranger",Engineer:"engineer",Producer:"producer",DJMixer:"djmixer",Mixer:"mixer",Label:"label",Grouping:"grouping",Subtitle:"subtitle",DiscSubtitle:"discsubtitle",Compilation:"compilation",BPM:"bpm",Mood:"mood",Media:"media",CatalogNumber:"catalognumber",MUSICBRAINZ_ALBUMSTATUS:"releasestatus",MUSICBRAINZ_ALBUMTYPE:"releasetype",RELEASECOUNTRY:"releasecountry",Script:"script",Language:"language",Copyright:"copyright",LICENSE:"license",EncodedBy:"encodedby",EncoderSettings:"encodersettings",Barcode:"barcode",ISRC:"isrc",ASIN:"asin",musicbrainz_trackid:"musicbrainz_recordingid",musicbrainz_releasetrackid:"musicbrainz_trackid",MUSICBRAINZ_ALBUMID:"musicbrainz_albumid",MUSICBRAINZ_ARTISTID:"musicbrainz_artistid",MUSICBRAINZ_ALBUMARTISTID:"musicbrainz_albumartistid",MUSICBRAINZ_RELEASEGROUPID:"musicbrainz_releasegroupid",MUSICBRAINZ_WORKID:"musicbrainz_workid",MUSICBRAINZ_TRMID:"musicbrainz_trmid",MUSICBRAINZ_DISCID:"musicbrainz_discid",Acoustid_Id:"acoustid_id",ACOUSTID_FINGERPRINT:"acoustid_fingerprint",MUSICIP_PUID:"musicip_puid",Weblink:"website",REPLAYGAIN_TRACK_GAIN:"replaygain_track_gain",REPLAYGAIN_TRACK_PEAK:"replaygain_track_peak",MP3GAIN_MINMAX:"replaygain_track_minmax",MP3GAIN_UNDO:"replaygain_undo"};class h extends r.CaseInsensitiveTagMap{constructor(){super(["APEv2"],o)}}e.APEv2TagMapper=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30),o={"©nam":"title","©ART":"artist",aART:"albumartist","----:com.apple.iTunes:Band":"albumartist","©alb":"album","©day":"date","©cmt":"comment",trkn:"track",disk:"disk","©gen":"genre",covr:"picture","©wrt":"composer","©lyr":"lyrics",soal:"albumsort",sonm:"titlesort",soar:"artistsort",soaa:"albumartistsort",soco:"composersort","----:com.apple.iTunes:LYRICIST":"lyricist","----:com.apple.iTunes:CONDUCTOR":"conductor","----:com.apple.iTunes:REMIXER":"remixer","----:com.apple.iTunes:ENGINEER":"engineer","----:com.apple.iTunes:PRODUCER":"producer","----:com.apple.iTunes:DJMIXER":"djmixer","----:com.apple.iTunes:MIXER":"mixer","----:com.apple.iTunes:LABEL":"label","©grp":"grouping","----:com.apple.iTunes:SUBTITLE":"subtitle","----:com.apple.iTunes:DISCSUBTITLE":"discsubtitle",cpil:"compilation",tmpo:"bpm","----:com.apple.iTunes:MOOD":"mood","----:com.apple.iTunes:MEDIA":"media","----:com.apple.iTunes:CATALOGNUMBER":"catalognumber",tvsh:"tvShow",tvsn:"tvSeason",tves:"tvEpisode",sosn:"tvShowSort",tven:"tvEpisodeId",tvnn:"tvNetwork",pcst:"podcast",purl:"podcasturl","----:com.apple.iTunes:MusicBrainz Album Status":"releasestatus","----:com.apple.iTunes:MusicBrainz Album Type":"releasetype","----:com.apple.iTunes:MusicBrainz Album Release Country":"releasecountry","----:com.apple.iTunes:SCRIPT":"script","----:com.apple.iTunes:LANGUAGE":"language",cprt:"copyright","----:com.apple.iTunes:LICENSE":"license","©too":"encodedby",pgap:"gapless","----:com.apple.iTunes:BARCODE":"barcode","----:com.apple.iTunes:ISRC":"isrc","----:com.apple.iTunes:ASIN":"asin","----:com.apple.iTunes:NOTES":"comment","----:com.apple.iTunes:MusicBrainz Track Id":"musicbrainz_recordingid","----:com.apple.iTunes:MusicBrainz Release Track Id":"musicbrainz_trackid","----:com.apple.iTunes:MusicBrainz Album Id":"musicbrainz_albumid","----:com.apple.iTunes:MusicBrainz Artist Id":"musicbrainz_artistid","----:com.apple.iTunes:MusicBrainz Album Artist Id":"musicbrainz_albumartistid","----:com.apple.iTunes:MusicBrainz Release Group Id":"musicbrainz_releasegroupid","----:com.apple.iTunes:MusicBrainz Work Id":"musicbrainz_workid","----:com.apple.iTunes:MusicBrainz TRM Id":"musicbrainz_trmid","----:com.apple.iTunes:MusicBrainz Disc Id":"musicbrainz_discid","----:com.apple.iTunes:Acoustid Id":"acoustid_id","----:com.apple.iTunes:Acoustid Fingerprint":"acoustid_fingerprint","----:com.apple.iTunes:MusicIP PUID":"musicip_puid","----:com.apple.iTunes:fingerprint":"musicip_fingerprint","----:com.apple.iTunes:replaygain_track_gain":"replaygain_track_gain","----:com.apple.iTunes:replaygain_track_peak":"replaygain_track_peak","----:com.apple.iTunes:replaygain_album_gain":"replaygain_album_gain","----:com.apple.iTunes:replaygain_album_peak":"replaygain_album_peak","----:com.apple.iTunes:replaygain_track_minmax":"replaygain_track_minmax","----:com.apple.iTunes:replaygain_album_minmax":"replaygain_album_minmax","----:com.apple.iTunes:replaygain_undo":"replaygain_undo",gnre:"genre","----:com.apple.iTunes:ALBUMARTISTSORT":"albumartistsort","----:com.apple.iTunes:ARTISTS":"artists","----:com.apple.iTunes:ORIGINALDATE":"originaldate","----:com.apple.iTunes:ORIGINALYEAR":"originalyear",desc:"description",ldes:"description"};e.tagType="iTunes";class h extends r.CommonTagMapper{constructor(){super([e.tagType],o)}}e.MP4TagMapper=h},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});const r=n(30),o={TITLE:"title",ARTIST:"artist",ARTISTS:"artists",ALBUMARTIST:"albumartist",ALBUM:"album",DATE:"date",ORIGINALDATE:"originaldate",ORIGINALYEAR:"originalyear",COMMENT:"comment",TRACKNUMBER:"track",DISCNUMBER:"disk",GENRE:"genre",METADATA_BLOCK_PICTURE:"picture",COMPOSER:"composer",LYRICS:"lyrics",ALBUMSORT:"albumsort",TITLESORT:"titlesort",WORK:"work",ARTISTSORT:"artistsort",ALBUMARTISTSORT:"albumartistsort",COMPOSERSORT:"composersort",LYRICIST:"lyricist",WRITER:"writer",CONDUCTOR:"conductor",REMIXER:"remixer",ARRANGER:"arranger",ENGINEER:"engineer",PRODUCER:"producer",DJMIXER:"djmixer",MIXER:"mixer",LABEL:"label",GROUPING:"grouping",SUBTITLE:"subtitle",DISCSUBTITLE:"discsubtitle",TRACKTOTAL:"totaltracks",DISCTOTAL:"totaldiscs",COMPILATION:"compilation",RATING:"rating",BPM:"bpm",MOOD:"mood",MEDIA:"media",CATALOGNUMBER:"catalognumber",RELEASESTATUS:"releasestatus",RELEASETYPE:"releasetype",RELEASECOUNTRY:"releasecountry",SCRIPT:"script",LANGUAGE:"language",COPYRIGHT:"copyright",LICENSE:"license",ENCODEDBY:"encodedby",ENCODERSETTINGS:"encodersettings",BARCODE:"barcode",ISRC:"isrc",ASIN:"asin",MUSICBRAINZ_TRACKID:"musicbrainz_recordingid",MUSICBRAINZ_RELEASETRACKID:"musicbrainz_trackid",MUSICBRAINZ_ALBUMID:"musicbrainz_albumid",MUSICBRAINZ_ARTISTID:"musicbrainz_artistid",MUSICBRAINZ_ALBUMARTISTID:"musicbrainz_albumartistid",MUSICBRAINZ_RELEASEGROUPID:"musicbrainz_releasegroupid",MUSICBRAINZ_WORKID:"musicbrainz_workid",MUSICBRAINZ_TRMID:"musicbrainz_trmid",MUSICBRAINZ_DISCID:"musicbrainz_discid",ACOUSTID_ID:"acoustid_id",ACOUSTID_ID_FINGERPRINT:"acoustid_fingerprint",MUSICIP_PUID:"musicip_puid",WEBSITE:"website",NOTES:"notes",TOTALTRACKS:"totaltracks",TOTALDISCS:"totaldiscs",DISCOGS_ARTIST_ID:"discogs_artist_id",DISCOGS_ARTISTS:"artists",DISCOGS_ARTIST_NAME:"artists",DISCOGS_ALBUM_ARTISTS:"albumartist",DISCOGS_CATALOG:"catalognumber",DISCOGS_COUNTRY:"releasecountry",DISCOGS_DATE:"originaldate",DISCOGS_LABEL:"label",DISCOGS_LABEL_ID:"discogs_label_id",DISCOGS_MASTER_RELEASE_ID:"discogs_master_release_id",DISCOGS_RATING:"discogs_rating",DISCOGS_RELEASED:"date",DISCOGS_RELEASE_ID:"discogs_release_id",DISCOGS_VOTES:"discogs_votes",CATALOGID:"catalognumber",STYLE:"genre",REPLAYGAIN_TRACK_GAIN:"replaygain_track_gain",REPLAYGAIN_TRACK_PEAK:"replaygain_track_peak",REPLAYGAIN_ALBUM_GAIN:"replaygain_album_gain",REPLAYGAIN_ALBUM_PEAK:"replaygain_album_peak",REPLAYGAIN_MINMAX:"replaygain_track_minmax",REPLAYGAIN_ALBUM_MINMAX:"replaygain_album_minmax",REPLAYGAIN_UNDO:"replaygain_undo"};class h extends r.CommonTagMapper{static toRating(t,e){return{source:t?t.toLowerCase():t,rating:parseFloat(e)*r.CommonTagMapper.maxRatingScore}}constructor(){super(["vorbis"],o)}postMap(t){if(0===t.id.indexOf("RATING:")){const e=t.id.split(":");t.value=h.toRating(e[1],t.value),t.id=e[0]}}}e.VorbisTagMapper=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30);e.riffInfoTagMap={IART:"artist",ICRD:"date",INAM:"title",TITL:"title",IPRD:"album",ITRK:"track",COMM:"comment",ICMT:"comment",ICNT:"releasecountry",GNRE:"genre",IWRI:"writer",RATE:"rating",YEAR:"year",ISFT:"encodedby",CODE:"encodedby",TURL:"website",IGNR:"genre",IENG:"engineer",ITCH:"technician",IMED:"media",IRPD:"album"};class o extends r.CommonTagMapper{constructor(){super(["exif"],e.riffInfoTagMap)}}e.RiffInfoTagMapper=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(142),o={"segment:title":"title","album:ARITST":"albumartist","album:ARITSTSORT":"albumartistsort","album:TITLE":"album","album:DATE_RECORDED":"originaldate","track:ARTIST":"artist","track:ARTISTSORT":"artistsort","track:TITLE":"title","track:PART_NUMBER":"track","track:MUSICBRAINZ_TRACKID":"musicbrainz_recordingid","track:MUSICBRAINZ_ALBUMID":"musicbrainz_albumid","track:MUSICBRAINZ_ARTISTID":"musicbrainz_artistid","track:PUBLISHER":"label",picture:"picture"};class h extends r.CaseInsensitiveTagMap{constructor(){super(["matroska"],o)}}e.MatroskaTagMapper=h},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(6),h=n(29),l=n(78),c=n(15),d=n(17),f=n(458),m=n(459),v=n(143),y=o("music-metadata:parser:aiff");class w extends d.BasicParser{async parse(){if("FORM"!==(await this.tokenizer.readToken(m.Header)).chunkID)throw new Error("Invalid Chunk-ID, expected 'FORM'");const t=await this.tokenizer.readToken(c.FourCcToken);switch(t){case"AIFF":this.metadata.setFormat("container",t),this.isCompressed=!1;break;case"AIFC":this.metadata.setFormat("container","AIFF-C"),this.isCompressed=!0;break;default:throw Error("Unsupported AIFF type: "+t)}this.metadata.setFormat("lossless",!this.isCompressed);try{for(;;){const t=await this.tokenizer.readToken(m.Header);y("Chunk id="+t.chunkID);const e=2*Math.round(t.chunkSize/2),n=await this.readData(t);await this.tokenizer.ignore(e-n)}}catch(t){if(!(t instanceof h.EndOfStreamError))throw t;y("End-of-stream")}}async readData(header){switch(header.chunkID){case"COMM":const t=await this.tokenizer.readToken(new f.Common(header,this.isCompressed));return this.metadata.setFormat("bitsPerSample",t.sampleSize),this.metadata.setFormat("sampleRate",t.sampleRate),this.metadata.setFormat("numberOfChannels",t.numChannels),this.metadata.setFormat("numberOfSamples",t.numSampleFrames),this.metadata.setFormat("duration",t.numSampleFrames/t.sampleRate),this.metadata.setFormat("codec",t.compressionName),header.chunkSize;case"ID3 ":const e=await this.tokenizer.readToken(new r.BufferType(header.chunkSize)),n=new v.ID3Stream(e),o=h.fromStream(n);return await(new l.ID3v2Parser).parse(this.metadata,o,this.options),header.chunkSize;case"SSND":return this.metadata.format.duration&&this.metadata.setFormat("bitrate",8*header.chunkSize/this.metadata.format.duration),0;default:return 0}}}e.AIFFParser=w},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(5),h=n(11),l=n(79),c=r("music-metadata:id3v2:frame-parser");class d{constructor(t,e){this.major=t,this.warningCollector=e}readData(b,e,n){if(0===b.length)return void this.warningCollector.addWarning(`id3v2.${this.major} header has empty tag type=${e}`);const{encoding:r,bom:f}=l.TextEncodingToken.get(b,0),m=b.length;let v=0,output=[];const y=d.getNullTerminatorLength(r);let w;const M={};switch(c(`Parsing tag type=${e}, encoding=${r}, bom=${f}`),"TXXX"!==e&&"T"===e[0]?"T*":e){case"T*":case"IPLS":const text=h.default.decodeString(b.slice(1),r).replace(/\x00+$/,"");switch(e){case"TMCL":case"TIPL":case"IPLS":output=this.splitValue(e,text),output=d.functionList(output);break;case"TRK":case"TRCK":case"TPOS":output=text;break;case"TCOM":case"TCON":case"TEXT":case"TOLY":case"TOPE":case"TPE1":case"TSRC":output=this.splitValue(e,text);break;default:output=this.major>=4?this.splitValue(e,text):[text]}break;case"TXXX":output=d.readIdentifierAndData(b,v+1,m,r),output={description:output.id,text:this.splitValue(e,h.default.decodeString(output.data,r).replace(/\x00+$/,""))};break;case"PIC":case"APIC":if(n){const e={};switch(v+=1,this.major){case 2:e.format=h.default.decodeString(b.slice(v,v+3),r),v+=3;break;case 3:case 4:w=h.default.findZero(b,v,m,"iso-8859-1"),e.format=h.default.decodeString(b.slice(v,w),"iso-8859-1"),v=w+1;break;default:throw new Error("Warning: unexpected major versionIndex: "+this.major)}e.format=d.fixPictureMimeType(e.format),e.type=l.AttachedPictureType[b[v]],v+=1,w=h.default.findZero(b,v,m,r),e.description=h.default.decodeString(b.slice(v,w),r),v=w+y,e.data=t.from(b.slice(v,m)),output=e}break;case"CNT":case"PCNT":output=o.UINT32_BE.get(b,0);break;case"SYLT":for(v+=7,output=[];v<m;){const t=b.slice(v,v=h.default.findZero(b,v,m,r));v+=5,output.push(h.default.decodeString(t,r))}break;case"ULT":case"USLT":case"COM":case"COMM":v+=1,M.language=h.default.decodeString(b.slice(v,v+3),"iso-8859-1"),v+=3,w=h.default.findZero(b,v,m,r),M.description=h.default.decodeString(b.slice(v,w),r),v=w+y,M.text=h.default.decodeString(b.slice(v,m),r).replace(/\x00+$/,""),output=[M];break;case"UFID":output=d.readIdentifierAndData(b,v,m,"iso-8859-1"),output={owner_identifier:output.id,identifier:output.data};break;
2case"PRIV":output=d.readIdentifierAndData(b,v,m,"iso-8859-1"),output={owner_identifier:output.id,data:output.data};break;case"POPM":w=h.default.findZero(b,v,m,"iso-8859-1");const f=h.default.decodeString(b.slice(v,w),"iso-8859-1");v=w+1;const _=m-v;output={email:f,rating:b.readUInt8(v),counter:_>=5?b.readUInt32BE(v+1):void 0};break;case"GEOB":{w=h.default.findZero(b,v+1,m,r);const t=h.default.decodeString(b.slice(v+1,w),"iso-8859-1");v=w+1,w=h.default.findZero(b,v,m-v,r);const e=h.default.decodeString(b.slice(v,w),"iso-8859-1");v=w+1,w=h.default.findZero(b,v,m-v,r),output={type:t,filename:e,description:h.default.decodeString(b.slice(v,w),"iso-8859-1"),data:b.slice(v+1,m)};break}case"WCOM":case"WCOP":case"WOAF":case"WOAR":case"WOAS":case"WORS":case"WPAY":case"WPUB":output=h.default.decodeString(b.slice(v,w),"iso-8859-1");break;case"WXXX":{w=h.default.findZero(b,v+1,m,r);const t=h.default.decodeString(b.slice(v+1,w),r);v=w+("utf16"===r?2:1),output={description:t,url:h.default.decodeString(b.slice(v,m),"iso-8859-1")};break}case"MCDI":output=b.slice(0,m);break;default:c("Warning: unsupported id3v2-tag-type: "+e)}return output}static fixPictureMimeType(t){switch(t=t.toLocaleLowerCase()){case"jpg":return"image/jpeg";case"png":return"image/png"}return t}static functionList(t){const e={};for(let i=0;i+1<t.length;i+=2){const n=t[i+1].split(",");e[t[i]]=e.hasOwnProperty(t[i])?e[t[i]].concat(n):n}return e}splitValue(t,text){let e;return this.major<4?(e=text.split(/\x00/g),e.length>1?this.warningCollector.addWarning(`ID3v2.${this.major} ${t} uses non standard null-separator.`):e=text.split(/\//g)):e=text.split(/\x00/g),d.trimArray(e)}static trimArray(t){return t.map(t=>t.replace(/\x00+$/,"").trim())}static readIdentifierAndData(b,t,e,n){const r=h.default.findZero(b,t,e,n),o=h.default.decodeString(b.slice(t,r),n);return t=r+d.getNullTerminatorLength(n),{id:o,data:b.slice(t,e)}}static getNullTerminatorLength(t){return"utf16"===t?2:1}}e.FrameParser=d}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(14),h=n(15);e.Common=class{constructor(header,t){this.isAifc=t;const e=t?22:18;o.ok(header.chunkSize>=e,"COMMON CHUNK size should always be at least "+e),this.len=header.chunkSize}get(t,e){const n=t.readUInt16BE(e+8)-16398,o=t.readUInt16BE(e+8+2),l={numChannels:t.readUInt16BE(e),numSampleFrames:t.readUInt32BE(e+2),sampleSize:t.readUInt16BE(e+6),sampleRate:n<0?o>>Math.abs(n):o<<n};if(this.isAifc){if(l.compressionType=h.FourCcToken.get(t,e+18),this.len>22){const n=t.readInt8(e+22);if(23+n+(n+1)%2!==this.len)throw new Error("Illegal pstring length");l.compressionName=new r.StringType(n,"binary").get(t,e+23)}}else l.compressionName="PCM";return l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(15);e.Header={len:8,get:(t,e)=>({chunkID:r.FourCcToken.get(t,e),chunkSize:t.readUInt32BE(e+4)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(141),o=n(233),h=n(461),l=n(6),c=n(17),d=l("music-metadata:parser:ASF");class f extends c.BasicParser{async parse(){const header=await this.tokenizer.readToken(h.TopLevelHeaderObjectToken);if(!header.objectId.equals(o.default.HeaderObject))throw new Error("expected asf header; but was not found; got: "+header.objectId.str);try{await this.parseObjectHeader(header.numberOfHeaderObjects)}catch(t){d("Error while parsing ASF: %s",t)}}async parseObjectHeader(t){let e;do{const header=await this.tokenizer.readToken(h.HeaderObjectToken);switch(d("header GUID=%s",header.objectId.str),header.objectId.str){case h.FilePropertiesObject.guid.str:const t=await this.tokenizer.readToken(new h.FilePropertiesObject(header));this.metadata.setFormat("duration",t.playDuration/1e7),this.metadata.setFormat("bitrate",t.maximumBitrate);break;case h.StreamPropertiesObject.guid.str:const n=await this.tokenizer.readToken(new h.StreamPropertiesObject(header));this.metadata.setFormat("container","ASF/"+n.streamType);break;case h.HeaderExtensionObject.guid.str:const l=await this.tokenizer.readToken(new h.HeaderExtensionObject);await this.parseExtensionObject(l.extensionDataSize);break;case h.ContentDescriptionObjectState.guid.str:e=await this.tokenizer.readToken(new h.C
2ontentDescriptionObjectState(header)),this.addTags(e);break;case h.ExtendedContentDescriptionObjectState.guid.str:e=await this.tokenizer.readToken(new h.ExtendedContentDescriptionObjectState(header)),this.addTags(e);break;case o.default.CodecListObject.str:const c=await h.readCodecEntries(this.tokenizer);c.forEach(t=>{this.metadata.addStreamInfo({type:t.type.videoCodec?r.TrackType.video:r.TrackType.audio,codecName:t.codecName})});const f=c.filter(t=>t.type.audioCodec).map(t=>t.codecName).join("/");this.metadata.setFormat("codec",f);break;case o.default.StreamBitratePropertiesObject.str:await this.tokenizer.ignore(header.objectSize-h.HeaderObjectToken.len);break;case o.default.PaddingObject.str:d("Padding: %s bytes",header.objectSize-h.HeaderObjectToken.len),await this.tokenizer.ignore(header.objectSize-h.HeaderObjectToken.len);break;default:this.metadata.addWarning("Ignore ASF-Object-GUID: "+header.objectId.str),d("Ignore ASF-Object-GUID: %s",header.objectId.str),await this.tokenizer.readToken(new h.IgnoreObjectState(header))}}while(--t)}addTags(t){t.forEach(t=>{this.metadata.addTag("asf",t.id,t.value)})}async parseExtensionObject(t){do{const header=await this.tokenizer.readToken(h.HeaderObjectToken);switch(header.objectId.str){case h.ExtendedStreamPropertiesObjectState.guid.str:await this.tokenizer.readToken(new h.ExtendedStreamPropertiesObjectState(header));break;case h.MetadataObjectState.guid.str:const t=await this.tokenizer.readToken(new h.MetadataObjectState(header));this.addTags(t);break;case h.MetadataLibraryObjectState.guid.str:const e=await this.tokenizer.readToken(new h.MetadataLibraryObjectState(header));this.addTags(e);break;case o.default.PaddingObject.str:await this.tokenizer.ignore(header.objectSize-h.HeaderObjectToken.len);break;case o.default.CompatibilityObject.str:this.tokenizer.ignore(header.objectSize-h.HeaderObjectToken.len);break;case o.default.ASF_Index_Placeholder_Object.str:await this.tokenizer.ignore(header.objectSize-h.HeaderObjectToken.len);break;default:this.metadata.addWarning("Ignore ASF-Object-GUID: "+header.objectId.str),await this.tokenizer.readToken(new h.IgnoreObjectState(header))}t-=header.objectSize}while(t>0)}}e.AsfParser=f},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(11),o=n(5),h=n(233),l=n(462),c=n(79);!function(t){t[t.UnicodeString=0]="UnicodeString",t[t.ByteArray=1]="ByteArray",t[t.Bool=2]="Bool",t[t.DWord=3]="DWord",t[t.QWord=4]="QWord",t[t.Word=5]="Word"}(e.DataType||(e.DataType={})),e.TopLevelHeaderObjectToken={len:30,get:(t,e)=>({objectId:h.default.fromBin(new o.BufferType(16).get(t,e)),objectSize:o.UINT64_LE.get(t,e+16),numberOfHeaderObjects:o.UINT32_LE.get(t,e+24)})},e.HeaderObjectToken={len:24,get:(t,e)=>({objectId:h.default.fromBin(new o.BufferType(16).get(t,e)),objectSize:o.UINT64_LE.get(t,e+16)})};class d{constructor(header){this.len=header.objectSize-e.HeaderObjectToken.len}postProcessTag(t,e,n,data){if("WM/Picture"===e)t.push({id:e,value:E.fromBuffer(data)});else{const r=l.AsfUtil.getParserForAttr(n);if(!r)throw new Error("unexpected value headerType: "+n);t.push({id:e,value:r(data)})}}}e.State=d;e.IgnoreObjectState=class extends d{constructor(header){super(header)}get(t,e){return null}};class f extends d{constructor(header){super(header)}get(t,e){return{fileId:h.default.fromBin(t,e),fileSize:o.UINT64_LE.get(t,e+16),creationDate:o.UINT64_LE.get(t,e+24),dataPacketsCount:o.UINT64_LE.get(t,e+32),playDuration:o.UINT64_LE.get(t,e+40),sendDuration:o.UINT64_LE.get(t,e+48),preroll:o.UINT64_LE.get(t,e+56),flags:{broadcast:r.default.strtokB
2ITSET.get(t,e+64,24),seekable:r.default.strtokBITSET.get(t,e+64,25)},minimumDataPacketSize:o.UINT32_LE.get(t,e+68),maximumDataPacketSize:o.UINT32_LE.get(t,e+72),maximumBitrate:o.UINT32_LE.get(t,e+76)}}}e.FilePropertiesObject=f,f.guid=h.default.FilePropertiesObject;class m extends d{constructor(header){super(header)}get(t,e){return{streamType:h.default.decodeMediaType(h.default.fromBin(t,e)),errorCorrectionType:h.default.fromBin(t,e+8)}}}e.StreamPropertiesObject=m,m.guid=h.default.StreamPropertiesObject;class v{constructor(){this.len=22}get(t,e){return{reserved1:h.default.fromBin(t,e),reserved2:t.readUInt16LE(e+16),extensionDataSize:t.readUInt32LE(e+18)}}}e.HeaderExtensionObject=v,v.guid=h.default.HeaderExtensionObject;const y={len:20,get:(t,e)=>({entryCount:t.readUInt16LE(e+16)})};async function w(t){const e=await t.readNumber(o.UINT16_LE);return(await t.readToken(new o.StringType(2*e,"utf16le"))).replace("\0","")}async function M(e){const n=await e.readNumber(o.UINT16_LE),r=t.alloc(n);return await e.readBuffer(r),r}async function _(t){const e=await t.readNumber(o.UINT16_LE);return{type:{videoCodec:1==(1&e),audioCodec:2==(2&e)},codecName:await w(t),description:await w(t),information:await M(t)}}e.readCodecEntries=async function(t){const e=await t.readToken(y),n=[];for(let i=0;i<e.entryCount;++i)n.push(await _(t));return n};class k extends d{constructor(header){super(header)}get(t,e){const n=[];let r=e+10;for(let i=0;i<k.contentDescTags.length;++i){const o=t.readUInt16LE(e+2*i);if(o>0){const e=k.contentDescTags[i],h=r+o;n.push({id:e,value:l.AsfUtil.parseUnicodeAttr(t.slice(r,h))}),r=h}}return n}}e.ContentDescriptionObjectState=k,k.guid=h.default.ContentDescriptionObject,k.contentDescTags=["Title","Author","Copyright","Description","Rating"];class S extends d{constructor(header){super(header)}get(t,e){const n=[],r=t.readUInt16LE(e);let o=e+2;for(let i=0;i<r;i+=1){const e=t.readUInt16LE(o);o+=2;const r=l.AsfUtil.parseUnicodeAttr(t.slice(o,o+e));o+=e;const h=t.readUInt16LE(o);o+=2;const c=t.readUInt16LE(o);o+=2;const d=t.slice(o,o+c);o+=c,this.postProcessTag(n,r,h,d)}return n}}e.ExtendedContentDescriptionObjectState=S,S.guid=h.default.ExtendedContentDescriptionObject;class x extends d{constructor(header){super(header)}get(t,e){return{startTime:o.UINT64_LE.get(t,e),endTime:o.UINT64_LE.get(t,e+8),dataBitrate:t.readInt32LE(e+12),bufferSize:t.readInt32LE(e+16),initialBufferFullness:t.readInt32LE(e+20),alternateDataBitrate:t.readInt32LE(e+24),alternateBufferSize:t.readInt32LE(e+28),alternateInitialBufferFullness:t.readInt32LE(e+32),maximumObjectSize:t.readInt32LE(e+36),flags:{reliableFlag:r.default.strtokB
2ITSET.get(t,e+40,0),seekableFlag:r.default.strtokBITSET.get(t,e+40,1),resendLiveCleanpointsFlag:r.default.strtokBITSET.get(t,e+40,2)},streamNumber:t.readInt16LE(e+42),streamLanguageId:t.readInt16LE(e+44),averageTimePerFrame:t.readInt32LE(e+52),streamNameCount:t.readInt32LE(e+54),payloadExtensionSystems:t.readInt32LE(e+56),streamNames:[],streamPropertiesObject:null}}}e.ExtendedStreamPropertiesObjectState=x,x.guid=h.default.ExtendedStreamPropertiesObject;class C extends d{constructor(header){super(header)}get(t,e){const n=[],r=t.readUInt16LE(e);let o=e+2;for(let i=0;i<r;i+=1){o+=4;const e=t.readUInt16LE(o);o+=2;const r=t.readUInt16LE(o);o+=2;const h=t.readUInt32LE(o);o+=4;const c=l.AsfUtil.parseUnicodeAttr(t.slice(o,o+e));o+=e;const data=t.slice(o,o+h);if(o+=h,!l.AsfUtil.getParserForAttr(r))throw new Error("unexpected value headerType: "+r);this.postProcessTag(n,c,r,data)}return n}}e.MetadataObjectState=C,C.guid=h.default.MetadataObject;class T extends C{constructor(header){super(header)}}e.MetadataLibraryObjectState=T,T.guid=h.default.MetadataLibraryObject;class E{constructor(t){this.len=t}static fromBase64(e){return this.fromBuffer(t.from(e,"base64"))}static fromBuffer(t){return new E(t.length).get(t,0)}get(t,e){const n=t.readUInt8(e++),r=t.readInt32LE(e);let o=5;for(;0!==t.readUInt16BE(o);)o+=2;const h=t.slice(5,o).toString("utf16le");for(;0!==t.readUInt16BE(o);)o+=2;const l=t.slice(5,o).toString("utf16le");return{type:c.AttachedPictureType[n],format:h,description:l,size:r,data:t.slice(o+4)}}}e.WmPictureToken=E}).call(this,n(3).Buffer)},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(11),o=n(5);class h{static getParserForAttr(i){return h.attributeParsers[i]}static parseUnicodeAttr(t){return r.default.stripNulls(r.default.decodeString(t,"utf16le"))}static parseByteArrayAttr(e){const n=t.alloc(e.length);return e.copy(n),n}static parseBoolAttr(t,e=0){return 1===h.parseWordAttr(t,e)}static parseDWordAttr(t,e=0){return t.readUInt32LE(e)}static parseQWordAttr(t,e=0){return o.UINT64_LE.get(t,e)}static parseWordAttr(t,e=0){return t.readUInt16LE(e)}}e.AsfUtil=h,h.attributeParsers=[h.parseUnicodeAttr,h.parseByteArrayAttr,h.parseBoolAttr,h.parseDWordAttr,h.parseQWordAttr,h.parseWordAttr,h.parseByteArrayAttr]}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(11),o=n(5),h=n(234),l=n(101),c=n(15),d=n(6),f=n(102),m=n(235),v=d("music-metadata:parser:FLAC");var y;!function(t){t[t.STREAMINFO=0]="STREAMINFO",t[t.PADDING=1]="PADDING",t[t.APPLICATION=2]="APPLICATION",t[t.SEEKTABLE=3]="SEEKTABLE",t[t.VORBIS_COMMENT=4]="VORBIS_COMMENT",t[t.CUESHEET=5]="CUESHEET",t[t.PICTURE=6]="PICTURE"}(y||(y={}));class w extends l.AbstractID3Parser{constructor(){super(...arguments),this.padding=0}init(t,e,n){return super.init(t,e,n),this.vorbisParser=new f.VorbisParser(t,n),this}
2async _parse(){if("fLaC"!==(await this.tokenizer.readToken(c.FourCcToken)).toString())throw new Error("Invalid FLAC preamble");let t;do{t=await this.tokenizer.readToken(M.BlockHeader),await this.parseDataBlock(t)}while(!t.lastBlock);if(this.tokenizer.fileInfo.size&&this.metadata.format.duration){const t=this.tokenizer.fileInfo.size-this.tokenizer.position;this.metadata.setFormat("bitrate",8*t/this.metadata.format.duration)}}parseDataBlock(t){switch(v(`blockHeader type=${t.type}, length=${t.length}`),t.type){case y.STREAMINFO:return this.parseBlockStreamInfo(t.length);case y.PADDING:this.padding+=t.length;break;case y.APPLICATION:case y.SEEKTABLE:break;case y.VORBIS_COMMENT:return this.parseComment(t.length);case y.CUESHEET:break;case y.PICTURE:return this.parsePicture(t.length).then();default:this.metadata.addWarning("Unknown block type: "+t.type)}return this.tokenizer.ignore(t.length).then()}async parseBlockStreamInfo(t){if(t!==M.BlockStreamInfo.len)throw new Error("Unexpected block-stream-info length");const e=await this.tokenizer.readToken(M.BlockStreamInfo);this.metadata.setFormat("container","FLAC"),this.metadata.setFormat("codec","FLAC"),this.metadata.setFormat("lossless",!0),this.metadata.setFormat("numberOfChannels",e.channels),this.metadata.setFormat("bitsPerSample",e.bitsPerSample),this.metadata.setFormat("sampleRate",e.sampleRate),this.metadata.setFormat("duration",e.totalSamples/e.sampleRate)}async parseComment(t){const data=await this.tokenizer.readToken(new o.BufferType(t)),e=new m.VorbisDecoder(data,0);e.readStringUtf8();const n=e.readInt32();for(let i=0;i<n;i++){const t=e.parseUserComment();this.vorbisParser.addTag(t.key,t.value)}}async parsePicture(t){if(this.options.skipCovers)return this.tokenizer.ignore(t);{const picture=await this.tokenizer.readToken(new h.VorbisPictureToken(t));this.vorbisParser.addTag("METADATA_BLOCK_PICTURE",picture)}}}e.FlacParser=w;class M{}M.BlockHeader={len:4,get:(t,e)=>
2({lastBlock:r.default.strtokBITSET.get(t,e,7),type:r.default.getBitAllignedNumber(t,e,1,7),length:o.UINT24_BE.get(t,e+1)})},M.BlockStreamInfo={len:34,get:(t,e)=>({minimumBlockSize:o.UINT16_BE.get(t,e),maximumBlockSize:o.UINT16_BE.get(t,e+2)/1e3,minimumFrameSize:o.UINT24_BE.get(t,e+4),maximumFrameSize:o.UINT24_BE.get(t,e+7),sampleRate:o.UINT24_BE.get(t,e+10)>>4,channels:r.default.getBitAllignedNumber(t,e+12,4,3)+1,bitsPerSample:r.default.getBitAllignedNumber(t,e+12,7,5)+1,totalSamples:r.default.getBitAllignedNumber(t,e+13,4,36),fileMD5:new o.BufferType(16).get(t,e+18)})}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(5),h=n(14),l=n(17),c=n(465),d=n(236),f=n(100),m=n(141),v=r("music-metadata:parser:MP4"),y={raw:{lossy:!1,format:"raw"},MAC3:{lossy:!0,format:"MACE 3:1"},MAC6:{lossy:!0,format:"MACE 6:1"},ima4:{lossy:!0,format:"IMA 4:1"},ulaw:{lossy:!0,format:"uLaw 2:1"},alaw:{lossy:!0,format:"uLaw 2:1"},Qclp:{lossy:!0,format:"QUALCOMM PureVoice"},".mp3":{lossy:!0,format:"MPEG-1 layer 3"},alac:{lossy:!1,format:"ALAC"},"ac-3":{lossy:!0,format:"AC-3"},mp4a:{lossy:!0,format:"MPEG-4/AAC"},mp4s:{lossy:!0,format:"MP4S"},c608:{lossy:!0,format:"CEA-608"},c708:{lossy:!0,format:"CEA-708"}};function w(t,e,n){return n.indexOf(t)===e}class M extends l.BasicParser{static read_BE_Signed_Integer(t){return o.readIntBE(t,0,t.length)}static read_BE_Unsigned_Integer(t){return o.readUIntBE(t,0,t.length)}async parse(){this.tracks=[];let t=this.tokenizer.fileInfo.size;for(;!this.tokenizer.fileInfo.size||t>0;){try{if("\0\0\0\0"===(await this.tokenizer.peekToken(d.Header)).name){const t=`Error at offset=${this.tokenizer.position}: box.id=0`;v(t),this.addWarning(t);break}}catch(t){const e=`Error at offset=${this.tokenizer.position}: ${t.message}`;v(e),this.addWarning(e);break}t-=(await c.Atom.readAtom(this.tokenizer,t=>this.handleAtom(t),null)).header.length}const e=[];this.tracks.forEach(track=>{const t=[];track.soundSampleDescription.forEach(e=>{const n={},r=y[e.dataFormat];if(r?(t.push(r.format),n.codecName=r.format):n.codecName=`<${e.dataFormat}>`,e.description){const{description:t}=e;t.sampleRate>0&&(n.type=m.TrackType.audio,n.audio={samplingFrequency:t.sampleRate,bitDepth:t.sampleSize,channels:t.numAudioChannels})}this.metadata.addStreamInfo(n)}),t.length>=1&&e.push(t.join("/"))}),e.length>0&&this.metadata.setFormat("codec",e.filter(w).join("+"));const n=this.tracks.filter(track=>track.soundSampleDescription.length>=1&&track.soundSampleDescription[0].description&&track.soundSampleDescription[0].description.sampleRate>0);if(n.length>=1){const t=n[0],e=t.duration/t.timeScale;this.metadata.setFormat("duration",e);const r=t.soundSampleDescription[0];r.description&&(this.metadata.setFormat("sampleRate",r.description.sampleRate),this.metadata.setFormat("bitsPerSample",r.description.sampleSize),this.metadata.setFormat("numberOfChannels",r.description.numAudioChannels));const o=y[r.dataFormat];o&&this.metadata.setFormat("lossless",!o.lossy),this.calculateBitRate()}}async handleAtom(t){if(t.parent)switch(t.parent.header.name){case"ilst":case"<id>":return this.parseMetadataItemData(t);case"stbl":switch(t.header.name){case"stsd":return this.parseAtom_stsd(t.getPayloadLength());case"stsc":return this.parseAtom_stsc(t.getPayloadLength());case"stts":return this.parseAtom_stts(t.getPayloadLength());case"stsz":return this.parseAtom_stsz(t.getPayloadLength());case"stco":return this.parseAtom_stco(t.getPayloadLength());
2default:v(`Ignore: stbl/${t.header.name} atom`)}}switch(t.header.name){case"ftyp":const e=await this.parseAtom_ftyp(t.getPayloadLength());v("ftyp: "+e.join("/"));const n=e.filter(w).join("/");return void this.metadata.setFormat("container",n);case"mdhd":return this.parseAtom_mdhd(t);case"mvhd":return this.parseAtom_mvhd(t);case"chap":return void(this.getTrackDescription().chapterList=await this.parseAtom_chap(t));case"tkhd":return void await this.parseAtom_tkhd(t.getPayloadLength());case"mdat":return this.audioLengthInBytes=t.getPayloadLength(),this.calculateBitRate(),this.parseAtom_mdat(t.getPayloadLength())}await this.tokenizer.ignore(t.getPayloadLength()),v(`Ignore atom data: path=${t.atomPath}, payload-len=${t.getPayloadLength()}`)}getTrackDescription(){return this.tracks[this.tracks.length-1]}calculateBitRate(){this.audioLengthInBytes&&this.metadata.format.duration&&this.metadata.setFormat("bitrate",8*this.audioLengthInBytes/this.metadata.format.duration)}addTag(t,e){this.metadata.addTag("iTunes",t,e)}addWarning(t){v("Warning: "+t),this.metadata.addWarning(t)}parseMetadataItemData(t){let e=t.header.name;return t.readAtoms(this.tokenizer,async t=>{switch(t.header.name){case"data":return this.parseValueAtom(e,t);case"name":const n=await this.tokenizer.readToken(new d.NameAtom(t.getPayloadLength()));e+=":"+n.name;break;case"mean":const r=await this.tokenizer.readToken(new d.NameAtom(t.getPayloadLength()));e+=":"+r.name;break;default:const h=await this.tokenizer.readToken(new o.BufferType(t.getPayloadLength()));this.addWarning("Unsupported meta-item: "+e+"["+t.header.name+"] => value="+h.toString("hex")+" ascii="+h.toString("ascii"))}},t.getPayloadLength())}async parseValueAtom(e,n){const r=await this.tokenizer.readToken(new d.DataAtom(n.header.length-d.Header.len));if(0!==r.type.set)throw new Error("Unsupported type-set != 0: "+r.type.set);switch(r.type.type){case 0:switch(e){case"trkn":case"disk":const t=o.UINT8.get(r.value,3),n=o.UINT8.get(r.value,5);this.addTag(e,t+"/"+n);break;case"gnre":const h=o.UINT8.get(r.value,1),l=f.Genres[h-1];this.addTag(e,l)}break;case 1:case 18:this.addTag(e,r.value.toString("utf-8"));break;case 13:if(this.options.skipCovers)break;this.addTag(e,{format:"image/jpeg",data:t.from(r.value)});break;case 14:if(this.options.skipCovers)break;this.addTag(e,{format:"image/png",data:t.from(r.value)});break;case 21:this.addTag(e,M.read_BE_Signed_Integer(r.value));break;case 22:this.addTag(e,M.read_BE_Unsigned_Integer(r.value));break;case 65:this.addTag(e,r.value.readInt8(0));break;case 66:this.addTag(e,r.value.readInt16BE(0));break;case 67:this.addTag(e,r.value.readInt32BE(0));break;default:this.addWarning(`atom key=${e}, has unknown well-known-type (data-type): ${r.type.type}`)}}async parseAtom_mvhd(t){await this.tokenizer.ignore(t.getPayloadLength())}async parseAtom_mdhd(t){const e=await this.tokenizer.readToken(new d.MdhdAtom(t.getPayloadLength())),td=this.getTrackDescription();td.creationTime=e.creationTime,td.modificationTime=e.modificationTime,td.timeScale=e.timeScale,td.duration=e.duration}async parseAtom_ftyp(t){const e=await this.tokenizer.readToken(d.ftyp);if((t-=d.ftyp.len)>0){const n=await this.parseAtom_ftyp(t),r=e.type.replace(/\W/g,"");return r.length>0&&n.push(r),n}return[]}async parseAtom_tkhd(t){const track=await this.tokenizer.readToken(new d.TrackHeaderAtom(t));this.tracks.push(track)}async parseAtom_stsd(t){const e=await this.tokenizer.readToken(new d.StsdAtom(t));this.getTrackDescription().soundSampleDescription=e.table.map(t=>this.parseSoundSampleDescription(t))}async parseAtom_stsc(t){const e=await this.tokenizer.readToken(new d.StscAtom(t));this.getTrackDescription().sampleToChunkTable=e.entries}async parseAtom_stts(t){const e=await this.tokenizer.readToken(new d.SttsAtom(t));this.getTrackDescription().timeToSampleTable=e.entries}parseSoundSampleDescription(t){const e={dataFormat:t.dataFormat,dataReferenceIndex:t.dataReferenceIndex};let n=0;const r=d.SoundSampleDescriptionVersion.get(t.description,n);return n+=d.SoundSampleDescriptionVersion.len,0===r.version||1===r.version?e.description=d.SoundSampleDescriptionV0.get(t.description,n):v(`Warning: sound-sample-description ${r} not implemented`),e}async parseAtom_chap(t){const e=[];let n=t.getPayloadLength();for(;n>=o.UINT32_BE.len;)e.push(await this.tokenizer.readNumber(o.UINT32_BE)),n-=o.UINT32_BE.len;return e}async parseAtom_stsz(t){const e=await this.tokenizer.readToken(new d.StszAtom(t)),td=this.getTrackDescription();
2td.sampleSize=e.sampleSize,td.sampleSizeTable=e.entries}async parseAtom_stco(t){const e=await this.tokenizer.readToken(new d.StcoAtom(t));this.getTrackDescription().chunkOffsetTable=e.entries}async parseAtom_mdat(t){if(this.options.includeChapters){const e=this.tracks.filter(track=>track.chapterList);if(1===e.length){const n=e[0].chapterList,r=this.tracks.filter(track=>-1!==n.indexOf(track.trackId));if(1===r.length)return this.parseChapterTrack(r[0],e[0],t)}}await this.tokenizer.ignore(t)}async parseChapterTrack(t,track,e){t.sampleSize||h.equal(t.chunkOffsetTable.length,t.sampleSizeTable.length,"chunk-offset-table & sample-size-table length");const n=[];for(let i=0;i<t.chunkOffsetTable.length&&e>0;++i){const r=t.chunkOffsetTable[i]-this.tokenizer.position,o=t.sampleSize>0?t.sampleSize:t.sampleSizeTable[i];e-=r+o,h.ok(e>=0,"Chapter chunk exceeding token length"),await this.tokenizer.ignore(r);const title=await this.tokenizer.readToken(new d.ChapterText(o));v(`Chapter ${i+1}: ${title}`);const l={title:title,sampleOffset:this.findSampleOffset(track,this.tokenizer.position)};v(`Chapter title=${l.title}, offset=${l.sampleOffset}/${this.tracks[0].duration}`),n.push(l)}this.metadata.setFormat("chapters",n),await this.tokenizer.ignore(e)}findSampleOffset(track,t){let e=0;track.timeToSampleTable.forEach(t=>{e+=t.count*t.duration}),v("Total duration="+e);let n=0;for(;n<track.chunkOffsetTable.length&&track.chunkOffsetTable[n]<t;)++n;return this.getChunkDuration(n+1,track)}getChunkDuration(t,track){let e=0,n=track.timeToSampleTable[e].count,r=track.timeToSampleTable[e].duration,o=1,h=this.getSamplesPerChunk(o,track.sampleToChunkTable),l=0;for(;o<t;){const t=Math.min(n,h);l+=t*r,n-=t,h-=t,0===h?(++o,h=this.getSamplesPerChunk(o,track.sampleToChunkTable)):(++e,n=track.timeToSampleTable[e].count,r=track.timeToSampleTable[e].duration)}return l}getSamplesPerChunk(t,e){for(let i=0;i<e.length-1;++i)if(t>=e[i].firstChunk&&t<e[i+1].firstChunk)return e[i].samplesPerChunk;return e[e.length-1].samplesPerChunk}}e.MP4Parser=M}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(236),h=r("music-metadata:parser:MP4:Atom");class l{constructor(header,t,e){this.header=header,this.extended=t,this.parent=e,this.children=[],this.atomPath=(this.parent?this.parent.atomPath+".":"")+this.header.name}static async readAtom(t,e,n){const r=t.position,header=await t.readToken(o.Header),c=1===header.length;c&&(header.length=await t.readToken(o.ExtendedSize));const d=new l(header,c,n);return h(`parse atom name=${d.atomPath}, extended=${d.extended}, offset=${r}, len=${d.header.length}`),await d.readData(t,e),d}getHeaderLength(){return this.extended?16:8}getPayloadLength(){return this.header.length-this.getHeaderLength()}async readAtoms(t,e,n){for(;n>0;){const r=await l.readAtom(t,e,this);this.children.push(r),n-=r.header.length}}async readData(t,e){switch(this.header.name){case"moov":case"udta":case"trak":case"mdia":case"minf":case"stbl":case"<id>":case"ilst":case"tref":return this.readAtoms(t,e,this.getPayloadLength());case"meta":return await t.ignore(4),this.readAtoms(t,e,this.getPayloadLength()-4);case"mdhd":case"mvhd":case"tkhd":case"stsz":case"mdat":default:return e(this)}}}e.Atom=l},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(14),o=n(5),h=n(29),l=n(6),c=n(11),d=n(101),f=n(467),m=l("music-metadata:parser:mpeg"),v={AudioObjectTypes:["AAC Main","AAC LC","AAC SSR","AAC LTP"],SamplingFrequencies:[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,void 0,void 0,-1]},y=[void 0,["front-center"],["front-left","front-right"],["front-center","front-left","front-right"],["front-center","front-left","front-right","back-center"],["front-center","front-left","front-right","back-left","back-right"],["front-center","front-left","front-right","back-left","back-right","LFE-channel"],["front-center","front-left","front-right","side-left","side-right","back-left","back-right","LFE-channel"]];class w{constructor(t,e){this.versionIndex=c.default.getBitAllignedNumber(t,e+1,3,2),this.layer=w.LayerDescription[c.default.getBitAllignedNumber(t,e+1,5,2)],this.versionIndex>1&&0===this.layer?this.parseAdtsHeader(t,e):this.parseMpegHeader(t,e),this.isProtectedByCRC=!c.default.isBitSet(t,e+1,7)}
2calcDuration(t){return t*this.calcSamplesPerFrame()/this.samplingRate}calcSamplesPerFrame(){return w.samplesInFrameTable[1===this.version?0:1][this.layer]}calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.channelModeIndex){if(1===this.version)return 17;if(2===this.version||2.5===this.version)return 9}else{if(1===this.version)return 32;if(2===this.version||2.5===this.version)return 17}}calcSlotSize(){return[null,4,1,1][this.layer]}parseMpegHeader(t,e){this.container="MPEG",this.bitrateIndex=c.default.getBitAllignedNumber(t,e+2,0,4),this.sampRateFreqIndex=c.default.getBitAllignedNumber(t,e+2,4,2),this.padding=c.default.isBitSet(t,e+2,6),this.privateBit=c.default.isBitSet(t,e+2,7),this.channelModeIndex=c.default.getBitAllignedNumber(t,e+3,0,2),this.modeExtension=c.default.getBitAllignedNumber(t,e+3,2,2),this.isCopyrighted=c.default.isBitSet(t,e+3,4),this.isOriginalMedia=c.default.isBitSet(t,e+3,5),this.emphasis=c.default.getBitAllignedNumber(t,e+3,7,2),this.version=w.VersionID[this.versionIndex],this.channelMode=w.ChannelMode[this.channelModeIndex],this.codec=`MPEG ${this.version} Layer ${this.layer}`;const n=this.calcBitrate();if(!n)throw new Error("Cannot determine bit-rate");if(this.bitrate=1e3*n,this.samplingRate=this.calcSamplingRate(),null==this.samplingRate)throw new Error("Cannot determine sampling-rate")}parseAdtsHeader(t,e){m("layer=0 => ADTS"),this.version=2===this.versionIndex?4:2,this.container="ADTS/MPEG-"+this.version;const n=c.default.getBitAllignedNumber(t,e+2,0,2);this.codec="AAC",this.codecProfile=v.AudioObjectTypes[n],m("MPEG-4 audio-codec="+this.codec);const r=c.default.getBitAllignedNumber(t,e+2,2,4);this.samplingRate=v.SamplingFrequencies[r],m("sampling-rate="+this.samplingRate);const o=c.default.getBitAllignedNumber(t,e+2,7,3);this.mp4ChannelConfig=y[o],m("channel-config="+this.mp4ChannelConfig.join("+")),this.frameLength=c.default.getBitAllignedNumber(t,e+3,6,2)<<11}calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;const t=`${Math.floor(this.version)}${this.layer}`;return w.bitrate_index[this.bitrateIndex][t]}calcSamplingRate(){return 3===this.sampRateFreqIndex?null:w.sampling_rate_freq_index[this.version][this.sampRateFreqIndex]}}w.SyncByte1=255,w.SyncByte2=224,w.VersionID=[2.5,null,2,1],w.LayerDescription=[0,3,2,1],w.ChannelMode=["stereo","joint_stereo","dual_channel","mono"],w.bitrate_index={1:{11:32,12:32,13:32,21:32,22:8,23:8},2:{11:64,12:48,13:40,21:48,22:16,23:16},3:{11:96,12:56,13:48,21:56,22:24,23:24},4:{11:128,12:64,13:56,21:64,22:32,23:32},5:{11:160,12:80,13:64,21:80,22:40,23:40},6:{11:192,12:96,13:80,21:96,22:48,23:48},7:{11:224,12:112,13:96,21:112,22:56,23:56},8:{11:256,12:128,13:112,21:128,22:64,23:64},9:{11:288,12:160,13:128,21:144,22:80,23:80},10:{11:320,12:192,13:160,21:160,22:96,23:96},11:{11:352,12:224,13:192,21:176,22:112,23:112},12:{11:384,12:256,13:224,21:192,22:128,23:128},13:{11:416,12:320,13:256,21:224,22:144,23:144},14:{11:448,12:384,13:320,21:256,22:160,23:160}},w.sampling_rate_freq_index={1:{0:44100,1:48e3,2:32e3},2:{0:22050,1:24e3,2:16e3},2.5:{0:11025,1:12e3,2:8e3}},w.samplesInFrameTable=[[0,384,1152,1152],[0,384,1152,576]];const M=4,_=(t,e)=>new w(t,e);class k extends d.AbstractID3Parser{constructor(){super(...arguments),this.frameCount=0,this.syncFrameCount=-1,this.countSkipFrameData=0,this.totalDataLength=0,this.bitrates=[],this.calculateEofDuration=!1,this.buf_frame_header=t.alloc(4),this.syncPeek={buf:t.alloc(1024),len:0}}async _parse(){this.metadata.setFormat("lossless",!1);try{let t=!1;for(;!t;)await this.sync(),t=await this.parseCommonMpegHeader()}catch(t){if(!(t instanceof h.EndOfStreamError))throw t;if(m("End-of-stream"),this.calculateEofDuration){const t=this.frameCount*this.samplesPerFrame;this.metadata.setFormat("numberOfSamples",t);const e=t/this.metadata.format.sampleRate;m(`Calculate duration at EOF: ${e} sec.`,e),this.metadata.setFormat("duration",e)}}}finalize(){const t=this.metadata.format,e=this.metadata.native.hasOwnProperty("ID3v1");if(t.duration&&this.tokenizer.fileInfo.size){const n=this.tokenizer.fileInfo.size-this.mpegOffset-(e?128:0);t.codecProfile&&"V"===t.codecProfile[0]&&this.metadata.setFormat("bitrate",8*n/t.duration)}else if(this.tokenizer.fileInfo.size&&"CBR"===t.codecProfile){const n=this.tokenizer.fileInfo.size-this.mpegOffset-(e?128:0),r=Math.round(n/this.frame_size)*this.samplesPerFrame;this.metadata.setFormat("numberOfSamples",r);const o=r/t.sampleRate;m("Calculate CBR duration based on file size: %s",o),this.metadata.setFormat("duration",o)}}async sync(){let t=!1;for(;;){let e=0;if(this.syncPeek.len=await this.tokenizer.peekBuffer(this.syncPeek.buf,{length:1024,mayBeLess:!0}),this.syncPeek.len<=256)throw new h.EndOfStreamError;for(;;){if(t&&224==(224&this.syncPeek.buf[e]))return this.buf_frame_header[0]=w.SyncByte1,this.buf_frame_header[1]=this.syncPeek.buf[e],await this.tokenizer.ignore(e),m(`Sync at offset=${this.tokenizer.position-1}, frameCount=${this.frameCount}`),this.syncFrameCount===this.frameCount&&(m("Re-synced MPEG stream, frameCount="+this.frameCount),this.frameCount=0,this.frame_size=0),void(this.syncFrameCount=this.frameCount);if(t=!1,e=this.syncPeek.buf.indexOf(w.SyncByte1,e),-1===e){if(this.syncPeek.len<this.syncPeek.buf.length)throw new h.EndOfStreamError;await this.tokenizer.ignore(this.syncPeek.len);break}++e,t=!0}}}async parseCommonMpegHeader(){let header;0===this.frameCount&&(this.mpegOffset=this.tokenizer.position-1),await this.tokenizer.peekBuffer(this.buf_frame_header,{offset:1,length:3});try{header=_(this.buf_frame_header,0)}catch(t){return await this.tokenizer.ignore(1),this.metadata.addWarning("Parse error: "+t.message),!1}return await this.tokenizer.ignore(3),this.metadata.setFormat("container",header.container),this.metadata.setFormat("codec",header.codec),this.metadata.setFormat("lossless",!1),this.metadata.setFormat("sampleRate",header.samplingRate),this.frameCount++,header.version>=2&&0===header.layer?this.parseAdts(header):this.parseAudioFrameHeader(header)}async parseAudioFrameHeader(header){this.metadata.setFormat("numberOfChannels","mono"===header.channelMode?1:2),this.metadata.setFormat("bitrate",header.bitrate),this.frameCount<2e5&&m("offset=%s MP%s bitrate=%s sample-rate=%s",this.tokenizer.position-4,header.layer,header.bitrate,header.samplingRate);const t=header.calcSlotSize();if(null===t)throw new Error("invalid slot_size");
2const e=header.calcSamplesPerFrame();m("samples_per_frame="+e);const n=e/8*header.bitrate/header.samplingRate+(header.padding?t:0);if(this.frame_size=Math.floor(n),this.audioFrameHeader=header,this.bitrates.push(header.bitrate),1===this.frameCount)return this.offset=M,await this.skipSideInformation(),!1;if(3===this.frameCount){if(this.areAllSame(this.bitrates)){if(this.samplesPerFrame=e,this.metadata.setFormat("codecProfile","CBR"),this.tokenizer.fileInfo.size)return!0}else if(this.metadata.format.duration)return!0;if(!this.options.duration)return!0}return this.options.duration&&4===this.frameCount&&(this.samplesPerFrame=e,this.calculateEofDuration=!0),this.offset=4,header.isProtectedByCRC?(await this.parseCrc(),!1):(await this.skipSideInformation(),!1)}async parseAdts(header){const e=t.alloc(3);await this.tokenizer.readBuffer(e),header.frameLength+=c.default.getBitAllignedNumber(e,0,0,11),this.totalDataLength+=header.frameLength,this.samplesPerFrame=1024;const n=header.samplingRate/this.samplesPerFrame,r=8*(0===this.frameCount?0:this.totalDataLength/this.frameCount)*n+.5;if(this.metadata.setFormat("bitrate",r),m(`frame-count=${this.frameCount}, size=${header.frameLength} bytes, bit-rate=${r}`),await this.tokenizer.ignore(header.frameLength>7?header.frameLength-7:1),3===this.frameCount){if(this.metadata.setFormat("codecProfile",header.codecProfile),header.mp4ChannelConfig&&this.metadata.setFormat("numberOfChannels",header.mp4ChannelConfig.length),!this.options.duration)return!0;this.calculateEofDuration=!0}return!1}async parseCrc(){return this.crc=await this.tokenizer.readNumber(o.INT16_BE),this.offset+=2,this.skipSideInformation()}async skipSideInformation(){const t=this.audioFrameHeader.calculateSideInfoLength();await this.tokenizer.readToken(new o.BufferType(t)),this.offset+=t,await this.readXtraInfoHeader()}async readXtraInfoHeader(){const t=await this.tokenizer.readToken(f.InfoTagHeaderTag);switch(this.offset+=f.InfoTagHeaderTag.len,t){case"Info":return this.metadata.setFormat("codecProfile","CBR"),this.readXingInfoHeader();case"Xing":const t=await this.readXingInfoHeader(),n=(e=t.vbrScale,"V"+Math.floor((100-e)/10));return this.metadata.setFormat("codecProfile",n),null;case"Xtra":break;case"LAME":const r=await this.tokenizer.readToken(f.LameEncoderVersion);return this.offset+=f.LameEncoderVersion.len,this.metadata.setFormat("tool","LAME "+r),await this.skipFrameData(this.frame_size-this.offset),null}var e;const n=this.frame_size-this.offset;return n<0?this.metadata.addWarning("Frame "+this.frameCount+"corrupt: negative frameDataLeft"):await this.skipFrameData(n),null}async readXingInfoHeader(){const t=await this.tokenizer.readToken(f.XingInfoTag);if(this.offset+=f.XingInfoTag.len,this.metadata.setFormat("tool",c.default.stripNulls(t.codec)),1==(1&t.headerFlags[3])){const e=this.audioFrameHeader.calcDuration(t.numFrames);return this.metadata.setFormat("duration",e),m("Get duration from Xing header: %s",this.metadata.format.duration),t}const e=this.frame_size-this.offset;return await this.skipFrameData(e),t}async skipFrameData(t){r.ok(t>=0,"frame-data-left cannot be negative"),await this.tokenizer.ignore(t),this.countSkipFrameData+=t}areAllSame(t){const e=t[0];return t.every(element=>element===e)}}e.MpegParser=k}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5);e.InfoTagHeaderTag=new r.StringType(4,"ascii"),e.LameEncoderVersion=new r.StringType(6,"ascii"),e.XingInfoTag={len:136,get:(t,e)=>({headerFlags:new r.BufferType(4).get(t,e),numFrames:r.UINT32_BE.get(t,e+4),streamSize:r.UINT32_BE.get(t,e+8),vbrScale:r.UINT32_BE.get(t,e+112),codec:new r.StringType(9,"ascii").get(t,e+116),infoTagRevision:r.UINT8.get(t,e+125)>>4,vbrMethod:15&r.UINT8.get(t,e+125)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(5),h=n(469),l=n(471),c=n(101),d=r("music-metadata:parser:musepack");class f extends c.AbstractID3Parser{async _parse(){let t;switch(await this.tokenizer.peekToken(new o.StringType(3,"binary"))){case"MP+":d("Musepack stream-version 7"),t=new l.MpcSv7Parser;break;case"MPC":d("Musepack stream-version 8"),t=new h.MpcSv8Parser;break;default:throw new Error("Invalid Musepack signature prefix")}return t.init(this.metadata,this.tokenizer,this.options),t.parse()}}e.default=f},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(14),h=n(17),l=n(470),c=n(58),d=n(15),f=r("music-metadata:parser:musepack");class m extends h.BasicParser{constructor(){super(...arguments),this.audioLength=0}async parse(){const t=await this.tokenizer.readToken(d.FourCcToken);return o.equal(t,"MPCK","Magic number"),this.metadata.setFormat("container","Musepack, SV8"),this.parsePacket()}async parsePacket(){const t=new l.StreamReader(this.tokenizer);for(;;){const header=await t.readPacketHeader();switch(f(`packet-header key=${header.key}, payloadLength=${header.payloadLength}`),header.key){case"SH":const e=await t.readStreamHeader(header.payloadLength);this.metadata.setFormat("numberOfSamples",e.sampleCount),this.metadata.setFormat("sampleRate",e.sampleFrequency),this.metadata.setFormat("duration",e.sampleCount/e.sampleFrequency),this.metadata.setFormat("numberOfChannels",e.channelCount);break;case"AP":this.audioLength+=header.payloadLength,await this.tokenizer.ignore(header.payloadLength);break;case"RG":case"EI":case"SO":case"ST":case"CT":await this.tokenizer.ignore(header.payloadLength);break;case"SE":return this.metadata.setFormat("bitrate",8*this.audioLength/this.metadata.format.duration),c.APEv2Parser.tryParseApeHeader(this.metadata,this.tokenizer,this.options);default:throw new Error("Unexpected header: "+header.key)}}}}e.MpcSv8Parser=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(11),h=n(6)("music-metadata:parser:musepack:sv8"),l=new r.StringType(2,"binary"),c={len:5,get:(t,e)=>({crc:r.UINT32_LE.get(t,e),streamVersion:r.UINT8.get(t,e+4)})},d={len:2,get:(t,e)=>({sampleFrequency:[44100,48e3,37800,32e3][o.default.getBitAllignedNumber(t,e,0,3)],maxUsedBands:o.default.getBitAllignedNumber(t,e,3,5),channelCount:o.default.getBitAllignedNumber(t,e+1,0,4)+1,msUsed:o.default.isBitSet(t,e+1,4),audioBlockFrames:o.default.getBitAllignedNumber(t,e+1,5,3)})};e.StreamReader=class{constructor(t){this.tokenizer=t}async readPacketHeader(){const t=await this.tokenizer.readToken(l),e=await this.readVariableSizeField();return{key:t,payloadLength:e.value-2-e.len}}async readStreamHeader(t){const e={};h("Reading SH at offset="+this.tokenizer.position);const n=await this.tokenizer.readToken(c);t-=c.len,Object.assign(e,n),h("SH.streamVersion = "+n.streamVersion);const r=await this.readVariableSizeField();t-=r.len,e.sampleCount=r.value;const o=await this.readVariableSizeField();t-=o.len,e.beginningOfSilence=o.value;const l=await this.tokenizer.readToken(d);return t-=d.len,Object.assign(e,l),await this.tokenizer.ignore(t),e}async readVariableSizeField(t=1,e=0){let n=await this.tokenizer.readNumber(r.UINT8);return 0==(128&n)?{len:t,value:e+n}:(n&=127,n+=e,this.readVariableSizeField(t+1,n<<7))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(14),h=n(17),l=n(472),c=n(58),d=n(473),f=r("music-metadata:parser:musepack");class m extends h.BasicParser{constructor(){super(...arguments),this.audioLength=0}async parse(){const header=await this.tokenizer.readToken(l.Header);o.equal(header.signature,"MP+","Magic number"),f(`stream-version=${header.streamMajorVersion}.${header.streamMinorVersion}`),this.metadata.setFormat("container","Musepack, SV7"),this.metadata.setFormat("sampleRate",header.sampleFrequency);const t=1152*(header.frameCount-1)+header.lastFrameLength;this.metadata.setFormat("numberOfSamples",t),this.duration=t/header.sampleFrequency,this.metadata.setFormat("duration",this.duration),this.bitreader=new d.BitReader(this.tokenizer),this.metadata.setFormat("numberOfChannels",header.midSideStereo||header.intensityStereo?2:1);const e=await this.bitreader.read(8);return this.metadata.setFormat("codec",(e/100).toFixed(2)),await this.skipAudioData(header.frameCount),f("End of audio stream, switching to APEv2, offset="+this.tokenizer.position),c.APEv2Parser.tryParseApeHeader(this.metadata,this.tokenizer,this.options)}async skipAudioData(t){for(;t-- >0;){const t=await this.bitreader.read(20);this.audioLength+=20+t,await this.bitreader.ignore(t)}
2const e=await this.bitreader.read(11);this.audioLength+=e,this.metadata.setFormat("bitrate",this.audioLength/this.duration)}}e.MpcSv7Parser=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(11);e.Header={len:24,get:(t,e)=>{const header={signature:t.toString("binary",e,e+3),streamMinorVersion:o.default.getBitAllignedNumber(t,e+3,0,4),streamMajorVersion:o.default.getBitAllignedNumber(t,e+3,4,4),frameCount:r.UINT32_LE.get(t,e+4),maxLevel:r.UINT16_LE.get(t,e+8),sampleFrequency:[44100,48e3,37800,32e3][o.default.getBitAllignedNumber(t,e+10,0,2)],link:o.default.getBitAllignedNumber(t,e+10,2,2),profile:o.default.getBitAllignedNumber(t,e+10,4,4),maxBand:o.default.getBitAllignedNumber(t,e+11,0,6),intensityStereo:o.default.isBitSet(t,e+11,6),midSideStereo:o.default.isBitSet(t,e+11,7),titlePeak:r.UINT16_LE.get(t,e+12),titleGain:r.UINT16_LE.get(t,e+14),albumPeak:r.UINT16_LE.get(t,e+16),albumGain:r.UINT16_LE.get(t,e+18),lastFrameLength:r.UINT32_LE.get(t,e+20)>>>20&2047,trueGapless:o.default.isBitSet(t,e+23,0)};return header.lastFrameLength=header.trueGapless?r.UINT32_LE.get(t,20)>>>20&2047:0,header}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5);e.BitReader=class{constructor(t){this.tokenizer=t,this.pos=0,this.dword=void 0}async read(t){for(;void 0===this.dword;)this.dword=await this.tokenizer.readToken(r.UINT32_LE);let e=this.dword;return this.pos+=t,this.pos<32?(e>>>=32-this.pos,e&(1<<t)-1):(this.pos-=32,0===this.pos?(this.dword=void 0,e&(1<<t)-1):(this.dword=await this.tokenizer.readToken(r.UINT32_LE),this.pos&&(e<<=this.pos,e|=this.dword>>>32-this.pos),e&(1<<t)-1))}async ignore(t){if(this.pos>0){const e=32-this.pos;this.dword=void 0,t-=e,this.pos=0}const e=t%32,n=(t-e)/32;return await this.tokenizer.ignore(4*n),this.read(e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(6),h=n(14),l=n(11),c=n(15),d=n(102),f=n(475),m=n(477),v=n(17),y=n(479),w=n(29),M=o("music-metadata:parser:ogg");class _{constructor(header){this.len=header.page_segments}static sum(t,e,n){let s=0;for(let i=e;i<e+n;++i)s+=t[i];return s}get(t,e){return{totalPageSize:_.sum(t,e,this.len)}}}e.SegmentTable=_;class k extends v.BasicParser{async parse(){M("pos=%s, parsePage()",this.tokenizer.position);try{let header;do{header=await this.tokenizer.readToken(k.Header),h.strictEqual(header.capturePattern,"OggS","Ogg capture pattern"),this.metadata.setFormat("container","Ogg"),this.header=header,this.pageNumber=header.pageSequenceNo,M("page#=%s, Ogg.id=%s",header.pageSequenceNo,header.capturePattern);const t=await this.tokenizer.readToken(new _(header));M("totalPageSize=%s",t.totalPageSize);const e=await this.tokenizer.readToken(new r.BufferType(t.totalPageSize));if(M("firstPage=%s, lastPage=%s, continued=%s",header.headerType.firstPage,header.headerType.lastPage,header.headerType.continued),header.headerType.firstPage){const t=new r.StringType(7,"ascii").get(e,0);switch(t){case"�vorbis":M("Set page consumer to Ogg/Vorbis"),this.pageConsumer=new d.VorbisParser(this.metadata,this.options);break;case"OpusHea":M("Set page consumer to Ogg/Opus"),this.pageConsumer=new f.OpusParser(this.metadata,this.options,this.tokenizer);break;case"Speex  ":M("Set page consumer to Ogg/Speex"),this.pageConsumer=new m.SpeexParser(this.metadata,this.options,this.tokenizer);break;case"fishead":case"\0theora":M("Set page consumer to Ogg/Theora"),this.pageConsumer=new y.TheoraParser(this.metadata,this.options,this.tokenizer);break;default:throw new Error("gg audio-codec not recognized (id="+t+")")}}this.pageConsumer.parsePage(header,e)}while(!header.headerType.lastPage)}catch(t){if(t instanceof w.EndOfStreamError)return void M("End-of-stream");if(t.message.startsWith("FourCC")&&this.pageNumber>0)return this.metadata.addWarning("Invalid FourCC ID, maybe last OGG-page is not marked with last-page flag"),this.pageConsumer.flush();throw t}}}e.OggParser=k,k.Header={len:27,get:(t,e)=>({capturePattern:c.FourCcToken.get(t,e),version:t.readUInt8(e+4),headerType:{continued:l.default.strtokB
2ITSET.get(t,e+5,0),firstPage:l.default.strtokBITSET.get(t,e+5,1),lastPage:l.default.strtokBITSET.get(t,e+5,2)},absoluteGranulePosition:t.readIntLE(e+6,6),streamSerialNumber:r.UINT32_LE.get(t,e+14),pageSequenceNo:r.UINT32_LE.get(t,e+18),pageChecksum:r.UINT32_LE.get(t,e+22),page_segments:t.readUInt8(e+26)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(476),h=n(102);class l extends h.VorbisParser{constructor(t,e,n){super(t,e),this.tokenizer=n,this.lastPos=-1}parseFirstPage(header,t){if(this.metadata.setFormat("codec","Opus"),this.idHeader=new o.IdHeader(t.length).get(t,0),"OpusHead"!==this.idHeader.magicSignature)throw new Error("Illegal ogg/Opus magic-signature");this.metadata.setFormat("sampleRate",this.idHeader.inputSampleRate),this.metadata.setFormat("numberOfChannels",this.idHeader.channelCount)}parseFullPage(t){switch(new r.StringType(8,"ascii").get(t,0)){case"OpusTags":this.parseUserCommentList(t,8),this.lastPos=this.tokenizer.position}}calculateDuration(header){if(this.metadata.format.sampleRate&&header.absoluteGranulePosition>=0&&(this.metadata.setFormat("numberOfSamples",header.absoluteGranulePosition-this.idHeader.preSkip),this.metadata.setFormat("duration",this.metadata.format.numberOfSamples/this.idHeader.inputSampleRate),-1!==this.lastPos&&this.tokenizer.fileInfo.size&&this.metadata.format.duration)){const t=this.tokenizer.fileInfo.size-this.lastPos;this.metadata.setFormat("bitrate",8*t/this.metadata.format.duration)}}}e.OpusParser=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5);e.IdHeader=class{constructor(t){if(this.len=t,t<19)throw new Error("ID-header-page 0 should be at least 19 bytes long")}get(t,e){return{magicSignature:new r.StringType(8,"ascii").get(t,e+0),version:t.readUInt8(e+8),channelCount:t.readUInt8(e+9),preSkip:t.readInt16LE(e+10),inputSampleRate:t.readInt32LE(e+12),outputGain:t.readInt16LE(e+16),channelMapping:t.readUInt8(e+18)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(478),h=n(102),l=r("music-metadata:parser:ogg:speex");class c extends h.VorbisParser{constructor(t,e,n){super(t,e),this.tokenizer=n}parseFirstPage(header,t){l("First Ogg/Speex page");const e=o.Header.get(t,0);this.metadata.setFormat("codec","Speex "+e.version),this.metadata.setFormat("numberOfChannels",e.nb_channels),this.metadata.setFormat("sampleRate",e.rate),-1!==e.bitrate&&this.metadata.setFormat("bitrate",e.bitrate)}}e.SpeexParser=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(11);e.Header={len:80,get:(t,e)=>({speex:new r.StringType(8,"ascii").get(t,e+0),version:o.default.trimRightNull(new r.StringType(20,"ascii").get(t,e+8)),version_id:t.readInt32LE(e+28),header_size:t.readInt32LE(e+32),rate:t.readInt32LE(e+36),mode:t.readInt32LE(e+40),mode_bitstream_version:t.readInt32LE(e+44),nb_channels:t.readInt32LE(e+48),bitrate:t.readInt32LE(e+52),frame_size:t.readInt32LE(e+56),vbr:t.readInt32LE(e+60),frames_per_packet:t.readInt32LE(e+64),extra_headers:t.readInt32LE(e+68),reserved1:t.readInt32LE(e+72),reserved2:t.readInt32LE(e+76)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),o=n(480),h=r("music-metadata:parser:ogg:theora");e.TheoraParser=class{constructor(t,e,n){this.metadata=t,this.tokenizer=n}parsePage(header,t){header.headerType.firstPage&&this.parseFirstPage(header,t)}flush(){h("flush")}parseFirstPage(header,t){h("First Ogg/Theora page"),this.metadata.setFormat("codec","Theora");const e=o.IdentificationHeader.get(t,0);this.metadata.setFormat("bitrate",e.nombr)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5);e.IdentificationHeader={len:42,get:(t,e)=>({id:new r.StringType(7,"ascii").get(t,e),vmaj:t.readUInt8(e+7),vmin:t.readUInt8(e+8),vrev:t.readUInt8(e+9),vmbw:t.readUInt16BE(e+10),vmbh:t.readUInt16BE(e+17),nombr:r.UINT24_BE.get(t,e+37),nqual:t.readUInt8(e+40)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(29),o=n(5),h=n(6),l=n(482),c=n(483),d=n(78),f=n(11),m=n(15),v=n(17),y=n(143),w=h("music-metadata:parser:RIFF");class M extends v.BasicParser{async parse(){const t=await this.tokenizer.readToken(l.Header);if(w(`pos=${this.tokenizer.position}, parse: chunkID=${t.chunkID}`),"RIFF"===t.chunkID)return this.parseRiffChunk(t.chunkSize).catch(t=>{if(!(t instanceof r.EndOfStreamError))throw t})}async parseRiffChunk(t){const e=await this.tokenizer.readToken(m.FourCcToken);switch(this.metadata.setFormat("container",e),e){case"WAVE":return this.readWaveChunk(t-m.FourCcToken.len);default:throw new Error("Unsupported RIFF format: RIFF/"+e)}}async readWaveChunk(t){do{const header=await this.tokenizer.readToken(l.Header);switch(t-=l.Header.len+header.chunkSize,this.header=header,w(`pos=${this.tokenizer.position}, readChunk: chunkID=RIFF/WAVE/${header.chunkID}`),header.chunkID){case"LIST":await this.parseListTag(header);break;case"fact":this.metadata.setFormat("lossless",!1),this.fact=await this.tokenizer.readToken(new c.FactChunk(header));break;case"fmt ":const t=await this.tokenizer.readToken(new c.Format(header));let e=c.WaveFormat[t.wFormatTag];e||(w("WAVE/non-PCM format="+t.wFormatTag),e="non-PCM ("+t.wFormatTag+")"),this.metadata.setFormat("codec",e),this.metadata.setFormat("bitsPerSample",t.wBitsPerSample),this.metadata.setFormat("sampleRate",t.nSamplesPerSec),this.metadata.setFormat("numberOfChannels",t.nChannels),this.metadata.setFormat("bitrate",t.nBlockAlign*t.nSamplesPerSec*8),this.blockAlign=t.nBlockAlign;break;case"id3 ":case"ID3 ":const n=await this.tokenizer.readToken(new o.BufferType(header.chunkSize)),h=new y.ID3Stream(n),l=r.fromStream(h);await(new d.ID3v2Parser).parse(this.metadata,l,this.options);break;case"data":!1!==this.metadata.format.lossless&&this.metadata.setFormat("lossless",!0);const f=this.fact?this.fact.dwSampleLength:header.chunkSize/this.blockAlign;this.metadata.setFormat("numberOfSamples",f),this.metadata.setFormat("duration",f/this.metadata.format.sampleRate),this.metadata.setFormat("bitrate",this.metadata.format.numberOfChannels*this.blockAlign*this.metadata.format.sampleRate),await this.tokenizer.ignore(header.chunkSize);break;default:w(`Ignore chunk: RIFF/${header.chunkID} of ${header.chunkSize} bytes`),this.metadata.addWarning("Ignore chunk: RIFF/"+header.chunkID),await this.tokenizer.ignore(header.chunkSize)}
2this.header.chunkSize%2==1&&(w("Read odd padding byte"),await this.tokenizer.ignore(1))}while(t>0)}async parseListTag(t){const e=await this.tokenizer.readToken(m.FourCcToken);switch(w("pos=%s, parseListTag: chunkID=RIFF/WAVE/LIST/%s",this.tokenizer.position,e),e){case"INFO":return this.parseRiffInfoTags(t.chunkSize-4);case"adtl":default:return this.metadata.addWarning("Ignore chunk: RIFF/WAVE/LIST/"+e),w("Ignoring chunkID=RIFF/WAVE/LIST/"+e),this.tokenizer.ignore(t.chunkSize-4).then()}}async parseRiffInfoTags(t){for(;t>=8;){const header=await this.tokenizer.readToken(l.Header),e=new l.ListInfoTagValue(header),n=await this.tokenizer.readToken(e);this.addTag(header.chunkID,f.default.stripNulls(n)),t-=8+e.len}if(0!==t)throw Error("Illegal remaining size: "+t)}addTag(t,e){this.metadata.addTag("exif",t,e)}}e.WaveParser=M},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(15);e.Header={len:8,get:(t,e)=>({chunkID:o.FourCcToken.get(t,e),chunkSize:t.readUInt32LE(e+4)})};e.ListInfoTagValue=class{constructor(t){this.tagHeader=t,this.len=t.chunkSize,this.len+=1&this.len}get(t,e){return new r.StringType(this.tagHeader.chunkSize,"ascii").get(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(14);!function(t){t[t.PCM=1]="PCM",t[t.ADPCM=2]="ADPCM",t[t.IEEE_FLOAT=3]="IEEE_FLOAT",t[t.MPEG_ADTS_AAC=5632]="MPEG_ADTS_AAC",t[t.MPEG_LOAS=5634]="MPEG_LOAS",t[t.RAW_AAC1=255]="RAW_AAC1",t[t.DOLBY_AC3_SPDIF=146]="DOLBY_AC3_SPDIF",t[t.DVM=8192]="DVM",t[t.RAW_SPORT=576]="RAW_SPORT",t[t.ESST_AC3=577]="ESST_AC3",t[t.DRM=9]="DRM",t[t.DTS2=8193]="DTS2",t[t.MPEG=80]="MPEG"}(e.WaveFormat||(e.WaveFormat={}));e.Format=class{constructor(header){r.ok(header.chunkSize>=16,"16 for PCM."),this.len=header.chunkSize}get(t,e){return{wFormatTag:t.readUInt16LE(e),nChannels:t.readUInt16LE(e+2),nSamplesPerSec:t.readUInt32LE(e+4),nAvgBytesPerSec:t.readUInt32LE(e+8),nBlockAlign:t.readUInt16LE(e+12),wBitsPerSample:t.readUInt16LE(e+14)}}};e.FactChunk=class{constructor(header){r.ok(header.chunkSize>=4,"minimum fact chunk size."),this.len=header.chunkSize}get(t,e){return{dwSampleLength:t.readUInt32LE(e)}}}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(14),h=n(58),l=n(15),c=n(17),d=n(485),f=n(6)("music-metadata:parser:WavPack");class m extends c.BasicParser{async parse(){return this.audioDataSize=0,await this.parseWavPackBlocks(),h.APEv2Parser.tryParseApeHeader(this.metadata,this.tokenizer,this.options)}async parseWavPackBlocks(){do{if("wvpk"!==await this.tokenizer.peekToken(l.FourCcToken))break;const header=await this.tokenizer.readToken(d.WavPack.BlockHeaderToken);o.strictEqual(header.BlockID,"wvpk","WavPack Block-ID"),f(`WavPack header blockIndex=${header.blockIndex}, len=${d.WavPack.BlockHeaderToken.len}`),0!==header.blockIndex||this.metadata.format.container||(this.metadata.setFormat("container","WavPack"),this.metadata.setFormat("lossless",!header.flags.isHybrid),this.metadata.setFormat("bitsPerSample",header.flags.bitsPerSample),header.flags.isDSD||(this.metadata.setFormat("sampleRate",header.flags.samplingRate),this.metadata.setFormat("duration",header.totalSamples/header.flags.samplingRate)),this.metadata.setFormat("numberOfChannels",header.flags.isMono?1:2),this.metadata.setFormat("numberOfSamples",header.totalSamples),this.metadata.setFormat("codec",header.flags.isDSD?"DSD":"PCM"));const t=header.blockSize-(d.WavPack.BlockHeaderToken.len-8);0===header.blockIndex?await this.parseMetadataSubBlock(header,t):await this.tokenizer.ignore(t),header.blockSamples>0&&(this.audioDataSize+=header.blockSize)}while(!this.tokenizer.fileInfo.size||this.tokenizer.fileInfo.size-this.tokenizer.position>=d.WavPack.BlockHeaderToken.len);this.metadata.setFormat("bitrate",8*this.audioDataSize/this.metadata.format.duration)}async parseMetadataSubBlock(header,e){for(;e>d.WavPack.MetadataIdToken.len;){const n=await this.tokenizer.readToken(d.WavPack.MetadataIdToken),h=await this.tokenizer.readNumber(n.largeBlock?r.UINT24_LE:r.UINT8),data=t.alloc(2*h-(n.isOddSize?1:0));switch(await this.tokenizer.readBuffer(data),f(`Metadata Sub-Blocks functionId=0x${n.functionId.toString(16)}, id.largeBlock=${n.largeBlock},data-size=${data.length}`),n.functionId){case 0:break;case 14:f("ID_DSD_BLOCK");const t=1<<data.readUInt8(0),e=header.flags.samplingRate*t*8;
2o.ok(header.flags.isDSD,"Only expect DSD block if DSD-flag is set"),this.metadata.setFormat("sampleRate",e),this.metadata.setFormat("duration",header.totalSamples/e);break;case 36:f("ID_ALT_TRAILER: trailer for non-wav files");break;case 38:this.metadata.setFormat("audioMD5",data);break;case 47:f("ID_BLOCK_CHECKSUM: checksum="+data.toString("hex"));break;default:f("Ignore unsupported meta-sub-block-id functionId=0x"+n.functionId.toString(16))}e-=d.WavPack.MetadataIdToken.len+(n.largeBlock?r.UINT24_LE.len:r.UINT8.len)+2*h,f("remainingLength="+e),n.isOddSize&&this.tokenizer.ignore(1)}o.strictEqual(e,0,"metadata-sub-block should fit it remaining length")}}e.WavPackParser=m}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(15),h=[6e3,8e3,9600,11025,12e3,16e3,22050,24e3,32e3,44100,48e3,64e3,88200,96e3,192e3,-1];class l{static isBitSet(t,e){return 1===l.getBitAllignedNumber(t,e,1)}static getBitAllignedNumber(t,e,n){return t>>>e&4294967295>>>32-n}}e.WavPack=l,l.BlockHeaderToken={len:32,get:(t,e)=>{const n=r.UINT32_LE.get(t,e+24),c={BlockID:o.FourCcToken.get(t,e),blockSize:r.UINT32_LE.get(t,e+4),version:r.UINT16_LE.get(t,e+8),totalSamples:r.UINT32_LE.get(t,e+12),blockIndex:r.UINT32_LE.get(t,e+16),blockSamples:r.UINT32_LE.get(t,e+20),flags:{bitsPerSample:8*(1+l.getBitAllignedNumber(n,0,2)),isMono:l.isBitSet(n,2),isHybrid:l.isBitSet(n,3),isJointStereo:l.isBitSet(n,4),crossChannel:l.isBitSet(n,5),hybridNoiseShaping:l.isBitSet(n,6),floatingPoint:l.isBitSet(n,7),samplingRate:h[l.getBitAllignedNumber(n,23,4)],isDSD:l.isBitSet(n,31)},crc:new r.BufferType(4).get(t,e+28)};return c.flags.isDSD&&(c.totalSamples*=8),c}},l.MetadataIdToken={len:1,get:(t,e)=>({functionId:l.getBitAllignedNumber(t[e],0,6),isOptional:l.isBitSet(t[e],5),isOddSize:l.isBitSet(t[e],6),largeBlock:l.isBitSet(t[e],7)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(101),o=n(14),h=n(6),l=n(487),c=n(78),d=h("music-metadata:parser:DSF");class f extends r.AbstractID3Parser{async _parse(){const t=this.tokenizer.position,e=await this.tokenizer.readToken(l.ChunkHeader);o.strictEqual(e.id,"DSD ","Invalid chunk signature"),this.metadata.setFormat("container","DSF"),this.metadata.setFormat("lossless",!0);const n=await this.tokenizer.readToken(l.DsdChunk);if(0!==n.metadataPointer)return d("expect ID3v2 at offset="+n.metadataPointer),await this.parseChunks(n.fileSize-e.size),await this.tokenizer.ignore(n.metadataPointer-this.tokenizer.position-t),(new c.ID3v2Parser).parse(this.metadata,this.tokenizer,this.options);d("No ID3v2 tag present")}async parseChunks(t){for(;t>=l.ChunkHeader.len;){const e=await this.tokenizer.readToken(l.ChunkHeader);switch(d(`Parsing chunk name=${e.id} size=${e.size}`),e.id){case"fmt ":const t=await this.tokenizer.readToken(l.FormatChunk);this.metadata.setFormat("numberOfChannels",t.channelNum),this.metadata.setFormat("sampleRate",t.samplingFrequency),this.metadata.setFormat("bitsPerSample",t.bitsPerSample),this.metadata.setFormat("numberOfSamples",t.sampleCount),this.metadata.setFormat("duration",t.sampleCount/t.samplingFrequency);const n=t.bitsPerSample*t.samplingFrequency*t.channelNum;return void this.metadata.setFormat("bitrate",n);default:this.tokenizer.ignore(e.size-l.ChunkHeader.len)}t-=e.size}}}e.DsfParser=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(15);e.ChunkHeader={len:12,get:(t,e)=>({id:o.FourCcToken.get(t,e),size:r.UINT64_LE.get(t,e+4)})},e.DsdChunk={len:16,get:(t,e)=>({fileSize:r.INT64_LE.get(t,e),metadataPointer:r.INT64_LE.get(t,e+8)})},function(t){t[t.mono=1]="mono",t[t.stereo=2]="stereo",t[t.channels=3]="channels",t[t.quad=4]="quad",t[t["4 channels"]=5]="4 channels",t[t["5 channels"]=6]="5 channels",t[t["5.1 channels"]=7]="5.1 channels"}(e.ChannelType||(e.ChannelType={})),e.FormatChunk={len:40,get:(t,e)=>({formatVersion:r.INT32_LE.get(t,e),formatID:r.INT32_LE.get(t,e+4),channelType:r.INT32_LE.get(t,e+8),channelNum:r.INT32_LE.get(t,e+12),samplingFrequency:r.INT32_LE.get(t,e+16),bitsPerSample:r.INT32_LE.get(t,e+20),sampleCount:r.INT64_LE.get(t,e+24),blockSizePerChannel:r.INT32_LE.get(t,e+32)})}},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});const r=n(14),o=n(5),h=n(6),l=n(15),c=n(17),d=n(143),f=n(489),m=n(29),v=n(78),y=h("music-metadata:parser:aiff");class w extends c.BasicParser{async parse(){const header=await this.tokenizer.readToken(f.ChunkHeader);r.strictEqual(header.chunkID,"FRM8");const t=(await this.tokenizer.readToken(l.FourCcToken)).trim();switch(t){case"DSD":return this.metadata.setFormat("container","DSDIFF/"+t),this.metadata.setFormat("lossless",!0),this.readFmt8Chunks(header.chunkSize-l.FourCcToken.len);default:throw Error("Unsupported DSDIFF type: "+t)}}async readFmt8Chunks(t){for(;t>=f.ChunkHeader.len;){const e=await this.tokenizer.readToken(f.ChunkHeader);y("Chunk id="+e.chunkID),await this.readData(e),t-=f.ChunkHeader.len+e.chunkSize}}async readData(header){y(`Reading data of chunk[ID=${header.chunkID}, size=${header.chunkSize}]`);const t=this.tokenizer.position;switch(header.chunkID.trim()){case"FVER":const t=await this.tokenizer.readToken(o.UINT32_LE);y("DSDIFF version="+t);break;case"PROP":const e=await this.tokenizer.readToken(l.FourCcToken);r.strictEqual(e,"SND "),await this.handleSoundPropertyChunks(header.chunkSize-l.FourCcToken.len);break;case"ID3":const n=await this.tokenizer.readToken(new o.BufferType(header.chunkSize)),h=new d.ID3Stream(n),c=m.fromStream(h);await(new v.ID3v2Parser).parse(this.metadata,c,this.options);break;default:y(`Ignore chunk[ID=${header.chunkID}, size=${header.chunkSize}]`);break;case"DSD":this.metadata.setFormat("numberOfSamples",8*header.chunkSize/this.metadata.format.numberOfChannels),this.metadata.setFormat("duration",this.metadata.format.numberOfSamples/this.metadata.format.sampleRate)}const e=header.chunkSize-(this.tokenizer.position-t);e>0&&(y(`After Parsing chunk, remaining ${e} bytes`),await this.tokenizer.ignore(e))}async handleSoundPropertyChunks(t){for(y("Parsing sound-property-chunks, remainingSize="+t);t>0;){const e=await this.tokenizer.readToken(f.ChunkHeader);y(`Sound-property-chunk[ID=${e.chunkID}, size=${e.chunkSize}]`);const n=this.tokenizer.position;switch(e.chunkID.trim()){case"FS":const t=await this.tokenizer.readToken(o.UINT32_BE);this.metadata.setFormat("sampleRate",t);break;case"CHNL":const n=await this.tokenizer.readToken(o.UINT16_BE);this.metadata.setFormat("numberOfChannels",n),await this.handleChannelChunks(e.chunkSize-o.UINT16_BE.len);break;case"CMPR":const r=(await this.tokenizer.readToken(l.FourCcToken)).trim(),h=await this.tokenizer.readToken(o.UINT8),c=await this.tokenizer.readToken(new o.StringType(h,"ascii"));"DSD"===r&&(this.metadata.setFormat("lossless",!0),this.metadata.setFormat("bitsPerSample",1)),this.metadata.setFormat("codec",`${r} (${c})`);break;case"ABSS":const d=await this.tokenizer.readToken(o.UINT16_BE),f=await this.tokenizer.readToken(o.UINT8),m=await this.tokenizer.readToken(o.UINT8),v=await this.tokenizer.readToken(o.UINT32_BE);y(`ABSS ${d}:${f}:${m}.${v}`);break;case"LSCO":const w=await this.tokenizer.readToken(o.UINT16_BE);y("LSCO lsConfig="+w);break;case"COMT":default:y(`Unknown sound-property-chunk[ID=${e.chunkID}, size=${e.chunkSize}]`),await this.tokenizer.ignore(e.chunkSize)}const r=e.chunkSize-(this.tokenizer.position-n);r>0&&(y(`After Parsing sound-property-chunk ${e.chunkSize}, remaining ${r} bytes`),await this.tokenizer.ignore(r)),t-=f.ChunkHeader.len+e.chunkSize,y("Parsing sound-property-chunks, remainingSize="+t)}if(this.metadata.format.lossless&&this.metadata.format.sampleRate&&this.metadata.format.numberOfChannels&&this.metadata.format.bitsPerSample){const t=this.metadata.format.sampleRate*this.metadata.format.numberOfChannels*this.metadata.format.bitsPerSample;this.metadata.setFormat("bitrate",t)}}async handleChannelChunks(t){y("Parsing channel-chunks, remainingSize="+t);const e=[];for(;t>=l.FourCcToken.len;){const n=await this.tokenizer.readToken(l.FourCcToken);y(`Channel[ID=${n}]`),e.push(n),t-=l.FourCcToken.len}return y("Channels: "+e.join(", ")),e}}e.DsdiffParser=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(15);e.ChunkHeader={len:12,get:(t,e)=>({chunkID:o.FourCcToken.get(t,e),chunkSize:r.INT64_BE.get(t,e+4)})}},function(t,e,n){"use strict";
2(function(t){Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),o=n(6),h=n(17),l=n(237),c=n(491),d=o("music-metadata:parser:matroska");class f extends h.BasicParser{constructor(){super(),this.padding=0,this.parserMap=new Map,this.parserMap.set(l.DataType.uint,t=>this.readUint(t)),this.parserMap.set(l.DataType.string,t=>this.readString(t)),this.parserMap.set(l.DataType.binary,t=>this.readBuffer(t)),this.parserMap.set(l.DataType.uid,async t=>1===await this.readUint(t)),this.parserMap.set(l.DataType.bool,t=>this.readFlag(t)),this.parserMap.set(l.DataType.float,t=>this.readFloat(t))}init(t,e,n){return super.init(t,e,n),this}async parse(){const t=await this.parseContainer(c.elements,this.tokenizer.fileInfo.size,[]);if(this.metadata.setFormat("container","EBML/"+t.ebml.docType),t.segment){const e=t.segment.info;if(e){const t=e.timecodeScale?e.timecodeScale:1e6,n=e.duration*t/1e9;this.addTag("segment:title",e.title),this.metadata.setFormat("duration",n)}const n=t.segment.tracks;if(n&&n.entries){n.entries.forEach(t=>{const e={codecName:t.codecID.replace("A_","").replace("V_",""),codecSettings:t.codecSettings,flagDefault:t.flagDefault,flagLacing:t.flagLacing,flagEnabled:t.flagEnabled,language:t.language,name:t.name,type:t.trackType,audio:t.audio,video:t.video};this.metadata.addStreamInfo(e)});const e=n.entries.filter(t=>t.trackType===l.TrackType.audio.valueOf()).reduce((t,e)=>t?!t.flagDefault&&e.flagDefault||e.trackNumber&&e.trackNumber<t.trackNumber?e:t:e,null);e&&(this.metadata.setFormat("codec",e.codecID.replace("A_","")),this.metadata.setFormat("sampleRate",e.audio.samplingFrequency),this.metadata.setFormat("numberOfChannels",e.audio.channels)),t.segment.tags&&t.segment.tags.tag.forEach(t=>{const e=t.target,n=e.targetTypeValue?l.TargetType[e.targetTypeValue]:e.targetType?e.targetType:l.TargetType.album;t.simpleTags.forEach(t=>{const e=t.string?t.string:t.binary;this.addTag(`${n}:${t.name}`,e)})}),t.segment.attachments&&t.segment.attachments.attachedFiles.filter(t=>t.mimeType.startsWith("image/")).map(t=>({data:t.data,format:t.mimeType,description:t.description,name:t.name})).forEach(picture=>{this.addTag("picture",picture)})}}}async parseContainer(t,e,path){const n={};for(;this.tokenizer.position<e;){const element=await this.readElement(),e=t[element.id];if(e)if(e.container){const t=await this.parseContainer(e.container,this.tokenizer.position+element.len,path.concat([e.name]));e.multiple?(n[e.name]||(n[e.name]=[]),n[e.name].push(t)):n[e.name]=t}else n[e.name]=await this.parserMap.get(e.value)(element);else switch(element.id){case 236:this.padding+=element.len,await this.tokenizer.ignore(element.len);break;default:d(`parseEbml: path=${path.join("/")}, unknown element: id=${element.id.toString(16)}`),this.padding+=element.len,await this.tokenizer.ignore(element.len)}}return n}async readVintData(){const e=await this.tokenizer.peekNumber(r.UINT8);let mask=128,n=1;for(;0==(e&mask);)++n,mask>>=1;const o=t.alloc(n);return await this.tokenizer.readBuffer(o),o}async readElement(){const t=await this.readVintData(),e=await this.readVintData();e[0]^=128>>e.length-1;const n=Math.min(6,e.length);return{id:t.readUIntBE(0,t.length),len:e.readUIntBE(e.length-n,n)}}async readFloat(t){switch(t.len){case 0:return 0;case 4:return this.tokenizer.readNumber(r.Float32_BE);case 8:case 10:return this.tokenizer.readNumber(r.Float64_BE);default:throw new Error("Invalid IEEE-754 float length: "+t.len)}}async readFlag(t){return 1===await this.readUint(t)}async readUint(t){const e=await this.readBuffer(t),n=Math.min(6,t.len);return e.readUIntBE(t.len-n,n)}async readString(t){return this.tokenizer.readToken(new r.StringType(t.len,"utf-8"))}async readBuffer(e){const n=t.alloc(e.len);return await this.tokenizer.readBuffer(n),n}addTag(t,e){this.metadata.addTag("matroska",t,e)}}e.MatroskaParser=f}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(237);e.elements={440786851:{name:"ebml",container:{17030:{name:"ebmlVersion",value:r.DataType.uint},17143:{name:"ebmlReadVersion",value:r.DataType.uint},17138:{name:"ebmlMaxIDWidth",value:r.DataType.uint},17139:{name:"ebmlMaxSizeWidth",value:r.DataType.uint},17026:{name:"docType",value:r.DataType.string},17031:{name:"docTypeVersion",value:r.DataType.uint},17029:{name:"docTypeReadVersion",value:r.DataType.uint}}},408125543:{name:"segment",container:{290298740:{name:"seekHead",container:{19899:{name:"seek",container:{21419:{name:"seekId",value:r.DataType.binary},21420:{name:"seekPosition",value:r.DataType.uint}}}}}
2,357149030:{name:"info",container:{29604:{name:"uid",value:r.DataType.uid},29572:{name:"filename",value:r.DataType.string},3979555:{name:"prevUID",value:r.DataType.uid},3965867:{name:"prevFilename",value:r.DataType.string},4110627:{name:"nextUID",value:r.DataType.uid},4096955:{name:"nextFilename",value:r.DataType.string},2807729:{name:"timecodeScale",value:r.DataType.uint},17545:{name:"duration",value:r.DataType.float},17505:{name:"dateUTC",value:r.DataType.uint},31657:{name:"title",value:r.DataType.string},19840:{name:"muxingApp",value:r.DataType.string},22337:{name:"writingApp",value:r.DataType.string}}},524531317:{name:"cluster",multiple:!0,container:{231:{name:"timecode",value:r.DataType.uid},163:{name:"unknown",value:r.DataType.binary},167:{name:"position",value:r.DataType.uid},171:{name:"prevSize",value:r.DataType.uid}}},374648427:{name:"tracks",container:{174:{name:"entries",multiple:!0,container:{215:{name:"trackNumber",value:r.DataType.uint},29637:{name:"uid",value:r.DataType.uid},131:{name:"trackType",value:r.DataType.uint},185:{name:"flagEnabled",value:r.DataType.bool},136:{name:"flagDefault",value:r.DataType.bool},21930:{name:"flagForced",value:r.DataType.bool},156:{name:"flagLacing",value:r.DataType.bool},28135:{name:"minCache",value:r.DataType.uint},28136:{name:"maxCache",value:r.DataType.uint},2352003:{name:"defaultDuration",value:r.DataType.uint},2306383:{name:"timecodeScale",value:r.DataType.float},21358:{name:"name",value:r.DataType.string},2274716:{name:"language",value:r.DataType.string},134:{name:"codecID",value:r.DataType.string},25506:{name:"codecPrivate",value:r.DataType.binary},2459272:{name:"codecName",value:r.DataType.string},3839639:{name:"codecSettings",value:r.DataType.string},3883072:{name:"codecInfoUrl",value:r.DataType.string},2536e3:{name:"codecDownloadUrl",value:r.DataType.string},170:{name:"codecDecodeAll",value:r.DataType.bool},28587:{name:"trackOverlay",value:r.DataType.uint},224:{name:"video",container:{154:{name:"flagInterlaced",value:r.DataType.bool},21432:{name:"stereoMode",value:r.DataType.uint},176:{name:"pixelWidth",value:r.DataType.uint},186:{name:"pixelHeight",value:r.DataType.uint},21680:{name:"displayWidth",value:r.DataType.uint},21690:{name:"displayHeight",value:r.DataType.uint},21683:{name:"aspectRatioType",value:r.DataType.uint},3061028:{name:"colourSpace",value:r.DataType.uint},3126563:{name:"gammaValue",value:r.DataType.float}}},225:{name:"audio",container:{181:{name:"samplingFrequency",value:r.DataType.float},30901:{name:"outputSamplingFrequency",value:r.DataType.float}
2,159:{name:"channels",value:r.DataType.uint},148:{name:"channels",value:r.DataType.uint},32123:{name:"channelPositions",value:r.DataType.binary},25188:{name:"bitDepth",value:r.DataType.uint}}},28032:{name:"contentEncodings",container:{25152:{name:"contentEncoding",container:{20529:{name:"order",value:r.DataType.uint},20530:{name:"scope",value:r.DataType.bool},20531:{name:"type",value:r.DataType.uint},20532:{name:"contentEncoding",container:{16980:{name:"contentCompAlgo",value:r.DataType.uint},16981:{name:"contentCompSettings",value:r.DataType.binary}}},20533:{name:"contentEncoding",container:{18401:{name:"contentEncAlgo",value:r.DataType.uint},18402:{name:"contentEncKeyID",value:r.DataType.binary},18403:{name:"contentSignature ",value:r.DataType.binary},18404:{name:"ContentSigKeyID  ",value:r.DataType.binary},18405:{name:"contentSigAlgo ",value:r.DataType.uint},18406:{name:"contentSigHashAlgo ",value:r.DataType.uint}}},25188:{name:"bitDepth",value:r.DataType.uint}}}}}}}}},475249515:{name:"cues",container:{187:{name:"cuePoint",container:{179:{name:"cueTime",value:r.DataType.uid},183:{name:"positions",container:{247:{name:"track",value:r.DataType.uint},241:{name:"clusterPosition",value:r.DataType.uint},21368:{name:"blockNumber",value:r.DataType.uint},234:{name:"codecState",value:r.DataType.uint},219:{name:"reference",container:{150:{name:"time",value:r.DataType.uint},151:{name:"cluster",value:r.DataType.uint},21343:{name:"number",value:r.DataType.uint},235:{name:"codecState",value:r.DataType.uint}}},240:{name:"relativePosition",value:r.DataType.uint}}}}}}},423732329:{name:"attachments",container:{24999:{name:"attachedFiles",multiple:!0,container:{18046:{name:"description",value:r.DataType.string},18030:{name:"name",value:r.DataType.string},18016:{name:"mimeType",value:r.DataType.string},18012:{name:"data",value:r.DataType.binary},18094:{name:"uid",value:r.DataType.uid}}}}},272869232:{name:"chapters",container:{17849:{name:"editionEntry",container:{182:{name:"chapterAtom",container:{29636:{name:"uid",value:r.DataType.uid},145:{name:"timeStart",value:r.DataType.uint},146:{name:"timeEnd",value:r.DataType.uid},152:{name:"hidden",value:r.DataType.bool},17816:{name:"enabled",value:r.DataType.uid},143:{name:"track",container:{137:{name:"trackNumber",value:r.DataType.uid},128:{name:"display",container:{133:{name:"string",value:r.DataType.string},17276:{name:"language ",value:r.DataType.string},17278:{name:"country ",value:r.DataType.string}}}}}}}}}}},307544935:{name:"tags",container:{29555:{name:"tag",multiple:!0,container:{25536:{name:"target",container:{25541:{name:"tagTrackUID",value:r.DataType.uid},25540:{name:"tagChapterUID",value:r.DataType.uint},25542:{name:"tagAttachmentUID",value:r.DataType.uid},25546:{name:"targetType",value:r.DataType.string},26826:{name:"targetTypeValue",value:r.DataType.uint},25545:{name:"tagEditionUID",value:r.DataType.uid}}},26568:{name:"simpleTags",multiple:!0,container:{17827:{name:"name",value:r.DataType.string},17543:{name:"string",value:r.DataType.string},17541:{name:"binary",value:r.DataType.binary},17530:{name:"language",value:r.DataType.string},17531:{name:"languageIETF",value:r.DataType.string},17540:{name:"default",value:r.DataType.bool}}}}}}}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.RandomBufferReader=class{constructor(t){this.buf=t,this.fileSize=t.length}async randomRead(t,e,n,r){return this.buf.copy(t,e,r,r+n)}}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.endTag2="LYRICS200",e.getLyricsHeaderLength=async function(n){if(n.fileSize>=143){const r=t.alloc(15);await n.randomRead(r,0,r.length,n.fileSize-143);const o=r.toString("binary");if(o.substr(6)===e.endTag2)return parseInt(o.substr(0,6),10)+15}return 0}}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(126);class o extends r.Readable{constructor(t){super(),this.bytesRead=0,this.released=!1,this.reader=t.getReader()}async _read(){if(this.released)return void this.push(null);this.pendingRead=this.reader.read();const data=await this.pendingRead;delete this.pendingRead,data.done||this.released?this.push(null):(this.bytesRead+=data.value.length,this.push(data.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}e.ReadableWebToNodeStream=o},function(t,e,n){(function(e){var r=n(496).strict;t.exports=function(t){if(r(t)){var n=e.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(n=n.slice(t.byteOffset,t.byteOffset+t.byteLength)),n}return e.from(t)}}).call(this,n(3).Buffer)},function(t,e){t.exports=o,o.strict=h,o.loose=l;var n=Object.prototype.toString,r={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array
2]":!0};function o(t){return h(t)||l(t)}function h(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function l(t){return r[n.call(t)]}}]]);

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.