diff --git a/.gitattributes b/.gitattributes
index a005f719351b00c969c5f3d2b7e68c470ae3f39a..d9b3b9916949258e90fe7a179b58594a201b1c60 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -49,3 +49,7 @@ node_modules/@jimp/plugin-blit/src/images/blit-alpha.png filter=lfs diff=lfs mer
node_modules/@jimp/plugin-blur/src/__image_snapshots__/index-node-test-ts-has-alpha-image-with-alpha-1-snap.png filter=lfs diff=lfs merge=lfs -text
node_modules/@jimp/plugin-color/src/__image_snapshots__/convolution-node-test-ts-convolution-new-pixel-value-is-greater-than-255-1-snap.png filter=lfs diff=lfs merge=lfs -text
node_modules/@jimp/plugin-color/src/images/qr.jpg filter=lfs diff=lfs merge=lfs -text
+node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-black/open-sans-128-black.png filter=lfs diff=lfs merge=lfs -text
+node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-white/open-sans-128-white.png filter=lfs diff=lfs merge=lfs -text
+node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.png filter=lfs diff=lfs merge=lfs -text
+node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.png filter=lfs diff=lfs merge=lfs -text
diff --git a/node_modules/@jimp/plugin-print/README.md b/node_modules/@jimp/plugin-print/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..2634f89f0f519342335c5f22224e9c311e898a06
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/README.md
@@ -0,0 +1,10 @@
+
+

