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