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

fictional

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fictional - npm Package Compare versions

Comparing version 0.7.6 to 0.7.7

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.7.7](https://github.com/oftherivier/fictional/compare/v0.7.6...v0.7.7) (2022-10-27)
### Bug Fixes
* Change remaining % to .mod() to work with [#30](https://github.com/oftherivier/fictional/issues/30)'s change ([7fb8791](https://github.com/oftherivier/fictional/commit/7fb8791eb36d2d9400ddf4c4c4586470c02214a7)), closes [#32](https://github.com/oftherivier/fictional/issues/32)
### [0.7.6](https://github.com/oftherivier/fictional/compare/v0.7.5...v0.7.6) (2022-10-25)

@@ -7,0 +14,0 @@

2

dist/umd/fictional.js
/*! For license information please see fictional.js.LICENSE.txt */
!function(n,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.fictional=r():n.fictional=r()}(this,(()=>(()=>{var n={487:n=>{var r={utf8:{stringToBytes:function(n){return r.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(r.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],e=0;e<n.length;e++)r.push(255&n.charCodeAt(e));return r},bytesToString:function(n){for(var r=[],e=0;e<n.length;e++)r.push(String.fromCharCode(n[e]));return r.join("")}}};n.exports=r},12:n=>{var r,e;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var r=0;r<n.length;r++)n[r]=e.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(256*Math.random()));return r},bytesToWords:function(n){for(var r=[],e=0,t=0;e<n.length;e++,t+=8)r[t>>>5]|=n[e]<<24-t%32;return r},wordsToBytes:function(n){for(var r=[],e=0;e<32*n.length;e+=8)r.push(n[e>>>5]>>>24-e%32&255);return r},bytesToHex:function(n){for(var r=[],e=0;e<n.length;e++)r.push((n[e]>>>4).toString(16)),r.push((15&n[e]).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],e=0;e<n.length;e+=2)r.push(parseInt(n.substr(e,2),16));return r},bytesToBase64:function(n){for(var e=[],t=0;t<n.length;t+=3)for(var i=n[t]<<16|n[t+1]<<8|n[t+2],o=0;o<4;o++)8*t+6*o<=8*n.length?e.push(r.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],t=0,i=0;t<n.length;i=++t%4)0!=i&&e.push((r.indexOf(n.charAt(t-1))&Math.pow(2,-2*i+8)-1)<<2*i|r.indexOf(n.charAt(t))>>>6-2*i);return e}},n.exports=e},776:function(n,r,e){var t;!function(i){"use strict";var o,s,u,c=9e15,f=1e9,a="0123456789abcdef",l="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",h="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},p=!0,g="[DecimalError] ",m=g+"Invalid argument: ",v=g+"Precision limit exceeded",w=g+"crypto unavailable",y="[object Decimal]",N=Math.floor,x=Math.pow,b=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,E=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,O=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,M=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,S=1e7,_=l.length-1,A=h.length-1,T={toStringTag:y};function q(n){var r,e,t,i=n.length-1,o="",s=n[0];if(i>0){for(o+=s,r=1;r<i;r++)(e=7-(t=n[r]+"").length)&&(o+=P(e)),o+=t;(e=7-(t=(s=n[r])+"").length)&&(o+=P(e))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}function F(n,r,e){if(n!==~~n||n<r||n>e)throw Error(m+n)}function C(n,r,e,t){var i,o,s,u;for(o=n[0];o>=10;o/=10)--r;return--r<0?(r+=7,i=0):(i=Math.ceil((r+1)/7),r%=7),o=x(10,7-r),u=n[i]%o|0,null==t?r<3?(0==r?u=u/100|0:1==r&&(u=u/10|0),s=e<4&&99999==u||e>3&&49999==u||5e4==u||0==u):s=(e<4&&u+1==o||e>3&&u+1==o/2)&&(n[i+1]/o/100|0)==x(10,r-2)-1||(u==o/2||0==u)&&0==(n[i+1]/o/100|0):r<4?(0==r?u=u/1e3|0:1==r?u=u/100|0:2==r&&(u=u/10|0),s=(t||e<4)&&9999==u||!t&&e>3&&4999==u):s=((t||e<4)&&u+1==o||!t&&e>3&&u+1==o/2)&&(n[i+1]/o/1e3|0)==x(10,r-3)-1,s}function R(n,r,e){for(var t,i,o=[0],s=0,u=n.length;s<u;){for(i=o.length;i--;)o[i]*=r;for(o[0]+=a.indexOf(n.charAt(s++)),t=0;t<o.length;t++)o[t]>e-1&&(void 0===o[t+1]&&(o[t+1]=0),o[t+1]+=o[t]/e|0,o[t]%=e)}return o.reverse()}T.absoluteValue=T.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),k(n)},T.ceil=function(){return k(new this.constructor(this),this.e+1,2)},T.clampedTo=T.clamp=function(n,r){var e=this,t=e.constructor;if(n=new t(n),r=new t(r),!n.s||!r.s)return new t(NaN);if(n.gt(r))throw Error(m+r);return e.cmp(n)<0?n:e.cmp(r)>0?r:new t(e)},T.comparedTo=T.cmp=function(n){var r,e,t,i,o=this,s=o.d,u=(n=new o.constructor(n)).d,c=o.s,f=n.s;if(!s||!u)return c&&f?c!==f?c:s===u?0:!s^c<0?1:-1:NaN;if(!s[0]||!u[0])return s[0]?c:u[0]?-f:0;if(c!==f)return c;if(o.e!==n.e)return o.e>n.e^c<0?1:-1;for(r=0,e=(t=s.length)<(i=u.length)?t:i;r<e;++r)if(s[r]!==u[r])return s[r]>u[r]^c<0?1:-1;return t===i?0:t>i^c<0?1:-1},T.cosine=T.cos=function(){var n,r,e=this,t=e.constructor;return e.d?e.d[0]?(n=t.precision,r=t.rounding,t.precision=n+Math.max(e.e,e.sd())+7,t.rounding=1,e=function(n,r){var e,t,i;if(r.isZero())return r;(t=r.d.length)<32?i=(1/Y(4,e=Math.ceil(t/3))).toString():(e=16,i="2.3283064365386962890625e-10"),n.precision+=e,r=G(n,1,r.times(i),new n(1));for(var o=e;o--;){var s=r.times(r);r=s.times(s).minus(s).times(8).plus(1)}return n.precision-=e,r}(t,K(t,e)),t.precision=n,t.rounding=r,k(2==u||3==u?e.neg():e,n,r,!0)):new t(1):new t(NaN)},T.cubeRoot=T.cbrt=function(){var n,r,e,t,i,o,s,u,c,f,a=this,l=a.constructor;if(!a.isFinite()||a.isZero())return new l(a);for(p=!1,(o=a.s*x(a.s*a,1/3))&&Math.abs(o)!=1/0?t=new l(o.toString()):(e=q(a.d),(o=((n=a.e)-e.length+1)%3)&&(e+=1==o||-2==o?"0":"00"),o=x(e,1/3),n=N((n+1)/3)-(n%3==(n<0?-1:2)),(t=new l(e=o==1/0?"5e"+n:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+n)).s=a.s),s=(n=l.precision)+3;;)if(f=(c=(u=t).times(u).times(u)).plus(a),t=U(f.plus(a).times(u),f.plus(c),s+2,1),q(u.d).slice(0,s)===(e=q(t.d)).slice(0,s)){if("9999"!=(e=e.slice(s-3,s+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(k(t,n+1,1),r=!t.times(t).times(t).eq(a));break}if(!i&&(k(u,n+1,0),u.times(u).times(u).eq(a))){t=u;break}s+=4,i=1}return p=!0,k(t,n,l.rounding,r)},T.decimalPlaces=T.dp=function(){var n,r=this.d,e=NaN;if(r){if(e=7*((n=r.length-1)-N(this.e/7)),n=r[n])for(;n%10==0;n/=10)e--;e<0&&(e=0)}return e},T.dividedBy=T.div=function(n){return U(this,new this.constructor(n))},T.dividedToIntegerBy=T.divToInt=function(n){var r=this.constructor;return k(U(this,new r(n),0,1,1),r.precision,r.rounding)},T.equals=T.eq=function(n){return 0===this.cmp(n)},T.floor=function(){return k(new this.constructor(this),this.e+1,3)},T.greaterThan=T.gt=function(n){return this.cmp(n)>0},T.greaterThanOrEqualTo=T.gte=function(n){var r=this.cmp(n);return 1==r||0===r},T.hyperbolicCosine=T.cosh=function(){var n,r,e,t,i,o=this,s=o.constructor,u=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return u;e=s.precision,t=s.rounding,s.precision=e+Math.max(o.e,o.sd())+4,s.rounding=1,(i=o.d.length)<32?r=(1/Y(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),o=G(s,1,o.times(r),new s(1),!0);for(var c,f=n,a=new s(8);f--;)c=o.times(o),o=u.minus(c.times(a.minus(c.times(a))));return k(o,s.precision=e,s.rounding=t,!0)},T.hyperbolicSine=T.sinh=function(){var n,r,e,t,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(r=o.precision,e=o.rounding,o.precision=r+Math.max(i.e,i.sd())+4,o.rounding=1,(t=i.d.length)<3)i=G(o,2,i,i,!0);else{n=(n=1.4*Math.sqrt(t))>16?16:0|n,i=G(o,2,i=i.times(1/Y(5,n)),i,!0);for(var s,u=new o(5),c=new o(16),f=new o(20);n--;)s=i.times(i),i=i.times(u.plus(s.times(c.times(s).plus(f))))}return o.precision=r,o.rounding=e,k(i,r,e,!0)},T.hyperbolicTangent=T.tanh=function(){var n,r,e=this,t=e.constructor;return e.isFinite()?e.isZero()?new t(e):(n=t.precision,r=t.rounding,t.precision=n+7,t.rounding=1,U(e.sinh(),e.cosh(),t.precision=n,t.rounding=r)):new t(e.s)},T.inverseCosine=T.acos=function(){var n,r=this,e=r.constructor,t=r.abs().cmp(1),i=e.precision,o=e.rounding;return-1!==t?0===t?r.isNeg()?L(e,i,o):new e(0):new e(NaN):r.isZero()?L(e,i+4,o).times(.5):(e.precision=i+6,e.rounding=1,r=r.asin(),n=L(e,i+4,o).times(.5),e.precision=i,e.rounding=o,n.minus(r))},T.inverseHyperbolicCosine=T.acosh=function(){var n,r,e=this,t=e.constructor;return e.lte(1)?new t(e.eq(1)?0:NaN):e.isFinite()?(n=t.precision,r=t.rounding,t.precision=n+Math.max(Math.abs(e.e),e.sd())+4,t.rounding=1,p=!1,e=e.times(e).minus(1).sqrt().plus(e),p=!0,t.precision=n,t.rounding=r,e.ln()):new t(e)},T.inverseHyperbolicSine=T.asinh=function(){var n,r,e=this,t=e.constructor;return!e.isFinite()||e.isZero()?new t(e):(n=t.precision,r=t.rounding,t.precision=n+2*Math.max(Math.abs(e.e),e.sd())+6,t.rounding=1,p=!1,e=e.times(e).plus(1).sqrt().plus(e),p=!0,t.precision=n,t.rounding=r,e.ln())},T.inverseHyperbolicTangent=T.atanh=function(){var n,r,e,t,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(n=o.precision,r=o.rounding,t=i.sd(),Math.max(t,n)<2*-i.e-1?k(new o(i),n,r,!0):(o.precision=e=t-i.e,i=U(i.plus(1),new o(1).minus(i),e+n,1),o.precision=n+4,o.rounding=1,i=i.ln(),o.precision=n,o.rounding=r,i.times(.5))):new o(NaN)},T.inverseSine=T.asin=function(){var n,r,e,t,i=this,o=i.constructor;return i.isZero()?new o(i):(r=i.abs().cmp(1),e=o.precision,t=o.rounding,-1!==r?0===r?((n=L(o,e+4,t).times(.5)).s=i.s,n):new o(NaN):(o.precision=e+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=e,o.rounding=t,i.times(2)))},T.inverseTangent=T.atan=function(){var n,r,e,t,i,o,s,u,c,f=this,a=f.constructor,l=a.precision,h=a.rounding;if(f.isFinite()){if(f.isZero())return new a(f);if(f.abs().eq(1)&&l+4<=A)return(s=L(a,l+4,h).times(.25)).s=f.s,s}else{if(!f.s)return new a(NaN);if(l+4<=A)return(s=L(a,l+4,h).times(.5)).s=f.s,s}for(a.precision=u=l+10,a.rounding=1,n=e=Math.min(28,u/7+2|0);n;--n)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(p=!1,r=Math.ceil(u/7),t=1,c=f.times(f),s=new a(f),i=f;-1!==n;)if(i=i.times(c),o=s.minus(i.div(t+=2)),i=i.times(c),void 0!==(s=o.plus(i.div(t+=2))).d[r])for(n=r;s.d[n]===o.d[n]&&n--;);return e&&(s=s.times(2<<e-1)),p=!0,k(s,a.precision=l,a.rounding=h,!0)},T.isFinite=function(){return!!this.d},T.isInteger=T.isInt=function(){return!!this.d&&N(this.e/7)>this.d.length-2},T.isNaN=function(){return!this.s},T.isNegative=T.isNeg=function(){return this.s<0},T.isPositive=T.isPos=function(){return this.s>0},T.isZero=function(){return!!this.d&&0===this.d[0]},T.lessThan=T.lt=function(n){return this.cmp(n)<0},T.lessThanOrEqualTo=T.lte=function(n){return this.cmp(n)<1},T.logarithm=T.log=function(n){var r,e,t,i,o,s,u,c,f=this,a=f.constructor,l=a.precision,h=a.rounding;if(null==n)n=new a(10),r=!0;else{if(e=(n=new a(n)).d,n.s<0||!e||!e[0]||n.eq(1))return new a(NaN);r=n.eq(10)}if(e=f.d,f.s<0||!e||!e[0]||f.eq(1))return new a(e&&!e[0]?-1/0:1!=f.s?NaN:e?0:1/0);if(r)if(e.length>1)o=!0;else{for(i=e[0];i%10==0;)i/=10;o=1!==i}if(p=!1,s=W(f,u=l+5),t=r?Z(a,u+10):W(n,u),C((c=U(s,t,u,1)).d,i=l,h))do{if(s=W(f,u+=10),t=r?Z(a,u+10):W(n,u),c=U(s,t,u,1),!o){+q(c.d).slice(i+1,i+15)+1==1e14&&(c=k(c,l+1,0));break}}while(C(c.d,i+=10,h));return p=!0,k(c,l,h)},T.minus=T.sub=function(n){var r,e,t,i,o,s,u,c,f,a,l,h,d=this,g=d.constructor;if(n=new g(n),!d.d||!n.d)return d.s&&n.s?d.d?n.s=-n.s:n=new g(n.d||d.s!==n.s?d:NaN):n=new g(NaN),n;if(d.s!=n.s)return n.s=-n.s,d.plus(n);if(f=d.d,h=n.d,u=g.precision,c=g.rounding,!f[0]||!h[0]){if(h[0])n.s=-n.s;else{if(!f[0])return new g(3===c?-0:0);n=new g(d)}return p?k(n,u,c):n}if(e=N(n.e/7),a=N(d.e/7),f=f.slice(),o=a-e){for((l=o<0)?(r=f,o=-o,s=h.length):(r=h,e=a,s=f.length),o>(t=Math.max(Math.ceil(u/7),s)+2)&&(o=t,r.length=1),r.reverse(),t=o;t--;)r.push(0);r.reverse()}else{for((l=(t=f.length)<(s=h.length))&&(s=t),t=0;t<s;t++)if(f[t]!=h[t]){l=f[t]<h[t];break}o=0}for(l&&(r=f,f=h,h=r,n.s=-n.s),s=f.length,t=h.length-s;t>0;--t)f[s++]=0;for(t=h.length;t>o;){if(f[--t]<h[t]){for(i=t;i&&0===f[--i];)f[i]=S-1;--f[i],f[t]+=S}f[t]-=h[t]}for(;0===f[--s];)f.pop();for(;0===f[0];f.shift())--e;return f[0]?(n.d=f,n.e=D(f,e),p?k(n,u,c):n):new g(3===c?-0:0)},T.modulo=T.mod=function(n){var r,e=this,t=e.constructor;return n=new t(n),!e.d||!n.s||n.d&&!n.d[0]?new t(NaN):!n.d||e.d&&!e.d[0]?k(new t(e),t.precision,t.rounding):(p=!1,9==t.modulo?(r=U(e,n.abs(),0,3,1)).s*=n.s:r=U(e,n,0,t.modulo,1),r=r.times(n),p=!0,e.minus(r))},T.naturalExponential=T.exp=function(){return J(this)},T.naturalLogarithm=T.ln=function(){return W(this)},T.negated=T.neg=function(){var n=new this.constructor(this);return n.s=-n.s,k(n)},T.plus=T.add=function(n){var r,e,t,i,o,s,u,c,f,a,l=this,h=l.constructor;if(n=new h(n),!l.d||!n.d)return l.s&&n.s?l.d||(n=new h(n.d||l.s===n.s?l:NaN)):n=new h(NaN),n;if(l.s!=n.s)return n.s=-n.s,l.minus(n);if(f=l.d,a=n.d,u=h.precision,c=h.rounding,!f[0]||!a[0])return a[0]||(n=new h(l)),p?k(n,u,c):n;if(o=N(l.e/7),t=N(n.e/7),f=f.slice(),i=o-t){for(i<0?(e=f,i=-i,s=a.length):(e=a,t=o,s=f.length),i>(s=(o=Math.ceil(u/7))>s?o+1:s+1)&&(i=s,e.length=1),e.reverse();i--;)e.push(0);e.reverse()}for((s=f.length)-(i=a.length)<0&&(i=s,e=a,a=f,f=e),r=0;i;)r=(f[--i]=f[i]+a[i]+r)/S|0,f[i]%=S;for(r&&(f.unshift(r),++t),s=f.length;0==f[--s];)f.pop();return n.d=f,n.e=D(f,t),p?k(n,u,c):n},T.precision=T.sd=function(n){var r,e=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(m+n);return e.d?(r=I(e.d),n&&e.e+1>r&&(r=e.e+1)):r=NaN,r},T.round=function(){var n=this,r=n.constructor;return k(new r(n),n.e+1,r.rounding)},T.sine=T.sin=function(){var n,r,e=this,t=e.constructor;return e.isFinite()?e.isZero()?new t(e):(n=t.precision,r=t.rounding,t.precision=n+Math.max(e.e,e.sd())+7,t.rounding=1,e=function(n,r){var e,t=r.d.length;if(t<3)return r.isZero()?r:G(n,2,r,r);e=(e=1.4*Math.sqrt(t))>16?16:0|e,r=G(n,2,r=r.times(1/Y(5,e)),r);for(var i,o=new n(5),s=new n(16),u=new n(20);e--;)i=r.times(r),r=r.times(o.plus(i.times(s.times(i).minus(u))));return r}(t,K(t,e)),t.precision=n,t.rounding=r,k(u>2?e.neg():e,n,r,!0)):new t(NaN)},T.squareRoot=T.sqrt=function(){var n,r,e,t,i,o,s=this,u=s.d,c=s.e,f=s.s,a=s.constructor;if(1!==f||!u||!u[0])return new a(!f||f<0&&(!u||u[0])?NaN:u?s:1/0);for(p=!1,0==(f=Math.sqrt(+s))||f==1/0?(((r=q(u)).length+c)%2==0&&(r+="0"),f=Math.sqrt(r),c=N((c+1)/2)-(c<0||c%2),t=new a(r=f==1/0?"5e"+c:(r=f.toExponential()).slice(0,r.indexOf("e")+1)+c)):t=new a(f.toString()),e=(c=a.precision)+3;;)if(t=(o=t).plus(U(s,o,e+2,1)).times(.5),q(o.d).slice(0,e)===(r=q(t.d)).slice(0,e)){if("9999"!=(r=r.slice(e-3,e+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(k(t,c+1,1),n=!t.times(t).eq(s));break}if(!i&&(k(o,c+1,0),o.times(o).eq(s))){t=o;break}e+=4,i=1}return p=!0,k(t,c,a.rounding,n)},T.tangent=T.tan=function(){var n,r,e=this,t=e.constructor;return e.isFinite()?e.isZero()?new t(e):(n=t.precision,r=t.rounding,t.precision=n+10,t.rounding=1,(e=e.sin()).s=1,e=U(e,new t(1).minus(e.times(e)).sqrt(),n+10,0),t.precision=n,t.rounding=r,k(2==u||4==u?e.neg():e,n,r,!0)):new t(NaN)},T.times=T.mul=function(n){var r,e,t,i,o,s,u,c,f,a=this,l=a.constructor,h=a.d,d=(n=new l(n)).d;if(n.s*=a.s,!(h&&h[0]&&d&&d[0]))return new l(!n.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:h&&d?0*n.s:n.s/0);for(e=N(a.e/7)+N(n.e/7),(c=h.length)<(f=d.length)&&(o=h,h=d,d=o,s=c,c=f,f=s),o=[],t=s=c+f;t--;)o.push(0);for(t=f;--t>=0;){for(r=0,i=c+t;i>t;)u=o[i]+d[t]*h[i-t-1]+r,o[i--]=u%S|0,r=u/S|0;o[i]=(o[i]+r)%S|0}for(;!o[--s];)o.pop();return r?++e:o.shift(),n.d=o,n.e=D(o,e),p?k(n,l.precision,l.rounding):n},T.toBinary=function(n,r){return Q(this,2,n,r)},T.toDecimalPlaces=T.toDP=function(n,r){var e=this,t=e.constructor;return e=new t(e),void 0===n?e:(F(n,0,f),void 0===r?r=t.rounding:F(r,0,8),k(e,n+e.e+1,r))},T.toExponential=function(n,r){var e,t=this,i=t.constructor;return void 0===n?e=B(t,!0):(F(n,0,f),void 0===r?r=i.rounding:F(r,0,8),e=B(t=k(new i(t),n+1,r),!0,n+1)),t.isNeg()&&!t.isZero()?"-"+e:e},T.toFixed=function(n,r){var e,t,i=this,o=i.constructor;return void 0===n?e=B(i):(F(n,0,f),void 0===r?r=o.rounding:F(r,0,8),e=B(t=k(new o(i),n+i.e+1,r),!1,n+t.e+1)),i.isNeg()&&!i.isZero()?"-"+e:e},T.toFraction=function(n){var r,e,t,i,o,s,u,c,f,a,l,h,d=this,g=d.d,v=d.constructor;if(!g)return new v(d);if(f=e=new v(1),t=c=new v(0),s=(o=(r=new v(t)).e=I(g)-d.e-1)%7,r.d[0]=x(10,s<0?7+s:s),null==n)n=o>0?r:f;else{if(!(u=new v(n)).isInt()||u.lt(f))throw Error(m+u);n=u.gt(r)?o>0?r:f:u}for(p=!1,u=new v(q(g)),a=v.precision,v.precision=o=7*g.length*2;l=U(u,r,0,1,1),1!=(i=e.plus(l.times(t))).cmp(n);)e=t,t=i,i=f,f=c.plus(l.times(i)),c=i,i=r,r=u.minus(l.times(i)),u=i;return i=U(n.minus(e),t,0,1,1),c=c.plus(i.times(f)),e=e.plus(i.times(t)),c.s=f.s=d.s,h=U(f,t,o,1).minus(d).abs().cmp(U(c,e,o,1).minus(d).abs())<1?[f,t]:[c,e],v.precision=a,p=!0,h},T.toHexadecimal=T.toHex=function(n,r){return Q(this,16,n,r)},T.toNearest=function(n,r){var e=this,t=e.constructor;if(e=new t(e),null==n){if(!e.d)return e;n=new t(1),r=t.rounding}else{if(n=new t(n),void 0===r?r=t.rounding:F(r,0,8),!e.d)return n.s?e:n;if(!n.d)return n.s&&(n.s=e.s),n}return n.d[0]?(p=!1,e=U(e,n,0,r,1).times(n),p=!0,k(e)):(n.s=e.s,e=n),e},T.toNumber=function(){return+this},T.toOctal=function(n,r){return Q(this,8,n,r)},T.toPower=T.pow=function(n){var r,e,t,i,o,s,u=this,c=u.constructor,f=+(n=new c(n));if(!(u.d&&n.d&&u.d[0]&&n.d[0]))return new c(x(+u,f));if((u=new c(u)).eq(1))return u;if(t=c.precision,o=c.rounding,n.eq(1))return k(u,t,o);if((r=N(n.e/7))>=n.d.length-1&&(e=f<0?-f:f)<=9007199254740991)return i=j(c,u,e,t),n.s<0?new c(1).div(i):k(i,t,o);if((s=u.s)<0){if(r<n.d.length-1)return new c(NaN);if(0==(1&n.d[r])&&(s=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=s,u}return(r=0!=(e=x(+u,f))&&isFinite(e)?new c(e+"").e:N(f*(Math.log("0."+q(u.d))/Math.LN10+u.e+1)))>c.maxE+1||r<c.minE-1?new c(r>0?s/0:0):(p=!1,c.rounding=u.s=1,e=Math.min(12,(r+"").length),(i=J(n.times(W(u,t+e)),t)).d&&C((i=k(i,t+5,1)).d,t,o)&&(r=t+10,+q((i=k(J(n.times(W(u,r+e)),r),r+5,1)).d).slice(t+1,t+15)+1==1e14&&(i=k(i,t+1,0))),i.s=s,p=!0,c.rounding=o,k(i,t,o))},T.toPrecision=function(n,r){var e,t=this,i=t.constructor;return void 0===n?e=B(t,t.e<=i.toExpNeg||t.e>=i.toExpPos):(F(n,1,f),void 0===r?r=i.rounding:F(r,0,8),e=B(t=k(new i(t),n,r),n<=t.e||t.e<=i.toExpNeg,n)),t.isNeg()&&!t.isZero()?"-"+e:e},T.toSignificantDigits=T.toSD=function(n,r){var e=this.constructor;return void 0===n?(n=e.precision,r=e.rounding):(F(n,1,f),void 0===r?r=e.rounding:F(r,0,8)),k(new e(this),n,r)},T.toString=function(){var n=this,r=n.constructor,e=B(n,n.e<=r.toExpNeg||n.e>=r.toExpPos);return n.isNeg()&&!n.isZero()?"-"+e:e},T.truncated=T.trunc=function(){return k(new this.constructor(this),this.e+1,1)},T.valueOf=T.toJSON=function(){var n=this,r=n.constructor,e=B(n,n.e<=r.toExpNeg||n.e>=r.toExpPos);return n.isNeg()?"-"+e:e};var U=function(){function n(n,r,e){var t,i=0,o=n.length;for(n=n.slice();o--;)t=n[o]*r+i,n[o]=t%e|0,i=t/e|0;return i&&n.unshift(i),n}function r(n,r,e,t){var i,o;if(e!=t)o=e>t?1:-1;else for(i=o=0;i<e;i++)if(n[i]!=r[i]){o=n[i]>r[i]?1:-1;break}return o}function e(n,r,e,t){for(var i=0;e--;)n[e]-=i,i=n[e]<r[e]?1:0,n[e]=i*t+n[e]-r[e];for(;!n[0]&&n.length>1;)n.shift()}return function(t,i,o,u,c,f){var a,l,h,d,p,g,m,v,w,y,x,b,E,O,M,_,A,T,q,F,C=t.constructor,R=t.s==i.s?1:-1,U=t.d,B=i.d;if(!(U&&U[0]&&B&&B[0]))return new C(t.s&&i.s&&(U?!B||U[0]!=B[0]:B)?U&&0==U[0]||!B?0*R:R/0:NaN);for(f?(p=1,l=t.e-i.e):(f=S,p=7,l=N(t.e/p)-N(i.e/p)),q=B.length,A=U.length,y=(w=new C(R)).d=[],h=0;B[h]==(U[h]||0);h++);if(B[h]>(U[h]||0)&&l--,null==o?(O=o=C.precision,u=C.rounding):O=c?o+(t.e-i.e)+1:o,O<0)y.push(1),g=!0;else{if(O=O/p+2|0,h=0,1==q){for(d=0,B=B[0],O++;(h<A||d)&&O--;h++)M=d*f+(U[h]||0),y[h]=M/B|0,d=M%B|0;g=d||h<A}else{for((d=f/(B[0]+1)|0)>1&&(B=n(B,d,f),U=n(U,d,f),q=B.length,A=U.length),_=q,b=(x=U.slice(0,q)).length;b<q;)x[b++]=0;(F=B.slice()).unshift(0),T=B[0],B[1]>=f/2&&++T;do{d=0,(a=r(B,x,q,b))<0?(E=x[0],q!=b&&(E=E*f+(x[1]||0)),(d=E/T|0)>1?(d>=f&&(d=f-1),1==(a=r(m=n(B,d,f),x,v=m.length,b=x.length))&&(d--,e(m,q<v?F:B,v,f))):(0==d&&(a=d=1),m=B.slice()),(v=m.length)<b&&m.unshift(0),e(x,m,b,f),-1==a&&(a=r(B,x,q,b=x.length))<1&&(d++,e(x,q<b?F:B,b,f)),b=x.length):0===a&&(d++,x=[0]),y[h++]=d,a&&x[0]?x[b++]=U[_]||0:(x=[U[_]],b=1)}while((_++<A||void 0!==x[0])&&O--);g=void 0!==x[0]}y[0]||y.shift()}if(1==p)w.e=l,s=g;else{for(h=1,d=y[0];d>=10;d/=10)h++;w.e=h+l*p-1,k(w,c?o+w.e+1:o,u,g)}return w}}();function k(n,r,e,t){var i,o,s,u,c,f,a,l,h,d=n.constructor;n:if(null!=r){if(!(l=n.d))return n;for(i=1,u=l[0];u>=10;u/=10)i++;if((o=r-i)<0)o+=7,s=r,c=(a=l[h=0])/x(10,i-s-1)%10|0;else if((h=Math.ceil((o+1)/7))>=(u=l.length)){if(!t)break n;for(;u++<=h;)l.push(0);a=c=0,i=1,s=(o%=7)-7+1}else{for(a=u=l[h],i=1;u>=10;u/=10)i++;c=(s=(o%=7)-7+i)<0?0:a/x(10,i-s-1)%10|0}if(t=t||r<0||void 0!==l[h+1]||(s<0?a:a%x(10,i-s-1)),f=e<4?(c||t)&&(0==e||e==(n.s<0?3:2)):c>5||5==c&&(4==e||t||6==e&&(o>0?s>0?a/x(10,i-s):0:l[h-1])%10&1||e==(n.s<0?8:7)),r<1||!l[0])return l.length=0,f?(r-=n.e+1,l[0]=x(10,(7-r%7)%7),n.e=-r||0):l[0]=n.e=0,n;if(0==o?(l.length=h,u=1,h--):(l.length=h+1,u=x(10,7-o),l[h]=s>0?(a/x(10,i-s)%x(10,s)|0)*u:0),f)for(;;){if(0==h){for(o=1,s=l[0];s>=10;s/=10)o++;for(s=l[0]+=u,u=1;s>=10;s/=10)u++;o!=u&&(n.e++,l[0]==S&&(l[0]=1));break}if(l[h]+=u,l[h]!=S)break;l[h--]=0,u=1}for(o=l.length;0===l[--o];)l.pop()}return p&&(n.e>d.maxE?(n.d=null,n.e=NaN):n.e<d.minE&&(n.e=0,n.d=[0])),n}function B(n,r,e){if(!n.isFinite())return V(n);var t,i=n.e,o=q(n.d),s=o.length;return r?(e&&(t=e-s)>0?o=o.charAt(0)+"."+o.slice(1)+P(t):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(n.e<0?"e":"e+")+n.e):i<0?(o="0."+P(-i-1)+o,e&&(t=e-s)>0&&(o+=P(t))):i>=s?(o+=P(i+1-s),e&&(t=e-i-1)>0&&(o=o+"."+P(t))):((t=i+1)<s&&(o=o.slice(0,t)+"."+o.slice(t)),e&&(t=e-s)>0&&(i+1===s&&(o+="."),o+=P(t))),o}function D(n,r){var e=n[0];for(r*=7;e>=10;e/=10)r++;return r}function Z(n,r,e){if(r>_)throw p=!0,e&&(n.precision=e),Error(v);return k(new n(l),r,1,!0)}function L(n,r,e){if(r>A)throw Error(v);return k(new n(h),r,e,!0)}function I(n){var r=n.length-1,e=7*r+1;if(r=n[r]){for(;r%10==0;r/=10)e--;for(r=n[0];r>=10;r/=10)e++}return e}function P(n){for(var r="";n--;)r+="0";return r}function j(n,r,e,t){var i,o=new n(1),s=Math.ceil(t/7+4);for(p=!1;;){if(e%2&&nn((o=o.times(r)).d,s)&&(i=!0),0===(e=N(e/2))){e=o.d.length-1,i&&0===o.d[e]&&++o.d[e];break}nn((r=r.times(r)).d,s)}return p=!0,o}function H(n){return 1&n.d[n.d.length-1]}function z(n,r,e){for(var t,i=new n(r[0]),o=0;++o<r.length;){if(!(t=new n(r[o])).s){i=t;break}i[e](t)&&(i=t)}return i}function J(n,r){var e,t,i,o,s,u,c,f=0,a=0,l=0,h=n.constructor,d=h.rounding,g=h.precision;if(!n.d||!n.d[0]||n.e>17)return new h(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);for(null==r?(p=!1,c=g):c=r,u=new h(.03125);n.e>-2;)n=n.times(u),l+=5;for(c+=t=Math.log(x(2,l))/Math.LN10*2+5|0,e=o=s=new h(1),h.precision=c;;){if(o=k(o.times(n),c,1),e=e.times(++a),q((u=s.plus(U(o,e,c,1))).d).slice(0,c)===q(s.d).slice(0,c)){for(i=l;i--;)s=k(s.times(s),c,1);if(null!=r)return h.precision=g,s;if(!(f<3&&C(s.d,c-t,d,f)))return k(s,h.precision=g,d,p=!0);h.precision=c+=10,e=o=u=new h(1),a=0,f++}s=u}}function W(n,r){var e,t,i,o,s,u,c,f,a,l,h,d=1,g=n,m=g.d,v=g.constructor,w=v.rounding,y=v.precision;if(g.s<0||!m||!m[0]||!g.e&&1==m[0]&&1==m.length)return new v(m&&!m[0]?-1/0:1!=g.s?NaN:m?0:g);if(null==r?(p=!1,a=y):a=r,v.precision=a+=10,t=(e=q(m)).charAt(0),!(Math.abs(o=g.e)<15e14))return f=Z(v,a+2,y).times(o+""),g=W(new v(t+"."+e.slice(1)),a-10).plus(f),v.precision=y,null==r?k(g,y,w,p=!0):g;for(;t<7&&1!=t||1==t&&e.charAt(1)>3;)t=(e=q((g=g.times(n)).d)).charAt(0),d++;for(o=g.e,t>1?(g=new v("0."+e),o++):g=new v(t+"."+e.slice(1)),l=g,c=s=g=U(g.minus(1),g.plus(1),a,1),h=k(g.times(g),a,1),i=3;;){if(s=k(s.times(h),a,1),q((f=c.plus(U(s,new v(i),a,1))).d).slice(0,a)===q(c.d).slice(0,a)){if(c=c.times(2),0!==o&&(c=c.plus(Z(v,a+2,y).times(o+""))),c=U(c,new v(d),a,1),null!=r)return v.precision=y,c;if(!C(c.d,a-10,w,u))return k(c,v.precision=y,w,p=!0);v.precision=a+=10,f=s=g=U(l.minus(1),l.plus(1),a,1),h=k(g.times(g),a,1),i=u=1}c=f,i+=2}}function V(n){return String(n.s*n.s/0)}function $(n,r){var e,t,i;for((e=r.indexOf("."))>-1&&(r=r.replace(".","")),(t=r.search(/e/i))>0?(e<0&&(e=t),e+=+r.slice(t+1),r=r.substring(0,t)):e<0&&(e=r.length),t=0;48===r.charCodeAt(t);t++);for(i=r.length;48===r.charCodeAt(i-1);--i);if(r=r.slice(t,i)){if(i-=t,n.e=e=e-t-1,n.d=[],t=(e+1)%7,e<0&&(t+=7),t<i){for(t&&n.d.push(+r.slice(0,t)),i-=7;t<i;)n.d.push(+r.slice(t,t+=7));t=7-(r=r.slice(t)).length}else t-=i;for(;t--;)r+="0";n.d.push(+r),p&&(n.e>n.constructor.maxE?(n.d=null,n.e=NaN):n.e<n.constructor.minE&&(n.e=0,n.d=[0]))}else n.e=0,n.d=[0];return n}function X(n,r){var e,t,i,s,u,c,f,a,l;if(r.indexOf("_")>-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),M.test(r))return $(n,r)}else if("Infinity"===r||"NaN"===r)return+r||(n.s=NaN),n.e=NaN,n.d=null,n;if(E.test(r))e=16,r=r.toLowerCase();else if(b.test(r))e=2;else{if(!O.test(r))throw Error(m+r);e=8}for((s=r.search(/p/i))>0?(f=+r.slice(s+1),r=r.substring(2,s)):r=r.slice(2),u=(s=r.indexOf("."))>=0,t=n.constructor,u&&(s=(c=(r=r.replace(".","")).length)-s,i=j(t,new t(e),s,2*s)),s=l=(a=R(r,e,S)).length-1;0===a[s];--s)a.pop();return s<0?new t(0*n.s):(n.e=D(a,l),n.d=a,p=!1,u&&(n=U(n,i,4*c)),f&&(n=n.times(Math.abs(f)<54?x(2,f):o.pow(2,f))),p=!0,n)}function G(n,r,e,t,i){var o,s,u,c,f=n.precision,a=Math.ceil(f/7);for(p=!1,c=e.times(e),u=new n(t);;){if(s=U(u.times(c),new n(r++*r++),f,1),u=i?t.plus(s):t.minus(s),t=U(s.times(c),new n(r++*r++),f,1),void 0!==(s=u.plus(t)).d[a]){for(o=a;s.d[o]===u.d[o]&&o--;);if(-1==o)break}o=u,u=t,t=s,s=o}return p=!0,s.d.length=a+1,s}function Y(n,r){for(var e=n;--r;)e*=n;return e}function K(n,r){var e,t=r.s<0,i=L(n,n.precision,1),o=i.times(.5);if((r=r.abs()).lte(o))return u=t?4:1,r;if((e=r.divToInt(i)).isZero())u=t?3:2;else{if((r=r.minus(e.times(i))).lte(o))return u=H(e)?t?2:3:t?4:1,r;u=H(e)?t?1:4:t?3:2}return r.minus(i).abs()}function Q(n,r,e,t){var i,o,u,c,l,h,d,p,g,m=n.constructor,v=void 0!==e;if(v?(F(e,1,f),void 0===t?t=m.rounding:F(t,0,8)):(e=m.precision,t=m.rounding),n.isFinite()){for(v?(i=2,16==r?e=4*e-3:8==r&&(e=3*e-2)):i=r,(u=(d=B(n)).indexOf("."))>=0&&(d=d.replace(".",""),(g=new m(1)).e=d.length-u,g.d=R(B(g),10,i),g.e=g.d.length),o=l=(p=R(d,10,i)).length;0==p[--l];)p.pop();if(p[0]){if(u<0?o--:((n=new m(n)).d=p,n.e=o,p=(n=U(n,g,e,t,0,i)).d,o=n.e,h=s),u=p[e],c=i/2,h=h||void 0!==p[e+1],h=t<4?(void 0!==u||h)&&(0===t||t===(n.s<0?3:2)):u>c||u===c&&(4===t||h||6===t&&1&p[e-1]||t===(n.s<0?8:7)),p.length=e,h)for(;++p[--e]>i-1;)p[e]=0,e||(++o,p.unshift(1));for(l=p.length;!p[l-1];--l);for(u=0,d="";u<l;u++)d+=a.charAt(p[u]);if(v){if(l>1)if(16==r||8==r){for(u=16==r?4:3,--l;l%u;l++)d+="0";for(l=(p=R(d,i,r)).length;!p[l-1];--l);for(u=1,d="1.";u<l;u++)d+=a.charAt(p[u])}else d=d.charAt(0)+"."+d.slice(1);d=d+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)d="0"+d;d="0."+d}else if(++o>l)for(o-=l;o--;)d+="0";else o<l&&(d=d.slice(0,o)+"."+d.slice(o))}else d=v?"0p+0":"0";d=(16==r?"0x":2==r?"0b":8==r?"0o":"")+d}else d=V(n);return n.s<0?"-"+d:d}function nn(n,r){if(n.length>r)return n.length=r,!0}function rn(n){return new this(n).abs()}function en(n){return new this(n).acos()}function tn(n){return new this(n).acosh()}function on(n,r){return new this(n).plus(r)}function sn(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 an(n,r){n=new this(n),r=new this(r);var e,t=this.precision,i=this.rounding,o=t+4;return n.s&&r.s?n.d||r.d?!r.d||n.isZero()?(e=r.s<0?L(this,t,i):new this(0)).s=n.s:!n.d||r.isZero()?(e=L(this,o,1).times(.5)).s=n.s:r.s<0?(this.precision=o,this.rounding=1,e=this.atan(U(n,r,o,1)),r=L(this,o,1),this.precision=t,this.rounding=i,e=n.s<0?e.minus(r):e.plus(r)):e=this.atan(U(n,r,o,1)):(e=L(this,o,1).times(r.s>0?.25:.75)).s=n.s:e=new this(NaN),e}function ln(n){return new this(n).cbrt()}function hn(n){return k(n=new this(n),n.e+1,2)}function dn(n,r,e){return new this(n).clamp(r,e)}function pn(n){if(!n||"object"!=typeof n)throw Error(g+"Object expected");var r,e,t,i=!0===n.defaults,o=["precision",1,f,"rounding",0,8,"toExpNeg",-c,0,"toExpPos",0,c,"maxE",0,c,"minE",-c,0,"modulo",0,9];for(r=0;r<o.length;r+=3)if(e=o[r],i&&(this[e]=d[e]),void 0!==(t=n[e])){if(!(N(t)===t&&t>=o[r+1]&&t<=o[r+2]))throw Error(m+e+": "+t);this[e]=t}if(e="crypto",i&&(this[e]=d[e]),void 0!==(t=n[e])){if(!0!==t&&!1!==t&&0!==t&&1!==t)throw Error(m+e+": "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(w);this[e]=!0}else this[e]=!1}return this}function gn(n){return new this(n).cos()}function mn(n){return new this(n).cosh()}function vn(n,r){return new this(n).div(r)}function wn(n){return new this(n).exp()}function yn(n){return k(n=new this(n),n.e+1,3)}function Nn(){var n,r,e=new this(0);for(p=!1,n=0;n<arguments.length;)if((r=new this(arguments[n++])).d)e.d&&(e=e.plus(r.times(r)));else{if(r.s)return p=!0,new this(1/0);e=r}return p=!0,e.sqrt()}function xn(n){return n instanceof o||n&&n.toStringTag===y||!1}function bn(n){return new this(n).ln()}function En(n,r){return new this(n).log(r)}function On(n){return new this(n).log(2)}function Mn(n){return new this(n).log(10)}function Sn(){return z(this,arguments,"lt")}function _n(){return z(this,arguments,"gt")}function An(n,r){return new this(n).mod(r)}function Tn(n,r){return new this(n).mul(r)}function qn(n,r){return new this(n).pow(r)}function Fn(n){var r,e,t,i,o=0,s=new this(1),u=[];if(void 0===n?n=this.precision:F(n,1,f),t=Math.ceil(n/7),this.crypto)if(crypto.getRandomValues)for(r=crypto.getRandomValues(new Uint32Array(t));o<t;)(i=r[o])>=429e7?r[o]=crypto.getRandomValues(new Uint32Array(1))[0]:u[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(w);for(r=crypto.randomBytes(t*=4);o<t;)(i=r[o]+(r[o+1]<<8)+(r[o+2]<<16)+((127&r[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(r,o):(u.push(i%1e7),o+=4);o=t/4}else for(;o<t;)u[o++]=1e7*Math.random()|0;for(n%=7,(t=u[--o])&&n&&(i=x(10,7-n),u[o]=(t/i|0)*i);0===u[o];o--)u.pop();if(o<0)e=0,u=[0];else{for(e=-1;0===u[0];e-=7)u.shift();for(t=1,i=u[0];i>=10;i/=10)t++;t<7&&(e-=7-t)}return s.e=e,s.d=u,s}function Cn(n){return k(n=new this(n),n.e+1,this.rounding)}function Rn(n){return(n=new this(n)).d?n.d[0]?n.s:0*n.s:n.s||NaN}function Un(n){return new this(n).sin()}function kn(n){return new this(n).sinh()}function Bn(n){return new this(n).sqrt()}function Dn(n,r){return new this(n).sub(r)}function Zn(){var n=0,r=arguments,e=new this(r[n]);for(p=!1;e.s&&++n<r.length;)e=e.plus(r[n]);return p=!0,k(e,this.precision,this.rounding)}function Ln(n){return new this(n).tan()}function In(n){return new this(n).tanh()}function Pn(n){return k(n=new this(n),n.e+1,1)}(o=function n(r){var e,t,i;function o(n){var r,e,t,i=this;if(!(i instanceof o))return new o(n);if(i.constructor=o,xn(n))return i.s=n.s,void(p?!n.d||n.e>o.maxE?(i.e=NaN,i.d=null):n.e<o.minE?(i.e=0,i.d=[0]):(i.e=n.e,i.d=n.d.slice()):(i.e=n.e,i.d=n.d?n.d.slice():n.d));if("number"==(t=typeof n)){if(0===n)return i.s=1/n<0?-1:1,i.e=0,void(i.d=[0]);if(n<0?(n=-n,i.s=-1):i.s=1,n===~~n&&n<1e7){for(r=0,e=n;e>=10;e/=10)r++;return void(p?r>o.maxE?(i.e=NaN,i.d=null):r<o.minE?(i.e=0,i.d=[0]):(i.e=r,i.d=[n]):(i.e=r,i.d=[n]))}return 0*n!=0?(n||(i.s=NaN),i.e=NaN,void(i.d=null)):$(i,n.toString())}if("string"!==t)throw Error(m+n);return 45===(e=n.charCodeAt(0))?(n=n.slice(1),i.s=-1):(43===e&&(n=n.slice(1)),i.s=1),M.test(n)?$(i,n):X(i,n)}if(o.prototype=T,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=pn,o.clone=n,o.isDecimal=xn,o.abs=rn,o.acos=en,o.acosh=tn,o.add=on,o.asin=sn,o.asinh=un,o.atan=cn,o.atanh=fn,o.atan2=an,o.cbrt=ln,o.ceil=hn,o.clamp=dn,o.cos=gn,o.cosh=mn,o.div=vn,o.exp=wn,o.floor=yn,o.hypot=Nn,o.ln=bn,o.log=En,o.log10=Mn,o.log2=On,o.max=Sn,o.min=_n,o.mod=An,o.mul=Tn,o.pow=qn,o.random=Fn,o.round=Cn,o.sign=Rn,o.sin=Un,o.sinh=kn,o.sqrt=Bn,o.sub=Dn,o.sum=Zn,o.tan=Ln,o.tanh=In,o.trunc=Pn,void 0===r&&(r={}),r&&!0!==r.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<i.length;)r.hasOwnProperty(t=i[e++])||(r[t]=this[t]);return o.config(r),o}(d)).prototype.constructor=o,o.default=o.Decimal=o,l=new o(l),h=new o(h),void 0===(t=function(){return o}.call(r,e,r,n))||(n.exports=t)}()},35:n=>{"use strict";n.exports=function(n,r){r||(r={}),"function"==typeof r&&(r={cmp:r});var e,t="boolean"==typeof r.cycles&&r.cycles,i=r.cmp&&(e=r.cmp,function(n){return function(r,t){var i={key:r,value:n[r]},o={key:t,value:n[t]};return e(i,o)}}),o=[];return function n(r){if(r&&r.toJSON&&"function"==typeof r.toJSON&&(r=r.toJSON()),void 0!==r){if("number"==typeof r)return isFinite(r)?""+r:"null";if("object"!=typeof r)return JSON.stringify(r);var e,s;if(Array.isArray(r)){for(s="[",e=0;e<r.length;e++)e&&(s+=","),s+=n(r[e])||"null";return s+"]"}if(null===r)return"null";if(-1!==o.indexOf(r)){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=o.push(r)-1,c=Object.keys(r).sort(i&&i(r));for(s="",e=0;e<c.length;e++){var f=c[e],a=n(r[f]);a&&(s&&(s+=","),s+=JSON.stringify(f)+":"+a)}return o.splice(u,1),"{"+s+"}"}}(n)}},738:n=>{function r(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}n.exports=function(n){return null!=n&&(r(n)||function(n){return"function"==typeof n.readFloatLE&&"function"==typeof n.slice&&r(n.slice(0,0))}(n)||!!n._isBuffer)}},568:(n,r,e)=>{var t,i,o,s,u;t=e(12),i=e(487).utf8,o=e(738),s=e(487).bin,(u=function(n,r){n.constructor==String?n=r&&"binary"===r.encoding?s.stringToBytes(n):i.stringToBytes(n):o(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var e=t.bytesToWords(n),c=8*n.length,f=1732584193,a=-271733879,l=-1732584194,h=271733878,d=0;d<e.length;d++)e[d]=16711935&(e[d]<<8|e[d]>>>24)|4278255360&(e[d]<<24|e[d]>>>8);e[c>>>5]|=128<<c%32,e[14+(c+64>>>9<<4)]=c;var p=u._ff,g=u._gg,m=u._hh,v=u._ii;for(d=0;d<e.length;d+=16){var w=f,y=a,N=l,x=h;f=p(f,a,l,h,e[d+0],7,-680876936),h=p(h,f,a,l,e[d+1],12,-389564586),l=p(l,h,f,a,e[d+2],17,606105819),a=p(a,l,h,f,e[d+3],22,-1044525330),f=p(f,a,l,h,e[d+4],7,-176418897),h=p(h,f,a,l,e[d+5],12,1200080426),l=p(l,h,f,a,e[d+6],17,-1473231341),a=p(a,l,h,f,e[d+7],22,-45705983),f=p(f,a,l,h,e[d+8],7,1770035416),h=p(h,f,a,l,e[d+9],12,-1958414417),l=p(l,h,f,a,e[d+10],17,-42063),a=p(a,l,h,f,e[d+11],22,-1990404162),f=p(f,a,l,h,e[d+12],7,1804603682),h=p(h,f,a,l,e[d+13],12,-40341101),l=p(l,h,f,a,e[d+14],17,-1502002290),f=g(f,a=p(a,l,h,f,e[d+15],22,1236535329),l,h,e[d+1],5,-165796510),h=g(h,f,a,l,e[d+6],9,-1069501632),l=g(l,h,f,a,e[d+11],14,643717713),a=g(a,l,h,f,e[d+0],20,-373897302),f=g(f,a,l,h,e[d+5],5,-701558691),h=g(h,f,a,l,e[d+10],9,38016083),l=g(l,h,f,a,e[d+15],14,-660478335),a=g(a,l,h,f,e[d+4],20,-405537848),f=g(f,a,l,h,e[d+9],5,568446438),h=g(h,f,a,l,e[d+14],9,-1019803690),l=g(l,h,f,a,e[d+3],14,-187363961),a=g(a,l,h,f,e[d+8],20,1163531501),f=g(f,a,l,h,e[d+13],5,-1444681467),h=g(h,f,a,l,e[d+2],9,-51403784),l=g(l,h,f,a,e[d+7],14,1735328473),f=m(f,a=g(a,l,h,f,e[d+12],20,-1926607734),l,h,e[d+5],4,-378558),h=m(h,f,a,l,e[d+8],11,-2022574463),l=m(l,h,f,a,e[d+11],16,1839030562),a=m(a,l,h,f,e[d+14],23,-35309556),f=m(f,a,l,h,e[d+1],4,-1530992060),h=m(h,f,a,l,e[d+4],11,1272893353),l=m(l,h,f,a,e[d+7],16,-155497632),a=m(a,l,h,f,e[d+10],23,-1094730640),f=m(f,a,l,h,e[d+13],4,681279174),h=m(h,f,a,l,e[d+0],11,-358537222),l=m(l,h,f,a,e[d+3],16,-722521979),a=m(a,l,h,f,e[d+6],23,76029189),f=m(f,a,l,h,e[d+9],4,-640364487),h=m(h,f,a,l,e[d+12],11,-421815835),l=m(l,h,f,a,e[d+15],16,530742520),f=v(f,a=m(a,l,h,f,e[d+2],23,-995338651),l,h,e[d+0],6,-198630844),h=v(h,f,a,l,e[d+7],10,1126891415),l=v(l,h,f,a,e[d+14],15,-1416354905),a=v(a,l,h,f,e[d+5],21,-57434055),f=v(f,a,l,h,e[d+12],6,1700485571),h=v(h,f,a,l,e[d+3],10,-1894986606),l=v(l,h,f,a,e[d+10],15,-1051523),a=v(a,l,h,f,e[d+1],21,-2054922799),f=v(f,a,l,h,e[d+8],6,1873313359),h=v(h,f,a,l,e[d+15],10,-30611744),l=v(l,h,f,a,e[d+6],15,-1560198380),a=v(a,l,h,f,e[d+13],21,1309151649),f=v(f,a,l,h,e[d+4],6,-145523070),h=v(h,f,a,l,e[d+11],10,-1120210379),l=v(l,h,f,a,e[d+2],15,718787259),a=v(a,l,h,f,e[d+9],21,-343485551),f=f+w>>>0,a=a+y>>>0,l=l+N>>>0,h=h+x>>>0}return t.endian([f,a,l,h])})._ff=function(n,r,e,t,i,o,s){var u=n+(r&e|~r&t)+(i>>>0)+s;return(u<<o|u>>>32-o)+r},u._gg=function(n,r,e,t,i,o,s){var u=n+(r&t|e&~t)+(i>>>0)+s;return(u<<o|u>>>32-o)+r},u._hh=function(n,r,e,t,i,o,s){var u=n+(r^e^t)+(i>>>0)+s;return(u<<o|u>>>32-o)+r},u._ii=function(n,r,e,t,i,o,s){var u=n+(e^(r|~t))+(i>>>0)+s;return(u<<o|u>>>32-o)+r},u._blocksize=16,u._digestsize=16,n.exports=function(n,r){if(null==n)throw new Error("Illegal argument "+n);var e=t.wordsToBytes(u(n,r));return r&&r.asBytes?e:r&&r.asString?s.bytesToString(e):t.bytesToHex(e)}},872:(n,r,e)=>{var t=e(353);n.exports=function(n){return!!+t(n).mod(2)}},986:(n,r,e)=>{var t=e(353),i=e(820),o=e(661),s=p([[32,126]]),u=p([[32,126],[160,255]]),c=p([[48,57]]),f=p([[97,122]]),a=p([[65,90]]),l=p([[192,214],[216,222]]),h=p([[223,246],[248,255]]),d=p([f,a,c]);function p(n){n=function(n){for(var r,e=[],t=-1,i=(n=[].concat(n)).length;++t<i;)(r=n[t]).__fictional_char?e.push.apply(e,r.__fictional_char.ranges):e.push(r);return e}(n);var r=i(n,256);return e.__fictional_char={ranges:n},e;function e(n){return o(r(t(n)))}}d.inRanges=p,d.alphanumeric=p([d]),d.ascii=s,d.latin1=u,d.unicode=p([s,u]),d.digit=c,d.lower=d.asciiLower=f,d.upper=d.asciiUpper=a,d.latin1Lower=l,d.latin1Upper=h,d.letter=d.asciiLetter=p([f,a]),d.latin1Letter=p([l,h]),d.alphanumeric=p([f,a,c]),d.unicodeLower=p([f,l]),d.unicodeUpper=p([a,h]),n.exports=d},45:(n,r,e)=>{var t=e(353),i=e(636),o=e(83),s=e(673);function u(n,r){var e=t(n),o=i((r=r||0).minYear,1980),u=i(r.maxYear,2019),c=s(e,o,u),f=s(e,0,11),a=s(e,1,28),l=s(e,0,23),h=s(e,0,59),d=s(e,0,1e3);return new Date(Date.UTC(c,f,a,l,h,d)).toISOString()}u.options=function(n){var r=this;return e.options=u.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=u},382:(n,r,e)=>{var t=e(353),i=e(83),o=e(673),s=e(291),u=e(636),c=e(776);function f(n,r){var e=u((r=r||0).min,0),i=u(r.max,Number.MAX_SAFE_INTEGER),f=t(t(n)),a=s(t(f),2,5),l=c.pow(10,a),h=s(f,e,i).div(l);return o(h,e,i)}f.options=function(n){var r=this;return e.options=f.options,e;function e(e,t){return r(e,i(n,t))}},n.exports=f},353:(n,r,e)=>{var t=e(568),i=e(35),o=e(776);function s(n){return o("0X"+t(i(n)+s.salt))}s.salt="chino",s.hash2=function(n,r){return s(s(n)+s(r))},s.hash3=function(n,r,e){return s(s(n)+s(r)+s(e))},n.exports=s},121:(n,r,e)=>{var t=e(353),i=e(673),o=e(83),s=e(636);function u(n,r){var e=s((r=r||0).min,0),o=s(r.max,Number.MAX_SAFE_INTEGER),u=t(n);return i(u,e,o)}u.options=function(n){var r=this;return e.options=u.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=u},938:(n,r,e)=>{var t=e(812),i=e(657);function o(n,r,e){var o=i(t(n,e));return"function"==typeof r?r(o):o.join(r)}n.exports=function(n,r,e){return null!=r&&null==e?(t=n,i=r,function(n){return o(n,t,i)}):o(n,r,e);var t,i}},674:(n,r,e)=>{var t=e(353).hash2,i=e(66);n.exports=function n(r,e,o){return null!=e?(s=e,u=o,c=t(r,"oneOf"),i(c,s[c.mod(s.length)],u)):function(r){return function(e,t){return n(e,r,t)}}(r);var s,u,c}},143:(n,r,e)=>{var t=e(353).hash2,i=e(761),o=e(66),s=1e-4;function u(n){if(n.__parsed)return n;var r=n.length,e=function(n){for(var r,e=-1,t=n.length,i=[];++e<t;)"number"==typeof(r=n[e][0])&&i.push(r);return i}(n),t=e.reduce(c,0),i=e.length;if(!r)throw new Error("Empty samples given to oneOfWeighted");if(t>1+s)throw new Error("Assigned probabilities add up more than 1: "+JSON.stringify(e));if(r===i&&t<1-s)throw new Error("All items were assigned probabilities, yet the probabilities add up to less than 1: "+JSON.stringify(e));return function(n,r){for(var e,t,i=[],o=-1,s=n.length;++o<s;)"number"!=typeof(t=(e=n[o])[0])&&(t=r),i.push([t,e[1]]);return i.__parsed=!0,i}(n,(1-t)/(r-i))}function c(n,r){return n+r}n.exports=function n(r,e){return null!=e?function(n,r){r=u(r);for(var e,s,c=t(n,"oneOfWeighted"),f=r.length,a=1,l=-1;++l<f;)if(a-=s=(e=r[l])[0]/a,i(c,s))return o(c,e[1]);throw new Error("Unexpectedly reached end of oneOfWeighted() unresolved. If you see this please file a bug.")}(r,e):(s=u(s=r),function(r){return n(r,s)});var s}},7:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(83),s=e(673),u=e(636),c=e(967);function f(n,r){var e=u((r=r||0).minSentences,3),o=u(r.maxSentences,7),f=i(n,"paragraph"),a=s(f,e,o),l=0;f=t(f);for(var h=c(f,r);++l<a;)f=t(f),h+=" "+c(f,r);return h}f.options=function(n){var r=this;return e.options=f.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=f},967:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(83),s=e(673),u=e(636),c=e(331);function f(n,r){var e=u((r=r||0).minWords,5),f=u(r.maxWords,8),a=u(r.minClauses,1),l=u(r.maxClauses,2),h=u(r.unicode,.382),d=i(n,"sentence"),p=s(d,a,l),g=0;d=t(d);for(var m=o(r,{capitalize:"first",min:e,max:f,unicode:h}),v=o(m,{capitalize:!1}),w=c(d,m);++g<p;)d=t(d),w+=", "+c(d,v);return w+"."}f.options=function(n){var r=this;return e.options=f.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=f},491:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(66),s=Object.prototype.hasOwnProperty;function u(n,r){var e=t(n),u={};for(var c in r)s.call(r,c)&&(u[c]=o(i(e,c),r[c]));return u}n.exports=function(n,r){return null!=r?u(n,r):(e=n,function(n){return u(n,e)});var e}},168:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(673),s=e(66);n.exports=function n(r,e,u){return null!=e&&null!=u?function(n,r,e){for(var u,c,f,a=i(n,"someOf"),l="number"==typeof r?r:o(a,r[0],r[1]),h=-1,d=[],p=e.slice();++h<l&&(u=p.length);)f=p[c=(a=t(a))%u],p.splice(c,1),d.push(s(a,f));return d}(r,e,u):(c=r,f=e,function(r){return n(r,c,f)});var c,f}},554:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(673);function s(n,r,e){var s=i(n,"times"),u="number"==typeof r?r:o(s,r[0],r[1]),c=-1,f=[];if("function"==typeof e)for(;++c<u;)s=t(s),f.push(e(s));else for(;++c<u;)f.push(e);return f}n.exports=function(n,r,e){return null!=r&&null!=e?s(n,r,e):(t=n,i=r,function(n){return s(n,t,i)});var t,i}},812:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(66);function s(n,r){for(var e=i(n,"tuple"),s=r.length,u=-1,c=[];++u<s;)e=t(e),c.push(o(e,r[u]));return c}n.exports=function(n,r){return null!=r?s(n,r):(e=n,function(n){return s(n,e)});var e}},83:n=>{var r=Object.prototype.hasOwnProperty;n.exports=function(n,e){var t,i={};if(n)for(t in n)r.call(n,t)&&(i[t]=n[t]);if(e)for(t in e)r.call(e,t)&&(i[t]=e[t]);return i}},291:(n,r,e)=>{var t=e(776);n.exports=function(n,r,e){return n=t(n),r=t(r||0),null==e?n.gt(r)?n:n.add(r):(e=t.max(e,r),r.eq(e)?r:r.lte(n)&&n.lte(e)?n:(0!==n.dp()&&(e=e.minus(1)),n.mod(e.add(1).minus(r)).add(r)))}},636:n=>{n.exports=function(n,r){return null==n?r:n}},570:n=>{n.exports=function(n,r){for(var e=[],t=n-1,i=r+1;++t<i;)e.push(t);return e}},673:(n,r,e)=>{const t=e(291);n.exports=function(n,r,e){return+t(n,r,e)}},820:(n,r,e)=>{var t=e(570),i=e(776);function o(n,r){var e=n[0]-r[0];return 0===e?n[1]-r[0]:e}function s(n){for(var r,e=-1,i=n.length,o=[];++e<i;)r=n[e],o.push.apply(o,t(r.min,r.max));return o}n.exports=function(n,r){if(!n.length)throw new Error("Empty range set given to fitRanges()");var e=function(n,r){for(var e,t,i,o=[],u=n.length,c=0,f=n[0],a=f[0],l=f[1],h=0,d=0;++c<u;)t=(f=n[c])[0],i=f[1],t>l+1&&(e=h+(l-a),o.push({modMin:h,modMax:e,min:a,max:l,offset:a-h}),h=e+1,d+=l+1-a,a=t),l=Math.max(l,i);return o.push({modMin:h,modMax:h+(l-a),min:a,max:l,offset:a-h}),{ranges:n,segments:o,size:d+=l+1-a,values:d<=r?s(o):null}}(n.slice().sort(o),r),t=e.values,u=e.segments,c=e.size,f=t?function(n){var r=n.length;return function(e){return n[e.mod(r)]}}(t):function(n,r){return function(e){for(var t,o,s,u=+i(e).mod(r),c=0,f=n.length-1;c<=f;)if(t=Math.floor((c+f)/2),s=(o=n[t]).modMin,u>o.modMax)c=t+1;else{if(!(u<s))return u+o.offset;f=t-1}throw new Error("Unexpectedly reached end of fitRanges()")}}(u,c);return f.meta=e,f}},657:n=>{var r=Array.isArray;n.exports=function n(e){for(var t,i=[],o=e.length,s=-1;++s<o;)t=e[s],r(t)?i.push.apply(i,n(t)):i.push(t);return i}},761:(n,r,e)=>{var t=e(776);n.exports=function(n,r){return!(r=t(r="boolean"==typeof r?+r:r)).eq(0)&&(!!r.eq(1)||t(n).mod(t(1).div(r)).lt(1))}},661:n=>{var r=String.fromCharCode;n.exports=String.fromCodePoint||function(){for(var n=[],e=0,t="",i=0,o=arguments.length;i!==o;++i){var s=+arguments[i];if(!(s<1114111&&s>>>0===s))throw RangeError("Invalid code point: "+s);s<=65535?e=n.push(s):(s-=65536,e=n.push(55296+(s>>10),s%1024+56320)),e>=16383&&(t+=r.apply(null,n),n.length=0)}return t+r.apply(null,n)}},66:(n,r,e)=>{var t=e(353);n.exports=function(n,r,e){return"function"==typeof r?r(t(n),e):r}},953:(n,r,e)=>{var t=e(353),i={a:["å","ǻ","ḁ","ẚ","ă","ặ","ắ","ằ","ẳ","ẵ","ȃ","â","ậ","ấ","ầ","ẫ","ẩ","ả","ǎ","ȧ","ǡ","ạ","ä","ǟ","à","ȁ","á","ā","ā̀","ã","ą","ą́","ą̃","æ"],b:["ƀ","ḃ","ḅ","ḇ","ɓ"],c:["ć","ĉ","č","ċ","ḉ","ƈ","c̈","ȼ","ç"],d:["đ","ɗ","ḋ","ḍ","ḑ","ḓ","ď","ḏ"],e:["ĕ","ḝ","ȇ","ê","ê̄","ê̌","ề","ế","ể","ễ","ệ","ẻ","ḙ","ě","ė","ė́","ė̃","ẹ","ë","è","è̩","ȅ","é","é̩","ē","ḕ","ḗ","ẽ","ḛ","ę","ę́","ę̃"],f:["ƒ","ḟ"],g:["ǵ","ǥ","ĝ","ǧ","ğ","ģ","ɠ","ġ","ḡ"],h:["ĥ","ȟ","ħ","ḩ","ẖ","ḥ","ḣ","ḧ","ḫ"],i:["ị","ĭ","î","ǐ","ɨ","ï","ḯ","í","ì","ȉ","į","į̃","ī","ī̀","ỉ","ȋ","ĩ"],j:["ĵ","j̇̃"],k:["ƙ","ꝁ","ḱ","ǩ","ḳ","ķ","ᶄ","ḵ"],l:["ĺ","ł","ľ","ḹ","l̃","ļ","ŀ","ḷ","ḻ","ḽ","ƚ"],m:["ḿ","ṁ","ṃ","m̃"],n:["ń","ñ","ň","ǹ","ṅ","ṇ","ņ","ṉ","ṋ"],o:["ø","ǿ","ö","ȫ","ó","ò","ô","ố","ồ","ổ","ỗ","ộ","ǒ","ő","ŏ","ȏ","ȯ","ȱ","ọ","ɵ","ơ","ớ","ờ","ỡ","ợ","ở","ỏ","ō","ṓ","ṑ","õ","ȭ","ṍ","ṏ","ǫ","ȍ","o̩","ó̩"],p:["ṕ","ṗ","ᵽ","ƥ","ᶈ"],q:["ʠ","q̃"],r:["ŕ","ɍ","ř","ŗ","ṙ","ȑ","ȓ","ṛ","ṝ","ṟ","ꞧ","ɽ","r̃"],s:["ś","ṡ","ṩ","ṥ","ṣ","s̩","ꞩ","ŝ","ṧ","š","ş","ș","s̈"],t:["ť","ṫ","ẗ","ţ","ṭ","ʈ","ț","ƫ","ṱ","ṯ","ŧ"],u:["ŭ","ʉ","ụ","ü","ǜ","ǘ","ǚ","ǖ","ṳ","ú","ù","û","ṷ","ǔ","ȗ","ű","ŭ","ư","ứ","ừ","ử","ự","ữ","ủ","ū","ū̀","ū́","ṻ","ū̃","ũ","ṹ","ṵ","ų","ų́","ų̃","ȕ","Ů"],v:["ṽ","ṿ","ʋ"],w:["ẃ","ẁ","ŵ","ẅ","ẇ","ẉ","ẘ"],x:["ẍ","ẋ","ᶍ"],y:["ý","ỳ","ŷ","ÿ","ỹ","ẏ","ỵ","ẙ","ỷ","ȳ","ƴ"],z:["ź","ẑ","ž","ż","ẓ","ẕ","ƶ","ᶎ"]};n.exports=function(n,r){var e=r.length,o=n%e;n=t(n);var s=1===e?r:r[o],u=s.toLowerCase(),c=i[u];if(!c)return r;var f=c[n%c.length];return s=s===u?f:f.toUpperCase(),1===e?s:r.slice(0,o)+s+r.slice(o+1)}},194:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(83),s=e(673),u=e(761),c=e(953),f=e(636),a=["a","ka","ki","ke","ko","ta","chi","shi","so","na","ni","no","ra","ha","hy","ma","mi","mu","me","mo","yu","yo","kai","va","vi","kin","rae","cea"],l=a.length;function h(n,r){for(var e,o,h=f((r=r||0).capitalize,!0),p=f(r.minSyllables,2),g=f(r.maxSyllables,4),m=f(r.unicode,!0),v=i(n,"word"),w=s(v,p,g),y="",N="",x=-1;++x<w;){e=N;do{v=t(v),N=a[v%l]}while(!d(e,N));y+=N}return u(v,m)&&(y=c(v,y)),h&&(y=(o=y)[0].toUpperCase()+o.slice(1)),y}function d(n,r){var e=n[n.length-1];return n!==r&&e!==r[0]&&e!==r[1]}h.options=function(n){var r=this;return e.options=h.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=h},331:(n,r,e)=>{var t=e(353),i=t.hash3,o=e(83),s=e(673),u=e(636),c=e(194);function f(n,r){var e=u((r=r||0).minSyllables,1),f=u(r.capitalize,"first"),a=!0===f||"all"===f,l=a||"first"===f,h=u(r.min,2),d=u(r.max,3),p=t(n),g=s(p,h,d),m=0;p=i(p,"words",m);for(var v,w=o(r,{minSyllables:e,capitalize:l}),y=o(r,{minSyllables:e,capitalize:a}),N=c(p,w),x=N;++m<g;){v=x;do{p=i(p,"words",m),x=c(p,y)}while(x.length===v.length);N+=" "+x}return N}f.options=function(n){var r=this;return e.options=f.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=f}},r={};function e(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return n[t].call(o.exports,o,o.exports,e),o.exports}var t={};return(()=>{var n=t;n.hash=e(353),n.oneOf=e(674),n.someOf=e(168),n.tuple=e(812),n.shape=e(491),n.times=e(554),n.join=e(938),n.oneOfWeighted=e(143),n.int=e(121),n.float=e(382),n.char=e(986),n.word=e(194),n.words=e(331),n.sentence=e(967),n.paragraph=e(7),n.bool=e(872),n.dateString=e(45)})(),t})()));
!function(n,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.fictional=r():n.fictional=r()}(this,(()=>(()=>{var n={487:n=>{var r={utf8:{stringToBytes:function(n){return r.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(r.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],e=0;e<n.length;e++)r.push(255&n.charCodeAt(e));return r},bytesToString:function(n){for(var r=[],e=0;e<n.length;e++)r.push(String.fromCharCode(n[e]));return r.join("")}}};n.exports=r},12:n=>{var r,e;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var r=0;r<n.length;r++)n[r]=e.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(256*Math.random()));return r},bytesToWords:function(n){for(var r=[],e=0,t=0;e<n.length;e++,t+=8)r[t>>>5]|=n[e]<<24-t%32;return r},wordsToBytes:function(n){for(var r=[],e=0;e<32*n.length;e+=8)r.push(n[e>>>5]>>>24-e%32&255);return r},bytesToHex:function(n){for(var r=[],e=0;e<n.length;e++)r.push((n[e]>>>4).toString(16)),r.push((15&n[e]).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],e=0;e<n.length;e+=2)r.push(parseInt(n.substr(e,2),16));return r},bytesToBase64:function(n){for(var e=[],t=0;t<n.length;t+=3)for(var i=n[t]<<16|n[t+1]<<8|n[t+2],o=0;o<4;o++)8*t+6*o<=8*n.length?e.push(r.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],t=0,i=0;t<n.length;i=++t%4)0!=i&&e.push((r.indexOf(n.charAt(t-1))&Math.pow(2,-2*i+8)-1)<<2*i|r.indexOf(n.charAt(t))>>>6-2*i);return e}},n.exports=e},776:function(n,r,e){var t;!function(i){"use strict";var o,s,u,c=9e15,f=1e9,a="0123456789abcdef",l="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",h="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},p=!0,g="[DecimalError] ",m=g+"Invalid argument: ",v=g+"Precision limit exceeded",w=g+"crypto unavailable",y="[object Decimal]",N=Math.floor,x=Math.pow,b=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,E=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,O=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,M=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,S=1e7,_=l.length-1,A=h.length-1,T={toStringTag:y};function q(n){var r,e,t,i=n.length-1,o="",s=n[0];if(i>0){for(o+=s,r=1;r<i;r++)(e=7-(t=n[r]+"").length)&&(o+=P(e)),o+=t;(e=7-(t=(s=n[r])+"").length)&&(o+=P(e))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}function F(n,r,e){if(n!==~~n||n<r||n>e)throw Error(m+n)}function C(n,r,e,t){var i,o,s,u;for(o=n[0];o>=10;o/=10)--r;return--r<0?(r+=7,i=0):(i=Math.ceil((r+1)/7),r%=7),o=x(10,7-r),u=n[i]%o|0,null==t?r<3?(0==r?u=u/100|0:1==r&&(u=u/10|0),s=e<4&&99999==u||e>3&&49999==u||5e4==u||0==u):s=(e<4&&u+1==o||e>3&&u+1==o/2)&&(n[i+1]/o/100|0)==x(10,r-2)-1||(u==o/2||0==u)&&0==(n[i+1]/o/100|0):r<4?(0==r?u=u/1e3|0:1==r?u=u/100|0:2==r&&(u=u/10|0),s=(t||e<4)&&9999==u||!t&&e>3&&4999==u):s=((t||e<4)&&u+1==o||!t&&e>3&&u+1==o/2)&&(n[i+1]/o/1e3|0)==x(10,r-3)-1,s}function R(n,r,e){for(var t,i,o=[0],s=0,u=n.length;s<u;){for(i=o.length;i--;)o[i]*=r;for(o[0]+=a.indexOf(n.charAt(s++)),t=0;t<o.length;t++)o[t]>e-1&&(void 0===o[t+1]&&(o[t+1]=0),o[t+1]+=o[t]/e|0,o[t]%=e)}return o.reverse()}T.absoluteValue=T.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),k(n)},T.ceil=function(){return k(new this.constructor(this),this.e+1,2)},T.clampedTo=T.clamp=function(n,r){var e=this,t=e.constructor;if(n=new t(n),r=new t(r),!n.s||!r.s)return new t(NaN);if(n.gt(r))throw Error(m+r);return e.cmp(n)<0?n:e.cmp(r)>0?r:new t(e)},T.comparedTo=T.cmp=function(n){var r,e,t,i,o=this,s=o.d,u=(n=new o.constructor(n)).d,c=o.s,f=n.s;if(!s||!u)return c&&f?c!==f?c:s===u?0:!s^c<0?1:-1:NaN;if(!s[0]||!u[0])return s[0]?c:u[0]?-f:0;if(c!==f)return c;if(o.e!==n.e)return o.e>n.e^c<0?1:-1;for(r=0,e=(t=s.length)<(i=u.length)?t:i;r<e;++r)if(s[r]!==u[r])return s[r]>u[r]^c<0?1:-1;return t===i?0:t>i^c<0?1:-1},T.cosine=T.cos=function(){var n,r,e=this,t=e.constructor;return e.d?e.d[0]?(n=t.precision,r=t.rounding,t.precision=n+Math.max(e.e,e.sd())+7,t.rounding=1,e=function(n,r){var e,t,i;if(r.isZero())return r;(t=r.d.length)<32?i=(1/Y(4,e=Math.ceil(t/3))).toString():(e=16,i="2.3283064365386962890625e-10"),n.precision+=e,r=G(n,1,r.times(i),new n(1));for(var o=e;o--;){var s=r.times(r);r=s.times(s).minus(s).times(8).plus(1)}return n.precision-=e,r}(t,K(t,e)),t.precision=n,t.rounding=r,k(2==u||3==u?e.neg():e,n,r,!0)):new t(1):new t(NaN)},T.cubeRoot=T.cbrt=function(){var n,r,e,t,i,o,s,u,c,f,a=this,l=a.constructor;if(!a.isFinite()||a.isZero())return new l(a);for(p=!1,(o=a.s*x(a.s*a,1/3))&&Math.abs(o)!=1/0?t=new l(o.toString()):(e=q(a.d),(o=((n=a.e)-e.length+1)%3)&&(e+=1==o||-2==o?"0":"00"),o=x(e,1/3),n=N((n+1)/3)-(n%3==(n<0?-1:2)),(t=new l(e=o==1/0?"5e"+n:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+n)).s=a.s),s=(n=l.precision)+3;;)if(f=(c=(u=t).times(u).times(u)).plus(a),t=U(f.plus(a).times(u),f.plus(c),s+2,1),q(u.d).slice(0,s)===(e=q(t.d)).slice(0,s)){if("9999"!=(e=e.slice(s-3,s+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(k(t,n+1,1),r=!t.times(t).times(t).eq(a));break}if(!i&&(k(u,n+1,0),u.times(u).times(u).eq(a))){t=u;break}s+=4,i=1}return p=!0,k(t,n,l.rounding,r)},T.decimalPlaces=T.dp=function(){var n,r=this.d,e=NaN;if(r){if(e=7*((n=r.length-1)-N(this.e/7)),n=r[n])for(;n%10==0;n/=10)e--;e<0&&(e=0)}return e},T.dividedBy=T.div=function(n){return U(this,new this.constructor(n))},T.dividedToIntegerBy=T.divToInt=function(n){var r=this.constructor;return k(U(this,new r(n),0,1,1),r.precision,r.rounding)},T.equals=T.eq=function(n){return 0===this.cmp(n)},T.floor=function(){return k(new this.constructor(this),this.e+1,3)},T.greaterThan=T.gt=function(n){return this.cmp(n)>0},T.greaterThanOrEqualTo=T.gte=function(n){var r=this.cmp(n);return 1==r||0===r},T.hyperbolicCosine=T.cosh=function(){var n,r,e,t,i,o=this,s=o.constructor,u=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return u;e=s.precision,t=s.rounding,s.precision=e+Math.max(o.e,o.sd())+4,s.rounding=1,(i=o.d.length)<32?r=(1/Y(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),o=G(s,1,o.times(r),new s(1),!0);for(var c,f=n,a=new s(8);f--;)c=o.times(o),o=u.minus(c.times(a.minus(c.times(a))));return k(o,s.precision=e,s.rounding=t,!0)},T.hyperbolicSine=T.sinh=function(){var n,r,e,t,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(r=o.precision,e=o.rounding,o.precision=r+Math.max(i.e,i.sd())+4,o.rounding=1,(t=i.d.length)<3)i=G(o,2,i,i,!0);else{n=(n=1.4*Math.sqrt(t))>16?16:0|n,i=G(o,2,i=i.times(1/Y(5,n)),i,!0);for(var s,u=new o(5),c=new o(16),f=new o(20);n--;)s=i.times(i),i=i.times(u.plus(s.times(c.times(s).plus(f))))}return o.precision=r,o.rounding=e,k(i,r,e,!0)},T.hyperbolicTangent=T.tanh=function(){var n,r,e=this,t=e.constructor;return e.isFinite()?e.isZero()?new t(e):(n=t.precision,r=t.rounding,t.precision=n+7,t.rounding=1,U(e.sinh(),e.cosh(),t.precision=n,t.rounding=r)):new t(e.s)},T.inverseCosine=T.acos=function(){var n,r=this,e=r.constructor,t=r.abs().cmp(1),i=e.precision,o=e.rounding;return-1!==t?0===t?r.isNeg()?L(e,i,o):new e(0):new e(NaN):r.isZero()?L(e,i+4,o).times(.5):(e.precision=i+6,e.rounding=1,r=r.asin(),n=L(e,i+4,o).times(.5),e.precision=i,e.rounding=o,n.minus(r))},T.inverseHyperbolicCosine=T.acosh=function(){var n,r,e=this,t=e.constructor;return e.lte(1)?new t(e.eq(1)?0:NaN):e.isFinite()?(n=t.precision,r=t.rounding,t.precision=n+Math.max(Math.abs(e.e),e.sd())+4,t.rounding=1,p=!1,e=e.times(e).minus(1).sqrt().plus(e),p=!0,t.precision=n,t.rounding=r,e.ln()):new t(e)},T.inverseHyperbolicSine=T.asinh=function(){var n,r,e=this,t=e.constructor;return!e.isFinite()||e.isZero()?new t(e):(n=t.precision,r=t.rounding,t.precision=n+2*Math.max(Math.abs(e.e),e.sd())+6,t.rounding=1,p=!1,e=e.times(e).plus(1).sqrt().plus(e),p=!0,t.precision=n,t.rounding=r,e.ln())},T.inverseHyperbolicTangent=T.atanh=function(){var n,r,e,t,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(n=o.precision,r=o.rounding,t=i.sd(),Math.max(t,n)<2*-i.e-1?k(new o(i),n,r,!0):(o.precision=e=t-i.e,i=U(i.plus(1),new o(1).minus(i),e+n,1),o.precision=n+4,o.rounding=1,i=i.ln(),o.precision=n,o.rounding=r,i.times(.5))):new o(NaN)},T.inverseSine=T.asin=function(){var n,r,e,t,i=this,o=i.constructor;return i.isZero()?new o(i):(r=i.abs().cmp(1),e=o.precision,t=o.rounding,-1!==r?0===r?((n=L(o,e+4,t).times(.5)).s=i.s,n):new o(NaN):(o.precision=e+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=e,o.rounding=t,i.times(2)))},T.inverseTangent=T.atan=function(){var n,r,e,t,i,o,s,u,c,f=this,a=f.constructor,l=a.precision,h=a.rounding;if(f.isFinite()){if(f.isZero())return new a(f);if(f.abs().eq(1)&&l+4<=A)return(s=L(a,l+4,h).times(.25)).s=f.s,s}else{if(!f.s)return new a(NaN);if(l+4<=A)return(s=L(a,l+4,h).times(.5)).s=f.s,s}for(a.precision=u=l+10,a.rounding=1,n=e=Math.min(28,u/7+2|0);n;--n)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(p=!1,r=Math.ceil(u/7),t=1,c=f.times(f),s=new a(f),i=f;-1!==n;)if(i=i.times(c),o=s.minus(i.div(t+=2)),i=i.times(c),void 0!==(s=o.plus(i.div(t+=2))).d[r])for(n=r;s.d[n]===o.d[n]&&n--;);return e&&(s=s.times(2<<e-1)),p=!0,k(s,a.precision=l,a.rounding=h,!0)},T.isFinite=function(){return!!this.d},T.isInteger=T.isInt=function(){return!!this.d&&N(this.e/7)>this.d.length-2},T.isNaN=function(){return!this.s},T.isNegative=T.isNeg=function(){return this.s<0},T.isPositive=T.isPos=function(){return this.s>0},T.isZero=function(){return!!this.d&&0===this.d[0]},T.lessThan=T.lt=function(n){return this.cmp(n)<0},T.lessThanOrEqualTo=T.lte=function(n){return this.cmp(n)<1},T.logarithm=T.log=function(n){var r,e,t,i,o,s,u,c,f=this,a=f.constructor,l=a.precision,h=a.rounding;if(null==n)n=new a(10),r=!0;else{if(e=(n=new a(n)).d,n.s<0||!e||!e[0]||n.eq(1))return new a(NaN);r=n.eq(10)}if(e=f.d,f.s<0||!e||!e[0]||f.eq(1))return new a(e&&!e[0]?-1/0:1!=f.s?NaN:e?0:1/0);if(r)if(e.length>1)o=!0;else{for(i=e[0];i%10==0;)i/=10;o=1!==i}if(p=!1,s=W(f,u=l+5),t=r?Z(a,u+10):W(n,u),C((c=U(s,t,u,1)).d,i=l,h))do{if(s=W(f,u+=10),t=r?Z(a,u+10):W(n,u),c=U(s,t,u,1),!o){+q(c.d).slice(i+1,i+15)+1==1e14&&(c=k(c,l+1,0));break}}while(C(c.d,i+=10,h));return p=!0,k(c,l,h)},T.minus=T.sub=function(n){var r,e,t,i,o,s,u,c,f,a,l,h,d=this,g=d.constructor;if(n=new g(n),!d.d||!n.d)return d.s&&n.s?d.d?n.s=-n.s:n=new g(n.d||d.s!==n.s?d:NaN):n=new g(NaN),n;if(d.s!=n.s)return n.s=-n.s,d.plus(n);if(f=d.d,h=n.d,u=g.precision,c=g.rounding,!f[0]||!h[0]){if(h[0])n.s=-n.s;else{if(!f[0])return new g(3===c?-0:0);n=new g(d)}return p?k(n,u,c):n}if(e=N(n.e/7),a=N(d.e/7),f=f.slice(),o=a-e){for((l=o<0)?(r=f,o=-o,s=h.length):(r=h,e=a,s=f.length),o>(t=Math.max(Math.ceil(u/7),s)+2)&&(o=t,r.length=1),r.reverse(),t=o;t--;)r.push(0);r.reverse()}else{for((l=(t=f.length)<(s=h.length))&&(s=t),t=0;t<s;t++)if(f[t]!=h[t]){l=f[t]<h[t];break}o=0}for(l&&(r=f,f=h,h=r,n.s=-n.s),s=f.length,t=h.length-s;t>0;--t)f[s++]=0;for(t=h.length;t>o;){if(f[--t]<h[t]){for(i=t;i&&0===f[--i];)f[i]=S-1;--f[i],f[t]+=S}f[t]-=h[t]}for(;0===f[--s];)f.pop();for(;0===f[0];f.shift())--e;return f[0]?(n.d=f,n.e=D(f,e),p?k(n,u,c):n):new g(3===c?-0:0)},T.modulo=T.mod=function(n){var r,e=this,t=e.constructor;return n=new t(n),!e.d||!n.s||n.d&&!n.d[0]?new t(NaN):!n.d||e.d&&!e.d[0]?k(new t(e),t.precision,t.rounding):(p=!1,9==t.modulo?(r=U(e,n.abs(),0,3,1)).s*=n.s:r=U(e,n,0,t.modulo,1),r=r.times(n),p=!0,e.minus(r))},T.naturalExponential=T.exp=function(){return J(this)},T.naturalLogarithm=T.ln=function(){return W(this)},T.negated=T.neg=function(){var n=new this.constructor(this);return n.s=-n.s,k(n)},T.plus=T.add=function(n){var r,e,t,i,o,s,u,c,f,a,l=this,h=l.constructor;if(n=new h(n),!l.d||!n.d)return l.s&&n.s?l.d||(n=new h(n.d||l.s===n.s?l:NaN)):n=new h(NaN),n;if(l.s!=n.s)return n.s=-n.s,l.minus(n);if(f=l.d,a=n.d,u=h.precision,c=h.rounding,!f[0]||!a[0])return a[0]||(n=new h(l)),p?k(n,u,c):n;if(o=N(l.e/7),t=N(n.e/7),f=f.slice(),i=o-t){for(i<0?(e=f,i=-i,s=a.length):(e=a,t=o,s=f.length),i>(s=(o=Math.ceil(u/7))>s?o+1:s+1)&&(i=s,e.length=1),e.reverse();i--;)e.push(0);e.reverse()}for((s=f.length)-(i=a.length)<0&&(i=s,e=a,a=f,f=e),r=0;i;)r=(f[--i]=f[i]+a[i]+r)/S|0,f[i]%=S;for(r&&(f.unshift(r),++t),s=f.length;0==f[--s];)f.pop();return n.d=f,n.e=D(f,t),p?k(n,u,c):n},T.precision=T.sd=function(n){var r,e=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(m+n);return e.d?(r=I(e.d),n&&e.e+1>r&&(r=e.e+1)):r=NaN,r},T.round=function(){var n=this,r=n.constructor;return k(new r(n),n.e+1,r.rounding)},T.sine=T.sin=function(){var n,r,e=this,t=e.constructor;return e.isFinite()?e.isZero()?new t(e):(n=t.precision,r=t.rounding,t.precision=n+Math.max(e.e,e.sd())+7,t.rounding=1,e=function(n,r){var e,t=r.d.length;if(t<3)return r.isZero()?r:G(n,2,r,r);e=(e=1.4*Math.sqrt(t))>16?16:0|e,r=G(n,2,r=r.times(1/Y(5,e)),r);for(var i,o=new n(5),s=new n(16),u=new n(20);e--;)i=r.times(r),r=r.times(o.plus(i.times(s.times(i).minus(u))));return r}(t,K(t,e)),t.precision=n,t.rounding=r,k(u>2?e.neg():e,n,r,!0)):new t(NaN)},T.squareRoot=T.sqrt=function(){var n,r,e,t,i,o,s=this,u=s.d,c=s.e,f=s.s,a=s.constructor;if(1!==f||!u||!u[0])return new a(!f||f<0&&(!u||u[0])?NaN:u?s:1/0);for(p=!1,0==(f=Math.sqrt(+s))||f==1/0?(((r=q(u)).length+c)%2==0&&(r+="0"),f=Math.sqrt(r),c=N((c+1)/2)-(c<0||c%2),t=new a(r=f==1/0?"5e"+c:(r=f.toExponential()).slice(0,r.indexOf("e")+1)+c)):t=new a(f.toString()),e=(c=a.precision)+3;;)if(t=(o=t).plus(U(s,o,e+2,1)).times(.5),q(o.d).slice(0,e)===(r=q(t.d)).slice(0,e)){if("9999"!=(r=r.slice(e-3,e+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(k(t,c+1,1),n=!t.times(t).eq(s));break}if(!i&&(k(o,c+1,0),o.times(o).eq(s))){t=o;break}e+=4,i=1}return p=!0,k(t,c,a.rounding,n)},T.tangent=T.tan=function(){var n,r,e=this,t=e.constructor;return e.isFinite()?e.isZero()?new t(e):(n=t.precision,r=t.rounding,t.precision=n+10,t.rounding=1,(e=e.sin()).s=1,e=U(e,new t(1).minus(e.times(e)).sqrt(),n+10,0),t.precision=n,t.rounding=r,k(2==u||4==u?e.neg():e,n,r,!0)):new t(NaN)},T.times=T.mul=function(n){var r,e,t,i,o,s,u,c,f,a=this,l=a.constructor,h=a.d,d=(n=new l(n)).d;if(n.s*=a.s,!(h&&h[0]&&d&&d[0]))return new l(!n.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:h&&d?0*n.s:n.s/0);for(e=N(a.e/7)+N(n.e/7),(c=h.length)<(f=d.length)&&(o=h,h=d,d=o,s=c,c=f,f=s),o=[],t=s=c+f;t--;)o.push(0);for(t=f;--t>=0;){for(r=0,i=c+t;i>t;)u=o[i]+d[t]*h[i-t-1]+r,o[i--]=u%S|0,r=u/S|0;o[i]=(o[i]+r)%S|0}for(;!o[--s];)o.pop();return r?++e:o.shift(),n.d=o,n.e=D(o,e),p?k(n,l.precision,l.rounding):n},T.toBinary=function(n,r){return Q(this,2,n,r)},T.toDecimalPlaces=T.toDP=function(n,r){var e=this,t=e.constructor;return e=new t(e),void 0===n?e:(F(n,0,f),void 0===r?r=t.rounding:F(r,0,8),k(e,n+e.e+1,r))},T.toExponential=function(n,r){var e,t=this,i=t.constructor;return void 0===n?e=B(t,!0):(F(n,0,f),void 0===r?r=i.rounding:F(r,0,8),e=B(t=k(new i(t),n+1,r),!0,n+1)),t.isNeg()&&!t.isZero()?"-"+e:e},T.toFixed=function(n,r){var e,t,i=this,o=i.constructor;return void 0===n?e=B(i):(F(n,0,f),void 0===r?r=o.rounding:F(r,0,8),e=B(t=k(new o(i),n+i.e+1,r),!1,n+t.e+1)),i.isNeg()&&!i.isZero()?"-"+e:e},T.toFraction=function(n){var r,e,t,i,o,s,u,c,f,a,l,h,d=this,g=d.d,v=d.constructor;if(!g)return new v(d);if(f=e=new v(1),t=c=new v(0),s=(o=(r=new v(t)).e=I(g)-d.e-1)%7,r.d[0]=x(10,s<0?7+s:s),null==n)n=o>0?r:f;else{if(!(u=new v(n)).isInt()||u.lt(f))throw Error(m+u);n=u.gt(r)?o>0?r:f:u}for(p=!1,u=new v(q(g)),a=v.precision,v.precision=o=7*g.length*2;l=U(u,r,0,1,1),1!=(i=e.plus(l.times(t))).cmp(n);)e=t,t=i,i=f,f=c.plus(l.times(i)),c=i,i=r,r=u.minus(l.times(i)),u=i;return i=U(n.minus(e),t,0,1,1),c=c.plus(i.times(f)),e=e.plus(i.times(t)),c.s=f.s=d.s,h=U(f,t,o,1).minus(d).abs().cmp(U(c,e,o,1).minus(d).abs())<1?[f,t]:[c,e],v.precision=a,p=!0,h},T.toHexadecimal=T.toHex=function(n,r){return Q(this,16,n,r)},T.toNearest=function(n,r){var e=this,t=e.constructor;if(e=new t(e),null==n){if(!e.d)return e;n=new t(1),r=t.rounding}else{if(n=new t(n),void 0===r?r=t.rounding:F(r,0,8),!e.d)return n.s?e:n;if(!n.d)return n.s&&(n.s=e.s),n}return n.d[0]?(p=!1,e=U(e,n,0,r,1).times(n),p=!0,k(e)):(n.s=e.s,e=n),e},T.toNumber=function(){return+this},T.toOctal=function(n,r){return Q(this,8,n,r)},T.toPower=T.pow=function(n){var r,e,t,i,o,s,u=this,c=u.constructor,f=+(n=new c(n));if(!(u.d&&n.d&&u.d[0]&&n.d[0]))return new c(x(+u,f));if((u=new c(u)).eq(1))return u;if(t=c.precision,o=c.rounding,n.eq(1))return k(u,t,o);if((r=N(n.e/7))>=n.d.length-1&&(e=f<0?-f:f)<=9007199254740991)return i=j(c,u,e,t),n.s<0?new c(1).div(i):k(i,t,o);if((s=u.s)<0){if(r<n.d.length-1)return new c(NaN);if(0==(1&n.d[r])&&(s=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=s,u}return(r=0!=(e=x(+u,f))&&isFinite(e)?new c(e+"").e:N(f*(Math.log("0."+q(u.d))/Math.LN10+u.e+1)))>c.maxE+1||r<c.minE-1?new c(r>0?s/0:0):(p=!1,c.rounding=u.s=1,e=Math.min(12,(r+"").length),(i=J(n.times(W(u,t+e)),t)).d&&C((i=k(i,t+5,1)).d,t,o)&&(r=t+10,+q((i=k(J(n.times(W(u,r+e)),r),r+5,1)).d).slice(t+1,t+15)+1==1e14&&(i=k(i,t+1,0))),i.s=s,p=!0,c.rounding=o,k(i,t,o))},T.toPrecision=function(n,r){var e,t=this,i=t.constructor;return void 0===n?e=B(t,t.e<=i.toExpNeg||t.e>=i.toExpPos):(F(n,1,f),void 0===r?r=i.rounding:F(r,0,8),e=B(t=k(new i(t),n,r),n<=t.e||t.e<=i.toExpNeg,n)),t.isNeg()&&!t.isZero()?"-"+e:e},T.toSignificantDigits=T.toSD=function(n,r){var e=this.constructor;return void 0===n?(n=e.precision,r=e.rounding):(F(n,1,f),void 0===r?r=e.rounding:F(r,0,8)),k(new e(this),n,r)},T.toString=function(){var n=this,r=n.constructor,e=B(n,n.e<=r.toExpNeg||n.e>=r.toExpPos);return n.isNeg()&&!n.isZero()?"-"+e:e},T.truncated=T.trunc=function(){return k(new this.constructor(this),this.e+1,1)},T.valueOf=T.toJSON=function(){var n=this,r=n.constructor,e=B(n,n.e<=r.toExpNeg||n.e>=r.toExpPos);return n.isNeg()?"-"+e:e};var U=function(){function n(n,r,e){var t,i=0,o=n.length;for(n=n.slice();o--;)t=n[o]*r+i,n[o]=t%e|0,i=t/e|0;return i&&n.unshift(i),n}function r(n,r,e,t){var i,o;if(e!=t)o=e>t?1:-1;else for(i=o=0;i<e;i++)if(n[i]!=r[i]){o=n[i]>r[i]?1:-1;break}return o}function e(n,r,e,t){for(var i=0;e--;)n[e]-=i,i=n[e]<r[e]?1:0,n[e]=i*t+n[e]-r[e];for(;!n[0]&&n.length>1;)n.shift()}return function(t,i,o,u,c,f){var a,l,h,d,p,g,m,v,w,y,x,b,E,O,M,_,A,T,q,F,C=t.constructor,R=t.s==i.s?1:-1,U=t.d,B=i.d;if(!(U&&U[0]&&B&&B[0]))return new C(t.s&&i.s&&(U?!B||U[0]!=B[0]:B)?U&&0==U[0]||!B?0*R:R/0:NaN);for(f?(p=1,l=t.e-i.e):(f=S,p=7,l=N(t.e/p)-N(i.e/p)),q=B.length,A=U.length,y=(w=new C(R)).d=[],h=0;B[h]==(U[h]||0);h++);if(B[h]>(U[h]||0)&&l--,null==o?(O=o=C.precision,u=C.rounding):O=c?o+(t.e-i.e)+1:o,O<0)y.push(1),g=!0;else{if(O=O/p+2|0,h=0,1==q){for(d=0,B=B[0],O++;(h<A||d)&&O--;h++)M=d*f+(U[h]||0),y[h]=M/B|0,d=M%B|0;g=d||h<A}else{for((d=f/(B[0]+1)|0)>1&&(B=n(B,d,f),U=n(U,d,f),q=B.length,A=U.length),_=q,b=(x=U.slice(0,q)).length;b<q;)x[b++]=0;(F=B.slice()).unshift(0),T=B[0],B[1]>=f/2&&++T;do{d=0,(a=r(B,x,q,b))<0?(E=x[0],q!=b&&(E=E*f+(x[1]||0)),(d=E/T|0)>1?(d>=f&&(d=f-1),1==(a=r(m=n(B,d,f),x,v=m.length,b=x.length))&&(d--,e(m,q<v?F:B,v,f))):(0==d&&(a=d=1),m=B.slice()),(v=m.length)<b&&m.unshift(0),e(x,m,b,f),-1==a&&(a=r(B,x,q,b=x.length))<1&&(d++,e(x,q<b?F:B,b,f)),b=x.length):0===a&&(d++,x=[0]),y[h++]=d,a&&x[0]?x[b++]=U[_]||0:(x=[U[_]],b=1)}while((_++<A||void 0!==x[0])&&O--);g=void 0!==x[0]}y[0]||y.shift()}if(1==p)w.e=l,s=g;else{for(h=1,d=y[0];d>=10;d/=10)h++;w.e=h+l*p-1,k(w,c?o+w.e+1:o,u,g)}return w}}();function k(n,r,e,t){var i,o,s,u,c,f,a,l,h,d=n.constructor;n:if(null!=r){if(!(l=n.d))return n;for(i=1,u=l[0];u>=10;u/=10)i++;if((o=r-i)<0)o+=7,s=r,c=(a=l[h=0])/x(10,i-s-1)%10|0;else if((h=Math.ceil((o+1)/7))>=(u=l.length)){if(!t)break n;for(;u++<=h;)l.push(0);a=c=0,i=1,s=(o%=7)-7+1}else{for(a=u=l[h],i=1;u>=10;u/=10)i++;c=(s=(o%=7)-7+i)<0?0:a/x(10,i-s-1)%10|0}if(t=t||r<0||void 0!==l[h+1]||(s<0?a:a%x(10,i-s-1)),f=e<4?(c||t)&&(0==e||e==(n.s<0?3:2)):c>5||5==c&&(4==e||t||6==e&&(o>0?s>0?a/x(10,i-s):0:l[h-1])%10&1||e==(n.s<0?8:7)),r<1||!l[0])return l.length=0,f?(r-=n.e+1,l[0]=x(10,(7-r%7)%7),n.e=-r||0):l[0]=n.e=0,n;if(0==o?(l.length=h,u=1,h--):(l.length=h+1,u=x(10,7-o),l[h]=s>0?(a/x(10,i-s)%x(10,s)|0)*u:0),f)for(;;){if(0==h){for(o=1,s=l[0];s>=10;s/=10)o++;for(s=l[0]+=u,u=1;s>=10;s/=10)u++;o!=u&&(n.e++,l[0]==S&&(l[0]=1));break}if(l[h]+=u,l[h]!=S)break;l[h--]=0,u=1}for(o=l.length;0===l[--o];)l.pop()}return p&&(n.e>d.maxE?(n.d=null,n.e=NaN):n.e<d.minE&&(n.e=0,n.d=[0])),n}function B(n,r,e){if(!n.isFinite())return V(n);var t,i=n.e,o=q(n.d),s=o.length;return r?(e&&(t=e-s)>0?o=o.charAt(0)+"."+o.slice(1)+P(t):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(n.e<0?"e":"e+")+n.e):i<0?(o="0."+P(-i-1)+o,e&&(t=e-s)>0&&(o+=P(t))):i>=s?(o+=P(i+1-s),e&&(t=e-i-1)>0&&(o=o+"."+P(t))):((t=i+1)<s&&(o=o.slice(0,t)+"."+o.slice(t)),e&&(t=e-s)>0&&(i+1===s&&(o+="."),o+=P(t))),o}function D(n,r){var e=n[0];for(r*=7;e>=10;e/=10)r++;return r}function Z(n,r,e){if(r>_)throw p=!0,e&&(n.precision=e),Error(v);return k(new n(l),r,1,!0)}function L(n,r,e){if(r>A)throw Error(v);return k(new n(h),r,e,!0)}function I(n){var r=n.length-1,e=7*r+1;if(r=n[r]){for(;r%10==0;r/=10)e--;for(r=n[0];r>=10;r/=10)e++}return e}function P(n){for(var r="";n--;)r+="0";return r}function j(n,r,e,t){var i,o=new n(1),s=Math.ceil(t/7+4);for(p=!1;;){if(e%2&&nn((o=o.times(r)).d,s)&&(i=!0),0===(e=N(e/2))){e=o.d.length-1,i&&0===o.d[e]&&++o.d[e];break}nn((r=r.times(r)).d,s)}return p=!0,o}function H(n){return 1&n.d[n.d.length-1]}function z(n,r,e){for(var t,i=new n(r[0]),o=0;++o<r.length;){if(!(t=new n(r[o])).s){i=t;break}i[e](t)&&(i=t)}return i}function J(n,r){var e,t,i,o,s,u,c,f=0,a=0,l=0,h=n.constructor,d=h.rounding,g=h.precision;if(!n.d||!n.d[0]||n.e>17)return new h(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);for(null==r?(p=!1,c=g):c=r,u=new h(.03125);n.e>-2;)n=n.times(u),l+=5;for(c+=t=Math.log(x(2,l))/Math.LN10*2+5|0,e=o=s=new h(1),h.precision=c;;){if(o=k(o.times(n),c,1),e=e.times(++a),q((u=s.plus(U(o,e,c,1))).d).slice(0,c)===q(s.d).slice(0,c)){for(i=l;i--;)s=k(s.times(s),c,1);if(null!=r)return h.precision=g,s;if(!(f<3&&C(s.d,c-t,d,f)))return k(s,h.precision=g,d,p=!0);h.precision=c+=10,e=o=u=new h(1),a=0,f++}s=u}}function W(n,r){var e,t,i,o,s,u,c,f,a,l,h,d=1,g=n,m=g.d,v=g.constructor,w=v.rounding,y=v.precision;if(g.s<0||!m||!m[0]||!g.e&&1==m[0]&&1==m.length)return new v(m&&!m[0]?-1/0:1!=g.s?NaN:m?0:g);if(null==r?(p=!1,a=y):a=r,v.precision=a+=10,t=(e=q(m)).charAt(0),!(Math.abs(o=g.e)<15e14))return f=Z(v,a+2,y).times(o+""),g=W(new v(t+"."+e.slice(1)),a-10).plus(f),v.precision=y,null==r?k(g,y,w,p=!0):g;for(;t<7&&1!=t||1==t&&e.charAt(1)>3;)t=(e=q((g=g.times(n)).d)).charAt(0),d++;for(o=g.e,t>1?(g=new v("0."+e),o++):g=new v(t+"."+e.slice(1)),l=g,c=s=g=U(g.minus(1),g.plus(1),a,1),h=k(g.times(g),a,1),i=3;;){if(s=k(s.times(h),a,1),q((f=c.plus(U(s,new v(i),a,1))).d).slice(0,a)===q(c.d).slice(0,a)){if(c=c.times(2),0!==o&&(c=c.plus(Z(v,a+2,y).times(o+""))),c=U(c,new v(d),a,1),null!=r)return v.precision=y,c;if(!C(c.d,a-10,w,u))return k(c,v.precision=y,w,p=!0);v.precision=a+=10,f=s=g=U(l.minus(1),l.plus(1),a,1),h=k(g.times(g),a,1),i=u=1}c=f,i+=2}}function V(n){return String(n.s*n.s/0)}function $(n,r){var e,t,i;for((e=r.indexOf("."))>-1&&(r=r.replace(".","")),(t=r.search(/e/i))>0?(e<0&&(e=t),e+=+r.slice(t+1),r=r.substring(0,t)):e<0&&(e=r.length),t=0;48===r.charCodeAt(t);t++);for(i=r.length;48===r.charCodeAt(i-1);--i);if(r=r.slice(t,i)){if(i-=t,n.e=e=e-t-1,n.d=[],t=(e+1)%7,e<0&&(t+=7),t<i){for(t&&n.d.push(+r.slice(0,t)),i-=7;t<i;)n.d.push(+r.slice(t,t+=7));t=7-(r=r.slice(t)).length}else t-=i;for(;t--;)r+="0";n.d.push(+r),p&&(n.e>n.constructor.maxE?(n.d=null,n.e=NaN):n.e<n.constructor.minE&&(n.e=0,n.d=[0]))}else n.e=0,n.d=[0];return n}function X(n,r){var e,t,i,s,u,c,f,a,l;if(r.indexOf("_")>-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),M.test(r))return $(n,r)}else if("Infinity"===r||"NaN"===r)return+r||(n.s=NaN),n.e=NaN,n.d=null,n;if(E.test(r))e=16,r=r.toLowerCase();else if(b.test(r))e=2;else{if(!O.test(r))throw Error(m+r);e=8}for((s=r.search(/p/i))>0?(f=+r.slice(s+1),r=r.substring(2,s)):r=r.slice(2),u=(s=r.indexOf("."))>=0,t=n.constructor,u&&(s=(c=(r=r.replace(".","")).length)-s,i=j(t,new t(e),s,2*s)),s=l=(a=R(r,e,S)).length-1;0===a[s];--s)a.pop();return s<0?new t(0*n.s):(n.e=D(a,l),n.d=a,p=!1,u&&(n=U(n,i,4*c)),f&&(n=n.times(Math.abs(f)<54?x(2,f):o.pow(2,f))),p=!0,n)}function G(n,r,e,t,i){var o,s,u,c,f=n.precision,a=Math.ceil(f/7);for(p=!1,c=e.times(e),u=new n(t);;){if(s=U(u.times(c),new n(r++*r++),f,1),u=i?t.plus(s):t.minus(s),t=U(s.times(c),new n(r++*r++),f,1),void 0!==(s=u.plus(t)).d[a]){for(o=a;s.d[o]===u.d[o]&&o--;);if(-1==o)break}o=u,u=t,t=s,s=o}return p=!0,s.d.length=a+1,s}function Y(n,r){for(var e=n;--r;)e*=n;return e}function K(n,r){var e,t=r.s<0,i=L(n,n.precision,1),o=i.times(.5);if((r=r.abs()).lte(o))return u=t?4:1,r;if((e=r.divToInt(i)).isZero())u=t?3:2;else{if((r=r.minus(e.times(i))).lte(o))return u=H(e)?t?2:3:t?4:1,r;u=H(e)?t?1:4:t?3:2}return r.minus(i).abs()}function Q(n,r,e,t){var i,o,u,c,l,h,d,p,g,m=n.constructor,v=void 0!==e;if(v?(F(e,1,f),void 0===t?t=m.rounding:F(t,0,8)):(e=m.precision,t=m.rounding),n.isFinite()){for(v?(i=2,16==r?e=4*e-3:8==r&&(e=3*e-2)):i=r,(u=(d=B(n)).indexOf("."))>=0&&(d=d.replace(".",""),(g=new m(1)).e=d.length-u,g.d=R(B(g),10,i),g.e=g.d.length),o=l=(p=R(d,10,i)).length;0==p[--l];)p.pop();if(p[0]){if(u<0?o--:((n=new m(n)).d=p,n.e=o,p=(n=U(n,g,e,t,0,i)).d,o=n.e,h=s),u=p[e],c=i/2,h=h||void 0!==p[e+1],h=t<4?(void 0!==u||h)&&(0===t||t===(n.s<0?3:2)):u>c||u===c&&(4===t||h||6===t&&1&p[e-1]||t===(n.s<0?8:7)),p.length=e,h)for(;++p[--e]>i-1;)p[e]=0,e||(++o,p.unshift(1));for(l=p.length;!p[l-1];--l);for(u=0,d="";u<l;u++)d+=a.charAt(p[u]);if(v){if(l>1)if(16==r||8==r){for(u=16==r?4:3,--l;l%u;l++)d+="0";for(l=(p=R(d,i,r)).length;!p[l-1];--l);for(u=1,d="1.";u<l;u++)d+=a.charAt(p[u])}else d=d.charAt(0)+"."+d.slice(1);d=d+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)d="0"+d;d="0."+d}else if(++o>l)for(o-=l;o--;)d+="0";else o<l&&(d=d.slice(0,o)+"."+d.slice(o))}else d=v?"0p+0":"0";d=(16==r?"0x":2==r?"0b":8==r?"0o":"")+d}else d=V(n);return n.s<0?"-"+d:d}function nn(n,r){if(n.length>r)return n.length=r,!0}function rn(n){return new this(n).abs()}function en(n){return new this(n).acos()}function tn(n){return new this(n).acosh()}function on(n,r){return new this(n).plus(r)}function sn(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 an(n,r){n=new this(n),r=new this(r);var e,t=this.precision,i=this.rounding,o=t+4;return n.s&&r.s?n.d||r.d?!r.d||n.isZero()?(e=r.s<0?L(this,t,i):new this(0)).s=n.s:!n.d||r.isZero()?(e=L(this,o,1).times(.5)).s=n.s:r.s<0?(this.precision=o,this.rounding=1,e=this.atan(U(n,r,o,1)),r=L(this,o,1),this.precision=t,this.rounding=i,e=n.s<0?e.minus(r):e.plus(r)):e=this.atan(U(n,r,o,1)):(e=L(this,o,1).times(r.s>0?.25:.75)).s=n.s:e=new this(NaN),e}function ln(n){return new this(n).cbrt()}function hn(n){return k(n=new this(n),n.e+1,2)}function dn(n,r,e){return new this(n).clamp(r,e)}function pn(n){if(!n||"object"!=typeof n)throw Error(g+"Object expected");var r,e,t,i=!0===n.defaults,o=["precision",1,f,"rounding",0,8,"toExpNeg",-c,0,"toExpPos",0,c,"maxE",0,c,"minE",-c,0,"modulo",0,9];for(r=0;r<o.length;r+=3)if(e=o[r],i&&(this[e]=d[e]),void 0!==(t=n[e])){if(!(N(t)===t&&t>=o[r+1]&&t<=o[r+2]))throw Error(m+e+": "+t);this[e]=t}if(e="crypto",i&&(this[e]=d[e]),void 0!==(t=n[e])){if(!0!==t&&!1!==t&&0!==t&&1!==t)throw Error(m+e+": "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(w);this[e]=!0}else this[e]=!1}return this}function gn(n){return new this(n).cos()}function mn(n){return new this(n).cosh()}function vn(n,r){return new this(n).div(r)}function wn(n){return new this(n).exp()}function yn(n){return k(n=new this(n),n.e+1,3)}function Nn(){var n,r,e=new this(0);for(p=!1,n=0;n<arguments.length;)if((r=new this(arguments[n++])).d)e.d&&(e=e.plus(r.times(r)));else{if(r.s)return p=!0,new this(1/0);e=r}return p=!0,e.sqrt()}function xn(n){return n instanceof o||n&&n.toStringTag===y||!1}function bn(n){return new this(n).ln()}function En(n,r){return new this(n).log(r)}function On(n){return new this(n).log(2)}function Mn(n){return new this(n).log(10)}function Sn(){return z(this,arguments,"lt")}function _n(){return z(this,arguments,"gt")}function An(n,r){return new this(n).mod(r)}function Tn(n,r){return new this(n).mul(r)}function qn(n,r){return new this(n).pow(r)}function Fn(n){var r,e,t,i,o=0,s=new this(1),u=[];if(void 0===n?n=this.precision:F(n,1,f),t=Math.ceil(n/7),this.crypto)if(crypto.getRandomValues)for(r=crypto.getRandomValues(new Uint32Array(t));o<t;)(i=r[o])>=429e7?r[o]=crypto.getRandomValues(new Uint32Array(1))[0]:u[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(w);for(r=crypto.randomBytes(t*=4);o<t;)(i=r[o]+(r[o+1]<<8)+(r[o+2]<<16)+((127&r[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(r,o):(u.push(i%1e7),o+=4);o=t/4}else for(;o<t;)u[o++]=1e7*Math.random()|0;for(n%=7,(t=u[--o])&&n&&(i=x(10,7-n),u[o]=(t/i|0)*i);0===u[o];o--)u.pop();if(o<0)e=0,u=[0];else{for(e=-1;0===u[0];e-=7)u.shift();for(t=1,i=u[0];i>=10;i/=10)t++;t<7&&(e-=7-t)}return s.e=e,s.d=u,s}function Cn(n){return k(n=new this(n),n.e+1,this.rounding)}function Rn(n){return(n=new this(n)).d?n.d[0]?n.s:0*n.s:n.s||NaN}function Un(n){return new this(n).sin()}function kn(n){return new this(n).sinh()}function Bn(n){return new this(n).sqrt()}function Dn(n,r){return new this(n).sub(r)}function Zn(){var n=0,r=arguments,e=new this(r[n]);for(p=!1;e.s&&++n<r.length;)e=e.plus(r[n]);return p=!0,k(e,this.precision,this.rounding)}function Ln(n){return new this(n).tan()}function In(n){return new this(n).tanh()}function Pn(n){return k(n=new this(n),n.e+1,1)}(o=function n(r){var e,t,i;function o(n){var r,e,t,i=this;if(!(i instanceof o))return new o(n);if(i.constructor=o,xn(n))return i.s=n.s,void(p?!n.d||n.e>o.maxE?(i.e=NaN,i.d=null):n.e<o.minE?(i.e=0,i.d=[0]):(i.e=n.e,i.d=n.d.slice()):(i.e=n.e,i.d=n.d?n.d.slice():n.d));if("number"==(t=typeof n)){if(0===n)return i.s=1/n<0?-1:1,i.e=0,void(i.d=[0]);if(n<0?(n=-n,i.s=-1):i.s=1,n===~~n&&n<1e7){for(r=0,e=n;e>=10;e/=10)r++;return void(p?r>o.maxE?(i.e=NaN,i.d=null):r<o.minE?(i.e=0,i.d=[0]):(i.e=r,i.d=[n]):(i.e=r,i.d=[n]))}return 0*n!=0?(n||(i.s=NaN),i.e=NaN,void(i.d=null)):$(i,n.toString())}if("string"!==t)throw Error(m+n);return 45===(e=n.charCodeAt(0))?(n=n.slice(1),i.s=-1):(43===e&&(n=n.slice(1)),i.s=1),M.test(n)?$(i,n):X(i,n)}if(o.prototype=T,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=pn,o.clone=n,o.isDecimal=xn,o.abs=rn,o.acos=en,o.acosh=tn,o.add=on,o.asin=sn,o.asinh=un,o.atan=cn,o.atanh=fn,o.atan2=an,o.cbrt=ln,o.ceil=hn,o.clamp=dn,o.cos=gn,o.cosh=mn,o.div=vn,o.exp=wn,o.floor=yn,o.hypot=Nn,o.ln=bn,o.log=En,o.log10=Mn,o.log2=On,o.max=Sn,o.min=_n,o.mod=An,o.mul=Tn,o.pow=qn,o.random=Fn,o.round=Cn,o.sign=Rn,o.sin=Un,o.sinh=kn,o.sqrt=Bn,o.sub=Dn,o.sum=Zn,o.tan=Ln,o.tanh=In,o.trunc=Pn,void 0===r&&(r={}),r&&!0!==r.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<i.length;)r.hasOwnProperty(t=i[e++])||(r[t]=this[t]);return o.config(r),o}(d)).prototype.constructor=o,o.default=o.Decimal=o,l=new o(l),h=new o(h),void 0===(t=function(){return o}.call(r,e,r,n))||(n.exports=t)}()},35:n=>{"use strict";n.exports=function(n,r){r||(r={}),"function"==typeof r&&(r={cmp:r});var e,t="boolean"==typeof r.cycles&&r.cycles,i=r.cmp&&(e=r.cmp,function(n){return function(r,t){var i={key:r,value:n[r]},o={key:t,value:n[t]};return e(i,o)}}),o=[];return function n(r){if(r&&r.toJSON&&"function"==typeof r.toJSON&&(r=r.toJSON()),void 0!==r){if("number"==typeof r)return isFinite(r)?""+r:"null";if("object"!=typeof r)return JSON.stringify(r);var e,s;if(Array.isArray(r)){for(s="[",e=0;e<r.length;e++)e&&(s+=","),s+=n(r[e])||"null";return s+"]"}if(null===r)return"null";if(-1!==o.indexOf(r)){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=o.push(r)-1,c=Object.keys(r).sort(i&&i(r));for(s="",e=0;e<c.length;e++){var f=c[e],a=n(r[f]);a&&(s&&(s+=","),s+=JSON.stringify(f)+":"+a)}return o.splice(u,1),"{"+s+"}"}}(n)}},738:n=>{function r(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}n.exports=function(n){return null!=n&&(r(n)||function(n){return"function"==typeof n.readFloatLE&&"function"==typeof n.slice&&r(n.slice(0,0))}(n)||!!n._isBuffer)}},568:(n,r,e)=>{var t,i,o,s,u;t=e(12),i=e(487).utf8,o=e(738),s=e(487).bin,(u=function(n,r){n.constructor==String?n=r&&"binary"===r.encoding?s.stringToBytes(n):i.stringToBytes(n):o(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var e=t.bytesToWords(n),c=8*n.length,f=1732584193,a=-271733879,l=-1732584194,h=271733878,d=0;d<e.length;d++)e[d]=16711935&(e[d]<<8|e[d]>>>24)|4278255360&(e[d]<<24|e[d]>>>8);e[c>>>5]|=128<<c%32,e[14+(c+64>>>9<<4)]=c;var p=u._ff,g=u._gg,m=u._hh,v=u._ii;for(d=0;d<e.length;d+=16){var w=f,y=a,N=l,x=h;f=p(f,a,l,h,e[d+0],7,-680876936),h=p(h,f,a,l,e[d+1],12,-389564586),l=p(l,h,f,a,e[d+2],17,606105819),a=p(a,l,h,f,e[d+3],22,-1044525330),f=p(f,a,l,h,e[d+4],7,-176418897),h=p(h,f,a,l,e[d+5],12,1200080426),l=p(l,h,f,a,e[d+6],17,-1473231341),a=p(a,l,h,f,e[d+7],22,-45705983),f=p(f,a,l,h,e[d+8],7,1770035416),h=p(h,f,a,l,e[d+9],12,-1958414417),l=p(l,h,f,a,e[d+10],17,-42063),a=p(a,l,h,f,e[d+11],22,-1990404162),f=p(f,a,l,h,e[d+12],7,1804603682),h=p(h,f,a,l,e[d+13],12,-40341101),l=p(l,h,f,a,e[d+14],17,-1502002290),f=g(f,a=p(a,l,h,f,e[d+15],22,1236535329),l,h,e[d+1],5,-165796510),h=g(h,f,a,l,e[d+6],9,-1069501632),l=g(l,h,f,a,e[d+11],14,643717713),a=g(a,l,h,f,e[d+0],20,-373897302),f=g(f,a,l,h,e[d+5],5,-701558691),h=g(h,f,a,l,e[d+10],9,38016083),l=g(l,h,f,a,e[d+15],14,-660478335),a=g(a,l,h,f,e[d+4],20,-405537848),f=g(f,a,l,h,e[d+9],5,568446438),h=g(h,f,a,l,e[d+14],9,-1019803690),l=g(l,h,f,a,e[d+3],14,-187363961),a=g(a,l,h,f,e[d+8],20,1163531501),f=g(f,a,l,h,e[d+13],5,-1444681467),h=g(h,f,a,l,e[d+2],9,-51403784),l=g(l,h,f,a,e[d+7],14,1735328473),f=m(f,a=g(a,l,h,f,e[d+12],20,-1926607734),l,h,e[d+5],4,-378558),h=m(h,f,a,l,e[d+8],11,-2022574463),l=m(l,h,f,a,e[d+11],16,1839030562),a=m(a,l,h,f,e[d+14],23,-35309556),f=m(f,a,l,h,e[d+1],4,-1530992060),h=m(h,f,a,l,e[d+4],11,1272893353),l=m(l,h,f,a,e[d+7],16,-155497632),a=m(a,l,h,f,e[d+10],23,-1094730640),f=m(f,a,l,h,e[d+13],4,681279174),h=m(h,f,a,l,e[d+0],11,-358537222),l=m(l,h,f,a,e[d+3],16,-722521979),a=m(a,l,h,f,e[d+6],23,76029189),f=m(f,a,l,h,e[d+9],4,-640364487),h=m(h,f,a,l,e[d+12],11,-421815835),l=m(l,h,f,a,e[d+15],16,530742520),f=v(f,a=m(a,l,h,f,e[d+2],23,-995338651),l,h,e[d+0],6,-198630844),h=v(h,f,a,l,e[d+7],10,1126891415),l=v(l,h,f,a,e[d+14],15,-1416354905),a=v(a,l,h,f,e[d+5],21,-57434055),f=v(f,a,l,h,e[d+12],6,1700485571),h=v(h,f,a,l,e[d+3],10,-1894986606),l=v(l,h,f,a,e[d+10],15,-1051523),a=v(a,l,h,f,e[d+1],21,-2054922799),f=v(f,a,l,h,e[d+8],6,1873313359),h=v(h,f,a,l,e[d+15],10,-30611744),l=v(l,h,f,a,e[d+6],15,-1560198380),a=v(a,l,h,f,e[d+13],21,1309151649),f=v(f,a,l,h,e[d+4],6,-145523070),h=v(h,f,a,l,e[d+11],10,-1120210379),l=v(l,h,f,a,e[d+2],15,718787259),a=v(a,l,h,f,e[d+9],21,-343485551),f=f+w>>>0,a=a+y>>>0,l=l+N>>>0,h=h+x>>>0}return t.endian([f,a,l,h])})._ff=function(n,r,e,t,i,o,s){var u=n+(r&e|~r&t)+(i>>>0)+s;return(u<<o|u>>>32-o)+r},u._gg=function(n,r,e,t,i,o,s){var u=n+(r&t|e&~t)+(i>>>0)+s;return(u<<o|u>>>32-o)+r},u._hh=function(n,r,e,t,i,o,s){var u=n+(r^e^t)+(i>>>0)+s;return(u<<o|u>>>32-o)+r},u._ii=function(n,r,e,t,i,o,s){var u=n+(e^(r|~t))+(i>>>0)+s;return(u<<o|u>>>32-o)+r},u._blocksize=16,u._digestsize=16,n.exports=function(n,r){if(null==n)throw new Error("Illegal argument "+n);var e=t.wordsToBytes(u(n,r));return r&&r.asBytes?e:r&&r.asString?s.bytesToString(e):t.bytesToHex(e)}},872:(n,r,e)=>{var t=e(353);n.exports=function(n){return!!+t(n).mod(2)}},986:(n,r,e)=>{var t=e(353),i=e(820),o=e(661),s=p([[32,126]]),u=p([[32,126],[160,255]]),c=p([[48,57]]),f=p([[97,122]]),a=p([[65,90]]),l=p([[192,214],[216,222]]),h=p([[223,246],[248,255]]),d=p([f,a,c]);function p(n){n=function(n){for(var r,e=[],t=-1,i=(n=[].concat(n)).length;++t<i;)(r=n[t]).__fictional_char?e.push.apply(e,r.__fictional_char.ranges):e.push(r);return e}(n);var r=i(n,256);return e.__fictional_char={ranges:n},e;function e(n){return o(r(t(n)))}}d.inRanges=p,d.alphanumeric=p([d]),d.ascii=s,d.latin1=u,d.unicode=p([s,u]),d.digit=c,d.lower=d.asciiLower=f,d.upper=d.asciiUpper=a,d.latin1Lower=l,d.latin1Upper=h,d.letter=d.asciiLetter=p([f,a]),d.latin1Letter=p([l,h]),d.alphanumeric=p([f,a,c]),d.unicodeLower=p([f,l]),d.unicodeUpper=p([a,h]),n.exports=d},45:(n,r,e)=>{var t=e(353),i=e(636),o=e(83),s=e(673);function u(n,r){var e=t(n),o=i((r=r||0).minYear,1980),u=i(r.maxYear,2019),c=s(e,o,u),f=s(e,0,11),a=s(e,1,28),l=s(e,0,23),h=s(e,0,59),d=s(e,0,1e3);return new Date(Date.UTC(c,f,a,l,h,d)).toISOString()}u.options=function(n){var r=this;return e.options=u.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=u},382:(n,r,e)=>{var t=e(353),i=e(83),o=e(673),s=e(291),u=e(636),c=e(776);function f(n,r){var e=u((r=r||0).min,0),i=u(r.max,Number.MAX_SAFE_INTEGER),f=t(t(n)),a=s(t(f),2,5),l=c.pow(10,a),h=s(f,e,i).div(l);return o(h,e,i)}f.options=function(n){var r=this;return e.options=f.options,e;function e(e,t){return r(e,i(n,t))}},n.exports=f},353:(n,r,e)=>{var t=e(568),i=e(35),o=e(776);function s(n){return o("0X"+t(i(n)+s.salt))}s.salt="chino",s.hash2=function(n,r){return s(s(n)+s(r))},s.hash3=function(n,r,e){return s(s(n)+s(r)+s(e))},n.exports=s},121:(n,r,e)=>{var t=e(353),i=e(673),o=e(83),s=e(636);function u(n,r){var e=s((r=r||0).min,0),o=s(r.max,Number.MAX_SAFE_INTEGER),u=t(n);return i(u,e,o)}u.options=function(n){var r=this;return e.options=u.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=u},938:(n,r,e)=>{var t=e(812),i=e(657);function o(n,r,e){var o=i(t(n,e));return"function"==typeof r?r(o):o.join(r)}n.exports=function(n,r,e){return null!=r&&null==e?(t=n,i=r,function(n){return o(n,t,i)}):o(n,r,e);var t,i}},674:(n,r,e)=>{var t=e(353).hash2,i=e(66);n.exports=function n(r,e,o){return null!=e?(s=e,u=o,c=t(r,"oneOf"),i(c,s[c.mod(s.length)],u)):function(r){return function(e,t){return n(e,r,t)}}(r);var s,u,c}},143:(n,r,e)=>{var t=e(353).hash2,i=e(761),o=e(66),s=1e-4;function u(n){if(n.__parsed)return n;var r=n.length,e=function(n){for(var r,e=-1,t=n.length,i=[];++e<t;)"number"==typeof(r=n[e][0])&&i.push(r);return i}(n),t=e.reduce(c,0),i=e.length;if(!r)throw new Error("Empty samples given to oneOfWeighted");if(t>1+s)throw new Error("Assigned probabilities add up more than 1: "+JSON.stringify(e));if(r===i&&t<1-s)throw new Error("All items were assigned probabilities, yet the probabilities add up to less than 1: "+JSON.stringify(e));return function(n,r){for(var e,t,i=[],o=-1,s=n.length;++o<s;)"number"!=typeof(t=(e=n[o])[0])&&(t=r),i.push([t,e[1]]);return i.__parsed=!0,i}(n,(1-t)/(r-i))}function c(n,r){return n+r}n.exports=function n(r,e){return null!=e?function(n,r){r=u(r);for(var e,s,c=t(n,"oneOfWeighted"),f=r.length,a=1,l=-1;++l<f;)if(a-=s=(e=r[l])[0]/a,i(c,s))return o(c,e[1]);throw new Error("Unexpectedly reached end of oneOfWeighted() unresolved. If you see this please file a bug.")}(r,e):(s=u(s=r),function(r){return n(r,s)});var s}},7:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(83),s=e(673),u=e(636),c=e(967);function f(n,r){var e=u((r=r||0).minSentences,3),o=u(r.maxSentences,7),f=i(n,"paragraph"),a=s(f,e,o),l=0;f=t(f);for(var h=c(f,r);++l<a;)f=t(f),h+=" "+c(f,r);return h}f.options=function(n){var r=this;return e.options=f.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=f},967:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(83),s=e(673),u=e(636),c=e(331);function f(n,r){var e=u((r=r||0).minWords,5),f=u(r.maxWords,8),a=u(r.minClauses,1),l=u(r.maxClauses,2),h=u(r.unicode,.382),d=i(n,"sentence"),p=s(d,a,l),g=0;d=t(d);for(var m=o(r,{capitalize:"first",min:e,max:f,unicode:h}),v=o(m,{capitalize:!1}),w=c(d,m);++g<p;)d=t(d),w+=", "+c(d,v);return w+"."}f.options=function(n){var r=this;return e.options=f.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=f},491:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(66),s=Object.prototype.hasOwnProperty;function u(n,r){var e=t(n),u={};for(var c in r)s.call(r,c)&&(u[c]=o(i(e,c),r[c]));return u}n.exports=function(n,r){return null!=r?u(n,r):(e=n,function(n){return u(n,e)});var e}},168:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(673),s=e(66);n.exports=function n(r,e,u){return null!=e&&null!=u?function(n,r,e){for(var u,c,f,a=i(n,"someOf"),l="number"==typeof r?r:o(a,r[0],r[1]),h=-1,d=[],p=e.slice();++h<l&&(u=p.length);)f=p[c=+(a=t(a)).mod(u)],p.splice(c,1),d.push(s(a,f));return d}(r,e,u):(c=r,f=e,function(r){return n(r,c,f)});var c,f}},554:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(673);function s(n,r,e){var s=i(n,"times"),u="number"==typeof r?r:o(s,r[0],r[1]),c=-1,f=[];if("function"==typeof e)for(;++c<u;)s=t(s),f.push(e(s));else for(;++c<u;)f.push(e);return f}n.exports=function(n,r,e){return null!=r&&null!=e?s(n,r,e):(t=n,i=r,function(n){return s(n,t,i)});var t,i}},812:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(66);function s(n,r){for(var e=i(n,"tuple"),s=r.length,u=-1,c=[];++u<s;)e=t(e),c.push(o(e,r[u]));return c}n.exports=function(n,r){return null!=r?s(n,r):(e=n,function(n){return s(n,e)});var e}},83:n=>{var r=Object.prototype.hasOwnProperty;n.exports=function(n,e){var t,i={};if(n)for(t in n)r.call(n,t)&&(i[t]=n[t]);if(e)for(t in e)r.call(e,t)&&(i[t]=e[t]);return i}},291:(n,r,e)=>{var t=e(776);n.exports=function(n,r,e){return n=t(n),r=t(r||0),null==e?n.gt(r)?n:n.add(r):(e=t.max(e,r),r.eq(e)?r:r.lte(n)&&n.lte(e)?n:(0!==n.dp()&&(e=e.minus(1)),n.mod(e.add(1).minus(r)).add(r)))}},636:n=>{n.exports=function(n,r){return null==n?r:n}},570:n=>{n.exports=function(n,r){for(var e=[],t=n-1,i=r+1;++t<i;)e.push(t);return e}},673:(n,r,e)=>{const t=e(291);n.exports=function(n,r,e){return+t(n,r,e)}},820:(n,r,e)=>{var t=e(570),i=e(776);function o(n,r){var e=n[0]-r[0];return 0===e?n[1]-r[0]:e}function s(n){for(var r,e=-1,i=n.length,o=[];++e<i;)r=n[e],o.push.apply(o,t(r.min,r.max));return o}n.exports=function(n,r){if(!n.length)throw new Error("Empty range set given to fitRanges()");var e=function(n,r){for(var e,t,i,o=[],u=n.length,c=0,f=n[0],a=f[0],l=f[1],h=0,d=0;++c<u;)t=(f=n[c])[0],i=f[1],t>l+1&&(e=h+(l-a),o.push({modMin:h,modMax:e,min:a,max:l,offset:a-h}),h=e+1,d+=l+1-a,a=t),l=Math.max(l,i);return o.push({modMin:h,modMax:h+(l-a),min:a,max:l,offset:a-h}),{ranges:n,segments:o,size:d+=l+1-a,values:d<=r?s(o):null}}(n.slice().sort(o),r),t=e.values,u=e.segments,c=e.size,f=t?function(n){var r=n.length;return function(e){return n[e.mod(r)]}}(t):function(n,r){return function(e){for(var t,o,s,u=+i(e).mod(r),c=0,f=n.length-1;c<=f;)if(t=Math.floor((c+f)/2),s=(o=n[t]).modMin,u>o.modMax)c=t+1;else{if(!(u<s))return u+o.offset;f=t-1}throw new Error("Unexpectedly reached end of fitRanges()")}}(u,c);return f.meta=e,f}},657:n=>{var r=Array.isArray;n.exports=function n(e){for(var t,i=[],o=e.length,s=-1;++s<o;)t=e[s],r(t)?i.push.apply(i,n(t)):i.push(t);return i}},761:(n,r,e)=>{var t=e(776);n.exports=function(n,r){return!(r=t(r="boolean"==typeof r?+r:r)).eq(0)&&(!!r.eq(1)||t(n).mod(t(1).div(r)).lt(1))}},661:n=>{var r=String.fromCharCode;n.exports=String.fromCodePoint||function(){for(var n=[],e=0,t="",i=0,o=arguments.length;i!==o;++i){var s=+arguments[i];if(!(s<1114111&&s>>>0===s))throw RangeError("Invalid code point: "+s);s<=65535?e=n.push(s):(s-=65536,e=n.push(55296+(s>>10),s%1024+56320)),e>=16383&&(t+=r.apply(null,n),n.length=0)}return t+r.apply(null,n)}},66:(n,r,e)=>{var t=e(353);n.exports=function(n,r,e){return"function"==typeof r?r(t(n),e):r}},953:(n,r,e)=>{var t=e(353),i={a:["å","ǻ","ḁ","ẚ","ă","ặ","ắ","ằ","ẳ","ẵ","ȃ","â","ậ","ấ","ầ","ẫ","ẩ","ả","ǎ","ȧ","ǡ","ạ","ä","ǟ","à","ȁ","á","ā","ā̀","ã","ą","ą́","ą̃","æ"],b:["ƀ","ḃ","ḅ","ḇ","ɓ"],c:["ć","ĉ","č","ċ","ḉ","ƈ","c̈","ȼ","ç"],d:["đ","ɗ","ḋ","ḍ","ḑ","ḓ","ď","ḏ"],e:["ĕ","ḝ","ȇ","ê","ê̄","ê̌","ề","ế","ể","ễ","ệ","ẻ","ḙ","ě","ė","ė́","ė̃","ẹ","ë","è","è̩","ȅ","é","é̩","ē","ḕ","ḗ","ẽ","ḛ","ę","ę́","ę̃"],f:["ƒ","ḟ"],g:["ǵ","ǥ","ĝ","ǧ","ğ","ģ","ɠ","ġ","ḡ"],h:["ĥ","ȟ","ħ","ḩ","ẖ","ḥ","ḣ","ḧ","ḫ"],i:["ị","ĭ","î","ǐ","ɨ","ï","ḯ","í","ì","ȉ","į","į̃","ī","ī̀","ỉ","ȋ","ĩ"],j:["ĵ","j̇̃"],k:["ƙ","ꝁ","ḱ","ǩ","ḳ","ķ","ᶄ","ḵ"],l:["ĺ","ł","ľ","ḹ","l̃","ļ","ŀ","ḷ","ḻ","ḽ","ƚ"],m:["ḿ","ṁ","ṃ","m̃"],n:["ń","ñ","ň","ǹ","ṅ","ṇ","ņ","ṉ","ṋ"],o:["ø","ǿ","ö","ȫ","ó","ò","ô","ố","ồ","ổ","ỗ","ộ","ǒ","ő","ŏ","ȏ","ȯ","ȱ","ọ","ɵ","ơ","ớ","ờ","ỡ","ợ","ở","ỏ","ō","ṓ","ṑ","õ","ȭ","ṍ","ṏ","ǫ","ȍ","o̩","ó̩"],p:["ṕ","ṗ","ᵽ","ƥ","ᶈ"],q:["ʠ","q̃"],r:["ŕ","ɍ","ř","ŗ","ṙ","ȑ","ȓ","ṛ","ṝ","ṟ","ꞧ","ɽ","r̃"],s:["ś","ṡ","ṩ","ṥ","ṣ","s̩","ꞩ","ŝ","ṧ","š","ş","ș","s̈"],t:["ť","ṫ","ẗ","ţ","ṭ","ʈ","ț","ƫ","ṱ","ṯ","ŧ"],u:["ŭ","ʉ","ụ","ü","ǜ","ǘ","ǚ","ǖ","ṳ","ú","ù","û","ṷ","ǔ","ȗ","ű","ŭ","ư","ứ","ừ","ử","ự","ữ","ủ","ū","ū̀","ū́","ṻ","ū̃","ũ","ṹ","ṵ","ų","ų́","ų̃","ȕ","Ů"],v:["ṽ","ṿ","ʋ"],w:["ẃ","ẁ","ŵ","ẅ","ẇ","ẉ","ẘ"],x:["ẍ","ẋ","ᶍ"],y:["ý","ỳ","ŷ","ÿ","ỹ","ẏ","ỵ","ẙ","ỷ","ȳ","ƴ"],z:["ź","ẑ","ž","ż","ẓ","ẕ","ƶ","ᶎ"]};n.exports=function(n,r){var e=r.length,o=+n.mod(e);n=t(n);var s=1===e?r:r[o],u=s.toLowerCase(),c=i[u];if(!c)return r;var f=c[+n.mod(c.length)];return s=s===u?f:f.toUpperCase(),1===e?s:r.slice(0,o)+s+r.slice(o+1)}},194:(n,r,e)=>{var t=e(353),i=t.hash2,o=e(83),s=e(673),u=e(761),c=e(953),f=e(636),a=["a","ka","ki","ke","ko","ta","chi","shi","so","na","ni","no","ra","ha","hy","ma","mi","mu","me","mo","yu","yo","kai","va","vi","kin","rae","cea"],l=a.length;function h(n,r){for(var e,o,h=f((r=r||0).capitalize,!0),p=f(r.minSyllables,2),g=f(r.maxSyllables,4),m=f(r.unicode,!0),v=i(n,"word"),w=s(v,p,g),y="",N="",x=-1;++x<w;){e=N;do{v=t(v),N=a[+v.mod(l)]}while(!d(e,N));y+=N}return u(v,m)&&(y=c(v,y)),h&&(y=(o=y)[0].toUpperCase()+o.slice(1)),y}function d(n,r){var e=n[n.length-1];return n!==r&&e!==r[0]&&e!==r[1]}h.options=function(n){var r=this;return e.options=h.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=h},331:(n,r,e)=>{var t=e(353),i=t.hash3,o=e(83),s=e(673),u=e(636),c=e(194);function f(n,r){var e=u((r=r||0).minSyllables,1),f=u(r.capitalize,"first"),a=!0===f||"all"===f,l=a||"first"===f,h=u(r.min,2),d=u(r.max,3),p=t(n),g=s(p,h,d),m=0;p=i(p,"words",m);for(var v,w=o(r,{minSyllables:e,capitalize:l}),y=o(r,{minSyllables:e,capitalize:a}),N=c(p,w),x=N;++m<g;){v=x;do{p=i(p,"words",m),x=c(p,y)}while(x.length===v.length);N+=" "+x}return N}f.options=function(n){var r=this;return e.options=f.options,e;function e(e,t){return r(e,o(n,t))}},n.exports=f}},r={};function e(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return n[t].call(o.exports,o,o.exports,e),o.exports}var t={};return(()=>{var n=t;n.hash=e(353),n.oneOf=e(674),n.someOf=e(168),n.tuple=e(812),n.shape=e(491),n.times=e(554),n.join=e(938),n.oneOfWeighted=e(143),n.int=e(121),n.float=e(382),n.char=e(986),n.word=e(194),n.words=e(331),n.sentence=e(967),n.paragraph=e(7),n.bool=e(872),n.dateString=e(45)})(),t})()));
//# sourceMappingURL=fictional.js.map
{
"name": "fictional",
"description": "Generate fake data deterministically from a given input",
"version": "0.7.6",
"version": "0.7.7",
"type": "commonjs",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -22,3 +22,3 @@ var hash = require('./hash')

id = hash(id)
chosenIndex = id % remainingLen
chosenIndex = +id.mod(remainingLen)
chosen = remaining[chosenIndex]

@@ -25,0 +25,0 @@ remaining.splice(chosenIndex, 1)

@@ -197,3 +197,3 @@ var hash = require('../hash')

var wordLen = word.length
var i = id % wordLen
var i = +id.mod(wordLen)

@@ -211,5 +211,5 @@ id = hash(id)

var variant = variants[id % variants.length]
var variant = variants[+id.mod(variants.length)]
letter = letter === lower ? variant : variant.toUpperCase()
return wordLen === 1 ? letter : word.slice(0, i) + letter + word.slice(i + 1)
}

@@ -66,3 +66,3 @@ var hash = require('./hash')

id = hash(id)
next = SYLLABLES[id % SYLLABLES_LEN]
next = SYLLABLES[+id.mod(SYLLABLES_LEN)]
} while (!syllablesMatch(prev, next))

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

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