+
@jimp/core
+
+
+The main Jimp class. This class can be extended with types and bitmap manipulation functions. Out of the box it does not support any image type.
+
+- [print](http://jimp-dev.github.io/jimp/api/jimp/classes/jimp#print)
+- [loadFont](http://jimp-dev.github.io/jimp/api/jimp/functions/loadfont/)
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/dirname-cjs.cjs.map b/node_modules/@jimp/plugin-print/dist/commonjs/dirname-cjs.cjs.map
new file mode 100644
index 0000000000000000000000000000000000000000..c9cc8b795532b6394dfca73377ac2e85c57bf710
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/dirname-cjs.cjs.map
@@ -0,0 +1 @@
+{"version":3,"file":"dirname-cjs.cjs","sourceRoot":"","sources":["../../src/dirname-cjs.cts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,SAAS,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/dirname-cjs.d.cts.map b/node_modules/@jimp/plugin-print/dist/commonjs/dirname-cjs.d.cts.map
new file mode 100644
index 0000000000000000000000000000000000000000..bbe03f4ea76ef458b98ec702d7e8391f39463252
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/dirname-cjs.d.cts.map
@@ -0,0 +1 @@
+{"version":3,"file":"dirname-cjs.d.cts","sourceRoot":"","sources":["../../src/dirname-cjs.cts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,QAAY,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/dirname.d.ts b/node_modules/@jimp/plugin-print/dist/commonjs/dirname.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..216edd0da51058c586dddbcc5b2376acc3cfa3b1
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/dirname.d.ts
@@ -0,0 +1,2 @@
+export declare const dirname: string;
+//# sourceMappingURL=dirname-cjs.d.cts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/dirname.js b/node_modules/@jimp/plugin-print/dist/commonjs/dirname.js
new file mode 100644
index 0000000000000000000000000000000000000000..1a32a407021a3edb23a86e45d2857eed9a6feb78
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/dirname.js
@@ -0,0 +1,5 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.dirname = void 0;
+exports.dirname = __dirname;
+//# sourceMappingURL=dirname-cjs.cjs.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/fonts.d.ts b/node_modules/@jimp/plugin-print/dist/commonjs/fonts.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..b2e202e594f07cb07529746628283fab9bf56198
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/fonts.d.ts
@@ -0,0 +1,14 @@
+export declare const SANS_8_BLACK: string;
+export declare const SANS_10_BLACK: string;
+export declare const SANS_12_BLACK: string;
+export declare const SANS_14_BLACK: string;
+export declare const SANS_16_BLACK: string;
+export declare const SANS_32_BLACK: string;
+export declare const SANS_64_BLACK: string;
+export declare const SANS_128_BLACK: string;
+export declare const SANS_8_WHITE: string;
+export declare const SANS_16_WHITE: string;
+export declare const SANS_32_WHITE: string;
+export declare const SANS_64_WHITE: string;
+export declare const SANS_128_WHITE: string;
+//# sourceMappingURL=fonts.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/fonts.d.ts.map b/node_modules/@jimp/plugin-print/dist/commonjs/fonts.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..951caef4d3744c0828dbdf603711317297be59e7
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/fonts.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/fonts.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,QAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,cAAc,QAG1B,CAAC;AAEF,eAAO,MAAM,YAAY,QAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,cAAc,QAG1B,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/fonts.js b/node_modules/@jimp/plugin-print/dist/commonjs/fonts.js
new file mode 100644
index 0000000000000000000000000000000000000000..8d71f5c3719d79820216b3fae4c42cf08a513e4a
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/fonts.js
@@ -0,0 +1,23 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SANS_128_WHITE = exports.SANS_64_WHITE = exports.SANS_32_WHITE = exports.SANS_16_WHITE = exports.SANS_8_WHITE = exports.SANS_128_BLACK = exports.SANS_64_BLACK = exports.SANS_32_BLACK = exports.SANS_16_BLACK = exports.SANS_14_BLACK = exports.SANS_12_BLACK = exports.SANS_10_BLACK = exports.SANS_8_BLACK = void 0;
+const path_1 = __importDefault(require("path"));
+const dirname_js_1 = require("./dirname.js");
+const dir = path_1.default.join(dirname_js_1.dirname, "../");
+exports.SANS_8_BLACK = path_1.default.join(dir, "fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt");
+exports.SANS_10_BLACK = path_1.default.join(dir, "fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt");
+exports.SANS_12_BLACK = path_1.default.join(dir, "fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt");
+exports.SANS_14_BLACK = path_1.default.join(dir, "fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt");
+exports.SANS_16_BLACK = path_1.default.join(dir, "fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt");
+exports.SANS_32_BLACK = path_1.default.join(dir, "fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt");
+exports.SANS_64_BLACK = path_1.default.join(dir, "fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt");
+exports.SANS_128_BLACK = path_1.default.join(dir, "fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt");
+exports.SANS_8_WHITE = path_1.default.join(dir, "fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt");
+exports.SANS_16_WHITE = path_1.default.join(dir, "fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt");
+exports.SANS_32_WHITE = path_1.default.join(dir, "fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt");
+exports.SANS_64_WHITE = path_1.default.join(dir, "fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt");
+exports.SANS_128_WHITE = path_1.default.join(dir, "fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt");
+//# sourceMappingURL=fonts.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/fonts.js.map b/node_modules/@jimp/plugin-print/dist/commonjs/fonts.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..f2f204d88a15540f5ceee439dcf51e13c8f14e70
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/fonts.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../src/fonts.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,6CAAuC;AAEvC,MAAM,GAAG,GAAG,cAAI,CAAC,IAAI,CAAC,oBAAO,EAAE,KAAK,CAAC,CAAC;AAEzB,QAAA,YAAY,GAAG,cAAI,CAAC,IAAI,CACnC,GAAG,EACH,yDAAyD,CAC1D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,cAAc,GAAG,cAAI,CAAC,IAAI,CACrC,GAAG,EACH,6DAA6D,CAC9D,CAAC;AAEW,QAAA,YAAY,GAAG,cAAI,CAAC,IAAI,CACnC,GAAG,EACH,yDAAyD,CAC1D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,aAAa,GAAG,cAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEW,QAAA,cAAc,GAAG,cAAI,CAAC,IAAI,CACrC,GAAG,EACH,6DAA6D,CAC9D,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/index.d.ts b/node_modules/@jimp/plugin-print/dist/commonjs/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..198d627e25eccaec744226f495640a070d0ee303
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/index.d.ts
@@ -0,0 +1,93 @@
+import { HorizontalAlign, VerticalAlign } from "@jimp/core";
+import { JimpClass } from "@jimp/types";
+import { z } from "zod";
+import { BmFont } from "./types.js";
+export { measureText, measureTextHeight } from "./measure-text.js";
+export * from "./types.js";
+declare const PrintOptionsSchema: z.ZodObject<{
+ /** the x position to draw the image */
+ x: z.ZodNumber;
+ /** the y position to draw the image */
+ y: z.ZodNumber;
+ /** the text to print */
+ text: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodObject<{
+ text: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
+ alignmentX: z.ZodOptional>;
+ alignmentY: z.ZodOptional>;
+ }, "strip", z.ZodTypeAny, {
+ text: string | number;
+ alignmentX?: HorizontalAlign | undefined;
+ alignmentY?: VerticalAlign | undefined;
+ }, {
+ text: string | number;
+ alignmentX?: HorizontalAlign | undefined;
+ alignmentY?: VerticalAlign | undefined;
+ }>]>;
+ /** the boundary width to draw in */
+ maxWidth: z.ZodOptional;
+ /** the boundary height to draw in */
+ maxHeight: z.ZodOptional;
+ /** a callback for when complete that ahs the end co-ordinates of the text */
+ cb: z.ZodOptional], null>, z.ZodUnknown>>;
+}, "strip", z.ZodTypeAny, {
+ x: number;
+ y: number;
+ text: string | number | {
+ text: string | number;
+ alignmentX?: HorizontalAlign | undefined;
+ alignmentY?: VerticalAlign | undefined;
+ };
+ maxWidth?: number | undefined;
+ maxHeight?: number | undefined;
+ cb?: ((args_0: {
+ x: number;
+ y: number;
+ }) => unknown) | undefined;
+}, {
+ x: number;
+ y: number;
+ text: string | number | {
+ text: string | number;
+ alignmentX?: HorizontalAlign | undefined;
+ alignmentY?: VerticalAlign | undefined;
+ };
+ maxWidth?: number | undefined;
+ maxHeight?: number | undefined;
+ cb?: ((args_0: {
+ x: number;
+ y: number;
+ }) => unknown) | undefined;
+}>;
+export type PrintOptions = z.infer;
+export declare const methods: {
+ /**
+ * Draws a text on a image on a given boundary
+ * @param font a bitmap font loaded from `Jimp.loadFont` command
+ * @param x the x position to start drawing the text
+ * @param y the y position to start drawing the text
+ * @param text the text to draw (string or object with `text`, `alignmentX`, and/or `alignmentY`)
+ * @example
+ * ```ts
+ * import { Jimp } from "jimp";
+ *
+ * const image = await Jimp.read("test/image.png");
+ * const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK);
+ *
+ * image.print({ font, x: 10, y: 10, text: "Hello world!" });
+ * ```
+ */
+ print(image: I, { font, ...options }: PrintOptions & {
+ /** the BMFont instance */
+ font: BmFont;
+ }): I;
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/index.d.ts.map b/node_modules/@jimp/plugin-print/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..e324a7691bfee0395ccd25f2fe4480526f1f6d04
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAe,MAAM,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACnE,cAAc,YAAY,CAAC;AAE3B,QAAA,MAAM,kBAAkB;IACtB,uCAAuC;;IAEvC,uCAAuC;;IAEvC,wBAAwB;;;;;;;;;;;;;;IASxB,oCAAoC;;IAEpC,qCAAqC;;IAErC,6EAA6E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI7E,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAmF9D,eAAO,MAAM,OAAO;IAClB;;;;;;;;;;;;;;;OAeG;UACG,CAAC,SAAS,SAAS,SAChB,CAAC,wBAIL,YAAY,GAAG;QAChB,0BAA0B;QAC1B,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;KACjB;CA4EJ,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/index.js b/node_modules/@jimp/plugin-print/dist/commonjs/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..2eb7745280116bb87e03196837fc2f580a558852
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/index.js
@@ -0,0 +1,165 @@
+"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.methods = exports.measureTextHeight = exports.measureText = void 0;
+const core_1 = require("@jimp/core");
+const plugin_blit_1 = require("@jimp/plugin-blit");
+const zod_1 = require("zod");
+const measure_text_js_1 = require("./measure-text.js");
+var measure_text_js_2 = require("./measure-text.js");
+Object.defineProperty(exports, "measureText", { enumerable: true, get: function () { return measure_text_js_2.measureText; } });
+Object.defineProperty(exports, "measureTextHeight", { enumerable: true, get: function () { return measure_text_js_2.measureTextHeight; } });
+__exportStar(require("./types.js"), exports);
+const PrintOptionsSchema = zod_1.z.object({
+ /** the x position to draw the image */
+ x: zod_1.z.number(),
+ /** the y position to draw the image */
+ y: zod_1.z.number(),
+ /** the text to print */
+ text: zod_1.z.union([
+ zod_1.z.union([zod_1.z.string(), zod_1.z.number()]),
+ zod_1.z.object({
+ text: zod_1.z.union([zod_1.z.string(), zod_1.z.number()]),
+ alignmentX: zod_1.z.nativeEnum(core_1.HorizontalAlign).optional(),
+ alignmentY: zod_1.z.nativeEnum(core_1.VerticalAlign).optional(),
+ }),
+ ]),
+ /** the boundary width to draw in */
+ maxWidth: zod_1.z.number().optional(),
+ /** the boundary height to draw in */
+ maxHeight: zod_1.z.number().optional(),
+ /** a callback for when complete that ahs the end co-ordinates of the text */
+ cb: zod_1.z
+ .function(zod_1.z.tuple([zod_1.z.object({ x: zod_1.z.number(), y: zod_1.z.number() })]))
+ .optional(),
+});
+function xOffsetBasedOnAlignment(font, line, maxWidth, alignment) {
+ if (alignment === core_1.HorizontalAlign.LEFT) {
+ return 0;
+ }
+ if (alignment === core_1.HorizontalAlign.CENTER) {
+ return (maxWidth - (0, measure_text_js_1.measureText)(font, line)) / 2;
+ }
+ return maxWidth - (0, measure_text_js_1.measureText)(font, line);
+}
+function drawCharacter(image, font, x, y, char) {
+ if (char.width > 0 && char.height > 0) {
+ const characterPage = font.pages[char.page];
+ if (characterPage) {
+ image = plugin_blit_1.methods.blit(image, {
+ src: characterPage,
+ x: x + char.xoffset,
+ y: y + char.yoffset,
+ srcX: char.x,
+ srcY: char.y,
+ srcW: char.width,
+ srcH: char.height,
+ });
+ }
+ }
+ return image;
+}
+function printText(image, font, x, y, text, defaultCharWidth) {
+ for (let i = 0; i < text.length; i++) {
+ const stringChar = text[i];
+ let char;
+ if (font.chars[stringChar]) {
+ char = stringChar;
+ }
+ else if (/\s/.test(stringChar)) {
+ char = "";
+ }
+ else {
+ char = "?";
+ }
+ const fontChar = font.chars[char] || { xadvance: undefined };
+ const fontKerning = font.kernings[char];
+ if (fontChar) {
+ drawCharacter(image, font, x, y, fontChar);
+ }
+ const nextChar = text[i + 1];
+ const kerning = fontKerning && nextChar && fontKerning[nextChar]
+ ? fontKerning[nextChar] || 0
+ : 0;
+ x += kerning + (fontChar.xadvance || defaultCharWidth);
+ }
+}
+exports.methods = {
+ /**
+ * Draws a text on a image on a given boundary
+ * @param font a bitmap font loaded from `Jimp.loadFont` command
+ * @param x the x position to start drawing the text
+ * @param y the y position to start drawing the text
+ * @param text the text to draw (string or object with `text`, `alignmentX`, and/or `alignmentY`)
+ * @example
+ * ```ts
+ * import { Jimp } from "jimp";
+ *
+ * const image = await Jimp.read("test/image.png");
+ * const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK);
+ *
+ * image.print({ font, x: 10, y: 10, text: "Hello world!" });
+ * ```
+ */
+ print(image, { font, ...options }) {
+ let {
+ // eslint-disable-next-line prefer-const
+ x, y, text,
+ // eslint-disable-next-line prefer-const
+ maxWidth = Infinity,
+ // eslint-disable-next-line prefer-const
+ maxHeight = Infinity,
+ // eslint-disable-next-line prefer-const
+ cb = () => { }, } = PrintOptionsSchema.parse(options);
+ let alignmentX;
+ let alignmentY;
+ if (typeof text === "object" &&
+ text.text !== null &&
+ text.text !== undefined) {
+ alignmentX = text.alignmentX || core_1.HorizontalAlign.LEFT;
+ alignmentY = text.alignmentY || core_1.VerticalAlign.TOP;
+ ({ text } = text);
+ }
+ else {
+ alignmentX = core_1.HorizontalAlign.LEFT;
+ alignmentY = core_1.VerticalAlign.TOP;
+ text = text.toString();
+ }
+ if (typeof text === "number") {
+ text = text.toString();
+ }
+ if (maxHeight !== Infinity && alignmentY === core_1.VerticalAlign.BOTTOM) {
+ y += maxHeight - (0, measure_text_js_1.measureTextHeight)(font, text, maxWidth);
+ }
+ else if (maxHeight !== Infinity && alignmentY === core_1.VerticalAlign.MIDDLE) {
+ y += maxHeight / 2 - (0, measure_text_js_1.measureTextHeight)(font, text, maxWidth) / 2;
+ }
+ const defaultCharWidth = Object.entries(font.chars).find((c) => c[1].xadvance)?.[1].xadvance;
+ if (typeof defaultCharWidth !== "number") {
+ throw new Error("Could not find default character width");
+ }
+ const { lines, longestLine } = (0, measure_text_js_1.splitLines)(font, text, maxWidth);
+ lines.forEach((line) => {
+ const lineString = line.join(" ");
+ const alignmentWidth = xOffsetBasedOnAlignment(font, lineString, maxWidth, alignmentX);
+ printText(image, font, x + alignmentWidth, y, lineString, defaultCharWidth);
+ y += font.common.lineHeight;
+ });
+ cb.bind(image)({ x: x + longestLine, y });
+ return image;
+ },
+};
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/index.js.map b/node_modules/@jimp/plugin-print/dist/commonjs/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..4aedc7546437cd28475824acd5b9e6ebbfffb1f5
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAA4D;AAE5D,mDAA2D;AAC3D,6BAAwB;AAExB,uDAA+E;AAG/E,qDAAmE;AAA1D,8GAAA,WAAW,OAAA;AAAE,oHAAA,iBAAiB,OAAA;AACvC,6CAA2B;AAE3B,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,uCAAuC;IACvC,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE;IACb,uCAAuC;IACvC,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE;IACb,wBAAwB;IACxB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACjC,OAAC,CAAC,MAAM,CAAC;YACP,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YACvC,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAe,CAAC,CAAC,QAAQ,EAAE;YACpD,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAa,CAAC,CAAC,QAAQ,EAAE;SACnD,CAAC;KACH,CAAC;IACF,oCAAoC;IACpC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,qCAAqC;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,6EAA6E;IAC7E,EAAE,EAAE,OAAC;SACF,QA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.d.ts b/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..650bd5656209184bee81fabf98e14baf7245ba72
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.d.ts
@@ -0,0 +1,134 @@
+import { BmCharacter, BmKerning, BmFont, BmCommonProps } from "./types.js";
+export declare const isWebWorker: boolean;
+export interface LoadedFont {
+ chars: BmCharacter[];
+ kernings: BmKerning[];
+ common: BmCommonProps;
+ info: Record;
+ pages: string[];
+}
+/**
+ *
+ * @param bufferOrUrl A URL to a file or a buffer
+ * @returns
+ */
+export declare function loadBitmapFontData(bufferOrUrl: string | Buffer): Promise;
+type RawFont = Awaited>;
+export type ResolveBmFont = Omit & Pick;
+export declare function processBitmapFont(file: string, font: LoadedFont): Promise<{
+ chars: Record;
+ kernings: Record;
+ pages: ({
+ bitmap: import("@jimp/types").Bitmap;
+ background: number;
+ formats: import("@jimp/types").Format[];
+ mime?: string;
+ inspect(): string;
+ toString(): string;
+ readonly width: number;
+ readonly height: number;
+ getBuffer & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ getBase64 & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ write extends infer T ? T extends Record<"png", "image/png"> ? T extends Record ? M : never : never : never, Options extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T_1 ? T_1 extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T_1 extends Record ? O : never : never : never>(path: `${string}.${Extension}`, options?: Options | undefined): Promise;
+ clone(this: S): S;
+ getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
+ getPixelColor(x: number, y: number): number;
+ setPixelColor(hex: number, x: number, y: number): any;
+ hasAlpha(): boolean;
+ composite(src: I, x?: number, y?: number, options?: {
+ mode?: import("@jimp/core").BlendMode;
+ opacitySource?: number;
+ opacityDest?: number;
+ }): any;
+ scan(f: (x: number, y: number, idx: number) => any): any;
+ scan(x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): any;
+ scanIterator(x?: number, y?: number, w?: number, h?: number): Generator<{
+ x: number;
+ y: number;
+ idx: number;
+ image: any;
+ }, void, unknown>;
+ } & import("@jimp/core").JimpInstanceMethods<{
+ bitmap: import("@jimp/types").Bitmap;
+ background: number;
+ formats: import("@jimp/types").Format[];
+ mime?: string;
+ inspect(): string;
+ toString(): string;
+ readonly width: number;
+ readonly height: number;
+ getBuffer & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ getBase64 & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ write extends infer T ? T extends Record<"png", "image/png"> ? T extends Record ? M : never : never : never, Options extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T_1 ? T_1 extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T_1 extends Record ? O : never : never : never>(path: `${string}.${Extension}`, options?: Options | undefined): Promise;
+ clone(this: S): S;
+ getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
+ getPixelColor(x: number, y: number): number;
+ setPixelColor(hex: number, x: number, y: number): any;
+ hasAlpha(): boolean;
+ composite(src: I, x?: number, y?: number, options?: {
+ mode?: import("@jimp/core").BlendMode;
+ opacitySource?: number;
+ opacityDest?: number;
+ }): any;
+ scan(f: (x: number, y: number, idx: number) => any): any;
+ scan(x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): any;
+ scanIterator(x?: number, y?: number, w?: number, h?: number): Generator<{
+ x: number;
+ y: number;
+ idx: number;
+ image: any;
+ }, void, unknown>;
+ }, import("@jimp/core").JimpPlugin>)[];
+ common: BmCommonProps;
+ info: Record;
+}>;
+export {};
+//# sourceMappingURL=load-bitmap-font.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.d.ts.map b/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..20261a480016e0a2817313dacef4b9a46fa5afe2
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"load-bitmap-font.d.ts","sourceRoot":"","sources":["../../src/load-bitmap-font.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAQ3E,eAAO,MAAM,WAAW,SACoC,CAAC;AAoB7D,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,MAAM,EAAE,aAAa,CAAC;IAEtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AA0CD;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,GAAG,MAAM,GAC3B,OAAO,CAAC,UAAU,CAAC,CA4CrB;AAED,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAE3E,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA4Bqie,CAAC;yBAAsC,CAAC;uBAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAo3R,CAAC;yBAAsC,CAAC;uBAAiC,CAAC;;;;;;;;;;;YAlIzmwB,aAAa;UAEf,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;GA+H1B"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.js b/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.js
new file mode 100644
index 0000000000000000000000000000000000000000..e2e2ecd1ebc143ab89473a9a8f5956d7ad00c0be
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.js
@@ -0,0 +1,126 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isWebWorker = void 0;
+exports.loadBitmapFontData = loadBitmapFontData;
+exports.processBitmapFont = processBitmapFont;
+const parse_bmfont_ascii_1 = __importDefault(require("parse-bmfont-ascii"));
+const parse_bmfont_xml_1 = __importDefault(require("parse-bmfont-xml"));
+const parse_bmfont_binary_1 = __importDefault(require("parse-bmfont-binary"));
+const js_png_1 = __importDefault(require("@jimp/js-png"));
+const core_1 = require("@jimp/core");
+const path_1 = __importDefault(require("path"));
+const simple_xml_to_json_1 = __importDefault(require("simple-xml-to-json"));
+const { convertXML } = simple_xml_to_json_1.default;
+exports.isWebWorker = typeof self !== "undefined" && self.document === undefined;
+const CharacterJimp = (0, core_1.createJimp)({ formats: [js_png_1.default] });
+const HEADER = Buffer.from([66, 77, 70, 3]);
+function isBinary(buf) {
+ if (typeof buf === "string") {
+ return buf.substring(0, 3) === "BMF";
+ }
+ const startOfHeader = buf.slice(0, 4);
+ return (buf.length > 4 &&
+ startOfHeader[0] === HEADER[0] &&
+ startOfHeader[1] === HEADER[1] &&
+ startOfHeader[2] === HEADER[2]);
+}
+function parseFont(file, data) {
+ if (isBinary(data)) {
+ if (typeof data === "string") {
+ data = Buffer.from(data, "binary");
+ }
+ return (0, parse_bmfont_binary_1.default)(data);
+ }
+ data = data.toString().trim();
+ if (/.json$/.test(file) || data.charAt(0) === "{") {
+ return JSON.parse(data);
+ }
+ if (/.xml$/.test(file) || data.charAt(0) === "<") {
+ return (0, parse_bmfont_xml_1.default)(data);
+ }
+ return (0, parse_bmfont_ascii_1.default)(data);
+}
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+function parseNumbersInObject(obj) {
+ for (const key in obj) {
+ try {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ obj[key] = parseInt(obj[key], 10);
+ }
+ catch {
+ // do nothing
+ }
+ if (typeof obj[key] === "object") {
+ parseNumbersInObject(obj[key]);
+ }
+ }
+ return obj;
+}
+/**
+ *
+ * @param bufferOrUrl A URL to a file or a buffer
+ * @returns
+ */
+async function loadBitmapFontData(bufferOrUrl) {
+ if (exports.isWebWorker && typeof bufferOrUrl === "string") {
+ const res = await fetch(bufferOrUrl);
+ const text = await res.text();
+ const json = convertXML(text);
+ const font = json.font.children.reduce(
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ (acc, i) => ({ ...acc, ...i }), {});
+ const pages = [];
+ const chars = [];
+ const kernings = [];
+ for (let i = 0; i < font.pages.children.length; i++) {
+ const p = font.pages.children[i].page;
+ const id = parseInt(p.id, 10);
+ pages[id] = parseNumbersInObject(p.file);
+ }
+ for (let i = 0; i < font.chars.children.length; i++) {
+ chars.push(parseNumbersInObject(font.chars.children[i].char));
+ }
+ for (let i = 0; i < font.kernings.children.length; i++) {
+ kernings.push(parseNumbersInObject(font.kernings.children[i].kerning));
+ }
+ return {
+ info: font.info,
+ common: font.common,
+ pages,
+ chars,
+ kernings,
+ };
+ }
+ else if (typeof bufferOrUrl === "string") {
+ const res = await fetch(bufferOrUrl);
+ const text = await res.text();
+ return parseFont(bufferOrUrl, text);
+ }
+ else {
+ return parseFont("", bufferOrUrl);
+ }
+}
+async function processBitmapFont(file, font) {
+ const chars = {};
+ const kernings = {};
+ for (let i = 0; i < font.chars.length; i++) {
+ const char = font.chars[i];
+ chars[String.fromCharCode(char.id)] = char;
+ }
+ for (let i = 0; i < font.kernings.length; i++) {
+ const firstString = String.fromCharCode(font.kernings[i].first);
+ kernings[firstString] = kernings[firstString] || {};
+ kernings[firstString][String.fromCharCode(font.kernings[i].second)] =
+ font.kernings[i].amount;
+ }
+ return {
+ ...font,
+ chars,
+ kernings,
+ pages: await Promise.all(font.pages.map(async (page) => CharacterJimp.read(path_1.default.join(path_1.default.dirname(file), page)))),
+ };
+}
+//# sourceMappingURL=load-bitmap-font.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.js.map b/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..00d746aa3cf998c560e4dd4f9ad7758246fb7273
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/load-bitmap-font.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"load-bitmap-font.js","sourceRoot":"","sources":["../../src/load-bitmap-font.ts"],"names":[],"mappings":";;;;;;AAsFA,gDA8CC;AAKD,8CA2BC;AApKD,4EAA4C;AAC5C,wEAAwC;AACxC,8EAA6C;AAE7C,0DAA+B;AAC/B,qCAAwC;AACxC,gDAAwB;AACxB,4EAA4C;AAE5C,MAAM,EAAE,UAAU,EAAE,GAAG,4BAAU,CAAC;AAErB,QAAA,WAAW,GACtB,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC;AAE7D,MAAM,aAAa,GAAG,IAAA,iBAAU,EAAC,EAAE,OAAO,EAAE,CAAC,gBAAG,CAAC,EAAE,CAAC,CAAC;AACrD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAE5C,SAAS,QAAQ,CAAC,GAAoB;IACpC,IAAI,OAAO,GAAG,KAAK,QAAQ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/node_modules/@jimp/plugin-print/dist/commonjs/load-font.d.ts b/node_modules/@jimp/plugin-print/dist/commonjs/load-font.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..01415e76ed5f3c523215867c5b69a3244899624f
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/load-font.d.ts
@@ -0,0 +1,131 @@
+/**
+ * Loads a Bitmap Font from a file.
+ * @param file A path or URL to a font file
+ * @returns A collection of Jimp images that can be used to print text
+ * @example
+ * ```ts
+ * import { Jimp, loadFont } from "jimp";
+ * import { SANS_10_BLACK } from "jimp/fonts";
+ *
+ * const font = await loadFont(SANS_10_BLACK);
+ * const image = new Jimp({ width: 200, height: 100, color: 0xffffffff });
+ *
+ * image.print(font, 10, 10, "Hello world!");
+ * ```
+ */
+export declare function loadFont(file: string): Promise<{
+ chars: Record;
+ kernings: Record;
+ pages: ({
+ bitmap: import("@jimp/types").Bitmap;
+ background: number;
+ formats: import("@jimp/types").Format[];
+ mime?: string;
+ inspect(): string;
+ toString(): string;
+ readonly width: number;
+ readonly height: number;
+ getBuffer & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ getBase64 & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ write extends infer T ? T extends Record<"png", "image/png"> ? T extends Record ? M : never : never : never, Options extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T_1 ? T_1 extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T_1 extends Record ? O : never : never : never>(path: `${string}.${Extension}`, options?: Options | undefined): Promise;
+ clone(this: S): S;
+ getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
+ getPixelColor(x: number, y: number): number;
+ setPixelColor(hex: number, x: number, y: number): any;
+ hasAlpha(): boolean;
+ composite(src: I, x?: number, y?: number, options?: {
+ mode?: import("@jimp/core").BlendMode;
+ opacitySource?: number;
+ opacityDest?: number;
+ }): any;
+ scan(f: (x: number, y: number, idx: number) => any): any;
+ scan(x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): any;
+ scanIterator(x?: number, y?: number, w?: number, h?: number): Generator<{
+ x: number;
+ y: number;
+ idx: number;
+ image: any;
+ }, void, unknown>;
+ } & import("@jimp/core").JimpInstanceMethods<{
+ bitmap: import("@jimp/types").Bitmap;
+ background: number;
+ formats: import("@jimp/types").Format[];
+ mime?: string;
+ inspect(): string;
+ toString(): string;
+ readonly width: number;
+ readonly height: number;
+ getBuffer & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ getBase64 & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ write extends infer T ? T extends Record<"png", "image/png"> ? T extends Record ? M : never : never : never, Options extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T_1 ? T_1 extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T_1 extends Record ? O : never : never : never>(path: `${string}.${Extension}`, options?: Options | undefined): Promise;
+ clone(this: S): S;
+ getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
+ getPixelColor(x: number, y: number): number;
+ setPixelColor(hex: number, x: number, y: number): any;
+ hasAlpha(): boolean;
+ composite(src: I, x?: number, y?: number, options?: {
+ mode?: import("@jimp/core").BlendMode;
+ opacitySource?: number;
+ opacityDest?: number;
+ }): any;
+ scan(f: (x: number, y: number, idx: number) => any): any;
+ scan(x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): any;
+ scanIterator(x?: number, y?: number, w?: number, h?: number): Generator<{
+ x: number;
+ y: number;
+ idx: number;
+ image: any;
+ }, void, unknown>;
+ }, import("@jimp/core").JimpPlugin>)[];
+ common: import("./types.js").BmCommonProps;
+ info: Record;
+}>;
+//# sourceMappingURL=load-font.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/load-font.d.ts.map b/node_modules/@jimp/plugin-print/dist/commonjs/load-font.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..374ae2f98728b87d8844691c9cb92323f14f7cb6
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/load-font.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"load-font.d.ts","sourceRoot":"","sources":["../../src/load-font.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAcq/kB,CAAC;yBAAsC,CAAC;uBAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAo3R,CAAC;yBAAsC,CAAC;uBAAiC,CAAC;;;;;;;;;;;;;GADvi3B"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/load-font.js b/node_modules/@jimp/plugin-print/dist/commonjs/load-font.js
new file mode 100644
index 0000000000000000000000000000000000000000..7c158d32db4965d7b6c739c6ed2382251232b808
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/load-font.js
@@ -0,0 +1,31 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.loadFont = loadFont;
+const load_bitmap_font_js_1 = require("./load-bitmap-font.js");
+/**
+ * Loads a Bitmap Font from a file.
+ * @param file A path or URL to a font file
+ * @returns A collection of Jimp images that can be used to print text
+ * @example
+ * ```ts
+ * import { Jimp, loadFont } from "jimp";
+ * import { SANS_10_BLACK } from "jimp/fonts";
+ *
+ * const font = await loadFont(SANS_10_BLACK);
+ * const image = new Jimp({ width: 200, height: 100, color: 0xffffffff });
+ *
+ * image.print(font, 10, 10, "Hello world!");
+ * ```
+ */
+async function loadFont(file) {
+ let fileOrBuffer = file;
+ if (typeof window === "undefined" && !load_bitmap_font_js_1.isWebWorker) {
+ const { existsSync, promises: fs } = await import("fs");
+ if (existsSync(file)) {
+ fileOrBuffer = await fs.readFile(file);
+ }
+ }
+ const data = await (0, load_bitmap_font_js_1.loadBitmapFontData)(fileOrBuffer);
+ return (0, load_bitmap_font_js_1.processBitmapFont)(file, data);
+}
+//# sourceMappingURL=load-font.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/load-font.js.map b/node_modules/@jimp/plugin-print/dist/commonjs/load-font.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..227320b15e040ddd6cb6e3c82298b3c8dea33b08
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/load-font.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"load-font.js","sourceRoot":"","sources":["../../src/load-font.ts"],"names":[],"mappings":";;AAqBA,4BAaC;AAlCD,+DAI+B;AAE/B;;;;;;;;;;;;;;GAcG;AACI,KAAK,UAAU,QAAQ,CAAC,IAAY;IACzC,IAAI,YAAY,GAAoB,IAAI,CAAC;IAEzC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,iCAAW,EAAE,CAAC;QAClD,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;QAExD,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACrB,YAAY,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,IAAA,wCAAkB,EAAC,YAAY,CAAC,CAAC;IACpD,OAAO,IAAA,uCAAiB,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.d.ts b/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..6457b8e1f7eca6cb8fc58857bcb40748f6af6d83
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.d.ts
@@ -0,0 +1,8 @@
+import { BmFont } from "./types.js";
+export declare function measureText(font: BmFont, text: string): number;
+export declare function splitLines(font: BmFont, text: string, maxWidth: number): {
+ lines: string[][];
+ longestLine: number;
+};
+export declare function measureTextHeight(font: BmFont, text: string, maxWidth: number): number;
+//# sourceMappingURL=measure-text.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.d.ts.map b/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..07d42f71e701a87ad3cda1bd0dd623bec0406e9f
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"measure-text.d.ts","sourceRoot":"","sources":["../../src/measure-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAoBrD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;EAyDtE;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,UAKjB"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.js b/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.js
new file mode 100644
index 0000000000000000000000000000000000000000..98feddc783d5137d746cc075e0cdc4bdff3b581d
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.js
@@ -0,0 +1,75 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.measureText = measureText;
+exports.splitLines = splitLines;
+exports.measureTextHeight = measureTextHeight;
+function measureText(font, text) {
+ let x = 0;
+ for (let i = 0; i < text.length; i++) {
+ const char = text[i];
+ const fontChar = font.chars[char];
+ if (fontChar) {
+ const fontKerning = font.kernings[char];
+ const nextChar = text[i + 1];
+ const kerning = fontKerning && nextChar && fontKerning[nextChar]
+ ? fontKerning[nextChar] || 0
+ : 0;
+ x += (fontChar.xadvance || 0) + kerning;
+ }
+ }
+ return x;
+}
+function splitLines(font, text, maxWidth) {
+ const words = text.replace(/[\r\n]+/g, " \n").split(" ");
+ const lines = [];
+ let currentLine = [];
+ let longestLine = 0;
+ words.forEach((word) => {
+ const wordWidth = measureText(font, word + (words.length > 1 ? " " : ""));
+ // If a word is longer than the allowable width we need to split it across lines.
+ if (wordWidth > maxWidth) {
+ const characterIterator = word[Symbol.iterator]();
+ let current = "";
+ for (const char of characterIterator) {
+ const nextLine = [...currentLine, current + char].join(" ");
+ const length = measureText(font, nextLine);
+ if (length < maxWidth) {
+ current += char;
+ }
+ else if (length > maxWidth) {
+ lines.push([...currentLine, current]);
+ currentLine = [];
+ current = char;
+ }
+ else {
+ lines.push([...currentLine, current + char]);
+ currentLine = [];
+ current = "";
+ }
+ }
+ return;
+ }
+ const line = [...currentLine, word].join(" ");
+ const length = measureText(font, line);
+ if (length <= maxWidth && !word.includes("\n")) {
+ if (length > longestLine) {
+ longestLine = length;
+ }
+ currentLine.push(word);
+ }
+ else {
+ lines.push(currentLine);
+ currentLine = [word.replace("\n", "")];
+ }
+ });
+ lines.push(currentLine);
+ return {
+ lines,
+ longestLine,
+ };
+}
+function measureTextHeight(font, text, maxWidth) {
+ const { lines } = splitLines(font, text, maxWidth);
+ return lines.length * font.common.lineHeight;
+}
+//# sourceMappingURL=measure-text.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.js.map b/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..674296f5e8e17ed75032e68e4cabf63be29b6a12
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/measure-text.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"measure-text.js","sourceRoot":"","sources":["../../src/measure-text.ts"],"names":[],"mappings":";;AAEA,kCAoBC;AAED,gCAyDC;AAED,8CAQC;AAzFD,SAAgB,WAAW,CAAC,IAAY,EAAE,IAAY;IACpD,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAE,CAAC;QACtB,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAElC,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC7B,MAAM,OAAO,GACX,WAAW,IAAI,QAAQ,IAAI,WAAW,CAAC,QAAQ,CAAC;gBAC9C,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;gBAC5B,CAAC,CAAC,CAAC,CAAC;YAER,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC;QAC1C,CAAC;IACH,CAAC;IAED,OAAO,CAAC,CAAC;AACX,CAAC;AAED,SAAgB,UAAU,CAAC,IAAY,EAAE,IAAY,EAAE,QAAgB;IACrE,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEzD,MAAM,KAAK,GAAe,EAAE,CAAC;IAC7B,IAAI,WAAW,GAAa,EAAE,CAAC;IAC/B,IAAI,WAAW,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AAC;QAC9C,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAEvC,IAAI,MAAM,IAAI,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/C,IAAI,MAAM,GAAG,WAAW,EAAE,CAAC;gBACzB,WAAW,GAAG,MAAM,CAAC;YACvB,CAAC;YAED,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACxB,WAAW,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAExB,OAAO;QACL,KAAK;QACL,WAAW;KACZ,CAAC;AACJ,CAAC;AAED,SAAgB,iBAAiB,CAC/B,IAAY,EACZ,IAAY,EACZ,QAAgB;IAEhB,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAEnD,OAAO,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;AAC/C,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/package.json b/node_modules/@jimp/plugin-print/dist/commonjs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/types.d.ts b/node_modules/@jimp/plugin-print/dist/commonjs/types.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..7e26494bb4c017d43bc950a225de26094b341bec
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/types.d.ts
@@ -0,0 +1,29 @@
+import { JimpClass } from "@jimp/types";
+export interface BmCharacter {
+ id: number;
+ xadvance: number;
+ width: number;
+ height: number;
+ xoffset: number;
+ yoffset: number;
+ page: number;
+ x: number;
+ y: number;
+}
+export interface BmKerning {
+ [secondString: string]: number;
+ first: number;
+ second: number;
+ amount: number;
+}
+export interface BmCommonProps {
+ lineHeight: number;
+}
+export interface BmFont {
+ chars: Record;
+ kernings: Record;
+ common: BmCommonProps;
+ info: Record;
+ pages: T[];
+}
+//# sourceMappingURL=types.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/types.d.ts.map b/node_modules/@jimp/plugin-print/dist/commonjs/types.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..07e0f29b274051b45e670717bb98a215b7724aef
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/types.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IACrD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACpC,MAAM,EAAE,aAAa,CAAC;IAEtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE,CAAC,EAAE,CAAC;CACZ"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/types.js b/node_modules/@jimp/plugin-print/dist/commonjs/types.js
new file mode 100644
index 0000000000000000000000000000000000000000..11e638d1ee44ae0dcb1feb5aef676ea74a7d4df3
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/types.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=types.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/commonjs/types.js.map b/node_modules/@jimp/plugin-print/dist/commonjs/types.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..7b5fff867a5a8de2324d2c0521b7c2292da35535
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/commonjs/types.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/dirname.d.ts b/node_modules/@jimp/plugin-print/dist/esm/dirname.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..147b726cf98825a06456f592656c91916595b109
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/dirname.d.ts
@@ -0,0 +1,2 @@
+export declare const dirname: string;
+//# sourceMappingURL=dirname.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/dirname.d.ts.map b/node_modules/@jimp/plugin-print/dist/esm/dirname.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..bcc72161fbcead82b1b70d45882a056ef1ef03bd
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/dirname.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"dirname.d.ts","sourceRoot":"","sources":["../../src/dirname.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,QAA+C,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/dirname.js b/node_modules/@jimp/plugin-print/dist/esm/dirname.js
new file mode 100644
index 0000000000000000000000000000000000000000..20932af4f488a57729a5bd43993d384998e9ac9b
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/dirname.js
@@ -0,0 +1,6 @@
+import { fileURLToPath } from "url";
+import path from "path";
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// @ts-ignore Dual package
+export const dirname = path.dirname(fileURLToPath(import.meta.url));
+//# sourceMappingURL=dirname.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/dirname.js.map b/node_modules/@jimp/plugin-print/dist/esm/dirname.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..634b1cd5b80e9557c2dadf995244c60b498e9c01
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/dirname.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"dirname.js","sourceRoot":"","sources":["../../src/dirname.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,6DAA6D;AAC7D,0BAA0B;AAC1B,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/fonts.d.ts b/node_modules/@jimp/plugin-print/dist/esm/fonts.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..b2e202e594f07cb07529746628283fab9bf56198
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/fonts.d.ts
@@ -0,0 +1,14 @@
+export declare const SANS_8_BLACK: string;
+export declare const SANS_10_BLACK: string;
+export declare const SANS_12_BLACK: string;
+export declare const SANS_14_BLACK: string;
+export declare const SANS_16_BLACK: string;
+export declare const SANS_32_BLACK: string;
+export declare const SANS_64_BLACK: string;
+export declare const SANS_128_BLACK: string;
+export declare const SANS_8_WHITE: string;
+export declare const SANS_16_WHITE: string;
+export declare const SANS_32_WHITE: string;
+export declare const SANS_64_WHITE: string;
+export declare const SANS_128_WHITE: string;
+//# sourceMappingURL=fonts.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/fonts.d.ts.map b/node_modules/@jimp/plugin-print/dist/esm/fonts.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..951caef4d3744c0828dbdf603711317297be59e7
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/fonts.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/fonts.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,QAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,cAAc,QAG1B,CAAC;AAEF,eAAO,MAAM,YAAY,QAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAGzB,CAAC;AAEF,eAAO,MAAM,cAAc,QAG1B,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/fonts.js b/node_modules/@jimp/plugin-print/dist/esm/fonts.js
new file mode 100644
index 0000000000000000000000000000000000000000..3b73f05f479739c339b365428bd750190d7dfe77
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/fonts.js
@@ -0,0 +1,17 @@
+import path from "path";
+import { dirname } from "./dirname.js";
+const dir = path.join(dirname, "../");
+export const SANS_8_BLACK = path.join(dir, "fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt");
+export const SANS_10_BLACK = path.join(dir, "fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt");
+export const SANS_12_BLACK = path.join(dir, "fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt");
+export const SANS_14_BLACK = path.join(dir, "fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt");
+export const SANS_16_BLACK = path.join(dir, "fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt");
+export const SANS_32_BLACK = path.join(dir, "fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt");
+export const SANS_64_BLACK = path.join(dir, "fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt");
+export const SANS_128_BLACK = path.join(dir, "fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt");
+export const SANS_8_WHITE = path.join(dir, "fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt");
+export const SANS_16_WHITE = path.join(dir, "fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt");
+export const SANS_32_WHITE = path.join(dir, "fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt");
+export const SANS_64_WHITE = path.join(dir, "fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt");
+export const SANS_128_WHITE = path.join(dir, "fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt");
+//# sourceMappingURL=fonts.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/fonts.js.map b/node_modules/@jimp/plugin-print/dist/esm/fonts.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..3675a9897a8c7b547a29cf693f910ecd6e8b09b6
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/fonts.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../src/fonts.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CACnC,GAAG,EACH,yDAAyD,CAC1D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CACrC,GAAG,EACH,6DAA6D,CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CACnC,GAAG,EACH,yDAAyD,CAC1D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CACpC,GAAG,EACH,2DAA2D,CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CACrC,GAAG,EACH,6DAA6D,CAC9D,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/index.d.ts b/node_modules/@jimp/plugin-print/dist/esm/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..198d627e25eccaec744226f495640a070d0ee303
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/index.d.ts
@@ -0,0 +1,93 @@
+import { HorizontalAlign, VerticalAlign } from "@jimp/core";
+import { JimpClass } from "@jimp/types";
+import { z } from "zod";
+import { BmFont } from "./types.js";
+export { measureText, measureTextHeight } from "./measure-text.js";
+export * from "./types.js";
+declare const PrintOptionsSchema: z.ZodObject<{
+ /** the x position to draw the image */
+ x: z.ZodNumber;
+ /** the y position to draw the image */
+ y: z.ZodNumber;
+ /** the text to print */
+ text: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodObject<{
+ text: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
+ alignmentX: z.ZodOptional>;
+ alignmentY: z.ZodOptional>;
+ }, "strip", z.ZodTypeAny, {
+ text: string | number;
+ alignmentX?: HorizontalAlign | undefined;
+ alignmentY?: VerticalAlign | undefined;
+ }, {
+ text: string | number;
+ alignmentX?: HorizontalAlign | undefined;
+ alignmentY?: VerticalAlign | undefined;
+ }>]>;
+ /** the boundary width to draw in */
+ maxWidth: z.ZodOptional;
+ /** the boundary height to draw in */
+ maxHeight: z.ZodOptional;
+ /** a callback for when complete that ahs the end co-ordinates of the text */
+ cb: z.ZodOptional], null>, z.ZodUnknown>>;
+}, "strip", z.ZodTypeAny, {
+ x: number;
+ y: number;
+ text: string | number | {
+ text: string | number;
+ alignmentX?: HorizontalAlign | undefined;
+ alignmentY?: VerticalAlign | undefined;
+ };
+ maxWidth?: number | undefined;
+ maxHeight?: number | undefined;
+ cb?: ((args_0: {
+ x: number;
+ y: number;
+ }) => unknown) | undefined;
+}, {
+ x: number;
+ y: number;
+ text: string | number | {
+ text: string | number;
+ alignmentX?: HorizontalAlign | undefined;
+ alignmentY?: VerticalAlign | undefined;
+ };
+ maxWidth?: number | undefined;
+ maxHeight?: number | undefined;
+ cb?: ((args_0: {
+ x: number;
+ y: number;
+ }) => unknown) | undefined;
+}>;
+export type PrintOptions = z.infer;
+export declare const methods: {
+ /**
+ * Draws a text on a image on a given boundary
+ * @param font a bitmap font loaded from `Jimp.loadFont` command
+ * @param x the x position to start drawing the text
+ * @param y the y position to start drawing the text
+ * @param text the text to draw (string or object with `text`, `alignmentX`, and/or `alignmentY`)
+ * @example
+ * ```ts
+ * import { Jimp } from "jimp";
+ *
+ * const image = await Jimp.read("test/image.png");
+ * const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK);
+ *
+ * image.print({ font, x: 10, y: 10, text: "Hello world!" });
+ * ```
+ */
+ print(image: I, { font, ...options }: PrintOptions & {
+ /** the BMFont instance */
+ font: BmFont;
+ }): I;
+};
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/index.d.ts.map b/node_modules/@jimp/plugin-print/dist/esm/index.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..e324a7691bfee0395ccd25f2fe4480526f1f6d04
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAe,MAAM,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACnE,cAAc,YAAY,CAAC;AAE3B,QAAA,MAAM,kBAAkB;IACtB,uCAAuC;;IAEvC,uCAAuC;;IAEvC,wBAAwB;;;;;;;;;;;;;;IASxB,oCAAoC;;IAEpC,qCAAqC;;IAErC,6EAA6E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI7E,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAmF9D,eAAO,MAAM,OAAO;IAClB;;;;;;;;;;;;;;;OAeG;UACG,CAAC,SAAS,SAAS,SAChB,CAAC,wBAIL,YAAY,GAAG;QAChB,0BAA0B;QAC1B,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;KACjB;CA4EJ,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/index.js b/node_modules/@jimp/plugin-print/dist/esm/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..6c91127018bfb4b7741ea7348ec7c955fa7d672f
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/index.js
@@ -0,0 +1,146 @@
+import { HorizontalAlign, VerticalAlign } from "@jimp/core";
+import { methods as blitMethods } from "@jimp/plugin-blit";
+import { z } from "zod";
+import { measureText, measureTextHeight, splitLines } from "./measure-text.js";
+export { measureText, measureTextHeight } from "./measure-text.js";
+export * from "./types.js";
+const PrintOptionsSchema = z.object({
+ /** the x position to draw the image */
+ x: z.number(),
+ /** the y position to draw the image */
+ y: z.number(),
+ /** the text to print */
+ text: z.union([
+ z.union([z.string(), z.number()]),
+ z.object({
+ text: z.union([z.string(), z.number()]),
+ alignmentX: z.nativeEnum(HorizontalAlign).optional(),
+ alignmentY: z.nativeEnum(VerticalAlign).optional(),
+ }),
+ ]),
+ /** the boundary width to draw in */
+ maxWidth: z.number().optional(),
+ /** the boundary height to draw in */
+ maxHeight: z.number().optional(),
+ /** a callback for when complete that ahs the end co-ordinates of the text */
+ cb: z
+ .function(z.tuple([z.object({ x: z.number(), y: z.number() })]))
+ .optional(),
+});
+function xOffsetBasedOnAlignment(font, line, maxWidth, alignment) {
+ if (alignment === HorizontalAlign.LEFT) {
+ return 0;
+ }
+ if (alignment === HorizontalAlign.CENTER) {
+ return (maxWidth - measureText(font, line)) / 2;
+ }
+ return maxWidth - measureText(font, line);
+}
+function drawCharacter(image, font, x, y, char) {
+ if (char.width > 0 && char.height > 0) {
+ const characterPage = font.pages[char.page];
+ if (characterPage) {
+ image = blitMethods.blit(image, {
+ src: characterPage,
+ x: x + char.xoffset,
+ y: y + char.yoffset,
+ srcX: char.x,
+ srcY: char.y,
+ srcW: char.width,
+ srcH: char.height,
+ });
+ }
+ }
+ return image;
+}
+function printText(image, font, x, y, text, defaultCharWidth) {
+ for (let i = 0; i < text.length; i++) {
+ const stringChar = text[i];
+ let char;
+ if (font.chars[stringChar]) {
+ char = stringChar;
+ }
+ else if (/\s/.test(stringChar)) {
+ char = "";
+ }
+ else {
+ char = "?";
+ }
+ const fontChar = font.chars[char] || { xadvance: undefined };
+ const fontKerning = font.kernings[char];
+ if (fontChar) {
+ drawCharacter(image, font, x, y, fontChar);
+ }
+ const nextChar = text[i + 1];
+ const kerning = fontKerning && nextChar && fontKerning[nextChar]
+ ? fontKerning[nextChar] || 0
+ : 0;
+ x += kerning + (fontChar.xadvance || defaultCharWidth);
+ }
+}
+export const methods = {
+ /**
+ * Draws a text on a image on a given boundary
+ * @param font a bitmap font loaded from `Jimp.loadFont` command
+ * @param x the x position to start drawing the text
+ * @param y the y position to start drawing the text
+ * @param text the text to draw (string or object with `text`, `alignmentX`, and/or `alignmentY`)
+ * @example
+ * ```ts
+ * import { Jimp } from "jimp";
+ *
+ * const image = await Jimp.read("test/image.png");
+ * const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK);
+ *
+ * image.print({ font, x: 10, y: 10, text: "Hello world!" });
+ * ```
+ */
+ print(image, { font, ...options }) {
+ let {
+ // eslint-disable-next-line prefer-const
+ x, y, text,
+ // eslint-disable-next-line prefer-const
+ maxWidth = Infinity,
+ // eslint-disable-next-line prefer-const
+ maxHeight = Infinity,
+ // eslint-disable-next-line prefer-const
+ cb = () => { }, } = PrintOptionsSchema.parse(options);
+ let alignmentX;
+ let alignmentY;
+ if (typeof text === "object" &&
+ text.text !== null &&
+ text.text !== undefined) {
+ alignmentX = text.alignmentX || HorizontalAlign.LEFT;
+ alignmentY = text.alignmentY || VerticalAlign.TOP;
+ ({ text } = text);
+ }
+ else {
+ alignmentX = HorizontalAlign.LEFT;
+ alignmentY = VerticalAlign.TOP;
+ text = text.toString();
+ }
+ if (typeof text === "number") {
+ text = text.toString();
+ }
+ if (maxHeight !== Infinity && alignmentY === VerticalAlign.BOTTOM) {
+ y += maxHeight - measureTextHeight(font, text, maxWidth);
+ }
+ else if (maxHeight !== Infinity && alignmentY === VerticalAlign.MIDDLE) {
+ y += maxHeight / 2 - measureTextHeight(font, text, maxWidth) / 2;
+ }
+ const defaultCharWidth = Object.entries(font.chars).find((c) => c[1].xadvance)?.[1].xadvance;
+ if (typeof defaultCharWidth !== "number") {
+ throw new Error("Could not find default character width");
+ }
+ const { lines, longestLine } = splitLines(font, text, maxWidth);
+ lines.forEach((line) => {
+ const lineString = line.join(" ");
+ const alignmentWidth = xOffsetBasedOnAlignment(font, lineString, maxWidth, alignmentX);
+ printText(image, font, x + alignmentWidth, y, lineString, defaultCharWidth);
+ y += font.common.lineHeight;
+ });
+ cb.bind(image)({ x: x + longestLine, y });
+ return image;
+ },
+};
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/index.js.map b/node_modules/@jimp/plugin-print/dist/esm/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..76871634966bdd04fffb9bfa241460b167d77113
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/E,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACnE,cAAc,YAAY,CAAC;AAE3B,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,uCAAuC;IACvC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,uCAAuC;IACvC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,wBAAwB;IACxB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;QACZ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACjC,CAAC,CAAC,MAAM,CAAC;YACP,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YACvC,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;YACpD,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;SACnD,CAAC;KACH,CAA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,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;QAE1C,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.d.ts b/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..650bd5656209184bee81fabf98e14baf7245ba72
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.d.ts
@@ -0,0 +1,134 @@
+import { BmCharacter, BmKerning, BmFont, BmCommonProps } from "./types.js";
+export declare const isWebWorker: boolean;
+export interface LoadedFont {
+ chars: BmCharacter[];
+ kernings: BmKerning[];
+ common: BmCommonProps;
+ info: Record;
+ pages: string[];
+}
+/**
+ *
+ * @param bufferOrUrl A URL to a file or a buffer
+ * @returns
+ */
+export declare function loadBitmapFontData(bufferOrUrl: string | Buffer): Promise;
+type RawFont = Awaited>;
+export type ResolveBmFont = Omit & Pick;
+export declare function processBitmapFont(file: string, font: LoadedFont): Promise<{
+ chars: Record;
+ kernings: Record;
+ pages: ({
+ bitmap: import("@jimp/types").Bitmap;
+ background: number;
+ formats: import("@jimp/types").Format[];
+ mime?: string;
+ inspect(): string;
+ toString(): string;
+ readonly width: number;
+ readonly height: number;
+ getBuffer & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ getBase64 & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ write extends infer T ? T extends Record<"png", "image/png"> ? T extends Record ? M : never : never : never, Options extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T_1 ? T_1 extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T_1 extends Record ? O : never : never : never>(path: `${string}.${Extension}`, options?: Options | undefined): Promise;
+ clone(this: S): S;
+ getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
+ getPixelColor(x: number, y: number): number;
+ setPixelColor(hex: number, x: number, y: number): any;
+ hasAlpha(): boolean;
+ composite(src: I, x?: number, y?: number, options?: {
+ mode?: import("@jimp/core").BlendMode;
+ opacitySource?: number;
+ opacityDest?: number;
+ }): any;
+ scan(f: (x: number, y: number, idx: number) => any): any;
+ scan(x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): any;
+ scanIterator(x?: number, y?: number, w?: number, h?: number): Generator<{
+ x: number;
+ y: number;
+ idx: number;
+ image: any;
+ }, void, unknown>;
+ } & import("@jimp/core").JimpInstanceMethods<{
+ bitmap: import("@jimp/types").Bitmap;
+ background: number;
+ formats: import("@jimp/types").Format[];
+ mime?: string;
+ inspect(): string;
+ toString(): string;
+ readonly width: number;
+ readonly height: number;
+ getBuffer & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ getBase64 & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ write extends infer T ? T extends Record<"png", "image/png"> ? T extends Record ? M : never : never : never, Options extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T_1 ? T_1 extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T_1 extends Record ? O : never : never : never>(path: `${string}.${Extension}`, options?: Options | undefined): Promise;
+ clone(this: S): S;
+ getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
+ getPixelColor(x: number, y: number): number;
+ setPixelColor(hex: number, x: number, y: number): any;
+ hasAlpha(): boolean;
+ composite(src: I, x?: number, y?: number, options?: {
+ mode?: import("@jimp/core").BlendMode;
+ opacitySource?: number;
+ opacityDest?: number;
+ }): any;
+ scan(f: (x: number, y: number, idx: number) => any): any;
+ scan(x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): any;
+ scanIterator(x?: number, y?: number, w?: number, h?: number): Generator<{
+ x: number;
+ y: number;
+ idx: number;
+ image: any;
+ }, void, unknown>;
+ }, import("@jimp/core").JimpPlugin>)[];
+ common: BmCommonProps;
+ info: Record;
+}>;
+export {};
+//# sourceMappingURL=load-bitmap-font.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.d.ts.map b/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..20261a480016e0a2817313dacef4b9a46fa5afe2
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"load-bitmap-font.d.ts","sourceRoot":"","sources":["../../src/load-bitmap-font.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAQ3E,eAAO,MAAM,WAAW,SACoC,CAAC;AAoB7D,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,MAAM,EAAE,aAAa,CAAC;IAEtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AA0CD;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,GAAG,MAAM,GAC3B,OAAO,CAAC,UAAU,CAAC,CA4CrB;AAED,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAE3E,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA4Bqie,CAAC;yBAAsC,CAAC;uBAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAo3R,CAAC;yBAAsC,CAAC;uBAAiC,CAAC;;;;;;;;;;;YAlIzmwB,aAAa;UAEf,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;GA+H1B"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.js b/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.js
new file mode 100644
index 0000000000000000000000000000000000000000..508fb92ca6b3a1eabab3d06a103bd422635ba796
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.js
@@ -0,0 +1,118 @@
+import parseASCII from "parse-bmfont-ascii";
+import parseXML from "parse-bmfont-xml";
+import readBinary from "parse-bmfont-binary";
+import png from "@jimp/js-png";
+import { createJimp } from "@jimp/core";
+import path from "path";
+import xmlPackage from "simple-xml-to-json";
+const { convertXML } = xmlPackage;
+export const isWebWorker = typeof self !== "undefined" && self.document === undefined;
+const CharacterJimp = createJimp({ formats: [png] });
+const HEADER = Buffer.from([66, 77, 70, 3]);
+function isBinary(buf) {
+ if (typeof buf === "string") {
+ return buf.substring(0, 3) === "BMF";
+ }
+ const startOfHeader = buf.slice(0, 4);
+ return (buf.length > 4 &&
+ startOfHeader[0] === HEADER[0] &&
+ startOfHeader[1] === HEADER[1] &&
+ startOfHeader[2] === HEADER[2]);
+}
+function parseFont(file, data) {
+ if (isBinary(data)) {
+ if (typeof data === "string") {
+ data = Buffer.from(data, "binary");
+ }
+ return readBinary(data);
+ }
+ data = data.toString().trim();
+ if (/.json$/.test(file) || data.charAt(0) === "{") {
+ return JSON.parse(data);
+ }
+ if (/.xml$/.test(file) || data.charAt(0) === "<") {
+ return parseXML(data);
+ }
+ return parseASCII(data);
+}
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+function parseNumbersInObject(obj) {
+ for (const key in obj) {
+ try {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ obj[key] = parseInt(obj[key], 10);
+ }
+ catch {
+ // do nothing
+ }
+ if (typeof obj[key] === "object") {
+ parseNumbersInObject(obj[key]);
+ }
+ }
+ return obj;
+}
+/**
+ *
+ * @param bufferOrUrl A URL to a file or a buffer
+ * @returns
+ */
+export async function loadBitmapFontData(bufferOrUrl) {
+ if (isWebWorker && typeof bufferOrUrl === "string") {
+ const res = await fetch(bufferOrUrl);
+ const text = await res.text();
+ const json = convertXML(text);
+ const font = json.font.children.reduce(
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ (acc, i) => ({ ...acc, ...i }), {});
+ const pages = [];
+ const chars = [];
+ const kernings = [];
+ for (let i = 0; i < font.pages.children.length; i++) {
+ const p = font.pages.children[i].page;
+ const id = parseInt(p.id, 10);
+ pages[id] = parseNumbersInObject(p.file);
+ }
+ for (let i = 0; i < font.chars.children.length; i++) {
+ chars.push(parseNumbersInObject(font.chars.children[i].char));
+ }
+ for (let i = 0; i < font.kernings.children.length; i++) {
+ kernings.push(parseNumbersInObject(font.kernings.children[i].kerning));
+ }
+ return {
+ info: font.info,
+ common: font.common,
+ pages,
+ chars,
+ kernings,
+ };
+ }
+ else if (typeof bufferOrUrl === "string") {
+ const res = await fetch(bufferOrUrl);
+ const text = await res.text();
+ return parseFont(bufferOrUrl, text);
+ }
+ else {
+ return parseFont("", bufferOrUrl);
+ }
+}
+export async function processBitmapFont(file, font) {
+ const chars = {};
+ const kernings = {};
+ for (let i = 0; i < font.chars.length; i++) {
+ const char = font.chars[i];
+ chars[String.fromCharCode(char.id)] = char;
+ }
+ for (let i = 0; i < font.kernings.length; i++) {
+ const firstString = String.fromCharCode(font.kernings[i].first);
+ kernings[firstString] = kernings[firstString] || {};
+ kernings[firstString][String.fromCharCode(font.kernings[i].second)] =
+ font.kernings[i].amount;
+ }
+ return {
+ ...font,
+ chars,
+ kernings,
+ pages: await Promise.all(font.pages.map(async (page) => CharacterJimp.read(path.join(path.dirname(file), page)))),
+ };
+}
+//# sourceMappingURL=load-bitmap-font.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.js.map b/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..0bd6fa113183c3a73190f2aba45788af923cde7d
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"load-bitmap-font.js","sourceRoot":"","sources":["../../src/load-bitmap-font.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAE7C,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAE5C,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;AAElC,MAAM,CAAC,MAAM,WAAW,GACtB,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC;AAE7D,MAAM,aAAa,GAAG,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AACrD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAE5C,SAAS,QAAQ,CAAC,GAAoB;IACpC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC;IACvC,CAAC;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AC;IAE/C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC;QAC5B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IAC7C,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9C,MAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAC,KAAK,CAAC,CAAC;QAEjE,QAAQ,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAE,IAAI,EAAE,CAAC;QACrD,QAAQ,CAAC,WAAW,CAAE,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAC,MAAM,CAAC,CAAC;YACnE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,OAAO;QACL,GAAG,IAAI;QACP,KAAK;QACL,QAAQ;QACR,KAAK,EAAE,MAAM,OAAO,CAAC,GAAG,CACtB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAC5B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CACxD,CACF;KACF,CAAC;AACJ,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/load-font.d.ts b/node_modules/@jimp/plugin-print/dist/esm/load-font.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..01415e76ed5f3c523215867c5b69a3244899624f
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/load-font.d.ts
@@ -0,0 +1,131 @@
+/**
+ * Loads a Bitmap Font from a file.
+ * @param file A path or URL to a font file
+ * @returns A collection of Jimp images that can be used to print text
+ * @example
+ * ```ts
+ * import { Jimp, loadFont } from "jimp";
+ * import { SANS_10_BLACK } from "jimp/fonts";
+ *
+ * const font = await loadFont(SANS_10_BLACK);
+ * const image = new Jimp({ width: 200, height: 100, color: 0xffffffff });
+ *
+ * image.print(font, 10, 10, "Hello world!");
+ * ```
+ */
+export declare function loadFont(file: string): Promise<{
+ chars: Record;
+ kernings: Record;
+ pages: ({
+ bitmap: import("@jimp/types").Bitmap;
+ background: number;
+ formats: import("@jimp/types").Format[];
+ mime?: string;
+ inspect(): string;
+ toString(): string;
+ readonly width: number;
+ readonly height: number;
+ getBuffer & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ getBase64 & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ write extends infer T ? T extends Record<"png", "image/png"> ? T extends Record ? M : never : never : never, Options extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T_1 ? T_1 extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T_1 extends Record ? O : never : never : never>(path: `${string}.${Extension}`, options?: Options | undefined): Promise;
+ clone(this: S): S;
+ getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
+ getPixelColor(x: number, y: number): number;
+ setPixelColor(hex: number, x: number, y: number): any;
+ hasAlpha(): boolean;
+ composite(src: I, x?: number, y?: number, options?: {
+ mode?: import("@jimp/core").BlendMode;
+ opacitySource?: number;
+ opacityDest?: number;
+ }): any;
+ scan(f: (x: number, y: number, idx: number) => any): any;
+ scan(x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): any;
+ scanIterator(x?: number, y?: number, w?: number, h?: number): Generator<{
+ x: number;
+ y: number;
+ idx: number;
+ image: any;
+ }, void, unknown>;
+ } & import("@jimp/core").JimpInstanceMethods<{
+ bitmap: import("@jimp/types").Bitmap;
+ background: number;
+ formats: import("@jimp/types").Format[];
+ mime?: string;
+ inspect(): string;
+ toString(): string;
+ readonly width: number;
+ readonly height: number;
+ getBuffer & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ getBase64 & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T ? T extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T extends Record ? O : never : never : never>(mime: ProvidedMimeType, options?: Options | undefined): Promise;
+ write extends infer T ? T extends Record<"png", "image/png"> ? T extends Record ? M : never : never : never, Options extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> extends infer T_1 ? T_1 extends Record<"image/png", Omit & {
+ filterType?: import("@jimp/js-png").PNGFilterType;
+ colorType?: import("@jimp/js-png").PNGColorType;
+ inputColorType?: import("@jimp/js-png").PNGColorType;
+ }> ? T_1 extends Record ? O : never : never : never>(path: `${string}.${Extension}`, options?: Options | undefined): Promise;
+ clone(this: S): S;
+ getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
+ getPixelColor(x: number, y: number): number;
+ setPixelColor(hex: number, x: number, y: number): any;
+ hasAlpha(): boolean;
+ composite(src: I, x?: number, y?: number, options?: {
+ mode?: import("@jimp/core").BlendMode;
+ opacitySource?: number;
+ opacityDest?: number;
+ }): any;
+ scan(f: (x: number, y: number, idx: number) => any): any;
+ scan(x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): any;
+ scanIterator(x?: number, y?: number, w?: number, h?: number): Generator<{
+ x: number;
+ y: number;
+ idx: number;
+ image: any;
+ }, void, unknown>;
+ }, import("@jimp/core").JimpPlugin>)[];
+ common: import("./types.js").BmCommonProps;
+ info: Record;
+}>;
+//# sourceMappingURL=load-font.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/load-font.d.ts.map b/node_modules/@jimp/plugin-print/dist/esm/load-font.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..374ae2f98728b87d8844691c9cb92323f14f7cb6
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/load-font.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"load-font.d.ts","sourceRoot":"","sources":["../../src/load-font.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAcq/kB,CAAC;yBAAsC,CAAC;uBAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAo3R,CAAC;yBAAsC,CAAC;uBAAiC,CAAC;;;;;;;;;;;;;GADvi3B"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/load-font.js b/node_modules/@jimp/plugin-print/dist/esm/load-font.js
new file mode 100644
index 0000000000000000000000000000000000000000..4e03e784297a7784af63f8ba8916a15b756c76bd
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/load-font.js
@@ -0,0 +1,28 @@
+import { isWebWorker, loadBitmapFontData, processBitmapFont, } from "./load-bitmap-font.js";
+/**
+ * Loads a Bitmap Font from a file.
+ * @param file A path or URL to a font file
+ * @returns A collection of Jimp images that can be used to print text
+ * @example
+ * ```ts
+ * import { Jimp, loadFont } from "jimp";
+ * import { SANS_10_BLACK } from "jimp/fonts";
+ *
+ * const font = await loadFont(SANS_10_BLACK);
+ * const image = new Jimp({ width: 200, height: 100, color: 0xffffffff });
+ *
+ * image.print(font, 10, 10, "Hello world!");
+ * ```
+ */
+export async function loadFont(file) {
+ let fileOrBuffer = file;
+ if (typeof window === "undefined" && !isWebWorker) {
+ const { existsSync, promises: fs } = await import("fs");
+ if (existsSync(file)) {
+ fileOrBuffer = await fs.readFile(file);
+ }
+ }
+ const data = await loadBitmapFontData(fileOrBuffer);
+ return processBitmapFont(file, data);
+}
+//# sourceMappingURL=load-font.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/load-font.js.map b/node_modules/@jimp/plugin-print/dist/esm/load-font.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..60df171724b188ea808cbd468ea76b9de5612583
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/load-font.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"load-font.js","sourceRoot":"","sources":["../../src/load-font.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,IAAY;IACzC,IAAI,YAAY,GAAoB,IAAI,CAAC;IAEzC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,WAAW,EAAE,CAAC;QAClD,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;QAExD,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACrB,YAAY,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,kBAAkB,CAAC,YAAY,CAAC,CAAC;IACpD,OAAO,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/measure-text.d.ts b/node_modules/@jimp/plugin-print/dist/esm/measure-text.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..6457b8e1f7eca6cb8fc58857bcb40748f6af6d83
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/measure-text.d.ts
@@ -0,0 +1,8 @@
+import { BmFont } from "./types.js";
+export declare function measureText(font: BmFont, text: string): number;
+export declare function splitLines(font: BmFont, text: string, maxWidth: number): {
+ lines: string[][];
+ longestLine: number;
+};
+export declare function measureTextHeight(font: BmFont, text: string, maxWidth: number): number;
+//# sourceMappingURL=measure-text.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/measure-text.d.ts.map b/node_modules/@jimp/plugin-print/dist/esm/measure-text.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..07d42f71e701a87ad3cda1bd0dd623bec0406e9f
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/measure-text.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"measure-text.d.ts","sourceRoot":"","sources":["../../src/measure-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAoBrD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;EAyDtE;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,UAKjB"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/measure-text.js b/node_modules/@jimp/plugin-print/dist/esm/measure-text.js
new file mode 100644
index 0000000000000000000000000000000000000000..9f1585d13f22a19939353b1bdd3eb38e751e0954
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/measure-text.js
@@ -0,0 +1,70 @@
+export function measureText(font, text) {
+ let x = 0;
+ for (let i = 0; i < text.length; i++) {
+ const char = text[i];
+ const fontChar = font.chars[char];
+ if (fontChar) {
+ const fontKerning = font.kernings[char];
+ const nextChar = text[i + 1];
+ const kerning = fontKerning && nextChar && fontKerning[nextChar]
+ ? fontKerning[nextChar] || 0
+ : 0;
+ x += (fontChar.xadvance || 0) + kerning;
+ }
+ }
+ return x;
+}
+export function splitLines(font, text, maxWidth) {
+ const words = text.replace(/[\r\n]+/g, " \n").split(" ");
+ const lines = [];
+ let currentLine = [];
+ let longestLine = 0;
+ words.forEach((word) => {
+ const wordWidth = measureText(font, word + (words.length > 1 ? " " : ""));
+ // If a word is longer than the allowable width we need to split it across lines.
+ if (wordWidth > maxWidth) {
+ const characterIterator = word[Symbol.iterator]();
+ let current = "";
+ for (const char of characterIterator) {
+ const nextLine = [...currentLine, current + char].join(" ");
+ const length = measureText(font, nextLine);
+ if (length < maxWidth) {
+ current += char;
+ }
+ else if (length > maxWidth) {
+ lines.push([...currentLine, current]);
+ currentLine = [];
+ current = char;
+ }
+ else {
+ lines.push([...currentLine, current + char]);
+ currentLine = [];
+ current = "";
+ }
+ }
+ return;
+ }
+ const line = [...currentLine, word].join(" ");
+ const length = measureText(font, line);
+ if (length <= maxWidth && !word.includes("\n")) {
+ if (length > longestLine) {
+ longestLine = length;
+ }
+ currentLine.push(word);
+ }
+ else {
+ lines.push(currentLine);
+ currentLine = [word.replace("\n", "")];
+ }
+ });
+ lines.push(currentLine);
+ return {
+ lines,
+ longestLine,
+ };
+}
+export function measureTextHeight(font, text, maxWidth) {
+ const { lines } = splitLines(font, text, maxWidth);
+ return lines.length * font.common.lineHeight;
+}
+//# sourceMappingURL=measure-text.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/measure-text.js.map b/node_modules/@jimp/plugin-print/dist/esm/measure-text.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..e8231f5e459350e098550ff5683fa460b3b06dc5
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/measure-text.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"measure-text.js","sourceRoot":"","sources":["../../src/measure-text.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW,CAAC,IAAY,EAAE,IAAY;IACpD,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,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,CAAC,WAAW,CAAC,CAAC;YACxB,WAAW,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAExB,OAAO;QACL,KAAK;QACL,WAAW;KACZ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,IAAY,EACZ,QAAgB;IAEhB,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAEnD,OAAO,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;AAC/C,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/package.json b/node_modules/@jimp/plugin-print/dist/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/@jimp/plugin-print/dist/esm/types.d.ts b/node_modules/@jimp/plugin-print/dist/esm/types.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..7e26494bb4c017d43bc950a225de26094b341bec
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/types.d.ts
@@ -0,0 +1,29 @@
+import { JimpClass } from "@jimp/types";
+export interface BmCharacter {
+ id: number;
+ xadvance: number;
+ width: number;
+ height: number;
+ xoffset: number;
+ yoffset: number;
+ page: number;
+ x: number;
+ y: number;
+}
+export interface BmKerning {
+ [secondString: string]: number;
+ first: number;
+ second: number;
+ amount: number;
+}
+export interface BmCommonProps {
+ lineHeight: number;
+}
+export interface BmFont {
+ chars: Record;
+ kernings: Record;
+ common: BmCommonProps;
+ info: Record;
+ pages: T[];
+}
+//# sourceMappingURL=types.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/types.d.ts.map b/node_modules/@jimp/plugin-print/dist/esm/types.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..07e0f29b274051b45e670717bb98a215b7724aef
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/types.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IACrD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACpC,MAAM,EAAE,aAAa,CAAC;IAEtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE,CAAC,EAAE,CAAC;CACZ"}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/types.js b/node_modules/@jimp/plugin-print/dist/esm/types.js
new file mode 100644
index 0000000000000000000000000000000000000000..718fd38ae40c67ea23b242517cf9919f602c5a3e
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/types.js
@@ -0,0 +1,2 @@
+export {};
+//# sourceMappingURL=types.js.map
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/esm/types.js.map b/node_modules/@jimp/plugin-print/dist/esm/types.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..7b5fff867a5a8de2324d2c0521b7c2292da35535
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/esm/types.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/Apache License.txt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/Apache License.txt
new file mode 100644
index 0000000000000000000000000000000000000000..989e2c59e973a05cfbfe9de678b7f2af777b0713
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/Apache License.txt
@@ -0,0 +1,201 @@
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..1e4c5db0e55eb4c391e580060453dffe5266d7eb
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-10-black/open-sans-10-black.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-10-black/open-sans-10-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..a45929811c6686da2e7352abb6ee850db9749bdf
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-10-black/open-sans-10-black.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..5372da2ae22e46cd918c66d3389da9cc984a0a6d
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-12-black/open-sans-12-black.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-12-black/open-sans-12-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..b84a9d794f99a9bcce64f7ab07ce7daa157a6716
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-12-black/open-sans-12-black.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..2bb22b19b7905691f64fcb06b66542cdcaa2831e
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-black/open-sans-128-black.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-black/open-sans-128-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..60134ac278cbadc481dba40ef3dde06ea1e38c09
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-black/open-sans-128-black.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..5e8811e6ea1343e006dd7071975535d818b46ec8
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-white/open-sans-128-white.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-white/open-sans-128-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..b53b504a3ec2f0a9a5f1ecaf380ec00343caec53
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-128-white/open-sans-128-white.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..8df67a9b50bc33fb92bb4c19764de3c5a4dbf922
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt
@@ -0,0 +1,215 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-14-black/open-sans-14-black.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-14-black/open-sans-14-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..e66461fe506a4804456766c5aa9facae7c6a1690
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-14-black/open-sans-14-black.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..afb2997024a6aa77bd5f6c410b0836b76f169941
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-black/open-sans-16-black.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-black/open-sans-16-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..99171bea1e15b77c06d9734d98b40cd0e5170101
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-black/open-sans-16-black.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..2b6cbe790fc7d4816b90ce7061640b06fca7b11e
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-white/open-sans-16-white.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-white/open-sans-16-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..ccb1e3c9631c4722e892b6bce2fcf14233a648ba
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-16-white/open-sans-16-white.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..f2d9bf4ab43debeb1fc6335f65cb2509890cc983
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-black/open-sans-32-black.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-black/open-sans-32-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..50ff1b41f8c4a84b70d31c0eea5382689b531cde
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-black/open-sans-32-black.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..35c3584d429bb1bb3797d13271201ab0a4ed1276
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-white/open-sans-32-white.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-white/open-sans-32-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..5900c35485554fbab59c5c2eb9c1fb10443d52d0
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-32-white/open-sans-32-white.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..f4580f3c7b095799e287d2ad542b056c5cc53284
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-black/open-sans-64-black.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-black/open-sans-64-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..47af52387de291207b070e198ccc9a408abe5c33
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-black/open-sans-64-black.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..dca72ad3db52645d9f036bd3e1ad8326794d1c64
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-white/open-sans-64-white.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-white/open-sans-64-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..de9a88aa42c486750dacb63efbaace4291eb8853
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-64-white/open-sans-64-white.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..34f0e621b5ced981a8cd887cf9e96311a7431dce
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-black/open-sans-8-black.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-black/open-sans-8-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..b0579858089b532857f2589270200314b5df9c84
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-black/open-sans-8-black.png differ
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..6d43767854778d1fb69be3a8600fa08e29f03dc0
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-white/open-sans-8-white.png b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-white/open-sans-8-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..435f6d5e791c71430c523d46d892475ef73a0985
Binary files /dev/null and b/node_modules/@jimp/plugin-print/dist/fonts/open-sans/open-sans-8-white/open-sans-8-white.png differ
diff --git a/node_modules/@jimp/plugin-print/eslint.config.mjs b/node_modules/@jimp/plugin-print/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..939816d0a4be5f347676861f9592614a0ca07046
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/fonts/open-sans/Apache License.txt b/node_modules/@jimp/plugin-print/fonts/open-sans/Apache License.txt
new file mode 100644
index 0000000000000000000000000000000000000000..989e2c59e973a05cfbfe9de678b7f2af777b0713
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/Apache License.txt
@@ -0,0 +1,201 @@
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..1e4c5db0e55eb4c391e580060453dffe5266d7eb
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..a45929811c6686da2e7352abb6ee850db9749bdf
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..5372da2ae22e46cd918c66d3389da9cc984a0a6d
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..b84a9d794f99a9bcce64f7ab07ce7daa157a6716
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..2bb22b19b7905691f64fcb06b66542cdcaa2831e
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..60134ac278cbadc481dba40ef3dde06ea1e38c09
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..5e8811e6ea1343e006dd7071975535d818b46ec8
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..b53b504a3ec2f0a9a5f1ecaf380ec00343caec53
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..8df67a9b50bc33fb92bb4c19764de3c5a4dbf922
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt
@@ -0,0 +1,215 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..e66461fe506a4804456766c5aa9facae7c6a1690
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..afb2997024a6aa77bd5f6c410b0836b76f169941
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..99171bea1e15b77c06d9734d98b40cd0e5170101
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..2b6cbe790fc7d4816b90ce7061640b06fca7b11e
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..ccb1e3c9631c4722e892b6bce2fcf14233a648ba
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..f2d9bf4ab43debeb1fc6335f65cb2509890cc983
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..50ff1b41f8c4a84b70d31c0eea5382689b531cde
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..35c3584d429bb1bb3797d13271201ab0a4ed1276
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..5900c35485554fbab59c5c2eb9c1fb10443d52d0
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..f4580f3c7b095799e287d2ad542b056c5cc53284
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..47af52387de291207b070e198ccc9a408abe5c33
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..dca72ad3db52645d9f036bd3e1ad8326794d1c64
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..de9a88aa42c486750dacb63efbaace4291eb8853
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..34f0e621b5ced981a8cd887cf9e96311a7431dce
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.png
new file mode 100644
index 0000000000000000000000000000000000000000..b0579858089b532857f2589270200314b5df9c84
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.png differ
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt
new file mode 100644
index 0000000000000000000000000000000000000000..6d43767854778d1fb69be3a8600fa08e29f03dc0
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.png b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.png
new file mode 100644
index 0000000000000000000000000000000000000000..435f6d5e791c71430c523d46d892475ef73a0985
Binary files /dev/null and b/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.png differ
diff --git a/node_modules/@jimp/plugin-print/node_modules/zod/LICENSE b/node_modules/@jimp/plugin-print/node_modules/zod/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..c06579627b432d09779094cd0166b7f37fe51db8
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/README.md b/node_modules/@jimp/plugin-print/node_modules/zod/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..5ffbaa84a76c8873d22bfb83681558ea14f0a421
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/index.cjs b/node_modules/@jimp/plugin-print/node_modules/zod/index.cjs
new file mode 100644
index 0000000000000000000000000000000000000000..62f74c802b220c1e095199b3e4431461032ae461
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/index.d.cts b/node_modules/@jimp/plugin-print/node_modules/zod/index.d.cts
new file mode 100644
index 0000000000000000000000000000000000000000..665bd24d9fbbc120372baccfc26db2a028e0001d
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/index.d.ts b/node_modules/@jimp/plugin-print/node_modules/zod/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..bf6f1643ab4526b97b1eb1a6dcdea48262f70194
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/index.js b/node_modules/@jimp/plugin-print/node_modules/zod/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..bf6f1643ab4526b97b1eb1a6dcdea48262f70194
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/package.json b/node_modules/@jimp/plugin-print/node_modules/zod/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..eedcfb0f8e3343c8ac5ba32e5117a032352a986c
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/index.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..bf6f1643ab4526b97b1eb1a6dcdea48262f70194
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/ZodError.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/ZodError.ts
new file mode 100644
index 0000000000000000000000000000000000000000..6ee33c14a93b8bb8c5fd62fcc19803f843c619e7
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/datetime.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/datetime.ts
new file mode 100644
index 0000000000000000000000000000000000000000..85552c254597cca742ff15351a99b5b862abd63e
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts
new file mode 100644
index 0000000000000000000000000000000000000000..47737e6c382b0bf6b239bc7c147dbb336a20c778
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/index.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..ca81c5bb9e300b4917d46e31fdb87dc4f6146bcc
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/ipv4.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/ipv4.ts
new file mode 100644
index 0000000000000000000000000000000000000000..913ffd4166b7061b1505eb635687ea7eabf403d2
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/object.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/object.ts
new file mode 100644
index 0000000000000000000000000000000000000000..3c1da1022a6e049fe7a6fb6d4fd5cfa5da10d538
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/primitives.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/primitives.ts
new file mode 100644
index 0000000000000000000000000000000000000000..fd61b38fefe0b9c31aa69f5ed247ef2d6dd88cb5
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/realworld.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/realworld.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d64c4f0d0986a4d0ce7b2c6cd394b65fab1ee7d5
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/string.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/string.ts
new file mode 100644
index 0000000000000000000000000000000000000000..6b3d29f94083571f7693a615849758cac5ef8b7f
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/benchmarks/union.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/benchmarks/union.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d716dcef0eb61e1b94ea9b71ee20c093913c2327
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/errors.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/errors.ts
new file mode 100644
index 0000000000000000000000000000000000000000..3c0dae65964dc95c61870d9b28de67b97d6a94fa
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/external.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/external.ts
new file mode 100644
index 0000000000000000000000000000000000000000..f0a4be4c7aa63b363b654384b103396050a06e29
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/helpers/enumUtil.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/helpers/enumUtil.ts
new file mode 100644
index 0000000000000000000000000000000000000000..526b22736af39391898dd888762d2eabe6ed5e04
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/helpers/errorUtil.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/helpers/errorUtil.ts
new file mode 100644
index 0000000000000000000000000000000000000000..319ef6b74c8fd0ffee2fe8ea60edc3d8bada9d0a
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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-print/node_modules/zod/src/v3/helpers/parseUtil.ts b/node_modules/@jimp/plugin-print/node_modules/zod/src/v3/helpers/parseUtil.ts
new file mode 100644
index 0000000000000000000000000000000000000000..1076ad9de1418b0fee118cd210f041060a1e132a
--- /dev/null
+++ b/node_modules/@jimp/plugin-print/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