@agogte/utilynx 1.0.7 → 1.0.8

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/README.md CHANGED
@@ -1,206 +1,93 @@
1
- # utilynx
1
+ # 🌟 utilynx
2
2
 
3
- High-level utility functions for working with arrays, math, strings, and more — bringing expressive language features to JavaScript and TypeScript.
3
+ High-level utility functions for working with arrays, math, strings, and more — bringing expressive language features to JavaScript and TypeScript.
4
4
 
5
- ## Installation
6
-
7
- ```bash
8
- npm install utilynx
9
- ```
10
-
11
- ## Usage
12
-
13
- Import the package in your TypeScript or JavaScript project:
14
-
15
- ```typescript
16
- import * as utilynx from 'utilynx';
17
- // or import specific utilities:
18
- import { groupBy, round } from 'utilynx';
19
- ```
20
-
21
- Some utilities extend built-in prototypes (like `Number`, `Array`, `String`, `Object`, and `Date`).
22
- To use these, simply import the package once at the top of your entry file:
23
-
24
- ```typescript
25
- import 'utilynx';
26
- ```
5
+ This project extends the native JavaScript/TypeScript objects (`Array`, `Date`, `Number`, `Object`, and `String`) with powerful utility methods to simplify common programming patterns. Inspired by LINQ (C#) and modern functional programming, these extensions make your code more expressive, readable, and efficient.
27
6
 
28
7
  ---
29
8
 
30
- ## API Reference
31
-
32
- ### Math Utilities (`math.ts`)
33
-
34
- These methods extend the `Number` prototype.
35
- **Import the package once to enable them:**
36
-
37
- ```typescript
38
- import 'utilynx';
9
+ ## 📦 Installation
39
10
 
40
- (9).sqrt(); // 3
11
+ Simply include the module in your TypeScript project:
41
12
 
42
- (3.14159).round(2); // 3.14
43
- (10.5678).round(); // 11
44
-
45
- (4).isEven(); // true
46
- (5).isOdd(); // true
13
+ ```ts
14
+ import '@agogte/utilynx';
47
15
  ```
48
16
 
49
- #### `Number.prototype.sqrt(): number`
50
- Returns the square root of the number.
51
-
52
- #### `Number.prototype.round(precision?: number): number`
53
- Rounds the number to a specified number of decimal places.
54
-
55
- #### `Number.prototype.isEven(): boolean`
56
- Checks if the number is even.
57
-
58
- #### `Number.prototype.isOdd(): boolean`
59
- Checks if the number is odd.
60
-
61
- ---
62
-
63
- ### Collection Utilities (`collection.ts`)
64
-
65
- These methods extend the `Array` prototype.
66
- **Import the package once to enable them:**
67
-
68
- ```typescript
69
- import 'utilynx';
70
-
71
- [1, 2, 3].firstOrDefault(); // 1
72
- [1, 2, 3].firstOrDefault(x => x > 1); // 2
73
-
74
- const grouped = [
75
- { type: 'fruit', name: 'apple' },
76
- { type: 'vegetable', name: 'carrot' },
77
- { type: 'fruit', name: 'banana' }
78
- ].groupBy(item => item.type);
79
- // grouped = { fruit: [...], vegetable: [...] }
80
-
81
- [1, 2, 3].sum(); // 6
82
- [2, 4, 6].average(); // 4
83
- ```
17
+ Or if you've bundled it as a package:
84
18
 
85
- #### `Array.prototype.firstOrDefault(predicate?: (item: T) => boolean): T | undefined`
86
- Returns the first element in an array, or the first that matches a predicate, or `undefined` if none found.
87
-
88
- #### `Array.prototype.groupBy(keySelector: (item: T) => K): Record<K, T[]>`
89
- Groups array elements by a key.
90
-
91
- #### `Array.prototype.sum(): number | undefined`
92
- Returns the sum of an array of numbers, or `undefined` if the array is empty.
93
-
94
- #### `Array.prototype.average(): number | undefined`
95
- Returns the average of an array of numbers, or `undefined` if the array is empty.
96
-
97
- ---
98
-
99
- ### String Utilities (`string.ts`)
100
-
101
- These methods extend the `String` prototype.
102
- **Import the package once to enable them:**
103
-
104
- ```typescript
105
- import 'utilynx';
106
-
107
- ''.isNullOrEmpty(); // true
108
- 'abc'.isNullOrEmpty(); // false
109
-
110
- 'abc'.padLeft(5, '0'); // '00abc'
111
- 'abc'.padRight(5, '0'); // 'abc00'
19
+ ```bash
20
+ npm install @agogte/utilynx
112
21
  ```
113
22
 
114
- #### `String.prototype.isNullOrEmpty(): boolean`
115
- Checks if a string is empty.
116
-
117
- #### `String.prototype.padLeft(totalLength: number, padChar: string): string`
118
- Pads the string on the left to the specified length.
119
-
120
- #### `String.prototype.padRight(totalLength: number, padChar: string): string`
121
- Pads the string on the right to the specified length.
122
-
123
23
  ---
124
24
 
125
- ### Date Utilities (`datetime.ts`)
126
-
127
- These methods extend the `Date` prototype.
128
- **Import the package once to enable them:**
129
-
130
- ```typescript
131
- import 'utilynx';
25
+ ## 🔧 Extended Interfaces
132
26
 
133
- const d = new Date('2020-01-01');
134
- d.addDays(1); // 2020-01-02
27
+ ### 🧩 `Array<T>` Extensions
135
28
 
136
- new Date('2023-06-24').isWeekend(); // true (Saturday)
29
+ | Method | Description |
30
+ |--------|-------------|
31
+ | `firstOrDefault(predicate?)` | Returns the first element that matches the predicate, or `undefined` if none found. |
32
+ | `groupBy(keySelector)` | Groups elements by the result of `keySelector`, returns a dictionary of arrays. |
33
+ | `sum()` | Returns the sum of numeric values in the array. |
34
+ | `average()` | Returns the average of numeric values in the array. |
137
35
 
138
- new Date('2020-01-02T12:34:56Z').toShortDateString(); // '2020-01-02'
36
+ ### 🗓️ `Date` Extensions
139
37
 
140
- const d1 = new Date('2020-01-01');
141
- const d2 = new Date('2020-01-03');
142
- d1.diffDays(d2); // 2
38
+ | Method | Description |
39
+ |--------|-------------|
40
+ | `addDays(days)` | Returns a new `Date` with the specified number of days added. |
41
+ | `addHours(hours)` | Returns a new `Date` with the specified number of hours added. |
42
+ | `addMinutes(minutes)` | Returns a new `Date` with the specified number of minutes added. |
43
+ | `isWeekend()` | Returns `true` if the date falls on a weekend. |
44
+ | `toShortDateString()` | Returns a string in `YYYY-MM-DD` format. |
45
+ | `diffDays(otherDate)` | Returns the number of full days between two dates. |
143
46
 
144
- new Date('2020-01-01T00:00:00Z').addHours(2); // 2020-01-01T02:00:00Z
145
- new Date('2020-01-01T00:00:00Z').addMinutes(30); // 2020-01-01T00:30:00Z
146
- ```
147
-
148
- #### `Date.prototype.addDays(days: number): Date`
149
- Returns a new `Date` with the specified number of days added.
47
+ ### 🔢 `Number` Extensions
150
48
 
151
- #### `Date.prototype.isWeekend(): boolean`
152
- Checks if the date is a Saturday or Sunday.
49
+ | Method | Description |
50
+ |--------|-------------|
51
+ | `isEven()` | Returns `true` if the number is even. |
52
+ | `isOdd()` | Returns `true` if the number is odd. |
53
+ | `sqrt()` | Returns the square root of the number. |
54
+ | `round(precision?)` | Rounds the number to a specified number of decimal places (default: 0). |
153
55
 
154
- #### `Date.prototype.toShortDateString(): string`
155
- Returns the date as a string in `YYYY-MM-DD` format.
56
+ ### 📦 `Object` Extensions
156
57
 
157
- #### `Date.prototype.diffDays(otherDate: Date): number`
158
- Returns the difference in whole days between two dates.
58
+ | Method | Description |
59
+ |--------|-------------|
60
+ | `hasValue()` | Returns `true` if the object is not `null`, `undefined`, or empty. |
61
+ | `isEmpty()` | Returns `true` if the object has no enumerable properties. |
62
+ | `isNumeric()` | Returns `true` if the object represents a numeric value. |
159
63
 
160
- #### `Date.prototype.addHours(hours: number): Date`
161
- Returns a new `Date` with the specified number of hours added.
64
+ ### 🧵 `String` Extensions
162
65
 
163
- #### `Date.prototype.addMinutes(minutes: number): Date`
164
- Returns a new `Date` with the specified number of minutes added.
66
+ | Method | Description |
67
+ |--------|-------------|
68
+ | `isNullOrEmpty()` | Returns `true` if the string is `null`, `undefined`, or empty. |
69
+ | `padLeft(totalLength, padChar)` | Pads the string on the left to the desired total length. |
70
+ | `padRight(totalLength, padChar)` | Pads the string on the right to the desired total length. |
165
71
 
166
72
  ---
167
73
 
168
- ### Object Utilities (`extensions.ts`)
169
-
170
- These methods extend the `Object` prototype.
171
- **Import the package once to enable them:**
74
+ ## 🚨 Disclaimer
172
75
 
173
- ```typescript
174
- import 'utilynx';
76
+ These extensions modify native prototypes, which can cause conflicts with other libraries or unexpected behavior. Use with caution, preferably in controlled or internal environments.
175
77
 
176
- ({}.hasValue()); // true
177
- (null as any)?.hasValue?.(); // false
78
+ To keep things safe and modular, consider wrapping these in utility functions instead of modifying prototypes globally if working on public or shared projects.
178
79
 
179
- ({}.isEmpty()); // true
180
- ({ a: 1 }.isEmpty()); // false
181
- ''.isEmpty(); // true
182
- [1].isEmpty(); // false
183
-
184
- ('123'.isNumeric()); // true
185
- ('abc'.isNumeric()); // false
186
- (123 as any).isNumeric(); // true
187
- (NaN as any).isNumeric(); // false
188
- ```
189
-
190
- #### `Object.prototype.hasValue(): boolean`
191
- Checks if the object is not `null` or `undefined`.
80
+ ---
192
81
 
193
- #### `Object.prototype.isEmpty(): boolean`
194
- Checks if the object, array, or string is empty.
82
+ ## 📄 License
195
83
 
196
- #### `Object.prototype.isNumeric(): boolean`
197
- Checks if the object represents a numeric value.
84
+ This software is <b>NOT</b> open source.
85
+ You must obtain explicit written permission from the author to use, copy, modify, or distribute this package.
86
+ Commercial or non-commercial use requires a paid license.
87
+ Contact the author for licensing terms and pricing.
198
88
 
199
89
  ---
200
90
 
201
- ## License
91
+ ## 📣 Shoutout
202
92
 
203
- This software is **not open source**.
204
- You must obtain explicit written permission from the author to use, copy, modify, or distribute this package.
205
- Commercial or non-commercial use requires a paid license.
206
- Contact the author for licensing terms and pricing.
93
+ Inspired by the elegance of C# LINQ and the power of functional programming. Happy coding! 🚀
@@ -1,3 +1,34 @@
1
+ /**
2
+ * Extends the global `Date` interface with additional utility methods.
3
+ *
4
+ * @method addDays
5
+ * Adds the specified number of days to the current date instance and returns a new `Date` object.
6
+ * @param days - The number of days to add (can be negative).
7
+ * @returns A new `Date` object with the days added.
8
+ *
9
+ * @method isWeekend
10
+ * Determines whether the current date instance falls on a weekend (Saturday or Sunday).
11
+ * @returns `true` if the date is a weekend, otherwise `false`.
12
+ *
13
+ * @method toShortDateString
14
+ * Returns a string representation of the date in ISO format "YYYY-MM-DD".
15
+ * @returns A short date string.
16
+ *
17
+ * @method diffDays
18
+ * Calculates the difference in whole days between the current date instance and another date.
19
+ * @param otherDate - The date to compare with.
20
+ * @returns The number of days difference as an integer.
21
+ *
22
+ * @method addHours
23
+ * Adds the specified number of hours to the current date instance and returns a new `Date` object.
24
+ * @param hours - The number of hours to add (can be negative).
25
+ * @returns A new `Date` object with the hours added.
26
+ *
27
+ * @method addMinutes
28
+ * Adds the specified number of minutes to the current date instance and returns a new `Date` object.
29
+ * @param minutes - The number of minutes to add (can be negative).
30
+ * @returns A new `Date` object with the minutes added.
31
+ */
1
32
  export {};
2
33
  declare global {
3
34
  interface Array<T> {
package/dist/math.d.ts CHANGED
@@ -1,3 +1,23 @@
1
+ /**
2
+ * Extends the global `Number` interface with additional utility methods.
3
+ *
4
+ * @method isEven
5
+ * Determines whether the current number is even.
6
+ * @returns `true` if the number is even, otherwise `false`.
7
+ *
8
+ * @method isOdd
9
+ * Determines whether the current number is odd.
10
+ * @returns `true` if the number is odd, otherwise `false`.
11
+ *
12
+ * @method sqrt
13
+ * Returns the square root of the current number.
14
+ * @returns The square root as a number.
15
+ *
16
+ * @method round
17
+ * Rounds the current number to the specified number of decimal places.
18
+ * @param precision - The number of decimal places to round to (default is 0).
19
+ * @returns The rounded number.
20
+ */
1
21
  export {};
2
22
  declare global {
3
23
  interface Number {
@@ -1 +1 @@
1
- const a0_0x197603=a0_0x2a6a;(function(_0x6abaca,_0x576e4e){const _0x1cb87d=a0_0x2a6a,_0x4e0390=_0x6abaca();while(!![]){try{const _0x19f11e=parseInt(_0x1cb87d(0xaf))/0x1+parseInt(_0x1cb87d(0xb0))/0x2*(parseInt(_0x1cb87d(0xb2))/0x3)+-parseInt(_0x1cb87d(0xae))/0x4*(parseInt(_0x1cb87d(0xb6))/0x5)+parseInt(_0x1cb87d(0xa4))/0x6+-parseInt(_0x1cb87d(0xac))/0x7*(parseInt(_0x1cb87d(0xab))/0x8)+parseInt(_0x1cb87d(0xb3))/0x9*(-parseInt(_0x1cb87d(0xb7))/0xa)+parseInt(_0x1cb87d(0xb5))/0xb*(parseInt(_0x1cb87d(0xa9))/0xc);if(_0x19f11e===_0x576e4e)break;else _0x4e0390['push'](_0x4e0390['shift']());}catch(_0x18a35f){_0x4e0390['push'](_0x4e0390['shift']());}}}(a0_0x2a51,0x419fd));!Array[a0_0x197603(0xa7)]['firstOrDefault']&&(Array[a0_0x197603(0xa7)][a0_0x197603(0xb1)]=function(_0x170ee5){const _0x4e4fe3=a0_0x197603;if(!Array[_0x4e4fe3(0xa6)](this))return undefined;return _0x170ee5?this[_0x4e4fe3(0xa5)](_0x170ee5):this[0x0];});!Array[a0_0x197603(0xa7)][a0_0x197603(0xad)]&&(Array['prototype'][a0_0x197603(0xad)]=function(_0x389e08){const _0x3c2e1b=a0_0x197603,_0xe7ff5b=Object['create'](null);for(let _0x44dc9f=0x0,_0x3dcd2a=this['length'];_0x44dc9f<_0x3dcd2a;++_0x44dc9f){const _0x619186=this[_0x44dc9f],_0x359d22=_0x389e08(_0x619186);!_0xe7ff5b[_0x359d22]?_0xe7ff5b[_0x359d22]=[_0x619186]:_0xe7ff5b[_0x359d22][_0x3c2e1b(0xb4)](_0x619186);}return _0xe7ff5b;});!Array['prototype'][a0_0x197603(0xaa)]&&(Array['prototype']['sum']=function(){const _0x279ac9=a0_0x197603;if(!Array[_0x279ac9(0xa6)](this)||this['length']===0x0)return undefined;let _0x456f06=0x0;for(let _0x52c55c=0x0,_0x107442=this['length'];_0x52c55c<_0x107442;++_0x52c55c){_0x456f06+=this[_0x52c55c];}return _0x456f06;});function a0_0x2a6a(_0x307cfe,_0x42d664){const _0x2a51f7=a0_0x2a51();return a0_0x2a6a=function(_0x2a6af1,_0x1ca687){_0x2a6af1=_0x2a6af1-0xa4;let _0x1f07b1=_0x2a51f7[_0x2a6af1];return _0x1f07b1;},a0_0x2a6a(_0x307cfe,_0x42d664);}!Array['prototype']['average']&&(Array[a0_0x197603(0xa7)][a0_0x197603(0xb8)]=function(){const _0x46c459=a0_0x197603;if(!Array['isArray'](this)||this['length']===0x0)return undefined;let _0x7bea8b=0x0;for(let _0x24339f=0x0,_0x57d188=this[_0x46c459(0xa8)];_0x24339f<_0x57d188;++_0x24339f){_0x7bea8b+=this[_0x24339f];}return _0x7bea8b/this[_0x46c459(0xa8)];});function a0_0x2a51(){const _0x2745c4=['sum','190568OnxRsK','14KbqSQz','groupBy','4gojUNN','305187FcNwxO','178jGNYgG','firstOrDefault','4287ohAUql','2247354LXufqA','push','44231YwWvvR','2414135PqQoXw','20SSOyVW','average','2616378EnbqGq','find','isArray','prototype','length','1284YepsDm'];a0_0x2a51=function(){return _0x2745c4;};return a0_0x2a51();}export{};
1
+ const a0_0xc573c7=a0_0x2f78;(function(_0x36fbd3,_0x59781d){const _0xd5b183=a0_0x2f78,_0x469f36=_0x36fbd3();while(!![]){try{const _0x5e1fad=parseInt(_0xd5b183(0x165))/0x1+parseInt(_0xd5b183(0x15b))/0x2*(parseInt(_0xd5b183(0x162))/0x3)+-parseInt(_0xd5b183(0x15d))/0x4*(-parseInt(_0xd5b183(0x15a))/0x5)+-parseInt(_0xd5b183(0x157))/0x6*(parseInt(_0xd5b183(0x167))/0x7)+parseInt(_0xd5b183(0x158))/0x8+-parseInt(_0xd5b183(0x15c))/0x9+-parseInt(_0xd5b183(0x159))/0xa*(parseInt(_0xd5b183(0x15f))/0xb);if(_0x5e1fad===_0x59781d)break;else _0x469f36['push'](_0x469f36['shift']());}catch(_0x4ce339){_0x469f36['push'](_0x469f36['shift']());}}}(a0_0x5a8b,0x46639));function a0_0x5a8b(){const _0x4e2eaf=['51254DAxyjZ','prototype','222SjkWjG','4143400HNOZGo','1708890YLnyhr','523990RcEsKT','566362WjvjpM','1515636xshObD','8gwYiGc','length','55enDCbQ','average','create','3YWGDYf','find','push','571374bRtBNH','sum'];a0_0x5a8b=function(){return _0x4e2eaf;};return a0_0x5a8b();}!Array['prototype']['firstOrDefault']&&(Array[a0_0xc573c7(0x156)]['firstOrDefault']=function(_0xd21364){const _0x4782b1=a0_0xc573c7;if(!Array['isArray'](this))return undefined;return _0xd21364?this[_0x4782b1(0x163)](_0xd21364):this[0x0];});!Array[a0_0xc573c7(0x156)]['groupBy']&&(Array['prototype']['groupBy']=function(_0x2619c8){const _0xc5c100=a0_0xc573c7,_0x2eed3b=Object[_0xc5c100(0x161)](null);for(let _0x5ee3d8=0x0,_0x4ab500=this['length'];_0x5ee3d8<_0x4ab500;++_0x5ee3d8){const _0xd0577e=this[_0x5ee3d8],_0x529e2b=_0x2619c8(_0xd0577e);!_0x2eed3b[_0x529e2b]?_0x2eed3b[_0x529e2b]=[_0xd0577e]:_0x2eed3b[_0x529e2b][_0xc5c100(0x164)](_0xd0577e);}return _0x2eed3b;});function a0_0x2f78(_0x25546e,_0x27cd52){const _0x5a8bd4=a0_0x5a8b();return a0_0x2f78=function(_0x2f78c1,_0x5227f3){_0x2f78c1=_0x2f78c1-0x156;let _0x248732=_0x5a8bd4[_0x2f78c1];return _0x248732;},a0_0x2f78(_0x25546e,_0x27cd52);}!Array[a0_0xc573c7(0x156)][a0_0xc573c7(0x166)]&&(Array[a0_0xc573c7(0x156)]['sum']=function(){const _0x3760ba=a0_0xc573c7;if(!Array['isArray'](this)||this['length']===0x0)return undefined;let _0x4396a3=0x0;for(let _0x54954a=0x0,_0x23ddac=this[_0x3760ba(0x15e)];_0x54954a<_0x23ddac;++_0x54954a){_0x4396a3+=this[_0x54954a];}return _0x4396a3;});!Array[a0_0xc573c7(0x156)][a0_0xc573c7(0x160)]&&(Array['prototype']['average']=function(){const _0xd2a54e=a0_0xc573c7;if(!Array['isArray'](this)||this[_0xd2a54e(0x15e)]===0x0)return undefined;let _0x5c351e=0x0;for(let _0x2d7840=0x0,_0x25097f=this[_0xd2a54e(0x15e)];_0x2d7840<_0x25097f;++_0x2d7840){_0x5c351e+=this[_0x2d7840];}return _0x5c351e/this['length'];});export{};
@@ -1 +1 @@
1
- function a1_0x211f(){const _0x57397f=['3063060ttUhoy','defineProperty','getFullYear','2388CtxXQn','13327SDeoxN','getDay','floor','getTime','valueOf','8cBvrjl','5836HGQKDO','8532655lpPXPf','getDate','isWeekend','slice','134DNzOpV','addHours','getMonth','10542940UmGvFs','142667DNziQS','addMinutes','addDays','4462047IRFKfG','prototype','diffDays','222saQgzl'];a1_0x211f=function(){return _0x57397f;};return a1_0x211f();}const a1_0x2a6e13=a1_0x5ab3;(function(_0x3b4d46,_0xc114ba){const _0x513360=a1_0x5ab3,_0x2df49c=_0x3b4d46();while(!![]){try{const _0x5a3255=-parseInt(_0x513360(0xee))/0x1*(parseInt(_0x513360(0xdf))/0x2)+parseInt(_0x513360(0xed))/0x3*(parseInt(_0x513360(0xda))/0x4)+parseInt(_0x513360(0xdb))/0x5+parseInt(_0x513360(0xe9))/0x6*(parseInt(_0x513360(0xe3))/0x7)+-parseInt(_0x513360(0xf3))/0x8*(parseInt(_0x513360(0xe6))/0x9)+-parseInt(_0x513360(0xe2))/0xa+-parseInt(_0x513360(0xea))/0xb;if(_0x5a3255===_0xc114ba)break;else _0x2df49c['push'](_0x2df49c['shift']());}catch(_0x1ed1fa){_0x2df49c['push'](_0x2df49c['shift']());}}}(a1_0x211f,0xdbdc2));!Date[a1_0x2a6e13(0xe7)]['addDays']&&Object[a1_0x2a6e13(0xeb)](Date[a1_0x2a6e13(0xe7)],a1_0x2a6e13(0xe5),{'value':function(_0x70fb09){const _0x5df1c9=a1_0x2a6e13,_0x5a61d8=new Date(this[_0x5df1c9(0xf2)]());return _0x5a61d8['setDate'](_0x5a61d8['getDate']()+_0x70fb09),_0x5a61d8;},'enumerable':![]});!Date[a1_0x2a6e13(0xe7)][a1_0x2a6e13(0xdd)]&&Object[a1_0x2a6e13(0xeb)](Date[a1_0x2a6e13(0xe7)],a1_0x2a6e13(0xdd),{'value':function(){const _0x3483e1=a1_0x2a6e13,_0x43347b=this[_0x3483e1(0xef)]();return _0x43347b===0x0||_0x43347b===0x6;},'enumerable':![]});!Date['prototype']['toShortDateString']&&Object[a1_0x2a6e13(0xeb)](Date[a1_0x2a6e13(0xe7)],'toShortDateString',{'value':function(){const _0x42ae49=a1_0x2a6e13;return this['toISOString']()[_0x42ae49(0xde)](0x0,0xa);},'enumerable':![]});function a1_0x5ab3(_0x141b62,_0xf9c2a5){const _0x211fa3=a1_0x211f();return a1_0x5ab3=function(_0x5ab32e,_0x4d9b9c){_0x5ab32e=_0x5ab32e-0xda;let _0x284227=_0x211fa3[_0x5ab32e];return _0x284227;},a1_0x5ab3(_0x141b62,_0xf9c2a5);}Date['prototype'][a1_0x2a6e13(0xe8)]=function(_0x5d7ea3){const _0x4b9b7a=a1_0x2a6e13,_0x13d806=Date['UTC'](this[_0x4b9b7a(0xec)](),this['getMonth'](),this['getDate']()),_0x30cb9c=Date['UTC'](_0x5d7ea3[_0x4b9b7a(0xec)](),_0x5d7ea3[_0x4b9b7a(0xe1)](),_0x5d7ea3[_0x4b9b7a(0xdc)]());return Math[_0x4b9b7a(0xf0)]((_0x30cb9c-_0x13d806)/0x5265c00);},Date[a1_0x2a6e13(0xe7)][a1_0x2a6e13(0xe0)]=function(_0x12d04f){const _0x49384d=a1_0x2a6e13;return new Date(this[_0x49384d(0xf1)]()+_0x12d04f*0x36ee80);},Date['prototype'][a1_0x2a6e13(0xe4)]=function(_0x273c2e){const _0x643319=a1_0x2a6e13;return new Date(this[_0x643319(0xf1)]()+_0x273c2e*0xea60);};export{};
1
+ const a1_0x205f08=a1_0x453c;(function(_0x5f3d8f,_0x9aa666){const _0x5982e8=a1_0x453c,_0x45943e=_0x5f3d8f();while(!![]){try{const _0x3f5360=-parseInt(_0x5982e8(0xf8))/0x1+-parseInt(_0x5982e8(0xfd))/0x2*(parseInt(_0x5982e8(0xf9))/0x3)+parseInt(_0x5982e8(0xed))/0x4+-parseInt(_0x5982e8(0x105))/0x5*(parseInt(_0x5982e8(0x103))/0x6)+-parseInt(_0x5982e8(0x104))/0x7*(parseInt(_0x5982e8(0x100))/0x8)+parseInt(_0x5982e8(0xfb))/0x9*(-parseInt(_0x5982e8(0xf6))/0xa)+parseInt(_0x5982e8(0xfc))/0xb;if(_0x3f5360===_0x9aa666)break;else _0x45943e['push'](_0x45943e['shift']());}catch(_0x101b5f){_0x45943e['push'](_0x45943e['shift']());}}}(a1_0xc2cd,0x67a85));!Date['prototype'][a1_0x205f08(0xf7)]&&Object[a1_0x205f08(0xfa)](Date['prototype'],a1_0x205f08(0xf7),{'value':function(_0x3ded48){const _0x48b2a1=a1_0x205f08,_0x5784df=new Date(this['valueOf']());return _0x5784df['setDate'](_0x5784df[_0x48b2a1(0xfe)]()+_0x3ded48),_0x5784df;},'enumerable':![]});function a1_0xc2cd(){const _0x214488=['UTC','3019744KfXMFz','getDay','slice','addMinutes','floor','toISOString','diffDays','toShortDateString','getTime','93260hCmDkR','addDays','288049kzcVOz','33YabCUq','defineProperty','423etdkSx','23714218Mjxlzr','92534ExupSO','getDate','isWeekend','128UARpvk','getMonth','addHours','6BVJSRq','308483ItCRbo','2728905HeiMeT','getFullYear','prototype'];a1_0xc2cd=function(){return _0x214488;};return a1_0xc2cd();}function a1_0x453c(_0x129bd2,_0x3b6933){const _0xc2cd7f=a1_0xc2cd();return a1_0x453c=function(_0x453cef,_0x370b4f){_0x453cef=_0x453cef-0xeb;let _0x498e1f=_0xc2cd7f[_0x453cef];return _0x498e1f;},a1_0x453c(_0x129bd2,_0x3b6933);}!Date['prototype']['isWeekend']&&Object['defineProperty'](Date['prototype'],a1_0x205f08(0xff),{'value':function(){const _0x3a404a=a1_0x205f08,_0x496aa3=this[_0x3a404a(0xee)]();return _0x496aa3===0x0||_0x496aa3===0x6;},'enumerable':![]});!Date[a1_0x205f08(0xeb)]['toShortDateString']&&Object[a1_0x205f08(0xfa)](Date[a1_0x205f08(0xeb)],a1_0x205f08(0xf4),{'value':function(){const _0x491e37=a1_0x205f08;return this[_0x491e37(0xf2)]()[_0x491e37(0xef)](0x0,0xa);},'enumerable':![]});Date['prototype'][a1_0x205f08(0xf3)]=function(_0x8e5bd7){const _0x13d9fc=a1_0x205f08,_0x413237=Date[_0x13d9fc(0xec)](this[_0x13d9fc(0x106)](),this[_0x13d9fc(0x101)](),this[_0x13d9fc(0xfe)]()),_0x557d36=Date[_0x13d9fc(0xec)](_0x8e5bd7[_0x13d9fc(0x106)](),_0x8e5bd7['getMonth'](),_0x8e5bd7[_0x13d9fc(0xfe)]());return Math[_0x13d9fc(0xf1)]((_0x557d36-_0x413237)/0x5265c00);},Date[a1_0x205f08(0xeb)][a1_0x205f08(0x102)]=function(_0x36225a){return new Date(this['getTime']()+_0x36225a*0x36ee80);},Date[a1_0x205f08(0xeb)][a1_0x205f08(0xf0)]=function(_0x42ecef){const _0xf92900=a1_0x205f08;return new Date(this[_0xf92900(0xf5)]()+_0x42ecef*0xea60);};export{};
@@ -1 +1 @@
1
- const a2_0x5014d0=a2_0x2f5d;(function(_0x5e5af3,_0x4e6214){const _0xb173c6=a2_0x2f5d,_0x24fbfc=_0x5e5af3();while(!![]){try{const _0x3b4025=-parseInt(_0xb173c6(0x1a2))/0x1*(parseInt(_0xb173c6(0x1a3))/0x2)+parseInt(_0xb173c6(0x1a4))/0x3+parseInt(_0xb173c6(0x1a9))/0x4*(-parseInt(_0xb173c6(0x1ab))/0x5)+-parseInt(_0xb173c6(0x1ac))/0x6*(parseInt(_0xb173c6(0x1b2))/0x7)+parseInt(_0xb173c6(0x1a6))/0x8*(-parseInt(_0xb173c6(0x1ae))/0x9)+parseInt(_0xb173c6(0x1b3))/0xa+-parseInt(_0xb173c6(0x1a5))/0xb*(-parseInt(_0xb173c6(0x1a7))/0xc);if(_0x3b4025===_0x4e6214)break;else _0x24fbfc['push'](_0x24fbfc['shift']());}catch(_0x482e0c){_0x24fbfc['push'](_0x24fbfc['shift']());}}}(a2_0x43ed,0x9aef6));!Object['prototype']['hasValue']&&Object[a2_0x5014d0(0x1b4)](Object[a2_0x5014d0(0x1b1)],a2_0x5014d0(0x1ad),{'value':function(){return this!=null;},'enumerable':![]});!Object[a2_0x5014d0(0x1b1)][a2_0x5014d0(0x1aa)]&&Object['defineProperty'](Object[a2_0x5014d0(0x1b1)],'isEmpty',{'value':function(){const _0x556136=a2_0x5014d0;if(this==null)return!![];if(typeof this==='string'||Array[_0x556136(0x1af)](this))return this[_0x556136(0x1b5)]===0x0;if(typeof this==='object')return Object['keys'](this)['length']===0x0;return![];},'enumerable':![]});!Object['prototype'][a2_0x5014d0(0x1b0)]&&Object['defineProperty'](Object[a2_0x5014d0(0x1b1)],a2_0x5014d0(0x1b0),{'value':function(){const _0x114a6c=a2_0x5014d0,_0x272ffe=+this;return typeof _0x272ffe===_0x114a6c(0x1a8)&&!isNaN(_0x272ffe)&&isFinite(_0x272ffe);},'enumerable':![]});function a2_0x43ed(){const _0x44fdf0=['isEmpty','2699260IPTyks','6UKuEbF','hasValue','9055089JRyiii','isArray','isNumeric','prototype','2619407omXAfy','3964380XHwwKh','defineProperty','length','22309cgXQCF','112fQOMCT','2809503rwPlWX','33121055tWLFyT','8RJOoSG','12tFLUcW','number','8etROFl'];a2_0x43ed=function(){return _0x44fdf0;};return a2_0x43ed();}function a2_0x2f5d(_0x2e7481,_0x9ae40){const _0x43ede6=a2_0x43ed();return a2_0x2f5d=function(_0x2f5d26,_0x1477f8){_0x2f5d26=_0x2f5d26-0x1a2;let _0x303d4d=_0x43ede6[_0x2f5d26];return _0x303d4d;},a2_0x2f5d(_0x2e7481,_0x9ae40);}export{};
1
+ const a2_0x12806d=a2_0x5705;(function(_0x515dd9,_0x1ef8b8){const _0xc7a0f8=a2_0x5705,_0x8a7981=_0x515dd9();while(!![]){try{const _0x581dab=-parseInt(_0xc7a0f8(0x123))/0x1+-parseInt(_0xc7a0f8(0x12b))/0x2+parseInt(_0xc7a0f8(0x120))/0x3+-parseInt(_0xc7a0f8(0x121))/0x4*(parseInt(_0xc7a0f8(0x11c))/0x5)+-parseInt(_0xc7a0f8(0x12c))/0x6+-parseInt(_0xc7a0f8(0x124))/0x7*(-parseInt(_0xc7a0f8(0x11e))/0x8)+parseInt(_0xc7a0f8(0x129))/0x9;if(_0x581dab===_0x1ef8b8)break;else _0x8a7981['push'](_0x8a7981['shift']());}catch(_0x1a9474){_0x8a7981['push'](_0x8a7981['shift']());}}}(a2_0x4891,0xcf55e));!Object['prototype'][a2_0x12806d(0x125)]&&Object[a2_0x12806d(0x127)](Object[a2_0x12806d(0x12a)],'hasValue',{'value':function(){return this!=null;},'enumerable':![]});function a2_0x5705(_0x2b4841,_0x993b12){const _0x489191=a2_0x4891();return a2_0x5705=function(_0x5705db,_0x50e96b){_0x5705db=_0x5705db-0x11c;let _0x2e7913=_0x489191[_0x5705db];return _0x2e7913;},a2_0x5705(_0x2b4841,_0x993b12);}function a2_0x4891(){const _0x52a0af=['588514CjfeEo','3741864uhjPTV','10rZbnpX','isNumeric','3459344phJROe','isEmpty','1283520Hyuavh','1366300QRAEju','length','964168sfUCyn','7WrLiCw','hasValue','string','defineProperty','keys','22987863sSDLdC','prototype'];a2_0x4891=function(){return _0x52a0af;};return a2_0x4891();}!Object['prototype'][a2_0x12806d(0x11f)]&&Object['defineProperty'](Object['prototype'],'isEmpty',{'value':function(){const _0x3478bb=a2_0x12806d;if(this==null)return!![];if(typeof this===_0x3478bb(0x126)||Array['isArray'](this))return this['length']===0x0;if(typeof this==='object')return Object[_0x3478bb(0x128)](this)[_0x3478bb(0x122)]===0x0;return![];},'enumerable':![]});!Object['prototype'][a2_0x12806d(0x11d)]&&Object[a2_0x12806d(0x127)](Object['prototype'],a2_0x12806d(0x11d),{'value':function(){const _0x288400=+this;return typeof _0x288400==='number'&&!isNaN(_0x288400)&&isFinite(_0x288400);},'enumerable':![]});export{};
package/dist-obf/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xf8012c,_0x3e59ce){var _0x377d2a=a3_0xcd71,_0x2f50d4=_0xf8012c();while(!![]){try{var _0x3c1d52=-parseInt(_0x377d2a(0x8f))/0x1+parseInt(_0x377d2a(0x8d))/0x2*(-parseInt(_0x377d2a(0x89))/0x3)+parseInt(_0x377d2a(0x90))/0x4+-parseInt(_0x377d2a(0x91))/0x5*(parseInt(_0x377d2a(0x8c))/0x6)+-parseInt(_0x377d2a(0x8a))/0x7*(parseInt(_0x377d2a(0x88))/0x8)+-parseInt(_0x377d2a(0x8b))/0x9+parseInt(_0x377d2a(0x8e))/0xa*(parseInt(_0x377d2a(0x87))/0xb);if(_0x3c1d52===_0x3e59ce)break;else _0x2f50d4['push'](_0x2f50d4['shift']());}catch(_0xcfe50c){_0x2f50d4['push'](_0x2f50d4['shift']());}}}(a3_0x76c8,0x899ba));function a3_0xcd71(_0x27ea13,_0x4ddd5a){var _0x76c835=a3_0x76c8();return a3_0xcd71=function(_0xcd71a8,_0x2726c7){_0xcd71a8=_0xcd71a8-0x87;var _0x59b720=_0x76c835[_0xcd71a8];return _0x59b720;},a3_0xcd71(_0x27ea13,_0x4ddd5a);}import'./extensions';function a3_0x76c8(){var _0x37f89b=['143559IAKOUM','1543026DuwbiI','514vIPxKq','18557740omxCgK','771325VDVLpL','283952vSHCqX','5CWAoTy','11tNtsJZ','16gxBESH','1107QpdWKX','783440ivEWLA'];a3_0x76c8=function(){return _0x37f89b;};return a3_0x76c8();}export*from'./math';export*from'./collection';export*from'./string';export*from'./datetime';
1
+ (function(_0x5d0832,_0x44bd6a){var _0x38b25a=a3_0x2890,_0x35e7bd=_0x5d0832();while(!![]){try{var _0x5aef60=parseInt(_0x38b25a(0x189))/0x1*(-parseInt(_0x38b25a(0x18c))/0x2)+-parseInt(_0x38b25a(0x18d))/0x3+parseInt(_0x38b25a(0x190))/0x4+parseInt(_0x38b25a(0x18b))/0x5+-parseInt(_0x38b25a(0x18e))/0x6+parseInt(_0x38b25a(0x188))/0x7+-parseInt(_0x38b25a(0x18a))/0x8*(-parseInt(_0x38b25a(0x18f))/0x9);if(_0x5aef60===_0x44bd6a)break;else _0x35e7bd['push'](_0x35e7bd['shift']());}catch(_0x48e7cc){_0x35e7bd['push'](_0x35e7bd['shift']());}}}(a3_0x4996,0x33535));import'./extensions';function a3_0x4996(){var _0x58abab=['31648NGlHFC','558635HLBQCf','31WvqPxg','56136quTggO','1049025itFAtu','886JaDZns','666498vfmntU','1339770wJQaKz','477SOjCAn'];a3_0x4996=function(){return _0x58abab;};return a3_0x4996();}function a3_0x2890(_0x354082,_0x1dcd2d){var _0x49965f=a3_0x4996();return a3_0x2890=function(_0x28902d,_0x3b16ba){_0x28902d=_0x28902d-0x188;var _0x1c4a13=_0x49965f[_0x28902d];return _0x1c4a13;},a3_0x2890(_0x354082,_0x1dcd2d);}export*from'./math';export*from'./collection';export*from'./string';export*from'./datetime';
package/dist-obf/math.js CHANGED
@@ -1 +1 @@
1
- const a4_0x15b6a6=a4_0x4b2d;(function(_0x5cc534,_0x22d776){const _0x17548a=a4_0x4b2d,_0x20a805=_0x5cc534();while(!![]){try{const _0x9ff2a4=-parseInt(_0x17548a(0x18d))/0x1+-parseInt(_0x17548a(0x18c))/0x2*(-parseInt(_0x17548a(0x192))/0x3)+-parseInt(_0x17548a(0x186))/0x4+-parseInt(_0x17548a(0x193))/0x5+parseInt(_0x17548a(0x190))/0x6+-parseInt(_0x17548a(0x18b))/0x7*(parseInt(_0x17548a(0x18e))/0x8)+parseInt(_0x17548a(0x188))/0x9;if(_0x9ff2a4===_0x22d776)break;else _0x20a805['push'](_0x20a805['shift']());}catch(_0x192d32){_0x20a805['push'](_0x20a805['shift']());}}}(a4_0x1cfb,0x8110d));!Number[a4_0x15b6a6(0x185)][a4_0x15b6a6(0x18f)]&&(Number['prototype']['isEven']=function(){return(this['valueOf']()&0x1)===0x0;});!Number['prototype'][a4_0x15b6a6(0x191)]&&(Number[a4_0x15b6a6(0x185)]['isOdd']=function(){const _0xec5473=a4_0x15b6a6;return(this[_0xec5473(0x184)]()&0x1)===0x1;});function a4_0x4b2d(_0x4b117e,_0x2376e3){const _0x1cfbdf=a4_0x1cfb();return a4_0x4b2d=function(_0x4b2dd4,_0x3e91a9){_0x4b2dd4=_0x4b2dd4-0x184;let _0x405c85=_0x1cfbdf[_0x4b2dd4];return _0x405c85;},a4_0x4b2d(_0x4b117e,_0x2376e3);}!Number['prototype']['sqrt']&&(Number['prototype'][a4_0x15b6a6(0x189)]=function(){const _0x50ef42=a4_0x15b6a6;return Math[_0x50ef42(0x189)](this['valueOf']());});function a4_0x1cfb(){const _0x357fa5=['valueOf','prototype','800824peWJPJ','EPSILON','8909397nqzyVW','sqrt','pow','124082JyCPAc','62898MvKLsj','102535lzbicq','440oCSpnh','isEven','991872BOKeQz','isOdd','87VTjaPZ','1304710AhpkCm','round'];a4_0x1cfb=function(){return _0x357fa5;};return a4_0x1cfb();}!Number[a4_0x15b6a6(0x185)][a4_0x15b6a6(0x194)]&&(Number[a4_0x15b6a6(0x185)]['round']=function(_0x262e61=0x0){const _0x1ef420=a4_0x15b6a6,_0x2e6060=Math[_0x1ef420(0x18a)](0xa,_0x262e61);return Math['round']((this['valueOf']()+Number[_0x1ef420(0x187)])*_0x2e6060)/_0x2e6060;});export{};
1
+ const a4_0x5218dd=a4_0x18ba;function a4_0x1ced(){const _0x2e434e=['8595104evJkdi','sqrt','29470bkjUdC','EPSILON','isOdd','585815bfvCyP','68yrQuAx','round','1656412CoNIju','prototype','198831Hpctew','1687836stiBml','isEven','4068750BuREUf','valueOf'];a4_0x1ced=function(){return _0x2e434e;};return a4_0x1ced();}(function(_0x4235d8,_0x25479f){const _0x35241d=a4_0x18ba,_0x178764=_0x4235d8();while(!![]){try{const _0x174cbf=-parseInt(_0x35241d(0xce))/0x1+parseInt(_0x35241d(0xc2))/0x2+parseInt(_0x35241d(0xc4))/0x3*(parseInt(_0x35241d(0xc0))/0x4)+-parseInt(_0x35241d(0xcb))/0x5+-parseInt(_0x35241d(0xc5))/0x6+parseInt(_0x35241d(0xc7))/0x7+-parseInt(_0x35241d(0xc9))/0x8;if(_0x174cbf===_0x25479f)break;else _0x178764['push'](_0x178764['shift']());}catch(_0x176d20){_0x178764['push'](_0x178764['shift']());}}}(a4_0x1ced,0x8fbda));!Number['prototype']['isEven']&&(Number[a4_0x5218dd(0xc3)][a4_0x5218dd(0xc6)]=function(){return(this['valueOf']()&0x1)===0x0;});!Number[a4_0x5218dd(0xc3)][a4_0x5218dd(0xcd)]&&(Number['prototype'][a4_0x5218dd(0xcd)]=function(){return(this['valueOf']()&0x1)===0x1;});!Number[a4_0x5218dd(0xc3)]['sqrt']&&(Number['prototype'][a4_0x5218dd(0xca)]=function(){const _0x47c8f6=a4_0x5218dd;return Math['sqrt'](this[_0x47c8f6(0xc8)]());});function a4_0x18ba(_0xada248,_0x3f2e12){const _0x1ced70=a4_0x1ced();return a4_0x18ba=function(_0x18bae8,_0x276d3c){_0x18bae8=_0x18bae8-0xc0;let _0x1709c6=_0x1ced70[_0x18bae8];return _0x1709c6;},a4_0x18ba(_0xada248,_0x3f2e12);}!Number[a4_0x5218dd(0xc3)]['round']&&(Number[a4_0x5218dd(0xc3)][a4_0x5218dd(0xc1)]=function(_0x371bfd=0x0){const _0x376522=a4_0x5218dd,_0x53a452=Math['pow'](0xa,_0x371bfd);return Math[_0x376522(0xc1)]((this['valueOf']()+Number[_0x376522(0xcc)])*_0x53a452)/_0x53a452;});export{};
@@ -1 +1 @@
1
- const a5_0x391f53=a5_0x36a1;function a5_0x36a1(_0x21aa92,_0x849777){const _0x1c66ab=a5_0x1c66();return a5_0x36a1=function(_0x36a13f,_0x4da61f){_0x36a13f=_0x36a13f-0x1a6;let _0x1a29df=_0x1c66ab[_0x36a13f];return _0x1a29df;},a5_0x36a1(_0x21aa92,_0x849777);}(function(_0x409785,_0x5cf778){const _0x1b639c=a5_0x36a1,_0x10ca48=_0x409785();while(!![]){try{const _0x4c2e25=parseInt(_0x1b639c(0x1a7))/0x1*(parseInt(_0x1b639c(0x1a6))/0x2)+-parseInt(_0x1b639c(0x1b3))/0x3*(-parseInt(_0x1b639c(0x1a9))/0x4)+-parseInt(_0x1b639c(0x1ab))/0x5+-parseInt(_0x1b639c(0x1b2))/0x6+parseInt(_0x1b639c(0x1b0))/0x7+parseInt(_0x1b639c(0x1ac))/0x8*(parseInt(_0x1b639c(0x1aa))/0x9)+parseInt(_0x1b639c(0x1ad))/0xa*(parseInt(_0x1b639c(0x1ae))/0xb);if(_0x4c2e25===_0x5cf778)break;else _0x10ca48['push'](_0x10ca48['shift']());}catch(_0x58a835){_0x10ca48['push'](_0x10ca48['shift']());}}}(a5_0x1c66,0x19c23),String[a5_0x391f53(0x1af)][a5_0x391f53(0x1b1)]=function(){return this['length']===0x0;},String['prototype']['padLeft']=function(_0x2ed76e,_0x568992){const _0x2fc58b=a5_0x391f53,_0x336d8a=String(this),_0x3aba4a=_0x2ed76e-_0x336d8a['length'];if(_0x3aba4a<=0x0)return _0x336d8a;if(!_0x568992||_0x568992['length']===0x0)_0x568992='\x20';let _0x1ad866='';if(_0x568992['length']===0x1)_0x1ad866=new Array(_0x3aba4a+0x1)[_0x2fc58b(0x1a8)](_0x568992);else{while(_0x1ad866[_0x2fc58b(0x1b4)]<_0x3aba4a){_0x1ad866+=_0x568992;}_0x1ad866=_0x1ad866['slice'](0x0,_0x3aba4a);}return _0x1ad866+_0x336d8a;},String['prototype']['padRight']=function(_0x27380e,_0x54f588){const _0x44374a=a5_0x391f53,_0x566b9f=String(this),_0x24c17f=_0x27380e-_0x566b9f['length'];if(_0x24c17f<=0x0)return _0x566b9f;if(!_0x54f588||_0x54f588[_0x44374a(0x1b4)]===0x0)_0x54f588='\x20';let _0x3e6b8f='';if(_0x54f588['length']===0x1)_0x3e6b8f=new Array(_0x24c17f+0x1)['join'](_0x54f588);else{while(_0x3e6b8f[_0x44374a(0x1b4)]<_0x24c17f){_0x3e6b8f+=_0x54f588;}_0x3e6b8f=_0x3e6b8f['slice'](0x0,_0x24c17f);}return _0x566b9f+_0x3e6b8f;});function a5_0x1c66(){const _0x4e119d=['join','70624HNxwkF','3609zdcSUu','439495pQRyCF','2032tUwhVu','23150UIITnG','132HHCIfB','prototype','1006600zPlcXq','isNullOrEmpty','724764jeIVHP','3yJMFYa','length','9244TSzpPj','5jIpYVq'];a5_0x1c66=function(){return _0x4e119d;};return a5_0x1c66();}export{};
1
+ const a5_0x3a44e2=a5_0x51b0;function a5_0x5a41(){const _0x587a68=['477646tPEVeg','2403216KWlyym','2862NzhkXn','12640HfHWAF','join','50132JBiZiy','4364196XSfSak','21126IXveoj','1118504zqflzK','155NWDXDl','length','1888pPoWIK','prototype'];a5_0x5a41=function(){return _0x587a68;};return a5_0x5a41();}(function(_0x3a235f,_0x4d6aa7){const _0x2e5129=a5_0x51b0,_0x15dfc8=_0x3a235f();while(!![]){try{const _0x566d95=-parseInt(_0x2e5129(0xa8))/0x1+-parseInt(_0x2e5129(0xb0))/0x2+parseInt(_0x2e5129(0xa9))/0x3+-parseInt(_0x2e5129(0xad))/0x4*(parseInt(_0x2e5129(0xa4))/0x5)+parseInt(_0x2e5129(0xae))/0x6+parseInt(_0x2e5129(0xaf))/0x7*(parseInt(_0x2e5129(0xa6))/0x8)+parseInt(_0x2e5129(0xaa))/0x9*(-parseInt(_0x2e5129(0xab))/0xa);if(_0x566d95===_0x4d6aa7)break;else _0x15dfc8['push'](_0x15dfc8['shift']());}catch(_0x4297bf){_0x15dfc8['push'](_0x15dfc8['shift']());}}}(a5_0x5a41,0x64e81),String[a5_0x3a44e2(0xa7)]['isNullOrEmpty']=function(){const _0x51f3e0=a5_0x3a44e2;return this[_0x51f3e0(0xa5)]===0x0;},String[a5_0x3a44e2(0xa7)]['padLeft']=function(_0x39ba53,_0x853750){const _0x1cc440=a5_0x3a44e2,_0x2419a1=String(this),_0x36ca3f=_0x39ba53-_0x2419a1['length'];if(_0x36ca3f<=0x0)return _0x2419a1;if(!_0x853750||_0x853750[_0x1cc440(0xa5)]===0x0)_0x853750='\x20';let _0x48d522='';if(_0x853750['length']===0x1)_0x48d522=new Array(_0x36ca3f+0x1)[_0x1cc440(0xac)](_0x853750);else{while(_0x48d522['length']<_0x36ca3f){_0x48d522+=_0x853750;}_0x48d522=_0x48d522['slice'](0x0,_0x36ca3f);}return _0x48d522+_0x2419a1;},String['prototype']['padRight']=function(_0x135d0e,_0x197760){const _0x3415e0=a5_0x3a44e2,_0x2a8bb3=String(this),_0x50a4fb=_0x135d0e-_0x2a8bb3[_0x3415e0(0xa5)];if(_0x50a4fb<=0x0)return _0x2a8bb3;if(!_0x197760||_0x197760[_0x3415e0(0xa5)]===0x0)_0x197760='\x20';let _0x176f1c='';if(_0x197760[_0x3415e0(0xa5)]===0x1)_0x176f1c=new Array(_0x50a4fb+0x1)['join'](_0x197760);else{while(_0x176f1c['length']<_0x50a4fb){_0x176f1c+=_0x197760;}_0x176f1c=_0x176f1c['slice'](0x0,_0x50a4fb);}return _0x2a8bb3+_0x176f1c;});function a5_0x51b0(_0xf442d4,_0x4287de){const _0x5a4105=a5_0x5a41();return a5_0x51b0=function(_0x51b0a0,_0x50876e){_0x51b0a0=_0x51b0a0-0xa4;let _0x2095e7=_0x5a4105[_0x51b0a0];return _0x2095e7;},a5_0x51b0(_0xf442d4,_0x4287de);}export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agogte/utilynx",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "description": "High-level utility functions for working with arrays, math, strings, and more — bringing expressive language features to JavaScript and TypeScript.",
6
6
  "main": "dist-obf/index.js",