@dodoex/wallet-web3 0.0.3-1 → 0.0.3-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-70de2c37.js +1 -0
- package/dist/bn-16003306.js +1 -0
- package/dist/cjs/_commonjsHelpers-66ecbaf8.cjs +1 -0
- package/dist/cjs/bn-1bd77809.cjs +1 -0
- package/dist/cjs/elliptic-174586a6.cjs +1 -0
- package/dist/cjs/hash-121fdd2c.cjs +1 -0
- package/dist/cjs/index-23606273.cjs +1 -0
- package/dist/cjs/index-33e57d81.cjs +1 -0
- package/dist/cjs/index-5976e357.cjs +1 -0
- package/dist/cjs/index-6d7369f7.cjs +1 -0
- package/dist/cjs/index-a32c3cfa.cjs +22 -0
- package/dist/cjs/index-e0e60b3b.cjs +3 -0
- package/dist/cjs/index-e948d9e4.cjs +19 -0
- package/dist/cjs/index-f7522058.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/inherits-6d52d55b.cjs +1 -0
- package/dist/cjs/interface-6a2093d7.cjs +1 -0
- package/dist/cjs/node-ponyfill-c08c51bf.cjs +1 -0
- package/dist/cjs/portis-cf05b1f4.cjs +1 -0
- package/dist/cjs/provider-de4ee5b7.cjs +1 -0
- package/dist/cjs/providers/connector/safeGnosis/adapter.d.ts +1 -6
- package/dist/cjs/sha256-21fccd26.cjs +1 -0
- package/dist/cjs/sha3-499f6bea.cjs +10 -0
- package/dist/cjs/uAuth-075fec28.cjs +1 -0
- package/dist/cjs/walletConnect-58449a61.cjs +1 -0
- package/dist/cjs/walletLink-e3b39e1b.cjs +1 -0
- package/dist/elliptic-1100204f.js +1 -0
- package/dist/hash-4b8ad136.js +1 -0
- package/dist/index-5c16deff.js +1 -0
- package/dist/index-632fbf92.js +1 -0
- package/dist/index-6cdefd52.js +22 -0
- package/dist/index-822c6d78.js +1 -0
- package/dist/index-83293e8e.js +2 -0
- package/dist/index-9547c0cf.js +1 -0
- package/dist/index-e3ab6de5.js +1 -0
- package/dist/index-ecbe3d8d.js +19 -0
- package/dist/index.js +1 -1
- package/dist/inherits-e2363129.js +1 -0
- package/dist/interface-36a3c8cf.js +1 -0
- package/dist/node-ponyfill-bda9b4f4.js +1 -0
- package/dist/portis-b3fee0d6.js +1 -0
- package/dist/provider-30d55a46.js +1 -0
- package/dist/providers/connector/safeGnosis/adapter.d.ts +1 -6
- package/dist/sha256-8f7b3565.js +1 -0
- package/dist/sha3-a5661517.js +9 -0
- package/dist/uAuth-343d653d.js +1 -0
- package/dist/walletConnect-ea07b187.js +1 -0
- package/dist/walletLink-39bc8bdc.js +1 -0
- package/package.json +8 -8
- package/dist/cjs/index-1d035f96.cjs +0 -1
- package/dist/cjs/index-20589cad.cjs +0 -1
- package/dist/cjs/index-3c0f322c.cjs +0 -1
- package/dist/cjs/index-57e7ce01.cjs +0 -1
- package/dist/cjs/index-5f524b54.cjs +0 -1
- package/dist/cjs/index-809d42db.cjs +0 -1
- package/dist/cjs/index-9726ade3.cjs +0 -1
- package/dist/cjs/index-a53895dd.cjs +0 -1
- package/dist/cjs/index-b3bae54d.cjs +0 -1
- package/dist/cjs/index-b787ad60.cjs +0 -1
- package/dist/cjs/index-bd507185.cjs +0 -1
- package/dist/cjs/index-e43297ee.cjs +0 -1
- package/dist/cjs/portis-0d0ed336.cjs +0 -1
- package/dist/cjs/portis-139a9e4d.cjs +0 -1
- package/dist/cjs/portis-19c00eba.cjs +0 -1
- package/dist/cjs/portis-2053ea4b.cjs +0 -1
- package/dist/cjs/provider-216c4ecc.cjs +0 -1
- package/dist/cjs/provider-664da1b0.cjs +0 -1
- package/dist/cjs/provider-9bce34ab.cjs +0 -1
- package/dist/cjs/provider-a9b8a548.cjs +0 -1
- package/dist/cjs/uAuth-218d5a4e.cjs +0 -1
- package/dist/cjs/uAuth-384147c3.cjs +0 -1
- package/dist/cjs/uAuth-5d059de5.cjs +0 -1
- package/dist/cjs/uAuth-b52b01e0.cjs +0 -1
- package/dist/cjs/walletConnect-02bcbc5c.cjs +0 -1
- package/dist/cjs/walletConnect-712b3724.cjs +0 -1
- package/dist/cjs/walletConnect-9a4bbbc8.cjs +0 -1
- package/dist/cjs/walletConnect-b6ac4960.cjs +0 -1
- package/dist/cjs/walletLink-2cd8be6e.cjs +0 -1
- package/dist/cjs/walletLink-349e1bf5.cjs +0 -1
- package/dist/cjs/walletLink-92f211ff.cjs +0 -1
- package/dist/cjs/walletLink-f4cbd510.cjs +0 -1
- package/dist/index-4025ab08.js +0 -1
- package/dist/index-5ced3e7a.js +0 -1
- package/dist/index-677159b8.js +0 -1
- package/dist/index-6b9ad9a8.js +0 -1
- package/dist/index-6f08dc42.js +0 -1
- package/dist/index-829e82f9.js +0 -1
- package/dist/index-853b673b.js +0 -1
- package/dist/index-8dfaf647.js +0 -1
- package/dist/index-be16dd4e.js +0 -1
- package/dist/index-be47cca9.js +0 -1
- package/dist/index-c7eb0cf4.js +0 -1
- package/dist/index-fa3d2d50.js +0 -1
- package/dist/portis-32658178.js +0 -1
- package/dist/portis-5cb50e65.js +0 -1
- package/dist/portis-db858db8.js +0 -1
- package/dist/portis-fbb3c228.js +0 -1
- package/dist/provider-3fe99d2c.js +0 -1
- package/dist/provider-9ab2eb6e.js +0 -1
- package/dist/provider-e2314677.js +0 -1
- package/dist/provider-f7f5cb2b.js +0 -1
- package/dist/uAuth-64c3dda3.js +0 -1
- package/dist/uAuth-9f7c98e7.js +0 -1
- package/dist/uAuth-ddaae2b5.js +0 -1
- package/dist/uAuth-e4b5c839.js +0 -1
- package/dist/walletConnect-1a1a1062.js +0 -1
- package/dist/walletConnect-2b8f3354.js +0 -1
- package/dist/walletConnect-4c410280.js +0 -1
- package/dist/walletConnect-fb4a3e3c.js +0 -1
- package/dist/walletLink-5b9fdf98.js +0 -1
- package/dist/walletLink-98193680.js +0 -1
- package/dist/walletLink-986484a1.js +0 -1
- package/dist/walletLink-cf8da449.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./bn-16003306.js";import{m as f,h as d}from"./hash-4b8ad136.js";import{i as t}from"./inherits-e2363129.js";var c={},a="6.5.4",r={},b={};!function(e){var f=b;function d(e){return 1===e.length?"0"+e:e}function t(e){for(var f="",t=0;t<e.length;t++)f+=d(e[t].toString(16));return f}f.toArray=function(e,f){if(Array.isArray(e))return e.slice();if(!e)return[];var d=[];if("string"!=typeof e){for(var t=0;t<e.length;t++)d[t]=0|e[t];return d}if("hex"===f){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(t=0;t<e.length;t+=2)d.push(parseInt(e[t]+e[t+1],16))}else for(t=0;t<e.length;t++){var c=e.charCodeAt(t),a=c>>8,r=255&c;a?d.push(a,r):d.push(r)}return d},f.zero2=d,f.toHex=t,f.encode=function(e,f){return"hex"===f?t(e):e}}(),function(d){var t=r,c=e.exports,a=f,i=b;t.assert=a,t.toArray=i.toArray,t.zero2=i.zero2,t.toHex=i.toHex,t.encode=i.encode,t.getNAF=function(e,f,d){var t=new Array(Math.max(e.bitLength(),d)+1);t.fill(0);for(var c=1<<f+1,a=e.clone(),r=0;r<t.length;r++){var b,i=a.andln(c-1);a.isOdd()?(b=i>(c>>1)-1?(c>>1)-i:i,a.isubn(b)):b=0,t[r]=b,a.iushrn(1)}return t},t.getJSF=function(e,f){var d=[[],[]];e=e.clone(),f=f.clone();for(var t,c=0,a=0;e.cmpn(-c)>0||f.cmpn(-a)>0;){var r,b,i=e.andln(3)+c&3,n=f.andln(3)+a&3;3===i&&(i=-1),3===n&&(n=-1),r=0==(1&i)?0:3!==(t=e.andln(7)+c&7)&&5!==t||2!==n?i:-i,d[0].push(r),b=0==(1&n)?0:3!==(t=f.andln(7)+a&7)&&5!==t||2!==i?n:-n,d[1].push(b),2*c===r+1&&(c=1-c),2*a===b+1&&(a=1-a),e.iushrn(1),f.iushrn(1)}return d},t.cachedProperty=function(e,f,d){var t="_"+f;e.prototype[f]=function(){return void 0!==this[t]?this[t]:this[t]=d.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new c(e,"hex","le")}}();var i,n={exports:{}};function s(e){this.rand=e}if(n.exports=function(e){return i||(i=new s(null)),i.generate(e)},n.exports.Rand=s,s.prototype.generate=function(e){return this._rand(e)},s.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var f=new Uint8Array(e),d=0;d<f.length;d++)f[d]=this.rand.getByte();return f},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?s.prototype._rand=function(e){var f=new Uint8Array(e);return self.crypto.getRandomValues(f),f}:self.msCrypto&&self.msCrypto.getRandomValues?s.prototype._rand=function(e){var f=new Uint8Array(e);return self.msCrypto.getRandomValues(f),f}:"object"==typeof window&&(s.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=require("crypto");if("function"!=typeof o.randomBytes)throw new Error("Not supported");s.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}var u={},h=e.exports,p=r,l=p.getNAF,v=p.getJSF,y=p.assert;function m(e,f){this.type=e,this.p=new h(f.p,16),this.red=f.prime?h.red(f.prime):h.mont(this.p),this.zero=new h(0).toRed(this.red),this.one=new h(1).toRed(this.red),this.two=new h(2).toRed(this.red),this.n=f.n&&new h(f.n,16),this.g=f.g&&this.pointFromJSON(f.g,f.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 d=this.n&&this.p.div(this.n);!d||d.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var g=m;function S(e,f){this.curve=e,this.type=f,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(e,f){y(e.precomputed);var d=e._getDoubles(),t=l(f,1,this._bitLength),c=(1<<d.step+1)-(d.step%2==0?2:1);c/=3;var a,r,b=[];for(a=0;a<t.length;a+=d.step){r=0;for(var i=a+d.step-1;i>=a;i--)r=(r<<1)+t[i];b.push(r)}for(var n=this.jpoint(null,null,null),s=this.jpoint(null,null,null),o=c;o>0;o--){for(a=0;a<b.length;a++)(r=b[a])===o?s=s.mixedAdd(d.points[a]):r===-o&&(s=s.mixedAdd(d.points[a].neg()));n=n.add(s)}return n.toP()},m.prototype._wnafMul=function(e,f){var d=4,t=e._getNAFPoints(d);d=t.wnd;for(var c=t.points,a=l(f,d,this._bitLength),r=this.jpoint(null,null,null),b=a.length-1;b>=0;b--){for(var i=0;b>=0&&0===a[b];b--)i++;if(b>=0&&i++,r=r.dblp(i),b<0)break;var n=a[b];y(0!==n),r="affine"===e.type?n>0?r.mixedAdd(c[n-1>>1]):r.mixedAdd(c[-n-1>>1].neg()):n>0?r.add(c[n-1>>1]):r.add(c[-n-1>>1].neg())}return"affine"===e.type?r.toP():r},m.prototype._wnafMulAdd=function(e,f,d,t,c){var a,r,b,i=this._wnafT1,n=this._wnafT2,s=this._wnafT3,o=0;for(a=0;a<t;a++){var u=(b=f[a])._getNAFPoints(e);i[a]=u.wnd,n[a]=u.points}for(a=t-1;a>=1;a-=2){var h=a-1,p=a;if(1===i[h]&&1===i[p]){var y=[f[h],null,null,f[p]];0===f[h].y.cmp(f[p].y)?(y[1]=f[h].add(f[p]),y[2]=f[h].toJ().mixedAdd(f[p].neg())):0===f[h].y.cmp(f[p].y.redNeg())?(y[1]=f[h].toJ().mixedAdd(f[p]),y[2]=f[h].add(f[p].neg())):(y[1]=f[h].toJ().mixedAdd(f[p]),y[2]=f[h].toJ().mixedAdd(f[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=v(d[h],d[p]);for(o=Math.max(g[0].length,o),s[h]=new Array(o),s[p]=new Array(o),r=0;r<o;r++){var S=0|g[0][r],A=0|g[1][r];s[h][r]=m[3*(S+1)+(A+1)],s[p][r]=0,n[h]=y}}else s[h]=l(d[h],i[h],this._bitLength),s[p]=l(d[p],i[p],this._bitLength),o=Math.max(s[h].length,o),o=Math.max(s[p].length,o)}var w=this.jpoint(null,null,null),I=this._wnafT4;for(a=o;a>=0;a--){for(var x=0;a>=0;){var M=!0;for(r=0;r<t;r++)I[r]=0|s[r][a],0!==I[r]&&(M=!1);if(!M)break;x++,a--}if(a>=0&&x++,w=w.dblp(x),a<0)break;for(r=0;r<t;r++){var _=I[r];0!==_&&(_>0?b=n[r][_-1>>1]:_<0&&(b=n[r][-_-1>>1].neg()),w="affine"===b.type?w.mixedAdd(b):w.add(b))}}for(a=0;a<t;a++)n[a]=null;return c?w:w.toP()},m.BasePoint=S,S.prototype.eq=function(){throw new Error("Not implemented")},S.prototype.validate=function(){return this.curve.validate(this)},m.prototype.decodePoint=function(e,f){e=p.toArray(e,f);var d=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*d)return 6===e[0]?y(e[e.length-1]%2==0):7===e[0]&&y(e[e.length-1]%2==1),this.point(e.slice(1,1+d),e.slice(1+d,1+2*d));if((2===e[0]||3===e[0])&&e.length-1===d)return this.pointFromX(e.slice(1,1+d),3===e[0]);throw new Error("Unknown point format")},S.prototype.encodeCompressed=function(e){return this.encode(e,!0)},S.prototype._encode=function(e){var f=this.curve.p.byteLength(),d=this.getX().toArray("be",f);return e?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",f))},S.prototype.encode=function(e,f){return p.encode(this._encode(f),e)},S.prototype.precompute=function(e){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,e),f.beta=this._getBeta(),this.precomputed=f,this},S.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((e.bitLength()+1)/f.step)},S.prototype._getDoubles=function(e,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],t=this,c=0;c<f;c+=e){for(var a=0;a<e;a++)t=t.dbl();d.push(t)}return{step:e,points:d}},S.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],d=(1<<e)-1,t=1===d?null:this.dbl(),c=1;c<d;c++)f[c]=f[c-1].add(t);return{wnd:e,points:f}},S.prototype._getBeta=function(){return null},S.prototype.dblp=function(e){for(var f=this,d=0;d<e;d++)f=f.dbl();return f};var A=r,w=e.exports,I=t.exports,x=g,M=A.assert;function _(e){x.call(this,"short",e),this.a=new w(e.a,16).toRed(this.red),this.b=new w(e.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(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}I(_,x);var z=_;function q(e,f,d,t){x.BasePoint.call(this,e,"affine"),null===f&&null===d?(this.x=null,this.y=null,this.inf=!0):(this.x=new w(f,16),this.y=new w(d,16),t&&(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 R(e,f,d,t){x.BasePoint.call(this,e,"jacobian"),null===f&&null===d&&null===t?(this.x=this.curve.one,this.y=this.curve.one,this.z=new w(0)):(this.x=new w(f,16),this.y=new w(d,16),this.z=new w(t,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}_.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var f,d;if(e.beta)f=new w(e.beta,16).toRed(this.red);else{var t=this._getEndoRoots(this.p);f=(f=t[0].cmp(t[1])<0?t[0]:t[1]).toRed(this.red)}if(e.lambda)d=new w(e.lambda,16);else{var c=this._getEndoRoots(this.n);0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(f))?d=c[0]:(d=c[1],M(0===this.g.mul(d).x.cmp(this.g.x.redMul(f))))}return{beta:f,lambda:d,basis:e.basis?e.basis.map((function(e){return{a:new w(e.a,16),b:new w(e.b,16)}})):this._getEndoBasis(d)}}},_.prototype._getEndoRoots=function(e){var f=e===this.p?this.red:w.mont(e),d=new w(2).toRed(f).redInvm(),t=d.redNeg(),c=new w(3).toRed(f).redNeg().redSqrt().redMul(d);return[t.redAdd(c).fromRed(),t.redSub(c).fromRed()]},_.prototype._getEndoBasis=function(e){for(var f,d,t,c,a,r,b,i,n,s=this.n.ushrn(Math.floor(this.n.bitLength()/2)),o=e,u=this.n.clone(),h=new w(1),p=new w(0),l=new w(0),v=new w(1),y=0;0!==o.cmpn(0);){var m=u.div(o);i=u.sub(m.mul(o)),n=l.sub(m.mul(h));var g=v.sub(m.mul(p));if(!t&&i.cmp(s)<0)f=b.neg(),d=h,t=i.neg(),c=n;else if(t&&2==++y)break;b=i,u=o,o=i,l=h,h=n,v=p,p=g}a=i.neg(),r=n;var S=t.sqr().add(c.sqr());return a.sqr().add(r.sqr()).cmp(S)>=0&&(a=f,r=d),t.negative&&(t=t.neg(),c=c.neg()),a.negative&&(a=a.neg(),r=r.neg()),[{a:t,b:c},{a:a,b:r}]},_.prototype._endoSplit=function(e){var f=this.endo.basis,d=f[0],t=f[1],c=t.b.mul(e).divRound(this.n),a=d.b.neg().mul(e).divRound(this.n),r=c.mul(d.a),b=a.mul(t.a),i=c.mul(d.b),n=a.mul(t.b);return{k1:e.sub(r).sub(b),k2:i.add(n).neg()}},_.prototype.pointFromX=function(e,f){(e=new w(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),t=d.redSqrt();if(0!==t.redSqr().redSub(d).cmp(this.zero))throw new Error("invalid point");var c=t.fromRed().isOdd();return(f&&!c||!f&&c)&&(t=t.redNeg()),this.point(e,t)},_.prototype.validate=function(e){if(e.inf)return!0;var f=e.x,d=e.y,t=this.a.redMul(f),c=f.redSqr().redMul(f).redIAdd(t).redIAdd(this.b);return 0===d.redSqr().redISub(c).cmpn(0)},_.prototype._endoWnafMulAdd=function(e,f,d){for(var t=this._endoWnafT1,c=this._endoWnafT2,a=0;a<e.length;a++){var r=this._endoSplit(f[a]),b=e[a],i=b._getBeta();r.k1.negative&&(r.k1.ineg(),b=b.neg(!0)),r.k2.negative&&(r.k2.ineg(),i=i.neg(!0)),t[2*a]=b,t[2*a+1]=i,c[2*a]=r.k1,c[2*a+1]=r.k2}for(var n=this._wnafMulAdd(1,t,c,2*a,d),s=0;s<2*a;s++)t[s]=null,c[s]=null;return n},I(q,x.BasePoint),_.prototype.point=function(e,f,d){return new q(this,e,f,d)},_.prototype.pointFromJSON=function(e,f){return q.fromJSON(this,e,f)},q.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var f=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var d=this.curve,t=function(e){return d.point(e.x.redMul(d.endo.beta),e.y)};e.beta=f,f.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}}return f}},q.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]},q.fromJSON=function(e,f,d){"string"==typeof f&&(f=JSON.parse(f));var t=e.point(f[0],f[1],d);if(!f[2])return t;function c(f){return e.point(f[0],f[1],d)}var a=f[2];return t.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[t].concat(a.doubles.points.map(c))},naf:a.naf&&{wnd:a.naf.wnd,points:[t].concat(a.naf.points.map(c))}},t},q.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)+">"},q.prototype.isInfinity=function(){return this.inf},q.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var f=this.y.redSub(e.y);0!==f.cmpn(0)&&(f=f.redMul(this.x.redSub(e.x).redInvm()));var d=f.redSqr().redISub(this.x).redISub(e.x),t=f.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,t)},q.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var f=this.curve.a,d=this.x.redSqr(),t=e.redInvm(),c=d.redAdd(d).redIAdd(d).redIAdd(f).redMul(t),a=c.redSqr().redISub(this.x.redAdd(this.x)),r=c.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,r)},q.prototype.getX=function(){return this.x.fromRed()},q.prototype.getY=function(){return this.y.fromRed()},q.prototype.mul=function(e){return e=new w(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},q.prototype.mulAdd=function(e,f,d){var t=[this,f],c=[e,d];return this.curve.endo?this.curve._endoWnafMulAdd(t,c):this.curve._wnafMulAdd(1,t,c,2)},q.prototype.jmulAdd=function(e,f,d){var t=[this,f],c=[e,d];return this.curve.endo?this.curve._endoWnafMulAdd(t,c,!0):this.curve._wnafMulAdd(1,t,c,2,!0)},q.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},q.prototype.neg=function(e){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var d=this.precomputed,t=function(e){return e.neg()};f.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(t)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(t)}}}return f},q.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},I(R,x.BasePoint),_.prototype.jpoint=function(e,f,d){return new R(this,e,f,d)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),f=e.redSqr(),d=this.x.redMul(f),t=this.y.redMul(f).redMul(e);return this.curve.point(d,t)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var f=e.z.redSqr(),d=this.z.redSqr(),t=this.x.redMul(f),c=e.x.redMul(d),a=this.y.redMul(f.redMul(e.z)),r=e.y.redMul(d.redMul(this.z)),b=t.redSub(c),i=a.redSub(r);if(0===b.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var n=b.redSqr(),s=n.redMul(b),o=t.redMul(n),u=i.redSqr().redIAdd(s).redISub(o).redISub(o),h=i.redMul(o.redISub(u)).redISub(a.redMul(s)),p=this.z.redMul(e.z).redMul(b);return this.curve.jpoint(u,h,p)},R.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var f=this.z.redSqr(),d=this.x,t=e.x.redMul(f),c=this.y,a=e.y.redMul(f).redMul(this.z),r=d.redSub(t),b=c.redSub(a);if(0===r.cmpn(0))return 0!==b.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var i=r.redSqr(),n=i.redMul(r),s=d.redMul(i),o=b.redSqr().redIAdd(n).redISub(s).redISub(s),u=b.redMul(s.redISub(o)).redISub(c.redMul(n)),h=this.z.redMul(r);return this.curve.jpoint(o,u,h)},R.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var f;if(this.curve.zeroA||this.curve.threeA){var d=this;for(f=0;f<e;f++)d=d.dbl();return d}var t=this.curve.a,c=this.curve.tinv,a=this.x,r=this.y,b=this.z,i=b.redSqr().redSqr(),n=r.redAdd(r);for(f=0;f<e;f++){var s=a.redSqr(),o=n.redSqr(),u=o.redSqr(),h=s.redAdd(s).redIAdd(s).redIAdd(t.redMul(i)),p=a.redMul(o),l=h.redSqr().redISub(p.redAdd(p)),v=p.redISub(l),y=h.redMul(v);y=y.redIAdd(y).redISub(u);var m=n.redMul(b);f+1<e&&(i=i.redMul(u)),a=l,b=m,n=y}return this.curve.jpoint(a,n.redMul(c),b)},R.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},R.prototype._zeroDbl=function(){var e,f,d;if(this.zOne){var t=this.x.redSqr(),c=this.y.redSqr(),a=c.redSqr(),r=this.x.redAdd(c).redSqr().redISub(t).redISub(a);r=r.redIAdd(r);var b=t.redAdd(t).redIAdd(t),i=b.redSqr().redISub(r).redISub(r),n=a.redIAdd(a);n=(n=n.redIAdd(n)).redIAdd(n),e=i,f=b.redMul(r.redISub(i)).redISub(n),d=this.y.redAdd(this.y)}else{var s=this.x.redSqr(),o=this.y.redSqr(),u=o.redSqr(),h=this.x.redAdd(o).redSqr().redISub(s).redISub(u);h=h.redIAdd(h);var p=s.redAdd(s).redIAdd(s),l=p.redSqr(),v=u.redIAdd(u);v=(v=v.redIAdd(v)).redIAdd(v),e=l.redISub(h).redISub(h),f=p.redMul(h.redISub(e)).redISub(v),d=(d=this.y.redMul(this.z)).redIAdd(d)}return this.curve.jpoint(e,f,d)},R.prototype._threeDbl=function(){var e,f,d;if(this.zOne){var t=this.x.redSqr(),c=this.y.redSqr(),a=c.redSqr(),r=this.x.redAdd(c).redSqr().redISub(t).redISub(a);r=r.redIAdd(r);var b=t.redAdd(t).redIAdd(t).redIAdd(this.curve.a),i=b.redSqr().redISub(r).redISub(r);e=i;var n=a.redIAdd(a);n=(n=n.redIAdd(n)).redIAdd(n),f=b.redMul(r.redISub(i)).redISub(n),d=this.y.redAdd(this.y)}else{var s=this.z.redSqr(),o=this.y.redSqr(),u=this.x.redMul(o),h=this.x.redSub(s).redMul(this.x.redAdd(s));h=h.redAdd(h).redIAdd(h);var p=u.redIAdd(u),l=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(l),d=this.y.redAdd(this.z).redSqr().redISub(o).redISub(s);var v=o.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),f=h.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,f,d)},R.prototype._dbl=function(){var e=this.curve.a,f=this.x,d=this.y,t=this.z,c=t.redSqr().redSqr(),a=f.redSqr(),r=d.redSqr(),b=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(c)),i=f.redAdd(f),n=(i=i.redIAdd(i)).redMul(r),s=b.redSqr().redISub(n.redAdd(n)),o=n.redISub(s),u=r.redSqr();u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var h=b.redMul(o).redISub(u),p=d.redAdd(d).redMul(t);return this.curve.jpoint(s,h,p)},R.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr(),t=f.redSqr(),c=e.redAdd(e).redIAdd(e),a=c.redSqr(),r=this.x.redAdd(f).redSqr().redISub(e).redISub(t),b=(r=(r=(r=r.redIAdd(r)).redAdd(r).redIAdd(r)).redISub(a)).redSqr(),i=t.redIAdd(t);i=(i=(i=i.redIAdd(i)).redIAdd(i)).redIAdd(i);var n=c.redIAdd(r).redSqr().redISub(a).redISub(b).redISub(i),s=f.redMul(n);s=(s=s.redIAdd(s)).redIAdd(s);var o=this.x.redMul(b).redISub(s);o=(o=o.redIAdd(o)).redIAdd(o);var u=this.y.redMul(n.redMul(i.redISub(n)).redISub(r.redMul(b)));u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var h=this.z.redAdd(r).redSqr().redISub(d).redISub(b);return this.curve.jpoint(o,u,h)},R.prototype.mul=function(e,f){return e=new w(e,f),this.curve._wnafMul(this,e)},R.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var f=this.z.redSqr(),d=e.z.redSqr();if(0!==this.x.redMul(d).redISub(e.x.redMul(f)).cmpn(0))return!1;var t=f.redMul(this.z),c=d.redMul(e.z);return 0===this.y.redMul(c).redISub(e.y.redMul(t)).cmpn(0)},R.prototype.eqXToP=function(e){var f=this.z.redSqr(),d=e.toRed(this.curve.red).redMul(f);if(0===this.x.cmp(d))return!0;for(var t=e.clone(),c=this.curve.redN.redMul(f);;){if(t.iadd(this.curve.n),t.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(c),0===this.x.cmp(d))return!0}},R.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)+">"},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var P=e.exports,E=t.exports,N=g,j=r;function k(e){N.call(this,"mont",e),this.a=new P(e.a,16).toRed(this.red),this.b=new P(e.b,16).toRed(this.red),this.i4=new P(4).toRed(this.red).redInvm(),this.two=new P(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}E(k,N);var L=k;function O(e,f,d){N.BasePoint.call(this,e,"projective"),null===f&&null===d?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new P(f,16),this.z=new P(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}k.prototype.validate=function(e){var f=e.normalize().x,d=f.redSqr(),t=d.redMul(f).redAdd(d.redMul(this.a)).redAdd(f);return 0===t.redSqrt().redSqr().cmp(t)},E(O,N.BasePoint),k.prototype.decodePoint=function(e,f){return this.point(j.toArray(e,f),1)},k.prototype.point=function(e,f){return new O(this,e,f)},k.prototype.pointFromJSON=function(e){return O.fromJSON(this,e)},O.prototype.precompute=function(){},O.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},O.fromJSON=function(e,f){return new O(e,f[0],f[1]||e.one)},O.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)+">"},O.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},O.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),f=this.x.redSub(this.z).redSqr(),d=e.redSub(f),t=e.redMul(f),c=d.redMul(f.redAdd(this.curve.a24.redMul(d)));return this.curve.point(t,c)},O.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},O.prototype.diffAdd=function(e,f){var d=this.x.redAdd(this.z),t=this.x.redSub(this.z),c=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(d),r=c.redMul(t),b=f.z.redMul(a.redAdd(r).redSqr()),i=f.x.redMul(a.redISub(r).redSqr());return this.curve.point(b,i)},O.prototype.mul=function(e){for(var f=e.clone(),d=this,t=this.curve.point(null,null),c=[];0!==f.cmpn(0);f.iushrn(1))c.push(f.andln(1));for(var a=c.length-1;a>=0;a--)0===c[a]?(d=d.diffAdd(t,this),t=t.dbl()):(t=d.diffAdd(t,this),d=d.dbl());return t},O.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},O.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},O.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},O.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},O.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var B=r,F=e.exports,C=t.exports,J=g,T=B.assert;function X(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,J.call(this,"edwards",e),this.a=new F(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new F(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new F(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),T(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}C(X,J);var D=X;function V(e,f,d,t,c){J.BasePoint.call(this,e,"projective"),null===f&&null===d&&null===t?(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 F(f,16),this.y=new F(d,16),this.z=t?new F(t,16):this.curve.one,this.t=c&&new F(c,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()))))}X.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},X.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},X.prototype.jpoint=function(e,f,d,t){return this.point(e,f,d,t)},X.prototype.pointFromX=function(e,f){(e=new F(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr(),t=this.c2.redSub(this.a.redMul(d)),c=this.one.redSub(this.c2.redMul(this.d).redMul(d)),a=t.redMul(c.redInvm()),r=a.redSqrt();if(0!==r.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var b=r.fromRed().isOdd();return(f&&!b||!f&&b)&&(r=r.redNeg()),this.point(e,r)},X.prototype.pointFromY=function(e,f){(e=new F(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr(),t=d.redSub(this.c2),c=d.redMul(this.d).redMul(this.c2).redSub(this.a),a=t.redMul(c.redInvm());if(0===a.cmp(this.zero)){if(f)throw new Error("invalid point");return this.point(this.zero,e)}var r=a.redSqrt();if(0!==r.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return r.fromRed().isOdd()!==f&&(r=r.redNeg()),this.point(r,e)},X.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var f=e.x.redSqr(),d=e.y.redSqr(),t=f.redMul(this.a).redAdd(d),c=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(d)));return 0===t.cmp(c)},C(V,J.BasePoint),X.prototype.pointFromJSON=function(e){return V.fromJSON(this,e)},X.prototype.point=function(e,f,d,t){return new V(this,e,f,d,t)},V.fromJSON=function(e,f){return new V(e,f[0],f[1],f[2])},V.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)+">"},V.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},V.prototype._extDbl=function(){var e=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var t=this.curve._mulA(e),c=this.x.redAdd(this.y).redSqr().redISub(e).redISub(f),a=t.redAdd(f),r=a.redSub(d),b=t.redSub(f),i=c.redMul(r),n=a.redMul(b),s=c.redMul(b),o=r.redMul(a);return this.curve.point(i,n,o,s)},V.prototype._projDbl=function(){var e,f,d,t,c,a,r=this.x.redAdd(this.y).redSqr(),b=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var n=(t=this.curve._mulA(b)).redAdd(i);this.zOne?(e=r.redSub(b).redSub(i).redMul(n.redSub(this.curve.two)),f=n.redMul(t.redSub(i)),d=n.redSqr().redSub(n).redSub(n)):(c=this.z.redSqr(),a=n.redSub(c).redISub(c),e=r.redSub(b).redISub(i).redMul(a),f=n.redMul(t.redSub(i)),d=n.redMul(a))}else t=b.redAdd(i),c=this.curve._mulC(this.z).redSqr(),a=t.redSub(c).redSub(c),e=this.curve._mulC(r.redISub(t)).redMul(a),f=this.curve._mulC(t).redMul(b.redISub(i)),d=t.redMul(a);return this.curve.point(e,f,d)},V.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},V.prototype._extAdd=function(e){var f=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),d=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),t=this.t.redMul(this.curve.dd).redMul(e.t),c=this.z.redMul(e.z.redAdd(e.z)),a=d.redSub(f),r=c.redSub(t),b=c.redAdd(t),i=d.redAdd(f),n=a.redMul(r),s=b.redMul(i),o=a.redMul(i),u=r.redMul(b);return this.curve.point(n,s,u,o)},V.prototype._projAdd=function(e){var f,d,t=this.z.redMul(e.z),c=t.redSqr(),a=this.x.redMul(e.x),r=this.y.redMul(e.y),b=this.curve.d.redMul(a).redMul(r),i=c.redSub(b),n=c.redAdd(b),s=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(r),o=t.redMul(i).redMul(s);return this.curve.twisted?(f=t.redMul(n).redMul(r.redSub(this.curve._mulA(a))),d=i.redMul(n)):(f=t.redMul(n).redMul(r.redSub(a)),d=this.curve._mulC(i).redMul(n)),this.curve.point(o,f,d)},V.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},V.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},V.prototype.mulAdd=function(e,f,d){return this.curve._wnafMulAdd(1,[this,f],[e,d],2,!1)},V.prototype.jmulAdd=function(e,f,d){return this.curve._wnafMulAdd(1,[this,f],[e,d],2,!0)},V.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},V.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},V.prototype.getX=function(){return this.normalize(),this.x.fromRed()},V.prototype.getY=function(){return this.normalize(),this.y.fromRed()},V.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},V.prototype.eqXToP=function(e){var f=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(f))return!0;for(var d=e.clone(),t=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(t),0===this.x.cmp(f))return!0}},V.prototype.toP=V.prototype.normalize,V.prototype.mixedAdd=V.prototype.add,function(e){var f=e;f.base=g,f.short=z,f.mont=L,f.edwards=D}(u);var K,Y,U={};!function(e){var f,t=U,c=d,a=u,b=r.assert;function i(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,b(this.g.validate(),"Invalid curve"),b(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function n(e,f){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var d=new i(f);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:d}),d}})}t.PresetCurve=i,n("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:c.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),n("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:c.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),n("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:c.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),n("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:c.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),n("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:c.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),n("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c.sha256,gRed:!1,g:["9"]}),n("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:c.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{f=Y?K:(Y=1,K={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"]]}})}catch(e){f=void 0}n("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:c.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",f]})}();var W=d,H=b,G=f;function Q(e){if(!(this instanceof Q))return new Q(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var f=H.toArray(e.entropy,e.entropyEnc||"hex"),d=H.toArray(e.nonce,e.nonceEnc||"hex"),t=H.toArray(e.pers,e.persEnc||"hex");G(f.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(f,d,t)}var Z=Q;Q.prototype._init=function(e,f,d){var t=e.concat(f).concat(d);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var c=0;c<this.V.length;c++)this.K[c]=0,this.V[c]=1;this._update(t),this._reseed=1,this.reseedInterval=281474976710656},Q.prototype._hmac=function(){return new W.hmac(this.hash,this.K)},Q.prototype._update=function(e){var f=this._hmac().update(this.V).update([0]);e&&(f=f.update(e)),this.K=f.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},Q.prototype.reseed=function(e,f,d,t){"string"!=typeof f&&(t=d,d=f,f=null),e=H.toArray(e,f),d=H.toArray(d,t),G(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(d||[])),this._reseed=1},Q.prototype.generate=function(e,f,d,t){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof f&&(t=d,d=f,f=null),d&&(d=H.toArray(d,t||"hex"),this._update(d));for(var c=[];c.length<e;)this.V=this._hmac().update(this.V).digest(),c=c.concat(this.V);var a=c.slice(0,e);return this._update(d),this._reseed++,H.encode(a,f)};var $=e.exports,ee=r.assert;function fe(e,f){this.ec=e,this.priv=null,this.pub=null,f.priv&&this._importPrivate(f.priv,f.privEnc),f.pub&&this._importPublic(f.pub,f.pubEnc)}var de=fe;fe.fromPublic=function(e,f,d){return f instanceof fe?f:new fe(e,{pub:f,pubEnc:d})},fe.fromPrivate=function(e,f,d){return f instanceof fe?f:new fe(e,{priv:f,privEnc:d})},fe.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}},fe.prototype.getPublic=function(e,f){return"string"==typeof e&&(f=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),f?this.pub.encode(f,e):this.pub},fe.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},fe.prototype._importPrivate=function(e,f){this.priv=new $(e,f||16),this.priv=this.priv.umod(this.ec.curve.n)},fe.prototype._importPublic=function(e,f){if(e.x||e.y)return"mont"===this.ec.curve.type?ee(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||ee(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,f)},fe.prototype.derive=function(e){return e.validate()||ee(e.validate(),"public point not validated"),e.mul(this.priv).getX()},fe.prototype.sign=function(e,f,d){return this.ec.sign(e,this,f,d)},fe.prototype.verify=function(e,f){return this.ec.verify(e,f,this)},fe.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var te=e.exports,ce=r,ae=ce.assert;function re(e,f){if(e instanceof re)return e;this._importDER(e,f)||(ae(e.r&&e.s,"Signature without r or s"),this.r=new te(e.r,16),this.s=new te(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var be=re;function ie(){this.place=0}function ne(e,f){var d=e[f.place++];if(!(128&d))return d;var t=15&d;if(0===t||t>4)return!1;for(var c=0,a=0,r=f.place;a<t;a++,r++)c<<=8,c|=e[r],c>>>=0;return!(c<=127)&&(f.place=r,c)}function se(e){for(var f=0,d=e.length-1;!e[f]&&!(128&e[f+1])&&f<d;)f++;return 0===f?e:e.slice(f)}function oe(e,f){if(f<128)e.push(f);else{var d=1+(Math.log(f)/Math.LN2>>>3);for(e.push(128|d);--d;)e.push(f>>>(d<<3)&255);e.push(f)}}re.prototype._importDER=function(e,f){e=ce.toArray(e,f);var d=new ie;if(48!==e[d.place++])return!1;var t=ne(e,d);if(!1===t)return!1;if(t+d.place!==e.length)return!1;if(2!==e[d.place++])return!1;var c=ne(e,d);if(!1===c)return!1;var a=e.slice(d.place,c+d.place);if(d.place+=c,2!==e[d.place++])return!1;var r=ne(e,d);if(!1===r)return!1;if(e.length!==r+d.place)return!1;var b=e.slice(d.place,r+d.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===b[0]){if(!(128&b[1]))return!1;b=b.slice(1)}return this.r=new te(a),this.s=new te(b),this.recoveryParam=null,!0},re.prototype.toDER=function(e){var f=this.r.toArray(),d=this.s.toArray();for(128&f[0]&&(f=[0].concat(f)),128&d[0]&&(d=[0].concat(d)),f=se(f),d=se(d);!(d[0]||128&d[1]);)d=d.slice(1);var t=[2];oe(t,f.length),(t=t.concat(f)).push(2),oe(t,d.length);var c=t.concat(d),a=[48];return oe(a,c.length),a=a.concat(c),ce.encode(a,e)};var ue=e.exports,he=Z,pe=r,le=U,ve=n.exports,ye=pe.assert,me=de,ge=be;function Se(e){if(!(this instanceof Se))return new Se(e);"string"==typeof e&&(ye(Object.prototype.hasOwnProperty.call(le,e),"Unknown curve "+e),e=le[e]),e instanceof le.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Ae=Se;Se.prototype.keyPair=function(e){return new me(this,e)},Se.prototype.keyFromPrivate=function(e,f){return me.fromPrivate(this,e,f)},Se.prototype.keyFromPublic=function(e,f){return me.fromPublic(this,e,f)},Se.prototype.genKeyPair=function(e){e||(e={});for(var f=new he({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ve(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),d=this.n.byteLength(),t=this.n.sub(new ue(2));;){var c=new ue(f.generate(d));if(!(c.cmp(t)>0))return c.iaddn(1),this.keyFromPrivate(c)}},Se.prototype._truncateToN=function(e,f){var d=8*e.byteLength()-this.n.bitLength();return d>0&&(e=e.ushrn(d)),!f&&e.cmp(this.n)>=0?e.sub(this.n):e},Se.prototype.sign=function(e,f,d,t){"object"==typeof d&&(t=d,d=null),t||(t={}),f=this.keyFromPrivate(f,d),e=this._truncateToN(new ue(e,16));for(var c=this.n.byteLength(),a=f.getPrivate().toArray("be",c),r=e.toArray("be",c),b=new he({hash:this.hash,entropy:a,nonce:r,pers:t.pers,persEnc:t.persEnc||"utf8"}),i=this.n.sub(new ue(1)),n=0;;n++){var s=t.k?t.k(n):new ue(b.generate(this.n.byteLength()));if(!((s=this._truncateToN(s,!0)).cmpn(1)<=0||s.cmp(i)>=0)){var o=this.g.mul(s);if(!o.isInfinity()){var u=o.getX(),h=u.umod(this.n);if(0!==h.cmpn(0)){var p=s.invm(this.n).mul(h.mul(f.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var l=(o.getY().isOdd()?1:0)|(0!==u.cmp(h)?2:0);return t.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),l^=1),new ge({r:h,s:p,recoveryParam:l})}}}}}},Se.prototype.verify=function(e,f,d,t){e=this._truncateToN(new ue(e,16)),d=this.keyFromPublic(d,t);var c=(f=new ge(f,"hex")).r,a=f.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var r,b=a.invm(this.n),i=b.mul(e).umod(this.n),n=b.mul(c).umod(this.n);return this.curve._maxwellTrick?!(r=this.g.jmulAdd(i,d.getPublic(),n)).isInfinity()&&r.eqXToP(c):!(r=this.g.mulAdd(i,d.getPublic(),n)).isInfinity()&&0===r.getX().umod(this.n).cmp(c)},Se.prototype.recoverPubKey=function(e,f,d,t){ye((3&d)===d,"The recovery param is more than two bits"),f=new ge(f,t);var c=this.n,a=new ue(e),r=f.r,b=f.s,i=1&d,n=d>>1;if(r.cmp(this.curve.p.umod(this.curve.n))>=0&&n)throw new Error("Unable to find sencond key candinate");r=n?this.curve.pointFromX(r.add(this.curve.n),i):this.curve.pointFromX(r,i);var s=f.r.invm(c),o=c.sub(a).mul(s).umod(c),u=b.mul(s).umod(c);return this.g.mulAdd(o,r,u)},Se.prototype.getKeyRecoveryParam=function(e,f,d,t){if(null!==(f=new ge(f,t)).recoveryParam)return f.recoveryParam;for(var c=0;c<4;c++){var a;try{a=this.recoverPubKey(e,f,c)}catch(e){continue}if(a.eq(d))return c}throw new Error("Unable to find valid recovery factor")};var we=r,Ie=we.assert,xe=we.parseBytes,Me=we.cachedProperty;function _e(e,f){this.eddsa=e,this._secret=xe(f.secret),e.isPoint(f.pub)?this._pub=f.pub:this._pubBytes=xe(f.pub)}_e.fromPublic=function(e,f){return f instanceof _e?f:new _e(e,{pub:f})},_e.fromSecret=function(e,f){return f instanceof _e?f:new _e(e,{secret:f})},_e.prototype.secret=function(){return this._secret},Me(_e,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),Me(_e,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),Me(_e,"privBytes",(function(){var e=this.eddsa,f=this.hash(),d=e.encodingLength-1,t=f.slice(0,e.encodingLength);return t[0]&=248,t[d]&=127,t[d]|=64,t})),Me(_e,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),Me(_e,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),Me(_e,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),_e.prototype.sign=function(e){return Ie(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},_e.prototype.verify=function(e,f){return this.eddsa.verify(e,f,this)},_e.prototype.getSecret=function(e){return Ie(this._secret,"KeyPair is public only"),we.encode(this.secret(),e)},_e.prototype.getPublic=function(e){return we.encode(this.pubBytes(),e)};var ze=_e,qe=e.exports,Re=r,Pe=Re.assert,Ee=Re.cachedProperty,Ne=Re.parseBytes;function je(e,f){this.eddsa=e,"object"!=typeof f&&(f=Ne(f)),Array.isArray(f)&&(f={R:f.slice(0,e.encodingLength),S:f.slice(e.encodingLength)}),Pe(f.R&&f.S,"Signature without R or S"),e.isPoint(f.R)&&(this._R=f.R),f.S instanceof qe&&(this._S=f.S),this._Rencoded=Array.isArray(f.R)?f.R:f.Rencoded,this._Sencoded=Array.isArray(f.S)?f.S:f.Sencoded}Ee(je,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),Ee(je,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),Ee(je,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),Ee(je,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),je.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},je.prototype.toHex=function(){return Re.encode(this.toBytes(),"hex").toUpperCase()};var ke=je,Le=d,Oe=U,Be=r,Fe=Be.assert,Ce=Be.parseBytes,Je=ze,Te=ke;function Xe(e){if(Fe("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof Xe))return new Xe(e);e=Oe[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=Le.sha512}var De=Xe;Xe.prototype.sign=function(e,f){e=Ce(e);var d=this.keyFromSecret(f),t=this.hashInt(d.messagePrefix(),e),c=this.g.mul(t),a=this.encodePoint(c),r=this.hashInt(a,d.pubBytes(),e).mul(d.priv()),b=t.add(r).umod(this.curve.n);return this.makeSignature({R:c,S:b,Rencoded:a})},Xe.prototype.verify=function(e,f,d){e=Ce(e),f=this.makeSignature(f);var t=this.keyFromPublic(d),c=this.hashInt(f.Rencoded(),t.pubBytes(),e),a=this.g.mul(f.S());return f.R().add(t.pub().mul(c)).eq(a)},Xe.prototype.hashInt=function(){for(var e=this.hash(),f=0;f<arguments.length;f++)e.update(arguments[f]);return Be.intFromLE(e.digest()).umod(this.curve.n)},Xe.prototype.keyFromPublic=function(e){return Je.fromPublic(this,e)},Xe.prototype.keyFromSecret=function(e){return Je.fromSecret(this,e)},Xe.prototype.makeSignature=function(e){return e instanceof Te?e:new Te(this,e)},Xe.prototype.encodePoint=function(e){var f=e.getY().toArray("le",this.encodingLength);return f[this.encodingLength-1]|=e.getX().isOdd()?128:0,f},Xe.prototype.decodePoint=function(e){var f=(e=Be.parseBytes(e)).length-1,d=e.slice(0,f).concat(-129&e[f]),t=0!=(128&e[f]),c=Be.intFromLE(d);return this.curve.pointFromY(c,t)},Xe.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},Xe.prototype.decodeInt=function(e){return Be.intFromLE(e)},Xe.prototype.isPoint=function(e){return e instanceof this.pointClass},function(e){var f=e;f.version=a,f.utils=r,f.rand=n.exports,f.curve=u,f.curves=U,f.ec=Ae,f.eddsa=De}(c);export{c as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as t}from"./inherits-e2363129.js";var i={},h={},n=r;function r(t,i){if(!t)throw new Error(i||"Assertion failed")}r.equal=function(t,i,h){if(t!=i)throw new Error(h||"Assertion failed: "+t+" != "+i)};var e=n,s=t.exports;function o(t,i){return 55296==(64512&t.charCodeAt(i))&&(!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1)))}function u(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function c(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}h.inherits=s,h.toArray=function(t,i){if(Array.isArray(t))return t.slice();if(!t)return[];var h=[];if("string"==typeof t)if(i){if("hex"===i)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)h.push(parseInt(t[r]+t[r+1],16))}else for(var n=0,r=0;r<t.length;r++){var e=t.charCodeAt(r);e<128?h[n++]=e:e<2048?(h[n++]=e>>6|192,h[n++]=63&e|128):o(t,r)?(e=65536+((1023&e)<<10)+(1023&t.charCodeAt(++r)),h[n++]=e>>18|240,h[n++]=e>>12&63|128,h[n++]=e>>6&63|128,h[n++]=63&e|128):(h[n++]=e>>12|224,h[n++]=e>>6&63|128,h[n++]=63&e|128)}else for(r=0;r<t.length;r++)h[r]=0|t[r];return h},h.toHex=function(t){for(var i="",h=0;h<t.length;h++)i+=a(t[h].toString(16));return i},h.htonl=u,h.toHex32=function(t,i){for(var h="",n=0;n<t.length;n++){var r=t[n];"little"===i&&(r=u(r)),h+=c(r.toString(16))}return h},h.zero2=a,h.zero8=c,h.join32=function(t,i,h,n){var r=h-i;e(r%4==0);for(var s=new Array(r/4),o=0,u=i;o<s.length;o++,u+=4){var a;a="big"===n?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],s[o]=a>>>0}return s},h.split32=function(t,i){for(var h=new Array(4*t.length),n=0,r=0;n<t.length;n++,r+=4){var e=t[n];"big"===i?(h[r]=e>>>24,h[r+1]=e>>>16&255,h[r+2]=e>>>8&255,h[r+3]=255&e):(h[r+3]=e>>>24,h[r+2]=e>>>16&255,h[r+1]=e>>>8&255,h[r]=255&e)}return h},h.rotr32=function(t,i){return t>>>i|t<<32-i},h.rotl32=function(t,i){return t<<i|t>>>32-i},h.sum32=function(t,i){return t+i>>>0},h.sum32_3=function(t,i,h){return t+i+h>>>0},h.sum32_4=function(t,i,h,n){return t+i+h+n>>>0},h.sum32_5=function(t,i,h,n,r){return t+i+h+n+r>>>0},h.sum64=function(t,i,h,n){var r=t[i],e=n+t[i+1]>>>0,s=(e<n?1:0)+h+r;t[i]=s>>>0,t[i+1]=e},h.sum64_hi=function(t,i,h,n){return(i+n>>>0<i?1:0)+t+h>>>0},h.sum64_lo=function(t,i,h,n){return i+n>>>0},h.sum64_4_hi=function(t,i,h,n,r,e,s,o){var u=0,a=i;return u+=(a=a+n>>>0)<i?1:0,u+=(a=a+e>>>0)<e?1:0,t+h+r+s+(u+=(a=a+o>>>0)<o?1:0)>>>0},h.sum64_4_lo=function(t,i,h,n,r,e,s,o){return i+n+e+o>>>0},h.sum64_5_hi=function(t,i,h,n,r,e,s,o,u,a){var c=0,l=i;return c+=(l=l+n>>>0)<i?1:0,c+=(l=l+e>>>0)<e?1:0,c+=(l=l+o>>>0)<o?1:0,t+h+r+s+u+(c+=(l=l+a>>>0)<a?1:0)>>>0},h.sum64_5_lo=function(t,i,h,n,r,e,s,o,u,a){return i+n+e+o+a>>>0},h.rotr64_hi=function(t,i,h){return(i<<32-h|t>>>h)>>>0},h.rotr64_lo=function(t,i,h){return(t<<32-h|i>>>h)>>>0},h.shr64_hi=function(t,i,h){return t>>>h},h.shr64_lo=function(t,i,h){return(t<<32-h|i>>>h)>>>0};var l={},f=h,g=n;function p(){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}l.BlockHash=p,p.prototype.update=function(t,i){if(t=f.toArray(t,i),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var h=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-h,t.length),0===this.pending.length&&(this.pending=null),t=f.join32(t,0,t.length-h,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},p.prototype.digest=function(t){return this.update(this._pad()),g(null===this.pending),this._digest(t)},p.prototype._pad=function(){var t=this.pendingTotal,i=this._delta8,h=i-(t+this.padLength)%i,n=new Array(h+this.padLength);n[0]=128;for(var r=1;r<h;r++)n[r]=0;if(t<<=3,"big"===this.endian){for(var e=8;e<this.padLength;e++)n[r++]=0;n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=t>>>24&255,n[r++]=t>>>16&255,n[r++]=t>>>8&255,n[r++]=255&t}else for(n[r++]=255&t,n[r++]=t>>>8&255,n[r++]=t>>>16&255,n[r++]=t>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,e=8;e<this.padLength;e++)n[r++]=0;return n};var d={},_={},v=h.rotr32;function m(t,i,h){return t&i^~t&h}function S(t,i,h){return t&i^t&h^i&h}function b(t,i,h){return t^i^h}_.ft_1=function(t,i,h,n){return 0===t?m(i,h,n):1===t||3===t?b(i,h,n):2===t?S(i,h,n):void 0},_.ch32=m,_.maj32=S,_.p32=b,_.s0_256=function(t){return v(t,2)^v(t,13)^v(t,22)},_.s1_256=function(t){return v(t,6)^v(t,11)^v(t,25)},_.g0_256=function(t){return v(t,7)^v(t,18)^t>>>3},_.g1_256=function(t){return v(t,17)^v(t,19)^t>>>10};var k=h,y=l,z=_,w=k.rotl32,x=k.sum32,A=k.sum32_5,H=z.ft_1,L=y.BlockHash,B=[1518500249,1859775393,2400959708,3395469782];function W(){if(!(this instanceof W))return new W;L.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}k.inherits(W,L);var j=W;W.blockSize=512,W.outSize=160,W.hmacStrength=80,W.padLength=64,W.prototype._update=function(t,i){for(var h=this.W,n=0;n<16;n++)h[n]=t[i+n];for(;n<h.length;n++)h[n]=w(h[n-3]^h[n-8]^h[n-14]^h[n-16],1);var r=this.h[0],e=this.h[1],s=this.h[2],o=this.h[3],u=this.h[4];for(n=0;n<h.length;n++){var a=~~(n/20),c=A(w(r,5),H(a,e,s,o),u,h[n],B[a]);u=o,o=s,s=w(e,30),e=r,r=c}this.h[0]=x(this.h[0],r),this.h[1]=x(this.h[1],e),this.h[2]=x(this.h[2],s),this.h[3]=x(this.h[3],o),this.h[4]=x(this.h[4],u)},W.prototype._digest=function(t){return"hex"===t?k.toHex32(this.h,"big"):k.split32(this.h,"big")};var C=h,T=l,E=_,q=n,I=C.sum32,D=C.sum32_4,F=C.sum32_5,G=E.ch32,J=E.maj32,K=E.s0_256,M=E.s1_256,N=E.g0_256,O=E.g1_256,P=T.BlockHash,Q=[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 R(){if(!(this instanceof R))return new R;P.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Q,this.W=new Array(64)}C.inherits(R,P);var U=R;R.blockSize=512,R.outSize=256,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(t,i){for(var h=this.W,n=0;n<16;n++)h[n]=t[i+n];for(;n<h.length;n++)h[n]=D(O(h[n-2]),h[n-7],N(h[n-15]),h[n-16]);var r=this.h[0],e=this.h[1],s=this.h[2],o=this.h[3],u=this.h[4],a=this.h[5],c=this.h[6],l=this.h[7];for(q(this.k.length===h.length),n=0;n<h.length;n++){var f=F(l,M(u),G(u,a,c),this.k[n],h[n]),g=I(K(r),J(r,e,s));l=c,c=a,a=u,u=I(o,f),o=s,s=e,e=r,r=I(f,g)}this.h[0]=I(this.h[0],r),this.h[1]=I(this.h[1],e),this.h[2]=I(this.h[2],s),this.h[3]=I(this.h[3],o),this.h[4]=I(this.h[4],u),this.h[5]=I(this.h[5],a),this.h[6]=I(this.h[6],c),this.h[7]=I(this.h[7],l)},R.prototype._digest=function(t){return"hex"===t?C.toHex32(this.h,"big"):C.split32(this.h,"big")};var V=h,X=U;function Y(){if(!(this instanceof Y))return new Y;X.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}V.inherits(Y,X);var Z=Y;Y.blockSize=512,Y.outSize=224,Y.hmacStrength=192,Y.padLength=64,Y.prototype._digest=function(t){return"hex"===t?V.toHex32(this.h.slice(0,7),"big"):V.split32(this.h.slice(0,7),"big")};var $=h,tt=l,it=n,ht=$.rotr64_hi,nt=$.rotr64_lo,rt=$.shr64_hi,et=$.shr64_lo,st=$.sum64,ot=$.sum64_hi,ut=$.sum64_lo,at=$.sum64_4_hi,ct=$.sum64_4_lo,lt=$.sum64_5_hi,ft=$.sum64_5_lo,gt=tt.BlockHash,pt=[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 dt(){if(!(this instanceof dt))return new dt;gt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=pt,this.W=new Array(160)}$.inherits(dt,gt);var _t=dt;function vt(t,i,h,n,r){var e=t&h^~t&r;return e<0&&(e+=4294967296),e}function mt(t,i,h,n,r,e){var s=i&n^~i&e;return s<0&&(s+=4294967296),s}function St(t,i,h,n,r){var e=t&h^t&r^h&r;return e<0&&(e+=4294967296),e}function bt(t,i,h,n,r,e){var s=i&n^i&e^n&e;return s<0&&(s+=4294967296),s}function kt(t,i){var h=ht(t,i,28)^ht(i,t,2)^ht(i,t,7);return h<0&&(h+=4294967296),h}function yt(t,i){var h=nt(t,i,28)^nt(i,t,2)^nt(i,t,7);return h<0&&(h+=4294967296),h}function zt(t,i){var h=ht(t,i,14)^ht(t,i,18)^ht(i,t,9);return h<0&&(h+=4294967296),h}function wt(t,i){var h=nt(t,i,14)^nt(t,i,18)^nt(i,t,9);return h<0&&(h+=4294967296),h}function xt(t,i){var h=ht(t,i,1)^ht(t,i,8)^rt(t,i,7);return h<0&&(h+=4294967296),h}function At(t,i){var h=nt(t,i,1)^nt(t,i,8)^et(t,i,7);return h<0&&(h+=4294967296),h}function Ht(t,i){var h=ht(t,i,19)^ht(i,t,29)^rt(t,i,6);return h<0&&(h+=4294967296),h}function Lt(t,i){var h=nt(t,i,19)^nt(i,t,29)^et(t,i,6);return h<0&&(h+=4294967296),h}dt.blockSize=1024,dt.outSize=512,dt.hmacStrength=192,dt.padLength=128,dt.prototype._prepareBlock=function(t,i){for(var h=this.W,n=0;n<32;n++)h[n]=t[i+n];for(;n<h.length;n+=2){var r=Ht(h[n-4],h[n-3]),e=Lt(h[n-4],h[n-3]),s=h[n-14],o=h[n-13],u=xt(h[n-30],h[n-29]),a=At(h[n-30],h[n-29]),c=h[n-32],l=h[n-31];h[n]=at(r,e,s,o,u,a,c,l),h[n+1]=ct(r,e,s,o,u,a,c,l)}},dt.prototype._update=function(t,i){this._prepareBlock(t,i);var h=this.W,n=this.h[0],r=this.h[1],e=this.h[2],s=this.h[3],o=this.h[4],u=this.h[5],a=this.h[6],c=this.h[7],l=this.h[8],f=this.h[9],g=this.h[10],p=this.h[11],d=this.h[12],_=this.h[13],v=this.h[14],m=this.h[15];it(this.k.length===h.length);for(var S=0;S<h.length;S+=2){var b=v,k=m,y=zt(l,f),z=wt(l,f),w=vt(l,f,g,p,d),x=mt(l,f,g,p,d,_),A=this.k[S],H=this.k[S+1],L=h[S],B=h[S+1],W=lt(b,k,y,z,w,x,A,H,L,B),j=ft(b,k,y,z,w,x,A,H,L,B);b=kt(n,r),k=yt(n,r),y=St(n,r,e,s,o),z=bt(n,r,e,s,o,u);var C=ot(b,k,y,z),T=ut(b,k,y,z);v=d,m=_,d=g,_=p,g=l,p=f,l=ot(a,c,W,j),f=ut(c,c,W,j),a=o,c=u,o=e,u=s,e=n,s=r,n=ot(W,j,C,T),r=ut(W,j,C,T)}st(this.h,0,n,r),st(this.h,2,e,s),st(this.h,4,o,u),st(this.h,6,a,c),st(this.h,8,l,f),st(this.h,10,g,p),st(this.h,12,d,_),st(this.h,14,v,m)},dt.prototype._digest=function(t){return"hex"===t?$.toHex32(this.h,"big"):$.split32(this.h,"big")};var Bt=h,Wt=_t;function jt(){if(!(this instanceof jt))return new jt;Wt.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Bt.inherits(jt,Wt);var Ct=jt;jt.blockSize=1024,jt.outSize=384,jt.hmacStrength=192,jt.padLength=128,jt.prototype._digest=function(t){return"hex"===t?Bt.toHex32(this.h.slice(0,12),"big"):Bt.split32(this.h.slice(0,12),"big")},d.sha1=j,d.sha224=Z,d.sha256=U,d.sha384=Ct,d.sha512=_t;var Tt={},Et=h,qt=l,It=Et.rotl32,Dt=Et.sum32,Ft=Et.sum32_3,Gt=Et.sum32_4,Jt=qt.BlockHash;function Kt(){if(!(this instanceof Kt))return new Kt;Jt.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function Mt(t,i,h,n){return t<=15?i^h^n:t<=31?i&h|~i&n:t<=47?(i|~h)^n:t<=63?i&n|h&~n:i^(h|~n)}function Nt(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function Ot(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}Et.inherits(Kt,Jt),Tt.ripemd160=Kt,Kt.blockSize=512,Kt.outSize=160,Kt.hmacStrength=192,Kt.padLength=64,Kt.prototype._update=function(t,i){for(var h=this.h[0],n=this.h[1],r=this.h[2],e=this.h[3],s=this.h[4],o=h,u=n,a=r,c=e,l=s,f=0;f<80;f++){var g=Dt(It(Gt(h,Mt(f,n,r,e),t[Pt[f]+i],Nt(f)),Rt[f]),s);h=s,s=e,e=It(r,10),r=n,n=g,g=Dt(It(Gt(o,Mt(79-f,u,a,c),t[Qt[f]+i],Ot(f)),Ut[f]),l),o=l,l=c,c=It(a,10),a=u,u=g}g=Ft(this.h[1],r,c),this.h[1]=Ft(this.h[2],e,l),this.h[2]=Ft(this.h[3],s,o),this.h[3]=Ft(this.h[4],h,u),this.h[4]=Ft(this.h[0],n,a),this.h[0]=g},Kt.prototype._digest=function(t){return"hex"===t?Et.toHex32(this.h,"little"):Et.split32(this.h,"little")};var Pt=[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],Qt=[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],Rt=[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],Ut=[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],Vt=h,Xt=n;function Yt(t,i,h){if(!(this instanceof Yt))return new Yt(t,i,h);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(Vt.toArray(i,h))}var Zt=Yt;Yt.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),Xt(t.length<=this.blockSize);for(var i=t.length;i<this.blockSize;i++)t.push(0);for(i=0;i<t.length;i++)t[i]^=54;for(this.inner=(new this.Hash).update(t),i=0;i<t.length;i++)t[i]^=106;this.outer=(new this.Hash).update(t)},Yt.prototype.update=function(t,i){return this.inner.update(t,i),this},Yt.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},function(t){var i=t;i.utils=h,i.common=l,i.sha=d,i.ripemd=Tt,i.hmac=Zt,i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160}(i);export{i as h,n as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r){if("string"!=typeof r)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof r+", while checking isHexPrefixed.");return"0x"===r.slice(0,2)},t=r,e=function(r){return"string"!=typeof r?r:t(r)?r.slice(2):r};function n(r){var t=r;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function i(r){return"0x"+r.toString(16)}var o,f,u,a,c,s={arrayContainsArray:function(r,t,e){if(!0!==Array.isArray(r))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof r+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(e)?"some":"every"]((function(t){return r.indexOf(t)>=0}))},intToBuffer:function(r){var t=i(r);return new Buffer(n(t.slice(2)),"hex")},getBinarySize:function(r){if("string"!=typeof r)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof r+"'.");return Buffer.byteLength(r,"utf8")},isHexPrefixed:r,stripHexPrefix:e,padToEven:n,intToHex:i,fromAscii:function(r){for(var t="",e=0;e<r.length;e++){var n=r.charCodeAt(e).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(r){return"0x"+n(new Buffer(r,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(r){var t="",e=0,n=r.length;for("0x"===r.substring(0,2)&&(e=2);e<n;e+=2){var i=parseInt(r.substr(e,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(r){return new Buffer(n(e(r).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(r,t,e){if(!Array.isArray(r))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof r+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<r.length;i++){var o=r[i][t];if(e&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(r,t){return!("string"!=typeof r||!r.match(/^0x[0-9A-Fa-f]*$/))&&(!t||r.length===2+2*t)}},y={};function p(){if(f)return o;var r,t;f=1;var e,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function i(t){throw{name:"SyntaxError",message:t,at:r,text:e}}function u(n){return n&&n!==t&&i("Expected '"+n+"' instead of '"+t+"'"),t=e.charAt(r),r+=1,t}function a(){var r,e="";for("-"===t&&(e="-",u("-"));t>="0"&&t<="9";)e+=t,u();if("."===t)for(e+=".";u()&&t>="0"&&t<="9";)e+=t;if("e"===t||"E"===t)for(e+=t,u(),"-"!==t&&"+"!==t||(e+=t,u());t>="0"&&t<="9";)e+=t,u();return r=Number(e),isFinite(r)||i("Bad number"),r}function c(){var r,e,o,f="";if('"'===t)for(;u();){if('"'===t)return u(),f;if("\\"===t)if(u(),"u"===t){for(o=0,e=0;e<4&&(r=parseInt(u(),16),isFinite(r));e+=1)o=16*o+r;f+=String.fromCharCode(o)}else{if("string"!=typeof n[t])break;f+=n[t]}else f+=t}i("Bad string")}function s(){for(;t&&t<=" ";)u()}function y(){switch(s(),t){case"{":return function(){var r,e={};if("{"===t){if(u("{"),s(),"}"===t)return u("}"),e;for(;t;){if(r=c(),s(),u(":"),Object.prototype.hasOwnProperty.call(e,r)&&i('Duplicate key "'+r+'"'),e[r]=y(),s(),"}"===t)return u("}"),e;u(","),s()}}i("Bad object")}();case"[":return function(){var r=[];if("["===t){if(u("["),s(),"]"===t)return u("]"),r;for(;t;){if(r.push(y()),s(),"]"===t)return u("]"),r;u(","),s()}}i("Bad array")}();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():function(){switch(t){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null;default:i("Unexpected '"+t+"'")}}()}}return o=function(n,o){var f;return e=n,r=0,t=" ",f=y(),s(),t&&i("Syntax error"),"function"==typeof o?function r(t,e){var n,i,f=t[e];if(f&&"object"==typeof f)for(n in y)Object.prototype.hasOwnProperty.call(f,n)&&(void 0===(i=r(f,n))?delete f[n]:f[n]=i);return o.call(t,e,f)}({"":f},""):f}}function l(){if(a)return u;a=1;var r,t,e,n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function o(r){return n.lastIndex=0,n.test(r)?'"'+r.replace(n,(function(r){var t=i[r];return"string"==typeof t?t:"\\u"+("0000"+r.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+r+'"'}function f(n,i){var u,a,c,s,y,p=r,l=i[n];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(n)),"function"==typeof e&&(l=e.call(i,n,l)),typeof l){case"string":return o(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(r+=t,y=[],"[object Array]"===Object.prototype.toString.apply(l)){for(s=l.length,u=0;u<s;u+=1)y[u]=f(u,l)||"null";return c=0===y.length?"[]":r?"[\n"+r+y.join(",\n"+r)+"\n"+p+"]":"["+y.join(",")+"]",r=p,c}if(e&&"object"==typeof e)for(s=e.length,u=0;u<s;u+=1)"string"==typeof(a=e[u])&&(c=f(a,l))&&y.push(o(a)+(r?": ":":")+c);else for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(c=f(a,l))&&y.push(o(a)+(r?": ":":")+c);return c=0===y.length?"{}":r?"{\n"+r+y.join(",\n"+r)+"\n"+p+"}":"{"+y.join(",")+"}",r=p,c}}return u=function(n,i,o){var u;if(r="",t="","number"==typeof o)for(u=0;u<o;u+=1)t+=" ";else"string"==typeof o&&(t=o);if(e=i,i&&"function"!=typeof i&&("object"!=typeof i||"number"!=typeof i.length))throw new Error("JSON.stringify");return f("",{"":n})}}var g="undefined"!=typeof JSON?JSON:(c||(c=1,y.parse=p(),y.stringify=l()),y),h=Array.isArray||function(r){return"[object Array]"==={}.toString.call(r)},v=Object.keys||function(r){var t=Object.prototype.hasOwnProperty||function(){return!0},e=[];for(var n in r)t.call(r,n)&&e.push(n);return e},b=function(r,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var e=t.space||"";"number"==typeof e&&(e=Array(e+1).join(" "));var n,i="boolean"==typeof t.cycles&&t.cycles,o=t.replacer||function(r,t){return t},f=t.cmp&&(n=t.cmp,function(r){return function(t,e){var i={key:t,value:r[t]},o={key:e,value:r[e]};return n(i,o)}}),u=[];return function r(t,n,a,c){var s=e?"\n"+new Array(c+1).join(e):"",y=e?": ":":";if(a&&a.toJSON&&"function"==typeof a.toJSON&&(a=a.toJSON()),void 0!==(a=o.call(t,n,a))){if("object"!=typeof a||null===a)return g.stringify(a);if(h(a)){for(var p=[],l=0;l<a.length;l++){var b=r(a,l,a[l],c+1)||g.stringify(null);p.push(s+e+b)}return"["+p.join(",")+s+"]"}if(-1!==u.indexOf(a)){if(i)return g.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}u.push(a);var d=v(a).sort(f&&f(a));for(p=[],l=0;l<d.length;l++){var w=r(a,n=d[l],a[n],c+1);if(w){var x=g.stringify(n)+y+w;p.push(s+e+x)}}return u.splice(u.indexOf(a),1),"{"+p.join(",")+s+"}"}}({"":r},"",r,0)};export{b as j,s as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,c as t}from"./_commonjsHelpers-70de2c37.js";import r from"tty";import n from"util";import s from"os";var o={},i={};class a extends TypeError{constructor(e,t){let r;const{message:n,explanation:s,...o}=e,{path:i}=e,a=0===i.length?n:`At path: ${i.join(".")} -- ${n}`;super(s??a),null!=s&&(this.cause=a),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function c(e){return"object"==typeof e&&null!=e}function u(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function p(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:s,branch:o}=t,{type:i}=r,{refinement:a,message:c=`Expected a value of type \`${i}\`${a?` with refinement \`${a}\``:""}, but received: \`${l(n)}\``}=e;return{value:n,type:i,refinement:a,key:s[s.length-1],path:s,branch:o,...e,message:c}}function*h(e,t,r,n){var s;c(s=e)&&"function"==typeof s[Symbol.iterator]||(e=[e]);for(const s of e){const e=p(s,t,r,n);e&&(yield e)}}function*f(e,t,r={}){const{path:n=[],branch:s=[e],coerce:o=!1,mask:i=!1}=r,a={path:n,branch:s};if(o&&(e=t.coercer(e,a),i&&"type"!==t.type&&c(t.schema)&&c(e)&&!Array.isArray(e)))for(const r in e)void 0===t.schema[r]&&delete e[r];let u="valid";for(const n of t.validator(e,a))n.explanation=r.message,u="not_valid",yield[n,void 0];for(let[l,p,h]of t.entries(e,a)){const t=f(p,h,{path:void 0===l?n:[...n,l],branch:void 0===l?s:[...s,p],coerce:o,mask:i,message:r.message});for(const r of t)r[0]?(u=null!=r[0].refinement?"not_refined":"not_valid",yield[r[0],void 0]):o&&(p=r[1],void 0===l?e=p:e instanceof Map?e.set(l,p):e instanceof Set?e.add(p):c(e)&&(void 0!==p||l in e)&&(e[l]=p))}if("not_valid"!==u)for(const n of t.refiner(e,a))n.explanation=r.message,u="not_refined",yield[n,void 0];"valid"===u&&(yield[void 0,e])}class d{constructor(e){const{type:t,schema:r,validator:n,refiner:s,coercer:o=(e=>e),entries:i=function*(){}}=e;this.type=t,this.schema=r,this.entries=i,this.coercer=o,this.validator=n?(e,t)=>h(n(e,t),t,this,e):()=>[],this.refiner=s?(e,t)=>h(s(e,t),t,this,e):()=>[]}assert(e,t){return m(e,this,t)}create(e,t){return g(e,this,t)}is(e){return E(e,this)}mask(e,t){return v(e,this,t)}validate(e,t={}){return y(e,this,t)}}function m(e,t,r){const n=y(e,t,{message:r});if(n[0])throw n[0]}function g(e,t,r){const n=y(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function v(e,t,r){const n=y(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function E(e,t){return!y(e,t)[0]}function y(e,t,r={}){const n=f(e,t,r),s=function(e){const{done:t,value:r}=e.next();return t?void 0:r}(n);if(s[0]){const e=new a(s[0],(function*(){for(const e of n)e[0]&&(yield e[0])}));return[e,void 0]}return[void 0,s[1]]}function S(e,t){return new d({type:e,schema:null,validator:t})}function R(){return S("never",(()=>!1))}function b(e){const t=e?Object.keys(e):[],r=R();return new d({type:"object",schema:e||null,*entries(n){if(e&&c(n)){const s=new Set(Object.keys(n));for(const r of t)s.delete(r),yield[r,n[r],e[r]];for(const e of s)yield[e,n[e],r]}},validator:e=>c(e)||`Expected an object, but received: ${l(e)}`,coercer:e=>c(e)?{...e}:e})}function I(e){return new d({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function $(){return S("string",(e=>"string"==typeof e||`Expected a string, but received: ${l(e)}`))}function w(e){const t=Object.keys(e);return new d({type:"type",schema:e,*entries(r){if(c(r))for(const n of t)yield[n,r[n],e[n]]},validator:e=>c(e)||`Expected an object, but received: ${l(e)}`,coercer:e=>c(e)?{...e}:e})}function O(){return S("unknown",(()=>!0))}function C(e,t,r){return new d({...e,coercer:(n,s)=>E(n,t)?e.coercer(r(n,s),s):e.coercer(n,s)})}function N(e){return e instanceof Map||e instanceof Set?e.size:e.length}function A(e,t,r){return new d({...e,*refiner(n,s){yield*e.refiner(n,s);const o=h(r(n,s),s,e,n);for(const e of o)yield{...e,refinement:t}}})}var x=Object.freeze({__proto__:null,Struct:d,StructError:a,any:function(){return S("any",(()=>!0))},array:function(e){return new d({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${l(e)}`})},assert:m,assign:function(...e){const t="type"===e[0].type,r=e.map((e=>e.schema)),n=Object.assign({},...r);return t?w(n):b(n)},bigint:function(){return S("bigint",(e=>"bigint"==typeof e))},boolean:function(){return S("boolean",(e=>"boolean"==typeof e))},coerce:C,create:g,date:function(){return S("date",(e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${l(e)}`))},defaulted:function(e,t,r={}){return C(e,O(),(e=>{const n="function"==typeof t?t():t;if(void 0===e)return n;if(!r.strict&&u(e)&&u(n)){const t={...e};let r=!1;for(const e in n)void 0===t[e]&&(t[e]=n[e],r=!0);if(r)return t}return e}))},define:S,deprecated:function(e,t){return new d({...e,refiner:(t,r)=>void 0===t||e.refiner(t,r),validator:(r,n)=>void 0===r||(t(r,n),e.validator(r,n))})},dynamic:function(e){return new d({type:"dynamic",schema:null,*entries(t,r){const n=e(t,r);yield*n.entries(t,r)},validator:(t,r)=>e(t,r).validator(t,r),coercer:(t,r)=>e(t,r).coercer(t,r),refiner:(t,r)=>e(t,r).refiner(t,r)})},empty:function(e){return A(e,"empty",(t=>{const r=N(t);return 0===r||`Expected an empty ${e.type} but received one with a size of \`${r}\``}))},enums:function(e){const t={},r=e.map((e=>l(e))).join();for(const r of e)t[r]=r;return new d({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${r}\`, but received: ${l(t)}`})},func:function(){return S("func",(e=>"function"==typeof e||`Expected a function, but received: ${l(e)}`))},instance:function(e){return S("instance",(t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${l(t)}`))},integer:function(){return S("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${l(e)}`))},intersection:function(e){return new d({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})},is:E,lazy:function(e){let t;return new d({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator:(r,n)=>(t??(t=e()),t.validator(r,n)),coercer:(r,n)=>(t??(t=e()),t.coercer(r,n)),refiner:(r,n)=>(t??(t=e()),t.refiner(r,n))})},literal:function(e){const t=l(e),r=typeof e;return new d({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${l(r)}`})},map:function(e,t){return new d({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,s]of r.entries())yield[n,n,e],yield[n,s,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${l(e)}`})},mask:v,max:function(e,t,r={}){const{exclusive:n}=r;return A(e,"max",(r=>n?r<t:r<=t||`Expected a ${e.type} less than ${n?"":"or equal to "}${t} but received \`${r}\``))},min:function(e,t,r={}){const{exclusive:n}=r;return A(e,"min",(r=>n?r>t:r>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${r}\``))},never:R,nonempty:function(e){return A(e,"nonempty",(t=>N(t)>0||`Expected a nonempty ${e.type} but received an empty one`))},nullable:function(e){return new d({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})},number:function(){return S("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${l(e)}`))},object:b,omit:function(e,t){const{schema:r}=e,n={...r};for(const e of t)delete n[e];return"type"===e.type?w(n):b(n)},optional:I,partial:function(e){const t=e instanceof d?{...e.schema}:{...e};for(const e in t)t[e]=I(t[e]);return b(t)},pattern:function(e,t){return A(e,"pattern",(r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`))},pick:function(e,t){const{schema:r}=e,n={};for(const e of t)n[e]=r[e];return b(n)},record:function(e,t){return new d({type:"record",schema:null,*entries(r){if(c(r))for(const n in r){const s=r[n];yield[n,n,e],yield[n,s,t]}},validator:e=>c(e)||`Expected an object, but received: ${l(e)}`})},refine:A,regexp:function(){return S("regexp",(e=>e instanceof RegExp))},set:function(e){return new d({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${l(e)}`})},size:function(e,t,r=t){const n=`Expected a ${e.type}`,s=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return A(e,"size",(e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=r||`${n} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){const{size:o}=e;return t<=o&&o<=r||`${n} with a size ${s} but received one with a size of \`${o}\``}{const{length:o}=e;return t<=o&&o<=r||`${n} with a length ${s} but received one with a length of \`${o}\``}}))},string:$,struct:function(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),S(e,t)},trimmed:function(e){return C(e,$(),(e=>e.trim()))},tuple:function(e){const t=R();return new d({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let s=0;s<n;s++)yield[s,r[s],e[s]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${l(e)}`})},type:w,union:function(e){const t=e.map((e=>e.type)).join(" | ");return new d({type:"union",schema:null,coercer(t){for(const r of e){const[e,n]=r.validate(t,{coerce:!0});if(!e)return n}return t},validator(r,n){const s=[];for(const t of e){const[...e]=f(r,t,n),[o]=e;if(!o[0])return[];for(const[t]of e)t&&s.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${l(r)}`,...s]}})},unknown:O,validate:y}),T=e(x);Object.defineProperty(i,"__esModule",{value:!0}),i.assertExhaustive=i.assertStruct=i.assert=i.AssertionError=void 0;const L=T;function F(e,t){return r=e,Boolean("string"==typeof(null===(s=null===(n=null==r?void 0:r.prototype)||void 0===n?void 0:n.constructor)||void 0===s?void 0:s.name))?new e({message:t}):e({message:t});var r,n,s}class P extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}i.AssertionError=P,i.assert=function(e,t="Assertion failed.",r=P){if(!e){if(t instanceof Error)throw t;throw F(r,t)}},i.assertStruct=function(e,t,r="Assertion failed",n=P){try{(0,L.assert)(e,t)}catch(e){throw F(n,`${r}: ${function(e){const t=function(e){return"object"==typeof e&&null!==e&&"message"in e}(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}(e)}.`)}},i.assertExhaustive=function(e){throw new Error("Invalid branch reached. Should be detected during compilation.")};var j={};Object.defineProperty(j,"__esModule",{value:!0}),j.base64=void 0;const J=T,_=i;j.base64=(e,t={})=>{var r,n;const s=null!==(r=t.paddingRequired)&&void 0!==r&&r,o=null!==(n=t.characterSet)&&void 0!==n?n:"base64";let i,a;return"base64"===o?i=String.raw`[A-Za-z0-9+\/]`:((0,_.assert)("base64url"===o),i=String.raw`[-_A-Za-z0-9]`),a=s?new RegExp(`^(?:${i}{4})*(?:${i}{3}=|${i}{2}==)?$`,"u"):new RegExp(`^(?:${i}{4})*(?:${i}{2,3}|${i}{3}=|${i}{2}==)?$`,"u"),(0,J.pattern)(e,a)};var M={},D={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const t=T,r=i;function n(r){return(0,t.is)(r,e.HexStruct)}function s(r){return(0,t.is)(r,e.StrictHexStruct)}e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu),e.isHexString=n,e.isStrictHexString=s,e.assertIsHexString=function(e){(0,r.assert)(n(e),"Value must be a hexadecimal string.")},e.assertIsStrictHexString=function(e){(0,r.assert)(s(e),'Value must be a hexadecimal string, starting with "0x".')},e.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},e.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}}(D),Object.defineProperty(M,"__esModule",{value:!0}),M.createDataView=M.concatBytes=M.valueToBytes=M.stringToBytes=M.numberToBytes=M.signedBigIntToBytes=M.bigIntToBytes=M.hexToBytes=M.bytesToString=M.bytesToNumber=M.bytesToSignedBigInt=M.bytesToBigInt=M.bytesToHex=M.assertIsBytes=M.isBytes=void 0;const V=i,B=D,k=48,G=58,z=87;const U=function(){const e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function H(e){return e instanceof Uint8Array}function X(e){(0,V.assert)(H(e),"Value must be a Uint8Array.")}function W(e){if(X(e),0===e.length)return"0x";const t=U(),r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=t[e[n]];return(0,B.add0x)(r.join(""))}function q(e){X(e);const t=W(e);return BigInt(t)}function Y(e){var t;if("0x"===(null===(t=null==e?void 0:e.toLowerCase)||void 0===t?void 0:t.call(e)))return new Uint8Array;(0,B.assertIsHexString)(e);const r=(0,B.remove0x)(e).toLowerCase(),n=r.length%2==0?r:`0${r}`,s=new Uint8Array(n.length/2);for(let e=0;e<s.length;e++){const t=n.charCodeAt(2*e),r=n.charCodeAt(2*e+1),o=t-(t<G?k:z),i=r-(r<G?k:z);s[e]=16*o+i}return s}function Z(e){(0,V.assert)("bigint"==typeof e,"Value must be a bigint."),(0,V.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");return Y(e.toString(16))}function Q(e){(0,V.assert)("number"==typeof e,"Value must be a number."),(0,V.assert)(e>=0,"Value must be a non-negative number."),(0,V.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");return Y(e.toString(16))}function K(e){return(0,V.assert)("string"==typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function ee(e){if("bigint"==typeof e)return Z(e);if("number"==typeof e)return Q(e);if("string"==typeof e)return e.startsWith("0x")?Y(e):K(e);if(H(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}M.isBytes=H,M.assertIsBytes=X,M.bytesToHex=W,M.bytesToBigInt=q,M.bytesToSignedBigInt=function(e){X(e);let t=BigInt(0);for(const r of e)t=(t<<BigInt(8))+BigInt(r);return BigInt.asIntN(8*e.length,t)},M.bytesToNumber=function(e){X(e);const t=q(e);return(0,V.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},M.bytesToString=function(e){return X(e),(new TextDecoder).decode(e)},M.hexToBytes=Y,M.bigIntToBytes=Z,M.signedBigIntToBytes=function(e,t){(0,V.assert)("bigint"==typeof e,"Value must be a bigint."),(0,V.assert)("number"==typeof t,"Byte length must be a number."),(0,V.assert)(t>0,"Byte length must be greater than 0."),(0,V.assert)(function(e,t){(0,V.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let r=e;const n=new Uint8Array(t);for(let e=0;e<n.length;e++)n[e]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return n.reverse()},M.numberToBytes=Q,M.stringToBytes=K,M.valueToBytes=ee,M.concatBytes=function(e){const t=new Array(e.length);let r=0;for(let n=0;n<e.length;n++){const s=ee(e[n]);t[n]=s,r+=s.length}const n=new Uint8Array(r);for(let e=0,r=0;e<t.length;e++)n.set(t[e],r),r+=t[e].length;return n},M.createDataView=function(e){if("undefined"!=typeof Buffer&&e instanceof Buffer){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)};var te={};Object.defineProperty(te,"__esModule",{value:!0}),te.ChecksumStruct=void 0;const re=T,ne=j;te.ChecksumStruct=(0,re.size)((0,ne.base64)((0,re.string)(),{paddingRequired:!0}),44,44);var se={};Object.defineProperty(se,"__esModule",{value:!0}),se.createHex=se.createBytes=se.createBigInt=se.createNumber=void 0;const oe=T,ie=i,ae=M,ce=D,ue=(0,oe.union)([(0,oe.number)(),(0,oe.bigint)(),(0,oe.string)(),ce.StrictHexStruct]),le=(0,oe.coerce)((0,oe.number)(),ue,Number),pe=(0,oe.coerce)((0,oe.bigint)(),ue,BigInt);(0,oe.union)([ce.StrictHexStruct,(0,oe.instance)(Uint8Array)]);const he=(0,oe.coerce)((0,oe.instance)(Uint8Array),(0,oe.union)([ce.StrictHexStruct]),ae.hexToBytes),fe=(0,oe.coerce)(ce.StrictHexStruct,(0,oe.instance)(Uint8Array),ae.bytesToHex);se.createNumber=function(e){try{const t=(0,oe.create)(e,le);return(0,ie.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof oe.StructError)throw new Error(`Expected a number-like value, got "${e}".`);throw t}},se.createBigInt=function(e){try{return(0,oe.create)(e,pe)}catch(e){if(e instanceof oe.StructError)throw new Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},se.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,oe.create)(e,he)}catch(e){if(e instanceof oe.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},se.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,oe.create)(e,fe)}catch(e){if(e instanceof oe.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}};var de,me,ge={},ve=t&&t.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},Ee=t&&t.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(ge,"__esModule",{value:!0}),ge.FrozenSet=ge.FrozenMap=void 0;class ye{constructor(e){de.set(this,void 0),ve(this,de,new Map(e),"f"),Object.freeze(this)}get size(){return Ee(this,de,"f").size}[(de=new WeakMap,Symbol.iterator)](){return Ee(this,de,"f")[Symbol.iterator]()}entries(){return Ee(this,de,"f").entries()}forEach(e,t){return Ee(this,de,"f").forEach(((r,n,s)=>e.call(t,r,n,this)))}get(e){return Ee(this,de,"f").get(e)}has(e){return Ee(this,de,"f").has(e)}keys(){return Ee(this,de,"f").keys()}values(){return Ee(this,de,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map((([e,t])=>`${String(e)} => ${String(t)}`)).join(", ")} `:""}}`}}ge.FrozenMap=ye;class Se{constructor(e){me.set(this,void 0),ve(this,me,new Set(e),"f"),Object.freeze(this)}get size(){return Ee(this,me,"f").size}[(me=new WeakMap,Symbol.iterator)](){return Ee(this,me,"f")[Symbol.iterator]()}entries(){return Ee(this,me,"f").entries()}forEach(e,t){return Ee(this,me,"f").forEach(((r,n,s)=>e.call(t,r,n,this)))}has(e){return Ee(this,me,"f").has(e)}keys(){return Ee(this,me,"f").keys()}values(){return Ee(this,me,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map((e=>String(e))).join(", ")} `:""}}`}}ge.FrozenSet=Se,Object.freeze(ye),Object.freeze(ye.prototype),Object.freeze(Se),Object.freeze(Se.prototype);var Re={},be={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0,e.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},e.isNullOrUndefined=function(e){return null==e},e.isObject=function(e){return Boolean(e)&&"object"==typeof e&&!Array.isArray(e)};var t;function r(e){return e.charCodeAt(0)<=127}e.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),(t=e.JsonSize||(e.JsonSize={}))[t.Null=4]="Null",t[t.Comma=1]="Comma",t[t.Wrapper=1]="Wrapper",t[t.True=4]="True",t[t.False=5]="False",t[t.Quote=1]="Quote",t[t.Colon=1]="Colon",t[t.Date=24]="Date",e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,e.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},e.isASCII=r,e.calculateStringSize=function(t){var n;return t.split("").reduce(((e,t)=>r(t)?e+1:e+2),0)+(null!==(n=t.match(e.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length},e.calculateNumberSize=function(e){return e.toString().length}}(be),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateJsonAndGetSize=e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.isValidJson=e.JsonStruct=void 0;const t=T,r=i,n=be;function s(e,t=!1){const r=new Set;return function e(t,s){if(void 0===t)return[!1,0];if(null===t)return[!0,s?0:n.JsonSize.Null];const o=typeof t;try{if("function"===o)return[!1,0];if("string"===o||t instanceof String)return[!0,s?0:(0,n.calculateStringSize)(t)+2*n.JsonSize.Quote];if("boolean"===o||t instanceof Boolean)return s?[!0,0]:[!0,1==t?n.JsonSize.True:n.JsonSize.False];if("number"===o||t instanceof Number)return s?[!0,0]:[!0,(0,n.calculateNumberSize)(t)];if(t instanceof Date)return s?[!0,0]:[!0,isNaN(t.getDate())?n.JsonSize.Null:n.JsonSize.Date+2*n.JsonSize.Quote]}catch(e){return[!1,0]}if(!(0,n.isPlainObject)(t)&&!Array.isArray(t))return[!1,0];if(r.has(t))return[!1,0];r.add(t);try{return[!0,Object.entries(t).reduce(((o,[i,a],c,u)=>{let[l,p]=e(a,s);if(!l)throw new Error("JSON validation did not pass. Validation process stopped.");if(r.delete(t),s)return 0;return o+(Array.isArray(t)?0:i.length+n.JsonSize.Comma+2*n.JsonSize.Colon)+p+(c<u.length-1?n.JsonSize.Comma:0)}),s?0:2*n.JsonSize.Wrapper)]}catch(e){return[!1,0]}}(e,t)}e.JsonStruct=(0,t.define)("Json",(e=>{const[t]=s(e,!0);return!!t||"Expected a valid JSON-serializable value"})),e.isValidJson=function(r){return(0,t.is)(r,e.JsonStruct)},e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,t.object)({code:(0,t.integer)(),message:(0,t.string)(),data:(0,t.optional)(e.JsonStruct),stack:(0,t.optional)((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.optional)((0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,t.omit)(e.JsonRpcRequestStruct,["id"]),e.isJsonRpcNotification=function(r){return(0,t.is)(r,e.JsonRpcNotificationStruct)},e.assertIsJsonRpcNotification=function(t,n){(0,r.assertStruct)(t,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",n)},e.isJsonRpcRequest=function(r){return(0,t.is)(r,e.JsonRpcRequestStruct)},e.assertIsJsonRpcRequest=function(t,n){(0,r.assertStruct)(t,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",n)},e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]),e.isPendingJsonRpcResponse=function(r){return(0,t.is)(r,e.PendingJsonRpcResponseStruct)},e.assertIsPendingJsonRpcResponse=function(t,n){(0,r.assertStruct)(t,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",n)},e.isJsonRpcResponse=function(r){return(0,t.is)(r,e.JsonRpcResponseStruct)},e.assertIsJsonRpcResponse=function(t,n){(0,r.assertStruct)(t,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",n)},e.isJsonRpcSuccess=function(r){return(0,t.is)(r,e.JsonRpcSuccessStruct)},e.assertIsJsonRpcSuccess=function(t,n){(0,r.assertStruct)(t,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",n)},e.isJsonRpcFailure=function(r){return(0,t.is)(r,e.JsonRpcFailureStruct)},e.assertIsJsonRpcFailure=function(t,n){(0,r.assertStruct)(t,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",n)},e.isJsonRpcError=function(r){return(0,t.is)(r,e.JsonRpcErrorStruct)},e.assertIsJsonRpcError=function(t,n){(0,r.assertStruct)(t,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",n)},e.getJsonRpcIdValidator=function(e){const{permitEmptyString:t,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>Boolean("number"==typeof e&&(r||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||n&&null===e)},e.validateJsonAndGetSize=s}(Re);var Ie,$e,we,Oe,Ce,Ne={},Ae={exports:{}},xe={exports:{}};function Te(){if($e)return Ie;$e=1;var e=1e3,t=60*e,r=60*t,n=24*r,s=7*n,o=365.25*n;function i(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}return Ie=function(a,c){c=c||{};var u=typeof a;if("string"===u&&a.length>0)return function(i){if((i=String(i)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(a);if("number"===u&&isFinite(a))return c.long?function(s){var o=Math.abs(s);if(o>=n)return i(s,o,n,"day");if(o>=r)return i(s,o,r,"hour");if(o>=t)return i(s,o,t,"minute");if(o>=e)return i(s,o,e,"second");return s+" ms"}(a):function(s){var o=Math.abs(s);if(o>=n)return Math.round(s/n)+"d";if(o>=r)return Math.round(s/r)+"h";if(o>=t)return Math.round(s/t)+"m";if(o>=e)return Math.round(s/e)+"s";return s+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))},Ie}function Le(){if(Oe)return we;return Oe=1,we=function(e){function t(e){let n,s,o,i=null;function a(...e){if(!a.enabled)return;const r=a,s=Number(new Date),o=s-(n||s);r.diff=o,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";i++;const o=t.formatters[s];if("function"==typeof o){const t=e[i];n=o.call(r,t),e.splice(i,1),i--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r<s;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Te(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t},we}var Fe,Pe,je,Je,_e,Me,De={exports:{}};function Ve(){return Pe?Fe:(Pe=1,Fe=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return-1!==n&&(-1===s||n<s)})}function Be(){return _e||(_e=1,function(e,t){const o=r,i=n;t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:s}=this;if(s){const t=this.color,s="[3"+(t<8?t:"8;5;"+t),o=` ${s};1m${n} [0m`;r[0]=o+r[0].split("\n").join("\n"+o),r.push(s+"m+"+e.exports.humanize(this.diff)+"[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=function(){if(Je)return je;Je=1;const e=s,t=r,n=Ve(),{env:o}=process;let i;function a(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(t,r){if(0===i)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!r&&void 0===i)return 0;const s=i||0;if("dumb"===o.TERM)return s;if("win32"===process.platform){const t=e.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:s;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:s}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?i=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(i=1),"FORCE_COLOR"in o&&(i="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),je={supportsColor:function(e){return a(c(e,e&&e.isTTY))},stdout:a(c(!0,t.isatty(1))),stderr:a(c(!0,t.isatty(2)))}}();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=Le()(t);const{formatters:a}=e.exports;a.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},a.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}}(De,De.exports)),De.exports}Me=Ae,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Me.exports=(Ce||(Ce=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))})),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=Le()(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(xe,xe.exports)),xe.exports):Me.exports=Be();var ke=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.createModuleLogger=Ne.createProjectLogger=void 0;const Ge=(0,ke(Ae.exports).default)("metamask");Ne.createProjectLogger=function(e){return Ge.extend(e)},Ne.createModuleLogger=function(e,t){return e.extend(t)};var ze={};Object.defineProperty(ze,"__esModule",{value:!0}),ze.hexToBigInt=ze.hexToNumber=ze.bigIntToHex=ze.numberToHex=void 0;const Ue=i,He=D;ze.numberToHex=e=>((0,Ue.assert)("number"==typeof e,"Value must be a number."),(0,Ue.assert)(e>=0,"Value must be a non-negative number."),(0,Ue.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,He.add0x)(e.toString(16)));ze.bigIntToHex=e=>((0,Ue.assert)("bigint"==typeof e,"Value must be a bigint."),(0,Ue.assert)(e>=0,"Value must be a non-negative bigint."),(0,He.add0x)(e.toString(16)));ze.hexToNumber=e=>{(0,He.assertIsHexString)(e);const t=parseInt(e,16);return(0,Ue.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};ze.hexToBigInt=e=>((0,He.assertIsHexString)(e),BigInt((0,He.add0x)(e)));var Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});var We={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,(t=e.Duration||(e.Duration={}))[t.Millisecond=1]="Millisecond",t[t.Second=1e3]="Second",t[t.Minute=6e4]="Minute",t[t.Hour=36e5]="Hour",t[t.Day=864e5]="Day",t[t.Week=6048e5]="Week",t[t.Year=31536e6]="Year";const r=(e,t)=>{if(!(e=>Number.isInteger(e)&&e>=0)(e))throw new Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};e.inMilliseconds=function(e,t){return r(e,"count"),e*t},e.timeSince=function(e){return r(e,"timestamp"),Date.now()-e}}(We);var qe={},Ye={exports:{}};var Ze={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var Qe="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=Ze,n=Qe,s=(t=e.exports={}).re=[],o=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),i[e]=c,o[c]=t,s[c]=new RegExp(t,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",`(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[i.NUMERICIDENTIFIER]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[i.NUMERICIDENTIFIERLOOSE]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[i.PRERELEASEIDENTIFIER]}(?:\\.${o[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[i.BUILDIDENTIFIER]}(?:\\.${o[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[i.MAINVERSION]}${o[i.PRERELEASE]}?${o[i.BUILD]}?`),c("FULL",`^${o[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[i.MAINVERSIONLOOSE]}${o[i.PRERELEASELOOSE]}?${o[i.BUILD]}?`),c("LOOSE",`^${o[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[i.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:${o[i.PRERELEASE]})?${o[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:${o[i.PRERELEASELOOSE]})?${o[i.BUILD]}?)?)?`),c("XRANGE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",o[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[i.LONECARET]}${o[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[i.LONECARET]}${o[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[i.GTLT]}\\s*(${o[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]}|${o[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[i.XRANGEPLAIN]})\\s+-\\s+(${o[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Ye,Ye.exports);const Ke=Object.freeze({loose:!0}),et=Object.freeze({});var tt=e=>e?"object"!=typeof e?Ke:e:et;const rt=/^[0-9]+$/,nt=(e,t)=>{const r=rt.test(e),n=rt.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1};var st={compareIdentifiers:nt,rcompareIdentifiers:(e,t)=>nt(t,e)};const ot=Qe,{MAX_LENGTH:it,MAX_SAFE_INTEGER:at}=Ze,{re:ct,t:ut}=Ye.exports,lt=tt,{compareIdentifiers:pt}=st;class ht{constructor(e,t){if(t=lt(t),e instanceof ht){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${n.inspect(e)}`);if(e.length>it)throw new TypeError(`version is longer than ${it} characters`);ot("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?ct[ut.LOOSE]:ct[ut.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>at||this.major<0)throw new TypeError("Invalid major version");if(this.minor>at||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>at||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<at)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(ot("SemVer.compare",this.version,this.options,e),!(e instanceof ht)){if("string"==typeof e&&e===this.version)return 0;e=new ht(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof ht||(e=new ht(e,this.options)),pt(this.major,e.major)||pt(this.minor,e.minor)||pt(this.patch,e.patch)}comparePre(e){if(e instanceof ht||(e=new ht(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;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(ot("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return pt(r,n)}while(++t)}compareBuild(e){e instanceof ht||(e=new ht(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(ot("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return pt(r,n)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);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":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===pt(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}var ft=ht;const dt=ft;var mt=(e,t,r=!1)=>{if(e instanceof dt)return e;try{return new dt(e,t)}catch(e){if(!r)return null;throw e}};const gt=mt;var vt=(e,t)=>{const r=gt(e,t);return r?r.version:null};const Et=mt;var yt=(e,t)=>{const r=Et(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};const St=ft;var Rt=(e,t,r,n,s)=>{"string"==typeof r&&(s=n,n=r,r=void 0);try{return new St(e instanceof St?e.version:e,r).inc(t,n,s).version}catch(e){return null}};const bt=mt;var It=(e,t)=>{const r=bt(e,null,!0),n=bt(t,null,!0),s=r.compare(n);if(0===s)return null;const o=s>0,i=o?n:r,a=!!(o?r:n).prerelease.length,c=a?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":a?"prerelease":i.patch?"patch":i.minor?"minor":"major"};const $t=ft;var wt=(e,t)=>new $t(e,t).major;const Ot=ft;var Ct=(e,t)=>new Ot(e,t).minor;const Nt=ft;var At=(e,t)=>new Nt(e,t).patch;const xt=mt;var Tt=(e,t)=>{const r=xt(e,t);return r&&r.prerelease.length?r.prerelease:null};const Lt=ft;var Ft=(e,t,r)=>new Lt(e,r).compare(new Lt(t,r));const Pt=Ft;var jt=(e,t,r)=>Pt(t,e,r);const Jt=Ft;var _t=(e,t)=>Jt(e,t,!0);const Mt=ft;var Dt=(e,t,r)=>{const n=new Mt(e,r),s=new Mt(t,r);return n.compare(s)||n.compareBuild(s)};const Vt=Dt;var Bt=(e,t)=>e.sort(((e,r)=>Vt(e,r,t)));const kt=Dt;var Gt=(e,t)=>e.sort(((e,r)=>kt(r,e,t)));const zt=Ft;var Ut=(e,t,r)=>zt(e,t,r)>0;const Ht=Ft;var Xt=(e,t,r)=>Ht(e,t,r)<0;const Wt=Ft;var qt=(e,t,r)=>0===Wt(e,t,r);const Yt=Ft;var Zt=(e,t,r)=>0!==Yt(e,t,r);const Qt=Ft;var Kt=(e,t,r)=>Qt(e,t,r)>=0;const er=Ft;var tr=(e,t,r)=>er(e,t,r)<=0;const rr=qt,nr=Zt,sr=Ut,or=Kt,ir=Xt,ar=tr;var cr=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return rr(e,r,n);case"!=":return nr(e,r,n);case">":return sr(e,r,n);case">=":return or(e,r,n);case"<":return ir(e,r,n);case"<=":return ar(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};const ur=ft,lr=mt,{re:pr,t:hr}=Ye.exports;var fr,dr,mr,gr,vr,Er,yr,Sr,Rr,br,Ir=(e,t)=>{if(e instanceof ur)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=pr[hr.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),pr[hr.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;pr[hr.COERCERTL].lastIndex=-1}else r=e.match(pr[hr.COERCE]);return null===r?null:lr(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function $r(){if(gr)return mr;function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(var n=0,s=arguments.length;n<s;n++)r.push(arguments[n]);return r}function t(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function r(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function n(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}gr=1,mr=e,e.Node=s,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},e.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},e.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},e.prototype.map=function(t,r){r=r||this;for(var n=new e,s=this.head;null!==s;)n.push(t.call(r,s.value,this)),s=s.next;return n},e.prototype.mapReverse=function(t,r){r=r||this;for(var n=new e,s=this.tail;null!==s;)n.push(t.call(r,s.value,this)),s=s.prev;return n},e.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;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 s=0;null!==n;s++)r=e(r,n.value,s),n=n.next;return r},e.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;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 s=this.length-1;null!==n;s--)r=e(r,n.value,s),n=n.prev;return r},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},e.prototype.slice=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var s=0,o=this.head;null!==o&&s<t;s++)o=o.next;for(;null!==o&&s<r;s++,o=o.next)n.push(o.value);return n},e.prototype.sliceReverse=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var s=this.length,o=this.tail;null!==o&&s>r;s--)o=o.prev;for(;null!==o&&s>t;s--,o=o.prev)n.push(o.value);return n},e.prototype.splice=function(e,r,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var s=0,o=this.head;null!==o&&s<e;s++)o=o.next;var i=[];for(s=0;o&&s<r;s++)i.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(s=0;s<n.length;s++)o=t(this,o,n[s]);return i},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{(dr?fr:(dr=1,fr=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return mr}function wr(){if(Sr)return yr;Sr=1;class e{constructor(t,r){if(r=n(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!d(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=((this.options.includePrerelease&&h)|(this.options.loose&&f))+":"+e,n=r.get(t);if(n)return n;const i=this.options.loose,m=i?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(m,C(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],u),o("comparator trim",e);let g=(e=(e=(e=e.replace(a[c.TILDETRIM],l)).replace(a[c.CARETTRIM],p)).split(/\s+/).join(" ")).split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>O(e,this.options)));i&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[c.COMPARATORLOOSE]))))),o("range list",g);const E=new Map,y=g.map((e=>new s(e,this.options)));for(const e of y){if(d(e))return[e];E.set(e.value,e)}E.size>1&&E.has("")&&E.delete("");const S=[...E.values()];return r.set(t,S),S}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,r)&&t.set.some((t=>g(t,r)&&e.every((e=>t.every((t=>e.intersects(t,r)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(N(this.set[t],e,this.options))return!0;return!1}}yr=e;const t=function(){if(Er)return vr;Er=1;const e=$r(),t=Symbol("max"),r=Symbol("length"),n=Symbol("lengthCalculator"),s=Symbol("allowStale"),o=Symbol("maxAge"),i=Symbol("dispose"),a=Symbol("noDisposeOnSet"),c=Symbol("lruList"),u=Symbol("cache"),l=Symbol("updateAgeOnGet"),p=()=>1,h=(e,t,r)=>{const n=e[u].get(t);if(n){const t=n.value;if(f(e,t)){if(m(e,n),!e[s])return}else r&&(e[l]&&(n.value.now=Date.now()),e[c].unshiftNode(n));return t.value}},f=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[o]&&r>e[o]},d=e=>{if(e[r]>e[t])for(let n=e[c].tail;e[r]>e[t]&&null!==n;){const t=n.prev;m(e,n),n=t}},m=(e,t)=>{if(t){const n=t.value;e[i]&&e[i](n.key,n.value),e[r]-=n.length,e[u].delete(n.key),e[c].removeNode(t)}};class g{constructor(e,t,r,n,s){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=s||0}}const v=(e,t,r,n)=>{let o=r.value;f(e,o)&&(m(e,r),e[s]||(o=void 0)),o&&t.call(n,o.value,o.key,e)};return vr=class{constructor(e){if("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[t]=e.max||1/0;const r=e.length||p;if(this[n]="function"!=typeof r?p:r,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[i]=e.dispose,this[a]=e.noDisposeOnSet||!1,this[l]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,d(this)}get max(){return this[t]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[o]=e,d(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[n]&&(this[n]=e,this[r]=0,this[c].forEach((e=>{e.length=this[n](e.value,e.key),this[r]+=e.length}))),d(this)}get lengthCalculator(){return this[n]}get length(){return this[r]}get itemCount(){return this[c].length}rforEach(e,t){t=t||this;for(let r=this[c].tail;null!==r;){const n=r.prev;v(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[c].head;null!==r;){const n=r.next;v(this,e,r,t),r=n}}keys(){return this[c].toArray().map((e=>e.key))}values(){return this[c].toArray().map((e=>e.value))}reset(){this[i]&&this[c]&&this[c].length&&this[c].forEach((e=>this[i](e.key,e.value))),this[u]=new Map,this[c]=new e,this[r]=0}dump(){return this[c].map((e=>!f(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[c]}set(e,s,l){if((l=l||this[o])&&"number"!=typeof l)throw new TypeError("maxAge must be a number");const p=l?Date.now():0,h=this[n](s,e);if(this[u].has(e)){if(h>this[t])return m(this,this[u].get(e)),!1;const n=this[u].get(e).value;return this[i]&&(this[a]||this[i](e,n.value)),n.now=p,n.maxAge=l,n.value=s,this[r]+=h-n.length,n.length=h,this.get(e),d(this),!0}const f=new g(e,s,h,p,l);return f.length>this[t]?(this[i]&&this[i](e,s),!1):(this[r]+=f.length,this[c].unshift(f),this[u].set(e,this[c].head),d(this),!0)}has(e){if(!this[u].has(e))return!1;const t=this[u].get(e).value;return!f(this,t)}get(e){return h(this,e,!0)}peek(e){return h(this,e,!1)}pop(){const e=this[c].tail;return e?(m(this,e),e.value):null}del(e){m(this,this[u].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],s=n.e||0;if(0===s)this.set(n.k,n.v);else{const e=s-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[u].forEach(((e,t)=>h(this,t,!1)))}},vr}(),r=new t({max:1e3}),n=tt,s=Or(),o=Qe,i=ft,{re:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:p}=Ye.exports,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:f}=Ze,d=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},v=(e,t)=>(o("comp",e,t),e=R(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=I(e,t),o("xrange",e),e=w(e,t),o("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const r=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(r,((t,r,n,s,i)=>{let a;return o("tilde",e,t,r,n,s,i),E(r)?a="":E(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:E(s)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(o("replaceTilde pr",i),a=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,o("tilde return",a),a}))},R=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{o("caret",e,t);const r=t.loose?a[c.CARETLOOSE]:a[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,a)=>{let c;return o("caret",e,t,r,s,i,a),E(r)?c="":E(s)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(i)?c="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:a?(o("replaceCaret pr",a),c="0"===r?"0"===s?`>=${r}.${s}.${i}-${a} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}-${a} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i}-${a} <${+r+1}.0.0-0`):(o("no pr"),c="0"===r?"0"===s?`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i} <${+r+1}.0.0-0`),o("caret return",c),c}))},I=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>$(e,t))).join(" ")),$=(e,t)=>{e=e.trim();const r=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(r,((r,n,s,i,a,c)=>{o("xRange",e,r,n,s,i,a,c);const u=E(s),l=u||E(i),p=l||E(a),h=p;return"="===n&&h&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(l&&(i=0),a=0,">"===n?(n=">=",l?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",l?s=+s+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+s}.${i}.${a}${c}`):l?r=`>=${s}.0.0${c} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`),o("xRange return",r),r}))},w=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),O=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),C=e=>(t,r,n,s,o,i,a,c,u,l,p,h,f)=>`${r=E(n)?"":E(s)?`>=${n}.0.0${e?"-0":""}`:E(o)?`>=${n}.${s}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=E(u)?"":E(l)?`<${+u+1}.0.0-0`:E(p)?`<${u}.${+l+1}.0-0`:h?`<=${u}.${l}.${p}-${h}`:e?`<${u}.${l}.${+p+1}-0`:`<=${c}`}`.trim(),N=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(o(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0};return yr}function Or(){if(br)return Rr;br=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(n,s){if(s=r(s),n instanceof t){if(n.loose===!!s.loose)return n;n=n.value}i("comparator",n,s),this.options=s,this.loose=!!s.loose,this.parse(n),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const r=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],o=t.match(r);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new a(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new a(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,n).test(this.value):""===e.operator?""===e.value||new c(this.value,n).test(e.semver):(!(n=r(n)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}Rr=t;const r=tt,{re:n,t:s}=Ye.exports,o=cr,i=Qe,a=ft,c=wr();return Rr}const Cr=wr();var Nr=(e,t,r)=>{try{t=new Cr(t,r)}catch(e){return!1}return t.test(e)};const Ar=wr();var xr=(e,t)=>new Ar(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const Tr=ft,Lr=wr();var Fr=(e,t,r)=>{let n=null,s=null,o=null;try{o=new Lr(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(n&&-1!==s.compare(e)||(n=e,s=new Tr(n,r)))})),n};const Pr=ft,jr=wr();var Jr=(e,t,r)=>{let n=null,s=null,o=null;try{o=new jr(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(n&&1!==s.compare(e)||(n=e,s=new Pr(n,r)))})),n};const _r=ft,Mr=wr(),Dr=Ut;var Vr=(e,t)=>{e=new Mr(e,t);let r=new _r("0.0.0");if(e.test(r))return r;if(r=new _r("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let s=null;n.forEach((e=>{const t=new _r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!Dr(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||r&&!Dr(r,s)||(r=s)}return r&&e.test(r)?r:null};const Br=wr();var kr=(e,t)=>{try{return new Br(e,t).range||"*"}catch(e){return null}};const Gr=ft,zr=Or(),{ANY:Ur}=zr,Hr=wr(),Xr=Nr,Wr=Ut,qr=Xt,Yr=tr,Zr=Kt;var Qr=(e,t,r,n)=>{let s,o,i,a,c;switch(e=new Gr(e,n),t=new Hr(t,n),r){case">":s=Wr,o=Yr,i=qr,a=">",c=">=";break;case"<":s=qr,o=Zr,i=Wr,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Xr(e,t,n))return!1;for(let r=0;r<t.set.length;++r){const u=t.set[r];let l=null,p=null;if(u.forEach((e=>{e.semver===Ur&&(e=new zr(">=0.0.0")),l=l||e,p=p||e,s(e.semver,l.semver,n)?l=e:i(e.semver,p.semver,n)&&(p=e)})),l.operator===a||l.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&i(e,p.semver))return!1}return!0};const Kr=Qr;var en=(e,t,r)=>Kr(e,t,">",r);const tn=Qr;var rn=(e,t,r)=>tn(e,t,"<",r);const nn=wr();var sn=(e,t,r)=>(e=new nn(e,r),t=new nn(t,r),e.intersects(t,r));const on=Nr,an=Ft;const cn=wr(),un=Or(),{ANY:ln}=un,pn=Nr,hn=Ft,fn=[new un(">=0.0.0-0")],dn=[new un(">=0.0.0")],mn=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===ln){if(1===t.length&&t[0].semver===ln)return!0;e=r.includePrerelease?fn:dn}if(1===t.length&&t[0].semver===ln){if(r.includePrerelease)return!0;t=dn}const n=new Set;let s,o,i,a,c,u,l;for(const t of e)">"===t.operator||">="===t.operator?s=gn(s,t,r):"<"===t.operator||"<="===t.operator?o=vn(o,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&o){if(i=hn(s.semver,o.semver,r),i>0)return null;if(0===i&&(">="!==s.operator||"<="!==o.operator))return null}for(const e of n){if(s&&!pn(e,String(s),r))return null;if(o&&!pn(e,String(o),r))return null;for(const n of t)if(!pn(e,String(n),r))return!1;return!0}let p=!(!o||r.includePrerelease||!o.semver.prerelease.length)&&o.semver,h=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;p&&1===p.prerelease.length&&"<"===o.operator&&0===p.prerelease[0]&&(p=!1);for(const e of t){if(l=l||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,s)if(h&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===h.major&&e.semver.minor===h.minor&&e.semver.patch===h.patch&&(h=!1),">"===e.operator||">="===e.operator){if(a=gn(s,e,r),a===e&&a!==s)return!1}else if(">="===s.operator&&!pn(s.semver,String(e),r))return!1;if(o)if(p&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===p.major&&e.semver.minor===p.minor&&e.semver.patch===p.patch&&(p=!1),"<"===e.operator||"<="===e.operator){if(c=vn(o,e,r),c===e&&c!==o)return!1}else if("<="===o.operator&&!pn(o.semver,String(e),r))return!1;if(!e.operator&&(o||s)&&0!==i)return!1}return!(s&&u&&!o&&0!==i)&&(!(o&&l&&!s&&0!==i)&&(!h&&!p))},gn=(e,t,r)=>{if(!e)return t;const n=hn(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},vn=(e,t,r)=>{if(!e)return t;const n=hn(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};var En=(e,t,r={})=>{if(e===t)return!0;e=new cn(e,r),t=new cn(t,r);let n=!1;e:for(const s of e.set){for(const e of t.set){const t=mn(s,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0};const yn=Ye.exports,Sn=Ze,Rn=ft,bn=st,In=(e,t,r)=>{const n=[];let s=null,o=null;const i=e.sort(((e,t)=>an(e,t,r)));for(const e of i){on(e,t,r)?(o=e,s||(s=e)):(o&&n.push([s,o]),o=null,s=null)}s&&n.push([s,null]);const a=[];for(const[e,t]of n)e===t?a.push(e):t||e!==i[0]?t?e===i[0]?a.push(`<=${t}`):a.push(`${e} - ${t}`):a.push(`>=${e}`):a.push("*");const c=a.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return c.length<u.length?c:t};var $n,wn,On,Cn={parse:mt,valid:vt,clean:yt,inc:Rt,diff:It,major:wt,minor:Ct,patch:At,prerelease:Tt,compare:Ft,rcompare:jt,compareLoose:_t,compareBuild:Dt,sort:Bt,rsort:Gt,gt:Ut,lt:Xt,eq:qt,neq:Zt,gte:Kt,lte:tr,cmp:cr,coerce:Ir,Comparator:Or(),Range:wr(),satisfies:Nr,toComparators:xr,maxSatisfying:Fr,minSatisfying:Jr,minVersion:Vr,validRange:kr,outside:Qr,gtr:en,ltr:rn,intersects:sn,simplifyRange:In,subset:En,SemVer:Rn,re:yn.re,src:yn.src,tokens:yn.t,SEMVER_SPEC_VERSION:Sn.SEMVER_SPEC_VERSION,RELEASE_TYPES:Sn.RELEASE_TYPES,compareIdentifiers:bn.compareIdentifiers,rcompareIdentifiers:bn.rcompareIdentifiers};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=Cn,r=T,n=i;e.VersionStruct=(0,r.refine)((0,r.string)(),"Version",(e=>null!==(0,t.valid)(e)||`Expected SemVer version, got "${e}"`)),e.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",(e=>null!==(0,t.validRange)(e)||`Expected SemVer range, got "${e}"`)),e.isValidSemVerVersion=function(t){return(0,r.is)(t,e.VersionStruct)},e.isValidSemVerRange=function(t){return(0,r.is)(t,e.VersionRangeStruct)},e.assertIsSemVerVersion=function(t){(0,n.assertStruct)(t,e.VersionStruct)},e.assertIsSemVerRange=function(t){(0,n.assertStruct)(t,e.VersionRangeStruct)},e.gtVersion=function(e,r){return(0,t.gt)(e,r)},e.gtRange=function(e,r){return(0,t.gtr)(e,r)},e.satisfiesVersionRange=function(e,r){return(0,t.satisfies)(e,r,{includePrerelease:!0})}}(qe),$n=o,wn=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),On=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||wn(t,e,r)},Object.defineProperty($n,"__esModule",{value:!0}),On(i,$n),On(j,$n),On(M,$n),On(te,$n),On(se,$n),On(ge,$n),On(D,$n),On(Re,$n),On(Ne,$n),On(be,$n),On(ze,$n),On(Xe,$n),On(We,$n),On(qe,$n);export{Cn as a,o as d,Ae as s};
|