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
@@ -1,1436 +1,616 @@
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
- };
1
+ 'use strict';
53
2
 
54
- // src/compat/index.ts
55
- var compat_exports = {};
56
- __export(compat_exports, {
57
- AbortError: () => AbortError,
58
- TimeoutError: () => TimeoutError,
59
- camelCase: () => camelCase,
60
- capitalize: () => capitalize,
61
- chunk: () => chunk2,
62
- clamp: () => clamp,
63
- clone: () => clone,
64
- compact: () => compact,
65
- concat: () => concat,
66
- countBy: () => countBy,
67
- debounce: () => debounce,
68
- delay: () => delay,
69
- difference: () => difference2,
70
- differenceBy: () => differenceBy,
71
- differenceWith: () => differenceWith,
72
- drop: () => drop,
73
- dropRight: () => dropRight,
74
- dropRightWhile: () => dropRightWhile,
75
- dropWhile: () => dropWhile,
76
- endsWith: () => endsWith,
77
- fill: () => fill,
78
- first: () => head,
79
- flatMap: () => flatMap,
80
- flatten: () => flatten,
81
- flattenDeep: () => flattenDeep,
82
- flattenObject: () => flattenObject,
83
- forEachRight: () => forEachRight,
84
- get: () => get,
85
- groupBy: () => groupBy,
86
- head: () => head,
87
- inRange: () => inRange,
88
- initial: () => initial,
89
- intersection: () => intersection,
90
- intersectionBy: () => intersectionBy,
91
- intersectionWith: () => intersectionWith,
92
- invert: () => invert,
93
- isEqual: () => isEqual,
94
- isLength: () => isLength,
95
- isNil: () => isNil,
96
- isNotNil: () => isNotNil,
97
- isNull: () => isNull,
98
- isPlainObject: () => isPlainObject2,
99
- isUndefined: () => isUndefined,
100
- kebabCase: () => kebabCase,
101
- keyBy: () => keyBy,
102
- last: () => last,
103
- lowerCase: () => lowerCase,
104
- max: () => max,
105
- maxBy: () => maxBy,
106
- mean: () => mean,
107
- meanBy: () => meanBy,
108
- min: () => min,
109
- minBy: () => minBy,
110
- negate: () => negate,
111
- noop: () => noop,
112
- omit: () => omit,
113
- omitBy: () => omitBy,
114
- once: () => once,
115
- orderBy: () => orderBy,
116
- partition: () => partition,
117
- pick: () => pick,
118
- pickBy: () => pickBy,
119
- random: () => random,
120
- randomInt: () => randomInt,
121
- range: () => range,
122
- round: () => round,
123
- sample: () => sample,
124
- sampleSize: () => sampleSize,
125
- set: () => set,
126
- shuffle: () => shuffle,
127
- snakeCase: () => snakeCase,
128
- startCase: () => startCase,
129
- startsWith: () => startsWith,
130
- sum: () => sum,
131
- sumBy: () => sumBy,
132
- tail: () => tail,
133
- take: () => take,
134
- takeRight: () => takeRight,
135
- takeRightWhile: () => takeRightWhile,
136
- takeWhile: () => takeWhile,
137
- throttle: () => throttle,
138
- toFilled: () => toFilled,
139
- union: () => union,
140
- unionBy: () => unionBy,
141
- unionWith: () => unionWith,
142
- uniq: () => uniq,
143
- uniqBy: () => uniqBy,
144
- uniqWith: () => uniqWith,
145
- unzip: () => unzip,
146
- unzipWith: () => unzipWith,
147
- withTimeout: () => withTimeout,
148
- without: () => without,
149
- xor: () => xor,
150
- xorBy: () => xorBy,
151
- xorWith: () => xorWith,
152
- zip: () => zip,
153
- zipObject: () => zipObject,
154
- zipObjectDeep: () => zipObjectDeep,
155
- zipWith: () => zipWith
156
- });
157
- module.exports = __toCommonJS(compat_exports);
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
158
4
 
159
- // src/array/chunk.ts
160
- function chunk(arr, size) {
161
- if (!Number.isInteger(size) || size <= 0) {
162
- throw new Error("Size must be an integer greater than zero.");
163
- }
164
- const chunkLength = Math.ceil(arr.length / size);
165
- const result = Array(chunkLength);
166
- for (let index = 0; index < chunkLength; index++) {
167
- const start = index * size;
168
- const end = start + size;
169
- result[index] = arr.slice(start, end);
170
- }
171
- return result;
172
- }
5
+ const initial = require('../_chunk/initial-BTrQy1.js');
6
+ const promise_index = require('../_chunk/index-CwRt_M.js');
7
+ const function_index = require('../function/index.js');
8
+ const math_index = require('../math/index.js');
9
+ const randomInt = require('../_chunk/randomInt-CF7bZK.js');
10
+ const object_index = require('../object/index.js');
11
+ const isFunction = require('../_chunk/isFunction-Cw_tLG.js');
12
+ const isTypedArray$1 = require('../_chunk/isTypedArray-BBEkFl.js');
13
+ const string_index = require('../string/index.js');
173
14
 
