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.63.mjs
CHANGED
|
@@ -1,218 +1,543 @@
|
|
|
1
|
-
|
|
1
|
+
const n = "ffffffff-ffff-ffff-ffff-ffffffffffff";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const t = "00000000-0000-0000-0000-000000000000";
|
|
4
4
|
|
|
5
|
-
|
|
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
6
|
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
if (t instanceof RegExp) t = e(t, n);
|
|
10
|
-
var i = a(r, t, n);
|
|
11
|
-
return i && {
|
|
12
|
-
start: i[0],
|
|
13
|
-
end: i[1],
|
|
14
|
-
pre: n.slice(0, i[0]),
|
|
15
|
-
body: n.slice(i[0] + r.length, i[1]),
|
|
16
|
-
post: n.slice(i[1] + t.length)
|
|
17
|
-
};
|
|
7
|
+
function r(n) {
|
|
8
|
+
return typeof n === "string" && e.test(n);
|
|
18
9
|
}
|
|
19
10
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
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);
|
|
23
17
|
}
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
const f = [];
|
|
20
|
+
|
|
21
|
+
for (let n = 0; n < 256; ++n) {
|
|
22
|
+
f.push((n + 256).toString(16).slice(1));
|
|
23
|
+
}
|
|
26
24
|
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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");
|
|
35
45
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function g(n, t, e) {
|
|
74
|
+
n.msecs ??= -Infinity;
|
|
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;
|
|
53
81
|
}
|
|
54
|
-
|
|
55
|
-
|
|
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;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function y(n, t, e, r, o, f, s = 0) {
|
|
97
|
+
if (n.length < 16) {
|
|
98
|
+
throw new Error("Random bytes length must be >= 16");
|
|
99
|
+
}
|
|
100
|
+
if (!f) {
|
|
101
|
+
f = new Uint8Array(16);
|
|
102
|
+
s = 0;
|
|
103
|
+
} else {
|
|
104
|
+
if (s < 0 || s + 16 > f.length) {
|
|
105
|
+
throw new RangeError(`UUID byte range ${s}:${s + 15} is out of buffer bounds`);
|
|
56
106
|
}
|
|
57
107
|
}
|
|
58
|
-
|
|
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;
|
|
59
129
|
}
|
|
60
130
|
|
|
61
|
-
|
|
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
|
+
}
|
|
62
136
|
|
|
63
|
-
|
|
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
|
+
}
|
|
64
140
|
|
|
65
|
-
|
|
141
|
+
function p(n) {
|
|
142
|
+
const t = I(n);
|
|
143
|
+
const e = b(t, n.length * 8);
|
|
144
|
+
return w(e);
|
|
145
|
+
}
|
|
66
146
|
|
|
67
|
-
|
|
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;
|
|
151
|
+
}
|
|
152
|
+
return t;
|
|
153
|
+
}
|
|
68
154
|
|
|
69
|
-
|
|
155
|
+
function m(n) {
|
|
156
|
+
return (n + 64 >>> 9 << 4) + 14 + 1;
|
|
157
|
+
}
|
|
70
158
|
|
|
71
|
-
|
|
159
|
+
function b(n, t) {
|
|
160
|
+
const e = new Uint32Array(m(t)).fill(0);
|
|
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);
|
|
244
|
+
}
|
|
72
245
|
|
|
73
|
-
|
|
246
|
+
function I(n) {
|
|
247
|
+
if (n.length === 0) {
|
|
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;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function A(n, t) {
|
|
258
|
+
const e = (n & 65535) + (t & 65535);
|
|
259
|
+
const r = (n >> 16) + (t >> 16) + (e >> 16);
|
|
260
|
+
return r << 16 | e & 65535;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function D(n, t) {
|
|
264
|
+
return n << t | n >>> 32 - t;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function R(n, t, e, r, o, f) {
|
|
268
|
+
return A(D(A(A(t, n), A(r, f)), o), e);
|
|
269
|
+
}
|
|
74
270
|
|
|
75
|
-
|
|
271
|
+
function E(n, t, e, r, o, f, s) {
|
|
272
|
+
return R(t & e | ~t & r, n, t, o, f, s);
|
|
273
|
+
}
|
|
76
274
|
|
|
77
|
-
function
|
|
78
|
-
return
|
|
275
|
+
function q(n, t, e, r, o, f, s) {
|
|
276
|
+
return R(t & r | e & ~r, n, t, o, f, s);
|
|
79
277
|
}
|
|
80
278
|
|
|
81
|
-
function
|
|
82
|
-
return r
|
|
279
|
+
function v(n, t, e, r, o, f, s) {
|
|
280
|
+
return R(t ^ e ^ r, n, t, o, f, s);
|
|
83
281
|
}
|
|
84
282
|
|
|
85
|
-
function
|
|
86
|
-
return
|
|
283
|
+
function $(n, t, e, r, o, f, s) {
|
|
284
|
+
return R(e ^ (t | ~r), n, t, o, f, s);
|
|
87
285
|
}
|
|
88
286
|
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
var e = n.pre;
|
|
95
|
-
var a = n.body;
|
|
96
|
-
var i = n.post;
|
|
97
|
-
var o = e.split(",");
|
|
98
|
-
o[o.length - 1] += "{" + a + "}";
|
|
99
|
-
var f = g(i);
|
|
100
|
-
if (i.length) {
|
|
101
|
-
o[o.length - 1] += f.shift();
|
|
102
|
-
o.push.apply(o, f);
|
|
287
|
+
function k(n) {
|
|
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);
|
|
103
292
|
}
|
|
104
|
-
t.push.apply(t, o);
|
|
105
293
|
return t;
|
|
106
294
|
}
|
|
107
295
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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);
|
|
112
305
|
}
|
|
113
|
-
|
|
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;
|
|
321
|
+
}
|
|
322
|
+
return s(a);
|
|
114
323
|
}
|
|
115
324
|
|
|
116
|
-
function
|
|
117
|
-
return
|
|
325
|
+
function T(n, t, e, r) {
|
|
326
|
+
return N(48, p, n, t, e, r);
|
|
118
327
|
}
|
|
119
328
|
|
|
120
|
-
|
|
121
|
-
|
|
329
|
+
T.DNS = M;
|
|
330
|
+
|
|
331
|
+
T.URL = S;
|
|
332
|
+
|
|
333
|
+
const C = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
334
|
+
|
|
335
|
+
const L = {
|
|
336
|
+
randomUUID: C
|
|
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);
|
|
122
358
|
}
|
|
123
359
|
|
|
124
|
-
function
|
|
125
|
-
|
|
360
|
+
function _(n, t, e) {
|
|
361
|
+
if (L.randomUUID && !t && !n) {
|
|
362
|
+
return L.randomUUID();
|
|
363
|
+
}
|
|
364
|
+
return V(n, t, e);
|
|
126
365
|
}
|
|
127
366
|
|
|
128
|
-
function
|
|
129
|
-
|
|
367
|
+
function j(n, t, e, r) {
|
|
368
|
+
switch (n) {
|
|
369
|
+
case 0:
|
|
370
|
+
return t & e ^ ~t & r;
|
|
371
|
+
|
|
372
|
+
case 1:
|
|
373
|
+
return t ^ e ^ r;
|
|
374
|
+
|
|
375
|
+
case 2:
|
|
376
|
+
return t & e ^ t & r ^ e & r;
|
|
377
|
+
|
|
378
|
+
case 3:
|
|
379
|
+
return t ^ e ^ r;
|
|
380
|
+
}
|
|
130
381
|
}
|
|
131
382
|
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
383
|
+
function x(n, t) {
|
|
384
|
+
return n << t | n >>> 32 - t;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function O(n) {
|
|
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];
|
|
142
401
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
return [ r ];
|
|
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];
|
|
154
411
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
d = e.body.split(/\.\./);
|
|
158
|
-
} else {
|
|
159
|
-
d = g(e.body);
|
|
160
|
-
if (d.length === 1) {
|
|
161
|
-
d = M(d[0], false).map(b);
|
|
162
|
-
if (d.length === 1) {
|
|
163
|
-
return i.map((function(r) {
|
|
164
|
-
return e.pre + d[0] + r;
|
|
165
|
-
}));
|
|
166
|
-
}
|
|
167
|
-
}
|
|
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);
|
|
168
414
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
m = [];
|
|
183
|
-
for (var P = O; S(P, A); P += E) {
|
|
184
|
-
var R;
|
|
185
|
-
if (u) {
|
|
186
|
-
R = String.fromCharCode(P);
|
|
187
|
-
if (R === "\\") R = "";
|
|
188
|
-
} else {
|
|
189
|
-
R = String(P);
|
|
190
|
-
if (I) {
|
|
191
|
-
var w = C - R.length;
|
|
192
|
-
if (w > 0) {
|
|
193
|
-
var z = new Array(w + 1).join("0");
|
|
194
|
-
if (P < 0) R = "-" + z + R.slice(1); else R = z + R;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
m.push(R);
|
|
199
|
-
}
|
|
200
|
-
} else {
|
|
201
|
-
m = [];
|
|
202
|
-
for (var L = 0; L < d.length; L++) {
|
|
203
|
-
m.push.apply(m, M(d[L], false));
|
|
204
|
-
}
|
|
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;
|
|
205
428
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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;
|
|
434
|
+
}
|
|
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
|
+
}
|
|
437
|
+
|
|
438
|
+
function z(n, t, e, r) {
|
|
439
|
+
return N(80, O, n, t, e, r);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
z.DNS = M;
|
|
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);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
function F(n) {
|
|
464
|
+
const t = typeof n === "string" ? o(n) : n;
|
|
465
|
+
const e = G(t);
|
|
466
|
+
return typeof n === "string" ? s(e) : e;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
function G(n) {
|
|
470
|
+
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]);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
const H = {};
|
|
474
|
+
|
|
475
|
+
function J(n, t, e) {
|
|
476
|
+
let r;
|
|
477
|
+
if (n) {
|
|
478
|
+
r = P(n.random ?? n.rng?.() ?? a(), n.msecs, n.seq, t, e);
|
|
479
|
+
} else {
|
|
480
|
+
const n = Date.now();
|
|
481
|
+
const o = a();
|
|
482
|
+
K(H, n, o);
|
|
483
|
+
r = P(o, H.msecs, H.seq, t, e);
|
|
484
|
+
}
|
|
485
|
+
return t ?? s(r);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
function K(n, t, e) {
|
|
489
|
+
n.msecs ??= -Infinity;
|
|
490
|
+
n.seq ??= 0;
|
|
491
|
+
if (t > n.msecs) {
|
|
492
|
+
n.seq = e[6] << 23 | e[7] << 16 | e[8] << 8 | e[9];
|
|
493
|
+
n.msecs = t;
|
|
494
|
+
} else {
|
|
495
|
+
n.seq = n.seq + 1 | 0;
|
|
496
|
+
if (n.seq === 0) {
|
|
497
|
+
n.msecs++;
|
|
211
498
|
}
|
|
212
499
|
}
|
|
213
500
|
return n;
|
|
214
501
|
}
|
|
215
502
|
|
|
216
|
-
|
|
503
|
+
function P(n, t, e, r, o = 0) {
|
|
504
|
+
if (n.length < 16) {
|
|
505
|
+
throw new Error("Random bytes length must be >= 16");
|
|
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`);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
t ??= Date.now();
|
|
516
|
+
e ??= n[6] * 127 << 24 | n[7] << 16 | n[8] << 8 | n[9];
|
|
517
|
+
r[o++] = t / 1099511627776 & 255;
|
|
518
|
+
r[o++] = t / 4294967296 & 255;
|
|
519
|
+
r[o++] = t / 16777216 & 255;
|
|
520
|
+
r[o++] = t / 65536 & 255;
|
|
521
|
+
r[o++] = t / 256 & 255;
|
|
522
|
+
r[o++] = t & 255;
|
|
523
|
+
r[o++] = 112 | e >>> 28 & 15;
|
|
524
|
+
r[o++] = e >>> 20 & 255;
|
|
525
|
+
r[o++] = 128 | e >>> 14 & 63;
|
|
526
|
+
r[o++] = e >>> 6 & 255;
|
|
527
|
+
r[o++] = e << 2 & 255 | n[10] & 3;
|
|
528
|
+
r[o++] = n[11];
|
|
529
|
+
r[o++] = n[12];
|
|
530
|
+
r[o++] = n[13];
|
|
531
|
+
r[o++] = n[14];
|
|
532
|
+
r[o++] = n[15];
|
|
533
|
+
return r;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
function Q(n) {
|
|
537
|
+
if (!r(n)) {
|
|
538
|
+
throw TypeError("Invalid UUID");
|
|
539
|
+
}
|
|
540
|
+
return parseInt(n.slice(14, 15), 16);
|
|
541
|
+
}
|
|
217
542
|
|
|
218
|
-
export {
|
|
543
|
+
export { n as M, t as N, d as a, T as b, _ as c, B as d, r as e, Q as f, o as p, c as s, z as v };
|