{"version":3,"sources":["jsdelivr-header.js","/npm/postcode-validator@3.10.26/lib/cjs/main.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,kCAAoC,QAAQ,kBAAoB,QAAQ,iBAAmB,EACnG,MAAM,mBAAqB,QAAQ,sBACnC,IAAI,iBAAmB,QAAQ,oBAC/B,OAAO,eAAe,QAAS,cAAe,CAAE,YAAY,EAAM,IAAK,WAAc,OAAO,iBAAiB,WAAa,IAC1H,MAAM,kBAAoB,CAAC,EAAU,KACjC,IAAK,mBAAmB,iBAAiB,IAAI,GAEzC,MAAM,MAAM,yBAAyB,KAEzC,OAAO,mBAAmB,iBAAiB,IAAI,GAAS,KAAK,IAEjE,QAAQ,kBAAoB,kBAC5B,MAAM,kCAAqC,GAChC,mBAAmB,iBAAiB,IAAI,GAEnD,QAAQ,kCAAoC","file":"/npm/postcode-validator@3.10.26/lib/cjs/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/postcode-validator@3.10.26/lib/cjs/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.postcodeValidatorExistsForCountry = exports.postcodeValidator = exports.CountryCode = void 0;\nconst postcode_regexes_1 = require(\"./postcode-regexes\");\nvar postcode_types_1 = require(\"./postcode-types\");\nObject.defineProperty(exports, \"CountryCode\", { enumerable: true, get: function () { return postcode_types_1.CountryCode; } });\nconst postcodeValidator = (postcode, country) => {\n    if (!postcode_regexes_1.POSTCODE_REGEXES.has(country)) {\n        // throw Error if country code is unrecognised\n        throw Error(`Invalid country code: ${country}`);\n    }\n    return postcode_regexes_1.POSTCODE_REGEXES.get(country).test(postcode);\n};\nexports.postcodeValidator = postcodeValidator;\nconst postcodeValidatorExistsForCountry = (country) => {\n    return postcode_regexes_1.POSTCODE_REGEXES.has(country);\n};\nexports.postcodeValidatorExistsForCountry = postcodeValidatorExistsForCountry;\n"]}