decord/source/12059_cached.js

218 lines
8.3 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 12059
2026-07-25 08:10:48 +00:00
// Function ID: 93855
2026-07-23 10:11:24 +00:00
// Name: cached
2026-07-25 08:10:48 +00:00
// Dependencies: [12015]
2026-07-23 10:11:24 +00:00
// Module 12059 (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;
}
2026-07-25 08:10:48 +00:00
let closure_0 = { string: { unit: "tecken", verb: "att ha" }, file: { unit: "bytes", verb: "att ha" }, array: { unit: "objekt", verb: "att inneh\u00E5lla" }, set: { unit: "objekt", verb: "att inneh\u00E5lla" } };
let closure_1 = { regex: "regulj\u00E4rt uttryck", email: "e-postadress", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-datum och tid", date: "ISO-datum", time: "ISO-tid", duration: "ISO-varaktighet", ipv4: "IPv4-intervall", ipv6: "IPv6-intervall", cidrv4: "IPv4-spektrum", cidrv6: "IPv6-spektrum", base64: "base64-kodad str\u00E4ng", base64url: "base64url-kodad str\u00E4ng", json_string: "JSON-str\u00E4ng", e164: "E.164-nummer", jwt: "JWT", template_literal: "mall-literal" };
let closure_2 = { nan: "NaN", number: "antal", array: "lista" };
2026-07-23 10:11:24 +00:00
return (code) => {
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);
2026-07-25 08:10:48 +00:00
let tmp54 = parsedTypeResult;
2026-07-23 10:11:24 +00:00
if (null != closure_2[parsedTypeResult]) {
2026-07-25 08:10:48 +00:00
tmp54 = tmp53;
2026-07-23 10:11:24 +00:00
}
if (obj.test(code.expected)) {
const _HermesInternal17 = HermesInternal;
2026-07-25 08:10:48 +00:00
let combined = "Ogiltig inmatning: f\u00F6rv\u00E4ntat instanceof " + code.expected + ", fick " + tmp54;
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal16 = HermesInternal;
2026-07-25 08:10:48 +00:00
combined = "Ogiltig inmatning: f\u00F6rv\u00E4ntat " + expected + ", fick " + tmp54;
2026-07-23 10:11:24 +00:00
}
return combined;
} else if ("invalid_value" === code) {
if (1 === code.values.length) {
const _HermesInternal15 = HermesInternal;
2026-07-25 08:10:48 +00:00
let combined1 = "Ogiltig inmatning: f\u00F6rv\u00E4ntat " + closure_2.stringifyPrimitive(code.values[0]);
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal14 = HermesInternal;
2026-07-25 08:10:48 +00:00
combined1 = "Ogiltigt val: f\u00F6rv\u00E4ntade en av " + closure_2.joinValues(code.values, "|");
2026-07-23 10:11:24 +00:00
}
return combined1;
} else if ("too_big" === code) {
2026-07-25 08:10:48 +00:00
let str33 = "<";
2026-07-23 10:11:24 +00:00
if (code.inclusive) {
2026-07-25 08:10:48 +00:00
str33 = "<=";
2026-07-23 10:11:24 +00:00
}
2026-07-25 08:10:48 +00:00
const tmp29 = getSizing(code.origin);
const origin4 = code.origin;
let str34 = "v\u00E4rdet";
if (tmp29) {
if (tmp31) {
str34 = origin4;
2026-07-23 10:11:24 +00:00
}
let str = code.maximum.toString();
2026-07-25 08:10:48 +00:00
const unit = tmp29.unit;
let str39 = "element";
2026-07-23 10:11:24 +00:00
if (null != unit) {
2026-07-25 08:10:48 +00:00
str39 = unit;
2026-07-23 10:11:24 +00:00
}
const _HermesInternal13 = HermesInternal;
2026-07-25 08:10:48 +00:00
let combined2 = "F\u00F6r stor(t): f\u00F6rv\u00E4ntade " + str34 + " att ha " + str33 + str + " " + str39;
const str38 = code.maximum;
2026-07-23 10:11:24 +00:00
} else {
2026-07-25 08:10:48 +00:00
let tmp32 = str34;
if (tmp31) {
tmp32 = origin4;
2026-07-23 10:11:24 +00:00
}
const _HermesInternal12 = HermesInternal;
2026-07-25 08:10:48 +00:00
combined2 = "F\u00F6r stor(t): f\u00F6rv\u00E4ntat " + tmp32 + " att ha " + str33 + code.maximum.toString();
const str35 = code.maximum;
2026-07-23 10:11:24 +00:00
}
return combined2;
} else if ("too_small" === code) {
2026-07-25 08:10:48 +00:00
let str24 = ">";
2026-07-23 10:11:24 +00:00
if (code.inclusive) {
2026-07-25 08:10:48 +00:00
str24 = ">=";
2026-07-23 10:11:24 +00:00
}
2026-07-24 07:16:23 +00:00
const tmp17 = getSizing(code.origin);
2026-07-25 08:10:48 +00:00
const origin3 = code.origin;
let str25 = "v\u00E4rdet";
2026-07-24 07:16:23 +00:00
if (tmp17) {
2026-07-25 08:10:48 +00:00
if (tmp19) {
str25 = origin3;
}
2026-07-23 10:11:24 +00:00
const _HermesInternal11 = HermesInternal;
2026-07-25 08:10:48 +00:00
let combined3 = "F\u00F6r lite(t): f\u00F6rv\u00E4ntade " + str25 + " att ha " + str24 + code.minimum.toString() + " " + tmp17.unit;
2026-07-24 07:16:23 +00:00
const str29 = code.minimum;
2026-07-23 10:11:24 +00:00
} else {
2026-07-25 08:10:48 +00:00
let tmp20 = str25;
if (tmp19) {
tmp20 = origin3;
}
2026-07-23 10:11:24 +00:00
const _HermesInternal10 = HermesInternal;
2026-07-25 08:10:48 +00:00
combined3 = "F\u00F6r lite(t): f\u00F6rv\u00E4ntade " + tmp20 + " att ha " + str24 + code.minimum.toString();
2026-07-24 07:16:23 +00:00
const str26 = code.minimum;
2026-07-23 10:11:24 +00:00
}
return combined3;
} else if ("invalid_format" === code) {
if ("starts_with" === code.format) {
const _HermesInternal9 = HermesInternal;
2026-07-25 08:10:48 +00:00
let combined4 = "Ogiltig str\u00E4ng: m\u00E5ste b\u00F6rja med \"" + code.prefix + "\"";
2026-07-23 10:11:24 +00:00
} else if ("ends_with" === code.format) {
const _HermesInternal8 = HermesInternal;
2026-07-25 08:10:48 +00:00
combined4 = "Ogiltig str\u00E4ng: m\u00E5ste sluta med \"" + code.suffix + "\"";
2026-07-23 10:11:24 +00:00
} else if ("includes" === code.format) {
const _HermesInternal7 = HermesInternal;
2026-07-25 08:10:48 +00:00
combined4 = "Ogiltig str\u00E4ng: m\u00E5ste inneh\u00E5lla \"" + code.includes + "\"";
2026-07-23 10:11:24 +00:00
} else if ("regex" === code.format) {
const _HermesInternal6 = HermesInternal;
2026-07-25 08:10:48 +00:00
combined4 = "Ogiltig str\u00E4ng: m\u00E5ste matcha m\u00F6nstret \"" + code.pattern + "\"";
2026-07-23 10:11:24 +00:00
} else {
let format = table2[code.format];
if (null == format) {
format = code.format;
}
const _HermesInternal5 = HermesInternal;
2026-07-25 08:10:48 +00:00
combined4 = "Ogiltig(t) " + format;
2026-07-23 10:11:24 +00:00
}
return combined4;
} else if ("not_multiple_of" === code) {
const _HermesInternal4 = HermesInternal;
2026-07-25 08:10:48 +00:00
return "Ogiltigt tal: m\u00E5ste vara en multipel av " + code.divisor;
2026-07-23 10:11:24 +00:00
} else if ("unrecognized_keys" === code) {
2026-07-25 08:10:48 +00:00
let str8 = "Ok\u00E4nd nyckel";
2026-07-24 07:16:23 +00:00
if (code.keys.length > 1) {
2026-07-25 08:10:48 +00:00
str8 = "Ok\u00E4nda nycklar";
2026-07-24 07:16:23 +00:00
}
2026-07-23 10:11:24 +00:00
const _HermesInternal3 = HermesInternal;
2026-07-25 08:10:48 +00:00
return "" + str8 + ": " + closure_2.joinValues(code.keys, ", ");
} else if ("invalid_key" === code) {
const origin2 = code.origin;
let str6 = "v\u00E4rdet";
if (null != origin2) {
str6 = origin2;
}
const _HermesInternal2 = HermesInternal;
return "Ogiltig nyckel i " + str6;
2026-07-23 10:11:24 +00:00
} else {
2026-07-25 08:10:48 +00:00
str = "invalid_union";
if ("invalid_union" !== code) {
if ("invalid_element" === code) {
const origin = code.origin;
let str3 = "v\u00E4rdet";
if (null != origin) {
str3 = origin;
2026-07-24 07:16:23 +00:00
}
2026-07-25 08:10:48 +00:00
const _HermesInternal = HermesInternal;
return "Ogiltigt v\u00E4rde i " + str3;
2026-07-24 07:16:23 +00:00
}
2026-07-23 10:11:24 +00:00
}
2026-07-25 08:10:48 +00:00
return "Ogiltig input";
2026-07-23 10:11:24 +00:00
}
};
}
module.exports = exports.default;
} else {
const _Object2 = Object;
}
} else {
let _Object = Object;
}