diff --git a/.gitattributes b/.gitattributes
index 3a9e6105b5463164359cb5c7749b33a2970d1792..948d659bba87db54e8b1deb7aee4e290c45a4e68 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -25,3 +25,5 @@
*.eot binary
*.pdf binary
*.zip binary
+node_modules/@jimp/js-bmp/src/images/windows95.bmp filter=lfs diff=lfs merge=lfs -text
+node_modules/@jimp/js-bmp/src/images/windows95.png filter=lfs diff=lfs merge=lfs -text
diff --git a/node_modules/@jimp/file-ops/.tshy/browser.json b/node_modules/@jimp/file-ops/.tshy/browser.json
new file mode 100644
index 0000000000000000000000000000000000000000..4c8229313655dafe92a80d606c265c9388b4a8e4
--- /dev/null
+++ b/node_modules/@jimp/file-ops/.tshy/browser.json
@@ -0,0 +1,16 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.mts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/browser"
+ }
+}
diff --git a/node_modules/@jimp/file-ops/.tshy/build.json b/node_modules/@jimp/file-ops/.tshy/build.json
new file mode 100644
index 0000000000000000000000000000000000000000..aea1a9e93b5db3468973ebeaad6dac0a77b10c02
--- /dev/null
+++ b/node_modules/@jimp/file-ops/.tshy/build.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "../src",
+ "module": "nodenext",
+ "moduleResolution": "nodenext"
+ }
+}
diff --git a/node_modules/@jimp/file-ops/.tshy/commonjs.json b/node_modules/@jimp/file-ops/.tshy/commonjs.json
new file mode 100644
index 0000000000000000000000000000000000000000..28f4a0bf2a5ac52c38b8c92344c3ff5c6fa26c0d
--- /dev/null
+++ b/node_modules/@jimp/file-ops/.tshy/commonjs.json
@@ -0,0 +1,18 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.cts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/**/*.mts",
+ "../src/package.json",
+ "../src/index-browser.mts"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/commonjs"
+ }
+}
diff --git a/node_modules/@jimp/file-ops/.tshy/esm.json b/node_modules/@jimp/file-ops/.tshy/esm.json
new file mode 100644
index 0000000000000000000000000000000000000000..f4eac5d36cc5d25ff8d425f1ab75e94f7665360b
--- /dev/null
+++ b/node_modules/@jimp/file-ops/.tshy/esm.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.mts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/package.json",
+ "../src/index-browser.mts"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/esm"
+ }
+}
diff --git a/node_modules/@jimp/file-ops/CHANGELOG.md b/node_modules/@jimp/file-ops/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..2b6908c4c86d1f7a6e51649d324e2272f1ffc3d9
--- /dev/null
+++ b/node_modules/@jimp/file-ops/CHANGELOG.md
@@ -0,0 +1,51 @@
+# v1.1.3 (Mon Sep 02 2024)
+
+#### 🐛 Bug Fix
+
+- Update deps [#1319](https://github.com/jimp-dev/jimp/pull/1319) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.0 (Sun Sep 01 2024)
+
+#### ⚠️ Pushed to `main`
+
+- upgrade tshy ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.3 (Sat Aug 31 2024)
+
+#### 🐛 Bug Fix
+
+- Fix build [#1303](https://github.com/jimp-dev/jimp/pull/1303) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### ⚠️ Pushed to `main`
+
+- add clean script ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.2 (Sat Aug 31 2024)
+
+#### ⚠️ Pushed to `main`
+
+- set side effects ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- fix versions ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- add publish config ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
diff --git a/node_modules/@jimp/file-ops/LICENSE b/node_modules/@jimp/file-ops/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..baa5d48509a18b9ab4f6c39289362690ea68e688
--- /dev/null
+++ b/node_modules/@jimp/file-ops/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Oliver Moran
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@jimp/file-ops/dist/browser/index-browser.d.mts.map b/node_modules/@jimp/file-ops/dist/browser/index-browser.d.mts.map
new file mode 100644
index 0000000000000000000000000000000000000000..68913946a488267a4de004597367843d3c9ac76d
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/browser/index-browser.d.mts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index-browser.d.mts","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,eAAc,CAAC;AAEtC,eAAO,MAAM,QAAQ,sBAEpB,CAAC;AAEF,eAAO,MAAM,SAAS,sBAErB,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/browser/index-browser.mjs.map b/node_modules/@jimp/file-ops/dist/browser/index-browser.mjs.map
new file mode 100644
index 0000000000000000000000000000000000000000..87e5607729ec7ce38755e70f0a4b9d6839908439
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/browser/index-browser.mjs.map
@@ -0,0 +1 @@
+{"version":3,"file":"index-browser.mjs","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC;AAEtC,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,IAAI,EAAE;IACjC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,IAAI,EAAE;IAClC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;AACnC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/browser/index.d.ts b/node_modules/@jimp/file-ops/dist/browser/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..5206ab3e7c6deda649d3130576f5a156bf15aee9
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/browser/index.d.ts
@@ -0,0 +1,4 @@
+export declare const existsSync: () => boolean;
+export declare const readFile: () => Promise;
+export declare const writeFile: () => Promise;
+//# sourceMappingURL=index-browser.d.mts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/browser/index.js b/node_modules/@jimp/file-ops/dist/browser/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..a6b8a7ce99e5f9be9dc83af488caaafc5ab3f391
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/browser/index.js
@@ -0,0 +1,8 @@
+export const existsSync = () => false;
+export const readFile = async () => {
+ throw new Error("Not supported");
+};
+export const writeFile = async () => {
+ throw new Error("Not supported");
+};
+//# sourceMappingURL=index-browser.mjs.map
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/browser/package.json b/node_modules/@jimp/file-ops/dist/browser/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/browser/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/file-ops/dist/commonjs/index.d.ts b/node_modules/@jimp/file-ops/dist/commonjs/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..198403790a2a9630c896c6702e1568dae4535488
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/commonjs/index.d.ts
@@ -0,0 +1,5 @@
+import { promises as fs } from "fs";
+export { existsSync } from "fs";
+export declare const readFile: typeof fs.readFile;
+export declare const writeFile: typeof fs.writeFile;
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/commonjs/index.d.ts.map b/node_modules/@jimp/file-ops/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..bb98818a2fa28661dbd7807d8e17faedd59f07d8
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,eAAO,MAAM,QAAQ,oBAAc,CAAC;AACpC,eAAO,MAAM,SAAS,qBAAe,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/commonjs/index.js b/node_modules/@jimp/file-ops/dist/commonjs/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..2741fa12c21412eb467a47a929f24159409aa2cc
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/commonjs/index.js
@@ -0,0 +1,9 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.writeFile = exports.readFile = exports.existsSync = void 0;
+const fs_1 = require("fs");
+var fs_2 = require("fs");
+Object.defineProperty(exports, "existsSync", { enumerable: true, get: function () { return fs_2.existsSync; } });
+exports.readFile = fs_1.promises.readFile;
+exports.writeFile = fs_1.promises.writeFile;
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/commonjs/index.js.map b/node_modules/@jimp/file-ops/dist/commonjs/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..b9692d7a43ea7118a43311186aec8ba92c4929de
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,2BAAoC;AAEpC,yBAAgC;AAAvB,gGAAA,UAAU,OAAA;AACN,QAAA,QAAQ,GAAG,aAAE,CAAC,QAAQ,CAAC;AACvB,QAAA,SAAS,GAAG,aAAE,CAAC,SAAS,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/commonjs/package.json b/node_modules/@jimp/file-ops/dist/commonjs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/@jimp/file-ops/dist/esm/index.d.ts b/node_modules/@jimp/file-ops/dist/esm/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..198403790a2a9630c896c6702e1568dae4535488
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/esm/index.d.ts
@@ -0,0 +1,5 @@
+import { promises as fs } from "fs";
+export { existsSync } from "fs";
+export declare const readFile: typeof fs.readFile;
+export declare const writeFile: typeof fs.writeFile;
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/esm/index.d.ts.map b/node_modules/@jimp/file-ops/dist/esm/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..bb98818a2fa28661dbd7807d8e17faedd59f07d8
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/esm/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,eAAO,MAAM,QAAQ,oBAAc,CAAC;AACpC,eAAO,MAAM,SAAS,qBAAe,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/esm/index.js b/node_modules/@jimp/file-ops/dist/esm/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..036260534266c72bccbf0e6432bfac9a0050f330
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/esm/index.js
@@ -0,0 +1,5 @@
+import { promises as fs } from "fs";
+export { existsSync } from "fs";
+export const readFile = fs.readFile;
+export const writeFile = fs.writeFile;
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/esm/index.js.map b/node_modules/@jimp/file-ops/dist/esm/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..a282c9ffe5ccc93e34639a7e44e3be65784b221c
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;AACpC,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/dist/esm/package.json b/node_modules/@jimp/file-ops/dist/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/file-ops/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/file-ops/eslint.config.mjs b/node_modules/@jimp/file-ops/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..939816d0a4be5f347676861f9592614a0ca07046
--- /dev/null
+++ b/node_modules/@jimp/file-ops/eslint.config.mjs
@@ -0,0 +1,2 @@
+import shared from "@jimp/config-eslint/base.js";
+export default [...shared];
\ No newline at end of file
diff --git a/node_modules/@jimp/file-ops/package.json b/node_modules/@jimp/file-ops/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..de869afda5060518b9647b0f9d90248f943610da
--- /dev/null
+++ b/node_modules/@jimp/file-ops/package.json
@@ -0,0 +1,63 @@
+{
+ "name": "@jimp/file-ops",
+ "version": "1.6.1",
+ "repository": "jimp-dev/jimp",
+ "engines": {
+ "node": ">=18"
+ },
+ "scripts": {
+ "lint": "eslint .",
+ "build": "tshy",
+ "dev": "tshy --watch",
+ "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo"
+ },
+ "author": "Andrew Lisowski ",
+ "license": "MIT",
+ "devDependencies": {
+ "@jimp/config-eslint": "1.6.1",
+ "@jimp/config-typescript": "1.6.1",
+ "@types/node": "^18.19.48",
+ "eslint": "^9.9.1",
+ "tshy": "^3.0.2",
+ "typescript": "^5.5.4",
+ "vitest": "^2.0.5"
+ },
+ "tshy": {
+ "exclude": [
+ "**/*.test.ts"
+ ],
+ "esmDialects": [
+ "browser"
+ ],
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ }
+ },
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ },
+ "main": "./dist/commonjs/index.js",
+ "types": "./dist/commonjs/index.d.ts",
+ "type": "module",
+ "publishConfig": {
+ "access": "public"
+ },
+ "sideEffects": false,
+ "module": "./dist/esm/index.js",
+ "gitHead": "7e6a95694e00a8b6f1bdd9aad709f5413eb9b08c"
+}
diff --git a/node_modules/@jimp/file-ops/src/index-browser.mts b/node_modules/@jimp/file-ops/src/index-browser.mts
new file mode 100644
index 0000000000000000000000000000000000000000..1719e1c414e073dc9a92f4088254d1b4918384af
--- /dev/null
+++ b/node_modules/@jimp/file-ops/src/index-browser.mts
@@ -0,0 +1,9 @@
+export const existsSync = () => false;
+
+export const readFile = async () => {
+ throw new Error("Not supported");
+};
+
+export const writeFile = async () => {
+ throw new Error("Not supported");
+};
diff --git a/node_modules/@jimp/file-ops/src/index.ts b/node_modules/@jimp/file-ops/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..ce9fc1b7b5024458d86ffa0e8765bb7c4c5116fb
--- /dev/null
+++ b/node_modules/@jimp/file-ops/src/index.ts
@@ -0,0 +1,5 @@
+import { promises as fs } from "fs";
+
+export { existsSync } from "fs";
+export const readFile = fs.readFile;
+export const writeFile = fs.writeFile;
diff --git a/node_modules/@jimp/file-ops/tsconfig.json b/node_modules/@jimp/file-ops/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad7f216ca2b10874329665feda994727844e4305
--- /dev/null
+++ b/node_modules/@jimp/file-ops/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "extends": "@jimp/config-typescript/base.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ }
+}
diff --git a/node_modules/@jimp/js-bmp/.tshy/build.json b/node_modules/@jimp/js-bmp/.tshy/build.json
new file mode 100644
index 0000000000000000000000000000000000000000..aea1a9e93b5db3468973ebeaad6dac0a77b10c02
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/.tshy/build.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "../src",
+ "module": "nodenext",
+ "moduleResolution": "nodenext"
+ }
+}
diff --git a/node_modules/@jimp/js-bmp/.tshy/commonjs.json b/node_modules/@jimp/js-bmp/.tshy/commonjs.json
new file mode 100644
index 0000000000000000000000000000000000000000..75bcfc1d756dcb1baafc973385c81c5aa93f3174
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/.tshy/commonjs.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.cts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/**/*.mts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/commonjs"
+ }
+}
diff --git a/node_modules/@jimp/js-bmp/.tshy/esm.json b/node_modules/@jimp/js-bmp/.tshy/esm.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdc4fa775818876f2e8f6cd606e9bb337515ac56
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/.tshy/esm.json
@@ -0,0 +1,16 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.mts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/esm"
+ }
+}
diff --git a/node_modules/@jimp/js-bmp/CHANGELOG.md b/node_modules/@jimp/js-bmp/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..1eb5e248fea3643b21f1a7e4efabb731b7910f2b
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/CHANGELOG.md
@@ -0,0 +1,73 @@
+# v1.5.0 (Sat Sep 07 2024)
+
+### Release Notes
+
+#### Add support for image decoder options ([#1336](https://github.com/jimp-dev/jimp/pull/1336))
+
+Can now have options for the underlying image codecs
+
+
+
+---
+
+#### 🚀 Enhancement
+
+- Add support for image decoder options [#1336](https://github.com/jimp-dev/jimp/pull/1336) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.3 (Mon Sep 02 2024)
+
+#### 🐛 Bug Fix
+
+- Update deps [#1319](https://github.com/jimp-dev/jimp/pull/1319) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.0 (Sun Sep 01 2024)
+
+#### ⚠️ Pushed to `main`
+
+- upgrade tshy ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.3 (Sat Aug 31 2024)
+
+#### 🐛 Bug Fix
+
+- Fix build [#1303](https://github.com/jimp-dev/jimp/pull/1303) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### ⚠️ Pushed to `main`
+
+- add clean script ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.2 (Sat Aug 31 2024)
+
+#### ⚠️ Pushed to `main`
+
+- set side effects ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- fix versions ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- add publish config ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
diff --git a/node_modules/@jimp/js-bmp/LICENSE b/node_modules/@jimp/js-bmp/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..baa5d48509a18b9ab4f6c39289362690ea68e688
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Oliver Moran
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@jimp/js-bmp/README.md b/node_modules/@jimp/js-bmp/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..dd90e545c4993d9f826553f1c6c85fc2a746f5c5
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/README.md
@@ -0,0 +1,6 @@
+
+

+
@jimp/bmp
+
Default Jimp bmp encoder/decoder.
+
diff --git a/node_modules/@jimp/js-bmp/dist/commonjs/index.d.ts b/node_modules/@jimp/js-bmp/dist/commonjs/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d7e69c86eed24918f8eb69399880839a7f346cf0
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/commonjs/index.d.ts
@@ -0,0 +1,24 @@
+import * as BMP from "bmp-ts";
+import { Bitmap } from "@jimp/types";
+export type { BmpColor } from "bmp-ts";
+export { BmpCompression } from "bmp-ts";
+type Pretty = {
+ [K in keyof T]: T[K] extends (...args: any[]) => any ? T[K] : T[K] extends object ? Pretty : T[K];
+};
+export type EncodeOptions = Pretty>>;
+export interface DecodeBmpOptions {
+ toRGBA?: boolean;
+}
+declare function encode(image: Bitmap, options?: EncodeOptions): Buffer;
+declare function decode(data: Buffer, options?: DecodeBmpOptions): Bitmap;
+export declare function msBmp(): {
+ mime: "image/x-ms-bmp";
+ encode: typeof encode;
+ decode: typeof decode;
+};
+export default function bmp(): {
+ mime: "image/bmp";
+ encode: typeof encode;
+ decode: typeof decode;
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/dist/commonjs/index.d.ts.map b/node_modules/@jimp/js-bmp/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..13fb84c7c2dc3c0b8f067634fcfa9a962f0a75f2
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAG9B,OAAO,EAAE,MAAM,EAAU,MAAM,aAAa,CAAC;AAE7C,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,KAAK,MAAM,CAAC,CAAC,IAAI;KAEd,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAChD,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACZ,CAAC,CAAC,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,OAAO,CACL,IAAI,CACF,GAAG,CAAC,QAAQ,EACV,SAAS,GACT,QAAQ,GACR,iBAAiB,GACjB,IAAI,GACJ,IAAI,GACJ,WAAW,GACX,WAAW,CACd,CACF,CACF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,iBAAS,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,UAqBzD;AAED,iBAAS,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAsBrC,MAAM,CACxB;AAED,wBAAgB,KAAK;;;;EAMpB;AAED,MAAM,CAAC,OAAO,UAAU,GAAG;;;;EAM1B"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/dist/commonjs/index.js b/node_modules/@jimp/js-bmp/dist/commonjs/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..84634224bd3160777e5d8d745fc1e429f4b30d8b
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/commonjs/index.js
@@ -0,0 +1,74 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.BmpCompression = void 0;
+exports.msBmp = msBmp;
+exports.default = bmp;
+const BMP = __importStar(require("bmp-ts"));
+const utils_1 = require("@jimp/utils");
+var bmp_ts_1 = require("bmp-ts");
+Object.defineProperty(exports, "BmpCompression", { enumerable: true, get: function () { return bmp_ts_1.BmpCompression; } });
+function encode(image, options = {}) {
+ (0, utils_1.scan)({ bitmap: image }, 0, 0, image.width, image.height, function (_, __, index) {
+ const red = image.data[index + 0];
+ const green = image.data[index + 1];
+ const blue = image.data[index + 2];
+ const alpha = image.data[index + 3];
+ image.data[index + 0] = alpha;
+ image.data[index + 1] = blue;
+ image.data[index + 2] = green;
+ image.data[index + 3] = red;
+ });
+ return BMP.encode({ ...image, ...options }).data;
+}
+function decode(data, options) {
+ const result = BMP.decode(data, options);
+ (0, utils_1.scan)({ bitmap: result }, 0, 0, result.width, result.height, function (_, __, index) {
+ // const alpha = result.data[index + 0]!;
+ const blue = result.data[index + 1];
+ const green = result.data[index + 2];
+ const red = result.data[index + 3];
+ result.data[index + 0] = red;
+ result.data[index + 1] = green;
+ result.data[index + 2] = blue;
+ result.data[index + 3] = 0xff;
+ });
+ return result;
+}
+function msBmp() {
+ return {
+ mime: "image/x-ms-bmp",
+ encode,
+ decode,
+ };
+}
+function bmp() {
+ return {
+ mime: "image/bmp",
+ encode,
+ decode,
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/dist/commonjs/index.js.map b/node_modules/@jimp/js-bmp/dist/commonjs/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..b3ff2688fad1ac16cb1e9f2743e0dd8b1ff5820e
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoFA,sBAMC;AAED,sBAMC;AAlGD,4CAA8B;AAE9B,uCAAmC;AAInC,iCAAwC;AAA/B,wGAAA,cAAc,OAAA;AA8BvB,SAAS,MAAM,CAAC,KAAa,EAAE,UAAyB,EAAE;IACxD,IAAA,YAAI,EACF,EAAE,MAAM,EAAE,KAAK,EAAE,EACjB,CAAC,EACD,CAAC,EACD,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,MAAM,EACZ,UAAU,CAAC,EAAE,EAAE,EAAE,KAAK;QACpB,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACrC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACpC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QAErC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IAC9B,CAAC,CACF,CAAC;IAEF,OAAO,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC;AACnD,CAAC;AAED,SAAS,MAAM,CAAC,IAAY,EAAE,OAA0B;IACtD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEzC,IAAA,YAAI,EACF,EAAE,MAAM,EAAE,MAAM,EAAE,EAClB,CAAC,EACD,CAAC,EACD,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,MAAM,EACb,UAAU,CAAC,EAAE,EAAE,EAAE,KAAK;QACpB,yCAAyC;QACzC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACrC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACtC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QAEpC,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;QAC7B,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;IAChC,CAAC,CACF,CAAC;IAEF,OAAO,MAAgB,CAAC;AAC1B,CAAC;AAED,SAAgB,KAAK;IACnB,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,MAAM;QACN,MAAM;KAC4B,CAAC;AACvC,CAAC;AAED,SAAwB,GAAG;IACzB,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,MAAM;QACN,MAAM;KACuB,CAAC;AAClC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/dist/commonjs/package.json b/node_modules/@jimp/js-bmp/dist/commonjs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/@jimp/js-bmp/dist/esm/index.d.ts b/node_modules/@jimp/js-bmp/dist/esm/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d7e69c86eed24918f8eb69399880839a7f346cf0
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/esm/index.d.ts
@@ -0,0 +1,24 @@
+import * as BMP from "bmp-ts";
+import { Bitmap } from "@jimp/types";
+export type { BmpColor } from "bmp-ts";
+export { BmpCompression } from "bmp-ts";
+type Pretty = {
+ [K in keyof T]: T[K] extends (...args: any[]) => any ? T[K] : T[K] extends object ? Pretty : T[K];
+};
+export type EncodeOptions = Pretty>>;
+export interface DecodeBmpOptions {
+ toRGBA?: boolean;
+}
+declare function encode(image: Bitmap, options?: EncodeOptions): Buffer;
+declare function decode(data: Buffer, options?: DecodeBmpOptions): Bitmap;
+export declare function msBmp(): {
+ mime: "image/x-ms-bmp";
+ encode: typeof encode;
+ decode: typeof decode;
+};
+export default function bmp(): {
+ mime: "image/bmp";
+ encode: typeof encode;
+ decode: typeof decode;
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/dist/esm/index.d.ts.map b/node_modules/@jimp/js-bmp/dist/esm/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..13fb84c7c2dc3c0b8f067634fcfa9a962f0a75f2
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/esm/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAG9B,OAAO,EAAE,MAAM,EAAU,MAAM,aAAa,CAAC;AAE7C,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,KAAK,MAAM,CAAC,CAAC,IAAI;KAEd,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAChD,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACZ,CAAC,CAAC,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,OAAO,CACL,IAAI,CACF,GAAG,CAAC,QAAQ,EACV,SAAS,GACT,QAAQ,GACR,iBAAiB,GACjB,IAAI,GACJ,IAAI,GACJ,WAAW,GACX,WAAW,CACd,CACF,CACF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,iBAAS,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,UAqBzD;AAED,iBAAS,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAsBrC,MAAM,CACxB;AAED,wBAAgB,KAAK;;;;EAMpB;AAED,MAAM,CAAC,OAAO,UAAU,GAAG;;;;EAM1B"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/dist/esm/index.js b/node_modules/@jimp/js-bmp/dist/esm/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..d210f35c381e7c88fcddce1655ec9713c06ae6da
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/esm/index.js
@@ -0,0 +1,45 @@
+import * as BMP from "bmp-ts";
+import { scan } from "@jimp/utils";
+export { BmpCompression } from "bmp-ts";
+function encode(image, options = {}) {
+ scan({ bitmap: image }, 0, 0, image.width, image.height, function (_, __, index) {
+ const red = image.data[index + 0];
+ const green = image.data[index + 1];
+ const blue = image.data[index + 2];
+ const alpha = image.data[index + 3];
+ image.data[index + 0] = alpha;
+ image.data[index + 1] = blue;
+ image.data[index + 2] = green;
+ image.data[index + 3] = red;
+ });
+ return BMP.encode({ ...image, ...options }).data;
+}
+function decode(data, options) {
+ const result = BMP.decode(data, options);
+ scan({ bitmap: result }, 0, 0, result.width, result.height, function (_, __, index) {
+ // const alpha = result.data[index + 0]!;
+ const blue = result.data[index + 1];
+ const green = result.data[index + 2];
+ const red = result.data[index + 3];
+ result.data[index + 0] = red;
+ result.data[index + 1] = green;
+ result.data[index + 2] = blue;
+ result.data[index + 3] = 0xff;
+ });
+ return result;
+}
+export function msBmp() {
+ return {
+ mime: "image/x-ms-bmp",
+ encode,
+ decode,
+ };
+}
+export default function bmp() {
+ return {
+ mime: "image/bmp",
+ encode,
+ decode,
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/dist/esm/index.js.map b/node_modules/@jimp/js-bmp/dist/esm/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..858360346010339bb0563f81cd41c0462acb67cc
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAInC,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AA8BxC,SAAS,MAAM,CAAC,KAAa,EAAE,UAAyB,EAAE;IACxD,IAAI,CACF,EAAE,MAAM,EAAE,KAAK,EAAE,EACjB,CAAC,EACD,CAAC,EACD,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,MAAM,EACZ,UAAU,CAAC,EAAE,EAAE,EAAE,KAAK;QACpB,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACrC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACpC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QAErC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IAC9B,CAAC,CACF,CAAC;IAEF,OAAO,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC;AACnD,CAAC;AAED,SAAS,MAAM,CAAC,IAAY,EAAE,OAA0B;IACtD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEzC,IAAI,CACF,EAAE,MAAM,EAAE,MAAM,EAAE,EAClB,CAAC,EACD,CAAC,EACD,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,MAAM,EACb,UAAU,CAAC,EAAE,EAAE,EAAE,KAAK;QACpB,yCAAyC;QACzC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACrC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QACtC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAE,CAAC;QAEpC,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;QAC7B,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;IAChC,CAAC,CACF,CAAC;IAEF,OAAO,MAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,KAAK;IACnB,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,MAAM;QACN,MAAM;KAC4B,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,GAAG;IACzB,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,MAAM;QACN,MAAM;KACuB,CAAC;AAClC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/dist/esm/package.json b/node_modules/@jimp/js-bmp/dist/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/js-bmp/eslint.config.mjs b/node_modules/@jimp/js-bmp/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..939816d0a4be5f347676861f9592614a0ca07046
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/eslint.config.mjs
@@ -0,0 +1,2 @@
+import shared from "@jimp/config-eslint/base.js";
+export default [...shared];
\ No newline at end of file
diff --git a/node_modules/@jimp/js-bmp/package.json b/node_modules/@jimp/js-bmp/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..9c57777b576e638bfe2e9d07fbc2d51dbd6c83cf
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/package.json
@@ -0,0 +1,69 @@
+{
+ "name": "@jimp/js-bmp",
+ "version": "1.6.1",
+ "repository": "jimp-dev/jimp",
+ "engines": {
+ "node": ">=18"
+ },
+ "scripts": {
+ "lint": "eslint .",
+ "test": "vitest",
+ "test:browser": "vitest --config vitest.config.browser.mjs",
+ "build": "tshy",
+ "dev": "tshy --watch",
+ "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo"
+ },
+ "author": "Andrew Lisowski ",
+ "license": "MIT",
+ "devDependencies": {
+ "@jimp/config-eslint": "1.6.1",
+ "@jimp/config-typescript": "1.6.1",
+ "@jimp/config-vitest": "1.6.1",
+ "@jimp/js-png": "1.6.1",
+ "@jimp/test-utils": "1.6.1",
+ "@types/node": "^18.19.48",
+ "@vitest/browser": "^2.0.5",
+ "eslint": "^9.9.1",
+ "tshy": "^3.0.2",
+ "typescript": "^5.5.4",
+ "vite-plugin-node-polyfills": "^0.22.0",
+ "vitest": "^2.0.5"
+ },
+ "tshy": {
+ "exclude": [
+ "**/*.test.ts"
+ ],
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ }
+ },
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ },
+ "main": "./dist/commonjs/index.js",
+ "types": "./dist/commonjs/index.d.ts",
+ "type": "module",
+ "dependencies": {
+ "@jimp/core": "1.6.1",
+ "@jimp/types": "1.6.1",
+ "@jimp/utils": "1.6.1",
+ "bmp-ts": "^1.0.9"
+ },
+ "publishConfig": {
+ "access": "public"
+ },
+ "sideEffects": false,
+ "module": "./dist/esm/index.js",
+ "gitHead": "7e6a95694e00a8b6f1bdd9aad709f5413eb9b08c"
+}
diff --git a/node_modules/@jimp/js-bmp/src/images/windows95.bmp b/node_modules/@jimp/js-bmp/src/images/windows95.bmp
new file mode 100644
index 0000000000000000000000000000000000000000..484be51b27f58fbccb166a9b90fd30906289ad9a
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/src/images/windows95.bmp
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c82e66ebf4477e93d91fb0953478a4f31d42a6e915dcc777b1a8d22db82c0af6
+size 129078
diff --git a/node_modules/@jimp/js-bmp/src/images/windows95.png b/node_modules/@jimp/js-bmp/src/images/windows95.png
new file mode 100644
index 0000000000000000000000000000000000000000..57b7cf735d99ee83f79a2d1b72d79225a96ec84b
Binary files /dev/null and b/node_modules/@jimp/js-bmp/src/images/windows95.png differ
diff --git a/node_modules/@jimp/js-bmp/src/index.node.test.ts b/node_modules/@jimp/js-bmp/src/index.node.test.ts
new file mode 100644
index 0000000000000000000000000000000000000000..c4b7aaf2d78a6ed48339e719d374178995154ac6
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/src/index.node.test.ts
@@ -0,0 +1,17 @@
+import { describe, expect, test } from "vitest";
+import { createJimp } from "@jimp/core";
+import { getTestImagePath } from "@jimp/test-utils";
+
+import png from "@jimp/js-png";
+import bmp from "./index.js";
+
+const jimp = createJimp({ formats: [bmp, png] });
+
+describe("BMP", () => {
+ test("uses correct colors for BMP", async function () {
+ const expectedImg = await jimp.read(getTestImagePath("windows95.png"));
+ const image = await jimp.read(getTestImagePath("windows95.bmp"));
+
+ expect(image.bitmap.data).toEqual(expectedImg.bitmap.data);
+ });
+});
diff --git a/node_modules/@jimp/js-bmp/src/index.test.ts b/node_modules/@jimp/js-bmp/src/index.test.ts
new file mode 100644
index 0000000000000000000000000000000000000000..021cb766d3fde021b4b5633a3eccf45a9f91acde
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/src/index.test.ts
@@ -0,0 +1,32 @@
+import { describe, expect, test } from "vitest";
+import { createJimp } from "@jimp/core";
+import { getTestImagePath } from "@jimp/test-utils";
+
+import png from "@jimp/js-png";
+import bmp from "./index.js";
+
+const jimp = createJimp({ formats: [bmp, png] });
+
+describe("BMP", () => {
+ test("load BMP", async () => {
+ const image = await jimp.read(getTestImagePath("windows95.bmp"));
+
+ expect(image.getPixelColor(10, 10)).toBe(0xeff7f7ff);
+ expect(image.getPixelColor(150, 80)).toBe(0x73add6ff);
+ expect(image.getPixelColor(190, 200)).toBe(0xf7c300ff);
+ });
+
+ test("export BMP", async () => {
+ const image = jimp.fromBitmap({
+ width: 3,
+ height: 3,
+ data: [
+ 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff,
+ 0xff00ffff, 0x8000ffff, 0x0000ffff,
+ ],
+ });
+ const buffer = await image.getBuffer("image/bmp");
+
+ expect(buffer.toString()).toMatch(/^BM/);
+ });
+});
diff --git a/node_modules/@jimp/js-bmp/src/index.ts b/node_modules/@jimp/js-bmp/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..8dc8d366a00cfe74bc159d236f8ce7d2b1bf4251
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/src/index.ts
@@ -0,0 +1,99 @@
+import * as BMP from "bmp-ts";
+
+import { scan } from "@jimp/utils";
+import { Bitmap, Format } from "@jimp/types";
+
+export type { BmpColor } from "bmp-ts";
+export { BmpCompression } from "bmp-ts";
+
+type Pretty = {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ [K in keyof T]: T[K] extends (...args: any[]) => any
+ ? T[K]
+ : T[K] extends object
+ ? Pretty
+ : T[K];
+};
+
+export type EncodeOptions = Pretty<
+ Partial<
+ Pick<
+ BMP.BmpImage,
+ | "palette"
+ | "colors"
+ | "importantColors"
+ | "hr"
+ | "vr"
+ | "reserved1"
+ | "reserved2"
+ >
+ >
+>;
+
+export interface DecodeBmpOptions {
+ toRGBA?: boolean;
+}
+
+function encode(image: Bitmap, options: EncodeOptions = {}) {
+ scan(
+ { bitmap: image },
+ 0,
+ 0,
+ image.width,
+ image.height,
+ function (_, __, index) {
+ const red = image.data[index + 0]!;
+ const green = image.data[index + 1]!;
+ const blue = image.data[index + 2]!;
+ const alpha = image.data[index + 3]!;
+
+ image.data[index + 0] = alpha;
+ image.data[index + 1] = blue;
+ image.data[index + 2] = green;
+ image.data[index + 3] = red;
+ }
+ );
+
+ return BMP.encode({ ...image, ...options }).data;
+}
+
+function decode(data: Buffer, options?: DecodeBmpOptions) {
+ const result = BMP.decode(data, options);
+
+ scan(
+ { bitmap: result },
+ 0,
+ 0,
+ result.width,
+ result.height,
+ function (_, __, index) {
+ // const alpha = result.data[index + 0]!;
+ const blue = result.data[index + 1]!;
+ const green = result.data[index + 2]!;
+ const red = result.data[index + 3]!;
+
+ result.data[index + 0] = red;
+ result.data[index + 1] = green;
+ result.data[index + 2] = blue;
+ result.data[index + 3] = 0xff;
+ }
+ );
+
+ return result as Bitmap;
+}
+
+export function msBmp() {
+ return {
+ mime: "image/x-ms-bmp",
+ encode,
+ decode,
+ } satisfies Format<"image/x-ms-bmp">;
+}
+
+export default function bmp() {
+ return {
+ mime: "image/bmp",
+ encode,
+ decode,
+ } satisfies Format<"image/bmp">;
+}
diff --git a/node_modules/@jimp/js-bmp/tsconfig.json b/node_modules/@jimp/js-bmp/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad7f216ca2b10874329665feda994727844e4305
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "extends": "@jimp/config-typescript/base.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ }
+}
diff --git a/node_modules/@jimp/js-bmp/vitest.config.browser.mjs b/node_modules/@jimp/js-bmp/vitest.config.browser.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..dfe6aff6b16f48bc45697e4c14219f2034754cf5
--- /dev/null
+++ b/node_modules/@jimp/js-bmp/vitest.config.browser.mjs
@@ -0,0 +1,3 @@
+import config from "@jimp/config-vitest/browser";
+
+export default config;
diff --git a/node_modules/@jimp/js-gif/.tshy/build.json b/node_modules/@jimp/js-gif/.tshy/build.json
new file mode 100644
index 0000000000000000000000000000000000000000..aea1a9e93b5db3468973ebeaad6dac0a77b10c02
--- /dev/null
+++ b/node_modules/@jimp/js-gif/.tshy/build.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "../src",
+ "module": "nodenext",
+ "moduleResolution": "nodenext"
+ }
+}
diff --git a/node_modules/@jimp/js-gif/.tshy/commonjs.json b/node_modules/@jimp/js-gif/.tshy/commonjs.json
new file mode 100644
index 0000000000000000000000000000000000000000..75bcfc1d756dcb1baafc973385c81c5aa93f3174
--- /dev/null
+++ b/node_modules/@jimp/js-gif/.tshy/commonjs.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.cts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/**/*.mts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/commonjs"
+ }
+}
diff --git a/node_modules/@jimp/js-gif/.tshy/esm.json b/node_modules/@jimp/js-gif/.tshy/esm.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdc4fa775818876f2e8f6cd606e9bb337515ac56
--- /dev/null
+++ b/node_modules/@jimp/js-gif/.tshy/esm.json
@@ -0,0 +1,16 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.mts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/esm"
+ }
+}
diff --git a/node_modules/@jimp/js-gif/CHANGELOG.md b/node_modules/@jimp/js-gif/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..8a5e43d877c675803da2600252741c13cc2df3c4
--- /dev/null
+++ b/node_modules/@jimp/js-gif/CHANGELOG.md
@@ -0,0 +1,39 @@
+# v1.1.3 (Mon Sep 02 2024)
+
+#### 🐛 Bug Fix
+
+- Update deps [#1319](https://github.com/jimp-dev/jimp/pull/1319) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.3 (Sat Aug 31 2024)
+
+#### 🐛 Bug Fix
+
+- Fix build [#1303](https://github.com/jimp-dev/jimp/pull/1303) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### ⚠️ Pushed to `main`
+
+- add clean script ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.2 (Sat Aug 31 2024)
+
+#### ⚠️ Pushed to `main`
+
+- set side effects ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- fix versions ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- add publish config ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
diff --git a/node_modules/@jimp/js-gif/LICENSE b/node_modules/@jimp/js-gif/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..baa5d48509a18b9ab4f6c39289362690ea68e688
--- /dev/null
+++ b/node_modules/@jimp/js-gif/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Oliver Moran
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@jimp/js-gif/README.md b/node_modules/@jimp/js-gif/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..215eb3993215d6d5580acecabbd2d20964200f21
--- /dev/null
+++ b/node_modules/@jimp/js-gif/README.md
@@ -0,0 +1,8 @@
+
+

+
@jimp/gif
+
Default Jimp gif decoder.
+
+
+NOTE: Only supports single frame
diff --git a/node_modules/@jimp/js-gif/dist/commonjs/index.d.ts b/node_modules/@jimp/js-gif/dist/commonjs/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..34ce8eedc33bbda9114452699ee618cb936a2ed7
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/commonjs/index.d.ts
@@ -0,0 +1,13 @@
+export interface JPEGOptions {
+ quality?: number;
+}
+export default function gif(): {
+ mime: "image/gif";
+ encode: (bitmap: import("@jimp/types").Bitmap) => Promise;
+ decode: (data: Buffer) => {
+ data: Buffer;
+ width: number;
+ height: number;
+ };
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/dist/commonjs/index.d.ts.map b/node_modules/@jimp/js-gif/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..f4e64f69a874349e063e5b7483fcdda829c11989
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,GAAG;;;;;;;;EAwB1B"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/dist/commonjs/index.js b/node_modules/@jimp/js-gif/dist/commonjs/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..95004aa785322c0b92b38acf99da02a896d9190a
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/commonjs/index.js
@@ -0,0 +1,32 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.default = gif;
+const omggif_1 = __importDefault(require("omggif"));
+const gifwrap_1 = require("gifwrap");
+function gif() {
+ return {
+ mime: "image/gif",
+ encode: async (bitmap) => {
+ const gif = new gifwrap_1.BitmapImage(bitmap);
+ gifwrap_1.GifUtil.quantizeDekker(gif, 256);
+ const newFrame = new gifwrap_1.GifFrame(bitmap);
+ const gifCodec = new gifwrap_1.GifCodec();
+ const newGif = await gifCodec.encodeGif([newFrame], {});
+ return newGif.buffer;
+ },
+ decode: (data) => {
+ const gifObj = new omggif_1.default.GifReader(data);
+ const gifData = Buffer.alloc(gifObj.width * gifObj.height * 4);
+ gifObj.decodeAndBlitFrameRGBA(0, gifData);
+ return {
+ data: gifData,
+ width: gifObj.width,
+ height: gifObj.height,
+ };
+ },
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/dist/commonjs/index.js.map b/node_modules/@jimp/js-gif/dist/commonjs/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..689585b92aa8f5420bcc8640608ddbbe5821bed9
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAQA,sBAwBC;AAhCD,oDAAyB;AACzB,qCAAmE;AAOnE,SAAwB,GAAG;IACzB,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACvB,MAAM,GAAG,GAAG,IAAI,qBAAW,CAAC,MAAM,CAAC,CAAC;YACpC,iBAAO,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACjC,MAAM,QAAQ,GAAG,IAAI,kBAAQ,CAAC,MAAM,CAAC,CAAC;YACtC,MAAM,QAAQ,GAAG,IAAI,kBAAQ,EAAE,CAAC;YAChC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;YACxD,OAAO,MAAM,CAAC,MAAM,CAAC;QACvB,CAAC;QACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACf,MAAM,MAAM,GAAG,IAAI,gBAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACvC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAE/D,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAE1C,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;QACJ,CAAC;KAC4B,CAAC;AAClC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/dist/commonjs/package.json b/node_modules/@jimp/js-gif/dist/commonjs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/@jimp/js-gif/dist/esm/index.d.ts b/node_modules/@jimp/js-gif/dist/esm/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..34ce8eedc33bbda9114452699ee618cb936a2ed7
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/esm/index.d.ts
@@ -0,0 +1,13 @@
+export interface JPEGOptions {
+ quality?: number;
+}
+export default function gif(): {
+ mime: "image/gif";
+ encode: (bitmap: import("@jimp/types").Bitmap) => Promise;
+ decode: (data: Buffer) => {
+ data: Buffer;
+ width: number;
+ height: number;
+ };
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/dist/esm/index.d.ts.map b/node_modules/@jimp/js-gif/dist/esm/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..f4e64f69a874349e063e5b7483fcdda829c11989
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/esm/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,GAAG;;;;;;;;EAwB1B"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/dist/esm/index.js b/node_modules/@jimp/js-gif/dist/esm/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..c366d4b4e18002e49e72ed03de383bb8d0d6a9c7
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/esm/index.js
@@ -0,0 +1,26 @@
+import GIF from "omggif";
+import { GifUtil, GifFrame, BitmapImage, GifCodec } from "gifwrap";
+export default function gif() {
+ return {
+ mime: "image/gif",
+ encode: async (bitmap) => {
+ const gif = new BitmapImage(bitmap);
+ GifUtil.quantizeDekker(gif, 256);
+ const newFrame = new GifFrame(bitmap);
+ const gifCodec = new GifCodec();
+ const newGif = await gifCodec.encodeGif([newFrame], {});
+ return newGif.buffer;
+ },
+ decode: (data) => {
+ const gifObj = new GIF.GifReader(data);
+ const gifData = Buffer.alloc(gifObj.width * gifObj.height * 4);
+ gifObj.decodeAndBlitFrameRGBA(0, gifData);
+ return {
+ data: gifData,
+ width: gifObj.width,
+ height: gifObj.height,
+ };
+ },
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/dist/esm/index.js.map b/node_modules/@jimp/js-gif/dist/esm/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..d8e7d7f1c09475097298f90ab1431713fd8f0ec8
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,QAAQ,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOnE,MAAM,CAAC,OAAO,UAAU,GAAG;IACzB,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACvB,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;YACpC,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACjC,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;YACtC,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;YAChC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;YACxD,OAAO,MAAM,CAAC,MAAM,CAAC;QACvB,CAAC;QACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACf,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACvC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAE/D,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAE1C,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;QACJ,CAAC;KAC4B,CAAC;AAClC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/dist/esm/package.json b/node_modules/@jimp/js-gif/dist/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/js-gif/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/js-gif/eslint.config.mjs b/node_modules/@jimp/js-gif/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..939816d0a4be5f347676861f9592614a0ca07046
--- /dev/null
+++ b/node_modules/@jimp/js-gif/eslint.config.mjs
@@ -0,0 +1,2 @@
+import shared from "@jimp/config-eslint/base.js";
+export default [...shared];
\ No newline at end of file
diff --git a/node_modules/@jimp/js-gif/package.json b/node_modules/@jimp/js-gif/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..e29dc3640f6c55bd2db0f83763b2556ed9bd3223
--- /dev/null
+++ b/node_modules/@jimp/js-gif/package.json
@@ -0,0 +1,69 @@
+{
+ "name": "@jimp/js-gif",
+ "version": "1.6.1",
+ "repository": "jimp-dev/jimp",
+ "engines": {
+ "node": ">=18"
+ },
+ "scripts": {
+ "lint": "eslint .",
+ "test": "vitest",
+ "test:browser": "vitest --config vitest.config.browser.mjs",
+ "build": "tshy",
+ "dev": "tshy --watch",
+ "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo"
+ },
+ "author": "Andrew Lisowski ",
+ "license": "MIT",
+ "devDependencies": {
+ "@jimp/config-eslint": "1.6.1",
+ "@jimp/config-typescript": "1.6.1",
+ "@jimp/config-vitest": "1.6.1",
+ "@jimp/test-utils": "1.6.1",
+ "@types/node": "^18.19.48",
+ "@types/omggif": "^1.0.5",
+ "@vitest/browser": "^2.0.5",
+ "eslint": "^9.9.1",
+ "tshy": "^3.0.2",
+ "typescript": "^5.5.4",
+ "vite-plugin-node-polyfills": "^0.22.0",
+ "vitest": "^2.0.5"
+ },
+ "tshy": {
+ "exclude": [
+ "**/*.test.ts"
+ ],
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ }
+ },
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ },
+ "main": "./dist/commonjs/index.js",
+ "types": "./dist/commonjs/index.d.ts",
+ "type": "module",
+ "dependencies": {
+ "@jimp/core": "1.6.1",
+ "@jimp/types": "1.6.1",
+ "gifwrap": "^0.10.1",
+ "omggif": "^1.0.10"
+ },
+ "publishConfig": {
+ "access": "public"
+ },
+ "sideEffects": false,
+ "module": "./dist/esm/index.js",
+ "gitHead": "7e6a95694e00a8b6f1bdd9aad709f5413eb9b08c"
+}
diff --git a/node_modules/@jimp/js-gif/src/index.test.ts b/node_modules/@jimp/js-gif/src/index.test.ts
new file mode 100644
index 0000000000000000000000000000000000000000..391710dec776d18557746bfb09393a2902cf7db5
--- /dev/null
+++ b/node_modules/@jimp/js-gif/src/index.test.ts
@@ -0,0 +1,25 @@
+import { expect, test, describe } from "vitest";
+import { createJimp } from "@jimp/core";
+import { getTestImagePath } from "@jimp/test-utils";
+
+import gif from "./index.js";
+
+const jimp = createJimp({ formats: [gif] });
+
+describe("GIF", () => {
+ test("load GIF", async () => {
+ const image = await jimp.read(getTestImagePath("flower.gif"));
+ expect(image.getPixelColor(10, 10)).toBe(0xfefefeff);
+ });
+
+ test("load animated GIF", async () => {
+ const image = await jimp.read(getTestImagePath("animated.gif"));
+ expect(image.getPixelColor(10, 10)).toBe(0xa1d2f1ff);
+ });
+
+ test("export GIF", async () => {
+ const jgd = await jimp.read(getTestImagePath("flower.gif"));
+ const buffer = await jgd.getBuffer("image/gif");
+ expect(buffer.toString()).toMatch(/^GIF/);
+ });
+});
diff --git a/node_modules/@jimp/js-gif/src/index.ts b/node_modules/@jimp/js-gif/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..bc78a120677231601af18935add0775d19d7e5b8
--- /dev/null
+++ b/node_modules/@jimp/js-gif/src/index.ts
@@ -0,0 +1,33 @@
+import GIF from "omggif";
+import { GifUtil, GifFrame, BitmapImage, GifCodec } from "gifwrap";
+import { Format } from "@jimp/types";
+
+export interface JPEGOptions {
+ quality?: number;
+}
+
+export default function gif() {
+ return {
+ mime: "image/gif",
+ encode: async (bitmap) => {
+ const gif = new BitmapImage(bitmap);
+ GifUtil.quantizeDekker(gif, 256);
+ const newFrame = new GifFrame(bitmap);
+ const gifCodec = new GifCodec();
+ const newGif = await gifCodec.encodeGif([newFrame], {});
+ return newGif.buffer;
+ },
+ decode: (data) => {
+ const gifObj = new GIF.GifReader(data);
+ const gifData = Buffer.alloc(gifObj.width * gifObj.height * 4);
+
+ gifObj.decodeAndBlitFrameRGBA(0, gifData);
+
+ return {
+ data: gifData,
+ width: gifObj.width,
+ height: gifObj.height,
+ };
+ },
+ } satisfies Format<"image/gif">;
+}
diff --git a/node_modules/@jimp/js-gif/tsconfig.json b/node_modules/@jimp/js-gif/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad7f216ca2b10874329665feda994727844e4305
--- /dev/null
+++ b/node_modules/@jimp/js-gif/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "extends": "@jimp/config-typescript/base.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ }
+}
diff --git a/node_modules/@jimp/js-gif/vitest.config.browser.mjs b/node_modules/@jimp/js-gif/vitest.config.browser.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..dfe6aff6b16f48bc45697e4c14219f2034754cf5
--- /dev/null
+++ b/node_modules/@jimp/js-gif/vitest.config.browser.mjs
@@ -0,0 +1,3 @@
+import config from "@jimp/config-vitest/browser";
+
+export default config;
diff --git a/node_modules/@jimp/js-jpeg/.tshy/build.json b/node_modules/@jimp/js-jpeg/.tshy/build.json
new file mode 100644
index 0000000000000000000000000000000000000000..aea1a9e93b5db3468973ebeaad6dac0a77b10c02
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/.tshy/build.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "../src",
+ "module": "nodenext",
+ "moduleResolution": "nodenext"
+ }
+}
diff --git a/node_modules/@jimp/js-jpeg/.tshy/commonjs.json b/node_modules/@jimp/js-jpeg/.tshy/commonjs.json
new file mode 100644
index 0000000000000000000000000000000000000000..75bcfc1d756dcb1baafc973385c81c5aa93f3174
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/.tshy/commonjs.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.cts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/**/*.mts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/commonjs"
+ }
+}
diff --git a/node_modules/@jimp/js-jpeg/.tshy/esm.json b/node_modules/@jimp/js-jpeg/.tshy/esm.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdc4fa775818876f2e8f6cd606e9bb337515ac56
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/.tshy/esm.json
@@ -0,0 +1,16 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.mts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/esm"
+ }
+}
diff --git a/node_modules/@jimp/js-jpeg/CHANGELOG.md b/node_modules/@jimp/js-jpeg/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..3983b07dfc0b2985f8afc7781b3984c3fe6423c7
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/CHANGELOG.md
@@ -0,0 +1,74 @@
+# v1.5.0 (Sat Sep 07 2024)
+
+### Release Notes
+
+#### Add support for image decoder options ([#1336](https://github.com/jimp-dev/jimp/pull/1336))
+
+Can now have options for the underlying image codecs
+
+
+
+---
+
+#### 🚀 Enhancement
+
+- Add support for image decoder options [#1336](https://github.com/jimp-dev/jimp/pull/1336) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.3 (Mon Sep 02 2024)
+
+#### 🐛 Bug Fix
+
+- Update deps [#1319](https://github.com/jimp-dev/jimp/pull/1319) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.0 (Sun Sep 01 2024)
+
+#### ⚠️ Pushed to `main`
+
+- upgrade tshy ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- update more docs ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.3 (Sat Aug 31 2024)
+
+#### 🐛 Bug Fix
+
+- Fix build [#1303](https://github.com/jimp-dev/jimp/pull/1303) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### ⚠️ Pushed to `main`
+
+- add clean script ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.2 (Sat Aug 31 2024)
+
+#### ⚠️ Pushed to `main`
+
+- set side effects ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- fix versions ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- add publish config ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
diff --git a/node_modules/@jimp/js-jpeg/LICENSE b/node_modules/@jimp/js-jpeg/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..baa5d48509a18b9ab4f6c39289362690ea68e688
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Oliver Moran
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@jimp/js-jpeg/README.md b/node_modules/@jimp/js-jpeg/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..0dddc13c339c392969d18210863657c4e19ba506
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/README.md
@@ -0,0 +1,6 @@
+
+

+
@jimp/jpeg
+
Default Jimp jpeg encoder/decoder.
+
diff --git a/node_modules/@jimp/js-jpeg/dist/commonjs/index.d.ts b/node_modules/@jimp/js-jpeg/dist/commonjs/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..b9947356eb653175bfd36682f187124ee83d918a
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/commonjs/index.d.ts
@@ -0,0 +1,20 @@
+import JPEG from "jpeg-js";
+export interface JPEGOptions {
+ quality?: number;
+}
+export interface DecodeJpegOptions {
+ useTArray?: false;
+ colorTransform?: boolean;
+ formatAsRGBA?: boolean;
+ tolerantDecoding?: boolean;
+ maxResolutionInMP?: number;
+ maxMemoryUsageInMB?: number;
+}
+export default function jpeg(): {
+ mime: "image/jpeg";
+ encode: (bitmap: import("@jimp/types").Bitmap, { quality }?: JPEGOptions) => Buffer;
+ decode: (data: Buffer, options?: DecodeJpegOptions) => JPEG.BufferRet & {
+ comments?: string[];
+ };
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/dist/commonjs/index.d.ts.map b/node_modules/@jimp/js-jpeg/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..aabd09c343dee1e257c3eaa7488c2232c87fe12a
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAG3B,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,IAAI;;iEAGY,WAAW;qCAEtB,iBAAiB;;;EAE7C"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/dist/commonjs/index.js b/node_modules/@jimp/js-jpeg/dist/commonjs/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..7db814665fa1031bbc5e3185e8661eea4eac726a
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/commonjs/index.js
@@ -0,0 +1,15 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.default = jpeg;
+const jpeg_js_1 = __importDefault(require("jpeg-js"));
+function jpeg() {
+ return {
+ mime: "image/jpeg",
+ encode: (bitmap, { quality = 100 } = {}) => jpeg_js_1.default.encode(bitmap, quality).data,
+ decode: (data, options) => jpeg_js_1.default.decode(data, options),
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/dist/commonjs/index.js.map b/node_modules/@jimp/js-jpeg/dist/commonjs/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..c5269ec836de985deb309de57bdf521b95e895be
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAgBA,uBAOC;AAvBD,sDAA2B;AAgB3B,SAAwB,IAAI;IAC1B,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,OAAO,GAAG,GAAG,KAAkB,EAAE,EAAE,EAAE,CACtD,iBAAI,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI;QACnC,MAAM,EAAE,CAAC,IAAI,EAAE,OAA2B,EAAE,EAAE,CAAC,iBAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC;KAC3C,CAAC;AACnC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/dist/commonjs/package.json b/node_modules/@jimp/js-jpeg/dist/commonjs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/@jimp/js-jpeg/dist/esm/index.d.ts b/node_modules/@jimp/js-jpeg/dist/esm/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..b9947356eb653175bfd36682f187124ee83d918a
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/esm/index.d.ts
@@ -0,0 +1,20 @@
+import JPEG from "jpeg-js";
+export interface JPEGOptions {
+ quality?: number;
+}
+export interface DecodeJpegOptions {
+ useTArray?: false;
+ colorTransform?: boolean;
+ formatAsRGBA?: boolean;
+ tolerantDecoding?: boolean;
+ maxResolutionInMP?: number;
+ maxMemoryUsageInMB?: number;
+}
+export default function jpeg(): {
+ mime: "image/jpeg";
+ encode: (bitmap: import("@jimp/types").Bitmap, { quality }?: JPEGOptions) => Buffer;
+ decode: (data: Buffer, options?: DecodeJpegOptions) => JPEG.BufferRet & {
+ comments?: string[];
+ };
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/dist/esm/index.d.ts.map b/node_modules/@jimp/js-jpeg/dist/esm/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..aabd09c343dee1e257c3eaa7488c2232c87fe12a
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/esm/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAG3B,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,IAAI;;iEAGY,WAAW;qCAEtB,iBAAiB;;;EAE7C"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/dist/esm/index.js b/node_modules/@jimp/js-jpeg/dist/esm/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..dfd69e4cdbe38dbaf83a9831842e38ad6d21c8d7
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/esm/index.js
@@ -0,0 +1,9 @@
+import JPEG from "jpeg-js";
+export default function jpeg() {
+ return {
+ mime: "image/jpeg",
+ encode: (bitmap, { quality = 100 } = {}) => JPEG.encode(bitmap, quality).data,
+ decode: (data, options) => JPEG.decode(data, options),
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/dist/esm/index.js.map b/node_modules/@jimp/js-jpeg/dist/esm/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..31026097f0bd076cfa3f9db627643bd9d7dff481
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAgB3B,MAAM,CAAC,OAAO,UAAU,IAAI;IAC1B,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,OAAO,GAAG,GAAG,KAAkB,EAAE,EAAE,EAAE,CACtD,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI;QACnC,MAAM,EAAE,CAAC,IAAI,EAAE,OAA2B,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC;KAC3C,CAAC;AACnC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/dist/esm/package.json b/node_modules/@jimp/js-jpeg/dist/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/js-jpeg/eslint.config.mjs b/node_modules/@jimp/js-jpeg/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..939816d0a4be5f347676861f9592614a0ca07046
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/eslint.config.mjs
@@ -0,0 +1,2 @@
+import shared from "@jimp/config-eslint/base.js";
+export default [...shared];
\ No newline at end of file
diff --git a/node_modules/@jimp/js-jpeg/package.json b/node_modules/@jimp/js-jpeg/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..f31bded4a7600edab259d5bc27c7db866cc7da79
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@jimp/js-jpeg",
+ "version": "1.6.1",
+ "repository": "jimp-dev/jimp",
+ "engines": {
+ "node": ">=18"
+ },
+ "scripts": {
+ "lint": "eslint .",
+ "test": "vitest",
+ "test:browser": "vitest --config vitest.config.browser.mjs",
+ "build": "tshy",
+ "dev": "tshy --watch",
+ "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo"
+ },
+ "author": "Andrew Lisowski ",
+ "license": "MIT",
+ "devDependencies": {
+ "@jimp/config-eslint": "1.6.1",
+ "@jimp/config-typescript": "1.6.1",
+ "@jimp/config-vitest": "1.6.1",
+ "@jimp/test-utils": "1.6.1",
+ "@vitest/browser": "^2.0.5",
+ "eslint": "^9.9.1",
+ "tshy": "^3.0.2",
+ "typescript": "^5.5.4",
+ "vite-plugin-node-polyfills": "^0.22.0",
+ "vitest": "^2.0.5"
+ },
+ "tshy": {
+ "exclude": [
+ "**/*.test.ts"
+ ],
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ }
+ },
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ },
+ "main": "./dist/commonjs/index.js",
+ "types": "./dist/commonjs/index.d.ts",
+ "type": "module",
+ "dependencies": {
+ "@jimp/core": "1.6.1",
+ "@jimp/types": "1.6.1",
+ "jpeg-js": "^0.4.4"
+ },
+ "publishConfig": {
+ "access": "public"
+ },
+ "sideEffects": false,
+ "module": "./dist/esm/index.js",
+ "gitHead": "7e6a95694e00a8b6f1bdd9aad709f5413eb9b08c"
+}
diff --git a/node_modules/@jimp/js-jpeg/src/index.test.ts b/node_modules/@jimp/js-jpeg/src/index.test.ts
new file mode 100644
index 0000000000000000000000000000000000000000..031fa29647c7852982596cb1f90d938d1c4ef9cd
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/src/index.test.ts
@@ -0,0 +1,43 @@
+import { expect, test, describe } from "vitest";
+import { createJimp } from "@jimp/core";
+import { getTestImagePath } from "@jimp/test-utils";
+
+import jpeg from "./index.js";
+
+const jimp = createJimp({ formats: [jpeg] });
+
+describe("JPEG", () => {
+ test("load JPG", async () => {
+ const image = await jimp.read(getTestImagePath("cops.jpg"));
+
+ expect(image.getPixelColor(10, 10)).toBe(0x3f4a02ff);
+ expect(image.getPixelColor(220, 190)).toBe(0x5d94b6ff);
+ expect(image.getPixelColor(350, 130)).toBe(0xdf7944ff);
+ });
+
+ test("load JPG with fill bytes", async () => {
+ const image = await jimp.read(getTestImagePath("fillbytes.jpg"));
+
+ expect(image.getPixelColor(10, 10)).toBe(0xaeb8c3ff);
+ expect(image.getPixelColor(220, 190)).toBe(0x262b21ff);
+ expect(image.getPixelColor(350, 130)).toBe(0x4e5d30ff);
+ });
+
+ test("export JPG", async () => {
+ const image = jimp.fromBitmap({
+ width: 3,
+ height: 3,
+ data: [
+ 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff,
+ 0xff00ffff, 0x8000ffff, 0x0000ffff,
+ ],
+ });
+
+ const buffer = await image.getBuffer("image/jpeg", {
+ quality: 50,
+ });
+
+ // eslint-disable-next-line no-control-regex
+ expect(buffer.toString()).toMatch(/^.{3,9}JFIF\u0000/);
+ });
+});
diff --git a/node_modules/@jimp/js-jpeg/src/index.ts b/node_modules/@jimp/js-jpeg/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..bc24291a6e47b49e880f7c41340ce62707e0e224
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/src/index.ts
@@ -0,0 +1,24 @@
+import JPEG from "jpeg-js";
+import { Format } from "@jimp/types";
+
+export interface JPEGOptions {
+ quality?: number;
+}
+
+export interface DecodeJpegOptions {
+ useTArray?: false;
+ colorTransform?: boolean;
+ formatAsRGBA?: boolean;
+ tolerantDecoding?: boolean;
+ maxResolutionInMP?: number;
+ maxMemoryUsageInMB?: number;
+}
+
+export default function jpeg() {
+ return {
+ mime: "image/jpeg",
+ encode: (bitmap, { quality = 100 }: JPEGOptions = {}) =>
+ JPEG.encode(bitmap, quality).data,
+ decode: (data, options?: DecodeJpegOptions) => JPEG.decode(data, options),
+ } satisfies Format<"image/jpeg">;
+}
diff --git a/node_modules/@jimp/js-jpeg/tsconfig.json b/node_modules/@jimp/js-jpeg/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad7f216ca2b10874329665feda994727844e4305
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "extends": "@jimp/config-typescript/base.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ }
+}
diff --git a/node_modules/@jimp/js-jpeg/vitest.config.browser.mjs b/node_modules/@jimp/js-jpeg/vitest.config.browser.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..dfe6aff6b16f48bc45697e4c14219f2034754cf5
--- /dev/null
+++ b/node_modules/@jimp/js-jpeg/vitest.config.browser.mjs
@@ -0,0 +1,3 @@
+import config from "@jimp/config-vitest/browser";
+
+export default config;
diff --git a/node_modules/@jimp/js-png/.tshy/build.json b/node_modules/@jimp/js-png/.tshy/build.json
new file mode 100644
index 0000000000000000000000000000000000000000..aea1a9e93b5db3468973ebeaad6dac0a77b10c02
--- /dev/null
+++ b/node_modules/@jimp/js-png/.tshy/build.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "../src",
+ "module": "nodenext",
+ "moduleResolution": "nodenext"
+ }
+}
diff --git a/node_modules/@jimp/js-png/.tshy/commonjs.json b/node_modules/@jimp/js-png/.tshy/commonjs.json
new file mode 100644
index 0000000000000000000000000000000000000000..75bcfc1d756dcb1baafc973385c81c5aa93f3174
--- /dev/null
+++ b/node_modules/@jimp/js-png/.tshy/commonjs.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.cts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/**/*.mts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/commonjs"
+ }
+}
diff --git a/node_modules/@jimp/js-png/.tshy/esm.json b/node_modules/@jimp/js-png/.tshy/esm.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdc4fa775818876f2e8f6cd606e9bb337515ac56
--- /dev/null
+++ b/node_modules/@jimp/js-png/.tshy/esm.json
@@ -0,0 +1,16 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.mts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/esm"
+ }
+}
diff --git a/node_modules/@jimp/js-png/CHANGELOG.md b/node_modules/@jimp/js-png/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..1eb5e248fea3643b21f1a7e4efabb731b7910f2b
--- /dev/null
+++ b/node_modules/@jimp/js-png/CHANGELOG.md
@@ -0,0 +1,73 @@
+# v1.5.0 (Sat Sep 07 2024)
+
+### Release Notes
+
+#### Add support for image decoder options ([#1336](https://github.com/jimp-dev/jimp/pull/1336))
+
+Can now have options for the underlying image codecs
+
+
+
+---
+
+#### 🚀 Enhancement
+
+- Add support for image decoder options [#1336](https://github.com/jimp-dev/jimp/pull/1336) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.3 (Mon Sep 02 2024)
+
+#### 🐛 Bug Fix
+
+- Update deps [#1319](https://github.com/jimp-dev/jimp/pull/1319) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.0 (Sun Sep 01 2024)
+
+#### ⚠️ Pushed to `main`
+
+- upgrade tshy ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.3 (Sat Aug 31 2024)
+
+#### 🐛 Bug Fix
+
+- Fix build [#1303](https://github.com/jimp-dev/jimp/pull/1303) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### ⚠️ Pushed to `main`
+
+- add clean script ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.2 (Sat Aug 31 2024)
+
+#### ⚠️ Pushed to `main`
+
+- set side effects ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- fix versions ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- add publish config ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
diff --git a/node_modules/@jimp/js-png/LICENSE b/node_modules/@jimp/js-png/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..baa5d48509a18b9ab4f6c39289362690ea68e688
--- /dev/null
+++ b/node_modules/@jimp/js-png/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Oliver Moran
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@jimp/js-png/README.md b/node_modules/@jimp/js-png/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..da13e48289df028ac1955ab494d3c1cec860a6e0
--- /dev/null
+++ b/node_modules/@jimp/js-png/README.md
@@ -0,0 +1,35 @@
+
+

+
@jimp/png
+
Default Jimp png encoder/decoder.
+
+
+## Available Methods
+
+### Jimp.deflateLevel
+
+Sets the deflate level used when saving as PNG format (default is 9)
+
+### Jimp.deflateStrategy
+
+Sets the deflate strategy used when saving as PNG format (default is 3)
+
+### Jimp.filterType
+
+Sets the filter type used when saving as PNG format (default is automatic filters)
+
+### Jimp.colorType
+
+Sets the color type used when saving as PNG format (one of 0, 2, 4, 6)
+
+### Filter Types
+
+```js
+Jimp.PNG_FILTER_AUTO;
+Jimp.PNG_FILTER_NONE;
+Jimp.PNG_FILTER_SUB;
+Jimp.PNG_FILTER_UP;
+Jimp.PNG_FILTER_AVERAGE;
+Jimp.PNG_FILTER_PATH;
+```
diff --git a/node_modules/@jimp/js-png/dist/commonjs/constants.d.ts b/node_modules/@jimp/js-png/dist/commonjs/constants.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..e5cf96bb77fa9a822c0247788d02b51156fd6658
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/constants.d.ts
@@ -0,0 +1,29 @@
+/**
+ * Filter method is a single-byte integer that indicates the preprocessing method applied to the image data before compression.
+ */
+export declare enum PNGFilterType {
+ AUTO = -1,
+ /** scanline is transmitted unmodified */
+ NONE = 0,
+ /** filter transmits the difference between each byte and the value of the corresponding byte of the prior pixel */
+ SUB = 1,
+ /** The Up() filter is just like the Sub() filter except that the pixel immediately above the current pixel, rather than just to its left, is used as the predictor. */
+ UP = 2,
+ /** uses the average of the two neighboring pixels (left and above) to predict the value of a pixel */
+ AVERAGE = 3,
+ /** computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value. */
+ PATH = 4
+}
+/**
+ * Color type is a single-byte integer that describes the interpretation of the image data.
+ * Color type codes represent sums of the following values:
+ *
+ * 1 (palette used), 2 (color used), and 4 (alpha channel used).
+ */
+export declare enum PNGColorType {
+ GRAYSCALE = 0,
+ COLOR = 2,
+ GRAYSCALE_ALPHA = 4,
+ COLOR_ALPHA = 6
+}
+//# sourceMappingURL=constants.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/commonjs/constants.d.ts.map b/node_modules/@jimp/js-png/dist/commonjs/constants.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..98839cf4eaa481da75b7cdf2f122332ac84a342f
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/constants.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa;IACvB,IAAI,KAAK;IACT,yCAAyC;IACzC,IAAI,IAAI;IACR,mHAAmH;IACnH,GAAG,IAAI;IACP,uKAAuK;IACvK,EAAE,IAAI;IACN,sGAAsG;IACtG,OAAO,IAAI;IACX,kLAAkL;IAClL,IAAI,IAAI;CACT;AAED;;;;;GAKG;AACH,oBAAY,YAAY;IACtB,SAAS,IAAI;IACb,KAAK,IAAI;IACT,eAAe,IAAI;IACnB,WAAW,IAAI;CAChB"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/commonjs/constants.js b/node_modules/@jimp/js-png/dist/commonjs/constants.js
new file mode 100644
index 0000000000000000000000000000000000000000..572fa97fb7e73e221279ac5b4cef0e376227fe6c
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/constants.js
@@ -0,0 +1,34 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.PNGColorType = exports.PNGFilterType = void 0;
+/**
+ * Filter method is a single-byte integer that indicates the preprocessing method applied to the image data before compression.
+ */
+var PNGFilterType;
+(function (PNGFilterType) {
+ PNGFilterType[PNGFilterType["AUTO"] = -1] = "AUTO";
+ /** scanline is transmitted unmodified */
+ PNGFilterType[PNGFilterType["NONE"] = 0] = "NONE";
+ /** filter transmits the difference between each byte and the value of the corresponding byte of the prior pixel */
+ PNGFilterType[PNGFilterType["SUB"] = 1] = "SUB";
+ /** The Up() filter is just like the Sub() filter except that the pixel immediately above the current pixel, rather than just to its left, is used as the predictor. */
+ PNGFilterType[PNGFilterType["UP"] = 2] = "UP";
+ /** uses the average of the two neighboring pixels (left and above) to predict the value of a pixel */
+ PNGFilterType[PNGFilterType["AVERAGE"] = 3] = "AVERAGE";
+ /** computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value. */
+ PNGFilterType[PNGFilterType["PATH"] = 4] = "PATH";
+})(PNGFilterType || (exports.PNGFilterType = PNGFilterType = {}));
+/**
+ * Color type is a single-byte integer that describes the interpretation of the image data.
+ * Color type codes represent sums of the following values:
+ *
+ * 1 (palette used), 2 (color used), and 4 (alpha channel used).
+ */
+var PNGColorType;
+(function (PNGColorType) {
+ PNGColorType[PNGColorType["GRAYSCALE"] = 0] = "GRAYSCALE";
+ PNGColorType[PNGColorType["COLOR"] = 2] = "COLOR";
+ PNGColorType[PNGColorType["GRAYSCALE_ALPHA"] = 4] = "GRAYSCALE_ALPHA";
+ PNGColorType[PNGColorType["COLOR_ALPHA"] = 6] = "COLOR_ALPHA";
+})(PNGColorType || (exports.PNGColorType = PNGColorType = {}));
+//# sourceMappingURL=constants.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/commonjs/constants.js.map b/node_modules/@jimp/js-png/dist/commonjs/constants.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..890abf3c45762d78a0fac10fea714232343e032c
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/constants.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,kDAAS,CAAA;IACT,yCAAyC;IACzC,iDAAQ,CAAA;IACR,mHAAmH;IACnH,+CAAO,CAAA;IACP,uKAAuK;IACvK,6CAAM,CAAA;IACN,sGAAsG;IACtG,uDAAW,CAAA;IACX,kLAAkL;IAClL,iDAAQ,CAAA;AACV,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB;AAED;;;;;GAKG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,yDAAa,CAAA;IACb,iDAAS,CAAA;IACT,qEAAmB,CAAA;IACnB,6DAAe,CAAA;AACjB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/commonjs/index.d.ts b/node_modules/@jimp/js-png/dist/commonjs/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..692fb37a595044b8da1e22af9ed8547a81c9a6da
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/index.d.ts
@@ -0,0 +1,24 @@
+import { PNGOptions as PNGJSOptions } from "pngjs";
+import { PNGFilterType, PNGColorType } from "./constants.js";
+export type { PNGOptions as PNGJSOptions } from "pngjs";
+export type PNGOptions = Omit & {
+ filterType?: PNGFilterType;
+ colorType?: PNGColorType;
+ inputColorType?: PNGColorType;
+};
+export interface DecodePngOptions {
+ checkCRC?: boolean | undefined;
+ skipRescale?: boolean | undefined;
+}
+export * from "./constants.js";
+export default function png(): {
+ mime: "image/png";
+ hasAlpha: true;
+ encode: (bitmap: import("@jimp/types").Bitmap, { deflateLevel, deflateStrategy, filterType, colorType, inputHasAlpha, ...options }?: PNGOptions) => Buffer;
+ decode: (data: Buffer, options?: DecodePngOptions) => {
+ data: Buffer;
+ width: number;
+ height: number;
+ };
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/commonjs/index.d.ts.map b/node_modules/@jimp/js-png/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..4fcd0bef53fb70b51875d519613739c5e6f6589c
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,UAAU,IAAI,YAAY,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE7D,YAAY,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,OAAO,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,YAAY,EACZ,YAAY,GAAG,WAAW,GAAG,gBAAgB,CAC9C,GAAG;IACF,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,cAAc,CAAC,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACnC;AAED,cAAc,gBAAgB,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,GAAG;;;yIAalB,UAAU;qCAuBU,gBAAgB;;;;;EAU5C"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/commonjs/index.js b/node_modules/@jimp/js-png/dist/commonjs/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..276ffcb40e9bfa027231b020c69b5a006eb1b347
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/index.js
@@ -0,0 +1,54 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __exportStar = (this && this.__exportStar) || function(m, exports) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.default = png;
+const pngjs_1 = require("pngjs");
+const constants_js_1 = require("./constants.js");
+__exportStar(require("./constants.js"), exports);
+function png() {
+ return {
+ mime: "image/png",
+ hasAlpha: true,
+ encode: (bitmap, { deflateLevel = 9, deflateStrategy = 3, filterType = constants_js_1.PNGFilterType.AUTO, colorType, inputHasAlpha = true, ...options } = {}) => {
+ const png = new pngjs_1.PNG({
+ width: bitmap.width,
+ height: bitmap.height,
+ });
+ png.data = bitmap.data;
+ return pngjs_1.PNG.sync.write(png, {
+ ...options,
+ deflateLevel,
+ deflateStrategy,
+ filterType,
+ colorType: typeof colorType !== "undefined"
+ ? colorType
+ : inputHasAlpha
+ ? constants_js_1.PNGColorType.COLOR_ALPHA
+ : constants_js_1.PNGColorType.COLOR,
+ inputHasAlpha,
+ });
+ },
+ decode: (data, options) => {
+ const result = pngjs_1.PNG.sync.read(data, options);
+ return {
+ data: result.data,
+ width: result.width,
+ height: result.height,
+ };
+ },
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/commonjs/index.js.map b/node_modules/@jimp/js-png/dist/commonjs/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..b0664f8db0705832e64acc5915a41a5061e9891a
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAqBA,sBA8CC;AAnED,iCAAwD;AAExD,iDAA6D;AAiB7D,iDAA+B;AAE/B,SAAwB,GAAG;IACzB,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,CACN,MAAM,EACN,EACE,YAAY,GAAG,CAAC,EAChB,eAAe,GAAG,CAAC,EACnB,UAAU,GAAG,4BAAa,CAAC,IAAI,EAC/B,SAAS,EACT,aAAa,GAAG,IAAI,EACpB,GAAG,OAAO,KACI,EAAE,EAClB,EAAE;YACF,MAAM,GAAG,GAAG,IAAI,WAAG,CAAC;gBAClB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC,CAAC;YAEH,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;YAEvB,OAAO,WAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;gBACzB,GAAG,OAAO;gBACV,YAAY;gBACZ,eAAe;gBACf,UAAU;gBACV,SAAS,EACP,OAAO,SAAS,KAAK,WAAW;oBAC9B,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,aAAa;wBACb,CAAC,CAAC,2BAAY,CAAC,WAAW;wBAC1B,CAAC,CAAC,2BAAY,CAAC,KAAK;gBAC1B,aAAa;aACd,CAAC,CAAC;QACL,CAAC;QACD,MAAM,EAAE,CAAC,IAAI,EAAE,OAA0B,EAAE,EAAE;YAC3C,MAAM,MAAM,GAAG,WAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE5C,OAAO;gBACL,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;QACJ,CAAC;KAC4B,CAAC;AAClC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/commonjs/package.json b/node_modules/@jimp/js-png/dist/commonjs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/@jimp/js-png/dist/esm/constants.d.ts b/node_modules/@jimp/js-png/dist/esm/constants.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..e5cf96bb77fa9a822c0247788d02b51156fd6658
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/constants.d.ts
@@ -0,0 +1,29 @@
+/**
+ * Filter method is a single-byte integer that indicates the preprocessing method applied to the image data before compression.
+ */
+export declare enum PNGFilterType {
+ AUTO = -1,
+ /** scanline is transmitted unmodified */
+ NONE = 0,
+ /** filter transmits the difference between each byte and the value of the corresponding byte of the prior pixel */
+ SUB = 1,
+ /** The Up() filter is just like the Sub() filter except that the pixel immediately above the current pixel, rather than just to its left, is used as the predictor. */
+ UP = 2,
+ /** uses the average of the two neighboring pixels (left and above) to predict the value of a pixel */
+ AVERAGE = 3,
+ /** computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value. */
+ PATH = 4
+}
+/**
+ * Color type is a single-byte integer that describes the interpretation of the image data.
+ * Color type codes represent sums of the following values:
+ *
+ * 1 (palette used), 2 (color used), and 4 (alpha channel used).
+ */
+export declare enum PNGColorType {
+ GRAYSCALE = 0,
+ COLOR = 2,
+ GRAYSCALE_ALPHA = 4,
+ COLOR_ALPHA = 6
+}
+//# sourceMappingURL=constants.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/esm/constants.d.ts.map b/node_modules/@jimp/js-png/dist/esm/constants.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..98839cf4eaa481da75b7cdf2f122332ac84a342f
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/constants.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa;IACvB,IAAI,KAAK;IACT,yCAAyC;IACzC,IAAI,IAAI;IACR,mHAAmH;IACnH,GAAG,IAAI;IACP,uKAAuK;IACvK,EAAE,IAAI;IACN,sGAAsG;IACtG,OAAO,IAAI;IACX,kLAAkL;IAClL,IAAI,IAAI;CACT;AAED;;;;;GAKG;AACH,oBAAY,YAAY;IACtB,SAAS,IAAI;IACb,KAAK,IAAI;IACT,eAAe,IAAI;IACnB,WAAW,IAAI;CAChB"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/esm/constants.js b/node_modules/@jimp/js-png/dist/esm/constants.js
new file mode 100644
index 0000000000000000000000000000000000000000..5aa1b5db0f89deadb7c503a9dcce0869f74080ba
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/constants.js
@@ -0,0 +1,31 @@
+/**
+ * Filter method is a single-byte integer that indicates the preprocessing method applied to the image data before compression.
+ */
+export var PNGFilterType;
+(function (PNGFilterType) {
+ PNGFilterType[PNGFilterType["AUTO"] = -1] = "AUTO";
+ /** scanline is transmitted unmodified */
+ PNGFilterType[PNGFilterType["NONE"] = 0] = "NONE";
+ /** filter transmits the difference between each byte and the value of the corresponding byte of the prior pixel */
+ PNGFilterType[PNGFilterType["SUB"] = 1] = "SUB";
+ /** The Up() filter is just like the Sub() filter except that the pixel immediately above the current pixel, rather than just to its left, is used as the predictor. */
+ PNGFilterType[PNGFilterType["UP"] = 2] = "UP";
+ /** uses the average of the two neighboring pixels (left and above) to predict the value of a pixel */
+ PNGFilterType[PNGFilterType["AVERAGE"] = 3] = "AVERAGE";
+ /** computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value. */
+ PNGFilterType[PNGFilterType["PATH"] = 4] = "PATH";
+})(PNGFilterType || (PNGFilterType = {}));
+/**
+ * Color type is a single-byte integer that describes the interpretation of the image data.
+ * Color type codes represent sums of the following values:
+ *
+ * 1 (palette used), 2 (color used), and 4 (alpha channel used).
+ */
+export var PNGColorType;
+(function (PNGColorType) {
+ PNGColorType[PNGColorType["GRAYSCALE"] = 0] = "GRAYSCALE";
+ PNGColorType[PNGColorType["COLOR"] = 2] = "COLOR";
+ PNGColorType[PNGColorType["GRAYSCALE_ALPHA"] = 4] = "GRAYSCALE_ALPHA";
+ PNGColorType[PNGColorType["COLOR_ALPHA"] = 6] = "COLOR_ALPHA";
+})(PNGColorType || (PNGColorType = {}));
+//# sourceMappingURL=constants.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/esm/constants.js.map b/node_modules/@jimp/js-png/dist/esm/constants.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..878eac95ac229db355c1c89256c1e5fa3f468d6a
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/constants.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,kDAAS,CAAA;IACT,yCAAyC;IACzC,iDAAQ,CAAA;IACR,mHAAmH;IACnH,+CAAO,CAAA;IACP,uKAAuK;IACvK,6CAAM,CAAA;IACN,sGAAsG;IACtG,uDAAW,CAAA;IACX,kLAAkL;IAClL,iDAAQ,CAAA;AACV,CAAC,EAZW,aAAa,KAAb,aAAa,QAYxB;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,yDAAa,CAAA;IACb,iDAAS,CAAA;IACT,qEAAmB,CAAA;IACnB,6DAAe,CAAA;AACjB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/esm/index.d.ts b/node_modules/@jimp/js-png/dist/esm/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..692fb37a595044b8da1e22af9ed8547a81c9a6da
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/index.d.ts
@@ -0,0 +1,24 @@
+import { PNGOptions as PNGJSOptions } from "pngjs";
+import { PNGFilterType, PNGColorType } from "./constants.js";
+export type { PNGOptions as PNGJSOptions } from "pngjs";
+export type PNGOptions = Omit & {
+ filterType?: PNGFilterType;
+ colorType?: PNGColorType;
+ inputColorType?: PNGColorType;
+};
+export interface DecodePngOptions {
+ checkCRC?: boolean | undefined;
+ skipRescale?: boolean | undefined;
+}
+export * from "./constants.js";
+export default function png(): {
+ mime: "image/png";
+ hasAlpha: true;
+ encode: (bitmap: import("@jimp/types").Bitmap, { deflateLevel, deflateStrategy, filterType, colorType, inputHasAlpha, ...options }?: PNGOptions) => Buffer;
+ decode: (data: Buffer, options?: DecodePngOptions) => {
+ data: Buffer;
+ width: number;
+ height: number;
+ };
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/esm/index.d.ts.map b/node_modules/@jimp/js-png/dist/esm/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..4fcd0bef53fb70b51875d519613739c5e6f6589c
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,UAAU,IAAI,YAAY,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE7D,YAAY,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,OAAO,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,YAAY,EACZ,YAAY,GAAG,WAAW,GAAG,gBAAgB,CAC9C,GAAG;IACF,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,cAAc,CAAC,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACnC;AAED,cAAc,gBAAgB,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,GAAG;;;yIAalB,UAAU;qCAuBU,gBAAgB;;;;;EAU5C"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/esm/index.js b/node_modules/@jimp/js-png/dist/esm/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..097d1eae32f32ca128d55d9238a162fe4eae97cb
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/index.js
@@ -0,0 +1,37 @@
+import { PNG } from "pngjs";
+import { PNGFilterType, PNGColorType } from "./constants.js";
+export * from "./constants.js";
+export default function png() {
+ return {
+ mime: "image/png",
+ hasAlpha: true,
+ encode: (bitmap, { deflateLevel = 9, deflateStrategy = 3, filterType = PNGFilterType.AUTO, colorType, inputHasAlpha = true, ...options } = {}) => {
+ const png = new PNG({
+ width: bitmap.width,
+ height: bitmap.height,
+ });
+ png.data = bitmap.data;
+ return PNG.sync.write(png, {
+ ...options,
+ deflateLevel,
+ deflateStrategy,
+ filterType,
+ colorType: typeof colorType !== "undefined"
+ ? colorType
+ : inputHasAlpha
+ ? PNGColorType.COLOR_ALPHA
+ : PNGColorType.COLOR,
+ inputHasAlpha,
+ });
+ },
+ decode: (data, options) => {
+ const result = PNG.sync.read(data, options);
+ return {
+ data: result.data,
+ width: result.width,
+ height: result.height,
+ };
+ },
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/esm/index.js.map b/node_modules/@jimp/js-png/dist/esm/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..727a2bff61ee8d40f25e503501234d8b4de2861b
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAA8B,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAiB7D,cAAc,gBAAgB,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,GAAG;IACzB,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,CACN,MAAM,EACN,EACE,YAAY,GAAG,CAAC,EAChB,eAAe,GAAG,CAAC,EACnB,UAAU,GAAG,aAAa,CAAC,IAAI,EAC/B,SAAS,EACT,aAAa,GAAG,IAAI,EACpB,GAAG,OAAO,KACI,EAAE,EAClB,EAAE;YACF,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;gBAClB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC,CAAC;YAEH,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;YAEvB,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;gBACzB,GAAG,OAAO;gBACV,YAAY;gBACZ,eAAe;gBACf,UAAU;gBACV,SAAS,EACP,OAAO,SAAS,KAAK,WAAW;oBAC9B,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,aAAa;wBACb,CAAC,CAAC,YAAY,CAAC,WAAW;wBAC1B,CAAC,CAAC,YAAY,CAAC,KAAK;gBAC1B,aAAa;aACd,CAAC,CAAC;QACL,CAAC;QACD,MAAM,EAAE,CAAC,IAAI,EAAE,OAA0B,EAAE,EAAE;YAC3C,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE5C,OAAO;gBACL,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;QACJ,CAAC;KAC4B,CAAC;AAClC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/dist/esm/package.json b/node_modules/@jimp/js-png/dist/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/js-png/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/js-png/eslint.config.mjs b/node_modules/@jimp/js-png/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..939816d0a4be5f347676861f9592614a0ca07046
--- /dev/null
+++ b/node_modules/@jimp/js-png/eslint.config.mjs
@@ -0,0 +1,2 @@
+import shared from "@jimp/config-eslint/base.js";
+export default [...shared];
\ No newline at end of file
diff --git a/node_modules/@jimp/js-png/package.json b/node_modules/@jimp/js-png/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..2fca4c9c2f341650e46b33ea6a3e787879b62304
--- /dev/null
+++ b/node_modules/@jimp/js-png/package.json
@@ -0,0 +1,67 @@
+{
+ "name": "@jimp/js-png",
+ "version": "1.6.1",
+ "repository": "jimp-dev/jimp",
+ "engines": {
+ "node": ">=18"
+ },
+ "scripts": {
+ "lint": "eslint .",
+ "test": "vitest",
+ "test:browser": "vitest --config vitest.config.browser.mjs",
+ "build": "tshy",
+ "dev": "tshy --watch",
+ "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo"
+ },
+ "author": "Andrew Lisowski ",
+ "license": "MIT",
+ "dependencies": {
+ "@jimp/core": "1.6.1",
+ "@jimp/types": "1.6.1",
+ "pngjs": "^7.0.0"
+ },
+ "devDependencies": {
+ "@jimp/config-eslint": "1.6.1",
+ "@jimp/config-typescript": "1.6.1",
+ "@jimp/config-vitest": "1.6.1",
+ "@jimp/test-utils": "1.6.1",
+ "@types/pngjs": "^6.0.5",
+ "@vitest/browser": "^2.0.5",
+ "eslint": "^9.9.1",
+ "tshy": "^3.0.2",
+ "typescript": "^5.5.4",
+ "vite-plugin-node-polyfills": "^0.22.0",
+ "vitest": "^2.0.5"
+ },
+ "tshy": {
+ "exclude": [
+ "**/*.test.ts"
+ ],
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ }
+ },
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ },
+ "main": "./dist/commonjs/index.js",
+ "types": "./dist/commonjs/index.d.ts",
+ "type": "module",
+ "publishConfig": {
+ "access": "public"
+ },
+ "sideEffects": false,
+ "module": "./dist/esm/index.js",
+ "gitHead": "7e6a95694e00a8b6f1bdd9aad709f5413eb9b08c"
+}
diff --git a/node_modules/@jimp/js-png/src/__image_snapshots__/index-node-test-ts-png-should-use-png-options-1-snap.png b/node_modules/@jimp/js-png/src/__image_snapshots__/index-node-test-ts-png-should-use-png-options-1-snap.png
new file mode 100644
index 0000000000000000000000000000000000000000..b96c9832445fb9a5471202d12f839a6fe58fff2b
Binary files /dev/null and b/node_modules/@jimp/js-png/src/__image_snapshots__/index-node-test-ts-png-should-use-png-options-1-snap.png differ
diff --git a/node_modules/@jimp/js-png/src/constants.ts b/node_modules/@jimp/js-png/src/constants.ts
new file mode 100644
index 0000000000000000000000000000000000000000..ede3cd5501a32fd4cee1ee8482998a9ebafa15fd
--- /dev/null
+++ b/node_modules/@jimp/js-png/src/constants.ts
@@ -0,0 +1,29 @@
+/**
+ * Filter method is a single-byte integer that indicates the preprocessing method applied to the image data before compression.
+ */
+export enum PNGFilterType {
+ AUTO = -1,
+ /** scanline is transmitted unmodified */
+ NONE = 0,
+ /** filter transmits the difference between each byte and the value of the corresponding byte of the prior pixel */
+ SUB = 1,
+ /** The Up() filter is just like the Sub() filter except that the pixel immediately above the current pixel, rather than just to its left, is used as the predictor. */
+ UP = 2,
+ /** uses the average of the two neighboring pixels (left and above) to predict the value of a pixel */
+ AVERAGE = 3,
+ /** computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value. */
+ PATH = 4,
+}
+
+/**
+ * Color type is a single-byte integer that describes the interpretation of the image data.
+ * Color type codes represent sums of the following values:
+ *
+ * 1 (palette used), 2 (color used), and 4 (alpha channel used).
+ */
+export enum PNGColorType {
+ GRAYSCALE = 0,
+ COLOR = 2,
+ GRAYSCALE_ALPHA = 4,
+ COLOR_ALPHA = 6,
+}
diff --git a/node_modules/@jimp/js-png/src/index.node.test.ts b/node_modules/@jimp/js-png/src/index.node.test.ts
new file mode 100644
index 0000000000000000000000000000000000000000..7e0acdbdaeb6eea8bba6307e31075b416c5045d5
--- /dev/null
+++ b/node_modules/@jimp/js-png/src/index.node.test.ts
@@ -0,0 +1,29 @@
+import { expect, test, describe } from "vitest";
+import "@jimp/test-utils/image-snapshot";
+import { createJimp } from "@jimp/core";
+
+import png from "./index.js";
+
+const jimp = createJimp({ formats: [png] });
+
+describe("PNG", () => {
+ test("should use png options", async () => {
+ const testImage = jimp.fromBitmap({
+ width: 20,
+ height: 20,
+ data: [
+ 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff,
+ 0xff00ffff, 0x8000ffff, 0x0000ffff, 0xff0000ff, 0xff0080ff, 0xff00ffff,
+ 0xff0080ff, 0xff00ffff, 0x8000ffff, 0xff00ffff, 0x8000ffff, 0x0000ffff,
+ 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff,
+ 0xff00ffff, 0x8000ffff, 0x0000ffff, 0xff0000ff, 0xff0080ff, 0xff00ffff,
+ 0xff0080ff, 0xff00ffff, 0x8000ffff, 0xff00ffff, 0x8000ffff, 0x0000ffff,
+ ],
+ });
+ const image = await testImage.getBuffer("image/png", {
+ deflateStrategy: 0,
+ colorType: 0,
+ });
+ expect(image).toMatchImageSnapshot();
+ });
+});
diff --git a/node_modules/@jimp/js-png/src/index.test.ts b/node_modules/@jimp/js-png/src/index.test.ts
new file mode 100644
index 0000000000000000000000000000000000000000..9b00d9c2dc9dead3d29fa2c8da3603ce2de27360
--- /dev/null
+++ b/node_modules/@jimp/js-png/src/index.test.ts
@@ -0,0 +1,29 @@
+import { expect, test, describe } from "vitest";
+import { createJimp } from "@jimp/core";
+
+import png from "./index.js";
+import { getTestImagePath } from "@jimp/test-utils";
+
+const jimp = createJimp({ formats: [png] });
+
+describe("PNG", () => {
+ test("load PNG", async () => {
+ const image = await jimp.read(getTestImagePath("dice.png"));
+ expect(image.getPixelColor(10, 10)).toBe(0x00000000);
+ expect(image.getPixelColor(160, 80)).toBe(0x1c1cd4ff);
+ expect(image.getPixelColor(400, 250)).toBe(0x7e0c0cda);
+ });
+
+ test("export PNG", async () => {
+ const testImage = jimp.fromBitmap({
+ width: 3,
+ height: 3,
+ data: [
+ 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff,
+ 0xff00ffff, 0x8000ffff, 0x0000ffff,
+ ],
+ });
+ const buffer = await testImage.getBuffer("image/png");
+ expect(buffer.toString()).toMatch(/^.PNG\r\n/);
+ });
+});
diff --git a/node_modules/@jimp/js-png/src/index.ts b/node_modules/@jimp/js-png/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..84596d63b4467cfa58f8725a577426876e701b10
--- /dev/null
+++ b/node_modules/@jimp/js-png/src/index.ts
@@ -0,0 +1,68 @@
+import { PNG, PNGOptions as PNGJSOptions } from "pngjs";
+import { Format } from "@jimp/types";
+import { PNGFilterType, PNGColorType } from "./constants.js";
+
+export type { PNGOptions as PNGJSOptions } from "pngjs";
+export type PNGOptions = Omit<
+ PNGJSOptions,
+ "filterType" | "colorType" | "inputColorType"
+> & {
+ filterType?: PNGFilterType;
+ colorType?: PNGColorType;
+ inputColorType?: PNGColorType;
+};
+
+export interface DecodePngOptions {
+ checkCRC?: boolean | undefined;
+ skipRescale?: boolean | undefined;
+}
+
+export * from "./constants.js";
+
+export default function png() {
+ return {
+ mime: "image/png",
+ hasAlpha: true,
+ encode: (
+ bitmap,
+ {
+ deflateLevel = 9,
+ deflateStrategy = 3,
+ filterType = PNGFilterType.AUTO,
+ colorType,
+ inputHasAlpha = true,
+ ...options
+ }: PNGOptions = {}
+ ) => {
+ const png = new PNG({
+ width: bitmap.width,
+ height: bitmap.height,
+ });
+
+ png.data = bitmap.data;
+
+ return PNG.sync.write(png, {
+ ...options,
+ deflateLevel,
+ deflateStrategy,
+ filterType,
+ colorType:
+ typeof colorType !== "undefined"
+ ? colorType
+ : inputHasAlpha
+ ? PNGColorType.COLOR_ALPHA
+ : PNGColorType.COLOR,
+ inputHasAlpha,
+ });
+ },
+ decode: (data, options?: DecodePngOptions) => {
+ const result = PNG.sync.read(data, options);
+
+ return {
+ data: result.data,
+ width: result.width,
+ height: result.height,
+ };
+ },
+ } satisfies Format<"image/png">;
+}
diff --git a/node_modules/@jimp/js-png/src/output.png b/node_modules/@jimp/js-png/src/output.png
new file mode 100644
index 0000000000000000000000000000000000000000..d85e4f462490c6afa7e2a9f9c498cd23f23ac4f5
Binary files /dev/null and b/node_modules/@jimp/js-png/src/output.png differ
diff --git a/node_modules/@jimp/js-png/tsconfig.json b/node_modules/@jimp/js-png/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad7f216ca2b10874329665feda994727844e4305
--- /dev/null
+++ b/node_modules/@jimp/js-png/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "extends": "@jimp/config-typescript/base.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ }
+}
diff --git a/node_modules/@jimp/js-png/vitest.config.browser.mjs b/node_modules/@jimp/js-png/vitest.config.browser.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..dfe6aff6b16f48bc45697e4c14219f2034754cf5
--- /dev/null
+++ b/node_modules/@jimp/js-png/vitest.config.browser.mjs
@@ -0,0 +1,3 @@
+import config from "@jimp/config-vitest/browser";
+
+export default config;
diff --git a/node_modules/@jimp/js-tiff/.tshy/build.json b/node_modules/@jimp/js-tiff/.tshy/build.json
new file mode 100644
index 0000000000000000000000000000000000000000..aea1a9e93b5db3468973ebeaad6dac0a77b10c02
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/.tshy/build.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "../src",
+ "module": "nodenext",
+ "moduleResolution": "nodenext"
+ }
+}
diff --git a/node_modules/@jimp/js-tiff/.tshy/commonjs.json b/node_modules/@jimp/js-tiff/.tshy/commonjs.json
new file mode 100644
index 0000000000000000000000000000000000000000..75bcfc1d756dcb1baafc973385c81c5aa93f3174
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/.tshy/commonjs.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.cts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/**/*.mts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/commonjs"
+ }
+}
diff --git a/node_modules/@jimp/js-tiff/.tshy/esm.json b/node_modules/@jimp/js-tiff/.tshy/esm.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdc4fa775818876f2e8f6cd606e9bb337515ac56
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/.tshy/esm.json
@@ -0,0 +1,16 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.mts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/esm"
+ }
+}
diff --git a/node_modules/@jimp/js-tiff/CHANGELOG.md b/node_modules/@jimp/js-tiff/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..2b6908c4c86d1f7a6e51649d324e2272f1ffc3d9
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/CHANGELOG.md
@@ -0,0 +1,51 @@
+# v1.1.3 (Mon Sep 02 2024)
+
+#### 🐛 Bug Fix
+
+- Update deps [#1319](https://github.com/jimp-dev/jimp/pull/1319) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.0 (Sun Sep 01 2024)
+
+#### ⚠️ Pushed to `main`
+
+- upgrade tshy ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.3 (Sat Aug 31 2024)
+
+#### 🐛 Bug Fix
+
+- Fix build [#1303](https://github.com/jimp-dev/jimp/pull/1303) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### ⚠️ Pushed to `main`
+
+- add clean script ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.2 (Sat Aug 31 2024)
+
+#### ⚠️ Pushed to `main`
+
+- set side effects ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- fix versions ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- add publish config ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
diff --git a/node_modules/@jimp/js-tiff/LICENSE b/node_modules/@jimp/js-tiff/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..baa5d48509a18b9ab4f6c39289362690ea68e688
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Oliver Moran
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@jimp/js-tiff/README.md b/node_modules/@jimp/js-tiff/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..3f3a92d78b710704ab78374ad8a8262568aaae1f
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/README.md
@@ -0,0 +1,6 @@
+
+

+
@jimp/tiff
+
Default Jimp tiff encoder/decoder.
+
diff --git a/node_modules/@jimp/js-tiff/dist/commonjs/index.d.ts b/node_modules/@jimp/js-tiff/dist/commonjs/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..4350a10d6cc69e023549b9dc8a20491c3c0c9ff5
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/commonjs/index.d.ts
@@ -0,0 +1,7 @@
+import { Bitmap } from "@jimp/types";
+export default function tiff(): {
+ mime: "image/tiff";
+ encode: (bitmap: Bitmap) => Buffer;
+ decode: (data: Buffer) => Bitmap;
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/dist/commonjs/index.d.ts.map b/node_modules/@jimp/js-tiff/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..1cd6c9f80ed191ddac7c68e857e7149f142ae2c4
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAU,MAAM,aAAa,CAAC;AAkB7C,MAAM,CAAC,OAAO,UAAU,IAAI;;;8BAiCjB,MAAM;EAGhB"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/dist/commonjs/index.js b/node_modules/@jimp/js-tiff/dist/commonjs/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..4c4f166914570b0e2679d6b42b078a6065c393f2
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/commonjs/index.js
@@ -0,0 +1,51 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.default = tiff;
+const utif2_1 = __importDefault(require("utif2"));
+function getDimensionValue(dimension) {
+ if (typeof dimension === "number") {
+ return dimension;
+ }
+ if (dimension instanceof Uint8Array) {
+ return dimension[0];
+ }
+ if (typeof dimension[0] === "string") {
+ return parseInt(dimension[0]);
+ }
+ return dimension[0];
+}
+function tiff() {
+ return {
+ mime: "image/tiff",
+ encode: (bitmap) => {
+ const tiff = utif2_1.default.encodeImage(bitmap.data, bitmap.width, bitmap.height);
+ return Buffer.from(tiff);
+ },
+ decode: (data) => {
+ const ifds = utif2_1.default.decode(data);
+ const page = ifds[0];
+ if (!page) {
+ throw new Error("No page found in TIFF");
+ }
+ if (!page.t256) {
+ throw new Error("No image width found in TIFF");
+ }
+ if (!page.t257) {
+ throw new Error("No image height found in TIFF");
+ }
+ ifds.forEach((ifd) => {
+ utif2_1.default.decodeImage(data, ifd);
+ });
+ const rgba = utif2_1.default.toRGBA8(page);
+ return {
+ data: Buffer.from(rgba),
+ width: getDimensionValue(page.t256),
+ height: getDimensionValue(page.t257),
+ };
+ },
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/dist/commonjs/index.js.map b/node_modules/@jimp/js-tiff/dist/commonjs/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..c2f7f64f4edf7645c0f419a8be258b667298eab8
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAmBA,uBAoCC;AAvDD,kDAAsC;AAGtC,SAAS,iBAAiB,CAAC,SAAwC;IACjE,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QAClC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,SAAS,YAAY,UAAU,EAAE,CAAC;QACpC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;IAED,IAAI,OAAO,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;QACrC,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC;AAED,SAAwB,IAAI;IAC1B,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;YACjB,MAAM,IAAI,GAAG,eAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YACxE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;QACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACf,MAAM,IAAI,GAAG,eAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YAErB,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;YAC3C,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;YAClD,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;YACnD,CAAC;YAED,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnB,eAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAC9B,CAAC,CAAC,CAAC;YAEH,MAAM,IAAI,GAAG,eAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAEhC,OAAO;gBACL,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBACvB,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC;gBACnC,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC;aAC3B,CAAC;QACd,CAAC;KAC6B,CAAC;AACnC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/dist/commonjs/package.json b/node_modules/@jimp/js-tiff/dist/commonjs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/@jimp/js-tiff/dist/esm/index.d.ts b/node_modules/@jimp/js-tiff/dist/esm/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..4350a10d6cc69e023549b9dc8a20491c3c0c9ff5
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/esm/index.d.ts
@@ -0,0 +1,7 @@
+import { Bitmap } from "@jimp/types";
+export default function tiff(): {
+ mime: "image/tiff";
+ encode: (bitmap: Bitmap) => Buffer;
+ decode: (data: Buffer) => Bitmap;
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/dist/esm/index.d.ts.map b/node_modules/@jimp/js-tiff/dist/esm/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..1cd6c9f80ed191ddac7c68e857e7149f142ae2c4
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/esm/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAU,MAAM,aAAa,CAAC;AAkB7C,MAAM,CAAC,OAAO,UAAU,IAAI;;;8BAiCjB,MAAM;EAGhB"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/dist/esm/index.js b/node_modules/@jimp/js-tiff/dist/esm/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..65dc631c8fdc6b092e5f3abc98009f5746ef17ee
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/esm/index.js
@@ -0,0 +1,45 @@
+import utif from "utif2";
+function getDimensionValue(dimension) {
+ if (typeof dimension === "number") {
+ return dimension;
+ }
+ if (dimension instanceof Uint8Array) {
+ return dimension[0];
+ }
+ if (typeof dimension[0] === "string") {
+ return parseInt(dimension[0]);
+ }
+ return dimension[0];
+}
+export default function tiff() {
+ return {
+ mime: "image/tiff",
+ encode: (bitmap) => {
+ const tiff = utif.encodeImage(bitmap.data, bitmap.width, bitmap.height);
+ return Buffer.from(tiff);
+ },
+ decode: (data) => {
+ const ifds = utif.decode(data);
+ const page = ifds[0];
+ if (!page) {
+ throw new Error("No page found in TIFF");
+ }
+ if (!page.t256) {
+ throw new Error("No image width found in TIFF");
+ }
+ if (!page.t257) {
+ throw new Error("No image height found in TIFF");
+ }
+ ifds.forEach((ifd) => {
+ utif.decodeImage(data, ifd);
+ });
+ const rgba = utif.toRGBA8(page);
+ return {
+ data: Buffer.from(rgba),
+ width: getDimensionValue(page.t256),
+ height: getDimensionValue(page.t257),
+ };
+ },
+ };
+}
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/dist/esm/index.js.map b/node_modules/@jimp/js-tiff/dist/esm/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..2382cf53adf9e3fc13b7ae02e6feffaa845b760c
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAiB,MAAM,OAAO,CAAC;AAGtC,SAAS,iBAAiB,CAAC,SAAwC;IACjE,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QAClC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,SAAS,YAAY,UAAU,EAAE,CAAC;QACpC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;IAED,IAAI,OAAO,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;QACrC,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,IAAI;IAC1B,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;YACjB,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YACxE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;QACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACf,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YAErB,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;YAC3C,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;YAClD,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;YACnD,CAAC;YAED,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnB,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAC9B,CAAC,CAAC,CAAC;YAEH,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAEhC,OAAO;gBACL,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBACvB,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC;gBACnC,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC;aAC3B,CAAC;QACd,CAAC;KAC6B,CAAC;AACnC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/dist/esm/package.json b/node_modules/@jimp/js-tiff/dist/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/js-tiff/eslint.config.mjs b/node_modules/@jimp/js-tiff/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..939816d0a4be5f347676861f9592614a0ca07046
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/eslint.config.mjs
@@ -0,0 +1,2 @@
+import shared from "@jimp/config-eslint/base.js";
+export default [...shared];
\ No newline at end of file
diff --git a/node_modules/@jimp/js-tiff/package.json b/node_modules/@jimp/js-tiff/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..41851fbca45a9a512361285cab85f255933038c5
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/package.json
@@ -0,0 +1,67 @@
+{
+ "name": "@jimp/js-tiff",
+ "version": "1.6.1",
+ "repository": "jimp-dev/jimp",
+ "engines": {
+ "node": ">=18"
+ },
+ "scripts": {
+ "lint": "eslint .",
+ "test": "vitest",
+ "test:browser": "vitest --config vitest.config.browser.mjs",
+ "build": "tshy",
+ "dev": "tshy --watch",
+ "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo"
+ },
+ "author": "Andrew Lisowski ",
+ "license": "MIT",
+ "devDependencies": {
+ "@jimp/config-eslint": "1.6.1",
+ "@jimp/config-typescript": "1.6.1",
+ "@jimp/config-vitest": "1.6.1",
+ "@jimp/test-utils": "1.6.1",
+ "@types/node": "^18.19.48",
+ "@vitest/browser": "^2.0.5",
+ "eslint": "^9.9.1",
+ "tshy": "^3.0.2",
+ "typescript": "^5.5.4",
+ "vite-plugin-node-polyfills": "^0.22.0",
+ "vitest": "^2.0.5"
+ },
+ "tshy": {
+ "exclude": [
+ "**/*.test.ts"
+ ],
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ }
+ },
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ },
+ "main": "./dist/commonjs/index.js",
+ "types": "./dist/commonjs/index.d.ts",
+ "type": "module",
+ "dependencies": {
+ "@jimp/core": "1.6.1",
+ "@jimp/types": "1.6.1",
+ "utif2": "^4.1.0"
+ },
+ "publishConfig": {
+ "access": "public"
+ },
+ "sideEffects": false,
+ "module": "./dist/esm/index.js",
+ "gitHead": "7e6a95694e00a8b6f1bdd9aad709f5413eb9b08c"
+}
diff --git a/node_modules/@jimp/js-tiff/src/index.test.ts b/node_modules/@jimp/js-tiff/src/index.test.ts
new file mode 100644
index 0000000000000000000000000000000000000000..76d7ed6ed3b9834b86311f8f10fe496815714aa7
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/src/index.test.ts
@@ -0,0 +1,32 @@
+import { expect, test, describe } from "vitest";
+import { createJimp } from "@jimp/core";
+import { getTestImagePath } from "@jimp/test-utils";
+
+import tiff from "./index.js";
+
+const jimp = createJimp({ formats: [tiff] });
+
+describe("TIFF", () => {
+ test("load TIFF", async () => {
+ const image = await jimp.read(getTestImagePath("rgb.tiff"));
+
+ expect(image.getPixelColor(10, 10)).toBe(0xa4988bff);
+ expect(image.getPixelColor(220, 190)).toBe(0xe0d7ddff);
+ expect(image.getPixelColor(350, 130)).toBe(0x565433ff);
+ });
+
+ test("export TIFF", async () => {
+ const image = jimp.fromBitmap({
+ width: 3,
+ height: 3,
+ data: [
+ 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff,
+ 0xff00ffff, 0x8000ffff, 0x0000ffff,
+ ],
+ });
+ const buffer = await image.getBuffer("image/tiff");
+
+ // eslint-disable-next-line no-control-regex
+ expect(buffer.toString()).toMatch(/^MM\u0000*\u0000/);
+ });
+});
diff --git a/node_modules/@jimp/js-tiff/src/index.ts b/node_modules/@jimp/js-tiff/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..f93602a8476b5138586c6b88b555496bef000e4c
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/src/index.ts
@@ -0,0 +1,56 @@
+import utif, { TiffTag } from "utif2";
+import { Bitmap, Format } from "@jimp/types";
+
+function getDimensionValue(dimension: number | Uint8Array | TiffTag) {
+ if (typeof dimension === "number") {
+ return dimension;
+ }
+
+ if (dimension instanceof Uint8Array) {
+ return dimension[0];
+ }
+
+ if (typeof dimension[0] === "string") {
+ return parseInt(dimension[0]);
+ }
+
+ return dimension[0];
+}
+
+export default function tiff() {
+ return {
+ mime: "image/tiff",
+ encode: (bitmap) => {
+ const tiff = utif.encodeImage(bitmap.data, bitmap.width, bitmap.height);
+ return Buffer.from(tiff);
+ },
+ decode: (data) => {
+ const ifds = utif.decode(data);
+ const page = ifds[0];
+
+ if (!page) {
+ throw new Error("No page found in TIFF");
+ }
+
+ if (!page.t256) {
+ throw new Error("No image width found in TIFF");
+ }
+
+ if (!page.t257) {
+ throw new Error("No image height found in TIFF");
+ }
+
+ ifds.forEach((ifd) => {
+ utif.decodeImage(data, ifd);
+ });
+
+ const rgba = utif.toRGBA8(page);
+
+ return {
+ data: Buffer.from(rgba),
+ width: getDimensionValue(page.t256),
+ height: getDimensionValue(page.t257),
+ } as Bitmap;
+ },
+ } satisfies Format<"image/tiff">;
+}
diff --git a/node_modules/@jimp/js-tiff/tsconfig.json b/node_modules/@jimp/js-tiff/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad7f216ca2b10874329665feda994727844e4305
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "extends": "@jimp/config-typescript/base.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ }
+}
diff --git a/node_modules/@jimp/js-tiff/vitest.config.browser.mjs b/node_modules/@jimp/js-tiff/vitest.config.browser.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..dfe6aff6b16f48bc45697e4c14219f2034754cf5
--- /dev/null
+++ b/node_modules/@jimp/js-tiff/vitest.config.browser.mjs
@@ -0,0 +1,3 @@
+import config from "@jimp/config-vitest/browser";
+
+export default config;
diff --git a/node_modules/@jimp/plugin-blit/.tshy/build.json b/node_modules/@jimp/plugin-blit/.tshy/build.json
new file mode 100644
index 0000000000000000000000000000000000000000..aea1a9e93b5db3468973ebeaad6dac0a77b10c02
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/.tshy/build.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "../src",
+ "module": "nodenext",
+ "moduleResolution": "nodenext"
+ }
+}
diff --git a/node_modules/@jimp/plugin-blit/.tshy/commonjs.json b/node_modules/@jimp/plugin-blit/.tshy/commonjs.json
new file mode 100644
index 0000000000000000000000000000000000000000..75bcfc1d756dcb1baafc973385c81c5aa93f3174
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/.tshy/commonjs.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.cts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/**/*.mts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/commonjs"
+ }
+}
diff --git a/node_modules/@jimp/plugin-blit/.tshy/esm.json b/node_modules/@jimp/plugin-blit/.tshy/esm.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdc4fa775818876f2e8f6cd606e9bb337515ac56
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/.tshy/esm.json
@@ -0,0 +1,16 @@
+{
+ "extends": "./build.json",
+ "include": [
+ "../src/**/*.ts",
+ "../src/**/*.mts",
+ "../src/**/*.tsx",
+ "../src/**/*.json"
+ ],
+ "exclude": [
+ "../**/*.test.ts",
+ "../src/package.json"
+ ],
+ "compilerOptions": {
+ "outDir": "../.tshy-build/esm"
+ }
+}
diff --git a/node_modules/@jimp/plugin-blit/CHANGELOG.md b/node_modules/@jimp/plugin-blit/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..b74ff6d59c2b16c506f4a03cb5f071ccc1e763ab
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/CHANGELOG.md
@@ -0,0 +1,64 @@
+# v1.4.0 (Sat Sep 07 2024)
+
+#### 📝 Documentation
+
+- Misc doc updates [#1334](https://github.com/jimp-dev/jimp/pull/1334) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.3 (Mon Sep 02 2024)
+
+#### 🐛 Bug Fix
+
+- Update deps [#1319](https://github.com/jimp-dev/jimp/pull/1319) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.1.0 (Sun Sep 01 2024)
+
+#### ⚠️ Pushed to `main`
+
+- upgrade tshy ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- update more docs ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.3 (Sat Aug 31 2024)
+
+#### 🐛 Bug Fix
+
+- Fix build [#1303](https://github.com/jimp-dev/jimp/pull/1303) ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### ⚠️ Pushed to `main`
+
+- add clean script ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+---
+
+# v1.0.2 (Sat Aug 31 2024)
+
+#### ⚠️ Pushed to `main`
+
+- set side effects ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- fix versions ([@hipstersmoothie](https://github.com/hipstersmoothie))
+- add publish config ([@hipstersmoothie](https://github.com/hipstersmoothie))
+
+#### Authors: 1
+
+- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
diff --git a/node_modules/@jimp/plugin-blit/LICENSE b/node_modules/@jimp/plugin-blit/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..baa5d48509a18b9ab4f6c39289362690ea68e688
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Oliver Moran
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@jimp/plugin-blit/README.md b/node_modules/@jimp/plugin-blit/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..78ac4757ebe53df7e9301ceba27c30ef53114449
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/README.md
@@ -0,0 +1,10 @@
+
+

+
@jimp/plugin-blit
+
Blit an image.
+
+
+> Blit - a data operation commonly used in computer graphics in which several bitmaps are combined into one using a boolean function.
+
+[Read the docs](http://jimp-dev.github.io/jimp/api/jimp/classes/jimp#blit)
diff --git a/node_modules/@jimp/plugin-blit/dist/commonjs/index.d.ts b/node_modules/@jimp/plugin-blit/dist/commonjs/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..3916d36d82c0727c28fc276d1d47fca3565b56ff
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/commonjs/index.d.ts
@@ -0,0 +1,118 @@
+import { JimpClass } from "@jimp/types";
+import { z } from "zod";
+declare const BlitOptionsSchema: z.ZodUnion<[z.ZodObject<{
+ bitmap: z.ZodObject<{
+ data: z.ZodUnion<[z.ZodType, z.ZodType]>;
+ width: z.ZodNumber;
+ height: z.ZodNumber;
+ }, "strip", z.ZodTypeAny, {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ }, {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ }>;
+}, "strip", z.ZodTypeAny, {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+}, {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+}>, z.ZodObject<{
+ src: z.ZodObject<{
+ bitmap: z.ZodObject<{
+ data: z.ZodUnion<[z.ZodType, z.ZodType]>;
+ width: z.ZodNumber;
+ height: z.ZodNumber;
+ }, "strip", z.ZodTypeAny, {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ }, {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ }>;
+ }, "strip", z.ZodTypeAny, {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+ }, {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+ }>;
+ /** the x position to blit the image */
+ x: z.ZodOptional;
+ /** the y position to blit the image */
+ y: z.ZodOptional;
+ /** the x position from which to crop the source image */
+ srcX: z.ZodOptional;
+ /** the y position from which to crop the source image */
+ srcY: z.ZodOptional;
+ /** the width to which to crop the source image */
+ srcW: z.ZodOptional;
+ /** the height to which to crop the source image */
+ srcH: z.ZodOptional;
+}, "strip", z.ZodTypeAny, {
+ src: {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+ };
+ x?: number | undefined;
+ y?: number | undefined;
+ srcX?: number | undefined;
+ srcY?: number | undefined;
+ srcW?: number | undefined;
+ srcH?: number | undefined;
+}, {
+ src: {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+ };
+ x?: number | undefined;
+ y?: number | undefined;
+ srcX?: number | undefined;
+ srcY?: number | undefined;
+ srcW?: number | undefined;
+ srcH?: number | undefined;
+}>]>;
+export type BlitOptions = z.infer;
+export declare const methods: {
+ /**
+ * Short for "bit-block transfer".
+ * It involves the transfer of a block of pixel data from one area of a computer's memory to another area, typically for the purpose of rendering images on the screen or manipulating them in various ways.
+ * It's a fundamental operation in computer graphics utilized in various applications, from operating systems to video games.
+ *
+ * @example
+ * ```ts
+ * import { Jimp } from "jimp";
+ *
+ * const image = await Jimp.read("test/image.png");
+ * const parrot = await Jimp.read("test/party-parrot.png");
+ *
+ * image.blit({ src: parrot, x: 10, y: 10 });
+ * ```
+ */
+ blit(image: I, options: BlitOptions): I;
+};
+export {};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/dist/commonjs/index.d.ts.map b/node_modules/@jimp/plugin-blit/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..18355b4355d71488ec01c7f0235d475738ed9d27
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,QAAA,MAAM,iBAAiB;;oCAEV,MAAM,gBAAe,MAAO;;;;cAK0B,MAAO;;;;cAAoF,MAAO;;;;;;cAClF,MAAO;;;;;;cAKvF,MACF;;;;;;;wCAZY,MAAM,gBAAe,MAAO;;;;kBAK0B,MAAO;;;;kBAAoF,MAAO;;;;;;kBAClF,MAAO;;;;;;kBAKvF,MACF;;;;;IA9BC,uCAAuC;;IAEvC,uCAAuC;;IAEvC,yDAAyD;;IAEzD,yDAAyD;;IAEzD,kDAAkD;;IAElD,mDAAmD;;;;;kBAc8B,MAAO;;;;;;;;;;;;;;kBAKvF,MACF;;;;;;;;;;;IAd6E,CAAC;AAE/E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,OAAO;IAClB;;;;;;;;;;;;;;OAcG;SACE,CAAC,SAAS,SAAS,SAAS,CAAC,WAAW,WAAW;CAuEzD,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/dist/commonjs/index.js b/node_modules/@jimp/plugin-blit/dist/commonjs/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..51241d705e0f547f5442c9af91c0d9663a21caf2
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/commonjs/index.js
@@ -0,0 +1,92 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.methods = void 0;
+const types_1 = require("@jimp/types");
+const utils_1 = require("@jimp/utils");
+const zod_1 = require("zod");
+const BlitOptionsSchemaComplex = zod_1.z.object({
+ src: types_1.JimpClassSchema,
+ /** the x position to blit the image */
+ x: zod_1.z.number().optional(),
+ /** the y position to blit the image */
+ y: zod_1.z.number().optional(),
+ /** the x position from which to crop the source image */
+ srcX: zod_1.z.number().optional(),
+ /** the y position from which to crop the source image */
+ srcY: zod_1.z.number().optional(),
+ /** the width to which to crop the source image */
+ srcW: zod_1.z.number().optional(),
+ /** the height to which to crop the source image */
+ srcH: zod_1.z.number().optional(),
+});
+const BlitOptionsSchema = zod_1.z.union([types_1.JimpClassSchema, BlitOptionsSchemaComplex]);
+exports.methods = {
+ /**
+ * Short for "bit-block transfer".
+ * It involves the transfer of a block of pixel data from one area of a computer's memory to another area, typically for the purpose of rendering images on the screen or manipulating them in various ways.
+ * It's a fundamental operation in computer graphics utilized in various applications, from operating systems to video games.
+ *
+ * @example
+ * ```ts
+ * import { Jimp } from "jimp";
+ *
+ * const image = await Jimp.read("test/image.png");
+ * const parrot = await Jimp.read("test/party-parrot.png");
+ *
+ * image.blit({ src: parrot, x: 10, y: 10 });
+ * ```
+ */
+ blit(image, options) {
+ const parsed = BlitOptionsSchema.parse(options);
+ let {
+ // eslint-disable-next-line prefer-const
+ src, x = 0, y = 0, srcX = 0, srcY = 0, srcW = src.bitmap.width, srcH = src.bitmap.height, } = "bitmap" in parsed ? { src: parsed } : parsed;
+ if (!("bitmap" in src)) {
+ throw new Error("The source must be a Jimp image");
+ }
+ if (typeof x !== "number" || typeof y !== "number") {
+ throw new Error("x and y must be numbers");
+ }
+ // round input
+ x = Math.round(x);
+ y = Math.round(y);
+ // round input
+ srcX = Math.round(srcX);
+ srcY = Math.round(srcY);
+ srcW = Math.round(srcW);
+ srcH = Math.round(srcH);
+ const maxWidth = image.bitmap.width;
+ const maxHeight = image.bitmap.height;
+ (0, utils_1.scan)(src, srcX, srcY, srcW, srcH, function (sx, sy, idx) {
+ const xOffset = x + sx - srcX;
+ const yOffset = y + sy - srcY;
+ if (xOffset >= 0 &&
+ yOffset >= 0 &&
+ maxWidth - xOffset > 0 &&
+ maxHeight - yOffset > 0) {
+ const dstIdx = image.getPixelIndex(xOffset, yOffset);
+ const srcColor = {
+ r: src.bitmap.data[idx] || 0,
+ g: src.bitmap.data[idx + 1] || 0,
+ b: src.bitmap.data[idx + 2] || 0,
+ a: src.bitmap.data[idx + 3] || 0,
+ };
+ const dst = {
+ r: image.bitmap.data[dstIdx] || 0,
+ g: image.bitmap.data[dstIdx + 1] || 0,
+ b: image.bitmap.data[dstIdx + 2] || 0,
+ a: image.bitmap.data[dstIdx + 3] || 0,
+ };
+ image.bitmap.data[dstIdx] =
+ ((srcColor.a * (srcColor.r - dst.r) - dst.r + 255) >> 8) + dst.r;
+ image.bitmap.data[dstIdx + 1] =
+ ((srcColor.a * (srcColor.g - dst.g) - dst.g + 255) >> 8) + dst.g;
+ image.bitmap.data[dstIdx + 2] =
+ ((srcColor.a * (srcColor.b - dst.b) - dst.b + 255) >> 8) + dst.b;
+ image.bitmap.data[dstIdx + 3] = (0, utils_1.limit255)(dst.a + srcColor.a);
+ }
+ });
+ return image;
+ },
+};
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/dist/commonjs/index.js.map b/node_modules/@jimp/plugin-blit/dist/commonjs/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..f959ead842764f41a06cf05f4c893aa36ec2c64a
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAyD;AACzD,uCAA6C;AAC7C,6BAAwB;AAExB,MAAM,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,uBAAe;IACpB,uCAAuC;IACvC,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,uCAAuC;IACvC,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,yDAAyD;IACzD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,yDAAyD;IACzD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,kDAAkD;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,mDAAmD;IACnD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAIH,MAAM,iBAAiB,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,uBAAe,EAAE,wBAAwB,CAAC,CAAC,CAAC;AAIlE,QAAA,OAAO,GAAG;IACrB;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAsB,KAAQ,EAAE,OAAoB;QACtD,MAAM,MAAM,GAAG,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI;QACF,wCAAwC;QACxC,GAAG,EACH,CAAC,GAAG,CAAC,EACL,CAAC,GAAG,CAAC,EACL,IAAI,GAAG,CAAC,EACR,IAAI,GAAG,CAAC,EACR,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,EACvB,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,GACzB,GAAG,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAE,EAAE,GAAG,EAAE,MAAM,EAAyB,CAAC,CAAC,CAAC,MAAM,CAAC;QAE1E,IAAI,CAAC,CAAC,QAAQ,IAAI,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;YACnD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7C,CAAC;QAED,cAAc;QACd,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAElB,cAAc;QACd,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAExB,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;QACpC,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QAEtC,IAAA,YAAI,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,GAAG;YACrD,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;YAC9B,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;YAE9B,IACE,OAAO,IAAI,CAAC;gBACZ,OAAO,IAAI,CAAC;gBACZ,QAAQ,GAAG,OAAO,GAAG,CAAC;gBACtB,SAAS,GAAG,OAAO,GAAG,CAAC,EACvB,CAAC;gBACD,MAAM,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBACrD,MAAM,QAAQ,GAAG;oBACf,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;oBAC5B,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC;oBAChC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC;oBAChC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC;iBACjC,CAAC;gBAEF,MAAM,GAAG,GAAG;oBACV,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;oBACjC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;oBACrC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;oBACrC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;iBACtC,CAAC;gBAEF,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;oBACvB,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;gBACnE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;oBAC3B,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;gBACnE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;oBAC3B,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;gBACnE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC/D,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/dist/commonjs/package.json b/node_modules/@jimp/plugin-blit/dist/commonjs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/@jimp/plugin-blit/dist/esm/index.d.ts b/node_modules/@jimp/plugin-blit/dist/esm/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..3916d36d82c0727c28fc276d1d47fca3565b56ff
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/esm/index.d.ts
@@ -0,0 +1,118 @@
+import { JimpClass } from "@jimp/types";
+import { z } from "zod";
+declare const BlitOptionsSchema: z.ZodUnion<[z.ZodObject<{
+ bitmap: z.ZodObject<{
+ data: z.ZodUnion<[z.ZodType, z.ZodType]>;
+ width: z.ZodNumber;
+ height: z.ZodNumber;
+ }, "strip", z.ZodTypeAny, {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ }, {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ }>;
+}, "strip", z.ZodTypeAny, {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+}, {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+}>, z.ZodObject<{
+ src: z.ZodObject<{
+ bitmap: z.ZodObject<{
+ data: z.ZodUnion<[z.ZodType, z.ZodType]>;
+ width: z.ZodNumber;
+ height: z.ZodNumber;
+ }, "strip", z.ZodTypeAny, {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ }, {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ }>;
+ }, "strip", z.ZodTypeAny, {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+ }, {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+ }>;
+ /** the x position to blit the image */
+ x: z.ZodOptional;
+ /** the y position to blit the image */
+ y: z.ZodOptional;
+ /** the x position from which to crop the source image */
+ srcX: z.ZodOptional;
+ /** the y position from which to crop the source image */
+ srcY: z.ZodOptional;
+ /** the width to which to crop the source image */
+ srcW: z.ZodOptional;
+ /** the height to which to crop the source image */
+ srcH: z.ZodOptional;
+}, "strip", z.ZodTypeAny, {
+ src: {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+ };
+ x?: number | undefined;
+ y?: number | undefined;
+ srcX?: number | undefined;
+ srcY?: number | undefined;
+ srcW?: number | undefined;
+ srcH?: number | undefined;
+}, {
+ src: {
+ bitmap: {
+ data: Buffer | Uint8Array;
+ width: number;
+ height: number;
+ };
+ };
+ x?: number | undefined;
+ y?: number | undefined;
+ srcX?: number | undefined;
+ srcY?: number | undefined;
+ srcW?: number | undefined;
+ srcH?: number | undefined;
+}>]>;
+export type BlitOptions = z.infer;
+export declare const methods: {
+ /**
+ * Short for "bit-block transfer".
+ * It involves the transfer of a block of pixel data from one area of a computer's memory to another area, typically for the purpose of rendering images on the screen or manipulating them in various ways.
+ * It's a fundamental operation in computer graphics utilized in various applications, from operating systems to video games.
+ *
+ * @example
+ * ```ts
+ * import { Jimp } from "jimp";
+ *
+ * const image = await Jimp.read("test/image.png");
+ * const parrot = await Jimp.read("test/party-parrot.png");
+ *
+ * image.blit({ src: parrot, x: 10, y: 10 });
+ * ```
+ */
+ blit(image: I, options: BlitOptions): I;
+};
+export {};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/dist/esm/index.d.ts.map b/node_modules/@jimp/plugin-blit/dist/esm/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..18355b4355d71488ec01c7f0235d475738ed9d27
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/esm/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,QAAA,MAAM,iBAAiB;;oCAEV,MAAM,gBAAe,MAAO;;;;cAK0B,MAAO;;;;cAAoF,MAAO;;;;;;cAClF,MAAO;;;;;;cAKvF,MACF;;;;;;;wCAZY,MAAM,gBAAe,MAAO;;;;kBAK0B,MAAO;;;;kBAAoF,MAAO;;;;;;kBAClF,MAAO;;;;;;kBAKvF,MACF;;;;;IA9BC,uCAAuC;;IAEvC,uCAAuC;;IAEvC,yDAAyD;;IAEzD,yDAAyD;;IAEzD,kDAAkD;;IAElD,mDAAmD;;;;;kBAc8B,MAAO;;;;;;;;;;;;;;kBAKvF,MACF;;;;;;;;;;;IAd6E,CAAC;AAE/E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,OAAO;IAClB;;;;;;;;;;;;;;OAcG;SACE,CAAC,SAAS,SAAS,SAAS,CAAC,WAAW,WAAW;CAuEzD,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/dist/esm/index.js b/node_modules/@jimp/plugin-blit/dist/esm/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..61b83f37d79b42317bad91923ca545d755b43476
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/esm/index.js
@@ -0,0 +1,89 @@
+import { JimpClassSchema } from "@jimp/types";
+import { limit255, scan } from "@jimp/utils";
+import { z } from "zod";
+const BlitOptionsSchemaComplex = z.object({
+ src: JimpClassSchema,
+ /** the x position to blit the image */
+ x: z.number().optional(),
+ /** the y position to blit the image */
+ y: z.number().optional(),
+ /** the x position from which to crop the source image */
+ srcX: z.number().optional(),
+ /** the y position from which to crop the source image */
+ srcY: z.number().optional(),
+ /** the width to which to crop the source image */
+ srcW: z.number().optional(),
+ /** the height to which to crop the source image */
+ srcH: z.number().optional(),
+});
+const BlitOptionsSchema = z.union([JimpClassSchema, BlitOptionsSchemaComplex]);
+export const methods = {
+ /**
+ * Short for "bit-block transfer".
+ * It involves the transfer of a block of pixel data from one area of a computer's memory to another area, typically for the purpose of rendering images on the screen or manipulating them in various ways.
+ * It's a fundamental operation in computer graphics utilized in various applications, from operating systems to video games.
+ *
+ * @example
+ * ```ts
+ * import { Jimp } from "jimp";
+ *
+ * const image = await Jimp.read("test/image.png");
+ * const parrot = await Jimp.read("test/party-parrot.png");
+ *
+ * image.blit({ src: parrot, x: 10, y: 10 });
+ * ```
+ */
+ blit(image, options) {
+ const parsed = BlitOptionsSchema.parse(options);
+ let {
+ // eslint-disable-next-line prefer-const
+ src, x = 0, y = 0, srcX = 0, srcY = 0, srcW = src.bitmap.width, srcH = src.bitmap.height, } = "bitmap" in parsed ? { src: parsed } : parsed;
+ if (!("bitmap" in src)) {
+ throw new Error("The source must be a Jimp image");
+ }
+ if (typeof x !== "number" || typeof y !== "number") {
+ throw new Error("x and y must be numbers");
+ }
+ // round input
+ x = Math.round(x);
+ y = Math.round(y);
+ // round input
+ srcX = Math.round(srcX);
+ srcY = Math.round(srcY);
+ srcW = Math.round(srcW);
+ srcH = Math.round(srcH);
+ const maxWidth = image.bitmap.width;
+ const maxHeight = image.bitmap.height;
+ scan(src, srcX, srcY, srcW, srcH, function (sx, sy, idx) {
+ const xOffset = x + sx - srcX;
+ const yOffset = y + sy - srcY;
+ if (xOffset >= 0 &&
+ yOffset >= 0 &&
+ maxWidth - xOffset > 0 &&
+ maxHeight - yOffset > 0) {
+ const dstIdx = image.getPixelIndex(xOffset, yOffset);
+ const srcColor = {
+ r: src.bitmap.data[idx] || 0,
+ g: src.bitmap.data[idx + 1] || 0,
+ b: src.bitmap.data[idx + 2] || 0,
+ a: src.bitmap.data[idx + 3] || 0,
+ };
+ const dst = {
+ r: image.bitmap.data[dstIdx] || 0,
+ g: image.bitmap.data[dstIdx + 1] || 0,
+ b: image.bitmap.data[dstIdx + 2] || 0,
+ a: image.bitmap.data[dstIdx + 3] || 0,
+ };
+ image.bitmap.data[dstIdx] =
+ ((srcColor.a * (srcColor.r - dst.r) - dst.r + 255) >> 8) + dst.r;
+ image.bitmap.data[dstIdx + 1] =
+ ((srcColor.a * (srcColor.g - dst.g) - dst.g + 255) >> 8) + dst.g;
+ image.bitmap.data[dstIdx + 2] =
+ ((srcColor.a * (srcColor.b - dst.b) - dst.b + 255) >> 8) + dst.b;
+ image.bitmap.data[dstIdx + 3] = limit255(dst.a + srcColor.a);
+ }
+ });
+ return image;
+ },
+};
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/dist/esm/index.js.map b/node_modules/@jimp/plugin-blit/dist/esm/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..0e17716d507b5c4a6c77f1cc9273f48951c95ef0
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,eAAe;IACpB,uCAAuC;IACvC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,uCAAuC;IACvC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,yDAAyD;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,yDAAyD;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,kDAAkD;IAClD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,mDAAmD;IACnD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAIH,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAC,CAAC;AAI/E,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAsB,KAAQ,EAAE,OAAoB;QACtD,MAAM,MAAM,GAAG,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI;QACF,wCAAwC;QACxC,GAAG,EACH,CAAC,GAAG,CAAC,EACL,CAAC,GAAG,CAAC,EACL,IAAI,GAAG,CAAC,EACR,IAAI,GAAG,CAAC,EACR,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,EACvB,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,GACzB,GAAG,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAE,EAAE,GAAG,EAAE,MAAM,EAAyB,CAAC,CAAC,CAAC,MAAM,CAAC;QAE1E,IAAI,CAAC,CAAC,QAAQ,IAAI,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;YACnD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7C,CAAC;QAED,cAAc;QACd,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAElB,cAAc;QACd,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAExB,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;QACpC,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QAEtC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,GAAG;YACrD,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;YAC9B,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;YAE9B,IACE,OAAO,IAAI,CAAC;gBACZ,OAAO,IAAI,CAAC;gBACZ,QAAQ,GAAG,OAAO,GAAG,CAAC;gBACtB,SAAS,GAAG,OAAO,GAAG,CAAC,EACvB,CAAC;gBACD,MAAM,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBACrD,MAAM,QAAQ,GAAG;oBACf,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;oBAC5B,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC;oBAChC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC;oBAChC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC;iBACjC,CAAC;gBAEF,MAAM,GAAG,GAAG;oBACV,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;oBACjC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;oBACrC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;oBACrC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;iBACtC,CAAC;gBAEF,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;oBACvB,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;gBACnE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;oBAC3B,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;gBACnE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;oBAC3B,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;gBACnE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC/D,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/dist/esm/package.json b/node_modules/@jimp/plugin-blit/dist/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/plugin-blit/eslint.config.mjs b/node_modules/@jimp/plugin-blit/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..939816d0a4be5f347676861f9592614a0ca07046
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/eslint.config.mjs
@@ -0,0 +1,2 @@
+import shared from "@jimp/config-eslint/base.js";
+export default [...shared];
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/LICENSE b/node_modules/@jimp/plugin-blit/node_modules/zod/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..c06579627b432d09779094cd0166b7f37fe51db8
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 Colin McDonnell
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/README.md b/node_modules/@jimp/plugin-blit/node_modules/zod/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..5ffbaa84a76c8873d22bfb83681558ea14f0a421
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/README.md
@@ -0,0 +1,208 @@
+
+
+
Zod
+
+ TypeScript-first schema validation with static type inference
+
+ by @colinhacks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Featured sponsor: Jazz
+
+
+
+
+
+
+
+### [Read the docs →](https://zod.dev/api)
+
+
+
+
+## What is Zod?
+
+Zod is a TypeScript-first validation library. Define a schema and parse some data with it. You'll get back a strongly typed, validated result.
+
+```ts
+import * as z from "zod/v4";
+
+const User = z.object({
+ name: z.string(),
+});
+
+// some untrusted data...
+const input = {
+ /* stuff */
+};
+
+// the parsed result is validated and type safe!
+const data = User.parse(input);
+
+// so you can use it with confidence :)
+console.log(data.name);
+```
+
+
+
+## Features
+
+- Zero external dependencies
+- Works in Node.js and all modern browsers
+- Tiny: `2kb` core bundle (gzipped)
+- Immutable API: methods return a new instance
+- Concise interface
+- Works with TypeScript and plain JS
+- Built-in JSON Schema conversion
+- Extensive ecosystem
+
+
+
+## Installation
+
+```sh
+npm install zod
+```
+
+
+
+## Basic usage
+
+Before you can do anything else, you need to define a schema. For the purposes of this guide, we'll use a simple object schema.
+
+```ts
+import * as z from "zod/v4";
+
+const Player = z.object({
+ username: z.string(),
+ xp: z.number(),
+});
+```
+
+### Parsing data
+
+Given any Zod schema, use `.parse` to validate an input. If it's valid, Zod returns a strongly-typed _deep clone_ of the input.
+
+```ts
+Player.parse({ username: "billie", xp: 100 });
+// => returns { username: "billie", xp: 100 }
+```
+
+**Note** — If your schema uses certain asynchronous APIs like `async` [refinements](#refine) or [transforms](#transform), you'll need to use the `.parseAsync()` method instead.
+
+```ts
+const schema = z.string().refine(async (val) => val.length <= 8);
+
+await schema.parseAsync("hello");
+// => "hello"
+```
+
+### Handling errors
+
+When validation fails, the `.parse()` method will throw a `ZodError` instance with granular information about the validation issues.
+
+```ts
+try {
+ Player.parse({ username: 42, xp: "100" });
+} catch (err) {
+ if (err instanceof z.ZodError) {
+ err.issues;
+ /* [
+ {
+ expected: 'string',
+ code: 'invalid_type',
+ path: [ 'username' ],
+ message: 'Invalid input: expected string'
+ },
+ {
+ expected: 'number',
+ code: 'invalid_type',
+ path: [ 'xp' ],
+ message: 'Invalid input: expected number'
+ }
+ ] */
+ }
+}
+```
+
+To avoid a `try/catch` block, you can use the `.safeParse()` method to get back a plain result object containing either the successfully parsed data or a `ZodError`. The result type is a [discriminated union](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions), so you can handle both cases conveniently.
+
+```ts
+const result = Player.safeParse({ username: 42, xp: "100" });
+if (!result.success) {
+ result.error; // ZodError instance
+} else {
+ result.data; // { username: string; xp: number }
+}
+```
+
+**Note** — If your schema uses certain asynchronous APIs like `async` [refinements](#refine) or [transforms](#transform), you'll need to use the `.safeParseAsync()` method instead.
+
+```ts
+const schema = z.string().refine(async (val) => val.length <= 8);
+
+await schema.safeParseAsync("hello");
+// => { success: true; data: "hello" }
+```
+
+### Inferring types
+
+Zod infers a static type from your schema definitions. You can extract this type with the `z.infer<>` utility and use it however you like.
+
+```ts
+const Player = z.object({
+ username: z.string(),
+ xp: z.number(),
+});
+
+// extract the inferred type
+type Player = z.infer;
+
+// use it in your code
+const player: Player = { username: "billie", xp: 100 };
+```
+
+In some cases, the input & output types of a schema can diverge. For instance, the `.transform()` API can convert the input from one type to another. In these cases, you can extract the input and output types independently:
+
+```ts
+const mySchema = z.string().transform((val) => val.length);
+
+type MySchemaIn = z.input;
+// => string
+
+type MySchemaOut = z.output; // equivalent to z.infer
+// number
+```
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/index.cjs b/node_modules/@jimp/plugin-blit/node_modules/zod/index.cjs
new file mode 100644
index 0000000000000000000000000000000000000000..62f74c802b220c1e095199b3e4431461032ae461
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/index.cjs
@@ -0,0 +1,33 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __exportStar = (this && this.__exportStar) || function(m, exports) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.z = void 0;
+const z = __importStar(require("./v3/external.cjs"));
+exports.z = z;
+__exportStar(require("./v3/external.cjs"), exports);
+exports.default = z;
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/index.d.cts b/node_modules/@jimp/plugin-blit/node_modules/zod/index.d.cts
new file mode 100644
index 0000000000000000000000000000000000000000..665bd24d9fbbc120372baccfc26db2a028e0001d
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/index.d.cts
@@ -0,0 +1,4 @@
+import * as z from "./v3/external.cjs";
+export * from "./v3/external.cjs";
+export { z };
+export default z;
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/index.d.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..bf6f1643ab4526b97b1eb1a6dcdea48262f70194
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/index.d.ts
@@ -0,0 +1,4 @@
+import * as z from "./v3/external.js";
+export * from "./v3/external.js";
+export { z };
+export default z;
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/index.js b/node_modules/@jimp/plugin-blit/node_modules/zod/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..bf6f1643ab4526b97b1eb1a6dcdea48262f70194
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/index.js
@@ -0,0 +1,4 @@
+import * as z from "./v3/external.js";
+export * from "./v3/external.js";
+export { z };
+export default z;
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/package.json b/node_modules/@jimp/plugin-blit/node_modules/zod/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..eedcfb0f8e3343c8ac5ba32e5117a032352a986c
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/package.json
@@ -0,0 +1,118 @@
+{
+ "name": "zod",
+ "version": "3.25.76",
+ "type": "module",
+ "author": "Colin McDonnell ",
+ "description": "TypeScript-first schema declaration and validation library with static type inference",
+ "files": [
+ "src",
+ "**/*.js",
+ "**/*.mjs",
+ "**/*.cjs",
+ "**/*.d.ts",
+ "**/*.d.mts",
+ "**/*.d.cts"
+ ],
+ "funding": "https://github.com/sponsors/colinhacks",
+ "homepage": "https://zod.dev",
+ "keywords": [
+ "typescript",
+ "schema",
+ "validation",
+ "type",
+ "inference"
+ ],
+ "license": "MIT",
+ "sideEffects": false,
+ "main": "./index.cjs",
+ "types": "./index.d.cts",
+ "module": "./index.js",
+ "zshy": {
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts",
+ "./v3": "./src/v3/index.ts",
+ "./v4": "./src/v4/index.ts",
+ "./v4-mini": "./src/v4-mini/index.ts",
+ "./v4/mini": "./src/v4/mini/index.ts",
+ "./v4/core": "./src/v4/core/index.ts",
+ "./v4/locales": "./src/v4/locales/index.ts",
+ "./v4/locales/*": "./src/v4/locales/*"
+ },
+ "sourceDialects": [
+ "@zod/source"
+ ]
+ },
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "@zod/source": "./src/index.ts",
+ "types": "./index.d.cts",
+ "import": "./index.js",
+ "require": "./index.cjs"
+ },
+ "./v3": {
+ "@zod/source": "./src/v3/index.ts",
+ "types": "./v3/index.d.cts",
+ "import": "./v3/index.js",
+ "require": "./v3/index.cjs"
+ },
+ "./v4": {
+ "@zod/source": "./src/v4/index.ts",
+ "types": "./v4/index.d.cts",
+ "import": "./v4/index.js",
+ "require": "./v4/index.cjs"
+ },
+ "./v4-mini": {
+ "@zod/source": "./src/v4-mini/index.ts",
+ "types": "./v4-mini/index.d.cts",
+ "import": "./v4-mini/index.js",
+ "require": "./v4-mini/index.cjs"
+ },
+ "./v4/mini": {
+ "@zod/source": "./src/v4/mini/index.ts",
+ "types": "./v4/mini/index.d.cts",
+ "import": "./v4/mini/index.js",
+ "require": "./v4/mini/index.cjs"
+ },
+ "./v4/core": {
+ "@zod/source": "./src/v4/core/index.ts",
+ "types": "./v4/core/index.d.cts",
+ "import": "./v4/core/index.js",
+ "require": "./v4/core/index.cjs"
+ },
+ "./v4/locales": {
+ "@zod/source": "./src/v4/locales/index.ts",
+ "types": "./v4/locales/index.d.cts",
+ "import": "./v4/locales/index.js",
+ "require": "./v4/locales/index.cjs"
+ },
+ "./v4/locales/*": {
+ "@zod/source": "./src/v4/locales/*",
+ "types": "./v4/locales/*",
+ "import": "./v4/locales/*",
+ "require": "./v4/locales/*"
+ }
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/colinhacks/zod.git"
+ },
+ "bugs": {
+ "url": "https://github.com/colinhacks/zod/issues"
+ },
+ "support": {
+ "backing": {
+ "npm-funding": true
+ }
+ },
+ "scripts": {
+ "clean": "git clean -xdf . -e node_modules",
+ "build": "zshy --project tsconfig.build.json",
+ "postbuild": "pnpm biome check --write .",
+ "test:watch": "pnpm vitest",
+ "test": "pnpm vitest run",
+ "bump:beta": "pnpm version \"v$(pnpm pkg get version | jq -r)-beta.$(date +%Y%m%dT%H%M%S)\"",
+ "pub:beta": "pnpm bump:beta && pnpm publish --tag next --publish-branch v4 --no-git-checks --dry-run"
+ }
+}
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/index.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..bf6f1643ab4526b97b1eb1a6dcdea48262f70194
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/index.ts
@@ -0,0 +1,4 @@
+import * as z from "./v3/external.js";
+export * from "./v3/external.js";
+export { z };
+export default z;
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/ZodError.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/ZodError.ts
new file mode 100644
index 0000000000000000000000000000000000000000..6ee33c14a93b8bb8c5fd62fcc19803f843c619e7
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/ZodError.ts
@@ -0,0 +1,330 @@
+import type { Primitive } from "./helpers/typeAliases.js";
+import { util, type ZodParsedType } from "./helpers/util.js";
+import type { TypeOf, ZodType } from "./index.js";
+
+type allKeys = T extends any ? keyof T : never;
+
+export type inferFlattenedErrors, U = string> = typeToFlattenedError, U>;
+export type typeToFlattenedError = {
+ formErrors: U[];
+ fieldErrors: {
+ [P in allKeys]?: U[];
+ };
+};
+
+export const ZodIssueCode = util.arrayToEnum([
+ "invalid_type",
+ "invalid_literal",
+ "custom",
+ "invalid_union",
+ "invalid_union_discriminator",
+ "invalid_enum_value",
+ "unrecognized_keys",
+ "invalid_arguments",
+ "invalid_return_type",
+ "invalid_date",
+ "invalid_string",
+ "too_small",
+ "too_big",
+ "invalid_intersection_types",
+ "not_multiple_of",
+ "not_finite",
+]);
+
+export type ZodIssueCode = keyof typeof ZodIssueCode;
+
+export type ZodIssueBase = {
+ path: (string | number)[];
+ message?: string | undefined;
+};
+
+export interface ZodInvalidTypeIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_type;
+ expected: ZodParsedType;
+ received: ZodParsedType;
+}
+
+export interface ZodInvalidLiteralIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_literal;
+ expected: unknown;
+ received: unknown;
+}
+
+export interface ZodUnrecognizedKeysIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.unrecognized_keys;
+ keys: string[];
+}
+
+export interface ZodInvalidUnionIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_union;
+ unionErrors: ZodError[];
+}
+
+export interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_union_discriminator;
+ options: Primitive[];
+}
+
+export interface ZodInvalidEnumValueIssue extends ZodIssueBase {
+ received: string | number;
+ code: typeof ZodIssueCode.invalid_enum_value;
+ options: (string | number)[];
+}
+
+export interface ZodInvalidArgumentsIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_arguments;
+ argumentsError: ZodError;
+}
+
+export interface ZodInvalidReturnTypeIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_return_type;
+ returnTypeError: ZodError;
+}
+
+export interface ZodInvalidDateIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_date;
+}
+
+export type StringValidation =
+ | "email"
+ | "url"
+ | "emoji"
+ | "uuid"
+ | "nanoid"
+ | "regex"
+ | "cuid"
+ | "cuid2"
+ | "ulid"
+ | "datetime"
+ | "date"
+ | "time"
+ | "duration"
+ | "ip"
+ | "cidr"
+ | "base64"
+ | "jwt"
+ | "base64url"
+ | { includes: string; position?: number | undefined }
+ | { startsWith: string }
+ | { endsWith: string };
+
+export interface ZodInvalidStringIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_string;
+ validation: StringValidation;
+}
+
+export interface ZodTooSmallIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.too_small;
+ minimum: number | bigint;
+ inclusive: boolean;
+ exact?: boolean;
+ type: "array" | "string" | "number" | "set" | "date" | "bigint";
+}
+
+export interface ZodTooBigIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.too_big;
+ maximum: number | bigint;
+ inclusive: boolean;
+ exact?: boolean;
+ type: "array" | "string" | "number" | "set" | "date" | "bigint";
+}
+
+export interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.invalid_intersection_types;
+}
+
+export interface ZodNotMultipleOfIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.not_multiple_of;
+ multipleOf: number | bigint;
+}
+
+export interface ZodNotFiniteIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.not_finite;
+}
+
+export interface ZodCustomIssue extends ZodIssueBase {
+ code: typeof ZodIssueCode.custom;
+ params?: { [k: string]: any };
+}
+
+export type DenormalizedError = { [k: string]: DenormalizedError | string[] };
+
+export type ZodIssueOptionalMessage =
+ | ZodInvalidTypeIssue
+ | ZodInvalidLiteralIssue
+ | ZodUnrecognizedKeysIssue
+ | ZodInvalidUnionIssue
+ | ZodInvalidUnionDiscriminatorIssue
+ | ZodInvalidEnumValueIssue
+ | ZodInvalidArgumentsIssue
+ | ZodInvalidReturnTypeIssue
+ | ZodInvalidDateIssue
+ | ZodInvalidStringIssue
+ | ZodTooSmallIssue
+ | ZodTooBigIssue
+ | ZodInvalidIntersectionTypesIssue
+ | ZodNotMultipleOfIssue
+ | ZodNotFiniteIssue
+ | ZodCustomIssue;
+
+export type ZodIssue = ZodIssueOptionalMessage & {
+ fatal?: boolean | undefined;
+ message: string;
+};
+
+export const quotelessJson = (obj: any) => {
+ const json = JSON.stringify(obj, null, 2);
+ return json.replace(/"([^"]+)":/g, "$1:");
+};
+
+type recursiveZodFormattedError = T extends [any, ...any[]]
+ ? { [K in keyof T]?: ZodFormattedError }
+ : T extends any[]
+ ? { [k: number]: ZodFormattedError }
+ : T extends object
+ ? { [K in keyof T]?: ZodFormattedError }
+ : unknown;
+
+export type ZodFormattedError = {
+ _errors: U[];
+} & recursiveZodFormattedError>;
+
+export type inferFormattedError, U = string> = ZodFormattedError, U>;
+
+export class ZodError extends Error {
+ issues: ZodIssue[] = [];
+
+ get errors() {
+ return this.issues;
+ }
+
+ constructor(issues: ZodIssue[]) {
+ super();
+
+ const actualProto = new.target.prototype;
+ if (Object.setPrototypeOf) {
+ // eslint-disable-next-line ban/ban
+ Object.setPrototypeOf(this, actualProto);
+ } else {
+ (this as any).__proto__ = actualProto;
+ }
+ this.name = "ZodError";
+ this.issues = issues;
+ }
+
+ format(): ZodFormattedError;
+ format(mapper: (issue: ZodIssue) => U): ZodFormattedError;
+ format(_mapper?: any) {
+ const mapper: (issue: ZodIssue) => any =
+ _mapper ||
+ function (issue: ZodIssue) {
+ return issue.message;
+ };
+ const fieldErrors: ZodFormattedError = { _errors: [] } as any;
+ const processError = (error: ZodError) => {
+ for (const issue of error.issues) {
+ if (issue.code === "invalid_union") {
+ issue.unionErrors.map(processError);
+ } else if (issue.code === "invalid_return_type") {
+ processError(issue.returnTypeError);
+ } else if (issue.code === "invalid_arguments") {
+ processError(issue.argumentsError);
+ } else if (issue.path.length === 0) {
+ (fieldErrors as any)._errors.push(mapper(issue));
+ } else {
+ let curr: any = fieldErrors;
+ let i = 0;
+ while (i < issue.path.length) {
+ const el = issue.path[i]!;
+ const terminal = i === issue.path.length - 1;
+
+ if (!terminal) {
+ curr[el] = curr[el] || { _errors: [] };
+ // if (typeof el === "string") {
+ // curr[el] = curr[el] || { _errors: [] };
+ // } else if (typeof el === "number") {
+ // const errorArray: any = [];
+ // errorArray._errors = [];
+ // curr[el] = curr[el] || errorArray;
+ // }
+ } else {
+ curr[el] = curr[el] || { _errors: [] };
+ curr[el]._errors.push(mapper(issue));
+ }
+
+ curr = curr[el];
+ i++;
+ }
+ }
+ }
+ };
+
+ processError(this);
+ return fieldErrors;
+ }
+
+ static create = (issues: ZodIssue[]) => {
+ const error = new ZodError(issues);
+ return error;
+ };
+
+ static assert(value: unknown): asserts value is ZodError {
+ if (!(value instanceof ZodError)) {
+ throw new Error(`Not a ZodError: ${value}`);
+ }
+ }
+
+ override toString() {
+ return this.message;
+ }
+ override get message() {
+ return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
+ }
+
+ get isEmpty(): boolean {
+ return this.issues.length === 0;
+ }
+
+ addIssue = (sub: ZodIssue) => {
+ this.issues = [...this.issues, sub];
+ };
+
+ addIssues = (subs: ZodIssue[] = []) => {
+ this.issues = [...this.issues, ...subs];
+ };
+
+ flatten(): typeToFlattenedError;
+ flatten(mapper?: (issue: ZodIssue) => U): typeToFlattenedError;
+ flatten(mapper: (issue: ZodIssue) => U = (issue: ZodIssue) => issue.message as any): any {
+ const fieldErrors: any = {};
+ const formErrors: U[] = [];
+ for (const sub of this.issues) {
+ if (sub.path.length > 0) {
+ const firstEl = sub.path[0]!;
+ fieldErrors[firstEl] = fieldErrors[firstEl] || [];
+ fieldErrors[firstEl].push(mapper(sub));
+ } else {
+ formErrors.push(mapper(sub));
+ }
+ }
+ return { formErrors, fieldErrors };
+ }
+
+ get formErrors() {
+ return this.flatten();
+ }
+}
+
+type stripPath = T extends any ? util.OmitKeys : never;
+
+export type IssueData = stripPath & {
+ path?: (string | number)[];
+ fatal?: boolean | undefined;
+};
+
+export type ErrorMapCtx = {
+ defaultError: string;
+ data: any;
+};
+
+export type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => { message: string };
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/datetime.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/datetime.ts
new file mode 100644
index 0000000000000000000000000000000000000000..85552c254597cca742ff15351a99b5b862abd63e
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/datetime.ts
@@ -0,0 +1,58 @@
+import Benchmark from "benchmark";
+
+const datetimeValidationSuite = new Benchmark.Suite("datetime");
+
+const DATA = "2021-01-01";
+const MONTHS_31 = new Set([1, 3, 5, 7, 8, 10, 12]);
+const MONTHS_30 = new Set([4, 6, 9, 11]);
+
+const simpleDatetimeRegex = /^(\d{4})-(\d{2})-(\d{2})$/;
+const datetimeRegexNoLeapYearValidation =
+ /^\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\d|2\d))$/;
+const datetimeRegexWithLeapYearValidation =
+ /^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$/;
+
+datetimeValidationSuite
+ .add("new Date()", () => {
+ return !Number.isNaN(new Date(DATA).getTime());
+ })
+ .add("regex (no validation)", () => {
+ return simpleDatetimeRegex.test(DATA);
+ })
+ .add("regex (no leap year)", () => {
+ return datetimeRegexNoLeapYearValidation.test(DATA);
+ })
+ .add("regex (w/ leap year)", () => {
+ return datetimeRegexWithLeapYearValidation.test(DATA);
+ })
+ .add("capture groups + code", () => {
+ const match = DATA.match(simpleDatetimeRegex);
+ if (!match) return false;
+
+ // Extract year, month, and day from the capture groups
+ const year = Number.parseInt(match[1], 10);
+ const month = Number.parseInt(match[2], 10); // month is 0-indexed in JavaScript Date, so subtract 1
+ const day = Number.parseInt(match[3], 10);
+
+ if (month === 2) {
+ if ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0) {
+ return day <= 29;
+ }
+ return day <= 28;
+ }
+ if (MONTHS_30.has(month)) {
+ return day <= 30;
+ }
+ if (MONTHS_31.has(month)) {
+ return day <= 31;
+ }
+ return false;
+ })
+
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${datetimeValidationSuite.name!}: ${e.target}`);
+ });
+
+export default {
+ suites: [datetimeValidationSuite],
+};
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts
new file mode 100644
index 0000000000000000000000000000000000000000..47737e6c382b0bf6b239bc7c147dbb336a20c778
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts
@@ -0,0 +1,80 @@
+import Benchmark from "benchmark";
+
+import { z } from "zod/v3";
+
+const doubleSuite = new Benchmark.Suite("z.discriminatedUnion: double");
+const manySuite = new Benchmark.Suite("z.discriminatedUnion: many");
+
+const aSchema = z.object({
+ type: z.literal("a"),
+});
+const objA = {
+ type: "a",
+};
+
+const bSchema = z.object({
+ type: z.literal("b"),
+});
+const objB = {
+ type: "b",
+};
+
+const cSchema = z.object({
+ type: z.literal("c"),
+});
+const objC = {
+ type: "c",
+};
+
+const dSchema = z.object({
+ type: z.literal("d"),
+});
+
+const double = z.discriminatedUnion("type", [aSchema, bSchema]);
+const many = z.discriminatedUnion("type", [aSchema, bSchema, cSchema, dSchema]);
+
+doubleSuite
+ .add("valid: a", () => {
+ double.parse(objA);
+ })
+ .add("valid: b", () => {
+ double.parse(objB);
+ })
+ .add("invalid: null", () => {
+ try {
+ double.parse(null);
+ } catch (_err) {}
+ })
+ .add("invalid: wrong shape", () => {
+ try {
+ double.parse(objC);
+ } catch (_err) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${(doubleSuite as any).name}: ${e.target}`);
+ });
+
+manySuite
+ .add("valid: a", () => {
+ many.parse(objA);
+ })
+ .add("valid: c", () => {
+ many.parse(objC);
+ })
+ .add("invalid: null", () => {
+ try {
+ many.parse(null);
+ } catch (_err) {}
+ })
+ .add("invalid: wrong shape", () => {
+ try {
+ many.parse({ type: "unknown" });
+ } catch (_err) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${(manySuite as any).name}: ${e.target}`);
+ });
+
+export default {
+ suites: [doubleSuite, manySuite],
+};
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/index.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..ca81c5bb9e300b4917d46e31fdb87dc4f6146bcc
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/index.ts
@@ -0,0 +1,59 @@
+import type Benchmark from "benchmark";
+
+import datetimeBenchmarks from "./datetime.js";
+import discriminatedUnionBenchmarks from "./discriminatedUnion.js";
+import ipv4Benchmarks from "./ipv4.js";
+import objectBenchmarks from "./object.js";
+import primitiveBenchmarks from "./primitives.js";
+import realworld from "./realworld.js";
+import stringBenchmarks from "./string.js";
+import unionBenchmarks from "./union.js";
+
+const argv = process.argv.slice(2);
+let suites: Benchmark.Suite[] = [];
+
+if (!argv.length) {
+ suites = [
+ ...realworld.suites,
+ ...primitiveBenchmarks.suites,
+ ...stringBenchmarks.suites,
+ ...objectBenchmarks.suites,
+ ...unionBenchmarks.suites,
+ ...discriminatedUnionBenchmarks.suites,
+ ];
+} else {
+ if (argv.includes("--realworld")) {
+ suites.push(...realworld.suites);
+ }
+ if (argv.includes("--primitives")) {
+ suites.push(...primitiveBenchmarks.suites);
+ }
+ if (argv.includes("--string")) {
+ suites.push(...stringBenchmarks.suites);
+ }
+ if (argv.includes("--object")) {
+ suites.push(...objectBenchmarks.suites);
+ }
+ if (argv.includes("--union")) {
+ suites.push(...unionBenchmarks.suites);
+ }
+ if (argv.includes("--discriminatedUnion")) {
+ suites.push(...datetimeBenchmarks.suites);
+ }
+ if (argv.includes("--datetime")) {
+ suites.push(...datetimeBenchmarks.suites);
+ }
+ if (argv.includes("--ipv4")) {
+ suites.push(...ipv4Benchmarks.suites);
+ }
+}
+
+for (const suite of suites) {
+ suite.run({});
+}
+
+// exit on Ctrl-C
+process.on("SIGINT", function () {
+ console.log("Exiting...");
+ process.exit();
+});
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/ipv4.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/ipv4.ts
new file mode 100644
index 0000000000000000000000000000000000000000..913ffd4166b7061b1505eb635687ea7eabf403d2
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/ipv4.ts
@@ -0,0 +1,57 @@
+import Benchmark from "benchmark";
+
+const suite = new Benchmark.Suite("ipv4");
+
+const DATA = "127.0.0.1";
+const ipv4RegexA =
+ /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;
+const ipv4RegexB =
+ /^(?:(?:(?=(25[0-5]))\1|(?=(2[0-4][0-9]))\2|(?=(1[0-9]{2}))\3|(?=([0-9]{1,2}))\4)\.){3}(?:(?=(25[0-5]))\5|(?=(2[0-4][0-9]))\6|(?=(1[0-9]{2}))\7|(?=([0-9]{1,2}))\8)$/;
+const ipv4RegexC = /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;
+const ipv4RegexD = /^(\b25[0-5]|\b2[0-4][0-9]|\b[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/;
+const ipv4RegexE = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.){3}(25[0-5]|(2[0-4]|1\d|[1-9]|)\d)$/;
+const ipv4RegexF = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/;
+const ipv4RegexG = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/;
+const ipv4RegexH = /^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4}$/;
+const ipv4RegexI =
+ /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
+
+suite
+ .add("A", () => {
+ return ipv4RegexA.test(DATA);
+ })
+ .add("B", () => {
+ return ipv4RegexB.test(DATA);
+ })
+ .add("C", () => {
+ return ipv4RegexC.test(DATA);
+ })
+ .add("D", () => {
+ return ipv4RegexD.test(DATA);
+ })
+ .add("E", () => {
+ return ipv4RegexE.test(DATA);
+ })
+ .add("F", () => {
+ return ipv4RegexF.test(DATA);
+ })
+ .add("G", () => {
+ return ipv4RegexG.test(DATA);
+ })
+ .add("H", () => {
+ return ipv4RegexH.test(DATA);
+ })
+ .add("I", () => {
+ return ipv4RegexI.test(DATA);
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${suite.name!}: ${e.target}`);
+ });
+
+export default {
+ suites: [suite],
+};
+
+if (require.main === module) {
+ suite.run();
+}
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/object.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/object.ts
new file mode 100644
index 0000000000000000000000000000000000000000..3c1da1022a6e049fe7a6fb6d4fd5cfa5da10d538
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/object.ts
@@ -0,0 +1,69 @@
+import Benchmark from "benchmark";
+
+import { z } from "zod/v3";
+
+const emptySuite = new Benchmark.Suite("z.object: empty");
+const shortSuite = new Benchmark.Suite("z.object: short");
+const longSuite = new Benchmark.Suite("z.object: long");
+
+const empty = z.object({});
+const short = z.object({
+ string: z.string(),
+});
+const long = z.object({
+ string: z.string(),
+ number: z.number(),
+ boolean: z.boolean(),
+});
+
+emptySuite
+ .add("valid", () => {
+ empty.parse({});
+ })
+ .add("valid: extra keys", () => {
+ empty.parse({ string: "string" });
+ })
+ .add("invalid: null", () => {
+ try {
+ empty.parse(null);
+ } catch (_err) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${(emptySuite as any).name}: ${e.target}`);
+ });
+
+shortSuite
+ .add("valid", () => {
+ short.parse({ string: "string" });
+ })
+ .add("valid: extra keys", () => {
+ short.parse({ string: "string", number: 42 });
+ })
+ .add("invalid: null", () => {
+ try {
+ short.parse(null);
+ } catch (_err) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${(shortSuite as any).name}: ${e.target}`);
+ });
+
+longSuite
+ .add("valid", () => {
+ long.parse({ string: "string", number: 42, boolean: true });
+ })
+ .add("valid: extra keys", () => {
+ long.parse({ string: "string", number: 42, boolean: true, list: [] });
+ })
+ .add("invalid: null", () => {
+ try {
+ long.parse(null);
+ } catch (_err) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${(longSuite as any).name}: ${e.target}`);
+ });
+
+export default {
+ suites: [emptySuite, shortSuite, longSuite],
+};
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/primitives.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/primitives.ts
new file mode 100644
index 0000000000000000000000000000000000000000..fd61b38fefe0b9c31aa69f5ed247ef2d6dd88cb5
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/primitives.ts
@@ -0,0 +1,162 @@
+import Benchmark from "benchmark";
+
+import { z } from "zod/v3";
+import { Mocker } from "../tests/Mocker.js";
+
+const val = new Mocker();
+
+const enumSuite = new Benchmark.Suite("z.enum");
+const enumSchema = z.enum(["a", "b", "c"]);
+
+enumSuite
+ .add("valid", () => {
+ enumSchema.parse("a");
+ })
+ .add("invalid", () => {
+ try {
+ enumSchema.parse("x");
+ } catch (_e: any) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`z.enum: ${e.target}`);
+ });
+
+const longEnumSuite = new Benchmark.Suite("long z.enum");
+const longEnumSchema = z.enum([
+ "one",
+ "two",
+ "three",
+ "four",
+ "five",
+ "six",
+ "seven",
+ "eight",
+ "nine",
+ "ten",
+ "eleven",
+ "twelve",
+ "thirteen",
+ "fourteen",
+ "fifteen",
+ "sixteen",
+ "seventeen",
+]);
+
+longEnumSuite
+ .add("valid", () => {
+ longEnumSchema.parse("five");
+ })
+ .add("invalid", () => {
+ try {
+ longEnumSchema.parse("invalid");
+ } catch (_e: any) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`long z.enum: ${e.target}`);
+ });
+
+const undefinedSuite = new Benchmark.Suite("z.undefined");
+const undefinedSchema = z.undefined();
+
+undefinedSuite
+ .add("valid", () => {
+ undefinedSchema.parse(undefined);
+ })
+ .add("invalid", () => {
+ try {
+ undefinedSchema.parse(1);
+ } catch (_e: any) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`z.undefined: ${e.target}`);
+ });
+
+const literalSuite = new Benchmark.Suite("z.literal");
+const short = "short";
+const bad = "bad";
+const literalSchema = z.literal("short");
+
+literalSuite
+ .add("valid", () => {
+ literalSchema.parse(short);
+ })
+ .add("invalid", () => {
+ try {
+ literalSchema.parse(bad);
+ } catch (_e: any) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`z.literal: ${e.target}`);
+ });
+
+const numberSuite = new Benchmark.Suite("z.number");
+const numberSchema = z.number().int();
+
+numberSuite
+ .add("valid", () => {
+ numberSchema.parse(1);
+ })
+ .add("invalid type", () => {
+ try {
+ numberSchema.parse("bad");
+ } catch (_e: any) {}
+ })
+ .add("invalid number", () => {
+ try {
+ numberSchema.parse(0.5);
+ } catch (_e: any) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`z.number: ${e.target}`);
+ });
+
+const dateSuite = new Benchmark.Suite("z.date");
+
+const plainDate = z.date();
+const minMaxDate = z.date().min(new Date("2021-01-01")).max(new Date("2030-01-01"));
+
+dateSuite
+ .add("valid", () => {
+ plainDate.parse(new Date());
+ })
+ .add("invalid", () => {
+ try {
+ plainDate.parse(1);
+ } catch (_e: any) {}
+ })
+ .add("valid min and max", () => {
+ minMaxDate.parse(new Date("2023-01-01"));
+ })
+ .add("invalid min", () => {
+ try {
+ minMaxDate.parse(new Date("2019-01-01"));
+ } catch (_e: any) {}
+ })
+ .add("invalid max", () => {
+ try {
+ minMaxDate.parse(new Date("2031-01-01"));
+ } catch (_e: any) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`z.date: ${e.target}`);
+ });
+
+const symbolSuite = new Benchmark.Suite("z.symbol");
+const symbolSchema = z.symbol();
+
+symbolSuite
+ .add("valid", () => {
+ symbolSchema.parse(val.symbol);
+ })
+ .add("invalid", () => {
+ try {
+ symbolSchema.parse(1);
+ } catch (_e: any) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`z.symbol: ${e.target}`);
+ });
+
+export default {
+ suites: [enumSuite, longEnumSuite, undefinedSuite, literalSuite, numberSuite, dateSuite, symbolSuite],
+};
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/realworld.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/realworld.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d64c4f0d0986a4d0ce7b2c6cd394b65fab1ee7d5
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/realworld.ts
@@ -0,0 +1,63 @@
+import Benchmark from "benchmark";
+
+import { z } from "zod/v3";
+
+const shortSuite = new Benchmark.Suite("realworld");
+
+const People = z.array(
+ z.object({
+ type: z.literal("person"),
+ hair: z.enum(["blue", "brown"]),
+ active: z.boolean(),
+ name: z.string(),
+ age: z.number().int(),
+ hobbies: z.array(z.string()),
+ address: z.object({
+ street: z.string(),
+ zip: z.string(),
+ country: z.string(),
+ }),
+ })
+);
+
+let i = 0;
+
+function num() {
+ return ++i;
+}
+
+function str() {
+ return (++i % 100).toString(16);
+}
+
+function array(fn: () => T): T[] {
+ return Array.from({ length: ++i % 10 }, () => fn());
+}
+
+const people = Array.from({ length: 100 }, () => {
+ return {
+ type: "person",
+ hair: i % 2 ? "blue" : "brown",
+ active: !!(i % 2),
+ name: str(),
+ age: num(),
+ hobbies: array(str),
+ address: {
+ street: str(),
+ zip: str(),
+ country: str(),
+ },
+ };
+});
+
+shortSuite
+ .add("valid", () => {
+ People.parse(people);
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${(shortSuite as any).name}: ${e.target}`);
+ });
+
+export default {
+ suites: [shortSuite],
+};
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/string.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/string.ts
new file mode 100644
index 0000000000000000000000000000000000000000..6b3d29f94083571f7693a615849758cac5ef8b7f
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/string.ts
@@ -0,0 +1,55 @@
+import Benchmark from "benchmark";
+
+import { z } from "zod/v3";
+
+const SUITE_NAME = "z.string";
+const suite = new Benchmark.Suite(SUITE_NAME);
+
+const empty = "";
+const short = "short";
+const long = "long".repeat(256);
+const manual = (str: unknown) => {
+ if (typeof str !== "string") {
+ throw new Error("Not a string");
+ }
+
+ return str;
+};
+const stringSchema = z.string();
+const optionalStringSchema = z.string().optional();
+const optionalNullableStringSchema = z.string().optional().nullable();
+
+suite
+ .add("empty string", () => {
+ stringSchema.parse(empty);
+ })
+ .add("short string", () => {
+ stringSchema.parse(short);
+ })
+ .add("long string", () => {
+ stringSchema.parse(long);
+ })
+ .add("optional string", () => {
+ optionalStringSchema.parse(long);
+ })
+ .add("nullable string", () => {
+ optionalNullableStringSchema.parse(long);
+ })
+ .add("nullable (null) string", () => {
+ optionalNullableStringSchema.parse(null);
+ })
+ .add("invalid: null", () => {
+ try {
+ stringSchema.parse(null);
+ } catch (_err) {}
+ })
+ .add("manual parser: long", () => {
+ manual(long);
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${SUITE_NAME}: ${e.target}`);
+ });
+
+export default {
+ suites: [suite],
+};
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/union.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/union.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d716dcef0eb61e1b94ea9b71ee20c093913c2327
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/benchmarks/union.ts
@@ -0,0 +1,80 @@
+import Benchmark from "benchmark";
+
+import { z } from "zod/v3";
+
+const doubleSuite = new Benchmark.Suite("z.union: double");
+const manySuite = new Benchmark.Suite("z.union: many");
+
+const aSchema = z.object({
+ type: z.literal("a"),
+});
+const objA = {
+ type: "a",
+};
+
+const bSchema = z.object({
+ type: z.literal("b"),
+});
+const objB = {
+ type: "b",
+};
+
+const cSchema = z.object({
+ type: z.literal("c"),
+});
+const objC = {
+ type: "c",
+};
+
+const dSchema = z.object({
+ type: z.literal("d"),
+});
+
+const double = z.union([aSchema, bSchema]);
+const many = z.union([aSchema, bSchema, cSchema, dSchema]);
+
+doubleSuite
+ .add("valid: a", () => {
+ double.parse(objA);
+ })
+ .add("valid: b", () => {
+ double.parse(objB);
+ })
+ .add("invalid: null", () => {
+ try {
+ double.parse(null);
+ } catch (_err) {}
+ })
+ .add("invalid: wrong shape", () => {
+ try {
+ double.parse(objC);
+ } catch (_err) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${(doubleSuite as any).name}: ${e.target}`);
+ });
+
+manySuite
+ .add("valid: a", () => {
+ many.parse(objA);
+ })
+ .add("valid: c", () => {
+ many.parse(objC);
+ })
+ .add("invalid: null", () => {
+ try {
+ many.parse(null);
+ } catch (_err) {}
+ })
+ .add("invalid: wrong shape", () => {
+ try {
+ many.parse({ type: "unknown" });
+ } catch (_err) {}
+ })
+ .on("cycle", (e: Benchmark.Event) => {
+ console.log(`${(manySuite as any).name}: ${e.target}`);
+ });
+
+export default {
+ suites: [doubleSuite, manySuite],
+};
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/errors.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/errors.ts
new file mode 100644
index 0000000000000000000000000000000000000000..3c0dae65964dc95c61870d9b28de67b97d6a94fa
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/errors.ts
@@ -0,0 +1,13 @@
+import type { ZodErrorMap } from "./ZodError.js";
+import defaultErrorMap from "./locales/en.js";
+
+let overrideErrorMap = defaultErrorMap;
+export { defaultErrorMap };
+
+export function setErrorMap(map: ZodErrorMap) {
+ overrideErrorMap = map;
+}
+
+export function getErrorMap() {
+ return overrideErrorMap;
+}
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/external.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/external.ts
new file mode 100644
index 0000000000000000000000000000000000000000..f0a4be4c7aa63b363b654384b103396050a06e29
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/external.ts
@@ -0,0 +1,6 @@
+export * from "./errors.js";
+export * from "./helpers/parseUtil.js";
+export * from "./helpers/typeAliases.js";
+export * from "./helpers/util.js";
+export * from "./types.js";
+export * from "./ZodError.js";
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/enumUtil.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/enumUtil.ts
new file mode 100644
index 0000000000000000000000000000000000000000..526b22736af39391898dd888762d2eabe6ed5e04
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/enumUtil.ts
@@ -0,0 +1,17 @@
+export namespace enumUtil {
+ type UnionToIntersectionFn = (T extends unknown ? (k: () => T) => void : never) extends (
+ k: infer Intersection
+ ) => void
+ ? Intersection
+ : never;
+
+ type GetUnionLast = UnionToIntersectionFn extends () => infer Last ? Last : never;
+
+ type UnionToTuple = [T] extends [never]
+ ? Tuple
+ : UnionToTuple>, [GetUnionLast, ...Tuple]>;
+
+ type CastToStringTuple = T extends [string, ...string[]] ? T : never;
+
+ export type UnionToTupleString = CastToStringTuple>;
+}
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/errorUtil.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/errorUtil.ts
new file mode 100644
index 0000000000000000000000000000000000000000..319ef6b74c8fd0ffee2fe8ea60edc3d8bada9d0a
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/errorUtil.ts
@@ -0,0 +1,8 @@
+export namespace errorUtil {
+ export type ErrMessage = string | { message?: string | undefined };
+ export const errToObj = (message?: ErrMessage): { message?: string | undefined } =>
+ typeof message === "string" ? { message } : message || {};
+ // biome-ignore lint:
+ export const toString = (message?: ErrMessage): string | undefined =>
+ typeof message === "string" ? message : message?.message;
+}
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/parseUtil.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/parseUtil.ts
new file mode 100644
index 0000000000000000000000000000000000000000..1076ad9de1418b0fee118cd210f041060a1e132a
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/parseUtil.ts
@@ -0,0 +1,176 @@
+import type { IssueData, ZodErrorMap, ZodIssue } from "../ZodError.js";
+import { getErrorMap } from "../errors.js";
+import defaultErrorMap from "../locales/en.js";
+import type { ZodParsedType } from "./util.js";
+
+export const makeIssue = (params: {
+ data: any;
+ path: (string | number)[];
+ errorMaps: ZodErrorMap[];
+ issueData: IssueData;
+}): ZodIssue => {
+ const { data, path, errorMaps, issueData } = params;
+ const fullPath = [...path, ...(issueData.path || [])];
+ const fullIssue = {
+ ...issueData,
+ path: fullPath,
+ };
+
+ if (issueData.message !== undefined) {
+ return {
+ ...issueData,
+ path: fullPath,
+ message: issueData.message,
+ };
+ }
+
+ let errorMessage = "";
+ const maps = errorMaps
+ .filter((m) => !!m)
+ .slice()
+ .reverse();
+ for (const map of maps) {
+ errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
+ }
+
+ return {
+ ...issueData,
+ path: fullPath,
+ message: errorMessage,
+ };
+};
+
+export type ParseParams = {
+ path: (string | number)[];
+ errorMap: ZodErrorMap;
+ async: boolean;
+};
+
+export type ParsePathComponent = string | number;
+export type ParsePath = ParsePathComponent[];
+export const EMPTY_PATH: ParsePath = [];
+
+export interface ParseContext {
+ readonly common: {
+ readonly issues: ZodIssue[];
+ readonly contextualErrorMap?: ZodErrorMap | undefined;
+ readonly async: boolean;
+ };
+ readonly path: ParsePath;
+ readonly schemaErrorMap?: ZodErrorMap | undefined;
+ readonly parent: ParseContext | null;
+ readonly data: any;
+ readonly parsedType: ZodParsedType;
+}
+
+export type ParseInput = {
+ data: any;
+ path: (string | number)[];
+ parent: ParseContext;
+};
+
+export function addIssueToContext(ctx: ParseContext, issueData: IssueData): void {
+ const overrideMap = getErrorMap();
+ const issue = makeIssue({
+ issueData: issueData,
+ data: ctx.data,
+ path: ctx.path,
+ errorMaps: [
+ ctx.common.contextualErrorMap, // contextual error map is first priority
+ ctx.schemaErrorMap, // then schema-bound map if available
+ overrideMap, // then global override map
+ overrideMap === defaultErrorMap ? undefined : defaultErrorMap, // then global default map
+ ].filter((x) => !!x),
+ });
+ ctx.common.issues.push(issue);
+}
+
+export type ObjectPair = {
+ key: SyncParseReturnType;
+ value: SyncParseReturnType;
+};
+export class ParseStatus {
+ value: "aborted" | "dirty" | "valid" = "valid";
+ dirty(): void {
+ if (this.value === "valid") this.value = "dirty";
+ }
+ abort(): void {
+ if (this.value !== "aborted") this.value = "aborted";
+ }
+
+ static mergeArray(status: ParseStatus, results: SyncParseReturnType[]): SyncParseReturnType {
+ const arrayValue: any[] = [];
+ for (const s of results) {
+ if (s.status === "aborted") return INVALID;
+ if (s.status === "dirty") status.dirty();
+ arrayValue.push(s.value);
+ }
+
+ return { status: status.value, value: arrayValue };
+ }
+
+ static async mergeObjectAsync(
+ status: ParseStatus,
+ pairs: { key: ParseReturnType; value: ParseReturnType }[]
+ ): Promise> {
+ const syncPairs: ObjectPair[] = [];
+ for (const pair of pairs) {
+ const key = await pair.key;
+ const value = await pair.value;
+ syncPairs.push({
+ key,
+ value,
+ });
+ }
+ return ParseStatus.mergeObjectSync(status, syncPairs);
+ }
+
+ static mergeObjectSync(
+ status: ParseStatus,
+ pairs: {
+ key: SyncParseReturnType;
+ value: SyncParseReturnType;
+ alwaysSet?: boolean;
+ }[]
+ ): SyncParseReturnType {
+ const finalObject: any = {};
+ for (const pair of pairs) {
+ const { key, value } = pair;
+ if (key.status === "aborted") return INVALID;
+ if (value.status === "aborted") return INVALID;
+ if (key.status === "dirty") status.dirty();
+ if (value.status === "dirty") status.dirty();
+
+ if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
+ finalObject[key.value] = value.value;
+ }
+ }
+
+ return { status: status.value, value: finalObject };
+ }
+}
+export interface ParseResult {
+ status: "aborted" | "dirty" | "valid";
+ data: any;
+}
+
+export type INVALID = { status: "aborted" };
+export const INVALID: INVALID = Object.freeze({
+ status: "aborted",
+});
+
+export type DIRTY = { status: "dirty"; value: T };
+export const DIRTY = (value: T): DIRTY => ({ status: "dirty", value });
+
+export type OK = { status: "valid"; value: T };
+export const OK = (value: T): OK => ({ status: "valid", value });
+
+export type SyncParseReturnType = OK | DIRTY | INVALID;
+export type AsyncParseReturnType = Promise>;
+export type ParseReturnType = SyncParseReturnType | AsyncParseReturnType;
+
+export const isAborted = (x: ParseReturnType): x is INVALID => (x as any).status === "aborted";
+export const isDirty = (x: ParseReturnType): x is OK | DIRTY => (x as any).status === "dirty";
+export const isValid = (x: ParseReturnType): x is OK => (x as any).status === "valid";
+export const isAsync = (x: ParseReturnType): x is AsyncParseReturnType =>
+ typeof Promise !== "undefined" && x instanceof Promise;
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/partialUtil.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/partialUtil.ts
new file mode 100644
index 0000000000000000000000000000000000000000..0eff8ff34ca6b96f41383ef554752e9f9fda6db9
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/partialUtil.ts
@@ -0,0 +1,34 @@
+import type {
+ ZodArray,
+ ZodNullable,
+ ZodObject,
+ ZodOptional,
+ ZodRawShape,
+ ZodTuple,
+ ZodTupleItems,
+ ZodTypeAny,
+} from "../types.js";
+
+export namespace partialUtil {
+ export type DeepPartial = T extends ZodObject
+ ? ZodObject<
+ { [k in keyof T["shape"]]: ZodOptional> },
+ T["_def"]["unknownKeys"],
+ T["_def"]["catchall"]
+ >
+ : T extends ZodArray
+ ? ZodArray, Card>
+ : T extends ZodOptional
+ ? ZodOptional>
+ : T extends ZodNullable
+ ? ZodNullable>
+ : T extends ZodTuple
+ ? {
+ [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial : never;
+ } extends infer PI
+ ? PI extends ZodTupleItems
+ ? ZodTuple
+ : never
+ : never
+ : T;
+}
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/typeAliases.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/typeAliases.ts
new file mode 100644
index 0000000000000000000000000000000000000000..32df022ca3b929528dace9023f77212204324422
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/typeAliases.ts
@@ -0,0 +1,2 @@
+export type Primitive = string | number | symbol | bigint | boolean | null | undefined;
+export type Scalars = Primitive | Primitive[];
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/util.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/util.ts
new file mode 100644
index 0000000000000000000000000000000000000000..030ea821b694ed03e210b418c8742c7a535ac816
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/helpers/util.ts
@@ -0,0 +1,224 @@
+export namespace util {
+ type AssertEqual = (() => V extends T ? 1 : 2) extends () => V extends U ? 1 : 2 ? true : false;
+
+ export type isAny = 0 extends 1 & T ? true : false;
+ export const assertEqual = (_: AssertEqual): void => {};
+ export function assertIs(_arg: T): void {}
+ export function assertNever(_x: never): never {
+ throw new Error();
+ }
+
+ export type Omit = Pick>;
+ export type OmitKeys = Pick>;
+ export type MakePartial = Omit & Partial>;
+ export type Exactly = T & Record, never>;
+ export type InexactPartial = { [k in keyof T]?: T[k] | undefined };
+ export const arrayToEnum = (items: U): { [k in U[number]]: k } => {
+ const obj: any = {};
+ for (const item of items) {
+ obj[item] = item;
+ }
+ return obj;
+ };
+
+ export const getValidEnumValues = (obj: any): any[] => {
+ const validKeys = objectKeys(obj).filter((k: any) => typeof obj[obj[k]] !== "number");
+ const filtered: any = {};
+ for (const k of validKeys) {
+ filtered[k] = obj[k];
+ }
+ return objectValues(filtered);
+ };
+
+ export const objectValues = (obj: any): any[] => {
+ return objectKeys(obj).map(function (e) {
+ return obj[e];
+ });
+ };
+
+ export const objectKeys: ObjectConstructor["keys"] =
+ typeof Object.keys === "function" // eslint-disable-line ban/ban
+ ? (obj: any) => Object.keys(obj) // eslint-disable-line ban/ban
+ : (object: any) => {
+ const keys = [];
+ for (const key in object) {
+ if (Object.prototype.hasOwnProperty.call(object, key)) {
+ keys.push(key);
+ }
+ }
+ return keys;
+ };
+
+ export const find = (arr: T[], checker: (arg: T) => any): T | undefined => {
+ for (const item of arr) {
+ if (checker(item)) return item;
+ }
+ return undefined;
+ };
+
+ export type identity = objectUtil.identity;
+ export type flatten = objectUtil.flatten;
+
+ export type noUndefined = T extends undefined ? never : T;
+
+ export const isInteger: NumberConstructor["isInteger"] =
+ typeof Number.isInteger === "function"
+ ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban
+ : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
+
+ export function joinValues(array: T, separator = " | "): string {
+ return array.map((val) => (typeof val === "string" ? `'${val}'` : val)).join(separator);
+ }
+
+ export const jsonStringifyReplacer = (_: string, value: any): any => {
+ if (typeof value === "bigint") {
+ return value.toString();
+ }
+ return value;
+ };
+}
+
+export namespace objectUtil {
+ export type MergeShapes =
+ // fast path when there is no keys overlap
+ keyof U & keyof V extends never
+ ? U & V
+ : {
+ [k in Exclude]: U[k];
+ } & V;
+
+ type optionalKeys = {
+ [k in keyof T]: undefined extends T[k] ? k : never;
+ }[keyof T];
+ type requiredKeys = {
+ [k in keyof T]: undefined extends T[k] ? never : k;
+ }[keyof T];
+ export type addQuestionMarks = {
+ [K in requiredKeys]: T[K];
+ } & {
+ [K in optionalKeys]?: T[K];
+ } & { [k in keyof T]?: unknown };
+
+ export type identity = T;
+ export type flatten = identity<{ [k in keyof T]: T[k] }>;
+
+ export type noNeverKeys = {
+ [k in keyof T]: [T[k]] extends [never] ? never : k;
+ }[keyof T];
+
+ export type noNever = identity<{
+ [k in noNeverKeys]: k extends keyof T ? T[k] : never;
+ }>;
+
+ export const mergeShapes = (first: U, second: T): T & U => {
+ return {
+ ...first,
+ ...second, // second overwrites first
+ };
+ };
+
+ export type extendShape = keyof A & keyof B extends never // fast path when there is no keys overlap
+ ? A & B
+ : {
+ [K in keyof A as K extends keyof B ? never : K]: A[K];
+ } & {
+ [K in keyof B]: B[K];
+ };
+}
+
+export const ZodParsedType: {
+ string: "string";
+ nan: "nan";
+ number: "number";
+ integer: "integer";
+ float: "float";
+ boolean: "boolean";
+ date: "date";
+ bigint: "bigint";
+ symbol: "symbol";
+ function: "function";
+ undefined: "undefined";
+ null: "null";
+ array: "array";
+ object: "object";
+ unknown: "unknown";
+ promise: "promise";
+ void: "void";
+ never: "never";
+ map: "map";
+ set: "set";
+} = util.arrayToEnum([
+ "string",
+ "nan",
+ "number",
+ "integer",
+ "float",
+ "boolean",
+ "date",
+ "bigint",
+ "symbol",
+ "function",
+ "undefined",
+ "null",
+ "array",
+ "object",
+ "unknown",
+ "promise",
+ "void",
+ "never",
+ "map",
+ "set",
+]);
+
+export type ZodParsedType = keyof typeof ZodParsedType;
+
+export const getParsedType = (data: any): ZodParsedType => {
+ const t = typeof data;
+
+ switch (t) {
+ case "undefined":
+ return ZodParsedType.undefined;
+
+ case "string":
+ return ZodParsedType.string;
+
+ case "number":
+ return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
+
+ case "boolean":
+ return ZodParsedType.boolean;
+
+ case "function":
+ return ZodParsedType.function;
+
+ case "bigint":
+ return ZodParsedType.bigint;
+
+ case "symbol":
+ return ZodParsedType.symbol;
+
+ case "object":
+ if (Array.isArray(data)) {
+ return ZodParsedType.array;
+ }
+ if (data === null) {
+ return ZodParsedType.null;
+ }
+ if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
+ return ZodParsedType.promise;
+ }
+ if (typeof Map !== "undefined" && data instanceof Map) {
+ return ZodParsedType.map;
+ }
+ if (typeof Set !== "undefined" && data instanceof Set) {
+ return ZodParsedType.set;
+ }
+ if (typeof Date !== "undefined" && data instanceof Date) {
+ return ZodParsedType.date;
+ }
+ return ZodParsedType.object;
+
+ default:
+ return ZodParsedType.unknown;
+ }
+};
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/index.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..a9dab57383baf1f27b9531f2dafc7a48c3dc4f81
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/index.ts
@@ -0,0 +1,4 @@
+import * as z from "./external.js";
+export * from "./external.js";
+export { z };
+export default z;
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/locales/en.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/locales/en.ts
new file mode 100644
index 0000000000000000000000000000000000000000..0264f82ef2e381ed4e855932c1992a10da28b015
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/locales/en.ts
@@ -0,0 +1,124 @@
+import { type ZodErrorMap, ZodIssueCode } from "../ZodError.js";
+import { util, ZodParsedType } from "../helpers/util.js";
+
+const errorMap: ZodErrorMap = (issue, _ctx) => {
+ let message: string;
+ switch (issue.code) {
+ case ZodIssueCode.invalid_type:
+ if (issue.received === ZodParsedType.undefined) {
+ message = "Required";
+ } else {
+ message = `Expected ${issue.expected}, received ${issue.received}`;
+ }
+ break;
+ case ZodIssueCode.invalid_literal:
+ message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
+ break;
+ case ZodIssueCode.unrecognized_keys:
+ message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
+ break;
+ case ZodIssueCode.invalid_union:
+ message = `Invalid input`;
+ break;
+ case ZodIssueCode.invalid_union_discriminator:
+ message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
+ break;
+ case ZodIssueCode.invalid_enum_value:
+ message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
+ break;
+ case ZodIssueCode.invalid_arguments:
+ message = `Invalid function arguments`;
+ break;
+ case ZodIssueCode.invalid_return_type:
+ message = `Invalid function return type`;
+ break;
+ case ZodIssueCode.invalid_date:
+ message = `Invalid date`;
+ break;
+ case ZodIssueCode.invalid_string:
+ if (typeof issue.validation === "object") {
+ if ("includes" in issue.validation) {
+ message = `Invalid input: must include "${issue.validation.includes}"`;
+
+ if (typeof issue.validation.position === "number") {
+ message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
+ }
+ } else if ("startsWith" in issue.validation) {
+ message = `Invalid input: must start with "${issue.validation.startsWith}"`;
+ } else if ("endsWith" in issue.validation) {
+ message = `Invalid input: must end with "${issue.validation.endsWith}"`;
+ } else {
+ util.assertNever(issue.validation);
+ }
+ } else if (issue.validation !== "regex") {
+ message = `Invalid ${issue.validation}`;
+ } else {
+ message = "Invalid";
+ }
+ break;
+ case ZodIssueCode.too_small:
+ if (issue.type === "array")
+ message = `Array must contain ${
+ issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`
+ } ${issue.minimum} element(s)`;
+ else if (issue.type === "string")
+ message = `String must contain ${
+ issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`
+ } ${issue.minimum} character(s)`;
+ else if (issue.type === "number")
+ message = `Number must be ${
+ issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `
+ }${issue.minimum}`;
+ else if (issue.type === "bigint")
+ message = `Number must be ${
+ issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `
+ }${issue.minimum}`;
+ else if (issue.type === "date")
+ message = `Date must be ${
+ issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `
+ }${new Date(Number(issue.minimum))}`;
+ else message = "Invalid input";
+ break;
+ case ZodIssueCode.too_big:
+ if (issue.type === "array")
+ message = `Array must contain ${
+ issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`
+ } ${issue.maximum} element(s)`;
+ else if (issue.type === "string")
+ message = `String must contain ${
+ issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`
+ } ${issue.maximum} character(s)`;
+ else if (issue.type === "number")
+ message = `Number must be ${
+ issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`
+ } ${issue.maximum}`;
+ else if (issue.type === "bigint")
+ message = `BigInt must be ${
+ issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`
+ } ${issue.maximum}`;
+ else if (issue.type === "date")
+ message = `Date must be ${
+ issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`
+ } ${new Date(Number(issue.maximum))}`;
+ else message = "Invalid input";
+ break;
+ case ZodIssueCode.custom:
+ message = `Invalid input`;
+ break;
+ case ZodIssueCode.invalid_intersection_types:
+ message = `Intersection results could not be merged`;
+ break;
+ case ZodIssueCode.not_multiple_of:
+ message = `Number must be a multiple of ${issue.multipleOf}`;
+ break;
+ case ZodIssueCode.not_finite:
+ message = "Number must be finite";
+ break;
+ default:
+ message = _ctx.defaultError;
+ util.assertNever(issue);
+ }
+ return { message };
+};
+
+export default errorMap;
diff --git a/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/standard-schema.ts b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/standard-schema.ts
new file mode 100644
index 0000000000000000000000000000000000000000..07193fd135b70d85ed46a806faf921fea9370ad3
--- /dev/null
+++ b/node_modules/@jimp/plugin-blit/node_modules/zod/src/v3/standard-schema.ts
@@ -0,0 +1,113 @@
+/**
+ * The Standard Schema interface.
+ */
+export type StandardSchemaV1 = {
+ /**
+ * The Standard Schema properties.
+ */
+ readonly "~standard": StandardSchemaV1.Props;
+};
+
+export declare namespace StandardSchemaV1 {
+ /**
+ * The Standard Schema properties interface.
+ */
+ export interface Props {
+ /**
+ * The version number of the standard.
+ */
+ readonly version: 1;
+ /**
+ * The vendor name of the schema library.
+ */
+ readonly vendor: string;
+ /**
+ * Validates unknown input values.
+ */
+ readonly validate: (value: unknown) => Result