Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

febs

Package Overview
Dependencies
Maintainers
1
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

febs - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

4

dist/febs/febs.min.js

@@ -1,3 +0,3 @@

function febs(){}!function(n){"use strict";function e(n){function f(n,e){var t,r,i,o,s,l,a=this;if(!(a instanceof f))return H&&E(26,"constructor call without new",n),new f(n,e);if(null!=e&&G(e,2,64,T,"base")){if(e=0|e,l=n+"",10==e)return a=new f(n instanceof f?n:l),R(a,C+a.e+1,$);if((o="number"==typeof n)&&0*n!=0||!new RegExp("^-?"+(t="["+w.slice(0,e)+"]+")+"(?:\\."+t+")?$",37>e?"i":"").test(l))return h(a,l,o,e);o?(a.s=0>1/n?(l=l.slice(1),-1):1,H&&l.replace(/^0\.0*|\./,"").length>15&&E(T,m,n),o=!1):a.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1,l=k(l,10,e,a.s)}else{if(n instanceof f)return a.s=n.s,a.e=n.e,a.c=(n=n.c)?n.slice():n,void(T=0);if((o="number"==typeof n)&&0*n==0){if(a.s=0>1/n?(n=-n,-1):1,n===~~n){for(r=0,i=n;i>=10;i/=10,r++);return a.e=r,a.c=[n],void(T=0)}l=n+""}else{if(!b.test(l=n+""))return h(a,l,o);a.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1}}for((r=l.indexOf("."))>-1&&(l=l.replace(".","")),(i=l.search(/e/i))>0?(0>r&&(r=i),r+=+l.slice(i+1),l=l.substring(0,i)):0>r&&(r=l.length),i=0;48===l.charCodeAt(i);i++);for(s=l.length;48===l.charCodeAt(--s););if(l=l.slice(i,s+1))if(s=l.length,o&&H&&s>15&&(n>N||n!==_(n))&&E(T,m,a.s*n),r=r-i-1,r>U)a.c=a.e=null;else if(L>r)a.c=[a.e=0];else{if(a.e=r,a.c=[],i=(r+1)%x,0>r&&(i+=x),s>i){for(i&&a.c.push(+l.slice(0,i)),s-=x;s>i;)a.c.push(+l.slice(i,i+=x));l=l.slice(i),i=x-l.length}else i-=s;for(;i--;l+="0");a.c.push(+l)}else a.c=[a.e=0];T=0}function k(n,e,t,i){var o,s,a,c,g,h,b,d=n.indexOf("."),_=C,v=$;for(37>t&&(n=n.toLowerCase()),d>=0&&(a=Y,Y=0,n=n.replace(".",""),b=new f(t),g=b.pow(n.length-d),Y=a,b.c=l(u(r(g.c),g.e),10,e),b.e=b.c.length),h=l(n,t,e),s=a=h.length;0==h[--a];h.pop());if(!h[0])return"0";if(0>d?--s:(g.c=h,g.e=s,g.s=i,g=M(g,b,_,v,e),h=g.c,c=g.r,s=g.e),o=s+_+1,d=h[o],a=e/2,c=c||0>o||null!=h[o+1],c=4>v?(null!=d||c)&&(0==v||v==(g.s<0?3:2)):d>a||d==a&&(4==v||c||6==v&&1&h[o-1]||v==(g.s<0?8:7)),1>o||!h[0])n=c?u("1",-_):"0";else{if(h.length=o,c)for(--e;++h[--o]>e;)h[o]=0,o||(++s,h.unshift(1));for(a=h.length;!h[--a];);for(d=0,n="";a>=d;n+=w.charAt(h[d++]));n=u(n,s)}return n}function S(n,e,t,i){var o,s,l,c,g;if(t=null!=t&&G(t,0,8,i,p)?0|t:$,!n.c)return n.toString();if(o=n.c[0],l=n.e,null==e)g=r(n.c),g=19==i||24==i&&q>=l?a(g,l):u(g,l);else if(n=R(new f(n),e,t),s=n.e,g=r(n.c),c=g.length,19==i||24==i&&(s>=e||q>=s)){for(;e>c;g+="0",c++);g=a(g,s)}else if(e-=l,g=u(g,s),s+1>c){if(--e>0)for(g+=".";e--;g+="0");}else if(e+=s-c,e>0)for(s+1==c&&(g+=".");e--;g+="0");return n.s<0&&o?"-"+g:g}function B(n,e){var t,r,i=0;for(s(n[0])&&(n=n[0]),t=new f(n[0]);++i<n.length;){if(r=new f(n[i]),!r.s){t=r;break}e.call(t,r)&&(t=r)}return t}function j(n,e,t,r,i){return(e>n||n>t||n!=c(n))&&E(r,(i||"decimal places")+(e>n||n>t?" out of range":" not an integer"),n),!0}function I(n,e,t){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,r++);return(t=r+t*x-1)>U?n.c=n.e=null:L>t?n.c=[n.e=0]:(n.e=t,n.c=e),n}function E(n,e,t){var r=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][n]+"() "+e+": "+t);throw r.name="BigNumber Error",T=0,r}function R(n,e,t,r){var i,o,s,l,a,u,c,f=n.c,g=O;if(f){n:{for(i=1,l=f[0];l>=10;l/=10,i++);if(o=e-i,0>o)o+=x,s=e,a=f[u=0],c=a/g[i-s-1]%10|0;else if(u=d((o+1)/x),u>=f.length){if(!r)break n;for(;f.length<=u;f.push(0));a=c=0,i=1,o%=x,s=o-x+1}else{for(a=l=f[u],i=1;l>=10;l/=10,i++);o%=x,s=o-x+i,c=0>s?0:a/g[i-s-1]%10|0}if(r=r||0>e||null!=f[u+1]||(0>s?a:a%g[i-s-1]),r=4>t?(c||r)&&(0==t||t==(n.s<0?3:2)):c>5||5==c&&(4==t||r||6==t&&(o>0?s>0?a/g[i-s]:0:f[u-1])%10&1||t==(n.s<0?8:7)),1>e||!f[0])return f.length=0,r?(e-=n.e+1,f[0]=g[(x-e%x)%x],n.e=-e||0):f[0]=n.e=0,n;if(0==o?(f.length=u,l=1,u--):(f.length=u+1,l=g[x-o],f[u]=s>0?_(a/g[i-s]%g[s])*l:0),r)for(;;){if(0==u){for(o=1,s=f[0];s>=10;s/=10,o++);for(s=f[0]+=l,l=1;s>=10;s/=10,l++);o!=l&&(n.e++,f[0]==y&&(f[0]=1));break}if(f[u]+=l,f[u]!=y)break;f[u--]=0,l=1}for(o=f.length;0===f[--o];f.pop());}n.e>U?n.c=n.e=null:n.e<L&&(n.c=[n.e=0])}return n}var M,T=0,D=f.prototype,P=new f(1),C=20,$=4,q=-7,z=21,L=-1e7,U=1e7,H=!0,G=j,W=!1,V=1,Y=100,J={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};return f.another=e,f.ROUND_UP=0,f.ROUND_DOWN=1,f.ROUND_CEIL=2,f.ROUND_FLOOR=3,f.ROUND_HALF_UP=4,f.ROUND_HALF_DOWN=5,f.ROUND_HALF_EVEN=6,f.ROUND_HALF_CEIL=7,f.ROUND_HALF_FLOOR=8,f.EUCLID=9,f.config=function(){var n,e,t=0,r={},i=arguments,l=i[0],a=l&&"object"==typeof l?function(){return l.hasOwnProperty(e)?null!=(n=l[e]):void 0}:function(){return i.length>t?null!=(n=i[t++]):void 0};return a(e="DECIMAL_PLACES")&&G(n,0,F,2,e)&&(C=0|n),r[e]=C,a(e="ROUNDING_MODE")&&G(n,0,8,2,e)&&($=0|n),r[e]=$,a(e="EXPONENTIAL_AT")&&(s(n)?G(n[0],-F,0,2,e)&&G(n[1],0,F,2,e)&&(q=0|n[0],z=0|n[1]):G(n,-F,F,2,e)&&(q=-(z=0|(0>n?-n:n)))),r[e]=[q,z],a(e="RANGE")&&(s(n)?G(n[0],-F,-1,2,e)&&G(n[1],1,F,2,e)&&(L=0|n[0],U=0|n[1]):G(n,-F,F,2,e)&&(0|n?L=-(U=0|(0>n?-n:n)):H&&E(2,e+" cannot be zero",n))),r[e]=[L,U],a(e="ERRORS")&&(n===!!n||1===n||0===n?(T=0,G=(H=!!n)?j:o):H&&E(2,e+v,n)),r[e]=H,a(e="CRYPTO")&&(n===!!n||1===n||0===n?(W=!(!n||!g),n&&!W&&H&&E(2,"crypto unavailable",g)):H&&E(2,e+v,n)),r[e]=W,a(e="MODULO_MODE")&&G(n,0,9,2,e)&&(V=0|n),r[e]=V,a(e="POW_PRECISION")&&G(n,0,F,2,e)&&(Y=0|n),r[e]=Y,a(e="FORMAT")&&("object"==typeof n?J=n:H&&E(2,e+" not an object",n)),r[e]=J,r},f.max=function(){return B(arguments,D.lt)},f.min=function(){return B(arguments,D.gt)},f.random=function(){var n=9007199254740992,e=Math.random()*n&2097151?function(){return _(Math.random()*n)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(n){var t,r,i,o,s,l=0,a=[],u=new f(P);if(n=null!=n&&G(n,0,F,14)?0|n:C,o=d(n/x),W)if(g&&g.getRandomValues){for(t=g.getRandomValues(new Uint32Array(o*=2));o>l;)s=131072*t[l]+(t[l+1]>>>11),s>=9e15?(r=g.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(a.push(s%1e14),l+=2);l=o/2}else if(g&&g.randomBytes){for(t=g.randomBytes(o*=7);o>l;)s=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6],s>=9e15?g.randomBytes(7).copy(t,l):(a.push(s%1e14),l+=7);l=o/7}else H&&E(14,"crypto unavailable",g);if(!l)for(;o>l;)s=e(),9e15>s&&(a[l++]=s%1e14);for(o=a[--l],n%=x,o&&n&&(s=O[x-n],a[l]=_(o/s)*s);0===a[l];a.pop(),l--);if(0>l)a=[i=0];else{for(i=-1;0===a[0];a.shift(),i-=x);for(l=1,s=a[0];s>=10;s/=10,l++);x>l&&(i-=x-l)}return u.e=i,u.c=a,u}}(),M=function(){function n(n,e,t){var r,i,o,s,l=0,a=n.length,u=e%A,c=e/A|0;for(n=n.slice();a--;)o=n[a]%A,s=n[a]/A|0,r=c*o+s*u,i=u*o+r%A*A+l,l=(i/t|0)+(r/A|0)+c*s,n[a]=i%t;return l&&n.unshift(l),n}function e(n,e,t,r){var i,o;if(t!=r)o=t>r?1:-1;else for(i=o=0;t>i;i++)if(n[i]!=e[i]){o=n[i]>e[i]?1:-1;break}return o}function r(n,e,t,r){for(var i=0;t--;)n[t]-=i,i=n[t]<e[t]?1:0,n[t]=i*r+n[t]-e[t];for(;!n[0]&&n.length>1;n.shift());}return function(i,o,s,l,a){var u,c,g,h,b,d,v,p,m,w,N,O,A,F,k,S,B,j=i.s==o.s?1:-1,I=i.c,E=o.c;if(!(I&&I[0]&&E&&E[0]))return new f(i.s&&o.s&&(I?!E||I[0]!=E[0]:E)?I&&0==I[0]||!E?0*j:j/0:0/0);for(p=new f(j),m=p.c=[],c=i.e-o.e,j=s+c+1,a||(a=y,c=t(i.e/x)-t(o.e/x),j=j/x|0),g=0;E[g]==(I[g]||0);g++);if(E[g]>(I[g]||0)&&c--,0>j)m.push(1),h=!0;else{for(F=I.length,S=E.length,g=0,j+=2,b=_(a/(E[0]+1)),b>1&&(E=n(E,b,a),I=n(I,b,a),S=E.length,F=I.length),A=S,w=I.slice(0,S),N=w.length;S>N;w[N++]=0);B=E.slice(),B.unshift(0),k=E[0],E[1]>=a/2&&k++;do{if(b=0,u=e(E,w,S,N),0>u){if(O=w[0],S!=N&&(O=O*a+(w[1]||0)),b=_(O/k),b>1)for(b>=a&&(b=a-1),d=n(E,b,a),v=d.length,N=w.length;1==e(d,w,v,N);)b--,r(d,v>S?B:E,v,a),v=d.length,u=1;else 0==b&&(u=b=1),d=E.slice(),v=d.length;if(N>v&&d.unshift(0),r(w,d,N,a),N=w.length,-1==u)for(;e(E,w,S,N)<1;)b++,r(w,N>S?B:E,N,a),N=w.length}else 0===u&&(b++,w=[0]);m[g++]=b,w[0]?w[N++]=I[A]||0:(w=[I[A]],N=1)}while((A++<F||null!=w[0])&&j--);h=null!=w[0],m[0]||m.shift()}if(a==y){for(g=1,j=m[0];j>=10;j/=10,g++);R(p,s+(p.e=g+c*x-1)+1,l,h)}else p.e=c,p.r=+h;return p}}(),h=function(){var n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,t=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,l,a){var u,c=l?s:s.replace(i,"");if(r.test(c))o.s=isNaN(c)?null:0>c?-1:1;else{if(!l&&(c=c.replace(n,function(n,e,t){return u="x"==(t=t.toLowerCase())?16:"b"==t?2:8,a&&a!=u?n:e}),a&&(u=a,c=c.replace(e,"$1").replace(t,"0.$1")),s!=c))return new f(c,u);H&&E(T,"not a"+(a?" base "+a:"")+" number",s),o.s=null}o.c=o.e=null,T=0}}(),D.absoluteValue=D.abs=function(){var n=new f(this);return n.s<0&&(n.s=1),n},D.ceil=function(){return R(new f(this),this.e+1,2)},D.comparedTo=D.cmp=function(n,e){return T=1,i(this,new f(n,e))},D.decimalPlaces=D.dp=function(){var n,e,r=this.c;if(!r)return null;if(n=((e=r.length-1)-t(this.e/x))*x,e=r[e])for(;e%10==0;e/=10,n--);return 0>n&&(n=0),n},D.dividedBy=D.div=function(n,e){return T=3,M(this,new f(n,e),C,$)},D.dividedToIntegerBy=D.divToInt=function(n,e){return T=4,M(this,new f(n,e),0,1)},D.equals=D.eq=function(n,e){return T=5,0===i(this,new f(n,e))},D.floor=function(){return R(new f(this),this.e+1,3)},D.greaterThan=D.gt=function(n,e){return T=6,i(this,new f(n,e))>0},D.greaterThanOrEqualTo=D.gte=function(n,e){return T=7,1===(e=i(this,new f(n,e)))||0===e},D.isFinite=function(){return!!this.c},D.isInteger=D.isInt=function(){return!!this.c&&t(this.e/x)>this.c.length-2},D.isNaN=function(){return!this.s},D.isNegative=D.isNeg=function(){return this.s<0},D.isZero=function(){return!!this.c&&0==this.c[0]},D.lessThan=D.lt=function(n,e){return T=8,i(this,new f(n,e))<0},D.lessThanOrEqualTo=D.lte=function(n,e){return T=9,-1===(e=i(this,new f(n,e)))||0===e},D.minus=D.sub=function(n,e){var r,i,o,s,l=this,a=l.s;if(T=10,n=new f(n,e),e=n.s,!a||!e)return new f(0/0);if(a!=e)return n.s=-e,l.plus(n);var u=l.e/x,c=n.e/x,g=l.c,h=n.c;if(!u||!c){if(!g||!h)return g?(n.s=-e,n):new f(h?l:0/0);if(!g[0]||!h[0])return h[0]?(n.s=-e,n):new f(g[0]?l:3==$?-0:0)}if(u=t(u),c=t(c),g=g.slice(),a=u-c){for((s=0>a)?(a=-a,o=g):(c=u,o=h),o.reverse(),e=a;e--;o.push(0));o.reverse()}else for(i=(s=(a=g.length)<(e=h.length))?a:e,a=e=0;i>e;e++)if(g[e]!=h[e]){s=g[e]<h[e];break}if(s&&(o=g,g=h,h=o,n.s=-n.s),e=(i=h.length)-(r=g.length),e>0)for(;e--;g[r++]=0);for(e=y-1;i>a;){if(g[--i]<h[i]){for(r=i;r&&!g[--r];g[r]=e);--g[r],g[i]+=y}g[i]-=h[i]}for(;0==g[0];g.shift(),--c);return g[0]?I(n,g,c):(n.s=3==$?-1:1,n.c=[n.e=0],n)},D.modulo=D.mod=function(n,e){var t,r,i=this;return T=11,n=new f(n,e),!i.c||!n.s||n.c&&!n.c[0]?new f(0/0):!n.c||i.c&&!i.c[0]?new f(i):(9==V?(r=n.s,n.s=1,t=M(i,n,0,3),n.s=r,t.s*=r):t=M(i,n,0,V),i.minus(t.times(n)))},D.negated=D.neg=function(){var n=new f(this);return n.s=-n.s||null,n},D.plus=D.add=function(n,e){var r,i=this,o=i.s;if(T=12,n=new f(n,e),e=n.s,!o||!e)return new f(0/0);if(o!=e)return n.s=-e,i.minus(n);var s=i.e/x,l=n.e/x,a=i.c,u=n.c;if(!s||!l){if(!a||!u)return new f(o/0);if(!a[0]||!u[0])return u[0]?n:new f(a[0]?i:0*o)}if(s=t(s),l=t(l),a=a.slice(),o=s-l){for(o>0?(l=s,r=u):(o=-o,r=a),r.reverse();o--;r.push(0));r.reverse()}for(o=a.length,e=u.length,0>o-e&&(r=u,u=a,a=r,e=o),o=0;e;)o=(a[--e]=a[e]+u[e]+o)/y|0,a[e]%=y;return o&&(a.unshift(o),++l),I(n,a,l)},D.precision=D.sd=function(n){var e,t,r=this,i=r.c;if(null!=n&&n!==!!n&&1!==n&&0!==n&&(H&&E(13,"argument"+v,n),n!=!!n&&(n=null)),!i)return null;if(t=i.length-1,e=t*x+1,t=i[t]){for(;t%10==0;t/=10,e--);for(t=i[0];t>=10;t/=10,e++);}return n&&r.e+1>e&&(e=r.e+1),e},D.round=function(n,e){var t=new f(this);return(null==n||G(n,0,F,15))&&R(t,~~n+this.e+1,null!=e&&G(e,0,8,15,p)?0|e:$),t},D.shift=function(n){var e=this;return G(n,-N,N,16,"argument")?e.times("1e"+c(n)):new f(e.c&&e.c[0]&&(-N>n||n>N)?e.s*(0>n?0:1/0):e)},D.squareRoot=D.sqrt=function(){var n,e,i,o,s,l=this,a=l.c,u=l.s,c=l.e,g=C+4,h=new f("0.5");if(1!==u||!a||!a[0])return new f(!u||0>u&&(!a||a[0])?0/0:a?l:1/0);if(u=Math.sqrt(+l),0==u||u==1/0?(e=r(a),(e.length+c)%2==0&&(e+="0"),u=Math.sqrt(e),c=t((c+1)/2)-(0>c||c%2),u==1/0?e="1e"+c:(e=u.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),i=new f(e)):i=new f(u+""),i.c[0])for(c=i.e,u=c+g,3>u&&(u=0);;)if(s=i,i=h.times(s.plus(M(l,s,g,1))),r(s.c).slice(0,u)===(e=r(i.c)).slice(0,u)){if(i.e<c&&--u,e=e.slice(u-3,u+1),"9999"!=e&&(o||"4999"!=e)){(!+e||!+e.slice(1)&&"5"==e.charAt(0))&&(R(i,i.e+C+2,1),n=!i.times(i).eq(l));break}if(!o&&(R(s,s.e+C+2,0),s.times(s).eq(l))){i=s;break}g+=4,u+=4,o=1}return R(i,i.e+C+1,$,n)},D.times=D.mul=function(n,e){var r,i,o,s,l,a,u,c,g,h,b,d,_,v,p,m=this,w=m.c,N=(T=17,n=new f(n,e)).c;if(!(w&&N&&w[0]&&N[0]))return!m.s||!n.s||w&&!w[0]&&!N||N&&!N[0]&&!w?n.c=n.e=n.s=null:(n.s*=m.s,w&&N?(n.c=[0],n.e=0):n.c=n.e=null),n;for(i=t(m.e/x)+t(n.e/x),n.s*=m.s,u=w.length,h=N.length,h>u&&(_=w,w=N,N=_,o=u,u=h,h=o),o=u+h,_=[];o--;_.push(0));for(v=y,p=A,o=h;--o>=0;){for(r=0,b=N[o]%p,d=N[o]/p|0,l=u,s=o+l;s>o;)c=w[--l]%p,g=w[l]/p|0,a=d*c+g*b,c=b*c+a%p*p+_[s]+r,r=(c/v|0)+(a/p|0)+d*g,_[s--]=c%v;_[s]=r}return r?++i:_.shift(),I(n,_,i)},D.toDigits=function(n,e){var t=new f(this);return n=null!=n&&G(n,1,F,18,"precision")?0|n:null,e=null!=e&&G(e,0,8,18,p)?0|e:$,n?R(t,n,e):t},D.toExponential=function(n,e){return S(this,null!=n&&G(n,0,F,19)?~~n+1:null,e,19)},D.toFixed=function(n,e){return S(this,null!=n&&G(n,0,F,20)?~~n+this.e+1:null,e,20)},D.toFormat=function(n,e){var t=S(this,null!=n&&G(n,0,F,21)?~~n+this.e+1:null,e,21);if(this.c){var r,i=t.split("."),o=+J.groupSize,s=+J.secondaryGroupSize,l=J.groupSeparator,a=i[0],u=i[1],c=this.s<0,f=c?a.slice(1):a,g=f.length;if(s&&(r=o,o=s,s=r,g-=r),o>0&&g>0){for(r=g%o||o,a=f.substr(0,r);g>r;r+=o)a+=l+f.substr(r,o);s>0&&(a+=l+f.slice(r)),c&&(a="-"+a)}t=u?a+J.decimalSeparator+((s=+J.fractionGroupSize)?u.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+J.fractionGroupSeparator):u):a}return t},D.toFraction=function(n){var e,t,i,o,s,l,a,u,c,g=H,h=this,b=h.c,d=new f(P),_=t=new f(P),v=a=new f(P);if(null!=n&&(H=!1,l=new f(n),H=g,(!(g=l.isInt())||l.lt(P))&&(H&&E(22,"max denominator "+(g?"out of range":"not an integer"),n),n=!g&&l.c&&R(l,l.e+1,1).gte(P)?l:null)),!b)return h.toString();for(c=r(b),o=d.e=c.length-h.e-1,d.c[0]=O[(s=o%x)<0?x+s:s],n=!n||l.cmp(d)>0?o>0?d:_:l,s=U,U=1/0,l=new f(c),a.c[0]=0;u=M(l,d,0,1),i=t.plus(u.times(v)),1!=i.cmp(n);)t=v,v=i,_=a.plus(u.times(i=_)),a=i,d=l.minus(u.times(i=d)),l=i;return i=M(n.minus(t),v,0,1),a=a.plus(i.times(_)),t=t.plus(i.times(v)),a.s=_.s=h.s,o*=2,e=M(_,v,o,$).minus(h).abs().cmp(M(a,t,o,$).minus(h).abs())<1?[_.toString(),v.toString()]:[a.toString(),t.toString()],U=s,e},D.toNumber=function(){return+this},D.toPower=D.pow=function(n,e){var t,r,i,o=_(0>n?-n:+n),s=this;if(null!=e&&(T=23,e=new f(e)),!G(n,-N,N,23,"exponent")&&(!isFinite(n)||o>N&&(n/=0)||parseFloat(n)!=n&&!(n=0/0))||0==n)return t=Math.pow(+s,n),new f(e?t%e:t);for(e?n>1&&s.gt(P)&&s.isInt()&&e.gt(P)&&e.isInt()?s=s.mod(e):(i=e,e=null):Y&&(t=d(Y/x+2)),r=new f(P);;){if(o%2){if(r=r.times(s),!r.c)break;t?r.c.length>t&&(r.c.length=t):e&&(r=r.mod(e))}if(o=_(o/2),!o)break;s=s.times(s),t?s.c&&s.c.length>t&&(s.c.length=t):e&&(s=s.mod(e))}return e?r:(0>n&&(r=P.div(r)),i?r.mod(i):t?R(r,Y,$):r)},D.toPrecision=function(n,e){return S(this,null!=n&&G(n,1,F,24,"precision")?0|n:null,e,24)},D.toString=function(n){var e,t=this,i=t.s,o=t.e;return null===o?i?(e="Infinity",0>i&&(e="-"+e)):e="NaN":(e=r(t.c),e=null!=n&&G(n,2,64,25,"base")?k(u(e,o),0|n,10,i):q>=o||o>=z?a(e,o):u(e,o),0>i&&t.c[0]&&(e="-"+e)),e},D.truncated=D.trunc=function(){return R(new f(this),this.e+1,1)},D.valueOf=D.toJSON=function(){var n,e=this,t=e.e;return null===t?e.toString():(n=r(e.c),n=q>=t||t>=z?a(n,t):u(n,t),e.s<0?"-"+n:n)},null!=n&&f.config(n),f}function t(n){var e=0|n;return n>0||n===e?e:e-1}function r(n){for(var e,t,r=1,i=n.length,o=n[0]+"";i>r;){for(e=n[r++]+"",t=x-e.length;t--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function i(n,e){var t,r,i=n.c,o=e.c,s=n.s,l=e.s,a=n.e,u=e.e;if(!s||!l)return null;if(t=i&&!i[0],r=o&&!o[0],t||r)return t?r?0:-l:s;if(s!=l)return s;if(t=0>s,r=a==u,!i||!o)return r?0:!i^t?1:-1;if(!r)return a>u^t?1:-1;for(l=(a=i.length)<(u=o.length)?a:u,s=0;l>s;s++)if(i[s]!=o[s])return i[s]>o[s]^t?1:-1;return a==u?0:a>u^t?1:-1}function o(n,e,t){return(n=c(n))>=e&&t>=n}function s(n){return"[object Array]"==Object.prototype.toString.call(n)}function l(n,e,t){for(var r,i,o=[0],s=0,l=n.length;l>s;){for(i=o.length;i--;o[i]*=e);for(o[r=0]+=w.indexOf(n.charAt(s++));r<o.length;r++)o[r]>t-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/t|0,o[r]%=t)}return o.reverse()}function a(n,e){return(n.length>1?n.charAt(0)+"."+n.slice(1):n)+(0>e?"e":"e+")+e}function u(n,e){var t,r;if(0>e){for(r="0.";++e;r+="0");n=r+n}else if(t=n.length,++e>t){for(r="0",e-=t;--e;r+="0");n+=r}else t>e&&(n=n.slice(0,e)+"."+n.slice(e));return n}function c(n){return n=parseFloat(n),0>n?d(n):_(n)}var f,g,h,b=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=Math.ceil,_=Math.floor,v=" not a boolean or binary digit",p="rounding mode",m="number type has more than 15 significant digits",w="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",y=1e14,x=14,N=9007199254740991,O=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,F=1e9;if("undefined"!=typeof crypto&&(g=crypto),f=e(),f["default"]=f.BigNumber=f,"function"==typeof define&&define.amd)define(function(){return f});else if("undefined"!=typeof module&&module.exports){if(module.exports=f,!g)try{g=require("crypto")}catch(k){}}else n||(n="undefined"!=typeof self?self:Function("return this")()),n.BigNumber=f}(this),febs.crypt=febs.crypt||function(){},febs.crypt.crc32_table=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],febs.crypt.crc32=function(n,e){e==window.undefined&&(e=0),e=-1^e;for(var t=0,r=n.length;r>t;t++)e=e>>>8^febs.crypt.crc32_table[255&(e^n.charCodeAt(t))];return-1^e},febs.crypt.crc32_file=function(n,e){if(!n&&!e)return void(e&&e(0));var t=File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice,r=new FileReader,i=2097152,o=Math.ceil(n.size/i),s=0,l=function(){var e=s*i,o=e+i>=n.size?n.size:e+i;r.readAsBinaryString(t.call(n,e,o))},a=0;r.onload=function(n){a=febs.crypt.crc32(n.target.result,a),s++,o>s?l():e(a)},l()},febs.crypt.uuid=function(){for(var n=[],e="0123456789abcdef",t=0;36>t;t++)n[t]=e.substr(Math.floor(16*Math.random()),1);n[14]="4",n[19]=e.substr(3&n[19]|8,1),n[8]=n[13]=n[18]=n[23]="-";var r=n.join("");return r},febs.crypt.base64_encode=function(n){var e,t,r,i,o,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(r=n.length,t=0,e="";r>t;){if(i=255&n[t++],t==r){e+=l.charAt(i>>2),e+=l.charAt((3&i)<<4),e+="==";break}if(o=n[t++],t==r){e+=l.charAt(i>>2),e+=l.charAt((3&i)<<4|(240&o)>>4),e+=l.charAt((15&o)<<2),e+="=";break}s=n[t++],e+=l.charAt(i>>2),e+=l.charAt((3&i)<<4|(240&o)>>4),e+=l.charAt((15&o)<<2|(192&s)>>6),e+=l.charAt(63&s)}return e},febs.crypt.base64_decode=function(n){for(var e,t,r,i,o=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1),s=0,l=n.length,a=[];l>s;){do e=o[255&n.charCodeAt(s++)];while(l>s&&-1==e);if(-1==e)break;do t=o[255&n.charCodeAt(s++)];while(l>s&&-1==t);if(-1==t)break;a.push(e<<2|(48&t)>>4);do{if(r=255&n.charCodeAt(s++),61==r)return a;r=o[r]}while(l>s&&-1==r);if(-1==r)break;a.push((15&t)<<4|(60&r)>>2);do{if(i=255&n.charCodeAt(s++),61==i)return a;i=o[i]}while(l>s&&-1==i);if(-1==i)break;a.push((3&r)<<6|i)}return a},febs.utils=febs.utils||function(){},febs.utils.browserIsMobile=function(){var n=window.navigator.userAgent,e=["Android","webOS","iPhone","iPad","iPod","Blackberry","Windows Phone"],t=new RegExp(e.join("|"),"i");return null!=n.match(t)},febs.utils.browserIsIOS=function(){var n=window.navigator.userAgent,e=["iPhone","iPad","iPod"],t=new RegExp(e.join("|"),"i");return null!=n.match(t)},febs.utils.browserIsWeixin=function(){var n=window.navigator.userAgent;return"MicroMessenger"==n.match(/MicroMessenger/i)?!0:!1},febs.utils.browserIsPhone=function(){var n=window.navigator.userAgent,e=["Android","iPhone","iPod","Blackberry","Windows Phone"],t=new RegExp(e.join("|"),"i");return null!=n.match(t)},febs.utils.browserIsSupportHtml5=function(){return"undefined"!=typeof Worker?!0:!1},febs.utils.getTimeString=function(n,e,t){if("number"!=typeof n)return"";e=e||"HH:mm:ss";var r=new Date(n),i={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours()%12==0?12:r.getHours()%12,"H+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds(),"q+":Math.floor((r.getMonth()+3)/3),S:r.getMilliseconds()},o=t||{0:"星期天",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length))),/(E+)/.test(e)&&(e=e.replace(RegExp.$1,o[r.getDay()+""]));for(var s in i)new RegExp("("+s+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?i[s]:("00"+i[s]).substr((""+i[s]).length)));return e},febs.utils.getDate=function(strDate){var date=eval("new Date("+strDate.replace(/\d+(?=-[^-]+$)/,function(n){return parseInt(n,10)-1}).match(/\d+/g)+")");return date},febs.utils.mergeMap=function(){for(var n,e={},t=0;t<arguments.length;t++)if(n=arguments[t])for(var r in n)e[r]=n[r];return e},febs.utils.isNull=function(n){return null===n||void 0===n||Number.isNaN(n)},febs.utils.bigint_check=function(n){if(Number.isInteger(n))return!0;if(!n)return!1;if("string"==typeof n){if(n.length>22||n.length<1)return!1;for(var e=1;e<n.length;e++)if(n[e]<"0"||n[e]>"9")return!1;if("-"==n[0]){if(n.length<2||n[1]<"1"||n[1]>"9")return!1}else if(n[e]<"1"||n[e]>"9")return!1;return!0}return!1},febs.utils.bigint_add=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.plus(e)},febs.utils.bigint_minus=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.minus(e)},febs.utils.bigint_dividedBy=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.dividedBy(e)},febs.utils.bigint_mul=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.times(e)},febs.utils.bigint_equal=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.equals(e)},febs.utils.bigint_more_than=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.greaterThan(e)},febs.utils.bigint_more_than_e=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.greaterThanOrEqualTo(e)},febs.utils.bigint_less_than=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.lessThan(e)},febs.utils.bigint_less_than_e=function(n,e){return n instanceof BigNumber||(n=new BigNumber(n)),n.lessThanOrEqualTo(e)},febs.utils.bigint_toFixed=function(n,e){return e=e||0,n instanceof BigNumber||(n=new BigNumber(n)),n.toFixed(e)},febs.string=febs.string||function(){},febs.string.isPhoneMobile=function(n){return n&&/^0?1[2|3|4|5|6|7|8][0-9]\d{8}$/.test(n)?!0:!1},febs.string.isEmpty=function(n){return n?"string"!=typeof n?!0:0==n.length?!0:!1:!0},febs.string.getByteSize=function(n){if(!n)return 0;var e,t,r=0;for(e=0;e<n.length;e++)t=n.charCodeAt(e),127>t?r+=1:t>=128&&2047>=t?r+=2:t>=2048&&65535>=t?r+=3:t>=65536&&(r+=4);return r},febs.string.replace=function(n,e,t){if(!n||!e)return n;if(0==n.length)return n;var r="",i=n.length,o=0,s=0;do{if(o=n.indexOf(e,s),!(-1!=o&&i>o)){r+=n.slice(s);break}o!=s&&(r+=n.slice(s,o)),r+=t,s=o+e.length}while(i>o);return r},febs.nav=febs.nav||function(){},febs.nav.nav_map={},febs.nav.nav_arr=[],febs.nav.nav_max_length=20,febs.nav.nav_callback=null,febs.nav.nav_url_equal_callback=null,febs.nav.nav_ajax_count=0,febs.nav.nav_cur_url=null,febs.nav.nav_options={defaultTimeout:1e4},febs.nav.ajax=function(n){if(n.url){var e=n.url.indexOf("?");0>e?(n.url+="?ajaxmark="+febs.nav.nav_ajax_count,febs.nav.nav_ajax_count++):e==n.url.length-1?(n.url+="ajaxmark="+febs.nav.nav_ajax_count,febs.nav.nav_ajax_count++):(n.url+="&ajaxmark="+febs.nav.nav_ajax_count,febs.nav.nav_ajax_count++)}n.timeout||(n.timeout=febs.nav.nav_options.defaultTimeout),jQuery.ajax(n)},febs.nav.init=function(n,e,t){document.onkeydown=function(n){n=window.event||n;var e=n.keyCode||n.which;if(116==e){if(window.event){try{n.keyCode=0}catch(n){}n.returnValue=!1}else n.preventDefault();nav_refresh()}},t=t||{},t.defaultTimeout=t.defaultTimeout||1e4,febs.nav.nav_options=t,febs.nav.nav_callback=n,febs.nav.nav_url_equal_callback=e},febs.nav.url=function(n){var e=null;return n&&(e=febs.nav.nav_map[n],e=e?e:null),e},febs.nav.hash_change=function(){if(null!=febs.nav.nav_cur_url)return void(febs.nav.nav_cur_url=null);var n=location.hash;if(null!=n&&""!=n){var e=febs.nav.url(n);e&&febs.nav.nav_callback&&febs.nav.nav_callback(e)}},febs.nav.push=function(n){if(febs.nav.nav_url_equal_callback){for(var e=0;e<febs.nav.nav_arr.length;e++){var t=febs.nav.nav_map[febs.nav.nav_arr[e]];if(febs.nav.nav_url_equal_callback(t,n))return window.onhashchange=null,window.location.href=febs.nav.nav_arr[e],febs.nav.nav_cur_url=!0,void(window.onhashchange=febs.nav.hash_change)}var r="#"+febs.crypt.uuid();return febs.nav.nav_arr.length>=febs.nav.nav_max_length&&(delete febs.nav.nav_map[febs.nav.nav_arr[0]],febs.nav.nav_arr.splice(0,1)),window.onhashchange=null,window.location.href=r,febs.nav.nav_cur_url=!0,window.onhashchange=febs.nav.hash_change,febs.nav.nav_map[r]=n,febs.nav.nav_arr.push(r),r}},febs.nav.go=function(n){febs.nav.nav_callback&&(n&&febs.nav.push(n),febs.nav.hash_change())},febs.nav.refresh=function(){febs.nav.go(null)},febs.nav.refresh_elem=function(n,e){febs.nav.ajax({type:"GET",url:e,success:function(e){n.html(e)}})},window.onhashchange=febs.nav.hash_change,febs.controls=febs.controls||function(){},febs.controls.loading_tag_name="control_loading_span_s23153dd12ax1",febs.controls.control_loading_index=0,febs.controls.loading_show=function(n,e){var t=$("body").children("#"+febs.controls.loading_tag_name);t&&0!=t.length||$("body").prepend('<span id="'+febs.controls.loading_tag_name+'"></span>'),febs.controls.control_loading_timer&&window.clearInterval(febs.controls.control_loading_timer),e?febs.controls.control_loading_timer=window.setInterval(function(){febs.controls.loading_show(n)},e):$("#"+febs.controls.loading_tag_name).html('<div class="control_loading_c"><div class="control_loading"><p style="margin-left:auto;margin-right:auto;text-align:center;max-width:200px;">'+(n?n:"")+"</p></div></div>")},febs.controls.loading_show_text=function(n,e,t){var r=$("body").children("#"+febs.controls.loading_tag_name);r&&0!=r.length||$("body").prepend('<span id="'+febs.controls.loading_tag_name+'"></span>'),febs.controls.control_loading_text_elemFunc&&(febs.controls.control_loading_text_hideFunc&&febs.controls.control_loading_text_hideFunc(),febs.controls.control_loading_text_hideFunc=null,febs.controls.control_loading_text_elemFunc=null,febs.controls.control_loading_text_array=null,febs.controls.control_loading_timer&&(window.clearInterval(control_loading_timer),febs.controls.control_loading_timer=null)),febs.controls.control_loading_text_array=n,febs.controls.control_loading_text_hideFunc=t,febs.controls.control_loading_text_elemFunc=e,febs.controls.control_loading_timer=window.setInterval(function(){febs.controls.control_loading_text_elemFunc(febs.controls.control_loading_text_array[febs.controls.control_loading_index++%febs.controls.control_loading_text_array.length])},500)},febs.controls.loading_hide=function(){var n=$("body").children("#"+febs.controls.loading_tag_name);n&&0!=n.length||$("body").prepend('<span id="'+febs.controls.loading_tag_name+'"></span>'),febs.controls.control_loading_timer&&(window.clearInterval(febs.controls.control_loading_timer),febs.controls.control_loading_timer=null),febs.controls.control_loading_text_elemFunc&&(febs.controls.control_loading_text_hideFunc&&febs.controls.control_loading_text_hideFunc(),febs.controls.control_loading_text_hideFunc=null,febs.controls.control_loading_text_elemFunc=null,febs.controls.control_loading_text_array=null,febs.controls.control_loading_timer&&(window.clearInterval(febs.controls.control_loading_timer),febs.controls.control_loading_timer=null)),$("#"+febs.controls.loading_tag_name).html("")},febs.controls=febs.controls||function(){},febs.controls.upload=function(n){var e=n.finishCB,t=n.progressCB,r=n.uploadUrl,i=n.maxFileSize?n.maxFileSize:1/0;if(n.fileType&&n.fileObj.attr("accept",n.fileType),!n.fileObj[0].files[0])return void(e&&e("no file",n.fileObj,null));if(n.fileObj[0].files[0].size>i)return void(e&&e("size too big",n.fileObj,null));var o=r.indexOf("?");0>o?r+="?":o<r.length-1&&(r+="&");var s=n.formObj,l=n.fileObj;febs.crypt.crc32_file(l[0].files[0],function(i){i?s.ajaxSubmit({method:"POST",url:r+"crc32="+i+"&size="+l[0].files[0].size+(n.data?"&data="+n.data:""),dataType:"json",contentType:"application/json; charset=utf-8",uploadProgress:function(n,e,r,i){t&&t(l,i/100)},error:function(){e&&e("ajax err",l,null)},success:function(n){e&&e(null,l,n)}}):e&&e("check crc32 err",l,null)})},febs.controls=febs.controls||function(){},febs.controls.page_map=febs.controls.page_map||{},febs.controls.page_init=function(n,e,t,r,i){var o="page"+febs.crypt.uuid();febs.controls.page_map[o]=i,o="javascript:febs.controls.page_map['"+o+"']";var s="";if(e>0)for(var l=Math.min(e,5),a=1;5>a&&e>a;a++)s+='<li class="control_paginItem"><a href="'+o+"("+(a+e-l)+')">'+(a+e-l)+"</a></li>";
function febs(){}!function(e){"use strict";function n(e){function f(e,n){var t,r,i,o,s,l,a=this;if(!(a instanceof f))return H&&E(26,"constructor call without new",e),new f(e,n);if(null!=n&&G(n,2,64,T,"base")){if(n=0|n,l=e+"",10==n)return a=new f(e instanceof f?e:l),R(a,C+a.e+1,$);if((o="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(t="["+w.slice(0,n)+"]+")+"(?:\\."+t+")?$",37>n?"i":"").test(l))return h(a,l,o,n);o?(a.s=0>1/e?(l=l.slice(1),-1):1,H&&l.replace(/^0\.0*|\./,"").length>15&&E(T,m,e),o=!1):a.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1,l=k(l,10,n,a.s)}else{if(e instanceof f)return a.s=e.s,a.e=e.e,a.c=(e=e.c)?e.slice():e,void(T=0);if((o="number"==typeof e)&&0*e==0){if(a.s=0>1/e?(e=-e,-1):1,e===~~e){for(r=0,i=e;i>=10;i/=10,r++);return a.e=r,a.c=[e],void(T=0)}l=e+""}else{if(!b.test(l=e+""))return h(a,l,o);a.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1}}for((r=l.indexOf("."))>-1&&(l=l.replace(".","")),(i=l.search(/e/i))>0?(0>r&&(r=i),r+=+l.slice(i+1),l=l.substring(0,i)):0>r&&(r=l.length),i=0;48===l.charCodeAt(i);i++);for(s=l.length;48===l.charCodeAt(--s););if(l=l.slice(i,s+1))if(s=l.length,o&&H&&s>15&&(e>N||e!==_(e))&&E(T,m,a.s*e),r=r-i-1,r>U)a.c=a.e=null;else if(L>r)a.c=[a.e=0];else{if(a.e=r,a.c=[],i=(r+1)%x,0>r&&(i+=x),s>i){for(i&&a.c.push(+l.slice(0,i)),s-=x;s>i;)a.c.push(+l.slice(i,i+=x));l=l.slice(i),i=x-l.length}else i-=s;for(;i--;l+="0");a.c.push(+l)}else a.c=[a.e=0];T=0}function k(e,n,t,i){var o,s,a,c,g,h,b,d=e.indexOf("."),_=C,v=$;for(37>t&&(e=e.toLowerCase()),d>=0&&(a=Y,Y=0,e=e.replace(".",""),b=new f(t),g=b.pow(e.length-d),Y=a,b.c=l(u(r(g.c),g.e),10,n),b.e=b.c.length),h=l(e,t,n),s=a=h.length;0==h[--a];h.pop());if(!h[0])return"0";if(0>d?--s:(g.c=h,g.e=s,g.s=i,g=M(g,b,_,v,n),h=g.c,c=g.r,s=g.e),o=s+_+1,d=h[o],a=n/2,c=c||0>o||null!=h[o+1],c=4>v?(null!=d||c)&&(0==v||v==(g.s<0?3:2)):d>a||d==a&&(4==v||c||6==v&&1&h[o-1]||v==(g.s<0?8:7)),1>o||!h[0])e=c?u("1",-_):"0";else{if(h.length=o,c)for(--n;++h[--o]>n;)h[o]=0,o||(++s,h.unshift(1));for(a=h.length;!h[--a];);for(d=0,e="";a>=d;e+=w.charAt(h[d++]));e=u(e,s)}return e}function S(e,n,t,i){var o,s,l,c,g;if(t=null!=t&&G(t,0,8,i,p)?0|t:$,!e.c)return e.toString();if(o=e.c[0],l=e.e,null==n)g=r(e.c),g=19==i||24==i&&q>=l?a(g,l):u(g,l);else if(e=R(new f(e),n,t),s=e.e,g=r(e.c),c=g.length,19==i||24==i&&(s>=n||q>=s)){for(;n>c;g+="0",c++);g=a(g,s)}else if(n-=l,g=u(g,s),s+1>c){if(--n>0)for(g+=".";n--;g+="0");}else if(n+=s-c,n>0)for(s+1==c&&(g+=".");n--;g+="0");return e.s<0&&o?"-"+g:g}function B(e,n){var t,r,i=0;for(s(e[0])&&(e=e[0]),t=new f(e[0]);++i<e.length;){if(r=new f(e[i]),!r.s){t=r;break}n.call(t,r)&&(t=r)}return t}function j(e,n,t,r,i){return(n>e||e>t||e!=c(e))&&E(r,(i||"decimal places")+(n>e||e>t?" out of range":" not an integer"),e),!0}function I(e,n,t){for(var r=1,i=n.length;!n[--i];n.pop());for(i=n[0];i>=10;i/=10,r++);return(t=r+t*x-1)>U?e.c=e.e=null:L>t?e.c=[e.e=0]:(e.e=t,e.c=n),e}function E(e,n,t){var r=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+n+": "+t);throw r.name="BigNumber Error",T=0,r}function R(e,n,t,r){var i,o,s,l,a,u,c,f=e.c,g=O;if(f){e:{for(i=1,l=f[0];l>=10;l/=10,i++);if(o=n-i,0>o)o+=x,s=n,a=f[u=0],c=a/g[i-s-1]%10|0;else if(u=d((o+1)/x),u>=f.length){if(!r)break e;for(;f.length<=u;f.push(0));a=c=0,i=1,o%=x,s=o-x+1}else{for(a=l=f[u],i=1;l>=10;l/=10,i++);o%=x,s=o-x+i,c=0>s?0:a/g[i-s-1]%10|0}if(r=r||0>n||null!=f[u+1]||(0>s?a:a%g[i-s-1]),r=4>t?(c||r)&&(0==t||t==(e.s<0?3:2)):c>5||5==c&&(4==t||r||6==t&&(o>0?s>0?a/g[i-s]:0:f[u-1])%10&1||t==(e.s<0?8:7)),1>n||!f[0])return f.length=0,r?(n-=e.e+1,f[0]=g[(x-n%x)%x],e.e=-n||0):f[0]=e.e=0,e;if(0==o?(f.length=u,l=1,u--):(f.length=u+1,l=g[x-o],f[u]=s>0?_(a/g[i-s]%g[s])*l:0),r)for(;;){if(0==u){for(o=1,s=f[0];s>=10;s/=10,o++);for(s=f[0]+=l,l=1;s>=10;s/=10,l++);o!=l&&(e.e++,f[0]==y&&(f[0]=1));break}if(f[u]+=l,f[u]!=y)break;f[u--]=0,l=1}for(o=f.length;0===f[--o];f.pop());}e.e>U?e.c=e.e=null:e.e<L&&(e.c=[e.e=0])}return e}var M,T=0,D=f.prototype,P=new f(1),C=20,$=4,q=-7,z=21,L=-1e7,U=1e7,H=!0,G=j,W=!1,V=1,Y=100,J={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};return f.another=n,f.ROUND_UP=0,f.ROUND_DOWN=1,f.ROUND_CEIL=2,f.ROUND_FLOOR=3,f.ROUND_HALF_UP=4,f.ROUND_HALF_DOWN=5,f.ROUND_HALF_EVEN=6,f.ROUND_HALF_CEIL=7,f.ROUND_HALF_FLOOR=8,f.EUCLID=9,f.config=function(){var e,n,t=0,r={},i=arguments,l=i[0],a=l&&"object"==typeof l?function(){return l.hasOwnProperty(n)?null!=(e=l[n]):void 0}:function(){return i.length>t?null!=(e=i[t++]):void 0};return a(n="DECIMAL_PLACES")&&G(e,0,F,2,n)&&(C=0|e),r[n]=C,a(n="ROUNDING_MODE")&&G(e,0,8,2,n)&&($=0|e),r[n]=$,a(n="EXPONENTIAL_AT")&&(s(e)?G(e[0],-F,0,2,n)&&G(e[1],0,F,2,n)&&(q=0|e[0],z=0|e[1]):G(e,-F,F,2,n)&&(q=-(z=0|(0>e?-e:e)))),r[n]=[q,z],a(n="RANGE")&&(s(e)?G(e[0],-F,-1,2,n)&&G(e[1],1,F,2,n)&&(L=0|e[0],U=0|e[1]):G(e,-F,F,2,n)&&(0|e?L=-(U=0|(0>e?-e:e)):H&&E(2,n+" cannot be zero",e))),r[n]=[L,U],a(n="ERRORS")&&(e===!!e||1===e||0===e?(T=0,G=(H=!!e)?j:o):H&&E(2,n+v,e)),r[n]=H,a(n="CRYPTO")&&(e===!!e||1===e||0===e?(W=!(!e||!g),e&&!W&&H&&E(2,"crypto unavailable",g)):H&&E(2,n+v,e)),r[n]=W,a(n="MODULO_MODE")&&G(e,0,9,2,n)&&(V=0|e),r[n]=V,a(n="POW_PRECISION")&&G(e,0,F,2,n)&&(Y=0|e),r[n]=Y,a(n="FORMAT")&&("object"==typeof e?J=e:H&&E(2,n+" not an object",e)),r[n]=J,r},f.max=function(){return B(arguments,D.lt)},f.min=function(){return B(arguments,D.gt)},f.random=function(){var e=9007199254740992,n=Math.random()*e&2097151?function(){return _(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var t,r,i,o,s,l=0,a=[],u=new f(P);if(e=null!=e&&G(e,0,F,14)?0|e:C,o=d(e/x),W)if(g&&g.getRandomValues){for(t=g.getRandomValues(new Uint32Array(o*=2));o>l;)s=131072*t[l]+(t[l+1]>>>11),s>=9e15?(r=g.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(a.push(s%1e14),l+=2);l=o/2}else if(g&&g.randomBytes){for(t=g.randomBytes(o*=7);o>l;)s=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6],s>=9e15?g.randomBytes(7).copy(t,l):(a.push(s%1e14),l+=7);l=o/7}else H&&E(14,"crypto unavailable",g);if(!l)for(;o>l;)s=n(),9e15>s&&(a[l++]=s%1e14);for(o=a[--l],e%=x,o&&e&&(s=O[x-e],a[l]=_(o/s)*s);0===a[l];a.pop(),l--);if(0>l)a=[i=0];else{for(i=-1;0===a[0];a.shift(),i-=x);for(l=1,s=a[0];s>=10;s/=10,l++);x>l&&(i-=x-l)}return u.e=i,u.c=a,u}}(),M=function(){function e(e,n,t){var r,i,o,s,l=0,a=e.length,u=n%A,c=n/A|0;for(e=e.slice();a--;)o=e[a]%A,s=e[a]/A|0,r=c*o+s*u,i=u*o+r%A*A+l,l=(i/t|0)+(r/A|0)+c*s,e[a]=i%t;return l&&e.unshift(l),e}function n(e,n,t,r){var i,o;if(t!=r)o=t>r?1:-1;else for(i=o=0;t>i;i++)if(e[i]!=n[i]){o=e[i]>n[i]?1:-1;break}return o}function r(e,n,t,r){for(var i=0;t--;)e[t]-=i,i=e[t]<n[t]?1:0,e[t]=i*r+e[t]-n[t];for(;!e[0]&&e.length>1;e.shift());}return function(i,o,s,l,a){var u,c,g,h,b,d,v,p,m,w,N,O,A,F,k,S,B,j=i.s==o.s?1:-1,I=i.c,E=o.c;if(!(I&&I[0]&&E&&E[0]))return new f(i.s&&o.s&&(I?!E||I[0]!=E[0]:E)?I&&0==I[0]||!E?0*j:j/0:0/0);for(p=new f(j),m=p.c=[],c=i.e-o.e,j=s+c+1,a||(a=y,c=t(i.e/x)-t(o.e/x),j=j/x|0),g=0;E[g]==(I[g]||0);g++);if(E[g]>(I[g]||0)&&c--,0>j)m.push(1),h=!0;else{for(F=I.length,S=E.length,g=0,j+=2,b=_(a/(E[0]+1)),b>1&&(E=e(E,b,a),I=e(I,b,a),S=E.length,F=I.length),A=S,w=I.slice(0,S),N=w.length;S>N;w[N++]=0);B=E.slice(),B.unshift(0),k=E[0],E[1]>=a/2&&k++;do{if(b=0,u=n(E,w,S,N),0>u){if(O=w[0],S!=N&&(O=O*a+(w[1]||0)),b=_(O/k),b>1)for(b>=a&&(b=a-1),d=e(E,b,a),v=d.length,N=w.length;1==n(d,w,v,N);)b--,r(d,v>S?B:E,v,a),v=d.length,u=1;else 0==b&&(u=b=1),d=E.slice(),v=d.length;if(N>v&&d.unshift(0),r(w,d,N,a),N=w.length,-1==u)for(;n(E,w,S,N)<1;)b++,r(w,N>S?B:E,N,a),N=w.length}else 0===u&&(b++,w=[0]);m[g++]=b,w[0]?w[N++]=I[A]||0:(w=[I[A]],N=1)}while((A++<F||null!=w[0])&&j--);h=null!=w[0],m[0]||m.shift()}if(a==y){for(g=1,j=m[0];j>=10;j/=10,g++);R(p,s+(p.e=g+c*x-1)+1,l,h)}else p.e=c,p.r=+h;return p}}(),h=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,n=/^([^.]+)\.$/,t=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,l,a){var u,c=l?s:s.replace(i,"");if(r.test(c))o.s=isNaN(c)?null:0>c?-1:1;else{if(!l&&(c=c.replace(e,function(e,n,t){return u="x"==(t=t.toLowerCase())?16:"b"==t?2:8,a&&a!=u?e:n}),a&&(u=a,c=c.replace(n,"$1").replace(t,"0.$1")),s!=c))return new f(c,u);H&&E(T,"not a"+(a?" base "+a:"")+" number",s),o.s=null}o.c=o.e=null,T=0}}(),D.absoluteValue=D.abs=function(){var e=new f(this);return e.s<0&&(e.s=1),e},D.ceil=function(){return R(new f(this),this.e+1,2)},D.comparedTo=D.cmp=function(e,n){return T=1,i(this,new f(e,n))},D.decimalPlaces=D.dp=function(){var e,n,r=this.c;if(!r)return null;if(e=((n=r.length-1)-t(this.e/x))*x,n=r[n])for(;n%10==0;n/=10,e--);return 0>e&&(e=0),e},D.dividedBy=D.div=function(e,n){return T=3,M(this,new f(e,n),C,$)},D.dividedToIntegerBy=D.divToInt=function(e,n){return T=4,M(this,new f(e,n),0,1)},D.equals=D.eq=function(e,n){return T=5,0===i(this,new f(e,n))},D.floor=function(){return R(new f(this),this.e+1,3)},D.greaterThan=D.gt=function(e,n){return T=6,i(this,new f(e,n))>0},D.greaterThanOrEqualTo=D.gte=function(e,n){return T=7,1===(n=i(this,new f(e,n)))||0===n},D.isFinite=function(){return!!this.c},D.isInteger=D.isInt=function(){return!!this.c&&t(this.e/x)>this.c.length-2},D.isNaN=function(){return!this.s},D.isNegative=D.isNeg=function(){return this.s<0},D.isZero=function(){return!!this.c&&0==this.c[0]},D.lessThan=D.lt=function(e,n){return T=8,i(this,new f(e,n))<0},D.lessThanOrEqualTo=D.lte=function(e,n){return T=9,-1===(n=i(this,new f(e,n)))||0===n},D.minus=D.sub=function(e,n){var r,i,o,s,l=this,a=l.s;if(T=10,e=new f(e,n),n=e.s,!a||!n)return new f(0/0);if(a!=n)return e.s=-n,l.plus(e);var u=l.e/x,c=e.e/x,g=l.c,h=e.c;if(!u||!c){if(!g||!h)return g?(e.s=-n,e):new f(h?l:0/0);if(!g[0]||!h[0])return h[0]?(e.s=-n,e):new f(g[0]?l:3==$?-0:0)}if(u=t(u),c=t(c),g=g.slice(),a=u-c){for((s=0>a)?(a=-a,o=g):(c=u,o=h),o.reverse(),n=a;n--;o.push(0));o.reverse()}else for(i=(s=(a=g.length)<(n=h.length))?a:n,a=n=0;i>n;n++)if(g[n]!=h[n]){s=g[n]<h[n];break}if(s&&(o=g,g=h,h=o,e.s=-e.s),n=(i=h.length)-(r=g.length),n>0)for(;n--;g[r++]=0);for(n=y-1;i>a;){if(g[--i]<h[i]){for(r=i;r&&!g[--r];g[r]=n);--g[r],g[i]+=y}g[i]-=h[i]}for(;0==g[0];g.shift(),--c);return g[0]?I(e,g,c):(e.s=3==$?-1:1,e.c=[e.e=0],e)},D.modulo=D.mod=function(e,n){var t,r,i=this;return T=11,e=new f(e,n),!i.c||!e.s||e.c&&!e.c[0]?new f(0/0):!e.c||i.c&&!i.c[0]?new f(i):(9==V?(r=e.s,e.s=1,t=M(i,e,0,3),e.s=r,t.s*=r):t=M(i,e,0,V),i.minus(t.times(e)))},D.negated=D.neg=function(){var e=new f(this);return e.s=-e.s||null,e},D.plus=D.add=function(e,n){var r,i=this,o=i.s;if(T=12,e=new f(e,n),n=e.s,!o||!n)return new f(0/0);if(o!=n)return e.s=-n,i.minus(e);var s=i.e/x,l=e.e/x,a=i.c,u=e.c;if(!s||!l){if(!a||!u)return new f(o/0);if(!a[0]||!u[0])return u[0]?e:new f(a[0]?i:0*o)}if(s=t(s),l=t(l),a=a.slice(),o=s-l){for(o>0?(l=s,r=u):(o=-o,r=a),r.reverse();o--;r.push(0));r.reverse()}for(o=a.length,n=u.length,0>o-n&&(r=u,u=a,a=r,n=o),o=0;n;)o=(a[--n]=a[n]+u[n]+o)/y|0,a[n]%=y;return o&&(a.unshift(o),++l),I(e,a,l)},D.precision=D.sd=function(e){var n,t,r=this,i=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(H&&E(13,"argument"+v,e),e!=!!e&&(e=null)),!i)return null;if(t=i.length-1,n=t*x+1,t=i[t]){for(;t%10==0;t/=10,n--);for(t=i[0];t>=10;t/=10,n++);}return e&&r.e+1>n&&(n=r.e+1),n},D.round=function(e,n){var t=new f(this);return(null==e||G(e,0,F,15))&&R(t,~~e+this.e+1,null!=n&&G(n,0,8,15,p)?0|n:$),t},D.shift=function(e){var n=this;return G(e,-N,N,16,"argument")?n.times("1e"+c(e)):new f(n.c&&n.c[0]&&(-N>e||e>N)?n.s*(0>e?0:1/0):n)},D.squareRoot=D.sqrt=function(){var e,n,i,o,s,l=this,a=l.c,u=l.s,c=l.e,g=C+4,h=new f("0.5");if(1!==u||!a||!a[0])return new f(!u||0>u&&(!a||a[0])?0/0:a?l:1/0);if(u=Math.sqrt(+l),0==u||u==1/0?(n=r(a),(n.length+c)%2==0&&(n+="0"),u=Math.sqrt(n),c=t((c+1)/2)-(0>c||c%2),u==1/0?n="1e"+c:(n=u.toExponential(),n=n.slice(0,n.indexOf("e")+1)+c),i=new f(n)):i=new f(u+""),i.c[0])for(c=i.e,u=c+g,3>u&&(u=0);;)if(s=i,i=h.times(s.plus(M(l,s,g,1))),r(s.c).slice(0,u)===(n=r(i.c)).slice(0,u)){if(i.e<c&&--u,n=n.slice(u-3,u+1),"9999"!=n&&(o||"4999"!=n)){(!+n||!+n.slice(1)&&"5"==n.charAt(0))&&(R(i,i.e+C+2,1),e=!i.times(i).eq(l));break}if(!o&&(R(s,s.e+C+2,0),s.times(s).eq(l))){i=s;break}g+=4,u+=4,o=1}return R(i,i.e+C+1,$,e)},D.times=D.mul=function(e,n){var r,i,o,s,l,a,u,c,g,h,b,d,_,v,p,m=this,w=m.c,N=(T=17,e=new f(e,n)).c;if(!(w&&N&&w[0]&&N[0]))return!m.s||!e.s||w&&!w[0]&&!N||N&&!N[0]&&!w?e.c=e.e=e.s=null:(e.s*=m.s,w&&N?(e.c=[0],e.e=0):e.c=e.e=null),e;for(i=t(m.e/x)+t(e.e/x),e.s*=m.s,u=w.length,h=N.length,h>u&&(_=w,w=N,N=_,o=u,u=h,h=o),o=u+h,_=[];o--;_.push(0));for(v=y,p=A,o=h;--o>=0;){for(r=0,b=N[o]%p,d=N[o]/p|0,l=u,s=o+l;s>o;)c=w[--l]%p,g=w[l]/p|0,a=d*c+g*b,c=b*c+a%p*p+_[s]+r,r=(c/v|0)+(a/p|0)+d*g,_[s--]=c%v;_[s]=r}return r?++i:_.shift(),I(e,_,i)},D.toDigits=function(e,n){var t=new f(this);return e=null!=e&&G(e,1,F,18,"precision")?0|e:null,n=null!=n&&G(n,0,8,18,p)?0|n:$,e?R(t,e,n):t},D.toExponential=function(e,n){return S(this,null!=e&&G(e,0,F,19)?~~e+1:null,n,19)},D.toFixed=function(e,n){return S(this,null!=e&&G(e,0,F,20)?~~e+this.e+1:null,n,20)},D.toFormat=function(e,n){var t=S(this,null!=e&&G(e,0,F,21)?~~e+this.e+1:null,n,21);if(this.c){var r,i=t.split("."),o=+J.groupSize,s=+J.secondaryGroupSize,l=J.groupSeparator,a=i[0],u=i[1],c=this.s<0,f=c?a.slice(1):a,g=f.length;if(s&&(r=o,o=s,s=r,g-=r),o>0&&g>0){for(r=g%o||o,a=f.substr(0,r);g>r;r+=o)a+=l+f.substr(r,o);s>0&&(a+=l+f.slice(r)),c&&(a="-"+a)}t=u?a+J.decimalSeparator+((s=+J.fractionGroupSize)?u.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+J.fractionGroupSeparator):u):a}return t},D.toFraction=function(e){var n,t,i,o,s,l,a,u,c,g=H,h=this,b=h.c,d=new f(P),_=t=new f(P),v=a=new f(P);if(null!=e&&(H=!1,l=new f(e),H=g,(!(g=l.isInt())||l.lt(P))&&(H&&E(22,"max denominator "+(g?"out of range":"not an integer"),e),e=!g&&l.c&&R(l,l.e+1,1).gte(P)?l:null)),!b)return h.toString();for(c=r(b),o=d.e=c.length-h.e-1,d.c[0]=O[(s=o%x)<0?x+s:s],e=!e||l.cmp(d)>0?o>0?d:_:l,s=U,U=1/0,l=new f(c),a.c[0]=0;u=M(l,d,0,1),i=t.plus(u.times(v)),1!=i.cmp(e);)t=v,v=i,_=a.plus(u.times(i=_)),a=i,d=l.minus(u.times(i=d)),l=i;return i=M(e.minus(t),v,0,1),a=a.plus(i.times(_)),t=t.plus(i.times(v)),a.s=_.s=h.s,o*=2,n=M(_,v,o,$).minus(h).abs().cmp(M(a,t,o,$).minus(h).abs())<1?[_.toString(),v.toString()]:[a.toString(),t.toString()],U=s,n},D.toNumber=function(){return+this},D.toPower=D.pow=function(e,n){var t,r,i,o=_(0>e?-e:+e),s=this;if(null!=n&&(T=23,n=new f(n)),!G(e,-N,N,23,"exponent")&&(!isFinite(e)||o>N&&(e/=0)||parseFloat(e)!=e&&!(e=0/0))||0==e)return t=Math.pow(+s,e),new f(n?t%n:t);for(n?e>1&&s.gt(P)&&s.isInt()&&n.gt(P)&&n.isInt()?s=s.mod(n):(i=n,n=null):Y&&(t=d(Y/x+2)),r=new f(P);;){if(o%2){if(r=r.times(s),!r.c)break;t?r.c.length>t&&(r.c.length=t):n&&(r=r.mod(n))}if(o=_(o/2),!o)break;s=s.times(s),t?s.c&&s.c.length>t&&(s.c.length=t):n&&(s=s.mod(n))}return n?r:(0>e&&(r=P.div(r)),i?r.mod(i):t?R(r,Y,$):r)},D.toPrecision=function(e,n){return S(this,null!=e&&G(e,1,F,24,"precision")?0|e:null,n,24)},D.toString=function(e){var n,t=this,i=t.s,o=t.e;return null===o?i?(n="Infinity",0>i&&(n="-"+n)):n="NaN":(n=r(t.c),n=null!=e&&G(e,2,64,25,"base")?k(u(n,o),0|e,10,i):q>=o||o>=z?a(n,o):u(n,o),0>i&&t.c[0]&&(n="-"+n)),n},D.truncated=D.trunc=function(){return R(new f(this),this.e+1,1)},D.valueOf=D.toJSON=function(){var e,n=this,t=n.e;return null===t?n.toString():(e=r(n.c),e=q>=t||t>=z?a(e,t):u(e,t),n.s<0?"-"+e:e)},null!=e&&f.config(e),f}function t(e){var n=0|e;return e>0||e===n?n:n-1}function r(e){for(var n,t,r=1,i=e.length,o=e[0]+"";i>r;){for(n=e[r++]+"",t=x-n.length;t--;n="0"+n);o+=n}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function i(e,n){var t,r,i=e.c,o=n.c,s=e.s,l=n.s,a=e.e,u=n.e;if(!s||!l)return null;if(t=i&&!i[0],r=o&&!o[0],t||r)return t?r?0:-l:s;if(s!=l)return s;if(t=0>s,r=a==u,!i||!o)return r?0:!i^t?1:-1;if(!r)return a>u^t?1:-1;for(l=(a=i.length)<(u=o.length)?a:u,s=0;l>s;s++)if(i[s]!=o[s])return i[s]>o[s]^t?1:-1;return a==u?0:a>u^t?1:-1}function o(e,n,t){return(e=c(e))>=n&&t>=e}function s(e){return"[object Array]"==Object.prototype.toString.call(e)}function l(e,n,t){for(var r,i,o=[0],s=0,l=e.length;l>s;){for(i=o.length;i--;o[i]*=n);for(o[r=0]+=w.indexOf(e.charAt(s++));r<o.length;r++)o[r]>t-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/t|0,o[r]%=t)}return o.reverse()}function a(e,n){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(0>n?"e":"e+")+n}function u(e,n){var t,r;if(0>n){for(r="0.";++n;r+="0");e=r+e}else if(t=e.length,++n>t){for(r="0",n-=t;--n;r+="0");e+=r}else t>n&&(e=e.slice(0,n)+"."+e.slice(n));return e}function c(e){return e=parseFloat(e),0>e?d(e):_(e)}var f,g,h,b=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=Math.ceil,_=Math.floor,v=" not a boolean or binary digit",p="rounding mode",m="number type has more than 15 significant digits",w="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",y=1e14,x=14,N=9007199254740991,O=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,F=1e9;if("undefined"!=typeof crypto&&(g=crypto),f=n(),f["default"]=f.BigNumber=f,"function"==typeof define&&define.amd)define(function(){return f});else if("undefined"!=typeof module&&module.exports){if(module.exports=f,!g)try{g=require("crypto")}catch(k){}}else e||(e="undefined"!=typeof self?self:Function("return this")()),e.BigNumber=f}(this),febs.crypt=febs.crypt||function(){},febs.crypt.crc32_table=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],febs.crypt.crc32=function(e,n){n==window.undefined&&(n=0),n=-1^n;for(var t=0,r=e.length;r>t;t++)n=n>>>8^febs.crypt.crc32_table[255&(n^e.charCodeAt(t))];return-1^n},febs.crypt.crc32_file=function(e,n){if(!e&&!n)return void(n&&n(0));var t=File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice,r=new FileReader,i=2097152,o=Math.ceil(e.size/i),s=0,l=function(){var n=s*i,o=n+i>=e.size?e.size:n+i;r.readAsBinaryString(t.call(e,n,o))},a=0;r.onload=function(e){a=febs.crypt.crc32(e.target.result,a),s++,o>s?l():n(a)},l()},febs.crypt.uuid=function(){for(var e=[],n="0123456789abcdef",t=0;36>t;t++)e[t]=n.substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]=n.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-";var r=e.join("");return r},febs.crypt.base64_encode=function(e){var n,t,r,i,o,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(r=e.length,t=0,n="";r>t;){if(i=255&e[t++],t==r){n+=l.charAt(i>>2),n+=l.charAt((3&i)<<4),n+="==";break}if(o=e[t++],t==r){n+=l.charAt(i>>2),n+=l.charAt((3&i)<<4|(240&o)>>4),n+=l.charAt((15&o)<<2),n+="=";break}s=e[t++],n+=l.charAt(i>>2),n+=l.charAt((3&i)<<4|(240&o)>>4),n+=l.charAt((15&o)<<2|(192&s)>>6),n+=l.charAt(63&s)}return n},febs.crypt.base64_decode=function(e){for(var n,t,r,i,o=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1),s=0,l=e.length,a=[];l>s;){do n=o[255&e.charCodeAt(s++)];while(l>s&&-1==n);if(-1==n)break;do t=o[255&e.charCodeAt(s++)];while(l>s&&-1==t);if(-1==t)break;a.push(n<<2|(48&t)>>4);do{if(r=255&e.charCodeAt(s++),61==r)return a;r=o[r]}while(l>s&&-1==r);if(-1==r)break;a.push((15&t)<<4|(60&r)>>2);do{if(i=255&e.charCodeAt(s++),61==i)return a;i=o[i]}while(l>s&&-1==i);if(-1==i)break;a.push((3&r)<<6|i)}return a},febs.utils=febs.utils||function(){},febs.utils.browserIsMobile=function(){var e=window.navigator.userAgent,n=["Android","webOS","iPhone","iPad","iPod","Blackberry","Windows Phone"],t=new RegExp(n.join("|"),"i");return null!=e.match(t)},febs.utils.browserIsIOS=function(){var e=window.navigator.userAgent,n=["iPhone","iPad","iPod"],t=new RegExp(n.join("|"),"i");return null!=e.match(t)},febs.utils.browserIsWeixin=function(){var e=window.navigator.userAgent;return"MicroMessenger"==e.match(/MicroMessenger/i)?!0:!1},febs.utils.browserIsPhone=function(){var e=window.navigator.userAgent,n=["Android","iPhone","iPod","Blackberry","Windows Phone"],t=new RegExp(n.join("|"),"i");return null!=e.match(t)},febs.utils.browserIsSupportHtml5=function(){return"undefined"!=typeof Worker?!0:!1},febs.utils.getTimeString=function(e,n,t){if("number"!=typeof e)return"";n=n||"HH:mm:ss";var r=new Date(e),i={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours()%12==0?12:r.getHours()%12,"H+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds(),"q+":Math.floor((r.getMonth()+3)/3),S:r.getMilliseconds()},o=t||{0:"星期天",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"};/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length))),/(E+)/.test(n)&&(n=n.replace(RegExp.$1,o[r.getDay()+""]));for(var s in i)new RegExp("("+s+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?i[s]:("00"+i[s]).substr((""+i[s]).length)));return n},febs.utils.getDate=function(strDate){var date=eval("new Date("+strDate.replace(/\d+(?=-[^-]+$)/,function(e){return parseInt(e,10)-1}).match(/\d+/g)+")");return date},febs.utils.mergeMap=function(){for(var e,n={},t=0;t<arguments.length;t++)if(e=arguments[t])for(var r in e)n[r]=e[r];return n},febs.utils.isNull=function(e){return null===e||void 0===e||Number.isNaN(e)},febs.utils.bigint_check=function(e){if(Number.isInteger(e))return!0;if(!e)return!1;if("string"==typeof e){if(e.length>22||e.length<1)return!1;for(var n=1;n<e.length;n++)if(e[n]<"0"||e[n]>"9")return!1;if("-"==e[0]){if(e.length<2||e[1]<"1"||e[1]>"9")return!1}else if(e[n]<"1"||e[n]>"9")return!1;return!0}return!1},febs.utils.bigint_add=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.plus(n)},febs.utils.bigint_minus=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.minus(n)},febs.utils.bigint_dividedBy=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.dividedBy(n)},febs.utils.bigint_mul=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.times(n)},febs.utils.bigint_equal=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.equals(n)},febs.utils.bigint_more_than=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.greaterThan(n)},febs.utils.bigint_more_than_e=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.greaterThanOrEqualTo(n)},febs.utils.bigint_less_than=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.lessThan(n)},febs.utils.bigint_less_than_e=function(e,n){return e instanceof BigNumber||(e=new BigNumber(e)),e.lessThanOrEqualTo(n)},febs.utils.bigint_toFixed=function(e,n){return n=n||0,e instanceof BigNumber||(e=new BigNumber(e)),e.toFixed(n)},febs.string=febs.string||function(){},febs.string.isPhoneMobile=function(e){return e&&/^0?1[2|3|4|5|6|7|8][0-9]\d{8}$/.test(e)?!0:!1},febs.string.isEmpty=function(e){return e?"string"!=typeof e?!0:0==e.length?!0:!1:!0},febs.string.getByteSize=function(e){if(!e)return 0;var n,t,r=0;for(n=0;n<e.length;n++)t=e.charCodeAt(n),127>t?r+=1:t>=128&&2047>=t?r+=2:t>=2048&&65535>=t?r+=3:t>=65536&&(r+=4);return r},febs.string.replace=function(e,n,t){if(!e||!n)return e;if(0==e.length)return e;var r="",i=e.length,o=0,s=0;do{if(o=e.indexOf(n,s),!(-1!=o&&i>o)){r+=e.slice(s);break}o!=s&&(r+=e.slice(s,o)),r+=t,s=o+n.length}while(i>o);return r},febs.nav=febs.nav||function(){},febs.nav.nav_map={},febs.nav.nav_arr=[],febs.nav.nav_max_length=20,febs.nav.nav_callback=null,febs.nav.nav_url_equal_callback=null,febs.nav.nav_ajax_count=0,febs.nav.nav_cur_url=null,febs.nav.nav_options={defaultTimeout:1e4},febs.nav.ajax=function(e){if(e.url){var n=e.url.indexOf("?");0>n?(e.url+="?ajaxmark="+febs.nav.nav_ajax_count,febs.nav.nav_ajax_count++):n==e.url.length-1?(e.url+="ajaxmark="+febs.nav.nav_ajax_count,febs.nav.nav_ajax_count++):(e.url+="&ajaxmark="+febs.nav.nav_ajax_count,febs.nav.nav_ajax_count++)}e.timeout||(e.timeout=febs.nav.nav_options.defaultTimeout),jQuery.ajax(e)},febs.nav.init=function(e,n,t){document.onkeydown=function(e){e=window.event||e;var n=e.keyCode||e.which;if(116==n){if(window.event){try{e.keyCode=0}catch(e){}e.returnValue=!1}else e.preventDefault();nav_refresh()}},t=t||{},t.defaultTimeout=t.defaultTimeout||1e4,febs.nav.nav_options=t,febs.nav.nav_callback=e,febs.nav.nav_url_equal_callback=n},febs.nav.url=function(e){var n=null;return e&&(n=febs.nav.nav_map[e],n=n?n:null),n},febs.nav.hash_change=function(){if(null!=febs.nav.nav_cur_url)return void(febs.nav.nav_cur_url=null);var e=location.hash;if(null!=e&&""!=e){var n=febs.nav.url(e);n&&febs.nav.nav_callback&&febs.nav.nav_callback(n)}},febs.nav.push=function(e){if(febs.nav.nav_url_equal_callback){for(var n=0;n<febs.nav.nav_arr.length;n++){var t=febs.nav.nav_map[febs.nav.nav_arr[n]];if(febs.nav.nav_url_equal_callback(t,e))return window.onhashchange=null,window.location.href=febs.nav.nav_arr[n],febs.nav.nav_cur_url=!0,void(window.onhashchange=febs.nav.hash_change)}var r="#"+febs.crypt.uuid();return febs.nav.nav_arr.length>=febs.nav.nav_max_length&&(delete febs.nav.nav_map[febs.nav.nav_arr[0]],febs.nav.nav_arr.splice(0,1)),window.onhashchange=null,window.location.href=r,febs.nav.nav_cur_url=!0,window.onhashchange=febs.nav.hash_change,febs.nav.nav_map[r]=e,febs.nav.nav_arr.push(r),r}},febs.nav.go=function(e){febs.nav.nav_callback&&(e&&febs.nav.push(e),febs.nav.hash_change())},febs.nav.refresh=function(){febs.nav.go(null)},febs.nav.refresh_elem=function(e,n){febs.nav.ajax({type:"GET",url:n,success:function(n){e.html(n)}})},window.onhashchange=febs.nav.hash_change,febs.controls=febs.controls||function(){},febs.controls.loading_tag_name="control_loading_span_s23153dd12ax1",febs.controls.control_loading_index=0,febs.controls.loading_show=function(e,n){var t=$("body").children("#"+febs.controls.loading_tag_name);t&&0!=t.length||$("body").prepend('<span id="'+febs.controls.loading_tag_name+'"></span>'),febs.controls.control_loading_timer&&window.clearInterval(febs.controls.control_loading_timer),n?febs.controls.control_loading_timer=window.setInterval(function(){febs.controls.loading_show(e)},n):$("#"+febs.controls.loading_tag_name).html('<div class="control_loading_c"><div class="control_loading"><p style="margin-left:auto;margin-right:auto;text-align:center;max-width:200px;">'+(e?e:"")+"</p></div></div>")},febs.controls.loading_show_text=function(e,n,t){var r=$("body").children("#"+febs.controls.loading_tag_name);r&&0!=r.length||$("body").prepend('<span id="'+febs.controls.loading_tag_name+'"></span>'),febs.controls.control_loading_text_elemFunc&&(febs.controls.control_loading_text_hideFunc&&febs.controls.control_loading_text_hideFunc(),febs.controls.control_loading_text_hideFunc=null,febs.controls.control_loading_text_elemFunc=null,febs.controls.control_loading_text_array=null,febs.controls.control_loading_timer&&(window.clearInterval(control_loading_timer),febs.controls.control_loading_timer=null)),febs.controls.control_loading_text_array=e,febs.controls.control_loading_text_hideFunc=t,febs.controls.control_loading_text_elemFunc=n,febs.controls.control_loading_timer=window.setInterval(function(){febs.controls.control_loading_text_elemFunc(febs.controls.control_loading_text_array[febs.controls.control_loading_index++%febs.controls.control_loading_text_array.length])},500)},febs.controls.loading_hide=function(){var e=$("body").children("#"+febs.controls.loading_tag_name);e&&0!=e.length||$("body").prepend('<span id="'+febs.controls.loading_tag_name+'"></span>'),febs.controls.control_loading_timer&&(window.clearInterval(febs.controls.control_loading_timer),febs.controls.control_loading_timer=null),febs.controls.control_loading_text_elemFunc&&(febs.controls.control_loading_text_hideFunc&&febs.controls.control_loading_text_hideFunc(),febs.controls.control_loading_text_hideFunc=null,febs.controls.control_loading_text_elemFunc=null,febs.controls.control_loading_text_array=null,febs.controls.control_loading_timer&&(window.clearInterval(febs.controls.control_loading_timer),febs.controls.control_loading_timer=null)),$("#"+febs.controls.loading_tag_name).html("")},febs.controls=febs.controls||function(){},febs.controls.upload=function(e){var n=e.finishCB,t=e.progressCB,r=e.uploadUrl,i=e.maxFileSize?e.maxFileSize:1/0;if(e.fileType&&e.fileObj.attr("accept",e.fileType),!e.fileObj[0].files[0])return void(n&&n("no file",e.fileObj,null));if(e.fileObj[0].files[0].size>i)return void(n&&n("size too big",e.fileObj,null));var o=r.indexOf("?");0>o?r+="?":o<r.length-1&&(r+="&");var s=e.formObj,l=e.fileObj;febs.crypt.crc32_file(l[0].files[0],function(i){i?s.ajaxSubmit({method:"POST",url:r+"crc32="+i+"&size="+l[0].files[0].size+(e.data?"&data="+e.data:""),dataType:"json",contentType:"application/json; charset=utf-8",uploadProgress:function(e,n,r,i){t&&t(l,i/100)},error:function(){n&&n("ajax err",l,null)},success:function(e){n&&n(null,l,e)}}):n&&n("check crc32 err",l,null)})},febs.controls=febs.controls||function(){},febs.controls.page_map=febs.controls.page_map||{},febs.controls.page_init=function(e,n,t,r,i){var o="page"+febs.crypt.uuid();febs.controls.page_map[o]=i,o="javascript:febs.controls.page_map['"+o+"']";var s="";if(n>0)for(var l=Math.min(n,5),a=1;5>a&&n>a;a++)s+='<li class="control_paginItem"><a href="'+o+"("+(a+n-l)+')">'+(a+n-l)+"</a></li>";
var u="";if(t>e){for(var a=1+e;5+e>a&&t>=a;a++)u+='<li class="control_paginItem"><a href="'+o+"("+a+')">'+a+"</a></li>";t>a&&(u+='<li class="control_paginItem"><a href="'+o+"("+a+')">...</a></li>')}var c=e>1?o+"("+(e-1)+")":"javascript:;",f=e>1?"control_pagepre":"control_pagepre_no",g=t>e?o+"("+(e+1)+")":"javascript:;",h=t>e?"control_pagenxt":"control_pagenxt_no",b=n.children(".control_pagin");b&&b.length>0&&b[0].remove(),n.append('<div class="control_pagin">\r\n <div class="message">\r\n 共<i class="blue">'+r+'</i>条记录,当前显示第&nbsp;<i class="blue">'+e+'&nbsp;</i>页\r\n </div>\r\n <ul class="control_paginList">\r\n <li class="control_paginItem">\r\n <a href="'+c+'">\r\n <span style="display: block" class='+f+"></span>\r\n </a>\r\n </li>"+s+'<li class="control_paginItem control_current">\r\n <a href="javascript:;">'+e+"</a>\r\n </li>"+u+'<li class="control_paginItem">\r\n <a href="'+g+'">\r\n <span style="display: block" class='+h+"></span>\r\n </a>\r\n </li>\r\n </ul>\r\n</div>")};
var u="";if(t>n){for(var a=1+n;5+n>a&&t>=a;a++)u+='<li class="control_paginItem"><a href="'+o+"("+a+')">'+a+"</a></li>";t>a&&(u+='<li class="control_paginItem"><a href="'+o+"("+a+')">...</a></li>')}var c=n>1?o+"("+(n-1)+")":"javascript:;",f=n>1?"control_pagepre":"control_pagepre_no",g=t>n?o+"("+(n+1)+")":"javascript:;",h=t>n?"control_pagenxt":"control_pagenxt_no",b=e.children(".control_pagin");b&&b.length>0&&b[0].remove(),e.append('<div class="control_pagin"> <div class="message"> 共<i class="blue">'+r+'</i>条记录,当前显示第&nbsp;<i class="blue">'+n+'&nbsp;</i>页 </div> <ul class="control_paginList"> <li class="control_paginItem"> <a href="'+c+'"> <span style="display: block" class='+f+"></span> </a> </li>"+s+'<li class="control_paginItem control_current"> <a href="javascript:;">'+n+"</a> </li>"+u+'<li class="control_paginItem"> <a href="'+g+'"> <span style="display: block" class='+h+"></span> </a> </li> </ul></div>")};