174
- // src/array/compact.ts
175
- function compact(arr) {
176
- const result = [];
177
- for (const item of arr) {
178
- if (item) {
179
- result.push(item);
15
+ function chunk(arr, size = 1) {
16
+ size = Math.max(Math.floor(size), 0);
17
+ if (size === 0) {
18
+ return [];
180
19
  }
181
- }
182
- return result;
183
- }
184
-
185
- // src/array/countBy.ts
186
- function countBy(arr, mapper) {
187
- var _a;
188
- const result = {};
189
- for (const item of arr) {
190
- const key = mapper(item);
191
- result[key] = ((_a = result[key]) != null ? _a : 0) + 1;
192
- }
193
- return result;
194
- }
195
-
196
- // src/array/difference.ts
197
- function difference(firstArr, secondArr) {
198
- const secondSet = new Set(secondArr);
199
- return firstArr.filter((item) => !secondSet.has(item));
200
- }
201
-
202
- // src/array/differenceBy.ts
203
- function differenceBy(firstArr, secondArr, mapper) {
204
- const mappedSecondSet = new Set(secondArr.map((item) => mapper(item)));
205
- return firstArr.filter((item) => {
206
- return !mappedSecondSet.has(mapper(item));
207
- });
20
+ return initial.chunk(arr, size);
208
21
  }
209
22
 
210
- // src/array/differenceWith.ts
211
- function differenceWith(firstArr, secondArr, areItemsEqual) {
212
- return firstArr.filter((firstItem) => {
213
- return secondArr.every((secondItem) => {
214
- return !areItemsEqual(firstItem, secondItem);
215
- });
216
- });
217
- }
218
-
219
- // src/array/drop.ts
220
- function drop(arr, itemsCount) {
221
- itemsCount = Math.max(itemsCount, 0);
222
- return arr.slice(itemsCount);
223
- }
224
-
225
- // src/array/dropRight.ts
226
- function dropRight(arr, itemsCount) {
227
- itemsCount = Math.min(-itemsCount, 0);
228
- if (itemsCount === 0) {
229
- return arr.slice();
230
- }
231
- return arr.slice(0, itemsCount);
232
- }
233
-
234
- // src/array/dropRightWhile.ts
235
- function dropRightWhile(arr, canContinueDropping) {
236
- for (let i = arr.length - 1; i >= 0; i--) {
237
- if (!canContinueDropping(arr[i])) {
238
- return arr.slice(0, i + 1);
239
- }
240
- }
241
- return [];
23
+ function concat(...values) {
24
+ return initial.flatten(values);
242
25
  }
243
26
 
244
- // src/array/dropWhile.ts
245
- function dropWhile(arr, canContinueDropping) {
246
- const dropEndIndex = arr.findIndex((item) => !canContinueDropping(item));
247
- if (dropEndIndex === -1) {
248
- return [];
249
- }
250
- return arr.slice(dropEndIndex);
27
+ function difference(arr, ...values) {
28
+ const arr1 = arr;
29
+ const arr2 = initial.flatten(values);
30
+ return initial.difference(arr1, arr2);
251
31
  }
252
32
 
253
- // src/array/fill.ts
254
33
  function fill(array, value, start = 0, end = array.length) {
255
- const length = array.length;
256
- const finalStart = Math.max(start >= 0 ? start : length + start, 0);
257
- const finalEnd = Math.min(end >= 0 ? end : length + end, length);
258
- for (let i = finalStart; i < finalEnd; i++) {
259
- array[i] = value;
260
- }
261
- return array;
262
- }
263
-
264
- // src/array/flatten.ts
265
- function flatten(arr, depth = 1) {
266
- const result = [];
267
- const flooredDepth = Math.floor(depth);
268
- const recursive = (arr2, currentDepth) => {
269
- for (const item of arr2) {
270
- if (Array.isArray(item) && currentDepth < flooredDepth) {
271
- recursive(item, currentDepth + 1);
272
- } else {
273
- result.push(item);
274
- }
34
+ start = Math.floor(start);
35
+ end = Math.floor(end);
36
+ if (!start) {
37
+ start = 0;
275
38
  }
276
- };
277
- recursive(arr, 0);
278
- return result;
279
- }
280
-
281
- // src/array/flatMap.ts
282
- function flatMap(arr, iteratee, depth = 1) {
283
- return flatten(arr.map((item) => iteratee(item)), depth);
284
- }
285
-
286
- // src/array/flattenDeep.ts
287
- function flattenDeep(arr) {
288
- return flatten(arr, Infinity);
289
- }
290
-
291
- // src/array/forEachRight.ts
292
- function forEachRight(arr, callback) {
293
- for (let i = arr.length - 1; i >= 0; i--) {
294
- const element = arr[i];
295
- callback(element, i, arr);
296
- }
297
- }
298
-
299
- // src/array/groupBy.ts
300
- function groupBy(arr, getKeyFromItem) {
301
- const result = {};
302
- for (const item of arr) {
303
- const key = getKeyFromItem(item);
304
- if (result[key] == null) {
305
- result[key] = [];
39
+ if (!end) {
40
+ end = 0;
306
41
  }
307
- result[key].push(item);
308
- }
309
- return result;
310
- }
311
-
312
- // src/array/intersection.ts
313
- function intersection(firstArr, secondArr) {
314
- const secondSet = new Set(secondArr);
315
- return firstArr.filter((item) => {
316
- return secondSet.has(item);
317
- });
318
- }
319
-
320
- // src/array/intersectionBy.ts
321
- function intersectionBy(firstArr, secondArr, mapper) {
322
- const mappedSecondSet = new Set(secondArr.map(mapper));
323
- return firstArr.filter((item) => mappedSecondSet.has(mapper(item)));
324
- }
325
-
326
- // src/array/intersectionWith.ts
327
- function intersectionWith(firstArr, secondArr, areItemsEqual) {
328
- return firstArr.filter((firstItem) => {
329
- return secondArr.some((secondItem) => {
330
- return areItemsEqual(firstItem, secondItem);
331
- });
332
- });
42
+ return initial.fill(array, value, start, end);
333
43
  }
334
44
 
335
- // src/array/keyBy.ts
336
- function keyBy(arr, getKeyFromItem) {
337
- const result = {};
338
- for (const item of arr) {
339
- const key = getKeyFromItem(item);
340
- result[key] = item;
341
- }
342
- return result;
343
- }
344
-
345
- // src/array/maxBy.ts
346
- function maxBy(items, getValue) {
347
- let maxElement = items[0];
348
- let max2 = -Infinity;
349
- for (const element of items) {
350
- const value = getValue(element);
351
- if (value > max2) {
352
- max2 = value;
353
- maxElement = element;
354
- }
355
- }
356
- return maxElement;
357
- }
358
-
359
- // src/array/minBy.ts
360
- function minBy(items, getValue) {
361
- let minElement = items[0];
362
- let min2 = Infinity;
363
- for (const element of items) {
364
- const value = getValue(element);
365
- if (value < min2) {
366
- min2 = value;
367
- minElement = element;
368
- }
369
- }
370
- return minElement;
371
- }
372
-
373
- // src/array/orderBy.ts
374
- function orderBy(collection, keys, orders) {
375
- const compareValues = (a, b, order) => {
376
- if (a < b) {
377
- return order === "asc" ? -1 : 1;
378
- }
379
- if (a > b) {
380
- return order === "asc" ? 1 : -1;
381
- }
382
- return 0;
383
- };
384
- const effectiveOrders = keys.map((_, index) => orders[index] || orders[orders.length - 1]);
385
- return collection.slice().sort((a, b) => {
386
- for (let i = 0; i < keys.length; i++) {
387
- const key = keys[i];
388
- const order = effectiveOrders[i];
389
- const result = compareValues(a[key], b[key], order);
390
- if (result !== 0) {
45
+ function flatten(value, depth = 1) {
46
+ const result = [];
47
+ const flooredDepth = Math.floor(depth);
48
+ if (!Array.isArray(value)) {
391
49
  return result;
392
- }
393
50
  }
394
- return 0;
395
- });
396
- }
397
-
398
- // src/array/partition.ts
399
- function partition(arr, isInTruthy) {
400
- const truthy = [];
401
- const falsy = [];
402
- for (const item of arr) {
403
- if (isInTruthy(item)) {
404
- truthy.push(item);
405
- } else {
406
- falsy.push(item);
407
- }
408
- }
409
- return [truthy, falsy];
410
- }
411
-
412
- // src/array/sample.ts
413
- function sample(arr) {
414
- const randomIndex = Math.floor(Math.random() * arr.length);
415
- return arr[randomIndex];
416
- }
417
-
418
- // src/math/random.ts
419
- function random(minimum, maximum) {
420
- if (maximum == null) {
421
- maximum = minimum;
422
- minimum = 0;
423
- }
424
- if (minimum >= maximum) {
425
- throw new Error("Invalid input: The maximum value must be greater than the minimum value.");
426
- }
427
- return Math.random() * (maximum - minimum) + minimum;
428
- }
429
-
430
- // src/math/randomInt.ts
431
- function randomInt(minimum, maximum) {
432
- return Math.floor(random(minimum, maximum));
433
- }
434
-
435
- // src/array/sampleSize.ts
436
- function sampleSize(array, size) {
437
- if (size > array.length) {
438
- throw new Error("Size must be less than or equal to the length of array.");
439
- }
440
- const result = new Array(size);
441
- const selected = /* @__PURE__ */ new Set();
442
- for (let step = array.length - size, resultIndex = 0; step < array.length; step++, resultIndex++) {
443
- let index = randomInt(0, step + 1);
444
- if (selected.has(index)) {
445
- index = step;
446
- }
447
- selected.add(index);
448
- result[resultIndex] = array[index];
449
- }
450
- return result;
451
- }
452
-
453
- // src/array/shuffle.ts
454
- function shuffle(arr) {
455
- const result = arr.slice();
456
- for (let i = result.length - 1; i >= 1; i--) {
457
- const j = Math.floor(Math.random() * (i + 1));
458
- [result[i], result[j]] = [result[j], result[i]];
459
- }
460
- return result;
51
+ const recursive = (arr, currentDepth) => {
52
+ for (const item of arr) {
53
+ if (currentDepth < flooredDepth &&
54
+ (Array.isArray(item) ||
55
+ Boolean(item?.[Symbol.isConcatSpreadable]) ||
56
+ (item !== null && typeof item === 'object' && Object.prototype.toString.call(item) === '[object Arguments]'))) {
57
+ if (Array.isArray(item)) {
58
+ recursive(item, currentDepth + 1);
59
+ }
60
+ else {
61
+ recursive(Array.from(item), currentDepth + 1);
62
+ }
63
+ }
64
+ else {
65
+ result.push(item);
66
+ }
67
+ }
68
+ };
69
+ recursive(value, 0);
70
+ return result;
461
71
  }
462
72
 
463
- // src/array/take.ts
464
- function take(arr, count) {
465
- return arr.slice(0, count);
73
+ function flattenDeep(value) {
74
+ return flatten(value, Infinity);
466
75
  }
467
76
 
468
- // src/array/takeRight.ts
469
- function takeRight(arr, count) {
470
- if (count === 0) {
471
- return [];
472
- }
473
- return arr.slice(-count);
77
+ function flattenDepth(value, depth = 1) {
78
+ return flatten(value, depth);
474
79
  }
475
80
 
476
- // src/array/takeRightWhile.ts
477
- function takeRightWhile(arr, shouldContinueTaking) {
478
- for (let i = arr.length - 1; i >= 0; i--) {
479
- if (!shouldContinueTaking(arr[i])) {
480
- return arr.slice(i + 1);
81
+ function size(target) {
82
+ if (isFunction.isNil(target)) {
83
+ return 0;
481
84
  }
482
- }
483
- return arr.slice();
484
- }
485
-
486
- // src/array/takeWhile.ts
487
- function takeWhile(arr, shouldContinueTaking) {
488
- const result = [];
489
- for (const item of arr) {
490
- if (!shouldContinueTaking(item)) {
491
- break;
85
+ if (target instanceof Map || target instanceof Set) {
86
+ return target.size;
492
87
  }
493
- result.push(item);
494
- }
495
- return result;
88
+ return Object.keys(target).length;
496
89
  }
497
90
 
498
- // src/array/uniq.ts
499
- function uniq(arr) {
500
- return Array.from(new Set(arr));
501
- }
502
-
503
- // src/array/union.ts
504
- function union(arr1, arr2) {
505
- return uniq(arr1.concat(arr2));
506
- }
507
-
508
- // src/array/unionBy.ts
509
- function unionBy(arr1, arr2, mapper) {
510
- const map = /* @__PURE__ */ new Map();
511
- for (const item of [...arr1, ...arr2]) {
512
- const key = mapper(item);
513
- if (!map.has(key)) {
514
- map.set(key, item);
91
+ const IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
92
+ function isIndex(value) {
93
+ switch (typeof value) {
94
+ case 'number': {
95
+ return Number.isInteger(value) && value >= 0 && value < Number.MAX_SAFE_INTEGER;
96
+ }
97
+ case 'symbol': {
98
+ return false;
99
+ }
100
+ case 'string': {
101
+ return IS_UNSIGNED_INTEGER.test(value);
102
+ }
515
103
  }
516
- }
517
- return Array.from(map.values());
518
104
  }
519
105
 
520
- // src/array/uniqWith.ts
521
- function uniqWith(arr, areItemsEqual) {
522
- const result = [];
523
- for (const item of arr) {
524
- const isUniq = result.every((v) => !areItemsEqual(v, item));
525
- if (isUniq) {
526
- result.push(item);
106
+ function toPath(deepKey) {
107
+ const ESCAPE_REGEXP = /\\(\\)?/g;
108
+ const PROPERTY_REGEXP = RegExp('[^.[\\]]+' +
109
+ '|' +
110
+ '\\[(?:' +
111
+ '([^"\'][^[]*)' +
112
+ '|' +
113
+ '(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2' +
114
+ ')\\]' +
115
+ '|' +
116
+ '(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))', 'g');
117
+ const result = [];
118
+ if (deepKey[0] === '.') {
119
+ result.push('');
120
+ }
121
+ let match;
122
+ let lastIndex = 0;
123
+ while ((match = PROPERTY_REGEXP.exec(deepKey)) !== null) {
124
+ let key = match[0];
125
+ const expr = match[1];
126
+ const quote = match[2];
127
+ const substr = match[3];
128
+ if (quote) {
129
+ key = substr.replace(ESCAPE_REGEXP, '$1');
130
+ }
131
+ else if (expr) {
132
+ key = expr;
133
+ }
134
+ result.push(key);
135
+ if (PROPERTY_REGEXP.lastIndex === lastIndex) {
136
+ PROPERTY_REGEXP.lastIndex++;
137
+ }
138
+ else {
139
+ lastIndex = PROPERTY_REGEXP.lastIndex;
140
+ }
527
141
  }
528
- }
529
- return result;
142
+ return result;
530
143
  }
531
144
 
532
- // src/array/unionWith.ts
533
- function unionWith(arr1, arr2, areItemsEqual) {
534
- return uniqWith(arr1.concat(arr2), areItemsEqual);
145
+ function set(obj, path, value) {
146
+ const resolvedPath = Array.isArray(path)
147
+ ? path
148
+ : typeof path === 'string'
149
+ ? toPath(path)
150
+ : [path];
151
+ let current = obj;
152
+ for (let i = 0; i < resolvedPath.length - 1; i++) {
153
+ const key = resolvedPath[i];
154
+ const nextKey = resolvedPath[i + 1];
155
+ if (current[key] == null) {
156
+ current[key] = isIndex(nextKey) ? [] : {};
157
+ }
158
+ current = current[key];
159
+ }
160
+ const lastKey = resolvedPath[resolvedPath.length - 1];
161
+ current[lastKey] = value;
162
+ return obj;
535
163
  }
536
164
 
537
- // src/array/uniqBy.ts
538
- function uniqBy(arr, mapper) {
539
- const map = /* @__PURE__ */ new Map();
540
- for (const item of arr) {
541
- const key = mapper(item);
542
- if (!map.has(key)) {
543
- map.set(key, item);
165
+ function zipObjectDeep(keys, values) {
166
+ const result = {};
167
+ const zipped = initial.zip(keys, values);
168
+ for (let i = 0; i < zipped.length; i++) {
169
+ const [key, value] = zipped[i];
170
+ if (key != null) {
171
+ set(result, key, value);
172
+ }
544
173
  }
545
- }
546
- return Array.from(map.values());
174
+ return result;
547
175
  }
548
176
 
549
- // src/array/unzip.ts
550
- function unzip(zipped) {
551
- let maxLen = 0;
552
- for (let i = 0; i < zipped.length; i++) {
553
- if (zipped[i].length > maxLen) {
554
- maxLen = zipped[i].length;
555
- }
556
- }
557
- const result = new Array(maxLen);
558
- for (let i = 0; i < maxLen; i++) {
559
- result[i] = new Array(zipped.length);
560
- for (let j = 0; j < zipped.length; j++) {
561
- result[i][j] = zipped[j][i];
562
- }
563
- }
564
- return result;
177
+ function ary(func, n = func.length, guard) {
178
+ if (guard) {
179
+ n = func.length;
180
+ }
181
+ if (Number.isNaN(n) || n < 0) {
182
+ n = 0;
183
+ }
184
+ return function_index.ary(func, n);
185
+ }
186
+
187
+ function bind(func, thisObj, ...partialArgs) {
188
+ const binded = function (...providedArgs) {
189
+ const args = [];
190
+ let startIndex = 0;
191
+ for (let i = 0; i < partialArgs.length; i++) {
192
+ const arg = partialArgs[i];
193
+ if (arg === bind.placeholder) {
194
+ args.push(providedArgs[startIndex++]);
195
+ }
196
+ else {
197
+ args.push(arg);
198
+ }
199
+ }
200
+ for (let i = startIndex; i < providedArgs.length; i++) {
201
+ args.push(providedArgs[i]);
202
+ }
203
+ if (this instanceof binded) {
204
+ return new func(...args);
205
+ }
206
+ return func.apply(thisObj, args);
207
+ };
208
+ return binded;
565
209
  }
210
+ const bindPlaceholder = Symbol('bind.placeholder');
211
+ bind.placeholder = bindPlaceholder;
566
212
 
567
- // src/array/unzipWith.ts
568
- function unzipWith(target, iteratee) {
569
- const maxLength = Math.max(...target.map((innerArray) => innerArray.length));
570
- const result = new Array(maxLength);
571
- for (let i = 0; i < maxLength; i++) {
572
- const group = new Array(target.length);
573
- for (let j = 0; j < target.length; j++) {
574
- group[j] = target[j][i];
213
+ const IS_PLAIN = /^\w*$/;
214
+ const IS_DEEP = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
215
+ function isDeepKey(key) {
216
+ switch (typeof key) {
217
+ case 'number':
218
+ case 'symbol': {
219
+ return false;
220
+ }
221
+ case 'string': {
222
+ return !IS_PLAIN.test(key) && IS_DEEP.test(key);
223
+ }
575
224
  }
576
- result[i] = iteratee(...group);
577
- }
578
- return result;
579
- }
580
-
581
- // src/array/xor.ts
582
- function xor(arr1, arr2) {
583
- return difference(union(arr1, arr2), intersection(arr1, arr2));
584
- }
585
-
586
- // src/array/xorBy.ts
587
- function xorBy(arr1, arr2, mapper) {
588
- const union2 = unionBy(arr1, arr2, mapper);
589
- const intersection2 = intersectionBy(arr1, arr2, mapper);
590
- return differenceBy(union2, intersection2, mapper);
591
225
  }
592
226
 
593
- // src/array/xorWith.ts
594
- function xorWith(arr1, arr2, areElementsEqual) {
595
- const union2 = unionWith(arr1, arr2, areElementsEqual);
596
- const intersection2 = intersectionWith(arr1, arr2, areElementsEqual);
597
- return differenceWith(union2, intersection2, areElementsEqual);
598
- }
599
-
600
- // src/array/zip.ts
601
- function zip(...arrs) {
602
- const result = [];
603
- const maxIndex = Math.max(...arrs.map((x) => x.length));
604
- for (let i = 0; i < maxIndex; i++) {
605
- const element = [];
606
- for (const arr of arrs) {
607
- element.push(arr[i]);
227
+ function get(object, path, defaultValue) {
228
+ let resolvedPath;
229
+ if (Array.isArray(path)) {
230
+ resolvedPath = path;
608
231
  }
609
- result.push(element);
610
- }
611
- return result;
612
- }
613
-
614
- // src/array/zipObject.ts
615
- function zipObject(keys, values) {
616
- const result = {};
617
- for (let i = 0; i < keys.length; i++) {
618
- result[keys[i]] = values[i];
619
- }
620
- return result;
621
- }
622
-
623
- // src/array/zipWith.ts
624
- function zipWith(arr1, ...rest) {
625
- const arrs = [arr1, ...rest.slice(0, -1)];
626
- const combine = rest[rest.length - 1];
627
- const result = [];
628
- const maxIndex = Math.max(...arrs.map((arr) => arr.length));
629
- for (let i = 0; i < maxIndex; i++) {
630
- const elements = arrs.map((arr) => arr[i]);
631
- result.push(combine(...elements));
632
- }
633
- return result;
634
- }
635
-
636
- // src/array/without.ts
637
- function without(array, ...values) {
638
- const valuesSet = new Set(values);
639
- return array.filter((item) => !valuesSet.has(item));
640
- }
641
-
642
- // src/array/head.ts
643
- function head(arr) {
644
- return arr[0];
645
- }
646
-
647
- // src/array/tail.ts
648
- function tail(arr) {
649
- const len = arr.length;
650
- if (len <= 1) {
651
- return [];
652
- }
653
- const result = new Array(len - 1);
654
- for (let i = 1; i < len; i++) {
655
- result[i - 1] = arr[i];
656
- }
657
- return result;
658
- }
659
-
660
- // src/array/toFilled.ts
661
- function toFilled(arr, value, start = 0, end = arr.length) {
662
- const length = arr.length;
663
- const finalStart = Math.max(start >= 0 ? start : length + start, 0);
664
- const finalEnd = Math.min(end >= 0 ? end : length + end, length);
665
- const newArr = arr.slice();
666
- for (let i = finalStart; i < finalEnd; i++) {
667
- newArr[i] = value;
668
- }
669
- return newArr;
670
- }
671
-
672
- // src/array/last.ts
673
- function last(arr) {
674
- return arr[arr.length - 1];
675
- }
676
-
677
- // src/array/initial.ts
678
- function initial(arr) {
679
- if (arr.length <= 1) {
680
- return [];
681
- }
682
- return arr.slice(0, -1);
683
- }
684
-
685
- // src/error/AbortError.ts
686
- var AbortError = class extends Error {
687
- constructor(message = "The operation was aborted") {
688
- super(message);
689
- this.name = "AbortError";
690
- }
691
- };
692
-
693
- // src/error/TimeoutError.ts
694
- var TimeoutError = class extends Error {
695
- constructor(message = "The operation was timed out") {
696
- super(message);
697
- this.name = "TimeoutError";
698
- }
699
- };
700
-
701
- // src/function/debounce.ts
702
- function debounce(func, debounceMs, { signal } = {}) {
703
- let timeoutId = null;
704
- const debounced = function(...args) {
705
- if (timeoutId !== null) {
706
- clearTimeout(timeoutId);
232
+ else if (typeof path === 'string' && isDeepKey(path) && object?.[path] == null) {
233
+ resolvedPath = toPath(path);
707
234
  }
708
- if (signal == null ? void 0 : signal.aborted) {
709
- return;
235
+ else {
236
+ resolvedPath = [path];
710
237
  }
711
- timeoutId = setTimeout(() => {
712
- func(...args);
713
- timeoutId = null;
714
- }, debounceMs);
715
- };
716
- const onAbort = function() {
717
- debounced.cancel();
718
- };
719
- debounced.cancel = function() {
720
- if (timeoutId !== null) {
721
- clearTimeout(timeoutId);
722
- timeoutId = null;
238
+ if (resolvedPath.length === 0) {
239
+ return defaultValue;
723
240
  }
724
- };
725
- signal == null ? void 0 : signal.addEventListener("abort", onAbort, { once: true });
726
- return debounced;
727
- }
728
-
729
- // src/function/noop.ts
730
- function noop() {
731
- }
732
-
733
- // src/function/once.ts
734
- function once(func) {
735
- let called = false;
736
- let cache;
737
- return function() {
738
- if (called) {
739
- return cache;
241
+ let current = object;
242
+ let index;
243
+ for (index = 0; index < resolvedPath.length && current != null; index++) {
244
+ let key = resolvedPath[index];
245
+ if (Object.is(key.valueOf(), -0)) {
246
+ key = '-0';
247
+ }
248
+ current = current[key];
740
249
  }
741
- const result = func();
742
- called = true;
743
- cache = result;
744
- return result;
745
- };
746
- }
747
-
748
- // src/function/throttle.ts
749
- function throttle(func, throttleMs) {
750
- let lastCallTime;
751
- const throttledFunction = function(...args) {
752
- const now = Date.now();
753
- if (lastCallTime == null || now - lastCallTime >= throttleMs) {
754
- lastCallTime = now;
755
- func(...args);
250
+ if (current === null && index === resolvedPath.length) {
251
+ return current;
756
252
  }
757
- };
758
- return throttledFunction;
759
- }
760
-
761
- // src/function/negate.ts
762
- function negate(func) {
763
- return (...args) => !func(...args);
764
- }
765
-
766
- // src/math/clamp.ts
767
- function clamp(value, bound1, bound2) {
768
- if (bound2 == null) {
769
- return Math.min(value, bound1);
770
- }
771
- return Math.min(Math.max(value, bound1), bound2);
772
- }
773
-
774
- // src/math/inRange.ts
775
- function inRange(value, minimum, maximum) {
776
- if (maximum == null) {
777
- maximum = minimum;
778
- minimum = 0;
779
- }
780
- if (minimum >= maximum) {
781
- throw new Error("The maximum value must be greater than the minimum value.");
782
- }
783
- return minimum <= value && value < maximum;
784
- }
785
-
786
- // src/math/sum.ts
787
- function sum(nums) {
788
- let result = 0;
789
- for (let i = 0; i < nums.length; i++) {
790
- result += nums[i];
791
- }
792
- return result;
793
- }
794
-
795
- // src/math/mean.ts
796
- function mean(nums) {
797
- return sum(nums) / nums.length;
798
- }
799
-
800
- // src/math/meanBy.ts
801
- function meanBy(items, getValue) {
802
- const nums = items.map((x) => getValue(x));
803
- return mean(nums);
804
- }
805
-
806
- // src/math/round.ts
807
- function round(value, precision = 0) {
808
- if (!Number.isInteger(precision)) {
809
- throw new Error("Precision must be an integer.");
810
- }
811
- const multiplier = Math.pow(10, precision);
812
- return Math.round(value * multiplier) / multiplier;
813
- }
814
-
815
- // src/math/sumBy.ts
816
- function sumBy(items, getValue) {
817
- const nums = items.map((x) => getValue(x));
818
- return sum(nums);
819
- }
820
-
821
- // src/math/range.ts
822
- function range(start, end, step) {
823
- if (end == null) {
824
- end = start;
825
- start = 0;
826
- }
827
- if (step == null) {
828
- step = 1;
829
- }
830
- if (!Number.isInteger(step) || step === 0) {
831
- throw new Error(`The step value must be a non-zero integer.`);
832
- }
833
- const length = Math.max(Math.ceil((end - start) / step), 0);
834
- const result = new Array(length);
835
- for (let i = 0; i < length; i++) {
836
- result[i] = start + i * step;
837
- }
838
- return result;
839
- }
840
-
841
- // src/object/omit.ts
842
- function omit(obj, keys) {
843
- const result = __spreadValues({}, obj);
844
- for (const key of keys) {
845
- delete result[key];
846
- }
847
- return result;
253
+ return current ?? defaultValue;
848
254
  }
849
255
 
850
- // src/object/omitBy.ts
851
- function omitBy(obj, shouldOmit) {
852
- const result = {};
853
- for (const [key, value] of Object.entries(obj)) {
854
- if (shouldOmit(value, key)) {
855
- continue;
856
- }
857
- result[key] = value;
858
- }
859
- return result;
256
+ function property(path) {
257
+ return function (object) {
258
+ return get(object, path);
259
+ };
860
260
  }
861
261
 
862
- // src/object/pick.ts
863
- function pick(obj, keys) {
864
- const result = {};
865
- for (const key of keys) {
866
- result[key] = obj[key];
867
- }
868
- return result;
262
+ function identity(x) {
263
+ return x;
869
264
  }
870
265
 
871
- // src/object/pickBy.ts
872
- function pickBy(obj, shouldPick) {
873
- const result = {};
874
- for (const [key, value] of Object.entries(obj)) {
875
- if (!shouldPick(value, key)) {
876
- continue;
266
+ function mapKeys(object, getNewKey) {
267
+ getNewKey = getNewKey ?? identity;
268
+ switch (typeof getNewKey) {
269
+ case 'string':
270
+ case 'symbol':
271
+ case 'number':
272
+ case 'object': {
273
+ return object_index.mapKeys(object, property(getNewKey));
274
+ }
275
+ case 'function': {
276
+ return object_index.mapKeys(object, getNewKey);
277
+ }
877
278
  }
878
- result[key] = value;
879
- }
880
- return result;
881
- }
882
-
883
- // src/object/invert.ts
884
- function invert(obj) {
885
- const result = {};
886
- const keys = Object.keys(obj);
887
- for (let i = 0; i < keys.length; i++) {
888
- const key = keys[i];
889
- const value = obj[key];
890
- result[value] = key;
891
- }
892
- return result;
893
279
  }
894
280
 
895
- // src/object/clone.ts
896
- function clone(obj) {
897
- if (isPrimitive(obj)) {
898
- return obj;
899
- }
900
- if (Array.isArray(obj)) {
901
- return obj.slice();
902
- }
903
- if (obj instanceof Date) {
904
- return new Date(obj.getTime());
905
- }
906
- if (obj instanceof RegExp) {
907
- return new RegExp(obj.source, obj.flags);
908
- }
909
- if (obj instanceof Map) {
910
- const result = /* @__PURE__ */ new Map();
911
- for (const [key, value] of obj) {
912
- result.set(key, value);
913
- }
914
- return result;
915
- }
916
- if (obj instanceof Set) {
917
- const result = /* @__PURE__ */ new Set();
918
- for (const value of obj) {
919
- result.add(value);
281
+ function mapValues(object, getNewValue) {
282
+ getNewValue = getNewValue ?? identity;
283
+ switch (typeof getNewValue) {
284
+ case 'string':
285
+ case 'symbol':
286
+ case 'number':
287
+ case 'object': {
288
+ return object_index.mapValues(object, property(getNewValue));
289
+ }
290
+ case 'function': {
291
+ return object_index.mapValues(object, getNewValue);
292
+ }
920
293
  }
921
- return result;
922
- }
923
- if (typeof obj === "object") {
924
- return Object.assign({}, obj);
925
- }
926
- return obj;
927
- }
928
- function isPrimitive(value) {
929
- return value == null || typeof value !== "object" && typeof value !== "function";
930
294
  }
931
295
 
932
- // src/predicate/isPlainObject.ts
933
296
  function isPlainObject(object) {
934
- if (typeof object !== "object") {
935
- return false;
936
- }
937
- if (object == null) {
938
- return false;
939
- }
940
- if (Object.getPrototypeOf(object) === null) {
941
- return true;
942
- }
943
- if (object.toString() !== "[object Object]") {
944
- return false;
945
- }
946
- let proto = object;
947
- while (Object.getPrototypeOf(proto) !== null) {
948
- proto = Object.getPrototypeOf(proto);
949
- }
950
- return Object.getPrototypeOf(object) === proto;
951
- }
952
-
953
- // src/object/flattenObject.ts
954
- function flattenObject(object) {
955
- return flattenObjectImpl(object);
956
- }
957
- function flattenObjectImpl(object, prefix = "") {
958
- const result = {};
959
- const keys = Object.keys(object);
960
- for (let i = 0; i < keys.length; i++) {
961
- const key = keys[i];
962
- const value = object[key];
963
- const prefixedKey = prefix ? `${prefix}.${key}` : key;
964
- if (isPlainObject(value) && Object.keys(value).length > 0) {
965
- Object.assign(result, flattenObjectImpl(value, prefixedKey));
966
- continue;
297
+ if (typeof object !== 'object') {
298
+ return false;
967
299
  }
968
- if (Array.isArray(value)) {
969
- for (let index = 0; index < value.length; index++) {
970
- result[`${prefixedKey}.${index}`] = value[index];
971
- }
972
- continue;
300
+ if (object == null) {
301
+ return false;
973
302
  }
974
- result[prefixedKey] = value;
975
- }
976
- return result;
977
- }
978
-
979
- // src/predicate/isEqual.ts
980
- function isEqual(a, b) {
981
- if (Object.is(a, b)) {
982
- return true;
983
- }
984
- if (a instanceof Date && b instanceof Date) {
985
- return a.getTime() === b.getTime();
986
- }
987
- if (a instanceof RegExp && b instanceof RegExp) {
988
- return a.source === b.source && a.flags === b.flags;
989
- }
990
- if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) {
991
- return false;
992
- }
993
- const aKeys = Object.keys(a);
994
- const bKeys = Object.keys(b);
995
- if (aKeys.length !== bKeys.length) {
996
- return false;
997
- }
998
- if (union(aKeys, bKeys).length !== aKeys.length) {
999
- return false;
1000
- }
1001
- for (let i = 0; i < aKeys.length; i++) {
1002
- const propKey = aKeys[i];
1003
- const aProp = a[propKey];
1004
- const bProp = b[propKey];
1005
- if (!isEqual(aProp, bProp)) {
1006
- return false;
303
+ if (Object.getPrototypeOf(object) === null) {
304
+ return true;
1007
305
  }
1008
- }
1009
- return true;
1010
- }
1011
-
1012
- // src/predicate/isNil.ts
1013
- function isNil(x) {
1014
- return x == null;
1015
- }
1016
-
1017
- // src/predicate/isNotNil.ts
1018
- function isNotNil(x) {
1019
- return x !== null && x !== void 0;
1020
- }
1021
-
1022
- // src/predicate/isNull.ts
1023
- function isNull(x) {
1024
- return x === null;
1025
- }
1026
-
1027
- // src/predicate/isUndefined.ts
1028
- function isUndefined(x) {
1029
- return x === void 0;
1030
- }
1031
-
1032
- // src/predicate/isLength.ts
1033
- function isLength(value) {
1034
- return typeof value === "number" && value > -1 && value % 1 === 0 && value <= Number.MAX_SAFE_INTEGER;
1035
- }
1036
-
1037
- // src/promise/delay.ts
1038
- function delay(ms, { signal } = {}) {
1039
- return new Promise((resolve, reject) => {
1040
- const abortError = () => {
1041
- reject(new AbortError());
1042
- };
1043
- const abortHandler = () => {
1044
- clearTimeout(timeoutId);
1045
- abortError();
1046
- };
1047
- if (signal == null ? void 0 : signal.aborted) {
1048
- return abortError();
306
+ if (object.toString() !== '[object Object]') {
307
+ const tag = object[Symbol.toStringTag];
308
+ if (tag == null) {
309
+ return false;
310
+ }
311
+ const isTagReadonly = !Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)?.writable;
312
+ if (isTagReadonly) {
313
+ return false;
314
+ }
315
+ return object.toString() === `[object ${tag}]`;
1049
316
  }
1050
- const timeoutId = setTimeout(resolve, ms);
1051
- signal == null ? void 0 : signal.addEventListener("abort", abortHandler, { once: true });
1052
- });
317
+ let proto = object;
318
+ while (Object.getPrototypeOf(proto) !== null) {
319
+ proto = Object.getPrototypeOf(proto);
320
+ }
321
+ return Object.getPrototypeOf(object) === proto;
1053
322
  }
1054
323
 
1055
- // src/promise/timeout.ts
1056
- function timeout(ms) {
1057
- return __async(this, null, function* () {
1058
- yield delay(ms);
1059
- throw new TimeoutError();
1060
- });
324
+ function isArray(value) {
325
+ return Array.isArray(value);
1061
326
  }
1062
327
 
1063
- // src/promise/withTimeout.ts
1064
- function withTimeout(run, ms) {
1065
- return __async(this, null, function* () {
1066
- return Promise.race([run(), timeout(ms)]);
1067
- });
328
+ function isArguments(value) {
329
+ return value !== null && typeof value === 'object' && isFunction.getTag(value) === '[object Arguments]';
1068
330
  }
1069
331
 
1070
- // src/string/capitalize.ts
1071
- var capitalize = (str) => {
1072
- return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
1073
- };
1074
-
1075
- // src/string/_internal/getWords.ts
1076
- var CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])/g;
1077
- function getWords(str) {
1078
- var _a;
1079
- return Array.from((_a = str.match(CASE_SPLIT_PATTERN)) != null ? _a : []);
332
+ function isArrayLike(value) {
333
+ return value != null && typeof value !== "function" &&
334
+ isFunction.isLength(value.length);
1080
335
  }
1081
336
 
1082
- // src/string/camelCase.ts
1083
- function camelCase(str) {
1084
- const words = getWords(str);
1085
- if (words.length === 0) {
1086
- return "";
1087
- }
1088
- const [first, ...rest] = words;
1089
- return `${first.toLowerCase()}${rest.map((word) => capitalize(word)).join("")}`;
337
+ function isObjectLike(value) {
338
+ return typeof value === 'object' && value !== null;
1090
339
  }
1091
340
 
1092
- // src/string/snakeCase.ts
1093
- var snakeCase = (str) => {
1094
- const words = getWords(str);
1095
- return words.map((word) => word.toLowerCase()).join("_");
1096
- };
1097
-
1098
- // src/string/kebabCase.ts
1099
- var kebabCase = (str) => {
1100
- const words = getWords(str);
1101
- return words.map((word) => word.toLowerCase()).join("-");
1102
- };
1103
-
1104
- // src/string/lowerCase.ts
1105
- var lowerCase = (str) => {
1106
- const words = getWords(str);
1107
- return words.map((word) => word.toLowerCase()).join(" ");
1108
- };
1109
-
1110
- // src/string/startCase.ts
1111
- function startCase(str) {
1112
- const words = getWords(str.trim());
1113
- let result = "";
1114
- for (const word of words) {
1115
- if (result) {
1116
- result += " ";
341
+ function isBoolean(x) {
342
+ if (x === true || x === false) {
343
+ return true;
1117
344
  }
1118
- if (word === word.toUpperCase()) {
1119
- result += word;
1120
- } else {
1121
- result += word[0].toUpperCase() + word.slice(1).toLowerCase();
345
+ if (typeof x === 'object' && x != null && isFunction.getTag(x) === '[object Boolean]') {
346
+ return true;
1122
347
  }
1123
- }
1124
- return result;
1125
- }
1126
-
1127
- // src/compat/array/chunk.ts
1128
- function chunk2(arr, size = 1) {
1129
- size = Math.max(Math.floor(size), 0);
1130
- if (size === 0) {
1131
- return [];
1132
- }
1133
- return chunk(arr, size);
1134
- }
1135
-
1136
- // src/compat/array/concat.ts
1137
- function concat(...values) {
1138
- return flatten(values);
1139
- }
1140
-
1141
- // src/compat/array/difference.ts
1142
- function difference2(arr, ...values) {
1143
- const arr1 = arr;
1144
- const arr2 = flatten(values);
1145
- return difference(arr1, arr2);
348
+ return false;
1146
349
  }
1147
350
 
1148
- // src/compat/_internal/isIndex.ts
1149
- var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
1150
- function isIndex(value) {
1151
- switch (typeof value) {
1152
- case "number": {
1153
- return Number.isInteger(value) && value >= 0 && value < Number.MAX_SAFE_INTEGER;
1154
- }
1155
- case "symbol": {
1156
- return false;
1157
- }
1158
- case "string": {
1159
- return IS_UNSIGNED_INTEGER.test(value);
1160
- }
1161
- }
351
+ function isTypedArray(x) {
352
+ return isTypedArray$1.isTypedArray(x);
1162
353
  }
1163
354
 
1164
- // src/compat/_internal/toPath.ts
1165
- function toPath(deepKey) {
1166
- const ESCAPE_REGEXP = /\\(\\)?/g;
1167
- const PROPERTY_REGEXP = RegExp(
1168
- // Match anything that isn't a dot or bracket.
1169
- `[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,
1170
- "g"
1171
- );
1172
- const result = [];
1173
- if (deepKey[0] === ".") {
1174
- result.push("");
1175
- }
1176
- let match;
1177
- let lastIndex = 0;
1178
- let count = 0;
1179
- while ((match = PROPERTY_REGEXP.exec(deepKey)) !== null) {
1180
- let [key, expr, quote, substr] = match;
1181
- if (quote) {
1182
- key = substr.replace(ESCAPE_REGEXP, "$1");
1183
- } else if (expr) {
1184
- key = expr;
355
+ function isArrayMatch(target, source) {
356
+ if (source.length === 0) {
357
+ return true;
1185
358
  }
1186
- result.push(key);
1187
- if (PROPERTY_REGEXP.lastIndex === lastIndex) {
1188
- PROPERTY_REGEXP.lastIndex++;
1189
- } else {
1190
- lastIndex = PROPERTY_REGEXP.lastIndex;
359
+ if (!Array.isArray(target)) {
360
+ return false;
1191
361
  }
1192
- }
1193
- return result;
1194
- }
1195
-
1196
- // src/compat/object/set.ts
1197
- function set(obj, path, value) {
1198
- const resolvedPath = Array.isArray(path) ? path : typeof path === "string" ? toPath(path) : [path];
1199
- let current = obj;
1200
- for (let i = 0; i < resolvedPath.length - 1; i++) {
1201
- const key = resolvedPath[i];
1202
- const nextKey = resolvedPath[i + 1];
1203
- if (current[key] == null) {
1204
- current[key] = isIndex(nextKey) ? [] : {};
362
+ const countedIndex = new Set();
363
+ for (let i = 0; i < source.length; i++) {
364
+ const sourceItem = source[i];
365
+ const index = target.findIndex((targetItem, index) => {
366
+ return isMatch(targetItem, sourceItem) && !countedIndex.has(index);
367
+ });
368
+ if (index === -1) {
369
+ return false;
370
+ }
371
+ countedIndex.add(index);
1205
372
  }
1206
- current = current[key];
1207
- }
1208
- const lastKey = resolvedPath[resolvedPath.length - 1];
1209
- current[lastKey] = value;
1210
- return obj;
373
+ return true;
1211
374
  }
1212
375
 
1213
- // src/compat/array/zipObjectDeep.ts
1214
- function zipObjectDeep(keys, values) {
1215
- const result = {};
1216
- const zipped = zip(keys, values);
1217
- for (let i = 0; i < zipped.length; i++) {
1218
- const [key, value] = zipped[i];
1219
- if (key != null) {
1220
- set(result, key, value);
376
+ function isMapMatch(target, source) {
377
+ if (source.size === 0) {
378
+ return true;
1221
379
  }
1222
- }
1223
- return result;
1224
- }
1225
-
1226
- // src/compat/_internal/isDeepKey.ts
1227
- var IS_PLAIN = /^\w*$/;
1228
- var IS_DEEP = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
1229
- function isDeepKey(key) {
1230
- switch (typeof key) {
1231
- case "number":
1232
- case "symbol": {
1233
- return false;
380
+ if (!(target instanceof Map)) {
381
+ return false;
1234
382
  }
1235
- case "string": {
1236
- return !IS_PLAIN.test(key) && IS_DEEP.test(key);
383
+ for (const [key, value] of source.entries()) {
384
+ if (!isMatch(target.get(key), value)) {
385
+ return false;
386
+ }
1237
387
  }
1238
- }
1239
- }
1240
-
1241
- // src/compat/object/get.ts
1242
- function get(object, path, defaultValue) {
1243
- let resolvedPath;
1244
- if (Array.isArray(path)) {
1245
- resolvedPath = path;
1246
- } else if (typeof path === "string" && isDeepKey(path) && (object == null ? void 0 : object[path]) == null) {
1247
- resolvedPath = toPath(path);
1248
- } else {
1249
- resolvedPath = [path];
1250
- }
1251
- if (resolvedPath.length === 0) {
1252
- return defaultValue;
1253
- }
1254
- let current = object;
1255
- let index;
1256
- for (index = 0; index < resolvedPath.length && current != null; index++) {
1257
- let key = resolvedPath[index];
1258
- if (Object.is(key.valueOf(), -0)) {
1259
- key = "-0";
1260
- }
1261
- current = current[key];
1262
- }
1263
- if (current === null && index === resolvedPath.length) {
1264
- return current;
1265
- }
1266
- return current != null ? current : defaultValue;
388
+ return true;
1267
389
  }
1268
390
 
1269
- // src/compat/predicate/isPlainObject.ts
1270
- function isPlainObject2(object) {
1271
- var _a;
1272
- if (typeof object !== "object") {
1273
- return false;
1274
- }
1275
- if (object == null) {
1276
- return false;
1277
- }
1278
- if (Object.getPrototypeOf(object) === null) {
1279
- return true;
1280
- }
1281
- if (object.toString() !== "[object Object]") {
1282
- const tag = object[Symbol.toStringTag];
1283
- if (tag == null) {
1284
- return false;
1285
- }
1286
- const isTagReadonly = !((_a = Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)) == null ? void 0 : _a.writable);
1287
- if (isTagReadonly) {
1288
- return false;
1289
- }
1290
- return object.toString() === `[object ${tag}]`;
1291
- }
1292
- let proto = object;
1293
- while (Object.getPrototypeOf(proto) !== null) {
1294
- proto = Object.getPrototypeOf(proto);
1295
- }
1296
- return Object.getPrototypeOf(object) === proto;
391
+ function isSetMatch(target, source) {
392
+ if (source.size === 0) {
393
+ return true;
394
+ }
395
+ if (!(target instanceof Set)) {
396
+ return false;
397
+ }
398
+ return isArrayMatch([...target], [...source]);
399
+ }
400
+
401
+ function isMatch(target, source) {
402
+ if (source === target) {
403
+ return true;
404
+ }
405
+ switch (typeof source) {
406
+ case 'object': {
407
+ if (source == null) {
408
+ return true;
409
+ }
410
+ const keys = Object.keys(source);
411
+ if (target == null) {
412
+ if (keys.length === 0) {
413
+ return true;
414
+ }
415
+ return false;
416
+ }
417
+ if (Array.isArray(source)) {
418
+ return isArrayMatch(target, source);
419
+ }
420
+ if (source instanceof Map) {
421
+ return isMapMatch(target, source);
422
+ }
423
+ if (source instanceof Set) {
424
+ return isSetMatch(target, source);
425
+ }
426
+ for (let i = 0; i < keys.length; i++) {
427
+ const key = keys[i];
428
+ if (!isTypedArray$1.isPrimitive(target) && !(key in target)) {
429
+ return false;
430
+ }
431
+ if (source[key] === undefined && target[key] !== undefined) {
432
+ return false;
433
+ }
434
+ if (!isMatch(target[key], source[key])) {
435
+ return false;
436
+ }
437
+ }
438
+ return true;
439
+ }
440
+ case 'function': {
441
+ if (Object.keys(source).length > 0) {
442
+ return isMatch(target, { ...source });
443
+ }
444
+ return false;
445
+ }
446
+ default: {
447
+ return !source;
448
+ }
449
+ }
450
+ }
451
+
452
+ function matches(source) {
453
+ source = object_index.cloneDeep(source);
454
+ return (target) => {
455
+ return isMatch(target, source);
456
+ };
1297
457
  }
1298
458
 
1299
- // src/compat/string/startsWith.ts
1300
- var startsWith = (str, target, position = 0) => {
1301
- return str.startsWith(target, position);
459
+ const startsWith = (str, target, position = 0) => {
460
+ return str.startsWith(target, position);
1302
461
  };
1303
462
 
1304
- // src/compat/string/endsWith.ts
1305
- var endsWith = (str, target, position = str.length) => {
1306
- return str.endsWith(target, position);
463
+ const endsWith = (str, target, position = str.length) => {
464
+ return str.endsWith(target, position);
1307
465
  };
1308
466
 
1309
- // src/compat/math/max.ts
467
+ function padStart(str, length = 0, chars = ' ') {
468
+ return str.padStart(length, chars);
469
+ }
470
+
1310
471
  function max(items = []) {
1311
- let maxElement = items[0];
1312
- let max2 = void 0;
1313
- for (const element of items) {
1314
- if (max2 == null || element > max2) {
1315
- max2 = element;
1316
- maxElement = element;
472
+ let maxElement = items[0];
473
+ let max = undefined;
474
+ for (const element of items) {
475
+ if (max == null || element > max) {
476
+ max = element;
477
+ maxElement = element;
478
+ }
1317
479
  }
1318
- }
1319
- return maxElement;
480
+ return maxElement;
1320
481
  }
1321
482
 
1322
- // src/compat/math/min.ts
1323
483
  function min(items = []) {
1324
- let minElement = items[0];
1325
- let min2 = void 0;
1326
- for (const element of items) {
1327
- if (min2 == null || element < min2) {
1328
- min2 = element;
1329
- minElement = element;
1330
- }
1331
- }
1332
- return minElement;
1333
- }
1334
- // Annotate the CommonJS export names for ESM import in node:
1335
- 0 && (module.exports = {
1336
- AbortError,
1337
- TimeoutError,
1338
- camelCase,
1339
- capitalize,
1340
- chunk,
1341
- clamp,
1342
- clone,
1343
- compact,
1344
- concat,
1345
- countBy,
1346
- debounce,
1347
- delay,
1348
- difference,
1349
- differenceBy,
1350
- differenceWith,
1351
- drop,
1352
- dropRight,
1353
- dropRightWhile,
1354
- dropWhile,
1355
- endsWith,
1356
- fill,
1357
- first,
1358
- flatMap,
1359
- flatten,
1360
- flattenDeep,
1361
- flattenObject,
1362
- forEachRight,
1363
- get,
1364
- groupBy,
1365
- head,
1366
- inRange,
1367
- initial,
1368
- intersection,
1369
- intersectionBy,
1370
- intersectionWith,
1371
- invert,
1372
- isEqual,
1373
- isLength,
1374
- isNil,
1375
- isNotNil,
1376
- isNull,
1377
- isPlainObject,
1378
- isUndefined,
1379
- kebabCase,
1380
- keyBy,
1381
- last,
1382
- lowerCase,
1383
- max,
1384
- maxBy,
1385
- mean,
1386
- meanBy,
1387
- min,
1388
- minBy,
1389
- negate,
1390
- noop,
1391
- omit,
1392
- omitBy,
1393
- once,
1394
- orderBy,
1395
- partition,
1396
- pick,
1397
- pickBy,
1398
- random,
1399
- randomInt,
1400
- range,
1401
- round,
1402
- sample,
1403
- sampleSize,
1404
- set,
1405
- shuffle,
1406
- snakeCase,
1407
- startCase,
1408
- startsWith,
1409
- sum,
1410
- sumBy,
1411
- tail,
1412
- take,
1413
- takeRight,
1414
- takeRightWhile,
1415
- takeWhile,
1416
- throttle,
1417
- toFilled,
1418
- union,
1419
- unionBy,
1420
- unionWith,
1421
- uniq,
1422
- uniqBy,
1423
- uniqWith,
1424
- unzip,
1425
- unzipWith,
1426
- withTimeout,
1427
- without,
1428
- xor,
1429
- xorBy,
1430
- xorWith,
1431
- zip,
1432
- zipObject,
1433
- zipObjectDeep,
1434
- zipWith
1435
- });
1436
- //# sourceMappingURL=index.js.map
484
+ let minElement = items[0];
485
+ let min = undefined;
486
+ for (const element of items) {
487
+ if (min == null || element < min) {
488
+ min = element;
489
+ minElement = element;
490
+ }
491
+ }
492
+ return minElement;
493
+ }
494
+
495
+ exports.compact = initial.compact;
496
+ exports.countBy = initial.countBy;
497
+ exports.differenceBy = initial.differenceBy;
498
+ exports.differenceWith = initial.differenceWith;
499
+ exports.drop = initial.drop;
500
+ exports.dropRight = initial.dropRight;
501
+ exports.dropRightWhile = initial.dropRightWhile;
502
+ exports.dropWhile = initial.dropWhile;
503
+ exports.first = initial.head;
504
+ exports.flatMap = initial.flatMap;
505
+ exports.forEachRight = initial.forEachRight;
506
+ exports.groupBy = initial.groupBy;
507
+ exports.head = initial.head;
508
+ exports.initial = initial.initial;
509
+ exports.intersection = initial.intersection;
510
+ exports.intersectionBy = initial.intersectionBy;
511
+ exports.intersectionWith = initial.intersectionWith;
512
+ exports.isSubset = initial.isSubset;
513
+ exports.keyBy = initial.keyBy;
514
+ exports.last = initial.last;
515
+ exports.maxBy = initial.maxBy;
516
+ exports.minBy = initial.minBy;
517
+ exports.orderBy = initial.orderBy;
518
+ exports.partition = initial.partition;
519
+ exports.sample = initial.sample;
520
+ exports.sampleSize = initial.sampleSize;
521
+ exports.shuffle = initial.shuffle;
522
+ exports.tail = initial.tail;
523
+ exports.take = initial.take;
524
+ exports.takeRight = initial.takeRight;
525
+ exports.takeRightWhile = initial.takeRightWhile;
526
+ exports.takeWhile = initial.takeWhile;
527
+ exports.toFilled = initial.toFilled;
528
+ exports.union = initial.union;
529
+ exports.unionBy = initial.unionBy;
530
+ exports.unionWith = initial.unionWith;
531
+ exports.uniq = initial.uniq;
532
+ exports.uniqBy = initial.uniqBy;
533
+ exports.uniqWith = initial.uniqWith;
534
+ exports.unzip = initial.unzip;
535
+ exports.unzipWith = initial.unzipWith;
536
+ exports.without = initial.without;
537
+ exports.xor = initial.xor;
538
+ exports.xorBy = initial.xorBy;
539
+ exports.xorWith = initial.xorWith;
540
+ exports.zip = initial.zip;
541
+ exports.zipObject = initial.zipObject;
542
+ exports.zipWith = initial.zipWith;
543
+ exports.AbortError = promise_index.AbortError;
544
+ exports.TimeoutError = promise_index.TimeoutError;
545
+ exports.delay = promise_index.delay;
546
+ exports.withTimeout = promise_index.withTimeout;
547
+ exports.after = function_index.after;
548
+ exports.before = function_index.before;
549
+ exports.debounce = function_index.debounce;
550
+ exports.negate = function_index.negate;
551
+ exports.noop = function_index.noop;
552
+ exports.once = function_index.once;
553
+ exports.throttle = function_index.throttle;
554
+ exports.unary = function_index.unary;
555
+ exports.clamp = math_index.clamp;
556
+ exports.inRange = math_index.inRange;
557
+ exports.mean = math_index.mean;
558
+ exports.meanBy = math_index.meanBy;
559
+ exports.range = math_index.range;
560
+ exports.round = math_index.round;
561
+ exports.sum = math_index.sum;
562
+ exports.sumBy = math_index.sumBy;
563
+ exports.random = randomInt.random;
564
+ exports.randomInt = randomInt.randomInt;
565
+ exports.clone = object_index.clone;
566
+ exports.cloneDeep = object_index.cloneDeep;
567
+ exports.flattenObject = object_index.flattenObject;
568
+ exports.invert = object_index.invert;
569
+ exports.omit = object_index.omit;
570
+ exports.omitBy = object_index.omitBy;
571
+ exports.pick = object_index.pick;
572
+ exports.pickBy = object_index.pickBy;
573
+ exports.isEqual = isFunction.isEqual;
574
+ exports.isFunction = isFunction.isFunction;
575
+ exports.isLength = isFunction.isLength;
576
+ exports.isNil = isFunction.isNil;
577
+ exports.isNotNil = isFunction.isNotNil;
578
+ exports.isNull = isFunction.isNull;
579
+ exports.isUndefined = isFunction.isUndefined;
580
+ exports.isPrimitive = isTypedArray$1.isPrimitive;
581
+ exports.camelCase = string_index.camelCase;
582
+ exports.capitalize = string_index.capitalize;
583
+ exports.kebabCase = string_index.kebabCase;
584
+ exports.lowerCase = string_index.lowerCase;
585
+ exports.snakeCase = string_index.snakeCase;
586
+ exports.startCase = string_index.startCase;
587
+ exports.ary = ary;
588
+ exports.bind = bind;
589
+ exports.chunk = chunk;
590
+ exports.concat = concat;
591
+ exports.difference = difference;
592
+ exports.endsWith = endsWith;
593
+ exports.fill = fill;
594
+ exports.flatten = flatten;
595
+ exports.flattenDeep = flattenDeep;
596
+ exports.flattenDepth = flattenDepth;
597
+ exports.get = get;
598
+ exports.isArguments = isArguments;
599
+ exports.isArray = isArray;
600
+ exports.isArrayLike = isArrayLike;
601
+ exports.isBoolean = isBoolean;
602
+ exports.isMatch = isMatch;
603
+ exports.isObjectLike = isObjectLike;
604
+ exports.isPlainObject = isPlainObject;
605
+ exports.isTypedArray = isTypedArray;
606
+ exports.mapKeys = mapKeys;
607
+ exports.mapValues = mapValues;
608
+ exports.matches = matches;
609
+ exports.max = max;
610
+ exports.min = min;
611
+ exports.padStart = padStart;
612
+ exports.property = property;
613
+ exports.set = set;
614
+ exports.size = size;
615
+ exports.startsWith = startsWith;
616
+ exports.zipObjectDeep = zipObjectDeep;