1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`3bd67c7db02bdfc0f73c702a8f0decf0fd22bbd4`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`61cf0a6f-3520-4ce9-889c-4d8c84e9b963`,e._sentryDebugIdIdentifier=`sentry-dbid-61cf0a6f-3520-4ce9-889c-4d8c84e9b963`)}catch{}})();import{t as e}from"./chunk-T8hQ4Pfu.js";import{t}from"./dist-BgAK7GEw.js";var n=e(((e,n)=>{(function(e,n){function r(e,t){if(!e)throw Error(t||`Assertion failed`)}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&((t===`le`||t===`be`)&&(n=t,t=10),this._init(e||0,t||10,n||`be`))}typeof e==`object`?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var o;try{o=typeof window<`u`&&window.Buffer!==void 0?window.Buffer:t().Buffer}catch{}a.isBN=function(e){return e instanceof a?!0:typeof e==`object`&&!!e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if(typeof e==`number`)return this._initNumber(e,t,n);if(typeof e==`object`)return this._initArray(e,t,n);t===`hex`&&(t=16),r(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,``);var i=0;e[0]===`-`&&(i++,this.negative=1),i<e.length&&(t===16?this._parseHex(e,i,n):(this._parseBase(e,t,i),n===`le`&&this._initArray(this.toArray(),t,n)))},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n===`le`&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r(typeof e.length==`number`),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(n===`be`)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);else if(n===`le`)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);return this._strip()};function s(e,t){var n=e.charCodeAt(t);if(n>=48&&n<=57)return n-48;if(n>=65&&n<=70)return n-55;if(n>=97&&n<=102)return n-87;r(!1,`Invalid character in `+e)}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i=0,a=0,o;if(n===`be`)for(r=e.length-1;r>=t;r-=2)o=c(e,t,r)<<i,this.words[a]|=o&67108863,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)o=c(e,t,r)<<i,this.words[a]|=o&67108863,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this._strip()};function l(e,t,n,i){for(var a=0,o=0,s=Math.min(e.length,n),c=t;c<s;c++){var l=e.charCodeAt(c)-48;a*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o<i,`Invalid character`),a+=o}return a}a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(o!==0){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},a.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red};function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.prototype._move=function(e){u(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<`u`&&typeof Symbol.for==`function`)try{a.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=d}catch{a.prototype.inspect=d}else a.prototype.inspect=d;function d(){return(this.red?`<BN-R: `:`<BN: `)+this.toString(16)+`>`}var f=`.0.00.000.0000.00000.000000.0000000.00000000.000000000.0000000000.00000000000.000000000000.0000000000000.00000000000000.000000000000000.0000000000000000.00000000000000000.000000000000000000.0000000000000000000.00000000000000000000.000000000000000000000.0000000000000000000000.00000000000000000000000.000000000000000000000000.0000000000000000000000000`.split(`.`),p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 11,573 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){e||=10,t=t|0||1;var n;if(e===16||e===`hex`){n=``;for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=((s<<i|a)&16777215).toString(16);a=s>>>24-i&16777215,i+=2,i>=26&&(i-=26,o--),n=a!==0||o!==this.length-1?f[6-c.length]+c+n:c+n}for(a!==0&&(n=a.toString(16)+n);n.length%t!==0;)n=`0`+n;return this.negative!==0&&(n=`-`+n),n}if(e===(e|0)&&e>=2&&e<=36){var l=p[e],u=m[e];n=``;var d=this.clone();for(d.negative=0;!d.isZero();){var h=d.modrn(u).toString(e);d=d.idivn(u),n=d.isZero()?h+n:f[l-h.length]+h+n}for(this.isZero()&&(n=`0`+n);n.length%t!==0;)n=`0`+n;return this.negative!==0&&(n=`-`+n),n}r(!1,`Base should be between 2 and 36`)},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,`Number can only safely store up to 53 bits`),this.negative===0?e:-e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var h=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};a.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,`byte array longer than desired length`),r(a>0,`Requested array length <= 0`);var o=h(e,a);return this[`_toArrayLike`+(t===`le`?`LE`:`BE`)](o,i),o},a.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n++]=o&255,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),a===6?(n<e.length&&(e[n++]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n--]=o&255,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),a===6?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,n=0;return t&8191||(n+=13,t>>>=13),t&127||(n+=7,t>>>=7),t&15||(n+=4,t>>>=4),t&3||(n+=2,t>>>=2),t&1||n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function g(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,n!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative===0?this.clone():this.abs().inotn(e).iaddn(1)},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return r((this.negative|e.negative)===0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return r((this.negative|e.negative)===0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return r((this.negative|e.negative)===0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r(typeof e==`number`&&e>=0);var t=Math.ceil(e/26)|0,n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=~this.words[i]&67108863;return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r(typeof e==`number`&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<<i:this.words[n]=this.words[n]&~(1<<i),this._strip()},a.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var n,r;this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(n.words[a]|0)+(r.words[a]|0)+i,this.words[a]=t&67108863,i=t>>>26;for(;i!==0&&a<n.length;a++)t=(n.words[a]|0)+i,this.words[a]=t&67108863,i=t>>>26;if(this.length=n.length,i!==0)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=e):(r=e,i=this);for(var a=0,o=0;o<i.length;o++)t=(r.words[o]|0)-(i.words[o]|0)+a,a=t>>26,this.words[o]=t&67108863;for(;a!==0&&o<r.length;o++)t=(r.words[o]|0)+a,a=t>>26,this.words[o]=t&67108863;if(a===0&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};function _(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=e.words[0]|0,a=t.words[0]|0,o=i*a,s=o&67108863,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,d=c&67108863,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var m=l-p|0;i=e.words[m]|0,a=t.words[p]|0,o=i*a+d,u+=o/67108864|0,d=o&67108863}n.words[l]=d|0,c=u|0}return c===0?n.length--:n.words[l]=c|0,n._strip()}var v=function(e,t,n){var r=e.words,i=t.words,a=n.words,o=0,s,c,l,u=r[0]|0,d=u&8191,f=u>>>13,p=r[1]|0,m=p&8191,h=p>>>13,g=r[2]|0,_=g&8191,v=g>>>13,ee=r[3]|0,y=ee&8191,b=ee>>>13,te=r[4]|0,x=te&8191,S=te>>>13,ne=r[5]|0,C=ne&8191,w=ne>>>13,T=r[6]|0,E=T&8191,D=T>>>13,re=r[7]|0,O=re&8191,k=re>>>13,ie=r[8]|0,A=ie&8191,j=ie>>>13,ae=r[9]|0,M=ae&8191,N=ae>>>13,oe=i[0]|0,P=oe&8191,F=oe>>>13,se=i[1]|0,I=se&8191,L=se>>>13,ce=i[2]|0,R=ce&8191,z=ce>>>13,le=i[3]|0,B=le&8191,V=le>>>13,ue=i[4]|0,H=ue&8191,U=ue>>>13,de=i[5]|0,W=de&8191,G=de>>>13,fe=i[6]|0,K=fe&8191,q=fe>>>13,pe=i[7]|0,J=pe&8191,Y=pe>>>13,me=i[8]|0,X=me&8191,Z=me>>>13,he=i[9]|0,Q=he&8191,$=he>>>13;n.negative=e.negative^t.negative,n.length=19,s=Math.imul(d,P),c=Math.imul(d,F),c=c+Math.imul(f,P)|0,l=Math.imul(f,F);var ge=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ge>>>26)|0,ge&=67108863,s=Math.imul(m,P),c=Math.imul(m,F),c=c+Math.imul(h,P)|0,l=Math.imul(h,F),s=s+Math.imul(d,I)|0,c=c+Math.imul(d,L)|0,c=c+Math.imul(f,I)|0,l=l+Math.imul(f,L)|0;var _e=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(_e>>>26)|0,_e&=67108863,s=Math.imul(_,P),c=Math.imul(_,F),c=c+Math.imul(v,P)|0,l=Math.imul(v,F),s=s+Math.imul(m,I)|0,c=c+Math.imul(m,L)|0,c=c+Math.imul(h,I)|0,l=l+Math.imul(h,L)|0,s=s+Math.imul(d,R)|0,c=c+Math.imul(d,z)|0,c=c+Math.imul(f,R)|0,l=l+Math.imul(f,z)|0;var ve=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ve>>>26)|0,ve&=67108863,s=Math.imul(y,P),c=Math.imul(y,F),c=c+Math.imul(b,P)|0,l=Math.imul(b,F),s=s+Math.imul(_,I)|0,c=c+Math.imul(_,L)|0,c=c+Math.imul(v,I)|0,l=l+Math.imul(v,L)|0,s=s+Math.imul(m,R)|0,c=c+Math.imul(m,z)|0,c=c+Math.imul(h,R)|0,l=l+Math.imul(h,z)|0,s=s+Math.imul(d,B)|0,c=c+Math.imul(d,V)|0,c=c+Math.imul(f,B)|0,l=l+Math.imul(f,V)|0;var ye=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ye>>>26)|0,ye&=67108863,s=Math.imul(x,P),c=Math.imul(x,F),c=c+Math.imul(S,P)|0,l=Math.imul(S,F),s=s+Math.imul(y,I)|0,c=c+Math.imul(y,L)|0,c=c+Math.imul(b,I)|0,l=l+Math.imul(b,L)|0,s=s+Math.imul(_,R)|0,c=c+Math.imul(_,z)|0,c=c+Math.imul(v,R)|0,l=l+Math.imul(v,z)|0,s=s+Math.imul(m,B)|0,c=c+Math.imul(m,V)|0,c=c+Math.imul(h,B)|0,l=l+Math.imul(h,V)|0,s=s+Math.imul(d,H)|0,c=c+Math.imul(d,U)|0,c=c+Math.imul(f,H)|0,l=l+Math.imul(f,U)|0;var be=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(be>>>26)|0,be&=67108863,s=Math.imul(C,P),c=Math.imul(C,F),c=c+Math.imul(w,P)|0,l=Math.imul(w,F),s=s+Math.imul(x,I)|0,c=c+Math.imul(x,L)|0,c=c+Math.imul(S,I)|0,l=l+Math.imul(S,L)|0,s=s+Math.imul(y,R)|0,c=c+Math.imul(y,z)|0,c=c+Math.imul(b,R)|0,l=l+Math.imul(b,z)|0,s=s+Math.imul(_,B)|0,c=c+Math.imul(_,V)|0,c=c+Math.imul(v,B)|0,l=l+Math.imul(v,V)|0,s=s+Math.imul(m,H)|0,c=c+Math.imul(m,U)|0,c=c+Math.imul(h,H)|0,l=l+Math.imul(h,U)|0,s=s+Math.imul(d,W)|0,c=c+Math.imul(d,G)|0,c=c+Math.imul(f,W)|0,l=l+Math.imul(f,G)|0;var xe=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(xe>>>26)|0,xe&=67108863,s=Math.imul(E,P),c=Math.imul(E,F),c=c+Math.imul(D,P)|0,l=Math.imul(D,F),s=s+Math.imul(C,I)|0,c=c+Math.imul(C,L)|0,c=c+Math.imul(w,I)|0,l=l+Math.imul(w,L)|0,s=s+Math.imul(x,R)|0,c=c+Math.imul(x,z)|0,c=c+Math.imul(S,R)|0,l=l+Math.imul(S,z)|0,s=s+Math.imul(y,B)|0,c=c+Math.imul(y,V)|0,c=c+Math.imul(b,B)|0,l=l+Math.imul(b,V)|0,s=s+Math.imul(_,H)|0,c=c+Math.imul(_,U)|0,c=c+Math.imul(v,H)|0,l=l+Math.imul(v,U)|0,s=s+Math.imul(m,W)|0,c=c+Math.imul(m,G)|0,c=c+Math.imul(h,W)|0,l=l+Math.imul(h,G)|0,s=s+Math.imul(d,K)|0,c=c+Math.imul(d,q)|0,c=c+Math.imul(f,K)|0,l=l+Math.imul(f,q)|0;var Se=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Se>>>26)|0,Se&=67108863,s=Math.imul(O,P),c=Math.imul(O,F),c=c+Math.imul(k,P)|0,l=Math.imul(k,F),s=s+Math.imul(E,I)|0,c=c+Math.imul(E,L)|0,c=c+Math.imul(D,I)|0,l=l+Math.imul(D,L)|0,s=s+Math.imul(C,R)|0,c=c+Math.imul(C,z)|0,c=c+Math.imul(w,R)|0,l=l+Math.imul(w,z)|0,s=s+Math.imul(x,B)|0,c=c+Math.imul(x,V)|0,c=c+Math.imul(S,B)|0,l=l+Math.imul(S,V)|0,s=s+Math.imul(y,H)|0,c=c+Math.imul(y,U)|0,c=c+Math.imul(b,H)|0,l=l+Math.imul(b,U)|0,s=s+Math.imul(_,W)|0,c=c+Math.imul(_,G)|0,c=c+Math.imul(v,W)|0,l=l+Math.imul(v,G)|0,s=s+Math.imul(m,K)|0,c=c+Math.imul(m,q)|0,c=c+Math.imul(h,K)|0,l=l+Math.imul(h,q)|0,s=s+Math.imul(d,J)|0,c=c+Math.imul(d,Y)|0,c=c+Math.imul(f,J)|0,l=l+Math.imul(f,Y)|0;
1var Ce=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,s=Math.imul(A,P),c=Math.imul(A,F),c=c+Math.imul(j,P)|0,l=Math.imul(j,F),s=s+Math.imul(O,I)|0,c=c+Math.imul(O,L)|0,c=c+Math.imul(k,I)|0,l=l+Math.imul(k,L)|0,s=s+Math.imul(E,R)|0,c=c+Math.imul(E,z)|0,c=c+Math.imul(D,R)|0,l=l+Math.imul(D,z)|0,s=s+Math.imul(C,B)|0,c=c+Math.imul(C,V)|0,c=c+Math.imul(w,B)|0,l=l+Math.imul(w,V)|0,s=s+Math.imul(x,H)|0,c=c+Math.imul(x,U)|0,c=c+Math.imul(S,H)|0,l=l+Math.imul(S,U)|0,s=s+Math.imul(y,W)|0,c=c+Math.imul(y,G)|0,c=c+Math.imul(b,W)|0,l=l+Math.imul(b,G)|0,s=s+Math.imul(_,K)|0,c=c+Math.imul(_,q)|0,c=c+Math.imul(v,K)|0,l=l+Math.imul(v,q)|0,s=s+Math.imul(m,J)|0,c=c+Math.imul(m,Y)|0,c=c+Math.imul(h,J)|0,l=l+Math.imul(h,Y)|0,s=s+Math.imul(d,X)|0,c=c+Math.imul(d,Z)|0,c=c+Math.imul(f,X)|0,l=l+Math.imul(f,Z)|0;var we=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(we>>>26)|0,we&=67108863,s=Math.imul(M,P),c=Math.imul(M,F),c=c+Math.imul(N,P)|0,l=Math.imul(N,F),s=s+Math.imul(A,I)|0,c=c+Math.imul(A,L)|0,c=c+Math.imul(j,I)|0,l=l+Math.imul(j,L)|0,s=s+Math.imul(O,R)|0,c=c+Math.imul(O,z)|0,c=c+Math.imul(k,R)|0,l=l+Math.imul(k,z)|0,s=s+Math.imul(E,B)|0,c=c+Math.imul(E,V)|0,c=c+Math.imul(D,B)|0,l=l+Math.imul(D,V)|0,s=s+Math.imul(C,H)|0,c=c+Math.imul(C,U)|0,c=c+Math.imul(w,H)|0,l=l+Math.imul(w,U)|0,s=s+Math.imul(x,W)|0,c=c+Math.imul(x,G)|0,c=c+Math.imul(S,W)|0,l=l+Math.imul(S,G)|0,s=s+Math.imul(y,K)|0,c=c+Math.imul(y,q)|0,c=c+Math.imul(b,K)|0,l=l+Math.imul(b,q)|0,s=s+Math.imul(_,J)|0,c=c+Math.imul(_,Y)|0,c=c+Math.imul(v,J)|0,l=l+Math.imul(v,Y)|0,s=s+Math.imul(m,X)|0,c=c+Math.imul(m,Z)|0,c=c+Math.imul(h,X)|0,l=l+Math.imul(h,Z)|0,s=s+Math.imul(d,Q)|0,c=c+Math.imul(d,$)|0,c=c+Math.imul(f,Q)|0,l=l+Math.imul(f,$)|0;var Te=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Te>>>26)|0,Te&=67108863,s=Math.imul(M,I),c=Math.imul(M,L),c=c+Math.imul(N,I)|0,l=Math.imul(N,L),s=s+Math.imul(A,R)|0,c=c+Math.imul(A,z)|0,c=c+Math.imul(j,R)|0,l=l+Math.imul(j,z)|0,s=s+Math.imul(O,B)|0,c=c+Math.imul(O,V)|0,c=c+Math.imul(k,B)|0,l=l+Math.imul(k,V)|0,s=s+Math.imul(E,H)|0,c=c+Math.imul(E,U)|0,c=c+Math.imul(D,H)|0,l=l+Math.imul(D,U)|0,s=s+Math.imul(C,W)|0,c=c+Math.imul(C,G)|0,c=c+Math.imul(w,W)|0,l=l+Math.imul(w,G)|0,s=s+Math.imul(x,K)|0,c=c+Math.imul(x,q)|0,c=c+Math.imul(S,K)|0,l=l+Math.imul(S,q)|0,s=s+Math.imul(y,J)|0,c=c+Math.imul(y,Y)|0,c=c+Math.imul(b,J)|0,l=l+Math.imul(b,Y)|0,s=s+Math.imul(_,X)|0,c=c+Math.imul(_,Z)|0,c=c+Math.imul(v,X)|0,l=l+Math.imul(v,Z)|0,s=s+Math.imul(m,Q)|0,c=c+Math.imul(m,$)|0,c=c+Math.imul(h,Q)|0,l=l+Math.imul(h,$)|0;var Ee=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,s=Math.imul(M,R),c=Math.imul(M,z),c=c+Math.imul(N,R)|0,l=Math.imul(N,z),s=s+Math.imul(A,B)|0,c=c+Math.imul(A,V)|0,c=c+Math.imul(j,B)|0,l=l+Math.imul(j,V)|0,s=s+Math.imul(O,H)|0,c=c+Math.imul(O,U)|0,c=c+Math.imul(k,H)|0,l=l+Math.imul(k,U)|0,s=s+Math.imul(E,W)|0,c=c+Math.imul(E,G)|0,c=c+Math.imul(D,W)|0,l=l+Math.imul(D,G)|0,s=s+Math.imul(C,K)|0,c=c+Math.imul(C,q)|0,c=c+Math.imul(w,K)|0,l=l+Math.imul(w,q)|0,s=s+Math.imul(x,J)|0,c=c+Math.imul(x,Y)|0,c=c+Math.imul(S,J)|0,l=l+Math.imul(S,Y)|0,s=s+Math.imul(y,X)|0,c=c+Math.imul(y,Z)|0,c=c+Math.imul(b,X)|0,l=l+Math.imul(b,Z)|0,s=s+Math.imul(_,Q)|0,c=c+Math.imul(_,$)|0,c=c+Math.imul(v,Q)|0,l=l+Math.imul(v,$)|0;var De=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(De>>>26)|0,De&=67108863,s=Math.imul(M,B),c=Math.imul(M,V),c=c+Math.imul(N,B)|0,l=Math.imul(N,V),s=s+Math.imul(A,H)|0,c=c+Math.imul(A,U)|0,c=c+Math.imul(j,H)|0,l=l+Math.imul(j,U)|0,s=s+Math.imul(O,W)|0,c=c+Math.imul(O,G)|0,c=c+Math.imul(k,W)|0,l=l+Math.imul(k,G)|0,s=s+Math.imul(E,K)|0,c=c+Math.imul(E,q)|0,c=c+Math.imul(D,K)|0,l=l+Math.imul(D,q)|0,s=s+Math.imul(C,J)|0,c=c+Math.imul(C,Y)|0,c=c+Math.imul(w,J)|0,l=l+Math.imul(w,Y)|0,s=s+Math.imul(x,X)|0,c=c+Math.imul(x,Z)|0,c=c+Math.imul(S,X)|0,l=l+Math.imul(S,Z)|0,s=s+Math.imul(y,Q)|0,c=c+Math.imul(y,$)|0,c=c+Math.imul(b,Q)|0,l=l+Math.imul(b,$)|0;var Oe=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,s=Math.imul(M,H),c=Math.imul(M,U),c=c+Math.imul(N,H)|0,l=Math.imul(N,U),s=s+Math.imul(A,W)|0,c=c+Math.imul(A,G)|0,c=c+Math.imul(j,W)|0,l=l+Math.imul(j,G)|0,s=s+Math.imul(O,K)|0,c=c+Math.imul(O,q)|0,c=c+Math.imul(k,K)|0,l=l+Math.imul(k,q)|0,s=s+Math.imul(E,J)|0,c=c+Math.imul(E,Y)|0,c=c+Math.imul(D,J)|0,l=l+Math.imul(D,Y)|0,s=s+Math.imul(C,X)|0,c=c+Math.imul(C,Z)|0,c=c+Math.imul(w,X)|0,l=l+Math.imul(w,Z)|0,s=s+Math.imul(x,Q)|0,c=c+Math.imul(x,$)|0,c=c+Math.imul(S,Q)|0,l=l+Math.imul(S,$)|0;var ke=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ke>>>26)|0,ke&=67108863,s=Math.imul(M,W),c=Math.imul(M,G),c=c+Math.imul(N,W)|0,l=Math.imul(N,G),s=s+Math.imul(A,K)|0,c=c+Math.imul(A,q)|0,c=c+Math.imul(j,K)|0,l=l+Math.imul(j,q)|0,s=s+Math.imul(O,J)|0,c=c+Math.imul(O,Y)|0,c=c+Math.imul(k,J)|0,l=l+Math.imul(k,Y)|0,s=s+Math.imul(E,X)|0,c=c+Math.imul(E,Z)|0,c=c+Math.imul(D,X)|0,l=l+Math.imul(D,Z)|0,s=s+Math.imul(C,Q)|0,c=c+Math.imul(C,$)|0,c=c+Math.imul(w,Q)|0,l=l+Math.imul(w,$)|0;var Ae=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,s=Math.imul(M,K),c=Math.imul(M,q),c=c+Math.imul(N,K)|0,l=Math.imul(N,q),s=s+Math.imul(A,J)|0,c=c+Math.imul(A,Y)|0,c=c+Math.imul(j,J)|0,l=l+Math.imul(j,Y)|0,s=s+Math.imul(O,X)|0,c=c+Math.imul(O,Z)|0,c=c+Math.imul(k,X)|0,l=l+Math.imul(k,Z)|0,s=s+Math.imul(E,Q)|0,c=c+Math.imul(E,$)|0,c=c+Math.imul(D,Q)|0,l=l+Math.imul(D,$)|0;var je=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(je>>>26)|0,je&=67108863,s=Math.imul(M,J),c=Math.imul(M,Y),c=c+Math.imul(N,J)|0,l=Math.imul(N,Y),s=s+Math.imul(A,X)|0,c=c+Math.imul(A,Z)|0,c=c+Math.imul(j,
1X)|0,l=l+Math.imul(j,Z)|0,s=s+Math.imul(O,Q)|0,c=c+Math.imul(O,$)|0,c=c+Math.imul(k,Q)|0,l=l+Math.imul(k,$)|0;var Me=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Me>>>26)|0,Me&=67108863,s=Math.imul(M,X),c=Math.imul(M,Z),c=c+Math.imul(N,X)|0,l=Math.imul(N,Z),s=s+Math.imul(A,Q)|0,c=c+Math.imul(A,$)|0,c=c+Math.imul(j,Q)|0,l=l+Math.imul(j,$)|0;var Ne=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,s=Math.imul(M,Q),c=Math.imul(M,$),c=c+Math.imul(N,Q)|0,l=Math.imul(N,$);var Pe=(o+s|0)+((c&8191)<<13)|0;return o=(l+(c>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a[0]=ge,a[1]=_e,a[2]=ve,a[3]=ye,a[4]=be,a[5]=xe,a[6]=Se,a[7]=Ce,a[8]=we,a[9]=Te,a[10]=Ee,a[11]=De,a[12]=Oe,a[13]=ke,a[14]=Ae,a[15]=je,a[16]=Me,a[17]=Ne,a[18]=Pe,o!==0&&(a[19]=o,n.length++),n};Math.imul||(v=_);function ee(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=r&67108863,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,d=(e.words[u]|0)*(t.words[l]|0),f=d&67108863;o=o+(d/67108864|0)|0,f=f+s|0,s=f&67108863,o=o+(f>>>26)|0,i+=o>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return r===0?n.length--:n.words[a]=r,n._strip()}function y(e,t,n){return ee(e,t,n)}a.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=this.length===10&&e.length===10?v(this,e,t):r<63?_(this,e,t):r<1024?ee(this,e,t):y(this,e,t),n};function b(e,t){this.x=e,this.y=t}b.prototype.makeRBT=function(e){for(var t=Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},b.prototype.revBin=function(e,t,n){if(e===0||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(e&1)<<t-i-1,e>>=1;return r},b.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},b.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=c,f=l,p=0;p<o;p++){var m=n[u+p],h=r[u+p],g=n[u+p+o],_=r[u+p+o],v=d*g-f*_;_=d*_+f*g,g=v,n[u+p]=m+g,r[u+p]=h+_,n[u+p+o]=m-g,r[u+p+o]=h-_,p!==s&&(v=c*d-l*f,f=c*f+l*d,d=v)}},b.prototype.guessLen13b=function(e,t){var n=Math.max(t,e)|1,r=n&1,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},b.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},b.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=Math.round(e[2*r+1]/t)*8192+Math.round(e[2*r]/t)+n;e[r]=i&67108863,n=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,n,i){for(var a=0,o=0;o<t;o++)a+=e[o]|0,n[2*o]=a&8191,a>>>=13,n[2*o+1]=a&8191,a>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(a===0),r((a&-8192)==0)},b.prototype.stub=function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=0;return t},b.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=Array(r),s=Array(r),c=Array(r),l=Array(r),u=Array(r),d=Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,d,r,i);for(var p=0;p<r;p++){var m=s[p]*u[p]-c[p]*d[p];c[p]=s[p]*d[p]+c[p]*u[p],s[p]=m}return this.conjugate(s,c,r),this.transform(s,c,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=Array(this.length+e.length),y(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r(typeof e==`number`),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var a=(this.words[i]|0)*e,o=(a&67108863)+(n&67108863);n>>=26,n+=a/67108864|0,n+=o>>>26,this.words[i]=o&67108863}return n!==0&&(this.words[i]=n,this.length++),this.length=e===0?1:this.length,t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=g(e);
vendor: 7,022 bytes, line 1
1if(t.length===0)return new a(1);for(var n=this,r=0;r<t.length&&t[r]===0;r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())t[r]!==0&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r(typeof e==`number`&&e>=0);var t=e%26,n=(e-t)/26,i=67108863>>>26-t<<26-t,a;if(t!==0){var o=0;for(a=0;a<this.length;a++){var s=this.words[a]&i,c=(this.words[a]|0)-s<<t;this.words[a]=c|o,o=s>>>26-t}o&&(this.words[a]=o,this.length++)}if(n!==0){for(a=this.length-1;a>=0;a--)this.words[a+n]=this.words[a];for(a=0;a<n;a++)this.words[a]=0;this.length+=n}return this._strip()},a.prototype.ishln=function(e){return r(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,t,n){r(typeof e==`number`&&e>=0);var i=t?(t-t%26)/26:0,a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(o!==0)if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(u!==0||l>=i);l--){var d=this.words[l]|0;this.words[l]=u<<26-a|d>>>a,u=d&s}return c&&u!==0&&(c.words[c.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,n){return r(this.negative===0),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r(typeof e==`number`&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return this.length<=n?!1:!!(this.words[n]&i)},a.prototype.imaskn=function(e){r(typeof e==`number`&&e>=0);var t=e%26,n=(e-t)/26;if(r(this.negative===0,`imaskn works only with positive numbers`),this.length<=n)return this;if(t!==0&&n++,this.length=Math.min(n,this.length),t!==0){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r(typeof e==`number`),r(e<67108864),e<0?this.isubn(-e):this.negative===0?this._iaddn(e):this.length===1&&(this.words[0]|0)<=e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r(typeof e==`number`),r(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i=e.length+n,a;this._expand(i);var o,s=0;for(a=0;a<e.length;a++){o=(this.words[a+n]|0)+s;var c=(e.words[a]|0)*t;o-=c&67108863,s=(o>>26)-(c/67108864|0),this.words[a+n]=o&67108863}for(;a<this.length-n;a++)o=(this.words[a+n]|0)+s,s=o>>26,this.words[a+n]=o&67108863;if(s===0)return this._strip();for(r(s===-1),s=0,a=0;a<this.length;a++)o=-(this.words[a]|0)+s,s=o>>26,this.words[a]=o&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,o=i.words[i.length-1]|0;n=26-this._countBits(o),n!==0&&(i=i.ushln(n),r.iushln(n),o=i.words[i.length-1]|0);var s=r.length-i.length,c;if(t!==`mod`){c=new a(null),c.length=s+1,c.words=Array(c.length);for(var l=0;l<c.length;l++)c.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,s);u.negative===0&&(r=u,c&&(c.words[s]=1));for(var d=s-1;d>=0;d--){var f=(r.words[i.length+d]|0)*67108864+(r.words[i.length+d-1]|0);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);r.negative!==0;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);c&&(c.words[d]=f)}return c&&c._strip(),r._strip(),t!==`div`&&n!==0&&r.iushrn(n),{div:c||null,mod:r}},a.prototype.divmod=function(e,t,n){if(r(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var i,o,s;return this.negative!==0&&e.negative===0?(s=this.neg().divmod(e,t),t!==`mod`&&(i=s.div.neg()),t!==`div`&&(o=s.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:i,mod:o}):this.negative===0&&e.negative!==0?(s=this.divmod(e.neg(),t),t!==`mod`&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)===0?e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?t===`div`?{div:this.divn(e.words[0]),mod:null}:t===`mod`?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t):(s=this.neg().divmod(e.neg(),t),t!==`div`&&(o=s.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:s.div,mod:o})},a.prototype.div=function(e){return this.divmod(e,`div`,!1).div},a.prototype.mod=function(e){return this.divmod(e,`mod`,!1).mod},a.prototype.umod=function(e){return this.divmod(e,`mod`,!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=t.div.negative===0?t.mod:t.mod.isub(e),r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||i===1&&a===0?t.div:t.div.negative===0?t.div.iaddn(1):t.div.isubn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(n*i+(this.words[a]|0))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var a=(this.words[i]|0)+n*67108864;this.words[i]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(e.negative===0),r(!e.isZero());var t=this,n=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;(t.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var m=0,h=1;(n.words[0]&h)===0&&m<26;++m,h<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(e.negative===0),r(!e.isZero());var t=this,n=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var i=new a(1),o=new a(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;
vendor: 5,642 bytes, line 1
1(t.words[0]&l)===0&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,d=1;(n.words[0]&d)===0&&u<26;++u,d<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(o)):(n.isub(t),o.isub(i))}var f=t.cmpn(1)===0?i:o;return f.cmpn(0)<0&&f.iadd(e),f},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(i===0||n.cmpn(1)===0)break;t.isub(n)}while(!0);return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(this.words[0]&1)==0},a.prototype.isOdd=function(){return(this.words[0]&1)==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r(typeof e==`number`);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,o=n;a!==0&&o<this.length;o++){var s=this.words[o]|0;s+=a,a=s>>>26,s&=67108863,this.words[o]=s}return a!==0&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this._strip();var n;if(this.length>1)n=1;else{t&&(e=-e),r(e<=67108863,`Number is too big`);var i=this.words[0]|0;n=i===e?0:i<e?-1:1}return this.negative===0?n:-n|0},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative===0?t:-t|0},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=this.words[n]|0,i=e.words[n]|0;if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new T(e)},a.prototype.toRed=function(e){return r(!this.red,`Already a number in reduction context`),r(this.negative===0,`red works only with positives`),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,`fromRed works only with numbers in reduction context`),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,`Already a number in reduction context`),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,`redAdd works only with red numbers`),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,`redIAdd works only with red numbers`),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,`redSub works only with red numbers`),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,`redISub works only with red numbers`),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,`redShl works only with red numbers`),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,`redSqr works only with red numbers`),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,`redISqr works only with red numbers`),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,`redSqrt works only with red numbers`),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,`redInvm works only with red numbers`),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,`redNeg works only with red numbers`),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,`redPow(normalNum)`),this.red._verify1(this),this.red.pow(this,e)};var te={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}x.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t=e,n;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),n=t.bitLength();while(n>this.n);var r=n<this.n?-1:t.ucmp(this.p);return r===0?(t.words[0]=0,t.length=1):r>0?t.isub(this.p):t.strip===void 0?t._strip():t.strip(),t},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)};function S(){x.call(this,`k256`,`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`)}i(S,x),S.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(t.words[t.length++]=a&n,i=10;i<e.length;i++){var o=e.words[i]|0;
vendor: 5,186 bytes, line 1
1e.words[i-10]=(o&n)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,a===0&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=e.words[n]|0;t+=r*977,e.words[n]=t&67108863,t=r*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function ne(){x.call(this,`p224`,`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`)}i(ne,x);function C(){x.call(this,`p192`,`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`)}i(C,x);function w(){x.call(this,`25519`,`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`)}i(w,x),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=(e.words[n]|0)*19+t,i=r&67108863;r>>>=26,e.words[n]=i,t=r}return t!==0&&(e.words[e.length++]=t),e},a._prime=function(e){if(te[e])return te[e];var t;if(e===`k256`)t=new S;else if(e===`p224`)t=new ne;else if(e===`p192`)t=new C;else if(e===`p25519`)t=new w;else throw Error(`Unknown prime `+e);return te[e]=t,t};function T(e){if(typeof e==`string`){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),`modulus must be greater than 1`),this.m=e,this.prime=null}T.prototype._verify1=function(e){r(e.negative===0,`red works only with positives`),r(e.red,`red works only with red numbers`)},T.prototype._verify2=function(e,t){r((e.negative|t.negative)===0,`red works only with positives`),r(e.red&&e.red===t.red,`red works only with red numbers`)},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),t===3){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&i.andln(1)===0;)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,l).cmp(c)!==0;)u.redIAdd(c);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),m=o;p.cmp(s)!==0;){for(var h=p,g=0;h.cmp(s)!==0;g++)h=h.redSqr();r(g<m);var _=this.pow(d,new a(1).iushln(m-g-1));f=f.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return f},T.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative===0?this.imod(t):(t.negative=0,this.imod(t).redNeg())},T.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var n=4,r=Array(1<<n);r[0]=new a(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var o=r[0],s=0,c=0,l=t.bitLength()%26;for(l===0&&(l=26),i=t.length-1;i>=0;i--){for(var u=t.words[i],d=l-1;d>=0;d--){var f=u>>d&1;if(o!==r[0]&&(o=this.sqr(o)),f===0&&s===0){c=0;continue}s<<=1,s|=f,c++,!(c!==n&&(i!==0||d!==0))&&(o=this.mul(o,r[s]),c=0,s=0)}l=26}return o},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)};function E(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(E,T),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(n===void 0||n,e)}));export{n as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.