es-toolkit 1.13.1 → 1.14.0-dev.397

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.
Files changed (807) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/_chunk/index-CwRt_M.js +46 -0
  3. package/dist/_chunk/initial-BTrQy1.js +514 -0
  4. package/dist/_chunk/isFunction-Cw_tLG.js +246 -0
  5. package/dist/_chunk/isTypedArray-BBEkFl.js +43 -0
  6. package/dist/_chunk/randomInt-CF7bZK.js +19 -0
  7. package/dist/array/chunk.mjs +15 -8
  8. package/dist/array/compact.d.mts +1 -1
  9. package/dist/array/compact.d.ts +1 -1
  10. package/dist/array/compact.mjs +11 -8
  11. package/dist/array/countBy.mjs +10 -8
  12. package/dist/array/difference.mjs +6 -8
  13. package/dist/array/differenceBy.mjs +8 -8
  14. package/dist/array/differenceWith.mjs +9 -8
  15. package/dist/array/drop.mjs +6 -8
  16. package/dist/array/dropRight.mjs +9 -8
  17. package/dist/array/dropRightWhile.mjs +10 -8
  18. package/dist/array/dropWhile.mjs +9 -8
  19. package/dist/array/fill.d.mts +1 -0
  20. package/dist/array/fill.d.ts +1 -0
  21. package/dist/array/fill.mjs +11 -8
  22. package/dist/array/flatMap.mjs +7 -9
  23. package/dist/array/flatten.mjs +18 -8
  24. package/dist/array/flattenDeep.mjs +7 -9
  25. package/dist/array/forEachRight.mjs +8 -8
  26. package/dist/array/groupBy.mjs +13 -8
  27. package/dist/array/head.d.mts +1 -0
  28. package/dist/array/head.d.ts +1 -0
  29. package/dist/array/head.mjs +5 -8
  30. package/dist/array/index.d.mts +1 -0
  31. package/dist/array/index.d.ts +1 -0
  32. package/dist/array/index.js +58 -652
  33. package/dist/array/index.mjs +52 -211
  34. package/dist/array/initial.mjs +8 -8
  35. package/dist/array/intersection.mjs +8 -8
  36. package/dist/array/intersectionBy.mjs +6 -8
  37. package/dist/array/intersectionWith.mjs +9 -8
  38. package/dist/array/isSubset.d.mts +26 -0
  39. package/dist/array/isSubset.d.ts +26 -0
  40. package/dist/array/isSubset.mjs +7 -0
  41. package/dist/array/keyBy.mjs +10 -8
  42. package/dist/array/last.d.mts +1 -0
  43. package/dist/array/last.d.ts +1 -0
  44. package/dist/array/last.mjs +5 -8
  45. package/dist/array/maxBy.mjs +14 -8
  46. package/dist/array/minBy.mjs +14 -8
  47. package/dist/array/orderBy.mjs +25 -8
  48. package/dist/array/partition.mjs +15 -8
  49. package/dist/array/sample.mjs +6 -8
  50. package/dist/array/sampleSize.mjs +20 -10
  51. package/dist/array/shuffle.mjs +10 -8
  52. package/dist/array/tail.d.mts +9 -4
  53. package/dist/array/tail.d.ts +9 -4
  54. package/dist/array/tail.mjs +13 -8
  55. package/dist/array/take.mjs +5 -8
  56. package/dist/array/takeRight.d.mts +2 -2
  57. package/dist/array/takeRight.d.ts +2 -2
  58. package/dist/array/takeRight.mjs +8 -8
  59. package/dist/array/takeRightWhile.mjs +10 -8
  60. package/dist/array/takeWhile.mjs +12 -8
  61. package/dist/array/toFilled.d.mts +5 -3
  62. package/dist/array/toFilled.d.ts +5 -3
  63. package/dist/array/toFilled.mjs +12 -8
  64. package/dist/array/union.mjs +7 -9
  65. package/dist/array/unionBy.mjs +12 -8
  66. package/dist/array/unionWith.mjs +7 -9
  67. package/dist/array/uniq.mjs +5 -8
  68. package/dist/array/uniqBy.mjs +12 -8
  69. package/dist/array/uniqWith.mjs +12 -8
  70. package/dist/array/unzip.d.mts +3 -2
  71. package/dist/array/unzip.d.ts +3 -2
  72. package/dist/array/unzip.mjs +18 -8
  73. package/dist/array/unzipWith.mjs +14 -8
  74. package/dist/array/without.mjs +6 -8
  75. package/dist/array/xor.mjs +9 -12
  76. package/dist/array/xorBy.mjs +11 -11
  77. package/dist/array/xorWith.mjs +11 -12
  78. package/dist/array/zip.d.mts +1 -0
  79. package/dist/array/zip.d.ts +1 -0
  80. package/dist/array/zip.mjs +14 -8
  81. package/dist/array/zipObject.d.mts +1 -1
  82. package/dist/array/zipObject.d.ts +1 -1
  83. package/dist/array/zipObject.mjs +9 -8
  84. package/dist/array/zipWith.d.mts +5 -0
  85. package/dist/array/zipWith.d.ts +5 -0
  86. package/dist/array/zipWith.mjs +13 -8
  87. package/dist/browser.global.js +2 -0
  88. package/dist/browser.global.js.map +1 -0
  89. package/dist/compat/_internal/getSymbols.mjs +6 -0
  90. package/dist/compat/_internal/getTag.mjs +8 -0
  91. package/dist/compat/_internal/identity.mjs +5 -0
  92. package/dist/compat/_internal/isArrayMatch.mjs +24 -0
  93. package/dist/compat/_internal/isDeepKey.mjs +15 -0
  94. package/dist/compat/_internal/isIndex.mjs +16 -0
  95. package/dist/compat/_internal/isMapMatch.mjs +18 -0
  96. package/dist/compat/_internal/isSetMatch.mjs +13 -0
  97. package/dist/compat/_internal/tags.mjs +28 -0
  98. package/dist/compat/_internal/toPath.mjs +40 -0
  99. package/dist/compat/array/chunk.d.mts +26 -0
  100. package/dist/compat/array/chunk.d.ts +26 -0
  101. package/dist/compat/array/chunk.mjs +11 -0
  102. package/dist/compat/array/concat.d.mts +30 -0
  103. package/dist/compat/array/concat.d.ts +30 -0
  104. package/dist/compat/array/concat.mjs +7 -0
  105. package/dist/compat/array/difference.d.mts +3 -0
  106. package/dist/compat/array/difference.d.ts +3 -0
  107. package/dist/compat/array/difference.mjs +10 -0
  108. package/dist/compat/array/fill.d.mts +33 -0
  109. package/dist/compat/array/fill.d.ts +33 -0
  110. package/dist/compat/array/fill.mjs +15 -0
  111. package/dist/compat/array/flatten.d.mts +19 -0
  112. package/dist/compat/array/flatten.d.ts +19 -0
  113. package/dist/compat/array/flatten.mjs +29 -0
  114. package/dist/compat/array/flattenDeep.d.mts +25 -0
  115. package/dist/compat/array/flattenDeep.d.ts +25 -0
  116. package/dist/compat/array/flattenDeep.mjs +7 -0
  117. package/dist/compat/array/flattenDepth.d.mts +19 -0
  118. package/dist/compat/array/flattenDepth.d.ts +19 -0
  119. package/dist/compat/array/flattenDepth.mjs +7 -0
  120. package/dist/compat/array/size.d.mts +39 -0
  121. package/dist/compat/array/size.d.ts +39 -0
  122. package/dist/compat/array/size.mjs +13 -0
  123. package/dist/compat/array/zipObjectDeep.d.mts +37 -0
  124. package/dist/compat/array/zipObjectDeep.d.ts +37 -0
  125. package/dist/compat/array/zipObjectDeep.mjs +16 -0
  126. package/dist/compat/function/ary.d.mts +11 -0
  127. package/dist/compat/function/ary.d.ts +11 -0
  128. package/dist/compat/function/ary.mjs +13 -0
  129. package/dist/compat/function/bind.d.mts +32 -0
  130. package/dist/compat/function/bind.d.ts +32 -0
  131. package/dist/compat/function/bind.mjs +27 -0
  132. package/dist/compat/index.d.mts +37 -472
  133. package/dist/compat/index.d.ts +37 -472
  134. package/dist/compat/index.js +513 -1333
  135. package/dist/compat/index.mjs +121 -391
  136. package/dist/compat/math/max.d.mts +19 -0
  137. package/dist/compat/math/max.d.ts +19 -0
  138. package/dist/compat/math/max.mjs +13 -0
  139. package/dist/compat/math/min.d.mts +19 -0
  140. package/dist/compat/math/min.d.ts +19 -0
  141. package/dist/compat/math/min.mjs +13 -0
  142. package/dist/compat/object/get.d.mts +247 -0
  143. package/dist/compat/object/get.d.ts +247 -0
  144. package/dist/compat/object/get.mjs +33 -0
  145. package/dist/compat/object/get.types.d.mts +9 -0
  146. package/dist/compat/object/get.types.d.ts +9 -0
  147. package/dist/compat/object/mapKeys.d.mts +39 -0
  148. package/dist/compat/object/mapKeys.d.ts +39 -0
  149. package/dist/compat/object/mapKeys.mjs +20 -0
  150. package/dist/compat/object/mapValues.d.mts +40 -0
  151. package/dist/compat/object/mapValues.d.ts +40 -0
  152. package/dist/compat/object/mapValues.mjs +20 -0
  153. package/dist/compat/object/property.d.mts +19 -0
  154. package/dist/compat/object/property.d.ts +19 -0
  155. package/dist/compat/object/property.mjs +9 -0
  156. package/dist/compat/object/set.d.mts +30 -0
  157. package/dist/compat/object/set.d.ts +30 -0
  158. package/dist/compat/object/set.mjs +24 -0
  159. package/dist/compat/predicate/isArguments.d.mts +23 -0
  160. package/dist/compat/predicate/isArguments.d.ts +23 -0
  161. package/dist/compat/predicate/isArguments.mjs +7 -0
  162. package/dist/compat/predicate/isArray.d.mts +23 -0
  163. package/dist/compat/predicate/isArray.d.ts +23 -0
  164. package/dist/compat/predicate/isArray.mjs +5 -0
  165. package/dist/compat/predicate/isArrayLike.d.mts +17 -0
  166. package/dist/compat/predicate/isArrayLike.d.ts +17 -0
  167. package/dist/compat/predicate/isArrayLike.mjs +8 -0
  168. package/dist/compat/predicate/isBoolean.d.mts +25 -0
  169. package/dist/compat/predicate/isBoolean.d.ts +25 -0
  170. package/dist/compat/predicate/isBoolean.mjs +13 -0
  171. package/dist/compat/predicate/isMatch.d.mts +31 -0
  172. package/dist/compat/predicate/isMatch.d.ts +31 -0
  173. package/dist/compat/predicate/isMatch.mjs +57 -0
  174. package/dist/compat/predicate/isObjectLike.d.mts +26 -0
  175. package/dist/compat/predicate/isObjectLike.d.ts +26 -0
  176. package/dist/compat/predicate/isObjectLike.mjs +5 -0
  177. package/dist/compat/predicate/isPlainObject.d.mts +25 -0
  178. package/dist/compat/predicate/isPlainObject.d.ts +25 -0
  179. package/dist/compat/predicate/isPlainObject.mjs +29 -0
  180. package/dist/compat/predicate/isTypedArray.d.mts +19 -0
  181. package/dist/compat/predicate/isTypedArray.d.ts +19 -0
  182. package/dist/compat/predicate/isTypedArray.mjs +7 -0
  183. package/dist/compat/predicate/matches.d.mts +27 -0
  184. package/dist/compat/predicate/matches.d.ts +27 -0
  185. package/dist/compat/predicate/matches.mjs +11 -0
  186. package/dist/compat/string/endsWith.d.mts +20 -0
  187. package/dist/compat/string/endsWith.d.ts +20 -0
  188. package/dist/compat/string/endsWith.mjs +5 -0
  189. package/dist/compat/string/padStart.d.mts +20 -0
  190. package/dist/compat/string/padStart.d.ts +20 -0
  191. package/dist/compat/string/padStart.mjs +5 -0
  192. package/dist/compat/string/startsWith.d.mts +20 -0
  193. package/dist/compat/string/startsWith.d.ts +20 -0
  194. package/dist/compat/string/startsWith.mjs +5 -0
  195. package/dist/error/AbortError.mjs +8 -8
  196. package/dist/error/TimeoutError.mjs +8 -8
  197. package/dist/function/after.d.mts +31 -0
  198. package/dist/function/after.d.ts +31 -0
  199. package/dist/function/after.mjs +14 -0
  200. package/dist/function/ary.d.mts +12 -0
  201. package/dist/function/ary.d.ts +12 -0
  202. package/dist/function/ary.mjs +7 -0
  203. package/dist/function/before.d.mts +31 -0
  204. package/dist/function/before.d.ts +31 -0
  205. package/dist/function/before.mjs +14 -0
  206. package/dist/function/debounce.mjs +28 -8
  207. package/dist/function/index.d.mts +4 -0
  208. package/dist/function/index.d.ts +4 -0
  209. package/dist/function/index.js +93 -88
  210. package/dist/function/index.mjs +9 -25
  211. package/dist/function/negate.mjs +5 -8
  212. package/dist/function/noop.mjs +3 -8
  213. package/dist/function/once.mjs +15 -8
  214. package/dist/function/throttle.mjs +13 -8
  215. package/dist/function/unary.d.mts +10 -0
  216. package/dist/function/unary.d.ts +10 -0
  217. package/dist/function/unary.mjs +7 -0
  218. package/dist/index.d.mts +12 -0
  219. package/dist/index.d.ts +12 -0
  220. package/dist/index.js +120 -1210
  221. package/dist/index.mjs +102 -375
  222. package/dist/math/clamp.mjs +8 -8
  223. package/dist/math/inRange.mjs +12 -8
  224. package/dist/math/index.js +58 -115
  225. package/dist/math/index.mjs +10 -45
  226. package/dist/math/mean.mjs +7 -9
  227. package/dist/math/meanBy.mjs +8 -10
  228. package/dist/math/random.mjs +12 -8
  229. package/dist/math/randomInt.mjs +7 -9
  230. package/dist/math/range.mjs +20 -8
  231. package/dist/math/round.mjs +9 -8
  232. package/dist/math/sum.mjs +9 -8
  233. package/dist/math/sumBy.mjs +8 -9
  234. package/dist/object/clone.mjs +39 -8
  235. package/dist/object/cloneDeep.d.mts +49 -0
  236. package/dist/object/cloneDeep.d.ts +49 -0
  237. package/dist/object/cloneDeep.mjs +113 -0
  238. package/dist/object/flattenObject.mjs +28 -9
  239. package/dist/object/index.d.mts +3 -0
  240. package/dist/object/index.d.ts +3 -0
  241. package/dist/object/index.js +230 -165
  242. package/dist/object/index.mjs +10 -34
  243. package/dist/object/invert.mjs +12 -8
  244. package/dist/object/mapKeys.d.mts +21 -0
  245. package/dist/object/mapKeys.d.ts +21 -0
  246. package/dist/object/mapKeys.mjs +12 -0
  247. package/dist/object/mapValues.d.mts +21 -0
  248. package/dist/object/mapValues.d.ts +21 -0
  249. package/dist/object/mapValues.mjs +12 -0
  250. package/dist/object/omit.mjs +9 -8
  251. package/dist/object/omitBy.mjs +12 -8
  252. package/dist/object/pick.mjs +9 -8
  253. package/dist/object/pickBy.mjs +12 -8
  254. package/dist/predicate/index.d.mts +4 -0
  255. package/dist/predicate/index.d.ts +4 -0
  256. package/dist/predicate/index.js +17 -126
  257. package/dist/predicate/index.mjs +11 -35
  258. package/dist/predicate/isBoolean.d.mts +25 -0
  259. package/dist/predicate/isBoolean.d.ts +25 -0
  260. package/dist/predicate/isBoolean.mjs +5 -0
  261. package/dist/predicate/isEqual.d.mts +1 -1
  262. package/dist/predicate/isEqual.d.ts +1 -1
  263. package/dist/predicate/isEqual.mjs +177 -10
  264. package/dist/predicate/isFunction.d.mts +16 -0
  265. package/dist/predicate/isFunction.d.ts +16 -0
  266. package/dist/predicate/isFunction.mjs +5 -0
  267. package/dist/predicate/isLength.d.mts +21 -0
  268. package/dist/predicate/isLength.d.ts +21 -0
  269. package/dist/predicate/isLength.mjs +5 -8
  270. package/dist/predicate/isNil.mjs +5 -8
  271. package/dist/predicate/isNotNil.mjs +5 -8
  272. package/dist/predicate/isNull.mjs +5 -8
  273. package/dist/predicate/isPlainObject.mjs +21 -8
  274. package/dist/predicate/isPrimitive.d.mts +17 -0
  275. package/dist/predicate/isPrimitive.d.ts +17 -0
  276. package/dist/predicate/isPrimitive.mjs +5 -0
  277. package/dist/predicate/isTypedArray.d.mts +19 -0
  278. package/dist/predicate/isTypedArray.d.ts +19 -0
  279. package/dist/predicate/isTypedArray.mjs +15 -0
  280. package/dist/predicate/isUndefined.mjs +5 -8
  281. package/dist/promise/delay.mjs +20 -9
  282. package/dist/promise/index.js +5 -96
  283. package/dist/promise/index.mjs +2 -16
  284. package/dist/promise/timeout.mjs +9 -11
  285. package/dist/promise/withTimeout.mjs +7 -12
  286. package/dist/string/_internal/getWords.mjs +6 -0
  287. package/dist/string/camelCase.mjs +13 -10
  288. package/dist/string/capitalize.mjs +4 -7
  289. package/dist/string/index.js +41 -78
  290. package/dist/string/index.mjs +6 -30
  291. package/dist/string/kebabCase.mjs +7 -8
  292. package/dist/string/lowerCase.mjs +7 -8
  293. package/dist/string/snakeCase.mjs +7 -8
  294. package/dist/string/startCase.mjs +20 -9
  295. package/package.json +13 -4
  296. package/dist/array/chunk.js +0 -43
  297. package/dist/array/chunk.js.map +0 -1
  298. package/dist/array/chunk.mjs.map +0 -1
  299. package/dist/array/compact.js +0 -39
  300. package/dist/array/compact.js.map +0 -1
  301. package/dist/array/compact.mjs.map +0 -1
  302. package/dist/array/countBy.js +0 -39
  303. package/dist/array/countBy.js.map +0 -1
  304. package/dist/array/countBy.mjs.map +0 -1
  305. package/dist/array/difference.js +0 -34
  306. package/dist/array/difference.js.map +0 -1
  307. package/dist/array/difference.mjs.map +0 -1
  308. package/dist/array/differenceBy.js +0 -36
  309. package/dist/array/differenceBy.js.map +0 -1
  310. package/dist/array/differenceBy.mjs.map +0 -1
  311. package/dist/array/differenceWith.js +0 -37
  312. package/dist/array/differenceWith.js.map +0 -1
  313. package/dist/array/differenceWith.mjs.map +0 -1
  314. package/dist/array/drop.js +0 -34
  315. package/dist/array/drop.js.map +0 -1
  316. package/dist/array/drop.mjs.map +0 -1
  317. package/dist/array/dropRight.js +0 -37
  318. package/dist/array/dropRight.js.map +0 -1
  319. package/dist/array/dropRight.mjs.map +0 -1
  320. package/dist/array/dropRightWhile.js +0 -38
  321. package/dist/array/dropRightWhile.js.map +0 -1
  322. package/dist/array/dropRightWhile.mjs.map +0 -1
  323. package/dist/array/dropWhile.js +0 -37
  324. package/dist/array/dropWhile.js.map +0 -1
  325. package/dist/array/dropWhile.mjs.map +0 -1
  326. package/dist/array/fill.js +0 -39
  327. package/dist/array/fill.js.map +0 -1
  328. package/dist/array/fill.mjs.map +0 -1
  329. package/dist/array/flatMap.js +0 -52
  330. package/dist/array/flatMap.js.map +0 -1
  331. package/dist/array/flatMap.mjs.map +0 -1
  332. package/dist/array/flatten.js +0 -45
  333. package/dist/array/flatten.js.map +0 -1
  334. package/dist/array/flatten.mjs.map +0 -1
  335. package/dist/array/flattenDeep.js +0 -52
  336. package/dist/array/flattenDeep.js.map +0 -1
  337. package/dist/array/flattenDeep.mjs.map +0 -1
  338. package/dist/array/forEachRight.js +0 -36
  339. package/dist/array/forEachRight.js.map +0 -1
  340. package/dist/array/forEachRight.mjs.map +0 -1
  341. package/dist/array/groupBy.js +0 -41
  342. package/dist/array/groupBy.js.map +0 -1
  343. package/dist/array/groupBy.mjs.map +0 -1
  344. package/dist/array/head.js +0 -33
  345. package/dist/array/head.js.map +0 -1
  346. package/dist/array/head.mjs.map +0 -1
  347. package/dist/array/index.js.map +0 -1
  348. package/dist/array/index.mjs.map +0 -1
  349. package/dist/array/initial.js +0 -36
  350. package/dist/array/initial.js.map +0 -1
  351. package/dist/array/initial.mjs.map +0 -1
  352. package/dist/array/intersection.js +0 -36
  353. package/dist/array/intersection.js.map +0 -1
  354. package/dist/array/intersection.mjs.map +0 -1
  355. package/dist/array/intersectionBy.js +0 -34
  356. package/dist/array/intersectionBy.js.map +0 -1
  357. package/dist/array/intersectionBy.mjs.map +0 -1
  358. package/dist/array/intersectionWith.js +0 -37
  359. package/dist/array/intersectionWith.js.map +0 -1
  360. package/dist/array/intersectionWith.mjs.map +0 -1
  361. package/dist/array/keyBy.js +0 -38
  362. package/dist/array/keyBy.js.map +0 -1
  363. package/dist/array/keyBy.mjs.map +0 -1
  364. package/dist/array/last.js +0 -33
  365. package/dist/array/last.js.map +0 -1
  366. package/dist/array/last.mjs.map +0 -1
  367. package/dist/array/maxBy.js +0 -42
  368. package/dist/array/maxBy.js.map +0 -1
  369. package/dist/array/maxBy.mjs.map +0 -1
  370. package/dist/array/minBy.js +0 -42
  371. package/dist/array/minBy.js.map +0 -1
  372. package/dist/array/minBy.mjs.map +0 -1
  373. package/dist/array/orderBy.js +0 -53
  374. package/dist/array/orderBy.js.map +0 -1
  375. package/dist/array/orderBy.mjs.map +0 -1
  376. package/dist/array/partition.js +0 -42
  377. package/dist/array/partition.js.map +0 -1
  378. package/dist/array/partition.mjs.map +0 -1
  379. package/dist/array/sample.js +0 -34
  380. package/dist/array/sample.js.map +0 -1
  381. package/dist/array/sample.mjs.map +0 -1
  382. package/dist/array/sampleSize.js +0 -65
  383. package/dist/array/sampleSize.js.map +0 -1
  384. package/dist/array/sampleSize.mjs.map +0 -1
  385. package/dist/array/shuffle.js +0 -38
  386. package/dist/array/shuffle.js.map +0 -1
  387. package/dist/array/shuffle.mjs.map +0 -1
  388. package/dist/array/tail.js +0 -41
  389. package/dist/array/tail.js.map +0 -1
  390. package/dist/array/tail.mjs.map +0 -1
  391. package/dist/array/take.js +0 -33
  392. package/dist/array/take.js.map +0 -1
  393. package/dist/array/take.mjs.map +0 -1
  394. package/dist/array/takeRight.js +0 -36
  395. package/dist/array/takeRight.js.map +0 -1
  396. package/dist/array/takeRight.mjs.map +0 -1
  397. package/dist/array/takeRightWhile.js +0 -38
  398. package/dist/array/takeRightWhile.js.map +0 -1
  399. package/dist/array/takeRightWhile.mjs.map +0 -1
  400. package/dist/array/takeWhile.js +0 -40
  401. package/dist/array/takeWhile.js.map +0 -1
  402. package/dist/array/takeWhile.mjs.map +0 -1
  403. package/dist/array/toFilled.js +0 -40
  404. package/dist/array/toFilled.js.map +0 -1
  405. package/dist/array/toFilled.mjs.map +0 -1
  406. package/dist/array/union.js +0 -40
  407. package/dist/array/union.js.map +0 -1
  408. package/dist/array/union.mjs.map +0 -1
  409. package/dist/array/unionBy.js +0 -40
  410. package/dist/array/unionBy.js.map +0 -1
  411. package/dist/array/unionBy.mjs.map +0 -1
  412. package/dist/array/unionWith.js +0 -47
  413. package/dist/array/unionWith.js.map +0 -1
  414. package/dist/array/unionWith.mjs.map +0 -1
  415. package/dist/array/uniq.js +0 -33
  416. package/dist/array/uniq.js.map +0 -1
  417. package/dist/array/uniq.mjs.map +0 -1
  418. package/dist/array/uniqBy.js +0 -40
  419. package/dist/array/uniqBy.js.map +0 -1
  420. package/dist/array/uniqBy.mjs.map +0 -1
  421. package/dist/array/uniqWith.js +0 -40
  422. package/dist/array/uniqWith.js.map +0 -1
  423. package/dist/array/uniqWith.mjs.map +0 -1
  424. package/dist/array/unzip.js +0 -46
  425. package/dist/array/unzip.js.map +0 -1
  426. package/dist/array/unzip.mjs.map +0 -1
  427. package/dist/array/unzipWith.js +0 -42
  428. package/dist/array/unzipWith.js.map +0 -1
  429. package/dist/array/unzipWith.mjs.map +0 -1
  430. package/dist/array/without.js +0 -34
  431. package/dist/array/without.js.map +0 -1
  432. package/dist/array/without.mjs.map +0 -1
  433. package/dist/array/xor.js +0 -59
  434. package/dist/array/xor.js.map +0 -1
  435. package/dist/array/xor.mjs.map +0 -1
  436. package/dist/array/xorBy.js +0 -63
  437. package/dist/array/xorBy.js.map +0 -1
  438. package/dist/array/xorBy.mjs.map +0 -1
  439. package/dist/array/xorWith.js +0 -72
  440. package/dist/array/xorWith.js.map +0 -1
  441. package/dist/array/xorWith.mjs.map +0 -1
  442. package/dist/array/zip.js +0 -42
  443. package/dist/array/zip.js.map +0 -1
  444. package/dist/array/zip.mjs.map +0 -1
  445. package/dist/array/zipObject.js +0 -37
  446. package/dist/array/zipObject.js.map +0 -1
  447. package/dist/array/zipObject.mjs.map +0 -1
  448. package/dist/array/zipWith.js +0 -41
  449. package/dist/array/zipWith.js.map +0 -1
  450. package/dist/array/zipWith.mjs.map +0 -1
  451. package/dist/browser.d.mts +0 -2
  452. package/dist/browser.d.ts +0 -2
  453. package/dist/browser.js +0 -1325
  454. package/dist/browser.js.map +0 -1
  455. package/dist/browser.mjs +0 -109
  456. package/dist/browser.mjs.map +0 -1
  457. package/dist/chunk-236H5JZJ.mjs +0 -1
  458. package/dist/chunk-236H5JZJ.mjs.map +0 -1
  459. package/dist/chunk-237HGSZS.mjs +0 -16
  460. package/dist/chunk-237HGSZS.mjs.map +0 -1
  461. package/dist/chunk-24FKGR6U.mjs +0 -47
  462. package/dist/chunk-24FKGR6U.mjs.map +0 -1
  463. package/dist/chunk-27QMXBLJ.mjs +0 -9
  464. package/dist/chunk-27QMXBLJ.mjs.map +0 -1
  465. package/dist/chunk-2IXFGSUA.mjs +0 -16
  466. package/dist/chunk-2IXFGSUA.mjs.map +0 -1
  467. package/dist/chunk-2KNLZB7V.mjs +0 -10
  468. package/dist/chunk-2KNLZB7V.mjs.map +0 -1
  469. package/dist/chunk-2SLTL4KL.mjs +0 -13
  470. package/dist/chunk-2SLTL4KL.mjs.map +0 -1
  471. package/dist/chunk-2ZCITDMK.mjs +0 -13
  472. package/dist/chunk-2ZCITDMK.mjs.map +0 -1
  473. package/dist/chunk-33MSBDC6.mjs +0 -21
  474. package/dist/chunk-33MSBDC6.mjs.map +0 -1
  475. package/dist/chunk-3EZAFZG3.mjs +0 -10
  476. package/dist/chunk-3EZAFZG3.mjs.map +0 -1
  477. package/dist/chunk-3IP4JVLL.mjs +0 -32
  478. package/dist/chunk-3IP4JVLL.mjs.map +0 -1
  479. package/dist/chunk-4KYXHZ4R.mjs +0 -17
  480. package/dist/chunk-4KYXHZ4R.mjs.map +0 -1
  481. package/dist/chunk-4OIZM4HS.mjs +0 -1
  482. package/dist/chunk-4OIZM4HS.mjs.map +0 -1
  483. package/dist/chunk-54TK5BIS.mjs +0 -1
  484. package/dist/chunk-54TK5BIS.mjs.map +0 -1
  485. package/dist/chunk-5ASRKEB4.mjs +0 -13
  486. package/dist/chunk-5ASRKEB4.mjs.map +0 -1
  487. package/dist/chunk-5IKVJGHO.mjs +0 -14
  488. package/dist/chunk-5IKVJGHO.mjs.map +0 -1
  489. package/dist/chunk-5L4VWRFX.mjs +0 -14
  490. package/dist/chunk-5L4VWRFX.mjs.map +0 -1
  491. package/dist/chunk-5PMKOZ2F.mjs +0 -13
  492. package/dist/chunk-5PMKOZ2F.mjs.map +0 -1
  493. package/dist/chunk-6CLH5YZ2.mjs +0 -16
  494. package/dist/chunk-6CLH5YZ2.mjs.map +0 -1
  495. package/dist/chunk-6GWEY5EL.mjs +0 -13
  496. package/dist/chunk-6GWEY5EL.mjs.map +0 -1
  497. package/dist/chunk-6NVQAHXP.mjs +0 -13
  498. package/dist/chunk-6NVQAHXP.mjs.map +0 -1
  499. package/dist/chunk-7B7W36UP.mjs +0 -29
  500. package/dist/chunk-7B7W36UP.mjs.map +0 -1
  501. package/dist/chunk-AIRSKN47.mjs +0 -9
  502. package/dist/chunk-AIRSKN47.mjs.map +0 -1
  503. package/dist/chunk-AJKZMN2V.mjs +0 -14
  504. package/dist/chunk-AJKZMN2V.mjs.map +0 -1
  505. package/dist/chunk-B4COTK4K.mjs +0 -16
  506. package/dist/chunk-B4COTK4K.mjs.map +0 -1
  507. package/dist/chunk-B645AYL4.mjs +0 -1
  508. package/dist/chunk-B645AYL4.mjs.map +0 -1
  509. package/dist/chunk-BCTYOXT7.mjs +0 -16
  510. package/dist/chunk-BCTYOXT7.mjs.map +0 -1
  511. package/dist/chunk-BH6HLGBA.mjs +0 -16
  512. package/dist/chunk-BH6HLGBA.mjs.map +0 -1
  513. package/dist/chunk-BJWAMCFH.mjs +0 -598
  514. package/dist/chunk-BJWAMCFH.mjs.map +0 -1
  515. package/dist/chunk-BMRTZMRE.mjs +0 -9
  516. package/dist/chunk-BMRTZMRE.mjs.map +0 -1
  517. package/dist/chunk-BOOQBJN2.mjs +0 -9
  518. package/dist/chunk-BOOQBJN2.mjs.map +0 -1
  519. package/dist/chunk-CMBC4MXG.mjs +0 -19
  520. package/dist/chunk-CMBC4MXG.mjs.map +0 -1
  521. package/dist/chunk-CRSKT4WW.mjs +0 -15
  522. package/dist/chunk-CRSKT4WW.mjs.map +0 -1
  523. package/dist/chunk-CVVZHOJX.mjs +0 -22
  524. package/dist/chunk-CVVZHOJX.mjs.map +0 -1
  525. package/dist/chunk-DDH7K4QM.mjs +0 -1
  526. package/dist/chunk-DDH7K4QM.mjs.map +0 -1
  527. package/dist/chunk-DN3NOZ3H.mjs +0 -18
  528. package/dist/chunk-DN3NOZ3H.mjs.map +0 -1
  529. package/dist/chunk-DPH2KE6O.mjs +0 -24
  530. package/dist/chunk-DPH2KE6O.mjs.map +0 -1
  531. package/dist/chunk-DTJJIMKJ.mjs +0 -15
  532. package/dist/chunk-DTJJIMKJ.mjs.map +0 -1
  533. package/dist/chunk-DVK2N4KC.mjs +0 -9
  534. package/dist/chunk-DVK2N4KC.mjs.map +0 -1
  535. package/dist/chunk-DXB7EZUQ.mjs +0 -12
  536. package/dist/chunk-DXB7EZUQ.mjs.map +0 -1
  537. package/dist/chunk-E6C5EZQA.mjs +0 -19
  538. package/dist/chunk-E6C5EZQA.mjs.map +0 -1
  539. package/dist/chunk-E6E4RZLN.mjs +0 -17
  540. package/dist/chunk-E6E4RZLN.mjs.map +0 -1
  541. package/dist/chunk-EHSKB6DF.mjs +0 -26
  542. package/dist/chunk-EHSKB6DF.mjs.map +0 -1
  543. package/dist/chunk-EYYZQFOP.mjs +0 -14
  544. package/dist/chunk-EYYZQFOP.mjs.map +0 -1
  545. package/dist/chunk-F3WCQQET.mjs +0 -14
  546. package/dist/chunk-F3WCQQET.mjs.map +0 -1
  547. package/dist/chunk-F47GLYUU.mjs +0 -1
  548. package/dist/chunk-F47GLYUU.mjs.map +0 -1
  549. package/dist/chunk-FUS75PJ7.mjs +0 -1
  550. package/dist/chunk-FUS75PJ7.mjs.map +0 -1
  551. package/dist/chunk-FVVSE2F2.mjs +0 -12
  552. package/dist/chunk-FVVSE2F2.mjs.map +0 -1
  553. package/dist/chunk-G7UQ5PUR.mjs +0 -14
  554. package/dist/chunk-G7UQ5PUR.mjs.map +0 -1
  555. package/dist/chunk-GIWAOOFY.mjs +0 -13
  556. package/dist/chunk-GIWAOOFY.mjs.map +0 -1
  557. package/dist/chunk-HM2JT2RX.mjs +0 -9
  558. package/dist/chunk-HM2JT2RX.mjs.map +0 -1
  559. package/dist/chunk-HPFDYUGP.mjs +0 -13
  560. package/dist/chunk-HPFDYUGP.mjs.map +0 -1
  561. package/dist/chunk-IDCUZVJL.mjs +0 -18
  562. package/dist/chunk-IDCUZVJL.mjs.map +0 -1
  563. package/dist/chunk-IEA53J7P.mjs +0 -12
  564. package/dist/chunk-IEA53J7P.mjs.map +0 -1
  565. package/dist/chunk-IFNXROZR.mjs +0 -18
  566. package/dist/chunk-IFNXROZR.mjs.map +0 -1
  567. package/dist/chunk-IIDZ3KAJ.mjs +0 -18
  568. package/dist/chunk-IIDZ3KAJ.mjs.map +0 -1
  569. package/dist/chunk-IJD7FE2Z.mjs +0 -18
  570. package/dist/chunk-IJD7FE2Z.mjs.map +0 -1
  571. package/dist/chunk-IQLKIDXF.mjs +0 -12
  572. package/dist/chunk-IQLKIDXF.mjs.map +0 -1
  573. package/dist/chunk-JPUKH67K.mjs +0 -10
  574. package/dist/chunk-JPUKH67K.mjs.map +0 -1
  575. package/dist/chunk-JYSV56US.mjs +0 -41
  576. package/dist/chunk-JYSV56US.mjs.map +0 -1
  577. package/dist/chunk-KIOYQRMQ.mjs +0 -12
  578. package/dist/chunk-KIOYQRMQ.mjs.map +0 -1
  579. package/dist/chunk-KPBQ7OUY.mjs +0 -9
  580. package/dist/chunk-KPBQ7OUY.mjs.map +0 -1
  581. package/dist/chunk-L7FQX5MN.mjs +0 -19
  582. package/dist/chunk-L7FQX5MN.mjs.map +0 -1
  583. package/dist/chunk-LJ2C6MVP.mjs +0 -13
  584. package/dist/chunk-LJ2C6MVP.mjs.map +0 -1
  585. package/dist/chunk-LKXCOLNY.mjs +0 -8
  586. package/dist/chunk-LKXCOLNY.mjs.map +0 -1
  587. package/dist/chunk-LVWX5B43.mjs +0 -12
  588. package/dist/chunk-LVWX5B43.mjs.map +0 -1
  589. package/dist/chunk-M7SBBYV2.mjs +0 -14
  590. package/dist/chunk-M7SBBYV2.mjs.map +0 -1
  591. package/dist/chunk-ME352XO7.mjs +0 -9
  592. package/dist/chunk-ME352XO7.mjs.map +0 -1
  593. package/dist/chunk-MIGAC7F4.mjs +0 -25
  594. package/dist/chunk-MIGAC7F4.mjs.map +0 -1
  595. package/dist/chunk-ML727RRJ.mjs +0 -13
  596. package/dist/chunk-ML727RRJ.mjs.map +0 -1
  597. package/dist/chunk-MLCL773E.mjs +0 -12
  598. package/dist/chunk-MLCL773E.mjs.map +0 -1
  599. package/dist/chunk-MY4G7R3I.mjs +0 -14
  600. package/dist/chunk-MY4G7R3I.mjs.map +0 -1
  601. package/dist/chunk-NFS7RWWE.mjs +0 -16
  602. package/dist/chunk-NFS7RWWE.mjs.map +0 -1
  603. package/dist/chunk-NKLIE2OI.mjs +0 -1
  604. package/dist/chunk-NKLIE2OI.mjs.map +0 -1
  605. package/dist/chunk-NTLX2MPV.mjs +0 -14
  606. package/dist/chunk-NTLX2MPV.mjs.map +0 -1
  607. package/dist/chunk-O64NE2P4.mjs +0 -26
  608. package/dist/chunk-O64NE2P4.mjs.map +0 -1
  609. package/dist/chunk-O6UXZR3U.mjs +0 -10
  610. package/dist/chunk-O6UXZR3U.mjs.map +0 -1
  611. package/dist/chunk-OLX53VEF.mjs +0 -16
  612. package/dist/chunk-OLX53VEF.mjs.map +0 -1
  613. package/dist/chunk-OOKNBU4V.mjs +0 -18
  614. package/dist/chunk-OOKNBU4V.mjs.map +0 -1
  615. package/dist/chunk-OP4OAKQJ.mjs +0 -16
  616. package/dist/chunk-OP4OAKQJ.mjs.map +0 -1
  617. package/dist/chunk-OXZCMC5I.mjs +0 -13
  618. package/dist/chunk-OXZCMC5I.mjs.map +0 -1
  619. package/dist/chunk-PYEYV7BY.mjs +0 -10
  620. package/dist/chunk-PYEYV7BY.mjs.map +0 -1
  621. package/dist/chunk-Q47NGNXT.mjs +0 -21
  622. package/dist/chunk-Q47NGNXT.mjs.map +0 -1
  623. package/dist/chunk-QOJGMVVR.mjs +0 -17
  624. package/dist/chunk-QOJGMVVR.mjs.map +0 -1
  625. package/dist/chunk-QRSJBBFY.mjs +0 -21
  626. package/dist/chunk-QRSJBBFY.mjs.map +0 -1
  627. package/dist/chunk-QXTNZR7B.mjs +0 -25
  628. package/dist/chunk-QXTNZR7B.mjs.map +0 -1
  629. package/dist/chunk-R6QA7PLZ.mjs +0 -13
  630. package/dist/chunk-R6QA7PLZ.mjs.map +0 -1
  631. package/dist/chunk-SYWMYQYJ.mjs +0 -16
  632. package/dist/chunk-SYWMYQYJ.mjs.map +0 -1
  633. package/dist/chunk-TJ4Z5I7M.mjs +0 -17
  634. package/dist/chunk-TJ4Z5I7M.mjs.map +0 -1
  635. package/dist/chunk-U4JGKZ56.mjs +0 -41
  636. package/dist/chunk-U4JGKZ56.mjs.map +0 -1
  637. package/dist/chunk-U56ZOM7L.mjs +0 -9
  638. package/dist/chunk-U56ZOM7L.mjs.map +0 -1
  639. package/dist/chunk-UY76KTPE.mjs +0 -13
  640. package/dist/chunk-UY76KTPE.mjs.map +0 -1
  641. package/dist/chunk-UYZKMBDO.mjs +0 -22
  642. package/dist/chunk-UYZKMBDO.mjs.map +0 -1
  643. package/dist/chunk-VH2PV426.mjs +0 -9
  644. package/dist/chunk-VH2PV426.mjs.map +0 -1
  645. package/dist/chunk-WFZXCGEG.mjs +0 -17
  646. package/dist/chunk-WFZXCGEG.mjs.map +0 -1
  647. package/dist/chunk-WMM7TZLG.mjs +0 -9
  648. package/dist/chunk-WMM7TZLG.mjs.map +0 -1
  649. package/dist/chunk-WVQ7YVRK.mjs +0 -11
  650. package/dist/chunk-WVQ7YVRK.mjs.map +0 -1
  651. package/dist/chunk-XGQWTHW6.mjs +0 -34
  652. package/dist/chunk-XGQWTHW6.mjs.map +0 -1
  653. package/dist/chunk-XI7KRD2C.mjs +0 -13
  654. package/dist/chunk-XI7KRD2C.mjs.map +0 -1
  655. package/dist/chunk-XPSOKBRZ.mjs +0 -12
  656. package/dist/chunk-XPSOKBRZ.mjs.map +0 -1
  657. package/dist/chunk-XT74R35S.mjs +0 -1
  658. package/dist/chunk-XT74R35S.mjs.map +0 -1
  659. package/dist/chunk-Y5V7UAZZ.mjs +0 -21
  660. package/dist/chunk-Y5V7UAZZ.mjs.map +0 -1
  661. package/dist/chunk-YFN6KOC4.mjs +0 -15
  662. package/dist/chunk-YFN6KOC4.mjs.map +0 -1
  663. package/dist/compat/index.js.map +0 -1
  664. package/dist/compat/index.mjs.map +0 -1
  665. package/dist/error/AbortError.js +0 -36
  666. package/dist/error/AbortError.js.map +0 -1
  667. package/dist/error/AbortError.mjs.map +0 -1
  668. package/dist/error/TimeoutError.js +0 -36
  669. package/dist/error/TimeoutError.js.map +0 -1
  670. package/dist/error/TimeoutError.mjs.map +0 -1
  671. package/dist/error/index.d.mts +0 -2
  672. package/dist/error/index.d.ts +0 -2
  673. package/dist/error/index.js +0 -48
  674. package/dist/error/index.js.map +0 -1
  675. package/dist/error/index.mjs +0 -13
  676. package/dist/error/index.mjs.map +0 -1
  677. package/dist/function/debounce.js +0 -56
  678. package/dist/function/debounce.js.map +0 -1
  679. package/dist/function/debounce.mjs.map +0 -1
  680. package/dist/function/index.js.map +0 -1
  681. package/dist/function/index.mjs.map +0 -1
  682. package/dist/function/negate.js +0 -33
  683. package/dist/function/negate.js.map +0 -1
  684. package/dist/function/negate.mjs.map +0 -1
  685. package/dist/function/noop.js +0 -32
  686. package/dist/function/noop.js.map +0 -1
  687. package/dist/function/noop.mjs.map +0 -1
  688. package/dist/function/once.js +0 -43
  689. package/dist/function/once.js.map +0 -1
  690. package/dist/function/once.mjs.map +0 -1
  691. package/dist/function/throttle.js +0 -41
  692. package/dist/function/throttle.js.map +0 -1
  693. package/dist/function/throttle.mjs.map +0 -1
  694. package/dist/index.js.map +0 -1
  695. package/dist/index.mjs.map +0 -1
  696. package/dist/math/clamp.js +0 -36
  697. package/dist/math/clamp.js.map +0 -1
  698. package/dist/math/clamp.mjs.map +0 -1
  699. package/dist/math/inRange.js +0 -40
  700. package/dist/math/inRange.js.map +0 -1
  701. package/dist/math/inRange.mjs.map +0 -1
  702. package/dist/math/index.js.map +0 -1
  703. package/dist/math/index.mjs.map +0 -1
  704. package/dist/math/mean.js +0 -44
  705. package/dist/math/mean.js.map +0 -1
  706. package/dist/math/mean.mjs.map +0 -1
  707. package/dist/math/meanBy.js +0 -50
  708. package/dist/math/meanBy.js.map +0 -1
  709. package/dist/math/meanBy.mjs.map +0 -1
  710. package/dist/math/random.js +0 -40
  711. package/dist/math/random.js.map +0 -1
  712. package/dist/math/random.mjs.map +0 -1
  713. package/dist/math/randomInt.js +0 -47
  714. package/dist/math/randomInt.js.map +0 -1
  715. package/dist/math/randomInt.mjs.map +0 -1
  716. package/dist/math/range.js +0 -48
  717. package/dist/math/range.js.map +0 -1
  718. package/dist/math/range.mjs.map +0 -1
  719. package/dist/math/round.js +0 -37
  720. package/dist/math/round.js.map +0 -1
  721. package/dist/math/round.mjs.map +0 -1
  722. package/dist/math/sum.js +0 -37
  723. package/dist/math/sum.js.map +0 -1
  724. package/dist/math/sum.mjs.map +0 -1
  725. package/dist/math/sumBy.js +0 -45
  726. package/dist/math/sumBy.js.map +0 -1
  727. package/dist/math/sumBy.mjs.map +0 -1
  728. package/dist/object/clone.js +0 -65
  729. package/dist/object/clone.js.map +0 -1
  730. package/dist/object/clone.mjs.map +0 -1
  731. package/dist/object/flattenObject.js +0 -77
  732. package/dist/object/flattenObject.js.map +0 -1
  733. package/dist/object/flattenObject.mjs.map +0 -1
  734. package/dist/object/index.js.map +0 -1
  735. package/dist/object/index.mjs.map +0 -1
  736. package/dist/object/invert.js +0 -40
  737. package/dist/object/invert.js.map +0 -1
  738. package/dist/object/invert.mjs.map +0 -1
  739. package/dist/object/omit.js +0 -51
  740. package/dist/object/omit.js.map +0 -1
  741. package/dist/object/omit.mjs.map +0 -1
  742. package/dist/object/omitBy.js +0 -40
  743. package/dist/object/omitBy.js.map +0 -1
  744. package/dist/object/omitBy.mjs.map +0 -1
  745. package/dist/object/pick.js +0 -37
  746. package/dist/object/pick.js.map +0 -1
  747. package/dist/object/pick.mjs.map +0 -1
  748. package/dist/object/pickBy.js +0 -40
  749. package/dist/object/pickBy.js.map +0 -1
  750. package/dist/object/pickBy.mjs.map +0 -1
  751. package/dist/predicate/index.js.map +0 -1
  752. package/dist/predicate/index.mjs.map +0 -1
  753. package/dist/predicate/isEqual.js +0 -73
  754. package/dist/predicate/isEqual.js.map +0 -1
  755. package/dist/predicate/isEqual.mjs.map +0 -1
  756. package/dist/predicate/isLength.js +0 -33
  757. package/dist/predicate/isLength.js.map +0 -1
  758. package/dist/predicate/isLength.mjs.map +0 -1
  759. package/dist/predicate/isNil.js +0 -33
  760. package/dist/predicate/isNil.js.map +0 -1
  761. package/dist/predicate/isNil.mjs.map +0 -1
  762. package/dist/predicate/isNotNil.js +0 -33
  763. package/dist/predicate/isNotNil.js.map +0 -1
  764. package/dist/predicate/isNotNil.mjs.map +0 -1
  765. package/dist/predicate/isNull.js +0 -33
  766. package/dist/predicate/isNull.js.map +0 -1
  767. package/dist/predicate/isNull.mjs.map +0 -1
  768. package/dist/predicate/isPlainObject.js +0 -49
  769. package/dist/predicate/isPlainObject.js.map +0 -1
  770. package/dist/predicate/isPlainObject.mjs.map +0 -1
  771. package/dist/predicate/isUndefined.js +0 -33
  772. package/dist/predicate/isUndefined.js.map +0 -1
  773. package/dist/predicate/isUndefined.mjs.map +0 -1
  774. package/dist/promise/delay.js +0 -56
  775. package/dist/promise/delay.js.map +0 -1
  776. package/dist/promise/delay.mjs.map +0 -1
  777. package/dist/promise/index.js.map +0 -1
  778. package/dist/promise/index.mjs.map +0 -1
  779. package/dist/promise/timeout.d.mts +0 -10
  780. package/dist/promise/timeout.d.ts +0 -10
  781. package/dist/promise/timeout.js +0 -92
  782. package/dist/promise/timeout.js.map +0 -1
  783. package/dist/promise/timeout.mjs.map +0 -1
  784. package/dist/promise/withTimeout.js +0 -99
  785. package/dist/promise/withTimeout.js.map +0 -1
  786. package/dist/promise/withTimeout.mjs.map +0 -1
  787. package/dist/string/camelCase.js +0 -52
  788. package/dist/string/camelCase.js.map +0 -1
  789. package/dist/string/camelCase.mjs.map +0 -1
  790. package/dist/string/capitalize.js +0 -33
  791. package/dist/string/capitalize.js.map +0 -1
  792. package/dist/string/capitalize.mjs.map +0 -1
  793. package/dist/string/index.js.map +0 -1
  794. package/dist/string/index.mjs.map +0 -1
  795. package/dist/string/kebabCase.js +0 -43
  796. package/dist/string/kebabCase.js.map +0 -1
  797. package/dist/string/kebabCase.mjs.map +0 -1
  798. package/dist/string/lowerCase.js +0 -43
  799. package/dist/string/lowerCase.js.map +0 -1
  800. package/dist/string/lowerCase.mjs.map +0 -1
  801. package/dist/string/snakeCase.js +0 -43
  802. package/dist/string/snakeCase.js.map +0 -1
  803. package/dist/string/snakeCase.mjs.map +0 -1
  804. package/dist/string/startCase.js +0 -54
  805. package/dist/string/startCase.js.map +0 -1
  806. package/dist/string/startCase.mjs.map +0 -1
  807. package/umd/browser.global.js +0 -2
package/dist/index.js CHANGED
@@ -1,1210 +1,120 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __export = (target, all) => {
21
- for (var name in all)
22
- __defProp(target, name, { get: all[name], enumerable: true });
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
- var __async = (__this, __arguments, generator) => {
34
- return new Promise((resolve, reject) => {
35
- var fulfilled = (value) => {
36
- try {
37
- step(generator.next(value));
38
- } catch (e) {
39
- reject(e);
40
- }
41
- };
42
- var rejected = (value) => {
43
- try {
44
- step(generator.throw(value));
45
- } catch (e) {
46
- reject(e);
47
- }
48
- };
49
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
50
- step((generator = generator.apply(__this, __arguments)).next());
51
- });
52
- };
53
-
54
- // src/index.ts
55
- var src_exports = {};
56
- __export(src_exports, {
57
- AbortError: () => AbortError,
58
- TimeoutError: () => TimeoutError,
59
- camelCase: () => camelCase,
60
- capitalize: () => capitalize,
61
- chunk: () => chunk,
62
- clamp: () => clamp,
63
- clone: () => clone,
64
- compact: () => compact,
65
- countBy: () => countBy,
66
- debounce: () => debounce,
67
- delay: () => delay,
68
- difference: () => difference,
69
- differenceBy: () => differenceBy,
70
- differenceWith: () => differenceWith,
71
- drop: () => drop,
72
- dropRight: () => dropRight,
73
- dropRightWhile: () => dropRightWhile,
74
- dropWhile: () => dropWhile,
75
- fill: () => fill,
76
- flatMap: () => flatMap,
77
- flatten: () => flatten,
78
- flattenDeep: () => flattenDeep,
79
- flattenObject: () => flattenObject,
80
- forEachRight: () => forEachRight,
81
- groupBy: () => groupBy,
82
- head: () => head,
83
- inRange: () => inRange,
84
- initial: () => initial,
85
- intersection: () => intersection,
86
- intersectionBy: () => intersectionBy,
87
- intersectionWith: () => intersectionWith,
88
- invert: () => invert,
89
- isEqual: () => isEqual,
90
- isLength: () => isLength,
91
- isNil: () => isNil,
92
- isNotNil: () => isNotNil,
93
- isNull: () => isNull,
94
- isPlainObject: () => isPlainObject,
95
- isUndefined: () => isUndefined,
96
- kebabCase: () => kebabCase,
97
- keyBy: () => keyBy,
98
- last: () => last,
99
- lowerCase: () => lowerCase,
100
- maxBy: () => maxBy,
101
- mean: () => mean,
102
- meanBy: () => meanBy,
103
- minBy: () => minBy,
104
- negate: () => negate,
105
- noop: () => noop,
106
- omit: () => omit,
107
- omitBy: () => omitBy,
108
- once: () => once,
109
- orderBy: () => orderBy,
110
- partition: () => partition,
111
- pick: () => pick,
112
- pickBy: () => pickBy,
113
- random: () => random,
114
- randomInt: () => randomInt,
115
- range: () => range,
116
- round: () => round,
117
- sample: () => sample,
118
- sampleSize: () => sampleSize,
119
- shuffle: () => shuffle,
120
- snakeCase: () => snakeCase,
121
- startCase: () => startCase,
122
- sum: () => sum,
123
- sumBy: () => sumBy,
124
- tail: () => tail,
125
- take: () => take,
126
- takeRight: () => takeRight,
127
- takeRightWhile: () => takeRightWhile,
128
- takeWhile: () => takeWhile,
129
- throttle: () => throttle,
130
- toFilled: () => toFilled,
131
- union: () => union,
132
- unionBy: () => unionBy,
133
- unionWith: () => unionWith,
134
- uniq: () => uniq,
135
- uniqBy: () => uniqBy,
136
- uniqWith: () => uniqWith,
137
- unzip: () => unzip,
138
- unzipWith: () => unzipWith,
139
- withTimeout: () => withTimeout,
140
- without: () => without,
141
- xor: () => xor,
142
- xorBy: () => xorBy,
143
- xorWith: () => xorWith,
144
- zip: () => zip,
145
- zipObject: () => zipObject,
146
- zipWith: () => zipWith
147
- });
148
- module.exports = __toCommonJS(src_exports);
149
-
150
- // src/array/chunk.ts
151
- function chunk(arr, size) {
152
- if (!Number.isInteger(size) || size <= 0) {
153
- throw new Error("Size must be an integer greater than zero.");
154
- }
155
- const chunkLength = Math.ceil(arr.length / size);
156
- const result = Array(chunkLength);
157
- for (let index = 0; index < chunkLength; index++) {
158
- const start = index * size;
159
- const end = start + size;
160
- result[index] = arr.slice(start, end);
161
- }
162
- return result;
163
- }
164
-
165
- // src/array/compact.ts
166
- function compact(arr) {
167
- const result = [];
168
- for (const item of arr) {
169
- if (item) {
170
- result.push(item);
171
- }
172
- }
173
- return result;
174
- }
175
-
176
- // src/array/countBy.ts
177
- function countBy(arr, mapper) {
178
- var _a;
179
- const result = {};
180
- for (const item of arr) {
181
- const key = mapper(item);
182
- result[key] = ((_a = result[key]) != null ? _a : 0) + 1;
183
- }
184
- return result;
185
- }
186
-
187
- // src/array/difference.ts
188
- function difference(firstArr, secondArr) {
189
- const secondSet = new Set(secondArr);
190
- return firstArr.filter((item) => !secondSet.has(item));
191
- }
192
-
193
- // src/array/differenceBy.ts
194
- function differenceBy(firstArr, secondArr, mapper) {
195
- const mappedSecondSet = new Set(secondArr.map((item) => mapper(item)));
196
- return firstArr.filter((item) => {
197
- return !mappedSecondSet.has(mapper(item));
198
- });
199
- }
200
-
201
- // src/array/differenceWith.ts
202
- function differenceWith(firstArr, secondArr, areItemsEqual) {
203
- return firstArr.filter((firstItem) => {
204
- return secondArr.every((secondItem) => {
205
- return !areItemsEqual(firstItem, secondItem);
206
- });
207
- });
208
- }
209
-
210
- // src/array/drop.ts
211
- function drop(arr, itemsCount) {
212
- itemsCount = Math.max(itemsCount, 0);
213
- return arr.slice(itemsCount);
214
- }
215
-
216
- // src/array/dropRight.ts
217
- function dropRight(arr, itemsCount) {
218
- itemsCount = Math.min(-itemsCount, 0);
219
- if (itemsCount === 0) {
220
- return arr.slice();
221
- }
222
- return arr.slice(0, itemsCount);
223
- }
224
-
225
- // src/array/dropRightWhile.ts
226
- function dropRightWhile(arr, canContinueDropping) {
227
- for (let i = arr.length - 1; i >= 0; i--) {
228
- if (!canContinueDropping(arr[i])) {
229
- return arr.slice(0, i + 1);
230
- }
231
- }
232
- return [];
233
- }
234
-
235
- // src/array/dropWhile.ts
236
- function dropWhile(arr, canContinueDropping) {
237
- const dropEndIndex = arr.findIndex((item) => !canContinueDropping(item));
238
- if (dropEndIndex === -1) {
239
- return [];
240
- }
241
- return arr.slice(dropEndIndex);
242
- }
243
-
244
- // src/array/fill.ts
245
- function fill(array, value, start = 0, end = array.length) {
246
- const length = array.length;
247
- const finalStart = Math.max(start >= 0 ? start : length + start, 0);
248
- const finalEnd = Math.min(end >= 0 ? end : length + end, length);
249
- for (let i = finalStart; i < finalEnd; i++) {
250
- array[i] = value;
251
- }
252
- return array;
253
- }
254
-
255
- // src/array/flatten.ts
256
- function flatten(arr, depth = 1) {
257
- const result = [];
258
- const flooredDepth = Math.floor(depth);
259
- const recursive = (arr2, currentDepth) => {
260
- for (const item of arr2) {
261
- if (Array.isArray(item) && currentDepth < flooredDepth) {
262
- recursive(item, currentDepth + 1);
263
- } else {
264
- result.push(item);
265
- }
266
- }
267
- };
268
- recursive(arr, 0);
269
- return result;
270
- }
271
-
272
- // src/array/flatMap.ts
273
- function flatMap(arr, iteratee, depth = 1) {
274
- return flatten(arr.map((item) => iteratee(item)), depth);
275
- }
276
-
277
- // src/array/flattenDeep.ts
278
- function flattenDeep(arr) {
279
- return flatten(arr, Infinity);
280
- }
281
-
282
- // src/array/forEachRight.ts
283
- function forEachRight(arr, callback) {
284
- for (let i = arr.length - 1; i >= 0; i--) {
285
- const element = arr[i];
286
- callback(element, i, arr);
287
- }
288
- }
289
-
290
- // src/array/groupBy.ts
291
- function groupBy(arr, getKeyFromItem) {
292
- const result = {};
293
- for (const item of arr) {
294
- const key = getKeyFromItem(item);
295
- if (result[key] == null) {
296
- result[key] = [];
297
- }
298
- result[key].push(item);
299
- }
300
- return result;
301
- }
302
-
303
- // src/array/intersection.ts
304
- function intersection(firstArr, secondArr) {
305
- const secondSet = new Set(secondArr);
306
- return firstArr.filter((item) => {
307
- return secondSet.has(item);
308
- });
309
- }
310
-
311
- // src/array/intersectionBy.ts
312
- function intersectionBy(firstArr, secondArr, mapper) {
313
- const mappedSecondSet = new Set(secondArr.map(mapper));
314
- return firstArr.filter((item) => mappedSecondSet.has(mapper(item)));
315
- }
316
-
317
- // src/array/intersectionWith.ts
318
- function intersectionWith(firstArr, secondArr, areItemsEqual) {
319
- return firstArr.filter((firstItem) => {
320
- return secondArr.some((secondItem) => {
321
- return areItemsEqual(firstItem, secondItem);
322
- });
323
- });
324
- }
325
-
326
- // src/array/keyBy.ts
327
- function keyBy(arr, getKeyFromItem) {
328
- const result = {};
329
- for (const item of arr) {
330
- const key = getKeyFromItem(item);
331
- result[key] = item;
332
- }
333
- return result;
334
- }
335
-
336
- // src/array/maxBy.ts
337
- function maxBy(items, getValue) {
338
- let maxElement = items[0];
339
- let max = -Infinity;
340
- for (const element of items) {
341
- const value = getValue(element);
342
- if (value > max) {
343
- max = value;
344
- maxElement = element;
345
- }
346
- }
347
- return maxElement;
348
- }
349
-
350
- // src/array/minBy.ts
351
- function minBy(items, getValue) {
352
- let minElement = items[0];
353
- let min = Infinity;
354
- for (const element of items) {
355
- const value = getValue(element);
356
- if (value < min) {
357
- min = value;
358
- minElement = element;
359
- }
360
- }
361
- return minElement;
362
- }
363
-
364
- // src/array/orderBy.ts
365
- function orderBy(collection, keys, orders) {
366
- const compareValues = (a, b, order) => {
367
- if (a < b) {
368
- return order === "asc" ? -1 : 1;
369
- }
370
- if (a > b) {
371
- return order === "asc" ? 1 : -1;
372
- }
373
- return 0;
374
- };
375
- const effectiveOrders = keys.map((_, index) => orders[index] || orders[orders.length - 1]);
376
- return collection.slice().sort((a, b) => {
377
- for (let i = 0; i < keys.length; i++) {
378
- const key = keys[i];
379
- const order = effectiveOrders[i];
380
- const result = compareValues(a[key], b[key], order);
381
- if (result !== 0) {
382
- return result;
383
- }
384
- }
385
- return 0;
386
- });
387
- }
388
-
389
- // src/array/partition.ts
390
- function partition(arr, isInTruthy) {
391
- const truthy = [];
392
- const falsy = [];
393
- for (const item of arr) {
394
- if (isInTruthy(item)) {
395
- truthy.push(item);
396
- } else {
397
- falsy.push(item);
398
- }
399
- }
400
- return [truthy, falsy];
401
- }
402
-
403
- // src/array/sample.ts
404
- function sample(arr) {
405
- const randomIndex = Math.floor(Math.random() * arr.length);
406
- return arr[randomIndex];
407
- }
408
-
409
- // src/math/random.ts
410
- function random(minimum, maximum) {
411
- if (maximum == null) {
412
- maximum = minimum;
413
- minimum = 0;
414
- }
415
- if (minimum >= maximum) {
416
- throw new Error("Invalid input: The maximum value must be greater than the minimum value.");
417
- }
418
- return Math.random() * (maximum - minimum) + minimum;
419
- }
420
-
421
- // src/math/randomInt.ts
422
- function randomInt(minimum, maximum) {
423
- return Math.floor(random(minimum, maximum));
424
- }
425
-
426
- // src/array/sampleSize.ts
427
- function sampleSize(array, size) {
428
- if (size > array.length) {
429
- throw new Error("Size must be less than or equal to the length of array.");
430
- }
431
- const result = new Array(size);
432
- const selected = /* @__PURE__ */ new Set();
433
- for (let step = array.length - size, resultIndex = 0; step < array.length; step++, resultIndex++) {
434
- let index = randomInt(0, step + 1);
435
- if (selected.has(index)) {
436
- index = step;
437
- }
438
- selected.add(index);
439
- result[resultIndex] = array[index];
440
- }
441
- return result;
442
- }
443
-
444
- // src/array/shuffle.ts
445
- function shuffle(arr) {
446
- const result = arr.slice();
447
- for (let i = result.length - 1; i >= 1; i--) {
448
- const j = Math.floor(Math.random() * (i + 1));
449
- [result[i], result[j]] = [result[j], result[i]];
450
- }
451
- return result;
452
- }
453
-
454
- // src/array/take.ts
455
- function take(arr, count) {
456
- return arr.slice(0, count);
457
- }
458
-
459
- // src/array/takeRight.ts
460
- function takeRight(arr, count) {
461
- if (count === 0) {
462
- return [];
463
- }
464
- return arr.slice(-count);
465
- }
466
-
467
- // src/array/takeRightWhile.ts
468
- function takeRightWhile(arr, shouldContinueTaking) {
469
- for (let i = arr.length - 1; i >= 0; i--) {
470
- if (!shouldContinueTaking(arr[i])) {
471
- return arr.slice(i + 1);
472
- }
473
- }
474
- return arr.slice();
475
- }
476
-
477
- // src/array/takeWhile.ts
478
- function takeWhile(arr, shouldContinueTaking) {
479
- const result = [];
480
- for (const item of arr) {
481
- if (!shouldContinueTaking(item)) {
482
- break;
483
- }
484
- result.push(item);
485
- }
486
- return result;
487
- }
488
-
489
- // src/array/uniq.ts
490
- function uniq(arr) {
491
- return Array.from(new Set(arr));
492
- }
493
-
494
- // src/array/union.ts
495
- function union(arr1, arr2) {
496
- return uniq(arr1.concat(arr2));
497
- }
498
-
499
- // src/array/unionBy.ts
500
- function unionBy(arr1, arr2, mapper) {
501
- const map = /* @__PURE__ */ new Map();
502
- for (const item of [...arr1, ...arr2]) {
503
- const key = mapper(item);
504
- if (!map.has(key)) {
505
- map.set(key, item);
506
- }
507
- }
508
- return Array.from(map.values());
509
- }
510
-
511
- // src/array/uniqWith.ts
512
- function uniqWith(arr, areItemsEqual) {
513
- const result = [];
514
- for (const item of arr) {
515
- const isUniq = result.every((v) => !areItemsEqual(v, item));
516
- if (isUniq) {
517
- result.push(item);
518
- }
519
- }
520
- return result;
521
- }
522
-
523
- // src/array/unionWith.ts
524
- function unionWith(arr1, arr2, areItemsEqual) {
525
- return uniqWith(arr1.concat(arr2), areItemsEqual);
526
- }
527
-
528
- // src/array/uniqBy.ts
529
- function uniqBy(arr, mapper) {
530
- const map = /* @__PURE__ */ new Map();
531
- for (const item of arr) {
532
- const key = mapper(item);
533
- if (!map.has(key)) {
534
- map.set(key, item);
535
- }
536
- }
537
- return Array.from(map.values());
538
- }
539
-
540
- // src/array/unzip.ts
541
- function unzip(zipped) {
542
- let maxLen = 0;
543
- for (let i = 0; i < zipped.length; i++) {
544
- if (zipped[i].length > maxLen) {
545
- maxLen = zipped[i].length;
546
- }
547
- }
548
- const result = new Array(maxLen);
549
- for (let i = 0; i < maxLen; i++) {
550
- result[i] = new Array(zipped.length);
551
- for (let j = 0; j < zipped.length; j++) {
552
- result[i][j] = zipped[j][i];
553
- }
554
- }
555
- return result;
556
- }
557
-
558
- // src/array/unzipWith.ts
559
- function unzipWith(target, iteratee) {
560
- const maxLength = Math.max(...target.map((innerArray) => innerArray.length));
561
- const result = new Array(maxLength);
562
- for (let i = 0; i < maxLength; i++) {
563
- const group = new Array(target.length);
564
- for (let j = 0; j < target.length; j++) {
565
- group[j] = target[j][i];
566
- }
567
- result[i] = iteratee(...group);
568
- }
569
- return result;
570
- }
571
-
572
- // src/array/xor.ts
573
- function xor(arr1, arr2) {
574
- return difference(union(arr1, arr2), intersection(arr1, arr2));
575
- }
576
-
577
- // src/array/xorBy.ts
578
- function xorBy(arr1, arr2, mapper) {
579
- const union2 = unionBy(arr1, arr2, mapper);
580
- const intersection2 = intersectionBy(arr1, arr2, mapper);
581
- return differenceBy(union2, intersection2, mapper);
582
- }
583
-
584
- // src/array/xorWith.ts
585
- function xorWith(arr1, arr2, areElementsEqual) {
586
- const union2 = unionWith(arr1, arr2, areElementsEqual);
587
- const intersection2 = intersectionWith(arr1, arr2, areElementsEqual);
588
- return differenceWith(union2, intersection2, areElementsEqual);
589
- }
590
-
591
- // src/array/zip.ts
592
- function zip(...arrs) {
593
- const result = [];
594
- const maxIndex = Math.max(...arrs.map((x) => x.length));
595
- for (let i = 0; i < maxIndex; i++) {
596
- const element = [];
597
- for (const arr of arrs) {
598
- element.push(arr[i]);
599
- }
600
- result.push(element);
601
- }
602
- return result;
603
- }
604
-
605
- // src/array/zipObject.ts
606
- function zipObject(keys, values) {
607
- const result = {};
608
- for (let i = 0; i < keys.length; i++) {
609
- result[keys[i]] = values[i];
610
- }
611
- return result;
612
- }
613
-
614
- // src/array/zipWith.ts
615
- function zipWith(arr1, ...rest) {
616
- const arrs = [arr1, ...rest.slice(0, -1)];
617
- const combine = rest[rest.length - 1];
618
- const result = [];
619
- const maxIndex = Math.max(...arrs.map((arr) => arr.length));
620
- for (let i = 0; i < maxIndex; i++) {
621
- const elements = arrs.map((arr) => arr[i]);
622
- result.push(combine(...elements));
623
- }
624
- return result;
625
- }
626
-
627
- // src/array/without.ts
628
- function without(array, ...values) {
629
- const valuesSet = new Set(values);
630
- return array.filter((item) => !valuesSet.has(item));
631
- }
632
-
633
- // src/array/head.ts
634
- function head(arr) {
635
- return arr[0];
636
- }
637
-
638
- // src/array/tail.ts
639
- function tail(arr) {
640
- const len = arr.length;
641
- if (len <= 1) {
642
- return [];
643
- }
644
- const result = new Array(len - 1);
645
- for (let i = 1; i < len; i++) {
646
- result[i - 1] = arr[i];
647
- }
648
- return result;
649
- }
650
-
651
- // src/array/toFilled.ts
652
- function toFilled(arr, value, start = 0, end = arr.length) {
653
- const length = arr.length;
654
- const finalStart = Math.max(start >= 0 ? start : length + start, 0);
655
- const finalEnd = Math.min(end >= 0 ? end : length + end, length);
656
- const newArr = arr.slice();
657
- for (let i = finalStart; i < finalEnd; i++) {
658
- newArr[i] = value;
659
- }
660
- return newArr;
661
- }
662
-
663
- // src/array/last.ts
664
- function last(arr) {
665
- return arr[arr.length - 1];
666
- }
667
-
668
- // src/array/initial.ts
669
- function initial(arr) {
670
- if (arr.length <= 1) {
671
- return [];
672
- }
673
- return arr.slice(0, -1);
674
- }
675
-
676
- // src/error/AbortError.ts
677
- var AbortError = class extends Error {
678
- constructor(message = "The operation was aborted") {
679
- super(message);
680
- this.name = "AbortError";
681
- }
682
- };
683
-
684
- // src/error/TimeoutError.ts
685
- var TimeoutError = class extends Error {
686
- constructor(message = "The operation was timed out") {
687
- super(message);
688
- this.name = "TimeoutError";
689
- }
690
- };
691
-
692
- // src/function/debounce.ts
693
- function debounce(func, debounceMs, { signal } = {}) {
694
- let timeoutId = null;
695
- const debounced = function(...args) {
696
- if (timeoutId !== null) {
697
- clearTimeout(timeoutId);
698
- }
699
- if (signal == null ? void 0 : signal.aborted) {
700
- return;
701
- }
702
- timeoutId = setTimeout(() => {
703
- func(...args);
704
- timeoutId = null;
705
- }, debounceMs);
706
- };
707
- const onAbort = function() {
708
- debounced.cancel();
709
- };
710
- debounced.cancel = function() {
711
- if (timeoutId !== null) {
712
- clearTimeout(timeoutId);
713
- timeoutId = null;
714
- }
715
- };
716
- signal == null ? void 0 : signal.addEventListener("abort", onAbort, { once: true });
717
- return debounced;
718
- }
719
-
720
- // src/function/noop.ts
721
- function noop() {
722
- }
723
-
724
- // src/function/once.ts
725
- function once(func) {
726
- let called = false;
727
- let cache;
728
- return function() {
729
- if (called) {
730
- return cache;
731
- }
732
- const result = func();
733
- called = true;
734
- cache = result;
735
- return result;
736
- };
737
- }
738
-
739
- // src/function/throttle.ts
740
- function throttle(func, throttleMs) {
741
- let lastCallTime;
742
- const throttledFunction = function(...args) {
743
- const now = Date.now();
744
- if (lastCallTime == null || now - lastCallTime >= throttleMs) {
745
- lastCallTime = now;
746
- func(...args);
747
- }
748
- };
749
- return throttledFunction;
750
- }
751
-
752
- // src/function/negate.ts
753
- function negate(func) {
754
- return (...args) => !func(...args);
755
- }
756
-
757
- // src/math/clamp.ts
758
- function clamp(value, bound1, bound2) {
759
- if (bound2 == null) {
760
- return Math.min(value, bound1);
761
- }
762
- return Math.min(Math.max(value, bound1), bound2);
763
- }
764
-
765
- // src/math/inRange.ts
766
- function inRange(value, minimum, maximum) {
767
- if (maximum == null) {
768
- maximum = minimum;
769
- minimum = 0;
770
- }
771
- if (minimum >= maximum) {
772
- throw new Error("The maximum value must be greater than the minimum value.");
773
- }
774
- return minimum <= value && value < maximum;
775
- }
776
-
777
- // src/math/sum.ts
778
- function sum(nums) {
779
- let result = 0;
780
- for (let i = 0; i < nums.length; i++) {
781
- result += nums[i];
782
- }
783
- return result;
784
- }
785
-
786
- // src/math/mean.ts
787
- function mean(nums) {
788
- return sum(nums) / nums.length;
789
- }
790
-
791
- // src/math/meanBy.ts
792
- function meanBy(items, getValue) {
793
- const nums = items.map((x) => getValue(x));
794
- return mean(nums);
795
- }
796
-
797
- // src/math/round.ts
798
- function round(value, precision = 0) {
799
- if (!Number.isInteger(precision)) {
800
- throw new Error("Precision must be an integer.");
801
- }
802
- const multiplier = Math.pow(10, precision);
803
- return Math.round(value * multiplier) / multiplier;
804
- }
805
-
806
- // src/math/sumBy.ts
807
- function sumBy(items, getValue) {
808
- const nums = items.map((x) => getValue(x));
809
- return sum(nums);
810
- }
811
-
812
- // src/math/range.ts
813
- function range(start, end, step) {
814
- if (end == null) {
815
- end = start;
816
- start = 0;
817
- }
818
- if (step == null) {
819
- step = 1;
820
- }
821
- if (!Number.isInteger(step) || step === 0) {
822
- throw new Error(`The step value must be a non-zero integer.`);
823
- }
824
- const length = Math.max(Math.ceil((end - start) / step), 0);
825
- const result = new Array(length);
826
- for (let i = 0; i < length; i++) {
827
- result[i] = start + i * step;
828
- }
829
- return result;
830
- }
831
-
832
- // src/object/omit.ts
833
- function omit(obj, keys) {
834
- const result = __spreadValues({}, obj);
835
- for (const key of keys) {
836
- delete result[key];
837
- }
838
- return result;
839
- }
840
-
841
- // src/object/omitBy.ts
842
- function omitBy(obj, shouldOmit) {
843
- const result = {};
844
- for (const [key, value] of Object.entries(obj)) {
845
- if (shouldOmit(value, key)) {
846
- continue;
847
- }
848
- result[key] = value;
849
- }
850
- return result;
851
- }
852
-
853
- // src/object/pick.ts
854
- function pick(obj, keys) {
855
- const result = {};
856
- for (const key of keys) {
857
- result[key] = obj[key];
858
- }
859
- return result;
860
- }
861
-
862
- // src/object/pickBy.ts
863
- function pickBy(obj, shouldPick) {
864
- const result = {};
865
- for (const [key, value] of Object.entries(obj)) {
866
- if (!shouldPick(value, key)) {
867
- continue;
868
- }
869
- result[key] = value;
870
- }
871
- return result;
872
- }
873
-
874
- // src/object/invert.ts
875
- function invert(obj) {
876
- const result = {};
877
- const keys = Object.keys(obj);
878
- for (let i = 0; i < keys.length; i++) {
879
- const key = keys[i];
880
- const value = obj[key];
881
- result[value] = key;
882
- }
883
- return result;
884
- }
885
-
886
- // src/object/clone.ts
887
- function clone(obj) {
888
- if (isPrimitive(obj)) {
889
- return obj;
890
- }
891
- if (Array.isArray(obj)) {
892
- return obj.slice();
893
- }
894
- if (obj instanceof Date) {
895
- return new Date(obj.getTime());
896
- }
897
- if (obj instanceof RegExp) {
898
- return new RegExp(obj.source, obj.flags);
899
- }
900
- if (obj instanceof Map) {
901
- const result = /* @__PURE__ */ new Map();
902
- for (const [key, value] of obj) {
903
- result.set(key, value);
904
- }
905
- return result;
906
- }
907
- if (obj instanceof Set) {
908
- const result = /* @__PURE__ */ new Set();
909
- for (const value of obj) {
910
- result.add(value);
911
- }
912
- return result;
913
- }
914
- if (typeof obj === "object") {
915
- return Object.assign({}, obj);
916
- }
917
- return obj;
918
- }
919
- function isPrimitive(value) {
920
- return value == null || typeof value !== "object" && typeof value !== "function";
921
- }
922
-
923
- // src/predicate/isPlainObject.ts
924
- function isPlainObject(object) {
925
- if (typeof object !== "object") {
926
- return false;
927
- }
928
- if (object == null) {
929
- return false;
930
- }
931
- if (Object.getPrototypeOf(object) === null) {
932
- return true;
933
- }
934
- if (object.toString() !== "[object Object]") {
935
- return false;
936
- }
937
- let proto = object;
938
- while (Object.getPrototypeOf(proto) !== null) {
939
- proto = Object.getPrototypeOf(proto);
940
- }
941
- return Object.getPrototypeOf(object) === proto;
942
- }
943
-
944
- // src/object/flattenObject.ts
945
- function flattenObject(object) {
946
- return flattenObjectImpl(object);
947
- }
948
- function flattenObjectImpl(object, prefix = "") {
949
- const result = {};
950
- const keys = Object.keys(object);
951
- for (let i = 0; i < keys.length; i++) {
952
- const key = keys[i];
953
- const value = object[key];
954
- const prefixedKey = prefix ? `${prefix}.${key}` : key;
955
- if (isPlainObject(value) && Object.keys(value).length > 0) {
956
- Object.assign(result, flattenObjectImpl(value, prefixedKey));
957
- continue;
958
- }
959
- if (Array.isArray(value)) {
960
- for (let index = 0; index < value.length; index++) {
961
- result[`${prefixedKey}.${index}`] = value[index];
962
- }
963
- continue;
964
- }
965
- result[prefixedKey] = value;
966
- }
967
- return result;
968
- }
969
-
970
- // src/predicate/isEqual.ts
971
- function isEqual(a, b) {
972
- if (Object.is(a, b)) {
973
- return true;
974
- }
975
- if (a instanceof Date && b instanceof Date) {
976
- return a.getTime() === b.getTime();
977
- }
978
- if (a instanceof RegExp && b instanceof RegExp) {
979
- return a.source === b.source && a.flags === b.flags;
980
- }
981
- if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) {
982
- return false;
983
- }
984
- const aKeys = Object.keys(a);
985
- const bKeys = Object.keys(b);
986
- if (aKeys.length !== bKeys.length) {
987
- return false;
988
- }
989
- if (union(aKeys, bKeys).length !== aKeys.length) {
990
- return false;
991
- }
992
- for (let i = 0; i < aKeys.length; i++) {
993
- const propKey = aKeys[i];
994
- const aProp = a[propKey];
995
- const bProp = b[propKey];
996
- if (!isEqual(aProp, bProp)) {
997
- return false;
998
- }
999
- }
1000
- return true;
1001
- }
1002
-
1003
- // src/predicate/isNil.ts
1004
- function isNil(x) {
1005
- return x == null;
1006
- }
1007
-
1008
- // src/predicate/isNotNil.ts
1009
- function isNotNil(x) {
1010
- return x !== null && x !== void 0;
1011
- }
1012
-
1013
- // src/predicate/isNull.ts
1014
- function isNull(x) {
1015
- return x === null;
1016
- }
1017
-
1018
- // src/predicate/isUndefined.ts
1019
- function isUndefined(x) {
1020
- return x === void 0;
1021
- }
1022
-
1023
- // src/predicate/isLength.ts
1024
- function isLength(value) {
1025
- return typeof value === "number" && value > -1 && value % 1 === 0 && value <= Number.MAX_SAFE_INTEGER;
1026
- }
1027
-
1028
- // src/promise/delay.ts
1029
- function delay(ms, { signal } = {}) {
1030
- return new Promise((resolve, reject) => {
1031
- const abortError = () => {
1032
- reject(new AbortError());
1033
- };
1034
- const abortHandler = () => {
1035
- clearTimeout(timeoutId);
1036
- abortError();
1037
- };
1038
- if (signal == null ? void 0 : signal.aborted) {
1039
- return abortError();
1040
- }
1041
- const timeoutId = setTimeout(resolve, ms);
1042
- signal == null ? void 0 : signal.addEventListener("abort", abortHandler, { once: true });
1043
- });
1044
- }
1045
-
1046
- // src/promise/timeout.ts
1047
- function timeout(ms) {
1048
- return __async(this, null, function* () {
1049
- yield delay(ms);
1050
- throw new TimeoutError();
1051
- });
1052
- }
1053
-
1054
- // src/promise/withTimeout.ts
1055
- function withTimeout(run, ms) {
1056
- return __async(this, null, function* () {
1057
- return Promise.race([run(), timeout(ms)]);
1058
- });
1059
- }
1060
-
1061
- // src/string/capitalize.ts
1062
- var capitalize = (str) => {
1063
- return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
1064
- };
1065
-
1066
- // src/string/_internal/getWords.ts
1067
- var CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])/g;
1068
- function getWords(str) {
1069
- var _a;
1070
- return Array.from((_a = str.match(CASE_SPLIT_PATTERN)) != null ? _a : []);
1071
- }
1072
-
1073
- // src/string/camelCase.ts
1074
- function camelCase(str) {
1075
- const words = getWords(str);
1076
- if (words.length === 0) {
1077
- return "";
1078
- }
1079
- const [first, ...rest] = words;
1080
- return `${first.toLowerCase()}${rest.map((word) => capitalize(word)).join("")}`;
1081
- }
1082
-
1083
- // src/string/snakeCase.ts
1084
- var snakeCase = (str) => {
1085
- const words = getWords(str);
1086
- return words.map((word) => word.toLowerCase()).join("_");
1087
- };
1088
-
1089
- // src/string/kebabCase.ts
1090
- var kebabCase = (str) => {
1091
- const words = getWords(str);
1092
- return words.map((word) => word.toLowerCase()).join("-");
1093
- };
1094
-
1095
- // src/string/lowerCase.ts
1096
- var lowerCase = (str) => {
1097
- const words = getWords(str);
1098
- return words.map((word) => word.toLowerCase()).join(" ");
1099
- };
1100
-
1101
- // src/string/startCase.ts
1102
- function startCase(str) {
1103
- const words = getWords(str.trim());
1104
- let result = "";
1105
- for (const word of words) {
1106
- if (result) {
1107
- result += " ";
1108
- }
1109
- if (word === word.toUpperCase()) {
1110
- result += word;
1111
- } else {
1112
- result += word[0].toUpperCase() + word.slice(1).toLowerCase();
1113
- }
1114
- }
1115
- return result;
1116
- }
1117
- // Annotate the CommonJS export names for ESM import in node:
1118
- 0 && (module.exports = {
1119
- AbortError,
1120
- TimeoutError,
1121
- camelCase,
1122
- capitalize,
1123
- chunk,
1124
- clamp,
1125
- clone,
1126
- compact,
1127
- countBy,
1128
- debounce,
1129
- delay,
1130
- difference,
1131
- differenceBy,
1132
- differenceWith,
1133
- drop,
1134
- dropRight,
1135
- dropRightWhile,
1136
- dropWhile,
1137
- fill,
1138
- flatMap,
1139
- flatten,
1140
- flattenDeep,
1141
- flattenObject,
1142
- forEachRight,
1143
- groupBy,
1144
- head,
1145
- inRange,
1146
- initial,
1147
- intersection,
1148
- intersectionBy,
1149
- intersectionWith,
1150
- invert,
1151
- isEqual,
1152
- isLength,
1153
- isNil,
1154
- isNotNil,
1155
- isNull,
1156
- isPlainObject,
1157
- isUndefined,
1158
- kebabCase,
1159
- keyBy,
1160
- last,
1161
- lowerCase,
1162
- maxBy,
1163
- mean,
1164
- meanBy,
1165
- minBy,
1166
- negate,
1167
- noop,
1168
- omit,
1169
- omitBy,
1170
- once,
1171
- orderBy,
1172
- partition,
1173
- pick,
1174
- pickBy,
1175
- random,
1176
- randomInt,
1177
- range,
1178
- round,
1179
- sample,
1180
- sampleSize,
1181
- shuffle,
1182
- snakeCase,
1183
- startCase,
1184
- sum,
1185
- sumBy,
1186
- tail,
1187
- take,
1188
- takeRight,
1189
- takeRightWhile,
1190
- takeWhile,
1191
- throttle,
1192
- toFilled,
1193
- union,
1194
- unionBy,
1195
- unionWith,
1196
- uniq,
1197
- uniqBy,
1198
- uniqWith,
1199
- unzip,
1200
- unzipWith,
1201
- withTimeout,
1202
- without,
1203
- xor,
1204
- xorBy,
1205
- xorWith,
1206
- zip,
1207
- zipObject,
1208
- zipWith
1209
- });
1210
- //# sourceMappingURL=index.js.map
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const initial = require('./_chunk/initial-BTrQy1.js');
6
+ const array_index = require('./array/index.js');
7
+ const promise_index = require('./_chunk/index-CwRt_M.js');
8
+ const function_index = require('./function/index.js');
9
+ const math_index = require('./math/index.js');
10
+ const randomInt = require('./_chunk/randomInt-CF7bZK.js');
11
+ const object_index = require('./object/index.js');
12
+ const isFunction = require('./_chunk/isFunction-Cw_tLG.js');
13
+ const isTypedArray = require('./_chunk/isTypedArray-BBEkFl.js');
14
+ const predicate_index = require('./predicate/index.js');
15
+ const string_index = require('./string/index.js');
16
+
17
+
18
+
19
+ exports.chunk = initial.chunk;
20
+ exports.compact = initial.compact;
21
+ exports.countBy = initial.countBy;
22
+ exports.difference = initial.difference;
23
+ exports.differenceBy = initial.differenceBy;
24
+ exports.differenceWith = initial.differenceWith;
25
+ exports.drop = initial.drop;
26
+ exports.dropRight = initial.dropRight;
27
+ exports.dropRightWhile = initial.dropRightWhile;
28
+ exports.dropWhile = initial.dropWhile;
29
+ exports.fill = initial.fill;
30
+ exports.flatMap = initial.flatMap;
31
+ exports.flatten = initial.flatten;
32
+ exports.forEachRight = initial.forEachRight;
33
+ exports.groupBy = initial.groupBy;
34
+ exports.head = initial.head;
35
+ exports.initial = initial.initial;
36
+ exports.intersection = initial.intersection;
37
+ exports.intersectionBy = initial.intersectionBy;
38
+ exports.intersectionWith = initial.intersectionWith;
39
+ exports.isSubset = initial.isSubset;
40
+ exports.keyBy = initial.keyBy;
41
+ exports.last = initial.last;
42
+ exports.maxBy = initial.maxBy;
43
+ exports.minBy = initial.minBy;
44
+ exports.orderBy = initial.orderBy;
45
+ exports.partition = initial.partition;
46
+ exports.sample = initial.sample;
47
+ exports.sampleSize = initial.sampleSize;
48
+ exports.shuffle = initial.shuffle;
49
+ exports.tail = initial.tail;
50
+ exports.take = initial.take;
51
+ exports.takeRight = initial.takeRight;
52
+ exports.takeRightWhile = initial.takeRightWhile;
53
+ exports.takeWhile = initial.takeWhile;
54
+ exports.toFilled = initial.toFilled;
55
+ exports.union = initial.union;
56
+ exports.unionBy = initial.unionBy;
57
+ exports.unionWith = initial.unionWith;
58
+ exports.uniq = initial.uniq;
59
+ exports.uniqBy = initial.uniqBy;
60
+ exports.uniqWith = initial.uniqWith;
61
+ exports.unzip = initial.unzip;
62
+ exports.unzipWith = initial.unzipWith;
63
+ exports.without = initial.without;
64
+ exports.xor = initial.xor;
65
+ exports.xorBy = initial.xorBy;
66
+ exports.xorWith = initial.xorWith;
67
+ exports.zip = initial.zip;
68
+ exports.zipObject = initial.zipObject;
69
+ exports.zipWith = initial.zipWith;
70
+ exports.flattenDeep = array_index.flattenDeep;
71
+ exports.AbortError = promise_index.AbortError;
72
+ exports.TimeoutError = promise_index.TimeoutError;
73
+ exports.delay = promise_index.delay;
74
+ exports.withTimeout = promise_index.withTimeout;
75
+ exports.after = function_index.after;
76
+ exports.ary = function_index.ary;
77
+ exports.before = function_index.before;
78
+ exports.debounce = function_index.debounce;
79
+ exports.negate = function_index.negate;
80
+ exports.noop = function_index.noop;
81
+ exports.once = function_index.once;
82
+ exports.throttle = function_index.throttle;
83
+ exports.unary = function_index.unary;
84
+ exports.clamp = math_index.clamp;
85
+ exports.inRange = math_index.inRange;
86
+ exports.mean = math_index.mean;
87
+ exports.meanBy = math_index.meanBy;
88
+ exports.range = math_index.range;
89
+ exports.round = math_index.round;
90
+ exports.sum = math_index.sum;
91
+ exports.sumBy = math_index.sumBy;
92
+ exports.random = randomInt.random;
93
+ exports.randomInt = randomInt.randomInt;
94
+ exports.clone = object_index.clone;
95
+ exports.cloneDeep = object_index.cloneDeep;
96
+ exports.flattenObject = object_index.flattenObject;
97
+ exports.invert = object_index.invert;
98
+ exports.mapKeys = object_index.mapKeys;
99
+ exports.mapValues = object_index.mapValues;
100
+ exports.omit = object_index.omit;
101
+ exports.omitBy = object_index.omitBy;
102
+ exports.pick = object_index.pick;
103
+ exports.pickBy = object_index.pickBy;
104
+ exports.isEqual = isFunction.isEqual;
105
+ exports.isFunction = isFunction.isFunction;
106
+ exports.isLength = isFunction.isLength;
107
+ exports.isNil = isFunction.isNil;
108
+ exports.isNotNil = isFunction.isNotNil;
109
+ exports.isNull = isFunction.isNull;
110
+ exports.isUndefined = isFunction.isUndefined;
111
+ exports.isPlainObject = isTypedArray.isPlainObject;
112
+ exports.isPrimitive = isTypedArray.isPrimitive;
113
+ exports.isTypedArray = isTypedArray.isTypedArray;
114
+ exports.isBoolean = predicate_index.isBoolean;
115
+ exports.camelCase = string_index.camelCase;
116
+ exports.capitalize = string_index.capitalize;
117
+ exports.kebabCase = string_index.kebabCase;
118
+ exports.lowerCase = string_index.lowerCase;
119
+ exports.snakeCase = string_index.snakeCase;
120
+ exports.startCase = string_index.startCase;