lakutata 2.0.80 → 2.0.81

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 (394) hide show
  1. package/com/cacher.cjs +8 -10
  2. package/com/cacher.d.ts +83 -14
  3. package/com/cacher.mjs +8 -10
  4. package/com/database.cjs +11 -11
  5. package/com/database.mjs +11 -11
  6. package/com/docker.cjs +17 -19
  7. package/com/docker.d.ts +3 -141
  8. package/com/docker.mjs +13 -15
  9. package/com/entrypoint.cjs +7 -5
  10. package/com/entrypoint.mjs +7 -5
  11. package/com/logger.cjs +7 -7
  12. package/com/logger.mjs +7 -7
  13. package/com/monitor.cjs +5 -3
  14. package/com/monitor.mjs +5 -3
  15. package/decorator/ctrl.cjs +3 -3
  16. package/decorator/ctrl.mjs +3 -3
  17. package/decorator/orm.cjs +98 -98
  18. package/decorator/orm.mjs +142 -56
  19. package/helper.cjs +9 -11
  20. package/helper.mjs +5 -7
  21. package/lakutata.cjs +23 -30
  22. package/lakutata.mjs +14 -18
  23. package/orm.cjs +1423 -886
  24. package/orm.mjs +1474 -724
  25. package/package.json +1 -1
  26. package/provider/database.cjs +11 -11
  27. package/provider/database.mjs +11 -11
  28. package/provider/passwordHash.cjs +4 -2
  29. package/provider/passwordHash.mjs +4 -2
  30. package/src/components/Database.cjs +11 -11
  31. package/src/components/Database.mjs +11 -11
  32. package/src/components/Logger.cjs +7 -7
  33. package/src/components/Logger.mjs +7 -7
  34. package/src/components/cacher/Cacher.cjs +1178 -264
  35. package/src/components/cacher/Cacher.mjs +1087 -173
  36. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +479 -2963
  37. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +469 -2947
  38. package/src/components/docker/ConnectionOptionsBuilder.cjs +15 -17
  39. package/src/components/docker/ConnectionOptionsBuilder.mjs +13 -15
  40. package/src/components/docker/Docker.cjs +4884 -4945
  41. package/src/components/docker/Docker.mjs +4902 -4963
  42. package/src/components/docker/lib/DockerContainer.cjs +23 -25
  43. package/src/components/docker/lib/DockerContainer.mjs +17 -19
  44. package/src/components/docker/lib/DockerContainerTTY.cjs +9 -11
  45. package/src/components/docker/lib/DockerContainerTTY.mjs +9 -11
  46. package/src/components/docker/lib/DockerImage.cjs +4 -2
  47. package/src/components/docker/lib/DockerImage.mjs +4 -2
  48. package/src/components/entrypoint/Entrypoint.cjs +2170 -1678
  49. package/src/components/entrypoint/Entrypoint.mjs +2126 -1634
  50. package/src/components/entrypoint/lib/AccessControl.cjs +4 -2
  51. package/src/components/entrypoint/lib/AccessControl.mjs +4 -2
  52. package/src/components/entrypoint/lib/AccessControlRule.cjs +4 -2
  53. package/src/components/entrypoint/lib/AccessControlRule.mjs +4 -2
  54. package/src/components/entrypoint/lib/Controller.cjs +4 -2
  55. package/src/components/entrypoint/lib/Controller.mjs +4 -2
  56. package/src/components/monitor/AliveMonitor.cjs +4 -2
  57. package/src/components/monitor/AliveMonitor.mjs +4 -2
  58. package/src/components/monitor/CpuMonitor.cjs +5 -3
  59. package/src/components/monitor/CpuMonitor.mjs +5 -3
  60. package/src/components/monitor/EventLoopMonitor.cjs +4 -2
  61. package/src/components/monitor/EventLoopMonitor.mjs +4 -2
  62. package/src/components/monitor/HttpRequestMonitor.cjs +5 -3
  63. package/src/components/monitor/HttpRequestMonitor.mjs +5 -3
  64. package/src/components/monitor/MemoryMonitor.cjs +5 -3
  65. package/src/components/monitor/MemoryMonitor.mjs +5 -3
  66. package/src/decorators/ctrl/CLIAction.cjs +3 -3
  67. package/src/decorators/ctrl/CLIAction.mjs +3 -3
  68. package/src/decorators/ctrl/HTTPAction.cjs +3 -3
  69. package/src/decorators/ctrl/HTTPAction.mjs +3 -3
  70. package/src/decorators/ctrl/ServiceAction.cjs +3 -3
  71. package/src/decorators/ctrl/ServiceAction.mjs +3 -3
  72. package/src/decorators/ctrl/http/DELETE.cjs +3 -3
  73. package/src/decorators/ctrl/http/DELETE.mjs +3 -3
  74. package/src/decorators/ctrl/http/GET.cjs +3 -3
  75. package/src/decorators/ctrl/http/GET.mjs +3 -3
  76. package/src/decorators/ctrl/http/HEAD.cjs +3 -3
  77. package/src/decorators/ctrl/http/HEAD.mjs +3 -3
  78. package/src/decorators/ctrl/http/OPTIONS.cjs +3 -3
  79. package/src/decorators/ctrl/http/OPTIONS.mjs +3 -3
  80. package/src/decorators/ctrl/http/PATCH.cjs +3 -3
  81. package/src/decorators/ctrl/http/PATCH.mjs +3 -3
  82. package/src/decorators/ctrl/http/POST.cjs +3 -3
  83. package/src/decorators/ctrl/http/POST.mjs +3 -3
  84. package/src/decorators/ctrl/http/PUT.cjs +3 -3
  85. package/src/decorators/ctrl/http/PUT.mjs +3 -3
  86. package/src/decorators/orm/AfterInsert.cjs +17 -39
  87. package/src/decorators/orm/AfterInsert.mjs +18 -38
  88. package/src/decorators/orm/AfterLoad.cjs +17 -39
  89. package/src/decorators/orm/AfterLoad.mjs +18 -38
  90. package/src/decorators/orm/AfterRecover.cjs +17 -39
  91. package/src/decorators/orm/AfterRecover.mjs +18 -38
  92. package/src/decorators/orm/AfterRemove.cjs +17 -39
  93. package/src/decorators/orm/AfterRemove.mjs +18 -38
  94. package/src/decorators/orm/AfterSoftRemove.cjs +17 -39
  95. package/src/decorators/orm/AfterSoftRemove.mjs +18 -38
  96. package/src/decorators/orm/AfterUpdate.cjs +17 -39
  97. package/src/decorators/orm/AfterUpdate.mjs +18 -38
  98. package/src/decorators/orm/BeforeInsert.cjs +17 -39
  99. package/src/decorators/orm/BeforeInsert.mjs +18 -38
  100. package/src/decorators/orm/BeforeRecover.cjs +17 -39
  101. package/src/decorators/orm/BeforeRecover.mjs +18 -38
  102. package/src/decorators/orm/BeforeRemove.cjs +17 -39
  103. package/src/decorators/orm/BeforeRemove.mjs +18 -38
  104. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -39
  105. package/src/decorators/orm/BeforeSoftRemove.mjs +18 -38
  106. package/src/decorators/orm/BeforeUpdate.cjs +17 -39
  107. package/src/decorators/orm/BeforeUpdate.mjs +18 -38
  108. package/src/decorators/orm/Check.cjs +17 -42
  109. package/src/decorators/orm/Check.mjs +18 -41
  110. package/src/decorators/orm/ChildEntity.cjs +17 -42
  111. package/src/decorators/orm/ChildEntity.mjs +18 -41
  112. package/src/decorators/orm/Column.cjs +17 -74
  113. package/src/decorators/orm/Column.mjs +19 -74
  114. package/src/decorators/orm/CreateDateColumn.cjs +17 -38
  115. package/src/decorators/orm/CreateDateColumn.mjs +18 -37
  116. package/src/decorators/orm/DeleteDateColumn.cjs +17 -38
  117. package/src/decorators/orm/DeleteDateColumn.mjs +17 -36
  118. package/src/decorators/orm/Entity.cjs +17 -48
  119. package/src/decorators/orm/Entity.mjs +17 -46
  120. package/src/decorators/orm/EventSubscriber.cjs +17 -35
  121. package/src/decorators/orm/EventSubscriber.mjs +18 -34
  122. package/src/decorators/orm/Exclusion.cjs +17 -42
  123. package/src/decorators/orm/Exclusion.mjs +18 -41
  124. package/src/decorators/orm/Generated.cjs +17 -37
  125. package/src/decorators/orm/Generated.mjs +18 -36
  126. package/src/decorators/orm/Index.cjs +17 -54
  127. package/src/decorators/orm/Index.mjs +19 -54
  128. package/src/decorators/orm/JoinColumn.cjs +17 -42
  129. package/src/decorators/orm/JoinColumn.mjs +18 -41
  130. package/src/decorators/orm/JoinTable.cjs +17 -43
  131. package/src/decorators/orm/JoinTable.mjs +17 -41
  132. package/src/decorators/orm/ManyToMany.cjs +17 -55
  133. package/src/decorators/orm/ManyToMany.mjs +17 -53
  134. package/src/decorators/orm/ManyToOne.cjs +17 -55
  135. package/src/decorators/orm/ManyToOne.mjs +17 -53
  136. package/src/decorators/orm/ObjectIdColumn.cjs +17 -41
  137. package/src/decorators/orm/ObjectIdColumn.mjs +18 -40
  138. package/src/decorators/orm/OneToMany.cjs +17 -47
  139. package/src/decorators/orm/OneToMany.mjs +19 -47
  140. package/src/decorators/orm/OneToOne.cjs +17 -55
  141. package/src/decorators/orm/OneToOne.mjs +17 -53
  142. package/src/decorators/orm/PrimaryColumn.cjs +17 -62
  143. package/src/decorators/orm/PrimaryColumn.mjs +19 -62
  144. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -67
  145. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +19 -67
  146. package/src/decorators/orm/RelationId.cjs +17 -39
  147. package/src/decorators/orm/RelationId.mjs +18 -38
  148. package/src/decorators/orm/TableInheritance.cjs +17 -39
  149. package/src/decorators/orm/TableInheritance.mjs +18 -38
  150. package/src/decorators/orm/Tree.cjs +17 -37
  151. package/src/decorators/orm/Tree.mjs +18 -36
  152. package/src/decorators/orm/TreeChildren.cjs +17 -44
  153. package/src/decorators/orm/TreeChildren.mjs +17 -42
  154. package/src/decorators/orm/TreeLevelColumn.cjs +17 -38
  155. package/src/decorators/orm/TreeLevelColumn.mjs +17 -36
  156. package/src/decorators/orm/TreeParent.cjs +17 -44
  157. package/src/decorators/orm/TreeParent.mjs +17 -42
  158. package/src/decorators/orm/Unique.cjs +17 -57
  159. package/src/decorators/orm/Unique.mjs +19 -57
  160. package/src/decorators/orm/UpdateDateColumn.cjs +17 -38
  161. package/src/decorators/orm/UpdateDateColumn.mjs +18 -37
  162. package/src/decorators/orm/VersionColumn.cjs +17 -38
  163. package/src/decorators/orm/VersionColumn.mjs +18 -37
  164. package/src/decorators/orm/ViewColumn.cjs +17 -38
  165. package/src/decorators/orm/ViewColumn.mjs +18 -37
  166. package/src/decorators/orm/ViewEntity.cjs +17 -47
  167. package/src/decorators/orm/ViewEntity.mjs +18 -46
  168. package/src/decorators/orm/VirtualColumn.cjs +17 -55
  169. package/src/decorators/orm/VirtualColumn.mjs +17 -53
  170. package/src/lib/base/BaseObject.cjs +4 -2
  171. package/src/lib/base/BaseObject.mjs +4 -2
  172. package/src/lib/base/EventEmitter.cjs +1200 -1193
  173. package/src/lib/base/EventEmitter.mjs +1201 -1194
  174. package/src/lib/base/internal/ApplicationConfigLoader.cjs +4 -2
  175. package/src/lib/base/internal/ApplicationConfigLoader.mjs +4 -2
  176. package/src/lib/base/internal/ControllerEntrypoint.cjs +3 -3
  177. package/src/lib/base/internal/ControllerEntrypoint.mjs +3 -3
  178. package/src/lib/base/internal/DataValidator.cjs +176 -179
  179. package/src/lib/base/internal/DataValidator.mjs +177 -180
  180. package/src/lib/base/internal/ModuleConfigLoader.cjs +4 -3
  181. package/src/lib/base/internal/ModuleConfigLoader.mjs +4 -3
  182. package/src/lib/base/internal/ObjectType.cjs +4 -2
  183. package/src/lib/base/internal/ObjectType.mjs +4 -2
  184. package/src/lib/base/internal/PatternManager.cjs +740 -735
  185. package/src/lib/base/internal/PatternManager.mjs +745 -740
  186. package/src/lib/base/internal/StringifyPattern.cjs +1 -1
  187. package/src/lib/base/internal/StringifyPattern.mjs +1 -1
  188. package/src/lib/core/Application.cjs +151 -147
  189. package/src/lib/core/Application.mjs +199 -197
  190. package/src/lib/core/Component.cjs +4 -2
  191. package/src/lib/core/Component.mjs +4 -2
  192. package/src/lib/core/Container.cjs +4 -2
  193. package/src/lib/core/Container.mjs +4 -2
  194. package/src/lib/core/Module.cjs +5 -3
  195. package/src/lib/core/Module.mjs +5 -3
  196. package/src/lib/core/Provider.cjs +4 -2
  197. package/src/lib/core/Provider.mjs +4 -2
  198. package/src/lib/helpers/Glob.cjs +970 -721
  199. package/src/lib/helpers/Glob.mjs +1036 -787
  200. package/src/lib/helpers/IsHtml.cjs +7 -13
  201. package/src/lib/helpers/IsHtml.mjs +7 -13
  202. package/src/lib/helpers/IsXML.cjs +1158 -1016
  203. package/src/lib/helpers/IsXML.mjs +871 -729
  204. package/src/lib/helpers/MD5.cjs +1 -1
  205. package/src/lib/helpers/MD5.mjs +1 -1
  206. package/src/lib/helpers/NonceStr.cjs +1 -1
  207. package/src/lib/helpers/NonceStr.mjs +1 -1
  208. package/src/lib/helpers/ObjectHash.cjs +379 -372
  209. package/src/lib/helpers/ObjectHash.mjs +379 -372
  210. package/src/lib/helpers/RandomString.cjs +168 -147
  211. package/src/lib/helpers/RandomString.mjs +167 -146
  212. package/src/lib/helpers/SHA1.cjs +1 -1
  213. package/src/lib/helpers/SHA1.mjs +1 -1
  214. package/src/lib/helpers/SHA256.cjs +1 -1
  215. package/src/lib/helpers/SHA256.mjs +1 -1
  216. package/src/lib/helpers/SortArray.cjs +1 -1
  217. package/src/lib/helpers/SortArray.mjs +1 -1
  218. package/src/lib/helpers/Statistics.cjs +1 -1
  219. package/src/lib/helpers/Statistics.mjs +1 -1
  220. package/src/lib/helpers/URLBuilder.cjs +355 -355
  221. package/src/lib/helpers/URLBuilder.mjs +350 -350
  222. package/src/lib/helpers/UUID.cjs +1 -1
  223. package/src/lib/helpers/UUID.mjs +1 -1
  224. package/src/lib/ioc/DependencyInjectionContainer.cjs +32 -30
  225. package/src/lib/ioc/DependencyInjectionContainer.mjs +12 -10
  226. package/src/lib/ioc/ListModules.cjs +5174 -5249
  227. package/src/lib/ioc/ListModules.mjs +5177 -5252
  228. package/src/lib/validation/VLD.cjs +4080 -3902
  229. package/src/lib/validation/VLD.mjs +2970 -2792
  230. package/src/options/ApplicationOptions.cjs +4 -2
  231. package/src/options/ApplicationOptions.mjs +4 -2
  232. package/src/options/LoadAnonymousObjectOptions.cjs +4 -2
  233. package/src/options/LoadAnonymousObjectOptions.mjs +4 -2
  234. package/src/options/LoadNamedObjectOptions.cjs +4 -2
  235. package/src/options/LoadNamedObjectOptions.mjs +4 -2
  236. package/src/options/LoadObjectOptions.cjs +4 -2
  237. package/src/options/LoadObjectOptions.mjs +4 -2
  238. package/src/options/ModuleLoadObjectsOptions.cjs +4 -2
  239. package/src/options/ModuleLoadObjectsOptions.mjs +4 -2
  240. package/src/options/ModuleOptions.cjs +4 -4
  241. package/src/options/ModuleOptions.mjs +4 -4
  242. package/src/options/OverridableNamedObjectOptions.cjs +4 -2
  243. package/src/options/OverridableNamedObjectOptions.mjs +4 -2
  244. package/src/options/OverridableObjectOptions.cjs +4 -2
  245. package/src/options/OverridableObjectOptions.mjs +4 -2
  246. package/src/providers/Database.cjs +11 -11
  247. package/src/providers/Database.mjs +11 -11
  248. package/src/providers/PasswordHash.cjs +5 -3
  249. package/src/providers/PasswordHash.mjs +190 -188
  250. package/src/providers/migration/GenerateMigration.cjs +15 -19
  251. package/src/providers/migration/GenerateMigration.mjs +15 -19
  252. package/vendor/Package.10.cjs +2 -8
  253. package/vendor/Package.10.mjs +2 -8
  254. package/vendor/Package.11.cjs +5 -83
  255. package/vendor/Package.11.mjs +5 -77
  256. package/vendor/Package.112.cjs +48900 -0
  257. package/vendor/Package.112.mjs +48764 -0
  258. package/vendor/Package.12.cjs +4 -2
  259. package/vendor/Package.12.mjs +6 -4
  260. package/vendor/Package.13.cjs +87 -1
  261. package/vendor/Package.13.mjs +81 -1
  262. package/vendor/Package.14.cjs +1 -14057
  263. package/vendor/Package.14.mjs +1 -14031
  264. package/vendor/Package.15.cjs +1 -1
  265. package/vendor/Package.15.mjs +1 -1
  266. package/vendor/Package.16.cjs +18129 -1935
  267. package/vendor/Package.16.mjs +18115 -1839
  268. package/vendor/Package.17.cjs +1922 -47918
  269. package/vendor/Package.17.mjs +1874 -47937
  270. package/vendor/Package.18.cjs +35 -1
  271. package/vendor/Package.18.mjs +35 -1
  272. package/vendor/Package.19.cjs +37 -0
  273. package/vendor/Package.19.mjs +35 -0
  274. package/vendor/Package.2.cjs +5739 -5710
  275. package/vendor/Package.2.mjs +5733 -5704
  276. package/vendor/Package.20.cjs +37 -0
  277. package/vendor/Package.20.mjs +35 -0
  278. package/vendor/Package.21.cjs +37 -0
  279. package/vendor/Package.21.mjs +35 -0
  280. package/vendor/Package.22.cjs +37 -0
  281. package/vendor/Package.22.mjs +35 -0
  282. package/vendor/Package.23.cjs +37 -0
  283. package/vendor/Package.23.mjs +35 -0
  284. package/vendor/Package.24.cjs +37 -0
  285. package/vendor/Package.24.mjs +35 -0
  286. package/vendor/Package.25.cjs +37 -0
  287. package/vendor/Package.25.mjs +35 -0
  288. package/vendor/Package.26.cjs +37 -0
  289. package/vendor/Package.26.mjs +35 -0
  290. package/vendor/Package.27.cjs +37 -0
  291. package/vendor/Package.27.mjs +35 -0
  292. package/vendor/Package.28.cjs +37 -0
  293. package/vendor/Package.28.mjs +35 -0
  294. package/vendor/Package.29.cjs +40 -0
  295. package/vendor/Package.29.mjs +38 -0
  296. package/vendor/Package.30.cjs +41 -0
  297. package/vendor/Package.30.mjs +39 -0
  298. package/vendor/Package.31.cjs +72 -0
  299. package/vendor/Package.31.mjs +70 -0
  300. package/vendor/Package.32.cjs +37 -0
  301. package/vendor/Package.32.mjs +35 -0
  302. package/vendor/Package.33.cjs +37 -0
  303. package/vendor/Package.33.mjs +35 -0
  304. package/vendor/Package.34.cjs +46 -0
  305. package/vendor/Package.34.mjs +44 -0
  306. package/vendor/Package.35.cjs +34 -0
  307. package/vendor/Package.35.mjs +32 -0
  308. package/vendor/Package.36.cjs +40 -0
  309. package/vendor/Package.36.mjs +38 -0
  310. package/vendor/Package.37.cjs +36 -0
  311. package/vendor/Package.37.mjs +34 -0
  312. package/vendor/Package.38.cjs +52 -0
  313. package/vendor/Package.38.mjs +50 -0
  314. package/vendor/Package.39.cjs +41 -0
  315. package/vendor/Package.39.mjs +39 -0
  316. package/vendor/Package.4.cjs +884 -874
  317. package/vendor/Package.4.mjs +884 -874
  318. package/vendor/Package.40.cjs +42 -0
  319. package/vendor/Package.40.mjs +40 -0
  320. package/vendor/Package.41.cjs +53 -0
  321. package/vendor/Package.41.mjs +51 -0
  322. package/vendor/Package.42.cjs +53 -0
  323. package/vendor/Package.42.mjs +51 -0
  324. package/vendor/Package.43.cjs +40 -0
  325. package/vendor/Package.43.mjs +38 -0
  326. package/vendor/Package.44.cjs +46 -0
  327. package/vendor/Package.44.mjs +44 -0
  328. package/vendor/Package.45.cjs +53 -0
  329. package/vendor/Package.45.mjs +51 -0
  330. package/vendor/Package.46.cjs +59 -0
  331. package/vendor/Package.46.mjs +57 -0
  332. package/vendor/Package.47.cjs +65 -0
  333. package/vendor/Package.47.mjs +63 -0
  334. package/vendor/Package.48.cjs +38 -0
  335. package/vendor/Package.48.mjs +36 -0
  336. package/vendor/Package.49.cjs +38 -0
  337. package/vendor/Package.49.mjs +36 -0
  338. package/vendor/Package.5.cjs +15 -11
  339. package/vendor/Package.5.mjs +11 -7
  340. package/vendor/Package.50.cjs +36 -0
  341. package/vendor/Package.50.mjs +34 -0
  342. package/vendor/Package.51.cjs +43 -0
  343. package/vendor/Package.51.mjs +41 -0
  344. package/vendor/Package.52.cjs +37 -0
  345. package/vendor/Package.52.mjs +35 -0
  346. package/vendor/Package.53.cjs +43 -0
  347. package/vendor/Package.53.mjs +41 -0
  348. package/vendor/Package.54.cjs +55 -0
  349. package/vendor/Package.54.mjs +53 -0
  350. package/vendor/Package.55.cjs +37 -0
  351. package/vendor/Package.55.mjs +35 -0
  352. package/vendor/Package.56.cjs +37 -0
  353. package/vendor/Package.56.mjs +35 -0
  354. package/vendor/Package.57.cjs +37 -0
  355. package/vendor/Package.57.mjs +35 -0
  356. package/vendor/Package.58.cjs +45 -0
  357. package/vendor/Package.58.mjs +43 -0
  358. package/vendor/Package.59.cjs +53 -0
  359. package/vendor/Package.59.mjs +51 -0
  360. package/vendor/Package.6.cjs +520 -511
  361. package/vendor/Package.6.mjs +543 -534
  362. package/vendor/Package.60.cjs +47649 -0
  363. package/vendor/Package.60.mjs +47606 -0
  364. package/vendor/Package.610.cjs +11 -11
  365. package/vendor/Package.610.mjs +11 -11
  366. package/vendor/Package.611.cjs +33 -23
  367. package/vendor/Package.611.mjs +19 -9
  368. package/vendor/Package.612.cjs +42 -36
  369. package/vendor/Package.612.mjs +35 -29
  370. package/vendor/Package.613.cjs +5 -4
  371. package/vendor/Package.613.mjs +5 -4
  372. package/vendor/Package.62.cjs +92 -89
  373. package/vendor/Package.62.mjs +185 -182
  374. package/vendor/Package.63.cjs +509 -166
  375. package/vendor/Package.63.mjs +490 -165
  376. package/vendor/Package.64.cjs +139 -511
  377. package/vendor/Package.64.mjs +139 -491
  378. package/vendor/Package.65.cjs +4135 -150
  379. package/vendor/Package.65.mjs +4143 -150
  380. package/vendor/Package.66.cjs +346 -4150
  381. package/vendor/Package.66.mjs +346 -4158
  382. package/vendor/Package.67.cjs +412 -261
  383. package/vendor/Package.67.mjs +410 -259
  384. package/vendor/Package.68.cjs +397 -405
  385. package/vendor/Package.68.mjs +227 -242
  386. package/vendor/Package.8.cjs +0 -4
  387. package/vendor/Package.8.mjs +0 -4
  388. package/vendor/Package.9.cjs +132 -118
  389. package/vendor/Package.9.mjs +138 -124
  390. package/vendor/TypeDef.internal.3.d.ts +0 -4
  391. package/vendor/Package.102.cjs +0 -48773
  392. package/vendor/Package.102.mjs +0 -48697
  393. package/vendor/Package.122.cjs +0 -3
  394. package/vendor/Package.122.mjs +0 -1
@@ -1,565 +1,193 @@
1
1
  "use strict";
2
2
 
3
- const n = "ffffffff-ffff-ffff-ffff-ffffffffffff";
4
-
5
- const t = "00000000-0000-0000-0000-000000000000";
6
-
7
- const e = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
8
-
9
- function r(n) {
10
- return typeof n === "string" && e.test(n);
11
- }
12
-
13
- function o(n) {
14
- if (!r(n)) {
15
- throw TypeError("Invalid UUID");
16
- }
17
- let t;
18
- return Uint8Array.of((t = parseInt(n.slice(0, 8), 16)) >>> 24, t >>> 16 & 255, t >>> 8 & 255, t & 255, (t = parseInt(n.slice(9, 13), 16)) >>> 8, t & 255, (t = parseInt(n.slice(14, 18), 16)) >>> 8, t & 255, (t = parseInt(n.slice(19, 23), 16)) >>> 8, t & 255, (t = parseInt(n.slice(24, 36), 16)) / 1099511627776 & 255, t / 4294967296 & 255, t >>> 24 & 255, t >>> 16 & 255, t >>> 8 & 255, t & 255);
3
+ function e(e) {
4
+ return typeof e === "object" && e !== null;
19
5
  }
20
6
 
21
- const f = [];
22
-
23
- for (let n = 0; n < 256; ++n) {
24
- f.push((n + 256).toString(16).slice(1));
7
+ function n(n) {
8
+ return e(n) && typeof n.length === "number";
25
9
  }
26
10
 
27
- function s(n, t = 0) {
28
- return (f[n[t + 0]] + f[n[t + 1]] + f[n[t + 2]] + f[n[t + 3]] + "-" + f[n[t + 4]] + f[n[t + 5]] + "-" + f[n[t + 6]] + f[n[t + 7]] + "-" + f[n[t + 8]] + f[n[t + 9]] + "-" + f[n[t + 10]] + f[n[t + 11]] + f[n[t + 12]] + f[n[t + 13]] + f[n[t + 14]] + f[n[t + 15]]).toLowerCase();
29
- }
30
-
31
- function c(n, t = 0) {
32
- const e = s(n, t);
33
- if (!r(e)) {
34
- throw TypeError("Stringified UUID is invalid");
35
- }
36
- return e;
37
- }
38
-
39
- let i;
40
-
41
- const u = new Uint8Array(16);
42
-
43
- function l() {
44
- if (!i) {
45
- if (typeof crypto === "undefined" || !crypto.getRandomValues) {
46
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
47
- }
48
- i = crypto.getRandomValues.bind(crypto);
49
- }
50
- return i(u);
51
- }
52
-
53
- const a = {};
54
-
55
- function d(n, t, e) {
56
- let r;
57
- const o = n?._v6 ?? false;
58
- if (n) {
59
- const t = Object.keys(n);
60
- if (t.length === 1 && t[0] === "_v6") {
61
- n = undefined;
62
- }
63
- }
64
- if (n) {
65
- r = y(n.random ?? n.rng?.() ?? l(), n.msecs, n.nsecs, n.clockseq, n.node, t, e);
11
+ function i(e) {
12
+ if (Array.isArray(e)) {
13
+ return e;
14
+ } else if (e === undefined) {
15
+ return [];
16
+ } else if (n(e) || e instanceof Set) {
17
+ return Array.from(e);
66
18
  } else {
67
- const n = Date.now();
68
- const f = l();
69
- g(a, n, f);
70
- r = y(f, a.msecs, a.nsecs, o ? undefined : a.clockseq, o ? undefined : a.node, t, e);
19
+ return [ e ];
71
20
  }
72
- return t ?? s(r);
73
21
  }
74
22
 
75
- function g(n, t, e) {
76
- n.msecs ??= -Infinity;
77
- n.nsecs ??= 0;
78
- if (t === n.msecs) {
79
- n.nsecs++;
80
- if (n.nsecs >= 1e4) {
81
- n.node = undefined;
82
- n.nsecs = 0;
83
- }
84
- } else if (t > n.msecs) {
85
- n.nsecs = 0;
86
- } else if (t < n.msecs) {
87
- n.node = undefined;
88
- }
89
- if (!n.node) {
90
- n.node = e.slice(10, 16);
91
- n.node[0] |= 1;
92
- n.clockseq = (e[8] << 8 | e[9]) & 16383;
93
- }
94
- n.msecs = t;
95
- return n;
23
+ function t(e) {
24
+ return !isNaN(parseFloat(e));
96
25
  }
97
26
 
98
- function y(n, t, e, r, o, f, s = 0) {
99
- if (n.length < 16) {
100
- throw new Error("Random bytes length must be >= 16");
101
- }
102
- if (!f) {
103
- f = new Uint8Array(16);
104
- s = 0;
105
- } else {
106
- if (s < 0 || s + 16 > f.length) {
107
- throw new RangeError(`UUID byte range ${s}:${s + 15} is out of buffer bounds`);
108
- }
109
- }
110
- t ??= Date.now();
111
- e ??= 0;
112
- r ??= (n[8] << 8 | n[9]) & 16383;
113
- o ??= n.slice(10, 16);
114
- t += 122192928e5;
115
- const c = ((t & 268435455) * 1e4 + e) % 4294967296;
116
- f[s++] = c >>> 24 & 255;
117
- f[s++] = c >>> 16 & 255;
118
- f[s++] = c >>> 8 & 255;
119
- f[s++] = c & 255;
120
- const i = t / 4294967296 * 1e4 & 268435455;
121
- f[s++] = i >>> 8 & 255;
122
- f[s++] = i & 255;
123
- f[s++] = i >>> 24 & 15 | 16;
124
- f[s++] = i >>> 16 & 255;
125
- f[s++] = r >>> 8 | 128;
126
- f[s++] = r & 255;
127
- for (let n = 0; n < 6; ++n) {
128
- f[s++] = o[n];
129
- }
130
- return f;
131
- }
132
-
133
- function p(n) {
134
- const t = typeof n === "string" ? o(n) : n;
135
- const e = h(t);
136
- return typeof n === "string" ? s(e) : e;
137
- }
138
-
139
- function h(n) {
140
- return Uint8Array.of((n[6] & 15) << 4 | n[7] >> 4 & 15, (n[7] & 15) << 4 | (n[4] & 240) >> 4, (n[4] & 15) << 4 | (n[5] & 240) >> 4, (n[5] & 15) << 4 | (n[0] & 240) >> 4, (n[0] & 15) << 4 | (n[1] & 240) >> 4, (n[1] & 15) << 4 | (n[2] & 240) >> 4, 96 | n[2] & 15, n[3], n[8], n[9], n[10], n[11], n[12], n[13], n[14], n[15]);
141
- }
142
-
143
- function U(n) {
144
- const t = I(n);
145
- const e = b(t, n.length * 8);
146
- return w(e);
147
- }
148
-
149
- function w(n) {
150
- const t = new Uint8Array(n.length * 4);
151
- for (let e = 0; e < n.length * 4; e++) {
152
- t[e] = n[e >> 2] >>> e % 4 * 8 & 255;
153
- }
154
- return t;
155
- }
156
-
157
- function m(n) {
158
- return (n + 64 >>> 9 << 4) + 14 + 1;
159
- }
160
-
161
- function b(n, t) {
162
- const e = new Uint32Array(m(t)).fill(0);
163
- e.set(n);
164
- e[t >> 5] |= 128 << t % 32;
165
- e[e.length - 1] = t;
166
- n = e;
167
- let r = 1732584193;
168
- let o = -271733879;
169
- let f = -1732584194;
170
- let s = 271733878;
171
- for (let t = 0; t < n.length; t += 16) {
172
- const e = r;
173
- const c = o;
174
- const i = f;
175
- const u = s;
176
- r = R(r, o, f, s, n[t], 7, -680876936);
177
- s = R(s, r, o, f, n[t + 1], 12, -389564586);
178
- f = R(f, s, r, o, n[t + 2], 17, 606105819);
179
- o = R(o, f, s, r, n[t + 3], 22, -1044525330);
180
- r = R(r, o, f, s, n[t + 4], 7, -176418897);
181
- s = R(s, r, o, f, n[t + 5], 12, 1200080426);
182
- f = R(f, s, r, o, n[t + 6], 17, -1473231341);
183
- o = R(o, f, s, r, n[t + 7], 22, -45705983);
184
- r = R(r, o, f, s, n[t + 8], 7, 1770035416);
185
- s = R(s, r, o, f, n[t + 9], 12, -1958414417);
186
- f = R(f, s, r, o, n[t + 10], 17, -42063);
187
- o = R(o, f, s, r, n[t + 11], 22, -1990404162);
188
- r = R(r, o, f, s, n[t + 12], 7, 1804603682);
189
- s = R(s, r, o, f, n[t + 13], 12, -40341101);
190
- f = R(f, s, r, o, n[t + 14], 17, -1502002290);
191
- o = R(o, f, s, r, n[t + 15], 22, 1236535329);
192
- r = x(r, o, f, s, n[t + 1], 5, -165796510);
193
- s = x(s, r, o, f, n[t + 6], 9, -1069501632);
194
- f = x(f, s, r, o, n[t + 11], 14, 643717713);
195
- o = x(o, f, s, r, n[t], 20, -373897302);
196
- r = x(r, o, f, s, n[t + 5], 5, -701558691);
197
- s = x(s, r, o, f, n[t + 10], 9, 38016083);
198
- f = x(f, s, r, o, n[t + 15], 14, -660478335);
199
- o = x(o, f, s, r, n[t + 4], 20, -405537848);
200
- r = x(r, o, f, s, n[t + 9], 5, 568446438);
201
- s = x(s, r, o, f, n[t + 14], 9, -1019803690);
202
- f = x(f, s, r, o, n[t + 3], 14, -187363961);
203
- o = x(o, f, s, r, n[t + 8], 20, 1163531501);
204
- r = x(r, o, f, s, n[t + 13], 5, -1444681467);
205
- s = x(s, r, o, f, n[t + 2], 9, -51403784);
206
- f = x(f, s, r, o, n[t + 7], 14, 1735328473);
207
- o = x(o, f, s, r, n[t + 12], 20, -1926607734);
208
- r = E(r, o, f, s, n[t + 5], 4, -378558);
209
- s = E(s, r, o, f, n[t + 8], 11, -2022574463);
210
- f = E(f, s, r, o, n[t + 11], 16, 1839030562);
211
- o = E(o, f, s, r, n[t + 14], 23, -35309556);
212
- r = E(r, o, f, s, n[t + 1], 4, -1530992060);
213
- s = E(s, r, o, f, n[t + 4], 11, 1272893353);
214
- f = E(f, s, r, o, n[t + 7], 16, -155497632);
215
- o = E(o, f, s, r, n[t + 10], 23, -1094730640);
216
- r = E(r, o, f, s, n[t + 13], 4, 681279174);
217
- s = E(s, r, o, f, n[t], 11, -358537222);
218
- f = E(f, s, r, o, n[t + 3], 16, -722521979);
219
- o = E(o, f, s, r, n[t + 6], 23, 76029189);
220
- r = E(r, o, f, s, n[t + 9], 4, -640364487);
221
- s = E(s, r, o, f, n[t + 12], 11, -421815835);
222
- f = E(f, s, r, o, n[t + 15], 16, 530742520);
223
- o = E(o, f, s, r, n[t + 2], 23, -995338651);
224
- r = q(r, o, f, s, n[t], 6, -198630844);
225
- s = q(s, r, o, f, n[t + 7], 10, 1126891415);
226
- f = q(f, s, r, o, n[t + 14], 15, -1416354905);
227
- o = q(o, f, s, r, n[t + 5], 21, -57434055);
228
- r = q(r, o, f, s, n[t + 12], 6, 1700485571);
229
- s = q(s, r, o, f, n[t + 3], 10, -1894986606);
230
- f = q(f, s, r, o, n[t + 10], 15, -1051523);
231
- o = q(o, f, s, r, n[t + 1], 21, -2054922799);
232
- r = q(r, o, f, s, n[t + 8], 6, 1873313359);
233
- s = q(s, r, o, f, n[t + 15], 10, -30611744);
234
- f = q(f, s, r, o, n[t + 6], 15, -1560198380);
235
- o = q(o, f, s, r, n[t + 13], 21, 1309151649);
236
- r = q(r, o, f, s, n[t + 4], 6, -145523070);
237
- s = q(s, r, o, f, n[t + 11], 10, -1120210379);
238
- f = q(f, s, r, o, n[t + 2], 15, 718787259);
239
- o = q(o, f, s, r, n[t + 9], 21, -343485551);
240
- r = A(r, e);
241
- o = A(o, c);
242
- f = A(f, i);
243
- s = A(s, u);
244
- }
245
- return Uint32Array.of(r, o, f, s);
27
+ function r(e) {
28
+ return !isNaN(parseFloat(e)) && isFinite(e);
246
29
  }
247
30
 
248
- function I(n) {
249
- if (n.length === 0) {
250
- return new Uint32Array;
251
- }
252
- const t = new Uint32Array(m(n.length * 8)).fill(0);
253
- for (let e = 0; e < n.length; e++) {
254
- t[e >> 2] |= (n[e] & 255) << e % 4 * 8;
255
- }
256
- return t;
31
+ function s(e) {
32
+ return e !== null && typeof e === "object" && e.constructor === Object;
257
33
  }
258
34
 
259
- function A(n, t) {
260
- const e = (n & 65535) + (t & 65535);
261
- const r = (n >> 16) + (t >> 16) + (e >> 16);
262
- return r << 16 | e & 65535;
35
+ function u(e) {
36
+ return f(e) && typeof e.length === "number";
263
37
  }
264
38
 
265
- function D(n, t) {
266
- return n << t | n >>> 32 - t;
39
+ function f(e) {
40
+ return typeof e === "object" && e !== null;
267
41
  }
268
42
 
269
- function v(n, t, e, r, o, f) {
270
- return A(D(A(A(t, n), A(r, f)), o), e);
43
+ function o(e) {
44
+ return typeof e !== "undefined";
271
45
  }
272
46
 
273
- function R(n, t, e, r, o, f, s) {
274
- return v(t & e | ~t & r, n, t, o, f, s);
47
+ function c(e) {
48
+ return !o(e);
275
49
  }
276
50
 
277
- function x(n, t, e, r, o, f, s) {
278
- return v(t & r | e & ~r, n, t, o, f, s);
51
+ function l(e) {
52
+ return e === null;
279
53
  }
280
54
 
281
- function E(n, t, e, r, o, f, s) {
282
- return v(t ^ e ^ r, n, t, o, f, s);
55
+ function a(e) {
56
+ return o(e) && !l(e) && !Number.isNaN(e);
283
57
  }
284
58
 
285
- function q(n, t, e, r, o, f, s) {
286
- return v(e ^ (t | ~r), n, t, o, f, s);
287
- }
288
-
289
- function $(n) {
290
- n = unescape(encodeURIComponent(n));
291
- const t = new Uint8Array(n.length);
292
- for (let e = 0; e < n.length; ++e) {
293
- t[e] = n.charCodeAt(e);
59
+ function d(e) {
60
+ if (typeof e === "function") {
61
+ return /^class /.test(Function.prototype.toString.call(e));
62
+ } else {
63
+ return false;
294
64
  }
295
- return t;
296
65
  }
297
66
 
298
- const k = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
299
-
300
- const M = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
67
+ function y(e) {
68
+ if (e === null) return true;
69
+ switch (typeof e) {
70
+ case "string":
71
+ case "number":
72
+ case "symbol":
73
+ case "undefined":
74
+ case "boolean":
75
+ return true;
301
76
 
302
- function S(n, t, e, r, f, c) {
303
- const i = typeof e === "string" ? $(e) : e;
304
- const u = typeof r === "string" ? o(r) : r;
305
- if (typeof r === "string") {
306
- r = o(r);
77
+ default:
78
+ return false;
307
79
  }
308
- if (r?.length !== 16) {
309
- throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
310
- }
311
- let l = new Uint8Array(16 + i.length);
312
- l.set(u);
313
- l.set(i, u.length);
314
- l = t(l);
315
- l[6] = l[6] & 15 | n;
316
- l[8] = l[8] & 63 | 128;
317
- if (f) {
318
- c = c || 0;
319
- for (let n = 0; n < 16; ++n) {
320
- f[c + n] = l[n];
321
- }
322
- return f;
323
- }
324
- return s(l);
325
80
  }
326
81
 
327
- function L(n, t, e, r) {
328
- return S(48, U, n, t, e, r);
329
- }
330
-
331
- L.DNS = k;
332
-
333
- L.URL = M;
334
-
335
- const N = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
336
-
337
- const T = {
338
- randomUUID: N
339
- };
340
-
341
- function C(n, t, e) {
342
- n = n || {};
343
- const r = n.random ?? n.rng?.() ?? l();
344
- if (r.length < 16) {
345
- throw new Error("Random bytes length must be >= 16");
346
- }
347
- r[6] = r[6] & 15 | 64;
348
- r[8] = r[8] & 63 | 128;
349
- if (t) {
350
- e = e || 0;
351
- if (e < 0 || e + 16 > t.length) {
352
- throw new RangeError(`UUID byte range ${e}:${e + 15} is out of buffer bounds`);
353
- }
354
- for (let n = 0; n < 16; ++n) {
355
- t[e + n] = r[n];
356
- }
357
- return t;
358
- }
359
- return s(r);
360
- }
361
-
362
- function V(n, t, e) {
363
- if (T.randomUUID && !t && !n) {
364
- return T.randomUUID();
365
- }
366
- return C(n, t, e);
367
- }
368
-
369
- function _(n, t, e, r) {
370
- switch (n) {
371
- case 0:
372
- return t & e ^ ~t & r;
373
-
374
- case 1:
375
- return t ^ e ^ r;
376
-
377
- case 2:
378
- return t & e ^ t & r ^ e & r;
379
-
380
- case 3:
381
- return t ^ e ^ r;
82
+ function b(e) {
83
+ if (e) {
84
+ const n = o(Promise) && e instanceof Promise;
85
+ const i = e.then && typeof e.then === "function";
86
+ return !!(n || i);
87
+ } else {
88
+ return false;
382
89
  }
383
90
  }
384
91
 
385
- function j(n, t) {
386
- return n << t | n >>> 32 - t;
387
- }
388
-
389
- function O(n) {
390
- const t = [ 1518500249, 1859775393, 2400959708, 3395469782 ];
391
- const e = [ 1732584193, 4023233417, 2562383102, 271733878, 3285377520 ];
392
- const r = new Uint8Array(n.length + 1);
393
- r.set(n);
394
- r[n.length] = 128;
395
- n = r;
396
- const o = n.length / 4 + 2;
397
- const f = Math.ceil(o / 16);
398
- const s = new Array(f);
399
- for (let t = 0; t < f; ++t) {
400
- const e = new Uint32Array(16);
401
- for (let r = 0; r < 16; ++r) {
402
- e[r] = n[t * 64 + r * 4] << 24 | n[t * 64 + r * 4 + 1] << 16 | n[t * 64 + r * 4 + 2] << 8 | n[t * 64 + r * 4 + 3];
403
- }
404
- s[t] = e;
405
- }
406
- s[f - 1][14] = (n.length - 1) * 8 / Math.pow(2, 32);
407
- s[f - 1][14] = Math.floor(s[f - 1][14]);
408
- s[f - 1][15] = (n.length - 1) * 8 & 4294967295;
409
- for (let n = 0; n < f; ++n) {
410
- const r = new Uint32Array(80);
411
- for (let t = 0; t < 16; ++t) {
412
- r[t] = s[n][t];
413
- }
414
- for (let n = 16; n < 80; ++n) {
415
- r[n] = j(r[n - 3] ^ r[n - 8] ^ r[n - 14] ^ r[n - 16], 1);
416
- }
417
- let o = e[0];
418
- let f = e[1];
419
- let c = e[2];
420
- let i = e[3];
421
- let u = e[4];
422
- for (let n = 0; n < 80; ++n) {
423
- const e = Math.floor(n / 20);
424
- const s = j(o, 5) + _(e, f, c, i) + u + t[e] + r[n] >>> 0;
425
- u = i;
426
- i = c;
427
- c = j(f, 30) >>> 0;
428
- f = o;
429
- o = s;
430
- }
431
- e[0] = e[0] + o >>> 0;
432
- e[1] = e[1] + f >>> 0;
433
- e[2] = e[2] + c >>> 0;
434
- e[3] = e[3] + i >>> 0;
435
- e[4] = e[4] + u >>> 0;
92
+ function m(e) {
93
+ if (e === null || !o(e)) {
94
+ return false;
95
+ } else {
96
+ return typeof e[Symbol.iterator] === "function" || typeof e[Symbol.asyncIterator] === "function";
436
97
  }
437
- return Uint8Array.of(e[0] >> 24, e[0] >> 16, e[0] >> 8, e[0], e[1] >> 24, e[1] >> 16, e[1] >> 8, e[1], e[2] >> 24, e[2] >> 16, e[2] >> 8, e[2], e[3] >> 24, e[3] >> 16, e[3] >> 8, e[3], e[4] >> 24, e[4] >> 16, e[4] >> 8, e[4]);
438
98
  }
439
99
 
440
- function X(n, t, e, r) {
441
- return S(80, O, n, t, e, r);
442
- }
443
-
444
- X.DNS = k;
445
-
446
- X.URL = M;
447
-
448
- function z(n, t, e) {
449
- n ??= {};
450
- e ??= 0;
451
- let r = d({
452
- ...n,
453
- _v6: true
454
- }, new Uint8Array(16));
455
- r = p(r);
456
- if (t) {
457
- for (let n = 0; n < 16; n++) {
458
- t[e + n] = r[n];
459
- }
460
- return t;
461
- }
462
- return s(r);
100
+ function p(e) {
101
+ return typeof e === "string";
463
102
  }
464
103
 
465
- function B(n) {
466
- const t = typeof n === "string" ? o(n) : n;
467
- const e = F(t);
468
- return typeof n === "string" ? s(e) : e;
104
+ function N(e) {
105
+ return typeof e === "function";
469
106
  }
470
107
 
471
- function F(n) {
472
- return Uint8Array.of((n[3] & 15) << 4 | n[4] >> 4 & 15, (n[4] & 15) << 4 | (n[5] & 240) >> 4, (n[5] & 15) << 4 | n[6] & 15, n[7], (n[1] & 15) << 4 | (n[2] & 240) >> 4, (n[2] & 15) << 4 | (n[3] & 240) >> 4, 16 | (n[0] & 240) >> 4, (n[0] & 15) << 4 | (n[1] & 240) >> 4, n[8], n[9], n[10], n[11], n[12], n[13], n[14], n[15]);
108
+ function D(e) {
109
+ return typeof e === "function" && e.constructor.name === "AsyncFunction";
473
110
  }
474
111
 
475
- const G = {};
112
+ const k = {
113
+ isNumber: t,
114
+ isFiniteNumber: r,
115
+ isPlainObject: s,
116
+ isArrayLike: u,
117
+ isObject: f,
118
+ isDefined: o,
119
+ isUndefined: c,
120
+ isNull: l,
121
+ isDefinedValue: a,
122
+ isClass: d,
123
+ isPrimitive: y,
124
+ isPromise: b,
125
+ isIterable: m,
126
+ isString: p,
127
+ isFunction: N,
128
+ isAsyncFunction: D
129
+ };
476
130
 
477
- function H(n, t, e) {
478
- let r;
479
- if (n) {
480
- r = K(n.random ?? n.rng?.() ?? l(), n.msecs, n.seq, t, e);
481
- } else {
482
- const n = Date.now();
483
- const o = l();
484
- J(G, n, o);
485
- r = K(o, G.msecs, G.seq, t, e);
486
- }
487
- return t ?? s(r);
131
+ function R(e, n = {}) {
132
+ n = Object.assign({
133
+ computed: {},
134
+ customOrders: {},
135
+ nullRank: 1,
136
+ undefinedRank: 1,
137
+ nanRank: 1
138
+ }, n);
139
+ e.sort(g(n));
140
+ return e;
488
141
  }
489
142
 
490
- function J(n, t, e) {
491
- n.msecs ??= -Infinity;
492
- n.seq ??= 0;
493
- if (t > n.msecs) {
494
- n.seq = e[6] << 23 | e[7] << 16 | e[8] << 8 | e[9];
495
- n.msecs = t;
496
- } else {
497
- n.seq = n.seq + 1 | 0;
498
- if (n.seq === 0) {
499
- n.msecs++;
143
+ function g(e = {}) {
144
+ const n = i(e.by);
145
+ const t = i(e.order);
146
+ const {customOrders: r, computed: s} = e;
147
+ return function i(u, f, o = 0) {
148
+ const c = t[o] || "asc";
149
+ if (!(c === "asc" || c === "desc" || r[c])) {
150
+ return 0;
500
151
  }
501
- }
502
- return n;
503
- }
504
-
505
- function K(n, t, e, r, o = 0) {
506
- if (n.length < 16) {
507
- throw new Error("Random bytes length must be >= 16");
508
- }
509
- if (!r) {
510
- r = new Uint8Array(16);
511
- o = 0;
512
- } else {
513
- if (o < 0 || o + 16 > r.length) {
514
- throw new RangeError(`UUID byte range ${o}:${o + 15} is out of buffer bounds`);
152
+ let l, a, d;
153
+ if (n.length) {
154
+ a = k.isDefined(u[n[o]]) ? u[n[o]] : s[n[o]] && s[n[o]](u);
155
+ d = k.isDefined(f[n[o]]) ? f[n[o]] : s[n[o]] && s[n[o]](f);
156
+ } else {
157
+ a = u;
158
+ d = f;
515
159
  }
516
- }
517
- t ??= Date.now();
518
- e ??= n[6] * 127 << 24 | n[7] << 16 | n[8] << 8 | n[9];
519
- r[o++] = t / 1099511627776 & 255;
520
- r[o++] = t / 4294967296 & 255;
521
- r[o++] = t / 16777216 & 255;
522
- r[o++] = t / 65536 & 255;
523
- r[o++] = t / 256 & 255;
524
- r[o++] = t & 255;
525
- r[o++] = 112 | e >>> 28 & 15;
526
- r[o++] = e >>> 20 & 255;
527
- r[o++] = 128 | e >>> 14 & 63;
528
- r[o++] = e >>> 6 & 255;
529
- r[o++] = e << 2 & 255 | n[10] & 3;
530
- r[o++] = n[11];
531
- r[o++] = n[12];
532
- r[o++] = n[13];
533
- r[o++] = n[14];
534
- r[o++] = n[15];
535
- return r;
536
- }
537
-
538
- function P(n) {
539
- if (!r(n)) {
540
- throw TypeError("Invalid UUID");
541
- }
542
- return parseInt(n.slice(14, 15), 16);
160
+ if (r && r[c]) {
161
+ l = r[c].indexOf(a) - r[c].indexOf(d);
162
+ } else if (a === d) {
163
+ l = 0;
164
+ } else if (k.isNull(a) && k.isUndefined(d)) {
165
+ l = c === "asc" ? 1 : c === "desc" ? -1 : 0;
166
+ } else if (k.isUndefined(a) && k.isNull(d)) {
167
+ l = c === "asc" ? -1 : c === "desc" ? 1 : 0;
168
+ } else if (k.isNull(a) && k.isDefinedValue(d)) {
169
+ l = e.nullRank;
170
+ } else if (k.isUndefined(a) && k.isDefinedValue(d)) {
171
+ l = e.undefinedRank;
172
+ } else if (Number.isNaN(a) && k.isDefinedValue(d)) {
173
+ l = e.nanRank;
174
+ } else if (k.isNull(d) && k.isDefinedValue(a)) {
175
+ l = -e.nullRank;
176
+ } else if (k.isUndefined(d) && k.isDefinedValue(a)) {
177
+ l = -e.undefinedRank;
178
+ } else if (Number.isNaN(d) && k.isDefinedValue(a)) {
179
+ l = -e.nanRank;
180
+ } else {
181
+ l = a < d ? -1 : a > d ? 1 : 0;
182
+ if (c === "desc") {
183
+ l = l * -1;
184
+ }
185
+ }
186
+ if (l === 0 && k.isDefined(n[o + 1])) {
187
+ l = i(u, f, o + 1);
188
+ }
189
+ return l;
190
+ };
543
191
  }
544
192
 
545
- exports.MAX = n;
546
-
547
- exports.NIL = t;
548
-
549
- exports.parse = o;
550
-
551
- exports.stringify = c;
552
-
553
- exports.v1 = d;
554
-
555
- exports.v3 = L;
556
-
557
- exports.v4 = V;
558
-
559
- exports.v5 = X;
560
-
561
- exports.v6 = z;
562
-
563
- exports.validate = r;
564
-
565
- exports.version = P;
193
+ exports.sortArray = R;