2026-07-24 07:16:23 +00:00
// Module ID: 12055
2026-07-25 08:10:48 +00:00
// Function ID: 93810
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
2026-07-24 07:16:23 +00:00
// Module 12055 (cached)
2026-07-23 10:11:24 +00:00
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 : "znak\u00F3w" , verb : "mie\u0107" } , file : { unit : "bajt\u00F3w" , verb : "mie\u0107" } , array : { unit : "element\u00F3w" , verb : "mie\u0107" } , set : { unit : "element\u00F3w" , verb : "mie\u0107" } } ;
let closure _1 = { regex : "wyra\u017Cenie" , email : "adres email" , 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 : "data i godzina w formacie ISO" , date : "data w formacie ISO" , time : "godzina w formacie ISO" , duration : "czas trwania ISO" , ipv4 : "adres IPv4" , ipv6 : "adres IPv6" , cidrv4 : "zakres IPv4" , cidrv6 : "zakres IPv6" , base64 : "ci\u0105g znak\u00F3w zakodowany w formacie base64" , base64url : "ci\u0105g znak\u00F3w zakodowany w formacie base64url" , json _string : "ci\u0105g znak\u00F3w w formacie JSON" , e164 : "liczba E.164" , jwt : "JWT" , template _literal : "wej\u015Bcie" } ;
let closure _2 = { nan : "NaN" , number : "liczba" , array : "tablica" } ;
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 tmp55 = parsedTypeResult ;
2026-07-23 10:11:24 +00:00
if ( null != closure _2 [ parsedTypeResult ] ) {
2026-07-25 08:10:48 +00:00
tmp55 = tmp54 ;
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 = "Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof " + code . expected + ", otrzymano " + tmp55 ;
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal16 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined = "Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano " + expected + ", otrzymano " + tmp55 ;
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 = "Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano " + 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 = "Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci " + 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 str32 = "<" ;
2026-07-23 10:11:24 +00:00
if ( code . inclusive ) {
2026-07-25 08:10:48 +00:00
str32 = "<=" ;
2026-07-23 10:11:24 +00:00
}
2026-07-25 08:10:48 +00:00
const tmp30 = getSizing ( code . origin ) ;
2026-07-23 10:11:24 +00:00
const origin2 = code . origin ;
2026-07-25 08:10:48 +00:00
let str33 = "warto\u015B\u0107" ;
if ( tmp30 ) {
if ( tmp32 ) {
str33 = origin2 ;
2026-07-23 10:11:24 +00:00
}
let str = code . maximum . toString ( ) ;
2026-07-25 08:10:48 +00:00
const unit2 = tmp30 . unit ;
let str38 = "element\u00F3w" ;
if ( null != unit2 ) {
str38 = unit2 ;
2026-07-23 10:11:24 +00:00
}
const _HermesInternal13 = HermesInternal ;
2026-07-25 08:10:48 +00:00
let combined2 = "Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce " + str33 + " b\u0119dzie mie\u0107 " + str32 + str + " " + str38 ;
const str37 = code . maximum ;
2026-07-23 10:11:24 +00:00
} else {
2026-07-25 08:10:48 +00:00
let tmp33 = str33 ;
if ( tmp32 ) {
tmp33 = origin2 ;
2026-07-23 10:11:24 +00:00
}
const _HermesInternal12 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined2 = "Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce " + tmp33 + " b\u0119dzie wynosi\u0107 " + str32 + code . maximum . toString ( ) ;
const str34 = 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 str22 = ">" ;
2026-07-23 10:11:24 +00:00
if ( code . inclusive ) {
2026-07-25 08:10:48 +00:00
str22 = ">=" ;
2026-07-23 10:11:24 +00:00
}
2026-07-25 08:10:48 +00:00
const tmp15 = getSizing ( code . origin ) ;
const origin = code . origin ;
let str23 = "warto\u015B\u0107" ;
if ( tmp15 ) {
if ( tmp17 ) {
str23 = origin ;
}
const str1 = code . minimum . toString ( ) ;
const unit = tmp15 . unit ;
let str28 = "element\u00F3w" ;
if ( null != unit ) {
str28 = unit ;
}
2026-07-23 10:11:24 +00:00
const _HermesInternal11 = HermesInternal ;
2026-07-25 08:10:48 +00:00
let combined3 = "Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce " + str23 + " b\u0119dzie mie\u0107 " + str22 + str1 + " " + str28 ;
const str27 = code . minimum ;
2026-07-23 10:11:24 +00:00
} else {
2026-07-25 08:10:48 +00:00
let tmp18 = str23 ;
if ( tmp17 ) {
tmp18 = origin ;
}
2026-07-23 10:11:24 +00:00
const _HermesInternal10 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined3 = "Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce " + tmp18 + " b\u0119dzie wynosi\u0107 " + str22 + code . minimum . toString ( ) ;
const str24 = 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 = "Nieprawid\u0142owy ci\u0105g znak\u00F3w: musi zaczyna\u0107 si\u0119 od \"" + 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 = "Nieprawid\u0142owy ci\u0105g znak\u00F3w: musi ko\u0144czy\u0107 si\u0119 na \"" + 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 = "Nieprawid\u0142owy ci\u0105g znak\u00F3w: musi zawiera\u0107 \"" + 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 = "Nieprawid\u0142owy ci\u0105g znak\u00F3w: musi odpowiada\u0107 wzorcowi " + 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 = "Nieprawid\u0142ow(y/a/e) " + 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 "Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 " + code . divisor ;
2026-07-23 10:11:24 +00:00
} else if ( "unrecognized_keys" === code ) {
let str7 = "" ;
if ( code . keys . length > 1 ) {
2026-07-25 08:10:48 +00:00
str7 = "s" ;
2026-07-23 10:11:24 +00:00
}
const _HermesInternal3 = HermesInternal ;
2026-07-25 08:10:48 +00:00
return "Nierozpoznane klucze" + str7 + ": " + closure _2 . joinValues ( code . keys , ", " ) ;
2026-07-23 10:11:24 +00:00
} else {
str = "invalid_key" ;
if ( "invalid_key" === code ) {
const _HermesInternal2 = HermesInternal ;
2026-07-25 08:10:48 +00:00
return "Nieprawid\u0142owy klucz w " + code . origin ;
2026-07-23 10:11:24 +00:00
} else {
if ( "invalid_union" !== code ) {
if ( "invalid_element" === code ) {
const _HermesInternal = HermesInternal ;
2026-07-25 08:10:48 +00:00
return "Nieprawid\u0142owa warto\u015B\u0107 w " + code . origin ;
2026-07-23 10:11:24 +00:00
}
}
2026-07-25 08:10:48 +00:00
return "Nieprawid\u0142owe dane wej\u015Bciowe" ;
2026-07-23 10:11:24 +00:00
}
}
} ;
}
module . exports = exports . default ;
} else {
const _Object2 = Object ;
}
} else {
let _Object = Object ;
}