es-toolkit 1.13.1-dev.300 → 1.13.1-dev.301

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/index.mjs CHANGED
@@ -1,5 +1,11 @@
1
1
  import "./chunk-NKLIE2OI.mjs";
2
2
  import "./chunk-XT74R35S.mjs";
3
+ import {
4
+ camelCase
5
+ } from "./chunk-Y5V7UAZZ.mjs";
6
+ import {
7
+ capitalize
8
+ } from "./chunk-U56ZOM7L.mjs";
3
9
  import {
4
10
  kebabCase
5
11
  } from "./chunk-EYYZQFOP.mjs";
@@ -12,6 +18,7 @@ import {
12
18
  import {
13
19
  startCase
14
20
  } from "./chunk-QXTNZR7B.mjs";
21
+ import "./chunk-WVQ7YVRK.mjs";
15
22
  import "./chunk-4OIZM4HS.mjs";
16
23
  import {
17
24
  withTimeout
@@ -20,20 +27,19 @@ import "./chunk-CVVZHOJX.mjs";
20
27
  import {
21
28
  delay
22
29
  } from "./chunk-O64NE2P4.mjs";
30
+ import "./chunk-Y3ZTWIBR.mjs";
23
31
  import {
24
- camelCase
25
- } from "./chunk-Y5V7UAZZ.mjs";
26
- import {
27
- capitalize
28
- } from "./chunk-U56ZOM7L.mjs";
29
- import "./chunk-WVQ7YVRK.mjs";
30
- import "./chunk-B645AYL4.mjs";
32
+ isNotNil
33
+ } from "./chunk-BMRTZMRE.mjs";
31
34
  import {
32
35
  isNull
33
36
  } from "./chunk-AIRSKN47.mjs";
34
37
  import {
35
38
  isUndefined
36
39
  } from "./chunk-VH2PV426.mjs";
40
+ import {
41
+ isArray
42
+ } from "./chunk-AGDMW65V.mjs";
37
43
  import {
38
44
  isEqual
39
45
  } from "./chunk-JYSV56US.mjs";
@@ -43,9 +49,6 @@ import {
43
49
  import {
44
50
  isNil
45
51
  } from "./chunk-WMM7TZLG.mjs";
46
- import {
47
- isNotNil
48
- } from "./chunk-BMRTZMRE.mjs";
49
52
  import "./chunk-54TK5BIS.mjs";
50
53
  import {
51
54
  omitBy
@@ -96,32 +99,7 @@ import {
96
99
  import {
97
100
  range
98
101
  } from "./chunk-DPH2KE6O.mjs";
99
- import "./chunk-236H5JZJ.mjs";
100
- import {
101
- debounce
102
- } from "./chunk-3IP4JVLL.mjs";
103
- import {
104
- negate
105
- } from "./chunk-BOOQBJN2.mjs";
106
- import {
107
- noop
108
- } from "./chunk-LKXCOLNY.mjs";
109
- import {
110
- once
111
- } from "./chunk-CMBC4MXG.mjs";
112
- import {
113
- throttle
114
- } from "./chunk-QOJGMVVR.mjs";
115
102
  import "./chunk-DDH7K4QM.mjs";
116
- import {
117
- zipObject
118
- } from "./chunk-6GWEY5EL.mjs";
119
- import {
120
- zipWith
121
- } from "./chunk-4KYXHZ4R.mjs";
122
- import {
123
- unzip
124
- } from "./chunk-UYZKMBDO.mjs";
125
103
  import {
126
104
  unzipWith
127
105
  } from "./chunk-IFNXROZR.mjs";
@@ -141,11 +119,11 @@ import {
141
119
  zip
142
120
  } from "./chunk-IDCUZVJL.mjs";
143
121
  import {
144
- takeRightWhile
145
- } from "./chunk-NTLX2MPV.mjs";
122
+ zipObject
123
+ } from "./chunk-6GWEY5EL.mjs";
146
124
  import {
147
- takeWhile
148
- } from "./chunk-2IXFGSUA.mjs";
125
+ zipWith
126
+ } from "./chunk-4KYXHZ4R.mjs";
149
127
  import {
150
128
  toFilled
151
129
  } from "./chunk-OP4OAKQJ.mjs";
@@ -158,9 +136,6 @@ import {
158
136
  import {
159
137
  unionWith
160
138
  } from "./chunk-2ZCITDMK.mjs";
161
- import {
162
- uniqWith
163
- } from "./chunk-237HGSZS.mjs";
164
139
  import {
165
140
  uniq
166
141
  } from "./chunk-DVK2N4KC.mjs";
@@ -168,11 +143,11 @@ import {
168
143
  uniqBy
169
144
  } from "./chunk-B4COTK4K.mjs";
170
145
  import {
171
- orderBy
172
- } from "./chunk-7B7W36UP.mjs";
146
+ uniqWith
147
+ } from "./chunk-237HGSZS.mjs";
173
148
  import {
174
- partition
175
- } from "./chunk-DN3NOZ3H.mjs";
149
+ unzip
150
+ } from "./chunk-UYZKMBDO.mjs";
176
151
  import {
177
152
  sample
178
153
  } from "./chunk-2KNLZB7V.mjs";
@@ -198,11 +173,11 @@ import {
198
173
  takeRight
199
174
  } from "./chunk-IQLKIDXF.mjs";
200
175
  import {
201
- initial
202
- } from "./chunk-XPSOKBRZ.mjs";
176
+ takeRightWhile
177
+ } from "./chunk-NTLX2MPV.mjs";
203
178
  import {
204
- intersection
205
- } from "./chunk-FVVSE2F2.mjs";
179
+ takeWhile
180
+ } from "./chunk-2IXFGSUA.mjs";
206
181
  import {
207
182
  intersectionBy
208
183
  } from "./chunk-O6UXZR3U.mjs";
@@ -222,17 +197,14 @@ import {
222
197
  minBy
223
198
  } from "./chunk-IJD7FE2Z.mjs";
224
199
  import {
225
- fill
226
- } from "./chunk-YFN6KOC4.mjs";
200
+ orderBy
201
+ } from "./chunk-7B7W36UP.mjs";
227
202
  import {
228
- flatMap
229
- } from "./chunk-UY76KTPE.mjs";
203
+ partition
204
+ } from "./chunk-DN3NOZ3H.mjs";
230
205
  import {
231
206
  flattenDeep
232
207
  } from "./chunk-ML727RRJ.mjs";
233
- import {
234
- flatten
235
- } from "./chunk-33MSBDC6.mjs";
236
208
  import {
237
209
  forEachRight
238
210
  } from "./chunk-IEA53J7P.mjs";
@@ -243,11 +215,11 @@ import {
243
215
  head
244
216
  } from "./chunk-HM2JT2RX.mjs";
245
217
  import {
246
- countBy
247
- } from "./chunk-CRSKT4WW.mjs";
218
+ initial
219
+ } from "./chunk-XPSOKBRZ.mjs";
248
220
  import {
249
- difference
250
- } from "./chunk-JPUKH67K.mjs";
221
+ intersection
222
+ } from "./chunk-FVVSE2F2.mjs";
251
223
  import {
252
224
  differenceBy
253
225
  } from "./chunk-LVWX5B43.mjs";
