gemi 0.4.85 → 0.4.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/App.d.ts +1 -1
- package/dist/app/App.d.ts.map +1 -1
- package/dist/app/index.js +1 -141
- package/dist/app/prismaExtension.d.ts +1 -5
- package/dist/app/prismaExtension.d.ts.map +1 -1
- package/dist/bin/index.js +124 -69
- package/dist/chunk-28694e5e949df0ff.js +2 -0
- package/dist/chunk-332553172e3ab961.js +2 -0
- package/dist/chunk-43b1a27bc037bc09.js +2 -0
- package/dist/chunk-519593bc19f7cb9f.js +18 -0
- package/dist/chunk-5806220e55ac164c.js +1 -0
- package/dist/chunk-5f01223b8fbe1ed8.js +2 -0
- package/dist/chunk-6434d2c5758f4125.js +2 -0
- package/dist/chunk-69b5648fcd0f0a18.js +3 -0
- package/dist/{chunk-b99af11a56fdd395.js → chunk-6b18189b2aabf6b7.js} +1 -1
- package/dist/chunk-8e55cff6329b67a9.js +2 -0
- package/dist/chunk-8ee09f1f74206a04.js +1 -1
- package/dist/chunk-8f2c54f2cd43402a.js +2 -0
- package/dist/chunk-9383d727762ecba1.js +2 -0
- package/dist/chunk-b38c0c4618d0dd89.js +2 -0
- package/dist/chunk-b3eca9338a13f510.js +2 -0
- package/dist/chunk-b4cbb4706a35f5d5.js +2 -0
- package/dist/chunk-c160211e5cc4c447.js +2 -0
- package/dist/chunk-c4b0f134a6b82c51.js +2 -0
- package/dist/chunk-cc7158438e52b9ab.js +9 -0
- package/dist/chunk-d0b9873261cd82b7.js +6 -0
- package/dist/{chunk-63e9bc71922dbe80.js → chunk-fa61561237819f16.js} +1 -1
- package/dist/client/index.js +10 -10
- package/dist/facades/index.js +1 -1
- package/dist/kernel/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/services/index.js +1 -10
- package/dist/vite/{index-BDp-rm3S.mjs → index-CePL3kqT.mjs} +15 -11
- package/dist/vite/index.mjs +1 -1
- package/dist/vite/{typescript-x31i_8Ji.mjs → typescript-CaGEH4-o.mjs} +45 -23
- package/package.json +7 -1
- package/dist/app/createFlatApiRoutes.d.ts +0 -12
- package/dist/app/createFlatApiRoutes.d.ts.map +0 -1
- package/dist/chunk-0ddb821fe8124f54.js +0 -9
- package/dist/chunk-2335866508ec8b1b.js +0 -2
- package/dist/chunk-25ee58bc6072bd58.js +0 -2
- package/dist/chunk-2786cd9024d0d164.js +0 -2
- package/dist/chunk-3043d333fa68d342.js +0 -2
- package/dist/chunk-309e27a19cd3a645.js +0 -18
- package/dist/chunk-38315b1e3dd78ca7.js +0 -2
- package/dist/chunk-63c98893e07b1644.js +0 -2
- package/dist/chunk-8b950df276d04054.js +0 -2
- package/dist/chunk-9007899b37535873.js +0 -2
- package/dist/chunk-958e406572d457ca.js +0 -2
- package/dist/chunk-c27a654eada9167e.js +0 -2
- package/dist/chunk-c6ab6f8e07a028ac.js +0 -6
- package/dist/chunk-d16ef78d852a6856.js +0 -1
- package/dist/chunk-da07ce723d8218db.js +0 -3
- package/dist/chunk-f6a80fc55311e0c8.js +0 -2
- package/dist/chunk-f9f264ce0c8e9699.js +0 -2
- package/dist/chunk-ff8cd8fd047cfee5.js +0 -2
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const prismaExtension: (client: any) => {
|
|
2
|
-
$extends: {
|
|
3
|
-
extArgs: import("@prisma/client/runtime/library").InternalArgs<unknown, unknown, {}, unknown>;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
1
|
+
export declare const prismaExtension: (client: any) => import("@prisma/client").PrismaClientExtends<import("@prisma/client/runtime/library").InternalArgs<{}, {}, {}, {}>>;
|
|
6
2
|
//# sourceMappingURL=prismaExtension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prismaExtension.d.ts","sourceRoot":"","sources":["../../app/prismaExtension.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"prismaExtension.d.ts","sourceRoot":"","sources":["../../app/prismaExtension.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,sIAqB1B,CAAC"}
|
package/dist/bin/index.js
CHANGED
|
@@ -972,7 +972,7 @@ var require_react_development = __commonJS((exports, module) => {
|
|
|
972
972
|
exports.useTransition = function() {
|
|
973
973
|
return resolveDispatcher().useTransition();
|
|
974
974
|
};
|
|
975
|
-
exports.version = "19.0.0-rc-
|
|
975
|
+
exports.version = "19.0.0-rc-fb9a90fa48-20240614";
|
|
976
976
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
977
977
|
})();
|
|
978
978
|
});
|
|
@@ -2180,6 +2180,8 @@ var require_comparator = __commonJS((exports, module) => {
|
|
|
2180
2180
|
|
|
2181
2181
|
// ../../node_modules/sharp/node_modules/semver/classes/range.js
|
|
2182
2182
|
var require_range = __commonJS((exports, module) => {
|
|
2183
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
2184
|
+
|
|
2183
2185
|
class Range {
|
|
2184
2186
|
constructor(range, options) {
|
|
2185
2187
|
options = parseOptions(options);
|
|
@@ -2193,13 +2195,13 @@ var require_range = __commonJS((exports, module) => {
|
|
|
2193
2195
|
if (range instanceof Comparator) {
|
|
2194
2196
|
this.raw = range.value;
|
|
2195
2197
|
this.set = [[range]];
|
|
2196
|
-
this.
|
|
2198
|
+
this.formatted = undefined;
|
|
2197
2199
|
return this;
|
|
2198
2200
|
}
|
|
2199
2201
|
this.options = options;
|
|
2200
2202
|
this.loose = !!options.loose;
|
|
2201
2203
|
this.includePrerelease = !!options.includePrerelease;
|
|
2202
|
-
this.raw = range.trim().
|
|
2204
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
2203
2205
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
2204
2206
|
if (!this.set.length) {
|
|
2205
2207
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
@@ -2218,10 +2220,27 @@ var require_range = __commonJS((exports, module) => {
|
|
|
2218
2220
|
}
|
|
2219
2221
|
}
|
|
2220
2222
|
}
|
|
2221
|
-
this.
|
|
2223
|
+
this.formatted = undefined;
|
|
2224
|
+
}
|
|
2225
|
+
get range() {
|
|
2226
|
+
if (this.formatted === undefined) {
|
|
2227
|
+
this.formatted = "";
|
|
2228
|
+
for (let i = 0;i < this.set.length; i++) {
|
|
2229
|
+
if (i > 0) {
|
|
2230
|
+
this.formatted += "||";
|
|
2231
|
+
}
|
|
2232
|
+
const comps = this.set[i];
|
|
2233
|
+
for (let k = 0;k < comps.length; k++) {
|
|
2234
|
+
if (k > 0) {
|
|
2235
|
+
this.formatted += " ";
|
|
2236
|
+
}
|
|
2237
|
+
this.formatted += comps[k].toString().trim();
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
return this.formatted;
|
|
2222
2242
|
}
|
|
2223
2243
|
format() {
|
|
2224
|
-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
2225
2244
|
return this.range;
|
|
2226
2245
|
}
|
|
2227
2246
|
toString() {
|
|
@@ -2551,7 +2570,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
2551
2570
|
module.exports = {
|
|
2552
2571
|
name: "sharp",
|
|
2553
2572
|
description: "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
|
|
2554
|
-
version: "0.33.
|
|
2573
|
+
version: "0.33.5",
|
|
2555
2574
|
author: "Lovell Fuller <npm@lovell.info>",
|
|
2556
2575
|
homepage: "https://sharp.pixelplumbing.com",
|
|
2557
2576
|
contributors: [
|
|
@@ -2638,7 +2657,8 @@ var require_package = __commonJS((exports, module) => {
|
|
|
2638
2657
|
"Mart Jansink <m.jansink@gmail.com>",
|
|
2639
2658
|
"Lachlan Newman <lachnewman007@gmail.com>",
|
|
2640
2659
|
"Dennis Beatty <dennis@dcbeatty.com>",
|
|
2641
|
-
"Ingvar Stepanyan <me@rreverser.com>"
|
|
2660
|
+
"Ingvar Stepanyan <me@rreverser.com>",
|
|
2661
|
+
"Don Denton <don@happycollision.com>"
|
|
2642
2662
|
],
|
|
2643
2663
|
scripts: {
|
|
2644
2664
|
install: "node install/check",
|
|
@@ -2688,56 +2708,58 @@ var require_package = __commonJS((exports, module) => {
|
|
|
2688
2708
|
dependencies: {
|
|
2689
2709
|
color: "^4.2.3",
|
|
2690
2710
|
"detect-libc": "^2.0.3",
|
|
2691
|
-
semver: "^7.6.
|
|
2711
|
+
semver: "^7.6.3"
|
|
2692
2712
|
},
|
|
2693
2713
|
optionalDependencies: {
|
|
2694
|
-
"@img/sharp-darwin-arm64": "0.33.
|
|
2695
|
-
"@img/sharp-darwin-x64": "0.33.
|
|
2696
|
-
"@img/sharp-libvips-darwin-arm64": "1.0.
|
|
2697
|
-
"@img/sharp-libvips-darwin-x64": "1.0.
|
|
2698
|
-
"@img/sharp-libvips-linux-arm": "1.0.
|
|
2699
|
-
"@img/sharp-libvips-linux-arm64": "1.0.
|
|
2700
|
-
"@img/sharp-libvips-linux-s390x": "1.0.
|
|
2701
|
-
"@img/sharp-libvips-linux-x64": "1.0.
|
|
2702
|
-
"@img/sharp-libvips-linuxmusl-arm64": "1.0.
|
|
2703
|
-
"@img/sharp-libvips-linuxmusl-x64": "1.0.
|
|
2704
|
-
"@img/sharp-linux-arm": "0.33.
|
|
2705
|
-
"@img/sharp-linux-arm64": "0.33.
|
|
2706
|
-
"@img/sharp-linux-s390x": "0.33.
|
|
2707
|
-
"@img/sharp-linux-x64": "0.33.
|
|
2708
|
-
"@img/sharp-linuxmusl-arm64": "0.33.
|
|
2709
|
-
"@img/sharp-linuxmusl-x64": "0.33.
|
|
2710
|
-
"@img/sharp-wasm32": "0.33.
|
|
2711
|
-
"@img/sharp-win32-ia32": "0.33.
|
|
2712
|
-
"@img/sharp-win32-x64": "0.33.
|
|
2714
|
+
"@img/sharp-darwin-arm64": "0.33.5",
|
|
2715
|
+
"@img/sharp-darwin-x64": "0.33.5",
|
|
2716
|
+
"@img/sharp-libvips-darwin-arm64": "1.0.4",
|
|
2717
|
+
"@img/sharp-libvips-darwin-x64": "1.0.4",
|
|
2718
|
+
"@img/sharp-libvips-linux-arm": "1.0.5",
|
|
2719
|
+
"@img/sharp-libvips-linux-arm64": "1.0.4",
|
|
2720
|
+
"@img/sharp-libvips-linux-s390x": "1.0.4",
|
|
2721
|
+
"@img/sharp-libvips-linux-x64": "1.0.4",
|
|
2722
|
+
"@img/sharp-libvips-linuxmusl-arm64": "1.0.4",
|
|
2723
|
+
"@img/sharp-libvips-linuxmusl-x64": "1.0.4",
|
|
2724
|
+
"@img/sharp-linux-arm": "0.33.5",
|
|
2725
|
+
"@img/sharp-linux-arm64": "0.33.5",
|
|
2726
|
+
"@img/sharp-linux-s390x": "0.33.5",
|
|
2727
|
+
"@img/sharp-linux-x64": "0.33.5",
|
|
2728
|
+
"@img/sharp-linuxmusl-arm64": "0.33.5",
|
|
2729
|
+
"@img/sharp-linuxmusl-x64": "0.33.5",
|
|
2730
|
+
"@img/sharp-wasm32": "0.33.5",
|
|
2731
|
+
"@img/sharp-win32-ia32": "0.33.5",
|
|
2732
|
+
"@img/sharp-win32-x64": "0.33.5"
|
|
2713
2733
|
},
|
|
2714
2734
|
devDependencies: {
|
|
2715
|
-
"@emnapi/runtime": "^1.
|
|
2716
|
-
"@img/sharp-libvips-dev": "1.0.
|
|
2717
|
-
"@img/sharp-libvips-dev-wasm32": "1.0.
|
|
2718
|
-
"@img/sharp-libvips-win32-ia32": "1.0.
|
|
2719
|
-
"@img/sharp-libvips-win32-x64": "1.0.
|
|
2735
|
+
"@emnapi/runtime": "^1.2.0",
|
|
2736
|
+
"@img/sharp-libvips-dev": "1.0.4",
|
|
2737
|
+
"@img/sharp-libvips-dev-wasm32": "1.0.5",
|
|
2738
|
+
"@img/sharp-libvips-win32-ia32": "1.0.4",
|
|
2739
|
+
"@img/sharp-libvips-win32-x64": "1.0.4",
|
|
2720
2740
|
"@types/node": "*",
|
|
2721
2741
|
async: "^3.2.5",
|
|
2722
2742
|
cc: "^3.0.1",
|
|
2723
|
-
emnapi: "^1.
|
|
2743
|
+
emnapi: "^1.2.0",
|
|
2724
2744
|
"exif-reader": "^2.0.1",
|
|
2725
2745
|
"extract-zip": "^2.0.1",
|
|
2726
2746
|
icc: "^3.0.0",
|
|
2727
|
-
"jsdoc-to-markdown": "^8.0.
|
|
2747
|
+
"jsdoc-to-markdown": "^8.0.3",
|
|
2728
2748
|
"license-checker": "^25.0.1",
|
|
2729
|
-
mocha: "^10.
|
|
2730
|
-
"node-addon-api": "^8.
|
|
2731
|
-
nyc: "^
|
|
2749
|
+
mocha: "^10.7.3",
|
|
2750
|
+
"node-addon-api": "^8.1.0",
|
|
2751
|
+
nyc: "^17.0.0",
|
|
2732
2752
|
prebuild: "^13.0.1",
|
|
2733
2753
|
semistandard: "^17.0.0",
|
|
2734
2754
|
"tar-fs": "^3.0.6",
|
|
2735
|
-
tsd: "^0.31.
|
|
2755
|
+
tsd: "^0.31.1"
|
|
2736
2756
|
},
|
|
2737
2757
|
license: "Apache-2.0",
|
|
2738
2758
|
engines: {
|
|
2739
|
-
node: "^18.17.0 || ^20.3.0 || >=21.0.0"
|
|
2740
|
-
|
|
2759
|
+
node: "^18.17.0 || ^20.3.0 || >=21.0.0"
|
|
2760
|
+
},
|
|
2761
|
+
config: {
|
|
2762
|
+
libvips: ">=8.15.3"
|
|
2741
2763
|
},
|
|
2742
2764
|
funding: {
|
|
2743
2765
|
url: "https://opencollective.com/libvips"
|
|
@@ -2777,8 +2799,8 @@ var require_libvips = __commonJS((exports, module) => {
|
|
|
2777
2799
|
var semverGreaterThanOrEqualTo = require_gte();
|
|
2778
2800
|
var semverSatisfies = require_satisfies();
|
|
2779
2801
|
var detectLibc = import.meta.require("detect-libc");
|
|
2780
|
-
var { engines, optionalDependencies } = require_package();
|
|
2781
|
-
var minimumLibvipsVersionLabelled = process.env.npm_package_config_libvips ||
|
|
2802
|
+
var { config, engines, optionalDependencies } = require_package();
|
|
2803
|
+
var minimumLibvipsVersionLabelled = process.env.npm_package_config_libvips || config.libvips;
|
|
2782
2804
|
var minimumLibvipsVersion = semverCoerce(minimumLibvipsVersionLabelled).version;
|
|
2783
2805
|
var prebuiltPlatforms = [
|
|
2784
2806
|
"darwin-arm64",
|
|
@@ -2903,19 +2925,21 @@ var require_libvips = __commonJS((exports, module) => {
|
|
|
2903
2925
|
return "";
|
|
2904
2926
|
}
|
|
2905
2927
|
};
|
|
2906
|
-
var skipSearch = (status, reason) => {
|
|
2907
|
-
|
|
2928
|
+
var skipSearch = (status, reason, logger) => {
|
|
2929
|
+
if (logger) {
|
|
2930
|
+
logger(`Detected ${reason}, skipping search for globally-installed libvips`);
|
|
2931
|
+
}
|
|
2908
2932
|
return status;
|
|
2909
2933
|
};
|
|
2910
|
-
var useGlobalLibvips = () => {
|
|
2934
|
+
var useGlobalLibvips = (logger) => {
|
|
2911
2935
|
if (Boolean(process.env.SHARP_IGNORE_GLOBAL_LIBVIPS) === true) {
|
|
2912
|
-
return skipSearch(false, "SHARP_IGNORE_GLOBAL_LIBVIPS");
|
|
2936
|
+
return skipSearch(false, "SHARP_IGNORE_GLOBAL_LIBVIPS", logger);
|
|
2913
2937
|
}
|
|
2914
2938
|
if (Boolean(process.env.SHARP_FORCE_GLOBAL_LIBVIPS) === true) {
|
|
2915
|
-
return skipSearch(true, "SHARP_FORCE_GLOBAL_LIBVIPS");
|
|
2939
|
+
return skipSearch(true, "SHARP_FORCE_GLOBAL_LIBVIPS", logger);
|
|
2916
2940
|
}
|
|
2917
2941
|
if (isRosetta()) {
|
|
2918
|
-
return skipSearch(false, "Rosetta");
|
|
2942
|
+
return skipSearch(false, "Rosetta", logger);
|
|
2919
2943
|
}
|
|
2920
2944
|
const globalVipsVersion = globalLibvipsVersion();
|
|
2921
2945
|
return !!globalVipsVersion && semverGreaterThanOrEqualTo(globalVipsVersion, minimumLibvipsVersion);
|
|
@@ -2977,15 +3001,15 @@ var require_sharp = __commonJS((exports, module) => {
|
|
|
2977
3001
|
} else if (prebuiltPlatforms.includes(runtimePlatform)) {
|
|
2978
3002
|
const [os, cpu] = runtimePlatform.split("-");
|
|
2979
3003
|
const libc = os.endsWith("musl") ? " --libc=musl" : "";
|
|
2980
|
-
help.push("- Ensure optional dependencies can be installed:", " npm install --include=optional sharp", "
|
|
3004
|
+
help.push("- Ensure optional dependencies can be installed:", " npm install --include=optional sharp", "- Ensure your package manager supports multi-platform installation:", " See https://sharp.pixelplumbing.com/install#cross-platform", "- Add platform-specific dependencies:", ` npm install --os=${os.replace("musl", "")}${libc} --cpu=${cpu} sharp`);
|
|
2981
3005
|
} else {
|
|
2982
3006
|
help.push(`- Manually install libvips >= ${minimumLibvipsVersion}`, "- Add experimental WebAssembly-based dependencies:", " npm install --cpu=wasm32 sharp", " npm install @img/sharp-wasm32");
|
|
2983
3007
|
}
|
|
2984
3008
|
if (isLinux && /(symbol not found|CXXABI_)/i.test(messages)) {
|
|
2985
3009
|
try {
|
|
2986
|
-
const {
|
|
3010
|
+
const { config } = import.meta.require(`@img/sharp-libvips-${runtimePlatform}/package`);
|
|
2987
3011
|
const libcFound = `${familySync()} ${versionSync()}`;
|
|
2988
|
-
const libcRequires = `${
|
|
3012
|
+
const libcRequires = `${config.musl ? "musl" : "glibc"} ${config.musl || config.glibc}`;
|
|
2989
3013
|
help.push("- Update your OS:", ` Found ${libcFound}`, ` Requires ${libcRequires}`);
|
|
2990
3014
|
} catch (errEngines) {
|
|
2991
3015
|
}
|
|
@@ -3083,6 +3107,8 @@ var require_constructor = __commonJS((exports, module) => {
|
|
|
3083
3107
|
negateAlpha: true,
|
|
3084
3108
|
medianSize: 0,
|
|
3085
3109
|
blurSigma: 0,
|
|
3110
|
+
precision: "integer",
|
|
3111
|
+
minAmpl: 0.2,
|
|
3086
3112
|
sharpenSigma: 0,
|
|
3087
3113
|
sharpenM1: 1,
|
|
3088
3114
|
sharpenM2: 2,
|
|
@@ -5738,11 +5764,34 @@ var require_operation = __commonJS((exports, module) => {
|
|
|
5738
5764
|
}
|
|
5739
5765
|
return this;
|
|
5740
5766
|
};
|
|
5741
|
-
var blur = function(
|
|
5742
|
-
|
|
5767
|
+
var blur = function(options) {
|
|
5768
|
+
let sigma;
|
|
5769
|
+
if (is.number(options)) {
|
|
5770
|
+
sigma = options;
|
|
5771
|
+
} else if (is.plainObject(options)) {
|
|
5772
|
+
if (!is.number(options.sigma)) {
|
|
5773
|
+
throw is.invalidParameterError("options.sigma", "number between 0.3 and 1000", sigma);
|
|
5774
|
+
}
|
|
5775
|
+
sigma = options.sigma;
|
|
5776
|
+
if ("precision" in options) {
|
|
5777
|
+
if (is.string(vipsPrecision[options.precision])) {
|
|
5778
|
+
this.options.precision = vipsPrecision[options.precision];
|
|
5779
|
+
} else {
|
|
5780
|
+
throw is.invalidParameterError("precision", "one of: integer, float, approximate", options.precision);
|
|
5781
|
+
}
|
|
5782
|
+
}
|
|
5783
|
+
if ("minAmplitude" in options) {
|
|
5784
|
+
if (is.number(options.minAmplitude) && is.inRange(options.minAmplitude, 0.001, 1)) {
|
|
5785
|
+
this.options.minAmpl = options.minAmplitude;
|
|
5786
|
+
} else {
|
|
5787
|
+
throw is.invalidParameterError("minAmplitude", "number between 0.001 and 1", options.minAmplitude);
|
|
5788
|
+
}
|
|
5789
|
+
}
|
|
5790
|
+
}
|
|
5791
|
+
if (!is.defined(options)) {
|
|
5743
5792
|
this.options.blurSigma = -1;
|
|
5744
|
-
} else if (is.bool(
|
|
5745
|
-
this.options.blurSigma =
|
|
5793
|
+
} else if (is.bool(options)) {
|
|
5794
|
+
this.options.blurSigma = options ? -1 : 0;
|
|
5746
5795
|
} else if (is.number(sigma) && is.inRange(sigma, 0.3, 1000)) {
|
|
5747
5796
|
this.options.blurSigma = sigma;
|
|
5748
5797
|
} else {
|
|
@@ -5913,20 +5962,17 @@ var require_operation = __commonJS((exports, module) => {
|
|
|
5913
5962
|
return this;
|
|
5914
5963
|
};
|
|
5915
5964
|
var recomb = function(inputMatrix) {
|
|
5916
|
-
if (!Array.isArray(inputMatrix)
|
|
5917
|
-
throw
|
|
5918
|
-
}
|
|
5919
|
-
|
|
5920
|
-
inputMatrix
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
inputMatrix
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
inputMatrix[2][1],
|
|
5928
|
-
inputMatrix[2][2]
|
|
5929
|
-
].map(Number);
|
|
5965
|
+
if (!Array.isArray(inputMatrix)) {
|
|
5966
|
+
throw is.invalidParameterError("inputMatrix", "array", inputMatrix);
|
|
5967
|
+
}
|
|
5968
|
+
if (inputMatrix.length !== 3 && inputMatrix.length !== 4) {
|
|
5969
|
+
throw is.invalidParameterError("inputMatrix", "3x3 or 4x4 array", inputMatrix.length);
|
|
5970
|
+
}
|
|
5971
|
+
const recombMatrix = inputMatrix.flat().map(Number);
|
|
5972
|
+
if (recombMatrix.length !== 9 && recombMatrix.length !== 16) {
|
|
5973
|
+
throw is.invalidParameterError("inputMatrix", "cardinality of 9 or 16", recombMatrix.length);
|
|
5974
|
+
}
|
|
5975
|
+
this.options.recombMatrix = recombMatrix;
|
|
5930
5976
|
return this;
|
|
5931
5977
|
};
|
|
5932
5978
|
var modulate = function(options) {
|
|
@@ -5965,6 +6011,11 @@ var require_operation = __commonJS((exports, module) => {
|
|
|
5965
6011
|
};
|
|
5966
6012
|
var color = require_color();
|
|
5967
6013
|
var is = require_is();
|
|
6014
|
+
var vipsPrecision = {
|
|
6015
|
+
integer: "integer",
|
|
6016
|
+
float: "float",
|
|
6017
|
+
approximate: "approximate"
|
|
6018
|
+
};
|
|
5968
6019
|
module.exports = function(Sharp) {
|
|
5969
6020
|
Object.assign(Sharp.prototype, {
|
|
5970
6021
|
rotate,
|
|
@@ -7059,6 +7110,10 @@ var require_utility = __commonJS((exports, module) => {
|
|
|
7059
7110
|
}
|
|
7060
7111
|
}
|
|
7061
7112
|
versions.sharp = require_package().version;
|
|
7113
|
+
if (versions.heif && format.heif) {
|
|
7114
|
+
format.heif.input.fileSuffix = [".avif"];
|
|
7115
|
+
format.heif.output.alias = ["avif"];
|
|
7116
|
+
}
|
|
7062
7117
|
cache(true);
|
|
7063
7118
|
if (detectLibc.familySync() === detectLibc.GLIBC && !sharp._isUsingJemalloc()) {
|
|
7064
7119
|
sharp.concurrency(1);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as ee} from"./chunk-24a86f8f5ddc0cbd.js";var te=ee((re,T)=>{var A,I,R,P,N,D,C,F,L,H,M,G,U,S,j,W,V,B,E,Y,K,q,z,Q,J,X,Z,$,g,k,x;(function(f){var O=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(b){f(w(O,w(b)))});else if(typeof T==="object"&&typeof re==="object")f(w(O,w(re)));else f(w(O));function w(b,e){if(b!==O)if(typeof Object.create==="function")Object.defineProperty(b,"__esModule",{value:!0});else b.__esModule=!0;return function(t,r){return b[t]=e?e(t,r):r}}})(function(f){var O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};A=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");O(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e},R=function(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)if(t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o]))r[n[o]]=e[n[o]]}return r},P=function(e,t,r,n){var o=arguments.length,a=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)if(i=e[u])a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a;return o>3&&a&&Object.defineProperty(t,r,a),a},N=function(e,t){return function(r,n){t(r,n,e)}},D=function(e,t,r,n,o,a){function i(v){if(v!==void 0&&typeof v!=="function")throw new TypeError("Function expected");return v}var u=n.kind,_=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),y,m=!1;for(var s=r.length-1;s>=0;s--){var p={};for(var d in n)p[d]=d==="access"?{}:n[d];for(var d in n.access)p.access[d]=n.access[d];p.addInitializer=function(v){if(m)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(v||null))};var h=r[s](u==="accessor"?{get:l.get,set:l.set}:l[_],p);if(u==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(y=i(h.get))l.get=y;if(y=i(h.set))l.set=y;if(y=i(h.init))o.unshift(y)}else if(y=i(h))if(u==="field")o.unshift(y);else l[_]=y}if(c)Object.defineProperty(c,n.name,l);m=!0},C=function(e,t,r){var n=arguments.length>2;for(var o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0},F=function(e){return typeof e==="symbol"?e:"".concat(e)},L=function(e,t,r){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})},H=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)},M=function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function u(l){try{c(n.next(l))}catch(y){i(y)}}function _(l){try{c(n.throw(l))}catch(y){i(y)}}function c(l){l.done?a(l.value):o(l.value).then(u,_)}c((n=n.apply(e,t||[])).next())})},G=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(l){return _([c,l])}}function _(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(r=0)),r)try{if(n=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;if(o=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if((a=r.trys,!(a=a.length>0&&a[a.length-1]))&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}if(a[2])r.ops.pop();r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],o=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},U=function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))g(t,e,r)},g=Object.create?function(e,t,r,n){if(n===void 0)n=r;var o=Object.getOwnPropertyDescriptor(t,r);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable))o={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,o)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]},S=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},j=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{while((t===void 0||t-- >0)&&!(o=n.next()).done)a.push(o.value)}catch(u){i={error:u}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(i)throw i.error}}return a},W=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(j(arguments[t]));return e},V=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},B=function(e,t,r){if(r||arguments.length===2){for(var n=0,o=t.length,a;n<o;n++)if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))},E=function(e){return this instanceof E?(this.v=e,this):new E(e)},Y=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,a=[];return o=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(s){return function(p){return Promise.resolve(p).then(s,y)}}function u(s,p){if(n[s]){if(o[s]=function(d){return new Promise(function(h,v){a.push([s,d,h,v])>1||_(s,d)})},p)o[s]=p(o[s])}}function _(s,p){try{c(n[s](p))}catch(d){m(a[0][3],d)}}function c(s){s.value instanceof E?Promise.resolve(s.value.v).then(l,y):m(a[0][2],s)}function l(s){_("next",s)}function y(s){_("throw",s)}function m(s,p){if(s(p),a.shift(),a.length)_(a[0][0],a[0][1])}},K=function(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,a){t[o]=e[o]?function(i){return(r=!r)?{value:E(e[o](i)),done:!1}:a?a(i):i}:a}},q=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof S==="function"?S(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(i){return new Promise(function(u,_){i=e[a](i),o(u,_,i.done,i.value)})}}function o(a,i,u,_){Promise.resolve(_).then(function(c){a({value:c,done:u})},i)}},z=function(e,t){if(Object.defineProperty)Object.defineProperty(e,"raw",{value:t});else e.raw=t;return e};var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Q=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))g(t,e,r)}return w(t,e),t},J=function(e){return e&&e.__esModule?e:{default:e}},X=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Z=function(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r},$=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)},k=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(n=t[Symbol.dispose],r)o=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(o)n=function(){try{o.call(this)}catch(a){return Promise.reject(a)}};e.stack.push({value:t,dispose:n,async:r})}else if(r)e.stack.push({async:!0});return t};var b=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};x=function(e){function t(a){e.error=e.hasError?new b(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var r,n=0;function o(){while(r=e.stack.pop())try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(o,function(i){return t(i),o()})}else n|=1}catch(i){t(i)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()},f("__extends",A),f("__assign",I),f("__rest",R),f("__decorate",P),f("__param",N),f("__esDecorate",D),f("__runInitializers",C),f("__propKey",F),f("__setFunctionName",L),f("__metadata",H),f("__awaiter",M),f("__generator",G),f("__exportStar",U),f("__createBinding",g),f("__values",S),f("__read",j),f("__spread",W),f("__spreadArrays",V),f("__spreadArray",B),f("__await",E),f("__asyncGenerator",Y),f("__asyncDelegator",K),f("__asyncValues",q),f("__makeTemplateObject",z),f("__importStar",Q),f("__importDefault",J),f("__classPrivateFieldGet",X),f("__classPrivateFieldSet",Z),f("__classPrivateFieldIn",$),f("__addDisposableResource",k),f("__disposeResources",x)})});
|
|
2
|
+
export{te as M};
|