iframer-cli 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mcp-server.cjs +605 -382
- package/package.json +1 -1
package/mcp-server.cjs
CHANGED
|
@@ -27,19 +27,19 @@ var __export = (target, all) => {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
// node_modules/ajv/dist/compile/codegen/code.js
|
|
30
|
-
var require_code = __commonJS((
|
|
31
|
-
Object.defineProperty(
|
|
32
|
-
|
|
30
|
+
var require_code = __commonJS((exports) => {
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
|
|
33
33
|
|
|
34
34
|
class _CodeOrName {
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
exports._CodeOrName = _CodeOrName;
|
|
37
|
+
exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
38
38
|
|
|
39
39
|
class Name extends _CodeOrName {
|
|
40
40
|
constructor(s) {
|
|
41
41
|
super();
|
|
42
|
-
if (!
|
|
42
|
+
if (!exports.IDENTIFIER.test(s))
|
|
43
43
|
throw new Error("CodeGen: name must be a valid identifier");
|
|
44
44
|
this.str = s;
|
|
45
45
|
}
|
|
@@ -53,7 +53,7 @@ var require_code = __commonJS((exports2) => {
|
|
|
53
53
|
return { [this.str]: 1 };
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
exports.Name = Name;
|
|
57
57
|
|
|
58
58
|
class _Code extends _CodeOrName {
|
|
59
59
|
constructor(code) {
|
|
@@ -82,8 +82,8 @@ var require_code = __commonJS((exports2) => {
|
|
|
82
82
|
}, {});
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
exports._Code = _Code;
|
|
86
|
+
exports.nil = new _Code("");
|
|
87
87
|
function _(strs, ...args) {
|
|
88
88
|
const code = [strs[0]];
|
|
89
89
|
let i = 0;
|
|
@@ -93,7 +93,7 @@ var require_code = __commonJS((exports2) => {
|
|
|
93
93
|
}
|
|
94
94
|
return new _Code(code);
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
exports._ = _;
|
|
97
97
|
var plus = new _Code("+");
|
|
98
98
|
function str(strs, ...args) {
|
|
99
99
|
const expr = [safeStringify(strs[0])];
|
|
@@ -106,7 +106,7 @@ var require_code = __commonJS((exports2) => {
|
|
|
106
106
|
optimize(expr);
|
|
107
107
|
return new _Code(expr);
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
exports.str = str;
|
|
110
110
|
function addCodeArg(code, arg) {
|
|
111
111
|
if (arg instanceof _Code)
|
|
112
112
|
code.push(...arg._items);
|
|
@@ -115,7 +115,7 @@ var require_code = __commonJS((exports2) => {
|
|
|
115
115
|
else
|
|
116
116
|
code.push(interpolate(arg));
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
exports.addCodeArg = addCodeArg;
|
|
119
119
|
function optimize(expr) {
|
|
120
120
|
let i = 1;
|
|
121
121
|
while (i < expr.length - 1) {
|
|
@@ -151,39 +151,39 @@ var require_code = __commonJS((exports2) => {
|
|
|
151
151
|
function strConcat(c1, c2) {
|
|
152
152
|
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
exports.strConcat = strConcat;
|
|
155
155
|
function interpolate(x) {
|
|
156
156
|
return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
|
|
157
157
|
}
|
|
158
158
|
function stringify(x) {
|
|
159
159
|
return new _Code(safeStringify(x));
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
exports.stringify = stringify;
|
|
162
162
|
function safeStringify(x) {
|
|
163
163
|
return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
exports.safeStringify = safeStringify;
|
|
166
166
|
function getProperty(key) {
|
|
167
|
-
return typeof key == "string" &&
|
|
167
|
+
return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
exports.getProperty = getProperty;
|
|
170
170
|
function getEsmExportName(key) {
|
|
171
|
-
if (typeof key == "string" &&
|
|
171
|
+
if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
|
|
172
172
|
return new _Code(`${key}`);
|
|
173
173
|
}
|
|
174
174
|
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
exports.getEsmExportName = getEsmExportName;
|
|
177
177
|
function regexpCode(rx) {
|
|
178
178
|
return new _Code(rx.toString());
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
exports.regexpCode = regexpCode;
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
184
|
-
var require_scope = __commonJS((
|
|
185
|
-
Object.defineProperty(
|
|
186
|
-
|
|
184
|
+
var require_scope = __commonJS((exports) => {
|
|
185
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
186
|
+
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
187
187
|
var code_1 = require_code();
|
|
188
188
|
|
|
189
189
|
class ValueError extends Error {
|
|
@@ -196,8 +196,8 @@ var require_scope = __commonJS((exports2) => {
|
|
|
196
196
|
(function(UsedValueState2) {
|
|
197
197
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
198
198
|
UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
|
|
199
|
-
})(UsedValueState || (
|
|
200
|
-
|
|
199
|
+
})(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
|
|
200
|
+
exports.varKinds = {
|
|
201
201
|
const: new code_1.Name("const"),
|
|
202
202
|
let: new code_1.Name("let"),
|
|
203
203
|
var: new code_1.Name("var")
|
|
@@ -227,7 +227,7 @@ var require_scope = __commonJS((exports2) => {
|
|
|
227
227
|
return this._names[prefix] = { prefix, index: 0 };
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
exports.Scope = Scope;
|
|
231
231
|
|
|
232
232
|
class ValueScopeName extends code_1.Name {
|
|
233
233
|
constructor(prefix, nameStr) {
|
|
@@ -239,7 +239,7 @@ var require_scope = __commonJS((exports2) => {
|
|
|
239
239
|
this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
exports.ValueScopeName = ValueScopeName;
|
|
243
243
|
var line = (0, code_1._)`\n`;
|
|
244
244
|
|
|
245
245
|
class ValueScope extends Scope {
|
|
@@ -310,7 +310,7 @@ var require_scope = __commonJS((exports2) => {
|
|
|
310
310
|
nameSet.set(name, UsedValueState.Started);
|
|
311
311
|
let c = valueCode(name);
|
|
312
312
|
if (c) {
|
|
313
|
-
const def = this.opts.es5 ?
|
|
313
|
+
const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
|
|
314
314
|
code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`;
|
|
315
315
|
} else if (c = getCode === null || getCode === undefined ? undefined : getCode(name)) {
|
|
316
316
|
code = (0, code_1._)`${code}${c}${this.opts._n}`;
|
|
@@ -323,54 +323,54 @@ var require_scope = __commonJS((exports2) => {
|
|
|
323
323
|
return code;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
exports.ValueScope = ValueScope;
|
|
327
327
|
});
|
|
328
328
|
|
|
329
329
|
// node_modules/ajv/dist/compile/codegen/index.js
|
|
330
|
-
var require_codegen = __commonJS((
|
|
331
|
-
Object.defineProperty(
|
|
332
|
-
|
|
330
|
+
var require_codegen = __commonJS((exports) => {
|
|
331
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
332
|
+
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
|
|
333
333
|
var code_1 = require_code();
|
|
334
334
|
var scope_1 = require_scope();
|
|
335
335
|
var code_2 = require_code();
|
|
336
|
-
Object.defineProperty(
|
|
336
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
337
337
|
return code_2._;
|
|
338
338
|
} });
|
|
339
|
-
Object.defineProperty(
|
|
339
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
340
340
|
return code_2.str;
|
|
341
341
|
} });
|
|
342
|
-
Object.defineProperty(
|
|
342
|
+
Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() {
|
|
343
343
|
return code_2.strConcat;
|
|
344
344
|
} });
|
|
345
|
-
Object.defineProperty(
|
|
345
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
346
346
|
return code_2.nil;
|
|
347
347
|
} });
|
|
348
|
-
Object.defineProperty(
|
|
348
|
+
Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() {
|
|
349
349
|
return code_2.getProperty;
|
|
350
350
|
} });
|
|
351
|
-
Object.defineProperty(
|
|
351
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
352
352
|
return code_2.stringify;
|
|
353
353
|
} });
|
|
354
|
-
Object.defineProperty(
|
|
354
|
+
Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() {
|
|
355
355
|
return code_2.regexpCode;
|
|
356
356
|
} });
|
|
357
|
-
Object.defineProperty(
|
|
357
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
358
358
|
return code_2.Name;
|
|
359
359
|
} });
|
|
360
360
|
var scope_2 = require_scope();
|
|
361
|
-
Object.defineProperty(
|
|
361
|
+
Object.defineProperty(exports, "Scope", { enumerable: true, get: function() {
|
|
362
362
|
return scope_2.Scope;
|
|
363
363
|
} });
|
|
364
|
-
Object.defineProperty(
|
|
364
|
+
Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() {
|
|
365
365
|
return scope_2.ValueScope;
|
|
366
366
|
} });
|
|
367
|
-
Object.defineProperty(
|
|
367
|
+
Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() {
|
|
368
368
|
return scope_2.ValueScopeName;
|
|
369
369
|
} });
|
|
370
|
-
Object.defineProperty(
|
|
370
|
+
Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() {
|
|
371
371
|
return scope_2.varKinds;
|
|
372
372
|
} });
|
|
373
|
-
|
|
373
|
+
exports.operators = {
|
|
374
374
|
GT: new code_1._Code(">"),
|
|
375
375
|
GTE: new code_1._Code(">="),
|
|
376
376
|
LT: new code_1._Code("<"),
|
|
@@ -797,7 +797,7 @@ var require_codegen = __commonJS((exports2) => {
|
|
|
797
797
|
return this._leafNode(new Assign(lhs, rhs, sideEffects));
|
|
798
798
|
}
|
|
799
799
|
add(lhs, rhs) {
|
|
800
|
-
return this._leafNode(new AssignOp(lhs,
|
|
800
|
+
return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
|
|
801
801
|
}
|
|
802
802
|
code(c) {
|
|
803
803
|
if (typeof c == "function")
|
|
@@ -976,7 +976,7 @@ var require_codegen = __commonJS((exports2) => {
|
|
|
976
976
|
ns[ns.length - 1] = node;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
|
|
979
|
+
exports.CodeGen = CodeGen;
|
|
980
980
|
function addNames(names, from) {
|
|
981
981
|
for (const n in from)
|
|
982
982
|
names[n] = (names[n] || 0) + (from[n] || 0);
|
|
@@ -1017,17 +1017,17 @@ var require_codegen = __commonJS((exports2) => {
|
|
|
1017
1017
|
function not(x) {
|
|
1018
1018
|
return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
|
|
1019
1019
|
}
|
|
1020
|
-
|
|
1021
|
-
var andCode = mappend(
|
|
1020
|
+
exports.not = not;
|
|
1021
|
+
var andCode = mappend(exports.operators.AND);
|
|
1022
1022
|
function and(...args) {
|
|
1023
1023
|
return args.reduce(andCode);
|
|
1024
1024
|
}
|
|
1025
|
-
|
|
1026
|
-
var orCode = mappend(
|
|
1025
|
+
exports.and = and;
|
|
1026
|
+
var orCode = mappend(exports.operators.OR);
|
|
1027
1027
|
function or(...args) {
|
|
1028
1028
|
return args.reduce(orCode);
|
|
1029
1029
|
}
|
|
1030
|
-
|
|
1030
|
+
exports.or = or;
|
|
1031
1031
|
function mappend(op) {
|
|
1032
1032
|
return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
|
|
1033
1033
|
}
|
|
@@ -1037,9 +1037,9 @@ var require_codegen = __commonJS((exports2) => {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
|
|
1039
1039
|
// node_modules/ajv/dist/compile/util.js
|
|
1040
|
-
var require_util = __commonJS((
|
|
1041
|
-
Object.defineProperty(
|
|
1042
|
-
|
|
1040
|
+
var require_util = __commonJS((exports) => {
|
|
1041
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1042
|
+
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
|
|
1043
1043
|
var codegen_1 = require_codegen();
|
|
1044
1044
|
var code_1 = require_code();
|
|
1045
1045
|
function toHash(arr) {
|
|
@@ -1048,7 +1048,7 @@ var require_util = __commonJS((exports2) => {
|
|
|
1048
1048
|
hash2[item] = true;
|
|
1049
1049
|
return hash2;
|
|
1050
1050
|
}
|
|
1051
|
-
|
|
1051
|
+
exports.toHash = toHash;
|
|
1052
1052
|
function alwaysValidSchema(it, schema) {
|
|
1053
1053
|
if (typeof schema == "boolean")
|
|
1054
1054
|
return schema;
|
|
@@ -1057,7 +1057,7 @@ var require_util = __commonJS((exports2) => {
|
|
|
1057
1057
|
checkUnknownRules(it, schema);
|
|
1058
1058
|
return !schemaHasRules(schema, it.self.RULES.all);
|
|
1059
1059
|
}
|
|
1060
|
-
|
|
1060
|
+
exports.alwaysValidSchema = alwaysValidSchema;
|
|
1061
1061
|
function checkUnknownRules(it, schema = it.schema) {
|
|
1062
1062
|
const { opts, self } = it;
|
|
1063
1063
|
if (!opts.strictSchema)
|
|
@@ -1070,7 +1070,7 @@ var require_util = __commonJS((exports2) => {
|
|
|
1070
1070
|
checkStrictMode(it, `unknown keyword: "${key}"`);
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
|
-
|
|
1073
|
+
exports.checkUnknownRules = checkUnknownRules;
|
|
1074
1074
|
function schemaHasRules(schema, rules) {
|
|
1075
1075
|
if (typeof schema == "boolean")
|
|
1076
1076
|
return !schema;
|
|
@@ -1079,7 +1079,7 @@ var require_util = __commonJS((exports2) => {
|
|
|
1079
1079
|
return true;
|
|
1080
1080
|
return false;
|
|
1081
1081
|
}
|
|
1082
|
-
|
|
1082
|
+
exports.schemaHasRules = schemaHasRules;
|
|
1083
1083
|
function schemaHasRulesButRef(schema, RULES) {
|
|
1084
1084
|
if (typeof schema == "boolean")
|
|
1085
1085
|
return !schema;
|
|
@@ -1088,7 +1088,7 @@ var require_util = __commonJS((exports2) => {
|
|
|
1088
1088
|
return true;
|
|
1089
1089
|
return false;
|
|
1090
1090
|
}
|
|
1091
|
-
|
|
1091
|
+
exports.schemaHasRulesButRef = schemaHasRulesButRef;
|
|
1092
1092
|
function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
|
|
1093
1093
|
if (!$data) {
|
|
1094
1094
|
if (typeof schema == "number" || typeof schema == "boolean")
|
|
@@ -1098,25 +1098,25 @@ var require_util = __commonJS((exports2) => {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
|
|
1100
1100
|
}
|
|
1101
|
-
|
|
1101
|
+
exports.schemaRefOrVal = schemaRefOrVal;
|
|
1102
1102
|
function unescapeFragment(str) {
|
|
1103
1103
|
return unescapeJsonPointer(decodeURIComponent(str));
|
|
1104
1104
|
}
|
|
1105
|
-
|
|
1105
|
+
exports.unescapeFragment = unescapeFragment;
|
|
1106
1106
|
function escapeFragment(str) {
|
|
1107
1107
|
return encodeURIComponent(escapeJsonPointer(str));
|
|
1108
1108
|
}
|
|
1109
|
-
|
|
1109
|
+
exports.escapeFragment = escapeFragment;
|
|
1110
1110
|
function escapeJsonPointer(str) {
|
|
1111
1111
|
if (typeof str == "number")
|
|
1112
1112
|
return `${str}`;
|
|
1113
1113
|
return str.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1114
1114
|
}
|
|
1115
|
-
|
|
1115
|
+
exports.escapeJsonPointer = escapeJsonPointer;
|
|
1116
1116
|
function unescapeJsonPointer(str) {
|
|
1117
1117
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1119
|
+
exports.unescapeJsonPointer = unescapeJsonPointer;
|
|
1120
1120
|
function eachItem(xs, f) {
|
|
1121
1121
|
if (Array.isArray(xs)) {
|
|
1122
1122
|
for (const x of xs)
|
|
@@ -1125,14 +1125,14 @@ var require_util = __commonJS((exports2) => {
|
|
|
1125
1125
|
f(xs);
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
|
-
|
|
1128
|
+
exports.eachItem = eachItem;
|
|
1129
1129
|
function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues3, resultToName }) {
|
|
1130
1130
|
return (gen, from, to, toName) => {
|
|
1131
1131
|
const res = to === undefined ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues3(from, to);
|
|
1132
1132
|
return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
|
|
1133
1133
|
};
|
|
1134
1134
|
}
|
|
1135
|
-
|
|
1135
|
+
exports.mergeEvaluated = {
|
|
1136
1136
|
props: makeMergeEvaluated({
|
|
1137
1137
|
mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
|
|
1138
1138
|
gen.if((0, codegen_1._)`${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._)`${to} || {}`).code((0, codegen_1._)`Object.assign(${to}, ${from})`));
|
|
@@ -1163,11 +1163,11 @@ var require_util = __commonJS((exports2) => {
|
|
|
1163
1163
|
setEvaluated(gen, props, ps);
|
|
1164
1164
|
return props;
|
|
1165
1165
|
}
|
|
1166
|
-
|
|
1166
|
+
exports.evaluatedPropsToName = evaluatedPropsToName;
|
|
1167
1167
|
function setEvaluated(gen, props, ps) {
|
|
1168
1168
|
Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
|
|
1169
1169
|
}
|
|
1170
|
-
|
|
1170
|
+
exports.setEvaluated = setEvaluated;
|
|
1171
1171
|
var snippets = {};
|
|
1172
1172
|
function useFunc(gen, f) {
|
|
1173
1173
|
return gen.scopeValue("func", {
|
|
@@ -1175,12 +1175,12 @@ var require_util = __commonJS((exports2) => {
|
|
|
1175
1175
|
code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code))
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
|
-
|
|
1178
|
+
exports.useFunc = useFunc;
|
|
1179
1179
|
var Type;
|
|
1180
1180
|
(function(Type2) {
|
|
1181
1181
|
Type2[Type2["Num"] = 0] = "Num";
|
|
1182
1182
|
Type2[Type2["Str"] = 1] = "Str";
|
|
1183
|
-
})(Type || (
|
|
1183
|
+
})(Type || (exports.Type = Type = {}));
|
|
1184
1184
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
1185
1185
|
if (dataProp instanceof codegen_1.Name) {
|
|
1186
1186
|
const isNumber = dataPropType === Type.Num;
|
|
@@ -1188,7 +1188,7 @@ var require_util = __commonJS((exports2) => {
|
|
|
1188
1188
|
}
|
|
1189
1189
|
return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
1190
1190
|
}
|
|
1191
|
-
|
|
1191
|
+
exports.getErrorPath = getErrorPath;
|
|
1192
1192
|
function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
|
|
1193
1193
|
if (!mode)
|
|
1194
1194
|
return;
|
|
@@ -1197,12 +1197,12 @@ var require_util = __commonJS((exports2) => {
|
|
|
1197
1197
|
throw new Error(msg);
|
|
1198
1198
|
it.self.logger.warn(msg);
|
|
1199
1199
|
}
|
|
1200
|
-
|
|
1200
|
+
exports.checkStrictMode = checkStrictMode;
|
|
1201
1201
|
});
|
|
1202
1202
|
|
|
1203
1203
|
// node_modules/ajv/dist/compile/names.js
|
|
1204
|
-
var require_names = __commonJS((
|
|
1205
|
-
Object.defineProperty(
|
|
1204
|
+
var require_names = __commonJS((exports) => {
|
|
1205
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1206
1206
|
var codegen_1 = require_codegen();
|
|
1207
1207
|
var names = {
|
|
1208
1208
|
data: new codegen_1.Name("data"),
|
|
@@ -1222,23 +1222,23 @@ var require_names = __commonJS((exports2) => {
|
|
|
1222
1222
|
jsonLen: new codegen_1.Name("jsonLen"),
|
|
1223
1223
|
jsonPart: new codegen_1.Name("jsonPart")
|
|
1224
1224
|
};
|
|
1225
|
-
|
|
1225
|
+
exports.default = names;
|
|
1226
1226
|
});
|
|
1227
1227
|
|
|
1228
1228
|
// node_modules/ajv/dist/compile/errors.js
|
|
1229
|
-
var require_errors = __commonJS((
|
|
1230
|
-
Object.defineProperty(
|
|
1231
|
-
|
|
1229
|
+
var require_errors = __commonJS((exports) => {
|
|
1230
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1231
|
+
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
1232
1232
|
var codegen_1 = require_codegen();
|
|
1233
1233
|
var util_1 = require_util();
|
|
1234
1234
|
var names_1 = require_names();
|
|
1235
|
-
|
|
1235
|
+
exports.keywordError = {
|
|
1236
1236
|
message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation`
|
|
1237
1237
|
};
|
|
1238
|
-
|
|
1238
|
+
exports.keyword$DataError = {
|
|
1239
1239
|
message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
|
|
1240
1240
|
};
|
|
1241
|
-
function reportError(cxt, error48 =
|
|
1241
|
+
function reportError(cxt, error48 = exports.keywordError, errorPaths, overrideAllErrors) {
|
|
1242
1242
|
const { it } = cxt;
|
|
1243
1243
|
const { gen, compositeRule, allErrors } = it;
|
|
1244
1244
|
const errObj = errorObjectCode(cxt, error48, errorPaths);
|
|
@@ -1248,8 +1248,8 @@ var require_errors = __commonJS((exports2) => {
|
|
|
1248
1248
|
returnErrors(it, (0, codegen_1._)`[${errObj}]`);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
|
-
|
|
1252
|
-
function reportExtraError(cxt, error48 =
|
|
1251
|
+
exports.reportError = reportError;
|
|
1252
|
+
function reportExtraError(cxt, error48 = exports.keywordError, errorPaths) {
|
|
1253
1253
|
const { it } = cxt;
|
|
1254
1254
|
const { gen, compositeRule, allErrors } = it;
|
|
1255
1255
|
const errObj = errorObjectCode(cxt, error48, errorPaths);
|
|
@@ -1258,12 +1258,12 @@ var require_errors = __commonJS((exports2) => {
|
|
|
1258
1258
|
returnErrors(it, names_1.default.vErrors);
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
|
-
|
|
1261
|
+
exports.reportExtraError = reportExtraError;
|
|
1262
1262
|
function resetErrorsCount(gen, errsCount) {
|
|
1263
1263
|
gen.assign(names_1.default.errors, errsCount);
|
|
1264
1264
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
|
|
1265
1265
|
}
|
|
1266
|
-
|
|
1266
|
+
exports.resetErrorsCount = resetErrorsCount;
|
|
1267
1267
|
function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
|
|
1268
1268
|
if (errsCount === undefined)
|
|
1269
1269
|
throw new Error("ajv implementation error");
|
|
@@ -1278,7 +1278,7 @@ var require_errors = __commonJS((exports2) => {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
});
|
|
1280
1280
|
}
|
|
1281
|
-
|
|
1281
|
+
exports.extendErrors = extendErrors;
|
|
1282
1282
|
function addError(gen, errObj) {
|
|
1283
1283
|
const err = gen.const("err", errObj);
|
|
1284
1284
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
|
|
@@ -1344,9 +1344,9 @@ var require_errors = __commonJS((exports2) => {
|
|
|
1344
1344
|
});
|
|
1345
1345
|
|
|
1346
1346
|
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1347
|
-
var require_boolSchema = __commonJS((
|
|
1348
|
-
Object.defineProperty(
|
|
1349
|
-
|
|
1347
|
+
var require_boolSchema = __commonJS((exports) => {
|
|
1348
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1349
|
+
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
1350
1350
|
var errors_1 = require_errors();
|
|
1351
1351
|
var codegen_1 = require_codegen();
|
|
1352
1352
|
var names_1 = require_names();
|
|
@@ -1364,7 +1364,7 @@ var require_boolSchema = __commonJS((exports2) => {
|
|
|
1364
1364
|
gen.return(true);
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
|
-
|
|
1367
|
+
exports.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
1368
1368
|
function boolOrEmptySchema(it, valid) {
|
|
1369
1369
|
const { gen, schema } = it;
|
|
1370
1370
|
if (schema === false) {
|
|
@@ -1374,7 +1374,7 @@ var require_boolSchema = __commonJS((exports2) => {
|
|
|
1374
1374
|
gen.var(valid, true);
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
|
-
|
|
1377
|
+
exports.boolOrEmptySchema = boolOrEmptySchema;
|
|
1378
1378
|
function falseSchemaError(it, overrideAllErrors) {
|
|
1379
1379
|
const { gen, data } = it;
|
|
1380
1380
|
const cxt = {
|
|
@@ -1392,15 +1392,15 @@ var require_boolSchema = __commonJS((exports2) => {
|
|
|
1392
1392
|
});
|
|
1393
1393
|
|
|
1394
1394
|
// node_modules/ajv/dist/compile/rules.js
|
|
1395
|
-
var require_rules = __commonJS((
|
|
1396
|
-
Object.defineProperty(
|
|
1397
|
-
|
|
1395
|
+
var require_rules = __commonJS((exports) => {
|
|
1396
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1397
|
+
exports.getRules = exports.isJSONType = undefined;
|
|
1398
1398
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
1399
1399
|
var jsonTypes = new Set(_jsonTypes);
|
|
1400
1400
|
function isJSONType(x) {
|
|
1401
1401
|
return typeof x == "string" && jsonTypes.has(x);
|
|
1402
1402
|
}
|
|
1403
|
-
|
|
1403
|
+
exports.isJSONType = isJSONType;
|
|
1404
1404
|
function getRules() {
|
|
1405
1405
|
const groups = {
|
|
1406
1406
|
number: { type: "number", rules: [] },
|
|
@@ -1416,33 +1416,33 @@ var require_rules = __commonJS((exports2) => {
|
|
|
1416
1416
|
keywords: {}
|
|
1417
1417
|
};
|
|
1418
1418
|
}
|
|
1419
|
-
|
|
1419
|
+
exports.getRules = getRules;
|
|
1420
1420
|
});
|
|
1421
1421
|
|
|
1422
1422
|
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
1423
|
-
var require_applicability = __commonJS((
|
|
1424
|
-
Object.defineProperty(
|
|
1425
|
-
|
|
1423
|
+
var require_applicability = __commonJS((exports) => {
|
|
1424
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1425
|
+
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
1426
1426
|
function schemaHasRulesForType({ schema, self }, type) {
|
|
1427
1427
|
const group = self.RULES.types[type];
|
|
1428
1428
|
return group && group !== true && shouldUseGroup(schema, group);
|
|
1429
1429
|
}
|
|
1430
|
-
|
|
1430
|
+
exports.schemaHasRulesForType = schemaHasRulesForType;
|
|
1431
1431
|
function shouldUseGroup(schema, group) {
|
|
1432
1432
|
return group.rules.some((rule) => shouldUseRule(schema, rule));
|
|
1433
1433
|
}
|
|
1434
|
-
|
|
1434
|
+
exports.shouldUseGroup = shouldUseGroup;
|
|
1435
1435
|
function shouldUseRule(schema, rule) {
|
|
1436
1436
|
var _a2;
|
|
1437
1437
|
return schema[rule.keyword] !== undefined || ((_a2 = rule.definition.implements) === null || _a2 === undefined ? undefined : _a2.some((kwd) => schema[kwd] !== undefined));
|
|
1438
1438
|
}
|
|
1439
|
-
|
|
1439
|
+
exports.shouldUseRule = shouldUseRule;
|
|
1440
1440
|
});
|
|
1441
1441
|
|
|
1442
1442
|
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
1443
|
-
var require_dataType = __commonJS((
|
|
1444
|
-
Object.defineProperty(
|
|
1445
|
-
|
|
1443
|
+
var require_dataType = __commonJS((exports) => {
|
|
1444
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1445
|
+
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
1446
1446
|
var rules_1 = require_rules();
|
|
1447
1447
|
var applicability_1 = require_applicability();
|
|
1448
1448
|
var errors_1 = require_errors();
|
|
@@ -1452,7 +1452,7 @@ var require_dataType = __commonJS((exports2) => {
|
|
|
1452
1452
|
(function(DataType2) {
|
|
1453
1453
|
DataType2[DataType2["Correct"] = 0] = "Correct";
|
|
1454
1454
|
DataType2[DataType2["Wrong"] = 1] = "Wrong";
|
|
1455
|
-
})(DataType || (
|
|
1455
|
+
})(DataType || (exports.DataType = DataType = {}));
|
|
1456
1456
|
function getSchemaTypes(schema) {
|
|
1457
1457
|
const types = getJSONTypes(schema.type);
|
|
1458
1458
|
const hasNull = types.includes("null");
|
|
@@ -1468,14 +1468,14 @@ var require_dataType = __commonJS((exports2) => {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
return types;
|
|
1470
1470
|
}
|
|
1471
|
-
|
|
1471
|
+
exports.getSchemaTypes = getSchemaTypes;
|
|
1472
1472
|
function getJSONTypes(ts) {
|
|
1473
1473
|
const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
|
|
1474
1474
|
if (types.every(rules_1.isJSONType))
|
|
1475
1475
|
return types;
|
|
1476
1476
|
throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
|
|
1477
1477
|
}
|
|
1478
|
-
|
|
1478
|
+
exports.getJSONTypes = getJSONTypes;
|
|
1479
1479
|
function coerceAndCheckDataType(it, types) {
|
|
1480
1480
|
const { gen, data, opts } = it;
|
|
1481
1481
|
const coerceTo = coerceToTypes(types, opts.coerceTypes);
|
|
@@ -1491,7 +1491,7 @@ var require_dataType = __commonJS((exports2) => {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
return checkTypes;
|
|
1493
1493
|
}
|
|
1494
|
-
|
|
1494
|
+
exports.coerceAndCheckDataType = coerceAndCheckDataType;
|
|
1495
1495
|
var COERCIBLE = new Set(["string", "number", "integer", "boolean", "null"]);
|
|
1496
1496
|
function coerceToTypes(types, coerceTypes) {
|
|
1497
1497
|
return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
|
|
@@ -1571,7 +1571,7 @@ var require_dataType = __commonJS((exports2) => {
|
|
|
1571
1571
|
return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil);
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
|
-
|
|
1574
|
+
exports.checkDataType = checkDataType;
|
|
1575
1575
|
function checkDataTypes(dataTypes, data, strictNums, correct) {
|
|
1576
1576
|
if (dataTypes.length === 1) {
|
|
1577
1577
|
return checkDataType(dataTypes[0], data, strictNums, correct);
|
|
@@ -1593,7 +1593,7 @@ var require_dataType = __commonJS((exports2) => {
|
|
|
1593
1593
|
cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
|
|
1594
1594
|
return cond;
|
|
1595
1595
|
}
|
|
1596
|
-
|
|
1596
|
+
exports.checkDataTypes = checkDataTypes;
|
|
1597
1597
|
var typeError = {
|
|
1598
1598
|
message: ({ schema }) => `must be ${schema}`,
|
|
1599
1599
|
params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}`
|
|
@@ -1602,7 +1602,7 @@ var require_dataType = __commonJS((exports2) => {
|
|
|
1602
1602
|
const cxt = getTypeErrorContext(it);
|
|
1603
1603
|
(0, errors_1.reportError)(cxt, typeError);
|
|
1604
1604
|
}
|
|
1605
|
-
|
|
1605
|
+
exports.reportTypeError = reportTypeError;
|
|
1606
1606
|
function getTypeErrorContext(it) {
|
|
1607
1607
|
const { gen, data, schema } = it;
|
|
1608
1608
|
const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type");
|
|
@@ -1621,9 +1621,9 @@ var require_dataType = __commonJS((exports2) => {
|
|
|
1621
1621
|
});
|
|
1622
1622
|
|
|
1623
1623
|
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
1624
|
-
var require_defaults = __commonJS((
|
|
1625
|
-
Object.defineProperty(
|
|
1626
|
-
|
|
1624
|
+
var require_defaults = __commonJS((exports) => {
|
|
1625
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1626
|
+
exports.assignDefaults = undefined;
|
|
1627
1627
|
var codegen_1 = require_codegen();
|
|
1628
1628
|
var util_1 = require_util();
|
|
1629
1629
|
function assignDefaults(it, ty) {
|
|
@@ -1636,7 +1636,7 @@ var require_defaults = __commonJS((exports2) => {
|
|
|
1636
1636
|
items.forEach((sch, i) => assignDefault(it, i, sch.default));
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
|
-
|
|
1639
|
+
exports.assignDefaults = assignDefaults;
|
|
1640
1640
|
function assignDefault(it, prop, defaultValue) {
|
|
1641
1641
|
const { gen, compositeRule, data, opts } = it;
|
|
1642
1642
|
if (defaultValue === undefined)
|
|
@@ -1655,9 +1655,9 @@ var require_defaults = __commonJS((exports2) => {
|
|
|
1655
1655
|
});
|
|
1656
1656
|
|
|
1657
1657
|
// node_modules/ajv/dist/vocabularies/code.js
|
|
1658
|
-
var require_code2 = __commonJS((
|
|
1659
|
-
Object.defineProperty(
|
|
1660
|
-
|
|
1658
|
+
var require_code2 = __commonJS((exports) => {
|
|
1659
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1660
|
+
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
|
|
1661
1661
|
var codegen_1 = require_codegen();
|
|
1662
1662
|
var util_1 = require_util();
|
|
1663
1663
|
var names_1 = require_names();
|
|
@@ -1669,45 +1669,45 @@ var require_code2 = __commonJS((exports2) => {
|
|
|
1669
1669
|
cxt.error();
|
|
1670
1670
|
});
|
|
1671
1671
|
}
|
|
1672
|
-
|
|
1672
|
+
exports.checkReportMissingProp = checkReportMissingProp;
|
|
1673
1673
|
function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
|
|
1674
1674
|
return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
|
|
1675
1675
|
}
|
|
1676
|
-
|
|
1676
|
+
exports.checkMissingProp = checkMissingProp;
|
|
1677
1677
|
function reportMissingProp(cxt, missing) {
|
|
1678
1678
|
cxt.setParams({ missingProperty: missing }, true);
|
|
1679
1679
|
cxt.error();
|
|
1680
1680
|
}
|
|
1681
|
-
|
|
1681
|
+
exports.reportMissingProp = reportMissingProp;
|
|
1682
1682
|
function hasPropFunc(gen) {
|
|
1683
1683
|
return gen.scopeValue("func", {
|
|
1684
1684
|
ref: Object.prototype.hasOwnProperty,
|
|
1685
1685
|
code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
|
|
1686
1686
|
});
|
|
1687
1687
|
}
|
|
1688
|
-
|
|
1688
|
+
exports.hasPropFunc = hasPropFunc;
|
|
1689
1689
|
function isOwnProperty(gen, data, property) {
|
|
1690
1690
|
return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
|
|
1691
1691
|
}
|
|
1692
|
-
|
|
1692
|
+
exports.isOwnProperty = isOwnProperty;
|
|
1693
1693
|
function propertyInData(gen, data, property, ownProperties) {
|
|
1694
1694
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
|
|
1695
1695
|
return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
|
|
1696
1696
|
}
|
|
1697
|
-
|
|
1697
|
+
exports.propertyInData = propertyInData;
|
|
1698
1698
|
function noPropertyInData(gen, data, property, ownProperties) {
|
|
1699
1699
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
|
|
1700
1700
|
return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
|
|
1701
1701
|
}
|
|
1702
|
-
|
|
1702
|
+
exports.noPropertyInData = noPropertyInData;
|
|
1703
1703
|
function allSchemaProperties(schemaMap) {
|
|
1704
1704
|
return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
|
|
1705
1705
|
}
|
|
1706
|
-
|
|
1706
|
+
exports.allSchemaProperties = allSchemaProperties;
|
|
1707
1707
|
function schemaProperties(it, schemaMap) {
|
|
1708
1708
|
return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
|
|
1709
1709
|
}
|
|
1710
|
-
|
|
1710
|
+
exports.schemaProperties = schemaProperties;
|
|
1711
1711
|
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
1712
1712
|
const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
1713
1713
|
const valCxt = [
|
|
@@ -1721,7 +1721,7 @@ var require_code2 = __commonJS((exports2) => {
|
|
|
1721
1721
|
const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
1722
1722
|
return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
|
|
1723
1723
|
}
|
|
1724
|
-
|
|
1724
|
+
exports.callValidateCode = callValidateCode;
|
|
1725
1725
|
var newRegExp = (0, codegen_1._)`new RegExp`;
|
|
1726
1726
|
function usePattern({ gen, it: { opts } }, pattern) {
|
|
1727
1727
|
const u = opts.unicodeRegExp ? "u" : "";
|
|
@@ -1733,7 +1733,7 @@ var require_code2 = __commonJS((exports2) => {
|
|
|
1733
1733
|
code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
|
|
1734
1734
|
});
|
|
1735
1735
|
}
|
|
1736
|
-
|
|
1736
|
+
exports.usePattern = usePattern;
|
|
1737
1737
|
function validateArray(cxt) {
|
|
1738
1738
|
const { gen, data, keyword, it } = cxt;
|
|
1739
1739
|
const valid = gen.name("valid");
|
|
@@ -1757,7 +1757,7 @@ var require_code2 = __commonJS((exports2) => {
|
|
|
1757
1757
|
});
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
|
|
1760
|
+
exports.validateArray = validateArray;
|
|
1761
1761
|
function validateUnion(cxt) {
|
|
1762
1762
|
const { gen, schema, keyword, it } = cxt;
|
|
1763
1763
|
if (!Array.isArray(schema))
|
|
@@ -1780,13 +1780,13 @@ var require_code2 = __commonJS((exports2) => {
|
|
|
1780
1780
|
}));
|
|
1781
1781
|
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
1782
1782
|
}
|
|
1783
|
-
|
|
1783
|
+
exports.validateUnion = validateUnion;
|
|
1784
1784
|
});
|
|
1785
1785
|
|
|
1786
1786
|
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
1787
|
-
var require_keyword = __commonJS((
|
|
1788
|
-
Object.defineProperty(
|
|
1789
|
-
|
|
1787
|
+
var require_keyword = __commonJS((exports) => {
|
|
1788
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1789
|
+
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
1790
1790
|
var codegen_1 = require_codegen();
|
|
1791
1791
|
var names_1 = require_names();
|
|
1792
1792
|
var code_1 = require_code2();
|
|
@@ -1807,7 +1807,7 @@ var require_keyword = __commonJS((exports2) => {
|
|
|
1807
1807
|
}, valid);
|
|
1808
1808
|
cxt.pass(valid, () => cxt.error(true));
|
|
1809
1809
|
}
|
|
1810
|
-
|
|
1810
|
+
exports.macroKeywordCode = macroKeywordCode;
|
|
1811
1811
|
function funcKeywordCode(cxt, def) {
|
|
1812
1812
|
var _a2;
|
|
1813
1813
|
const { gen, keyword, schema, parentSchema, $data, it } = cxt;
|
|
@@ -1851,7 +1851,7 @@ var require_keyword = __commonJS((exports2) => {
|
|
|
1851
1851
|
gen.if((0, codegen_1.not)((_a3 = def.valid) !== null && _a3 !== undefined ? _a3 : valid), errors3);
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
|
-
|
|
1854
|
+
exports.funcKeywordCode = funcKeywordCode;
|
|
1855
1855
|
function modifyData(cxt) {
|
|
1856
1856
|
const { gen, data, it } = cxt;
|
|
1857
1857
|
gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`));
|
|
@@ -1875,7 +1875,7 @@ var require_keyword = __commonJS((exports2) => {
|
|
|
1875
1875
|
function validSchemaType(schema, schemaType, allowUndefined = false) {
|
|
1876
1876
|
return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema) : st === "object" ? schema && typeof schema == "object" && !Array.isArray(schema) : typeof schema == st || allowUndefined && typeof schema == "undefined");
|
|
1877
1877
|
}
|
|
1878
|
-
|
|
1878
|
+
exports.validSchemaType = validSchemaType;
|
|
1879
1879
|
function validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {
|
|
1880
1880
|
if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
|
|
1881
1881
|
throw new Error("ajv implementation error");
|
|
@@ -1895,13 +1895,13 @@ var require_keyword = __commonJS((exports2) => {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
|
-
|
|
1898
|
+
exports.validateKeywordUsage = validateKeywordUsage;
|
|
1899
1899
|
});
|
|
1900
1900
|
|
|
1901
1901
|
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
1902
|
-
var require_subschema = __commonJS((
|
|
1903
|
-
Object.defineProperty(
|
|
1904
|
-
|
|
1902
|
+
var require_subschema = __commonJS((exports) => {
|
|
1903
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1904
|
+
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
1905
1905
|
var codegen_1 = require_codegen();
|
|
1906
1906
|
var util_1 = require_util();
|
|
1907
1907
|
function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
@@ -1933,7 +1933,7 @@ var require_subschema = __commonJS((exports2) => {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
1935
1935
|
}
|
|
1936
|
-
|
|
1936
|
+
exports.getSubschema = getSubschema;
|
|
1937
1937
|
function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
|
|
1938
1938
|
if (data !== undefined && dataProp !== undefined) {
|
|
1939
1939
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
@@ -1964,7 +1964,7 @@ var require_subschema = __commonJS((exports2) => {
|
|
|
1964
1964
|
subschema.dataNames = [...it.dataNames, _nextData];
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
|
|
1967
|
+
exports.extendSubschemaData = extendSubschemaData;
|
|
1968
1968
|
function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {
|
|
1969
1969
|
if (compositeRule !== undefined)
|
|
1970
1970
|
subschema.compositeRule = compositeRule;
|
|
@@ -1975,12 +1975,12 @@ var require_subschema = __commonJS((exports2) => {
|
|
|
1975
1975
|
subschema.jtdDiscriminator = jtdDiscriminator;
|
|
1976
1976
|
subschema.jtdMetadata = jtdMetadata;
|
|
1977
1977
|
}
|
|
1978
|
-
|
|
1978
|
+
exports.extendSubschemaMode = extendSubschemaMode;
|
|
1979
1979
|
});
|
|
1980
1980
|
|
|
1981
1981
|
// node_modules/fast-deep-equal/index.js
|
|
1982
|
-
var require_fast_deep_equal = __commonJS((
|
|
1983
|
-
|
|
1982
|
+
var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
1983
|
+
module.exports = function equal(a, b) {
|
|
1984
1984
|
if (a === b)
|
|
1985
1985
|
return true;
|
|
1986
1986
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
@@ -2021,8 +2021,8 @@ var require_fast_deep_equal = __commonJS((exports2, module2) => {
|
|
|
2021
2021
|
});
|
|
2022
2022
|
|
|
2023
2023
|
// node_modules/json-schema-traverse/index.js
|
|
2024
|
-
var require_json_schema_traverse = __commonJS((
|
|
2025
|
-
var traverse =
|
|
2024
|
+
var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
2025
|
+
var traverse = module.exports = function(schema, opts, cb) {
|
|
2026
2026
|
if (typeof opts == "function") {
|
|
2027
2027
|
cb = opts;
|
|
2028
2028
|
opts = {};
|
|
@@ -2104,9 +2104,9 @@ var require_json_schema_traverse = __commonJS((exports2, module2) => {
|
|
|
2104
2104
|
});
|
|
2105
2105
|
|
|
2106
2106
|
// node_modules/ajv/dist/compile/resolve.js
|
|
2107
|
-
var require_resolve = __commonJS((
|
|
2108
|
-
Object.defineProperty(
|
|
2109
|
-
|
|
2107
|
+
var require_resolve = __commonJS((exports) => {
|
|
2108
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2109
|
+
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
2110
2110
|
var util_1 = require_util();
|
|
2111
2111
|
var equal = require_fast_deep_equal();
|
|
2112
2112
|
var traverse = require_json_schema_traverse();
|
|
@@ -2137,7 +2137,7 @@ var require_resolve = __commonJS((exports2) => {
|
|
|
2137
2137
|
return false;
|
|
2138
2138
|
return countKeys(schema) <= limit;
|
|
2139
2139
|
}
|
|
2140
|
-
|
|
2140
|
+
exports.inlineRef = inlineRef;
|
|
2141
2141
|
var REF_KEYWORDS = new Set([
|
|
2142
2142
|
"$ref",
|
|
2143
2143
|
"$recursiveRef",
|
|
@@ -2179,22 +2179,22 @@ var require_resolve = __commonJS((exports2) => {
|
|
|
2179
2179
|
const p = resolver.parse(id);
|
|
2180
2180
|
return _getFullPath(resolver, p);
|
|
2181
2181
|
}
|
|
2182
|
-
|
|
2182
|
+
exports.getFullPath = getFullPath;
|
|
2183
2183
|
function _getFullPath(resolver, p) {
|
|
2184
2184
|
const serialized = resolver.serialize(p);
|
|
2185
2185
|
return serialized.split("#")[0] + "#";
|
|
2186
2186
|
}
|
|
2187
|
-
|
|
2187
|
+
exports._getFullPath = _getFullPath;
|
|
2188
2188
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
2189
2189
|
function normalizeId(id) {
|
|
2190
2190
|
return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
|
|
2191
2191
|
}
|
|
2192
|
-
|
|
2192
|
+
exports.normalizeId = normalizeId;
|
|
2193
2193
|
function resolveUrl(resolver, baseId, id) {
|
|
2194
2194
|
id = normalizeId(id);
|
|
2195
2195
|
return resolver.resolve(baseId, id);
|
|
2196
2196
|
}
|
|
2197
|
-
|
|
2197
|
+
exports.resolveUrl = resolveUrl;
|
|
2198
2198
|
var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
|
|
2199
2199
|
function getSchemaRefs(schema, baseId) {
|
|
2200
2200
|
if (typeof schema == "boolean")
|
|
@@ -2253,13 +2253,13 @@ var require_resolve = __commonJS((exports2) => {
|
|
|
2253
2253
|
return new Error(`reference "${ref}" resolves to more than one schema`);
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
|
-
|
|
2256
|
+
exports.getSchemaRefs = getSchemaRefs;
|
|
2257
2257
|
});
|
|
2258
2258
|
|
|
2259
2259
|
// node_modules/ajv/dist/compile/validate/index.js
|
|
2260
|
-
var require_validate = __commonJS((
|
|
2261
|
-
Object.defineProperty(
|
|
2262
|
-
|
|
2260
|
+
var require_validate = __commonJS((exports) => {
|
|
2261
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2262
|
+
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
2263
2263
|
var boolSchema_1 = require_boolSchema();
|
|
2264
2264
|
var dataType_1 = require_dataType();
|
|
2265
2265
|
var applicability_1 = require_applicability();
|
|
@@ -2282,7 +2282,7 @@ var require_validate = __commonJS((exports2) => {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
|
|
2284
2284
|
}
|
|
2285
|
-
|
|
2285
|
+
exports.validateFunctionCode = validateFunctionCode;
|
|
2286
2286
|
function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
|
|
2287
2287
|
if (opts.code.es5) {
|
|
2288
2288
|
gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {
|
|
@@ -2703,7 +2703,7 @@ var require_validate = __commonJS((exports2) => {
|
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
2705
|
}
|
|
2706
|
-
|
|
2706
|
+
exports.KeywordCxt = KeywordCxt;
|
|
2707
2707
|
function keywordCode(it, keyword, def, ruleType) {
|
|
2708
2708
|
const cxt = new KeywordCxt(it, def, keyword);
|
|
2709
2709
|
if ("code" in def) {
|
|
@@ -2758,12 +2758,12 @@ var require_validate = __commonJS((exports2) => {
|
|
|
2758
2758
|
return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
|
-
|
|
2761
|
+
exports.getData = getData;
|
|
2762
2762
|
});
|
|
2763
2763
|
|
|
2764
2764
|
// node_modules/ajv/dist/runtime/validation_error.js
|
|
2765
|
-
var require_validation_error = __commonJS((
|
|
2766
|
-
Object.defineProperty(
|
|
2765
|
+
var require_validation_error = __commonJS((exports) => {
|
|
2766
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2767
2767
|
|
|
2768
2768
|
class ValidationError extends Error {
|
|
2769
2769
|
constructor(errors3) {
|
|
@@ -2772,12 +2772,12 @@ var require_validation_error = __commonJS((exports2) => {
|
|
|
2772
2772
|
this.ajv = this.validation = true;
|
|
2773
2773
|
}
|
|
2774
2774
|
}
|
|
2775
|
-
|
|
2775
|
+
exports.default = ValidationError;
|
|
2776
2776
|
});
|
|
2777
2777
|
|
|
2778
2778
|
// node_modules/ajv/dist/compile/ref_error.js
|
|
2779
|
-
var require_ref_error = __commonJS((
|
|
2780
|
-
Object.defineProperty(
|
|
2779
|
+
var require_ref_error = __commonJS((exports) => {
|
|
2780
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2781
2781
|
var resolve_1 = require_resolve();
|
|
2782
2782
|
|
|
2783
2783
|
class MissingRefError extends Error {
|
|
@@ -2787,13 +2787,13 @@ var require_ref_error = __commonJS((exports2) => {
|
|
|
2787
2787
|
this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
|
-
|
|
2790
|
+
exports.default = MissingRefError;
|
|
2791
2791
|
});
|
|
2792
2792
|
|
|
2793
2793
|
// node_modules/ajv/dist/compile/index.js
|
|
2794
|
-
var require_compile = __commonJS((
|
|
2795
|
-
Object.defineProperty(
|
|
2796
|
-
|
|
2794
|
+
var require_compile = __commonJS((exports) => {
|
|
2795
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2796
|
+
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
2797
2797
|
var codegen_1 = require_codegen();
|
|
2798
2798
|
var validation_error_1 = require_validation_error();
|
|
2799
2799
|
var names_1 = require_names();
|
|
@@ -2820,7 +2820,7 @@ var require_compile = __commonJS((exports2) => {
|
|
|
2820
2820
|
this.refs = {};
|
|
2821
2821
|
}
|
|
2822
2822
|
}
|
|
2823
|
-
|
|
2823
|
+
exports.SchemaEnv = SchemaEnv;
|
|
2824
2824
|
function compileSchema(sch) {
|
|
2825
2825
|
const _sch = getCompilingSchema.call(this, sch);
|
|
2826
2826
|
if (_sch)
|
|
@@ -2905,7 +2905,7 @@ var require_compile = __commonJS((exports2) => {
|
|
|
2905
2905
|
this._compilations.delete(sch);
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
|
-
|
|
2908
|
+
exports.compileSchema = compileSchema;
|
|
2909
2909
|
function resolveRef2(root, baseId, ref) {
|
|
2910
2910
|
var _a2;
|
|
2911
2911
|
ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
|
|
@@ -2923,7 +2923,7 @@ var require_compile = __commonJS((exports2) => {
|
|
|
2923
2923
|
return;
|
|
2924
2924
|
return root.refs[ref] = inlineOrCompile.call(this, _sch);
|
|
2925
2925
|
}
|
|
2926
|
-
|
|
2926
|
+
exports.resolveRef = resolveRef2;
|
|
2927
2927
|
function inlineOrCompile(sch) {
|
|
2928
2928
|
if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
|
|
2929
2929
|
return sch.schema;
|
|
@@ -2935,7 +2935,7 @@ var require_compile = __commonJS((exports2) => {
|
|
|
2935
2935
|
return sch;
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
2938
|
-
|
|
2938
|
+
exports.getCompilingSchema = getCompilingSchema;
|
|
2939
2939
|
function sameSchemaEnv(s1, s2) {
|
|
2940
2940
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
2941
2941
|
}
|
|
@@ -2974,7 +2974,7 @@ var require_compile = __commonJS((exports2) => {
|
|
|
2974
2974
|
}
|
|
2975
2975
|
return getJsonPointer.call(this, p, schOrRef);
|
|
2976
2976
|
}
|
|
2977
|
-
|
|
2977
|
+
exports.resolveSchema = resolveSchema;
|
|
2978
2978
|
var PREVENT_SCOPE_CHANGE = new Set([
|
|
2979
2979
|
"properties",
|
|
2980
2980
|
"patternProperties",
|
|
@@ -3012,8 +3012,8 @@ var require_compile = __commonJS((exports2) => {
|
|
|
3012
3012
|
});
|
|
3013
3013
|
|
|
3014
3014
|
// node_modules/ajv/dist/refs/data.json
|
|
3015
|
-
var require_data = __commonJS((
|
|
3016
|
-
|
|
3015
|
+
var require_data = __commonJS((exports, module) => {
|
|
3016
|
+
module.exports = {
|
|
3017
3017
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3018
3018
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
3019
3019
|
type: "object",
|
|
@@ -3029,7 +3029,7 @@ var require_data = __commonJS((exports2, module2) => {
|
|
|
3029
3029
|
});
|
|
3030
3030
|
|
|
3031
3031
|
// node_modules/fast-uri/lib/utils.js
|
|
3032
|
-
var require_utils = __commonJS((
|
|
3032
|
+
var require_utils = __commonJS((exports, module) => {
|
|
3033
3033
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3034
3034
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
3035
3035
|
function stringArrayToHexStripped(input) {
|
|
@@ -3271,7 +3271,7 @@ var require_utils = __commonJS((exports2, module2) => {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
return uriTokens.length ? uriTokens.join("") : undefined;
|
|
3273
3273
|
}
|
|
3274
|
-
|
|
3274
|
+
module.exports = {
|
|
3275
3275
|
nonSimpleDomain,
|
|
3276
3276
|
recomposeAuthority,
|
|
3277
3277
|
normalizeComponentEncoding,
|
|
@@ -3284,7 +3284,7 @@ var require_utils = __commonJS((exports2, module2) => {
|
|
|
3284
3284
|
});
|
|
3285
3285
|
|
|
3286
3286
|
// node_modules/fast-uri/lib/schemes.js
|
|
3287
|
-
var require_schemes = __commonJS((
|
|
3287
|
+
var require_schemes = __commonJS((exports, module) => {
|
|
3288
3288
|
var { isUUID } = require_utils();
|
|
3289
3289
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
3290
3290
|
var supportedSchemeNames = [
|
|
@@ -3449,7 +3449,7 @@ var require_schemes = __commonJS((exports2, module2) => {
|
|
|
3449
3449
|
function getSchemeHandler(scheme) {
|
|
3450
3450
|
return scheme && (SCHEMES[scheme] || SCHEMES[scheme.toLowerCase()]) || undefined;
|
|
3451
3451
|
}
|
|
3452
|
-
|
|
3452
|
+
module.exports = {
|
|
3453
3453
|
wsIsSecure,
|
|
3454
3454
|
SCHEMES,
|
|
3455
3455
|
isValidSchemeName,
|
|
@@ -3458,7 +3458,7 @@ var require_schemes = __commonJS((exports2, module2) => {
|
|
|
3458
3458
|
});
|
|
3459
3459
|
|
|
3460
3460
|
// node_modules/fast-uri/index.js
|
|
3461
|
-
var require_fast_uri = __commonJS((
|
|
3461
|
+
var require_fast_uri = __commonJS((exports, module) => {
|
|
3462
3462
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
3463
3463
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3464
3464
|
function normalize(uri, options) {
|
|
@@ -3703,44 +3703,44 @@ var require_fast_uri = __commonJS((exports2, module2) => {
|
|
|
3703
3703
|
serialize,
|
|
3704
3704
|
parse: parse6
|
|
3705
3705
|
};
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3706
|
+
module.exports = fastUri;
|
|
3707
|
+
module.exports.default = fastUri;
|
|
3708
|
+
module.exports.fastUri = fastUri;
|
|
3709
3709
|
});
|
|
3710
3710
|
|
|
3711
3711
|
// node_modules/ajv/dist/runtime/uri.js
|
|
3712
|
-
var require_uri = __commonJS((
|
|
3713
|
-
Object.defineProperty(
|
|
3712
|
+
var require_uri = __commonJS((exports) => {
|
|
3713
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3714
3714
|
var uri = require_fast_uri();
|
|
3715
3715
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
3716
|
-
|
|
3716
|
+
exports.default = uri;
|
|
3717
3717
|
});
|
|
3718
3718
|
|
|
3719
3719
|
// node_modules/ajv/dist/core.js
|
|
3720
|
-
var require_core = __commonJS((
|
|
3721
|
-
Object.defineProperty(
|
|
3722
|
-
|
|
3720
|
+
var require_core = __commonJS((exports) => {
|
|
3721
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3722
|
+
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
3723
3723
|
var validate_1 = require_validate();
|
|
3724
|
-
Object.defineProperty(
|
|
3724
|
+
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
|
|
3725
3725
|
return validate_1.KeywordCxt;
|
|
3726
3726
|
} });
|
|
3727
3727
|
var codegen_1 = require_codegen();
|
|
3728
|
-
Object.defineProperty(
|
|
3728
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
3729
3729
|
return codegen_1._;
|
|
3730
3730
|
} });
|
|
3731
|
-
Object.defineProperty(
|
|
3731
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
3732
3732
|
return codegen_1.str;
|
|
3733
3733
|
} });
|
|
3734
|
-
Object.defineProperty(
|
|
3734
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
3735
3735
|
return codegen_1.stringify;
|
|
3736
3736
|
} });
|
|
3737
|
-
Object.defineProperty(
|
|
3737
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
3738
3738
|
return codegen_1.nil;
|
|
3739
3739
|
} });
|
|
3740
|
-
Object.defineProperty(
|
|
3740
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
3741
3741
|
return codegen_1.Name;
|
|
3742
3742
|
} });
|
|
3743
|
-
Object.defineProperty(
|
|
3743
|
+
Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
|
|
3744
3744
|
return codegen_1.CodeGen;
|
|
3745
3745
|
} });
|
|
3746
3746
|
var validation_error_1 = require_validation_error();
|
|
@@ -4182,7 +4182,7 @@ var require_core = __commonJS((exports2) => {
|
|
|
4182
4182
|
}
|
|
4183
4183
|
Ajv.ValidationError = validation_error_1.default;
|
|
4184
4184
|
Ajv.MissingRefError = ref_error_1.default;
|
|
4185
|
-
|
|
4185
|
+
exports.default = Ajv;
|
|
4186
4186
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
4187
4187
|
for (const key in checkOpts) {
|
|
4188
4188
|
const opt = key;
|
|
@@ -4310,21 +4310,21 @@ var require_core = __commonJS((exports2) => {
|
|
|
4310
4310
|
});
|
|
4311
4311
|
|
|
4312
4312
|
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
4313
|
-
var require_id = __commonJS((
|
|
4314
|
-
Object.defineProperty(
|
|
4313
|
+
var require_id = __commonJS((exports) => {
|
|
4314
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4315
4315
|
var def = {
|
|
4316
4316
|
keyword: "id",
|
|
4317
4317
|
code() {
|
|
4318
4318
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
4319
4319
|
}
|
|
4320
4320
|
};
|
|
4321
|
-
|
|
4321
|
+
exports.default = def;
|
|
4322
4322
|
});
|
|
4323
4323
|
|
|
4324
4324
|
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4325
|
-
var require_ref = __commonJS((
|
|
4326
|
-
Object.defineProperty(
|
|
4327
|
-
|
|
4325
|
+
var require_ref = __commonJS((exports) => {
|
|
4326
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4327
|
+
exports.callRef = exports.getValidate = undefined;
|
|
4328
4328
|
var ref_error_1 = require_ref_error();
|
|
4329
4329
|
var code_1 = require_code2();
|
|
4330
4330
|
var codegen_1 = require_codegen();
|
|
@@ -4375,7 +4375,7 @@ var require_ref = __commonJS((exports2) => {
|
|
|
4375
4375
|
const { gen } = cxt;
|
|
4376
4376
|
return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
|
|
4377
4377
|
}
|
|
4378
|
-
|
|
4378
|
+
exports.getValidate = getValidate;
|
|
4379
4379
|
function callRef(cxt, v, sch, $async) {
|
|
4380
4380
|
const { gen, it } = cxt;
|
|
4381
4381
|
const { allErrors, schemaEnv: env, opts } = it;
|
|
@@ -4436,13 +4436,13 @@ var require_ref = __commonJS((exports2) => {
|
|
|
4436
4436
|
}
|
|
4437
4437
|
}
|
|
4438
4438
|
}
|
|
4439
|
-
|
|
4440
|
-
|
|
4439
|
+
exports.callRef = callRef;
|
|
4440
|
+
exports.default = def;
|
|
4441
4441
|
});
|
|
4442
4442
|
|
|
4443
4443
|
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
4444
|
-
var require_core2 = __commonJS((
|
|
4445
|
-
Object.defineProperty(
|
|
4444
|
+
var require_core2 = __commonJS((exports) => {
|
|
4445
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4446
4446
|
var id_1 = require_id();
|
|
4447
4447
|
var ref_1 = require_ref();
|
|
4448
4448
|
var core2 = [
|
|
@@ -4455,12 +4455,12 @@ var require_core2 = __commonJS((exports2) => {
|
|
|
4455
4455
|
id_1.default,
|
|
4456
4456
|
ref_1.default
|
|
4457
4457
|
];
|
|
4458
|
-
|
|
4458
|
+
exports.default = core2;
|
|
4459
4459
|
});
|
|
4460
4460
|
|
|
4461
4461
|
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4462
|
-
var require_limitNumber = __commonJS((
|
|
4463
|
-
Object.defineProperty(
|
|
4462
|
+
var require_limitNumber = __commonJS((exports) => {
|
|
4463
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4464
4464
|
var codegen_1 = require_codegen();
|
|
4465
4465
|
var ops = codegen_1.operators;
|
|
4466
4466
|
var KWDs = {
|
|
@@ -4484,12 +4484,12 @@ var require_limitNumber = __commonJS((exports2) => {
|
|
|
4484
4484
|
cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
|
|
4485
4485
|
}
|
|
4486
4486
|
};
|
|
4487
|
-
|
|
4487
|
+
exports.default = def;
|
|
4488
4488
|
});
|
|
4489
4489
|
|
|
4490
4490
|
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4491
|
-
var require_multipleOf = __commonJS((
|
|
4492
|
-
Object.defineProperty(
|
|
4491
|
+
var require_multipleOf = __commonJS((exports) => {
|
|
4492
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4493
4493
|
var codegen_1 = require_codegen();
|
|
4494
4494
|
var error48 = {
|
|
4495
4495
|
message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
|
|
@@ -4509,12 +4509,12 @@ var require_multipleOf = __commonJS((exports2) => {
|
|
|
4509
4509
|
cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
|
|
4510
4510
|
}
|
|
4511
4511
|
};
|
|
4512
|
-
|
|
4512
|
+
exports.default = def;
|
|
4513
4513
|
});
|
|
4514
4514
|
|
|
4515
4515
|
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
4516
|
-
var require_ucs2length = __commonJS((
|
|
4517
|
-
Object.defineProperty(
|
|
4516
|
+
var require_ucs2length = __commonJS((exports) => {
|
|
4517
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4518
4518
|
function ucs2length(str) {
|
|
4519
4519
|
const len = str.length;
|
|
4520
4520
|
let length = 0;
|
|
@@ -4531,13 +4531,13 @@ var require_ucs2length = __commonJS((exports2) => {
|
|
|
4531
4531
|
}
|
|
4532
4532
|
return length;
|
|
4533
4533
|
}
|
|
4534
|
-
|
|
4534
|
+
exports.default = ucs2length;
|
|
4535
4535
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
4536
4536
|
});
|
|
4537
4537
|
|
|
4538
4538
|
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4539
|
-
var require_limitLength = __commonJS((
|
|
4540
|
-
Object.defineProperty(
|
|
4539
|
+
var require_limitLength = __commonJS((exports) => {
|
|
4540
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4541
4541
|
var codegen_1 = require_codegen();
|
|
4542
4542
|
var util_1 = require_util();
|
|
4543
4543
|
var ucs2length_1 = require_ucs2length();
|
|
@@ -4561,12 +4561,12 @@ var require_limitLength = __commonJS((exports2) => {
|
|
|
4561
4561
|
cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`);
|
|
4562
4562
|
}
|
|
4563
4563
|
};
|
|
4564
|
-
|
|
4564
|
+
exports.default = def;
|
|
4565
4565
|
});
|
|
4566
4566
|
|
|
4567
4567
|
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4568
|
-
var require_pattern = __commonJS((
|
|
4569
|
-
Object.defineProperty(
|
|
4568
|
+
var require_pattern = __commonJS((exports) => {
|
|
4569
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4570
4570
|
var code_1 = require_code2();
|
|
4571
4571
|
var util_1 = require_util();
|
|
4572
4572
|
var codegen_1 = require_codegen();
|
|
@@ -4595,12 +4595,12 @@ var require_pattern = __commonJS((exports2) => {
|
|
|
4595
4595
|
}
|
|
4596
4596
|
}
|
|
4597
4597
|
};
|
|
4598
|
-
|
|
4598
|
+
exports.default = def;
|
|
4599
4599
|
});
|
|
4600
4600
|
|
|
4601
4601
|
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4602
|
-
var require_limitProperties = __commonJS((
|
|
4603
|
-
Object.defineProperty(
|
|
4602
|
+
var require_limitProperties = __commonJS((exports) => {
|
|
4603
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4604
4604
|
var codegen_1 = require_codegen();
|
|
4605
4605
|
var error48 = {
|
|
4606
4606
|
message({ keyword, schemaCode }) {
|
|
@@ -4621,12 +4621,12 @@ var require_limitProperties = __commonJS((exports2) => {
|
|
|
4621
4621
|
cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`);
|
|
4622
4622
|
}
|
|
4623
4623
|
};
|
|
4624
|
-
|
|
4624
|
+
exports.default = def;
|
|
4625
4625
|
});
|
|
4626
4626
|
|
|
4627
4627
|
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4628
|
-
var require_required = __commonJS((
|
|
4629
|
-
Object.defineProperty(
|
|
4628
|
+
var require_required = __commonJS((exports) => {
|
|
4629
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4630
4630
|
var code_1 = require_code2();
|
|
4631
4631
|
var codegen_1 = require_codegen();
|
|
4632
4632
|
var util_1 = require_util();
|
|
@@ -4700,12 +4700,12 @@ var require_required = __commonJS((exports2) => {
|
|
|
4700
4700
|
}
|
|
4701
4701
|
}
|
|
4702
4702
|
};
|
|
4703
|
-
|
|
4703
|
+
exports.default = def;
|
|
4704
4704
|
});
|
|
4705
4705
|
|
|
4706
4706
|
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4707
|
-
var require_limitItems = __commonJS((
|
|
4708
|
-
Object.defineProperty(
|
|
4707
|
+
var require_limitItems = __commonJS((exports) => {
|
|
4708
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4709
4709
|
var codegen_1 = require_codegen();
|
|
4710
4710
|
var error48 = {
|
|
4711
4711
|
message({ keyword, schemaCode }) {
|
|
@@ -4726,20 +4726,20 @@ var require_limitItems = __commonJS((exports2) => {
|
|
|
4726
4726
|
cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`);
|
|
4727
4727
|
}
|
|
4728
4728
|
};
|
|
4729
|
-
|
|
4729
|
+
exports.default = def;
|
|
4730
4730
|
});
|
|
4731
4731
|
|
|
4732
4732
|
// node_modules/ajv/dist/runtime/equal.js
|
|
4733
|
-
var require_equal = __commonJS((
|
|
4734
|
-
Object.defineProperty(
|
|
4733
|
+
var require_equal = __commonJS((exports) => {
|
|
4734
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4735
4735
|
var equal = require_fast_deep_equal();
|
|
4736
4736
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
4737
|
-
|
|
4737
|
+
exports.default = equal;
|
|
4738
4738
|
});
|
|
4739
4739
|
|
|
4740
4740
|
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4741
|
-
var require_uniqueItems = __commonJS((
|
|
4742
|
-
Object.defineProperty(
|
|
4741
|
+
var require_uniqueItems = __commonJS((exports) => {
|
|
4742
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4743
4743
|
var dataType_1 = require_dataType();
|
|
4744
4744
|
var codegen_1 = require_codegen();
|
|
4745
4745
|
var util_1 = require_util();
|
|
@@ -4798,12 +4798,12 @@ var require_uniqueItems = __commonJS((exports2) => {
|
|
|
4798
4798
|
}
|
|
4799
4799
|
}
|
|
4800
4800
|
};
|
|
4801
|
-
|
|
4801
|
+
exports.default = def;
|
|
4802
4802
|
});
|
|
4803
4803
|
|
|
4804
4804
|
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4805
|
-
var require_const = __commonJS((
|
|
4806
|
-
Object.defineProperty(
|
|
4805
|
+
var require_const = __commonJS((exports) => {
|
|
4806
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4807
4807
|
var codegen_1 = require_codegen();
|
|
4808
4808
|
var util_1 = require_util();
|
|
4809
4809
|
var equal_1 = require_equal();
|
|
@@ -4824,12 +4824,12 @@ var require_const = __commonJS((exports2) => {
|
|
|
4824
4824
|
}
|
|
4825
4825
|
}
|
|
4826
4826
|
};
|
|
4827
|
-
|
|
4827
|
+
exports.default = def;
|
|
4828
4828
|
});
|
|
4829
4829
|
|
|
4830
4830
|
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
4831
|
-
var require_enum = __commonJS((
|
|
4832
|
-
Object.defineProperty(
|
|
4831
|
+
var require_enum = __commonJS((exports) => {
|
|
4832
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4833
4833
|
var codegen_1 = require_codegen();
|
|
4834
4834
|
var util_1 = require_util();
|
|
4835
4835
|
var equal_1 = require_equal();
|
|
@@ -4870,12 +4870,12 @@ var require_enum = __commonJS((exports2) => {
|
|
|
4870
4870
|
}
|
|
4871
4871
|
}
|
|
4872
4872
|
};
|
|
4873
|
-
|
|
4873
|
+
exports.default = def;
|
|
4874
4874
|
});
|
|
4875
4875
|
|
|
4876
4876
|
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
4877
|
-
var require_validation = __commonJS((
|
|
4878
|
-
Object.defineProperty(
|
|
4877
|
+
var require_validation = __commonJS((exports) => {
|
|
4878
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4879
4879
|
var limitNumber_1 = require_limitNumber();
|
|
4880
4880
|
var multipleOf_1 = require_multipleOf();
|
|
4881
4881
|
var limitLength_1 = require_limitLength();
|
|
@@ -4900,13 +4900,13 @@ var require_validation = __commonJS((exports2) => {
|
|
|
4900
4900
|
const_1.default,
|
|
4901
4901
|
enum_1.default
|
|
4902
4902
|
];
|
|
4903
|
-
|
|
4903
|
+
exports.default = validation;
|
|
4904
4904
|
});
|
|
4905
4905
|
|
|
4906
4906
|
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
4907
|
-
var require_additionalItems = __commonJS((
|
|
4908
|
-
Object.defineProperty(
|
|
4909
|
-
|
|
4907
|
+
var require_additionalItems = __commonJS((exports) => {
|
|
4908
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4909
|
+
exports.validateAdditionalItems = undefined;
|
|
4910
4910
|
var codegen_1 = require_codegen();
|
|
4911
4911
|
var util_1 = require_util();
|
|
4912
4912
|
var error48 = {
|
|
@@ -4949,14 +4949,14 @@ var require_additionalItems = __commonJS((exports2) => {
|
|
|
4949
4949
|
});
|
|
4950
4950
|
}
|
|
4951
4951
|
}
|
|
4952
|
-
|
|
4953
|
-
|
|
4952
|
+
exports.validateAdditionalItems = validateAdditionalItems;
|
|
4953
|
+
exports.default = def;
|
|
4954
4954
|
});
|
|
4955
4955
|
|
|
4956
4956
|
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
4957
|
-
var require_items = __commonJS((
|
|
4958
|
-
Object.defineProperty(
|
|
4959
|
-
|
|
4957
|
+
var require_items = __commonJS((exports) => {
|
|
4958
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4959
|
+
exports.validateTuple = undefined;
|
|
4960
4960
|
var codegen_1 = require_codegen();
|
|
4961
4961
|
var util_1 = require_util();
|
|
4962
4962
|
var code_1 = require_code2();
|
|
@@ -5003,13 +5003,13 @@ var require_items = __commonJS((exports2) => {
|
|
|
5003
5003
|
}
|
|
5004
5004
|
}
|
|
5005
5005
|
}
|
|
5006
|
-
|
|
5007
|
-
|
|
5006
|
+
exports.validateTuple = validateTuple;
|
|
5007
|
+
exports.default = def;
|
|
5008
5008
|
});
|
|
5009
5009
|
|
|
5010
5010
|
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5011
|
-
var require_prefixItems = __commonJS((
|
|
5012
|
-
Object.defineProperty(
|
|
5011
|
+
var require_prefixItems = __commonJS((exports) => {
|
|
5012
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5013
5013
|
var items_1 = require_items();
|
|
5014
5014
|
var def = {
|
|
5015
5015
|
keyword: "prefixItems",
|
|
@@ -5018,12 +5018,12 @@ var require_prefixItems = __commonJS((exports2) => {
|
|
|
5018
5018
|
before: "uniqueItems",
|
|
5019
5019
|
code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
|
|
5020
5020
|
};
|
|
5021
|
-
|
|
5021
|
+
exports.default = def;
|
|
5022
5022
|
});
|
|
5023
5023
|
|
|
5024
5024
|
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5025
|
-
var require_items2020 = __commonJS((
|
|
5026
|
-
Object.defineProperty(
|
|
5025
|
+
var require_items2020 = __commonJS((exports) => {
|
|
5026
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5027
5027
|
var codegen_1 = require_codegen();
|
|
5028
5028
|
var util_1 = require_util();
|
|
5029
5029
|
var code_1 = require_code2();
|
|
@@ -5050,12 +5050,12 @@ var require_items2020 = __commonJS((exports2) => {
|
|
|
5050
5050
|
cxt.ok((0, code_1.validateArray)(cxt));
|
|
5051
5051
|
}
|
|
5052
5052
|
};
|
|
5053
|
-
|
|
5053
|
+
exports.default = def;
|
|
5054
5054
|
});
|
|
5055
5055
|
|
|
5056
5056
|
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5057
|
-
var require_contains = __commonJS((
|
|
5058
|
-
Object.defineProperty(
|
|
5057
|
+
var require_contains = __commonJS((exports) => {
|
|
5058
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5059
5059
|
var codegen_1 = require_codegen();
|
|
5060
5060
|
var util_1 = require_util();
|
|
5061
5061
|
var error48 = {
|
|
@@ -5141,17 +5141,17 @@ var require_contains = __commonJS((exports2) => {
|
|
|
5141
5141
|
}
|
|
5142
5142
|
}
|
|
5143
5143
|
};
|
|
5144
|
-
|
|
5144
|
+
exports.default = def;
|
|
5145
5145
|
});
|
|
5146
5146
|
|
|
5147
5147
|
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5148
|
-
var require_dependencies = __commonJS((
|
|
5149
|
-
Object.defineProperty(
|
|
5150
|
-
|
|
5148
|
+
var require_dependencies = __commonJS((exports) => {
|
|
5149
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5150
|
+
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
5151
5151
|
var codegen_1 = require_codegen();
|
|
5152
5152
|
var util_1 = require_util();
|
|
5153
5153
|
var code_1 = require_code2();
|
|
5154
|
-
|
|
5154
|
+
exports.error = {
|
|
5155
5155
|
message: ({ params: { property, depsCount, deps } }) => {
|
|
5156
5156
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
5157
5157
|
return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
|
|
@@ -5165,7 +5165,7 @@ var require_dependencies = __commonJS((exports2) => {
|
|
|
5165
5165
|
keyword: "dependencies",
|
|
5166
5166
|
type: "object",
|
|
5167
5167
|
schemaType: "object",
|
|
5168
|
-
error:
|
|
5168
|
+
error: exports.error,
|
|
5169
5169
|
code(cxt) {
|
|
5170
5170
|
const [propDeps, schDeps] = splitDependencies(cxt);
|
|
5171
5171
|
validatePropertyDeps(cxt, propDeps);
|
|
@@ -5211,7 +5211,7 @@ var require_dependencies = __commonJS((exports2) => {
|
|
|
5211
5211
|
}
|
|
5212
5212
|
}
|
|
5213
5213
|
}
|
|
5214
|
-
|
|
5214
|
+
exports.validatePropertyDeps = validatePropertyDeps;
|
|
5215
5215
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
5216
5216
|
const { gen, data, keyword, it } = cxt;
|
|
5217
5217
|
const valid = gen.name("valid");
|
|
@@ -5225,13 +5225,13 @@ var require_dependencies = __commonJS((exports2) => {
|
|
|
5225
5225
|
cxt.ok(valid);
|
|
5226
5226
|
}
|
|
5227
5227
|
}
|
|
5228
|
-
|
|
5229
|
-
|
|
5228
|
+
exports.validateSchemaDeps = validateSchemaDeps;
|
|
5229
|
+
exports.default = def;
|
|
5230
5230
|
});
|
|
5231
5231
|
|
|
5232
5232
|
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5233
|
-
var require_propertyNames = __commonJS((
|
|
5234
|
-
Object.defineProperty(
|
|
5233
|
+
var require_propertyNames = __commonJS((exports) => {
|
|
5234
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5235
5235
|
var codegen_1 = require_codegen();
|
|
5236
5236
|
var util_1 = require_util();
|
|
5237
5237
|
var error48 = {
|
|
@@ -5266,12 +5266,12 @@ var require_propertyNames = __commonJS((exports2) => {
|
|
|
5266
5266
|
cxt.ok(valid);
|
|
5267
5267
|
}
|
|
5268
5268
|
};
|
|
5269
|
-
|
|
5269
|
+
exports.default = def;
|
|
5270
5270
|
});
|
|
5271
5271
|
|
|
5272
5272
|
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5273
|
-
var require_additionalProperties = __commonJS((
|
|
5274
|
-
Object.defineProperty(
|
|
5273
|
+
var require_additionalProperties = __commonJS((exports) => {
|
|
5274
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5275
5275
|
var code_1 = require_code2();
|
|
5276
5276
|
var codegen_1 = require_codegen();
|
|
5277
5277
|
var names_1 = require_names();
|
|
@@ -5369,12 +5369,12 @@ var require_additionalProperties = __commonJS((exports2) => {
|
|
|
5369
5369
|
}
|
|
5370
5370
|
}
|
|
5371
5371
|
};
|
|
5372
|
-
|
|
5372
|
+
exports.default = def;
|
|
5373
5373
|
});
|
|
5374
5374
|
|
|
5375
5375
|
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5376
|
-
var require_properties = __commonJS((
|
|
5377
|
-
Object.defineProperty(
|
|
5376
|
+
var require_properties = __commonJS((exports) => {
|
|
5377
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5378
5378
|
var validate_1 = require_validate();
|
|
5379
5379
|
var code_1 = require_code2();
|
|
5380
5380
|
var util_1 = require_util();
|
|
@@ -5424,12 +5424,12 @@ var require_properties = __commonJS((exports2) => {
|
|
|
5424
5424
|
}
|
|
5425
5425
|
}
|
|
5426
5426
|
};
|
|
5427
|
-
|
|
5427
|
+
exports.default = def;
|
|
5428
5428
|
});
|
|
5429
5429
|
|
|
5430
5430
|
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5431
|
-
var require_patternProperties = __commonJS((
|
|
5432
|
-
Object.defineProperty(
|
|
5431
|
+
var require_patternProperties = __commonJS((exports) => {
|
|
5432
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5433
5433
|
var code_1 = require_code2();
|
|
5434
5434
|
var codegen_1 = require_codegen();
|
|
5435
5435
|
var util_1 = require_util();
|
|
@@ -5495,12 +5495,12 @@ var require_patternProperties = __commonJS((exports2) => {
|
|
|
5495
5495
|
}
|
|
5496
5496
|
}
|
|
5497
5497
|
};
|
|
5498
|
-
|
|
5498
|
+
exports.default = def;
|
|
5499
5499
|
});
|
|
5500
5500
|
|
|
5501
5501
|
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5502
|
-
var require_not = __commonJS((
|
|
5503
|
-
Object.defineProperty(
|
|
5502
|
+
var require_not = __commonJS((exports) => {
|
|
5503
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5504
5504
|
var util_1 = require_util();
|
|
5505
5505
|
var def = {
|
|
5506
5506
|
keyword: "not",
|
|
@@ -5523,12 +5523,12 @@ var require_not = __commonJS((exports2) => {
|
|
|
5523
5523
|
},
|
|
5524
5524
|
error: { message: "must NOT be valid" }
|
|
5525
5525
|
};
|
|
5526
|
-
|
|
5526
|
+
exports.default = def;
|
|
5527
5527
|
});
|
|
5528
5528
|
|
|
5529
5529
|
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5530
|
-
var require_anyOf = __commonJS((
|
|
5531
|
-
Object.defineProperty(
|
|
5530
|
+
var require_anyOf = __commonJS((exports) => {
|
|
5531
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5532
5532
|
var code_1 = require_code2();
|
|
5533
5533
|
var def = {
|
|
5534
5534
|
keyword: "anyOf",
|
|
@@ -5537,12 +5537,12 @@ var require_anyOf = __commonJS((exports2) => {
|
|
|
5537
5537
|
code: code_1.validateUnion,
|
|
5538
5538
|
error: { message: "must match a schema in anyOf" }
|
|
5539
5539
|
};
|
|
5540
|
-
|
|
5540
|
+
exports.default = def;
|
|
5541
5541
|
});
|
|
5542
5542
|
|
|
5543
5543
|
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5544
|
-
var require_oneOf = __commonJS((
|
|
5545
|
-
Object.defineProperty(
|
|
5544
|
+
var require_oneOf = __commonJS((exports) => {
|
|
5545
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5546
5546
|
var codegen_1 = require_codegen();
|
|
5547
5547
|
var util_1 = require_util();
|
|
5548
5548
|
var error48 = {
|
|
@@ -5592,12 +5592,12 @@ var require_oneOf = __commonJS((exports2) => {
|
|
|
5592
5592
|
}
|
|
5593
5593
|
}
|
|
5594
5594
|
};
|
|
5595
|
-
|
|
5595
|
+
exports.default = def;
|
|
5596
5596
|
});
|
|
5597
5597
|
|
|
5598
5598
|
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5599
|
-
var require_allOf = __commonJS((
|
|
5600
|
-
Object.defineProperty(
|
|
5599
|
+
var require_allOf = __commonJS((exports) => {
|
|
5600
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5601
5601
|
var util_1 = require_util();
|
|
5602
5602
|
var def = {
|
|
5603
5603
|
keyword: "allOf",
|
|
@@ -5616,12 +5616,12 @@ var require_allOf = __commonJS((exports2) => {
|
|
|
5616
5616
|
});
|
|
5617
5617
|
}
|
|
5618
5618
|
};
|
|
5619
|
-
|
|
5619
|
+
exports.default = def;
|
|
5620
5620
|
});
|
|
5621
5621
|
|
|
5622
5622
|
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5623
|
-
var require_if = __commonJS((
|
|
5624
|
-
Object.defineProperty(
|
|
5623
|
+
var require_if = __commonJS((exports) => {
|
|
5624
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5625
5625
|
var codegen_1 = require_codegen();
|
|
5626
5626
|
var util_1 = require_util();
|
|
5627
5627
|
var error48 = {
|
|
@@ -5682,12 +5682,12 @@ var require_if = __commonJS((exports2) => {
|
|
|
5682
5682
|
const schema = it.schema[keyword];
|
|
5683
5683
|
return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
5684
5684
|
}
|
|
5685
|
-
|
|
5685
|
+
exports.default = def;
|
|
5686
5686
|
});
|
|
5687
5687
|
|
|
5688
5688
|
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5689
|
-
var require_thenElse = __commonJS((
|
|
5690
|
-
Object.defineProperty(
|
|
5689
|
+
var require_thenElse = __commonJS((exports) => {
|
|
5690
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5691
5691
|
var util_1 = require_util();
|
|
5692
5692
|
var def = {
|
|
5693
5693
|
keyword: ["then", "else"],
|
|
@@ -5697,12 +5697,12 @@ var require_thenElse = __commonJS((exports2) => {
|
|
|
5697
5697
|
(0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`);
|
|
5698
5698
|
}
|
|
5699
5699
|
};
|
|
5700
|
-
|
|
5700
|
+
exports.default = def;
|
|
5701
5701
|
});
|
|
5702
5702
|
|
|
5703
5703
|
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5704
|
-
var require_applicator = __commonJS((
|
|
5705
|
-
Object.defineProperty(
|
|
5704
|
+
var require_applicator = __commonJS((exports) => {
|
|
5705
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5706
5706
|
var additionalItems_1 = require_additionalItems();
|
|
5707
5707
|
var prefixItems_1 = require_prefixItems();
|
|
5708
5708
|
var items_1 = require_items();
|
|
@@ -5740,12 +5740,12 @@ var require_applicator = __commonJS((exports2) => {
|
|
|
5740
5740
|
applicator.push(contains_1.default);
|
|
5741
5741
|
return applicator;
|
|
5742
5742
|
}
|
|
5743
|
-
|
|
5743
|
+
exports.default = getApplicator;
|
|
5744
5744
|
});
|
|
5745
5745
|
|
|
5746
5746
|
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
5747
|
-
var require_format = __commonJS((
|
|
5748
|
-
Object.defineProperty(
|
|
5747
|
+
var require_format = __commonJS((exports) => {
|
|
5748
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5749
5749
|
var codegen_1 = require_codegen();
|
|
5750
5750
|
var error48 = {
|
|
5751
5751
|
message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
|
|
@@ -5827,22 +5827,22 @@ var require_format = __commonJS((exports2) => {
|
|
|
5827
5827
|
}
|
|
5828
5828
|
}
|
|
5829
5829
|
};
|
|
5830
|
-
|
|
5830
|
+
exports.default = def;
|
|
5831
5831
|
});
|
|
5832
5832
|
|
|
5833
5833
|
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
5834
|
-
var require_format2 = __commonJS((
|
|
5835
|
-
Object.defineProperty(
|
|
5834
|
+
var require_format2 = __commonJS((exports) => {
|
|
5835
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5836
5836
|
var format_1 = require_format();
|
|
5837
5837
|
var format = [format_1.default];
|
|
5838
|
-
|
|
5838
|
+
exports.default = format;
|
|
5839
5839
|
});
|
|
5840
5840
|
|
|
5841
5841
|
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
5842
|
-
var require_metadata = __commonJS((
|
|
5843
|
-
Object.defineProperty(
|
|
5844
|
-
|
|
5845
|
-
|
|
5842
|
+
var require_metadata = __commonJS((exports) => {
|
|
5843
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5844
|
+
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
5845
|
+
exports.metadataVocabulary = [
|
|
5846
5846
|
"title",
|
|
5847
5847
|
"description",
|
|
5848
5848
|
"default",
|
|
@@ -5851,7 +5851,7 @@ var require_metadata = __commonJS((exports2) => {
|
|
|
5851
5851
|
"writeOnly",
|
|
5852
5852
|
"examples"
|
|
5853
5853
|
];
|
|
5854
|
-
|
|
5854
|
+
exports.contentVocabulary = [
|
|
5855
5855
|
"contentMediaType",
|
|
5856
5856
|
"contentEncoding",
|
|
5857
5857
|
"contentSchema"
|
|
@@ -5859,8 +5859,8 @@ var require_metadata = __commonJS((exports2) => {
|
|
|
5859
5859
|
});
|
|
5860
5860
|
|
|
5861
5861
|
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
5862
|
-
var require_draft7 = __commonJS((
|
|
5863
|
-
Object.defineProperty(
|
|
5862
|
+
var require_draft7 = __commonJS((exports) => {
|
|
5863
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5864
5864
|
var core_1 = require_core2();
|
|
5865
5865
|
var validation_1 = require_validation();
|
|
5866
5866
|
var applicator_1 = require_applicator();
|
|
@@ -5874,23 +5874,23 @@ var require_draft7 = __commonJS((exports2) => {
|
|
|
5874
5874
|
metadata_1.metadataVocabulary,
|
|
5875
5875
|
metadata_1.contentVocabulary
|
|
5876
5876
|
];
|
|
5877
|
-
|
|
5877
|
+
exports.default = draft7Vocabularies;
|
|
5878
5878
|
});
|
|
5879
5879
|
|
|
5880
5880
|
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
5881
|
-
var require_types = __commonJS((
|
|
5882
|
-
Object.defineProperty(
|
|
5883
|
-
|
|
5881
|
+
var require_types = __commonJS((exports) => {
|
|
5882
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5883
|
+
exports.DiscrError = undefined;
|
|
5884
5884
|
var DiscrError;
|
|
5885
5885
|
(function(DiscrError2) {
|
|
5886
5886
|
DiscrError2["Tag"] = "tag";
|
|
5887
5887
|
DiscrError2["Mapping"] = "mapping";
|
|
5888
|
-
})(DiscrError || (
|
|
5888
|
+
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
5889
5889
|
});
|
|
5890
5890
|
|
|
5891
5891
|
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
5892
|
-
var require_discriminator = __commonJS((
|
|
5893
|
-
Object.defineProperty(
|
|
5892
|
+
var require_discriminator = __commonJS((exports) => {
|
|
5893
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5894
5894
|
var codegen_1 = require_codegen();
|
|
5895
5895
|
var types_1 = require_types();
|
|
5896
5896
|
var compile_1 = require_compile();
|
|
@@ -5987,12 +5987,12 @@ var require_discriminator = __commonJS((exports2) => {
|
|
|
5987
5987
|
}
|
|
5988
5988
|
}
|
|
5989
5989
|
};
|
|
5990
|
-
|
|
5990
|
+
exports.default = def;
|
|
5991
5991
|
});
|
|
5992
5992
|
|
|
5993
5993
|
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
5994
|
-
var require_json_schema_draft_07 = __commonJS((
|
|
5995
|
-
|
|
5994
|
+
var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
5995
|
+
module.exports = {
|
|
5996
5996
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
5997
5997
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
5998
5998
|
title: "Core schema meta-schema",
|
|
@@ -6146,9 +6146,9 @@ var require_json_schema_draft_07 = __commonJS((exports2, module2) => {
|
|
|
6146
6146
|
});
|
|
6147
6147
|
|
|
6148
6148
|
// node_modules/ajv/dist/ajv.js
|
|
6149
|
-
var require_ajv = __commonJS((
|
|
6150
|
-
Object.defineProperty(
|
|
6151
|
-
|
|
6149
|
+
var require_ajv = __commonJS((exports, module) => {
|
|
6150
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6151
|
+
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
6152
6152
|
var core_1 = require_core();
|
|
6153
6153
|
var draft7_1 = require_draft7();
|
|
6154
6154
|
var discriminator_1 = require_discriminator();
|
|
@@ -6175,52 +6175,52 @@ var require_ajv = __commonJS((exports2, module2) => {
|
|
|
6175
6175
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined);
|
|
6176
6176
|
}
|
|
6177
6177
|
}
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
Object.defineProperty(
|
|
6182
|
-
|
|
6178
|
+
exports.Ajv = Ajv;
|
|
6179
|
+
module.exports = exports = Ajv;
|
|
6180
|
+
module.exports.Ajv = Ajv;
|
|
6181
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6182
|
+
exports.default = Ajv;
|
|
6183
6183
|
var validate_1 = require_validate();
|
|
6184
|
-
Object.defineProperty(
|
|
6184
|
+
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
|
|
6185
6185
|
return validate_1.KeywordCxt;
|
|
6186
6186
|
} });
|
|
6187
6187
|
var codegen_1 = require_codegen();
|
|
6188
|
-
Object.defineProperty(
|
|
6188
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
6189
6189
|
return codegen_1._;
|
|
6190
6190
|
} });
|
|
6191
|
-
Object.defineProperty(
|
|
6191
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
6192
6192
|
return codegen_1.str;
|
|
6193
6193
|
} });
|
|
6194
|
-
Object.defineProperty(
|
|
6194
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
6195
6195
|
return codegen_1.stringify;
|
|
6196
6196
|
} });
|
|
6197
|
-
Object.defineProperty(
|
|
6197
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
6198
6198
|
return codegen_1.nil;
|
|
6199
6199
|
} });
|
|
6200
|
-
Object.defineProperty(
|
|
6200
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
6201
6201
|
return codegen_1.Name;
|
|
6202
6202
|
} });
|
|
6203
|
-
Object.defineProperty(
|
|
6203
|
+
Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
|
|
6204
6204
|
return codegen_1.CodeGen;
|
|
6205
6205
|
} });
|
|
6206
6206
|
var validation_error_1 = require_validation_error();
|
|
6207
|
-
Object.defineProperty(
|
|
6207
|
+
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() {
|
|
6208
6208
|
return validation_error_1.default;
|
|
6209
6209
|
} });
|
|
6210
6210
|
var ref_error_1 = require_ref_error();
|
|
6211
|
-
Object.defineProperty(
|
|
6211
|
+
Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() {
|
|
6212
6212
|
return ref_error_1.default;
|
|
6213
6213
|
} });
|
|
6214
6214
|
});
|
|
6215
6215
|
|
|
6216
6216
|
// node_modules/ajv-formats/dist/formats.js
|
|
6217
|
-
var require_formats = __commonJS((
|
|
6218
|
-
Object.defineProperty(
|
|
6219
|
-
|
|
6217
|
+
var require_formats = __commonJS((exports) => {
|
|
6218
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6219
|
+
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
6220
6220
|
function fmtDef(validate, compare) {
|
|
6221
6221
|
return { validate, compare };
|
|
6222
6222
|
}
|
|
6223
|
-
|
|
6223
|
+
exports.fullFormats = {
|
|
6224
6224
|
date: fmtDef(date6, compareDate),
|
|
6225
6225
|
time: fmtDef(getTime(true), compareTime),
|
|
6226
6226
|
"date-time": fmtDef(getDateTime(true), compareDateTime),
|
|
@@ -6248,8 +6248,8 @@ var require_formats = __commonJS((exports2) => {
|
|
|
6248
6248
|
password: true,
|
|
6249
6249
|
binary: true
|
|
6250
6250
|
};
|
|
6251
|
-
|
|
6252
|
-
...
|
|
6251
|
+
exports.fastFormats = {
|
|
6252
|
+
...exports.fullFormats,
|
|
6253
6253
|
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
|
|
6254
6254
|
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
|
|
6255
6255
|
"date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
|
|
@@ -6259,7 +6259,7 @@ var require_formats = __commonJS((exports2) => {
|
|
|
6259
6259
|
"uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
|
|
6260
6260
|
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
|
|
6261
6261
|
};
|
|
6262
|
-
|
|
6262
|
+
exports.formatNames = Object.keys(exports.fullFormats);
|
|
6263
6263
|
function isLeapYear(year) {
|
|
6264
6264
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
6265
6265
|
}
|
|
@@ -6391,9 +6391,9 @@ var require_formats = __commonJS((exports2) => {
|
|
|
6391
6391
|
});
|
|
6392
6392
|
|
|
6393
6393
|
// node_modules/ajv-formats/dist/limit.js
|
|
6394
|
-
var require_limit = __commonJS((
|
|
6395
|
-
Object.defineProperty(
|
|
6396
|
-
|
|
6394
|
+
var require_limit = __commonJS((exports) => {
|
|
6395
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6396
|
+
exports.formatLimitDefinition = undefined;
|
|
6397
6397
|
var ajv_1 = require_ajv();
|
|
6398
6398
|
var codegen_1 = require_codegen();
|
|
6399
6399
|
var ops = codegen_1.operators;
|
|
@@ -6407,7 +6407,7 @@ var require_limit = __commonJS((exports2) => {
|
|
|
6407
6407
|
message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
6408
6408
|
params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
|
|
6409
6409
|
};
|
|
6410
|
-
|
|
6410
|
+
exports.formatLimitDefinition = {
|
|
6411
6411
|
keyword: Object.keys(KWDs),
|
|
6412
6412
|
type: "string",
|
|
6413
6413
|
schemaType: "string",
|
|
@@ -6453,15 +6453,15 @@ var require_limit = __commonJS((exports2) => {
|
|
|
6453
6453
|
dependencies: ["format"]
|
|
6454
6454
|
};
|
|
6455
6455
|
var formatLimitPlugin = (ajv) => {
|
|
6456
|
-
ajv.addKeyword(
|
|
6456
|
+
ajv.addKeyword(exports.formatLimitDefinition);
|
|
6457
6457
|
return ajv;
|
|
6458
6458
|
};
|
|
6459
|
-
|
|
6459
|
+
exports.default = formatLimitPlugin;
|
|
6460
6460
|
});
|
|
6461
6461
|
|
|
6462
6462
|
// node_modules/ajv-formats/dist/index.js
|
|
6463
|
-
var require_dist = __commonJS((
|
|
6464
|
-
Object.defineProperty(
|
|
6463
|
+
var require_dist = __commonJS((exports, module) => {
|
|
6464
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6465
6465
|
var formats_1 = require_formats();
|
|
6466
6466
|
var limit_1 = require_limit();
|
|
6467
6467
|
var codegen_1 = require_codegen();
|
|
@@ -6493,9 +6493,9 @@ var require_dist = __commonJS((exports2, module2) => {
|
|
|
6493
6493
|
for (const f of list)
|
|
6494
6494
|
ajv.addFormat(f, fs[f]);
|
|
6495
6495
|
}
|
|
6496
|
-
|
|
6497
|
-
Object.defineProperty(
|
|
6498
|
-
|
|
6496
|
+
module.exports = exports = formatsPlugin;
|
|
6497
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6498
|
+
exports.default = formatsPlugin;
|
|
6499
6499
|
});
|
|
6500
6500
|
|
|
6501
6501
|
// node_modules/zod/v3/helpers/util.js
|
|
@@ -28296,7 +28296,7 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
28296
28296
|
};
|
|
28297
28297
|
|
|
28298
28298
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
28299
|
-
|
|
28299
|
+
import process3 from "node:process";
|
|
28300
28300
|
|
|
28301
28301
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
28302
28302
|
class ReadBuffer {
|
|
@@ -28330,7 +28330,7 @@ function serializeMessage(message) {
|
|
|
28330
28330
|
|
|
28331
28331
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
28332
28332
|
class StdioServerTransport {
|
|
28333
|
-
constructor(_stdin =
|
|
28333
|
+
constructor(_stdin = process3.stdin, _stdout = process3.stdout) {
|
|
28334
28334
|
this._stdin = _stdin;
|
|
28335
28335
|
this._stdout = _stdout;
|
|
28336
28336
|
this._readBuffer = new ReadBuffer;
|
|
@@ -28387,17 +28387,178 @@ class StdioServerTransport {
|
|
|
28387
28387
|
}
|
|
28388
28388
|
|
|
28389
28389
|
// src/mcp/server.ts
|
|
28390
|
-
|
|
28391
|
-
|
|
28392
|
-
|
|
28390
|
+
import { readFileSync } from "fs";
|
|
28391
|
+
import { join } from "path";
|
|
28392
|
+
import { homedir } from "os";
|
|
28393
|
+
|
|
28394
|
+
// src/proxy/home-proxy.ts
|
|
28395
|
+
import net from "net";
|
|
28396
|
+
var state = { server: null, port: 0, active: false };
|
|
28397
|
+
function handleSocks5(socket) {
|
|
28398
|
+
socket.on("error", () => socket.destroy());
|
|
28399
|
+
socket.once("data", (greeting) => {
|
|
28400
|
+
if (greeting[0] !== 5) {
|
|
28401
|
+
socket.destroy();
|
|
28402
|
+
return;
|
|
28403
|
+
}
|
|
28404
|
+
socket.write(Buffer.from([5, 0]));
|
|
28405
|
+
socket.once("data", (req) => {
|
|
28406
|
+
if (req[0] !== 5 || req[1] !== 1) {
|
|
28407
|
+
socket.destroy();
|
|
28408
|
+
return;
|
|
28409
|
+
}
|
|
28410
|
+
let host;
|
|
28411
|
+
let port;
|
|
28412
|
+
const addrType = req[3];
|
|
28413
|
+
if (addrType === 1) {
|
|
28414
|
+
host = `${req[4]}.${req[5]}.${req[6]}.${req[7]}`;
|
|
28415
|
+
port = req.readUInt16BE(8);
|
|
28416
|
+
} else if (addrType === 3) {
|
|
28417
|
+
const len = req[4];
|
|
28418
|
+
host = req.slice(5, 5 + len).toString();
|
|
28419
|
+
port = req.readUInt16BE(5 + len);
|
|
28420
|
+
} else if (addrType === 4) {
|
|
28421
|
+
const parts = [];
|
|
28422
|
+
for (let i = 0;i < 16; i += 2)
|
|
28423
|
+
parts.push(req.readUInt16BE(4 + i).toString(16));
|
|
28424
|
+
host = parts.join(":");
|
|
28425
|
+
port = req.readUInt16BE(20);
|
|
28426
|
+
} else {
|
|
28427
|
+
socket.destroy();
|
|
28428
|
+
return;
|
|
28429
|
+
}
|
|
28430
|
+
const target = net.connect(port, host, () => {
|
|
28431
|
+
const reply = Buffer.alloc(10);
|
|
28432
|
+
reply[0] = 5;
|
|
28433
|
+
reply[1] = 0;
|
|
28434
|
+
reply[2] = 0;
|
|
28435
|
+
reply[3] = 1;
|
|
28436
|
+
socket.write(reply);
|
|
28437
|
+
socket.pipe(target);
|
|
28438
|
+
target.pipe(socket);
|
|
28439
|
+
});
|
|
28440
|
+
target.on("error", () => socket.destroy());
|
|
28441
|
+
socket.on("close", () => target.destroy());
|
|
28442
|
+
});
|
|
28443
|
+
});
|
|
28444
|
+
}
|
|
28445
|
+
function startHomeProxy(preferredPort = 0) {
|
|
28446
|
+
return new Promise((resolve, reject) => {
|
|
28447
|
+
if (state.active && state.server) {
|
|
28448
|
+
resolve(state.port);
|
|
28449
|
+
return;
|
|
28450
|
+
}
|
|
28451
|
+
const server = net.createServer(handleSocks5);
|
|
28452
|
+
server.listen(preferredPort, "0.0.0.0", () => {
|
|
28453
|
+
state.server = server;
|
|
28454
|
+
state.port = server.address().port;
|
|
28455
|
+
state.active = true;
|
|
28456
|
+
resolve(state.port);
|
|
28457
|
+
});
|
|
28458
|
+
server.on("error", reject);
|
|
28459
|
+
});
|
|
28460
|
+
}
|
|
28461
|
+
function stopHomeProxy() {
|
|
28462
|
+
return new Promise((resolve) => {
|
|
28463
|
+
if (!state.server) {
|
|
28464
|
+
resolve();
|
|
28465
|
+
return;
|
|
28466
|
+
}
|
|
28467
|
+
state.server.close(() => {
|
|
28468
|
+
state.server = null;
|
|
28469
|
+
state.active = false;
|
|
28470
|
+
state.port = 0;
|
|
28471
|
+
resolve();
|
|
28472
|
+
});
|
|
28473
|
+
});
|
|
28474
|
+
}
|
|
28475
|
+
function getHomeProxyInfo() {
|
|
28476
|
+
return {
|
|
28477
|
+
active: state.active,
|
|
28478
|
+
port: state.port,
|
|
28479
|
+
proxyUrl: state.active ? `socks5://host.docker.internal:${state.port}` : null
|
|
28480
|
+
};
|
|
28481
|
+
}
|
|
28482
|
+
|
|
28483
|
+
// src/proxy/tunnel-client.ts
|
|
28484
|
+
import net2 from "net";
|
|
28485
|
+
async function startTunnel(apiBaseUrl, authToken) {
|
|
28486
|
+
const localSocksPort = await startHomeProxy();
|
|
28487
|
+
const wsUrl = apiBaseUrl.replace(/^http/, "ws") + "/proxy/tunnel";
|
|
28488
|
+
const ws = new globalThis.WebSocket(wsUrl);
|
|
28489
|
+
return new Promise((resolve, reject) => {
|
|
28490
|
+
const sockets = new Map;
|
|
28491
|
+
let done = false;
|
|
28492
|
+
const fail = (reason) => {
|
|
28493
|
+
if (!done) {
|
|
28494
|
+
done = true;
|
|
28495
|
+
reject(new Error(reason));
|
|
28496
|
+
}
|
|
28497
|
+
ws.close();
|
|
28498
|
+
};
|
|
28499
|
+
const stop = () => {
|
|
28500
|
+
ws.close();
|
|
28501
|
+
sockets.forEach((s) => s.destroy());
|
|
28502
|
+
sockets.clear();
|
|
28503
|
+
};
|
|
28504
|
+
ws.onopen = () => {
|
|
28505
|
+
ws.send(JSON.stringify({ type: "auth", token: authToken }));
|
|
28506
|
+
};
|
|
28507
|
+
ws.onmessage = (event) => {
|
|
28508
|
+
try {
|
|
28509
|
+
const msg = JSON.parse(typeof event.data === "string" ? event.data : event.data.toString());
|
|
28510
|
+
if (msg.type === "ready") {
|
|
28511
|
+
if (!done) {
|
|
28512
|
+
done = true;
|
|
28513
|
+
resolve({ remotePort: msg.port, stop });
|
|
28514
|
+
}
|
|
28515
|
+
return;
|
|
28516
|
+
}
|
|
28517
|
+
if (msg.type === "open") {
|
|
28518
|
+
const socket = net2.connect(localSocksPort, "127.0.0.1");
|
|
28519
|
+
sockets.set(msg.id, socket);
|
|
28520
|
+
socket.on("data", (data) => {
|
|
28521
|
+
if (ws.readyState === 1) {
|
|
28522
|
+
ws.send(JSON.stringify({ type: "data", id: msg.id, data: data.toString("base64") }));
|
|
28523
|
+
}
|
|
28524
|
+
});
|
|
28525
|
+
socket.on("close", () => {
|
|
28526
|
+
sockets.delete(msg.id);
|
|
28527
|
+
if (ws.readyState === 1)
|
|
28528
|
+
ws.send(JSON.stringify({ type: "close", id: msg.id }));
|
|
28529
|
+
});
|
|
28530
|
+
socket.on("error", () => socket.destroy());
|
|
28531
|
+
return;
|
|
28532
|
+
}
|
|
28533
|
+
if (msg.type === "data") {
|
|
28534
|
+
sockets.get(msg.id)?.write(Buffer.from(msg.data, "base64"));
|
|
28535
|
+
return;
|
|
28536
|
+
}
|
|
28537
|
+
if (msg.type === "close") {
|
|
28538
|
+
sockets.get(msg.id)?.destroy();
|
|
28539
|
+
sockets.delete(msg.id);
|
|
28540
|
+
}
|
|
28541
|
+
} catch {}
|
|
28542
|
+
};
|
|
28543
|
+
ws.onerror = (err) => fail(`WebSocket error: ${err?.message ?? "unknown"}`);
|
|
28544
|
+
ws.onclose = () => {
|
|
28545
|
+
sockets.forEach((s) => s.destroy());
|
|
28546
|
+
sockets.clear();
|
|
28547
|
+
};
|
|
28548
|
+
setTimeout(() => fail("Tunnel setup timed out (10s)"), 1e4);
|
|
28549
|
+
});
|
|
28550
|
+
}
|
|
28551
|
+
|
|
28552
|
+
// src/mcp/server.ts
|
|
28553
|
+
var activeTunnel = null;
|
|
28393
28554
|
var BASE_URL = process.env.IFRAMER_URL || "https://api.iframer.sh";
|
|
28394
|
-
var CREDENTIALS_PATH =
|
|
28555
|
+
var CREDENTIALS_PATH = join(homedir(), ".iframer", "credentials.json");
|
|
28395
28556
|
var cachedToken = null;
|
|
28396
28557
|
function loadToken() {
|
|
28397
28558
|
if (cachedToken)
|
|
28398
28559
|
return cachedToken;
|
|
28399
28560
|
try {
|
|
28400
|
-
const data = JSON.parse(
|
|
28561
|
+
const data = JSON.parse(readFileSync(CREDENTIALS_PATH, "utf8"));
|
|
28401
28562
|
cachedToken = data.token;
|
|
28402
28563
|
return cachedToken;
|
|
28403
28564
|
} catch {
|
|
@@ -28444,7 +28605,9 @@ WORKFLOW:
|
|
|
28444
28605
|
|
|
28445
28606
|
TIMEOUTS: Each step has a 20-second stale-state timeout. If nothing changes for 20s, iframer aborts with a detailed error.
|
|
28446
28607
|
|
|
28447
|
-
CREDENTIALS: Use "credentials" action=store to save login details encrypted server-side
|
|
28608
|
+
CREDENTIALS: Use "credentials" action=store to save login details encrypted server-side.
|
|
28609
|
+
|
|
28610
|
+
HOME PROXY: If the site is showing captchas or bot detection, use "proxy action=start" to route the browser through the user's own home network IP. This runs a SOCKS5 proxy on the user's Mac so all browser traffic exits from their real IP address. Use "proxy action=stop" to go back to the default proxy. Always try this before attempting to solve captchas manually.` : `iframer — browser access for AI agents when normal methods fail.
|
|
28448
28611
|
|
|
28449
28612
|
PHILOSOPHY: You are a capable agent. Do your work locally first. Only call iframer when you hit a wall: captcha, login-gated content, heavy bot detection, or content that requires a real browser to render. iframer is a swiss knife you pull out for hard problems, not your default browsing tool.
|
|
28450
28613
|
|
|
@@ -28464,7 +28627,9 @@ WORKFLOW:
|
|
|
28464
28627
|
|
|
28465
28628
|
TIMEOUTS: Each step has a 20-second stale-state timeout. If nothing changes on the page for 20s, iframer aborts and returns a detailed error. Retry, adjust your approach, or tell the user why it failed.
|
|
28466
28629
|
|
|
28467
|
-
CREDENTIALS: Use "credentials" action=store to prompt the user for login details. They're encrypted server-side — you never see them. Then use a login step in "execute"
|
|
28630
|
+
CREDENTIALS: Use "credentials" action=store to prompt the user for login details. They're encrypted server-side — you never see them. Then use a login step in "execute".
|
|
28631
|
+
|
|
28632
|
+
HOME PROXY: If the site is showing captchas or bot detection, use "proxy action=start" to route the browser through the user's own home network IP. This runs a SOCKS5 proxy on the user's Mac so all browser traffic exits from their real IP address. Use "proxy action=stop" to go back to the default proxy. Always try this before attempting to solve captchas manually.`;
|
|
28468
28633
|
var server = new McpServer({ name: "iframer", version: "2.0.0" }, { instructions: INSTRUCTIONS });
|
|
28469
28634
|
server.tool("status", `Get the full state of iframer in one call. Call this first. Returns: API health, auth status, active session, stored credentials.`, {}, async () => {
|
|
28470
28635
|
try {
|
|
@@ -28554,7 +28719,7 @@ Steps run sequentially. Each step has a 20-second stale-state timeout — if not
|
|
|
28554
28719
|
Key step types:
|
|
28555
28720
|
- navigate: go to a URL (obstacle detection runs after this)
|
|
28556
28721
|
- extract: evaluate JS and include the result in the response
|
|
28557
|
-
- solve-captcha: auto-solve reCAPTCHA with vision (uses Claude)
|
|
28722
|
+
- solve-captcha: auto-detect and auto-solve reCAPTCHA OR hCaptcha with vision (uses Claude) — works for both, no config needed
|
|
28558
28723
|
- login: fill login form with stored credentials (never exposes passwords)
|
|
28559
28724
|
- screenshot: take a mid-pipeline screenshot
|
|
28560
28725
|
|
|
@@ -28709,6 +28874,64 @@ iframer credentials add ${domain2}`);
|
|
|
28709
28874
|
return err(`Error: ${e.message}`);
|
|
28710
28875
|
}
|
|
28711
28876
|
});
|
|
28877
|
+
server.tool("proxy", `Control the browser's network proxy. Use action=start to route traffic through the user's own home network IP (bypasses bot detection that targets datacenter/residential proxy IPs). Use action=stop to go back to the default proxy. Use action=status to check current state.
|
|
28878
|
+
|
|
28879
|
+
HOW IT WORKS: start launches a SOCKS5 proxy server on the user's Mac (this process). Since it runs natively on the Mac, all browser traffic in Docker exits through the user's real home IP — the same IP they use in their normal browser, which sites already trust.
|
|
28880
|
+
|
|
28881
|
+
WHEN TO USE: Try this whenever a site shows a captcha or bot detection wall. The user's home IP is almost always trusted by sites like Discord, Google, etc. Start the home proxy, then retry the session.`, {
|
|
28882
|
+
action: exports_external.enum(["start", "stop", "status"]).describe("start: activate home proxy | stop: go back to default proxy | status: check current proxy")
|
|
28883
|
+
}, async ({ action }) => {
|
|
28884
|
+
try {
|
|
28885
|
+
if (action === "status") {
|
|
28886
|
+
const info = getHomeProxyInfo();
|
|
28887
|
+
const apiProxy = await fetch(`${BASE_URL}/proxy`).then((r) => r.json()).catch(() => null);
|
|
28888
|
+
return { content: [{ type: "text", text: JSON.stringify({
|
|
28889
|
+
homeProxy: info,
|
|
28890
|
+
apiProxy: apiProxy?.proxy ?? "unknown",
|
|
28891
|
+
apiProxySource: apiProxy?.source ?? "unknown"
|
|
28892
|
+
}, null, 2) }] };
|
|
28893
|
+
}
|
|
28894
|
+
if (action === "start") {
|
|
28895
|
+
const isLocal = BASE_URL.includes("localhost") || BASE_URL.includes("127.0.0.1");
|
|
28896
|
+
let proxyUrl;
|
|
28897
|
+
if (isLocal) {
|
|
28898
|
+
const port = await startHomeProxy();
|
|
28899
|
+
proxyUrl = `socks5://host.docker.internal:${port}`;
|
|
28900
|
+
} else {
|
|
28901
|
+
if (activeTunnel)
|
|
28902
|
+
activeTunnel.stop();
|
|
28903
|
+
const token = loadToken();
|
|
28904
|
+
const tunnel = await startTunnel(BASE_URL, token);
|
|
28905
|
+
activeTunnel = tunnel;
|
|
28906
|
+
proxyUrl = `socks5://127.0.0.1:${tunnel.remotePort}`;
|
|
28907
|
+
}
|
|
28908
|
+
const res = await fetch(`${BASE_URL}/proxy`, {
|
|
28909
|
+
method: "POST",
|
|
28910
|
+
headers: { "Content-Type": "application/json" },
|
|
28911
|
+
body: JSON.stringify({ server: proxyUrl })
|
|
28912
|
+
}).then((r) => r.json()).catch((e) => ({ ok: false, error: e.message }));
|
|
28913
|
+
if (!res.ok)
|
|
28914
|
+
return err(`Home proxy started but failed to configure API: ${res.error}`);
|
|
28915
|
+
await apiPost("/interactive/stop").catch(() => {});
|
|
28916
|
+
return { content: [{ type: "text", text: `Home proxy active. Session restarted. Browser traffic now exits through your Mac's home IP.` }] };
|
|
28917
|
+
}
|
|
28918
|
+
if (action === "stop") {
|
|
28919
|
+
activeTunnel?.stop();
|
|
28920
|
+
activeTunnel = null;
|
|
28921
|
+
await stopHomeProxy();
|
|
28922
|
+
await fetch(`${BASE_URL}/proxy`, {
|
|
28923
|
+
method: "POST",
|
|
28924
|
+
headers: { "Content-Type": "application/json" },
|
|
28925
|
+
body: JSON.stringify({ server: null })
|
|
28926
|
+
}).catch(() => {});
|
|
28927
|
+
await apiPost("/interactive/stop").catch(() => {});
|
|
28928
|
+
return { content: [{ type: "text", text: "Home proxy stopped. Session restarted. Browser traffic will use the default proxy (IPRoyal) or no proxy." }] };
|
|
28929
|
+
}
|
|
28930
|
+
return err("Unknown action");
|
|
28931
|
+
} catch (e) {
|
|
28932
|
+
return err(`Proxy error: ${e.message}`);
|
|
28933
|
+
}
|
|
28934
|
+
});
|
|
28712
28935
|
var transport = new StdioServerTransport;
|
|
28713
28936
|
(async () => {
|
|
28714
28937
|
await server.connect(transport);
|