@sorrell/utilities 1.2.5 → 1.2.6
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/Distribution/PackageExports.Generated.json +132 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.cts +43 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.mts +43 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.ts +43 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/Array/Array.Internal.d.cts +16 -0
- package/Distribution/Types/Array/Array.Internal.d.cts.map +10 -0
- package/Distribution/Types/Array/Array.Internal.d.mts +16 -0
- package/Distribution/Types/Array/Array.Internal.d.mts.map +10 -0
- package/Distribution/Types/Array/Array.Internal.d.ts +16 -0
- package/Distribution/Types/Array/Array.Internal.d.ts.map +1 -0
- package/Distribution/Types/Array/Array.Types.d.cts +92 -0
- package/Distribution/Types/Array/Array.Types.d.cts.map +10 -0
- package/Distribution/Types/Array/Array.Types.d.mts +92 -0
- package/Distribution/Types/Array/Array.Types.d.mts.map +10 -0
- package/Distribution/Types/Array/Array.Types.d.ts +92 -0
- package/Distribution/Types/Array/Array.Types.d.ts.map +1 -0
- package/Distribution/Types/Array/Array.d.cts +33 -0
- package/Distribution/Types/Array/Array.d.cts.map +10 -0
- package/Distribution/Types/Array/Array.d.mts +33 -0
- package/Distribution/Types/Array/Array.d.mts.map +10 -0
- package/Distribution/Types/Array/Array.d.ts +33 -0
- package/Distribution/Types/Array/Array.d.ts.map +1 -0
- package/Distribution/Types/Array/index.d.cts +9 -0
- package/Distribution/Types/Array/index.d.cts.map +10 -0
- package/Distribution/Types/Array/index.d.mts +9 -0
- package/Distribution/Types/Array/index.d.mts.map +10 -0
- package/Distribution/Types/Array/index.d.ts +9 -0
- package/Distribution/Types/Array/index.d.ts.map +1 -0
- package/Distribution/Types/Async/Async.Types.d.cts +150 -0
- package/Distribution/Types/Async/Async.Types.d.cts.map +10 -0
- package/Distribution/Types/Async/Async.Types.d.mts +150 -0
- package/Distribution/Types/Async/Async.Types.d.mts.map +10 -0
- package/Distribution/Types/Async/Async.Types.d.ts +150 -0
- package/Distribution/Types/Async/Async.Types.d.ts.map +1 -0
- package/Distribution/Types/Async/Async.d.cts +145 -0
- package/Distribution/Types/Async/Async.d.cts.map +10 -0
- package/Distribution/Types/Async/Async.d.mts +145 -0
- package/Distribution/Types/Async/Async.d.mts.map +10 -0
- package/Distribution/Types/Async/Async.d.ts +145 -0
- package/Distribution/Types/Async/Async.d.ts.map +1 -0
- package/Distribution/Types/Async/index.d.cts +9 -0
- package/Distribution/Types/Async/index.d.cts.map +10 -0
- package/Distribution/Types/Async/index.d.mts +9 -0
- package/Distribution/Types/Async/index.d.mts.map +10 -0
- package/Distribution/Types/Async/index.d.ts +9 -0
- package/Distribution/Types/Async/index.d.ts.map +1 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.cts +9 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.cts.map +10 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.mts +9 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.mts.map +10 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.ts +9 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.ts.map +1 -0
- package/Distribution/Types/Dependency/Dependency.d.cts +65 -0
- package/Distribution/Types/Dependency/Dependency.d.cts.map +10 -0
- package/Distribution/Types/Dependency/Dependency.d.mts +65 -0
- package/Distribution/Types/Dependency/Dependency.d.mts.map +10 -0
- package/Distribution/Types/Dependency/Dependency.d.ts +65 -0
- package/Distribution/Types/Dependency/Dependency.d.ts.map +1 -0
- package/Distribution/Types/Dependency/index.d.cts +13 -0
- package/Distribution/Types/Dependency/index.d.cts.map +10 -0
- package/Distribution/Types/Dependency/index.d.mts +13 -0
- package/Distribution/Types/Dependency/index.d.mts.map +10 -0
- package/Distribution/Types/Dependency/index.d.ts +13 -0
- package/Distribution/Types/Dependency/index.d.ts.map +1 -0
- package/Distribution/Types/Effect/Effect.Types.d.cts +16 -0
- package/Distribution/Types/Effect/Effect.Types.d.cts.map +10 -0
- package/Distribution/Types/Effect/Effect.Types.d.mts +16 -0
- package/Distribution/Types/Effect/Effect.Types.d.mts.map +10 -0
- package/Distribution/Types/Effect/Effect.Types.d.ts +16 -0
- package/Distribution/Types/Effect/Effect.Types.d.ts.map +1 -0
- package/Distribution/Types/Effect/Effect.d.cts +8 -0
- package/Distribution/Types/Effect/Effect.d.cts.map +10 -0
- package/Distribution/Types/Effect/Effect.d.mts +8 -0
- package/Distribution/Types/Effect/Effect.d.mts.map +10 -0
- package/Distribution/Types/Effect/Effect.d.ts +8 -0
- package/Distribution/Types/Effect/Effect.d.ts.map +1 -0
- package/Distribution/Types/Effect/Index.Effect.d.cts +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.cts.map +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.mts +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.mts.map +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.ts +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.ts.map +1 -0
- package/Distribution/Types/Effect/index.d.cts +8 -0
- package/Distribution/Types/Effect/index.d.cts.map +10 -0
- package/Distribution/Types/Effect/index.d.mts +8 -0
- package/Distribution/Types/Effect/index.d.mts.map +10 -0
- package/Distribution/Types/Effect/index.d.ts +8 -0
- package/Distribution/Types/Effect/index.d.ts.map +1 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.cts +8 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.cts.map +10 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.mts +8 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.mts.map +10 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.ts +8 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.ts.map +1 -0
- package/Distribution/Types/FileSystem/FileSystem.d.cts +55 -0
- package/Distribution/Types/FileSystem/FileSystem.d.cts.map +10 -0
- package/Distribution/Types/FileSystem/FileSystem.d.mts +55 -0
- package/Distribution/Types/FileSystem/FileSystem.d.mts.map +10 -0
- package/Distribution/Types/FileSystem/FileSystem.d.ts +55 -0
- package/Distribution/Types/FileSystem/FileSystem.d.ts.map +1 -0
- package/Distribution/Types/FileSystem/index.d.cts +9 -0
- package/Distribution/Types/FileSystem/index.d.cts.map +10 -0
- package/Distribution/Types/FileSystem/index.d.mts +9 -0
- package/Distribution/Types/FileSystem/index.d.mts.map +10 -0
- package/Distribution/Types/FileSystem/index.d.ts +9 -0
- package/Distribution/Types/FileSystem/index.d.ts.map +1 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.cts +9 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.mts +9 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.ts +9 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/Functional/Functional.Internal.d.cts +8 -0
- package/Distribution/Types/Functional/Functional.Internal.d.cts.map +10 -0
- package/Distribution/Types/Functional/Functional.Internal.d.mts +8 -0
- package/Distribution/Types/Functional/Functional.Internal.d.mts.map +10 -0
- package/Distribution/Types/Functional/Functional.Internal.d.ts +8 -0
- package/Distribution/Types/Functional/Functional.Internal.d.ts.map +1 -0
- package/Distribution/Types/Functional/Functional.Types.d.cts +28 -0
- package/Distribution/Types/Functional/Functional.Types.d.cts.map +10 -0
- package/Distribution/Types/Functional/Functional.Types.d.mts +28 -0
- package/Distribution/Types/Functional/Functional.Types.d.mts.map +10 -0
- package/Distribution/Types/Functional/Functional.Types.d.ts +28 -0
- package/Distribution/Types/Functional/Functional.Types.d.ts.map +1 -0
- package/Distribution/Types/Functional/Functional.d.cts +8 -0
- package/Distribution/Types/Functional/Functional.d.cts.map +10 -0
- package/Distribution/Types/Functional/Functional.d.mts +8 -0
- package/Distribution/Types/Functional/Functional.d.mts.map +10 -0
- package/Distribution/Types/Functional/Functional.d.ts +8 -0
- package/Distribution/Types/Functional/Functional.d.ts.map +1 -0
- package/Distribution/Types/Functional/index.d.cts +9 -0
- package/Distribution/Types/Functional/index.d.cts.map +10 -0
- package/Distribution/Types/Functional/index.d.mts +9 -0
- package/Distribution/Types/Functional/index.d.mts.map +10 -0
- package/Distribution/Types/Functional/index.d.ts +9 -0
- package/Distribution/Types/Functional/index.d.ts.map +1 -0
- package/Distribution/Types/Math/Complex.Internal.d.cts +8 -0
- package/Distribution/Types/Math/Complex.Internal.d.cts.map +10 -0
- package/Distribution/Types/Math/Complex.Internal.d.mts +8 -0
- package/Distribution/Types/Math/Complex.Internal.d.mts.map +10 -0
- package/Distribution/Types/Math/Complex.Internal.d.ts +8 -0
- package/Distribution/Types/Math/Complex.Internal.d.ts.map +1 -0
- package/Distribution/Types/Math/Complex.Types.d.cts +69 -0
- package/Distribution/Types/Math/Complex.Types.d.cts.map +10 -0
- package/Distribution/Types/Math/Complex.Types.d.mts +69 -0
- package/Distribution/Types/Math/Complex.Types.d.mts.map +10 -0
- package/Distribution/Types/Math/Complex.Types.d.ts +69 -0
- package/Distribution/Types/Math/Complex.Types.d.ts.map +1 -0
- package/Distribution/Types/Math/Complex.d.cts +63 -0
- package/Distribution/Types/Math/Complex.d.cts.map +10 -0
- package/Distribution/Types/Math/Complex.d.mts +63 -0
- package/Distribution/Types/Math/Complex.d.mts.map +10 -0
- package/Distribution/Types/Math/Complex.d.ts +63 -0
- package/Distribution/Types/Math/Complex.d.ts.map +1 -0
- package/Distribution/Types/Math/Index.Complex.d.cts +9 -0
- package/Distribution/Types/Math/Index.Complex.d.cts.map +10 -0
- package/Distribution/Types/Math/Index.Complex.d.mts +9 -0
- package/Distribution/Types/Math/Index.Complex.d.mts.map +10 -0
- package/Distribution/Types/Math/Index.Complex.d.ts +9 -0
- package/Distribution/Types/Math/Index.Complex.d.ts.map +1 -0
- package/Distribution/Types/Math/Index.Experimental.d.cts +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.cts.map +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.mts +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.mts.map +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.ts +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.ts.map +1 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.cts +47 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.mts +47 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.ts +47 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/Math/Math.Types.d.cts +98 -0
- package/Distribution/Types/Math/Math.Types.d.cts.map +10 -0
- package/Distribution/Types/Math/Math.Types.d.mts +98 -0
- package/Distribution/Types/Math/Math.Types.d.mts.map +10 -0
- package/Distribution/Types/Math/Math.Types.d.ts +98 -0
- package/Distribution/Types/Math/Math.Types.d.ts.map +1 -0
- package/Distribution/Types/Math/Math.d.cts +8 -0
- package/Distribution/Types/Math/Math.d.cts.map +10 -0
- package/Distribution/Types/Math/Math.d.mts +8 -0
- package/Distribution/Types/Math/Math.d.mts.map +10 -0
- package/Distribution/Types/Math/Math.d.ts +8 -0
- package/Distribution/Types/Math/Math.d.ts.map +1 -0
- package/Distribution/Types/Math/Vector.d.cts +102 -0
- package/Distribution/Types/Math/Vector.d.cts.map +10 -0
- package/Distribution/Types/Math/Vector.d.mts +102 -0
- package/Distribution/Types/Math/Vector.d.mts.map +10 -0
- package/Distribution/Types/Math/Vector.d.ts +102 -0
- package/Distribution/Types/Math/Vector.d.ts.map +1 -0
- package/Distribution/Types/Math/index.d.cts +15 -0
- package/Distribution/Types/Math/index.d.cts.map +10 -0
- package/Distribution/Types/Math/index.d.mts +15 -0
- package/Distribution/Types/Math/index.d.mts.map +10 -0
- package/Distribution/Types/Math/index.d.ts +15 -0
- package/Distribution/Types/Math/index.d.ts.map +1 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts +9 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts.map +10 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts +9 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts.map +10 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts +9 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts.map +1 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.cts +104 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.cts.map +10 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.mts +104 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.mts.map +10 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.ts +104 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.ts.map +1 -0
- package/Distribution/Types/Miscellaneous/index.d.cts +8 -0
- package/Distribution/Types/Miscellaneous/index.d.cts.map +10 -0
- package/Distribution/Types/Miscellaneous/index.d.mts +8 -0
- package/Distribution/Types/Miscellaneous/index.d.mts.map +10 -0
- package/Distribution/Types/Miscellaneous/index.d.ts +8 -0
- package/Distribution/Types/Miscellaneous/index.d.ts.map +1 -0
- package/Distribution/Types/Npm/Index.Effect.d.cts +9 -0
- package/Distribution/Types/Npm/Index.Effect.d.cts.map +10 -0
- package/Distribution/Types/Npm/Index.Effect.d.mts +9 -0
- package/Distribution/Types/Npm/Index.Effect.d.mts.map +10 -0
- package/Distribution/Types/Npm/Index.Effect.d.ts +9 -0
- package/Distribution/Types/Npm/Index.Effect.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.cts +17 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.mts +17 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts +17 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.cts +12 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.mts +12 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.ts +12 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.Effect.d.cts +92 -0
- package/Distribution/Types/Npm/Npm.Effect.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.d.mts +92 -0
- package/Distribution/Types/Npm/Npm.Effect.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.d.ts +92 -0
- package/Distribution/Types/Npm/Npm.Effect.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.Error.d.cts +36 -0
- package/Distribution/Types/Npm/Npm.Error.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.Error.d.mts +36 -0
- package/Distribution/Types/Npm/Npm.Error.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.Error.d.ts +36 -0
- package/Distribution/Types/Npm/Npm.Error.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.d.cts +91 -0
- package/Distribution/Types/Npm/Npm.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.d.mts +91 -0
- package/Distribution/Types/Npm/Npm.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.d.ts +91 -0
- package/Distribution/Types/Npm/Npm.d.ts.map +1 -0
- package/Distribution/Types/Npm/index.d.cts +15 -0
- package/Distribution/Types/Npm/index.d.cts.map +10 -0
- package/Distribution/Types/Npm/index.d.mts +15 -0
- package/Distribution/Types/Npm/index.d.mts.map +10 -0
- package/Distribution/Types/Npm/index.d.ts +15 -0
- package/Distribution/Types/Npm/index.d.ts.map +1 -0
- package/Distribution/Types/Path/Path.d.cts +17 -0
- package/Distribution/Types/Path/Path.d.cts.map +10 -0
- package/Distribution/Types/Path/Path.d.mts +17 -0
- package/Distribution/Types/Path/Path.d.mts.map +10 -0
- package/Distribution/Types/Path/Path.d.ts +17 -0
- package/Distribution/Types/Path/Path.d.ts.map +1 -0
- package/Distribution/Types/Path/index.d.cts +8 -0
- package/Distribution/Types/Path/index.d.cts.map +10 -0
- package/Distribution/Types/Path/index.d.mts +8 -0
- package/Distribution/Types/Path/index.d.mts.map +10 -0
- package/Distribution/Types/Path/index.d.ts +8 -0
- package/Distribution/Types/Path/index.d.ts.map +1 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.cts +32 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.mts +32 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.ts +32 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/Record/Record.Types.d.cts +78 -0
- package/Distribution/Types/Record/Record.Types.d.cts.map +10 -0
- package/Distribution/Types/Record/Record.Types.d.mts +78 -0
- package/Distribution/Types/Record/Record.Types.d.mts.map +10 -0
- package/Distribution/Types/Record/Record.Types.d.ts +78 -0
- package/Distribution/Types/Record/Record.Types.d.ts.map +1 -0
- package/Distribution/Types/Record/Record.d.cts +63 -0
- package/Distribution/Types/Record/Record.d.cts.map +10 -0
- package/Distribution/Types/Record/Record.d.mts +63 -0
- package/Distribution/Types/Record/Record.d.mts.map +10 -0
- package/Distribution/Types/Record/Record.d.ts +63 -0
- package/Distribution/Types/Record/Record.d.ts.map +1 -0
- package/Distribution/Types/Record/index.d.cts +9 -0
- package/Distribution/Types/Record/index.d.cts.map +10 -0
- package/Distribution/Types/Record/index.d.mts +9 -0
- package/Distribution/Types/Record/index.d.mts.map +10 -0
- package/Distribution/Types/Record/index.d.ts +9 -0
- package/Distribution/Types/Record/index.d.ts.map +1 -0
- package/Distribution/Types/String/String.d.cts +28 -0
- package/Distribution/Types/String/String.d.cts.map +10 -0
- package/Distribution/Types/String/String.d.mts +28 -0
- package/Distribution/Types/String/String.d.mts.map +10 -0
- package/Distribution/Types/String/String.d.ts +28 -0
- package/Distribution/Types/String/String.d.ts.map +1 -0
- package/Distribution/Types/String/index.d.cts +8 -0
- package/Distribution/Types/String/index.d.cts.map +10 -0
- package/Distribution/Types/String/index.d.mts +8 -0
- package/Distribution/Types/String/index.d.mts.map +10 -0
- package/Distribution/Types/String/index.d.ts +8 -0
- package/Distribution/Types/String/index.d.ts.map +1 -0
- package/Distribution/Types/index.d.cts +24 -0
- package/Distribution/Types/index.d.cts.map +10 -0
- package/Distribution/Types/index.d.mts +24 -0
- package/Distribution/Types/index.d.mts.map +10 -0
- package/Distribution/Types/index.d.ts +24 -0
- package/Distribution/Types/index.d.ts.map +1 -0
- package/Distribution/array.cjs +51 -0
- package/Distribution/array.cjs.map +7 -0
- package/Distribution/array.js +28 -0
- package/Distribution/array.js.map +7 -0
- package/Distribution/async.cjs +174 -0
- package/Distribution/async.cjs.map +7 -0
- package/Distribution/async.js +151 -0
- package/Distribution/async.js.map +7 -0
- package/Distribution/complex.cjs +97 -0
- package/Distribution/complex.cjs.map +7 -0
- package/Distribution/complex.js +74 -0
- package/Distribution/complex.js.map +7 -0
- package/Distribution/effect.cjs +63 -0
- package/Distribution/effect.cjs.map +7 -0
- package/Distribution/effect.js +58 -0
- package/Distribution/effect.js.map +7 -0
- package/Distribution/fs.cjs +128 -0
- package/Distribution/fs.cjs.map +7 -0
- package/Distribution/fs.js +95 -0
- package/Distribution/fs.js.map +7 -0
- package/Distribution/functional.cjs +49 -0
- package/Distribution/functional.cjs.map +7 -0
- package/Distribution/functional.js +26 -0
- package/Distribution/functional.js.map +7 -0
- package/Distribution/index.cjs +701 -0
- package/Distribution/index.cjs.map +7 -0
- package/Distribution/index.js +674 -0
- package/Distribution/index.js.map +7 -0
- package/Distribution/math.cjs +243 -0
- package/Distribution/math.cjs.map +7 -0
- package/Distribution/math.js +226 -0
- package/Distribution/math.js.map +7 -0
- package/Distribution/misc.cjs +45 -0
- package/Distribution/misc.cjs.map +7 -0
- package/Distribution/misc.js +22 -0
- package/Distribution/misc.js.map +7 -0
- package/Distribution/npm-effect.cjs +130 -0
- package/Distribution/npm-effect.cjs.map +7 -0
- package/Distribution/npm-effect.js +97 -0
- package/Distribution/npm-effect.js.map +7 -0
- package/Distribution/npm.cjs +106 -0
- package/Distribution/npm.cjs.map +7 -0
- package/Distribution/npm.js +73 -0
- package/Distribution/npm.js.map +7 -0
- package/Distribution/path.cjs +63 -0
- package/Distribution/path.cjs.map +7 -0
- package/Distribution/path.js +40 -0
- package/Distribution/path.js.map +7 -0
- package/Distribution/record.cjs +116 -0
- package/Distribution/record.cjs.map +7 -0
- package/Distribution/record.js +93 -0
- package/Distribution/record.js.map +7 -0
- package/package.json +11 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
".": {
|
|
3
|
+
"import": {
|
|
4
|
+
"default": "./Distribution/index.js",
|
|
5
|
+
"types": "./Distribution/index.d.mts"
|
|
6
|
+
},
|
|
7
|
+
"require": {
|
|
8
|
+
"default": "./Distribution/index.cjs",
|
|
9
|
+
"types": "./Distribution/index.d.cts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"./array": {
|
|
13
|
+
"import": {
|
|
14
|
+
"default": "./Distribution/array.js",
|
|
15
|
+
"types": "./Distribution/array.d.mts"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"default": "./Distribution/array.cjs",
|
|
19
|
+
"types": "./Distribution/array.d.cts"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"./async": {
|
|
23
|
+
"import": {
|
|
24
|
+
"default": "./Distribution/async.js",
|
|
25
|
+
"types": "./Distribution/async.d.mts"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"default": "./Distribution/async.cjs",
|
|
29
|
+
"types": "./Distribution/async.d.cts"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"./complex": {
|
|
33
|
+
"import": {
|
|
34
|
+
"default": "./Distribution/complex.js",
|
|
35
|
+
"types": "./Distribution/complex.d.mts"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"default": "./Distribution/complex.cjs",
|
|
39
|
+
"types": "./Distribution/complex.d.cts"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"./effect": {
|
|
43
|
+
"import": {
|
|
44
|
+
"default": "./Distribution/effect.js",
|
|
45
|
+
"types": "./Distribution/effect.d.mts"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"default": "./Distribution/effect.cjs",
|
|
49
|
+
"types": "./Distribution/effect.d.cts"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"./fs": {
|
|
53
|
+
"import": {
|
|
54
|
+
"default": "./Distribution/fs.js",
|
|
55
|
+
"types": "./Distribution/fs.d.mts"
|
|
56
|
+
},
|
|
57
|
+
"require": {
|
|
58
|
+
"default": "./Distribution/fs.cjs",
|
|
59
|
+
"types": "./Distribution/fs.d.cts"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"./functional": {
|
|
63
|
+
"import": {
|
|
64
|
+
"default": "./Distribution/functional.js",
|
|
65
|
+
"types": "./Distribution/functional.d.mts"
|
|
66
|
+
},
|
|
67
|
+
"require": {
|
|
68
|
+
"default": "./Distribution/functional.cjs",
|
|
69
|
+
"types": "./Distribution/functional.d.cts"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"./math": {
|
|
73
|
+
"import": {
|
|
74
|
+
"default": "./Distribution/math.js",
|
|
75
|
+
"types": "./Distribution/math.d.mts"
|
|
76
|
+
},
|
|
77
|
+
"require": {
|
|
78
|
+
"default": "./Distribution/math.cjs",
|
|
79
|
+
"types": "./Distribution/math.d.cts"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"./misc": {
|
|
83
|
+
"import": {
|
|
84
|
+
"default": "./Distribution/misc.js",
|
|
85
|
+
"types": "./Distribution/misc.d.mts"
|
|
86
|
+
},
|
|
87
|
+
"require": {
|
|
88
|
+
"default": "./Distribution/misc.cjs",
|
|
89
|
+
"types": "./Distribution/misc.d.cts"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"./npm": {
|
|
93
|
+
"import": {
|
|
94
|
+
"default": "./Distribution/npm.js",
|
|
95
|
+
"types": "./Distribution/npm.d.mts"
|
|
96
|
+
},
|
|
97
|
+
"require": {
|
|
98
|
+
"default": "./Distribution/npm.cjs",
|
|
99
|
+
"types": "./Distribution/npm.d.cts"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"./npm-effect": {
|
|
103
|
+
"import": {
|
|
104
|
+
"default": "./Distribution/npm-effect.js",
|
|
105
|
+
"types": "./Distribution/npm-effect.d.mts"
|
|
106
|
+
},
|
|
107
|
+
"require": {
|
|
108
|
+
"default": "./Distribution/npm-effect.cjs",
|
|
109
|
+
"types": "./Distribution/npm-effect.d.cts"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"./path": {
|
|
113
|
+
"import": {
|
|
114
|
+
"default": "./Distribution/path.js",
|
|
115
|
+
"types": "./Distribution/path.d.mts"
|
|
116
|
+
},
|
|
117
|
+
"require": {
|
|
118
|
+
"default": "./Distribution/path.cjs",
|
|
119
|
+
"types": "./Distribution/path.d.cts"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"./record": {
|
|
123
|
+
"import": {
|
|
124
|
+
"default": "./Distribution/record.js",
|
|
125
|
+
"types": "./Distribution/record.d.mts"
|
|
126
|
+
},
|
|
127
|
+
"require": {
|
|
128
|
+
"default": "./Distribution/record.cjs",
|
|
129
|
+
"types": "./Distribution/record.d.cts"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Array.Internal.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { Options, TArrayType } from "./Array.Types.cjs";
|
|
8
|
+
import type { NoOptions } from "../Miscellaneous/Utility.Types.cjs";
|
|
9
|
+
/**
|
|
10
|
+
* @module Array.Internal
|
|
11
|
+
* Internal types for the {@link Array} module.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
type TBuildStaticTArrayReadonly<ElementType, ArraySize extends number, Accumulator extends ReadonlyArray<ElementType> = readonly []> = Accumulator["length"] extends ArraySize ? Accumulator : TBuildStaticTArrayReadonly<ElementType, ArraySize, readonly [...Accumulator, ElementType]>;
|
|
16
|
+
export type TBuildStaticTArrayMutable<ElementType, ArraySize extends number, Accumulator extends Array<ElementType> = []> = Accumulator["length"] extends ArraySize ? Accumulator : TBuildStaticTArrayMutable<ElementType, ArraySize, [
|
|
17
|
+
...Accumulator,
|
|
18
|
+
ElementType
|
|
19
|
+
]>;
|
|
20
|
+
/**
|
|
21
|
+
* Used to define {@link Array.TStaticArray}.
|
|
22
|
+
* @template ElementType - The type of this, or the type of this `Array`.
|
|
23
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`. The
|
|
24
|
+
* @template ReadonlyType - Whether the built {@link Array} type will be `readonly`.
|
|
25
|
+
* this type.
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export type TBuildStaticTArrayBase<ElementType, ArraySize extends number, ReadonlyType extends boolean> = ReadonlyType extends true ? TBuildStaticTArrayReadonly<ElementType, ArraySize> : ReadonlyType extends false ? TBuildStaticTArrayMutable<ElementType, ArraySize> : never;
|
|
29
|
+
export type TBuildStaticTArray<ElementType, ArraySize extends number, OptionsType extends Options = NoOptions> = Options.DefinedOnly extends OptionsType ? Options.MaybeDefined extends OptionsType ? never : Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<Exclude<ElementType, undefined>, ArraySize> : TBuildStaticTArrayMutable<Exclude<ElementType, undefined>, ArraySize> : Options.MaybeDefined extends OptionsType ? Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<ElementType | undefined, ArraySize> : TBuildStaticTArrayMutable<ElementType | undefined, ArraySize> : Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<ElementType, ArraySize> : TBuildStaticTArrayMutable<ElementType, ArraySize>;
|
|
30
|
+
/**
|
|
31
|
+
* Wrap a `TArrayType` type with this to change the {@link ElementType} to `ElementType | undefined`.
|
|
32
|
+
*
|
|
33
|
+
* @template ArrayType - The type of `TArrayType` to transform.
|
|
34
|
+
*/
|
|
35
|
+
export type TWithUndefined<ArrayType> = ArrayType extends TArrayType<infer ElementType, infer OptionsType, infer ArraySize> ? TArrayType<ElementType | undefined, OptionsType, ArraySize> : never;
|
|
36
|
+
/**
|
|
37
|
+
* The opposite of {@link TWithUndefined}.
|
|
38
|
+
*
|
|
39
|
+
* @template ArrayType - The type of `TArrayType` to transform.
|
|
40
|
+
*/
|
|
41
|
+
export type TWithDefined<ArrayType> = ArrayType extends TArrayType<infer ElementType, infer OptionsType, infer ArraySize> ? TArrayType<Exclude<ElementType, undefined>, OptionsType, ArraySize> : never;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=Array.Internal.Types.d.cts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Array.Internal.Types.d.cts",
|
|
4
|
+
"sour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Array.Types.mjs";
|
|
8
|
+
import type { NoOptions } from "../Miscellaneous/Utility.Types.mjs";
|
|
9
|
+
/**
|
|
10
|
+
* @module Array.Internal
|
|
11
|
+
* Internal types for the {@link Array} module.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
type TBuildStaticTArrayReadonly<ElementType, ArraySize extends number, Accumulator extends ReadonlyArray<ElementType> = readonly []> = Accumulator["length"] extends ArraySize ? Accumulator : TBuildStaticTArrayReadonly<ElementType, ArraySize, readonly [...Accumulator, ElementType]>;
|
|
16
|
+
export type TBuildStaticTArrayMutable<ElementType, ArraySize extends number, Accumulator extends Array<ElementType> = []> = Accumulator["length"] extends ArraySize ? Accumulator : TBuildStaticTArrayMutable<ElementType, ArraySize, [
|
|
17
|
+
...Accumulator,
|
|
18
|
+
ElementType
|
|
19
|
+
]>;
|
|
20
|
+
/**
|
|
21
|
+
* Used to define {@link Array.TStaticArray}.
|
|
22
|
+
* @template ElementType - The type of this, or the type of this `Array`.
|
|
23
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`. The
|
|
24
|
+
* @template ReadonlyType - Whether the built {@link Array} type will be `readonly`.
|
|
25
|
+
* this type.
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export type TBuildStaticTArrayBase<ElementType, ArraySize extends number, ReadonlyType extends boolean> = ReadonlyType extends true ? TBuildStaticTArrayReadonly<ElementType, ArraySize> : ReadonlyType extends false ? TBuildStaticTArrayMutable<ElementType, ArraySize> : never;
|
|
29
|
+
export type TBuildStaticTArray<ElementType, ArraySize extends number, OptionsType extends Options = NoOptions> = Options.DefinedOnly extends OptionsType ? Options.MaybeDefined extends OptionsType ? never : Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<Exclude<ElementType, undefined>, ArraySize> : TBuildStaticTArrayMutable<Exclude<ElementType, undefined>, ArraySize> : Options.MaybeDefined extends OptionsType ? Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<ElementType | undefined, ArraySize> : TBuildStaticTArrayMutable<ElementType | undefined, ArraySize> : Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<ElementType, ArraySize> : TBuildStaticTArrayMutable<ElementType, ArraySize>;
|
|
30
|
+
/**
|
|
31
|
+
* Wrap a `TArrayType` type with this to change the {@link ElementType} to `ElementType | undefined`.
|
|
32
|
+
*
|
|
33
|
+
* @template ArrayType - The type of `TArrayType` to transform.
|
|
34
|
+
*/
|
|
35
|
+
export type TWithUndefined<ArrayType> = ArrayType extends TArrayType<infer ElementType, infer OptionsType, infer ArraySize> ? TArrayType<ElementType | undefined, OptionsType, ArraySize> : never;
|
|
36
|
+
/**
|
|
37
|
+
* The opposite of {@link TWithUndefined}.
|
|
38
|
+
*
|
|
39
|
+
* @template ArrayType - The type of `TArrayType` to transform.
|
|
40
|
+
*/
|
|
41
|
+
export type TWithDefined<ArrayType> = ArrayType extends TArrayType<infer ElementType, infer OptionsType, infer ArraySize> ? TArrayType<Exclude<ElementType, undefined>, OptionsType, ArraySize> : never;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=Array.Internal.Types.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Array.Internal.Types.d.mts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Array/Array.Internal.Types.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAEnE;;;;;GAKG;AAEH,KAAK,0BAA0B,CAC3B,WAAW,EACX,SAAS,SAAS,MAAM,EACxB,WAAW,SAAS,aAAa,CAAC,WAAW,CAAC,GAAG,SAAS,EAAG,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C,GACjE,OAAO,CAAC,QAAQ,SAAS,WAAW,GAChC,0BAA0B,CAAC,WAAW,EAAE,SAAS,CAAC,GAClD,yBAAyB,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAEpE;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,SAAS,IAChC,SAAS,SAAS,UAAU,CAAC,MAAM,WAAW,EAAE,MAAM,WAAW,EAAE,MAAM,SAAS,CAAC,GAC7E,UAAU,CAAC,WAAW,GAAG,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,GAC3D,KAAK,CAAC;AAEhB;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,SAAS,IAC9B,SAAS,SAAS,UAAU,CAAC,MAAM,WAAW,EAAE,MAAM,WAAW,EAAE,MAAM,SAAS,CAAC,GAC7E,UAAU,CAAC,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,WAAW,EAAE,SAAS,CAAC,GACnE,KAAK,CAAC"
|
|
10
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Array.Internal.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { Options, TArrayType } from "./Array.Types.ts";
|
|
8
|
+
import type { NoOptions } from "../Miscellaneous/Utility.Types.ts";
|
|
9
|
+
/**
|
|
10
|
+
* @module Array.Internal
|
|
11
|
+
* Internal types for the {@link Array} module.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
type TBuildStaticTArrayReadonly<ElementType, ArraySize extends number, Accumulator extends ReadonlyArray<ElementType> = readonly []> = Accumulator["length"] extends ArraySize ? Accumulator : TBuildStaticTArrayReadonly<ElementType, ArraySize, readonly [...Accumulator, ElementType]>;
|
|
16
|
+
export type TBuildStaticTArrayMutable<ElementType, ArraySize extends number, Accumulator extends Array<ElementType> = []> = Accumulator["length"] extends ArraySize ? Accumulator : TBuildStaticTArrayMutable<ElementType, ArraySize, [
|
|
17
|
+
...Accumulator,
|
|
18
|
+
ElementType
|
|
19
|
+
]>;
|
|
20
|
+
/**
|
|
21
|
+
* Used to define {@link Array.TStaticArray}.
|
|
22
|
+
* @template ElementType - The type of this, or the type of this `Array`.
|
|
23
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`. The
|
|
24
|
+
* @template ReadonlyType - Whether the built {@link Array} type will be `readonly`.
|
|
25
|
+
* this type.
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export type TBuildStaticTArrayBase<ElementType, ArraySize extends number, ReadonlyType extends boolean> = ReadonlyType extends true ? TBuildStaticTArrayReadonly<ElementType, ArraySize> : ReadonlyType extends false ? TBuildStaticTArrayMutable<ElementType, ArraySize> : never;
|
|
29
|
+
export type TBuildStaticTArray<ElementType, ArraySize extends number, OptionsType extends Options = NoOptions> = Options.DefinedOnly extends OptionsType ? Options.MaybeDefined extends OptionsType ? never : Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<Exclude<ElementType, undefined>, ArraySize> : TBuildStaticTArrayMutable<Exclude<ElementType, undefined>, ArraySize> : Options.MaybeDefined extends OptionsType ? Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<ElementType | undefined, ArraySize> : TBuildStaticTArrayMutable<ElementType | undefined, ArraySize> : Options.Readonly extends OptionsType ? TBuildStaticTArrayReadonly<ElementType, ArraySize> : TBuildStaticTArrayMutable<ElementType, ArraySize>;
|
|
30
|
+
/**
|
|
31
|
+
* Wrap a `TArrayType` type with this to change the {@link ElementType} to `ElementType | undefined`.
|
|
32
|
+
*
|
|
33
|
+
* @template ArrayType - The type of `TArrayType` to transform.
|
|
34
|
+
*/
|
|
35
|
+
export type TWithUndefined<ArrayType> = ArrayType extends TArrayType<infer ElementType, infer OptionsType, infer ArraySize> ? TArrayType<ElementType | undefined, OptionsType, ArraySize> : never;
|
|
36
|
+
/**
|
|
37
|
+
* The opposite of {@link TWithUndefined}.
|
|
38
|
+
*
|
|
39
|
+
* @template ArrayType - The type of `TArrayType` to transform.
|
|
40
|
+
*/
|
|
41
|
+
export type TWithDefined<ArrayType> = ArrayType extends TArrayType<infer ElementType, infer OptionsType, infer ArraySize> ? TArrayType<Exclude<ElementType, undefined>, OptionsType, ArraySize> : never;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=Array.Internal.Types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Array.Internal.Types.d.ts","sourceRoot":"","sources":["../../../Source/Array/Array.Internal.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAEnE;;;;;GAKG;AAEH,KAAK,0BAA0B,CAC3B,WAAW,EACX,SAAS,SAAS,MAAM,EACxB,WAAW,SAAS,aAAa,CAAC,WAAW,CAAC,GAAG,SAAS,EAAG,IAE7D,WAAW,CAAC,QAAQ,CAAC,SAAS,SAAS,GACjC,WAAW,GACX,0BAA0B,CACxB,WAAW,EACX,SAAS,EACT,SAAS,CAAE,GAAG,WAAW,EAAE,WAAW,CAAE,CAC3C,CAAC;AAEV,MAAM,MAAM,yBAAyB,CACjC,WAAW,EACX,SAAS,SAAS,MAAM,EACxB,WAAW,SAAS,KAAK,CAAC,WAAW,CAAC,GAAG,EAAG,IAE5C,WAAW,CAAC,QAAQ,CAAC,SAAS,SAAS,GACjC,WAAW,GACX,yBAAyB,CACvB,WAAW,EACX,SAAS,EACT;IAAE,GAAG,WAAW;IAAE,WAAW;CAAE,CAClC,CAAC;AAEV;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,CAC9B,WAAW,EACX,SAAS,SAAS,MAAM,EACxB,YAAY,SAAS,OAA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AO,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,WAAW,EAAE,SAAS,CAAC,GACnE,KAAK,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Array.Internal.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @module Array.Internal
|
|
9
|
+
* Internal content for the {@link Array} module.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const ReadonlyOption: unique symbol;
|
|
14
|
+
export declare const DefinedOnlyOption: unique symbol;
|
|
15
|
+
export declare const MaybeDefinedOption: unique symbol;
|
|
16
|
+
//# sourceMappingURL=Array.Internal.d.cts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Array.Internal.d.cts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Array/Array.Internal.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAEH;;;;;GAKG;AAEH,eAIA,MAAM,cAAc,EAAE,OAAO,MAAiC,CAAC;AAE/D,eAIA,MAAM,iBAAiB,EAAE,OAAO,MAAoC,CAAC;AAErE,eAIA,MAAM,kBAAkB,EAAE,OAAO,MAAqC,CAAC"
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Array.Internal.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @module Array.Internal
|
|
9
|
+
* Internal content for the {@link Array} module.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const ReadonlyOption: unique symbol;
|
|
14
|
+
export declare const DefinedOnlyOption: unique symbol;
|
|
15
|
+
export declare const MaybeDefinedOption: unique symbol;
|
|
16
|
+
//# sourceMappingURL=Array.Internal.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Array.Internal.d.mts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Array/Array.Internal.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAEH;;;;;GAKG;AAEH,eAIA,MAAM,cAAc,EAAE,OAAO,MAAiC,CAAC;AAE/D,eAIA,MAAM,iBAAiB,EAAE,OAAO,MAAoC,CAAC;AAErE,eAIA,MAAM,kBAAkB,EAAE,OAAO,MAAqC,CAAC"
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Array.Internal.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @module Array.Internal
|
|
9
|
+
* Internal content for the {@link Array} module.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const ReadonlyOption: unique symbol;
|
|
14
|
+
export declare const DefinedOnlyOption: unique symbol;
|
|
15
|
+
export declare const MaybeDefinedOption: unique symbol;
|
|
16
|
+
//# sourceMappingURL=Array.Internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Array.Internal.d.ts","sourceRoot":"","sources":["../../../Source/Array/Array.Internal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;GAKG;AAEH,eAIA,MAAM,cAAc,EAAE,OAAO,MAAiC,CAAC;AAE/D,eAIA,MAAM,iBAAiB,EAAE,OAAO,MAAoC,CAAC;AAErE,eAIA,MAAM,kBAAkB,EAAE,OAAO,MAAqC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Array.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { DefinedOnlyOption, MaybeDefinedOption, ReadonlyOption } from "./Array.Internal.cjs";
|
|
8
|
+
import type { NoOptions, TOptions } from "../Miscellaneous/Utility.Types.cjs";
|
|
9
|
+
import type { TBuildStaticTArray } from "./Array.Internal.Types.cjs";
|
|
10
|
+
import type { TIsNonNegativeInteger } from "../Math/Math.Types.cjs";
|
|
11
|
+
/**
|
|
12
|
+
* An `Array` type, which is optionally customizable via an {@link OptionsType}.
|
|
13
|
+
*
|
|
14
|
+
* @template ElementType - The type of the elements in the array.
|
|
15
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
16
|
+
*/
|
|
17
|
+
export type TArray<ElementType, OptionsType extends Options = NoOptions> = Options.DefinedOnly extends OptionsType ? Options.MaybeDefined extends OptionsType ? never : Options.Readonly extends OptionsType ? ReadonlyArray<Exclude<ElementType, undefined>> : Array<Exclude<ElementType, undefined>> : Options.MaybeDefined extends OptionsType ? Options.Readonly extends OptionsType ? ReadonlyArray<ElementType | undefined> : Array<ElementType | undefined> : Options.Readonly extends OptionsType ? ReadonlyArray<ElementType> : Array<ElementType>;
|
|
18
|
+
/**
|
|
19
|
+
* The union of all `Array` types exported by the `@sorrell/utilities` {@link Array}
|
|
20
|
+
* module, as well as the built-in `Array` type.
|
|
21
|
+
*
|
|
22
|
+
* @note This union does *not* include {@link TMaybeArray}.
|
|
23
|
+
* If you wish to include {@link TMaybeArray}, use {@link TArrayTypeUnsafe}.
|
|
24
|
+
*
|
|
25
|
+
* @template ElementType - The type of the elements in the array.
|
|
26
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
27
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`. The
|
|
28
|
+
* only type in this union that uses this type parameter is {@link TStaticArray}.
|
|
29
|
+
*/
|
|
30
|
+
export type TArrayType<ElementType = unknown, OptionsType extends Options = NoOptions, ArraySize extends number = number> = TArray<ElementType, OptionsType> | TNonemptyArray<ElementType, OptionsType> | TStaticArray<ElementType, ArraySize, OptionsType> | Array<ElementType>;
|
|
31
|
+
/**
|
|
32
|
+
* The union of all `Array` types exported by the `@sorrell/utilities` {@link Array}
|
|
33
|
+
* module, as well as the built-in `Array` type.
|
|
34
|
+
*
|
|
35
|
+
* @note This union includes {@link TMaybeArray}. If you do not wish to include
|
|
36
|
+
* {@link TMaybeArray} in the union, use {@link TArrayType} instead.
|
|
37
|
+
*
|
|
38
|
+
* @template ElementType - The type of the elements in the array.
|
|
39
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
40
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`. The
|
|
41
|
+
* only type in this union that uses this type parameter is {@link TStaticArray}.
|
|
42
|
+
*/
|
|
43
|
+
export type TArrayTypeUnsafe<ElementType, OptionsType extends Options = NoOptions, ArraySize extends number = number> = TArrayType<ElementType, OptionsType, ArraySize> | TMaybeArray<ElementType>;
|
|
44
|
+
/**
|
|
45
|
+
* The union of a given {@link ElementType}, and `Array<ElementType>`.
|
|
46
|
+
*
|
|
47
|
+
* @template ElementType - The type of this, or the type of this `Array`.
|
|
48
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
49
|
+
*/
|
|
50
|
+
export type TMaybeArray<ElementType, OptionsType extends Options = NoOptions> = ElementType | TArray<ElementType, OptionsType>;
|
|
51
|
+
/**
|
|
52
|
+
* The union of a given {@link ElementType}, and `Array<ElementType>`.
|
|
53
|
+
*
|
|
54
|
+
* @template ElementType - The type of this, or the type of this `Array`.
|
|
55
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`.
|
|
56
|
+
* This must be an integer.
|
|
57
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
58
|
+
*/
|
|
59
|
+
export type TStaticArray<ElementType, ArraySize extends number, OptionsType extends Options = NoOptions> = ArraySize extends ArraySize ? number extends ArraySize ? TArray<ElementType, OptionsType> : TIsNonNegativeInteger<ArraySize> extends true ? TBuildStaticTArray<ElementType, ArraySize, OptionsType> : never : never;
|
|
60
|
+
/**
|
|
61
|
+
* An `Array<ElementType>` that is nonempty.
|
|
62
|
+
*
|
|
63
|
+
* @template ElementType - The type of the elements in the array.
|
|
64
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
65
|
+
*/
|
|
66
|
+
export type TNonemptyArray<ElementType, OptionsType extends Options = NoOptions> = Options.DefinedOnly extends OptionsType ? Options.MaybeDefined extends OptionsType ? never : Options.Readonly extends OptionsType ? readonly [Exclude<ElementType, undefined>, ...Array<Exclude<ElementType, undefined>>] : [Exclude<ElementType, undefined>, ...Array<Exclude<ElementType, undefined>>] : Options.MaybeDefined extends OptionsType ? Options.Readonly extends OptionsType ? readonly [ElementType | undefined, ...Array<ElementType | undefined>] : [ElementType | undefined, ...Array<ElementType | undefined>] : Options.Readonly extends OptionsType ? readonly [ElementType, ...Array<ElementType>] : [ElementType, ...Array<ElementType>];
|
|
67
|
+
/**
|
|
68
|
+
* Options for the types defined in the {@link Array} module.
|
|
69
|
+
*
|
|
70
|
+
* The only invalid combinations are those that contain both
|
|
71
|
+
* {@link Options!DefinedOnly} *and* {@link Options!MaybeDefined}.
|
|
72
|
+
*/
|
|
73
|
+
export type Options = TOptions<Options.Readonly | Options.DefinedOnly | Options.MaybeDefined>;
|
|
74
|
+
export declare namespace Options {
|
|
75
|
+
/**
|
|
76
|
+
* Specifies that the given array type in the `@sorrell/utilities` `Array` module
|
|
77
|
+
* should use `ReadonlyArray` internally.
|
|
78
|
+
*/
|
|
79
|
+
type Readonly = typeof ReadonlyOption;
|
|
80
|
+
/** Specifies that `undefined` must extend the given `ElementType`. */
|
|
81
|
+
type MaybeDefined = typeof MaybeDefinedOption;
|
|
82
|
+
/** Specifies that the given `ElementType` must *not* include `undefined`. */
|
|
83
|
+
type DefinedOnly = typeof DefinedOnlyOption;
|
|
84
|
+
type None = NoOptions;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The type returned by {@link FilterDefined}.
|
|
88
|
+
*
|
|
89
|
+
* @template ElementType - The type of the elements in the array.
|
|
90
|
+
*/
|
|
91
|
+
export type FilteredArray<ElementType> = TArray<Exclude<ElementType, undefined>>;
|
|
92
|
+
//# sourceMappingURL=Array.Types.d.cts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Array.Types.d.cts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Array/Array.Types.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,MAAM,MAAM,CACd,WAAW,EACX,WAAW,SAAS,OAAO,GAAG,SAAS,IAEvC,OAAO,CAAC,WAAW,SAAS,WAAW,GACjC,OAAO,CAAC,YAAY,SAAS,WAAW,GACp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AAC;AAEN,yBAAiB,OAAO,CACxB;IACI;;;OAGG;IACH,KAAY,QAAQ,GAAG,OAAO,cAAc,CAAC;IAE7C,sEAAsE;IACtE,KAAY,YAAY,GAAG,OAAO,kBAAkB,CAAC;IAErD,6EAA6E;IAC7E,KAAY,WAAW,GAAG,OAAO,iBAAiB,CAAC;IAEnD,KAAY,IAAI,GAAG,SAAS,CAAC;CAChC;AAID;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,WAAW,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC"
|
|
10
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Array.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { DefinedOnlyOption, MaybeDefinedOption, ReadonlyOption } from "./Array.Internal.mjs";
|
|
8
|
+
import type { NoOptions, TOptions } from "../Miscellaneous/Utility.Types.mjs";
|
|
9
|
+
import type { TBuildStaticTArray } from "./Array.Internal.Types.mjs";
|
|
10
|
+
import type { TIsNonNegativeInteger } from "../Math/Math.Types.mjs";
|
|
11
|
+
/**
|
|
12
|
+
* An `Array` type, which is optionally customizable via an {@link OptionsType}.
|
|
13
|
+
*
|
|
14
|
+
* @template ElementType - The type of the elements in the array.
|
|
15
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
16
|
+
*/
|
|
17
|
+
export type TArray<ElementType, OptionsType extends Options = NoOptions> = Options.DefinedOnly extends OptionsType ? Options.MaybeDefined extends OptionsType ? never : Options.Readonly extends OptionsType ? ReadonlyArray<Exclude<ElementType, undefined>> : Array<Exclude<ElementType, undefined>> : Options.MaybeDefined extends OptionsType ? Options.Readonly extends OptionsType ? ReadonlyArray<ElementType | undefined> : Array<ElementType | undefined> : Options.Readonly extends OptionsType ? ReadonlyArray<ElementType> : Array<ElementType>;
|
|
18
|
+
/**
|
|
19
|
+
* The union of all `Array` types exported by the `@sorrell/utilities` {@link Array}
|
|
20
|
+
* module, as well as the built-in `Array` type.
|
|
21
|
+
*
|
|
22
|
+
* @note This union does *not* include {@link TMaybeArray}.
|
|
23
|
+
* If you wish to include {@link TMaybeArray}, use {@link TArrayTypeUnsafe}.
|
|
24
|
+
*
|
|
25
|
+
* @template ElementType - The type of the elements in the array.
|
|
26
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
27
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`. The
|
|
28
|
+
* only type in this union that uses this type parameter is {@link TStaticArray}.
|
|
29
|
+
*/
|
|
30
|
+
export type TArrayType<ElementType = unknown, OptionsType extends Options = NoOptions, ArraySize extends number = number> = TArray<ElementType, OptionsType> | TNonemptyArray<ElementType, OptionsType> | TStaticArray<ElementType, ArraySize, OptionsType> | Array<ElementType>;
|
|
31
|
+
/**
|
|
32
|
+
* The union of all `Array` types exported by the `@sorrell/utilities` {@link Array}
|
|
33
|
+
* module, as well as the built-in `Array` type.
|
|
34
|
+
*
|
|
35
|
+
* @note This union includes {@link TMaybeArray}. If you do not wish to include
|
|
36
|
+
* {@link TMaybeArray} in the union, use {@link TArrayType} instead.
|
|
37
|
+
*
|
|
38
|
+
* @template ElementType - The type of the elements in the array.
|
|
39
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
40
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`. The
|
|
41
|
+
* only type in this union that uses this type parameter is {@link TStaticArray}.
|
|
42
|
+
*/
|
|
43
|
+
export type TArrayTypeUnsafe<ElementType, OptionsType extends Options = NoOptions, ArraySize extends number = number> = TArrayType<ElementType, OptionsType, ArraySize> | TMaybeArray<ElementType>;
|
|
44
|
+
/**
|
|
45
|
+
* The union of a given {@link ElementType}, and `Array<ElementType>`.
|
|
46
|
+
*
|
|
47
|
+
* @template ElementType - The type of this, or the type of this `Array`.
|
|
48
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
49
|
+
*/
|
|
50
|
+
export type TMaybeArray<ElementType, OptionsType extends Options = NoOptions> = ElementType | TArray<ElementType, OptionsType>;
|
|
51
|
+
/**
|
|
52
|
+
* The union of a given {@link ElementType}, and `Array<ElementType>`.
|
|
53
|
+
*
|
|
54
|
+
* @template ElementType - The type of this, or the type of this `Array`.
|
|
55
|
+
* @template ArraySize - The number of {@link ElementType | ElementTypes} in this `Array`.
|
|
56
|
+
* This must be an integer.
|
|
57
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
58
|
+
*/
|
|
59
|
+
export type TStaticArray<ElementType, ArraySize extends number, OptionsType extends Options = NoOptions> = ArraySize extends ArraySize ? number extends ArraySize ? TArray<ElementType, OptionsType> : TIsNonNegativeInteger<ArraySize> extends true ? TBuildStaticTArray<ElementType, ArraySize, OptionsType> : never : never;
|
|
60
|
+
/**
|
|
61
|
+
* An `Array<ElementType>` that is nonempty.
|
|
62
|
+
*
|
|
63
|
+
* @template ElementType - The type of the elements in the array.
|
|
64
|
+
* @template OptionsType - *(Optional)* The {@link Options:type | options type} for this type.
|
|
65
|
+
*/
|
|
66
|
+
export type TNonemptyArray<ElementType, OptionsType extends Options = NoOptions> = Options.DefinedOnly extends OptionsType ? Options.MaybeDefined extends OptionsType ? never : Options.Readonly extends OptionsType ? readonly [Exclude<ElementType, undefined>, ...Array<Exclude<ElementType, undefined>>] : [Exclude<ElementType, undefined>, ...Array<Exclude<ElementType, undefined>>] : Options.MaybeDefined extends OptionsType ? Options.Readonly extends OptionsType ? readonly [ElementType | undefined, ...Array<ElementType | undefined>] : [ElementType | undefined, ...Array<ElementType | undefined>] : Options.Readonly extends OptionsType ? readonly [ElementType, ...Array<ElementType>] : [ElementType, ...Array<ElementType>];
|
|
67
|
+
/**
|
|
68
|
+
* Options for the types defined in the {@link Array} module.
|
|
69
|
+
*
|
|
70
|
+
* The only invalid combinations are those that contain both
|
|
71
|
+
* {@link Options!DefinedOnly} *and* {@link Options!MaybeDefined}.
|
|
72
|
+
*/
|
|
73
|
+
export type Options = TOptions<Options.Readonly | Options.DefinedOnly | Options.MaybeDefined>;
|
|
74
|
+
export declare namespace Options {
|
|
75
|
+
/**
|
|
76
|
+
* Specifies that the given array type in the `@sorrell/utilities` `Array` module
|
|
77
|
+
* should use `ReadonlyArray` internally.
|
|
78
|
+
*/
|
|
79
|
+
type Readonly = typeof ReadonlyOption;
|
|
80
|
+
/** Specifies that `undefined` must extend the given `ElementType`. */
|
|
81
|
+
type MaybeDefined = typeof MaybeDefinedOption;
|
|
82
|
+
/** Specifies that the given `ElementType` must *not* include `undefined`. */
|
|
83
|
+
type DefinedOnly = typeof DefinedOnlyOption;
|
|
84
|
+
type None = NoOptions;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The type returned by {@link FilterDefined}.
|
|
88
|
+
*
|
|
89
|
+
* @template ElementType - The type of the elements in the array.
|
|
90
|
+
*/
|
|
91
|
+
export type FilteredArray<ElementType> = TArray<Exclude<ElementType, undefined>>;
|
|
92
|
+
//# sourceMappingURL=Array.Types.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Array.Types.d.mts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Array/Array.Types.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,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