@osmo.inc/cli 0.1.15
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/DEPLOY.md +87 -0
- package/README.md +243 -0
- package/RELEASE.md +164 -0
- package/SETUP.md +60 -0
- package/THIRD_PARTY_NOTICES.md +18 -0
- package/bin/osmo.mjs +12 -0
- package/dist/osmo.js +7817 -0
- package/node_modules/@esbuild/darwin-arm64/README.md +3 -0
- package/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
- package/node_modules/@esbuild/darwin-arm64/package.json +20 -0
- package/node_modules/esbuild/LICENSE.md +21 -0
- package/node_modules/esbuild/README.md +3 -0
- package/node_modules/esbuild/bin/esbuild +223 -0
- package/node_modules/esbuild/install.js +289 -0
- package/node_modules/esbuild/lib/main.d.ts +716 -0
- package/node_modules/esbuild/lib/main.js +2532 -0
- package/node_modules/esbuild/package.json +49 -0
- package/node_modules/fflate/LICENSE +21 -0
- package/node_modules/fflate/esm/index.mjs +2710 -0
- package/node_modules/fflate/package.json +128 -0
- package/node_modules/typescript/LICENSE.txt +55 -0
- package/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/node_modules/typescript/lib/lib.d.ts +22 -0
- package/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
- package/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
- package/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
- package/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
- package/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
- package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
- package/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
- package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
- package/node_modules/typescript/lib/typescript.js +382 -0
- package/node_modules/typescript/package.json +57 -0
- package/package.json +54 -0
- package/release.json +136 -0
- package/runtime/apps/native/tools/compile.mjs +217 -0
- package/runtime/packages/scene/scripts/validate-strict.mjs +246 -0
- package/runtime/packages/scene/src/clip.d.mts +14 -0
- package/runtime/packages/scene/src/clip.mjs +15 -0
- package/runtime/packages/scene/src/color-value.d.mts +5 -0
- package/runtime/packages/scene/src/color-value.mjs +19 -0
- package/runtime/packages/scene/src/color.ts +1 -0
- package/runtime/packages/scene/src/effects.ts +213 -0
- package/runtime/packages/scene/src/elements.ts +491 -0
- package/runtime/packages/scene/src/evaluate.ts +919 -0
- package/runtime/packages/scene/src/index.ts +69 -0
- package/runtime/packages/scene/src/jsx-runtime.ts +73 -0
- package/runtime/packages/scene/src/knob-schema.ts +115 -0
- package/runtime/packages/scene/src/knobs.ts +118 -0
- package/runtime/packages/scene/src/mask.d.mts +6 -0
- package/runtime/packages/scene/src/mask.mjs +17 -0
- package/runtime/packages/scene/src/metadata.d.mts +23 -0
- package/runtime/packages/scene/src/metadata.mjs +44 -0
- package/runtime/packages/scene/src/motion-sampling.d.mts +2 -0
- package/runtime/packages/scene/src/motion-sampling.mjs +50 -0
- package/runtime/packages/scene/src/motion.ts +121 -0
- package/runtime/packages/scene/src/shader.ts +57 -0
- package/src/resource-examples/example-image/landscape.svg +7 -0
- package/src/resource-examples/example-image/resource.json +8 -0
- package/src/resource-examples/example-model/gem.glb +0 -0
- package/src/resource-examples/example-model/preview.svg +1 -0
- package/src/resource-examples/example-model/resource.json +7 -0
- package/src/resource-examples/example-scene/resource.json +1 -0
- package/src/resource-examples/example-scene/scene.tsx +8 -0
- package/src/resource-examples/example-shader/effect.wgsl +7 -0
- package/src/resource-examples/example-shader/preview.svg +1 -0
- package/src/resource-examples/example-shader/resource.json +27 -0
- package/src/resource-examples/example-shader/tint.wgsl +7 -0
- package/src/resource-examples/example-video/ambient.mp4 +0 -0
- package/src/resource-examples/example-video/resource.json +9 -0
- package/src/starter/scene.tsx +20 -0
- package/studio/index.html +2 -0
- package/studio/public/check-circle-filled.svg +3 -0
- package/studio/public/comment-cursor/active-outer.svg +3 -0
- package/studio/public/comment-cursor/default.svg +6 -0
- package/studio/public/osmo-studio-logo.svg +12 -0
- package/studio/public/pencil-simple.svg +5 -0
- package/studio/src/active-outer-TVYUEURE.svg +3 -0
- package/studio/src/app.css +4 -0
- package/studio/src/app.js +705 -0
- package/studio/src/default-6CTRH4V5.svg +6 -0
- package/studio/src/engine_bg.wasm +0 -0
- package/studio/src/inter-cyrillic-ext-wght-normal-IYF56FF6.woff2 +0 -0
- package/studio/src/inter-cyrillic-wght-normal-JEOLYBOO.woff2 +0 -0
- package/studio/src/inter-greek-ext-wght-normal-EOVOK2B5.woff2 +0 -0
- package/studio/src/inter-greek-wght-normal-IRE366VL.woff2 +0 -0
- package/studio/src/inter-latin-ext-wght-normal-HA22NDSG.woff2 +0 -0
- package/studio/src/inter-latin-wght-normal-NRMW37G5.woff2 +0 -0
- package/studio/src/inter-vietnamese-wght-normal-CE5GGD3W.woff2 +0 -0
- package/studio/src/osmo-studio-logo-D5R2V77B.svg +12 -0
- package/third-party/cargo/adler2@2.0.1/Cargo.toml +91 -0
- package/third-party/cargo/adler2@2.0.1/LICENSE-0BSD +12 -0
- package/third-party/cargo/adler2@2.0.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/adler2@2.0.1/LICENSE-MIT +23 -0
- package/third-party/cargo/allocator-api2@0.2.21/Cargo.toml +48 -0
- package/third-party/cargo/allocator-api2@0.2.21/LICENSE-APACHE +176 -0
- package/third-party/cargo/allocator-api2@0.2.21/LICENSE-MIT +23 -0
- package/third-party/cargo/arrayref@0.3.9/Cargo.toml +23 -0
- package/third-party/cargo/arrayref@0.3.9/LICENSE +26 -0
- package/third-party/cargo/arrayvec@0.7.8/Cargo.toml +112 -0
- package/third-party/cargo/arrayvec@0.7.8/LICENSE-APACHE +201 -0
- package/third-party/cargo/arrayvec@0.7.8/LICENSE-MIT +25 -0
- package/third-party/cargo/ascii@1.1.0/Cargo.toml +41 -0
- package/third-party/cargo/ascii@1.1.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/ascii@1.1.0/LICENSE-MIT +22 -0
- package/third-party/cargo/ash@0.38.0+1.3.281/Cargo.toml +66 -0
- package/third-party/cargo/ash@0.38.0+1.3.281/LICENSE-APACHE +67 -0
- package/third-party/cargo/ash@0.38.0+1.3.281/LICENSE-MIT +25 -0
- package/third-party/cargo/autocfg@1.5.1/Cargo.toml +75 -0
- package/third-party/cargo/autocfg@1.5.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/autocfg@1.5.1/LICENSE-MIT +25 -0
- package/third-party/cargo/base64@0.13.1/Cargo.toml +53 -0
- package/third-party/cargo/base64@0.13.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/base64@0.13.1/LICENSE-MIT +21 -0
- package/third-party/cargo/base64@0.22.1/Cargo.toml +85 -0
- package/third-party/cargo/base64@0.22.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/base64@0.22.1/LICENSE-MIT +21 -0
- package/third-party/cargo/bit-set@0.10.0/Cargo.toml +108 -0
- package/third-party/cargo/bit-set@0.10.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/bit-set@0.10.0/LICENSE-MIT +25 -0
- package/third-party/cargo/bit-vec@0.9.1/Cargo.toml +94 -0
- package/third-party/cargo/bit-vec@0.9.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/bit-vec@0.9.1/LICENSE-MIT +25 -0
- package/third-party/cargo/bitflags@2.13.0/Cargo.toml +120 -0
- package/third-party/cargo/bitflags@2.13.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/bitflags@2.13.0/LICENSE-MIT +25 -0
- package/third-party/cargo/block2@0.6.2/Cargo.toml +115 -0
- package/third-party/cargo/block2@0.6.2/MIT-terms.txt +22 -0
- package/third-party/cargo/block2@0.6.2/madsmtm-objc2-b4167b582b2f-LICENSE.md +34 -0
- package/third-party/cargo/bumpalo@3.20.3/Cargo.toml +99 -0
- package/third-party/cargo/bumpalo@3.20.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/bumpalo@3.20.3/LICENSE-MIT +25 -0
- package/third-party/cargo/bytemuck@1.25.1/Cargo.toml +153 -0
- package/third-party/cargo/bytemuck@1.25.1/LICENSE-APACHE +61 -0
- package/third-party/cargo/bytemuck@1.25.1/LICENSE-MIT +9 -0
- package/third-party/cargo/bytemuck@1.25.1/LICENSE-ZLIB +11 -0
- package/third-party/cargo/bytemuck_derive@1.11.0/Cargo.toml +60 -0
- package/third-party/cargo/bytemuck_derive@1.11.0/LICENSE-APACHE +61 -0
- package/third-party/cargo/bytemuck_derive@1.11.0/LICENSE-MIT +9 -0
- package/third-party/cargo/bytemuck_derive@1.11.0/LICENSE-ZLIB +11 -0
- package/third-party/cargo/byteorder-lite@0.1.0/Cargo.toml +57 -0
- package/third-party/cargo/byteorder-lite@0.1.0/LICENSE-MIT +21 -0
- package/third-party/cargo/byteorder-lite@0.1.0/UNLICENSE +24 -0
- package/third-party/cargo/byteorder@1.5.0/COPYING +3 -0
- package/third-party/cargo/byteorder@1.5.0/Cargo.toml +54 -0
- package/third-party/cargo/byteorder@1.5.0/LICENSE-MIT +21 -0
- package/third-party/cargo/byteorder@1.5.0/UNLICENSE +24 -0
- package/third-party/cargo/cfg-if@1.0.4/Cargo.toml +47 -0
- package/third-party/cargo/cfg-if@1.0.4/LICENSE-APACHE +201 -0
- package/third-party/cargo/cfg-if@1.0.4/LICENSE-MIT +25 -0
- package/third-party/cargo/cfg_aliases@0.2.1/Cargo.toml +43 -0
- package/third-party/cargo/cfg_aliases@0.2.1/LICENSE +9 -0
- package/third-party/cargo/chunked_transfer@1.5.0/Cargo.toml +27 -0
- package/third-party/cargo/chunked_transfer@1.5.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/chunked_transfer@1.5.0/LICENSE-MIT +22 -0
- package/third-party/cargo/codespan-reporting@0.13.1/Cargo.toml +115 -0
- package/third-party/cargo/codespan-reporting@0.13.1/LICENSE +201 -0
- package/third-party/cargo/color_quant@1.1.0/Cargo.toml +20 -0
- package/third-party/cargo/color_quant@1.1.0/LICENSE +21 -0
- package/third-party/cargo/console_error_panic_hook@0.1.7/Cargo.toml +27 -0
- package/third-party/cargo/console_error_panic_hook@0.1.7/LICENSE-APACHE +201 -0
- package/third-party/cargo/console_error_panic_hook@0.1.7/LICENSE-MIT +25 -0
- package/third-party/cargo/core_maths@0.1.1/Cargo.toml +37 -0
- package/third-party/cargo/core_maths@0.1.1/LICENSE +21 -0
- package/third-party/cargo/cosmic-text@0.19.0/Cargo.toml +214 -0
- package/third-party/cargo/cosmic-text@0.19.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/cosmic-text@0.19.0/LICENSE-MIT +21 -0
- package/third-party/cargo/crc32fast@1.5.0/Cargo.toml +68 -0
- package/third-party/cargo/crc32fast@1.5.0/LICENSE-APACHE +202 -0
- package/third-party/cargo/crc32fast@1.5.0/LICENSE-MIT +21 -0
- package/third-party/cargo/data-url@0.3.2/Cargo.toml +63 -0
- package/third-party/cargo/data-url@0.3.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/data-url@0.3.2/LICENSE-MIT +25 -0
- package/third-party/cargo/dispatch2@0.3.1/Cargo.toml +122 -0
- package/third-party/cargo/dispatch2@0.3.1/MIT-terms.txt +22 -0
- package/third-party/cargo/dispatch2@0.3.1/madsmtm-objc2-8852b424193c-LICENSE.md +34 -0
- package/third-party/cargo/dlib@0.5.3/Cargo.toml +43 -0
- package/third-party/cargo/dlib@0.5.3/LICENSE.txt +19 -0
- package/third-party/cargo/document-features@0.2.12/Cargo.toml +51 -0
- package/third-party/cargo/document-features@0.2.12/LICENSE-APACHE +73 -0
- package/third-party/cargo/document-features@0.2.12/LICENSE-MIT +19 -0
- package/third-party/cargo/equivalent@1.0.2/Cargo.toml +37 -0
- package/third-party/cargo/equivalent@1.0.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/equivalent@1.0.2/LICENSE-MIT +25 -0
- package/third-party/cargo/errno@0.3.14/Cargo.toml +67 -0
- package/third-party/cargo/errno@0.3.14/LICENSE-APACHE +201 -0
- package/third-party/cargo/errno@0.3.14/LICENSE-MIT +25 -0
- package/third-party/cargo/etagere@0.3.0/Cargo.toml +57 -0
- package/third-party/cargo/etagere@0.3.0/LICENSE-APACHE +13 -0
- package/third-party/cargo/etagere@0.3.0/LICENSE-MIT +20 -0
- package/third-party/cargo/euclid@0.22.14/COPYRIGHT +5 -0
- package/third-party/cargo/euclid@0.22.14/Cargo.toml +66 -0
- package/third-party/cargo/euclid@0.22.14/LICENSE-APACHE +201 -0
- package/third-party/cargo/euclid@0.22.14/LICENSE-MIT +25 -0
- package/third-party/cargo/fastrand@2.5.0/Cargo.toml +89 -0
- package/third-party/cargo/fastrand@2.5.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/fastrand@2.5.0/LICENSE-MIT +23 -0
- package/third-party/cargo/fdeflate@0.3.7/Cargo.toml +55 -0
- package/third-party/cargo/fdeflate@0.3.7/LICENSE-APACHE +177 -0
- package/third-party/cargo/fdeflate@0.3.7/LICENSE-MIT +25 -0
- package/third-party/cargo/flate2@1.1.9/Cargo.toml +274 -0
- package/third-party/cargo/flate2@1.1.9/LICENSE-APACHE +201 -0
- package/third-party/cargo/flate2@1.1.9/LICENSE-MIT +25 -0
- package/third-party/cargo/float-cmp@0.9.0/Cargo.toml +39 -0
- package/third-party/cargo/float-cmp@0.9.0/LICENSE +19 -0
- package/third-party/cargo/float_next_after@1.0.0/Cargo.toml +43 -0
- package/third-party/cargo/float_next_after@1.0.0/LICENSE +23 -0
- package/third-party/cargo/foldhash@0.2.0/Cargo.toml +80 -0
- package/third-party/cargo/foldhash@0.2.0/LICENSE +19 -0
- package/third-party/cargo/font-types@0.11.3/Cargo.toml +55 -0
- package/third-party/cargo/font-types@0.11.3/LICENSE-APACHE +67 -0
- package/third-party/cargo/font-types@0.11.3/LICENSE-MIT +25 -0
- package/third-party/cargo/fontdb@0.23.0/Cargo.toml +83 -0
- package/third-party/cargo/fontdb@0.23.0/LICENSE +21 -0
- package/third-party/cargo/futures-core@0.3.32/Cargo.toml +66 -0
- package/third-party/cargo/futures-core@0.3.32/LICENSE-APACHE +202 -0
- package/third-party/cargo/futures-core@0.3.32/LICENSE-MIT +26 -0
- package/third-party/cargo/futures-task@0.3.32/Cargo.toml +58 -0
- package/third-party/cargo/futures-task@0.3.32/LICENSE-APACHE +202 -0
- package/third-party/cargo/futures-task@0.3.32/LICENSE-MIT +26 -0
- package/third-party/cargo/futures-util@0.3.32/Cargo.toml +181 -0
- package/third-party/cargo/futures-util@0.3.32/LICENSE-APACHE +202 -0
- package/third-party/cargo/futures-util@0.3.32/LICENSE-MIT +26 -0
- package/third-party/cargo/getrandom@0.4.3/Cargo.toml +165 -0
- package/third-party/cargo/getrandom@0.4.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/getrandom@0.4.3/LICENSE-MIT +26 -0
- package/third-party/cargo/gif@0.14.2/Cargo.toml +84 -0
- package/third-party/cargo/gif@0.14.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/gif@0.14.2/LICENSE-MIT +21 -0
- package/third-party/cargo/glam@0.33.2/Cargo.toml +354 -0
- package/third-party/cargo/glam@0.33.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/glam@0.33.2/LICENSE-MIT +23 -0
- package/third-party/cargo/glow@0.17.0/Cargo.toml +122 -0
- package/third-party/cargo/glow@0.17.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/glow@0.17.0/LICENSE-MIT +23 -0
- package/third-party/cargo/glow@0.17.0/LICENSE-ZLIB +15 -0
- package/third-party/cargo/gltf-derive@1.4.1/Cargo.toml +34 -0
- package/third-party/cargo/gltf-derive@1.4.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/gltf-derive@1.4.1/LICENSE-MIT +26 -0
- package/third-party/cargo/gltf-json@1.4.1/Cargo.toml +50 -0
- package/third-party/cargo/gltf-json@1.4.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/gltf-json@1.4.1/LICENSE-MIT +26 -0
- package/third-party/cargo/gltf@1.4.1/Cargo.toml +122 -0
- package/third-party/cargo/gltf@1.4.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/gltf@1.4.1/LICENSE-MIT +26 -0
- package/third-party/cargo/glyphon@0.12.0/Cargo.toml +35 -0
- package/third-party/cargo/glyphon@0.12.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/glyphon@0.12.0/LICENSE-MIT +23 -0
- package/third-party/cargo/glyphon@0.12.0/LICENSE-ZLIB +15 -0
- package/third-party/cargo/gpu-allocator@0.28.0/Cargo.toml +180 -0
- package/third-party/cargo/gpu-allocator@0.28.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/gpu-allocator@0.28.0/LICENSE-MIT +7 -0
- package/third-party/cargo/grid@1.0.1/Cargo.toml +77 -0
- package/third-party/cargo/grid@1.0.1/LICENSE +21 -0
- package/third-party/cargo/half@2.7.1/Cargo.toml +137 -0
- package/third-party/cargo/half@2.7.1/LICENSE-APACHE +176 -0
- package/third-party/cargo/half@2.7.1/LICENSE-MIT +19 -0
- package/third-party/cargo/harfrust@0.5.2/Cargo.toml +115 -0
- package/third-party/cargo/harfrust@0.5.2/harfbuzz-harfrust-efdae3142ab7-LICENSE +22 -0
- package/third-party/cargo/hashbrown@0.16.1/Cargo.toml +180 -0
- package/third-party/cargo/hashbrown@0.16.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/hashbrown@0.16.1/LICENSE-MIT +25 -0
- package/third-party/cargo/hashbrown@0.17.1/Cargo.toml +201 -0
- package/third-party/cargo/hashbrown@0.17.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/hashbrown@0.17.1/LICENSE-MIT +25 -0
- package/third-party/cargo/httpdate@1.0.3/Cargo.toml +35 -0
- package/third-party/cargo/httpdate@1.0.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/httpdate@1.0.3/LICENSE-MIT +19 -0
- package/third-party/cargo/image-webp@0.2.4/Cargo.toml +63 -0
- package/third-party/cargo/image-webp@0.2.4/LICENSE-APACHE +177 -0
- package/third-party/cargo/image-webp@0.2.4/LICENSE-MIT +25 -0
- package/third-party/cargo/image@0.25.10/Cargo.toml +248 -0
- package/third-party/cargo/image@0.25.10/LICENSE-APACHE +177 -0
- package/third-party/cargo/image@0.25.10/LICENSE-MIT +25 -0
- package/third-party/cargo/imagesize@0.14.0/Cargo.toml +104 -0
- package/third-party/cargo/imagesize@0.14.0/LICENSE +21 -0
- package/third-party/cargo/indexmap@2.14.0/Cargo.toml +167 -0
- package/third-party/cargo/indexmap@2.14.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/indexmap@2.14.0/LICENSE-MIT +25 -0
- package/third-party/cargo/inflections@1.1.1/Cargo.toml +21 -0
- package/third-party/cargo/inflections@1.1.1/LICENSE +20 -0
- package/third-party/cargo/itoa@1.0.18/Cargo.toml +66 -0
- package/third-party/cargo/itoa@1.0.18/LICENSE-APACHE +176 -0
- package/third-party/cargo/itoa@1.0.18/LICENSE-MIT +23 -0
- package/third-party/cargo/js-sys@0.3.103/Cargo.toml +98 -0
- package/third-party/cargo/js-sys@0.3.103/LICENSE-APACHE +201 -0
- package/third-party/cargo/js-sys@0.3.103/LICENSE-MIT +25 -0
- package/third-party/cargo/khronos-egl@6.0.0/Cargo.toml +82 -0
- package/third-party/cargo/khronos-egl@6.0.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/khronos-egl@6.0.0/LICENSE-MIT +23 -0
- package/third-party/cargo/kurbo@0.13.1/Cargo.toml +230 -0
- package/third-party/cargo/kurbo@0.13.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/kurbo@0.13.1/LICENSE-MIT +25 -0
- package/third-party/cargo/lazy_static@1.5.0/Cargo.toml +46 -0
- package/third-party/cargo/lazy_static@1.5.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/lazy_static@1.5.0/LICENSE-MIT +25 -0
- package/third-party/cargo/libc@0.2.186/Cargo.toml +229 -0
- package/third-party/cargo/libc@0.2.186/LICENSE-APACHE +176 -0
- package/third-party/cargo/libc@0.2.186/LICENSE-MIT +25 -0
- package/third-party/cargo/libloading@0.8.9/Cargo.toml +90 -0
- package/third-party/cargo/libloading@0.8.9/LICENSE +12 -0
- package/third-party/cargo/libm@0.2.16/Cargo.toml +61 -0
- package/third-party/cargo/libm@0.2.16/LICENSE.txt +258 -0
- package/third-party/cargo/linebender_resource_handle@0.1.1/Cargo.toml +107 -0
- package/third-party/cargo/linebender_resource_handle@0.1.1/LICENSE-APACHE +176 -0
- package/third-party/cargo/linebender_resource_handle@0.1.1/LICENSE-MIT +19 -0
- package/third-party/cargo/litrs@1.0.0/Cargo.toml +63 -0
- package/third-party/cargo/litrs@1.0.0/LICENSE-APACHE +176 -0
- package/third-party/cargo/litrs@1.0.0/LICENSE-MIT +25 -0
- package/third-party/cargo/lock_api@0.4.14/Cargo.toml +68 -0
- package/third-party/cargo/lock_api@0.4.14/LICENSE-APACHE +201 -0
- package/third-party/cargo/lock_api@0.4.14/LICENSE-MIT +25 -0
- package/third-party/cargo/log@0.4.33/Cargo.toml +152 -0
- package/third-party/cargo/log@0.4.33/LICENSE-APACHE +201 -0
- package/third-party/cargo/log@0.4.33/LICENSE-MIT +25 -0
- package/third-party/cargo/lru@0.16.4/Cargo.toml +47 -0
- package/third-party/cargo/lru@0.16.4/LICENSE +21 -0
- package/third-party/cargo/lyon_geom@1.0.19/Cargo.toml +69 -0
- package/third-party/cargo/lyon_geom@1.0.19/nical-lyon-56219c95c658-LICENSE-APACHE +13 -0
- package/third-party/cargo/lyon_geom@1.0.19/nical-lyon-56219c95c658-LICENSE-MIT +20 -0
- package/third-party/cargo/lyon_path@1.0.19/Cargo.toml +58 -0
- package/third-party/cargo/lyon_path@1.0.19/nical-lyon-56219c95c658-LICENSE-APACHE +13 -0
- package/third-party/cargo/lyon_path@1.0.19/nical-lyon-56219c95c658-LICENSE-MIT +20 -0
- package/third-party/cargo/lyon_tessellation@1.0.20/Cargo.toml +71 -0
- package/third-party/cargo/lyon_tessellation@1.0.20/nical-lyon-7fa75ea8eea3-LICENSE-APACHE +13 -0
- package/third-party/cargo/lyon_tessellation@1.0.20/nical-lyon-7fa75ea8eea3-LICENSE-MIT +20 -0
- package/third-party/cargo/memchr@2.8.3/COPYING +3 -0
- package/third-party/cargo/memchr@2.8.3/Cargo.toml +89 -0
- package/third-party/cargo/memchr@2.8.3/LICENSE-MIT +21 -0
- package/third-party/cargo/memchr@2.8.3/UNLICENSE +24 -0
- package/third-party/cargo/memmap2@0.9.11/Cargo.toml +59 -0
- package/third-party/cargo/memmap2@0.9.11/LICENSE-APACHE +201 -0
- package/third-party/cargo/memmap2@0.9.11/LICENSE-MIT +26 -0
- package/third-party/cargo/miniz_oxide@0.8.9/Cargo.toml +91 -0
- package/third-party/cargo/miniz_oxide@0.8.9/LICENSE +25 -0
- package/third-party/cargo/miniz_oxide@0.8.9/LICENSE-APACHE.md +177 -0
- package/third-party/cargo/miniz_oxide@0.8.9/LICENSE-MIT.md +24 -0
- package/third-party/cargo/miniz_oxide@0.8.9/LICENSE-ZLIB.md +14 -0
- package/third-party/cargo/moxcms@0.8.1/Cargo.toml +113 -0
- package/third-party/cargo/moxcms@0.8.1/LICENSE-APACHE.md +201 -0
- package/third-party/cargo/moxcms@0.8.1/LICENSE.md +26 -0
- package/third-party/cargo/naga-types@30.0.0/Cargo.toml +94 -0
- package/third-party/cargo/naga-types@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/naga-types@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/naga@30.0.0/Cargo.toml +246 -0
- package/third-party/cargo/naga@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/naga@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/num-traits@0.2.19/Cargo.toml +54 -0
- package/third-party/cargo/num-traits@0.2.19/LICENSE-APACHE +201 -0
- package/third-party/cargo/num-traits@0.2.19/LICENSE-MIT +25 -0
- package/third-party/cargo/objc2-core-foundation@0.3.2/Cargo.toml +221 -0
- package/third-party/cargo/objc2-core-foundation@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-core-foundation@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-core-graphics@0.3.2/Cargo.toml +331 -0
- package/third-party/cargo/objc2-core-graphics@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-core-graphics@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-encode@4.1.0/Cargo.toml +81 -0
- package/third-party/cargo/objc2-encode@4.1.0/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-encode@4.1.0/madsmtm-objc2-8d214f547736-LICENSE.md +34 -0
- package/third-party/cargo/objc2-foundation@0.3.2/Cargo.toml +529 -0
- package/third-party/cargo/objc2-foundation@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-foundation@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-io-surface@0.3.2/Cargo.toml +139 -0
- package/third-party/cargo/objc2-io-surface@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-io-surface@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-metal@0.3.2/Cargo.toml +601 -0
- package/third-party/cargo/objc2-metal@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-metal@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-quartz-core@0.3.2/Cargo.toml +302 -0
- package/third-party/cargo/objc2-quartz-core@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-quartz-core@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2@0.6.4/Cargo.toml +232 -0
- package/third-party/cargo/objc2@0.6.4/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2@0.6.4/madsmtm-objc2-8852b424193c-LICENSE.md +34 -0
- package/third-party/cargo/once_cell@1.21.4/Cargo.toml +119 -0
- package/third-party/cargo/once_cell@1.21.4/LICENSE-APACHE +201 -0
- package/third-party/cargo/once_cell@1.21.4/LICENSE-MIT +23 -0
- package/third-party/cargo/ordered-float@5.3.0/Cargo.toml +162 -0
- package/third-party/cargo/ordered-float@5.3.0/LICENSE-MIT +25 -0
- package/third-party/cargo/parking_lot@0.12.5/Cargo.toml +87 -0
- package/third-party/cargo/parking_lot@0.12.5/LICENSE-APACHE +201 -0
- package/third-party/cargo/parking_lot@0.12.5/LICENSE-MIT +25 -0
- package/third-party/cargo/parking_lot_core@0.9.12/Cargo.toml +72 -0
- package/third-party/cargo/parking_lot_core@0.9.12/LICENSE-APACHE +201 -0
- package/third-party/cargo/parking_lot_core@0.9.12/LICENSE-MIT +25 -0
- package/third-party/cargo/pico-args@0.5.0/Cargo.toml +32 -0
- package/third-party/cargo/pico-args@0.5.0/LICENSE +20 -0
- package/third-party/cargo/pin-project-lite@0.2.17/Cargo.toml +198 -0
- package/third-party/cargo/pin-project-lite@0.2.17/LICENSE-APACHE +177 -0
- package/third-party/cargo/pin-project-lite@0.2.17/LICENSE-MIT +23 -0
- package/third-party/cargo/pkg-config@0.3.33/Cargo.toml +43 -0
- package/third-party/cargo/pkg-config@0.3.33/LICENSE-APACHE +201 -0
- package/third-party/cargo/pkg-config@0.3.33/LICENSE-MIT +25 -0
- package/third-party/cargo/png@0.18.1/Cargo.toml +130 -0
- package/third-party/cargo/png@0.18.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/png@0.18.1/LICENSE-MIT +25 -0
- package/third-party/cargo/pollster@0.4.0/Cargo.toml +53 -0
- package/third-party/cargo/pollster@0.4.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/pollster@0.4.0/LICENSE-MIT +25 -0
- package/third-party/cargo/polycool@0.4.0/Cargo.toml +83 -0
- package/third-party/cargo/polycool@0.4.0/LICENSE-APACHE +202 -0
- package/third-party/cargo/polycool@0.4.0/LICENSE-MIT +25 -0
- package/third-party/cargo/pp-rs@0.2.1/Cargo.toml +23 -0
- package/third-party/cargo/pp-rs@0.2.1/LICENSE +29 -0
- package/third-party/cargo/presser@0.3.1/Cargo.toml +58 -0
- package/third-party/cargo/presser@0.3.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/presser@0.3.1/LICENSE-MIT +25 -0
- package/third-party/cargo/proc-macro2@1.0.106/Cargo.toml +105 -0
- package/third-party/cargo/proc-macro2@1.0.106/LICENSE-APACHE +176 -0
- package/third-party/cargo/proc-macro2@1.0.106/LICENSE-MIT +23 -0
- package/third-party/cargo/profiling@1.0.18/Cargo.toml +96 -0
- package/third-party/cargo/profiling@1.0.18/aclysma-profiling-8271551172eb-LICENSE-APACHE +201 -0
- package/third-party/cargo/profiling@1.0.18/aclysma-profiling-8271551172eb-LICENSE-MIT +21 -0
- package/third-party/cargo/pxfm@0.1.30/Cargo.toml +53 -0
- package/third-party/cargo/pxfm@0.1.30/LICENSE-APACHE.md +201 -0
- package/third-party/cargo/pxfm@0.1.30/LICENSE.md +26 -0
- package/third-party/cargo/quick-error@2.0.1/Cargo.toml +24 -0
- package/third-party/cargo/quick-error@2.0.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/quick-error@2.0.1/LICENSE-MIT +19 -0
- package/third-party/cargo/quote@1.0.46/Cargo.toml +70 -0
- package/third-party/cargo/quote@1.0.46/LICENSE-APACHE +176 -0
- package/third-party/cargo/quote@1.0.46/LICENSE-MIT +23 -0
- package/third-party/cargo/rangemap@1.7.1/Cargo.toml +91 -0
- package/third-party/cargo/rangemap@1.7.1/LICENSE-APACHE +191 -0
- package/third-party/cargo/rangemap@1.7.1/LICENSE-MIT +7 -0
- package/third-party/cargo/raw-window-handle@0.6.2/Cargo.toml +56 -0
- package/third-party/cargo/raw-window-handle@0.6.2/LICENSE-APACHE.md +177 -0
- package/third-party/cargo/raw-window-handle@0.6.2/LICENSE-MIT.md +21 -0
- package/third-party/cargo/raw-window-handle@0.6.2/LICENSE-ZLIB.md +11 -0
- package/third-party/cargo/raw-window-metal@1.1.0/Cargo.toml +111 -0
- package/third-party/cargo/raw-window-metal@1.1.0/LICENSE-APACHE +202 -0
- package/third-party/cargo/raw-window-metal@1.1.0/LICENSE-MIT +17 -0
- package/third-party/cargo/read-fonts@0.37.0/Cargo.toml +95 -0
- package/third-party/cargo/read-fonts@0.37.0/LICENSE-APACHE +67 -0
- package/third-party/cargo/read-fonts@0.37.0/LICENSE-MIT +25 -0
- package/third-party/cargo/read-fonts@0.39.2/Cargo.toml +96 -0
- package/third-party/cargo/read-fonts@0.39.2/LICENSE-APACHE +67 -0
- package/third-party/cargo/read-fonts@0.39.2/LICENSE-MIT +25 -0
- package/third-party/cargo/renderdoc-sys@1.1.0/Cargo.toml +39 -0
- package/third-party/cargo/renderdoc-sys@1.1.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/renderdoc-sys@1.1.0/LICENSE-MIT +25 -0
- package/third-party/cargo/resvg@0.47.0/Cargo.toml +112 -0
- package/third-party/cargo/resvg@0.47.0/LICENSE-APACHE +176 -0
- package/third-party/cargo/resvg@0.47.0/LICENSE-MIT +25 -0
- package/third-party/cargo/rgb@0.8.53/Cargo.toml +110 -0
- package/third-party/cargo/rgb@0.8.53/LICENSE +21 -0
- package/third-party/cargo/roxmltree@0.21.1/Cargo.toml +75 -0
- package/third-party/cargo/roxmltree@0.21.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/roxmltree@0.21.1/LICENSE-MIT +21 -0
- package/third-party/cargo/rustc-hash@1.1.0/Cargo.toml +25 -0
- package/third-party/cargo/rustc-hash@1.1.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/rustc-hash@1.1.0/LICENSE-MIT +23 -0
- package/third-party/cargo/rustc-hash@2.1.3/Cargo.toml +50 -0
- package/third-party/cargo/rustc-hash@2.1.3/LICENSE-APACHE +176 -0
- package/third-party/cargo/rustc-hash@2.1.3/LICENSE-MIT +23 -0
- package/third-party/cargo/rustix@1.1.4/COPYRIGHT +29 -0
- package/third-party/cargo/rustix@1.1.4/Cargo.toml +292 -0
- package/third-party/cargo/rustix@1.1.4/LICENSE-APACHE +201 -0
- package/third-party/cargo/rustix@1.1.4/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/third-party/cargo/rustix@1.1.4/LICENSE-MIT +23 -0
- package/third-party/cargo/rustversion@1.0.23/Cargo.toml +69 -0
- package/third-party/cargo/rustversion@1.0.23/LICENSE-APACHE +176 -0
- package/third-party/cargo/rustversion@1.0.23/LICENSE-MIT +23 -0
- package/third-party/cargo/rustybuzz@0.20.1/Cargo.toml +110 -0
- package/third-party/cargo/rustybuzz@0.20.1/LICENSE +22 -0
- package/third-party/cargo/scopeguard@1.2.0/Cargo.toml +43 -0
- package/third-party/cargo/scopeguard@1.2.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/scopeguard@1.2.0/LICENSE-MIT +25 -0
- package/third-party/cargo/self_cell@1.2.2/Cargo.toml +33 -0
- package/third-party/cargo/self_cell@1.2.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/self_cell@1.2.2/LICENSE-GPLv2 +339 -0
- package/third-party/cargo/self_cell@1.3.0/Cargo.toml +33 -0
- package/third-party/cargo/self_cell@1.3.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/self_cell@1.3.0/LICENSE-GPLv2 +339 -0
- package/third-party/cargo/serde@1.0.228/Cargo.toml +84 -0
- package/third-party/cargo/serde@1.0.228/LICENSE-APACHE +176 -0
- package/third-party/cargo/serde@1.0.228/LICENSE-MIT +23 -0
- package/third-party/cargo/serde_core@1.0.228/Cargo.toml +87 -0
- package/third-party/cargo/serde_core@1.0.228/LICENSE-APACHE +176 -0
- package/third-party/cargo/serde_core@1.0.228/LICENSE-MIT +23 -0
- package/third-party/cargo/serde_derive@1.0.228/Cargo.toml +87 -0
- package/third-party/cargo/serde_derive@1.0.228/LICENSE-APACHE +176 -0
- package/third-party/cargo/serde_derive@1.0.228/LICENSE-MIT +23 -0
- package/third-party/cargo/serde_json@1.0.150/Cargo.toml +162 -0
- package/third-party/cargo/serde_json@1.0.150/LICENSE-APACHE +176 -0
- package/third-party/cargo/serde_json@1.0.150/LICENSE-MIT +23 -0
- package/third-party/cargo/simd-adler32@0.3.10/Cargo.toml +68 -0
- package/third-party/cargo/simd-adler32@0.3.10/LICENSE.md +21 -0
- package/third-party/cargo/simplecss@0.2.2/Cargo.toml +146 -0
- package/third-party/cargo/simplecss@0.2.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/simplecss@0.2.2/LICENSE-MIT +21 -0
- package/third-party/cargo/siphasher@1.0.3/COPYING +7 -0
- package/third-party/cargo/siphasher@1.0.3/Cargo.toml +64 -0
- package/third-party/cargo/skrifa@0.40.0/Cargo.toml +86 -0
- package/third-party/cargo/skrifa@0.40.0/LICENSE-APACHE +67 -0
- package/third-party/cargo/skrifa@0.40.0/LICENSE-MIT +25 -0
- package/third-party/cargo/skrifa@0.42.1/Cargo.toml +86 -0
- package/third-party/cargo/skrifa@0.42.1/LICENSE-APACHE +67 -0
- package/third-party/cargo/skrifa@0.42.1/LICENSE-MIT +25 -0
- package/third-party/cargo/slab@0.4.12/Cargo.toml +67 -0
- package/third-party/cargo/slab@0.4.12/LICENSE +25 -0
- package/third-party/cargo/slotmap@1.1.1/Cargo.toml +83 -0
- package/third-party/cargo/slotmap@1.1.1/LICENSE +19 -0
- package/third-party/cargo/smallvec@1.15.2/Cargo.toml +103 -0
- package/third-party/cargo/smallvec@1.15.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/smallvec@1.15.2/LICENSE-MIT +25 -0
- package/third-party/cargo/smol_str@0.3.6/Cargo.toml +155 -0
- package/third-party/cargo/smol_str@0.3.6/LICENSE-APACHE +201 -0
- package/third-party/cargo/smol_str@0.3.6/LICENSE-MIT +23 -0
- package/third-party/cargo/spirv@0.4.0+sdk-1.4.341.0/Cargo.toml +56 -0
- package/third-party/cargo/spirv@0.4.0+sdk-1.4.341.0/gfx-rs-rspirv-8afc3d0ac8e1-LICENSE +202 -0
- package/third-party/cargo/static_assertions@1.1.0/Cargo.toml +39 -0
- package/third-party/cargo/static_assertions@1.1.0/LICENSE-APACHE +202 -0
- package/third-party/cargo/static_assertions@1.1.0/LICENSE-MIT +21 -0
- package/third-party/cargo/strict-num@0.1.1/Cargo.toml +35 -0
- package/third-party/cargo/strict-num@0.1.1/LICENSE +19 -0
- package/third-party/cargo/svgtypes@0.16.1/Cargo.toml +57 -0
- package/third-party/cargo/svgtypes@0.16.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/svgtypes@0.16.1/LICENSE-MIT +20 -0
- package/third-party/cargo/swash@0.2.9/Cargo.toml +93 -0
- package/third-party/cargo/swash@0.2.9/LICENSE-APACHE +201 -0
- package/third-party/cargo/swash@0.2.9/LICENSE-MIT +25 -0
- package/third-party/cargo/syn@2.0.118/Cargo.toml +272 -0
- package/third-party/cargo/syn@2.0.118/LICENSE-APACHE +176 -0
- package/third-party/cargo/syn@2.0.118/LICENSE-MIT +23 -0
- package/third-party/cargo/sys-locale@0.3.2/Cargo.toml +73 -0
- package/third-party/cargo/sys-locale@0.3.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/sys-locale@0.3.2/LICENSE-MIT +21 -0
- package/third-party/cargo/taffy@0.12.1/Cargo.toml +171 -0
- package/third-party/cargo/taffy@0.12.1/DioxusLabs-taffy-1c9e37a0a1cf-LICENSE.md +25 -0
- package/third-party/cargo/tempfile@3.27.0/Cargo.toml +105 -0
- package/third-party/cargo/tempfile@3.27.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/tempfile@3.27.0/LICENSE-MIT +25 -0
- package/third-party/cargo/termcolor@1.4.1/COPYING +3 -0
- package/third-party/cargo/termcolor@1.4.1/Cargo.toml +40 -0
- package/third-party/cargo/termcolor@1.4.1/LICENSE-MIT +21 -0
- package/third-party/cargo/termcolor@1.4.1/UNLICENSE +24 -0
- package/third-party/cargo/thiserror-impl@2.0.18/Cargo.toml +52 -0
- package/third-party/cargo/thiserror-impl@2.0.18/LICENSE-APACHE +176 -0
- package/third-party/cargo/thiserror-impl@2.0.18/LICENSE-MIT +23 -0
- package/third-party/cargo/thiserror@2.0.18/Cargo.toml +119 -0
- package/third-party/cargo/thiserror@2.0.18/LICENSE-APACHE +176 -0
- package/third-party/cargo/thiserror@2.0.18/LICENSE-MIT +23 -0
- package/third-party/cargo/tiny-skia-path@0.12.0/Cargo.toml +58 -0
- package/third-party/cargo/tiny-skia-path@0.12.0/LICENSE +30 -0
- package/third-party/cargo/tiny-skia@0.12.0/Cargo.toml +116 -0
- package/third-party/cargo/tiny-skia@0.12.0/LICENSE +30 -0
- package/third-party/cargo/tiny_http@0.12.0/Cargo.toml +82 -0
- package/third-party/cargo/tiny_http@0.12.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/tiny_http@0.12.0/LICENSE-MIT +25 -0
- package/third-party/cargo/tinyvec@1.12.0/Cargo.toml +184 -0
- package/third-party/cargo/tinyvec@1.12.0/LICENSE-APACHE.md +202 -0
- package/third-party/cargo/tinyvec@1.12.0/LICENSE-MIT.md +5 -0
- package/third-party/cargo/tinyvec@1.12.0/LICENSE-ZLIB.md +11 -0
- package/third-party/cargo/tinyvec_macros@0.1.1/Cargo.toml +19 -0
- package/third-party/cargo/tinyvec_macros@0.1.1/LICENSE-APACHE.md +202 -0
- package/third-party/cargo/tinyvec_macros@0.1.1/LICENSE-MIT.md +21 -0
- package/third-party/cargo/tinyvec_macros@0.1.1/LICENSE-ZLIB.md +20 -0
- package/third-party/cargo/ttf-parser@0.25.1/Cargo.toml +101 -0
- package/third-party/cargo/ttf-parser@0.25.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/ttf-parser@0.25.1/LICENSE-MIT +20 -0
- package/third-party/cargo/unicode-bidi-mirroring@0.4.0/Cargo.toml +22 -0
- package/third-party/cargo/unicode-bidi-mirroring@0.4.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-bidi-mirroring@0.4.0/LICENSE-MIT +21 -0
- package/third-party/cargo/unicode-bidi@0.3.18/COPYRIGHT +8 -0
- package/third-party/cargo/unicode-bidi@0.3.18/Cargo.toml +90 -0
- package/third-party/cargo/unicode-bidi@0.3.18/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-bidi@0.3.18/LICENSE-MIT +25 -0
- package/third-party/cargo/unicode-ccc@0.4.0/Cargo.toml +22 -0
- package/third-party/cargo/unicode-ccc@0.4.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-ccc@0.4.0/LICENSE-MIT +21 -0
- package/third-party/cargo/unicode-ident@1.0.24/Cargo.toml +84 -0
- package/third-party/cargo/unicode-ident@1.0.24/LICENSE-APACHE +176 -0
- package/third-party/cargo/unicode-ident@1.0.24/LICENSE-MIT +23 -0
- package/third-party/cargo/unicode-ident@1.0.24/LICENSE-UNICODE +39 -0
- package/third-party/cargo/unicode-linebreak@0.1.5/Cargo.toml +32 -0
- package/third-party/cargo/unicode-linebreak@0.1.5/LICENSE +201 -0
- package/third-party/cargo/unicode-properties@0.1.4/COPYRIGHT +7 -0
- package/third-party/cargo/unicode-properties@0.1.4/Cargo.toml +65 -0
- package/third-party/cargo/unicode-properties@0.1.4/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-properties@0.1.4/LICENSE-MIT +25 -0
- package/third-party/cargo/unicode-script@0.5.8/Cargo.toml +63 -0
- package/third-party/cargo/unicode-script@0.5.8/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-script@0.5.8/LICENSE-MIT +27 -0
- package/third-party/cargo/unicode-segmentation@1.13.3/COPYRIGHT +7 -0
- package/third-party/cargo/unicode-segmentation@1.13.3/Cargo.toml +91 -0
- package/third-party/cargo/unicode-segmentation@1.13.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-segmentation@1.13.3/LICENSE-MIT +25 -0
- package/third-party/cargo/unicode-vo@0.1.0/Cargo.toml +22 -0
- package/third-party/cargo/unicode-vo@0.1.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-vo@0.1.0/LICENSE-MIT +21 -0
- package/third-party/cargo/unicode-width@0.2.2/COPYRIGHT +7 -0
- package/third-party/cargo/unicode-width@0.2.2/Cargo.toml +77 -0
- package/third-party/cargo/unicode-width@0.2.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-width@0.2.2/LICENSE-MIT +25 -0
- package/third-party/cargo/unicode-xid@0.2.6/COPYRIGHT +7 -0
- package/third-party/cargo/unicode-xid@0.2.6/Cargo.toml +65 -0
- package/third-party/cargo/unicode-xid@0.2.6/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-xid@0.2.6/LICENSE-MIT +25 -0
- package/third-party/cargo/urlencoding@2.1.3/Cargo.toml +41 -0
- package/third-party/cargo/urlencoding@2.1.3/LICENSE +20 -0
- package/third-party/cargo/usvg@0.47.0/Cargo.toml +138 -0
- package/third-party/cargo/usvg@0.47.0/LICENSE-APACHE +176 -0
- package/third-party/cargo/usvg@0.47.0/LICENSE-MIT +25 -0
- package/third-party/cargo/version_check@0.9.5/Cargo.toml +38 -0
- package/third-party/cargo/version_check@0.9.5/LICENSE-APACHE +201 -0
- package/third-party/cargo/version_check@0.9.5/LICENSE-MIT +19 -0
- package/third-party/cargo/wasm-bindgen-futures@0.4.76/Cargo.toml +88 -0
- package/third-party/cargo/wasm-bindgen-futures@0.4.76/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen-futures@0.4.76/LICENSE-MIT +25 -0
- package/third-party/cargo/wasm-bindgen-macro-support@0.2.126/Cargo.toml +83 -0
- package/third-party/cargo/wasm-bindgen-macro-support@0.2.126/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen-macro-support@0.2.126/LICENSE-MIT +25 -0
- package/third-party/cargo/wasm-bindgen-macro@0.2.126/Cargo.toml +73 -0
- package/third-party/cargo/wasm-bindgen-macro@0.2.126/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen-macro@0.2.126/LICENSE-MIT +25 -0
- package/third-party/cargo/wasm-bindgen-shared@0.2.126/Cargo.toml +66 -0
- package/third-party/cargo/wasm-bindgen-shared@0.2.126/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen-shared@0.2.126/LICENSE-MIT +25 -0
- package/third-party/cargo/wasm-bindgen@0.2.126/Cargo.toml +122 -0
- package/third-party/cargo/wasm-bindgen@0.2.126/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen@0.2.126/LICENSE-MIT +25 -0
- package/third-party/cargo/wayland-sys@0.31.11/Cargo.toml +81 -0
- package/third-party/cargo/wayland-sys@0.31.11/LICENSE.txt +19 -0
- package/third-party/cargo/web-sys@0.3.103/Cargo.toml +2823 -0
- package/third-party/cargo/web-sys@0.3.103/LICENSE-APACHE +201 -0
- package/third-party/cargo/web-sys@0.3.103/LICENSE-MIT +25 -0
- package/third-party/cargo/weezl@0.1.12/Cargo.toml +120 -0
- package/third-party/cargo/weezl@0.1.12/LICENSE-APACHE +201 -0
- package/third-party/cargo/weezl@0.1.12/LICENSE-MIT +22 -0
- package/third-party/cargo/wgpu-core-deps-apple@30.0.0/Cargo.toml +53 -0
- package/third-party/cargo/wgpu-core-deps-apple@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-core-deps-apple@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu-core@30.0.0/Cargo.toml +237 -0
- package/third-party/cargo/wgpu-core@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-core@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu-hal@30.0.0/Cargo.toml +541 -0
- package/third-party/cargo/wgpu-hal@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-hal@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu-naga-bridge@30.0.0/Cargo.toml +46 -0
- package/third-party/cargo/wgpu-naga-bridge@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-naga-bridge@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu-types@30.0.0/Cargo.toml +161 -0
- package/third-party/cargo/wgpu-types@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-types@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu@30.0.0/Cargo.toml +278 -0
- package/third-party/cargo/wgpu@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/xmlwriter@0.1.0/Cargo.toml +23 -0
- package/third-party/cargo/xmlwriter@0.1.0/LICENSE +21 -0
- package/third-party/cargo/yazi@0.2.1/Cargo.toml +45 -0
- package/third-party/cargo/yazi@0.2.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/yazi@0.2.1/LICENSE-MIT +19 -0
- package/third-party/cargo/zeno@0.3.3/Cargo.toml +65 -0
- package/third-party/cargo/zeno@0.3.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/zeno@0.3.3/LICENSE-MIT +25 -0
- package/third-party/cargo/zerocopy-derive@0.8.54/Cargo.toml +209 -0
- package/third-party/cargo/zerocopy-derive@0.8.54/LICENSE-APACHE +202 -0
- package/third-party/cargo/zerocopy-derive@0.8.54/LICENSE-BSD +24 -0
- package/third-party/cargo/zerocopy-derive@0.8.54/LICENSE-MIT +26 -0
- package/third-party/cargo/zerocopy@0.8.54/Cargo.toml +419 -0
- package/third-party/cargo/zerocopy@0.8.54/LICENSE-APACHE +202 -0
- package/third-party/cargo/zerocopy@0.8.54/LICENSE-BSD +24 -0
- package/third-party/cargo/zerocopy@0.8.54/LICENSE-MIT +26 -0
- package/third-party/cargo/zmij@1.0.23/Cargo.toml +90 -0
- package/third-party/cargo/zmij@1.0.23/LICENSE-MIT +23 -0
- package/third-party/cargo/zune-core@0.5.1/Cargo.toml +47 -0
- package/third-party/cargo/zune-core@0.5.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/zune-core@0.5.1/LICENSE-MIT +21 -0
- package/third-party/cargo/zune-core@0.5.1/LICENSE-ZLIB +19 -0
- package/third-party/cargo/zune-jpeg@0.5.15/Cargo.toml +67 -0
- package/third-party/cargo/zune-jpeg@0.5.15/LICENSE-APACHE +201 -0
- package/third-party/cargo/zune-jpeg@0.5.15/LICENSE-MIT +21 -0
- package/third-party/cargo/zune-jpeg@0.5.15/LICENSE-ZLIB +19 -0
- package/third-party/inventory.json +3614 -0
- package/third-party/npm/@esbuild__darwin-arm64@0.27.4/esbuild-0.27.4-LICENSE.md +21 -0
- package/third-party/npm/@esbuild__darwin-arm64@0.27.4/go-LICENSE +27 -0
- package/third-party/npm/@esbuild__darwin-arm64@0.27.4/golang-x-sys-c0bba94af5f8-LICENSE +27 -0
- package/third-party/npm/@esbuild__darwin-arm64@0.27.4/package.json +20 -0
- package/third-party/npm/@floating-ui__core@1.7.5/LICENSE +20 -0
- package/third-party/npm/@floating-ui__core@1.7.5/package.json +63 -0
- package/third-party/npm/@floating-ui__dom@1.7.6/LICENSE +20 -0
- package/third-party/npm/@floating-ui__dom@1.7.6/package.json +71 -0
- package/third-party/npm/@floating-ui__react-dom@2.1.8/LICENSE +20 -0
- package/third-party/npm/@floating-ui__react-dom@2.1.8/package.json +76 -0
- package/third-party/npm/@floating-ui__utils@0.2.11/LICENSE +20 -0
- package/third-party/npm/@floating-ui__utils@0.2.11/package.json +70 -0
- package/third-party/npm/@radix-ui__primitive@1.1.7/LICENSE +21 -0
- package/third-party/npm/@radix-ui__primitive@1.1.7/package.json +79 -0
- package/third-party/npm/@radix-ui__react-arrow@1.1.15/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-arrow@1.1.15/package.json +68 -0
- package/third-party/npm/@radix-ui__react-collection@1.1.15/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-collection@1.1.15/package.json +71 -0
- package/third-party/npm/@radix-ui__react-compose-refs@1.1.5/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-compose-refs@1.1.5/package.json +60 -0
- package/third-party/npm/@radix-ui__react-context-menu@2.3.7/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-context-menu@2.3.7/package.json +73 -0
- package/third-party/npm/@radix-ui__react-context@1.2.2/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-context@1.2.2/package.json +60 -0
- package/third-party/npm/@radix-ui__react-direction@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-direction@1.1.4/package.json +60 -0
- package/third-party/npm/@radix-ui__react-dismissable-layer@1.1.19/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-dismissable-layer@1.1.19/package.json +74 -0
- package/third-party/npm/@radix-ui__react-focus-guards@1.1.6/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-focus-guards@1.1.6/package.json +60 -0
- package/third-party/npm/@radix-ui__react-focus-scope@1.1.16/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-focus-scope@1.1.16/package.json +71 -0
- package/third-party/npm/@radix-ui__react-id@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-id@1.1.4/package.json +63 -0
- package/third-party/npm/@radix-ui__react-menu@2.1.24/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-menu@2.1.24/package.json +86 -0
- package/third-party/npm/@radix-ui__react-popper@1.3.7/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-popper@1.3.7/package.json +78 -0
- package/third-party/npm/@radix-ui__react-portal@1.1.17/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-portal@1.1.17/package.json +69 -0
- package/third-party/npm/@radix-ui__react-presence@1.1.10/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-presence@1.1.10/package.json +68 -0
- package/third-party/npm/@radix-ui__react-primitive@2.1.10/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-primitive@2.1.10/package.json +68 -0
- package/third-party/npm/@radix-ui__react-roving-focus@1.1.19/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-roving-focus@1.1.19/package.json +78 -0
- package/third-party/npm/@radix-ui__react-slot@1.3.3/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-slot@1.3.3/package.json +63 -0
- package/third-party/npm/@radix-ui__react-use-callback-ref@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-callback-ref@1.1.4/package.json +60 -0
- package/third-party/npm/@radix-ui__react-use-controllable-state@1.2.6/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-controllable-state@1.2.6/package.json +65 -0
- package/third-party/npm/@radix-ui__react-use-effect-event@0.0.5/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-effect-event@0.0.5/package.json +65 -0
- package/third-party/npm/@radix-ui__react-use-is-hydrated@0.1.3/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-is-hydrated@0.1.3/package.json +61 -0
- package/third-party/npm/@radix-ui__react-use-layout-effect@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-layout-effect@1.1.4/package.json +60 -0
- package/third-party/npm/@radix-ui__react-use-size@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-size@1.1.4/package.json +63 -0
- package/third-party/npm/aria-hidden@1.2.6/LICENSE +21 -0
- package/third-party/npm/aria-hidden@1.2.6/package.json +71 -0
- package/third-party/npm/detect-node-es@1.1.0/LICENSE +21 -0
- package/third-party/npm/detect-node-es@1.1.0/package.json +29 -0
- package/third-party/npm/esbuild@0.27.4/LICENSE.md +21 -0
- package/third-party/npm/esbuild@0.27.4/package.json +49 -0
- package/third-party/npm/fflate@0.8.3/LICENSE +21 -0
- package/third-party/npm/fflate@0.8.3/package.json +128 -0
- package/third-party/npm/get-nonce@1.0.1/LICENSE +21 -0
- package/third-party/npm/get-nonce@1.0.1/package.json +68 -0
- package/third-party/npm/mediabunny@1.52.2/LICENSE +373 -0
- package/third-party/npm/mediabunny@1.52.2/package.json +136 -0
- package/third-party/npm/mediabunny@1.52.2/source/LICENSE +373 -0
- package/third-party/npm/mediabunny@1.52.2/source/package.json +136 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/adts/adts-demuxer.ts +400 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/adts/adts-muxer.ts +124 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/adts/adts-reader.ts +85 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/aes.ts +307 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/codec-data.ts +3178 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/codec.ts +1154 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/conversion.ts +2042 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/custom-coder.ts +212 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/decode.ts +263 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/demuxer.ts +43 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/encode.ts +1412 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/flac/flac-demuxer.ts +813 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/flac/flac-misc.ts +165 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/flac/flac-muxer.ts +350 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/hls/hls-demuxer.ts +995 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/hls/hls-misc.ts +81 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/hls/hls-muxer.ts +1529 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/hls/hls-segmented-input.ts +772 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/id3.ts +972 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/index.ts +319 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/input-format.ts +819 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/input-track.ts +1141 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/input.ts +571 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-boxes.ts +1911 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-demuxer.ts +3953 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-misc.ts +90 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-muxer.ts +1595 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-reader.ts +91 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/logging.ts +120 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/matroska/ebml.ts +770 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/matroska/matroska-demuxer.ts +2598 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/matroska/matroska-misc.ts +29 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/matroska/matroska-muxer.ts +1360 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/media-sink.ts +2589 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/media-source.ts +3041 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/metadata.ts +335 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/misc.ts +1336 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mp3/mp3-demuxer.ts +469 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mp3/mp3-muxer.ts +169 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mp3/mp3-reader.ts +61 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mp3/mp3-writer.ts +121 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mpeg-ts/mpeg-ts-demuxer.ts +2519 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mpeg-ts/mpeg-ts-misc.ts +32 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mpeg-ts/mpeg-ts-muxer.ts +842 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/muxer.ts +80 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/node.ts +11 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/ogg/ogg-demuxer.ts +1087 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/ogg/ogg-misc.ts +116 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/ogg/ogg-muxer.ts +527 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/ogg/ogg-reader.ts +93 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/output-format.ts +1425 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/output.ts +940 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/packet.ts +287 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/pcm.ts +112 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/reader.ts +391 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/resample.ts +287 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/sample.ts +3231 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/segmented-input.ts +575 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/source.ts +2588 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/subtitles.ts +131 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/target.ts +871 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/tsconfig.json +16 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/wave/riff-writer.ts +36 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/wave/wave-demuxer.ts +583 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/wave/wave-muxer.ts +375 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/writer.ts +128 -0
- package/third-party/npm/react-dom@19.3.0/LICENSE +21 -0
- package/third-party/npm/react-dom@19.3.0/package.json +117 -0
- package/third-party/npm/react-remove-scroll-bar@2.3.8/package.json +85 -0
- package/third-party/npm/react-remove-scroll-bar@2.3.8/react-remove-scroll-bar-LICENSE +21 -0
- package/third-party/npm/react-remove-scroll@2.7.2/LICENSE +21 -0
- package/third-party/npm/react-remove-scroll@2.7.2/package.json +98 -0
- package/third-party/npm/react-style-singleton@2.2.3/LICENSE +21 -0
- package/third-party/npm/react-style-singleton@2.2.3/package.json +90 -0
- package/third-party/npm/react@19.3.0/LICENSE +21 -0
- package/third-party/npm/react@19.3.0/package.json +51 -0
- package/third-party/npm/scheduler@0.28.0/LICENSE +21 -0
- package/third-party/npm/scheduler@0.28.0/package.json +27 -0
- package/third-party/npm/tslib@2.8.1/LICENSE.txt +12 -0
- package/third-party/npm/tslib@2.8.1/package.json +47 -0
- package/third-party/npm/typescript@5.9.3/LICENSE.txt +55 -0
- package/third-party/npm/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
- package/third-party/npm/typescript@5.9.3/package.json +120 -0
- package/third-party/npm/use-callback-ref@1.3.3/LICENSE +21 -0
- package/third-party/npm/use-callback-ref@1.3.3/package.json +85 -0
- package/third-party/npm/use-sidecar@1.1.3/LICENSE +21 -0
- package/third-party/npm/use-sidecar@1.1.3/package.json +93 -0
- package/third-party/packages/render-engine/assets/OFL.txt +93 -0
- package/third-party/packages/studio/public/fonts/OFL.txt +93 -0
- package/third-party/packages/studio/vendor/osmo-icons/LICENSE +21 -0
- package/third-party/packages/studio/vendor/shadcn/LICENSE +21 -0
- package/third-party/repository-notices.md +41 -0
- package/third-party/rust-standard-library/COPYRIGHT-library.html +5556 -0
- package/third-party/rust-standard-library/licenses/Apache-2.0.txt +73 -0
- package/third-party/rust-standard-library/licenses/BSD-2-Clause.txt +9 -0
- package/third-party/rust-standard-library/licenses/CC-BY-SA-4.0.txt +427 -0
- package/third-party/rust-standard-library/licenses/GCC-exception-3.1.txt +30 -0
- package/third-party/rust-standard-library/licenses/GPL-2.0-only.txt +133 -0
- package/third-party/rust-standard-library/licenses/GPL-3.0-or-later.txt +202 -0
- package/third-party/rust-standard-library/licenses/ISC.txt +7 -0
- package/third-party/rust-standard-library/licenses/LLVM-exception.txt +15 -0
- package/third-party/rust-standard-library/licenses/MIT.txt +9 -0
- package/third-party/rust-standard-library/licenses/NCSA.txt +29 -0
- package/third-party/rust-standard-library/licenses/OFL-1.1.txt +43 -0
- package/third-party/rust-standard-library/licenses/Unicode-3.0.txt +39 -0
- package/third-party/rust-standard-library/version.txt +1 -0
- package/vendor/osmo-lite +0 -0
- package/vendor/osmo-scene-0.1.0.tgz +0 -0
- package/vendor/platform.json +1 -0
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026-present, Vanilagy and contributors
|
|
3
|
+
*
|
|
4
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { decodeSynchsafe, encodeSynchsafe } from '../shared/mp3-misc';
|
|
10
|
+
import { Logging } from './logging';
|
|
11
|
+
import { MetadataTags } from './metadata';
|
|
12
|
+
import {
|
|
13
|
+
coalesceIndex,
|
|
14
|
+
textDecoder,
|
|
15
|
+
textEncoder,
|
|
16
|
+
isIso88591Compatible,
|
|
17
|
+
assertNever,
|
|
18
|
+
keyValueIterator,
|
|
19
|
+
toDataView,
|
|
20
|
+
isRecordStringString,
|
|
21
|
+
} from './misc';
|
|
22
|
+
import { FileSlice, readAscii, readBytes, readU32Be, readU8 } from './reader';
|
|
23
|
+
import { Writer } from './writer';
|
|
24
|
+
|
|
25
|
+
export type Id3V2Header = {
|
|
26
|
+
majorVersion: number;
|
|
27
|
+
revision: number;
|
|
28
|
+
flags: number;
|
|
29
|
+
size: number;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export enum Id3V2HeaderFlags {
|
|
33
|
+
Unsynchronisation = 1 << 7,
|
|
34
|
+
ExtendedHeader = 1 << 6,
|
|
35
|
+
ExperimentalIndicator = 1 << 5,
|
|
36
|
+
Footer = 1 << 4,
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export enum Id3V2TextEncoding {
|
|
40
|
+
ISO_8859_1,
|
|
41
|
+
UTF_16_WITH_BOM,
|
|
42
|
+
UTF_16_BE_NO_BOM,
|
|
43
|
+
UTF_8,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const ID3_V1_TAG_SIZE = 128;
|
|
47
|
+
export const ID3_V2_HEADER_SIZE = 10;
|
|
48
|
+
|
|
49
|
+
export const ID3_V1_GENRES = [
|
|
50
|
+
'Blues', 'Classic rock', 'Country', 'Dance', 'Disco', 'Funk', 'Grunge', 'Hip-hop', 'Jazz',
|
|
51
|
+
'Metal', 'New age', 'Oldies', 'Other', 'Pop', 'Rhythm and blues', 'Rap', 'Reggae', 'Rock',
|
|
52
|
+
'Techno', 'Industrial', 'Alternative', 'Ska', 'Death metal', 'Pranks', 'Soundtrack',
|
|
53
|
+
'Euro-techno', 'Ambient', 'Trip-hop', 'Vocal', 'Jazz & funk', 'Fusion', 'Trance', 'Classical',
|
|
54
|
+
'Instrumental', 'Acid', 'House', 'Game', 'Sound clip', 'Gospel', 'Noise', 'Alternative rock',
|
|
55
|
+
'Bass', 'Soul', 'Punk', 'Space', 'Meditative', 'Instrumental pop', 'Instrumental rock',
|
|
56
|
+
'Ethnic', 'Gothic', 'Darkwave', 'Techno-industrial', 'Electronic', 'Pop-folk', 'Eurodance',
|
|
57
|
+
'Dream', 'Southern rock', 'Comedy', 'Cult', 'Gangsta', 'Top 40', 'Christian rap', 'Pop/funk',
|
|
58
|
+
'Jungle music', 'Native US', 'Cabaret', 'New wave', 'Psychedelic', 'Rave', 'Showtunes',
|
|
59
|
+
'Trailer', 'Lo-fi', 'Tribal', 'Acid punk', 'Acid jazz', 'Polka', 'Retro', 'Musical',
|
|
60
|
+
'Rock \'n\' roll', 'Hard rock', 'Folk', 'Folk rock', 'National folk', 'Swing', 'Fast fusion',
|
|
61
|
+
'Bebop', 'Latin', 'Revival', 'Celtic', 'Bluegrass', 'Avantgarde', 'Gothic rock',
|
|
62
|
+
'Progressive rock', 'Psychedelic rock', 'Symphonic rock', 'Slow rock', 'Big band', 'Chorus',
|
|
63
|
+
'Easy listening', 'Acoustic', 'Humour', 'Speech', 'Chanson', 'Opera', 'Chamber music',
|
|
64
|
+
'Sonata', 'Symphony', 'Booty bass', 'Primus', 'Porn groove', 'Satire', 'Slow jam', 'Club',
|
|
65
|
+
'Tango', 'Samba', 'Folklore', 'Ballad', 'Power ballad', 'Rhythmic Soul', 'Freestyle', 'Duet',
|
|
66
|
+
'Punk rock', 'Drum solo', 'A cappella', 'Euro-house', 'Dance hall', 'Goa music', 'Drum & bass',
|
|
67
|
+
'Club-house', 'Hardcore techno', 'Terror', 'Indie', 'Britpop', 'Negerpunk', 'Polsk punk',
|
|
68
|
+
'Beat', 'Christian gangsta rap', 'Heavy metal', 'Black metal', 'Crossover',
|
|
69
|
+
'Contemporary Christian', 'Christian rock', 'Merengue', 'Salsa', 'Thrash metal', 'Anime',
|
|
70
|
+
'Jpop', 'Synthpop', 'Christmas', 'Art rock', 'Baroque', 'Bhangra', 'Big beat', 'Breakbeat',
|
|
71
|
+
'Chillout', 'Downtempo', 'Dub', 'EBM', 'Eclectic', 'Electro', 'Electroclash', 'Emo',
|
|
72
|
+
'Experimental', 'Garage', 'Global', 'IDM', 'Illbient', 'Industro-Goth', 'Jam Band',
|
|
73
|
+
'Krautrock', 'Leftfield', 'Lounge', 'Math rock', 'New romantic', 'Nu-breakz', 'Post-punk',
|
|
74
|
+
'Post-rock', 'Psytrance', 'Shoegaze', 'Space rock', 'Trop rock', 'World music', 'Neoclassical',
|
|
75
|
+
'Audiobook', 'Audio theatre', 'Neue Deutsche Welle', 'Podcast', 'Indie rock', 'G-Funk',
|
|
76
|
+
'Dubstep', 'Garage rock', 'Psybient',
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
export const parseId3V1Tag = (slice: FileSlice, tags: MetadataTags) => {
|
|
80
|
+
const startPos = slice.filePos;
|
|
81
|
+
tags.raw ??= {};
|
|
82
|
+
tags.raw['TAG'] ??= readBytes(slice, ID3_V1_TAG_SIZE - 3); // Dump the whole tag into the raw metadata
|
|
83
|
+
slice.filePos = startPos;
|
|
84
|
+
|
|
85
|
+
const title = readId3V1String(slice, 30);
|
|
86
|
+
if (title) tags.title ??= title;
|
|
87
|
+
|
|
88
|
+
const artist = readId3V1String(slice, 30);
|
|
89
|
+
if (artist) tags.artist ??= artist;
|
|
90
|
+
|
|
91
|
+
const album = readId3V1String(slice, 30);
|
|
92
|
+
if (album) tags.album ??= album;
|
|
93
|
+
|
|
94
|
+
const yearText = readId3V1String(slice, 4);
|
|
95
|
+
const year = Number.parseInt(yearText, 10);
|
|
96
|
+
if (Number.isInteger(year) && year > 0) {
|
|
97
|
+
tags.date ??= new Date(String(year)); // String so that it parses as UTC
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const commentBytes = readBytes(slice, 30);
|
|
101
|
+
let comment: string;
|
|
102
|
+
|
|
103
|
+
// Check for the ID3v1.1 track number format:
|
|
104
|
+
// The 29th byte (index 28) is a null terminator, and the 30th byte is the track number.
|
|
105
|
+
if (commentBytes[28] === 0 && commentBytes[29] !== 0) {
|
|
106
|
+
const trackNum = commentBytes[29]!;
|
|
107
|
+
if (trackNum > 0) {
|
|
108
|
+
tags.trackNumber ??= trackNum;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
slice.skip(-30);
|
|
112
|
+
comment = readId3V1String(slice, 28);
|
|
113
|
+
slice.skip(2);
|
|
114
|
+
} else {
|
|
115
|
+
slice.skip(-30);
|
|
116
|
+
comment = readId3V1String(slice, 30);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (comment) tags.comment ??= comment;
|
|
120
|
+
|
|
121
|
+
const genreIndex = readU8(slice);
|
|
122
|
+
if (genreIndex < ID3_V1_GENRES.length) {
|
|
123
|
+
tags.genre ??= ID3_V1_GENRES[genreIndex];
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export const readId3V1String = (slice: FileSlice, length: number) => {
|
|
128
|
+
const bytes = readBytes(slice, length);
|
|
129
|
+
|
|
130
|
+
const endIndex = coalesceIndex(bytes.indexOf(0), bytes.length);
|
|
131
|
+
const relevantBytes = bytes.subarray(0, endIndex);
|
|
132
|
+
|
|
133
|
+
// Decode as ISO-8859-1
|
|
134
|
+
let str = '';
|
|
135
|
+
for (let i = 0; i < relevantBytes.length; i++) {
|
|
136
|
+
str += String.fromCharCode(relevantBytes[i]!);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return str.trimEnd(); // String also may be padded with spaces
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export const readId3V2Header = (slice: FileSlice): Id3V2Header | null => {
|
|
143
|
+
const startPos = slice.filePos;
|
|
144
|
+
|
|
145
|
+
const tag = readAscii(slice, 3);
|
|
146
|
+
const majorVersion = readU8(slice);
|
|
147
|
+
const revision = readU8(slice);
|
|
148
|
+
const flags = readU8(slice);
|
|
149
|
+
const sizeRaw = readU32Be(slice);
|
|
150
|
+
|
|
151
|
+
if (tag !== 'ID3' || majorVersion === 0xff || revision === 0xff || (sizeRaw & 0x80808080) !== 0) {
|
|
152
|
+
slice.filePos = startPos;
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
let size = decodeSynchsafe(sizeRaw);
|
|
157
|
+
|
|
158
|
+
if (flags & Id3V2HeaderFlags.Footer) {
|
|
159
|
+
size += ID3_V2_HEADER_SIZE;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return { majorVersion, revision, flags, size };
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export const parseId3V2Tag = (slice: FileSlice, header: Id3V2Header, tags: MetadataTags) => {
|
|
166
|
+
// https://id3.org/id3v2.3.0
|
|
167
|
+
|
|
168
|
+
if (![2, 3, 4].includes(header.majorVersion)) {
|
|
169
|
+
Logging._warn(`Unsupported ID3v2 major version: ${header.majorVersion}`);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const dataSize = (header.flags & Id3V2HeaderFlags.Footer)
|
|
174
|
+
? header.size - ID3_V2_HEADER_SIZE
|
|
175
|
+
: header.size;
|
|
176
|
+
|
|
177
|
+
const bytes = readBytes(slice, dataSize);
|
|
178
|
+
const reader = new Id3V2Reader(header, bytes);
|
|
179
|
+
|
|
180
|
+
if ((header.flags & Id3V2HeaderFlags.Unsynchronisation) && header.majorVersion === 3) {
|
|
181
|
+
reader.ununsynchronizeAll();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (header.flags & Id3V2HeaderFlags.ExtendedHeader) {
|
|
185
|
+
const extendedHeaderSize = reader.readU32();
|
|
186
|
+
|
|
187
|
+
if (header.majorVersion === 3) {
|
|
188
|
+
reader.pos += extendedHeaderSize; // The extended header size excludes itself
|
|
189
|
+
} else {
|
|
190
|
+
reader.pos += extendedHeaderSize - 4; // The extended header size includes itself
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
while (reader.pos <= reader.bytes.length - reader.frameHeaderSize()) {
|
|
195
|
+
const frame = reader.readId3V2Frame();
|
|
196
|
+
if (!frame) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const frameStartPos = reader.pos;
|
|
201
|
+
const frameEndPos = reader.pos + frame.size;
|
|
202
|
+
|
|
203
|
+
let frameEncrypted = false;
|
|
204
|
+
let frameCompressed = false;
|
|
205
|
+
let frameUnsynchronized = false;
|
|
206
|
+
|
|
207
|
+
if (header.majorVersion === 3) {
|
|
208
|
+
frameEncrypted = !!(frame.flags & (1 << 6));
|
|
209
|
+
frameCompressed = !!(frame.flags & (1 << 7));
|
|
210
|
+
} else if (header.majorVersion === 4) {
|
|
211
|
+
frameEncrypted = !!(frame.flags & (1 << 2));
|
|
212
|
+
frameCompressed = !!(frame.flags & (1 << 3));
|
|
213
|
+
frameUnsynchronized = !!(frame.flags & (1 << 1))
|
|
214
|
+
|| !!(header.flags & Id3V2HeaderFlags.Unsynchronisation);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (frameEncrypted) {
|
|
218
|
+
Logging._warn(`Skipping encrypted ID3v2 frame ${frame.id}`);
|
|
219
|
+
reader.pos = frameEndPos;
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (frameCompressed) {
|
|
224
|
+
Logging._warn(`Skipping compressed ID3v2 frame ${frame.id}`); // Maybe someday? Idk
|
|
225
|
+
reader.pos = frameEndPos;
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (frameUnsynchronized) {
|
|
230
|
+
reader.ununsynchronizeRegion(reader.pos, frameEndPos);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
tags.raw ??= {};
|
|
234
|
+
if (frame.id === 'TXXX') {
|
|
235
|
+
const txxx = tags.raw['TXXX'] ??= {};
|
|
236
|
+
const encoding = reader.readId3V2TextEncoding();
|
|
237
|
+
const description = reader.readId3V2Text(encoding, frameEndPos);
|
|
238
|
+
const value = reader.readId3V2Text(encoding, frameEndPos);
|
|
239
|
+
|
|
240
|
+
(txxx as Record<string, string>)[description] ??= value;
|
|
241
|
+
} else if (frame.id[0] === 'T') {
|
|
242
|
+
// It's a text frame, let's decode as text
|
|
243
|
+
tags.raw[frame.id] ??= reader.readId3V2EncodingAndText(frameEndPos);
|
|
244
|
+
} else {
|
|
245
|
+
// For the others, let's just get the bytes
|
|
246
|
+
tags.raw[frame.id] ??= reader.readBytes(frame.size);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
reader.pos = frameStartPos;
|
|
250
|
+
|
|
251
|
+
switch (frame.id) {
|
|
252
|
+
case 'TIT2':
|
|
253
|
+
case 'TT2': {
|
|
254
|
+
tags.title ??= reader.readId3V2EncodingAndText(frameEndPos);
|
|
255
|
+
}; break;
|
|
256
|
+
|
|
257
|
+
case 'TIT3':
|
|
258
|
+
case 'TT3': {
|
|
259
|
+
tags.description ??= reader.readId3V2EncodingAndText(frameEndPos);
|
|
260
|
+
}; break;
|
|
261
|
+
|
|
262
|
+
case 'TPE1':
|
|
263
|
+
case 'TP1': {
|
|
264
|
+
tags.artist ??= reader.readId3V2EncodingAndText(frameEndPos);
|
|
265
|
+
}; break;
|
|
266
|
+
|
|
267
|
+
case 'TALB':
|
|
268
|
+
case 'TAL': {
|
|
269
|
+
tags.album ??= reader.readId3V2EncodingAndText(frameEndPos);
|
|
270
|
+
}; break;
|
|
271
|
+
|
|
272
|
+
case 'TPE2':
|
|
273
|
+
case 'TP2': {
|
|
274
|
+
tags.albumArtist ??= reader.readId3V2EncodingAndText(frameEndPos);
|
|
275
|
+
}; break;
|
|
276
|
+
|
|
277
|
+
case 'TRCK':
|
|
278
|
+
case 'TRK': {
|
|
279
|
+
const trackText = reader.readId3V2EncodingAndText(frameEndPos);
|
|
280
|
+
const parts = trackText.split('/');
|
|
281
|
+
const trackNum = Number.parseInt(parts[0]!, 10);
|
|
282
|
+
const tracksTotal = parts[1] && Number.parseInt(parts[1], 10);
|
|
283
|
+
|
|
284
|
+
if (Number.isInteger(trackNum) && trackNum > 0) {
|
|
285
|
+
tags.trackNumber ??= trackNum;
|
|
286
|
+
}
|
|
287
|
+
if (tracksTotal && Number.isInteger(tracksTotal) && tracksTotal > 0) {
|
|
288
|
+
tags.tracksTotal ??= tracksTotal;
|
|
289
|
+
}
|
|
290
|
+
}; break;
|
|
291
|
+
|
|
292
|
+
case 'TPOS':
|
|
293
|
+
case 'TPA': {
|
|
294
|
+
const discText = reader.readId3V2EncodingAndText(frameEndPos);
|
|
295
|
+
const parts = discText.split('/');
|
|
296
|
+
const discNum = Number.parseInt(parts[0]!, 10);
|
|
297
|
+
const discsTotal = parts[1] && Number.parseInt(parts[1], 10);
|
|
298
|
+
|
|
299
|
+
if (Number.isInteger(discNum) && discNum > 0) {
|
|
300
|
+
tags.discNumber ??= discNum;
|
|
301
|
+
}
|
|
302
|
+
if (discsTotal && Number.isInteger(discsTotal) && discsTotal > 0) {
|
|
303
|
+
tags.discsTotal ??= discsTotal;
|
|
304
|
+
}
|
|
305
|
+
}; break;
|
|
306
|
+
|
|
307
|
+
case 'TCON':
|
|
308
|
+
case 'TCO': {
|
|
309
|
+
const genreText = reader.readId3V2EncodingAndText(frameEndPos);
|
|
310
|
+
let match = /^\((\d+)\)/.exec(genreText);
|
|
311
|
+
if (match) {
|
|
312
|
+
const genreNumber = Number.parseInt(match[1]!);
|
|
313
|
+
if (ID3_V1_GENRES[genreNumber] !== undefined) {
|
|
314
|
+
tags.genre ??= ID3_V1_GENRES[genreNumber];
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
match = /^\d+$/.exec(genreText);
|
|
320
|
+
if (match) {
|
|
321
|
+
const genreNumber = Number.parseInt(match[0]);
|
|
322
|
+
if (ID3_V1_GENRES[genreNumber] !== undefined) {
|
|
323
|
+
tags.genre ??= ID3_V1_GENRES[genreNumber];
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
tags.genre ??= genreText;
|
|
329
|
+
}; break;
|
|
330
|
+
|
|
331
|
+
case 'TDRC':
|
|
332
|
+
case 'TDAT': {
|
|
333
|
+
const dateText = reader.readId3V2EncodingAndText(frameEndPos);
|
|
334
|
+
const date = new Date(dateText);
|
|
335
|
+
|
|
336
|
+
if (!Number.isNaN(date.getTime())) {
|
|
337
|
+
tags.date ??= date;
|
|
338
|
+
}
|
|
339
|
+
}; break;
|
|
340
|
+
|
|
341
|
+
case 'TYER':
|
|
342
|
+
case 'TYE': {
|
|
343
|
+
const yearText = reader.readId3V2EncodingAndText(frameEndPos);
|
|
344
|
+
const year = Number.parseInt(yearText, 10);
|
|
345
|
+
|
|
346
|
+
if (Number.isInteger(year)) {
|
|
347
|
+
tags.date ??= new Date(String(year)); // String so that it parses as UTC
|
|
348
|
+
}
|
|
349
|
+
}; break;
|
|
350
|
+
|
|
351
|
+
case 'USLT':
|
|
352
|
+
case 'ULT': {
|
|
353
|
+
const encoding = reader.readU8();
|
|
354
|
+
reader.pos += 3; // Skip language
|
|
355
|
+
reader.readId3V2Text(encoding, frameEndPos); // Short content description
|
|
356
|
+
tags.lyrics ??= reader.readId3V2Text(encoding, frameEndPos);
|
|
357
|
+
}; break;
|
|
358
|
+
|
|
359
|
+
case 'COMM':
|
|
360
|
+
case 'COM': {
|
|
361
|
+
const encoding = reader.readU8();
|
|
362
|
+
reader.pos += 3; // Skip language
|
|
363
|
+
reader.readId3V2Text(encoding, frameEndPos); // Short content description
|
|
364
|
+
tags.comment ??= reader.readId3V2Text(encoding, frameEndPos);
|
|
365
|
+
}; break;
|
|
366
|
+
|
|
367
|
+
case 'APIC':
|
|
368
|
+
case 'PIC': {
|
|
369
|
+
const encoding = reader.readId3V2TextEncoding();
|
|
370
|
+
|
|
371
|
+
let mimeType: string;
|
|
372
|
+
if (header.majorVersion === 2) {
|
|
373
|
+
const imageFormat = reader.readAscii(3);
|
|
374
|
+
mimeType = imageFormat === 'PNG'
|
|
375
|
+
? 'image/png'
|
|
376
|
+
: imageFormat === 'JPG'
|
|
377
|
+
? 'image/jpeg'
|
|
378
|
+
: 'image/*';
|
|
379
|
+
} else {
|
|
380
|
+
mimeType = reader.readId3V2Text(encoding, frameEndPos);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
const pictureType = reader.readU8();
|
|
384
|
+
const description = reader.readId3V2Text(encoding, frameEndPos).trimEnd(); // Trim ending spaces
|
|
385
|
+
|
|
386
|
+
const imageDataSize = frameEndPos - reader.pos;
|
|
387
|
+
if (imageDataSize >= 0) {
|
|
388
|
+
const imageData = reader.readBytes(imageDataSize);
|
|
389
|
+
|
|
390
|
+
if (!tags.images) tags.images = [];
|
|
391
|
+
tags.images.push({
|
|
392
|
+
data: imageData,
|
|
393
|
+
mimeType,
|
|
394
|
+
kind: pictureType === 3
|
|
395
|
+
? 'coverFront'
|
|
396
|
+
: pictureType === 4
|
|
397
|
+
? 'coverBack'
|
|
398
|
+
: 'unknown',
|
|
399
|
+
description,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}; break;
|
|
403
|
+
|
|
404
|
+
default: {
|
|
405
|
+
reader.pos += frame.size;
|
|
406
|
+
}; break;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
reader.pos = frameEndPos;
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
// https://id3.org/id3v2.3.0
|
|
414
|
+
export class Id3V2Reader {
|
|
415
|
+
pos = 0;
|
|
416
|
+
view: DataView;
|
|
417
|
+
|
|
418
|
+
constructor(public header: Id3V2Header, public bytes: Uint8Array) {
|
|
419
|
+
this.view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
frameHeaderSize() {
|
|
423
|
+
return this.header.majorVersion === 2 ? 6 : 10;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
ununsynchronizeAll() {
|
|
427
|
+
const newBytes: number[] = [];
|
|
428
|
+
|
|
429
|
+
for (let i = 0; i < this.bytes.length; i++) {
|
|
430
|
+
const value1 = this.bytes[i]!;
|
|
431
|
+
newBytes.push(value1);
|
|
432
|
+
|
|
433
|
+
if (value1 === 0xff && i !== this.bytes.length - 1) {
|
|
434
|
+
const value2 = this.bytes[i]!;
|
|
435
|
+
if (value2 === 0x00) {
|
|
436
|
+
i++;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
this.bytes = new Uint8Array(newBytes);
|
|
442
|
+
this.view = new DataView(this.bytes.buffer);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
ununsynchronizeRegion(start: number, end: number) {
|
|
446
|
+
const newBytes: number[] = [];
|
|
447
|
+
|
|
448
|
+
for (let i = start; i < end; i++) {
|
|
449
|
+
const value1 = this.bytes[i]!;
|
|
450
|
+
newBytes.push(value1);
|
|
451
|
+
|
|
452
|
+
if (value1 === 0xff && i !== end - 1) {
|
|
453
|
+
const value2 = this.bytes[i + 1]!;
|
|
454
|
+
if (value2 === 0x00) {
|
|
455
|
+
i++;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
const before = this.bytes.subarray(0, start);
|
|
461
|
+
const after = this.bytes.subarray(end);
|
|
462
|
+
|
|
463
|
+
this.bytes = new Uint8Array(before.length + newBytes.length + after.length);
|
|
464
|
+
this.bytes.set(before, 0);
|
|
465
|
+
this.bytes.set(newBytes, before.length);
|
|
466
|
+
this.bytes.set(after, before.length + newBytes.length);
|
|
467
|
+
|
|
468
|
+
this.view = new DataView(this.bytes.buffer);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
readBytes(length: number) {
|
|
472
|
+
const slice = this.bytes.subarray(this.pos, this.pos + length);
|
|
473
|
+
this.pos += length;
|
|
474
|
+
return slice;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
readU8() {
|
|
478
|
+
const value = this.view.getUint8(this.pos);
|
|
479
|
+
this.pos += 1;
|
|
480
|
+
return value;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
readU16() {
|
|
484
|
+
const value = this.view.getUint16(this.pos, false);
|
|
485
|
+
this.pos += 2;
|
|
486
|
+
return value;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
readU24() {
|
|
490
|
+
const high = this.view.getUint16(this.pos, false);
|
|
491
|
+
const low = this.view.getUint8(this.pos + 2);
|
|
492
|
+
this.pos += 3;
|
|
493
|
+
return high * 0x100 + low;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
readU32() {
|
|
497
|
+
const value = this.view.getUint32(this.pos, false);
|
|
498
|
+
this.pos += 4;
|
|
499
|
+
return value;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
readAscii(length: number) {
|
|
503
|
+
let str = '';
|
|
504
|
+
for (let i = 0; i < length; i++) {
|
|
505
|
+
str += String.fromCharCode(this.view.getUint8(this.pos + i));
|
|
506
|
+
}
|
|
507
|
+
this.pos += length;
|
|
508
|
+
return str;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
readId3V2Frame() {
|
|
512
|
+
if (this.header.majorVersion === 2) {
|
|
513
|
+
const id = this.readAscii(3);
|
|
514
|
+
if (id === '\x00\x00\x00') {
|
|
515
|
+
return null;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
const size = this.readU24();
|
|
519
|
+
|
|
520
|
+
return { id, size, flags: 0 };
|
|
521
|
+
} else {
|
|
522
|
+
const id = this.readAscii(4);
|
|
523
|
+
if (id === '\x00\x00\x00\x00') {
|
|
524
|
+
// We've landed in the padding section
|
|
525
|
+
return null;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
const sizeRaw = this.readU32();
|
|
529
|
+
let size = this.header.majorVersion === 4
|
|
530
|
+
? decodeSynchsafe(sizeRaw)
|
|
531
|
+
: sizeRaw;
|
|
532
|
+
const flags = this.readU16();
|
|
533
|
+
const headerEndPos = this.pos;
|
|
534
|
+
|
|
535
|
+
// Some files may have incorrectly synchsafed/unsynchsafed sizes. To validate which interpretation is valid,
|
|
536
|
+
// we validate a size by skipping ahead and seeing if we land at a valid frame header (or at the end of the
|
|
537
|
+
// tag.
|
|
538
|
+
|
|
539
|
+
const isSizeValid = (size: number) => {
|
|
540
|
+
const nextPos = this.pos + size;
|
|
541
|
+
if (nextPos > this.bytes.length) {
|
|
542
|
+
return false;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
if (nextPos <= this.bytes.length - this.frameHeaderSize()) {
|
|
546
|
+
this.pos += size;
|
|
547
|
+
const nextId = this.readAscii(4);
|
|
548
|
+
if (nextId !== '\x00\x00\x00\x00' && !/[0-9A-Z]{4}/.test(nextId)) {
|
|
549
|
+
return false;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
return true;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
if (!isSizeValid(size)) {
|
|
557
|
+
// Flip the synchsafing, and try if this one makes more sense
|
|
558
|
+
const otherSize = this.header.majorVersion === 4
|
|
559
|
+
? sizeRaw
|
|
560
|
+
: decodeSynchsafe(sizeRaw);
|
|
561
|
+
|
|
562
|
+
if (isSizeValid(otherSize)) {
|
|
563
|
+
size = otherSize;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
this.pos = headerEndPos;
|
|
568
|
+
return { id, size, flags };
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
readId3V2TextEncoding(): Id3V2TextEncoding {
|
|
573
|
+
const number = this.readU8();
|
|
574
|
+
if (number > 3) {
|
|
575
|
+
throw new Error(`Unsupported text encoding: ${number}`);
|
|
576
|
+
}
|
|
577
|
+
return number;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
readId3V2Text(encoding: Id3V2TextEncoding, until: number): string {
|
|
581
|
+
const startPos = this.pos;
|
|
582
|
+
const data = this.readBytes(until - this.pos);
|
|
583
|
+
|
|
584
|
+
switch (encoding) {
|
|
585
|
+
case Id3V2TextEncoding.ISO_8859_1: {
|
|
586
|
+
let str = '';
|
|
587
|
+
|
|
588
|
+
for (let i = 0; i < data.length; i++) {
|
|
589
|
+
const value = data[i]!;
|
|
590
|
+
if (value === 0) {
|
|
591
|
+
this.pos = startPos + i + 1;
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
str += String.fromCharCode(value);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
return str;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
case Id3V2TextEncoding.UTF_16_WITH_BOM: {
|
|
601
|
+
if (data[0] === 0xff && data[1] === 0xfe) {
|
|
602
|
+
const decoder = new TextDecoder('utf-16le');
|
|
603
|
+
const endIndex = coalesceIndex(
|
|
604
|
+
data.findIndex((x, i) => x === 0 && data[i + 1] === 0 && i % 2 === 0),
|
|
605
|
+
data.length,
|
|
606
|
+
);
|
|
607
|
+
this.pos = startPos + Math.min(endIndex + 2, data.length);
|
|
608
|
+
return decoder.decode(data.subarray(2, endIndex));
|
|
609
|
+
} else if (data[0] === 0xfe && data[1] === 0xff) {
|
|
610
|
+
const decoder = new TextDecoder('utf-16be');
|
|
611
|
+
const endIndex = coalesceIndex(
|
|
612
|
+
data.findIndex((x, i) => x === 0 && data[i + 1] === 0 && i % 2 === 0),
|
|
613
|
+
data.length,
|
|
614
|
+
);
|
|
615
|
+
this.pos = startPos + Math.min(endIndex + 2, data.length);
|
|
616
|
+
return decoder.decode(data.subarray(2, endIndex));
|
|
617
|
+
} else {
|
|
618
|
+
// Treat it like UTF-8, some files do this
|
|
619
|
+
const endIndex = coalesceIndex(data.findIndex(x => x === 0), data.length);
|
|
620
|
+
this.pos = startPos + Math.min(endIndex + 1, data.length);
|
|
621
|
+
return textDecoder.decode(data.subarray(0, endIndex));
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
case Id3V2TextEncoding.UTF_16_BE_NO_BOM: {
|
|
626
|
+
const decoder = new TextDecoder('utf-16be');
|
|
627
|
+
const endIndex = coalesceIndex(
|
|
628
|
+
data.findIndex((x, i) => x === 0 && data[i + 1] === 0 && i % 2 === 0),
|
|
629
|
+
data.length,
|
|
630
|
+
);
|
|
631
|
+
this.pos = startPos + Math.min(endIndex + 2, data.length);
|
|
632
|
+
return decoder.decode(data.subarray(0, endIndex));
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
case Id3V2TextEncoding.UTF_8: {
|
|
636
|
+
const endIndex = coalesceIndex(data.findIndex(x => x === 0), data.length);
|
|
637
|
+
this.pos = startPos + Math.min(endIndex + 1, data.length);
|
|
638
|
+
return textDecoder.decode(data.subarray(0, endIndex));
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
readId3V2EncodingAndText(until: number) {
|
|
644
|
+
if (this.pos >= until) {
|
|
645
|
+
return '';
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
const encoding = this.readId3V2TextEncoding();
|
|
649
|
+
return this.readId3V2Text(encoding, until);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export class Id3V2Writer {
|
|
654
|
+
writer: Writer;
|
|
655
|
+
helper = new Uint8Array(8);
|
|
656
|
+
helperView = toDataView(this.helper);
|
|
657
|
+
|
|
658
|
+
constructor(writer: Writer) {
|
|
659
|
+
this.writer = writer;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
writeId3V2Tag(metadata: MetadataTags): number {
|
|
663
|
+
const tagStartPos = this.writer.getPos();
|
|
664
|
+
|
|
665
|
+
// Write ID3v2.4 header
|
|
666
|
+
this.writeAscii('ID3');
|
|
667
|
+
this.writeU8(0x04); // Version 2.4
|
|
668
|
+
this.writeU8(0x00); // Revision 0
|
|
669
|
+
this.writeU8(0x00); // Flags
|
|
670
|
+
this.writeSynchsafeU32(0); // Size placeholder
|
|
671
|
+
|
|
672
|
+
const framesStartPos = this.writer.getPos();
|
|
673
|
+
const writtenTags = new Set<string>();
|
|
674
|
+
|
|
675
|
+
// Write all metadata frames
|
|
676
|
+
for (const { key, value } of keyValueIterator(metadata)) {
|
|
677
|
+
switch (key) {
|
|
678
|
+
case 'title': {
|
|
679
|
+
this.writeId3V2TextFrame('TIT2', value);
|
|
680
|
+
writtenTags.add('TIT2');
|
|
681
|
+
}; break;
|
|
682
|
+
|
|
683
|
+
case 'description': {
|
|
684
|
+
this.writeId3V2TextFrame('TIT3', value);
|
|
685
|
+
writtenTags.add('TIT3');
|
|
686
|
+
}; break;
|
|
687
|
+
|
|
688
|
+
case 'artist': {
|
|
689
|
+
this.writeId3V2TextFrame('TPE1', value);
|
|
690
|
+
writtenTags.add('TPE1');
|
|
691
|
+
}; break;
|
|
692
|
+
|
|
693
|
+
case 'album': {
|
|
694
|
+
this.writeId3V2TextFrame('TALB', value);
|
|
695
|
+
writtenTags.add('TALB');
|
|
696
|
+
}; break;
|
|
697
|
+
|
|
698
|
+
case 'albumArtist': {
|
|
699
|
+
this.writeId3V2TextFrame('TPE2', value);
|
|
700
|
+
writtenTags.add('TPE2');
|
|
701
|
+
}; break;
|
|
702
|
+
|
|
703
|
+
case 'trackNumber': {
|
|
704
|
+
const string = metadata.tracksTotal !== undefined
|
|
705
|
+
? `${value}/${metadata.tracksTotal}`
|
|
706
|
+
: value.toString();
|
|
707
|
+
this.writeId3V2TextFrame('TRCK', string);
|
|
708
|
+
writtenTags.add('TRCK');
|
|
709
|
+
}; break;
|
|
710
|
+
|
|
711
|
+
case 'discNumber': {
|
|
712
|
+
const string = metadata.discsTotal !== undefined
|
|
713
|
+
? `${value}/${metadata.discsTotal}`
|
|
714
|
+
: value.toString();
|
|
715
|
+
this.writeId3V2TextFrame('TPOS', string);
|
|
716
|
+
writtenTags.add('TPOS');
|
|
717
|
+
}; break;
|
|
718
|
+
|
|
719
|
+
case 'genre': {
|
|
720
|
+
this.writeId3V2TextFrame('TCON', value);
|
|
721
|
+
writtenTags.add('TCON');
|
|
722
|
+
}; break;
|
|
723
|
+
|
|
724
|
+
case 'date': {
|
|
725
|
+
this.writeId3V2TextFrame('TDRC', value.toISOString().slice(0, 10));
|
|
726
|
+
writtenTags.add('TDRC');
|
|
727
|
+
}; break;
|
|
728
|
+
|
|
729
|
+
case 'lyrics': {
|
|
730
|
+
this.writeId3V2LyricsFrame(value);
|
|
731
|
+
writtenTags.add('USLT');
|
|
732
|
+
}; break;
|
|
733
|
+
|
|
734
|
+
case 'comment': {
|
|
735
|
+
this.writeId3V2CommentFrame(value);
|
|
736
|
+
writtenTags.add('COMM');
|
|
737
|
+
}; break;
|
|
738
|
+
|
|
739
|
+
case 'images': {
|
|
740
|
+
const pictureTypeMap = { coverFront: 0x03, coverBack: 0x04, unknown: 0x00 };
|
|
741
|
+
for (const image of value) {
|
|
742
|
+
const pictureType = pictureTypeMap[image.kind] ?? 0x00;
|
|
743
|
+
const description = image.description ?? '';
|
|
744
|
+
this.writeId3V2ApicFrame(image.mimeType, pictureType, description, image.data);
|
|
745
|
+
}
|
|
746
|
+
}; break;
|
|
747
|
+
|
|
748
|
+
case 'tracksTotal':
|
|
749
|
+
case 'discsTotal': {
|
|
750
|
+
// Handled with trackNumber and discNumber respectively
|
|
751
|
+
}; break;
|
|
752
|
+
|
|
753
|
+
case 'raw': {
|
|
754
|
+
// Handled later
|
|
755
|
+
}; break;
|
|
756
|
+
|
|
757
|
+
default: {
|
|
758
|
+
assertNever(key);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
if (metadata.raw) {
|
|
764
|
+
for (const key in metadata.raw) {
|
|
765
|
+
const value = metadata.raw[key];
|
|
766
|
+
if (value == null || key.length !== 4 || writtenTags.has(key)) {
|
|
767
|
+
continue;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
let bytes: Uint8Array;
|
|
771
|
+
if (typeof value === 'string') {
|
|
772
|
+
const useIso88591 = isIso88591Compatible(value);
|
|
773
|
+
if (useIso88591) {
|
|
774
|
+
bytes = new Uint8Array(value.length + 2);
|
|
775
|
+
bytes[0] = Id3V2TextEncoding.ISO_8859_1;
|
|
776
|
+
for (let i = 0; i < value.length; i++) {
|
|
777
|
+
bytes[i + 1] = value.charCodeAt(i);
|
|
778
|
+
}
|
|
779
|
+
// Last byte is the null terminator
|
|
780
|
+
} else {
|
|
781
|
+
const encoded = textEncoder.encode(value);
|
|
782
|
+
bytes = new Uint8Array(encoded.byteLength + 2);
|
|
783
|
+
bytes[0] = Id3V2TextEncoding.UTF_8;
|
|
784
|
+
bytes.set(encoded, 1);
|
|
785
|
+
// Last byte is the null terminator
|
|
786
|
+
}
|
|
787
|
+
} else if (value instanceof Uint8Array) {
|
|
788
|
+
bytes = value;
|
|
789
|
+
} else if (key === 'TXXX' && isRecordStringString(value)) {
|
|
790
|
+
for (const description in value) {
|
|
791
|
+
const frameValue = value[description]!;
|
|
792
|
+
const useIso88591 = isIso88591Compatible(description) && isIso88591Compatible(frameValue);
|
|
793
|
+
|
|
794
|
+
const encodedDescription = useIso88591 ? null : textEncoder.encode(description);
|
|
795
|
+
const encodedValue = useIso88591 ? null : textEncoder.encode(frameValue);
|
|
796
|
+
const descriptionDataLength = useIso88591 ? description.length : encodedDescription!.byteLength;
|
|
797
|
+
const valueDataLength = useIso88591 ? frameValue.length : encodedValue!.byteLength;
|
|
798
|
+
|
|
799
|
+
const frameSize = 1 + descriptionDataLength + 1 + valueDataLength + 1;
|
|
800
|
+
|
|
801
|
+
this.writeAscii('TXXX');
|
|
802
|
+
this.writeSynchsafeU32(frameSize);
|
|
803
|
+
this.writeU16(0x0000);
|
|
804
|
+
|
|
805
|
+
this.writeU8(useIso88591 ? Id3V2TextEncoding.ISO_8859_1 : Id3V2TextEncoding.UTF_8);
|
|
806
|
+
if (useIso88591) {
|
|
807
|
+
this.writeIsoString(description);
|
|
808
|
+
this.writeIsoString(frameValue);
|
|
809
|
+
} else {
|
|
810
|
+
this.writer.write(encodedDescription!);
|
|
811
|
+
this.writeU8(0x00);
|
|
812
|
+
this.writer.write(encodedValue!);
|
|
813
|
+
this.writeU8(0x00);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
continue;
|
|
817
|
+
} else {
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
this.writeAscii(key);
|
|
822
|
+
this.writeSynchsafeU32(bytes.byteLength);
|
|
823
|
+
this.writeU16(0x0000);
|
|
824
|
+
this.writer.write(bytes);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
const framesEndPos = this.writer.getPos();
|
|
829
|
+
const framesSize = framesEndPos - framesStartPos;
|
|
830
|
+
|
|
831
|
+
// Update the size field in the header (synchsafe)
|
|
832
|
+
this.writer.seek(tagStartPos + 6); // Skip 'ID3' + version + revision + flags
|
|
833
|
+
this.writeSynchsafeU32(framesSize);
|
|
834
|
+
this.writer.seek(framesEndPos);
|
|
835
|
+
|
|
836
|
+
return framesSize + 10; // +10 for the header size
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
writeU8(value: number) {
|
|
840
|
+
this.helper[0] = value;
|
|
841
|
+
this.writer.write(this.helper.subarray(0, 1));
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
writeU16(value: number) {
|
|
845
|
+
this.helperView.setUint16(0, value, false);
|
|
846
|
+
this.writer.write(this.helper.subarray(0, 2));
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
writeU32(value: number) {
|
|
850
|
+
this.helperView.setUint32(0, value, false);
|
|
851
|
+
this.writer.write(this.helper.subarray(0, 4));
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
writeAscii(text: string) {
|
|
855
|
+
for (let i = 0; i < text.length; i++) {
|
|
856
|
+
this.helper[i] = text.charCodeAt(i);
|
|
857
|
+
}
|
|
858
|
+
this.writer.write(this.helper.subarray(0, text.length));
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
writeSynchsafeU32(value: number) {
|
|
862
|
+
this.writeU32(encodeSynchsafe(value));
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
writeIsoString(text: string) {
|
|
866
|
+
const bytes = new Uint8Array(text.length + 1);
|
|
867
|
+
for (let i = 0; i < text.length; i++) {
|
|
868
|
+
bytes[i] = text.charCodeAt(i);
|
|
869
|
+
}
|
|
870
|
+
// Last byte is the null terminator
|
|
871
|
+
|
|
872
|
+
this.writer.write(bytes);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
writeUtf8String(text: string) {
|
|
876
|
+
const utf8Data = textEncoder.encode(text);
|
|
877
|
+
this.writer.write(utf8Data);
|
|
878
|
+
this.writeU8(0x00);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
writeId3V2TextFrame(frameId: string, text: string) {
|
|
882
|
+
const useIso88591 = isIso88591Compatible(text);
|
|
883
|
+
const textDataLength = useIso88591 ? text.length : textEncoder.encode(text).byteLength;
|
|
884
|
+
const frameSize = 1 + textDataLength + 1;
|
|
885
|
+
|
|
886
|
+
this.writeAscii(frameId);
|
|
887
|
+
this.writeSynchsafeU32(frameSize);
|
|
888
|
+
this.writeU16(0x0000);
|
|
889
|
+
|
|
890
|
+
this.writeU8(useIso88591 ? Id3V2TextEncoding.ISO_8859_1 : Id3V2TextEncoding.UTF_8);
|
|
891
|
+
if (useIso88591) {
|
|
892
|
+
this.writeIsoString(text);
|
|
893
|
+
} else {
|
|
894
|
+
this.writeUtf8String(text);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
writeId3V2LyricsFrame(lyrics: string) {
|
|
899
|
+
const useIso88591 = isIso88591Compatible(lyrics);
|
|
900
|
+
const shortDescription = '';
|
|
901
|
+
const frameSize = 1 + 3 + shortDescription.length + 1 + lyrics.length + 1;
|
|
902
|
+
|
|
903
|
+
this.writeAscii('USLT');
|
|
904
|
+
this.writeSynchsafeU32(frameSize);
|
|
905
|
+
this.writeU16(0x0000);
|
|
906
|
+
|
|
907
|
+
this.writeU8(useIso88591 ? Id3V2TextEncoding.ISO_8859_1 : Id3V2TextEncoding.UTF_8);
|
|
908
|
+
this.writeAscii('und');
|
|
909
|
+
|
|
910
|
+
if (useIso88591) {
|
|
911
|
+
this.writeIsoString(shortDescription);
|
|
912
|
+
this.writeIsoString(lyrics);
|
|
913
|
+
} else {
|
|
914
|
+
this.writeUtf8String(shortDescription);
|
|
915
|
+
this.writeUtf8String(lyrics);
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
writeId3V2CommentFrame(comment: string) {
|
|
920
|
+
const useIso88591 = isIso88591Compatible(comment);
|
|
921
|
+
const textDataLength = useIso88591 ? comment.length : textEncoder.encode(comment).byteLength;
|
|
922
|
+
const shortDescription = '';
|
|
923
|
+
const frameSize = 1 + 3 + shortDescription.length + 1 + textDataLength + 1;
|
|
924
|
+
|
|
925
|
+
this.writeAscii('COMM');
|
|
926
|
+
this.writeSynchsafeU32(frameSize);
|
|
927
|
+
this.writeU16(0x0000);
|
|
928
|
+
|
|
929
|
+
this.writeU8(useIso88591 ? Id3V2TextEncoding.ISO_8859_1 : Id3V2TextEncoding.UTF_8);
|
|
930
|
+
this.writeU8(0x75); // 'u'
|
|
931
|
+
this.writeU8(0x6E); // 'n'
|
|
932
|
+
this.writeU8(0x64); // 'd'
|
|
933
|
+
|
|
934
|
+
if (useIso88591) {
|
|
935
|
+
this.writeIsoString(shortDescription);
|
|
936
|
+
this.writeIsoString(comment);
|
|
937
|
+
} else {
|
|
938
|
+
this.writeUtf8String(shortDescription);
|
|
939
|
+
this.writeUtf8String(comment);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
writeId3V2ApicFrame(mimeType: string, pictureType: number, description: string, imageData: Uint8Array) {
|
|
944
|
+
const useIso88591 = isIso88591Compatible(mimeType) && isIso88591Compatible(description);
|
|
945
|
+
const descriptionDataLength = useIso88591
|
|
946
|
+
? description.length
|
|
947
|
+
: textEncoder.encode(description).byteLength;
|
|
948
|
+
const frameSize = 1 + mimeType.length + 1 + 1 + descriptionDataLength + 1 + imageData.byteLength;
|
|
949
|
+
|
|
950
|
+
this.writeAscii('APIC');
|
|
951
|
+
this.writeSynchsafeU32(frameSize);
|
|
952
|
+
this.writeU16(0x0000);
|
|
953
|
+
|
|
954
|
+
this.writeU8(useIso88591 ? Id3V2TextEncoding.ISO_8859_1 : Id3V2TextEncoding.UTF_8);
|
|
955
|
+
|
|
956
|
+
if (useIso88591) {
|
|
957
|
+
this.writeIsoString(mimeType);
|
|
958
|
+
} else {
|
|
959
|
+
this.writeUtf8String(mimeType);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
this.writeU8(pictureType);
|
|
963
|
+
|
|
964
|
+
if (useIso88591) {
|
|
965
|
+
this.writeIsoString(description);
|
|
966
|
+
} else {
|
|
967
|
+
this.writeUtf8String(description);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
this.writer.write(imageData);
|
|
971
|
+
}
|
|
972
|
+
}
|