@winner-fed/bundler-webpack
Version:
@winner-fed/bundler-webpack
1,344 lines (1,209 loc) • 406 kB
JavaScript
/******/ (function() { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 3471:
/***/ (function(__unused_webpack_module, exports) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
function fmtDef(validate, compare) {
return { validate, compare };
}
exports.fullFormats = {
// date: http://tools.ietf.org/html/rfc3339#section-5.6
date: fmtDef(date, compareDate),
// date-time: http://tools.ietf.org/html/rfc3339#section-5.6
time: fmtDef(time, compareTime),
"date-time": fmtDef(date_time, compareDateTime),
// duration: https://tools.ietf.org/html/rfc3339#appendix-A
duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
uri,
"uri-reference": /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
// uri-template: https://tools.ietf.org/html/rfc6570
"uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,
// For the source: https://gist.github.com/dperini/729294
// For test cases: https://mathiasbynens.be/demo/url-regex
url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,
email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,
// optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
regex,
// uuid: http://tools.ietf.org/html/rfc4122
uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
// JSON-pointer: https://tools.ietf.org/html/rfc6901
// uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
"json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/,
"json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,
// relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
"relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,
// the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types
// byte: https://github.com/miguelmota/is-base64
byte,
// signed 32 bit integer
int32: { type: "number", validate: validateInt32 },
// signed 64 bit integer
int64: { type: "number", validate: validateInt64 },
// C-type float
float: { type: "number", validate: validateNumber },
// C-type double
double: { type: "number", validate: validateNumber },
// hint to the UI to hide input strings
password: true,
// unchecked string payload
binary: true,
};
exports.fastFormats = {
...exports.fullFormats,
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareTime),
"date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
// uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
"uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
// email (sources from jsen validator):
// http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
};
exports.formatNames = Object.keys(exports.fullFormats);
function isLeapYear(year) {
// https://tools.ietf.org/html/rfc3339#appendix-C
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
}
const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function date(str) {
// full-date from http://tools.ietf.org/html/rfc3339#section-5.6
const matches = DATE.exec(str);
if (!matches)
return false;
const year = +matches[1];
const month = +matches[2];
const day = +matches[3];
return (month >= 1 &&
month <= 12 &&
day >= 1 &&
day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]));
}
function compareDate(d1, d2) {
if (!(d1 && d2))
return undefined;
if (d1 > d2)
return 1;
if (d1 < d2)
return -1;
return 0;
}
const TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
function time(str, withTimeZone) {
const matches = TIME.exec(str);
if (!matches)
return false;
const hour = +matches[1];
const minute = +matches[2];
const second = +matches[3];
const timeZone = matches[5];
return (((hour <= 23 && minute <= 59 && second <= 59) ||
(hour === 23 && minute === 59 && second === 60)) &&
(!withTimeZone || timeZone !== ""));
}
function compareTime(t1, t2) {
if (!(t1 && t2))
return undefined;
const a1 = TIME.exec(t1);
const a2 = TIME.exec(t2);
if (!(a1 && a2))
return undefined;
t1 = a1[1] + a1[2] + a1[3] + (a1[4] || "");
t2 = a2[1] + a2[2] + a2[3] + (a2[4] || "");
if (t1 > t2)
return 1;
if (t1 < t2)
return -1;
return 0;
}
const DATE_TIME_SEPARATOR = /t|\s/i;
function date_time(str) {
// http://tools.ietf.org/html/rfc3339#section-5.6
const dateTime = str.split(DATE_TIME_SEPARATOR);
return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1], true);
}
function compareDateTime(dt1, dt2) {
if (!(dt1 && dt2))
return undefined;
const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);
const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);
const res = compareDate(d1, d2);
if (res === undefined)
return undefined;
return res || compareTime(t1, t2);
}
const NOT_URI_FRAGMENT = /\/|:/;
const URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
function uri(str) {
// http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "."
return NOT_URI_FRAGMENT.test(str) && URI.test(str);
}
const BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
function byte(str) {
BYTE.lastIndex = 0;
return BYTE.test(str);
}
const MIN_INT32 = -(2 ** 31);
const MAX_INT32 = 2 ** 31 - 1;
function validateInt32(value) {
return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
}
function validateInt64(value) {
// JSON and javascript max Int is 2**53, so any int that passes isInteger is valid for Int64
return Number.isInteger(value);
}
function validateNumber() {
return true;
}
const Z_ANCHOR = /[^\\]\\Z/;
function regex(str) {
if (Z_ANCHOR.test(str))
return false;
try {
new RegExp(str);
return true;
}
catch (e) {
return false;
}
}
//# sourceMappingURL=formats.js.map
/***/ }),
/***/ 5679:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const formats_1 = __nccwpck_require__(3471);
const limit_1 = __nccwpck_require__(6541);
const codegen_1 = __nccwpck_require__(2981);
const fullName = new codegen_1.Name("fullFormats");
const fastName = new codegen_1.Name("fastFormats");
const formatsPlugin = (ajv, opts = { keywords: true }) => {
if (Array.isArray(opts)) {
addFormats(ajv, opts, formats_1.fullFormats, fullName);
return ajv;
}
const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName];
const list = opts.formats || formats_1.formatNames;
addFormats(ajv, list, formats, exportName);
if (opts.keywords)
limit_1.default(ajv);
return ajv;
};
formatsPlugin.get = (name, mode = "full") => {
const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats;
const f = formats[name];
if (!f)
throw new Error(`Unknown format "${name}"`);
return f;
};
function addFormats(ajv, list, fs, exportName) {
var _a;
var _b;
(_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : (_b.formats = codegen_1._ `require("ajv-formats/dist/formats").${exportName}`);
for (const f of list)
ajv.addFormat(f, fs[f]);
}
module.exports = exports = formatsPlugin;
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports["default"] = formatsPlugin;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 6541:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.formatLimitDefinition = void 0;
const ajv_1 = __nccwpck_require__(8005);
const codegen_1 = __nccwpck_require__(2981);
const ops = codegen_1.operators;
const KWDs = {
formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
formatMinimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT },
formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE },
};
const error = {
message: ({ keyword, schemaCode }) => codegen_1.str `should be ${KWDs[keyword].okStr} ${schemaCode}`,
params: ({ keyword, schemaCode }) => codegen_1._ `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,
};
exports.formatLimitDefinition = {
keyword: Object.keys(KWDs),
type: "string",
schemaType: "string",
$data: true,
error,
code(cxt) {
const { gen, data, schemaCode, keyword, it } = cxt;
const { opts, self } = it;
if (!opts.validateFormats)
return;
const fCxt = new ajv_1.KeywordCxt(it, self.RULES.all.format.definition, "format");
if (fCxt.$data)
validate$DataFormat();
else
validateFormat();
function validate$DataFormat() {
const fmts = gen.scopeValue("formats", {
ref: self.formats,
code: opts.code.formats,
});
const fmt = gen.const("fmt", codegen_1._ `${fmts}[${fCxt.schemaCode}]`);
cxt.fail$data(codegen_1.or(codegen_1._ `typeof ${fmt} != "object"`, codegen_1._ `${fmt} instanceof RegExp`, codegen_1._ `typeof ${fmt}.compare != "function"`, compareCode(fmt)));
}
function validateFormat() {
const format = fCxt.schema;
const fmtDef = self.formats[format];
if (!fmtDef || fmtDef === true)
return;
if (typeof fmtDef != "object" ||
fmtDef instanceof RegExp ||
typeof fmtDef.compare != "function") {
throw new Error(`"${keyword}": format "${format}" does not define "compare" function`);
}
const fmt = gen.scopeValue("formats", {
key: format,
ref: fmtDef,
code: opts.code.formats ? codegen_1._ `${opts.code.formats}${codegen_1.getProperty(format)}` : undefined,
});
cxt.fail$data(compareCode(fmt));
}
function compareCode(fmt) {
return codegen_1._ `${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;
}
},
dependencies: ["format"],
};
const formatLimitPlugin = (ajv) => {
ajv.addKeyword(exports.formatLimitDefinition);
return ajv;
};
exports["default"] = formatLimitPlugin;
//# sourceMappingURL=limit.js.map
/***/ }),
/***/ 7645:
/***/ (function(__unused_webpack_module, exports) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
function getRangeDef(keyword) {
return () => ({
keyword,
type: "number",
schemaType: "array",
macro: function ([min, max]) {
validateRangeSchema(min, max);
return keyword === "range"
? { minimum: min, maximum: max }
: { exclusiveMinimum: min, exclusiveMaximum: max };
},
metaSchema: {
type: "array",
minItems: 2,
maxItems: 2,
items: { type: "number" },
},
});
function validateRangeSchema(min, max) {
if (min > max || (keyword === "exclusiveRange" && min === max)) {
throw new Error("There are no numbers in range");
}
}
}
exports["default"] = getRangeDef;
//# sourceMappingURL=_range.js.map
/***/ }),
/***/ 4487:
/***/ (function(__unused_webpack_module, exports) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
function getRequiredDef(keyword) {
return () => ({
keyword,
type: "object",
schemaType: "array",
macro(schema) {
if (schema.length === 0)
return true;
if (schema.length === 1)
return { required: schema };
const comb = keyword === "anyRequired" ? "anyOf" : "oneOf";
return { [comb]: schema.map((p) => ({ required: [p] })) };
},
metaSchema: {
type: "array",
items: { type: "string" },
},
});
}
exports["default"] = getRequiredDef;
//# sourceMappingURL=_required.js.map
/***/ }),
/***/ 1304:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.usePattern = exports.metaSchemaRef = void 0;
const codegen_1 = __nccwpck_require__(2981);
const META_SCHEMA_ID = "http://json-schema.org/schema";
function metaSchemaRef({ defaultMeta } = {}) {
return defaultMeta === false ? {} : { $ref: defaultMeta || META_SCHEMA_ID };
}
exports.metaSchemaRef = metaSchemaRef;
function usePattern({ gen, it: { opts } }, pattern, flags = opts.unicodeRegExp ? "u" : "") {
const rx = new RegExp(pattern, flags);
return gen.scopeValue("pattern", {
key: rx.toString(),
ref: rx,
code: (0, codegen_1._) `new RegExp(${pattern}, ${flags})`,
});
}
exports.usePattern = usePattern;
//# sourceMappingURL=_util.js.map
/***/ }),
/***/ 2634:
/***/ (function(module, exports) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
function getDef() {
return {
keyword: "allRequired",
type: "object",
schemaType: "boolean",
macro(schema, parentSchema) {
if (!schema)
return true;
const required = Object.keys(parentSchema.properties);
if (required.length === 0)
return true;
return { required };
},
dependencies: ["properties"],
};
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=allRequired.js.map
/***/ }),
/***/ 9822:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const _required_1 = __importDefault(__nccwpck_require__(4487));
const getDef = (0, _required_1.default)("anyRequired");
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=anyRequired.js.map
/***/ }),
/***/ 8018:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const _util_1 = __nccwpck_require__(1304);
function getDef(opts) {
return {
keyword: "deepProperties",
type: "object",
schemaType: "object",
macro: function (schema) {
const allOf = [];
for (const pointer in schema)
allOf.push(getSchema(pointer, schema[pointer]));
return { allOf };
},
metaSchema: {
type: "object",
propertyNames: { type: "string", format: "json-pointer" },
additionalProperties: (0, _util_1.metaSchemaRef)(opts),
},
};
}
exports["default"] = getDef;
function getSchema(jsonPointer, schema) {
const segments = jsonPointer.split("/");
const rootSchema = {};
let pointerSchema = rootSchema;
for (let i = 1; i < segments.length; i++) {
let segment = segments[i];
const isLast = i === segments.length - 1;
segment = unescapeJsonPointer(segment);
const properties = (pointerSchema.properties = {});
let items;
if (/[0-9]+/.test(segment)) {
let count = +segment;
items = pointerSchema.items = [];
pointerSchema.type = ["object", "array"];
while (count--)
items.push({});
}
else {
pointerSchema.type = "object";
}
pointerSchema = isLast ? schema : {};
properties[segment] = pointerSchema;
if (items)
items.push(pointerSchema);
}
return rootSchema;
}
function unescapeJsonPointer(str) {
return str.replace(/~1/g, "/").replace(/~0/g, "~");
}
module.exports = getDef;
//# sourceMappingURL=deepProperties.js.map
/***/ }),
/***/ 9414:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const codegen_1 = __nccwpck_require__(2981);
function getDef() {
return {
keyword: "deepRequired",
type: "object",
schemaType: "array",
code(ctx) {
const { schema, data } = ctx;
const props = schema.map((jp) => (0, codegen_1._) `(${getData(jp)}) === undefined`);
ctx.fail((0, codegen_1.or)(...props));
function getData(jsonPointer) {
if (jsonPointer === "")
throw new Error("empty JSON pointer not allowed");
const segments = jsonPointer.split("/");
let x = data;
const xs = segments.map((s, i) => i ? (x = (0, codegen_1._) `${x}${(0, codegen_1.getProperty)(unescapeJPSegment(s))}`) : x);
return (0, codegen_1.and)(...xs);
}
},
metaSchema: {
type: "array",
items: { type: "string", format: "json-pointer" },
},
};
}
exports["default"] = getDef;
function unescapeJPSegment(s) {
return s.replace(/~1/g, "/").replace(/~0/g, "~");
}
module.exports = getDef;
//# sourceMappingURL=deepRequired.js.map
/***/ }),
/***/ 2471:
/***/ (function(module, exports) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const sequences = {};
const DEFAULTS = {
timestamp: () => () => Date.now(),
datetime: () => () => new Date().toISOString(),
date: () => () => new Date().toISOString().slice(0, 10),
time: () => () => new Date().toISOString().slice(11),
random: () => () => Math.random(),
randomint: (args) => {
var _a;
const max = (_a = args === null || args === void 0 ? void 0 : args.max) !== null && _a !== void 0 ? _a : 2;
return () => Math.floor(Math.random() * max);
},
seq: (args) => {
var _a;
const name = (_a = args === null || args === void 0 ? void 0 : args.name) !== null && _a !== void 0 ? _a : "";
sequences[name] || (sequences[name] = 0);
return () => sequences[name]++;
},
};
const getDef = Object.assign(_getDef, { DEFAULTS });
function _getDef() {
return {
keyword: "dynamicDefaults",
type: "object",
schemaType: ["string", "object"],
modifying: true,
valid: true,
compile(schema, _parentSchema, it) {
if (!it.opts.useDefaults || it.compositeRule)
return () => true;
const fs = {};
for (const key in schema)
fs[key] = getDefault(schema[key]);
const empty = it.opts.useDefaults === "empty";
return (data) => {
for (const prop in schema) {
if (data[prop] === undefined || (empty && (data[prop] === null || data[prop] === ""))) {
data[prop] = fs[prop]();
}
}
return true;
};
},
metaSchema: {
type: "object",
additionalProperties: {
anyOf: [
{ type: "string" },
{
type: "object",
additionalProperties: false,
required: ["func", "args"],
properties: {
func: { type: "string" },
args: { type: "object" },
},
},
],
},
},
};
}
function getDefault(d) {
return typeof d == "object" ? getObjDefault(d) : getStrDefault(d);
}
function getObjDefault({ func, args }) {
const def = DEFAULTS[func];
assertDefined(func, def);
return def(args);
}
function getStrDefault(d = "") {
const def = DEFAULTS[d];
assertDefined(d, def);
return def();
}
function assertDefined(name, def) {
if (!def)
throw new Error(`invalid "dynamicDefaults" keyword property value: ${name}`);
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=dynamicDefaults.js.map
/***/ }),
/***/ 7406:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const _range_1 = __importDefault(__nccwpck_require__(7645));
const getDef = (0, _range_1.default)("exclusiveRange");
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=exclusiveRange.js.map
/***/ }),
/***/ 5552:
/***/ (function(module, exports) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const CONSTRUCTORS = {
Object,
Array,
Function,
Number,
String,
Date,
RegExp,
};
/* istanbul ignore else */
if (typeof Buffer != "undefined")
CONSTRUCTORS.Buffer = Buffer;
/* istanbul ignore else */
if (typeof Promise != "undefined")
CONSTRUCTORS.Promise = Promise;
const getDef = Object.assign(_getDef, { CONSTRUCTORS });
function _getDef() {
return {
keyword: "instanceof",
schemaType: ["string", "array"],
compile(schema) {
if (typeof schema == "string") {
const C = getConstructor(schema);
return (data) => data instanceof C;
}
if (Array.isArray(schema)) {
const constructors = schema.map(getConstructor);
return (data) => {
for (const C of constructors) {
if (data instanceof C)
return true;
}
return false;
};
}
/* istanbul ignore next */
throw new Error("ajv implementation error");
},
metaSchema: {
anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
},
};
}
function getConstructor(c) {
const C = CONSTRUCTORS[c];
if (C)
return C;
throw new Error(`invalid "instanceof" keyword value ${c}`);
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=instanceof.js.map
/***/ }),
/***/ 2869:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const _required_1 = __importDefault(__nccwpck_require__(4487));
const getDef = (0, _required_1.default)("oneRequired");
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=oneRequired.js.map
/***/ }),
/***/ 6847:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const codegen_1 = __nccwpck_require__(2981);
const _util_1 = __nccwpck_require__(1304);
const error = {
message: ({ params: { missingPattern } }) => (0, codegen_1.str) `should have property matching pattern '${missingPattern}'`,
params: ({ params: { missingPattern } }) => (0, codegen_1._) `{missingPattern: ${missingPattern}}`,
};
function getDef() {
return {
keyword: "patternRequired",
type: "object",
schemaType: "array",
error,
code(cxt) {
const { gen, schema, data } = cxt;
if (schema.length === 0)
return;
const valid = gen.let("valid", true);
for (const pat of schema)
validateProperties(pat);
function validateProperties(pattern) {
const matched = gen.let("matched", false);
gen.forIn("key", data, (key) => {
gen.assign(matched, (0, codegen_1._) `${(0, _util_1.usePattern)(cxt, pattern)}.test(${key})`);
gen.if(matched, () => gen.break());
});
cxt.setParams({ missingPattern: pattern });
gen.assign(valid, (0, codegen_1.and)(valid, matched));
cxt.pass(valid);
}
},
metaSchema: {
type: "array",
items: { type: "string", format: "regex" },
uniqueItems: true,
},
};
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=patternRequired.js.map
/***/ }),
/***/ 5788:
/***/ (function(module, exports) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
function getDef() {
return {
keyword: "prohibited",
type: "object",
schemaType: "array",
macro: function (schema) {
if (schema.length === 0)
return true;
if (schema.length === 1)
return { not: { required: schema } };
return { not: { anyOf: schema.map((p) => ({ required: [p] })) } };
},
metaSchema: {
type: "array",
items: { type: "string" },
},
};
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=prohibited.js.map
/***/ }),
/***/ 4650:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const _range_1 = __importDefault(__nccwpck_require__(7645));
const getDef = (0, _range_1.default)("range");
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=range.js.map
/***/ }),
/***/ 1842:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const codegen_1 = __nccwpck_require__(2981);
const _util_1 = __nccwpck_require__(1304);
const regexpMetaSchema = {
type: "object",
properties: {
pattern: { type: "string" },
flags: { type: "string", nullable: true },
},
required: ["pattern"],
additionalProperties: false,
};
const metaRegexp = /^\/(.*)\/([gimuy]*)$/;
function getDef() {
return {
keyword: "regexp",
type: "string",
schemaType: ["string", "object"],
code(cxt) {
const { data, schema } = cxt;
const regx = getRegExp(schema);
cxt.pass((0, codegen_1._) `${regx}.test(${data})`);
function getRegExp(sch) {
if (typeof sch == "object")
return (0, _util_1.usePattern)(cxt, sch.pattern, sch.flags);
const rx = metaRegexp.exec(sch);
if (rx)
return (0, _util_1.usePattern)(cxt, rx[1], rx[2]);
throw new Error("cannot parse string into RegExp");
}
},
metaSchema: {
anyOf: [{ type: "string" }, regexpMetaSchema],
},
};
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=regexp.js.map
/***/ }),
/***/ 173:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const codegen_1 = __nccwpck_require__(2981);
const _util_1 = __nccwpck_require__(1304);
const error = {
message: ({ params: { schemaProp } }) => schemaProp
? (0, codegen_1.str) `should match case "${schemaProp}" schema`
: (0, codegen_1.str) `should match default case schema`,
params: ({ params: { schemaProp } }) => schemaProp ? (0, codegen_1._) `{failingCase: ${schemaProp}}` : (0, codegen_1._) `{failingDefault: true}`,
};
function getDef(opts) {
const metaSchema = (0, _util_1.metaSchemaRef)(opts);
return [
{
keyword: "select",
schemaType: ["string", "number", "boolean", "null"],
$data: true,
error,
dependencies: ["selectCases"],
code(cxt) {
const { gen, schemaCode, parentSchema } = cxt;
cxt.block$data(codegen_1.nil, () => {
const valid = gen.let("valid", true);
const schValid = gen.name("_valid");
const value = gen.const("value", (0, codegen_1._) `${schemaCode} === null ? "null" : ${schemaCode}`);
gen.if(false); // optimizer should remove it from generated code
for (const schemaProp in parentSchema.selectCases) {
cxt.setParams({ schemaProp });
gen.elseIf((0, codegen_1._) `"" + ${value} == ${schemaProp}`); // intentional ==, to match numbers and booleans
const schCxt = cxt.subschema({ keyword: "selectCases", schemaProp }, schValid);
cxt.mergeEvaluated(schCxt, codegen_1.Name);
gen.assign(valid, schValid);
}
gen.else();
if (parentSchema.selectDefault !== undefined) {
cxt.setParams({ schemaProp: undefined });
const schCxt = cxt.subschema({ keyword: "selectDefault" }, schValid);
cxt.mergeEvaluated(schCxt, codegen_1.Name);
gen.assign(valid, schValid);
}
gen.endIf();
cxt.pass(valid);
});
},
},
{
keyword: "selectCases",
dependencies: ["select"],
metaSchema: {
type: "object",
additionalProperties: metaSchema,
},
},
{
keyword: "selectDefault",
dependencies: ["select", "selectCases"],
metaSchema,
},
];
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=select.js.map
/***/ }),
/***/ 3701:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const codegen_1 = __nccwpck_require__(2981);
const transform = {
trimStart: (s) => s.trimStart(),
trimEnd: (s) => s.trimEnd(),
trimLeft: (s) => s.trimStart(),
trimRight: (s) => s.trimEnd(),
trim: (s) => s.trim(),
toLowerCase: (s) => s.toLowerCase(),
toUpperCase: (s) => s.toUpperCase(),
toEnumCase: (s, cfg) => (cfg === null || cfg === void 0 ? void 0 : cfg.hash[configKey(s)]) || s,
};
const getDef = Object.assign(_getDef, { transform });
function _getDef() {
return {
keyword: "transform",
schemaType: "array",
before: "enum",
code(cxt) {
const { gen, data, schema, parentSchema, it } = cxt;
const { parentData, parentDataProperty } = it;
const tNames = schema;
if (!tNames.length)
return;
let cfg;
if (tNames.includes("toEnumCase")) {
const config = getEnumCaseCfg(parentSchema);
cfg = gen.scopeValue("obj", { ref: config, code: (0, codegen_1.stringify)(config) });
}
gen.if((0, codegen_1._) `typeof ${data} == "string" && ${parentData} !== undefined`, () => {
gen.assign(data, transformExpr(tNames.slice()));
gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, data);
});
function transformExpr(ts) {
if (!ts.length)
return data;
const t = ts.pop();
if (!(t in transform))
throw new Error(`transform: unknown transformation ${t}`);
const func = gen.scopeValue("func", {
ref: transform[t],
code: (0, codegen_1._) `require("ajv-keywords/dist/definitions/transform").transform${(0, codegen_1.getProperty)(t)}`,
});
const arg = transformExpr(ts);
return cfg && t === "toEnumCase" ? (0, codegen_1._) `${func}(${arg}, ${cfg})` : (0, codegen_1._) `${func}(${arg})`;
}
},
metaSchema: {
type: "array",
items: { type: "string", enum: Object.keys(transform) },
},
};
}
function getEnumCaseCfg(parentSchema) {
// build hash table to enum values
const cfg = { hash: {} };
// requires `enum` in the same schema as transform
if (!parentSchema.enum)
throw new Error('transform: "toEnumCase" requires "enum"');
for (const v of parentSchema.enum) {
if (typeof v !== "string")
continue;
const k = configKey(v);
// requires all `enum` values have unique keys
if (cfg.hash[k]) {
throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');
}
cfg.hash[k] = v;
}
return cfg;
}
function configKey(s) {
return s.toLowerCase();
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=transform.js.map
/***/ }),
/***/ 7144:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const codegen_1 = __nccwpck_require__(2981);
const TYPES = ["undefined", "string", "number", "object", "function", "boolean", "symbol"];
function getDef() {
return {
keyword: "typeof",
schemaType: ["string", "array"],
code(cxt) {
const { data, schema, schemaValue } = cxt;
cxt.fail(typeof schema == "string"
? (0, codegen_1._) `typeof ${data} != ${schema}`
: (0, codegen_1._) `${schemaValue}.indexOf(typeof ${data}) < 0`);
},
metaSchema: {
anyOf: [
{ type: "string", enum: TYPES },
{ type: "array", items: { type: "string", enum: TYPES } },
],
},
};
}
exports["default"] = getDef;
module.exports = getDef;
//# sourceMappingURL=typeof.js.map
/***/ }),
/***/ 1367:
/***/ (function(module, exports, __nccwpck_require__) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const equal = __nccwpck_require__(7447);
const SCALAR_TYPES = ["number", "integer", "string", "boolean", "null"];
function getDef() {
return {
keyword: "uniqueItemProperties",
type: "array",
schemaType: "array",
compile(keys, parentSchema) {
const scalar = getScalarKeys(keys, parentSchema);
return (data) => {
if (data.length <= 1)
return true;
for (let k = 0; k < keys.length; k++) {
const key = keys[k];
if (scalar[k]) {
const hash = {};
for (const x of data) {
if (!x || typeof x != "object")
continue;
let p = x[key];
if (p && typeof p == "object")
continue;
if (typeof p == "string")
p = '"' + p;
if (hash[p])
return false;
hash[p] = true;
}
}
else {
for (let i = data.length; i--;) {
const x = data[i];
if (!x || typeof x != "object")
continue;
for (let j = i; j--;) {
const y = data[j];
if (y && typeof y == "object" && equal(x[key], y[key]))
return false;
}
}
}
}
return true;
};
},
metaSchema: {
type: "array",
items: { type: "string" },
},
};
}
exports["default"] = getDef;
function getScalarKeys(keys, schema) {
return keys.map((key) => {
var _a, _b, _c;
const t = (_c = (_b = (_a = schema.items) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[key]) === null || _c === void 0 ? void 0 : _c.type;
return Array.isArray(t)
? !t.includes("object") && !t.includes("array")
: SCALAR_TYPES.includes(t);
});
}
module.exports = getDef;
//# sourceMappingURL=uniqueItemProperties.js.map
/***/ }),
/***/ 1169:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const keywords_1 = __importDefault(__nccwpck_require__(3084));
const ajvKeywords = (ajv, keyword) => {
if (Array.isArray(keyword)) {
for (const k of keyword)
get(k)(ajv);
return ajv;
}
if (keyword) {
get(keyword)(ajv);
return ajv;
}
for (keyword in keywords_1.default)
get(keyword)(ajv);
return ajv;
};
ajvKeywords.get = get;
function get(keyword) {
const defFunc = keywords_1.default[keyword];
if (!defFunc)
throw new Error("Unknown keyword " + keyword);
return defFunc;
}
exports["default"] = ajvKeywords;
module.exports = ajvKeywords;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
module.exports["default"] = ajvKeywords;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 8525:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const allRequired_1 = __importDefault(__nccwpck_require__(2634));
const allRequired = (ajv) => ajv.addKeyword((0, allRequired_1.default)());
exports["default"] = allRequired;
module.exports = allRequired;
//# sourceMappingURL=allRequired.js.map
/***/ }),
/***/ 419:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const anyRequired_1 = __importDefault(__nccwpck_require__(9822));
const anyRequired = (ajv) => ajv.addKeyword((0, anyRequired_1.default)());
exports["default"] = anyRequired;
module.exports = anyRequired;
//# sourceMappingURL=anyRequired.js.map
/***/ }),
/***/ 3274:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const deepProperties_1 = __importDefault(__nccwpck_require__(8018));
const deepProperties = (ajv, opts) => ajv.addKeyword((0, deepProperties_1.default)(opts));
exports["default"] = deepProperties;
module.exports = deepProperties;
//# sourceMappingURL=deepProperties.js.map
/***/ }),
/***/ 4270:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const deepRequired_1 = __importDefault(__nccwpck_require__(9414));
const deepRequired = (ajv) => ajv.addKeyword((0, deepRequired_1.default)());
exports["default"] = deepRequired;
module.exports = deepRequired;
//# sourceMappingURL=deepRequired.js.map
/***/ }),
/***/ 5249:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const dynamicDefaults_1 = __importDefault(__nccwpck_require__(2471));
const dynamicDefaults = (ajv) => ajv.addKeyword((0, dynamicDefaults_1.default)());
exports["default"] = dynamicDefaults;
module.exports = dynamicDefaults;
//# sourceMappingURL=dynamicDefaults.js.map
/***/ }),
/***/ 8040:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const exclusiveRange_1 = __importDefault(__nccwpck_require__(7406));
const exclusiveRange = (ajv) => ajv.addKeyword((0, exclusiveRange_1.default)());
exports["default"] = exclusiveRange;
module.exports = exclusiveRange;
//# sourceMappingURL=exclusiveRange.js.map
/***/ }),
/***/ 3084:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const typeof_1 = __importDefault(__nccwpck_require__(9177));
const instanceof_1 = __importDefault(__nccwpck_require__(4616));
const range_1 = __importDefault(__nccwpck_require__(2407));
const exclusiveRange_1 = __importDefault(__nccwpck_require__(8040));
const regexp_1 = __importDefault(__nccwpck_require__(2889));
const transform_1 = __importDefault(__nccwpck_require__(7297));
const uniqueItemProperties_1 = __importDefault(__nccwpck_require__(9661));
const allRequired_1 = __importDefault(__nccwpck_require__(8525));
const anyRequired_1 = __importDefault(__nccwpck_require__(419));
const oneRequired_1 = __importDefault(__nccwpck_require__(3668));
const patternRequired_1 = __importDefault(__nccwpck_require__(7844));
const prohibited_1 = __importDefault(__nccwpck_require__(8110));
const deepProperties_1 = __importDefault(__nccwpck_require__(3274));
const deepRequired_1 = __importDefault(__nccwpck_require__(4270));
const dynamicDefaults_1 = __importDefault(__nccwpck_require__(5249));
const select_1 = __importDefault(__nccwpck_require__(6766));
// TODO type
const ajvKeywords = {
typeof: typeof_1.default,
instanceof: instanceof_1.default,
range: range_1.default,
exclusiveRange: exclusiveRange_1.default,
regexp: regexp_1.default,
transform: transform_1.default,
uniqueItemProperties: uniqueItemProperties_1.default,
allRequired: allRequired_1.default,
anyRequired: anyRequired_1.default,
oneRequired: oneRequired_1.default,
patternRequired: patternRequired_1.default,
prohibited: prohibited_1.default,
deepProperties: deepProperties_1.default,
deepRequired: deepRequired_1.default,
dynamicDefaults: dynamicDefaults_1.default,
select: select_1.default,
};
exports["default"] = ajvKeywords;
module.exports = ajvKeywords;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 4616:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const instanceof_1 = __importDefault(__nccwpck_require__(5552));
const instanceofPlugin = (ajv) => ajv.addKeyword((0, instanceof_1.default)());
exports["default"] = instanceofPlugin;
module.exports = instanceofPlugin;
//# sourceMappingURL=instanceof.js.map
/***/ }),
/***/ 3668:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const oneRequired_1 = __importDefault(__nccwpck_require__(2869));
const oneRequired = (ajv) => ajv.addKeyword((0, oneRequired_1.default)());
exports["default"] = oneRequired;
module.exports = oneRequired;
//# sourceMappingURL=oneRequired.js.map
/***/ }),
/***/ 7844:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const patternRequired_1 = __importDefault(__nccwpck_require__(6847));
const patternRequired = (ajv) => ajv.addKeyword((0, patternRequired_1.default)());
exports["default"] = patternRequired;
module.exports = patternRequired;
//# sourceMappingURL=patternRequired.js.map
/***/ }),
/***/ 8110:
/***/ (function(module, exports, __nccwpck_require__) {
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : {