/* bignumber.js v8.1.1 https://github.com/MikeMcl/bignumber.js/LICENCE */ !function(e){"use strict";var r,x=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,U=Math.ceil,I=Math.floor,T="[BigNumber Error] ",C=T+"Number primitive has more than 15 significant digits: ",M=1e14,G=14,k=9007199254740991,F=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],j=1e7,q=1e9;function $(e){var r=0|e;return 0o[s]^n?1:-1;return u==l?0:l(t=e.length)){for(i=n,r-=t;--r;i+=n);e+=i}else rb?c.c=c.e=null:e.eb)c.c=c.e=null;else if(ob?e.c=e.e=null:e.c=n=a.length){if(!t)break e;for(;a.length<=l;a.push(0));u=c=0,s=(o%=G)-G+(i=1)}else{for(u=f=a[l],i=1;10<=f;f/=10,i++);c=(s=(o%=G)-G+i)<0?0:u/h[i-s-1]%10|0}if(t=t||r<0||null!=a[l+1]||(s<0?u:u%h[i-s-1]),t=n<4?(c||t)&&(0==n||n==(e.s<0?3:2)):5b?e.c=e.e=null:e.e>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),r[s]=n[0],r[s+1]=n[1]):(f.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw O=!1,Error(T+"crypto unavailable");for(r=crypto.randomBytes(i*=7);sn-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(e,r,n,t,i){var o,s,f,u,l,c,a,h,g=e.indexOf("."),p=y,w=N;for(0<=g&&(u=E,E=0,e=e.replace(".",""),c=(h=new _(r)).pow(e.length-g),E=u,h.c=d(Y(z(c.c),c.e,"0"),10,n,m),h.e=h.c.length),f=u=(a=d(e,r,n,i?(o=S,m):(o=m,S))).length;0==a[--u];a.pop());if(!a[0])return o.charAt(0);if(g<0?--f:(c.c=a,c.e=f,c.s=t,a=(c=v(c,h,p,w,n)).c,l=c.r,f=c.e),g=a[s=f+p+1],u=n/2,l=l||s<0||null!=a[s+1],l=w<4?(null!=g||l)&&(0==w||w==(c.s<0?3:2)):un;)a[s]=0,s||(++f,a=[1].concat(a));for(u=a.length;!a[--u];);for(g=0,e="";g<=u;e+=o.charAt(a[g++]));e=Y(e,f,o.charAt(0))}return e}}(),v=function(){function S(e,r,n){var t,i,o,s,f=0,u=e.length,l=r%j,c=r/j|0;for(e=e.slice();u--;)f=((i=l*(o=e[u]%j)+(t=c*o+(s=e[u]/j|0)*l)%j*j+f)/n|0)+(t/j|0)+c*s,e[u]=i%n;return f&&(e=[f].concat(e)),e}function B(e,r,n,t){var i,o;if(n!=t)o=tr[i]?1:-1;break}return o}function R(e,r,n,t){for(var i=0;n--;)e[n]-=i,i=e[n](E[f]||0)&&s--,O<0)g.push(1),u=!0;else{for(v=E.length,N=A.length,O+=2,1<(l=I(i/(A[f=0]+1)))&&(A=S(A,l,i),E=S(E,l,i),N=A.length,v=E.length),d=N,w=(p=E.slice(0,N)).length;w=i/2&&y++;do{if(l=0,(o=B(A,p,N,w))<0){if(m=p[0],N!=w&&(m=m*i+(p[1]||0)),1<(l=I(m/y)))for(i<=l&&(l=i-1),a=(c=S(A,l,i)).length,w=p.length;1==B(c,p,a,w);)l--,R(c,No&&(l.c.length=o):t&&(l=l.mod(r))}if(i){if(0===(i=I(i/2)))break;u=i%2}else if(D(e=e.times(n),e.e+1,1),14o&&(c.c.length=o):t&&(c=c.mod(r))}return t?l:(f&&(l=w.div(l)),r?l.mod(r):o?D(l,E,N,void 0):l)},t.integerValue=function(e){var r=new _(this);return null==e?e=N:V(e,0,8),D(r,r.e+1,e)},t.isEqualTo=t.eq=function(e,r){return 0===H(this,new _(e,r))},t.isFinite=function(){return!!this.c},t.isGreaterThan=t.gt=function(e,r){return 0this.c.length-2},t.isLessThan=t.lt=function(e,r){return H(this,new _(e,r))<0},t.isLessThanOrEqualTo=t.lte=function(e,r){return-1===(r=H(this,new _(e,r)))||0===r},t.isNaN=function(){return!this.s},t.isNegative=function(){return this.s<0},t.isPositive=function(){return 0t&&(t=this.e+1),t},t.shiftedBy=function(e){return V(e,-k,k),this.times("1e"+e)},t.squareRoot=t.sqrt=function(){var e,r,n,t,i,o=this,s=o.c,f=o.s,u=o.e,l=y+4,c=new _("0.5");if(1!==f||!s||!s[0])return new _(!f||f<0&&(!s||s[0])?NaN:s?o:1/0);if((n=0==(f=Math.sqrt(+P(o)))||f==1/0?(((r=z(s)).length+u)%2==0&&(r+="0"),f=Math.sqrt(+r),u=$((u+1)/2)-(u<0||u%2),new _(r=f==1/0?"1e"+u:(r=f.toExponential()).slice(0,r.indexOf("e")+1)+u)):new _(f+"")).c[0])for((f=(u=n.e)+l)<3&&(f=0);;)if(i=n,n=c.times(i.plus(v(o,i,l,1))),z(i.c).slice(0,f)===(r=z(n.c)).slice(0,f)){if(n.e