!function(n){"use strict";var h,A,e,s,o=9e15,p=1e9,g="0123456789abcdef",t="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",r="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",u={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-o,maxE:o,crypto:!1},N=!0,c="[DecimalError] ",m=c+"Invalid argument: ",f=c+"Precision limit exceeded",a=c+"crypto unavailable",i="[object Decimal]",S=Math.floor,w=Math.pow,l=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,d=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,v=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,b=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Z=1e7,P=7,E=t.length-1,x=r.length-1,y={toStringTag:i};function M(n){var e,i,t,r=n.length-1,s="",o=n[0];if(0i-1&&(void 0===s[t+1]&&(s[t+1]=0),s[t+1]+=s[t]/i|0,s[t]%=i)}return s.reverse()}y.absoluteValue=y.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),L(n)},y.ceil=function(){return L(new this.constructor(this),this.e+1,2)},y.clampedTo=y.clamp=function(n,e){var i=this.constructor;if(n=new i(n),e=new i(e),!n.s||!e.s)return new i(NaN);if(n.gt(e))throw Error(m+e);return this.cmp(n)<0?n:0n.e^o<0?1:-1;for(e=0,i=(t=r.length)<(n=s.length)?t:n;es[e]^o<0?1:-1;return t===n?0:nthis.d.length-2},y.isNaN=function(){return!this.s},y.isNegative=y.isNeg=function(){return this.s<0},y.isPositive=y.isPos=function(){return 0e&&(e=this.e+1)):e=NaN,e},y.round=function(){var n=this.constructor;return L(new n(this),this.e+1,n.rounding)},y.sine=y.sin=function(){var n,e,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(n=t.precision,e=t.rounding,t.precision=n+Math.max(i.e,i.sd())+P,t.rounding=1,i=function(n,e){var i,t=e.d.length;if(t<3)return e.isZero()?e:K(n,2,e,e);i=16<(i=1.4*Math.sqrt(t))?16:0|i,e=e.times(1/Q(5,i)),e=K(n,2,e,e);for(var r,s=new n(5),o=new n(16),u=new n(20);i--;)r=e.times(e),e=e.times(s.plus(r.times(o.times(r).minus(u))));return e}(t,X(t,i)),t.precision=n,t.rounding=e,L(2=n.d.length-1&&(i=f<0?-f:f)<=9007199254740991)return r=V(c,u,i,t),n.s<0?new c(1).div(r):L(r,t,s);if((o=u.s)<0){if(ec.maxE+1||e=t.toExpPos):(q(n,1,p),void 0===e?e=t.rounding:q(e,0,8),U(i=L(new t(i),n,e),n<=i.e||i.e<=t.toExpNeg,n));return i.isNeg()&&!i.isZero()?"-"+n:n},y.toSignificantDigits=y.toSD=function(n,e){var i=this.constructor;return void 0===n?(n=i.precision,e=i.rounding):(q(n,1,p),void 0===e?e=i.rounding:q(e,0,8)),L(new i(this),n,e)},y.toString=function(){var n=this,e=n.constructor,e=U(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()&&!n.isZero()?"-"+e:e},y.truncated=y.trunc=function(){return L(new this.constructor(this),this.e+1,1)},y.valueOf=y.toJSON=function(){var n=this,e=n.constructor,e=U(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()?"-"+e:e};var F=function(n,e,i,t,r,s){var o,u,c,f,h,a,l,d,p,g,m,w,v,N,b,E,x,y,M,q=n.constructor,O=n.s==e.s?1:-1,D=n.d,F=e.d;if(!(D&&D[0]&&F&&F[0]))return new q(n.s&&e.s&&(D?!F||D[0]!=F[0]:F)?D&&0==D[0]||!F?0*O:O/0:NaN);for(u=s?(h=1,n.e-e.e):(s=Z,S(n.e/(h=P))-S(e.e/h)),y=F.length,E=D.length,p=(O=new q(O)).d=[],c=0;F[c]==(D[c]||0);c++);if(F[c]>(D[c]||0)&&u--,null==i?(v=i=q.precision,t=q.rounding):v=r?i+(n.e-e.e)+1:i,v<0)p.push(1),a=!0;else{if(v=v/h+2|0,c=0,1==y){for(F=F[f=0],v++;(c=s/2&&++x;f=0,(o=T(F,g,y,m))<0?(w=g[0],1<(f=(w=y!=m?w*s+(g[1]||0):w)/x|0)?1==(o=T(l=R(F,f=s<=f?s-1:f,s),g,d=l.length,m=g.length))&&(f--,_(l,ye[r]?1:-1;break}return s}function _(n,e,i,t){for(var r=0;i--;)n[i]-=r,r=n[i]l.maxE?(n.d=null,n.e=NaN):n.en.constructor.maxE?(n.d=null,n.e=NaN):n.er-1;)h[i]=0,i||(++s,h.unshift(1));for(u=h.length;!h[u-1];--u);for(o=0,f="";ou)for(s-=u;s--;)f+="0";else se&&(n.length=e,1)}function en(n){return new this(n).abs()}function tn(n){return new this(n).acos()}function rn(n){return new this(n).acosh()}function sn(n,e){return new this(n).plus(e)}function on(n){return new this(n).asin()}function un(n){return new this(n).asinh()}function cn(n){return new this(n).atan()}function fn(n){return new this(n).atanh()}function hn(n,e){n=new this(n),e=new this(e);var i,t=this.precision,r=this.rounding,s=t+4;return n.s&&e.s?n.d||e.d?!e.d||n.isZero()?(i=e.s<0?I(this,t,r):new this(0)).s=n.s:!n.d||e.isZero()?(i=I(this,s,1).times(.5)).s=n.s:i=e.s<0?(this.precision=s,this.rounding=1,i=this.atan(F(n,e,s,1)),e=I(this,s,1),this.precision=t,this.rounding=r,n.s<0?i.minus(e):i.plus(e)):this.atan(F(n,e,s,1)):(i=I(this,s,1).times(0s.maxE?(r.e=NaN,r.d=null):n.e