@@ -266,6 +238,27 @@ import {
266
238
  import {
267
239
  dropWhile
268
240
  } from "./chunk-LJ2C6MVP.mjs";
241
+ import {
242
+ fill
243
+ } from "./chunk-YFN6KOC4.mjs";
244
+ import {
245
+ flatMap
246
+ } from "./chunk-UY76KTPE.mjs";
247
+ import {
248
+ flatten
249
+ } from "./chunk-33MSBDC6.mjs";
250
+ import {
251
+ chunk
252
+ } from "./chunk-E6C5EZQA.mjs";
253
+ import {
254
+ compact
255
+ } from "./chunk-DTJJIMKJ.mjs";
256
+ import {
257
+ countBy
258
+ } from "./chunk-CRSKT4WW.mjs";
259
+ import {
260
+ difference
261
+ } from "./chunk-JPUKH67K.mjs";
269
262
  import "./chunk-F47GLYUU.mjs";
270
263
  import {
271
264
  AbortError
@@ -273,12 +266,22 @@ import {
273
266
  import {
274
267
  TimeoutError
275
268
  } from "./chunk-KIOYQRMQ.mjs";
269
+ import "./chunk-236H5JZJ.mjs";
276
270
  import {
277
- chunk
278
- } from "./chunk-E6C5EZQA.mjs";
271
+ negate
272
+ } from "./chunk-BOOQBJN2.mjs";
279
273
  import {
280
- compact
281
- } from "./chunk-DTJJIMKJ.mjs";
274
+ noop
275
+ } from "./chunk-LKXCOLNY.mjs";
276
+ import {
277
+ once
278
+ } from "./chunk-CMBC4MXG.mjs";
279
+ import {
280
+ throttle
281
+ } from "./chunk-QOJGMVVR.mjs";
282
+ import {
283
+ debounce
284
+ } from "./chunk-3IP4JVLL.mjs";
282
285
  import "./chunk-24FKGR6U.mjs";
283
286
  export {
284
287
  AbortError,
@@ -313,6 +316,7 @@ export {
313
316
  intersectionBy,
314
317
  intersectionWith,
315
318
  invert,
319
+ isArray,
316
320
  isEqual,
317
321
  isLength,
318
322
  isNil,
@@ -5,3 +5,4 @@ export { isNull } from './isNull.mjs';
5
5
  export { isUndefined } from './isUndefined.mjs';
6
6
  export { isLength } from './isLength.mjs';
7
7
  export { isPlainObject } from './isPlainObject.mjs';
8
+ export { isArray } from './isArray.mjs';
@@ -5,3 +5,4 @@ export { isNull } from './isNull.js';
5
5
  export { isUndefined } from './isUndefined.js';
6
6
  export { isLength } from './isLength.js';
7
7
  export { isPlainObject } from './isPlainObject.js';
8
+ export { isArray } from './isArray.js';
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/predicate/index.ts
21
21
  var predicate_exports = {};
22
22
  __export(predicate_exports, {
23
+ isArray: () => isArray,
23
24
  isEqual: () => isEqual,
24
25
  isLength: () => isLength,
25
26
  isNil: () => isNil,
@@ -118,8 +119,14 @@ function isPlainObject(object) {
118
119
  }
119
120
  return Object.getPrototypeOf(object) === proto;
120
121
  }
122
+
123
+ // src/predicate/isArray.ts
124
+ function isArray(value) {
125
+ return Array.isArray(value);
126
+ }
121
127
  // Annotate the CommonJS export names for ESM import in node:
122
128
  0 && (module.exports = {
129
+ isArray,
123
130
  isEqual,
124
131
  isLength,
125
132
  isNil,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/predicate/index.ts","../../src/array/uniq.ts","../../src/array/union.ts","../../src/predicate/isEqual.ts","../../src/predicate/isNil.ts","../../src/predicate/isNotNil.ts","../../src/predicate/isNull.ts","../../src/predicate/isUndefined.ts","../../src/predicate/isLength.ts","../../src/predicate/isPlainObject.ts"],"sourcesContent":["export { isEqual } from './isEqual.ts';\nexport { isNil } from './isNil.ts';\nexport { isNotNil } from './isNotNil.ts';\nexport { isNull } from './isNull.ts';\nexport { isUndefined } from './isUndefined.ts';\nexport { isLength } from './isLength.ts';\nexport { isPlainObject } from './isPlainObject.ts';\n","/**\n * Creates a duplicate-free version of an array.\n *\n * This function takes an array and returns a new array containing only the unique values\n * from the original array, preserving the order of first occurrence.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} arr - The array to process.\n * @returns {T[]} A new array with only unique values from the original array.\n *\n * @example\n * const array = [1, 2, 2, 3, 4, 4, 5];\n * const result = uniq(array);\n * // result will be [1, 2, 3, 4, 5]\n */\nexport function uniq<T>(arr: readonly T[]): T[] {\n return Array.from(new Set(arr));\n}\n","import { uniq } from './uniq.ts';\n\n/**\n * Creates an array of unique values from all given arrays.\n *\n * This function takes two arrays, merges them into a single array, and returns a new array\n * containing only the unique values from the merged array.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} arr1 - The first array to merge and filter for unique values.\n * @param {T[]} arr2 - The second array to merge and filter for unique values.\n * @returns {T[]} A new array of unique values.\n *\n * @example\n * const array1 = [1, 2, 3];\n * const array2 = [3, 4, 5];\n * const result = union(array1, array2);\n * // result will be [1, 2, 3, 4, 5]\n */\nexport function union<T>(arr1: readonly T[], arr2: readonly T[]): T[] {\n return uniq(arr1.concat(arr2));\n}\n","import { union } from \"../array/union.ts\";\n\n/**\n * Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.\n *\n * @param {unknown} a - The first value to compare.\n * @param {unknown} b - The second value to compare.\n * @returns {boolean} `true` if the values are equal, otherwise `false`.\n *\n * @example\n * isEqual(1, 1); // true\n * isEqual({ a: 1 }, { a: 1 }); // true\n * isEqual(/abc/g, /abc/g); // true\n * isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true\n * isEqual([1, 2, 3], [1, 2, 3]); // true\n */\nexport function isEqual(a: unknown, b: unknown): boolean {\n if (Object.is(a, b)) {\n return true;\n }\n\n if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime();\n }\n\n if (a instanceof RegExp && b instanceof RegExp) {\n return a.source === b.source && a.flags === b.flags;\n }\n\n if (typeof a !== 'object' || typeof b !== 'object' || a === null || b === null) {\n return false;\n }\n\n const aKeys = Object.keys(a as object);\n const bKeys = Object.keys(b as object);\n\n if (aKeys.length !== bKeys.length) {\n return false;\n }\n\n // check if all keys in both arrays match\n if (union(aKeys, bKeys).length !== aKeys.length) {\n return false;\n }\n\n for (let i = 0; i < aKeys.length; i++) {\n const propKey = aKeys[i];\n const aProp = (a as any)[propKey];\n const bProp = (b as any)[propKey];\n \n if (!isEqual(aProp, bProp)) {\n return false;\n }\n }\n\n return true;\n}\n","/**\n * Checks if a given value is null or undefined.\n *\n * This function tests whether the provided value is either `null` or `undefined`.\n * It returns `true` if the value is `null` or `undefined`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null` or `undefined`.\n *\n * @param {unknown} x - The value to test for null or undefined.\n * @returns {boolean} `true` if the value is null or undefined, `false` otherwise.\n *\n * @example\n * const value1 = null;\n * const value2 = undefined;\n * const value3 = 42;\n * const result1 = isNil(value1); // true\n * const result2 = isNil(value2); // true\n * const result3 = isNil(value3); // false\n */\nexport function isNil(x: unknown): x is null | undefined {\n return x == null;\n}\n","/**\n * Checks if the given value is not null nor undefined.\n *\n * The main use of this function is to be used with TypeScript as a type predicate.\n *\n * @template T - The type of value.\n * @param {T | null | undefined} x - The value to test if it is not null nor undefined.\n * @returns {x is T} True if the value is not null nor undefined, false otherwise.\n *\n * @example\n * // Here the type of `arr` is (number | undefined)[]\n * const arr = [1, undefined, 3];\n * // Here the type of `result` is number[]\n * const result = arr.filter(isNotNil);\n * // result will be [1, 3]\n */\nexport function isNotNil<T>(x: T | null | undefined): x is T {\n return x !== null && x !== undefined;\n}\n","/**\n * Checks if the given value is null.\n *\n * This function tests whether the provided value is strictly equal to `null`.\n * It returns `true` if the value is `null`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null`.\n *\n * @param {unknown} x - The value to test if it is null.\n * @returns {x is null} True if the value is null, false otherwise.\n *\n * @example\n * const value1 = null;\n * const value2 = undefined;\n * const value3 = 42;\n *\n * console.log(isNull(value1)); // true\n * console.log(isNull(value2)); // false\n * console.log(isNull(value3)); // false\n */\nexport function isNull(x: unknown): x is null {\n return x === null;\n}\n","/**\n * Checks if the given value is undefined.\n *\n * This function tests whether the provided value is strictly equal to `undefined`.\n * It returns `true` if the value is `undefined`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `undefined`.\n *\n * @param {unknown} x - The value to test if it is undefined.\n * @returns {x is undefined} true if the value is undefined, false otherwise.\n *\n * @example\n * const value1 = undefined;\n * const value2 = null;\n * const value3 = 42;\n *\n * console.log(isUndefined(value1)); // true\n * console.log(isUndefined(value2)); // false\n * console.log(isUndefined(value3)); // false\n */\nexport function isUndefined(x: unknown): x is undefined {\n return x === undefined;\n}\n","export function isLength(value: unknown): value is number {\n return typeof value === 'number' && value > -1 && value % 1 === 0 && value <= Number.MAX_SAFE_INTEGER;\n}\n","/**\n * Checks if a given value is a plain object.\n * \n * @param {object} object - The value to check.\n * @returns {boolean} - True if the value is a plain object, otherwise false.\n * \n * @example\n * console.log(isPlainObject({})); // true\n * console.log(isPlainObject([])); // false\n * console.log(isPlainObject(null)); // false\n * console.log(isPlainObject(Object.create(null))); // true\n * console.log(Buffer.from('hello, world')); // false\n */\nexport function isPlainObject(object: object): boolean {\n if (typeof object !== 'object') {\n return false;\n }\n\n if (object == null) {\n return false;\n }\n\n if (Object.getPrototypeOf(object) === null) {\n return true;\n }\n\n if (object.toString() !== '[object Object]') {\n return false;\n }\n\n let proto = object;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(object) === proto;\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACeO,SAAS,KAAQ,KAAwB;AAC9C,SAAO,MAAM,KAAK,IAAI,IAAI,GAAG,CAAC;AAChC;;;ACEO,SAAS,MAAS,MAAoB,MAAyB;AACpE,SAAO,KAAK,KAAK,OAAO,IAAI,CAAC;AAC/B;;;ACLO,SAAS,QAAQ,GAAY,GAAqB;AACvD,MAAI,OAAO,GAAG,GAAG,CAAC,GAAG;AACnB,WAAO;AAAA,EACT;AAEA,MAAI,aAAa,QAAQ,aAAa,MAAM;AAC1C,WAAO,EAAE,QAAQ,MAAM,EAAE,QAAQ;AAAA,EACnC;AAEA,MAAI,aAAa,UAAU,aAAa,QAAQ;AAC9C,WAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE;AAAA,EAChD;AAEA,MAAI,OAAO,MAAM,YAAY,OAAO,MAAM,YAAY,MAAM,QAAQ,MAAM,MAAM;AAC9E,WAAO;AAAA,EACT;AAEA,QAAM,QAAQ,OAAO,KAAK,CAAW;AACrC,QAAM,QAAQ,OAAO,KAAK,CAAW;AAErC,MAAI,MAAM,WAAW,MAAM,QAAQ;AACjC,WAAO;AAAA,EACT;AAGA,MAAI,MAAM,OAAO,KAAK,EAAE,WAAW,MAAM,QAAQ;AAC/C,WAAO;AAAA,EACT;AAEA,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,UAAM,UAAU,MAAM,CAAC;AACvB,UAAM,QAAS,EAAU,OAAO;AAChC,UAAM,QAAS,EAAU,OAAO;AAEhC,QAAI,CAAC,QAAQ,OAAO,KAAK,GAAG;AAC1B,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;;;ACrCO,SAAS,MAAM,GAAmC;AACvD,SAAO,KAAK;AACd;;;ACLO,SAAS,SAAY,GAAiC;AAC3D,SAAO,MAAM,QAAQ,MAAM;AAC7B;;;ACEO,SAAS,OAAO,GAAuB;AAC5C,SAAO,MAAM;AACf;;;ACFO,SAAS,YAAY,GAA4B;AACtD,SAAO,MAAM;AACf;;;ACtBO,SAAS,SAAS,OAAiC;AACxD,SAAO,OAAO,UAAU,YAAY,QAAQ,MAAM,QAAQ,MAAM,KAAK,SAAS,OAAO;AACvF;;;ACWO,SAAS,cAAc,QAAyB;AACrD,MAAI,OAAO,WAAW,UAAU;AAC9B,WAAO;AAAA,EACT;AAEA,MAAI,UAAU,MAAM;AAClB,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,eAAe,MAAM,MAAM,MAAM;AAC1C,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,SAAS,MAAM,mBAAmB;AAC3C,WAAO;AAAA,EACT;AAEA,MAAI,QAAQ;AAEZ,SAAO,OAAO,eAAe,KAAK,MAAM,MAAM;AAC5C,YAAQ,OAAO,eAAe,KAAK;AAAA,EACrC;AAEA,SAAO,OAAO,eAAe,MAAM,MAAM;AAC3C;","names":[]}
1
+ {"version":3,"sources":["../../src/predicate/index.ts","../../src/array/uniq.ts","../../src/array/union.ts","../../src/predicate/isEqual.ts","../../src/predicate/isNil.ts","../../src/predicate/isNotNil.ts","../../src/predicate/isNull.ts","../../src/predicate/isUndefined.ts","../../src/predicate/isLength.ts","../../src/predicate/isPlainObject.ts","../../src/predicate/isArray.ts"],"sourcesContent":["export { isEqual } from './isEqual.ts';\nexport { isNil } from './isNil.ts';\nexport { isNotNil } from './isNotNil.ts';\nexport { isNull } from './isNull.ts';\nexport { isUndefined } from './isUndefined.ts';\nexport { isLength } from './isLength.ts';\nexport { isPlainObject } from './isPlainObject.ts';\nexport { isArray } from './isArray.ts';\n","/**\n * Creates a duplicate-free version of an array.\n *\n * This function takes an array and returns a new array containing only the unique values\n * from the original array, preserving the order of first occurrence.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} arr - The array to process.\n * @returns {T[]} A new array with only unique values from the original array.\n *\n * @example\n * const array = [1, 2, 2, 3, 4, 4, 5];\n * const result = uniq(array);\n * // result will be [1, 2, 3, 4, 5]\n */\nexport function uniq<T>(arr: readonly T[]): T[] {\n return Array.from(new Set(arr));\n}\n","import { uniq } from './uniq.ts';\n\n/**\n * Creates an array of unique values from all given arrays.\n *\n * This function takes two arrays, merges them into a single array, and returns a new array\n * containing only the unique values from the merged array.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} arr1 - The first array to merge and filter for unique values.\n * @param {T[]} arr2 - The second array to merge and filter for unique values.\n * @returns {T[]} A new array of unique values.\n *\n * @example\n * const array1 = [1, 2, 3];\n * const array2 = [3, 4, 5];\n * const result = union(array1, array2);\n * // result will be [1, 2, 3, 4, 5]\n */\nexport function union<T>(arr1: readonly T[], arr2: readonly T[]): T[] {\n return uniq(arr1.concat(arr2));\n}\n","import { union } from \"../array/union.ts\";\n\n/**\n * Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.\n *\n * @param {unknown} a - The first value to compare.\n * @param {unknown} b - The second value to compare.\n * @returns {boolean} `true` if the values are equal, otherwise `false`.\n *\n * @example\n * isEqual(1, 1); // true\n * isEqual({ a: 1 }, { a: 1 }); // true\n * isEqual(/abc/g, /abc/g); // true\n * isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true\n * isEqual([1, 2, 3], [1, 2, 3]); // true\n */\nexport function isEqual(a: unknown, b: unknown): boolean {\n if (Object.is(a, b)) {\n return true;\n }\n\n if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime();\n }\n\n if (a instanceof RegExp && b instanceof RegExp) {\n return a.source === b.source && a.flags === b.flags;\n }\n\n if (typeof a !== 'object' || typeof b !== 'object' || a === null || b === null) {\n return false;\n }\n\n const aKeys = Object.keys(a as object);\n const bKeys = Object.keys(b as object);\n\n if (aKeys.length !== bKeys.length) {\n return false;\n }\n\n // check if all keys in both arrays match\n if (union(aKeys, bKeys).length !== aKeys.length) {\n return false;\n }\n\n for (let i = 0; i < aKeys.length; i++) {\n const propKey = aKeys[i];\n const aProp = (a as any)[propKey];\n const bProp = (b as any)[propKey];\n \n if (!isEqual(aProp, bProp)) {\n return false;\n }\n }\n\n return true;\n}\n","/**\n * Checks if a given value is null or undefined.\n *\n * This function tests whether the provided value is either `null` or `undefined`.\n * It returns `true` if the value is `null` or `undefined`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null` or `undefined`.\n *\n * @param {unknown} x - The value to test for null or undefined.\n * @returns {boolean} `true` if the value is null or undefined, `false` otherwise.\n *\n * @example\n * const value1 = null;\n * const value2 = undefined;\n * const value3 = 42;\n * const result1 = isNil(value1); // true\n * const result2 = isNil(value2); // true\n * const result3 = isNil(value3); // false\n */\nexport function isNil(x: unknown): x is null | undefined {\n return x == null;\n}\n","/**\n * Checks if the given value is not null nor undefined.\n *\n * The main use of this function is to be used with TypeScript as a type predicate.\n *\n * @template T - The type of value.\n * @param {T | null | undefined} x - The value to test if it is not null nor undefined.\n * @returns {x is T} True if the value is not null nor undefined, false otherwise.\n *\n * @example\n * // Here the type of `arr` is (number | undefined)[]\n * const arr = [1, undefined, 3];\n * // Here the type of `result` is number[]\n * const result = arr.filter(isNotNil);\n * // result will be [1, 3]\n */\nexport function isNotNil<T>(x: T | null | undefined): x is T {\n return x !== null && x !== undefined;\n}\n","/**\n * Checks if the given value is null.\n *\n * This function tests whether the provided value is strictly equal to `null`.\n * It returns `true` if the value is `null`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null`.\n *\n * @param {unknown} x - The value to test if it is null.\n * @returns {x is null} True if the value is null, false otherwise.\n *\n * @example\n * const value1 = null;\n * const value2 = undefined;\n * const value3 = 42;\n *\n * console.log(isNull(value1)); // true\n * console.log(isNull(value2)); // false\n * console.log(isNull(value3)); // false\n */\nexport function isNull(x: unknown): x is null {\n return x === null;\n}\n","/**\n * Checks if the given value is undefined.\n *\n * This function tests whether the provided value is strictly equal to `undefined`.\n * It returns `true` if the value is `undefined`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `undefined`.\n *\n * @param {unknown} x - The value to test if it is undefined.\n * @returns {x is undefined} true if the value is undefined, false otherwise.\n *\n * @example\n * const value1 = undefined;\n * const value2 = null;\n * const value3 = 42;\n *\n * console.log(isUndefined(value1)); // true\n * console.log(isUndefined(value2)); // false\n * console.log(isUndefined(value3)); // false\n */\nexport function isUndefined(x: unknown): x is undefined {\n return x === undefined;\n}\n","export function isLength(value: unknown): value is number {\n return typeof value === 'number' && value > -1 && value % 1 === 0 && value <= Number.MAX_SAFE_INTEGER;\n}\n","/**\n * Checks if a given value is a plain object.\n * \n * @param {object} object - The value to check.\n * @returns {boolean} - True if the value is a plain object, otherwise false.\n * \n * @example\n * console.log(isPlainObject({})); // true\n * console.log(isPlainObject([])); // false\n * console.log(isPlainObject(null)); // false\n * console.log(isPlainObject(Object.create(null))); // true\n * console.log(Buffer.from('hello, world')); // false\n */\nexport function isPlainObject(object: object): boolean {\n if (typeof object !== 'object') {\n return false;\n }\n\n if (object == null) {\n return false;\n }\n\n if (Object.getPrototypeOf(object) === null) {\n return true;\n }\n\n if (object.toString() !== '[object Object]') {\n return false;\n }\n\n let proto = object;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(object) === proto;\n}","/**\n * Checks if the given value is an array.\n *\n * This function tests whether the provided value is an array or not.\n * It returns `true` if the value is an array, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an array.\n *\n * @template T - The type of value.\n * @param {T} value - The value to test if it is an array.\n * @returns {value is Extract<T, unknown[]>} `true` if the value is an array, `false` otherwise.\n *\n * @example\n * const value1 = [1, 2, 3];\n * const value2 = 'abc';\n * const value3 = () => {};\n *\n * console.log(isArray(value1)); // true\n * console.log(isArray(value2)); // false\n * console.log(isArray(value3)); // false\n */\nexport function isArray<T>(value: T): value is Extract<T, readonly unknown[]> {\n return Array.isArray(value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACeO,SAAS,KAAQ,KAAwB;AAC9C,SAAO,MAAM,KAAK,IAAI,IAAI,GAAG,CAAC;AAChC;;;ACEO,SAAS,MAAS,MAAoB,MAAyB;AACpE,SAAO,KAAK,KAAK,OAAO,IAAI,CAAC;AAC/B;;;ACLO,SAAS,QAAQ,GAAY,GAAqB;AACvD,MAAI,OAAO,GAAG,GAAG,CAAC,GAAG;AACnB,WAAO;AAAA,EACT;AAEA,MAAI,aAAa,QAAQ,aAAa,MAAM;AAC1C,WAAO,EAAE,QAAQ,MAAM,EAAE,QAAQ;AAAA,EACnC;AAEA,MAAI,aAAa,UAAU,aAAa,QAAQ;AAC9C,WAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE;AAAA,EAChD;AAEA,MAAI,OAAO,MAAM,YAAY,OAAO,MAAM,YAAY,MAAM,QAAQ,MAAM,MAAM;AAC9E,WAAO;AAAA,EACT;AAEA,QAAM,QAAQ,OAAO,KAAK,CAAW;AACrC,QAAM,QAAQ,OAAO,KAAK,CAAW;AAErC,MAAI,MAAM,WAAW,MAAM,QAAQ;AACjC,WAAO;AAAA,EACT;AAGA,MAAI,MAAM,OAAO,KAAK,EAAE,WAAW,MAAM,QAAQ;AAC/C,WAAO;AAAA,EACT;AAEA,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,UAAM,UAAU,MAAM,CAAC;AACvB,UAAM,QAAS,EAAU,OAAO;AAChC,UAAM,QAAS,EAAU,OAAO;AAEhC,QAAI,CAAC,QAAQ,OAAO,KAAK,GAAG;AAC1B,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;;;ACrCO,SAAS,MAAM,GAAmC;AACvD,SAAO,KAAK;AACd;;;ACLO,SAAS,SAAY,GAAiC;AAC3D,SAAO,MAAM,QAAQ,MAAM;AAC7B;;;ACEO,SAAS,OAAO,GAAuB;AAC5C,SAAO,MAAM;AACf;;;ACFO,SAAS,YAAY,GAA4B;AACtD,SAAO,MAAM;AACf;;;ACtBO,SAAS,SAAS,OAAiC;AACxD,SAAO,OAAO,UAAU,YAAY,QAAQ,MAAM,QAAQ,MAAM,KAAK,SAAS,OAAO;AACvF;;;ACWO,SAAS,cAAc,QAAyB;AACrD,MAAI,OAAO,WAAW,UAAU;AAC9B,WAAO;AAAA,EACT;AAEA,MAAI,UAAU,MAAM;AAClB,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,eAAe,MAAM,MAAM,MAAM;AAC1C,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,SAAS,MAAM,mBAAmB;AAC3C,WAAO;AAAA,EACT;AAEA,MAAI,QAAQ;AAEZ,SAAO,OAAO,eAAe,KAAK,MAAM,MAAM;AAC5C,YAAQ,OAAO,eAAe,KAAK;AAAA,EACrC;AAEA,SAAO,OAAO,eAAe,MAAM,MAAM;AAC3C;;;AChBO,SAAS,QAAW,OAAmD;AAC5E,SAAO,MAAM,QAAQ,KAAK;AAC5B;","names":[]}
@@ -1,10 +1,16 @@
1
- import "../chunk-B645AYL4.mjs";
1
+ import "../chunk-Y3ZTWIBR.mjs";
2
+ import {
3
+ isNotNil
4
+ } from "../chunk-BMRTZMRE.mjs";
2
5
  import {
3
6
  isNull
4
7
  } from "../chunk-AIRSKN47.mjs";
5
8
  import {
6
9
  isUndefined
7
10
  } from "../chunk-VH2PV426.mjs";
11
+ import {
12
+ isArray
13
+ } from "../chunk-AGDMW65V.mjs";
8
14
  import {
9
15
  isEqual
10
16
  } from "../chunk-JYSV56US.mjs";
@@ -14,9 +20,6 @@ import {
14
20
  import {
15
21
  isNil
16
22
  } from "../chunk-WMM7TZLG.mjs";
17
- import {
18
- isNotNil
19
- } from "../chunk-BMRTZMRE.mjs";
20
23
  import {
21
24
  isPlainObject
22
25
  } from "../chunk-MIGAC7F4.mjs";
@@ -24,6 +27,7 @@ import "../chunk-R6QA7PLZ.mjs";
24
27
  import "../chunk-DVK2N4KC.mjs";
25
28
  import "../chunk-24FKGR6U.mjs";
26
29
  export {
30
+ isArray,
27
31
  isEqual,
28
32
  isLength,
29
33
  isNil,
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Checks if the given value is an array.
3
+ *
4
+ * This function tests whether the provided value is an array or not.
5
+ * It returns `true` if the value is an array, and `false` otherwise.
6
+ *
7
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an array.
8
+ *
9
+ * @template T - The type of value.
10
+ * @param {T} value - The value to test if it is an array.
11
+ * @returns {value is Extract<T, unknown[]>} `true` if the value is an array, `false` otherwise.
12
+ *
13
+ * @example
14
+ * const value1 = [1, 2, 3];
15
+ * const value2 = 'abc';
16
+ * const value3 = () => {};
17
+ *
18
+ * console.log(isArray(value1)); // true
19
+ * console.log(isArray(value2)); // false
20
+ * console.log(isArray(value3)); // false
21
+ */
22
+ declare function isArray<T>(value: T): value is Extract<T, readonly unknown[]>;
23
+
24
+ export { isArray };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Checks if the given value is an array.
3
+ *
4
+ * This function tests whether the provided value is an array or not.
5
+ * It returns `true` if the value is an array, and `false` otherwise.
6
+ *
7
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an array.
8
+ *
9
+ * @template T - The type of value.
10
+ * @param {T} value - The value to test if it is an array.
11
+ * @returns {value is Extract<T, unknown[]>} `true` if the value is an array, `false` otherwise.
12
+ *
13
+ * @example
14
+ * const value1 = [1, 2, 3];
15
+ * const value2 = 'abc';
16
+ * const value3 = () => {};
17
+ *
18
+ * console.log(isArray(value1)); // true
19
+ * console.log(isArray(value2)); // false
20
+ * console.log(isArray(value3)); // false
21
+ */
22
+ declare function isArray<T>(value: T): value is Extract<T, readonly unknown[]>;
23
+
24
+ export { isArray };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/predicate/isArray.ts
21
+ var isArray_exports = {};
22
+ __export(isArray_exports, {
23
+ isArray: () => isArray
24
+ });
25
+ module.exports = __toCommonJS(isArray_exports);
26
+ function isArray(value) {
27
+ return Array.isArray(value);
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ isArray
32
+ });
33
+ //# sourceMappingURL=isArray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/predicate/isArray.ts"],"sourcesContent":["/**\n * Checks if the given value is an array.\n *\n * This function tests whether the provided value is an array or not.\n * It returns `true` if the value is an array, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an array.\n *\n * @template T - The type of value.\n * @param {T} value - The value to test if it is an array.\n * @returns {value is Extract<T, unknown[]>} `true` if the value is an array, `false` otherwise.\n *\n * @example\n * const value1 = [1, 2, 3];\n * const value2 = 'abc';\n * const value3 = () => {};\n *\n * console.log(isArray(value1)); // true\n * console.log(isArray(value2)); // false\n * console.log(isArray(value3)); // false\n */\nexport function isArray<T>(value: T): value is Extract<T, readonly unknown[]> {\n return Array.isArray(value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBO,SAAS,QAAW,OAAmD;AAC5E,SAAO,MAAM,QAAQ,KAAK;AAC5B;","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ isArray
3
+ } from "../chunk-AGDMW65V.mjs";
4
+ import "../chunk-24FKGR6U.mjs";
5
+ export {
6
+ isArray
7
+ };
8
+ //# sourceMappingURL=isArray.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,4 +1,10 @@
1
1
  import "../chunk-XT74R35S.mjs";
2
+ import {
3
+ camelCase
4
+ } from "../chunk-Y5V7UAZZ.mjs";
5
+ import {
6
+ capitalize
7
+ } from "../chunk-U56ZOM7L.mjs";
2
8
  import {
3
9
  kebabCase
4
10
  } from "../chunk-EYYZQFOP.mjs";
@@ -11,12 +17,6 @@ import {
11
17
  import {
12
18
  startCase
13
19
  } from "../chunk-QXTNZR7B.mjs";
14
- import {
15
- camelCase
16
- } from "../chunk-Y5V7UAZZ.mjs";
17
- import {
18
- capitalize
19
- } from "../chunk-U56ZOM7L.mjs";
20
20
  import "../chunk-WVQ7YVRK.mjs";
21
21
  import "../chunk-24FKGR6U.mjs";
22
22
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
3
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
4
- "version": "1.13.1-dev.300+4e1b19fd",
4
+ "version": "1.13.1-dev.301+fb51b987",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {
@@ -1,2 +1,2 @@
1
- "use strict";(()=>{var z=Object.defineProperty;var V=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var N=(e,t,r)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))xt.call(t,r)&&N(e,r,t[r]);if(V)for(var r of V(t))yt.call(t,r)&&N(e,r,t[r]);return e};var ht=(e,t)=>{for(var r in t)z(e,r,{get:t[r],enumerable:!0})};var y=(e,t,r)=>new Promise((n,o)=>{var i=a=>{try{f(r.next(a))}catch(c){o(c)}},u=a=>{try{f(r.throw(a))}catch(c){o(c)}},f=a=>a.done?n(a.value):Promise.resolve(a.value).then(i,u);f((r=r.apply(e,t)).next())});var B={};ht(B,{AbortError:()=>p,TimeoutError:()=>T,camelCase:()=>Qe,capitalize:()=>D,chunk:()=>ot,clamp:()=>We,clone:()=>Ce,compact:()=>L,concat:()=>it,countBy:()=>q,debounce:()=>Ue,delay:()=>v,difference:()=>ut,differenceBy:()=>b,differenceWith:()=>g,drop:()=>$,dropRight:()=>G,dropRightWhile:()=>X,dropWhile:()=>Z,endsWith:()=>pt,fill:()=>H,first:()=>F,flatMap:()=>Y,flatten:()=>l,flattenDeep:()=>J,flattenObject:()=>Le,forEachRight:()=>Q,get:()=>st,groupBy:()=>ee,head:()=>F,inRange:()=>ve,initial:()=>Ae,intersection:()=>K,intersectionBy:()=>k,intersectionWith:()=>w,invert:()=>ze,isEqual:()=>M,isLength:()=>He,isNil:()=>$e,isNotNil:()=>Ge,isNull:()=>Xe,isPlainObject:()=>ct,isUndefined:()=>Ze,kebabCase:()=>tt,keyBy:()=>te,last:()=>Pe,lowerCase:()=>rt,max:()=>Tt,maxBy:()=>re,mean:()=>W,meanBy:()=>De,min:()=>dt,minBy:()=>ne,negate:()=>je,noop:()=>Re,omit:()=>Me,omitBy:()=>Be,once:()=>Ee,orderBy:()=>oe,partition:()=>ie,pick:()=>Ve,pickBy:()=>Ne,random:()=>P,randomInt:()=>A,range:()=>Fe,round:()=>Se,sample:()=>ue,sampleSize:()=>fe,set:()=>I,shuffle:()=>ae,snakeCase:()=>et,startCase:()=>nt,startsWith:()=>mt,sum:()=>d,sumBy:()=>Ie,tail:()=>ke,take:()=>le,takeRight:()=>se,takeRightWhile:()=>ce,takeWhile:()=>me,throttle:()=>Oe,toFilled:()=>we,union:()=>m,unionBy:()=>R,unionWith:()=>O,uniq:()=>U,uniqBy:()=>pe,uniqWith:()=>E,unzip:()=>Te,unzipWith:()=>de,withTimeout:()=>Je,without:()=>Ke,xor:()=>xe,xorBy:()=>ye,xorWith:()=>he,zip:()=>j,zipObject:()=>be,zipObjectDeep:()=>at,zipWith:()=>ge});function _(e,t){if(!Number.isInteger(t)||t<=0)throw new Error("Size must be an integer greater than zero.");let r=Math.ceil(e.length/t),n=Array(r);for(let o=0;o<r;o++){let i=o*t,u=i+t;n[o]=e.slice(i,u)}return n}function L(e){let t=[];for(let r of e)r&&t.push(r);return t}function q(e,t){var n;let r={};for(let o of e){let i=t(o);r[i]=((n=r[i])!=null?n:0)+1}return r}function h(e,t){let r=new Set(t);return e.filter(n=>!r.has(n))}function b(e,t,r){let n=new Set(t.map(o=>r(o)));return e.filter(o=>!n.has(r(o)))}function g(e,t,r){return e.filter(n=>t.every(o=>!r(n,o)))}function $(e,t){return t=Math.max(t,0),e.slice(t)}function G(e,t){return t=Math.min(-t,0),t===0?e.slice():e.slice(0,t)}function X(e,t){for(let r=e.length-1;r>=0;r--)if(!t(e[r]))return e.slice(0,r+1);return[]}function Z(e,t){let r=e.findIndex(n=>!t(n));return r===-1?[]:e.slice(r)}function H(e,t,r=0,n=e.length){let o=e.length,i=Math.max(r>=0?r:o+r,0),u=Math.min(n>=0?n:o+n,o);for(let f=i;f<u;f++)e[f]=t;return e}function l(e,t=1){let r=[],n=Math.floor(t),o=(i,u)=>{for(let f of i)Array.isArray(f)&&u<n?o(f,u+1):r.push(f)};return o(e,0),r}function Y(e,t,r=1){return l(e.map(n=>t(n)),r)}function J(e){return l(e,1/0)}function Q(e,t){for(let r=e.length-1;r>=0;r--){let n=e[r];t(n,r,e)}}function ee(e,t){let r={};for(let n of e){let o=t(n);r[o]==null&&(r[o]=[]),r[o].push(n)}return r}function K(e,t){let r=new Set(t);return e.filter(n=>r.has(n))}function k(e,t,r){let n=new Set(t.map(r));return e.filter(o=>n.has(r(o)))}function w(e,t,r){return e.filter(n=>t.some(o=>r(n,o)))}function te(e,t){let r={};for(let n of e){let o=t(n);r[o]=n}return r}function re(e,t){let r=e[0],n=-1/0;for(let o of e){let i=t(o);i>n&&(n=i,r=o)}return r}function ne(e,t){let r=e[0],n=1/0;for(let o of e){let i=t(o);i<n&&(n=i,r=o)}return r}function oe(e,t,r){let n=(i,u,f)=>i<u?f==="asc"?-1:1:i>u?f==="asc"?1:-1:0,o=t.map((i,u)=>r[u]||r[r.length-1]);return e.slice().sort((i,u)=>{for(let f=0;f<t.length;f++){let a=t[f],c=o[f],x=n(i[a],u[a],c);if(x!==0)return x}return 0})}function ie(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}function ue(e){let t=Math.floor(Math.random()*e.length);return e[t]}function P(e,t){if(t==null&&(t=e,e=0),e>=t)throw new Error("Invalid input: The maximum value must be greater than the minimum value.");return Math.random()*(t-e)+e}function A(e,t){return Math.floor(P(e,t))}function fe(e,t){if(t>e.length)throw new Error("Size must be less than or equal to the length of array.");let r=new Array(t),n=new Set;for(let o=e.length-t,i=0;o<e.length;o++,i++){let u=A(0,o+1);n.has(u)&&(u=o),n.add(u),r[i]=e[u]}return r}function ae(e){let t=e.slice();for(let r=t.length-1;r>=1;r--){let n=Math.floor(Math.random()*(r+1));[t[r],t[n]]=[t[n],t[r]]}return t}function le(e,t){return e.slice(0,t)}function se(e,t){return t===0?[]:e.slice(-t)}function ce(e,t){for(let r=e.length-1;r>=0;r--)if(!t(e[r]))return e.slice(r+1);return e.slice()}function me(e,t){let r=[];for(let n of e){if(!t(n))break;r.push(n)}return r}function U(e){return Array.from(new Set(e))}function m(e,t){return U(e.concat(t))}function R(e,t,r){let n=new Map;for(let o of[...e,...t]){let i=r(o);n.has(i)||n.set(i,o)}return Array.from(n.values())}function E(e,t){let r=[];for(let n of e)r.every(i=>!t(i,n))&&r.push(n);return r}function O(e,t,r){return E(e.concat(t),r)}function pe(e,t){let r=new Map;for(let n of e){let o=t(n);r.has(o)||r.set(o,n)}return Array.from(r.values())}function Te(e){let t=0;for(let n=0;n<e.length;n++)e[n].length>t&&(t=e[n].length);let r=new Array(t);for(let n=0;n<t;n++){r[n]=new Array(e.length);for(let o=0;o<e.length;o++)r[n][o]=e[o][n]}return r}function de(e,t){let r=Math.max(...e.map(o=>o.length)),n=new Array(r);for(let o=0;o<r;o++){let i=new Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u][o];n[o]=t(...i)}return n}function xe(e,t){return h(m(e,t),K(e,t))}function ye(e,t,r){let n=R(e,t,r),o=k(e,t,r);return b(n,o,r)}function he(e,t,r){let n=O(e,t,r),o=w(e,t,r);return g(n,o,r)}function j(...e){let t=[],r=Math.max(...e.map(n=>n.length));for(let n=0;n<r;n++){let o=[];for(let i of e)o.push(i[n]);t.push(o)}return t}function be(e,t){let r={};for(let n=0;n<e.length;n++)r[e[n]]=t[n];return r}function ge(e,...t){let r=[e,...t.slice(0,-1)],n=t[t.length-1],o=[],i=Math.max(...r.map(u=>u.length));for(let u=0;u<i;u++){let f=r.map(a=>a[u]);o.push(n(...f))}return o}function Ke(e,...t){let r=new Set(t);return e.filter(n=>!r.has(n))}function F(e){return e[0]}function ke(e){let t=e.length;if(t<=1)return[];let r=new Array(t-1);for(let n=1;n<t;n++)r[n-1]=e[n];return r}function we(e,t,r=0,n=e.length){let o=e.length,i=Math.max(r>=0?r:o+r,0),u=Math.min(n>=0?n:o+n,o),f=e.slice();for(let a=i;a<u;a++)f[a]=t;return f}function Pe(e){return e[e.length-1]}function Ae(e){return e.length<=1?[]:e.slice(0,-1)}var p=class extends Error{constructor(t="The operation was aborted"){super(t),this.name="AbortError"}};var T=class extends Error{constructor(t="The operation was timed out"){super(t),this.name="TimeoutError"}};function Ue(e,t,{signal:r}={}){let n=null,o=function(...u){n!==null&&clearTimeout(n),!(r!=null&&r.aborted)&&(n=setTimeout(()=>{e(...u),n=null},t))},i=function(){o.cancel()};return o.cancel=function(){n!==null&&(clearTimeout(n),n=null)},r==null||r.addEventListener("abort",i,{once:!0}),o}function Re(){}function Ee(e){let t=!1,r;return function(){if(t)return r;let n=e();return t=!0,r=n,n}}function Oe(e,t){let r;return function(...o){let i=Date.now();(r==null||i-r>=t)&&(r=i,e(...o))}}function je(e){return(...t)=>!e(...t)}function We(e,t,r){return r==null?Math.min(e,t):Math.min(Math.max(e,t),r)}function ve(e,t,r){if(r==null&&(r=t,t=0),t>=r)throw new Error("The maximum value must be greater than the minimum value.");return t<=e&&e<r}function d(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t}function W(e){return d(e)/e.length}function De(e,t){let r=e.map(n=>t(n));return W(r)}function Se(e,t=0){if(!Number.isInteger(t))throw new Error("Precision must be an integer.");let r=Math.pow(10,t);return Math.round(e*r)/r}function Ie(e,t){let r=e.map(n=>t(n));return d(r)}function Fe(e,t,r){if(t==null&&(t=e,e=0),r==null&&(r=1),!Number.isInteger(r)||r===0)throw new Error("The step value must be a non-zero integer.");let n=Math.max(Math.ceil((t-e)/r),0),o=new Array(n);for(let i=0;i<n;i++)o[i]=e+i*r;return o}function Me(e,t){let r=C({},e);for(let n of t)delete r[n];return r}function Be(e,t){let r={};for(let[n,o]of Object.entries(e))t(o,n)||(r[n]=o);return r}function Ve(e,t){let r={};for(let n of t)r[n]=e[n];return r}function Ne(e,t){let r={};for(let[n,o]of Object.entries(e))t(o,n)&&(r[n]=o);return r}function ze(e){let t={},r=Object.keys(e);for(let n=0;n<r.length;n++){let o=r[n],i=e[o];t[i]=o}return t}function Ce(e){if(bt(e))return e;if(Array.isArray(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,n);return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(r);return t}if(typeof e=="object"){let t=Object.getPrototypeOf(e),r=Object.create(t);return Object.assign(r,e)}return e}function bt(e){return e==null||typeof e!="object"&&typeof e!="function"}function _e(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Le(e){return qe(e)}function qe(e,t=""){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],u=e[i],f=t?`${t}.${i}`:i;if(_e(u)&&Object.keys(u).length>0){Object.assign(r,qe(u,f));continue}if(Array.isArray(u)){for(let a=0;a<u.length;a++)r[`${f}.${a}`]=u[a];continue}r[f]=u}return r}function M(e,t){if(Object.is(e,t))return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.flags===t.flags;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length||m(r,n).length!==r.length)return!1;for(let o=0;o<r.length;o++){let i=r[o],u=e[i],f=t[i];if(!M(u,f))return!1}return!0}function $e(e){return e==null}function Ge(e){return e!=null}function Xe(e){return e===null}function Ze(e){return e===void 0}function He(e){return typeof e=="number"&&e>-1&&e%1===0&&e<=Number.MAX_SAFE_INTEGER}function v(e,{signal:t}={}){return new Promise((r,n)=>{let o=()=>{n(new p)},i=()=>{clearTimeout(u),o()};if(t!=null&&t.aborted)return o();let u=setTimeout(r,e);t==null||t.addEventListener("abort",i,{once:!0})})}function Ye(e){return y(this,null,function*(){throw yield v(e),new T})}function Je(e,t){return y(this,null,function*(){return Promise.race([e(),Ye(t)])})}var D=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var gt=/[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])/g;function s(e){var t;return Array.from((t=e.match(gt))!=null?t:[])}function Qe(e){let t=s(e);if(t.length===0)return"";let[r,...n]=t;return`${r.toLowerCase()}${n.map(o=>D(o)).join("")}`}var et=e=>s(e).map(r=>r.toLowerCase()).join("_");var tt=e=>s(e).map(r=>r.toLowerCase()).join("-");var rt=e=>s(e).map(r=>r.toLowerCase()).join(" ");function nt(e){let t=s(e.trim()),r="";for(let n of t)r&&(r+=" "),n===n.toUpperCase()?r+=n:r+=n[0].toUpperCase()+n.slice(1).toLowerCase();return r}function ot(e,t=1){return t=Math.max(Math.floor(t),0),t===0?[]:_(e,t)}function it(...e){return l(e)}function ut(e,...t){let r=e,n=l(t);return h(r,n)}var Kt=/^(?:0|[1-9]\d*)$/;function ft(e){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<Number.MAX_SAFE_INTEGER;case"symbol":return!1;case"string":return Kt.test(e)}}function S(e){let t=/\\(\\)?/g,r=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),n=[];e[0]==="."&&n.push("");let o,i=0,u=0;for(;(o=r.exec(e))!==null;){let[f,a,c,x]=o;c?f=x.replace(t,"$1"):a&&(f=a),n.push(f),r.lastIndex===i?r.lastIndex++:i=r.lastIndex}return n}function I(e,t,r){let n=Array.isArray(t)?t:typeof t=="string"?S(t):[t],o=e;for(let u=0;u<n.length-1;u++){let f=n[u],a=n[u+1];o[f]==null&&(o[f]=ft(a)?[]:{}),o=o[f]}let i=n[n.length-1];return o[i]=r,e}function at(e,t){let r={},n=j(e,t);for(let o=0;o<n.length;o++){let[i,u]=n[o];i!=null&&I(r,i,u)}return r}var kt=/^\w*$/,wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function lt(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return!kt.test(e)&&wt.test(e)}}function st(e,t,r){let n;if(Array.isArray(t)?n=t:typeof t=="string"&&lt(t)&&(e==null?void 0:e[t])==null?n=S(t):n=[t],n.length===0)return r;let o=e,i;for(i=0;i<n.length&&o!=null;i++){let u=n[i];Object.is(u.valueOf(),-0)&&(u="-0"),o=o[u]}return o===null&&i===n.length||o!=null?o:r}function ct(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]"){let n=e[Symbol.toStringTag];return n==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${n}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var mt=(e,t,r=0)=>e.startsWith(t,r);var pt=(e,t,r=e.length)=>e.endsWith(t,r);function Tt(e=[]){let t=e[0],r;for(let n of e)(r==null||n>r)&&(r=n,t=n);return t}function dt(e=[]){let t=e[0],r;for(let n of e)(r==null||n<r)&&(r=n,t=n);return t}window._=B;})();
1
+ "use strict";(()=>{var z=Object.defineProperty;var V=Object.getOwnPropertySymbols;var yt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var N=(e,t,r)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&N(e,r,t[r]);if(V)for(var r of V(t))ht.call(t,r)&&N(e,r,t[r]);return e};var bt=(e,t)=>{for(var r in t)z(e,r,{get:t[r],enumerable:!0})};var y=(e,t,r)=>new Promise((n,o)=>{var i=a=>{try{f(r.next(a))}catch(c){o(c)}},u=a=>{try{f(r.throw(a))}catch(c){o(c)}},f=a=>a.done?n(a.value):Promise.resolve(a.value).then(i,u);f((r=r.apply(e,t)).next())});var B={};bt(B,{AbortError:()=>p,TimeoutError:()=>T,camelCase:()=>et,capitalize:()=>D,chunk:()=>it,clamp:()=>ve,clone:()=>Ce,compact:()=>L,concat:()=>ut,countBy:()=>q,debounce:()=>Ue,delay:()=>W,difference:()=>ft,differenceBy:()=>b,differenceWith:()=>g,drop:()=>$,dropRight:()=>G,dropRightWhile:()=>X,dropWhile:()=>Z,endsWith:()=>Tt,fill:()=>H,first:()=>F,flatMap:()=>Y,flatten:()=>l,flattenDeep:()=>J,flattenObject:()=>Le,forEachRight:()=>Q,get:()=>ct,groupBy:()=>ee,head:()=>F,inRange:()=>We,initial:()=>Pe,intersection:()=>K,intersectionBy:()=>k,intersectionWith:()=>w,invert:()=>ze,isArray:()=>Ye,isEqual:()=>M,isLength:()=>He,isNil:()=>$e,isNotNil:()=>Ge,isNull:()=>Xe,isPlainObject:()=>mt,isUndefined:()=>Ze,kebabCase:()=>rt,keyBy:()=>te,last:()=>Ae,lowerCase:()=>nt,max:()=>dt,maxBy:()=>re,mean:()=>v,meanBy:()=>De,min:()=>xt,minBy:()=>ne,negate:()=>je,noop:()=>Re,omit:()=>Me,omitBy:()=>Be,once:()=>Ee,orderBy:()=>oe,partition:()=>ie,pick:()=>Ve,pickBy:()=>Ne,random:()=>A,randomInt:()=>P,range:()=>Fe,round:()=>Se,sample:()=>ue,sampleSize:()=>fe,set:()=>I,shuffle:()=>ae,snakeCase:()=>tt,startCase:()=>ot,startsWith:()=>pt,sum:()=>d,sumBy:()=>Ie,tail:()=>ke,take:()=>le,takeRight:()=>se,takeRightWhile:()=>ce,takeWhile:()=>me,throttle:()=>Oe,toFilled:()=>we,union:()=>m,unionBy:()=>R,unionWith:()=>O,uniq:()=>U,uniqBy:()=>pe,uniqWith:()=>E,unzip:()=>Te,unzipWith:()=>de,withTimeout:()=>Qe,without:()=>Ke,xor:()=>xe,xorBy:()=>ye,xorWith:()=>he,zip:()=>j,zipObject:()=>be,zipObjectDeep:()=>lt,zipWith:()=>ge});function _(e,t){if(!Number.isInteger(t)||t<=0)throw new Error("Size must be an integer greater than zero.");let r=Math.ceil(e.length/t),n=Array(r);for(let o=0;o<r;o++){let i=o*t,u=i+t;n[o]=e.slice(i,u)}return n}function L(e){let t=[];for(let r of e)r&&t.push(r);return t}function q(e,t){var n;let r={};for(let o of e){let i=t(o);r[i]=((n=r[i])!=null?n:0)+1}return r}function h(e,t){let r=new Set(t);return e.filter(n=>!r.has(n))}function b(e,t,r){let n=new Set(t.map(o=>r(o)));return e.filter(o=>!n.has(r(o)))}function g(e,t,r){return e.filter(n=>t.every(o=>!r(n,o)))}function $(e,t){return t=Math.max(t,0),e.slice(t)}function G(e,t){return t=Math.min(-t,0),t===0?e.slice():e.slice(0,t)}function X(e,t){for(let r=e.length-1;r>=0;r--)if(!t(e[r]))return e.slice(0,r+1);return[]}function Z(e,t){let r=e.findIndex(n=>!t(n));return r===-1?[]:e.slice(r)}function H(e,t,r=0,n=e.length){let o=e.length,i=Math.max(r>=0?r:o+r,0),u=Math.min(n>=0?n:o+n,o);for(let f=i;f<u;f++)e[f]=t;return e}function l(e,t=1){let r=[],n=Math.floor(t),o=(i,u)=>{for(let f of i)Array.isArray(f)&&u<n?o(f,u+1):r.push(f)};return o(e,0),r}function Y(e,t,r=1){return l(e.map(n=>t(n)),r)}function J(e){return l(e,1/0)}function Q(e,t){for(let r=e.length-1;r>=0;r--){let n=e[r];t(n,r,e)}}function ee(e,t){let r={};for(let n of e){let o=t(n);r[o]==null&&(r[o]=[]),r[o].push(n)}return r}function K(e,t){let r=new Set(t);return e.filter(n=>r.has(n))}function k(e,t,r){let n=new Set(t.map(r));return e.filter(o=>n.has(r(o)))}function w(e,t,r){return e.filter(n=>t.some(o=>r(n,o)))}function te(e,t){let r={};for(let n of e){let o=t(n);r[o]=n}return r}function re(e,t){let r=e[0],n=-1/0;for(let o of e){let i=t(o);i>n&&(n=i,r=o)}return r}function ne(e,t){let r=e[0],n=1/0;for(let o of e){let i=t(o);i<n&&(n=i,r=o)}return r}function oe(e,t,r){let n=(i,u,f)=>i<u?f==="asc"?-1:1:i>u?f==="asc"?1:-1:0,o=t.map((i,u)=>r[u]||r[r.length-1]);return e.slice().sort((i,u)=>{for(let f=0;f<t.length;f++){let a=t[f],c=o[f],x=n(i[a],u[a],c);if(x!==0)return x}return 0})}function ie(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}function ue(e){let t=Math.floor(Math.random()*e.length);return e[t]}function A(e,t){if(t==null&&(t=e,e=0),e>=t)throw new Error("Invalid input: The maximum value must be greater than the minimum value.");return Math.random()*(t-e)+e}function P(e,t){return Math.floor(A(e,t))}function fe(e,t){if(t>e.length)throw new Error("Size must be less than or equal to the length of array.");let r=new Array(t),n=new Set;for(let o=e.length-t,i=0;o<e.length;o++,i++){let u=P(0,o+1);n.has(u)&&(u=o),n.add(u),r[i]=e[u]}return r}function ae(e){let t=e.slice();for(let r=t.length-1;r>=1;r--){let n=Math.floor(Math.random()*(r+1));[t[r],t[n]]=[t[n],t[r]]}return t}function le(e,t){return e.slice(0,t)}function se(e,t){return t===0?[]:e.slice(-t)}function ce(e,t){for(let r=e.length-1;r>=0;r--)if(!t(e[r]))return e.slice(r+1);return e.slice()}function me(e,t){let r=[];for(let n of e){if(!t(n))break;r.push(n)}return r}function U(e){return Array.from(new Set(e))}function m(e,t){return U(e.concat(t))}function R(e,t,r){let n=new Map;for(let o of[...e,...t]){let i=r(o);n.has(i)||n.set(i,o)}return Array.from(n.values())}function E(e,t){let r=[];for(let n of e)r.every(i=>!t(i,n))&&r.push(n);return r}function O(e,t,r){return E(e.concat(t),r)}function pe(e,t){let r=new Map;for(let n of e){let o=t(n);r.has(o)||r.set(o,n)}return Array.from(r.values())}function Te(e){let t=0;for(let n=0;n<e.length;n++)e[n].length>t&&(t=e[n].length);let r=new Array(t);for(let n=0;n<t;n++){r[n]=new Array(e.length);for(let o=0;o<e.length;o++)r[n][o]=e[o][n]}return r}function de(e,t){let r=Math.max(...e.map(o=>o.length)),n=new Array(r);for(let o=0;o<r;o++){let i=new Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u][o];n[o]=t(...i)}return n}function xe(e,t){return h(m(e,t),K(e,t))}function ye(e,t,r){let n=R(e,t,r),o=k(e,t,r);return b(n,o,r)}function he(e,t,r){let n=O(e,t,r),o=w(e,t,r);return g(n,o,r)}function j(...e){let t=[],r=Math.max(...e.map(n=>n.length));for(let n=0;n<r;n++){let o=[];for(let i of e)o.push(i[n]);t.push(o)}return t}function be(e,t){let r={};for(let n=0;n<e.length;n++)r[e[n]]=t[n];return r}function ge(e,...t){let r=[e,...t.slice(0,-1)],n=t[t.length-1],o=[],i=Math.max(...r.map(u=>u.length));for(let u=0;u<i;u++){let f=r.map(a=>a[u]);o.push(n(...f))}return o}function Ke(e,...t){let r=new Set(t);return e.filter(n=>!r.has(n))}function F(e){return e[0]}function ke(e){let t=e.length;if(t<=1)return[];let r=new Array(t-1);for(let n=1;n<t;n++)r[n-1]=e[n];return r}function we(e,t,r=0,n=e.length){let o=e.length,i=Math.max(r>=0?r:o+r,0),u=Math.min(n>=0?n:o+n,o),f=e.slice();for(let a=i;a<u;a++)f[a]=t;return f}function Ae(e){return e[e.length-1]}function Pe(e){return e.length<=1?[]:e.slice(0,-1)}var p=class extends Error{constructor(t="The operation was aborted"){super(t),this.name="AbortError"}};var T=class extends Error{constructor(t="The operation was timed out"){super(t),this.name="TimeoutError"}};function Ue(e,t,{signal:r}={}){let n=null,o=function(...u){n!==null&&clearTimeout(n),!(r!=null&&r.aborted)&&(n=setTimeout(()=>{e(...u),n=null},t))},i=function(){o.cancel()};return o.cancel=function(){n!==null&&(clearTimeout(n),n=null)},r==null||r.addEventListener("abort",i,{once:!0}),o}function Re(){}function Ee(e){let t=!1,r;return function(){if(t)return r;let n=e();return t=!0,r=n,n}}function Oe(e,t){let r;return function(...o){let i=Date.now();(r==null||i-r>=t)&&(r=i,e(...o))}}function je(e){return(...t)=>!e(...t)}function ve(e,t,r){return r==null?Math.min(e,t):Math.min(Math.max(e,t),r)}function We(e,t,r){if(r==null&&(r=t,t=0),t>=r)throw new Error("The maximum value must be greater than the minimum value.");return t<=e&&e<r}function d(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t}function v(e){return d(e)/e.length}function De(e,t){let r=e.map(n=>t(n));return v(r)}function Se(e,t=0){if(!Number.isInteger(t))throw new Error("Precision must be an integer.");let r=Math.pow(10,t);return Math.round(e*r)/r}function Ie(e,t){let r=e.map(n=>t(n));return d(r)}function Fe(e,t,r){if(t==null&&(t=e,e=0),r==null&&(r=1),!Number.isInteger(r)||r===0)throw new Error("The step value must be a non-zero integer.");let n=Math.max(Math.ceil((t-e)/r),0),o=new Array(n);for(let i=0;i<n;i++)o[i]=e+i*r;return o}function Me(e,t){let r=C({},e);for(let n of t)delete r[n];return r}function Be(e,t){let r={};for(let[n,o]of Object.entries(e))t(o,n)||(r[n]=o);return r}function Ve(e,t){let r={};for(let n of t)r[n]=e[n];return r}function Ne(e,t){let r={};for(let[n,o]of Object.entries(e))t(o,n)&&(r[n]=o);return r}function ze(e){let t={},r=Object.keys(e);for(let n=0;n<r.length;n++){let o=r[n],i=e[o];t[i]=o}return t}function Ce(e){if(gt(e))return e;if(Array.isArray(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,n);return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(r);return t}if(typeof e=="object"){let t=Object.getPrototypeOf(e),r=Object.create(t);return Object.assign(r,e)}return e}function gt(e){return e==null||typeof e!="object"&&typeof e!="function"}function _e(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Le(e){return qe(e)}function qe(e,t=""){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],u=e[i],f=t?`${t}.${i}`:i;if(_e(u)&&Object.keys(u).length>0){Object.assign(r,qe(u,f));continue}if(Array.isArray(u)){for(let a=0;a<u.length;a++)r[`${f}.${a}`]=u[a];continue}r[f]=u}return r}function M(e,t){if(Object.is(e,t))return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.flags===t.flags;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length||m(r,n).length!==r.length)return!1;for(let o=0;o<r.length;o++){let i=r[o],u=e[i],f=t[i];if(!M(u,f))return!1}return!0}function $e(e){return e==null}function Ge(e){return e!=null}function Xe(e){return e===null}function Ze(e){return e===void 0}function He(e){return typeof e=="number"&&e>-1&&e%1===0&&e<=Number.MAX_SAFE_INTEGER}function Ye(e){return Array.isArray(e)}function W(e,{signal:t}={}){return new Promise((r,n)=>{let o=()=>{n(new p)},i=()=>{clearTimeout(u),o()};if(t!=null&&t.aborted)return o();let u=setTimeout(r,e);t==null||t.addEventListener("abort",i,{once:!0})})}function Je(e){return y(this,null,function*(){throw yield W(e),new T})}function Qe(e,t){return y(this,null,function*(){return Promise.race([e(),Je(t)])})}var D=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var Kt=/[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])/g;function s(e){var t;return Array.from((t=e.match(Kt))!=null?t:[])}function et(e){let t=s(e);if(t.length===0)return"";let[r,...n]=t;return`${r.toLowerCase()}${n.map(o=>D(o)).join("")}`}var tt=e=>s(e).map(r=>r.toLowerCase()).join("_");var rt=e=>s(e).map(r=>r.toLowerCase()).join("-");var nt=e=>s(e).map(r=>r.toLowerCase()).join(" ");function ot(e){let t=s(e.trim()),r="";for(let n of t)r&&(r+=" "),n===n.toUpperCase()?r+=n:r+=n[0].toUpperCase()+n.slice(1).toLowerCase();return r}function it(e,t=1){return t=Math.max(Math.floor(t),0),t===0?[]:_(e,t)}function ut(...e){return l(e)}function ft(e,...t){let r=e,n=l(t);return h(r,n)}var kt=/^(?:0|[1-9]\d*)$/;function at(e){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<Number.MAX_SAFE_INTEGER;case"symbol":return!1;case"string":return kt.test(e)}}function S(e){let t=/\\(\\)?/g,r=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),n=[];e[0]==="."&&n.push("");let o,i=0,u=0;for(;(o=r.exec(e))!==null;){let[f,a,c,x]=o;c?f=x.replace(t,"$1"):a&&(f=a),n.push(f),r.lastIndex===i?r.lastIndex++:i=r.lastIndex}return n}function I(e,t,r){let n=Array.isArray(t)?t:typeof t=="string"?S(t):[t],o=e;for(let u=0;u<n.length-1;u++){let f=n[u],a=n[u+1];o[f]==null&&(o[f]=at(a)?[]:{}),o=o[f]}let i=n[n.length-1];return o[i]=r,e}function lt(e,t){let r={},n=j(e,t);for(let o=0;o<n.length;o++){let[i,u]=n[o];i!=null&&I(r,i,u)}return r}var wt=/^\w*$/,At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function st(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return!wt.test(e)&&At.test(e)}}function ct(e,t,r){let n;if(Array.isArray(t)?n=t:typeof t=="string"&&st(t)&&(e==null?void 0:e[t])==null?n=S(t):n=[t],n.length===0)return r;let o=e,i;for(i=0;i<n.length&&o!=null;i++){let u=n[i];Object.is(u.valueOf(),-0)&&(u="-0"),o=o[u]}return o===null&&i===n.length||o!=null?o:r}function mt(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]"){let n=e[Symbol.toStringTag];return n==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${n}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var pt=(e,t,r=0)=>e.startsWith(t,r);var Tt=(e,t,r=e.length)=>e.endsWith(t,r);function dt(e=[]){let t=e[0],r;for(let n of e)(r==null||n>r)&&(r=n,t=n);return t}function xt(e=[]){let t=e[0],r;for(let n of e)(r==null||n<r)&&(r=n,t=n);return t}window._=B;})();
2
2
  //# sourceMappingURL=browser.global.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-B645AYL4.mjs.map