@everymatrix/player-elevate-points-history 1.86.1 → 1.86.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bonus-pagination-limits_6.cjs.entry.js +146 -105
- package/dist/cjs/{locale.utils-6b4c0dbd.js → locale.utils-457021be.js} +21 -15
- package/dist/cjs/{player-elevate-card-items-77bde478.js → player-elevate-card-items-51776c27.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +2 -2
- package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +2 -2
- package/dist/cjs/player-rakeback-card.cjs.entry.js +1 -1
- package/dist/collection/utils/translation.js +59 -1
- package/dist/esm/bonus-pagination-limits_6.entry.js +146 -105
- package/dist/esm/{locale.utils-34e6f004.js → locale.utils-471ae737.js} +21 -15
- package/dist/esm/{player-elevate-card-items-ee73669e.js → player-elevate-card-items-38110d9c.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +2 -2
- package/dist/esm/player-elevate-loyaltycard.entry.js +2 -2
- package/dist/esm/player-rakeback-card.entry.js +1 -1
- package/dist/player-elevate-points-history/bonus-pagination-limits_6.entry.js +4 -4
- package/dist/player-elevate-points-history/{locale.utils-34e6f004.js → locale.utils-471ae737.js} +1 -1
- package/dist/player-elevate-points-history/{player-elevate-card-items-ee73669e.js → player-elevate-card-items-38110d9c.js} +1 -1
- package/dist/player-elevate-points-history/player-elevate-card.entry.js +1 -1
- package/dist/player-elevate-points-history/player-elevate-loyaltycard.entry.js +1 -1
- package/dist/player-elevate-points-history/player-rakeback-card.entry.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +2 -0
- package/dist/types/utils/translation.d.ts +59 -1
- package/package.json +1 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/storybook/main.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/storybook/preview.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8f337cb6.js');
|
|
6
|
-
const locale_utils = require('./locale.utils-
|
|
7
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
6
|
+
const locale_utils = require('./locale.utils-457021be.js');
|
|
7
|
+
const playerElevateCardItems = require('./player-elevate-card-items-51776c27.js');
|
|
8
8
|
|
|
9
9
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
10
10
|
const SUPPORTED_LANGUAGES$1 = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
|
|
@@ -1037,7 +1037,65 @@ const translation = {
|
|
|
1037
1037
|
"physicalItem": "Custom Reward Redeem",
|
|
1038
1038
|
"role": "Role Assignment Redeem"
|
|
1039
1039
|
},
|
|
1040
|
-
"tr": {
|
|
1040
|
+
"tr": {
|
|
1041
|
+
"tabTitle": {
|
|
1042
|
+
"spendable": "Coin",
|
|
1043
|
+
"loyalty": "XP",
|
|
1044
|
+
"history": "Mağaza Alımları",
|
|
1045
|
+
"rakeback": "Rakeback"
|
|
1046
|
+
},
|
|
1047
|
+
"barTitle": {
|
|
1048
|
+
"spendable": "Coin Geçmişi",
|
|
1049
|
+
"loyalty": "Deneyim Puanı Geçmişi",
|
|
1050
|
+
"history": "Mağaza Alımları",
|
|
1051
|
+
"rakeback": "Rakeback Geçmişi"
|
|
1052
|
+
},
|
|
1053
|
+
"bonus": "Bonus",
|
|
1054
|
+
"coins": "Coin",
|
|
1055
|
+
"noContent": "İçerik Yok",
|
|
1056
|
+
"loading": "Yükleniyor",
|
|
1057
|
+
"redeem": "Kullan",
|
|
1058
|
+
"reload": "Yenile",
|
|
1059
|
+
"reloadMsgWhenError": "Ağ Sorunu, lütfen ",
|
|
1060
|
+
"rakebackPointType": {
|
|
1061
|
+
"wageringByRealMoney": "Rakeback Casino Gerçek Bahis",
|
|
1062
|
+
"bonus": "Rakeback Talebi",
|
|
1063
|
+
"vendor2User": "Rakeback Talebi",
|
|
1064
|
+
"cancelledWageringByRealMoney": "İptal Edilen Rakeback Casino Gerçek Bahis"
|
|
1065
|
+
},
|
|
1066
|
+
"pointType": {
|
|
1067
|
+
"registration": "Kayıt",
|
|
1068
|
+
"cancelledRegistration": "İptal Edilen Kayıt",
|
|
1069
|
+
"expiredRegistration": "Süresi Dolan Kayıt",
|
|
1070
|
+
"manual": "Manuel",
|
|
1071
|
+
"cancelledManual": "İptal Edilen Manuel",
|
|
1072
|
+
"expiredManual": "Süresi Dolan Manuel",
|
|
1073
|
+
"wageringByRealMoney": "Gerçek Para Bahsi",
|
|
1074
|
+
"wageringByBonusMoney": "Bonus Para Bahsi",
|
|
1075
|
+
"cancelledWageringByRealMoney": "İptal Edilen Gerçek Para Bahsi",
|
|
1076
|
+
"cancelledWageringByBonusMoney": "İptal Edilen Bonus Para Bahsi",
|
|
1077
|
+
"expiredWageringByRealMoney": "Süresi Dolan Gerçek Para Bahsi",
|
|
1078
|
+
"expiredWageringByBonusMoney": "Süresi Dolan Bonus Para Bahsi",
|
|
1079
|
+
"levelExpired": "Seviye Süresi Doldu",
|
|
1080
|
+
"bonus": "Bonus Kullanımı",
|
|
1081
|
+
"manualByTournament": "Turnuvadan Ödül",
|
|
1082
|
+
"manualByPrizeEngine": "PrizeEngine'den Ödül",
|
|
1083
|
+
"manualByMission": "Görevden Ödül",
|
|
1084
|
+
"manualByChallenge": "Meydan Okumadan Ödül",
|
|
1085
|
+
"cancelledManualByTournament": "İptal Edilen Turnuva Ödülü",
|
|
1086
|
+
"cancelledManualByMission": "İptal Edilen Görev Ödülü",
|
|
1087
|
+
"cancelledManualByChallenge": "İptal Edilen Meydan Okuma Ödülü",
|
|
1088
|
+
"expiredManualByTournament": "Süresi Dolan Turnuva Ödülü",
|
|
1089
|
+
"expiredManualByMission": "Süresi Dolan Görev Ödülü",
|
|
1090
|
+
"expiredManualByChallenge": "Süresi Dolan Meydan Okuma Ödülü",
|
|
1091
|
+
"cancelledManualByPrizeEngine": "İptal Edilen PrizeEngine Ödülü",
|
|
1092
|
+
"expiredManualByPrizeEngine": "Süresi Dolan PrizeEngine Ödülü",
|
|
1093
|
+
"prizeEngine": "PrizeEngine Kullanımı",
|
|
1094
|
+
"tournamentTicket": "Turnuva Bileti Kullanımı",
|
|
1095
|
+
"physicalItem": "Özel Ödül Kullanımı",
|
|
1096
|
+
"role": "Rol Ataması Kullanımı"
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1041
1099
|
}
|
|
1042
1100
|
};
|
|
1043
1101
|
|
|
@@ -1180,10 +1238,10 @@ var decimal = {exports: {}};
|
|
|
1180
1238
|
|
|
1181
1239
|
|
|
1182
1240
|
/*!
|
|
1183
|
-
* decimal.js v10.
|
|
1241
|
+
* decimal.js v10.4.3
|
|
1184
1242
|
* An arbitrary-precision Decimal type for JavaScript.
|
|
1185
1243
|
* https://github.com/MikeMcl/decimal.js
|
|
1186
|
-
* Copyright (c)
|
|
1244
|
+
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
1187
1245
|
* MIT Licence
|
|
1188
1246
|
*/
|
|
1189
1247
|
|
|
@@ -1395,8 +1453,8 @@ var decimal = {exports: {}};
|
|
|
1395
1453
|
* Return a new Decimal whose value is the value of this Decimal clamped to the range
|
|
1396
1454
|
* delineated by `min` and `max`.
|
|
1397
1455
|
*
|
|
1398
|
-
* min {number|string|
|
|
1399
|
-
* max {number|string|
|
|
1456
|
+
* min {number|string|Decimal}
|
|
1457
|
+
* max {number|string|Decimal}
|
|
1400
1458
|
*
|
|
1401
1459
|
*/
|
|
1402
1460
|
P.clampedTo = P.clamp = function (min, max) {
|
|
@@ -1900,7 +1958,8 @@ var decimal = {exports: {}};
|
|
|
1900
1958
|
*
|
|
1901
1959
|
*/
|
|
1902
1960
|
P.inverseCosine = P.acos = function () {
|
|
1903
|
-
var
|
|
1961
|
+
var halfPi,
|
|
1962
|
+
x = this,
|
|
1904
1963
|
Ctor = x.constructor,
|
|
1905
1964
|
k = x.abs().cmp(1),
|
|
1906
1965
|
pr = Ctor.precision,
|
|
@@ -1921,13 +1980,13 @@ var decimal = {exports: {}};
|
|
|
1921
1980
|
Ctor.precision = pr + 6;
|
|
1922
1981
|
Ctor.rounding = 1;
|
|
1923
1982
|
|
|
1924
|
-
|
|
1925
|
-
|
|
1983
|
+
x = x.asin();
|
|
1984
|
+
halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
|
|
1926
1985
|
|
|
1927
1986
|
Ctor.precision = pr;
|
|
1928
1987
|
Ctor.rounding = rm;
|
|
1929
1988
|
|
|
1930
|
-
return
|
|
1989
|
+
return halfPi.minus(x);
|
|
1931
1990
|
};
|
|
1932
1991
|
|
|
1933
1992
|
|
|
@@ -2301,7 +2360,7 @@ var decimal = {exports: {}};
|
|
|
2301
2360
|
* log[b](Infinity) = Infinity
|
|
2302
2361
|
* log[b](NaN) = NaN
|
|
2303
2362
|
*
|
|
2304
|
-
* [base] {number|string|
|
|
2363
|
+
* [base] {number|string|Decimal} The base of the logarithm.
|
|
2305
2364
|
*
|
|
2306
2365
|
*/
|
|
2307
2366
|
P.logarithm = P.log = function (base) {
|
|
@@ -2395,11 +2454,11 @@ var decimal = {exports: {}};
|
|
|
2395
2454
|
/*
|
|
2396
2455
|
* Return a new Decimal whose value is the maximum of the arguments and the value of this Decimal.
|
|
2397
2456
|
*
|
|
2398
|
-
* arguments {number|string|
|
|
2457
|
+
* arguments {number|string|Decimal}
|
|
2399
2458
|
*
|
|
2400
2459
|
P.max = function () {
|
|
2401
2460
|
Array.prototype.push.call(arguments, this);
|
|
2402
|
-
return maxOrMin(this.constructor, arguments,
|
|
2461
|
+
return maxOrMin(this.constructor, arguments, 'lt');
|
|
2403
2462
|
};
|
|
2404
2463
|
*/
|
|
2405
2464
|
|
|
@@ -2407,11 +2466,11 @@ var decimal = {exports: {}};
|
|
|
2407
2466
|
/*
|
|
2408
2467
|
* Return a new Decimal whose value is the minimum of the arguments and the value of this Decimal.
|
|
2409
2468
|
*
|
|
2410
|
-
* arguments {number|string|
|
|
2469
|
+
* arguments {number|string|Decimal}
|
|
2411
2470
|
*
|
|
2412
2471
|
P.min = function () {
|
|
2413
2472
|
Array.prototype.push.call(arguments, this);
|
|
2414
|
-
return maxOrMin(this.constructor, arguments,
|
|
2473
|
+
return maxOrMin(this.constructor, arguments, 'gt');
|
|
2415
2474
|
};
|
|
2416
2475
|
*/
|
|
2417
2476
|
|
|
@@ -3230,7 +3289,7 @@ var decimal = {exports: {}};
|
|
|
3230
3289
|
* denominator. If a maximum denominator is not specified, the denominator will be the lowest
|
|
3231
3290
|
* value necessary to represent the number exactly.
|
|
3232
3291
|
*
|
|
3233
|
-
* [maxD] {number|string|
|
|
3292
|
+
* [maxD] {number|string|Decimal} Maximum denominator. Integer >= 1 and < Infinity.
|
|
3234
3293
|
*
|
|
3235
3294
|
*/
|
|
3236
3295
|
P.toFraction = function (maxD) {
|
|
@@ -3318,7 +3377,7 @@ var decimal = {exports: {}};
|
|
|
3318
3377
|
*
|
|
3319
3378
|
* The return value is not affected by the value of `precision`.
|
|
3320
3379
|
*
|
|
3321
|
-
* y {number|string|
|
|
3380
|
+
* y {number|string|Decimal} The magnitude to round to a multiple of.
|
|
3322
3381
|
* [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
|
|
3323
3382
|
*
|
|
3324
3383
|
* 'toNearest() rounding mode not an integer: {rm}'
|
|
@@ -3438,7 +3497,7 @@ var decimal = {exports: {}};
|
|
|
3438
3497
|
*
|
|
3439
3498
|
* If a result is incorrectly rounded the maximum error will be 1 ulp (unit in last place).
|
|
3440
3499
|
*
|
|
3441
|
-
* y {number|string|
|
|
3500
|
+
* y {number|string|Decimal} The power to which to raise this Decimal.
|
|
3442
3501
|
*
|
|
3443
3502
|
*/
|
|
3444
3503
|
P.toPower = P.pow = function (y) {
|
|
@@ -4422,25 +4481,19 @@ var decimal = {exports: {}};
|
|
|
4422
4481
|
|
|
4423
4482
|
|
|
4424
4483
|
/*
|
|
4425
|
-
* Handle `max`
|
|
4484
|
+
* Handle `max` and `min`. `ltgt` is 'lt' or 'gt'.
|
|
4426
4485
|
*/
|
|
4427
|
-
function maxOrMin(Ctor, args,
|
|
4428
|
-
var
|
|
4486
|
+
function maxOrMin(Ctor, args, ltgt) {
|
|
4487
|
+
var y,
|
|
4429
4488
|
x = new Ctor(args[0]),
|
|
4430
4489
|
i = 0;
|
|
4431
4490
|
|
|
4432
4491
|
for (; ++i < args.length;) {
|
|
4433
4492
|
y = new Ctor(args[i]);
|
|
4434
|
-
|
|
4435
|
-
// NaN?
|
|
4436
4493
|
if (!y.s) {
|
|
4437
4494
|
x = y;
|
|
4438
4495
|
break;
|
|
4439
|
-
}
|
|
4440
|
-
|
|
4441
|
-
k = x.cmp(y);
|
|
4442
|
-
|
|
4443
|
-
if (k === n || k === 0 && x.s === n) {
|
|
4496
|
+
} else if (x[ltgt](y)) {
|
|
4444
4497
|
x = y;
|
|
4445
4498
|
}
|
|
4446
4499
|
}
|
|
@@ -4699,8 +4752,6 @@ var decimal = {exports: {}};
|
|
|
4699
4752
|
function parseDecimal(x, str) {
|
|
4700
4753
|
var e, i, len;
|
|
4701
4754
|
|
|
4702
|
-
// TODO BigInt str: no need to check for decimal point, exponential form or leading zeros.
|
|
4703
|
-
|
|
4704
4755
|
// Decimal point?
|
|
4705
4756
|
if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');
|
|
4706
4757
|
|
|
@@ -5166,7 +5217,7 @@ var decimal = {exports: {}};
|
|
|
5166
5217
|
/*
|
|
5167
5218
|
* Return a new Decimal whose value is the absolute value of `x`.
|
|
5168
5219
|
*
|
|
5169
|
-
* x {number|string|
|
|
5220
|
+
* x {number|string|Decimal}
|
|
5170
5221
|
*
|
|
5171
5222
|
*/
|
|
5172
5223
|
function abs(x) {
|
|
@@ -5177,7 +5228,7 @@ var decimal = {exports: {}};
|
|
|
5177
5228
|
/*
|
|
5178
5229
|
* Return a new Decimal whose value is the arccosine in radians of `x`.
|
|
5179
5230
|
*
|
|
5180
|
-
* x {number|string|
|
|
5231
|
+
* x {number|string|Decimal}
|
|
5181
5232
|
*
|
|
5182
5233
|
*/
|
|
5183
5234
|
function acos(x) {
|
|
@@ -5189,7 +5240,7 @@ var decimal = {exports: {}};
|
|
|
5189
5240
|
* Return a new Decimal whose value is the inverse of the hyperbolic cosine of `x`, rounded to
|
|
5190
5241
|
* `precision` significant digits using rounding mode `rounding`.
|
|
5191
5242
|
*
|
|
5192
|
-
* x {number|string|
|
|
5243
|
+
* x {number|string|Decimal} A value in radians.
|
|
5193
5244
|
*
|
|
5194
5245
|
*/
|
|
5195
5246
|
function acosh(x) {
|
|
@@ -5201,8 +5252,8 @@ var decimal = {exports: {}};
|
|
|
5201
5252
|
* Return a new Decimal whose value is the sum of `x` and `y`, rounded to `precision` significant
|
|
5202
5253
|
* digits using rounding mode `rounding`.
|
|
5203
5254
|
*
|
|
5204
|
-
* x {number|string|
|
|
5205
|
-
* y {number|string|
|
|
5255
|
+
* x {number|string|Decimal}
|
|
5256
|
+
* y {number|string|Decimal}
|
|
5206
5257
|
*
|
|
5207
5258
|
*/
|
|
5208
5259
|
function add(x, y) {
|
|
@@ -5214,7 +5265,7 @@ var decimal = {exports: {}};
|
|
|
5214
5265
|
* Return a new Decimal whose value is the arcsine in radians of `x`, rounded to `precision`
|
|
5215
5266
|
* significant digits using rounding mode `rounding`.
|
|
5216
5267
|
*
|
|
5217
|
-
* x {number|string|
|
|
5268
|
+
* x {number|string|Decimal}
|
|
5218
5269
|
*
|
|
5219
5270
|
*/
|
|
5220
5271
|
function asin(x) {
|
|
@@ -5226,7 +5277,7 @@ var decimal = {exports: {}};
|
|
|
5226
5277
|
* Return a new Decimal whose value is the inverse of the hyperbolic sine of `x`, rounded to
|
|
5227
5278
|
* `precision` significant digits using rounding mode `rounding`.
|
|
5228
5279
|
*
|
|
5229
|
-
* x {number|string|
|
|
5280
|
+
* x {number|string|Decimal} A value in radians.
|
|
5230
5281
|
*
|
|
5231
5282
|
*/
|
|
5232
5283
|
function asinh(x) {
|
|
@@ -5238,7 +5289,7 @@ var decimal = {exports: {}};
|
|
|
5238
5289
|
* Return a new Decimal whose value is the arctangent in radians of `x`, rounded to `precision`
|
|
5239
5290
|
* significant digits using rounding mode `rounding`.
|
|
5240
5291
|
*
|
|
5241
|
-
* x {number|string|
|
|
5292
|
+
* x {number|string|Decimal}
|
|
5242
5293
|
*
|
|
5243
5294
|
*/
|
|
5244
5295
|
function atan(x) {
|
|
@@ -5250,7 +5301,7 @@ var decimal = {exports: {}};
|
|
|
5250
5301
|
* Return a new Decimal whose value is the inverse of the hyperbolic tangent of `x`, rounded to
|
|
5251
5302
|
* `precision` significant digits using rounding mode `rounding`.
|
|
5252
5303
|
*
|
|
5253
|
-
* x {number|string|
|
|
5304
|
+
* x {number|string|Decimal} A value in radians.
|
|
5254
5305
|
*
|
|
5255
5306
|
*/
|
|
5256
5307
|
function atanh(x) {
|
|
@@ -5265,8 +5316,8 @@ var decimal = {exports: {}};
|
|
|
5265
5316
|
* Domain: [-Infinity, Infinity]
|
|
5266
5317
|
* Range: [-pi, pi]
|
|
5267
5318
|
*
|
|
5268
|
-
* y {number|string|
|
|
5269
|
-
* x {number|string|
|
|
5319
|
+
* y {number|string|Decimal} The y-coordinate.
|
|
5320
|
+
* x {number|string|Decimal} The x-coordinate.
|
|
5270
5321
|
*
|
|
5271
5322
|
* atan2(±0, -0) = ±pi
|
|
5272
5323
|
* atan2(±0, +0) = ±0
|
|
@@ -5331,7 +5382,7 @@ var decimal = {exports: {}};
|
|
|
5331
5382
|
* Return a new Decimal whose value is the cube root of `x`, rounded to `precision` significant
|
|
5332
5383
|
* digits using rounding mode `rounding`.
|
|
5333
5384
|
*
|
|
5334
|
-
* x {number|string|
|
|
5385
|
+
* x {number|string|Decimal}
|
|
5335
5386
|
*
|
|
5336
5387
|
*/
|
|
5337
5388
|
function cbrt(x) {
|
|
@@ -5342,7 +5393,7 @@ var decimal = {exports: {}};
|
|
|
5342
5393
|
/*
|
|
5343
5394
|
* Return a new Decimal whose value is `x` rounded to an integer using `ROUND_CEIL`.
|
|
5344
5395
|
*
|
|
5345
|
-
* x {number|string|
|
|
5396
|
+
* x {number|string|Decimal}
|
|
5346
5397
|
*
|
|
5347
5398
|
*/
|
|
5348
5399
|
function ceil(x) {
|
|
@@ -5353,9 +5404,9 @@ var decimal = {exports: {}};
|
|
|
5353
5404
|
/*
|
|
5354
5405
|
* Return a new Decimal whose value is `x` clamped to the range delineated by `min` and `max`.
|
|
5355
5406
|
*
|
|
5356
|
-
* x {number|string|
|
|
5357
|
-
* min {number|string|
|
|
5358
|
-
* max {number|string|
|
|
5407
|
+
* x {number|string|Decimal}
|
|
5408
|
+
* min {number|string|Decimal}
|
|
5409
|
+
* max {number|string|Decimal}
|
|
5359
5410
|
*
|
|
5360
5411
|
*/
|
|
5361
5412
|
function clamp(x, min, max) {
|
|
@@ -5429,7 +5480,7 @@ var decimal = {exports: {}};
|
|
|
5429
5480
|
* Return a new Decimal whose value is the cosine of `x`, rounded to `precision` significant
|
|
5430
5481
|
* digits using rounding mode `rounding`.
|
|
5431
5482
|
*
|
|
5432
|
-
* x {number|string|
|
|
5483
|
+
* x {number|string|Decimal} A value in radians.
|
|
5433
5484
|
*
|
|
5434
5485
|
*/
|
|
5435
5486
|
function cos(x) {
|
|
@@ -5441,7 +5492,7 @@ var decimal = {exports: {}};
|
|
|
5441
5492
|
* Return a new Decimal whose value is the hyperbolic cosine of `x`, rounded to precision
|
|
5442
5493
|
* significant digits using rounding mode `rounding`.
|
|
5443
5494
|
*
|
|
5444
|
-
* x {number|string|
|
|
5495
|
+
* x {number|string|Decimal} A value in radians.
|
|
5445
5496
|
*
|
|
5446
5497
|
*/
|
|
5447
5498
|
function cosh(x) {
|
|
@@ -5461,7 +5512,7 @@ var decimal = {exports: {}};
|
|
|
5461
5512
|
* The Decimal constructor and exported function.
|
|
5462
5513
|
* Return a new Decimal instance.
|
|
5463
5514
|
*
|
|
5464
|
-
* v {number|string|
|
|
5515
|
+
* v {number|string|Decimal} A numeric value.
|
|
5465
5516
|
*
|
|
5466
5517
|
*/
|
|
5467
5518
|
function Decimal(v) {
|
|
@@ -5475,6 +5526,7 @@ var decimal = {exports: {}};
|
|
|
5475
5526
|
// which points to Object.
|
|
5476
5527
|
x.constructor = Decimal;
|
|
5477
5528
|
|
|
5529
|
+
// Duplicate.
|
|
5478
5530
|
if (isDecimalInstance(v)) {
|
|
5479
5531
|
x.s = v.s;
|
|
5480
5532
|
|
|
@@ -5539,10 +5591,9 @@ var decimal = {exports: {}};
|
|
|
5539
5591
|
}
|
|
5540
5592
|
|
|
5541
5593
|
return;
|
|
5542
|
-
}
|
|
5543
5594
|
|
|
5544
|
-
// Infinity
|
|
5545
|
-
if (v * 0 !== 0) {
|
|
5595
|
+
// Infinity, NaN.
|
|
5596
|
+
} else if (v * 0 !== 0) {
|
|
5546
5597
|
if (!v) x.s = NaN;
|
|
5547
5598
|
x.e = NaN;
|
|
5548
5599
|
x.d = null;
|
|
@@ -5550,32 +5601,22 @@ var decimal = {exports: {}};
|
|
|
5550
5601
|
}
|
|
5551
5602
|
|
|
5552
5603
|
return parseDecimal(x, v.toString());
|
|
5553
|
-
}
|
|
5554
|
-
|
|
5555
|
-
if (t === 'string') {
|
|
5556
|
-
if ((i = v.charCodeAt(0)) === 45) { // minus sign
|
|
5557
|
-
v = v.slice(1);
|
|
5558
|
-
x.s = -1;
|
|
5559
|
-
} else {
|
|
5560
|
-
if (i === 43) v = v.slice(1); // plus sign
|
|
5561
|
-
x.s = 1;
|
|
5562
|
-
}
|
|
5563
5604
|
|
|
5564
|
-
|
|
5605
|
+
} else if (t !== 'string') {
|
|
5606
|
+
throw Error(invalidArgument + v);
|
|
5565
5607
|
}
|
|
5566
5608
|
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
return parseDecimal(x, v.toString());
|
|
5609
|
+
// Minus sign?
|
|
5610
|
+
if ((i = v.charCodeAt(0)) === 45) {
|
|
5611
|
+
v = v.slice(1);
|
|
5612
|
+
x.s = -1;
|
|
5613
|
+
} else {
|
|
5614
|
+
// Plus sign?
|
|
5615
|
+
if (i === 43) v = v.slice(1);
|
|
5616
|
+
x.s = 1;
|
|
5576
5617
|
}
|
|
5577
5618
|
|
|
5578
|
-
|
|
5619
|
+
return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v);
|
|
5579
5620
|
}
|
|
5580
5621
|
|
|
5581
5622
|
Decimal.prototype = P;
|
|
@@ -5652,8 +5693,8 @@ var decimal = {exports: {}};
|
|
|
5652
5693
|
* Return a new Decimal whose value is `x` divided by `y`, rounded to `precision` significant
|
|
5653
5694
|
* digits using rounding mode `rounding`.
|
|
5654
5695
|
*
|
|
5655
|
-
* x {number|string|
|
|
5656
|
-
* y {number|string|
|
|
5696
|
+
* x {number|string|Decimal}
|
|
5697
|
+
* y {number|string|Decimal}
|
|
5657
5698
|
*
|
|
5658
5699
|
*/
|
|
5659
5700
|
function div(x, y) {
|
|
@@ -5665,7 +5706,7 @@ var decimal = {exports: {}};
|
|
|
5665
5706
|
* Return a new Decimal whose value is the natural exponential of `x`, rounded to `precision`
|
|
5666
5707
|
* significant digits using rounding mode `rounding`.
|
|
5667
5708
|
*
|
|
5668
|
-
* x {number|string|
|
|
5709
|
+
* x {number|string|Decimal} The power to which to raise the base of the natural log.
|
|
5669
5710
|
*
|
|
5670
5711
|
*/
|
|
5671
5712
|
function exp(x) {
|
|
@@ -5676,7 +5717,7 @@ var decimal = {exports: {}};
|
|
|
5676
5717
|
/*
|
|
5677
5718
|
* Return a new Decimal whose value is `x` round to an integer using `ROUND_FLOOR`.
|
|
5678
5719
|
*
|
|
5679
|
-
* x {number|string|
|
|
5720
|
+
* x {number|string|Decimal}
|
|
5680
5721
|
*
|
|
5681
5722
|
*/
|
|
5682
5723
|
function floor(x) {
|
|
@@ -5690,7 +5731,7 @@ var decimal = {exports: {}};
|
|
|
5690
5731
|
*
|
|
5691
5732
|
* hypot(a, b, ...) = sqrt(a^2 + b^2 + ...)
|
|
5692
5733
|
*
|
|
5693
|
-
* arguments {number|string|
|
|
5734
|
+
* arguments {number|string|Decimal}
|
|
5694
5735
|
*
|
|
5695
5736
|
*/
|
|
5696
5737
|
function hypot() {
|
|
@@ -5732,7 +5773,7 @@ var decimal = {exports: {}};
|
|
|
5732
5773
|
* Return a new Decimal whose value is the natural logarithm of `x`, rounded to `precision`
|
|
5733
5774
|
* significant digits using rounding mode `rounding`.
|
|
5734
5775
|
*
|
|
5735
|
-
* x {number|string|
|
|
5776
|
+
* x {number|string|Decimal}
|
|
5736
5777
|
*
|
|
5737
5778
|
*/
|
|
5738
5779
|
function ln(x) {
|
|
@@ -5746,8 +5787,8 @@ var decimal = {exports: {}};
|
|
|
5746
5787
|
*
|
|
5747
5788
|
* log[y](x)
|
|
5748
5789
|
*
|
|
5749
|
-
* x {number|string|
|
|
5750
|
-
* y {number|string|
|
|
5790
|
+
* x {number|string|Decimal} The argument of the logarithm.
|
|
5791
|
+
* y {number|string|Decimal} The base of the logarithm.
|
|
5751
5792
|
*
|
|
5752
5793
|
*/
|
|
5753
5794
|
function log(x, y) {
|
|
@@ -5759,7 +5800,7 @@ var decimal = {exports: {}};
|
|
|
5759
5800
|
* Return a new Decimal whose value is the base 2 logarithm of `x`, rounded to `precision`
|
|
5760
5801
|
* significant digits using rounding mode `rounding`.
|
|
5761
5802
|
*
|
|
5762
|
-
* x {number|string|
|
|
5803
|
+
* x {number|string|Decimal}
|
|
5763
5804
|
*
|
|
5764
5805
|
*/
|
|
5765
5806
|
function log2(x) {
|
|
@@ -5771,7 +5812,7 @@ var decimal = {exports: {}};
|
|
|
5771
5812
|
* Return a new Decimal whose value is the base 10 logarithm of `x`, rounded to `precision`
|
|
5772
5813
|
* significant digits using rounding mode `rounding`.
|
|
5773
5814
|
*
|
|
5774
|
-
* x {number|string|
|
|
5815
|
+
* x {number|string|Decimal}
|
|
5775
5816
|
*
|
|
5776
5817
|
*/
|
|
5777
5818
|
function log10(x) {
|
|
@@ -5782,22 +5823,22 @@ var decimal = {exports: {}};
|
|
|
5782
5823
|
/*
|
|
5783
5824
|
* Return a new Decimal whose value is the maximum of the arguments.
|
|
5784
5825
|
*
|
|
5785
|
-
* arguments {number|string|
|
|
5826
|
+
* arguments {number|string|Decimal}
|
|
5786
5827
|
*
|
|
5787
5828
|
*/
|
|
5788
5829
|
function max() {
|
|
5789
|
-
return maxOrMin(this, arguments,
|
|
5830
|
+
return maxOrMin(this, arguments, 'lt');
|
|
5790
5831
|
}
|
|
5791
5832
|
|
|
5792
5833
|
|
|
5793
5834
|
/*
|
|
5794
5835
|
* Return a new Decimal whose value is the minimum of the arguments.
|
|
5795
5836
|
*
|
|
5796
|
-
* arguments {number|string|
|
|
5837
|
+
* arguments {number|string|Decimal}
|
|
5797
5838
|
*
|
|
5798
5839
|
*/
|
|
5799
5840
|
function min() {
|
|
5800
|
-
return maxOrMin(this, arguments,
|
|
5841
|
+
return maxOrMin(this, arguments, 'gt');
|
|
5801
5842
|
}
|
|
5802
5843
|
|
|
5803
5844
|
|
|
@@ -5805,8 +5846,8 @@ var decimal = {exports: {}};
|
|
|
5805
5846
|
* Return a new Decimal whose value is `x` modulo `y`, rounded to `precision` significant digits
|
|
5806
5847
|
* using rounding mode `rounding`.
|
|
5807
5848
|
*
|
|
5808
|
-
* x {number|string|
|
|
5809
|
-
* y {number|string|
|
|
5849
|
+
* x {number|string|Decimal}
|
|
5850
|
+
* y {number|string|Decimal}
|
|
5810
5851
|
*
|
|
5811
5852
|
*/
|
|
5812
5853
|
function mod(x, y) {
|
|
@@ -5818,8 +5859,8 @@ var decimal = {exports: {}};
|
|
|
5818
5859
|
* Return a new Decimal whose value is `x` multiplied by `y`, rounded to `precision` significant
|
|
5819
5860
|
* digits using rounding mode `rounding`.
|
|
5820
5861
|
*
|
|
5821
|
-
* x {number|string|
|
|
5822
|
-
* y {number|string|
|
|
5862
|
+
* x {number|string|Decimal}
|
|
5863
|
+
* y {number|string|Decimal}
|
|
5823
5864
|
*
|
|
5824
5865
|
*/
|
|
5825
5866
|
function mul(x, y) {
|
|
@@ -5831,8 +5872,8 @@ var decimal = {exports: {}};
|
|
|
5831
5872
|
* Return a new Decimal whose value is `x` raised to the power `y`, rounded to precision
|
|
5832
5873
|
* significant digits using rounding mode `rounding`.
|
|
5833
5874
|
*
|
|
5834
|
-
* x {number|string|
|
|
5835
|
-
* y {number|string|
|
|
5875
|
+
* x {number|string|Decimal} The base.
|
|
5876
|
+
* y {number|string|Decimal} The exponent.
|
|
5836
5877
|
*
|
|
5837
5878
|
*/
|
|
5838
5879
|
function pow(x, y) {
|
|
@@ -5950,7 +5991,7 @@ var decimal = {exports: {}};
|
|
|
5950
5991
|
*
|
|
5951
5992
|
* To emulate `Math.round`, set rounding to 7 (ROUND_HALF_CEIL).
|
|
5952
5993
|
*
|
|
5953
|
-
* x {number|string|
|
|
5994
|
+
* x {number|string|Decimal}
|
|
5954
5995
|
*
|
|
5955
5996
|
*/
|
|
5956
5997
|
function round(x) {
|
|
@@ -5966,7 +6007,7 @@ var decimal = {exports: {}};
|
|
|
5966
6007
|
* -0 if x is -0,
|
|
5967
6008
|
* NaN otherwise
|
|
5968
6009
|
*
|
|
5969
|
-
* x {number|string|
|
|
6010
|
+
* x {number|string|Decimal}
|
|
5970
6011
|
*
|
|
5971
6012
|
*/
|
|
5972
6013
|
function sign(x) {
|
|
@@ -5979,7 +6020,7 @@ var decimal = {exports: {}};
|
|
|
5979
6020
|
* Return a new Decimal whose value is the sine of `x`, rounded to `precision` significant digits
|
|
5980
6021
|
* using rounding mode `rounding`.
|
|
5981
6022
|
*
|
|
5982
|
-
* x {number|string|
|
|
6023
|
+
* x {number|string|Decimal} A value in radians.
|
|
5983
6024
|
*
|
|
5984
6025
|
*/
|
|
5985
6026
|
function sin(x) {
|
|
@@ -5991,7 +6032,7 @@ var decimal = {exports: {}};
|
|
|
5991
6032
|
* Return a new Decimal whose value is the hyperbolic sine of `x`, rounded to `precision`
|
|
5992
6033
|
* significant digits using rounding mode `rounding`.
|
|
5993
6034
|
*
|
|
5994
|
-
* x {number|string|
|
|
6035
|
+
* x {number|string|Decimal} A value in radians.
|
|
5995
6036
|
*
|
|
5996
6037
|
*/
|
|
5997
6038
|
function sinh(x) {
|
|
@@ -6003,7 +6044,7 @@ var decimal = {exports: {}};
|
|
|
6003
6044
|
* Return a new Decimal whose value is the square root of `x`, rounded to `precision` significant
|
|
6004
6045
|
* digits using rounding mode `rounding`.
|
|
6005
6046
|
*
|
|
6006
|
-
* x {number|string|
|
|
6047
|
+
* x {number|string|Decimal}
|
|
6007
6048
|
*
|
|
6008
6049
|
*/
|
|
6009
6050
|
function sqrt(x) {
|
|
@@ -6015,8 +6056,8 @@ var decimal = {exports: {}};
|
|
|
6015
6056
|
* Return a new Decimal whose value is `x` minus `y`, rounded to `precision` significant digits
|
|
6016
6057
|
* using rounding mode `rounding`.
|
|
6017
6058
|
*
|
|
6018
|
-
* x {number|string|
|
|
6019
|
-
* y {number|string|
|
|
6059
|
+
* x {number|string|Decimal}
|
|
6060
|
+
* y {number|string|Decimal}
|
|
6020
6061
|
*
|
|
6021
6062
|
*/
|
|
6022
6063
|
function sub(x, y) {
|
|
@@ -6030,7 +6071,7 @@ var decimal = {exports: {}};
|
|
|
6030
6071
|
*
|
|
6031
6072
|
* Only the result is rounded, not the intermediate calculations.
|
|
6032
6073
|
*
|
|
6033
|
-
* arguments {number|string|
|
|
6074
|
+
* arguments {number|string|Decimal}
|
|
6034
6075
|
*
|
|
6035
6076
|
*/
|
|
6036
6077
|
function sum() {
|
|
@@ -6050,7 +6091,7 @@ var decimal = {exports: {}};
|
|
|
6050
6091
|
* Return a new Decimal whose value is the tangent of `x`, rounded to `precision` significant
|
|
6051
6092
|
* digits using rounding mode `rounding`.
|
|
6052
6093
|
*
|
|
6053
|
-
* x {number|string|
|
|
6094
|
+
* x {number|string|Decimal} A value in radians.
|
|
6054
6095
|
*
|
|
6055
6096
|
*/
|
|
6056
6097
|
function tan(x) {
|
|
@@ -6062,7 +6103,7 @@ var decimal = {exports: {}};
|
|
|
6062
6103
|
* Return a new Decimal whose value is the hyperbolic tangent of `x`, rounded to `precision`
|
|
6063
6104
|
* significant digits using rounding mode `rounding`.
|
|
6064
6105
|
*
|
|
6065
|
-
* x {number|string|
|
|
6106
|
+
* x {number|string|Decimal} A value in radians.
|
|
6066
6107
|
*
|
|
6067
6108
|
*/
|
|
6068
6109
|
function tanh(x) {
|
|
@@ -6073,7 +6114,7 @@ var decimal = {exports: {}};
|
|
|
6073
6114
|
/*
|
|
6074
6115
|
* Return a new Decimal whose value is `x` truncated to an integer.
|
|
6075
6116
|
*
|
|
6076
|
-
* x {number|string|
|
|
6117
|
+
* x {number|string|Decimal}
|
|
6077
6118
|
*
|
|
6078
6119
|
*/
|
|
6079
6120
|
function trunc(x) {
|