1/*! For license information please see 2.606232ce.chunk.js.LICENSE.txt */ 2(this["webpackJsonpcandy-machine-mint"]=this["webpackJsonpcandy-machine-mint"]||[]).push([[2],[function(t,e,r){"use strict";r.d(e,"a",(function(){return B})),r.d(e,"b",(function(){return L})),r.d(e,"c",(function(){return R})),r.d(e,"d",(function(){return N})),r.d(e,"e",(function(){return X})),r.d(e,"f",(function(){return I})),r.d(e,"g",(function(){return D})),r.d(e,"h",(function(){return U})),r.d(e,"i",(function(){return W})),r.d(e,"j",(function(){return q})),r.d(e,"k",(function(){return F})),r.d(e,"l",(function(){return K})),r.d(e,"m",(function(){return H})),r.d(e,"n",(function(){return Y})),r.d(e,"o",(function(){return V})),r.d(e,"p",(function(){return Z})),r.d(e,"q",(function(){return G}));var n=r(162),i=r(165),o=r(82),a=r(163);var s=r(10),u=r(14),c=r(1),f=r.n(c),h=r(18),l=r(13),d=r(20);function p(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var b=r(9),v=r(44),m=r(21),y=r(22),g=r(77),w=f.a.mark(A),_=f.a.mark(O),k=function(t){Object(m.a)(r,t);var e=Object(y.a)(r);function r(t,n){var i,o;Object(b.a)(this,r);var a=t.message,s=p(t,["message"]),u=t.path,c=0===u.length?a:"At path: "+u.join(".")+" -- "+a;return i=e.call(this,c),Object.assign(Object(v.a)(i),s),i.name=i.constructor.name,i.failures=function(){var e;return null!=(e=o)?e:o=[t].concat(Object(d.a)(n()))},i}return r}(Object(g.a)(TypeError));function M(t){return"object"===typeof t&&null!=t}function S(t){return"string"===typeof t?JSON.stringify(t):""+t}function E(t){var e=t.next(),r=e.done,n=e.value;return r?void 0:n}function x(t,e,r,n){if(!0!==t){!1===t?t={}:"string"===typeof t&&(t={message:t});var i=e.path,o=e.branch,a=r.type,s=t,u=s.refinement,c=s.message,f=void 0===c?"Expected a value of type `"+a+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+S(n)+"`":c;return Object(l.a)(Object(l.a)({value:n,type:a,refinement:u,key:i[i.length-1],path:i,branch:o},t),{},{message:f})}}function A(t,e,r,n){var i,o,a,s;return f.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:M(c=t)&&"function"===typeof c[Symbol.iterator]||(t=[t]),i=Object(h.a)(t),u.prev=2,i.s();case 4:if((o=i.n()).done){u.next=12;break}if(a=o.value,!(s=x(a,e,r,n))){u.next=10;break}return u.next=10,s;case 10:u.next=4;break;case 12:u.next=17;break;case 14:u.prev=14,u.t0=u.catch(2),i.e(u.t0);case 17:return u.prev=17,i.f(),u.finish(17);case 20:case"end":return u.stop()}var c}),w,null,[[2,14,17,20]])}function O(t,e){var r,n,i,o,a,s,c,l,p,b,v,m,y,g,w,k,S,E,x,A,j,R,I,P,T,C,B,L,N=arguments;return f.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(r=N.length>2&&void 0!==N[2]?N[2]:{},n=r.path,i=void 0===n?[]:n,o=r.branch,a=void 0===o?[t]:o,s=r.coerce,c=void 0!==s&&s,l=r.mask,p=void 0!==l&&l,b={path:i,branch:a},c&&(t=e.coercer(t,b),p&&"type"!==e.type&&M(e.schema)&&M(t)&&!Array.isArray(t)))for(v in t)void 0===e.schema[v]&&delete t[v];m=!0,y=Object(h.a)(e.validator(t,b)),f.prev=6,y.s();case 8:if((g=y.n()).done){f.next=15;break}return w=g.value,m=!1,f.next=13,[w,void 0];case 13:f.next=8;break;case 15:f.next=20;break;case 17:f.prev=17,f.t0=f.catch(6),y.e(f.t0);case 20:return f.prev=20,y.f(),f.finish(20);case 23:k=Object(h.a)(e.entries(t,b)),f.prev=24,k.s();case 26:if((S=k.n()).done){f.next=53;break}E=Object(u.a)(S.value,3),x=E[0],A=E[1],j=E[2],R=O(A,j,{path:void 0===x?i:[].concat(Object(d.a)(i),[x]),branch:void 0===x?a:[].concat(Object(d.a)(a),[A]),coerce:c,mask:p}),I=Object(h.a)(R),f.prev=30,I.s();case 32:if((P=I.n()).done){f.next=43;break}if(!(T=P.value)[0]){f.next=40;break}return m=!1,f.next=38,[T[0],void 0];case 38:f.next=41;break;case 40:c&&(A=T[1],void 0===x?t=A:t instanceof Map?t.set(x,A):t instanceof Set?t.add(A):M(t)&&(t[x]=A));case 41:f.next=32;break;case 43:f.next=48;break;case 45:f.prev=45,f.t1=f.catch(30),I.e(f.t1);case 48:return f.prev=48,I.f(),f.finish(48);case 51:f.next=26;break;case 53:f.next=58;break;case 55:f.prev=55,f.t2=f.catch(24),k.e(f.t2);case 58:return f.prev=58,k.f(),f.finish(58);case 61:if(!m){f.next=80;break}C=Object(h.a)(e.refiner(t,b)),f.prev=63,C.s();case 65:if((B=C.n()).done){f.next=72;break}return L=B.value,m=!1,f.next=70,[L,void 0];case 70:f.next=65;break;case 72:f.next=77;break;case 74:f.prev=74,f.t3=f.catch(63),C.e(f.t3);case 77:return f.prev=77,C.f(),f.finish(77);case 80:if(!m){f.next=83;break}return f.next=83,[void 0,t];case 83:case"end":return f.stop()}}),_,null,[[6,17,20,23],[24,55,58,61],[30,45,48,51],[63,74,77,80]])}var j=function(){function t(e){var r=this;Object(b.a)(this,t);var n=e.type,i=e.schema,o=e.validator,a=e.refiner,s=e.coercer,u=void 0===s?function(t){return t}:s,c=e.entries,h=void 0===c?f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})):c;this.type=n,this.schema=i,this.entries=h,this.coercer=u,this.validator=o?function(t,e){return A(o(t,e),e,r,t)}:function(){return[]},this.refiner=a?function(t,e){return A(a(t,e),e,r,t)}:function(){return[]}}return Object(s.a)(t,[{key:"assert",value:function(t){return R(t,this)}},{key:"create",value:function(t){return I(t,this)}},{key:"is",value:function(t){return P(t,this)}},{key:"mask",value:function(t){return function(t,e){var r=T(t,e,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}(t,this)}},{key:"validate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return T(t,this,e)}}]),t}();function R(t,e){var r=T(t,e);if(r[0])throw r[0]}function I(t,e){var r=T(t,e,{coerce:!0});if(r[0])throw r[0];return r[1]}function P(t,e){return!T(t,e)[0]}function T(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=O(t,e,r),i=E(n);if(i[0]){var o=new k(i[0],f.a.mark((function t(){var e,r,i;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Object(h.a)(n),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=10;break}if(!(i=r.value)[0]){t.next=8;break}return t.next=8,i[0];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),e.e(t.t0);case 15:return t.prev=15,e.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])})));return[o,void 0]}var a=i[1];return[void 0,a]}function C(t,e){return new j({type:t,schema:null,validator:e})}function B(){return C("any",(function(){return!0}))}function L(t){return new j({type:"array",schema:t,entries:f.a.mark((function e(r){var n,i,o,a,s;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!Array.isArray(r)){e.next=18;break}n=Object(h.a)(r.entries()),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=10;break}return o=Object(u.a)(i.value,2),a=o[0],s=o[1],e.next=8,[a,s,t];case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})),coercer:function(t){return Array.isArray(t)?t.slice():t},validator:function(t){return Array.isArray(t)||"Expected an array value, but received: "+S(t)}})}function N(){return C("boolean",(function(t){return"boolean"===typeof t}))}function D(t){return C("instance",(function(e){return e instanceof t||"Expected a `"+t.
2name+"` instance, but received: "+S(e)}))}function U(t){var e=S(t),r=typeof t;return new j({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?t:null,validator:function(r){return r===t||"Expected the literal `"+e+"`, but received: "+S(r)}})}function z(){return C("never",(function(){return!1}))}function W(t){return new j(Object(l.a)(Object(l.a)({},t),{},{validator:function(e,r){return null===e||t.validator(e,r)},refiner:function(e,r){return null===e||t.refiner(e,r)}}))}function q(){return C("number",(function(t){return"number"===typeof t&&!isNaN(t)||"Expected a number, but received: "+S(t)}))}function F(t){return new j(Object(l.a)(Object(l.a)({},t),{},{validator:function(e,r){return void 0===e||t.validator(e,r)},refiner:function(e,r){return void 0===e||t.refiner(e,r)}}))}function K(t,e){return new j({type:"record",schema:null,entries:f.a.mark((function r(n){var i,o;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!M(n)){r.next=11;break}r.t0=f.a.keys(n);case 2:if((r.t1=r.t0()).done){r.next=11;break}return i=r.t1.value,o=n[i],r.next=7,[i,i,t];case 7:return r.next=9,[i,o,e];case 9:r.next=2;break;case 11:case"end":return r.stop()}}),r)})),validator:function(t){return M(t)||"Expected an object, but received: "+S(t)}})}function H(){return C("string",(function(t){return"string"===typeof t||"Expected a string, but received: "+S(t)}))}function Y(t){var e=z();return new j({type:"tuple",schema:null,entries:f.a.mark((function r(n){var i,o;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(n)){r.next=9;break}i=Math.max(t.length,n.length),o=0;case 3:if(!(o<i)){r.next=9;break}return r.next=6,[o,n[o],t[o]||e];case 6:o++,r.next=3;break;case 9:case"end":return r.stop()}}),r)})),validator:function(t){return Array.isArray(t)||"Expected an array, but received: "+S(t)}})}function V(t){var e=Object.keys(t);return new j({type:"type",schema:t,entries:f.a.mark((function r(n){var i,o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!M(n)){r.next=18;break}i=Object(h.a)(e),r.prev=2,i.s();case 4:if((o=i.n()).done){r.next=10;break}return a=o.value,r.next=8,[a,n[a],t[a]];case 8:r.next=4;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(2),i.e(r.t0);case 15:return r.prev=15,i.f(),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[2,12,15,18]])})),validator:function(t){return M(t)||"Expected an object, but received: "+S(t)}})}function Z(t){var e=t.map((function(t){return t.type})).join(" | ");return new j({type:"union",schema:null,validator:function(r,s){var c,f,l=[],d=Object(h.a)(t);try{for(d.s();!(c=d.n()).done;){var p=O(r,c.value,s),b=(f=p,Object(n.a)(f)||Object(i.a)(f)||Object(o.a)(f)||Object(a.a)()).slice(0);if(!Object(u.a)(b,1)[0][0])return[];var v,m=Object(h.a)(b);try{for(m.s();!(v=m.n()).done;){var y=Object(u.a)(v.value,1)[0];y&&l.push(y)}}catch(g){m.e(g)}finally{m.f()}}}catch(g){d.e(g)}finally{d.f()}return["Expected the value to satisfy a union of `"+e+"`, but received: "+S(r)].concat(l)}})}function G(){return C("unknown",(function(){return!0}))}function X(t,e,r){return new j(Object(l.a)(Object(l.a)({},t),{},{coercer:function(n,i){return P(n,e)?t.coercer(r(n,i),i):t.coercer(n,i)}}))}},function(t,e,r){t.exports=r(224)},function(t,e,r){"use strict";t.exports=r(351)},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();e.__esModule=!0,e.s16=e.s8=e.nu64be=e.u48be=e.u40be=e.u32be=e.u24be=e.u16be=e.nu64=e.u48=e.u40=e.u32=e.u24=e.u16=e.u8=e.offset=e.greedy=e.Constant=e.UTF8=e.CString=e.Blob=e.Boolean=e.BitField=e.BitStructure=e.VariantLayout=e.Union=e.UnionLayoutDiscriminator=e.UnionDiscriminator=e.Structure=e.Sequence=e.DoubleBE=e.Double=e.FloatBE=e.Float=e.NearInt64BE=e.NearInt64=e.NearUInt64BE=e.NearUInt64=e.IntBE=e.Int=e.UIntBE=e.UInt=e.OffsetLayout=e.GreedyCount=e.ExternalLayout=e.bindConstructorLayout=e.nameWithProperty=e.Layout=e.uint8ArrayToBuffer=e.checkUint8Array=void 0,e.constant=e.utf8=e.cstr=e.blob=e.unionLayoutDiscriminator=e.union=e.seq=e.bits=e.struct=e.f64be=e.f64=e.f32be=e.f32=e.ns64be=e.s48be=e.s40be=e.s32be=e.s24be=e.s16be=e.ns64=e.s48=e.s40=e.s32=e.s24=void 0;var i=r(7);function o(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function a(t){return o(t),i.Buffer.from(t.buffer,t.byteOffset,t.length)}e.checkUint8Array=o,e.uint8ArrayToBuffer=a;var s=function(){function t(t,e){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=e}return t.prototype.makeDestinationObject=function(){return{}},t.prototype.decode=function(t,e){throw new Error("Layout is abstract")},t.prototype.encode=function(t,e,r){throw new Error("Layout is abstract")},t.prototype.getSpan=function(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span},t.prototype.replicate=function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e},t.prototype.fromArray=function(t){},t}();function u(t,e){return e.property?t+"["+e.property+"]":t}e.Layout=s,e.nameWithProperty=u,e.bindConstructorLayout=function(t,e){if("function"!==typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof s))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");
2t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,r){return e.encode(this,t,r)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,r){return e.decode(t,r)},writable:!0})};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.isCount=function(){throw new Error("ExternalLayout is abstract")},e}(s);e.ExternalLayout=c;var f=function(t){function e(e,r){var n=this;if(void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");return(n=t.call(this,-1,r)||this).elementSpan=e,n}return n(e,t),e.prototype.isCount=function(){return!0},e.prototype.decode=function(t,e){o(t),void 0===e&&(e=0);var r=t.length-e;return Math.floor(r/this.elementSpan)},e.prototype.encode=function(t,e,r){return 0},e}(c);e.GreedyCount=f;var h=function(t){function e(e,r,n){var i=this;if(!(e instanceof s))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(i=t.call(this,e.span,n||e.property)||this).layout=e,i.offset=r,i}return n(e,t),e.prototype.isCount=function(){return this.layout instanceof l||this.layout instanceof d},e.prototype.decode=function(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),this.layout.encode(t,e,r+this.offset)},e}(c);e.OffsetLayout=h;var l=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),a(t).readUIntLE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),a(e).writeUIntLE(t,r,this.span),this.span},e}(s);e.UInt=l;var d=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),a(t).readUIntBE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),a(e).writeUIntBE(t,r,this.span),this.span},e}(s);e.UIntBE=d;var p=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),a(t).readIntLE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),a(e).writeIntLE(t,r,this.span),this.span},e}(s);e.Int=p;var b=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),a(t).readIntBE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),a(e).writeIntBE(t,r,this.span),this.span},e}(s);e.IntBE=b;var v=Math.pow(2,32);function m(t){var e=Math.floor(t/v);return{hi32:e,lo32:t-e*v}}function y(t,e){return t*v+e}var g=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=a(t),n=r.readUInt32LE(e);return y(r.readUInt32LE(e+4),n)},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=m(t),i=a(e);return i.writeUInt32LE(n.lo32,r),i.writeUInt32LE(n.hi32,r+4),8},e}(s);e.NearUInt64=g;var w=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=a(t);return y(r.readUInt32BE(e),r.readUInt32BE(e+4))},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=m(t),i=a(e);return i.writeUInt32BE(n.hi32,r),i.writeUInt32BE(n.lo32,r+4),8},e}(s);e.NearUInt64BE=w;var _=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=a(t),n=r.readUInt32LE(e);return y(r.readInt32LE(e+4),n)},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=m(t),i=a(e);return i.writeUInt32LE(n.lo32,r),i.writeInt32LE(n.hi32,r+4),8},e}(s);e.NearInt64=_;var k=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=a(t);return y(r.readInt32BE(e),r.readUInt32BE(e+4))},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=m(t),i=a(e);return i.writeInt32BE(n.hi32,r),i.writeUInt32BE(n.lo32,r+4),8},e}(s);e.NearInt64BE=k;var M=function(t){function e(e){return t.call(this,4,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),a(t).readFloatLE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),a(e).writeFloatLE(t,r),4},e}(s);e.Float=M;var S=function(t){function e(e){return t.call(this,4,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),a(t).readFloatBE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),a(e).writeFloatBE(t,r),4},e}(s);e.FloatBE=S;var E=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),a(t).readDoubleLE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),a(e).writeDoubleLE(t,r),8},e}(s);e.Double=E;var x=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),a(t).readDoubleBE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),a(e).writeDoubleBE(t,r),8},e}(s);e.DoubleBE=x;var A=function(t){function e(e,r,n){var i=this;if(!(e instanceof s))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof c&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var o=-1;return!(r instanceof c)&&0<e.span&&(o=r*e.span),(i=t.call(this,o,n)||this).elementLayout=e,i.count=r,i}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0,n=this.count;if(n instanceof c&&(n=n.decode(t,e)),0<this.elementLayout.span)r=n*this.elementLayout.span;else for(var i=0;i<n;)r+=this.elementLayout.getSpan(t,e+r),++i;return r},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=[],n=0,i=this.count;for(i instanceof c&&(i=i.decode(t,e));n<i;)r.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),n+=1;return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.elementLayout,i=t.reduce((function(t,i){return t+n.encode(i,e,r+t)}),0);return this.count instanceof c&&this.count.encode(t.length,e,r),i},e}(s);e.Sequence=A;var O=function(t){function e(e,r,n){var i=this;if(!Array.isArray(e)||!e.reduce((function(t,e){return t&&e instanceof s}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof r&&void 0===n&&(n=r,r=void 0);for(var o=0,a=e;o<a.length;o++){var u=a[o];if(0>u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}var c=-1;try{c=e.reduce((function(t,e){return t+e.getSpan()}),0)}catch(f){}return(i=t.call(this,c,r)||this).fields=e,i.decodePrefixes=!!n,i}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;try{r=this.fields.reduce((function(r,n){var i=n.getSpan(t,e);return e+=i,r+i}),0)}catch(n){throw new RangeError("indeterminate span")}return r},e.prototype.decode=function(t,e){o(t),void 0===e&&(e=0);for(var r=this.makeDestinationObject(),n=0,i=this.fields;n<i.length;n++){var a=i[n];if(void 0!==a.property&&(r[a.property]=a.decode(t,e)),e+=a.getSpan(t,e),this.decodePrefixes&&t.length===e)break}return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);for(var n=r,i=0,o=0,a=0,s=this.fields;a<s.length;a++){var u=s[a],c=u.span;if(o=0<c?c:0,void 0!==u.property){var f=t[u.property];void 0!==f&&(o=u.encode(f,e,r),0>c&&(c=u.getSpan(e,r)))}i=r,r+=c}return i+o-n},e.prototype.fromArray=function(t){for(var e=this.makeDestinationObject(),r=0,n=this.fields;r<n.length;r++){var i=n[r];void 0!==i.property&&0<t.length&&(e[i.property]=t.shift())}return e},e.prototype.layoutFor=function(t){if("string"!==typeof t)throw new TypeError("property must be string");for(var e=0,r=this.fields;e<r.length;e++){var n=r[e];if(n.property===t)return n}},e.prototype.offsetOf=function(t){if("string"!==typeof t)throw new TypeError("property must be string");for(var e=0,r=0,n=this.fields;r<n.length;r++){var i=n[r];if(i.property===t)return e;0>i.span?e=-1:0<=e&&(e+=i.span)}},e}(s);e.Structure=O;var j=function(){function t(t){this.property=t}return t.prototype.decode=function(t,e){throw new Error("UnionDiscriminator is abstract")},t.prototype.encode=function(t,e,r){throw new Error("UnionDiscriminator is abstract")},t}();e.UnionDiscriminator=j;var R=function(t){function e(e,r){var n=this;if(!(e instanceof c&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(n=t.call(this,r||e.property||"variant")||this).layout=e,n}return n(e,t),e.prototype.decode=function(t,e){return this.layout.decode(t,e)},e.prototype.encode=function(t,e,r){return this.layout.encode(t,e,r)},e}(j);e.UnionLayoutDiscriminator=R;var I=function(t){function e(e,r,n){var i,o=this,a=e instanceof l||e instanceof d;if(a)i=new R(new h(e));else if(e instanceof c&&e.isCount())i=new R(e);else{if(!(e instanceof j))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");i=e}if(void 0===r&&(r=null),!(null===r||r instanceof s))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var u=-1;r&&0<=(u=r.span)&&a&&(u+=i.layout.span),(o=t.call(this,u,n)||this).discriminator=i,o.usesPrefixDiscriminator=a,o.defaultLayout=r,o.registry={};var f=o.defaultGetSourceVariant.bind(o);return o.getSourceVariant=function(t){return f(t)},o.configGetSourceVariant=function(t){f=t.bind(this)},o}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=this.getVariant(t,e);if(!r)throw new Error("unable to determine span for unrecognized variant");return r.getSpan(t,e)},e.prototype.defaultGetSourceVariant=function(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;if((r=this.registry[t[this.discriminator.property]])&&(!r.layout||r.property&&Object.prototype.hasOwnProperty.call(t,r.property)))return r}else for(var e in this.registry){var r;if((r=this.registry[e]).property&&Object.prototype.hasOwnProperty.call(t,r.property))return r}throw new Error("unable to infer src variant")},e.prototype.decode=function(t,e){var r;void 0===e&&(e=0);var n=this.discriminator,i=n.decode(t,e),o=this.registry[i];if(void 0===o){var a=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=n.layout.span),(r=this.makeDestinationObject())[n.property]=i,r[a.property]=a.decode(t,e+s)}else r=o.decode(t,e);return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.getSourceVariant(t);if(void 0===n){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(t[i.property],e,r),a+o.encode(t[o.property],e,r+a)}return n.encode(t,e,r)},e.prototype.addVariant=function(t,e,r){var n=new P(this,t,e,r);return this.registry[t]=n,n},e.prototype.getVariant=function(t,e){var r;return t instanceof Uint8Array?(void 0===e&&(e=0),r=this.discriminator.decode(t,e)):r=t,this.registry[r]},e}(s);e.Union=I;var P=function(t){function e(e,r,n,i){var o=this;if(!(e instanceof I))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");
2if("string"===typeof n&&void 0===i&&(i=n,n=null),n){if(!(n instanceof s))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=n.span&&n.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof i)throw new TypeError("variant must have a String property")}var a=e.span;return 0>e.span&&0<=(a=n?n.span:0)&&e.usesPrefixDiscriminator&&(a+=e.discriminator.layout.span),(o=t.call(this,a,i)||this).union=e,o.variant=r,o.layout=n||null,o}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span);var n=0;return this.layout&&(n=this.layout.getSpan(t,e+r)),r+n},e.prototype.decode=function(t,e){var r=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var i=this.property;return this.layout?r[i]=this.layout.decode(t,e+n):i?r[i]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var i=this.property;if(this.layout&&!Object.prototype.hasOwnProperty.call(t,i))throw new TypeError("variant lacks property "+i);this.union.discriminator.encode(this.variant,e,r);var o=n;if(this.layout&&(this.layout.encode(t[i],e,r+n),o+=this.layout.getSpan(e,r+n),0<=this.union.span&&o>this.union.span))throw new Error("encoded variant overruns containing union");return o},e.prototype.fromArray=function(t){if(this.layout)return this.layout.fromArray(t)},e}(s);function T(t){return 0>t&&(t+=4294967296),t}e.VariantLayout=P;var C=function(t){function e(e,r,n){var i=this;if(!(e instanceof l||e instanceof d))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof r&&void 0===n&&(n=r,r=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");(i=t.call(this,e.span,n)||this).word=e,i.msb=!!r,i.fields=[];var o=0;return i._packedSetValue=function(t){return o=T(t),this},i._packedGetValue=function(){return o},i}return n(e,t),e.prototype.decode=function(t,e){var r=this.makeDestinationObject();void 0===e&&(e=0);var n=this.word.decode(t,e);this._packedSetValue(n);for(var i=0,o=this.fields;i<o.length;i++){var a=o[i];void 0!==a.property&&(r[a.property]=a.decode(n))}return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.word.decode(e,r);this._packedSetValue(n);for(var i=0,o=this.fields;i<o.length;i++){var a=o[i];if(void 0!==a.property){var s=t[a.property];void 0!==s&&a.encode(s)}}return this.word.encode(this._packedGetValue(),e,r)},e.prototype.addField=function(t,e){var r=new B(this,t,e);return this.fields.push(r),r},e.prototype.addBoolean=function(t){var e=new L(this,t);return this.fields.push(e),e},e.prototype.fieldFor=function(t){if("string"!==typeof t)throw new TypeError("property must be string");for(var e=0,r=this.fields;e<r.length;e++){var n=r[e];if(n.property===t)return n}},e}(s);e.BitStructure=C;var B=function(){function t(t,e,r){if(!(t instanceof C))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(e)||0>=e)throw new TypeError("bits must be positive integer");var n=8*t.span,i=t.fields.reduce((function(t,e){return t+e.bits}),0);if(e+i>n)throw new Error("bits too long for span remainder ("+(n-i)+" of "+n+" remain)");this.container=t,this.bits=e,this.valueMask=(1<<e)-1,32===e&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=n-i-e),this.wordMask=T(this.valueMask<<this.start),this.property=r}return t.prototype.decode=function(t,e){return T(this.container._packedGetValue()&this.wordMask)>>>this.start},t.prototype.encode=function(t){if(!Number.isInteger(t)||t!==T(t&this.valueMask))throw new TypeError(u("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),r=T(t<<this.start);this.container._packedSetValue(T(e&~this.wordMask)|r)},t}();e.BitField=B;var L=function(t){function e(e,r){return t.call(this,e,1,r)||this}return n(e,t),e.prototype.decode=function(t,e){return!!B.prototype.decode.call(this,t,e)},e.prototype.encode=function(t){return"boolean"===typeof t&&(t=+t),B.prototype.encode.call(this,t)},e}(B);e.Boolean=L;var N=function(t){function e(e,r){var n=this;if(!(e instanceof c&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var i=-1;return e instanceof c||(i=e),(n=t.call(this,i,r)||this).length=e,n}return n(e,t),e.prototype.getSpan=function(t,e){var r=this.span;return 0>r&&(r=this.length.decode(t,e)),r},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.span;return 0>r&&(r=this.length.decode(t,e)),a(t).slice(e,e+r)},e.prototype.encode=function(t,e,r){var n=this.length;if(this.length instanceof c&&(n=t.length),!(t instanceof Uint8Array&&n===t.length))throw new TypeError(u("Blob.encode",this)+" requires (length "+n+") Uint8Array as src");if(r+n>e.length)throw new RangeError("encoding overruns Uint8Array");var i=a(t);return a(e).write(i.toString("hex"),r,n,"hex"),this.length instanceof c&&this.length.encode(n,e,r),n},e}(s);e.Blob=N;var D=function(t){function e(e){return t.call(this,-1,e)||this}return n(e,t),e.prototype.getSpan=function(t,e){o(t),void 0===e&&(e=0);for(var r=e;r<t.length&&0!==t[r];)r+=1;return 1+r-e},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.getSpan(t,e);return a(t).slice(e,e+r-1).toString("utf-8")},e.prototype.encode=function(t,e,r){void 0===r&&(r=0),"string"!==typeof t&&(t=t.toString());var n=i.Buffer.from(t,"utf8"),o=n.length;if(r+o>e.length)throw new RangeError("encoding overruns Buffer");var s=a(e);return n.copy(s,r),s[r+o]=0,o+1},e}(s);e.CString=D;var U=function(t){function e(e,r){var n=this;if("string"===typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(n=t.call(this,-1,r)||this).maxSpan=e,n}return n(e,t),e.prototype.getSpan=function(t,e){return o(t),void 0===e&&(e=0),t.length-e},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError("text length exceeds maxSpan");return a(t).slice(e,e+r).toString("utf-8")},e.prototype.encode=function(t,e,r){void 0===r&&(r=0),"string"!==typeof t&&(t=t.toString());var n=i.Buffer.from(t,"utf8"),o=n.length;if(0<=this.maxSpan&&this.maxSpan<o)throw new RangeError("text length exceeds maxSpan");if(r+o>e.length)throw new RangeError("encoding overruns Buffer");return n.copy(a(e),r),o},e}(s);e.UTF8=U;var z=function(t){function e(e,r){var n=t.call(this,0,r)||this;return n.value=e,n}return n(e,t),e.prototype.decode=function(t,e){return this.value},e.prototype.encode=function(t,e,r){return 0},e}(s);e.Constant=z,e.greedy=function(t,e){return new f(t,e)},e.offset=function(t,e,r){return new h(t,e,r)},e.u8=function(t){return new l(1,t)},e.u16=function(t){return new l(2,t)},e.u24=function(t){return new l(3,t)},e.u32=function(t){return new l(4,t)},e.u40=function(t){return new l(5,t)},e.u48=function(t){return new l(6,t)},e.nu64=function(t){return new g(t)},e.u16be=function(t){return new d(2,t)},e.u24be=function(t){return new d(3,t)},e.u32be=function(t){return new d(4,t)},e.u40be=function(t){return new d(5,t)},e.u48be=function(t){return new d(6,t)},e.nu64be=function(t){return new w(t)},e.s8=function(t){return new p(1,t)},e.s16=function(t){return new p(2,t)},e.s24=function(t){return new p(3,t)},e.s32=function(t){return new p(4,t)},e.s40=function(t){return new p(5,t)},e.s48=function(t){return new p(6,t)},e.ns64=function(t){return new _(t)},e.s16be=function(t){return new b(2,t)},e.s24be=function(t){return new b(3,t)},e.s32be=function(t){return new b(4,t)},e.s40be=function(t){return new b(5,t)},e.s48be=function(t){return new b(6,t)},e.ns64be=function(t){return new k(t)},e.f32=function(t){return new M(t)},e.f32be=function(t){return new S(t)},e.f64=function(t){return new E(t)},e.f64be=function(t){return new x(t)},e.struct=function(t,e,r){return new O(t,e,r)},e.bits=function(t,e,r){return new C(t,e,r)},e.seq=function(t,e,r){return new A(t,e,r)},e.union=function(t,e,r){return new I(t,e,r)},e.unionLayoutDiscriminator=function(t,e){return new R(t,e)},e.blob=function(t,e){return new N(t,e)},e.cstr=function(t){return new D(t)},e.utf8=function(t,e){return new U(t,e)},e.constant=function(t,e){return new z(t,e)}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,i)}function i(t){return function(){var e=this,r=arguments;
2return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return i}))},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){var n=r(87),i=r(359),o=r(225);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=l(t,e);return t}(t,e,r,n):"string"===typeof e?function(t,e,r){"string"===typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(e,r),i=(t=s(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|d(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||(n=e.length)!==n?s(t,0):l(t,e);if("Buffer"===e.type&&o(e.data))return l(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function f(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 h(t,e){if(f(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e){var r=e.length<0?0:0|d(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.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 r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(n)return W(t).length;e=(""+e).toLowerCase(),n=!0}}function b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return j(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}
vendor: 11,588 bytes, line 2
2else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var h=!0,l=0;l<u;l++)if(c(t,o+l)!==c(e,l)){h=!1;break}if(h)return o}return-1}function g(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return F(W(e,t.length-r),t,r,n)}function _(t,e,r,n){return F(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function k(t,e,r,n){return _(t,e,r,n)}function M(t,e,r,n){return F(q(e),t,r,n)}function S(t,e,r,n){return F(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],f=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(f=c);break;case 2:128===(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.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(e){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?"string"===typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.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}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.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 e=0;e<t;e+=2)v(this,e,e+1);return this},u.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 e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.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 e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):b.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,i),f=t.slice(e,r),h=0;h<s;++h)if(c[h]!==f[h]){o=c[h],a=f[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return k(this,t,e,r);case"base64":return M(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function j(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function R(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=z(t[o]);return i}function I(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function P(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function B(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function L(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,n,o){return o||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||T(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||T(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 4,532 bytes, line 2
28,this[e+1]=255&t):C(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:W(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(31))},function(t,e,r){"use strict";
2t.exports=r(409)},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return Jt})),r.d(e,"b",(function(){return B})),r.d(e,"c",(function(){return $})),r.d(e,"d",(function(){return ct})),r.d(e,"e",(function(){return X})),r.d(e,"f",(function(){return G})),r.d(e,"g",(function(){return et}));var n=r(77),i=r(18),o=r(14),a=r(13),s=r(20),u=r(1),c=r.n(u),f=r(4),h=r(44),l=r(21),d=r(22),p=r(9),b=r(10),v=r(5),m=r.n(v),y=r(54),g=r.n(y),w=r(7),_=r(46),k=r.n(_),M=r(23),S=r.n(M),E=r(111),x=r(88),A=r(3),O=r(0),j=(r(166),r(167),r(112)),R=r.n(j),I=r(113),P=function(t){return w.Buffer.isBuffer(t)?t:t instanceof Uint8Array?w.Buffer.from(t.buffer,t.byteOffset,t.byteLength):w.Buffer.from(t)},T=function(){function t(e){Object(p.a)(this,t),Object.assign(this,e)}return Object(b.a)(t,[{key:"encode",value:function(){return w.Buffer.from(Object(x.serialize)(C,this))}}],[{key:"decode",value:function(t){return Object(x.deserialize)(C,this,t)}},{key:"decodeUnchecked",value:function(t){return Object(x.deserializeUnchecked)(C,this,t)}}]),t}(),C=new Map;var B=function(t){Object(l.a)(r,t);var e=Object(d.a)(r);function r(t){var n;if(Object(p.a)(this,r),n=e.call(this,{}),m()(Object(h.a)(n),"_bn",void 0),function(t){return void 0!==t._bn}(t))n._bn=t._bn;else{if("string"===typeof t){var i=S.a.decode(t);if(32!=i.length)throw new Error("Invalid public key input");n._bn=new k.a(i)}else n._bn=new k.a(t);if(n._bn.byteLength()>32)throw new Error("Invalid public key input")}return n}return Object(b.a)(r,[{key:"equals",value:function(t){return this._bn.eq(t._bn)}},{key:"toBase58",value:function(){return S.a.encode(this.toBytes())}},{key:"toBytes",value:function(){return this.toBuffer()}},{key:"toBuffer",value:function(){var t=this._bn.toArrayLike(w.Buffer);if(32===t.length)return t;var e=w.Buffer.alloc(32);return t.copy(e,32-t.length),e}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"createWithSeed",value:function(){var t=Object(f.a)(c.a.mark((function t(e,n,i){var o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=w.Buffer.concat([e.toBuffer(),w.Buffer.from(n),i.toBuffer()]),t.next=3,Object(E.sha256)(new Uint8Array(o));case 3:return a=t.sent,t.abrupt("return",new r(w.Buffer.from(a,"hex")));case 5:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"createProgramAddress",value:function(){var t=Object(f.a)(c.a.mark((function t(e,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=w.Buffer.alloc(0),e.forEach((function(t){if(t.length>32)throw new TypeError("Max seed length exceeded");i=w.Buffer.concat([i,P(t)])})),i=w.Buffer.concat([i,n.toBuffer(),w.Buffer.from("ProgramDerivedAddress")]),t.next=5,Object(E.sha256)(new Uint8Array(i));case 5:if(o=t.sent,!N(a=new k.a(o,16).toArray(void 0,32))){t.next=9;break}throw new Error("Invalid seeds, address must fall off the curve");case 9:return t.abrupt("return",new r(a));case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"findProgramAddress",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=255;case 1:if(0==n){t.next=18;break}return t.prev=2,o=e.concat(w.Buffer.from([n])),t.next=6,this.createProgramAddress(o,r);case 6:i=t.sent,t.next=15;break;case 9:if(t.prev=9,t.t0=t.catch(2),!(t.t0 instanceof TypeError)){t.next=13;break}throw t.t0;case 13:return n--,t.abrupt("continue",1);case 15:return t.abrupt("return",[i,n]);case 18:throw new Error("Unable to find a viable program address nonce");case 19:case"end":return t.stop()}}),t,this,[[2,9]])}
2)));return function(e,r){return t.apply(this,arguments)}}()},{key:"isOnCurve",value:function(t){return 1==N(t)}}]),r}(T);m()(B,"default",new B("11111111111111111111111111111111")),C.set(B,{kind:"struct",fields:[["_bn","u256"]]});var L=g.a.lowlevel;function N(t){var e=[L.gf(),L.gf(),L.gf(),L.gf()],r=L.gf(),n=L.gf(),i=L.gf(),o=L.gf(),a=L.gf(),s=L.gf(),u=L.gf();return L.set25519(e[2],D),L.unpack25519(e[1],t),L.S(i,e[1]),L.M(o,i,L.D),L.Z(i,i,e[2]),L.A(o,e[2],o),L.S(a,o),L.S(s,a),L.M(u,s,a),L.M(r,u,i),L.M(r,r,o),L.pow2523(r,r),L.M(r,r,i),L.M(r,r,o),L.M(r,r,o),L.M(e[0],r,o),L.S(n,e[0]),L.M(n,n,o),z(n,i)&&L.M(e[0],e[0],U),L.S(n,e[0]),L.M(n,n,o),z(n,i)?0:1}var D=L.gf([1]),U=L.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function z(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return L.pack25519(r,t),L.pack25519(n,e),L.crypto_verify_32(r,0,n,0)}new B("BPFLoader1111111111111111111111111111111111");var W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return A.blob(32,t)},q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",e=A.struct([A.u32("length"),A.u32("lengthPadding"),A.blob(A.offset(A.u32(),-8),"chars")],t),r=e.decode.bind(e),n=e.encode.bind(e);return e.decode=function(t,e){return r(t,e).chars.toString("utf8")},e.encode=function(t,e,r){var i={chars:w.Buffer.from(t,"utf8")};return n(i,e,r)},e.alloc=function(t){return A.u32().span+A.u32().span+w.Buffer.from(t,"utf8").length},e};function F(t){for(var e=0,r=0;;){var n=t.shift();if(e|=(127&n)<<7*r,r+=1,0===(128&n))break}return e}function K(t,e){for(var r=e;;){var n=127&r;if(0==(r>>=7)){t.push(n);break}n|=128,t.push(n)}}var H=function(){function t(e){Object(p.a)(this,t),m()(this,"header",void 0),m()(this,"accountKeys",void 0),m()(this,"recentBlockhash",void 0),m()(this,"instructions",void 0),this.header=e.header,this.accountKeys=e.accountKeys.map((function(t){return new B(t)})),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions}return Object(b.a)(t,[{key:"isAccountWritable",value:function(t){return t<this.header.numRequiredSignatures-this.header.numReadonlySignedAccounts||t>=this.header.numRequiredSignatures&&t<this.accountKeys.length-this.header.numReadonlyUnsignedAccounts}},{key:"serialize",value:function(){var t=this.accountKeys.length,e=[];K(e,t);var r=this.instructions.map((function(t){var e=t.accounts,r=t.programIdIndex,n=S.a.decode(t.data),i=[];K(i,e.length);var o=[];return K(o,n.length),{programIdIndex:r,keyIndicesCount:w.Buffer.from(i),keyIndices:w.Buffer.from(e),dataLength:w.Buffer.from(o),data:n}})),n=[];K(n,r.length);var i=w.Buffer.alloc(Z);w.Buffer.from(n).copy(i);var o=n.length;r.forEach((function(t){var e=A.struct([A.u8("programIdIndex"),A.blob(t.keyIndicesCount.length,"keyIndicesCount"),A.seq(A.u8("keyIndex"),t.keyIndices.length,"keyIndices"),A.blob(t.dataLength.length,"dataLength"),A.seq(A.u8("userdatum"),t.data.length,"data")]).encode(t,i,o);o+=e})),i=i.slice(0,o);var a=A.struct([A.blob(1,"numRequiredSignatures"),A.blob(1,"numReadonlySignedAccounts"),A.blob(1,"numReadonlyUnsignedAccounts"),A.blob(e.length,"keyCount"),A.seq(W("key"),t,"keys"),W("recentBlockhash")]),s={numRequiredSignatures:w.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:w.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:w.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:w.Buffer.from(e),keys:this.accountKeys.map((function(t){return P(t.toBytes())})),recentBlockhash:S.a.decode(this.recentBlockhash)},u=w.Buffer.alloc(2048),c=a.encode(s,u);return i.copy(u,c),u.slice(0,c+i.length)}}],[{key:"from",value:function(e){for(var r=Object(s.a)(e),n=r.shift(),i=r.shift(),o=r.shift(),a=F(r),u=[],c=0;c<a;c++){var f=r.slice(0,32);r=r.slice(32),u.push(S.a.encode(w.Buffer.from(f)))}for(var h=r.slice(0,32),l=F(r=r.slice(32)),d=[],p=0;p<l;p++){var b=r.shift(),v=F(r),m=r.slice(0,v),y=F(r=r.slice(v)),g=r.slice(0,y),_=S.a.encode(w.Buffer.from(g));r=r.slice(y),d.push({programIdIndex:b,accounts:m,data:_})}return new t({header:{numRequiredSignatures:n,numReadonlySignedAccounts:i,numReadonlyUnsignedAccounts:o},recentBlockhash:S.a.encode(w.Buffer.from(h)),accountKeys:u,instructions:d})}}]),t}();function Y(t,e){if(!t)throw new Error(e||"Assertion failed")}var V=w.Buffer.alloc(64).fill(0),Z=1232,G=function t(e){Object(p.a)(this,t),m()(this,"keys",void 0),m()(this,"programId",void 0),m()(this,"data",w.Buffer.alloc(0)),this.programId=e.programId,this.keys=e.keys,e.data&&(this.data=e.data)},X=function(){function t(e){Object(p.a)(this,t),m()(this,"signatures",[]),m()(this,"feePayer",void 0),m()(this,"instructions",[]),m()(this,"recentBlockhash",void 0),m()(this,"nonceInfo",void 0),e&&Object.assign(this,e)}return Object(b.a)(t,[{key:"signature",get:function(){return this.signatures.length>0?this.signatures[0].signature:null}},{key:"add",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(0===r.length)throw new Error("No instructions");
2return r.forEach((function(e){"instructions"in e?t.instructions=t.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?t.instructions.push(e):t.instructions.push(new G(e))})),this}},{key:"compileMessage",value:function(){var t=this.nonceInfo;t&&this.instructions[0]!=t.nonceInstruction&&(this.recentBlockhash=t.nonce,this.instructions.unshift(t.nonceInstruction));var e,r=this.recentBlockhash;if(!r)throw new Error("Transaction recentBlockhash required");if(this.instructions.length<1&&console.warn("No instructions provided"),this.feePayer)e=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");e=this.signatures[0].publicKey}for(var n=0;n<this.instructions.length;n++)if(void 0===this.instructions[n].programId)throw new Error("Transaction instruction index ".concat(n," has undefined program id"));var s=[],u=[];this.instructions.forEach((function(t){t.keys.forEach((function(t){u.push(Object(a.a)({},t))}));var e=t.programId.toString();s.includes(e)||s.push(e)})),s.forEach((function(t){u.push({pubkey:new B(t),isSigner:!1,isWritable:!1})}
2)),u.sort((function(t,e){var r=t.isSigner===e.isSigner?0:t.isSigner?-1:1,n=t.isWritable===e.isWritable?0:t.isWritable?-1:1;return r||n}));var c=[];u.forEach((function(t){var e=t.pubkey.toString(),r=c.findIndex((function(t){return t.pubkey.toString()===e}));r>-1?c[r].isWritable=c[r].isWritable||t.isWritable:c.push(t)}));var f=c.findIndex((function(t){return t.pubkey.equals(e)}));if(f>-1){var h=c.splice(f,1),l=Object(o.a)(h,1)[0];l.isSigner=!0,l.isWritable=!0,c.unshift(l)}else c.unshift({pubkey:e,isSigner:!0,isWritable:!0});var d,p=Object(i.a)(this.signatures);try{var b=function(){var t=d.value,e=c.findIndex((function(e){return e.pubkey.equals(t.publicKey)}));if(!(e>-1))throw new Error("unknown signer: ".concat(t.publicKey.toString()));c[e].isSigner||(c[e].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(p.s();!(d=p.n()).done;)b()}catch(M){p.e(M)}finally{p.f()}var v=0,m=0,y=0,g=[],w=[];c.forEach((function(t){var e=t.pubkey,r=t.isSigner,n=t.isWritable;r?(g.push(e.toString()),v+=1,n||(m+=1)):(w.push(e.toString()),n||(y+=1))}));var _=g.concat(w),k=this.instructions.map((function(t){var e=t.data,r=t.programId;return{programIdIndex:_.indexOf(r.toString()),accounts:t.keys.map((function(t){return _.indexOf(t.pubkey.toString())})),data:S.a.encode(e)}}));return k.forEach((function(t){Y(t.programIdIndex>=0),t.accounts.forEach((function(t){return Y(t>=0)}))})),new H({header:{numRequiredSignatures:v,numReadonlySignedAccounts:m,numReadonlyUnsignedAccounts:y},accountKeys:_,recentBlockhash:r,instructions:k})}},{key:"_compile",value:function(){var t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length&&this.signatures.every((function(t,r){return e[r].equals(t.publicKey)})))return t;return this.signatures=e.map((function(t){return{signature:null,publicKey:t}})),t}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"setSigners",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");var n=new Set;this.signatures=e.filter((function(t){var e=t.toString();return!n.has(e)&&(n.add(e),!0)})).map((function(t){return{signature:null,publicKey:t}}))}},{key:"sign",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");for(var n=new Set,i=[],o=0,a=e;o<a.length;o++){var s=a[o],u=s.publicKey.toString();n.has(u)||(n.add(u),i.push(s))}this.signatures=i.map((function(t){return{signature:null,publicKey:t.publicKey}}));var c=this._compile();this._partialSign.apply(this,[c].concat(i)),this._verifySignatures(c.serialize(),!0)}},{key:"partialSign",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");for(var n=new Set,i=[],o=0,a=e;o<a.length;o++){var s=a[o],u=s.publicKey.toString();n.has(u)||(n.add(u),i.push(s))}var c=this._compile();this._partialSign.apply(this,[c].concat(i))}},{key:"_partialSign",value:function(t){for(var e=this,r=t.serialize(),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];i.forEach((function(t){var n=g.a.sign.detached(r,t.secretKey);e._addSignature(t.publicKey,P(n))}))}},{key:"addSignature",value:function(t,e){this._compile(),this._addSignature(t,e)}},{key:"_addSignature",value:function(t,e){Y(64===e.length);var r=this.signatures.findIndex((function(e){return t.equals(e.publicKey)}));if(r<0)throw new Error("unknown signer: ".concat(t.toString()));this.signatures[r].signature=w.Buffer.from(e)}},{key:"verifySignatures",value:function(){return this._verifySignatures(this.serializeMessage(),!0)}},{key:"_verifySignatures",value:function(t,e){var r,n=Object(i.a)(this.signatures);try{for(n.s();!(r=n.n()).done;){var o=r.value,a=o.signature,s=o.publicKey;if(null===a){if(e)return!1}else if(!g.a.sign.detached.verify(t,a,s.toBuffer()))return!1}}catch(u){n.e(u)}finally{n.f()}return!0}},{key:"serialize",value:function(t){var e=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=e.requireAllSignatures,n=e.verifySignatures,i=this.serializeMessage();if(n&&!this._verifySignatures(i,r))throw new Error("Signature verification failed");return this._serialize(i)}},{key:"_serialize",value:function(t){var e=this.signatures,r=[];K(r,e.length);var n=r.length+64*e.length+t.length,i=w.Buffer.alloc(n);return Y(e.length<256),w.Buffer.from(r).copy(i,0),e.forEach((function(t,e){var n=t.signature;
2null!==n&&(Y(64===n.length,"signature has invalid length"),w.Buffer.from(n).copy(i,r.length+64*e))})),t.copy(i,r.length+64*e.length),Y(i.length<=Z,"Transaction too large: ".concat(i.length," > ").concat(Z)),i}},{key:"keys",get:function(){return Y(1===this.instructions.length),this.instructions[0].keys.map((function(t){return t.pubkey}))}},{key:"programId",get:function(){return Y(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return Y(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(e){for(var r=Object(s.a)(e),n=F(r),i=[],o=0;o<n;o++){var a=r.slice(0,64);r=r.slice(64),i.push(S.a.encode(w.Buffer.from(a)))}return t.populate(H.from(r),i)}},{key:"populate",value:function(e,r){var n=new t;return n.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(n.feePayer=e.accountKeys[0]),r.forEach((function(t,r){var i={signature:t==S.a.encode(V)?null:S.a.decode(t),publicKey:e.accountKeys[r]};n.signatures.push(i)})),e.instructions.forEach((function(t){var r=t.accounts.map((function(t){var r=e.accountKeys[t];return{pubkey:r,isSigner:n.signatures.some((function(t){return t.publicKey.toString()===r.toString()})),isWritable:e.isAccountWritable(t)}}));n.instructions.push(new G({keys:r,programId:e.accountKeys[t.programIdIndex],data:S.a.decode(t.data)}))})),n}}]),t}(),J=new B("SysvarC1ock11111111111111111111111111111111"),Q=new B("SysvarRecentB1ockHashes11111111111111111111"),$=new B("SysvarRent111111111111111111111111111111111"),tt=(new B("SysvarRewards111111111111111111111111111111"),new B("SysvarStakeHistory1111111111111111111111111"));new B("Sysvar1nstructions1111111111111111111111111");function et(t,e,r,n){return rt.apply(this,arguments)}function rt(){return(rt=Object(f.a)(c.a.mark((function t(e,r,n,i){var o,a,s;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment},t.next=3,e.sendTransaction(r,n,o);case 3:return a=t.sent,t.next=6,e.confirmTransaction(a,i&&i.commitment);case 6:if(!(s=t.sent.value).err){t.next=9;break}throw new Error("Transaction ".concat(a," failed (").concat(JSON.stringify(s),")"));case 9:return t.abrupt("return",a);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function nt(t){return new Promise((function(e){return setTimeout(e,t)}))}function it(t,e){var r=t.layout.span>=0?t.layout.span:function(t,e){var r=0;return t.layout.fields.forEach((function(t){t.span>=0?r+=t.span:"function"===typeof t.alloc&&(r+=t.alloc(e[t.property]))})),r}(t,e),n=w.Buffer.alloc(r),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,n),n}var ot=A.nu64("lamportsPerSignature"),at=A.struct([A.u32("version"),A.u32("state"),W("authorizedPubkey"),W("nonce"),A.struct([ot],"feeCalculator")]),st=at.span,ut=Object.freeze({Create:{index:0,layout:A.struct([A.u32("instruction"),A.ns64("lamports"),A.ns64("space"),W("programId")])},Assign:{index:1,layout:A.struct([A.u32("instruction"),W("programId")])},Transfer:{index:2,layout:A.struct([A.u32("instruction"),A.ns64("lamports")])},CreateWithSeed:{index:3,layout:A.struct([A.u32("instruction"),W("base"),q("seed"),A.ns64("lamports"),A.ns64("space"),W("programId")])},AdvanceNonceAccount:{index:4,layout:A.struct([A.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:A.struct([A.u32("instruction"),A.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:A.struct([A.u32("instruction"),W("authorized")])},AuthorizeNonceAccount:{index:7,layout:A.struct([A.u32("instruction"),W("authorized")])},Allocate:{index:8,layout:A.struct([A.u32("instruction"),A.ns64("space")])},AllocateWithSeed:{index:9,layout:A.struct([A.u32("instruction"),W("base"),q("seed"),A.ns64("space"),W("programId")])},AssignWithSeed:{index:10,layout:A.struct([A.u32("instruction"),W("base"),q("seed"),W("programId")])},TransferWithSeed:{index:11,layout:A.struct([A.u32("instruction"),A.ns64("lamports"),q("seed"),W("programId")])}}),ct=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"createAccount",value:function(t){var e=it(ut.Create,{lamports:t.lamports,space:t.space,programId:P(t.programId.toBuffer())});return new G({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:e})}},{key:"transfer",value:function(t){var e,r;"basePubkey"in t?(e=it(ut.TransferWithSeed,{lamports:t.lamports,seed:t.seed,programId:P(t.programId.toBuffer())}),r=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]):(e=it(ut.Transfer,{lamports:t.lamports}),r=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]);return new G({keys:r,programId:this.programId,data:e})}},{key:"assign",value:function(t){var e,r;"basePubkey"in t?(e=it(ut.AssignWithSeed,{base:P(t.basePubkey.toBuffer()),seed:t.seed,programId:P(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]):(e=it(ut.Assign,{programId:P(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]);return new G({keys:r,programId:this.programId,data:e})}},{key:"createAccountWithSeed",value:function(t){var e=it(ut.CreateWithSeed,{base:P(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:P(t.programId.toBuffer())}),r=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey!=t.fromPubkey&&r.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new G({keys:r,programId:this.programId,data:e})}},{key:"createNonceAccount",value:function(e){var r=new X;"basePubkey"in e&&"seed"in e?r.add(t.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:st,programId:this.programId})):r.add(t.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,lamports:e.lamports,space:st,programId:this.programId}));var n={noncePubkey:e.noncePubkey,authorizedPubkey:e.authorizedPubkey};return r.add(this.nonceInitialize(n)),r}},{key:"nonceInitialize",value:function(t){var e=it(ut.InitializeNonceAccount,{authorized:P(t.authorizedPubkey.toBuffer())}),r={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Q,isSigner:!1,isWritable:!1},{pubkey:$,isSigner:!1,isWritable:!1}],programId:this.programId,data:e};return new G(r)}},{key:"nonceAdvance",value:function(t){var e=it(ut.AdvanceNonceAccount),r={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Q,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e};return new G(r)}},{key:"nonceWithdraw",value:function(t){var e=it(ut.WithdrawNonceAccount,{lamports:t.lamports});return new G({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:Q,isSigner:!1,isWritable:!1},{pubkey:$,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}},{key:"nonceAuthorize",value:function(t){var e=it(ut.AuthorizeNonceAccount,{authorized:P(t.newAuthorizedPubkey.toBuffer())});return new G({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}},{key:"allocate",value:function(t){var e,r;"basePubkey"in t?(e=it(ut.AllocateWithSeed,{base:P(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:P(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]):(e=it(ut.Allocate,{space:t.space}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]);return new G({keys:r,programId:this.programId,data:e})}}]),t}();m()(ct,"programId",new B("11111111111111111111111111111111"));var ft=Z-300,ht=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"getMinNumSignatures",value:function(e){return 2*(Math.ceil(e/t.chunkSize)+1+1)}},{key:"load",value:function(){var e=Object(f.a)(c.a.mark((function e(r,n,i,o,a){var s,u,f,h,l,d,p,b,v,m,y,g,_,k;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.getMinimumBalanceForRentExemption(a.length);case 2:return s=e.sent,e.next=5,r.getAccountInfo(i.publicKey,"confirmed");case 5:if(u=e.sent,f=null,null===u){e.next=16;break}if(!u.executable){e.next=11;break}return console.error("Program load failed, account is already executable"),e.abrupt("return",!1);case 11:u.data.length!==a.length&&(f=f||new X).add(ct.allocate({accountPubkey:i.publicKey,space:a.length})),u.owner.equals(o)||(f=f||new X).add(ct.assign({accountPubkey:i.publicKey,programId:o})),u.lamports<s&&(f=f||new X).add(ct.transfer({fromPubkey:n.publicKey,toPubkey:i.publicKey,lamports:s-u.lamports})),e.next=17;break;case 16:f=(new X).add(ct.createAccount({fromPubkey:n.publicKey,newAccountPubkey:i.publicKey,lamports:s>0?s:1,space:a.length,programId:o}));case 17:if(null===f){e.next=20;break}return e.next=20,et(r,f,[n,i],{commitment:"confirmed"});case 20:h=A.struct([A.u32("instruction"),A.u32("offset"),A.u32("bytesLength"),A.u32("bytesLengthPadding"),A.seq(A.u8("byte"),A.offset(A.u32(),-8),"bytes")]),l=t.chunkSize,d=0,p=a,b=[];case 25:if(!(p.length>0)){e.next=39;break}if(v=p.slice(0,l),m=w.Buffer.alloc(l+16),h.encode({instruction:0,offset:d,bytes:v},m),y=(new X).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:m}),b.push(et(r,y,[n,i],{commitment:"confirmed"})),!r._rpcEndpoint.includes("solana.com")){e.next=35;break}return 4,e.next=35,nt(250);case 35:d+=l,p=p.slice(l),e.next=25;break;case 39:return e.next=41,Promise.all(b);case 41:return g=A.struct([A.u32("instruction")]),_=w.Buffer.alloc(g.span),g.encode({instruction:1},_),k=(new X).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:$,isSigner:!1,isWritable:!1}],programId:o,data:_}),e.next=47,et(r,k,[n,i],{commitment:"confirmed"});case 47:return e.abrupt("return",!0);case 48:case"end":return e.stop()}}),e)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()}]),t}();m()(ht,"chunkSize",ft);new B("BPFLoader2111111111111111111111111111111111");var lt={exports:{}};!function(t,e){var r=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof r)return r;throw new Error("unable to locate global object")}();t.exports=e=r.fetch,r.fetch&&(e.default=r.fetch.bind(r)),e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response}
2(lt,lt.exports);Error;var dt=Object(O.e)(Object(O.g)(B),Object(O.m)(),(function(t){return new B(t)})),pt=Object(O.n)([Object(O.m)(),Object(O.h)("base64")]),bt=Object(O.e)(Object(O.g)(w.Buffer),pt,(function(t){return w.Buffer.from(t[0],"base64")}));function vt(t){return Object(O.p)([Object(O.o)({jsonrpc:Object(O.h)("2.0"),id:Object(O.m)(),result:t}),Object(O.o)({jsonrpc:Object(O.h)("2.0"),id:Object(O.m)(),error:Object(O.o)({code:Object(O.q)(),message:Object(O.m)(),data:Object(O.k)(Object(O.a)())})})])}var mt=vt(Object(O.q)());function yt(t){return Object(O.e)(vt(t),mt,(function(e){return"error"in e?e:Object(a.a)(Object(a.a)({},e),{},{result:Object(O.f)(e.result,t)})}))}function gt(t){return yt(Object(O.o)({context:Object(O.o)({slot:Object(O.j)()}),value:t}))}function wt(t){return Object(O.o)({context:Object(O.o)({slot:Object(O.j)()}),value:t})}var _t=Object(O.o)({foundation:Object(O.j)(),foundationTerm:Object(O.j)(),initial:Object(O.j)(),taper:Object(O.j)(),terminal:Object(O.j)()}),kt=(yt(Object(O.b)(Object(O.i)(Object(O.o)({epoch:Object(O.j)(),effectiveSlot:Object(O.j)(),amount:Object(O.j)(),postBalance:Object(O.j)()})))),Object(O.o)({epoch:Object(O.j)(),slotIndex:Object(O.j)(),slotsInEpoch:Object(O.j)(),absoluteSlot:Object(O.j)(),blockHeight:Object(O.k)(Object(O.j)()),transactionCount:Object(O.k)(Object(O.j)())})),Mt=Object(O.o)({slotsPerEpoch:Object(O.j)(),leaderScheduleSlotOffset:Object(O.j)(),warmup:Object(O.d)(),firstNormalEpoch:Object(O.j)(),firstNormalSlot:Object(O.j)()}),St=Object(O.l)(Object(O.m)(),Object(O.b)(Object(O.j)())),Et=Object(O.i)(Object(O.p)([Object(O.o)({}),Object(O.m)()])),xt=Object(O.o)({err:Et}),At=Object(O.h)("receivedSignature");Object(O.o)({"solana-core":Object(O.m)(),"feature-set":Object(O.k)(Object(O.j)())}),gt(Object(O.o)({err:Object(O.i)(Object(O.p)([Object(O.o)({}),Object(O.m)()])),logs:Object(O.i)(Object(O.b)(Object(O.m)()))}));yt(_t),yt(kt),yt(Mt),yt(St),yt(Object(O.j)()),gt(Object(O.o)({total:Object(O.j)(),circulating:Object(O.j)(),nonCirculating:Object(O.j)(),nonCirculatingAccounts:Object(O.b)(dt)}));var Ot=Object(O.o)({amount:Object(O.m)(),uiAmount:Object(O.i)(Object(O.j)()),decimals:Object(O.j)(),uiAmountString:Object(O.k)(Object(O.m)())}),jt=(gt(Object(O.b)(Object(O.o)({address:dt,amount:Object(O.m)(),uiAmount:Object(O.i)(Object(O.j)()),decimals:Object(O.j)(),uiAmountString:Object(O.k)(Object(O.m)())}))),gt(Object(O.b)(Object(O.o)({pubkey:dt,account:Object(O.o)({executable:Object(O.d)(),owner:dt,lamports:Object(O.j)(),data:bt,rentEpoch:Object(O.j)()})}))),Object(O.o)({program:Object(O.m)(),parsed:Object(O.q)(),space:Object(O.j)()})),Rt=(gt(Object(O.b)(Object(O.o)({pubkey:dt,account:Object(O.o)({executable:Object(O.d)(),owner:dt,lamports:Object(O.j)(),data:jt,rentEpoch:Object(O.j)()})}))),gt(Object(O.b)(Object(O.o)({lamports:Object(O.j)(),address:dt}))),Object(O.o)({executable:Object(O.d)(),owner:dt,lamports:Object(O.j)(),data:bt,rentEpoch:Object(O.j)()})),It=(Object(O.o)({pubkey:dt,account:Rt}),Object(O.e)(Object(O.p)([Object(O.g)(w.Buffer),jt]),Object(O.p)([pt,jt]),(function(t){return Array.isArray(t)?Object(O.f)(t,bt):t}))),Pt=Object(O.o)({executable:Object(O.d)(),owner:dt,lamports:Object(O.j)(),data:It,rentEpoch:Object(O.j)()}),Tt=(Object(O.o)({pubkey:dt,account:Pt}),Object(O.o)({state:Object(O.p)([Object(O.h)("active"),Object(O.h)("inactive"),Object(O.h)("activating"),Object(O.h)("deactivating")]),active:Object(O.j)(),inactive:Object(O.j)()}),yt(Object(O.b)(Object(O.o)({signature:Object(O.m)(),slot:Object(O.j)(),err:Et,memo:Object(O.i)(Object(O.m)()),blockTime:Object(O.k)(Object(O.i)(Object(O.j)()))}))),yt(Object(O.b)(Object(O.o)({signature:Object(O.m)(),slot:Object(O.j)(),err:Et,memo:Object(O.i)(Object(O.m)()),blockTime:Object(O.k)(Object(O.i)(Object(O.j)()))}))),Object(O.o)({subscription:Object(O.j)(),result:wt(Rt)}),Object(O.o)({pubkey:dt,account:Rt})),Ct=(Object(O.o)({subscription:Object(O.j)(),result:wt(Tt)}),Object(O.o)({parent:Object(O.j)(),slot:Object(O.j)(),root:Object(O.j)()})),Bt=(Object(O.o)({subscription:Object(O.j)(),result:Ct}),Object(O.p)([Object(O.o)({type:Object(O.p)([Object(O.h)("firstShredReceived"),Object(O.h)("completed"),Object(O.h)("optimisticConfirmation"),Object(O.h)("root")
2]),slot:Object(O.j)(),timestamp:Object(O.j)()}),Object(O.o)({type:Object(O.h)("createdBank"),parent:Object(O.j)(),slot:Object(O.j)(),timestamp:Object(O.j)()}),Object(O.o)({type:Object(O.h)("frozen"),slot:Object(O.j)(),timestamp:Object(O.j)(),stats:Object(O.o)({numTransactionEntries:Object(O.j)(),numSuccessfulTransactions:Object(O.j)(),numFailedTransactions:Object(O.j)(),maxTransactionsPerEntry:Object(O.j)()})}),Object(O.o)({type:Object(O.h)("dead"),slot:Object(O.j)(),timestamp:Object(O.j)(),err:Object(O.m)()})])),Lt=(Object(O.o)({subscription:Object(O.j)(),result:Bt}),Object(O.o)({subscription:Object(O.j)(),result:wt(Object(O.p)([xt,At]))}),Object(O.o)({subscription:Object(O.j)(),result:Object(O.j)()}),Object(O.o)({pubkey:Object(O.m)(),gossip:Object(O.i)(Object(O.m)()),tpu:Object(O.i)(Object(O.m)()),rpc:Object(O.i)(Object(O.m)()),version:Object(O.i)(Object(O.m)())}),Object(O.o)({votePubkey:Object(O.m)(),nodePubkey:Object(O.m)(),activatedStake:Object(O.j)(),epochVoteAccount:Object(O.d)(),epochCredits:Object(O.b)(Object(O.n)([Object(O.j)(),Object(O.j)(),Object(O.j)()])),commission:Object(O.j)(),lastVote:Object(O.j)(),rootSlot:Object(O.i)(Object(O.j)())})),Nt=(yt(Object(O.o)({current:Object(O.b)(Lt),delinquent:Object(O.b)(Lt)})),Object(O.p)([Object(O.h)("processed"),Object(O.h)("confirmed"),Object(O.h)("finalized")])),Dt=Object(O.o)({slot:Object(O.j)(),confirmations:Object(O.i)(Object(O.j)()),err:Et,confirmationStatus:Object(O.k)(Nt)}),Ut=(gt(Object(O.b)(Object(O.i)(Dt))),yt(Object(O.j)()),Object(O.o)({signatures:Object(O.b)(Object(O.m)()),message:Object(O.o)({accountKeys:Object(O.b)(Object(O.m)()),header:Object(O.o)({numRequiredSignatures:Object(O.j)(),numReadonlySignedAccounts:Object(O.j)(),numReadonlyUnsignedAccounts:Object(O.j)()}),instructions:Object(O.b)(Object(O.o)({accounts:Object(O.b)(Object(O.j)()),data:Object(O.m)(),programIdIndex:Object(O.j)()})),recentBlockhash:Object(O.m)()})})),zt=Object(O.o)({parsed:Object(O.q)(),program:Object(O.m)(),programId:dt}),Wt=Object(O.o)({accounts:Object(O.b)(dt),data:Object(O.m)(),programId:dt}),qt=Object(O.p)([Wt,zt]),Ft=Object(O.p)([Object(O.o)({parsed:Object(O.q)(),program:Object(O.m)(),programId:Object(O.m)()}),Object(O.o)({accounts:Object(O.b)(Object(O.m)()),data:Object(O.m)(),programId:Object(O.m)()})]),Kt=Object(O.e)(qt,Ft,(function(t){return"accounts"in t?Object(O.f)(t,Wt):Object(O.f)(t,zt)})),Ht=Object(O.o)({signatures:Object(O.b)(Object(O.m)()),message:Object(O.o)({accountKeys:Object(O.b)(Object(O.o)({pubkey:dt,signer:Object(O.d)(),writable:Object(O.d)()})),instructions:Object(O.b)(Kt),recentBlockhash:Object(O.m)()})}),Yt=Object(O.o)({accountIndex:Object(O.j)(),mint:Object(O.m)(),uiTokenAmount:Ot}),Vt=Object(O.o)({err:Et,fee:Object(O.j)(),innerInstructions:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.o)({index:Object(O.j)(),instructions:Object(O.b)(Object(O.o)({accounts:Object(O.b)(Object(O.j)()),data:Object(O.m)(),programIdIndex:Object(O.j)()}))})))),preBalances:Object(O.b)(Object(O.j)()),postBalances:Object(O.b)(Object(O.j)()),logMessages:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.m)()))),preTokenBalances:Object(O.k)(Object(O.i)(Object(O.b)(Yt))),postTokenBalances:Object(O.k)(Object(O.i)(Object(O.b)(Yt)))}),Zt=Object(O.o)({err:Et,fee:Object(O.j)(),innerInstructions:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.o)({index:Object(O.j)(),instructions:Object(O.b)(Kt)})))),preBalances:Object(O.b)(Object(O.j)()),postBalances:Object(O.b)(Object(O.j)()),logMessages:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.m)()))),preTokenBalances:Object(O.k)(Object(O.i)(Object(O.b)(Yt))),postTokenBalances:Object(O.k)(Object(O.i)(Object(O.b)(Yt)))}),Gt=(yt(Object(O.i)(Object(O.o)({blockhash:Object(O.m)(),previousBlockhash:Object(O.m)(),parentSlot:Object(O.j)(),transactions:Object(O.b)(Object(O.o)({transaction:Ut,meta:Object(O.i)(Vt)})),rewards:Object(O.k)(Object(O.b)(Object(O.o)({pubkey:Object(O.m)(),lamports:Object(O.j)(),postBalance:Object(O.i)(Object(O.j)()),rewardType:Object(O.i)(Object(O.m)())}))),blockTime:Object(O.i)(Object(O.j)())}))),yt(Object(O.i)(Object(O.o)({blockhash:Object(O.m)(),previousBlockhash:Object(O.m)(),parentSlot:Object(O.j)(),signatures:Object(O.b)(Object(O.m)()),blockTime:Object(O.i)(Object(O.j)())}))),yt(Object(O.i)(Object(O.o)({slot:Object(O.j)(),meta:Vt,blockTime:Object(O.k)(Object(O.i)(Object(O.j)())),transaction:Ut}))),yt(Object(O.i)(Object(O.o)({slot:Object(O.j)(),transaction:Ht,meta:Object(O.i)(Zt),blockTime:Object(O.k)(Object(O.i)(Object(O.j)()))}))),gt(Object(O.o)({blockhash:Object(O.m)(),feeCalculator:Object(O.o)({lamportsPerSignature:Object(O.j)()})})),Object(O.o)({slot:Object(O.j)(),numTransactions:Object(O.j)(),numSlots:Object(O.j)(),samplePeriodSecs:Object(O.j)()})),Xt=(yt(Object(O.b)(Gt)),gt(Object(O.i)(Object(O.o)({feeCalculator:Object(O.o)({lamportsPerSignature:Object(O.j)()})}))),yt(Object(O.m)()),yt(Object(O.m)()),Object(O.o)({err:Et,logs:Object(O.b)(Object(O.m)()),signature:Object(O.m)()})),Jt=(Object(O.o)({result:wt(Xt),subscription:Object(O.j)()}),function(){function t(e){Object(p.a)(this,t),m()(this,"_keypair",void 0),this._keypair=e||y.sign.keyPair()}return Object(b.a)(t,[{key:"publicKey",get:function(){return new B(this._keypair.publicKey)}},{key:"secretKey",get:function(){return this._keypair.secretKey}}],[{key:"generate",value:function(){return new t(y.sign.keyPair())}},{key:"fromSecretKey",value:function(e,r){var n=y.sign.keyPair.fromSecretKey(e);if(!r||!r.skipValidation){var i=(new TextEncoder).encode("@solana/web3.js-validation-v1"),o=y.sign.detached(i,n.secretKey);if(!y.sign.detached.verify(i,o,n.publicKey))throw new Error("provided secretKey is invali
2d")}return new t(n)}},{key:"fromSeed",value:function(e){return new t(y.sign.keyPair.fromSeed(e))}}]),t}()),Qt=new B("StakeConfig11111111111111111111111111111111"),$t=function t(e,r,n){Object(p.a)(this,t),m()(this,"unixTimestamp",void 0),m()(this,"epoch",void 0),m()(this,"custodian",void 0),this.unixTimestamp=e,this.epoch=r,this.custodian=n};m()($t,"default",new $t(0,0,B.default));var te=Object.freeze({Initialize:{index:0,layout:A.struct([A.u32("instruction"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"authorized";return A.struct([W("staker"),W("withdrawer")],t)}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return A.struct([A.ns64("unixTimestamp"),A.ns64("epoch"),W("custodian")],t)}()])},Authorize:{index:1,layout:A.struct([A.u32("instruction"),W("newAuthorized"),A.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:A.struct([A.u32("instruction")])},Split:{index:3,layout:A.struct([A.u32("instruction"),A.ns64("lamports")])},Withdraw:{index:4,layout:A.struct([A.u32("instruction"),A.ns64("lamports")])},Deactivate:{index:5,layout:A.struct([A.u32("instruction")])},Merge:{index:7,layout:A.struct([A.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:A.struct([A.u32("instruction"),W("newAuthorized"),A.u32("stakeAuthorizationType"),q("authoritySeed"),W("authorityOwner")])}}),ee=(Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"initialize",value:function(t){var e=t.stakePubkey,r=t.authorized,n=t.lockup||$t.default,i=it(te.Initialize,{authorized:{staker:P(r.staker.toBuffer()),withdrawer:P(r.withdrawer.toBuffer())},lockup:{unixTimestamp:n.unixTimestamp,epoch:n.epoch,custodian:P(n.custodian.toBuffer())}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:$,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new G(o)}},{key:"createAccountWithSeed",value:function(t){var e=new X;e.add(ct.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));var r=t.stakePubkey,n=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}},{key:"createAccount",value:function(t){var e=new X;e.add(ct.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));var r=t.stakePubkey,n=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}},{key:"delegate",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.votePubkey,i=it(te.Delegate);return(new X).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:J,isSigner:!1,isWritable:!1},{pubkey:tt,isSigner:!1,isWritable:!1},{pubkey:Qt,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"authorize",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.newAuthorizedPubkey,i=t.stakeAuthorizationType,o=t.custodianPubkey,a=it(te.Authorize,{newAuthorized:P(n.toBuffer()),stakeAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new X).add({keys:s,programId:this.programId,data:a})}},{key:"authorizeWithSeed",value:function(t){var e=t.stakePubkey,r=t.authorityBase,n=t.authoritySeed,i=t.authorityOwner,o=t.newAuthorizedPubkey,a=t.stakeAuthorizationType,s=t.custodianPubkey,u=it(te.AuthorizeWithSeed,{newAuthorized:P(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:n,authorityOwner:P(i.toBuffer())}),c=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:J,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),(new X).add({keys:c,programId:this.programId,data:u})}},{key:"split",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.splitStakePubkey,i=t.lamports,o=new X;o.add(ct.createAccount({fromPubkey:r,newAccountPubkey:n,lamports:0,space:this.space,programId:this.programId}));var a=it(te.Split,{lamports:i});return o.add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"merge",value:function(t){var e=t.stakePubkey,r=t.sourceStakePubKey,n=t.authorizedPubkey,i=it(te.Merge);return(new X).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!1,isWritable:!1},{pubkey:tt,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"withdraw",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.toPubkey,i=t.lamports,o=t.custodianPubkey,a=it(te.Withdraw,{lamports:i}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!1,isWritable:!1},{pubkey:tt,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new X).add({keys:s,programId:this.programId,data:a})}},{key:"deactivate",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=it(te.Deactivate);return(new X).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}}]),t}());
2m()(ee,"programId",new B("Stake11111111111111111111111111111111111111")),m()(ee,"space",200);var re=R.a.publicKeyCreate,ne=R.a.ecdsaSign,ie=A.struct([A.u8("numSignatures"),A.u16("signatureOffset"),A.u8("signatureInstructionIndex"),A.u16("ethAddressOffset"),A.u8("ethAddressInstructionIndex"),A.u16("messageDataOffset"),A.u16("messageDataSize"),A.u8("messageInstructionIndex"),A.blob(20,"ethAddress"),A.blob(64,"signature"),A.u8("recoveryId")]),oe=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"publicKeyToEthAddress",value:function(t){Y(64===t.length,"Public key must be ".concat(64," bytes but received ").concat(t.length," bytes"));try{return w.Buffer.from(I.keccak_256.update(P(t)).digest()).slice(-20)}catch(e){throw new Error("Error constructing Ethereum address: ".concat(e))}}},{key:"createInstructionWithPublicKey",value:function(e){var r=e.publicKey,n=e.message,i=e.signature,o=e.recoveryId,a=e.instructionIndex;return t.createInstructionWithEthAddress({ethAddress:t.publicKeyToEthAddress(r),message:n,signature:i,recoveryId:o,instructionIndex:a})}},{key:"createInstructionWithEthAddress",value:function(e){var r,n=e.ethAddress,i=e.message,o=e.signature,a=e.recoveryId,s=e.instructionIndex,u=void 0===s?0:s;Y(20===(r="string"===typeof n?n.startsWith("0x")?w.Buffer.from(n.substr(2),"hex"):w.Buffer.from(n,"hex"):n).length,"Address must be ".concat(20," bytes but received ").concat(r.length," bytes"));var c=12+r.length,f=c+o.length+1,h=w.Buffer.alloc(ie.span+i.length);return ie.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:u,ethAddressOffset:12,ethAddressInstructionIndex:u,messageDataOffset:f,messageDataSize:i.length,messageInstructionIndex:u,signature:P(o),ethAddress:P(r),recoveryId:a},h),h.fill(P(i),ie.span),new G({keys:[],programId:t.programId,data:h})}},{key:"createInstructionWithPrivateKey",value:function(t){var e=t.privateKey,r=t.message,n=t.instructionIndex;Y(32===e.length,"Private key must be ".concat(32," bytes but received ").concat(e.length," bytes"));try{var i=P(e),o=re(i,!1).slice(1),a=w.Buffer.from(I.keccak_256.update(P(r)).digest()),s=ne(a,i),u=s.signature,c=s.recid;return this.createInstructionWithPublicKey({publicKey:o,message:r,signature:u,recoveryId:c,instructionIndex:n})}catch(f){throw new Error("Error creating instruction; ".concat(f))}}}]),t}();m()(oe,"programId",new B("KeccakSecp256k11111111111111111111111111111"));new B("Va1idator1nfo111111111111111111111111111111"),Object(O.o)({name:Object(O.m)(),website:Object(O.k)(Object(O.m)()),details:Object(O.k)(Object(O.m)()),keybaseUsername:Object(O.k)(Object(O.m)())}),new B("Vote111111111111111111111111111111111111111"),A.struct([W("nodePubkey"),W("authorizedVoterPubkey"),W("authorizedWithdrawerPubkey"),A.u8("commission"),A.nu64(),A.seq(A.struct([A.nu64("slot"),A.u32("confirmationCount")]),A.offset(A.u32(),-8),"votes"),A.u8("rootSlotValid"),A.nu64("rootSlot"),A.nu64("epoch"),A.nu64("credits"),A.nu64("lastEpochCredits"),A.nu64(),A.seq(A.struct([A.nu64("epoch"),A.nu64("credits"),A.nu64("prevCredits")]),A.offset(A.u32(),-8),"epochCredits")])},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(168);function i(t,e){if(null==t)return{};var r,i,o=Object(n.a)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r.d(e,"a",(function(){return o}
2))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(162);var i=r(82),o=r(163);function a(t,e){return Object(n.a)(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}(t,e)||Object(i.a)(t,e)||Object(o.a)()}},function(t,e,r){t.exports=r(356)()},function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"Account",(function(){return Y})),r.d(e,"Authorized",(function(){return ur})),r.d(e,"BLOCKHASH_CACHE_TIMEOUT_MS",(function(){return Nt})),r.d(e,"BPF_LOADER_DEPRECATED_PROGRAM_ID",(function(){return V})),r.d(e,"BPF_LOADER_PROGRAM_ID",(function(){return St})),r.d(e,"BpfLoader",(function(){return Et})),r.d(e,"Connection",(function(){return nr})),r.d(e,"Ed25519Program",(function(){return ar})),r.d(e,"Enum",(function(){return N})),r.d(e,"EpochSchedule",(function(){return It})),r.d(e,"FeeCalculatorLayout",(function(){return bt})),r.d(e,"Keypair",(function(){return ir})),r.d(e,"LAMPORTS_PER_SOL",(function(){return Or})),r.d(e,"Loader",(function(){return Mt})),r.d(e,"Lockup",(function(){return cr})),r.d(e,"MAX_SEED_LENGTH",(function(){return U})),r.d(e,"Message",(function(){return Q})),r.d(e,"NONCE_ACCOUNT_LENGTH",(function(){return mt})),r.d(e,"NonceAccount",(function(){return yt})),r.d(e,"PACKET_DATA_SIZE",(function(){return et})),r.d(e,"PublicKey",(function(){return z})),r.d(e,"SOLANA_SCHEMA",(function(){return D})),r.d(e,"STAKE_CONFIG_ID",(function(){return sr})),r.d(e,"STAKE_INSTRUCTION_LAYOUTS",(function(){return hr})),r.d(e,"SYSTEM_INSTRUCTION_LAYOUTS",(function(){return wt})),r.d(e,"SYSVAR_CLOCK_PUBKEY",(function(){return it})),r.d(e,"SYSVAR_INSTRUCTIONS_PUBKEY",(function(){return ct})),r.d(e,"SYSVAR_RECENT_BLOCKHASHES_PUBKEY",(function(){return ot})),r.d(e,"SYSVAR_RENT_PUBKEY",(function(){return at})),r.d(e,"SYSVAR_REWARDS_PUBKEY",(function(){return st})),r.d(e,"SYSVAR_STAKE_HISTORY_PUBKEY",(function(){return ut})),r.d(e,"Secp256k1Program",(function(){return mr})),r.d(e,"SendTransactionError",(function(){return Pt})),r.d(e,"StakeAuthorizationLayout",(function(){return lr})),r.d(e,"StakeInstruction",(function(){return fr})),r.d(e,"StakeProgram",(function(){return dr})),r.d(e,"Struct",(function(){return L})),r.d(e,"SystemInstruction",(function(){return gt})),r.d(e,"SystemProgram",(function(){return _t})),r.d(e,"Transaction",(function(){return nt})),r.d(e,"TransactionInstruction",(function(){return rt})),r.d(e,"VALIDATOR_INFO_KEY",(function(){return yr})),r.d(e,"VOTE_PROGRAM_ID",(function(){return _r})),r.d(e,"ValidatorInfo",(function(){return wr})),r.d(e,"VoteAccount",(function(){return Mr})),r.d(e,"clusterApiUrl",(function(){return Ar})),r.d(e,"sendAndConfirmRawTransaction",(function(){return Sr})),r.d(e,"sendAndConfirmTransaction",(function(){return ft}));var n=r(77),i=r(18),o=r(14),a=r(13),s=r(20),u=r(1),c=r.n(u),f=r(4),h=r(44),l=r(21),d=r(22),p=r(9),b=r(10),v=r(5),m=r.n(v),y=r(50),g=r.n(y),w=r(7),_=r(46),k=r.n(_),M=r(23),S=r.n(M),E=r(111),x=r(88),A=r(3),O=r(0),j=r(166),R=r(167),I=r.n(R),P=r(112),T=r.n(P),C=r(113),B=function(t){return w.Buffer.isBuffer(t)?t:t instanceof Uint8Array?w.Buffer.from(t.buffer,t.byteOffset,t.byteLength):w.Buffer.from(t)},L=function(){function t(e){Object(p.a)(this,t),Object.assign(this,e)}return Object(b.a)(t,[{key:"encode",value:function(){return w.Buffer.from(Object(x.serialize)(D,this))}}],[{key:"decode",value:function(t){return Object(x.deserialize)(D,this,t)}},{key:"decodeUnchecked",value:function(t){return Object(x.deserializeUnchecked)(D,this,t)}}]),t}(),N=function(t){Object(l.a)(r,t);var e=Object(d.a)(r);function r(t){var n;if(Object(p.a)(this,r),n=e.call(this,t),m()(Object(h.a)(n),"enum",""),1!==Object.keys(t).length)throw new Error("Enum can only take single value");return Object.keys(t).map((function(t){n.enum=t})),n}return r}(L),D=new Map,U=32;var z=function(t){Object(l.a)(r,t);var e=Object(d.a)(r);function r(t){var n;if(Object(p.a)(this,r),n=e.call(this,{}
2),m()(Object(h.a)(n),"_bn",void 0),function(t){return void 0!==t._bn}(t))n._bn=t._bn;else{if("string"===typeof t){var i=S.a.decode(t);if(32!=i.length)throw new Error("Invalid public key input");n._bn=new k.a(i)}else n._bn=new k.a(t);if(n._bn.byteLength()>32)throw new Error("Invalid public key input")}return n}return Object(b.a)(r,[{key:"equals",value:function(t){return this._bn.eq(t._bn)}},{key:"toBase58",value:function(){return S.a.encode(this.toBytes())}},{key:"toBytes",value:function(){return this.toBuffer()}},{key:"toBuffer",value:function(){var t=this._bn.toArrayLike(w.Buffer);if(32===t.length)return t;var e=w.Buffer.alloc(32);return t.copy(e,32-t.length),e}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"createWithSeed",value:function(){var t=Object(f.a)(c.a.mark((function t(e,n,i){var o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=w.Buffer.concat([e.toBuffer(),w.Buffer.from(n),i.toBuffer()]),t.next=3,Object(E.sha256)(new Uint8Array(o));case 3:return a=t.sent,t.abrupt("return",new r(w.Buffer.from(a,"hex")));case 5:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"createProgramAddress",value:function(){var t=Object(f.a)(c.a.mark((function t(e,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=w.Buffer.alloc(0),e.forEach((function(t){if(t.length>U)throw new TypeError("Max seed length exceeded");i=w.Buffer.concat([i,B(t)])})),i=w.Buffer.concat([i,n.toBuffer(),w.Buffer.from("ProgramDerivedAddress")]),t.next=5,Object(E.sha256)(new Uint8Array(i));case 5:if(o=t.sent,!q(a=new k.a(o,16).toArray(void 0,32))){t.next=9;break}throw new Error("Invalid seeds, address must fall off the curve");case 9:return t.abrupt("return",new r(a));case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"findProgramAddress",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=255;case 1:if(0==n){t.next=18;break}return t.prev=2,o=e.concat(w.Buffer.from([n])),t.next=6,this.createProgramAddress(o,r);case 6:i=t.sent,t.next=15;break;case 9:if(t.prev=9,t.t0=t.catch(2),!(t.t0 instanceof TypeError)){t.next=13;break}throw t.t0;case 13:return n--,t.abrupt("continue",1);case 15:return t.abrupt("return",[i,n]);case 18:throw new Error("Unable to find a viable program address nonce");case 19:case"end":return t.stop()}}),t,this,[[2,9]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"isOnCurve",value:function(t){return 1==q(t)}}]),r}(L);m()(z,"default",new z("11111111111111111111111111111111")),D.set(z,{kind:"struct",fields:[["_bn","u256"]]});var W=g.a.lowlevel;function q(t){var e=[W.gf(),W.gf(),W.gf(),W.gf()],r=W.gf(),n=W.gf(),i=W.gf(),o=W.gf(),a=W.gf(),s=W.gf(),u=W.gf();return W.set25519(e[2],F),W.unpack25519(e[1],t),W.S(i,e[1]),W.M(o,i,W.D),W.Z(i,i,e[2]),W.A(o,e[2],o),W.S(a,o),W.S(s,a),W.M(u,s,a),W.M(r,u,i),W.M(r,r,o),W.pow2523(r,r),W.M(r,r,i),W.M(r,r,o),W.M(r,r,o),W.M(e[0],r,o),W.S(n,e[0]),W.M(n,n,o),H(n,i)&&W.M(e[0],e[0],K),W.S(n,e[0]),W.M(n,n,o),H(n,i)?0:1}var F=W.gf([1]),K=W.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function H(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return W.pack25519(r,t),W.pack25519(n,e),W.crypto_verify_32(r,0,n,0)}var Y=function(){function t(e){Object(p.a)(this,t),m()(this,"_keypair",void 0),this._keypair=e?y.sign.keyPair.fromSecretKey(B(e)):y.sign.keyPair()}return Object(b.a)(t,[{key:"publicKey",get:function(){return new z(this._keypair.publicKey)}},{key:"secretKey",get:function(){return B(this._keypair.secretKey)}}]),t}(),V=new z("BPFLoader1111111111111111111111111111111111"),Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return A.blob(32,t)},G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",e=A.struct([A.u32("length"),A.u32("lengthPadding"),A.blob(A.offset(A.u32(),-8),"chars")],t),r=e.decode.bind(e),n=e.encode.bind(e);return e.decode=function(t,e){return r(t,e).chars.toString("utf8")},e.encode=function(t,e,r){var i={chars:w.Buffer.from(t,"utf8")};return n(i,e,r)},e.alloc=function(t){return A.u32().span+A.u32().span+w.Buffer.from(t,"utf8").length},e};function X(t){for(var e=0,r=0;;){var n=t.shift();if(e|=(127&n)<<7*r,r+=1,0===(128&n))break}return e}function J(t,e){for(var r=e;;){var n=127&r;if(0==(r>>=7)){t.push(n);break}n|=128,t.push(n)}}var Q=function(){function t(e){var r=this;Object(p.a)(this,t),m()(this,"header",void 0),m()(this,"accountKeys",void 0),m()(this,"recentBlockhash",void 0),m()(this,"instructions",void 0),m()(this,"indexToProgramIds",new Map),this.header=e.header,this.accountKeys=e.accountKeys.map((function(t){return new z(t)})),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions,this.instructions.forEach((function(t){return r.indexToProgramIds.set(t.programIdIndex,r.accountKeys[t.programIdIndex])}))}return Object(b.a)(t,[{key:"isAccountSigner",value:function(t){return t<this.header.numRequiredSignatures}},{key:"isAccountWritable",value:function(t){return t<this.header.numRequiredSignatures-this.header.numReadonlySignedAccounts||t>=this.header.numRequiredSignatures&&t<this.accountKeys.length-this.header.numReadonlyUnsignedAccounts}},{key:"isProgramId",value:function(t){return this.indexToProgramIds.has(t)}},{key:"programIds",value:function(){return Object(s.a)(this.indexToProgramIds.values())}},{key:"nonProgramIds",value:function(){var t=this;return this.accountKeys.filter((function(e,r){return!t.isProgramId(r)}))}},{key:"serialize",value:function(){var t=this.accountKeys.length,e=[];J(e,t);var r=this.instructions.map((function(t){var e=t.accounts,r=t.programIdIndex,n=S.a.decode(t.data),i=[];J(i,e.length);var o=[];return J(o,n.length),{programIdIndex:r,keyIndicesCount:w.Buffer.from(i),keyIndices:w.Buffer.from(e),dataLength:w.Buffer.from(o),data:n}})),n=[];J(n,r.length);var i=w.Buffer.alloc(et);w.Buffer.from(n).copy(i);var o=n.length;r.forEach((function(t){var e=A.struct([A.u8("programIdIndex"),A.blob(t.keyIndicesCount.length,"keyIndicesCount"),A.seq(A.u8("keyIndex"),t.keyIndices.length,"keyIndices"),A.blob(t.dataLength.length,"dataLength"),A.seq(A.u8("userdatum"),t.data.length,"data")]).encode(t,i,o);o+=e})),i=i.slice(0,o);var a=A.struct([A.blob(1,"numRequiredSignatures"),A.blob(1,"numReadonlySignedAccounts"),A.blob(1,"numReadonlyUnsignedAccounts"),A.blob(e.length,"keyCount"),A.seq(Z("key"),t,"keys"),Z("recentBlockhash")]),s={numRequiredSignatures:w.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:w.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:w.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:w.Buffer.from(e),keys:this.accountKeys.map((function(t){return B(t.toBytes())})),recentBlockhash:S.a.decode(this.recentBlockhash)},u=w.Buffer.alloc(2048),c=a.encode(s,u);return i.copy(u,c),u.slice(0,c+i.length)}}],[{key:"from",value:function(e){for(var r=Object(s.a)(e),n=r.shift(),i=r.shift(),o=r.shift(),a=X(r),u=[],c=0;c<a;c++){var f=r.slice(0,32);r=r.slice(32),u.push(S.a.encode(w.Buffer.from(f)))}for(var h=r.slice(0,32),l=X(r=r.slice(32)),d=[],p=0;p<l;p++){var b=r.shift(),v=X(r),m=r.slice(0,v),y=X(r=r.slice(v)),g=r.slice(0,y),_=S.a.encode(w.Buffer.from(g));r=r.slice(y),d.push({programIdIndex:b,accounts:m,data:_})}return new t({header:{numRequiredSignatures:n,numReadonlySignedAccounts:i,numReadonlyUnsignedAccounts:o},recentBlockhash:S.a.encode(w.Buffer.from(h)),accountKeys:u,instructions:d})}}]),t}();function $(t,e){if(!t)throw new Error(e||"Assertion failed")}var tt=w.Buffer.alloc(64).fill(0),et=1232,rt=function t(e){Object(p.a)(this,t),m()(this,"keys",void 0),m()(this,"programId",void 0),m()(this,"data",w.Buffer.alloc(0)),this.programId=e.programId,this.keys=e.keys,e.data&&(this.data=e.data)},nt=function(){function t(e){Object(p.a)(this,t),m()(this,"signatures",[]),m()(this,"feePayer",void 0),m()(this,"instructions",[]),m()(this,"recentBlockhash",void 0),m()(this,"nonceInfo",void 0),e&&Object.assign(this,e)}return Object(b.a)(t,[{key:"signature",get:function(){return this.signatures.length>0?this.signatures[0].signature:null}},{key:"add",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(0===r.length)throw new Error("No instructions");
2return r.forEach((function(e){"instructions"in e?t.instructions=t.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?t.instructions.push(e):t.instructions.push(new rt(e))})),this}},{key:"compileMessage",value:function(){var t=this.nonceInfo;t&&this.instructions[0]!=t.nonceInstruction&&(this.recentBlockhash=t.nonce,this.instructions.unshift(t.nonceInstruction));var e,r=this.recentBlockhash;if(!r)throw new Error("Transaction recentBlockhash required");if(this.instructions.length<1&&console.warn("No instructions provided"),this.feePayer)e=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");e=this.signatures[0].publicKey}for(var n=0;n<this.instructions.length;n++)if(void 0===this.instructions[n].programId)throw new Error("Transaction instruction index ".concat(n," has undefined program id"));var s=[],u=[];this.instructions.forEach((function(t){t.keys.forEach((function(t){u.push(Object(a.a)({},t))}));var e=t.programId.toString();s.includes(e)||s.push(e)})),s.forEach((function(t){u.push({pubkey:new z(t),isSigner:!1,isWritable:!1})}
2)),u.sort((function(t,e){var r=t.isSigner===e.isSigner?0:t.isSigner?-1:1,n=t.isWritable===e.isWritable?0:t.isWritable?-1:1;return r||n}));var c=[];u.forEach((function(t){var e=t.pubkey.toString(),r=c.findIndex((function(t){return t.pubkey.toString()===e}));r>-1?c[r].isWritable=c[r].isWritable||t.isWritable:c.push(t)}));var f=c.findIndex((function(t){return t.pubkey.equals(e)}));if(f>-1){var h=c.splice(f,1),l=Object(o.a)(h,1)[0];l.isSigner=!0,l.isWritable=!0,c.unshift(l)}else c.unshift({pubkey:e,isSigner:!0,isWritable:!0});var d,p=Object(i.a)(this.signatures);try{var b=function(){var t=d.value,e=c.findIndex((function(e){return e.pubkey.equals(t.publicKey)}));if(!(e>-1))throw new Error("unknown signer: ".concat(t.publicKey.toString()));c[e].isSigner||(c[e].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(p.s();!(d=p.n()).done;)b()}catch(M){p.e(M)}finally{p.f()}var v=0,m=0,y=0,g=[],w=[];c.forEach((function(t){var e=t.pubkey,r=t.isSigner,n=t.isWritable;r?(g.push(e.toString()),v+=1,n||(m+=1)):(w.push(e.toString()),n||(y+=1))}));var _=g.concat(w),k=this.instructions.map((function(t){var e=t.data,r=t.programId;return{programIdIndex:_.indexOf(r.toString()),accounts:t.keys.map((function(t){return _.indexOf(t.pubkey.toString())})),data:S.a.encode(e)}}));return k.forEach((function(t){$(t.programIdIndex>=0),t.accounts.forEach((function(t){return $(t>=0)}))})),new Q({header:{numRequiredSignatures:v,numReadonlySignedAccounts:m,numReadonlyUnsignedAccounts:y},accountKeys:_,recentBlockhash:r,instructions:k})}},{key:"_compile",value:function(){var t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length&&this.signatures.every((function(t,r){return e[r].equals(t.publicKey)})))return t;return this.signatures=e.map((function(t){return{signature:null,publicKey:t}})),t}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"setSigners",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");var n=new Set;this.signatures=e.filter((function(t){var e=t.toString();return!n.has(e)&&(n.add(e),!0)})).map((function(t){return{signature:null,publicKey:t}}))}},{key:"sign",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");for(var n=new Set,i=[],o=0,a=e;o<a.length;o++){var s=a[o],u=s.publicKey.toString();n.has(u)||(n.add(u),i.push(s))}this.signatures=i.map((function(t){return{signature:null,publicKey:t.publicKey}}));var c=this._compile();this._partialSign.apply(this,[c].concat(i)),this._verifySignatures(c.serialize(),!0)}},{key:"partialSign",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");for(var n=new Set,i=[],o=0,a=e;o<a.length;o++){var s=a[o],u=s.publicKey.toString();n.has(u)||(n.add(u),i.push(s))}var c=this._compile();this._partialSign.apply(this,[c].concat(i))}},{key:"_partialSign",value:function(t){for(var e=this,r=t.serialize(),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];i.forEach((function(t){var n=g.a.sign.detached(r,t.secretKey);e._addSignature(t.publicKey,B(n))}))}},{key:"addSignature",value:function(t,e){this._compile(),this._addSignature(t,e)}},{key:"_addSignature",value:function(t,e){$(64===e.length);var r=this.signatures.findIndex((function(e){return t.equals(e.publicKey)}));if(r<0)throw new Error("unknown signer: ".concat(t.toString()));this.signatures[r].signature=w.Buffer.from(e)}},{key:"verifySignatures",value:function(){return this._verifySignatures(this.serializeMessage(),!0)}},{key:"_verifySignatures",value:function(t,e){var r,n=Object(i.a)(this.signatures);try{for(n.s();!(r=n.n()).done;){var o=r.value,a=o.signature,s=o.publicKey;if(null===a){if(e)return!1}else if(!g.a.sign.detached.verify(t,a,s.toBuffer()))return!1}}catch(u){n.e(u)}finally{n.f()}return!0}},{key:"serialize",value:function(t){var e=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=e.requireAllSignatures,n=e.verifySignatures,i=this.serializeMessage();if(n&&!this._verifySignatures(i,r))throw new Error("Signature verification failed");return this._serialize(i)}},{key:"_serialize",value:function(t){var e=this.signatures,r=[];J(r,e.length);var n=r.length+64*e.length+t.length,i=w.Buffer.alloc(n);return $(e.length<256),w.Buffer.from(r).copy(i,0),e.forEach((function(t,e){var n=t.signature;
2null!==n&&($(64===n.length,"signature has invalid length"),w.Buffer.from(n).copy(i,r.length+64*e))})),t.copy(i,r.length+64*e.length),$(i.length<=et,"Transaction too large: ".concat(i.length," > ").concat(et)),i}},{key:"keys",get:function(){return $(1===this.instructions.length),this.instructions[0].keys.map((function(t){return t.pubkey}))}},{key:"programId",get:function(){return $(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return $(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(e){for(var r=Object(s.a)(e),n=X(r),i=[],o=0;o<n;o++){var a=r.slice(0,64);r=r.slice(64),i.push(S.a.encode(w.Buffer.from(a)))}return t.populate(Q.from(r),i)}},{key:"populate",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new t;return n.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(n.feePayer=e.accountKeys[0]),r.forEach((function(t,r){var i={signature:t==S.a.encode(tt)?null:S.a.decode(t),publicKey:e.accountKeys[r]};n.signatures.push(i)})),e.instructions.forEach((function(t){var r=t.accounts.map((function(t){var r=e.accountKeys[t];return{pubkey:r,isSigner:n.signatures.some((function(t){return t.publicKey.toString()===r.toString()}))||e.isAccountSigner(t),isWritable:e.isAccountWritable(t)}}));n.instructions.push(new rt({keys:r,programId:e.accountKeys[t.programIdIndex],data:S.a.decode(t.data)}))})),n}}]),t}(),it=new z("SysvarC1ock11111111111111111111111111111111"),ot=new z("SysvarRecentB1ockHashes11111111111111111111"),at=new z("SysvarRent111111111111111111111111111111111"),st=new z("SysvarRewards111111111111111111111111111111"),ut=new z("SysvarStakeHistory1111111111111111111111111"),ct=new z("Sysvar1nstructions1111111111111111111111111");function ft(t,e,r,n){return ht.apply(this,arguments)}function ht(){return(ht=Object(f.a)(c.a.mark((function t(e,r,n,i){var o,a,s;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment},t.next=3,e.sendTransaction(r,n,o);case 3:return a=t.sent,t.next=6,e.confirmTransaction(a,i&&i.commitment);case 6:if(!(s=t.sent.value).err){t.next=9;break}throw new Error("Transaction ".concat(a," failed (").concat(JSON.stringify(s),")"));case 9:return t.abrupt("return",a);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lt(t){return new Promise((function(e){return setTimeout(e,t)}))}function dt(t,e){var r=t.layout.span>=0?t.layout.span:function(t,e){var r=0;return t.layout.fields.forEach((function(t){t.span>=0?r+=t.span:"function"===typeof t.alloc&&(r+=t.alloc(e[t.property]))})),r}(t,e),n=w.Buffer.alloc(r),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,n),n}function pt(t,e){var r;try{r=t.layout.decode(e)}catch(n){throw new Error("invalid instruction; "+n)}if(r.instruction!==t.index)throw new Error("invalid instruction; instruction index mismatch ".concat(r.instruction," != ").concat(t.index));return r}var bt=A.nu64("lamportsPerSignature"),vt=A.struct([A.u32("version"),A.u32("state"),Z("authorizedPubkey"),Z("nonce"),A.struct([bt],"feeCalculator")]),mt=vt.span,yt=function(){function t(e){Object(p.a)(this,t),m()(this,"authorizedPubkey",void 0),m()(this,"nonce",void 0),m()(this,"feeCalculator",void 0),this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}return Object(b.a)(t,null,[{key:"fromAccountData",value:function(e){var r=vt.decode(B(e),0);return new t({authorizedPubkey:new z(r.authorizedPubkey),nonce:new z(r.nonce).toString(),feeCalculator:r.feeCalculator})}}]),t}(),gt=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"decodeInstructionType",value:function(t){this.checkProgramId(t.programId);for(var e,r=A.u32("instruction").decode(t.data),n=0,i=Object.entries(wt);n<i.length;n++){var a=Object(o.a)(i[n],2),s=a[0];if(a[1].index==r){e=s;break}}if(!e)throw new Error("Instruction type incorrect; not a SystemInstruction");return e}},{key:"decodeCreateAccount",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);var e=pt(wt.Create,t.data),r=e.lamports,n=e.space,i=e.programId;return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:r,space:n,programId:new z(i)}}},{key:"decodeTransfer",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);var e=pt(wt.Transfer,t.data).lamports;return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:e}}},{key:"decodeTransferWithSeed",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);var e=pt(wt.TransferWithSeed,t.data),r=e.lamports,n=e.seed,i=e.programId;return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:r,seed:n,programId:new z(i)}}},{key:"decodeAllocate",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);var e=pt(wt.Allocate,t.data).space;return{accountPubkey:t.keys[0].pubkey,space:e}}},{key:"decodeAllocateWithSeed",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);var e=pt(wt.AllocateWithSeed,t.data),r=e.base,n=e.seed,i=e.space,o=e.programId;return{accountPubkey:t.keys[0].pubkey,basePubkey:new z(r),seed:n,space:i,programId:new z(o)}}},{key:"decodeAssign",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);var e=pt(wt.Assign,t.data).programId;return{accountPubkey:t.keys[0].pubkey,programId:new z(e)}}},{key:"decodeAssignWithSeed",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);var e=pt(wt.AssignWithSeed,t.data),r=e.base,n=e.seed,i=e.programId;return{accountPubkey:t.keys[0].pubkey,basePubkey:new z(r),seed:n,programId:new z(i)}}},{key:"decodeCreateWithSeed",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);var e=pt(wt.CreateWithSeed,t.data),r=e.base,n=e.seed,i=e.lamports,o=e.space,a=e.programId;return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new z(r),seed:n,lamports:i,space:o,programId:new z(a)}}},{key:"decodeNonceInitialize",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);var e=pt(wt.InitializeNonceAccount,t.data).authorized;return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new z(e)}}},{key:"decodeNonceAdvance",value:function(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),pt(wt.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}},{key:"decodeNonceWithdraw",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);var e=pt(wt.WithdrawNonceAccount,t.data).lamports;return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e}}},{key:"decodeNonceAuthorize",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);var e=pt(wt.AuthorizeNonceAccount,t.data).authorized;return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new z(e)}}},{key:"checkProgramId",value:function(t){if(!t.equals(_t.programId))throw new Error("invalid instruction; programId is not SystemProgram")}},{key:"checkKeyLength",value:function(t,e){if(t.length<e)throw new Error("invalid instruction; found ".concat(t.length," keys, expected at least ").concat(e))}}]),t}(),wt=Object.freeze({Create:{index:0,layout:A.struct([A.u32("instruction"),A.ns64("lamports"),A.ns64("space"),Z("programId")])},Assign:{index:1,layout:A.struct([A.u32("instruction"),Z("programId")])},Transfer:{index:2,layout:A.struct([A.u32("instruction"),A.ns64("lamports")])},CreateWithSeed:{index:3,layout:A.struct([A.u32("instruction"),Z("base"),G("seed"),A.ns64("lamports"),A.ns64("space"),Z("programId")])},AdvanceNonceAccount:{index:4,layout:A.struct([A.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:A.struct([A.u32("instruction"),A.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:A.struct([A.u32("instruction"),Z("authorized")])},AuthorizeNonceAccount:{index:7,layout:A.struct([A.u32("instruction"),Z("authorized")])},Allocate:{index:8,layout:A.struct([A.u32("instruction"),A.ns64("space")])},AllocateWithSeed:{index:9,layout:A.struct([A.u32("instruction"),Z("base"),G("seed"),A.ns64("space"),Z("programId")])},AssignWithSeed:{index:10,layout:A.struct([A.u32("instruction"),Z("base"),G("seed"),Z("programId")])},TransferWithSeed:{index:11,layout:A.struct([A.u32("instruction"),A.ns64("lamports"),G("seed"),Z("programId")])}}),_t=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"createAccount",value:function(t){var e=dt(wt.Create,{lamports:t.lamports,space:t.space,programId:B(t.programId.toBuffer())});return new rt({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:e})}},{key:"transfer",value:function(t){var e,r;"basePubkey"in t?(e=dt(wt.TransferWithSeed,{lamports:t.lamports,seed:t.seed,programId:B(t.programId.toBuffer())}),r=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]):(e=dt(wt.Transfer,{lamports:t.lamports}),r=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]);return new rt({keys:r,programId:this.programId,data:e})}},{key:"assign",value:function(t){var e,r;"basePubkey"in t?(e=dt(wt.AssignWithSeed,{base:B(t.basePubkey.toBuffer()),seed:t.seed,programId:B(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]):(e=dt(wt.Assign,{programId:B(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]);return new rt({keys:r,programId:this.programId,data:e})}},{key:"createAccountWithSeed",value:function(t){var e=dt(wt.CreateWithSeed,{base:B(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:B(t.programId.toBuffer())}),r=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey!=t.fromPubkey&&r.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new rt({keys:r,programId:this.programId,data:e})}},{key:"createNonceAccount",value:function(e){var r=new nt;"basePubkey"in e&&"seed"in e?r.add(t.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:mt,programId:this.programId})):r.add(t.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,lamports:e.lamports,space:mt,programId:this.programId}));var n={noncePubkey:e.noncePubkey,authorizedPubkey:e.authorizedPubkey};return r.add(this.nonceInitialize(n)),r}},{key:"nonceInitialize",value:function(t){var e=dt(wt.InitializeNonceAccount,{authorized:B(t.authorizedPubkey.toBuffer())}),r={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:ot,isSigner:!1,isWritable:!1},{pubkey:at,isSigner:!1,isWritable:!1}],programId:this.programId,data:e};return new rt(r)}},{key:"nonceAdvance",value:function(t){var e=dt(wt.AdvanceNonceAccount),r={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:ot,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e};return new rt(r)}},{key:"nonceWithdraw",value:function(t){var e=dt(wt.WithdrawNonceAccount,{lamports:t.lamports});return new rt({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:ot,isSigner:!1,isWritable:!1},{pubkey:at,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}},{key:"nonceAuthorize",value:function(t){var e=dt(wt.AuthorizeNonceAccount,{authorized:B(t.newAuthorizedPubkey.toBuffer())});return new rt({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}},{key:"allocate",value:function(t){var e,r;"basePubkey"in t?(e=dt(wt.AllocateWithSeed,{base:B(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:B(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]):(e=dt(wt.Allocate,{space:t.space}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]);return new rt({keys:r,programId:this.programId,data:e})}}]),t}();m()(_t,"programId",new z("11111111111111111111111111111111"));var kt=et-300,Mt=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"getMinNumSignatures",value:function(e){return 2*(Math.ceil(e/t.chunkSize)+1+1)}},{key:"load",value:function(){var e=Object(f.a)(c.a.mark((function e(r,n,i,o,a){var s,u,f,h,l,d,p,b,v,m,y,g,_,k;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.getMinimumBalanceForRentExemption(a.length);case 2:return s=e.sent,e.next=5,r.getAccountInfo(i.publicKey,"confirmed");case 5:if(u=e.sent,f=null,null===u){e.next=16;break}if(!u.executable){e.next=11;break}return console.error("Program load failed, account is already executable"),e.abrupt("return",!1);case 11:u.data.length!==a.length&&(f=f||new nt).add(_t.allocate({accountPubkey:i.publicKey,space:a.length})),u.owner.equals(o)||(f=f||new nt).add(_t.assign({accountPubkey:i.publicKey,programId:o})),u.lamports<s&&(f=f||new nt).add(_t.transfer({fromPubkey:n.publicKey,toPubkey:i.publicKey,lamports:s-u.lamports})),e.next=17;break;case 16:f=(new nt).add(_t.createAccount({fromPubkey:n.publicKey,newAccountPubkey:i.publicKey,lamports:s>0?s:1,space:a.length,programId:o}));case 17:if(null===f){e.next=20;break}return e.next=20,ft(r,f,[n,i],{commitment:"confirmed"});case 20:h=A.struct([A.u32("instruction"),A.u32("offset"),A.u32("bytesLength"),A.u32("bytesLengthPadding"),A.seq(A.u8("byte"),A.offset(A.u32(),-8),"bytes")]),l=t.chunkSize,d=0,p=a,b=[];case 25:if(!(p.length>0)){e.next=39;break}if(v=p.slice(0,l),m=w.Buffer.alloc(l+16),h.encode({instruction:0,offset:d,bytes:v},m),y=(new nt).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:m}),b.push(ft(r,y,[n,i],{commitment:"confirmed"})),!r._rpcEndpoint.includes("solana.com")){e.next=35;break}return 4,e.next=35,lt(250);case 35:d+=l,p=p.slice(l),e.next=25;break;case 39:return e.next=41,Promise.all(b);case 41:return g=A.struct([A.u32("instruction")]),_=w.Buffer.alloc(g.span),g.encode({instruction:1},_),k=(new nt).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:at,isSigner:!1,isWritable:!1}],programId:o,data:_}),e.next=47,ft(r,k,[n,i],{commitment:"confirmed"});case 47:return e.abrupt("return",!0);case 48:case"end":return e.stop()}}),e)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()}]),t}();m()(Mt,"chunkSize",kt);
vendor: 5,017 bytes, line 2
2var St=new z("BPFLoader2111111111111111111111111111111111"),Et=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"getMinNumSignatures",value:function(t){return Mt.getMinNumSignatures(t)}},{key:"load",value:function(t,e,r,n,i){return Mt.load(t,e,r,i,n)}}]),t}(),xt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};function At(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ot={exports:{}};!function(t,e){var r="undefined"!==typeof self?self:xt,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!==typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!==typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function b(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"===typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"===typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=p(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=c(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},l.prototype.delete=function(t){delete this.map[c(t)]},l.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},l.prototype.set=function(t,e){this.map[c(t)]=f(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),h(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),h(t)},n&&(l.prototype[Symbol.iterator]=l.prototype.entries);
2var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=function(t){var e=t.toUpperCase();return y.indexOf(e)>-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function _(t){var e=new l;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e}function k(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},k.error=function(){var t=new k(null,{status:0,statusText:""});return t.type="error",t};var M=[301,302,303,307,308];k.redirect=function(t,e){if(-1===M.indexOf(e))throw new RangeError("Invalid status code");return new k(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(E){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(t,r){return new Promise((function(n,o){var a=new g(t,r);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var t={status:s.status,statusText:s.statusText,headers:_(s.getAllResponseHeaders()||"")};t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL");var e="response"in s?s.response:s.responseText;n(new k(e,t))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,t.fetch||(t.fetch=S,t.Headers=l,t.Request=g,t.Response=k),e.Headers=l,e.Request=g,e.Response=k,e.fetch=S,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(Ot,Ot.exports);var jt=At(Ot.exports);function Rt(t){for(var e=0;t>1;)t/=2,e++;return e}var It=function(){function t(e,r,n,i,o){Object(p.a)(this,t),m()(this,"slotsPerEpoch",void 0),m()(this,"leaderScheduleSlotOffset",void 0),m()(this,"warmup",void 0),m()(this,"firstNormalEpoch",void 0),m()(this,"firstNormalSlot",void 0),this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=r,this.warmup=n,this.firstNormalEpoch=i,this.firstNormalSlot=o}return Object(b.a)(t,[{key:"getEpoch",value:function(t){return this.getEpochAndSlotIndex(t)[0]}},{key:"getEpochAndSlotIndex",value:function(t){if(t<this.firstNormalSlot){var e=Rt(0===(r=t+32+1)?1:(r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,1+(r|=r>>32)))-Rt(32)-1;return[e,t-(this.getSlotsInEpoch(e)-32)]}var r,n=t-this.firstNormalSlot,i=Math.floor(n/this.slotsPerEpoch);return[this.firstNormalEpoch+i,n%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(t){return t<=this.firstNormalEpoch?32*(Math.pow(2,t)-1):(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}},{key:"getSlotsInEpoch",value:function(t){return t<this.firstNormalEpoch?Math.pow(2,t+Rt(32)):this.slotsPerEpoch}}]),t}(),Pt=function(t){Object(l.a)(r,t);var e=Object(d.a)(r);function r(t,n){var i;return Object(p.a)(this,r),i=e.call(this,t),m()(Object(h.a)(i),"logs",void 0),i.logs=n,i}return r}(Object(n.a)(Error));function Tt(t,e){var r,n=new Promise((function(t){r=setTimeout((function(){return t(null)}),e)}));return Promise.race([t,n]).then((function(t){return clearTimeout(r),t}))}var Ct=Object(O.e)(Object(O.g)(z),Object(O.m)(),(function(t){return new z(t)})),Bt=Object(O.n)([Object(O.m)(),Object(O.h)("base64")]),Lt=Object(O.e)(Object(O.g)(w.Buffer),Bt,(function(t){return w.Buffer.from(t[0],"base64")})),Nt=3e4;function Dt(t){return Object(O.p)([Object(O.o)({jsonrpc:Object(O.h)("2.0"),id:Object(O.m)(),result:t}),Object(O.o)({jsonrpc:Object(O.h)("2.0"),id:Object(O.m)(),error:Object(O.o)({code:Object(O.q)(),message:Object(O.m)(),data:Object(O.k)(Object(O.a)())})})])}var Ut=Dt(Object(O.q)());
2function zt(t){return Object(O.e)(Dt(t),Ut,(function(e){return"error"in e?e:Object(a.a)(Object(a.a)({},e),{},{result:Object(O.f)(e.result,t)})}))}function Wt(t){return zt(Object(O.o)({context:Object(O.o)({slot:Object(O.j)()}),value:t}))}function qt(t){return Object(O.o)({context:Object(O.o)({slot:Object(O.j)()}),value:t})}var Ft=Object(O.o)({foundation:Object(O.j)(),foundationTerm:Object(O.j)(),initial:Object(O.j)(),taper:Object(O.j)(),terminal:Object(O.j)()}),Kt=zt(Object(O.b)(Object(O.i)(Object(O.o)({epoch:Object(O.j)(),effectiveSlot:Object(O.j)(),amount:Object(O.j)(),postBalance:Object(O.j)()})))),Ht=Object(O.o)({epoch:Object(O.j)(),slotIndex:Object(O.j)(),slotsInEpoch:Object(O.j)(),absoluteSlot:Object(O.j)(),blockHeight:Object(O.k)(Object(O.j)()),transactionCount:Object(O.k)(Object(O.j)())}),Yt=Object(O.o)({slotsPerEpoch:Object(O.j)(),leaderScheduleSlotOffset:Object(O.j)(),warmup:Object(O.d)(),firstNormalEpoch:Object(O.j)(),firstNormalSlot:Object(O.j)()}),Vt=Object(O.l)(Object(O.m)(),Object(O.b)(Object(O.j)())),Zt=Object(O.i)(Object(O.p)([Object(O.o)({}),Object(O.m)()])),Gt=Object(O.o)({err:Zt}),Xt=Object(O.h)("receivedSignature"),Jt=Object(O.o)({"solana-core":Object(O.m)(),"feature-set":Object(O.k)(Object(O.j)())}),Qt=Wt(Object(O.o)({err:Object(O.i)(Object(O.p)([Object(O.o)({}),Object(O.m)()])),logs:Object(O.i)(Object(O.b)(Object(O.m)())),accounts:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.o)({executable:Object(O.d)(),owner:Object(O.m)(),lamports:Object(O.j)(),data:Object(O.b)(Object(O.m)()),rentEpoch:Object(O.k)(Object(O.j)())})))),unitsConsumed:Object(O.k)(Object(O.j)())}));var $t=zt(Ft),te=zt(Ht),ee=zt(Yt),re=zt(Vt),ne=zt(Object(O.j)()),ie=Wt(Object(O.o)({total:Object(O.j)(),circulating:Object(O.j)(),nonCirculating:Object(O.j)(),nonCirculatingAccounts:Object(O.b)(Ct)})),oe=Object(O.o)({amount:Object(O.m)(),uiAmount:Object(O.i)(Object(O.j)()),decimals:Object(O.j)(),uiAmountString:Object(O.k)(Object(O.m)())}),ae=Wt(Object(O.b)(Object(O.o)({address:Ct,amount:Object(O.m)(),uiAmount:Object(O.i)(Object(O.j)()),decimals:Object(O.j)(),uiAmountString:Object(O.k)(Object(O.m)())}))),se=Wt(Object(O.b)(Object(O.o)({pubkey:Ct,account:Object(O.o)({executable:Object(O.d)(),owner:Ct,lamports:Object(O.j)(),data:Lt,rentEpoch:Object(O.j)()})}))),ue=Object(O.o)({program:Object(O.m)(),parsed:Object(O.q)(),space:Object(O.j)()}),ce=Wt(Object(O.b)(Object(O.o)({pubkey:Ct,account:Object(O.o)({executable:Object(O.d)(),owner:Ct,lamports:Object(O.j)(),data:ue,rentEpoch:Object(O.j)()})}))),fe=Wt(Object(O.b)(Object(O.o)({lamports:Object(O.j)(),address:Ct}))),he=Object(O.o)({executable:Object(O.d)(),owner:Ct,lamports:Object(O.j)(),data:Lt,rentEpoch:Object(O.j)()}),le=Object(O.o)({pubkey:Ct,account:he}),de=Object(O.e)(Object(O.p)([Object(O.g)(w.Buffer),ue]),Object(O.p)([Bt,ue]),(function(t){return Array.isArray(t)?Object(O.f)(t,Lt):t})),pe=Object(O.o)({executable:Object(O.d)(),owner:Ct,lamports:Object(O.j)(),data:de,rentEpoch:Object(O.j)()}),be=Object(O.o)({pubkey:Ct,account:pe}),ve=Object(O.o)({state:Object(O.p)([Object(O.h)("active"),Object(O.h)("inactive"),Object(O.h)("activating"),Object(O.h)("deactivating")]),active:Object(O.j)(),inactive:Object(O.j)()}),me=zt(Object(O.b)(Object(O.o)({signature:Object(O.m)(),slot:Object(O.j)(),err:Zt,memo:Object(O.i)(Object(O.m)()),blockTime:Object(O.k)(Object(O.i)(Object(O.j)()))}))),ye=zt(Object(O.b)(Object(O.o)({signature:Object(O.m)(),slot:Object(O.j)(),err:Zt,memo:Object(O.i)(Object(O.m)()),blockTime:Object(O.k)(Object(O.i)(Object(O.j)()))}))),ge=Object(O.o)({subscription:Object(O.j)(),result:qt(he)}),we=Object(O.o)({pubkey:Ct,account:he}),_e=Object(O.o)({subscription:Object(O.j)(),result:qt(we)}),ke=Object(O.o)({parent:Object(O.j)(),slot:Object(O.j)(),root:Object(O.j)()}),Me=Object(O.o)({subscription:Object(O.j)(),result:ke}),Se=Object(O.p)([Object(O.o)({type:Object(O.p)([Object(O.h)("firstShredReceived"),Object(O.h)("completed"),Object(O.h)("optimisticConfirmation"),Object(O.h)("root")]),slot:Object(O.j)(),timestamp:Object(O.j)()}),Object(O.o)({type:Object(O.h)("createdBank"),parent:Object(O.j)(),slot:Object(O.j)(),timestamp:Object(O.j)()}),Object(O.o)({type:Object(O.h)("frozen"),slot:Object(O.j)(),timestamp:Object(O.j)(),stats:Object(O.o)({numTransactionEntries:Object(O.j)(),numSuccessfulTransactions:Object(O.j)(),numFailedTransactions:Object(O.j)(),maxTransactionsPerEntry:Object(O.j)()})}),Object(O.o)({type:Object(O.h)("dead"),slot:Object(O.j)(),timestamp:Object(O.j)(),err:Object(O.m)()})]),Ee=Object(O.o)({subscription:Object(O.j)(),result:Se}),xe=Object(O.o)({subscription:Object(O.j)(),result:qt(Object(O.p)([Gt,Xt]))}),Ae=Object(O.o)({subscription:Object(O.j)(),result:Object(O.j)()}),Oe=Object(O.o)({pubkey:Object(O.m)(),gossip:Object(O.i)(Object(O.m)()),tpu:Object(O.i)(Object(O.m)()),rpc:Object(O.i)(Object(O.m)()),version:Object(O.i)(Object(O.m)())}),je=Object(O.o)({votePubkey:Object(O.m)(),nodePubkey:Object(O.m)(),activatedStake:Object(O.j)(),epochVoteAccount:Object(O.d)(),epochCredits:Object(O.b)(Object(O.n)([Object(O.j)(),Ob
2ject(O.j)(),Object(O.j)()])),commission:Object(O.j)(),lastVote:Object(O.j)(),rootSlot:Object(O.i)(Object(O.j)())}),Re=zt(Object(O.o)({current:Object(O.b)(je),delinquent:Object(O.b)(je)})),Ie=Object(O.p)([Object(O.h)("processed"),Object(O.h)("confirmed"),Object(O.h)("finalized")]),Pe=Object(O.o)({slot:Object(O.j)(),confirmations:Object(O.i)(Object(O.j)()),err:Zt,confirmationStatus:Object(O.k)(Ie)}),Te=Wt(Object(O.b)(Object(O.i)(Pe))),Ce=zt(Object(O.j)()),Be=Object(O.o)({signatures:Object(O.b)(Object(O.m)()),message:Object(O.o)({accountKeys:Object(O.b)(Object(O.m)()),header:Object(O.o)({numRequiredSignatures:Object(O.j)(),numReadonlySignedAccounts:Object(O.j)(),numReadonlyUnsignedAccounts:Object(O.j)()}),instructions:Object(O.b)(Object(O.o)({accounts:Object(O.b)(Object(O.j)()),data:Object(O.m)(),programIdIndex:Object(O.j)()})),recentBlockhash:Object(O.m)()})}),Le=Object(O.o)({parsed:Object(O.q)(),program:Object(O.m)(),programId:Ct}),Ne=Object(O.o)({accounts:Object(O.b)(Ct),data:Object(O.m)(),programId:Ct}),De=Object(O.p)([Ne,Le]),Ue=Object(O.p)([Object(O.o)({parsed:Object(O.q)(),program:Object(O.m)(),programId:Object(O.m)()}),Object(O.o)({accounts:Object(O.b)(Object(O.m)()),data:Object(O.m)(),programId:Object(O.m)()})]),ze=Object(O.e)(De,Ue,(function(t){return"accounts"in t?Object(O.f)(t,Ne):Object(O.f)(t,Le)})),We=Object(O.o)({signatures:Object(O.b)(Object(O.m)()),message:Object(O.o)({accountKeys:Object(O.b)(Object(O.o)({pubkey:Ct,signer:Object(O.d)(),writable:Object(O.d)()})),instructions:Object(O.b)(ze),recentBlockhash:Object(O.m)()})}),qe=Object(O.o)({accountIndex:Object(O.j)(),mint:Object(O.m)(),uiTokenAmount:oe}),Fe=Object(O.o)({err:Zt,fee:Object(O.j)(),innerInstructions:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.o)({index:Object(O.j)(),instructions:Object(O.b)(Object(O.o)({accounts:Object(O.b)(Object(O.j)()),data:Object(O.m)(),programIdIndex:Object(O.j)()}))})))),preBalances:Object(O.b)(Object(O.j)()),postBalances:Object(O.b)(Object(O.j)()),logMessages:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.m)()))),preTokenBalances:Object(O.k)(Object(O.i)(Object(O.b)(qe))),postTokenBalances:Object(O.k)(Object(O.i)(Object(O.b)(qe)))}),Ke=Object(O.o)({err:Zt,fee:Object(O.j)(),innerInstructions:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.o)({index:Object(O.j)(),instructions:Object(O.b)(ze)})))),preBalances:Object(O.b)(Object(O.j)()),postBalances:Object(O.b)(Object(O.j)()),logMessages:Object(O.k)(Object(O.i)(Object(O.b)(Object(O.m)()))),preTokenBalances:Object(O.k)(Object(O.i)(Object(O.b)(qe))),postTokenBalances:Object(O.k)(Object(O.i)(Object(O.b)(qe)))}),He=zt(Object(O.i)(Object(O.o)({blockhash:Object(O.m)(),previousBlockhash:Object(O.m)(),parentSlot:Object(O.j)(),transactions:Object(O.b)(Object(O.o)({transaction:Be,meta:Object(O.i)(Fe)})),rewards:Object(O.k)(Object(O.b)(Object(O.o)({pubkey:Object(O.m)(),lamports:Object(O.j)(),postBalance:Object(O.i)(Object(O.j)()),rewardType:Object(O.i)(Object(O.m)())}))),blockTime:Object(O.i)(Object(O.j)())}))),Ye=zt(Object(O.i)(Object(O.o)({blockhash:Object(O.m)(),previousBlockhash:Object(O.m)(),parentSlot:Object(O.j)(),signatures:Object(O.b)(Object(O.m)()),blockTime:Object(O.i)(Object(O.j)())}))),Ve=zt(Object(O.i)(Object(O.o)({slot:Object(O.j)(),meta:Fe,blockTime:Object(O.k)(Object(O.i)(Object(O.j)())),transaction:Be}))),Ze=zt(Object(O.i)(Object(O.o)({slot:Object(O.j)(),transaction:We,meta:Object(O.i)(Ke),blockTime:Object(O.k)(Object(O.i)(Object(O.j)()))}))),Ge=Wt(Object(O.o)({blockhash:Object(O.m)(),feeCalculator:Object(O.o)({lamportsPerSignature:Object(O.j)()})})),Xe=Object(O.o)({slot:Object(O.j)(),numTransactions:Object(O.j)(),numSlots:Object(O.j)(),samplePeriodSecs:Object(O.j)()}),Je=zt(Object(O.b)(Xe)),Qe=Wt(Object(O.i)(Object(O.o)({feeCalculator:Object(O.o)({lamportsPerSignature:Object(O.j)()})}))),$e=zt(Object(O.m)()),tr=zt(Object(O.m)()),er=Object(O.o)({err:Zt,logs:Object(O.b)(Object(O.m)()),signature:Object(O.m)()}),rr=Object(O.o)({result:qt(er),subscription:Object(O.j)()}),nr=function(){function t(e,r){Object(p.a)(this,t),m()(this,"_commitment",void 0),m()(this,"_confirmTransactionInitialTimeout",void 0),m()(this,"_rpcEndpoint",void 0),m()(this,"_rpcWsEndpoint",void 0),m()(this,"_rpcClient",void 0),m()(this,"_rpcRequest",void 0),m()(this,"_rpcBatchRequest",void 0),m()(this,"_rpcWebSocket",void 0),m()(this,"_rpcWebSocketConnected",!1),m()(this,"_rpcWebSocketHeartbeat",null),m()(this,"_rpcWebSocketIdleTimeout",null),m()(this,"_disableBlockhashCaching",!1),m()(this,"_pollingBlockhash",!1),m()(this,"_blockhashInfo",{recentBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]}),m()(this,"_accountChangeSubscriptionCounter",0),m()(this,"_accountChangeSubscriptions",{}),m()(this,"_programAccountChangeSubscriptionCounter",0),m()(this,"_programAccountChangeSubscriptions",{}),m()(this,"_rootSubscriptionCounter",0),m()(this,"_rootSubscriptions",{}),m()(this,"_signatureSubscriptionCounter",0),m()(this,"_signatureSubscriptions",{}),m()(this,"_slotSubscriptionCounter",0),m()(this,"_slotSubscriptions",{}),m()(this,"_logsSubscriptionCounter",0),m()(this,"_logsSubscriptions",{}),m()(this,"_slotUpdateSubscriptionCounter",0),m()(this,"_slotUpdateSubscriptions",{});var n,i,o,a,s,u=new URL(e);u.protocol;r&&"string"===typeof r?this._commitment=r:r&&(this._commitment=r.commitment,this._confirmTransactionInitialTimeout=r.confirmTransactionInitialTimeout,n=r.wsEndpoint,i=r.httpHeaders,o=r.fetchMiddleware,a=r.disableRetryOnRateLimit),this._rpcEndpoint=e,this._rpcWsEndpoint=n||function(t){var e=new URL(t),r="https:"===e.protocol;return e.protocol=r?"wss:":"ws:",e.host="",""!==e.port&&(e.port=String(Number(e.port)+1)),e.toString()}(e),this._rpcClient=function(t,e,r,n,i){var o;return n&&(o=function(t,e){return new Promise((function(r,i){n(t,e,function(){var t=Object(f.a)(c.a.mark((function t(e,n){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=r,t.next=4,jt(e,n);case 4:t.t1=t.sent,(0,t.t0)(t.t1),t.next=11;break;case 8:t.prev=8,t.t2=t.catch(0),i(t.t2);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,r){return t.apply(this,arguments)}}())}))}),new I.a(function(){var e=Object(f.a)(c.a.mark((function e(n,a){var s,u,f,h,l;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s={method:"POST",body:n,agent:void 0,headers:Object.assign({"Content-Type":"application/json"},r||{})},e.prev=2,u=5,h=500;case 5:if(!o){e.next=11;break}return e.next=8,o(t,s);case 8:f=e.sent,e.next=14;break;case 11:return e.next=13,jt(t,s);case 13:f=e.sent;case 14:if(429===f.status){e.next=16;break}return e.abrupt("break",27);case 16:if(!0!==i){e.next=18;break}return e.abrupt("break",27);
2case 18:if(0!==(u-=1)){e.next=21;break}return e.abrupt("break",27);case 21:return console.log("Server responded with ".concat(f.status," ").concat(f.statusText,". Retrying after ").concat(h,"ms delay...")),e.next=24,lt(h);case 24:h*=2;case 25:e.next=5;break;case 27:return e.next=29,f.text();case 29:l=e.sent,f.ok?a(null,l):a(new Error("".concat(f.status," ").concat(f.statusText,": ").concat(l))),e.next=36;break;case 33:e.prev=33,e.t0=e.catch(2),e.t0 instanceof Error&&a(e.t0);case 36:return e.prev=36,e.finish(36);case 38:case"end":return e.stop()}}),e,null,[[2,33,36,38]])})));return function(t,r){return e.apply(this,arguments)}}(),{})}(u.toString(),0,i,o,a),this._rpcRequest=(s=this._rpcClient,function(t,e){return new Promise((function(r,n){s.request(t,e,(function(t,e){t?n(t):r(e)}))}))}),this._rpcBatchRequest=function(t){return function(e){return new Promise((function(r,n){0===e.length&&r([]);var i=e.map((function(e){return t.request(e.methodName,e.args)}));t.request(i,(function(t,e){t?n(t):r(e)}))}))}}(this._rpcClient),this._rpcWebSocket=new j.Client(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}return Object(b.a)(t,[{key:"commitment",get:function(){return this._commitment}},{key:"getBalanceAndContext",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgs([e.toBase58()],r),t.next=3,this._rpcRequest("getBalance",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Wt(Object(O.j)()))))){t.next=7;break}throw new Error("failed to get balance for "+e.toBase58()+": "+o.error.message);case 7:return t.abrupt("return",o.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getBalance",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getBalanceAndContext(e,r).then((function(t){return t.value})).catch((function(t){throw new Error("failed to get balance of account "+e.toBase58()+": "+t)}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getBlockTime",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("getBlockTime",[e]);case 2:if(r=t.sent,!("error"in(n=Object(O.f)(r,zt(Object(O.i)(Object(O.j)())))))){t.next=6;break}throw new Error("failed to get block time for slot "+e+": "+n.error.message);case 6:return t.abrupt("return",n.result);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getMinimumLedgerSlot",value:function(){var t=Object(f.a)(c.a.mark((function t(){var e,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("minimumLedgerSlot",[]);case 2:if(e=t.sent,!("error"in(r=Object(O.f)(e,zt(Object(O.j)()))))){t.next=6;break}throw new Error("failed to get minimum ledger slot: "+r.error.message);case 6:return t.abrupt("return",r.result);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getFirstAvailableBlock",value:function(){var t=Object(f.a)(c.a.mark((function t(){var e,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("getFirstAvailableBlock",[]);
2case 2:if(e=t.sent,!("error"in(r=Object(O.f)(e,ne)))){t.next=6;break}throw new Error("failed to get first available block: "+r.error.message);case 6:return t.abrupt("return",r.result);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getSupply",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getSupply",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,ie)))){t.next=7;break}throw new Error("failed to get supply: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTokenSupply",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgs([e.toBase58()],r),t.next=3,this._rpcRequest("getTokenSupply",n);
2case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Wt(oe))))){t.next=7;break}throw new Error("failed to get token supply: "+o.error.message);case 7:return t.abrupt("return",o.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getTokenAccountBalance",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgs([e.toBase58()],r),t.next=3,this._rpcRequest("getTokenAccountBalance",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Wt(oe))))){t.next=7;break}throw new Error("failed to get token account balance: "+o.error.message);case 7:return t.abrupt("return",o.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getTokenAccountsByOwner",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a,s;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=[e.toBase58()],"mint"in r?i.push({mint:r.mint.toBase58()}):i.push({programId:r.programId.toBase58()}),o=this._buildArgs(i,n,"base64"),t.next=5,this._rpcRequest("getTokenAccountsByOwner",o);case 5:if(a=t.sent,!("error"in(s=Object(O.f)(a,se)))){t.next=9;break}throw new Error("failed to get token accounts owned by account "+e.toBase58()+": "+s.error.message);case 9:return t.abrupt("return",s.result);case 10:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getParsedTokenAccountsByOwner",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a,s;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=[e.toBase58()],"mint"in r?i.push({mint:r.mint.toBase58()}):i.push({programId:r.programId.toBase58()}),o=this._buildArgs(i,n,"jsonParsed"),t.next=5,this._rpcRequest("getTokenAccountsByOwner",o);case 5:if(a=t.sent,!("error"in(s=Object(O.f)(a,ce)))){t.next=9;break}throw new Error("failed to get token accounts owned by account "+e.toBase58()+": "+s.error.message);case 9:return t.abrupt("return",s.result);case 10:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getLargestAccounts",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object(a.a)(Object(a.a)({},e),{},{commitment:e&&e.commitment||this.commitment}),n=r.filter||r.commitment?[r]:[],t.next=4,this._rpcRequest("getLargestAccounts",n);case 4:if(i=t.sent,!("error"in(o=Object(O.f)(i,fe)))){t.next=8;break}throw new Error("failed to get largest accounts: "+o.error.message);case 8:return t.abrupt("return",o.result);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTokenLargestAccounts",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgs([e.toBase58()],r),t.next=3,this._rpcRequest("getTokenLargestAccounts",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,ae)))){t.next=7;break}throw new Error("failed to get token largest accounts: "+o.error.message);case 7:return t.abrupt("return",o.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getAccountInfoAndContext",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgs([e.toBase58()],r,"base64"),t.next=3,this._rpcRequest("getAccountInfo",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Wt(Object(O.i)(he)))))){t.next=7;break}throw new Error("failed to get info about account "+e.toBase58()+": "+o.error.message);case 7:return t.abrupt("return",o.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getParsedAccountInfo",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgs([e.toBase58()],r,"jsonParsed"),t.next=3,this._rpcRequest("getAccountInfo",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Wt(Object(O.i)(pe)))))){t.next=7;break}throw new Error("failed to get info about account "+e.toBase58()+": "+o.error.message);case 7:return t.abrupt("return",o.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getAccountInfo",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getAccountInfoAndContext(e,r);case 3:return n=t.sent,t.abrupt("return",n.value);case 7:throw t.prev=7,t.t0=t.catch(0),new Error("failed to get info about account "+e.toBase58()+": "+t.t0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getMultipleAccountsInfo",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.map((function(t){return t.toBase58()})),i=this._buildArgs([n],r,"base64"),t.next=4,this._rpcRequest("getMultipleAccounts",i);case 4:if(o=t.sent,!("error"in(a=Object(O.f)(o,Wt(Object(O.b)(Object(O.i)(he))))))){t.next=8;break}throw new Error("failed to get info for accounts "+n+": "+a.error.message);case 8:return t.abrupt("return",a.result.value);case 9:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getStakeActivation",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgs([e.toBase58()],r,void 0,void 0!==n?{epoch:n}:void 0),t.next=3,this._rpcRequest("getStakeActivation",i);case 3:if(o=t.sent,!("error"in(a=Object(O.f)(o,zt(ve))))){t.next=7;break}throw new Error("failed to get Stake Activation ".concat(e.toBase58(),": ").concat(a.error.message));case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getProgramAccounts",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a,s,u;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},r&&("string"===typeof r?i=r:(i=r.commitment,o=r.encoding,r.dataSlice&&(n.dataSlice=r.dataSlice),r.filters&&(n.filters=r.filters))),a=this._buildArgs([e.toBase58()],i,o||"base64",n),t.next=5,this._rpcRequest("getProgramAccounts",a);case 5:if(s=t.sent,!("error"in(u=Object(O.f)(s,zt(Object(O.b)(le)))))){t.next=9;break}throw new Error("failed to get accounts owned by program "+e.toBase58()+": "+u.error.message);case 9:return t.abrupt("return",u.result);case 10:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getParsedProgramAccounts",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a,s;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},r&&("string"===typeof r?i=r:(i=r.commitment,r.filters&&(n.filters=r.filters))),o=this._buildArgs([e.toBase58()],i,"jsonParsed",n),t.next=5,this._rpcRequest("getProgramAccounts",o);case 5:if(a=t.sent,!("error"in(s=Object(O.f)(a,zt(Object(O.b)(be)))))){t.next=9;break}throw new Error("failed to get accounts owned by program "+e.toBase58()+": "+s.error.message);case 9:return t.abrupt("return",s.result);case 10:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"confirmTransaction",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a,s,u,f,h,l=this;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,n=S.a.decode(e),t.next=7;break;case 4:throw t.prev=4,t.t0=t.catch(0),new Error("signature must be base58 encoded: "+e);
2case 7:$(64===n.length,"signature has invalid length"),i=Date.now(),o=r||this.commitment,s=null,u=new Promise((function(t,r){try{a=l.onSignature(e,(function(e,r){a=void 0,s={context:r,value:e},t(null)}),o)}catch(n){r(n)}})),f=this._confirmTransactionInitialTimeout||6e4,t.t1=o,t.next="processed"===t.t1||"recent"===t.t1||"single"===t.t1||"confirmed"===t.t1||"singleGossip"===t.t1?16:18;break;case 16:return f=this._confirmTransactionInitialTimeout||3e4,t.abrupt("break",18);case 18:return t.prev=18,t.next=21,Tt(u,f);case 21:return t.prev=21,a&&this.removeSignatureListener(a),t.finish(21);case 24:if(null!==s){t.next=27;break}throw h=(Date.now()-i)/1e3,new Error("Transaction was not confirmed in ".concat(h.toFixed(2)," seconds. It is unknown if it succeeded or failed. Check signature ").concat(e," using the Solana Explorer or CLI tools."));case 27:return t.abrupt("return",s);case 28:case"end":return t.stop()}}),t,this,[[0,4],[18,,21,24]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getClusterNodes",value:function(){var t=Object(f.a)(c.a.mark((function t(){var e,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("getClusterNodes",[]);case 2:if(e=t.sent,!("error"in(r=Object(O.f)(e,zt(Object(O.b)(Oe)))))){t.next=6;break}throw new Error("failed to get cluster nodes: "+r.error.message);case 6:return t.abrupt("return",r.result);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getVoteAccounts",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getVoteAccounts",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,Re)))){t.next=7;break}throw new Error("failed to get vote accounts: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getSlot",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getSlot",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,zt(Object(O.j)()))))){t.next=7;break}throw new Error("failed to get slot: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getSlotLeader",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getSlotLeader",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,zt(Object(O.m)()))))){t.next=7;break}throw new Error("failed to get slot leader: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getSlotLeaders",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[e,r],t.next=3,this._rpcRequest("getSlotLeaders",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,zt(Object(O.b)(Ct)))))){t.next=7;break}throw new Error("failed to get slot leaders: "+o.error.message);case 7:return t.abrupt("return",o.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getSignatureStatus",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getSignatureStatuses([e],r);case 2:return n=t.sent,i=n.context,$(1===(o=n.value).length),a=o[0],t.abrupt("return",{context:i,value:a});case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getSignatureStatuses",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[e],r&&n.push(r),t.next=4,this._rpcRequest("getSignatureStatuses",n);case 4:if(i=t.sent,!("error"in(o=Object(O.f)(i,Te)))){t.next=8;break}throw new Error("failed to get signature status: "+o.error.message);case 8:return t.abrupt("return",o.result);case 9:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getTransactionCount",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getTransactionCount",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,zt(Object(O.j)()))))){t.next=7;break}throw new Error("failed to get transaction count: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTotalSupply",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getSupply",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,ie)))){t.next=7;break}throw new Error("failed to get total supply: "+i.error.message);case 7:return t.abrupt("return",i.result.value.total);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getInflationGovernor",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getInflationGovernor",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,$t)))){t.next=7;break}throw new Error("failed to get inflation: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getInflationReward",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgs([e.map((function(t){return t.toBase58()}))],n,void 0,{epoch:r}),t.next=3,this._rpcRequest("getInflationReward",i);case 3:if(o=t.sent,!("error"in(a=Object(O.f)(o,Kt)))){t.next=7;break}throw new Error("failed to get inflation reward: "+a.error.message);case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getEpochInfo",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getEpochInfo",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,te)))){t.next=7;break}throw new Error("failed to get epoch info: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getEpochSchedule",value:function(){var t=Object(f.a)(c.a.mark((function t(){var e,r,n;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("getEpochSchedule",[]);case 2:if(e=t.sent,!("error"in(r=Object(O.f)(e,ee)))){t.next=6;break}throw new Error("failed to get epoch schedule: "+r.error.message);case 6:return n=r.result,t.abrupt("return",new It(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot));case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getLeaderSchedule",value:function(){var t=Object(f.a)(c.a.mark((function t(){var e,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("getLeaderSchedule",[]);case 2:if(e=t.sent,!("error"in(r=Object(O.f)(e,re)))){t.next=6;break}throw new Error("failed to get leader schedule: "+r.error.message);case 6:return t.abrupt("return",r.result);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getMinimumBalanceForRentExemption",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgs([e],r),t.next=3,this._rpcRequest("getMinimumBalanceForRentExemption",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Ce)))){t.next=8;break}return console.warn("Unable to fetch minimum balance for rent exemption"),t.abrupt("return",0);case 8:return t.abrupt("return",o.result);case 9:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getRecentBlockhashAndContext",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs([],e),t.next=3,this._rpcRequest("getRecentBlockhash",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,Ge)))){t.next=7;break}throw new Error("failed to get recent blockhash: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getRecentPerformanceSamples",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._buildArgs(e?[e]:[]),t.next=3,this._rpcRequest("getRecentPerformanceSamples",r);case 3:if(n=t.sent,!("error"in(i=Object(O.f)(n,Je)))){t.next=7;break}throw new Error("failed to get recent performance samples: "+i.error.message);case 7:return t.abrupt("return",i.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getFeeCalculatorForBlockhash",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a,s,u;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgs([e],r),t.next=3,this._rpcRequest("getFeeCalculatorForBlockhash",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Qe)))){t.next=7;break}throw new Error("failed to get fee calculator: "+o.error.message);case 7:return a=o.result,s=a.context,u=a.value,t.abrupt("return",{context:s,value:null!==u?u.feeCalculator:null});case 9:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getRecentBlockhash",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getRecentBlockhashAndContext(e);case 3:return r=t.sent,t.abrupt("return",r.value);case 7:throw t.prev=7,t.t0=t.catch(0),new Error("failed to get recent blockhash: "+t.t0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));return function(e){return t.apply(this,arguments)}}()},{key:"getVersion",value:function(){var t=Object(f.a)(c.a.mark((function t(){var e,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("getVersion",[]);case 2:if(e=t.sent,!("error"in(r=Object(O.f)(e,zt(Jt))))){t.next=6;break}throw new Error("failed to get version: "+r.error.message);case 6:return t.abrupt("return",r.result);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getGenesisHash",value:function(){var t=Object(f.a)(c.a.mark((function t(){var e,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("getGenesisHash",[]);case 2:if(e=t.sent,!("error"in(r=Object(O.f)(e,zt(Object(O.m)()))))){t.next=6;break}throw new Error("failed to get genesis hash: "+r.error.message);case 6:return t.abrupt("return",r.result);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getBlock",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,s;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgsAtLeastConfirmed([e],r&&r.commitment),t.next=3,this._rpcRequest("getConfirmedBlock",
2n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,He)))){t.next=7;break}throw new Error("failed to get confirmed block: "+o.error.message);case 7:if(s=o.result){t.next=10;break}return t.abrupt("return",s);case 10:return t.abrupt("return",Object(a.a)(Object(a.a)({},s),{},{transactions:s.transactions.map((function(t){var e=t.transaction,r=t.meta,n=new Q(e.message);return{meta:r,transaction:Object(a.a)(Object(a.a)({},e),{},{message:n})}}))}));case 11:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getTransaction",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,s;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgsAtLeastConfirmed([e],r&&r.commitment),t.next=3,this._rpcRequest("getConfirmedTransaction",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Ve)))){t.next=7;break}throw new Error("failed to get confirmed transaction: "+o.error.message);case 7:if(s=o.result){t.next=10;break}return t.abrupt("return",s);case 10:return t.abrupt("return",Object(a.a)(Object(a.a)({},s),{},{transaction:Object(a.a)(Object(a.a)({},s.transaction),{},{message:new Q(s.transaction.message)})}));case 11:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getConfirmedBlock",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getBlock(e,{commitment:r});case 2:if(n=t.sent){t.next=5;break}throw new Error("Confirmed block "+e+" not found");case 5:return t.abrupt("return",Object(a.a)(Object(a.a)({},n),{},{transactions:n.transactions.map((function(t){var e=t.transaction;return{meta:t.meta,transaction:nt.populate(e.message,e.signatures)}}))}));case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getBlocks",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgsAtLeastConfirmed(void 0!==r?[e,r]:[e],n),t.next=3,this._rpcRequest("getConfirmedBlocks",i);case 3:if(o=t.sent,!("error"in(a=Object(O.f)(o,zt(Object(O.b)(Object(O.j)())))))){t.next=7;break}throw new Error("failed to get blocks: "+a.error.message);case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getConfirmedBlockSignatures",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgsAtLeastConfirmed([e],r,void 0,{transactionDetails:"signatures",rewards:!1}),t.next=3,this._rpcRequest("getConfirmedBlock",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Ye)))){t.next=7;break}throw new Error("failed to get confirmed block: "+o.error.message);case 7:if(a=o.result){t.next=10;break}throw new Error("Confirmed block "+e+" not found");case 10:return t.abrupt("return",a);case 11:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getConfirmedTransaction",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,s;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getTransaction(e,{commitment:r});case 2:if(n=t.sent){t.next=5;break}return t.abrupt("return",n);case 5:return i=n.transaction,o=i.message,s=i.signatures,t.abrupt("return",Object(a.a)(Object(a.a)({},n),{},{transaction:nt.populate(o,s)}));case 7:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getParsedConfirmedTransaction",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._buildArgsAtLeastConfirmed([e],r,"jsonParsed"),t.next=3,this._rpcRequest("getConfirmedTransaction",n);case 3:if(i=t.sent,!("error"in(o=Object(O.f)(i,Ze)))){t.next=7;break}throw new Error("failed to get confirmed transaction: "+o.error.message);case 7:return t.abrupt("return",o.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getParsedConfirmedTransactions",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a=this;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.map((function(t){return{methodName:"getConfirmedTransaction",args:a._buildArgsAtLeastConfirmed([t],r,"jsonParsed")}})),t.next=3,this._rpcBatchRequest(n);case 3:return i=t.sent,o=i.map((function(t){var e=Object(O.f)(t,Ze);if("error"in e)throw new Error("failed to get confirmed transactions: "+e.error.message);return e.result})),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getConfirmedSignaturesForAddress",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a,s,u,f;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},t.next=3,this.getFirstAvailableBlock();case 3:o=t.sent;case 4:if("until"in i){t.next=24;break}if(!(--r<=0||r<o)){t.next=8;break}return t.abrupt("break",24);case 8:return t.prev=8,t.next=11,this.getConfirmedBlockSignatures(r,"finalized");case 11:(a=t.sent).signatures.length>0&&(i.until=a.signatures[a.signatures.length-1].toString()),t.next=22;break;case 15:if(t.prev=15,t.t0=t.catch(8),!(t.t0 instanceof Error&&t.t0.message.includes("skipped"))){t.next=21;break}return t.abrupt("continue",4);case 21:throw t.t0;case 22:t.next=4;break;
2case 24:return t.next=26,this.getSlot("finalized");case 26:s=t.sent;case 27:if("before"in i){t.next=47;break}if(!(++n>s)){t.next=31;break}return t.abrupt("break",47);case 31:return t.prev=31,t.next=34,this.getConfirmedBlockSignatures(n);case 34:(u=t.sent).signatures.length>0&&(i.before=u.signatures[u.signatures.length-1].toString()),t.next=45;break;case 38:if(t.prev=38,t.t1=t.catch(31),!(t.t1 instanceof Error&&t.t1.message.includes("skipped"))){t.next=44;break}return t.abrupt("continue",27);case 44:throw t.t1;case 45:t.next=27;break;case 47:return t.next=49,this.getConfirmedSignaturesForAddress2(e,i);case 49:return f=t.sent,t.abrupt("return",f.map((function(t){return t.signature})));case 51:case"end":return t.stop()}}),t,this,[[8,15],[31,38]])})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getConfirmedSignaturesForAddress2",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgsAtLeastConfirmed([e.toBase58()],n,void 0,r),t.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",i);case 3:if(o=t.sent,!("error"in(a=Object(O.f)(o,me)))){t.next=7;break}throw new Error("failed to get confirmed signatures for address: "+a.error.message);case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getSignaturesForAddress",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgsAtLeastConfirmed([e.toBase58()],n,void 0,r),t.next=3,this._rpcRequest("getSignaturesForAddress",i);case 3:if(o=t.sent,!("error"in(a=Object(O.f)(o,ye)))){t.next=7;break}throw new Error("failed to get signatures for address: "+a.error.message);case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getNonceAndContext",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAccountInfoAndContext(e,r);case 2:return n=t.sent,i=n.context,o=n.value,a=null,null!==o&&(a=yt.fromAccountData(o.data)),t.abrupt("return",{context:i,value:a});case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getNonce",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNonceAndContext(e,r).then((function(t){return t.value})).catch((function(t){throw new Error("failed to get nonce for account "+e.toBase58()+": "+t)}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"requestAirdrop",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("requestAirdrop",[e.toBase58(),r]);case 2:if(n=t.sent,!("error"in(i=Object(O.f)(n,$e)))){t.next=6;break}throw new Error("airdrop to "+e.toBase58()+" failed: "+i.error.message);case 6:return t.abrupt("return",i.result);case 7:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_recentBlockhash",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r,n;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=10;break}case 1:if(!this._pollingBlockhash){t.next=6;break}return t.next=4,lt(100);case 4:t.next=1;break;case 6:if(r=Date.now()-this._blockhashInfo.lastFetch,n=r>=Nt,null===this._blockhashInfo.recentBlockhash||n){t.next=10;break}return t.abrupt("return",this._blockhashInfo.recentBlockhash);case 10:return t.next=12,this._pollNewBlockhash();case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_pollNewBlockhash",value:function(){var t=Object(f.a)(c.a.mark((function t(){var e,r,n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._pollingBlockhash=!0,t.prev=1,e=Date.now(),r=0;case 4:if(!(r<50)){t.next=17;break}return t.next=7,this.getRecentBlockhash("finalized");case 7:if(n=t.sent,i=n.blockhash,this._blockhashInfo.recentBlockhash==i){t.next=12;break}return this._blockhashInfo={recentBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},t.abrupt("return",i);case 12:return t.next=14,lt(200);case 14:r++,t.next=4;break;case 17:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-e,"ms"));case 18:return t.prev=18,this._pollingBlockhash=!1,t.finish(18);case 21:case"end":return t.stop()}}),t,this,[[1,,18,21]])})));return function(){return t.apply(this,arguments)}}()},{key:"simulateTransaction",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a,u,f,h,l,d,p,b,v,m,y,g,w,_,k;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=e instanceof nt?e:nt.populate(e)).nonceInfo||!r){t.next=5;break}(o=i).sign.apply(o,Object(s.a)(r)),t.next=23;break;case 5:a=this._disableBlockhashCaching;case 6:return t.next=8,this._recentBlockhash(a);case 8:if(i.recentBlockhash=t.sent,r){t.next=11;break}return t.abrupt("break",23);case 11:if((u=i).sign.apply(u,Object(s.a)(r)),i.signature){t.next=14;break}throw new Error("!signature");case 14:if(f=i.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(f)||this._blockhashInfo.transactionSignatures.includes(f)){t.next=20;break}return this._blockhashInfo.simulatedSignatures.push(f),t.abrupt("break",23);case 20:a=!0;case 21:t.next=6;break;case 23:return h=i._compile(),l=h.serialize(),d=i._serialize(l),p=d.toString("base64"),b={encoding:"base64",commitment:this.commitment},n&&(v=(Array.isArray(n)?n:h.nonProgramIds()).map((function(t){return t.toBase58()})),b.accounts={encoding:"base64",addresses:v}),r&&(b.sigVerify=!0),m=[p,b],t.next=33,this._rpcRequest("simulateTransaction",m);case 33:if(y=t.sent,!("error"in(g=Object(O.f)(y,Qt)))){t.next=38;break}throw"data"in g.error&&(w=g.error.data.logs)&&Array.isArray(w)&&(k=(_="\n ")+w.join(_),console.error(g.error.message,k)),new Pt("failed to simulate transaction: "+g.error.message,w);case 38:return t.abrupt("return",g.result);case 39:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"sendTransaction",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.nonceInfo){t.next=4;break}e.sign.apply(e,Object(s.a)(r)),t.next=20;break;case 4:i=this._disableBlockhashCaching;case 5:return t.next=7,this._recentBlockhash(i);case 7:if(e.recentBlockhash=t.sent,e.sign.apply(e,Object(s.a)(r)),e.signature){t.next=11;break}throw new Error("!signature");case 11:if(o=e.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(o)){t.next=17;break}return this._blockhashInfo.transactionSignatures.push(o),t.abrupt("break",20);case 17:i=!0;case 18:t.next=5;break;case 20:return a=e.serialize(),t.next=23,this.sendRawTransaction(a,n);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"sendRawTransaction",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=B(e).toString("base64"),t.next=3,this.sendEncodedTransaction(n,r);case 3:return i=t.sent,t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"sendEncodedTransaction",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i,o,a,s,u,f,h,l;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={encoding:"base64"},i=r&&r.skipPreflight,o=r&&r.preflightCommitment||this.commitment,i&&(n.skipPreflight=i),o&&(n.preflightCommitment=o),a=[e,n],t.next=8,this._rpcRequest("sendTransaction",a);case 8:if(s=t.sent,!("error"in(u=Object(O.f)(s,tr)))){t.next=13;break}throw"data"in u.error&&(f=u.error.data.logs)&&Array.isArray(f)&&(l=(h="\n ")+f.join(h),console.error(u.error.message,l)),new Pt("failed to send transaction: "+u.error.message,f);case 13:return t.abrupt("return",u.result);case 14:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_wsOnOpen",value:function(){var t=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){t._rpcWebSocket.notify("ping").catch((function(){}))}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(t){console.error("ws error:",t.message)}},{key:"_wsOnClose",value:function(t){this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==t?this._resetSubscriptions():this._updateSubscriptions()}},{key:"_subscribe",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r,n){var i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e.subscriptionId){t.next=13;break}return e.subscriptionId="subscribing",t.prev=2,t.next=5,this._rpcWebSocket.call(r,n);case 5:"number"===typeof(i=t.sent)&&"subscribing"===e.subscriptionId&&(e.subscriptionId=i),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(2),"subscribing"===e.subscriptionId&&(e.subscriptionId=null),t.t0 instanceof Error&&console.error("".concat(r," error for argument"),n,t.t0.message);case 13:case"end":return t.stop()}}),t,this,[[2,9]])}
2)));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"_unsubscribe",value:function(){var t=Object(f.a)(c.a.mark((function t(e,r){var n,i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==(n=e.subscriptionId)||"string"==typeof n){t.next=11;break}return i=n,t.prev=3,t.next=6,this._rpcWebSocket.call(r,[i]);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(3),t.t0 instanceof Error&&console.error("".concat(r," error:"),t.t0.message);case 11:case"end":return t.stop()}}),t,this,[[3,8]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_resetSubscriptions",value:function(){Object.values(this._accountChangeSubscriptions).forEach((function(t){return t.subscriptionId=null})),Object.values(this._programAccountChangeSubscriptions).forEach((function(t){return t.subscriptionId=null})),Object.values(this._rootSubscriptions).forEach((function(t){return t.subscriptionId=null})),Object.values(this._signatureSubscriptions).forEach((function(t){return t.subscriptionId=null})),Object.values(this._slotSubscriptions).forEach((function(t){return t.subscriptionId=null})),Object.values(this._slotUpdateSubscriptions).forEach((function(t){return t.subscriptionId=null}))}},{key:"_updateSubscriptions",value:function(){var t=this,e=Object.keys(this._accountChangeSubscriptions).map(Number),r=Object.keys(this._programAccountChangeSubscriptions).map(Number),n=Object.keys(this._slotSubscriptions).map(Number),o=Object.keys(this._slotUpdateSubscriptions).map(Number),a=Object.keys(this._signatureSubscriptions).map(Number),s=Object.keys(this._rootSubscriptions).map(Number),u=Object.keys(this._logsSubscriptions).map(Number);if(0!==e.length||0!==r.length||0!==n.length||0!==o.length||0!==a.length||0!==s.length||0!==u.length)if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){var c,f=Object(i.a)(e);try{for(f.s();!(c=f.n()).done;){var h=c.value,l=this._accountChangeSubscriptions[h];this._subscribe(l,"accountSubscribe",this._buildArgs([l.publicKey],l.commitment,"base64"))}}catch(U){f.e(U)}finally{f.f()}var d,p=Object(i.a)(r);try{for(p.s();!(d=p.n()).done;){var b=d.value,v=this._programAccountChangeSubscriptions[b];this._subscribe(v,"programSubscribe",this._buildArgs([v.programId],v.commitment,"base64",{filters:v.filters}))}}catch(U){p.e(U)}finally{p.f()}var m,y=Object(i.a)(n);try{for(y.s();!(m=y.n()).done;){var g=m.value,w=this._slotSubscriptions[g];this._subscribe(w,"slotSubscribe",[])}}catch(U){y.e(U)}finally{y.f()}var _,k=Object(i.a)(o);try{for(k.s();!(_=k.n()).done;){var M=_.value,S=this._slotUpdateSubscriptions[M];this._subscribe(S,"slotsUpdatesSubscribe",[])}}catch(U){k.e(U)}finally{k.f()}var E,x=Object(i.a)(a);try{for(x.s();!(E=x.n()).done;){var A=E.value,O=this._signatureSubscriptions[A],j=[O.signature];O.options&&j.push(O.options),this._subscribe(O,"signatureSubscribe",j)}}catch(U){x.e(U)}finally{x.f()}var R,I=Object(i.a)(s);try{for(I.s();!(R=I.n()).done;){var P=R.value,T=this._rootSubscriptions[P];this._subscribe(T,"rootSubscribe",[])}}catch(U){I.e(U)}finally{I.f()}var C,B=Object(i.a)(u);try{for(B.s();!(C=B.n()).done;){var L=C.value,N=this._logsSubscriptions[L],D=void 0;D="object"===typeof N.filter?{mentions:[N.filter.toString()]}:N.filter,this._subscribe(N,"logsSubscribe",this._buildArgs([D],N.commitment))}}catch(U){B.e(U)}finally{B.f()}}else this._rpcWebSocket.connect();else this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){t._rpcWebSocketIdleTimeout=null,t._rpcWebSocket.close()}),500))}},{key:"_wsOnAccountNotification",value:function(t){for(var e=Object(O.f)(t,ge),r=0,n=Object.values(this._accountChangeSubscriptions);r<n.length;r++){var i=n[r];if(i.subscriptionId===e.subscription)return void i.callback(e.result.value,e.result.context)}}},{key:"onAccountChange",value:function(t,e,r){var n=++this._accountChangeSubscriptionCounter;return this._accountChangeSubscriptions[n]={publicKey:t.toBase58(),callback:e,commitment:r,subscriptionId:null},this._updateSubscriptions(),n}},{key:"removeAccountChangeListener",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._accountChangeSubscriptions[e]){t.next=8;break}return r=this._accountChangeSubscriptions[e],delete this._accountChangeSubscriptions[e],t.next=5,this._unsubscribe(r,"accountUnsubscribe");case 5:this._updateSubscriptions(),t.next=9;break;case 8:throw new Error("Unknown account change id: ".concat(e));case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_wsOnProgramAccountNotification",value:function(t){for(var e=Object(O.f)(t,_e),r=0,n=Object.values(this._programAccountChangeSubscriptions);r<n.length;r++){var i=n[r];if(i.subscriptionId===e.subscription){var o=e.result,a=o.value,s=o.context;return void i.callback({accountId:a.pubkey,accountInfo:a.account},s)}}}},{key:"onProgramAccountChange",value:function(t,e,r,n){var i=++this._programAccountChangeSubscriptionCounter;return this._programAccountChangeSubscriptions[i]={programId:t.toBase58(),callback:e,commitment:r,subscriptionId:null,filters:n},this._updateSubscriptions(),i}},{key:"removeProgramAccountChangeListener",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._programAccountChangeSubscriptions[e]){t.next=8;break}return r=this._programAccountChangeSubscriptions[e],delete this._programAccountChangeSubscriptions[e],t.next=5,this._unsubscribe(r,"programUnsubscribe");case 5:this._updateSubscriptions(),t.next=9;break;case 8:throw new Error("Unknown program account change id: ".concat(e));case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"onLogs",value:function(t,e,r){var n=++this._logsSubscriptionCounter;return this._logsSubscriptions[n]={filter:t,callback:e,commitment:r,subscriptionId:null},this._updateSubscriptions(),n}},{key:"removeOnLogsListener",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._logsSubscriptions[e]){t.next=2;break}throw new Error("Unknown logs id: ".concat(e));case 2:return r=this._logsSubscriptions[e],delete this._logsSubscriptions[e],t.next=6,this._unsubscribe(r,"logsUnsubscribe");case 6:this._updateSubscriptions();case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_wsOnLogsNotification",value:function(t){var e,r=Object(O.f)(t,rr),n=Object.keys(this._logsSubscriptions).map(Number),o=Object(i.a)(n);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=this._logsSubscriptions[a];if(s.subscriptionId===r.subscription)return void s.callback(r.result.value,r.result.context)}}catch(u){o.e(u)}finally{o.f()}}},{key:"_wsOnSlotNotification",value:function(t){for(var e=Object(O.f)(t,Me),r=0,n=Object.values(this._slotSubscriptions);r<n.length;r++){var i=n[r];if(i.subscriptionId===e.subscription)return void i.callback(e.result)}}},{key:"onSlotChange",value:function(t){var e=++this._slotSubscriptionCounter;return this._slotSubscriptions[e]={callback:t,subscriptionId:null},this._updateSubscriptions(),e}},{key:"removeSlotChangeListener",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._slotSubscriptions[e]){t.next=8;break}return r=this._slotSubscriptions[e],delete this._slotSubscriptions[e],t.next=5,this._unsubscribe(r,"slotUnsubscribe");case 5:this._updateSubscriptions(),t.next=9;break;case 8:throw new Error("Unknown slot change id: ".concat(e));case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_wsOnSlotUpdatesNotification",value:function(t){for(var e=Object(O.f)(t,Ee),r=0,n=Object.values(this._slotUpdateSubscriptions);r<n.length;r++){var i=n[r];if(i.subscriptionId===e.subscription)return void i.callback(e.result)}}},{key:"onSlotUpdate",value:function(t){var e=++this._slotUpdateSubscriptionCounter;return this._slotUpdateSubscriptions[e]={callback:t,subscriptionId:null},this._updateSubscriptions(),e}},{key:"removeSlotUpdateListener",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._slotUpdateSubscriptions[e]){t.next=8;break}return r=this._slotUpdateSubscriptions[e],delete this._slotUpdateSubscriptions[e],t.next=5,this._unsubscribe(r,"slotsUpdatesUnsubscribe");case 5:this._updateSubscriptions(),t.next=9;break;case 8:throw new Error("Unknown slot update id: ".concat(e));case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_buildArgs",value:function(t,e,r,n){var i=e||this._commitment;if(i||r||n){var o={};r&&(o.encoding=r),i&&(o.commitment=i),n&&(o=Object.assign(o,n)),t.push(o)}return t}},{key:"_buildArgsAtLeastConfirmed",value:function(t,e,r,n){var i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,r,n)}},{key:"_wsOnSignatureNotification",value:function(t){for(var e=Object(O.f)(t,xe),r=0,n=Object.entries(this._signatureSubscriptions);r<n.length;r++){var i=Object(o.a)(n[r],2),a=i[0],s=i[1];if(s.subscriptionId===e.subscription)return void("receivedSignature"===e.result.value?s.callback({type:"received"},e.result.context):(delete this._signatureSubscriptions[Number(a)],this._updateSubscriptions(),s.callback({type:"status",result:e.result.value},e.result.context)))}}},{key:"onSignature",value:function(t,e,r){var n=++this._signatureSubscriptionCounter;return this._signatureSubscriptions[n]={signature:t,callback:function(t,r){"status"===t.type&&e(t.result,r)},options:{commitment:r},subscriptionId:null},this._updateSubscriptions(),n}},{key:"onSignatureWithOptions",value:function(t,e,r){var n=++this._signatureSubscriptionCounter;return this._signatureSubscriptions[n]={signature:t,callback:e,options:r,subscriptionId:null},this._updateSubscriptions(),n}},{key:"removeSignatureListener",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._signatureSubscriptions[e]){t.next=8;break}return r=this._signatureSubscriptions[e],delete this._signatureSubscriptions[e],t.next=5,this._unsubscribe(r,"signatureUnsubscribe");case 5:this._updateSubscriptions(),t.next=9;break;case 8:throw new Error("Unknown signature result id: ".concat(e));case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_wsOnRootNotification",value:function(t){for(var e=Object(O.f)(t,Ae),r=0,n=Object.values(this._rootSubscriptions);r<n.length;r++){var i=n[r];if(i.subscriptionId===e.subscription)return void i.callback(e.result)}}},{key:"onRootChange",value:function(t){var e=++this._rootSubscriptionCounter;return this._rootSubscriptions[e]={callback:t,subscriptionId:null},this._updateSubscriptions(),e}},{key:"removeRootChangeListener",value:function(){var t=Object(f.a)(c.a.mark((function t(e){var r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._rootSubscriptions[e]){t.next=8;break}return r=this._rootSubscriptions[e],delete this._rootSubscriptions[e],t.next=5,this._unsubscribe(r,"rootUnsubscribe");case 5:this._updateSubscriptions(),t.next=9;break;case 8:throw new Error("Unknown root change id: ".concat(e));case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),ir=function(){function t(e){Object(p.a)(this,t),m()(this,"_keypair",void 0),this._keypair=e||y.sign.keyPair()}return Object(b.a)(t,[{key:"publicKey",get:function(){return new z(this._keypair.publicKey)}},{key:"secretKey",get:function(){return this._keypair.secretKey}}],[{key:"generate",value:function(){return new t(y.sign.keyPair())}},{key:"fromSecretKey",value:function(e,r){var n=y.sign.keyPair.fromSecretKey(e);if(!r||!r.skipValidation){var i=(new TextEncoder).encode("@solana/web3.js-validation-v1"),o=y.sign.detached(i,n.secretKey);if(!y.sign.detached.verify(i,o,n.publicKey))throw new Error("provided secretKey is invali
2d")}return new t(n)}},{key:"fromSeed",value:function(e){return new t(y.sign.keyPair.fromSeed(e))}}]),t}(),or=A.struct([A.u8("numSignatures"),A.u8("padding"),A.u16("signatureOffset"),A.u16("signatureInstructionIndex"),A.u16("publicKeyOffset"),A.u16("publicKeyInstructionIndex"),A.u16("messageDataOffset"),A.u16("messageDataSize"),A.u16("messageInstructionIndex")]),ar=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"createInstructionWithPublicKey",value:function(e){var r=e.publicKey,n=e.message,i=e.signature,o=e.instructionIndex;$(32===r.length,"Public Key must be ".concat(32," bytes but received ").concat(r.length," bytes")),$(64===i.length,"Signature must be ".concat(64," bytes but received ").concat(i.length," bytes"));var a=or.span,s=a+r.length,u=s+i.length,c=w.Buffer.alloc(u+n.length);return or.encode({numSignatures:1,padding:0,signatureOffset:s,signatureInstructionIndex:o,publicKeyOffset:a,publicKeyInstructionIndex:o,messageDataOffset:u,messageDataSize:n.length,messageInstructionIndex:o},c),c.fill(r,a),c.fill(i,s),c.fill(n,u),new rt({keys:[],programId:t.programId,data:c})}},{key:"createInstructionWithPrivateKey",value:function(t){var e=t.privateKey,r=t.message,n=t.instructionIndex;$(64===e.length,"Private key must be ".concat(64," bytes but received ").concat(e.length," bytes"));try{var i=ir.fromSecretKey(e),o=i.publicKey.toBytes(),a=g.a.sign.detached(r,i.secretKey);return this.createInstructionWithPublicKey({publicKey:o,message:r,signature:a,instructionIndex:n})}catch(s){throw new Error("Error creating instruction; ".concat(s))}}}]),t}();m()(ar,"programId",new z("Ed25519SigVerify111111111111111111111111111"));var sr=new z("StakeConfig11111111111111111111111111111111"),ur=function t(e,r){Object(p.a)(this,t),m()(this,"staker",void 0),m()(this,"withdrawer",void 0),this.staker=e,this.withdrawer=r},cr=function t(e,r,n){Object(p.a)(this,t),m()(this,"unixTimestamp",void 0),m()(this,"epoch",void 0),m()(this,"custodian",void 0),this.unixTimestamp=e,this.epoch=r,this.custodian=n};m()(cr,"default",new cr(0,0,z.default));var fr=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"decodeInstructionType",value:function(t){this.checkProgramId(t.programId);for(var e,r=A.u32("instruction").decode(t.data),n=0,i=Object.entries(hr);n<i.length;n++){var a=Object(o.a)(i[n],2),s=a[0];if(a[1].index==r){e=s;break}}if(!e)throw new Error("Instruction type incorrect; not a StakeInstruction");return e}},{key:"decodeInitialize",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);var e=pt(hr.Initialize,t.data),r=e.authorized,n=e.lockup;return{stakePubkey:t.keys[0].pubkey,authorized:new ur(new z(r.staker),new z(r.withdrawer)),lockup:new cr(n.unixTimestamp,n.epoch,new z(n.custodian))}}},{key:"decodeDelegate",value:function(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),pt(hr.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}},{key:"decodeAuthorize",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);var e=pt(hr.Authorize,t.data),r=e.newAuthorized,n=e.stakeAuthorizationType,i={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new z(r),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(i.custodianPubkey=t.keys[3].pubkey),i}},{key:"decodeAuthorizeWithSeed",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);var e=pt(hr.AuthorizeWithSeed,t.data),r=e.newAuthorized,n=e.stakeAuthorizationType,i=e.authoritySeed,o=e.authorityOwner,a={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:i,authorityOwner:new z(o),newAuthorizedPubkey:new z(r),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(a.custodianPubkey=t.keys[3].pubkey),a}},{key:"decodeSplit",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);var e=pt(hr.Split,t.data).lamports;return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}},{key:"decodeMerge",value:function(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),pt(hr.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}},{key:"decodeWithdraw",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);var e=pt(hr.Withdraw,t.data).lamports,r={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(r.custodianPubkey=t.keys[5].pubkey),r}},{key:"decodeDeactivate",value:function(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),pt(hr.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}},{key:"checkProgramId",value:function(t){if(!t.equals(dr.programId))throw new Error("invalid instruction; programId is not StakeProgram")}},{key:"checkKeyLength",value:function(t,e){if(t.length<e)throw new Error("invalid instruction; found ".concat(t.length," keys, expected at least ").concat(e))}}]),t}(),hr=Object.freeze({Initialize:{index:0,layout:A.struct([A.u32("instruction"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"authorized";
2return A.struct([Z("staker"),Z("withdrawer")],t)}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return A.struct([A.ns64("unixTimestamp"),A.ns64("epoch"),Z("custodian")],t)}()])},Authorize:{index:1,layout:A.struct([A.u32("instruction"),Z("newAuthorized"),A.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:A.struct([A.u32("instruction")])},Split:{index:3,layout:A.struct([A.u32("instruction"),A.ns64("lamports")])},Withdraw:{index:4,layout:A.struct([A.u32("instruction"),A.ns64("lamports")])},Deactivate:{index:5,layout:A.struct([A.u32("instruction")])},Merge:{index:7,layout:A.struct([A.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:A.struct([A.u32("instruction"),Z("newAuthorized"),A.u32("stakeAuthorizationType"),G("authoritySeed"),Z("authorityOwner")])}}),lr=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),dr=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"initialize",value:function(t){var e=t.stakePubkey,r=t.authorized,n=t.lockup||cr.default,i=dt(hr.Initialize,{authorized:{staker:B(r.staker.toBuffer()),withdrawer:B(r.withdrawer.toBuffer())},lockup:{unixTimestamp:n.unixTimestamp,epoch:n.epoch,custodian:B(n.custodian.toBuffer())}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:at,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new rt(o)}},{key:"createAccountWithSeed",value:function(t){var e=new nt;e.add(_t.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));var r=t.stakePubkey,n=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}},{key:"createAccount",value:function(t){var e=new nt;e.add(_t.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));var r=t.stakePubkey,n=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}},{key:"delegate",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.votePubkey,i=dt(hr.Delegate);return(new nt).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:it,isSigner:!1,isWritable:!1},{pubkey:ut,isSigner:!1,isWritable:!1},{pubkey:sr,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"authorize",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.newAuthorizedPubkey,i=t.stakeAuthorizationType,o=t.custodianPubkey,a=dt(hr.Authorize,{newAuthorized:B(n.toBuffer()),stakeAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:it,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new nt).add({keys:s,programId:this.programId,data:a})}},{key:"authorizeWithSeed",value:function(t){var e=t.stakePubkey,r=t.authorityBase,n=t.authoritySeed,i=t.authorityOwner,o=t.newAuthorizedPubkey,a=t.stakeAuthorizationType,s=t.custodianPubkey,u=dt(hr.AuthorizeWithSeed,{newAuthorized:B(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:n,authorityOwner:B(i.toBuffer())}),c=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:it,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),(new nt).add({keys:c,programId:this.programId,data:u})}},{key:"split",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.splitStakePubkey,i=t.lamports,o=new nt;o.add(_t.createAccount({fromPubkey:r,newAccountPubkey:n,lamports:0,space:this.space,programId:this.programId}));var a=dt(hr.Split,{lamports:i});return o.add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"merge",value:function(t){var e=t.stakePubkey,r=t.sourceStakePubKey,n=t.authorizedPubkey,i=dt(hr.Merge);return(new nt).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:it,isSigner:!1,isWritable:!1},{pubkey:ut,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"withdraw",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.toPubkey,i=t.lamports,o=t.custodianPubkey,a=dt(hr.Withdraw,{lamports:i}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:it,isSigner:!1,isWritable:!1},{pubkey:ut,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new nt).add({keys:s,programId:this.programId,data:a})}},{key:"deactivate",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=dt(hr.Deactivate);return(new nt).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:it,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}}]),t}();m()(dr,"programId",new z("Stake11111111111111111111111111111111111111")),m()(dr,"space",200);var pr=T.a.publicKeyCreate,br=T.a.ecdsaSign,vr=A.struct([A.u8("numSignatures"),A.u16("signatureOffset"),A.u8("signatureInstructionIndex"),A.u16("ethAddressOffset"),A.u8("ethAddressInstructionIndex"),A.u16("messageDataOffset"),A.u16("messageDataSize"),A.u8("messageInstructionIndex"),A.blob(20,"ethAddress"),A.blob(64,"signature"),A.u8("recoveryId")]),mr=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"publicKeyToEthAddress",value:function(t){$(64===t.length,"Public key must be ".concat(64," bytes but received ").concat(t.length," bytes"));try{return w.Buffer.from(C.keccak_256.update(B(t)).digest()).slice(-20)}catch(e){throw new Error("Error constructing Ethereum address: ".concat(e))}}},{key:"createInstructionWithPublicKey",value:function(e){var r=e.publicKey,n=e.message,i=e.signature,o=e.recoveryId,a=e.instructionIndex;return t.createInstructionWithEthAddress({ethAddress:t.publicKeyToEthAddress(r),message:n,signature:i,recoveryId:o,instructionIndex:a})}},{key:"createInstructionWithEthAddress",value:function(e){var r,n=e.ethAddress,i=e.message,o=e.signature,a=e.recoveryId,s=e.instructionIndex,u=void 0===s?0:s;$(20===(r="string"===typeof n?n.startsWith("0x")?w.Buffer.from(n.substr(2),"hex"):w.Buffer.from(n,"hex"):n).length,"Address must be ".concat(20," bytes but received ").concat(r.length," bytes"));var c=12+r.length,f=c+o.length+1,h=w.Buffer.alloc(vr.span+i.length);return vr.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:u,ethAddressOffset:12,ethAddressInstructionIndex:u,messageDataOffset:f,messageDataSize:i.length,messageInstructionIndex:u,signature:B(o),ethAddress:B(r),recoveryId:a},h),h.fill(B(i),vr.span),new rt({keys:[],programId:t.programId,data:h})}},{key:"createInstructionWithPrivateKey",value:function(t){var e=t.privateKey,r=t.message,n=t.instructionIndex;$(32===e.length,"Private key must be ".concat(32," bytes but received ").concat(e.length," bytes"));try{var i=B(e),o=pr(i,!1).slice(1),a=w.Buffer.from(C.keccak_256.update(B(r)).digest()),s=br(a,i),u=s.signature,c=s.recid;return this.createInstructionWithPublicKey({publicKey:o,message:r,signature:u,recoveryId:c,instructionIndex:n})}catch(f){throw new Error("Error creating instruction; ".concat(f))}}}]),t}();m()(mr,"programId",new z("KeccakSecp256k11111111111111111111111111111"));var yr=new z("Va1idator1nfo111111111111111111111111111111"),gr=Object(O.o)({name:Object(O.m)(),website:Object(O.k)(Object(O.m)()),details:Object(O.k)(Object(O.m)()),keybaseUsername:Object(O.k)(Object(O.m)())}),wr=function(){function t(e,r){Object(p.a)(this,t),m()(this,"key",void 0),m()(this,"info",void 0),this.key=e,this.info=r}return Object(b.a)(t,null,[{key:"fromConfigData",value:function(e){var r=Object(s.a)(e);if(2!==X(r))return null;for(var n=[],i=0;i<2;i++){var o=new z(r.slice(0,32)),a=1===(r=r.slice(32)).slice(0,1)[0];r=r.slice(1),n.push({publicKey:o,isSigner:a})}if(n[0].publicKey.equals(yr)&&n[1].isSigner){var u=G().decode(w.Buffer.from(r)),c=JSON.parse(u);return Object(O.c)(c,gr),new t(n[1].publicKey,c)}return null}}]),t}(),_r=new z("Vote111111111111111111111111111111111111111"),kr=A.struct([Z("nodePubkey"),Z("authorizedVoterPubkey"),Z("authorizedWithdrawerPubkey"),A.u8("commission"),A.nu64(),A.seq(A.struct([A.nu64("slot"),A.u32("confirmationCount")]),A.offset(A.u32(),-8),"votes"),A.u8("rootSlotValid"),A.nu64("rootSlot"),A.nu64("epoch"),A.nu64("credits"),A.nu64("lastEpochCredits"),A.nu64(),A.seq(A.struct([A.nu64("epoch"),A.nu64("credits"),A.nu64("prevCredits")]),A.offset(A.u32(),-8),"epochCredits")]),Mr=function(){function t(e){Object(p.a)(this,t),m()(this,"nodePubkey",void 0),m()(this,"authorizedVoterPubkey",void 0),m()(this,"authorizedWithdrawerPubkey",void 0),m()(this,"commission",void 0),m()(this,"votes",void 0),m()(this,"rootSlot",void 0),m()(this,"epoch",void 0),m()(this,"credits",void 0),m()(this,"lastEpochCredits",void 0),m()(this,"epochCredits",void 0),this.nodePubkey=e.nodePubkey,this.authorizedVoterPubkey=e.authorizedVoterPubkey,this.authorizedWithdrawerPubkey=e.authorizedWithdrawerPubkey,this.commission=e.commission,this.votes=e.votes,this.rootSlot=e.rootSlot,this.epoch=e.epoch,this.credits=e.credits,this.lastEpochCredits=e.lastEpochCredits,this.epochCredits=e.epochCredits}return Object(b.a)(t,null,[{key:"fromAccountData",value:function(e){var r=kr.decode(B(e),0),n=r.rootSlot;return r.rootSlotValid||(n=null),new t({nodePubkey:new z(r.nodePubkey),authorizedVoterPubkey:new z(r.authorizedVoterPubkey),authorizedWithdrawerPubkey:new z(r.authorizedWithdrawerPubkey),commission:r.commission,votes:r.votes,rootSlot:n,epoch:r.epoch,credits:r.credits,lastEpochCredits:r.lastEpochCredits,epochCredits:r.epochCredits})}}]),t}();function Sr(t,e,r){return Er.apply(this,arguments)}function Er(){return(Er=Object(f.a)(c.a.mark((function t(e,r,n){var i,o,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n&&{skipPreflight:n.skipPreflight,preflightCommitment:n.preflightCommitment||n.commitment},t.next=3,e.sendRawTransaction(r,i);case 3:return o=t.sent,t.next=6,e.confirmTransaction(o,n&&n.commitment);case 6:if(!(a=t.sent.value).err){t.next=9;break}throw new Error("Raw transaction ".concat(o," failed (").concat(JSON.stringify(a),")"));case 9:return t.abrupt("return",o);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var xr={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com"}};function Ar(t,e){var r=!1===e?"http":"https";if(!t)return xr[r].devnet;var n=xr[r][t];if(!n)throw new Error("Unknown ".concat(r," cluster: ").concat(t));return n}var Or=1e9}.call(this,r(31))},function(t,e,r){"use strict";function n(t){var e,r,i="";if("string"===typeof t||"number"===typeof t)i+=t;else if("object"===typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=n(t[e]))&&(i&&(i+=" "),i+=r);else for(e in t)t[e]&&(i&&(i+=" "),i+=e);return i}e.a=function(){for(var t,e,r=0,i="";r<arguments.length;)(t=arguments[r++])&&(e=n(t))&&(i&&(i+=" "),i+=e);return i}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(82);function i(t,e){var r;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=Object(n.a)(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}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 a,s=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t}
2,f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}},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 r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(129);var i=r(165),o=r(82);function a(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(i.a)(t)||Object(o.a)(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(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(109);function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Object(n.a)(t,e)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(75),i=r(164);function o(t){return(o="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)}var a=r(44);function s(t,e){return!e||"object"!==o(e)&&"function"!==typeof e?Object(a.a)(t):e}function u(t){var e=Object(i.a)();return function(){var r,i=Object(n.a)(t);if(e){var o=Object(n.a)(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return s(this,r)}}},function(t,e,r){var n=r(361);t.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(t,e,r){"use strict";var n=r(6),i=r(12),o=r(2),a=r.n(o),s=(r(15),r(131)),u=r.n(s),c=r(571),f=r(599),h=r(344),l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var o=e.defaultTheme,s=e.withTheme,l=void 0!==s&&s,d=e.name,p=Object(i.a)(e,["defaultTheme","withTheme","name"]);var b=d,v=Object(c.a)(t,Object(n.a)({defaultTheme:o,Component:r,name:d||r.displayName,classNamePrefix:b},p)),m=a.a.forwardRef((function(t,e){t.classes;var s,u=t.innerRef,c=Object(i.a)(t,["classes","innerRef"]),p=v(Object(n.a)({},r.defaultProps,t)),b=c;return("string"===typeof d||l)&&(s=Object(h.a)()||o,d&&(b=Object(f.a)({theme:s,name:d,props:c})),l&&!b.theme&&(b.theme=s)),a.a.createElement(r,Object(n.a)({ref:u||e,classes:p},b))}));return u()(m,r),m}},d=r(110);e.a=function(t,e){return l(t,Object(n.a)({defaultTheme:d.a},e))}},function(t,e,r){var n=r(7),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(241),e),i(r(242),e),i(r(395),e),i(r(396),e)},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"===typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],f=!1,h=-1;function l(){f&&u&&(f=!1,u.length?c=u.concat(c):h=-1,c.length&&d())}function d(){if(!f){var t=s(l);f=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function b(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new p(t,e)),1!==c.length||f||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";(function(t){var n=r(34),i=r(36),o=r(39),a=r(40),s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0}),e.array=e.rustEnum=e.str=e.vecU8=e.tagged=e.vec=e.bool=e.option=e.publicKey=e.i128=e.u128=e.i64=e.u64=e.struct=e.i32=e.u32=e.i16=e.u16=e.i8=e.u8=void 0;var u=r(244),c=r(16),f=s(r(46)),h=r(244);Object.defineProperty(e,"u8",{enumerable:!0,get:function(){return h.u8}}),Object.defineProperty(e,"i8",{enumerable:!0,get:function(){return h.s8}}),Object.defineProperty(e,"u16",{enumerable:!0,get:function(){return h.u16}}),Object.defineProperty(e,"i16",{enumerable:!0,get:function(){return h.s16}}),Object.defineProperty(e,"u32",{enumerable:!0,get:function(){return h.u32}}),Object.defineProperty(e,"i32",{enumerable:!0,get:function(){return h.s32}}),Object.defineProperty(e,"struct",{enumerable:!0,get:function(){return h.struct}});var l=function(e){o(s,e);var r=a(s);function s(t,e,i){var o;return n(this,s),(o=r.call(this,t,i)).blob=u.blob(t),o.signed=e,o}return i(s,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new f.default(this.blob.decode(t,e),10,"le");return this.signed?r.fromTwos(8*this.span).clone():r}},{key:"encode",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(t,"le",this.span),r,n)}}]),s}(u.Layout);function d(t){return new l(8,!1,t)}e.u64=d,e.i64=function(t){return new l(8,!0,t)},e.u128=function(t){return new l(16,!1,t)},e.i128=function(t){return new l(16,!0,t)};var p=function(t){o(r,t);var e=a(r);function r(t,i,o,a){var s;return n(this,r),(s=e.call(this,t.span,a)).layout=t,s.decoder=i,s.encoder=o,s}return i(r,[{key:"decode",value:function(t,e){return this.decoder(this.layout.decode(t,e))}},{key:"encode",value:function(t,e,r){return this.layout.encode(this.encoder(t),e,r)}},{key:"getSpan",value:function(t,e){return this.layout.getSpan(t,e)}}]),r}(u.Layout);e.publicKey=function(t){return new p(u.blob(32),(function(t){return new c.PublicKey(t)}),(function(t){return t.toBuffer()}),t)};var b=function(t){o(r,t);var e=a(r);function r(t,i){var o;return n(this,r),(o=e.call(this,-1,i)).layout=t,o.discriminator=u.u8(),o}return i(r,[{key:"encode",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null===t||void 0===t?this.discriminator.encode(0,e,r):(this.discriminator.encode(1,e,r),this.layout.encode(t,e,r+1)+1)}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator.decode(t,e);if(0===r)return null;if(1===r)return this.layout.decode(t,e+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator.decode(t,e);if(0===r)return 1;if(1===r)return this.layout.getSpan(t,e+1)+1;throw new Error("Invalid option "+this.property)}}]),r}(u.Layout);function v(t){if(0===t)return!1;if(1===t)return!0;throw new Error("Invalid bool: "+t)}function m(t){return t?1:0}function y(t){var e=u.u32("length"),r=u.struct([e,u.blob(u.offset(e,-e.span),"data")]);return new p(r,(function(t){return t.data}),(function(t){return{data:t}}),t)}e.option=function(t,e){return new b(t,e)},e.bool=function(t){return new p(u.u8(),v,m,t)},e.vec=function(t,e){var r=u.u32("length"),n=u.struct([r,u.seq(t,u.offset(r,-r.span),"values")]);return new p(n,(function(t){return t.values}),(function(t){return{values:t}}),e)},e.tagged=function(t,e,r){var n=u.struct([d("tag"),e.replicate("data")]);return new p(n,(function(e){var r=e.tag,n=e.data;if(!r.eq(t))throw new Error("Invalid tag, expected: "+t.toString("hex")+", got: "+r.toString("hex"));return n}),(function(e){return{tag:t,data:e}}),r)},e.vecU8=y,e.str=function(e){return new p(y(),(function(t){return t.toString("utf-8")}),(function(e){return t.from(e,"utf-8")}),e)},e.rustEnum=function(t,e){var r=u.union(u.u8(),e);return t.forEach((function(t,e){return r.addVariant(e,t,t.property)})),r},e.array=function(t,e,r){var n=u.struct([u.seq(t,e,"values")]);return new p(n,(function(t){return t.values}),(function(t){return{values:t}}),r)}}).call(this,r(7).Buffer)},function(t,e,r){"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}(),t.exports=r(352)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(345);function i(t){if("string"!==typeof t)throw new Error(Object(n.a)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";r.d(e,"a",(function(){return Nr})),r.d(e,"c",(function(){return o.b})),r.d(e,"b",(function(){return o.a})),r.d(e,"d",(function(){return i}));var n={};r.r(n),r.d(n,"decode",(function(){return Br})),r.d(n,"encode",(function(){return Lr}));r(46);var i=r(16),o=r(91),a=r(43),s=r(48),u=r.n(s),c=r(325),f=r(1),h=r.n(f),l=r(4),d=r(14),p=r(9),b=r(10);function v(t){for(var e=t.length;--e>=0;)t[e]=0}var m=256,y=286,g=30,w=15,_=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),k=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),E=new Array(576);v(E);var x=new Array(60);v(x);var A=new Array(512);v(A);var O=new Array(256);v(O);var j=new Array(29);v(j);var R,I,P,T=new Array(g);function C(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function B(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}v(T);var L=function(t){return t<256?A[t]:A[256+(t>>
vendor: 40,002 bytes, line 2
2>7)]},N=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},D=function(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},U=function(t,e,r){D(t,r[2*e],r[2*e+1])},z=function(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},W=function(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=w;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}},q=function(t){var e;for(e=0;e<y;e++)t.dyn_ltree[2*e]=0;for(e=0;e<g;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},F=function(t){t.bi_valid>8?N(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},K=function(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]},H=function(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&K(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!K(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},Y=function(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?U(t,i,e):(o=O[i],U(t,o+m+1,e),0!==(a=_[o])&&(i-=j[o],D(t,i,a)),n--,o=L(n),U(t,o,r),0!==(a=k[o])&&(n-=T[o],D(t,n,a)))}while(s<t.last_lit);U(t,256,e)},V=function(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)H(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],H(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,H(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,b=0;for(o=0;o<=w;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,b++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=d&&(a=l[n-d]),s=u[2*n],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==b){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,b-=2}while(b>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),W(o,c,t.bl_count)},Z=function(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},G=function(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{U(t,i,t.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(U(t,i,t.bl_tree),s--),U(t,16,t.bl_tree),D(t,s-3,2)):s<=10?(U(t,17,t.bl_tree),D(t,s-3,3)):(U(t,18,t.bl_tree),D(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}},X=!1,J=function(t,e,r,n){D(t,0+(n?1:0),3),function(t,e,r,n){F(t),n&&(N(t,r),N(t,~r)),t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r}(t,e,r,!0)},Q={_tr_init:function(t){X||(!function(){var t,e,r,n,i,o=new Array(16);for(r=0,n=0;n<28;n++)for(j[n]=r,t=0;t<1<<_[n];t++)O[r++]=n;for(O[r-1]=n,i=0,n=0;n<16;n++)for(T[n]=i,t=0;t<1<<k[n];t++)A[i++]=n;for(i>>=7;n<g;n++)for(T[n]=i<<7,t=0;t<1<<k[n]-7;t++)A[256+i++]=n;for(e=0;e<=w;e++)o[e]=0;for(t=0;t<=143;)E[2*t+1]=8,t++,o[8]++;for(;t<=255;)E[2*t+1]=9,t++,o[9]++;for(;t<=279;)E[2*t+1]=7,t++,o[7]++;for(;t<=287;)E[2*t+1]=8,t++,o[8]++;for(W(E,287,o),t=0;t<g;t++)x[2*t+1]=5,x[2*t]=z(t,5);R=new C(E,_,257,y,w),I=new C(x,k,0,g,w),P=new C(new Array(0),M,0,19,7)}(),X=!0),t.l_desc=new B(t.dyn_ltree,R),t.d_desc=new B(t.dyn_dtree,I),t.bl_desc=new B(t.bl_tree,P),t.bi_buf=0,t.bi_valid=0,q(t)},_tr_stored_block:J,_tr_flush_block:function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<m;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),V(t,t.l_desc),V(t,t.d_desc),a=function(t){var e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),V(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?J(t,e,r,n):4===t.strategy||o===i?(D(t,2+(n?1:0),3),Y(t,E,x)):(D(t,4+(n?1:0),3),function(t,e,r,n){var i;for(D(t,e-257,5),D(t,r-1,5),D(t,n-4,4),i=0;i<n;i++)D(t,t.bl_tree[2*S[i]+1],3);G(t,t.dyn_ltree,e-1),G(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Y(t,t.dyn_ltree,t.dyn_dtree)),q(t),n&&F(t)},_tr_tally:function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(O[r]+m+1)]++,t.dyn_dtree[2*L(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){D(t,2,3),U(t,256,E),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},$=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},tt=new Uint32Array(function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}()),et=function(t,e,r,n){var i=tt,o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},rt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},nt={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},it=Q._tr_init,ot=Q._tr_stored_block,at=Q._tr_flush_block,st=Q._tr_tally,ut=Q._tr_align,ct=nt.Z_NO_FLUSH,ft=nt.Z_PARTIAL_FLUSH,ht=nt.Z_FULL_FLUSH,lt=nt.Z_FINISH,dt=nt.Z_BLOCK,pt=nt.Z_OK,bt=nt.Z_STREAM_END,vt=nt.Z_STREAM_ERROR,mt=nt.Z_DATA_ERROR,yt=nt.Z_BUF_ERROR,gt=nt.Z_DEFAULT_COMPRESSION,wt=nt.Z_FILTERED,_t=nt.Z_HUFFMAN_ONLY,kt=nt.Z_RLE,Mt=nt.Z_FIXED,St=nt.Z_DEFAULT_STRATEGY,Et=nt.Z_UNKNOWN,xt=nt.Z_DEFLATED,At=258,Ot=262,jt=103,Rt=113,It=666,Pt=function(t,e){return t.msg=rt[e],e},Tt=function(t){return(t<<1)-(t>4?9:0)},Ct=function(t){for(var e=t.length;--e>=0;)t[e]=0},Bt=function(t,e,r){return(e<<t.hash_shift^r)&t.hash_mask},Lt=function(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},Nt=function(t,e){at(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Lt(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},Ut=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},zt=function(t,e,r,n){var i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=$(t.adler,e,i,r):2===t.state.wrap&&(t.adler=et(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Wt=function(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Ot?t.strstart-(t.w_size-Ot):0,c=t.window,f=t.w_mask,h=t.prev,l=t.strstart+At,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<l);if(n=At-(l-o),o=l-At,n>a){if(t.match_start=e,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=h[e&f])>u&&0!==--i);return a<=t.lookahead?a:t.lookahead},qt=function(t){var e,r,n,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-Ot)){t.window.set(t.window.subarray(a,a+a),0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=a?n-a:0}while(--r);e=r=a;do{n=t.prev[--e],t.prev[e]=n>=a?n-a:0}while(--r);i+=a}if(0===t.strm.avail_in)break;if(r=zt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=r,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=Bt(t,t.ins_h,t.window[o+1]);t.insert&&(t.ins_h=Bt(t,t.ins_h,t.window[o+3-1]),t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<Ot&&0!==t.strm.avail_in)},Ft=function(t,e){for(var r,n;;){if(t.lookahead<Ot){if(qt(t),t.lookahead<Ot&&e===ct)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Bt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-Ot&&(t.match_length=Wt(t,r)),t.match_length>=3)if(n=st(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Bt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Bt(t,t.ins_h,t.window[t.strstart+1]);else n=st(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Nt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===lt?(Nt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Nt(t,!1),0===t.strm.avail_out)?1:2},Kt=function(t,e){for(var r,n,i;;){if(t.lookahead<Ot){if(qt(t),t.lookahead<Ot&&e===ct)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Bt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-Ot&&(t.match_length=Wt(t,r),t.match_length<=5&&(t.strategy===wt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=st(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Bt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Nt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=st(t,0,t.window[t.strstart-1]))&&Nt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=st(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===lt?(Nt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Nt(t,!1),0===t.strm.avail_out)?1:2};function Ht(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}var Yt=[new Ht(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(qt(t),0===t.lookahead&&e===ct)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Nt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Ot&&(Nt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===lt?(Nt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Nt(t,!1),t.strm.avail_out),1)})),new Ht(4,4,8,4,Ft),new Ht(4,5,16,8,Ft),new Ht(4,6,32,32,Ft),new Ht(4,4,16,16,Kt),new Ht(8,16,32,32,Kt),new Ht(8,16,128,128,Kt),new Ht(8,32,128,256,Kt),new Ht(32,128,258,1024,Kt),new Ht(32,258,258,4096,Kt)];function Vt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=xt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Ct(this.dyn_ltree),Ct(this.dyn_dtree),Ct(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Ct(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ct(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Zt=function(t){if(!t||!t.state)return Pt(t,vt);t.total_in=t.total_out=0,t.data_type=Et;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:Rt,t.adler=2===e.wrap?0:1,e.last_flush=ct,it(e),pt},Gt=function(t){var e,r=Zt(t);return r===pt&&((e=t.state).window_size=2*e.w_size,Ct(e.head),e.max_lazy_match=Yt[e.level].max_lazy,e.good_match=Yt[e.level].good_length,e.nice_match=Yt[e.level].nice_length,e.max_chain_length=Yt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r},Xt=function(t,e,r,n,i,o){if(!t)return vt;var a=1;if(e===gt&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==xt||n<8||n>15||e<0||e>9||o<0||o>Mt)return Pt(t,vt);8===n&&(n=9);var s=new Vt;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=r,Gt(t)},Jt={deflateInit:function(t,e){return Xt(t,e,xt,15,8,St)},deflateInit2:Xt,deflateReset:Gt,deflateResetKeep:Zt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?vt:(t.state.gzhead=e,pt):vt},deflate:function(t,e){var r,n;if(!t||!t.state||e>dt||e<0)return t?Pt(t,vt):vt;var i=t.state;if(!t.output||!t.input&&0!==t.avail_in||i.status===It&&e!==lt)return Pt(t,0===t.avail_out?yt:vt);i.strm=t;var o=i.last_flush;if(i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,Dt(i,31),Dt(i,139),Dt(i,8),i.gzhead?(Dt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Dt(i,255&i.gzhead.time),Dt(i,i.gzhead.time>>8&255),Dt(i,i.gzhead.time>>16&255),Dt(i,i.gzhead.time>>24&255),Dt(i,9===i.level?2:i.strategy>=_t||i.level<2?4:0),Dt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Dt(i,255&i.gzhead.extra.length),Dt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=et(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(Dt(i,0),Dt(i,0),Dt(i,0),Dt(i,0),Dt(i,0),Dt(i,9===i.level?2:i.strategy>=_t||i.level<2?4:0),Dt(i,3),i.status=Rt);else{var a=xt+(i.w_bits-8<<4)<<8;a|=(i.strategy>=_t||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=32),a+=31-a%31,i.status=Rt,Ut(i,a),0!==i.strstart&&(Ut(i,t.adler>>>16),Ut(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>r&&(t.adler=et(t.adler,i.pending_buf,i.pending-r,r)),Lt(t),r=i.pending,i.pending!==i.pending_buf_size));)Dt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(t.adler=et(t.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(t.adler=et(t.adler,i.pending_buf,i.pending-r,r)),Lt(t),r=i.pending,i.pending===i.pending_buf_size)){n=1;break}n=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,Dt(i,n)}while(0!==n);i.gzhead.hcrc&&i.pending>r&&(t.adler=et(t.adler,i.pending_buf,i.pending-r,r)),0===n&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(t.adler=et(t.adler,i.pending_buf,i.pending-r,r)),Lt(t),r=i.pending,i.pending===i.pending_buf_size)){n=1;break}n=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,Dt(i,n)}while(0!==n);i.gzhead.hcrc&&i.pending>r&&(t.adler=et(t.adler,i.pending_buf,i.pending-r,r)),0===n&&(i.status=jt)}else i.status=jt;if(i.status===jt&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Lt(t),i.pending+2<=i.pending_buf_size&&(Dt(i,255&t.adler),Dt(i,t.adler>>8&255),t.adler=0,i.status=Rt)):i.status=Rt),0!==i.pending){if(Lt(t),0===t.avail_out)return i.last_flush=-1,pt}else if(0===t.avail_in&&Tt(e)<=Tt(o)&&e!==lt)return Pt(t,yt);if(i.status===It&&0!==t.avail_in)return Pt(t,yt);if(0!==t.avail_in||0!==i.lookahead||e!==ct&&i.status!==It){var s=i.strategy===_t?function(t,e){for(var r;;){if(0===t.lookahead&&(qt(t),0===t.lookahead)){if(e===ct)return 1;break}if(t.match_length=0,r=st(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Nt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===lt?(Nt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Nt(t,!1),0===t.strm.avail_out)?1:2}(i,e):i.strategy===kt?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=At){if(qt(t),t.lookahead<=At&&e===ct)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+At;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=At-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=st(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=st(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Nt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===lt?(Nt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Nt(t,!1),0===t.strm.avail_out)?1:2}(i,e):Yt[i.level].func(i,e);if(3!==s&&4!==s||(i.status=It),1===s||3===s)return 0===t.avail_out&&(i.last_flush=-1),pt;if(2===s&&(e===ft?ut(i):e!==dt&&(ot(i,0,0,!1),e===ht&&(Ct(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),Lt(t),0===t.avail_out))return i.last_flush=-1,pt}return e!==lt?pt:i.wrap<=0?bt:(2===i.wrap?(Dt(i,255&t.adler),Dt(i,t.adler>>8&255),Dt(i,t.adler>>16&255),Dt(i,t.adler>>24&255),Dt(i,255&t.total_in),Dt(i,t.total_in>>8&255),Dt(i,t.total_in>>16&255),Dt(i,t.total_in>>24&255)):(Ut(i,t.adler>>>16),Ut(i,65535&t.adler)),Lt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?pt:bt)},deflateEnd:function(t){if(!t||!t.state)return vt;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==jt&&e!==Rt&&e!==It?Pt(t,vt):(t.state=null,e===Rt?Pt(t,mt):pt)},deflateSetDictionary:function(t,e){var r=e.length;if(!t||!t.state)return vt;var n=t.state,i=n.wrap;if(2===i||1===i&&42!==n.status||n.lookahead)return vt;if(1===i&&(t.adler=$(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(Ct(n.head),n.strstart=0,n.block_start=0,n.insert=0);var o=new Uint8Array(n.w_size);o.set(e.subarray(r-n.w_size,r),0),e=o,r=n.w_size}var a=t.avail_in,s=t.next_in,u=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,qt(n);n.lookahead>=3;){var c=n.strstart,f=n.lookahead-2;do{n.ins_h=Bt(n,n.ins_h,n.window[c+3-1]),n.prev[c&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=c,c++}while(--f);n.strstart=c,n.lookahead=2,qt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=i,pt},deflateInfo:"pako deflate (from Nodeca project)"},Qt=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},$t=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!==typeof r)throw new TypeError(r+"must be non-object");for(var n in r)Qt(r,n)&&(t[n]=r[n])}}return t},te=function(t){for(var e=0,r=0,n=t.length;r<n;r++)e+=t[r].length;for(var i=new Uint8Array(e),o=0,a=0,s=t.length;o<s;o++){var u=t[o];i.set(u,a),a+=u.length}return i},ee=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(zr){ee=!1}for(var re=new Uint8Array(256),ne=0;ne<256;ne++)re[ne]=ne>=252?6:ne>=248?5:ne>=240?4:ne>=224?3:ne>=192?2:1;re[254]=re[254]=1;var ie=function(t){if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296===(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320===(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)55296===(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320===(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},oe=function(t,e){var r,n,i=e||t.length;if("function"===typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));var o=new Array(2*i);for(n=0,r=0;r<i;){var a=t[r++];if(a<128)o[n++]=a;else{var s=re[a];if(s>4)o[n++]=65533,r+=s-1;else{for(a&=2===s?31:3===s?15:7;s>1&&r<i;)a=a<<6|63&t[r++],s--;s>1?o[n++]=65533:a<65536?o[n++]=a:(a-=65536,o[n++]=55296|a>>10&1023,o[n++]=56320|1023&a)}}}return function(t,e){if(e<65534&&t.subarray&&ee)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}(o,n)},ae=function(t,e){(e=e||t.length)>t.length&&(e=t.length);for(var r=e-1;r>=0&&128===(192&t[r]);)r--;return r<0||0===r?e:r+re[t[r]]>e?r:e};var se=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ue=Object.prototype.toString,ce=nt.Z_NO_FLUSH,fe=nt.Z_SYNC_FLUSH,he=nt.Z_FULL_FLUSH,le=nt.Z_FINISH,de=nt.Z_OK,pe=nt.Z_STREAM_END,be=nt.Z_DEFAULT_COMPRESSION,ve=nt.Z_DEFAULT_STRATEGY,me=nt.Z_DEFLATED;function ye(t){this.options=$t({level:be,method:me,chunkSize:16384,windowBits:15,memLevel:8,strategy:ve},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new se,this.strm.avail_out=0;var r=Jt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==de)throw new Error(rt[r]);if(e.header&&Jt.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"===typeof e.dictionary?ie(e.dictionary):"[object ArrayBuffer]"===ue.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=Jt.deflateSetDictionary(this.strm,n))!==de)throw new Error(rt[r]);this._dict_set=!0}}ye.prototype.push=function(t,e){var r,n,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?le:ce,"string"===typeof t?i.input=ie(t):"[object ArrayBuffer]"===ue.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n===fe||n===he)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((r=Jt.deflate(i,n))===pe)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),r=Jt.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===de;if(0!==i.avail_out){if(n>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},ye.prototype.onData=function(t){this.chunks.push(t)},ye.prototype.onEnd=function(t){t===de&&(this.result=te(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ge=function(t,e){var r,n,i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k,M,S,E,x=t.state;r=t.next_in,S=t.input,n=r+(t.avail_in-5),i=t.next_out,E=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=x.dmax,u=x.wsize,c=x.whave,f=x.wnext,h=x.window,l=x.hold,d=x.bits,p=x.lencode,b=x.distcode,v=(1<<x.lenbits)-1,m=(1<<x.distbits)-1;t:do{d<15&&(l+=S[r++]<<d,d+=8,l+=S[r++]<<d,d+=8),y=p[l&v];e:for(;;){if(l>>>=g=y>>>24,d-=g,0===(g=y>>>16&255))E[i++]=65535&y;else{if(!(16&g)){if(0===(64&g)){y=p[(65535&y)+(l&(1<<g)-1)];continue e}if(32&g){x.mode=12;break t}t.msg="invalid literal/length code",x.mode=30;break t}w=65535&y,(g&=15)&&(d<g&&(l+=S[r++]<<d,d+=8),w+=l&(1<<g)-1,l>>>=g,d-=g),d<15&&(l+=S[r++]<<d,d+=8,l+=S[r++]<<d,d+=8),y=b[l&m];r:for(;;){if(l>>>=g=y>>>24,d-=g,!(16&(g=y>>>16&255))){if(0===(64&g)){y=b[(65535&y)+(l&(1<<g)-1)];continue r}t.msg="invalid distance code",x.mode=30;break t}if(_=65535&y,d<(g&=15)&&(l+=S[r++]<<d,(d+=8)<g&&(l+=S[r++]<<d,d+=8)),(_+=l&(1<<g)-1)>s){t.msg="invalid distance too far back",x.mode=30;break t}if(l>>>=g,d-=g,_>(g=i-o)){if((g=_-g)>c&&x.sane){t.msg="invalid distance too far back",x.mode=30;break t}if(k=0,M=h,0===f){if(k+=u-g,g<w){w-=g;do{E[i++]=h[k++]}while(--g);k=i-_,M=E}}else if(f<g){if(k+=u+f-g,(g-=f)<w){w-=g;do{E[i++]=h[k++]}while(--g);if(k=0,f<w){w-=g=f;do{E[i++]=h[k++]}while(--g);k=i-_,M=E}}}else if(k+=f-g,g<w){w-=g;do{E[i++]=h[k++]}while(--g);k=i-_,M=E}for(;w>2;)E[i++]=M[k++],E[i++]=M[k++],E[i++]=M[k++],w-=3;w&&(E[i++]=M[k++],w>1&&(E[i++]=M[k++]))}else{k=i-_;do{E[i++]=E[k++],E[i++]=E[k++],E[i++]=E[k++],w-=3}while(w>2);w&&(E[i++]=E[k++],w>1&&(E[i++]=E[k++]))}break}}break}}while(r<n&&i<a);r-=w=d>>3,l&=(1<<(d-=w<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<a?a-i+257:257-(i-a),x.hold=l,x.bits=d},we=15,_e=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ke=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Me=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Se=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Ee=function(t,e,r,n,i,o,a,s){var u,c,f,h,l,d,p,b,v,m=s.bits,y=0,g=0,w=0,_=0,k=0,M=0,S=0,E=0,x=0,A=0,O=null,j=0,R=new Uint16Array(16),I=new Uint16Array(16),P=null,T=0;for(y=0;y<=we;y++)R[y]=0;for(g=0;g<n;g++)R[e[r+g]]++;for(k=m,_=we;_>=1&&0===R[_];_--);if(k>_&&(k=_),0===_)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<_&&0===R[w];w++);for(k<w&&(k=w),E=1,y=1;y<=we;y++)if(E<<=1,(E-=R[y])<0)return-1;if(E>0&&(0===t||1!==_))return-1;for(I[1]=0,y=1;y<we;y++)I[y+1]=I[y]+R[y];for(g=0;g<n;g++)0!==e[r+g]&&(a[I[e[r+g]]++]=g);if(0===t?(O=P=a,d=19):1===t?(O=_e,j-=257,P=ke,T-=257,d=256):(O=Me,P=Se,d=-1),A=0,g=0,y=w,l=o,M=k,S=0,f=-1,h=(x=1<<k)-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){p=y-S,a[g]<d?(b=0,v=a[g]):a[g]>d?(b=P[T+a[g]],v=O[j+a[g]]):(b=96,v=0),u=1<<y-S,w=c=1<<M;do{i[l+(A>>S)+(c-=u)]=p<<24|b<<16|v|0}while(0!==c);for(u=1<<y-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,g++,0===--R[y]){if(y===_)break;y=e[r+a[g]]}if(y>k&&(A&h)!==f){for(0===S&&(S=k),l+=w,E=1<<(M=y-S);M+S<_&&!((E-=R[M+S])<=0);)M++,E<<=1;if(x+=1<<M,1===t&&x>852||2===t&&x>592)return 1;i[f=A&h]=k<<24|M<<16|l-o|0}}return 0!==A&&(i[l+A]=y-S<<24|64<<16|0),s.bits=k,0},xe=nt.Z_FINISH,Ae=nt.Z_BLOCK,Oe=nt.Z_TREES,je=nt.Z_OK,Re=nt.Z_STREAM_END,Ie=nt.Z_NEED_DICT,Pe=nt.Z_STREAM_ERROR,Te=nt.Z_DATA_ERROR,Ce=nt.Z_MEM_ERROR,Be=nt.Z_BUF_ERROR,Le=nt.Z_DEFLATED,Ne=12,De=30,Ue=function(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)};function ze(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var We,qe,Fe=function(t){if(!t||!t.state)return Pe;var e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,je},Ke=function(t){if(!t||!t.state)return Pe;var e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Fe(t)},He=function(t,e){var r;if(!t||!t.state)return Pe;var n=t.state;return e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Pe:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,Ke(t))},Ye=function(t,e){if(!t)return Pe;var r=new ze;t.state=r,r.window=null;var n=He(t,e);return n!==je&&(t.state=null),n},Ve=!0,Ze=function(t){if(Ve){We=new Int32Array(512),qe=new Int32Array(32);for(var e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Ee(1,t.lens,0,288,We,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ee(2,t.lens,0,32,qe,0,t.work,{bits:5}),Ve=!1}t.lencode=We,t.lenbits=9,t.distcode=qe,t.distbits=5},Ge=function(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},Xe={inflateReset:Ke,inflateReset2:He,inflateResetKeep:Fe,inflateInit:function(t){return Ye(t,15)},inflateInit2:Ye,inflate:function(t,e){var r,n,i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k,M,S,E,x=0,A=new Uint8Array(4),O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return Pe;(r=t.state).mode===Ne&&(r.mode=13),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,f=r.bits,h=s,l=u,M=je;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(2&r.wrap&&35615===c){r.check=0,A[0]=255&c,A[1]=c>>>8&255,r.check=et(r.check,A,2,0),c=0,f=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=De;break}if((15&c)!==Le){t.msg="unknown compression method",r.mode=De;break}if(f-=4,k=8+(15&(c>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=De;break}r.dmax=1<<r.wbits,t.adler=r.check=1,r.mode=512&c?10:Ne,c=0,f=0;break;case 2:for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(r.flags=c,(255&r.flags)!==Le){t.msg="unknown compression method",r.mode=De;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=De;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&(A[0]=255&c,A[1]=c>>>8&255,r.check=et(r.check,A,2,0)),c=0,f=0,r.mode=3;case 3:for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.head&&(r.head.time=c),512&r.flags&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,r.check=et(r.check,A,4,0)),c=0,f=0,r.mode=4;case 4:for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&(A[0]=255&c,A[1]=c>>>8&255,r.check=et(r.check,A,2,0)),c=0,f=0,r.mode=5;case 5:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&(A[0]=255&c,A[1]=c>>>8&255,r.check=et(r.check,A,2,0)),c=0,f=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+d),k)),512&r.flags&&(r.check=et(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;d=0;do{k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=et(r.check,n,d,o)),s-=d,o+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break t;d=0;do{k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=et(r.check,n,d,o)),s-=d,o+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(c!==(65535&r.check)){t.msg="header crc mismatch",r.mode=De;break}c=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Ne;break;case 10:for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}t.adler=r.check=Ue(c),c=0,f=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,Ie;t.adler=r.check=1,r.mode=Ne;case Ne:if(e===Ae||e===Oe)break t;case 13:if(r.last){c>>>=7&f,f-=7&f,r.mode=27;break}for(;f<3;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}switch(r.last=1&c,f-=1,3&(c>>>=1)){case 0:r.mode=14;break;case 1:if(Ze(r),r.mode=20,e===Oe){c>>>=2,f-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=De}c>>>=2,f-=2;break;case 14:for(c>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if((65535&c)!==(c>>>16^65535)){t.msg="invalid stored block lengths",r.mode=De;break}if(r.length=65535&c,c=0,f=0,r.mode=15,e===Oe)break t;case 15:r.mode=16;case 16:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;i.set(n.subarray(o,o+d),a),s-=d,o+=d,u-=d,a+=d,r.length-=d;break}r.mode=Ne;break;case 17:for(;f<14;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(r.nlen=257+(31&c),c>>>=5,f-=5,r.ndist=1+(31&c),c>>>=5,f-=5,r.ncode=4+(15&c),c>>>=4,f-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=De;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.lens[O[r.have++]]=7&c,c>>>=3,f-=3}for(;r.have<19;)r.lens[O[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},M=Ee(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,M){t.msg="invalid code lengths set",r.mode=De;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;m=(x=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&x,!((v=x>>>24)<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(y<16)c>>>=v,f-=v,r.lens[r.have++]=y;else{if(16===y){for(E=v+2;f<E;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(c>>>=v,f-=v,0===r.have){t.msg="invalid bit length repeat",r.mode=De;break}k=r.lens[r.have-1],d=3+(3&c),c>>>=2,f-=2}else if(17===y){for(E=v+3;f<E;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}f-=v,k=0,d=3+(7&(c>>>=v)),c>>>=3,f-=3}else{for(E=v+7;f<E;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}f-=v,k=0,d=11+(127&(c>>>=v)),c>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=De;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===De)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=De;break}if(r.lenbits=9,S={bits:r.lenbits},M=Ee(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,M){t.msg="invalid literal/lengths set",r.mode=De;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},M=Ee(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,M){t.msg="invalid distances set",r.mode=De;break}if(r.mode=20,e===Oe)break t;case 20:r.mode=21;case 21:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,ge(t,l),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,f=r.bits,r.mode===Ne&&(r.back=-1);break}for(r.back=0;m=(x=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&x,!((v=x>>>24)<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(m&&0===(240&m)){for(g=v,w=m,_=y;m=(x=r.lencode[_+((c&(1<<g+w)-1)>>g)])>>>16&255,y=65535&x,!(g+(v=x>>>24)<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=g,f-=g,r.back+=g}if(c>>>=v,f-=v,r.back+=v,r.length=y,0===m){r.mode=26;break}if(32&m){r.back=-1,r.mode=Ne;break}if(64&m){t.msg="invalid literal/length code",r.mode=De;break}r.extra=15&m,r.mode=22;case 22:if(r.extra){for(E=r.extra;f<E;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;m=(x=r.distcode[c&(1<<r.distbits)-1])>>>16&255,y=65535&x,!((v=x>>>24)<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(0===(240&m)){for(g=v,w=m,_=y;m=(x=r.distcode[_+((c&(1<<g+w)-1)>>g)])>>>16&255,y=65535&x,!(g+(v=x>>>24)<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=g,f-=g,r.back+=g}if(c>>>=v,f-=v,r.back+=v,64&m){t.msg="invalid distance code",r.mode=De;break}r.offset=y,r.extra=15&m,r.mode=24;case 24:if(r.extra){for(E=r.extra;f<E;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=De;break}r.mode=25;case 25:if(0===u)break t;if(d=l-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=De;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),b=r.window}else b=i,p=a-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[a++]=b[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;i[a++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;f<32;){if(0===s)break t;s--,c|=n[o++]<<f,f+=8}if(l-=u,t.total_out+=l,r.total+=l,l&&(t.adler=r.check=r.flags?et(r.check,i,l,a-l):$(r.check,i,l,a-l)),l=u,(r.flags?c:Ue(c))!==r.check){t.msg="incorrect data check",r.mode=De;break}c=0,f=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(c!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=De;break}c=0,f=0}r.mode=29;case 29:M=Re;break t;case De:M=Te;break t;case 31:return Ce;case 32:default:return Pe}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,(r.wsize||l!==t.avail_out&&r.mode<De&&(r.mode<27||e!==xe))&&Ge(t,t.output,t.next_out,l-t.avail_out),h-=t.avail_in,l-=t.avail_out,t.total_in+=h,t.total_out+=l,r.total+=l,r.wrap&&l&&(t.adler=r.check=r.flags?et(r.check,i,l,t.next_out-l):$(r.check,i,l,t.next_out-l)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Ne?128:0)+(20===r.mode||15===r.mode?256:0),(0===h&&0===l||e===xe)&&M===je&&(M=Be),M},inflateEnd:function(t){if(!t||!t.state)return Pe;var e=t.state;return e.window&&(e.window=null),t.state=null,je},inflateGetHeader:function(t,e){if(!t||!t.state)return Pe;var r=t.state;return 0===(2&r.wrap)?Pe:(r.head=e,e.done=!1,je)},inflateSetDictionary:function(t,e){var r,n=e.length;
2return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?Pe:11===r.mode&&$(1,e,n,0)!==r.check?Te:Ge(t,e,n,n)?(r.mode=31,Ce):(r.havedict=1,je):Pe},inflateInfo:"pako inflate (from Nodeca project)"};var Je=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Qe=Object.prototype.toString,$e=nt.Z_NO_FLUSH,tr=nt.Z_FINISH,er=nt.Z_OK,rr=nt.Z_STREAM_END,nr=nt.Z_NEED_DICT,ir=nt.Z_STREAM_ERROR,or=nt.Z_DATA_ERROR,ar=nt.Z_MEM_ERROR;function sr(t){this.options=$t({chunkSize:65536,windowBits:15,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new se,this.strm.avail_out=0;var r=Xe.inflateInit2(this.strm,e.windowBits);if(r!==er)throw new Error(rt[r]);if(this.header=new Je,Xe.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"===typeof e.dictionary?e.dictionary=ie(e.dictionary):"[object ArrayBuffer]"===Qe.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Xe.inflateSetDictionary(this.strm,e.dictionary))!==er))throw new Error(rt[r])}function ur(t,e){var r=new sr(e);if(r.push(t),r.err)throw r.msg||rt[r.err];return r.result}sr.prototype.push=function(t,e){var r,n,i,o=this.strm,a=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?tr:$e,"[object ArrayBuffer]"===Qe.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(a),o.next_out=0,o.avail_out=a),(r=Xe.inflate(o,n))===nr&&s&&((r=Xe.inflateSetDictionary(o,s))===er?r=Xe.inflate(o,n):r===or&&(r=nr));o.avail_in>0&&r===rr&&o.state.wrap>0&&0!==t[o.next_in];)Xe.inflateReset(o),r=Xe.inflate(o,n);switch(r){case ir:case or:case nr:case ar:return this.onEnd(r),this.ended=!0,!1}if(i=o.avail_out,o.next_out&&(0===o.avail_out||r===rr))if("string"===this.options.to){var u=ae(o.output,o.next_out),c=o.next_out-u,f=oe(o.output,u);o.next_out=c,o.avail_out=a-c,c&&o.output.set(o.output.subarray(u,u+c),0),this.onData(f)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(r!==er||0!==i){if(r===rr)return r=Xe.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},sr.prototype.onData=function(t){this.chunks.push(t)},sr.prototype.onEnd=function(t){t===er&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=te(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var cr={Inflate:sr,inflate:ur,inflateRaw:function(t,e){return(e=e||{}).raw=!0,ur(t,e)},ungzip:ur,constants:nt},fr=cr.inflate,hr=r(217),lr=r(74),dr=r.n(lr),pr=r(38),br=r(76),vr=r(20),mr=r(62);function yr(t,e){var r={},n=t.args?t.args.length:0;if(e.length>n){if(e.length!==n+1)throw new Error("provided too many arguments ${args}");r=e.pop()}return[e,r]}var gr=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"build",value:function(e,r,n){if("_inner"===e.name)throw new mr.a("the _inner name is reserved");var o=function t(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var u=yr(e,[].concat(a)),c=Object(d.a)(u,2),f=c[0],h=c[1];Object(pr.d)(e.accounts,h.accounts),wr.apply(void 0,[e].concat(a));var l=t.accounts(h.accounts);return void 0!==h.remainingAccounts&&l.push.apply(l,Object(vr.a)(h.remainingAccounts)),h.__private&&h.__private.logAccounts&&console.log("Outgoing account metas:",l),new i.TransactionInstruction({keys:l,programId:n,data:r(e.name,pr.b.apply(void 0,[e].concat(Object(vr.a)(f))))})};return o.accounts=function(r){return t.accountsArray(r,e.accounts)},o}},{key:"accountsArray",value:function(e,r){return r.map((function(r){var n=r.accounts;if(void 0!==n){var i=e[r.name];return t.accountsArray(i,n).flat()}var o=r;return{pubkey:Object(pr.c)(e[r.name]),isWritable:o.isMut,isSigner:o.isSigner}})).flat()}}]),t}();function wr(t){}var _r=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"build",value:function(t,e,r,n){return function(){var i=Object(l.a)(h.a.mark((function i(){var o,a,s,u,c,f,l,p,b,v=arguments;return h.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:for(o=v.length,a=new Array(o),s=0;s<o;s++)a[s]=v[s];return u=e.apply(void 0,a),c=yr(t,[].concat(a)),f=Object(d.a)(c,2),l=f[1],i.prev=3,i.next=6,n.send(u,l.signers,l.options);case 6:return p=i.sent,i.abrupt("return",p);case 10:if(i.prev=10,i.t0=i.catch(3),console.log("Translating error",i.t0),null!==(b=mr.b.parse(i.t0,r))){i.next=16;break}throw i.t0;case 16:throw b;case 17:case"end":return i.stop()}}),i,null,[[3,10]])})));return function(){return i.apply(this,arguments)}}()}}]),t}(),kr=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"build",value:function(t,e){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=yr(t,[].concat(n)),s=Object(d.a)(a,2),u=s[1],c=new i.Transaction;return void 0!==u.instructions&&c.add.apply(c,Object(vr.a)(u.instructions)),c.add(e.apply(void 0,n)),c}}}]),t}(),Mr=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"build",value:function(t,e,r,n){if(void 0!==t.state)return new Sr(t,r,n,e)}}]),t}(),Sr=function(){function t(e,r,n,s){Object(p.a)(this,t),this._idl=e,this._programId=r,this._address=Er(r),this._provider=null!==n&&void 0!==n?n:Object(o.b)(),this._coder=null!==s&&void 0!==s?s:new a.d(e),this._sub=null;var c=function(){var t={},o={},a={};return e.state.methods.forEach((function(c){var f=gr.build(c,(function(t,e){return s.instruction.encodeState(t,e)}),r);f.accounts=function(t){return function(t,e,r,n){if("new"===r.name){var o=Object(br.findProgramAddressSync)([],t),a=Object(d.a)(o,1)[0];return[{pubkey:e.wallet.publicKey,isWritable:!1,isSigner:!0},{pubkey:Er(t),isWritable:!0,isSigner:!1},{pubkey:a,isWritable:!1,isSigner:!1},{pubkey:i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t,isWritable:!1,isSigner:!1}]}return Object(pr.d)(r.accounts,n),[{pubkey:Er(t),isWritable:!0,isSigner:!1}]}(r,n,c,t).concat(gr.accountsArray(t,c.accounts))};var h=kr.build(c,f),l=_r.build(c,h,Object(pr.a)(e),n),p=u()(c.name);t[p]=f,o[p]=h,a[p]=l})),[t,o,a]}(),f=Object(d.a)(c,3),h=f[0],l=f[1],b=f[2];this.instruction=h,this.transaction=l,this.rpc=b}return Object(b.a)(t,[{key:"programId",get:function(){return this._programId}},{key:"provider",get:function(){return this._provider}},{key:"coder",get:function(){return this._coder}},{key:"fetch",value:function(){var t=Object(l.a)(h.a.mark((function t(){var e,r;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.address(),t.next=3,this.provider.connection.getAccountInfo(e);case 3:if(null!==(r=t.sent)){t.next=6;break}throw new Error("Account does not exist ".concat(e.toString()));case 6:return t.next=8,Object(a.e)(this._idl.state.struct.name);case 8:if(!t.sent.compare(r.data.slice(0,8))){t.next=11;break}throw new Error("Invalid account discriminator");
2case 11:return t.abrupt("return",this.coder.state.decode(r.data));case 12:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"address",value:function(){return this._address}},{key:"subscribe",value:function(t){var e=this;if(null!==this._sub)return this._sub.ee;var r=new dr.a,n=this.provider.connection.onAccountChange(this.address(),(function(t){var n=e.coder.state.decode(t.data);r.emit("change",n)}),t);return this._sub={ee:r,listener:n},r}},{key:"unsubscribe",value:function(){var t=this;null!==this._sub&&this.provider.connection.removeAccountChangeListener(this._sub.listener).then(Object(l.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t._sub=null;case 1:case"end":return e.stop()}}),e)})))).catch(console.error)}}]),t}();function Er(t){var e=Object(br.findProgramAddressSync)([],t),r=Object(d.a)(e,1)[0];return Object(br.createWithSeedSync)(r,"unversioned",t)}var xr=r(161),Ar=r(92),Or="Program log: ".length,jr=function(){function t(e,r,n){Object(p.a)(this,t),this._programId=e,this._provider=r,this._eventParser=new Rr(e,n),this._eventCallbacks=new Map,this._eventListeners=new Map,this._listenerIdCount=0}return Object(b.a)(t,[{key:"addEventListener",value:function(t,e){var r=this,n=this._listenerIdCount;return this._listenerIdCount+=1,t in this._eventCallbacks||this._eventListeners.set(t,[]),this._eventListeners.set(t,this._eventListeners.get(t).concat(n)),this._eventCallbacks.set(n,[t,e]),void 0!==this._onLogsSubscriptionId||(this._onLogsSubscriptionId=this._provider.connection.onLogs(this._programId,(function(t,e){t.err?console.error(t):r._eventParser.parseLogs(t.logs,(function(t){var n=r._eventListeners.get(t.name);n&&n.forEach((function(n){var i=r._eventCallbacks.get(n);(0,Object(d.a)(i,2)[1])(t.data,e.slot)}))}))}))),n}},{key:"removeEventListener",value:function(){var t=Object(l.a)(h.a.mark((function t(e){var r,n,i,o;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this._eventCallbacks.get(e)){t.next=3;break}throw new Error("Event listener ".concat(e," doesn't exist!"));case 3:if(n=Object(d.a)(r,1),i=n[0],o=this._eventListeners.get(i)){t.next=7;break}throw new Error("Event listeners don't exist for ".concat(i,"!"));case 7:if(this._eventCallbacks.delete(e),0===(o=o.filter((function(t){return t!==e}))).length&&this._eventListeners.delete(i),0!=this._eventCallbacks.size){t.next=15;break}return Ar.ok(0===this._eventListeners.size),t.next=14,this._provider.connection.removeOnLogsListener(this._onLogsSubscriptionId);case 14:this._onLogsSubscriptionId=void 0;case 15:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),Rr=function(){function t(e,r){Object(p.a)(this,t),this.coder=r,this.programId=e}return Object(b.a)(t,[{key:"parseLogs",value:function(t,e){for(var r=new Pr(t),n=new Ir(r.next()),i=r.next();null!==i;){var o=this.handleLog(n,i),a=Object(d.a)(o,3),s=a[0],u=a[1],c=a[2];s&&e(s),u&&n.push(u),c&&n.pop(),i=r.next()}}},{key:"handleLog",value:function(t,e){return t.stack.length>0&&t.program()===this.programId.toString()?this.handleProgramLog(e):[null].concat(Object(vr.a)(this.handleSystemLog(e)))}},{key:"handleProgramLog",value:function(t){if(t.startsWith("Program log:")){var e=t.slice(Or);return[this.coder.events.decode(e),null,!1]}return[null].concat(Object(vr.a)(this.handleSystemLog(t)))}},{key:"handleSystemLog",value:function(t){var e=t.split(":")[0];return null!==e.match(/^Program (.*) success/g)?[null,!0]:e.startsWith("Program ".concat(this.programId.toString()," invoke"))?[this.programId.toString(),!1]:e.includes("invoke")?["cpi",!1]:[null,!1]}}]),t}(),Ir=function(){function t(e){Object(p.a)(this,t);var r=/^Program (.*) invoke.*$/g.exec(e)[1];this.stack=[r]}return Object(b.a)(t,[{key:"program",value:function(){return Ar.ok(this.stack.length>0),this.stack[this.stack.length-1]}},{key:"push",value:function(t){this.stack.push(t)}},{key:"pop",value:function(){Ar.ok(this.stack.length>0),this.stack.pop()}}]),t}(),Pr=function(){function t(e){Object(p.a)(this,t),this.logs=e}return Object(b.a)(t,[{key:"next",value:function(){if(0===this.logs.length)return null;var t=this.logs[0];return this.logs=this.logs.slice(1),t}}]),t}(),Tr=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"build",value:function(t,e,r,n,i,o,a){return function(){var s=Object(l.a)(h.a.mark((function s(){var u,c,f,l,p,b,v,m,y,g,w,_=arguments;return h.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:for(u=_.length,c=new Array(u),f=0;f<u;f++)c[f]=_[f];
2return l=e.apply(void 0,c),p=yr(t,[].concat(c)),b=Object(d.a)(p,2),v=b[1],m=void 0,s.prev=4,s.next=7,n.simulate(l,v.signers,v.options);case 7:m=s.sent,s.next=17;break;case 10:if(s.prev=10,s.t0=s.catch(4),console.log("Translating error",s.t0),null!==(y=mr.b.parse(s.t0,r))){s.next=16;break}throw s.t0;case 16:throw y;case 17:if(void 0!==m){s.next=19;break}throw new Error("Unable to simulate transaction");case 19:if(!m.value.err){s.next=21;break}throw new Error("Simulate error: ".concat(m.value.err.toString()));case 21:if(g=m.value.logs){s.next=24;break}throw new Error("Simulated logs not found");case 24:return w=[],a.events&&new Rr(o,i).parseLogs(g,(function(t){w.push(t)})),s.abrupt("return",{events:w,raw:g});case 27:case"end":return s.stop()}}),s,null,[[4,10]])})));return function(){return s.apply(this,arguments)}}()}}]),t}(),Cr=function(){function t(){Object(p.a)(this,t)}return Object(b.a)(t,null,[{key:"build",value:function(t,e,r,n){var i={},o={},a={},s={},c=Object(pr.a)(t),f=Mr.build(t,e,r,n);t.instructions.forEach((function(f){var h=gr.build(f,(function(t,r){return e.instruction.encode(t,r)}),r),l=kr.build(f,h),d=_r.build(f,l,c,n),p=Tr.build(f,l,c,n,e,r,t),b=u()(f.name);o[b]=h,a[b]=l,i[b]=d,s[b]=p}));var h=t.accounts?xr.a.build(t,e,r,n):{};return[i,o,a,h,s,f]}}]),t}();r(245);function Br(t){return("undefined"===typeof TextDecoder?new(r(188).TextDecoder)("utf-8"):new TextDecoder("utf-8")).decode(t)}function Lr(t){return("undefined"===typeof TextEncoder?new(r(188).TextEncoder)("utf-8"):new TextEncoder).encode(t)}r(23);r(246);var Nr=function(){function t(e,r,n){Object(p.a)(this,t),r=Object(pr.c)(r),this._idl=e,this._programId=r,this._provider=null!==n&&void 0!==n?n:Object(o.b)(),this._coder=new a.d(e),this._events=new jr(this._programId,this._provider,this._coder);var i=Cr.build(e,this._coder,r,this._provider),s=Object(d.a)(i,6),u=s[0],c=s[1],f=s[2],h=s[3],l=s[4],b=s[5];this.rpc=u,this.instruction=c,this.transaction=f,this.account=h,this.simulate=l,this.state=b}return Object(b.a)(t,[{key:"programId",get:function(){return this._programId}},{key:"idl",get:function(){return this._idl}},{key:"coder",get:function(){return this._coder}},{key:"provider",get:function(){return this._provider}},{key:"addEventListener",value:function(t,e){return this._events.addEventListener(t,e)}},{key:"removeEventListener",value:function(){var t=Object(l.a)(h.a.mark((function t(e){return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._events.removeEventListener(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}],[{key:"at",value:function(){var e=Object(l.a)(h.a.mark((function e(r,n){var i,o;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Object(pr.c)(r),e.next=3,t.fetchIdl(i,n);case 3:return o=e.sent,e.abrupt("return",new t(o,i,n));case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"fetchIdl",value:function(){var t=Object(l.a)(h.a.mark((function t(e,r){var i,a,s,u,c;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=null!==r&&void 0!==r?r:Object(o.b)(),i=Object(pr.c)(e),t.next=4,Object(hr.b)(i);case 4:return a=t.sent,t.next=7,r.connection.getAccountInfo(a);case 7:return s=t.sent,u=Object(hr.a)(s.data.slice(8)),c=fr(u.data),t.abrupt("return",JSON.parse(n.decode(c)));case 11:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()}]),t}(),Dr=r(174),Ur=!1;new Proxy({},{get:function(t,e){if(!Dr.a){var n=r(187),o=r(27);if(!Ur){for(var a=r(407),s=o.cwd();!n.existsSync(a.join(s,"Anchor.toml"));){var f=a.dirname(s);f===s&&(s=void 0),s=f}if(void 0===s)throw new Error("Could not find workspace root.");var h="".concat(s,"/target/idl");if(!n.existsSync(h))throw new Error("".concat(h,' doesn\'t exist. Did you use "anchor build"?'));var l=new Map;n.readdirSync(h).forEach((function(e){var r="".concat(h,"/").concat(e),o=n.readFileSync(r),a=JSON.parse(o);l.set(a.name,a);var s=u()(a.name,{pascalCase:!0});a.metadata&&a.metadata.address&&(t[s]=new Nr(a,new i.PublicKey(a.metadata.address)))}));var d=c.parse(n.readFileSync(a.join(s,"Anchor.toml"),"utf-8")),p=d.provider.cluster;
2d.programs&&d.programs[p]&&function(t,e,n){Object.keys(e).forEach((function(o){var a=u()(o,{pascalCase:!0}),s=e[o],c=new i.PublicKey("string"===typeof s?s:s.address),f=n.get(o);"string"!==typeof s&&s.idl&&(f=JSON.parse(r(187).readFileSync(s.idl,"utf-8"))),t[a]=new Nr(f,c)}))}(t,d.programs[p],l),Ur=!0}return t[e]}console.log("Workspaces aren't available in the browser")}}),r(51);r(247),new i.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),new i.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");r(160)},,function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(2),i=r(67);function o(t,e){return n.useMemo((function(){return null==t&&null==e?null:function(r){Object(i.a)(t,r),Object(i.a)(e,r)}}),[t,e])}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"d",(function(){return a})),r.d(e,"c",(function(){return s}));var n=r(16);function i(t){var e=new Map;return t.errors&&t.errors.forEach((function(t){var r,n=null!==(r=t.msg)&&void 0!==r?r:t.name;e.set(t.code,n)})),e}function o(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(t.args.length!=r.length)throw new Error("Invalid argument length");var i={},o=0;return t.args.forEach((function(t){i[t.name]=r[o],o+=1})),i}function a(t,e){t.forEach((function(t){if(void 0!==t.accounts)a(t.accounts,e[t.name]);else if(void 0===e[t.name])throw new Error("Invalid arguments: ".concat(t.name," not provided."))}))}function s(t){return"string"===typeof t?new n.PublicKey(t):t}},function(t,e,r){var n=r(181);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},function(t,e,r){var n=r(231),i=r(232),o=r(233);t.exports=function(t){var e=i();return function(){var r,i=n(t);if(e){var a=n(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return o(this,r)}}},function(t,e,r){"use strict";function n(t){return t&&t.ownerDocument||document}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.r(e),r.d(e,"serializeError",(function(){return c})),r.d(e,"deserializeError",(function(){return u})),r.d(e,"createCustomErrorClass",(function(){return s})),r.d(e,"addCustomErrorDeserializer",(function(){return a})),r.d(e,"AccountNameRequiredError",(function(){return h})),r.d(e,"AccountNotSupported",(function(){return l})),r.d(e,"AmountRequired",(function(){return d})),r.d(e,"BluetoothRequired",(function(){return p})),r.d(e,"BtcUnmatchedApp",(function(){return b})),r.d(e,"CantOpenDevice",(function(){return v})),r.d(e,"CashAddrNotSupported",(function(){return m})),r.d(e,"CurrencyNotSupported",(function(){return y})),r.d(e,"DeviceAppVerifyNotSupported",(function(){return g})),r.d(e,"DeviceGenuineSocketEarlyClose",(function(){return w})),r.d(e,"DeviceNotGenuineError",(function(){return _})),r.d(e,"DeviceOnDashboardExpected",(function(){return k})),r.d(e,"DeviceOnDashboardUnexpected",(function(){return M})),r.d(e,"DeviceInOSUExpected",(function(){return S})),r.d(e,"DeviceHalted",(function(){return E})),r.d(e,"DeviceNameInvalid",(function(){return x})),r.d(e,"DeviceSocketFail",(function(){return A})),r.d(e,"DeviceSocketNoBulkStatus",(function(){return O})),r.d(e,"DisconnectedDevice",(function(){return j})),r.d(e,"DisconnectedDeviceDuringOperation",(function(){return R})),r.d(e,"EnpointConfigError",(function(){return I})),r.d(e,"EthAppPleaseEnableContractData",(function(){return P})),r.d(e,"FeeEstimationFailed",(function(){return T})),r.d(e,"FirmwareNotRecognized",(function(){return C})),r.d(e,"HardResetFail",(function(){return B})),r.d(e,"InvalidXRPTag",(function(){return L})),r.d(e,"InvalidAddress",(function(){return N})),r.d(e,"InvalidAddressBecauseDestinationIsAlsoSource",(function(){return D})),r.d(e,"LatestMCUInstalledError",(function(){return U})),r.d(e,"UnknownMCU",(function(){return z})),r.d(e,"LedgerAPIError",(function(){return W})),r.d(e,"LedgerAPIErrorWithMessage",(function(){return q})),r.d(e,"LedgerAPINotAvailable",(function(){return F})),r.d(e,"ManagerAppAlreadyInstalledError",(function(){return K})),r.d(e,"ManagerAppRelyOnBTCError",(function(){return H})),r.d(e,"ManagerAppDepInstallRequired",(function(){return Y})),r.d(e,"ManagerAppDepUninstallRequired",(function(){return V})),r.d(e,"ManagerDeviceLockedError",(function(){return Z})),r.d(e,"ManagerFirmwareNotEnoughSpaceError",(function(){return G})),r.d(e,"ManagerNotEnoughSpaceError",(function(){return X})),r.d(e,"ManagerUninstallBTCDep",(function(){return J})),r.d(e,"NetworkDown",(function(){return Q})),r.d(e,"NoAddressesFound",(function(){return $})),r.d(e,"NotEnoughBalance",(function(){return tt})),r.d(e,"NotEnoughBalanceToDelegate",(function(){return et})),r.d(e,"NotEnoughBalanceInParentAccount",(function(){return rt})),r.d(e,"NotEnoughSpendableBalance",(function(){return nt})),r.d(e,"NotEnoughBalanceBecauseDestinationNotCreated",(function(){return it})),r.d(e,"NoAccessToCamera",(function(){return ot})),r.d(e,"NotEnoughGas",(function(){return at})),r.d(e,"NotSupportedLegacyAddress",(function(){return st})),r.d(e,"GasLessThanEstimate",(function(){return ut})),r.d(e,"PasswordsDontMatchError",(function(){return ct})),r.d(e,"PasswordIncorrectError",(function(){return ft})),r.d(e,"RecommendSubAccountsToEmpty",(function(){return ht})),r.d(e,"RecommendUndelegation",(function(){return lt})),r.d(e,"TimeoutTagged",(function(){return dt})),r.d(e,"UnexpectedBootloader",(function(){return pt})),r.d(e,"MCUNotGenuineToDashboard",(function(){return bt})),r.d(e,"RecipientRequired",(function(){return vt})),r.d(e,"UnavailableTezosOriginatedAccountReceive",(function(){return mt})),r.d(e,"UnavailableTezosOriginatedAccountSend",(function(){return yt})),r.d(e,"UpdateFetchFileFail",(function(){return gt})),r.d(e,"UpdateIncorrectHash",(function(){return wt})),r.d(e,"UpdateIncorrectSig",(function(){return _t})),r.d(e,"UpdateYourApp",(function(){return kt})),r.d(e,"UserRefusedDeviceNameChange",(function(){return Mt})),r.d(e,"UserRefusedAddress",(function(){return St})),r.d(e,"UserRefusedFirmwareUpdate",(function(){return Et})),r.d(e,"UserRefusedAllowManager",(function(){return xt})),r.d(e,"UserRefusedOnDevice",(function(){return At})),r.d(e,"TransportOpenUserCancelled",(function(){return Ot})),r.d(e,"TransportInterfaceNotAvailable",(function(){return jt})),r.d(e,"TransportRaceCondition",(function(){return Rt})),r.d(e,"TransportWebUSBGestureRequired",(function(){return It})),r.d(e,"DeviceShouldStayInApp",(function(){return Pt})),r.d(e,"WebsocketConnectionError",(function(){return Tt})),r.d(e,"WebsocketConnectionFailed",(function(){return Ct})),r.d(e,"WrongDeviceForAccount",(function(){return Bt})),r.d(e,"WrongAppForCurrency",(function(){return Lt})),r.d(e,"ETHAddressNonEIP",(function(){return Nt})),r.d(e,"CantScanQRCode",(function(){return Dt})),r.d(e,"FeeNotLoaded",(function(){return Ut})),r.d(e,"FeeRequired",(function(){return zt})),r.d(e,"FeeTooHigh",(function(){return Wt})),r.d(e,"SyncError",(function(){return qt})),r.d(e,"PairingFailed",(function(){return Ft})),r.d(e,"GenuineCheckFailed",(function(){return Kt})),r.d(e,"LedgerAPI4xx",(function(){return Ht})),r.d(e,"LedgerAPI5xx",(function(){return Yt})),r.d(e,"FirmwareOrAppUpdateRequired",(function(){return Vt})),r.d(e,"NoDBPathGiven",(function(){return Zt})),r.d(e,"DBWrongPassword",(function(){return Gt})),r.d(e,"DBNotReset",(function(){return Xt})),r.d(e,"TransportError",(function(){return Jt})),r.d(e,"StatusCodes",(function(){return Qt})),r.d(e,"getAltStatusMessage",(function(){return $t})),r.d(e,"TransportStatusError",(function(){return te}));var n=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i={},o={},a=function(t,e){o[t]=e},s=function(t){var e=function(e,r){Object.assign(this,r),this.name=t,this.message=e||t,this.stack=(new Error).stack};return e.prototype=new Error,i[t]=e,e},u=function t(e){if("object"===typeof e&&e){try{var r=JSON.parse(e.message);r.message&&r.name&&(e=r)}catch(h){}var n=void 0;if("string"===typeof e.name){var a=e.name,u=o[a];if(u)n=u(e);else{var c="Error"===a?Error:i[a];c||(console.warn("deserializing an unknown class '"+a+"'"),c=s(a)),n=Object.create(c.prototype);try{for(var f in e)e.hasOwnProperty(f)&&(n[f]=e[f])}catch(h){}}}else n=new Error(e.message);return!n.stack&&Error.captureStackTrace&&Error.captureStackTrace(n,t),n}return new Error(String(e))},c=function(t){return t?"object"===typeof t?f(t,[]):"function"===typeof t?"[Function: "+(t.name||"anonymous")+"]":t:t};function f(t,e){var r,i,o={};e.push(t);try{for(var a=n(Object.keys(t)),s=a.next();!s.done;s=a.next()){var u=s.value,c=t[u];"function"!==typeof c&&(c&&"object"===typeof c?-1!==e.indexOf(t[u])?o[u]="[Circular]":o[u]=f(t[u],e.slice(0)):o[u]=c)}}catch(h){r={error:h}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return"string"===typeof t.name&&(o.name=t.name),"string"===typeof t.message&&(o.message=t.message),"string"===typeof t.stack&&(o.stack=t.stack),o}var h=s("AccountNameRequired"),l=s("AccountNotSupported"),d=s("AmountRequired"),p=s("BluetoothRequired"),b=s("BtcUnmatchedApp"),v=s("CantOpenDevice"),m=s("CashAddrNotSupported"),y=s("CurrencyNotSupported"),g=s("DeviceAppVerifyNotSupported"),w=s("DeviceGenuineSocketEarlyClose"),_=s("DeviceNotGenuine"),k=s("DeviceOnDashboardExpected"),M=s("DeviceOnDashboardUnexpected"),S=s("DeviceInOSUExpected"),E=s("DeviceHalted"),x=s("DeviceNameInvalid"),A=s("DeviceSocketFail"),O=s("DeviceSocketNoBulkStatus"),j=s("DisconnectedDevice"),R=s("DisconnectedDeviceDuringOperation"),I=s("EnpointConfig"),P=s("EthAppPleaseEnableContractData"),T=s("FeeEstimationFailed"),C=s("FirmwareNotRecognized"),B=s("HardResetFail"),L=s("InvalidXRPTag"),N=s("InvalidAddress"),D=s("InvalidAddressBecauseDestinationIsAlsoSource"),U=s("LatestMCUInstalledError"),z=s("UnknownMCU"),W=s("LedgerAPIError"),q=s("LedgerAPIErrorWithMessage"),F=s("LedgerAPINotAvailable"),K=s("ManagerAppAlreadyInstalled"),H=s("ManagerAppRelyOnBTC"),Y=s("ManagerAppDepInstallRequired"),V=s("ManagerAppDepUninstallRequired"),Z=s("ManagerDeviceLocked"),G=s("ManagerFirmwareNotEnoughSpace"),X=s("ManagerNotEnoughSpace"),J=s("ManagerUninstallBTCDep"),Q=s("NetworkDown"),$=s("NoAddressesFound"),tt=s("NotEnoughBalance"),et=s("NotEnoughBalanceToDelegate"),rt=s("NotEnoughBalanceInParentAccount"),nt=s("NotEnoughSpendableBalance"),it=s("NotEnoughBalanceBecauseDestinationNotCreated"),ot=s("NoAccessToCamera"),at=s("NotEnoughGas"),st=s("NotSupportedLegacyAddress"),ut=s("GasLessThanEstimate"),ct=s("PasswordsDontMatch"),ft=s("PasswordIncorrect"),ht=s("RecommendSubAccountsToEmpty"),lt=s("RecommendUndelegation"),dt=s("TimeoutTagged"),pt=s("UnexpectedBootloader"),bt=s("MCUNotGenuineToDashboard"),vt=s("RecipientRequired"),mt=s("UnavailableTezosOriginatedAccountReceive"),yt=s("UnavailableTezosOriginatedAccountSend"),gt=s("UpdateFetchFileFail"),wt=s("UpdateIncorrectHash"),_t=s("UpdateIncorrectSig"),kt=s("UpdateYourApp"),Mt=s("UserRefusedDeviceNameChange"),St=s("UserRefusedAddress"),Et=s("UserRefusedFirmwareUpdate"),xt=s("UserRefusedAllowManager"),At=s("UserRefusedOnDevice"),Ot=s("TransportOpenUserCancelled"),jt=s("TransportInterfaceNotAvailable"),Rt=s("TransportRaceCondition"),It=s("TransportWebUSBGestureRequired"),Pt=s("DeviceShouldStayInApp"),Tt=s("WebsocketConnectionError"),Ct=s("WebsocketConnectionFailed"),Bt=s("WrongDeviceForAccount"),Lt=s("WrongAppForCurrency"),Nt=s("ETHAddressNonEIP"),Dt=s("CantScanQRCode"),Ut=s("FeeNotLoaded"),zt=s("FeeRequired"),Wt=s("FeeTooHigh"),qt=s("SyncError"),Ft=s("PairingFailed"),Kt=s("GenuineCheckFailed"),Ht=s("LedgerAPI4xx"),Yt=s("LedgerAPI5xx"),Vt=s("FirmwareOrAppUpdateRequired"),Zt=s("NoDBPathGiven"),Gt
2=s("DBWrongPassword"),Xt=s("DBNotReset");function Jt(t,e){this.name="TransportError",this.message=t,this.stack=(new Error).stack,this.id=e}Jt.prototype=new Error,a("TransportError",(function(t){return new Jt(t.message,t.id)}));var Qt={PIN_REMAINING_ATTEMPTS:25536,INCORRECT_LENGTH:26368,MISSING_CRITICAL_PARAMETER:26624,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,SECURITY_STATUS_NOT_SATISFIED:27010,CONDITIONS_OF_USE_NOT_SATISFIED:27013,INCORRECT_DATA:27264,NOT_ENOUGH_MEMORY_SPACE:27268,REFERENCED_DATA_NOT_FOUND:27272,FILE_ALREADY_EXISTS:27273,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,CLA_NOT_SUPPORTED:28160,TECHNICAL_PROBLEM:28416,OK:36864,MEMORY_PROBLEM:37440,NO_EF_SELECTED:37888,INVALID_OFFSET:37890,FILE_NOT_FOUND:37892,INCONSISTENT_FILE:37896,ALGORITHM_NOT_SUPPORTED:38020,INVALID_KCV:38021,CODE_NOT_INITIALIZED:38914,ACCESS_CONDITION_NOT_FULFILLED:38916,CONTRADICTION_SECRET_CODE_STATUS:38920,CONTRADICTION_INVALIDATION:38928,CODE_BLOCKED:38976,MAX_VALUE_REACHED:38992,GP_AUTH_FAILED:25344,LICENSING:28482,HALTED:28586};function $t(t){switch(t){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received"}if(28416<=t&&t<=28671)return"Internal error, please report"}function te(t){this.name="TransportStatusError";var e=Object.keys(Qt).find((function(e){return Qt[e]===t}))||"UNKNOWN_ERROR",r=$t(t)||e,n=t.toString(16);this.message="Ledger device: "+r+" (0x"+n+")",this.stack=(new Error).stack,this.statusCode=t,this.statusText=e}te.prototype=new Error,a("TransportStatusError",(function(t){return new te(t.statusCode)}))},function(t,e,r){"use strict";r.d(e,"d",(function(){return h}));var n=r(9),i=r(10),o=r(158),a=r(107),s=r(159),u=r(125),c=r(126),f=r(84);r.d(e,"c",(function(){return f.a})),r.d(e,"b",(function(){return a.c})),r.d(e,"a",(function(){return a.a})),r.d(e,"e",(function(){return c.b}));var h=function(){function t(e){Object(n.a)(this,t),this.instruction=new o.a(e),this.accounts=new a.b(e),this.types=new s.a(e),this.events=new u.a(e),e.state&&(this.state=new c.a(e))}return Object(i.a)(t,[{key:"sighash",value:function(t,e){return Object(f.b)(t,e)}}]),t}()},function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return c})),r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return h})),r.d(e,"e",(function(){return l}));var n=r(345);function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),r)}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(function(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(e);return r&&1===r[0].length&&(r=r.map((function(t){return t+t}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(t,e){return e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}(t));var e=t.indexOf("("),r=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(Object(n.a)(3,t));var i=t.substring(e+1,t.length-1).split(",");return{type:r,values:i=i.map((function(t){return parseFloat(t)}))}}function a(t){var e=t.type,r=t.values;return-1!==e.indexOf("rgb")?r=r.map((function(t,e){return e<3?parseInt(t,10):t})):-1!==e.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(e,"(").concat(r.join(", "),")")}function s(t,e){var r=u(t),n=u(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(t){var e="hsl"===(t=o(t)).type?o(function(t){var e=(t=o(t)).values,r=e[0],n=e[1]/100,i=e[2]/100,s=n*Math.min(i,1-i),u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+r/30)%12;return i-s*Math.max(Math.min(e-3,9-e,1),-1)},c="rgb",f=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===t.type&&(c+="a",f.push(e[3])),a({type:c,values:f})}(t)).values:t.values;return e=e.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}
vendor: 5,525 bytes, line 2
2)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(t)>.5?h(t,e):l(t,e)}function f(t,e){return t=o(t),e=i(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),t.values[3]=e,a(t)}function h(t,e){if(t=o(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb"))for(var r=0;r<3;r+=1)t.values[r]*=1-e;return a(t)}function l(t,e){if(t=o(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;return a(t)}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(360).Buffer}catch(O){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u<s;u++){var c=t.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function f(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(t,f,f+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var h=1;for(u=c(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){f(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(O){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var l=["","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"],d=[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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 7,850 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],f=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var b=h.modrn(f).toString(t);r=(h=h.idivn(f)).isZero()?b+r:l[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function b(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var v=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 10,269 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;
vendor: 6,903 bytes, line 2
2for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function y(t,e,r){return m(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(v=b),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):r<63?b(this,t,e):r<1024?m(this,t,e):y(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 14,361 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0===(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0===(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(k,_),k.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},i(M,_),i(S,_),i(E,_),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new M;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return w[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new A(t)},i(A,x),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(69)(t))},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}
2));var n=r(2),i="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;function o(t){var e=n.useRef(t);return i((function(){e.current=t})),n.useCallback((function(){return e.current.apply(void 0,arguments)}),[])}},function(t,e,r){"use strict";var n=function(t,e){if("string"!==typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);var r;return 0===(t=Array.isArray(t)?t.map((function(t){return t.trim()})).filter((function(t){return t.length})).join("-"):t.trim()).length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=function(t){for(var e=!1,r=!1,n=!1,i=0;i<t.length;i++){var o=t[i];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,i)+"-"+t.slice(i),e=!1,n=r,r=!0,i++):r&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,i-1)+"-"+t.slice(i-1),n=r,r=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=r,r=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t}(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(t,e){return e.toUpperCase()})).replace(/\d+(\w|$)/g,(function(t){return t.toUpperCase()})),r=t,e.pascalCase?r.charAt(0).toUpperCase()+r.slice(1):r)};t.exports=n,t.exports.default=n},function(t,e,r){var n=r(34),i=r(36),o=r(145),a=r(144),s=a.MAX_LENGTH,u=a.MAX_SAFE_INTEGER,c=r(98),f=c.re,h=c.t,l=r(146),d=r(189).compareIdentifiers,p=function(){"use strict";function t(e,r){if(n(this,t),r=l(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>s)throw new TypeError("version is longer than ".concat(s," characters"));o("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var i=e.trim().match(r.loose?f[h.LOOSE]:f[h.FULL]);if(!i)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(e>=0&&e<u)return e}return t})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}return i(t,[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(e){if(o("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if("string"===typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}},{key:"compareMain",value:function(e){return e instanceof t||(e=new t(e,this.options)),d(this.major,e.major)||d(this.minor,e.minor)||d(this.patch,e.patch)}},{key:"comparePre",value:function(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var r=0;do{var n=this.prerelease[r],i=e.prerelease[r];if(o("prerelease compare",r,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return d(n,i)}while(++r)}},{key:"compareBuild",value:function(e){e instanceof t||(e=new t(e,this.options));var r=0;do{var n=this.build[r],i=e.build[r];if(o("prerelease compare",r,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return d(n,i)}while(++r)}},{key:"inc",value:function(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"===typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: ".concat(t))}return this.format(),this.raw=this.version,this}}]),t}();t.exports=p},function(t,e,r){!function(t){"use strict";var e=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e<t.length;e++)r[e]=t[e];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=e(),s=e([1]),u=e([56129,1]),c=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),f=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),h=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),l=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(t,e,r,n){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=n>>24&255,t[e+5]=n>>16&255,t[e+6]=n>>8&255,t[e+7]=255&n}function b(t,e,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=t[e+o]^r[n+o];return(1&a-1>>>8)-1}function v(t,e,r,n){return b(t,e,r,n,16)}function m(t,e,r,n){return b(t,e,r,n,32)}function y(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,l=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,g=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,k=a,M=s,S=u,E=c,x=f,A=h,O=l,j=d,R=p,I=b,P=v,T=m,C=y,B=g,L=w,N=0;N<20;
vendor: 15,538 bytes, line 2
2N+=2)_^=(i=(T^=(i=(j^=(i=(E^=(i=_+T|0)<<7|i>>>25)+_|0)<<9|i>>>23)+E|0)<<13|i>>>19)+j|0)<<18|i>>>14,x^=(i=(k^=(i=(C^=(i=(R^=(i=x+k|0)<<7|i>>>25)+x|0)<<9|i>>>23)+R|0)<<13|i>>>19)+C|0)<<18|i>>>14,I^=(i=(A^=(i=(M^=(i=(B^=(i=I+A|0)<<7|i>>>25)+I|0)<<9|i>>>23)+B|0)<<13|i>>>19)+M|0)<<18|i>>>14,L^=(i=(P^=(i=(O^=(i=(S^=(i=L+P|0)<<7|i>>>25)+L|0)<<9|i>>>23)+S|0)<<13|i>>>19)+O|0)<<18|i>>>14,_^=(i=(S^=(i=(M^=(i=(k^=(i=_+S|0)<<7|i>>>25)+_|0)<<9|i>>>23)+k|0)<<13|i>>>19)+M|0)<<18|i>>>14,x^=(i=(E^=(i=(O^=(i=(A^=(i=x+E|0)<<7|i>>>25)+x|0)<<9|i>>>23)+A|0)<<13|i>>>19)+O|0)<<18|i>>>14,I^=(i=(R^=(i=(j^=(i=(P^=(i=I+R|0)<<7|i>>>25)+I|0)<<9|i>>>23)+P|0)<<13|i>>>19)+j|0)<<18|i>>>14,L^=(i=(B^=(i=(C^=(i=(T^=(i=L+B|0)<<7|i>>>25)+L|0)<<9|i>>>23)+T|0)<<13|i>>>19)+C|0)<<18|i>>>14;_=_+o|0,k=k+a|0,M=M+s|0,S=S+u|0,E=E+c|0,x=x+f|0,A=A+h|0,O=O+l|0,j=j+d|0,R=R+p|0,I=I+b|0,P=P+v|0,T=T+m|0,C=C+y|0,B=B+g|0,L=L+w|0,t[0]=_>>>0&255,t[1]=_>>>8&255,t[2]=_>>>16&255,t[3]=_>>>24&255,t[4]=k>>>0&255,t[5]=k>>>8&255,t[6]=k>>>16&255,t[7]=k>>>24&255,t[8]=M>>>0&255,t[9]=M>>>8&255,t[10]=M>>>16&255,t[11]=M>>>24&255,t[12]=S>>>0&255,t[13]=S>>>8&255,t[14]=S>>>16&255,t[15]=S>>>24&255,t[16]=E>>>0&255,t[17]=E>>>8&255,t[18]=E>>>16&255,t[19]=E>>>24&255,t[20]=x>>>0&255,t[21]=x>>>8&255,t[22]=x>>>16&255,t[23]=x>>>24&255,t[24]=A>>>0&255,t[25]=A>>>8&255,t[26]=A>>>16&255,t[27]=A>>>24&255,t[28]=O>>>0&255,t[29]=O>>>8&255,t[30]=O>>>16&255,t[31]=O>>>24&255,t[32]=j>>>0&255,t[33]=j>>>8&255,t[34]=j>>>16&255,t[35]=j>>>24&255,t[36]=R>>>0&255,t[37]=R>>>8&255,t[38]=R>>>16&255,t[39]=R>>>24&255,t[40]=I>>>0&255,t[41]=I>>>8&255,t[42]=I>>>16&255,t[43]=I>>>24&255,t[44]=P>>>0&255,t[45]=P>>>8&255,t[46]=P>>>16&255,t[47]=P>>>24&255,t[48]=T>>>0&255,t[49]=T>>>8&255,t[50]=T>>>16&255,t[51]=T>>>24&255,t[52]=C>>>0&255,t[53]=C>>>8&255,t[54]=C>>>16&255,t[55]=C>>>24&255,t[56]=B>>>0&255,t[57]=B>>>8&255,t[58]=B>>>16&255,t[59]=B>>>24&255,t[60]=L>>>0&255,t[61]=L>>>8&255,t[62]=L>>>16&255,t[63]=L>>>24&255}(t,e,r,n)}function g(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,l=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,g=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(m^=(i=(d^=(i=(c^=(i=o+m|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+d|0)<<18|i>>>14,f^=(i=(a^=(i=(y^=(i=(p^=(i=f+a|0)<<7|i>>>25)+f|0)<<9|i>>>23)+p|0)<<13|i>>>19)+y|0)<<18|i>>>14,b^=(i=(h^=(i=(s^=(i=(g^=(i=b+h|0)<<7|i>>>25)+b|0)<<9|i>>>23)+g|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(v^=(i=(l^=(i=(u^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+l|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,f^=(i=(c^=(i=(l^=(i=(h^=(i=f+c|0)<<7|i>>>25)+f|0)<<9|i>>>23)+h|0)<<13|i>>>19)+l|0)<<18|i>>>14,b^=(i=(p^=(i=(d^=(i=(v^=(i=b+p|0)<<7|i>>>25)+b|0)<<9|i>>>23)+v|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(g^=(i=(y^=(i=(m^=(i=w+g|0)<<7|i>>>25)+w|0)<<9|i>>>23)+m|0)<<13|i>>>19)+y|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=f>>>0&255,t[5]=f>>>8&255,t[6]=f>>>16&255,t[7]=f>>>24&255,t[8]=b>>>0&255,t[9]=b>>>8&255,t[10]=b>>>16&255,t[11]=b>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=h>>>0&255,t[17]=h>>>8&255,t[18]=h>>>16&255,t[19]=h>>>24&255,t[20]=l>>>0&255,t[21]=l>>>8&255,t[22]=l>>>16&255,t[23]=l>>>24&255,t[24]=d>>>0&255,t[25]=d>>>8&255,t[26]=d>>>16&255,t[27]=d>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(t,e,r,n,i,o,a){var s,u,c=new Uint8Array(16),f=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(y(f,c,a,w),u=0;u<64;u++)t[e+u]=r[n+u]^f[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,e+=64,n+=64}if(i>0)for(y(f,c,a,w),u=0;u<i;u++)t[e+u]=r[n+u]^f[u];return 0}function k(t,e,r,n,i){var o,a,s=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(y(u,s,i,w),a=0;a<64;a++)t[e+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,e+=64}if(r>0)for(y(u,s,i,w),a=0;a<r;a++)t[e+a]=u[a];return 0}function M(t,e,r,n,i){var o=new Uint8Array(32);g(o,n,i,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return k(t,e,r,a,o)}function S(t,e,r,n,i,o,a){var s=new Uint8Array(32);g(s,o,a,w);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=o[c+16];return _(t,e,r,n,i,u,s)}var E=function(t){var e,r,n,i,o,a,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,r=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|r<<3),n=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function x(t,e,r,n,i,o){var a=new E(o);return a.update(r,n,i),a.finish(t,e),0}function A(t,e,r,n,i,o){var a=new Uint8Array(16);return x(a,0,r,n,i,o),v(t,e,a,0)}function O(t,e,r,n,i){var o;if(r<32)return-1;for(S(t,0,e,0,r,n,i),x(t,16,t,32,r-32,t),o=0;o<16;o++)t[o]=0;return 0}function j(t,e,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(M(a,0,32,n,i),0!==A(e,16,e,32,r-32,a))return-1;for(S(t,0,e,0,r,n,i),o=0;o<32;o++)t[o]=0;return 0}function R(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function I(t){var e,r,n=1;for(e=0;e<16;e++)r=t[e]+n+65535,n=Math.floor(r/65536),t[e]=r-65536*n;t[0]+=n-1+37*(n-1)}function P(t,e,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(t[o]^e[o]),t[o]^=n,e[o]^=n}function T(t,r){var n,i,o,a=e(),s=e();for(n=0;n<16;n++)s[n]=r[n];for(I(s),I(s),I(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,P(s,a,1-o)}for(n=0;n<16;n++)t[2*n]=255&s[n],t[2*n+1]=s[n]>>8}function C(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return T(r,t),T(n,e),m(r,0,n,0)}function B(t){var e=new Uint8Array(32);return T(e,t),1&e[0]}function L(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function N(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]+r[n]}function D(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]-r[n]}function U(t,e,r){var n,i,o=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,b=0,v=0,m=0,y=0,g=0,w=0,_=0,k=0,M=0,S=0,E=0,x=0,A=0,O=0,j=0,R=0,I=0,P=0,T=0,C=0,B=0,L=r[0],N=r[1],D=r[2],U=r[3],z=r[4],W=r[5],q=r[6],F=r[7],K=r[8],H=r[9],Y=r[10],V=r[11],Z=r[12],G=r[13],X=r[14],J=r[15];o+=(n=e[0])*L,a+=n*N,s+=n*D,u+=n*U,c+=n*z,f+=n*W,h+=n*q,l+=n*F,d+=n*K,p+=n*H,b+=n*Y,v+=n*V,m+=n*Z,y+=n*G,g+=n*X,w+=n*J,a+=(n=e[1])*L,s+=n*N,u+=n*D,c+=n*U,f+=n*z,h+=n*W,l+=n*q,d+=n*F,p+=n*K,b+=n*H,v+=n*Y,m+=n*V,y+=n*Z,g+=n*G,w+=n*X,_+=n*J,s+=(n=e[2])*L,u+=n*N,c+=n*D,f+=n*U,h+=n*z,l+=n*W,d+=n*q,p+=n*F,b+=n*K,v+=n*H,m+=n*Y,y+=n*V,g+=n*Z,w+=n*G,_+=n*X,k+=n*J,u+=(n=e[3])*L,c+=n*N,f+=n*D,h+=n*U,l+=n*z,d+=n*W,p+=n*q,b+=n*F,v+=n*K,m+=n*H,y+=n*Y,g+=n*V,w+=n*Z,_+=n*G,k+=n*X,M+=n*J,c+=(n=e[4])*L,f+=n*N,h+=n*D,l+=n*U,d+=n*z,p+=n*W,b+=n*q,v+=n*F,m+=n*K,y+=n*H,g+=n*Y,w+=n*V,_+=n*Z,k+=n*G,M+=n*X,S+=n*J,f+=(n=e[5])*L,h+=n*N,l+=n*D,d+=n*U,p+=n*z,b+=n*W,v+=n*q,m+=n*F,y+=n*K,g+=n*H,w+=n*Y,_+=n*V,k+=n*Z,M+=n*G,S+=n*X,E+=n*J,h+=(n=e[6])*L,l+=n*N,d+=n*D,p+=n*U,b+=n*z,v+=n*W,m+=n*q,y+=n*F,g+=n*K,w+=n*H,_+=n*Y,k+=n*V,M+=n*Z,S+=n*G,E+=n*X,x+=n*J,l+=(n=e[7])*L,d+=n*N,p+=n*D,b+=n*U,v+=n*z,m+=n*W,y+=n*q,g+=n*F,w+=n*K,_+=n*H,k+=n*Y,M+=n*V,S+=n*Z,E+=n*G,x+=n*X,A+=n*J,d+=(n=e[8])*L,p+=n*N,b+=n*D,v+=n*U,m+=n*z,y+=n*W,g+=n*q,w+=n*F,_+=n*K,k+=n*H,M+=n*Y,S+=n*V,E+=n*Z,x+=n*G,A+=n*X,O+=n*J,p+=(n=e[9])*L,b+=n*N,v+=n*D,m+=n*U,y+=n*z,g+=n*W,w+=n*q,_+=n*F,k+=n*K,M+=n*H,S+=n*Y,E+=n*V,x+=n*Z,A+=n*G,O+=n*X,j+=n*J,b+=(n=e[10])*L,v+=n*N,m+=n*D,y+=n*U,g+=n*z,w+=n*W,_+=n*q,k+=n*F,M+=n*K,S+=n*H,E+=n*Y,x+=n*V,A+=n*Z,O+=n*G,j+=n*X,R+=n*J,v+=(n=e[11])*L,m+=n*N,y+=n*D,g+=n*U,w+=n*z,_+=n*W,k+=n*q,M+=n*F,S+=n*K,E+=n*H,x+=n*Y,A+=n*V,O+=n*Z,j+=n*G,R+=n*X,I+=n*J,m+=(n=e[12])*L,y+=n*N,g+=n*D,w+=n*U,_+=n*z,k+=n*W,M+=n*q,S+=n*F,E+=n*K,x+=n*H,A+=n*Y,O+=n*V,j+=n*Z,R+=n*G,I+=n*X,P+=n*J,y+=(n=e[13])*L,g+=n*N,w+=n*D,_+=n*U,k+=n*z,M+=n*W,S+=n*q,E+=n*F,x+=n*K,A+=n*H,O+=n*Y,j+=n*V,R+=n*Z,I+=n*G,P+=n*X,T+=n*J,g+=(n=e[14])*L,w+=n*N,_+=n*D,k+=n*U,M+=n*z,S+=n*W,E+=n*q,x+=n*F,A+=n*K,O+=n*H,j+=n*Y,R+=n*V,I+=n*Z,P+=n*G,T+=n*X,C+=n*J,w+=(n=e[15])*L,a+=38*(k+=n*D),s+=38*(M+=n*U),u+=38*(S+=n*z),c+=38*(E+=n*W),f+=38*(x+=n*q),h+=38*(A+=n*F),l+=38*(O+=n*K),d+=38*(j+=n*H),p+=38*(R+=n*Y),b+=38*(I+=n*V),v+=38*(P+=n*Z),m+=38*(T+=n*G),y+=38*(C+=n*X),g+=38*(B+=n*J),o=(n=(o+=38*(_+=n*N))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=f,t[6]=h,t[7]=l,t[8]=d,t[9]=p,t[10]=b,t[11]=v,t[12]=m,t[13]=y,t[14]=g,t[15]=w}function z(t,e){U(t,e,e)}function W(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)z(i,i),2!==n&&4!==n&&U(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function q(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)z(i,i),1!==n&&U(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function F(t,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),c=e(),f=e(),h=e(),l=e(),d=e(),p=e();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,L(s,n),o=0;o<16;o++)f[o]=s[o],l[o]=c[o]=h[o]=0;for(c[0]=l[0]=1,o=254;o>=0;--o)P(c,f,i=a[o>>>3]>>>(7&o)&1),P(h,l,i),N(d,c,h),D(c,c,h),N(h,f,l),D(f,f,l),z(l,d),z(p,c),U(c,h,c),U(h,f,d),N(d,c,h),D(c,c,h),z(f,c),D(h,l,p),U(c,h,u),N(c,c,l),U(h,h,c),U(c,l,p),U(l,f,s),z(f,d),P(c,f,i),P(h,l,i);for(o=0;o<16;o++)s[o+16]=c[o],s[o+32]=h[o],s[o+48]=f[o],s[o+64]=l[o];var b=s.subarray(32),v=s.subarray(16);return W(b,b),U(v,v,b),T(t,v),0}function K(t,e){return F(t,e,o)}function H(t,e){return n(e,32),K(t,e)}function Y(t,e,r){var n=new Uint8Array(32);return F(n,r,e),g(t,i,n,w)}E.prototype.blocks=function(t,e,r){for(var n,i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k=this.fin?0:2048,M=this.h[0],S=this.h[1],E=this.h[2],x=this.h[3],A=this.h[4],O=this.h[5],j=this.h[6],R=this.h[7],I=this.h[8],P=this.h[9],T=this.r[0],C=this.r[1],B=this.r[2],L=this.r[3],N=this.r[4],D=this.r[5],U=this.r[6],z=this.r[7],W=this.r[8],q=this.r[9];r>=16;)l=h=0,l+=(M+=8191&(n=255&t[e+0]|(255&t[e+1])<<8))*T,l+=(S+=8191&(n>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*q),l+=(E+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*W),l+=(x+=8191&(o>>>7|(a=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*z),h=(l+=(A+=8191&(a>>>4|(s=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*U))>>>13,l&=8191,l+=(O+=s>>>1&8191)*(5*D),l+=(j+=8191&(s>>>14|(u=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*N),l+=(R+=8191&(u>>>11|(c=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*L),l+=(I+=8191&(c>>>8|(f=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*B),d=h+=(l+=(P+=f>>>5|k)*(5*C))>>>13,d+=M*C,d+=S*T,d+=E*(5*q),d+=x*(5*W),h=(d+=A*(5*z))>>>13,d&=8191,d+=O*(5*U),d+=j*(5*D),d+=R*(5*N),d+=I*(5*L),h+=(d+=P*(5*B))>>>13,d&=8191,p=h,p+=M*B,p+=S*C,p+=E*T,p+=x*(5*q),h=(p+=A*(5*W))>>>13,p&=8191,p+=O*(5*z),p+=j*(5*U),p+=R*(5*D),p+=I*(5*N),b=h+=(p+=P*(5*L))>>>13,b+=M*L,b+=S*B,b+=E*C,b+=x*T,h=(b+=A*(5*q))>>>13,b&=8191,b+=O*(5*W),b+=j*(5*z),b+=R*(5*U),b+=I*(5*D),v=h+=(b+=P*(5*N))>>>13,v+=M*N,v+=S*L,v+=E*B,v+=x*C,h=(v+=A*T)>>>13,v&=8191,v+=O*(5*q),v+=j*(5*W),v+=R*(5*z),v+=I*(5*U),m=h+=(v+=P*(5*D))>>>13,m+=M*D,m+=S*N,m+=E*L,m+=x*B,h=(m+=A*C)>>>13,m&=8191,m+=O*T,m+=j*(5*q),m+=R*(5*W),m+=I*(5*z),y=h+=(m+=P*(5*U))>>>13,y+=M*U,y+=S*D,y+=E*N,y+=x*L,h=(y+=A*B)>>>13,y&=8191,y+=O*C,y+=j*T,y+=R*(5*q),y+=I*(5*W),g=h+=(y+=P*(5*z))>>>13,g+=M*z,g+=S*U,g+=E*D,g+=x*N,h=(g+=A*L)>>>13,g&=8191,g+=O*B,g+=j*C,g+=R*T,g+=I*(5*q),w=h+=(g+=P*(5*W))>>>13,w+=M*W,w+=S*z,w+=E*U,w+=x*D,h=(w+=A*N)>>>13,w&=8191,w+=O*L,w+=j*B,w+=R*C,w+=I*T,_=h+=(w+=P*(5*q))>>>13,_+=M*q,_+=S*W,_+=E*z,_+=x*U,h=(_+=A*D)>>>13,_&=8191,_+=O*N,_+=j*L,_+=R*B,_+=I*C,M=l=8191&(h=(h=((h+=(_+=P*T)>>>13)<<2)+h|0)+(l&=8191)|0),S=d+=h>>>=13,E=p&=8191,x=b&=8191,A=v&=8191,O=m&=8191,j=y&=8191,R=g&=8191,I=w&=8191,P=_&=8191,e+=16,r-=16;this.h[0]=M,this.h[1]=S,this.h[2]=E,this.h[3]=x,this.h[4]=A,this.h[5]=O,this.h[6]=j,this.h[7]=R,this.h[8]=I,this.h[9]=P},E.prototype.finish=function(t,e){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>
vendor: 14,587 bytes, line 2
2>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},E.prototype.update=function(t,e,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=t[e+n];if(r-=i,e+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(t,e,i),e+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=t[e+n];this.leftover+=r}};var V=O,Z=j;var G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function X(t,e,r,n){for(var i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k,M,S,E,x,A,O,j,R=new Int32Array(16),I=new Int32Array(16),P=t[0],T=t[1],C=t[2],B=t[3],L=t[4],N=t[5],D=t[6],U=t[7],z=e[0],W=e[1],q=e[2],F=e[3],K=e[4],H=e[5],Y=e[6],V=e[7],Z=0;n>=128;){for(k=0;k<16;k++)M=8*k+Z,R[k]=r[M+0]<<24|r[M+1]<<16|r[M+2]<<8|r[M+3],I[k]=r[M+4]<<24|r[M+5]<<16|r[M+6]<<8|r[M+7];for(k=0;k<80;k++)if(i=P,o=T,a=C,s=B,u=L,c=N,f=D,U,l=z,d=W,p=q,b=F,v=K,m=H,y=Y,V,x=65535&(E=V),A=E>>>16,O=65535&(S=U),j=S>>>16,x+=65535&(E=(K>>>14|L<<18)^(K>>>18|L<<14)^(L>>>9|K<<23)),A+=E>>>16,O+=65535&(S=(L>>>14|K<<18)^(L>>>18|K<<14)^(K>>>9|L<<23)),j+=S>>>16,x+=65535&(E=K&H^~K&Y),A+=E>>>16,O+=65535&(S=L&N^~L&D),j+=S>>>16,x+=65535&(E=G[2*k+1]),A+=E>>>16,O+=65535&(S=G[2*k]),j+=S>>>16,S=R[k%16],A+=(E=I[k%16])>>>16,O+=65535&S,j+=S>>>16,O+=(A+=(x+=65535&E)>>>16)>>>16,x=65535&(E=_=65535&x|A<<16),A=E>>>16,O=65535&(S=w=65535&O|(j+=O>>>16)<<16),j=S>>>16,x+=65535&(E=(z>>>28|P<<4)^(P>>>2|z<<30)^(P>>>7|z<<25)),A+=E>>>16,O+=65535&(S=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25)),j+=S>>>16,A+=(E=z&W^z&q^W&q)>>>16,O+=65535&(S=P&T^P&C^T&C),j+=S>>>16,h=65535&(O+=(A+=(x+=65535&E)>>>16)>>>16)|(j+=O>>>16)<<16,g=65535&x|A<<16,x=65535&(E=b),A=E>>>16,O=65535&(S=s),j=S>>>16,A+=(E=_)>>>16,O+=65535&(S=w),j+=S>>>16,T=i,C=o,B=a,L=s=65535&(O+=(A+=(x+=65535&E)>>>16)>>>16)|(j+=O>>>16)<<16,N=u,D=c,U=f,P=h,W=l,q=d,F=p,K=b=65535&x|A<<16,H=v,Y=m,V=y,z=g,k%16===15)for(M=0;M<16;M++)S=R[M],x=65535&(E=I[M]),A=E>>>16,O=65535&S,j=S>>>16,S=R[(M+9)%16],x+=65535&(E=I[(M+9)%16]),A+=E>>>16,O+=65535&S,j+=S>>>16,w=R[(M+1)%16],x+=65535&(E=((_=I[(M+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),A+=E>>>16,O+=65535&(S=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),j+=S>>>16,w=R[(M+14)%16],A+=(E=((_=I[(M+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,O+=65535&(S=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,R[M]=65535&O|j<<16,I[M]=65535&x|A<<16;x=65535&(E=z),A=E>>>16,O=65535&(S=P),j=S>>>16,S=t[0],A+=(E=e[0])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[0]=P=65535&O|j<<16,e[0]=z=65535&x|A<<16,x=65535&(E=W),A=E>>>16,O=65535&(S=T),j=S>>>16,S=t[1],A+=(E=e[1])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[1]=T=65535&O|j<<16,e[1]=W=65535&x|A<<16,x=65535&(E=q),A=E>>>16,O=65535&(S=C),j=S>>>16,S=t[2],A+=(E=e[2])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[2]=C=65535&O|j<<16,e[2]=q=65535&x|A<<16,x=65535&(E=F),A=E>>>16,O=65535&(S=B),j=S>>>16,S=t[3],A+=(E=e[3])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[3]=B=65535&O|j<<16,e[3]=F=65535&x|A<<16,x=65535&(E=K),A=E>>>16,O=65535&(S=L),j=S>>>16,S=t[4],A+=(E=e[4])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[4]=L=65535&O|j<<16,e[4]=K=65535&x|A<<16,x=65535&(E=H),A=E>>>16,O=65535&(S=N),j=S>>>16,S=t[5],A+=(E=e[5])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[5]=N=65535&O|j<<16,e[5]=H=65535&x|A<<16,x=65535&(E=Y),A=E>>>16,O=65535&(S=D),j=S>>>16,S=t[6],A+=(E=e[6])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[6]=D=65535&O|j<<16,e[6]=Y=65535&x|A<<16,x=65535&(E=V),A=E>>>16,O=65535&(S=U),j=S>>>16,S=t[7],A+=(E=e[7])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[7]=U=65535&O|j<<16,e[7]=V=65535&x|A<<16,Z+=128,n-=128}return n}function J(t,e,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,X(i,o,e,r),r%=128,n=0;n<r;n++)a[n]=e[s-r+n];for(a[r]=128,a[(r=256-128*(r<112?1:0))-9]=0,p(a,r-8,s/536870912|0,s<<3),X(i,o,a,r),n=0;n<8;n++)p(t,8*n,i[n],o[n]);return 0}function Q(t,r){var n=e(),i=e(),o=e(),a=e(),s=e(),u=e(),c=e(),h=e(),l=e();D(n,t[1],t[0]),D(l,r[1],r[0]),U(n,n,l),N(i,t[0],t[1]),N(l,r[0],r[1]),U(i,i,l),U(o,t[3],r[3]),U(o,o,f),U(a,t[2],r[2]),N(a,a,a),D(s,i,n),D(u,a,o),N(c,a,o),N(h,i,n),U(t[0],s,u),U(t[1],h,c),U(t[2],c,u),U(t[3],s,h)}function $(t,e,r){var n;for(n=0;n<4;n++)P(t[n],e[n],r)}function tt(t,r){var n=e(),i=e(),o=e();W(o,r[2]),U(n,r[0],o),U(i,r[1],o),T(t,i),t[31]^=B(n)<<7}function et(t,e,r){var n,i;for(R(t[0],a),R(t[1],s),R(t[2],s),R(t[3],a),i=255;i>=0;--i)$(t,e,n=r[i/8|0]>>(7&i)&1),Q(e,t),Q(t,t),$(t,e,n)}function rt(t,r){var n=[e(),e(),e(),e()];R(n[0],h),R(n[1],l),R(n[2],s),U(n[3],h,l),et(t,n,r)}function nt(t,r,i){var o,a=new Uint8Array(64),s=[e(),e(),e(),e()];for(i||n(r,32),J(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,rt(s,a),tt(t,s),o=0;o<32;o++)r[o+32]=t[o];return 0}var it=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ot(t,e){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)e[i]+=r-16*e[n]*it[i-(n-32)],r=Math.floor((e[i]+128)/256),e[i]-=256*r;e[i]+=r,e[n]=0}for(r=0,i=0;i<32;i++)e[i]+=r-(e[31]>>4)*it[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*it[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function at(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;ot(t,r)}function st(t,r,n,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),f=new Float64Array(64),h=[e(),e(),e(),e()];J(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var l=n+64;for(o=0;o<n;o++)t[64+o]=r[o];for(o=0;o<32;o++)t[32+o]=s[32+o];for(J(c,t.subarray(32),n+32),at(c),rt(h,c),tt(t,h),o=32;o<64;o++)t[o]=i[o];for(J(u,t,n+64),at(u),o=0;o<64;o++)f[o]=0;for(o=0;o<32;o++)f[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)f[o+a]+=u[o]*s[a];return ot(t.subarray(32),f),l}function ut(t,r,n,i){var o,u=new Uint8Array(32),f=new Uint8Array(64),h=[e(),e(),e(),e()],l=[e(),e(),e(),e()];if(n<64)return-1;if(function(t,r){var n=e(),i=e(),o=e(),u=e(),f=e(),h=e(),l=e();return R(t[2],s),L(t[1],r),z(o,t[1]),U(u,o,c),D(o,o,t[2]),N(u,t[2],u),z(f,u),z(h,f),U(l,h,f),U(n,l,o),U(n,n,u),q(n,n),U(n,n,o),U(n,n,u),U(n,n,u),U(t[0],n,u),z(i,t[0]),U(i,i,u),C(i,o)&&U(t[0],t[0],d),z(i,t[0]),U(i,i,u),C(i,o)?-1:(B(t[0])===r[31]>>7&&D(t[0],a,t[0]),U(t[3],t[0],t[1]),0)}(l,i))return-1;for(o=0;o<n;o++)t[o]=r[o];for(o=0;o<32;o++)t[o+32]=i[o];if(J(f,t,n),at(f),et(h,l,f),rt(l,r.subarray(32)),Q(h,l),tt(u,h),n-=64,m(r,0,u,0)){for(o=0;o<n;o++)t[o]=0;return-1}for(o=0;o<n;o++)t[o]=r[o+64];return n}var ct=16,ft=64,ht=32,lt=64;function dt(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function pt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function bt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:g,crypto_stream_xor:S,crypto_stream:M,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:k,crypto_onetimeauth:x,crypto_onetimeauth_verify:A,crypto_verify_16:v,crypto_verify_32:m,crypto_secretbox:O,crypto_secretbox_open:j,crypto_scalarmult:F,crypto_scalarmult_base:K,crypto_box_beforenm:Y,crypto_box_afternm:V,crypto_box:function(t,e,r,n,i,o){var a=new Uint8Array(32);return Y(a,i,o),V(t,e,r,n,a)},crypto_box_open:function(t,e,r,n,i,o){var a=new Uint8Array(32);return Y(a,i,o),Z(t,e,r,n,a)},crypto_box_keypair:H,crypto_hash:J,crypto_sign:st,crypto_sign_keypair:nt,crypto_sign_open:ut,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ct,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ft,crypto_sign_PUBLICKEYBYTES:ht,crypto_sign_SECRETKEYBYTES:lt,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:e,D:c,L:it,pack25519:T,unpack25519:L,M:U,A:N,S:z,Z:D,pow2523:q,add:Q,set25519:R,modL:ot,scalarmult:et,scalarbase:rt},t.randomBytes=function(t){var e=new Uint8Array(t);return n(e,t),e},t.secretbox=function(t,e,r){pt(t,e,r),dt(r,e);for(var n=new Uint8Array(32+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+32]=t[o];return O(i,n,n.length,e,r),i.subarray(ct)},t.secretbox.open=function(t,e,r){pt(t,e,r),dt(r,e);for(var n=new Uint8Array(ct+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+ct]=t[o];return n.length<32||0!==j(i,n,n.length,e,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=ct,t.scalarMult=function(t,e){if(pt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var r=new Uint8Array(32);return F(r,t,e),r},t.scalarMult.base=function(t){if(pt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return K(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox(e,r,o)},t.box.before=function(t,e){pt(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var r=new Uint8Array(32);return Y(r,t,e),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox.open(e,r,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return H(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(pt(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return K(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(pt(t,e),e.length!==lt)throw new Error("bad secret key size");var r=new Uint8Array(ft+t.length);return st(r,t,t.length,e),r},t.sign.open=function(t,e){if(pt(t,e),e.length!==ht)throw new Error("bad public key size");var r=new Uint8Array(t.length),n=ut(r,t,t.length,e);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(ft),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached.verify=function(t,e,r){if(pt(t,e,r),e.length!==ft)throw new Error("bad signature size");if(r.length!==ht)throw new Error("bad public key size");var n,i=new Uint8Array(ft+t.length),o=new Uint8Array(ft+t.length);for(n=0;n<ft;n++)i[n]=e[n];for(n=0;n<t.length;n++)i[n+ft]=t[n];return ut(o,i,i.length,r)>=0},t.sign.keyPair=function(){var t=new Uint8Array(ht),e=new Uint8Array(lt);return nt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(pt(t),t.length!==lt)throw new Error("bad secret key size");for(var e=new Uint8Array(ht),r=0;r<e.length;r++)e[r]=t[32+r];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(pt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(ht),r=new Uint8Array(lt),n=0;n<32;n++)r[n]=t[n];return nt(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=ht,t.sign.secretKeyLength=lt,t.sign.seedLength=32,t.sign.signatureLength=ft,t.hash=function(t){pt(t);var e=new Uint8Array(64);return J(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return pt(t,e),0!==t.length&&0!==e.length&&(t.length===e.length&&0===b(t,0,e,0,t.length))},t.setPRNG=function(t){n=t},function(){var e="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(e&&e.getRandomValues){t.setPRNG((function(t,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)e.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)t[n]=i[n];bt(i)}))}else(e=r(358))&&e.randomBytes&&t.setPRNG((function(t,r){var n,i=e.randomBytes(r);for(n=0;n<r;n++)t[n]=i[n];bt(i)}))}()}(t.exports?t.exports:self.nacl=self.nacl||{})},function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";
vendor: 4,898 bytes, line 2
2var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"===typeof module&&module.exports,AMD=__webpack_require__(240),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(r){return new Sha256(e,!0).update(r)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];e[n]=createOutputMethod(n,t)}return e},nodeWrap=function nodeWrap(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(t){if("string"===typeof t)return crypto.createHash(algorithm).update(t,"utf8").digest("hex");if(null===t||void 0===t)throw new Error(ERROR);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod},createHmacOutputMethod=function(t,e){return function(r,n){return new HmacSha256(r,e,!0).update(n)[t]()}},createHmacMethod=function(t){var e=createHmacOutputMethod("hex",t);e.create=function(e){return new HmacSha256(e,t)},e.update=function(t,r){return e.create(t).update(r)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];e[n]=createHmacOutputMethod(n,t)}return e};function Sha256(t,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function HmacSha256(t,e,r){var n,i=typeof t;if("string"===i){var o,a=[],s=t.length,u=0;for(n=0;n<s;++n)(o=t.charCodeAt(n))<128?a[u++]=o:o<2048?(a[u++]=192|o>>6,a[u++]=128|63&o):o<55296||o>=57344?(a[u++]=224|o>>12,a[u++]=128|o>>6&63,a[u++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),a[u++]=240|o>>18,a[u++]=128|o>>12&63,a[u++]=128|o>>6&63,a[u++]=128|63&o);t=a}else{if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var c=[],f=[];for(n=0;n<64;++n){var h=t[n]||0;c[n]=92^h,f[n]=54^h}Sha256.call(this,e,r),this.update(f),this.oKeyPad=c,this.inner=!0,this.sharedMemory=r}Sha256.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,i,o=0,a=t.length,s=this.blocks;o<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5
2]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),e)for(i=this.start;o<a&&i<64;++o)s[i>>2]|=t[o]<<SHIFT[3&i++];else for(i=this.start;o<a&&i<64;++o)(n=t.charCodeAt(o))<128?s[i>>2]|=n<<SHIFT[3&i++]:n<2048?(s[i>>2]|=(192|n>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&n)<<SHIFT[3&i++]):n<55296||n>=57344?(s[i>>2]|=(224|n>>12)<<SHIFT[3&i++],s[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&n)<<SHIFT[3&i++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++o)),s[i>>2]|=(240|n>>18)<<SHIFT[3&i++],s[i>>2]|=(128|n>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&n)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,r,n,i,o,a,s,u,c=this.h0,f=this.h1,h=this.h2,l=this.h3,d=this.h4,p=this.h5,b=this.h6,v=this.h7,m=this.blocks;for(t=16;t<64;++t)e=((i=m[t-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,r=((i=m[t-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,m[t]=m[t-16]+e+m[t-7]+r<<0;for(u=f&h,t=0;t<64;t+=4)this.first?(this.is224?(o=300032,v=(i=m[0]-1413257819)-150054599<<0,l=i+24177077<<0):(o=704751109,v=(i=m[0]-210244248)-1521486534<<0,l=i+143694565<<0),this.first=!1):(e=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),n=(o=c&f)^c&h^u,v=l+(i=v+(r=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&b)+K[t]+m[t])<<0,l=i+(e+n)<<0),e=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),n=(a=l&c)^l&f^o,b=h+(i=b+(r=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&d^~v&p)+K[t+1]+m[t+1])<<0,e=((h=i+(e+n)<<0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(s=h&l)^h&c^a,p=f+(i=p+(r=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&v^~b&d)+K[t+2]+m[t+2])<<0,e=((f=i+(e+n)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(u=f&h)^f&l^s,d=c+(i=d+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&b^~p&v)+K[t+3]+m[t+3])<<0,c=i+(e+n)<<0;this.h0=this.h0+c<<0,this.h1=this.h1+f<<0,this.h2=this.h2+h<<0,this.h3=this.h3+l<<0,this.h4=this.h4+d<<0,this.h5=this.h5+p<<0,this.h6=this.h6+b<<0,this.h7=this.h7+v<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,u=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(u+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),u},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,u=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,255&s),u},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__(27),__webpack_require__(31))},function(t,e,r){"use strict";r.d(e,"c",(function(){return s})),r.d(e,"a",(function(){return f})),r.d(e,"d",(function(){return a})),r.d(e,"b",(function(){return _}));var n=r(2),i=r.n(n),o=Object(n.createContext)({});function a(){return Object(n.useContext)(o)}function s(){var t=a(),e=t.publicKey,r=t.signTransaction,i=t.signAllTransactions;return Object(n.useMemo)((function(){return e&&r&&i?{publicKey:e,signTransaction:r,signAllTransactions:i}:void 0}),[e,r,i])}var u=r(16),c=Object(n.createContext)({});var f=function(t){var e=t.children,r=t.endpoint,o=t.config,a=void 0===o?{commitment:"confirmed"}:o,s=Object(n.useMemo)((function(){return new u.Connection(r,a)}),[r,a]);return i.a.createElement(c.Provider,{value:{connection:s}},e)},h=r(9),l=r(21),d=r(22),p=r(26),b=function(t){Object(l.a)(r,t);var e=Object(d.a)(r);function r(){var t;return Object(h.a)(this,r),(t=e.apply(this,arguments)).name="WalletNotSelectedError",t}return r}(p.WalletError),v=r(14);var m=r(1),y=r.n(m),g=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},w={wallet:null,adapter:null,ready:!1,publicKey:null,connected:!1,autoApprove:!1},_=function(t){var e=t.children,r=t.wallets,a=t.autoConnect,s=void 0!==a&&a,u=t.onError,c=void 0===u?function(t){return console.error(t)}:u,f=t.localStorageKey,h=function(t,e){var r=Object(n.useState)((function(){if("undefined"===typeof localStorage)return e;var r=localStorage.getItem(t);return r?JSON.parse(r):e})),i=Object(v.a)(r,2),o=i[0],a=i[1],s=Object(n.useCallback)((function(e){e!==o&&(a(e),null===e?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(e)))}),[o,a,t]);return[o,s]}(void 0===f?"walletName":f,null),l=Object(v.a)(h,2),d=l[0],m=l[1],_=Object(n.useState)(w),k=Object(v.a)(_,2),M=k[0],S=M.wallet,E=M.adapter,x=M.ready,A=M.publicKey,O=M.connected,j=M.autoApprove,R=k[1],I=Object(n.useState)(!1),P=Object(v.a)(I,2),T=P[0],C=P[1],B=Object(n.useState)(!1),L=Object(v.a)(B,2),N=L[0],D=L[1],U=Object(n.useMemo)((function(){return r.reduce((function(t,e){return t[e.name]=e,t}),{})}),[r]);Object(n.useEffect)((function(){var t=d&&U[d]||null,e=t&&t.adapter();if(e){var r=e.ready,n=e.publicKey,i=e.connected,o=e.autoApprove;R({wallet:t,adapter:e,connected:i,publicKey:n,ready:r,autoApprove:o})}else R(w)}),[d,U,R]),Object(n.useEffect)((function(){s&&E&&x&&!T&&!O&&function(){g(this,void 0,void 0,y.a.mark((function t(){return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return C(!0),t.prev=1,t.next=4,E.connect();case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),m(null);case 9:return t.prev=9,C(!1),t.finish(9);case 12:case"end":return t.stop()}}),t,null,[[1,6,9,12]])})))}()}),[s,E,x,T,O,C,m]);var z=Object(n.useCallback)((function(t){return g(void 0,void 0,void 0,y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d!==t){e.next=2;break}return e.abrupt("return");case 2:if(!E){e.next=5;break}return e.next=5,E.disconnect();case 5:m(t);case 6:case"end":return e.stop()}}),e)})))}),[d,E,m]),W=Object(n.useCallback)((function(){return R((function(t){return Object.assign(Object.assign({},t),{ready:!0})}))}),[R]),q=Object(n.useCallback)((function(){if(E){var t=E.connected,e=E.publicKey,r=E.ready,n=E.autoApprove;R((function(i){return Object.assign(Object.assign({},i),{connected:t,publicKey:e,ready:r,autoApprove:n})}))}}
2),[E,R]),F=Object(n.useCallback)((function(){return m(null)}),[m]),K=Object(n.useCallback)((function(){return g(void 0,void 0,void 0,y.a.mark((function t(){var e,r;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(T||N||O)){t.next=2;break}return t.abrupt("return");case 2:if(S&&E){t.next=6;break}throw e=new b,c(e),e;case 6:if(x){t.next=12;break}throw m(null),"undefined"!==typeof window&&window.open(S.url,"_blank"),r=new p.WalletNotReadyError,c(r),r;case 12:return C(!0),t.prev=13,t.next=16,E.connect();case 16:t.next=22;break;case 18:throw t.prev=18,t.t0=t.catch(13),m(null),t.t0;case 22:return t.prev=22,C(!1),t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[13,18,22,25]])})))}),[T,N,O,S,E,c,x,m,C]),H=Object(n.useCallback)((function(){return g(void 0,void 0,void 0,y.a.mark((function t(){return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!N){t.next=2;break}return t.abrupt("return");case 2:if(E){t.next=4;break}return t.abrupt("return",m(null));case 4:return D(!0),t.prev=5,t.next=8,E.disconnect();case 8:return t.prev=8,m(null),D(!1),t.finish(8);case 12:case"end":return t.stop()}}),t,null,[[5,,8,12]])})))}),[N,E,m,D]),Y=Object(n.useCallback)((function(t,e,r){return g(void 0,void 0,void 0,y.a.mark((function n(){var i,o;return y.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(E){n.next=4;break}throw i=new b,c(i),i;case 4:if(O){n.next=8;break}throw o=new p.WalletNotConnectedError,c(o),o;case 8:return n.next=10,E.sendTransaction(t,e,r);case 10:return n.abrupt("return",n.sent);case 11:case"end":return n.stop()}}),n)})))}),[E,c,O]),V=Object(n.useMemo)((function(){return E&&"signTransaction"in E?function(t){return g(void 0,void 0,void 0,y.a.mark((function e(){var r;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=4;break}throw r=new p.WalletNotConnectedError,c(r),r;case 4:return e.next=6,E.signTransaction(t);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))}:void 0}),[E,c,O]),Z=Object(n.useMemo)((function(){return E&&"signAllTransactions"in E?function(t){return g(void 0,void 0,void 0,y.a.mark((function e(){var r;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=4;break}throw r=new p.WalletNotConnectedError,c(r),r;case 4:return e.next=6,E.signAllTransactions(t);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))}:void 0}),[E,c,O]),G=Object(n.useMemo)((function(){return E&&"signMessage"in E?function(t){return g(void 0,void 0,void 0,y.a.mark((function e(){var r;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=4;break}throw r=new p.WalletNotConnectedError,c(r),r;case 4:return e.next=6,E.signMessage(t);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))}:void 0}),[E,c,O]);return Object(n.useEffect)((function(){if(E)return E.on("ready",W),E.on("connect",q),E.on("disconnect",F),E.on("error",c),function(){E.off("ready",W),E.off("connect",q),E.off("disconnect",F),E.off("error",c)}}),[E,W,q,F,c]),i.a.createElement(o.Provider,{value:{wallets:r,autoConnect:s,select:z,wallet:S,adapter:E,publicKey:A,ready:x,connecting:T,disconnecting:N,connected:O,autoApprove:j,connect:K,disconnect:H,sendTransaction:Y,signTransaction:V,signAllTransactions:Z,signMessage:G}},e)}},function(t,e,r){"use strict";r.d(e,"b",(function(){return o}));var n=r(12),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(t){return"".concat(Math.round(t),"ms")}e.a={easing:i,duration:o,create:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.duration,s=void 0===r?o.standard:r,u=e.easing,c=void 0===u?i.easeInOut:u,f=e.delay,h=void 0===f?0:f;Object(n.a)(e,["duration","easing","delay"]);return(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof h?h:a(h))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var e=t/36;return Math.round(10*(4+15*Math.pow(e,.25)+e/5))}}},function(t,e,r){!function(t){"use strict";var e=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e<t.length;e++)r[e]=t[e];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=e(),s=e([1]),u=e([56129,1]),c=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),f=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),h=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),l=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(t,e,r,n){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=n>>24&255,t[e+5]=n>>16&255,t[e+6]=n>>8&255,t[e+7]=255&n}function b(t,e,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=t[e+o]^r[n+o];return(1&a-1>>>8)-1}function v(t,e,r,n){return b(t,e,r,n,16)}function m(t,e,r,n){return b(t,e,r,n,32)}function y(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,l=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,g=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,k=a,M=s,S=u,E=c,x=f,A=h,O=l,j=d,R=p,I=b,P=v,T=m,C=y,B=g,L=w,N=0;N<20;
vendor: 15,538 bytes, line 2
2N+=2)_^=(i=(T^=(i=(j^=(i=(E^=(i=_+T|0)<<7|i>>>25)+_|0)<<9|i>>>23)+E|0)<<13|i>>>19)+j|0)<<18|i>>>14,x^=(i=(k^=(i=(C^=(i=(R^=(i=x+k|0)<<7|i>>>25)+x|0)<<9|i>>>23)+R|0)<<13|i>>>19)+C|0)<<18|i>>>14,I^=(i=(A^=(i=(M^=(i=(B^=(i=I+A|0)<<7|i>>>25)+I|0)<<9|i>>>23)+B|0)<<13|i>>>19)+M|0)<<18|i>>>14,L^=(i=(P^=(i=(O^=(i=(S^=(i=L+P|0)<<7|i>>>25)+L|0)<<9|i>>>23)+S|0)<<13|i>>>19)+O|0)<<18|i>>>14,_^=(i=(S^=(i=(M^=(i=(k^=(i=_+S|0)<<7|i>>>25)+_|0)<<9|i>>>23)+k|0)<<13|i>>>19)+M|0)<<18|i>>>14,x^=(i=(E^=(i=(O^=(i=(A^=(i=x+E|0)<<7|i>>>25)+x|0)<<9|i>>>23)+A|0)<<13|i>>>19)+O|0)<<18|i>>>14,I^=(i=(R^=(i=(j^=(i=(P^=(i=I+R|0)<<7|i>>>25)+I|0)<<9|i>>>23)+P|0)<<13|i>>>19)+j|0)<<18|i>>>14,L^=(i=(B^=(i=(C^=(i=(T^=(i=L+B|0)<<7|i>>>25)+L|0)<<9|i>>>23)+T|0)<<13|i>>>19)+C|0)<<18|i>>>14;_=_+o|0,k=k+a|0,M=M+s|0,S=S+u|0,E=E+c|0,x=x+f|0,A=A+h|0,O=O+l|0,j=j+d|0,R=R+p|0,I=I+b|0,P=P+v|0,T=T+m|0,C=C+y|0,B=B+g|0,L=L+w|0,t[0]=_>>>0&255,t[1]=_>>>8&255,t[2]=_>>>16&255,t[3]=_>>>24&255,t[4]=k>>>0&255,t[5]=k>>>8&255,t[6]=k>>>16&255,t[7]=k>>>24&255,t[8]=M>>>0&255,t[9]=M>>>8&255,t[10]=M>>>16&255,t[11]=M>>>24&255,t[12]=S>>>0&255,t[13]=S>>>8&255,t[14]=S>>>16&255,t[15]=S>>>24&255,t[16]=E>>>0&255,t[17]=E>>>8&255,t[18]=E>>>16&255,t[19]=E>>>24&255,t[20]=x>>>0&255,t[21]=x>>>8&255,t[22]=x>>>16&255,t[23]=x>>>24&255,t[24]=A>>>0&255,t[25]=A>>>8&255,t[26]=A>>>16&255,t[27]=A>>>24&255,t[28]=O>>>0&255,t[29]=O>>>8&255,t[30]=O>>>16&255,t[31]=O>>>24&255,t[32]=j>>>0&255,t[33]=j>>>8&255,t[34]=j>>>16&255,t[35]=j>>>24&255,t[36]=R>>>0&255,t[37]=R>>>8&255,t[38]=R>>>16&255,t[39]=R>>>24&255,t[40]=I>>>0&255,t[41]=I>>>8&255,t[42]=I>>>16&255,t[43]=I>>>24&255,t[44]=P>>>0&255,t[45]=P>>>8&255,t[46]=P>>>16&255,t[47]=P>>>24&255,t[48]=T>>>0&255,t[49]=T>>>8&255,t[50]=T>>>16&255,t[51]=T>>>24&255,t[52]=C>>>0&255,t[53]=C>>>8&255,t[54]=C>>>16&255,t[55]=C>>>24&255,t[56]=B>>>0&255,t[57]=B>>>8&255,t[58]=B>>>16&255,t[59]=B>>>24&255,t[60]=L>>>0&255,t[61]=L>>>8&255,t[62]=L>>>16&255,t[63]=L>>>24&255}(t,e,r,n)}function g(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,l=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,g=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(m^=(i=(d^=(i=(c^=(i=o+m|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+d|0)<<18|i>>>14,f^=(i=(a^=(i=(y^=(i=(p^=(i=f+a|0)<<7|i>>>25)+f|0)<<9|i>>>23)+p|0)<<13|i>>>19)+y|0)<<18|i>>>14,b^=(i=(h^=(i=(s^=(i=(g^=(i=b+h|0)<<7|i>>>25)+b|0)<<9|i>>>23)+g|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(v^=(i=(l^=(i=(u^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+l|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,f^=(i=(c^=(i=(l^=(i=(h^=(i=f+c|0)<<7|i>>>25)+f|0)<<9|i>>>23)+h|0)<<13|i>>>19)+l|0)<<18|i>>>14,b^=(i=(p^=(i=(d^=(i=(v^=(i=b+p|0)<<7|i>>>25)+b|0)<<9|i>>>23)+v|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(g^=(i=(y^=(i=(m^=(i=w+g|0)<<7|i>>>25)+w|0)<<9|i>>>23)+m|0)<<13|i>>>19)+y|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=f>>>0&255,t[5]=f>>>8&255,t[6]=f>>>16&255,t[7]=f>>>24&255,t[8]=b>>>0&255,t[9]=b>>>8&255,t[10]=b>>>16&255,t[11]=b>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=h>>>0&255,t[17]=h>>>8&255,t[18]=h>>>16&255,t[19]=h>>>24&255,t[20]=l>>>0&255,t[21]=l>>>8&255,t[22]=l>>>16&255,t[23]=l>>>24&255,t[24]=d>>>0&255,t[25]=d>>>8&255,t[26]=d>>>16&255,t[27]=d>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(t,e,r,n,i,o,a){var s,u,c=new Uint8Array(16),f=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(y(f,c,a,w),u=0;u<64;u++)t[e+u]=r[n+u]^f[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,e+=64,n+=64}if(i>0)for(y(f,c,a,w),u=0;u<i;u++)t[e+u]=r[n+u]^f[u];return 0}function k(t,e,r,n,i){var o,a,s=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(y(u,s,i,w),a=0;a<64;a++)t[e+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,e+=64}if(r>0)for(y(u,s,i,w),a=0;a<r;a++)t[e+a]=u[a];return 0}function M(t,e,r,n,i){var o=new Uint8Array(32);g(o,n,i,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return k(t,e,r,a,o)}function S(t,e,r,n,i,o,a){var s=new Uint8Array(32);g(s,o,a,w);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=o[c+16];return _(t,e,r,n,i,u,s)}var E=function(t){var e,r,n,i,o,a,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,r=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|r<<3),n=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function x(t,e,r,n,i,o){var a=new E(o);return a.update(r,n,i),a.finish(t,e),0}function A(t,e,r,n,i,o){var a=new Uint8Array(16);return x(a,0,r,n,i,o),v(t,e,a,0)}function O(t,e,r,n,i){var o;if(r<32)return-1;for(S(t,0,e,0,r,n,i),x(t,16,t,32,r-32,t),o=0;o<16;o++)t[o]=0;return 0}function j(t,e,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(M(a,0,32,n,i),0!==A(e,16,e,32,r-32,a))return-1;for(S(t,0,e,0,r,n,i),o=0;o<32;o++)t[o]=0;return 0}function R(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function I(t){var e,r,n=1;for(e=0;e<16;e++)r=t[e]+n+65535,n=Math.floor(r/65536),t[e]=r-65536*n;t[0]+=n-1+37*(n-1)}function P(t,e,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(t[o]^e[o]),t[o]^=n,e[o]^=n}function T(t,r){var n,i,o,a=e(),s=e();for(n=0;n<16;n++)s[n]=r[n];for(I(s),I(s),I(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,P(s,a,1-o)}for(n=0;n<16;n++)t[2*n]=255&s[n],t[2*n+1]=s[n]>>8}function C(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return T(r,t),T(n,e),m(r,0,n,0)}function B(t){var e=new Uint8Array(32);return T(e,t),1&e[0]}function L(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function N(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]+r[n]}function D(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]-r[n]}function U(t,e,r){var n,i,o=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,b=0,v=0,m=0,y=0,g=0,w=0,_=0,k=0,M=0,S=0,E=0,x=0,A=0,O=0,j=0,R=0,I=0,P=0,T=0,C=0,B=0,L=r[0],N=r[1],D=r[2],U=r[3],z=r[4],W=r[5],q=r[6],F=r[7],K=r[8],H=r[9],Y=r[10],V=r[11],Z=r[12],G=r[13],X=r[14],J=r[15];o+=(n=e[0])*L,a+=n*N,s+=n*D,u+=n*U,c+=n*z,f+=n*W,h+=n*q,l+=n*F,d+=n*K,p+=n*H,b+=n*Y,v+=n*V,m+=n*Z,y+=n*G,g+=n*X,w+=n*J,a+=(n=e[1])*L,s+=n*N,u+=n*D,c+=n*U,f+=n*z,h+=n*W,l+=n*q,d+=n*F,p+=n*K,b+=n*H,v+=n*Y,m+=n*V,y+=n*Z,g+=n*G,w+=n*X,_+=n*J,s+=(n=e[2])*L,u+=n*N,c+=n*D,f+=n*U,h+=n*z,l+=n*W,d+=n*q,p+=n*F,b+=n*K,v+=n*H,m+=n*Y,y+=n*V,g+=n*Z,w+=n*G,_+=n*X,k+=n*J,u+=(n=e[3])*L,c+=n*N,f+=n*D,h+=n*U,l+=n*z,d+=n*W,p+=n*q,b+=n*F,v+=n*K,m+=n*H,y+=n*Y,g+=n*V,w+=n*Z,_+=n*G,k+=n*X,M+=n*J,c+=(n=e[4])*L,f+=n*N,h+=n*D,l+=n*U,d+=n*z,p+=n*W,b+=n*q,v+=n*F,m+=n*K,y+=n*H,g+=n*Y,w+=n*V,_+=n*Z,k+=n*G,M+=n*X,S+=n*J,f+=(n=e[5])*L,h+=n*N,l+=n*D,d+=n*U,p+=n*z,b+=n*W,v+=n*q,m+=n*F,y+=n*K,g+=n*H,w+=n*Y,_+=n*V,k+=n*Z,M+=n*G,S+=n*X,E+=n*J,h+=(n=e[6])*L,l+=n*N,d+=n*D,p+=n*U,b+=n*z,v+=n*W,m+=n*q,y+=n*F,g+=n*K,w+=n*H,_+=n*Y,k+=n*V,M+=n*Z,S+=n*G,E+=n*X,x+=n*J,l+=(n=e[7])*L,d+=n*N,p+=n*D,b+=n*U,v+=n*z,m+=n*W,y+=n*q,g+=n*F,w+=n*K,_+=n*H,k+=n*Y,M+=n*V,S+=n*Z,E+=n*G,x+=n*X,A+=n*J,d+=(n=e[8])*L,p+=n*N,b+=n*D,v+=n*U,m+=n*z,y+=n*W,g+=n*q,w+=n*F,_+=n*K,k+=n*H,M+=n*Y,S+=n*V,E+=n*Z,x+=n*G,A+=n*X,O+=n*J,p+=(n=e[9])*L,b+=n*N,v+=n*D,m+=n*U,y+=n*z,g+=n*W,w+=n*q,_+=n*F,k+=n*K,M+=n*H,S+=n*Y,E+=n*V,x+=n*Z,A+=n*G,O+=n*X,j+=n*J,b+=(n=e[10])*L,v+=n*N,m+=n*D,y+=n*U,g+=n*z,w+=n*W,_+=n*q,k+=n*F,M+=n*K,S+=n*H,E+=n*Y,x+=n*V,A+=n*Z,O+=n*G,j+=n*X,R+=n*J,v+=(n=e[11])*L,m+=n*N,y+=n*D,g+=n*U,w+=n*z,_+=n*W,k+=n*q,M+=n*F,S+=n*K,E+=n*H,x+=n*Y,A+=n*V,O+=n*Z,j+=n*G,R+=n*X,I+=n*J,m+=(n=e[12])*L,y+=n*N,g+=n*D,w+=n*U,_+=n*z,k+=n*W,M+=n*q,S+=n*F,E+=n*K,x+=n*H,A+=n*Y,O+=n*V,j+=n*Z,R+=n*G,I+=n*X,P+=n*J,y+=(n=e[13])*L,g+=n*N,w+=n*D,_+=n*U,k+=n*z,M+=n*W,S+=n*q,E+=n*F,x+=n*K,A+=n*H,O+=n*Y,j+=n*V,R+=n*Z,I+=n*G,P+=n*X,T+=n*J,g+=(n=e[14])*L,w+=n*N,_+=n*D,k+=n*U,M+=n*z,S+=n*W,E+=n*q,x+=n*F,A+=n*K,O+=n*H,j+=n*Y,R+=n*V,I+=n*Z,P+=n*G,T+=n*X,C+=n*J,w+=(n=e[15])*L,a+=38*(k+=n*D),s+=38*(M+=n*U),u+=38*(S+=n*z),c+=38*(E+=n*W),f+=38*(x+=n*q),h+=38*(A+=n*F),l+=38*(O+=n*K),d+=38*(j+=n*H),p+=38*(R+=n*Y),b+=38*(I+=n*V),v+=38*(P+=n*Z),m+=38*(T+=n*G),y+=38*(C+=n*X),g+=38*(B+=n*J),o=(n=(o+=38*(_+=n*N))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=f,t[6]=h,t[7]=l,t[8]=d,t[9]=p,t[10]=b,t[11]=v,t[12]=m,t[13]=y,t[14]=g,t[15]=w}function z(t,e){U(t,e,e)}function W(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)z(i,i),2!==n&&4!==n&&U(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function q(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)z(i,i),1!==n&&U(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function F(t,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),c=e(),f=e(),h=e(),l=e(),d=e(),p=e();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,L(s,n),o=0;o<16;o++)f[o]=s[o],l[o]=c[o]=h[o]=0;for(c[0]=l[0]=1,o=254;o>=0;--o)P(c,f,i=a[o>>>3]>>>(7&o)&1),P(h,l,i),N(d,c,h),D(c,c,h),N(h,f,l),D(f,f,l),z(l,d),z(p,c),U(c,h,c),U(h,f,d),N(d,c,h),D(c,c,h),z(f,c),D(h,l,p),U(c,h,u),N(c,c,l),U(h,h,c),U(c,l,p),U(l,f,s),z(f,d),P(c,f,i),P(h,l,i);for(o=0;o<16;o++)s[o+16]=c[o],s[o+32]=h[o],s[o+48]=f[o],s[o+64]=l[o];var b=s.subarray(32),v=s.subarray(16);return W(b,b),U(v,v,b),T(t,v),0}function K(t,e){return F(t,e,o)}function H(t,e){return n(e,32),K(t,e)}function Y(t,e,r){var n=new Uint8Array(32);return F(n,r,e),g(t,i,n,w)}E.prototype.blocks=function(t,e,r){for(var n,i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k=this.fin?0:2048,M=this.h[0],S=this.h[1],E=this.h[2],x=this.h[3],A=this.h[4],O=this.h[5],j=this.h[6],R=this.h[7],I=this.h[8],P=this.h[9],T=this.r[0],C=this.r[1],B=this.r[2],L=this.r[3],N=this.r[4],D=this.r[5],U=this.r[6],z=this.r[7],W=this.r[8],q=this.r[9];r>=16;)l=h=0,l+=(M+=8191&(n=255&t[e+0]|(255&t[e+1])<<8))*T,l+=(S+=8191&(n>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*q),l+=(E+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*W),l+=(x+=8191&(o>>>7|(a=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*z),h=(l+=(A+=8191&(a>>>4|(s=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*U))>>>13,l&=8191,l+=(O+=s>>>1&8191)*(5*D),l+=(j+=8191&(s>>>14|(u=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*N),l+=(R+=8191&(u>>>11|(c=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*L),l+=(I+=8191&(c>>>8|(f=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*B),d=h+=(l+=(P+=f>>>5|k)*(5*C))>>>13,d+=M*C,d+=S*T,d+=E*(5*q),d+=x*(5*W),h=(d+=A*(5*z))>>>13,d&=8191,d+=O*(5*U),d+=j*(5*D),d+=R*(5*N),d+=I*(5*L),h+=(d+=P*(5*B))>>>13,d&=8191,p=h,p+=M*B,p+=S*C,p+=E*T,p+=x*(5*q),h=(p+=A*(5*W))>>>13,p&=8191,p+=O*(5*z),p+=j*(5*U),p+=R*(5*D),p+=I*(5*N),b=h+=(p+=P*(5*L))>>>13,b+=M*L,b+=S*B,b+=E*C,b+=x*T,h=(b+=A*(5*q))>>>13,b&=8191,b+=O*(5*W),b+=j*(5*z),b+=R*(5*U),b+=I*(5*D),v=h+=(b+=P*(5*N))>>>13,v+=M*N,v+=S*L,v+=E*B,v+=x*C,h=(v+=A*T)>>>13,v&=8191,v+=O*(5*q),v+=j*(5*W),v+=R*(5*z),v+=I*(5*U),m=h+=(v+=P*(5*D))>>>13,m+=M*D,m+=S*N,m+=E*L,m+=x*B,h=(m+=A*C)>>>13,m&=8191,m+=O*T,m+=j*(5*q),m+=R*(5*W),m+=I*(5*z),y=h+=(m+=P*(5*U))>>>13,y+=M*U,y+=S*D,y+=E*N,y+=x*L,h=(y+=A*B)>>>13,y&=8191,y+=O*C,y+=j*T,y+=R*(5*q),y+=I*(5*W),g=h+=(y+=P*(5*z))>>>13,g+=M*z,g+=S*U,g+=E*D,g+=x*N,h=(g+=A*L)>>>13,g&=8191,g+=O*B,g+=j*C,g+=R*T,g+=I*(5*q),w=h+=(g+=P*(5*W))>>>13,w+=M*W,w+=S*z,w+=E*U,w+=x*D,h=(w+=A*N)>>>13,w&=8191,w+=O*L,w+=j*B,w+=R*C,w+=I*T,_=h+=(w+=P*(5*q))>>>13,_+=M*q,_+=S*W,_+=E*z,_+=x*U,h=(_+=A*D)>>>13,_&=8191,_+=O*N,_+=j*L,_+=R*B,_+=I*C,M=l=8191&(h=(h=((h+=(_+=P*T)>>>13)<<2)+h|0)+(l&=8191)|0),S=d+=h>>>=13,E=p&=8191,x=b&=8191,A=v&=8191,O=m&=8191,j=y&=8191,R=g&=8191,I=w&=8191,P=_&=8191,e+=16,r-=16;this.h[0]=M,this.h[1]=S,this.h[2]=E,this.h[3]=x,this.h[4]=A,this.h[5]=O,this.h[6]=j,this.h[7]=R,this.h[8]=I,this.h[9]=P},E.prototype.finish=function(t,e){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>
vendor: 9,430 bytes, line 2
2>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},E.prototype.update=function(t,e,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=t[e+n];if(r-=i,e+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(t,e,i),e+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=t[e+n];this.leftover+=r}};var V=O,Z=j;var G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function X(t,e,r,n){for(var i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k,M,S,E,x,A,O,j,R=new Int32Array(16),I=new Int32Array(16),P=t[0],T=t[1],C=t[2],B=t[3],L=t[4],N=t[5],D=t[6],U=t[7],z=e[0],W=e[1],q=e[2],F=e[3],K=e[4],H=e[5],Y=e[6],V=e[7],Z=0;n>=128;){for(k=0;k<16;k++)M=8*k+Z,R[k]=r[M+0]<<24|r[M+1]<<16|r[M+2]<<8|r[M+3],I[k]=r[M+4]<<24|r[M+5]<<16|r[M+6]<<8|r[M+7];for(k=0;k<80;k++)if(i=P,o=T,a=C,s=B,u=L,c=N,f=D,U,l=z,d=W,p=q,b=F,v=K,m=H,y=Y,V,x=65535&(E=V),A=E>>>16,O=65535&(S=U),j=S>>>16,x+=65535&(E=(K>>>14|L<<18)^(K>>>18|L<<14)^(L>>>9|K<<23)),A+=E>>>16,O+=65535&(S=(L>>>14|K<<18)^(L>>>18|K<<14)^(K>>>9|L<<23)),j+=S>>>16,x+=65535&(E=K&H^~K&Y),A+=E>>>16,O+=65535&(S=L&N^~L&D),j+=S>>>16,x+=65535&(E=G[2*k+1]),A+=E>>>16,O+=65535&(S=G[2*k]),j+=S>>>16,S=R[k%16],A+=(E=I[k%16])>>>16,O+=65535&S,j+=S>>>16,O+=(A+=(x+=65535&E)>>>16)>>>16,x=65535&(E=_=65535&x|A<<16),A=E>>>16,O=65535&(S=w=65535&O|(j+=O>>>16)<<16),j=S>>>16,x+=65535&(E=(z>>>28|P<<4)^(P>>>2|z<<30)^(P>>>7|z<<25)),A+=E>>>16,O+=65535&(S=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25)),j+=S>>>16,A+=(E=z&W^z&q^W&q)>>>16,O+=65535&(S=P&T^P&C^T&C),j+=S>>>16,h=65535&(O+=(A+=(x+=65535&E)>>>16)>>>16)|(j+=O>>>16)<<16,g=65535&x|A<<16,x=65535&(E=b),A=E>>>16,O=65535&(S=s),j=S>>>16,A+=(E=_)>>>16,O+=65535&(S=w),j+=S>>>16,T=i,C=o,B=a,L=s=65535&(O+=(A+=(x+=65535&E)>>>16)>>>16)|(j+=O>>>16)<<16,N=u,D=c,U=f,P=h,W=l,q=d,F=p,K=b=65535&x|A<<16,H=v,Y=m,V=y,z=g,k%16===15)for(M=0;M<16;M++)S=R[M],x=65535&(E=I[M]),A=E>>>16,O=65535&S,j=S>>>16,S=R[(M+9)%16],x+=65535&(E=I[(M+9)%16]),A+=E>>>16,O+=65535&S,j+=S>>>16,w=R[(M+1)%16],x+=65535&(E=((_=I[(M+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),A+=E>>>16,O+=65535&(S=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),j+=S>>>16,w=R[(M+14)%16],A+=(E=((_=I[(M+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,O+=65535&(S=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,R[M]=65535&O|j<<16,I[M]=65535&x|A<<16;x=65535&(E=z),A=E>>>16,O=65535&(S=P),j=S>>>16,S=t[0],A+=(E=e[0])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[0]=P=65535&O|j<<16,e[0]=z=65535&x|A<<16,x=65535&(E=W),A=E>>>16,O=65535&(S=T),j=S>>>16,S=t[1],A+=(E=e[1])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[1]=T=65535&O|j<<16,e[1]=W=65535&x|A<<16,x=65535&(E=q),A=E>>>16,O=65535&(S=C),j=S>>>16,S=t[2],A+=(E=e[2])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[2]=C=65535&O|j<<16,e[2]=q=65535&x|A<<16,x=65535&(E=F),A=E>>>16,O=65535&(S=B),j=S>>>16,S=t[3],A+=(E=e[3])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[3]=B=65535&O|j<<16,e[3]=F=65535&x|A<<16,x=65535&(E=K),A=E>>>16,O=65535&(S=L),j=S>>>16,S=t[4],A+=(E=e[4])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[4]=L=65535&O|j<<16,e[4]=K=65535&x|A<<16,x=65535&(E=H),A=E>>>16,O=65535&(S=N),j=S>>>16,S=t[5],A+=(E=e[5])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[5]=N=65535&O|j<<16,e[5]=H=65535&x|A<<16,x=65535&(E=Y),A=E>>>16,O=65535&(S=D),j=S>>>16,S=t[6],A+=(E=e[6])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[6]=D=65535&O|j<<16,e[6]=Y=65535&x|A<<16,x=65535&(E=V),A=E>>>16,O=65535&(S=U),j=S>>>16,S=t[7],A+=(E=e[7])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[7]=U=65535&O|j<<16,e[7]=V=65535&x|A<<16,Z+=128,n-=128}return n}function J(t,e,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,X(i,o,e,r),r%=128,n=0;n<r;n++)a[n]=e[s-r+n];for(a[r]=128,a[(r=256-128*(r<112?1:0))-9]=0,p(a,r-8,s/536870912|0,s<<3),X(i,o,a,r),n=0;n<8;n++)p(t,8*n,i[n],o[n]);return 0}function Q(t,r){var n=e(),i=e(),o=e(),a=e(),s=e(),u=e(),c=e(),h=e(),l=e();D(n,t[1],t[0]),D(l,r[1],r[0]),U(n,n,l),N(i,t[0],t[1]),N(l,r[0],r[1]),U(i,i,l),U(o,t[3],r[3]),U(o,o,f),U(a,t[2],r[2]),N(a,a,a),D(s,i,n),D(u,a,o),N(c,a,o),N(h,i,n),U(t[0],s,u),U(t[1],h,c),U(t[2],c,u),U(t[3],s,h)}function $(t,e,r){var n;for(n=0;n<4;n++)P(t[n],e[n],r)}function tt(t,r){var n=e(),i=e(),o=e();W(o,r[2]),U(n,r[0],o),U(i,r[1],o),T(t,i),t[31]^=B(n)<<7}function et(t,e,r){var n,i;for(R(t[0],a),R(t[1],s),R(t[2],s),R(t[3],a),i=255;i>=0;--i)$(t,e,n=r[i/8|0]>>(7&i)&1),Q(e,t),Q(t,t),$(t,e,n)}function rt(t,r){var n=[e(),e(),e(),e()];R(n[0],h),R(n[1],l),R(n[2],s),U(n[3],h,l),et(t,n,r)}function nt(t,r,i){var o,a=new Uint8Array(64),s=[e(),e(),e(),e()];for(i||n(r,32),J(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,rt(s,a),tt(t,s),o=0;o<32;o++)r[o+32]=t[o];return 0}var it=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ot(t,e){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)e[i]+=r-16*e[n]*it[i-(n-32)],r=Math.floor((e[i]+128)/256),e[i]-=256*r;e[i]+=r,e[n]=0}for(r=0,i=0;i<32;i++)e[i]+=r-(e[31]>>4)*it[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*it[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function at(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;ot(t,r)}function st(t,r,n,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),f=new Float64Array(64),h=[e(),e(),e(),e()];J(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var l=n+64;for(o=0;o<n;o++)t[64+o]=r[o];for(o=0;o<32;o++)t[32+o]=s[32+o];for(J(c,t.subarray(32),n+32),at(c),rt(h,c),tt(t,h),o=32;o<64;o++)t[o]=i[o];for(J(u,t,n+64),at(u),o=0;o<64;o++)f[o]=0;for(o=0;o<32;o++)f[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)f[o+a]+=u[o]*s[a];return ot(t.subarray(32),f),l}function ut(t,r,n,i){var o,u=new Uint8Array(32),f=new Uint8Array(64),h=[e(),e(),e(),e()],l=[e(),e(),e(),e()];if(n<64)return-1;if(function(t,r){var n=e(),i=e(),o=e(),u=e(),f=e(),h=e(),l=e();return R(t[2],s),L(t[1],r),z(o,t[1]),U(u,o,c),D(o,o,t[2]),N(u,t[2],u),z(f,u),z(h,f),U(l,h,f),U(n,l,o),U(n,n,u),q(n,n),U(n,n,o),U(n,n,u),U(n,n,u),U(t[0],n,u),z(i,t[0]),U(i,i,u),C(i,o)&&U(t[0],t[0],d),z(i,t[0]),U(i,i,u),C(i,o)?-1:(B(t[0])===r[31]>>7&&D(t[0],a,t[0]),U(t[3],t[0],t[1]),0)}(l,i))return-1;for(o=0;o<n;o++)t[o]=r[o];for(o=0;o<32;o++)t[o+32]=i[o];if(J(f,t,n),at(f),et(h,l,f),rt(l,r.subarray(32)),Q(h,l),tt(u,h),n-=64,m(r,0,u,0)){for(o=0;o<n;o++)t[o]=0;return-1}for(o=0;o<n;o++)t[o]=r[o+64];return n}var ct=16,ft=64,ht=32,lt=64;function dt(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function pt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function bt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:g,crypto_stream_xor:S,crypto_stream
2:M,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:k,crypto_onetimeauth:x,crypto_onetimeauth_verify:A,crypto_verify_16:v,crypto_verify_32:m,crypto_secretbox:O,crypto_secretbox_open:j,crypto_scalarmult:F,crypto_scalarmult_base:K,crypto_box_beforenm:Y,crypto_box_afternm:V,crypto_box:function(t,e,r,n,i,o){var a=new Uint8Array(32);return Y(a,i,o),V(t,e,r,n,a)},crypto_box_open:function(t,e,r,n,i,o){var a=new Uint8Array(32);return Y(a,i,o),Z(t,e,r,n,a)},crypto_box_keypair:H,crypto_hash:J,crypto_sign:st,crypto_sign_keypair:nt,crypto_sign_open:ut,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ct,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ft,crypto_sign_PUBLICKEYBYTES:ht,crypto_sign_SECRETKEYBYTES:lt,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:e,D:c,L:it,pack25519:T,unpack25519:L,M:U,A:N,S:z,Z:D,pow2523:q,add:Q,set25519:R,modL:ot,scalarmult:et,scalarbase:rt},t.randomBytes=function(t){var e=new Uint8Array(t);return n(e,t),e},t.secretbox=function(t,e,r){pt(t,e,r),dt(r,e);for(var n=new Uint8Array(32+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+32]=t[o];return O(i,n,n.length,e,r),i.subarray(ct)},t.secretbox.open=function(t,e,r){pt(t,e,r),dt(r,e);for(var n=new Uint8Array(ct+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+ct]=t[o];return n.length<32||0!==j(i,n,n.length,e,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=ct,t.scalarMult=function(t,e){if(pt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var r=new Uint8Array(32);return F(r,t,e),r},t.scalarMult.base=function(t){if(pt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return K(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox(e,r,o)},t.box.before=function(t,e){pt(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var r=new Uint8Array(32);return Y(r,t,e),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox.open(e,r,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return H(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(pt(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return K(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(pt(t,e),e.length!==lt)throw new Error("bad secret key size");var r=new Uint8Array(ft+t.length);return st(r,t,t.length,e),r},t.sign.open=function(t,e){if(pt(t,e),e.length!==ht)throw new Error("bad public key size");var r=new Uint8Array(t.length),n=ut(r,t,t.length,e);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(ft),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached.verify=function(t,e,r){if(pt(t,e,r),e.length!==ft)throw new Error("bad signature size");if(r.length!==ht)throw new Error("bad public key size");var n,i=new Uint8Array(ft+t.length),o=new Uint8Array(ft+t.length);for(n=0;n<ft;n++)i[n]=e[n];for(n=0;n<t.length;n++)i[n+ft]=t[n];return ut(o,i,i.length,r)>=0},t.sign.keyPair=function(){var t=new Uint8Array(ht),e=new Uint8Array(lt);return nt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(pt(t),t.length!==lt)throw new Error("bad secret key size");for(var e=new Uint8Array(ht),r=0;r<e.length;r++)e[r]=t[32+r];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(pt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(ht),r=new Uint8Array(lt),n=0;n<32;n++)r[n]=t[n];return nt(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=ht,t.sign.secretKeyLength=lt,t.sign.seedLength=32,t.sign.signatureLength=ft,t.hash=function(t){pt(t);var e=new Uint8Array(64);return J(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return pt(t,e),0!==t.length&&0!==e.length&&(t.length===e.length&&0===b(t,0,e,0,t.length))},t.setPRNG=function(t){n=t},function(){var e="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(e&&e.getRandomValues){t.setPRNG((function(t,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)e.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)t[n]=i[n];bt(i)}))}else(e=r(408))&&e.randomBytes&&t.setPRNG((function(t,r){var n,i=e.randomBytes(r);for(n=0;n<r;n++)t[n]=i[n];bt(i)}))}()}(t.exports?t.exports:self.nacl=self.nacl||{})},function(t,e,r){"use strict";var n=e,i=r(72),o=r(56),a=r(235);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0===(1&u)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0===(1&c)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"===typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new i(t,"hex","le")}},function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,r){var n=r(49);t.exports=function(t,e,r){return new n(t,r).compare(new n(e,r))}},function(t,e,r){var n=r(143),i=r(70),o=r(34),a=r(36),s=function(){"use strict";function t(e,r){var n=this;if(o(this,t),r=c(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof f)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(t){return n.parseRange(t.trim())})).filter((function(t){return t.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(e));if(this.set.length>1){var a=this.set[0];if(this.set=this.set.filter((function(t){return!g(t[0])})),0===this.set.length)this.set=[a];else if(this.set.length>1){var s,u=i(this.set);try{for(u.s();!(s=u.n()).done;){var h=s.value;if(1===h.length&&w(h[0])){this.set=[h];break}}}catch(l){u.e(l)}finally{u.f()}}}this.format()}return a(t,[{key:"format",value:function(){return this.range=this.set.map((function(t){return t.join(" ").trim()})).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(t){var e=this;t=t.trim();var r=Object.keys(this.options).join(","),o="parseRange:".concat(r,":").concat(t),a=u.get(o);if(a)return a;var s=this.options.loose,c=s?p[b.HYPHENRANGELOOSE]:p[b.HYPHENRANGE];t=t.replace(c,P(this.options.includePrerelease)),h("hyphen replace",t),t=t.replace(p[b.COMPARATORTRIM],v),h("comparator trim",t,p[b.COMPARATORTRIM]),t=(t=(t=t.replace(p[b.TILDETRIM],m)).replace(p[b.CARETTRIM],y)).split(/\s+/).join(" ");var l,d=s?p[b.COMPARATORLOOSE]:p[b.COMPARATOR],w=t.split(" ").map((function(t){return k(t,e.options)})).join(" ").split(/\s+/).map((function(t){return I(t,e.options)})).filter(this.options.loose?function(t){return!!t.match(d)}:function(){return!0}).map((function(t){return new f(t,e.options)})),_=(w.length,new Map),M=i(w);try{for(M.s();!(l=M.n()).done;){var S=l.value;if(g(S))return[S];_.set(S.value,S)}}catch(x){M.e(x)}finally{M.f()}_.size>1&&_.has("")&&_.delete("");var E=n(_.values());return u.set(o,E),E}},{key:"intersects",value:function(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((function(t){return _(t,r)&&e.set.some((function(e){return _(e,r)&&t.every((function(t){return e.every((function(e){return t.intersects(e,r)}))}))}))}))}},{key:"test",value:function(t){if(!t)return!1;if("string"===typeof t)try{t=new l(t,this.options)}catch(r){return!1}for(var e=0;e<this.set.length;e++)if(T(this.set[e],t,this.options))return!0;return!1}}]),t}();t.exports=s;var u=new(r(432))({max:1e3}),c=r(146),f=r(148),h=r(145),l=r(49),d=r(98),p=d.re,b=d.t,v=d.comparatorTrimReplace,m=d.tildeTrimReplace,y=d.caretTrimReplace,g=function(t){return"<0.0.0-0"===t.value},w=function(t){return""===t.value},_=function(t,e){for(var r=!0,n=t.slice(),i=n.pop();r&&n.length;)r=n.every((function(t){return i.intersects(t,e)})),i=n.pop();return r},k=function(t,e){return h("comp",t,e),t=x(t,e),h("caret",t),t=S(t,e),h("tildes",t),t=O(t,e),h("xrange",t),t=R(t,e),h("stars",t),t},M=function(t){return!t||"x"===t.toLowerCase()||"*"===t},S=function(t,e){return t.trim().split(/\s+/).map((function(t){return E(t,e)})).join(" ")},E=function(t,e){var r=e.loose?p[b.TILDELOOSE]:p[b.TILDE];return t.replace(r,(function(e,r,n,i,o){var a;return h("tilde",t,e,r,n,i,o),M(r)?a="":M(n)?a=">=".concat(r,".0.0 <").concat(+r+1,".0.0-0"):M(i)?a=">=".concat(r,".").concat(n,".0 <").concat(r,".").concat(+n+1,".0-0"):o?(h("replaceTilde pr",o),a=">=".concat(r,".").concat(n,".").concat(i,"-").concat(o," <").concat(r,".").concat(+n+1,".0-0")):a=">=".concat(r,".").concat(n,".").concat(i," <").concat(r,".").concat(+n+1,".0-0"),h("tilde return",a),a}))},x=function(t,e){return t.trim().split(/\s+/).map((function(t){return A(t,e)})).join(" ")},A=function(t,e){h("caret",t,e);var r=e.loose?p[b.CARETLOOSE]:p[b.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(function(e,r,i,o,a){var s;return h("caret",t,e,r,i,o,a),M(r)?s="":M(i)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):M(o)?s="0"===r?">=".concat(r,".").concat(i,".0").concat(n," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".0").concat(n," <").concat(+r+1,".0.0-0"):a?(h("replaceCaret pr",a),s="0"===r?"0"===i?">=".concat(r,".").concat(i,".").concat(o,"-").concat(a," <").concat(r,".").concat(i,".").concat(+o+1,"-0"):">=".concat(r,".").concat(i,".").concat(o,"-").concat(a," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".").concat(o,"-").concat(a," <").concat(+r+1,".0.0-0")):(h("no pr"),s="0"===r?"0"===i?">=".concat(r,".").concat(i,".").concat(o).concat(n," <").concat(r,".").concat(i,".").concat(+o+1,"-0"):">=".concat(r,".").concat(i,".").concat(o).concat(n," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".").concat(o," <").concat(+r+1,".0.0-0")),h("caret return",s),s}))},O=function(t,e){return h("replaceXRanges",t,e),t.split(/\s+/).map((function(t){return j(t,e)})).join(" ")},j=function(t,e){t=t.trim();var r=e.loose?p[b.XRANGELOOSE]:p[b.XRANGE];return t.replace(r,(function(r,n,i,o,a,s){h("xRange",t,r,n,i,o,a,s);var u=M(i),c=u||M(o),f=c||M(a),l=f;return"="===n&&l&&(n=""),s=e.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&l?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(s="-0"),r="".concat(n+i,".").concat(o,".").concat(a).concat(s)):c?r=">=".concat(i,".0.0").concat(s," <").concat(+i+1,".0.0-0"):f&&(r=">=".concat(i,".").concat(o,".0").concat(s," <").concat(i,".").concat(+o+1,".0-0")),h("xRange return",r),r}))},R=function(t,e){return h("replaceStars",t,e),t.trim().replace(p[b.STAR],"")},I=function(t,e){return h("replaceGTE0",t,e),t.trim().replace(p[e.includePrerelease?b.GTE0PRE:b.GTE0],"")},P=function(t){return function(e,r,n,i,o,a,s,u,c,f,h,l,d){return r=M(n)?"":M(i)?">=".concat(n,".0.0").concat(t?"-0":""):M(o)?">=".concat(n,".").concat(i,".0").concat(t?"-0":""):a?">=".concat(r):">=".concat(r).concat(t?"-0":""),u=M(c)?"":M(f)?"<".concat(+c+1,".0.0-0"):M(h)?"<".concat(c,".").concat(+f+1,".0-0"):l?"<=".concat(c,".").concat(f,".").concat(h,"-").concat(l):t?"<".concat(c,".").concat(f,".").concat(+h+1,"-0"):"<=".concat(u),"".concat(r," ").concat(u).trim()}},T=function(t,e,r){for(var n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(var i=0;i<t.length;i++)if(h(t[i].semver),t[i].semver!==f.ANY&&t[i].semver.prerelease.length>0){var o=t[i].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}},function(t,e,r){"use strict";var n,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!==t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==o&&t.removeListener("error",o),r([].slice.call(arguments))}var o;"error"!==e&&(o=function(r){t.removeListener(e,i),n(r)},t.once("error",o)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o,a,s;if(c(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if("function"===typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(t))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function l(){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 d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):v(i,i.length)}function b(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!==typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),s.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},s.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||a(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},s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,i=th
2is._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)o(u,this,e);else{var c=u.length,f=v(u,c);for(r=0;r<c;++r)o(f[r],this,e)}return!0},s.prototype.addListener=function(t,e){return h(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return h(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,d(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,d(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,o,a;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},s.prototype.listenerCount=b,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(9),i=r(10),o=r(48),a=r.n(o),s=r(28),u=r(62),c=function(){function t(){Object(n.a)(this,t)}return Object(i.a)(t,null,[{key:"fieldLayout",value:function(e,r){var n=void 0!==e.name?a()(e.name):void 0;switch(e.type){case"bool":return s.bool(n);case"u8":return s.u8(n);case"i8":return s.i8(n);case"u16":return s.u16(n);case"i16":return s.i16(n);case"u32":return s.u32(n);case"i32":return s.i32(n);case"u64":return s.u64(n);case"i64":return s.i64(n);case"u128":return s.u128(n);case"i128":return s.i128(n);case"bytes":return s.vecU8(n);case"string":return s.str(n);case"publicKey":return s.publicKey(n);default:if(e.type.vec)return s.vec(t.fieldLayout({name:void 0,type:e.type.vec},r),n);if(e.type.option)return s.option(t.fieldLayout({name:void 0,type:e.type.option},r),n);if(e.type.defined){if(void 0===r)throw new u.a("User defined types not provided");var i=r.filter((function(t){return t.name===e.type.defined}));if(1!==i.length)throw new u.a("Type not found: ".concat(JSON.stringify(e)));return t.typeDefLayout(i[0],r,n)}if(e.type.array){var o=e.type.array[0],c=e.type.array[1],f=t.fieldLayout({name:void 0,type:o},r);return s.array(f,c,n)}throw new Error("Not yet implemented: ".concat(e))}}},{key:"typeDefLayout",value:function(e,r,n){if("struct"===e.type.kind){var i=e.type.fields.map((function(e){return t.fieldLayout(e,r)}));return s.struct(i,n)}if("enum"===e.type.kind){var o=e.type.variants.map((function(e){var n=a()(e.name);if(void 0===e.fields)return s.struct([],n);var i=e.fields.map((function(e){if(void 0===e.name)throw new Error("Tuple enum variants not yet implemented.");return t.fieldLayout(e,r)}));return s.struct(i,n)}));return void 0!==n?s.rustEnum(o).replicate(n):s.rustEnum(o,n)}throw new Error("Unknown type kint: ".concat(e))}}]),t}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return c}));var n=r(10),i=r(9),o=r(21),a=r(22),s=r(77),u=function(t){Object(o.a)(r,t);var e=Object(a.a)(r);function r(){return Object(i.a)(this,r),e.apply(this,arguments)}return r}(Object(s.a)(Error)),c=function(t){Object(o.a)(r,t);var e=Object(a.a)(r);function r(t,n){var o;Object(i.a)(this,r);for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];return(o=e.call.apply(e,[this].concat(s))).code=t,o.msg=n,o}return Object(n.a)(r,[{key:"toString",value:function(){return this.msg}}],[{key:"parse",value:function(t,e){var n,i=t.toString().split("custom program error: ");if(2!==i.length)return null;try{n=parseInt(i[1])}catch(a){return null}var o=e.get(n);return void 0!==o||void 0!==(o=f.get(n))?new r(n,o):null}}]),r}(Object(s.a)(Error)),f=new Map([[100,"8 byte instruction identifier not provided"],[101,"Fallback functions are not supported"],[102,"The program could not deserialize the given instruction"],[103,"The program could not serialize the given instruction"],[120,"The program was compiled without idl instructions"],[121,"The transaction was given an invali
2d program for the IDL instruction"],[140,"A mut constraint was violated"],[141,"A has_one constraint was violated"],[142,"A signer constraint was violated"],[143,"A raw constraint was violated"],[144,"An owner constraint was violated"],[145,"A rent exempt constraint was violated"],[146,"A seeds constraint was violated"],[147,"An executable constraint was violated"],[148,"A state constraint was violated"],[149,"An associated constraint was violated"],[150,"An associated init constraint was violated"],[151,"A close constraint was violated"],[152,"An address constraint was violated"],[160,"The account discriminator was already set on this account"],[161,"No 8 byte discriminator was found on the account"],[162,"8 byte discriminator did not match what was expected"],[163,"Failed to deserialize the account"],[164,"Failed to serialize the account"],[165,"Not enough account keys given to the instruction"],[166,"The given account is not mutable"],[167,"The given account is not owned by the executing program"],[180,"The given state account does not have the correct address"],[299,"The API being used is deprecated and should no longer be used"]])},function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}));var n=function(t){return t.scrollTop};function i(t,e){var r=t.timeout,n=t.style,i=void 0===n?{}:n;return{duration:i.transitionDuration||"number"===typeof r?r:r[e.mode]||0,delay:i.transitionDelay}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return be})),r.d(e,"b",(function(){return ae})),r.d(e,"c",(function(){return ye}));for(var n=r(1),i=r.n(n),o=r(4),a=r(20),s=r(343),u=r(75),c=r(18),f=r(9),h=r(10),l=r(44),d=r(21),p=r(22),b=r(5),v=r.n(b),m=r(46),y=r.n(m),g=r(11),w={},_={byteLength:function(t){var e=O(t),r=e[0],n=e[1];return 3*(r+n)/4-n},toByteArray:function(t){var e,r,n=O(t),i=n[0],o=n[1],a=new S(function(t,e,r){return 3*(e+r)/4-r}(0,i,o)),s=0,u=o>0?i-4:i;for(r=0;r<u;r+=4)e=M[t.charCodeAt(r)]<<18|M[t.charCodeAt(r+1)]<<12|M[t.charCodeAt(r+2)]<<6|M[t.charCodeAt(r+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=255&e;2===o&&(e=M[t.charCodeAt(r)]<<2|M[t.charCodeAt(r+1)]>>4,a[s++]=255&e);1===o&&(e=M[t.charCodeAt(r)]<<10|M[t.charCodeAt(r+1)]<<4|M[t.charCodeAt(r+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e);return a},fromByteArray:function(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,s=r-n;a<s;a+=o)i.push(j(t,a,a+o>s?s:a+o));1===n?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"="));return i.join("")}},k=[],M=[],S="undefined"!==typeof Uint8Array?Uint8Array:Array,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=0,A=E.length;x<A;++x)k[x]=E[x],M[E.charCodeAt(x)]=x;function O(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function j(t,e,r){for(var n,i,o=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(k[(i=n)>>18&63]+k[i>>12&63]+k[i>>6&63]+k[63&i]);return o.join("")}M["-".charCodeAt(0)]=62,M["_".charCodeAt(0)]=63;var R={read:function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,h=r?i-1:0,l=r?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+t[e+h],h+=l,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+h],h+=l,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},write:function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,h=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=f?(s=0,a=f):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+d]=255&a,d+=p,a/=256,c-=8);t[r+d-p]|=128*b}};!function(t){var e=_,r=R,n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=function(t){+t!=t&&(t=0);return a.alloc(+t)},t.INSPECT_MAX_BYTES=50;var i=2147483647;function o(t){if(t>
vendor: 5,785 bytes, line 2
2i)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return s(t,e,r)}function s(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|y(t,e),n=o(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(tt(t,Uint8Array)){var e=new Uint8Array(t);return v(e.buffer,e.byteOffset,e.byteLength)}return b(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(tt(t,ArrayBuffer)||t&&tt(t.buffer,ArrayBuffer))return v(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(tt(t,SharedArrayBuffer)||t&&tt(t.buffer,SharedArrayBuffer)))return v(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);var i=function(t){if(a.isBuffer(t)){var e=0|m(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||et(t.length)?o(0):b(t);if("Buffer"===t.type&&Array.isArray(t.data))return b(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return u(t),o(t<0?0:0|m(t))}function b(t){for(var e=t.length<0?0:0|m(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function v(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,a.prototype),n}function m(t){if(t>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function y(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||tt(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return I(this,e,r);case"ascii":return T(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return j(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function k(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),et(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:M(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):M(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function M(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var h=!0,l=0;l<u;l++)if(c(t,o+l)!==c(e,l)){h=!1;break}if(h)return o}return-1}function S(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o,a=e.length;for(n>a/2&&(n=a/2),o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(et(s))return o;t[r+o]=s}return o}function E(t,e,r,n){return $(J(e,t.length-r),t,r,n)}function x(t,e,r,n){return $(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function A(t,e,r,n){return $(Q(e),t,r,n)}function O(t,e,r,n){return $(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function j(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function I(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var u=void 0,c=void 0,f=void 0,h=void 0;switch(s){case 1:o<128&&(a=o);break;
vendor: 4,129 bytes, line 2
2case 2:128===(192&(u=t[i+1]))&&(h=(31&o)<<6|63&u)>127&&(a=h);break;case 3:u=t[i+1],c=t[i+2],128===(192&u)&&128===(192&c)&&(h=(15&o)<<12|(63&u)<<6|63&c)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:u=t[i+1],c=t[i+2],f=t[i+3],128===(192&u)&&128===(192&c)&&128===(192&f)&&(h=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&f)>65535&&h<1114112&&(a=h)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return function(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=P));return r}(n)}t.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(r){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return s(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return function(t,e,r){return u(t),t<=0?o(t):void 0!==e?"string"===typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}(t,e,r)},a.allocUnsafe=function(t){return c(t)},a.allocUnsafeSlow=function(t){return c(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(tt(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),tt(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},a.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}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(tt(o,Uint8Array))i+o.length>n.length?(a.isBuffer(o)||(o=a.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else{if(!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},a.byteLength=y,a.prototype._isBuffer=!0,a.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 e=0;e<t;e+=2)w(this,e,e+1);return this},a.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 e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},a.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 e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(tt(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!
vendor: 11,914 bytes, line 2
2a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),u=Math.min(o,s),c=this.slice(n,i),f=t.slice(e,r),h=0;h<u;++h)if(c[h]!==f[h]){o=c[h],s=f[h];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return k(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return k(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return S(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return x(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function T(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function C(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function B(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=rt[t[o]];return i}function L(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function N(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function U(t,e,r,n,i){V(e,n,i,t,r,7);var o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;var a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function z(t,e,r,n,i){V(e,n,i,t,r,7);var o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;var a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function W(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(t,e,n,i,o){return e=+e,n>>>=0,o||W(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function F(t,e,n,i,o){return e=+e,n>>>=0,o||W(t,0,n,8),r.write(t,e,n,i,52,8),n+8}a.prototype.slice=function(t,e){var r=this.length;(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);var n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readBigUInt64LE=nt((function(t){Z(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);var n=e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24),i=this[++t]+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(i)<<BigInt(32))})),a.prototype.readBigUInt64BE=nt((function(t){Z(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);var n=e*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t],i=this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readBigInt64LE=nt((function(t){Z(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);var n=this[t+4]+this[t+5]*Math.pow(2,8)+this[t+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24))})),a.prototype.readBigInt64BE=nt((function(t){Z(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);var n=(e<<24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r)})),a.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),r.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),r.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),r.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),r.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||D(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||D(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigUInt64LE=nt((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return U(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=nt((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigInt64LE=nt((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return U(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=nt((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(t,e,r){return q(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return q(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},a.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),u=s.length;
2if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=s[o%u]}return this};var K={};function H(t,e,r){K[t]=function(r){Object(d.a)(i,r);var n=Object(p.a)(i);function i(){var r;return Object(f.a)(this,i),r=n.call(this),Object.defineProperty(Object(l.a)(r),"message",{value:e.apply(Object(l.a)(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(t,"]"),r.stack,delete r.name,r}return Object(h.a)(i,[{key:"code",get:function(){return t},set:function(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(t,"]: ").concat(this.message)}}]),i}(r)}function Y(t){for(var e="",r=t.length,n="-"===t[0]?1:0;r>=n+4;r-=3)e="_".concat(t.slice(r-3,r)).concat(e);return"".concat(t.slice(0,r)).concat(e)}function V(t,e,r,n,i,o){if(t>r||t<e){var a,s="bigint"===typeof e?"n":"";throw a=o>3?0===e||e===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(o+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(o+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(s):">= ".concat(e).concat(s," and <= ").concat(r).concat(s),new K.ERR_OUT_OF_RANGE("value",a,t)}!function(t,e,r){Z(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||G(e,t.length-(r+1))}(n,i,o)}function Z(t,e){if("number"!==typeof t)throw new K.ERR_INVALID_ARG_TYPE(e,"number",t)}function G(t,e,r){if(Math.floor(t)!==t)throw Z(t,r),new K.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new K.ERR_BUFFER_OUT_OF_BOUNDS;throw new K.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(e),t)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat(typeof e)}),TypeError),H("ERR_OUT_OF_RANGE",(function(t,e,r){var n='The value of "'.concat(t,'" is out of range.'),i=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?i=Y(String(r)):"bigint"===typeof r&&(i=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(i=Y(i)),i+="n"),n+=" It must be ".concat(e,". Received ").concat(i)}),RangeError);var X=/[^+/0-9A-Za-z-_]/g;function J(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Q(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function $(t,e,r,n){var i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function tt(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function et(t){return t!==t}var rt=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}();function nt(t){return"undefined"===typeof BigInt?it:t}function it(){throw new Error("BigInt not supported")}}(w);var I="undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},P="function"===typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t};function T(t,e){var r={seen:[],stylize:B};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),U(e)?r.showHidden=e:e&&X(r,e),q(r.showHidden)&&(r.showHidden=!1),q(r.depth)&&(r.depth=2),q(r.colors)&&(r.colors=!1),q(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=C),L(r,t,r.depth)}function C(t,e){var r=T.styles[e];return r?"\x1b["+T.colors[r][0]+"m"+t+"\x1b["+T.colors[r][1]+"m":t}function B(t,e){return t}function L(t,e,r){if(t.customInspect&&e&&V(e.inspect)&&e.inspect!==T&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return W(n)||(n=L(t,n,r)),n}var i=function(t,e){if(q(e))return t.stylize("undefined","undefined");if(W(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";
vendor: 4,125 bytes, line 2
2return t.stylize(r,"string")}if(n=e,"number"===typeof n)return t.stylize(""+e,"number");var n;if(U(e))return t.stylize(""+e,"boolean");if(z(e))return t.stylize("null","null")}(t,e);if(i)return i;var o=Object.keys(e),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),Y(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return N(e);if(0===o.length){if(V(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(F(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(H(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Y(e))return N(e)}var u,c,f="",h=!1,l=["{","}"];(u=e,Array.isArray(u)&&(h=!0,l=["[","]"]),V(e))&&(f=" [Function"+(e.name?": "+e.name:"")+"]");return F(e)&&(f=" "+RegExp.prototype.toString.call(e)),H(e)&&(f=" "+Date.prototype.toUTCString.call(e)),Y(e)&&(f=" "+N(e)),0!==o.length||h&&0!=e.length?r<0?F(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),c=h?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)J(e,String(a))?o.push(D(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(D(t,e,r,n,i,!0))})),o}(t,e,r,a,o):o.map((function(n){return D(t,e,r,a,n,h)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(c,f,l)):l[0]+f+l[1]}function N(t){return"["+Error.prototype.toString.call(t)+"]"}function D(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),J(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=z(r)?L(t,u.value,null):L(t,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),q(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function U(t){return"boolean"===typeof t}function z(t){return null===t}function W(t){return"string"===typeof t}function q(t){return void 0===t}function F(t){return K(t)&&"[object RegExp]"===G(t)}function K(t){return"object"===typeof t&&null!==t}function H(t){return K(t)&&"[object Date]"===G(t)}function Y(t){return K(t)&&("[object Error]"===G(t)||t instanceof Error)}function V(t){return"function"===typeof t}function Z(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function G(t){return Object.prototype.toString.call(t)}function X(t,e){if(!e||!K(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function J(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Q(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}T.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]},T.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var $,tt=Object.prototype.hasOwnProperty,et=Object.keys||function(t){var e=[];for(var r in t)tt.call(t,r)&&e.push(r);return e},rt=Array.prototype.slice;function nt(){return"undefined"!==typeof $?$:$="foo"===function(){}.name}function it(t){return Object.prototype.toString.call(t)}function ot(t){return!w.isBuffer(t)&&("function"===typeof I.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}
2function at(t,e){t||lt(t,!0,e,"==",dt)}var st=/\s*function\s+([^\(\s]*)\s*/;function ut(t){if(V(t)){if(nt())return t.name;var e=t.toString().match(st);return e&&e[1]}}function ct(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 ft(ht(t.actual),128)+" "+t.operator+" "+ft(ht(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||lt;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=ut(e),o=n.indexOf("\n"+i);if(o>=0){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}}function ft(t,e){return"string"===typeof t?t.length<e?t:t.slice(0,e):t}function ht(t){if(nt()||!V(t))return T(t);var e=ut(t);return"[Function"+(e?": "+e:"")+"]"}function lt(t,e,r,n,i){throw new ct({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function dt(t,e){t||lt(t,!0,e,"==",dt)}function pt(t,e,r,n){if(t===e)return!0;if(w.isBuffer(t)&&w.isBuffer(e))return 0===Q(t,e);if(H(t)&&H(e))return t.getTime()===e.getTime();if(F(t)&&F(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(ot(t)&&ot(e)&&it(t)===it(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===Q(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(w.isBuffer(t)!==w.isBuffer(e))return!1;var i=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==i&&i===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(Z(t)||Z(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=bt(t),o=bt(e);if(i&&!o||!i&&o)return!1;if(i)return pt(t=rt.call(t),e=rt.call(e),r);var a,s,u=et(t),c=et(e);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),s=u.length-1;s>=0;s--)if(u[s]!==c[s])return!1;for(s=u.length-1;s>=0;s--)if(!pt(t[a=u[s]],e[a],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function bt(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function vt(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(r){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function mt(t,e,r,n){var i;if("function"!==typeof e)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(r){e=r}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&<(i,r,"Missing expected exception"+n);var o="string"===typeof n,a=!t&&i&&!r;if((!t&&Y(i)&&o&&vt(i,r)||a)&<(i,r,"Got unwanted exception"+n),t&&i&&r&&!vt(i,r)||!t&&i)throw i}at.AssertionError=ct,P(ct,Error),at.fail=lt,at.ok=dt,at.equal=function t(e,r,n){e!=r&<(e,r,n,"==",t)},at.notEqual=function t(e,r,n){e==r&<(e,r,n,"!=",t)},at.deepEqual=function t(e,r,n){pt(e,r,!1)||lt(e,r,n,"deepEqual",t)},at.deepStrictEqual=function t(e,r,n){pt(e,r,!0)||lt(e,r,n,"deepStrictEqual",t)},at.notDeepEqual=function t(e,r,n){pt(e,r,!1)&<(e,r,n,"notDeepEqual",t)},at.notDeepStrictEqual=function t(e,r,n){pt(e,r,!0)&<(e,r,n,"notDeepStrictEqual",t)},at.strictEqual=function t(e,r,n){e!==r&<(e,r,n,"===",t)},at.notStrictEqual=function t(e,r,n){e===r&<(e,r,n,"!==",t)},at.throws=function(t,e,r){mt(!0,t,e,r)},at.doesNotThrow=function(t,e,r){mt(!1,t,e,r)},at.ifError=function(t){if(t)throw t};var yt={},gt=function(){function t(e,r){if(Object(f.a)(this,t),!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=r}return Object(h.a)(t,[{key:"makeDestinationObject",value:function(){return{}}},{key:"decode",value:function(t,e){throw new Error("Layout is abstract")}},{key:"encode",value:function(t,e,r){throw new Error("Layout is abstract")}},{key:"getSpan",value:function(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}},{key:"fromArray",value:function(t){}}
2]),t}();function wt(t,e){return e.property?t+"["+e.property+"]":t}yt.Layout=gt,yt.nameWithProperty=wt,yt.bindConstructorLayout=function(t,e){if("function"!==typeof t)throw new TypeError("Class must be constructor");if(t.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof gt))throw new TypeError("layout must be a Layout");if(e.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,r){return e.encode(this,t,r)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,r){return e.decode(t,r)},writable:!0})};var _t=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(){return Object(f.a)(this,r),e.apply(this,arguments)}return Object(h.a)(r,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),r}(gt),kt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;if(Object(f.a)(this,r),void 0===t&&(t=1),!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");return(i=e.call(this,-1,n)).elementSpan=t,i}return Object(h.a)(r,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=t.length-e;return Math.floor(r/this.elementSpan)}},{key:"encode",value:function(t,e,r){return 0}}]),r}(_t),Mt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n,i){var o;if(Object(f.a)(this,r),!(t instanceof gt))throw new TypeError("layout must be a Layout");if(void 0===n)n=0;else if(!Number.isInteger(n))throw new TypeError("offset must be integer or undefined");return(o=e.call(this,t.span,i||t.property)).layout=t,o.offset=n,o}return Object(h.a)(r,[{key:"isCount",value:function(){return this.layout instanceof St||this.layout instanceof Et}},{key:"decode",value:function(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),this.layout.encode(t,e,r+this.offset)}}]),r}(_t),St=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;if(Object(f.a)(this,r),6<(i=e.call(this,t,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readUIntLE(e,this.span)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeUIntLE(t,r,this.span),this.span}}]),r}(gt),Et=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;if(Object(f.a)(this,r),6<(i=e.call(this,t,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readUIntBE(e,this.span)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeUIntBE(t,r,this.span),this.span}}]),r}(gt),xt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;if(Object(f.a)(this,r),6<(i=e.call(this,t,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readIntLE(e,this.span)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeIntLE(t,r,this.span),this.span}}]),r}(gt),At=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;if(Object(f.a)(this,r),6<(i=e.call(this,t,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readIntBE(e,this.span)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeIntBE(t,r,this.span),this.span}}]),r}(gt),Ot=Math.pow(2,32);function jt(t){var e=Math.floor(t/Ot);return{hi32:e,lo32:t-e*Ot}}function Rt(t,e){return t*Ot+e}var It=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,8,t)}return Object(h.a)(r,[{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=t.readUInt32LE(e);return Rt(t.readUInt32LE(e+4),r)}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=jt(t);return e.writeUInt32LE(n.lo32,r),e.writeUInt32LE(n.hi32,r+4),8}}]),r}(gt),Pt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,8,t)}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),Rt(t.readUInt32BE(e),t.readUInt32BE(e+4))}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=jt(t);return e.writeUInt32BE(n.hi32,r),e.writeUInt32BE(n.lo32,r+4),8}}]),r}(gt),Tt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,8,t)}return Object(h.a)(r,[{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=t.readUInt32LE(e);return Rt(t.readInt32LE(e+4),r)}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=jt(t);return e.writeUInt32LE(n.lo32,r),e.writeInt32LE(n.hi32,r+4),8}}]),r}(gt),Ct=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,8,t)}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),Rt(t.readInt32BE(e),t.readUInt32BE(e+4))}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=jt(t);return e.writeInt32BE(n.hi32,r),e.writeUInt32BE(n.lo32,r+4),8}}]),r}(gt),Bt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,4,t)}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readFloatLE(e)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeFloatLE(t,r),4}}]),r}(gt),Lt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,4,t)}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readFloatBE(e)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeFloatBE(t,r),4}}]),r}(gt),Nt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,8,t)}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readDoubleLE(e)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeDoubleLE(t,r),8}}]),r}(gt),Dt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,8,t)}return Object(h.a)(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readDoubleBE(e)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeDoubleBE(t,r),8}}]),r}(gt),Ut=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n,i){var o;if(Object(f.a)(this,r),!(t instanceof gt))throw new TypeError("elementLayout must be a Layout");if(!(n instanceof _t&&n.isCount()||Number.isInteger(n)&&0<=n))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(n instanceof _t)&&0<t.span&&(a=n*t.span),(o=e.call(this,a,i)).elementLayout=t,o.count=n,o}return Object(h.a)(r,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0,n=this.count;if(n instanceof _t&&(n=n.decode(t,e)),0<this.elementLayout.span)r=n*this.elementLayout.span;else for(var i=0;i<n;)r+=this.elementLayout.getSpan(t,e+r),++i;return r}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=[],n=0,i=this.count;for(i instanceof _t&&(i=i.decode(t,e));n<i;)r.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),n+=1;return r}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=this.elementLayout,i=t.reduce((function(t,i){return t+n.encode(i,e,r+t)}),0);return this.count instanceof _t&&this.count.encode(t.length,e,r),i}}]),r}(gt),zt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n,i){var o;if(Object(f.a)(this,r),!Array.isArray(t)||!t.reduce((function(t,e){return t&&e instanceof gt}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof n&&void 0===i&&(i=n,n=void 0);var a,s=Object(c.a)(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(0>u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(l){s.e(l)}finally{s.f()}var h=-1;try{h=t.reduce((function(t,e){return t+e.getSpan()}),0)}catch(d){}return(o=e.call(this,h,n)).fields=t,o.decodePrefixes=!!i,o}return Object(h.a)(r,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;try{r=this.fields.reduce((function(r,n){var i=n.getSpan(t,e);return e+=i,r+i}),0)}catch(n){throw new RangeError("indeterminate span")}return r}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var r,n=this.makeDestinationObject(),i=Object(c.a)(this.fields);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(void 0!==o.property&&(n[o.property]=o.decode(t,e)),e+=o.getSpan(t,e),this.decodePrefixes&&t.length===e)break}}catch(a){i.e(a)}finally{i.f()}return n}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n,i=r,o=0,a=0,s=Object(c.a)(this.fields);try{for(s.s();!(n=s.n()).done;){var u=n.value,f=u.span;if(a=0<f?f:0,void 0!==u.property){var h=t[u.property];void 0!==h&&(a=u.encode(h,e,r),0>f&&(f=u.getSpan(e,r)))}o=r,r+=f}}catch(l){s.e(l)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(t){var e,r=this.makeDestinationObject(),n=Object(c.a)(this.fields);try{for(n.s();!(e=n.n()).done;){var i=e.value;void 0!==i.property&&0<t.length&&(r[i.property]=t.shift())}}catch(o){n.e(o)}finally{n.f()}return r}},{key:"layoutFor",value:function(t){if("string"!==typeof t)throw new TypeError("property must be string");var e,r=Object(c.a)(this.fields);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(n.property===t)return n}}catch(i){r.e(i)}finally{r.f()}}},{key:"offsetOf",value:function(t){if("string"!==typeof t)throw new TypeError("property must be string");var e,r=0,n=Object(c.a)(this.fields);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.property===t)return r;0>i.span?r=-1:0<=r&&(r+=i.span)}}catch(o){n.e(o)}finally{n.f()}}}]),r}(gt),Wt=function(){function t(e){Object(f.a)(this,t),this.property=e}return Object(h.a)(t,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),t}(),qt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;if(Object(f.a)(this,r),!(t instanceof _t&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=e.call(this,n||t.property||"variant")).layout=t,i}return Object(h.a)(r,[{key:"decode",value:function(t,e){return this.layout.decode(t,e)}},{key:"encode",value:function(t,e,r){return this.layout.encode(t,e,r)}}]),r}(Wt),Ft=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n,i){var o;Object(f.a)(this,r);var a=t instanceof St||t instanceof Et;if(a)t=new qt(new Mt(t));else if(t instanceof _t&&t.isCount())t=new qt(t);else if(!(t instanceof Wt))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===n&&(n=null),!(null===n||n instanceof gt))throw new TypeError("defaultLayout must be null or a Layout");if(null!==n){if(0>n.span)throw new Error("defaultLayout must have constant span");void 0===n.property&&(n=n.replicate("content"))}var s=-1;n&&0<=(s=n.span)&&a&&(s+=t.layout.span),(o=e.call(this,s,i)).discriminator=t,o.usesPrefixDiscriminator=a,o.defaultLayout=n,o.registry={};var u=o.defaultGetSourceVariant.bind(Object(l.a)(o));return o.getSourceVariant=function(t){return u(t)},o.configGetSourceVariant=function(t){u=t.bind(this)},o}return Object(h.a)(r,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=this.getVariant(t,e);if(!r)throw new Error("unable to determine span for unrecognized variant");return r.getSpan(t,e)}},{key:"defaultGetSourceVariant",value:function(t){if(t.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&t.hasOwnProperty(this.defaultLayout.property))return;var e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||t.hasOwnProperty(e.property)))return e}else for(var r in this.registry){var n=this.registry[r];if(t.hasOwnProperty(n.property))return n}throw new Error("unable to infer src variant")}},{key:"decode",value:function(t,e){var r;void 0===e&&(e=0);var n=this.discriminator,i=n.decode(t,e),o=this.registry[i];if(void 0===o){var a=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(a=n.layout.span),(r=this.makeDestinationObject())[n.property]=i,r[o.property]=this.defaultLayout.decode(t,e+a)}else r=o.decode(t,e);return r}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=this.getSourceVariant(t);if(void 0===n){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(t[i.property],e,r),a+o.encode(t[o.property],e,r+a)}return n.encode(t,e,r)}},{key:"addVariant",value:function(t,e,r){var n=new Kt(this,t,e,r);return this.registry[t]=n,n}},{key:"getVariant",value:function(t,e){var r=t;return w.Buffer.isBuffer(t)&&(void 0===e&&(e=0),r=this.discriminator.decode(t,e)),this.registry[r]}}]),r}(gt),Kt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n,i,o){var a;if(Object(f.a)(this,r),!(t instanceof Ft))throw new TypeError("union must be a Union");if(!Number.isInteger(n)||0>n)throw new TypeError("variant must be a (non-negative) integer");if("string"===typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof gt))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=i.span&&i.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof o)throw new TypeError("variant must have a String property")}var s=t.span;return 0>t.span&&0<=(s=i?i.span:0)&&t.usesPrefixDiscriminator&&(s+=t.discriminator.layout.span),(a=e.call(this,s,o)).union=t,a.variant=n,a.layout=i||null,a}return Object(h.a)(r,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),r+this.layout.getSpan(t,e+r)}},{key:"decode",value:function(t,e){var r=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(t,e+n):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=0;if(this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout&&!t.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,r);var i=n;
2if(this.layout&&(this.layout.encode(t[this.property],e,r+n),i+=this.layout.getSpan(e,r+n),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(t){if(this.layout)return this.layout.fromArray(t)}}]),r}(gt);function Ht(t){return 0>t&&(t+=4294967296),t}var Yt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n,i){var o;if(Object(f.a)(this,r),!(t instanceof St||t instanceof Et))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof n&&void 0===i&&(i=n,n=void 0),4<t.span)throw new RangeError("word cannot exceed 32 bits");(o=e.call(this,t.span,i)).word=t,o.msb=!!n,o.fields=[];var a=0;return o._packedSetValue=function(t){return a=Ht(t),this},o._packedGetValue=function(){return a},o}return Object(h.a)(r,[{key:"decode",value:function(t,e){var r=this.makeDestinationObject();void 0===e&&(e=0);var n=this.word.decode(t,e);this._packedSetValue(n);var i,o=Object(c.a)(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;void 0!==a.property&&(r[a.property]=a.decode(n))}}catch(s){o.e(s)}finally{o.f()}return r}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=this.word.decode(e,r);this._packedSetValue(n);var i,o=Object(c.a)(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(void 0!==a.property){var s=t[a.property];void 0!==s&&a.encode(s)}}}catch(u){o.e(u)}finally{o.f()}return this.word.encode(this._packedGetValue(),e,r)}},{key:"addField",value:function(t,e){var r=new Vt(this,t,e);return this.fields.push(r),r}},{key:"addBoolean",value:function(t){var e=new Zt(this,t);return this.fields.push(e),e}},{key:"fieldFor",value:function(t){if("string"!==typeof t)throw new TypeError("property must be string");var e,r=Object(c.a)(this.fields);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(n.property===t)return n}}catch(i){r.e(i)}finally{r.f()}}}]),r}(gt),Vt=function(){function t(e,r,n){if(Object(f.a)(this,t),!(e instanceof Yt))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(r)||0>=r)throw new TypeError("bits must be positive integer");var i=8*e.span,o=e.fields.reduce((function(t,e){return t+e.bits}),0);if(r+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=e,this.bits=r,this.valueMask=(1<<r)-1,32===r&&(this.valueMask=4294967295),this.start=o,this.container.msb&&(this.start=i-o-r),this.wordMask=Ht(this.valueMask<<this.start),this.property=n}return Object(h.a)(t,[{key:"decode",value:function(){return Ht(this.container._packedGetValue()&this.wordMask)>>>this.start}},{key:"encode",value:function(t){if(!Number.isInteger(t)||t!==Ht(t&this.valueMask))throw new TypeError(wt("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),r=Ht(t<<this.start);this.container._packedSetValue(Ht(e&~this.wordMask)|r)}}]),t}(),Zt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){return Object(f.a)(this,r),e.call(this,t,1,n)}return Object(h.a)(r,[{key:"decode",value:function(t,e){return!!Vt.prototype.decode.call(this,t,e)}},{key:"encode",value:function(t){return"boolean"===typeof t&&(t=+t),Vt.prototype.encode.call(this,t)}}]),r}(Vt),Gt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;if(Object(f.a)(this,r),!(t instanceof _t&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var o=-1;return t instanceof _t||(o=t),(i=e.call(this,o,n)).length=t,i}return Object(h.a)(r,[{key:"getSpan",value:function(t,e){var r=this.span;return 0>r&&(r=this.length.decode(t,e)),r}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=this.span;return 0>r&&(r=this.length.decode(t,e)),t.slice(e,e+r)}},{key:"encode",value:function(t,e,r){var n=this.length;if(this.length instanceof _t&&(n=t.length),!w.Buffer.isBuffer(t)||n!==t.length)throw new TypeError(wt("Blob.encode",this)+" requires (length "+n+") Buffer as src");if(r+n>e.length)throw new RangeError("encoding overruns Buffer");return e.write(t.toString("hex"),r,n,"hex"),this.length instanceof _t&&this.length.encode(n,e,r),n}}]),r}(gt),Xt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t){return Object(f.a)(this,r),e.call(this,-1,t)}return Object(h.a)(r,[{key:"getSpan",value:function(t,e){if(!w.Buffer.isBuffer(t))throw new TypeError("b must be a Buffer");void 0===e&&(e=0);for(var r=e;r<t.length&&0!==t[r];)r+=1;return 1+r-e}},{key:"decode",value:function(t,e,r){void 0===e&&(e=0);var n=this.getSpan(t,e);return t.slice(e,e+n-1).toString("utf-8")}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0),"string"!==typeof t&&(t=t.toString());var n=new w.Buffer(t,"utf8"),i=n.length;if(r+i>e.length)throw new RangeError("encoding overruns Buffer");return n.copy(e,r),e[r+i]=0,i+1}}]),r}(gt),Jt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;if(Object(f.a)(this,r),"string"===typeof t&&void 0===n&&(n=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");return(i=e.call(this,-1,n)).maxSpan=t,i}return Object(h.a)(r,[{key:"getSpan",value:function(t,e){if(!w.Buffer.isBuffer(t))throw new TypeError("b must be a Buffer");return void 0===e&&(e=0),t.length-e}},{key:"decode",value:function(t,e,r){void 0===e&&(e=0);var n=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<n)throw new RangeError("text length exceeds maxSpan");return t.slice(e,e+n).toString("utf-8")}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0),"string"!==typeof t&&(t=t.toString());var n=new w.Buffer(t,"utf8"),i=n.length;if(0<=this.maxSpan&&this.maxSpan<i)throw new RangeError("text length exceeds maxSpan");if(r+i>e.length)throw new RangeError("encoding overruns Buffer");return n.copy(e,r),i}}]),r}(gt),Qt=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(t,n){var i;return Object(f.a)(this,r),(i=e.call(this,0,n)).value=t,i}return Object(h.a)(r,[{key:"decode",value:function(t,e,r){return this.value}},{key:"encode",value:function(t,e,r){return 0}}]),r}(gt);yt.ExternalLayout=_t,yt.GreedyCount=kt,yt.OffsetLayout=Mt,yt.UInt=St,yt.UIntBE=Et,yt.Int=xt,yt.IntBE=At,yt.Float=Bt,yt.FloatBE=Lt,yt.Double=Nt,yt.DoubleBE=Dt,yt.Sequence=Ut,yt.Structure=zt,yt.UnionDiscriminator=Wt,yt.UnionLayoutDiscriminator=qt,yt.Union=Ft,yt.VariantLayout=Kt,yt.BitStructure=Yt,yt.BitField=Vt,yt.Boolean=Zt,yt.Blob=Gt,yt.CString=Xt,yt.UTF8=Jt,yt.Constant=Qt,yt.greedy=function(t,e){return new kt(t,e)},yt.offset=function(t,e,r){return new Mt(t,e,r)};var $t=yt.u8=function(t){return new St(1,t)};yt.u16=function(t){return new St(2,t)},yt.u24=function(t){return new St(3,t)};var te=yt.u32=function(t){return new St(4,t)};yt.u40=function(t){return new St(5,t)},yt.u48=function(t){return new St(6,t)},yt.nu64=function(t){return new It(t)},yt.u16be=function(t){return new Et(2,t)},yt.u24be=function(t){return new Et(3,t)},yt.u32be=function(t){return new Et(4,t)},yt.u40be=function(t){return new Et(5,t)},yt.u48be=function(t){return new Et(6,t)},yt.nu64be=function(t){return new Pt(t)},yt.s8=function(t){return new xt(1,t)},yt.s16=function(t){return new xt(2,t)}
2,yt.s24=function(t){return new xt(3,t)},yt.s32=function(t){return new xt(4,t)},yt.s40=function(t){return new xt(5,t)},yt.s48=function(t){return new xt(6,t)},yt.ns64=function(t){return new Tt(t)},yt.s16be=function(t){return new At(2,t)},yt.s24be=function(t){return new At(3,t)},yt.s32be=function(t){return new At(4,t)},yt.s40be=function(t){return new At(5,t)},yt.s48be=function(t){return new At(6,t)},yt.ns64be=function(t){return new Ct(t)},yt.f32=function(t){return new Bt(t)},yt.f32be=function(t){return new Lt(t)},yt.f64=function(t){return new Nt(t)},yt.f64be=function(t){return new Dt(t)};var ee=yt.struct=function(t,e,r){return new zt(t,e,r)};yt.bits=function(t,e,r){return new Yt(t,e,r)},yt.seq=function(t,e,r){return new Ut(t,e,r)},yt.union=function(t,e,r){return new Ft(t,e,r)},yt.unionLayoutDiscriminator=function(t,e){return new qt(t,e)};var re=yt.blob=function(t,e){return new Gt(t,e)};yt.cstr=function(t){return new Xt(t)},yt.utf8=function(t,e){return new Jt(t,e)},yt.const=function(t,e){return new Qt(t,e)};var ne=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return re(32,t)},ie=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uint64";return re(8,t)};function oe(t,e,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o<n;o++)i[o-3]=arguments[o];return Object(g.g)(e,r,i,{skipPreflight:!1})}var ae=new g.b("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),se=new g.b("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),ue="Failed to find account",ce="Invalid account owner";function fe(t){return w.Buffer.from(t.toBuffer())}var he=function(t){Object(d.a)(r,t);var e=Object(p.a)(r);function r(){return Object(f.a)(this,r),e.apply(this,arguments)}return Object(h.a)(r,[{key:"toBuffer",value:function(){var t=Object(s.a)(Object(u.a)(r.prototype),"toArray",this).call(this).reverse(),e=w.Buffer.from(t);if(8===e.length)return e;at(e.length<8,"u64 too large");var n=w.Buffer.alloc(8);return e.copy(n),n}}],[{key:"fromBuffer",value:function(t){return at(8===t.length,"Invalid buffer length: ".concat(t.length)),new r(Object(a.a)(t).reverse().map((function(t){return"00".concat(t.toString(16)).slice(-2)})).join(""),16)}}]),r}(y.a);function le(t){return"publicKey"in t}var de={MintTokens:0,FreezeAccount:1,AccountOwner:2,CloseAccount:3},pe=new g.b("So11111111111111111111111111111111111111112"),be=ee([te("mintAuthorityOption"),ne("mintAuthority"),ie("supply"),$t("decimals"),$t("isInitialized"),te("freezeAuthorityOption"),ne("freezeAuthority")]),ve=ee([ne("mint"),ne("owner"),ie("amount"),te("delegateOption"),ne("delegate"),$t("state"),te("isNativeOption"),ie("isNative"),ie("delegatedAmount"),te("closeAuthorityOption"),ne("closeAuthority")]),me=ee([$t("m"),$t("n"),$t("is_initialized"),ne("signer1"),ne("signer2"),ne("signer3"),ne("signer4"),ne("signer5"),ne("signer6"),ne("signer7"),ne("signer8"),ne("signer9"),ne("signer10"),ne("signer11")]),ye=function(){function t(e,r,n,i){Object(f.a)(this,t),v()(this,"connection",void 0),v()(this,"publicKey",void 0),v()(this,"programId",void 0),v()(this,"associatedProgramId",void 0),v()(this,"payer",void 0),Object.assign(this,{connection:e,publicKey:r,programId:n,payer:i,associatedProgramId:se})}return Object(h.a)(t,[{key:"createAccount",value:function(){var e=Object(o.a)(i.a.mark((function e(r){var n,o,a,s;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getMinBalanceRentForExemptAccount(this.connection);case 2:return n=e.sent,o=g.a.generate(),(a=new g.e).add(g.d.createAccount({fromPubkey:this.payer.publicKey,newAccountPubkey:o.publicKey,lamports:n,space:ve.span,programId:this.programId})),s=this.publicKey,a.add(t.createInitAccountInstruction(this.programId,s,o.publicKey,r)),e.next=10,oe("createAccount and InitializeAccount",this.connection,a,this.payer,o);case 10:return e.abrupt("return",o.publicKey);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createAssociatedTokenAccount",value:function(){var e=Object(o.a)(i.a.mark((function e(r){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getAssociatedTokenAddress(this.associatedProgramId,this.programId,this.publicKey,r);case 2:return n=e.sent,e.abrupt("return",this.createAssociatedTokenAccountInternal(r,n));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createAssociatedTokenAccountInternal",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oe("CreateAssociatedTokenAccount",this.connection,(new g.e).add(t.createAssociatedTokenAccountInstruction(this.associatedProgramId,this.programId,this.publicKey,n,r,this.payer.publicKey)),this.payer);case 2:return e.abrupt("return",n);case 3:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getOrCreateAssociatedAccountInfo",value:function(){var e=Object(o.a)(i.a.mark((function e(r){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getAssociatedTokenAddress(this.associatedProgramId,this.programId,this.publicKey,r);case 2:return n=e.sent,e.prev=3,e.next=6,this.getAccountInfo(n);case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),e.t0.message!==ue&&e.t0.message!==ce){e.next=24;break}return e.prev=12,e.next=15,this.createAssociatedTokenAccountInternal(r,n);case 15:e.next=19;break;case 17:e.prev=17,e.t1=e.catch(12);case 19:return e.next=21,this.getAccountInfo(n);case 21:return e.abrupt("return",e.sent);case 24:throw e.t0;case 25:case"end":return e.stop()}}),e,this,[[3,9],[12,17]])})));return function(t){return e.apply(this,arguments)}}()},{key:"createMultisig",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n){var o,a,s,u,c,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=g.a.generate(),e.next=3,t.getMinBalanceRentForExemptMultisig(this.connection);case 3:return a=e.sent,(s=new g.e).add(g.d.createAccount({fromPubkey:this.payer.publicKey,newAccountPubkey:o.publicKey,lamports:a,space:me.span,programId:this.programId})),u=[{pubkey:o.publicKey,isSigner:!1,isWritable:!0},{pubkey:g.c,isSigner:!1,isWritable:!1}
2],n.forEach((function(t){return u.push({pubkey:t,isSigner:!1,isWritable:!1})})),c=ee([$t("instruction"),$t("m")]),f=w.Buffer.alloc(c.span),c.encode({instruction:2,m:r},f),s.add({keys:u,programId:this.programId,data:f}),e.next=14,oe("createAccount and InitializeMultisig",this.connection,s,this.payer,o);case 14:return e.abrupt("return",o.publicKey);case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getMintInfo",value:function(){var t=Object(o.a)(i.a.mark((function t(){var e,r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connection.getAccountInfo(this.publicKey);case 2:if(null!==(e=t.sent)){t.next=5;break}throw new Error("Failed to find mint account");case 5:if(e.owner.equals(this.programId)){t.next=7;break}throw new Error("Invalid mint owner: ".concat(JSON.stringify(e.owner)));case 7:if(e.data.length==be.span){t.next=9;break}throw new Error("Invalid mint size");case 9:return r=w.Buffer.from(e.data),0===(n=be.decode(r)).mintAuthorityOption?n.mintAuthority=null:n.mintAuthority=new g.b(n.mintAuthority),n.supply=he.fromBuffer(n.supply),n.isInitialized=0!=n.isInitialized,0===n.freezeAuthorityOption?n.freezeAuthority=null:n.freezeAuthority=new g.b(n.freezeAuthority),t.abrupt("return",n);case 16:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getAccountInfo",value:function(){var t=Object(o.a)(i.a.mark((function t(e,r){var n,o,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connection.getAccountInfo(e,r);case 2:if(null!==(n=t.sent)){t.next=5;break}throw new Error(ue);case 5:if(n.owner.equals(this.programId)){t.next=7;break}throw new Error(ce);case 7:if(n.data.length==ve.span){t.next=9;break}throw new Error("Invalid account size");case 9:if(o=w.Buffer.from(n.data),(a=ve.decode(o)).address=e,a.mint=new g.b(a.mint),a.owner=new g.b(a.owner),a.amount=he.fromBuffer(a.amount),0===a.delegateOption?(a.delegate=null,a.delegatedAmount=new he):(a.delegate=new g.b(a.delegate),a.delegatedAmount=he.fromBuffer(a.delegatedAmount)),a.isInitialized=0!==a.state,a.isFrozen=2===a.state,1===a.isNativeOption?(a.rentExemptReserve=he.fromBuffer(a.isNative),a.isNative=!0):(a.rentExemptReserve=null,a.isNative=!1),0===a.closeAuthorityOption?a.closeAuthority=null:a.closeAuthority=new g.b(a.closeAuthority),a.mint.equals(this.publicKey)){t.next=22;break}throw new Error("Invalid account mint: ".concat(JSON.stringify(a.mint)," !== ").concat(JSON.stringify(this.publicKey)));case 22:return t.abrupt("return",a);case 23:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getMultisigInfo",value:function(){var t=Object(o.a)(i.a.mark((function t(e){var r,n,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connection.getAccountInfo(e);case 2:if(null!==(r=t.sent)){t.next=5;break}throw new Error("Failed to find multisig");case 5:if(r.owner.equals(this.programId)){t.next=7;break}throw new Error("Invalid multisig owner");case 7:if(r.data.length==me.span){t.next=9;break}throw new Error("Invalid multisig size");case 9:return n=w.Buffer.from(r.data),(o=me.decode(n)).signer1=new g.b(o.signer1),o.signer2=new g.b(o.signer2),o.signer3=new g.b(o.signer3),o.signer4=new g.b(o.signer4),o.signer5=new g.b(o.signer5),o.signer6=new g.b(o.signer6),o.signer7=new g.b(o.signer7),o.signer8=new g.b(o.signer8),o.signer9=new g.b(o.signer9),o.signer10=new g.b(o.signer10),o.signer11=new g.b(o.signer11),t.abrupt("return",o);case 23:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"transfer",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s,u){var c,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(o)?(c=o.publicKey,f=[o]):(c=o,f=s),e.next=3,oe.apply(void 0,["Transfer",this.connection,(new g.e).add(t.createTransferInstruction(this.programId,r,n,c,s,u)),this.payer].concat(Object(a.a)(f)));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()},{key:"approve",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s,u){var c,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(o)?(c=o.publicKey,f=[o]):(c=o,f=s),e.next=3,oe.apply(void 0,["Approve",this.connection,(new g.e).add(t.createApproveInstruction(this.programId,r,n,c,s,u)),this.payer].concat(Object(a.a)(f)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()},{key:"revoke",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o){var s,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(n)?(s=n.publicKey,u=[n]):(s=n,u=o),e.next=3,oe.apply(void 0,["Revoke",this.connection,(new g.e).add(t.createRevokeInstru
2ction(this.programId,r,s,o)),this.payer].concat(Object(a.a)(u)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"setAuthority",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s,u){var c,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(s)?(c=s.publicKey,f=[s]):(c=s,f=u),e.next=3,oe.apply(void 0,["SetAuthority",this.connection,(new g.e).add(t.createSetAuthorityInstruction(this.programId,r,n,o,c,u)),this.payer].concat(Object(a.a)(f)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()},{key:"mintTo",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s){var u,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(n)?(u=n.publicKey,c=[n]):(u=n,c=o),e.next=3,oe.apply(void 0,["MintTo",this.connection,(new g.e).add(t.createMintToInstruction(this.programId,this.publicKey,r,u,o,s)),this.payer].concat(Object(a.a)(c)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()},{key:"burn",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s){var u,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(n)?(u=n.publicKey,c=[n]):(u=n,c=o),e.next=3,oe.apply(void 0,["Burn",this.connection,(new g.e).add(t.createBurnInstruction(this.programId,this.publicKey,r,u,o,s)),this.payer].concat(Object(a.a)(c)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()},{key:"closeAccount",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s){var u,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(o)?(u=o.publicKey,c=[o]):(u=o,c=s),e.next=3,oe.apply(void 0,["CloseAccount",this.connection,(new g.e).add(t.createCloseAccountInstruction(this.programId,r,n,u,s)),this.payer].concat(Object(a.a)(c)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()},{key:"freezeAccount",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o){var s,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(n)?(s=n.publicKey,u=[n]):(s=n,u=o),e.next=3,oe.apply(void 0,["FreezeAccount",this.connection,(new g.e).add(t.createFreezeAccountInstruction(this.programId,r,this.publicKey,s,o)),this.payer].concat(Object(a.a)(u)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"thawAccount",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o){var s,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(n)?(s=n.publicKey,u=[n]):(s=n,u=o),e.next=3,oe.apply(void 0,["ThawAccount",this.connection,(new g.e).add(t.createThawAccountInstruction(this.programId,r,this.publicKey,s,o)),this.payer].concat(Object(a.a)(u)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"transferChecked",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s,u,c){var f,h;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(o)?(f=o.publicKey,h=[o]):(f=o,h=s),e.next=3,oe.apply(void 0,["TransferChecked",this.connection,(new g.e).add(t.createTransferCheckedInstruction(this.programId,r,this.publicKey,n,f,s,u,c)),this.payer].concat(Object(a.a)(h)));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o,a){return e.apply(this,arguments)}}()},{key:"approveChecked",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s,u,c){var f,h;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(o)?(f=o.publicKey,h=[o]):(f=o,h=s),e.next=3,oe.apply(void 0,["ApproveChecked",this.connection,(new g.e).add(t.createApproveCheckedInstruction(this.programId,r,this.publicKey,n,f,s,u,c)),this.payer].concat(Object(a.a)(h)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o,a){return e.apply(this,arguments)}}()},{key:"mintToChecked",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s,u){var c,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(n)?(c=n.publicKey,f=[n]):(c=n,f=o),e.next=3,oe.apply(void 0,["MintToChecked",this.connection,(new g.e).add(t.createMintToCheckedInstruction(this.programId,this.publicKey,r,c,o,s,u)),this.payer].concat(Object(a.a)(f)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()},{key:"burnChecked",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,s,u){var c,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(n)?(c=n.publicKey,f=[n]):(c=n,f=o),e.next=3,oe.apply(void 0,["BurnChecked",this.connection,(new g.e).add(t.createBurnCheckedInstruction(this.programId,this.publicKey,r,c,o,s,u)),this.payer].concat(Object(a.a)(f)));case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()},{key:"syncNative",value:function(){var e=Object(o.a)(i.a.mark((function e(r){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oe("SyncNative",this.connection,(new g.e).add(t.createSyncNativeInstruction(this.programId,r)),this.payer);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}],[{key:"getMinBalanceRentForExemptMint",value:function(){var t=Object(o.a)(i.a.mark((function t(e){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getMinimumBalanceForRentExemption(be.span);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getMinBalanceRentForExemptAccount",value:function(){var t=Object(o.a)(i.a.mark((function t(e){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getMinimumBalanceForRentExemption(ve.span);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getMinBalanceRentForExemptMultisig",value:function(){var t=Object(o.a)(i.a.mark((function t(e){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getMinimumBalanceForRentExemption(me.span);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"createMint",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,a,s,u){var c,f,h,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=g.a.generate(),f=new t(r,c.publicKey,u,
2n),e.next=4,t.getMinBalanceRentForExemptMint(r);case 4:return h=e.sent,(l=new g.e).add(g.d.createAccount({fromPubkey:n.publicKey,newAccountPubkey:c.publicKey,lamports:h,space:be.span,programId:u})),l.add(t.createInitMintInstruction(u,c.publicKey,s,o,a)),e.next=10,oe("createAccount and InitializeMint",r,l,n,c);case 10:return e.abrupt("return",f);case 11:case"end":return e.stop()}}),e)})));return function(t,r,n,i,o,a){return e.apply(this,arguments)}}()},{key:"createWrappedNativeAccount",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n,o,a,s){var u,c,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getMinBalanceRentForExemptAccount(r);case 2:return u=e.sent,c=g.a.generate(),(f=new g.e).add(g.d.createAccount({fromPubkey:a.publicKey,newAccountPubkey:c.publicKey,lamports:u,space:ve.span,programId:n})),f.add(g.d.transfer({fromPubkey:a.publicKey,toPubkey:c.publicKey,lamports:s})),f.add(t.createInitAccountInstruction(n,pe,c.publicKey,o)),e.next=10,oe("createAccount, transfer, and initializeAccount",r,f,a,c);case 10:return e.abrupt("return",c.publicKey);case 11:case"end":return e.stop()}}),e)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()},{key:"createInitMintInstruction",value:function(t,e,r,n,i){var o=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:g.c,isSigner:!1,isWritable:!1}],a=ee([$t("instruction"),$t("decimals"),ne("mintAuthority"),$t("option"),ne("freezeAuthority")]),s=w.Buffer.alloc(1024),u=a.encode({instruction:0,decimals:r,mintAuthority:fe(n),option:null===i?0:1,freezeAuthority:fe(i||new g.b(0))},s);return s=s.slice(0,u),new g.f({keys:o,programId:t,data:s})}},{key:"createInitAccountInstruction",value:function(t,e,r,n){var i=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:g.c,isSigner:!1,isWritable:!1}],o=ee([$t("instruction")]),a=w.Buffer.alloc(o.span);return o.encode({instruction:1},a),new g.f({keys:i,programId:t,data:a})}},{key:"createTransferInstruction",value:function(t,e,r,n,i,o){var a=ee([$t("instruction"),ie("amount")]),s=w.Buffer.alloc(a.span);a.encode({instruction:3,amount:new he(o).toBuffer()},s);var u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0}];return 0===i.length?u.push({pubkey:n,isSigner:!0,isWritable:!1}):(u.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return u.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}
2))),new g.f({keys:u,programId:t,data:s})}},{key:"createApproveInstruction",value:function(t,e,r,n,i,o){var a=ee([$t("instruction"),ie("amount")]),s=w.Buffer.alloc(a.span);a.encode({instruction:4,amount:new he(o).toBuffer()},s);var u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1}];return 0===i.length?u.push({pubkey:n,isSigner:!0,isWritable:!1}):(u.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return u.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}))),new g.f({keys:u,programId:t,data:s})}},{key:"createRevokeInstruction",value:function(t,e,r,n){var i=ee([$t("instruction")]),o=w.Buffer.alloc(i.span);i.encode({instruction:5},o);var a=[{pubkey:e,isSigner:!1,isWritable:!0}];return 0===n.length?a.push({pubkey:r,isSigner:!0,isWritable:!1}):(a.push({pubkey:r,isSigner:!1,isWritable:!1}),n.forEach((function(t){return a.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}))),new g.f({keys:a,programId:t,data:o})}},{key:"createSetAuthorityInstruction",value:function(t,e,r,n,i,o){var a=ee([$t("instruction"),$t("authorityType"),$t("option"),ne("newAuthority")]),s=w.Buffer.alloc(1024),u=a.encode({instruction:6,authorityType:de[n],option:null===r?0:1,newAuthority:fe(r||new g.b(0))},s);s=s.slice(0,u);var c=[{pubkey:e,isSigner:!1,isWritable:!0}];return 0===o.length?c.push({pubkey:i,isSigner:!0,isWritable:!1}):(c.push({pubkey:i,isSigner:!1,isWritable:!1}),o.forEach((function(t){return c.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}
2))),new g.f({keys:c,programId:t,data:s})}},{key:"createMintToInstruction",value:function(t,e,r,n,i,o){var a=ee([$t("instruction"),ie("amount")]),s=w.Buffer.alloc(a.span);a.encode({instruction:7,amount:new he(o).toBuffer()},s);var u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0}];return 0===i.length?u.push({pubkey:n,isSigner:!0,isWritable:!1}):(u.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return u.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}))),new g.f({keys:u,programId:t,data:s})}},{key:"createBurnInstruction",value:function(t,e,r,n,i,o){var a=ee([$t("instruction"),ie("amount")]),s=w.Buffer.alloc(a.span);a.encode({instruction:8,amount:new he(o).toBuffer()},s);var u=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!1,isWritable:!0}];return 0===i.length?u.push({pubkey:n,isSigner:!0,isWritable:!1}):(u.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return u.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}))),new g.f({keys:u,programId:t,data:s})}},{key:"createCloseAccountInstruction",value:function(t,e,r,n,i){var o=ee([$t("instruction")]),a=w.Buffer.alloc(o.span);o.encode({instruction:9},a);var s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0}];return 0===i.length?s.push({pubkey:n,isSigner:!0,isWritable:!1}):(s.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return s.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}
2))),new g.f({keys:s,programId:t,data:a})}},{key:"createFreezeAccountInstruction",value:function(t,e,r,n,i){var o=ee([$t("instruction")]),a=w.Buffer.alloc(o.span);o.encode({instruction:10},a);var s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1}];return 0===i.length?s.push({pubkey:n,isSigner:!0,isWritable:!1}):(s.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return s.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}))),new g.f({keys:s,programId:t,data:a})}},{key:"createThawAccountInstruction",value:function(t,e,r,n,i){var o=ee([$t("instruction")]),a=w.Buffer.alloc(o.span);o.encode({instruction:11},a);var s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1}];return 0===i.length?s.push({pubkey:n,isSigner:!0,isWritable:!1}):(s.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return s.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}))),new g.f({keys:s,programId:t,data:a})}},{key:"createTransferCheckedInstruction",value:function(t,e,r,n,i,o,a,s){var u=ee([$t("instruction"),ie("amount"),$t("decimals")]),c=w.Buffer.alloc(u.span);u.encode({instruction:12,amount:new he(a).toBuffer(),decimals:s},c);var f=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!1,isWritable:!0}];return 0===o.length?f.push({pubkey:i,isSigner:!0,isWritable:!1}):(f.push({pubkey:i,isSigner:!1,isWritable:!1}),o.forEach((function(t){return f.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}
2))),new g.f({keys:f,programId:t,data:c})}},{key:"createApproveCheckedInstruction",value:function(t,e,r,n,i,o,a,s){var u=ee([$t("instruction"),ie("amount"),$t("decimals")]),c=w.Buffer.alloc(u.span);u.encode({instruction:13,amount:new he(a).toBuffer(),decimals:s},c);var f=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!1,isWritable:!1}];return 0===o.length?f.push({pubkey:i,isSigner:!0,isWritable:!1}):(f.push({pubkey:i,isSigner:!1,isWritable:!1}),o.forEach((function(t){return f.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}))),new g.f({keys:f,programId:t,data:c})}},{key:"createMintToCheckedInstruction",value:function(t,e,r,n,i,o,a){var s=ee([$t("instruction"),ie("amount"),$t("decimals")]),u=w.Buffer.alloc(s.span);s.encode({instruction:14,amount:new he(o).toBuffer(),decimals:a},u);var c=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0}];return 0===i.length?c.push({pubkey:n,isSigner:!0,isWritable:!1}):(c.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return c.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}
2))),new g.f({keys:c,programId:t,data:u})}},{key:"createBurnCheckedInstruction",value:function(t,e,r,n,i,o,a){var s=ee([$t("instruction"),ie("amount"),$t("decimals")]),u=w.Buffer.alloc(s.span);s.encode({instruction:15,amount:new he(o).toBuffer(),decimals:a},u);var c=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!1,isWritable:!0}];return 0===i.length?c.push({pubkey:n,isSigner:!0,isWritable:!1}):(c.push({pubkey:n,isSigner:!1,isWritable:!1}),i.forEach((function(t){return c.push({pubkey:t.publicKey,isSigner:!0,isWritable:!1})}))),new g.f({keys:c,programId:t,data:u})}},{key:"createSyncNativeInstruction",value:function(t,e){var r=ee([$t("instruction")]),n=w.Buffer.alloc(r.span);r.encode({instruction:17},n);var i=[{pubkey:e,isSigner:!1,isWritable:!0}];return new g.f({keys:i,programId:t,data:n})}},{key:"getAssociatedTokenAddress",value:function(){var t=Object(o.a)(i.a.mark((function t(e,r,n,o){var a=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a.length>4&&void 0!==a[4]&&a[4]||g.b.isOnCurve(o.toBuffer())){t.next=3;break}throw new Error("Owner cannot sign: ".concat(o.toString()));case 3:return t.next=5,g.b.findProgramAddress([o.toBuffer(),r.toBuffer(),n.toBuffer()],e);case 5:return t.abrupt("return",t.sent[0]);case 6:case"end":return t.stop()}}),t)})));return function(e,r,n,i){return t.apply(this,arguments)}}()},{key:"createAssociatedTokenAccountInstruction",value:function(t,e,r,n,i,o){var a=w.Buffer.alloc(0),s=[{pubkey:o,isSigner:!0,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:g.d.programId,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!1,isWritable:!1},{pubkey:g.c,isSigner:!1,isWritable:!1}];return new g.f({keys:s,programId:t,data:a})}}]),t}()}).call(this,r(31))},function(t,e,r){"use strict";var n=r(56),i=r(19);function o(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(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=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];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)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=s(t[r].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=a(i)),r+=u(i.toString(16))}return r},e.zero2=s,e.zero8=u,e.join32=function(t,e,r,i){var o=r-e;n(o%4===0);for(var a=new Array(o/4),s=0,u=e;s<a.length;s++,u+=4){var c;c="big"===i?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],a[s]=c>>>0}return a},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,a=(o<n?1:0)+r+i;t[e]=a>>>0,t[e+1]=o},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,i,o,a,s){var u=0,c=e;return u+=(c=c+n>>>0)<e?1:0,u+=(c=c+o>>>0)<o?1:0,t+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,i,o,a,s){return e+n+o+s>>>0},e.sum64_5_hi=function(t,e,r,n,i,o,a,s,u,c){var f=0,h=e;return f+=(h=h+n>>>0)<e?1:0,f+=(h=h+o>>>0)<o?1:0,f+=(h=h+s>>>0)<s?1:0,t+r+i+a+u+(f+=(h=h+c>>>0)<c?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,i,o,a,s,u,c){return e+n+o+s+c>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>
2>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},function(t,e,r){"use strict";function n(t,e){return function(){return null}}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t,e){"function"===typeof t?t(e):t&&(t.current=e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce((function(t,e){return null==e?t:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n),e.apply(this,n)}}),(function(){}))}r.d(e,"a",(function(){return n}))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(138);t.exports=function(t,e){var r;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}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 a,s=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(376).Buffer}catch(E){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>
vendor: 4,745 bytes, line 2
226-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(t,f,f+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var h=1;for(u=c(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.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"],h=[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],l=[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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],d=l[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?b+r:f[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>
vendor: 3,646 bytes, line 2
2=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 1,190 bytes, line 2
2var 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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 4,788 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,
vendor: 12,355 bytes, line 2
2X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function b(t,e,r){return(new v).mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},v.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},v.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),b(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 14,655 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0===(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0===(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(g,y),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},i(w,y),i(_,y),i(k,y),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(m[t])return m[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return m[t]=e,e},M.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},i(S,M),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(69)(t))},function(t,e,r){"use strict";var n=r(25).Buffer,i=n.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 o(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";
vendor: 5,922 bytes, line 2
2case"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&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=f,this.end=h,e=3;break;default:return this.write=l,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.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],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=a(e[n]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=a(e[n]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.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,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),u=i?i+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function u(t,e){0===--t._eventsCount?t._events=new o:delete t._events[e]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},c.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},c.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},c.prototype.emit=function(t,e,r,n,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var u,c,f=this._events[s],h=arguments.length;if(f.fn){switch(f.once&&this.removeListener(t,f.fn,void 0,!0),h){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,e),!0;case 3:return f.fn.call(f.context,e,r),!0;case 4:return f.fn.call(f.context,e,r,n),!0;case 5:return f.fn.call(f.context,e,r,n,o),!0;case 6:return f.fn.call(f.context,e,r,n,o,a),!0}for(c=1,u=new Array(h-1);c<h;c++)u[c-1]=arguments[c];f.fn.apply(f.context,u)}else{var l,d=f.length;for(c=0;c<d;c++)switch(f[c].once&&this.removeListener(t,f[c].fn,void 0,!0),h){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,e);break;case 3:f[c].fn.call(f[c].context,e,r);break;case 4:f[c].fn.call(f[c].context,e,r,n);break;default:if(!u)for(l=1,u=new Array(h-1);l<h;l++)u[l-1]=arguments[l];f[c].fn.apply(f[c].context,u)}}return!0},c.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return u(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||u(this,o);else{for(var s=0,c=[],f=a.length;s<f;s++)(a[s].fn!==e||n&&!a[s].once||r&&a[s].context!==r)&&c.push(a[s]);c.length?this._events[o]=1===c.length?c[0]:c:u(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&u(this,e)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,t.exports=c},function(t,e,r){"use strict";
2function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"createWithSeedSync",(function(){return l})),r.d(e,"createProgramAddressSync",(function(){return d})),r.d(e,"findProgramAddressSync",(function(){return p})),r.d(e,"associated",(function(){return v}));var n=r(1),i=r.n(n),o=r(14),a=r(4),s=r(46),u=r.n(s),c=r(51),f=r(16),h=r(38);function l(e,r,n){var i=t.concat([e.toBuffer(),t.from(r),n.toBuffer()]),o=c.sha256.digest(i);return new f.PublicKey(t.from(o))}function d(e,r){var n=t.alloc(0);e.forEach((function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");n=t.concat([n,b(e)])})),n=t.concat([n,r.toBuffer(),t.from("ProgramDerivedAddress")]);var i=Object(c.sha256)(new Uint8Array(n)),o=new u.a(i,16).toArray(void 0,32);if(f.PublicKey.isOnCurve(new Uint8Array(o)))throw new Error("Invalid seeds, address must fall off the curve");return new f.PublicKey(o)}function p(e,r){for(var n,i=255;0!=i;){try{n=d(e.concat(t.from([i])),r)}catch(o){if(o instanceof TypeError)throw o;i--;continue}return[n,i]}throw new Error("Unable to find a viable program address nonce")}var b=function(e){return e instanceof t?e:e instanceof Uint8Array?t.from(e.buffer,e.byteOffset,e.byteLength):t.from(e)};function v(t){return m.apply(this,arguments)}function m(){return(m=Object(a.a)(i.a.mark((function e(r){var n,a,s,u,c,l,d,p=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=[t.from([97,110,99,104,111,114])],a=p.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=p[u];return s.forEach((function(t){n.push(void 0!==t.buffer?t:Object(h.c)(t).toBuffer())})),e.next=5,f.PublicKey.findProgramAddress(n,Object(h.c)(r));case 5:return c=e.sent,l=Object(o.a)(c,1),d=l[0],e.abrupt("return",d);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}.call(this,r(7).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(75),i=r(109);var o=r(164);function a(t,e,r){return(a=Object(o.a)()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&Object(i.a)(o,r.prototype),o}).apply(null,arguments)}function s(t){var e="function"===typeof Map?new Map:void 0;return(s=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return a(t,arguments,Object(n.a)(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Object(i.a)(o,t)})(t)}},,function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(25).Buffer,i=r(495).Transform,o=r(73).StringDecoder;function a(t){i.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}r(19)(a,i),a.prototype.update=function(t,e,r){"string"===typeof t&&(t=n.from(t,e));var i=this._update(t);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){n=i}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=a},function(t,e,r){"use strict";r.r(e),r.d(e,"capitalize",(function(){return n.a})),r.d(e,"createChainedFunction",(function(){return i.a})),r.d(e,"createSvgIcon",(function(){return o.a})),r.d(e,"debounce",(function(){return a.a})),r.d(e,"deprecatedPropType",(function(){return s.a})),r.d(e,"isMuiElement",(function(){return u.a})),r.d(e,"ownerDocument",(function(){return c.a})),r.d(e,"ownerWindow",(function(){return f.a})),r.d(e,"requirePropFactory",(function(){return h})),r.d(e,"setRef",(function(){return l.a})),r.d(e,"unsupportedProp",(function(){return d})),r.d(e,"useControlled",(function(){return b})),r.d(e,"useEventCallback",(function(){return v.a})),r.d(e,"useForkRef",(function(){return m.a})),r.d(e,"unstable_useId",(function(){return y}
2)),r.d(e,"useIsFocusVisible",(function(){return g.a}));var n=r(30),i=r(68),o=r(313),a=r(157),s=r(66),u=r(156),c=r(41),f=r(108);function h(t){return function(){return null}}var l=r(67);function d(t,e,r,n,i){return null}var p=r(2);function b(t){var e=t.controlled,r=t.default,n=(t.name,t.state,p.useRef(void 0!==e).current),i=p.useState(r),o=i[0],a=i[1];return[n?e:o,p.useCallback((function(t){n||a(t)}),[])]}var v=r(47),m=r(35);function y(t){var e=p.useState(t),r=e[0],n=e[1],i=t||r;return p.useEffect((function(){null==r&&n("mui-".concat(Math.round(1e5*Math.random())))}),[r]),i}var g=r(155)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(129);function i(t,e){if(t){if("string"===typeof t)return Object(n.a)(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(t,e):void 0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(344),i=(r(2),r(110));function o(){return Object(n.a)()||i.a}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return c}));var n=r(20),i=r(342),o=r(51),a=r(62);function s(t,e){if("enum"===e.type.kind){var r=e.type.variants.map((function(e){return void 0===e.fields?0:e.fields.map((function(e){if(void 0===e.name)throw new Error("Tuple enum variants not yet implemented.");return u(t,e.type)})).reduce((function(t,e){return t+e}))}));return Math.max.apply(Math,Object(n.a)(r))+1}return void 0===e.type.fields?0:e.type.fields.map((function(e){return u(t,e.type)})).reduce((function(t,e){return t+e}))}function u(t,e){switch(e){case"bool":case"u8":case"i8":return 1;case"i16":case"u16":return 2;case"u32":case"i32":return 4;case"u64":case"i64":return 8;case"u128":case"i128":return 16;case"bytes":case"string":return 1;case"publicKey":return 32;default:if(void 0!==e.vec)return 1;if(void 0!==e.option)return 1+u(t,e.option);if(void 0!==e.defined){var r=t.types.filter((function(t){return t.name===e.defined}));if(1!==r.length)throw new a.a("Type not found: ".concat(JSON.stringify(e)));return s(t,r[0])}if(void 0!==e.array){var n=e.array[0],i=e.array[1];return u(t,n)*i}throw new Error("Invalid type ".concat(JSON.stringify(e)))}}function c(e,r){var n=Object(i.a)(r),a="".concat(e,":").concat(n);return t.from(o.sha256.digest(a)).slice(0,8)}}).call(this,r(7).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(130);var i=r(316),o=r(170);function a(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(i.a)(t)||Object(o.a)(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(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(317);var i=r(170),o=r(318);function a(t,e){return Object(n.a)(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(t,e)||Object(i.a)(t,e)||Object(o.a)()}},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),a=n[0],s=n[1],u=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),f=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[f++]=e>>16&255,u[f++]=e>>8&255,u[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(f(t,s,s+a>u?u:s+a));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>
210]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e,r){"use strict";(function(t,n){var i=r(180),o=r(137),a=r(70),s=r(34),u=r(36),c=r(39),f=r(40),h=r(182),l=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),d=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),p=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a},b=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&l(e,t,r);return d(e,t),e},v=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeUnchecked=e.deserialize=e.serialize=e.BinaryReader=e.BinaryWriter=e.BorshError=e.baseDecode=e.baseEncode=void 0;var m=v(r(46)),y=v(r(23)),g=b(r(366)),w=new("function"!==typeof t.TextDecoder?g.TextDecoder:t.TextDecoder)("utf-8",{fatal:!0});e.baseEncode=function(t){return"string"===typeof t&&(t=n.from(t,"utf8")),y.default.encode(n.from(t))},e.baseDecode=function(t){return n.from(y.default.decode(t))};var _=1024,k=function(t){c(r,t);var e=f(r);function r(t){var n;return s(this,r),(n=e.call(this,t)).fieldPath=[],n.originalMessage=t,n}return u(r,[{key:"addToFieldPath",value:function(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),r}(h(Error));e.BorshError=k;var M=function(){function t(){s(this,t),this.buf=n.alloc(_),this.length=0}return u(t,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=n.concat([this.buf,n.alloc(_)]))}},{key:"writeU8",value:function(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}},{key:"writeU16",value:function(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}},{key:"writeU32",value:function(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}},{key:"writeU64",value:function(t){this.maybeResize(),this.writeBuffer(n.from(new m.default(t).toArray("le",8)))}},{key:"writeU128",value:function(t){this.maybeResize(),this.writeBuffer(n.from(new m.default(t).toArray("le",16)))}},{key:"writeU256",value:function(t){this.maybeResize(),this.writeBuffer(n.from(new m.default(t).toArray("le",32)))}},{key:"writeU512",value:function(t){this.maybeResize(),this.writeBuffer(n.from(new m.default(t).toArray("le",64)))}},{key:"writeBuffer",value:function(t){this.buf=n.concat([n.from(this.buf.subarray(0,this.length)),t,n.alloc(_)]),this.length+=t.length}},{key:"writeString",value:function(t){this.maybeResize();var e=n.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}},{key:"writeFixedArray",value:function(t){this.writeBuffer(n.from(t))}},{key:"writeArray",value:function(t,e){this.maybeResize(),this.writeU32(t.length);var r,n=a(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;this.maybeResize(),e(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),t}();function S(t,e,r){var n=r.value;r.value=function(){try{for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,e)}catch(o){if(o instanceof RangeError){var i=o.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(i)>=0)throw new k("Reached the end of buffer when deserializing")}throw o}}}e.BinaryWriter=M;var E=function(){function t(e){s(this,t),this.buf=e,this.offset=0}return u(t,[{key:"readU8",value:function(){var t=this.buf.readUInt8(this.offset);return this.offset+=1,t}},{key:"readU16",value:function(){var t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}},{key:"readU32",value:function(){var t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}},{key:"readU64",value:function(){var t=this.readBuffer(8);return new m.default(t,"le")}},{key:"readU128",value:function(){var t=this.readBuffer(16);return new m.default(t,"le")}},{key:"readU256",value:function(){var t=this.readBuffer(32);return new m.default(t,"le")}},{key:"readU512",value:function(){var t=this.readBuffer(64);return new m.default(t,"le")}},{key:"readBuffer",value:function(t){if(this.offset+t>this.buf.length)throw new k("Expected buffer length ".concat(t," isn't within bounds"));var e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}},{key:"readString",value:function(){var t=this.readU32(),e=this.readBuffer(t);try{return w.decode(e)}catch(r){throw new k("Error decoding UTF-8 string: ".concat(r))}}},{key:"readFixedArray",value:function(t){return new Uint8Array(this.readBuffer(t))}},{key:"readArray",value:function(t){for(var e=this.readU32(),r=Array(),n=0;n<e;++n)r.push(t());return r}}]),t}();function x(t){return t.charAt(0).toUpperCase()+t.slice(1)}function A(t,e,r,n,i){try{if("string"===typeof n)i["write".concat(x(n))](r);
2else if(n instanceof Array)if("number"===typeof n[0]){if(r.length!==n[0])throw new k("Expecting byte array of length ".concat(n[0],", but got ").concat(r.length," bytes"));i.writeFixedArray(r)}else i.writeArray(r,(function(r){A(t,e,r,n[0],i)}));else if(void 0!==n.kind)switch(n.kind){case"option":null===r||void 0===r?i.writeU8(0):(i.writeU8(1),A(t,e,r,n.type,i));break;default:throw new k("FieldType ".concat(n," unrecognized"))}else O(t,r,i)}catch(o){throw o instanceof k&&o.addToFieldPath(e),o}}function O(t,e,r){var n=t.get(e.constructor);if(!n)throw new k("Class ".concat(e.constructor.name," is missing in schema"));if("struct"===n.kind)n.fields.map((function(n){var i=o(n,2),a=i[0],s=i[1];A(t,a,e[a],s,r)}));else{if("enum"!==n.kind)throw new k("Unexpected schema kind: ".concat(n.kind," for ").concat(e.constructor.name));for(var i=e[n.field],a=0;a<n.values.length;++a){var s=o(n.values[a],2),u=s[0],c=s[1];if(u===i){r.writeU8(a),A(t,u,e[u],c,r);break}}}}function j(t,e,r,n){try{return"string"===typeof r?n["read".concat(x(r))]():r instanceof Array?"number"===typeof r[0]?n.readFixedArray(r[0]):n.readArray((function(){return j(t,e,r[0],n)})):"option"===r.kind?n.readU8()?j(t,e,r.type,n):void 0:R(t,r,n)}catch(i){throw i instanceof k&&i.addToFieldPath(e),i}}function R(t,e,r){var n=t.get(e);if(!n)throw new k("Class ".concat(e.name," is missing in schema"));if("struct"===n.kind){var s,u={},c=a(t.get(e).fields);try{for(c.s();!(s=c.n()).done;){var f=o(s.value,2),h=f[0],l=f[1];u[h]=j(t,h,l,r)}}catch(m){c.e(m)}finally{c.f()}return new e(u)}if("enum"===n.kind){var d=r.readU8();if(d>=n.values.length)throw new k("Enum index: ".concat(d," is out of range"));var p=o(n.values[d],2),b=p[0],v=j(t,b,p[1],r);return new e(i({},b,v))}throw new k("Unexpected schema kind: ".concat(n.kind," for ").concat(e.constructor.name))}p([S],E.prototype,"readU8",null),p([S],E.prototype,"readU16",null),p([S],E.prototype,"readU32",null),p([S],E.prototype,"readU64",null),p([S],E.prototype,"readU128",null),p([S],E.prototype,"readU256",null),p([S],E.prototype,"readU512",null),p([S],E.prototype,"readString",null),p([S],E.prototype,"readFixedArray",null),p([S],E.prototype,"readArray",null),e.BinaryReader=E,e.serialize=function(t,e){var r=new M;return O(t,e,r),r.toArray()},e.deserialize=function(t,e,r){var n=new E(r),i=R(t,e,n);if(n.offset<r.length)throw new k("Unexpected ".concat(r.length-n.offset," bytes after deserialized data"));return i},e.deserializeUnchecked=function(t,e,r){return R(t,e,new E(r))}}).call(this,r(31),r(7).Buffer)},function(t,e,r){"use strict";(function(e,n){var i=65536,o=4294967295;var a=r(25).Buffer,s=e.crypto||e.msCrypto;s&&s.getRandomValues?t.exports=function(t,e){if(t>o)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(t);if(t>0)if(t>i)for(var u=0;u<t;u+=i)s.getRandomValues(r.slice(u,u+i));else s.getRandomValues(r);if("function"===typeof e)return n.nextTick((function(){e(null,r)}));return r}: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,r(31),r(27))},function(t,e,r){"use strict";var n=r(151),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=h;var o=Object.create(r(122));o.inherits=r(19);var a=r(274),s=r(204);o.inherits(h,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];h.prototype[f]||(h.prototype[f]=s.prototype[f])}function h(t){if(!(this instanceof h))return new h(t);a.call(this,t),s.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",l)}function l(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.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)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return p}));var n=r(1),i=r.n(n),o=r(4),a=r(9),s=r(10),u=r(16),c=r(174),f=function(){function t(e,r,n){Object(a.a)(this,t),this.connection=e,this.wallet=r,this.opts=n}return Object(s.a)(t,[{key:"send",value:function(){var t=Object(o.a)(i.a.mark((function t(e,r,n){var o,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r=[]),void 0===n&&(n=this.opts),e.feePayer=this.wallet.publicKey,t.next=5,this.connection.getRecentBlockhash(n.preflightCommitment);case 5:return e.recentBlockhash=t.sent.blockhash,t.next=8,this.wallet.signTransaction(e);case 8:return r.filter((function(t){return void 0!==t}
2)).forEach((function(t){e.partialSign(t)})),o=e.serialize(),t.next=12,Object(u.sendAndConfirmRawTransaction)(this.connection,o,n);case 12:return a=t.sent,t.abrupt("return",a);case 14:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"sendAll",value:function(){var t=Object(o.a)(i.a.mark((function t(e,r){var n,o,a,s,c,f,h,l=this;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r=this.opts),t.next=3,this.connection.getRecentBlockhash(r.preflightCommitment);case 3:return n=t.sent,o=e.map((function(t){var e=t.tx,r=t.signers;return void 0===r&&(r=[]),e.feePayer=l.wallet.publicKey,e.recentBlockhash=n.blockhash,r.filter((function(t){return void 0!==t})).forEach((function(t){e.partialSign(t)})),e})),t.next=7,this.wallet.signAllTransactions(o);case 7:a=t.sent,s=[],c=0;case 10:if(!(c<o.length)){t.next=21;break}return f=a[c],h=f.serialize(),t.t0=s,t.next=16,Object(u.sendAndConfirmRawTransaction)(this.connection,h,r);case 16:t.t1=t.sent,t.t0.push.call(t.t0,t.t1);case 18:c+=1,t.next=10;break;case 21:return t.abrupt("return",s);case 22:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"simulate",value:function(){var t=Object(o.a)(i.a.mark((function t(e,r,n){var o,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r=[]),void 0===n&&(n=this.opts),e.feePayer=this.wallet.publicKey,t.next=5,this.connection.getRecentBlockhash(null!==(o=n.preflightCommitment)&&void 0!==o?o:this.opts.preflightCommitment);case 5:return e.recentBlockhash=t.sent.blockhash,t.next=8,this.wallet.signTransaction(e);case 8:return r.filter((function(t){return void 0!==t})).forEach((function(t){e.partialSign(t)})),t.next=11,l(this.connection,e,null!==(a=n.commitment)&&void 0!==a?a:this.opts.commitment);case 11:return t.abrupt("return",t.sent);case 12:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()}],[{key:"defaultOptions",value:function(){return{preflightCommitment:"recent",commitment:"recent"}}},{key:"local",value:function(e,r){return r=null!==r&&void 0!==r?r:t.defaultOptions(),new t(new u.Connection(null!==e&&void 0!==e?e:"http://localhost:8899",r.preflightCommitment),h.local(),r)}},{key:"env",value:function(){if(!c.a){var e=r(27).env.ANCHOR_PROVIDER_URL;if(void 0===e)throw new Error("ANCHOR_PROVIDER_URL is not defined");var n=t.defaultOptions();return new t(new u.Connection(e,n.commitment),h.local(),n)}}}]),t}(),h=function(){function e(t){Object(a.a)(this,e),this.payer=t}return Object(s.a)(e,[{key:"signTransaction",value:function(){var t=Object(o.a)(i.a.mark((function t(e){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.partialSign(this.payer),t.abrupt("return",e);case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"signAllTransactions",value:function(){var t=Object(o.a)(i.a.mark((function t(e){var r=this;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.map((function(t){return t.partialSign(r.payer),t})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"publicKey",get:function(){return this.payer.publicKey}}],[{key:"local",value:function(){return new e(u.Keypair.fromSecretKey(t.from(JSON.parse(r(187).readFileSync(r(402).homedir()+"/.config/solana/id.json",{encoding:"utf-8"})))))}}]),e}();function l(t,e,r){return d.apply(this,arguments)}function d(){return(d=Object(o.a)(i.a.mark((function t(e,r,n){var o,a,s,u,c;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._recentBlockhash(e._disableBlockhashCaching);case 2:return r.recentBlockhash=t.sent,o=r.serializeMessage(),a=r._serialize(o),s=a.toString("base64"),u=[s,{encoding:"base64",commitment:n}],t.next=10,e._rpcRequest("simulateTransaction",u);case 10:if(!(c=t.sent).error){t.next=13;break}throw new Error("failed to simulate transaction: "+c.error.message);case 13:return t.abrupt("return",c.result);case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return null===b?f.local():b}var b=null}).call(this,r(7).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(136);function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function o(t){return e.Buffer&&"function"===typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=r(188),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c="foo"===function(){}.name;function f(t){return Object.prototype.toString.call(t)}function h(t){return!o(t)&&("function"===typeof e.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var l=t.exports=y,d=/\s*function\s+([^\(\s]*)\s*/;function p(t){if(a.isFunction(t)){if(c)return t.name;var e=t.toString().match(d);return e&&e[1]}}function b(t,e){return"string"===typeof t?t.length<e?t:t.slice(0,e):t}function v(t){if(c||!a.isFunction(t))return a.inspect(t);var e=p(t);return"[Function"+(e?": "+e:"")+"]"}function m(t,e,r,n,i){throw new l.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}
2function y(t,e){t||m(t,!0,e,"==",l.ok)}function g(t,e,r,n){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.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(h(t)&&h(e)&&f(t)===f(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&&s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=w(t),o=w(e);if(i&&!o||!i&&o)return!1;if(i)return g(t=u.call(t),e=u.call(e),r);var s,c,f=M(t),h=M(e);if(f.length!==h.length)return!1;for(f.sort(),h.sort(),c=f.length-1;c>=0;c--)if(f[c]!==h[c])return!1;for(c=f.length-1;c>=0;c--)if(!g(t[s=f[c]],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function w(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function _(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(r){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function k(t,e,r,n){var i;if("function"!==typeof e)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(r){e=r}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&m(i,r,"Missing expected exception"+n);var o="string"===typeof n,s=!t&&i&&!r;if((!t&&a.isError(i)&&o&&_(i,r)||s)&&m(i,r,"Got unwanted exception"+n),t&&i&&r&&!_(i,r)||!t&&i)throw i}l.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 b(v(t.actual),128)+" "+t.operator+" "+b(v(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=p(e),o=n.indexOf("\n"+i);if(o>=0){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}},a.inherits(l.AssertionError,Error),l.fail=m,l.ok=y,l.equal=function(t,e,r){t!=e&&m(t,e,r,"==",l.equal)},l.notEqual=function(t,e,r){t==e&&m(t,e,r,"!=",l.notEqual)},l.deepEqual=function(t,e,r){g(t,e,!1)||m(t,e,r,"deepEqual",l.deepEqual)},l.deepStrictEqual=function(t,e,r){g(t,e,!0)||m(t,e,r,"deepStrictEqual",l.deepStrictEqual)},l.notDeepEqual=function(t,e,r){g(t,e,!1)&&m(t,e,r,"notDeepEqual",l.notDeepEqual)},l.notDeepStrictEqual=function t(e,r,n){g(e,r,!0)&&m(e,r,n,"notDeepStrictEqual",t)},l.strictEqual=function(t,e,r){t!==e&&m(t,e,r,"===",l.strictEqual)},l.notStrictEqual=function(t,e,r){t===e&&m(t,e,r,"!==",l.notStrictEqual)},l.throws=function(t,e,r){k(!0,t,e,r)},l.doesNotThrow=function(t,e,r){k(!1,t,e,r)},l.ifError=function(t){if(t)throw t},l.strict=n((function t(e,r){e||m(e,!0,r,"==",t)}),l,{equal:l.strictEqual,deepEqual:l.deepStrictEqual,notEqual:l.notStrictEqual,notDeepEqual:l.notDeepStrictEqual}),l.strict.strict=l.strict;var M=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&&e.push(r);return e}}).call(this,r(31))},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(183);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(117).default,i=r(139);t.exports=function(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(117).default;function i(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=a?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,r&&r.set(t,o),o},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";
vendor: 3,683 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(81)},function(t,e,r){var n=r(144).MAX_SAFE_COMPONENT_LENGTH,i=r(145),o=(e=t.exports={}).re=[],a=e.src=[],s=e.t={},u=0,c=function(t,e,r){var n=u++;i(n,e),s[t]=n,a[n]=e,o[n]=new RegExp(e,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION","(".concat(a[s.NUMERICIDENTIFIER],")\\.")+"(".concat(a[s.NUMERICIDENTIFIER],")\\.")+"(".concat(a[s.NUMERICIDENTIFIER],")")),c("MAINVERSIONLOOSE","(".concat(a[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[s.NUMERICIDENTIFIERLOOSE],")")),c("PRERELEASEIDENTIFIER","(?:".concat(a[s.NUMERICIDENTIFIER],"|").concat(a[s.NONNUMERICIDENTIFIER],")")),c("PRERELEASEIDENTIFIERLOOSE","(?:".concat(a[s.NUMERICIDENTIFIERLOOSE],"|").concat(a[s.NONNUMERICIDENTIFIER],")")),c("PRERELEASE","(?:-(".concat(a[s.PRERELEASEIDENTIFIER],"(?:\\.").concat(a[s.PRERELEASEIDENTIFIER],")*))")),c("PRERELEASELOOSE","(?:-?(".concat(a[s.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(a[s.PRERELEASEIDENTIFIERLOOSE],")*))")),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD","(?:\\+(".concat(a[s.BUILDIDENTIFIER],"(?:\\.").concat(a[s.BUILDIDENTIFIER],")*))")),c("FULLPLAIN","v?".concat(a[s.MAINVERSION]).concat(a[s.PRERELEASE],"?").concat(a[s.BUILD],"?")),c("FULL","^".concat(a[s.FULLPLAIN],"$")),c("LOOSEPLAIN","[v=\\s]*".concat(a[s.MAINVERSIONLOOSE]).concat(a[s.PRERELEASELOOSE],"?").concat(a[s.BUILD],"?")),c("LOOSE","^".concat(a[s.LOOSEPLAIN],"$")),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE","".concat(a[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),c("XRANGEIDENTIFIER","".concat(a[s.NUMERICIDENTIFIER],"|x|X|\\*")),c("XRANGEPLAIN","[v=\\s]*(".concat(a[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[s.XRANGEIDENTIFIER],")")+"(?:".concat(a[s.PRERELEASE],")?").concat(a[s.BUILD],"?")+")?)?"),c("XRANGEPLAINLOOSE","[v=\\s]*(".concat(a[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[s.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(a[s.PRERELEASELOOSE],")?").concat(a[s.BUILD],"?")+")?)?"),c("XRANGE","^".concat(a[s.GTLT],"\\s*").concat(a[s.XRANGEPLAIN],"$")),c("XRANGELOOSE","^".concat(a[s.GTLT],"\\s*").concat(a[s.XRANGEPLAINLOOSE],"$")),c("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),c("COERCERTL",a[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM","(\\s*)".concat(a[s.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",c("TILDE","^".concat(a[s.LONETILDE]).concat(a[s.XRANGEPLAIN],"$")),c("TILDELOOSE","^".concat(a[s.LONETILDE]).concat(a[s.XRANGEPLAINLOOSE],"$")),c("LONECARET","(?:\\^)"),c("CARETTRIM","(\\s*)".concat(a[s.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",c("CARET","^".concat(a[s.LONECARET]).concat(a[s.XRANGEPLAIN],"$")),c("CARETLOOSE","^".concat(a[s.LONECARET]).concat(a[s.XRANGEPLAINLOOSE],"$")),c("COMPARATORLOOSE","^".concat(a[s.GTLT],"\\s*(").concat(a[s.LOOSEPLAIN],")$|^$")),c("COMPARATOR","^".concat(a[s.GTLT],"\\s*(").concat(a[s.FULLPLAIN],")$|^$")),c("COMPARATORTRIM","(\\s*)".concat(a[s.GTLT],"\\s*(").concat(a[s.LOOSEPLAIN],"|").concat(a[s.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE","^\\s*(".concat(a[s.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(a[s.XRANGEPLAIN],")")+"\\s*$"),c("HYPHENRANGELOOSE","^\\s*(".concat(a[s.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(a[s.XRANGEPLAINLOOSE],")")+"\\s*$"),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>
2=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},function(t,e,r){var n=r(144).MAX_LENGTH,i=r(98),o=i.re,a=i.t,s=r(49),u=r(146);t.exports=function(t,e){if(e=u(e),t instanceof s)return t;if("string"!==typeof t)return null;if(t.length>n)return null;if(!(e.loose?o[a.LOOSE]:o[a.FULL]).test(t))return null;try{return new s(t,e)}catch(r){return null}}},function(t,e,r){"use strict";var n={};function i(t,e,r){r||(r=Error);var i=function(t){var r,n;function i(r,n,i){return t.call(this,function(t,r,n){return"string"===typeof e?e:e(t,r,n)}(r,n,i))||this}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=t,n[t]=i}function o(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,i,a,s;if("string"===typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(n," ").concat(o(e,"type"));else{var u=function(t,e,r){return"number"!==typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(n," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var i=r(254),o=r(258);r(19)(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),o.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",f)))}function f(){this._writableState.ended||e.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.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,r(27))},function(t,e,r){"use strict";var n={};function i(t,e,r){r||(r=Error);var i=function(t){var r,n;function i(r,n,i){return t.call(this,function(t,r,n){return"string"===typeof e?e:e(t,r,n)}(r,n,i))||this}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=t,n[t]=i}function o(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invali
2d for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,i,a,s;if("string"===typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(n," ").concat(o(e,"type"));else{var u=function(t,e,r){return"number"!==typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(n," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var i=r(266),o=r(270);r(19)(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),o.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",f)))}function f(){this._writableState.ended||e.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.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,r(27))},function(t,e,r){var n=r(25).Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"===typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),f=0;f<c;f++)r[u+f]=t[s+f];s+=c,(a+=c)%i===0&&this._update(r)}return this._len+=o,this},i.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 r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,r){"use strict";var n={};function i(t,e,r){r||(r=Error);var i=function(t){var r,n;function i(r,n,i){return t.call(this,function(t,r,n){return"string"===typeof e?e:e(t,r,n)}(r,n,i))||this}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=t,n[t]=i}function o(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invali
2d for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,i,a,s;if("string"===typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(n," ").concat(o(e,"type"));else{var u=function(t,e,r){return"number"!==typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(n," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var i=r(296),o=r(300);r(19)(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),o.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",f)))}function f(){this._writableState.ended||e.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.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,r(27))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return h})),r.d(e,"c",(function(){return l}));var n=r(1),i=r.n(n),o=r(4),a=r(9),s=r(10),u=r(61),c=r(51),f=8,h=function(){function e(t){if(Object(a.a)(this,e),void 0!==t.accounts){var r=t.accounts.map((function(e){return[e.name,u.a.typeDefLayout(e,t.types)]}));this.accountLayouts=new Map(r)}else this.accountLayouts=new Map}return Object(s.a)(e,[{key:"encode",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n){var o,a,s,u,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.alloc(1e3),a=this.accountLayouts.get(r),s=a.encode(n,o),u=o.slice(0,s),e.next=6,l(r);case 6:return c=e.sent,e.abrupt("return",t.concat([c,u]));case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"decode",value:function(t,e){var r=e.slice(8);return this.accountLayouts.get(t).decode(r)}}]),e}();function l(t){return d.apply(this,arguments)}function d(){return(d=Object(o.a)(i.a.mark((function e(r){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.from(c.sha256.digest("account:".concat(r))).slice(0,8));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}).call(this,r(7).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(41);function i(t){return Object(n.a)(t).defaultView||window}},function(t,e,r){"use strict";
vendor: 11,254 bytes, line 2
2function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(341),i=Object(n.a)();e.a=i},function(t,e,r){"use strict";(function(t){var n=r(1),i=r(226),o=r(227),a="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:void 0,s=function(t){for(var e=new DataView(t),r="",n=0;n<e.byteLength;n+=4)r+=e.getUint32(n).toString(16).padStart(8,"0");return r},u=function(t){return function(){var e=o(n.mark((function e(r,o){var u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"===typeof r&&(r=(new a.TextEncoder).encode(r)),o=i({outputFormat:"hex"},o),e.next=4,a.crypto.subtle.digest(t,r);case 4:return u=e.sent,e.abrupt("return","hex"===o.outputFormat?s(u):u);case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()};e.sha1=u("SHA-1"),e.sha256=u("SHA-256"),e.sha384=u("SHA-384"),e.sha512=u("SHA-512")}).call(this,r(31))},function(t,e,r){t.exports=r(373)(r(374))},function(t,e,r){(function(n,i){var o;!function(){"use strict";var a="input is invalid type",s="object"===typeof window,u=s?window:{};u.JS_SHA3_NO_WINDOW&&(s=!1);var c=!s&&"object"===typeof self;!u.JS_SHA3_NO_NODE_JS&&"object"===typeof n&&n.versions&&n.versions.node?u=i:c&&(u=self);var f=!u.JS_SHA3_NO_COMMON_JS&&"object"===typeof t&&t.exports,h=r(240),l=!u.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],b=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],y=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!u.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!l||!u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var _=function(t,e,r){return function(n){return new L(t,e,t).update(n)[r]()}},k=function(t,e,r){return function(n,i){return new L(t,e,i).update(n)[r]()}},M=function(t,e,r){return function(e,n,i,o){return O["cshake"+t].update(e,n,i,o)[r]()}},S=function(t,e,r){return function(e,n,i,o){return O["kmac"+t].update(e,n,i,o)[r]()}},E=function(t,e,r,n){for(var i=0;i<g.length;++i){var o=g[i];t[o]=e(r,n,o)}return t},x=function(t,e){var r=_(t,e,"hex");return r.create=function(){return new L(t,e,t)},r.update=function(t){return r.create().update(t)},E(r,_,t,e)},A=[{name:"keccak",padding:[1,256,65536,16777216],bits:m,createMethod:x},{name:"sha3",padding:[6,1536,393216,100663296],bits:m,createMethod:x},{name:"shake",padding:[31,7936,2031616,520093696],bits:y,createMethod:function(t,e){var r=k(t,e,"hex");return r.create=function(r){return new L(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},E(r,k,t,e)}},{name:"cshake",padding:p,bits:y,createMethod:function(t,e){var r=w[t],n=M(t,0,"hex");return n.create=function(n,i,o){return i||o?new L(t,e,n).bytepad([i,o],r):O["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},E(n,M,t,e)}},{name:"kmac",padding:p,bits:y,createMethod:function(t,e){var r=w[t],n=S(t,0,"hex");return n.create=function(n,i,o){return new N(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},E(n,S,t,e)}}],O={},j=[],R=0;R<A.length;++R)for(var I=A[R],P=I.bits,T=0;T<P.length;++T){var C=I.name+"_"+P[T];if(j.push(C),O[C]=I.createMethod(P[T],I.padding),"sha3"!==I.name){var B=I.name+P[T];j.push(B),O[B]=O[C]}}function L(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function N(t,e,r){L.call(this,t,e,r)}L.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(a);if(null===t)throw new Error(a);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw new Error(a);e=!0}for(var n,i,o=this.blocks,s=this.byteCount,u=t.length,c=this.blockCount,f=0,h=this.s;f<u;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<c+1;++n)o[n]=0;if(e)for(n=this.start;f<u&&n<s;++f)o[n>>2]|=t[f]<<b[3&n++];else for(n=this.start;f<u&&n<s;++f)(i=t.charCodeAt(f))<128?o[n>>2]|=i<<b[3&n++]:i<2048?(o[n>>2]|=(192|i>>6)<<b[3&n++],o[n>>2]|=(128|63&i)<<b[3&n++]):i<55296||i>=57344?(o[n>>2]|=(224|i>>12)<<b[3&n++],o[n>>2]|=(128|i>>6&63)<<b[3&n++],o[n>>2]|=(128|63&i)<<b[3&n++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++f)),o[n>>2]|=(240|i>>18)<<b[3&n++],o[n>>2]|=(128|i>>12&63)<<b[3&n++],o[n>>2]|=(128|i>>6&63)<<b[3&n++],o[n>>2]|=(128|63&i)<<b[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[c],n=0;n<c;++n)h[n]^=o[n];D(h),this.reset=!0}else this.start=n}return this},L.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},L.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(a);if(null===t)throw new Error(a);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw new Error(a);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var s=t.charCodeAt(o);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},L.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,o=[];return o.length=i,this.update(o),this},L.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];D(n)}},L.prototype.toString=L.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<e&&a<n;++o,++a)t=r[o],s+=d[t>>4&15]+d[15&t]+d[t>>12&15]+d[t>>8&15]+d[t>>20&15]+d[t>>16&15]+d[t>>28&15]+d[t>>24&15];a%e===0&&(D(r),o=0)}return i&&(t=r[o],s+=d[t>>4&15]+d[15&t],i>1&&(s+=d[t>>12&15]+d[t>>8&15]),i>2&&(s+=d[t>>20&15]+d[t>>16&15])),s},L.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a<n;){for(o=0;o<e&&a<n;++o,++a)u[a]=r[o];a%e===0&&D(r)}return i&&(u[o]=r[o],t=t.slice(0,s)),t},L.prototype.buffer=L.prototype.arrayBuffer,L.prototype.digest=L.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)t=s<<2,e=n[a],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r===0&&D(n)}return o&&(t=s<<2,e=n[a],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},N.prototype=new L,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),L.prototype.finalize.call(this)};var D=function(t){var e,r,n,i,o,a,s,u,c,f,h,l,d,p,b,m,y,g,w,_,k,M,S,E,x,A,O,j,R,I,P,T,C,B,L,N,D,U,z,W,q,F,K,H,Y,V,Z,G,X,J,Q,$,tt,et,rt,nt,it,ot,at,st,ut,ct,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],f=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],e=(l=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(f<<1|h>>>31),r=s^(h<<1|f>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(l<<1|d>>>31),r=c^(d<<1|l>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=f^(i<<1|o>>>31),r=h^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],b=t[1],V=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,R=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,F=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,m=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,G=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,I=t[33]<<13|t[32]>>>19,P=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,E=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,k=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,H=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,W=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,M=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~m&g,t[1]=b^~y&w,t[10]=E^~A&j,t[11]=x^~O&R,t[20]=B^~N&U,t[21]=L^~D&z,t[30]=H^~V&G,t[31]=Y^~Z&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=m^~g&_,t[3]=y^~w&k,t[12]=A^~j&I,t[13]=O^~R&P,t[22]=N^~U&W,t[23]=D^~z&q,t[32]=V^~G&J,t[33]=Z^~X&Q,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~_&M,t[5]=w^~k&S,t[14]=j^~I&T,t[15]=R^~P&C,t[24]=U^~W&F,t[25]=z^~q&K,t[34]=G^~J&$,t[35]=X^~Q&tt,t[44]=ot^~st&ct,t[45]=at^~ut&ft,t[6]=_^~M&p,t[7]=k^~S&b,t[16]=I^~T&E,t[17]=P^~C&x,t[26]=W^~F&B,t[27]=q^~K&L,t[36]=J^~$&H,t[37]=Q^~tt&Y,t[46]=st^~ct&et,t[47]=ut^~ft&rt,t[8]=M^~p&m,t[9]=S^~b&y,t[18]=T^~E&A,t[19]=C^~x&O,t[28]=F^~B&N,t[29]=K^~L&D,t[38]=$^~H&V,t[39]=tt^~Y&Z,t[48]=ct^~et&nt,t[49]=ft^~rt&it,t[0]^=v[n],t[1]^=v[n+1]};if(f)t.exports=O;else{for(R=0;R<j.length;++R)u[j[R]]=O[j[R]];h&&(void 0===(o=function(){return O}.call(e,r,e,t))||(t.exports=o))}}()}).call(this,r(27),r(31))},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";var n=r(2),i=r.n(n);e.a=i.a.createContext(null)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}
2)),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return c})),r.d(e,"e",(function(){return j})),r.d(e,"d",(function(){return I}));var n;r(329);!function(t){t.Bitpie="Bitpie",t.Blocto="Blocto",t.Coin98="Coin98",t.Ledger="Ledger",t.MathWallet="MathWallet",t.Phantom="Phantom",t.SafePal="SafePal",t.Slope="Slope",t.Solflare="Solflare",t.SolflareWeb="Solflare (Web)",t.Sollet="Sollet",t.SolletExtension="Sollet (Extension)",t.Solong="Solong",t.Torus="Torus"}(n||(n={}));r(330),r(331),r(332),r(334);var i=r(335),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:n.Phantom,url:"https://www.phantom.app",icon:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjM0IiB3aWR0aD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iLjUiIHgyPSIuNSIgeTE9IjAiIHkyPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM1MzRiYjEiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM1NTFiZjkiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9Ii41IiB4Mj0iLjUiIHkxPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii44MiIvPjwvbGluZWFyR3JhZGllbnQ+PGNpcmNsZSBjeD0iMTciIGN5PSIxNyIgZmlsbD0idXJsKCNhKSIgcj0iMTciLz48cGF0aCBkPSJtMjkuMTcwMiAxNy4yMDcxaC0yLjk5NjljMC02LjEwNzQtNC45NjgzLTExLjA1ODE3LTExLjA5NzUtMTEuMDU4MTctNi4wNTMyNSAwLTEwLjk3NDYzIDQuODI5NTctMTEuMDk1MDggMTAuODMyMzctLjEyNDYxIDYuMjA1IDUuNzE3NTIgMTEuNTkzMiAxMS45NDUzOCAxMS41OTMyaC43ODM0YzUuNDkwNiAwIDEyLjg0OTctNC4yODI5IDEzLjk5OTUtOS41MDEzLjIxMjMtLjk2MTktLjU1MDItMS44NjYxLTEuNTM4OC0xLjg2NjF6bS0xOC41NDc5LjI3MjFjMCAuODE2Ny0uNjcwMzggMS40ODQ3LTEuNDkwMDEgMS40ODQ3LS44MTk2NCAwLTEuNDg5OTgtLjY2ODMtMS40ODk5OC0xLjQ4NDd2LTIuNDAxOWMwLS44MTY3LjY3MDM0LTEuNDg0NyAxLjQ4OTk4LTEuNDg0Ny44MTk2MyAwIDEuNDkwMDEuNjY4IDEuNDkwMDEgMS40ODQ3em01LjE3MzggMGMwIC44MTY3LS42NzAzIDEuNDg0Ny0xLjQ4OTkgMS40ODQ3LS44MTk3IDAtMS40OS0uNjY4My0xLjQ5LTEuNDg0N3YtMi40MDE5YzAtLjgxNjcuNjcwNi0xLjQ4NDcgMS40OS0xLjQ4NDcuODE5NiAwIDEuNDg5OS42NjggMS40ODk5IDEuNDg0N3oiIGZpbGw9InVybCgjYikiLz48L3N2Zz4K",adapter:function(){return new i.PhantomWalletAdapter(t)}}},a=(r(336),r(337)),s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:n.Slope,url:"https://www.slope.finance/#/wallet",icon:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyOCIgdmlld0JveD0iMCAwIDEyOCAxMjgiIHdpZHRoPSIxMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iNjQiIGN5PSI2NCIgZmlsbD0iIzZlNjZmYSIgcj0iNjQiLz48ZyBmaWxsPSIjZmZmIj48cGF0aCBkPSJtMzUuMTk2MyA1NC4zOTk4aDE5LjJ2MTkuMmgtMTkuMnoiLz48cGF0aCBkPSJtNzMuNTk3IDU0LjM5OTgtMTkuMiAxOS4ydi0xOS4ybDE5LjItMTkuMnoiIGZpbGwtb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtNzMuNTk3IDczLjU5OTgtMTkuMiAxOS4ydi0xOS4ybDE5LjItMTkuMnoiIGZpbGwtb3BhY2l0eT0iLjc1Ii8+PHBhdGggZD0ibTczLjYwNCA1NC4zOTk4aDE5LjJ2MTkuMmgtMTkuMnoiLz48cGF0aCBkPSJtNTQuMzk2OCAzNS4yIDE5LjItMTkuMnYxOS4ybC0xOS4yIDE5LjJoLTE5LjJ6IiBmaWxsLW9wYWNpdHk9Ii43NSIvPjxwYXRoIGQ9Im03My41OTE1IDkyLjgtMTkuMiAxOS4ydi0xOS4ybDE5LjItMTkuMmgxOS4yeiIgZmlsbC1vcGFjaXR5PSIuNCIvPjwvZz48L3N2Zz4=",adapter:function(){return new a.SlopeWalletAdapter(t)}}},u=r(338),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:n.Solflare,url:"https://solflare.com",icon:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjUwIiB2aWV3Qm94PSIwIDAgNTAgNTAiIHdpZHRoPSI1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmMxMGIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmYjNmMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2LjQ3ODM1IiB4Mj0iMzQuOTEwNyIgeGxpbms6aHJlZj0iI2EiIHkxPSI3LjkyIiB5Mj0iMzMuNjU5MyIvPjxyYWRpYWxHcmFkaWVudCBpZD0iYyIgY3g9IjAiIGN5PSIwIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDQuOTkyMTg4MzIgMTIuMDYzODc5NjMgLTEyLjE4MTEzNjU1IDUuMDQwNzEwNzQgMjIuNTIwMiAyMC42MTgzKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHI9IjEiIHhsaW5rOmhyZWY9IiNhIi8+PHBhdGggZD0ibTI1LjE3MDggNDcuOTEwNGMuNTI1IDAgLjk1MDcuNDIxLjk1MDcuOTQwM3MtLjQyNTcuOTQwMi0uOTUwNy45NDAyLS45NTA3LS40MjA5LS45NTA3LS45NDAyLjQyNTctLjk0MDMuOTUwNy0uOTQwM3ptLTEuMDMyOC00NC45MTU2NWMuNDY0Ni4wMzgzNi44Mzk4LjM5MDQuOTAyNy44NDY4MWwxLjEzMDcgOC4yMTU3NGMuMzc5OCAyLjcxNDMgMy42NTM1IDMuODkwNCA1LjY3NDMgMi4wNDU5bDExLjMyOTEtMTAuMzExNThjLjI3MzMtLjI0ODczLjY5ODktLjIzMTQ5Ljk1MDcuMDM4NTEuMjMwOS4yNDc3Mi4yMzc5LjYyNjk3LjAxNjEuODgyNzdsLTkuODc5MSAxMS4zOTU4Yy0xLjgxODcgMi4wOTQyLS40NzY4IDUuMzY0MyAyLjI5NTYgNS41OTc4bDguNzE2OC44NDAzYy40MzQxLjA0MTguNzUxNy40MjM0LjcwOTMuODUyNC0uMDM0OS4zNTM3
2LS4zMDc0LjYzOTUtLjY2MjguNjk0OWwtOS4xNTk0IDEuNDMwMmMtMi42NTkzLjM2MjUtMy44NjM2IDMuNTExNy0yLjEzMzkgNS41NTc2bDMuMjIgMy43OTYxYy4yNTk0LjMwNTguMjE4OC43NjE1LS4wOTA4IDEuMDE3OC0uMjYyMi4yMTcyLS42NDE5LjIyNTYtLjkxMzguMDIwM2wtMy45Njk0LTIuOTk3OGMtMi4xNDIxLTEuNjEwOS01LjIyOTctLjI0MTctNS40NTYxIDIuNDI0M2wtLjg3NDcgMTAuMzk3NmMtLjAzNjIuNDI5NS0uNDE3OC43NDg3LS44NTI1LjcxMy0uMzY5LS4wMzAzLS42NjcxLS4zMDk3LS43MTcxLS42NzIxbC0xLjM4NzEtMTAuMDQzN2MtLjM3MTctMi43MTQ0LTMuNjQ1NC0zLjg5MDQtNS42NzQzLTIuMDQ1OWwtMTIuMDUxOTUgMTAuOTc0Yy0uMjQ5NDcuMjI3MS0uNjM4MDkuMjExNC0uODY4LS4wMzUtLjIxMDk0LS4yMjYyLS4yMTczNS0uNTcyNC0uMDE0OTMtLjgwNmwxMC41MTgxOC0xMi4xMzg1YzEuODE4Ny0yLjA5NDIuNDg0OS01LjM2NDQtMi4yODc2LTUuNTk3OGwtOC43MTg3Mi0uODQwNWMtLjQzNDEzLS4wNDE4LS43NTE3Mi0uNDIzNS0uNzA5MzYtLjg1MjQuMDM0OTMtLjM1MzcuMzA3MzktLjYzOTQuNjYyNy0uNjk1bDkuMTUzMzgtMS40Mjk5YzIuNjU5NC0uMzYyNSAzLjg3MTgtMy41MTE3IDIuMTQyMS01LjU1NzZsLTIuMTkyLTIuNTg0MWMtLjMyMTctLjM3OTItLjI3MTMtLjk0NDMuMTEyNi0xLjI2MjEuMzI1My0uMjY5NC43OTYzLS4yNzk3IDEuMTMzNC0uMDI0OWwyLjY5MTggMi4wMzQ3YzIuMTQyMSAxLjYxMDkgNS4yMjk3LjI0MTcgNS40NTYxLTIuNDI0M2wuNzI0MS04LjU1OTk4Yy4wNDU3LS41NDA4LjUyNjUtLjk0MjU3IDEuMDczOS0uODk3Mzd6bS0yMy4xODczMyAyMC40Mzk2NWMuNTI1MDQgMCAuOTUwNjcuNDIxLjk1MDY3Ljk0MDNzLS40MjU2My45NDAzLS45NTA2Ny45NDAzYy0uNTI1MDQxIDAtLjk1MDY3LS40MjEtLjk1MDY3LS45NDAzcy40MjU2MjktLjk0MDMuOTUwNjctLjk0MDN6bTQ3LjY3OTczLS45NTQ3Yy41MjUgMCAuOTUwNy40MjEuOTUwNy45NDAzcy0uNDI1Ny45NDAyLS45NTA3Ljk0MDItLjk1MDctLjQyMDktLjk1MDctLjk0MDIuNDI1Ny0uOTQwMy45NTA3LS45NDAzem0tMjQuNjI5Ni0yMi40Nzk3Yy41MjUgMCAuOTUwNi40MjA5NzMuOTUwNi45NDAyNyAwIC41MTkzLS40MjU2Ljk0MDI3LS45NTA2Ljk0MDI3LS41MjUxIDAtLjk1MDctLjQyMDk3LS45NTA3LS45NDAyNyAwLS41MTkyOTcuNDI1Ni0uOTQwMjcuOTUwNy0uOTQwMjd6IiBmaWxsPSJ1cmwoI2IpIi8+PHBhdGggZD0ibTI0LjU3MSAzMi43NzkyYzQuOTU5NiAwIDguOTgwMi0zLjk3NjUgOC45ODAyLTguODgxOSAwLTQuOTA1My00LjAyMDYtOC44ODE5LTguOTgwMi04Ljg4MTlzLTguOTgwMiAzLjk3NjYtOC45ODAyIDguODgxOWMwIDQuOTA1NCA0LjAyMDYgOC44ODE5IDguOTgwMiA4Ljg4MTl6IiBmaWxsPSJ1cmwoI2MpIi8+PC9zdmc+",adapter:function(){return new u.SolflareWalletAdapter(t)}}},f=r(1),h=r.n(f),l=r(9),d=r(10),p=r(44),b=r(21),v=r(22),m=r(14),y=r(74),g=r.n(y),w=r(16),_=r(23),k=r.n(_),M=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},S=function(t){Object(b.a)(r,t);var e=Object(v.a)(r);function r(t,n){var i,o;if(Object(l.a)(this,r),(i=e.call(this))._network=n,i._publicKey=null,i._popup=null,i._handlerAdded=!1,i._nextRequestId=1,i._autoApprove=!1,i._responsePromises=new Map,i.handleMessage=function(t){var e;if(i._injectedProvider&&t.source===window||t.origin===(null===(e=i._providerUrl)||void 0===e?void 0:e.origin)&&t.source===i._popup)if("connected"===t.data.method){var r=new w.PublicKey(t.data.params.publicKey);i._publicKey&&i._publicKey.equals(r)||(i._publicKey&&!i._publicKey.equals(r)&&i.handleDisconnect(),i._publicKey=r,i._autoApprove=!!t.data.params.autoApprove,i.emit("connect",i._publicKey))}else if("disconnected"===t.data.method)i.handleDisconnect();else if(t.data.result||t.data.error){var n=i._responsePromises.get(t.data.id);if(n){var o=Object(m.a)(n,2),a=o[0],s=o[1];t.data.result?a(t.data.result):s(new Error(t.data.error))}}},i._beforeUnload=function(){i.disconnect()},function(t){return"object"===typeof t&&null!==t}(o=t)&&"postMessage"in o&&"function"===typeof o.postMessage)i._injectedProvider=t;else{if(!function(t){return"string"===typeof t}(t))throw new Error("provider parameter must be an injected provider or a URL string.");i._providerUrl=new URL(t),i._providerUrl.hash=new URLSearchParams({origin:window.location.origin,network:i._network}).toString()}return i}return Object(d.a)(r,[{key:"handleConnect",value:function(){var t,e=this;return this._handlerAdded||(this._handlerAdded=!0,window.addEventListener("message",this.handleMessage),window.addEventListener("beforeunload",this._beforeUnload)),this._injectedProvider?new Promise((function(t){e.sendRequest("connect",{}),t()})):(window.name="parent",this._popup=window.open(null===(t=this._providerUrl)||void 0===t?void 0:t.toString(),"_blank","location,resizable,width=460,height=675"),new Promise((function(t){e.once("connect",t)})))}},{key:"handleDisconnect",value:function(){var t=this;this._handlerAdded&&(this._handlerAdded=!1,window.removeEventListener("message",this.handleMessage),window.removeEventListener("beforeunload",this._beforeUnload)),this._publicKey&&(this._publicKey=null,this.emit
2("disconnect")),this._responsePromises.forEach((function(e,r){var n=Object(m.a)(e,2)[1];t._responsePromises.delete(r),n(new Error("Wallet disconnected"))}))}},{key:"sendRequest",value:function(t,e){return M(this,void 0,void 0,h.a.mark((function r(){var n,i=this;return h.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("connect"===t||this.connected){r.next=2;break}throw new Error("Wallet not connected");case 2:return n=this._nextRequestId,++this._nextRequestId,r.abrupt("return",new Promise((function(r,o){var a,s,u,c;i._responsePromises.set(n,[r,o]),i._injectedProvider?i._injectedProvider.postMessage({jsonrpc:"2.0",id:n,method:t,params:Object.assign({network:i._network},e)}):(null===(a=i._popup)||void 0===a||a.postMessage({jsonrpc:"2.0",id:n,method:t,params:e},null!==(u=null===(s=i._providerUrl)||void 0===s?void 0:s.origin)&&void 0!==u?u:""),i.autoApprove||null===(c=i._popup)||void 0===c||c.focus())})));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"publicKey",get:function(){return this._publicKey}},{key:"connected",get:function(){return null!==this._publicKey}},{key:"autoApprove",get:function(){return this._autoApprove}},{key:"connect",value:function(){return M(this,void 0,void 0,h.a.mark((function t(){return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._popup&&this._popup.close(),t.next=3,this.handleConnect();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"disconnect",value:function(){return M(this,void 0,void 0,h.a.mark((function t(){return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._injectedProvider){t.next=3;break}return t.next=3,this.sendRequest("disconnect",{});case 3:this._popup&&this._popup.close(),this.handleDisconnect();case 5:case"end":return t.stop()}}),t,this)})))}},{key:"sign",value:function(t,e){return M(this,void 0,void 0,h.a.mark((function r(){var n,i,o;return h.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t instanceof Uint8Array){r.next=2;break}throw new Error("Data must be an instance of Uint8Array");case 2:return r.next=4,this.sendRequest("sign",{data:t,display:e});case 4:return n=r.sent,i=k.a.decode(n.signature),o=new w.PublicKey(n.publicKey),r.abrupt("return",{signature:i,publicKey:o});case 8:case"end":return r.stop()}}),r,this)})))}},{key:"signTransaction",value:function(t){return M(this,void 0,void 0,h.a.mark((function e(){var r,n,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest("signTransaction",{message:k.a.encode(t.serializeMessage())});case 2:return r=e.sent,n=k.a.decode(r.signature),i=new w.PublicKey(r.publicKey),t.addSignature(i,n),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"signAllTransactions",value:function(t){return M(this,void 0,void 0,h.a.mark((function e(){var r,n,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest("signAllTransactions",{messages:t.map((function(t){return k.a.encode(t.serializeMessage())}))});case 2:return r=e.sent,n=r.signatures.map((function(t){return k.a.decode(t)})),i=new w.PublicKey(r.publicKey),t=t.map((function(t,e){return t.addSignature(i,n[e]),t})),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)})))}}]),r}(g.a);var E=r(26),x=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},A=function(t){Object(b.a)(r,t);var e=Object(v.a)(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(l.a)(this,r),(t=e.call(this))._disconnected=function(){var e=t._wallet;e&&(e.off("disconnect",t._disconnected),t._wallet=null,t.emit("error",new E.WalletDisconnectedError),t.emit("disconnect"))},t._provider=n.provider||("undefined"===typeof window?void 0:window.sollet),t._network=n.network||E.WalletAdapterNetwork.Mainnet,t._connecting=!1,t._wallet=null,t.ready||Object(E.pollUntilReady)(Object(p.a)(t),n.pollInterval||1e3,n.pollCount||3),t}return Object(d.a)(r,[{key:"publicKey",get:function(){var t;return(null===(t=this._wallet)||void 0===t?void 0:t.publicKey)||null}},{key:"ready",get:function(){var t;return"string"===typeof this._provider||"undefined"!==typeof window&&"function"===typeof(null===(t=window.sollet)||void 0===t?void 0:t.postMessage)}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.connected)}},{key:"autoApprove",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.autoApprove)}},{key:"connect",value:function(){return x(this,void 0,void 0,h.a.mark((function t(){var e,r,n,i,o;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e=this._provider||"undefined"!==typeof window&&window.sollet){t.next=7;break}
2throw new E.WalletNotFoundError;case 7:return t.prev=7,r=new S(e,this._network),n=r.handleDisconnect,t.prev=10,t.next=13,new Promise((function(t,a){var s=function e(){i&&clearTimeout(i),r.off("connect",e),t()};if(r.handleDisconnect=function(){r.off("connect",s),a(new E.WalletWindowClosedError);for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return n.apply(r,e)},r.on("connect",s),r.connect().catch((function(t){r.off("connect",s),a(t)})),"string"===typeof e){var u=0;o=setInterval((function(){var t=r._popup;t?t.closed&&a(new E.WalletWindowClosedError):u>50&&a(new E.WalletWindowBlockedError),u++}),100)}else i=setTimeout((function(){return a(new E.WalletTimeoutError)}),1e4)}));case 13:return t.prev=13,r.handleDisconnect=n,o&&clearInterval(o),t.finish(13);case 17:t.next=24;break;case 19:if(t.prev=19,t.t0=t.catch(7),!(t.t0 instanceof E.WalletError)){t.next=23;break}throw t.t0;case 23:throw new E.WalletConnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 24:r.on("disconnect",this._disconnected),this._wallet=r,this.emit("connect"),t.next=33;break;case 29:throw t.prev=29,t.t1=t.catch(0),this.emit("error",t.t1),t.t1;case 33:return t.prev=33,this._connecting=!1,t.finish(33);case 36:case"end":return t.stop()}}),t,this,[[0,29,33,36],[7,19],[10,,13,17]])})))}},{key:"disconnect",value:function(){return x(this,void 0,void 0,h.a.mark((function t(){var e,r;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._wallet)){t.next=17;break}return e.off("disconnect",this._disconnected),this._wallet=null,r=e.handleDisconnect,t.prev=5,t.next=8,new Promise((function(t,n){var i=setTimeout((function(){return t()}),250);e.handleDisconnect=function(){clearTimeout(i),t();for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r.apply(e,o)},e.disconnect().then((function(){clearTimeout(i),t()}),(function(e){clearTimeout(i),"Wallet disconnected"===e.message?t():n(e)}))}));case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),this.emit("error",new E.WalletDisconnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));case 13:return t.prev=13,e.handleDisconnect=r,t.finish(13);case 16:this.emit("disconnect");case 17:case"end":return t.stop()}}),t,this,[[5,10,13,16]])})))}},{key:"signTransaction",value:function(t){return x(this,void 0,void 0,h.a.mark((function e(){var r;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}
2throw new E.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new E.WalletSignTransactionError(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})))}},{key:"signAllTransactions",value:function(t){return x(this,void 0,void 0,h.a.mark((function e(){var r;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new E.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new E.WalletSignTransactionError(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})))}},{key:"signMessage",value:function(t){return x(this,void 0,void 0,h.a.mark((function e(){var r,n,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}
2throw new E.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.sign(t,"utf8");case 7:return n=e.sent,i=n.signature,e.abrupt("return",Uint8Array.from(i));case 12:throw e.prev=12,e.t0=e.catch(4),new E.WalletSignMessageError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 15:e.next=21;break;case 17:throw e.prev=17,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 21:case"end":return e.stop()}}),e,this,[[0,17],[4,12]])})))}}]),r}(E.BaseMessageSignerWalletAdapter),O=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.provider,O(t,["provider"]));return{name:n.Sollet,url:"https://www.sollet.io",icon:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUzMCIgd2lkdGg9IjUzMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtLTEtMWg1MzJ2NTMyaC01MzJ6IiBmaWxsPSJub25lIi8+PGcgZmlsbD0iIzAwZmZhMyI+PHBhdGggZD0ibTg4Ljg4OTM1IDM3Mi45ODIwMWMzLjE5My0zLjE5IDcuNTIyLTQuOTgyIDEyLjAzNS00Ljk4Mmg0MTYuNDYxYzcuNTg2IDAgMTEuMzg0IDkuMTc0IDYuMDE3IDE0LjUzNmwtODIuMjkxIDgyLjIyNmMtMy4xOTMgMy4xOTEtNy41MjIgNC45ODMtMTIuMDM2IDQuOTgzaC00MTYuNDYwMWMtNy41ODY2IDAtMTEuMzg0NS05LjE3NC02LjAxNzgtMTQuNTM3bDgyLjI5MTktODIuMjI2eiIvPjxwYXRoIGQ9Im04OC44ODkzNSA2NS45ODI1YzMuMTkzLTMuMTkwNCA3LjUyMi00Ljk4MjUgMTIuMDM1LTQuOTgyNWg0MTYuNDYxYzcuNTg2IDAgMTEuMzg0IDkuMTczOSA2LjAxNyAxNC41MzYzbC04Mi4yOTEgODIuMjI2N2MtMy4xOTMgMy4xOS03LjUyMiA0Ljk4Mi0xMi4wMzYgNC45ODJoLTQxNi40NjAxYy03LjU4NjYgMC0xMS4zODQ1LTkuMTc0LTYuMDE3OC0xNC41MzZsODIuMjkxOS04Mi4yMjY1eiIvPjxwYXRoIGQ9Im00NDEuMTExMzUgMjE5LjEwOTVjLTMuMTkzLTMuMTktNy41MjItNC45ODItMTIuMDM2LTQuOTgyaC00MTYuNDYwMWMtNy41ODY2IDAtMTEuMzg0NSA5LjE3My02LjAxNzggMTQuNTM2bDgyLjI5MTkgODIuMjI2YzMuMTkzIDMuMTkgNy41MjIgNC45ODMgMTIuMDM1IDQuOTgzaDQxNi40NjFjNy41ODYgMCAxMS4zODQtOS4xNzQgNi4wMTctMTQuNTM3eiIvPjwvZz48L3N2Zz4=",adapter:function(){return new A(Object.assign({provider:"https://www.sollet.io"},e))}}},R=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.provider,R(t,["provider"]));return{name:n.SolletExtension,url:"https://chrome.google.com/webstore/detail/sollet/fhmfendgdocmcbmfikdcogofphimnkno",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAP50lEQVR4AeyZRZIcMRBFNbQ3MzSZVqalV2ZmuJXZTWZmOoZXZjiBtwapazOU8/9MThRcoEHZEa8zVCBF6P1iN/8r1f0QcKVGGC43/AjAsv9jWLYP1MHnUsP/w/qpcj1IuWH0EnRCN3REV+psHx0CR6d0C1LXYPavjAWAdbgEdOVZdPYJtTCQtnsPo+CG7tThWXU6XCYZ59k0jGhdVKqH93qUTytIFmvvyzcgXZ3N+6NLOqXbgushV1iwHon5pZ1MoE7ZhPY7fkpdCt3Scda5y5zyF2PD76n8IMbgkIYgfKdrdT7ssHAYoBFexyHfQkDXYNY9/5iEC3rNnwRiDDSTdE3nwLm19d9DpYb/wJV2zY8AdUzndM+j/wCwiYkMOqd7BuAG0sCFdvTHwxSd0z3f/H3mQtRpVmPQSV3TPc8Af9mwlzwRoa7pngGwU3+k0L2L98OOQfcu5gkwBjoAhgXAsAAYFgDDAmBYAAwLQEWpkmYKlykWgEGBYmsK2+tueFlz3cvKa15WXPWyTFkOVmDZKqxbi23W171U0v01IBaAnqZUz0unRIpdeMnLosteVkPulnaQnXc7sudJR468SOT060TOvEnk2MtEDjxLZNfDjmy7E2RTK8gqBGLx5bn9l16ZCw5DUMuEoVS3APSAeI+aHuWUtQjSNkIixc6wdw5AsjtdGy/z+17btm3btv3+bdu2bdvXtm3b9+4YSb/zy+ap25WaSTJ3Zie7Vd1VXdnhTuU8fdTnPH3quJJ5cHHVzNpSN5tznslVfFPzfMPwfWb/317jWqr5Zm/ZN+v3eWbG5rp5bFnVnDe5bH73ZNF87LacAIUGERj0GxwAsljx3HiEwJVVjvr+7RMFc/eCaiBEhKupoT/1vGe9zkUjCpB9Zd+MX18z504qm6/em8dkoCHQNL0GggPAWywb/Yor+oVw1MiSWbC9bgmXK6u9f9Y9CTt58j7er896Akh4rdZ9M3ljzRw6rITw0Qr4F70AggOAVj2rnRX4t2eLZulOCT4QloS2HwjmwIeAxBQobK2ybp9nzppQNu+5MQCCrZUa0wFgQFQ+dv79N+XM48uqhiHhMC113u3Bd7b8f/gXp48v8xvRSnIWeewA0M2Vj63/ySOFwMYzpN4ZPtNvZ1VHZ3og6K0yFwLCsl2e+dPTRX4npgkz1SkIHAAkfLz7fz5XxAZL+LErXs9FVbhAE532a8kmRIBrDoR7Flb5zUQO0gQOAJ2u/L8/W7SctHSCl3DtlZte1QsQyUDT8wISA9+EiOH1VwsEDgBtTdvm/+jhAnG6VptufKwgPEut95V9M31TvREiVgKn7bDhJbRJAKr/vlA0x4wqBSHeLXMrZvjqmlm525OmkcloS+MIBBv7PPOBm8lCOg3QttPHqsHb5wau2eMZhr2a41a9gDJhQ80cPKw/kUOqFzOCt04EwXxFeEXD8Lwyf/zvr9yTNyeMKZlJG2oSqKXqTfPfEckf9FV888nbc8okOgC0s/pxoBAQmTxGrQ3hz9xSN798vBDk+hHwG67Zn73TfLs1o8/z/8n4AQj2Db79QME8vKRqKqFWSDQLFgA+4QDQ/up/e6j6yewx5JTFCd8L58VTy+Ty+byEe0A33879AwK0BEAgI2g7l82G
2ns85ABz4ti0rcOKGmlZcqkQNtv3/L9kXydV3YZMp/D6AALDOnFAOVb5A4ADQ1W3cVzVu8i8fS179tto/aWwgfDaCZEYGxCxp02nxjno/OB0AujsV9hFLy/a38rol/CeWVfmMveoHFKDE98NWSzs5AHR1vqmx0t59Y84o2+c1W/3WTSY8/NLdeex+TzJv2gC6fnbFBqgDQBdXF+neREdLUcFTy6tEC9qE6ZmGOnpUyY4IHAA6trHW6sKeR9O99rBt/8HDSoR6fLanPsovLB/FAaDL6vWGGPVq32Di8i+G6v9tPYxQSO9+5s68KVSVC3AA6MpU8uexpVbyp8lQOnhL3jPvu6n3qVZVAq0OM5SeA0B3phJAw1bJw44HwPJdXia7bfxPfBUlheqeA0BXATByTToArNjtyfPPJFS9Y35FZWLBb9Ksu1RwZwB4bmU6AGwvZLPbJl/ltPFly1dxGqBnSSC7nPsb9+VVqt3zbOVvnigEQt6W98yOwv4JMHeXfLN2r8dOpANAuyvr/MnlRADIQTxxbIltXuUBel6djAZqNd/fmK4iKP1UqTd1dS1jbKWBZWfnbK33eIUhUF3pR2g5MU0SvqsISuldI0zsJl06dp1/bDLoiBEl85KwI6gnqy39qm5b+G43MAyxRmizJWYzSNoBe0tCCO0hEAzB3j0HAISGLSe1y96+ABBXDKKIYM1ez3zhrjw+ROZ1+Q4AnWfaWMlWpi0+GpA/sKvoU+xJJEENYPpqIAeAwVkKTlGmnRJOCgmZDLqGPntnXt28qv0basJxfQF40tM3h5U3KUGg9+UrvrltXoXafJJL7DGoidOBYahUBdOGjQBzFQk4fUOI3luu+ziUmAZIItAsgAFw2SwgDgCD2RQc9EJRWiAWBFEgRLt5t+Y9c/+iqvnbM0Xz4VuCtDNmgqhDvXyDkAXEtYYhJCpxk0EQAwQ5inboOGJNzZw9sUznEU4n0YccSLss3AEge+4fNIEqhVjR6buCo70DUTBobtjn4TzSJgZfECXgAI/iDzmRWRFAuO5ggQCBoL73ltQhnKANEsBgkz4wdC3WfFrC2O2j8ocEE1P7FVkAwfEDcFWS6HN35iFykmMYEWK7DCAR7RDxG/JVP9ie/vPTRRxHNBG/J0sgOIoYagBRzWdMKEPgZAOBa+p28OaNnaYVJQw8RPARYZoAoriKeg0CRxIle4xJ+PQdeXP7/AoFml2jjPGbOJHamVTvP23lJJmIIGxt4ADQY5OAJgAIOG43zamQDrYcvKhaN8yucQPBFvbtB/LUI2g307GEZUEZF5iFEAgfvjXXcN5K1AkgrAgY0rKIJTOBMBlVL+hIJmnFVrYKUxwAsgICjprCt+8/VDBXzahgu639BF2jgNDz7WsEBhXCH7yZrWwLBA4A2QGBq+hdAcW37s8HVG7PrqhB3RIN/aIcg20nmhjUAGrvoZcgcABI6Ovnb1Q0YCCef3fIJXxaCAhSxE3AkAgE+3mBYGfRM99sgO1VNggcALIHgzTD2y02cQGC7iIqfGlJgyDKzhCmSTYJKDIHVAl/7q68tqJdUehgnG+3AME2sTaGeA1yioeWVE2ftQuZlhcIwKhYFdC92WmAoXXABKsV9U3G71N35M0V08tmT8lPtRElEFRDENw8t8L36HsdAIbawROEdVQbf/L2PCwk0cqjliXrSi3z4OePwVYmU+AAMOQiineGyaaXhYWq+YTiFD2UPwDRlTqXnAYY4qHlSy7t47gZ2r+SWUstTfH7J4uirXMAGMqpZ4pGcBR/KOra2MYVOYQGvgPK0BwAUt1sdQnFdA9JKFkAARC8+NI+ziOSqm/pC0gDoDE4kIqE1NscAJLbp7hRMZPQKjMQ2GBYsrOe2LcgEFBP8IokM+A6g5j9BNFs6lC4GZ2spHeqBzDbOkVSy/FkVpYZYE+CzySTWTkA0AtAOTeFmzSJarLVy00lhav4OrMmVopSYBS3NpliySypKnIaICUAWtCw6mbD+y8AZB4dQFMjM9BsCABzt9UxX2m+2wFgkQDg+dG8vLZedRxLpplDEjzj1qWjs2GPAcC2kxp2APD9VjdTmyxDhs9oQ58HBa4DQAcAiBzEkM+Ue0dsJmkBQK0AIaQ
2DQIcAEAjYz8cMZOVU6SAJUr0pAEDI2PhcX6daywFAN/rfzxcpzQYAmXIYrNuXzgmk0eQ1nfktDgBWXA2TWGZx9dvD1c++gH5XQh4A6rtOIxcHADsUvNe6oVklgq6ekUxqLQ1w3OiSA0BnAMhepdrH2VEBvC2f7lALfjOElq/peFvYAUC2Fv6gHtPC9V/fGW4G0YSSxGImsM7cDJdhN36nA4DdtEkxJ1rAPihqwLeDX3SpCCuSj7OTuWLnUP5KF6qCHACkBViFrEhurjj83zYAq152+/8v3QfVTHBQhR2S+jFbwZv6PPP+LhJaOwBYQND5vKeMK1HrT/2eTg/pmPvHbjAh4UNZGC1gCFaTkbT6aVNrozDUAeDNEQAktWYJCDB8XDqtzAlimIWm3D8CRbOp17XaVQdIPd9vnyhS5m3Z/Hjhy/ZP3dSJ7Xe7gVZzZ/qz+ynVomsX7h+yheTfXwUgrIOjyeFT+s3zXHnM87z+svCsYXgGoYtha1rqPo3wpRngLfjyPW03h7iSMG7+pI01ncQRS/jAc8xW7Vz8jYkYs7aGv9BwxsrmP88X6QKiXDs4no7r754sBqePndUADSxi87bVoYmxfQ4LjPHCl9b613PFA1H9riQMZ+lDt+TMI0uqhpG+Pcs2DR3RxmikIpqw1b6Ef+xo2+t3JqDtIgu0ACoZj5sTRJuv8NTcPwIEU909zP2vN3mPHd75KbuD0ViHDEP4HR1j67iCxb0DCIi9qacrVGO4gPy0q9tPmAfEGKJohMMkOxW+A4DtDKqChpuKU3ZHEy6gmk3/wjTdH0nEkw8vqRLr27wAEr4DwEBwAaERNuc8CcACg1S7ZudCj36/HivMY9W/LOAeRviOI6gnXEAkfN57U84cOqwEEbStFaLaQc6ZgJE4oz6BzTMk8mnONaTdi80dEUG8zbGE9RYIRAuK6WHzPHJkCapXEkK20FpmEb3IjDqXfoQ5dFpjtV8wpSwKGKbNE6iOpl5PRxP3dqt7V04jfEBHjiiZm+dUzPCGhli8sx6c5VeoWs5jkytJJNq4yES+sKpmrp5ZMf94tggzKSnm6AEUmTt6jiaOaxP6F1QzgEBgrFQA8/6bcpBKNsBRgB08sN0khH71eMH87NGC+f6DBWhd6EriO8j/K3MIwKLs4YN5xbvuYAmLKWIGTAaCBByvtlLATFLCPMfrat54uz4/lM4PcABIBgaz6YYQr7kTQ/7XnhncNAyDUdhtxQKIIxJmF8QClZiMZAoOjMENOLABd8A5Fhfel/yQigmo8w5ffuPYF38P14pbxzgAxgEwDoBxAIwDYBwAB6CjYZYI7lPuSvViLJDpAqum3Je3qbN4URZDGf/7cc8O8BSXG3uqaZ3ZNe4JwG28qNRFYCoV9wTgWixsAQzOcZ/Ou9dV7svD9KL5A6EJxzjHPQFgF7iZDgXDpxeobXCMa5yLlJSItVAIhjtVBu2aXQCzwzGuxeg+ZT0E9Uy8jAOaC4HJIR/H4Xp0z4OfgI2gfaGBcwgaOBOYUn/k4xbHh85prMRvhzjN3XAfn4j3Qc2q/lh0BCA6nOEOcIlT3P5xveKRLtUQ1LUmA/1bJeVR9Stb/NGBs3CHw61IuJVjMTunAYc7AYfCjdCEjxP9fSV6TX5WfRf1/10gGZzgBkfhqscdDkXCKW7F7Fp8A1/JJyULf6X2AAAAAElFTkSuQmCC",adapter:function(){return new A(e)}}};r(339),r(340)},function(t,e){function r(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=e;n.version=r(375).version,n.utils=r(55),n.rand=r(184),n.curve=r(236),n.curves=r(185),n.ec=r(388),n.eddsa=r(392)},function(t,e,r){"use strict";var n=r(65),i=r(56);function o(){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=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(t,e,r){"use strict";var n=r(19),i=r(198),o=r(200),a=r(201),s=r(80);function u(t){s.call(this,"digest"),this._hash=t}n(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new u(a(t))}},function(t,e,r){(function(t){function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(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}
2,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"===typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(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||"undefined"===typeof t},e.isBuffer=t.isBuffer}).call(this,r(7).Buffer)},function(t,e,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o<n;++o)i[o]=t[o]^r[o];return i}}).call(this,r(7).Buffer)},function(t,e,r){"use strict";var n=r(19),i=r(212).Reporter,o=r(210).Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return s.isEncoderBuffer(t)||(t=new s(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=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(a,i),e.DecoderBuffer=a,a.isDecoderBuffer=function(t){return t instanceof a||"object"===typeof t&&o.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"===typeof t.offset&&"number"===typeof t.length&&"function"===typeof t.save&&"function"===typeof t.restore&&"function"===typeof t.isEmpty&&"function"===typeof t.readUInt8&&"function"===typeof t.skip&&"function"===typeof t.raw},a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.isEncoderBuffer=function(t){return t instanceof s||"object"===typeof t&&"EncoderBuffer"===t.constructor.name&&"number"===typeof t.length&&"function"===typeof t.join},s.prototype.join=function(t,e){return t||(t=o.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(t,e),e+=r.length})):("number"===typeof this.value?t[e]=this.value:"string"===typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(9),i=r(10),o=r(87),a=r(51),s=r(61),u=function(){function e(r){if(Object(n.a)(this,e),void 0!==r.events){var i=r.events.map((function(t){var e={name:t.name,type:{kind:"struct",fields:t.fields.map((function(t){return{name:t.name,type:t.type}}))}};return[t.name,s.a.typeDefLayout(e,r.types)]}));this.layouts=new Map(i),this.discriminators=new Map(void 0===r.events?[]:r.events.map((function(e){return[o.fromByteArray((r=e.name,t.from(a.sha256.digest("event:".concat(r))).slice(0,8))),e.name];var r})))}else this.layouts=new Map}return Object(i.a)(e,[{key:"decode",value:function(e){var r;try{r=t.from(o.toByteArray(e))}catch(a){return null}var n=o.fromByteArray(r.slice(0,8)),i=this.discriminators.get(n);return void 0===i?null:{data:this.layouts.get(i).decode(r.slice(8)),name:i}}}]),e}()}).call(this,r(7).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return h})),r.d(e,"b",(function(){return l}));var n=r(1),i=r.n(n),o=r(4),a=r(9),s=r(10),u=r(51),c=r(61),f=r(160),h=function(){function e(t){if(Object(a.a)(this,e),void 0===t.state)throw new Error("Idl state not defined.");this.layout=c.a.typeDefLayout(t.state.struct,t.types)}return Object(s.a)(e,[{key:"encode",value:function(){var e=Object(o.a)(i.a.mark((function e(r,n){var o,a,s,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.alloc(1e3),a=this.layout.encode(n,o),e.next=4,l(r);case 4:return s=e.sent,u=o.slice(0,a),e.abrupt("return",t.concat([s,u]));case 7:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"decode",value:function(t){var e=t.slice(8);return this.layout.decode(e)}}]),e}();function l(t){return d.apply(this,arguments)}function d(){return(d=Object(o.a)(i.a.mark((function e(r){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.a("anchor-deprecated-state")?"account":"state",e.abrupt("return",t.from(u.sha256.digest("".concat(n,":").concat(r))).slice(0,8));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}).call(this,r(7).Buffer)},function(t,e,r){"use strict";function n(t){return(n="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)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";
2t.exports=r(401)},function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(399),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return n.isMemo(t)?a:s[t.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,r,n){if("string"!==typeof r){if(p){var i=d(r);i&&i!==p&&t(e,i,n)}var a=f(r);h&&(a=a.concat(h(r)));for(var s=u(e),b=u(r),v=0;v<a.length;++v){var m=a[v];if(!o[m]&&(!n||!n[m])&&(!b||!b[m])&&(!s||!s[m])){var y=l(r,m);try{c(e,m,y)}catch(g){}}}}return e}},function(t,e,r){"use strict";function n(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}r.d(e,"a",(function(){return n}))},,function(t,e,r){"use strict";(function(t){var n=r(128),i=r(2),o=r.n(i),a=r(326),s=r.n(a),u=r(327),c=r(328),f=r(220),h=r(131),l=r.n(h);function d(){return(d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var p=function(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r},b=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!Object(n.typeOf)(t)},v=Object.freeze([]),m=Object.freeze({});function y(t){return"function"==typeof t}function g(t){return t.displayName||t.name||"Component"}function w(t){return t&&"string"==typeof t.styledComponentId}var _="undefined"!=typeof t&&(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).SC_ATTR)||"data-styled",k="undefined"!=typeof window&&"HTMLElement"in window,M=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).REACT_APP_SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).REACT_APP_SC_DISABLE_SPEEDY?"false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).REACT_APP_SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).SC_DISABLE_SPEEDY&&("false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).SC_DISABLE_SPEEDY));function S(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var E=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=t.prototype;return e.indexOfGroup=function(t){for(var e=0,r=0;r<t;r++)e+=this.groupSizes[r];return e},e.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;t>=i;)(i<<=1)<0&&S(16,""+t);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(t+1),s=0,u=e.length;s<u;s++)this.tag.insertRule(a,e[s])&&(this.groupSizes[t]++,a++)},e.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],r=this.indexOfGroup(t),n=r+e;this.groupSizes[t]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r,o=n;o<i;o++)e+=this.tag.getRule(o)+"/*!sc*/\n";return e},t}(),x=new Map,A=new Map,O=1,j=function(t){if(x.has(t))return x.get(t);for(;A.has(O);)O++;var e=O++;return x.set(t,e),A.set(e,t),e},R=function(t){return A.get(t)},I=function(t,e){e>=O&&(O=e+1),x.set(t,e),A.set(e,t)},P="style["+_+'][data-styled-version="5.3.1"]',T=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),C=function(t,e,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&t.registerName(e,n)},B=function(t,e){for(var r=(e.innerHTML||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(T);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(I(c,u),C(t,c,s[3]),t.getTag().insertRules(u,n)),n.length=0}else n.push(a)}}},L=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},N=function(t){var e=document.head,r=t||e,n=document.createElement("style"),i=function(t){for(var e=t.childNodes,r=e.length;r>=0;r--){var n=e[r];
vendor: 13,417 bytes, line 2
2if(n&&1===n.nodeType&&n.hasAttribute(_))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(_,"active"),n.setAttribute("data-styled-version","5.3.1");var a=L();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},D=function(){function t(t){var e=this.element=N(t);e.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,r=0,n=e.length;r<n;r++){var i=e[r];if(i.ownerNode===t)return i}S(17)}(e),this.length=0}var e=t.prototype;return e.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},e.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.getRule=function(t){var e=this.sheet.cssRules[t];return void 0!==e&&"string"==typeof e.cssText?e.cssText:""},t}(),U=function(){function t(t){var e=this.element=N(t);this.nodes=e.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(t,e){if(t<=this.length&&t>=0){var r=document.createTextNode(e),n=this.nodes[t];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),z=function(){function t(t){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},e.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),W=k,q={isServer:!k,useCSSOMInjection:!M},F=function(){function t(t,e,r){void 0===t&&(t=m),void 0===e&&(e={}),this.options=d({},q,{},t),this.gs=e,this.names=new Map(r),this.server=!!t.isServer,!this.server&&k&&W&&(W=!1,function(t){for(var e=document.querySelectorAll(P),r=0,n=e.length;r<n;r++){var i=e[r];i&&"active"!==i.getAttribute(_)&&(B(t,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}t.registerId=function(t){return j(t)};var e=t.prototype;return e.reconstructWithOptions=function(e,r){return void 0===r&&(r=!0),new t(d({},this.options,{},e),this.gs,r&&this.names||void 0)},e.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.getTag=function(){return this.tag||(this.tag=(r=(e=this.options).isServer,n=e.useCSSOMInjection,i=e.target,t=r?new z(i):n?new D(i):new U(i),new E(t)));var t,e,r,n,i},e.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},e.registerName=function(t,e){if(j(t),this.names.has(t))this.names.get(t).add(e);else{var r=new Set;r.add(e),this.names.set(t,r)}},e.insertRules=function(t,e,r){this.registerName(t,e),this.getTag().insertRules(j(t),r)},e.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.clearRules=function(t){this.getTag().clearGroup(j(t)),this.clearNames(t)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(t){for(var e=t.getTag(),r=e.length,n="",i=0;i<r;i++){var o=R(i);if(void 0!==o){var a=t.names.get(o),s=e.getGroup(i);if(a&&s&&a.size){var u=_+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(t){t.length>0&&(c+=t+",")})),n+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},t}(),K=/(a)(d)/gi,H=function(t){return String.fromCharCode(t+(t>25?39:97))};function Y(t){var e,r="";for(e=Math.abs(t);e>52;e=e/52|0)r=H(e%52)+r;return(H(e%52)+r).replace(K,"$1-$2")}var V=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},Z=function(t){return V(5381,t)};function G(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(y(r)&&!w(r))return!1}return!0}var X=Z("5.3.1"),J=function(){function t(t,e,r){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&G(t),this.componentId=e,this.baseHash=V(X,e),this.baseStyle=r,F.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(t,e,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&e.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=bt(this.rules,t,e,r).join(""),a=Y(V(this.baseHash,o)>>>0);if(!e.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);e.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=V(this.baseHash,r.hash),f="",h=0;h<u;h++){var l=this.rules[h];if("string"==typeof l)f+=l;else if(l){var d=bt(l,t,e,r),p=Array.isArray(d)?d.join(""):d;c=V(c,p+h),f+=p}}if(f){var b=Y(c>>>0);if(!e.hasNameForId(n,b)){var v=r(f,"."+b,void 0,n);e.insertRules(n,b,v)}i.push(b)}}return i.join(" ")},t}(),Q=/^\s*\/\/.*$/gm,$=[":","[",".","#"];function tt(t){var e,r,n,i,o=void 0===t?m:t,a=o.options,s=void 0===a?m:a,c=o.plugins,f=void 0===c?v:c,h=new u.a(s),l=[],d=function(t){function e(e){if(e)try{t(e+"}")}catch(t){}}return function(r,n,i,o,a,s,u,c,f,h){switch(r){case 1:if(0===f&&64===n.charCodeAt(0))return t(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return t(i[0]+n),"";default:return n+(0===h?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(e)}}}((function(t){l.push(t)})),p=function(t,n,o){return 0===n&&-1!==$.indexOf(o[r.length])||o.match(i)?t:"."+e};function b(t,o,a,s){void 0===s&&(s="&");var u=t.replace(Q,""),c=o&&a?a+" "+o+" { "+u+" }":u;return e=s,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),h(a||!o?"":o,c)}return h.use([].concat(f,[function(t,e,i){2===t&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},d,function(t){if(-2===t){var e=l;return l=[],e}}])),b.hash=f.length?f.reduce((function(t,e){return e.name||S(15),V(t,e.name)}),5381).toString():"",b}var et=o.a.createContext(),rt=(et.Consumer,o.a.createContext()),nt=(rt.Consumer,new F),it=tt();function ot(){return Object(i.useContext)(et)||nt}function at(){return Object(i.useContext)(rt)||it}function st(t){var e=Object(i.useState)(t.stylisPlugins),r=e[0],n=e[1],a=ot(),u=Object(i.useMemo)((function(){var e=a;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),c=Object(i.useMemo)((function(){return tt({options:{prefix:!t.disableVendorPrefixes},plugins:r})}),[t.disableVendorPrefixes,r]);return Object(i.useEffect)((function(){s()(r,t.stylisPlugins)||n(t.stylisPlugins)}),[t.stylisPlugins]),o.a.createElement(et.Provider,{value:u},o.a.createElement(rt.Provider,{value:c},t.children))}var ut=function(){function t(t,e){var r=this;this.inject=function(t,e){void 0===e&&(e=it);var n=r.name+e.hash;t.hasNameForId(r.id,n)||t.insertRules(r.id,n,e(r.rules,n,"@keyframes"))},this.toString=function(){return S(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=e}return t.prototype.getName=function(t){return void 0===t&&(t=it),this.name+t.hash},t}(),ct=/([A-Z])/,ft=/([A-Z])/g,ht=/^ms-/,lt=function(t){return"-"+t.toLowerCase()};function dt(t){return ct.test(t)?t.replace(ft,lt).replace(ht,"-ms-"):t}var pt=function(t){return null==t||!1===t||""===t};function bt(t,e,r,n){if(Array.isArray(t)){for(var i,o=[],a=0,s=t.length;a<s;a+=1)""!==(i=bt(t[a],e,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return pt(t)?"":w(t)?"."+t.styledComponentId:y(t)?"function"!=typeof(u=t)||u.prototype&&u.prototype.isReactComponent||!e?t:bt(t(e),e,r,n):t instanceof ut?r?(t.inject(r,n),t.getName(n)):t:b(t)?function t(e,r){var n,i,o=[];for(var a in e)e.hasOwnProperty(a)&&!pt(e[a])&&(Array.isArray(e[a])&&e[a].isCss||y(e[a])?o.push(dt(a)+":",e[a],";"):b(e[a])?o.push.apply(o,t(e[a],a)):o.push(dt(a)+": "+(n=a,(null==(i=e[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in c.a?String(i).trim():i+"px")+";")));return r?[r+" {"].concat(o,["}"]):o}(t):t.toString();var u}var vt=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function mt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return y(t)||b(t)?vt(bt(p(v,[t].concat(r)))):0===r.length&&1===t.length&&"string"==typeof t[0]?t:vt(bt(p(t,r)))}new Set;var yt=function(t,e,r){return void 0===r&&(r=m),t.theme!==r.theme&&t.theme||e||r.theme},gt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wt=/(^-|-$)/g;function _t(t){return t.replace(gt,"-").replace(wt,"")}var kt=function(t){return Y(Z(t)>>>0)};function Mt(t){return"string"==typeof t&&!0}var St=function(t){return"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},Et=function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t};function xt(t,e,r){var n=t[r];St(e)&&St(n)?At(n,e):t[r]=e}function At(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(St(a))for(var s in a)Et(s)&&xt(t,a[s],s)}return t}var Ot=o.a.createContext();Ot.Consumer;var jt={};function Rt(t,e,r){var n=w(t),a=!Mt(t),s=e.attrs,u=void 0===s?v:s,c=e.componentId,h=void 0===c?function(t,e){var r="string"!=typeof t?"sc":_t(t);jt[r]=(jt[r]||0)+1;var n=r+"-"+kt("5.3.1"+r+jt[r]);return e?e+"-"+n:n}(e.displayName,e.parentComponentId):c,p=e.displayName,b=void 0===p?function(t){return Mt(t)?"styled."+t:"Styled("+g(t)+")"}(t):p,_=e.displayName&&e.componentId?_t(e.displayName)+"-"+e.componentId:e.componentId||h,k=n&&t.attrs?Array.prototype.concat(t.attrs,u).filter(Boolean):u,M=e.shouldForwardProp;n&&t.shouldForwardProp&&(M=e.shouldForwardProp?function(r,n,i){return t.shouldForwardProp(r,n,i)&&e.shouldForwardProp(r,n,i)}:t.shouldForwardProp);var S,E=new J(r,_,n?t.componentStyle:void 0),x=E.isStatic&&0===u.length,A=function(t,e){return function(t,e,r,n){var o=t.attrs,a=t.componentStyle,s=t.defaultProps,u=t.foldedComponentIds,c=t.shouldForwardProp,h=t.styledComponentId,l=t.target,p=function(t,e,r){void 0===t&&(t=m);var n=d({},e,{theme:t}),i={};return r.forEach((function(t){var e,r,o,a=t;for(e in y(a)&&(a=a(n)),a)n[e]=i[e]="className"===e?(r=i[e],o=a[e],r&&o?r+" "+o:r||o):a[e]})),[n,i]}(yt(e,Object(i.useContext)(Ot),s)||m,e,o),b=p[0],v=p[1],g=function(t,e,r,n){var i=ot(),o=at();return e?t.generateAndInjectStyles(m,i,o):t.generateAndInjectStyles(r,i,o)}(a,n,b),w=r,_=v.$as||e.$as||v.as||e.as||l,k=Mt(_),M=v!==e?d({},e,{},v):e,S={};for(var E in M)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?S.as=M[E]:(c?c(E,f.a,_):!k||Object(f.a)(E))&&(S[E]=M[E]));return e.style&&v.style!==e.style&&(S.style=d({},e.style,{},v.style)),S.className=Array.prototype.concat(u,h,g!==h?g:null,e.className,v.className).filter(Boolean).join(" "),S.ref=w,Object(i.createElement)(_,S)}(S,t,e,x)};return A.displayName=b,(S=o.a.forwardRef(A)).attrs=k,S.componentStyle=E,S.displayName=b,S.shouldForwardProp=M,S.foldedComponentIds=n?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):v,S.styledComponentId=_,S.target=n?t.target:t,S.withComponent=function(t){var n=e.componentId,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(e,["componentId"]),o=n&&n+"-"+(Mt(t)?t:_t(g(t)));return Rt(t,d({},i,{attrs:k,componentId:o}),r)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?At({},t.defaultProps,e):e}}),S.toString=function(){return"."+S.styledComponentId},a&&l()(S,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var It=function(t){return function t(e,r,i){if(void 0===i&&(i=m),!Object(n.isValidElementType)(r))return S(1,String(r));var o=function(){return e(r,i,mt.apply(void 0,arguments))};return o.withConfig=function(n){return t(e,r,d({},i,{},n))},o.attrs=function(n){return t(e,r,d({},i,{attrs:Array.prototype.concat(i.attrs,n).filter(Boolean)}))},o}(Rt,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(t){It[t]=It(t)}));!function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=G(t),F.registerId(this.componentId+1)}var e=t.prototype;e.createStyles=function(t,e,r,n){var i=n(bt(this.rules,e,r,n).join(""),""),o=this.componentId+t;r.insertRules(o,o,i)},e.removeStyles=function(t,e){e.clearRules(this.componentId+t)},e.renderStyles=function(t,e,r,n){t>2&&F.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,e,r,n)}}();!function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var r=L();return"<style "+[r&&'nonce="'+r+'"',_+'="true"','data-styled-version="5.3.1"'].filter(
2Boolean).join(" ")+">"+e+"</style>"},this.getStyleTags=function(){return t.sealed?S(2):t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)return S(2);var r=((e={})[_]="",e["data-styled-version"]="5.3.1",e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),n=L();return n&&(r.nonce=n),[o.a.createElement("style",d({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new F({isServer:!0}),this.sealed=!1}var e=t.prototype;e.collectStyles=function(t){return this.sealed?S(2):o.a.createElement(st,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return S(3)}}();e.a=It}).call(this,r(27))},function(t,e,r){"use strict";r.d(e,"b",(function(){return f})),r.d(e,"a",(function(){return h}));var n,i,o=r(218),a=r.n(o),s=function(){return(s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};!function(t){t.blue="blue",t.nanoS="nanoS",t.nanoSP="nanoSP",t.nanoX="nanoX"}(i||(i={}));var u=((n={})[i.blue]={id:i.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:function(t){return 4096}},n[i.nanoS]={id:i.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:function(t){var e;return a.a.lt(null!==(e=a.a.coerce(t))&&void 0!==e?e:"","2.0.0")?4096:2048}},n[i.nanoSP]={id:i.nanoSP,productName:"Ledger Nano SP",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1569792,masks:[856686592],getBlockSize:function(t){return 512}},n[i.nanoX]={id:i.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:function(t){return 4096},bluetoothSpec:[{serviceUuid:"d973f2e0-b19e-11e2-9e96-0800200c9a66",notifyUuid:"d973f2e1-b19e-11e2-9e96-0800200c9a66",writeUuid:"d973f2e2-b19e-11e2-9e96-0800200c9a66"},{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572"}]},n),c=(i.blue,i.nanoS,i.nanoX,Object.values(u)),f=11415,h=function(t){var e=c.find((function(e){return e.legacyUsbProductId===t}));if(e)return e;var r=t>>8;return c.find((function(t){return t.productIdMM===r}))},l=[],d={};for(var p in u){var b=u[p],v=b.bluetoothSpec;if(v)for(var m=0;m<v.length;m++){var y=v[m];l.push(y.serviceUuid),d[y.serviceUuid]=d[y.serviceUuid.replace(/-/g,"")]=s({deviceModel:b},y)}}},function(t,e,r){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null===t||void 0===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={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;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(i){return!1}}()?Object.assign:function(t,e){for(var r,s,u=a(t),c=1;c<arguments.length;c++){for(var f in r=Object(arguments[c]))i.call(r,f)&&(u[f]=r[f]);if(n){s=n(r);for(var h=0;h<s.length;h++)o.call(r,s[h])&&(u[s[h]]=r[s[h]])}}return u}},function(t,e,r){var n=r(228),i=r(362),o=r(138),a=r(230);t.exports=function(t,e){return n(t)||i(t,e)||o(t,e)||a()}},function(t,e,r){var n=r(229);t.exports=function(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
vendor: 4,218 bytes, line 2
2,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){t.exports=r(224)},function(t,e){function r(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,i)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(72),i=r(55),o=i.getNAF,a=i.getJSF,s=i.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var r=t._getDoubles(),n=o(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var a,u,c=[];for(a=0;a<n.length;a+=r.step){u=0;for(var f=a+r.step-1;f>=a;f--)u=(u<<1)+n[f];c.push(u)}for(var h=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(a=0;a<c.length;a++)(u=c[a])===d?l=l.mixedAdd(r.points[a]):u===-d&&(l=l.mixedAdd(r.points[a].neg()));h=h.add(l)}return h.toP()},u.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(e,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var f=0;c>=0&&0===a[c];c--)f++;if(c>=0&&f++,u=u.dblp(f),c<0)break;var h=a[c];s(0!==h),u="affine"===t.type?h>0?u.mixedAdd(i[h-1>>1]):u.mixedAdd(i[-h-1>>1].neg()):h>0?u.add(i[h-1>>1]):u.add(i[-h-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,i){var s,u,c,f=this._wnafT1,h=this._wnafT2,l=this._wnafT3,d=0;for(s=0;s<n;s++){var p=(c=e[s])._getNAFPoints(t);f[s]=p.wnd,h[s]=p.points}for(s=n-1;s>=1;s-=2){var b=s-1,v=s;if(1===f[b]&&1===f[v]){var m=[e[b],null,null,e[v]];0===e[b].y.cmp(e[v].y)?(m[1]=e[b].add(e[v]),m[2]=e[b].toJ().mixedAdd(e[v].neg())):0===e[b].y.cmp(e[v].y.redNeg())?(m[1]=e[b].toJ().mixedAdd(e[v]),m[2]=e[b].add(e[v].neg())):(m[1]=e[b].toJ().mixedAdd(e[v]),m[2]=e[b].toJ().mixedAdd(e[v].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[b],r[v]);for(d=Math.max(g[0].length,d),l[b]=new Array(d),l[v]=new Array(d),u=0;u<d;u++){var w=0|g[0][u],_=0|g[1][u];l[b][u]=y[3*(w+1)+(_+1)],l[v][u]=0,h[b]=m}}else l[b]=o(r[b],f[b],this._bitLength),l[v]=o(r[v],f[v],this._bitLength),d=Math.max(l[b].length,d),d=Math.max(l[v].length,d)}var k=this.jpoint(null,null,null),M=this._wnafT4;for(s=d;s>=0;s--){for(var S=0;s>=0;){var E=!0;for(u=0;u<n;u++)M[u]=0|l[u][s],0!==M[u]&&(E=!1);if(!E)break;S++,s--}if(s>=0&&S++,k=k.dblp(S),s<0)break;for(u=0;u<n;u++){var x=M[u];0!==x&&(x>0?c=h[u][x-1>>1]:x<0&&(c=h[u][-x-1>>1].neg()),k="affine"===c.type?k.mixedAdd(c):k.add(c))}}for(s=0;s<n;s++)h[s]=null;return i?k:k.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(t,e){t=i.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*r)return 6===t[0]?s(t[t.length-1]%2===0):7===t[0]&&s(t[t.length-1]%2===1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(t){return this.encode(t,!0)},c.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},c.prototype.encode=function(t,e){return i.encode(this._encode(e),t)}
2,c.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},c.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)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},c.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},function(t,e,r){var n=r(397),i=r(243),o=r(138),a=r(398);t.exports=function(t){return n(t)||i(t)||o(t)||a()}},function(t,e){var r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}},function(t,e,r){(function(e){var r="object"===typeof e&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"})&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).NODE_DEBUG&&/\bsemver\b/i.test(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).NODE_DEBUG)?function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=console).error.apply(t,["SEMVER"].concat(r))}:function(){};t.exports=r}).call(this,r(27))},function(t,e){var r=["includePrerelease","loose","rtl"];t.exports=function(t){return t?"object"!==typeof t?{loose:!0}:r.filter((function(e){return t[e]})).reduce((function(t,e){return t[e]=!0,t}),{}):{}}},function(t,e,r){var n=r(58);t.exports=function(t,e,r){return n(t,e,r)>0}},function(t,e,r){var n=r(34),i=r(36),o=Symbol("SemVer ANY"),a=function(){"use strict";function t(e,r){if(n(this,t),r=s(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}l("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===o?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}return i(t,[{key:"parse",value:function(t){var e=this.options.loose?c[f.COMPARATORLOOSE]:c[f.COMPARATOR],r=t.match(e);if(!r)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new d(r[2],this.options.loose):this.semver=o}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(t){if(l("Comparator.test",t,this.options.loose),this.semver===o||t===o)return!0;
2if("string"===typeof t)try{t=new d(t,this.options)}catch(e){return!1}return h(t,this.operator,this.semver,this.options)}},{key:"intersects",value:function(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");if(r&&"object"===typeof r||(r={loose:!!r,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,r).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,r).test(e.semver);var n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,a=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),s=h(this.semver,"<",e.semver,r)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=h(this.semver,">",e.semver,r)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&a||s||u}}],[{key:"ANY",get:function(){return o}}]),t}();t.exports=a;var s=r(146),u=r(98),c=u.re,f=u.t,h=r(249),l=r(145),d=r(49),p=r(59)},function(t,e,r){var n=r(59);t.exports=function(t,e,r){try{e=new n(e,r)}catch(i){return!1}return e.test(t)}},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(31))},function(t,e,r){"use strict";(function(e){"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,r(27))},function(t,e,r){var n=r(25).Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(4*i);return r}function o(t){for(;0<t.length;t++)t[0]=0}function a(t,e,r,n,i){for(var o,a,s,u,c=r[0],f=r[1],h=r[2],l=r[3],d=t[0]^e[0],p=t[1]^e[1],b=t[2]^e[2],v=t[3]^e[3],m=4,y=1;y<i;y++)o=c[d>>>24]^f[p>>>16&255]^h[b>>>8&255]^l[255&v]^e[m++],a=c[p>>>24]^f[b>>>16&255]^h[v>>>8&255]^l[255&d]^e[m++],s=c[b>>>24]^f[v>>>16&255]^h[d>>>8&255]^l[255&p]^e[m++],u=c[v>>>24]^f[d>>>16&255]^h[p>>>8&255]^l[255&b]^e[m++],d=o,p=a,b=s,v=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&v])^e[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[v>>>8&255]<<8|n[255&d])^e[m++],s=(n[b>>>24]<<24|n[v>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[m++],u=(n[v>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^e[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var f=t[a],h=t[f],l=t[h],d=257*t[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*l^65537*h^257*f^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=f^t[t[t[l^f]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<n;o++){var a=i[o-1];o%e===0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e===4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var c=[],f=0;f<n;f++){var h=n-f,l=i[h-(f%4?0:4)];c[f]=f<4||h<=4?l:u.INV_SUB_MIX[0][u.SBOX[l>>>24]]^u.INV_SUB_MIX[1][u.SBOX[l>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[l>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nR
2ounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},c.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var r=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},function(t,e,r){var n=r(25).Buffer,i=r(198);t.exports=function(t,e,r,o){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var f=new i;f.update(c),f.update(t),e&&f.update(e),c=f.digest();var h=0;if(a>0){var l=s.length-a;h=Math.min(a,c.length),c.copy(s,l,0,h),a-=h}if(h<c.length&&o>0){var d=u.length-o,p=Math.min(o,c.length-h);c.copy(u,d,h,h+p),o-=p}}return c.fill(0),{key:s,iv:u}}},function(t,e,r){var n=r(541),i=r(549),o=r(550),a=r(206),s=r(281),u=r(25).Buffer;function c(t){var e;"object"!==typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"===typeof t&&(t=u.from(t));var r,c,f=o(t,e),h=f.tag,l=f.data;switch(h){case"CERTIFICATE":c=n.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(l,"der")),r=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":l=function(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,l=s.pbkdf2Sync(e,r,n,h,"sha1"),d=a.createDecipheriv(o,l,c),p=[];return p.push(d.update(f)),p.push(d.final()),u.concat(p)}(l=n.EncryptedPrivateKey.decode(l,"der"),e);case"PRIVATE KEY":switch(r=(c=n.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=n.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+h)}}t.exports=c,c.signature=n.signature},function(t,e,r){"use strict";r.d(e,"a",(function(){return p}));var n=r(2),i=r(29),o=!0,a=!1,s=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(t){t.metaKey||t.altKey||t.ctrlKey||(o=!0)}function f(){o=!1}function h(){"hidden"===this.visibilityState&&a&&(o=!0)}function l(t){var e=t.target;try{return e.matches(":focus-visible")}catch(r){}return o||function(t){var e=t.type,r=t.tagName;return!("INPUT"!==r||!u[e]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable}(e)}function d(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function p(){return{isFocusVisible:l,onBlurVisible:d,ref:n.useCallback((function(t){var e,r=i.findDOMNode(t);null!=r&&((e=r.ownerDocument).addEventListener("keydown",c,!0),e.addEventListener("mousedown",f,!0),e.addEventListener("pointerdown",f,!0),e.addEventListener("touchstart",f,!0),e.addEventListener("visibilitychange",h,!0))}),[])}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(2);function i(t,e){return n.isValidElement(t)&&-1!==e.indexOf(t.type.muiName)}},function(t,e,r){"use strict";function n(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=this,s=function(){t.apply(a,i)};clearTimeout(e),e=setTimeout(s,r)}return n.clear=function(){clearTimeout(e)},n}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return b}));var n=r(13),i=r(20),o=r(9),a=r(10),s=r(48),u=r.n(s),c=r(28),f=r(23),h=r(61),l=r(84),d="state",p="global",b=function(){function e(t){var r=this;Object(o.a)(this,e),this.idl=t,this.ixLayout=e.parseIxLayout(t);var n=new Map;t.instructions.forEach((function(t){var e=Object(l.b)(p,t.name);n.set(f.encode(e),{layout:r.ixLayout.get(t.name),name:t.name})})),t.state&&t.state.methods.map((function(t){var e=Object(l.b)(d,t.name);n.set(f.encode(e),{layout:r.ixLayout.get(t.name),name:t.name})})),this.sighashLayouts=n}return Object(a.a)(e,[{key:"encode",value:function(t,e){return this._encode(p,t,e)}},{key:"encodeState",value:function(t,e){return this._encode(d,t,e)}
2},{key:"_encode",value:function(e,r,n){var i=t.alloc(1e3),o=u()(r),a=this.ixLayout.get(o).encode(n,i),s=i.slice(0,a);return t.concat([Object(l.b)(e,r),s])}},{key:"decode",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hex";"string"===typeof e&&(e="hex"===r?t.from(e,"hex"):f.decode(e));var n=f.encode(e.slice(0,8)),i=e.slice(8),o=this.sighashLayouts.get(n);return o?{data:o.layout.decode(i),name:o.name}:null}},{key:"format",value:function(t,e){return v.format(t,e,this.idl)}}],[{key:"parseIxLayout",value:function(t){var e=(t.state?t.state.methods:[]).map((function(e){var r=e.args.map((function(e){var r,n;return h.a.fieldLayout(e,Array.from([].concat(Object(i.a)(null!==(r=t.accounts)&&void 0!==r?r:[]),Object(i.a)(null!==(n=t.types)&&void 0!==n?n:[]))))})),n=u()(e.name);return[n,c.struct(r,n)]})).concat(t.instructions.map((function(e){var r=e.args.map((function(e){var r,n;return h.a.fieldLayout(e,Array.from([].concat(Object(i.a)(null!==(r=t.accounts)&&void 0!==r?r:[]),Object(i.a)(null!==(n=t.types)&&void 0!==n?n:[]))))})),n=u()(e.name);return[n,c.struct(r,n)]})));return new Map(e)}}]),e}(),v=function(){function t(){Object(o.a)(this,t)}return Object(a.a)(t,null,[{key:"format",value:function(e,r,i){var o=i.instructions.filter((function(t){return e.name===t.name}))[0];if(void 0===o)return console.error("Invalid instruction given"),null;var a=o.args.map((function(r){return{name:r.name,type:t.formatIdlType(r.type),data:t.formatIdlData(r,e.data[r.name],i.types)}})),s=t.flattenIdlAccounts(o.accounts);return{args:a,accounts:r.map((function(t,e){return e<s.length?Object(n.a)({name:s[e].name},t):Object(n.a)({name:void 0},t)}))}}},{key:"formatIdlType",value:function(t){return"string"===typeof t?t:t.vec?"Vec<".concat(this.formatIdlType(t.vec),">"):t.option?"Option<".concat(this.formatIdlType(t.option),">"):t.defined?t.defined:void 0}},{key:"formatIdlData",value:function(e,r,n){var i=this;if("string"===typeof e.type)return r.toString();if(e.type.vec)return"["+r.map((function(t){return i.formatIdlData({name:"",type:e.type.vec},t)})).join(", ")+"]";if(e.type.option)return null===r?"null":this.formatIdlData({name:"",type:e.type.option},r);if(e.type.defined){if(void 0===n)throw new Error("User defined types not provided");var o=n.filter((function(t){return t.name===e.type.defined}));if(1!==o.length)throw new Error("Type not found: ".concat(e.type.defined));return t.formatIdlDataDefined(o[0],r,n)}return"unknown"}},{key:"formatIdlDataDefined",value:function(e,r,n){if("struct"===e.type.kind)return"{ "+Object.keys(r).map((function(i){var o=e.type.fields.filter((function(t){return t.name===i}))[0];if(void 0===o)throw new Error("Unable to find type");return i+": "+t.formatIdlData(o,r[i],n)})).join(", ")+" }";if(0===e.type.variants.length)return"{}";if(e.type.variants[0].name){var i=Object.keys(r)[0],o=r[i],a=Object.keys(o).map((function(r){var a,s=o[r],u=null===(a=e.type.variants[i])||void 0===a?void 0:a.filter((function(t){return t.name===r}))[0];if(void 0===u)throw new Error("Unable to find variant");return r+": "+t.formatIdlData(u,s,n)})).join(", "),s=u()(i,{pascalCase:!0});return 0===a.length?s:"".concat(s," { ").concat(a," }")}return"Tuple formatting not yet implemented"}},{key:"flattenIdlAccounts",value:function(e,r){return e.map((function(e){var i=function(t){var e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)}(e.name);if(e.accounts){var o=r?"".concat(r," > ").concat(i):i;return t.flattenIdlAccounts(e.accounts,o)}return Object(n.a)(Object(n.a)({},e),{},{name:r?"".concat(r," > ").concat(i):i})})).flat()}}]),t}()}).call(this,r(7).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(9),i=r(10),o=r(61),a=function(){function e(t){if(Object(n.a)(this,e),void 0!==t.types){var r=t.types.map((function(e){return[e.name,o.a.typeDefLayout(e,t.types)]}));this.layouts=new Map(r)}else this.layouts=new Map}return Object(i.a)(e,[{key:"encode",value:function(e,r){var n=t.alloc(1e3),i=this.layouts.get(e).encode(r,n);return n.slice(0,i)}},{key:"decode",value:function(t,e){return this.layouts.get(t).decode(e)}}]),e}()}).call(this,r(7).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));new Set(["anchor-deprecated-state"]);var n=new Map;function i(t){return void 0!==n.get(t)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return y}
2));var n=r(1),i=r.n(n),o=r(4),a=r(9),s=r(10),u=r(48),c=r.n(u),f=r(74),h=r.n(f),l=r(23),d=r(16),p=r(43),b=r(38),v=r(32),m=r(76),y=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"build",value:function(t,e,r,n){var i={};return t.accounts.forEach((function(o){var a=c()(o.name);i[a]=new g(t,o,r,n,e)})),i}}]),t}(),g=function(){function e(t,r,n,i,o){Object(a.a)(this,e),this._idlAccount=r,this._programId=n,this._provider=null!==i&&void 0!==i?i:Object(v.c)(),this._coder=null!==o&&void 0!==o?o:new p.d(t),this._size=p.a+Object(p.c)(t,r)}return Object(s.a)(e,[{key:"size",get:function(){return this._size}},{key:"programId",get:function(){return this._programId}},{key:"provider",get:function(){return this._provider}},{key:"coder",get:function(){return this._coder}},{key:"fetch",value:function(){var t=Object(o.a)(i.a.mark((function t(e){var r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._provider.connection.getAccountInfo(Object(b.c)(e));case 2:if(null!==(r=t.sent)){t.next=5;break}throw new Error("Account does not exist ".concat(e.toString()));case 5:return t.next=7,Object(p.b)(this._idlAccount.name);case 7:if(!t.sent.compare(r.data.slice(0,8))){t.next=10;break}throw new Error("Invalid account discriminator");case 10:return t.abrupt("return",this._coder.accounts.decode(this._idlAccount.name,r.data));case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"all",value:function(){var e=Object(o.a)(i.a.mark((function e(r){var n,o,a=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.b)(this._idlAccount.name);case 2:return n=e.sent,void 0!==r&&(n=t.concat([n,r])),e.next=6,this._provider.connection.getProgramAccounts(this._programId,{commitment:this._provider.connection.commitment,filters:[{memcmp:{offset:0,bytes:l.encode(n)}}]});case 6:return o=e.sent,e.abrupt("return",o.map((function(t){var e=t.pubkey,r=t.account;return{publicKey:e,account:a._coder.accounts.decode(a._idlAccount.name,r.data)}})));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"subscribe",value:function(t,e){var r=this;if(w.get(t.toString()))return w.get(t.toString()).ee;var n=new h.a;t=Object(b.c)(t);var i=this._provider.connection.onAccountChange(t,(function(t){var e=r._coder.accounts.decode(r._idlAccount.name,t.data);n.emit("change",e)}),e);return w.set(t.toString(),{ee:n,listener:i}),n}},{key:"unsubscribe",value:function(t){var e=w.get(t.toString());e?w&&this._provider.connection.removeAccountChangeListener(e.listener).then((function(){w.delete(t.toString())})).catch(console.error):console.warn("Address is not subscribed")}},{key:"createInstruction",value:function(){var t=Object(o.a)(i.a.mark((function t(e,r){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.size,t.t0=d.SystemProgram,t.t1=this._provider.wallet.publicKey,t.t2=e.publicKey,t.t3=null!==r&&void 0!==r?r:n,t.next=7,this._provider.connection.getMinimumBalanceForRentExemption(null!==r&&void 0!==r?r:n);case 7:return t.t4=t.sent,t.t5=this._programId,t.t6={fromPubkey:t.t1,newAccountPubkey:t.t2,space:t.t3,lamports:t.t4,programId:t.t5},t.abrupt("return",t.t0.createAccount.call(t.t0,t.t6));case 11:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"associated",value:function(){var t=Object(o.a)(i.a.mark((function t(){var e,r=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.associatedAddress.apply(this,r);case 2:return e=t.sent,t.next=5,this.fetch(e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"associatedAddress",value:function(){var t=Object(o.a)(i.a.mark((function t(){var e,r,n,o=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=o.length,r=new Array(e),n=0;n<e;n++)r[n]=o[n];return t.next=3,m.associated.apply(m,[this._programId].concat(r));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),e}(),w=new Map}).call(this,r(7).Buffer)},function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";
2function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(71);Object.defineProperty(e,"__esModule",{value:!0}),e.Client=void 0;var i=n(r(93)),o=n(r(94)),a=n(r(95)),s=n(r(79)),u=n(r(367));function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,s.default)(t);if(e){var i=(0,s.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,a.default)(this,r)}}var f=function(t){(0,o.default)(r,t);var e=c(r);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8080",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.autoconnect,a=void 0===o||o,s=n.reconnect,c=void 0===s||s,f=n.reconnect_interval,h=void 0===f?1e3:f,l=n.max_reconnects,d=void 0===l?5:l,p=arguments.length>2?arguments[2]:void 0;return(0,i.default)(this,r),e.call(this,u.default,t,{autoconnect:a,reconnect:c,reconnect_interval:h,max_reconnects:d},p)}return r}(n(r(368)).default);e.Client=f},function(t,e,r){"use strict";var n=r(234),i=r(372),o=function t(e,r){if(!(this instanceof t))return new t(e,r);r||(r={}),this.options={reviver:"undefined"!==typeof r.reviver?r.reviver:null,replacer:"undefined"!==typeof r.replacer?r.replacer:null,generator:"undefined"!==typeof r.generator?r.generator:function(){return n()},version:"undefined"!==typeof r.version?r.version:2,notificationIdNull:"boolean"===typeof r.notificationIdNull&&r.notificationIdNull},this.callServer=e};t.exports=o,o.prototype.request=function(t,e,r,n){var o,a=this,s=null,u=Array.isArray(t)&&"function"===typeof e;if(1===this.options.version&&u)throw new TypeError("JSON-RPC 1.0 does not support batching");if(u||!u&&t&&"object"===typeof t&&"function"===typeof e)n=e,s=t;else{"function"===typeof r&&(n=r,r=void 0);var c="function"===typeof n;try{s=i(t,e,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(f){if(c)return n(f);throw f}if(!c)return s}try{o=JSON.stringify(s,this.options.replacer)}catch(f){return n(f)}return this.callServer(o,(function(t,e){a._parseResponse(t,e,n)})),s},o.prototype._parseResponse=function(t,e,r){if(t)r(t);else{if(!e)return r();var n;try{n=JSON.parse(e,this.options.reviver)}catch(t){return r(t)}if(3===r.length){if(Array.isArray(n)){var i=function(t){return"undefined"!==typeof t.error};return r(null,n.filter(i),n.filter((function(t){return!i(t)})))}return r(null,n.error,n.result)}r(null,n)}}},function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(2),i=r.n(n).a.createContext(null);e.a=i},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(130);function i(t,e){if(t){if("string"===typeof t)return Object(n.a)(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(t,e):void 0}}},function(t,e,r){"use strict";var n="function"===typeof Symbol&&Symbol.for;e.a=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(t,e,r){"use strict";e.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n;r.d(e,"a",(function(){return i}));var i="undefined"!==typeof window&&!(null===(n=window.process)||void 0===n?void 0:n.hasOwnProperty("type"))},function(t,e,r){"use strict";r.d(e,"a",(function(){return Ct})),r.d(e,"b",(function(){return Lt}));var n=r(2),i=r.n(n),o=Object(n.createContext)({});function a(){return Object(n.useContext)(o)}var s=r(598),u=r(52),c=r(596),f=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},h=Object(c.a)((function(t){return{root:{width:t.spacing(3),height:t.spacing(3)}}})),l=function(t){var e=t.wallet,r=f(t,["wallet"]),n=h();return e&&i.a.createElement("img",Object.assign({src:e.icon,alt:"".concat(e.name," icon"),className:n.root},r))},d=r(14),p=r(6),b=r(12),v=r(37),m=(r(15),r(17)),y=r(24),g=r(30),w=r(29),_=r(344),k=r(599),M=r(41),S=r(67),E=r(35);var x="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;var A=n.forwardRef((function(t,e){var r=t.children,i=t.container,o=t.disablePortal,a=void 0!==o&&o,s=t.onRendered,u=n.useState(null),c=u[0],f=u[1],h=Object(E.a)(n.isValidElement(r)?r.ref:null,e);return x((function(){a||f(function(t){return t="function"===typeof t?t():t,w.findDOMNode(t)}(i)||document.body)}),[i,a]),x((function(){if(c&&!a)return Object(S.a)(e,c),function(){Object(S.a)(e,null)}}),[e,c,a]),x((function(){s&&(c||a)&&s()}),[s,c,a]),a?n.isValidElement(r)?n.cloneElement(r,{ref:h}):r:c?w.createPortal(r,c):c})),O=r(68),j=r(47),R=r(172);var I=r(114),P=r(85);function T(){var t=document.createElement("div");t.style.width="99px",t.style.height="99px",t.style.position="absolute",t.style.top="-9999px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}var C=r(108);function B(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function L(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function N(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[e,r].concat(Object(P.a)(n)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,(function(t){1===t.nodeType&&-1===o.indexOf(t)&&-1===a.indexOf(t.tagName)&&B(t,i)}
vendor: 5,950 bytes, line 2
2))}function D(t,e){var r=-1;return t.some((function(t,n){return!!e(t)&&(r=n,!0)})),r}function U(t,e){var r,n=[],i=[],o=t.container;if(!e.disableScrollLock){if(function(t){var e=Object(M.a)(t);return e.body===t?Object(C.a)(e).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}(o)){var a=T();n.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(L(o)+a,"px"),r=Object(M.a)(o).querySelectorAll(".mui-fixed"),[].forEach.call(r,(function(t){i.push(t.style.paddingRight),t.style.paddingRight="".concat(L(t)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;n.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){r&&[].forEach.call(r,(function(t,e){i[e]?t.style.paddingRight=i[e]:t.style.removeProperty("padding-right")})),n.forEach((function(t){var e=t.value,r=t.el,n=t.key;e?r.style.setProperty(n,e):r.style.removeProperty(n)}))}}var z=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.modals=[],this.containers=[]}return Object(I.a)(t,[{key:"add",value:function(t,e){var r=this.modals.indexOf(t);if(-1!==r)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&B(t.modalRef,!1);var n=function(t){var e=[];return[].forEach.call(t.children,(function(t){t.getAttribute&&"true"===t.getAttribute("aria-hidden")&&e.push(t)})),e}(e);N(e,t.mountNode,t.modalRef,n,!0);var i=D(this.containers,(function(t){return t.container===e}));return-1!==i?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:e,restore:null,hiddenSiblingNodes:n}),r)}},{key:"mount",value:function(t,e){var r=D(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),n=this.containers[r];n.restore||(n.restore=U(n,e))}},{key:"remove",value:function(t){var e=this.modals.indexOf(t);if(-1===e)return e;var r=D(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),n=this.containers[r];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(e,1),0===n.modals.length)n.restore&&n.restore(),t.modalRef&&B(t.modalRef,!0),N(n.container,t.mountNode,t.modalRef,n.hiddenSiblingNodes,!1),this.containers.splice(r,1);else{var i=n.modals[n.modals.length-1];i.modalRef&&B(i.modalRef,!1)}return e}},{key:"isTopModal",value:function(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}]),t}();var W=function(t){var e=t.children,r=t.disableAutoFocus,i=void 0!==r&&r,o=t.disableEnforceFocus,a=void 0!==o&&o,s=t.disableRestoreFocus,u=void 0!==s&&s,c=t.getDoc,f=t.isEnabled,h=t.open,l=n.useRef(),d=n.useRef(null),p=n.useRef(null),b=n.useRef(),v=n.useRef(null),m=n.useCallback((function(t){v.current=w.findDOMNode(t)}),[]),y=Object(E.a)(e.ref,m),g=n.useRef();return n.useEffect((function(){g.current=h}),[h]),!g.current&&h&&"undefined"!==typeof window&&(b.current=c().activeElement),n.useEffect((function(){if(h){var t=Object(M.a)(v.current);i||!v.current||v.current.contains(t.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var e=function(){null!==v.current&&(t.hasFocus()&&!a&&f()&&!l.current?v.current&&!v.current.contains(t.activeElement)&&v.current.focus():l.current=!1)},r=function(e){!a&&f()&&9===e.keyCode&&t.activeElement===v.current&&(l.current=!0,e.shiftKey?p.current.focus():d.current.focus())};t.addEventListener("focus",e,!0),t.addEventListener("keydown",r,!0);var n=setInterval((function(){e()}),50);return function(){clearInterval(n),t.removeEventListener("focus",e,!0),t.removeEventListener("keydown",r,!0),u||(b.current&&b.current.focus&&b.current.focus(),b.current=null)}}}),[i,a,u,f,h]),n.createElement(n.Fragment,null,n.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),n.cloneElement(e,{ref:y}),n.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))},q={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},F=n.forwardRef((function(t,e){var r=t.invisible,i=void 0!==r&&r,o=t.open,a=Object(b.a)(t,["invisible","open"]);return o?n.createElement("div",Object(p.a)({"aria-hidden":!0,ref:e},a,{style:Object(p.a)({},q.root,i?q.invisible:{},a.style)})):null}));var K=new z,H=n.forwardRef((function(t,e){var r=Object(_.a)(),i=Object(k.a)({name:"MuiModal",props:Object(p.a)({},t),theme:r}),o=i.BackdropComponent,a=void 0===o?F:o,s=i.BackdropProps,u=i.children,c=i.closeAfterTransition,f=void 0!==c&&c,h=i.container,l=i.disableAutoFocus,d=void 0!==l&&l,v=i.disableBackdropClick,m=void 0!==v&&v,y=i.disableEnforceFocus,g=void 0!==y&&y,S=i.disableEscapeKeyDown,x=void 0!==S&&S,I=i.disablePortal,P=void 0!==I&&I,T=i.disableRestoreFocus,C=void 0!==T&&T,L=i.disableScrollLock,N=void 0!==L&&L,D=i.hideBackdrop,U=void 0!==D&&D,z=i.keepMounted,q=void 0!==z&&z,H=i.manager,Y=void 0===H?K:H,V=i.onBackdropClick,Z=i.onClose,G=i.onEscapeKeyDown,X=i.onRendered,J=i.open,Q=Object(b.a)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=n.useState(!0),tt=$[0],et=$[1],rt=n.useRef({}),nt=n.useRef(null),it=n.useRef(null),ot=Object(E.a)(it,e),at=function(t){return!!t.children&&t.children.props.hasOwnProperty("in")}(i),st=function(){return Object(M.a)(nt.current)},ut=function(){return rt.current.modalRef=it.current,rt.current.mountNode=nt.current,rt.current},ct=function(){Y.mount(ut(),{disableScrollLock:N}),it.current.scrollTop=0},ft=Object(j.a)((function(){var t=function(t){return t="function"===typeof t?t():t,w.findDOMNode(t)}(h)||st().body;Y.add(ut(),t),it.current&&ct()}
2)),ht=n.useCallback((function(){return Y.isTopModal(ut())}),[Y]),lt=Object(j.a)((function(t){nt.current=t,t&&(X&&X(),J&&ht()?ct():B(it.current,!0))})),dt=n.useCallback((function(){Y.remove(ut())}),[Y]);if(n.useEffect((function(){return function(){dt()}}),[dt]),n.useEffect((function(){J?ft():at&&f||dt()}),[J,dt,at,f,ft]),!q&&!J&&(!at||tt))return null;var pt=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(r||{zIndex:R.a}),bt={};return void 0===u.props.tabIndex&&(bt.tabIndex=u.props.tabIndex||"-1"),at&&(bt.onEnter=Object(O.a)((function(){et(!1)}),u.props.onEnter),bt.onExited=Object(O.a)((function(){et(!0),f&&dt()}),u.props.onExited)),n.createElement(A,{ref:lt,container:h,disablePortal:P},n.createElement("div",Object(p.a)({ref:ot,onKeyDown:function(t){"Escape"===t.key&&ht()&&(G&&G(t),x||(t.stopPropagation(),Z&&Z(t,"escapeKeyDown")))},role:"presentation"},Q,{style:Object(p.a)({},pt.root,!J&&tt?pt.hidden:{},Q.style)}),U?null:n.createElement(a,Object(p.a)({open:J,onClick:function(t){t.target===t.currentTarget&&(V&&V(t),!m&&Z&&Z(t,"backdropClick"))}},s)),n.createElement(W,{disableEnforceFocus:g,disableAutoFocus:d,disableRestoreFocus:C,getDoc:st,isEnabled:ht,open:J},n.cloneElement(u,bt))))})),Y=r(86),V=r(572),Z=r(53),G=r(83),X=r(63),J={entering:{opacity:1},entered:{opacity:1}},Q={enter:Z.b.enteringScreen,exit:Z.b.leavingScreen},$=n.forwardRef((function(t,e){var r=t.children,i=t.disableStrictModeCompat,o=void 0!==i&&i,a=t.in,s=t.onEnter,u=t.onEntered,c=t.onEntering,f=t.onExit,h=t.onExited,l=t.onExiting,d=t.style,v=t.TransitionComponent,m=void 0===v?V.a:v,y=t.timeout,g=void 0===y?Q:y,w=Object(b.a)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),_=Object(G.a)(),k=_.unstable_strictMode&&!o,M=n.useRef(null),S=Object(E.a)(r.ref,e),x=Object(E.a)(k?M:void 0,S),A=function(t){return function(e,r){if(t){var n=k?[M.current,e]:[e,r],i=Object(Y.a)(n,2),o=i[0],a=i[1];void 0===a?t(o):t(o,a)}}},O=A(c),j=A((function(t,e){Object(X.b)(t);var r=Object(X.a)({style:d,timeout:g},{mode:"enter"});t.style.webkitTransition=_.transitions.create("opacity",r),t.style.transition=_.transitions.create("opacity",r),s&&s(t,e)})),R=A(u),I=A(l),P=A((function(t){var e=Object(X.a)({style:d,timeout:g},{mode:"exit"});t.style.webkitTransition=_.transitions.create("opacity",e),t.style.transition=_.transitions.create("opacity",e),f&&f(t)})),T=A(h);return n.createElement(m,Object(p.a)({appear:!0,in:a,nodeRef:k?M:void 0,onEnter:j,onEntered:R,onEntering:O,onExit:P,onExited:T,onExiting:I,timeout:g},w),(function(t,e){return n.cloneElement(r,Object(p.a)({style:Object(p.a)({opacity:0,visibility:"exited"!==t||a?void 0:"hidden"},J[t],d,r.props.style),ref:x},e))}))})),tt=n.forwardRef((function(t,e){var r=t.children,i=t.classes,o=t.className,a=t.invisible,s=void 0!==a&&a,u=t.open,c=t.transitionDuration,f=t.TransitionComponent,h=void 0===f?$:f,l=Object(b.a)(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return n.createElement(h,Object(p.a)({in:u,timeout:c},l),n.createElement("div",{className:Object(m.a)(i.root,o,s&&i.invisible),"aria-hidden":!0,ref:e},r))})),et=Object(y.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(tt),rt=r(600),nt={enter:Z.b.enteringScreen,exit:Z.b.leavingScreen},it=n.forwardRef((function(t,e){var r=t.BackdropProps,i=t.children,o=t.classes,a=t.className,s=t.disableBackdropClick,u=void 0!==s&&s,c=t.disableEscapeKeyDown,f=void 0!==c&&c,h=t.fullScreen,l=void 0!==h&&h,d=t.fullWidth,v=void 0!==d&&d,y=t.maxWidth,w=void 0===y?"sm":y,_=t.onBackdropClick,k=t.onClose,M=t.onEnter,S=t.onEntered,E=t.onEntering,x=t.onEscapeKeyDown,A=t.onExit,O=t.onExited,j=t.onExiting,R=t.open,I=t.PaperComponent,P=void 0===I?rt.a:I,T=t.PaperProps,C=void 0===T?{}:T,B=t.scroll,L=void 0===B?"paper":B,N=t.TransitionComponent,D=void 0===N?$:N,U=t.transitionDuration,z=void 0===U?nt:U,W=t.TransitionProps,q=t["aria-describedby"],F=t["aria-labelledby"],K=Object(b.a)(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","o
2pen","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),Y=n.useRef();return n.createElement(H,Object(p.a)({className:Object(m.a)(o.root,a),BackdropComponent:et,BackdropProps:Object(p.a)({transitionDuration:z},r),closeAfterTransition:!0},u?{disableBackdropClick:u}:{},{disableEscapeKeyDown:f,onEscapeKeyDown:x,onClose:k,open:R,ref:e},K),n.createElement(D,Object(p.a)({appear:!0,in:R,timeout:z,onEnter:M,onEntering:E,onEntered:S,onExit:A,onExiting:j,onExited:O,role:"none presentation"},W),n.createElement("div",{className:Object(m.a)(o.container,o["scroll".concat(Object(g.a)(L))]),onMouseUp:function(t){t.target===t.currentTarget&&t.target===Y.current&&(Y.current=null,_&&_(t),!u&&k&&k(t,"backdropClick"))},onMouseDown:function(t){Y.current=t.target}},n.createElement(P,Object(p.a)({elevation:24,role:"dialog","aria-describedby":q,"aria-labelledby":F},C,{className:Object(m.a)(o.paper,o["paperScroll".concat(Object(g.a)(L))],o["paperWidth".concat(Object(g.a)(String(w)))],C.className,l&&o.paperFullScreen,v&&o.paperFullWidth)}),i))))})),ot=Object(y.a)((function(t){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(t.breakpoints.values.xs,444),"&$paperScrollBody":Object(v.a)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:t.breakpoints.values.sm,"&$paperScrollBody":Object(v.a)({},t.breakpoints.down(t.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:t.breakpoints.values.md,"&$paperScrollBody":Object(v.a)({},t.breakpoints.down(t.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:t.breakpoints.values.lg,"&$paperScrollBody":Object(v.a)({},t.breakpoints.down(t.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:t.breakpoints.values.xl,"&$paperScrollBody":Object(v.a)({},t.breakpoints.down(t.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(it),at=r(601),st=n.forwardRef((function(t,e){var r=t.children,i=t.classes,o=t.className,a=t.disableTypography,s=void 0!==a&&a,u=Object(b.a)(t,["children","classes","className","disableTypography"]);return n.createElement("div",Object(p.a)({className:Object(m.a)(i.root,o),ref:e},u),s?r:n.createElement(at.a,{component:"h2",variant:"h6"},r))})),ut=Object(y.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(st),ct=r(602),ft=n.forwardRef((function(t,e){var r=t.classes,i=t.className,o=t.dividers,a=void 0!==o&&o,s=Object(b.a)(t,["classes","className","dividers"]);return n.createElement("div",Object(p.a)({className:Object(m.a)(r.root,i,a&&r.dividers),ref:e},s))})),ht=Object(y.a)((function(t){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(t.palette.divider),borderBottom:"1px solid ".concat(t.palette.divider)}}}),{name:"MuiDialogContent"})(ft);var lt=n.createContext({}),dt=n.forwardRef((function(t,e){var r=t.children,i=t.classes,o=t.className,a=t.component,s=void 0===a?"ul":a,u=t.dense,c=void 0!==u&&u,f=t.disablePadding,h=void 0!==f&&f,l=t.subheader,d=Object(b.a)(t,["children","classes","className","component","dense","disablePadding","subheader"]),v=n.useMemo((function(){return{dense:c}}),[c]);return n.createElement(lt.Provider,{value:v},n.createElement(s,Object(p.a)({className:Object(m.a)(i.root,o,c&&i.dense,!h&&i.padding,l&&i.subheader),ref:e},d),l,r))})),pt=Object(y.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(dt),bt=n.forwardRef((function(t,e){var r=t.children,i=t.classes,o=t.className,a=t.collapsedHeight,s=t.collapsedSize,u=void 0===s?"0px":s,c=t.component,f=void 0===c?"div":c,h=t.disableStrictModeCompat,l=void 0!==h&&h,d=t.in,v=t.onEnter,y=t.onEntered,g=t.onEntering,w=t.onExit,_=t.onExited,k=t.onExiting,M=t.style,S=t.timeout,x=void 0===S?Z.b.standard:S,A=t.TransitionComponent,O=void 0===A?V.a:A,j=Object(b.a)(t,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),R=Object(G.a)(),I=n.useRef(),P=n.useRef(null),T=n.useRef(),C="number"===typeof(a||u)?"".concat(a||u,"px"):a||u;n.useEffect((function(){return function(){clearTimeout(I.current)}}),[]);var B=R.unstable_strictMode&&!l,L=n.useRef(null),N=Object(E.a)(e,B?L:void 0),D=function(t){return function(e,r){if(t){var n=B?[L.current,e]:[e,r],i=Object(Y.a)(n,2),o=i[0],a=i[1];void 0===a?t(o):t(o,a)}}},U=D((function(t,e){t.style.height=C,v&&v(t,e)})),z=D((function(t,e){var r=P.current?P.current.clientHeight:0,n=Object(X.a)({style:M,timeout:x},{mode:"enter"}).duration;if("auto"===x){var i=R.transitions.getAutoHeightDuration(r);t.style.transitionDuration="".concat(i,"ms"),T.current=i}else t.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");t.style.height="".concat(r,"px"),g&&g(t,e)})),W=D((function(t,e){t.style.height="auto",y&&y(t,e)})),q=D((function(t){var e=P.current?P.current.clientHeight:0;t.style.height="".concat(e,"px"),w&&w(t)})),F=D(_),K=D((function(t){var e=P.current?P.current.clientHeight:0,r=Object(X.a)({style:M,timeout:x},{mode:"exit"}).duration;if("auto"===x){var n=R.transitions.getAutoHeightDuration(e);t.style.transitionDuration="".concat(n,"ms"),T.current=n}else t.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");t.style.height=C,k&&k(t)}));return n.createElement(O,Object(p.a)({in:d,onEnter:U,onEntered:W,onEntering:z,onExit:q,onExited:F,onExiting:K,addEndListener:function(t,e){var r=B?t:e;"auto"===x&&(I.current=setTimeout(r,T.current||0))},nodeRef:B?L:void 0,timeout:"auto"===x?null:x},j),(function(t,e){return n.createElement(f,Object(p.a)({className:Object(m.a)(i.root,i.container,o,{entered:i.entered,exited:!d&&"0px"===C&&i.hidden}[t]),style:Object(p.a)({minHeight:C},M),ref:N},e),n.createElement("div",{className:i.wrapper,ref:P},n.createElement("div",{className:i.wrapperInner},r)))}))}));bt.muiSupportAuto=!0;var vt=Object(y.a)((function(t){return{root:{height:0,overflow:"hidden",transition:t.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(bt),mt=r(346),yt=r(156),gt="undefined"===typeof window?n.useEffect:n.useLayoutEffect,wt=n.forwardRef((function(t,e){var r=t.alignItems,i=void 0===r?"center":r,o=t.autoF
2ocus,a=void 0!==o&&o,s=t.button,u=void 0!==s&&s,c=t.children,f=t.classes,h=t.className,l=t.component,d=t.ContainerComponent,v=void 0===d?"li":d,y=t.ContainerProps,g=(y=void 0===y?{}:y).className,_=Object(b.a)(y,["className"]),k=t.dense,M=void 0!==k&&k,S=t.disabled,x=void 0!==S&&S,A=t.disableGutters,O=void 0!==A&&A,j=t.divider,R=void 0!==j&&j,I=t.focusVisibleClassName,P=t.selected,T=void 0!==P&&P,C=Object(b.a)(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),B=n.useContext(lt),L={dense:M||B.dense||!1,alignItems:i},N=n.useRef(null);gt((function(){a&&N.current&&N.current.focus()}),[a]);var D=n.Children.toArray(c),U=D.length&&Object(yt.a)(D[D.length-1],["ListItemSecondaryAction"]),z=n.useCallback((function(t){N.current=w.findDOMNode(t)}),[]),W=Object(E.a)(z,e),q=Object(p.a)({className:Object(m.a)(f.root,h,L.dense&&f.dense,!O&&f.gutters,R&&f.divider,x&&f.disabled,u&&f.button,"center"!==i&&f.alignItemsFlexStart,U&&f.secondaryAction,T&&f.selected),disabled:x},C),F=l||"li";return u&&(q.component=l||"div",q.focusVisibleClassName=Object(m.a)(f.focusVisible,I),F=mt.a),U?(F=q.component||l?F:"div","li"===v&&("li"===F?F="div":"li"===q.component&&(q.component="div")),n.createElement(lt.Provider,{value:L},n.createElement(v,Object(p.a)({className:Object(m.a)(f.container,g),ref:W},_),n.createElement(F,q,D),D.pop()))):n.createElement(lt.Provider,{value:L},n.createElement(F,Object(p.a)({ref:W},q),D))})),_t=Object(y.a)((function(t){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:t.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:t.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(t.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(wt),kt=r(319),Mt=r.n(kt),St=r(320),Et=r.n(St),xt=r(321),At=r.n(xt),Ot=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},jt=function(t){var e=t.onClick,r=t.wallet,n=Ot(t,["onClick","wallet"]);return i.a.createElement(_t,Object.assign({},n),i.a.createElement(s.a,{onClick:e,endIcon:i.a.createElement(l,{wallet:r})},r.name))},Rt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},It=Object(c.a)((function(t){return{root:{"& .MuiDialog-paper":{width:t.spacing(40),margin:0},"& .MuiDialogTitle-root":{backgroundColor:t.palette.primary.main,"& .MuiTypography-root":{display:"flex",justifyContent:"space-between",lineHeight:t.spacing(5)+"px"},"& .MuiIconButton-root":{flexShrink:1,padding:t.spacing(),marginRight:t.spacing(-1),color:t.palette.grey[500]}},"& .MuiDialogContent-root":{padding:0,"& .MuiCollapse-root":{"& .MuiList-root":{background:t.palette.grey[900]}},"& .MuiList-root":{background:t.palette.grey[900],padding:0},"& .MuiListItem-root":{boxShadow:"inset 0 1px 0 0 rgba(255, 255, 255, 0.1)","&:hover":{boxShadow:"inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 1px 0 0 rgba(255, 255, 255, 0.05)"},padding:0,"& .MuiButton-endIcon":{margin:0},"& .MuiButton-root":{flexGrow:1,justifyContent:"space-between",padding:t.spacing(1,3),borderRadius:void 0,fontSize:"1rem",fontWeight:400},"& .MuiSvgIcon-root":{color:t.palette.grey[500]}}}}}})),Pt=function(t){var e=t.title,r=void 0===e?"Select your wallet":e,o=t.featuredWallets,c=void 0===o?3:o,f=t.onClose,h=Rt(t,["title","featuredWallets","onClose"]),l=It(),p=Object(u.d)(),b=p.wallets,v=p.select,m=a(),y=m.open,g=m.setOpen,w=Object(n.useState)(!1),_=Object(d.a)(w,2),k=_[0],M=_[1],S=Object(n.useMemo)((function(){return[b.slice(0,c),b.slice(c)]}),[b,c]),E=Object(d.a)(S,2),x=E[0],A=E[1],O=Object(n.useCallback)((function(t,e){f&&f(t,e),t.defaultPrevented||g(!1)}),[g,f]),j=Object(n.useCallback)((function(t,e){v(e),O(t)}),[v,O]),R=Object(n.useCallback)((function(){return M(!k)}),[M,k]);return i.a.createElement(ot,Object.assign({open:y,onClose:O,className:l.root},h),i.a.createElement(ut,null,r,i.a.createElement(ct.a,{onClick:O},i.a.createElement(Mt.a,null))),i.a.createElement(ht,null,i.a.createElement(pt,null,x.map((function(t){return i.a.createElement(jt,{key:t.name,onClick:function(e){return j(e,t.name)},wallet:t})}
2)),A.length?i.a.createElement(i.a.Fragment,null,i.a.createElement(vt,{in:k,timeout:"auto",unmountOnExit:!0},i.a.createElement(pt,null,A.map((function(t){return i.a.createElement(jt,{key:t.name,onClick:function(e){return j(e,t.name)},wallet:t})})))),i.a.createElement(_t,null,i.a.createElement(s.a,{onClick:R},k?"Less":"More"," options",k?i.a.createElement(Et.a,null):i.a.createElement(At.a,null)))):null)))},Tt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},Ct=function(t){var e=t.children,r=void 0===e?"Select Wallet":e,o=t.color,u=void 0===o?"primary":o,c=t.variant,f=void 0===c?"contained":c,h=t.onClick,l=Tt(t,["children","color","variant","onClick"]),d=a().setOpen,p=Object(n.useCallback)((function(t){h&&h(t),t.defaultPrevented||d(!0)}),[h,d]);return i.a.createElement(s.a,Object.assign({color:u,variant:f,onClick:p},l),r)},Bt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},Lt=function(t){var e=t.children,r=Bt(t,["children"]),a=Object(n.useState)(!1),s=Object(d.a)(a,2),u=s[0],c=s[1];return i.a.createElement(o.Provider,{value:{open:u,setOpen:c}},e,i.a.createElement(Pt,Object.assign({},r)))},Nt=(r(1),r(128),r(157)),Dt=r(603);function Ut(t,e){var r=0;return"number"===typeof e?r=e:"center"===e?r=t.height/2:"bottom"===e&&(r=t.height),r}function zt(t,e){var r=0;return"number"===typeof e?r=e:"center"===e?r=t.width/2:"right"===e&&(r=t.width),r}function Wt(t){return[t.horizontal,t.vertical].map((function(t){return"number"===typeof t?"".concat(t,"px"):t})).join(" ")}function qt(t){return"function"===typeof t?t():t}var Ft=n.forwardRef((function(t,e){var r=t.action,i=t.anchorEl,o=t.anchorOrigin,a=void 0===o?{vertical:"top",horizontal:"left"}:o,s=t.anchorPosition,u=t.anchorReference,c=void 0===u?"anchorEl":u,f=t.children,h=t.classes,l=t.className,d=t.container,v=t.elevation,y=void 0===v?8:v,g=t.getContentAnchorEl,_=t.marginThreshold,k=void 0===_?16:_,S=t.onEnter,E=t.onEntered,x=t.onEntering,A=t.onExit,j=t.onExited,R=t.onExiting,I=t.open,P=t.PaperProps,T=void 0===P?{}:P,B=t.transformOrigin,L=void 0===B?{vertical:"top",horizontal:"left"}:B,N=t.TransitionComponent,D=void 0===N?Dt.a:N,U=t.transitionDuration,z=void 0===U?"auto":U,W=t.TransitionProps,q=void 0===W?{}:W,F=Object(b.a)(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),K=n.useRef(),Y=n.useCallback((function(t){if("anchorPosition"===c)return s;var e=qt(i),r=(e&&1===e.nodeType?e:Object(M.a)(K.current).body).getBoundingClientRect(),n=0===t?a.vertical:"center";return{top:r.top+Ut(r,n),left:r.left+zt(r,a.horizontal)}}),[i,a.horizontal,a.vertical,s,c]),V=n.useCallback((function(t){var e=0;if(g&&"anchorEl"===c){var r=g(t);if(r&&t.contains(r)){var n=function(t,e){for(var r=e,n=0;r&&r!==t;)n+=(r=r.parentElement).scrollTop;return n}(t,r);e=r.offsetTop+r.clientHeight/2-n||0}0}return e}),[a.vertical,c,g]),Z=n.useCallback((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Ut(t,L.vertical)+e,horizontal:zt(t,L.horizontal)}}),[L.horizontal,L.vertical]),G=n.useCallback((function(t){var e=V(t),r={width:t.offsetWidth,height:t.offsetHeight},n=Z(r,e);if("none"===c)return{top:null,left:null,transformOrigin:Wt(n)};var o=Y(e),a=o.top-n.vertical,s=o.left-n.horizontal,u=a+r.height,f=s+r.width,h=Object(C.a)(qt(i)),l=h.innerHeight-k,d=h.innerWidth-k;if(a<k){var p=a-k;a-=p,n.vertical+=p}else if(u>l){var b=u-l;a-=b,n.vertical+=b}if(s<k){var v=s-k;s-=v,n.horizontal+=v}else if(f>d){var m=f-d;s-=m,n.horizontal+=m}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Wt(n)}}),[i,c,Y,V,Z,k]),X=n.useCallback((function(){var t=K.current;
vendor: 5,354 bytes, line 2
2if(t){var e=G(t);null!==e.top&&(t.style.top=e.top),null!==e.left&&(t.style.left=e.left),t.style.transformOrigin=e.transformOrigin}}),[G]),J=n.useCallback((function(t){K.current=w.findDOMNode(t)}),[]);n.useEffect((function(){I&&X()})),n.useImperativeHandle(r,(function(){return I?{updatePosition:function(){X()}}:null}),[I,X]),n.useEffect((function(){if(I){var t=Object(Nt.a)((function(){X()}));return window.addEventListener("resize",t),function(){t.clear(),window.removeEventListener("resize",t)}}}),[I,X]);var Q=z;"auto"!==z||D.muiSupportAuto||(Q=void 0);var $=d||(i?Object(M.a)(qt(i)).body:void 0);return n.createElement(H,Object(p.a)({container:$,open:I,ref:e,BackdropProps:{invisible:!0},className:Object(m.a)(h.root,l)},F),n.createElement(D,Object(p.a)({appear:!0,in:I,onEnter:S,onEntered:E,onExit:A,onExited:j,onExiting:R,timeout:Q},q,{onEntering:Object(O.a)((function(t,e){x&&x(t,e),X()}),q.onEntering)}),n.createElement(rt.a,Object(p.a)({elevation:y,ref:J},T,{className:Object(m.a)(h.paper,T.className)}),f)))})),Kt=Object(y.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Ft);function Ht(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function Yt(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function Vt(t,e){if(void 0===e)return!0;var r=t.innerText;return void 0===r&&(r=t.textContent),0!==(r=r.trim().toLowerCase()).length&&(e.repeating?r[0]===e.keys[0]:0===r.indexOf(e.keys.join("")))}function Zt(t,e,r,n,i,o){for(var a=!1,s=i(t,e,!!e&&r);s;){if(s===t.firstChild){if(a)return;a=!0}var u=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Vt(s,o)&&!u)return void s.focus();s=i(t,s,r)}}var Gt="undefined"===typeof window?n.useEffect:n.useLayoutEffect,Xt=n.forwardRef((function(t,e){var r=t.actions,i=t.autoFocus,o=void 0!==i&&i,a=t.autoFocusItem,s=void 0!==a&&a,u=t.children,c=t.className,f=t.disabledItemsFocusable,h=void 0!==f&&f,l=t.disableListWrap,d=void 0!==l&&l,v=t.onKeyDown,m=t.variant,y=void 0===m?"selectedMenu":m,g=Object(b.a)(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),_=n.useRef(null),k=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Gt((function(){o&&_.current.focus()}),[o]),n.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(t,e){var r=!_.current.style.width;if(t.clientHeight<_.current.clientHeight&&r){var n="".concat(T(),"px");_.current.style["rtl"===e.direction?"paddingLeft":"paddingRight"]=n,_.current.style.width="calc(100% + ".concat(n,")")}return _.current}}}),[]);var S=n.useCallback((function(t){_.current=w.findDOMNode(t)}),[]),x=Object(E.a)(S,e),A=-1;n.Children.forEach(u,(function(t,e){n.isValidElement(t)&&(t.props.disabled||("selectedMenu"===y&&t.props.selected||-1===A)&&(A=e))}));var O=n.Children.map(u,(function(t,e){if(e===A){var r={};return s&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===y&&(r.tabIndex=0),n.cloneElement(t,r)}return t}));return n.createElement(pt,Object(p.a)({role:"menu",ref:x,className:c,onKeyDown:function(t){var e=_.current,r=t.key,n=Object(M.a)(e).activeElement;if("ArrowDown"===r)t.preventDefault(),Zt(e,n,d,h,Ht);else if("ArrowUp"===r)t.preventDefault(),Zt(e,n,d,h,Yt);else if("Home"===r)t.preventDefault(),Zt(e,null,d,h,Ht);else if("End"===r)t.preventDefault(),Zt(e,null,d,h,Yt);else if(1===r.length){var i=k.current,o=r.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=n&&!i.repeating&&Vt(n,i);i.previousKeyMatched&&(s||Zt(e,n,!1,h,Ht,i))?t.preventDefault():i.previousKeyMatched=!1}v&&v(t)},tabIndex:o?0:-1},g),O)})),Jt={vertical:"top",horizontal:"right"},Qt={vertical:"top",horizontal:"left"},$t=n.forwardRef((function(t,e){var r=t.autoFocus,i=void 0===r||r,o=t.children,a=t.classes,s=t.disableAutoFocusItem,u=void 0!==s&&s,c=t.MenuListProps,f=void 0===c?{}:c,h=t.onClose,l=t.onEntering,d=t.open,v=t.PaperProps,y=void 0===v?{}:v,g=t.PopoverClasses,_=t.transitionDuration,k=void 0===_?"auto":_,M=t.TransitionProps,E=(M=void 0===M?{}:M).onEntering,x=Object(b.a)(M,["onEntering"]),A=t.variant,O=void 0===A?"selectedMenu":A,j=Object(b.a)(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),R=Object(G.a)(),I=i&&!u&&d,P=n.useRef(null),T=n.useRef(null),C=-1;n.Children.map(o,(function(t,e){n.isValidElement(t)&&(t.props.disabled||("menu"!==O&&t.props.selected||-1===C)&&(C=e))}));var B=n.Children.map(o,(function(t,e){return e===C?n.cloneElement(t,{ref:function(e){T.current=w.findDOMNode(e),Object(S.a)(t.ref,e)}}):t}));return n.createElement(Kt,Object(p.a)({getContentAnchorEl:function(){return T.current},classes:g,onClose:h,TransitionProps:Object(p.a)({onEntering:function(t,e){P.current&&P.current.adjustStyleForScrollbar(t,R),l&&l(t,e),E&&E(t,e)}},x),anchorOrigin:"rtl"===R.direction?Jt:Qt,transformOrigin:"rtl"===R.direction?Jt:Qt,Pa
2perProps:Object(p.a)({},y,{classes:Object(p.a)({},y.classes,{root:a.paper})}),open:d,ref:e,transitionDuration:k},j),n.createElement(Xt,Object(p.a)({onKeyDown:function(t){"Tab"===t.key&&(t.preventDefault(),h&&h(t,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===C||u),autoFocusItem:I,variant:O},f,{className:Object(m.a)(a.list,f.className)}),B))})),te=(Object(y.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})($t),n.forwardRef((function(t,e){var r,i=t.classes,o=t.className,a=t.component,s=void 0===a?"li":a,u=t.disableGutters,c=void 0!==u&&u,f=t.ListItemClasses,h=t.role,l=void 0===h?"menuitem":h,d=t.selected,v=t.tabIndex,y=Object(b.a)(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return t.disabled||(r=void 0!==v?v:-1),n.createElement(_t,Object(p.a)({button:!0,role:l,tabIndex:r,component:s,selected:d,disableGutters:c,classes:Object(p.a)({dense:i.dense},f),className:Object(m.a)(i.root,o,d&&i.selected,!c&&i.gutters),ref:e},y))}))),ee=(Object(y.a)((function(t){return{root:Object(p.a)({},t.typography.body1,Object(v.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},t.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(p.a)({},t.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(te),n.forwardRef((function(t,e){var r=t.classes,i=t.className,o=Object(b.a)(t,["classes","className"]),a=n.useContext(lt);return n.createElement("div",Object(p.a)({className:Object(m.a)(r.root,i,"flex-start"===a.alignItems&&r.alignItemsFlexStart),ref:e},o))})));Object(y.a)((function(t){return{root:{minWidth:56,color:t.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(ee),r(322),r(324),r(323),Object(c.a)((function(t){return{root:{},menu:{"& .MuiList-root":{padding:0},"& .MuiMenuItem-root":{padding:t.spacing(1,2),boxShadow:"inset 0 1px 0 0 rgba(255, 255, 255, 0.1)","&:not(.MuiButtonBase-root)":{padding:0,"& .MuiButton-root":{borderRadius:0}},"&:hover":{boxShadow:"inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 1px 0 0 rgba(255, 255, 255, 0.05)"}},"& .MuiListItemIcon-root":{marginRight:t.spacing(),minWidth:"unset","& .MuiSvgIcon-root":{width:20,height:20}}}}}))},function(t,e,r){"use strict";function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,n(t,e)}r.d(e,"a",(function(){return i}))},,,,function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(e,n)}t.exports=r},function(t,e,r){var n=r(231),i=r(181),o=r(364),a=r(365);function s(e){var r="function"===typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},s(e)}t.exports=s},function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,r(e,n)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n;function i(t){this.rand=t}if(t.exports=function(t){return n||(n=new i(null)),n.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(377);if("function"!==typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(a){}},function(t,e,r){"use strict";var n,i=e,o=r(186),a=r(236),s=r(55).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var r=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("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"]}),c("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"]}),c("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"]}),c("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"]}),c("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"]}),c("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"]}),c("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{n=r(387)}catch(f){n=void 0}c("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: 6,417 bytes, line 2
2,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(t,e,r){var n=e;n.utils=r(65),n.common=r(120),n.sha=r(381),n.ripemd=r(385),n.hmac=r(386),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(t,e){},function(t,e,r){(function(t){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},i=/%[sdj%]/g;e.format=function(t){if(!m(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}})),u=n[r];r<o;u=n[++r])b(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},e.deprecate=function(r,n){if("undefined"!==typeof t&&!0===t.noDeprecation)return r;if("undefined"===typeof t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var o,a={};function s(t,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&e._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),f(n,t,n.depth)}function u(t,e){var r=s.styles[e];return r?"\x1b["+s.colors[r][0]+"m"+t+"\x1b["+s.colors[r][1]+"m":t}function c(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&M(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return m(i)||(i=f(t,i,n)),i}var o=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(m(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(v(e))return t.stylize(""+e,"number");if(p(e))return t.stylize(""+e,"boolean");if(b(e))return t.stylize("null","null")}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(M(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(g(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(k(r))return h(r)}var c,w="",S=!1,E=["{","}"];(d(r)&&(S=!0,E=["[","]"]),M(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return g(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),k(r)&&(w=" "+h(r)),0!==a.length||S&&0!=r.length?n<0?g(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=S?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)O(e,String(a))?o.push(l(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(l(t,e,r,n,i,!0))})),o}(t,r,n,s,a):a.map((function(e){return l(t,r,n,s,e,S)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(c,w,E)):E[0]+w+E[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),O(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=b(r)?f(t,u.value,null):f(t,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function d(t){return Array.isArray(t)}function p(t){return"boolean"===typeof t}function b(t){return null===t}function v(t){return"number"===typeof t}function m(t){return"string"===typeof t}function y(t){return void 0===t}function g(t){return w(t)&&"[object RegExp]"===S(t)}function w(t){return"object"===typeof t&&null!==t}function _(t){return w(t)&&"[object Date]"===S(t)}function k(t){return w(t)&&("[object Error]"===S(t)||t instanceof Error)}function M(t){return"function"===typeof t}function S(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(y(o)&&(o=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=t.pid;a[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,t)}}else a[r]=function(){};return a[r]},e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=b,e.isNullOrUndefined=function(t){return null==t}
2,e.isNumber=v,e.isString=m,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=y,e.isRegExp=g,e.isObject=w,e.isDate=_,e.isError=k,e.isFunction=M,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=r(405);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),x[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=r(406),e._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var j="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(j&&t[j]){var e;if("function"!==typeof(e=t[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(a){r(a)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),j&&Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=j,e.callbackify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(R,e,a)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}}).call(this,r(27))},function(t,e){var r=/^[0-9]+$/,n=function(t,e){var n=r.test(t),i=r.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1};t.exports={compareIdentifiers:n,rcompareIdentifiers:function(t,e){return n(e,t)}}},function(t,e,r){var n=r(58);t.exports=function(t,e,r){return 0===n(t,e,r)}},function(t,e,r){var n=r(49);t.exports=function(t,e,r){var i=new n(t,r),o=new n(e,r);return i.compare(o)||i.compareBuild(o)}},function(t,e,r){var n=r(58);t.exports=function(t,e,r){return n(t,e,r)<0}},function(t,e,r){var n=r(58);t.exports=function(t,e,r){return n(t,e,r)>=0}},function(t,e,r){var n=r(58);t.exports=function(t,e,r){return n(t,e,r)<=0}},function(t,e,r){var n=r(49),i=r(148),o=i.ANY,a=r(59),s=r(149),u=r(147),c=r(192),f=r(194),h=r(193);t.exports=function(t,e,r,l){var d,p,b,v,m;switch(t=new n(t,l),e=new a(e,l),r){case">":d=u,p=f,b=c,v=">",m=">=";break;case"<":d=c,p=h,b=u,v="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(t,e,l))return!1;for(var y=function(r){var n=e.set[r],a=null,s=null;return n.forEach((function(t){t.semver===o&&(t=new i(">=0.0.0")),a=a||t,s=s||t,d(t.semver,a.semver,l)?a=t:b(t.semver,s.semver,l)&&(s=t)})),a.operator===v||a.operator===m?{v:!1}:s.operator&&s.operator!==v||!p(t,s.semver)?s.operator===m&&b(t,s.semver)?{v:!1}:void 0:{v:!1}},g=0;g<e.set.length;++g){var w=y(g);if("object"===typeof w)return w.v}return!0}},function(t,e,r){"use strict";var n=r(100).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"===typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&e.readable,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||f()},c=e._writableState&&e._writableState.finished,f=function(){s=!1,c=!0,a||o.call(e)},h=e._readableState&&e._readableState.endEmitted,l=function(){a=!1,h=!0,s||o.call(e)},d=function(t){o.call(e,t)},p=function(){var t;return a&&!h?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):s&&!c?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},b=function(){e.req.on("finish",f)};return!function(t){return t.setHeader&&"function"===typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",u),e.on("close",u)):(e.on("complete",f),e.on("abort",p),e.req?b():e.on("request",b)),e.on("end",l),e.on("finish",f),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",b),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("end",l),e.removeListener("error",d),e.removeListener("close",p)}}},function(t,e,r){var n=r(478);function i(t){var e=function e(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function o(t){var e=function e(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}t.exports=n(i),t.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}
vendor: 2,502 bytes, line 2
2))},function(t,e,r){"use strict";var n=r(19),i=r(265),o=r(25).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function c(t,e,r,n,i,o,a){return u(t+(e&r|~e&n)+i+o|0,a)+e|0}function f(t,e,r,n,i,o,a){return u(t+(e&n|r&~n)+i+o|0,a)+e|0}function h(t,e,r,n,i,o,a){return u(t+(e^r^n)+i+o|0,a)+e|0}function l(t,e,r,n,i,o,a){return u(t+(r^(e|~n))+i+o|0,a)+e|0}n(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,t[0],3614090360,7),o=c(o,r,n,i,t[1],3905402710,12),i=c(i,o,r,n,t[2],606105819,17),n=c(n,i,o,r,t[3],3250441966,22),r=c(r,n,i,o,t[4],4118548399,7),o=c(o,r,n,i,t[5],1200080426,12),i=c(i,o,r,n,t[6],2821735955,17),n=c(n,i,o,r,t[7],4249261313,22),r=c(r,n,i,o,t[8],1770035416,7),o=c(o,r,n,i,t[9],2336552879,12),i=c(i,o,r,n,t[10],4294925233,17),n=c(n,i,o,r,t[11],2304563134,22),r=c(r,n,i,o,t[12],1804603682,7),o=c(o,r,n,i,t[13],4254626195,12),i=c(i,o,r,n,t[14],2792965006,17),r=f(r,n=c(n,i,o,r,t[15],1236535329,22),i,o,t[1],4129170786,5),o=f(o,r,n,i,t[6],3225465664,9),i=f(i,o,r,n,t[11],643717713,14),n=f(n,i,o,r,t[0],3921069994,20),r=f(r,n,i,o,t[5],3593408605,5),o=f(o,r,n,i,t[10],38016083,9),i=f(i,o,r,n,t[15],3634488961,14),n=f(n,i,o,r,t[4],3889429448,20),r=f(r,n,i,o,t[9],568446438,5),o=f(o,r,n,i,t[14],3275163606,9),i=f(i,o,r,n,t[3],4107603335,14),n=f(n,i,o,r,t[8],1163531501,20),r=f(r,n,i,o,t[13],2850285829,5),o=f(o,r,n,i,t[2],4243563512,9),i=f(i,o,r,n,t[7],1735328473,14),r=h(r,n=f(n,i,o,r,t[12],2368359562,20),i,o,t[5],4294588738,4),o=h(o,r,n,i,t[8],2272392833,11),i=h(i,o,r,n,t[11],1839030562,16),n=h(n,i,o,r,t[14],4259657740,23),r=h(r,n,i,o,t[1],2763975236,4),o=h(o,r,n,i,t[4],1272893353,11),i=h(i,o,r,n,t[7],4139469664,16),n=h(n,i,o,r,t[10],3200236656,23),r=h(r,n,i,o,t[13],681279174,4),o=h(o,r,n,i,t[0],3936430074,11),i=h(i,o,r,n,t[3],3572445317,16),n=h(n,i,o,r,t[6],76029189,23),r=h(r,n,i,o,t[9],3654602809,4),o=h(o,r,n,i,t[12],3873151461,11),i=h(i,o,r,n,t[15],530742520,16),r=l(r,n=h(n,i,o,r,t[2],3299628645,23),i,o,t[0],4096336452,6),o=l(o,r,n,i,t[7],1126891415,10),i=l(i,o,r,n,t[14],2878612391,15),n=l(n,i,o,r,t[5],4237533241,21),r=l(r,n,i,o,t[12],1700485571,6),o=l(o,r,n,i,t[3],2399980690,10),i=l(i,o,r,n,t[10],4293915773,15),n=l(n,i,o,r,t[1],2240044497,21),r=l(r,n,i,o,t[8],1873313359,6),o=l(o,r,n,i,t[15],4264355552,10),i=l(i,o,r,n,t[6],2734768916,15),n=l(n,i,o,r,t[13],
vendor: 8,928 bytes, line 2
21309151649,21),r=l(r,n,i,o,t[4],4149444226,6),o=l(o,r,n,i,t[11],3174756917,10),i=l(i,o,r,n,t[2],718787259,15),n=l(n,i,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.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=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},function(t,e,r){"use strict";var n=r(102).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"===typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&e.readable,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||f()},c=e._writableState&&e._writableState.finished,f=function(){s=!1,c=!0,a||o.call(e)},h=e._readableState&&e._readableState.endEmitted,l=function(){a=!1,h=!0,s||o.call(e)},d=function(t){o.call(e,t)},p=function(){var t;return a&&!h?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):s&&!c?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},b=function(){e.req.on("finish",f)};return!function(t){return t.setHeader&&"function"===typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",u),e.on("close",u)):(e.on("complete",f),e.on("abort",p),e.req?b():e.on("request",b)),e.on("end",l),e.on("finish",f),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",b),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("end",l),e.removeListener("error",d),e.removeListener("close",p)}}},function(t,e,r){"use strict";var n=r(7).Buffer,i=r(19),o=r(265),a=new Array(16),s=[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],u=[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],c=[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],f=[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],h=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function b(t,e,r,n,i,o,a,s){return p(t+(e^r^n)+o+a|0,s)+i|0}function v(t,e,r,n,i,o,a,s){return p(t+(e&r|~e&n)+o+a|0,s)+i|0}function m(t,e,r,n,i,o,a,s){return p(t+((e|~r)^n)+o+a|0,s)+i|0}function y(t,e,r,n,i,o,a,s){return p(t+(e&n|r&~n)+o+a|0,s)+i|0}function g(t,e,r,n,i,o,a,s){return p(t+(e^(r|~n))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,M=0|this._d,S=0|this._e,E=0;E<80;E+=1){var x,A;E<16?(x=b(r,n,i,o,d,t[s[E]],h[0],c[E]),A=g(w,_,k,M,S,t[u[E]],l[0],f[E])):E<32?(x=v(r,n,i,o,d,t[s[E]],h[1],c[E]),A=y(w,_,k,M,S,t[u[E]],l[1],f[E])):E<48?(x=m(r,n,i,o,d,t[s[E]],h[2],c[E]),A=m(w,_,k,M,S,t[u[E]],l[2],f[E])):E<64?(x=y(r,n,i,o,d,t[s[E]],h[3],c[E]),A=v(w,_,k,M,S,t[u[E]],l[3],f[E])):(x=g(r,n,i,o,d,t[s[E]],h[4],c[E]),A=b(w,_,k,M,S,t[u[E]],l[4],f[E])),r=d,d=o,o=p(i,10),i=n,n=x,w=S,S=M,M=p(k,10),k=_,_=A}var O=this._b+i+M|0;this._b=this._c+o+S|0,this._c=this._d+d+w|0,this._d=this._e+r+_|0,this._e=this._a+n+k|0,this._a=O},d.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=n.alloc?n.alloc(20):new n(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=d},function(t,e,r){(e=t.exports=function(t){t=t.toLowerCase();var r=e[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r}).sha=r(491),e.sha1=r(492),e.sha224=r(493),e.sha256=r(272),e.sha384=r(494),e.sha512=r(273)},function(t,e,r){(e=t.exports=r(274)).Stream=e,e.Readable=e,e.Writable=r(204),e.Duplex=r(90),e.Transform=r(277),e.PassThrough=r(501)},function(t,e,r){var n=r(7),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";(function(e,n,i){var o=r(151);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=y;var s,u=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?n:o.nextTick;y.WritableState=m;var c=Object.create(r(122));c.inherits=r(19);var f={deprecate:r(150)},h=r(275),l=r(203).Buffer,d=i.Uint8Array||function(){};var p,b=r(276);function v(){}function m(t,e){s=s||r(90),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:f,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 h=!1===t.decodeStrings;this.decodeStrings=!h,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 r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),S(t,e))}(t,r,n,e,i);else{var a=k(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?u(w,t,r,a,i):w(t,r,a,i)}}(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 a(this)}function y(t){if(s=s||r(90),!p.call(y,this)&&!(this instanceof s))return new y(t);this._writableState=new m(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)),h.call(this)}function g(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),S(t,e)}function _(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,g(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,h=r.callback;
vendor: 7,982 bytes, line 2
2if(g(t,e,!1,e.objectMode?1:c.length,c,f,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),S(t,e)}))}function S(t,e){var r=k(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(M,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}c.inherits(y,h),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:f.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]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===y&&(t&&t._writableState instanceof m)}})):p=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=t,l.isBuffer(n)||n instanceof d);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"===typeof e&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!==typeof r&&(r=v),i.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),o.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,i,o);return u}(this,i,s,t,e,r)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},y.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(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,r){var n=this._writableState;"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,S(t,e),r&&(e.finished?o.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=b.destroy,y.prototype._undestroy=b.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(27),r(499).setImmediate,r(31))},function(t,e,r){"use strict";var n=r(56);function i(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=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<r;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,r=0,n=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,r=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.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},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){n.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,r){var n=r(514),i=r(522),o=r(290);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},function(t,e,r){var n={ECB:r(515),CBC:r(516),CFB:r(517),CFB8:r(518),CFB1:r(519),OFB:r(520),CTR:r(288),GCM:r(288)},i=r(290);for(var o in i)i[o].module=n[i[o].mode];t.exports=i},function(t,e,r){"use strict";var n=r(105).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"===typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&e.readable,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||f()},c=e._writableState&&e._writableState.finished,f=function(){s=!1,c=!0,a||o.call(e)},h=e._readableState&&e._readableState.endEmitted,l=function(){a=!1,h=!0,s||o.call(e)},d=function(t){o.call(e,t)},p=function(){var t;return a&&!h?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):s&&!c?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},b=function(){e.req.on("finish",f)};return!function(t){return t.setHeader&&"function"===typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",u),e.on("close",u)):(e.on("complete",f),e.on("abort",p),e.req?b():e.on("request",b)),e.on("end",l),e.on("finish",f),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",b),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("end",l),e.removeListener("error",d),e.removeListener("close",p)}}},function(t,e,r){(function(e){var n=r(46),i=r(89);function o(t){var e,r=t.modulus.byteLength();
2do{e=new n(i(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function a(t,r){var i=function(t){var e=o(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(r),a=r.modulus.byteLength(),s=new n(t).mul(i.blinder).umod(r.modulus),u=s.toRed(n.mont(r.prime1)),c=s.toRed(n.mont(r.prime2)),f=r.coefficient,h=r.prime1,l=r.prime2,d=u.redPow(r.exponent1).fromRed(),p=c.redPow(r.exponent2).fromRed(),b=d.isub(p).imul(f).umod(h).imul(l);return p.iadd(b).imul(i.unblinder).umod(r.modulus).toArrayLike(e,"be",a)}a.getr=o,t.exports=a}).call(this,r(7).Buffer)},function(t,e,r){"use strict";(function(e){var n,i=r(7),o=i.Buffer,a={};for(n in i)i.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(a[n]=i[n]);var s=a.Buffer={};for(n in o)o.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(s[n]=o[n]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(t,e,r){if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&"undefined"===typeof t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return o(t,e,r)}),s.alloc||(s.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=o(t);return e&&0!==e.length?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n}),!a.kStringMaxLength)try{a.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(u){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a}).call(this,r(27))},function(t,e,r){"use strict";var n=r(212).Reporter,i=r(124).EncoderBuffer,o=r(124).DecoderBuffer,a=r(56),s=["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"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(t,e,r){var n={};this._baseState=n,n.name=r,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=c;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var t=this._baseState,e={};f.forEach((function(r){e[r]=t[r]}));var r=new this.constructor(e.parent);return r._baseState=e,r},c.prototype._wrap=function(){var t=this._baseState;u.forEach((function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},c.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){var e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(a(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(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(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){c.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}
vendor: 5,050 bytes, line 2
2)),s.forEach((function(t){c.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}})),c.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},c.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},c.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=t.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(a=this._peekTag(t,u,r.any),t.isError(a))return a}else{var c=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(b){a=!1}t.restore(c)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){var f=this._decodeTag(t,r.explicit);if(t.isError(f))return f;t=f}var h=t.offset;if(null===r.use&&null===r.choice){var l;r.any&&(l=t.save());var d=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(d))return d;r.any?i=t.raw(l):t=d}if(e&&e.track&&null!==r.tag&&e.track(t.path(),h,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new o(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(p,e)}}return r.obj&&a&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=t.save(),s=r.choice[o];try{var u=s._decode(t,e);if(t.isError(u))return!1;n={type:o,value:u},i=!0}catch(c){return t.restore(a),!1}return!0}),this),i?n:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},c.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},c.prototype._encodeValue=function(t,e,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,r)._encode(t,e),s=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);
vendor: 4,087 bytes, line 2
2if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),u))}else null!==i.use?o=this._getUse(i.use,r)._encode(t,e):(a=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,f=null===i.implicit?"universal":"context";null===c?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(c,s,f,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,r){"use strict";var n=r(19);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(t,e,r){"use strict";function n(t){var e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(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=n(e.tag)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;
vendor: 5,685 bytes, line 2
2"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=r(557).Buffer}catch(S){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=u(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],f=[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],h=[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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?b+r:c[l-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)}
vendor: 4,496 bytes, line 2
2,o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 1,190 bytes, line 2
2var 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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 4,788 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,
vendor: 12,355 bytes, line 2
2X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function p(t,e,r){return(new b).mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(d=l),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):r<63?l(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):p(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 14,245 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0===(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0===(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},i(y,m),y.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},i(g,m),i(w,m),i(_,m),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new g;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(69)(t))},function(t,e,r){"use strict";r.r(e),function(t){var n=r(60),i=r.n(n),o=r(42);
2r.d(e,"TransportError",(function(){return o.TransportError})),r.d(e,"TransportStatusError",(function(){return o.TransportStatusError})),r.d(e,"StatusCodes",(function(){return o.StatusCodes})),r.d(e,"getAltStatusMessage",(function(){return o.getAltStatusMessage}));var a=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u=function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},c=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},f=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(){function e(){var e=this;this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new i.a,this.send=function(r,n,i,u,c,f){return void 0===c&&(c=t.alloc(0)),void 0===f&&(f=[o.StatusCodes.OK]),a(e,void 0,void 0,(function(){var e,a;return s(this,(function(s){switch(s.label){case 0:if(c.length>=256)throw new o.TransportError("data.length exceed 256 bytes limit. Got: "+c.length,"DataLengthTooBig");return[4,this.exchange(t.concat([t.from([r,n,i,u]),t.from([c.length]),c]))];case 1:if(e=s.sent(),a=e.readUInt16BE(e.length-2),!f.some((function(t){return t===a})))throw new o.TransportStatusError(a);return[2,e]}}))}))},this.exchangeAtomicImpl=function(t){return a(e,void 0,void 0,(function(){var e,r,n,i,a,u=this;return s(this,(function(s){switch(s.label){case 0:if(this.exchangeBusyPromise)throw new o.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");r=new Promise((function(t){e=t})),this.exchangeBusyPromise=r,n=!1,i=setTimeout((function(){n=!0,u.emit("unresponsive")}),this.unresponsiveTimeout),s.label=1;case 1:return s.trys.push([1,,3,4]),[4,t()];case 2:return a=s.sent(),n&&this.emit("responsive"),[2,a];case 3:return clearTimeout(i),e&&e(),this.exchangeBusyPromise=null,[7];case 4:return[2]}}
2))}))},this._appAPIlock=null}return e.prototype.exchange=function(t){throw new Error("exchange not implemented")},e.prototype.setScrambleKey=function(t){},e.prototype.close=function(){return Promise.resolve()},e.prototype.on=function(t,e){this._events.on(t,e)},e.prototype.off=function(t,e){this._events.removeListener(t,e)},e.prototype.emit=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(e=this._events).emit.apply(e,c([t],u(r),!1))},e.prototype.setDebugMode=function(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")},e.prototype.setExchangeTimeout=function(t){this.exchangeTimeout=t},e.prototype.setExchangeUnresponsiveTimeout=function(t){this.unresponsiveTimeout=t},e.create=function(t,e){var r=this;return void 0===t&&(t=3e3),new Promise((function(n,i){var a=!1,s=r.listen({next:function(e){a=!0,s&&s.unsubscribe(),u&&clearTimeout(u),r.open(e.descriptor,t).then(n,i)},error:function(t){u&&clearTimeout(u),i(t)},complete:function(){u&&clearTimeout(u),a||i(new o.TransportError(r.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),u=e?setTimeout((function(){s.unsubscribe(),i(new o.TransportError(r.ErrorMessage_ListenTimeout,"ListenTimeout"))}),e):null}))},e.prototype.decorateAppAPIMethods=function(t,e,r){var n,i;try{for(var o=f(e),a=o.next();!a.done;a=o.next()){var s=a.value;t[s]=this.decorateAppAPIMethod(s,t[s],t,r)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.decorateAppAPIMethod=function(t,e,r,n){var i=this;return function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a(i,void 0,void 0,(function(){var i;return s(this,(function(a){switch(a.label){case 0:if(i=this._appAPIlock)return[2,Promise.reject(new o.TransportError("Ledger Device is busy (lock "+i+")","TransportLocked"))];a.label=1;case 1:return a.trys.push([1,,3,4]),this._appAPIlock=t,this.setScrambleKey(n),[4,e.apply(r,u)];case 2:return[2,a.sent()];case 3:return this._appAPIlock=null,[7];case 4:return[2]}}
2))}))}},e.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",e.ErrorMessage_NoDeviceFound="No Ledger device found",e}();e.default=h}.call(this,r(7).Buffer)},function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return h}));var n=r(1),i=r.n(n),o=r(4),a=r(16),s=r(28);function u(t){return c.apply(this,arguments)}function c(){return(c=Object(o.a)(i.a.mark((function t(e){var r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.PublicKey.findProgramAddress([],e);case 2:return r=t.sent[0],t.next=5,a.PublicKey.createWithSeed(r,"anchor:idl",e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var f=s.struct([s.publicKey("authority"),s.vecU8("data")]);function h(t){return f.decode(t)}}).call(this,r(7).Buffer)},function(t,e,r){var n=r(98);t.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(144).SEMVER_SPEC_VERSION,SemVer:r(49),compareIdentifiers:r(189).compareIdentifiers,rcompareIdentifiers:r(189).rcompareIdentifiers,parse:r(99),valid:r(419),clean:r(420),inc:r(421),diff:r(422),major:r(423),minor:r(424),patch:r(425),prerelease:r(426),compare:r(58),rcompare:r(427),compareLoose:r(428),compareBuild:r(191),sort:r(429),rsort:r(430),gt:r(147),lt:r(192),eq:r(190),neq:r(248),gte:r(193),lte:r(194),cmp:r(249),coerce:r(431),Comparator:r(148),Range:r(59),satisfies:r(149),toComparators:r(435),maxSatisfying:r(436),minSatisfying:r(437),minVersion:r(438),validRange:r(439),outside:r(195),gtr:r(440),ltr:r(441),intersects:r(442),simplifyRange:r(443),subset:r(444)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=0,i=[],o=function(t,e,r){var o={type:t,id:String(++n),date:new Date};e&&(o.message=e),r&&(o.data=r),function(t){for(var e=0;e<i.length;e++)try{i[e](t)}catch(r){console.error(r)}}(o)};"undefined"!==typeof window&&(window.__ledgerLogsListen=function(t){return i.push(t),function(){var e=i.indexOf(t);-1!==e&&(i[e]=i[i.length-1],i.pop())}})},function(t,e,r){"use strict";var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackgroun
2d|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=function(t){var e={};return function(r){return void 0===e[r]&&(e[r]=t(r)),e[r]}}((function(t){return n.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.a=i},,,,function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(I){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n=h;return function(i,o){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return R()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?p:l,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(I){return{type:"throw",arg:I}}}t.wrap=c;var h="suspendedStart",l="suspendedYield",d="executing",p="completed",b={};function v(){}function m(){}function y(){}var g={};u(g,o,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(j([])));_&&_!==r&&n.call(_,o)&&(g=_);var k=y.prototype=v.prototype=Object.create(g);function M(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"===typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}
vendor: 4,956 bytes, line 2
2))}return i=i?i.then(o,o):o()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return b;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=f(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var r=t[o];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:R}}function R(){return{value:e,done:!0}}return m.prototype=y,u(k,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,s,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},M(S.prototype),u(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new S(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(k),u(k,s,"Generator"),u(k,o,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}(t.exports);try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){var n=r(180);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?i(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},function(t,e){function r(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,i)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},function(t,e){t.exports=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(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(e)}t.exports=r},function(t,e){t.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}},function(t,e,r){var n=r(363),i=r(57);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?i(t):e}},function(t,e,r){var n=r(370),i=r(371);t.exports=function(t,e,r){var o=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},function(t,e,r){"use strict";var n=e;function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",r=0;r<t.length;r++)e+=i(t[r].toString(16));return e}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t);for(n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,r){"use strict";var n=e;n.base=r(142),n.short=r(378),n.mont=r(379),n.edwards=r(380)},function(t,e,r){"use strict";var n=r(65).rotr32;function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?o(e,r,n):void 0},e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},function(t,e,r){"use strict";var n=r(65),i=r(120),o=r(237),a=r(56),s=n.sum32,u=n.sum32_4,c=n.sum32_5,f=o.ch32,h=o.maj32,l=o.s0_256,d=o.s1_256,p=o.g0_256,b=o.g1_256,v=i.BlockHash,m=[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 y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(y,v),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=u(b(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],v=this.h[2],m=this.h[3],y=this.h[4],g=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var k=c(_,d(y),f(y,g,w),this.k[n],r[n]),M=s(l(i),h(i,o,v));
2_=w,w=g,g=y,y=s(m,k),m=v,v=o,o=i,i=s(k,M)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],v),this.h[3]=s(this.h[3],m),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],g),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(65),i=r(120),o=r(56),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,f=n.sum64,h=n.sum64_hi,l=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,v=n.sum64_5_lo,m=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function g(){if(!(this instanceof g))return new g;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function _(t,e,r,n,i,o){var a=e&n^~e&o;return a<0&&(a+=4294967296),a}function k(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function M(t,e,r,n,i,o){var a=e&n^e&o^n&o;return a<0&&(a+=4294967296),a}function S(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function E(t,e){var r=s(t,e,28)^s(e,t,2)^s(e,t,7);return r<0&&(r+=4294967296),r}function x(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function A(t,e){var r=s(t,e,14)^s(t,e,18)^s(e,t,9);return r<0&&(r+=4294967296),r}function O(t,e){var r=a(t,e,1)^a(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}function j(t,e){var r=s(t,e,1)^s(t,e,8)^c(t,e,7);return r<0&&(r+=4294967296),r}function R(t,e){var r=a(t,e,19)^a(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}function I(t,e){var r=s(t,e,19)^s(e,t,29)^c(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(g,m),t.exports=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=R(r[n-4],r[n-3]),o=I(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=O(r[n-30],r[n-29]),c=j(r[n-30],r[n-29]),f=r[n-32],h=r[n-31];r[n]=d(i,o,a,s,u,c,f,h),r[n+1]=p(i,o,a,s,u,c,f,h)}},g.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],d=this.h[6],p=this.h[7],m=this.h[8],y=this.h[9],g=this.h[10],O=this.h[11],j=this.h[12],R=this.h[13],I=this.h[14],P=this.h[15];o(this.k.length===r.length);for(var T=0;T<r.length;T+=2){var C=I,B=P,L=x(m,y),N=A(m,y),D=w(m,y,g,O,j),U=_(m,y,g,O,j,R),z=this.k[T],W=this.k[T+1],q=r[T],F=r[T+1],K=b(C,B,L,N,D,U,z,W,q,F),H=v(C,B,L,N,D,U,z,W,q,F);C=S(n,i),B=E(n,i),L=k(n,i,a,s,u),N=M(n,i,a,s,u,c);var Y=h(C,B,L,N),V=l(C,B,L,N);I=j,P=R,j=g,R=O,g=m,O=y,m=h(d,p,K,H),y=l(p,p,K,H),d=u,p=c,u=a,c=s,a=n,s=i,n=h(K,H,Y,V),i=l(K,H,Y,V)}f(this.h,0,n,i),f(this.h,2,a,s),f(this.h,4,u,c),f(this.h,6,d,p),f(this.h,8,m,y),f(this.h,10,g,O),f(this.h,12,j,R),f(this.h,14,I,P)},g.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,r){"use strict";var n=r(34),i=r(39),o=r(40),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletAdapterNetwork=e.BaseWalletAdapter=e.EventEmitter=void 0;var s=a(r(74));e.EventEmitter=s.default;var u=function(t){i(r,t);var e=o(r);function r(){return n(this,r),e.apply(this,arguments)}return r}(s.default);e.BaseWalletAdapter=u,function(t){t.Mainnet="mainnet-beta",t.Testnet="testnet",t.Devnet="devnet"}(e.WalletAdapterNetwork||(e.WalletAdapterNetwork={}))},function(t,e,r){"use strict";var n=r(34),i=r(39),o=r(40),a=r(182);Object.defineProperty(e,"__esModule",{value:!0}),e.WalletWindowClosedError=e.WalletWindowBlockedError=e.WalletSignTransactionError=e.WalletSignMessageError=e.WalletSendTransactionError=e.WalletNotConnectedError=e.WalletKeypairError=e.WalletPublicKeyError=e.WalletAccountError=e.WalletDisconnectionError=e.WalletDisconnectedError=e.WalletConnectionError=e.WalletNotReadyError=e.WalletNotInstalledError=e.WalletNotFoundError=e.WalletError=void 0;var s=function(t){i(r,t);var e=o(r);function r(t,i){var o;return n(this,r),(o=e.call(this,t)).error=i,o}return r}(a(Error));e.WalletError=s;var u=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletNotFoundError",t}return r}(s);e.WalletNotFoundError=u;var c=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletNotInstalledError",t}return r}(s);e.WalletNotInstalledError=c;var f=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletNotReadyError",t}return r}(s);e.WalletNotReadyError=f;var h=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletConnectionError",t}return r}(s);e.WalletConnectionError=h;var l=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletDisconnectedError",t}return r}(s);e.WalletDisconnectedError=l;var d=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletDisconnectionError",t}return r}(s);e.WalletDisconnectionError=d;var p=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletAccountError",t}return r}(s);e.WalletAccountError=p;var b=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletPublicKeyError",t}return r}(s);e.WalletPublicKeyError=b;var v=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletKeypairError",t}return r}(s);e.WalletKeypairError=v;var m=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletNotConnectedError",t}return r}(s);e.WalletNotConnectedError=m;var y=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletSendTransactionError",t}return r}(s);e.WalletSendTransactionError=y;var g=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletSignMessageError",t}return r}(s);e.WalletSignMessageError=g;var w=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletSignTransactionError",t}return r}(s);e.WalletSignTransactionError=w;var _=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletWindowBlockedError",t}return r}(s);e.WalletWindowBlockedError=_;var k=function(t){i(r,t);var e=o(r);function r(){var t;return n(this,r),(t=e.apply(this,arguments)).name="WalletWindowClosedError",t}return r}(s);e.WalletWindowClosedError=k},function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e,r){"use strict";(function(t){var n=r(57),i=r(70),o=r(39),a=r(40),s=r(34),u=r(36),c=function(){function t(e,r){if(s(this,t),!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=r}return u(t,[{key:"makeDestinationObject",value:function(){return{}}},{key:"decode",value:function(t,e){throw new Error("Layout is abstract")}},{key:"encode",value:function(t,e,r){throw new Error("Layout is abstract")}},{key:"getSpan",value:function(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}},{key:"fromArray",value:function(t){}}
2]),t}();function f(t,e){return e.property?t+"["+e.property+"]":t}e.Layout=c,e.nameWithProperty=f,e.bindConstructorLayout=function(t,e){if("function"!==typeof t)throw new TypeError("Class must be constructor");if(t.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof c))throw new TypeError("layout must be a Layout");if(e.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,r){return e.encode(this,t,r)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,r){return e.decode(t,r)},writable:!0})};var h=function(t){o(r,t);var e=a(r);function r(){return s(this,r),e.apply(this,arguments)}return u(r,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),r}(c),l=function(t){o(r,t);var e=a(r);function r(t,n){var i;if(s(this,r),void 0===t&&(t=1),!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");return(i=e.call(this,-1,n)).elementSpan=t,i}return u(r,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=t.length-e;return Math.floor(r/this.elementSpan)}},{key:"encode",value:function(t,e,r){return 0}}]),r}(h),d=function(t){o(r,t);var e=a(r);function r(t,n,i){var o;if(s(this,r),!(t instanceof c))throw new TypeError("layout must be a Layout");if(void 0===n)n=0;else if(!Number.isInteger(n))throw new TypeError("offset must be integer or undefined");return(o=e.call(this,t.span,i||t.property)).layout=t,o.offset=n,o}return u(r,[{key:"isCount",value:function(){return this.layout instanceof p||this.layout instanceof b}},{key:"decode",value:function(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),this.layout.encode(t,e,r+this.offset)}}]),r}(h),p=function(t){o(r,t);var e=a(r);function r(t,n){var i;if(s(this,r),6<(i=e.call(this,t,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readUIntLE(e,this.span)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeUIntLE(t,r,this.span),this.span}}]),r}(c),b=function(t){o(r,t);var e=a(r);function r(t,n){var i;if(s(this,r),6<(i=e.call(this,t,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readUIntBE(e,this.span)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeUIntBE(t,r,this.span),this.span}}]),r}(c),v=function(t){o(r,t);var e=a(r);function r(t,n){var i;if(s(this,r),6<(i=e.call(this,t,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readIntLE(e,this.span)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeIntLE(t,r,this.span),this.span}}]),r}(c),m=function(t){o(r,t);var e=a(r);function r(t,n){var i;if(s(this,r),6<(i=e.call(this,t,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readIntBE(e,this.span)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeIntBE(t,r,this.span),this.span}}]),r}(c),y=Math.pow(2,32);function g(t){var e=Math.floor(t/y);return{hi32:e,lo32:t-e*y}}function w(t,e){return t*y+e}var _=function(t){o(r,t);var e=a(r);function r(t){return s(this,r),e.call(this,8,t)}return u(r,[{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=t.readUInt32LE(e);return w(t.readUInt32LE(e+4),r)}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=g(t);return e.writeUInt32LE(n.lo32,r),e.writeUInt32LE(n.hi32,r+4),8}}]),r}(c),k=function(t){o(r,t);var e=a(r);function r(t){return s(this,r),e.call(this,8,t)}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),w(t.readUInt32BE(e),t.readUInt32BE(e+4))}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=g(t);return e.writeUInt32BE(n.hi32,r),e.writeUInt32BE(n.lo32,r+4),8}}]),r}(c),M=function(t){o(r,t);var e=a(r);function r(t){return s(this,r),e.call(this,8,t)}return u(r,[{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=t.readUInt32LE(e);return w(t.readInt32LE(e+4),r)}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=g(t);return e.writeUInt32LE(n.lo32,r),e.writeInt32LE(n.hi32,r+4),8}}]),r}(c),S=function(t){o(r,t);var e=a(r);function r(t){return s(this,r),e.call(this,8,t)}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),w(t.readInt32BE(e),t.readUInt32BE(e+4))}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=g(t);return e.writeInt32BE(n.hi32,r),e.writeUInt32BE(n.lo32,r+4),8}}]),r}(c),E=function(t){o(r,t);var e=a(r);function r(t){return s(this,r),e.call(this,4,t)}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readFloatLE(e)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeFloatLE(t,r),4}}]),r}(c),x=function(t){o(r,t);var e=a(r);function r(t){return s(this,r),e.call(this,4,t)}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readFloatBE(e)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeFloatBE(t,r),4}}]),r}(c),A=function(t){o(r,t);var e=a(r);function r(t){return s(this,r),e.call(this,8,t)}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readDoubleLE(e)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeDoubleLE(t,r),8}}]),r}(c),O=function(t){o(r,t);var e=a(r);function r(t){return s(this,r),e.call(this,8,t)}return u(r,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readDoubleBE(e)}},{key:"encode",value:function(t,e,r){return void 0===r&&(r=0),e.writeDoubleBE(t,r),8}}]),r}(c),j=function(t){o(r,t);var e=a(r);function r(t,n,i){var o;if(s(this,r),!(t instanceof c))throw new TypeError("elementLayout must be a Layout");if(!(n instanceof h&&n.isCount()||Number.isInteger(n)&&0<=n))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(n instanceof h)&&0<t.span&&(a=n*t.span),(o=e.call(this,a,i)).elementLayout=t,o.count=n,o}return u(r,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0,n=this.count;if(n instanceof h&&(n=n.decode(t,e)),0<this.elementLayout.span)r=n*this.elementLayout.span;else for(var i=0;i<n;)r+=this.elementLayout.getSpan(t,e+r),++i;return r}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=[],n=0,i=this.count;for(i instanceof h&&(i=i.decode(t,e));n<i;)r.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),n+=1;return r}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=this.elementLayout,i=t.reduce((function(t,i){return t+n.encode(i,e,r+t)}),0);return this.count instanceof h&&this.count.encode(t.length,e,r),i}}]),r}(c),R=function(t){o(r,t);var e=a(r);function r(t,n,o){var a;if(s(this,r),!Array.isArray(t)||!t.reduce((function(t,e){return t&&e instanceof c}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof n&&void 0===o&&(o=n,n=void 0);var u,f=i(t);try{for(f.s();!(u=f.n()).done;){var h=u.value;if(0>h.span&&void 0===h.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(d){f.e(d)}finally{f.f()}var l=-1;try{l=t.reduce((function(t,e){return t+e.getSpan()}),0)}catch(p){}return(a=e.call(this,l,n)).fields=t,a.decodePrefixes=!!o,a}return u(r,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;try{r=this.fields.reduce((function(r,n){var i=n.getSpan(t,e);return e+=i,r+i}),0)}catch(n){throw new RangeError("indeterminate span")}return r}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var r,n=this.makeDestinationObject(),o=i(this.fields);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(void 0!==a.property&&(n[a.property]=a.decode(t,e)),e+=a.getSpan(t,e),this.decodePrefixes&&t.length===e)break}}catch(s){o.e(s)}finally{o.f()}return n}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n,o=r,a=0,s=0,u=i(this.fields);try{for(u.s();!(n=u.n()).done;){var c=n.value,f=c.span;if(s=0<f?f:0,void 0!==c.property){var h=t[c.property];void 0!==h&&(s=c.encode(h,e,r),0>f&&(f=c.getSpan(e,r)))}a=r,r+=f}}catch(l){u.e(l)}finally{u.f()}return a+s-o}},{key:"fromArray",value:function(t){var e,r=this.makeDestinationObject(),n=i(this.fields);try{for(n.s();!(e=n.n()).done;){var o=e.value;void 0!==o.property&&0<t.length&&(r[o.property]=t.shift())}}catch(a){n.e(a)}finally{n.f()}return r}},{key:"layoutFor",value:function(t){if("string"!==typeof t)throw new TypeError("property must be string");var e,r=i(this.fields);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(n.property===t)return n}}catch(o){r.e(o)}finally{r.f()}}},{key:"offsetOf",value:function(t){if("string"!==typeof t)throw new TypeError("property must be string");var e,r=0,n=i(this.fields);try{for(n.s();!(e=n.n()).done;){var o=e.value;if(o.property===t)return r;0>o.span?r=-1:0<=r&&(r+=o.span)}}catch(a){n.e(a)}finally{n.f()}}}]),r}(c),I=function(){function t(e){s(this,t),this.property=e}return u(t,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),t}(),P=function(t){o(r,t);var e=a(r);function r(t,n){var i;if(s(this,r),!(t instanceof h&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=e.call(this,n||t.property||"variant")).layout=t,i}return u(r,[{key:"decode",value:function(t,e){return this.layout.decode(t,e)}},{key:"encode",value:function(t,e,r){return this.layout.encode(t,e,r)}}]),r}(I),T=function(e){o(i,e);var r=a(i);function i(t,e,o){var a;s(this,i);var u=t instanceof p||t instanceof b;if(u)t=new P(new d(t));else if(t instanceof h&&t.isCount())t=new P(t);else if(!(t instanceof I))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===e&&(e=null),!(null===e||e instanceof c))throw new TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw new Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}var f=-1;e&&0<=(f=e.span)&&u&&(f+=t.layout.span),(a=r.call(this,f,o)).discriminator=t,a.usesPrefixDiscriminator=u,a.defaultLayout=e,a.registry={};var l=a.defaultGetSourceVariant.bind(n(a));return a.getSourceVariant=function(t){return l(t)},a.configGetSourceVariant=function(t){l=t.bind(this)},a}return u(i,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=this.getVariant(t,e);if(!r)throw new Error("unable to determine span for unrecognized variant");return r.getSpan(t,e)}},{key:"defaultGetSourceVariant",value:function(t){if(t.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&t.hasOwnProperty(this.defaultLayout.property))return;var e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||t.hasOwnProperty(e.property)))return e}else for(var r in this.registry){var n=this.registry[r];if(t.hasOwnProperty(n.property))return n}throw new Error("unable to infer src variant")}},{key:"decode",value:function(t,e){var r;void 0===e&&(e=0);var n=this.discriminator,i=n.decode(t,e),o=this.registry[i];if(void 0===o){var a=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(a=n.layout.span),(r=this.makeDestinationObject())[n.property]=i,r[o.property]=this.defaultLayout.decode(t,e+a)}else r=o.decode(t,e);return r}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=this.getSourceVariant(t);if(void 0===n){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(t[i.property],e,r),a+o.encode(t[o.property],e,r+a)}return n.encode(t,e,r)}},{key:"addVariant",value:function(t,e,r){var n=new C(this,t,e,r);return this.registry[t]=n,n}},{key:"getVariant",value:function(e,r){var n=e;return t.isBuffer(e)&&(void 0===r&&(r=0),n=this.discriminator.decode(e,r)),this.registry[n]}}]),i}(c),C=function(t){o(r,t);var e=a(r);function r(t,n,i,o){var a;if(s(this,r),!(t instanceof T))throw new TypeError("union must be a Union");if(!Number.isInteger(n)||0>n)throw new TypeError("variant must be a (non-negative) integer");if("string"===typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof c))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=i.span&&i.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof o)throw new TypeError("variant must have a String property")}var u=t.span;return 0>t.span&&0<=(u=i?i.span:0)&&t.usesPrefixDiscriminator&&(u+=t.discriminator.layout.span),(a=e.call(this,u,o)).union=t,a.variant=n,a.layout=i||null,a}return u(r,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),r+this.layout.getSpan(t,e+r)}},{key:"decode",value:function(t,e){var r=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(t,e+n):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=0;if(this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout&&!t.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,r);var i=n;
2if(this.layout&&(this.layout.encode(t[this.property],e,r+n),i+=this.layout.getSpan(e,r+n),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(t){if(this.layout)return this.layout.fromArray(t)}}]),r}(c);function B(t){return 0>t&&(t+=4294967296),t}var L=function(t){o(r,t);var e=a(r);function r(t,n,i){var o;if(s(this,r),!(t instanceof p||t instanceof b))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof n&&void 0===i&&(i=n,n=void 0),4<t.span)throw new RangeError("word cannot exceed 32 bits");(o=e.call(this,t.span,i)).word=t,o.msb=!!n,o.fields=[];var a=0;return o._packedSetValue=function(t){return a=B(t),this},o._packedGetValue=function(){return a},o}return u(r,[{key:"decode",value:function(t,e){var r=this.makeDestinationObject();void 0===e&&(e=0);var n=this.word.decode(t,e);this._packedSetValue(n);var o,a=i(this.fields);try{for(a.s();!(o=a.n()).done;){var s=o.value;void 0!==s.property&&(r[s.property]=s.decode(n))}}catch(u){a.e(u)}finally{a.f()}return r}},{key:"encode",value:function(t,e,r){void 0===r&&(r=0);var n=this.word.decode(e,r);this._packedSetValue(n);var o,a=i(this.fields);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(void 0!==s.property){var u=t[s.property];void 0!==u&&s.encode(u)}}}catch(c){a.e(c)}finally{a.f()}return this.word.encode(this._packedGetValue(),e,r)}},{key:"addField",value:function(t,e){var r=new N(this,t,e);return this.fields.push(r),r}},{key:"addBoolean",value:function(t){var e=new D(this,t);return this.fields.push(e),e}},{key:"fieldFor",value:function(t){if("string"!==typeof t)throw new TypeError("property must be string");var e,r=i(this.fields);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(n.property===t)return n}}catch(o){r.e(o)}finally{r.f()}}}]),r}(c),N=function(){function t(e,r,n){if(s(this,t),!(e instanceof L))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(r)||0>=r)throw new TypeError("bits must be positive integer");var i=8*e.span,o=e.fields.reduce((function(t,e){return t+e.bits}),0);if(r+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=e,this.bits=r,this.valueMask=(1<<r)-1,32===r&&(this.valueMask=4294967295),this.start=o,this.container.msb&&(this.start=i-o-r),this.wordMask=B(this.valueMask<<this.start),this.property=n}return u(t,[{key:"decode",value:function(){return B(this.container._packedGetValue()&this.wordMask)>>>this.start}},{key:"encode",value:function(t){if(!Number.isInteger(t)||t!==B(t&this.valueMask))throw new TypeError(f("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),r=B(t<<this.start);this.container._packedSetValue(B(e&~this.wordMask)|r)}}]),t}(),D=function(t){o(r,t);var e=a(r);function r(t,n){return s(this,r),e.call(this,t,1,n)}return u(r,[{key:"decode",value:function(t,e){return!!N.prototype.decode.call(this,t,e)}},{key:"encode",value:function(t){return"boolean"===typeof t&&(t=+t),N.prototype.encode.call(this,t)}}]),r}(N),U=function(e){o(n,e);var r=a(n);function n(t,e){var i;if(s(this,n),!(t instanceof h&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var o=-1;return t instanceof h||(o=t),(i=r.call(this,o,e)).length=t,i}return u(n,[{key:"getSpan",value:function(t,e){var r=this.span;return 0>r&&(r=this.length.decode(t,e)),r}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var r=this.span;return 0>r&&(r=this.length.decode(t,e)),t.slice(e,e+r)}},{key:"encode",value:function(e,r,n){var i=this.length;if(this.length instanceof h&&(i=e.length),!t.isBuffer(e)||i!==e.length)throw new TypeError(f("Blob.encode",this)+" requires (length "+i+") Buffer as src");if(n+i>r.length)throw new RangeError("encoding overruns Buffer");return r.write(e.toString("hex"),n,i,"hex"),this.length instanceof h&&this.length.encode(i,r,n),i}}]),n}(c),z=function(e){o(n,e);var r=a(n);function n(t){return s(this,n),r.call(this,-1,t)}return u(n,[{key:"getSpan",value:function(e,r){if(!t.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===r&&(r=0);for(var n=r;n<e.length&&0!==e[n];)n+=1;return 1+n-r}},{key:"decode",value:function(t,e,r){void 0===e&&(e=0);var n=this.getSpan(t,e);return t.slice(e,e+n-1).toString("utf-8")}},{key:"encode",value:function(e,r,n){void 0===n&&(n=0),"string"!==typeof e&&(e=e.toString());var i=new t(e,"utf8"),o=i.length;if(n+o>r.length)throw new RangeError("encoding overruns Buffer");return i.copy(r,n),r[n+o]=0,o+1}}]),n}(c),W=function(e){o(n,e);var r=a(n);function n(t,e){var i;if(s(this,n),"string"===typeof t&&void 0===e&&(e=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");return(i=r.call(this,-1,e)).maxSpan=t,i}return u(n,[{key:"getSpan",value:function(e,r){if(!t.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===r&&(r=0),e.length-r}},{key:"decode",value:function(t,e,r){void 0===e&&(e=0);var n=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<n)throw new RangeError("text length exceeds maxSpan");return t.slice(e,e+n).toString("utf-8")}},{key:"encode",value:function(e,r,n){void 0===n&&(n=0),"string"!==typeof e&&(e=e.toString());var i=new t(e,"utf8"),o=i.length;if(0<=this.maxSpan&&this.maxSpan<o)throw new RangeError("text length exceeds maxSpan");if(n+o>r.length)throw new RangeError("encoding overruns Buffer");return i.copy(r,n),o}}]),n}(c),q=function(t){o(r,t);var e=a(r);function r(t,n){var i;return s(this,r),(i=e.call(this,0,n)).value=t,i}return u(r,[{key:"decode",value:function(t,e,r){return this.value}},{key:"encode",value:function(t,e,r){return 0}}]),r}(c);e.ExternalLayout=h,e.GreedyCount=l,e.OffsetLayout=d,e.UInt=p,e.UIntBE=b,e.Int=v,e.IntBE=m,e.Float=E,e.FloatBE=x,e.Double=A,e.DoubleBE=O,e.Sequence=j,e.Structure=R,e.UnionDiscriminator=I,e.UnionLayoutDiscriminator=P,e.Union=T,e.VariantLayout=C,e.BitStructure=L,e.BitField=N,e.Boolean=D,e.Blob=U,e.CString=z,e.UTF8=W,e.Constant=q,e.greedy=function(t,e){return new l(t,e)},e.offset=function(t,e,r){return new d(t,e,r)},e.u8=function(t){return new p(1,t)},e.u16=function(t){return new p(2,t)},e.u24=function(t){return new p(3,t)},e.u32=function(t){return new p(4,t)},e.u40=function(t){return new p(5,t)},e.u48=function(t){return new p(6,t)},e.nu64=function(t){return new _(t)},e.u16be=function(t){return new b(2,t)},e.u24be=function(t){return new b(3,t)},e.u32be=function(t){return new b(4,t)},e.u40be=function(t){return new b(5,t)},e.u48be=function(t){return new b(6,t)},e.nu64be=function(t){return new k(t)},e.s8=function(t){return new v(1,t)},e.s16=function(t){return new v(2,t)},e.s24=function(t){return new v(3,t)},e.s32=function(t){return new v(4,t)},e.s40=function(t){return new v(5,t)},e.s48=function(t){return new v(6,t)},e.ns64=function(t){return new M(t)},e.s16be=function(t){return new m(2,t)},e.s24be=function(t){return new m(3,t)},e.s32be=function(t){return new m(4,t)},e.s40be=function(t){return new m(5,t)},e.s48be=function(t){return new m(6,t)},e.ns64be=function(t){return new S(t)},e.f32=function(t){return new E(t)},e.f32be=function(t){return new x(t)},e.f64=function(t){return new A(t)},e.f64be=function(t){return new O(t)},e.struct=function(t,e,r){return new R(t,e,r)},e.bits=function(t,e,r){return new L(t,e,r)},e.seq=function(t,e,r){return new j(t,e,r)},e.union=function(t,e,r){return new T(t,e,r)},e.unionLayoutDiscriminator=function(t,e){return new P(t,e)},e.blob=function(t,e){return new U(t,e)},e.cstr=function(t){return new z(t)},e.utf8=function(t,e){return new W(t,e)},e.const=function(t,e){return new q(t,e)}}).call(this,r(7).Buffer)},function(t,e,r){"use strict";(function(t){}).call(this,r(7).Buffer)},function(t,e,r){"use strict";(function(t){r(87)}).call(this,r(7).Buffer)},function(t,e,r){"use strict";(function(t){r(18),r(1),r(4),r(92),r(16),r(38),r(91)}).call(this,r(7).Buffer)},function(t,e,r){var n=r(58);t.exports=function(t,e,r){return 0!==n(t,e,r)}},function(t,e,r){var n=r(190),i=r(248),o=r(147),a=r(193),s=r(192),u=r(194);t.exports=function(t,e,r,c){switch(e){case"===":return"object"===typeof t&&(t=t.version),"object"===typeof r&&(r=r.version),t===r;case"!==":return"object"===typeof t&&(t=t.version),"object"===typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,c);case"!=":return i(t,r,c);case">":return o(t,r,c);case">=":return a(t,r,c);case"<":return s(t,r,c);case"<=":return u(t,r,c);default:throw new TypeError("Invalid operator: ".concat(e))}}},function(t,e,r){"use strict";(function(t){var n=r(1),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};
2Object.defineProperty(e,"__esModule",{value:!0}),e.signTransaction=e.getPublicKey=e.getDerivationPath=void 0;var o=r(215),a=r(16);e.getDerivationPath=function(e,r){var n=void 0!==e?void 0===r?3:4:2,i=t.alloc(1+4*n),o=i.writeUInt8(n,0);return o=i.writeUInt32BE(s(44),o),o=i.writeUInt32BE(s(501),o),void 0!==e&&(o=i.writeUInt32BE(s(e),o),void 0!==r&&i.writeUInt32BE(s(r),o)),i};function s(t){return(2147483648|t)>>>0}var u=255;function c(t,e,r,a){return i(this,void 0,void 0,n.mark((function i(){var s,c,f,h,l;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=0,c=0,!(a.length>u)){n.next=14;break}case 3:if(!(a.length-c>u)){n.next=14;break}return f=a.slice(c,c+u),n.next=7,t.send(224,e,r,2|s,f);case 7:if(2===n.sent.length){n.next=10;break}throw new o.TransportStatusError(o.StatusCodes.INCORRECT_DATA);case 10:s|=1,c+=u,n.next=3;break;case 14:return h=a.slice(c),n.next=17,t.send(224,e,r,s,h);case 17:return l=n.sent,n.abrupt("return",l.slice(0,l.length-2));case 19:case"end":return n.stop()}}),i)})))}e.getPublicKey=function(t,e){return i(this,void 0,void 0,n.mark((function r(){var i;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,c(t,5,0,e);case 2:return i=r.sent,r.abrupt("return",new a.PublicKey(i));case 4:case"end":return r.stop()}}),r)})))},e.signTransaction=function(e,r,o){return i(this,void 0,void 0,n.mark((function i(){var a,s,u;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(a=t.alloc(1)).writeUInt8(1,0),s=r.serializeMessage(),u=t.concat([a,o,s]),n.next=6,c(e,6,1,u);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),i)})))}}).call(this,r(7).Buffer)},function(t,e,r){(function(e){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=20)}([function(t,e){t.exports=r(79)},function(t,e){t.exports=r(89)},function(t,e){t.exports=r(93)},function(t,e){t.exports=r(118)},function(t,e){t.exports=r(139)},function(t,e){t.exports=r(453)},function(t,e){t.exports=r(94)},function(t,e){t.exports=r(95)},function(t,e){t.exports=r(252)},function(t,e){t.exports=r(5)},function(t,e,r){"use strict";var n=r(13),i=r(16);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=g,e.resolve=function(t,e){return g(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?g(t,!1,!0).resolveObject(e):e},e.format=function(t){i.isString(t)&&(t=g(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(c),h=["%","/","?",";","#"].concat(f),l=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(17);function g(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o<t.indexOf("#")?"?":"#",c=t.split(s);c[0]=c[0].replace(/\\/g,"/");var g=t=c.join(s);if(g=g.trim(),!r&&1===t.split("#").length){var w=u.exec(g);if(w)return this.path=g,this.href=g,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?y.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var _=a.exec(g);if(_){var k=(_=_[0]).toLowerCase();this.protocol=k,g=g.substr(_.length)}if(r||_||g.match(/^\/\/[^@\/]+@[^@\/]+/)){var M="//"===g.substr(0,2);!M||_&&v[_]||(g=g.substr(2),this.slashes=!0)}if(!v[_]&&(M||_&&!m[_])){for(var S,E,x=-1,A=0;A<l.length;
vendor: 5,056 bytes, line 2
2A++){-1!==(O=g.indexOf(l[A]))&&(-1===x||O<x)&&(x=O)}-1!==(E=-1===x?g.lastIndexOf("@"):g.lastIndexOf("@",x))&&(S=g.slice(0,E),g=g.slice(E+1),this.auth=decodeURIComponent(S)),x=-1;for(A=0;A<h.length;A++){var O;-1!==(O=g.indexOf(h[A]))&&(-1===x||O<x)&&(x=O)}-1===x&&(x=g.length),this.host=g.slice(0,x),g=g.slice(x),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var R=this.hostname.split(/\./),I=(A=0,R.length);A<I;A++){var P=R[A];if(P&&!P.match(d)){for(var T="",C=0,B=P.length;C<B;C++)P.charCodeAt(C)>127?T+="x":T+=P[C];if(!T.match(d)){var L=R.slice(0,A),N=R.slice(A+1),D=P.match(p);D&&(L.push(D[1]),N.unshift(D[2])),N.length&&(g="/"+N.join(".")+g),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+U,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!b[k])for(A=0,I=f.length;A<I;A++){var W=f[A];if(-1!==g.indexOf(W)){var q=encodeURIComponent(W);q===W&&(q=escape(W)),g=g.split(W).join(q)}}var F=g.indexOf("#");-1!==F&&(this.hash=g.substr(F),g=g.slice(0,F));var K=g.indexOf("?");if(-1!==K?(this.search=g.substr(K),this.query=g.substr(K+1),e&&(this.query=y.parse(this.query)),g=g.slice(0,K)):e&&(this.search="",this.query={}),g&&(this.pathname=g),m[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var H=this.search||"";this.path=U+H}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||m[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),e+o+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(t){return this.resolveObject(g(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var f=u[c];"protocol"!==f&&(r[f]=t[f])}return m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!m[t.protocol]){for(var h=Object.keys(t),l=0;l<h.length;l++){var d=h[l];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||v[t.protocol])r.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var b=r.pathname||"",y=r.search||"";r.path=b+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),_=w||g||r.host&&t.pathname,k=_,M=r.pathname&&r.pathname.split("/")||[],S=(p=t.pathname&&t.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===M[0]?M[0]=r.host:M.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),_=_&&(""===p[0]||""===M[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,M=p;else if(p.length)M||(M=[]),M.pop(),M=M.concat(p),r.search=t.search,r.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(S)r.hostname=r.host=M.shift(),(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift());return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!M.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=M.slice(-1)[0],x=(r.host||t.host||M.length>1)&&("."===E||".."===E)||""===E,A=0,O=M.length;O>=0;O--)"."===(E=M[O])?M.splice(O,1):".."===E?(M.splice(O,1),A++):A&&(M.splice(O,1),A--);if(!_&&!k)for(;A--;A)M.unshift("..");!_||""===M[0]||M[0]&&"/"===M[0].charAt(0)||M.unshift(""),x&&"/"!==M.join("/").substr(-1)&&M.push("");var j,R=""===M[0]||M[0]&&"/"===M[0].charAt(0);
vendor: 4,960 bytes, line 2
2S&&(r.hostname=r.host=R?"":M.length?M.shift():"",(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift()));return(_=_||r.host&&M.length)&&!R&&M.unshift(""),M.length?r.pathname=M.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e){t.exports=r(458)},function(t,e){t.exports=r(461)},function(t,e,r){(function(t,n){var i;!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,c=36,f=/^xn--/,h=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,b=String.fromCharCode;function v(t){throw new RangeError(d[t])}function m(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function y(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+m((t=t.replace(l,".")).split("."),e).join(".")}function g(t){for(var e,r,n=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function w(t){return m(t,(function(t){var e="";return t>65535&&(e+=b((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=b(t)})).join("")}function _(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function k(t,e,r){var n=0;for(t=r?p(t/700):t>>1,t+=p(t/e);t>455;n+=c)t=p(t/35);return p(n+36*t/(t+38))}function M(t){var e,r,n,i,o,a,s,f,h,l,d,b=[],m=t.length,y=0,g=128,_=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&v("not-basic"),b.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<m;){for(o=y,a=1,s=c;i>=m&&v("invalid-input"),((f=(d=t.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:c)>=c||f>p((u-y)/a))&&v("overflow"),y+=f*a,!(f<(h=s<=_?1:s>=_+26?26:s-_));s+=c)a>p(u/(l=c-h))&&v("overflow"),a*=l;_=k(y-o,e=b.length+1,0==o),p(y/e)>u-g&&v("overflow"),g+=p(y/e),y%=e,b.splice(y++,0,g)}return w(b)}function S(t){var e,r,n,i,o,a,s,f,h,l,d,m,y,w,M,S=[];for(m=(t=g(t)).length,e=128,r=0,o=72,a=0;a<m;++a)(d=t[a])<128&&S.push(b(d));for(n=i=S.length,i&&S.push("-");n<m;){for(s=u,a=0;a<m;++a)(d=t[a])>=e&&d<s&&(s=d);for(s-e>p((u-r)/(y=n+1))&&v("overflow"),r+=(s-e)*y,e=s,a=0;a<m;++a)if((d=t[a])<e&&++r>u&&v("overflow"),d==e){for(f=r,h=c;!(f<(l=h<=o?1:h>=o+26?26:h-o));h+=c)M=f-l,w=c-l,S.push(b(_(l+M%w,0))),f=p(M/w);S.push(b(_(f,0))),o=k(r,y,n==i),r=0,++n}++r,++e}return S.join("")}s={version:"1.4.1",ucs2:{decode:g,encode:w},decode:M,encode:S,toASCII:function(t){return y(t,(function(t){return h.test(t)?"xn--"+S(t):t}))},toUnicode:function(t){return y(t,(function(t){return f.test(t)?M(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return s}.call(e,r,e,t))||(t.exports=i)}()}).call(this,r(14)(t),r(15))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,r){"use strict";e.decode=e.parse=r(18),e.encode=e.stringify=r(19)},function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var a={};if("string"!==typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var u=1e3;o&&"number"===typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var f=0;f<c;++f){var h,l,d,p,b=t[f].replace(s,"%20"),v=b.indexOf(r);v>=0?(h=b.substr(0,v),l=b.substr(v+1)):(h=b,l=""),d=decodeURIComponent(h),p=decodeURIComponent(l),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,s){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===typeof t?o(a(t),(function(a){var s=encodeURIComponent(n(a))+r;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(n(t))})).join(e):s+encodeURIComponent(n(t[a]))}
2)).join(e):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var a=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},function(t,r,n){"use strict";n.r(r),n.d(r,"randomId",(function(){return a})),n.d(r,"URLWithHashParams",(function(){return A})),n.d(r,"base64url",(function(){return P})),n.d(r,"safebtoa",(function(){return T})),n.d(r,"safeatob",(function(){return C})),n.d(r,"keccak",(function(){return B})),n.d(r,"base64toJSON",(function(){return L})),n.d(r,"jsonToBase64",(function(){return N})),n.d(r,"keccak256",(function(){return D}));var i=n(1),o=n.n(i),a=function(){return o()(32).toString("hex")},s=n(2),u=n.n(s),c=n(3),f=n.n(c),h=n(4),l=n.n(h),d=n(5),p=n.n(d),b=n(6),v=n.n(b),m=n(7),y=n.n(m),g=n(0),w=n.n(g),_=n(8),k=n.n(_),M=n(9),S=n.n(M),E=n(10);function x(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=w()(t);if(e){var i=w()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y()(this,r)}}var A=function(t){v()(r,t);var e=x(r);function r(){var t;u()(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),S()(l()(t),"hashParams",new E.URLSearchParams),t}return f()(r,[{key:"toString",value:function(){return this.hash=this.hashParams.toString(),p()(w()(r.prototype),"toString",this).call(this)}}]),r}(k()(URL)),O=n(11),j=n.n(O),R=n(12),I=n.n(R),P=j.a;function T(t){return P.encode(t)}function C(t){return P.decode(t)}var B=I.a;function L(t){return JSON.parse(P.decode(t))}function N(t){return P.encode(JSON.stringify(t))}function D(t){var r=t;return"string"===typeof t&&"0x"===t.slice(0,2)&&66===t.length&&(r=e.from(t.slice(2),"hex")),"0x".concat(B("keccak256").update(r).digest("hex").padStart(64,"0"))}}])}).call(this,r(7).Buffer)},function(t,e,r){var n=r(79),i=r(183),o=r(455),a=r(456);function s(e){var r="function"===typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0,s(e)}t.exports=s,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){(e=t.exports=r(254)).Stream=e,e.Readable=e,e.Writable=r(258),e.Duplex=r(101),e.Transform=r(259),e.PassThrough=r(469),e.finished=r(196),e.pipeline=r(470)},function(t,e,r){"use strict";(function(e,n){var i;t.exports=E,E.ReadableState=S;r(60).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=r(255),s=r(7).Buffer,u=e.Uint8Array||function(){};var c,f=r(464);c=f&&f.debuglog?f.debuglog("stream"):function(){};var h,l,d,p=r(465),b=r(256),v=r(257).getHighWaterMark,m=r(100).codes,y=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(19)(E,a);var k=b.errorOrDestroy,M=["error","close","destroy","pause","resume"];function S(t,e,n){i=i||r(101),t=t||{},"boolean"!==typeof n&&(n=e instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",n),this.buffer=new p,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&&(h||(h=r(73).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function E(t){if(i=i||r(101),!(this instanceof E))return new E(t);var e=this instanceof i;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function x(t,e,r,n,i){c("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(c("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?R(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}(t,a);else if(i||(o=function(t,e){var r;n=e,s.isBuffer(n)||n instanceof u||"string"===typeof e||void 0===e||t.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),o)k(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?k(t,new _):A(t,a,e,!0);else if(a.ended)k(t,new g);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?A(t,a,e,!1):P(t,a)):A(t,a,e,!1)}else n||(a.reading=!1,P(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function A(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&R(t)),P(t,e)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=b.destroy,E.prototype._undestroy=b.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},E.prototype.unshift=function(t){return x(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){h||(h=r(73).StringDecoder);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 4,231 bytes, line 2
2for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function j(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>=O?t=O:(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 R(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(I,t))}function I(t){var e=t._readableState;c("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,N(t)}function P(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(c("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function C(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 B(t){c("readable nexttick read 0"),t.read(0)}function L(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function U(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(z,e,t))}function z(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function W(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?U(this):R(this),null;if(0===(t=j(t,e))&&e.ended)return 0===e.length&&U(this),null;var n,i=e.needReadable;return c("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&c("length less than watermark",i=!0),e.ended||e.reading?c("reading or ended",i=!1):i&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=j(r,e))),null===(n=t>0?D(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),r!==t&&e.ended&&U(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){k(this,new w("_read()"))},E.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?u:v;function s(e,n){c("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),t.removeListener("close",p),t.removeListener("finish",b),t.removeListener("drain",f),t.removeListener("error",d),t.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",v),r.removeListener("data",l),h=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function u(){c("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",s);var f=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(r);t.on("drain",f);var h=!1;function l(e){c("ondata");
vendor: 10,622 bytes, line 2
2var n=t.write(e);c("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==W(i.pipes,t))&&!h&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(e){c("onerror",e),v(),t.removeListener("error",d),0===o(t,"error")&&k(t,e)}function p(){t.removeListener("finish",b),v()}function b(){c("onfinish"),t.removeListener("close",p),v()}function v(){c("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",p),t.once("finish",b),t.emit("pipe",r),i.flowing||(c("pipe resume"),r.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=W(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},E.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?R(this):i.reading||n.nextTick(B,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(C,this),r},E.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(C,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(L,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(e.push(i)||(n=!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<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=r(467)),l(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(E.from=function(t,e){return void 0===d&&(d=r(468)),d(E,t,e)})}).call(this,r(31),r(27))},function(t,e,r){t.exports=r(60).EventEmitter},function(t,e,r){"use strict";(function(e){function r(t,e){i(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):o?(e.nextTick(n,a),o(t)):e.nextTick(n,a)})),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 r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,r(27))},function(t,e,r){"use strict";var n=r(100).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},function(t,e,r){"use strict";(function(e,n){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var o;t.exports=E,E.WritableState=S;var a={deprecate:r(150)},s=r(255),u=r(7).Buffer,c=e.Uint8Array||function(){};var f,h=r(256),l=r(257).getHighWaterMark,d=r(100).codes,p=d.ERR_INVALID_ARG_TYPE,b=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,g=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function M(){}function S(t,e,a){o=o||r(101),t=t||{},"boolean"!==typeof a&&(a=e instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=l(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,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 r=t._writableState,i=r.sync,o=r.writecb;if("function"!==typeof o)throw new v;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,i,o){--e.pendingcb,r?(n.nextTick(o,i),n.nextTick(I,t,e),t._writableState.errorEmitted=!0,k(t,i)):(o(i),t._writableState.errorEmitted=!0,k(t,i),I(t,e))}(t,r,i,e,o);else{var a=j(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||O(t,r),i?n.nextTick(A,t,r,a,o):A(t,r,a,o)}}(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 i(this)}function E(t){var e=this instanceof(o=o||r(101));if(!e&&!f.call(E,this))return new E(t);this._writableState=new S(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)),s.call(this)}function x(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),I(t,e)}function O(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,x(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,h=r.callback;if(x(t,e,!1,e.objectMode?1:c.length,c,f,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function j(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function R(t,e){t._final((function(r){e.pendingcb--,r&&k(t,r),e.prefinished=!0,t.emit("prefinish"),I(t,e)}))}function I(t,e){var r=j(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(R,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}r(19)(E,s),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.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]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===E&&(t&&t._writableState instanceof S)}})):f=function(t){return t instanceof this},E.prototype.pipe=function(){k(this,new m)},E.prototype.write=function(t,e,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"===typeof e&&(r=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!==typeof r&&(r=
2M),o.ending?function(t,e){var r=new w;k(t,r),n.nextTick(e,r)}(this,r):(s||function(t,e,r,i){var o;return null===r?o=new g:"string"===typeof r||e.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(k(t,o),n.nextTick(i,o),!1)}(this,o,t,r))&&(o.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,s,n,i,o);return c}(this,o,s,t,e,r)),a},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},E.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 _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,r){r(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,r){var i=this._writableState;return"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,I(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this,r(31),r(27))},function(t,e,r){"use strict";t.exports=f;var n=r(100).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(101);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(t){if(!(this instanceof f))return new f(t);u.call(this,t),this._transformState={afterTransform:c.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",h)}function h(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush((function(e,r){l(t,e,r)}))}function l(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}r(19)(f,u),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new i("_transform()"))},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.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))},f.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,r){var n=r(475),i=r(476),o=r(261),a=r(477);t.exports=function(t,e){return n(t)||i(t,e)||o(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(262);t.exports=function(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){(function(e){var n=r(197),i=function(){};t.exports=function t(r,o,a){if("function"===typeof o)return t(r,null,o);o||(o={}),a=n(a||i);var s=r._writableState,u=r._readableState,c=o.readable||!1!==o.readable&&r.readable,f
vendor: 7,136 bytes, line 2
2=o.writable||!1!==o.writable&&r.writable,h=!1,l=function(){r.writable||d()},d=function(){f=!1,c||a.call(r)},p=function(){c=!1,f||a.call(r)},b=function(t){a.call(r,t?new Error("exited with error code: "+t):null)},v=function(t){a.call(r,t)},m=function(){e.nextTick(y)},y=function(){if(!h)return(!c||u&&u.ended&&!u.destroyed)&&(!f||s&&s.ended&&!s.destroyed)?void 0:a.call(r,new Error("premature close"))},g=function(){r.req.on("finish",d)};return!function(t){return t.setHeader&&"function"===typeof t.abort}(r)?f&&!s&&(r.on("end",l),r.on("close",l)):(r.on("complete",d),r.on("abort",m),r.req?g():r.on("request",g)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(r)&&r.on("exit",b),r.on("end",p),r.on("finish",d),!1!==o.error&&r.on("error",v),r.on("close",m),function(){h=!0,r.removeListener("complete",d),r.removeListener("abort",m),r.removeListener("request",g),r.req&&r.req.removeListener("finish",d),r.removeListener("end",l),r.removeListener("close",l),r.removeListener("finish",d),r.removeListener("exit",b),r.removeListener("end",p),r.removeListener("error",v),r.removeListener("close",m)}}}).call(this,r(27))},function(t,e,r){(function(e){var n=r(197),i=r(263),o=r(480),a=function(){},s=/^v?\.0/.test(e.version),u=function(t){return"function"===typeof t},c=function(t,e,r,c){c=n(c);var f=!1;t.on("close",(function(){f=!0})),i(t,{readable:e,writable:r},(function(t){if(t)return c(t);f=!0,c()}));var h=!1;return function(e){if(!f&&!h)return h=!0,function(t){return!!s&&!!o&&(t instanceof(o.ReadStream||a)||t instanceof(o.WriteStream||a))&&u(t.close)}(t)?t.close(a):function(t){return t.setHeader&&u(t.abort)}(t)?t.abort():u(t.destroy)?t.destroy():void c(e||new Error("stream was destroyed"))}},f=function(t){t()},h=function(t,e){return t.pipe(e)};t.exports=function(){var t,e=Array.prototype.slice.call(arguments),r=u(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var n=e.map((function(i,o){var a=o<e.length-1;return c(i,a,o>0,(function(e){t||(t=e),e&&n.forEach(f),a||(n.forEach(f),r(t))}))}));return e.reduce(h)}}).call(this,r(27))},function(t,e,r){"use strict";var n=r(25).Buffer,i=r(483).Transform;function o(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(19)(o,i),o.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(i){n=i}r(n)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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 r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},function(t,e,r){"use strict";(function(e,n){var i;t.exports=E,E.ReadableState=S;r(60).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=r(267),s=r(7).Buffer,u=e.Uint8Array||function(){};var c,f=r(484);c=f&&f.debuglog?f.debuglog("stream"):function(){};var h,l,d,p=r(485),b=r(268),v=r(269).getHighWaterMark,m=r(102).codes,y=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(19)(E,a);var k=b.errorOrDestroy,M=["error","close","destroy","pause","resume"];function S(t,e,n){i=i||r(103),t=t||{},"boolean"!==typeof n&&(n=e instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",n),this.buffer=new p,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&&(h||(h=r(73).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function E(t){if(i=i||r(103),!(this instanceof E))return new E(t);var e=this instanceof i;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function x(t,e,r,n,i){c("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(c("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?R(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}(t,a);else if(i||(o=function(t,e){var r;n=e,s.isBuffer(n)||n instanceof u||"string"===typeof e||void 0===e||t.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),o)k(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?k(t,new _):A(t,a,e,!0);else if(a.ended)k(t,new g);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?A(t,a,e,!1):P(t,a)):A(t,a,e,!1)}else n||(a.reading=!1,P(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function A(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&R(t)),P(t,e)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=b.destroy,E.prototype._undestroy=b.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},E.prototype.unshift=function(t){return x(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){h||(h=r(73).StringDecoder);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 4,231 bytes, line 2
2for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function j(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>=O?t=O:(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 R(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(I,t))}function I(t){var e=t._readableState;c("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,N(t)}function P(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(c("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function C(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 B(t){c("readable nexttick read 0"),t.read(0)}function L(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function U(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(z,e,t))}function z(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function W(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?U(this):R(this),null;if(0===(t=j(t,e))&&e.ended)return 0===e.length&&U(this),null;var n,i=e.needReadable;return c("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&c("length less than watermark",i=!0),e.ended||e.reading?c("reading or ended",i=!1):i&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=j(r,e))),null===(n=t>0?D(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),r!==t&&e.ended&&U(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){k(this,new w("_read()"))},E.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?u:v;function s(e,n){c("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),t.removeListener("close",p),t.removeListener("finish",b),t.removeListener("drain",f),t.removeListener("error",d),t.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",v),r.removeListener("data",l),h=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function u(){c("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",s);var f=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(r);t.on("drain",f);var h=!1;function l(e){c("ondata");
vendor: 15,731 bytes, line 2
2var n=t.write(e);c("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==W(i.pipes,t))&&!h&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(e){c("onerror",e),v(),t.removeListener("error",d),0===o(t,"error")&&k(t,e)}function p(){t.removeListener("finish",b),v()}function b(){c("onfinish"),t.removeListener("close",p),v()}function v(){c("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",p),t.once("finish",b),t.emit("pipe",r),i.flowing||(c("pipe resume"),r.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=W(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},E.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?R(this):i.reading||n.nextTick(B,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(C,this),r},E.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(C,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(L,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(e.push(i)||(n=!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<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=r(487)),l(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(E.from=function(t,e){return void 0===d&&(d=r(488)),d(E,t,e)})}).call(this,r(31),r(27))},function(t,e,r){t.exports=r(60).EventEmitter},function(t,e,r){"use strict";(function(e){function r(t,e){i(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):o?(e.nextTick(n,a),o(t)):e.nextTick(n,a)})),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 r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,r(27))},function(t,e,r){"use strict";var n=r(102).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},function(t,e,r){"use strict";(function(e,n){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var o;t.exports=E,E.WritableState=S;var a={deprecate:r(150)},s=r(267),u=r(7).Buffer,c=e.Uint8Array||function(){};var f,h=r(268),l=r(269).getHighWaterMark,d=r(102).codes,p=d.ERR_INVALID_ARG_TYPE,b=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,g=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function M(){}function S(t,e,a){o=o||r(103),t=t||{},"boolean"!==typeof a&&(a=e instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=l(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,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 r=t._writableState,i=r.sync,o=r.writecb;if("function"!==typeof o)throw new v;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,i,o){--e.pendingcb,r?(n.nextTick(o,i),n.nextTick(I,t,e),t._writableState.errorEmitted=!0,k(t,i)):(o(i),t._writableState.errorEmitted=!0,k(t,i),I(t,e))}(t,r,i,e,o);else{var a=j(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||O(t,r),i?n.nextTick(A,t,r,a,o):A(t,r,a,o)}}(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 i(this)}function E(t){var e=this instanceof(o=o||r(103));if(!e&&!f.call(E,this))return new E(t);this._writableState=new S(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)),s.call(this)}function x(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),I(t,e)}function O(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,x(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,h=r.callback;if(x(t,e,!1,e.objectMode?1:c.length,c,f,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function j(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function R(t,e){t._final((function(r){e.pendingcb--,r&&k(t,r),e.prefinished=!0,t.emit("prefinish"),I(t,e)}))}function I(t,e){var r=j(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(R,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}r(19)(E,s),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.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]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===E&&(t&&t._writableState instanceof S)}})):f=function(t){return t instanceof this},E.prototype.pipe=function(){k(this,new m)},E.prototype.write=function(t,e,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"===typeof e&&(r=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!==typeof r&&(r=M),o.ending?function(t,e){var r=new w;k(t,r),n.nextTick(e,r)}(this,r):(s||function(t,e,r,i){var o;return null===r?o=new g:"string"===typeof r||e.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(k(t,o),n.nextTick(i,o),!1)}(this,o,t,r))&&(o.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,s,n,i,o);return c}(this,o,s,t,e,r)),a},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},E.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 _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,r){r(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,r){var i=this._writableState;return"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,I(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this,r(31),r(27))},function(t,e,r){"use strict";t.exports=f;var n=r(102).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(103);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(t){if(!(this instanceof f))return new f(t);u.call(this,t),this._transformState={afterTransform:c.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",h)}function h(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush((function(e,r){l(t,e,r)}))}function l(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}r(19)(f,u),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new i("_transform()"))},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.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))},f.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,r){var n=r(19),i=r(104),o=r(25).Buffer,a=[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,2756
vendor: 3,065 bytes, line 2
2734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t,e,r){return r^t&(e^r)}function f(t,e,r){return t&e|r&(t|e)}function h(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function l(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(u,i),u.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},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,v=0|this._h,m=0;m<16;++m)r[m]=t.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((e=r[m-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[m-7]+d(r[m-15])+r[m-16];for(var y=0;y<64;++y){var g=v+l(u)+c(u,p,b)+a[y]+r[y]|0,w=h(n)+f(n,i,o)|0;v=b,b=p,p=u,u=s+g|0,s=o,o=i,i=n,n=g+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=v+this._h|0},u.prototype._hash=function(){var t=o.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=u},function(t,e,r){var n=r(19),i=r(104),o=r(25).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
vendor: 1,441 bytes, line 2
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(t,e,r){return r^t&(e^r)}function f(t,e,r){return t&e|r&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function l(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function v(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function m(t,e){return t>>>0<e>>>0?1:0}n(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,y=0|this._gh,g=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,M=0|this._dl,S=0|this._el,E=0|this._fl,x=0|this._gl,A=0|this._hl,O=0;O<32;O+=2)e[O]=t.readInt32BE(4*O),e[O+1]=t.readInt32BE(4*O+4);for(;O<160;O+=2){var j=e[O-30],R=e[O-30+1],I=d(j,R),P=p(R,j),T=b(j=e[O-4],R=e[O-4+1]),
vendor: 6,293 bytes, line 2
2C=v(R,j),B=e[O-14],L=e[O-14+1],N=e[O-32],D=e[O-32+1],U=P+L|0,z=I+B+m(U,P)|0;z=(z=z+T+m(U=U+C|0,C)|0)+N+m(U=U+D|0,D)|0,e[O]=z,e[O+1]=U}for(var W=0;W<160;W+=2){z=e[W],U=e[W+1];var q=f(r,n,i),F=f(w,_,k),K=h(r,w),H=h(w,r),Y=l(s,S),V=l(S,s),Z=a[W],G=a[W+1],X=c(s,u,y),J=c(S,E,x),Q=A+V|0,$=g+Y+m(Q,A)|0;$=($=($=$+X+m(Q=Q+J|0,J)|0)+Z+m(Q=Q+G|0,G)|0)+z+m(Q=Q+U|0,U)|0;var tt=H+F|0,et=K+q+m(tt,H)|0;g=y,A=x,y=u,x=E,u=s,E=S,s=o+$+m(S=M+Q|0,M)|0,o=i,M=k,i=n,k=_,n=r,_=w,r=$+et+m(w=Q+tt|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+M|0,this._el=this._el+S|0,this._fl=this._fl+E|0,this._gl=this._gl+x|0,this._hl=this._hl+A|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+n+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,k)|0,this._dh=this._dh+o+m(this._dl,M)|0,this._eh=this._eh+s+m(this._el,S)|0,this._fh=this._fh+u+m(this._fl,E)|0,this._gh=this._gh+y+m(this._gl,x)|0,this._hh=this._hh+g+m(this._hl,A)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+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=u},function(t,e,r){"use strict";(function(e,n){var i=r(151);t.exports=g;var o,a=r(225);g.ReadableState=y;r(60).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(275),c=r(203).Buffer,f=e.Uint8Array||function(){};var h=Object.create(r(122));h.inherits=r(19);var l=r(496),d=void 0;d=l&&l.debuglog?l.debuglog("stream"):function(){};var p,b=r(497),v=r(276);h.inherits(g,u);var m=["error","close","destroy","pause","resume"];function y(t,e){t=t||{};var n=e instanceof(o=o||r(90));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,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&&(p||(p=r(73).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function g(t){if(o=o||r(90),!(this instanceof g))return new g(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,S(t)}(t,a)):(i||(o=function(t,e){var r;n=e,c.isBuffer(n)||n instanceof f||"string"===typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):x(t,a)):_(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&S(t)),x(t,e)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),g.prototype.destroy=v.destroy,g.prototype._undestroy=v.undestroy,g.prototype._destroy=function(t,e){this.push(null),e(t)},g.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=c.from(t,e),e=""),r=!0),w(this,t,e,!1,r)},g.prototype.unshift=function(t){return w(this,t,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(t){return p||(p=r(73).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var k=8388608;function M(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>=k?t=k:(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 S(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(E,t):E(t))}function E(t){d("emit readable"),t.emit("readable"),R(t)}function x(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function O(t){d("readable nexttick read 0"),t.read(0)}function j(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),R(t),e.flowing&&!e.reading&&t.read(0)}function R(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function I(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail
vendor: 4,649 bytes, line 2
2=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=c.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function C(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}g.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):S(this),null;if(0===(t=M(t,e))&&e.ended)return 0===e.length&&P(this),null;var n,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",i=!0),e.ended||e.reading?d("reading or ended",i=!1):i&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=M(r,e))),null===(n=t>0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&P(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,e){var r=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,d("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?f:g;function c(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",m),t.removeListener("finish",y),t.removeListener("drain",h),t.removeListener("error",v),t.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",g),r.removeListener("data",b),l=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function f(){d("onend"),t.end()}o.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",c);var h=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,R(t))}}(r);t.on("drain",h);var l=!1;var p=!1;function b(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==C(o.pipes,t))&&!l&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function v(e){d("onerror",e),g(),t.removeListener("error",v),0===s(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",y),g()}function y(){d("onfinish"),t.removeListener("close",m),g()}function g(){d("unpipe"),r.unpipe(t)}return r.on("data",b),function(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",v),t.once("close",m),t.once("finish",y),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},g.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=C(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},g.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):i.nextTick(O,this))}return r},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(j,t,e))}(this,t)),this},g.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit
vendor: 12,914 bytes, line 2
2("pause")),this},g.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(e.push(i)||(n=!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<m.length;o++)t.on(m[o],this.emit.bind(this,m[o]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=I}).call(this,r(31),r(27))},function(t,e,r){t.exports=r(60).EventEmitter},function(t,e,r){"use strict";var n=r(151);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(i,r,t),r._writableState&&(r._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,r){"use strict";t.exports=a;var n=r(90),i=Object.create(r(122));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);n.call(this,t),this._transformState={afterTransform:o.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",s)}function s(){var t=this;"function"===typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),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)}i.inherits=r(19),i.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.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},a.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},function(t,e,r){"use strict";var n=r(19),i=r(506),o=r(80),a=r(25).Buffer,s=r(279),u=r(200),c=r(201),f=a.alloc(128);function h(t,e){o.call(this,"digest"),"string"===typeof e&&(e=a.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>r)?e=("rmd160"===t?new u:c(t)).update(e).digest():e.length<r&&(e=a.concat([e,f],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^e[s],i[s]=92^e[s];this._hash="rmd160"===t?new u:c(t),this._hash.update(n)}n(h,o),h.prototype._update=function(t){this._hash.update(t)},h.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new h("rmd160",e):"md5"===t?new i(s,e):new h(t,e)}},function(t,e,r){var n=r(198);t.exports=function(t){return(new n).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,r){e.pbkdf2=r(508),e.pbkdf2Sync=r(284)},function(t,e){var r=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!==typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!==typeof e)throw new TypeError("Key length not a number");if(e<0||e>r||e!==e)throw new TypeError("Bad key length")}},function(t,e,r){(function(e){var r;if(e.browser)r="utf-8";else if(e.version){r=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else r="utf-8";t.exports=r}).call(this,r(27))},function(t,e,r){var n=r(279),i=r(200),o=r(201),a=r(25).Buffer,s=r(282),u=r(283),c=r(285),f=a.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(t,e,r){var s=function(t){function e(e){return o(t).update(e).digest()}function r(t){return(new i).update(t).digest()}return"rmd160"===t||"ripemd160"===t?r:"md5"===t?n:e}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=s(e):e.length<u&&(e=a.concat([e,f],u));for(var c=a.allocUnsafe(u+h[t]),l=a.allocUnsafe(u+h[t]),d=0;d<u;d++)c[d]=54^e[d],l[d]=92^e[d];var p=a.allocUnsafe(u+r+4);c.copy(p,0,0,u),this.ipad1=p,this.ipad2=c,this.opad=l,this.alg=t,this.blocksize=u,this.hash=s,this.size=h[t]}l.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,r,n,i){s(r,n);var o=new l(i=i||"sha1",t=c(t,u,"Password"),(e=c(e,u,"Salt")).length),f=a.allocUnsafe(n),d=a.allocUnsafe(e.length+4);e.copy(d,0,0,e.length);for(var p=0,b=h[i],v=Math.ceil(n/b),m=1;m<=v;m++){d.writeUInt32BE(m,e.length);for(var y=o.run(d,o.ipad1),g=y,w=1;w<r;w++){g=o.run(g,o.ipad2);for(var _=0;_<b;_++)y[_]^=g[_]}y.copy(f,p),p+=b}return f}},function(t,e,r){var n=r(25).Buffer;t.exports=function(t,e,r){if(n.isBuffer(t))return t;if("string"===typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},function(t,e,r){"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,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},e.rip=function(t,e,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.pc1=function(t,e,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[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,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u<s;u++)o<<=1,o|=t>>>n[u]&1;for(u=s;u<n.length;u++)a<<=1,a|=e>>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=i>>>0};var i=[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 r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(t>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(e>>>18-6*n&63)]}return r>>>0};var o=[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,r=0;r<o.length;r++)e<<=1,e|=t>>>o[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var i=[],o=0;o<e;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},function(t,e,r){"use strict";var n=r(56),i=r(19),o=r(286),a=r(205);function s(){this.tmp=new Array(2),this.keys=null}function u(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}i(u,a),t.exports=u,u.create=function(t){return new u(t)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(e,0),i=o.readUInt32BE(e,4);o.pc1(r,i,t.tmp,0),r=t.tmp[0],i=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,t.keys,a)}},u.prototype._update=function(t,e,r,n){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt
vendor: 15,849 bytes, line 2
2(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(t,e){for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},u.prototype._unpad=function(t){for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)n.equal(t[r],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,r,n,i){for(var a=e,s=r,u=0;u<t.keys.length;u+=2){var c=t.keys[u],f=t.keys[u+1];o.expand(s,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var h=o.substitute(c,f),l=s;s=(a^o.permute(h))>>>0,a=l}o.rip(s,a,n,i)},u.prototype._decrypt=function(t,e,r,n,i){for(var a=r,s=e,u=t.keys.length-2;u>=0;u-=2){var c=t.keys[u],f=t.keys[u+1];o.expand(a,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var h=o.substitute(c,f),l=a;a=(s^o.permute(h))>>>0,s=l}o.rip(a,s,n,i)}},function(t,e,r){var n=r(123),i=r(25).Buffer,o=r(289);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var u=a(t),c=o+16*s;t._cache.writeUInt32BE(u[0],c+0),t._cache.writeUInt32BE(u[1],c+4),t._cache.writeUInt32BE(u[2],c+8),t._cache.writeUInt32BE(u[3],c+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,f)}},function(t,e){t.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},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,r){var n=r(152),i=r(25).Buffer,o=r(80),a=r(19),s=r(521),u=r(123),c=r(289);function f(t,e,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(e);var f=this._cipher.encryptBlock(u);this._ghash=new s(f),r=function(t,e,r){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var n=new s(r),o=e.length,a=o%16;n.update(e),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,f=i.alloc(8);f.writeUIntBE(u,0,8),n.update(f),t._finID=n.state;var h=i.from(t._finID);return c(h),h}(this,r,f),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i<n;++i)r+=t[i]^e[i];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},f.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=f},function(t,e,r){var n=r(152),i=r(25).Buffer,o=r(80);function a(t,e,r,a){o.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}r(19)(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},function(t,e,r){var n=r(89);t.exports=y,y.simpleSieve=v,y.fermatTest=m;var i=r(294),o=new i(24),a=new(r(295)),s=new i(1),u=new i(2),c=new i(5),f=(new i(16),new i(8),new i(10)),h=new i(3),l=(new i(7),new i(11)),d=new i(4),p=(new i(12),null);function b(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<e&&t[i]<=n&&r%t[i]!==0;i++);e!==i&&t[i]<=n||(t[e++]=r)}return p=t,t}function v(t){for(var e=b(),r=0;r<e.length;r++)if(0===t.modn(e[r]))return 0===t.cmpn(e[r]);return!0}function m(t){var e=i.mont(t);return 0===u.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function y(t,e){if(t<16)return new i(2===e||5===e?[140,123]:[140,39]);var r,p;for(e=new i(e);;){for(r=new i(n(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),e.cmp(u)){if(!e.cmp(c))for(;r.mod(f).cmp(h);)r.iadd(d)}else for(;r.mod(o).cmp(l);)r.iadd(d);if(v(p=r.shrn(1))&&v(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=r(525).Buffer}catch(S){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=u(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],f=[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],h=[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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?b+r:c[l-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)}
vendor: 2,819 bytes, line 2
2,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 4,788 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,
vendor: 12,355 bytes, line 2
2X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function p(t,e,r){return(new b).mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(d=l),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):r<63?l(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):p(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 15,841 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0===(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0===(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},i(y,m),y.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},i(g,m),i(w,m),i(_,m),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new g;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(69)(t))},function(t,e,r){var n=r(526),i=r(184);function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},o.prototype.test=function(t,e,r){var i=t.bitLength(),o=n.mont(t),a=new n(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var c=t.shrn(u),f=s.toRed(o);e>0;e--){var h=this._randrange(new n(2),s);r&&r(h);var l=h.toRed(o).redPow(c);if(0!==l.cmp(a)&&0!==l.cmp(f)){for(var d=1;d<u;d++){if(0===(l=l.redSqr()).cmp(a))return!1;if(0===l.cmp(f))break}if(d===u)return!1}}return!0},o.prototype.getDivisor=function(t,e){var r=t.bitLength(),i=n.mont(t),o=new n(1).toRed(i);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var u=t.shrn(s),c=a.toRed(i);e>0;e--){var f=this._randrange(new n(2),a),h=t.gcd(f);if(0!==h.cmpn(1))return h;var l=f.toRed(i).redPow(u);if(0!==l.cmp(o)&&0!==l.cmp(c)){for(var d=1;d<s;d++){if(0===(l=l.redSqr()).cmp(o))return l.fromRed().subn(1).gcd(t);if(0===l.cmp(c))break}if(d===s)return(l=l.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,r){"use strict";(function(e,n){var i;t.exports=E,E.ReadableState=S;r(60).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=r(297),s=r(7).Buffer,u=e.Uint8Array||function(){};var c,f=r(532);c=f&&f.debuglog?f.debuglog("stream"):function(){};var h,l,d,p=r(533),b=r(298),v=r(299).getHighWaterMark,m=r(105).codes,y=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENT
vendor: 5,870 bytes, line 2
2ED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(19)(E,a);var k=b.errorOrDestroy,M=["error","close","destroy","pause","resume"];function S(t,e,n){i=i||r(106),t=t||{},"boolean"!==typeof n&&(n=e instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",n),this.buffer=new p,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&&(h||(h=r(73).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function E(t){if(i=i||r(106),!(this instanceof E))return new E(t);var e=this instanceof i;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function x(t,e,r,n,i){c("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(c("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?R(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}(t,a);else if(i||(o=function(t,e){var r;n=e,s.isBuffer(n)||n instanceof u||"string"===typeof e||void 0===e||t.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),o)k(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?k(t,new _):A(t,a,e,!0);else if(a.ended)k(t,new g);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?A(t,a,e,!1):P(t,a)):A(t,a,e,!1)}else n||(a.reading=!1,P(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function A(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&R(t)),P(t,e)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=b.destroy,E.prototype._undestroy=b.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},E.prototype.unshift=function(t){return x(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){h||(h=r(73).StringDecoder);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function j(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>=O?t=O:(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 R(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(I,t))}function I(t){var e=t._readableState;c("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,N(t)}function P(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(c("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function C(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 B(t){c("readable nexttick read 0"),t.read(0)}function L(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function U(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(z,e,t))}function z(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function W(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?U(this):R(this),null;if(0===(t=j(t,e))&&e.ended)return 0===e.length&&U(this),null;var n,i=e.needReadable;
vendor: 4,371 bytes, line 2
2return c("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&c("length less than watermark",i=!0),e.ended||e.reading?c("reading or ended",i=!1):i&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=j(r,e))),null===(n=t>0?D(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),r!==t&&e.ended&&U(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){k(this,new w("_read()"))},E.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?u:v;function s(e,n){c("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),t.removeListener("close",p),t.removeListener("finish",b),t.removeListener("drain",f),t.removeListener("error",d),t.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",v),r.removeListener("data",l),h=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function u(){c("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",s);var f=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(r);t.on("drain",f);var h=!1;function l(e){c("ondata");var n=t.write(e);c("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==W(i.pipes,t))&&!h&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(e){c("onerror",e),v(),t.removeListener("error",d),0===o(t,"error")&&k(t,e)}function p(){t.removeListener("finish",b),v()}function b(){c("onfinish"),t.removeListener("close",p),v()}function v(){c("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",p),t.once("finish",b),t.emit("pipe",r),i.flowing||(c("pipe resume"),r.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=W(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},E.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?R(this):i.reading||n.nextTick(B,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(C,this),r},E.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(C,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(L,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause())))}
vendor: 10,275 bytes, line 2
2)),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<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=r(535)),l(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(E.from=function(t,e){return void 0===d&&(d=r(536)),d(E,t,e)})}).call(this,r(31),r(27))},function(t,e,r){t.exports=r(60).EventEmitter},function(t,e,r){"use strict";(function(e){function r(t,e){i(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):o?(e.nextTick(n,a),o(t)):e.nextTick(n,a)})),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 r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,r(27))},function(t,e,r){"use strict";var n=r(105).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},function(t,e,r){"use strict";(function(e,n){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var o;t.exports=E,E.WritableState=S;var a={deprecate:r(150)},s=r(297),u=r(7).Buffer,c=e.Uint8Array||function(){};var f,h=r(298),l=r(299).getHighWaterMark,d=r(105).codes,p=d.ERR_INVALID_ARG_TYPE,b=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,g=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function M(){}function S(t,e,a){o=o||r(106),t=t||{},"boolean"!==typeof a&&(a=e instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=l(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,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 r=t._writableState,i=r.sync,o=r.writecb;if("function"!==typeof o)throw new v;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,i,o){--e.pendingcb,r?(n.nextTick(o,i),n.nextTick(I,t,e),t._writableState.errorEmitted=!0,k(t,i)):(o(i),t._writableState.errorEmitted=!0,k(t,i),I(t,e))}(t,r,i,e,o);else{var a=j(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||O(t,r),i?n.nextTick(A,t,r,a,o):A(t,r,a,o)}}(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 i(this)}function E(t){var e=this instanceof(o=o||r(106));if(!e&&!f.call(E,this))return new E(t);this._writableState=new S(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)),s.call(this)}function x(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),I(t,e)}function O(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,x(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,h=r.callback;if(x(t,e,!1,e.objectMode?1:c.length,c,f,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function j(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function R(t,e){t._final((function(r){e.pendingcb--,r&&k(t,r),e.prefinished=!0,t.emit("prefinish"),I(t,e)}))}function I(t,e){var r=j(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(R,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}r(19)(E,s),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.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]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===E&&(t&&t._writableState instanceof S)}})):f=function(t){return t instanceof this},E.prototype.pipe=function(){k(this,new m)},E.prototype.write=function(t,e,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"===typeof e&&(r=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!==typeof r&&(r=M),o.ending?function(t,e){var r=new w;k(t,r),n.nextTick(e,r)}(this,r):(s||function(t,e,r,i){var o;return null===r?o=new g:"string"===typeof r||e.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(k(t,o),n.nextTick(i,o),!1)}(this,o,t,r))&&(o.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,s,n,i,o);return c}(this,o,s,t,e,r)),a},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},E.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 _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,r){r(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,r){var i=this._writableState;return"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,I(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this,r(31),r(27))},function(t,e,r){"use strict";
vendor: 4,177 bytes, line 2
2t.exports=f;var n=r(105).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(106);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(t){if(!(this instanceof f))return new f(t);u.call(this,t),this._transformState={afterTransform:c.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",h)}function h(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush((function(e,r){l(t,e,r)}))}function l(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}r(19)(f,u),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new i("_transform()"))},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.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))},f.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=r(540).Buffer}catch(A){}function s(t,e,r){for(var i=0,o=Math.min(t.length,r),a=0,s=e;s<o;s++){var u,c=t.charCodeAt(s)-48;i<<=4,i|=u=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,a|=u}return n(!(240&a),"Invalid character in "+t),i}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u<s;u++){var c=t.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function c(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>
vendor: 5,501 bytes, line 2
226-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=u(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){c(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(A){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","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"],l=[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],d=[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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?h[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=l[t],f=d[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modrn(f).toString(t);r=(p=p.idivn(f)).isZero()?b+r:h[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>
vendor: 3,651 bytes, line 2
2=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 1,191 bytes, line 2
2var 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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var b=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 10,269 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function v(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;
vendor: 6,903 bytes, line 2
2for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function m(t,e,r){return v(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(b=p),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?b(this,t,e):r<63?p(this,t,e):r<1024?v(this,t,e):m(this,t,e)},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 14,859 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0===(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0===(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(_,w),_.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},i(k,w),i(M,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new k;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(69)(t))},function(t,e,r){"use strict";var n=e;n.bignum=r(304),n.define=r(543).define,n.base=r(546),n.constants=r(547),n.decoders=r(307),n.encoders=r(305)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;
vendor: 5,685 bytes, line 2
2"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=r(542).Buffer}catch(S){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=u(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],f=[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],h=[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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?b+r:c[l-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)}
vendor: 4,496 bytes, line 2
2,o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 1,190 bytes, line 2
2var 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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 4,788 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,
vendor: 12,355 bytes, line 2
2X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function p(t,e,r){return(new b).mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(d=l),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):r<63?l(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):p(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 20,462 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0===(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0===(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},i(y,m),y.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},i(g,m),i(w,m),i(_,m),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new g;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(69)(t))},function(t,e,r){"use strict";var n=e;n.der=r(306),n.pem=r(544)},function(t,e,r){"use strict";var n=r(19),i=r(210).Buffer,o=r(211),a=r(213);function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){o.call(this,"der",t)}function c(t){return t<10?"0"+t:t}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(u,o),u.prototype._encodeComposite=function(t,e,r,n){var o=function(t,e,r,n){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(a.tagByName.hasOwnProperty(t))i=a.tagByName[t];else{if("number"!==typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}if(i>=31)return n.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(t,e,r,this.reporter);if(n.length<128){var s=i.alloc(2);return s[0]=o,s[1]=n.length,this._createEncoderBuffer([s,n])}for(var u=1,c=n.length;c>=256;c>>=8)u++;var f=i.alloc(2+u);f[0]=o,f[1]=128|u;for(var h=1+u,l=n.length;l>0;h--,l>>=8)f[h]=255&l;return this._createEncoderBuffer([f,n])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=i.alloc(2*t.length),n=0;n<t.length;n++)r.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}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")},u.prototype._encodeObjid=function(t,e,r){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 n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(var o=0;o<t.length;o++)t[o]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var a=0,s=0;s<t.length;s++){var u=t[s];for(a++;u>=128;u>>=7)a++}for(var c=i.alloc(a),f=c.length-1,h=t.length-1;h>=0;h--){var l=t[h];for(c[f--]=127&l;(l>>=7)>0;)c[f--]=128|127&l}return this._createEncoderBuffer(c)},u.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!i.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=i.from(r)}if(i.isBuffer(t)){var n=t.length;0===t.length&&n++;var o=i.alloc(n);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var a=1,s=t;s>=256;s>>=8)a++;for(var u=new Array(a),c=u.length-1;c>=0;c--)u[c]=255&t,t>>=8;return 128&u[0]&&u.unshift(0),this._createEncoderBuffer(i.from(u))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,r){var n,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},function(t,e,r){"use strict";var n=e;n.der=r(308),n.pem=r(545)},function(t,e,r){"use strict";var n=r(19),i=r(304),o=r(124).DecoderBuffer,a=r(211),s=r(213);function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){a.call(this,"der",t)}function f(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var n=s.tagClass[r>>6],i=0===(32&r);if(31===(31&r)){var o=r;for(r=0;128===(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0===(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=t.readUInt8(r);if(t.isError(a))return a;n|=a}return n}t.exports=u,u.prototype.decode=function(t,e){return o.isDecoderBuffer(t)||(t=new o(t,e)),this.tree._decode(t,e)},n(c,a),c.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;var n=t.save(),i=f(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(n),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||r)},c.prototype._decodeTag=function(t,e,r){var n=f(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;var i=h(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},c.prototype._skipUntilEnd=function(t,e){for(;;){var r=f(t,e);if(t.isError(r))return r;var n=h(t,r.primitive,e);if(t.isError(n))return n;var i=void 0;
2if(i=r.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(i))return i;if("end"===r.tagStr)break}},c.prototype._decodeList=function(t,e,r,n){for(var i=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var a=r.decode(t,"der",n);if(t.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(t,e){if("bitstr"===e){var r=t.readUInt8();return t.isError(r)?r:{unused:r,data:t.raw()}}if("bmpstr"===e){var n=t.raw();if(n.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a: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 s=t.raw().toString("ascii");return this._isPrintstr(s)?s:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},c.prototype._decodeObjid=function(t,e,r){for(var n,i=[],o=0,a=0;!t.isEmpty();)o<<=7,o|=127&(a=t.readUInt8()),0===(128&a)&&(i.push(o),o=0);128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),e){var c=e[n.join(" ")];void 0===c&&(c=e[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(t,e){var r,n,i,o,a,s,u=t.raw().toString();if("gentime"===e)r=0|u.slice(0,4),n=0|u.slice(4,6),i=0|u.slice(6,8),o=0|u.slice(8,10),a=0|u.slice(10,12),s=0|u.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|u.slice(0,2),n=0|u.slice(2,4),i=0|u.slice(4,6),o=0|u.slice(6,8),a=0|u.slice(8,10),s=0|u.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,i,o,a,s,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},c.prototype._decodeInt=function(t,e){var r=t.raw(),n=new i(r);return e&&(n=e[n.toString(10)]||n),n},c.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getDecoder("der").tree}},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,r){var n=r(121),i=r(25).Buffer;function o(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,a=i.alloc(0),s=0;a.length<e;)r=o(s++),a=i.concat([a,n("sha1").update(t).update(r).digest()]);return a.slice(0,e)}},function(t,e){t.exports=function(t,e){for(var r=t.length,n=-1;++n<r;)t[n]^=e[n];return t}},function(t,e,r){var n=r(214),i=r(25).Buffer;t.exports=function(t,e){return i.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(6),i=r(2),o=r.n(i),a=r(12),s=(r(15),r(17)),u=r(24),c=r(30),f=i.forwardRef((function(t,e){var r=t.children,o=t.classes,u=t.className,f=t.color,h=void 0===f?"inherit":f,l=t.component,d=void 0===l?"svg":l,p=t.fontSize,b=void 0===p?"medium":p,v=t.htmlColor,m=t.titleAccess,y=t.viewBox,g=void 0===y?"0 0 24 24":y,w=Object(a.a)(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(d,Object(n.a)({className:Object(s.a)(o.root,u,"inherit"!==h&&o["color".concat(Object(c.a)(h))],"default"!==b&&"medium"!==b&&o["fontSize".concat(Object(c.a)(b))]),focusable:"false",viewBox:g,color:v,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:e},w),r,m?i.createElement("title",null,m):null)}));f.muiName="SvgIcon";var h=Object(u.a)((function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(f);function l(t,e){var r=function(e,r){return o.a.createElement(h,Object(n.a)({ref:r},e),t)};return r.muiName=h.muiName,o.a.memo(o.a.forwardRef(r))}},function(t,e,r){"use strict";var n=r(2),i=r(15);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}
2function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=c(t);if(e){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function d(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,e)}(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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=String(t);if(0===e)return r;var n=r.match(/(.*?)([0-9]+)(.*)/),i=n?n[1]:"",o=n?n[3]:"",a=n?n[2]:r,s=a.length>=e?a:(d(Array(e)).map((function(){return"0"})).join("")+a).slice(-1*e);return"".concat(i).concat(s).concat(o)}var v={daysInHours:!1,zeroPadTime:2};function m(t,e){var r=t.days,n=t.hours,i=t.minutes,o=t.seconds,a=Object.assign(Object.assign({},v),e),s=a.daysInHours,u=a.zeroPadTime,c=a.zeroPadDays,f=void 0===c?u:c,h=Math.min(2,u),l=s?b(n+24*r,u):b(n,h);return{days:s?"":b(r,f),hours:l,minutes:b(i,h),seconds:b(o,h)}}var y=function(t){u(r,t);var e=l(r);function r(){var t;return o(this,r),(t=e.apply(this,arguments)).state={count:t.props.count||3},t.startCountdown=function(){t.interval=window.setInterval((function(){0===t.state.count-1?(t.stopCountdown(),t.props.onComplete&&t.props.onComplete()):t.setState((function(t){return{count:t.count-1}}))}),1e3)},t.stopCountdown=function(){clearInterval(t.interval)},t.addTime=function(e){t.stopCountdown(),t.setState((function(t){return{count:t.count+e}}),t.startCountdown)},t}return s(r,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?Object(n.cloneElement)(this.props.children,{count:this.state.count}):null}}]),r}(n.Component);y.propTypes={count:i.number,children:i.element,onComplete:i.func};var g=function(t){u(r,t);var e=l(r);function r(t){var i;if(o(this,r),(i=e.call(this,t)).mounted=!1,i.initialTimestamp=i.calcOffsetStartTimestamp(),i.offsetStartTimestamp=i.props.autoStart?0:i.initialTimestamp,i.offsetTime=0,i.legacyMode=!1,i.legacyCountdownRef=Object(n.createRef)(),i.tick=function(){var t=i.calcTimeDelta(),e=t.completed&&!i.props.overtime?void 0:i.props.onTick;i.setTimeDeltaState(t,void 0,e)},i.start=function(){if(!i.isStarted()){var t=i.offsetStartTimestamp;i.offsetStartTimestamp=0,i.offsetTime+=t?i.calcOffsetStartTimestamp()-t:0;var e=i.calcTimeDelta();i.setTimeDeltaState(e,"STARTED",i.props.onStart),i.props.controlled||e.completed&&!i.props.overtime||(i.clearTimer(),i.interval=window.setInterval(i.tick,i.props.intervalDelay))}},i.pause=function(){i.isPaused()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.setTimeDeltaState(i.state.timeDelta,"PAUSED",i.props.onPause))},i.stop=function(){i.isStopped()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.offsetTime=i.offsetStartTimestamp-i.initialTimestamp,i.setTimeDeltaState(i.calcTimeDelta(),"STOPPED",i.props.onStop))},i.isStarted=function(){return i.isStatus("STARTED")},i.isPaused=function(){return i.isStatus("PAUSED")},i.isStopped=function(){return i.isStatus("STOPPED")},i.isCompleted=function(){return i.isStatus("COMPLETED")},i.handleOnComplete=function(t){i.props.onComplete&&i.props.onComplete(t)},t.date){var a=i.calcTimeDelta();
2i.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else i.legacyMode=!0;return i}return s(r,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(t){this.legacyMode||this.props.date!==t.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var t=this.props,e=t.date,r=t.now,n=t.precision,i=t.controlled,o=t.overtime;return function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.now,i=void 0===n?Date.now:n,o=r.precision,a=void 0===o?0:o,s=r.controlled,u=r.offsetTime,c=void 0===u?0:u,f=r.overtime;e="string"===typeof t?new Date(t).getTime():t instanceof Date?t.getTime():t,s||(e+=c);var h=s?e:e-i(),l=Math.min(20,Math.max(0,a)),d=Math.round(1e3*parseFloat(((f?h:Math.max(0,h))/1e3).toFixed(l))),p=Math.abs(d)/1e3;return{total:d,days:Math.floor(p/86400),hours:Math.floor(p/3600%24),minutes:Math.floor(p/60%60),seconds:Math.floor(p%60),milliseconds:Number((p%1*1e3).toFixed()),completed:d<=0}}(e,{now:r,precision:n,controlled:i,offsetTime:this.offsetTime,overtime:o})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(t){this.legacyCountdownRef.current.addTime(t)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(t){return this.state.status===t}},{key:"setTimeDeltaState",value:function(t,e,r){var n=this;if(this.mounted){var i;!this.state.timeDelta.completed&&t.completed&&(this.props.overtime||this.clearTimer(),i=this.handleOnComplete);return this.setState((function(r){var i=e||r.status;return t.completed&&!n.props.overtime?i="COMPLETED":e||"COMPLETED"!==i||(i="STOPPED"),{timeDelta:t,status:i}}),(function(){r&&r(n.state.timeDelta),i&&i(n.state.timeDelta)}))}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var t=this.props,e=t.daysInHours,r=t.zeroPadTime,n=t.zeroPadDays,i=this.state.timeDelta;return Object.assign(Object.assign({},i),{api:this.getApi(),props:this.props,formatted:m(i,{daysInHours:e,zeroPadTime:r,zeroPadDays:n})})}},{key:"render",value:function(){if(this.legacyMode){var t=this.props,e=t.count,r=t.children,i=t.onComplete;return Object(n.createElement)(y,{ref:this.legacyCountdownRef,count:e,onComplete:i},r)}var o=this.props,a=o.className,s=o.overtime,u=o.children,c=o.renderer,f=this.getRenderProps();if(c)return c(f);if(u&&this.state.timeDelta.completed&&!s)return Object(n.cloneElement)(u,{countdown:f});var h=f.formatted,l=h.days,d=h.hours,p=h.minutes,b=h.seconds;return Object(n.createElement)("span",{className:a},f.total<0?"-":"",l,l?":":"",d,":",p,":",b)}}]),r}(n.Component);g.defaultProps=Object.assign(Object.assign({},v),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),g.propTypes={date:Object(i.oneOfType)([Object(i.instanceOf)(Date),i.string,i.number]),daysInHours:i.bool,zeroPadTime:i.number,zeroPadDays:i.number,controlled:i.bool,intervalDelay:i.number,precision:i.number,autoStart:i.bool,overtime:i.bool,className:i.string,children:i.element,renderer:i.func,now:i.func,onMount:i.func,onStart:i.func,onPause:i.func,onStop:i.func,onTick:i.func,onComplete:i.func},e.a=g},function(t,e,r){"use strict";function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";
vendor: 6,444 bytes, line 2
2function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(71),i=r(96);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(r(2)),a=(0,n(r(97)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");e.default=a},function(t,e,r){"use strict";var n=r(71),i=r(96);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(r(2)),a=(0,n(r(97)).default)(o.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");e.default=a},function(t,e,r){"use strict";var n=r(71),i=r(96);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(r(2)),a=(0,n(r(97)).default)(o.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.default=a},function(t,e,r){"use strict";var n=r(71),i=r(96);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(r(2)),a=(0,n(r(97)).default)(o.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");e.default=a},function(t,e,r){"use strict";var n=r(71),i=r(96);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(r(2)),a=(0,n(r(97)).default)(o.createElement("path",{d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"}),"SwapHoriz");e.default=a},function(t,e,r){"use strict";var n=r(71),i=r(96);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(r(2)),a=(0,n(r(97)).default)(o.createElement("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"}),"LinkOff");e.default=a},function(t,e,r){var n=r(403),i=r(404);t.exports={parse:function(t){var e=n.parse(t.toString());return i.compile(e)}}},function(t,e){t.exports=function(t,e,r,n){var i=r?r.call(n,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!==typeof t||!t||"object"!==typeof e||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var f=t[c],h=e[c];if(!1===(i=r?r.call(n,f,h,c):void 0)||void 0===i&&f!==h)return!1}return!0}},function(t,e,r){"use strict";e.a=function(t){function e(t,n,u,c,l){for(var d,p,b,v,w,k=0,M=0,S=0,E=0,x=0,P=0,C=b=d=0,L=0,N=0,D=0,U=0,z=u.length,W=z-1,q="",F="",K="",H="";L<z;){if(p=u.charCodeAt(L),L===W&&0!==M+E+S+k&&(0!==M&&(p=47===M?10:47),E=S=k=0,z++,W++),0===M+E+S+k){if(L===W&&(0<N&&(q=q.replace(h,"")),0<q.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:q+=u.charAt(L)}p=59}switch(p){case 123:for(d=(q=q.trim()).charCodeAt(0),b=1,U=++L;L<z;){switch(p=u.charCodeAt(L)){case 123:b++;break;case 125:b--;break;case 47:switch(p=u.charCodeAt(L+1)){case 42:case 47:t:{for(C=L+1;C<W;++C)switch(u.charCodeAt(C)){case 47:if(42===p&&42===u.charCodeAt(C-1)&&L+2!==C){L=C+1;break t}break;case 10:if(47===p){L=C+1;break t}}L=C}}break;case 91:p++;case 40:p++;case 34:case 39:for(;L++<W&&u.charCodeAt(L)!==p;);}if(0===b)break;L++}switch(b=u.substring(U,L),0===d&&(d=(q=q.replace(f,"").trim()).charCodeAt(0)),d){case 64:switch(0<N&&(q=q.replace(h,"")),p=q.charCodeAt(1)){case 100:case 109:case 115:case 45:N=n;break;default:N=I}if(U=(b=e(n,N,b,p,l+1)).length,0<T&&(w=s(3,b,N=r(I,q,D),n,O,A,U,p,l,c),q=N.join(""),void 0!==w&&0===(U=(b=w.trim()).length)&&(p=0,b="")),0<U)switch(p){case 115:q=q.replace(_,a);case 100:case 109:case 45:b=q+"{"+b+"}";break;case 107:b=(q=q.replace(m,"$1 $2"))+"{"+b+"}",b=1===R||2===R&&o("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=q+b,112===c&&(F+=b,b="")}else b="";break;default:b=e(n,r(n,q,D),b,c,l+1)}K+=b,b=D=N=C=d=0,q="",p=u.charCodeAt(++L);break;case 125:case 59:if(1<(U=(q=(0<N?q.replace(h,""):q).trim()).length))switch(0===C&&(d=q.charCodeAt(0),45===d||96<d&&123>d)&&(U=(q=q.replace(" ",":")).length),0<T&&void 0!==(w=s(1,q,n,t,O,A,F.length,c,l,c))&&0===(U=(q=w.trim()).length)&&(q="\0\0"),d=q.charCodeAt(0),p=q.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){H+=q+u.charAt(L);break}default:58!==q.charCodeAt(U-1)&&(F+=i(q,d,p,q.charCodeAt(2)))}D=N=C=d=0,q="",p=u.charCodeAt(++L)}}switch(p){case 13:case 10:47===M?M=0:0===1+d&&107!==c&&0<q.length&&(N=1,q+="\0"),0<T*B&&s(0,q,n,t,O,A,F.length,c,l,c),A=1,O++;break;case 59:case 125:if(0===M+E+S+k){A++;break}default:switch(A++,v=u.charAt(L),p){case 9:case 32:if(0===E+k+M)switch(x){case 44:case 58:case 9:case 32:v="";break;default:32!==p&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===E+M+k&&(N=D=1,v="\f"+v);break;case 108:if(0===E+M+k+j&&0<C)switch(L-C){case 2:112===x&&58===u.charCodeAt(L-3)&&(j=x);case 8:111===P&&(j=P)}break;case 58:0===E+M+k&&(C=L);break;case 44:0===M+S+E+k&&(N=1,v+="\r");break;case 34:case 39:0===M&&(E=E===p?0:0===E?p:E);break;case 91:0===E+M+S&&k++;break;case 93:0===E+M+S&&k--;break;case 41:0===E+M+k&&S--;break;case 40:if(0===E+M+k){if(0===d)switch(2*x+3*P){case 533:break;default:d=1}S++}break;case 64:0===M+S+E+k+C+b&&(b=1);break;case 42:case 47:if(!(0<E+k+S))switch(M){case 0:switch(2*p+3*u.charCodeAt(L+1)){case 235:M=47;break;case 220:U=L,M=42}break;case 42:47===p&&42===x&&U+2!==L&&(33===u.charCodeAt(U+2)&&(F+=u.substring(U,L+1)),v="",M=0)}}0===M&&(q+=v)}P=x,x=p,L++}if(0<(U=F.length)){if(N=n,0<T&&(void 0!==(w=s(2,F,N,t,O,A,U,c,l,c))&&0===(F=w).length))return H+F+K;if(F=N.join(",")+"{"+F+"}",0!==R*j){switch(2!==R||o(F,2)||(j=0),j){case 111:F=F.replace(g,":-moz-$1")+F;break;case 112:F=F.replace(y,"::-webkit-input-$1")+F.replace(y,"::-moz-$1")+F.replace(y,":-ms-input-$1")+F}j=0}}return H+F+K}function r(t,e,r){var i=e.trim().split(b);e=i;var o=i.length,a=t.length;switch(a){case 0:case 1:var s=0;for(t=0===a?"":t[0]+" ";s<o;++s)e[s]=n(t,e[s],r).trim();break;default:var u=s=0;for(e=[];s<o;++s)for(var c=0;c<a;++c)e[u++]=n(t[c]+" ",i[s],r).trim()}return e}function n(t,e,r){var n=e.charCodeAt(0);switch(33>
vendor: 4,097 bytes, line 2
2n&&(n=(e=e.trim()).charCodeAt(0)),n){case 38:return e.replace(v,"$1"+t.trim());case 58:return t.trim()+e.replace(v,"$1"+t.trim());default:if(0<1*r&&0<e.indexOf("\f"))return e.replace(v,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function i(t,e,r,n){var a=t+";",s=2*e+3*r+4*n;if(944===s){t=a.indexOf(":",9)+1;var u=a.substring(t,a.length-1).trim();return u=a.substring(0,t).trim()+u+";",1===R||2===R&&o(u,1)?"-webkit-"+u+u:u}if(0===R||2===R&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(l,":-webkit-")+a.replace(l,":-moz-")+a:a;case 1e3:switch(e=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(e)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(e=(a=t).length-10,s=(u=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(M,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(M,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(t))return 115===(u=t.substring(t.indexOf(":")+1)).charCodeAt(0)?i(t.replace("stretch","fill-available"),e,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(t,e){var r=t.indexOf(1===e?":":"{"),n=t.substring(0,3!==e?r:10);return r=t.substring(r+1,t.length-1),C(2!==e?n:n.replace(S,"$1"),r,e)}function a(t,e){var r=i(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return r!==e+";"?r.replace(k," or ($1)").substring(4):"("+e+")"}function s(t,e,r,n,i,o,a,s,u,f){for(var h,l=0,d=e;l<T;++l)switch(h=P[l].call(c,t,d,r,n,i,o,a,s,u,f)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==e)return d}function u(t){return void 0!==(t=t.prefix)&&(C=null,t?"function"!==typeof t?R=1:(R=2,C=t):R=0),u}function c(t,r){var n=t;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<T){var i=s(-1,r,n,n,O,A,0,0,0,0);void 0!==i&&"string"===typeof i&&(r=i)}var o=e(I,n,r,0,0);return 0<T&&(void 0!==(i=s(-2,o,n,n,O,A,o.length,0,0,0))&&(o=i)),"",j=0,A=O=1,o}var f=/^\0+/g,h=/[\0\r\f]/g,l=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,b=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,g=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}
2/,_=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,M=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,A=1,O=1,j=0,R=1,I=[],P=[],T=0,C=null,B=0;return c.use=function t(e){switch(e){case void 0:case null:T=P.length=0;break;default:if("function"===typeof e)P[T++]=e;else if("object"===typeof e)for(var r=0,n=e.length;r<n;++r)t(e[r]);else B=0|!!e}return t},c.set=u,void 0!==t&&u(t),c}},function(t,e,r){"use strict";e.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(410),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(411),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(416),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.getDerivationPath=void 0,i(r(417),e);var o=r(250);Object.defineProperty(e,"getDerivationPath",{enumerable:!0,get:function(){return o.getDerivationPath}})},function(t,e,r){"use strict";
2(function(t){e.__esModule=!0;var n=r(42);function i(e){var r=t.alloc(2);return r.writeUInt16BE(e,0),r}var o={data:t.alloc(0),dataLength:0,sequence:0};e.default=function(e,r){return{makeBlocks:function(n){var o=t.concat([i(n.length),n]),a=r-5,s=Math.ceil(o.length/a);o=t.concat([o,t.alloc(s*a-o.length+1).fill(0)]);for(var u=[],c=0;c<s;c++){var f=t.alloc(5);f.writeUInt16BE(e,0),f.writeUInt8(5,2),f.writeUInt16BE(c,3);var h=o.slice(c*a,(c+1)*a);u.push(t.concat([f,h]))}return u},reduceResponse:function(r,i){var a=r||o,s=a.data,u=a.dataLength,c=a.sequence;if(i.readUInt16BE(0)!==e)throw new n.TransportError("Invalid channel","InvalidChannel");if(5!==i.readUInt8(2))throw new n.TransportError("Invalid tag","InvalidTag");if(i.readUInt16BE(3)!==c)throw new n.TransportError("Invalid sequence","InvalidSequence");r||(u=i.readUInt16BE(5)),c++;var f=i.slice(r?5:7);return(s=t.concat([s,f])).length>u&&(s=s.slice(0,u)),{data:s,dataLength:u,sequence:c}},getReducedResult:function(t){if(t&&t.dataLength===t.data.length)return t.data}}}}).call(this,r(7).Buffer)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(445),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(446),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(447),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(448),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(449),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(450),e)},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(451),e)},function(t,e,r){"use strict";var n=r(37),i=r(12),o=r(597),a=r(6),s=["xs","sm","md","lg","xl"];function u(t){var e=t.values,r=void 0===e?{xs:0,sm:600,md:960,lg:1280,xl:1920}:e,n=t.unit,o=void 0===n?"px":n,u=t.step,c=void 0===u?5:u,f=Object(i.a)(t,["values","unit","step"]);function h(t){var e="number"===typeof r[t]?r[t]:t;return"@media (min-width:".concat(e).concat(o,")")}function l(t,e){var n=s.indexOf(e);return n===s.length-1?h(t):"@media (min-width:".concat("number"===typeof r[t]?r[t]:t).concat(o,") and ")+"(max-width:".concat((-1!==n&&"number"===typeof r[s[n+1]]?r[s[n+1]]:e)-c/100).concat(o,")")}return Object(a.a)({keys:s,values:r,up:h,down:function(t){var e=s.indexOf(t)+1,n=r[s[e]];return e===s.length?h("xs"):"@media (max-width:".concat(("number"===typeof n&&e>0?n:t)-c/100).concat(o,")")},between:l,only:function(t){return l(t,t)},width:function(t){return r[t]}},f)}function c(t,e,r){var i;return Object(a.a)({gutters:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Object(a.a)({paddingLeft:e(2),paddingRight:e(2)},r,Object(n.a)({},t.up("sm"),Object(a.a)({paddingLeft:e(3),paddingRight:e(3)},r[t.up("sm")])))},toolbar:(i={minHeight:56},Object(n.a)(i,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(n.a)(i,t.up("sm"),{minHeight:64}),i)},r)}var f=r(345),h={black:"#000",white:"#fff"},l={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},d={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},b={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},g=r(45),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:l[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackgroun
2d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:l[800],default:"#303030"},action:{active:h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(t,e,r,n){var i=n.light||n,o=n.dark||1.5*n;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:"light"===e?t.light=Object(g.e)(t.main,i):"dark"===e&&(t.dark=Object(g.b)(t.main,o)))}function M(t){var e=t.primary,r=void 0===e?{light:d[300],main:d[500],dark:d[700]}:e,n=t.secondary,s=void 0===n?{light:p.A200,main:p.A400,dark:p.A700}:n,u=t.error,c=void 0===u?{light:b[300],main:b[500],dark:b[700]}:u,M=t.warning,S=void 0===M?{light:v[300],main:v[500],dark:v[700]}:M,E=t.info,x=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,A=t.success,O=void 0===A?{light:y[300],main:y[500],dark:y[700]}:A,j=t.type,R=void 0===j?"light":j,I=t.contrastThreshold,P=void 0===I?3:I,T=t.tonalOffset,C=void 0===T?.2:T,B=Object(i.a)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(t){return Object(g.d)(t,_.text.primary)>=P?_.text.primary:w.text.primary}var N=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=Object(a.a)({},t)).main&&t[e]&&(t.main=t[e]),!t.main)throw new Error(Object(f.a)(4,e));if("string"!==typeof t.main)throw new Error(Object(f.a)(5,JSON.stringify(t.main)));return k(t,"light",r,C),k(t,"dark",n,C),t.contrastText||(t.contrastText=L(t.main)),t},D={dark:_,light:w};return Object(o.a)(Object(a.a)({common:h,type:R,primary:N(r),secondary:N(s,"A400","A200","A700"),error:N(c),warning:N(S),info:N(x),success:N(O),grey:l,contrastThreshold:P,getContrastText:L,augmentColor:N,tonalOffset:C},D[R]),B)}function S(t){return Math.round(1e5*t)/1e5}function E(t){return S(t)}var x={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function O(t,e){var r="function"===typeof e?e(t):e,n=r.fontFamily,s=void 0===n?A:n,u=r.fontSize,c=void 0===u?14:u,f=r.fontWeightLight,h=void 0===f?300:f,l=r.fontWeightRegular,d=void 0===l?400:l,p=r.fontWeightMedium,b=void 0===p?500:p,v=r.fontWeightBold,m=void 0===v?700:v,y=r.htmlFontSize,g=void 0===y?16:y,w=r.allVariants,_=r.pxToRem,k=Object(i.a)(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var M=c/14,O=_||function(t){return"".concat(t/g*M,"rem")},j=function(t,e,r,n,i){return Object(a.a)({fontFamily:s,fontWeight:t,fontSize:O(e),lineHeight:r},s===A?{letterSpacing:"".concat(S(n/e),"em")}:{},i,w)},R={h1:j(h,96,1.167,-1.5),h2:j(h,60,1.2,-.5),h3:j(d,48,1.167,0),h4:j(d,34,1.235,.25),h5:j(d,24,1.334,0),h6:j(b,20,1.6,.15),subtitle1:j(d,16,1.75,.15),subtitle2:j(b,14,1.57,.1),body1:j(d,16,1.5,.15),body2:j(d,14,1.43,.15),button:j(b,14,1.75,.4,x),caption:j(d,12,1.66,.4),overline:j(d,12,2.66,1,x)};return Object(o.a)(Object(a.a)({htmlFontSize:g,pxToRem:O,round:E,fontFamily:s,fontSize:c,fontWeightLight:h,fontWeightRegular:d,fontWeightMedium:b,fontWeightBold:m},R),k,{clone:!1})}function j(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var R=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6
2),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],I={borderRadius:4},P=r(86),T=(r(85),r(127));r(15);var C=function(t,e){return e?Object(o.a)(t,e,{clone:!1}):t},B={xs:0,sm:600,md:960,lg:1280,xl:1920},L={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(B[t],"px)")}};var N={m:"margin",p:"padding"},D={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},U={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z=function(t){var e={};return function(r){return void 0===e[r]&&(e[r]=t(r)),e[r]}}((function(t){if(t.length>2){if(!U[t])return[t];t=U[t]}var e=t.split(""),r=Object(P.a)(e,2),n=r[0],i=r[1],o=N[n],a=D[i]||"";return Array.isArray(a)?a.map((function(t){return o+t})):[o+a]})),W=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function q(t){var e=t.spacing||8;return"number"===typeof e?function(t){return e*t}:Array.isArray(e)?function(t){return e[t]}:"function"===typeof e?e:function(){}}function F(t,e){return function(r){return t.reduce((function(t,n){return t[n]=function(t,e){if("string"===typeof e||null==e)return e;var r=t(Math.abs(e));return e>=0?r:"number"===typeof r?-r:"-".concat(r)}(e,r),t}),{})}}function K(t){var e=q(t.theme);return Object.keys(t).map((function(r){if(-1===W.indexOf(r))return null;var n=F(z(r),e),i=t[r];return function(t,e,r){if(Array.isArray(e)){var n=t.theme.breakpoints||L;return e.reduce((function(t,i,o){return t[n.up(n.keys[o])]=r(e[o]),t}),{})}if("object"===Object(T.a)(e)){var i=t.theme.breakpoints||L;return Object.keys(e).reduce((function(t,n){return t[i.up(n)]=r(e[n]),t}),{})}return r(e)}(t,i,n)})).reduce(C,{})}K.propTypes={},K.filterProps=W;function H(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var e=q({spacing:t}),r=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return 0===r.length?e(1):1===r.length?e(r[0]):r.map((function(t){if("string"===typeof t)return t;var r=e(t);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r}var Y=r(53),V=r(172);function Z(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.breakpoints,r=void 0===e?{}:e,n=t.mixins,a=void 0===n?{}:n,s=t.palette,f=void 0===s?{}:s,h=t.spacing,l=t.typography,d=void 0===l?{}:l,p=Object(i.a)(t,["breakpoints","mixins","palette","spacing","typography"]),b=M(f),v=u(r),m=H(h),y=Object(o.a)({breakpoints:v,direction:"ltr",mixins:c(v,m,a),overrides:{},palette:b,props:{},shadows:R,typography:O(b,d),spacing:m,shape:I,transitions:Y.a,zIndex:V.a},p),g=arguments.length,w=new Array(g>1?g-1:0),_=1;_<g;_++)w[_-1]=arguments[_];return y=w.reduce((function(t,e){return Object(o.a)(t,e)}),y)}e.a=Z},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.create;Object.create;function i(t){return t.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function s(t,e,r){return e instanceof RegExp?t.replace(e,r):e.reduce((function(t,e){return t.replace(e,r)}),t)}function u(t,e){return void 0===e&&(e={}),function(t,e){void 0===e&&(e={});for(var r=e.splitRegexp,n=void 0===r?o:r,u=e.stripRegexp,c=void 0===u?a:u,f=e.transform,h=void 0===f?i:f,l=e.delimiter,d=void 0===l?" ":l,p=s(s(t,n,"$1\0$2"),c,"\0"),b=0,v=p.length;"\0"===p.charAt(b);)b++;for(;"\0"===p.charAt(v-1);)v--;return p.slice(b,v).split("\0").map(h).join(d)}(t,n({delimiter:"."},e))}function c(t,e){return void 0===e&&(e={}),u(t,n({delimiter:"_"},e))}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(75);function i(t,e,r){return(i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Object(n.a)(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(r):o.value}})(t,e,r||t)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(2),i=r.n(n),o=r(169);function a(){return i.a.useContext(o.a)}},function(t,e,r){"use strict";function n(t){for(var e="https://material-ui.com/production-error/?code="+t,r=1;r<arguments.length;r+=1)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+t+"; visit "+e+" for the full message."}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(6),i=r(12),o=r(2),a=r.n(o),s=(r(15),r(29)),u=r(17),c=r(35),f=r(47),h=r(24),l=r(155),d=r(85),p=r(173);function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
vendor: 12,213 bytes, line 2
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var v=r(176),m=r(115);function y(t,e){var r=Object.create(null);return t&&o.Children.map(t,(function(t){return t})).forEach((function(t){r[t.key]=function(t){return e&&Object(o.isValidElement)(t)?e(t):t}(t)})),r}function g(t,e,r){return null!=r[e]?r[e]:t.props[e]}function w(t,e,r){var n=y(t.children),i=function(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,i=Object.create(null),o=[];for(var a in t)a in e?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in e){if(i[u])for(n=0;n<i[u].length;n++){var c=i[u][n];s[i[u][n]]=r(c)}s[u]=r(u)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}(e,n);return Object.keys(i).forEach((function(a){var s=i[a];if(Object(o.isValidElement)(s)){var u=a in e,c=a in n,f=e[a],h=Object(o.isValidElement)(f)&&!f.props.in;!c||u&&!h?c||!u||h?c&&u&&Object(o.isValidElement)(f)&&(i[a]=Object(o.cloneElement)(s,{onExited:r.bind(null,s),in:f.props.in,exit:g(s,"exit",t),enter:g(s,"enter",t)})):i[a]=Object(o.cloneElement)(s,{in:!1}):i[a]=Object(o.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:g(s,"exit",t),enter:g(s,"enter",t)})}})),i}var _=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},k=function(t){function e(e,r){var n,i=(n=t.call(this,e,r)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}Object(v.a)(e,t);var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var r,n,i=e.children,a=e.handleExited;return{children:e.firstRender?(r=t,n=a,y(r.children,(function(t){return Object(o.cloneElement)(t,{onExited:n.bind(null,t),in:!0,appear:g(t,"appear",r),enter:g(t,"enter",r),exit:g(t,"exit",r)})}))):w(t,i,a),firstRender:!1}},r.handleExited=function(t,e){var r=y(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var r=b({},e.children);return delete r[t.key],{children:r}})))},r.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=Object(p.a)(t,["component","childFactory"]),i=this.state.contextValue,o=_(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===e?a.a.createElement(m.a.Provider,{value:i},o):a.a.createElement(m.a.Provider,{value:i},a.a.createElement(e,n,o))},e}(a.a.Component);k.propTypes={},k.defaultProps={component:"div",childFactory:function(t){return t}};var M=k,S="undefined"===typeof window?o.useEffect:o.useLayoutEffect;var E=function(t){var e=t.classes,r=t.pulsate,n=void 0!==r&&r,i=t.rippleX,a=t.rippleY,s=t.rippleSize,c=t.in,h=t.onExited,l=void 0===h?function(){}:h,d=t.timeout,p=o.useState(!1),b=p[0],v=p[1],m=Object(u.a)(e.ripple,e.rippleVisible,n&&e.ripplePulsate),y={width:s,height:s,top:-s/2+a,left:-s/2+i},g=Object(u.a)(e.child,b&&e.childLeaving,n&&e.childPulsate),w=Object(f.a)(l);return S((function(){if(!c){v(!0);var t=setTimeout(w,d);return function(){clearTimeout(t)}}}),[w,c,d]),o.createElement("span",{className:m,style:y},o.createElement("span",{className:g}))},x=o.forwardRef((function(t,e){var r=t.center,a=void 0!==r&&r,s=t.classes,c=t.className,f=Object(i.a)(t,["center","classes","className"]),h=o.useState([]),l=h[0],p=h[1],b=o.useRef(0),v=o.useRef(null);o.useEffect((function(){v.current&&(v.current(),v.current=null)}),[l]);var m=o.useRef(!1),y=o.useRef(null),g=o.useRef(null),w=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var _=o.useCallback((function(t){var e=t.pulsate,r=t.rippleX,n=t.rippleY,i=t.rippleSize,a=t.cb;p((function(t){return[].concat(Object(d.a)(t),[o.createElement(E,{key:b.current,classes:s,timeout:550,pulsate:e,rippleX:r,rippleY:n,rippleSize:i})])})),b.current+=1,v.current=a}),[s]),k=o.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.pulsate,i=void 0!==n&&n,o=e.center,s=void 0===o?a||e.pulsate:o,u=e.fakeElement,c=void 0!==u&&u;if("mousedown"===t.type&&m.current)m.current=!1;else{"touchstart"===t.type&&(m.current=!0);var f,h,l,d=c?null:w.current,p=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)f=Math.round(p.width/2),h=Math.round(p.height/2);else{var b=t.touches?t.touches[0]:t,v=b.clientX,k=b.clientY;f=Math.round(v-p.left),h=Math.round(k-p.top)}if(s)(l=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(l+=1);else{var M=2*Math.max(Math.abs((d?d.clientWidth:0)-f),f)+2,S=2*Math.max(Math.abs((d?d.clientHeight:0)-h),h)+2;l=Math.sqrt(Math.pow(M,2)+Math.pow(S,2))}t.touches?null===g.current&&(g.current=function(){_({pulsate:i,rippleX:f,rippleY:h,rippleSize:l,cb:r})},y.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):_({pulsate:i,rippleX:f,rippleY:h,rippleSize:l,cb:r})}}),[a,_]),S=o.useCallback((function(){k({},{pulsate:!0})}),[k]),x=o.useCallback((function(t,e){if(clearTimeout(y.current),"touchend"===t.type&&g.current)return t.persist(),g.current(),g.current=null,void(y.current=setTimeout((function(){x(t,e)})));g.current=null,p((function(t){return t.length>0?t.slice(1):t})),v.current=e}),[]);return o.useImperativeHandle(e,(function(){return{pulsate:S,start:k,stop:x}}),[S,k,x]),o.createElement("span",Object(n.a)({className:Object(u.a)(s.root,c),ref:w},f),o.createElement(M,{component:null,exit:!0},l))})),A=Object(h.a)((function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(x)),O=o.forwardRef((function(t,e){var r=t.action,a=t.buttonRef,h=t.centerRipple,d=void 0!==h&&h,p=t.children,b=t.classes,v=t.className,m=t.component,y=void 0===m?"button":m,g=t.disabled,w=void 0!==g&&g,_=t.disableRipple,k=void 0!==_&&_,M=t.disableTouchRipple,S=void 0!==M&&M,E=t.focusRipple,x=void 0!==E&&E,O=t.focusVisibleClassName,j=t.onBlur,R=t.onClick,I=t.onFocus,P=t.onFocusVisible,T=t.onKeyDown,C=t.onKeyUp,B=t.onMouseDown,L=t.onMouseLeave,N=t.onMouseUp,D=t.onTouchEnd,U=t.onTouchMove,z=t.onTouchStart,W=t.onDragLeave,q=t.tabIndex,F=void 0===q?0:q,K=t.TouchRippleProps,H=t.type,Y=void 0===H?"button":H,V=Object(i.a)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Z=o.useRef(null);var G=o.useRef(null),X=o.useState(!1),J=X[0],Q=X[1];w&&J&&Q(!1);var $=Object(l.a)(),tt=$.isFocusVisible,et=$.onBlurVisible,rt=$.ref;function nt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return Object(f.a)((function(n){return e&&e(n),!r&&G.current&&G.current[t](n),!0}))}o.useImperativeHandle(r,(function(){return{focusVisible:function(){Q(!0),Z.current.focus()}}}),[]),o.useEffect((function(){J&&x&&!k&&G.current.pulsate()}),[k,x,J]);var it=nt("start",B),ot=nt("stop",W),at=nt("stop",N),st=nt("stop",(function(t){J&&t.preventDefault(),L&&L(t)})),ut=nt("start",z),ct=nt("stop",D),ft=nt("stop",U),ht=nt("stop",(function(t){J&&(et(t),Q(!1)),j&&j(t)}),!1),lt=Object(f.a)((function(t){Z.current||(Z.current=t.currentTarget),tt(t)&&(Q(!0),P&&P(t)),I&&I(t)})),dt=function(){var t=s.findDOMNode(Z.current);return y&&"button"!==y&&!("A"===t.tagName&&t.href)},pt=o.useRef(!1),bt=Object(f.a)((function(t){x&&!pt.current&&J&&G.current&&" "===t.key&&(pt.current=!0,t.persist(),G.current.stop(t,(function(){G.current.start(t)}))),t.target===t.currentTarget&&dt()&&" "===t.key&&t.preventDefault(),T&&T(t),t.target===t.currentTarget&&dt()&&"Enter"===t.key&&!w&&(t.preventDefault(),R&&R(t))})),vt=Object(f.a)((function(t){x&&" "===t.key&&G.current&&J&&!t.defaultPrevented&&(pt.current=!1,t.persist(),G.current.stop(t,(function(){G.current.pulsate(t)}))),C&&C(t),R&&t.target===t.currentTarget&&dt()&&" "===t.key&&!t.defaultPrevented&&R(t)})),mt=y;"button"===mt&&V.href&&(mt="a");var yt={};"button"===mt?(yt.type=Y,yt.disabled=w):("a"===mt&&V.href||(yt.role="button"),yt["aria-disabled"]=w);var gt=Object(c.a)(a,e),wt=Object(c.a)(rt,Z),_t=Object(c.a)(gt,wt),kt=o.useState(!1),Mt=kt[0],St=kt[1];o.useEffect((function(){St(!0)}),[]);var Et=Mt&&!k&&!w;return o.createElement(mt,Object(n.a)({className:Object(u.a)(b.root,v,J&&[b.focusVisible,O],w&&b.disabled),onBlur:ht,onClick:R,onFocus:lt,onKeyDown:bt,onKeyUp:vt,onMouseDown:it,onMouseLeave:st,onMouseUp:at,onDragLeave:ot,onTouchEnd:ct,onTouchMove:ft,onTouchStart:ut,ref:_t,tabIndex:w?-1:F},yt,V),p,Et?o.createElement(A,Object(n.a)({ref:G,center:d},K)):null)}));e.a=Object(h.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(O)},,,,,function(t,e,r){"use strict";var n=r(136),i=60103,o=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var a=60109,s=60110,u=60112;e.Suspense=60113;var c=60115,f=60116;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;i=h("react.element"),o=h("react.portal"),e.Fragment=h("react.fragment"),e.StrictMode=h("react.strict_mode"),e.Profiler=h("react.profiler"),a=h("react.provider"),s=h("react.context"),u=h("react.forward_ref"),e.Suspense=h("react.suspense"),c=h("react.memo"),f=h("react.lazy")}var l="function"===typeof Symbol&&Symbol.iterator;function d(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function v(t,e,r){this.props=t,this.context=e,this.refs=b,this.updater=r||p}function m(){}function y(t,e,r){this.props=t,this.context=e,this.refs=b,this.updater=r||p}v.prototype.isReactComponent={},v.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error(d(85));this.updater.enqueueSetState(this,t,e,"setState")},v.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=v.prototype;var g=y.prototype=new m;g.constructor=y,n(g,v.prototype),g.isPureReactComponent=!0;var w={current:null},_=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function M(t,e,r){var n,o={},a=null,s=null;
vendor: 12,578 bytes, line 2
2if(null!=e)for(n in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)_.call(e,n)&&!k.hasOwnProperty(n)&&(o[n]=e[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),f=0;f<u;f++)c[f]=arguments[f+2];o.children=c}if(t&&t.defaultProps)for(n in u=t.defaultProps)void 0===o[n]&&(o[n]=u[n]);return{$$typeof:i,type:t,key:a,ref:s,props:o,_owner:w.current}}function S(t){return"object"===typeof t&&null!==t&&t.$$typeof===i}var E=/\/+/g;function x(t,e){return"object"===typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function A(t,e,r,n,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case o:u=!0}}if(u)return a=a(u=t),t=""===n?"."+x(u,0):n,Array.isArray(a)?(r="",null!=t&&(r=t.replace(E,"$&/")+"/"),A(a,e,r,"",(function(t){return t}))):null!=a&&(S(a)&&(a=function(t,e){return{$$typeof:i,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(a,r+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+t)),e.push(a)),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var f=n+x(s=t[c],c);u+=A(s,e,r,f,a)}else if("function"===typeof(f=function(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=l&&t[l]||t["@@iterator"])?t:null}(t)))for(t=f.call(t),c=0;!(s=t.next()).done;)u+=A(s=s.value,e,r,f=n+x(s,c++),a);else if("object"===s)throw e=""+t,Error(d(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e));return u}function O(t,e,r){if(null==t)return t;var n=[],i=0;return A(t,n,"","",(function(t){return e.call(r,t,i++)})),n}function j(t){if(-1===t._status){var e=t._result;e=e(),t._status=0,t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}if(1===t._status)return t._result;throw t._result}var R={current:null};function I(){var t=R.current;if(null===t)throw Error(d(321));return t}var P={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:n};e.Children={map:O,forEach:function(t,e,r){O(t,(function(){e.apply(this,arguments)}),r)},count:function(t){var e=0;return O(t,(function(){e++})),e},toArray:function(t){return O(t,(function(t){return t}))||[]},only:function(t){if(!S(t))throw Error(d(143));return t}},e.Component=v,e.PureComponent=y,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,e.cloneElement=function(t,e,r){if(null===t||void 0===t)throw Error(d(267,t));var o=n({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=w.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(f in e)_.call(e,f)&&!k.hasOwnProperty(f)&&(o[f]=void 0===e[f]&&void 0!==c?c[f]:e[f])}var f=arguments.length-2;if(1===f)o.children=r;else if(1<f){c=Array(f);for(var h=0;h<f;h++)c[h]=arguments[h+2];o.children=c}return{$$typeof:i,type:t.type,key:a,ref:s,props:o,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:s,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:t},t.Consumer=t},e.createElement=M,e.createFactory=function(t){var e=M.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:u,render:t}},e.isValidElement=S,e.lazy=function(t){return{$$typeof:f,_payload:{_status:-1,_result:t},_init:j}},e.memo=function(t,e){return{$$typeof:c,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return I().useCallback(t,e)},e.useContext=function(t,e){return I().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return I().useEffect(t,e)},e.useImperativeHandle=function(t,e,r){return I().useImperativeHandle(t,e,r)},e.useLayoutEffect=function(t,e){return I().useLayoutEffect(t,e)},e.useMemo=function(t,e){return I().useMemo(t,e)},e.useReducer=function(t,e,r){return I().useReducer(t,e,r)},e.useRef=function(t){return I().useRef(t)},e.useState=function(t){return I().useState(t)},e.version="17.0.2"},function(t,e,r){"use strict";var n=r(2),i=r(136),o=r(353);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(a(227));var s=new Set,u={};function c(t,e){f(t,e),f(t+"Capture",e)}function f(t,e){for(u[t]=e,t=0;t<e.length;t++)s.add(e[t])}var h=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,p={},b={};function v(t,e,r,n,i,o,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){m[t]=new v(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];m[e]=new v(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){m[t]=new v(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){m[t]=new v(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){m[t]=new v(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){m[t]=new v(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){m[t]=new v(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){m[t]=new v(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){m[t]=new v(t,5,!1,t.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function g(t){return t[1].toUpperCase()}function w(t,e,r,n){var i=m.hasOwnProperty(e)?m[e]:null;(null!==i?0===i.type:!n&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,r,n){if(null===e||"undefined"===typeof e||function(t,e,r,n){if(null!==r&&0===r.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,r,i,n)&&(r=null),n||null===i?function(t){return!!d.call(b,t)||!d.call(p,t)&&(l.test(t)?b[t]=!0:(p[t]=!0,!1))}(e)&&(null===r?t.removeAttribute(e):t.setAttribute(e,""+r)):i.mustUseProperty?t[i.propertyName]=null===r?3!==i.type&&"":r:(e=i.attributeName,n=i.attributeNamespace,null===r?t.removeAttribute(e):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(y,g);m[e]=new v(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(y,g);m[e]=new v(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(y,g);m[e]=new v(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){m[t]=new v(t,1,!1,t.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){m[t]=new v(t,1,!1,t.toLowerCase(),null,!0,!0)}));var _=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,M=60106,S=60107,E=60108,x=60114,A=60109,O=60110,j=60112,R=60113,I=60120,P=60115,T=60116,C=60121,B=60128,L=60129,N=60130,D=60131;if("function"===typeof Symbol&&Symbol.for){var U=Symbol.for;k=U("react.element"),M=U("react.portal"),S=U("react.fragment"),E=U("react.strict_mode"),x=U("react.profiler"),A=U("react.provider"),O=U("react.context"),j=U("react.forward_ref"),R=U("react.suspense"),I=U("react.suspense_list"),P=U("react.memo"),T=U("react.lazy"),C=U("react.block"),U("react.scope"),B=U("react.opaque.id"),L=U("react.debug_trace_mode"),N=U("react.offscreen"),D=U("react.legacy_hidden")}var z,W="function"===typeof Symbol&&Symbol.iterator;function q(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=W&&t[W]||t["@@iterator"])?t:null}function F(t){if(void 0===z)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);z=e&&e[1]||""}return"\n"+z+t}var K=!1;function H(t,e){if(!t||K)return"";K=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var n=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){n=u}t.call(e.prototype)}else{try{throw Error()}catch(u){n=u}t()}}catch(u){if(u&&n&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=n.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{K=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?F(t):""}function Y(t){switch(t.tag){case 5:return F(t.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return t=H(t.type,!1);case 11:return t=H(t.type.render,!1);case 22:return t=H(t.type._render,!1);case 1:return t=H(t.type,!0);default:return""}}function V(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case S:return"Fragment";case M:return"Portal";case x:return"Profiler";case E:return"StrictMode";case R:return"Suspense";case I:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case O:return(t.displayName||"Context")+".Consumer";case A:return(t._context.displayName||"Context")+".Provider";case j:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case P:return V(t.type);case C:return V(t._render);case T:e=t._payload,t=t._init;try{return V(t(e))}catch(r){}}return null}function Z(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function G(t){var e=t.type;
vendor: 4,525 bytes, line 2
2return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function X(t){t._valueTracker||(t._valueTracker=function(t){var e=G(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){n=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(t){n=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function J(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=G(t)?t.checked?"true":"false":t.value),(t=n)!==r&&(e.setValue(t),!0)}function Q(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function $(t,e){var r=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:t._wrapperState.initialChecked})}function tt(t,e){var r=null==e.defaultValue?"":e.defaultValue,n=null!=e.checked?e.checked:e.defaultChecked;r=Z(null!=e.value?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function et(t,e){null!=(e=e.checked)&&w(t,"checked",e,!1)}function rt(t,e){et(t,e);var r=Z(e.value),n=e.type;if(null!=r)"number"===n?(0===r&&""===t.value||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if("submit"===n||"reset"===n)return void t.removeAttribute("value");e.hasOwnProperty("value")?it(t,e.type,r):e.hasOwnProperty("defaultValue")&&it(t,e.type,Z(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function nt(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!("submit"!==n&&"reset"!==n||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}""!==(r=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==r&&(t.name=r)}function it(t,e,r){"number"===e&&Q(t.ownerDocument)===t||(null==r?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}function ot(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return n.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function at(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Z(r),e=null,i=0;i<t.length;i++){if(t[i].value===r)return t[i].selected=!0,void(n&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function st(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function ut(t,e){var r=e.value;if(null==r){if(r=e.children,e=e.defaultValue,null!=r){if(null!=e)throw Error(a(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(a(93));r=r[0]}e=r}null==e&&(e=""),r=e}t._wrapperState={initialValue:Z(r)}}function ct(t,e){var r=Z(e.value),n=Z(e.defaultValue);null!=r&&((r=""+r)!==t.value&&(t.value=r),null==e.defaultValue&&t.defaultValue!==r&&(t.defaultValue=r)),null!=n&&(t.defaultValue=""+n)}function ft(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var ht="http://www.w3.org/1999/xhtml",lt="http://www.w3.org/2000/svg";function dt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?dt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var bt,vt,mt=(vt=function(t,e){if(t.namespaceURI!==lt||"innerHTML"in t)t.innerHTML=e;else{for((bt=bt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=bt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,r,n){MSApp.execUnsafeLocalFunction((function(){return vt(t,e)}))}:vt);function yt(t,e){if(e){var r=t.firstChild;
vendor: 9,793 bytes, line 2
2if(r&&r===t.lastChild&&3===r.nodeType)return void(r.nodeValue=e)}t.textContent=e}var gt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wt=["Webkit","ms","Moz","O"];function _t(t,e,r){return null==e||"boolean"===typeof e||""===e?"":r||"number"!==typeof e||0===e||gt.hasOwnProperty(t)&>[t]?(""+e).trim():e+"px"}function kt(t,e){for(var r in t=t.style,e)if(e.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=_t(r,e[r],n);"float"===r&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}Object.keys(gt).forEach((function(t){wt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),gt[e]=gt[t]}))}));var Mt=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function St(t,e){if(e){if(Mt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(a(62))}}function Et(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var At=null,Ot=null,jt=null;function Rt(t){if(t=ti(t)){if("function"!==typeof At)throw Error(a(280));var e=t.stateNode;e&&(e=ri(e),At(t.stateNode,t.type,e))}}function It(t){Ot?jt?jt.push(t):jt=[t]:Ot=t}function Pt(){if(Ot){var t=Ot,e=jt;if(jt=Ot=null,Rt(t),e)for(t=0;t<e.length;t++)Rt(e[t])}}function Tt(t,e){return t(e)}function Ct(t,e,r,n,i){return t(e,r,n,i)}function Bt(){}var Lt=Tt,Nt=!1,Dt=!1;function Ut(){null===Ot&&null===jt||(Bt(),Pt())}function zt(t,e){var r=t.stateNode;if(null===r)return null;var n=ri(r);if(null===n)return null;r=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!n;break t;default:t=!1}if(t)return null;if(r&&"function"!==typeof r)throw Error(a(231,e,typeof r));return r}var Wt=!1;if(h)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){Wt=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(vt){Wt=!1}function Ft(t,e,r,n,i,o,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(f){this.onError(f)}}var Kt=!1,Ht=null,Yt=!1,Vt=null,Zt={onError:function(t){Kt=!0,Ht=t}};function Gt(t,e,r,n,i,o,a,s,u){Kt=!1,Ht=null,Ft.apply(Zt,arguments)}function Xt(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(1026&(e=t).flags)&&(r=e.return),t=e.return}while(t)}return 3===e.tag?r:null}function Jt(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function Qt(t){if(Xt(t)!==t)throw Error(a(188))}function $t(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Xt(t)))throw Error(a(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Qt(i),t;if(o===n)return Qt(i),e;o=o.sibling}throw Error(a(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,u=i.child;u;){if(u===r){s=!0,r=i,n=o;break}if(u===n){s=!0,n=i,r=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===r){s=!0,r=o,n=i;break}if(u===n){s=!0,n=o,r=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function te(t,e){for(var r=t.alternate;null!==e;){if(e===t||e===r)return!0;e=e.return}return!1}var ee,re,ne,ie,oe=!1,ae=[],se=null,ue=null,ce=null,fe=new Map,he=new Map,le=[],de="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pe(t,e,r,n,i){return{blockedOn:t,domEventName:e,eventSystemFlags:16|r,nativeEvent:i,targetContainers:[n]}}function be(t,e){switch(t){case"focusin":case"focusout":se=null;break;case"dragenter":case"dragleave":ue=null;break;case"mouseover":case"mouseout":ce=null;break;case"pointerover":case"pointerout":fe.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":he.delete(e.pointerId)}}function ve(t,e,r,n,i,o){return null===t||t.nativeEvent!==o?(t=pe(e,r,n,i,o),null!==e&&(null!==(e=ti(e))&&re(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,null!==i&&-1===e.indexOf(i)&&e.push(i),t)}function me(t){var e=$n(t.target);if(null!==e){var r=Xt(e);if(null!==r)if(13===(e=r.tag)){if(null!==(e=Jt(r)))return t.blockedOn=e,void ie(t.lanePriority,(function(){o.unstable_runWithPriority(t.priority,(function(){ne(r)}))}))}else if(3===e&&r.stateNode.hydrate)return void(t.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}t.blockedOn=null}function ye(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var r=$e(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==r)return null!==(e=ti(r))&&re(e),t.blockedOn=r,!1;e.shift()}return!0}function ge(t,e,r){ye(t)&&r.delete(e)}function we(){for(oe=!1;0<ae.length;){var t=ae[0];if(null!==t.blockedOn){null!==(t=ti(t.blockedOn))&&ee(t);break}for(var e=t.targetContainers;0<e.length;){var r=$e(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==r){t.blockedOn=r;break}e.shift()}null===t.blockedOn&&ae.shift()}null!==se&&ye(se)&&(se=null),null!==ue&&ye(ue)&&(ue=null),null!==ce&&ye(ce)&&(ce=null),fe.forEach(ge),he.forEach(ge)}function _e(t,e){t.blockedOn===e&&(t.blockedOn=null,oe||(oe=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,we)))}function ke(t){function e(e){return _e(e,t)}if(0<ae.length){_e(ae[0],t);for(var r=1;r<ae.length;r++){var n=ae[r];n.blockedOn===t&&(n.blockedOn=null)}}for(null!==se&&_e(se,t),null!==ue&&_e(ue,t),null!==ce&&_e(ce,t),fe.forEach(e),he.forEach(e),r=0;r<le.length;r++)(n=le[r]).blockedOn===t&&(n.blockedOn=null);for(;0<le.length&&null===(r=le[0]).blockedOn;)me(r),null===r.blockedOn&&le.shift()}function Me(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Se={animationend:Me("Animation","AnimationEnd"),animationiteration:Me("Animation","AnimationIteration"),animationstart:Me("Animation","AnimationStart"),transitionend:Me("Transition","TransitionEnd")},Ee={},xe={};function Ae(t){if(Ee[t])return Ee[t];if(!Se[t])return t;var e,r=Se[t];for(e in r)if(r.hasOwnProperty(e)&&e in xe)return Ee[t]=r[e];return t}h&&(xe=document.createElement("div").style,"AnimationEvent"in window||(delete Se.animationend.animation,delete Se.animationiteration.animation,delete Se.animationstart.animation),"TransitionEvent"in window||delete Se.transitionend.transition);var Oe=Ae("animationend"),je=Ae("animationiteration"),Re=Ae("animationstart"),Ie=Ae("transitionend"),Pe=new Map,Te=new Map,Ce=["abort","abort",Oe,"animationEnd",je,"animationIteration",Re,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ie,"transitionEnd","waiting","waiting"];function Be(t,e){for(var r=0;r<t.length;r+=2){var n=t[r],i=t[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Te.set(n,e),Pe.set(n,i),c(i,[n])}}(0,o.unstable_now)();var Le=8;function Ne(t){if(0!==(1&t))return Le=15,1;if(0!==(2&t))return Le=14,2;if(0!==(4&t))return Le=13,4;var e=24&t;return 0!==e?(Le=12,e):0!==(32&t)?(Le=11,32):0!==(e=192&t)?(Le=10,e):0!==(256&t)?(Le=9,256):0!==(e=3584&t)?(Le=8,e):0!==(4096&t)?(Le=7,4096):0!==(e=4186112&t)?(Le=6,e):0!==(e=62914560&t)?(Le=5,e):67108864&t?(Le=4,67108864):0!==(134217728&t)?(Le=3,134217728):0!==(e=805306368&t)?(Le=2,e):0!==(1073741824&t)?(Le=1,1073741824):(Le=8,t)}function De(t,e){var r=t.pendingLanes;if(0===r)return Le=0;var n=0,i=0,o=t.expiredLanes,a=t.suspendedLanes,s=t.pingedLanes;if(0!==o)n=o,i=Le=15;else if(0!==(o=134217727&r)){var u=o&~a;0!==u?(n=Ne(u),i=Le):0!==(s&=o)&&(n=Ne(s),i=Le)}else 0!==(o=r&~a)?(n=Ne(o),i=Le):0!==s&&(n=Ne(s),i=Le);if(0===n)return 0;if(n=r&((0>
vendor: 4,980 bytes, line 2
2(n=31-Ke(n))?0:1<<n)<<1)-1,0!==e&&e!==n&&0===(e&a)){if(Ne(e),i<=Le)return e;Le=i}if(0!==(e=t.entangledLanes))for(t=t.entanglements,e&=n;0<e;)i=1<<(r=31-Ke(e)),n|=t[r],e&=~i;return n}function Ue(t){return 0!==(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function ze(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return 0===(t=We(24&~e))?ze(10,e):t;case 10:return 0===(t=We(192&~e))?ze(8,e):t;case 8:return 0===(t=We(3584&~e))&&(0===(t=We(4186112&~e))&&(t=512)),t;case 2:return 0===(e=We(805306368&~e))&&(e=268435456),e}throw Error(a(358,t))}function We(t){return t&-t}function qe(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Fe(t,e,r){t.pendingLanes|=e;var n=e-1;t.suspendedLanes&=n,t.pingedLanes&=n,(t=t.eventTimes)[e=31-Ke(e)]=r}var Ke=Math.clz32?Math.clz32:function(t){return 0===t?32:31-(He(t)/Ye|0)|0},He=Math.log,Ye=Math.LN2;var Ve=o.unstable_UserBlockingPriority,Ze=o.unstable_runWithPriority,Ge=!0;function Xe(t,e,r,n){Nt||Bt();var i=Qe,o=Nt;Nt=!0;try{Ct(i,t,e,r,n)}finally{(Nt=o)||Ut()}}function Je(t,e,r,n){Ze(Ve,Qe.bind(null,t,e,r,n))}function Qe(t,e,r,n){var i;if(Ge)if((i=0===(4&e))&&0<ae.length&&-1<de.indexOf(t))t=pe(null,t,e,r,n),ae.push(t);else{var o=$e(t,e,r,n);if(null===o)i&&be(t,n);else{if(i){if(-1<de.indexOf(t))return t=pe(o,t,e,r,n),void ae.push(t);if(function(t,e,r,n,i){switch(e){case"focusin":return se=ve(se,t,e,r,n,i),!0;case"dragenter":return ue=ve(ue,t,e,r,n,i),!0;case"mouseover":return ce=ve(ce,t,e,r,n,i),!0;case"pointerover":var o=i.pointerId;return fe.set(o,ve(fe.get(o)||null,t,e,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,he.set(o,ve(he.get(o)||null,t,e,r,n,i)),!0}return!1}(o,t,e,r,n))return;be(t,n)}Pn(t,e,n,null,r)}}}function $e(t,e,r,n){var i=xt(n);if(null!==(i=$n(i))){var o=Xt(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Jt(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Pn(t,e,n,i,r),null}var tr=null,er=null,rr=null;function nr(){if(rr)return rr;var t,e,r=er,n=r.length,i="value"in tr?tr.value:tr.textContent,o=i.length;for(t=0;t<n&&r[t]===i[t];t++);var a=n-t;for(e=1;e<=a&&r[n-e]===i[o-e];e++);return rr=i.slice(t,1<e?1-e:void 0)}function ir(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function or(){return!0}function ar(){return!1}function sr(t){function e(e,r,n,i,o){for(var a in this._reactName=e,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,t)t.hasOwnProperty(a)&&(e=t[a],this[a]=e?e(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?or:ar,this.isPropagationStopped=ar,this}return i(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=or)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=or)},persist:function(){},isPersistent:or}),e}var ur,cr,fr,hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=sr(hr),dr=i({},hr,{view:0,detail:0}),pr=sr(dr),br=i({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xr,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==fr&&(fr&&"mousemove"===t.type?(ur=t.screenX-fr.screenX,cr=t.screenY-fr.screenY):cr=ur=0,fr=t),ur)},movementY:function(t){return"movementY"in t?t.movementY:cr}}),vr=sr(br),mr=sr(i({},br,{dataTransfer:0})),yr=sr(i({},dr,{relatedTarget:0})),gr=sr(i({},hr,{animationName:0,elapsedTime:0,pseudoElement:0})),wr=sr(i({},hr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}})),_r=sr(i({},hr,{data:0})),kr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Er(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Sr[t])&&!!e[t]}function xr(){return Er}var Ar=sr(i({}
vendor: 17,617 bytes, line 2
2,dr,{key:function(t){if(t.key){var e=kr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=ir(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Mr[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xr,charCode:function(t){return"keypress"===t.type?ir(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?ir(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}})),Or=sr(i({},br,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jr=sr(i({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xr})),Rr=sr(i({},hr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ir=sr(i({},br,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0})),Pr=[9,13,27,32],Tr=h&&"CompositionEvent"in window,Cr=null;h&&"documentMode"in document&&(Cr=document.documentMode);var Br=h&&"TextEvent"in window&&!Cr,Lr=h&&(!Tr||Cr&&8<Cr&&11>=Cr),Nr=String.fromCharCode(32),Dr=!1;function Ur(t,e){switch(t){case"keyup":return-1!==Pr.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zr(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var Wr=!1;var qr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!qr[t.type]:"textarea"===e}function Kr(t,e,r,n){It(n),0<(e=Cn(e,"onChange")).length&&(r=new lr("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var Hr=null,Yr=null;function Vr(t){xn(t,0)}function Zr(t){if(J(ei(t)))return t}function Gr(t,e){if("change"===t)return e}var Xr=!1;if(h){var Jr;if(h){var Qr="oninput"in document;if(!Qr){var $r=document.createElement("div");$r.setAttribute("oninput","return;"),Qr="function"===typeof $r.oninput}Jr=Qr}else Jr=!1;Xr=Jr&&(!document.documentMode||9<document.documentMode)}function tn(){Hr&&(Hr.detachEvent("onpropertychange",en),Yr=Hr=null)}function en(t){if("value"===t.propertyName&&Zr(Yr)){var e=[];if(Kr(e,Yr,t,xt(t)),t=Vr,Nt)t(e);else{Nt=!0;try{Tt(t,e)}finally{Nt=!1,Ut()}}}}function rn(t,e,r){"focusin"===t?(tn(),Yr=r,(Hr=e).attachEvent("onpropertychange",en)):"focusout"===t&&tn()}function nn(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Zr(Yr)}function on(t,e){if("click"===t)return Zr(e)}function an(t,e){if("input"===t||"change"===t)return Zr(e)}var sn="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},un=Object.prototype.hasOwnProperty;function cn(t,e){if(sn(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!un.call(e,r[n])||!sn(t[r[n]],e[r[n]]))return!1;return!0}function fn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hn(t,e){var r,n=fn(t);for(t=0;n;){if(3===n.nodeType){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=fn(n)}}function ln(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?ln(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function dn(){for(var t=window,e=Q();e instanceof t.HTMLIFrameElement;){try{var r="string"===typeof e.contentWindow.location.href}catch(n){r=!1}if(!r)break;e=Q((t=e.contentWindow).document)}return e}function pn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var bn=h&&"documentMode"in document&&11>=document.documentMode,vn=null,mn=null,yn=null,gn=!1;function wn(t,e,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;gn||null==vn||vn!==Q(n)||("selectionStart"in(n=vn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&cn(yn,n)||(yn=n,0<(n=Cn(mn,"onSelect")).length&&(e=new lr("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=vn)))}Be("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Be("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Be(Ce,2);for(var _n="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kn=0;kn<_n.length;kn++)Te.set(_n[kn],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mn));function En(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,function(t,e,r,n,i,o,s,u,c){if(Gt.apply(this,arguments),Kt){if(!Kt)throw Error(a(198));var f=Ht;Kt=!1,Ht=null,Yt||(Yt=!0,Vt=f)}}(n,e,void 0,t),t.currentTarget=null}function xn(t,e){e=0!==(4&e);for(var r=0;r<t.length;r++){var n=t[r],i=n.event;n=n.listeners;t:{var o=void 0;if(e)for(var a=n.length-1;0<=a;a--){var s=n[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break t;En(i,s,c),o=u}else for(a=0;a<n.length;a++){if(u=(s=n[a]).instance,c=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break t;En(i,s,c),o=u}}}if(Yt)throw t=Vt,Yt=!1,Vt=null,t}function An(t,e){var r=ni(e),n=t+"__bubble";r.has(n)||(In(e,t,2,!1),r.add(n))}var On="_reactListening"+Math.random().toString(36).slice(2);function jn(t){t[On]||(t[On]=!0,s.forEach((function(e){Sn.has(e)||Rn(e,!1,t,null),Rn(e,!0,t,null)})))}function Rn(t,e,r,n){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=r;if("selectionchange"===t&&9!==r.nodeType&&(o=r.ownerDocument),null!==n&&!e&&Sn.has(t)){if("scroll"!==t)return;i|=2,o=n}var a=ni(o),s=t+"__"+(e?"capture":"bubble");a.has(s)||(e&&(i|=4),In(o,t,i,e),a.add(s))}function In(t,e,r,n){var i=Te.get(e);switch(void 0===i?2:i){case 0:i=Xe;break;case 1:i=Je;break;default:i=Qe}r=i.bind(null,e,r,t),i=void 0,!Wt||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(i=!0),n?void 0!==i?t.addEventListener(e,r,{capture:!0,passive:i}):t.addEventListener(e,r,!0):void 0!==i?t.addEventListener(e,r,{passive:i}):t.addEventListener(e,r,!1)}function Pn(t,e,r,n,i){var o=n;if(0===(1&e)&&0===(2&e)&&null!==n)t:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=$n(s)))return;if(5===(u=a.tag)||6===u){n=o=a;continue t}s=s.parentNode}}n=n.return}!function(t,e,r){if(Dt)return t(e,r);Dt=!0;try{Lt(t,e,r)}finally{Dt=!1,Ut()}}((function(){var n=o,i=xt(r),a=[];t:{var s=Pe.get(t);if(void 0!==s){var u=lr,c=t;switch(t){case"keypress":if(0===ir(r))break t;case"keydown":case"keyup":u=Ar;break;case"focusin":c="focus",u=yr;break;case"focusout":c="blur",u=yr;break;case"beforeblur":case"afterblur":u=yr;break;case"click":if(2===r.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=jr;break;case Oe:case je:case Re:u=gr;break;case Ie:u=Rr;break;case"scroll":u=pr;break;case"wheel":u=Ir;break;case"copy":case"cut":case"paste":u=wr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Or}var f=0!==(4&e),h=!f&&"scroll"===t,l=f?null!==s?s+"Capture":null:s;f=[];for(var d,p=n;null!==p;){var b=(d=p).stateNode;if(5===d.tag&&null!==b&&(d=b,null!==l&&(null!=(b=zt(p,l))&&f.push(Tn(p,b,d)))),h)break;p=p.return}0<f.length&&(s=new u(s,c,null,r,i),a.push({event:s,listeners:f}))}}if(0===(7&e)){if(u="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||0!==(16&e)||!(c=r.relatedTarget||r.fromElement)||!$n(c)&&!c[Jn])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=n,null!==(c=(c=r.relatedTarget||r.toElement)?$n(c):null)&&(c!==(h=Xt(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=n),u!==c)){if(f=vr,b="onMouseLeave",l="onMouseEnter",p="mouse","pointerout"!==t&&"pointerover"!==t||(f=Or,b="onPointerLeave",l="onPointerEnter",p="pointer"),h=null==u?s:ei(u),d=null==c?s:ei(c),(s=new f(b,p+"leave",u,r,i)).target=h,s.relatedTarget=d,b=null,$n(i)===n&&((f=new f(l,p+"enter",c,r,i)).target=d,f.relatedTarget=h,b=f),h=b,u&&c)t:{for(l=c,p=0,d=f=u;d;d=Bn(d))p++;for(d=0,b=l;b;b=Bn(b))d++;for(;0<p-d;)f=Bn(f),p--;for(;0<d-p;)l=Bn(l),d--;for(;p--;){if(f===l||null!==l&&f===l.alternate)break t;f=Bn(f),l=Bn(l)}f=null}else f=null;null!==u&&Ln(a,s,u,f,!1),null!==c&&null!==h&&Ln(a,h,c,f,!0)}if("select"===(u=(s=n?ei(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Gr;else if(Fr(s))if(Xr)v=an;else{v=nn;var m=rn}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=on);switch(v&&(v=v(t,n))?Kr(a,v,r,i):(m&&m(t,s,n),"focusout"===t&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&it(s,"number",s.value)),m=n?ei(n):window,t){case"focusin":(Fr(m)||"true"===m.contentEditable)&&(vn=m,mn=n,yn=null);break;case"focusout":yn=mn=vn=null;break;case"mousedown":gn=!0;break;case"contextmenu":case"mouseup":case"dragend":gn=!1,wn(a,r,i);break;case"selectionchange":if(bn)break;case"keydown":case"keyup":wn(a,r,i)}var y;if(Tr)t:{switch(t){case"compositionstart":var g="onCompositionStart";break t;case"compositionend":g="onCompositionEnd";break t;case"compositionupdate":g="onCompositionUpdate";break t}g=void 0}else Wr?Ur(t,r)&&(g="onCompositionEnd"):"keydown"===t&&229===r.keyCode&&(g="onCompositionStart");g&&(Lr&&"ko"!==r.locale&&(Wr||"onCompositionStart"!==g?"onCompositionEnd"===g&&Wr&&(y=nr()):(er="value"in(tr=i)?tr.value:tr.textContent,Wr=!0)),0<(m=Cn(n,g)).length&&(g=new _r(g,t,null,r,i),a.push({event:g,listeners:m}),y?g.data=y:null!==(y=zr(r))&&(g.data=y))),(y=Br?function(t,e){switch(t){case"compositionend":return zr(e);case"keypress":return 32!==e.which?null:(Dr=!0,Nr);case"textInput":return(t=e.data)===Nr&&Dr?null:t;default:return null}}(t,r):function(t,e){if(Wr)return"compositionend"===t||!Tr&&Ur(t,e)?(t=nr(),rr=er=tr=null,Wr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Lr&&"ko"!==e.locale?null:e.data;default:return null}}(t,r))&&(0<(n=Cn(n,"onBeforeInput")).length&&(i=new _r("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=y))}xn(a,e)}))}function Tn(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Cn(t,e){for(var r=e+"Capture",n=[];null!==t;){var i=t,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=zt(t,r))&&n.unshift(Tn(t,o,i)),null!=(o=zt(t,e))&&n.push(Tn(t,o,i))),t=t.return}return n}function Bn(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function Ln(t,e,r,n,i){for(var o=e._reactName,a=[];null!==r&&r!==n;){var s=r,u=s.alternate,c=s.stateNode;if(null!==u&&u===n)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=zt(r,o))&&a.unshift(Tn(r,u,s)):i||null!=(u=zt(r,o))&&a.push(Tn(r,u,s))),r=r.return}0!==a.length&&t.push({event:e,listeners:a})}function Nn(){}var Dn=null,Un=null;function zn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function Wn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var qn="function"===typeof setTimeout?setTimeout:void 0,Fn="function"===typeof clearTimeout?clearTimeout:void 0;function Kn(t){1===t.nodeType?t.textContent="":9===t.nodeType&&(null!=(t=t.body)&&(t.textContent=""))}function Hn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Yn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var r=t.data;if("$"===r||"$!"===r||"$?"===r){if(0===e)return t;e--}else"/$"===r&&e++}t=t.previousSibling}return null}var Vn=0;var Zn=Math.random().toString(36).slice(2),Gn="__reactFiber$"+Zn,Xn="__reactProps$"+Zn,Jn="__reactContainer$"+Zn,Qn="__reactEvents$"+Zn;function $n(t){var e=t[Gn];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Jn]||r[Gn]){if(r=e.alternate,null!==e.child||null!==r&&null!==r.child)for(t=Yn(t);null!==t;){if(r=t[Gn])return r;t=Yn(t)}return e}r=(t=r).parentNode}return null}function ti(t){return!(t=t[Gn]||t[Jn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function ei(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function ri(t){return t[Xn]||null}function ni(t){var e=t[Qn];return void 0===e&&(e=t[Qn]=new Set),e}var ii=[],oi=-1;function ai(t){return{current:t}}function si(t){0>oi||(t.current=ii[oi],ii[oi]=null,oi--)}function ui(t,e){oi++,ii[oi]=t.current,t.current=e}var ci={},fi=ai(ci),hi=ai(!1),li=ci;function di(t,e){var r=t.type.contextTypes;if(!r)return ci;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=e[i];return n&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function pi(t){return null!==(t=t.childContextTypes)&&void 0!==t}function bi(){si(hi),si(fi)}function vi(t,e,r){if(fi.current!==ci)throw Error(a(168));ui(fi,e),ui(hi,r)}function mi(t,e,r){var n=t.stateNode;if(t=e.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(a(108,V(e)||"Unknown",o));return i({},r,n)}function yi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ci,li=fi.current,ui(fi,t),ui(hi,hi.current),!0}function gi(t,e,r){var n=t.stateNode;if(!n)throw Error(a(169));r?(t=mi(t,e,li),n.__reactInternalMemoizedMergedChildContext=t,si(hi),si(fi),ui(fi,t)):si(hi),ui(hi,r)}var wi=null,_i=null,ki=o.unstable_runWithPriority,Mi=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,xi=o.unstable_requestPaint,Ai=o.unstable_now,Oi=o.unstable_getCurrentPriorityLevel,ji=o.unstable_ImmediatePriority,Ri=o.unstable_UserBlockingPriority,Ii=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ti=o.unstable_IdlePriority,Ci={},Bi=void 0!==xi?xi:function(){},Li=null,Ni=null,Di=!1,Ui=Ai(),zi=1e4>Ui?Ai:function(){return Ai()-Ui};function Wi(){switch(Oi()){case ji:return 99;case Ri:return 98;case Ii:return 97;case Pi:return 96;case Ti:return 95;default:throw Error(a(332))}}function qi(t){switch(t){case 99:return ji;case 98:return Ri;case 97:return Ii;case 96:return Pi;case 95:return Ti;default:throw Error(a(332))}}function Fi(t,e){return t=qi(t),ki(t,e)}function Ki(t,e,r){return t=qi(t),Mi(t,e,r)}function Hi(){if(null!==Ni){var t=Ni;Ni=null,Si(t)}Yi()}function Yi(){if(!Di&&null!==Li){Di=!0;var t=0;try{var e=Li;Fi(99,(function(){for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}})),Li=null}catch(r){throw null!==Li&&(Li=Li.slice(t+1)),Mi(ji,Hi),r}finally{Di=!1}
vendor: 8,643 bytes, line 2
2}}var Vi=_.ReactCurrentBatchConfig;function Zi(t,e){if(t&&t.defaultProps){for(var r in e=i({},e),t=t.defaultProps)void 0===e[r]&&(e[r]=t[r]);return e}return e}var Gi=ai(null),Xi=null,Ji=null,Qi=null;function $i(){Qi=Ji=Xi=null}function to(t){var e=Gi.current;si(Gi),t.type._context._currentValue=e}function eo(t,e){for(;null!==t;){var r=t.alternate;if((t.childLanes&e)===e){if(null===r||(r.childLanes&e)===e)break;r.childLanes|=e}else t.childLanes|=e,null!==r&&(r.childLanes|=e);t=t.return}}function ro(t,e){Xi=t,Qi=Ji=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!==(t.lanes&e)&&(Ca=!0),t.firstContext=null)}function no(t,e){if(Qi!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Qi=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Ji){if(null===Xi)throw Error(a(308));Ji=e,Xi.dependencies={lanes:0,firstContext:e,responders:null}}else Ji=Ji.next=e;return t._currentValue}var io=!1;function oo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ao(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function so(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function uo(t,e){if(null!==(t=t.updateQueue)){var r=(t=t.shared).pending;null===r?e.next=e:(e.next=r.next,r.next=e),t.pending=e}}function co(t,e){var r=t.updateQueue,n=t.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=a:o=o.next=a,r=r.next}while(null!==r);null===o?i=o=e:o=o.next=e}else i=o=e;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(t.updateQueue=r)}null===(t=r.lastBaseUpdate)?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function fo(t,e,r,n){var o=t.updateQueue;io=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var c=u,f=c.next;c.next=null,null===s?a=f:s.next=f,s=c;var h=t.alternate;if(null!==h){var l=(h=h.updateQueue).lastBaseUpdate;l!==s&&(null===l?h.firstBaseUpdate=f:l.next=f,h.lastBaseUpdate=c)}}if(null!==a){for(l=o.baseState,s=0,h=f=c=null;;){u=a.lane;var d=a.eventTime;if((n&u)===u){null!==h&&(h=h.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var p=t,b=a;switch(u=e,d=r,b.tag){case 1:if("function"===typeof(p=b.payload)){l=p.call(d,l,u);break t}l=p;break t;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(u="function"===typeof(p=b.payload)?p.call(d,l,u):p)||void 0===u)break t;l=i({},l,u);break t;case 2:io=!0}}null!==a.callback&&(t.flags|=32,null===(u=o.effects)?o.effects=[a]:u.push(a))}else d={eventTime:d,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===h?(f=h=d,c=l):h=h.next=d,s|=u;if(null===(a=a.next)){if(null===(u=o.shared.pending))break;a=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===h&&(c=l),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=h,Ds|=s,t.lanes=s,t.memoizedState=l}}function ho(t,e,r){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var n=t[e],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!==typeof i)throw Error(a(191,i));i.call(n)}}}var lo=(new n.Component).refs;function po(t,e,r,n){r=null===(r=r(n,e=t.memoizedState))||void 0===r?e:i({},e,r),t.memoizedState=r,0===t.lanes&&(t.updateQueue.baseState=r)}var bo={isMounted:function(t){return!!(t=t._reactInternals)&&Xt(t)===t},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=cu(),i=fu(t),o=so(n,i);o.payload=e,void 0!==r&&null!==r&&(o.callback=r),uo(t,o),hu(t,i,n)},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=cu(),i=fu(t),o=so(n,i);o.tag=1,o.payload=e,void 0!==r&&null!==r&&(o.callback=r),uo(t,o),hu(t,i,n)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=cu(),n=fu(t),i=so(r,n);i.tag=2,void 0!==e&&null!==e&&(i.callback=e),uo(t,i),hu(t,n,r)}};function vo(t,e,r,n,i,o,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(n,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!cn(r,n)||!cn(i,o))}function mo(t,e,r){var n=!1,i=ci,o=e.contextType;return"object"===typeof o&&null!==o?o=no(o):(i=pi(e)?li:fi.current,o=(n=null!==(n=e.contextTypes)&&void 0!==n)?di(t,i):ci),e=new e(r,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=bo,t.stateNode=e,e._reactInternals=t,n&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function yo(t,e,r,n){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(r,n),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&bo.enqueueReplaceState(e,e.state,null)}function go(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs=lo,oo(t);var o=e.contextType;"object"===typeof o&&null!==o?i.context=no(o):(o=pi(e)?li:fi.current,i.context=di(t,o)),fo(t,r,i,n),i.state=t.memoizedState,"function"===typeof(o=e.getDerivedStateFromProps)&&(po(t,e,o,r),i.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(e=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&bo.enqueueReplaceState(i,i.state,null),fo(t,r,i,n),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4)}var wo=Array.isArray;function _o(t,e,r){if(null!==(t=r.ref)&&"function"!==typeof t&&"object"!==typeof t){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"===typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=n.refs;e===lo&&(e=n.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!==typeof t)throw Error(a(284));if(!r._owner)throw Error(a(290,t))}return t}function ko(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function Mo(t){function e(e,r){if(t){var n=e.lastEffect;null!==n?(n.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,n){if(!t)return null;for(;null!==n;)e(r,n),n=n.sibling;return null}function n(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Fu(t,e)).index=0,t.sibling=null,t}function o(e,r,n){return e.index=n,t?null!==(n=e.alternate)?(n=n.index)<r?(e.flags=2,r):n:(e.flags=2,r):r}function s(e){return t&&null===e.alternate&&(e.flags=2),e}function u(t,e,r,n){return null===e||6!==e.tag?((e=Vu(r,t.mode,n)).return=t,e):((e=i(e,r)).return=t,e)}function c(t,e,r,n){return null!==e&&e.elementType===r.type?((n=i(e,r.props)).ref=_o(t,e,r),n.return=t,n):((n=Ku(r.type,r.key,r.props,null,t.mode,n)).ref=_o(t,e,r),n.return=t,n)}function f(t,e,r,n){return null===e||4!==e.tag||e.stateNode.containerInfo!==r.containerInfo||e.stateNode.implementation!==r.implementation?((e=Zu(r,t.mode,n)).return=t,e):((e=i(e,r.children||[])).return=t,e)}function h(t,e,r,n,o){return null===e||7!==e.tag?((e=Hu(r,t.mode,n,o)).return=t,e):((e=i(e,r)).return=t,e)}function l(t,e,r){if("string"===typeof e||"number"===typeof e)return(e=Vu(""+e,t.mode,r)).return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case k:return(r=Ku(e.type,e.key,e.props,null,t.mode,r)).ref=_o(t,null,e),r.return=t,r;case M:return(e=Zu(e,t.mode,r)).return=t,e}if(wo(e)||q(e))return(e=Hu(e,t.mode,r,null)).return=t,e;ko(t,e)}return null}function d(t,e,r,n){var i=null!==e?e.key:null;if("string"===typeof r||"number"===typeof r)return null!==i?null:u(t,e,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return r.key===i?r.type===S?h(t,e,r.props.children,n,i):c(t,e,r,n):null;case M:return r.key===i?f(t,e,r,n):null}if(wo(r)||q(r))return null!==i?null:h(t,e,r,n,null);ko(t,r)}return null}function p(t,e,r,n,i){if("string"===typeof n||"number"===typeof n)return u(e,t=t.get(r)||null,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return t=t.get(null===n.key?r:n.key)||null,n.type===S?h(e,t,n.props.children,i,n.key):c(e,t,n,i);case M:return f(e,t=t.get(null===n.key?r:n.key)||null,n,i)}
vendor: 4,959 bytes, line 2
2if(wo(n)||q(n))return h(e,t=t.get(r)||null,n,i,null);ko(e,n)}return null}function b(i,a,s,u){for(var c=null,f=null,h=a,b=a=0,v=null;null!==h&&b<s.length;b++){h.index>b?(v=h,h=null):v=h.sibling;var m=d(i,h,s[b],u);if(null===m){null===h&&(h=v);break}t&&h&&null===m.alternate&&e(i,h),a=o(m,a,b),null===f?c=m:f.sibling=m,f=m,h=v}if(b===s.length)return r(i,h),c;if(null===h){for(;b<s.length;b++)null!==(h=l(i,s[b],u))&&(a=o(h,a,b),null===f?c=h:f.sibling=h,f=h);return c}for(h=n(i,h);b<s.length;b++)null!==(v=p(h,i,b,s[b],u))&&(t&&null!==v.alternate&&h.delete(null===v.key?b:v.key),a=o(v,a,b),null===f?c=v:f.sibling=v,f=v);return t&&h.forEach((function(t){return e(i,t)})),c}function v(i,s,u,c){var f=q(u);if("function"!==typeof f)throw Error(a(150));if(null==(u=f.call(u)))throw Error(a(151));for(var h=f=null,b=s,v=s=0,m=null,y=u.next();null!==b&&!y.done;v++,y=u.next()){b.index>v?(m=b,b=null):m=b.sibling;var g=d(i,b,y.value,c);if(null===g){null===b&&(b=m);break}t&&b&&null===g.alternate&&e(i,b),s=o(g,s,v),null===h?f=g:h.sibling=g,h=g,b=m}if(y.done)return r(i,b),f;if(null===b){for(;!y.done;v++,y=u.next())null!==(y=l(i,y.value,c))&&(s=o(y,s,v),null===h?f=y:h.sibling=y,h=y);return f}for(b=n(i,b);!y.done;v++,y=u.next())null!==(y=p(b,i,v,y.value,c))&&(t&&null!==y.alternate&&b.delete(null===y.key?v:y.key),s=o(y,s,v),null===h?f=y:h.sibling=y,h=y);return t&&b.forEach((function(t){return e(i,t)})),f}return function(t,n,o,u){var c="object"===typeof o&&null!==o&&o.type===S&&null===o.key;c&&(o=o.props.children);var f="object"===typeof o&&null!==o;if(f)switch(o.$$typeof){case k:t:{for(f=o.key,c=n;null!==c;){if(c.key===f){switch(c.tag){case 7:if(o.type===S){r(t,c.sibling),(n=i(c,o.props.children)).return=t,t=n;break t}break;default:if(c.elementType===o.type){r(t,c.sibling),(n=i(c,o.props)).ref=_o(t,c,o),n.return=t,t=n;break t}}r(t,c);break}e(t,c),c=c.sibling}o.type===S?((n=Hu(o.props.children,t.mode,u,o.key)).return=t,t=n):((u=Ku(o.type,o.key,o.props,null,t.mode,u)).ref=_o(t,n,o),u.return=t,t=u)}return s(t);case M:t:{for(c=o.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(t,n.sibling),(n=i(n,o.children||[])).return=t,t=n;break t}r(t,n);break}e(t,n),n=n.sibling}(n=Zu(o,t.mode,u)).return=t,t=n}return s(t)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==n&&6===n.tag?(r(t,n.sibling),(n=i(n,o)).return=t,t=n):(r(t,n),(n=Vu(o,t.mode,u)).return=t,t=n),s(t);if(wo(o))return b(t,n,o,u);if(q(o))return v(t,n,o,u);if(f&&ko(t,o),"undefined"===typeof o&&!c)switch(t.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,V(t.type)||"Component"))}return r(t,n)}}var So=Mo(!0),Eo=Mo(!1),xo={},Ao=ai(xo),Oo=ai(xo),jo=ai(xo);function Ro(t){if(t===xo)throw Error(a(174));return t}function Io(t,e){switch(ui(jo,e),ui(Oo,t),ui(Ao,xo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:pt(null,"");break;default:e=pt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}si(Ao),ui(Ao,e)}function Po(){si(Ao),si(Oo),si(jo)}function To(t){Ro(jo.current);var e=Ro(Ao.current),r=pt(e,t.type);e!==r&&(ui(Oo,t),ui(Ao,r))}function Co(t){Oo.current===t&&(si(Ao),si(Oo))}var Bo=ai(0);function Lo(t){for(var e=t;null!==e;){if(13===e.tag){var r=e.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var No=null,Do=null,Uo=!1;function zo(t,e){var r=Wu(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=e,r.return=t,r.flags=8,null!==t.lastEffect?(t.lastEffect.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r}function Wo(t,e){switch(t.tag){case 5:var r=t.type;return null!==(e=1!==e.nodeType||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function qo(t){if(Uo){var e=Do;if(e){var r=e;if(!Wo(t,e)){if(!(e=Hn(r.nextSibling))||!Wo(t,e))return t.flags=-1025&t.flags|2,Uo=!1,void(No=t);zo(No,r)}No=t,Do=Hn(e.firstChild)}else t.flags=-1025&t.flags|2,Uo=!1,No=t}}function Fo(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;No=t}function Ko(t){if(t!==No)return!1;if(!Uo)return Fo(t),Uo=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!Wn(e,t.memoizedProps))for(e=Do;e;)zo(t,e),e=Hn(e.nextSibling);if(Fo(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var r=t.data;if("/$"===r){if(0===e){Do=Hn(t.nextSibling);break t}e--}else"$"!==r&&"$!"!==r&&"$?"!==r||e++}t=t.nextSibling}Do=null}}else Do=No?Hn(t.stateNode.nextSibling):null;return!0}
vendor: 26,910 bytes, line 2
2function Ho(){Do=No=null,Uo=!1}var Yo=[];function Vo(){for(var t=0;t<Yo.length;t++)Yo[t]._workInProgressVersionPrimary=null;Yo.length=0}var Zo=_.ReactCurrentDispatcher,Go=_.ReactCurrentBatchConfig,Xo=0,Jo=null,Qo=null,$o=null,ta=!1,ea=!1;function ra(){throw Error(a(321))}function na(t,e){if(null===e)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!sn(t[r],e[r]))return!1;return!0}function ia(t,e,r,n,i,o){if(Xo=o,Jo=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Zo.current=null===t||null===t.memoizedState?Ra:Ia,t=r(n,i),ea){o=0;do{if(ea=!1,!(25>o))throw Error(a(301));o+=1,$o=Qo=null,e.updateQueue=null,Zo.current=Pa,t=r(n,i)}while(ea)}if(Zo.current=ja,e=null!==Qo&&null!==Qo.next,Xo=0,$o=Qo=Jo=null,ta=!1,e)throw Error(a(300));return t}function oa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$o?Jo.memoizedState=$o=t:$o=$o.next=t,$o}function aa(){if(null===Qo){var t=Jo.alternate;t=null!==t?t.memoizedState:null}else t=Qo.next;var e=null===$o?Jo.memoizedState:$o.next;if(null!==e)$o=e,Qo=t;else{if(null===t)throw Error(a(310));t={memoizedState:(Qo=t).memoizedState,baseState:Qo.baseState,baseQueue:Qo.baseQueue,queue:Qo.queue,next:null},null===$o?Jo.memoizedState=$o=t:$o=$o.next=t}return $o}function sa(t,e){return"function"===typeof e?e(t):e}function ua(t){var e=aa(),r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=t;var n=Qo,i=n.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(null!==i){i=i.next,n=n.baseState;var u=s=o=null,c=i;do{var f=c.lane;if((Xo&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),n=c.eagerReducer===t?c.eagerState:t(n,c.action);else{var h={lane:f,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=h,o=n):u=u.next=h,Jo.lanes|=f,Ds|=f}c=c.next}while(null!==c&&c!==i);null===u?o=n:u.next=s,sn(n,e.memoizedState)||(Ca=!0),e.memoizedState=n,e.baseState=o,e.baseQueue=u,r.lastRenderedState=n}return[e.memoizedState,r.dispatch]}function ca(t){var e=aa(),r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,o=e.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{o=t(o,s.action),s=s.next}while(s!==i);sn(o,e.memoizedState)||(Ca=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),r.lastRenderedState=o}return[o,n]}function fa(t,e,r){var n=e._getVersion;n=n(e._source);var i=e._workInProgressVersionPrimary;if(null!==i?t=i===n:(t=t.mutableReadLanes,(t=(Xo&t)===t)&&(e._workInProgressVersionPrimary=n,Yo.push(e))),t)return r(e._source);throw Yo.push(e),Error(a(350))}function ha(t,e,r,n){var i=Rs;if(null===i)throw Error(a(349));var o=e._getVersion,s=o(e._source),u=Zo.current,c=u.useState((function(){return fa(i,e,r)})),f=c[1],h=c[0];c=$o;var l=t.memoizedState,d=l.refs,p=d.getSnapshot,b=l.source;l=l.subscribe;var v=Jo;return t.memoizedState={refs:d,source:e,subscribe:n},u.useEffect((function(){d.getSnapshot=r,d.setSnapshot=f;var t=o(e._source);if(!sn(s,t)){t=r(e._source),sn(h,t)||(f(t),t=fu(v),i.mutableReadLanes|=t&i.pendingLanes),t=i.mutableReadLanes,i.entangledLanes|=t;for(var n=i.entanglements,a=t;0<a;){var u=31-Ke(a),c=1<<u;n[u]|=t,a&=~c}}}),[r,e,n]),u.useEffect((function(){return n(e._source,(function(){var t=d.getSnapshot,r=d.setSnapshot;try{r(t(e._source));var n=fu(v);i.mutableReadLanes|=n&i.pendingLanes}catch(o){r((function(){throw o}))}}))}),[e,n]),sn(p,r)&&sn(b,e)&&sn(l,n)||((t={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:h}).dispatch=f=Oa.bind(null,Jo,t),c.queue=t,c.baseQueue=null,h=fa(i,e,r),c.memoizedState=c.baseState=h),h}function la(t,e,r){return ha(aa(),t,e,r)}function da(t){var e=oa();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:t}).dispatch=Oa.bind(null,Jo,t),[e.memoizedState,t]}function pa(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},null===(e=Jo.updateQueue)?(e={lastEffect:null},Jo.updateQueue=e,e.lastEffect=t.next=t):null===(r=e.lastEffect)?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t),t}function ba(t){return t={current:t},oa().memoizedState=t}function va(){return aa().memoizedState}function ma(t,e,r,n){var i=oa();Jo.flags|=t,i.memoizedState=pa(1|e,r,void 0,void 0===n?null:n)}function ya(t,e,r,n){var i=aa();n=void 0===n?null:n;var o=void 0;if(null!==Qo){var a=Qo.memoizedState;if(o=a.destroy,null!==n&&na(n,a.deps))return void pa(e,r,o,n)}Jo.flags|=t,i.memoizedState=pa(1|e,r,o,n)}function ga(t,e){return ma(516,4,t,e)}function wa(t,e){return ya(516,4,t,e)}function _a(t,e){return ya(4,2,t,e)}function ka(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function Ma(t,e,r){return r=null!==r&&void 0!==r?r.concat([t]):null,ya(4,2,ka.bind(null,e,t),r)}function Sa(){}function Ea(t,e){var r=aa();e=void 0===e?null:e;var n=r.memoizedState;return null!==n&&null!==e&&na(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function xa(t,e){var r=aa();e=void 0===e?null:e;var n=r.memoizedState;return null!==n&&null!==e&&na(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function Aa(t,e){var r=Wi();Fi(98>r?98:r,(function(){t(!0)})),Fi(97<r?97:r,(function(){var r=Go.transition;Go.transition=1;try{t(!1),e()}finally{Go.transition=r}}))}function Oa(t,e,r){var n=cu(),i=fu(t),o={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},a=e.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),e.pending=o,a=t.alternate,t===Jo||null!==a&&a===Jo)ea=ta=!0;else{if(0===t.lanes&&(null===a||0===a.lanes)&&null!==(a=e.lastRenderedReducer))try{var s=e.lastRenderedState,u=a(s,r);if(o.eagerReducer=a,o.eagerState=u,sn(u,s))return}catch(c){}hu(t,i,n)}}var ja={readContext:no,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useLayoutEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useDeferredValue:ra,useTransition:ra,useMutableSource:ra,useOpaqueIdentifier:ra,unstable_isNewReconciler:!1},Ra={readContext:no,useCallback:function(t,e){return oa().memoizedState=[t,void 0===e?null:e],t},useContext:no,useEffect:ga,useImperativeHandle:function(t,e,r){return r=null!==r&&void 0!==r?r.concat([t]):null,ma(4,2,ka.bind(null,e,t),r)},useLayoutEffect:function(t,e){return ma(4,2,t,e)},useMemo:function(t,e){var r=oa();return e=void 0===e?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=oa();return e=void 0!==r?r(e):e,n.memoizedState=n.baseState=e,t=(t=n.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=Oa.bind(null,Jo,t),[n.memoizedState,t]},useRef:ba,useState:da,useDebugValue:Sa,useDeferredValue:function(t){var e=da(t),r=e[0],n=e[1];return ga((function(){var e=Go.transition;Go.transition=1;try{n(t)}finally{Go.transition=e}}),[t]),r},useTransition:function(){var t=da(!1),e=t[0];return ba(t=Aa.bind(null,t[1])),[t,e]},useMutableSource:function(t,e,r){var n=oa();return n.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:r},ha(n,t,e,r)},useOpaqueIdentifier:function(){if(Uo){var t=!1,e=function(t){return{$$typeof:B,toString:t,valueOf:t}}((function(){throw t||(t=!0,r("r:"+(Vn++).toString(36))),Error(a(355))})),r=da(e)[1];return 0===(2&Jo.mode)&&(Jo.flags|=516,pa(5,(function(){r("r:"+(Vn++).toString(36))}),void 0,null)),e}return da(e="r:"+(Vn++).toString(36)),e},unstable_isNewReconciler:!1},Ia={readContext:no,useCallback:Ea,useContext:no,useEffect:wa,useImperativeHandle:Ma,useLayoutEffect:_a,useMemo:xa,useReducer:ua,useRef:va,useState:function(){return ua(sa)},useDebugValue:Sa,useDeferredValue:function(t){var e=ua(sa),r=e[0],n=e[1];return wa((function(){var e=Go.transition;Go.transition=1;try{n(t)}finally{Go.transition=e}}),[t]),r},useTransition:function(){var t=ua(sa)[0];return[va().current,t]},useMutableSource:la,useOpaqueIdentifier:function(){return ua(sa)[0]},unstable_isNewReconciler:!1},Pa={readContext:no,useCallback:Ea,useContext:no,useEffect:wa,useImperativeHandle:Ma,useLayoutEffect:_a,useMemo:xa,useReducer:ca,useRef:va,useState:function(){return ca(sa)},useDebugValue:Sa,useDeferredValue:function(t){var e=ca(sa),r=e[0],n=e[1];return wa((function(){var e=Go.transition;Go.transition=1;try{n(t)}finally{Go.transition=e}}),[t]),r},useTransition:function(){var t=ca(sa)[0];return[va().current,t]},useMutableSource:la,useOpaqueIdentifier:function(){return ca(sa)[0]},unstable_isNewReconciler:!1},Ta=_.ReactCurrentOwner,Ca=!1;function Ba(t,e,r,n){e.child=null===t?Eo(e,null,r,n):So(e,t.child,r,n)}function La(t,e,r,n,i){r=r.render;var o=e.ref;return ro(e,i),n=ia(t,e,r,n,o,i),null===t||Ca?(e.flags|=1,Ba(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~i,rs(t,e,i))}function Na(t,e,r,n,i,o){if(null===t){var a=r.type;return"function"!==typeof a||qu(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((t=Ku(r.type,null,n,e,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Da(t,e,a,n,i,o))}return a=t.child,0===(i&o)&&(i=a.memoizedProps,(r=null!==(r=r.compare)?r:cn)(i,n)&&t.ref===e.ref)?rs(t,e,o):(e.flags|=1,(t=Fu(a,n)).ref=e.ref,t.return=e,e.child=t)}function Da(t,e,r,n,i,o){if(null!==t&&cn(t.memoizedProps,n)&&t.ref===e.ref){if(Ca=!1,0===(o&i))return e.lanes=t.lanes,rs(t,e,o);0!==(16384&t.flags)&&(Ca=!0)}return Wa(t,e,r,n,o)}function Ua(t,e,r){var n=e.pendingProps,i=n.children,o=null!==t?t.memoizedState:null;if("hidden"===n.mode||"unstable-defer-without-hiding"===n.mode)if(0===(4&e.mode))e.memoizedState={baseLanes:0},gu(e,r);else{if(0===(1073741824&r))return t=null!==o?o.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},gu(e,t),null;e.memoizedState={baseLanes:0},gu(e,null!==o?o.baseLanes:r)}else null!==o?(n=o.baseLanes|r,e.memoizedState=null):n=r,gu(e,n);return Ba(t,e,i,r),e.child}function za(t,e){var r=e.ref;(null===t&&null!==r||null!==t&&t.ref!==r)&&(e.flags|=128)}function Wa(t,e,r,n,i){var o=pi(r)?li:fi.current;return o=di(e,o),ro(e,i),r=ia(t,e,r,n,o,i),null===t||Ca?(e.flags|=1,Ba(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~i,rs(t,e,i))}function qa(t,e,r,n,i){if(pi(r)){var o=!0;yi(e)}else o=!1;if(ro(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),mo(e,r,n),go(e,r,n,i),n=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var u=a.context,c=r.contextType;"object"===typeof c&&null!==c?c=no(c):c=di(e,c=pi(r)?li:fi.current);var f=r.getDerivedStateFromProps,h="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate;h||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==n||u!==c)&&yo(e,a,n,c),io=!1;var l=e.memoizedState;a.state=l,fo(e,n,a,i),u=e.memoizedState,s!==n||l!==u||hi.current||io?("function"===typeof f&&(po(e,r,f,n),u=e.memoizedState),(s=io||vo(e,r,s,n,l,u,c))?(h||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(e.flags|=4)):("function"===typeof a.componentDidMount&&(e.flags|=4),e.memoizedProps=n,e.memoizedState=u),a.props=n,a.state=u,a.context=c,n=s):("function"===typeof a.componentDidMount&&(e.flags|=4),n=!1)}else{a=e.stateNode,ao(t,e),s=e.memoizedProps,c=e.type===e.elementType?s:Zi(e.type,s),a.props=c,h=e.pendingProps,l=a.context,"object"===typeof(u=r.contextType)&&null!==u?u=no(u):u=di(e,u=pi(r)?li:fi.current);var d=r.getDerivedStateFromProps;(f="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==h||l!==u)&&yo(e,a,n,u),io=!1,l=e.memoizedState,a.state=l,fo(e,n,a,i);var p=e.memoizedState;s!==h||l!==p||hi.current||io?("function"===typeof d&&(po(e,r,d,n),p=e.memoizedState),(c=io||vo(e,r,c,n,l,p,u))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,u)),"function"===typeof a.componentDidUpdate&&(e.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(e.flags|=256)):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.flags|=256),e.memoizedProps=n,e.memoizedState=p),a.props=n,a.state=p,a.context=u,n=c):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.flags|=256),n=!1)}return Fa(t,e,r,n,o,i)}function Fa(t,e,r,n,i,o){za(t,e);var a=0!==(64&e.flags);if(!n&&!a)return i&&gi(e,r,!1),rs(t,e,o);n=e.stateNode,Ta.current=e;var s=a&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return e.flags|=1,null!==t&&a?(e.child=So(e,t.child,null,o),e.child=So(e,null,s,o)):Ba(t,e,s,o),e.memoizedState=n.state,i&&gi(e,r,!0),e.child}function Ka(t){var e=t.stateNode;e.pendingContext?vi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&vi(0,e.context,!1),Io(t,e.containerInfo)}var Ha,Ya,Va,Za={dehydrated:null,retryLane:0};function Ga(t,e,r){var n,i=e.pendingProps,o=Bo.current,a=!1;return(n=0!==(64&e.flags))||(n=(null===t||null!==t.memoizedState)&&0!==(2&o)),n?(a=!0,e.flags&=-65):null!==t&&null===t.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ui(Bo,1&o),null===t?(void 0!==i.fallback&&qo(e),t=i.children,o=i.fallback,a?(t=Xa(e,t,o,r),e.child.memoizedState={baseLanes:r},e.memoizedState=Za,t):"number"===typeof i.unstable_expectedLoadTime?(t=Xa(e,t,o,r),e.child.memoizedState={baseLanes:r},e.memoizedState=Za,e.lanes=33554432,t):((r=Yu({mode:"visible",children:t},e.mode,r,null)).return=e,e.child=r)):(t.memoizedState,a?(i=Qa(t,e,i.children,i.fallback,r),a=e.child,o=t.child.memoizedState,a.memoizedState=null===o?{baseLanes:r}:{baseLanes:o.baseLanes|r},a.childLanes=t.childLanes&~r,e.memoizedState=Za,i):(r=Ja(t,e,i.children,r),e.memoizedState=null,r))}function Xa(t,e,r,n){var i=t.mode,o=t.child;return e={mode:"hidden",children:e},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=e):o=Yu(e,i,0,null),r=Hu(r,i,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r}function Ja(t,e,r,n){var i=t.child;return t=i.sibling,r=Fu(i,{mode:"visible",children:r}),0===(2&e.mode)&&(r.lanes=n),r.return=e,r.sibling=null,null!==t&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=r}function Qa(t,e,r,n,i){var o=e.mode,a=t.child;t=a.sibling;var s={mode:"hidden",children:r};return 0===(2&o)&&e.child!==a?((r=e.child).childLanes=0,r.pendingProps=s,null!==(a=r.lastEffect)?(e.firstEffect=r.firstEffect,e.lastEffect=a,a.nextEffect=null):e.firstEffect=e.lastEffect=null):r=Fu(a,s),null!==t?n=Fu(t,n):(n=Hu(n,o,i,null)).flags|=2,n.return=e,r.return=e,r.sibling=n,e.child=r,n}function $a(t,e){t.lanes|=e;var r=t.alternate;null!==r&&(r.lanes|=e),eo(t.return,e)}function ts(t,e,r,n,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i,a.lastEffect=o)}function es(t,e,r){var n=e.pendingProps,i=n.revealOrder,o=n.tail;if(Ba(t,e,n.children,r),0!==(2&(n=Bo.current)))n=1&n|2,e.flags|=64;else{if(null!==t&&0!==(64&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&$a(t,r);else if(19===t.tag)$a(t,r);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(ui(Bo,n),0===(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;null!==r;)null!==(t=r.alternate)&&null===Lo(t)&&(i=r),r=r.sibling;null===(r=i)?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),ts(e,!1,i,r,o,e.lastEffect);break;case"backwards":for(r=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Lo(t)){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}ts(e,!0,r,null,o,e.lastEffect);break;case"together":ts(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function rs(t,e,r){if(null!==t&&(e.dependencies=t.dependencies),Ds|=e.lanes,0!==(r&e.childLanes)){if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(r=Fu(t=e.child,t.pendingProps),e.child=r,r.return=e;null!==t.sibling;)t=t.sibling,(r=r.sibling=Fu(t,t.pendingProps)).return=e;r.sibling=null}return e.child}return null}function ns(t,e){if(!Uo)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;null!==e;)null!==e.alternate&&(r=e),e=e.sibling;null===r?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?e||null===t.tail?t.tail=null:t.tail.sibling=null:n.sibling=null}}function is(t,e,r){var n=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return pi(e.type)&&bi(),null;case 3:return Po(),si(hi),si(fi),Vo(),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||(Ko(e)?e.flags|=4:n.hydrate||(e.flags|=256)),null;case 5:Co(e);var o=Ro(jo.current);if(r=e.type,null!==t&&null!=e.stateNode)Ya(t,e,r,n),t.ref!==e.ref&&(e.flags|=128);else{if(!n){if(null===e.stateNode)throw Error(a(166));return null}if(t=Ro(Ao.current),Ko(e)){n=e.stateNode,r=e.type;var s=e.memoizedProps;switch(n[Gn]=e,n[Xn]=s,r){case"dialog":An("cancel",n),An("close",n);break;case"iframe":case"object":case"embed":An("load",n);break;case"video":case"audio":for(t=0;t<Mn.length;t++)An(Mn[t],n);break;case"source":An("error",n);break;case"img":case"image":case"link":An("error",n),An("load",n);break;case"details":An("toggle",n);break;case"input":tt(n,s),An("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},An("invalid",n);break;case"textarea":ut(n,s),An("invalid",n)}for(var c in St(r,s),t=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"===typeof o?n.textContent!==o&&(t=["children",o]):"number"===typeof o&&n.textContent!==""+o&&(t=["children",""+o]):u.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&An("scroll",n));switch(r){case"input":X(n),nt(n,s,!0);break;case"textarea":X(n),ft(n);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(n.onclick=Nn)}n=t,e.updateQueue=n,null!==n&&(e.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,t===ht&&(t=dt(r)),t===ht?"script"===r?((t=c.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"===typeof n.is?t=c.createElement(r,{is:n.is}):(t=c.createElement(r),"select"===r&&(c=t,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):t=c.createElementNS(t,r),t[Gn]=e,t[Xn]=n,Ha(t,e),e.stateNode=t,c=Et(r,n),r){case"dialog":An("cancel",t),An("close",t),o=n;break;case"iframe":case"object":case"embed":An("load",t),o=n;break;case"video":case"audio":for(o=0;o<Mn.length;o++)An(Mn[o],t);o=n;break;case"source":An("error",t),o=n;break;case"img":case"image":case"link":An("error",t),An("load",t),o=n;break;case"details":An("toggle",t),o=n;break;case"input":tt(t,n),o=$(t,n),An("invalid",t);break;case"option":o=ot(t,n);break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=i({},n,{value:void 0}),An("invalid",t);break;case"textarea":ut(t,n),o=st(t,n),An("invalid",t);break;default:o=n}St(r,o);var f=o;for(s in f)if(f.hasOwnProperty(s)){var h=f[s];"style"===s?kt(t,h):"dangerouslySetInnerHTML"===s?null!=(h=h?h.__html:void 0)&&mt(t,h):"children"===s?"string"===typeof h?("textarea"!==r||""!==h)&&yt(t,h):"number"===typeof h&&yt(t,""+h):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=h&&"onScroll"===s&&An("scroll",t):null!=h&&w(t,s,h,c))}switch(r){case"input":X(t),nt(t,n,!1);break;case"textarea":X(t),ft(t);break;case"option":null!=n.value&&t.setAttribute("value",""+Z(n.value));break;case"select":t.multiple=!!n.multiple,null!=(s=n.value)?at(t,!!n.multiple,s,!1):null!=n.defaultValue&&at(t,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof o.onClick&&(t.onclick=Nn)}zn(r,n)&&(e.flags|=4)}null!==e.ref&&(e.flags|=128)}return null;case 6:if(t&&null!=e.stateNode)Va(0,e,t.memoizedProps,n);else{if("string"!==typeof n&&null===e.stateNode)throw Error(a(166));r=Ro(jo.current),Ro(Ao.current),Ko(e)?(n=e.stateNode,r=e.memoizedProps,n[Gn]=e,n.nodeValue!==r&&(e.flags|=4)):((n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Gn]=e,e.stateNode=n)}return null;case 13:return si(Bo),n=e.memoizedState,0!==(64&e.flags)?(e.lanes=r,e):(n=null!==n,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Ko(e):r=null!==t.memoizedState,n&&!r&&0!==(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!==(1&Bo.current)?0===Bs&&(Bs=3):(0!==Bs&&3!==Bs||(Bs=4),null===Rs||0===(134217727&Ds)&&0===(134217727&Us)||bu(Rs,Ps))),(n||r)&&(e.flags|=4),null);case 4:return Po(),null===t&&jn(e.stateNode.containerInfo),null;case 10:return to(e),null;case 17:return pi(e.type)&&bi(),null;case 19:if(si(Bo),null===(n=e.memoizedState))return null;if(s=0!==(64&e.flags),null===(c=n.rendering))if(s)ns(n,!1);else{if(0!==Bs||null!==t&&0!==(64&t.flags))for(t=e.child;null!==t;){if(null!==(c=Lo(t))){for(e.flags|=64,ns(n,!1),null!==(s=c.updateQueue)&&(e.updateQueue=s,e.flags|=4),null===n.lastEffect&&(e.firstEffect=null),e.lastEffect=n.lastEffect,n=r,r=e.child;null!==r;)t=n,(s=r).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=t,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,t=c.dependencies,s.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return ui(Bo,1&Bo.current|2),e.child}t=t.sibling}null!==n.tail&&zi()>Fs&&(e.flags|=64,s=!0,ns(n,!1),e.lanes=33554432)}else{if(!s)if(null!==(t=Lo(c))){if(e.flags|=64,s=!0,null!==(r=t.updateQueue)&&(e.updateQueue=r,e.flags|=4),ns(n,!0),null===n.tail&&"hidden"===n.tailMode&&!c.alternate&&!Uo)return null!==(e=e.lastEffect=n.lastEffect)&&(e.nextEffect=null),null}else 2*zi()-n.renderingStartTime>Fs&&1073741824!==r&&(e.flags|=64,s=!0,ns(n,!1),e.lanes=33554432);n.isBackwards?(c.sibling=e.child,e.child=c):(null!==(r=n.last)?r.sibling=c:e.child=c,n.last=c)}return null!==n.tail?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=e.lastEffect,n.renderingStartTime=zi(),r.sibling=null,e=Bo.current,ui(Bo,s?1&e|2:1&e),r):null;case 23:case 24:return wu(),null!==t&&null!==t.memoizedState!==(null!==e.memoizedState)&&"unstable-defer-without-hiding"!==n.mode&&(e.flags|=4),null}throw Error(a(156,e.tag))}function os(t){switch(t.tag){case 1:pi(t.type)&&bi();var e=t.flags;return 4096&e?(t.flags=-4097&e|64,t):null;case 3:if(Po(),si(hi),si(fi),Vo(),0!==(64&(e=t.flags)))throw Error(a(285));return t.flags=-4097&e|64,t;case 5:return Co(t),null;case 13:return si(Bo),4096&(e=t.flags)?(t.flags=-4097&e|64,t):null;case 19:return si(Bo),null;case 4:return Po(),null;case 10:return to(t),null;case 23:case 24:return wu(),null;default:return null}}function as(t,e){try{var r="",n=e;do{r+=Y(n),n=n.return}while(n);var i=r}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:t,source:e,stack:i}}function ss(t,e){try{console.error(e.value)}catch(r){setTimeout((function(){throw r}))}}Ha=function(t,e){for(var r=e.child;null!==r;){if(5===r.tag||6===r.tag)t.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ya=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,Ro(Ao.current);var a,s=null;switch(r){case"input":o=$(t,o),n=$(t,n),s=[];break;case"option":o=ot(t,o),n=ot(t,n),s=[];break;case"select":o=i({},o,{value:void 0}),n=i({},n,{value:void 0}),s=[];break;case"textarea":o=st(t,o),n=st(t,n),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof n.onClick&&(t.onclick=Nn)}for(h in St(r,n),r=null,o)if(!n.hasOwnProperty(h)&&o.hasOwnProperty(h)&&null!=o[h])if("style"===h){var c=o[h];for(a in c)c.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==h&&"children"!==h&&"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(u.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in n){var f=n[h];if(c=null!=o?o[h]:void 0,n.hasOwnProperty(h)&&f!==c&&(null!=f||null!=c))if("style"===h)if(c){for(a in c)!c.hasOwnProperty(a)||f&&f.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in f)f.hasOwnProperty(a)&&c[a]!==f[a]&&(r||(r={}),r[a]=f[a])}else r||(s||(s=[]),s.push(h,r)),r=f;else"dangerouslySetInnerHTML"===h?(f=f?f.__html:void 0,c=c?c.__html:void 0,null!=f&&c!==f&&(s=s||[]).push(h,f)):"children"===h?"string"!==typeof f&&"number"!==typeof f||(s=s||[]).push(h,""+f):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&(u.hasOwnProperty(h)?(null!=f&&"onScroll"===h&&An("scroll",t),s||c===f||(s=[])):"object"===typeof f&&null!==f&&f.$$typeof===B?f.toString():(s=s||[]).push(h,f))}r&&(s=s||[]).push("style",r);var h=s;(e.updateQueue=h)&&(e.flags|=4)}},Va=function(t,e,r,n){r!==n&&(e.flags|=4)};var us="function"===typeof WeakMap?WeakMap:Map;function cs(t,e,r){(r=so(-1,r)).tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){Vs||(Vs=!0,Zs=n),ss(0,e)},r}function fs(t,e,r){(r=so(-1,r)).tag=3;var n=t.type.getDerivedStateFromError;if("function"===typeof n){var i=e.value;r.payload=function(){return ss(0,e),n(i)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(r.callback=function(){"function"!==typeof n&&(null===Gs?Gs=new Set([this]):Gs.add(this),ss(0,e));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),r}var hs="function"===typeof WeakSet?WeakSet:Set;function ls(t){var e=t.ref;if(null!==e)if("function"===typeof e)try{e(null)}catch(r){Nu(t,r)}else e.current=null}function ds(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.flags&&null!==t){var r=t.memoizedProps,n=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?r:Zi(e.type,r),n),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:return void(256&e.flags&&Kn(e.stateNode.containerInfo));
vendor: 5,188 bytes, line 2
2case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ps(t,e,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(e=null!==(e=r.updateQueue)?e.lastEffect:null)){t=e=e.next;do{if(3===(3&t.tag)){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}if(null!==(e=null!==(e=r.updateQueue)?e.lastEffect:null)){t=e=e.next;do{var i=t;n=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Cu(r,t),Tu(r,t)),t=n}while(t!==e)}return;case 1:return t=r.stateNode,4&r.flags&&(null===e?t.componentDidMount():(n=r.elementType===r.type?e.memoizedProps:Zi(r.type,e.memoizedProps),t.componentDidUpdate(n,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),void(null!==(e=r.updateQueue)&&ho(r,e,t));case 3:if(null!==(e=r.updateQueue)){if(t=null,null!==r.child)switch(r.child.tag){case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}ho(r,e,t)}return;case 5:return t=r.stateNode,void(null===e&&4&r.flags&&zn(r.type,r.memoizedProps)&&t.focus());case 6:case 4:case 12:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&ke(r)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function bs(t,e){for(var r=t;;){if(5===r.tag){var n=r.stateNode;if(e)"function"===typeof(n=n.style).setProperty?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,n.style.display=_t("display",i)}}else if(6===r.tag)r.stateNode.nodeValue=e?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===t)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function vs(t,e){if(_i&&"function"===typeof _i.onCommitFiberUnmount)try{_i.onCommitFiberUnmount(wi,e)}catch(o){}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t=t.next;do{var n=r,i=n.destroy;if(n=n.tag,void 0!==i)if(0!==(4&n))Cu(e,r);else{n=e;try{i()}catch(o){Nu(n,o)}}r=r.next}while(r!==t)}break;case 1:if(ls(e),"function"===typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(o){Nu(e,o)}break;case 5:ls(e);break;case 4:ks(t,e)}}function ms(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function ys(t){return 5===t.tag||3===t.tag||4===t.tag}function gs(t){t:{for(var e=t.return;null!==e;){if(ys(e))break t;e=e.return}throw Error(a(160))}var r=e;switch(e=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:e=e.containerInfo,n=!0;break;default:throw Error(a(161))}16&r.flags&&(yt(e,""),r.flags&=-17);t:e:for(r=t;;){for(;null===r.sibling;){if(null===r.return||ys(r.return)){r=null;break t}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue e;if(null===r.child||4===r.tag)continue e;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break t}}n?ws(t,r,e):_s(t,r,e)}function ws(t,e,r){var n=t.tag,i=5===n||6===n;if(i)t=i?t.stateNode:t.stateNode.instance,e?8===r.nodeType?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(8===r.nodeType?(e=r.parentNode).insertBefore(t,r):(e=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==e.onclick||(e.onclick=Nn));else if(4!==n&&null!==(t=t.child))for(ws(t,e,r),t=t.sibling;null!==t;)ws(t,e,r),t=t.sibling}function _s(t,e,r){var n=t.tag,i=5===n||6===n;if(i)t=i?t.stateNode:t.stateNode.instance,e?r.insertBefore(t,e):r.appendChild(t);else if(4!==n&&null!==(t=t.child))for(_s(t,e,r),t=t.sibling;null!==t;)_s(t,e,r),t=t.sibling}function ks(t,e){for(var r,n,i=e,o=!1;;){if(!o){o=i.return;t:for(;;){if(null===o)throw Error(a(160));switch(r=o.stateNode,o.tag){case 5:n=!1;break t;case 3:case 4:r=r.containerInfo,n=!0;break t}o=o.return}o=!0}if(5===i.tag||6===i.tag){t:for(var s=t,u=i,c=u;;)if(vs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break t;for(;null===c.sibling;){if(null===c.return||c.return===u)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}n?(s=r,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,n=!0,i.child.return=i,i=i.child;continue}}else if(vs(t,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Ms(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var r=e.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var n=r=r.next;do{3===(3&n.tag)&&(t=n.destroy,n.destroy=void 0,void 0!==t&&t()),n=n.next}while(n!==r)}return;case 1:return;case 5:if(null!=(r=e.stateNode)){n=e.memoizedProps;var i=null!==t?t.memoizedProps:n;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(r[Xn]=n,"input"===t&&"radio"===n.type&&null!=n.name&&et(r,n),Et
vendor: 10,062 bytes, line 2
2(t,i),e=Et(t,n),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?kt(r,u):"dangerouslySetInnerHTML"===s?mt(r,u):"children"===s?yt(r,u):w(r,s,u,e)}switch(t){case"input":rt(r,n);break;case"textarea":ct(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(o=n.value)?at(r,!!n.multiple,o,!1):t!==!!n.multiple&&(null!=n.defaultValue?at(r,!!n.multiple,n.defaultValue,!0):at(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((r=e.stateNode).hydrate&&(r.hydrate=!1,ke(r.containerInfo)));case 12:return;case 13:return null!==e.memoizedState&&(qs=zi(),bs(e.child,!0)),void Ss(e);case 19:return void Ss(e);case 17:return;case 23:case 24:return void bs(e,null!==e.memoizedState)}throw Error(a(163))}function Ss(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var r=t.stateNode;null===r&&(r=t.stateNode=new hs),e.forEach((function(e){var n=Uu.bind(null,t,e);r.has(e)||(r.add(e),e.then(n,n))}))}}function Es(t,e){return null!==t&&(null===(t=t.memoizedState)||null!==t.dehydrated)&&(null!==(e=e.memoizedState)&&null===e.dehydrated)}var xs=Math.ceil,As=_.ReactCurrentDispatcher,Os=_.ReactCurrentOwner,js=0,Rs=null,Is=null,Ps=0,Ts=0,Cs=ai(0),Bs=0,Ls=null,Ns=0,Ds=0,Us=0,zs=0,Ws=null,qs=0,Fs=1/0;function Ks(){Fs=zi()+500}var Hs,Ys=null,Vs=!1,Zs=null,Gs=null,Xs=!1,Js=null,Qs=90,$s=[],tu=[],eu=null,ru=0,nu=null,iu=-1,ou=0,au=0,su=null,uu=!1;function cu(){return 0!==(48&js)?zi():-1!==iu?iu:iu=zi()}function fu(t){if(0===(2&(t=t.mode)))return 1;if(0===(4&t))return 99===Wi()?1:2;if(0===ou&&(ou=Ns),0!==Vi.transition){0!==au&&(au=null!==Ws?Ws.pendingLanes:0),t=ou;var e=4186112&~au;return 0===(e&=-e)&&(0===(e=(t=4186112&~t)&-t)&&(e=8192)),e}return t=Wi(),0!==(4&js)&&98===t?t=ze(12,ou):t=ze(t=function(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(t),ou),t}function hu(t,e,r){if(50<ru)throw ru=0,nu=null,Error(a(185));if(null===(t=lu(t,e)))return null;Fe(t,e,r),t===Rs&&(Us|=e,4===Bs&&bu(t,Ps));var n=Wi();1===e?0!==(8&js)&&0===(48&js)?vu(t):(du(t,r),0===js&&(Ks(),Hi())):(0===(4&js)||98!==n&&99!==n||(null===eu?eu=new Set([t]):eu.add(t)),du(t,r)),Ws=t}function lu(t,e){t.lanes|=e;var r=t.alternate;for(null!==r&&(r.lanes|=e),r=t,t=t.return;null!==t;)t.childLanes|=e,null!==(r=t.alternate)&&(r.childLanes|=e),r=t,t=t.return;return 3===r.tag?r.stateNode:null}function du(t,e){for(var r=t.callbackNode,n=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,s=t.pendingLanes;0<s;){var u=31-Ke(s),c=1<<u,f=o[u];if(-1===f){if(0===(c&n)||0!==(c&i)){f=e,Ne(c);var h=Le;o[u]=10<=h?f+250:6<=h?f+5e3:-1}}else f<=e&&(t.expiredLanes|=c);s&=~c}if(n=De(t,t===Rs?Ps:0),e=Le,0===n)null!==r&&(r!==Ci&&Si(r),t.callbackNode=null,t.callbackPriority=0);else{if(null!==r){if(t.callbackPriority===e)return;r!==Ci&&Si(r)}15===e?(r=vu.bind(null,t),null===Li?(Li=[r],Ni=Mi(ji,Yi)):Li.push(r),r=Ci):14===e?r=Ki(99,vu.bind(null,t)):r=Ki(r=function(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,t))}}(e),pu.bind(null,t)),t.callbackPriority=e,t.callbackNode=r}}function pu(t){if(iu=-1,au=ou=0,0!==(48&js))throw Error(a(327));var e=t.callbackNode;if(Pu()&&t.callbackNode!==e)return null;var r=De(t,t===Rs?Ps:0);if(0===r)return null;var n=r,i=js;js|=16;var o=Mu();for(Rs===t&&Ps===n||(Ks(),_u(t,n));;)try{xu();break}catch(u){ku(t,u)}if($i(),As.current=o,js=i,null!==Is?n=0:(Rs=null,Ps=0,n=Bs),0!==(Ns&Us))_u(t,0);else if(0!==n){if(2===n&&(js|=64,t.hydrate&&(t.hydrate=!1,Kn(t.containerInfo)),0!==(r=Ue(t))&&(n=Su(t,r))),1===n)throw e=Ls,_u(t,0),bu(t,r),du(t,zi()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=r,n){case 0:case 1:throw Error(a(345));case 2:ju(t);break;case 3:if(bu(t,r),(62914560&r)===r&&10<(n=qs+500-zi())){if(0!==De(t,0))break;if(((i=t.suspendedLanes)&r)!==r){cu(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=qn(ju.bind(null,t),n);break}ju(t);break;case 4:if(bu(t,r),(4186112&r)===r)break;for(n=t.eventTimes,i=-1;0<r;){var s=31-Ke(r);o=1<<s,(s=n[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=zi()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xs(r/1960))-r)){t.timeoutHandle=qn(ju.bind(null,t),r);break}ju(t);break;case 5:ju(t);break;default:throw Error(a(329))}}return du(t,zi()),t.callbackNode===e?pu.bind(null,t):null}function bu(t,e){for(e&=~zs,e&=~Us,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Ke(e),n=1<<r;t[r]=-1,e&=~n}}function vu(t){if(0!==(48&js))throw Error(a(327));if(Pu(),t===Rs&&0!==(t.expiredLanes&Ps)){var e=Ps,r=Su(t,e);0!==(Ns&Us)&&(r=Su(t,e=De(t,e)))}else r=Su(t,e=De(t,0));if(0!==t.tag&&2===r&&(js|=64,t.hydrate&&(t.hydrate=!1,Kn(t.containerInfo)),0!==(e=Ue(t))&&(r=Su(t,e))),1===r)throw r=Ls,_u(t,0),bu(t,e),du(t,zi()),r;return t.finishedWork=t.current.alternate,t.finishedLanes=e,ju(t),du(t,zi()),null}function mu(t,e){var r=js;js|=1;try{return t(e)}finally{0===(js=r)&&(Ks(),Hi())}}function yu(t,e){var r=js;js&=-2,js|=8;try{return t(e)}finally{0===(js=r)&&(Ks(),Hi())}}function gu(t,e){ui(Cs,Ts),Ts|=e,Ns|=e}function wu(){Ts=Cs.current,si(Cs)}function _u(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(-1!==r&&(t.timeoutHandle=-1,Fn(r)),null!==Is)for(r=Is.return;null!==r;){var n=r;switch(n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&bi();break;case 3:Po(),si(hi),si(fi),Vo();break;case 5:Co(n);break;case 4:Po();break;case 13:case 19:si(Bo);break;case 10:to(n);break;case 23:case 24:wu()}r=r.return}Rs=t,Is=Fu(t.current,null),Ps=Ts=Ns=e,Bs=0,Ls=null,zs=Us=Ds=0}function ku(t,e){for(;;){var r=Is;try{if($i(),Zo.current=ja,ta){for(var n=Jo.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ta=!1}if(Xo=0,$o=Qo=Jo=null,ea=!1,Os.current=null,null===r||null===r.return){Bs=1,Ls=e,Is=null;break}t:{var o=t,a=r.return,s=r,u=e;if(e=Ps,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u;if(0===(2&s.mode)){var f=s.alternate;f?(s.updateQueue=f.updateQueue,s.memoizedState=f.memoizedState,s.lanes=f.lanes):(s.updateQueue=null,s.memoizedState=null)}var h=0!==(1&Bo.current),l=a;do{var d;if(d=13===l.tag){var p=l.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var b=l.memoizedProps;d=void 0!==b.fallback&&(!0!==b.unstable_avoidThisFallback||!h)}}if(d){var v=l.updateQueue;if(null===v){var m=new Set;m.add(c),l.updateQueue=m}else v.add(c);if(0===(2&l.mode)){if(l.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=so(-1,1);y.tag=2,uo(s,y)}s.lanes|=1;break t}u=void 0,s=e;var g=o.pingCache;if(null===g?(g=o.pingCache=new us,u=new Set,g.set(c,u)):void 0===(u=g.get(c))&&(u=new Set,g.set(c,u)),!u.has(s)){u.add(s);var w=Du.bind(null,o,c,s);c.then(w,w)}l.flags|=4096,l.lanes=e;break t}l=l.return}while(null!==l);u=Error((V(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Bs&&(Bs=2),u=as(u,s),l=a;do{switch(l.tag){case 3:o=u,l.flags|=4096,e&=-e,l.lanes|=e,co(l,cs(0,o,e));break t;case 1:o=u;var _=l.type,k=l.stateNode;if(0===(64&l.flags)&&("function"===typeof _.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Gs||!Gs.has(k)))){l.flags|=4096,e&=-e,l.lanes|=e,co(l,fs(l,o,e));break t}}l=l.return}while(null!==l)}Ou(r)}catch(M){e=M,Is===r&&null!==r&&(Is=r=r.return);continue}break}}function Mu(){var t=As.current;return As.current=ja,null===t?ja:t}function Su(t,e){var r=js;js|=16;var n=Mu();for(Rs===t&&Ps===e||_u(t,e);;)try{Eu();break}catch(i){ku(t,i)}if($i(),js=r,As.current=n,null!==Is)throw Error(a(261));return Rs=null,Ps=0,Bs}function Eu(){for(;null!==Is;)Au(Is)}function xu(){for(;null!==Is&&!Ei();)Au(Is)}function Au(t){var e=Hs(t.alternate,t,Ts);t.memoizedProps=t.pendingProps,null===e?Ou(t):Is=e,Os.current=null}function Ou(t){var e=t;do{var r=e.alternate;if(t=e.return,0===(2048&e.flags)){if(null!==(r=is(r,e,Ts)))return void(Is=r);if(24!==(r=e).tag&&23!==r.tag||null===r.memoizedState||0!==(1073741824&Ts)||0===(4&r.mode)){for(var n=0,i=r.child;null!==i;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}null!==t&&0===(2048&t.flags)&&(null===t.firstEffect&&(t.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(null!==t.lastEffect?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}else{if(null!==(r=os(e)))return r.flags&=2047,void(Is=r);null!==t&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}if(null!==(e=e.sibling))return void(Is=e);Is=e=t}while(null!==e);0===Bs&&(Bs=5)}function ju(t){var e=Wi();return Fi(99,Ru.bind(null,t,e)),null}function Ru(t,e){do{Pu()}while(null!==Js);if(0!==(48&js))throw Error(a(327));var r=t.finishedWork;if(null===r)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(a(177));t.callbackNode=null;var n=r.lanes|r.childLanes,i=n,o=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;for(var s=t.eventTimes,u=t.expirationTimes;0<o;){var c=31-Ke(o),f=1<<c;i[c]=0,s[c]=-1,u[c]=-1,o&=~f}if(null!==eu&&0===(24&n)&&eu.has(t)&&eu.delete(t),t===Rs&&(Is=Rs=null,Ps=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,null!==n){if(i=js,js|=32,Os.current=null,Dn=Ge,pn(s=dn())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else t:if(u=(u=s.ownerDocument)&&u.defaultView||window,(f=u.getSelection&&u.getSelection())&&0!==f.rangeCount){u=f.anchorNode,o=f.anchorOffset,c=f.focusNode,f=f.focusOffset;try{u.nodeType,c.nodeType}catch(x){u=null;break t}var h=0,l=-1,d=-1,p=0,b=0,v=s,m=null;e:for(;;){for(var y;
vendor: 5,008 bytes, line 2
2v!==u||0!==o&&3!==v.nodeType||(l=h+o),v!==c||0!==f&&3!==v.nodeType||(d=h+f),3===v.nodeType&&(h+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===s)break e;if(m===u&&++p===o&&(l=h),m===c&&++b===f&&(d=h),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}u=-1===l||-1===d?null:{start:l,end:d}}else u=null;u=u||{start:0,end:0}}else u=null;Un={focusedElem:s,selectionRange:u},Ge=!1,su=null,uu=!1,Ys=n;do{try{Iu()}catch(x){if(null===Ys)throw Error(a(330));Nu(Ys,x),Ys=Ys.nextEffect}}while(null!==Ys);su=null,Ys=n;do{try{for(s=t;null!==Ys;){var g=Ys.flags;if(16&g&&yt(Ys.stateNode,""),128&g){var w=Ys.alternate;if(null!==w){var _=w.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&g){case 2:gs(Ys),Ys.flags&=-3;break;case 6:gs(Ys),Ys.flags&=-3,Ms(Ys.alternate,Ys);break;case 1024:Ys.flags&=-1025;break;case 1028:Ys.flags&=-1025,Ms(Ys.alternate,Ys);break;case 4:Ms(Ys.alternate,Ys);break;case 8:ks(s,u=Ys);var k=u.alternate;ms(u),null!==k&&ms(k)}Ys=Ys.nextEffect}}catch(x){if(null===Ys)throw Error(a(330));Nu(Ys,x),Ys=Ys.nextEffect}}while(null!==Ys);if(_=Un,w=dn(),g=_.focusedElem,s=_.selectionRange,w!==g&&g&&g.ownerDocument&&ln(g.ownerDocument.documentElement,g)){null!==s&&pn(g)&&(w=s.start,void 0===(_=s.end)&&(_=w),"selectionStart"in g?(g.selectionStart=w,g.selectionEnd=Math.min(_,g.value.length)):(_=(w=g.ownerDocument||document)&&w.defaultView||window).getSelection&&(_=_.getSelection(),u=g.textContent.length,k=Math.min(s.start,u),s=void 0===s.end?k:Math.min(s.end,u),!_.extend&&k>s&&(u=s,s=k,k=u),u=hn(g,k),o=hn(g,s),u&&o&&(1!==_.rangeCount||_.anchorNode!==u.node||_.anchorOffset!==u.offset||_.focusNode!==o.node||_.focusOffset!==o.offset)&&((w=w.createRange()).setStart(u.node,u.offset),_.removeAllRanges(),k>s?(_.addRange(w),_.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),_.addRange(w))))),w=[];for(_=g;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof g.focus&&g.focus(),g=0;g<w.length;g++)(_=w[g]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Ge=!!Dn,Un=Dn=null,t.current=r,Ys=n;do{try{for(g=t;null!==Ys;){var M=Ys.flags;if(36&M&&ps(g,Ys.alternate,Ys),128&M){w=void 0;var S=Ys.ref;if(null!==S){var E=Ys.stateNode;switch(Ys.tag){case 5:w=E;break;default:w=E}"function"===typeof S?S(w):S.current=w}}Ys=Ys.nextEffect}}catch(x){if(null===Ys)throw Error(a(330));Nu(Ys,x),Ys=Ys.nextEffect}}while(null!==Ys);Ys=null,Bi(),js=i}else t.current=r;if(Xs)Xs=!1,Js=t,Qs=e;else for(Ys=n;null!==Ys;)e=Ys.nextEffect,Ys.nextEffect=null,8&Ys.flags&&((M=Ys).sibling=null,M.stateNode=null),Ys=e;if(0===(n=t.pendingLanes)&&(Gs=null),1===n?t===nu?ru++:(ru=0,nu=t):ru=0,r=r.stateNode,_i&&"function"===typeof _i.onCommitFiberRoot)try{_i.onCommitFiberRoot(wi,r,void 0,64===(64&r.current.flags))}catch(x){}if(du(t,zi()),Vs)throw Vs=!1,t=Zs,Zs=null,t;return 0!==(8&js)||Hi(),null}function Iu(){for(;null!==Ys;){var t=Ys.alternate;uu||null===su||(0!==(8&Ys.flags)?te(Ys,su)&&(uu=!0):13===Ys.tag&&Es(t,Ys)&&te(Ys,su)&&(uu=!0));var e=Ys.flags;0!==(256&e)&&ds(t,Ys),0===(512&e)||Xs||(Xs=!0,Ki(97,(function(){return Pu(),null}))),Ys=Ys.nextEffect}}function Pu(){if(90!==Qs){var t=97<Qs?97:Qs;return Qs=90,Fi(t,Bu)}return!1}function Tu(t,e){$s.push(e,t),Xs||(Xs=!0,Ki(97,(function(){return Pu(),null})))}function Cu(t,e){tu.push(e,t),Xs||(Xs=!0,Ki(97,(function(){return Pu(),null})))}function Bu(){if(null===Js)return!1;var t=Js;if(Js=null,0!==(48&js))throw Error(a(331));var e=js;js|=32;var r=tu;tu=[];for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===o)throw Error(a(330));Nu(o,c)}}for(r=$s,$s=[],n=0;n<r.length;n+=2){i=r[n],o=r[n+1];try{var u=i.create;i.destroy=u()}catch(c){if(null===o)throw Error(a(330));Nu(o,c)}}for(u=t.current.firstEffect;null!==u;)t=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=t;return js=e,Hi(),!0}function Lu(t,e,r){uo(t,e=cs(0,e=as(r,e),1)),e=cu(),null!==(t=lu(t,1))&&(Fe(t,1,e),du(t,e))}function Nu(t,e){if(3===t.tag)Lu(t,t,e);else for(var r=t.return;null!==r;){if(3===r.tag){Lu(r,t,e);break}if(1===r.tag){var n=r.stateNode;if("function"===typeof r.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Gs||!Gs.has(n))){var i=fs(r,t=as(e,t),1);if(uo(r,i),i=cu(),null!==(r=lu(r,1)))Fe(r,1,i),du(r,i);else if("function"===typeof n.componentDidCatch&&(null===Gs||!Gs.has(n)))try{n.componentDidCatch(e,t)}catch(o){}break}}r=r.return}}function Du(t,e,r){var n=t.pingCache;null!==n&&n.delete(e),e=cu(),t.pingedLanes|=t.suspendedLanes&r,Rs===t&&(Ps&r)===r&&(4===Bs||3===Bs&&(62914560&Ps)===Ps&&500>zi()-qs?_u(t,0):zs|=r),du(t,e)}function Uu(t,e){var r=t.stateNode;null!==r&&r.delete(e),0===(e=0)&&(0===(2&(e=t.mode))?e=1:0===(4&e)?e=99===Wi()?1:2:(0===ou&&(ou=Ns),0===(e=We(62914560&~ou))&&(e=4194304))),r=cu(),null!==(t=lu(t,e))&&(Fe(t,e,r),du(t,r))}function zu(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 1,218 bytes, line 2
2ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wu(t,e,r,n){return new zu(t,e,r,n)}function qu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Fu(t,e){var r=t.alternate;return null===r?((r=Wu(t.tag,e,t.key,t.mode)).elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Ku(t,e,r,n,i,o){var s=2;if(n=t,"function"===typeof t)qu(t)&&(s=1);else if("string"===typeof t)s=5;else t:switch(t){case S:return Hu(r.children,i,o,e);case L:s=8,i|=16;break;case E:s=8,i|=1;break;case x:return(t=Wu(12,r,e,8|i)).elementType=x,t.type=x,t.lanes=o,t;
vendor: 6,809 bytes, line 2
2case R:return(t=Wu(13,r,e,i)).type=R,t.elementType=R,t.lanes=o,t;case I:return(t=Wu(19,r,e,i)).elementType=I,t.lanes=o,t;case N:return Yu(r,i,o,e);case D:return(t=Wu(24,r,e,i)).elementType=D,t.lanes=o,t;default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case A:s=10;break t;case O:s=9;break t;case j:s=11;break t;case P:s=14;break t;case T:s=16,n=null;break t;case C:s=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Wu(s,r,e,i)).elementType=t,e.type=n,e.lanes=o,e}function Hu(t,e,r,n){return(t=Wu(7,t,n,e)).lanes=r,t}function Yu(t,e,r,n){return(t=Wu(23,t,n,e)).elementType=N,t.lanes=r,t}function Vu(t,e,r){return(t=Wu(6,t,null,e)).lanes=r,t}function Zu(t,e,r){return(e=Wu(4,null!==t.children?t.children:[],t.key,e)).lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Gu(t,e,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=qe(0),this.expirationTimes=qe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qe(0),this.mutableSourceEagerHydrationData=null}function Xu(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:M,key:null==n?null:""+n,children:t,containerInfo:e,implementation:r}}function Ju(t,e,r,n){var i=e.current,o=cu(),s=fu(i);t:if(r){e:{if(Xt(r=r._reactInternals)!==r||1!==r.tag)throw Error(a(170));var u=r;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(pi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(a(171))}if(1===r.tag){var c=r.type;if(pi(c)){r=mi(r,c,u);break t}}r=u}else r=ci;return null===e.context?e.context=r:e.pendingContext=r,(e=so(o,s)).payload={element:t},null!==(n=void 0===n?null:n)&&(e.callback=n),uo(i,e),hu(i,s,o),s}function Qu(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function $u(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var r=t.retryLane;t.retryLane=0!==r&&r<e?r:e}}function tc(t,e){$u(t,e),(t=t.alternate)&&$u(t,e)}function ec(t,e,r){var n=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Gu(t,e,null!=r&&!0===r.hydrate),e=Wu(3,null,null,2===e?7:1===e?3:0),r.current=e,e.stateNode=r,oo(e),t[Jn]=r.current,jn(8===t.nodeType?t.parentNode:t),n)for(t=0;t<n.length;t++){var i=(e=n[t])._getVersion;i=i(e._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[e,i]:r.mutableSourceEagerHydrationData.push(e,i)}this._internalRoot=r}function rc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function nc(t,e,r,n,i){var o=r._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var t=Qu(a);s.call(t)}}Ju(e,a,t,i)}else{if(o=r._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var r;r=t.lastChild;)t.removeChild(r);return new ec(t,0,e?{hydrate:!0}:void 0)}(r,n),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var t=Qu(a);u.call(t)}}yu((function(){Ju(e,a,t,i)}))}return Qu(a)}function ic(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!rc(e))throw Error(a(200));return Xu(t,e,null,r)}Hs=function(t,e,r){var n=e.lanes;if(null!==t)if(t.memoizedProps!==e.pendingProps||hi.current)Ca=!0;else{if(0===(r&n)){switch(Ca=!1,e.tag){case 3:Ka(e),Ho();break;case 5:To(e);break;case 1:pi(e.type)&&yi(e);break;case 4:Io(e,e.stateNode.containerInfo);break;case 10:n=e.memoizedProps.value;var i=e.type._context;ui(Gi,i._currentValue),i._currentValue=n;break;case 13:if(null!==e.memoizedState)return 0!==(r&e.child.childLanes)?Ga(t,e,r):(ui(Bo,1&Bo.current),null!==(e=rs(t,e,r))?e.sibling:null);ui(Bo,1&Bo.current);break;case 19:if(n=0!==(r&e.childLanes),0!==(64&t.flags)){if(n)return es(t,e,r);e.flags|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Bo,Bo.current),n)break;return null;case 23:case 24:return e.lanes=0,Ua(t,e,r)}return rs(t,e,r)}Ca=0!==(16384&t.flags)}else Ca=!1;switch(e.lanes=0,e.tag){case 2:if(n=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=di(e,fi.current),ro(e,r),i=ia(null,e,n,t,i,r),e.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,pi(n)){var o=!0;yi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(e);var s=n.getDerivedStateFromProps;"function"===typeof s&&po(e,n,s,t),i.updater=bo,e.stateNode=i,i._reactInternals=e,go(e,n,t,r),e=Fa(null,e,n,!0,o,r)}else e.tag=0,Ba(null,e,i,r),e=e.child;return e;case 16:i=e.elementType;t:{switch(null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=(o=i._init)(i._payload),e.type=i,o=e.tag=function(t){if("function"===typeof t)return qu(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===j)return 11;if(t===P)return 14}return 2}(i),t=Zi(i,t),o){case 0:e=Wa(null,e,i,t,r);break t;case 1:e=qa(null,e,i,t,r);break t;case 11:e=La(null,e,i,t,r);break t;case 14:e=Na(null,e,i,Zi(i.type,t),n,r);break t}throw Error(a(306,i,""))}return e;case 0:return n=e.type,i=e.pendingProps,Wa(t,e,n,i=e.elementType===n?i:Zi(n,i),r);case 1:return n=e.type,i=e.pendingProps,qa(t,e,n,i=e.elementType===n?i:Zi(n,i),r);case 3:if(Ka(e),n=e.updateQueue,null===t||null===n)throw Error(a(282));if(n=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,ao(t,e),fo(e,n,null,r),(n=e.memoizedState.element)===i)Ho(),e=rs(t,e,r);else{if((o=(i=e.stateNode).hydrate)&&(Do=Hn(e.stateNode.containerInfo.firstChild),No=e,o=Uo=!0),o){if(null!=(t=i.mutableSourceEagerHydrationData))for(i=0;i<t.length;i+=2)(o=t[i])._workInProgressVersionPrimary=t[i+1],Yo.push(o);for(r=Eo(e,null,n,r),e.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else Ba(t,e,n,r),Ho();e=e.child}return e;case 5:return To(e),null===t&&qo(e),n=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,Wn(n,i)?s=null:null!==o&&Wn(n,o)&&(e.flags|=16),za(t,e),Ba(t,e,s,r),e.child;case 6:return null===t&&qo(e),null;case 13:return Ga(t,e,r);case 4:return Io(e,e.stateNode.containerInfo),n=e.pendingProps,null===t?e.child=So(e,null,n,r):Ba(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,La(t,e,n,i=e.elementType===n?i:Zi(n,i),r);case 7:return Ba(t,e,e.pendingProps,r),e.child;case 8:case 12:return Ba(t,e,e.pendingProps.children,r),e.child;
vendor: 8,861 bytes, line 2
2case 10:t:{n=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value;var u=e.type._context;if(ui(Gi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=sn(u,o)?0:0|("function"===typeof n._calculateChangedBits?n._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!hi.current){e=rs(t,e,r);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var f=c.firstContext;null!==f;){if(f.context===n&&0!==(f.observedBits&o)){1===u.tag&&((f=so(-1,r&-r)).tag=2,uo(u,f)),u.lanes|=r,null!==(f=u.alternate)&&(f.lanes|=r),eo(u.return,r),c.lanes|=r;break}f=f.next}}else s=10===u.tag&&u.type===e.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===e){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Ba(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=(o=e.pendingProps).children,ro(e,r),n=n(i=no(i,o.unstable_observedBits)),e.flags|=1,Ba(t,e,n,r),e.child;case 14:return o=Zi(i=e.type,e.pendingProps),Na(t,e,i,o=Zi(i.type,o),n,r);case 15:return Da(t,e,e.type,e.pendingProps,n,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Zi(n,i),null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,pi(n)?(t=!0,yi(e)):t=!1,ro(e,r),mo(e,n,i),go(e,n,i,r),Fa(null,e,n,!0,t,r);case 19:return es(t,e,r);case 23:case 24:return Ua(t,e,r)}throw Error(a(156,e.tag))},ec.prototype.render=function(t){Ju(t,this._internalRoot,null,null)},ec.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ju(null,t,null,(function(){e[Jn]=null}))},ee=function(t){13===t.tag&&(hu(t,4,cu()),tc(t,4))},re=function(t){13===t.tag&&(hu(t,67108864,cu()),tc(t,67108864))},ne=function(t){if(13===t.tag){var e=cu(),r=fu(t);hu(t,r,e),tc(t,r)}},ie=function(t,e){return e()},At=function(t,e,r){switch(e){case"input":if(rt(t,r),e=r.name,"radio"===r.type&&null!=e){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=ri(n);if(!i)throw Error(a(90));J(n),rt(n,i)}}}break;case"textarea":ct(t,r);break;case"select":null!=(e=r.value)&&at(t,!!r.multiple,e,!1)}},Tt=mu,Ct=function(t,e,r,n,i){var o=js;js|=4;try{return Fi(98,t.bind(null,e,r,n,i))}finally{0===(js=o)&&(Ks(),Hi())}},Bt=function(){0===(49&js)&&(function(){if(null!==eu){var t=eu;eu=null,t.forEach((function(t){t.expiredLanes|=24&t.pendingLanes,du(t,zi())}))}Hi()}(),Pu())},Lt=function(t,e){var r=js;js|=2;try{return t(e)}finally{0===(js=r)&&(Ks(),Hi())}};var oc={Events:[ti,ei,ri,It,Pt,Pu,{current:!1}]},ac={findFiberByHostInstance:$n,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ac.bundleType,version:ac.version,rendererPackageName:ac.rendererPackageName,rendererConfig:ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=$t(t))?null:t.stateNode},findFiberByHostInstance:ac.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{wi=uc.inject(sc),_i=uc}catch(vt){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,e.createPortal=ic,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"===typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=$t(e))?null:t.stateNode},e.flushSync=function(t,e){var r=js;if(0!==(48&r))return t(e);js|=1;try{if(t)return Fi(99,t.bind(null,e))}finally{js=r,Hi()}},e.hydrate=function(t,e,r){if(!rc(e))throw Error(a(200));return nc(null,t,e,!0,r)},e.render=function(t,e,r){if(!rc(e))throw Error(a(200));return nc(null,t,e,!1,r)},e.unmountComponentAtNode=function(t){if(!rc(t))throw Error(a(40));return!!t._reactRootContainer&&(yu((function(){nc(null,null,t,!1,(function(){t._reactRootContainer=null,t[Jn]=null}))})),!0)},e.unstable_batchedUpdates=mu,e.unstable_createPortal=function(t,e){return ic(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!rc(r))throw Error(a(200));if(null==t||void 0===t._reactInternals)throw Error(a(38));return nc(t,e,r,!1,n)},e.version="17.0.2"},function(t,e,r){"use strict";t.exports=r(354)},function(t,e,r){"use strict";var n,i,o,a;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var f=null,h=null,l=function t(){if(null!==f)try{var r=e.unstable_now();f(!0,r),f=null}catch(n){throw setTimeout(t,0),n}};n=function(t){null!==f?setTimeout(n,0,t):(f=t,setTimeout(l,0))},i=function(t,e){h=setTimeout(t,e)},o=function(){clearTimeout(h)},e.unstable_shouldYield=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var b=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,m=null,y=-1,g=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},a=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<t?Math.floor(1e3/t):5};var _=new MessageChannel,k=_.port2;_.port1.onmessage=function(){if(null!==m){var t=e.unstable_now();w=t+g;try{m(!0,t)?k.postMessage(null):(v=!1,m=null)}catch(r){throw k.postMessage(null),r}}else v=!1},n=function(t){m=t,v||(v=!0,k.postMessage(null))},i=function(t,r){y=d((function(){t(e.unstable_now())}),r)},o=function(){p(y),y=-1}}function M(t,e){var r=t.length;t.push(e);t:for(;;){var n=r-1>>>1,i=t[n];if(!(void 0!==i&&0<x(i,e)))break t;t[n]=e,t[r]=i,r=n}}function S(t){return void 0===(t=t[0])?null:t}function E(t){var e=t[0];if(void 0!==e){var r=t.pop();if(r!==e){t[0]=r;t:for(var n=0,i=t.length;n<i;){var o=2*(n+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>x(a,r))void 0!==u&&0>x(u,a)?(t[n]=u,t[s]=r,n=s):(t[n]=a,t[o]=r,n=o);else{if(!(void 0!==u&&0>x(u,r)))break t;t[n]=u,t[s]=r,n=s}}}return e}return null}function x(t,e){var r=t.sortIndex-e.sortIndex;return 0!==r?r:t.id-e.id}var A=[],O=[],j=1,R=null,I=3,P=!1,T=!1,C=!1;function B(t){for(var e=S(O);null!==e;){if(null===e.callback)E(O);else{if(!(e.startTime<=t))break;E(O),e.sortIndex=e.expirationTime,M(A,e)}e=S(O)}}function L(t){if(C=!1,B(t),!T)if(null!==S(A))T=!0,n(N);else{var e=S(O);null!==e&&i(L,e.startTime-t)}}function N(t,r){T=!1,C&&(C=!1,o()),P=!0;var n=I;try{for(B(r),R=S(A);null!==R&&(!(R.expirationTime>r)||t&&!e.unstable_shouldYield());){var a=R.callback;if("function"===typeof a){R.callback=null,I=R.priorityLevel;var s=a(R.expirationTime<=r);r=e.unstable_now(),"function"===typeof s?R.callback=s:R===S(A)&&E(A),B(r)}else E(A);R=S(A)}if(null!==R)var u=!0;else{var c=S(O);null!==c&&i(L,c.startTime-r),u=!1}return u}finally{R=null,I=n,P=!1}}var D=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){T||P||(T=!0,n(N))},e.unstable_getCurrentPriorityLevel=function(){return I},e.unstable_getFirstCallbackNode=function(){return S(A)},e.unstable_next=function(t){switch(I){case 1:case 2:case 3:var e=3;break;default:e=I}var r=I;I=e;try{return t()}finally{I=r}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=D,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=I;I=t;try{return e()}finally{I=r}},e.unstable_scheduleCallback=function(t,r,a){var s=e.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,t){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return t={id:j++,callback:r,priorityLevel:t,startTime:a,expirationTime:u=
2a+u,sortIndex:-1},a>s?(t.sortIndex=a,M(O,t),null===S(A)&&t===S(O)&&(C?o():C=!0,i(L,a-s))):(t.sortIndex=u,M(A,t),T||P||(T=!0,n(N))),t},e.unstable_wrapCallback=function(t){var e=I;return function(){var r=I;I=e;try{return t.apply(this,arguments)}finally{I=r}}}},,function(t,e,r){"use strict";var n=r(357);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,h=r?i-1:0,l=r?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+t[e+h],h+=l,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+h],h+=l,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,h=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=f?(s=0,a=f):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+d]=255&a,d+=p,a/=256,c-=8);t[r+d-p]|=128*b}},,function(t,e,r){"use strict";var n=r(25).Buffer;t.exports=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var i=0;i<t.length;i++){var o=t.charAt(i),a=o.charCodeAt(0);if(255!==e[a])throw new TypeError(o+" is ambiguous");e[a]=i}var s=t.length,u=t.charAt(0),c=Math.log(s)/Math.log(256),f=Math.log(256)/Math.log(s);function h(t){if("string"!==typeof t)throw new TypeError("Expected String");if(0===t.length)return n.alloc(0);var r=0;if(" "!==t[r]){for(var i=0,o=0;t[r]===u;)i++,r++;for(var a=(t.length-r)*c+1>>>0,f=new Uint8Array(a);t[r];){var h=e[t.charCodeAt(r)];if(255===h)return;for(var l=0,d=a-1;(0!==h||l<o)&&-1!==d;d--,l++)h+=s*f[d]>>>0,f[d]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=l,r++}if(" "!==t[r]){for(var p=a-o;p!==a&&0===f[p];)p++;var b=n.allocUnsafe(i+(a-p));b.fill(0,0,i);for(var v=i;p!==a;)b[v++]=f[p++];return b}}}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var r=0,i=0,o=0,a=e.length;o!==a&&0===e[o];)o++,r++;for(var c=(a-o)*f+1>>>0,h=new Uint8Array(c);o!==a;){for(var l=e[o],d=0,p=c-1;(0!==l||d<i)&&-1!==p;p--,d++)l+=256*h[p]>>>0,h[p]=l%s>>>0,l=l/s>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,o++}for(var b=c-i;b!==c&&0===h[b];)b++;for(var v=u.repeat(r);b<c;++b)v+=t.charAt(h[b]);return v},decodeUnsafe:h,decode:function(t){var e=h(t);if(e)return e;throw new Error("Non-base"+s+" character")}}}},function(t,e){t.exports=function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}},function(t,e){function r(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}},function(t,e,r){var n=r(181),i=r(232);function o(e,r,a){return i()?t.exports=o=Reflect.construct:t.exports=o=function(t,e,r){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return r&&n(o,r.prototype),o},o.apply(null,arguments)}t.exports=o},function(t,e,r){"use strict";function n(t,e,r){return e<=t&&t<=r}function i(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}r.r(e),r.d(e,"TextEncoder",(function(){return f})),r.d(e,"TextDecoder",(function(){return c}));function o(t){this.tokens=[].slice.call(t)}
vendor: 1,375 bytes, line 2
2o.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.shift());else this.tokens.push(t)}};var a=-1;function s(t,e){if(t)throw TypeError("Decoder error");return e||65533}var u="utf-8";function c(t,e){if(!(this instanceof c))return new c(t,e);if((t=void 0!==t?String(t).toLowerCase():u)!==u)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function f(t,e){if(!(this instanceof f))return new f(t,e);if((t=void 0!==t?String(t).toLowerCase():u)!==u)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function h(t){var e=t.fatal,r=0,i=0,o=0,u=128,c=191;this.handler=function(t,f){if(-1===f&&0!==o)return o=0,s(e);if(-1===f)return a;
2if(0===o){if(n(f,0,127))return f;if(n(f,194,223))o=1,r=f-192;else if(n(f,224,239))224===f&&(u=160),237===f&&(c=159),o=2,r=f-224;else{if(!n(f,240,244))return s(e);240===f&&(u=144),244===f&&(c=143),o=3,r=f-240}return r<<=6*o,null}if(!n(f,u,c))return r=o=i=0,u=128,c=191,t.prepend(f),s(e);if(u=128,c=191,r+=f-128<<6*(o-(i+=1)),i!==o)return null;var h=r;return r=o=i=0,h}}function l(t){t.fatal;this.handler=function(t,e){if(-1===e)return a;if(n(e,0,127))return e;var r,i;n(e,128,2047)?(r=1,i=192):n(e,2048,65535)?(r=2,i=224):n(e,65536,1114111)&&(r=3,i=240);for(var o=[(e>>6*r)+i];r>0;){var s=e>>6*(r-1);o.push(128|63&s),r-=1}return o}}c.prototype={decode:function(t,e){var r;r="object"===typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"===typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=i(e),this._streaming||(this._decoder=new h({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var n,s=new o(r),u=[];!s.endOfStream()&&(n=this._decoder.handler(s,s.read()))!==a;)null!==n&&(Array.isArray(n)?u.push.apply(u,n):u.push(n));if(!this._streaming){do{if((n=this._decoder.handler(s,s.read()))===a)break;null!==n&&(Array.isArray(n)?u.push.apply(u,n):u.push(n))}while(!s.endOfStream());this._decoder=null}return u.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===u[0]?(this._BOMseen=!0,u.shift()):this._BOMseen=!0)),function(t){for(var e="",r=0;r<t.length;++r){var n=t[r];n<=65535?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296+(n>>10),56320+(1023&n)))}return e}(u)}},f.prototype={encode:function(t,e){t=t?String(t):"",e=i(e),this._streaming||(this._encoder=new l(this._options)),this._streaming=Boolean(e.stream);for(var r,n=[],s=new o(function(t){for(var e=String(t),r=e.length,n=0,i=[];n<r;){var o=e.charCodeAt(n);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(n===r-1)i.push(65533);else{var a=t.charCodeAt(n+1);if(56320<=a&&a<=57343){var s=1023&o,u=1023&a;i.push(65536+(s<<10)+u),n+=1}else i.push(65533)}n+=1}return i}(t));!s.endOfStream()&&(r=this._encoder.handler(s,s.read()))!==a;)Array.isArray(r)?n.push.apply(n,r):n.push(r);if(!this._streaming){for(;(r=this._encoder.handler(s,s.read()))!==a;)Array.isArray(r)?n.push.apply(n,r):n.push(r);this._encoder=null}return new Uint8Array(n)}}},function(t,e,r){"use strict";var n=r(71);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new f(t,e)};var i=n(r(93)),o=n(r(118)),a=n(r(94)),s=n(r(95)),u=n(r(79));function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t,n,o){var a;return(0,i.default)(this,r),(a=e.call(this)).socket=new window.WebSocket(t,o),a.socket.onopen=function(){return a.emit("open")},a.socket.onmessage=function(t){return a.emit("message",t.data)},a.socket.onerror=function(t){return a.emit("error",t)},a.socket.onclose=function(t){a.emit("close",t.code,t.reason)},a}return(0,o.default)(r,[{key:"send",value:function(t,e,r){var n=r||e;try{this.socket.send(t),n()}catch(i){n(i)}}},{key:"close",value:function(t,e){this.socket.close(t,e)}},{key:"addEventListener",value:function(t,e,r){this.socket.addEventListener(t,e,r)}}]),r}(r(74).EventEmitter)},function(t,e,r){"use strict";(function(t){var n=r(71);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(140)),o=n(r(141)),a=n(r(117)),s=n(r(93)),u=n(r(118)),c=n(r(94)),f=n(r(95)),h=n(r(79)),l=r(74),d=n(r(369));function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,h.default)(t);if(e){var i=(0,h.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}var b=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},v=function(e){(0,c.default)(n,e);var r=p(n);function n(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;(0,s.default)(this,n);var u=o.autoconnect,c=void 0===u||u,f=o.reconnect,h=void 0===f||f,l=o.reconnect_interval,d=void 0===l?1e3:l,p=o.max_reconnects,v=void 0===p?5:p,m=b(o,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(e=r.call(this)).webSocketFactory=t,e.queue={},e.rpc_id=0,e.address=i,e.autoconnect=c,e.ready=!1,e.reconnect=h,e.reconnect_interval=d,e.max_reconnects=v,e.rest_options=m,e.current_reconnects=0,e.generate_request_id=a||function(){return++e.rpc_id},e.autoconnect&&e._connect(e.address,Object.assign({autoconnect:e.autoconnect,reconnect:e.reconnect,reconnect_interval:e.reconnect_interval,max_reconnects:e.max_reconnects},e.rest_options)),e}
2return(0,u.default)(n,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(t,e,r,n){var i=this;return n||"object"!==(0,a.default)(r)||(n=r,r=null),new Promise((function(o,a){if(!i.ready)return a(new Error("socket not ready"));var s=i.generate_request_id(t,e),u={jsonrpc:"2.0",method:t,params:e||null,id:s};i.socket.send(JSON.stringify(u),n,(function(t){if(t)return a(t);i.queue[s]={promise:[o,a]},r&&(i.queue[s].timeout=setTimeout((function(){i.queue[s]=null,a(new Error("reply timeout"))}),r))}))}))}},{key:"login",value:function(){var t=(0,o.default)(i.default.mark((function t(e){var r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("rpc.login",e);case 2:if(r=t.sent){t.next=5;break}throw new Error("authentication failed");case 5:return t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"listMethods",value:function(){var t=(0,o.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("__listMethods");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"notify",value:function(t,e){var r=this;return new Promise((function(n,i){if(!r.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:t,params:e||null};r.socket.send(JSON.stringify(o),(function(t){if(t)return i(t);n()}))}))}},{key:"subscribe",value:function(){var t=(0,o.default)(i.default.mark((function t(e){var r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"===typeof e&&(e=[e]),t.next=3,this.call("rpc.on",e);case 3:if(r=t.sent,"string"!==typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed subscribing to an event '"+e+"' with: "+r[e]);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"unsubscribe",value:function(){var t=(0,o.default)(i.default.mark((function t(e){var r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"===typeof e&&(e=[e]),t.next=3,this.call("rpc.off",e);case 3:if(r=t.sent,"string"!==typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed unsubscribing from an event with: "+r);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"close",value:function(t,e){this.socket.close(t||1e3,e)}},{key:"_connect",value:function(e,r){var n=this;this.socket=this.webSocketFactory(e,r),this.socket.addEventListener("open",(function(){n.ready=!0,n.emit("open"),n.current_reconnects=0})),this.socket.addEventListener("message",(function(e){var r=e.data;r instanceof ArrayBuffer&&(r=t.from(r).toString());try{r=d.default.parse(r)}catch(a){return}if(r.notification&&n.listeners(r.notification).length){if(!Object.keys(r.params).length)return n.emit(r.notification);var i=[r.notification];if(r.params.constructor===Object)i.push(r.params);else for(var o=0;o<r.params.length;o++)i.push(r.params[o]);return Promise.resolve().then((function(){n.emit.apply(n,i)}))}if(!n.queue[r.id])return r.method&&r.params?Promise.resolve().then((function(){n.emit(r.method,r.params)})):void 0;"error"in r==="result"in r&&n.queue[r.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),n.queue[r.id].timeout&&clearTimeout(n.queue[r.id].timeout),r.error?n.queue[r.id].promise[1](r.error):n.queue[r.id].promise[0](r.result),n.queue[r.id]=null})),this.socket.addEventListener("error",(function(t){return n.emit("error",t)})),this.socket.addEventListener("close",(function(t){var i=t.code,o=t.reason;n.ready&&setTimeout((function(){return n.emit("close",i,o)}),0),n.ready=!1,n.socket=void 0,1e3!==i&&(n.current_reconnects++,n.reconnect&&(n.max_reconnects>n.current_reconnects||0===n.max_reconnects)&&setTimeout((function(){return n._connect(e,r)}),n.reconnect_interval))}))}}]),n}(l.EventEmitter);e.default=v}).call(this,r(7).Buffer)}
2,function(t,e){var r="~",n="\\x"+("0"+r.charCodeAt(0).toString(16)).slice(-2),i="\\"+n,o=new RegExp(n,"g"),a=new RegExp(i,"g"),s=new RegExp("(?:^|([^\\\\]))"+i),u=[].indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},c=String;function f(t,e,n){return e instanceof Array?function(t,e,r){for(var n=0,i=e.length;n<i;n++)e[n]=f(t,e[n],r);return e}(t,e,n):e instanceof c?e.length?n.hasOwnProperty(e)?n[e]:n[e]=function(t,e){for(var n=0,i=e.length;n<i;t=t[e[n++].replace(a,r)]);return t}(t,e.split(r)):t:e instanceof Object?function(t,e,r){for(var n in e)e.hasOwnProperty(n)&&(e[n]=f(t,e[n],r));return e}(t,e,n):e}var h={stringify:function(t,e,a,s){return h.parser.stringify(t,function(t,e,a){var s,c,f=!1,h=!!e,l=[],d=[t],p=[t],b=[a?r:"[Circular]"],v=t,m=1;return h&&(c="object"===typeof e?function(t,r){return""!==t&&e.indexOf(t)<0?void 0:r}:e),function(t,e){return h&&(e=c.call(this,t,e)),f?(v!==this&&(s=m-u.call(d,this)-1,m-=s,d.splice(m,d.length),l.splice(m-1,l.length),v=this),"object"===typeof e&&e?(u.call(d,e)<0&&d.push(v=e),m=d.length,(s=u.call(p,e))<0?(s=p.push(e)-1,a?(l.push((""+t).replace(o,n)),b[s]=r+l.join(r)):b[s]=b[0]):e=b[s]):"string"===typeof e&&a&&(e=e.replace(n,i).replace(r,n))):f=!0,e}}(t,e,!s),a)},parse:function(t,e){return h.parser.parse(t,function(t){return function(e,o){var a="string"===typeof o;return a&&o.charAt(0)===r?new c(o.slice(1)):(""===e&&(o=f(o,o,{})),a&&(o=o.replace(s,"$1~").replace(i,n)),t?t.call(this,e,o):o)}}(e))},parser:JSON};t.exports=h},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,r){"use strict";var n=r(234);t.exports=function(t,e,r,i){if("string"!==typeof t)throw new TypeError(t+" must be a string");var o="number"===typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw new TypeError(o+" must be 1 or 2");var a={method:t};if(2===o&&(a.jsonrpc="2.0"),e){if("object"!==typeof e&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");a.params=e}if("undefined"===typeof r){var s="function"===typeof i.generator?i.generator:function(){return n()};a.id=s(a,i)}else 2===o&&null===r?i.notificationIdNull&&(a.id=null):a.id=r;return a}},function(t,e,r){var n=r(70),i="Impossible case. Please create issue.",o="The tweak was out of range or the resulted private key is invalid",a="The tweak was out of range or equal to zero",s="Unknow error on context randomization",u="Private Key is invalid",c="Public Key could not be parsed",f="Public Key serialization error",h="The sum of the public keys is not valid",l="Signature could not be parsed",d="The nonce generation function failed, or the private key was invalid",p="Public key could not be recover",b="Scalar was invali
2d (zero or overflow)";function v(t,e){if(!t)throw new Error(e)}function m(t,e,r){if(v(e instanceof Uint8Array,"Expected ".concat(t," to be an Uint8Array")),void 0!==r)if(Array.isArray(r)){var n=r.join(", "),i="Expected ".concat(t," to be an Uint8Array with length [").concat(n,"]");v(r.includes(e.length),i)}else{var o="Expected ".concat(t," to be an Uint8Array with length ").concat(r);v(e.length===r,o)}}function y(t){v("Boolean"===w(t),"Expected compressed to be a Boolean")}function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return new Uint8Array(t)},e=arguments.length>1?arguments[1]:void 0;return"function"===typeof t&&(t=t(e)),m("output",t,e),t}function w(t){return Object.prototype.toString.call(t).slice(8,-1)}t.exports=function(t){return{contextRandomize:function(e){switch(v(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&m("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(s)}},privateKeyVerify:function(e){return m("private key",e,32),0===t.privateKeyVerify(e)},privateKeyNegate:function(e){switch(m("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(i)}},privateKeyTweakAdd:function(e,r){switch(m("private key",e,32),m("tweak",r,32),t.privateKeyTweakAdd(e,r)){case 0:return e;case 1:throw new Error(o)}},privateKeyTweakMul:function(e,r){switch(m("private key",e,32),m("tweak",r,32),t.privateKeyTweakMul(e,r)){case 0:return e;case 1:throw new Error(a)}},publicKeyVerify:function(e){return m("public key",e,[33,65]),0===t.publicKeyVerify(e)},publicKeyCreate:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(m("private key",e,32),y(r),n=g(n,r?33:65),t.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(f)}},publicKeyConvert:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(m("public key",e,[33,65]),y(r),n=g(n,r?33:65),t.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(f)}},publicKeyNegate:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(m("public key",e,[33,65]),y(r),n=g(n,r?33:65),t.publicKeyNegate(n,e)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(i);case 3:throw new Error(f)}},publicKeyCombine:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;v(Array.isArray(e),"Expected public keys to be an Array"),v(e.length>0,"Expected public keys array will have more than zero items");var o,a=n(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;m("public key",s,[33,65])}}catch(u){a.e(u)}finally{a.f()}switch(y(r),i=g(i,r?33:65),t.publicKeyCombine(i,e)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(h);case 3:throw new Error(f)}},publicKeyTweakAdd:function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(m("public key",e,[33,65]),m("tweak",r,32),y(n),i=g(i,n?33:65),t.publicKeyTweakAdd(i,e,r)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(o)}},publicKeyTweakMul:function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(m("public key",e,[33,65]),m("tweak",r,32),y(n),i=g(i,n?33:65),t.publicKeyTweakMul(i,e,r)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(a)}},signatureNormalize:function(e){switch(m("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(l)}},signatureExport:function(e,r){m("signature",e,64);var n={output:r=g(r,72),outputlen:72};switch(t.signatureExport(n,e)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(l);case 2:throw new Error(i)}},signatureImport:function(e,r){switch(m("signature",e),r=g(r,64),t.signatureImport(r,e)){case 0:return r;case 1:throw new Error(l);case 2:throw new Error(i)}},ecdsaSign:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;m("message",e,32),m("private key",r,32),v("Object"===w(n),"Expected options to be an Object"),void 0!==n.data&&m("options.data",n.data),void 0!==n.noncefn&&v("Function"===w(n.noncefn),"Expected options.noncefn to be a Function");var a={signature:o=g(o,64),recid:null};switch(t.ecdsaSign(a,e,r,n.data,n.noncefn)){case 0:return a;case 1:throw new Error(d);case 2:throw new Error(i)}},ecdsaVerify:function(e,r,n){switch(m("signature",e,64),m("message",r,32),m("public key",n,[33,65]),t.ecdsaVerify(e,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(l);case 2:throw new Error(c)}},ecdsaRecover:function(e,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4?arguments[4]:void 0;switch(m("signature",e,64),v("Number"===w(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),m("message",n,32),y(o),a=g(a,o?33:65),t.ecdsaRecover(a,e,r,n)){case 0:return a;case 1:throw new Error(l);case 2:throw new Error(p);case 3:throw new Error(i)}},ecdh:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;switch(m("public key",e,[33,65]),m("private key",r,32),v("Object"===w(n),"Expected options to be an Object"),void 0!==n.data&&m("options.data",n.data),void 0!==n.hashfn?(v("Function"===w(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&m("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&m("options.ybuf",n.ybuf,32),m("output",i)):i=g(i,32),t.ecdh(i,e,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(b)}}}}},function(t,e,r){var n=new(0,r(119).ec)("secp256k1"),i=n.curve,o=i.n.constructor;function a(t){var e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:function(t,e){var r=new o(e);if(r.cmp(i.p)>=0)return null;var a=(r=r.toRed(i.red)).redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===t!==a.isOdd()&&(a=a.redNeg()),n.keyPair({pub:{x:r,y:a}})}(e,t.subarray(1,33));case 4:case 6:case 7:return 65!==t.length?null:function(t,e,r){var a=new o(e),s=new o(r);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===t||7===t)&&s.isOdd()!==(7===t))return null;var u=a.redSqr().redIMul(a);return s.redSqr().redISub(u.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:a,y:s}}):null}(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function s(t,e){for(var r=e.encode(null,33===t.length),n=0;n<t.length;++n)t[n]=r[n]}t.exports={contextRandomize:function(){return 0},privateKeyVerify:function(t){var e=new o(t);return e.cmp(i.n)<0&&!e.isZero()?0:1},privateKeyNegate:function(t){var e=new o(t),r=i.n.sub(e).umod(i.n).toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakAdd:function(t,e){var r=new o(e);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(t)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;var n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakMul:function(t,e){var r=new o(e);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(t)),r.cmp(i.n)>=0&&(r=r.umod(i.n));var n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},publicKeyVerify:function(t){return null===a(t)?1:0},publicKeyCreate:function(t,e){var r=new o(e);return r.cmp(i.n)>=0||r.isZero()?1:(s(t,n.keyFromPrivate(e).getPublic()),0)},publicKeyConvert:function(t,e){var r=a(e);return null===r?1:(s(t,r.getPublic()),0)},publicKeyNegate:function(t,e){var r=a(e);if(null===r)return 1;var n=r.getPublic();return n.y=n.y.redNeg(),s(t,n),0},publicKeyCombine:function(t,e){for(var r=new Array(e.length),n=0;n<e.length;++n)if(r[n]=a(e[n]),null===r[n])return 1;for(var i=r[0].getPublic(),o=1;o<r.length;++o)i=i.add(r[o].pub);return i.isInfinity()?2:(s(t,i),0)},publicKeyTweakAdd:function(t,e,r){var n=a(e);if(null===n)return 1;
2if((r=new o(r)).cmp(i.n)>=0)return 2;var u=n.getPublic().add(i.g.mul(r));return u.isInfinity()?2:(s(t,u),0)},publicKeyTweakMul:function(t,e,r){var n=a(e);return null===n?1:(r=new o(r)).cmp(i.n)>=0||r.isZero()?2:(s(t,n.getPublic().mul(r)),0)},signatureNormalize:function(t){var e=new o(t.subarray(0,32)),r=new o(t.subarray(32,64));return e.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&t.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(t,e){var r=e.subarray(0,32),n=e.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;var a=t.output,s=a.subarray(4,37);s[0]=0,s.set(r,1);for(var u=33,c=0;u>1&&0===s[c]&&!(128&s[c+1]);--u,++c);if(128&(s=s.subarray(c))[0])return 1;if(u>1&&0===s[0]&&!(128&s[1]))return 1;var f=a.subarray(39,72);f[0]=0,f.set(n,1);for(var h=33,l=0;h>1&&0===f[l]&&!(128&f[l+1]);--h,++l);return 128&(f=f.subarray(l))[0]||h>1&&0===f[0]&&!(128&f[1])?1:(t.outputlen=6+u+h,a[0]=48,a[1]=t.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+u]=2,a[5+u]=f.length,a.set(f,6+u),0)},signatureImport:function(t,e){if(e.length<8)return 1;if(e.length>72)return 1;if(48!==e[0])return 1;if(e[1]!==e.length-2)return 1;if(2!==e[2])return 1;var r=e[3];if(0===r)return 1;if(5+r>=e.length)return 1;if(2!==e[4+r])return 1;var n=e[5+r];if(0===n)return 1;if(6+r+n!==e.length)return 1;if(128&e[4])return 1;if(r>1&&0===e[4]&&!(128&e[5]))return 1;if(128&e[r+6])return 1;if(n>1&&0===e[r+6]&&!(128&e[r+7]))return 1;var a=e.subarray(4,4+r);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;var s=e.subarray(6+r);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");var u=new o(a);u.cmp(i.n)>=0&&(u=new o(0));var c=new o(e.subarray(6+r));return c.cmp(i.n)>=0&&(c=new o(0)),t.set(u.toArrayLike(Uint8Array,"be",32),0),t.set(c.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(t,e,r,a,s){if(s){var u=s;s=function(t){var n=u(e,r,null,a,t);if(!(n instanceof Uint8Array&&32===n.length))throw new Error("This is the way");return new o(n)}}var c,f=new o(r);if(f.cmp(i.n)>=0||f.isZero())return 1;try{c=n.sign(e,r,{canonical:!0,k:s,pers:a})}catch(h){return 1}return t.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),t.recid=c.recoveryParam,0},ecdsaVerify:function(t,e,r){var s={r:t.subarray(0,32),s:t.subarray(32,64)},u=new o(s.r),c=new o(s.s);if(u.cmp(i.n)>=0||c.cmp(i.n)>=0)return 1;if(1===c.cmp(n.nh)||u.isZero()||c.isZero())return 3;var f=a(r);if(null===f)return 2;var h=f.getPublic();return n.verify(e,s,h)?0:3},ecdsaRecover:function(t,e,r,a){var u,c={r:e.slice(0,32),s:e.slice(32,64)},f=new o(c.r),h=new o(c.s);if(f.cmp(i.n)>=0||h.cmp(i.n)>=0)return 1;if(f.isZero()||h.isZero())return 2;try{u=n.recoverPubKey(a,c,r)}catch(l){return 2}return s(t,u),0},ecdh:function(t,e,r,s,u,c,f){var h=a(e);if(null===h)return 1;var l=new o(r);if(l.cmp(i.n)>=0||l.isZero())return 2;var d=h.getPublic().mul(l);if(void 0===u)for(var p=d.encode(null,!0),b=n.hash().update(p).digest(),v=0;v<32;++v)t[v]=b[v];else{c||(c=new Uint8Array(32));for(var m=d.getX().toArray("be",32),y=0;y<32;++y)c[y]=m[y];f||(f=new Uint8Array(32));for(var g=d.getY().toArray("be",32),w=0;w<32;++w)f[w]=g[w];var _=u(c,f,s);if(!(_ instanceof Uint8Array&&_.length===t.length))return 2;t.set(_)}return 0}}},function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"[email protected]:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <[email protected]>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"}
2,"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},,,function(t,e,r){"use strict";var n=r(55),i=r(72),o=r(19),a=r(142),s=n.assert;function u(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(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 c(t,e,r,n){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(r,16),n&&(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 f(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(n,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}o(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,r,n,o,a,s,u,c,f,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new i(1),b=new i(0),v=new i(0),m=new i(1),y=0;0!==l.cmpn(0);){var g=d.div(l);c=d.sub(g.mul(l)),f=v.sub(g.mul(p));var w=m.sub(g.mul(b));if(!n&&c.cmp(h)<0)e=u.neg(),r=p,n=c.neg(),o=f;else if(n&&2===++y)break;u=c,d=l,l=c,v=p,p=f,m=b,b=w}a=c.neg(),s=f;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=e,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),u.prototype.point=function(t,e,r){return new c(this,t,e,r)},u.prototype.pointFromJSON=function(t,e){return c.fromJSON(this,t,e)},c.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}}
vendor: 2,493 bytes, line 2
2,c.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]},c.fromJSON=function(t,e,r){"string"===typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.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)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.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 e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new i(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)},c.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());
vendor: 4,413 bytes, line 2
2if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),u.prototype.jpoint=function(t,e,r){return new f(this,t,e,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),h=n.redMul(c),l=u.redSqr().redIAdd(f).redISub(h).redISub(h),d=u.redMul(h.redISub(l)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(l,d,p)},f.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),h=s.redSqr().redIAdd(c).redISub(f).redISub(f),l=s.redMul(f.redISub(h)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(h,l,d)},f.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(e=0;e<t;e++){var f=o.redSqr(),h=c.redSqr(),l=h.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(h),b=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(b),m=d.redMul(v);m=m.redIAdd(m).redISub(l);var y=c.redMul(s);e+1<t&&(u=u.redMul(l)),o=b,s=y,c=m}return this.curve.jpoint(o,c.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=u,e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(f).redISub(l);d=d.redIAdd(d);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),v=l.redIAdd(l);v=(v=v.redIAdd(v)).redIAdd(v),t=b.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},f.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),h=this.y.redSqr(),l=this.x.redMul(h),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var p=l.redIAdd(l),b=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(f);var v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),e=d.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,r)},f.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),h=c.redISub(f),l=a.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=s.redMul(h).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 14,892 bytes, line 2
2var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=e.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.x.redMul(s).redISub(f);h=(h=h.redIAdd(h)).redIAdd(h);var l=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(h,l,d)},f.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},f.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.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)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var n=r(72),i=r(19),o=r(142),a=r(55);function s(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var n=r(55),i=r(72),o=r(19),a=r(142),s=n.assert;function u(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|t.c)}function c(t,e,r,n,o){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(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 i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,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()))))}o(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(e&&!u||!e&&u)&&(s=s.redNeg()),this.point(t,s)},u.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},u.prototype.point=function(t,e,r,n){return new c(this,t,e,r,n)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.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)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),s=n.redSub(e),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),h=a.redMul(o);return this.curve.point(u,c,h,f)},c.prototype._projDbl=function(){var t,e,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(t=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),e=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),t=a.redSub(s).redISub(u).redMul(o),e=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(t,e,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(e),c=o.redMul(a),f=s.redMul(u),h=o.redMul(u),l=a.redMul(s);return this.curve.point(c,f,l,h)},c.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(f);return this.curve.twisted?(e=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(e=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(h,e,r)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},c.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(t,e,r){"use strict";e.sha1=r(382),e.sha224=r(383),e.sha256=r(238),e.sha384=r(384),e.sha512=r(239)},function(t,e,r){"use strict";var n=r(65),i=r(120),o=r(237),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,f=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(l,f),t.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],l=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=u(a(i,5),c(p,o,f,l),d,r[n],h[p]);d=l,l=f,f=a(o,30),o=i,i=b}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],f),this.h[3]=s(this.h[3],l),this.h[4]=s(this.h[4],d)},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(65),i=r(238);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";var n=r(65),i=r(239);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";var n=r(65),i=r(120),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function l(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function d(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(f,c),e.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],f=this.h[4],y=r,g=n,w=i,_=c,k=f,M=0;M<80;M++){var S=a(o(u(r,h(M,n,i,c),t[p[M]+e],l(M)),v[M]),f);r=f,f=c,c=o(i,10),i=n,n=S,S=a(o(u(y,h(79-M,g,w,_),t[b[M]+e],d(M)),m[M]),k),y=k,k=_,_=o(w,10),w=g,g=S}S=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,k),this.h[2]=s(this.h[3],f,y),this.h[3]=s(this.h[4],r,g),this.h[4]=s(this.h[0],n,w),this.h[0]=S},f.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],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]},function(t,e,r){"use strict";var n=r(65),i=r(56);function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.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: 7,434 bytes, line 2
2function(t,e,r){"use strict";var n=r(72),i=r(389),o=r(55),a=r(185),s=r(184),u=o.assert,c=r(390),f=r(391);function h(t){if(!(this instanceof h))return new h(t);"string"===typeof t&&(u(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.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=h,h.prototype.keyPair=function(t){return new c(this,t)},h.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},h.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},h.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(e.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},h.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},h.prototype.sign=function(t,e,r,o){"object"===typeof r&&(o=r,r=null),o||(o={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),l=0;;l++){var d=o.k?o.k(l):new n(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(h)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var b=p.getX(),v=b.umod(this.n);if(0!==v.cmpn(0)){var m=d.invm(this.n).mul(v.mul(e.getPrivate()).iadd(t));if(0!==(m=m.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(v)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),y^=1),new f({r:v,s:m,recoveryParam:y})}}}}}},h.prototype.verify=function(t,e,r,i){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,i);var o=(e=new f(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(t).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},h.prototype.recoverPubKey=function(t,e,r,i){u((3&r)===r,"The recovery param is more than two bits"),e=new f(e,i);var o=this.n,a=new n(t),s=e.r,c=e.s,h=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),h):this.curve.pointFromX(s,h);var d=e.r.invm(o),p=o.sub(a).mul(d).umod(o),b=c.mul(d).umod(o);return this.g.mulAdd(p,s,b)},h.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new f(e,n)).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(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var n=r(186),i=r(235),o=r(56);function a(t){if(!(this instanceof a))return new a(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=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);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(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.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([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,r,n){"string"!==typeof e&&(n=r,r=e,e=null),t=i.toArray(t,e),r=i.toArray(r,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(r),this._reseed++,i.encode(a,e)}},function(t,e,r){"use strict";var n=r(72),i=r(55).assert;function o(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=o,o.fromPublic=function(t,e,r){return e instanceof o?e:new o(t,{pub:e,pubEnc:r})},o.fromPrivate=function(t,e,r){return e instanceof o?e:new o(t,{priv:e,privEnc:r})},o.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"}},o.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},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(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)},o.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";var n=r(72),i=r(55),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function c(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function f(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new s;if(48!==t[r.place++])return!1;var o=u(t,r);
vendor: 5,352 bytes, line 2
2if(!1===o)return!1;if(o+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=u(t,r);if(!1===a)return!1;var c=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var f=u(t,r);if(!1===f)return!1;if(t.length!==f+r.place)return!1;var h=t.slice(r.place,f+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new n(c),this.s=new n(h),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=c(e),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];f(n,e.length),(n=n.concat(e)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,t)}},function(t,e,r){"use strict";var n=r(186),i=r(185),o=r(55),a=o.assert,s=o.parseBytes,u=r(393),c=r(394);function f(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=i[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=n.sha512}t.exports=f,f.prototype.sign=function(t,e){t=s(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},f.prototype.verify=function(t,e,r){t=s(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},f.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},f.prototype.makeSignature=function(t){return t instanceof c?t:new c(this,t)},f.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},f.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!==(128&t[e]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(t){return o.intFromLE(t)},f.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";var n=r(55),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},s.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=s},function(t,e,r){"use strict";var n=r(72),i=r(55),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(t,e){this.eddsa=t,"object"!==typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},function(t,e,r){"use strict";var n=r(1),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};function o(t,e,r){var a=this;r>0&&setTimeout((function(){return i(a,void 0,void 0,n.mark((function i(){return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent||o(t,e,r-1);case 4:case"end":return n.stop()}}),i)})))}),e)}
2Object.defineProperty(e,"__esModule",{value:!0}),e.pollUntilReady=e.poll=void 0,e.poll=o,e.pollUntilReady=function(t,e,r){o((function(){var e=t.ready;return e&&(t.emit("ready")||console.warn("".concat(t.constructor.name," is ready but no listener was registered"))),e}),e,r)}},function(t,e,r){"use strict";var n=r(1),i=r(143),o=r(34),a=r(36),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},f=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseMessageSignerWalletAdapter=e.BaseSignerWalletAdapter=void 0;var h=r(241),l=r(242),d=function(t){s(r,t);var e=u(r);function r(){return o(this,r),e.apply(this,arguments)}return a(r,[{key:"sendTransaction",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c(this,void 0,void 0,n.mark((function o(){var a,s,u,c;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,n.prev=1,t.feePayer||(t.feePayer=this.publicKey||void 0),n.t0=t.recentBlockhash,n.t0){n.next=8;break}return n.next=7,e.getRecentBlockhash("finalized");case 7:t.recentBlockhash=n.sent.blockhash;case 8:return s=r.signers,u=f(r,["signers"]),(null===s||void 0===s?void 0:s.length)&&(a=t).partialSign.apply(a,i(s)),n.next=12,this.signTransaction(t);case 12:return t=n.sent,c=t.serialize(),n.next=16,e.sendRawTransaction(c,u);case 16:return n.abrupt("return",n.sent);case 19:if(n.prev=19,n.t1=n.catch(1),!(n.t1 instanceof l.WalletError)){n.next=23;break}throw n.t1;case 23:throw new l.WalletSendTransactionError(null===n.t1||void 0===n.t1?void 0:n.t1.message,n.t1);case 24:n.next=30;break;case 26:throw n.prev=26,n.t2=n.catch(0),this.emit("error",n.t2),n.t2;case 30:case"end":return n.stop()}}),o,this,[[0,26],[1,19]])})))}}]),r}(h.BaseWalletAdapter);e.BaseSignerWalletAdapter=d;var p=function(t){s(r,t);var e=u(r);function r(){return o(this,r),e.apply(this,arguments)}return r}(d);e.BaseMessageSignerWalletAdapter=p},function(t,e,r){var n=r(229);t.exports=function(t){if(Array.isArray(t))return n(t)}},function(t,e){t.exports=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(t,e,r){"use strict";t.exports=r(400)},function(t,e,r){"use strict";var n="function"===typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.async_mode"):60111,l=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,b=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function k(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case h:case l:case a:case u:case s:case p:return t;default:switch(t=t&&t.$$typeof){case f:case d:case m:case v:case c:return t;default:return e}}case o:return e}}}function M(t){return k(t)===l}e.AsyncMode=h,e.ConcurrentMode=l,e.ContextConsumer=f,e.ContextProvider=c,e.Element=i,e.ForwardRef=d,e.Fragment=a,e.Lazy=m,e.Memo=v,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=p,e.isAsyncMode=function(t){return M(t)||k(t)===
2h},e.isConcurrentMode=M,e.isContextConsumer=function(t){return k(t)===f},e.isContextProvider=function(t){return k(t)===c},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return k(t)===d},e.isFragment=function(t){return k(t)===a},e.isLazy=function(t){return k(t)===m},e.isMemo=function(t){return k(t)===v},e.isPortal=function(t){return k(t)===o},e.isProfiler=function(t){return k(t)===u},e.isStrictMode=function(t){return k(t)===s},e.isSuspense=function(t){return k(t)===p},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===a||t===l||t===u||t===s||t===p||t===b||"object"===typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===v||t.$$typeof===c||t.$$typeof===f||t.$$typeof===d||t.$$typeof===g||t.$$typeof===w||t.$$typeof===_||t.$$typeof===y)},e.typeOf=k},function(t,e,r){"use strict";var n=60103,i=60106,o=60107,a=60108,s=60114,u=60109,c=60110,f=60112,h=60113,l=60120,d=60115,p=60116,b=60121,v=60122,m=60117,y=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element"),i=w("react.portal"),o=w("react.fragment"),a=w("react.strict_mode"),s=w("react.profiler"),u=w("react.provider"),c=w("react.context"),f=w("react.forward_ref"),h=w("react.suspense"),l=w("react.suspense_list"),d=w("react.memo"),p=w("react.lazy"),b=w("react.block"),v=w("react.server.block"),m=w("react.fundamental"),y=w("react.debug_trace_mode"),g=w("react.legacy_hidden")}function _(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case o:case s:case a:case h:case l:return t;default:switch(t=t&&t.$$typeof){case c:case f:case p:case d:case u:return t;default:return e}}case i:return e}}}var k=u,M=n,S=f,E=o,x=p,A=d,O=i,j=s,R=a,I=h;e.ContextConsumer=c,e.ContextProvider=k,e.Element=M,e.ForwardRef=S,e.Fragment=E,e.Lazy=x,e.Memo=A,e.Portal=O,e.Profiler=j,e.StrictMode=R,e.Suspense=I,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(t){return _(t)===c},e.isContextProvider=function(t){return _(t)===u},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return _(t)===f},e.isFragment=function(t){return _(t)===o},e.isLazy=function(t){return _(t)===p},e.isMemo=function(t){return _(t)===d},e.isPortal=function(t){return _(t)===i},e.isProfiler=function(t){return _(t)===s},e.isStrictMode=function(t){return _(t)===a},e.isSuspense=function(t){return _(t)===h},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===o||t===s||t===y||t===a||t===h||t===l||t===g||"object"===typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===u||t.$$typeof===c||t.$$typeof===f||t.$$typeof===m||t.$$typeof===b||t[0]===v)},e.typeOf=_},function(t,e){e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!==typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!==typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}},function(t,e){t.exports=function(){function t(t,e,r,n,i,o){this.message=t,this.expected=e,this.found=r,this.offset=n,this.line=i,this.column=o,this.name="SyntaxError"}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(t,Error),{SyntaxError:t,parse:function(e){var r,n=arguments.length>1?arguments[1]:{},i={},o={start:Ce},a=Ce,s=function(){return jr},u=i,c="#",f={type:"literal",value:"#",description:'"#"'},h=void 0,l={type:"any",description:"any character"},d="[",p={type:"literal",value:"[",description:'"["'},b="]",v={type:"literal",value:"]",description:'"]"'},m=function(t){Ir(Pr("ObjectPath",t,je,Re))},y=function(t){Ir(Pr("ArrayPath",t,je,Re))},g=function(t,e){return t.concat(e)},w=function(t){return[t]},_=function(t){return t},k=".",M={type:"literal",value:".",description:'"."'},S="=",E={type:"literal",value:"=",description:'"="'},x=function(t,e){Ir(Pr("Assign",e,je,Re,t))},A=function(t){return t.join("")},O=function(t){return t.value},j='"""',R={type:"literal",value:'"""',description:'"\\"\\"\\""'},I=null,P=function(t){return Pr("String",t.join(""),je,Re)},T='"',C={type:"literal",value:'"',description:'"\\""'},B="'''",L={type:"literal",value:"'''",description:"\"'''\""},N="'",D={type:"literal",value:"'",description:'"\'"'},U=function(t){return t},z=function(t){return t},W="\\",q={type:"literal",value:"\\",description:'"\\\\"'},F=function(){return""},K="e",H={type:"literal",value:"e",description:'"e"'},Y="E",V={type:"literal",value:"E",description:'"E"'},Z=function(t,e){return Pr("Float",parseFloat(t+"e"+e),je,Re)},G=function(t){return Pr("Float",parseFloat(t),je,Re)},X="+",J={type:"literal",value:"+",description:'"+"'},Q=function(t){return t.join("")},$="-",tt={type:"literal",value:"-",description:'"-"'},et=function(t){return"-"+t.join("")},rt=function(t){return Pr("Integer",parseInt(t,10),je,Re)},nt="true",it={type:"literal",value:"true",description:'"true"'},ot=function(){return Pr("Boolean",!0,je,Re)},at="false",st={type:"literal",value:"false",description:'"false"'},ut=function(){return Pr("Boolean",!1,je,Re)},ct=function(){return Pr("Array",[],je,Re)},ft=function(t){return Pr("Array",t?[t]:[],je,Re)},ht=function(t){return Pr("Array",t,je,Re)},lt=function(t,e){return Pr("Array",t.concat(e),je,Re)},dt=function(t){return t},pt=",",bt={type:"literal",value:",",description:'","'},vt="{",mt={type:"literal",value:"{",description:'"{"'},yt="}",gt={type:"literal",value:"}",description:'"}"'},wt=function(t){return Pr("InlineTable",t,je,Re)},_t=function(t,e){return Pr("InlineTableValue",e,je,Re,t)},kt=function(t){return"."+t},Mt=function(t){return t.join("")},St=":",Et={type:"literal",value:":",description:'":"'},xt=function(t){return t.join("")},At="T",Ot={type:"literal",value:"T",description:'"T"'}
2,jt="Z",Rt={type:"literal",value:"Z",description:'"Z"'},It=function(t,e){return Pr("Date",new Date(t+"T"+e+"Z"),je,Re)},Pt=function(t,e){return Pr("Date",new Date(t+"T"+e),je,Re)},Tt=/^[ \t]/,Ct={type:"class",value:"[ \\t]",description:"[ \\t]"},Bt="\n",Lt={type:"literal",value:"\n",description:'"\\n"'},Nt="\r",Dt={type:"literal",value:"\r",description:'"\\r"'},Ut=/^[0-9a-f]/i,zt={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},Wt=/^[0-9]/,qt={type:"class",value:"[0-9]",description:"[0-9]"},Ft="_",Kt={type:"literal",value:"_",description:'"_"'},Ht=function(){return""},Yt=/^[A-Za-z0-9_\-]/,Vt={type:"class",value:"[A-Za-z0-9_\\-]",description:"[A-Za-z0-9_\\-]"},Zt=function(t){return t.join("")},Gt='\\"',Xt={type:"literal",value:'\\"',description:'"\\\\\\""'},Jt=function(){return'"'},Qt="\\\\",$t={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},te=function(){return"\\"},ee="\\b",re={type:"literal",value:"\\b",description:'"\\\\b"'},ne=function(){return"\b"},ie="\\t",oe={type:"literal",value:"\\t",description:'"\\\\t"'},ae=function(){return"\t"},se="\\n",ue={type:"literal",value:"\\n",description:'"\\\\n"'},ce=function(){return"\n"},fe="\\f",he={type:"literal",value:"\\f",description:'"\\\\f"'},le=function(){return"\f"},de="\\r",pe={type:"literal",value:"\\r",description:'"\\\\r"'},be=function(){return"\r"},ve="\\U",me={type:"literal",value:"\\U",description:'"\\\\U"'},ye=function(t){return Tr(t.join(""))},ge="\\u",we={type:"literal",value:"\\u",description:'"\\\\u"'},_e=0,ke=0,Me=0,Se={line:1,column:1,seenCR:!1},Ee=0,xe=[],Ae=0,Oe={};if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function je(){return Ie(ke).line}function Re(){return Ie(ke).column}function Ie(t){return Me!==t&&(Me>t&&(Me=0,Se={line:1,column:1,seenCR:!1}),function(t,r,n){var i,o;for(i=r;i<n;i++)"\n"===(o=e.charAt(i))?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}(Se,Me,t),Me=t),Se}function Pe(t){_e<Ee||(_e>Ee&&(Ee=_e,xe=[]),xe.push(t))}function Te(r,n,i){var o=Ie(i),a=i<e.length?e.charAt(i):null;return null!==n&&function(t){var e=1;for(t.sort((function(t,e){return t.description<e.description?-1:t.description>e.description?1:0}));e<t.length;)t[e-1]===t[e]?t.splice(e,1):e++}(n),new t(null!==r?r:function(t,e){var r,n=new Array(t.length);for(r=0;r<t.length;r++)n[r]=t[r].description;return"Expected "+(t.length>1?n.slice(0,-1).join(", ")+" or "+n[t.length-1]:n[0])+" but "+(e?'"'+function(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(t){return"\\x0"+e(t)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(t){return"\\x"+e(t)})).replace(/[\u0180-\u0FFF]/g,(function(t){return"\\u0"+e(t)})).replace(/[\u1080-\uFFFF]/g,(function(t){return"\\u"+e(t)}))}(e)+'"':"end of input")+" found."}(n,a),n,a,i,o.line,o.column)}function Ce(){var t,e,r,n=49*_e+0,o=Oe[n];if(o)return _e=o.nextPos,o.result;for(t=_e,e=[],r=Be();r!==i;)e.push(r),r=Be();return e!==i&&(ke=t,e=s()),t=e,Oe[n]={nextPos:_e,result:t},t}function Be(){var t,e,r,n,o,a,s,c=49*_e+1,f=Oe[c];if(f)return _e=f.nextPos,f.result;for(t=_e,e=[],r=gr();r!==i;)e.push(r),r=gr();if(e!==i)if((r=Le())!==i){for(n=[],o=gr();o!==i;)n.push(o),o=gr();if(n!==i){for(o=[],a=Ne();a!==i;)o.push(a),a=Ne();if(o!==i){if(a=[],(s=wr())!==i)for(;s!==i;)a.push(s),s=wr();else a=u;a===i&&(a=kr()),a!==i?t=e=[e,r,n,o,a]:(_e=t,t=u)}else _e=t,t=u}else _e=t,t=u}else _e=t,t=u;else _e=t,t=u;if(t===i){if(t=_e,e=[],(r=gr())!==i)for(;r!==i;)e.push(r),r=gr();else e=u;if(e!==i){if(r=[],(n=wr())!==i)for(;n!==i;)r.push(n),n=wr();else r=u;r===i&&(r=kr()),r!==i?t=e=[e,r]:(_e=t,t=u)}else _e=t,t=u;t===i&&(t=wr())}return Oe[c]={nextPos:_e,result:t},t}function Le(){var t,e=49*_e+2,r=Oe[e];return r?(_e=r.nextPos,r.result):((t=Ne())===i&&(t=De())===i&&(t=Ue())===i&&(t=Fe()),Oe[e]={nextPos:_e,result:t},t)}function Ne(){var t,r,n,o,a,s,d=49*_e+3,p=Oe[d];if(p)return _e=p.nextPos,p.result;if(t=_e,35===e.charCodeAt(_e)?(r=c,_e++):(r=i,0===Ae&&Pe(f)),r!==i){for(n=[],o=_e,a=_e,Ae++,(s=wr())===i&&(s=kr()),Ae--,s===i?a=
2h:(_e=a,a=u),a!==i?(e.length>_e?(s=e.charAt(_e),_e++):(s=i,0===Ae&&Pe(l)),s!==i?o=a=[a,s]:(_e=o,o=u)):(_e=o,o=u);o!==i;)n.push(o),o=_e,a=_e,Ae++,(s=wr())===i&&(s=kr()),Ae--,s===i?a=h:(_e=a,a=u),a!==i?(e.length>_e?(s=e.charAt(_e),_e++):(s=i,0===Ae&&Pe(l)),s!==i?o=a=[a,s]:(_e=o,o=u)):(_e=o,o=u);n!==i?t=r=[r,n]:(_e=t,t=u)}else _e=t,t=u;return Oe[d]={nextPos:_e,result:t},t}function De(){var t,r,n,o,a,s,c=49*_e+4,f=Oe[c];if(f)return _e=f.nextPos,f.result;if(t=_e,91===e.charCodeAt(_e)?(r=d,_e++):(r=i,0===Ae&&Pe(p)),r!==i){for(n=[],o=gr();o!==i;)n.push(o),o=gr();if(n!==i)if((o=ze())!==i){for(a=[],s=gr();s!==i;)a.push(s),s=gr();a!==i?(93===e.charCodeAt(_e)?(s=b,_e++):(s=i,0===Ae&&Pe(v)),s!==i?(ke=t,t=r=m(o)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;return Oe[c]={nextPos:_e,result:t},t}function Ue(){var t,r,n,o,a,s,c,f,h=49*_e+5,l=Oe[h];if(l)return _e=l.nextPos,l.result;if(t=_e,91===e.charCodeAt(_e)?(r=d,_e++):(r=i,0===Ae&&Pe(p)),r!==i)if(91===e.charCodeAt(_e)?(n=d,_e++):(n=i,0===Ae&&Pe(p)),n!==i){for(o=[],a=gr();a!==i;)o.push(a),a=gr();if(o!==i)if((a=ze())!==i){for(s=[],c=gr();c!==i;)s.push(c),c=gr();s!==i?(93===e.charCodeAt(_e)?(c=b,_e++):(c=i,0===Ae&&Pe(v)),c!==i?(93===e.charCodeAt(_e)?(f=b,_e++):(f=i,0===Ae&&Pe(v)),f!==i?(ke=t,t=r=y(a)):(_e=t,t=u)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;else _e=t,t=u;return Oe[h]={nextPos:_e,result:t},t}function ze(){var t,e,r,n=49*_e+6,o=Oe[n];if(o)return _e=o.nextPos,o.result;if(t=_e,e=[],(r=qe())!==i)for(;r!==i;)e.push(r),r=qe();else e=u;return e!==i&&(r=We())!==i?(ke=t,t=e=g(e,r)):(_e=t,t=u),t===i&&(t=_e,(e=We())!==i&&(ke=t,e=w(e)),t=e),Oe[n]={nextPos:_e,result:t},t}function We(){var t,e,r,n,o,a=49*_e+7,s=Oe[a];if(s)return _e=s.nextPos,s.result;for(t=_e,e=[],r=gr();r!==i;)e.push(r),r=gr();if(e!==i)if((r=Ke())!==i){for(n=[],o=gr();o!==i;)n.push(o),o=gr();n!==i?(ke=t,t=e=_(r)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u;if(t===i){for(t=_e,e=[],r=gr();r!==i;)e.push(r),r=gr();if(e!==i)if((r=He())!==i){for(n=[],o=gr();o!==i;)n.push(o),o=gr();n!==i?(ke=t,t=e=_(r)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}return Oe[a]={nextPos:_e,result:t},t}function qe(){var t,r,n,o,a,s,c,f=49*_e+8,h=Oe[f];if(h)return _e=h.nextPos,h.result;for(t=_e,r=[],n=gr();n!==i;)r.push(n),n=gr();if(r!==i)if((n=Ke())!==i){for(o=[],a=gr();a!==i;)o.push(a),a=gr();if(o!==i)if(46===e.charCodeAt(_e)?(a=k,_e++):(a=i,0===Ae&&Pe(M)),a!==i){for(s=[],c=gr();c!==i;)s.push(c),c=gr();s!==i?(ke=t,t=r=_(n)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;else _e=t,t=u;if(t===i){for(t=_e,r=[],n=gr();n!==i;)r.push(n),n=gr();if(r!==i)if((n=He())!==i){for(o=[],a=gr();a!==i;)o.push(a),a=gr();if(o!==i)if(46===e.charCodeAt(_e)?(a=k,_e++):(a=i,0===Ae&&Pe(M)),a!==i){for(s=[],c=gr();c!==i;)s.push(c),c=gr();s!==i?(ke=t,t=r=_(n)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;else _e=t,t=u}return Oe[f]={nextPos:_e,result:t},t}function Fe(){var t,r,n,o,a,s,c=49*_e+9,f=Oe[c];if(f)return _e=f.nextPos,f.result;if(t=_e,(r=Ke())!==i){for(n=[],o=gr();o!==i;)n.push(o),o=gr();if(n!==i)if(61===e.charCodeAt(_e)?(o=S,_e++):(o=i,0===Ae&&Pe(E)),o!==i){for(a=[],s=gr();s!==i;)a.push(s),s=gr();a!==i&&(s=Ye())!==i?(ke=t,t=r=x(r,s)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;if(t===i)if(t=_e,(r=He())!==i){for(n=[],o=gr();o!==i;)n.push(o),o=gr();if(n!==i)if(61===e.charCodeAt(_e)?(o=S,_e++):(o=i,0===Ae&&Pe(E)),o!==i){for(a=[],s=gr();s!==i;)a.push(s),s=gr();a!==i&&(s=Ye())!==i?(ke=t,t=r=x(r,s)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;return Oe[c]={nextPos:_e,result:t},t}function Ke(){var t,e,r,n=49*_e+10,o=Oe[n];if(o)return _e=o.nextPos,o.result;if(t=_e,e=[],(r=Er())!==i)for(;r!==i;)e.push(r),r=Er();else e=u;return e!==i&&(ke=t,e=A(e)),t=e,Oe[n]={nextPos:_e,result:t},t}function He(){var t,e,r=49*_e+11,n=Oe[r];return n?(_e=n.nextPos,n.result):(t=_e,(e=Ge())!==i&&(ke=t,e=O(e)),(t=e)===i&&(t=_e,(e=Je())!==i&&(ke=t,e=O(e)),t=e),Oe[r]={nextPos:_e,result:t},t)}function Ye(){var t,e=49*_e+12,r=Oe[e];return r?(_e=r.nextPos,r.result):((t=Ve())===i&&(t=yr())===i&&(t=nr())===i&&(t=or())===i&&(t=sr())===i&&(t=ur())===i&&(t=lr()),Oe[e]={nextPos:_e,result:t},t)}function Ve(){var t,e=49*_e+13,r=Oe[e];return r?(_e=r.nextPos,r.result):((t=Ze())===i&&(t=Ge())===i&&(t=Xe())===i&&(t=Je()),Oe[e]={nextPos:_e,result:t},t)}function Ze(){var t,r,n,o,a,s=49*_e+14,c=Oe[s];if(c)return _e=c.nextPos,c.result;if(t=_e,e.substr(_e,3)===j?(r=j,_e+=3):(r=i,0===Ae&&Pe(R)),r!==i)if((n=wr())===i&&(n=I),n!==i){for(o=[],a=tr();a!==i;)o.push(a),a=tr();o!==i?(e.substr(_e,3)===j?(a=j,_e+=3):(a=i,0===Ae&&Pe(R)),a!==i?(ke=t,t=r=P(o)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u;return Oe[s]={nextPos:_e,result:t},t}function Ge(){var t,r,n,o,a=49*_e+15,s=Oe[a];if(s)return _e=s.nextPos,s.result;if(t=_e,34===e.charCodeAt(_e)?(r=T,_e++):(r=i,0===Ae&&Pe(C)),r!==i){for(n=[],o=Qe();o!==i;)n.push(o),o=Qe();n!==i?(34===e.charCodeAt(_e)?(o=T,_e++):(o=i,0===Ae&&Pe(C)),o!==i?(ke=t,t=r=P(n)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;return Oe[a]={nextPos:_e,result:t},t}function Xe(){var t,r,n,o,a,s=49*_e+16,c=Oe[s];if(c)return _e=c.nextPos,c.result;if(t=_e,e.substr(_e,3)===B?(r=B,_e+=3):(r=i,0===Ae&&Pe(L)),r!==i)if((n=wr())===i&&(n=I),n!==i){for(o=[],a=rr();a!==i;)o.push(a),a=rr();o!==i?(e.substr(_e,3)===B?(a=B,_e+=3):(a=i,0===Ae&&Pe(L)),a!==i?(ke=t,t=r=P(o)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u;return Oe[s]={nextPos:_e,result:t},t}function Je(){var t,r,n,o,a=49*_e+17,s=Oe[a];if(s)return _e=s.nextPos,s.result;if(t=_e,39===e.charCodeAt(_e)?(r=N,_e++):(r=i,0===Ae&&Pe(D)),r!==i){for(n=[],o=$e();o!==i;)n.push(o),o=$e();n!==i?(39===e.charCodeAt(_e)?(o=N,_e++):(o=i,0===Ae&&Pe(D)),o!==i?(ke=t,t=r=P(n)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;return Oe[a]={nextPos:_e,result:t},t}function Qe(){var t,r,n,o=49*_e+18,a=Oe[o];return a?(_e=a.nextPos,a.result):((t=Ar())===i&&(t=_e,r=_e,Ae++,34===e.charCodeAt(_e)?(n=T,_e++):(n=i,0===Ae&&Pe(C)),Ae--,n===i?r=h:(_e=r,r=u),r!==i?(e.length>_e?(n=e.charAt(_e),_e++):(n=i,0===Ae&&Pe(l)),n!==i?(ke=t,t=r=U(n)):(_e=t,t=u)):(_e=t,t=u)),Oe[o]={nextPos:_e,result:t},t)}function $e(){var t,r,n,o=49*_e+19,a=Oe[o];return a?(_e=a.nextPos,a.result):(t=_e,r=_e,Ae++,39===e.charCodeAt(_e)?(n=N,_e++):(n=i,0===Ae&&Pe(D)),Ae--,n===i?r=h:(_e=r,r=u),r!==i?(e.length>_e?(n=e.charAt(_e),_e++):(n=i,0===Ae&&Pe(l)),n!==i?(ke=t,t=r=U(n)):(_e=t,t=u)):(_e=t,t=u),Oe[o]={nextPos:_e,result:t},t)}function tr(){var t,r,n,o=49*_e+20,a=Oe[o];return a?(_e=a.nextPos,a.result):((t=Ar())===i&&(t=er())===i&&(t=_e,r=_e,Ae++,e.substr(_e,3)===j?(n=j,_e+=3):(n=i,0===Ae&&Pe(R)),Ae--,n===i?r=h:(_e=r,r=u),r!==i?(e.length>_e?(n=e.charAt(_e),_e++):(n=i,0===Ae&&Pe(l)),n!==i?(ke=t,t=r=z(n)):(_e=t,t=u)):(_e=t,t=u)),Oe[o]={nextPos:_e,result:t},t)}function er(){var t,r,n,o,a=49*_e+21,s=Oe[a];if(s)return _e=s.nextPos,s.result;if(t=_e,92===e.charCodeAt(_e)?(r=W,_e++):(r=i,0===Ae&&Pe(q)),r!==i)if(wr()!==i){for(n=[],o=_r();o!==i;)n.push(o),o=_r();n!==i?(ke=t,t=r=F()):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u;return Oe[a]={nextPos:_e,result:t},t}function rr(){var t,r,n,o=49*_e+22,a=Oe[o];return a?(_e=a.nextPos,a.result):(t=_e,r=_e,Ae++,e.substr(_e,3)===B?(n=B,_e+=3):(n=i,0===Ae&&Pe(L)),Ae--,n===i?r=h:(_e=r,r=u),r!==i?(e.length>_e?(n=e.charAt(_e),_e++):(n=i,0===Ae&&Pe(l)),n!==i?(ke=t,t=r=U(n)):(_e=t,t=u)):(_e=t,t=u),Oe[o]={nextPos:_e,result:t},t)}function nr(){var t,r,n,o,a=49*_e+23,s=Oe[a];return s?(_e=s.nextPos,s.result):(t=_e,(r=ir())===i&&(r=ar()),r!==i?(101===e.charCodeAt(_e)?(n=K,_e++):(n=i,0===Ae&&Pe(H)),n===i&&(69===e.charCodeAt(_e)?(n=Y,_e++):(n=i,0===Ae&&Pe(V))),n!==i&&(o=ar())!==i?(ke=t,t=r=Z(r,o)):(_e=t,t=u)):(_e=t,t=u),t===i&&(t=_e,(r=ir())!==i&&(ke=t,r=G(r)),t=r),Oe[a]={nextPos:_e,result:t},t)}function ir(){var t,r,n,o,a,s,c=49*_e+24,f=Oe[c];return f?(_e=f.nextPos,f.result):(t=_e,43===e.charCodeAt(_e)?(r=X,_e++):(r=i,0===Ae&&Pe(J)),r===i&&(r=I),r!==i?(n=_e,(o=xr())!==i?(46===e.charCodeAt(_e)?(a=k,_e++):(a=i,0===Ae&&Pe(M)),a!==i&&(s=xr())!==i?n=o=[o,a,s]:(_e=n,n=u)):(_e=n,n=u),n!==i?(ke=t,t=r=Q(n)):(_e=t,t=u)):(_e=t,t=u),t===i&&(t=_e,45===e.charCodeAt(_e)?(r=$,_e++):(r=i,0===Ae&&Pe(tt)),r!==i?(n=_e,(o=xr())!==i?(46===e.charCodeAt(_e)?(a=k,_e++):(a=i,0===Ae&&Pe(M)),a!==i&&(s=xr())!==i?n=o=[o,a,s]:(_e=n,n=u)):(_e=n,n=u),n!==i?(ke=t,t=r=et(n)):(_e=t,t=u)):(_e=t,t=u)),Oe[c]={nextPos:_e,result:t},t)}function or(){var t,e,r=49*_e+25,n=Oe[r];return n?(_e=n.nextPos,n.result):(t=_e,(e=ar())!==i&&(ke=t,e=rt(e)),t=e,Oe[r]={nextPos:_e,result:t},t)}function ar(){var t,r,n,o,a,s=49*_e+26,c=Oe[s];if(c)return _e=c.nextPos,c.result;if(t=_e,43===e.charCodeAt(_e)?(r=X,_e++):(r=i,0===Ae&&Pe(J)),r===i&&(r=I),r!==i){
2if(n=[],(o=Sr())!==i)for(;o!==i;)n.push(o),o=Sr();else n=u;n!==i?(o=_e,Ae++,46===e.charCodeAt(_e)?(a=k,_e++):(a=i,0===Ae&&Pe(M)),Ae--,a===i?o=h:(_e=o,o=u),o!==i?(ke=t,t=r=Q(n)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;if(t===i)if(t=_e,45===e.charCodeAt(_e)?(r=$,_e++):(r=i,0===Ae&&Pe(tt)),r!==i){if(n=[],(o=Sr())!==i)for(;o!==i;)n.push(o),o=Sr();else n=u;n!==i?(o=_e,Ae++,46===e.charCodeAt(_e)?(a=k,_e++):(a=i,0===Ae&&Pe(M)),Ae--,a===i?o=h:(_e=o,o=u),o!==i?(ke=t,t=r=et(n)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;return Oe[s]={nextPos:_e,result:t},t}function sr(){var t,r,n=49*_e+27,o=Oe[n];return o?(_e=o.nextPos,o.result):(t=_e,e.substr(_e,4)===nt?(r=nt,_e+=4):(r=i,0===Ae&&Pe(it)),r!==i&&(ke=t,r=ot()),(t=r)===i&&(t=_e,e.substr(_e,5)===at?(r=at,_e+=5):(r=i,0===Ae&&Pe(st)),r!==i&&(ke=t,r=ut()),t=r),Oe[n]={nextPos:_e,result:t},t)}function ur(){var t,r,n,o,a,s=49*_e+28,c=Oe[s];if(c)return _e=c.nextPos,c.result;if(t=_e,91===e.charCodeAt(_e)?(r=d,_e++):(r=i,0===Ae&&Pe(p)),r!==i){for(n=[],o=hr();o!==i;)n.push(o),o=hr();n!==i?(93===e.charCodeAt(_e)?(o=b,_e++):(o=i,0===Ae&&Pe(v)),o!==i?(ke=t,t=r=ct()):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;if(t===i&&(t=_e,91===e.charCodeAt(_e)?(r=d,_e++):(r=i,0===Ae&&Pe(p)),r!==i?((n=cr())===i&&(n=I),n!==i?(93===e.charCodeAt(_e)?(o=b,_e++):(o=i,0===Ae&&Pe(v)),o!==i?(ke=t,t=r=ft(n)):(_e=t,t=u)):(_e=t,t=u)):(_e=t,t=u),t===i)){if(t=_e,91===e.charCodeAt(_e)?(r=d,_e++):(r=i,0===Ae&&Pe(p)),r!==i){if(n=[],(o=fr())!==i)for(;o!==i;)n.push(o),o=fr();else n=u;n!==i?(93===e.charCodeAt(_e)?(o=b,_e++):(o=i,0===Ae&&Pe(v)),o!==i?(ke=t,t=r=ht(n)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u;if(t===i)if(t=_e,91===e.charCodeAt(_e)?(r=d,_e++):(r=i,0===Ae&&Pe(p)),r!==i){if(n=[],(o=fr())!==i)for(;o!==i;)n.push(o),o=fr();else n=u;n!==i&&(o=cr())!==i?(93===e.charCodeAt(_e)?(a=b,_e++):(a=i,0===Ae&&Pe(v)),a!==i?(ke=t,t=r=lt(n,o)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u}return Oe[s]={nextPos:_e,result:t},t}function cr(){var t,e,r,n,o,a=49*_e+29,s=Oe[a];if(s)return _e=s.nextPos,s.result;for(t=_e,e=[],r=hr();r!==i;)e.push(r),r=hr();if(e!==i)if((r=Ye())!==i){for(n=[],o=hr();o!==i;)n.push(o),o=hr();n!==i?(ke=t,t=e=dt(r)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u;return Oe[a]={nextPos:_e,result:t},t}function fr(){var t,r,n,o,a,s,c,f=49*_e+30,h=Oe[f];if(h)return _e=h.nextPos,h.result;for(t=_e,r=[],n=hr();n!==i;)r.push(n),n=hr();if(r!==i)if((n=Ye())!==i){for(o=[],a=hr();a!==i;)o.push(a),a=hr();if(o!==i)if(44===e.charCodeAt(_e)?(a=pt,_e++):(a=i,0===Ae&&Pe(bt)),a!==i){for(s=[],c=hr();c!==i;)s.push(c),c=hr();s!==i?(ke=t,t=r=dt(n)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;else _e=t,t=u;return Oe[f]={nextPos:_e,result:t},t}function hr(){var t,e=49*_e+31,r=Oe[e];return r?(_e=r.nextPos,r.result):((t=gr())===i&&(t=wr())===i&&(t=Ne()),Oe[e]={nextPos:_e,result:t},t)}function lr(){var t,r,n,o,a,s,c=49*_e+32,f=Oe[c];if(f)return _e=f.nextPos,f.result;if(t=_e,123===e.charCodeAt(_e)?(r=vt,_e++):(r=i,0===Ae&&Pe(mt)),r!==i){for(n=[],o=gr();o!==i;)n.push(o),o=gr();if(n!==i){for(o=[],a=dr();a!==i;)o.push(a),a=dr();if(o!==i){for(a=[],s=gr();s!==i;)a.push(s),s=gr();a!==i?(125===e.charCodeAt(_e)?(s=yt,_e++):(s=i,0===Ae&&Pe(gt)),s!==i?(ke=t,t=r=wt(o)):(_e=t,t=u)):(_e=t,t=u)}else _e=t,t=u}else _e=t,t=u}else _e=t,t=u;return Oe[c]={nextPos:_e,result:t},t}function dr(){var t,r,n,o,a,s,c,f,h,l,d,p=49*_e+33,b=Oe[p];if(b)return _e=b.nextPos,b.result;for(t=_e,r=[],n=gr();n!==i;)r.push(n),n=gr();if(r!==i)if((n=Ke())!==i){for(o=[],a=gr();a!==i;)o.push(a),a=gr();if(o!==i)if(61===e.charCodeAt(_e)?(a=S,_e++):(a=i,0===Ae&&Pe(E)),a!==i){for(s=[],c=gr();c!==i;)s.push(c),c=gr();if(s!==i)if((c=Ye())!==i){for(f=[],h=gr();h!==i;)f.push(h),h=gr();if(f!==i)if(44===e.charCodeAt(_e)?(h=pt,_e++):(h=i,0===Ae&&Pe(bt)),h!==i){for(l=[],d=gr();d!==i;)l.push(d),d=gr();l!==i?(ke=t,t=r=_t(n,c)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;else _e=t,t=u;if(t===i){for(t=_e,r=[],n=gr();n!==i;)r.push(n),n=gr();if(r!==i)if((n=Ke())!==i){for(o=[],a=gr();a!==i;)o.push(a),a=gr();if(o!==i)if(61===e.charCodeAt(_e)?(a=S,_e++):(a=i,0===Ae&&Pe(E)),a!==i){for(s=[],c=gr();c!==i;)s.push(c),c=gr();s!==i&&(c=Ye())!==i?(ke=t,t=r=_t(n,c)):(_e=t,t=u)}else _e=t,t=u;else _e=t,t=u}else _e=t,t=u;else _e=t,t=u}return Oe[p]={nextPos:_e,result:t},t}function pr(){var t,r,n,o=49*_e+34,a=Oe[o];return a?(_e=a.nextPos,a.result):(t=_e,46===e.charCodeAt(_e)?(r=k,_e++):(r=i,0===Ae&&Pe(M)),r!==i&&(n=xr())!==i?(ke=t,t=r=kt(n)):(_e=t,t=u),Oe[o]={nextPos:_e,result:t},t)}function br(){var t,r,n,o,a,s,c,f,h,l,d,p,b=49*_e+35,v=Oe[b];return v?(_e=v.nextPos,v.result):(t=_e,r=_e,(n=Sr())!==i&&(o=Sr())!==i&&(a=Sr())!==i&&(s=Sr())!==i?(45===e.charCodeAt(_e)?(c=$,_e++):(c=i,0===Ae&&Pe(tt)),c!==i&&(f=Sr())!==i&&(h=Sr())!==i?(45===e.charCodeAt(_e)?(l=$,_e++):(l=i,
20===Ae&&Pe(tt)),l!==i&&(d=Sr())!==i&&(p=Sr())!==i?r=n=[n,o,a,s,c,f,h,l,d,p]:(_e=r,r=u)):(_e=r,r=u)):(_e=r,r=u),r!==i&&(ke=t,r=Mt(r)),t=r,Oe[b]={nextPos:_e,result:t},t)}function vr(){var t,r,n,o,a,s,c,f,h,l,d,p=49*_e+36,b=Oe[p];return b?(_e=b.nextPos,b.result):(t=_e,r=_e,(n=Sr())!==i&&(o=Sr())!==i?(58===e.charCodeAt(_e)?(a=St,_e++):(a=i,0===Ae&&Pe(Et)),a!==i&&(s=Sr())!==i&&(c=Sr())!==i?(58===e.charCodeAt(_e)?(f=St,_e++):(f=i,0===Ae&&Pe(Et)),f!==i&&(h=Sr())!==i&&(l=Sr())!==i?((d=pr())===i&&(d=I),d!==i?r=n=[n,o,a,s,c,f,h,l,d]:(_e=r,r=u)):(_e=r,r=u)):(_e=r,r=u)):(_e=r,r=u),r!==i&&(ke=t,r=xt(r)),t=r,Oe[p]={nextPos:_e,result:t},t)}function mr(){var t,r,n,o,a,s,c,f,h,l,d,p,b,v,m,y,g,w=49*_e+37,_=Oe[w];return _?(_e=_.nextPos,_.result):(t=_e,r=_e,(n=Sr())!==i&&(o=Sr())!==i?(58===e.charCodeAt(_e)?(a=St,_e++):(a=i,0===Ae&&Pe(Et)),a!==i&&(s=Sr())!==i&&(c=Sr())!==i?(58===e.charCodeAt(_e)?(f=St,_e++):(f=i,0===Ae&&Pe(Et)),f!==i&&(h=Sr())!==i&&(l=Sr())!==i?((d=pr())===i&&(d=I),d!==i?(45===e.charCodeAt(_e)?(p=$,_e++):(p=i,0===Ae&&Pe(tt)),p===i&&(43===e.charCodeAt(_e)?(p=X,_e++):(p=i,0===Ae&&Pe(J))),p!==i&&(b=Sr())!==i&&(v=Sr())!==i?(58===e.charCodeAt(_e)?(m=St,_e++):(m=i,0===Ae&&Pe(Et)),m!==i&&(y=Sr())!==i&&(g=Sr())!==i?r=n=[n,o,a,s,c,f,h,l,d,p,b,v,m,y,g]:(_e=r,r=u)):(_e=r,r=u)):(_e=r,r=u)):(_e=r,r=u)):(_e=r,r=u)):(_e=r,r=u),r!==i&&(ke=t,r=xt(r)),t=r,Oe[w]={nextPos:_e,result:t},t)}function yr(){var t,r,n,o,a,s=49*_e+38,c=Oe[s];return c?(_e=c.nextPos,c.result):(t=_e,(r=br())!==i?(84===e.charCodeAt(_e)?(n=At,_e++):(n=i,0===Ae&&Pe(Ot)),n!==i&&(o=vr())!==i?(90===e.charCodeAt(_e)?(a=jt,_e++):(a=i,0===Ae&&Pe(Rt)),a!==i?(ke=t,t=r=It(r,o)):(_e=t,t=u)):(_e=t,t=u)):(_e=t,t=u),t===i&&(t=_e,(r=br())!==i?(84===e.charCodeAt(_e)?(n=At,_e++):(n=i,0===Ae&&Pe(Ot)),n!==i&&(o=mr())!==i?(ke=t,t=r=Pt(r,o)):(_e=t,t=u)):(_e=t,t=u)),Oe[s]={nextPos:_e,result:t},t)}function gr(){var t,r=49*_e+39,n=Oe[r];return n?(_e=n.nextPos,n.result):(Tt.test(e.charAt(_e))?(t=e.charAt(_e),_e++):(t=i,0===Ae&&Pe(Ct)),Oe[r]={nextPos:_e,result:t},t)}function wr(){var t,r,n,o=49*_e+40,a=Oe[o];return a?(_e=a.nextPos,a.result):(10===e.charCodeAt(_e)?(t=Bt,_e++):(t=i,0===Ae&&Pe(Lt)),t===i&&(t=_e,13===e.charCodeAt(_e)?(r=Nt,_e++):(r=i,0===Ae&&Pe(Dt)),r!==i?(10===e.charCodeAt(_e)?(n=Bt,_e++):(n=i,0===Ae&&Pe(Lt)),n!==i?t=r=[r,n]:(_e=t,t=u)):(_e=t,t=u)),Oe[o]={nextPos:_e,result:t},t)}function _r(){var t,e=49*_e+41,r=Oe[e];return r?(_e=r.nextPos,r.result):((t=wr())===i&&(t=gr()),Oe[e]={nextPos:_e,result:t},t)}function kr(){var t,r,n=49*_e+42,o=Oe[n];return o?(_e=o.nextPos,o.result):(t=_e,Ae++,e.length>_e?(r=e.charAt(_e),_e++):(r=i,0===Ae&&Pe(l)),Ae--,r===i?t=h:(_e=t,t=u),Oe[n]={nextPos:_e,result:t},t)}function Mr(){var t,r=49*_e+43,n=Oe[r];return n?(_e=n.nextPos,n.result):(Ut.test(e.charAt(_e))?(t=e.charAt(_e),_e++):(t=i,0===Ae&&Pe(zt)),Oe[r]={nextPos:_e,result:t},t)}function Sr(){var t,r,n=49*_e+44,o=Oe[n];return o?(_e=o.nextPos,o.result):(Wt.test(e.charAt(_e))?(t=e.charAt(_e),_e++):(t=i,0===Ae&&Pe(qt)),t===i&&(t=_e,95===e.charCodeAt(_e)?(r=Ft,_e++):(r=i,0===Ae&&Pe(Kt)),r!==i&&(ke=t,r=Ht()),t=r),Oe[n]={nextPos:_e,result:t},t)}function Er(){var t,r=49*_e+45,n=Oe[r];return n?(_e=n.nextPos,n.result):(Yt.test(e.charAt(_e))?(t=e.charAt(_e),_e++):(t=i,0===Ae&&Pe(Vt)),Oe[r]={nextPos:_e,result:t},t)}function xr(){var t,e,r,n=49*_e+46,o=Oe[n];if(o)return _e=o.nextPos,o.result;if(t=_e,e=[],(r=Sr())!==i)for(;r!==i;)e.push(r),r=Sr();else e=u;return e!==i&&(ke=t,e=Zt(e)),t=e,Oe[n]={nextPos:_e,result:t},t}function Ar(){var t,r,n=49*_e+47,o=Oe[n];return o?(_e=o.nextPos,o.result):(t=_e,e.substr(_e,2)===Gt?(r=Gt,_e+=2):(r=i,0===Ae&&Pe(Xt)),r!==i&&(ke=t,r=Jt()),(t=r)===i&&(t=_e,e.substr(_e,2)===Qt?(r=Qt,_e+=2):(r=i,0===Ae&&Pe($t)),r!==i&&(ke=t,r=te()),(t=r)===i&&(t=_e,e.substr(_e,2)===ee?(r=ee,_e+=2):(r=i,0===Ae&&Pe(re)),r!==i&&(ke=t,r=ne()),(t=r)===i&&(t=_e,e.substr(_e,2)===ie?(r=ie,_e+=2):(r=i,0===Ae&&Pe(oe)),r!==i&&(ke=t,r=ae()),(t=r)===i&&(t=_e,e.substr(_e,2)===se?(r=se,_e+=2):(r=i,0===Ae&&Pe(ue)),r!==i&&(ke=t,r=ce()),(t=r)===i&&(t=_e,e.substr(_e,2)===fe?(r=fe,_e+=2):(r=i,0===Ae&&Pe(he)),r!==i&&(ke=t,r=le()),(t=r)===i&&(t=_e,e.substr(_e,2)===de?(r=de,_e+=2):(r=i,0===Ae&&Pe(pe)),r!==i&&(ke=t,r=be()),(t=r)===i&&(t=Or()))))))),Oe[n]={nextPos:_e,result:t},t)}function Or(){var t,r,n,o,a,s,c,f,h,l,d,p=49*_e+48,b=Oe[p];return b?(_e=b.nextPos,b.result):(t=_e,e.substr(_e,2)===ve?(r=ve,_e+=2):(r=i,0===Ae&&Pe(me)),r!==i?(n=_e,(o=Mr())!==i&&(a=Mr())!==i&&(s=Mr())!==i&&(c=Mr())!==i&&(f=Mr())!==i&&(h=Mr())!==i&&(l=Mr())!==i&&(d=Mr())!==i?n=o=[o,a,s,c,f,h,l,d]:(_e=n,n=u),n!==i?(ke=t,t=r=ye(n)):(_e=t,t=u)):(_e=t,t=u),t===i&&(t=_e,e.substr(_e,2)===ge?(r=ge,_e+=2):(r=i,0===Ae&&Pe(we)),r!==i?(n=_e,(o=Mr())!==i&&(a=Mr())!==i&&(s=Mr())!==i&&(c=Mr())!==i?n=o=[o,a,s,c]:(_e=n,n=u),n!==i?(ke=t,t=r=ye(n)):(_e=t,t=u)):(_e=t,t=u)),Oe[p]={nextPos:_e,result:t},t)}var jr=[];function Rr(t,e,r){var n=new Error(t);throw n.line=e,n.column=r,n}function Ir(t){jr.push(t)}function Pr(t,e,r,n,i){var o={type:t,value:e,line:r(),column:n()};return i&&(o.key=i),o}function Tr(t,e,r){var n=parseInt("0x"+t);if(!(!isFinite(n)||Math.floor(n)!=n||n<0||n>1114111||n>55295&&n<57344))return Cr(n);Rr("Invalid Unicode escape code: "+t,e,r)}function Cr(){var t,e,r=16384,n=[],i=-1,o=arguments.length;if(!o)return"";for(var a="";++i<o;){var s=Number(arguments[i]);s<=65535?n.push(s):(t=55296+((s-=65536)>>10),e=s%1024+56320,n.push(t,e)),(i+1==o||n.length>r)&&(a+=String.fromCharCode.apply(null,n),n.length=0)}return a}if((r=a())!==i&&_e===e.length)return r;throw r!==i&&_e<e.length&&Pe({type:"end",description:"end of input"}),Te(null,xe,Ee)}}}()},function(t,e,r){"use strict";
2t.exports={compile:function(t){var e=[],r=[],n="",i=Object.create(null),o=i;return function(t){for(var e,r=0;r<t.length;r++)switch((e=t[r]).type){case"Assign":s(e);break;case"ObjectPath":h(e);break;case"ArrayPath":l(e)}return i}(t);function a(t,e,r){var n=new Error(t);throw n.line=e,n.column=r,n}function s(t){var i,s=t.key,f=t.value,h=t.line,l=t.column;i=n?n+"."+s:s,"undefined"!==typeof o[s]&&a("Cannot redefine existing key '"+i+"'.",h,l),o[s]=c(f),u(i)||(e.push(i),r.push(i))}function u(t){return-1!==e.indexOf(t)}function c(t){return"Array"===t.type?function(t){for(var e=null,r=0;r<t.length;r++){var n=t[r];null===e?e=n.type:n.type!==e&&a("Cannot add value of type "+n.type+" to array of type "+e+".",n.line,n.column)}return t.map(c)}(t.value):"InlineTable"===t.type?f(t.value):t.value}function f(t){for(var e=Object.create(null),r=0;r<t.length;r++){var n=t[r];"InlineTable"===n.value.type?e[n.key]=f(n.value.value):"InlineTableValue"===n.type&&(e[n.key]=c(n.value))}return e}function h(t){var r=t.value,s=r.map(p).join("."),c=t.line,f=t.column;u(s)&&a("Cannot redefine existing key '"+r+"'.",c,f),e.push(s),o=d(i,r,Object.create(null),c,f),n=r}function l(t){var r=t.value,s=r.map(p).join("."),c=t.line,f=t.column;if(u(s)||e.push(s),(e=e.filter((function(t){return 0!==t.indexOf(s)}))).push(s),o=d(i,r,[],c,f),n=s,o instanceof Array){var h=Object.create(null);o.push(h),o=h}else a("Cannot redefine existing key '"+r+"'.",c,f)}function d(t,e,n,i,o){for(var s=[],u="",c=(e.join("."),t),f=0;f<e.length;f++){var h=e[f];s.push(h),u=s.join("."),"undefined"===typeof c[h]?f===e.length-1?c[h]=n:c[h]=Object.create(null):f!==e.length-1&&r.indexOf(u)>-1&&a("Cannot redefine existing key '"+u+"'.",i,o),(c=c[h])instanceof Array&&c.length&&f<e.length-1&&(c=c[c.length-1])}return c}function p(t){return t.indexOf(".")>-1?'"'+t+'"':t}}}},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 r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return(i?"/":"")+(e=r(n(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=r(n(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return(c=c.concat(o.slice(s))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!==typeof t&&(t+="");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=a+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?"":t.slice(e,n)};var i="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(27))},,function(t,e,r){"use strict";r(136);var n=r(2),i=60103;if(e.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),e.Fragment=o("react.fragment")}
2var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var n,o={},c=null,f=null;for(n in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(f=e.ref),e)s.call(e,n)&&!u.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===o[n]&&(o[n]=e[n]);return{$$typeof:i,type:t,key:c,ref:f,props:o,_owner:a.current}}e.jsx=c,e.jsxs=c},function(t,e,r){"use strict";var n=r(1),i=r(34),o=r(36),a=r(57),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.BitpieWalletAdapter=void 0;var f=r(26),h=r(16),l=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,r),(t=e.call(this))._connecting=!1,t._wallet=null,t._publicKey=null,t.ready||(0,f.pollUntilReady)(a(t),n.pollInterval||1e3,n.pollCount||3),t}return o(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){return"undefined"!==typeof window&&!!window.bitpie}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._wallet}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e,r,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e="undefined"!==typeof window&&window.bitpie){t.next=7;break}throw new f.WalletNotFoundError;case 7:return t.prev=7,t.next=10,e.getAccount();case 10:r=t.sent,t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(7),new f.WalletAccountError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 16:t.prev=16,i=new h.PublicKey(r),t.next=23;break;case 20:throw t.prev=20,t.t1=t.catch(16),new f.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 23:this._wallet=e,this._publicKey=i,this.emit("connect"),t.next=32;break;case 28:throw t.prev=28,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 32:return t.prev=32,this._connecting=!1,t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[0,28,32,35],[7,13],[16,20]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,n.mark((function t(){return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._wallet&&(this._wallet=null,this._publicKey=null,this.emit("disconnect"));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"signTransaction",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}},{key:"signAllTransactions",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}}]),r}(f.BaseSignerWalletAdapter);e.BitpieWalletAdapter=l},function(t,e,r){"use strict";var n=r(143),i=r(1),o=r(34),a=r(36),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0}),e.BloctoWalletAdapter=void 0;var h=f(r(412)),l=r(26),d=r(16),p=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,r),(t=e.call(this))._connecting=!1,t._wallet=null,t._publicKey=null,t._network=n.network||l.WalletAdapterNetwork.Mainnet,t}return a(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){return!0}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._publicKey}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){return c(this,void 0,void 0,i.mark((function t(){var e,r,n;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e=new h.default({solana:{net:this._network}}).solana){t.next=7;break}throw new l.WalletNotFoundError;case 7:if(e.connected){t.next=16;break}return t.prev=8,t.next=11,e.connect();case 11:t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(8),new l.WalletConnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 16:if(r=e.accounts[0]){t.next=19;break}throw new l.WalletAccountError;case 19:t.prev=19,n=new d.PublicKey(r),t.next=26;break;case 23:throw t.prev=23,t.t1=t.catch(19),new l.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 26:this._wallet=e,this._publicKey=n,this.emit("connect"),t.next=35;break;case 31:throw t.prev=31,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 35:return t.prev=35,this._connecting=!1,t.finish(35);case 38:case"end":return t.stop()}}),t,this,[[0,31,35,38],[8,13],[19,23]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,i.mark((function t(){var e;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this._wallet){this._wallet=null,this._publicKey=null;try{e.disconnect()}catch(r){this.emit("error",new l.WalletDisconnectionError(null===r||void 0===r?void 0:r.message,r))}this.emit("disconnect")}case 2:case"end":return t.stop()}}),t,this)})))}},{key:"sendTransaction",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c(this,void 0,void 0,i.mark((function o(){var a,s,u;return i.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,a=this._wallet){i.next=4;break}throw new l.WalletNotConnectedError;case 4:if(i.prev=4,t.feePayer||(t.feePayer=this.publicKey||void 0),i.t0=t.recentBlockhash,i.t0){i.next=11;break}return i.next=10,e.getRecentBlockhash("finalized");case 10:t.recentBlockhash=i.sent.blockhash;case 11:if(!(null===(s=r.signers)||void 0===s?void 0:s.length)){i.next=17;break}return i.next=15,a.convertToProgramWalletTransaction(t);case 15:t=i.sent,(u=t).partialSign.apply(u,n(s));case 17:return i.next=19,a.signAndSendTransaction(t,e);case 19:return i.abrupt("return",i.sent);case 22:if(i.prev=22,i.t1=i.catch(4),!(i.t1 instanceof l.WalletError)){i.next=26;break}throw i.t1;case 26:throw new l.WalletSendTransactionError(null===i.t1||void 0===i.t1?void 0:i.t1.message,i.t1);case 27:i.next=33;break;case 29:throw i.prev=29,i.t2=i.catch(0),this.emit("error",i.t2),i.t2;case 33:case"end":return i.stop()}}),o,this,[[0,29],[4,22]])})))}}]),r}(l.BaseWalletAdapter);e.BloctoWalletAdapter=p},function(t,e,r){(function(e){var n=r(233),i=r(413),o=r(143),a=r(414),s=r(57),u=r(180),c=r(137),f=r(70),h=r(182),l=r(226),d=r(39),p=r(40),b=r(1),v=r(227),m=r(34),y=r(36);t.exports=function(){"use strict";var t=b.mark(Qe),r=b.mark($e),g="undefined"!=typeof e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function w(){throw new Error("setTimeout has not been defined")}function _(){throw new Error("clearTimeout has not been defined")}var k=w,M=_;function S(t){if(k===setTimeout)return setTimeout(t,0);if((k===w||!k)&&setTimeout)return k=setTimeout,setTimeout(t,0);try{return k(t,0)}catch(w){try{return k.call(null,t,0)}catch(w){return k.call(this,t,0)}}}"function"==typeof g.setTimeout&&(k=setTimeout),"function"==typeof g.clearTimeout&&(M=clearTimeout);var E,x=[],A=!1,O=-1;function j(){A&&E&&(A=!1,E.length?x=E.concat(x):O=-1,x.length&&R())}function R(){if(!A){var t=S(j);A=!0;for(var e=x.length;e;){for(E=x,x=[];++O<e;)E&&E[O].run();O=-1,e=x.length}E=null,A=!1,function(t){if(M===clearTimeout)return clearTimeout(t);if((M===_||!M)&&clearTimeout)return M=clearTimeout,clearTimeout(t);try{M(t)}catch(e){try{return M.call(null,t)}catch(e){return M.call(this,t)}}}(t)}}function I(t,e){this.fun=t,this.array=e}function P(){}I.prototype.run=function(){this.fun.apply(null,this.array)};var T=P,C=P,B=P,L=P,N=P,D=P,U=P,z=g.performance||{},W=z.now||z.mozNow||z.msNow||z.oNow||z.webkitNow||function(){return(new Date).getTime()},q=new Date,F={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];x.push(new I(t,e)),1!==x.length||A||S(R)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:T,addListener:C,once:B,off:L,removeListener:N,removeAllListeners:D,emit:U,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*W.call(z),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-q)/1e3}}
2,K=function(t,e,r,n,i,o,a,s){if("production"!==F.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],f=0;(u=new Error(e.replace(/%s/g,(function(){return c[f++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}};function H(t){var e=document.createElement("iframe");return e.setAttribute("src",t),e.setAttribute("style","width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:1000;border:none;"),e}function Y(t){document.body.appendChild(t)}function V(t){var e=t&&t.parentNode;e&&e.removeChild instanceof Function&&e.removeChild(t)}var Z=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;r.addEventListener(t,(function n(i){e(i,(function(){return r.removeEventListener(t,n)}))}))},G={56:"https://bsc-dataseed1.binance.org",97:"https://data-seed-prebsc-1-s1.binance.org:8545",137:"https://rpc-mainnet.maticvigil.com/",80001:"https://rpc-mumbai.matic.today/",43114:"https://api.avax.network/ext/bc/C/rpc",43113:"https://api.avax-test.network/ext/bc/C/rpc"},X={1:"ethereum",4:"ethereum",56:"bsc",97:"bsc",137:"polygon",80001:"polygon",43114:"avalanche",43113:"avalanche"},J={1:"mainnet",4:"rinkeby",56:"mainnet",97:"testnet",137:"mainnet",80001:"testnet",43114:"mainnet",43113:"testnet"},Q={1:"https://wallet.blocto.app",4:"https://wallet-testnet.blocto.app",56:"https://wallet.blocto.app",97:"https://wallet-testnet.blocto.app",137:"https://wallet.blocto.app",80001:"https://wallet-testnet.blocto.app",43114:"https://wallet.blocto.app",43113:"https://wallet-testnet.blocto.app"},$={devnet:"https://wallet-testnet.blocto.app",testnet:"https://wallet-testnet.blocto.app","mainnet-beta":"https://wallet.blocto.app"},tt=["devnet","testnet","mainnet-beta"],et=["connect","disconnect","message","chainChanged","accountsChanged"],rt=function(){function t(){var e=this;m(this,t),this.isBlocto=!0,this.isConnecting=!1,this.connected=!1,this.eventListeners={},this.off=removeEventListener,et.forEach((function(t){e.eventListeners[t]=[]}))}return y(t,[{key:"request",value:function(){var t=v(b.mark((function t(e){return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"on",value:function(t,e){et.includes(t)&&this.eventListeners[t].push(e)}},{key:"once",value:function(){}},{key:"removeListener",value:function(t,e){var r=this.eventListeners[t].findIndex((function(t){return t===e}));-1!==r&&this.eventListeners[t].splice(r,1)}}]),t}();window.memoryStorage=window.memoryStorage||new(function(){function t(){m(this,t),this.storage={}}return y(t,[{key:"getItem",value:function(t){return this[t]||null}},{key:"setItem",value:function(t,e){this.storage[t]=e}},{key:"removeItem",value:function(t){delete this.storage[t]}}]),t}());var nt=window.memoryStorage,it=function(){try{window.localStorage.setItem("local_storage_supported","1");var t=window.localStorage.getItem("local_storage_supported");return window.localStorage.removeItem("local_storage_supported"),"1"===t}catch(g){return!1}}()?window.localStorage:nt,ot=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=it.getItem(t);try{return JSON.parse(r)||e}catch(t){return r||e}}(t,null);return r?(new Date).getTime()>r.expiry?(st(t),e):r.value:e},at=function(t,e){return it.setItem(t,"string"==typeof e?e:JSON.stringify(e))},st=function(t){at(t,""),it.removeItem(t)},ut=function(t){d(r,t);var e=p(r);function r(t){var n,i=t.chainId,o=void 0===i?"0x1":i,a=t.rpc,s=t.server,u=t.appId;m(this,r),(n=e.call(this)).code=null,n.accounts=[],K(o,"'chainId' is required"),"number"==typeof o?n.chainId=o:o.includes("0x")?n.chainId=parseInt(o,16):n.chainId=parseInt(o,10),n.networkId=n.chainId,n.chain=X[n.chainId],n.net=J[n.chainId],K(n.chain,"unsupported 'chainId': ".concat(n.chainId)),n.rpc=a||G[n.chainId]||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).RPC||"",K(n.rpc,"'rpc' is required for Ethereum"),n.server=s||Q[n.chainId]||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).SERVER||"",n.appId=u||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).APP_ID,n.sessionKey="sdk.session-".concat(n.chainId);var c=ot(n.sessionKey,{});
2return n.connected=Boolean(c&&c.code),n.code=c.code||null,n.accounts=c.accounts||[],n}return y(r,[{key:"send",value:function(){var t=v(b.mark((function t(e,r){return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=!0,t.next=t.t0===r instanceof Function?3:t.t0===("string"==typeof e&&Array.isArray(r))?4:5;break;case 3:return t.abrupt("return",this.sendAsync(e,r));case 4:return t.abrupt("return",this.sendAsync({method:e,params:r}));case 5:return t.abrupt("return",this.sendAsync(e));case 6:case"end":return t.stop()}}),t,this)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"checkNetworkMatched",value:function(){var t=window.ethereum;if(t&&t.isBlocto&&parseInt(t.chainId,16)!==this.chainId)throw new Error("Blocto SDK network mismatched")}},{key:"sendAsync",value:function(){var t=v(b.mark((function t(e,r){var n,i=this;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=new Promise((function(t){if(Array.isArray(e)){var r=e.filter((function(t){return"eth_sendTransaction"===t.method})).map((function(t){return t.params[0]})),n=Math.floor(1e4*Math.random()),o={method:"blocto_sendBatchTransaction",params:r},a=i.request(o),s=e.map((function(t,e){var r=t.method,o=t.params;return"eth_sendTransaction"===r?a:i.request({id:n+e+1,jsonrpc:"2.0",method:r,params:o})}));Promise.allSettled(s).then((function(e){return t(e.map((function(t,e){return{id:n+e+1,jsonrpc:"2.0",result:"fulfilled"===t.status?t.value:void 0,error:"fulfilled"!==t.status?t.reason:void 0}})))}))}else i.request(e).then(t)})),r){t.next=3;break}return t.abrupt("return",n);case 3:n.then((function(t){return r(null,t)})).catch((function(t){return r(t)}));case 4:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"request",value:function(){var t=v(b.mark((function t(e){var r,n,i;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=window.ethereum)||!r.isBlocto){t.next=3;break}return t.abrupt("return",r.request(e));case 3:if(t.t0=this.connected,t.t0){t.next=7;break}return t.next=7,this.enable();case 7:t.prev=7,n=null,i=null,t.t1=e.method,t.next="eth_requestAccounts"===t.t1?12:"eth_accounts"===t.t1?15:"eth_coinbase"===t.t1?24:"eth_chainId"===t.t1?26:"net_version"===t.t1?28:"personal_sign"===t.t1||"eth_sign"===t.t1?30:"blocto_sendBatchTransaction"===t.t1||"eth_sendTransaction"===t.t1?34:"eth_signTransaction"===t.t1||"eth_sendRawTransaction"===t.t1?38:40;break;case 12:return t.next=14,this.fetchAccounts();case 14:this.accounts=t.sent;case 15:if(!this.accounts.length){t.next=19;break}t.t2=this.accounts,t.next=22;break;case 19:return t.next=21,this.fetchAccounts();case 21:t.t2=t.sent;case 22:return i=t.t2,t.abrupt("break",43);case 24:return i=this.accounts[0],t.abrupt("break",43);case 26:return i=this.chainId,i="0x".concat(i.toString(16)),t.abrupt("break",43);case 28:return i=this.networkId||this.chainId,i="0x".concat(i.toString(16)),t.abrupt("break",43);case 30:return t.next=32,this.handleSign(e);case 32:return i=t.sent,t.abrupt("break",43);case 34:return t.next=36,this.handleSendTransaction(e);case 36:return i=t.sent,t.abrupt("break",43);case 38:return i=null,t.abrupt("break",43);case 40:return t.next=42,this.handleReadRequests(e);case 42:n=t.sent;case 43:return t.abrupt("return",n?n.result:i);case 46:throw t.prev=46,t.t3=t.catch(7),console.error(t.t3),t.t3;case 49:case"end":return t.stop()}}),t,this,[[7,46]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"enable",value:function(){var t=v(b.mark((function t(){var e,r=this;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=window.ethereum)||!e.isBlocto){t.next=13;break}if(parseInt(e.chainId,16)===this.chainId){t.next=12;break}return t.prev=3,t.next=6,e.request({method:"wallet_addEthereumChain",params:[{chainId:"0x".concat(this.chainId.toString(16))}]});case 6:this.accounts=[e.address],t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),console.error(t.t0);case 12:return t.abrupt("return",new Promise((function(t,r){return setTimeout((function(){return e.enable().then(t).catch(r)}),10)})));case 13:return t.abrupt("return",new Promise((function(t,e){if("undefined"==typeof window&&e("Currently only supported in browser"),r.connected)return t(r.accounts);var n=encodeURIComponent(window.location.origin),i=H("".concat(r.server,"/authn?l6n=").concat(n,"&chain=").concat(r.chain));Y(i),Z("message",(function(n,o){var a=n;a.origin===r.server&&("FCL::CHALLENGE::RESPONSE"===a.data.type&&(o(),V(i),r.code=a.data.code,r.connected=!0,r.eventListeners.connect.forEach((function(t){return t(r.chainId)})),r.accounts=[a.data.addr],function(t,e,r){at(t,{value:e,expiry:(new Date).getTime()+r})}(r.sessionKey,{code:r.code,accounts:r.accounts},864e5),t(r.accounts)),"FCL::CHALLENGE::CANCEL"===a.data.type&&(o(),V(i),e()))}
2))})));case 14:case"end":return t.stop()}}),t,this,[[3,9]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"fetchAccounts",value:function(){var t=v(b.mark((function t(){var e,r;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.checkNetworkMatched(),t.next=3,fetch("".concat(this.server,"/api/").concat(this.chain,"/accounts?code=").concat(this.code)).then((function(t){return t.json()}));case 3:return e=t.sent,r=e.accounts,t.abrupt("return",(this.accounts=r,r));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"handleReadRequests",value:function(){var t=v(b.mark((function t(e){return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(this.checkNetworkMatched(),fetch(this.rpc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l({id:1,jsonrpc:"2.0"},e))}).then((function(t){return t.json()}))));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"handleSign",value:function(){var t=v(b.mark((function t(e){var r,n,i,o,a,s=this;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,n=e.params,i="".concat(this.server,"/user-signature/").concat(this.chain),Y(o=H(i)),a="",t.abrupt("return",(Array.isArray(n)&&("eth_sign"===r?a=n[1].slice(2):"personal_sign"===r&&(a=n[0].slice(2))),Z("message",(function(t,e){var n=t;n.origin===s.server&&"ETH:FRAME:READY"===n.data.type&&(o.contentWindow&&o.contentWindow.postMessage({type:"ETH:FRAME:READY:RESPONSE",method:r,message:a,chain:s.chain},i),e())})),new Promise((function(t,e){return Z("message",(function(r,n){var i=r;i.origin===s.server&&"ETH:FRAME:RESPONSE"===i.data.type&&("APPROVED"===i.data.status&&(n(),V(o),t(i.data.signature)),"DECLINED"===i.data.status&&(n(),V(o),e()))}))}))));case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"handleSendTransaction",value:function(){var t=v(b.mark((function t(e){var r,n,i,o=this;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.checkNetworkMatched(),t.next=3,fetch("".concat(this.server,"/api/").concat(this.chain,"/authz?code=").concat(this.code),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.params)}).then((function(t){return t.json()}));case 3:if(r=t.sent,n=r.authorizationId,"undefined"!=typeof window){t.next=7;break}throw new Error("Currently only supported in browser");case 7:return i=H("".concat(this.server,"/authz/").concat(this.chain,"/").concat(n)),t.abrupt("return",(Y(i),new Promise((function(t,e){return Z("message",(function(r,n){var a=r;a.origin===o.server&&"ETH:FRAME:RESPONSE"===a.data.type&&("APPROVED"===a.data.status&&(n(),V(i),t(a.data.txHash)),"DECLINED"===a.data.status&&(n(),V(i),e()))}))}))));case 9:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}]),r}(rt),ct=[],ft=[],ht="undefined"!=typeof Uint8Array?Uint8Array:Array,lt=!1;function dt(){lt=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)ct[e]=t[e],ft[t.charCodeAt(e)]=e;ft["-".charCodeAt(0)]=62,ft["_".charCodeAt(0)]=63}function pt(t,e,r){for(var n,i,o=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(ct[(i=n)>>18&63]+ct[i>>12&63]+ct[i>>6&63]+ct[63&i]);return o.join("")}function bt(t){var e;lt||dt();for(var r=t.length,n=r%3,i="",o=[],a=16383,s=0,u=r-n;s<u;s+=a)o.push(pt(t,s,s+a>u?u:s+a));return 1===n?(e=t[r-1],i+=ct[e>>2],i+=ct[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=ct[e>>10],i+=ct[e>>4&63],i+=ct[e<<2&63],i+="="),o.push(i),o.join("")}function vt(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,h=r?i-1:0,l=r?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+t[e+h],h+=l,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+h],h+=l,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)}function mt(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,h=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=M
vendor: 4,100 bytes, line 2
2ath.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=f?(s=0,a=f):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+d]=255&a,d+=p,a/=256,c-=8);t[r+d-p]|=128*b}var yt={}.toString,gt=Array.isArray||function(t){return"[object Array]"==yt.call(t)};Mt.TYPED_ARRAY_SUPPORT=void 0===g.TYPED_ARRAY_SUPPORT||g.TYPED_ARRAY_SUPPORT;var wt=_t();function _t(){return Mt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function kt(t,e){if(_t()<e)throw new RangeError("Invalid typed array length");return Mt.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Mt.prototype:(null===t&&(t=new Mt(e)),t.length=e),t}function Mt(t,e,r){if(!(Mt.TYPED_ARRAY_SUPPORT||this instanceof Mt))return new Mt(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return xt(this,t)}return St(this,t,e,r)}function St(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),Mt.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Mt.prototype:t=At(t,e),t}(t,e,r,n):"string"==typeof e?function(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!Mt.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Rt(e,r),i=(t=kt(t,n)).write(e,r);return i!==n&&(t=t.slice(0,i)),t}(t,e,r):function(t,e){if(jt(e)){var r=0|Ot(e.length);return 0===(t=kt(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?kt(t,0):At(t,e);if("Buffer"===e.type&>(e.data))return At(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function Et(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 xt(t,e){if(Et(e),t=kt(t,e<0?0:0|Ot(e)),!Mt.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function At(t,e){var r=e.length<0?0:0|Ot(e.length);t=kt(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function Ot(t){if(t>=_t())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_t().toString(16)+" bytes");return 0|t}function jt(t){return!(null==t||!t._isBuffer)}function Rt(t,e){if(jt(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 r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return ne(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ie(t).length;default:if(n)return ne(t).length;e=(""+e).toLowerCase(),n=!0}}function It(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Yt(this,e,r);case"utf8":case"utf-8":return qt(this,e,r);case"ascii":return Kt(this,e,r);case"latin1":case"binary":return Ht(this,e,r);case"base64":return Wt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function Pt(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Tt(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}
vendor: 11,010 bytes, line 2
2else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=Mt.from(e,n)),jt(e))return 0===e.length?-1:Ct(t,e,r,n,i);if("number"==typeof e)return e&=255,Mt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ct(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ct(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var h=!0,l=0;l<u;l++)if(c(t,o+l)!==c(e,l)){h=!1;break}if(h)return o}return-1}function Bt(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function Lt(t,e,r,n){return oe(ne(e,t.length-r),t,r,n)}function Nt(t,e,r,n){return oe(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function Dt(t,e,r,n){return Nt(t,e,r,n)}function Ut(t,e,r,n){return oe(ie(e),t,r,n)}function zt(t,e,r,n){return oe(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function Wt(t,e,r){return 0===e&&r===t.length?bt(t):bt(t.slice(e,r))}function qt(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],f=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(f=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=Ft)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ft));return r}(n)}Mt.poolSize=8192,Mt._augment=function(t){return t.__proto__=Mt.prototype,t},Mt.from=function(t,e,r){return St(null,t,e,r)},Mt.TYPED_ARRAY_SUPPORT&&(Mt.prototype.__proto__=Uint8Array.prototype,Mt.__proto__=Uint8Array),Mt.alloc=function(t,e,r){return function(t,e,r,n){return Et(e),e<=0?kt(t,e):void 0!==r?"string"==typeof n?kt(t,e).fill(r,n):kt(t,e).fill(r):kt(t,e)}(null,t,e,r)},Mt.allocUnsafe=function(t){return xt(null,t)},Mt.allocUnsafeSlow=function(t){return xt(null,t)},Mt.isBuffer=ae,Mt.compare=function(t,e){if(!jt(t)||!jt(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},Mt.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}},Mt.concat=function(t,e){if(!gt(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Mt.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=Mt.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!jt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},Mt.byteLength=Rt,Mt.prototype._isBuffer=!0,Mt.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 e=0;e<t;e+=2)Pt(this,e,e+1);return this},Mt.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 e=0;e<t;e+=4)Pt(this,e,e+3),Pt(this,e+1,e+2);return this},Mt.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 e=0;e<t;e+=8)Pt(this,e,e+7),Pt(this,e+1,e+6),Pt(this,e+2,e+5),Pt(this,e+3,e+4);return this},Mt.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?qt(this,0,t):It.apply(this,arguments)},Mt.prototype.equals=function(t){if(!jt(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Mt.compare(this,t)},Mt.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Mt.prototype.compare=function(t,e,r,n,i){if(!jt(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),c=t.slice(e,r),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:a<o?1:0},Mt.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},Mt.prototype.indexOf=function(t,e,r){return Tt(this,t,e,r,!0)},Mt.prototype.lastIndexOf=function(t,e,r){return Tt(this,t,e,r,!1)},Mt.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return Bt(this,t,e,r);case"utf8":case"utf-8":return Lt(this,t,e,r);case"ascii":return Nt(this,t,e,r);case"latin1":case"binary":return Dt(this,t,e,r);case"base64":return Ut(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zt(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},Mt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ft=4096;function Kt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function Ht(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Yt(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=re(t[o]);return i}function Vt(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function Zt(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function Gt(t,e,r,n,i,o){if(!jt(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Xt(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Jt(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function Qt(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $t(t,e,r,n,i){return i||Qt(t,0,r,4),mt(t,e,r,n,23,4),r+4}function te(t,e,r,n,i){return i||Qt(t,0,r,8),mt(t,e,r,n,52,8),r+8}Mt.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),Mt.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=Mt.prototype;else{var i=e-t;r=new Mt(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},Mt.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||Zt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},Mt.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||Zt(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},Mt.prototype.readUInt8=function(t,e){return e||Zt(t,1,this.length),this[t]},Mt.prototype.readUInt16LE=function(t,e){return e||Zt(t,2,this.length),this[t]|this[t+1]<<8},Mt.prototype.readUInt16BE=function(t,e){return e||Zt(t,2,this.length),this[t]<<8|this[t+1]},Mt.prototype.readUInt32LE=function(t,e){return e||Zt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Mt.prototype.readUInt32BE=function(t,e){return e||Zt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Mt.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||Zt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},Mt.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||Zt(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},Mt.prototype.readInt8=function(t,e){return e||Zt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Mt.prototype.readInt16LE=function(t,e){e||Zt(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Mt.prototype.readInt16BE=function(t,e){e||Zt(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Mt.prototype.readInt32LE=function(t,e){return e||Zt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Mt.prototype.readInt32BE=function(t,e){return e||Zt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Mt.prototype.readFloatLE=function(t,e){return e||Zt(t,4,this.length),vt(this,t,!0,23,4)},Mt.prototype.readFloatBE=function(t,e){return e||Zt(t,4,this.length),vt(this,t,!1,23,4)},Mt.prototype.readDoubleLE=function(t,e){return e||Zt(t,8,this.length),vt(this,t,!0,52,8)},Mt.prototype.readDoubleBE=function(t,e){return e||Zt(t,8,this.length),vt(this,t,!1,52,8)},Mt.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||Gt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},Mt.prototype.writeUIntBE=function(t,e,r,n){t=+t,e|=0,r|=0,n||Gt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},Mt.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,1,255,0),Mt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Mt.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,2,65535,0),Mt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Xt(this,t,e,!0),e+2},Mt.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,2,65535,0),Mt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 5,975 bytes, line 2
28,this[e+1]=255&t):Xt(this,t,e,!1),e+2},Mt.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,4,4294967295,0),Mt.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Jt(this,t,e,!0),e+4},Mt.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,4,4294967295,0),Mt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Jt(this,t,e,!1),e+4},Mt.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Gt(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},Mt.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Gt(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},Mt.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,1,127,-128),Mt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Mt.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,2,32767,-32768),Mt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Xt(this,t,e,!0),e+2},Mt.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,2,32767,-32768),Mt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Xt(this,t,e,!1),e+2},Mt.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,4,2147483647,-2147483648),Mt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Jt(this,t,e,!0),e+4},Mt.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Gt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Mt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Jt(this,t,e,!1),e+4},Mt.prototype.writeFloatLE=function(t,e,r){return $t(this,t,e,!0,r)},Mt.prototype.writeFloatBE=function(t,e,r){return $t(this,t,e,!1,r)},Mt.prototype.writeDoubleLE=function(t,e,r){return te(this,t,e,!0,r)},Mt.prototype.writeDoubleBE=function(t,e,r){return te(this,t,e,!1,r)},Mt.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!Mt.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},Mt.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Mt.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=jt(t)?t:ne(new Mt(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var ee=/[^+\/0-9A-Za-z-_]/g;function re(t){return t<16?"0"+t.toString(16):t.toString(16)}function ne(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function ie(t){return function(t){var e,r,n,i,o,a;lt||dt();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new ht(3*s/4-o),n=o>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=ft[t.charCodeAt(e)]<<18|ft[t.charCodeAt(e+1)]<<12|ft[t.charCodeAt(e+2)]<<6|ft[t.charCodeAt(e+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=ft[t.charCodeAt(e)]<<2|ft[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=ft[t.charCodeAt(e)]<<10|ft[t.charCodeAt(e+1)]<<4|ft[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(ee,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function oe(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function ae(t){return null!=t&&(!!t._isBuffer||se(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&se(t.slice(0,0))}(t))}function se(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ue=Object.freeze({__proto__:null,Buffer:Mt,INSPECT_MAX_BYTES:50,SlowBuffer:function(t){return+t!=t&&(t=0),Mt.alloc(+t)},isBuffer:ae,kMaxLength:wt}),ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function fe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function he(t,e){return t(e={exports:{}},e.exports),e.exports}function le(t){return t&&t.default||t}var de=fe(he((function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}
vendor: 6,567 bytes, line 2
2,t.exports.default=t.exports,t.exports.__esModule=!0}))),pe=le(Object.freeze({__proto__:null,default:{}})),be=he((function(t){!function(t){var e=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e<t.length;e++)r[e]=t[e];return r},r=function(){throw new Error("no PRNG")},n=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var o=e(),a=e([1]),s=e([56129,1]),u=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),f=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),h=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),l=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function d(t,e,r,n){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=n>>24&255,t[e+5]=n>>16&255,t[e+6]=n>>8&255,t[e+7]=255&n}function p(t,e,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=t[e+o]^r[n+o];return(1&a-1>>>8)-1}function b(t,e,r,n){return p(t,e,r,n,16)}function v(t,e,r,n){return p(t,e,r,n,32)}function m(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,l=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,g=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,k=a,M=s,S=u,E=c,x=f,A=h,O=l,j=d,R=p,I=b,P=v,T=m,C=y,B=g,L=w,N=0;N<20;N+=2)_^=(i=(T^=(i=(j^=(i=(E^=(i=_+T|0)<<7|i>>>25)+_|0)<<9|i>>>23)+E|0)<<13|i>>>19)+j|0)<<18|i>>>14,x^=(i=(k^=(i=(C^=(i=(R^=(i=x+k|0)<<7|i>>>25)+x|0)<<9|i>>>23)+R|0)<<13|i>>>19)+C|0)<<18|i>>>14,I^=(i=(A^=(i=(M^=(i=(B^=(i=I+A|0)<<7|i>>>25)+I|0)<<9|i>>>23)+B|0)<<13|i>>>19)+M|0)<<18|i>>>14,L^=(i=(P^=(i=(O^=(i=(S^=(i=L+P|0)<<7|i>>>25)+L|0)<<9|i>>>23)+S|0)<<13|i>>>19)+O|0)<<18|i>>>14,_^=(i=(S^=(i=(M^=(i=(k^=(i=_+S|0)<<7|i>>>25)+_|0)<<9|i>>>23)+k|0)<<13|i>>>19)+M|0)<<18|i>>>14,x^=(i=(E^=(i=(O^=(i=(A^=(i=x+E|0)<<7|i>>>25)+x|0)<<9|i>>>23)+A|0)<<13|i>>>19)+O|0)<<18|i>>>14,I^=(i=(R^=(i=(j^=(i=(P^=(i=I+R|0)<<7|i>>>25)+I|0)<<9|i>>>23)+P|0)<<13|i>>>19)+j|0)<<18|i>>>14,L^=(i=(B^=(i=(C^=(i=(T^=(i=L+B|0)<<7|i>>>25)+L|0)<<9|i>>>23)+T|0)<<13|i>>>19)+C|0)<<18|i>>>14;_=_+o|0,k=k+a|0,M=M+s|0,S=S+u|0,E=E+c|0,x=x+f|0,A=A+h|0,O=O+l|0,j=j+d|0,R=R+p|0,I=I+b|0,P=P+v|0,T=T+m|0,C=C+y|0,B=B+g|0,L=L+w|0,t[0]=_>>>0&255,t[1]=_>>>8&255,t[2]=_>>>16&255,t[3]=_>>>24&255,t[4]=k>>>0&255,t[5]=k>>>8&255,t[6]=k>>>16&255,t[7]=k>>>24&255,t[8]=M>>>0&255,t[9]=M>>>8&255,t[10]=M>>>16&255,t[11]=M>>>24&255,t[12]=S>>>0&255,t[13]=S>>>8&255,t[14]=S>>>16&255,t[15]=S>>>24&255,t[16]=E>>>0&255,t[17]=E>>>8&255,t[18]=E>>>16&255,t[19]=E>>>24&255,t[20]=x>>>0&255,t[21]=x>>>8&255,t[22]=x>>>16&255,t[23]=x>>>24&255,t[24]=A>>>0&255,t[25]=A>>>8&255,t[26]=A>>>16&255,t[27]=A>>>24&255,t[28]=O>>>0&255,t[29]=O>>>8&255,t[30]=O>>>16&255,t[31]=O>>>24&255,t[32]=j>>>0&255,t[33]=j>>>8&255,t[34]=j>>>16&255,t[35]=j>>>24&255,t[36]=R>>>0&255,t[37]=R>>>8&255,t[38]=R>>>16&255,t[39]=R>>>24&255,t[40]=I>>>0&255,t[41]=I>>>8&255,t[42]=I>>>16&255,t[43]=I>>>24&255,t[44]=P>>>0&255,t[45]=P>>>8&255,t[46]=P>>>16&255,t[47]=P>>>24&255,t[48]=T>>>0&255,t[49]=T>>>8&255,t[50]=T>>>16&255,t[51]=T>>>24&255,t[52]=C>>>0&255,t[53]=C>>>8&255,t[54]=C>>>16&255,t[55]=C>>>24&255,t[56]=B>>>0&255,t[57]=B>>>8&255,t[58]=B>>>16&255,t[59]=B>>>24&255,t[60]=L>>>0&255,t[61]=L>>>8&255,t[62]=L>>>16&255,t[63]=L>>>24&255}(t,e,r,n)}function y(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,l=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,g=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(m^=(i=(d^=(i=(c^=(i=o+m|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+d|0)<<18|i>>>14,f^=(i=(a^=(i=(y^=(i=(p^=(i=f+a|0)<<7|i>>>25)+f|0)<<9|i>>>23)+p|0)<<13|i>>>19)+y|0)<<18|i>>>14,b^=(i=(h^=(i=(s^=(i=(g^=(i=b+h|0)<<7|i>>>25)+b|0)<<9|i>>>23)+g|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(v^=(i=(l^=(i=(u^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+l|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,f^=(i=(c^=(i=(l^=(i=(h^=(i=f+c|0)<<7|i>>>25)+f|0)<<9|i>>>23)+h|0)<<13|i>>>19)+l|0)<<18|i>>>14,b^=(i=(p^=(i=(d^=(i=(v^=(i=b+p|0)<<7|i>>>25)+b|0)<<9|i>>>23)+v|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(g^=(i=(y^=(i=(m^=(i=w+g|0)<<7|i>>>25)+w|0)<<9|i>>>23)+m|0)<<13|i>>>19)+y|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=f>>>0&255,t[5]=f>>>8&255,t[6]=f>>>16&255,t[7]=f>>>24&255,t[8]=b>>>0&255,t[9]=b>>>8&255,t[10]=b>>>16&255,t[11]=b>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=h>>>0&255,t[17]=h>>>8&255,t[18]=h>>>16&255,t[19]=h>>>24&255,t[20]=l>>>0&255,t[21]=l>>>8&255,t[22]=l>>>16&255,t[23]=l>>>24&255,t[24]=d>>>0&255,t[25]=d>>>8&255,t[26]=d>>>16&255,t[27]=d>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,r,n)}var g=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(t,e,r,n,i,o,a){var s,u,c=new Uint8Array(16),f=new Uint8Array(64);for(u=0;
vendor: 13,706 bytes, line 2
2u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(m(f,c,a,g),u=0;u<64;u++)t[e+u]=r[n+u]^f[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,e+=64,n+=64}if(i>0)for(m(f,c,a,g),u=0;u<i;u++)t[e+u]=r[n+u]^f[u];return 0}function _(t,e,r,n,i){var o,a,s=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(m(u,s,i,g),a=0;a<64;a++)t[e+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,e+=64}if(r>0)for(m(u,s,i,g),a=0;a<r;a++)t[e+a]=u[a];return 0}function k(t,e,r,n,i){var o=new Uint8Array(32);y(o,n,i,g);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return _(t,e,r,a,o)}function M(t,e,r,n,i,o,a){var s=new Uint8Array(32);y(s,o,a,g);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=o[c+16];return w(t,e,r,n,i,u,s)}var S=function(t){var e,r,n,i,o,a,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,r=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|r<<3),n=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function E(t,e,r,n,i,o){var a=new S(o);return a.update(r,n,i),a.finish(t,e),0}function x(t,e,r,n,i,o){var a=new Uint8Array(16);return E(a,0,r,n,i,o),b(t,e,a,0)}function A(t,e,r,n,i){var o;if(r<32)return-1;for(M(t,0,e,0,r,n,i),E(t,16,t,32,r-32,t),o=0;o<16;o++)t[o]=0;return 0}function O(t,e,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(k(a,0,32,n,i),0!==x(e,16,e,32,r-32,a))return-1;for(M(t,0,e,0,r,n,i),o=0;o<32;o++)t[o]=0;return 0}function j(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function R(t){var e,r,n=1;for(e=0;e<16;e++)r=t[e]+n+65535,n=Math.floor(r/65536),t[e]=r-65536*n;t[0]+=n-1+37*(n-1)}function I(t,e,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(t[o]^e[o]),t[o]^=n,e[o]^=n}function P(t,r){var n,i,o,a=e(),s=e();for(n=0;n<16;n++)s[n]=r[n];for(R(s),R(s),R(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,I(s,a,1-o)}for(n=0;n<16;n++)t[2*n]=255&s[n],t[2*n+1]=s[n]>>8}function T(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return P(r,t),P(n,e),v(r,0,n,0)}function C(t){var e=new Uint8Array(32);return P(e,t),1&e[0]}function B(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function L(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]+r[n]}function N(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]-r[n]}function D(t,e,r){var n,i,o=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,b=0,v=0,m=0,y=0,g=0,w=0,_=0,k=0,M=0,S=0,E=0,x=0,A=0,O=0,j=0,R=0,I=0,P=0,T=0,C=0,B=0,L=r[0],N=r[1],D=r[2],U=r[3],z=r[4],W=r[5],q=r[6],F=r[7],K=r[8],H=r[9],Y=r[10],V=r[11],Z=r[12],G=r[13],X=r[14],J=r[15];o+=(n=e[0])*L,a+=n*N,s+=n*D,u+=n*U,c+=n*z,f+=n*W,h+=n*q,l+=n*F,d+=n*K,p+=n*H,b+=n*Y,v+=n*V,m+=n*Z,y+=n*G,g+=n*X,w+=n*J,a+=(n=e[1])*L,s+=n*N,u+=n*D,c+=n*U,f+=n*z,h+=n*W,l+=n*q,d+=n*F,p+=n*K,b+=n*H,v+=n*Y,m+=n*V,y+=n*Z,g+=n*G,w+=n*X,_+=n*J,s+=(n=e[2])*L,u+=n*N,c+=n*D,f+=n*U,h+=n*z,l+=n*W,d+=n*q,p+=n*F,b+=n*K,v+=n*H,m+=n*Y,y+=n*V,g+=n*Z,w+=n*G,_+=n*X,k+=n*J,u+=(n=e[3])*L,c+=n*N,f+=n*D,h+=n*U,l+=n*z,d+=n*W,p+=n*q,b+=n*F,v+=n*K,m+=n*H,y+=n*Y,g+=n*V,w+=n*Z,_+=n*G,k+=n*X,M+=n*J,c+=(n=e[4])*L,f+=n*N,h+=n*D,l+=n*U,d+=n*z,p+=n*W,b+=n*q,v+=n*F,m+=n*K,y+=n*H,g+=n*Y,w+=n*V,_+=n*Z,k+=n*G,M+=n*X,S+=n*J,f+=(n=e[5])*L,h+=n*N,l+=n*D,d+=n*U,p+=n*z,b+=n*W,v+=n*q,m+=n*F,y+=n*K,g+=n*H,w+=n*Y,_+=n*V,k+=n*Z,M+=n*G,S+=n*X,E+=n*J,h+=(n=e[6])*L,l+=n*N,d+=n*D,p+=n*U,b+=n*z,v+=n*W,m+=n*q,y+=n*F,g+=n*K,w+=n*H,_+=n*Y,k+=n*V,M+=n*Z,S+=n*G,E+=n*X,x+=n*J,l+=(n=e[7])*L,d+=n*N,p+=n*D,b+=n*U,v+=n*z,m+=n*W,y+=n*q,g+=n*F,w+=n*K,_+=n*H,k+=n*Y,M+=n*V,S+=n*Z,E+=n*G,x+=n*X,A+=n*J,d+=(n=e[8])*L,p+=n*N,b+=n*D,v+=n*U,m+=n*z,y+=n*W,g+=n*q,w+=n*F,_+=n*K,k+=n*H,M+=n*Y,S+=n*V,E+=n*Z,x+=n*G,A+=n*X,O+=n*J,p+=(n=e[9])*L,b+=n*N,v+=n*D,m+=n*U,y+=n*z,g+=n*W,w+=n*q,_+=n*F,k+=n*K,M+=n*H,S+=n*Y,E+=n*V,x+=n*Z,A+=n*G,O+=n*X,j+=n*J,b+=(n=e[10])*L,v+=n*N,m+=n*D,y+=n*U,g+=n*z,w+=n*W,_+=n*q,k+=n*F,M+=n*K,S+=n*H,E+=n*Y,x+=n*V,A+=n*Z,O+=n*G,j+=n*X,R+=n*J,v+=(n=e[11])*L,m+=n*N,y+=n*D,g+=n*U,w+=n*z,_+=n*W,k+=n*q,M+=n*F,S+=n*K,E+=n*H,x+=n*Y,A+=n*V,O+=n*Z,j+=n*G,R+=n*X,I+=n*J,m+=(n=e[12])*L,y+=n*N,g+=n*D,w+=n*U,_+=n*z,k+=n*W,M+=n*q,S+=n*F,E+=n*K,x+=n*H,A+=n*Y,O+=n*V,j+=n*Z,R+=n*G,I+=n*X,P+=n*J,y+=(n=e[13])*L,g+=n*N,w+=n*D,_+=n*U,k+=n*z,M+=n*W,S+=n*q,E+=n*F,x+=n*K,A+=n*H,O+=n*Y,j+=n*V,R+=n*Z,I+=n*G,P+=n*X,T+=n*J,g+=(n=e[14])*L,w+=n*N,_+=n*D,k+=n*U,M+=n*z,S+=n*W,E+=n*q,x+=n*F,A+=n*K,O+=n*H,j+=n*Y,R+=n*V,I+=n*Z,P+=n*G,T+=n*X,C+=n*J,w+=(n=e[15])*L,a+=38*(k+=n*D),s+=38*(M+=n*U),u+=38*(S+=n*z),c+=38*(E+=n*W),f+=38*(x+=n*q),h+=38*(A+=n*F),l+=38*(O+=n*K),d+=38*(j+=n*H),p+=38*(R+=n*Y),b+=38*(I+=n*V),v+=38*(P+=n*Z),m+=38*(T+=n*G),y+=38*(C+=n*X),g+=38*(B+=n*J),o=(n=(o+=38*(_+=n*N))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=f,t[6]=h,t[7]=l,t[8]=d,t[9]=p,t[10]=b,t[11]=v,t[12]=m,t[13]=y,t[14]=g,t[15]=w}function U(t,e){D(t,e,e)}function z(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)U(i,i),2!==n&&4!==n&&D(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function W(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)U(i,i),1!==n&&D(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function q(t,r,n){var i,o,a=new Uint8Array(32),u=new Float64Array(80),c=e(),f=e(),h=e(),l=e(),d=e(),p=e();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,B(u,n),o=0;o<16;o++)f[o]=u[o],l[o]=c[o]=h[o]=0;for(c[0]=l[0]=1,o=254;o>=0;--o)I(c,f,i=a[o>>>3]>>>(7&o)&1),I(h,l,i),L(d,c,h),N(c,c,h),L(h,f,l),N(f,f,l),U(l,d),U(p,c),D(c,h,c),D(h,f,d),L(d,c,h),N(c,c,h),U(f,c),N(h,l,p),D(c,h,s),L(c,c,l),D(h,h,c),D(c,l,p),D(l,f,u),U(f,d),I(c,f,i),I(h,l,i);for(o=0;o<16;o++)u[o+16]=c[o],u[o+32]=h[o],u[o+48]=f[o],u[o+64]=l[o];var b=u.subarray(32),v=u.subarray(16);return z(b,b),D(v,v,b),P(t,v),0}function F(t,e){return q(t,e,i)}function K(t,e){return r(e,32),F(t,e)}function H(t,e,r){var i=new Uint8Array(32);return q(i,r,e),y(t,n,i,g)}S.prototype.blocks=function(t,e,r){for(var n,i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k=this.fin?0:2048,M=this.h[0],S=this.h[1],E=this.h[2],x=this.h[3],A=this.h[4],O=this.h[5],j=this.h[6],R=this.h[7],I=this.h[8],P=this.h[9],T=this.r[0],C=this.r[1],B=this.r[2],L=this.r[3],N=this.r[4],D=this.r[5],U=this.r[6],z=this.r[7],W=this.r[8],q=this.r[9];r>=16;)l=h=0,l+=(M+=8191&(n=255&t[e+0]|(255&t[e+1])<<8))*T,l+=(S+=8191&(n>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*q),l+=(E+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*W),l+=(x+=8191&(o>>>7|(a=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*z),h=(l+=(A+=8191&(a>>>4|(s=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*U))>>>13,l&=8191,l+=(O+=s>>>1&8191)*(5*D),l+=(j+=8191&(s>>>14|(u=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*N),l+=(R+=8191&(u>>>11|(c=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*L),l+=(I+=8191&(c>>>8|(f=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*B),d=h+=(l+=(P+=f>>>5|k)*(5*C))>>>13,d+=M*C,d+=S*T,d+=E*(5*q),d+=x*(5*W),h=(d+=A*(5*z))>>>13,d&=8191,d+=O*(5*U),d+=j*(5*D),d+=R*(5*N),d+=I*(5*L),h+=(d+=P*(5*B))>>>13,d&=8191,p=h,p+=M*B,p+=S*C,p+=E*T,p+=x*(5*q),h=(p+=A*(5*W))>>>13,p&=8191,p+=O*(5*z),p+=j*(5*U),p+=R*(5*D),p+=I*(5*N),b=h+=(p+=P*(5*L))>>>13,b+=M*L,b+=S*B,b+=E*C,b+=x*T,h=(b+=A*(5*q))>>>13,b&=8191,b+=O*(5*W),b+=j*(5*z),b+=R*(5*U),b+=I*(5*D),v=h+=(b+=P*(5*N))>>>13,v+=M*N,v+=S*L,v+=E*B,v+=x*C,h=(v+=A*T)>>>13,v&=8191,v+=O*(5*q),v+=j*(5*W),v+=R*(5*z),v+=I*(5*U),m=h+=(v+=P*(5*D))>>>13,m+=M*D,m+=S*N,m+=E*L,m+=x*B,h=(m+=A*C)>>>13,m&=8191,m+=O*T,m+=j*(5*q),m+=R*(5*W),m+=I*(5*z),y=h+=(m+=P*(5*U))>>>13,y+=M*U,y+=S*D,y+=E*N,y+=x*L,h=(y+=A*B)>>>13,y&=8191,y+=O*C,y+=j*T,y+=R*(5*q),y+=I*(5*W),g=h+=(y+=P*(5*z))>>>13,g+=M*z,g+=S*U,g+=E*D,g+=x*N,h=(g+=A*L)>>>13,g&=8191,g+=O*B,g+=j*C,g+=R*T,g+=I*(5*q),w=h+=(g+=P*(5*W))>>>13,w+=M*W,w+=S*z,w+=E*U,w+=x*D,h=(w+=A*N)>>>13,w&=8191,w+=O*L,w+=j*B,w+=R*C,w+=I*T,_=h+=(w+=P*(5*q))>>>13,_+=M*q,_+=S*W,_+=E*z,_+=x*U,h=(_+=A*D)>>>13,_&=8191,_+=O*N,_+=j*L,_+=R*B,_+=I*C,M=l=8191&(h=(h=((h+=(_+=P*T)>>>13)<<2)+h|0)+(l&=8191)|0),S=d+=h>>>=13,E=p&=8191,x=b&=8191,A=v&=8191,O=m&=8191,j=y&=8191,R=g&=8191,I=w&=8191,P=_&=8191,e+=16,r-=16;this.h[0]=M,this.h[1]=S,this.h[2]=E,this.h[3]=x,this.h[4]=A,this.h[5]=O,this.h[6]=j,this.h[7]=R,this.h[8]=I,this.h[9]=P},S.prototype.finish=function(t,e){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},S.prototype.update=function(t,e,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=t[e+n];if(r-=i,e+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(t,e,i),e+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=t[e+n];this.leftover+=r}};var Y=A,V=O,Z=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
vendor: 6,886 bytes, line 2
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function G(t,e,r,n){for(var i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k,M,S,E,x,A,O,j,R=new Int32Array(16),I=new Int32Array(16),P=t[0],T=t[1],C=t[2],B=t[3],L=t[4],N=t[5],D=t[6],U=t[7],z=e[0],W=e[1],q=e[2],F=e[3],K=e[4],H=e[5],Y=e[6],V=e[7],G=0;n>=128;){for(k=0;k<16;k++)M=8*k+G,R[k]=r[M+0]<<24|r[M+1]<<16|r[M+2]<<8|r[M+3],I[k]=r[M+4]<<24|r[M+5]<<16|r[M+6]<<8|r[M+7];for(k=0;k<80;k++)if(i=P,o=T,a=C,s=B,u=L,c=N,f=D,l=z,d=W,p=q,b=F,v=K,m=H,y=Y,x=65535&(E=V),A=E>>>16,O=65535&(S=U),j=S>>>16,x+=65535&(E=(K>>>14|L<<18)^(K>>>18|L<<14)^(L>>>9|K<<23)),A+=E>>>16,O+=65535&(S=(L>>>14|K<<18)^(L>>>18|K<<14)^(K>>>9|L<<23)),j+=S>>>16,x+=65535&(E=K&H^~K&Y),A+=E>>>16,O+=65535&(S=L&N^~L&D),j+=S>>>16,x+=65535&(E=Z[2*k+1]),A+=E>>>16,O+=65535&(S=Z[2*k]),j+=S>>>16,S=R[k%16],A+=(E=I[k%16])>>>16,O+=65535&S,j+=S>>>16,O+=(A+=(x+=65535&E)>>>16)>>>16,x=65535&(E=_=65535&x|A<<16),A=E>>>16,O=65535&(S=w=65535&O|(j+=O>>>16)<<16),j=S>>>16,x+=65535&(E=(z>>>28|P<<4)^(P>>>2|z<<30)^(P>>>7|z<<25)),A+=E>>>16,O+=65535&(S=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25)),j+=S>>>16,A+=(E=z&W^z&q^W&q)>>>16,O+=65535&(S=P&T^P&C^T&C),j+=S>>>16,h=65535&(O+=(A+=(x+=65535&E)>>>16)>>>16)|(j+=O>>>16)<<16,g=65535&x|A<<16,x=65535&(E=b),A=E>>>16,O=65535&(S=s),j=S>>>16,A+=(E=_)>>>16,O+=65535&(S=w),j+=S>>>16,T=i,C=o,B=a,L=s=65535&(O+=(A+=(x+=65535&E)>>>16)>>>16)|(j+=O>>>16)<<16,N=u,D=c,U=f,P=h,W=l,q=d,F=p,K=b=65535&x|A<<16,H=v,Y=m,V=y,z=g,k%16==15)for(M=0;M<16;M++)S=R[M],x=65535&(E=I[M]),A=E>>>16,O=65535&S,j=S>>>16,S=R[(M+9)%16],x+=65535&(E=I[(M+9)%16]),A+=E>>>16,O+=65535&S,j+=S>>>16,w=R[(M+1)%16],x+=65535&(E=((_=I[(M+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),A+=E>>>16,O+=65535&(S=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),j+=S>>>16,w=R[(M+14)%16],A+=(E=((_=I[(M+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,O+=65535&(S=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,R[M]=65535&O|j<<16,I[M]=65535&x|A<<16;x=65535&(E=z),A=E>>>16,O=65535&(S=P),j=S>>>16,S=t[0],A+=(E=e[0])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[0]=P=65535&O|j<<16,e[0]=z=65535&x|A<<16,x=65535&(E=W),A=E>>>16,O=65535&(S=T),j=S>>>16,S=t[1],A+=(E=e[1])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[1]=T=65535&O|j<<16,e[1]=W=65535&x|A<<16,x=65535&(E=q),A=E>>>16,O=65535&(S=C),j=S>>>16,S=t[2],A+=(E=e[2])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[2]=C=65535&O|j<<16,e[2]=q=65535&x|A<<16,x=65535&(E=F),A=E>>>16,O=65535&(S=B),j=S>>>16,S=t[3],A+=(E=e[3])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[3]=B=65535&O|j<<16,e[3]=F=65535&x|A<<16,x=65535&(E=K),A=E>>>16,O=65535&(S=L),j=S>>>16,S=t[4],A+=(E=e[4])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[4]=L=65535&O|j<<16,e[4]=K=65535&x|A<<16,x=65535&(E=H),A=E>>>16,O=65535&(S=N),j=S>>>16,S=t[5],A+=(E=e[5])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[5]=N=65535&O|j<<16,e[5]=H=65535&x|A<<16,x=65535&(E=Y),A=E>>>16,O=65535&(S=D),j=S>>>16,S=t[6],A+=(E=e[6])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[6]=D=65535&O|j<<16,e[6]=Y=65535&x|A<<16,x=65535&(E=V),A=E>>>16,O=65535&(S=U),j=S>>>16,S=t[7],A+=(E=e[7])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[7]=U=65535&O|j<<16,e[7]=V=65535&x|A<<16,G+=128,n-=128}return n}function X(t,e,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,G(i,o,e,r),r%=128,n=0;n<r;n++)a[n]=e[s-r+n];for(a[r]=128,a[(r=256-128*(r<112?1:0))-9]=0,d(a,r-8,s/536870912|0,s<<3),G(i,o,a,r),n=0;n<8;n++)d(t,8*n,i[n],o[n]);return 0}function J(t,r){var n=e(),i=e(),o=e(),a=e(),s=e(),u=e(),f=e(),h=e(),l=e();N(n,t[1],t[0]),N(l,r[1],r[0]),D(n,n,l),L(i,t[0],t[1]),L(l,r[0],r[1]),D(i,i,l),D(o,t[3],r[3]),D(o,o,c),D(a,t[2],r[2]),L(a,a,a),N(s,i,n),N(u,a,o),L(f,a,o),L(h,i,n),D(t[0],s,u),D(t[1],h,f),D(t[2],f,u),D(t[3],s,h)}function Q(t,e,r){var n;for(n=0;n<4;n++)I(t[n],e[n],r)}function $(t,r){var n=e(),i=e(),o=e();z(o,r[2]),D(n,r[0],o),D(i,r[1],o),P(t,i),t[31]^=C(n)<<7}function tt(t,e,r){var n,i;for(j(t[0],o),j(t[1],a),j(t[2],a),j(t[3],o),i=255;i>=0;--i)Q(t,e,n=r[i/8|0]>>(7&i)&1),J(e,t),J(t,t),Q(t,e,n)}function et(t,r){var n=[e(),e(),e(),e()];j(n[0],f),j(n[1],h),j(n[2],a),D(n[3],f,h),tt(t,n,r)}function rt(t,n,i){var o,a=new Uint8Array(64),s=[e(),e(),e(),e()];for(i||r(n,32),X(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,et(s,a),$(t,s),o=0;o<32;o++)n[o+32]=t[o];return 0}var nt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function it(t,e){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)e[i]+=r-16*e[n]*nt[i-(n-32)],r=Math.floor((e[i]+128)/256),e[i]-=256*r;e[i]+=r,e[n]=0}for(r=0,i=0;i<32;i++)e[i]+=r-(e[31]>>4)*nt[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*nt[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function ot(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;it(t,r)}function at(t,r,n,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),f=new Float64Array(64),h=[e(),e(),e(),e()];X(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var l=n+64;for(o=0;o<n;o++)t[64+o]=r[o];for(o=0;o<32;o++)t[32+o]=s[32+o];for(X(c,t.subarray(32),n+32),ot(c),et(h,c),$(t,h),o=32;o<64;o++)t[o]=i[o];for(X(u,t,n+64),ot(u),o=0;o<64;o++)f[o]=0;for(o=0;o<32;o++)f[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)f[o+a]+=u[o]*s[a];return it(t.subarray(32),f),l}function st(t,r,n,i){var s,c=new Uint8Array(32),f=new Uint8Array(64),h=[e(),e(),e(),e()],d=[e(),e(),e(),e()];if(n<64)return-1;if(function(t,r){var n=e(),i=e(),s=e(),c=e(),f=e(),h=e(),d=e();return j(t[2],a),B(t[1],r),U(s,t[1]),D(c,s,u),N(s,s,t[2]),L(c,t[2],c),U(f,c),U(h,f),D(d,h,f),D(n,d,s),D(n,n,c),W(n,n),D(n,n,s),D(n,n,c),D(n,n,c),D(t[0],n,c),U(i,t[0]),D(i,i,c),T(i,s)&&D(t[0],t[0],l),U(i,t[0]),D(i,i,c),T(i,s)?-1:(C(t[0])===r[31]>>7&&N(t[0],o,t[0]),D(t[3],t[0],t[1]),0)}(d,i))return-1;for(s=0;s<n;s++)t[s]=r[s];for(s=0;s<32;s++)t[s+32]=i[s];if(X(f,t,n),ot(f),tt(h,d,f),et(d,r.subarray(32)),J(h,d),$(c,h),n-=64,v(r,0,c,0)){for(s=0;s<n;s++)t[s]=0;return-1}for(s=0;s<n;s++)t[s]=r[s+64];return n}var ut=16,ct=64,ft=32,ht=64;function lt(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function dt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function pt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:M,crypto_stream
2:k,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:_,crypto_onetimeauth:E,crypto_onetimeauth_verify:x,crypto_verify_16:b,crypto_verify_32:v,crypto_secretbox:A,crypto_secretbox_open:O,crypto_scalarmult:q,crypto_scalarmult_base:F,crypto_box_beforenm:H,crypto_box_afternm:Y,crypto_box:function(t,e,r,n,i,o){var a=new Uint8Array(32);return H(a,i,o),Y(t,e,r,n,a)},crypto_box_open:function(t,e,r,n,i,o){var a=new Uint8Array(32);return H(a,i,o),V(t,e,r,n,a)},crypto_box_keypair:K,crypto_hash:X,crypto_sign:at,crypto_sign_keypair:rt,crypto_sign_open:st,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ut,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ct,crypto_sign_PUBLICKEYBYTES:ft,crypto_sign_SECRETKEYBYTES:ht,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:e,D:u,L:nt,pack25519:P,unpack25519:B,M:D,A:L,S:U,Z:N,pow2523:W,add:J,set25519:j,modL:it,scalarmult:tt,scalarbase:et},t.randomBytes=function(t){var e=new Uint8Array(t);return r(e,t),e},t.secretbox=function(t,e,r){dt(t,e,r),lt(r,e);for(var n=new Uint8Array(32+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+32]=t[o];return A(i,n,n.length,e,r),i.subarray(ut)},t.secretbox.open=function(t,e,r){dt(t,e,r),lt(r,e);for(var n=new Uint8Array(ut+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+ut]=t[o];
vendor: 3,875 bytes, line 2
2return n.length<32||0!==O(i,n,n.length,e,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=ut,t.scalarMult=function(t,e){if(dt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var r=new Uint8Array(32);return q(r,t,e),r},t.scalarMult.base=function(t){if(dt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return F(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox(e,r,o)},t.box.before=function(t,e){dt(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var r=new Uint8Array(32);return H(r,t,e),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox.open(e,r,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return K(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(dt(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return F(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(dt(t,e),e.length!==ht)throw new Error("bad secret key size");var r=new Uint8Array(ct+t.length);return at(r,t,t.length,e),r},t.sign.open=function(t,e){if(dt(t,e),e.length!==ft)throw new Error("bad public key size");var r=new Uint8Array(t.length),n=st(r,t,t.length,e);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(ct),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached.verify=function(t,e,r){if(dt(t,e,r),e.length!==ct)throw new Error("bad signature size");if(r.length!==ft)throw new Error("bad public key size");var n,i=new Uint8Array(ct+t.length),o=new Uint8Array(ct+t.length);for(n=0;n<ct;n++)i[n]=e[n];for(n=0;n<t.length;n++)i[n+ct]=t[n];return st(o,i,i.length,r)>=0},t.sign.keyPair=function(){var t=new Uint8Array(ft),e=new Uint8Array(ht);return rt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(dt(t),t.length!==ht)throw new Error("bad secret key size");for(var e=new Uint8Array(ft),r=0;r<e.length;r++)e[r]=t[32+r];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(dt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(ft),r=new Uint8Array(ht),n=0;n<32;n++)r[n]=t[n];return rt(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=ft,t.sign.secretKeyLength=ht,t.sign.seedLength=32,t.sign.signatureLength=ct,t.hash=function(t){dt(t);var e=new Uint8Array(64);return X(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return dt(t,e),0!==t.length&&0!==e.length&&t.length===e.length&&0===p(t,0,e,0,t.length)},t.setPRNG=function(t){r=t},function(){var e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&e.getRandomValues?t.setPRNG((function(t,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)e.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)t[n]=i[n];pt(i)})):(e=pe)&&e.randomBytes&&t.setPRNG((function(t,r){var n,i=e.randomBytes(r);for(n=0;n<r;n++)t[n]=i[n];pt(i)}))}()}(t.exports?t.exports:self.nacl=self.nacl||{})}));be.sign;var ve=he((function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;
vendor: 4,463 bytes, line 2
2"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:pe.Buffer}catch(t){}function a(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function s(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function u(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),u=e;u<s;u++){var c=t.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a<i,"Invalid character"),o+=a}return o}function c(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},i.prototype._initNumber=function(t,e,n){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"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){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 o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=u(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){c(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(t){i.prototype.inspect=f}else i.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","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"],l=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 1,758 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 p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?h[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=l[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modrn(f).toString(t);n=(p=p.idivn(f)).isZero()?b+n:h[c-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.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},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},
vendor: 5,551 bytes, line 2
2i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.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()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.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)},i.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var
2b=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 10,269 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function v(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;
vendor: 5,401 bytes, line 2
2for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function m(t,e,r){return v(t,e,r)}Math.imul||(b=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?b(this,t,e):r<63?p(this,t,e):r<1024?v(this,t,e):m(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),m(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.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,a=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.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)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!==(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}
vendor: 16,384 bytes, line 2
2var f=n.clone()._ishlnsubmul(o,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[o.length+h])+(0|n.words[o.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(o,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(o,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.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},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var f=n.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(f),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(n.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(u)):(n.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,f=1;0==(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0==(n.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(n.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.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},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new S(t)},i.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)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=i._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 E(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}g.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},n(w,g),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},n(_,g),n(k,g),n(M,g),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new _;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return y[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);r(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,o),l=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();r(v<p);var m=this.pow(h,new i(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;o!==r[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},n(E,S),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,ce)})),me=he((function(t,e){var r=ue.Buffer;function n(t,e){for(var r in t)e[r]=t[r]}function i(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=ue:(n(ue,e),e.Buffer=i),i.prototype=Object.create(r.prototype),n(r,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return ue.SlowBuffer(t)}}));me.Buffer;var ye,ge=me.Buffer,we=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var n=0;n<t.length;n++){var i=t.charAt(n),o=i.charCodeAt(0);if(255!==e[o])throw new TypeError(i+" is ambiguous");e[o]=n}var a=t.length,s=t.charAt(0),u=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function f(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return ge.alloc(0);var r=0;if(" "!==t[r]){for(var n=0,i=0;t[r]===s;)n++,r++;for(var o=(t.length-r)*u+1>>>0,c=new Uint8Array(o);t[r];){var f=e[t.charCodeAt(r)];if(255===f)return;for(var h=0,l=o-1;(0!==f||h<i)&&-1!==l;l--,h++)f+=a*c[l]>>>0,c[l]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");i=h,r++}if(" "!==t[r]){for(var d=o-i;d!==o&&0===c[d];)d++;var p=ge.allocUnsafe(n+(o-d));p.fill(0,0,n);for(var b=n;d!==o;)p[b++]=c[d++];return p}}}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=ge.from(e)),!ge.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var r=0,n=0,i=0,o=e.length;i!==o&&0===e[i];)i++,r++;for(var u=(o-i)*c+1>>>0,f=new Uint8Array(u);i!==o;){for(var h=e[i],l=0,d=u-1;(0!==h||l<n)&&-1!==d;d--,l++)h+=256*f[d]>>>0,f[d]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=l,i++}for(var p=u-n;p!==u&&0===f[p];)p++;for(var b=s.repeat(r);p<u;++p)b+=t.charAt(f[p]);return b},decodeUnsafe:f,decode:function(t){var e=f(t);if(e)return e;throw new Error("Non-base"+a+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),_e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==ce?ce:void 0,ke=(ye="SHA-256",function(){var t=v(b.mark((function t(e,r){var n;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:retur
vendor: 5,483 bytes, line 2
2n"string"==typeof e&&(e=(new _e.TextEncoder).encode(e)),r=l({outputFormat:"hex"},r),t.next=3,_e.crypto.subtle.digest(ye,e);case 3:return n=t.sent,t.abrupt("return","hex"===r.outputFormat?function(t){for(var e=new DataView(t),r="",n=0;n<e.byteLength;n+=4)r+=e.getUint32(n).toString(16).padStart(8,"0");return r}(n):n);case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}());function Me(t,e,r){return e<=t&&t<=r}function Se(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function Ee(t){this.tokens=[].slice.call(t)}Ee.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.shift());else this.tokens.push(t)}};var xe=-1;function Ae(t,e){if(t)throw TypeError("Decoder error");return e||65533}var Oe="utf-8";function je(t,e){if(!(this instanceof je))return new je(t,e);if((t=void 0!==t?String(t).toLowerCase():Oe)!==Oe)throw new Error("Encoding not supported. Only utf-8 is supported");e=Se(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function Re(t,e){if(!(this instanceof Re))return new Re(t,e);if((t=void 0!==t?String(t).toLowerCase():Oe)!==Oe)throw new Error("Encoding not supported. Only utf-8 is supported");e=Se(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function Ie(t){var e=t.fatal,r=0,n=0,i=0,o=128,a=191;this.handler=function(t,s){if(-1===s&&0!==i)return i=0,Ae(e);if(-1===s)return xe;if(0===i){if(Me(s,0,127))return s;if(Me(s,194,223))i=1,r=s-192;else if(Me(s,224,239))224===s&&(o=160),237===s&&(a=159),i=2,r=s-224;else{if(!Me(s,240,244))return Ae(e);240===s&&(o=144),244===s&&(a=143),i=3,r=s-240}return r<<=6*i,null}if(!Me(s,o,a))return r=i=n=0,o=128,a=191,t.prepend(s),Ae(e);if(o=128,a=191,r+=s-128<<6*(i-(n+=1)),n!==i)return null;var u=r;return r=i=n=0,u}}function Pe(t){t.fatal,this.handler=function(t,e){if(-1===e)return xe;if(Me(e,0,127))return e;var r,n;Me(e,128,2047)?(r=1,n=192):Me(e,2048,65535)?(r=2,n=224):Me(e,65536,1114111)&&(r=3,n=240);for(var i=[(e>>6*r)+n];r>0;){var o=e>>6*(r-1);i.push(128|63&o),r-=1}return i}}je.prototype={decode:function(t,e){var r;r="object"==typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"==typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=Se(e),this._streaming||(this._decoder=new Ie({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var n,i=new Ee(r),o=[];!i.endOfStream()&&(n=this._decoder.handler(i,i.read()))!==xe;)null!==n&&(Array.isArray(n)?o.push.apply(o,n):o.push(n));if(!this._streaming){do{if((n=this._decoder.handler(i,i.read()))===xe)break;null!==n&&(Array.isArray(n)?o.push.apply(o,n):o.push(n))}while(!i.endOfStream());this._decoder=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===o[0]?(this._BOMseen=!0,o.shift()):this._BOMseen=!0)),function(t){for(var e="",r=0;r<t.length;++r){var n=t[r];n<=65535?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296+(n>>10),56320+(1023&n)))}return e}(o)}},Re.prototype={encode:function(t,e){t=t?String(t):"",e=Se(e),this._streaming||(this._encoder=new Pe(this._options)),this._streaming=Boolean(e.stream);for(var r,n=[],i=new Ee(function(t){for(var e=String(t),r=e.length,n=0,i=[];n<r;){var o=e.charCodeAt(n);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(n===r-1)i.push(65533);else{var a=t.charCodeAt(n+1);if(56320<=a&&a<=57343){var s=1023&o,u=1023&a;i.push(65536+(s<<10)+u),n+=1}else i.push(65533)}n+=1}return i}(t));!i.endOfStream()&&(r=this._encoder.handler(i,i.read()))!==xe;)Array.isArray(r)?n.push.apply(n,r):n.push(r);if(!this._streaming){for(;(r=this._encoder.handler(i,i.read()))!==xe;)Array.isArray(r)?n.push.apply(n,r):n.push(r);this._encoder=null}return new Uint8Array(n)}};var Te=le(Object.freeze({__proto__:null,TextEncoder:Re,TextDecoder:je})),Ce=he((function(t,e){var r=ce&&ce.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),n=ce&&ce.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=ce&&ce.__decorate||function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a},o=ce&&ce.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.hasOwnProperty.call(t,i)&&r(e,t,i);return n(e,t),e},a=ce&&ce.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeUnchecked=e.deserialize=e.serialize=e.BinaryReader=e.BinaryWriter=e.BorshError=e.baseDecode=e.baseEncode=void 0;var s=a(ve),l=a(we),b=o(Te),v=new("function"!=typeof ce.TextDecoder?b.TextDecoder:ce.TextDecoder)("utf-8",{fatal:!0});e.baseEncode=function(t){return"string"==typeof t&&(t=Mt.from(t,"utf8")),l.default.encode(Mt.from(t))},e.baseDecode=function(t){return Mt.from(l.default.decode(t))};var g=1024,w=function(t){d(r,t);var e=p(r);function r(t){var n;return m(this,r),(n=e.call(this,t)).fieldPath=[],n.originalMessage=t,n}return y(r,[{key:"addToFieldPath",value:function(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),r}(h(Error));e.BorshError=w;var _=function(){function t(){m(this,t),this.buf=Mt.alloc(g),this.length=0}return y(t,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=Mt.concat([this.buf,Mt.alloc(g)]))}},{key:"writeU8",value:function(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}},{key:"writeU16",value:function(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}},{key:"writeU32",value:function(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}},{key:"writeU64",value:function(t){this.maybeResize(),this.writeBuffer(Mt.from(new s.default(t).toArray("le",8)))}},{key:"writeU128",value:function(t){this.maybeResize(),this.writeBuffer(Mt.from(new s.default(t).toArray("le",16)))}},{key:"writeU256",value:function(t){this.maybeResize(),this.writeBuffer(Mt.from(new s.default(t).toArray("le",32)))}},{key:"writeU512",value:function(t){this.maybeResize(),this.writeBuffer(Mt.from(new s.default(t).toArray("le",64)))}},{key:"writeBuffer",value:function(t){this.buf=Mt.concat([Mt.from(this.buf.subarray(0,this.length)),t,Mt.alloc(g)]),this.length+=t.length}},{key:"writeString",value:function(t){this.maybeResize();var e=Mt.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}},{key:"writeFixedArray",value:function(t){this.writeBuffer(Mt.from(t))}},{key:"writeArray",value:function(t,e){this.maybeResize(),this.writeU32(t.length);var r,n=f(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;this.maybeResize(),e(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),t}();function k(t,e,r){var n=r.value;r.value=function(){try{for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,e)}catch(e){if(e instanceof RangeError){var i=e.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(i)>=0)throw new w("Reached the end of buffer when deserializing")}throw e}}}e.BinaryWriter=_;var M=function(){function t(e){m(this,t),this.buf=e,this.offset=0}return y(t,[{key:"readU8",value:function(){var t=this.buf.readUInt8(this.offset);return this.offset+=1,t}},{key:"readU16",value:function(){var t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}},{key:"readU32",value:function(){var t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}},{key:"readU64",value:function(){var t=this.readBuffer(8);return new s.default(t,"le")}},{key:"readU128",value:function(){var t=this.readBuffer(16);return new s.default(t,"le")}},{key:"readU256",value:function(){var t=this.readBuffer(32);return new s.default(t,"le")}},{key:"readU512",value:function(){var t=this.readBuffer(64);return new s.default(t,"le")}},{key:"readBuffer",value:function(t){if(this.offset+t>this.buf.length)throw new w("Expected buffer length ".concat(t," isn't within bounds"));var e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}},{key:"readString",value:function(){var t=this.readU32(),e=this.readBuffer(t);try{return v.decode(e)}catch(t){throw new w("Error decoding UTF-8 string: ".concat(t))}}},{key:"readFixedArray",value:function(t){return new Uint8Array(this.readBuffer(t))}},{key:"readArray",value:function(t){for(var e=this.readU32(),r=Array(),n=0;n<e;++n)r.push(t());return r}}]),t}();function S(t){return t.charAt(0).toUpperCase()+t.slice(1)}function E(t,e,r,n,i){try{if("string"==typeof n)i["write".concat(S(n))](r);
2else if(n instanceof Array)if("number"==typeof n[0]){if(r.length!==n[0])throw new w("Expecting byte array of length ".concat(n[0],", but got ").concat(r.length," bytes"));i.writeFixedArray(r)}else i.writeArray(r,(function(r){E(t,e,r,n[0],i)}));else if(void 0!==n.kind)switch(n.kind){case"option":null==r?i.writeU8(0):(i.writeU8(1),E(t,e,r,n.type,i));break;default:throw new w("FieldType ".concat(n," unrecognized"))}else x(t,r,i)}catch(t){throw t instanceof w&&t.addToFieldPath(e),t}}function x(t,e,r){var n=t.get(e.constructor);if(!n)throw new w("Class ".concat(e.constructor.name," is missing in schema"));if("struct"===n.kind)n.fields.map((function(n){var i=c(n,2),o=i[0],a=i[1];E(t,o,e[o],a,r)}));else{if("enum"!==n.kind)throw new w("Unexpected schema kind: ".concat(n.kind," for ").concat(e.constructor.name));for(var i=e[n.field],o=0;o<n.values.length;++o){var a=c(n.values[o],2),s=a[0],u=a[1];if(s===i){r.writeU8(o),E(t,s,e[s],u,r);break}}}}function A(t,e,r,n){try{return"string"==typeof r?n["read".concat(S(r))]():r instanceof Array?"number"==typeof r[0]?n.readFixedArray(r[0]):n.readArray((function(){return A(t,e,r[0],n)})):"option"===r.kind?n.readU8()?A(t,e,r.type,n):void 0:O(t,r,n)}catch(t){throw t instanceof w&&t.addToFieldPath(e),t}}function O(t,e,r){var n=t.get(e);if(!n)throw new w("Class ".concat(e.name," is missing in schema"));if("struct"===n.kind){var i,o={},a=f(t.get(e).fields);try{for(a.s();!(i=a.n()).done;){var s=c(i.value,2),h=s[0],l=s[1];o[h]=A(t,h,l,r)}}catch(m){a.e(m)}finally{a.f()}return new e(o)}if("enum"===n.kind){var d=r.readU8();if(d>=n.values.length)throw new w("Enum index: ".concat(d," is out of range"));var p=c(n.values[d],2),b=p[0],v=p[1];return new e(u({},b,A(t,b,v,r)))}throw new w("Unexpected schema kind: ".concat(n.kind," for ").concat(e.constructor.name))}i([k],M.prototype,"readU8",null),i([k],M.prototype,"readU16",null),i([k],M.prototype,"readU32",null),i([k],M.prototype,"readU64",null),i([k],M.prototype,"readU128",null),i([k],M.prototype,"readU256",null),i([k],M.prototype,"readU512",null),i([k],M.prototype,"readString",null),i([k],M.prototype,"readFixedArray",null),i([k],M.prototype,"readArray",null),e.BinaryReader=M,e.serialize=function(t,e){var r=new _;return x(t,e,r),r.toArray()},e.deserialize=function(t,e,r){var n=new M(r),i=O(t,e,n);if(n.offset<r.length)throw new w("Unexpected ".concat(r.length-n.offset," bytes after deserialized data"));return i},e.deserializeUnchecked=function(t,e,r){return O(t,e,new M(r))}}));fe(Ce);var Be=Ce.deserializeUnchecked,Le=Ce.deserialize,Ne=Ce.serialize;Ce.BinaryReader,Ce.BinaryWriter,Ce.BorshError,Ce.baseDecode,Ce.baseEncode;var De=he((function(t,e){var r,n=ce&&ce.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function i(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function o(t){return i(t),ue.Buffer.from(t.buffer,t.byteOffset,t.length)}e.__esModule=!0,e.s16=e.s8=e.nu64be=e.u48be=e.u40be=e.u32be=e.u24be=e.u16be=e.nu64=e.u48=e.u40=e.u32=e.u24=e.u16=e.u8=e.offset=e.greedy=e.Constant=e.UTF8=e.CString=e.Blob=e.Boolean=e.BitField=e.BitStructure=e.VariantLayout=e.Union=e.UnionLayoutDiscriminator=e.UnionDiscriminator=e.Structure=e.Sequence=e.DoubleBE=e.Double=e.FloatBE=e.Float=e.NearInt64BE=e.NearInt64=e.NearUInt64BE=e.NearUInt64=e.IntBE=e.Int=e.UIntBE=e.UInt=e.OffsetLayout=e.GreedyCount=e.ExternalLayout=e.bindConstructorLayout=e.nameWithProperty=e.Layout=e.uint8ArrayToBuffer=e.checkUint8Array=void 0,e.constant=e.utf8=e.cstr=e.blob=e.unionLayoutDiscriminator=e.union=e.seq=e.bits=e.struct=e.f64be=e.f64=e.f32be=e.f32=e.ns64be=e.s48be=e.s40be=e.s32be=e.s24be=e.s16be=e.ns64=e.s48=e.s40=e.s32=e.s24=void 0,e.checkUint8Array=i,e.uint8ArrayToBuffer=o;var a=function(){function t(t,e){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=e}return t.prototype.makeDestinationObject=function(){return{}},t.prototype.decode=function(t,e){throw new Error("Layout is abstract")},t.prototype.encode=function(t,e,r){throw new Error("Layout is abstract")},t.prototype.getSpan=function(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span},t.prototype.replicate=function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e},t.prototype.fromArray=function(t){},t}();function s(t,e){return e.property?t+"["+e.property+"]":t}e.Layout=a,e.nameWithProperty=s,e.bindConstructorLayout=function(t,e){if("function"!=typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof a))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");
2t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,r){return e.encode(this,t,r)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,r){return e.decode(t,r)},writable:!0})};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.isCount=function(){throw new Error("ExternalLayout is abstract")},e}(a);e.ExternalLayout=u;var c=function(t){function e(e,r){var n=this;if(void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");return(n=t.call(this,-1,r)||this).elementSpan=e,n}return n(e,t),e.prototype.isCount=function(){return!0},e.prototype.decode=function(t,e){i(t),void 0===e&&(e=0);var r=t.length-e;return Math.floor(r/this.elementSpan)},e.prototype.encode=function(t,e,r){return 0},e}(u);e.GreedyCount=c;var f=function(t){function e(e,r,n){var i=this;if(!(e instanceof a))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(i=t.call(this,e.span,n||e.property)||this).layout=e,i.offset=r,i}return n(e,t),e.prototype.isCount=function(){return this.layout instanceof h||this.layout instanceof l},e.prototype.decode=function(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),this.layout.encode(t,e,r+this.offset)},e}(u);e.OffsetLayout=f;var h=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),o(t).readUIntLE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),o(e).writeUIntLE(t,r,this.span),this.span},e}(a);e.UInt=h;var l=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),o(t).readUIntBE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),o(e).writeUIntBE(t,r,this.span),this.span},e}(a);e.UIntBE=l;var d=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),o(t).readIntLE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),o(e).writeIntLE(t,r,this.span),this.span},e}(a);e.Int=d;var p=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),o(t).readIntBE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),o(e).writeIntBE(t,r,this.span),this.span},e}(a);e.IntBE=p;var b=Math.pow(2,32);function v(t){var e=Math.floor(t/b);return{hi32:e,lo32:t-e*b}}function m(t,e){return t*b+e}var y=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=o(t),n=r.readUInt32LE(e);return m(r.readUInt32LE(e+4),n)},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=v(t),i=o(e);return i.writeUInt32LE(n.lo32,r),i.writeUInt32LE(n.hi32,r+4),8},e}(a);e.NearUInt64=y;var g=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=o(t);return m(r.readUInt32BE(e),r.readUInt32BE(e+4))},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=v(t),i=o(e);return i.writeUInt32BE(n.hi32,r),i.writeUInt32BE(n.lo32,r+4),8},e}(a);e.NearUInt64BE=g;var w=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=o(t),n=r.readUInt32LE(e);return m(r.readInt32LE(e+4),n)},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=v(t),i=o(e);return i.writeUInt32LE(n.lo32,r),i.writeInt32LE(n.hi32,r+4),8},e}(a);e.NearInt64=w;var _=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=o(t);return m(r.readInt32BE(e),r.readUInt32BE(e+4))},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=v(t),i=o(e);return i.writeInt32BE(n.hi32,r),i.writeUInt32BE(n.lo32,r+4),8},e}(a);e.NearInt64BE=_;var k=function(t){function e(e){return t.call(this,4,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),o(t).readFloatLE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),o(e).writeFloatLE(t,r),4},e}(a);e.Float=k;var M=function(t){function e(e){return t.call(this,4,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),o(t).readFloatBE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),o(e).writeFloatBE(t,r),4},e}(a);e.FloatBE=M;var S=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),o(t).readDoubleLE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),o(e).writeDoubleLE(t,r),8},e}(a);e.Double=S;var E=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),o(t).readDoubleBE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),o(e).writeDoubleBE(t,r),8},e}(a);e.DoubleBE=E;var x=function(t){function e(e,r,n){var i=this;if(!(e instanceof a))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof u&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var o=-1;return!(r instanceof u)&&0<e.span&&(o=r*e.span),(i=t.call(this,o,n)||this).elementLayout=e,i.count=r,i}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0,n=this.count;if(n instanceof u&&(n=n.decode(t,e)),0<this.elementLayout.span)r=n*this.elementLayout.span;else for(var i=0;i<n;)r+=this.elementLayout.getSpan(t,e+r),++i;return r},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=[],n=0,i=this.count;for(i instanceof u&&(i=i.decode(t,e));n<i;)r.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),n+=1;return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.elementLayout,i=t.reduce((function(t,i){return t+n.encode(i,e,r+t)}),0);return this.count instanceof u&&this.count.encode(t.length,e,r),i},e}(a);e.Sequence=x;var A=function(t){function e(e,r,n){var i=this;if(!Array.isArray(e)||!e.reduce((function(t,e){return t&&e instanceof a}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===n&&(n=r,r=void 0);for(var o=0,s=e;o<s.length;o++){var u=s[o];if(0>u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}var c=-1;try{c=e.reduce((function(t,e){return t+e.getSpan()}),0)}catch(t){}return(i=t.call(this,c,r)||this).fields=e,i.decodePrefixes=!!n,i}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;try{r=this.fields.reduce((function(r,n){var i=n.getSpan(t,e);return e+=i,r+i}),0)}catch(t){throw new RangeError("indeterminate span")}return r},e.prototype.decode=function(t,e){i(t),void 0===e&&(e=0);for(var r=this.makeDestinationObject(),n=0,o=this.fields;n<o.length;n++){var a=o[n];if(void 0!==a.property&&(r[a.property]=a.decode(t,e)),e+=a.getSpan(t,e),this.decodePrefixes&&t.length===e)break}return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);for(var n=r,i=0,o=0,a=0,s=this.fields;a<s.length;a++){var u=s[a],c=u.span;if(o=0<c?c:0,void 0!==u.property){var f=t[u.property];void 0!==f&&(o=u.encode(f,e,r),0>c&&(c=u.getSpan(e,r)))}i=r,r+=c}return i+o-n},e.prototype.fromArray=function(t){for(var e=this.makeDestinationObject(),r=0,n=this.fields;r<n.length;r++){var i=n[r];void 0!==i.property&&0<t.length&&(e[i.property]=t.shift())}return e},e.prototype.layoutFor=function(t){if("string"!=typeof t)throw new TypeError("property must be string");for(var e=0,r=this.fields;e<r.length;e++){var n=r[e];if(n.property===t)return n}},e.prototype.offsetOf=function(t){if("string"!=typeof t)throw new TypeError("property must be string");for(var e=0,r=0,n=this.fields;r<n.length;r++){var i=n[r];if(i.property===t)return e;0>i.span?e=-1:0<=e&&(e+=i.span)}},e}(a);e.Structure=A;var O=function(){function t(t){this.property=t}return t.prototype.decode=function(t,e){throw new Error("UnionDiscriminator is abstract")},t.prototype.encode=function(t,e,r){throw new Error("UnionDiscriminator is abstract")},t}();e.UnionDiscriminator=O;var j=function(t){function e(e,r){var n=this;if(!(e instanceof u&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(n=t.call(this,r||e.property||"variant")||this).layout=e,n}return n(e,t),e.prototype.decode=function(t,e){return this.layout.decode(t,e)},e.prototype.encode=function(t,e,r){return this.layout.encode(t,e,r)},e}(O);e.UnionLayoutDiscriminator=j;var R=function(t){function e(e,r,n){var i,o=this,s=e instanceof h||e instanceof l;if(s)i=new j(new f(e));else if(e instanceof u&&e.isCount())i=new j(e);else{if(!(e instanceof O))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");i=e}if(void 0===r&&(r=null),!(null===r||r instanceof a))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var c=-1;r&&0<=(c=r.span)&&s&&(c+=i.layout.span),(o=t.call(this,c,n)||this).discriminator=i,o.usesPrefixDiscriminator=s,o.defaultLayout=r,o.registry={};var d=o.defaultGetSourceVariant.bind(o);return o.getSourceVariant=function(t){return d(t)},o.configGetSourceVariant=function(t){d=t.bind(this)},o}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=this.getVariant(t,e);if(!r)throw new Error("unable to determine span for unrecognized variant");return r.getSpan(t,e)},e.prototype.defaultGetSourceVariant=function(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;if((r=this.registry[t[this.discriminator.property]])&&(!r.layout||r.property&&Object.prototype.hasOwnProperty.call(t,r.property)))return r}else for(var e in this.registry){var r;if((r=this.registry[e]).property&&Object.prototype.hasOwnProperty.call(t,r.property))return r}throw new Error("unable to infer src variant")},e.prototype.decode=function(t,e){var r;void 0===e&&(e=0);var n=this.discriminator,i=n.decode(t,e),o=this.registry[i];if(void 0===o){var a=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=n.layout.span),(r=this.makeDestinationObject())[n.property]=i,r[a.property]=a.decode(t,e+s)}else r=o.decode(t,e);return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.getSourceVariant(t);if(void 0===n){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(t[i.property],e,r),a+o.encode(t[o.property],e,r+a)}return n.encode(t,e,r)},e.prototype.addVariant=function(t,e,r){var n=new I(this,t,e,r);return this.registry[t]=n,n},e.prototype.getVariant=function(t,e){var r;return t instanceof Uint8Array?(void 0===e&&(e=0),r=this.discriminator.decode(t,e)):r=t,this.registry[r]},e}(a);e.Union=R;var I=function(t){function e(e,r,n,i){var o=this;if(!(e instanceof R))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");
2if("string"==typeof n&&void 0===i&&(i=n,n=null),n){if(!(n instanceof a))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=n.span&&n.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=n?n.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)||this).union=e,o.variant=r,o.layout=n||null,o}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span);var n=0;return this.layout&&(n=this.layout.getSpan(t,e+r)),r+n},e.prototype.decode=function(t,e){var r=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var i=this.property;return this.layout?r[i]=this.layout.decode(t,e+n):i?r[i]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var i=this.property;if(this.layout&&!Object.prototype.hasOwnProperty.call(t,i))throw new TypeError("variant lacks property "+i);this.union.discriminator.encode(this.variant,e,r);var o=n;if(this.layout&&(this.layout.encode(t[i],e,r+n),o+=this.layout.getSpan(e,r+n),0<=this.union.span&&o>this.union.span))throw new Error("encoded variant overruns containing union");return o},e.prototype.fromArray=function(t){if(this.layout)return this.layout.fromArray(t)},e}(a);function P(t){return 0>t&&(t+=4294967296),t}e.VariantLayout=I;var T=function(t){function e(e,r,n){var i=this;if(!(e instanceof h||e instanceof l))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===n&&(n=r,r=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");(i=t.call(this,e.span,n)||this).word=e,i.msb=!!r,i.fields=[];var o=0;return i._packedSetValue=function(t){return o=P(t),this},i._packedGetValue=function(){return o},i}return n(e,t),e.prototype.decode=function(t,e){var r=this.makeDestinationObject();void 0===e&&(e=0);var n=this.word.decode(t,e);this._packedSetValue(n);for(var i=0,o=this.fields;i<o.length;i++){var a=o[i];void 0!==a.property&&(r[a.property]=a.decode(n))}return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.word.decode(e,r);this._packedSetValue(n);for(var i=0,o=this.fields;i<o.length;i++){var a=o[i];if(void 0!==a.property){var s=t[a.property];void 0!==s&&a.encode(s)}}return this.word.encode(this._packedGetValue(),e,r)},e.prototype.addField=function(t,e){var r=new C(this,t,e);return this.fields.push(r),r},e.prototype.addBoolean=function(t){var e=new B(this,t);return this.fields.push(e),e},e.prototype.fieldFor=function(t){if("string"!=typeof t)throw new TypeError("property must be string");for(var e=0,r=this.fields;e<r.length;e++){var n=r[e];if(n.property===t)return n}},e}(a);e.BitStructure=T;var C=function(){function t(t,e,r){if(!(t instanceof T))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(e)||0>=e)throw new TypeError("bits must be positive integer");var n=8*t.span,i=t.fields.reduce((function(t,e){return t+e.bits}),0);if(e+i>n)throw new Error("bits too long for span remainder ("+(n-i)+" of "+n+" remain)");this.container=t,this.bits=e,this.valueMask=(1<<e)-1,32===e&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=n-i-e),this.wordMask=P(this.valueMask<<this.start),this.property=r}return t.prototype.decode=function(t,e){return P(this.container._packedGetValue()&this.wordMask)>>>this.start},t.prototype.encode=function(t){if(!Number.isInteger(t)||t!==P(t&this.valueMask))throw new TypeError(s("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),r=P(t<<this.start);this.container._packedSetValue(P(e&~this.wordMask)|r)},t}();e.BitField=C;var B=function(t){function e(e,r){return t.call(this,e,1,r)||this}return n(e,t),e.prototype.decode=function(t,e){return!!C.prototype.decode.call(this,t,e)},e.prototype.encode=function(t){return"boolean"==typeof t&&(t=+t),C.prototype.encode.call(this,t)},e}(C);e.Boolean=B;var L=function(t){function e(e,r){var n=this;if(!(e instanceof u&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var i=-1;return e instanceof u||(i=e),(n=t.call(this,i,r)||this).length=e,n}return n(e,t),e.prototype.getSpan=function(t,e){var r=this.span;return 0>r&&(r=this.length.decode(t,e)),r},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.span;return 0>r&&(r=this.length.decode(t,e)),o(t).slice(e,e+r)},e.prototype.encode=function(t,e,r){var n=this.length;if(this.length instanceof u&&(n=t.length),!(t instanceof Uint8Array&&n===t.length))throw new TypeError(s("Blob.encode",this)+" requires (length "+n+") Uint8Array as src");if(r+n>e.length)throw new RangeError("encoding overruns Uint8Array");var i=o(t);return o(e).write(i.toString("hex"),r,n,"hex"),this.length instanceof u&&this.length.encode(n,e,r),n},e}(a);e.Blob=L;var N=function(t){function e(e){return t.call(this,-1,e)||this}return n(e,t),e.prototype.getSpan=function(t,e){i(t),void 0===e&&(e=0);for(var r=e;r<t.length&&0!==t[r];)r+=1;return 1+r-e},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.getSpan(t,e);return o(t).slice(e,e+r-1).toString("utf-8")},e.prototype.encode=function(t,e,r){void 0===r&&(r=0),"string"!=typeof t&&(t=t.toString());var n=ue.Buffer.from(t,"utf8"),i=n.length;if(r+i>e.length)throw new RangeError("encoding overruns Buffer");var a=o(e);return n.copy(a,r),a[r+i]=0,i+1},e}(a);e.CString=N;var D=function(t){function e(e,r){var n=this;if("string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(n=t.call(this,-1,r)||this).maxSpan=e,n}return n(e,t),e.prototype.getSpan=function(t,e){return i(t),void 0===e&&(e=0),t.length-e},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError("text length exceeds maxSpan");return o(t).slice(e,e+r).toString("utf-8")},e.prototype.encode=function(t,e,r){void 0===r&&(r=0),"string"!=typeof t&&(t=t.toString());var n=ue.Buffer.from(t,"utf8"),i=n.length;if(0<=this.maxSpan&&this.maxSpan<i)throw new RangeError("text length exceeds maxSpan");if(r+i>e.length)throw new RangeError("encoding overruns Buffer");return n.copy(o(e),r),i},e}(a);e.UTF8=D;var U=function(t){function e(e,r){var n=t.call(this,0,r)||this;return n.value=e,n}return n(e,t),e.prototype.decode=function(t,e){return this.value},e.prototype.encode=function(t,e,r){return 0},e}(a);e.Constant=U,e.greedy=function(t,e){return new c(t,e)},e.offset=function(t,e,r){return new f(t,e,r)},e.u8=function(t){return new h(1,t)},e.u16=function(t){return new h(2,t)},e.u24=function(t){return new h(3,t)},e.u32=function(t){return new h(4,t)},e.u40=function(t){return new h(5,t)},e.u48=function(t){return new h(6,t)},e.nu64=function(t){return new y(t)},e.u16be=function(t){return new l(2,t)},e.u24be=function(t){return new l(3,t)},e.u32be=function(t){return new l(4,t)},e.u40be=function(t){return new l(5,t)},e.u48be=function(t){return new l(6,t)},e.nu64be=function(t){return new g(t)},e.s8=function(t){return new d(1,t)},e.s16=function(t){return new d(2,t)},e.s24=function(t){return new d(3,t)},e.s32=function(t){return new d(4,t)},e.s40=function(t){return new d(5,t)},e.s48=function(t){return new d(6,t)},e.ns64=function(t){return new w(t)},e.s16be=function(t){return new p(2,t)},e.s24be=function(t){return new p(3,t)},e.s32be=function(t){return new p(4,t)},e.s40be=function(t){return new p(5,t)},e.s48be=function(t){return new p(6,t)},e.ns64be=function(t){return new _(t)},e.f32=function(t){return new k(t)},e.f32be=function(t){return new M(t)},e.f64=function(t){return new S(t)},e.f64be=function(t){return new E(t)},e.struct=function(t,e,r){return new A(t,e,r)},e.bits=function(t,e,r){return new T(t,e,r)},e.seq=function(t,e,r){return new x(t,e,r)},e.union=function(t,e,r){return new R(t,e,r)},e.unionLayoutDiscriminator=function(t,e){return new j(t,e)},e.blob=function(t,e){return new L(t,e)},e.cstr=function(t){return new N(t)},e.utf8=function(t,e){return new D(t,e)},e.constant=function(t,e){return new U(t,e)}}));fe(De),De.s16,De.s8,De.nu64be,De.u48be,De.u40be,De.u32be,De.u24be,De.u16be;var Ue=De.nu64;De.u48,De.u40;var ze=De.u32;De.u24;var We=De.u16,qe=De.u8,Fe=De.offset;De.greedy,De.Constant,De.UTF8,De.CString,De.Blob,De.Boolean,De.BitField,De.BitStructure,De.VariantLayout,De.Union,De.UnionLayoutDiscriminator,De.UnionDiscriminator,De.Structure,De.Sequence,De.DoubleBE,De.Double,De.FloatBE,De.Float,De.NearInt64BE,De.NearInt64,De.NearUInt64BE,De.NearUInt64,De.IntBE,De.Int,De.UIntBE,De.UInt,De.OffsetLayout,De.GreedyCount,De.ExternalLayout,De.bindConstructorLayout,De.nameWithProperty,De.Layout,De.uint8ArrayToBuffer,De.checkUint8Array,De.constant,De.utf8,De.cstr;var Ke=De.blob;De.unionLayoutDiscriminator,De.union;var He=De.seq;De.bits;var Ye=De.struct;De.f64be,De.f64,De.f32be,De.f32,De.ns64be,De.s48be,De.s40be,De.s32be,De.s24be,De.s16be;var Ve=De.ns64;De.s48,De.s40,De.s32,De.s24;var Ze=function(t){d(r,t);var e=p(r);function r(t,n){var i,u;m(this,r);var c=t.message,f=a(t,["message"]),h=t.path;return i=e.call(this,0===h.length?c:"At path: "+h.join(".")+" -- "+c),Object.assign(s(i),f),i.name=i.constructor.name,i.failures=function(){var e;return null!=(e=u)?e:u=[t].concat(o(n()))},i}return r}(h(TypeError));function Ge(t){return"object"==typeof t&&null!=t}function Xe(t){return"string"==typeof t?JSON.stringify(t):""+t}function Je(t,e,r,n){if(!0!==t){!1===t?t={}:"string"==typeof t&&(t={message:t});var i=e.path,o=e.branch,a=r.type,s=t,u=s.refinement,c=s.message,f=void 0===c?"Expected a value of type `"+a+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+Xe(n)+"`":c;return l(l({value:n,type:a,refinement:u,key:i[i.length-1],path:i,branch:o},t),{},{message:f})}}function Qe(e,r,n,i){var o,a,s,u,c;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Ge(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]),a=f(e),t.prev=2,a.s();case 4:if((s=a.n()).done){t.next=13;break}if(u=s.value,c=Je(u,r,n,i),t.t0=c,!t.t0){t.next=11;break}return t.next=11,c;case 11:t.next=4;break;case 13:t.next=18;break;case 15:t.prev=15,t.t1=t.catch(2),a.e(t.t1);case 18:return t.prev=18,a.f(),t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[2,15,18,21]])}function $e(t,e){var n,i,a,s,u,h,l,d,p,v,m,y,g,w,_,k,M,S,E,x,A,O,j,R,I,P,T,C,B=arguments;return b.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=B.length>2&&void 0!==B[2]?B[2]:{},i=n.path,a=void 0===i?[]:i,s=n.branch,u=void 0===s?[t]:s,h=n.coerce,l=void 0!==h&&h,d=n.mask,p=void 0!==d&&d,v={path:a,branch:u},l&&(t=e.coercer(t,v),p&&"type"!==e.type&&Ge(e.schema)&&Ge(t)&&!Array.isArray(t)))for(m in t)void 0===e.schema[m]&&delete t[m];y=!0,g=f(e.validator(t,v)),r.prev=5,g.s();case 7:if((w=g.n()).done){r.next=14;break}return _=w.value,y=!1,r.next=12,[_,void 0];case 12:r.next=7;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(5),g.e(r.t0);case 19:return r.prev=19,g.f(),r.finish(19);case 22:k=f(e.entries(t,v)),r.prev=23,k.s();case 25:if((M=k.n()).done){r.next=52;break}S=c(M.value,3),E=S[0],x=S[1],A=S[2],O=$e(x,A,{path:void 0===E?a:[].concat(o(a),[E]),branch:void 0===E?u:[].concat(o(u),[x]),coerce:l,mask:p}),j=f(O),r.prev=29,j.s();case 31:if((R=j.n()).done){r.next=42;break}if(!(I=R.value)[0]){r.next=39;break}return y=!1,r.next=37,[I[0],void 0];case 37:r.next=40;break;case 39:l&&(x=I[1],void 0===E?t=x:t instanceof Map?t.set(E,x):t instanceof Set?t.add(x):Ge(t)&&(t[E]=x));case 40:r.next=31;break;case 42:r.next=47;break;case 44:r.prev=44,r.t1=r.catch(29),j.e(r.t1);case 47:return r.prev=47,j.f(),r.finish(47);case 50:r.next=25;break;case 52:r.next=57;break;case 54:r.prev=54,r.t2=r.catch(23),k.e(r.t2);case 57:return r.prev=57,k.f(),r.finish(57);case 60:if(!y){r.next=79;break}P=f(e.refiner(t,v)),r.prev=62,P.s();case 64:if((T=P.n()).done){r.next=71;break}return C=T.value,y=!1,r.next=69,[C,void 0];case 69:r.next=64;break;case 71:r.next=76;break;case 73:r.prev=73,r.t3=r.catch(62),P.e(r.t3);case 76:return r.prev=76,P.f(),r.finish(76);case 79:if(r.t4=y,!r.t4){r.next=83;break}return r.next=83,[void 0,t];case 83:case"end":return r.stop()}}),r,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}var tr=function(){function t(e){var r=this;m(this,t);var n=e.type,i=e.schema,o=e.validator,a=e.refiner,s=e.coercer,u=void 0===s?function(t){return t}:s,c=e.entries,f=void 0===c?b.mark((function t(){return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})):c;this.type=n,this.schema=i,this.entries=f,this.coercer=u,this.validator=o?function(t,e){return Qe(o(t,e),e,r,t)}:function(){return[]},this.refiner=a?function(t,e){return Qe(a(t,e),e,r,t)}:function(){return[]}}
2return y(t,[{key:"assert",value:function(t){return function(t,e){var r=nr(t,e);if(r[0])throw r[0]}(t,this)}},{key:"create",value:function(t){return er(t,this)}},{key:"is",value:function(t){return rr(t,this)}},{key:"mask",value:function(t){return function(t,e){var r=nr(t,e,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}(t,this)}},{key:"validate",value:function(t){return nr(t,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}]),t}();function er(t,e){var r=nr(t,e,{coerce:!0});if(r[0])throw r[0];return r[1]}function rr(t,e){return!nr(t,e)[0]}function nr(t,e){var r=$e(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),n=function(t){var e=t.next(),r=e.done,n=e.value;return r?void 0:n}(r);return n[0]?[new Ze(n[0],b.mark((function t(){var e,n,i;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=f(r),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=11;break}if(i=n.value,t.t0=i[0],!t.t0){t.next=9;break}return t.next=9,i[0];case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),e.e(t.t1);case 16:return t.prev=16,e.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[1,13,16,19]])}))),void 0]:[void 0,n[1]]}function ir(t,e){return new tr({type:t,schema:null,validator:e})}function or(t){return new tr({type:"array",schema:t,entries:b.mark((function e(r){var n,i,o,a,s;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!Array.isArray(r)){e.next=18;break}n=f(r.entries()),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=10;break}return o=c(i.value,2),a=o[0],s=o[1],e.next=8,[a,s,t];case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})),coercer:function(t){return Array.isArray(t)?t.slice():t},validator:function(t){return Array.isArray(t)||"Expected an array value, but received: "+Xe(t)}})}function ar(){return ir("boolean",(function(t){return"boolean"==typeof t}))}function sr(t){return ir("instance",(function(e){return e instanceof t||"Expected a `"+t.name+"` instance, but received: "+Xe(e)}))}function ur(t){var e=Xe(t),r=typeof t;return new tr({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?t:null,validator:function(r){return r===t||"Expected the literal `"+e+"`, but received: "+Xe(r)}})}function cr(t){return new tr(l(l({},t),{},{validator:function(e,r){return null===e||t.validator(e,r)},refiner:function(e,r){return null===e||t.refiner(e,r)}}))}function fr(){return ir("number",(function(t){return"number"==typeof t&&!isNaN(t)||"Expected a number, but received: "+Xe(t)}))}function hr(t){return new tr(l(l({},t),{},{validator:function(e,r){return void 0===e||t.validator(e,r)},refiner:function(e,r){return void 0===e||t.refiner(e,r)}}))}function lr(){return ir("string",(function(t){return"string"==typeof t||"Expected a string, but received: "+Xe(t)}))}function dr(t){var e=ir("never",(function(){return!1}));return new tr({type:"tuple",schema:null,entries:b.mark((function r(n){var i,o;return b.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(n)){r.next=9;break}i=Math.max(t.length,n.length),o=0;case 3:if(!(o<i)){r.next=9;break}return r.next=6,[o,n[o],t[o]||e];case 6:o++,r.next=3;break;case 9:case"end":return r.stop()}}),r)})),validator:function(t){return Array.isArray(t)||"Expected an array, but received: "+Xe(t)}})}function pr(t){var e=Object.keys(t);return new tr({type:"type",schema:t,entries:b.mark((function r(n){var i,o,a;return b.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Ge(n)){r.next=18;break}i=f(e),r.prev=2,i.s();case 4:if((o=i.n()).done){r.next=10;break}return a=o.value,r.next=8,[a,n[a],t[a]];case 8:r.next=4;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(2),i.e(r.t0);case 15:return r.prev=15,i.f(),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[2,12,15,18]])})),validator:function(t){return Ge(t)||"Expected an object, but received: "+Xe(t)}})}function br(t){var e=t.map((function(t){return t.type})).join(" | ");return new tr({type:"union",schema:null,validator:function(r,n){var o,a=[],s=f(t);try{for(s.s();!(o=s.n()).done;
2){var u=$e(r,o.value,n),h=i(u).slice(0);if(!c(h,1)[0][0])return[];var l,d=f(h);try{for(d.s();!(l=d.n()).done;){var p=c(l.value,1)[0];p&&a.push(p)}}catch(b){d.e(b)}finally{d.f()}}}catch(b){s.e(b)}finally{s.f()}return["Expected the value to satisfy a union of `"+e+"`, but received: "+Xe(r)].concat(a)}})}function vr(){return ir("unknown",(function(){return!0}))}function mr(t,e,r){return new tr(l(l({},t),{},{coercer:function(n,i){return rr(n,e)?t.coercer(r(n,i),i):t.coercer(n,i)}}))}var yr=he((function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0}));fe(yr);var gr=he((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0}));fe(gr);var wr=he((function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(r,n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}));fe(wr);var _r=he((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wr(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0}));fe(_r);var kr=he((function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}));fe(kr);var Mr=he((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0}));fe(Mr);var Sr=he((function(t){var e=kr.default;t.exports=function(t,r){return!r||"object"!==e(r)&&"function"!=typeof r?Mr(t):r},t.exports.default=t.exports,t.exports.__esModule=!0}));fe(Sr);var Er=he((function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}));fe(Er);var xr=he((function(t){function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0}));fe(xr);var Ar=he((function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,c,f=this._events[s],h=arguments.length;if(f.fn){switch(f.once&&this.removeListener(t,f.fn,void 0,!0),h){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,e),!0;case 3:return f.fn.call(f.context,e,n),!0;case 4:return f.fn.call(f.context,e,n,i),!0;case 5:return f.fn.call(f.context,e,n,i,o),!0;case 6:return f.fn.call(f.context,e,n,i,o,a),!0}for(c=1,u=new Array(h-1);c<h;c++)u[c-1]=arguments[c];f.fn.apply(f.context,u)}else{var l,d=f.length;for(c=0;c<d;c++)switch(f[c].once&&this.removeListener(t,f[c].fn,void 0,!0),h){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,e);break;case 3:f[c].fn.call(f[c].context,e,n);break;case 4:f[c].fn.call(f[c].context,e,n,i);break;default:if(!u)for(l=1,u=new Array(h-1);l<h;l++)u[l-1]=arguments[l];f[c].fn.apply(f[c].context,u)}}return!0},s.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},s.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],f=s.length;u<f;u++)(s[u].fn!==e||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,t.exp
vendor: 5,663 bytes, line 2
2orts=s})),Or=he((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new u(t,e)};var r=yr(gr),n=yr(xr),i=yr(_r),o=yr(Sr),a=yr(Er);function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,a.default)(t);if(e){var i=(0,a.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,o.default)(this,r)}}var u=function(t){(0,i.default)(o,t);var e=s(o);function o(t,n,i){var a;return(0,r.default)(this,o),(a=e.call(this)).socket=new window.WebSocket(t,i),a.socket.onopen=function(){return a.emit("open")},a.socket.onmessage=function(t){return a.emit("message",t.data)},a.socket.onerror=function(t){return a.emit("error",t)},a.socket.onclose=function(t){a.emit("close",t.code,t.reason)},a}return(0,n.default)(o,[{key:"send",value:function(t,e,r){var n=r||e;try{this.socket.send(t),n()}catch(t){n(t)}}},{key:"close",value:function(t,e){this.socket.close(t,e)}},{key:"addEventListener",value:function(t,e,r){this.socket.addEventListener(t,e,r)}}]),o}(Ar.EventEmitter)}));fe(Or);var jr=he((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n=h;return function(i,o){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return R()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?p:l,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",l="suspendedYield",d="executing",p="completed",b={};function v(){}function m(){}function y(){}var g={};g[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(j([])));_&&_!==r&&n.call(_,o)&&(g=_);var k=y.prototype=v.prototype=Object.create(g);function M(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return b;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=f(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:R}}function R(){return{value:e,done:!0}}return m.prototype=k.constructor=y,y.constructor=m,m.displayName=u(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,s,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},M(S.prototype),S.prototype[a]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new S(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(k),u(k,s,"Generator"),k[o]=function(){return this},k.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),Rr=he((function(t){function e(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(i,o){var a=t.apply(r,n);function s(t){e(a,i,o,s,u,"next",t)}function u(t){e(a,i,o,s,u,"throw",t)}s(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0}));fe(Rr);var Ir="~",Pr="\\x"+("0"+Ir.charCodeAt(0).toString(16)).slice(-2),Tr="\\"+Pr,Cr=new RegExp(Pr,"g"),Br=new RegExp(Tr,"g"),Lr=new RegExp("(?:^|([^\\\\]))"+Tr),Nr=[].indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},Dr=String;function Ur(t,e,r){return e instanceof Array?function(t,e,r){for(var n=0,i=e.length;n<i;n++)e[n]=Ur(t,e[n],r);return e}(t,e,r):e instanceof Dr?e.length?r.hasOwnProperty(e)?r[e]:r[e]=function(t,e){for(var r=0,n=e.length;r<n;t=t[e[r++].replace(Br,Ir)]);return t}(t,e.split(Ir)):t:e instanceof Object?function(t,e,r){for(var n in e)e.hasOwnProperty(n)&&(e[n]=Ur(t,e[n],r));return e}(t,e,r):e}var zr={stringify:function(t,e,r,n){return zr.parser.stringify(t,function(t,e,r){var n,i,o=!1,a=!!e,s=[],u=[t],c=[t],f=[r?Ir:"[Circular]"],h=t,l=1;return a&&(i="object"==typeof e?function(t,r){return""!==t&&e.indexOf(t)<0?void 0:r}:e),function(t,e){return a&&(e=i.call(this,t,e)),o?(h!==this&&(n=l-Nr.call(u,this)-1,l-=n,u.splice(l,u.length),s.splice(l-1,s.length),h=this),"object"==typeof e&&e?(Nr.call(u,e)<0&&u.push(h=e),l=u.length,(n=Nr.call(c,e))<0?(n=c.push(e)-1,r?(s.push((""+t).replace(Cr,Pr)),f[n]=Ir+s.join(Ir)):f[n]=f[0]):e=f[n]):"string"==typeof e&&r&&(e=e.replace(Pr,Tr).replace(Ir,Pr))):o=!0,e}}(t,e,!n),r)},parse:function(t,e){return zr.parser.parse(t,function(t){return function(e,r){var n="string"==typeof r;return n&&r.charAt(0)===Ir?new Dr(r.slice(1)):(""===e&&(r=Ur(r,r,{})),n&&(r=r.replace(Lr,"$1~").replace(Tr,Pr)),t?t.call(this,e,r):r)}}(e))},parser:JSON},Wr=zr,qr=he((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=yr(jr),n=yr(Rr),i=yr(kr),o=yr(gr),a=yr(xr),s=yr(_r),u=yr(Sr),c=yr(Er),f=yr(Wr);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,c.default)(t);if(e){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var l=function(t){(0,s.default)(p,t);var e,u,c,l,d=h(p);function p(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.autoconnect,a=void 0===i||i,s=n.reconnect,u=void 0===s||s,c=n.reconnect_interval,f=void 0===c?1e3:c,h=n.max_reconnects,l=void 0===h?5:h,b=arguments.length>3?arguments[3]:void 0;return(0,o.default)(this,p),(e=d.call(this)).webSocketFactory=t,e.queue={},e.rpc_id=0,e.address=r,e.autoconnect=a,e.ready=!1,e.reconnect=u,e.reconnect_interval=f,e.max_reconnects=l,e.current_reconnects=0,e.generate_request_id=b||function(){return++e.rpc_id},e.autoconnect&&e._connect(e.address,{autoconnect:e.autoconnect,reconnect:e.reconnect,reconnect_interval:e.reconnect_interval,max_reconnects:e.max_reconnects}),e}
2return(0,a.default)(p,[{key:"connect",value:function(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects})}},{key:"call",value:function(t,e,r,n){var o=this;return n||"object"!==(0,i.default)(r)||(n=r,r=null),new Promise((function(i,a){if(!o.ready)return a(new Error("socket not ready"));var s=o.generate_request_id(t,e),u={jsonrpc:"2.0",method:t,params:e||null,id:s};o.socket.send(JSON.stringify(u),n,(function(t){if(t)return a(t);o.queue[s]={promise:[i,a]},r&&(o.queue[s].timeout=setTimeout((function(){o.queue[s]=null,a(new Error("reply timeout"))}),r))}))}))}},{key:"login",value:(l=(0,n.default)(r.default.mark((function t(e){return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("rpc.login",e);case 2:if(t.sent){t.next=5;break}throw new Error("authentication failed");case 5:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"listMethods",value:(c=(0,n.default)(r.default.mark((function t(){return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("__listMethods");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"notify",value:function(t,e){var r=this;return new Promise((function(n,i){if(!r.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:t,params:e||null};r.socket.send(JSON.stringify(o),(function(t){if(t)return i(t);n()}))}))}},{key:"subscribe",value:(u=(0,n.default)(r.default.mark((function t(e){var n;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"==typeof e&&(e=[e]),t.next=3,this.call("rpc.on",e);case 3:if(n=t.sent,"string"!=typeof e||"ok"===n[e]){t.next=6;break}throw new Error("Failed subscribing to an event '"+e+"' with: "+n[e]);case 6:return t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"unsubscribe",value:(e=(0,n.default)(r.default.mark((function t(e){var n;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"==typeof e&&(e=[e]),t.next=3,this.call("rpc.off",e);case 3:if(n=t.sent,"string"!=typeof e||"ok"===n[e]){t.next=6;break}throw new Error("Failed unsubscribing from an event with: "+n);case 6:return t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"close",value:function(t,e){this.socket.close(t||1e3,e)}},{key:"_connect",value:function(t,e){var r=this;this.socket=this.webSocketFactory(t,e),this.socket.addEventListener("open",(function(){r.ready=!0,r.emit("open"),r.current_reconnects=0})),this.socket.addEventListener("message",(function(t){var e=t.data;e instanceof ArrayBuffer&&(e=Mt.from(e).toString());try{e=f.default.parse(e)}catch(t){return}if(e.notification&&r.listeners(e.notification).length){if(!Object.keys(e.params).length)return r.emit(e.notification);var n=[e.notification];if(e.params.constructor===Object)n.push(e.params);else for(var i=0;i<e.params.length;i++)n.push(e.params[i]);return Promise.resolve().then((function(){r.emit.apply(r,n)}))}if(!r.queue[e.id])return e.method&&e.params?Promise.resolve().then((function(){r.emit(e.method,e.params)})):void 0;"error"in e=="result"in e&&r.queue[e.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),r.queue[e.id].timeout&&clearTimeout(r.queue[e.id].timeout),e.error?r.queue[e.id].promise[1](e.error):r.queue[e.id].promise[0](e.result),r.queue[e.id]=null})),this.socket.addEventListener("error",(function(t){return r.emit("error",t)})),this.socket.addEventListener("close",(function(n){var i=n.code,o=n.reason;r.ready&&setTimeout((function(){return r.emit("close",i,o)}),0),r.ready=!1,r.socket=void 0,1e3!==i&&(r.current_reconnects++,r.reconnect&&(r.max_reconnects>r.current_reconnects||0===r.max_reconnects)&&setTimeout((function(){return r._connect(t,e)}),r.reconnect_interval))}))}}]),p}(Ar.EventEmitter);e.default=l}));fe(qr);
2var Fr=he((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Client=void 0;var r=yr(gr),n=yr(_r),i=yr(Sr),o=yr(Er),a=yr(Or);function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,o.default)(t);if(e){var a=(0,o.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.default)(this,r)}}var u=function(t){(0,n.default)(i,t);var e=s(i);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8080",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.autoconnect,s=void 0===o||o,u=n.reconnect,c=void 0===u||u,f=n.reconnect_interval,h=void 0===f?1e3:f,l=n.max_reconnects,d=void 0===l?5:l,p=arguments.length>2?arguments[2]:void 0;return(0,r.default)(this,i),e.call(this,a.default,t,{autoconnect:s,reconnect:c,reconnect_interval:h,max_reconnects:d},p)}return i}(yr(qr).default);e.Client=u}));fe(Fr),Fr.Client,he((function(t){var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var r=new Uint8Array(16);t.exports=function(){return e(r),r}}else{var n=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}}));for(var Kr=[],Hr=0;Hr<256;++Hr)Kr[Hr]=(Hr+256).toString(16).substr(1);var Yr="Impossible case. Please create issue.",Vr="The tweak was out of range or the resulted private key is invalid",Zr="The tweak was out of range or equal to zero",Gr="Unknow error on context randomization",Xr="Private Key is invalid",Jr="Public Key could not be parsed",Qr="Public Key serialization error",$r="The sum of the public keys is not valid",tn="Signature could not be parsed",en="The nonce generation function failed, or the private key was invalid",rn="Public key could not be recover",nn="Scalar was invali
2d (zero or overflow)";function on(t,e){if(!t)throw new Error(e)}function an(t,e,r){if(on(e instanceof Uint8Array,"Expected ".concat(t," to be an Uint8Array")),void 0!==r)if(Array.isArray(r)){var n="Expected ".concat(t," to be an Uint8Array with length [").concat(r.join(", "),"]");on(r.includes(e.length),n)}else{var i="Expected ".concat(t," to be an Uint8Array with length ").concat(r);on(e.length===r,i)}}function sn(t){on("Boolean"===cn(t),"Expected compressed to be a Boolean")}function un(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return new Uint8Array(t)},e=arguments.length>1?arguments[1]:void 0;return"function"==typeof t&&(t=t(e)),an("output",t,e),t}function cn(t){return Object.prototype.toString.call(t).slice(8,-1)}var fn="elliptic",hn="6.5.4",ln="EC cryptography",dn="lib/elliptic.js",pn=["lib"],bn={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},vn={type:"git",url:"[email protected]:indutny/elliptic"},mn=["EC","Elliptic","curve","Cryptography"],yn="Fedor Indutny <[email protected]>",gn={url:"https://github.com/indutny/elliptic/issues"},wn="https://github.com/indutny/elliptic",_n={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},kn={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},Mn={name:fn,version:hn,description:ln,main:dn,files:pn,scripts:bn,repository:vn,keywords:mn,author:yn,license:"MIT",bugs:gn,homepage:wn,devDependencies:_n,dependencies:kn},Sn=Object.freeze({__proto__:null,name:fn,version:hn,description:ln,main:dn,files:pn,scripts:bn,repository:vn,keywords:mn,author:yn,license:"MIT",bugs:gn,homepage:wn,devDependencies:_n,dependencies:kn,default:Mn}),En=he((function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;
vendor: 4,180 bytes, line 2
2"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:pe.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},i.prototype._initNumber=function(t,e,n){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"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){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 o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=u(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],f=[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],h=[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: 7,274 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?b+n:c[l-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.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},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return r(void 0!==o),this.toArrayLike(o,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.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()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},i.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.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)},i.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 4,788 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,
vendor: 12,863 bytes, line 2
2X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function p(t,e,r){return(new b).mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(d=l),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):r<63?l(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):p(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),p(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.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)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!==(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}
vendor: 16,384 bytes, line 2
2var f=n.clone()._ishlnsubmul(o,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[o.length+h])+(0|n.words[o.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(o,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(o,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},i.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var f=n.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(f),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(n.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(u)):(n.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,f=1;0==(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0==(n.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(n.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.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},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new k(t)},i.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)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=i._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 M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}m.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},n(y,m),y.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},n(g,m),n(w,m),n(_,m),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new g;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);r(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,o),l=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();r(v<p);var m=this.pow(h,new i(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;o!==r[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new M(t)},n(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,ce)})),xn=An;function An(t,e){if(!t)throw new Error(e||"Assertion failed")}An.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var On,jn=he((function(t,e){var r=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16));else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),Rn=he((function(t,e){var r=e;r.assert=xn,r.toArray=jn.toArray,r.zero2=jn.zero2,r.toHex=jn.toHex,r.encode=jn.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new En(t,"hex","le")}})),In=function(t){return On||(On=new Pn(null)),On.generate(t)};function Pn(t){this.rand=t}var Tn=Pn;if(Pn.prototype.generate=function(t){return this._rand(t)},Pn.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?Pn.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?Pn.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(Pn.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var Cn=pe;if("function"!=typeof Cn.randomBytes)throw new Error("Not supported");Pn.prototype._rand=function(t){return Cn.randomBytes(t)}}catch(g){}In.Rand=Tn;var Bn=Rn.getNAF,Ln=Rn.getJSF,Nn=Rn.assert;function Dn(t,e){this.type=t,this.p=new En(e.p,16),this.red=e.prime?En.red(e.prime):En.mo
vendor: 7,529 bytes, line 2
2nt(this.p),this.zero=new En(0).toRed(this.red),this.one=new En(1).toRed(this.red),this.two=new En(2).toRed(this.red),this.n=e.n&&new En(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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Un=Dn;function zn(t,e){this.curve=t,this.type=e,this.precomputed=null}Dn.prototype.point=function(){throw new Error("Not implemented")},Dn.prototype.validate=function(){throw new Error("Not implemented")},Dn.prototype._fixedNafMul=function(t,e){Nn(t.precomputed);var r=t._getDoubles(),n=Bn(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var o,a,s=[];for(o=0;o<n.length;o+=r.step){a=0;for(var u=o+r.step-1;u>=o;u--)a=(a<<1)+n[u];s.push(a)}for(var c=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o<s.length;o++)(a=s[o])===h?f=f.mixedAdd(r.points[o]):a===-h&&(f=f.mixedAdd(r.points[o].neg()));c=c.add(f)}return c.toP()},Dn.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=Bn(e,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];Nn(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},Dn.prototype._wnafMulAdd=function(t,e,r,n,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,f=this._wnafT3,h=0;for(o=0;o<n;o++){var l=(s=e[o])._getNAFPoints(t);u[o]=l.wnd,c[o]=l.points}for(o=n-1;o>=1;o-=2){var d=o-1,p=o;if(1===u[d]&&1===u[p]){var b=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(b[1]=e[d].add(e[p]),b[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(b[1]=e[d].toJ().mixedAdd(e[p]),b[2]=e[d].add(e[p].neg())):(b[1]=e[d].toJ().mixedAdd(e[p]),b[2]=e[d].toJ().mixedAdd(e[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],m=Ln(r[d],r[p]);for(h=Math.max(m[0].length,h),f[d]=new Array(h),f[p]=new Array(h),a=0;a<h;a++){var y=0|m[0][a],g=0|m[1][a];f[d][a]=v[3*(y+1)+(g+1)],f[p][a]=0,c[d]=b}}else f[d]=Bn(r[d],u[d],this._bitLength),f[p]=Bn(r[p],u[p],this._bitLength),h=Math.max(f[d].length,h),h=Math.max(f[p].length,h)}var w=this.jpoint(null,null,null),_=this._wnafT4;for(o=h;o>=0;o--){for(var k=0;o>=0;){var M=!0;for(a=0;a<n;a++)_[a]=0|f[a][o],0!==_[a]&&(M=!1);if(!M)break;k++,o--}if(o>=0&&k++,w=w.dblp(k),o<0)break;for(a=0;a<n;a++){var S=_[a];0!==S&&(S>0?s=c[a][S-1>>1]:S<0&&(s=c[a][-S-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(o=0;o<n;o++)c[o]=null;return i?w:w.toP()},Dn.BasePoint=zn,zn.prototype.eq=function(){throw new Error("Not implemented")},zn.prototype.validate=function(){return this.curve.validate(this)},Dn.prototype.decodePoint=function(t,e){t=Rn.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?Nn(t[t.length-1]%2==0):7===t[0]&&Nn(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},zn.prototype.encodeCompressed=function(t){return this.encode(t,!0)},zn.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},zn.prototype.encode=function(t,e){return Rn.encode(this._encode(e),t)},zn.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},zn.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)},zn.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},zn.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},zn.prototype._getBeta=function(){return null},zn.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var Wn=he((function(t){"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 r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),qn=Rn.assert;function Fn(t){Un.call(this,"short",t),this.a=new En(t.a,16).toRed(this.red),this.b=new En(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)}Wn(Fn,Un);var Kn=Fn;function Hn(t,e,r,n){Un.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new En(e,16),this.y=new En(r,16),n&&(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 Yn(t,e,r,n){Un.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new En(0)):(this.x=new En(e,16),this.y=new En(r,16),this.z=new En(n,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}function Vn(t){Un.call(this,"mont",t),this.a=new En(t.a,16).toRed(this.red),this.b=new En(t.b,16).toRed(this.red),this.i4=new En(4).toRed(this.red).redInvm(),this.two=new En(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Fn.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new En(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new En(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],qn(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new En(t.a,16),b:new En(t.b,16)}})):this._getEndoBasis(r)}}},Fn.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:En.mont(t),r=new En(2).toRed(e).redInvm(),n=r.redNeg(),i=new En(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},Fn.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,a,s,u,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,l=this.n.clone(),d=new En(1),p=new En(0),b=new En(0),v=new En(1),m=0;0!==h.cmpn(0);){var y=l.div(h);u=l.sub(y.mul(h)),c=b.sub(y.mul(d));var g=v.sub(y.mul(p));if(!n&&u.cmp(f)<0)e=s.neg(),r=d,n=u.neg(),i=c;else if(n&&2==++m)break;s=u,l=h,h=u,b=d,d=c,v=p,p=g}o=u.neg(),a=c;var w=n.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i}
vendor: 13,550 bytes, line 2
2,{a:o,b:a}]},Fn.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},Fn.prototype.pointFromX=function(t,e){(t=new En(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},Fn.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},Fn.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},Wn(Hn,Un.BasePoint),Fn.prototype.point=function(t,e,r){return new Hn(this,t,e,r)},Fn.prototype.pointFromJSON=function(t,e){return Hn.fromJSON(this,t,e)},Hn.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},Hn.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]},Hn.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},Hn.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)+">"},Hn.prototype.isInfinity=function(){return this.inf},Hn.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Hn.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 e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Hn.prototype.getX=function(){return this.x.fromRed()},Hn.prototype.getY=function(){return this.y.fromRed()},Hn.prototype.mul=function(t){return t=new En(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)},Hn.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Hn.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Hn.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Hn.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},Hn.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Wn(Yn,Un.BasePoint),Fn.prototype.jpoint=function(t,e,r){return new Yn(this,t,e,r)},Yn.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},Yn.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Yn.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),h=n.redMul(c),l=u.redSqr().redIAdd(f).redISub(h).redISub(h),d=u.redMul(h.redISub(l)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(l,d,p)},Yn.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),h=s.redSqr().redIAdd(c).redISub(f).redISub(f),l=s.redMul(f.redISub(h)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(h,l,d)},Yn.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(e=0;e<t;e++){var f=o.redSqr(),h=c.redSqr(),l=h.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(h),b=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(b),m=d.redMul(v);m=m.redIAdd(m).redISub(l);var y=c.redMul(s);e+1<t&&(u=u.redMul(l)),o=b,s=y,c=m}return this.curve.jpoint(o,c.redMul(i),s)},Yn.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Yn.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=u,e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(f).redISub(l);d=d.redIAdd(d);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),v=l.redIAdd(l);v=(v=v.redIAdd(v)).redIAdd(v),t=b.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},Yn.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),h=this.y.redSqr(),l=this.x.redMul(h),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var p=l.redIAdd(l),b=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(f);var v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),e=d.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,r)},Yn.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),h=c.redISub(f),l=a.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=s.redMul(h).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,p)},Yn.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=e.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.x.redMul(s).redISub(f);h=(h=h.redIAdd(h)).redIAdd(h);var l=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(h,l,d)},Yn.prototype.mul=function(t,e){return t=new En(t,e),this.curve._wnafMul(this,t)},Yn.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},Yn.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Yn.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)+">"},Yn.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Wn(Vn,Un);var Zn=Vn;function Gn(t,e,r){Un.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new En(e,16),this.z=new En(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Vn.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},Wn(Gn,Un.BasePoint),Vn.prototype.decodePoint=function(t,e){return this.point(Rn.toArray(t,e),1)},Vn.prototype.point=function(t,e){return new Gn(this,t,e)},Vn.prototype.pointFromJSON=function(t){return Gn.fromJSON(this,t)},Gn.prototype.precompute=function(){},Gn.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Gn.fromJSON=function(t,e){return new Gn(t,e[0],e[1]||t.one)},Gn.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)+">"},Gn.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Gn.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},Gn.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Gn.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},Gn.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},Gn.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Gn.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Gn.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},Gn.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Gn.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var Xn=Rn.assert;function Jn(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,Un.call(this,"edwards",t),this.a=new En(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new En(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new En(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Xn(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}Wn(Jn,Un);var Qn=Jn;function $n(t,e,r,n,i){Un.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(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 En(e,16),this.y=new En(r,16),this.z=n?new En(n,16):this.curve.one,this.t=i&&new En(i,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: 7,766 bytes, line 2
2Jn.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},Jn.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},Jn.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},Jn.prototype.pointFromX=function(t,e){(t=new En(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var s=a.fromRed().isOdd();return(e&&!s||!e&&s)&&(a=a.redNeg()),this.point(t,a)},Jn.prototype.pointFromY=function(t,e){(t=new En(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},Jn.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},Wn($n,Un.BasePoint),Jn.prototype.pointFromJSON=function(t){return $n.fromJSON(this,t)},Jn.prototype.point=function(t,e,r,n){return new $n(this,t,e,r,n)},$n.fromJSON=function(t,e){return new $n(t,e[0],e[1],e[2])},$n.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)+">"},$n.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},$n.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),s=n.redSub(e),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),h=a.redMul(o);return this.curve.point(u,c,h,f)},$n.prototype._projDbl=function(){var t,e,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(t=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),e=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),t=a.redSub(s).redISub(u).redMul(o),e=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(t,e,r)},$n.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},$n.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(e),c=o.redMul(a),f=s.redMul(u),h=o.redMul(u),l=a.redMul(s);return this.curve.point(c,f,l,h)},$n.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(f);return this.curve.twisted?(e=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(e=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(h,e,r)},$n.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},$n.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},$n.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},$n.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},$n.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},$n.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},$n.prototype.getX=function(){return this.normalize(),this.x.fromRed()},$n.prototype.getY=function(){return this.normalize(),this.y.fromRed()},$n.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},$n.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},$n.prototype.toP=$n.prototype.normalize,$n.prototype.mixedAdd=$n.prototype.add;var ti=he((function(t,e){var r=e;r.base=Un,r.short=Kn,r.mont=Zn,r.edwards=Qn}));function ei(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function ri(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function ni(t){return 1===t.length?"0"+t:t}function ii(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}var oi={inherits:Wn,toArray:function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];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)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=63&o|128):ei(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},toHex:function(t){for(var e="",r=0;r<t.length;r++)e+=ni(t[r].toString(16));return e},htonl:ri,toHex32:function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=ri(i)),r+=ii(i.toString(16))}return r},zero2:ni,zero8:ii,join32:function(t,e,r,n){var i=r-e;xn(i%4==0);for(var o=new Array(i/4),a=0,s=e;a<o.length;a++,s+=4){var u;u="big"===n?t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]:t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s],o[a]=u>>>0}return o},split32:function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},rotr32:function(t,e){return t>>>e|t<<32-e},rotl32:function(t,e){return t<<e|t>>>32-e},sum32:function(t,e){return t+e>>>0},sum32_3:function(t,e,r){return t+e+r>>>0},sum32_4:function(t,e,r,n){return t+e+r+n>>>0},sum32_5:function(t,e,r,n,i){return t+e+r+n+i>>>0},sum64:function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,a=(o<n?1:0)+r+i;t[e]=a>>>0,t[e+1]=o},sum64_hi:function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},sum64_lo:function(t,e,r,n){return e+n>>>0},sum64_4_hi:function(t,e,r,n,i,o,a,s){var u=0,c=e;return u+=(c=c+n>>>0)<e?1:0,u+=(c=c+o>>>0)<o?1:0,t+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},sum64_4_lo:function(t,e,r,n,i,o,a,s){return e+n+o+s>>>0},sum64_5_hi:function(t,e,r,n,i,o,a,s,u,c){var f=0,h=e;return f+=(h=h+n>>>0)<e?1:0,f+=(h=h+o>>>0)<o?1:0,f+=(h=h+s>>>0)<s?1:0,t+r+i+a+u+(f+=(h=h+c>>>0)<c?1:0)>>>0},sum64_5_lo:function(t,e,r,n,i,o,a,s,u,c){return e+n+o+s+c>>>0},rotr64_hi:function(t,e,r){return(e<<32-r|t>>>r)>>>0},rotr64_lo:function(t,e,r){return(t<<32-r|e>>
vendor: 12,911 bytes, line 2
2>r)>>>0},shr64_hi:function(t,e,r){return t>>>r},shr64_lo:function(t,e,r){return(t<<32-r|e>>>r)>>>0}};function ai(){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}var si=ai;ai.prototype.update=function(t,e){if(t=oi.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=oi.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},ai.prototype.digest=function(t){return this.update(this._pad()),xn(null===this.pending),this._digest(t)},ai.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n};var ui={BlockHash:si},ci=oi.rotr32;function fi(t,e,r){return t&e^~t&r}function hi(t,e,r){return t&e^t&r^e&r}function li(t,e,r){return t^e^r}var di={ft_1:function(t,e,r,n){return 0===t?fi(e,r,n):1===t||3===t?li(e,r,n):2===t?hi(e,r,n):void 0},ch32:fi,maj32:hi,p32:li,s0_256:function(t){return ci(t,2)^ci(t,13)^ci(t,22)},s1_256:function(t){return ci(t,6)^ci(t,11)^ci(t,25)},g0_256:function(t){return ci(t,7)^ci(t,18)^t>>>3},g1_256:function(t){return ci(t,17)^ci(t,19)^t>>>10}},pi=oi.rotl32,bi=oi.sum32,vi=oi.sum32_5,mi=di.ft_1,yi=ui.BlockHash,gi=[1518500249,1859775393,2400959708,3395469782];function wi(){if(!(this instanceof wi))return new wi;yi.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}oi.inherits(wi,yi);var _i=wi;wi.blockSize=512,wi.outSize=160,wi.hmacStrength=80,wi.padLength=64,wi.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=pi(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4];for(n=0;n<r.length;n++){var c=~~(n/20),f=vi(pi(i,5),mi(c,o,a,s),u,r[n],gi[c]);u=s,s=a,a=pi(o,30),o=i,i=f}this.h[0]=bi(this.h[0],i),this.h[1]=bi(this.h[1],o),this.h[2]=bi(this.h[2],a),this.h[3]=bi(this.h[3],s),this.h[4]=bi(this.h[4],u)},wi.prototype._digest=function(t){return"hex"===t?oi.toHex32(this.h,"big"):oi.split32(this.h,"big")};var ki=oi.sum32,Mi=oi.sum32_4,Si=oi.sum32_5,Ei=di.ch32,xi=di.maj32,Ai=di.s0_256,Oi=di.s1_256,ji=di.g0_256,Ri=di.g1_256,Ii=ui.BlockHash,Pi=[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 Ti(){if(!(this instanceof Ti))return new Ti;Ii.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Pi,this.W=new Array(64)}oi.inherits(Ti,Ii);var Ci=Ti;function Bi(){if(!(this instanceof Bi))return new Bi;Ci.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Ti.blockSize=512,Ti.outSize=256,Ti.hmacStrength=192,Ti.padLength=64,Ti.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=Mi(Ri(r[n-2]),r[n-7],ji(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],f=this.h[6],h=this.h[7];for(xn(this.k.length===r.length),n=0;n<r.length;n++){var l=Si(h,Oi(u),Ei(u,c,f),this.k[n],r[n]),d=ki(Ai(i),xi(i,o,a));h=f,f=c,c=u,u=ki(s,l),s=a,a=o,o=i,i=ki(l,d)}this.h[0]=ki(this.h[0],i),this.h[1]=ki(this.h[1],o),this.h[2]=ki(this.h[2],a),this.h[3]=ki(this.h[3],s),this.h[4]=ki(this.h[4],u),this.h[5]=ki(this.h[5],c),this.h[6]=ki(this.h[6],f),this.h[7]=ki(this.h[7],h)},Ti.prototype._digest=function(t){return"hex"===t?oi.toHex32(this.h,"big"):oi.split32(this.h,"big")},oi.inherits(Bi,Ci);var Li=Bi;Bi.blockSize=512,Bi.outSize=224,Bi.hmacStrength=192,Bi.padLength=64,Bi.prototype._digest=function(t){return"hex"===t?oi.toHex32(this.h.slice(0,7),"big"):oi.split32(this.h.slice(0,7),"big")};var Ni=oi.rotr64_hi,Di=oi.rotr64_lo,Ui=oi.shr64_hi,zi=oi.shr64_lo,Wi=oi.sum64,qi=oi.sum64_hi,Fi=oi.sum64_lo,Ki=oi.sum64_4_hi,Hi=oi.sum64_4_lo,Yi=oi.sum64_5_hi,Vi=oi.sum64_5_lo,Zi=ui.BlockHash,Gi=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Xi(){if(!(this instanceof Xi))return new Xi;Zi.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Gi,this.W=new Array(160)}oi.inherits(Xi,Zi);var Ji=Xi;function Qi(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function $i(t,e,r,n,i,o){var a=e&n^~e&o;return a<0&&(a+=4294967296),a}function to(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function eo(t,e,r,n,i,o){var a=e&n^e&o^n&o;return a<0&&(a+=4294967296),a}function ro(t,e){var r=Ni(t,e,28)^Ni(e,t,2)^Ni(e,t,7);return r<0&&(r+=4294967296),r}function no(t,e){var r=Di(t,e,28)^Di(e,t,2)^Di(e,t,7);return r<0&&(r+=4294967296),r}function io(t,e){var r=Ni(t,e,14)^Ni(t,e,18)^Ni(e,t,9);return r<0&&(r+=4294967296),r}function oo(t,e){var r=Di(t,e,14)^Di(t,e,18)^Di(e,t,9);return r<0&&(r+=4294967296),r}function ao(t,e){var r=Ni(t,e,1)^Ni(t,e,8)^Ui(t,e,7);return r<0&&(r+=4294967296),r}function so(t,e){var r=Di(t,e,1)^Di(t,e,8)^zi(t,e,7);return r<0&&(r+=4294967296),r}function uo(t,e){var r=Ni(t,e,19)^Ni(e,t,29)^Ui(t,e,6);return r<0&&(r+=4294967296),r}function co(t,e){var r=Di(t,e,19)^Di(e,t,29)^zi(t,e,6);return r<0&&(r+=4294967296),r}function fo(){if(!(this instanceof fo))return new fo;Ji.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Xi.blockSize=1024,Xi.outSize=512,Xi.hmacStrength=192,Xi.padLength=128,Xi.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=uo(r[n-4],r[n-3]),o=co(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=ao(r[n-30],r[n-29]),c=so(r[n-30],r[n-29]),f=r[n-32],h=r[n-31];r[n]=Ki(i,o,a,s,u,c,f,h),r[n+1]=Hi(i,o,a,s,u,c,f,h)}},Xi.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],s=this.h[4],u=this.h[5],c=this.h[6],f=this.h[7],h=this.h[8],l=this.h[9],d=this.h[10],p=this.h[11],b=this.h[12],v=this.h[13],m=this.h[14],y=this.h[15];xn(this.k.length===r.length);for(var g=0;g<r.length;g+=2){var w=m,_=y,k=io(h,l),M=oo(h,l),S=Qi(h,l,d,p,b),E=$i(h,l,d,p,b,v),x=this.k[g],A=this.k[g+1],O=r[g],j=r[g+1],R=Yi(w,_,k,M,S,E,x,A,O,j),I=Vi(w,_,k,M,S,E,x,A,O,j);w=ro(n,i),_=no(n,i),k=to(n,i,o,a,s),M=eo(n,i,o,a,s,u);var P=qi(w,_,k,M),T=Fi(w,_,k,M);m=b,y=v,b=d,v=p,d=h,p=l,h=qi(c,f,R,I),l=Fi(f,f,R,I),c=s,f=u,s=o,u=a,o=n,a=i,n=qi(R,I,P,T),i=Fi(R,I,P,T)}Wi(this.h,0,n,i),Wi(this.h,2,o,a),Wi(this.h,4,s,u),Wi(this.h,6,c,f),Wi(this.h,8,h,l),Wi(this.h,10,d,p),Wi(this.h,12,b,v),Wi(this.h,14,m,y)},Xi.prototype._digest=function(t){return"hex"===t?oi.toHex32(this.h,"big"):oi.split32(this.h,"big")},oi.inherits(fo,Ji);var ho=fo;fo.blockSize=1024,fo.outSize=384,fo.hmacStrength=192,fo.padLength=128,fo.prototype._digest=function(t){return"hex"===t?oi.toHex32(this.h.slice(0,12),"big"):oi.split32(this.h.slice(0,12),"big")};var lo={sha1:_i,sha224:Li,sha256:Ci,sha384:ho,sha512:Ji},po=oi.rotl32,bo=oi.sum32,vo=oi.sum32_3,mo=oi.sum32_4,yo=ui.BlockHash;function go(){if(!(this instanceof go))return new go;yo.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}oi.inherits(go,yo);var wo=go;function _o(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function ko(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function Mo(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}go.blockSize=512,go.outSize=160,go.hmacStrength=192,go.padLength=64,go.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],o=this.h[3],a=this.h[4],s=r,u=n,c=i,f=o,h=a,l=0;l<80;l++){var d=bo(po(mo(r,_o(l,n,i,o),t[So[l]+e],ko(l)),xo[l]),a);r=a,a=o,o=po(i,10),i=n,n=d,d=bo(po(mo(s,_o(79-l,u,c,f),t[Eo[l]+e],Mo(l)),Ao[l]),h),s=h,h=f,f=po(c,10),c=u,u=d}d=vo(this.h[1],i,f),this.h[1]=vo(this.h[2],o,h),this.h[2]=vo(this.h[3],a,s),this.h[3]=vo(this.h[4],r,u),this.h[4]=vo(this.h[0],n,c),this.h[0]=d},go.prototype._digest=function(t){return"hex"===t?oi.toHex32(this.h,"little"):oi.split32(this.h,"little")};var So=[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],Eo=[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],xo=[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],Ao=[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],Oo={ripemd160:wo};function jo(t,e,r){if(!(this instanceof jo))return new jo(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(oi.toArray(e,r))}var Ro=jo;jo.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),xn(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},jo.prototype.update=function(t,e){return this.inner.update(t,e),this},jo.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};var Io=he((function(t,e){var r=e;r.utils=oi,r.common=ui,r.sha=lo,r.ripemd=Oo,r.hmac=Ro,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})),Po
vendor: 26,127 bytes, line 2
2={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: 9,509 bytes, line 2
2,To=he((function(t,e){var r,n=e,i=Rn.assert;function o(t){"short"===t.type?this.curve=new ti.short(t):"edwards"===t.type?this.curve=new ti.edwards(t):this.curve=new ti.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,a("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:Io.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("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:Io.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("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:Io.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("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:Io.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"]}),a("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:Io.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"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Io.sha256,gRed:!1,g:["9"]}),a("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:Io.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=Po}catch(t){r=void 0}a("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:Io.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Co(t){if(!(this instanceof Co))return new Co(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=jn.toArray(t.entropy,t.entropyEnc||"hex"),r=jn.toArray(t.nonce,t.nonceEnc||"hex"),n=jn.toArray(t.pers,t.persEnc||"hex");xn(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var Bo=Co;Co.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);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(n),this._reseed=1,this.reseedInterval=281474976710656},Co.prototype._hmac=function(){return new Io.hmac(this.hash,this.K)},Co.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([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},Co.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=jn.toArray(t,e),r=jn.toArray(r,n),xn(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},Co.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=jn.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,t);return this._update(r),this._reseed++,jn.encode(o,e)};var Lo=Rn.assert;function No(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)}var Do=No;No.fromPublic=function(t,e,r){return e instanceof No?e:new No(t,{pub:e,pubEnc:r})},No.fromPrivate=function(t,e,r){return e instanceof No?e:new No(t,{priv:e,privEnc:r})},No.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"}},No.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},No.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},No.prototype._importPrivate=function(t,e){this.priv=new En(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},No.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?Lo(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||Lo(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)},No.prototype.derive=function(t){return t.validate()||Lo(t.validate(),"public point not validated"),t.mul(this.priv).getX()},No.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},No.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},No.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Uo=Rn.assert;function zo(t,e){if(t instanceof zo)return t;this._importDER(t,e)||(Uo(t.r&&t.s,"Signature without r or s"),this.r=new En(t.r,16),this.s=new En(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Wo=zo;function qo(){this.place=0}function Fo(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function Ko(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function Ho(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}zo.prototype._importDER=function(t,e){t=Rn.toArray(t,e);var r=new qo;if(48!==t[r.place++])return!1;var n=Fo(t,r);if(!1===n)return!1;if(n+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var i=Fo(t,r);if(!1===i)return!1;var o=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var a=Fo(t,r);if(!1===a)return!1;if(t.length!==a+r.place)return!1;var s=t.slice(r.place,a+r.place);
vendor: 4,894 bytes, line 2
2if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new En(o),this.s=new En(s),this.recoveryParam=null,!0},zo.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=Ko(e),r=Ko(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];Ho(n,e.length),(n=n.concat(e)).push(2),Ho(n,r.length);var i=n.concat(r),o=[48];return Ho(o,i.length),o=o.concat(i),Rn.encode(o,t)};var Yo=Rn.assert;function Vo(t){if(!(this instanceof Vo))return new Vo(t);"string"==typeof t&&(Yo(Object.prototype.hasOwnProperty.call(To,t),"Unknown curve "+t),t=To[t]),t instanceof To.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}var Zo=Vo;Vo.prototype.keyPair=function(t){return new Do(this,t)},Vo.prototype.keyFromPrivate=function(t,e){return Do.fromPrivate(this,t,e)},Vo.prototype.keyFromPublic=function(t,e){return Do.fromPublic(this,t,e)},Vo.prototype.genKeyPair=function(t){t||(t={});for(var e=new Bo({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||In(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new En(2));;){var i=new En(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},Vo.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},Vo.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new En(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.toArray("be",i),s=new Bo({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new En(1)),c=0;;c++){var f=n.k?n.k(c):new En(s.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(u)>=0)){var h=this.g.mul(f);if(!h.isInfinity()){var l=h.getX(),d=l.umod(this.n);if(0!==d.cmpn(0)){var p=f.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var b=(h.getY().isOdd()?1:0)|(0!==l.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),b^=1),new Wo({r:d,s:p,recoveryParam:b})}}}}}},Vo.prototype.verify=function(t,e,r,n){t=this._truncateToN(new En(t,16)),r=this.keyFromPublic(r,n);var i=(e=new Wo(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,r.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,r.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},Vo.prototype.recoverPubKey=function(t,e,r,n){Yo((3&r)===r,"The recovery param is more than two bits"),e=new Wo(e,n);var i=this.n,o=new En(t),a=e.r,s=e.s,u=1&r,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var f=e.r.invm(i),h=i.sub(o).mul(f).umod(i),l=s.mul(f).umod(i);return this.g.mulAdd(h,a,l)},Vo.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new Wo(e,n)).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(r))return i}throw new Error("Unable to find valid recovery factor")};var Go=Rn.assert,Xo=Rn.parseBytes,Jo=Rn.cachedProperty;function Qo(t,e){this.eddsa=t,this._secret=Xo(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=Xo(e.pub)}Qo.fromPublic=function(t,e){return e instanceof Qo?e:new Qo(t,{pub:e})},Qo.fromSecret=function(t,e){return e instanceof Qo?e:new Qo(t,{secret:e})},Qo.prototype.secret=function(){return this._secret},Jo(Qo,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),Jo(Qo,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),Jo(Qo,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),Jo(Qo,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),Jo(Qo,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),Jo(Qo,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),Qo.prototype.sign=function(t){return Go(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},Qo.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},Qo.prototype.getSecret=function(t){return Go(this._secret,"KeyPair is public only"),Rn.encode(this.secret(),t)},Qo.prototype.getPublic=function(t){return Rn.encode(this.pubBytes(),t)};
2var $o=Qo,ta=Rn.assert,ea=Rn.cachedProperty,ra=Rn.parseBytes;function na(t,e){this.eddsa=t,"object"!=typeof e&&(e=ra(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),ta(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof En&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}ea(na,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),ea(na,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),ea(na,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),ea(na,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),na.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},na.prototype.toHex=function(){return Rn.encode(this.toBytes(),"hex").toUpperCase()};var ia=na,oa=Rn.assert,aa=Rn.parseBytes;function sa(t){if(oa("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof sa))return new sa(t);t=To[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=Io.sha512}var ua=sa;sa.prototype.sign=function(t,e){t=aa(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},sa.prototype.verify=function(t,e,r){t=aa(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},sa.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return Rn.intFromLE(t.digest()).umod(this.curve.n)},sa.prototype.keyFromPublic=function(t){return $o.fromPublic(this,t)},sa.prototype.keyFromSecret=function(t){return $o.fromSecret(this,t)},sa.prototype.makeSignature=function(t){return t instanceof ia?t:new ia(this,t)},sa.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},sa.prototype.decodePoint=function(t){var e=(t=Rn.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),i=Rn.intFromLE(r);return this.curve.pointFromY(i,n)},sa.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},sa.prototype.decodeInt=function(t){return Rn.intFromLE(t)},sa.prototype.isPoint=function(t){return t instanceof this.pointClass};var ca=le(Sn),fa=new(0,he((function(t,e){var r=e;r.version=ca.version,r.utils=Rn,r.rand=In,r.curve=ti,r.curves=To,r.ec=Zo,r.eddsa=ua})).ec)("secp256k1"),ha=fa.curve,la=ha.n.constructor;function da(t){var e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:function(t,e){var r=new la(e);if(r.cmp(ha.p)>=0)return null;var n=(r=r.toRed(ha.red)).redSqr().redIMul(r).redIAdd(ha.b).redSqrt();return 3===t!==n.isOdd()&&(n=n.redNeg()),fa.keyPair({pub:{x:r,y:n}})}(e,t.subarray(1,33));case 4:case 6:case 7:return 65!==t.length?null:function(t,e,r){var n=new la(e),i=new la(r);if(n.cmp(ha.p)>=0||i.cmp(ha.p)>=0)return null;if(n=n.toRed(ha.red),i=i.toRed(ha.red),(6===t||7===t)&&i.isOdd()!==(7===t))return null;var o=n.redSqr().redIMul(n);return i.redSqr().redISub(o.redIAdd(ha.b)).isZero()?fa.keyPair({pub:{x:n,y:i}}):null}(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function pa(t,e){for(var r=e.encode(null,33===t.length),n=0;n<t.length;++n)t[n]=r[n]}var ba=function(t){return{contextRandomize:function(e){switch(on(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&an("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(Gr)}},privateKeyVerify:function(e){return an("private key",e,32),0===t.privateKeyVerify(e)},privateKeyNegate:function(e){switch(an("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(Yr)}},privateKeyTweakAdd:function(e,r){switch(an("private key",e,32),an("tweak",r,32),t.privateKeyTweakAdd(e,r)){case 0:return e;case 1:throw new Error(Vr)}},privateKeyTweakMul:function(e,r){switch(an("private key",e,32),an("tweak",r,32),t.privateKeyTweakMul(e,r)){case 0:return e;case 1:throw new Error(Zr)}},publicKeyVerify:function(e){return an("public key",e,[33,65]),0===t.publicKeyVerify(e)},publicKeyCreate:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(an("private key",e,32),sn(r),n=un(n,r?33:65),t.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(Xr);case 2:throw new Error(Qr)}},publicKeyConvert:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(an("public key",e,[33,65]),sn(r),n=un(n,r?33:65),t.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(Jr);case 2:throw new Error(Qr)}},publicKeyNegate:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(an("public key",e,[33,65]),sn(r),n=un(n,r?33:65),t.publicKeyNegate(n,e)){case 0:return n;case 1:throw new Error(Jr);case 2:throw new Error(Yr);case 3:throw new Error(Qr)}},publicKeyCombine:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;on(Array.isArray(e),"Expected public keys to be an Array"),on(e.length>0,"Expected public keys array will have more than zero items");var i,o=f(e);try{for(o.s();!(i=o.n()).done;)an("public key",i.value,[33,65])}catch(a){o.e(a)}finally{o.f()}switch(sn(r),n=un(n,r?33:65),t.publicKeyCombine(n,e)){case 0:return n;case 1:throw new Error(Jr);case 2:throw new Error($r);case 3:throw new Error(Qr)}},publicKeyTweakAdd:function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(an("public key",e,[33,65]),an("tweak",r,32),sn(n),i=un(i,n?33:65),t.publicKeyTweakAdd(i,e,r)){case 0:return i;case 1:throw new Error(Jr);case 2:throw new Error(Vr)}},publicKeyTweakMul:function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(an("public key",e,[33,65]),an("tweak",r,32),sn(n),i=un(i,n?33:65),t.publicKeyTweakMul(i,e,r)){case 0:return i;case 1:throw new Error(Jr);case 2:throw new Error(Zr)}},signatureNormalize:function(e){switch(an("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(tn)}},signatureExport:function(e,r){an("signature",e,64);var n={output:r=un(r,72),outputlen:72};switch(t.signatureExport(n,e)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(tn);case 2:throw new Error(Yr)}},signatureImport:function(e,r){switch(an("signature",e),r=un(r,64),t.signatureImport(r,e)){case 0:return r;case 1:throw new Error(tn);case 2:throw new Error(Yr)}},ecdsaSign:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;an("message",e,32),an("private key",r,32),on("Object"===cn(n),"Expected options to be an Object"),void 0!==n.data&&an("options.data",n.data),void 0!==n.noncefn&&on("Function"===cn(n.noncefn),"Expected options.noncefn to be a Function");var o={signature:i=un(i,64),recid:null};switch(t.ecdsaSign(o,e,r,n.data,n.noncefn)){case 0:return o;case 1:throw new Error(en);case 2:throw new Error(Yr)}},ecdsaVerify:function(e,r,n){switch(an("signature",e,64),an("message",r,32),an("public key",n,[33,65]),t.ecdsaVerify(e,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(tn);case 2:throw new Error(Jr)}},ecdsaRecover:function(e,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;switch(an("signature",e,64),on("Number"===cn(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),an("message",n,32),sn(i),o=un(o,i?33:65),t.ecdsaRecover(o,e,r,n)){case 0:return o;case 1:throw new Error(tn);case 2:throw new Error(rn);case 3:throw new Error(Yr)}},ecdh:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;switch(an("public key",e,[33,65]),an("private key",r,32),on("Object"===cn(n),"Expected options to be an Object"),void 0!==n.data&&an("options.data",n.data),void 0!==n.hashfn?(on("Function"===cn(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&an("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&an("options.ybuf",n.ybuf,32),an("output",i)):i=un(i,32),t.ecdh(i,e,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(Jr);case 2:throw new Error(nn)}}}}({contextRandomize:function(){return 0},privateKeyVerify:function(t){var e=new la(t);return e.cmp(ha.n)<0&&!e.isZero()?0:1},privateKeyNegate:function(t){var e=new la(t),r=ha.n.sub(e).umod(ha.n).toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakAdd:function(t,e){var r=new la(e);if(r.cmp(ha.n)>=0)return 1;if(r.iadd(new la(t)),r.cmp(ha.n)>=0&&r.isub(ha.n),r.isZero())return 1;var n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakMul:function(t,e){var r=new la(e);if(r.cmp(ha.n)>=0||r.isZero())return 1;r.imul(new la(t)),r.cmp(ha.n)>=0&&(r=r.umod(ha.n));var n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},publicKeyVerify:function(t){return null===da(t)?1:0},publicKeyCreate:function(t,e){var r=new la(e);return r.cmp(ha.n)>=0||r.isZero()?1:(pa(t,fa.keyFromPrivate(e).getPublic()),0)},publicKeyConvert:function(t,e){var r=da(e);return null===r?1:(pa(t,r.getPublic()),0)},publicKeyNegate:function(t,e){var r=da(e);if(null===r)return 1;var n=r.getPublic();return n.y=n.y.redNeg(),pa(t,n),0},publicKeyCombine:function(t,e){for(var r=new Array(e.length),n=0;n<e.length;++n)if(r[n]=da(e[n]),null===r[n])return 1;for(var i=r[0].getPublic(),o=1;o<r.length;++o)i=i.add(r[o].pub);return i.isInfinity()?2:(pa(t,i),0)},publicKeyTweakAdd:function(t,e,r){var n=da(e);if(null===n)return 1;
2if((r=new la(r)).cmp(ha.n)>=0)return 2;var i=n.getPublic().add(ha.g.mul(r));return i.isInfinity()?2:(pa(t,i),0)},publicKeyTweakMul:function(t,e,r){var n=da(e);return null===n?1:(r=new la(r)).cmp(ha.n)>=0||r.isZero()?2:(pa(t,n.getPublic().mul(r)),0)},signatureNormalize:function(t){var e=new la(t.subarray(0,32)),r=new la(t.subarray(32,64));return e.cmp(ha.n)>=0||r.cmp(ha.n)>=0?1:(1===r.cmp(fa.nh)&&t.set(ha.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(t,e){var r=e.subarray(0,32),n=e.subarray(32,64);if(new la(r).cmp(ha.n)>=0)return 1;if(new la(n).cmp(ha.n)>=0)return 1;var i=t.output,o=i.subarray(4,37);o[0]=0,o.set(r,1);for(var a=33,s=0;a>1&&0===o[s]&&!(128&o[s+1]);--a,++s);if(128&(o=o.subarray(s))[0])return 1;if(a>1&&0===o[0]&&!(128&o[1]))return 1;var u=i.subarray(39,72);u[0]=0,u.set(n,1);for(var c=33,f=0;c>1&&0===u[f]&&!(128&u[f+1]);--c,++f);return 128&(u=u.subarray(f))[0]||c>1&&0===u[0]&&!(128&u[1])?1:(t.outputlen=6+a+c,i[0]=48,i[1]=t.outputlen-2,i[2]=2,i[3]=o.length,i.set(o,4),i[4+a]=2,i[5+a]=u.length,i.set(u,6+a),0)},signatureImport:function(t,e){if(e.length<8)return 1;if(e.length>72)return 1;if(48!==e[0])return 1;if(e[1]!==e.length-2)return 1;if(2!==e[2])return 1;var r=e[3];if(0===r)return 1;if(5+r>=e.length)return 1;if(2!==e[4+r])return 1;var n=e[5+r];if(0===n)return 1;if(6+r+n!==e.length)return 1;if(128&e[4])return 1;if(r>1&&0===e[4]&&!(128&e[5]))return 1;if(128&e[r+6])return 1;if(n>1&&0===e[r+6]&&!(128&e[r+7]))return 1;var i=e.subarray(4,4+r);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;var o=e.subarray(6+r);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw new Error("S length is too long");var a=new la(i);a.cmp(ha.n)>=0&&(a=new la(0));var s=new la(e.subarray(6+r));return s.cmp(ha.n)>=0&&(s=new la(0)),t.set(a.toArrayLike(Uint8Array,"be",32),0),t.set(s.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(t,e,r,n,i){if(i){var o=i;i=function(t){var i=o(e,r,null,n,t);if(!(i instanceof Uint8Array&&32===i.length))throw new Error("This is the way");return new la(i)}}var a,s=new la(r);if(s.cmp(ha.n)>=0||s.isZero())return 1;try{a=fa.sign(e,r,{canonical:!0,k:i,pers:n})}catch(t){return 1}return t.signature.set(a.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(a.s.toArrayLike(Uint8Array,"be",32),32),t.recid=a.recoveryParam,0},ecdsaVerify:function(t,e,r){var n={r:t.subarray(0,32),s:t.subarray(32,64)},i=new la(n.r),o=new la(n.s);if(i.cmp(ha.n)>=0||o.cmp(ha.n)>=0)return 1;if(1===o.cmp(fa.nh)||i.isZero()||o.isZero())return 3;var a=da(r);if(null===a)return 2;var s=a.getPublic();return fa.verify(e,n,s)?0:3},ecdsaRecover:function(t,e,r,n){var i,o={r:e.slice(0,32),s:e.slice(32,64)},a=new la(o.r),s=new la(o.s);if(a.cmp(ha.n)>=0||s.cmp(ha.n)>=0)return 1;if(a.isZero()||s.isZero())return 2;try{i=fa.recoverPubKey(n,o,r)}catch(t){return 2}return pa(t,i),0},ecdh:function(t,e,r,n,i,o,a){var s=da(e);if(null===s)return 1;var u=new la(r);if(u.cmp(ha.n)>=0||u.isZero())return 2;var c=s.getPublic().mul(u);if(void 0===i)for(var f=c.encode(null,!0),h=fa.hash().update(f).digest(),l=0;l<32;++l)t[l]=h[l];else{o||(o=new Uint8Array(32));for(var d=c.getX().toArray("be",32),p=0;p<32;++p)o[p]=d[p];a||(a=new Uint8Array(32));for(var b=c.getY().toArray("be",32),v=0;v<32;++v)a[v]=b[v];var m=i(o,a,n);if(!(m instanceof Uint8Array&&m.length===t.length))return 2;t.set(m)}return 0}}),va=he((function(t){!function(){var e="input is invalid type",r="object"==typeof window,n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof F&&F.versions&&F.versions.node?n=ce:i&&(n=self);var o=!n.JS_SHA3_NO_COMMON_JS&&t.exports,a=!n.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,s="0123456789abcdef".split(""),u=[4,1024,262144,67108864],c=[0,8,16,24],f=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],h=[224,256,384,512],l=[128,256],d=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};!n.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!a||!n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var b=function(t,e,r){return function(n){return new R(t,e,t).update(n)[r]()}},v=function(t,e,r){return function(n,i){return new R(t,e,i).update(n)[r]()}},m=function(t,e,r){return function(e,n,i,o){return k["cshake"+t].update(e,n,i,o)[r]()}},y=function(t,e,r){return function(e,n,i,o){return k["kmac"+t].update(e,n,i,o)[r]()}},g=function(t,e,r,n){for(var i=0;i<d.length;++i){var o=d[i];t[o]=e(r,n,o)}return t},w=function(t,e){var r=b(t,e,"hex");return r.create=function(){return new R(t,e,t)},r.update=function(t){return r.create().update(t)},g(r,b,t,e)},_=[{name:"keccak",padding:[1,256,65536,16777216],bits:h,createMethod:w},{name:"sha3",padding:[6,1536,393216,100663296],bits:h,createMethod:w},{name:"shake",padding:[31,7936,2031616,520093696],bits:l,createMethod:function(t,e){var r=v(t,e,"hex");return r.create=function(r){return new R(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},g(r,v,t,e)}},{name:"cshake",padding:u,bits:l,createMethod:function(t,e){var r=p[t],n=m(t,0,"hex");return n.create=function(n,i,o){return i||o?new R(t,e,n).bytepad([i,o],r):k["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},g(n,m,t,e)}},{name:"kmac",padding:u,bits:l,createMethod:function(t,e){var r=p[t],n=y(t,0,"hex");return n.create=function(n,i,o){return new I(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},g(n,y,t,e)}}],k={},M=[],S=0;S<_.length;++S)for(var E=_[S],x=E.bits,A=0;A<x.length;++A){var O=E.name+"_"+x[A];if(M.push(O),k[O]=E.createMethod(x[A],E.padding),"sha3"!==E.name){var j=E.name+x[A];M.push(j),k[j]=k[O]}}function R(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function I(t,e,r){R.call(this,t,e,r)}R.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);
vendor: 1,231 bytes, line 2
2if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,o,s=this.blocks,u=this.byteCount,f=t.length,h=this.blockCount,l=0,d=this.s;l<f;){if(this.reset)for(this.reset=!1,s[0]=this.block,i=1;i<h+1;++i)s[i]=0;if(r)for(i=this.start;l<f&&i<u;++l)s[i>>2]|=t[l]<<c[3&i++];else for(i=this.start;l<f&&i<u;++l)(o=t.charCodeAt(l))<128?s[i>>2]|=o<<c[3&i++]:o<2048?(s[i>>2]|=(192|o>>6)<<c[3&i++],s[i>>2]|=(128|63&o)<<c[3&i++]):o<55296||o>=57344?(s[i>>2]|=(224|o>>12)<<c[3&i++],s[i>>2]|=(128|o>>6&63)<<c[3&i++],s[i>>2]|=(128|63&o)<<c[3&i++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++l)),s[i>>2]|=(240|o>>18)<<c[3&i++],s[i>>2]|=(128|o>>12&63)<<c[3&i++],s[i>>2]|=(128|o>>6&63)<<c[3&i++],s[i>>2]|=(128|63&o)<<c[3&i++]);if(this.lastByteIndex=i,i>=u){for(this.start=i-u,this.block=s[h],i=0;i<h;++i)d[i]^=s[i];P(d),this.reset=!0}else this.start=i}return this},R.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},R.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);
2if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}var i=0,o=t.length;if(r)i=o;else for(var s=0;s<t.length;++s){var u=t.charCodeAt(s);u<128?i+=1:u<2048?i+=2:u<55296||u>=57344?i+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(t),i},R.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,o=[];return o.length=i,this.update(o),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];P(n)}},R.prototype.toString=R.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,u="";a<n;){for(o=0;o<e&&a<n;++o,++a)t=r[o],u+=s[t>>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%e==0&&(P(r),o=0)}return i&&(t=r[o],u+=s[t>>4&15]+s[15&t],i>1&&(u+=s[t>>12&15]+s[t>>8&15]),i>2&&(u+=s[t>>20&15]+s[t>>16&15])),u},R.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a<n;){for(o=0;o<e&&a<n;++o,++a)u[a]=r[o];a%e==0&&P(r)}return i&&(u[o]=r[o],t=t.slice(0,s)),t},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.digest=R.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)t=s<<2,e=n[a],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r==0&&P(n)}return o&&(t=s<<2,e=n[a],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},I.prototype=new R,I.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var P=function(t){var e,r,n,i,o,a,s,u,c,h,l,d,p,b,v,m,y,g,w,_,k,M,S,E,x,A,O,j,R,I,P,T,C,B,L,N,D,U,z,W,q,F,K,H,Y,V,Z,G,X,J,Q,$,tt,et,rt,nt,it,ot,at,st,ut,ct,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(h<<1|l>>>31),r=s^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(d<<1|p>>>31),r=c^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,b=t[0],v=t[1],V=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,R=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,F=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,m=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,G=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,I=t[33]<<13|t[32]>>>19,P=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,E=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,k=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,H=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,W=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,M=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=b^~m&g,t[1]=v^~y&w,t[10]=E^~A&j,t[11]=x^~O&R,t[20]=B^~N&U,t[21]=L^~D&z,t[30]=H^~V&G,t[31]=Y^~Z&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=m^~g&_,t[3]=y^~w&k,t[12]=A^~j&I,t[13]=O^~R&P,t[22]=N^~U&W,t[23]=D^~z&q,t[32]=V^~G&J,t[33]=Z^~X&Q,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~_&M,t[5]=w^~k&S,t[14]=j^~I&T,t[15]=R^~P&C,t[24]=U^~W&F,t[25]=z^~q&K,t[34]=G^~J&$,t[35]=X^~Q&tt,t[44]=ot^~st&ct,t[45]=at^~ut&ft,t[6]=_^~M&b,t[7]=k^~S&v,t[16]=I^~T&E,t[17]=P^~C&x,t[26]=W^~F&B,t[27]=q^~K&L,t[36]=J^~$&H,t[37]=Q^~tt&Y,t[46]=st^~ct&et,t[47]=ut^~ft&rt,t[8]=M^~b&m,t[9]=S^~v&y,t[18]=T^~E&A,t[19]=C^~x&O,t[28]=F^~B&N,t[29]=K^~L&D,t[38]=$^~H&V,t[39]=tt^~Y&Z,t[48]=ct^~et&nt,t[49]=ft^~rt&it,t[0]^=f[n],t[1]^=f[n+1]};if(o)t.exports=k;else for(S=0;S<M.length;++S)n[M[S]]=k[M[S]]}()})).keccak_256,ma=function(t){return Mt.isBuffer(t)?t:t instanceof Uint8Array?Mt.from(t.buffer,t.byteOffset,t.byteLength):Mt.from(t)},ya=new Map,ga=function(t){d(r,t);var e=p(r);function r(t){var i;if(m(this,r),i=e.call(this,{}),de(s(i),"_bn",void 0),function(t){return void 0!==t._bn}(t))i._bn=t._bn;else{if("string"==typeof t){var o=we.decode(t);if(32!=o.length)throw new Error("Invalid public key input");i._bn=new ve(o)}else i._bn=new ve(t);if(i._bn.byteLength()>32)throw new Error("Invalid public key input")}return n(i)}return y(r,[{key:"equals",value:function(t){return this._bn.eq(t._bn)}},{key:"toBase58",value:function(){return we.encode(this.toBytes())}},{key:"toBytes",value:function(){return this.toBuffer()}},{key:"toBuffer",value:function(){var t=this._bn.toArrayLike(Mt);if(32===t.length)return t;var e=Mt.alloc(32);return t.copy(e,32-t.length),e}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"createWithSeed",value:function(){var t=v(b.mark((function t(e,n,i){var o,a;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Mt.concat([e.toBuffer(),Mt.from(n),i.toBuffer()]),t.next=3,ke(new Uint8Array(o));case 3:return a=t.sent,t.abrupt("return",new r(Mt.from(a,"hex")));case 5:case"end":return t.stop()}}),t)})));function e(e,r,n){return t.apply(this,arguments)}return e}()},{key:"createProgramAddress",value:function(){var t=v(b.mark((function t(e,n){var i,o,a;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Mt.alloc(0),e.forEach((function(t){if(t.length>32)throw new TypeError("Max seed length exceeded");i=Mt.concat([i,ma(t)])})),i=Mt.concat([i,n.toBuffer(),Mt.from("ProgramDerivedAddress")]),t.next=4,ke(new Uint8Array(i));case 4:if(o=t.sent,!_a(a=new ve(o,16).toArray(void 0,32))){t.next=8;break}throw new Error("Invalid seeds, address must fall off the curve");case 8:return t.abrupt("return",new r(a));case 9:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"findProgramAddress",value:function(){var t=v(b.mark((function t(e,r){var n,i,o;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=255;case 1:if(0==i){t.next=18;break}return t.prev=2,o=e.concat(Mt.from([i])),t.next=6,this.createProgramAddress(o,r);case 6:n=t.sent,t.next=15;break;case 9:if(t.prev=9,t.t0=t.catch(2),!(t.t0 instanceof TypeError)){t.next=13;break}throw t.t0;case 13:return i--,t.abrupt("continue",16);case 15:return t.abrupt("return",[n,i]);case 16:t.next=1;break;case 18:throw new Error("Unable to find a viable program address nonce");case 19:case"end":return t.stop()}}),t,this,[[2,9]])}
2)));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"isOnCurve",value:function(t){return 1==_a(t)}}]),r}(function(){function t(e){m(this,t),Object.assign(this,e)}return y(t,[{key:"encode",value:function(){return Mt.from(Ne(ya,this))}}],[{key:"decode",value:function(t){return Le(ya,this,t)}},{key:"decodeUnchecked",value:function(t){return Be(ya,this,t)}}]),t}());de(ga,"default",new ga("11111111111111111111111111111111")),ya.set(ga,{kind:"struct",fields:[["_bn","u256"]]});var wa=be.lowlevel;function _a(t){var e=[wa.gf(),wa.gf(),wa.gf(),wa.gf()],r=wa.gf(),n=wa.gf(),i=wa.gf(),o=wa.gf(),a=wa.gf(),s=wa.gf(),u=wa.gf();return wa.set25519(e[2],ka),wa.unpack25519(e[1],t),wa.S(i,e[1]),wa.M(o,i,wa.D),wa.Z(i,i,e[2]),wa.A(o,e[2],o),wa.S(a,o),wa.S(s,a),wa.M(u,s,a),wa.M(r,u,i),wa.M(r,r,o),wa.pow2523(r,r),wa.M(r,r,i),wa.M(r,r,o),wa.M(r,r,o),wa.M(e[0],r,o),wa.S(n,e[0]),wa.M(n,n,o),Sa(n,i)&&wa.M(e[0],e[0],Ma),wa.S(n,e[0]),wa.M(n,n,o),Sa(n,i)?0:1}var ka=wa.gf([1]),Ma=wa.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Sa(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return wa.pack25519(r,t),wa.pack25519(n,e),wa.crypto_verify_32(r,0,n,0)}new ga("BPFLoader1111111111111111111111111111111111");var Ea=function(){return Ke(32,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey")},xa=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",e=Ye([ze("length"),ze("lengthPadding"),Ke(Fe(ze(),-8),"chars")],t),r=e.decode.bind(e),n=e.encode.bind(e);return e.decode=function(t,e){return r(t,e).chars.toString("utf8")},e.encode=function(t,e,r){var i={chars:Mt.from(t,"utf8")};return n(i,e,r)},e.alloc=function(t){return ze().span+ze().span+Mt.from(t,"utf8").length},e};function Aa(t){for(var e=0,r=0;;){var n=t.shift();if(e|=(127&n)<<7*r,r+=1,0==(128&n))break}return e}function Oa(t,e){for(var r=e;;){var n=127&r;if(0==(r>>=7)){t.push(n);break}n|=128,t.push(n)}}var ja=function(){function t(e){m(this,t),de(this,"header",void 0),de(this,"accountKeys",void 0),de(this,"recentBlockhash",void 0),de(this,"instructions",void 0),this.header=e.header,this.accountKeys=e.accountKeys.map((function(t){return new ga(t)})),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions}return y(t,[{key:"isAccountWritable",value:function(t){return t<this.header.numRequiredSignatures-this.header.numReadonlySignedAccounts||t>=this.header.numRequiredSignatures&&t<this.accountKeys.length-this.header.numReadonlyUnsignedAccounts}},{key:"serialize",value:function(){var t=this.accountKeys.length,e=[];Oa(e,t);var r=this.instructions.map((function(t){var e=t.accounts,r=t.programIdIndex,n=we.decode(t.data),i=[];Oa(i,e.length);var o=[];return Oa(o,n.length),{programIdIndex:r,keyIndicesCount:Mt.from(i),keyIndices:Mt.from(e),dataLength:Mt.from(o),data:n}})),n=[];Oa(n,r.length);var i=Mt.alloc(Pa);Mt.from(n).copy(i);var o=n.length;r.forEach((function(t){var e=Ye([qe("programIdIndex"),Ke(t.keyIndicesCount.length,"keyIndicesCount"),He(qe("keyIndex"),t.keyIndices.length,"keyIndices"),Ke(t.dataLength.length,"dataLength"),He(qe("userdatum"),t.data.length,"data")]).encode(t,i,o);o+=e})),i=i.slice(0,o);var a=Ye([Ke(1,"numRequiredSignatures"),Ke(1,"numReadonlySignedAccounts"),Ke(1,"numReadonlyUnsignedAccounts"),Ke(e.length,"keyCount"),He(Ea("key"),t,"keys"),Ea("recentBlockhash")]),s={numRequiredSignatures:Mt.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:Mt.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:Mt.from([this.header.numReadonlyUnsignedAccounts]),keyCount:Mt.from(e),keys:this.accountKeys.map((function(t){return ma(t.toBytes())})),recentBlockhash:we.decode(this.recentBlockhash)},u=Mt.alloc(2048),c=a.encode(s,u);return i.copy(u,c),u.slice(0,c+i.length)}}],[{key:"from",value:function(e){for(var r=o(e),n=r.shift(),i=r.shift(),a=r.shift(),s=Aa(r),u=[],c=0;c<s;c++){var f=r.slice(0,32);r=r.slice(32),u.push(we.encode(Mt.from(f)))}for(var h=r.slice(0,32),l=Aa(r=r.slice(32)),d=[],p=0;p<l;p++){var b=r.shift(),v=Aa(r),m=r.slice(0,v),y=Aa(r=r.slice(v)),g=r.slice(0,y),w=we.encode(Mt.from(g));r=r.slice(y),d.push({programIdIndex:b,accounts:m,data:w})}return new t({header:{numRequiredSignatures:n,numReadonlySignedAccounts:i,numReadonlyUnsignedAccounts:a},recentBlockhash:we.encode(Mt.from(h)),accountKeys:u,instructions:d})}}]),t}();function Ra(t,e){if(!t)throw new Error(e||"Assertion failed")}var Ia=Mt.alloc(64).fill(0),Pa=1232,Ta=function t(e){m(this,t),de(this,"keys",void 0),de(this,"programId",void 0),de(this,"data",Mt.alloc(0)),this.programId=e.programId,this.keys=e.keys,e.data&&(this.data=e.data)},Ca=function(){function t(e){m(this,t),de(this,"signatures",[]),de(this,"feePayer",void 0),de(this,"instructions",[]),de(this,"recentBlockhash",void 0),de(this,"nonceInfo",void 0),e&&Object.assign(this,e)}
2return y(t,[{key:"signature",get:function(){return this.signatures.length>0?this.signatures[0].signature:null}},{key:"add",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(0===r.length)throw new Error("No instructions");return r.forEach((function(e){"instructions"in e?t.instructions=t.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?t.instructions.push(e):t.instructions.push(new Ta(e))})),this}},{key:"compileMessage",value:function(){var t=this.nonceInfo;t&&this.instructions[0]!=t.nonceInstruction&&(this.recentBlockhash=t.nonce,this.instructions.unshift(t.nonceInstruction));var e,r=this.recentBlockhash;if(!r)throw new Error("Transaction recentBlockhash required");if(this.instructions.length<1&&console.warn("No instructions provided"),this.feePayer)e=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");e=this.signatures[0].publicKey}for(var n=0;n<this.instructions.length;n++)if(void 0===this.instructions[n].programId)throw new Error("Transaction instruction index ".concat(n," has undefined program id"));var i=[],o=[];this.instructions.forEach((function(t){t.keys.forEach((function(t){o.push(l({},t))}));var e=t.programId.toString();i.includes(e)||i.push(e)})),i.forEach((function(t){o.push({pubkey:new ga(t),isSigner:!1,isWritable:!1})}
2)),o.sort((function(t,e){var r=t.isSigner===e.isSigner?0:t.isSigner?-1:1,n=t.isWritable===e.isWritable?0:t.isWritable?-1:1;return r||n}));var a=[];o.forEach((function(t){var e=t.pubkey.toString(),r=a.findIndex((function(t){return t.pubkey.toString()===e}));r>-1?a[r].isWritable=a[r].isWritable||t.isWritable:a.push(t)}));var s=a.findIndex((function(t){return t.pubkey.equals(e)}));if(s>-1){var u=a.splice(s,1),h=c(u,1)[0];h.isSigner=!0,h.isWritable=!0,a.unshift(h)}else a.unshift({pubkey:e,isSigner:!0,isWritable:!0});var d,p=f(this.signatures);try{var b=function(){var t=d.value,e=a.findIndex((function(e){return e.pubkey.equals(t.publicKey)}));if(!(e>-1))throw new Error("unknown signer: ".concat(t.publicKey.toString()));a[e].isSigner||(a[e].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(p.s();!(d=p.n()).done;)b()}catch(M){p.e(M)}finally{p.f()}var v=0,m=0,y=0,g=[],w=[];a.forEach((function(t){var e=t.pubkey,r=t.isSigner,n=t.isWritable;r?(g.push(e.toString()),v+=1,n||(m+=1)):(w.push(e.toString()),n||(y+=1))}));var _=g.concat(w),k=this.instructions.map((function(t){var e=t.data,r=t.programId;return{programIdIndex:_.indexOf(r.toString()),accounts:t.keys.map((function(t){return _.indexOf(t.pubkey.toString())})),data:we.encode(e)}}));return k.forEach((function(t){Ra(t.programIdIndex>=0),t.accounts.forEach((function(t){return Ra(t>=0)}))})),new ja({header:{numRequiredSignatures:v,numReadonlySignedAccounts:m,numReadonlyUnsignedAccounts:y},accountKeys:_,recentBlockhash:r,instructions:k})}},{key:"_compile",value:function(){var t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===e.length&&this.signatures.every((function(t,r){return e[r].equals(t.publicKey)}))||(this.signatures=e.map((function(t){return{signature:null,publicKey:t}}))),t}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"setSigners",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");var n=new Set;this.signatures=e.filter((function(t){var e=t.toString();return!n.has(e)&&(n.add(e),!0)})).map((function(t){return{signature:null,publicKey:t}}))}},{key:"sign",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");for(var n=new Set,i=[],o=0,a=e;o<a.length;o++){var s=a[o],u=s.publicKey.toString();n.has(u)||(n.add(u),i.push(s))}this.signatures=i.map((function(t){return{signature:null,publicKey:t.publicKey}}));var c=this._compile();this._partialSign.apply(this,[c].concat(i)),this._verifySignatures(c.serialize(),!0)}},{key:"partialSign",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)throw new Error("No signers");for(var n=new Set,i=[],o=0,a=e;o<a.length;o++){var s=a[o],u=s.publicKey.toString();n.has(u)||(n.add(u),i.push(s))}var c=this._compile();this._partialSign.apply(this,[c].concat(i))}},{key:"_partialSign",value:function(t){for(var e=this,r=t.serialize(),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];i.forEach((function(t){var n=be.sign.detached(r,t.secretKey);e._addSignature(t.publicKey,ma(n))}))}},{key:"addSignature",value:function(t,e){this._compile(),this._addSignature(t,e)}},{key:"_addSignature",value:function(t,e){Ra(64===e.length);var r=this.signatures.findIndex((function(e){return t.equals(e.publicKey)}));if(r<0)throw new Error("unknown signer: ".concat(t.toString()));this.signatures[r].signature=Mt.from(e)}},{key:"verifySignatures",value:function(){return this._verifySignatures(this.serializeMessage(),!0)}},{key:"_verifySignatures",value:function(t,e){var r,n=f(this.signatures);try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.signature,a=i.publicKey;if(null===o){if(e)return!1}else if(!be.sign.detached.verify(t,o,a.toBuffer()))return!1}}catch(s){n.e(s)}finally{n.f()}return!0}},{key:"serialize",value:function(t){var e=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=e.requireAllSignatures,n=e.verifySignatures,i=this.serializeMessage();if(n&&!this._verifySignatures(i,r))throw new Error("Signature verification failed");return this._serialize(i)}},{key:"_serialize",value:function(t){var e=this.signatures,r=[];Oa(r,e.length);var n=r.length+64*e.length+t.length,i=Mt.alloc(n);return Ra(e.length<256),Mt.from(r).copy(i,0),e.forEach((function(t,e){var n=t.signature;
2null!==n&&(Ra(64===n.length,"signature has invalid length"),Mt.from(n).copy(i,r.length+64*e))})),t.copy(i,r.length+64*e.length),Ra(i.length<=Pa,"Transaction too large: ".concat(i.length," > ").concat(Pa)),i}},{key:"keys",get:function(){return Ra(1===this.instructions.length),this.instructions[0].keys.map((function(t){return t.pubkey}))}},{key:"programId",get:function(){return Ra(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return Ra(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(e){for(var r=o(e),n=Aa(r),i=[],a=0;a<n;a++){var s=r.slice(0,64);r=r.slice(64),i.push(we.encode(Mt.from(s)))}return t.populate(ja.from(r),i)}},{key:"populate",value:function(e,r){var n=new t;return n.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(n.feePayer=e.accountKeys[0]),r.forEach((function(t,r){var i={signature:t==we.encode(Ia)?null:we.decode(t),publicKey:e.accountKeys[r]};n.signatures.push(i)})),e.instructions.forEach((function(t){var r=t.accounts.map((function(t){var r=e.accountKeys[t];return{pubkey:r,isSigner:n.signatures.some((function(t){return t.publicKey.toString()===r.toString()})),isWritable:e.isAccountWritable(t)}}));n.instructions.push(new Ta({keys:r,programId:e.accountKeys[t.programIdIndex],data:we.decode(t.data)}))})),n}}]),t}(),Ba=new ga("SysvarC1ock11111111111111111111111111111111"),La=new ga("SysvarRecentB1ockHashes11111111111111111111"),Na=new ga("SysvarRent111111111111111111111111111111111");new ga("SysvarRewards111111111111111111111111111111");var Da=new ga("SysvarStakeHistory1111111111111111111111111");function Ua(t,e,r,n){return za.apply(this,arguments)}function za(){return(za=v(b.mark((function t(e,r,n,i){var o,a,s;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment},t.next=3,e.sendTransaction(r,n,o);case 3:return a=t.sent,t.next=6,e.confirmTransaction(a,i&&i.commitment);case 6:if(!(s=t.sent.value).err){t.next=9;break}throw new Error("Transaction ".concat(a," failed (").concat(JSON.stringify(s),")"));case 9:return t.abrupt("return",a);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Wa(t){return new Promise((function(e){return setTimeout(e,t)}))}function qa(t,e){var r=t.layout.span>=0?t.layout.span:function(t,e){var r=0;return t.layout.fields.forEach((function(t){t.span>=0?r+=t.span:"function"==typeof t.alloc&&(r+=t.alloc(e[t.property]))})),r}(t,e),n=Mt.alloc(r),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,n),n}new ga("Sysvar1nstructions1111111111111111111111111");var Fa=Ue("lamportsPerSignature"),Ka=Ye([ze("version"),ze("state"),Ea("authorizedPubkey"),Ea("nonce"),Ye([Fa],"feeCalculator")]).span,Ha=Object.freeze({Create:{index:0,layout:Ye([ze("instruction"),Ve("lamports"),Ve("space"),Ea("programId")])},Assign:{index:1,layout:Ye([ze("instruction"),Ea("programId")])},Transfer:{index:2,layout:Ye([ze("instruction"),Ve("lamports")])},CreateWithSeed:{index:3,layout:Ye([ze("instruction"),Ea("base"),xa("seed"),Ve("lamports"),Ve("space"),Ea("programId")])},AdvanceNonceAccount:{index:4,layout:Ye([ze("instruction")])},WithdrawNonceAccount:{index:5,layout:Ye([ze("instruction"),Ve("lamports")])},InitializeNonceAccount:{index:6,layout:Ye([ze("instruction"),Ea("authorized")])},AuthorizeNonceAccount:{index:7,layout:Ye([ze("instruction"),Ea("authorized")])},Allocate:{index:8,layout:Ye([ze("instruction"),Ve("space")])},AllocateWithSeed:{index:9,layout:Ye([ze("instruction"),Ea("base"),xa("seed"),Ve("space"),Ea("programId")])},AssignWithSeed:{index:10,layout:Ye([ze("instruction"),Ea("base"),xa("seed"),Ea("programId")])},TransferWithSeed:{index:11,layout:Ye([ze("instruction"),Ve("lamports"),xa("seed"),Ea("programId")])}}),Ya=function(){function t(){m(this,t)}return y(t,null,[{key:"createAccount",value:function(t){var e=qa(Ha.Create,{lamports:t.lamports,space:t.space,programId:ma(t.programId.toBuffer())});return new Ta({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:e})}},{key:"transfer",value:function(t){var e,r;return"basePubkey"in t?(e=qa(Ha.TransferWithSeed,{lamports:t.lamports,seed:t.seed,programId:ma(t.programId.toBuffer())}),r=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]):(e=qa(Ha.Transfer,{lamports:t.lamports}),r=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]),new Ta({keys:r,programId:this.programId,data:e})}},{key:"assign",value:function(t){var e,r;return"basePubkey"in t?(e=qa(Ha.AssignWithSeed,{base:ma(t.basePubkey.toBuffer()),seed:t.seed,programId:ma(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]):(e=qa(Ha.Assign,{programId:ma(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]),new Ta({keys:r,programId:this.programId,data:e})}},{key:"createAccountWithSeed",value:function(t){var e=qa(Ha.CreateWithSeed,{base:ma(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:ma(t.programId.toBuffer())}),r=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey!=t.fromPubkey&&r.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new Ta({keys:r,programId:this.programId,data:e})}},{key:"createNonceAccount",value:function(e){var r=new Ca;"basePubkey"in e&&"seed"in e?r.add(t.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:Ka,programId:this.programId})):r.add(t.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,lamports:e.lamports,space:Ka,programId:this.programId}));var n={noncePubkey:e.noncePubkey,authorizedPubkey:e.authorizedPubkey};return r.add(this.nonceInitialize(n)),r}},{key:"nonceInitialize",value:function(t){var e=qa(Ha.InitializeNonceAccount,{authorized:ma(t.authorizedPubkey.toBuffer())}),r={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:La,isSigner:!1,isWritable:!1},{pubkey:Na,isSigner:!1,isWritable:!1}],programId:this.programId,data:e};return new Ta(r)}},{key:"nonceAdvance",value:function(t){var e=qa(Ha.AdvanceNonceAccount),r={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:La,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e};return new Ta(r)}},{key:"nonceWithdraw",value:function(t){var e=qa(Ha.WithdrawNonceAccount,{lamports:t.lamports});return new Ta({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:La,isSigner:!1,isWritable:!1},{pubkey:Na,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}},{key:"nonceAuthorize",value:function(t){var e=qa(Ha.AuthorizeNonceAccount,{authorized:ma(t.newAuthorizedPubkey.toBuffer())});return new Ta({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}},{key:"allocate",value:function(t){var e,r;return"basePubkey"in t?(e=qa(Ha.AllocateWithSeed,{base:ma(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:ma(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]):(e=qa(Ha.Allocate,{space:t.space}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]),new Ta({keys:r,programId:this.programId,data:e})}}]),t}();de(Ya,"programId",new ga("11111111111111111111111111111111"));var Va=Pa-300;de(function(){function t(){m(this,t)}return y(t,null,[{key:"getMinNumSignatures",value:function(e){return 2*(Math.ceil(e/t.chunkSize)+1+1)}},{key:"load",value:function(){var e=v(b.mark((function e(r,n,i,o,a){var s,u,c,f,h,l,d,p,v,m,y,g,w,_,k;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.getMinimumBalanceForRentExemption(a.length);case 2:return s=e.sent,e.next=5,r.getAccountInfo(i.publicKey,"confirmed");case 5:if(u=e.sent,c=null,null===u){e.next=13;break}if(!u.executable){e.next=10;break}return e.abrupt("return",(console.error("Program load failed, account is already executable"),!1));case 10:u.data.length!==a.length&&(c=c||new Ca).add(Ya.allocate({accountPubkey:i.publicKey,space:a.length})),u.owner.equals(o)||(c=c||new Ca).add(Ya.assign({accountPubkey:i.publicKey,programId:o})),u.lamports<s&&(c=c||new Ca).add(Ya.transfer({fromPubkey:n.publicKey,toPubkey:i.publicKey,lamports:s-u.lamports})),e.next=14;break;case 13:c=(new Ca).add(Ya.createAccount({fromPubkey:n.publicKey,newAccountPubkey:i.publicKey,lamports:s>0?s:1,space:a.length,programId:o}));case 14:if(e.t0=null!==c,!e.t0){e.next=18;break}return e.next=18,Ua(r,c,[n,i],{commitment:"confirmed"});case 18:f=Ye([ze("instruction"),ze("offset"),ze("bytesLength"),ze("bytesLengthPadding"),He(qe("byte"),Fe(ze(),-8),"bytes")]),h=t.chunkSize,l=0,d=a,p=[];case 20:if(!(d.length>0)){e.next=31;break}if(v=d.slice(0,h),m=Mt.alloc(h+16),f.encode({instruction:0,offset:l,bytes:v},m),y=(new Ca).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:m}),p.push(Ua(r,y,[n,i],{commitment:"confirmed"})),!r._rpcEndpoint.includes("solana.com")){e.next=28;break}
2return g=4,e.next=28,Wa(1e3/g);case 28:l+=h,d=d.slice(h);case 29:e.next=20;break;case 31:return e.next=33,Promise.all(p);case 33:return w=Ye([ze("instruction")]),_=Mt.alloc(w.span),w.encode({instruction:1},_),k=(new Ca).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:Na,isSigner:!1,isWritable:!1}],programId:o,data:_}),e.next=38,Ua(r,k,[n,i],{commitment:"confirmed"});case 38:return e.abrupt("return",!0);case 39:case"end":return e.stop()}}),e)})));function r(t,r,n,i,o){return e.apply(this,arguments)}return r}()}]),t}(),"chunkSize",Va),new ga("BPFLoader2111111111111111111111111111111111");var Za={exports:{}};!function(t,e){var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();t.exports=e=r.fetch,r.fetch&&(e.default=r.fetch.bind(r)),e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response}(Za,Za.exports);var Ga=mr(sr(ga),lr(),(function(t){return new ga(t)})),Xa=dr([lr(),ur("base64")]),Ja=mr(sr(Mt),Xa,(function(t){return Mt.from(t[0],"base64")}));function Qa(t){return br([pr({jsonrpc:ur("2.0"),id:lr(),result:t}),pr({jsonrpc:ur("2.0"),id:lr(),error:pr({code:vr(),message:lr(),data:hr(ir("any",(function(){return!0})))})})])}var $a=Qa(vr());function ts(t){return mr(Qa(t),$a,(function(e){return"error"in e?e:l(l({},e),{},{result:er(e.result,t)})}))}function es(t){return ts(pr({context:pr({slot:fr()}),value:t}))}var rs=pr({foundation:fr(),foundationTerm:fr(),initial:fr(),taper:fr(),terminal:fr()});ts(or(cr(pr({epoch:fr(),effectiveSlot:fr(),amount:fr(),postBalance:fr()}))));var ns,is,os=pr({epoch:fr(),slotIndex:fr(),slotsInEpoch:fr(),absoluteSlot:fr(),blockHeight:hr(fr()),transactionCount:hr(fr())}),as=pr({slotsPerEpoch:fr(),leaderScheduleSlotOffset:fr(),warmup:ar(),firstNormalEpoch:fr(),firstNormalSlot:fr()}),ss=(ns=lr(),is=or(fr()),new tr({type:"record",schema:null,entries:b.mark((function t(e){var r,n;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Ge(e)){t.next=11;break}t.t0=b.keys(e);case 2:if((t.t1=t.t0()).done){t.next=11;break}return r=t.t1.value,n=e[r],t.next=7,[r,r,ns];case 7:return t.next=9,[r,n,is];case 9:t.next=2;break;case 11:case"end":return t.stop()}}),t)})),validator:function(t){return Ge(t)||"Expected an object, but received: "+Xe(t)}})),us=cr(br([pr({}),lr()])),cs=pr({err:us}),fs=ur("receivedSignature");es(pr({err:cr(br([pr({}),lr()])),logs:cr(or(lr()))})),ts(rs),ts(os),ts(as),ts(ss),ts(fr()),es(pr({total:fr(),circulating:fr(),nonCirculating:fr(),nonCirculatingAccounts:or(Ga)}));var hs=pr({amount:lr(),uiAmount:cr(fr()),decimals:fr(),uiAmountString:hr(lr())});es(or(pr({address:Ga,amount:lr(),uiAmount:cr(fr()),decimals:fr(),uiAmountString:hr(lr())}))),es(or(pr({pubkey:Ga,account:pr({executable:ar(),owner:Ga,lamports:fr(),data:Ja,rentEpoch:fr()})})));var ls,ds=pr({program:lr(),parsed:vr(),space:fr()});es(or(pr({pubkey:Ga,account:pr({executable:ar(),owner:Ga,lamports:fr(),data:ds,rentEpoch:fr()})}))),es(or(pr({lamports:fr(),address:Ga}))),mr(br([sr(Mt),ds]),br([Xa,ds]),(function(t){return Array.isArray(t)?er(t,Ja):t})),pr({state:br([ur("active"),ur("inactive"),ur("activating"),ur("deactivating")]),active:fr(),inactive:fr()}),ts(or(pr({signature:lr(),slot:fr(),err:us,memo:cr(lr()),blockTime:hr(cr(fr()))}))),ts(or(pr({signature:lr(),slot:fr(),err:us,memo:cr(lr()),blockTime:hr(cr(fr()))}))),br([pr({type:br([ur("firstShredReceived"),ur("completed"),ur("optimisticConfirmation"),ur("root")]),slot:fr(),timestamp:fr()}),pr({type:ur("createdBank"),parent:fr(),slot:fr(),timestamp:fr()}),pr({type:ur("frozen"),slot:fr(),timestamp:fr(),stats:pr({numTransactionEntries:fr(),numSuccessfulTransactions:fr(),numFailedTransactions:fr(),maxTransactionsPerEntry:fr()})}),pr({type:ur("dead"),slot:fr(),timestamp:fr(),err:lr()})]),pr({subscription:fr(),result:(ls=br([cs,fs]),pr({context:pr({slot:fr()}),value:ls}))});var ps=pr({votePubkey:lr(),nodePubkey:lr(),activatedStake:fr(),epochVoteAccount:ar(),epochCredits:or(dr([fr(),fr(),fr()])),commission:fr(),lastVote:fr(),rootSlot:cr(fr())});ts(pr({current:or(ps),delinquent:or(ps)}));var bs=br([ur("processed"),ur("confirmed"),ur("finalized")]),vs=pr({slot:fr(),confirmations:cr(fr()),err:us,confirmationStatus:hr(bs)});
2es(or(cr(vs))),ts(fr());var ms=pr({signatures:or(lr()),message:pr({accountKeys:or(lr()),header:pr({numRequiredSignatures:fr(),numReadonlySignedAccounts:fr(),numReadonlyUnsignedAccounts:fr()}),instructions:or(pr({accounts:or(fr()),data:lr(),programIdIndex:fr()})),recentBlockhash:lr()})}),ys=pr({parsed:vr(),program:lr(),programId:Ga}),gs=pr({accounts:or(Ga),data:lr(),programId:Ga}),ws=mr(br([gs,ys]),br([pr({parsed:vr(),program:lr(),programId:lr()}),pr({accounts:or(lr()),data:lr(),programId:lr()})]),(function(t){return er(t,"accounts"in t?gs:ys)})),_s=pr({signatures:or(lr()),message:pr({accountKeys:or(pr({pubkey:Ga,signer:ar(),writable:ar()})),instructions:or(ws),recentBlockhash:lr()})}),ks=pr({accountIndex:fr(),mint:lr(),uiTokenAmount:hs}),Ms=pr({err:us,fee:fr(),innerInstructions:hr(cr(or(pr({index:fr(),instructions:or(pr({accounts:or(fr()),data:lr(),programIdIndex:fr()}))})))),preBalances:or(fr()),postBalances:or(fr()),logMessages:hr(cr(or(lr()))),preTokenBalances:hr(cr(or(ks))),postTokenBalances:hr(cr(or(ks)))}),Ss=pr({err:us,fee:fr(),innerInstructions:hr(cr(or(pr({index:fr(),instructions:or(ws)})))),preBalances:or(fr()),postBalances:or(fr()),logMessages:hr(cr(or(lr()))),preTokenBalances:hr(cr(or(ks))),postTokenBalances:hr(cr(or(ks)))});ts(cr(pr({blockhash:lr(),previousBlockhash:lr(),parentSlot:fr(),transactions:or(pr({transaction:ms,meta:cr(Ms)})),rewards:hr(or(pr({pubkey:lr(),lamports:fr(),postBalance:cr(fr()),rewardType:cr(lr())}))),blockTime:cr(fr())}))),ts(cr(pr({blockhash:lr(),previousBlockhash:lr(),parentSlot:fr(),signatures:or(lr()),blockTime:cr(fr())}))),ts(cr(pr({slot:fr(),meta:Ms,blockTime:hr(cr(fr())),transaction:ms}))),ts(cr(pr({slot:fr(),transaction:_s,meta:cr(Ss),blockTime:hr(cr(fr()))}))),es(pr({blockhash:lr(),feeCalculator:pr({lamportsPerSignature:fr()})})),ts(or(pr({slot:fr(),numTransactions:fr(),numSlots:fr(),samplePeriodSecs:fr()}))),es(cr(pr({feeCalculator:pr({lamportsPerSignature:fr()})}))),ts(lr()),ts(lr());var Es=new ga("StakeConfig11111111111111111111111111111111"),xs=function t(e,r,n){m(this,t),de(this,"unixTimestamp",void 0),de(this,"epoch",void 0),de(this,"custodian",void 0),this.unixTimestamp=e,this.epoch=r,this.custodian=n};de(xs,"default",new xs(0,0,ga.default));var As=Object.freeze({Initialize:{index:0,layout:Ye([ze("instruction"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"authorized";return Ye([Ea("staker"),Ea("withdrawer")],t)}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return Ye([Ve("unixTimestamp"),Ve("epoch"),Ea("custodian")],t)}()])},Authorize:{index:1,layout:Ye([ze("instruction"),Ea("newAuthorized"),ze("stakeAuthorizationType")])},Delegate:{index:2,layout:Ye([ze("instruction")])},Split:{index:3,layout:Ye([ze("instruction"),Ve("lamports")])},Withdraw:{index:4,layout:Ye([ze("instruction"),Ve("lamports")])},Deactivate:{index:5,layout:Ye([ze("instruction")])},AuthorizeWithSeed:{index:8,layout:Ye([ze("instruction"),Ea("newAuthorized"),ze("stakeAuthorizationType"),xa("authoritySeed"),Ea("authorityOwner")])}});Object.freeze({Staker:{index:0},Withdrawer:{index:1}});var Os=function(){function t(){m(this,t)}return y(t,null,[{key:"initialize",value:function(t){var e=t.stakePubkey,r=t.authorized,n=t.lockup||xs.default,i=qa(As.Initialize,{authorized:{staker:ma(r.staker.toBuffer()),withdrawer:ma(r.withdrawer.toBuffer())},lockup:{unixTimestamp:n.unixTimestamp,epoch:n.epoch,custodian:ma(n.custodian.toBuffer())}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Na,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new Ta(o)}},{key:"createAccountWithSeed",value:function(t){var e=new Ca;e.add(Ya.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));var r=t.stakePubkey,n=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}},{key:"createAccount",value:function(t){var e=new Ca;e.add(Ya.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));var r=t.stakePubkey,n=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}},{key:"delegate",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.votePubkey,i=qa(A
2s.Delegate);return(new Ca).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:Ba,isSigner:!1,isWritable:!1},{pubkey:Da,isSigner:!1,isWritable:!1},{pubkey:Es,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"authorize",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.newAuthorizedPubkey,i=t.stakeAuthorizationType,o=t.custodianPubkey,a=qa(As.Authorize,{newAuthorized:ma(n.toBuffer()),stakeAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Ba,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new Ca).add({keys:s,programId:this.programId,data:a})}},{key:"authorizeWithSeed",value:function(t){var e=t.stakePubkey,r=t.authorityBase,n=t.authoritySeed,i=t.authorityOwner,o=t.newAuthorizedPubkey,a=t.stakeAuthorizationType,s=t.custodianPubkey,u=qa(As.AuthorizeWithSeed,{newAuthorized:ma(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:n,authorityOwner:ma(i.toBuffer())}),c=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:Ba,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),(new Ca).add({keys:c,programId:this.programId,data:u})}},{key:"split",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.splitStakePubkey,i=t.lamports,o=new Ca;o.add(Ya.createAccount({fromPubkey:r,newAccountPubkey:n,lamports:0,space:this.space,programId:this.programId}));var a=qa(As.Split,{lamports:i});return o.add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"withdraw",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=t.toPubkey,i=t.lamports,o=t.custodianPubkey,a=qa(As.Withdraw,{lamports:i}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Ba,isSigner:!1,isWritable:!1},{pubkey:Da,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new Ca).add({keys:s,programId:this.programId,data:a})}},{key:"deactivate",value:function(t){var e=t.stakePubkey,r=t.authorizedPubkey,n=qa(As.Deactivate);return(new Ca).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Ba,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}}]),t}();de(Os,"programId",new ga("Stake11111111111111111111111111111111111111")),de(Os,"space",200);var js=ba.publicKeyCreate,Rs=ba.ecdsaSign,Is=Ye([qe("numSignatures"),We("signatureOffset"),qe("signatureInstructionIndex"),We("ethAddressOffset"),qe("ethAddressInstructionIndex"),We("messageDataOffset"),We("messageDataSize"),qe("messageInstructionIndex"),Ke(20,"ethAddress"),Ke(64,"signature"),qe("recoveryId")]);de(function(){function t(){m(this,t)}return y(t,null,[{key:"publicKeyToEthAddress",value:function(t){Ra(64===t.length,"Public key must be 64 bytes but received ".concat(t.length," bytes"));try{return Mt.from(va.update(ma(t)).digest()).slice(-20)}catch(t){throw new Error("Error constructing Ethereum address: ".concat(t))}}},{key:"createInstructionWithPublicKey",value:function(e){var r=e.publicKey,n=e.message,i=e.signature,o=e.recoveryId;return t.createInstructionWithEthAddress({ethAddress:t.publicKeyToEthAddress(r),message:n,signature:i,recoveryId:o})}},{key:"createInstructionWithEthAddress",value:function(e){var r,n=e.ethAddress,i=e.message,o=e.signature,a=e.recoveryId;Ra(20===(r="string"==typeof n?n.startsWith("0x")?Mt.from(n.substr(2),"hex"):Mt.from(n,"hex"):n).length,"Address must be 20 bytes but received ".concat(r.length," bytes"));var s=12+r.length,u=s+o.length+1,c=Mt.alloc(Is.span+i.length);return Is.encode({numSignatures:1,signatureOffset:s,signatureInstructionIndex:0,ethAddressOffset:12,ethAddressInstructionIndex:0,messageDataOffset:u,messageDataSize:i.length,messageInstructionIndex:0,signature:ma(o),ethAddress:ma(r),recoveryId:a},c),c.fill(ma(i),Is.span),new Ta({keys:[],programId:t.programId,data:c})}},{key:"createInstructionWithPrivateKey",value:function(t){var e=t.privateKey,r=t.message;Ra(32===e.length,"Private key must be 32 bytes but received ".concat(e.length," bytes"));try{var n=ma(e),i=js(n,!1).slice(1),o=Mt.from(va.update(ma(r)).digest()),a=Rs(o,n),s=a.signature,u=a.recid;return this.createInstructionWithPublicKey({publicKey:i,message:r,signature:s,recoveryId:u})}catch(t){throw new Error("Error creating instruction; ".concat(t))}}}]),t}(),"programId",new ga("KeccakSecp256k11111111111111111111111111111")),new ga("Va1idator1nfo111111111111111111111111111111"),new ga("Vote111111111111111111111111111111111111111"),Ye([Ea("nodePubkey"),Ea("authorizedVoterPubkey"),Ea("authorizedWithdrawerPubkey"),qe("commission"),Ue(),He(Ye([Ue("slot"),ze("confirmationCount")]),Fe(ze(
2),-8),"votes"),qe("rootSlotValid"),Ue("rootSlot"),Ue("epoch"),Ue("credits"),Ue("lastEpochCredits"),Ue(),He(Ye([Ue("epoch"),Ue("credits"),Ue("prevCredits")]),Fe(ze(),-8),"epochCredits")]);var Ps=function(t){d(r,t);var e=p(r);function r(t){var n,i=t.net,o=void 0===i?"mainnet-beta":i,a=t.server,s=t.appId,u=t.rpc;return m(this,r),(n=e.call(this)).code=null,n.accounts=[],K(o,"'net' is required"),K(tt.includes(o),"unsupported net"),n.net=o,n.rpc=u||("mainnet-beta"===o?"https://free.rpcpool.com":"https://api.".concat(o,".solana.com")),n.server=a||$[n.net]||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).SERVER||"",n.appId=s||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CANDY_MACHINE_CONFIG:"2FQpvaURYc9ZB7dhYrPtFv7eRbE8f5QEnVLU3Dj15m5P",REACT_APP_CANDY_MACHINE_ID:"EC6D36N4afhijXdcKVcshADzz2CGCWd34Wojcu2uiWTM",REACT_APP_CANDY_START_DATE:"1637380899",REACT_APP_SOLANA_NETWORK:"mainnet-beta",REACT_APP_SOLANA_RPC_HOST:"https://api.mainnet-beta.solana.com",REACT_APP_TREASURY_ADDRESS:"BWcD84DJP9QqZH5KyrgmxZTczwLXhGoUrBqXtxc1HjPP"}).APP_ID,n}return y(r,[{key:"request",value:function(){var t=v(b.mark((function t(e){var r,n;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.connected,t.t0){t.next=4;break}return t.next=4,this.connect();case 4:t.prev=4,r=null,n=null,t.t1=e.method,t.next="connect"===t.t1?9:"disconnect"===t.t1?13:"getAccounts"===t.t1?15:"convertToProgramWalletTransaction"===t.t1?24:"signAndSendTransaction"===t.t1?28:"signTransaction"===t.t1||"signAllTransactions"===t.t1?32:33;break;case 9:return t.next=11,this.fetchAccounts();case 11:return n=t.sent,t.abrupt("break",36);case 13:return this.disconnect(),t.abrupt("break",36);case 15:if(!this.accounts.length){t.next=19;break}t.t2=this.accounts,t.next=22;break;case 19:return t.next=21,this.fetchAccounts();case 21:t.t2=t.sent;case 22:return n=t.t2,t.abrupt("break",36);case 24:return t.next=26,this.handleConvertTransaction(e);case 26:return n=t.sent,t.abrupt("break",36);case 28:return t.next=30,this.handleSignAndSendTransaction(e);case 30:return n=t.sent,t.abrupt("break",36);case 32:throw new Error("Blocto is program wallet, which doesn't support ".concat(e.method,". Use signAndSendTransaction instead."));case 33:return t.next=35,this.handleReadRequests(e);case 35:r=t.sent;case 36:return t.abrupt("return",r?r.result:n);case 39:throw t.prev=39,t.t3=t.catch(4),console.error(t.t3),t.t3;case 42:case"end":return t.stop()}}),t,this,[[4,39]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"connect",value:function(){var t=v(b.mark((function t(){var e,r=this;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=window.solana,t.abrupt("return",e&&e.isBlocto?new Promise((function(t){e.once("connect",(function(e){r.accounts=[e.toBase58()],t()})),e.connect()})):new Promise((function(t,e){"undefined"==typeof window&&e("Currently only supported in browser");var n=encodeURIComponent(window.location.origin),i=H("".concat(r.server,"/authn?l6n=").concat(n,"&chain=solana"));Y(i),Z("message",(function(n,o){var a=n;a.origin===r.server&&("FCL::CHALLENGE::RESPONSE"===a.data.type&&(o(),V(i),r.code=a.data.code,r.connected=!0,r.eventListeners.connect.forEach((function(t){return t(r.net)})),r.accounts=[a.data.addr],t()),"FCL::CHALLENGE::CANCEL"===a.data.type&&(o(),V(i),e()))}))})));case 2:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()},{key:"disconnect",value:function(){var t=v(b.mark((function t(){var e;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=window.solana)||!e.isBlocto){t.next=6;break}return t.next=4,e.dicconnect();case 4:t.next=7;break;case 6:this.code=null,this.accounts=[],this.eventListeners.disconnect.forEach((function(t){return t()}));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"fetchAccounts",value:function(){var t=v(b.mark((function t(){var e,r;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("".concat(this.server,"/api/solana/accounts?code=").concat(this.code)).then((function(t){return t.json()}));case 2:return e=t.sent,r=e.accounts,t.abrupt("return",(this.accounts=r,r));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"handleReadRequests",value:function(){var t=v(b.mark((function t(e){return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",fetch(this.rpc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l({id:1,jsonrpc:"2.0"},e))}).then((function(t){return t.json()})));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"convertToProgramWalletTransaction",value:function(){var t=v(b.mark((function t(e){var r,n;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=window.solana)||!r.isBlocto){t.next=3;break}return t.abrupt("return",r.convertToProgramWalletTransaction(e));case 3:return t.next=5,this.request({method:"convertToProgramWalletTransaction",params:{message:e.serializeMessage().toString("hex")}});case 5:return n=t.sent,t.abrupt("return",this.toTransaction(n,[]));case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"signAndSendTransaction",value:function(){var t=v(b.mark((function t(e,r){var n,i,o;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=window.solana)||!n.isBlocto){t.next=3;break}return t.abrupt("return",n.signAndSendTransaction(e));case 3:if(i={},!r){t.next=13;break}if(r.commitment&&(i.commitment=r.commitment),o=r?r._rpcEndpoint:null,t.t0=o&&o!==this.rpc,!t.t0){t.next=13;break}return this.rpc=o,this.disconnect(),t.next=13,this.connect();case 13:return t.t1=this,t.t2=l,t.next=17,this.collectSignatures(e);case 17:return t.t3=t.sent,t.t4=e.serializeMessage().toString("hex"),t.t5={signatures:t.t3,message:t.t4},t.t6=i,t.t7=(0,t.t2)(t.t5,t.t6),t.t8={method:"signAndSendTransaction",params:t.t7},t.abrupt("return",t.t1.request.call(t.t1,t.t8));case 24:case"end":return t.stop()}}),t,this)})));function e(e,r){return t.apply(this,arguments)}return e}()}
2,{key:"toTransaction",value:function(t,e){var r=ja.from(Mt.from(t,"hex")),n=new Ca;return n.recentBlockhash=r.recentBlockhash,r.header.numRequiredSignatures>0&&(n.feePayer=r.accountKeys[0]),e.forEach((function(t,e){var i={signature:t===ga.default.toBase58()?null:we.decode(t),publicKey:r.accountKeys[e]};n.signatures.push(i)})),r.instructions.forEach((function(t){var e=t.accounts.map((function(t){return{pubkey:r.accountKeys[t],isSigner:t<r.header.numRequiredSignatures,isWritable:r.isAccountWritable(t)}}));n.instructions.push(new Ta({keys:e,programId:r.accountKeys[t.programIdIndex],data:we.decode(t.data)}))})),n}},{key:"collectSignatures",value:function(){var t=v(b.mark((function t(e){return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.signatures.reduce((function(t,e){return e.signature&&(t[e.publicKey.toBase58()]=e.signature.toString("hex")),t}),{}));case 1:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"handleConvertTransaction",value:function(){var t=v(b.mark((function t(e){return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",fetch("".concat(this.server,"/api/solana/convertToWalletTx?code=").concat(this.code),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l({sessionId:this.code},e.params))}).then((function(t){return t.json()})));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"handleSignAndSendTransaction",value:function(){var t=v(b.mark((function t(e){var r,n,i,o=this;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("".concat(this.server,"/api/solana/authz?code=").concat(this.code),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l({sessionId:this.code},e.params))}).then((function(t){return t.json()}));case 2:if(r=t.sent,n=r.authorizationId,"undefined"!=typeof window){t.next=6;break}throw new Error("Currently only supported in browser");case 6:return i=H("".concat(this.server,"/authz/solana/").concat(n)),t.abrupt("return",(Y(i),new Promise((function(t,e){return Z("message",(function(r,n){var a=r;a.origin===o.server&&"SOL:FRAME:RESPONSE"===a.data.type&&("APPROVED"===a.data.status&&(n(),V(i),t(a.data.txHash)),"DECLINED"===a.data.status&&(n(),V(i),e()))}))}))));case 8:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}]),r}(rt),Ts=Object.freeze({__proto__:null,default:{}});function Cs(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var Bs=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Ls=function(t){return Bs.exec(t).slice(1)};function Ns(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(t=n+"/"+t,e="/"===n.charAt(0))}return(e?"/":"")+(t=Cs(Ys(t.split("/"),(function(t){return!!t})),!e).join("/"))||"."}function Ds(t){var e=Us(t),r="/"===Zs(t,-1);return(t=Cs(Ys(t.split("/"),(function(t){return!!t})),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function Us(t){return"/"===t.charAt(0)}function zs(){return Ds(Ys(Array.prototype.slice.call(arguments,0),(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))}function Ws(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=Ns(t).substr(1),e=Ns(e).substr(1);for(var n=r(t.split("/")),i=r(e.split("/")),o=Math.min(n.length,i.length),a=o,s=0;s<o;s++)if(n[s]!==i[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push("..");return(u=u.concat(i.slice(a))).join("/")}function qs(t){var e=Ls(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."}function Fs(t,e){var r=Ls(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r}function Ks(t){return Ls(t)[3]}var Hs={extname:Ks,basename:Fs,dirname:qs,sep:"/",delimiter:":",relative:Ws,join:zs,isAbsolute:Us,normalize:Ds,resolve:Ns};function Ys(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var Vs,Zs="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)},Gs=Object.freeze({__proto__:null,resolve:Ns,normalize:Ds,isAbsolute:Us,join:zs,relative:Ws,sep:"/",delimiter:":",dirname:qs,basename:Fs,extname:Ks,default:Hs});function Xs(){if(void 0===Vs){var t=new ArrayBuffer(2),e=new Uint8Array(t),r=new Uint16Array(t);if(e[0]=1,e[1]=2,258===r[0])Vs="BE";else{if(513!==r[0])throw new Error("unable to figure out endianess");Vs="LE"}}return Vs}function Js(){return void 0!==g.location?g.location.hostname:""}function Qs(){return[]}function $s(){return 0}function tu(){return Number.MAX_VALUE}function eu(){return Number.MAX_VALUE}function ru(){return[]}function nu(){return"Browser"}function iu(){return void 0!==g.navigator?g.navigator.appVersion:""}function ou(){}function au(){}function su(){return"/tmp"}var uu=su,cu={EOL:"\n",tmpdir:uu,tmpDir:su,networkInterfaces:ou,getNetworkInterfaces:au,release:iu,type:nu,cpus:ru,totalmem:eu,freemem:tu,uptime:$s,loadavg:Qs,hostname:Js,endianness:Xs},fu=Object.freeze({__proto__:null,endianness:Xs,hostname:Js,loadavg:Qs,uptime:$s,freemem:tu,totalmem:eu,cpus:ru,type:nu,release:iu,networkInterfaces:ou,getNetworkInterfaces:au,arch:function(){return"javascript"},platform:function(){return"browser"},tmpDir:su,tmpdir:uu,EOL:"\n",default:cu}),hu=le(Ts),lu=le(Gs),du=le(fu);function pu(t){console.log("[dotenv][DEBUG] ".concat(t))}
2var bu=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,vu=/\\n/g,mu=/\r\n|\n|\r/;function yu(t,e){var r=Boolean(e&&e.debug),n={};return t.toString().split(mu).forEach((function(t,e){var i=t.match(bu);if(null!=i){var o=i[1],a=i[2]||"",s=a.length-1,u='"'===a[0]&&'"'===a[s];"'"===a[0]&&"'"===a[s]||u?(a=a.substring(1,s),u&&(a=a.replace(vu,"\n"))):a=a.trim(),n[o]=a}else r&&pu("did not match key and value when parsing line ".concat(e+1,": ").concat(t))})),n}return function(t){var e,r=lu.resolve(F.cwd(),".env"),n="utf8",i=!1;t&&(null!=t.path&&(r="~"===(e=t.path)[0]?lu.join(du.homedir(),e.slice(1)):e),null!=t.encoding&&(n=t.encoding),null!=t.debug&&(i=!0));try{var o=yu(hu.readFileSync(r,{encoding:n}),{debug:i});Object.keys(o).forEach((function(t){Object.prototype.hasOwnProperty.call(F.env,t)?i&&pu('"'.concat(t,'" is already defined in `process.env` and will not be overwritten')):F.env[t]=o[t]}))}catch(t){return{error:t}}}(),function(){function t(e){var r=e.appId,n=e.ethereum,i=e.solana;m(this,t),n&&(this.ethereum=new ut(l(l({},n),{},{appId:r}))),i&&(this.solana=new Ps(l(l({},i),{},{appId:r})))}return t}()}()}).call(this,r(31))},function(t,e,r){var n=r(228),i=r(243),o=r(138),a=r(230);t.exports=function(t){return n(t)||i(t)||o(t)||a()}},function(t,e,r){var n=r(415);t.exports=function(t,e){if(null==t)return{};var r,i,o=n(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}},function(t,e){t.exports=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}},function(t,e,r){"use strict";var n=r(1),i=r(137),o=r(34),a=r(36),s=r(57),u=r(39),c=r(40),f=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Coin98WalletAdapter=void 0;var l=r(26),d=r(16),p=h(r(23)),b=function(t){u(r,t);var e=c(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,r),(t=e.call(this))._connecting=!1,t._wallet=null,t._publicKey=null,t.ready||(0,l.pollUntilReady)(s(t),n.pollInterval||1e3,n.pollCount||3),t}return a(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){return"undefined"!==typeof window&&!!window.coin98}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected())}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){var t;return f(this,void 0,void 0,n.mark((function e(){var r,o,a,s,u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.connected&&!this.connecting){e.next=3;break}return e.abrupt("return");case 3:if(this._connecting=!0,r="undefined"!==typeof window&&(null===(t=window.coin98)||void 0===t?void 0:t.sol)){e.next=7;break}throw new l.WalletNotFoundError;case 7:if(r.isCoin98){e.next=9;break}throw new l.WalletNotInstalledError;case 9:return e.prev=9,e.next=12,r.connect();case 12:a=e.sent,s=i(a,1),o=s[0],e.next=20;break;case 17:throw e.prev=17,e.t0=e.catch(9),new l.WalletAccountError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 20:e.prev=20,u=new d.PublicKey(o),e.next=27;break;case 24:throw e.prev=24,e.t1=e.catch(20),new l.WalletPublicKeyError(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 27:this._wallet=r,this._publicKey=u,this.emit("connect"),e.next=36;break;case 32:throw e.prev=32,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 36:return e.prev=36,this._connecting=!1,e.finish(36);case 39:case"end":return e.stop()}}),e,this,[[0,32,36,39],[9,17],[20,24]])})))}},{key:"disconnect",value:function(){return f(this,void 0,void 0,n.mark((function t(){return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._wallet&&(this._wallet.disconnect(),this._wallet=null,this._publicKey=null,this.emit
2("disconnect"));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"signTransaction",value:function(t){return f(this,void 0,void 0,n.mark((function e(){var r,i,o,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new l.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.request({method:"sol_sign",params:[t]});case 7:return i=e.sent,o=new d.PublicKey(i.publicKey),a=p.default.decode(i.signature),t.addSignature(o,a),e.abrupt("return",t);case 14:throw e.prev=14,e.t0=e.catch(4),new l.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 17:e.next=23;break;case 19:throw e.prev=19,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 23:case"end":return e.stop()}}),e,this,[[0,19],[4,14]])})))}},{key:"signAllTransactions",value:function(t){return f(this,void 0,void 0,n.mark((function e(){var r=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this._wallet){e.next=4;break}throw new l.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,Promise.all(t.map((function(t){return r.signTransaction(t)})));case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new l.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}}]),r}(l.BaseSignerWalletAdapter);e.Coin98WalletAdapter=b},function(t,e,r){"use strict";var n=r(70),i=r(1),o=r(34),a=r(36),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.LedgerWalletAdapter=void 0;var h=f(r(418)),l=r(26),d=r(250),p=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,r),(t=e.call(this))._disconnected=function(){var e=t._transport;e&&(e.off("disconnect",t._disconnected),t._transport=null,t._publicKey=null,t.emit("error",new l.WalletDisconnectedError),t.emit("disconnect"))},t._derivationPath=n.derivationPath||(0,d.getDerivationPath)(0,0),t._connecting=!1,t._transport=null,t._publicKey=null,t}return a(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){return"undefined"!==typeof window&&!!navigator.hid}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._transport}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){return c(this,void 0,void 0,i.mark((function t(){var e,r;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:return this._connecting=!0,t.prev=4,t.next=7,h.default.create();case 7:e=t.sent,t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(4),new l.WalletConnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 13:return t.prev=13,t.next=16,(0,d.getPublicKey)(e,this._derivationPath);case 16:r=t.sent,t.next=22;break;case 19:throw t.prev=19,t.t1=t.catch(13),new l.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 22:e.on("disconnect",this._disconnected),this._transport=e,this._publicKey=r,this.emit("connect"),t.next=32;break;case 28:throw t.prev=28,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 32:return t.prev=32,this._connecting=!1,t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[0,28,32,35],[4,10],[13,19]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,i.mark((function t(){var e;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._transport)){t.next=14;break}return e.off("disconnect",this._disconnected),this._transport=null,this._publicKey=null,t.prev=5,t.next=8,e.close();case 8:t.next=13;break;
2case 10:t.prev=10,t.t0=t.catch(5),this.emit("error",new l.WalletDisconnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));case 13:this.emit("disconnect");case 14:case"end":return t.stop()}}),t,this,[[5,10]])})))}},{key:"signTransaction",value:function(t){return c(this,void 0,void 0,i.mark((function e(){var r,n,o;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._transport,n=this._publicKey,r&&n){e.next=5;break}throw new l.WalletNotConnectedError;case 5:return e.prev=5,e.next=8,(0,d.signTransaction)(r,t,this._derivationPath);case 8:o=e.sent,t.addSignature(n,o),e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(5),new l.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 15:return e.abrupt("return",t);case 18:throw e.prev=18,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 22:case"end":return e.stop()}}),e,this,[[0,18],[5,12]])})))}},{key:"signAllTransactions",value:function(t){return c(this,void 0,void 0,i.mark((function e(){var r,o,a,s,u,c,f;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._transport,o=this._publicKey,r&&o){e.next=5;break}throw new l.WalletNotConnectedError;case 5:e.prev=5,a=this._derivationPath,s=n(t),e.prev=8,s.s();case 10:if((u=s.n()).done){e.next=18;break}return c=u.value,e.next=14,(0,d.signTransaction)(r,c,a);case 14:f=e.sent,c.addSignature(o,f);case 16:e.next=10;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(8),s.e(e.t0);case 23:return e.prev=23,s.f(),e.finish(23);case 26:e.next=31;break;case 28:throw e.prev=28,e.t1=e.catch(5),new l.WalletSignTransactionError(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 31:return e.abrupt("return",t);case 34:throw e.prev=34,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 38:case"end":return e.stop()}}),e,this,[[0,34],[5,28],[8,20,23,26]])})))}}]),r}(l.BaseSignerWalletAdapter);e.LedgerWalletAdapter=p},function(t,e,r){"use strict";r.r(e),function(t){var n=r(215),i=r(333),o=r.n(i),a=r(135),s=r(219),u=r(42),c=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},h=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},l=function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},d=[{vendorId:a.b}],p=function(){return Promise.resolve(!(!window.navigator||!window.navigator.hid))},b=function(){var t=navigator.hid;if(!t)throw new u.TransportError("navigator.hid is not supported","HIDNotSupported");return t};function v(){return f(this,void 0,void 0,(function(){var t;return h(this,(function(e){switch(e.label){case 0:return[4,b().requestDevice({filters:d})];case 1:return t=e.sent(),Array.isArray(t)?[2,t]:[2,[t]]}}))}))}function m(){return f(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,b().getDevices()];case 1:return[2,t.sent().filter((function(t){return t.vendorId===a.b}))]}}))}))}var y=function(e){function r(r){var n=e.call(this)||this;return n.channel=Math.floor(65535*Math.random()),n.packetSize=64,n.inputs=[],n.read=function(){return n.inputs.length?Promise.resolve(n.inputs.shift()):new Promise((function(t){n.inputCallback=t}))},n.onInputReport=function(e){var r=t.from(e.data.buffer);n.inputCallback?(n.inputCallback(r),n.inputCallback=null):n.inputs.push(r)},n._disconnectEmitted=!1,n._emitDisconnect=function(t){n._disconnectEmitted||(n._disconnectEmitted=!0,n.emit("disconnect",t))},n.exchange=function(t){return f(n,void 0,void 0,(function(){var e=this;return h(this,(function(r){switch(r.label){case 0:return[4,this.exchangeAtomicImpl((function(){return f(e,void 0,void 0,(function(){var e,r,n,i,a,u,c,f,l;return h(this,(function(h){switch(h.label){case 0:r=(e=this).channel,n=e.packetSize,Object(s.a)("apdu","=> "+t.toString("hex")),i=o()(r,n),a=i.makeBlocks(t),u=0,h.label=1;case 1:return u<a.length?[4,this.device.sendReport(0,a[u])]:[3,4];case 2:h.sent(),h.label=3;case 3:return u++,[3,1];case 4:return(c=i.getReducedResult(f))?[3,6]:[4,this.read()];case 5:return l=h.sent(),f=i.reduceResponse(f,l),[3,4];case 6:return Object(s.a)("apdu","<= "+c.toString("hex")),[2,c]}}))}))})).catch((function(t){if(t&&t.message&&t.message.includes("write"))throw e._emitDisconnect(t),new u.DisconnectedDeviceDuringOperation(t.message);throw t}))];case 1:return[2,r.sent()]}}))}))},n.device=r,n.deviceModel="number"===typeof r.productId?Object(a.a)(r.productId):void 0,r.addEventListener("inputreport",n.onInputReport),n}return c(r,e),r.request=function(){return f(this,void 0,void 0,(function(){var t,e;return h(this,(function(n){switch(n.label){case 0:return[4,v()];case 1:return t=l.apply(void 0,[n.sent(),1]),e=t[0],[2,r.open(e)]}}))}))},r.openConnected=function(){return f(this,void 0,void 0,(function(){var t;return h(this,(function(e){switch(e.label){case 0:return[4,m()];case 1:return 0===(t=e.sent()).length?[2,null]:[2,r.open(t[0])]}}))}))},r.open=function(t){return f(this,void 0,void 0,(function(){var e,n;return h(this,(function(i){switch(i.label){case 0:return[4,t.open()];case 1:return i.sent(),e=new r(t),n=function(r){t===r.device&&(b().removeEventListener("disconnect",n),e._emitDisconnect(new u.DisconnectedDevice))},b().addEventListener("disconnect",n),[2,e]}}))}))},r.prototype.close=function(){return f(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,this.exchangeBusyPromise];case 1:return t.sent(),this.device.removeEventListener("inputreport",this.onInputReport),[4,this.device.close()];case 2:return t.sent(),[2]}}))}))},r.prototype.setScrambleKey=function(){},r.isSupported=p,r.list=m,r.listen=function(t){var e=!1;return function(){return f(this,void 0,void 0,(function(){var t;return h(this,(function(e){switch(e.label){case 0:return[4,m()];case 1:return(t=e.sent()).length>0?[2,t[0]]:[4,v()];
2case 2:return[2,e.sent()[0]]}}))}))}().then((function(r){if(r){if(!e){var n="number"===typeof r.productId?Object(a.a)(r.productId):void 0;t.next({type:"add",descriptor:r,deviceModel:n}),t.complete()}}else t.error(new u.TransportOpenUserCancelled("Access denied to use Ledger device"))}),(function(e){t.error(new u.TransportOpenUserCancelled(e.message))})),{unsubscribe:function(){e=!0}}},r}(n.default);e.default=y}.call(this,r(7).Buffer)},function(t,e,r){var n=r(99);t.exports=function(t,e){var r=n(t,e);return r?r.version:null}},function(t,e,r){var n=r(99);t.exports=function(t,e){var r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},function(t,e,r){var n=r(49);t.exports=function(t,e,r,i){"string"===typeof r&&(i=r,r=void 0);try{return new n(t,r).inc(e,i).version}catch(o){return null}}},function(t,e,r){var n=r(99),i=r(190);t.exports=function(t,e){if(i(t,e))return null;var r=n(t),o=n(e),a=r.prerelease.length||o.prerelease.length,s=a?"pre":"",u=a?"prerelease":"";for(var c in r)if(("major"===c||"minor"===c||"patch"===c)&&r[c]!==o[c])return s+c;return u}},function(t,e,r){var n=r(49);t.exports=function(t,e){return new n(t,e).major}},function(t,e,r){var n=r(49);t.exports=function(t,e){return new n(t,e).minor}},function(t,e,r){var n=r(49);t.exports=function(t,e){return new n(t,e).patch}},function(t,e,r){var n=r(99);t.exports=function(t,e){var r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},function(t,e,r){var n=r(58);t.exports=function(t,e,r){return n(e,t,r)}},function(t,e,r){var n=r(58);t.exports=function(t,e){return n(t,e,!0)}},function(t,e,r){var n=r(191);t.exports=function(t,e){return t.sort((function(t,r){return n(t,r,e)}))}},function(t,e,r){var n=r(191);t.exports=function(t,e){return t.sort((function(t,r){return n(r,t,e)}))}},function(t,e,r){var n=r(49),i=r(99),o=r(98),a=o.re,s=o.t;t.exports=function(t,e){if(t instanceof n)return t;if("number"===typeof t&&(t=String(t)),"string"!==typeof t)return null;var r=null;if((e=e||{}).rtl){for(var o;(o=a[s.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&o.index+o[0].length===r.index+r[0].length||(r=o),a[s.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;a[s.COERCERTL].lastIndex=-1}else r=t.match(a[s.COERCE]);return null===r?null:i("".concat(r[2],".").concat(r[3]||"0",".").concat(r[4]||"0"),e)}},function(t,e,r){"use strict";var n=r(34),i=r(36),o=r(433),a=Symbol("max"),s=Symbol("length"),u=Symbol("lengthCalculator"),c=Symbol("allowStale"),f=Symbol("maxAge"),h=Symbol("dispose"),l=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),b=Symbol("updateAgeOnGet"),v=function(){return 1},m=function(){function t(e){if(n(this,t),"number"===typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!==typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[a]=e.max||1/0;var r=e.length||v;if(this[u]="function"!==typeof r?v:r,this[c]=e.stale||!1,e.maxAge&&"number"!==typeof e.maxAge)throw new TypeError("maxAge must be a number");this[f]=e.maxAge||0,this[h]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[b]=e.updateAgeOnGet||!1,this.reset()}return i(t,[{key:"max",get:function(){return this[a]},set:function(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[a]=t||1/0,w(this)}},{key:"allowStale",get:function(){return this[c]},set:function(t){this[c]=!!t}},{key:"maxAge",get:function(){return this[f]},set:function(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[f]=t,w(this)}},{key:"lengthCalculator",get:function(){return this[u]},set:function(t){var e=this;"function"!==typeof t&&(t=v),t!==this[u]&&(this[u]=t,this[s]=0,this[d].forEach((function(t){t.length=e[u](t.value,t.key),e[s]+=t.length}))),w(this)}},{key:"length",get:function(){return this[s]}},{key:"itemCount",get:function(){return this[d].length}},{key:"rforEach",value:function(t,e){e=e||this;for(var r=this[d].tail;null!==r;){var n=r.prev;M(this,t,r,e),r=n}}},{key:"forEach",value:function(t,e){e=e||this;for(var r=this[d].head;null!==r;){var n=r.next;M(this,t,r,e),r=n}}},{key:"keys",value:function(){return this[d].toArray().map((function(t){return t.key}))}},{key:"values",value:function(){return this[d].toArray().map((function(t){return t.value}))}},{key:"reset",value:function(){var t=this;
vendor: 5,181 bytes, line 2
2this[h]&&this[d]&&this[d].length&&this[d].forEach((function(e){return t[h](e.key,e.value)})),this[p]=new Map,this[d]=new o,this[s]=0}},{key:"dump",value:function(){var t=this;return this[d].map((function(e){return!g(t,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}})).toArray().filter((function(t){return t}))}},{key:"dumpLru",value:function(){return this[d]}},{key:"set",value:function(t,e,r){if((r=r||this[f])&&"number"!==typeof r)throw new TypeError("maxAge must be a number");var n=r?Date.now():0,i=this[u](e,t);if(this[p].has(t)){if(i>this[a])return _(this,this[p].get(t)),!1;var o=this[p].get(t).value;return this[h]&&(this[l]||this[h](t,o.value)),o.now=n,o.maxAge=r,o.value=e,this[s]+=i-o.length,o.length=i,this.get(t),w(this),!0}var c=new k(t,e,i,n,r);return c.length>this[a]?(this[h]&&this[h](t,e),!1):(this[s]+=c.length,this[d].unshift(c),this[p].set(t,this[d].head),w(this),!0)}},{key:"has",value:function(t){if(!this[p].has(t))return!1;var e=this[p].get(t).value;return!g(this,e)}},{key:"get",value:function(t){return y(this,t,!0)}},{key:"peek",value:function(t){return y(this,t,!1)}},{key:"pop",value:function(){var t=this[d].tail;return t?(_(this,t),t.value):null}},{key:"del",value:function(t){_(this,this[p].get(t))}},{key:"load",value:function(t){this.reset();for(var e=Date.now(),r=t.length-1;r>=0;r--){var n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{var o=i-e;o>0&&this.set(n.k,n.v,o)}}}},{key:"prune",value:function(){var t=this;this[p].forEach((function(e,r){return y(t,r,!1)}))}}]),t}(),y=function(t,e,r){var n=t[p].get(e);if(n){var i=n.value;if(g(t,i)){if(_(t,n),!t[c])return}else r&&(t[b]&&(n.value.now=Date.now()),t[d].unshiftNode(n));return i.value}},g=function(t,e){if(!e||!e.maxAge&&!t[f])return!1;var r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[f]&&r>t[f]},w=function(t){if(t[s]>t[a])for(var e=t[d].tail;t[s]>t[a]&&null!==e;){var r=e.prev;_(t,e),e=r}},_=function(t,e){if(e){var r=e.value;t[h]&&t[h](r.key,r.value),t[s]-=r.length,t[p].delete(r.key),t[d].removeNode(e)}},k=function t(e,r,i,o,a){n(this,t),this.key=e,this.value=r,this.length=i,this.now=o,this.maxAge=a||0},M=function(t,e,r,n){var i=r.value;g(t,i)&&(_(t,r),t[c]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=m},function(t,e,r){"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r){var n=e===t.head?new s(r,null,e,t):new s(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}function o(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,r,n){if(!(this instanceof s))return new s(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)a(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;
2i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<e;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(t,e){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,n=this.head;null!==n&&r<t;r++)n=n.next;var o=[];for(r=0;n&&r<e;r++)o.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(r=0;r<(arguments.length<=2?0:arguments.length-2);r++)n=i(this,n,r+2<2||arguments.length<=r+2?void 0:arguments[r+2]);return o},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(434)(n)}catch(u){}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){t.prototype[Symbol.iterator]=n.mark((function t(){var e;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.head;case 1:if(!e){t.next=7;break}return t.next=4,e.value;case 4:e=e.next,t.next=1;break;case 7:case"end":return t.stop()}}),t,this)}))}},function(t,e,r){var n=r(59);t.exports=function(t,e){return new n(t,e).set.map((function(t){return t.map((function(t){return t.value})).join(" ").trim().split(" ")}))}},function(t,e,r){var n=r(49),i=r(59);t.exports=function(t,e,r){var o=null,a=null,s=null;try{s=new i(e,r)}catch(u){return null}return t.forEach((function(t){s.test(t)&&(o&&-1!==a.compare(t)||(a=new n(o=t,r)))})),o}},function(t,e,r){var n=r(49),i=r(59);t.exports=function(t,e,r){var o=null,a=null,s=null;try{s=new i(e,r)}catch(u){return null}return t.forEach((function(t){s.test(t)&&(o&&1!==a.compare(t)||(a=new n(o=t,r)))})),o}},function(t,e,r){var n=r(49),i=r(59),o=r(147);t.exports=function(t,e){t=new i(t,e);var r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(var a=function(e){var i=t.set[e],a=null;i.forEach((function(t){var e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":a&&!o(e,a)||(a=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(t.operator))}})),!a||r&&!o(r,a)||(r=a)},s=0;s<t.set.length;++s)a(s);return r&&t.test(r)?r:null}},function(t,e,r){var n=r(59);t.exports=function(t,e){try{return new n(t,e).range||"*"}catch(r){return null}}},function(t,e,r){var n=r(195);t.exports=function(t,e,r){return n(t,e,">",r)}},function(t,e,r){var n=r(195);t.exports=function(t,e,r){return n(t,e,"<",r)}},function(t,e,r){var n=r(59);t.exports=function(t,e,r){return t=new n(t,r),e=new n(e,r),t.intersects(e)}},function(t,e,r){var n=r(137),i=r(70),o=r(149),a=r(58);t.exports=function(t,e,r){var s,u=[],c=null,f=null,h=t.sort((function(t,e){return a(t,e,r)})),l=i(h);try{for(l.s();!(s=l.n()).done;){var d=s.value;o(d,e,r)?(f=d,c||(c=d)):(f&&u.push([c,f]),f=null,c=null)}}catch(k){l.e(k)}finally{l.f()}c&&u.push([c,null]);for(var p=[],b=0,v=u;b<v.length;b++){var m=n(v[b],2),y=m[0],g=m[1];y===g?p.push(y):g||y!==h[0]?g?y===h[0]?p.push("<=".concat(g)):p.push("".concat(y," - ").concat(g)):p.push(">=".concat(y)):p.push("*")}var w=p.join(" || "),_="string"===typeof e.raw?e.raw:String(e);return w.length<_.length?w:e}},function(t,e,r){var n=r(70),i=r(59),o=r(148),a=o.ANY,s=r(149),u=r(58),c=function(t,e,r){if(t===e)return!0;
2if(1===t.length&&t[0].semver===a){if(1===e.length&&e[0].semver===a)return!0;t=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===e.length&&e[0].semver===a){if(r.includePrerelease)return!0;e=[new o(">=0.0.0")]}var i,c,l,d,p=new Set,b=n(t);try{for(b.s();!(l=b.n()).done;){var v=l.value;">"===v.operator||">="===v.operator?i=f(i,v,r):"<"===v.operator||"<="===v.operator?c=h(c,v,r):p.add(v.semver)}}catch(P){b.e(P)}finally{b.f()}if(p.size>1)return null;if(i&&c){if((d=u(i.semver,c.semver,r))>0)return null;if(0===d&&(">="!==i.operator||"<="!==c.operator))return null}var m,y,g,w,_,k=n(p);try{for(k.s();!(m=k.n()).done;){var M=m.value;if(i&&!s(M,String(i),r))return null;if(c&&!s(M,String(c),r))return null;var S,E=n(e);try{for(E.s();!(S=E.n()).done;){var x=S.value;if(!s(M,String(x),r))return!1}}catch(P){E.e(P)}finally{E.f()}return!0}}catch(P){k.e(P)}finally{k.f()}var A=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver,O=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;A&&1===A.prerelease.length&&"<"===c.operator&&0===A.prerelease[0]&&(A=!1);var j,R=n(e);try{for(R.s();!(j=R.n()).done;){var I=j.value;if(_=_||">"===I.operator||">="===I.operator,w=w||"<"===I.operator||"<="===I.operator,i)if(O&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===O.major&&I.semver.minor===O.minor&&I.semver.patch===O.patch&&(O=!1),">"===I.operator||">="===I.operator){if((y=f(i,I,r))===I&&y!==i)return!1}else if(">="===i.operator&&!s(i.semver,String(I),r))return!1;if(c)if(A&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===A.major&&I.semver.minor===A.minor&&I.semver.patch===A.patch&&(A=!1),"<"===I.operator||"<="===I.operator){if((g=h(c,I,r))===I&&g!==c)return!1}else if("<="===c.operator&&!s(c.semver,String(I),r))return!1;if(!I.operator&&(c||i)&&0!==d)return!1}}catch(P){R.e(P)}finally{R.f()}return!(i&&w&&!c&&0!==d)&&(!(c&&_&&!i&&0!==d)&&(!O&&!A))},f=function(t,e,r){if(!t)return e;var n=u(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},h=function(t,e,r){if(!t)return e;var n=u(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return!0;t=new i(t,r),e=new i(e,r);var o,a=!1,s=n(t.set);try{t:for(s.s();!(o=s.n()).done;){var u,f=o.value,h=n(e.set);try{for(h.s();!(u=h.n()).done;){var l=u.value,d=c(f,l,r);if(a=a||null!==d,d)continue t}}catch(p){h.e(p)}finally{h.f()}if(a)return!1}}catch(p){s.e(p)}finally{s.f()}return!0}},function(t,e,r){"use strict";var n=r(1),i=r(34),o=r(36),a=r(57),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.MathWalletWalletAdapter=void 0;var f=r(26),h=r(16),l=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,r),(t=e.call(this))._messaged=function(e){var r=e.data;r&&"mathwallet_internal"===r.origin&&"lockStatusChanged"===r.type&&!r.payload&&t._disconnected()},t._disconnected=function(){t._wallet&&(window.removeEventListener("message",t._messaged),t._wallet=null,t._publicKey=null,t.emit("error",new f.WalletDisconnectedError),t.emit("disconnect"))},t._connecting=!1,t._wallet=null,t._publicKey=null,t.ready||(0,f.pollUntilReady)(a(t),n.pollInterval||1e3,n.pollCount||3),t}return o(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){var t;return"undefined"!==typeof window&&!!(null===(t=window.solana)||void 0===t?void 0:t.isMathWallet)}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._wallet}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e,r,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e="undefined"!==typeof window&&window.solana){t.next=7;break}throw new f.WalletNotFoundError;case 7:if(e.isMathWallet){t.next=9;break}throw new f.WalletNotInstalledError;case 9:return t.prev=9,t.next=12,e.getAccount();case 12:r=t.sent,t.next=18;break;case 15:throw t.prev=15,t.t0=t.catch(9),new f.WalletAccountError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 18:t.prev=18,i=new h.PublicKey(r),t.next=25;break;case 22:throw t.prev=22,t.t1=t.catch(18),new f.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 25:window.addEventListener("message",this._messaged),this._wallet=e,this._publicKey=i,this.emit
2("connect"),t.next=35;break;case 31:throw t.prev=31,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 35:return t.prev=35,this._connecting=!1,t.finish(35);case 38:case"end":return t.stop()}}),t,this,[[0,31,35,38],[9,15],[18,22]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,n.mark((function t(){return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._wallet&&(window.removeEventListener("message",this._messaged),this._wallet=null,this._publicKey=null,this.emit("disconnect"));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"signTransaction",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}},{key:"signAllTransactions",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}}]),r}(f.BaseSignerWalletAdapter);e.MathWalletWalletAdapter=l},function(t,e,r){"use strict";var n=r(1),i=r(34),o=r(36),a=r(57),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.PhantomWalletAdapter=void 0;var f=r(26),h=r(16),l=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,r),(t=e.call(this))._disconnected=function(){var e=t._wallet;e&&(e.off("disconnect",t._disconnected),t._wallet=null,t._publicKey=null,t.emit("error",new f.WalletDisconnectedError),t.emit("disconnect"))},t._connecting=!1,t._wallet=null,t._publicKey=null,t.ready||(0,f.pollUntilReady)(a(t),n.pollInterval||1e3,n.pollCount||3),t}return o(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){var t;return"undefined"!==typeof window&&!!(null===(t=window.solana)||void 0===t?void 0:t.isPhantom)}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected)}},{key:"autoApprove",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.autoApprove)}},{key:"connect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e,r,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e="undefined"!==typeof window&&window.solana){t.next=7;break}throw new f.WalletNotFoundError;case 7:if(e.isPhantom){t.next=9;break}throw new f.WalletNotInstalledError;case 9:if(e.isConnected){t.next=24;break}return r=e._handleDisconnect,t.prev=11,t.next=14,new Promise((function(t,n){var i=function r(){e.off("connect",r),t()};e._handleDisconnect=function(){e.off("connect",i),n(new f.WalletWindowClosedError);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return r.apply(e,o)},e.on("connect",i),e.connect().catch((function(t){e.off("connect",i),n(t)}))}));case 14:t.next=21;break;case 16:if(t.prev=16,t.t0=t.catch(11),!(t.t0 instanceof f.WalletError)){t.next=20;break}throw t.t0;case 20:throw new f.WalletConnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 21:return t.prev=21,e._handleDisconnect=r,t.finish(21);case 24:if(e.publicKey){t.next=26;break}throw new f.WalletConnectionError;case 26:t.prev=26,i=new h.PublicKey(e.publicKey.toBytes()),t.next=33;break;case 30:throw t.prev=30,t.t1=t.catch(26),new f.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 33:e.on("disconnect",this._disconnected),this._wallet=e,this._publicKey=i,this.emit
2("connect"),t.next=43;break;case 39:throw t.prev=39,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 43:return t.prev=43,this._connecting=!1,t.finish(43);case 46:case"end":return t.stop()}}),t,this,[[0,39,43,46],[11,16,21,24],[26,30]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._wallet)){t.next=14;break}return e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,t.prev=5,t.next=8,e.disconnect();case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),this.emit("error",new f.WalletDisconnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));case 13:this.emit("disconnect");case 14:case"end":return t.stop()}}),t,this,[[5,10]])})))}},{key:"signTransaction",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}},{key:"signAllTransactions",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}},{key:"signMessage",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r,i,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signMessage(t);case 7:return i=e.sent,o=i.signature,e.abrupt("return",Uint8Array.from(o));case 12:throw e.prev=12,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 15:e.next=21;break;case 17:throw e.prev=17,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 21:case"end":return e.stop()}}),e,this,[[0,17],[4,12]])})))}}]),r}(f.BaseMessageSignerWalletAdapter);e.PhantomWalletAdapter=l},function(t,e,r){"use strict";var n=r(1),i=r(34),o=r(36),a=r(57),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SafePalWalletAdapter=void 0;var f=r(26),h=r(16),l=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,r),(t=e.call(this))._connecting=!1,t._wallet=null,t._publicKey=null,t.ready||(0,f.pollUntilReady)(a(t),n.pollInterval||1e3,n.pollCount||3),t}return o(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){var t;return"undefined"!==typeof window&&!!(null===(t=window.safepal)||void 0===t?void 0:t.isSafePalWallet)}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._wallet}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e,r,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e=window.safepal){t.next=7;break}throw new f.WalletNotFoundError;case 7:if(e.isSafePalWallet){t.next=9;break}throw new f.WalletNotInstalledError;case 9:return t.prev=9,t.next=12,e.getAccount();case 12:r=t.sent,t.next=18;break;case 15:throw t.prev=15,t.t0=t.catch(9),new f.WalletAccountError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 18:t.prev=18,i=new h.PublicKey(r),t.next=25;break;case 22:throw t.prev=22,t.t1=t.catch(18),new f.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);
2case 25:this._wallet=e,this._publicKey=i,this.emit("connect"),t.next=34;break;case 30:throw t.prev=30,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 34:return t.prev=34,this._connecting=!1,t.finish(34);case 37:case"end":return t.stop()}}),t,this,[[0,30,34,37],[9,15],[18,22]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,n.mark((function t(){return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._wallet&&(this._wallet=null,this._publicKey=null,this.emit("disconnect"));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"signTransaction",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.abrupt("return",r.signTransaction(t));case 8:throw e.prev=8,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 11:e.next=17;break;case 13:throw e.prev=13,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 17:case"end":return e.stop()}}),e,this,[[0,13],[4,8]])})))}},{key:"signAllTransactions",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.abrupt("return",r.signAllTransactions(t));case 8:throw e.prev=8,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 11:e.next=17;break;case 13:throw e.prev=13,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 17:case"end":return e.stop()}}),e,this,[[0,13],[4,8]])})))}}]),r}(f.BaseSignerWalletAdapter);e.SafePalWalletAdapter=l},function(t,e,r){"use strict";var n=r(1),i=r(34),o=r(36),a=r(57),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SlopeWalletAdapter=void 0;var h=r(26),l=r(16),d=f(r(23)),p=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,r),(t=e.call(this))._connecting=!1,t._wallet=null,t._publicKey=null,t.ready||(0,h.pollUntilReady)(a(t),n.pollInterval||1e3,n.pollCount||3),t}return o(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){return"undefined"!==typeof window&&!!window.Slope}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._publicKey}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e,r,i,o,a;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,window.Slope){t.next=6;break}throw new h.WalletNotFoundError;case 6:return e=new window.Slope,t.prev=7,t.next=10,e.connect();case 10:if(i=t.sent,(o=i.data).publicKey){t.next=14;break}throw new h.WalletConnectionError;case 14:r=o.publicKey,t.next=22;break;case 17:if(t.prev=17,t.t0=t.catch(7),!(t.t0 instanceof h.WalletError)){t.next=21;break}throw t.t0;case 21:throw new h.WalletConnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 22:t.prev=22,a=new l.PublicKey(r),t.next=29;break;case 26:throw t.prev=26,t.t1=t.catch(22),new h.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 29:this._wallet=e,this._publicKey=a,this.emit("connect"),t.next=38;break;case 34:throw t.prev=34,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 38:return t.prev=38,this._connecting=!1,t.finish(38);case 41:case"end":return t.stop()}}),t,this,[[0,34,38,41],[7,17],[22,26]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e,r,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._wallet)){t.next=18;break}return this._wallet=null,this._publicKey=null,t.prev=4,t.next=7,e.disconnect();case 7:if(r=t.sent,"ok"===(i=r.msg)){t.next=11;break}throw new h.WalletDisconnectionError(i);case 11:t.next=17;break;case 13:t.prev=13,t.t0=t.catch(4),t.t0 instanceof h.WalletError||(t.t0=new h.WalletDisconnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0)),this.emit
2("error",t.t0);case 17:this.emit("disconnect");case 18:case"end":return t.stop()}}),t,this,[[4,13]])})))}},{key:"signTransaction",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r,i,o,a,s,u,c;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new h.WalletNotConnectedError;case 4:return e.prev=4,i=d.default.encode(t.serializeMessage()),e.next=8,r.signTransaction(i);case 8:if(o=e.sent,a=o.msg,(s=o.data).publicKey&&s.signature){e.next=13;break}throw new h.WalletSignTransactionError(a);case 13:return u=new l.PublicKey(s.publicKey),c=d.default.decode(s.signature),t.addSignature(u,c),e.abrupt("return",t);case 19:if(e.prev=19,e.t0=e.catch(4),!(e.t0 instanceof h.WalletError)){e.next=23;break}throw e.t0;case 23:throw new h.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 24:e.next=30;break;case 26:throw e.prev=26,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 30:case"end":return e.stop()}}),e,this,[[0,26],[4,19]])})))}},{key:"signAllTransactions",value:function(t){var e;return c(this,void 0,void 0,n.mark((function r(){var i,o,a,s,u,c,f,p;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,i=this._wallet){r.next=4;break}throw new h.WalletNotConnectedError;case 4:return r.prev=4,o=t.map((function(t){return d.default.encode(t.serializeMessage())})),r.next=8,i.signAllTransactions(o);case 8:if(a=r.sent,s=a.msg,u=a.data,c=t.length,u.publicKey&&(null===(e=u.signatures)||void 0===e?void 0:e.length)===c){r.next=14;break}throw new h.WalletSignTransactionError(s);case 14:for(f=new l.PublicKey(u.publicKey),p=0;p<c;p++)t[p].addSignature(f,d.default.decode(u.signatures[p]));return r.abrupt("return",t);case 19:if(r.prev=19,r.t0=r.catch(4),!(r.t0 instanceof h.WalletError)){r.next=23;break}throw r.t0;case 23:throw new h.WalletSignTransactionError(null===r.t0||void 0===r.t0?void 0:r.t0.message,r.t0);case 24:r.next=30;break;case 26:throw r.prev=26,r.t1=r.catch(0),this.emit("error",r.t1),r.t1;case 30:case"end":return r.stop()}}),r,this,[[0,26],[4,19]])})))}}]),r}(h.BaseSignerWalletAdapter);e.SlopeWalletAdapter=p},function(t,e,r){"use strict";var n=r(1),i=r(34),o=r(36),a=r(57),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SolflareWalletAdapter=void 0;var f=r(26),h=r(16),l=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,r),(t=e.call(this))._disconnected=function(){var e=t._wallet;e&&(e.off("disconnect",t._disconnected),t._wallet=null,t._publicKey=null,t.emit("error",new f.WalletDisconnectedError),t.emit("disconnect"))},t._connecting=!1,t._wallet=null,t._publicKey=null,t.ready||(0,f.pollUntilReady)(a(t),n.pollInterval||1e3,n.pollCount||3),t}return o(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){var t;return"undefined"!==typeof window&&!!(null===(t=window.solflare)||void 0===t?void 0:t.isSolflare)}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected)}},{key:"autoApprove",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.autoApprove)}},{key:"connect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e,r;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e="undefined"!==typeof window&&window.solflare){t.next=7;break}throw new f.WalletNotFoundError;case 7:if(e.isSolflare){t.next=9;break}throw new f.WalletNotInstalledError;case 9:if(e.isConnected){t.next=18;break}return t.prev=10,t.next=13,e.connect();case 13:t.next=18;break;case 15:throw t.prev=15,t.t0=t.catch(10),new f.WalletConnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 18:if(e.publicKey){t.next=20;break}throw new f.WalletConnectionError;case 20:t.prev=20,r=new h.PublicKey(e.publicKey.toBytes()),t.next=27;break;case 24:throw t.prev=24,t.t1=t.catch(20),new f.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 27:e.on("disconnect",this._disconnected),this._wallet=e,this._publicKey=r,this.emit
2("connect"),t.next=37;break;case 33:throw t.prev=33,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 37:return t.prev=37,this._connecting=!1,t.finish(37);case 40:case"end":return t.stop()}}),t,this,[[0,33,37,40],[10,15],[20,24]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._wallet)){t.next=14;break}return e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,t.prev=5,t.next=8,e.disconnect();case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),this.emit("error",new f.WalletDisconnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));case 13:this.emit("disconnect");case 14:case"end":return t.stop()}}),t,this,[[5,10]])})))}},{key:"signTransaction",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}},{key:"signAllTransactions",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}}]),r}(f.BaseSignerWalletAdapter);e.SolflareWalletAdapter=l},function(t,e,r){"use strict";var n=r(1),i=r(34),o=r(36),a=r(57),s=r(39),u=r(40),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SolongWalletAdapter=void 0;var f=r(26),h=r(16),l=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,r),(t=e.call(this))._connecting=!1,t._wallet=null,t._publicKey=null,t.ready||(0,f.pollUntilReady)(a(t),n.pollInterval||1e3,n.pollCount||3),t}return o(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){return"undefined"!==typeof window&&!!window.solong}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.currentAccount)}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){return c(this,void 0,void 0,n.mark((function t(){var e,r,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e="undefined"!==typeof window&&window.solong){t.next=7;break}throw new f.WalletNotFoundError;case 7:return t.prev=7,t.next=10,e.selectAccount();case 10:r=t.sent,t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(7),new f.WalletAccountError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 16:t.prev=16,i=new h.PublicKey(r),t.next=23;break;case 20:throw t.prev=20,t.t1=t.catch(16),new f.WalletPublicKeyError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 23:this._wallet=e,this._publicKey=i,this.emit("connect"),t.next=32;break;case 28:throw t.prev=28,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 32:return t.prev=32,this._connecting=!1,t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[0,28,32,35],[7,13],[16,20]])})))}},{key:"disconnect",value:function(){return c(this,void 0,void 0,n.mark((function t(){return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._wallet&&(this._wallet=null,this._publicKey=null,this.emit
2("disconnect"));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"signTransaction",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}},{key:"signAllTransactions",value:function(t){return c(this,void 0,void 0,n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new f.WalletNotConnectedError;case 4:return e.prev=4,e.next=7,Promise.all(t.map((function(t){return r.signTransaction(t)})));case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new f.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})))}}]),r}(f.BaseSignerWalletAdapter);e.SolongWalletAdapter=l},function(t,e,r){"use strict";var n=r(70),i=r(1),o=r(34),a=r(36),s=r(39),u=r(40),c=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),f=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),h=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&c(e,t,r);return f(e,t),e},l=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.TorusWalletAdapter=void 0;var d=r(26),p=r(16),b=h(r(452)),v=r(563),m=function(t){s(r,t);var e=u(r);function r(t){var n;return o(this,r),(n=e.call(this))._options=Object.assign({uxMode:"popup",network:b.OPENLOGIN_NETWORK.MAINNET},t.options),n._connecting=!1,n._openLogin=null,n._keypair=null,n}return a(r,[{key:"publicKey",get:function(){var t;return(null===(t=this._keypair)||void 0===t?void 0:t.publicKey)||null}},{key:"ready",get:function(){return"undefined"!==typeof window}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._keypair}},{key:"autoApprove",get:function(){return!1}},{key:"connect",value:function(){return l(this,void 0,void 0,i.mark((function t(){var e,r,n,o;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:return this._connecting=!0,t.prev=4,e=new b.default(this._options),t.next=8,e.init();case 8:if(r=e.privKey){t.next=17;break}return t.prev=10,t.next=13,new Promise((function(t,r){n=function(t){var e=t.reason;switch(null===e||void 0===e?void 0:e.message.toLowerCase()){case"user closed popup":e=new d.WalletWindowClosedError(e.message,e);break;case"unable to open window":e=new d.WalletWindowBlockedError(e.message,e)}r(e)},window.addEventListener("unhandledrejection",n),e.login().then((function(r){return t(e.privKey)}),(function(t){return n({reason:t})}))}));case 13:r=t.sent;case 14:return t.prev=14,window.removeEventListener("unhandledrejection",n),t.finish(14);case 17:t.next=24;break;case 19:if(t.prev=19,t.t0=t.catch(4),!(t.t0 instanceof d.WalletError)){t.next=23;break}throw t.t0;case 23:throw new d.WalletConnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 24:t.prev=24,o=p.Keypair.fromSecretKey((0,v.getED25519Key)(r).sk),t.next=31;break;case 28:throw t.prev=28,t.t1=t.catch(24),new d.WalletKeypairError(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);
2case 31:this._openLogin=e,this._keypair=o,this.emit("connect"),t.next=40;break;case 36:throw t.prev=36,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 40:return t.prev=40,this._connecting=!1,t.finish(40);case 43:case"end":return t.stop()}}),t,this,[[0,36,40,43],[4,19],[10,,14,17],[24,28]])})))}},{key:"disconnect",value:function(){return l(this,void 0,void 0,i.mark((function t(){var e;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._openLogin)){t.next=15;break}return this._openLogin=null,this._keypair=null,t.prev=4,t.next=7,e.logout();case 7:return t.next=9,e._cleanup();case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),this.emit("error",new d.WalletDisconnectionError(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));case 14:this.emit("disconnect");case 15:case"end":return t.stop()}}),t,this,[[4,11]])})))}},{key:"signTransaction",value:function(t){return l(this,void 0,void 0,i.mark((function e(){var r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._keypair){e.next=4;break}throw new d.WalletNotConnectedError;case 4:e.prev=4,t.partialSign(r),e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(4),new d.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 11:return e.abrupt("return",t);case 14:throw e.prev=14,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 18:case"end":return e.stop()}}),e,this,[[0,14],[4,8]])})))}},{key:"signAllTransactions",value:function(t){return l(this,void 0,void 0,i.mark((function e(){var r,o,a;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._keypair){e.next=4;break}throw new d.WalletNotConnectedError;case 4:e.prev=4,o=n(t);try{for(o.s();!(a=o.n()).done;)a.value.partialSign(r)}catch(i){o.e(i)}finally{o.f()}e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(4),new d.WalletSignTransactionError(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 12:return e.abrupt("return",t);case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,9]])})))}}]),r}(d.BaseSignerWalletAdapter);e.TorusWalletAdapter=m},function(t,e,r){(function(e){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=23)}([function(t,e){t.exports=r(140)},function(t,e,r){"use strict";r.d(e,"f",(function(){return n})),r.d(e,"g",(function(){return i})),r.d(e,"h",(function(){return o})),r.d(e,"e",(function(){return a})),r.d(e,"c",(function(){return s})),r.d(e,"a",(function(){return u})),r.d(e,"d",(function(){return c})),r.d(e,"b",(function(){return f}));var n="openlogin-iframe",i="openlogin-modal",o="openlogin_store",a={POPUP:"popup",REDIRECT:"redirect"},s={LOGIN:"openlogin_login",LOGOUT:"openlogin_logout",CHECK_3PC_SUPPORT:"openlogin_check_3PC_support",SET_PID_DATA:"openlogin_set_pid_data",GET_DATA:"openlogin_get_data"},u={POPUP:"popup",REDIRECT:"redirect",JRPC:"jrpc"},c={MAINNET:"mainnet",TESTNET:"testnet",DEVELOPMENT:"development"},f={GOOGLE:"google",FACEBOOK:"facebook",REDDIT:"reddit",DISCORD:"discord",TWITCH:"twitch",APPLE:"apple",LINE:"line",GITHUB:"github",KAKAO:"kakao",LINKEDIN:"linkedin",TWITTER:"twitter",WEIBO:"weibo",WECHAT:"wechat",EMAIL_PASSWORDLESS:"email_passwordless",WEBAUTHN:"webauthn",JWT:"jwt"}},function(t,e){t.exports=r(141)},function(t,e){t.exports=r(5)},function(t,r,n){"use strict";n.d(r,"c",(function(){return f})),n.d(r,"f",(function(){return l})),n.d(r,"k",(function(){return d})),n.d(r,"d",(function(){return b})),n.d(r,"a",(function(){return v})),n.d(r,"b",(function(){return m})),n.d(r,"j",(function(){return y}
2)),n.d(r,"i",(function(){return g})),n.d(r,"g",(function(){return w})),n.d(r,"h",(function(){return _})),n.d(r,"e",(function(){return k}));var i=n(2),o=n.n(i),a=n(0),s=n.n(a),u=n(9),c=n(5);function f(){return h.apply(this,arguments)}function h(){return(h=o()(s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",(function(){t()}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var l=function(t){var e=window.document.createElement("template"),r=t.trim();return e.innerHTML=r,e.content.firstChild};function d(t,e,r){return p.apply(this,arguments)}function p(){return(p=o()(s.a.mark((function t(r,n,i){var o,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.from(n.padStart(64,"0"),"hex"),c.base64url.encode(Object(u.getPublic)(o))===r){t.next=3;break}throw new Error("appKey mismatch");case 3:return t.next=5,Object(u.sign)(o,e.from(Object(c.keccak)("keccak256").update(i).digest("hex"),"hex"));case 5:return a=t.sent,t.abrupt("return",c.base64url.encode(a));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={},r=new URL(window.location.href);r.searchParams.forEach((function(t,r){"result"!==r&&(e[r]=t)}));var n=r.searchParams.get("result");if(n)try{var i=JSON.parse(Object(c.safeatob)(n));
2Object.keys(i).forEach((function(t){e[t]=i[t]}))}catch(h){window.console.error(h)}var o=r.hash.substr(1),a=new URL("".concat(window.location.origin,"/?").concat(o));a.searchParams.forEach((function(t,r){"result"!==r&&(e[r]=t)}));var s=a.searchParams.get("result");if(s)try{var u=JSON.parse(Object(c.safeatob)(s));Object.keys(u).forEach((function(t){e[t]=u[t]}))}catch(h){window.console.error(h)}if(t){var f=window.location.origin+window.location.pathname;window.history.replaceState(null,"",f)}return e}function v(t,e){return new Promise((function(r,n){e||n(new Error("Unable to open window"));var i=!1,o=setInterval((function(){!i&&e.closed&&(clearInterval(o),n(new Error("user closed popup")))}),500);window.addEventListener("message",(function a(s){var u=s.data.pid;t===u&&(window.removeEventListener("message",a),i=!0,clearInterval(o),e.close(),s.data.data&&s.data.data.error?n(new Error(s.data.data.error)):r(s.data.data))}))}))}function m(t){var e=t.baseURL,r=t.query,n=t.hash,i=new URL(e);if(r&&Object.keys(r).forEach((function(t){i.searchParams.append(t,r[t])})),n){var o=new URL(m({baseURL:e,query:n})).searchParams.toString();i.hash=o}return i.toString()}function y(t){var e,r=!1,n=0;try{e=window[t],r=!0,n=e.length;var i="__storage_test__";return e.setItem(i,i),e.removeItem(i),!0}catch(o){return o&&(22===o.code||1014===o.code||"QuotaExceededErro r"===o.name||"NS_ERROR_DOM_QUOTA_REACHED"===o.name)&&r&&0!==n}}var g=y("sessionStorage"),w=y("localStorage");function _(t){try{var e=document.createElement("link");e.href=t,e.crossOrigin="anonymous",e.type="text/html",e.rel="prefetch",e.relList&&e.relList.supports&&e.relList.supports("prefetch")&&document.head.appendChild(e)}catch(r){window.console.error(r)}}function k(){var t=void 0!==window.screenLeft?window.screenLeft:window.screenX,e=void 0!==window.screenTop?window.screenTop:window.screenY,r=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,n=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,i=Math.abs((r-1200)/2/1+t),o=Math.abs((n-700)/2/1+e);return"titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=".concat(700,",width=").concat(1200,",top=").concat(o,",left=").concat(i)}},function(t,e){t.exports=r(251)},function(t,e){t.exports=r(474)},function(t,e){t.exports=r(93)},function(t,e){t.exports=r(118)},function(t,e){t.exports=r(481)},function(t,e){t.exports=r(139)},function(t,e){t.exports=r(260)},function(t,r,n){"use strict";var i=n(15),o=n.n(i),a=n(11),s=n.n(a),u=n(2),c=n.n(u),f=n(7),h=n.n(f),l=n(8),d=n.n(l),p=n(3),b=n.n(p),v=n(0),m=n.n(v),y=n(9),g=n(16),w=n(6),_=n(5),k=n(19),M=n.n(k),S=n(1),E=n(4),x=function(t,e,r){t.on(e,(function n(i){r(i),t.removeListener(e,n)}))},A=function(){function t(e){h()(this,t),b()(this,"modalUrl",void 0),b()(this,"iframeElem",void 0),b()(this,"initialized",!1),b()(this,"modalZIndex",99999),b()(this,"mux",void 0),b()(this,"verifierStream",void 0),this.modalUrl=e}return d()(t,[{key:"init",value:function(){var t=c()(m.a.mark((function t(){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initIFrame(this.modalUrl);case 2:this.setupStream();case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setupStream",value:function(){if(null===this.iframeElem)throw new Error("iframe is null");this.mux=Object(w.setupMultiplex)(new w.PostMessageStream({name:"modal_iframe_rpc",target:"modal_rpc",targetWindow:this.iframeElem.contentWindow})),this.verifierStream=this.mux.createStream("verifier")}},{key:"initIFrame",value:function(){var t=c()(m.a.mark((function t(e){var r,n;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(E.c)();case 2:(r=document.getElementById(S.g))&&(r.remove(),window.console.log("already initialized, removing previous modal iframe")),(n=document.createElement("iframe")).src=e,n.id=S.g,this.iframeElem=n,this._hideModal(),document.body.appendChild(this.iframeElem);case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_showModal",value:function(){var t={display:"block",position:"fixed",width:"100%",height:"100%",top:"0px",right:"0px",left:"0px",bottom:"0px",border:"0"};t["z-index"]=this.modalZIndex,this.iframeElem.setAttribute("style",Object.entries(t).map((function(t){var e=s()(t,2),r=e[0],n=e[1];return"".concat(r,":").concat(n)})).join(";"))}},{key:"_hideModal",value:function(){var t={display:"none",position:"fixed",width:"100%",height:"100%",top:"0px",right:"0px",left:"0px",bottom:"0px",border:"0"};t["z-index"]=this.modalZIndex,this.iframeElem.setAttribute("style",Object.entries(t).map((function(t){var e=s()(t,2),r=e[0],n=e[1];return"".concat(r,":").concat(n)})).join(";"))}},{key:"_prompt",value:function(){var t=c()(m.a.mark((function t(e,r,n,i){var o,a=this;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._showModal(),o=function(t){a._hideModal(),i(t)},x(this.verifierStream,"data",o),this.verifierStream.write({name:"prompt",clientId:e,whiteLabel:r,loginConfig:n});case 4:case"end":return t.stop()}}),t,this)})));return function(e,r,n,i){return t.apply(this,arguments)}}()},{key:"cleanup",value:function(){var t=c()(m.a.mark((function t(){var e;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(E.c)();case 2:(e=document.getElementById(S.g))&&(e.remove(),this.iframeElem=null),this.initialized=!1;case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}(),O=n(14),j=n(13);function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?R(Object(r),!0).forEach((function(e){b()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Object(E.h)("https://app.openlogin.com/start"),Object(E.h)("https://app.openlogin.com/sdk-modal");var P=function(){function t(e){var r,n,i,o,a,s,u,c,f;if(h()(this,t),b()(this,"provider",void 0),b()(this,"state",void 0),b()(this,"modal",void 0),this.provider=new Proxy(new j.a,{deleteProperty:function(){return!0}}),e._iframeUrl||(e.network===S.d.MAINNET?e._iframeUrl="https://app.openlogin.com":e.network===S.d.TESTNET?e._iframeUrl="https://beta.openlogin.com":e.network===S.d.DEVELOPMENT&&(e._iframeUrl="http://localhost:3000")),!e._iframeUrl)throw new Error("unspecified network and iframeUrl");this.modal=new A("".concat(e._iframeUrl,"/sdk-modal")),this.initState(I(I({},e),{},{no3PC:null!==(r=e.no3PC)&&void 0!==r&&r,_iframeUrl:e._iframeUrl,_startUrl:null!==(n=e._startUrl)&&void 0!==n?n:"".concat(e._iframeUrl,"/start"),_popupUrl:null!==(i=e._popupUrl)&&void 0!==i?i:"".concat(e._iframeUrl,"/popup-window"),redirectUrl:null!==(o=e.redirectUrl)&&void 0!==o?o:"".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname),uxMode:null!==(a=e.uxMode)&&void 0!==a?a:S.e.REDIRECT,replaceUrlOnRedirect:null===(s=e.replaceUrlOnRedirect)||void 0===s||s,originData:null!==(u=e.originData)&&void 0!==u?u:b()({},window.location.origin,""),whiteLabel:null!==(c=e.whiteLabel)&&void 0!==c?c:{},loginConfig:null!==(f=e.loginConfig)&&void 0!==f?f:{}}))}return d()(t,[{key:"initState",value:function(t){this.state={uxMode:t.uxMode,network:t.network,store:O.a.getInstance(),iframeUrl:t._iframeUrl,startUrl:t._startUrl,popupUrl:t._popupUrl,clientId:t.clientId,redirectUrl:t.redirectUrl,replaceUrlOnRedirect:t.replaceUrlOnRedirect,originData:t.originData,loginConfig:t.loginConfig,support3PC:!t.no3PC,whiteLabel:t.whiteLabel}}},{key:"init",value:function(){var t=c()(m.a.mark((function t(){var e;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.state.support3PC){t.next=16;break}return t.next=3,Promise.all([this.provider.init({iframeUrl:this.state.iframeUrl}),this.modal.init(),this.updateOriginData()]);case 3:return this._syncState(Object(E.d)(this.state.replaceUrlOnRedirect)),t.next=6,this._check3PCSupport();case 6:if(e=t.sent,this.state.support3PC=!!e.support3PC,!this.state.support3PC){t.next=14;break}return t.t0=this,t.next=12,this._getData();case 12:t.t1=t.sent,t.t0._syncState.call(t.t0,t.t1);case 14:t.next=19;break;case 16:return t.next=18,this.updateOriginData();case 18:this._syncState(Object(E.d)(this.state.replaceUrlOnRedirect));case 19:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"privKey",get:function(){return this.state.privKey?this.state.privKey.padStart(64,"0"):""}},{key:"updateOriginData",value:function(){var t=c()(m.a.mark((function t(){var e,r,n,i,o;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=JSON.parse(JSON.stringify(this.state.originData)),Object.keys(e).forEach((function(t){""===e[t]&&delete e[t]})),t.next=4,Promise.all([this.getWhitelist(),this.getWhiteLabel()]);case 4:r=t.sent,n=s()(r,2),i=n[0],o=n[1],this._syncState({originData:I(I({},i),e),whiteLabel:I(I({},o),this.state.whiteLabel)});case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getWhitelist",value:function(){var t=c()(m.a.mark((function t(){var e;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.state.clientId){t.next=4;break}throw new Error("unspecified clientId");case 4:return t.next=6,Object(g.post)("https://api.developer.tor.us/whitelist",{project_id:this.state.clientId});case 6:return e=t.sent,t.abrupt("return",e.signed_urls);case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return",{});case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));return function(){return t.apply(this,arguments)}}()},{key:"getWhiteLabel",value:function(){var t=c()(m.a.mark((function t(){var e;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.state.clientId){t.next=4;break}throw new Error("unspecified clientId");case 4:return t.next=6,Object(g.post)("https://api.developer.tor.us/whitelabel",{project_id:this.state.clientId});case 6:return e=t.sent,t.abrupt("return",e.whiteLabel);case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return",{});case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));return function(){return t.apply(this,arguments)}}()},{key:"_fastLogin",value:function(){var t=c()(m.a.mark((function t(e){var r,n,i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={redirectUrl:this.state.redirectUrl},n=I(I({},r),e),t.next=4,this.request({params:[I(I({},n),{},{fastLogin:!0})],method:S.c.LOGIN,startUrl:this.state.startUrl,popupUrl:this.state.popupUrl,allowedInteractions:[S.a.POPUP,S.a.REDIRECT]});case 4:return i=t.sent,this.state.privKey=i.privKey,t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"login",value:function(){var t=c()(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===e||void 0===e||!e.loginProvider){t.next=2;break}return t.abrupt("return",this._selectedLogin(e));case 2:return t.abrupt("return",this._modal(e));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_selectedLogin",value:function(){var t=c()(m.a.mark((function t(e){var r,n,i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={redirectUrl:this.state.redirectUrl},n=I(I({loginProvider:e.loginProvider},r),e),t.next=4,this.request({method:S.c.LOGIN,allowedInteractions:[S.e.REDI
2RECT,S.e.POPUP],startUrl:this.state.startUrl,popupUrl:this.state.popupUrl,params:[n]});case 4:return i=t.sent,this.state.privKey=i.privKey,t.abrupt("return",{privKey:this.privKey});case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"logout",value:function(){var t=c()(m.a.mark((function t(){var e,r,n,i=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},(r={}).redirectUrl=this.state.redirectUrl,r._clientId=this.state.clientId,e.clientId&&(r._clientId=e.clientId),void 0!==e.fastLogin&&(r.fastLogin=e.fastLogin),void 0!==e.redirectUrl&&(r.redirectUrl=e.redirectUrl),t.next=9,this.request({method:S.c.LOGOUT,params:[r],startUrl:this.state.startUrl,popupUrl:this.state.popupUrl,allowedInteractions:[S.a.JRPC,S.a.POPUP,S.a.REDIRECT]});case 9:return n=t.sent,this.state.privKey="",t.abrupt("return",n);case 12:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"request",value:function(){var t=c()(m.a.mark((function t(r){var n,i,o,a,s,u,c,f,h,l,d,p,b,v;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=Object(_.randomId)(),o=r.params,a={},1===o.length){t.next=5;break}throw new Error("request params array should have only one element");case 5:if(s=r.startUrl,u=r.popupUrl,c=r.method,0!==(f=r.allowedInteractions).length){t.next=8;break}throw new Error("no allowed interactions");case 8:if(this.state.clientId&&(a._clientId=this.state.clientId),!this.privKey){t.next=17;break}return h={clientId:a._clientId,timestamp:Date.now().toString()},t.next=13,Object(y.sign)(e.from(this.privKey,"hex"),e.from(Object(_.keccak)("keccak256").update(JSON.stringify(h)).digest("hex"),"hex"));case 13:l=t.sent,a._user=Object(y.getPublic)(e.from(this.privKey,"hex")).toString("hex"),a._userSig=_.base64url.encode(l),a._userData=h;case 17:if(a._originData=this.state.originData,a._whiteLabelData=this.state.whiteLabel,a._loginConfig=this.state.loginConfig,o=[I(I({},a),o[0])],!this.state.support3PC||!f.includes(S.a.JRPC)){t.next=23;break}return t.abrupt("return",this._jrpcRequest({method:c,params:o}));case 23:if(o[0]._origin=new URL(null!==(n=o[0].redirectUrl)&&void 0!==n?n:this.state.redirectUrl).origin,!this.state.support3PC){t.next=28;break}return t.next=27,this._setPIDData(i,o);case 27:o=[{}];case 28:if(s&&u){t.next=30;break}throw new Error("no url for redirect / popup flow");case 30:if(this.state.uxMode!==S.e.REDIRECT){t.next=40;break}if(!f.includes(S.a.REDIRECT)){t.next=34;break}return setTimeout((function(){window.location.href=Object(E.b)({baseURL:s,hash:{b64Params:Object(_.jsonToBase64)(o[0]),_pid:i,_method:c}})}),50),t.abrupt("return",{});case 34:if(!f.includes(S.a.POPUP)){t.next=38;break}return d=new URL(Object(E.b)({baseURL:u,hash:{b64Params:Object(_.jsonToBase64)(o[0]),_pid:i,_method:c}})),p=window.open(d.toString(),"_blank",Object(E.e)()),t.abrupt("return",Object(E.a)(i,p));case 38:t.next=47;break;case 40:if(!f.includes(S.a.POPUP)){t.next=44;break}return b=new URL(Object(E.b)({baseURL:u,hash:{b64Params:Object(_.jsonToBase64)(o[0]),_pid:i,_method:c}})),v=window.open(b.toString(),"_blank",Object(E.e)()),t.abrupt("return",Object(E.a)(i,v));case 44:if(!f.includes(S.a.REDIRECT)){t.next=47;break}return setTimeout((function(){window.location.href=Object(E.b)({baseURL:s,hash:{b64Params:Object(_.jsonToBase64)(o[0]),_pid:i,_method:c}})}),50),t.abrupt("return",null);case 47:throw new Error("no matching allowed interactions");case 48:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_jrpcRequest",value:function(){var t=c()(m.a.mark((function t(e){var r,n,i=this;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&"object"===o()(e)&&!Array.isArray(e)){t.next=2;break}throw new Error("invalid request args");case 2:if(r=e.method,n=e.params,"string"===typeof r&&0!==r.length){t.next=5;break}throw new Error("invalid request method");case 5:if(void 0!==n&&Array.isArray(n)){t.next=7;break}throw new Error("invalid request params");case 7:return 0===n.length&&n.push({}),t.abrupt("return",new Promise((function(t,e){i.provider._rpcRequest({method:r,params:n},Object(w.getRpcPromiseCallback)(t,e))})));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"_check3PCSupport",value:function(){var t=c()(m.a.mark((function t(){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this._jrpcRequest({method:S.c.CHECK_3PC_
2SUPPORT,params:[{_originData:this.state.originData}]}));case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_setPIDData",value:function(){var t=c()(m.a.mark((function t(e,r){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.request({allowedInteractions:[S.a.JRPC],method:S.c.SET_PID_DATA,params:[{pid:e,data:r[0]}]});case 2:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_getData",value:function(){var t=c()(m.a.mark((function t(){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.request({allowedInteractions:[S.a.JRPC],method:S.c.GET_DATA,params:[{}]}));case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_syncState",value:function(t){var e=this;if(t.store){if("object"!==o()(t.store))throw new Error("expected store to be an object");Object.keys(t.store).forEach((function(r){e.state.store.set(r,t.store[r])}))}var r=this.state.store;this.state=I(I(I({},this.state),t),{},{store:r})}},{key:"_modal",value:function(){var t=c()(m.a.mark((function t(e){var r=this;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){r.modal._prompt(r.state.clientId,r.state.whiteLabel,r.state.loginConfig,function(){var i=c()(m.a.mark((function i(o){var a;return m.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!o.cancel){i.next=4;break}n(new Error("user canceled login")),i.next=14;break;case 4:return i.prev=4,i.next=7,r._selectedLogin(M()(e,o));case 7:a=i.sent,t(a),i.next=14;break;case 11:i.prev=11,i.t0=i.catch(4),n(i.t0);case 14:case"end":return i.stop()}}),i,null,[[4,11]])})));return function(t){return i.apply(this,arguments)}}())})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"_cleanup",value:function(){var t=c()(m.a.mark((function t(){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider.cleanup();case 2:return t.next=4,this.modal.cleanup();case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"encrypt",value:function(){var t=c()(m.a.mark((function t(r,n){var i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((i=n)||(i=this.privKey),/^[0-9a-fA-f]{64}$/.exec(i)){t.next=8;break}if(""!==i&&void 0!==i){t.next=7;break}throw new Error("private key cannot be empty");case 7:throw new Error("invalid private key in encrypt");case 8:return t.abrupt("return",Object(y.encrypt)(Object(y.getPublic)(e.from(i,"hex")),r));case 9:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"decrypt",value:function(){var t=c()(m.a.mark((function t(r,n){var i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((i=n)||(i=this.privKey),/^[0-9a-fA-f]{64}$/.exec(i)){t.next=8;break}if(""!==i&&void 0!==i){t.next=7;break}throw new Error("private key cannot be empty");case 7:throw new Error("invalid private key in decrypt");case 8:return t.abrupt("return",Object(y.decrypt)(e.from(i,"hex"),r));case 9:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getUserInfo",value:function(){var t=c()(m.a.mark((function t(){var e,r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.privKey){t.next=4;break}return e=this.state.store.getStore(),r={email:e.email||"",name:e.name||"",profileImage:e.profileImage||"",aggregateVerifier:e.aggregateVerifier||"",verifier:e.verifier||"",verifierId:e.verifierId||"",typeOfLogin:e.typeOfLogin||""},t.abrupt("return",r);case 4:throw new Error("user should be logged in to fetch userInfo");case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}();r.a=P},function(t,e,r){"use strict";r.d(e,"a",(function(){return O}));var n=r(2),i=r.n(n),o=r(7),a=r.n(o),s=r(8),u=r.n(s),c=r(10),f=r.n(c),h=r(20),l=r.n(
2h),d=r(21),p=r.n(d),b=r(17),v=r.n(b),m=r(3),y=r.n(m),g=r(0),w=r.n(g),_=r(6),k=r(5),M=r(22),S=r.n(M),E=r(1),x=r(4);function A(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v()(t);if(e){var i=v()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p()(this,r)}}var O=function(t){l()(r,t);var e=A(r);function r(){var t;a()(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),y()(f()(t),"iframeElem",null),y()(f()(t),"rpcStream",void 0),y()(f()(t),"rpcEngine",void 0),y()(f()(t),"initialized",void 0),y()(f()(t),"mux",void 0),t}return u()(r,[{key:"init",value:function(){var t=i()(w.a.mark((function t(e){var r;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.iframeUrl,t.next=3,this.initIFrame(r);case 3:return t.next=5,this.setupStream();case 5:this.initialized=!0;case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"initIFrame",value:function(){var t=i()(w.a.mark((function t(e){var r,n;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(x.c)();case 2:(r=document.getElementById(E.f))&&(r.remove(),window.console.log("already initialized, removing previous provider iframe")),(n=document.createElement("iframe")).src=e,n.id=E.f,n.setAttribute("style","display:none; position:fixed; top: 0; left: 0; width: 100%"),document.body.appendChild(n),this.iframeElem=n;case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setupStream",value:function(){var t=i()(w.a.mark((function t(){var e,r;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==this.iframeElem){t.next=2;break}throw new Error("iframe is null");case 2:this.rpcStream=new _.PostMessageStream({name:"embed_rpc",target:"iframe_rpc",targetWindow:this.iframeElem.contentWindow}),this.mux=Object(_.setupMultiplex)(this.rpcStream),e=Object(_.createStreamMiddleware)(),S()(e.stream,this.mux.createStream("jrpc"),e.stream,(function(t){window.console.log("JRPC connection broken",t)})),(r=new _.JRPCEngine).push(Object(_.createIdRemapMiddleware)()),r.push(e.middleware),this.rpcEngine=r;case 10:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"cleanup",value:function(){var t=i()(w.a.mark((function t(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(x.c)();case 2:(e=document.getElementById(E.f))&&(e.remove(),this.iframeElem=null),this.initialized=!1;case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_rpcRequest",value:function(t,e){t.jsonrpc||(t.jsonrpc="2.0"),t.id||(t.id=Object(k.randomId)()),this.rpcEngine.handle(t,e)}}]),r}(_.SafeEventEmitter)},function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(7),i=r.n(n),o=r(8),a=r.n(o),s=r(3),u=r.n(s),c=r(1),f=function(){function t(){i()(this,t),u()(this,"store",{})}return a()(t,[{key:"getItem",value:function(t){return this.store[t]}},{key:"setItem",value:function(t,e){this.store[t]=e}}]),t}(),h=r(4),l=function(){function t(e){i()(this,t),u()(this,"storage",void 0),this.storage=e,e.getItem(c.h)||this.resetStore()}return a()(t,[{key:"toJSON",value:function(){return this.storage.getItem(c.h)}},{key:"resetStore",value:function(){var t=this.getStore();return this.storage.setItem(c.h,JSON.stringify({})),t}},{key:"getStore",value:function(){return JSON.parse(this.storage.getItem(c.h))}},{key:"get",value:function(t){return JSON.parse(this.storage.getItem(c.h))[t]}},{key:"set",value:function(t,e){var r=JSON.parse(this.storage.getItem(c.h));r[t]=e,this.storage.setItem(c.h,JSON.stringify(r))}}],[{key:"getInstance",value:function(){return this.instance||(this.instance=new this(h.g?localStorage:new f)),this.instance}}]),t}();
2u()(l,"instance",void 0)},function(t,e){t.exports=r(117)},function(t,e){t.exports=r(560)},function(t,e){t.exports=r(79)},function(t,e){},function(t,e){t.exports=r(562)},function(t,e){t.exports=r(94)},function(t,e){t.exports=r(95)},function(t,e){t.exports=r(264)},function(t,e,r){"use strict";r.r(e);var n=r(1);r.d(e,"iframeDOMElementID",(function(){return n.f})),r.d(e,"modalDOMElementID",(function(){return n.g})),r.d(e,"storeKey",(function(){return n.h})),r.d(e,"UX_MODE",(function(){return n.e})),r.d(e,"OPENLOGIN_METHOD",(function(){return n.c})),r.d(e,"ALLOWED_INTERACTIONS",(function(){return n.a})),r.d(e,"OPENLOGIN_NETWORK",(function(){return n.d})),r.d(e,"LOGIN_PROVIDER",(function(){return n.b}));var i=r(18);for(var o in i)["default","OpenLoginStore","Provider","iframeDOMElementID","modalDOMElementID","storeKey","UX_MODE","OPENLOGIN_METHOD","ALLOWED_INTERACTIONS","OPENLOGIN_NETWORK","LOGIN_PROVIDER"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var a=r(12);r.d(e,"default",(function(){return a.a}));var s=r(14);r.d(e,"OpenLoginStore",(function(){return s.a}));var u=r(13);r.d(e,"Provider",(function(){return u.a}));var c=r(4);r.d(e,"documentReady",(function(){return c.c})),r.d(e,"htmlToElement",(function(){return c.f})),r.d(e,"whitelistUrl",(function(){return c.k})),r.d(e,"getHashQueryParams",(function(){return c.d})),r.d(e,"awaitReq",(function(){return c.a})),r.d(e,"constructURL",(function(){return c.b})),r.d(e,"storageAvailable",(function(){return c.j})),r.d(e,"sessionStorageAvailable",(function(){return c.i})),r.d(e,"localStorageAvailable",(function(){return c.g})),r.d(e,"preloadIframe",(function(){return c.h})),r.d(e,"getPopupFeatures",(function(){return c.e}))}])}).call(this,r(7).Buffer)},function(t,e,r){var n=r(454);function i(e,r,o){return"undefined"!==typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=i=function(t,e,r){var i=n(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(r):o.value}},t.exports.default=t.exports,t.exports.__esModule=!0),i(e,r,o||e)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(79);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(183),i=r(457);function o(e,r,a){return i()?(t.exports=o=Reflect.construct,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=o=function(t,e,r){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return r&&n(o,r.prototype),o},t.exports.default=t.exports,t.exports.__esModule=!0),o.apply(null,arguments)}t.exports=o,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){t.exports=r(459).default,t.exports.default=t.exports},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=r(460);function i(e,r){return void 0===r&&(r="utf8"),t.isBuffer(e)?a(e.toString("base64")):a(t.from(e,r).toString("base64"))}function o(t){return t=t.toString(),n.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function a(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var s=i;s.encode=i,s.decode=function(e,r){return void 0===r&&(r="utf8"),t.from(o(e),"base64").toString(r)},s.toBase64=o,s.fromBase64=a,s.toBuffer=function(e){return t.from(o(e),"base64")},e.default=s}).call(this,r(7).Buffer)},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var r=e.length,n=r%4;if(!n)return e;var i=r,o=4-n,a=r+o,s=t.alloc(a);for(s.write(e);o--;)s.write("=",i++);return s.toString()}}).call(this,r(7).Buffer)},function(t,e,r){t.exports=r(462)(r(472))},function(t,e,r){var n=r(463),i=r(471);t.exports=function(t){var e=n(t),r=i(t);return function(t,n){switch("string"===typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+t)}}}},function(t,e,r){(function(e){var n=r(34),i=r(36),o=r(39),a=r(40),s=r(253).Transform;t.exports=function(t){return function(r){"use strict";o(u,r);var s=a(u);function u(e,r,i,o,a){var c;return n(this,u),(c=s.call(this,a))._rate=e,c._capacity=r,c._delimitedSuffix=i,c._hashBitLength=o,c._options=a,c._state=new t,c._state.initialize(e,r),c._finalized=!1,c}return i(u,[{key:"_transform",value:function(t,e,r){var n=null;try{this.update(t,e)}catch(i){n=i}r(n)}},{key:"_flush",value:function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)}},{key:"update",value:function(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return e.isBuffer(t)||(t=e.from(t,r)),this._state.absorb(t),this}},{key:"digest",value:function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var t=new u(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}]),u}(s)}}).call(this,r(7).Buffer)},,function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=r(7).Buffer,s=r(466).inspect,u=s&&s.custom||"inspect";
vendor: 4,327 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,r,c;return e=t,(r=[{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(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,i=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=i,n=s,a.prototype.copy.call(e,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0===(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&o(e.prototype,r),c&&o(e,c),t}()},,function(t,e,r){"use strict";(function(e){var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(196),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),l=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var r=t[l].read();null!==r&&(t[f]=null,t[a]=null,t[s]=null,e(d(r,!1)))}}function b(t){e.nextTick(p,t)}var v=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(n={get stream(){return this[l]},next:function(){var t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(d(void 0,!0));if(this[l].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[u]?n(t[u]):r(d(void 0,!0))}))}));var n,i=this[f];if(i)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(d(void 0,!0)):e[h](r,n)}),n)}}(i,this));else{var o=this[l].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[h])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[l].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),v);t.exports=function(t){var e,r=Object.create(m,(i(e={},l,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var n=r[l].read();n?(r[f]=null,r[a]=null,r[s]=null,t(d(n,!1))):(r[a]=t,r[s]=e)},writable:!0}),e));return r[f]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[f]=null,r[a]=null,r[s]=null,e(t)),void(r[u]=t)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(d(void 0,!0))),r[c]=!0})),t.on("readable",b.bind(null,r)),r}}
2).call(this,r(27))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,r){"use strict";t.exports=i;var n=r(259);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(19)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){"use strict";var n;var i=r(100).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=r(196)),n(t,{readable:e,writable:i},(function(t){if(t)return o(t);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"===typeof t.abort}(t)?t.abort():"function"===typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function c(t){t()}function f(t,e){return t.pipe(e)}function h(t){return t.length?"function"!==typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=h(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,r){var o=r<e.length-1;return u(t,o,r>0,(function(t){n||(n=t),t&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return e.reduce(f)}},function(t,e,r){(function(e){var n=r(34),i=r(36),o=r(39),a=r(40),s=r(253).Transform;t.exports=function(t){return function(r){"use strict";o(u,r);var s=a(u);function u(e,r,i,o){var a;return n(this,u),(a=s.call(this,o))._rate=e,a._capacity=r,a._delimitedSuffix=i,a._options=o,a._state=new t,a._state.initialize(e,r),a._finalized=!1,a}return i(u,[{key:"_transform",value:function(t,e,r){var n=null;try{this.update(t,e)}catch(i){n=i}r(n)}},{key:"_flush",value:function(){}},{key:"_read",value:function(t){this.push(this.squeeze(t))}},{key:"update",value:function(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return e.isBuffer(t)||(t=e.from(t,r)),this._state.absorb(t),this}},{key:"squeeze",value:function(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var t=new u(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}]),u}(s)}}).call(this,r(7).Buffer)},function(t,e,r){(function(e){var n=r(473);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(t,e){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(t){for(var e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<this.count%4*8,0!==(128&t)&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);for(var r=e.alloc(t),i=0;i<t;++i)r[i]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},i.prototype.copy=function(t){for(var e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i}).call(this,r(7).Buffer)},function(t,e){var r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];e.p1600=function(t){for(var e=0;e<24;++e){var n=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[3
26]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],l=t[9]^t[19]^t[29]^t[39]^t[49],d=h^(o<<1|a>>>31),p=l^(a<<1|o>>>31),b=t[0]^d,v=t[1]^p,m=t[10]^d,y=t[11]^p,g=t[20]^d,w=t[21]^p,_=t[30]^d,k=t[31]^p,M=t[40]^d,S=t[41]^p;d=n^(s<<1|u>>>31),p=i^(u<<1|s>>>31);var E=t[2]^d,x=t[3]^p,A=t[12]^d,O=t[13]^p,j=t[22]^d,R=t[23]^p,I=t[32]^d,P=t[33]^p,T=t[42]^d,C=t[43]^p;d=o^(c<<1|f>>>31),p=a^(f<<1|c>>>31);var B=t[4]^d,L=t[5]^p,N=t[14]^d,D=t[15]^p,U=t[24]^d,z=t[25]^p,W=t[34]^d,q=t[35]^p,F=t[44]^d,K=t[45]^p;d=s^(h<<1|l>>>31),p=u^(l<<1|h>>>31);var H=t[6]^d,Y=t[7]^p,V=t[16]^d,Z=t[17]^p,G=t[26]^d,X=t[27]^p,J=t[36]^d,Q=t[37]^p,$=t[46]^d,tt=t[47]^p;d=c^(n<<1|i>>>31),p=f^(i<<1|n>>>31);var et=t[8]^d,rt=t[9]^p,nt=t[18]^d,it=t[19]^p,ot=t[28]^d,at=t[29]^p,st=t[38]^d,ut=t[39]^p,ct=t[48]^d,ft=t[49]^p,ht=b,lt=v,dt=y<<4|m>>>28,pt=m<<4|y>>>28,bt=g<<3|w>>>29,vt=w<<3|g>>>29,mt=k<<9|_>>>23,yt=_<<9|k>>>23,gt=M<<18|S>>>14,wt=S<<18|M>>>14,_t=E<<1|x>>>31,kt=x<<1|E>>>31,Mt=O<<12|A>>>20,St=A<<12|O>>>20,Et=j<<10|R>>>22,xt=R<<10|j>>>22,At=P<<13|I>>>19,Ot=I<<13|P>>>19,jt=T<<2|C>>>30,Rt=C<<2|T>>>30,It=L<<30|B>>>2,Pt=B<<30|L>>>2,Tt=N<<6|D>>>26,Ct=D<<6|N>>>26,Bt=z<<11|U>>>21,Lt=U<<11|z>>>21,Nt=W<<15|q>>>17,Dt=q<<15|W>>>17,Ut=K<<29|F>>>3,zt=F<<29|K>>>3,Wt=H<<28|Y>>>4,qt=Y<<28|H>>>4,Ft=Z<<23|V>>>9,Kt=V<<23|Z>>>9,Ht=G<<25|X>>>7,Yt=X<<25|G>>>7,Vt=J<<21|Q>>>11,Zt=Q<<21|J>>>11,Gt=tt<<24|$>>>8,Xt=$<<24|tt>>>8,Jt=et<<27|rt>>>5,Qt=rt<<27|et>>>5,$t=nt<<20|it>>>12,te=it<<20|nt>>>12,ee=at<<7|ot>>>25,re=ot<<7|at>>>25,ne=st<<8|ut>>>24,ie=ut<<8|st>>>24,oe=ct<<14|ft>>>18,ae=ft<<14|ct>>>18;t[0]=ht^~Mt&Bt,t[1]=lt^~St&Lt,t[10]=Wt^~$t&bt,t[11]=qt^~te&vt,t[20]=_t^~Tt&Ht,t[21]=kt^~Ct&Yt,t[30]=Jt^~dt&Et,t[31]=Qt^~pt&xt,t[40]=It^~Ft&ee,t[41]=Pt^~Kt&re,t[2]=Mt^~Bt&Vt,t[3]=St^~Lt&Zt,t[12]=$t^~bt&At,t[13]=te^~vt&Ot,t[22]=Tt^~Ht&ne,t[23]=Ct^~Yt&ie,t[32]=dt^~Et&Nt,t[33]=pt^~xt&Dt,t[42]=Ft^~ee&mt,t[43]=Kt^~re&yt,t[4]=Bt^~Vt&oe,t[5]=Lt^~Zt&ae,t[14]=bt^~At&Ut,t[15]=vt^~Ot&zt,t[24]=Ht^~ne>,t[25]=Yt^~ie&wt,t[34]=Et^~Nt&Gt,t[35]=xt^~Dt&Xt,t[44]=ee^~mt&jt,t[45]=re^~yt&Rt,t[6]=Vt^~oe&ht,t[7]=Zt^~ae<,t[16]=At^~Ut&Wt,t[17]=Ot^~zt&qt,t[26]=ne^~gt&_t,t[27]=ie^~wt&kt,t[36]=Nt^~Gt&Jt,t[37]=Dt^~Xt&Qt,t[46]=mt^~jt&It,t[47]=yt^~Rt&Pt,t[8]=oe^~ht&Mt,t[9]=ae^~lt&St,t[18]=Ut^~Wt&$t,t[19]=zt^~qt&te,t[28]=gt^~_t&Tt,t[29]=wt^~kt&Ct,t[38]=Gt^~Jt&dt,t[39]=Xt^~Qt&pt,t[48]=jt^~It&Ft,t[49]=Rt^~Pt&Kt,t[0]^=r[2*e],t[1]^=r[2*e+1]}}},function(t,e,r){(function(e){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=43)}([function(t,e){t.exports=r(5)},function(t,e){t.exports=r(140)},function(t,e){t.exports=r(139)},function(t,e){t.exports=r(79)},function(t,e){t.exports=r(93)},function(t,e){t.exports=r(118)},function(t,e){t.exports=r(94)},function(t,e){t.exports=r(95)},function(t,e,r){"use strict";r.d(e,"a",(function(){return k}));var n=r(4),i=r.n(n),o=r(5),a=r.n(o),s=r(2),u=r.n(s),c=r(6),f=r.n(c),h=r(7),l=r.n(h),d=r(3),p=r.n(d),b=r(39),v=r.n(b),m=r(0),y=r.n(m),g=r(40),w=r.n(g);function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l()(this,r)}}var k=function(t){f()(r,t);var e=_(r);function r(t){var n,o=t.code,a=t.message,s=t.data;if(i()(this,r),!Number.isInteger(o))throw new Error("code must be an integer");if(!a||"string"!==typeof a)throw new Error("message must be string");return n=e.call(this,a),y()(u()(n),"code",void 0),y()(u()(n),"data",void 0),n.code=o,void 0!==s&&(n.data=s),n}return a()(r,[{key:"toString",value:function(){return w()({code:this.code,message:this.message,data:this.data,stack:this.stack})}}]),r}(v()(Error))},function(t,e){t.exports=r(141)},function(t,e,r){t.exports=i;var n=r(17).EventEmitter;function i(){n.call(this)}r(12)(i,n),i.Readable=r(23),i.Writable=r(54),i.Duplex=r(55),i.Transform=r(56),i.PassThrough=r(57),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"===typeof t.destroy&&t.destroy())}function c(t){if(f(),0===n.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",c),t.on("error",c),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t}},function(t,e,r){"use strict";var n=r(20),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=h;var o=Object.create(r(16));o.inherits=r(12);var a=r(27),s=r(25);o.inherits(h,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];h.prototype[f]||(h.prototype[f]=s.prototype[f])}function h(t){if(!(this instanceof h))return new h(t);a.call(this,t),s.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",l)}function l(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.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)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},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 r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";r.d(e,"a",(function(){return m}));var n=r(4),i=r.n(n),o=r(5),a=r.n(o),s=r(6),u=r.n(s),c=r(7),f=r.n(c),h=r(3),l=r.n(h),d=r(17);function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l()(t);if(e){var i=l()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f()(this,r)}}function b(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout((function(){throw n}))}}function v(t){for(var e=t.length,r=new Array(e),n=0;n<e;n+=1)r[n]=t[n];return r}var m=function(t){u()(r,t);var e=p(r);function r(){return i()(this,r),e.apply(this,arguments)}return a()(r,[{key:"emit",value:function(t){var e="error"===t,r=this._events;if(void 0!==r)e=e&&void 0===r.error;else if(!e)return!1;for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if(e){var a;if(i.length>0&&(a=i[0]),a instanceof Error)throw a;var s=new Error("Unhandled error.".concat(a?" (".concat(a.message,")"):""));throw s.context=a,s}var u=r[t];if(void 0===u)return!1;if("function"===typeof u)b(u,this,i);else for(var c=u.length,f=v(u),h=0;h<c;h+=1)b(f[h],this,i);return!0}}]),r}(d.EventEmitter)},function(t,e){t.exports=r(117)},function(t,r){function n(t){return Object.prototype.toString.call(t)}r.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},r.isBoolean=function(t){return"boolean"===typeof t},r.isNull=function(t){return null===t},r.isNullOrUndefined=function(t){return null==t},r.isNumber=function(t){return"number"===typeof t},r.isString=function(t){return"string"===typeof t}
2,r.isSymbol=function(t){return"symbol"===typeof t},r.isUndefined=function(t){return void 0===t},r.isRegExp=function(t){return"[object RegExp]"===n(t)},r.isObject=function(t){return"object"===typeof t&&null!==t},r.isDate=function(t){return"[object Date]"===n(t)},r.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},r.isFunction=function(t){return"function"===typeof t},r.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},r.isBuffer=e.isBuffer},function(t,e,r){"use strict";var n,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!==t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"===typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}m(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"===typeof t.on&&m(t,"error",e,r)}(t,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o,a,s;if(c(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if("function"===typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(t))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function l(){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 d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):v(i,i.length)}function b(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function m(t,e,r,n){if("function"===typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!==typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){n.once&&t.removeEventListener(e,i),r(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!==typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),s.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},s.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||a(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},s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)o(u,this,e);else{var c=u.length,f=v(u,c);for(r=0;r<c;++r)o(f[r],this,e)}return!0},s.prototype.addListener=function(t,e){return h(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return h(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,d(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,d(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,o,a;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit
2("removeListener",t,r.listener||e));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},s.prototype.listenerCount=b,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,r){"use strict";r.d(e,"h",(function(){return h})),r.d(e,"g",(function(){return l})),r.d(e,"b",(function(){return d})),r.d(e,"f",(function(){return p})),r.d(e,"e",(function(){return b})),r.d(e,"c",(function(){return v})),r.d(e,"d",(function(){return m})),r.d(e,"a",(function(){return y}));var n=r(9),i=r.n(n),o=r(1),a=r.n(o),s=r(38),u=r(10),c=r(14),f=r(8);function h(t){return t.toString()}var l=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n,i){n||i.error?e(n||i.error):!r||Array.isArray(i)?t(i):t(i.result)}};function d(t){return function(e,r,n,i){try{if("string"!==typeof e.method||!e.method)return r.error=new f.a({code:-32603,message:"invalid method"}),void i();n((function(e){var n=r.error;return n?(t.error("OpenLogin - RPC Error: ".concat(n.message),n),e()):e()}))}catch(o){t.error("OpenLogin - RPC Error thrown: ".concat(o.message),o),r.error=new f.a({code:-32603,message:o.message}),i()}}}function p(){var t={};var e=new c.a;var r=new u.Duplex({objectMode:!0,read:function(){return!1},write:function(r,n,i){var o;try{!r.id?function(t){e.emit("notification",t)}(r):function(e){var r=t[e.id];if(!r)throw new Error('StreamMiddleware - Unknown response id "'.concat(e.id,'"'));delete t[e.id],Object.assign(r.res,e),setTimeout(r.end)}(r)}catch(a){o=a}i(o)}});return{events:e,middleware:function(e,n,i,o){r.push(e),t[e.id]={req:e,res:n,next:i,end:o}},stream:r}}function b(t){return function(e,r,n,i){var o=t[e.method];return void 0===o?n():"function"===typeof o?o(e,r,n,i):(r.result=o,i())}}function v(){return function(t,e,r,n){var i=t.id,o=Object(s.randomId)();t.id=o,e.id=o,r((function(r){t.id=i,e.id=i,r()}))}}function m(t){return function(e,r,n,i){t.debug("REQ",e,"RES",r),n()}}function y(t){return function(){var e=i()(a.a.mark((function e(r,n,o,s){var u,c,f,h,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=new Promise((function(t){u=t})),f=null,h=!1,l=function(){var t=i()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=!0,o((function(t){f=t,u()})),t.next=4,c;case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),e.prev=4,e.next=7,t(r,n,l);case 7:if(!h){e.next=13;break}return e.next=10,c;case 10:f(null),e.next=14;break;case 13:s(null);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(4),f?f(e.t0):s(e.t0);case 19:case"end":return e.stop()}}),e,null,[[4,16]])})));return function(t,r,n,i){return e.apply(this,arguments)}}()}},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"===typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],f=!1,h=-1;function l(){f&&u&&(f=!1,u.length?c=u.concat(c):h=-1,c.length&&d())}function d(){if(!f){var t=s(l);f=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function b(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new p(t,e)),1!==c.length||f||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";(function(e){"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}
2));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,r(19))},function(t,e,r){"use strict";r.d(e,"a",(function(){return g}));var n=r(4),i=r.n(n),o=r(5),a=r.n(o),s=r(2),u=r.n(s),c=r(6),f=r.n(c),h=r(7),l=r.n(h),d=r(3),p=r.n(d),b=r(0),v=r.n(b),m=r(10);function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l()(this,r)}}var g=function(t){f()(r,t);var e=y(r);function r(t){var n,o=t.parent,a=t.name;return i()(this,r),n=e.call(this,{objectMode:!0}),v()(u()(n),"_parent",void 0),v()(u()(n),"_name",void 0),n._parent=o,n._name=a,n}return a()(r,[{key:"_read",value:function(){}},{key:"_write",value:function(t,e,r){this._parent.push({name:this._name,data:t}),r()}}]),r}(m.Duplex)},function(t,e){t.exports=r(260)},function(t,e,r){(e=t.exports=r(27)).Stream=e,e.Readable=e,e.Writable=r(25),e.Duplex=r(11),e.Transform=r(33),e.PassThrough=r(53)},function(t,e,r){var n=r(30),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";(function(e,n,i){var o=r(20);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=y;var s,u=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?n:o.nextTick;y.WritableState=m;var c=Object.create(r(16));c.inherits=r(12);var f={deprecate:r(51)},h=r(29),l=r(24).Buffer,d=i.Uint8Array||function(){};var p,b=r(31);function v(){}function m(t,e){s=s||r(11),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:f,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 h=!1===t.decodeStrings;this.decodeStrings=!h,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 r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),S(t,e))}(t,r,n,e,i);else{var a=k(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?u(w,t,r,a,i):w(t,r,a,i)}}(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 a(this)}function y(t){if(s=s||r(11),!p.call(y,this)&&!(this instanceof s))return new y(t);this._writableState=new m(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)),h.call(this)}function g(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),S(t,e)}function _(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,g(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,h=r.callback;
vendor: 4,573 bytes, line 2
2if(g(t,e,!1,e.objectMode?1:c.length,c,f,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),S(t,e)}))}function S(t,e){var r=k(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(M,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}c.inherits(y,h),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:f.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]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===y&&(t&&t._writableState instanceof m)}})):p=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=t,l.isBuffer(n)||n instanceof d);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"===typeof e&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!==typeof r&&(r=v),i.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),o.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,i,o);return u}(this,i,s,t,e,r)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},y.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(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,r){var n=this._writableState;"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,S(t,e),r&&(e.finished?o.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=b.destroy,y.prototype._undestroy=b.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(19),r(49).setImmediate,r(13))},function(t,e){t.exports=r(263)},function(t,e,r){"use strict";(function(e,n){var i=r(20);t.exports=g;var o,a=r(28);g.ReadableState=y;r(17).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(29),c=r(24).Buffer,f=e.Uint8Array||function(){};var h=Object.create(r(16));h.inherits=r(12);var l=r(46),d=void 0;d=l&&l.debuglog?l.debuglog("stream"):function(){};var p,b=r(47),v=r(31);h.inherits(g,u);var m=["error","close","destroy","pause","resume"];function y(t,e){t=t||{};
vendor: 2,794 bytes, line 2
2var n=e instanceof(o=o||r(11));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,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&&(p||(p=r(32).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function g(t){if(o=o||r(11),!(this instanceof g))return new g(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,S(t)}(t,a)):(i||(o=function(t,e){var r;n=e,c.isBuffer(n)||n instanceof f||"string"===typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):x(t,a)):_(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&S(t)),x(t,e)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),g.prototype.destroy=v.destroy,g.prototype._undestroy=v.undestroy,g.prototype._destroy=function(t,e){this.push(null),e(t)},g.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=c.from(t,e),e=""),r=!0),w(this,t,e,!1,r)},g.prototype.unshift=function(t){return w(this,t,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing}
vendor: 6,418 bytes, line 2
2,g.prototype.setEncoding=function(t){return p||(p=r(32).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var k=8388608;function M(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>=k?t=k:(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 S(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(E,t):E(t))}function E(t){d("emit readable"),t.emit("readable"),R(t)}function x(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function O(t){d("readable nexttick read 0"),t.read(0)}function j(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),R(t),e.flowing&&!e.reading&&t.read(0)}function R(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function I(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=c.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function C(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}g.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):S(this),null;if(0===(t=M(t,e))&&e.ended)return 0===e.length&&P(this),null;var n,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",i=!0),e.ended||e.reading?d("reading or ended",i=!1):i&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=M(r,e))),null===(n=t>0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&P(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,e){var r=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,d("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?f:g;function c(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",m),t.removeListener("finish",y),t.removeListener("drain",h),t.removeListener("error",v),t.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",g),r.removeListener("data",b),l=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function f(){d("onend"),t.end()}o.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",c);var h=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,R(t))}}(r);t.on("drain",h);var l=!1;var p=!1;function b(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==C(o.pipes,t))&&!l&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function v(e){d("onerror",e),g(),t.removeListener("error",v),0===s(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",y),g()}function y(){d("onfinish"),t.removeListener("close",m),g()}function g(){d("unpipe"),r.unpipe(t)}return r.on("data",b),function(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",v),t.once("close",m),t.once("finish",y),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},g.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=C(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},g.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):i.nextTick(O,this))}return r},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(j,t,e))}(this,t)),this},g.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit
vendor: 4,639 bytes, line 2
2("pause")),this},g.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(e.push(i)||(n=!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<m.length;o++)t.on(m[o],this.emit.bind(this,m[o]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=I}).call(this,r(13),r(19))},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){t.exports=r(17).EventEmitter},function(t,e,r){"use strict";(function(t){var n=r(44),i=r(45),o=r(28);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=l(t,e);return t}(t,e,r,n):"string"===typeof e?function(t,e,r){"string"===typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(e,r),i=(t=s(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|d(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||(n=e.length)!==n?s(t,0):l(t,e);if("Buffer"===e.type&&o(e.data))return l(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function f(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 h(t,e){if(f(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e){var r=e.length<0?0:0|d(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.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 r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(n)return W(t).length;e=(""+e).toLowerCase(),n=!0}}function b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return j(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}
vendor: 11,588 bytes, line 2
2else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var h=!0,l=0;l<u;l++)if(c(t,o+l)!==c(e,l)){h=!1;break}if(h)return o}return-1}function g(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return F(W(e,t.length-r),t,r,n)}function _(t,e,r,n){return F(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function k(t,e,r,n){return _(t,e,r,n)}function M(t,e,r,n){return F(q(e),t,r,n)}function S(t,e,r,n){return F(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],f=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(f=c);break;case 2:128===(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.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(e){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?"string"===typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.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}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.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 e=0;e<t;e+=2)v(this,e,e+1);return this},u.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 e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.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 e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):b.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,i),f=t.slice(e,r),h=0;h<s;++h)if(c[h]!==f[h]){o=c[h],a=f[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return k(this,t,e,r);case"base64":return M(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function j(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function R(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=z(t[o]);return i}function I(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function P(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function B(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function L(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,n,o){return o||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||T(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||T(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 5,923 bytes, line 2
28,this[e+1]=255&t):C(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:W(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(13))},function(t,e,r){"use strict";var n=r(20);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(i,r,t),r._writableState&&(r._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,r){"use strict";var n=r(52).Buffer,i=n.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 o(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";
vendor: 5,356 bytes, line 2
2case"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&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=f,this.end=h,e=3;break;default:return this.write=l,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.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],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=a(e[n]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=a(e[n]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.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,r){"use strict";t.exports=a;var n=r(11),i=Object.create(r(16));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);n.call(this,t),this._transformState={afterTransform:o.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",s)}function s(){var t=this;"function"===typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),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)}i.inherits=r(12),i.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.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},a.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},function(t,e,r){"use strict";r.d(e,"a",(function(){return C})),r.d(e,"c",(function(){return B})),r.d(e,"b",(function(){return L}));var n=r(15),i=r.n(n),o=r(22),a=r.n(o),s=r(9),u=r.n(s),c=r(4),f=r.n(c),h=r(5),l=r.n(
2h),d=r(2),p=r.n(d),b=r(6),v=r.n(b),m=r(7),y=r.n(m),g=r(3),w=r.n(g),_=r(0),k=r.n(_),M=r(1),S=r.n(M),E=r(10),x=r(18),A=r(14),O=r(8);function j(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return R(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach((function(e){k()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function T(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=w()(t);if(e){var i=w()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y()(this,r)}}var C=function(t){v()(r,t);var e=T(r);function r(){var t;return f()(this,r),t=e.call(this),k()(p()(t),"_middleware",void 0),t._middleware=[],t}return l()(r,[{key:"push",value:function(t){this._middleware.push(t)}},{key:"handle",value:function(t,e){if(e&&"function"!==typeof e)throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?e?this._handleBatch(t,e):this._handleBatch(t):e?this._handle(t,e):this._promiseHandle(t)}},{key:"asMiddleware",value:function(){var t=this;return function(){var e=u()(S.a.mark((function e(n,i,o,s){var c,f,h,l,d;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r._runAllMiddleware(n,i,t._middleware);case 3:if(c=e.sent,f=a()(c,3),h=f[0],l=f[1],d=f[2],!l){e.next=12;break}return e.next=11,r._runReturnHandlers(d);case 11:return e.abrupt("return",s(h));case 12:return e.abrupt("return",o(function(){var t=u()(S.a.mark((function t(e){return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r._runReturnHandlers(d);case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return",e(t.t0));case 8:return t.abrupt("return",e());case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}()));case 15:return e.prev=15,e.t0=e.catch(0),e.abrupt("return",s(e.t0));case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t,r,n,i){return e.apply(this,arguments)}}()}},{key:"_handleBatch",value:function(){var t=u()(S.a.mark((function t(e,r){var n;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all(e.map(this._promiseHandle.bind(this)));case 3:if(n=t.sent,!r){t.next=6;break}return t.abrupt("return",r(null,n));case 6:return t.abrupt("return",n);case 9:if(t.prev=9,t.t0=t.catch(0),!r){t.next=13;break}return t.abrupt("return",r(t.t0));case 13:throw t.t0;case 14:case"end":return t.stop()}}),t,this,[[0,9]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_promiseHandle",value:function(t){var e=this;return new Promise((function(r){e._handle(t,(function(t,e){r(e)}))}))}},{key:"_handle",value:function(){var t=u()(S.a.mark((function t(e,r){var n,o,a,s,u;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&!Array.isArray(e)&&"object"===i()(e)){t.next=3;break}return n=new O.a({code:-32603,message:"request must be plain object"}),t.abrupt("return",r(n,{id:void 0,jsonrpc:"2.0",error:n}));case 3:if("string"===typeof e.method){t.next=6;break}return o=new O.a({code:-32603,message:"method must be string"}),t.abrupt("return",r(o,{id:e.id,jsonrpc:"2.0",error:o}));case 6:return a=P({},e),s={id:a.id,jsonrpc:a.jsonrpc},u=null,t.prev=9,t.next=12,this._processRequest(a,s);case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(9),u=t.t0;case 17:return u&&(delete s.result,s.error||(s.error=Object(x.h)(u))),t.abrupt("return",r(u,s));case 19:case"end":return t.stop()}}),t,this,[[9,14]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_processRequest",value:function(){var t=u()(S.a.mark((function t(e,n){var i,o,s,u,c;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r._runAllMiddleware(e,n,this._middleware);case 2:return i=t.sent,o=a()(i,3),s=o[0],u=o[1],c=o[2],r._checkForCompletion(e,n,u),t.next=10,r._runReturnHandlers(c);case 10:if(!s){t.next=12;break}throw s;case 12:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()}],[{key:"_runAllMiddleware",value:function(){var t=u()(S.a.mark((function t(e,n,i){var o,s,u,c,f,h,l,d;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=[],s=null,u=!1,c=j(i),t.prev=4,c.s();case 6:if((f=c.n()).done){t.next=18;break}return h=f.value,t.next=10,r._runMiddleware(e,n,h,o);case 10:if(l=t.sent,d=a()(l,2),s=d[0],!(u=d[1])){t.next=16;break}return t.abrupt("break",18);case 16:t.next=6;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(4),c.e(t.t0);case 23:return t.prev=23,c.f(),t.finish(23);case 26:return t.abrupt("return",[s,u,o.reverse()]);case 27:case"end":return t.stop()}}),t,null,[[4,20,23,26]])})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"_runMiddleware",value:function(t,e,r,n){return new Promise((function(i){var o=function(t){var r=t||e.error;r&&(e.error=Object(x.h)(r)),i([r,!0])};try{r(t,e,(function(t){e.error?o(e.error):(t&&("function"!==typeof t&&o(new O.a({code:-32603,message:"JRPCEngine: 'next' return handlers must be functions"})),n.push(t)),i([null,!1]))}),o)}catch(a){o(a)}}))}},{key:"_runReturnHandlers",value:function(){var t=u()(S.a.mark((function t(e){var r,n,i;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=j(e),t.prev=1,i=S.a.mark((function t(){var e;return S.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.value,t.next=3,new Promise((function(t,r){e((function(e){return e?r(e):t()}))}));case 3:case"end":return t.stop()}}),t)})),r.s();case 4:if((n=r.n()).done){t.next=8;break}return t.delegateYield(i(),"t0",6);case 6:t.next=4;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),r.e(t.t1);case 13:return t.prev=13,r.f(),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])})));return function(e){return t.apply(this,arguments)}}()},{key:"_checkForCompletion",value:function(t,e,r){if(!("result"in e)&&!("error"in e))throw new O.a({code:-32603,message:"Response has no error or result for request"});if(!r)throw new O.a({code:-32603,message:"Nothing ended request"})}}]),r}(A.a);function B(t){var e=new C;return t.forEach((function(t){return e.push(t)})),e.asMiddleware()}function L(t){if(!t||!t.engine)throw new Error("Missing engine parameter!");var e,r=t.engine;return e=new E.Duplex({objectMode:!0,read:function(){},write:function(t,n,i){r.handle(t,(function(t,r){e.push(r)})),i()}}),r.on&&r.on("notification",(function(t){e.push(t)})),e}},function(t,e,r){"use strict";r.d(e,"a",(function(){return O})),r.d(e,"b",(function(){return j})),r.d(e,"c",(function(){return R}));var n=r(4),i=r.n(n),o=r(5),a=r.n(o),s=r(2),u=r.n(s),c=r(6),f=r.n(c),h=r(7),l=r.n(
2h),d=r(3),p=r.n(d),b=r(0),v=r.n(b),m=r(26),y=r.n(m),g=r(41),w=r.n(g),_=r(42),k=r.n(_),M=r(10),S=r(21);function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){v()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function A(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l()(this,r)}}var O=Symbol("IGNORE_SUBSTREAM"),j=function(t){f()(r,t);var e=A(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i()(this,r),t=e.call(this,x(x({},n),{},{objectMode:!0})),v()(u()(t),"_substreams",void 0),v()(u()(t),"getStream",void 0),t._substreams={},t}return a()(r,[{key:"createStream",value:function(t){if(!t)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[t])throw new Error('ObjectMultiplex - Substream for name "'.concat(t,'" already exists'));var e=new S.a({parent:this,name:t});return this._substreams[t]=e,function(t,e){var r=w()(e);y()(t,{readable:!1},r),y()(t,{writable:!1},r)}(this,(function(t){return e.destroy(t||void 0)})),e}},{key:"ignoreStream",value:function(t){if(!t)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[t])throw new Error('ObjectMultiplex - Substream for name "'.concat(t,'" already exists'));this._substreams[t]=O}},{key:"_read",value:function(){}},{key:"_write",value:function(t,e,r){var n=t.name,i=t.data;if(!n)return window.console.warn('ObjectMultiplex - malformed chunk without name "'.concat(t,'"')),r();var o=this._substreams[n];return o?(o!==O&&o.push(i),r()):(window.console.warn('ObjectMultiplex - orphaned data for stream "'.concat(n,'"')),r())}}]),r}(M.Duplex);function R(t){var e=new j;return e.getStream=function(t){return this._substreams[t]?this._substreams[t]:this.createStream(t)},k()(t,e,t,(function(t){t&&window.console.error(t)})),e}},function(t,e,r){"use strict";r.d(e,"a",(function(){return M}));var n=r(15),i=r.n(n),o=r(4),a=r.n(o),s=r(5),u=r.n(s),c=r(2),f=r.n(c),h=r(6),l=r.n(h),d=r(7),p=r.n(d),b=r(3),v=r.n(b),m=r(0),y=r.n(m),g=r(10);function w(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v()(t);if(e){var i=v()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p()(this,r)}}function _(){}var k="ACK",M=function(t){l()(r,t);var e=w(r);function r(t){var n,i=t.name,o=t.target,s=t.targetWindow;return a()(this,r),n=e.call(this,{objectMode:!0}),y()(f()(n),"_init",void 0),y()(f()(n),"_haveSyn",void 0),y()(f()(n),"_name",void 0),y()(f()(n),"_target",void 0),y()(f()(n),"_targetWindow",void 0),y()(f()(n),"_origin",void 0),y()(f()(n),"_onMessage",void 0),y()(f()(n),"_synIntervalId",void 0),n._init=!1,n._haveSyn=!1,n._name=i,n._target=o,n._targetWindow=s||window,n._origin=s?"*":window.location.origin,n._onMessage=n.onMessage.bind(f()(n)),n._synIntervalId=null,window.addEventListener("message",n._onMessage,!1),n._handShake(),n}return u()(r,[{key:"_break",value:function(){this.cork(),this._write("BRK",null,_),this._haveSyn=!1,this._init=!1}},{key:"_handShake",value:function(){this._write("SYN",null,_),this.cork()}},{key:"_onData",value:function(t){if(this._init)if("BRK"===t)this._break();else try{this.push(t)}
2catch(e){this.emit("error",e)}else"SYN"===t?(this._haveSyn=!0,this._write(k,null,_)):t===k&&(this._init=!0,this._haveSyn||this._write(k,null,_),this.uncork())}},{key:"_postMessage",value:function(t){var e=this._origin;if("object"===i()(t)){var r=t;if("object"===i()(r.data)){var n=r.data;if(Array.isArray(n.params)&&n.params.length>0){var o=n.params[0];o._origin&&(e=o._origin),o._origin=window.location.origin}}}this._targetWindow.postMessage({target:this._target,data:t},e)}},{key:"onMessage",value:function(t){var e=t.data;"*"!==this._origin&&t.origin!==this._origin||t.source!==this._targetWindow||"object"!==i()(e)||e.target!==this._name||!e.data||this._onData(e.data)}},{key:"_read",value:function(){}},{key:"_write",value:function(t,e,r){this._postMessage(t),r()}}]),r}(g.Duplex)},function(t,e){},function(t,e){t.exports=r(251)},function(t,e){t.exports=r(252)},function(t,e){t.exports=r(479)},function(t,e){t.exports=r(197)},function(t,e){t.exports=r(264)},function(t,e,r){"use strict";r.r(e);var n=r(18);r.d(e,"serializeError",(function(){return n.h})),r.d(e,"getRpcPromiseCallback",(function(){return n.g})),r.d(e,"createErrorMiddleware",(function(){return n.b})),r.d(e,"createStreamMiddleware",(function(){return n.f})),r.d(e,"createScaffoldMiddleware",(function(){return n.e})),r.d(e,"createIdRemapMiddleware",(function(){return n.c})),r.d(e,"createLoggerMiddleware",(function(){return n.d})),r.d(e,"createAsyncMiddleware",(function(){return n.a}));var i=r(34);r.d(e,"JRPCEngine",(function(){return i.a})),r.d(e,"mergeMiddleware",(function(){return i.c})),r.d(e,"createEngineStream",(function(){return i.b}));var o=r(35);r.d(e,"IGNORE_SUBSTREAM",(function(){return o.a})),r.d(e,"ObjectMultiplex",(function(){return o.b})),r.d(e,"setupMultiplex",(function(){return o.c}));var a=r(36);r.d(e,"PostMessageStream",(function(){return a.a}));var s=r(14);r.d(e,"SafeEventEmitter",(function(){return s.a}));var u=r(8);r.d(e,"SerializableError",(function(){return u.a}));var c=r(21);r.d(e,"Substream",(function(){return c.a}));var f=r(37);for(var h in f)["default","PostMessageStream","SafeEventEmitter","SerializableError","Substream","serializeError","getRpcPromiseCallback","createErrorMiddleware","createStreamMiddleware","createScaffoldMiddleware","createIdRemapMiddleware","createLoggerMiddleware","createAsyncMiddleware","JRPCEngine","mergeMiddleware","createEngineStream","IGNORE_SUBSTREAM","ObjectMultiplex","setupMultiplex"].indexOf(h)<0&&function(t){r.d(e,t,(function(){return f[t]}))}(h)},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),a=n[0],s=n[1],u=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),f=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[f++]=e>>16&255,u[f++]=e>>8&255,u[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(f(t,s,s+a>u?u:s+a));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,h=r?i-1:0,l=r?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+t[e+h],h+=l,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+h],h+=l,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,h=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=M
vendor: 4,607 bytes, line 2
2ath.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=f?(s=0,a=f):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+d]=255&a,d+=p,a/=256,c-=8);t[r+d-p]|=128*b}},function(t,e){},function(t,e,r){"use strict";var n=r(24).Buffer,i=r(48);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(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=o,i=s,e.copy(r,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,r){(function(t){var n="undefined"!==typeof t&&t||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(50),e.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(13))},function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,i=1,o={},a=!1,s=t.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(t);u=u&&u.setTimeout?u:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){f(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?function(){var e="setImmediate$"+Math.random()+"$",r=function(r){r.source===t&&"string"===typeof r.data&&0===r.data.indexOf(e)&&f(+r.data.slice(e.length))};t.addEventListener?t.addEventListener("message",r,!1):t.attachEvent("onmessage",r),n=function(r){t.postMessage(e+r,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){f(t.data)},n=function(e){t.port2.postMessage(e)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var t=s.documentElement;n=function(e){var r=s.createElement("script");r.onreadystatechange=function(){f(e),r.onreadystatechange=null,t.removeChild(r),r=null},t.appendChild(r)}}():n=function(t){setTimeout(f,0,t)},u.setImmediate=function(t){"function"!==typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var a={callback:t,args:e};return o[i]=a,n(i),i++},u.clearImmediate=c}function c(t){delete o[t]}function f(t){if(a)setTimeout(f,0,t);else{var e=o[t];if(e){a=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{c(t),a=!1}}}}}("undefined"===typeof self?"undefined"===typeof t?this:t:self)}).call(this,r(13),r(19))},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;
2return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(13))},function(t,e,r){var n=r(30),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";t.exports=o;var n=r(33),i=Object.create(r(16));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(12),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(25)},function(t,e,r){t.exports=r(11)},function(t,e,r){t.exports=r(23).Transform},function(t,e,r){t.exports=r(23).PassThrough}])}).call(this,r(7).Buffer)},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=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.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function t(e,r){if(e&&r)return t(e)(r);if("function"!==typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach((function(t){n[t]=e[t]})),n;function n(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var n=e.apply(this,t),i=t[t.length-1];
2return"function"===typeof n&&n!==i&&Object.keys(i).forEach((function(t){n[t]=i[t]})),n}}},function(t,e){t.exports=s,s.default=s,s.stable=h,s.stableStringify=h;var r="[...]",n="[Circular]",i=[],o=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(t,e,r,n){var s;"undefined"===typeof n&&(n=a()),c(t,"",0,[],void 0,0,n);try{s=0===o.length?JSON.stringify(t,e,r):JSON.stringify(t,d(e),r)}catch(f){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var u=i.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function u(t,e,r,n){var a=Object.getOwnPropertyDescriptor(n,r);void 0!==a.get?a.configurable?(Object.defineProperty(n,r,{value:t}),i.push([n,r,e,a])):o.push([e,r,t]):(n[r]=t,i.push([n,r,e]))}function c(t,e,i,o,a,s,f){var h;if(s+=1,"object"===typeof t&&null!==t){for(h=0;h<o.length;h++)if(o[h]===t)return void u(n,t,e,a);if("undefined"!==typeof f.depthLimit&&s>f.depthLimit)return void u(r,t,e,a);if("undefined"!==typeof f.edgesLimit&&i+1>f.edgesLimit)return void u(r,t,e,a);if(o.push(t),Array.isArray(t))for(h=0;h<t.length;h++)c(t[h],h,h,o,t,s,f);else{var l=Object.keys(t);for(h=0;h<l.length;h++){var d=l[h];c(t[d],d,h,o,t,s,f)}}o.pop()}}function f(t,e){return t<e?-1:t>e?1:0}function h(t,e,r,n){"undefined"===typeof n&&(n=a());var s,u=l(t,"",0,[],void 0,0,n)||t;try{s=0===o.length?JSON.stringify(u,e,r):JSON.stringify(u,d(e),r)}catch(f){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function l(t,e,o,a,s,c,h){var d;if(c+=1,"object"===typeof t&&null!==t){for(d=0;d<a.length;d++)if(a[d]===t)return void u(n,t,e,s);try{if("function"===typeof t.toJSON)return}catch(m){return}if("undefined"!==typeof h.depthLimit&&c>h.depthLimit)return void u(r,t,e,s);if("undefined"!==typeof h.edgesLimit&&o+1>h.edgesLimit)return void u(r,t,e,s);if(a.push(t),Array.isArray(t))for(d=0;d<t.length;d++)l(t[d],d,d,a,t,c,h);else{var p={},b=Object.keys(t).sort(f);for(d=0;d<b.length;d++){var v=b[d];l(t[v],v,d,a,t,c,h),p[v]=t[v]}if("undefined"===typeof s)return p;i.push([s,e,t]),s[e]=p}a.pop()}}function d(t){return t="undefined"!==typeof t?t:function(t,e){return e},function(e,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===e&&i[0]===r){r=i[2],o.splice(n,1);break}}return t.call(this,e,r)}}},,function(t,e,r){"use strict";(function(t,n){var i=new(0,r(119).ec)("secp256k1"),o=t.crypto||t.msCrypto||{},a=o.subtle||o.webkitSubtle,s=r(482),u=n.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),c=n.alloc(32,0);function f(t,e){if(!t)throw new Error(e||"Assertion failed")}function h(t){return e=t,!(!n.isBuffer(e)||32!==e.length)&&(t.compare(c)>0&&t.compare(u)<0);var e}function l(t){var e=new Uint8Array(t);return"undefined"===typeof o.getRandomValues?n.from(s.randomBytes(t)):(o.getRandomValues(e),n.from(e))}function d(t){return new Promise((function(e){var r=s.createHash("sha512").update(t).digest();e(new Uint8Array(r))}))}function p(t){return function(e,r,i){return new Promise((function(o){if(a){return a.importKey("raw",r,{name:"AES-CBC"},!1,[t]).then((function(r){var n={name:"AES-CBC",iv:e};return a[t](n,r,i)})).then((function(t){o(n.from(new Uint8Array(t)))}))}if("encrypt"===t){var u=s.createCipheriv("aes-256-cbc",r,e),c=u.update(i),f=u.final();o(n.concat([c,f]))}else if("decrypt"===t){var h=s.createDecipheriv("aes-256-cbc",r,e),l=h.update(i),d=h.final();o(n.concat([l,d]))}}))}}var b=p("encrypt"),v=p("decrypt");e.generatePrivate=function(){for(var t=l(32);!h(t);)t=l(32);return t};var m=e.getPublic=function(t){return f(32===t.length,"Bad private key"),f(h(t),"Bad private key"),n.from(i.keyFromPrivate(t).getPublic("arr"))};e.getPublicCompressed=function(t){f(32===t.length,"Bad private key"),f(h(t),"Bad private key");return n.from(i.keyFromPrivate(t).getPublic(!0,"arr"))};e.sign=function(t,e){return new Promise((function(r){f(32===t.length,"Bad private key"),f(h(t),"Bad private key"),f(e.length>0,"Message should not be empty"),f(e.length<=32,"Message is too long"),r(n.from(i.sign(e,t,{canonical:!0}).toDER()))}))},e.verify=function(t,e,r){return new Promise((function(n,o){f(65===t.length||33===t.length,"Bad public key"),65===t.length&&f(4===t[0],"Bad public key"),33===t.length&&f(2===t[0]||3===t[0],"Bad public key"),f(e.length>0,"Message should not be empty"),f(e.length<=32,"Message is too long"),i.verify(e,r,t)?n(null):o(new Error("Bad signature"))}))};var y=e.derive=function(t,e){return new Promise((function(r){f(n.isBuffer(t),"Bad private key"),f(n.isBuffer(e),"Bad public key"),f(32===t.length,"Bad private key"),f(h(t),"Bad private key"),f(65===e.length||33===e.length,"Bad public key"),65===e.length&&f(4===e[0],"Bad public key"),33===e.length&&f(2===e[0]||3===e[0],"Bad public key");var o=i.keyFromPrivate(t),a=i.keyFromPublic(e),s=o.derive(a.getPublic());r(n.from(s.toArray()))}))};e.encrypt=function(t,e,r){var i,o,a,u;return r=r||{},new Promise((function(e){for(var n=r.ephemPrivateKey||l(32);!h(n);)n=r.ephemPrivateKey||l(32);o=m(n),e(y(n,t))})).then((function(t){return d(t)})).then((function(t){i=r.iv||l(16);var n=t.slice(0,32);return u=t.slice(32),b(i,n,e)})).then((function(t){a=t;var e=n.concat([i,o,a]);return function(t,e){return new Promise((function(r){var i=s.createHmac("sha256",n.from(t));i.update(e),r(i.digest())}
2))}(u,e)})).then((function(t){return{iv:i,ephemPublicKey:o,ciphertext:a,mac:t}}))},e.decrypt=function(t,e){var r;return y(t,e.ephemPublicKey).then((function(t){return d(t)})).then((function(t){r=t.slice(0,32);var i,o,a,u=t.slice(32),c=n.concat([e.iv,e.ephemPublicKey,e.ciphertext]);return i=u,o=c,a=e.mac,new Promise((function(t){var e=s.createHmac("sha256",n.from(i));e.update(o),t(function(t,e){if(t.length!==e.length)return!1;for(var r=0,n=0;n<t.length;n++)r|=t[n]^e[n];return 0===r}(e.digest(),a))}))})).then((function(t){return f(t,"Bad MAC"),v(e.iv,r,e.ciphertext)})).then((function(t){return n.from(new Uint8Array(t))}))}}).call(this,r(31),r(7).Buffer)},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(89),e.createHash=e.Hash=r(121),e.createHmac=e.Hmac=r(278);var n=r(507),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r(281);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=r(509);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=r(524);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var c=r(530);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=r(552);var f=r(555);e.publicEncrypt=f.publicEncrypt,e.privateEncrypt=f.privateEncrypt,e.publicDecrypt=f.publicDecrypt,e.privateDecrypt=f.privateDecrypt;var h=r(559);e.randomFill=h.randomFill,e.randomFillSync=h.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,r){(e=t.exports=r(266)).Stream=e,e.Readable=e,e.Writable=r(270),e.Duplex=r(103),e.Transform=r(271),e.PassThrough=r(489),e.finished=r(199),e.pipeline=r(490)},,function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=r(7).Buffer,s=r(486).inspect,u=s&&s.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,r,c;return e=t,(r=[{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(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,i=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=i,n=s,a.prototype.copy.call(e,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0===(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
vendor: 6,243 bytes, line 2
2e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&o(e.prototype,r),c&&o(e,c),t}()},,function(t,e,r){"use strict";(function(e){var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(199),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),l=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var r=t[l].read();null!==r&&(t[f]=null,t[a]=null,t[s]=null,e(d(r,!1)))}}function b(t){e.nextTick(p,t)}var v=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(n={get stream(){return this[l]},next:function(){var t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(d(void 0,!0));if(this[l].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[u]?n(t[u]):r(d(void 0,!0))}))}));var n,i=this[f];if(i)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(d(void 0,!0)):e[h](r,n)}),n)}}(i,this));else{var o=this[l].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[h])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[l].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),v);t.exports=function(t){var e,r=Object.create(m,(i(e={},l,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var n=r[l].read();n?(r[f]=null,r[a]=null,r[s]=null,t(d(n,!1))):(r[a]=t,r[s]=e)},writable:!0}),e));return r[f]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[f]=null,r[a]=null,r[s]=null,e(t)),void(r[u]=t)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(d(void 0,!0))),r[c]=!0})),t.on("readable",b.bind(null,r)),r}}).call(this,r(27))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,r){"use strict";t.exports=i;var n=r(271);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(19)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){"use strict";var n;var i=r(102).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=r(199)),n(t,{readable:e,writable:i},(function(t){if(t)return o(t);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"===typeof t.abort}(t)?t.abort():"function"===typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function c(t){t()}function f(t,e){return t.pipe(e)}function h(t){return t.length?"function"!==typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=h(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,r){var o=r<e.length-1;return u(t,o,r>0,(function(t){n||(n=t),t&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return e.reduce(f)}},function(t,e,r){var n=r(19),i=r(104),o=r(25).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<30|t>>>2}function f(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=t.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var l=0;l<80;++l){var d=~~(l/20),p=0|((e=n)<<5|e>>>27)+f(d,i,o,s)+u+r[l]+a[d];u=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.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=u},function(t,e,r){var n=r(19),i=r(104),o=r(25).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function h(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=t.readInt32BE(4*l);for(;l<80;++l)r[l]=(e=r[l-3]^r[l-8]^r[l-14]^r[l-16])<<1|e>>>31;for(var d=0;d<80;++d){var p=~~(d/20),b=c(n)+h(p,i,o,s)+u+r[d]+a[p]|0;u=s,s=o,o=f(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.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=u},function(t,e,r){var n=r(19),i=r(272),o=r(104),a=r(25).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var t=a.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}
vendor: 9,894 bytes, line 2
2,t.exports=u},function(t,e,r){var n=r(19),i=r(273),o=r(104),a=r(25).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+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=u},function(t,e,r){t.exports=i;var n=r(60).EventEmitter;function i(){n.call(this)}r(19)(i,n),i.Readable=r(202),i.Writable=r(502),i.Duplex=r(503),i.Transform=r(504),i.PassThrough=r(505),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"===typeof t.destroy&&t.destroy())}function c(t){if(f(),0===n.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",c),t.on("error",c),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t}},,function(t,e,r){"use strict";var n=r(203).Buffer,i=r(498);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(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=o,i=s,e.copy(r,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},,function(t,e,r){(function(t){var n="undefined"!==typeof t&&t||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(500),e.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(31))},function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,i=1,o={},a=!1,s=t.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(t);u=u&&u.setTimeout?u:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){f(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?function(){var e="setImmediate$"+Math.random()+"$",r=function(r){r.source===t&&"string"===typeof r.data&&0===r.data.indexOf(e)&&f(+r.data.slice(e.length))};t.addEventListener?t.addEventListener("message",r,!1):t.attachEvent("onmessage",r),n=function(r){t.postMessage(e+r,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){f(t.data)},n=function(e){t.port2.postMessage(e)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var t=s.documentElement;n=function(e){var r=s.createElement("script");r.onreadystatechange=function(){f(e),r.onreadystatechange=null,t.removeChild(r),r=null},t.appendChild(r)}}():n=function(t){setTimeout(f,0,t)},u.setImmediate=function(t){"function"!==typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var a={callback:t,args:e};return o[i]=a,n(i),i++},u.clearImmediate=c}function c(t){delete o[t]}function f(t){if(a)setTimeout(f,0,t);else{var e=o[t];if(e){a=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{c(t),a=!1}}}}}("undefined"===typeof self?"undefined"===typeof t?this:t:self)}).call(this,r(31),r(27))},function(t,e,r){"use strict";t.exports=o;var n=r(277),i=Object.create(r(122));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(19),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(204)},function(t,e,r){t.exports=r(90)},function(t,e,r){t.exports=r(202).Transform},function(t,e,r){t.exports=r(202).PassThrough},function(t,e,r){"use strict";var n=r(19),i=r(25).Buffer,o=r(80),a=i.alloc(128),s=64;function u(t,e){o.call(this,"digest"),"string"===typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length<s&&(e=i.concat([e,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),u=0;u<s;u++)r[u]=54^e[u],n[u]=92^e[u];this._hash=[r]}n(u,o),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=u},function(t,e,r){t.exports=r(280)},function(t,e,r){(function(e,n){var i,o=r(25).Buffer,a=r(282),s=r(283),u=r(284),c=r(285),f=e.crypto&&e.crypto.subtle,h={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"},l=[];function d(t,e,r,n,i){return f.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return f.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,r,p,b,v,m){"function"===typeof v&&(m=v,v=void 0);var y=h[(v=v||"sha1").toLowerCase()];if(!y||"function"!==typeof e.Promise)return n.nextTick((function(){var e;try{e=u(t,r,p,b,v)}catch(n){return m(n)}m(null,e)}));if(a(p,b),t=c(t,s,"Password"),r=c(r,s,"Salt"),"function"!==typeof m)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){n.nextTick((function(){e(null,t)}))}),(function(t){n.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!==l[t])return l[t];var r=d(i=i||o.alloc(8),i,10,128,t).then((function(){return!0})).catch((function(){return!1}));return l[t]=r,r}(y).then((function(e){return e?d(t,r,p,b,y):u(t,r,p,b,v)})),m)}}).call(this,r(31),r(27))},function(t,e,r){var n=r(510),i=r(206),o=r(207),a=r(523),s=r(153);function u(t,e,r){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function c(t,e,r){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return u(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return c(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(t,e,r){var n=r(80),i=r(511),o=r(19),a=r(25).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){n.call(this);var e,r=t.mode.toLowerCase(),i=s[r];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=u,o(u,n),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},function(t,e,r){"use strict";e.utils=r(286),e.Cipher=r(205),e.DES=r(287),e.CBC=r(512),e.EDE=r
vendor: 15,694 bytes, line 2
2(513)},function(t,e,r){"use strict";var n=r(56),i=r(19),o={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},o._update=function(t,e,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];o._update.call(this,a,0,r,n);for(s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,t,e,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},function(t,e,r){"use strict";var n=r(56),i=r(19),o=r(205),a=r(287);function s(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(t){o.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}i(u,o),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},function(t,e,r){var n=r(207),i=r(291),o=r(25).Buffer,a=r(292),s=r(80),u=r(152),c=r(153);function f(t,e,r){s.call(this),this._cache=new l,this._cipher=new u.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}r(19)(f,s),f.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return o.concat(n)};var h=o.alloc(16,16);function l(){this.cache=o.allocUnsafe(0)}function d(t,e,r){var s=n[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"===typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,e,r):"auth"===s.type?new i(s.module,e,r):new f(s.module,e,r)}f.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(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=o.concat([this.cache,t])},l.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},l.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return o.concat([this.cache,e])},e.createCipheriv=d,e.createCipher=function(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(e,!1,r.key,r.iv);return d(t,i.key,i.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,r){var n=r(123);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},function(t,e,r){var n=r(25).Buffer,i=r(123);function o(t,e,r){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){for(var i,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,o(t,e,r)]);break}i=t._cache.length,a=n.concat([a,o(t,e.slice(0,i),r)]),e=e.slice(i)}return a}},function(t,e,r){var n=r(25).Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:i])]),i}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(t,e[s],r);return a}},function(t,e,r){var n=r(25).Buffer;function i(t,e,r){for(var n,i,a=-1,s=0;++a<8;)n=e&1<<7-a?128:0,s+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=o(t._prev,r?n:i);return s}function o(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i<r;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(t,e[s],r);return a}},function(t,e,r){(function(t){var n=r(123);function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(this,r(7).Buffer)},function(t,e,r){var n=r(25).Buffer,i=n.alloc(16,0);function o(t){var e=n.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 a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!==(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!==(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},function(t,e,r){var n=r(291),i=r(25).Buffer,o=r(207),a=r(292),s=r(80),u=r(152),c=r(153);function f(t,e,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function l(t,e,r){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"===typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,r,!0):"auth"===s.type?new n(s.module,e,r,!0):new f(s.module,e,r)}r(19)(f,s),f.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},f.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 r=-1;for(;++r<e;)if(t[r+(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")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=i.concat([this.cache,t])},h.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},h.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(e,!1,r.key,r.iv);return l(t,n.key,n.iv)},e.createDecipheriv=l},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,r){(function(t){var n=r(293),i=r(528),o=r(529);var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var r=new t(i[e].prime,"hex"),n=new t(i[e].gen,"hex");return new o(r,n)},e.createDiffieHellman=e.DiffieHellman=function e(r,i,s,u){return t.isBuffer(i)||void 0===a[i]?e(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,u)),"number"===typeof r?new o(n(r,s),s,!0):(t.isBuffer(r)||(r=new t(r,i)),new o(r,s,!0)))}}).call(this,r(7).Buffer)},,function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=r(527).Buffer}catch(S){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=u(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],f=[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],h=[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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?b+r:c[l-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>
vendor: 3,646 bytes, line 2
2=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 1,190 bytes, line 2
2var 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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 4,788 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,
vendor: 12,355 bytes, line 2
2X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function p(t,e,r){return(new b).mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(d=l),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):r<63?l(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):p(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 16,384 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0===(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0===(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},i(y,m),y.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},i(g,m),i(w,m),i(_,m),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new g;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(69)(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":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe11
27577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f3
21cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,r){(function(e){var n=r(294),i=new(r(295)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),c=new n(7),f=r(293),h=r(89);function l(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new n(t),this}function d(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new n(t),this}t.exports=b;var p={};function b(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=l,this.setPrivateKey=d):this._primeCode=8}function v(t,r){var n=new e(t.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in p)return p[n];var h,l=0;if(t.isEven()||!f.simpleSieve||!f.fermatTest(t)||!i.test(t))return l+=1,l+="02"===r||"05"===r?8:4,p[n]=l,l;switch(i.test(t.shrn(1))||(l+=2),r){case"02":t.mod(o).cmp(a)&&(l+=8);break;case"05":(h=t.mod(s)).cmp(u)&&h.cmp(c)&&(l+=8);break;default:l+=4}return p[n]=l,l}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(t){var r=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new e(r.toArray()),o=this.getPrime();if(i.length<o.length){var a=new e(o.length-i.length);a.fill(0),i=e.concat([a,i])}return i},b.prototype.getPublicKey=function(t){return v(this._pub,t)},b.prototype.getPrivateKey=function(t){return v(this._priv,t)},b.prototype.getPrime=function(t){return v(this.__prime,t)},b.prototype.getGenerator=function(t){return v(this._gen,t)},b.prototype.setGenerator=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.__gen=t,this._gen=new n(t),this}}).call(this,r(7).Buffer)},function(t,e,r){var n=r(25).Buffer,i=r(121),o=r(531),a=r(19),s=r(539),u=r(551),c=r(280);function f(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function h(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function l(t){return new f(t)}function d(t){return new h(t)}Object.keys(c).forEach((function(t){c[t].id=n.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]})),a(f,o.Writable),f.prototype._write=function(t,e,r){this._hash.update(t),r()},f.prototype.update=function(t,e){return"string"===typeof t&&(t=n.from(t,e)),this._hash.update(t),this},f.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=s(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(h,o.Writable),h.prototype._write=function(t,e,r){this._hash.update(t),r()},h.prototype.update=function(t,e){return"string"===typeof t&&(t=n.from(t,e)),this._hash.update(t),this},h.prototype.verify=function(t,e,r){"string"===typeof e&&(e=n.from(e,r)),this.end();var i=this._hash.digest();return u(e,i,t,this._signType,this._tag)},t.exports={Sign:l,Verify:d,createSign:l,createVerify:d}},function(t,e,r){(e=t.exports=r(296)).Stream=e,e.Readable=e,e.Writable=r(300),e.Duplex=r(106),e.Transform=r(301),e.PassThrough=r(537),e.finished=r(208),e.pipeline=r(538)},,function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=r(7).Buffer,s=r(534).inspect,u=s&&s.custom||"inspect";
vendor: 4,327 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,r,c;return e=t,(r=[{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(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,i=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=i,n=s,a.prototype.copy.call(e,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0===(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&o(e.prototype,r),c&&o(e,c),t}()},,function(t,e,r){"use strict";(function(e){var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(208),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),l=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var r=t[l].read();null!==r&&(t[f]=null,t[a]=null,t[s]=null,e(d(r,!1)))}}function b(t){e.nextTick(p,t)}var v=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(n={get stream(){return this[l]},next:function(){var t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(d(void 0,!0));if(this[l].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[u]?n(t[u]):r(d(void 0,!0))}))}));var n,i=this[f];if(i)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(d(void 0,!0)):e[h](r,n)}),n)}}(i,this));else{var o=this[l].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[h])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[l].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),v);t.exports=function(t){var e,r=Object.create(m,(i(e={},l,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var n=r[l].read();n?(r[f]=null,r[a]=null,r[s]=null,t(d(n,!1))):(r[a]=t,r[s]=e)},writable:!0}),e));return r[f]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[f]=null,r[a]=null,r[s]=null,e(t)),void(r[u]=t)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(d(void 0,!0))),r[c]=!0})),t.on("readable",b.bind(null,r)),r}}
vendor: 11,416 bytes, line 2
2).call(this,r(27))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,r){"use strict";t.exports=i;var n=r(301);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(19)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){"use strict";var n;var i=r(105).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=r(208)),n(t,{readable:e,writable:i},(function(t){if(t)return o(t);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"===typeof t.abort}(t)?t.abort():"function"===typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function c(t){t()}function f(t,e){return t.pipe(e)}function h(t){return t.length?"function"!==typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=h(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,r){var o=r<e.length-1;return u(t,o,r>0,(function(t){n||(n=t),t&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return e.reduce(f)}},function(t,e,r){var n=r(25).Buffer,i=r(278),o=r(209),a=r(119).ec,s=r(302),u=r(154),c=r(309);function f(t,e,r,o){if((t=n.from(t.toArray())).length<e.byteLength()){var a=n.alloc(e.byteLength()-t.length);t=n.concat([a,t])}var s=r.length,u=function(t,e){t=(t=h(t,e)).mod(e);var r=n.from(t.toArray());if(r.length<e.byteLength()){var i=n.alloc(e.byteLength()-r.length);r=n.concat([i,r])}return r}(r,e),c=n.alloc(s);c.fill(1);var f=n.alloc(s);return f=i(o,f).update(c).update(n.from([0])).update(t).update(u).digest(),c=i(o,f).update(c).digest(),{k:f=i(o,f).update(c).update(n.from([1])).update(t).update(u).digest(),v:c=i(o,f).update(c).digest()}}function h(t,e){var r=new s(t),n=(t.length<<3)-e.bitLength();return n>0&&r.ishrn(n),r}function l(t,e,r){var o,a;do{for(o=n.alloc(0);8*o.length<t.bitLength();)e.v=i(r,e.k).update(e.v).digest(),o=n.concat([o,e.v]);a=h(o,t),e.k=i(r,e.k).update(e.v).update(n.from([0])).digest(),e.v=i(r,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function d(t,e,r,n){return t.toRed(s.mont(r)).redPow(e).fromRed().mod(n)}t.exports=function(t,e,r,i,p){var b=u(e);if(b.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(t,e){var r=c[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new a(r).keyFromPrivate(e.privateKey).sign(t);return n.from(i.toDER())}(t,b)}if("dsa"===b.type){if("dsa"!==i)throw new Error("wrong private key type");return function(t,e,r){var i,o=e.params.priv_key,a=e.params.p,u=e.params.q,c=e.params.g,p=new s(0),b=h(t,u).mod(u),v=!1,m=f(o,u,t,r);for(;!1===v;)p=d(c,i=l(u,m,r),a,u),0===(v=i.invm(u).imul(b.add(o.mul(p))).mod(u)).cmpn(0)&&(v=!1,p=new s(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t));128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),n.from(r)}(p,v)}(t,b,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");t=n.concat([p,t]);for(var v=b.modulus.byteLength(),m=[0,1];t.length+m.length+1<v;)m.push(255);m.push(0);for(var y=-1;++y<t.length;)m.push(t[y]);return o(m,b)},t.exports.getKey=f,t.exports.makeKey=l},,function(t,e,r){"use strict";var n=r(303);e.certificate=r(548);var i=n.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=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));e.PublicKey=a;var s=n.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())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var c=n.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=c;var f=n.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=f,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var h=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=h;var l=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},,function(t,e,r){"use strict";var n=r(305),i=r(307),o=r(19);function a(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new a(t,e)},a.prototype._createNamed=function(t){var e=this.name;function r(t){this._initNamed(t,e)}return o(r,t),r.prototype._initNamed=function(e,r){t.call(this,e,r)},new r(this)},a.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i[t])),this.decoders[t]},a.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},a.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},a.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},function(t,e,r){"use strict";var n=r(19),i=r(306);function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},function(t,e,r){"use strict";var n=r(19),i=r(210).Buffer,o=r(308);function a(t){o.call(this,t),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,c=0;c<r.length;c++){var f=r[c].match(a);if(null!==f&&f[2]===n){if(-1!==s){if("END"!==f[1])break;u=c;break}if("BEGIN"!==f[1])break;s=c}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+n);var h=r.slice(s+1,u).join("");h.replace(/[^a-z0-9+/=]+/gi,"");var l=i.from(h,"base64");return o.prototype.decode.call(this,l,e)}},function(t,e,r){"use strict";var n=e;n.Reporter=r(212).Reporter,n.DecoderBuffer=r(124).DecoderBuffer,n.EncoderBuffer=r(124).EncoderBuffer,n.Node=r(211)},function(t,e,r){"use strict";var n=e;n._reverse=function(t){var e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r})),e},n.der=r(213)},function(t,e,r){"use strict";var n=r(303),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=n.define("RDNSequence",(function(){this.seqof(u)})),f=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),h=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),l=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(h),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},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,r){var n=/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,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(153),s=r(206),u=r(25).Buffer;t.exports=function(t,e){var r,c=t.toString(),f=c.match(n);if(f){var h="aes"+f[1],l=u.from(f[2],"hex"),d=u.from(f[3].replace(/[\r\n]/g,""),"base64"),p=a(e,l.slice(0,8),parseInt(f[1],10)).key,b=[],v=s.createDecipheriv(h,p,l);b.push(v.update(d)),b.push(v.final()),r=u.concat(b)}else{var m=c.match(o);r=u.from(m[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},function(t,e,r){var n=r(25).Buffer,i=r(302),o=r(119).ec,a=r(154),s=r(309);function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,r,c,f){var h=a(r);if("ec"===h.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(t,e,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,h)}if("dsa"===h.type){if("dsa"!==c)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,o=r.data.q,s=r.data.g,c=r.data.pub_key,f=a.signature.decode(t,"der"),h=f.s,l=f.r;u(h,o),u(l,o);var d=i.mont(n),p=h.invm(o);
vendor: 9,196 bytes, line 2
2return 0===s.toRed(d).redPow(new i(e).mul(p).mod(o)).fromRed().mul(c.toRed(d).redPow(l.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(l)}(t,e,h)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");e=n.concat([f,e]);for(var l=h.modulus.byteLength(),d=[1],p=0;e.length+d.length+2<l;)d.push(255),p++;d.push(0);for(var b=-1;++b<e.length;)d.push(e[b]);d=n.from(d);var v=i.mont(h.modulus);t=(t=new i(t).toRed(v)).redPow(new i(h.publicExponent)),t=n.from(t.fromRed().toArray());var m=p<8?1:0;for(l=Math.min(t.length,d.length),t.length!==d.length&&(m=1),b=-1;++b<l;)m|=t[b]^d[b];return 0===m}},function(t,e,r){(function(e){var n=r(119),i=r(553);t.exports=function(t){return new a(t)};var o={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 a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(t,r,n){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(n&&i.length<n){var o=new e(n-i.length);o.fill(0),i=e.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,r,n){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),s(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,t)},a.prototype.getPrivateKey=function(t){return s(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,r){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var n=new i(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(7).Buffer)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=r(554).Buffer}catch(S){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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 o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=u(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],f=[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],h=[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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?b+r:c[l-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>
vendor: 3,646 bytes, line 2
2=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 1,190 bytes, line 2
2var 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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,v=0|a[2],m=8191&v,y=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,E=0|a[5],x=8191&E,A=E>>>13,O=0|a[6],j=8191&O,R=O>>>13,I=0|a[7],P=8191&I,T=I>>>13,C=0|a[8],B=8191&C,L=C>>>13,N=0|a[9],D=8191&N,U=N>>>13,z=0|s[0],W=8191&z,q=z>>>13,F=0|s[1],K=8191&F,H=F>>>13,Y=0|s[2],V=8191&Y,Z=Y>>>13,G=0|s[3],X=8191&G,J=G>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>
vendor: 4,788 bytes, line 2
213,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(h,W))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,W)|0))<<13)|0;c=((o=Math.imul(l,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,W),i=(i=Math.imul(p,q))+Math.imul(b,W)|0,o=Math.imul(b,q);var mt=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,W),i=(i=Math.imul(m,q))+Math.imul(y,W)|0,o=Math.imul(y,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,H)|0;var yt=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,V)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,W),i=(i=Math.imul(w,q))+Math.imul(_,W)|0,o=Math.imul(_,q),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Z)|0;var gt=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,W),i=(i=Math.imul(M,q))+Math.imul(S,W)|0,o=Math.imul(S,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var wt=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,W),i=(i=Math.imul(x,q))+Math.imul(A,W)|0,o=Math.imul(A,q),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var _t=(c+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,q))+Math.imul(R,W)|0,o=Math.imul(R,q),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0;var kt=(c+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,W),i=(i=Math.imul(P,q))+Math.imul(T,W)|0,o=Math.imul(T,q),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var Mt=(c+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(L,W)|0,o=Math.imul(L,q),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0;var St=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,q))+Math.imul(U,W)|0,o=Math.imul(U,q),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(j,
vendor: 12,355 bytes, line 2
2X)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Et=(c+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,H))+Math.imul(U,K)|0,o=Math.imul(U,H),n=n+Math.imul(B,V)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(m,ht)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(j,rt)|0,i=(i=i+Math.imul(j,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,bt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,bt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,bt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,bt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(j,ut)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0;var jt=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,bt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,bt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),n=n+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ct))+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,lt)|0;var Pt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,bt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Ct=(c+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=vt,u[1]=mt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=Et,u[10]=xt,u[11]=At,u[12]=Ot,u[13]=jt,u[14]=Rt,u[15]=It,u[16]=Pt,u[17]=Tt,u[18]=Ct,0!==c&&(u[19]=c,r.length++),r};function p(t,e,r){return(new b).mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(d=l),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):r<63?l(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;s=67108863&(l=l+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):p(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],v=r[f+d+a],m=n[f+d+a],y=h*v-l*m;m=h*m+l*v,v=y,r[f+d]=p+v,n[f+d]=b+m,r[f+d+a]=p-v,n[f+d+a]=b-m,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 14,358 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0===(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0===(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,l=1;0===(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}m.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},i(y,m),y.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=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},i(g,m),i(w,m),i(_,m),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new g;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var b=d,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(h,new o(1).iushln(p-v-1));l=l.redMul(m),h=m.redSqr(),d=d.redMul(h),p=v}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(69)(t))},,function(t,e,r){e.publicEncrypt=r(556),e.privateDecrypt=r(558),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}}
vendor: 4,258 bytes, line 2
2,function(t,e,r){var n=r(154),i=r(89),o=r(121),a=r(310),s=r(311),u=r(214),c=r(312),f=r(209),h=r(25).Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var d,p=n(t);if(4===l)d=function(t,e){var r=t.modulus.byteLength(),n=e.length,c=o("sha1").update(h.alloc(0)).digest(),f=c.length,l=2*f;if(n>r-l-2)throw new Error("message too long");var d=h.alloc(r-n-l-2),p=r-f-1,b=i(f),v=s(h.concat([c,d,h.alloc(1,1),e],p),a(b,p)),m=s(b,a(v,f));return new u(h.concat([h.alloc(1),m,v],r))}(p,e);else if(1===l)d=function(t,e,r){var n,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(t){var e,r=h.allocUnsafe(t),n=0,o=i(2*t),a=0;for(;n<t;)a===o.length&&(o=i(2*t),a=0),(e=o[a++])&&(r[n++]=e);return r}(a-o-3);return new u(h.concat([h.from([0,r?1:2]),n,h.alloc(1),e],a))}(p,e,r);else{if(3!==l)throw new Error("unknown padding");if((d=new u(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?f(d,p):c(d,p)}},,function(t,e,r){var n=r(154),i=r(310),o=r(311),a=r(214),s=r(209),u=r(121),c=r(312),f=r(25).Buffer;t.exports=function(t,e,r){var h;h=t.padding?t.padding:r?1:4;var l,d=n(t),p=d.modulus.byteLength();if(e.length>p||new a(e).cmp(d.modulus)>=0)throw new Error("decryption error");l=r?c(new a(e),d):s(e,d);var b=f.alloc(p-l.length);if(l=f.concat([b,l],p),4===h)return function(t,e){var r=t.modulus.byteLength(),n=u("sha1").update(f.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),c=e.slice(a+1),h=o(s,i(c,a)),l=o(c,i(h,r-a-1));if(function(t,e){t=f.from(t),e=f.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i<n;)r+=t[i]^e[i];return r}(n,l.slice(0,a)))throw new Error("decryption error");var d=a;for(;0===l[d];)d++;if(1!==l[d++])throw new Error("decryption error");return l.slice(d)}(d,l);if(1===h)return function(t,e,r){var n=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,l,r);if(3===h)return l;throw new Error("unknown padding")}},function(t,e,r){"use strict";(function(t,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(25),a=r(89),s=o.Buffer,u=o.kMaxLength,c=t.crypto||t.msCrypto,f=Math.pow(2,32)-1;function h(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>u||t>e)throw new RangeError("offset out of range")}function l(t,e,r){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>r||t>u)throw new RangeError("buffer too small")}function d(t,e,r,i){if(n.browser){var o=t.buffer,s=new Uint8Array(o,e,r);return c.getRandomValues(s),i?void n.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,e),t;a(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}c&&c.getRandomValues||!n.browser?(e.randomFill=function(e,r,n,i){if(!s.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof r)i=r,r=0,n=e.length;else if("function"===typeof n)i=n,n=e.length-r;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return h(r,e.length),l(n,r,e.length),d(e,r,n,i)},e.randomFillSync=function(e,r,n){"undefined"===typeof r&&(r=0);if(!s.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,e.length),void 0===n&&(n=e.length-r);return l(n,r,e.length),d(e,r,n)}):(e.randomFill=i,e.randomFillSync=i)}).call(this,r(31),r(27))},function(t,e,r){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=4)}([function(t,e){t.exports=r(140)},function(t,e){t.exports=r(561)},function(t,e){t.exports=r(141)},function(t,e){t.exports=r(5)},function(t,e,r){"use strict";r.r(e),r.d(e,"gatewayAuthHeader",(function(){return b})),r.d(e,"gatewayEmbedHostHeader",(function(){return v})),r.d(e,"setEmbedHost",(function(){return m})),r.d(e,"clearEmbedHost",(function(){return y})),r.d(e,"getEmbedHost",(function(){return g})),r.d(e,"setAPIKey",(function(){return w})),r.d(e,"clearAPIKey",(function(){return _})),r.d(e,"getAPIKey",(function(){return k})),r.d(e,"promiseTimeout",(function(){return S})),r.d(e,"get",(function(){return E})),r.d(e,"post",(function(){return x})),r.d(e,"put",(function(){return A})),r.d(e,"patch",(function(){return O})),r.d(e,"remove",(function(){return j})),r.d(e,"generateJsonRPCObject",(function(){return R})),r.d(e,"promiseRace",(function(){return I}));var n=r(3),i=r.n(n),o=r(2),a=r.n(o),s=r(0),u=r.n(s),c=r(1),f=r.n(c);function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){i()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var d="torus-default",p="",b="x-api-key",v="x-embed-host";function m(t){p=t}function y(){p=""}function g(){return p}function w(t){d=t}function _(){d="torus-default"}function k(){return d}function M(){var t={};return d&&(t[b]=d),p&&(t[v]=p),t}var S=function(t,e){var r=new Promise((function(e,r){var n=setTimeout((function(){clearTimeout(n),r(new Error("Timed out in ".concat(t,"ms")))}),t)}));return Promise.race([e,r])},E=function(){var t=a()(u.a.mark((function t(e){var r,n,i,o,a,s=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:{},n=s.length>2&&void 0!==s[2]?s[2]:{},i={mode:"cors",headers:{}},n.useAPIKey&&(i.headers=l(l({},i.headers),M())),o=f.a.all([i,r,{method:"GET"}]),t.next=7,fetch(e,o);case 7:if(!(a=t.sent).ok){t.next=10;break}return t.abrupt("return",a.json());case 10:throw a;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(i.headers=l(l({},i.headers),M()));var o=f.a.all([i,r,{method:"POST"}]);return o.body=n.isUrlEncodedData?e:JSON.stringify(e),void 0===o.headers["Content-Type"]&&delete o.headers["Content-Type"],S(n.timeout||3e4,fetch(t,o).then((function(t){if(t.ok)return t.json();throw t})))},A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(i.headers=l(l({},i.headers),M()));var o=f.a.all([i,r,{method:"PUT"}]);return o.body=n.isUrlEncodedData?e:JSON.stringify(e),void 0===o.headers["Content-Type"]&&delete o.headers["Content-Type"],S(n.timeout||3e4,fetch(t,o).then((function(t){if(t.ok)return t.json();throw t})))},O=function(){var t=a()(u.a.mark((function t(e){var r,n,i,o,a,s,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},n=c.length>2&&void 0!==c[2]?c[2]:{},i=c.length>3&&void 0!==c[3]?c[3]:{},o={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}},i.useAPIKey&&(o.headers=l(l({},o.headers),M())),(a=f.a.all([o,n,{method:"PATCH"}])).body=i.isUrlEncodedData?r:JSON.stringify(r),void 0===a.headers["Content-Type"]&&delete a.headers["Content-Type"],t.next=10,fetch(e,a);case 10:if(!(s=t.sent).ok){t.next=13;break}return t.abrupt("return",s.json());case 13:throw s;case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),j=function(){var t=a()(u.a.mark((function t(e){var r,n,i,o,a,s=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.length>1&&void 0!==s[1]&&s[1],r=s.length>2&&void 0!==s[2]?s[2]:{},n=s.length>3&&void 0!==s[3]?s[3]:{},i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}},n.useAPIKey&&(i.headers=l(l({},i.headers),M())),o=f.a.all([i,r,{method:"DELETE"}]),t.next=8,fetch(e,o);case 8:if(!(a=t.sent).ok){t.next=11;break}return t.abrupt("return",a.json());case 11:throw a;case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),R=function(t,e){return{jsonrpc:"2.0",method:t,id:10,params:e}},I=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4;return Promise.race([E(t,e),new Promise((function(t,e){setTimeout((function(){e(new Error("timed out"))}),r)}))])}}])},function(t,e,r){"use strict";var n=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===i}(t)}(t)};var i="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){return!1!==e.clone&&e.isMergeableObject(t)?f((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function a(t,e,r){return t.concat(e).map((function(t){return o(t,r)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function u(t,e){try{return e in t}catch(r){return!1}}function c(t,e,r){var n={};return r.isMergeableObject(t)&&s(t).forEach((function(e){n[e]=o(t[e],r)})),s(e).forEach((function(i){(function(t,e){return u(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(u(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return f;var r=e.customMerge(t);return"function"===typeof r?r:f}(i,r)(t[i],e[i],r):n[i]=o(e[i],r))})),n}function f(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(e);return i===Array.isArray(t)?i?r.arrayMerge(t,e,r):c(t,e,r):o(e,r)}f.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return f(t,r,e)}),{})};var h=f;t.exports=h},function(t,e,r){(function(t,r){var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object Object]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,f={};
vendor: 4,975 bytes, line 2
2f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f[o]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f[a]=f["[object Map]"]=f["[object Number]"]=f[s]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1;var h="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,d=h||l||Function("return this")(),p=e&&!e.nodeType&&e,b=p&&"object"==typeof r&&r&&!r.nodeType&&r,v=b&&b.exports===p,m=v&&h.process,y=function(){try{var t=b&&b.require&&b.require("util").types;return t||m&&m.binding&&m.binding("util")}catch(e){}}(),g=y&&y.isTypedArray;function w(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var _,k,M=Array.prototype,S=Function.prototype,E=Object.prototype,x=d["__core-js_shared__"],A=S.toString,O=E.hasOwnProperty,j=function(){var t=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),R=E.toString,I=A.call(Object),P=RegExp("^"+A.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=v?d.Buffer:void 0,C=d.Symbol,B=d.Uint8Array,L=T?T.allocUnsafe:void 0,N=(_=Object.getPrototypeOf,k=Object,function(t){return _(k(t))}),D=Object.create,U=E.propertyIsEnumerable,z=M.splice,W=C?C.toStringTag:void 0,q=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),F=T?T.isBuffer:void 0,K=Math.max,H=Date.now,Y=dt(d,"Map"),V=dt(Object,"create"),Z=function(){function t(){}return function(e){if(!Et(e))return{};if(D)return D(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function G(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function J(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Q(t){var e=this.__data__=new X(t);this.size=e.size}function $(t,e){var r=wt(t),n=!r&>(t),i=!r&&!n&&kt(t),o=!r&&!n&&!i&&At(t),a=r||n||i||o,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=s.length;for(var c in t)!e&&!O.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||pt(c,u))||s.push(c);return s}function tt(t,e,r){(void 0!==r&&!yt(t[e],r)||void 0===r&&!(e in t))&&nt(t,e,r)}function et(t,e,r){var n=t[e];O.call(t,e)&&yt(n,r)&&(void 0!==r||e in t)||nt(t,e,r)}function rt(t,e){for(var r=t.length;r--;)if(yt(t[r][0],e))return r;return-1}function nt(t,e,r){"__proto__"==e&&q?q(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}G.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},G.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},G.prototype.get=function(t){var e=this.__data__;if(V){var r=e[t];return r===n?void 0:r}return O.call(e,t)?e[t]:void 0},G.prototype.has=function(t){var e=this.__data__;return V?void 0!==e[t]:O.call(e,t)},G.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=V&&void 0===e?n:e,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(t){var e=this.__data__,r=rt(e,t);return!(r<0)&&(r==e.length-1?e.pop():z.call(e,r,1),--this.size,!0)},X.prototype.get=function(t){var e=this.__data__,r=rt(e,t);return r<0?void 0:e[r][1]},X.prototype.has=function(t){return rt(this.__data__,t)>-1},X.prototype.set=function(t,e){var r=this.__data__,n=rt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(Y||X),string:new G}},J.prototype.delete=function(t){var e=lt(this,t).delete(t);return this.size-=e?1:0,e},J.prototype.get=function(t){return lt(this,t).get(t)},J.prototype.has=function(t){return lt(this,t).has(t)},J.prototype.set=function(t,e){var r=lt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Q.prototype.clear=function(){this.__data__=new X,this.size=0},Q.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Q.prototype.get=function(t){return this.__data__.get(t)},Q.prototype.has=function(t){return this.__data__.has(t)},Q.prototype.set=function(t,e){var r=this.__data__;if(r instanceof X){var n=r.__data__;if(!Y||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new J(n)}return r.set(t,e),this.size=r.size,this};var it,ot=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[it?a:++n];if(!1===e(i[s],s,i))break}return t};
vendor: 4,745 bytes, line 2
2function at(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":W&&W in Object(t)?function(t){var e=O.call(t,W),r=t[W];try{t[W]=void 0;var n=!0}catch(o){}var i=R.call(t);n&&(e?t[W]=r:delete t[W]);return i}(t):function(t){return R.call(t)}(t)}function st(t){return xt(t)&&at(t)==o}function ut(t){return!(!Et(t)||function(t){return!!j&&j in t}(t))&&(Mt(t)?P:u).test(function(t){if(null!=t){try{return A.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t))}function ct(t){if(!Et(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=bt(t),r=[];for(var n in t)("constructor"!=n||!e&&O.call(t,n))&&r.push(n);return r}function ft(t,e,r,n,i){t!==e&&ot(e,(function(o,a){if(i||(i=new Q),Et(o))!function(t,e,r,n,i,o,a){var u=vt(t,r),c=vt(e,r),f=a.get(c);if(f)return void tt(t,r,f);var h=o?o(u,c,r+"",t,e,a):void 0,l=void 0===h;if(l){var d=wt(c),p=!d&&kt(c),b=!d&&!p&&At(c);h=c,d||p||b?wt(u)?h=u:xt(v=u)&&_t(v)?h=function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(u):p?(l=!1,h=function(t,e){if(e)return t.slice();var r=t.length,n=L?L(r):new t.constructor(r);return t.copy(n),n}(c,!0)):b?(l=!1,h=function(t,e){var r=e?function(t){var e=new t.constructor(t.byteLength);return new B(e).set(new B(t)),e}(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(c,!0)):h=[]:function(t){if(!xt(t)||at(t)!=s)return!1;var e=N(t);if(null===e)return!0;var r=O.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&A.call(r)==I}(c)||gt(c)?(h=u,gt(u)?h=function(t){return function(t,e,r,n){var i=!r;r||(r={});var o=-1,a=e.length;for(;++o<a;){var s=e[o],u=n?n(r[s],t[s],s,r,t):void 0;void 0===u&&(u=t[s]),i?nt(r,s,u):et(r,s,u)}return r}(t,Ot(t))}(u):Et(u)&&!Mt(u)||(h=function(t){return"function"!=typeof t.constructor||bt(t)?{}:Z(N(t))}(c))):l=!1}var v;l&&(a.set(c,h),i(h,c,n,o,a),a.delete(c));tt(t,r,h)}(t,e,a,r,ft,n,i);else{var u=n?n(vt(t,a),o,a+"",t,e,i):void 0;void 0===u&&(u=o),tt(t,a,u)}}),Ot)}function ht(t,e){return mt(function(t,e,r){return e=K(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=K(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),w(t,this,s)}}(t,e,It),t+"")}function lt(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function dt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ut(r)?r:void 0}function pt(t,e){var r=typeof t;return!!(e=null==e?i:e)&&("number"==r||"symbol"!=r&&c.test(t))&&t>-1&&t%1==0&&t<e}function bt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||E)}function vt(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var mt=function(t){var e=0,r=0;return function(){var n=H(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(q?function(t,e){return q(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:It);function yt(t,e){return t===e||t!==t&&e!==e}var gt=st(function(){return arguments}())?st:function(t){return xt(t)&&O.call(t,"callee")&&!U.call(t,"callee")},wt=Array.isArray;function _t(t){return null!=t&&St(t.length)&&!Mt(t)}var kt=F||function(){return!1};function Mt(t){if(!Et(t))return!1;var e=at(t);return e==a||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function St(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function Et(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function xt(t){return null!=t&&"object"==typeof t}var At=g?function(t){return function(e){return t(e)}}(g):function(t){return xt(t)&&St(t.length)&&!!f[at(t)]};function Ot(t){return _t(t)?$(t,!0):ct(t)}var jt,Rt=(jt=function(t,e,r){ft(t,e,r)},ht((function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=jt.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(t,e,r){if(!Et(r))return!1;var n=typeof e;return!!("number"==n?_t(r)&&pt(e,r.length):"string"==n&&e in r)&&yt(r[e],t)}(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var a=e[r];a&&jt(t,a,r,i)}return t})));function It(t){return t}r.exports=Rt}).call(this,r(31),r(69)(t))},function(t,e,r){(function(e){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2)}([function(t,e){t.exports=r(564)},function(t,e){t.exports=r(568)},function(t,r,n){"use strict";n.r(r),n.d(r,"getED25519Key",(function(){return u}));var i=n(0),o=n.n(i),a=n(1),s=n.n(a).a.lowlevel;function u(t){var r;r="string"===typeof t?e.from(t,"hex"):t;var n=new Uint8Array(64),i=[s.gf(),s.gf(),s.gf(),s.gf()],a=new Uint8Array([].concat(o()(new Uint8Array(r)),o()(new Uint8Array(32)))),u=new Uint8Array(32);s.crypto_hash(n,a,32),n[0]&=248,n[31]&=127,n[31]|=64,s.scalarbase(i,n),s.pack(u,i);for(var c=0;c<32;c+=1)a[c+32]=u[c];return{sk:e.from(a),pk:e.from(u)}}}])}).call(this,r(7).Buffer)},function(t,e,r){var n=r(565),i=r(566),o=r(261),a=r(567);t.exports=function(t){return n(t)||i(t)||o(t)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(262);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=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.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){!function(t){"use strict";var e=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e<t.length;e++)r[e]=t[e];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=e(),s=e([1]),u=e([56129,1]),c=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),f=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),h=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),l=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(t,e,r,n){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=n>>24&255,t[e+5]=n>>16&255,t[e+6]=n>>8&255,t[e+7]=255&n}function b(t,e,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=t[e+o]^r[n+o];return(1&a-1>>>8)-1}function v(t,e,r,n){return b(t,e,r,n,16)}function m(t,e,r,n){return b(t,e,r,n,32)}function y(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,l=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,g=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,k=a,M=s,S=u,E=c,x=f,A=h,O=l,j=d,R=p,I=b,P=v,T=m,C=y,B=g,L=w,N=0;N<20;N+=2)_^=(i=(T^=(i=(j^=(i=(E^=(i=_+T|0)<<7|i>>>25)+_|0)<<9|i>>>23)+E|0)<<13|i>>>19)+j|0)<<18|i>>>14,x^=(i=(k^=(i=(C^=(i=(R^=(i=x+k|0)<<7|i>>>25)+x|0)<<9|i>>>23)+R|0)<<13|i>>>19)+C|0)<<18|i>>>14,I^=(i=(A^=(i=(M^=(i=(B^=(i=I+A|0)<<7|i>>>25)+I|0)<<9|i>>>23)+B|0)<<13|i>>>19)+M|0)<<18|i>>>14,L^=(i=(P^=(i=(O^=(i=(S^=(i=L+P|0)<<7|i>>>25)+L|0)<<9|i>>>23)+S|0)<<13|i>>>19)+O|0)<<18|i>>>14,_^=(i=(S^=(i=(M^=(i=(k^=(i=_+S|0)<<7|i>>>25)+_|0)<<9|i>>>23)+k|0)<<13|i>>>19)+M|0)<<18|i>>>14,x^=(i=(E^=(i=(O^=(i=(A^=(i=x+E|0)<<7|i>>>25)+x|0)<<9|i>>>23)+A|0)<<13|i>>>19)+O|0)<<18|i>>>14,I^=(i=(R^=(i=(j^=(i=(P^=(i=I+R|0)<<7|i>>>25)+I|0)<<9|i>>>23)+P|0)<<13|i>>>19)+j|0)<<18|i>>>14,L^=(i=(B^=(i=(C^=(i=(T^=(i=L+B|0)<<7|i>>>25)+L|0)<<9|i>>>23)+T|0)<<13|i>>>19)+C|0)<<18|i>>>14;_=_+o|0,k=k+a|0,M=M+s|0,S=S+u|0,E=E+c|0,x=x+f|0,A=A+h|0,O=O+l|0,j=j+d|0,R=R+p|0,I=I+b|0,P=P+v|0,T=T+m|0,C=C+y|0,B=B+g|0,L=L+w|0,t[0]=_>>>0&255,t[1]=_>>>8&255,t[2]=_>>>16&255,t[3]=_>>>24&255,t[4]=k>>>0&255,t[5]=k>>>8&255,t[6]=k>>>16&255,t[7]=k>>>24&255,t[8]=M>>>0&255,t[9]=M>>>8&255,t[10]=M>>>16&255,t[11]=M>>>24&255,t[12]=S>>>0&255,t[13]=S>>>8&255,t[14]=S>>>16&255,t[15]=S>>>24&255,t[16]=E>>>0&255,t[17]=E>>>8&255,t[18]=E>>>16&255,t[19]=E>>>24&255,t[20]=x>>>0&255,t[21]=x>>>8&255,t[22]=x>>>16&255,t[23]=x>>>24&255,t[24]=A>>>0&255,t[25]=A>>>8&255,t[26]=A>>>16&255,t[27]=A>>>24&255,t[28]=O>>>0&255,t[29]=O>>>8&255,t[30]=O>>>16&255,t[31]=O>>>24&255,t[32]=j>>>0&255,t[33]=j>>>8&255,t[34]=j>>>16&255,t[35]=j>>>24&255,t[36]=R>>>0&255,t[37]=R>>>8&255,t[38]=R>>>16&255,t[39]=R>>>24&255,t[40]=I>>>0&255,t[41]=I>>>8&255,t[42]=I>>>16&255,t[43]=I>>>24&255,t[44]=P>>>0&255,t[45]=P>>>8&255,t[46]=P>>>16&255,t[47]=P>>>24&255,t[48]=T>>>0&255,t[49]=T>>>8&255,t[50]=T>>>16&255,t[51]=T>>>24&255,t[52]=C>>>0&255,t[53]=C>>>8&255,t[54]=C>>>16&255,t[55]=C>>>24&255,t[56]=B>>>0&255,t[57]=B>>>8&255,t[58]=B>>>16&255,t[59]=B>>>24&255,t[60]=L>>>0&255,t[61]=L>>>8&255,t[62]=L>>>16&255,t[63]=L>>>24&255}(t,e,r,n)}function g(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,l=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,d=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,g=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(m^=(i=(d^=(i=(c^=(i=o+m|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+d|0)<<18|i>>>14,f^=(i=(a^=(i=(y^=(i=(p^=(i=f+a|0)<<7|i>>>25)+f|0)<<9|i>>>23)+p|0)<<13|i>>>19)+y|0)<<18|i>>>14,b^=(i=(h^=(i=(s^=(i=(g^=(i=b+h|0)<<7|i>>>25)+b|0)<<9|i>>>23)+g|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(v^=(i=(l^=(i=(u^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+l|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,f^=(i=(c^=(i=(l^=(i=(h^=(i=f+c|0)<<7|i>>>25)+f|0)<<9|i>>>23)+h|0)<<13|i>>>19)+l|0)<<18|i>>>14,b^=(i=(p^=(i=(d^=(i=(v^=(i=b+p|0)<<7|i>>>25)+b|0)<<9|i>>>23)+v|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(g^=(i=(y^=(i=(m^=(i=w+g|0)<<7|i>>>25)+w|0)<<9|i>>>23)+m|0)<<13|i>>>19)+y|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=f>>>0&255,t[5]=f>>>8&255,t[6]=f>>>16&255,t[7]=f>>>24&255,t[8]=b>>>0&255,t[9]=b>>>8&255,t[10]=b>>>16&255,t[11]=b>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=h>>>0&255,t[17]=h>>>8&255,t[18]=h>>>16&255,t[19]=h>>>24&255,t[20]=l>>>0&255,t[21]=l>>>8&255,t[22]=l>>>16&255,t[23]=l>>>24&255,t[24]=d>>>0&255,t[25]=d>>>8&255,t[26]=d>>>16&255,t[27]=d>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(t,e,r,n,i,o,a){var s,u,c=new Uint8Array(16),f=new Uint8Array(64);for(u=0;
vendor: 11,175 bytes, line 2
2u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(y(f,c,a,w),u=0;u<64;u++)t[e+u]=r[n+u]^f[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,e+=64,n+=64}if(i>0)for(y(f,c,a,w),u=0;u<i;u++)t[e+u]=r[n+u]^f[u];return 0}function k(t,e,r,n,i){var o,a,s=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(y(u,s,i,w),a=0;a<64;a++)t[e+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,e+=64}if(r>0)for(y(u,s,i,w),a=0;a<r;a++)t[e+a]=u[a];return 0}function M(t,e,r,n,i){var o=new Uint8Array(32);g(o,n,i,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return k(t,e,r,a,o)}function S(t,e,r,n,i,o,a){var s=new Uint8Array(32);g(s,o,a,w);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=o[c+16];return _(t,e,r,n,i,u,s)}var E=function(t){var e,r,n,i,o,a,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,r=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|r<<3),n=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function x(t,e,r,n,i,o){var a=new E(o);return a.update(r,n,i),a.finish(t,e),0}function A(t,e,r,n,i,o){var a=new Uint8Array(16);return x(a,0,r,n,i,o),v(t,e,a,0)}function O(t,e,r,n,i){var o;if(r<32)return-1;for(S(t,0,e,0,r,n,i),x(t,16,t,32,r-32,t),o=0;o<16;o++)t[o]=0;return 0}function j(t,e,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(M(a,0,32,n,i),0!==A(e,16,e,32,r-32,a))return-1;for(S(t,0,e,0,r,n,i),o=0;o<32;o++)t[o]=0;return 0}function R(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function I(t){var e,r,n=1;for(e=0;e<16;e++)r=t[e]+n+65535,n=Math.floor(r/65536),t[e]=r-65536*n;t[0]+=n-1+37*(n-1)}function P(t,e,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(t[o]^e[o]),t[o]^=n,e[o]^=n}function T(t,r){var n,i,o,a=e(),s=e();for(n=0;n<16;n++)s[n]=r[n];for(I(s),I(s),I(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,P(s,a,1-o)}for(n=0;n<16;n++)t[2*n]=255&s[n],t[2*n+1]=s[n]>>8}function C(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return T(r,t),T(n,e),m(r,0,n,0)}function B(t){var e=new Uint8Array(32);return T(e,t),1&e[0]}function L(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function N(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]+r[n]}function D(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]-r[n]}function U(t,e,r){var n,i,o=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,b=0,v=0,m=0,y=0,g=0,w=0,_=0,k=0,M=0,S=0,E=0,x=0,A=0,O=0,j=0,R=0,I=0,P=0,T=0,C=0,B=0,L=r[0],N=r[1],D=r[2],U=r[3],z=r[4],W=r[5],q=r[6],F=r[7],K=r[8],H=r[9],Y=r[10],V=r[11],Z=r[12],G=r[13],X=r[14],J=r[15];o+=(n=e[0])*L,a+=n*N,s+=n*D,u+=n*U,c+=n*z,f+=n*W,h+=n*q,l+=n*F,d+=n*K,p+=n*H,b+=n*Y,v+=n*V,m+=n*Z,y+=n*G,g+=n*X,w+=n*J,a+=(n=e[1])*L,s+=n*N,u+=n*D,c+=n*U,f+=n*z,h+=n*W,l+=n*q,d+=n*F,p+=n*K,b+=n*H,v+=n*Y,m+=n*V,y+=n*Z,g+=n*G,w+=n*X,_+=n*J,s+=(n=e[2])*L,u+=n*N,c+=n*D,f+=n*U,h+=n*z,l+=n*W,d+=n*q,p+=n*F,b+=n*K,v+=n*H,m+=n*Y,y+=n*V,g+=n*Z,w+=n*G,_+=n*X,k+=n*J,u+=(n=e[3])*L,c+=n*N,f+=n*D,h+=n*U,l+=n*z,d+=n*W,p+=n*q,b+=n*F,v+=n*K,m+=n*H,y+=n*Y,g+=n*V,w+=n*Z,_+=n*G,k+=n*X,M+=n*J,c+=(n=e[4])*L,f+=n*N,h+=n*D,l+=n*U,d+=n*z,p+=n*W,b+=n*q,v+=n*F,m+=n*K,y+=n*H,g+=n*Y,w+=n*V,_+=n*Z,k+=n*G,M+=n*X,S+=n*J,f+=(n=e[5])*L,h+=n*N,l+=n*D,d+=n*U,p+=n*z,b+=n*W,v+=n*q,m+=n*F,y+=n*K,g+=n*H,w+=n*Y,_+=n*V,k+=n*Z,M+=n*G,S+=n*X,E+=n*J,h+=(n=e[6])*L,l+=n*N,d+=n*D,p+=n*U,b+=n*z,v+=n*W,m+=n*q,y+=n*F,g+=n*K,w+=n*H,_+=n*Y,k+=n*V,M+=n*Z,S+=n*G,E+=n*X,x+=n*J,l+=(n=e[7])*L,d+=n*N,p+=n*D,b+=n*U,v+=n*z,m+=n*W,y+=n*q,g+=n*F,w+=n*K,_+=n*H,k+=n*Y,M+=n*V,S+=n*Z,E+=n*G,x+=n*X,A+=n*J,d+=(n=e[8])*L,p+=n*N,b+=n*D,v+=n*U,m+=n*z,y+=n*W,g+=n*q,w+=n*F,_+=n*K,k+=n*H,M+=n*Y,S+=n*V,E+=n*Z,x+=n*G,A+=n*X,O+=n*J,p+=(n=e[9])*L,b+=n*N,v+=n*D,m+=n*U,y+=n*z,g+=n*W,w+=n*q,_+=n*F,k+=n*K,M+=n*H,S+=n*Y,E+=n*V,x+=n*Z,A+=n*G,O+=n*X,j+=n*J,b+=(n=e[10])*L,v+=n*N,m+=n*D,y+=n*U,g+=n*z,w+=n*W,_+=n*q,k+=n*F,M+=n*K,S+=n*H,E+=n*Y,x+=n*V,A+=n*Z,O+=n*G,j+=n*X,R+=n*J,v+=(n=e[11])*L,m+=n*N,y+=n*D,g+=n*U,w+=n*z,_+=n*W,k+=n*q,M+=n*F,S+=n*K,E+=n*H,x+=n*Y,A+=n*V,O+=n*Z,j+=n*G,R+=n*X,I+=n*J,m+=(n=e[12])*L,y+=n*N,g+=n*D,w+=n*U,_+=n*z,k+=n*W,M+=n*q,S+=n*F,E+=n*K,x+=n*H,A+=n*Y,O+=n*V,j+=n*Z,R+=n*G,I+=n*X,P+=n*J,y+=(n=e[13])*L,g+=n*N,w+=n*D,_+=n*U,k+=n*z,M+=n*W,S+=n*q,E+=n*F,x+=n*K,A+=n*H,O+=n*Y,j+=n*V,R+=n*Z,I+=n*G,P+=n*X,T+=n*J,g+=(n=e[14])*L,w+=n*N,_+=n*D,k+=n*U,M+=n*z,S+=n*W,E+=n*q,x+=n*F,A+=n*K,O+=n*H,j+=n*Y,R+=n*V,I+=n*Z,P+=n*G,T+=n*X,C+=n*J,w+=(n=e[15])*L,a+=38*(k+=n*D),s+=38*(M+=n*U),u+=38*(S+=n*z),c+=38*(E+=n*W),f+=38*(x+=n*q),h+=38*(A+=n*F),l+=38*(O+=n*K),d+=38*(j+=n*H),p+=38*(R+=n*Y),b+=38*(I+=n*V),v+=38*(P+=n*Z),m+=38*(T+=n*G),y+=38*(C+=n*X),g+=38*(B+=n*J),o=(n=(o+=38*(_+=n*N))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=f,t[6]=h,t[7]=l,t[8]=d,t[9]=p,t[10]=b,t[11]=v,t[12]=m,t[13]=y,t[14]=g,t[15]=w}function z(t,e){U(t,e,e)}function W(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)z(i,i),2!==n&&4!==n&&U(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function q(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)z(i,i),1!==n&&U(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function F(t,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),c=e(),f=e(),h=e(),l=e(),d=e(),p=e();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,L(s,n),o=0;o<16;o++)f[o]=s[o],l[o]=c[o]=h[o]=0;for(c[0]=l[0]=1,o=254;o>=0;--o)P(c,f,i=a[o>>>3]>>>(7&o)&1),P(h,l,i),N(d,c,h),D(c,c,h),N(h,f,l),D(f,f,l),z(l,d),z(p,c),U(c,h,c),U(h,f,d),N(d,c,h),D(c,c,h),z(f,c),D(h,l,p),U(c,h,u),N(c,c,l),U(h,h,c),U(c,l,p),U(l,f,s),z(f,d),P(c,f,i),P(h,l,i);for(o=0;o<16;o++)s[o+16]=c[o],s[o+32]=h[o],s[o+48]=f[o],s[o+64]=l[o];var b=s.subarray(32),v=s.subarray(16);return W(b,b),U(v,v,b),T(t,v),0}function K(t,e){return F(t,e,o)}function H(t,e){return n(e,32),K(t,e)}function Y(t,e,r){var n=new Uint8Array(32);return F(n,r,e),g(t,i,n,w)}E.prototype.blocks=function(t,e,r){for(var n,i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k=this.fin?0:2048,M=this.h[0],S=this.h[1],E=this.h[2],x=this.h[3],A=this.h[4],O=this.h[5],j=this.h[6],R=this.h[7],I=this.h[8],P=this.h[9],T=this.r[0],C=this.r[1],B=this.r[2],L=this.r[3],N=this.r[4],D=this.r[5],U=this.r[6],z=this.r[7],W=this.r[8],q=this.r[9];r>=16;)l=h=0,l+=(M+=8191&(n=255&t[e+0]|(255&t[e+1])<<8))*T,l+=(S+=8191&(n>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*q),l+=(E+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*W),l+=(x+=8191&(o>>>7|(a=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*z),h=(l+=(A+=8191&(a>>>4|(s=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*U))>>>13,l&=8191,l+=(O+=s>>>1&8191)*(5*D),l+=(j+=8191&(s>>>14|(u=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*N),l+=(R+=8191&(u>>>11|(c=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*L),l+=(I+=8191&(c>>>8|(f=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*B),d=h+=(l+=(P+=f>>>5|k)*(5*C))>>>13,d+=M*C,d+=S*T,d+=E*(5*q),d+=x*(5*W),h=(d+=A*(5*z))>>>13,d&=8191,d+=O*(5*U),d+=j*(5*D),d+=R*(5*N),d+=I*(5*L),h+=(d+=P*(5*B))>>>13,d&=8191,p=h,p+=M*B,p+=S*C,p+=E*T,p+=x*(5*q),h=(p+=A*(5*W))>>>13,p&=8191,p+=O*(5*z),p+=j*(5*U),p+=R*(5*D),p+=I*(5*N),b=h+=(p+=P*(5*L))>>>13,b+=M*L,b+=S*B,b+=E*C,b+=x*T,h=(b+=A*(5*q))>>>13,b&=8191,b+=O*(5*W),b+=j*(5*z),b+=R*(5*U),b+=I*(5*D),v=h+=(b+=P*(5*N))>>>13,v+=M*N,v+=S*L,v+=E*B,v+=x*C,h=(v+=A*T)>>>13,v&=8191,v+=O*(5*q),v+=j*(5*W),v+=R*(5*z),v+=I*(5*U),m=h+=(v+=P*(5*D))>>>13,m+=M*D,m+=S*N,m+=E*L,m+=x*B,h=(m+=A*C)>>>13,m&=8191,m+=O*T,m+=j*(5*q),m+=R*(5*W),m+=I*(5*z),y=h+=(m+=P*(5*U))>>>13,y+=M*U,y+=S*D,y+=E*N,y+=x*L,h=(y+=A*B)>>>13,y&=8191,y+=O*C,y+=j*T,y+=R*(5*q),y+=I*(5*W),g=h+=(y+=P*(5*z))>>>13,g+=M*z,g+=S*U,g+=E*D,g+=x*N,h=(g+=A*L)>>>13,g&=8191,g+=O*B,g+=j*C,g+=R*T,g+=I*(5*q),w=h+=(g+=P*(5*W))>>>13,w+=M*W,w+=S*z,w+=E*U,w+=x*D,h=(w+=A*N)>>>13,w&=8191,w+=O*L,w+=j*B,w+=R*C,w+=I*T,_=h+=(w+=P*(5*q))>>>13,_+=M*q,_+=S*W,_+=E*z,_+=x*U,h=(_+=A*D)>>>13,_&=8191,_+=O*N,_+=j*L,_+=R*B,_+=I*C,M=l=8191&(h=(h=((h+=(_+=P*T)>>>13)<<2)+h|0)+(l&=8191)|0),S=d+=h>>>=13,E=p&=8191,x=b&=8191,A=v&=8191,O=m&=8191,j=y&=8191,R=g&=8191,I=w&=8191,P=_&=8191,e+=16,r-=16;this.h[0]=M,this.h[1]=S,this.h[2]=E,this.h[3]=x,this.h[4]=A,this.h[5]=O,this.h[6]=j,this.h[7]=R,this.h[8]=I,this.h[9]=P},E.prototype.finish=function(t,e){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>
vendor: 15,049 bytes, line 2
2>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},E.prototype.update=function(t,e,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=t[e+n];if(r-=i,e+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(t,e,i),e+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=t[e+n];this.leftover+=r}};var V=O,Z=j;var G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function X(t,e,r,n){for(var i,o,a,s,u,c,f,h,l,d,p,b,v,m,y,g,w,_,k,M,S,E,x,A,O,j,R=new Int32Array(16),I=new Int32Array(16),P=t[0],T=t[1],C=t[2],B=t[3],L=t[4],N=t[5],D=t[6],U=t[7],z=e[0],W=e[1],q=e[2],F=e[3],K=e[4],H=e[5],Y=e[6],V=e[7],Z=0;n>=128;){for(k=0;k<16;k++)M=8*k+Z,R[k]=r[M+0]<<24|r[M+1]<<16|r[M+2]<<8|r[M+3],I[k]=r[M+4]<<24|r[M+5]<<16|r[M+6]<<8|r[M+7];for(k=0;k<80;k++)if(i=P,o=T,a=C,s=B,u=L,c=N,f=D,U,l=z,d=W,p=q,b=F,v=K,m=H,y=Y,V,x=65535&(E=V),A=E>>>16,O=65535&(S=U),j=S>>>16,x+=65535&(E=(K>>>14|L<<18)^(K>>>18|L<<14)^(L>>>9|K<<23)),A+=E>>>16,O+=65535&(S=(L>>>14|K<<18)^(L>>>18|K<<14)^(K>>>9|L<<23)),j+=S>>>16,x+=65535&(E=K&H^~K&Y),A+=E>>>16,O+=65535&(S=L&N^~L&D),j+=S>>>16,x+=65535&(E=G[2*k+1]),A+=E>>>16,O+=65535&(S=G[2*k]),j+=S>>>16,S=R[k%16],A+=(E=I[k%16])>>>16,O+=65535&S,j+=S>>>16,O+=(A+=(x+=65535&E)>>>16)>>>16,x=65535&(E=_=65535&x|A<<16),A=E>>>16,O=65535&(S=w=65535&O|(j+=O>>>16)<<16),j=S>>>16,x+=65535&(E=(z>>>28|P<<4)^(P>>>2|z<<30)^(P>>>7|z<<25)),A+=E>>>16,O+=65535&(S=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25)),j+=S>>>16,A+=(E=z&W^z&q^W&q)>>>16,O+=65535&(S=P&T^P&C^T&C),j+=S>>>16,h=65535&(O+=(A+=(x+=65535&E)>>>16)>>>16)|(j+=O>>>16)<<16,g=65535&x|A<<16,x=65535&(E=b),A=E>>>16,O=65535&(S=s),j=S>>>16,A+=(E=_)>>>16,O+=65535&(S=w),j+=S>>>16,T=i,C=o,B=a,L=s=65535&(O+=(A+=(x+=65535&E)>>>16)>>>16)|(j+=O>>>16)<<16,N=u,D=c,U=f,P=h,W=l,q=d,F=p,K=b=65535&x|A<<16,H=v,Y=m,V=y,z=g,k%16===15)for(M=0;M<16;M++)S=R[M],x=65535&(E=I[M]),A=E>>>16,O=65535&S,j=S>>>16,S=R[(M+9)%16],x+=65535&(E=I[(M+9)%16]),A+=E>>>16,O+=65535&S,j+=S>>>16,w=R[(M+1)%16],x+=65535&(E=((_=I[(M+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),A+=E>>>16,O+=65535&(S=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),j+=S>>>16,w=R[(M+14)%16],A+=(E=((_=I[(M+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,O+=65535&(S=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,R[M]=65535&O|j<<16,I[M]=65535&x|A<<16;x=65535&(E=z),A=E>>>16,O=65535&(S=P),j=S>>>16,S=t[0],A+=(E=e[0])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[0]=P=65535&O|j<<16,e[0]=z=65535&x|A<<16,x=65535&(E=W),A=E>>>16,O=65535&(S=T),j=S>>>16,S=t[1],A+=(E=e[1])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[1]=T=65535&O|j<<16,e[1]=W=65535&x|A<<16,x=65535&(E=q),A=E>>>16,O=65535&(S=C),j=S>>>16,S=t[2],A+=(E=e[2])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[2]=C=65535&O|j<<16,e[2]=q=65535&x|A<<16,x=65535&(E=F),A=E>>>16,O=65535&(S=B),j=S>>>16,S=t[3],A+=(E=e[3])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[3]=B=65535&O|j<<16,e[3]=F=65535&x|A<<16,x=65535&(E=K),A=E>>>16,O=65535&(S=L),j=S>>>16,S=t[4],A+=(E=e[4])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[4]=L=65535&O|j<<16,e[4]=K=65535&x|A<<16,x=65535&(E=H),A=E>>>16,O=65535&(S=N),j=S>>>16,S=t[5],A+=(E=e[5])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[5]=N=65535&O|j<<16,e[5]=H=65535&x|A<<16,x=65535&(E=Y),A=E>>>16,O=65535&(S=D),j=S>>>16,S=t[6],A+=(E=e[6])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[6]=D=65535&O|j<<16,e[6]=Y=65535&x|A<<16,x=65535&(E=V),A=E>>>16,O=65535&(S=U),j=S>>>16,S=t[7],A+=(E=e[7])>>>16,O+=65535&S,j+=S>>>16,j+=(O+=(A+=(x+=65535&E)>>>16)>>>16)>>>16,t[7]=U=65535&O|j<<16,e[7]=V=65535&x|A<<16,Z+=128,n-=128}return n}function J(t,e,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,X(i,o,e,r),r%=128,n=0;n<r;n++)a[n]=e[s-r+n];for(a[r]=128,a[(r=256-128*(r<112?1:0))-9]=0,p(a,r-8,s/536870912|0,s<<3),X(i,o,a,r),n=0;n<8;n++)p(t,8*n,i[n],o[n]);return 0}function Q(t,r){var n=e(),i=e(),o=e(),a=e(),s=e(),u=e(),c=e(),h=e(),l=e();D(n,t[1],t[0]),D(l,r[1],r[0]),U(n,n,l),N(i,t[0],t[1]),N(l,r[0],r[1]),U(i,i,l),U(o,t[3],r[3]),U(o,o,f),U(a,t[2],r[2]),N(a,a,a),D(s,i,n),D(u,a,o),N(c,a,o),N(h,i,n),U(t[0],s,u),U(t[1],h,c),U(t[2],c,u),U(t[3],s,h)}function $(t,e,r){var n;for(n=0;n<4;n++)P(t[n],e[n],r)}function tt(t,r){var n=e(),i=e(),o=e();W(o,r[2]),U(n,r[0],o),U(i,r[1],o),T(t,i),t[31]^=B(n)<<7}function et(t,e,r){var n,i;for(R(t[0],a),R(t[1],s),R(t[2],s),R(t[3],a),i=255;i>=0;--i)$(t,e,n=r[i/8|0]>>(7&i)&1),Q(e,t),Q(t,t),$(t,e,n)}function rt(t,r){var n=[e(),e(),e(),e()];R(n[0],h),R(n[1],l),R(n[2],s),U(n[3],h,l),et(t,n,r)}function nt(t,r,i){var o,a=new Uint8Array(64),s=[e(),e(),e(),e()];for(i||n(r,32),J(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,rt(s,a),tt(t,s),o=0;o<32;o++)r[o+32]=t[o];return 0}var it=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ot(t,e){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)e[i]+=r-16*e[n]*it[i-(n-32)],r=Math.floor((e[i]+128)/256),e[i]-=256*r;e[i]+=r,e[n]=0}for(r=0,i=0;i<32;i++)e[i]+=r-(e[31]>>4)*it[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*it[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function at(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;ot(t,r)}function st(t,r,n,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),f=new Float64Array(64),h=[e(),e(),e(),e()];J(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var l=n+64;for(o=0;o<n;o++)t[64+o]=r[o];for(o=0;o<32;o++)t[32+o]=s[32+o];for(J(c,t.subarray(32),n+32),at(c),rt(h,c),tt(t,h),o=32;o<64;o++)t[o]=i[o];for(J(u,t,n+64),at(u),o=0;o<64;o++)f[o]=0;for(o=0;o<32;o++)f[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)f[o+a]+=u[o]*s[a];return ot(t.subarray(32),f),l}function ut(t,r,n,i){var o,u=new Uint8Array(32),f=new Uint8Array(64),h=[e(),e(),e(),e()],l=[e(),e(),e(),e()];if(n<64)return-1;if(function(t,r){var n=e(),i=e(),o=e(),u=e(),f=e(),h=e(),l=e();return R(t[2],s),L(t[1],r),z(o,t[1]),U(u,o,c),D(o,o,t[2]),N(u,t[2],u),z(f,u),z(h,f),U(l,h,f),U(n,l,o),U(n,n,u),q(n,n),U(n,n,o),U(n,n,u),U(n,n,u),U(t[0],n,u),z(i,t[0]),U(i,i,u),C(i,o)&&U(t[0],t[0],d),z(i,t[0]),U(i,i,u),C(i,o)?-1:(B(t[0])===r[31]>>7&&D(t[0],a,t[0]),U(t[3],t[0],t[1]),0)}(l,i))return-1;for(o=0;o<n;o++)t[o]=r[o];for(o=0;o<32;o++)t[o+32]=i[o];if(J(f,t,n),at(f),et(h,l,f),rt(l,r.subarray(32)),Q(h,l),tt(u,h),n-=64,m(r,0,u,0)){for(o=0;o<n;o++)t[o]=0;return-1}for(o=0;o<n;o++)t[o]=r[o+64];return n}var ct=16,ft=64,ht=32,lt=64;function dt(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function pt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function bt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:g,crypto_stream_xor:S,crypto_stream:M,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:k,crypto_onetimeauth:x,crypto_onetimeauth_verify:A,crypto_verify_16:v,crypto_verify_32:m,crypto_secretbox:O,crypto_secretbox_open:j,crypto_scalarmult:F,crypto_scalarmult_base:K,crypto_box_beforenm:Y,crypto_box_afternm:V,crypto_box:function(t,e,r,n,i,o){var a=new Uint8Array(32);return Y(a,i,o),V(t,e,r,n,a)},crypto_box_open:function(t,e,r,n,i,o){var a=new Uint8Array(32);return Y(a,i,o),Z(t,e,r,n,a)},crypto_box_keypair:H,crypto_hash:J,crypto_sign:st,crypto_sign_keypair:nt,crypto_sign_open:ut,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ct,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ft,crypto_sign_PUBLICKEYBYTES:ht,crypto_sign_SECRETKEYBYTES:lt,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:e,D:c,L:it,pack:tt,pack25519:T,unpack25519:L,M:U,A:N,S:z,Z:D,pow2523:q,add:Q,set25519:R,modL:ot,scalarmult:et,scalarbase:rt},t.randomBytes=function(t){var e=new Uint8Array(t);return n(e,t),e},t.secretbox=function(t,e,r){pt(t,e,r),dt(r,e);for(var n=new Uint8Array(32+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+32]=t[o];return O(i,n,n.length,e,r),i.subarray(ct)},t.secretbox.open=function(t,e,r){pt(t,e,r),dt(r,e);for(var n=new Uint8Array(ct+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+ct]=t[o];return n.length<32||0!==j(i,n,n.length,e,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=ct,t.scalarMult=function(t,e){if(pt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var r=new Uint8Array(32);return F(r,t,e),r},t.scalarMult.base=function(t){if(pt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return K(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox(e,r,o)},t.box.before=function(t,e){pt(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var r=new Uint8Array(32);return Y(r,t,e),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox.open(e,r,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return H(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(pt(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return K(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(pt(t,e),e.length!==lt)throw new Error("bad secret key size");var r=new Uint8Array(ft+t.length);return st(r,t,t.length,e),r},t.sign.open=function(t,e){if(pt(t,e),e.length!==ht)throw new Error("bad public key size");var r=new Uint8Array(t.length),n=ut(r,t,t.length,e);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(ft),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached.verify=function(t,e,r){if(pt(t,e,r),e.length!==ft)throw new Error("bad signature size");if(r.length!==ht)throw new Error("bad public key size");var n,i=new Uint8Array(ft+t.length),o=new Uint8Array(ft+t.length);for(n=0;n<ft;n++)i[n]=e[n];for(n=0;n<t.length;n++)i[n+ft]=t[n];return ut(o,i,i.length,r)>=0},t.sign.keyPair=function(){var t=new Uint8Array(ht),e=new Uint8Array(lt);return nt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(pt(t),t.length!==lt)throw new Error("bad secret key size");for(var e=new Uint8Array(ht),r=0;r<e.length;r++)e[r]=t[32+r];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(pt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(ht),r=new Uint8Array(lt),n=0;n<32;n++)r[n]=t[n];return nt(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=ht,t.sign.secretKeyLength=lt,t.sign.seedLength=32,t.sign.signatureLength=ft,t.hash=function(t){pt(t);var e=new Uint8Array(64);return J(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return pt(t,e),0!==t.length&&0!==e.length&&(t.length===e.length&&0===b(t,0,e,0,t.length))},t.setPRNG=function(t){n=t},function(){var e="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(e&&e.getRandomValues){t.setPRNG((function(t,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)e.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)t[n]=i[n];bt(i)}))}else(e=r(569))&&e.randomBytes&&t.setPRNG((function(t,r){var n,i=e.randomBytes(r);for(n=0;n<r;n++)t[n]=i[n];bt(i)}))}()}(t.exports?t.exports:self.nacl=self.nacl||{})},,,function(t,e,r){"use strict";r.d(e,"a",(function(){return br}));var n=r(12),i=r(6),o=r(2),a=r.n(o),s="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},u="object"===("undefined"===typeof window?"undefined":s(window))&&"object"===("undefined"===typeof document?"undefined":s(document))&&9===document.nodeType;var c=r(114),f=r(315);function h(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Object(f.a)(t,e)}
vendor: 6,977 bytes, line 2
2var l=r(216),d=r(168),p={}.constructor;function b(t){if(null==t||"object"!==typeof t)return t;if(Array.isArray(t))return t.map(b);if(t.constructor!==p)return t;var e={};for(var r in t)e[r]=b(t[r]);return e}function v(t,e,r){void 0===t&&(t="unnamed");var n=r.jss,i=b(e),o=n.plugins.onCreateRule(t,i,r);return o||(t[0],null)}var m=function(t,e){for(var r="",n=0;n<t.length&&"!important"!==t[n];n++)r&&(r+=e),r+=t[n];return r},y=function(t,e){if(void 0===e&&(e=!1),!Array.isArray(t))return t;var r="";if(Array.isArray(t[0]))for(var n=0;n<t.length&&"!important"!==t[n];n++)r&&(r+=", "),r+=m(t[n]," ");else r=m(t,", ");return e||"!important"!==t[t.length-1]||(r+=" !important"),r};function g(t,e){for(var r="",n=0;n<e;n++)r+=" ";return r+t}function w(t,e,r){void 0===r&&(r={});var n="";if(!e)return n;var i=r.indent,o=void 0===i?0:i,a=e.fallbacks;if(t&&o++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var u=a[s];for(var c in u){var f=u[c];null!=f&&(n&&(n+="\n"),n+=g(c+": "+y(f)+";",o))}}else for(var h in a){var l=a[h];null!=l&&(n&&(n+="\n"),n+=g(h+": "+y(l)+";",o))}for(var d in e){var p=e[d];null!=p&&"fallbacks"!==d&&(n&&(n+="\n"),n+=g(d+": "+y(p)+";",o))}return(n||r.allowEmpty)&&t?(n&&(n="\n"+n+"\n"),g(t+" {"+n,--o)+g("}",o)):n}var _=/([[\].#*$><+~=|^:(),"'`\s])/g,k="undefined"!==typeof CSS&&CSS.escape,M=function(t){return k?k(t):t.replace(_,"\\$1")},S=function(){function t(t,e,r){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var n=r.sheet,i=r.Renderer;this.key=t,this.options=r,this.style=e,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return t.prototype.prop=function(t,e,r){if(void 0===e)return this.style[t];var n=!!r&&r.force;if(!n&&this.style[t]===e)return this;var i=e;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(e,t,this));var o=null==i||!1===i,a=t in this.style;if(o&&!a&&!n)return this;var s=o&&a;if(s?delete this.style[t]:this.style[t]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,i),this;var u=this.options.sheet;return u&&u.attached,this},t}(),E=function(t){function e(e,r,n){var i;(i=t.call(this,e,r,n)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=n.selector,a=n.scoped,s=n.sheet,u=n.generateId;return o?i.selectorText=o:!1!==a&&(i.id=u(Object(l.a)(Object(l.a)(i)),s),i.selectorText="."+M(i.id)),i}h(e,t);var r=e.prototype;return r.applyTo=function(t){var e=this.renderer;if(e){var r=this.toJSON();for(var n in r)e.setProperty(t,n,r[n])}return this},r.toJSON=function(){var t={};for(var e in this.style){var r=this.style[e];"object"!==typeof r?t[e]=r:Array.isArray(r)&&(t[e]=y(r))}return t},r.toString=function(t){var e=this.options.sheet,r=!!e&&e.options.link?Object(i.a)({},t,{allowEmpty:!0}):t;return w(this.selectorText,this.style,r)},Object(c.a)(e,[{key:"selector",set:function(t){if(t!==this.selectorText){this.selectorText=t;var e=this.renderer,r=this.renderable;if(r&&e)e.setSelector(r,t)||e.replaceRule(r,this)}},get:function(){return this.selectorText}}]),e}(S),x={onCreateRule:function(t,e,r){return"@"===t[0]||r.parent&&"keyframes"===r.parent.type?null:new E(t,e,r)}},A={indent:1,children:!0},O=/@([\w-]+)/,j=function(){function t(t,e,r){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t;var n=t.match(O);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Q(Object(i.a)({},r,{parent:this})),e)this.rules.add(o,e[o]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.indexOf=function(t){return this.rules.indexOf(t)},e.addRule=function(t,e,r){var n=this.rules.add(t,e,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},e.toString=function(t){if(void 0===t&&(t=A),null==t.indent&&(t.indent=A.indent),null==t.children&&(t.children=A.children),!1===t.children)return this.query+" {}";var e=this.rules.toString(t);return e?this.query+" {\n"+e+"\n}":""},t}(),R=/@media|@supports\s+/,I={onCreateRule:function(t,e,r){return R.test(t)?new j(t,e,r):null}},P={indent:1,children:!0},T=/@keyframes\s+([\w-]+)/,C=function(){function t(t,e,r){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var n=t.match(T);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,a=r.sheet,s=r.generateId;for(var u in this.id=!1===o?this.name:M(s(this,a)),this.rules=new Q(Object(i.a)({},r,{parent:this})),e)this.rules.add(u,e[u],Object(i.a)({},r,{parent:this}));this.rules.process()}return t.prototype.toString=function(t){if(void 0===t&&(t=P),null==t.indent&&(t.indent=P.indent),null==t.children&&(t.children=P.children),!1===t.children)return this.at+" "+this.id+" {}";var e=this.rules.toString(t);return e&&(e="\n"+e+"\n"),this.at+" "+this.id+" {"+e+"}"},t}(),B=/@keyframes\s+/,L=/\$([\w-]+)/g,N=function(t,e){return"string"===typeof t?t.replace(L,(function(t,r){return r in e?e[r]:t})):t},D=function(t,e,r){var n=t[e],i=N(n,r);i!==n&&(t[e]=i)},U={onCreateRule:function(t,e,r){return"string"===typeof t&&B.test(t)?new C(t,e,r):null},onProcessStyle:function(t,e,r){return"style"===e.type&&r?("animation-name"in t&&D(t,"animation-name",r.keyframes),"animation"in t&&D(t,"animation",r.keyframes),t):t},onChangeValue:function(t,e,r){var n=r.options.sheet;if(!n)return t;switch(e){case"animation":case"animation-name":return N(t,n.keyframes);default:return t}}},z=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).renderable=void 0,e}return h(e,t),e.prototype.toString=function(t){var e=this.options.sheet,r=!!e&&e.options.link?Object(i.a)({},t,{allowEmpty:!0}):t;return w(this.key,this.style,r)},e}(S),W={onCreateRule:function(t,e,r){return r.parent&&"keyframes"===r.parent.type?new z(t,e,r):null}},q=function(){function t(t,e,r){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t,this.style=e,this.options=r}return t.prototype.toString=function(t){if(Array.isArray(this.style)){for(var e="",r=0;r<this.style.length;r++)e+=w(this.at,this.style[r]),this.style[r+1]&&(e+="\n");return e}return w(this.at,this.style,t)},t}(),F=/@font-face/,K={onCreateRule:function(t,e,r){return F.test(t)?new q(t,e,r):null}},H=function(){function t(t,e,r){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t,this.style=e,this.options=r}return t.prototype.toString=function(t){return w(this.key,this.style,t)},t}(),Y={onCreateRule:function(t,e,r){return"@viewport"===t||"@-ms-v
2iewport"===t?new H(t,e,r):null}},V=function(){function t(t,e,r){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t,this.value=e,this.options=r}return t.prototype.toString=function(t){if(Array.isArray(this.value)){for(var e="",r=0;r<this.value.length;r++)e+=this.key+" "+this.value[r]+";",this.value[r+1]&&(e+="\n");return e}return this.key+" "+this.value+";"},t}(),Z={"@charset":!0,"@import":!0,"@namespace":!0},G=[x,I,U,W,K,Y,{onCreateRule:function(t,e,r){return t in Z?new V(t,e,r):null}}],X={process:!0},J={force:!0,process:!0},Q=function(){function t(t){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=t,this.classes=t.classes,this.keyframes=t.keyframes}var e=t.prototype;return e.add=function(t,e,r){var n=this.options,o=n.parent,a=n.sheet,s=n.jss,u=n.Renderer,c=n.generateId,f=n.scoped,h=Object(i.a)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:u,generateId:c,scoped:f,name:t,keyframes:this.keyframes,selector:void 0},r),l=t;t in this.raw&&(l=t+"-d"+this.counter++),this.raw[l]=e,l in this.classes&&(h.selector="."+M(this.classes[l]));var d=v(l,e,h);if(!d)return null;this.register(d);var p=void 0===h.index?this.index.length:h.index;return this.index.splice(p,0,d),d},e.get=function(t){return this.map[t]},e.remove=function(t){this.unregister(t),delete this.raw[t.key],this.index.splice(this.index.indexOf(t),1)},e.indexOf=function(t){return this.index.indexOf(t)},e.process=function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)},e.register=function(t){this.map[t.key]=t,t instanceof E?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof C&&this.keyframes&&(this.keyframes[t.name]=t.id)},e.unregister=function(t){delete this.map[t.key],t instanceof E?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof C&&delete this.keyframes[t.name]},e.update=function(){var t,e,r;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(e=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],t=null),t)this.updateOne(this.map[t],e,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],e,r)},e.updateOne=function(e,r,n){void 0===n&&(n=X);var i=this.options,o=i.jss.plugins,a=i.sheet;if(e.rules instanceof t)e.rules.update(r,n);else{var s=e,u=s.style;if(o.onUpdate(r,e,a,n),n.process&&u&&u!==s.style){for(var c in o.onProcessStyle(s.style,s,a),s.style){var f=s.style[c];f!==u[c]&&s.prop(c,f,J)}for(var h in u){var l=s.style[h],d=u[h];null==l&&l!==d&&s.prop(h,null,J)}}}},e.toString=function(t){for(var e="",r=this.options.sheet,n=!!r&&r.options.link,i=0;i<this.index.length;i++){var o=this.index[i].toString(t);(o||n)&&(e&&(e+="\n"),e+=o)}return e},t}(),$=function(){function t(t,e){for(var r in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(i.a)({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new Q(this.options),t)this.rules.add(r,t[r]);this.rules.process()}var e=t.prototype;return e.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(t,e,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(t,e,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},e.insertRule=function(t){this.renderer&&this.renderer.insertRule(t)},e.addRules=function(t,e){var r=[];for(var n in t){var i=this.addRule(n,t[n],e);i&&r.push(i)}return r},e.getRule=function(t){return this.rules.get(t)},e.deleteRule=function(t){var e="object"===typeof t?t:this.rules.get(t);return!(!e||this.attached&&!e.renderable)&&(this.rules.remove(e),!(this.attached&&e.renderable&&this.renderer)||this.renderer.deleteRule(e.renderable))},e.indexOf=function(t){return this.rules.indexOf(t)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var t;return(t=this.rules).update.apply(t,arguments),this},e.updateOne=function(t,e,r){return this.rules.updateOne(t,e,r),this},e.toString=function(t){return this.rules.toString(t)},t}(),tt=function(){function t(){this.plugins={internal:[],external:[]},this.registry=void 0}var e=t.prototype;return e.onCreateRule=function(t,e,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](t,e,r);
vendor: 5,699 bytes, line 2
2if(i)return i}return null},e.onProcessRule=function(t){if(!t.isProcessed){for(var e=t.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](t,e);t.style&&this.onProcessStyle(t.style,t,e),t.isProcessed=!0}},e.onProcessStyle=function(t,e,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)e.style=this.registry.onProcessStyle[n](e.style,e,r)},e.onProcessSheet=function(t){for(var e=0;e<this.registry.onProcessSheet.length;e++)this.registry.onProcessSheet[e](t)},e.onUpdate=function(t,e,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](t,e,r,n)},e.onChangeValue=function(t,e,r){for(var n=t,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,e,r);return n},e.use=function(t,e){void 0===e&&(e={queue:"external"});var r=this.plugins[e.queue];-1===r.indexOf(t)&&(r.push(t),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(t,e){for(var r in e)r in t&&t[r].push(e[r]);return t}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},t}(),et=new(function(){function t(){this.registry=[]}var e=t.prototype;return e.add=function(t){var e=this.registry,r=t.options.index;if(-1===e.indexOf(t))if(0===e.length||r>=this.index)e.push(t);else for(var n=0;n<e.length;n++)if(e[n].options.index>r)return void e.splice(n,0,t)},e.reset=function(){this.registry=[]},e.remove=function(t){var e=this.registry.indexOf(t);this.registry.splice(e,1)},e.toString=function(t){for(var e=void 0===t?{}:t,r=e.attached,n=Object(d.a)(e,["attached"]),i="",o=0;o<this.registry.length;o++){var a=this.registry[o];null!=r&&a.attached!==r||(i&&(i+="\n"),i+=a.toString(n))}return i},Object(c.a)(t,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),t}()),rt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),nt="2f1acc6c3a606b082e5eef5e54414ffb";null==rt[nt]&&(rt[nt]=0);var it=rt[nt]++,ot=function(t){void 0===t&&(t={});var e=0;return function(r,n){e+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),t.minify?""+(o||"c")+it+i+e:o+r.key+"-"+it+(i?"-"+i:"")+"-"+e}},at=function(t){var e;return function(){return e||(e=t()),e}},st=function(t,e){try{return t.attributeStyleMap?t.attributeStyleMap.get(e):t.style.getPropertyValue(e)}catch(r){return""}},ut=function(t,e,r){try{var n=r;if(Array.isArray(r)&&(n=y(r,!0),"!important"===r[r.length-1]))return t.style.setProperty(e,n,"important"),!0;t.attributeStyleMap?t.attributeStyleMap.set(e,n):t.style.setProperty(e,n)}catch(i){return!1}return!0},ct=function(t,e){try{t.attributeStyleMap?t.attributeStyleMap.delete(e):t.style.removeProperty(e)}catch(r){}},ft=function(t,e){return t.selectorText=e,t.selectorText===e},ht=at((function(){return document.querySelector("head")}));function lt(t){var e=et.registry;if(e.length>0){var r=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.attached&&n.options.index>e.index&&n.options.insertionPoint===e.insertionPoint)return n}return null}(e,t);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if((r=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t[r];if(n.attached&&n.options.insertionPoint===e.insertionPoint)return n}return null}(e,t))&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=t.insertionPoint;if(n&&"string"===typeof n){var i=function(t){for(var e=ht(),r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===t)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var dt=at((function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null})),pt=function(t,e,r){try{if("insertRule"in t)t.insertRule(e,r);else if("appendRule"in t){t.appendRule(e)}}catch(n){return!1}return t.cssRules[r]},bt=function(t,e){var r=t.cssRules.length;return void 0===e||e>r?r:e},vt=function(){function t(t){this.getPropertyValue=st,this.setProperty=ut,this.removeProperty=ct,this.setSelector=ft,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],t&&et.add(t),this.sheet=t;var e=this.sheet?this.sheet.options:{},r=e.media,n=e.meta,i=e.element;this.element=i||function(){var t=document.createElement("style");return t.textContent="\n",t}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=dt();o&&this.element.setAttribute("nonce",o)}var e=t.prototype;return e.attach=function(){if(!this.element.parentNode&&this.sheet){!function(t,e){var r=e.insertionPoint,n=lt(e);if(!1!==n&&n.parent)n.parent.insertBefore(t,n.node);else if(r&&"number"===typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(t,i.nextSibling)}else ht().appendChild(t)}(this.element,this.sheet.options);var t=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var t=this.element.parentNode;t&&t.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},e.deploy=function(){var t=this.sheet;t&&(t.options.link?this.insertRules(t.rules):this.element.textContent="\n"+t.toString()+"\n")},e.insertRules=function(t,e){for(var r=0;r<t.index.length;r++)this.insertRule(t.index[r],r,e)},e.insertRule=function(t,e,r){if(void 0===r&&(r=this.element.sheet),t.rules){var n=t,i=r;
2if("conditional"===t.type||"keyframes"===t.type){var o=bt(r,e);if(!1===(i=pt(r,n.toString({children:!1}),o)))return!1;this.refCssRule(t,o,i)}return this.insertRules(n.rules,i),i}var a=t.toString();if(!a)return!1;var s=bt(r,e),u=pt(r,a,s);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(t,s,u),u)},e.refCssRule=function(t,e,r){t.renderable=r,t.options.parent instanceof $&&(this.cssRules[e]=r)},e.deleteRule=function(t){var e=this.element.sheet,r=this.indexOf(t);return-1!==r&&(e.deleteRule(r),this.cssRules.splice(r,1),!0)},e.indexOf=function(t){return this.cssRules.indexOf(t)},e.replaceRule=function(t,e){var r=this.indexOf(t);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(e,r))},e.getRules=function(){return this.element.sheet.cssRules},t}(),mt=0,yt=function(){function t(t){this.id=mt++,this.version="10.7.1",this.plugins=new tt,this.options={id:{minify:!1},createGenerateId:ot,Renderer:u?vt:null,plugins:[]},this.generateId=ot({minify:!1});for(var e=0;e<G.length;e++)this.plugins.use(G[e],{queue:"internal"});this.setup(t)}var e=t.prototype;return e.setup=function(t){return void 0===t&&(t={}),t.createGenerateId&&(this.options.createGenerateId=t.createGenerateId),t.id&&(this.options.id=Object(i.a)({},this.options.id,t.id)),(t.createGenerateId||t.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=t.insertionPoint&&(this.options.insertionPoint=t.insertionPoint),"Renderer"in t&&(this.options.Renderer=t.Renderer),t.plugins&&this.use.apply(this,t.plugins),this},e.createStyleSheet=function(t,e){void 0===e&&(e={});var r=e.index;"number"!==typeof r&&(r=0===et.index?0:et.index+1);var n=new $(t,Object(i.a)({},e,{jss:this,generateId:e.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},e.removeStyleSheet=function(t){return t.detach(),et.remove(t),this},e.createRule=function(t,e,r){if(void 0===e&&(e={}),void 0===r&&(r={}),"object"===typeof t)return this.createRule(void 0,t,e);var n=Object(i.a)({},r,{name:t,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=v(t,e,n);return o&&this.plugins.onProcessRule(o),o},e.use=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.forEach((function(e){t.plugins.use(e)})),this},t}();function gt(t){var e=null;for(var r in t){var n=t[r],i=typeof n;if("function"===i)e||(e={}),e[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=gt(n);o&&(e||(e={}),e[r]=o)}}return e}var wt="object"===typeof CSS&&null!=CSS&&"number"in CSS,_t=function(t){return new yt(t)};_t();function kt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.baseClasses,r=t.newClasses;t.Component;if(!r)return e;var n=Object(i.a)({},e);return Object.keys(r).forEach((function(t){r[t]&&(n[t]="".concat(e[t]," ").concat(r[t]))})),n}var Mt={set:function(t,e,r,n){var i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(r,n)},get:function(t,e,r){var n=t.get(e);return n?n.get(r):void 0},delete:function(t,e,r){t.get(e).delete(r)}},St=r(344),Et=(r(15),r(171)),xt=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var At=Date.now(),Ot="fnValues"+At,jt="fnStyle"+ ++At,Rt=function(){return{onCreateRule:function(t,e,r){if("function"!==typeof e)return null;var n=v(t,{},r);return n[jt]=e,n},onProcessStyle:function(t,e){if(Ot in e||jt in e)return t;var r={};for(var n in t){var i=t[n];"function"===typeof i&&(delete t[n],r[n]=i)}return e[Ot]=r,t},onUpdate:function(t,e,r,n){var i=e,o=i[jt];o&&(i.style=o(t)||{});var a=i[Ot];if(a)for(var s in a)i.prop(s,a[s](t),n)}}},It="@global",Pt="@global ",Tt=function(){function t(t,e,r){for(var n in this.type="global",this.at=It,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=t,this.options=r,this.rules=new Q(Object(i.a)({},r,{parent:this})),e)this.rules.add(n,e[n]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.addRule=function(t,e,r){var n=this.rules.add(t,e,r);return n&&this.options.jss.plugins.onProcessRule(n),n},e.indexOf=function(t){return this.rules.indexOf(t)},e.toString=function(){return this.rules.toString()},t}(),Ct=function(){function t(t,e,r){this.type="global",this.at=It,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=t,this.options=r;var n=t.substr(Pt.length);this.rule=r.jss.createRule(n,e,Object(i.a)({},r,{parent:this}))}return t.prototype.toString=function(t){return this.rule?this.rule.toString(t):""},t}(),Bt=/\s*,\s*/g;function Lt(t,e){for(var r=t.split(Bt),n="",i=0;i<r.length;
vendor: 3,882 bytes, line 2
2i++)n+=e+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var Nt=function(){return{onCreateRule:function(t,e,r){if(!t)return null;if(t===It)return new Tt(t,e,r);if("@"===t[0]&&t.substr(0,Pt.length)===Pt)return new Ct(t,e,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),!1===r.scoped&&(r.selector=t),null},onProcessRule:function(t,e){"style"===t.type&&e&&(function(t,e){var r=t.options,n=t.style,o=n?n[It]:null;if(o){for(var a in o)e.addRule(a,o[a],Object(i.a)({},r,{selector:Lt(a,t.selector)}));delete n[It]}}(t,e),function(t,e){var r=t.options,n=t.style;for(var o in n)if("@"===o[0]&&o.substr(0,It.length)===It){var a=Lt(o.substr(It.length),t.selector);e.addRule(a,n[o],Object(i.a)({},r,{selector:a})),delete n[o]}}(t,e))}}},Dt=/\s*,\s*/g,Ut=/&/g,zt=/\$([\w-]+)/g;var Wt=function(){function t(t,e){return function(r,n){var i=t.getRule(n)||e&&e.getRule(n);return i?(i=i).selector:n}}function e(t,e){for(var r=e.split(Dt),n=t.split(Dt),i="",o=0;o<r.length;o++)for(var a=r[o],s=0;s<n.length;s++){var u=n[s];i&&(i+=", "),i+=-1!==u.indexOf("&")?u.replace(Ut,a):a+" "+u}return i}function r(t,e,r){if(r)return Object(i.a)({},r,{index:r.index+1});var n=t.options.nestingLevel;n=void 0===n?1:n+1;var o=Object(i.a)({},t.options,{nestingLevel:n,index:e.indexOf(t)+1});return delete o.name,o}return{onProcessStyle:function(n,o,a){if("style"!==o.type)return n;var s,u,c=o,f=c.options.parent;for(var h in n){var l=-1!==h.indexOf("&"),d="@"===h[0];if(l||d){if(s=r(c,f,s),l){var p=e(h,c.selector);u||(u=t(f,a)),p=p.replace(zt,u),f.addRule(p,n[h],Object(i.a)({},s,{selector:p}))}else d&&f.addRule(h,{},s).addRule(c.key,n[h],{selector:c.selector});delete n[h]}}return n}}},qt=/[A-Z]/g,Ft=/^ms-/,Kt={};function Ht(t){return"-"+t.toLowerCase()}var Yt=function(t){if(Kt.hasOwnProperty(t))return Kt[t];var e=t.replace(qt,Ht);return Kt[t]=Ft.test(e)?"-"+e:e};function Vt(t){var e={};for(var r in t){e[0===r.indexOf("--")?r:Yt(r)]=t[r]}return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(Vt):e.fallbacks=Vt(t.fallbacks)),e}var Zt=function(){return{onProcessStyle:function(t){if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=Vt(t[e]);return t}return Vt(t)},onChangeValue:function(t,e,r){if(0===e.indexOf("--"))return t;var n=Yt(e);return e===n?t:(r.prop(n,t),null)}}},Gt=wt&&CSS?CSS.px:"px",Xt=wt&&CSS?CSS.ms:"ms",Jt=wt&&CSS?CSS.percent:"%";function Qt(t){var e=/(-[a-z])/g,r=function(t){return t[1].toUpperCase()},n={};for(var i in t)n[i]=t[i],n[i.replace(e,r)]=t[i];return n}var $t=Qt({"animation-delay":Xt,"animation-duration":Xt,"background-position":Gt,"background-position-x":Gt,"background-position-y":Gt,"background-size":Gt,border:Gt,"border-bottom":Gt,"border-bottom-left-radius":Gt,"border-bottom-right-radius":Gt,"border-bottom-width":Gt,"border-left":Gt,"border-left-width":Gt,"border-radius":Gt,"border-right":Gt,"border-right-width":Gt,"border-top":Gt,"border-top-left-radius":Gt,"border-top-right-radius":Gt,"border-top-width":Gt,"border-width":Gt,"border-block":Gt,"border-block-end":Gt,"border-block-end-width":Gt,"border-block-start":Gt,"border-block-start-width":Gt,"border-block-width":Gt,"border-inline":Gt,"border-inline-end":Gt,"border-inline-end-width":Gt,"border-inline-start":Gt,"border-inline-start-width":Gt,"border-inline-width":Gt,"border-start-start-radius":Gt,"border-start-end-radius":Gt,"border-end-start-radius":Gt,"border-end-end-radius":Gt,margin:Gt,"margin-bottom":Gt,"margin-left":Gt,"margin-right":Gt,"margin-top":Gt,"margin-block":Gt,"margin-block-end":Gt,"margin-block-start":Gt,"margin-inline":Gt,"margin-inline-end":Gt,"margin-inline-start":Gt,padding:Gt,"padding-bottom":Gt,"padding-left":Gt,"padding-right":Gt,"padding-top":Gt,"padding-block":Gt,"padding-block-end":Gt,"padding-block-start":Gt,"padding-inline":Gt,"padding-inline-end":Gt,"padding-inline-start":Gt,"mask-
2position-x":Gt,"mask-position-y":Gt,"mask-size":Gt,height:Gt,width:Gt,"min-height":Gt,"max-height":Gt,"min-width":Gt,"max-width":Gt,bottom:Gt,left:Gt,top:Gt,right:Gt,inset:Gt,"inset-block":Gt,"inset-block-end":Gt,"inset-block-start":Gt,"inset-inline":Gt,"inset-inline-end":Gt,"inset-inline-start":Gt,"box-shadow":Gt,"text-shadow":Gt,"column-gap":Gt,"column-rule":Gt,"column-rule-width":Gt,"column-width":Gt,"font-size":Gt,"font-size-delta":Gt,"letter-spacing":Gt,"text-decoration-thickness":Gt,"text-indent":Gt,"text-stroke":Gt,"text-stroke-width":Gt,"word-spacing":Gt,motion:Gt,"motion-offset":Gt,outline:Gt,"outline-offset":Gt,"outline-width":Gt,perspective:Gt,"perspective-origin-x":Jt,"perspective-origin-y":Jt,"transform-origin":Jt,"transform-origin-x":Jt,"transform-origin-y":Jt,"transform-origin-z":Jt,"transition-delay":Xt,"transition-duration":Xt,"vertical-align":Gt,"flex-basis":Gt,"shape-margin":Gt,size:Gt,gap:Gt,grid:Gt,"grid-gap":Gt,"row-gap":Gt,"grid-row-gap":Gt,"grid-column-gap":Gt,"grid-template-rows":Gt,"grid-template-columns":Gt,"grid-auto-rows":Gt,"grid-auto-columns":Gt,"box-shadow-x":Gt,"box-shadow-y":Gt,"box-shadow-blur":Gt,"box-shadow-spread":Gt,"font-line-height":Gt,"text-shadow-x":Gt,"text-shadow-y":Gt,"text-shadow-blur":Gt});function te(t,e,r){if(null==e)return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=te(t,e[n],r);else if("object"===typeof e)if("fallbacks"===t)for(var i in e)e[i]=te(i,e[i],r);else for(var o in e)e[o]=te(t+"-"+o,e[o],r);else if("number"===typeof e&&!1===isNaN(e)){var a=r[t]||$t[t];return!a||0===e&&a===Gt?e.toString():"function"===typeof a?a(e).toString():""+e+a}return e}var ee=function(t){void 0===t&&(t={});var e=Qt(t);return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n in t)t[n]=te(n,t[n],e);return t},onChangeValue:function(t,r){return te(r,t,e)}}},re=r(85),ne="",ie="",oe="",ae="",se=u&&"ontouchstart"in document.documentElement;if(u){var ue={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ce=document.createElement("p").style;for(var fe in ue)if(fe+"Transform"in ce){ne=fe,ie=ue[fe];break}"Webkit"===ne&&"msHyphens"in ce&&(ne="ms",ie=ue.ms,ae="edge"),"Webkit"===ne&&"-apple-trailing-word"in ce&&(oe="apple")}var he=ne,le=ie,de=oe,pe=ae,be=se;var ve={noPrefill:["appearance"],supportedProperty:function(t){return"appearance"===t&&("ms"===he?"-webkit-"+t:le+t)}},me={noPrefill:["color-adjust"],supportedProperty:function(t){return"color-adjust"===t&&("Webkit"===he?le+"print-"+t:t)}},ye=/[-\s]+(.)?/g;function ge(t,e){return e?e.toUpperCase():""}function we(t){return t.replace(ye,ge)}function _e(t){return we("-"+t)}var ke,Me={noPrefill:["mask"],supportedProperty:function(t,e){if(!/^mask/.test(t))return!1;if("Webkit"===he){var r="mask-image";if(we(r)in e)return t;if(he+_e(r)in e)return le+t}return t}},Se={noPrefill:["text-orientation"],supportedProperty:function(t){return"text-orientation"===t&&("apple"!==de||be?t:le+t)}},Ee={noPrefill:["transform"],supportedProperty:function(t,e,r){return"transform"===t&&(r.transform?t:le+t)}},xe={noPrefill:["transition"],supportedProperty:function(t,e,r){return"transition"===t&&(r.transition?t:le+t)}},Ae={noPrefill:["writing-mode"],supportedProperty:function(t){return"writing-mode"===t&&("Webkit"===he||"ms"===he&&"edge"!==pe?le+t:t)}},Oe={noPrefill:["user-select"],supportedProperty:function(t){return"user-select"===t&&("Moz"===he||"ms"===he||"apple"===de?le+t:t)}},je={supportedProperty:function(t,e){return!!/^break-/.test(t)&&("Webkit"===he?"WebkitColumn"+_e(t)in e&&le+"column-"+t:"Moz"===he&&("page"+_e(t)in e&&"page-"+t))}},Re={supportedProperty:function(t,e){if(!/^(border|margin|padding)-inline/.test(t))return!1;if("Moz"===he)return t;var r=t.replace("-inline","");return he+_e(r)in e&&le+r}},Ie={supportedProperty:function(t,e){return we(t)in e&&t}},Pe={supportedProperty:function(t,e){var r=_e(t);return"-"===t[0]||"-"===t[0]&&"-"===t[1]?t:he+r in e?le+t:"Webkit"!==he&&"Webkit"+r in e&&"-webkit-"+t}},Te={supportedProperty:function(t){return"scroll-snap"===t.substring(0,11)&&("ms"===he?""+le+t:t)}},Ce={supportedProperty:function(t){return"overscroll-behavior"===t&&("ms"===he?le+"scroll-chaining":t)}},Be={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"}
vendor: 7,916 bytes, line 2
2,Le={supportedProperty:function(t,e){var r=Be[t];return!!r&&(he+_e(r)in e&&le+r)}},Ne={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},De=Object.keys(Ne),Ue=function(t){return le+t},ze=[ve,me,Me,Se,Ee,xe,Ae,Oe,je,Re,Ie,Pe,Te,Ce,Le,{supportedProperty:function(t,e,r){var n=r.multiple;if(De.indexOf(t)>-1){var i=Ne[t];if(!Array.isArray(i))return he+_e(i)in e&&le+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(he+_e(i[0])in e))return!1;return i.map(Ue)}return!1}}],We=ze.filter((function(t){return t.supportedProperty})).map((function(t){return t.supportedProperty})),qe=ze.filter((function(t){return t.noPrefill})).reduce((function(t,e){return t.push.apply(t,Object(re.a)(e.noPrefill)),t}),[]),Fe={};if(u){ke=document.createElement("p");var Ke=window.getComputedStyle(document.documentElement,"");for(var He in Ke)isNaN(He)||(Fe[Ke[He]]=Ke[He]);qe.forEach((function(t){return delete Fe[t]}))}function Ye(t,e){if(void 0===e&&(e={}),!ke)return t;if(null!=Fe[t])return Fe[t];"transition"!==t&&"transform"!==t||(e[t]=t in ke.style);for(var r=0;r<We.length&&(Fe[t]=We[r](t,ke.style,e),!Fe[t]);r++);try{ke.style[t]=""}catch(n){return!1}return Fe[t]}var Ve,Ze={},Ge={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Xe=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Je(t,e,r){if("var"===e)return"var";if("all"===e)return"all";if("all"===r)return", all";var n=e?Ye(e):", "+Ye(r);return n||(e||r)}function Qe(t,e){var r=e;if(!Ve||"content"===t)return e;if("string"!==typeof r||!isNaN(parseInt(r,10)))return r;var n=t+r;if(null!=Ze[n])return Ze[n];try{Ve.style[t]=r}catch(i){return Ze[n]=!1,!1}if(Ge[t])r=r.replace(Xe,Je);else if(""===Ve.style[t]&&("-ms-flex"===(r=le+r)&&(Ve.style[t]="-ms-flexbox"),Ve.style[t]=r,""===Ve.style[t]))return Ze[n]=!1,!1;return Ve.style[t]="",Ze[n]=r,Ze[n]}u&&(Ve=document.createElement("p"));var $e=function(){function t(e){for(var r in e){var n=e[r];if("fallbacks"===r&&Array.isArray(n))e[r]=n.map(t);else{var i=!1,o=Ye(r);o&&o!==r&&(i=!0);var a=!1,s=Qe(o,y(n));s&&s!==n&&(a=!0),(i||a)&&(i&&delete e[r],e[o||r]=s||n)}}return e}return{onProcessRule:function(t){if("keyframes"===t.type){var e=t;e.at="-"===(r=e.at)[1]||"ms"===he?r:"@"+le+"keyframes"+r.substr(10)}var r},onProcessStyle:function(e,r){return"style"!==r.type?e:t(e)},onChangeValue:function(t,e){return Qe(e,y(t))||t}}};var tr=function(){var t=function(t,e){return t.length===e.length?t>e?1:-1:t.length-e.length};return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}}};function er(){return{plugins:[Rt(),Nt(),Wt(),Zt(),ee(),"undefined"===typeof window?null:$e(),tr()]}}var rr=_t(er()),nr={disableGeneration:!1,generateClassName:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.disableGlobal,r=void 0!==e&&e,n=t.productionPrefix,i=void 0===n?"jss":n,o=t.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),u=0,c=function(){return u+=1};return function(t,e){var n=e.options.name;if(n&&0===n.indexOf("Mui")&&!e.options.link&&!r){if(-1!==xt.indexOf(t.key))return"Mui-".concat(t.key);var o="".concat(s).concat(n,"-").concat(t.key);return e.options.theme[Et.a]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}(),jss:rr,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},ir=a.a.createContext(nr);var or=-1e9;function ar(){return or+=1}r(127);var sr=r(597);function ur(t){var e="function"===typeof t;return{create:function(r,n){var o;try{o=e?t(r):t}catch(u){throw u}if(!n||!r.overrides||!r.overrides[n])return o;var a=r.overrides[n],s=Object(i.a)({},o);return Object.keys(a).forEach((function(t){s[t]=Object(sr.a)(s[t],a[t])})),s},options:{}}}var cr={};function fr(t,e,r){var n=t.state;if(t.stylesOptions.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,i=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,i=!0),i&&(n.cacheClasses.value=kt({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function hr(t,e){var r=t.state,n=t.theme,o=t.stylesOptions,a=t.stylesCreator,s=t.name;if(!o.disableGeneration){var u=Mt.get(o.sheetsManager,a,n);u||(u={refs:0,staticSheet:null,dynamicStyles:null},Mt.set(o.sheetsManager,a,n,u));var c=Object(i.a)({},a.options,o,{theme:n,flip:"boolean"===typeof o.flip?o.flip:"rtl"===n.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var f=o.sheetsRegistry;if(0===u.refs){var h;o.sheetsCache&&(h=Mt.get(o.sheetsCache,a,n));var l=a.create(n,s);h||((h=o.jss.createStyleSheet(l,Object(i.a)({link:!1},c))).attach(),o.sheetsCache&&Mt.set(o.sheetsCache,a,n,h)),f&&f.add(h),u.staticSheet=h,u.dynamicStyles=gt(l)}if(u.dynamicStyles){var d=o.jss.createStyleSheet(u.dynamicStyles,Object(i.a)({link:!0},c));d.update(e),d.attach(),r.dynamicSheet=d,r.classes=kt({baseClasses:u.staticSheet.classes,newClasses:d.classes}),f&&f.add(d)}else r.classes=u.staticSheet.classes;u.refs+=1}}function lr(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function dr(t){var e=t.state,r=t.theme,n=t.stylesOptions,i=t.stylesCreator;if(!n.disableGeneration){var o=Mt.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;0===o.refs&&(Mt.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}}function pr(t,e){var r,n=a.a.useRef([]),i=a.a.useMemo((function(){return{}}),e);n.current!==i&&(n.current=i,r=t()),a.a.useEffect((function(){return function(){r&&r()}}),[i])}function br(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.name,o=e.classNamePrefix,s=e.Component,u=e.defaultTheme,c=void 0===u?cr:u,f=Object(n.a)(e,["name","classNamePrefix","Component","defaultTheme"]),h=ur(t),l=r||o||"makeStyles";h.options={index:ar(),name:r,meta:l,classNamePrefix:l};var d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object(St.a)()||c,n=Object(i.a)({},a.a.useContext(ir),f),o=a.a.useRef(),u=a.a.useRef();pr((function(){var i={name:r,state:{},stylesCreator:h,stylesOptions:n,theme:e};return hr(i,t),u.current=!1,o.current=i,function(){dr(i)}}),[e,h]),a.a.useEffect((function(){u.current&&lr(o.current,t),u.current=!0}));var l=fr(o.current,t.classes,s);return l};return d}},function(t,e,r){"use strict";var n=r(173),i=r(176),o=(r(15),r(2)),a=r.n(o),s=r(29),u=r.n(s),c=!1,f=r(115),h="unmounted",l="exited",d="entering",p="entered",b="exiting",v=function(t){function e(e,r){var n;n=t.call(this,e,r)||this;var i,o=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?o?(i=l,n.appearStatus=d):i=p:i=e.unmountOnExit||e.mountOnEnter?h:l,n.state={status:i},n.nextCallback=null,n}Object(i.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===h?{status:l}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==d&&r!==p&&(e=d):r!==d&&r!==p||(e=b)}this.updateStatus(!1,e)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!==typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},r.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===d?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===l&&this.setState({status:h})},r.performEnter=function(t){var e=this,r=this.props.enter,n=this.context?this.context.
2isMounting:t,i=this.props.nodeRef?[n]:[u.a.findDOMNode(this),n],o=i[0],a=i[1],s=this.getTimeouts(),f=n?s.appear:s.enter;!t&&!r||c?this.safeSetState({status:p},(function(){e.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:d},(function(){e.props.onEntering(o,a),e.onTransitionEnd(f,(function(){e.safeSetState({status:p},(function(){e.props.onEntered(o,a)}))}))})))},r.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:u.a.findDOMNode(this);e&&!c?(this.props.onExit(n),this.safeSetState({status:b},(function(){t.props.onExiting(n),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(n)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},r.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),n=null==t&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===h)return null;var e=this.props,r=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(n.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(f.a.Provider,{value:null},"function"===typeof r?r(t,i):a.a.cloneElement(a.a.Children.only(r),i))},e}(a.a.Component);function m(){}v.contextType=f.a,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},v.UNMOUNTED=h,v.EXITED=l,v.ENTERING=d,v.ENTERED=p,v.EXITING=b;e.a=v},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(6),i=r(571),o=r(110);e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(t,Object(n.a)({defaultTheme:o.a},e))}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(6),i=r(127);function o(t){return t&&"object"===Object(i.a)(t)&&t.constructor===Object}function a(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=r.clone?Object(n.a)({},t):t;return o(t)&&o(e)&&Object.keys(e).forEach((function(n){"__proto__"!==n&&(o(e[n])&&n in t?i[n]=a(t[n],e[n],r):i[n]=e[n])})),i}},function(t,e,r){"use strict";var n=r(12),i=r(6),o=r(2),a=(r(15),r(17)),s=r(24),u=r(45),c=r(346),f=r(30),h=o.forwardRef((function(t,e){var r=t.children,s=t.classes,u=t.className,h=t.color,l=void 0===h?"default":h,d=t.component,p=void 0===d?"button":d,b=t.disabled,v=void 0!==b&&b,m=t.disableElevation,y=void 0!==m&&m,g=t.disableFocusRipple,w=void 0!==g&&g,_=t.endIcon,k=t.focusVisibleClassName,M=t.fullWidth,S=void 0!==M&&M,E=t.size,x=void 0===E?"medium":E,A=t.startIcon,O=t.type,j=void 0===O?"button":O,R=t.variant,I=void 0===R?"text":R,P=Object(n.a)(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=A&&o.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(f.a)(x))])},A),C=_&&o.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(f.a)(x))])},_);return o.createElement(c.a,Object(i.a)({className:Object(a.a)(s.root,s[I],u,"inherit"===l?s.colorInherit:"default"!==l&&s["".concat(I
2).concat(Object(f.a)(l))],"medium"!==x&&[s["".concat(I,"Size").concat(Object(f.a)(x))],s["size".concat(Object(f.a)(x))]],y&&s.disableElevation,v&&s.disabled,S&&s.fullWidth),component:p,disabled:v,focusRipple:!w,focusVisibleClassName:Object(a.a)(s.focusVisible,k),ref:e,type:j},P),o.createElement("span",{className:s.label},T,r,C))}));e.a=Object(s.a)((function(t){return{root:Object(i.a)({},t.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:t.shape.borderRadius,color:t.palette.text.primary,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(u.a)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:t.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===t.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(t.palette.action.disabledBackground)}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(Object(u.a)(t.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.primary.main),backgroundColor:Object(u.a)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(Object(u.a)(t.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.secondary.main),backgroundColor:Object(u.a)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(t.palette.action.disabled)}},contained:{color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],boxShadow:t.shadows[2],"&:hover":{backgroundColor:t.palette.grey.A100,boxShadow:t.shadows[4],"@media (hover: none)":{boxShadow:t.shadows[2],backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:t.shadows[6]},"&:active":{boxShadow:t.shadows[8]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}},containedPrimary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},containedSecondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(h)},function(t,e,r){"use strict";function n(t){var e=t.theme,r=t.name,n=t.props;if(!e||!e.props||!e.props[r])return n;var i,o=e.props[r];for(i in o)void 0===n[i]&&(n[i]=o[i]);return n}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(12),i=r(6),o=r(2),a=(r(15),r(17)),s=r(24),u=o.forwardRef((function(t,e){var r=t.classes,s=t.className,u=t.component,c=void 0===u?"div":u,f=t.square,h=void 0!==f&&f,l=t.elevation,d=void 0===l?1:l,p=t.variant,b=void 0===p?"elevation":p,v=Object(n.a)(t,["classes","className","component","square","elevation","variant"]);return o.createElement(c,Object(i.a)({className:Object(a.a)(r.root,s,"outlined"===b?r.outlined:r["elevation".concat(d)],!h&&r.rounded),ref:e},v))}));e.a=Object(s.a)((function(t){var e={};return t.shadows.forEach((function(t,r){e["elevation".concat(r)]={boxShadow:t}})),Object(i.a)({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},e)}),{name:"MuiPaper"})(u)},function(t,e,r){"use strict";var n=r(6),i=r(12),o=r(2),a=(r(15),r(17)),s=r(24),u=r(30),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h
vendor: 7,510 bytes, line 2
25:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},f=o.forwardRef((function(t,e){var r=t.align,s=void 0===r?"inherit":r,f=t.classes,h=t.className,l=t.color,d=void 0===l?"initial":l,p=t.component,b=t.display,v=void 0===b?"initial":b,m=t.gutterBottom,y=void 0!==m&&m,g=t.noWrap,w=void 0!==g&&g,_=t.paragraph,k=void 0!==_&&_,M=t.variant,S=void 0===M?"body1":M,E=t.variantMapping,x=void 0===E?c:E,A=Object(i.a)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),O=p||(k?"p":x[S]||c[S])||"span";return o.createElement(O,Object(n.a)({className:Object(a.a)(f.root,h,"inherit"!==S&&f[S],"initial"!==d&&f["color".concat(Object(u.a)(d))],w&&f.noWrap,y&&f.gutterBottom,k&&f.paragraph,"inherit"!==s&&f["align".concat(Object(u.a)(s))],"initial"!==v&&f["display".concat(Object(u.a)(v))]),ref:e},A))}));e.a=Object(s.a)((function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(f)},function(t,e,r){"use strict";var n=r(6),i=r(12),o=r(2),a=(r(15),r(17)),s=r(24),u=r(45),c=r(346),f=r(30),h=o.forwardRef((function(t,e){var r=t.edge,s=void 0!==r&&r,u=t.children,h=t.classes,l=t.className,d=t.color,p=void 0===d?"default":d,b=t.disabled,v=void 0!==b&&b,m=t.disableFocusRipple,y=void 0!==m&&m,g=t.size,w=void 0===g?"medium":g,_=Object(i.a)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(c.a,Object(n.a)({className:Object(a.a)(h.root,l,"default"!==p&&h["color".concat(Object(f.a)(p))],v&&h.disabled,"small"===w&&h["size".concat(Object(f.a)(w))],{start:h.edgeStart,end:h.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:v,ref:e},_),o.createElement("span",{className:h.label},u))}));e.a=Object(s.a)((function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(u.a)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(h)},function(t,e,r){"use strict";var n=r(6),i=r(86),o=r(12),a=r(2),s=(r(15),r(572)),u=r(83),c=r(63),f=r(35);function h(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var l={entering:{opacity:1,transform:h(1)},entered:{opacity:1,transform:"none"}},d=a.forwardRef((function(t,e){var r=t.children,d=t.disableStrictModeCompat,p=void 0!==d&&d,b=t.in,v=t.onEnter,m=t.onEntered,y=t.onEntering,g=t.onExit,w=t.onExited,_=t.onExiting,k=t.style,M=t.timeout,S=void 0===M?"auto":M,E=t.TransitionComponent,x=void 0===E?s.a:E,A=Object(o.a)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),O=a.useRef(),j=a.useRef(),R=Object(u.a)(),I=R.unstable_strictMode&&!p,P=a.useRef(null),T=Object(f.a)(r.ref,e),C=Object(f.a)(I?P:void 0,T),B=function(t){return function(e,r){if(t){var n=I?[P.current,e]:[e,r],o=Object(i.a)(n,2),a=o[0],s=o[1];void 0===s?t(a):t(a,s)}}},L=B(y),N=B((function(t,e){Object(c.b)(t);var r,n=Object(c.a)({style:k,timeout:S},{mode:"enter"}),i=n.duration,o=n.delay;"auto"===S?(r=R.transitions.getAutoHeightDuration(t.clientHeight),j.current=r):r=i,t.style.transition=[R.transitions.create("opacity",{duration:r,delay:o}),R.transitions.create("transform",{duration:.666*r,delay:o})].join(","),v&&v(t,e)})),D=B(m),U=B(_),z=B((function(t){var e,r=Object(c.a)({style:k,timeout:S},{mode:"exit"}),n=r.duration,i=r.delay;"auto"===S?(e=R.transitions.getAutoHeightDuration(t.clientHeight),j.current=e):e=n,t.style.transition=[R.transitions.create("opacity",{duration:e,delay:i}),R.transitions.create("transform",{duration:.666*e,delay:i||.333*e})].join(","),t.style.opacity="0",t.style.transform=h(.75),g&&g(t)})),W=B(w);return a.useEffect((function(){return function(){clearTimeout(O.current)}}),[]),a.createElement(x,Object(n.a)({appear:!0,in:b,nodeRef:I?P:void 0,onEnter:N,onEntered:D,onEntering:L,onExit:z,onExited:W,onExiting:U,addEndListener:function(t,e){var r=I?t:e;"auto"===S&&(O.current=setTimeout(r,j.current||0))},timeout:"auto"===S?null:S},A),(function(t,e){return a.cloneElement(r,Object(n.a)({style:Object(n.a)({opacity:0,transform:h(.75),visibility:"exited"!==t||b?void 0:"hidden"},l[t],k,r.props.style),ref:C},e))}))}));d.muiSupportAuto=!0,e.a=d},function(t,e,r){"use strict";var n=r(6),i=r(12),o=r(2),a=(r(15),r(17)),s=r(24),u=r(30),c=44,f=o.forwardRef((function(t,e){var r=t.classes,s=t.className,f=t.color,h=void 0===f?"primary":f,l=t.disableShrink,d=void 0!==l&&l,p=t.size,b=void 0===p?40:p,v=t.style,m=t.thickness,y=void 0===m?3.6:m,g=t.value,w=void 0===g?0:g,_=t.variant,k=void 0===_?"indeterminate":_,M=Object(i.a)(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),S={},E={},x={};if("determinate"===k||"static"===k){var A=2*Math.PI*((c-y)/2);S.strokeDasharray=A.toFixed(3),x["aria-valuenow"]=Math.round(w),S.strokeDashoffset="".concat(((100-w)/100*A).toFixed(3),"px"),E.transform="rotate(-90deg)"}return o.createElement("div",Object(n.a)({className:Object(a.a)(r.root,s,"inherit"!==h&&r["color".concat(Object(u.a)(h))],{determinate:r.determinate,indeterminate:r.indeterminate,static:r.static}[k]),style:Object(n.a)({width:b,height:b},E,v),ref:e,role:"progressbar"},x,M),o.createElement("svg",{className:r.svg,viewBox:"".concat(22," ").concat(22," ").concat(c," ").concat(c)},o.createElement("circle",{className:Object(a.a)(r.circle,d&&r.circleDisableShrink,{determinate:r.circleDeterminate,indeterminate:r.circleIndeterminate,static:r.circleStatic}[k]),style:S,cx:c,cy:c,r:(c-y)/2,fill:"none",strokeWidth:y})))}
2));e.a=Object(s.a)((function(t){return{root:{display:"inline-block"},static:{transition:t.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:t.transitions.create("transform")},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:t.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:t.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(f)},function(t,e,r){"use strict";var n=r(6),i=r(2),o=r.n(i),a=(r(15),r(169)),s=r(344),u=r(171);e.a=function(t){var e=t.children,r=t.theme,i=Object(s.a)(),c=o.a.useMemo((function(){var t=null===i?r:function(t,e){return"function"===typeof e?e(t):Object(n.a)({},t,e)}(i,r);return null!=t&&(t[u.a]=null!==i),t}),[r,i]);return o.a.createElement(a.a.Provider,{value:c},e)}},function(t,e,r){"use strict";var n=r(12),i=r(6),o=r(2),a=(r(15),r(17)),s=r(45),u=r(24),c=r(600),f=r(313),h=Object(f.a)(o.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),l=Object(f.a)(o.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),d=Object(f.a)(o.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),p=Object(f.a)(o.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),b=Object(f.a)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),v=r(602),m=r(30),y={success:o.createElement(h,{fontSize:"inherit"}),warning:o.createElement(l,{fontSize:"inherit"}),error:o.createElement(d,{fontSize:"inherit"}),info:o.createElement(p,{fontSize:"inherit"})},g=o.createElement(b,{fontSize:"small"}),w=o.forwardRef((function(t,e){var r=t.action,s=t.children,u=t.classes,f=t.className,h=t.closeText,l=void 0===h?"Close":h,d=t.color,p=t.icon,b=t.iconMapping,w=void 0===b?y:b,_=t.onClose,k=t.role,M=void 0===k?"alert":k,S=t.severity,E=void 0===S?"success":S,x=t.variant,A=void 0===x?"standard":x,O=Object(n.a)(t,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return o.createElement(c.a,Object(i.a)({role:M,square:!0,elevation:0,className:Object(a.a)(u.root,u["".concat(A).concat(Object(m.a)(d||E))],f),ref:e},O),!1!==p?o.createElement("div",{className:u.icon},p||w[E]||y[E]):null,o.createElement("div",{className:u.message},s),null!=r?o.createElement("div",{className:u.action},r):null,null==r&&_?o.createElement("div",{className:u.action},o.createElement(v.a,{size:"small","aria-label":l,title:l,color:"inherit",onClick:_},g)):null)}));e.a=Object(u.a)((function(t){var e="light"===t.palette.type?s.b:s.e,r="light"===t.palette.type?s.e:s.b;return{root:Object(i.a)({},t.typography.body2,{borderRadius:t.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:e(t.palette.success.main,.6),backgroundColor:r(t.palette.success.main,.9),"& $icon":{color:t.palette.success.main}},standardInfo:{color:e(t.palette.info.main,.6),backgroundColor:r(t.palette.info.main,.9),"& $icon":{color:t.palette.info.main}},standardWarning:{color:e(t.palette.warning.main,.6),backgroundColor:r(t.palette.warning.main,.9),"& $icon":{color:t.palette.warning.main}},standardError:{color:e(t.palette.error.main,.6),backgroundColor:r(t.palette.error.main,.9),"& $icon":{color:t.palette.error.main}},outlinedSuccess:{color:e(t.palette.success.main,.6),border:"1px solid ".concat(t.palette.success.main),"& $icon":{color:t.palette.success.main}},outlinedInfo:{color:e(t.palette.info.main,.6),border:"1px solid ".concat(t.palette.info.main),"& $icon":{color:t.palette.info.main}},outlinedWarning:{color:e(t.palette.warning.main,.6),border:"1px solid ".concat(t.palette.warning.main),"& $icon":{color:t.palette.warning.main}},outlinedError:{color:e(t.palette.error.main,.6),border:"1px solid ".concat(t.palette.error.main),"& $icon":{color:t.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.success.main},filledInfo:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.info.main},filledWarning:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.warning.main},filledError:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(w)},function(t,e,r){"use strict";var n=r(12),i=r(37),o=r(6),a=r(2),s=(r(15),r(17)),u=r(24),c=r(53),f=r(29),h=r(41),l=r(35),d=r(47);function p(t){return t.substring(2).toLowerCase()}var b=function(t){var e=t.children,r=t.disableReactTree,n=void 0!==r&&r,i=t.mouseEvent,o=void 0===i?"onClick":i,s=t.onClickAway,u=t.touchEvent,c=void 0===u?"onTouchEnd":u,b=a.useRef(!1),v=a.useRef(null),m=a.useRef(!1),y=a.useRef(!1);a.useEffect((function(){return setTimeout((function(){m.current=!0}),0),function(){m.current=!1}}),[]);var g=a.useCallback((function(t){v.current=f.findDOMNode(t)}),[]),w=Object(l.a)(e.ref,g),_=Object(d.a)((function(t){var e=y.current;if(y.current=!1,m.current&&v.current&&!function(t){return document.documentElement.clientWidth<t.clientX||document.documentElement.clientHeight<t.clientY}(t))if(b.current)b.current=!1;else{var r;if(t.composedPath)r=t.composedPath().indexOf(v.current)>-1;else r=!Object(h.a)(v.current).documentElement.contains(t.target)||v.current.contains(t.target);r||!n&&e||s(t)}})),k=function(t){return function(r){y.current=!0;var n=e.props[t];n&&n(r)}},M={ref:w};return!1!==c&&(M[c]=k(c)),a.useEffect((function(){if(!1!==c){var t=p(c),e=Object(h.a)(v.current),r=function(){b.current=!0};return e.addEventListener(t,_),e.addEventListener("touchmove",r),function(){e.removeEventListener(t,_),e.removeEventListener("touchmove",r)}}}),[_,c]),!1!==o&&(M[o]=k(o)),a.useEffect((function(){if(!1!==o){var t=p(o),e=Object(h.a)(v.current);return e.addEventListener(t,_),function(){e.removeEventListener(t,_)}}}),[_,o]),a.createElement(a.Fragment,null,a.cloneElement(e,M))},v=r(30),m=r(68),y=r(603),g=r(600),w=r(45),_=a.forwardRef((function(t,e){var r=t.action,i=t.classes,u=t.className,c=t.message,f=t.role,h=void 0===f?"alert":f,l=Object(n.a)(t,["action","classes","className","message","role"]);return a.createElement(g.a,Object(o.a)({role:h,square:!0,elevation:6,className:Object(s.a)(i.root,u),ref:e},l),a.createElement("div",{className:i.message},c),r?a.createElement("div",{className:i.action},r):null)})),k=Object(u.a)((function(t){var e="light"===t.palette.type?.8:.98,r=Object(w.c)(t.palette.background.default,e);return{root:Object(o.a)({},t.typography.body2,Object(i.a)({color:t.palette.getContrastText(r),backgroundColor:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:t.shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(_),M=a.forwardRef((function(t,e){var r=t.action,i=t.anchorOrigin,u=(i=void 0===i?{vertical:"bottom",horizontal:"center"}:i).vertical,f=i.horizontal,h=t.autoHideDuration,l=void 0===h?null:h,p=t.children,g=t.classes,w=t.className,_=t.ClickAwayListenerProps,M=t.ContentProps,S=t.disableWindowBlurListener,E=void 0!==S&&S,x=t.message,A=t.onClose,O=t.onEnter,j=t.onEntered,R=t.onEntering,I=t.onExit,P=t.onExited,T=t.onExiting,C=t.onMouseEnter,B=t.onMouseLeave,L=t.open,N=t.resumeHideDuration,D=t.TransitionComponent,U=void 0===D?y.a:D,z=t.transitionDuration,W=void 0===z?{enter
2:c.b.enteringScreen,exit:c.b.leavingScreen}:z,q=t.TransitionProps,F=Object(n.a)(t,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),K=a.useRef(),H=a.useState(!0),Y=H[0],V=H[1],Z=Object(d.a)((function(){A&&A.apply(void 0,arguments)})),G=Object(d.a)((function(t){A&&null!=t&&(clearTimeout(K.current),K.current=setTimeout((function(){Z(null,"timeout")}),t))}));a.useEffect((function(){return L&&G(l),function(){clearTimeout(K.current)}}),[L,l,G]);var X=function(){clearTimeout(K.current)},J=a.useCallback((function(){null!=l&&G(null!=N?N:.5*l)}),[l,N,G]);return a.useEffect((function(){if(!E&&L)return window.addEventListener("focus",J),window.addEventListener("blur",X),function(){window.removeEventListener("focus",J),window.removeEventListener("blur",X)}}),[E,J,L]),!L&&Y?null:a.createElement(b,Object(o.a)({onClickAway:function(t){A&&A(t,"clickaway")}},_),a.createElement("div",Object(o.a)({className:Object(s.a)(g.root,g["anchorOrigin".concat(Object(v.a)(u)).concat(Object(v.a)(f))],w),onMouseEnter:function(t){C&&C(t),X()},onMouseLeave:function(t){B&&B(t),J()},ref:e},F),a.createElement(U,Object(o.a)({appear:!0,in:L,onEnter:Object(m.a)((function(){V(!1)}),O),onEntered:j,onEntering:R,onExit:I,onExited:Object(m.a)((function(){V(!0)}),P),onExiting:T,timeout:W,direction:"top"===u?"down":"up"},q),p||a.createElement(k,Object(o.a)({message:x,action:r},M)))))}));e.a=Object(u.a)((function(t){var e={top:8},r={bottom:8},n={justifyContent:"flex-end"},a={justifyContent:"flex-start"},s={top:24},u={bottom:24},c={right:24},f={left:24},h={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:t.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(o.a)({},e,Object(i.a)({},t.breakpoints.up("sm"),Object(o.a)({},s,h))),anchorOriginBottomCenter:Object(o.a)({},r,Object(i.a)({},t.breakpoints.up("sm"),Object(o.a)({},u,h))),anchorOriginTopRight:Object(o.a)({},e,n,Object(i.a)({},t.breakpoints.up("sm"),Object(o.a)({left:"auto"},s,c))),anchorOriginBottomRight:Object(o.a)({},r,n,Object(i.a)({},t.breakpoints.up("sm"),Object(o.a)({left:"auto"},u,c))),anchorOriginTopLeft:Object(o.a)({},e,a,Object(i.a)({},t.breakpoints.up("sm"),Object(o.a)({right:"auto"},s,f))),anchorOriginBottomLeft:Object(o.a)({},r,a,Object(i.a)({},t.breakpoints.up("sm"),Object(o.a)({right:"auto"},u,f)))}}),{flip:!1,name:"MuiSnackbar"})(M)}]]); 3//# sourceMappingURL=2.606232ce.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.