@@ -24,1 +24,6 @@

0.2.5
==================
- [feature] 添加 febs.file.dirExplorer
- [feature] 添加 febs.file.dirExplorerFilesRecursive
- [feature] 添加 febs.file.dirExplorerDirsRecursive

@@ -44,3 +44,3 @@ {

"name": "febs",
"version": "0.2.4"
"version": "0.2.5"
}

@@ -331,2 +331,26 @@ febs 库是一些常用的工具的合集;

/**
* @desc: 获取当前目录下的子文件与子目录.
* @param dir: 要搜索的目录路径.
* @param pattern: 子文件或子目录名称,匹配的正则表达式
* 仅从名称的第一个字符开始匹配, 例如: / a.* /, 匹配 a开头的文件名.
* @return: {files:[], dirs:[]}; 发生错误返回null.
*/
febs.file.dirExplorer(dir)
/**
* @desc: 递归获取当前目录下的所有子文件.
* @param dir: 要搜索的目录路径.
* @param pattern: 子文件或子目录名称,匹配的正则表达式
* 仅从名称的第一个字符开始匹配, 例如: / a.* /, 匹配 a开头的文件名.
* @return: Array; 发生错误返回null.
*/
febs.file.dirExplorerFilesRecursive(dir, pattern)
/**
* @desc: 递归获取当前目录下的所有子目录.
* @param dir: 要搜索的目录路径.
* @param pattern: 子文件或子目录名称,匹配的正则表达式
* 仅从名称的第一个字符开始匹配, 例如: / a.* /, 匹配 a开头的文件名.
* @return: Array; 发生错误返回null.
*/
febs.file.dirExplorerDirsRecursive(dir, pattern)
/**
* @desc: 获得文件的字节大小.

@@ -333,0 +357,0 @@ * @return: number.-1表示错误.

exports.upload = require('./upload');

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -193,3 +193,155 @@ 'use strict';

/**
* @desc: 获取当前目录下的子文件与子目录.
* @param dir: 要搜索的目录路径.
* @param pattern: 子文件或子目录名称,匹配的正则表达式
* 仅从名称的第一个字符开始匹配, 例如: / a.* /, 匹配 a开头的文件名.
* @return: {files:[], dirs:[]}; 发生错误返回null.
*/
exports.dirExplorer = function(dir, pattern) {
let ret = {files:[], dirs:[]};
let fspath;
let stat;
try {
let dirList = fs.readdirSync(dir);
for (let i = 0; i < dirList.length; i++) {
if (pattern) {
let pr = pattern.exec(dirList[i]);
if (!pr || pr.index != 0)
continue;
}
fspath = path.join(dir, dirList[i]);
stat = fs.statSync(fspath);
if (stat.isDirectory()) {
ret.dirs.push(dirList[i]);
} else if (stat.isFile()) {
ret.files.push(dirList[i]);
}
}
} catch(e) {
return null;
}
return ret;
}
/**
* @desc: 递归获取当前目录下的所有子文件.
* @param dir: 要搜索的目录路径.
* @param pattern: 子文件或子目录名称,匹配的正则表达式
* 仅从名称的第一个字符开始匹配, 例如: / a.* /, 匹配 a开头的文件名.
* @return: Array; 发生错误返回null.
*/
exports.dirExplorerFilesRecursive = function(dir, pattern) {
let ret = [];
let fspath;
let stat;
let dirs = [];
try {
let dirList = fs.readdirSync(dir);
for (let i = 0; i < dirList.length; i++) {
fspath = path.join(dir, dirList[i]);
stat = fs.statSync(fspath);
if (stat.isDirectory()) {
dirs.push(dirList[i]);
} else if (stat.isFile()) {
if (pattern) {
let pr = pattern.exec(dirList[i]);
if (!pr || pr.index != 0)
continue;
}
ret.push(dirList[i]);
}
}
for (let j = 0; j < dirs.length; j++) {
let dirList = fs.readdirSync(path.join(dir, dirs[j]));
for (let i = 0; i < dirList.length; i++) {
fspath = path.join(dir, dirs[j], dirList[i]);
stat = fs.statSync(fspath);
if (stat.isDirectory()) {
dirs.push(path.join(dirs[j], dirList[i]));
} else if (stat.isFile()) {
if (pattern) {
let pr = pattern.exec(dirList[i]);
if (!pr || pr.index != 0)
continue;
}
ret.push(path.join(dirs[j], dirList[i]));
}
} // for.
} // for.
} catch(e) {
return null;
}
return ret;
}
/**
* @desc: 递归获取当前目录下的所有子目录.
* @param dir: 要搜索的目录路径.
* @param pattern: 子文件或子目录名称,匹配的正则表达式
* 仅从名称的第一个字符开始匹配, 例如: / a.* /, 匹配 a开头的文件名.
* @return: Array; 发生错误返回null.
*/
exports.dirExplorerDirsRecursive = function(dir, pattern) {
let ret = [];
let fspath;
let stat;
let dirs = [];
try {
let dirList = fs.readdirSync(dir);
for (let i = 0; i < dirList.length; i++) {
fspath = path.join(dir, dirList[i]);
stat = fs.statSync(fspath);
if (stat.isDirectory()) {
dirs.push(dirList[i]);
if (pattern) {
let pr = pattern.exec(dirList[i]);
if (!pr || pr.index != 0)
continue;
}
ret.push(dirList[i]);
}
}
for (let j = 0; j < dirs.length; j++) {
let dirList = fs.readdirSync(path.join(dir, dirs[j]));
for (let i = 0; i < dirList.length; i++) {
fspath = path.join(dir, dirs[j], dirList[i]);
stat = fs.statSync(fspath);
if (stat.isDirectory()) {
dirs.push(path.join(dirs[j], dirList[i]));
if (pattern) {
let pr = pattern.exec(dirList[i]);
if (!pr || pr.index != 0)
continue;
}
ret.push(path.join(dirs[j], dirList[i]));
}
} // for.
} // for.
} catch(e) {
return null;
}
return ret;
}
/**
* @desc: 判断文件是否存在.

@@ -196,0 +348,0 @@ * @return: boolean.

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc