vendor: 4,685 bytes, line 1
1import{ii as e}from"./portfolio-core-BY-QcD1q.js";var t=9e15,n=1e9,r=`0123456789abcdef`,i=`2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058`,a=`3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789`,o={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-t,maxE:t,crypto:!1},s,c,l=!0,u=`[DecimalError] `,d=u+`Invalid argument: `,f=u+`Precision limit exceeded`,p=u+`crypto unavailable`,m=`[object Decimal]`,h=Math.floor,g=Math.pow,_=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,y=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,b=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=1e7,S=7,C=9007199254740991,w=i.length-1,T=a.length-1,E={toStringTag:m};E.absoluteValue=E.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),N(e)},E.ceil=function(){return N(new this.constructor(this),this.e+1,2)},E.clampedTo=E.clamp=function(e,t){var n,r=this,i=r.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(d+t);return n=r.cmp(e),n<0?e:r.cmp(t)>0?t:new i(r)},E.comparedTo=E.cmp=function(e){var t,n,r,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,c=a.s,l=e.s;if(!o||!s)return!c||!l?NaN:c===l?o===s?0:!o^c<0?1:-1:c;if(!o[0]||!s[0])return o[0]?c:s[0]?-l:0;if(c!==l)return c;if(a.e!==e.e)return a.e>e.e^c<0?1:-1;for(r=o.length,i=s.length,t=0,n=r<i?r:i;t<n;++t)if(o[t]!==s[t])return o[t]>s[t]^c<0?1:-1;return r===i?0:r>i^c<0?1:-1},E.cosine=E.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+S,r.rounding=1,n=j(r,G(r,n)),r.precision=e,r.rounding=t,N(c==2||c==3?n.neg():n,e,t,!0)):new r(1):new r(NaN)},E.cubeRoot=E.cbrt=function(){var e,t,n,r,i,a,o,s,c,u,d=this,f=d.constructor;if(!d.isFinite()||d.isZero())return new f(d);for(l=!1,a=d.s*g(d.s*d,1/3),!a||Math.abs(a)==1/0?(n=D(d.d),e=d.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?`0`:`00`),a=g(n,1/3),e=h((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n=`5e`+e:(n=a.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+e),r=new f(n),r.s=d.s):r=new f(a.toString()),o=(e=f.precision)+3;;)if(s=r,c=s.times(s).times(s),u=c.plus(d),r=M(u.plus(d).times(s),u.plus(c),o+2,1),D(s.d).slice(0,o)===(n=D(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n==`9999`||!i&&n==`4999`){if(!i&&(N(s,e+1,0),s.times(s).times(s).eq(d))){r=s;break}o+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(N(r,e+1,1),t=!r.times(r).times(r).eq(d));break}return l=!0,N(r,e,f.rounding,t)},E.decimalPlaces=E.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-h(this.e/S))*S,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},E.dividedBy=E.div=function(e){return M(this,new this.constructor(e))},E.dividedToIntegerBy=E.divToInt=function(e){var t=this,n=t.constructor;
1return N(M(t,new n(e),0,1,1),n.precision,n.rounding)},E.equals=E.eq=function(e){return this.cmp(e)===0},E.floor=function(){return N(new this.constructor(this),this.e+1,3)},E.greaterThan=E.gt=function(e){return this.cmp(e)>0},E.greaterThanOrEqualTo=E.gte=function(e){var t=this.cmp(e);return t==1||t===0},E.hyperbolicCosine=E.cosh=function(){var e,t,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),t=(1/W(4,e)).toString()):(e=16,t=`2.3283064365386962890625e-10`),a=U(o,1,a.times(t),new o(1),!0);for(var c,l=e,u=new o(8);l--;)c=a.times(a),a=s.minus(c.times(u.minus(c.times(u))));return N(a,o.precision=n,o.rounding=r,!0)},E.hyperbolicSine=E.sinh=function(){var e,t,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,r=i.d.length,r<3)i=U(a,2,i,i,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,i=i.times(1/W(5,e)),i=U(a,2,i,i,!0);for(var o,s=new a(5),c=new a(16),l=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(c.times(o).plus(l))))}return a.precision=t,a.rounding=n,N(i,t,n,!0)},E.hyperbolicTangent=E.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,M(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},E.inverseCosine=E.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return n===-1?e.isZero()?L(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2)):n===0?e.isNeg()?L(t,r,i):new t(0):new t(NaN)},E.inverseHyperbolicCosine=E.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,l=!1,n=n.times(n).minus(1).sqrt().plus(n),l=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},E.inverseHyperbolicSine=E.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,l=!1,n=n.times(n).plus(1).sqrt().plus(n),l=!0,r.precision=e,r.rounding=t,n.ln())},E.inverseHyperbolicTangent=E.atanh=function(){var e,t,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?N(new a(i),e,t,!0):(a.precision=n=r-i.e,i=M(i.plus(1),new a(1).minus(i),n+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},E.inverseSine=E.asin=function(){var e,t,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),n=a.precision,r=a.rounding,t===-1?(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2)):t===0?(e=L(a,n+4,r).times(.5),e.s=i.s,e):new a(NaN))},E.inverseTangent=E.atan=function(){var e,t,n,r,i,a,o,s,c,u=this,d=u.constructor,f=d.precision,p=d.rounding;if(!u.isFinite()){if(!u.s)return new d(NaN);if(f+4<=T)return o=L(d,f+4,p).times(.5),o.s=u.s,o}else if(u.isZero())return new d(u);else if(u.abs().eq(1)&&f+4<=T)return o=L(d,f+4,p).times(.25),o.s=u.s,o;for(d.precision=s=f+10,d.rounding=1,n=Math.min(28,s/S+2|0),e=n;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(l=!1,t=Math.ceil(s/S),r=1,c=u.times(u),o=new d(u),i=u;e!==-1;)if(i=i.times(c),a=o.minus(i.div(r+=2)),i=i.times(c),o=a.plus(i.div(r+=2)),o.d[t]!==void 0)for(e=t;o.d[e]===a.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),l=!0,N(o,d.precision=f,d.rounding=p,!0)},E.isFinite=function(){return!!this.d},E.isInteger=E.isInt=function(){return!!this.d&&h(this.e/S)>this.d.length-2},E.isNaN=function(){return!this.s},E.isNegative=E.isNeg=function(){return this.s<0},E.isPositive=E.isPos=function(){return this.s>0},E.isZero=function(){return!!this.d&&this.d[0]===0},E.lessThan=E.lt=function(e){return this.cmp(e)<0}
vendor: 20,544 bytes, line 1
1,E.lessThanOrEqualTo=E.lte=function(e){return this.cmp(e)<1},E.logarithm=E.log=function(e){var t,n,r,i,a,o,s,c,u=this,d=u.constructor,f=d.precision,p=d.rounding,m=5;if(e==null)e=new d(10),t=!0;else{if(e=new d(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new d(NaN);t=e.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new d(n&&!n[0]?-1/0:u.s==1?n?0:1/0:NaN);if(t)if(n.length>1)a=!0;else{for(i=n[0];i%10==0;)i/=10;a=i!==1}if(l=!1,s=f+m,o=V(u,s),r=t?I(d,s+10):V(e,s),c=M(o,r,s,1),k(c.d,i=f,p))do if(s+=10,o=V(u,s),r=t?I(d,s+10):V(e,s),c=M(o,r,s,1),!a){+D(c.d).slice(i+1,i+15)+1==0x5af3107a4000&&(c=N(c,f+1,0));break}while(k(c.d,i+=10,p));return l=!0,N(c,f,p)},E.minus=E.sub=function(e){var t,n,r,i,a,o,s,c,u,d,f,p,m=this,g=m.constructor;if(e=new g(e),!m.d||!e.d)return!m.s||!e.s?e=new g(NaN):m.d?e.s=-e.s:e=new g(e.d||m.s!==e.s?m:NaN),e;if(m.s!=e.s)return e.s=-e.s,m.plus(e);if(u=m.d,p=e.d,s=g.precision,c=g.rounding,!u[0]||!p[0]){if(p[0])e.s=-e.s;else if(u[0])e=new g(m);else return new g(c===3?-0:0);return l?N(e,s,c):e}if(n=h(e.e/S),d=h(m.e/S),u=u.slice(),a=d-n,a){for(f=a<0,f?(t=u,a=-a,o=p.length):(t=p,n=d,o=u.length),r=Math.max(Math.ceil(s/S),o)+2,a>r&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for(r=u.length,o=p.length,f=r<o,f&&(o=r),r=0;r<o;r++)if(u[r]!=p[r]){f=u[r]<p[r];break}a=0}for(f&&(t=u,u=p,p=t,e.s=-e.s),o=u.length,r=p.length-o;r>0;--r)u[o++]=0;for(r=p.length;r>a;){if(u[--r]<p[r]){for(i=r;i&&u[--i]===0;)u[i]=x-1;--u[i],u[r]+=x}u[r]-=p[r]}for(;u[--o]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(e.d=u,e.e=F(u,n),l?N(e,s,c):e):new g(c===3?-0:0)},E.modulo=E.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?N(new r(n),r.precision,r.rounding):(l=!1,r.modulo==9?(t=M(n,e.abs(),0,3,1),t.s*=e.s):t=M(n,e,0,r.modulo,1),t=t.times(e),l=!0,n.minus(t))},E.naturalExponential=E.exp=function(){return B(this)},E.naturalLogarithm=E.ln=function(){return V(this)},E.negated=E.neg=function(){var e=new this.constructor(this);return e.s=-e.s,N(e)},E.plus=E.add=function(e){var t,n,r,i,a,o,s,c,u,d,f=this,p=f.constructor;if(e=new p(e),!f.d||!e.d)return!f.s||!e.s?e=new p(NaN):f.d||(e=new p(e.d||f.s===e.s?f:NaN)),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(u=f.d,d=e.d,s=p.precision,c=p.rounding,!u[0]||!d[0])return d[0]||(e=new p(f)),l?N(e,s,c):e;if(a=h(f.e/S),r=h(e.e/S),u=u.slice(),i=a-r,i){for(i<0?(n=u,i=-i,o=d.length):(n=d,r=a,o=u.length),a=Math.ceil(s/S),o=a>o?a+1:o+1,i>o&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(o=u.length,i=d.length,o-i<0&&(i=o,n=d,d=u,u=n),t=0;i;)t=(u[--i]=u[i]+d[i]+t)/x|0,u[i]%=x;for(t&&(u.unshift(t),++r),o=u.length;u[--o]==0;)u.pop();return e.d=u,e.e=F(u,r),l?N(e,s,c):e},E.precision=E.sd=function(e){var t,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(d+e);return n.d?(t=ee(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},E.round=function(){var e=this,t=e.constructor;return N(new t(e),e.e+1,t.rounding)},E.sine=E.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+S,r.rounding=1,n=ae(r,G(r,n)),r.precision=e,r.rounding=t,N(c>2?n.neg():n,e,t,!0)):new r(NaN)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,a,o=this,s=o.d,c=o.e,u=o.s,d=o.constructor;if(u!==1||!s||!s[0])return new d(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);for(l=!1,u=Math.sqrt(+o),u==0||u==1/0?(t=D(s),(t.length+c)%2==0&&(t+=`0`),u=Math.sqrt(t),c=h((c+1)/2)-(c<0||c%2),u==1/0?t=`5e`+c:(t=u.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+c),r=new d(t)):r=new d(u.toString()),n=(c=d.precision)+3;;)if(a=r,r=a.plus(M(o,a,n+2,1)).times(.5),D(a.d).slice(0,n)===(t=D(r.d)).slice(0,n))if(t=t.slice(n-3,n+1),t==`9999`||!i&&t==`4999`){if(!i&&(N(a,c+1,0),a.times(a).eq(o))){r=a;break}n+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)==`5`)&&(N(r,c+1,1),e=!r.times(r).eq(o));break}return l=!0,N(r,c,d.rounding,e)},E.tangent=E.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=M(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,N(c==2||c==4?n.neg():n,e,t,!0)):new r(NaN)},E.times=E.mul=function(e){var t,n,r,i,a,o,s,c,u,d=this,f=d.constructor,p=d.d,m=(e=new f(e)).d;if(e.s*=d.s,!p||!p[0]||!m||!m[0])return new f(!e.s||p&&!p[0]&&!m||m&&!m[0]&&!p?NaN:!p||!m?e.s/0:e.s*0);for(n=h(d.e/S)+h(e.e/S),c=p.length,u=m.length,c<u&&(a=p,p=m,m=a,o=c,c=u,u=o),a=[],o=c+u,r=o;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)s=a[i]+m[r]*p[i-r-1]+t,a[i--]=s%x|0,t=s/x|0;a[i]=(a[i]+t)%x|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=F(a,n),l?N(e,f.precision,f.rounding):e},E.toBinary=function(e,t){return K(this,2,e,t)},E.toDecimalPlaces=E.toDP=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(O(e,0,n),t===void 0?t=i.rounding:O(t,0,8),N(r,e+r.e+1,t))},E.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=P(i,!0):(O(e,0,n),t===void 0?t=a.rounding:O(t,0,8),i=N(new a(i),e+1,t),r=P(i,!0,e+1)),i.isNeg()&&!i.isZero()?`-`+r:r},E.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?r=P(a):(O(e,0,n),t===void 0?t=o.rounding:O(t,0,8),i=N(new o(a),e+a.e+1,t),r=P(i,!1,e+i.e+1)),a.isNeg()&&!a.isZero()?`-`+r:r},E.toFraction=function(e){var t,n,r,i,a,o,s,c,u,f,p,m,h=this,_=h.d,v=h.constructor;if(!_)return new v(h);if(u=n=new v(1),r=c=new v(0),t=new v(r),a=t.e=ee(_)-h.e-1,o=a%S,t.d[0]=g(10,o<0?S+o:o),e==null)e=a>0?t:u;else{if(s=new v(e),!s.isInt()||s.lt(u))throw Error(d+s);e=s.gt(t)?a>0?t:u:s}for(l=!1,s=new v(D(_)),f=v.precision,v.precision=a=_.length*S*2;p=M(s,t,0,1,1),i=n.plus(p.times(r)),i.cmp(e)!=1;)n=r,r=i,i=u,u=c.plus(p.times(i)),c=i,i=t,t=s.minus(p.times(i)),s=i;return i=M(e.minus(n),r,0,1,1),c=c.plus(i.times(u)),n=n.plus(i.times(r)),c.s=u.s=h.s,m=M(u,r,a,1).minus(h).abs().cmp(M(c,n,a,1).minus(h).abs())<1?[u,r]:[c,n],v.precision=f,l=!0,m},E.toHexadecimal=E.toHex=function(e,t){return K(this,16,e,t)},E.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),t===void 0?t=r.rounding:O(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&=n.s,e}return e.d[0]?(l=!1,n=M(n,e,0,t,1).times(e),l=!0,N(n)):(e.s=n.s,n=e),n},E.toNumber=function(){return+this},E.toOctal=function(e,t){return K(this,8,e,t)},E.toPower=E.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,u=+(e=new c(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new c(g(+s,u));if(s=new c(s),s.eq(1))return s;if(r=c.precision,a=c.rounding,e.eq(1))return N(s,r,a);if(t=h(e.e/S),t>=e.d.length-1&&(n=u<0?-u:u)<=C)return i=z(c,s,n,r),e.s<0?new c(1).div(i):N(i,r,a);if(o=s.s,o<0){if(t<e.d.length-1)return new c(NaN);if(e.d[t]&1||(o=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=o,s}return n=g(+s,u),t=n==0||!isFinite(n)?h(u*(Math.log(`0.`+D(s.d))/Math.LN10+s.e+1)):new c(n+``).e,t>c.maxE+1||t<c.minE-1?new c(t>0?o/0:0):(l=!1,c.rounding=s.s=1,n=Math.min(12,(t+``).length),i=B(e.times(V(s,r+n)),r),i.d&&(i=N(i,r+5,1),k(i.d,r,a)&&(t=r+10,i=N(B(e.times(V(s,t+n)),t),t+5,1),+D(i.d).slice(r+1,r+15)+1==0x5af3107a4000&&(i=N(i,r+1,0)))),i.s=o,l=!0,c.rounding=a,N(i,r,a))},E.toPrecision=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=P(i,i.e<=a.toExpNeg||i.e>=a.toExpPos):(O(e,1,n),t===void 0?t=a.rounding:O(t,0,8),i=N(new a(i),e,t),r=P(i,e<=i.e||i.e<=a.toExpNeg,e)),i.isNeg()&&!i.isZero()?`-`+r:r},E.toSignificantDigits=E.toSD=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(O(e,1,n),t===void 0?t=i.rounding:O(t,0,8)),N(new i(r),e,t)},E.toString=function(){var e=this,t=e.constructor,n=P(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?`-`+n:n},E.truncated=E.trunc=function(){return N(new this.constructor(this),this.e+1,1)},E.valueOf=E.toJSON=function(){var e=this,t=e.constructor,n=P(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?`-`+n:n};function D(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=S-r.length,n&&(a+=R(n)),a+=r;o=e[t],r=o+``,n=S-r.length,n&&(a+=R(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}function O(e,t,n){if(e!==~~e||e<t||e>n)throw Error(d+e)}function k(e,t,n,r){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=S,i=0):(i=Math.ceil((t+1)/S),t%=S),a=g(10,S-t),s=e[i]%a|0,r==null?t<3?(t==0?s=s/100|0:t==1&&(s=s/10|0),o=n<4&&s==99999||n>3&&s==49999||s==5e4||s==0):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(e[i+1]/a/100|0)==g(10,t-2)-1||(s==a/2||s==0)&&(e[i+1]/a/100|0)==0:t<4?(t==0?s=s/1e3|0:t==1?s=s/100|0:t==2&&(s=s/10|0),o=(r||n<4)&&s==9999||!r&&n>3&&s==4999):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==g(10,t-3)-1,o}function A(e,t,n){for(var i,a=[0],o,s=0,c=e.length;s<c;){for(o=a.length;o--;)a[o]*=t;for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(a[i+1]===void 0&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}function j(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?(n=Math.ceil(r/3),i=(1/W(4,n)).toString()):(n=16,i=`2.3283064365386962890625e-10`),e.precision+=n,t=U(e,1,t.times(i),new e(1));for(var a=n;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}var M=(function(){function e(e,t,n){var r,i=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+i,e[a]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,a,o,c,l){var u,d,f,p,m,g,_,v,y,b,C,w,T,E,D,O,k,A,j,M,P=r.constructor,F=r.s==i.s?1:-1,I=r.d,L=i.d;if(!I||!I[0]||!L||!L[0])return new P(!r.s||!i.s||(I?L&&I[0]==L[0]:!L)?NaN:I&&I[0]==0||!L?F*0:F/0);for(l?(m=1,d=r.e-i.e):(l=x,m=S,d=h(r.e/m)-h(i.e/m)),j=L.length,k=I.length,y=new P(F),b=y.d=[],f=0;L[f]==(I[f]||0);f++);if(L[f]>(I[f]||0)&&d--,a==null?(E=a=P.precision,o=P.rounding):E=c?a+(r.e-i.e)+1:a,E<0)b.push(1),g=!0;else{if(E=E/m+2|0,f=0,j==1){for(p=0,L=L[0],E++;(f<k||p)&&E--;f++)D=p*l+(I[f]||0),b[f]=D/L|0,p=D%L|0;g=p||f<k}else{for(p=l/(L[0]+1)|0,p>1&&(L=e(L,p,l),I=e(I,p,l),j=L.length,k=I.length),O=j,C=I.slice(0,j),w=C.length;w<j;)C[w++]=0;M=L.slice(),M.unshift(0),A=L[0],L[1]>=l/2&&++A;do p=0,u=t(L,C,j,w),u<0?(T=C[0],j!=w&&(T=T*l+(C[1]||0)),p=T/A|0,p>1?(p>=l&&(p=l-1),_=e(L,p,l),v=_.length,w=C.length,u=t(_,C,v,w),u==1&&(p--,n(_,j<v?M:L,v,l))):(p==0&&(u=p=1),_=L.slice()),v=_.length,v<w&&_.unshift(0),n(C,_,w,l),u==-1&&(w=C.length,u=t(L,C,j,w),u<1&&(p++,n(C,j<w?M:L,w,l))),w=C.length):u===0&&(p++,C=[0]),b[f++]=p,u&&C[0]?C[w++]=I[O]||0:(C=[I[O]],w=1);while((O++<k||C[0]!==void 0)&&E--);g=C[0]!==void 0}b[0]||b.shift()}if(m==1)y.e=d,s=g;else{for(f=1,p=b[0];p>=10;p/=10)f++;y.e=f+d*m-1,N(y,c?a+y.e+1:a,o,g)}return y}})();function N(e,t,n,r){var i,a,o,s,c,u,d,f,p,m=e.constructor;out:if(t!=null){if(f=e.d,!f)return e;for(i=1,s=f[0];s>=10;s/=10)i++;if(a=t-i,a<0)a+=S,o=t,d=f[p=0],c=d/g(10,i-o-1)%10|0;else if(p=Math.ceil((a+1)/S),s=f.length,p>=s)if(r){for(;s++<=p;)f.push(0);d=c=0,i=1,a%=S,o=a-S+1}else break out;else{for(d=s=f[p],i=1;s>=10;s/=10)i++;a%=S,o=a-S+i,c=o<0?0:d/g(10,i-o-1)%10|0}if(r=r||t<0||f[p+1]!==void 0||(o<0?d:d%g(10,i-o-1)),u=n<4?(c||r)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||r||n==6&&(a>0?o>0?d/g(10,i-o):0:f[p-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,u?(t-=e.e+1,f[0]=g(10,(S-t%S)%S),e.e=-t||0):f[0]=e.e=0,e;if(a==0?(f.length=p,s=1,p--):(f.length=p+1,s=g(10,S-a),f[p]=o>0?(d/g(10,i-o)%g(10,o)|0)*s:0),u)for(;;)if(p==0){for(a=1,o=f[0];o>=10;o/=10)a++;for(o=f[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,f[0]==x&&(f[0]=1));break}else{if(f[p]+=s,f[p]!=x)break;f[p--]=0,s=1}for(a=f.length;f[--a]===0;)f.pop()}return l&&(e.e>m.maxE?(e.d=null,e.e=NaN):e.e<m.minE&&(e.e=0,e.d=[0])),e}function P(e,t,n){if(!e.isFinite())return re(e);var r,i=e.e,a=D(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+R(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(e.e<0?`e`:`e+`)+e.e):i<0?(a=`0.`+R(-i-1)+a,n&&(r=n-o)>0&&(a+=R(r))):i>=o?(a+=R(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+R(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=R(r))),a}function F(e,t){var n=e[0];for(t*=S;n>=10;n/=10)t++;return t}function I(e,t,n){if(t>w)throw l=!0,n&&(e.precision=n),Error(f);return N(new e(i),t,1,!0)}function L(e,t,n){if(t>T)throw Error(f);return N(new e(a),t,n,!0)}function ee(e){var t=e.length-1,n=t*S+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function R(e){for(var t=``;e--;)t+=`0`;return t}function z(e,t,n,r){var i,a=new e(1),o=Math.ceil(r/S+4);for(l=!1;;){if(n%2&&(a=a.times(t),q(a.d,o)&&(i=!0)),n=h(n/2),n===0){n=a.d.length-1,i&&a.d[n]===0&&++a.d[n];break}t=t.times(t),q(t.d,o)}return l=!0,a}function te(e){return e.d[e.d.length-1]&1}function ne(e,t,n){for(var r,i,a=new e(t[0]),o=0;++o<t.length;){if(i=new e(t[o]),!i.s){a=i;break}r=a.cmp(i),(r===n||r===0&&a.s===n)&&(a=i)}return a}function B(e,t){var n,r,i,a,o,s,c,u=0,d=0,f=0,p=e.constructor,m=p.rounding,h=p.precision;if(!e.d||!e.d[0]||e.e>17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(l=!1,c=h):c=t,s=new p(.03125);e.e>-2;)e=e.times(s),f+=5;for(r=Math.log(g(2,f))/Math.LN10*2+5|0,c+=r,n=a=o=new p(1),p.precision=c;;){if(a=N(a.times(e),c,1),n=n.times(++d),s=o.plus(M(a,n,c,1)),D(s.d).slice(0,c)===D(o.d).slice(0,c)){for(i=f;i--;)o=N(o.times(o),c,1);if(t==null)if(u<3&&k(o.d,c-r,m,u))p.precision=c+=10,n=a=s=new p(1),d=0,u++;else return N(o,p.precision=h,m,l=!0);else return p.precision=h,o}o=s}}function V(e,t){var n,r,i,a,o,s,c,u,d,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,y=v.rounding,b=v.precision;if(g.s<0||!_||!_[0]||!g.e&&_[0]==1&&_.length==1)return new v(_&&!_[0]?-1/0:g.s==1?_?0:g:NaN);if(t==null?(l=!1,d=b):d=t,v.precision=d+=h,n=D(_),r=n.charAt(0),Math.abs(a=g.e)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=D(g.d),r=n.charAt(0),m++;a=g.e,r>1?(g=new v(`0.`+n),a++):g=new v(r+`.`+n.slice(1))}else return u=I(v,d+2,b).times(a+``),g=V(new v(r+`.`+n.slice(1)),d-h).plus(u),v.precision=b,t==null?N(g,b,y,l=!0):g;for(f=g,c=o=g=M(g.minus(1),g.plus(1),d,1),p=N(g.times(g),d,1),i=3;;){if(o=N(o.times(p),d,1),u=c.plus(M(o,new v(i),d,1)),D(u.d).slice(0,d)===D(c.d).slice(0,d))if(c=c.times(2),a!==0&&(c=c.plus(I(v,d+2,b).times(a+``))),c=M(c,new v(m),d,1),t==null)if(k(c.d,d-h,y,s))v.precision=d+=h,u=o=g=M(f.minus(1),f.plus(1),d,1),p=N(g.times(g),d,1),i=s=1;else return N(c,v.precision=b,y,l=!0);else return v.precision=b,c;c=u,i+=2}}function re(e){return String(e.s*e.s/0)}function H(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(r,i),t){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%S,n<0&&(r+=S),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=S;r<i;)e.d.push(+t.slice(r,r+=S));t=t.slice(r),r=S-t.length}else r-=i;for(;r--;)t+=`0`;e.d.push(+t),l&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function ie(e,t){var n,r,i,a,o,s,c,u,f;if(t.indexOf(`_`)>-1){if(t=t.replace(/(\d)_(?=\d)/g,`$1`),b.test(t))return H(e,t)}else if(t===`Infinity`||t===`NaN`)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(v.test(t))n=16,t=t.toLowerCase();else if(_.test(t))n=2;else if(y.test(t))n=8;else throw Error(d+t);for(a=t.search(/p/i),a>0?(c=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf(`.`),o=a>=0,r=e.constructor,o&&(t=t.replace(`.`,``),s=t.length,a=s-a,i=z(r,new r(n),a,a*2)),u=A(t,n,x),f=u.length-1,a=f;u[a]===0;--a)u.pop();return a<0?new r(e.s*0):(e.e=F(u,f),e.d=u,l=!1,o&&(e=M(e,i,s*4)),c&&(e=e.times(Math.abs(c)<54?g(2,c):Y.pow(2,c))),l=!0,e)}function ae(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:U(e,2,t,t);n=1.4*Math.sqrt(r),n=n>16?16:n|0,t=t.times(1/W(5,n)),t=U(e,2,t,t);for(var i,a=new e(5),o=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}function U(e,t,n,r,i){var a,o,s,c,u=1,d=e.precision,f=Math.ceil(d/S);for(l=!1,c=n.times(n),s=new e(r);;){if(o=M(s.times(c),new e(t++*t++),d,1),s=i?r.plus(o):r.minus(o),r=M(o.times(c),new e(t++*t++),d,1),o=s.plus(r),o.d[f]!==void 0){for(a=f;o.d[a]===s.d[a]&&a--;);if(a==-1)break}a=s,s=r,r=o,o=a,u++}return l=!0,o.d.length=f+1,o}function W(e,t){for(var n=e;--t;)n*=e;return n}function G(e,t){var n,r=t.s<0,i=L(e,e.precision,1),a=i.times(.5);if(t=t.abs(),t.lte(a))return c=r?4:1,t;if(n=t.divToInt(i),n.isZero())c=r?3:2;else{if(t=t.minus(n.times(i)),t.lte(a))return c=te(n)?r?2:3:r?4:1,t;c=te(n)?r?1:4:r?3:2}return t.minus(i).abs()}function K(e,t,i,a){var o,c,l,u,d,f,p,m,h,g=e.constructor,_=i!==void 0;if(_?(O(i,1,n),a===void 0?a=g.rounding:O(a,0,8)):(i=g.precision,a=g.rounding),!e.isFinite())p=re(e);else{for(p=P(e),l=p.indexOf(`.`),_?(o=2,t==16?i=i*4-3:t==8&&(i=i*3-2)):o=t,l>=0&&(p=p.replace(`.`,``),h=new g(1),h.e=p.length-l,h.d=A(P(h),10,o),h.e=h.d.length),m=A(p,10,o),c=d=m.length;m[--d]==0;)m.pop();if(!m[0])p=_?`0p+0`:`0`;else{if(l<0?c--:(e=new g(e),e.d=m,e.e=c,e=M(e,h,i,a,0,o),m=e.d,c=e.e,f=s),l=m[i],u=o/2,f||=m[i+1]!==void 0,f=a<4?(l!==void 0||f)&&(a===0||a===(e.s<0?3:2)):l>u||l===u&&(a===4||f||a===6&&m[i-1]&1||a===(e.s<0?8:7)),m.length=i,f)for(;++m[--i]>o-1;)m[i]=0,i||(++c,m.unshift(1));for(d=m.length;!m[d-1];--d);for(l=0,p=``;l<d;l++)p+=r.charAt(m[l]);if(_){if(d>1)if(t==16||t==8){for(l=t==16?4:3,--d;d%l;d++)p+=`0`;for(m=A(p,o,t),d=m.length;!m[d-1];--d);for(l=1,p=`1.`;l<d;l++)p+=r.charAt(m[l])}else p=p.charAt(0)+`.`+p.slice(1);p=p+(c<0?`p`:`p+`)+c}else if(c<0){for(;++c;)p=`0`+p;p=`0.`+p}else if(++c>d)for(c-=d;c--;)p+=`0`;else c<d&&(p=p.slice(0,c)+`.`+p.slice(c))}p=(t==16?`0x`:t==2?`0b`:t==8?`0o`:``)+p}return e.s<0?`-`+p:p}function q(e,t){if(e.length>t)return e.length=t,!0}function oe(e){return new this(e).abs()}function se(e){return new this(e).acos()}function ce(e){return new this(e).acosh()}function le(e,t){return new this(e).plus(t)}function ue(e){return new this(e).asin()}function de(e){return new this(e).asinh()}function fe(e){return new this(e).atan()}function pe(e){return new this(e).atanh()}function me(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,a=r+4;return!e.s||!t.s?n=new this(NaN):!e.d&&!t.d?(n=L(this,a,1).times(t.s>0?.25:.75),n.s=e.s):!t.d||e.isZero()?(n=t.s<0?L(this,r,i):new this(0),n.s=e.s):!e.d||t.isZero()?(n=L(this,a,1).times(.5),n.s=e.s):t.s<0?(this.precision=a,this.rounding=1,n=this.atan(M(e,t,a,1)),t=L(this,a,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(M(e,t,a,1)),n}function he(e){return new this(e).cbrt()}function ge(e){return N(e=new this(e),e.e+1,2)}function _e(e,t,n){return new this(e).clamp(t,n)}function ve(e){if(!e||typeof e!=`object`)throw Error(u+`Object expected`);var r,i,a,s=e.defaults===!0,c=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-t,0,`toExpPos`,0,t,`maxE`,0,t,`minE`,-t,0,`modulo`,0,9];for(r=0;r<c.length;r+=3)if(i=c[r],s&&(this[i]=o[i]),(a=e[i])!==void 0)if(h(a)===a&&a>=c[r+1]&&a<=c[r+2])this[i]=a;else throw Error(d+i+`: `+a);if(i=`crypto`,s&&(this[i]=o[i]),(a=e[i])!==void 0)if(a===!0||a===!1||a===0||a===1)if(a)if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[i]=!0;else throw Error(p);else this[i]=!1;else throw Error(d+i+`: `+a);return this}function ye(e){return new this(e).cos()}function be(e){return new this(e).cosh()}function J(e){var t,n,r;function i(e){var t,n,r,a=this;if(!(a instanceof i))return new i(e);if(a.constructor=i,Te(e)){a.s=e.s,l?!e.d||e.e>i.maxE?(a.e=NaN,a.d=null):e.e<i.minE?(a.e=0,a.d=[0]):(a.e=e.e,a.d=e.d.slice()):(a.e=e.e,a.d=e.d?e.d.slice():e.d);return}if(r=typeof e,r===`number`){if(e===0){a.s=1/e<0?-1:1,a.e=0,a.d=[0];return}if(e<0?(e=-e,a.s=-1):a.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;l?t>i.maxE?(a.e=NaN,a.d=null):t<i.minE?(a.e=0,a.d=[0]):(a.e=t,a.d=[e]):(a.e=t,a.d=[e]);return}if(e*0!=0){e||(a.s=NaN),a.e=NaN,a.d=null;return}return H(a,e.toString())}if(r===`string`)return(n=e.charCodeAt(0))===45?(e=e.slice(1),a.s=-1):(n===43&&(e=e.slice(1)),a.s=1),b.test(e)?H(a,e):ie(a,e);if(r===`bigint`)return e<0?(e=-e,a.s=-1):a.s=1,H(a,e.toString());throw Error(d+e)}if(i.prototype=E,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=ve,i.clone=J,i.isDecimal=Te,i.abs=oe,i.acos=se,i.acosh=ce,i.add=le,i.asin=ue,i.asinh=de,i.atan=fe,i.atanh=pe,i.atan2=me,i.cbrt=he,i.ceil=ge,i.clamp=_e,
1i.cos=ye,i.cosh=be,i.div=xe,i.exp=Se,i.floor=Ce,i.hypot=we,i.ln=Ee,i.log=De,i.log10=ke,i.log2=Oe,i.max=Ae,i.min=je,i.mod=Me,i.mul=Ne,i.pow=Pe,i.random=Fe,i.round=Ie,i.sign=Le,i.sin=Re,i.sinh=ze,i.sqrt=Be,i.sub=Ve,i.sum=He,i.tan=Ue,i.tanh=We,i.trunc=Ge,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`maxE`,`minE`,`modulo`,`crypto`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function xe(e,t){return new this(e).div(t)}function Se(e){return new this(e).exp()}function Ce(e){return N(e=new this(e),e.e+1,3)}function we(){var e,t,n=new this(0);for(l=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return l=!0,new this(1/0);n=t}return l=!0,n.sqrt()}function Te(e){return e instanceof Y||e&&e.toStringTag===m||!1}function Ee(e){return new this(e).ln()}function De(e,t){return new this(e).log(t)}function Oe(e){return new this(e).log(2)}function ke(e){return new this(e).log(10)}function Ae(){return ne(this,arguments,-1)}function je(){return ne(this,arguments,1)}function Me(e,t){return new this(e).mod(t)}function Ne(e,t){return new this(e).mul(t)}function Pe(e,t){return new this(e).pow(t)}function Fe(e){var t,r,i,a,o=0,s=new this(1),c=[];if(e===void 0?e=this.precision:O(e,1,n),i=Math.ceil(e/S),!this.crypto)for(;o<i;)c[o++]=Math.random()*1e7|0;else if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(i));o<i;)a=t[o],a>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:c[o++]=a%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(i*=4);o<i;)a=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((t[o+3]&127)<<24),a>=214e7?crypto.randomBytes(4).copy(t,o):(c.push(a%1e7),o+=4);o=i/4}else throw Error(p);for(i=c[--o],e%=S,i&&e&&(a=g(10,S-e),c[o]=(i/a|0)*a);c[o]===0;o--)c.pop();if(o<0)r=0,c=[0];else{for(r=-1;c[0]===0;r-=S)c.shift();for(i=1,a=c[0];a>=10;a/=10)i++;i<S&&(r-=S-i)}return s.e=r,s.d=c,s}function Ie(e){return N(e=new this(e),e.e+1,this.rounding)}function Le(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function Re(e){return new this(e).sin()}function ze(e){return new this(e).sinh()}function Be(e){return new this(e).sqrt()}function Ve(e,t){return new this(e).sub(t)}function He(){var e=0,t=arguments,n=new this(t[e]);for(l=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return l=!0,N(n,this.precision,this.rounding)}function Ue(e){return new this(e).tan()}function We(e){return new this(e).tanh()}function Ge(e){return N(e=new this(e),e.e+1,1)}E[Symbol.for(`nodejs.util.inspect.custom`)]=E.toString,E[Symbol.toStringTag]=`Decimal`;var Y=E.constructor=J(o);i=new Y(i),a=new Y(a);var X=Y,Z=X.ROUND_HALF_EVEN;X.ROUND_HALF_UP;function Q(e){return e instanceof X?e:new X(e)}function Ke(...e){return e.length===0?new X(1):e.reduce((e,t)=>e.times(Q(t)),new X(1))}function qe(e,t){let n=Q(t);return n.isZero()?new X(0):Q(e).dividedBy(n)}function Je(e){return e.toNumber()}var $=class extends Error{constructor(...t){super(...t),e(this,`name`,`MoneyConvertError`)}};function Ye(e,t){if(!Number.isFinite(e))throw new $(`${t}: non-finite number: ${String(e)}`)}function Xe(e,t={}){let{decimalPlaces:n=2}=t;if(n<0)throw new $(`decimalToApiFloat: decimalPlaces must be non-negative, got ${String(n)}`);let r=Q(e).toDecimalPlaces(n,Z);if(!r.isFinite())throw new $(`decimalToApiFloat: non-finite Decimal after normalization: ${r.toString()}`);let i=r.toNumber();return Ye(i,`decimalToApiFloat`),i}function Ze(e,t={}){let{decimalPlaces:n=2}=t;if(n<0)throw new $(`apiFloatToDecimal: decimalPlaces must be non-negative, got ${String(n)}`);return Ye(e,`apiFloatToDecimal`),new X(String(e)).toDecimalPlaces(n,Z)}var Qe={USD:2,EUR:2,GBP:2,JPY:0,CNY:2,CHF:2,CAD:2,MXN:2,BRL:2,ARS:2,CLP:0,COP:2,PEN:2,UYU:2,PYG:0,BOB:2,VES:2,CRC:2,PAB:2,DOP:2,GTQ:2,HNL:2,NIO:2,CUP:2,JMD:2,TTD:2,BBD:2,BSD:2,BZD:2,GYD:2,SRD:2,HTG:2,AWG:2,ANG:2,XCD:2,KYD:2,BMD:2,FKP:2,AUD:2,NZD:2,HKD:2,SGD:2,KRW:0,INR:2,IDR:0,MYR:2,THB:2,PHP:2,VND:0,TWD:2,PKR:2,BDT:2,LKR:2,NPR:2,MMK:2,KHR:2,LAK:2,BND:2,MOP:2,MNT:2,KZT:2,UZS:2,KGS:2,TJS:2,TMT:2,AFN:2,MVR:2,BTN:2,FJD:2,PGK:2,SBD:2,VUV:0,WST:2,TOP:2,XPF:0,SEK:2,NOK:2,DKK:2,PLN:2,CZK:2,HUF:2,RON:2,BGN:2,HRK:2,ISK:0,RUB:2,UAH:2,TRY:2,GEL:2,AMD:2,AZN:2,BYN:2,MDL:2,MKD:2,RSD:2,BAM:2,ALL:2,AED:2,SAR:2,QAR:2,KWD:3,BHD:3,OMR:3,ILS:2,JOD:3,LBP:2,SYP:2,IQD:3,YER:2,IRR:2,ZAR:2,EGP:2,NGN:2,KES:2,MAD:2,TND:3,D
1ZD:2,LYD:3,SDG:2,GHS:2,XOF:0,XAF:0,TZS:2,UGX:0,RWF:0},$e={ETB:2,MUR:2,SCR:2,ZMW:2,MWK:2,BWP:2,NAD:2,SZL:2,LSL:2,MZN:2,AOA:2,CDF:2,GMD:2,SLL:2,LRD:2,GNF:0,CVE:2,MGA:1,MRU:1,KMF:0,DJF:0,ERN:2,SOS:2,SSP:2,STN:2,BIF:0,ZWL:2,BTC:8,ETH:8,USDT:6,BNB:8,SOL:9,XRP:6,USDC:6,ADA:6,AVAX:8,DOGE:8,TRX:6,DOT:10,LINK:8,TON:9,MATIC:8,SHIB:8,LTC:8,BCH:8,DAI:8,LEO:8,ATOM:6,UNI:8,ETC:8,XLM:7,OKB:8,XMR:12,HBAR:8,FIL:8,APT:8,CRO:8,ARB:8,VET:8,MKR:8,NEAR:8,OP:8,ALGO:6,GRT:8,AAVE:8,QNT:8,ICP:8,EGLD:8,STX:6,RUNE:8,SAND:8,INJ:8,IMX:8,THETA:8,XTZ:6,AXS:8,EOS:4,FTM:8,MANA:8,NEO:8,FLOW:8,KCS:8,KLAY:8,XEC:2,LUNC:6,RPL:8,SNX:8,CAKE:8,BTT:8,CHZ:8,ZEC:8,MINA:9,CRV:8,DASH:8,COMP:8,LDO:8,TUSD:8,KAVA:6,FXS:8,FRAX:8,PEPE:8,SUI:9,WOO:8,MASK:8,ENJ:8,BAT:8,ZIL:12,ONE:8,HT:8,GMT:8,GALA:8,CVX:8,YFI:8,"1INCH":8,ENS:8,DYDX:8,LRC:8,CELO:8,JST:8,ROSE:9,WAVES:8,IOTA:6,KSM:12,NEXO:8,ANKR:8,OCEAN:8,FLUX:8},et={...Qe,...$e};function tt(e){return typeof e!=`string`||e.trim()===``?2:et[e.trim().toUpperCase()]??2}function nt(e){if(e<0)throw Error(`decimalPlaces must be non-negative, got ${String(e)}`)}function rt(e,t=2){return nt(t),Q(e).toDecimalPlaces(t,X.ROUND_HALF_EVEN)}function it(e,t=2){return`${Q(e).toFixed(t)}%`}function at(e,t){let n=tt(e);return{minDecimals:t?.decimals??t?.minimumFractionDigits??n,maxDecimals:t?.decimals??t?.maximumFractionDigits??n}}function ot(e,t){return e.greaterThanOrEqualTo(1e9)?{sign:``,scaled:e.dividedBy(1e9).toFixed(t??1),suffix:`B`}:e.greaterThanOrEqualTo(1e6)?{sign:``,scaled:e.dividedBy(1e6).toFixed(t??1),suffix:`M`}:e.greaterThanOrEqualTo(1e4)?{sign:``,scaled:e.dividedBy(1e3).toFixed(t??0),suffix:`K`}:null}function st(e,t,n,r){return new Intl.NumberFormat(n,{style:`currency`,currency:t,minimumFractionDigits:r.minimumFractionDigits,maximumFractionDigits:r.maximumFractionDigits}).format(e)}function ct(e,t=`USD`,n=`en-US`,r){let{minDecimals:i,maxDecimals:a}=at(t,r),o=Math.min(i,a);return st(rt(Q(e),a).toNumber(),t,n,{minimumFractionDigits:o,maximumFractionDigits:a})}function lt(e,t=`$`,n){let r=Q(e),i=r.isNegative()?`-`:``,a=ot(r.abs(),n);return a?`${i}${t}${a.scaled}${a.suffix}`:`${i}${t}${r.abs().toNumber().toLocaleString(`en-US`,{minimumFractionDigits:n??0,maximumFractionDigits:n??2})}`}export{Xe as a,Je as c,Y as d,Ze as i,Z as l,lt as n,qe as o,it as r,Ke as s,ct as t,X as u};
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.