decord/source/12067_cached.js
2026-07-24 07:16:23 +00:00

202 lines
9.1 KiB
JavaScript

// Module ID: 12067
// Function ID: 93879
// Name: cached
// Dependencies: [12039]
// Module 12067 (cached)
const self = this;
let self2 = this;
if (this) {
self2 = self.__createBinding;
}
if (self2) {
let __setModuleDefault = self;
if (self) {
__setModuleDefault = self.__setModuleDefault;
}
if (__setModuleDefault) {
let fn = self;
if (self) {
fn = self.__importStar;
}
if (!fn) {
fn = (__esModule) => {
if (__esModule) {
if (__esModule.__esModule) {
return __esModule;
}
}
const obj = {};
if (null != __esModule) {
for (const key10009 in arg0) {
let tmp7 = key10009;
let callResult = "default" !== key10009;
if (callResult) {
let _Object = Object;
callResult = hasOwnProperty.call(arg0, key10009);
}
if (!callResult) {
continue;
} else {
let tmp4 = self2;
let tmp5 = self2(obj, arg0, key10009);
continue;
}
continue;
}
}
__setModuleDefault(obj, __esModule);
return obj;
};
}
const _Object3 = Object;
let obj = { value: true };
exports.default = function default_1() {
return { localeError: error() };
};
let closure_2 = fn(require("cached"));
function error() {
function getSizing(arg0) {
let tmp2 = null;
if (null != table[arg0]) {
tmp2 = tmp;
}
return tmp2;
}
let closure_0 = { string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" }, file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" }, array: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" }, set: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" } };
let closure_1 = { regex: "\u5165\u529B\u5024", email: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9", url: "URL", emoji: "\u7D75\u6587\u5B57", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO\u65E5\u6642", date: "ISO\u65E5\u4ED8", time: "ISO\u6642\u523B", duration: "ISO\u671F\u9593", ipv4: "IPv4\u30A2\u30C9\u30EC\u30B9", ipv6: "IPv6\u30A2\u30C9\u30EC\u30B9", cidrv4: "IPv4\u7BC4\u56F2", cidrv6: "IPv6\u7BC4\u56F2", base64: "base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217", base64url: "base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217", json_string: "JSON\u6587\u5B57\u5217", e164: "E.164\u756A\u53F7", jwt: "JWT", template_literal: "\u5165\u529B\u5024" };
let closure_2 = { nan: "NaN", number: "\u6570\u5024", array: "\u914D\u5217" };
return (code) => {
let minimum;
let origin;
code = code.code;
if ("invalid_type" === code) {
let expected = closure_2[code.expected];
if (null == expected) {
expected = code.expected;
}
const parsedTypeResult = closure_2.parsedType(code.input);
let tmp51 = parsedTypeResult;
if (null != closure_2[parsedTypeResult]) {
tmp51 = tmp50;
}
if (obj.test(code.expected)) {
const _HermesInternal17 = HermesInternal;
let combined = "\u7121\u52B9\u306A\u5165\u529B: instanceof " + code.expected + "\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001" + tmp51 + "\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F";
} else {
const _HermesInternal16 = HermesInternal;
combined = "\u7121\u52B9\u306A\u5165\u529B: " + expected + "\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001" + tmp51 + "\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F";
}
return combined;
} else if ("invalid_value" === code) {
if (1 === code.values.length) {
const _HermesInternal15 = HermesInternal;
let combined1 = "\u7121\u52B9\u306A\u5165\u529B: " + closure_2.stringifyPrimitive(code.values[0]) + "\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F";
} else {
const _HermesInternal14 = HermesInternal;
combined1 = "\u7121\u52B9\u306A\u9078\u629E: " + closure_2.joinValues(code.values, "\u3001") + "\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
}
return combined1;
} else if ("too_big" === code) {
let str33 = "\u3088\u308A\u5C0F\u3055\u3044";
if (code.inclusive) {
str33 = "\u4EE5\u4E0B\u3067\u3042\u308B";
}
const tmp26 = getSizing(code.origin);
const origin2 = code.origin;
let str34 = "\u5024";
if (tmp26) {
if (tmp28) {
str34 = origin2;
}
let str = code.maximum.toString();
const unit = tmp26.unit;
let str40 = "\u8981\u7D20";
if (null != unit) {
str40 = unit;
}
const _HermesInternal13 = HermesInternal;
let combined2 = "\u5927\u304D\u3059\u304E\u308B\u5024: " + str34 + "\u306F" + str + str40 + str33 + "\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
const str39 = code.maximum;
} else {
let tmp29 = str34;
if (tmp28) {
tmp29 = origin2;
}
const _HermesInternal12 = HermesInternal;
combined2 = "\u5927\u304D\u3059\u304E\u308B\u5024: " + tmp29 + "\u306F" + code.maximum.toString() + str33 + "\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
const str35 = code.maximum;
}
return combined2;
} else if ("too_small" === code) {
let str26 = "\u3088\u308A\u5927\u304D\u3044";
if (code.inclusive) {
str26 = "\u4EE5\u4E0A\u3067\u3042\u308B";
}
const tmp15 = getSizing(code.origin);
({ origin, minimum } = code);
const str1 = minimum.toString();
if (tmp15) {
const _HermesInternal11 = HermesInternal;
let combined3 = "\u5C0F\u3055\u3059\u304E\u308B\u5024: " + origin + "\u306F" + str1 + tmp15.unit + str26 + "\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
} else {
const _HermesInternal10 = HermesInternal;
combined3 = "\u5C0F\u3055\u3059\u304E\u308B\u5024: " + origin + "\u306F" + str1 + str26 + "\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
}
return combined3;
} else if ("invalid_format" === code) {
if ("starts_with" === code.format) {
const _HermesInternal9 = HermesInternal;
let combined4 = "\u7121\u52B9\u306A\u6587\u5B57\u5217: \"" + code.prefix + "\"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
} else if ("ends_with" === code.format) {
const _HermesInternal8 = HermesInternal;
combined4 = "\u7121\u52B9\u306A\u6587\u5B57\u5217: \"" + code.suffix + "\"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
} else if ("includes" === code.format) {
const _HermesInternal7 = HermesInternal;
combined4 = "\u7121\u52B9\u306A\u6587\u5B57\u5217: \"" + code.includes + "\"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
} else if ("regex" === code.format) {
const _HermesInternal6 = HermesInternal;
combined4 = "\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3" + code.pattern + "\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
} else {
let format = table2[code.format];
if (null == format) {
format = code.format;
}
const _HermesInternal5 = HermesInternal;
combined4 = "\u7121\u52B9\u306A" + format;
}
return combined4;
} else if ("not_multiple_of" === code) {
const _HermesInternal4 = HermesInternal;
return "\u7121\u52B9\u306A\u6570\u5024: " + code.divisor + "\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059";
} else if ("unrecognized_keys" === code) {
let str9 = "";
if (code.keys.length > 1) {
str9 = "\u7FA4";
}
const _HermesInternal3 = HermesInternal;
return "\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC" + str9 + ": " + closure_2.joinValues(code.keys, "\u3001");
} else {
str = "invalid_key";
if ("invalid_key" === code) {
const _HermesInternal2 = HermesInternal;
return "" + code.origin + "\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC";
} else {
if ("invalid_union" !== code) {
if ("invalid_element" === code) {
const _HermesInternal = HermesInternal;
return "" + code.origin + "\u5185\u306E\u7121\u52B9\u306A\u5024";
}
}
return "\u7121\u52B9\u306A\u5165\u529B";
}
}
};
}
module.exports = exports.default;
} else {
const _Object2 = Object;
}
} else {
let _Object = Object;
}